diff --git a/clients/client-accessanalyzer/package.json b/clients/client-accessanalyzer/package.json index 16c33fa03802..3f429883c0ad 100644 --- a/clients/client-accessanalyzer/package.json +++ b/clients/client-accessanalyzer/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts index 314a629b27d3..4fea68d40ce2 100644 --- a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts +++ b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -157,11 +158,11 @@ export const se_ApplyArchiveRuleCommand = async ( input: ApplyArchiveRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/archive-rule"; + b.bp("/archive-rule"); let body: any; body = JSON.stringify( take(input, { @@ -170,15 +171,8 @@ export const se_ApplyArchiveRuleCommand = async ( ruleName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -188,21 +182,13 @@ export const se_CancelPolicyGenerationCommand = async ( input: CancelPolicyGenerationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/policy/generation/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -212,12 +198,11 @@ export const se_CheckAccessNotGrantedCommand = async ( input: CheckAccessNotGrantedCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/check-access-not-granted"; + b.bp("/policy/check-access-not-granted"); let body: any; body = JSON.stringify( take(input, { @@ -226,15 +211,8 @@ export const se_CheckAccessNotGrantedCommand = async ( policyType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -244,12 +222,11 @@ export const se_CheckNoNewAccessCommand = async ( input: CheckNoNewAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/check-no-new-access"; + b.bp("/policy/check-no-new-access"); let body: any; body = JSON.stringify( take(input, { @@ -258,15 +235,8 @@ export const se_CheckNoNewAccessCommand = async ( policyType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -276,11 +246,11 @@ export const se_CreateAccessPreviewCommand = async ( input: CreateAccessPreviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview"; + b.bp("/access-preview"); let body: any; body = JSON.stringify( take(input, { @@ -289,15 +259,8 @@ export const se_CreateAccessPreviewCommand = async ( configurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -307,11 +270,11 @@ export const se_CreateAnalyzerCommand = async ( input: CreateAnalyzerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer"; + b.bp("/analyzer"); let body: any; body = JSON.stringify( take(input, { @@ -323,15 +286,8 @@ export const se_CreateAnalyzerCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -341,20 +297,12 @@ export const se_CreateArchiveRuleCommand = async ( input: CreateArchiveRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}/archive-rule"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analyzerName", - () => input.analyzerName!, - "{analyzerName}", - false - ); + b.bp("/analyzer/{analyzerName}/archive-rule"); + b.p("analyzerName", () => input.analyzerName!, "{analyzerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -363,15 +311,8 @@ export const se_CreateArchiveRuleCommand = async ( ruleName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -381,31 +322,16 @@ export const se_DeleteAnalyzerCommand = async ( input: DeleteAnalyzerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analyzerName", - () => input.analyzerName!, - "{analyzerName}", - false - ); + b.bp("/analyzer/{analyzerName}"); + b.p("analyzerName", () => input.analyzerName!, "{analyzerName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -415,34 +341,17 @@ export const se_DeleteArchiveRuleCommand = async ( input: DeleteArchiveRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analyzer/{analyzerName}/archive-rule/{ruleName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analyzerName", - () => input.analyzerName!, - "{analyzerName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}"); + b.p("analyzerName", () => input.analyzerName!, "{analyzerName}", false); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -452,32 +361,16 @@ export const se_GetAccessPreviewCommand = async ( input: GetAccessPreviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "accessPreviewId", - () => input.accessPreviewId!, - "{accessPreviewId}", - false - ); + b.bp("/access-preview/{accessPreviewId}"); + b.p("accessPreviewId", () => input.accessPreviewId!, "{accessPreviewId}", false); const query: any = map({ - analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)], + [_aA]: [, __expectNonNull(input[_aA]!, `analyzerArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -487,24 +380,16 @@ export const se_GetAnalyzedResourceCommand = async ( input: GetAnalyzedResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource"; + b.bp("/analyzed-resource"); const query: any = map({ - analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)], - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_aA]: [, __expectNonNull(input[_aA]!, `analyzerArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -514,27 +399,13 @@ export const se_GetAnalyzerCommand = async ( input: GetAnalyzerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analyzerName", - () => input.analyzerName!, - "{analyzerName}", - false - ); + b.bp("/analyzer/{analyzerName}"); + b.p("analyzerName", () => input.analyzerName!, "{analyzerName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -544,30 +415,14 @@ export const se_GetArchiveRuleCommand = async ( input: GetArchiveRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analyzer/{analyzerName}/archive-rule/{ruleName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analyzerName", - () => input.analyzerName!, - "{analyzerName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}"); + b.p("analyzerName", () => input.analyzerName!, "{analyzerName}", false); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -577,24 +432,16 @@ export const se_GetFindingCommand = async ( input: GetFindingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/finding/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)], + [_aA]: [, __expectNonNull(input[_aA]!, `analyzerArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -604,26 +451,18 @@ export const se_GetFindingV2Command = async ( input: GetFindingV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingv2/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/findingv2/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_aA]: [, __expectNonNull(input[_aA]!, `analyzerArn`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -633,32 +472,17 @@ export const se_GetGeneratedPolicyCommand = async ( input: GetGeneratedPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/policy/generation/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); const query: any = map({ - includeResourcePlaceholders: [ - () => input.includeResourcePlaceholders !== void 0, - () => input.includeResourcePlaceholders!.toString(), - ], - includeServiceLevelTemplate: [ - () => input.includeServiceLevelTemplate !== void 0, - () => input.includeServiceLevelTemplate!.toString(), - ], + [_iRP]: [() => input.includeResourcePlaceholders !== void 0, () => input[_iRP]!.toString()], + [_iSLT]: [() => input.includeServiceLevelTemplate !== void 0, () => input[_iSLT]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -668,20 +492,12 @@ export const se_ListAccessPreviewFindingsCommand = async ( input: ListAccessPreviewFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "accessPreviewId", - () => input.accessPreviewId!, - "{accessPreviewId}", - false - ); + b.bp("/access-preview/{accessPreviewId}"); + b.p("accessPreviewId", () => input.accessPreviewId!, "{accessPreviewId}", false); let body: any; body = JSON.stringify( take(input, { @@ -691,15 +507,8 @@ export const se_ListAccessPreviewFindingsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -709,25 +518,17 @@ export const se_ListAccessPreviewsCommand = async ( input: ListAccessPreviewsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview"; + b.bp("/access-preview"); const query: any = map({ - analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_aA]: [, __expectNonNull(input[_aA]!, `analyzerArn`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -737,11 +538,11 @@ export const se_ListAnalyzedResourcesCommand = async ( input: ListAnalyzedResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource"; + b.bp("/analyzed-resource"); let body: any; body = JSON.stringify( take(input, { @@ -751,15 +552,8 @@ export const se_ListAnalyzedResourcesCommand = async ( resourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -769,25 +563,17 @@ export const se_ListAnalyzersCommand = async ( input: ListAnalyzersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer"; + b.bp("/analyzer"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - type: [, input.type!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_t]: [, input[_t]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -797,33 +583,17 @@ export const se_ListArchiveRulesCommand = async ( input: ListArchiveRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}/archive-rule"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analyzerName", - () => input.analyzerName!, - "{analyzerName}", - false - ); + b.bp("/analyzer/{analyzerName}/archive-rule"); + b.p("analyzerName", () => input.analyzerName!, "{analyzerName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -833,11 +603,11 @@ export const se_ListFindingsCommand = async ( input: ListFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding"; + b.bp("/finding"); let body: any; body = JSON.stringify( take(input, { @@ -848,15 +618,8 @@ export const se_ListFindingsCommand = async ( sort: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -866,11 +629,11 @@ export const se_ListFindingsV2Command = async ( input: ListFindingsV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingv2"; + b.bp("/findingv2"); let body: any; body = JSON.stringify( take(input, { @@ -881,15 +644,8 @@ export const se_ListFindingsV2Command = async ( sort: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -899,25 +655,17 @@ export const se_ListPolicyGenerationsCommand = async ( input: ListPolicyGenerationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation"; + b.bp("/policy/generation"); const query: any = map({ - principalArn: [, input.principalArn!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_pA]: [, input[_pA]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -927,20 +675,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -950,11 +691,11 @@ export const se_StartPolicyGenerationCommand = async ( input: StartPolicyGenerationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation"; + b.bp("/policy/generation"); let body: any; body = JSON.stringify( take(input, { @@ -963,15 +704,8 @@ export const se_StartPolicyGenerationCommand = async ( policyGenerationDetails: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -981,11 +715,11 @@ export const se_StartResourceScanCommand = async ( input: StartResourceScanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource/scan"; + b.bp("/resource/scan"); let body: any; body = JSON.stringify( take(input, { @@ -994,15 +728,8 @@ export const se_StartResourceScanCommand = async ( resourceOwnerAccount: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1012,27 +739,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1042,27 +762,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1072,22 +784,13 @@ export const se_UpdateArchiveRuleCommand = async ( input: UpdateArchiveRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analyzer/{analyzerName}/archive-rule/{ruleName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analyzerName", - () => input.analyzerName!, - "{analyzerName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}"); + b.p("analyzerName", () => input.analyzerName!, "{analyzerName}", false); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1095,15 +798,8 @@ export const se_UpdateArchiveRuleCommand = async ( filter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1113,11 +809,11 @@ export const se_UpdateFindingsCommand = async ( input: UpdateFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding"; + b.bp("/finding"); let body: any; body = JSON.stringify( take(input, { @@ -1128,15 +824,8 @@ export const se_UpdateFindingsCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1146,14 +835,14 @@ export const se_ValidatePolicyCommand = async ( input: ValidatePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/validation"; + b.bp("/policy/validation"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -1164,16 +853,8 @@ export const se_ValidatePolicyCommand = async ( validatePolicyResourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3106,10 +2787,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3192,10 +2870,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3943,6 +3618,19 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aA = "analyzerArn"; +const _cT = "clientToken"; +const _iRP = "includeResourcePlaceholders"; +const _iSLT = "includeServiceLevelTemplate"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pA = "principalArn"; +const _rA = "resourceArn"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _t = "type"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-account/package.json b/clients/client-account/package.json index c1d7cd4dd45b..bf53d238e3da 100644 --- a/clients/client-account/package.json +++ b/clients/client-account/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-account/src/protocols/Aws_restJson1.ts b/clients/client-account/src/protocols/Aws_restJson1.ts index 734589ebe437..ff2aae69d81d 100644 --- a/clients/client-account/src/protocols/Aws_restJson1.ts +++ b/clients/client-account/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -60,12 +61,11 @@ export const se_DeleteAlternateContactCommand = async ( input: DeleteAlternateContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteAlternateContact"; + b.bp("/deleteAlternateContact"); let body: any; body = JSON.stringify( take(input, { @@ -73,15 +73,8 @@ export const se_DeleteAlternateContactCommand = async ( AlternateContactType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -91,11 +84,11 @@ export const se_DisableRegionCommand = async ( input: DisableRegionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disableRegion"; + b.bp("/disableRegion"); let body: any; body = JSON.stringify( take(input, { @@ -103,15 +96,8 @@ export const se_DisableRegionCommand = async ( RegionName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -121,11 +107,11 @@ export const se_EnableRegionCommand = async ( input: EnableRegionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enableRegion"; + b.bp("/enableRegion"); let body: any; body = JSON.stringify( take(input, { @@ -133,15 +119,8 @@ export const se_EnableRegionCommand = async ( RegionName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -151,11 +130,11 @@ export const se_GetAlternateContactCommand = async ( input: GetAlternateContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getAlternateContact"; + b.bp("/getAlternateContact"); let body: any; body = JSON.stringify( take(input, { @@ -163,15 +142,8 @@ export const se_GetAlternateContactCommand = async ( AlternateContactType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -181,26 +153,19 @@ export const se_GetContactInformationCommand = async ( input: GetContactInformationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getContactInformation"; + b.bp("/getContactInformation"); let body: any; body = JSON.stringify( take(input, { AccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -210,11 +175,11 @@ export const se_GetRegionOptStatusCommand = async ( input: GetRegionOptStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getRegionOptStatus"; + b.bp("/getRegionOptStatus"); let body: any; body = JSON.stringify( take(input, { @@ -222,15 +187,8 @@ export const se_GetRegionOptStatusCommand = async ( RegionName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -240,11 +198,11 @@ export const se_ListRegionsCommand = async ( input: ListRegionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRegions"; + b.bp("/listRegions"); let body: any; body = JSON.stringify( take(input, { @@ -254,15 +212,8 @@ export const se_ListRegionsCommand = async ( RegionOptStatusContains: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -272,11 +223,11 @@ export const se_PutAlternateContactCommand = async ( input: PutAlternateContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putAlternateContact"; + b.bp("/putAlternateContact"); let body: any; body = JSON.stringify( take(input, { @@ -288,15 +239,8 @@ export const se_PutAlternateContactCommand = async ( Title: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -306,11 +250,11 @@ export const se_PutContactInformationCommand = async ( input: PutContactInformationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putContactInformation"; + b.bp("/putContactInformation"); let body: any; body = JSON.stringify( take(input, { @@ -318,15 +262,8 @@ export const se_PutContactInformationCommand = async ( ContactInformation: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-amp/package.json b/clients/client-amp/package.json index dc9d193b144c..bd4855f5daaa 100644 --- a/clients/client-amp/package.json +++ b/clients/client-amp/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-amp/src/protocols/Aws_restJson1.ts b/clients/client-amp/src/protocols/Aws_restJson1.ts index ecbcb3c21dda..0dd9c2165569 100644 --- a/clients/client-amp/src/protocols/Aws_restJson1.ts +++ b/clients/client-amp/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -130,14 +131,12 @@ export const se_CreateAlertManagerDefinitionCommand = async ( input: CreateAlertManagerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/alertmanager/definition"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/alertmanager/definition"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -145,15 +144,8 @@ export const se_CreateAlertManagerDefinitionCommand = async ( data: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -163,13 +155,12 @@ export const se_CreateLoggingConfigurationCommand = async ( input: CreateLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/logging"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -177,15 +168,8 @@ export const se_CreateLoggingConfigurationCommand = async ( logGroupArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -195,14 +179,12 @@ export const se_CreateRuleGroupsNamespaceCommand = async ( input: CreateRuleGroupsNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/rulegroupsnamespaces"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -212,15 +194,8 @@ export const se_CreateRuleGroupsNamespaceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -230,11 +205,11 @@ export const se_CreateScraperCommand = async ( input: CreateScraperCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scrapers"; + b.bp("/scrapers"); let body: any; body = JSON.stringify( take(input, { @@ -246,15 +221,8 @@ export const se_CreateScraperCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -264,11 +232,11 @@ export const se_CreateWorkspaceCommand = async ( input: CreateWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces"; + b.bp("/workspaces"); let body: any; body = JSON.stringify( take(input, { @@ -277,15 +245,8 @@ export const se_CreateWorkspaceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -295,26 +256,16 @@ export const se_DeleteAlertManagerDefinitionCommand = async ( input: DeleteAlertManagerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/alertmanager/definition"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/alertmanager/definition"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -324,25 +275,16 @@ export const se_DeleteLoggingConfigurationCommand = async ( input: DeleteLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/logging"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -352,27 +294,17 @@ export const se_DeleteRuleGroupsNamespaceCommand = async ( input: DeleteRuleGroupsNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -382,24 +314,16 @@ export const se_DeleteScraperCommand = async ( input: DeleteScraperCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scrapers/{scraperId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "scraperId", () => input.scraperId!, "{scraperId}", false); + b.bp("/scrapers/{scraperId}"); + b.p("scraperId", () => input.scraperId!, "{scraperId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -409,25 +333,16 @@ export const se_DeleteWorkspaceCommand = async ( input: DeleteWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -437,22 +352,13 @@ export const se_DescribeAlertManagerDefinitionCommand = async ( input: DescribeAlertManagerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/alertmanager/definition"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/alertmanager/definition"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -462,21 +368,13 @@ export const se_DescribeLoggingConfigurationCommand = async ( input: DescribeLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/logging"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -486,23 +384,14 @@ export const se_DescribeRuleGroupsNamespaceCommand = async ( input: DescribeRuleGroupsNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -512,20 +401,13 @@ export const se_DescribeScraperCommand = async ( input: DescribeScraperCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scrapers/{scraperId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "scraperId", () => input.scraperId!, "{scraperId}", false); + b.bp("/scrapers/{scraperId}"); + b.p("scraperId", () => input.scraperId!, "{scraperId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -535,21 +417,13 @@ export const se_DescribeWorkspaceCommand = async ( input: DescribeWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -559,22 +433,15 @@ export const se_GetDefaultScraperConfigurationCommand = async ( input: GetDefaultScraperConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scraperconfiguration"; + b.bp("/scraperconfiguration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -584,28 +451,18 @@ export const se_ListRuleGroupsNamespacesCommand = async ( input: ListRuleGroupsNamespacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/rulegroupsnamespaces"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); const query: any = map({ - name: [, input.name!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_n]: [, input[_n]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -615,25 +472,17 @@ export const se_ListScrapersCommand = async ( input: ListScrapersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scrapers"; + b.bp("/scrapers"); const query: any = map({ ...convertMap(input.filters), - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -643,20 +492,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -666,25 +508,17 @@ export const se_ListWorkspacesCommand = async ( input: ListWorkspacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces"; + b.bp("/workspaces"); const query: any = map({ - nextToken: [, input.nextToken!], - alias: [, input.alias!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_a]: [, input[_a]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -694,14 +528,12 @@ export const se_PutAlertManagerDefinitionCommand = async ( input: PutAlertManagerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/alertmanager/definition"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/alertmanager/definition"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -709,15 +541,8 @@ export const se_PutAlertManagerDefinitionCommand = async ( data: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -727,15 +552,13 @@ export const se_PutRuleGroupsNamespaceCommand = async ( input: PutRuleGroupsNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -743,15 +566,8 @@ export const se_PutRuleGroupsNamespaceCommand = async ( data: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -761,27 +577,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -791,27 +600,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -821,13 +622,12 @@ export const se_UpdateLoggingConfigurationCommand = async ( input: UpdateLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/logging"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -835,15 +635,8 @@ export const se_UpdateLoggingConfigurationCommand = async ( logGroupArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -853,13 +646,12 @@ export const se_UpdateWorkspaceAliasCommand = async ( input: UpdateWorkspaceAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/alias"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/alias"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -867,15 +659,8 @@ export const se_UpdateWorkspaceAliasCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2481,10 +2266,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2549,10 +2331,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2831,6 +2610,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "alias"; +const _cT = "clientToken"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-amplify/package.json b/clients/client-amplify/package.json index 884420f83fe3..36ed01e0828f 100644 --- a/clients/client-amplify/package.json +++ b/clients/client-amplify/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-amplify/src/protocols/Aws_restJson1.ts b/clients/client-amplify/src/protocols/Aws_restJson1.ts index 9427b3c76d85..b1f7a1f68539 100644 --- a/clients/client-amplify/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplify/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -119,11 +120,11 @@ export const se_CreateAppCommand = async ( input: CreateAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps"; + b.bp("/apps"); let body: any; body = JSON.stringify( take(input, { @@ -148,15 +149,8 @@ export const se_CreateAppCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -166,13 +160,12 @@ export const se_CreateBackendEnvironmentCommand = async ( input: CreateBackendEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/backendenvironments"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/backendenvironments"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; body = JSON.stringify( take(input, { @@ -181,15 +174,8 @@ export const se_CreateBackendEnvironmentCommand = async ( stackName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -199,12 +185,12 @@ export const se_CreateBranchCommand = async ( input: CreateBranchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/branches"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; body = JSON.stringify( take(input, { @@ -228,15 +214,8 @@ export const se_CreateBranchCommand = async ( ttl: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -246,30 +225,21 @@ export const se_CreateDeploymentCommand = async ( input: CreateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/branches/{branchName}/deployments"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); + b.bp("/apps/{appId}/branches/{branchName}/deployments"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); let body: any; body = JSON.stringify( take(input, { fileMap: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -279,12 +249,12 @@ export const se_CreateDomainAssociationCommand = async ( input: CreateDomainAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/domains"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; body = JSON.stringify( take(input, { @@ -295,15 +265,8 @@ export const se_CreateDomainAssociationCommand = async ( subDomainSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -313,12 +276,12 @@ export const se_CreateWebhookCommand = async ( input: CreateWebhookCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/webhooks"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/webhooks"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; body = JSON.stringify( take(input, { @@ -326,15 +289,8 @@ export const se_CreateWebhookCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -344,20 +300,13 @@ export const se_DeleteAppCommand = async ( input: DeleteAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -367,30 +316,14 @@ export const se_DeleteBackendEnvironmentCommand = async ( input: DeleteBackendEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/backendenvironments/{environmentName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/apps/{appId}/backendenvironments/{environmentName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -400,22 +333,14 @@ export const se_DeleteBranchCommand = async ( input: DeleteBranchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); + b.bp("/apps/{appId}/branches/{branchName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -425,22 +350,14 @@ export const se_DeleteDomainAssociationCommand = async ( input: DeleteDomainAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/apps/{appId}/domains/{domainName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -450,24 +367,15 @@ export const se_DeleteJobCommand = async ( input: DeleteJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/branches/{branchName}/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -477,20 +385,13 @@ export const se_DeleteWebhookCommand = async ( input: DeleteWebhookCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "webhookId", () => input.webhookId!, "{webhookId}", false); + b.bp("/webhooks/{webhookId}"); + b.p("webhookId", () => input.webhookId!, "{webhookId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -500,12 +401,12 @@ export const se_GenerateAccessLogsCommand = async ( input: GenerateAccessLogsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/accesslogs"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/accesslogs"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; body = JSON.stringify( take(input, { @@ -514,35 +415,21 @@ export const se_GenerateAccessLogsCommand = async ( startTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetAppCommand */ export const se_GetAppCommand = async (input: GetAppCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -552,20 +439,13 @@ export const se_GetArtifactUrlCommand = async ( input: GetArtifactUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/artifacts/{artifactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "artifactId", () => input.artifactId!, "{artifactId}", false); + b.bp("/artifacts/{artifactId}"); + b.p("artifactId", () => input.artifactId!, "{artifactId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -575,30 +455,14 @@ export const se_GetBackendEnvironmentCommand = async ( input: GetBackendEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/backendenvironments/{environmentName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/apps/{appId}/backendenvironments/{environmentName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -608,22 +472,14 @@ export const se_GetBranchCommand = async ( input: GetBranchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); + b.bp("/apps/{appId}/branches/{branchName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -633,46 +489,29 @@ export const se_GetDomainAssociationCommand = async ( input: GetDomainAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/apps/{appId}/domains/{domainName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetJobCommand */ export const se_GetJobCommand = async (input: GetJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/branches/{branchName}/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -682,20 +521,13 @@ export const se_GetWebhookCommand = async ( input: GetWebhookCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "webhookId", () => input.webhookId!, "{webhookId}", false); + b.bp("/webhooks/{webhookId}"); + b.p("webhookId", () => input.webhookId!, "{webhookId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -705,24 +537,16 @@ export const se_ListAppsCommand = async ( input: ListAppsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps"; + b.bp("/apps"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -732,29 +556,19 @@ export const se_ListArtifactsCommand = async ( input: ListArtifactsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -764,27 +578,18 @@ export const se_ListBackendEnvironmentsCommand = async ( input: ListBackendEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/backendenvironments"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/backendenvironments"); + b.p("appId", () => input.appId!, "{appId}", false); const query: any = map({ - environmentName: [, input.environmentName!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_eN]: [, input[_eN]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -794,25 +599,17 @@ export const se_ListBranchesCommand = async ( input: ListBranchesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/branches"); + b.p("appId", () => input.appId!, "{appId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -822,25 +619,17 @@ export const se_ListDomainAssociationsCommand = async ( input: ListDomainAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/domains"); + b.p("appId", () => input.appId!, "{appId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -850,27 +639,18 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}/jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); + b.bp("/apps/{appId}/branches/{branchName}/jobs"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -880,20 +660,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -903,25 +676,17 @@ export const se_ListWebhooksCommand = async ( input: ListWebhooksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/webhooks"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}/webhooks"); + b.p("appId", () => input.appId!, "{appId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -931,15 +696,13 @@ export const se_StartDeploymentCommand = async ( input: StartDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/branches/{branchName}/deployments/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); + b.bp("/apps/{appId}/branches/{branchName}/deployments/start"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); let body: any; body = JSON.stringify( take(input, { @@ -947,15 +710,8 @@ export const se_StartDeploymentCommand = async ( sourceUrl: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -965,14 +721,13 @@ export const se_StartJobCommand = async ( input: StartJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}/jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); + b.bp("/apps/{appId}/branches/{branchName}/jobs"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); let body: any; body = JSON.stringify( take(input, { @@ -984,15 +739,8 @@ export const se_StartJobCommand = async ( jobType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1002,24 +750,15 @@ export const se_StopJobCommand = async ( input: StopJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1029,27 +768,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1059,27 +791,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1089,12 +813,12 @@ export const se_UpdateAppCommand = async ( input: UpdateAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); + b.bp("/apps/{appId}"); + b.p("appId", () => input.appId!, "{appId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1118,15 +842,8 @@ export const se_UpdateAppCommand = async ( repository: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1136,14 +853,13 @@ export const se_UpdateBranchCommand = async ( input: UpdateBranchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName!, "{branchName}", false); + b.bp("/apps/{appId}/branches/{branchName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("branchName", () => input.branchName!, "{branchName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1165,15 +881,8 @@ export const se_UpdateBranchCommand = async ( ttl: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1183,14 +892,13 @@ export const se_UpdateDomainAssociationCommand = async ( input: UpdateDomainAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/apps/{appId}/domains/{domainName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1200,15 +908,8 @@ export const se_UpdateDomainAssociationCommand = async ( subDomainSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1218,12 +919,12 @@ export const se_UpdateWebhookCommand = async ( input: UpdateWebhookCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "webhookId", () => input.webhookId!, "{webhookId}", false); + b.bp("/webhooks/{webhookId}"); + b.p("webhookId", () => input.webhookId!, "{webhookId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1231,15 +932,8 @@ export const se_UpdateWebhookCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3800,6 +3494,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _eN = "environmentName"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-amplifybackend/package.json b/clients/client-amplifybackend/package.json index 554eb3351cdc..6976901354c2 100644 --- a/clients/client-amplifybackend/package.json +++ b/clients/client-amplifybackend/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts b/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts index 3a64481e51c8..841c33a7c9ca 100644 --- a/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplifybackend/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -134,37 +135,21 @@ export const se_CloneBackendCommand = async ( input: CloneBackendCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/environments/{BackendEnvironmentName}/clone"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/clone"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { targetEnvironmentName: [, , `TargetEnvironmentName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -174,11 +159,11 @@ export const se_CreateBackendCommand = async ( input: CreateBackendCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend"; + b.bp("/backend"); let body: any; body = JSON.stringify( take(input, { @@ -189,15 +174,8 @@ export const se_CreateBackendCommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -207,12 +185,12 @@ export const se_CreateBackendAPICommand = async ( input: CreateBackendAPICommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/api"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/api"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; body = JSON.stringify( take(input, { @@ -221,15 +199,8 @@ export const se_CreateBackendAPICommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -239,12 +210,12 @@ export const se_CreateBackendAuthCommand = async ( input: CreateBackendAuthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/auth"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/auth"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; body = JSON.stringify( take(input, { @@ -253,15 +224,8 @@ export const se_CreateBackendAuthCommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -271,27 +235,20 @@ export const se_CreateBackendConfigCommand = async ( input: CreateBackendConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/config"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; body = JSON.stringify( take(input, { backendManagerAppId: [, , `BackendManagerAppId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -301,12 +258,12 @@ export const se_CreateBackendStorageCommand = async ( input: CreateBackendStorageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/storage"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/storage"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; body = JSON.stringify( take(input, { @@ -315,15 +272,8 @@ export const se_CreateBackendStorageCommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -333,21 +283,13 @@ export const se_CreateTokenCommand = async ( input: CreateTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/challenge"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/challenge"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -357,30 +299,14 @@ export const se_DeleteBackendCommand = async ( input: DeleteBackendCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/environments/{BackendEnvironmentName}/remove"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/remove"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -390,22 +316,13 @@ export const se_DeleteBackendAPICommand = async ( input: DeleteBackendAPICommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/api/{BackendEnvironmentName}/remove"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/remove"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -413,15 +330,8 @@ export const se_DeleteBackendAPICommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -431,37 +341,21 @@ export const se_DeleteBackendAuthCommand = async ( input: DeleteBackendAuthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/auth/{BackendEnvironmentName}/remove"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/remove"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -471,22 +365,13 @@ export const se_DeleteBackendStorageCommand = async ( input: DeleteBackendStorageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/storage/{BackendEnvironmentName}/remove"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/remove"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -494,15 +379,8 @@ export const se_DeleteBackendStorageCommand = async ( serviceName: [, , `ServiceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -512,23 +390,14 @@ export const se_DeleteTokenCommand = async ( input: DeleteTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/challenge/{SessionId}/remove"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "SessionId", () => input.SessionId!, "{SessionId}", false); + b.bp("/backend/{AppId}/challenge/{SessionId}/remove"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("SessionId", () => input.SessionId!, "{SessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -538,37 +407,21 @@ export const se_GenerateBackendAPIModelsCommand = async ( input: GenerateBackendAPIModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/api/{BackendEnvironmentName}/generateModels"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/generateModels"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -578,27 +431,20 @@ export const se_GetBackendCommand = async ( input: GetBackendCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/details"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/details"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; body = JSON.stringify( take(input, { backendEnvironmentName: [, , `BackendEnvironmentName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -608,22 +454,13 @@ export const se_GetBackendAPICommand = async ( input: GetBackendAPICommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/api/{BackendEnvironmentName}/details"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/details"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -631,15 +468,8 @@ export const se_GetBackendAPICommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -649,37 +479,21 @@ export const se_GetBackendAPIModelsCommand = async ( input: GetBackendAPIModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/api/{BackendEnvironmentName}/getModels"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/getModels"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -689,37 +503,21 @@ export const se_GetBackendAuthCommand = async ( input: GetBackendAuthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/auth/{BackendEnvironmentName}/details"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/details"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -729,31 +527,15 @@ export const se_GetBackendJobCommand = async ( input: GetBackendJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -763,37 +545,21 @@ export const se_GetBackendStorageCommand = async ( input: GetBackendStorageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/storage/{BackendEnvironmentName}/details"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/details"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -803,22 +569,14 @@ export const se_GetTokenCommand = async ( input: GetTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/challenge/{SessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "SessionId", () => input.SessionId!, "{SessionId}", false); + b.bp("/backend/{AppId}/challenge/{SessionId}"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("SessionId", () => input.SessionId!, "{SessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -828,22 +586,13 @@ export const se_ImportBackendAuthCommand = async ( input: ImportBackendAuthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/auth/{BackendEnvironmentName}/import"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/import"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -853,15 +602,8 @@ export const se_ImportBackendAuthCommand = async ( webClientId: [, , `WebClientId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -871,22 +613,13 @@ export const se_ImportBackendStorageCommand = async ( input: ImportBackendStorageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/storage/{BackendEnvironmentName}/import"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/import"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -894,15 +627,8 @@ export const se_ImportBackendStorageCommand = async ( serviceName: [, , `ServiceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -912,22 +638,13 @@ export const se_ListBackendJobsCommand = async ( input: ListBackendJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/job/{BackendEnvironmentName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/job/{BackendEnvironmentName}"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -938,15 +655,8 @@ export const se_ListBackendJobsCommand = async ( status: [, , `Status`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -956,26 +666,19 @@ export const se_ListS3BucketsCommand = async ( input: ListS3BucketsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/s3Buckets"; + b.bp("/s3Buckets"); let body: any; body = JSON.stringify( take(input, { nextToken: [, , `NextToken`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -985,27 +688,20 @@ export const se_RemoveAllBackendsCommand = async ( input: RemoveAllBackendsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/remove"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/remove"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; body = JSON.stringify( take(input, { cleanAmplifyApp: [, , `CleanAmplifyApp`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1015,21 +711,13 @@ export const se_RemoveBackendConfigCommand = async ( input: RemoveBackendConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/config/remove"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/config/remove"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1039,22 +727,13 @@ export const se_UpdateBackendAPICommand = async ( input: UpdateBackendAPICommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/api/{BackendEnvironmentName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/api/{BackendEnvironmentName}"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1062,15 +741,8 @@ export const se_UpdateBackendAPICommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1080,22 +752,13 @@ export const se_UpdateBackendAuthCommand = async ( input: UpdateBackendAuthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/auth/{BackendEnvironmentName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1103,15 +766,8 @@ export const se_UpdateBackendAuthCommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1121,28 +777,20 @@ export const se_UpdateBackendConfigCommand = async ( input: UpdateBackendConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backend/{AppId}/config/update"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); + b.bp("/backend/{AppId}/config/update"); + b.p("AppId", () => input.AppId!, "{AppId}", false); let body: any; body = JSON.stringify( take(input, { loginAuthConfig: [, (_) => se_LoginAuthConfigReqObj(_, context), `LoginAuthConfig`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1152,23 +800,14 @@ export const se_UpdateBackendJobCommand = async ( input: UpdateBackendJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1176,15 +815,8 @@ export const se_UpdateBackendJobCommand = async ( status: [, , `Status`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1194,22 +826,13 @@ export const se_UpdateBackendStorageCommand = async ( input: UpdateBackendStorageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backend/{AppId}/storage/{BackendEnvironmentName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AppId", () => input.AppId!, "{AppId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackendEnvironmentName", - () => input.BackendEnvironmentName!, - "{BackendEnvironmentName}", - false - ); + b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}"); + b.p("AppId", () => input.AppId!, "{AppId}", false); + b.p("BackendEnvironmentName", () => input.BackendEnvironmentName!, "{BackendEnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1217,15 +840,8 @@ export const se_UpdateBackendStorageCommand = async ( resourceName: [, , `ResourceName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-amplifyuibuilder/package.json b/clients/client-amplifyuibuilder/package.json index 900b6627ac8e..b868ce6fe488 100644 --- a/clients/client-amplifyuibuilder/package.json +++ b/clients/client-amplifyuibuilder/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts b/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts index 56d42c47e343..3d433591d2fe 100644 --- a/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -133,24 +134,15 @@ export const se_CreateComponentCommand = async ( input: CreateComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/components"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/components"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; if (input.componentToCreate !== undefined) { @@ -160,16 +152,8 @@ export const se_CreateComponentCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -179,24 +163,15 @@ export const se_CreateFormCommand = async ( input: CreateFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/forms"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/forms"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; if (input.formToCreate !== undefined) { @@ -206,16 +181,8 @@ export const se_CreateFormCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -225,24 +192,15 @@ export const se_CreateThemeCommand = async ( input: CreateThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/themes"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/themes"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; if (input.themeToCreate !== undefined) { @@ -252,16 +210,8 @@ export const se_CreateThemeCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -271,31 +221,15 @@ export const se_DeleteComponentCommand = async ( input: DeleteComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/components/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/components/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -305,31 +239,15 @@ export const se_DeleteFormCommand = async ( input: DeleteFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/forms/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/forms/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -339,31 +257,15 @@ export const se_DeleteThemeCommand = async ( input: DeleteThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/themes/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/themes/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -373,12 +275,12 @@ export const se_ExchangeCodeForTokenCommand = async ( input: ExchangeCodeForTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tokens/{provider}"; - resolvedPath = __resolvedPath(resolvedPath, input, "provider", () => input.provider!, "{provider}", false); + b.bp("/tokens/{provider}"); + b.p("provider", () => input.provider!, "{provider}", false); let body: any; if (input.request !== undefined) { body = _json(input.request); @@ -387,15 +289,8 @@ export const se_ExchangeCodeForTokenCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -405,34 +300,17 @@ export const se_ExportComponentsCommand = async ( input: ExportComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/export/app/{appId}/environment/{environmentName}/components"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/export/app/{appId}/environment/{environmentName}/components"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -442,34 +320,17 @@ export const se_ExportFormsCommand = async ( input: ExportFormsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/export/app/{appId}/environment/{environmentName}/forms"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/export/app/{appId}/environment/{environmentName}/forms"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -479,34 +340,17 @@ export const se_ExportThemesCommand = async ( input: ExportThemesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/export/app/{appId}/environment/{environmentName}/themes"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/export/app/{appId}/environment/{environmentName}/themes"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -516,31 +360,15 @@ export const se_GetCodegenJobCommand = async ( input: GetCodegenJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/codegen-jobs/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -550,31 +378,15 @@ export const se_GetComponentCommand = async ( input: GetComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/components/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/components/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -584,31 +396,15 @@ export const se_GetFormCommand = async ( input: GetFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/forms/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/forms/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -618,30 +414,14 @@ export const se_GetMetadataCommand = async ( input: GetMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/metadata"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -651,31 +431,15 @@ export const se_GetThemeCommand = async ( input: GetThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/themes/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/themes/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -685,35 +449,18 @@ export const se_ListCodegenJobsCommand = async ( input: ListCodegenJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/codegen-jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -723,35 +470,18 @@ export const se_ListComponentsCommand = async ( input: ListComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/components"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/components"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -761,35 +491,18 @@ export const se_ListFormsCommand = async ( input: ListFormsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/forms"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/forms"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -799,35 +512,18 @@ export const se_ListThemesCommand = async ( input: ListThemesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/themes"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/themes"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -837,23 +533,14 @@ export const se_PutMetadataFlagCommand = async ( input: PutMetadataFlagCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/metadata/features/{featureName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "featureName", () => input.featureName!, "{featureName}", false); + b.bp("/app/{appId}/environment/{environmentName}/metadata/features/{featureName}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("featureName", () => input.featureName!, "{featureName}", false); let body: any; if (input.body !== undefined) { body = _json(input.body); @@ -862,15 +549,8 @@ export const se_PutMetadataFlagCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -880,13 +560,12 @@ export const se_RefreshTokenCommand = async ( input: RefreshTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tokens/{provider}/refresh"; - resolvedPath = __resolvedPath(resolvedPath, input, "provider", () => input.provider!, "{provider}", false); + b.bp("/tokens/{provider}/refresh"); + b.p("provider", () => input.provider!, "{provider}", false); let body: any; if (input.refreshTokenBody !== undefined) { body = _json(input.refreshTokenBody); @@ -895,15 +574,8 @@ export const se_RefreshTokenCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -913,24 +585,15 @@ export const se_StartCodegenJobCommand = async ( input: StartCodegenJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/codegen-jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); + b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; if (input.codegenJobToCreate !== undefined) { @@ -940,16 +603,8 @@ export const se_StartCodegenJobCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -959,25 +614,16 @@ export const se_UpdateComponentCommand = async ( input: UpdateComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/components/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/components/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; if (input.updatedComponent !== undefined) { @@ -987,16 +633,8 @@ export const se_UpdateComponentCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1006,25 +644,16 @@ export const se_UpdateFormCommand = async ( input: UpdateFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/forms/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/forms/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; if (input.updatedForm !== undefined) { @@ -1034,16 +663,8 @@ export const se_UpdateFormCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1053,25 +674,16 @@ export const se_UpdateThemeCommand = async ( input: UpdateThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app/{appId}/environment/{environmentName}/themes/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentName", - () => input.environmentName!, - "{environmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/app/{appId}/environment/{environmentName}/themes/{id}"); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("environmentName", () => input.environmentName!, "{environmentName}", false); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; if (input.updatedTheme !== undefined) { @@ -1081,16 +693,8 @@ export const se_UpdateThemeCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3749,6 +3353,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cT = "clientToken"; +const _mR = "maxResults"; +const _nT = "nextToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-api-gateway/package.json b/clients/client-api-gateway/package.json index 4425e6ed8551..33aef4eefb3f 100644 --- a/clients/client-api-gateway/package.json +++ b/clients/client-api-gateway/package.json @@ -35,6 +35,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts index c22704c4f5a0..406a4398a446 100644 --- a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts +++ b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -294,11 +295,11 @@ export const se_CreateApiKeyCommand = async ( input: CreateApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys"; + b.bp("/apikeys"); let body: any; body = JSON.stringify( take(input, { @@ -312,15 +313,8 @@ export const se_CreateApiKeyCommand = async ( value: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -330,13 +324,12 @@ export const se_CreateAuthorizerCommand = async ( input: CreateAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/authorizers"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/authorizers"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -351,15 +344,8 @@ export const se_CreateAuthorizerCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -369,14 +355,12 @@ export const se_CreateBasePathMappingCommand = async ( input: CreateBasePathMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainnames/{domainName}/basepathmappings"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/domainnames/{domainName}/basepathmappings"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -385,15 +369,8 @@ export const se_CreateBasePathMappingCommand = async ( stage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -403,13 +380,12 @@ export const se_CreateDeploymentCommand = async ( input: CreateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/deployments"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/deployments"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -423,15 +399,8 @@ export const se_CreateDeploymentCommand = async ( variables: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -441,13 +410,12 @@ export const se_CreateDocumentationPartCommand = async ( input: CreateDocumentationPartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/documentation/parts"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/documentation/parts"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -455,15 +423,8 @@ export const se_CreateDocumentationPartCommand = async ( properties: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -473,14 +434,12 @@ export const se_CreateDocumentationVersionCommand = async ( input: CreateDocumentationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/documentation/versions"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -489,15 +448,8 @@ export const se_CreateDocumentationVersionCommand = async ( stageName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -507,11 +459,11 @@ export const se_CreateDomainNameCommand = async ( input: CreateDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames"; + b.bp("/domainnames"); let body: any; body = JSON.stringify( take(input, { @@ -530,15 +482,8 @@ export const se_CreateDomainNameCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -548,13 +493,12 @@ export const se_CreateModelCommand = async ( input: CreateModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/models"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/models"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -564,15 +508,8 @@ export const se_CreateModelCommand = async ( schema: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -582,13 +519,12 @@ export const se_CreateRequestValidatorCommand = async ( input: CreateRequestValidatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/requestvalidators"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/requestvalidators"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -597,15 +533,8 @@ export const se_CreateRequestValidatorCommand = async ( validateRequestParameters: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -615,30 +544,21 @@ export const se_CreateResourceCommand = async ( input: CreateResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{parentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "parentId", () => input.parentId!, "{parentId}", false); + b.bp("/restapis/{restApiId}/resources/{parentId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("parentId", () => input.parentId!, "{parentId}", false); let body: any; body = JSON.stringify( take(input, { pathPart: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -648,11 +568,11 @@ export const se_CreateRestApiCommand = async ( input: CreateRestApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis"; + b.bp("/restapis"); let body: any; body = JSON.stringify( take(input, { @@ -669,15 +589,8 @@ export const se_CreateRestApiCommand = async ( version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -687,13 +600,12 @@ export const se_CreateStageCommand = async ( input: CreateStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/stages"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/stages"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -709,15 +621,8 @@ export const se_CreateStageCommand = async ( variables: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -727,11 +632,11 @@ export const se_CreateUsagePlanCommand = async ( input: CreateUsagePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans"; + b.bp("/usageplans"); let body: any; body = JSON.stringify( take(input, { @@ -743,15 +648,8 @@ export const se_CreateUsagePlanCommand = async ( throttle: (_) => se_ThrottleSettings(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -761,13 +659,12 @@ export const se_CreateUsagePlanKeyCommand = async ( input: CreateUsagePlanKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}/keys"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.bp("/usageplans/{usagePlanId}/keys"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); let body: any; body = JSON.stringify( take(input, { @@ -775,15 +672,8 @@ export const se_CreateUsagePlanKeyCommand = async ( keyType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -793,11 +683,11 @@ export const se_CreateVpcLinkCommand = async ( input: CreateVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpclinks"; + b.bp("/vpclinks"); let body: any; body = JSON.stringify( take(input, { @@ -807,15 +697,8 @@ export const se_CreateVpcLinkCommand = async ( targetArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -825,20 +708,13 @@ export const se_DeleteApiKeyCommand = async ( input: DeleteApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys/{apiKey}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiKey", () => input.apiKey!, "{apiKey}", false); + b.bp("/apikeys/{apiKey}"); + b.p("apiKey", () => input.apiKey!, "{apiKey}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -848,30 +724,14 @@ export const se_DeleteAuthorizerCommand = async ( input: DeleteAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/authorizers/{authorizerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerId", - () => input.authorizerId!, - "{authorizerId}", - false - ); + b.bp("/restapis/{restApiId}/authorizers/{authorizerId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("authorizerId", () => input.authorizerId!, "{authorizerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -881,23 +741,14 @@ export const se_DeleteBasePathMappingCommand = async ( input: DeleteBasePathMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainnames/{domainName}/basepathmappings/{basePath}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "basePath", () => input.basePath!, "{basePath}", false); + b.bp("/domainnames/{domainName}/basepathmappings/{basePath}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); + b.p("basePath", () => input.basePath!, "{basePath}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -907,28 +758,13 @@ export const se_DeleteClientCertificateCommand = async ( input: DeleteClientCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clientcertificates/{clientCertificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "clientCertificateId", - () => input.clientCertificateId!, - "{clientCertificateId}", - false - ); + b.bp("/clientcertificates/{clientCertificateId}"); + b.p("clientCertificateId", () => input.clientCertificateId!, "{clientCertificateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -938,30 +774,14 @@ export const se_DeleteDeploymentCommand = async ( input: DeleteDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/deployments/{deploymentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deploymentId", - () => input.deploymentId!, - "{deploymentId}", - false - ); + b.bp("/restapis/{restApiId}/deployments/{deploymentId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("deploymentId", () => input.deploymentId!, "{deploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -971,30 +791,14 @@ export const se_DeleteDocumentationPartCommand = async ( input: DeleteDocumentationPartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/parts/{documentationPartId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "documentationPartId", - () => input.documentationPartId!, - "{documentationPartId}", - false - ); + b.bp("/restapis/{restApiId}/documentation/parts/{documentationPartId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("documentationPartId", () => input.documentationPartId!, "{documentationPartId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1004,30 +808,14 @@ export const se_DeleteDocumentationVersionCommand = async ( input: DeleteDocumentationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/versions/{documentationVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "documentationVersion", - () => input.documentationVersion!, - "{documentationVersion}", - false - ); + b.bp("/restapis/{restApiId}/documentation/versions/{documentationVersion}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("documentationVersion", () => input.documentationVersion!, "{documentationVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1037,21 +825,13 @@ export const se_DeleteDomainNameCommand = async ( input: DeleteDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/domainnames/{domainName}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1061,30 +841,14 @@ export const se_DeleteGatewayResponseCommand = async ( input: DeleteGatewayResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/gatewayresponses/{responseType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "responseType", - () => input.responseType!, - "{responseType}", - false - ); + b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("responseType", () => input.responseType!, "{responseType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1094,24 +858,15 @@ export const se_DeleteIntegrationCommand = async ( input: DeleteIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1121,25 +876,16 @@ export const se_DeleteIntegrationResponseCommand = async ( input: DeleteIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1149,24 +895,15 @@ export const se_DeleteMethodCommand = async ( input: DeleteMethodCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1176,25 +913,16 @@ export const se_DeleteMethodResponseCommand = async ( input: DeleteMethodResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1204,22 +932,14 @@ export const se_DeleteModelCommand = async ( input: DeleteModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/models/{modelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "modelName", () => input.modelName!, "{modelName}", false); + b.bp("/restapis/{restApiId}/models/{modelName}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("modelName", () => input.modelName!, "{modelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1229,30 +949,14 @@ export const se_DeleteRequestValidatorCommand = async ( input: DeleteRequestValidatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/requestvalidators/{requestValidatorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "requestValidatorId", - () => input.requestValidatorId!, - "{requestValidatorId}", - false - ); + b.bp("/restapis/{restApiId}/requestvalidators/{requestValidatorId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("requestValidatorId", () => input.requestValidatorId!, "{requestValidatorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1262,23 +966,14 @@ export const se_DeleteResourceCommand = async ( input: DeleteResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1288,20 +983,13 @@ export const se_DeleteRestApiCommand = async ( input: DeleteRestApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1311,22 +999,14 @@ export const se_DeleteStageCommand = async ( input: DeleteStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/stages/{stageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stageName", () => input.stageName!, "{stageName}", false); + b.bp("/restapis/{restApiId}/stages/{stageName}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("stageName", () => input.stageName!, "{stageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1336,21 +1016,13 @@ export const se_DeleteUsagePlanCommand = async ( input: DeleteUsagePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.bp("/usageplans/{usagePlanId}"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1360,22 +1032,14 @@ export const se_DeleteUsagePlanKeyCommand = async ( input: DeleteUsagePlanKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}/keys/{keyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "keyId", () => input.keyId!, "{keyId}", false); + b.bp("/usageplans/{usagePlanId}/keys/{keyId}"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.p("keyId", () => input.keyId!, "{keyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1385,20 +1049,13 @@ export const se_DeleteVpcLinkCommand = async ( input: DeleteVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpclinks/{vpcLinkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "vpcLinkId", () => input.vpcLinkId!, "{vpcLinkId}", false); + b.bp("/vpclinks/{vpcLinkId}"); + b.p("vpcLinkId", () => input.vpcLinkId!, "{vpcLinkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1408,23 +1065,14 @@ export const se_FlushStageAuthorizersCacheCommand = async ( input: FlushStageAuthorizersCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/stages/{stageName}/cache/authorizers"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stageName", () => input.stageName!, "{stageName}", false); + b.bp("/restapis/{restApiId}/stages/{stageName}/cache/authorizers"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("stageName", () => input.stageName!, "{stageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1434,23 +1082,14 @@ export const se_FlushStageCacheCommand = async ( input: FlushStageCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/stages/{stageName}/cache/data"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stageName", () => input.stageName!, "{stageName}", false); + b.bp("/restapis/{restApiId}/stages/{stageName}/cache/data"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("stageName", () => input.stageName!, "{stageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1460,11 +1099,11 @@ export const se_GenerateClientCertificateCommand = async ( input: GenerateClientCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clientcertificates"; + b.bp("/clientcertificates"); let body: any; body = JSON.stringify( take(input, { @@ -1472,15 +1111,8 @@ export const se_GenerateClientCertificateCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1490,22 +1122,15 @@ export const se_GetAccountCommand = async ( input: GetAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account"; + b.bp("/account"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1515,24 +1140,16 @@ export const se_GetApiKeyCommand = async ( input: GetApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys/{apiKey}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiKey", () => input.apiKey!, "{apiKey}", false); + b.bp("/apikeys/{apiKey}"); + b.p("apiKey", () => input.apiKey!, "{apiKey}", false); const query: any = map({ - includeValue: [() => input.includeValue !== void 0, () => input.includeValue!.toString()], + [_iV]: [() => input.includeValue !== void 0, () => input[_iV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1542,27 +1159,19 @@ export const se_GetApiKeysCommand = async ( input: GetApiKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys"; + b.bp("/apikeys"); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - name: [, input.nameQuery!], - customerId: [, input.customerId!], - includeValues: [() => input.includeValues !== void 0, () => input.includeValues!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_n]: [, input[_nQ]!], + [_cI]: [, input[_cI]!], + [_iVn]: [() => input.includeValues !== void 0, () => input[_iVn]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1572,30 +1181,14 @@ export const se_GetAuthorizerCommand = async ( input: GetAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/authorizers/{authorizerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerId", - () => input.authorizerId!, - "{authorizerId}", - false - ); + b.bp("/restapis/{restApiId}/authorizers/{authorizerId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("authorizerId", () => input.authorizerId!, "{authorizerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1605,26 +1198,17 @@ export const se_GetAuthorizersCommand = async ( input: GetAuthorizersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/authorizers"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/authorizers"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1634,23 +1218,14 @@ export const se_GetBasePathMappingCommand = async ( input: GetBasePathMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainnames/{domainName}/basepathmappings/{basePath}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "basePath", () => input.basePath!, "{basePath}", false); + b.bp("/domainnames/{domainName}/basepathmappings/{basePath}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); + b.p("basePath", () => input.basePath!, "{basePath}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1660,27 +1235,17 @@ export const se_GetBasePathMappingsCommand = async ( input: GetBasePathMappingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainnames/{domainName}/basepathmappings"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/domainnames/{domainName}/basepathmappings"); + b.p("domainName", () => input.domainName!, "{domainName}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1690,28 +1255,13 @@ export const se_GetClientCertificateCommand = async ( input: GetClientCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clientcertificates/{clientCertificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "clientCertificateId", - () => input.clientCertificateId!, - "{clientCertificateId}", - false - ); + b.bp("/clientcertificates/{clientCertificateId}"); + b.p("clientCertificateId", () => input.clientCertificateId!, "{clientCertificateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1721,24 +1271,16 @@ export const se_GetClientCertificatesCommand = async ( input: GetClientCertificatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clientcertificates"; + b.bp("/clientcertificates"); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1748,34 +1290,17 @@ export const se_GetDeploymentCommand = async ( input: GetDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/deployments/{deploymentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deploymentId", - () => input.deploymentId!, - "{deploymentId}", - false - ); + b.bp("/restapis/{restApiId}/deployments/{deploymentId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("deploymentId", () => input.deploymentId!, "{deploymentId}", false); const query: any = map({ - embed: [() => input.embed !== void 0, () => (input.embed! || []).map((_entry) => _entry as any)], + [_e]: [() => input.embed !== void 0, () => (input[_e]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1785,26 +1310,17 @@ export const se_GetDeploymentsCommand = async ( input: GetDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/deployments"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/deployments"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1814,30 +1330,14 @@ export const se_GetDocumentationPartCommand = async ( input: GetDocumentationPartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/parts/{documentationPartId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "documentationPartId", - () => input.documentationPartId!, - "{documentationPartId}", - false - ); + b.bp("/restapis/{restApiId}/documentation/parts/{documentationPartId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("documentationPartId", () => input.documentationPartId!, "{documentationPartId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1847,30 +1347,21 @@ export const se_GetDocumentationPartsCommand = async ( input: GetDocumentationPartsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/documentation/parts"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/documentation/parts"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - type: [, input.type!], - name: [, input.nameQuery!], - path: [, input.path!], - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - locationStatus: [, input.locationStatus!], + [_t]: [, input[_t]!], + [_n]: [, input[_nQ]!], + [_pa]: [, input[_pa]!], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_lS]: [, input[_lS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1880,30 +1371,14 @@ export const se_GetDocumentationVersionCommand = async ( input: GetDocumentationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/versions/{documentationVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "documentationVersion", - () => input.documentationVersion!, - "{documentationVersion}", - false - ); + b.bp("/restapis/{restApiId}/documentation/versions/{documentationVersion}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("documentationVersion", () => input.documentationVersion!, "{documentationVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1913,27 +1388,17 @@ export const se_GetDocumentationVersionsCommand = async ( input: GetDocumentationVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/documentation/versions"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1943,21 +1408,13 @@ export const se_GetDomainNameCommand = async ( input: GetDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/domainnames/{domainName}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1967,24 +1424,16 @@ export const se_GetDomainNamesCommand = async ( input: GetDomainNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames"; + b.bp("/domainnames"); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1994,30 +1443,20 @@ export const se_GetExportCommand = async ( input: GetExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - accept: input.accepts!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/stages/{stageName}/exports/{exportType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stageName", () => input.stageName!, "{stageName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "exportType", () => input.exportType!, "{exportType}", false); + [_ac]: input[_a]!, + }); + b.bp("/restapis/{restApiId}/stages/{stageName}/exports/{exportType}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("stageName", () => input.stageName!, "{stageName}", false); + b.p("exportType", () => input.exportType!, "{exportType}", false); const query: any = map({ ...convertMap(input.parameters), }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2027,30 +1466,14 @@ export const se_GetGatewayResponseCommand = async ( input: GetGatewayResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/gatewayresponses/{responseType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "responseType", - () => input.responseType!, - "{responseType}", - false - ); + b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("responseType", () => input.responseType!, "{responseType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2060,26 +1483,17 @@ export const se_GetGatewayResponsesCommand = async ( input: GetGatewayResponsesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/gatewayresponses"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/gatewayresponses"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2089,24 +1503,15 @@ export const se_GetIntegrationCommand = async ( input: GetIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2116,25 +1521,16 @@ export const se_GetIntegrationResponseCommand = async ( input: GetIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2144,24 +1540,15 @@ export const se_GetMethodCommand = async ( input: GetMethodCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2171,25 +1558,16 @@ export const se_GetMethodResponseCommand = async ( input: GetMethodResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2199,26 +1577,17 @@ export const se_GetModelCommand = async ( input: GetModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/models/{modelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "modelName", () => input.modelName!, "{modelName}", false); + b.bp("/restapis/{restApiId}/models/{modelName}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("modelName", () => input.modelName!, "{modelName}", false); const query: any = map({ - flatten: [() => input.flatten !== void 0, () => input.flatten!.toString()], + [_f]: [() => input.flatten !== void 0, () => input[_f]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2228,26 +1597,17 @@ export const se_GetModelsCommand = async ( input: GetModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/models"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/models"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2257,23 +1617,14 @@ export const se_GetModelTemplateCommand = async ( input: GetModelTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/models/{modelName}/default_template"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "modelName", () => input.modelName!, "{modelName}", false); + b.bp("/restapis/{restApiId}/models/{modelName}/default_template"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("modelName", () => input.modelName!, "{modelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2283,30 +1634,14 @@ export const se_GetRequestValidatorCommand = async ( input: GetRequestValidatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/requestvalidators/{requestValidatorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "requestValidatorId", - () => input.requestValidatorId!, - "{requestValidatorId}", - false - ); + b.bp("/restapis/{restApiId}/requestvalidators/{requestValidatorId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("requestValidatorId", () => input.requestValidatorId!, "{requestValidatorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2316,26 +1651,17 @@ export const se_GetRequestValidatorsCommand = async ( input: GetRequestValidatorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/requestvalidators"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/requestvalidators"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2345,27 +1671,17 @@ export const se_GetResourceCommand = async ( input: GetResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); const query: any = map({ - embed: [() => input.embed !== void 0, () => (input.embed! || []).map((_entry) => _entry as any)], + [_e]: [() => input.embed !== void 0, () => (input[_e]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2375,27 +1691,18 @@ export const se_GetResourcesCommand = async ( input: GetResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/resources"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/resources"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - embed: [() => input.embed !== void 0, () => (input.embed! || []).map((_entry) => _entry as any)], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_e]: [() => input.embed !== void 0, () => (input[_e]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2405,20 +1712,13 @@ export const se_GetRestApiCommand = async ( input: GetRestApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2428,52 +1728,34 @@ export const se_GetRestApisCommand = async ( input: GetRestApisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis"; + b.bp("/restapis"); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** * serializeAws_restJson1GetSdkCommand */ export const se_GetSdkCommand = async (input: GetSdkCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/stages/{stageName}/sdks/{sdkType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stageName", () => input.stageName!, "{stageName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sdkType", () => input.sdkType!, "{sdkType}", false); + b.bp("/restapis/{restApiId}/stages/{stageName}/sdks/{sdkType}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("stageName", () => input.stageName!, "{stageName}", false); + b.p("sdkType", () => input.sdkType!, "{sdkType}", false); const query: any = map({ ...convertMap(input.parameters), }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2483,20 +1765,13 @@ export const se_GetSdkTypeCommand = async ( input: GetSdkTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdktypes/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/sdktypes/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2506,24 +1781,16 @@ export const se_GetSdkTypesCommand = async ( input: GetSdkTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdktypes"; + b.bp("/sdktypes"); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2533,22 +1800,14 @@ export const se_GetStageCommand = async ( input: GetStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/stages/{stageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stageName", () => input.stageName!, "{stageName}", false); + b.bp("/restapis/{restApiId}/stages/{stageName}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("stageName", () => input.stageName!, "{stageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2558,25 +1817,16 @@ export const se_GetStagesCommand = async ( input: GetStagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/stages"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/stages"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - deploymentId: [, input.deploymentId!], + [_dI]: [, input[_dI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2586,25 +1836,17 @@ export const se_GetTagsCommand = async ( input: GetTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2614,29 +1856,20 @@ export const se_GetUsageCommand = async ( input: GetUsageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}/usage"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.bp("/usageplans/{usagePlanId}/usage"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); const query: any = map({ - keyId: [, input.keyId!], - startDate: [, __expectNonNull(input.startDate!, `startDate`)], - endDate: [, __expectNonNull(input.endDate!, `endDate`)], - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_kI]: [, input[_kI]!], + [_sD]: [, __expectNonNull(input[_sD]!, `startDate`)], + [_eD]: [, __expectNonNull(input[_eD]!, `endDate`)], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2646,21 +1879,13 @@ export const se_GetUsagePlanCommand = async ( input: GetUsagePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.bp("/usageplans/{usagePlanId}"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2670,22 +1895,14 @@ export const se_GetUsagePlanKeyCommand = async ( input: GetUsagePlanKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}/keys/{keyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "keyId", () => input.keyId!, "{keyId}", false); + b.bp("/usageplans/{usagePlanId}/keys/{keyId}"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.p("keyId", () => input.keyId!, "{keyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2695,27 +1912,18 @@ export const se_GetUsagePlanKeysCommand = async ( input: GetUsagePlanKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}/keys"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.bp("/usageplans/{usagePlanId}/keys"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - name: [, input.nameQuery!], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_n]: [, input[_nQ]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2725,25 +1933,17 @@ export const se_GetUsagePlansCommand = async ( input: GetUsagePlansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans"; + b.bp("/usageplans"); const query: any = map({ - position: [, input.position!], - keyId: [, input.keyId!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_kI]: [, input[_kI]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2753,20 +1953,13 @@ export const se_GetVpcLinkCommand = async ( input: GetVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpclinks/{vpcLinkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "vpcLinkId", () => input.vpcLinkId!, "{vpcLinkId}", false); + b.bp("/vpclinks/{vpcLinkId}"); + b.p("vpcLinkId", () => input.vpcLinkId!, "{vpcLinkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2776,24 +1969,16 @@ export const se_GetVpcLinksCommand = async ( input: GetVpcLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpclinks"; + b.bp("/vpclinks"); const query: any = map({ - position: [, input.position!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_p]: [, input[_p]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2803,30 +1988,22 @@ export const se_ImportApiKeysCommand = async ( input: ImportApiKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys"; + b.bp("/apikeys"); const query: any = map({ - mode: [, "import"], - format: [, __expectNonNull(input.format!, `format`)], - failonwarnings: [() => input.failOnWarnings !== void 0, () => input.failOnWarnings!.toString()], + [_m]: [, "import"], + [_fo]: [, __expectNonNull(input[_fo]!, `format`)], + [_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW]!.toString()], }); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2836,31 +2013,22 @@ export const se_ImportDocumentationPartsCommand = async ( input: ImportDocumentationPartsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/documentation/parts"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}/documentation/parts"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ - mode: [, input.mode!], - failonwarnings: [() => input.failOnWarnings !== void 0, () => input.failOnWarnings!.toString()], + [_m]: [, input[_m]!], + [_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW]!.toString()], }); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2870,30 +2038,22 @@ export const se_ImportRestApiCommand = async ( input: ImportRestApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis"; + b.bp("/restapis"); const query: any = map({ - mode: [, "import"], + [_m]: [, "import"], ...convertMap(input.parameters), - failonwarnings: [() => input.failOnWarnings !== void 0, () => input.failOnWarnings!.toString()], + [_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW]!.toString()], }); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2903,22 +2063,13 @@ export const se_PutGatewayResponseCommand = async ( input: PutGatewayResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/gatewayresponses/{responseType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "responseType", - () => input.responseType!, - "{responseType}", - false - ); + b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("responseType", () => input.responseType!, "{responseType}", false); let body: any; body = JSON.stringify( take(input, { @@ -2927,15 +2078,8 @@ export const se_PutGatewayResponseCommand = async ( statusCode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2945,16 +2089,14 @@ export const se_PutIntegrationCommand = async ( input: PutIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; body = JSON.stringify( take(input, { @@ -2974,15 +2116,8 @@ export const se_PutIntegrationCommand = async ( uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2992,17 +2127,15 @@ export const se_PutIntegrationResponseCommand = async ( input: PutIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; body = JSON.stringify( take(input, { @@ -3012,15 +2145,8 @@ export const se_PutIntegrationResponseCommand = async ( selectionPattern: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3030,16 +2156,14 @@ export const se_PutMethodCommand = async ( input: PutMethodCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; body = JSON.stringify( take(input, { @@ -3053,15 +2177,8 @@ export const se_PutMethodCommand = async ( requestValidatorId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3071,17 +2188,15 @@ export const se_PutMethodResponseCommand = async ( input: PutMethodResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; body = JSON.stringify( take(input, { @@ -3089,15 +2204,8 @@ export const se_PutMethodResponseCommand = async ( responseParameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3107,31 +2215,23 @@ export const se_PutRestApiCommand = async ( input: PutRestApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); const query: any = map({ ...convertMap(input.parameters), - mode: [, input.mode!], - failonwarnings: [() => input.failOnWarnings !== void 0, () => input.failOnWarnings!.toString()], + [_m]: [, input[_m]!], + [_fa]: [() => input.failOnWarnings !== void 0, () => input[_fOW]!.toString()], }); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3141,27 +2241,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3171,22 +2264,13 @@ export const se_TestInvokeAuthorizerCommand = async ( input: TestInvokeAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/authorizers/{authorizerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerId", - () => input.authorizerId!, - "{authorizerId}", - false - ); + b.bp("/restapis/{restApiId}/authorizers/{authorizerId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("authorizerId", () => input.authorizerId!, "{authorizerId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3198,15 +2282,8 @@ export const se_TestInvokeAuthorizerCommand = async ( stageVariables: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3216,16 +2293,14 @@ export const se_TestInvokeMethodCommand = async ( input: TestInvokeMethodCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; body = JSON.stringify( take(input, { @@ -3237,15 +2312,8 @@ export const se_TestInvokeMethodCommand = async ( stageVariables: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3255,27 +2323,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3285,26 +2345,19 @@ export const se_UpdateAccountCommand = async ( input: UpdateAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account"; + b.bp("/account"); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3314,27 +2367,20 @@ export const se_UpdateApiKeyCommand = async ( input: UpdateApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys/{apiKey}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiKey", () => input.apiKey!, "{apiKey}", false); + b.bp("/apikeys/{apiKey}"); + b.p("apiKey", () => input.apiKey!, "{apiKey}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3344,37 +2390,21 @@ export const se_UpdateAuthorizerCommand = async ( input: UpdateAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/authorizers/{authorizerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerId", - () => input.authorizerId!, - "{authorizerId}", - false - ); + b.bp("/restapis/{restApiId}/authorizers/{authorizerId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("authorizerId", () => input.authorizerId!, "{authorizerId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3384,30 +2414,21 @@ export const se_UpdateBasePathMappingCommand = async ( input: UpdateBasePathMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainnames/{domainName}/basepathmappings/{basePath}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "basePath", () => input.basePath!, "{basePath}", false); + b.bp("/domainnames/{domainName}/basepathmappings/{basePath}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); + b.p("basePath", () => input.basePath!, "{basePath}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3417,35 +2438,20 @@ export const se_UpdateClientCertificateCommand = async ( input: UpdateClientCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clientcertificates/{clientCertificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "clientCertificateId", - () => input.clientCertificateId!, - "{clientCertificateId}", - false - ); + b.bp("/clientcertificates/{clientCertificateId}"); + b.p("clientCertificateId", () => input.clientCertificateId!, "{clientCertificateId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3455,37 +2461,21 @@ export const se_UpdateDeploymentCommand = async ( input: UpdateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/deployments/{deploymentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deploymentId", - () => input.deploymentId!, - "{deploymentId}", - false - ); + b.bp("/restapis/{restApiId}/deployments/{deploymentId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("deploymentId", () => input.deploymentId!, "{deploymentId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3495,37 +2485,21 @@ export const se_UpdateDocumentationPartCommand = async ( input: UpdateDocumentationPartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/parts/{documentationPartId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "documentationPartId", - () => input.documentationPartId!, - "{documentationPartId}", - false - ); + b.bp("/restapis/{restApiId}/documentation/parts/{documentationPartId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("documentationPartId", () => input.documentationPartId!, "{documentationPartId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3535,37 +2509,21 @@ export const se_UpdateDocumentationVersionCommand = async ( input: UpdateDocumentationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/documentation/versions/{documentationVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "documentationVersion", - () => input.documentationVersion!, - "{documentationVersion}", - false - ); + b.bp("/restapis/{restApiId}/documentation/versions/{documentationVersion}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("documentationVersion", () => input.documentationVersion!, "{documentationVersion}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3575,28 +2533,20 @@ export const se_UpdateDomainNameCommand = async ( input: UpdateDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/domainnames/{domainName}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3606,37 +2556,21 @@ export const se_UpdateGatewayResponseCommand = async ( input: UpdateGatewayResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/gatewayresponses/{responseType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "responseType", - () => input.responseType!, - "{responseType}", - false - ); + b.bp("/restapis/{restApiId}/gatewayresponses/{responseType}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("responseType", () => input.responseType!, "{responseType}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3646,31 +2580,22 @@ export const se_UpdateIntegrationCommand = async ( input: UpdateIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3680,32 +2605,23 @@ export const se_UpdateIntegrationResponseCommand = async ( input: UpdateIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/integration/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3715,31 +2631,22 @@ export const se_UpdateMethodCommand = async ( input: UpdateMethodCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3749,32 +2656,23 @@ export const se_UpdateMethodResponseCommand = async ( input: UpdateMethodResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "httpMethod", () => input.httpMethod!, "{httpMethod}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statusCode", () => input.statusCode!, "{statusCode}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}/methods/{httpMethod}/responses/{statusCode}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); + b.p("httpMethod", () => input.httpMethod!, "{httpMethod}", false); + b.p("statusCode", () => input.statusCode!, "{statusCode}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3784,29 +2682,21 @@ export const se_UpdateModelCommand = async ( input: UpdateModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/models/{modelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "modelName", () => input.modelName!, "{modelName}", false); + b.bp("/restapis/{restApiId}/models/{modelName}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("modelName", () => input.modelName!, "{modelName}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3816,37 +2706,21 @@ export const se_UpdateRequestValidatorCommand = async ( input: UpdateRequestValidatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/requestvalidators/{requestValidatorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "requestValidatorId", - () => input.requestValidatorId!, - "{requestValidatorId}", - false - ); + b.bp("/restapis/{restApiId}/requestvalidators/{requestValidatorId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("requestValidatorId", () => input.requestValidatorId!, "{requestValidatorId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3856,30 +2730,21 @@ export const se_UpdateResourceCommand = async ( input: UpdateResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restapis/{restApiId}/resources/{resourceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "resourceId", () => input.resourceId!, "{resourceId}", false); + b.bp("/restapis/{restApiId}/resources/{resourceId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("resourceId", () => input.resourceId!, "{resourceId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3889,27 +2754,20 @@ export const se_UpdateRestApiCommand = async ( input: UpdateRestApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); + b.bp("/restapis/{restApiId}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3919,29 +2777,21 @@ export const se_UpdateStageCommand = async ( input: UpdateStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restapis/{restApiId}/stages/{stageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "restApiId", () => input.restApiId!, "{restApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stageName", () => input.stageName!, "{stageName}", false); + b.bp("/restapis/{restApiId}/stages/{stageName}"); + b.p("restApiId", () => input.restApiId!, "{restApiId}", false); + b.p("stageName", () => input.stageName!, "{stageName}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3951,30 +2801,21 @@ export const se_UpdateUsageCommand = async ( input: UpdateUsageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/usageplans/{usagePlanId}/keys/{keyId}/usage"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "keyId", () => input.keyId!, "{keyId}", false); + b.bp("/usageplans/{usagePlanId}/keys/{keyId}/usage"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.p("keyId", () => input.keyId!, "{keyId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3984,28 +2825,20 @@ export const se_UpdateUsagePlanCommand = async ( input: UpdateUsagePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans/{usagePlanId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); + b.bp("/usageplans/{usagePlanId}"); + b.p("usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4015,27 +2848,20 @@ export const se_UpdateVpcLinkCommand = async ( input: UpdateVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpclinks/{vpcLinkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "vpcLinkId", () => input.vpcLinkId!, "{vpcLinkId}", false); + b.bp("/vpclinks/{vpcLinkId}"); + b.p("vpcLinkId", () => input.vpcLinkId!, "{vpcLinkId}", false); let body: any; body = JSON.stringify( take(input, { patchOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7426,8 +6252,8 @@ export const de_GetExportCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], - contentDisposition: [, output.headers["content-disposition"]], + [_cT]: [, output.headers[_ct]], + [_cD]: [, output.headers[_cd]], }); const data: any = await collectBody(output.body, context); contents.body = data; @@ -8381,8 +7207,8 @@ export const de_GetSdkCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], - contentDisposition: [, output.headers["content-disposition"]], + [_cT]: [, output.headers[_ct]], + [_cD]: [, output.headers[_cd]], }); const data: any = await collectBody(output.body, context); contents.body = data; @@ -11558,7 +10384,7 @@ const de_LimitExceededExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -11597,7 +10423,7 @@ const de_ServiceUnavailableExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -11619,7 +10445,7 @@ const de_TooManyRequestsExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -12192,6 +11018,36 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "accepts"; +const _ac = "accept"; +const _cD = "contentDisposition"; +const _cI = "customerId"; +const _cT = "contentType"; +const _cd = "content-disposition"; +const _ct = "content-type"; +const _dI = "deploymentId"; +const _e = "embed"; +const _eD = "endDate"; +const _f = "flatten"; +const _fOW = "failOnWarnings"; +const _fa = "failonwarnings"; +const _fo = "format"; +const _iV = "includeValue"; +const _iVn = "includeValues"; +const _kI = "keyId"; +const _l = "limit"; +const _lS = "locationStatus"; +const _m = "mode"; +const _n = "name"; +const _nQ = "nameQuery"; +const _p = "position"; +const _pa = "path"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _sD = "startDate"; +const _t = "type"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-apigatewaymanagementapi/package.json b/clients/client-apigatewaymanagementapi/package.json index 13fb545c7d3a..41a302806a1f 100644 --- a/clients/client-apigatewaymanagementapi/package.json +++ b/clients/client-apigatewaymanagementapi/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-apigatewaymanagementapi/src/protocols/Aws_restJson1.ts b/clients/client-apigatewaymanagementapi/src/protocols/Aws_restJson1.ts index 82db9ca040d1..4d55644dcdcb 100644 --- a/clients/client-apigatewaymanagementapi/src/protocols/Aws_restJson1.ts +++ b/clients/client-apigatewaymanagementapi/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -38,28 +39,13 @@ export const se_DeleteConnectionCommand = async ( input: DeleteConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/@connections/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/@connections/{ConnectionId}"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -69,28 +55,13 @@ export const se_GetConnectionCommand = async ( input: GetConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/@connections/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/@connections/{ConnectionId}"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -100,33 +71,18 @@ export const se_PostToConnectionCommand = async ( input: PostToConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/@connections/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/@connections/{ConnectionId}"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; if (input.Data !== undefined) { body = input.Data; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-apigatewayv2/package.json b/clients/client-apigatewayv2/package.json index a85d09a09da6..5d96ca8973f4 100644 --- a/clients/client-apigatewayv2/package.json +++ b/clients/client-apigatewayv2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts b/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts index 44e1f9f44b9b..aa3054af3df5 100644 --- a/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -173,11 +174,11 @@ export const se_CreateApiCommand = async ( input: CreateApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis"; + b.bp("/v2/apis"); let body: any; body = JSON.stringify( take(input, { @@ -196,15 +197,8 @@ export const se_CreateApiCommand = async ( version: [, , `Version`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -214,13 +208,12 @@ export const se_CreateApiMappingCommand = async ( input: CreateApiMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}/apimappings"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}/apimappings"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -229,15 +222,8 @@ export const se_CreateApiMappingCommand = async ( stage: [, , `Stage`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -247,13 +233,12 @@ export const se_CreateAuthorizerCommand = async ( input: CreateAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/authorizers"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/authorizers"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -269,15 +254,8 @@ export const se_CreateAuthorizerCommand = async ( name: [, , `Name`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,13 +265,12 @@ export const se_CreateDeploymentCommand = async ( input: CreateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/deployments"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/deployments"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -301,15 +278,8 @@ export const se_CreateDeploymentCommand = async ( stageName: [, , `StageName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -319,11 +289,11 @@ export const se_CreateDomainNameCommand = async ( input: CreateDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames"; + b.bp("/v2/domainnames"); let body: any; body = JSON.stringify( take(input, { @@ -333,15 +303,8 @@ export const se_CreateDomainNameCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -351,13 +314,12 @@ export const se_CreateIntegrationCommand = async ( input: CreateIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/integrations"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/integrations"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -380,15 +342,8 @@ export const se_CreateIntegrationCommand = async ( tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -398,22 +353,13 @@ export const se_CreateIntegrationResponseCommand = async ( input: CreateIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -424,15 +370,8 @@ export const se_CreateIntegrationResponseCommand = async ( templateSelectionExpression: [, , `TemplateSelectionExpression`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -442,12 +381,12 @@ export const se_CreateModelCommand = async ( input: CreateModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/models"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -457,15 +396,8 @@ export const se_CreateModelCommand = async ( schema: [, , `Schema`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -475,12 +407,12 @@ export const se_CreateRouteCommand = async ( input: CreateRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/routes"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -497,15 +429,8 @@ export const se_CreateRouteCommand = async ( target: [, , `Target`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -515,15 +440,13 @@ export const se_CreateRouteResponseCommand = async ( input: CreateRouteResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); let body: any; body = JSON.stringify( take(input, { @@ -533,15 +456,8 @@ export const se_CreateRouteResponseCommand = async ( routeResponseKey: [, , `RouteResponseKey`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -551,12 +467,12 @@ export const se_CreateStageCommand = async ( input: CreateStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/stages"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -572,15 +488,8 @@ export const se_CreateStageCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -590,11 +499,11 @@ export const se_CreateVpcLinkCommand = async ( input: CreateVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks"; + b.bp("/v2/vpclinks"); let body: any; body = JSON.stringify( take(input, { @@ -604,15 +513,8 @@ export const se_CreateVpcLinkCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -622,23 +524,14 @@ export const se_DeleteAccessLogSettingsCommand = async ( input: DeleteAccessLogSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/stages/{StageName}/accesslogsettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StageName", () => input.StageName!, "{StageName}", false); + b.bp("/v2/apis/{ApiId}/stages/{StageName}/accesslogsettings"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("StageName", () => input.StageName!, "{StageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -648,20 +541,13 @@ export const se_DeleteApiCommand = async ( input: DeleteApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -671,30 +557,14 @@ export const se_DeleteApiMappingCommand = async ( input: DeleteApiMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApiMappingId", - () => input.ApiMappingId!, - "{ApiMappingId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}"); + b.p("ApiMappingId", () => input.ApiMappingId!, "{ApiMappingId}", false); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -704,30 +574,14 @@ export const se_DeleteAuthorizerCommand = async ( input: DeleteAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/authorizers/{AuthorizerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AuthorizerId", - () => input.AuthorizerId!, - "{AuthorizerId}", - false - ); + b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("AuthorizerId", () => input.AuthorizerId!, "{AuthorizerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -737,20 +591,13 @@ export const se_DeleteCorsConfigurationCommand = async ( input: DeleteCorsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/cors"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/cors"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -760,30 +607,14 @@ export const se_DeleteDeploymentCommand = async ( input: DeleteDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/deployments/{DeploymentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentId", - () => input.DeploymentId!, - "{DeploymentId}", - false - ); + b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("DeploymentId", () => input.DeploymentId!, "{DeploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -793,21 +624,13 @@ export const se_DeleteDomainNameCommand = async ( input: DeleteDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -817,30 +640,14 @@ export const se_DeleteIntegrationCommand = async ( input: DeleteIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -850,38 +657,15 @@ export const se_DeleteIntegrationResponseCommand = async ( input: DeleteIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationResponseId", - () => input.IntegrationResponseId!, - "{IntegrationResponseId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); + b.p("IntegrationResponseId", () => input.IntegrationResponseId!, "{IntegrationResponseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -891,22 +675,14 @@ export const se_DeleteModelCommand = async ( input: DeleteModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ModelId", () => input.ModelId!, "{ModelId}", false); + b.bp("/v2/apis/{ApiId}/models/{ModelId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("ModelId", () => input.ModelId!, "{ModelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -916,22 +692,14 @@ export const se_DeleteRouteCommand = async ( input: DeleteRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -941,31 +709,15 @@ export const se_DeleteRouteRequestParameterCommand = async ( input: DeleteRouteRequestParameterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/routes/{RouteId}/requestparameters/{RequestParameterKey}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RequestParameterKey", - () => input.RequestParameterKey!, - "{RequestParameterKey}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}/requestparameters/{RequestParameterKey}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RequestParameterKey", () => input.RequestParameterKey!, "{RequestParameterKey}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -975,31 +727,15 @@ export const se_DeleteRouteResponseCommand = async ( input: DeleteRouteResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RouteResponseId", - () => input.RouteResponseId!, - "{RouteResponseId}", - false - ); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); + b.p("RouteResponseId", () => input.RouteResponseId!, "{RouteResponseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1009,24 +745,15 @@ export const se_DeleteRouteSettingsCommand = async ( input: DeleteRouteSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/stages/{StageName}/routesettings/{RouteKey}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteKey", () => input.RouteKey!, "{RouteKey}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StageName", () => input.StageName!, "{StageName}", false); + b.bp("/v2/apis/{ApiId}/stages/{StageName}/routesettings/{RouteKey}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteKey", () => input.RouteKey!, "{RouteKey}", false); + b.p("StageName", () => input.StageName!, "{StageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1036,22 +763,14 @@ export const se_DeleteStageCommand = async ( input: DeleteStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StageName", () => input.StageName!, "{StageName}", false); + b.bp("/v2/apis/{ApiId}/stages/{StageName}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("StageName", () => input.StageName!, "{StageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1061,20 +780,13 @@ export const se_DeleteVpcLinkCommand = async ( input: DeleteVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "VpcLinkId", () => input.VpcLinkId!, "{VpcLinkId}", false); + b.bp("/v2/vpclinks/{VpcLinkId}"); + b.p("VpcLinkId", () => input.VpcLinkId!, "{VpcLinkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1084,56 +796,33 @@ export const se_ExportApiCommand = async ( input: ExportApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/exports/{Specification}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "Specification", - () => input.Specification!, - "{Specification}", - false - ); + b.bp("/v2/apis/{ApiId}/exports/{Specification}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("Specification", () => input.Specification!, "{Specification}", false); const query: any = map({ - exportVersion: [, input.ExportVersion!], - includeExtensions: [() => input.IncludeExtensions !== void 0, () => input.IncludeExtensions!.toString()], - outputType: [, __expectNonNull(input.OutputType!, `OutputType`)], - stageName: [, input.StageName!], + [_eV]: [, input[_EV]!], + [_iE]: [() => input.IncludeExtensions !== void 0, () => input[_IE]!.toString()], + [_oT]: [, __expectNonNull(input[_OT]!, `OutputType`)], + [_sN]: [, input[_SN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** * serializeAws_restJson1GetApiCommand */ export const se_GetApiCommand = async (input: GetApiCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1143,30 +832,14 @@ export const se_GetApiMappingCommand = async ( input: GetApiMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApiMappingId", - () => input.ApiMappingId!, - "{ApiMappingId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}"); + b.p("ApiMappingId", () => input.ApiMappingId!, "{ApiMappingId}", false); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1176,26 +849,17 @@ export const se_GetApiMappingsCommand = async ( input: GetApiMappingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}/apimappings"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}/apimappings"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1205,24 +869,16 @@ export const se_GetApisCommand = async ( input: GetApisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis"; + b.bp("/v2/apis"); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1232,30 +888,14 @@ export const se_GetAuthorizerCommand = async ( input: GetAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/authorizers/{AuthorizerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AuthorizerId", - () => input.AuthorizerId!, - "{AuthorizerId}", - false - ); + b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("AuthorizerId", () => input.AuthorizerId!, "{AuthorizerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1265,26 +905,17 @@ export const se_GetAuthorizersCommand = async ( input: GetAuthorizersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/authorizers"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/authorizers"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1294,30 +925,14 @@ export const se_GetDeploymentCommand = async ( input: GetDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/deployments/{DeploymentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentId", - () => input.DeploymentId!, - "{DeploymentId}", - false - ); + b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("DeploymentId", () => input.DeploymentId!, "{DeploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1327,26 +942,17 @@ export const se_GetDeploymentsCommand = async ( input: GetDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/deployments"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/deployments"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1356,21 +962,13 @@ export const se_GetDomainNameCommand = async ( input: GetDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1380,24 +978,16 @@ export const se_GetDomainNamesCommand = async ( input: GetDomainNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames"; + b.bp("/v2/domainnames"); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1407,30 +997,14 @@ export const se_GetIntegrationCommand = async ( input: GetIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1440,38 +1014,15 @@ export const se_GetIntegrationResponseCommand = async ( input: GetIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationResponseId", - () => input.IntegrationResponseId!, - "{IntegrationResponseId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); + b.p("IntegrationResponseId", () => input.IntegrationResponseId!, "{IntegrationResponseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1481,35 +1032,18 @@ export const se_GetIntegrationResponsesCommand = async ( input: GetIntegrationResponsesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1519,26 +1053,17 @@ export const se_GetIntegrationsCommand = async ( input: GetIntegrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/integrations"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/integrations"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1548,22 +1073,14 @@ export const se_GetModelCommand = async ( input: GetModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ModelId", () => input.ModelId!, "{ModelId}", false); + b.bp("/v2/apis/{ApiId}/models/{ModelId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("ModelId", () => input.ModelId!, "{ModelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1573,25 +1090,17 @@ export const se_GetModelsCommand = async ( input: GetModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/models"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1601,23 +1110,14 @@ export const se_GetModelTemplateCommand = async ( input: GetModelTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/models/{ModelId}/template"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ModelId", () => input.ModelId!, "{ModelId}", false); + b.bp("/v2/apis/{ApiId}/models/{ModelId}/template"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("ModelId", () => input.ModelId!, "{ModelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1627,22 +1127,14 @@ export const se_GetRouteCommand = async ( input: GetRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1652,31 +1144,15 @@ export const se_GetRouteResponseCommand = async ( input: GetRouteResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RouteResponseId", - () => input.RouteResponseId!, - "{RouteResponseId}", - false - ); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); + b.p("RouteResponseId", () => input.RouteResponseId!, "{RouteResponseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1686,28 +1162,18 @@ export const se_GetRouteResponsesCommand = async ( input: GetRouteResponsesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1717,25 +1183,17 @@ export const se_GetRoutesCommand = async ( input: GetRoutesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/routes"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1745,22 +1203,14 @@ export const se_GetStageCommand = async ( input: GetStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StageName", () => input.StageName!, "{StageName}", false); + b.bp("/v2/apis/{ApiId}/stages/{StageName}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("StageName", () => input.StageName!, "{StageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1770,25 +1220,17 @@ export const se_GetStagesCommand = async ( input: GetStagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}/stages"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1798,20 +1240,13 @@ export const se_GetTagsCommand = async ( input: GetTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v2/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1821,20 +1256,13 @@ export const se_GetVpcLinkCommand = async ( input: GetVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "VpcLinkId", () => input.VpcLinkId!, "{VpcLinkId}", false); + b.bp("/v2/vpclinks/{VpcLinkId}"); + b.p("VpcLinkId", () => input.VpcLinkId!, "{VpcLinkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1844,24 +1272,16 @@ export const se_GetVpcLinksCommand = async ( input: GetVpcLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks"; + b.bp("/v2/vpclinks"); const query: any = map({ - maxResults: [, input.MaxResults!], - nextToken: [, input.NextToken!], + [_mR]: [, input[_MR]!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1871,14 +1291,14 @@ export const se_ImportApiCommand = async ( input: ImportApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis"; + b.bp("/v2/apis"); const query: any = map({ - basepath: [, input.Basepath!], - failOnWarnings: [() => input.FailOnWarnings !== void 0, () => input.FailOnWarnings!.toString()], + [_b]: [, input[_B]!], + [_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW]!.toString()], }); let body: any; body = JSON.stringify( @@ -1886,16 +1306,8 @@ export const se_ImportApiCommand = async ( body: [, , `Body`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1905,15 +1317,15 @@ export const se_ReimportApiCommand = async ( input: ReimportApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); const query: any = map({ - basepath: [, input.Basepath!], - failOnWarnings: [() => input.FailOnWarnings !== void 0, () => input.FailOnWarnings!.toString()], + [_b]: [, input[_B]!], + [_fOW]: [() => input.FailOnWarnings !== void 0, () => input[_FOW]!.toString()], }); let body: any; body = JSON.stringify( @@ -1921,16 +1333,8 @@ export const se_ReimportApiCommand = async ( body: [, , `Body`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1940,23 +1344,14 @@ export const se_ResetAuthorizersCacheCommand = async ( input: ResetAuthorizersCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/stages/{StageName}/cache/authorizers"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StageName", () => input.StageName!, "{StageName}", false); + b.bp("/v2/apis/{ApiId}/stages/{StageName}/cache/authorizers"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("StageName", () => input.StageName!, "{StageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1966,27 +1361,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v2/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1996,27 +1384,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v2/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2026,12 +1406,12 @@ export const se_UpdateApiCommand = async ( input: UpdateApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); + b.bp("/v2/apis/{ApiId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2048,15 +1428,8 @@ export const se_UpdateApiCommand = async ( version: [, , `Version`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2066,22 +1439,13 @@ export const se_UpdateApiMappingCommand = async ( input: UpdateApiMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApiMappingId", - () => input.ApiMappingId!, - "{ApiMappingId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}/apimappings/{ApiMappingId}"); + b.p("ApiMappingId", () => input.ApiMappingId!, "{ApiMappingId}", false); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2090,15 +1454,8 @@ export const se_UpdateApiMappingCommand = async ( stage: [, , `Stage`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2108,22 +1465,13 @@ export const se_UpdateAuthorizerCommand = async ( input: UpdateAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/authorizers/{AuthorizerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AuthorizerId", - () => input.AuthorizerId!, - "{AuthorizerId}", - false - ); + b.bp("/v2/apis/{ApiId}/authorizers/{AuthorizerId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("AuthorizerId", () => input.AuthorizerId!, "{AuthorizerId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2139,15 +1487,8 @@ export const se_UpdateAuthorizerCommand = async ( name: [, , `Name`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2157,37 +1498,21 @@ export const se_UpdateDeploymentCommand = async ( input: UpdateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/deployments/{DeploymentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentId", - () => input.DeploymentId!, - "{DeploymentId}", - false - ); + b.bp("/v2/apis/{ApiId}/deployments/{DeploymentId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("DeploymentId", () => input.DeploymentId!, "{DeploymentId}", false); let body: any; body = JSON.stringify( take(input, { description: [, , `Description`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2197,13 +1522,12 @@ export const se_UpdateDomainNameCommand = async ( input: UpdateDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/v2/domainnames/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2211,15 +1535,8 @@ export const se_UpdateDomainNameCommand = async ( mutualTlsAuthentication: [, (_) => se_MutualTlsAuthenticationInput(_, context), `MutualTlsAuthentication`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2229,22 +1546,13 @@ export const se_UpdateIntegrationCommand = async ( input: UpdateIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2267,15 +1575,8 @@ export const se_UpdateIntegrationCommand = async ( tlsConfig: [, (_) => se_TlsConfigInput(_, context), `TlsConfig`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2285,30 +1586,14 @@ export const se_UpdateIntegrationResponseCommand = async ( input: UpdateIntegrationResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationId", - () => input.IntegrationId!, - "{IntegrationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationResponseId", - () => input.IntegrationResponseId!, - "{IntegrationResponseId}", - false - ); + b.bp("/v2/apis/{ApiId}/integrations/{IntegrationId}/integrationresponses/{IntegrationResponseId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("IntegrationId", () => input.IntegrationId!, "{IntegrationId}", false); + b.p("IntegrationResponseId", () => input.IntegrationResponseId!, "{IntegrationResponseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2319,15 +1604,8 @@ export const se_UpdateIntegrationResponseCommand = async ( templateSelectionExpression: [, , `TemplateSelectionExpression`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2337,14 +1615,13 @@ export const se_UpdateModelCommand = async ( input: UpdateModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/models/{ModelId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ModelId", () => input.ModelId!, "{ModelId}", false); + b.bp("/v2/apis/{ApiId}/models/{ModelId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("ModelId", () => input.ModelId!, "{ModelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2354,15 +1631,8 @@ export const se_UpdateModelCommand = async ( schema: [, , `Schema`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2372,14 +1642,13 @@ export const se_UpdateRouteCommand = async ( input: UpdateRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/routes/{RouteId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2396,15 +1665,8 @@ export const se_UpdateRouteCommand = async ( target: [, , `Target`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2414,23 +1676,14 @@ export const se_UpdateRouteResponseCommand = async ( input: UpdateRouteResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RouteId", () => input.RouteId!, "{RouteId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RouteResponseId", - () => input.RouteResponseId!, - "{RouteResponseId}", - false - ); + b.bp("/v2/apis/{ApiId}/routes/{RouteId}/routeresponses/{RouteResponseId}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("RouteId", () => input.RouteId!, "{RouteId}", false); + b.p("RouteResponseId", () => input.RouteResponseId!, "{RouteResponseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2440,15 +1693,8 @@ export const se_UpdateRouteResponseCommand = async ( routeResponseKey: [, , `RouteResponseKey`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2458,14 +1704,13 @@ export const se_UpdateStageCommand = async ( input: UpdateStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis/{ApiId}/stages/{StageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ApiId", () => input.ApiId!, "{ApiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StageName", () => input.StageName!, "{StageName}", false); + b.bp("/v2/apis/{ApiId}/stages/{StageName}"); + b.p("ApiId", () => input.ApiId!, "{ApiId}", false); + b.p("StageName", () => input.StageName!, "{StageName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2479,15 +1724,8 @@ export const se_UpdateStageCommand = async ( stageVariables: [, (_) => _json(_), `StageVariables`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2497,27 +1735,20 @@ export const se_UpdateVpcLinkCommand = async ( input: UpdateVpcLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks/{VpcLinkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "VpcLinkId", () => input.VpcLinkId!, "{VpcLinkId}", false); + b.bp("/v2/vpclinks/{VpcLinkId}"); + b.p("VpcLinkId", () => input.VpcLinkId!, "{VpcLinkId}", false); let body: any; body = JSON.stringify( take(input, { name: [, , `Name`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7385,6 +6616,25 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _B = "Basepath"; +const _EV = "ExportVersion"; +const _FOW = "FailOnWarnings"; +const _IE = "IncludeExtensions"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _OT = "OutputType"; +const _SN = "StageName"; +const _TK = "TagKeys"; +const _b = "basepath"; +const _eV = "exportVersion"; +const _fOW = "failOnWarnings"; +const _iE = "includeExtensions"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _oT = "outputType"; +const _sN = "stageName"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-app-mesh/package.json b/clients/client-app-mesh/package.json index 74f31d95899e..5874d6af9f7b 100644 --- a/clients/client-app-mesh/package.json +++ b/clients/client-app-mesh/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts index 4213d076bdc9..7ec201025e98 100644 --- a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts +++ b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -270,24 +271,15 @@ export const se_CreateGatewayRouteCommand = async ( input: CreateGatewayRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes"); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -298,16 +290,8 @@ export const se_CreateGatewayRouteCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -317,11 +301,11 @@ export const se_CreateMeshCommand = async ( input: CreateMeshCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes"; + b.bp("/v20190125/meshes"); let body: any; body = JSON.stringify( take(input, { @@ -331,15 +315,8 @@ export const se_CreateMeshCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -349,24 +326,15 @@ export const se_CreateRouteCommand = async ( input: CreateRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes"); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -377,16 +345,8 @@ export const se_CreateRouteCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -396,16 +356,14 @@ export const se_CreateVirtualGatewayCommand = async ( input: CreateVirtualGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateways"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualGateways"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -416,16 +374,8 @@ export const se_CreateVirtualGatewayCommand = async ( virtualGatewayName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -435,15 +385,14 @@ export const se_CreateVirtualNodeCommand = async ( input: CreateVirtualNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}/virtualNodes"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualNodes"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -454,16 +403,8 @@ export const se_CreateVirtualNodeCommand = async ( virtualNodeName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -473,16 +414,14 @@ export const se_CreateVirtualRouterCommand = async ( input: CreateVirtualRouterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouters"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualRouters"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -493,16 +432,8 @@ export const se_CreateVirtualRouterCommand = async ( virtualRouterName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -512,16 +443,14 @@ export const se_CreateVirtualServiceCommand = async ( input: CreateVirtualServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualServices"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualServices"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -532,16 +461,8 @@ export const se_CreateVirtualServiceCommand = async ( virtualServiceName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -551,42 +472,18 @@ export const se_DeleteGatewayRouteCommand = async ( input: DeleteGatewayRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "gatewayRouteName", - () => input.gatewayRouteName!, - "{gatewayRouteName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}"); + b.p("gatewayRouteName", () => input.gatewayRouteName!, "{gatewayRouteName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -596,21 +493,13 @@ export const se_DeleteMeshCommand = async ( input: DeleteMeshCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}"); + b.p("meshName", () => input.meshName!, "{meshName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -620,35 +509,18 @@ export const se_DeleteRouteCommand = async ( input: DeleteRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "routeName", () => input.routeName!, "{routeName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}"); + b.p("routeName", () => input.routeName!, "{routeName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -658,34 +530,17 @@ export const se_DeleteVirtualGatewayCommand = async ( input: DeleteVirtualGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}"); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -695,34 +550,17 @@ export const se_DeleteVirtualNodeCommand = async ( input: DeleteVirtualNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualNodeName", - () => input.virtualNodeName!, - "{virtualNodeName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"); + b.p("virtualNodeName", () => input.virtualNodeName!, "{virtualNodeName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -732,34 +570,17 @@ export const se_DeleteVirtualRouterCommand = async ( input: DeleteVirtualRouterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}"); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -769,34 +590,17 @@ export const se_DeleteVirtualServiceCommand = async ( input: DeleteVirtualServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualServiceName", - () => input.virtualServiceName!, - "{virtualServiceName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}"); + b.p("virtualServiceName", () => input.virtualServiceName!, "{virtualServiceName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -806,42 +610,18 @@ export const se_DescribeGatewayRouteCommand = async ( input: DescribeGatewayRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "gatewayRouteName", - () => input.gatewayRouteName!, - "{gatewayRouteName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}"); + b.p("gatewayRouteName", () => input.gatewayRouteName!, "{gatewayRouteName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -851,25 +631,16 @@ export const se_DescribeMeshCommand = async ( input: DescribeMeshCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -879,35 +650,18 @@ export const se_DescribeRouteCommand = async ( input: DescribeRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "routeName", () => input.routeName!, "{routeName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}"); + b.p("routeName", () => input.routeName!, "{routeName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -917,34 +671,17 @@ export const se_DescribeVirtualGatewayCommand = async ( input: DescribeVirtualGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}"); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -954,34 +691,17 @@ export const se_DescribeVirtualNodeCommand = async ( input: DescribeVirtualNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualNodeName", - () => input.virtualNodeName!, - "{virtualNodeName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"); + b.p("virtualNodeName", () => input.virtualNodeName!, "{virtualNodeName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -991,34 +711,17 @@ export const se_DescribeVirtualRouterCommand = async ( input: DescribeVirtualRouterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}"); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1028,34 +731,17 @@ export const se_DescribeVirtualServiceCommand = async ( input: DescribeVirtualServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualServiceName", - () => input.virtualServiceName!, - "{virtualServiceName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}"); + b.p("virtualServiceName", () => input.virtualServiceName!, "{virtualServiceName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1065,36 +751,19 @@ export const se_ListGatewayRoutesCommand = async ( input: ListGatewayRoutesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes"); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - meshOwner: [, input.meshOwner!], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1104,24 +773,16 @@ export const se_ListMeshesCommand = async ( input: ListMeshesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes"; + b.bp("/v20190125/meshes"); const query: any = map({ - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1131,36 +792,19 @@ export const se_ListRoutesCommand = async ( input: ListRoutesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes"); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - meshOwner: [, input.meshOwner!], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1170,25 +814,17 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/tags"; + b.bp("/v20190125/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1198,28 +834,18 @@ export const se_ListVirtualGatewaysCommand = async ( input: ListVirtualGatewaysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateways"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualGateways"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - meshOwner: [, input.meshOwner!], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1229,27 +855,18 @@ export const se_ListVirtualNodesCommand = async ( input: ListVirtualNodesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}/virtualNodes"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualNodes"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - meshOwner: [, input.meshOwner!], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1259,28 +876,18 @@ export const se_ListVirtualRoutersCommand = async ( input: ListVirtualRoutersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouters"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualRouters"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - meshOwner: [, input.meshOwner!], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1290,28 +897,18 @@ export const se_ListVirtualServicesCommand = async ( input: ListVirtualServicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualServices"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualServices"); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - meshOwner: [, input.meshOwner!], + [_nT]: [, input[_nT]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_mO]: [, input[_mO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1321,13 +918,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/tag"; + b.bp("/v20190125/tag"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -1335,16 +932,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1354,13 +943,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/untag"; + b.bp("/v20190125/untag"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -1368,16 +957,8 @@ export const se_UntagResourceCommand = async ( tagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1387,32 +968,16 @@ export const se_UpdateGatewayRouteCommand = async ( input: UpdateGatewayRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "gatewayRouteName", - () => input.gatewayRouteName!, - "{gatewayRouteName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}"); + b.p("gatewayRouteName", () => input.gatewayRouteName!, "{gatewayRouteName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -1421,16 +986,8 @@ export const se_UpdateGatewayRouteCommand = async ( spec: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1440,13 +997,12 @@ export const se_UpdateMeshCommand = async ( input: UpdateMeshCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}"); + b.p("meshName", () => input.meshName!, "{meshName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1454,15 +1010,8 @@ export const se_UpdateMeshCommand = async ( spec: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1472,25 +1021,16 @@ export const se_UpdateRouteCommand = async ( input: UpdateRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "routeName", () => input.routeName!, "{routeName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); + b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}"); + b.p("routeName", () => input.routeName!, "{routeName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -1499,16 +1039,8 @@ export const se_UpdateRouteCommand = async ( spec: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1518,24 +1050,15 @@ export const se_UpdateVirtualGatewayCommand = async ( input: UpdateVirtualGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualGatewayName", - () => input.virtualGatewayName!, - "{virtualGatewayName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}"); + b.p("virtualGatewayName", () => input.virtualGatewayName!, "{virtualGatewayName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -1544,16 +1067,8 @@ export const se_UpdateVirtualGatewayCommand = async ( spec: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1563,24 +1078,15 @@ export const se_UpdateVirtualNodeCommand = async ( input: UpdateVirtualNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualNodeName", - () => input.virtualNodeName!, - "{virtualNodeName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}"); + b.p("virtualNodeName", () => input.virtualNodeName!, "{virtualNodeName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -1589,16 +1095,8 @@ export const se_UpdateVirtualNodeCommand = async ( spec: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1608,24 +1106,15 @@ export const se_UpdateVirtualRouterCommand = async ( input: UpdateVirtualRouterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualRouterName", - () => input.virtualRouterName!, - "{virtualRouterName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}"); + b.p("virtualRouterName", () => input.virtualRouterName!, "{virtualRouterName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -1634,16 +1123,8 @@ export const se_UpdateVirtualRouterCommand = async ( spec: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1653,24 +1134,15 @@ export const se_UpdateVirtualServiceCommand = async ( input: UpdateVirtualServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualServiceName", - () => input.virtualServiceName!, - "{virtualServiceName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName!, "{meshName}", false); + b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}"); + b.p("virtualServiceName", () => input.virtualServiceName!, "{virtualServiceName}", false); + b.p("meshName", () => input.meshName!, "{meshName}", false); const query: any = map({ - meshOwner: [, input.meshOwner!], + [_mO]: [, input[_mO]!], }); let body: any; body = JSON.stringify( @@ -1679,16 +1151,8 @@ export const se_UpdateVirtualServiceCommand = async ( spec: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5156,6 +4620,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _l = "limit"; +const _mO = "meshOwner"; +const _nT = "nextToken"; +const _rA = "resourceArn"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-appconfig/package.json b/clients/client-appconfig/package.json index b5168b21a470..35ed7d4ee63d 100644 --- a/clients/client-appconfig/package.json +++ b/clients/client-appconfig/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-appconfig/src/protocols/Aws_restJson1.ts b/clients/client-appconfig/src/protocols/Aws_restJson1.ts index 4e3b04028dad..faa715d9ed72 100644 --- a/clients/client-appconfig/src/protocols/Aws_restJson1.ts +++ b/clients/client-appconfig/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -156,11 +157,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -169,15 +170,8 @@ export const se_CreateApplicationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -187,21 +181,12 @@ export const se_CreateConfigurationProfileCommand = async ( input: CreateConfigurationProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/configurationprofiles"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -215,15 +200,8 @@ export const se_CreateConfigurationProfileCommand = async ( Validators: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -233,11 +211,11 @@ export const se_CreateDeploymentStrategyCommand = async ( input: CreateDeploymentStrategyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies"; + b.bp("/deploymentstrategies"); let body: any; body = JSON.stringify( take(input, { @@ -251,15 +229,8 @@ export const se_CreateDeploymentStrategyCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -269,21 +240,12 @@ export const se_CreateEnvironmentCommand = async ( input: CreateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/environments"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -293,15 +255,8 @@ export const se_CreateEnvironmentCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -311,15 +266,12 @@ export const se_CreateExtensionCommand = async ( input: CreateExtensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "latest-version-number": [ - () => isSerializableHeaderValue(input.LatestVersionNumber), - () => input.LatestVersionNumber!.toString(), - ], + [_lvn]: [() => isSerializableHeaderValue(input[_LVN]), () => input[_LVN]!.toString()], }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions"; + b.bp("/extensions"); let body: any; body = JSON.stringify( take(input, { @@ -330,15 +282,8 @@ export const se_CreateExtensionCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -348,11 +293,11 @@ export const se_CreateExtensionAssociationCommand = async ( input: CreateExtensionAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations"; + b.bp("/extensionassociations"); let body: any; body = JSON.stringify( take(input, { @@ -363,15 +308,8 @@ export const se_CreateExtensionAssociationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -381,48 +319,22 @@ export const se_CreateHostedConfigurationVersionCommand = async ( input: CreateHostedConfigurationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.ContentType! || "application/octet-stream", - description: input.Description!, - "latest-version-number": [ - () => isSerializableHeaderValue(input.LatestVersionNumber), - () => input.LatestVersionNumber!.toString(), - ], - versionlabel: input.VersionLabel!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); + [_ct]: input[_CT]! || "application/octet-stream", + [_d]: input[_D]!, + [_lvn]: [() => isSerializableHeaderValue(input[_LVN]), () => input[_LVN]!.toString()], + [_v]: input[_VL]!, + }); + b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); let body: any; if (input.Content !== undefined) { body = input.Content; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -432,28 +344,13 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -463,37 +360,14 @@ export const se_DeleteConfigurationProfileCommand = async ( input: DeleteConfigurationProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); + b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -503,29 +377,13 @@ export const se_DeleteDeploymentStrategyCommand = async ( input: DeleteDeploymentStrategyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/deployementstrategies/{DeploymentStrategyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentStrategyId", - () => input.DeploymentStrategyId!, - "{DeploymentStrategyId}", - false - ); + b.bp("/deployementstrategies/{DeploymentStrategyId}"); + b.p("DeploymentStrategyId", () => input.DeploymentStrategyId!, "{DeploymentStrategyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -535,37 +393,14 @@ export const se_DeleteEnvironmentCommand = async ( input: DeleteEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments/{EnvironmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentId", - () => input.EnvironmentId!, - "{EnvironmentId}", - false - ); + b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EnvironmentId", () => input.EnvironmentId!, "{EnvironmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -575,32 +410,16 @@ export const se_DeleteExtensionCommand = async ( input: DeleteExtensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ExtensionIdentifier", - () => input.ExtensionIdentifier!, - "{ExtensionIdentifier}", - false - ); + b.bp("/extensions/{ExtensionIdentifier}"); + b.p("ExtensionIdentifier", () => input.ExtensionIdentifier!, "{ExtensionIdentifier}", false); const query: any = map({ - version: [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], + [_ve]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -610,29 +429,13 @@ export const se_DeleteExtensionAssociationCommand = async ( input: DeleteExtensionAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/extensionassociations/{ExtensionAssociationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ExtensionAssociationId", - () => input.ExtensionAssociationId!, - "{ExtensionAssociationId}", - false - ); + b.bp("/extensionassociations/{ExtensionAssociationId}"); + b.p("ExtensionAssociationId", () => input.ExtensionAssociationId!, "{ExtensionAssociationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -642,45 +445,17 @@ export const se_DeleteHostedConfigurationVersionCommand = async ( input: DeleteHostedConfigurationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false + b.bp( + "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}" ); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -690,28 +465,13 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -721,36 +481,19 @@ export const se_GetConfigurationCommand = async ( input: GetConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{Application}/environments/{Environment}/configurations/{Configuration}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Application", () => input.Application!, "{Application}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Environment", () => input.Environment!, "{Environment}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "Configuration", - () => input.Configuration!, - "{Configuration}", - false - ); + b.bp("/applications/{Application}/environments/{Environment}/configurations/{Configuration}"); + b.p("Application", () => input.Application!, "{Application}", false); + b.p("Environment", () => input.Environment!, "{Environment}", false); + b.p("Configuration", () => input.Configuration!, "{Configuration}", false); const query: any = map({ - client_id: [, __expectNonNull(input.ClientId!, `ClientId`)], - client_configuration_version: [, input.ClientConfigurationVersion!], + [_ci]: [, __expectNonNull(input[_CI]!, `ClientId`)], + [_ccv]: [, input[_CCV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -760,37 +503,14 @@ export const se_GetConfigurationProfileCommand = async ( input: GetConfigurationProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); + b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -800,45 +520,15 @@ export const se_GetDeploymentCommand = async ( input: GetDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentId", - () => input.EnvironmentId!, - "{EnvironmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentNumber", - () => input.DeploymentNumber!.toString(), - "{DeploymentNumber}", - false - ); + b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EnvironmentId", () => input.EnvironmentId!, "{EnvironmentId}", false); + b.p("DeploymentNumber", () => input.DeploymentNumber!.toString(), "{DeploymentNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -848,29 +538,13 @@ export const se_GetDeploymentStrategyCommand = async ( input: GetDeploymentStrategyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/deploymentstrategies/{DeploymentStrategyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentStrategyId", - () => input.DeploymentStrategyId!, - "{DeploymentStrategyId}", - false - ); + b.bp("/deploymentstrategies/{DeploymentStrategyId}"); + b.p("DeploymentStrategyId", () => input.DeploymentStrategyId!, "{DeploymentStrategyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -880,37 +554,14 @@ export const se_GetEnvironmentCommand = async ( input: GetEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments/{EnvironmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentId", - () => input.EnvironmentId!, - "{EnvironmentId}", - false - ); + b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EnvironmentId", () => input.EnvironmentId!, "{EnvironmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -920,32 +571,16 @@ export const se_GetExtensionCommand = async ( input: GetExtensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ExtensionIdentifier", - () => input.ExtensionIdentifier!, - "{ExtensionIdentifier}", - false - ); + b.bp("/extensions/{ExtensionIdentifier}"); + b.p("ExtensionIdentifier", () => input.ExtensionIdentifier!, "{ExtensionIdentifier}", false); const query: any = map({ - version_number: [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -955,29 +590,13 @@ export const se_GetExtensionAssociationCommand = async ( input: GetExtensionAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/extensionassociations/{ExtensionAssociationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ExtensionAssociationId", - () => input.ExtensionAssociationId!, - "{ExtensionAssociationId}", - false - ); + b.bp("/extensionassociations/{ExtensionAssociationId}"); + b.p("ExtensionAssociationId", () => input.ExtensionAssociationId!, "{ExtensionAssociationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -987,45 +606,17 @@ export const se_GetHostedConfigurationVersionCommand = async ( input: GetHostedConfigurationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false + b.bp( + "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}" ); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1035,24 +626,16 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1062,35 +645,18 @@ export const se_ListConfigurationProfilesCommand = async ( input: ListConfigurationProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/configurationprofiles"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], - type: [, input.Type!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1100,42 +666,18 @@ export const se_ListDeploymentsCommand = async ( input: ListDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentId", - () => input.EnvironmentId!, - "{EnvironmentId}", - false - ); + b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EnvironmentId", () => input.EnvironmentId!, "{EnvironmentId}", false); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1145,24 +687,16 @@ export const se_ListDeploymentStrategiesCommand = async ( input: ListDeploymentStrategiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies"; + b.bp("/deploymentstrategies"); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1172,34 +706,17 @@ export const se_ListEnvironmentsCommand = async ( input: ListEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/environments"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1209,30 +726,19 @@ export const se_ListExtensionAssociationsCommand = async ( input: ListExtensionAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations"; + b.bp("/extensionassociations"); const query: any = map({ - resource_identifier: [, input.ResourceIdentifier!], - extension_identifier: [, input.ExtensionIdentifier!], - extension_version_number: [ - () => input.ExtensionVersionNumber !== void 0, - () => input.ExtensionVersionNumber!.toString(), - ], - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_ri]: [, input[_RI]!], + [_ei]: [, input[_EI]!], + [_evn]: [() => input.ExtensionVersionNumber !== void 0, () => input[_EVN]!.toString()], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1242,25 +748,17 @@ export const se_ListExtensionsCommand = async ( input: ListExtensionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions"; + b.bp("/extensions"); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], - name: [, input.Name!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], + [_n]: [, input[_N]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1270,43 +768,19 @@ export const se_ListHostedConfigurationVersionsCommand = async ( input: ListHostedConfigurationVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); + b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], - version_label: [, input.VersionLabel!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], + [_vl]: [, input[_VL]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1316,20 +790,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1339,29 +806,13 @@ export const se_StartDeploymentCommand = async ( input: StartDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentId", - () => input.EnvironmentId!, - "{EnvironmentId}", - false - ); + b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EnvironmentId", () => input.EnvironmentId!, "{EnvironmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1373,15 +824,8 @@ export const se_StartDeploymentCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1391,45 +835,15 @@ export const se_StopDeploymentCommand = async ( input: StopDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentId", - () => input.EnvironmentId!, - "{EnvironmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentNumber", - () => input.DeploymentNumber!.toString(), - "{DeploymentNumber}", - false - ); + b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EnvironmentId", () => input.EnvironmentId!, "{EnvironmentId}", false); + b.p("DeploymentNumber", () => input.DeploymentNumber!.toString(), "{DeploymentNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1439,27 +853,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1469,27 +876,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1499,20 +898,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1520,15 +911,8 @@ export const se_UpdateApplicationCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1538,29 +922,13 @@ export const se_UpdateConfigurationProfileCommand = async ( input: UpdateConfigurationProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); + b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1571,15 +939,8 @@ export const se_UpdateConfigurationProfileCommand = async ( Validators: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1589,21 +950,12 @@ export const se_UpdateDeploymentStrategyCommand = async ( input: UpdateDeploymentStrategyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/deploymentstrategies/{DeploymentStrategyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentStrategyId", - () => input.DeploymentStrategyId!, - "{DeploymentStrategyId}", - false - ); + b.bp("/deploymentstrategies/{DeploymentStrategyId}"); + b.p("DeploymentStrategyId", () => input.DeploymentStrategyId!, "{DeploymentStrategyId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1614,15 +966,8 @@ export const se_UpdateDeploymentStrategyCommand = async ( GrowthType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1632,29 +977,13 @@ export const se_UpdateEnvironmentCommand = async ( input: UpdateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/environments/{EnvironmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentId", - () => input.EnvironmentId!, - "{EnvironmentId}", - false - ); + b.bp("/applications/{ApplicationId}/environments/{EnvironmentId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EnvironmentId", () => input.EnvironmentId!, "{EnvironmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1663,15 +992,8 @@ export const se_UpdateEnvironmentCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1681,20 +1003,12 @@ export const se_UpdateExtensionCommand = async ( input: UpdateExtensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ExtensionIdentifier", - () => input.ExtensionIdentifier!, - "{ExtensionIdentifier}", - false - ); + b.bp("/extensions/{ExtensionIdentifier}"); + b.p("ExtensionIdentifier", () => input.ExtensionIdentifier!, "{ExtensionIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1704,15 +1018,8 @@ export const se_UpdateExtensionCommand = async ( VersionNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1722,36 +1029,20 @@ export const se_UpdateExtensionAssociationCommand = async ( input: UpdateExtensionAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/extensionassociations/{ExtensionAssociationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ExtensionAssociationId", - () => input.ExtensionAssociationId!, - "{ExtensionAssociationId}", - false - ); + b.bp("/extensionassociations/{ExtensionAssociationId}"); + b.p("ExtensionAssociationId", () => input.ExtensionAssociationId!, "{ExtensionAssociationId}", false); let body: any; body = JSON.stringify( take(input, { Parameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1761,41 +1052,17 @@ export const se_ValidateConfigurationCommand = async ( input: ValidateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/validators"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationProfileId", - () => input.ConfigurationProfileId!, - "{ConfigurationProfileId}", - false - ); + b.bp("/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/validators"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("ConfigurationProfileId", () => input.ConfigurationProfileId!, "{ConfigurationProfileId}", false); const query: any = map({ - configuration_version: [, __expectNonNull(input.ConfigurationVersion!, `ConfigurationVersion`)], + [_cv]: [, __expectNonNull(input[_CV]!, `ConfigurationVersion`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2174,16 +1441,13 @@ export const de_CreateHostedConfigurationVersionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ApplicationId: [, output.headers["application-id"]], - ConfigurationProfileId: [, output.headers["configuration-profile-id"]], - VersionNumber: [ - () => void 0 !== output.headers["version-number"], - () => __strictParseInt32(output.headers["version-number"]), - ], - Description: [, output.headers["description"]], - ContentType: [, output.headers["content-type"]], - VersionLabel: [, output.headers["versionlabel"]], - KmsKeyArn: [, output.headers["kmskeyarn"]], + [_AI]: [, output.headers[_ai]], + [_CPI]: [, output.headers[_cpi]], + [_VN]: [() => void 0 !== output.headers[_vn_], () => __strictParseInt32(output.headers[_vn_])], + [_D]: [, output.headers[_d]], + [_CT]: [, output.headers[_ct]], + [_VL]: [, output.headers[_v]], + [_KKA]: [, output.headers[_k]], }); const data: any = await collectBody(output.body, context); contents.Content = data; @@ -2647,8 +1911,8 @@ export const de_GetConfigurationCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ConfigurationVersion: [, output.headers["configuration-version"]], - ContentType: [, output.headers["content-type"]], + [_CV]: [, output.headers[_cv_]], + [_CT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.Content = data; @@ -3070,16 +2334,13 @@ export const de_GetHostedConfigurationVersionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ApplicationId: [, output.headers["application-id"]], - ConfigurationProfileId: [, output.headers["configuration-profile-id"]], - VersionNumber: [ - () => void 0 !== output.headers["version-number"], - () => __strictParseInt32(output.headers["version-number"]), - ], - Description: [, output.headers["description"]], - ContentType: [, output.headers["content-type"]], - VersionLabel: [, output.headers["versionlabel"]], - KmsKeyArn: [, output.headers["kmskeyarn"]], + [_AI]: [, output.headers[_ai]], + [_CPI]: [, output.headers[_cpi]], + [_VN]: [() => void 0 !== output.headers[_vn_], () => __strictParseInt32(output.headers[_vn_])], + [_D]: [, output.headers[_d]], + [_CT]: [, output.headers[_ct]], + [_VL]: [, output.headers[_v]], + [_KKA]: [, output.headers[_k]], }); const data: any = await collectBody(output.body, context); contents.Content = data; @@ -4553,6 +3814,49 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AI = "ApplicationId"; +const _CCV = "ClientConfigurationVersion"; +const _CI = "ClientId"; +const _CPI = "ConfigurationProfileId"; +const _CT = "ContentType"; +const _CV = "ConfigurationVersion"; +const _D = "Description"; +const _EI = "ExtensionIdentifier"; +const _EVN = "ExtensionVersionNumber"; +const _KKA = "KmsKeyArn"; +const _LVN = "LatestVersionNumber"; +const _MR = "MaxResults"; +const _N = "Name"; +const _NT = "NextToken"; +const _RI = "ResourceIdentifier"; +const _T = "Type"; +const _TK = "TagKeys"; +const _VL = "VersionLabel"; +const _VN = "VersionNumber"; +const _ai = "application-id"; +const _ccv = "client_configuration_version"; +const _ci = "client_id"; +const _cpi = "configuration-profile-id"; +const _ct = "content-type"; +const _cv = "configuration_version"; +const _cv_ = "configuration-version"; +const _d = "description"; +const _ei = "extension_identifier"; +const _evn = "extension_version_number"; +const _k = "kmskeyarn"; +const _lvn = "latest-version-number"; +const _mr = "max_results"; +const _n = "name"; +const _nt = "next_token"; +const _ri = "resource_identifier"; +const _t = "type"; +const _tK = "tagKeys"; +const _v = "versionlabel"; +const _ve = "version"; +const _vl = "version_label"; +const _vn = "version_number"; +const _vn_ = "version-number"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-appconfigdata/package.json b/clients/client-appconfigdata/package.json index 40ce40a63205..a239d08d8209 100644 --- a/clients/client-appconfigdata/package.json +++ b/clients/client-appconfigdata/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts b/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts index 8dca58a61519..812ad86af027 100644 --- a/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts +++ b/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -43,23 +44,15 @@ export const se_GetLatestConfigurationCommand = async ( input: GetLatestConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration"; + b.bp("/configuration"); const query: any = map({ - configuration_token: [, __expectNonNull(input.ConfigurationToken!, `ConfigurationToken`)], + [_ct]: [, __expectNonNull(input[_CT]!, `ConfigurationToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -69,11 +62,11 @@ export const se_StartConfigurationSessionCommand = async ( input: StartConfigurationSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationsessions"; + b.bp("/configurationsessions"); let body: any; body = JSON.stringify( take(input, { @@ -83,15 +76,8 @@ export const se_StartConfigurationSessionCommand = async ( RequiredMinimumPollIntervalInSeconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -106,13 +92,10 @@ export const de_GetLatestConfigurationCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - NextPollConfigurationToken: [, output.headers["next-poll-configuration-token"]], - NextPollIntervalInSeconds: [ - () => void 0 !== output.headers["next-poll-interval-in-seconds"], - () => __strictParseInt32(output.headers["next-poll-interval-in-seconds"]), - ], - ContentType: [, output.headers["content-type"]], - VersionLabel: [, output.headers["version-label"]], + [_NPCT]: [, output.headers[_npct]], + [_NPIIS]: [() => void 0 !== output.headers[_npiis], () => __strictParseInt32(output.headers[_npiis])], + [_CTo]: [, output.headers[_ct_]], + [_VL]: [, output.headers[_vl]], }); const data: any = await collectBody(output.body, context); contents.Configuration = data; @@ -316,6 +299,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ConfigurationToken"; +const _CTo = "ContentType"; +const _NPCT = "NextPollConfigurationToken"; +const _NPIIS = "NextPollIntervalInSeconds"; +const _VL = "VersionLabel"; +const _ct = "configuration_token"; +const _ct_ = "content-type"; +const _npct = "next-poll-configuration-token"; +const _npiis = "next-poll-interval-in-seconds"; +const _vl = "version-label"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-appfabric/package.json b/clients/client-appfabric/package.json index 79cd10874d53..c4ddd19785a3 100644 --- a/clients/client-appfabric/package.json +++ b/clients/client-appfabric/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-appfabric/src/protocols/Aws_restJson1.ts b/clients/client-appfabric/src/protocols/Aws_restJson1.ts index 43965e4a9dc3..2f939933c46e 100644 --- a/clients/client-appfabric/src/protocols/Aws_restJson1.ts +++ b/clients/client-appfabric/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -126,11 +127,11 @@ export const se_BatchGetUserAccessTasksCommand = async ( input: BatchGetUserAccessTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/useraccess/batchget"; + b.bp("/useraccess/batchget"); let body: any; body = JSON.stringify( take(input, { @@ -138,15 +139,8 @@ export const se_BatchGetUserAccessTasksCommand = async ( taskIdList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -156,44 +150,21 @@ export const se_ConnectAppAuthorizationCommand = async ( input: ConnectAppAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appAuthorizationIdentifier", - () => input.appAuthorizationIdentifier!, - "{appAuthorizationIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier!, "{appAuthorizationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { authRequest: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,21 +174,12 @@ export const se_CreateAppAuthorizationCommand = async ( input: CreateAppAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/appauthorizations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/appauthorizations"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -229,15 +191,8 @@ export const se_CreateAppAuthorizationCommand = async ( tenant: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -247,11 +202,11 @@ export const se_CreateAppBundleCommand = async ( input: CreateAppBundleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles"; + b.bp("/appbundles"); let body: any; body = JSON.stringify( take(input, { @@ -260,15 +215,8 @@ export const se_CreateAppBundleCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -278,21 +226,12 @@ export const se_CreateIngestionCommand = async ( input: CreateIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -303,15 +242,8 @@ export const se_CreateIngestionCommand = async ( tenantId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -321,29 +253,13 @@ export const se_CreateIngestionDestinationCommand = async ( input: CreateIngestionDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -353,15 +269,8 @@ export const se_CreateIngestionDestinationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -371,37 +280,14 @@ export const se_DeleteAppAuthorizationCommand = async ( input: DeleteAppAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appAuthorizationIdentifier", - () => input.appAuthorizationIdentifier!, - "{appAuthorizationIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier!, "{appAuthorizationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -411,28 +297,13 @@ export const se_DeleteAppBundleCommand = async ( input: DeleteAppBundleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles/{appBundleIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -442,37 +313,14 @@ export const se_DeleteIngestionCommand = async ( input: DeleteIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -482,45 +330,22 @@ export const se_DeleteIngestionDestinationCommand = async ( input: DeleteIngestionDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false + b.bp( + "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}" ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); + b.p( "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier!, "{ingestionDestinationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -530,37 +355,14 @@ export const se_GetAppAuthorizationCommand = async ( input: GetAppAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appAuthorizationIdentifier", - () => input.appAuthorizationIdentifier!, - "{appAuthorizationIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier!, "{appAuthorizationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -570,28 +372,13 @@ export const se_GetAppBundleCommand = async ( input: GetAppBundleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles/{appBundleIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -601,37 +388,14 @@ export const se_GetIngestionCommand = async ( input: GetIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -641,45 +405,22 @@ export const se_GetIngestionDestinationCommand = async ( input: GetIngestionDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false + b.bp( + "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}" ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); + b.p( "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier!, "{ingestionDestinationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -689,34 +430,17 @@ export const se_ListAppAuthorizationsCommand = async ( input: ListAppAuthorizationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/appauthorizations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/appauthorizations"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -726,24 +450,16 @@ export const se_ListAppBundlesCommand = async ( input: ListAppBundlesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles"; + b.bp("/appbundles"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -753,42 +469,18 @@ export const se_ListIngestionDestinationsCommand = async ( input: ListIngestionDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -798,34 +490,17 @@ export const se_ListIngestionsCommand = async ( input: ListIngestionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -835,20 +510,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -858,37 +526,14 @@ export const se_StartIngestionCommand = async ( input: StartIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start"); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -898,11 +543,11 @@ export const se_StartUserAccessTasksCommand = async ( input: StartUserAccessTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/useraccess/start"; + b.bp("/useraccess/start"); let body: any; body = JSON.stringify( take(input, { @@ -910,15 +555,8 @@ export const se_StartUserAccessTasksCommand = async ( email: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -928,37 +566,14 @@ export const se_StopIngestionCommand = async ( input: StopIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop"); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -968,27 +583,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -998,27 +606,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1028,29 +628,13 @@ export const se_UpdateAppAuthorizationCommand = async ( input: UpdateAppAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appAuthorizationIdentifier", - () => input.appAuthorizationIdentifier!, - "{appAuthorizationIdentifier}", - false - ); + b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}"); + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier!, "{appAuthorizationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1058,15 +642,8 @@ export const se_UpdateAppAuthorizationCommand = async ( tenant: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1076,32 +653,16 @@ export const se_UpdateIngestionDestinationCommand = async ( input: UpdateIngestionDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "appBundleIdentifier", - () => input.appBundleIdentifier!, - "{appBundleIdentifier}", - false + b.bp( + "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}" ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionIdentifier", - () => input.ingestionIdentifier!, - "{ingestionIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("appBundleIdentifier", () => input.appBundleIdentifier!, "{appBundleIdentifier}", false); + b.p("ingestionIdentifier", () => input.ingestionIdentifier!, "{ingestionIdentifier}", false); + b.p( "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier!, "{ingestionDestinationIdentifier}", @@ -1113,15 +674,8 @@ export const se_UpdateIngestionDestinationCommand = async ( destinationConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2702,10 +2256,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2770,10 +2321,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2981,6 +2529,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-appflow/package.json b/clients/client-appflow/package.json index 3d538337069e..70b2ffe0a570 100644 --- a/clients/client-appflow/package.json +++ b/clients/client-appflow/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-appflow/src/protocols/Aws_restJson1.ts b/clients/client-appflow/src/protocols/Aws_restJson1.ts index 494876267b3d..31ec1234e02f 100644 --- a/clients/client-appflow/src/protocols/Aws_restJson1.ts +++ b/clients/client-appflow/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -224,12 +225,11 @@ export const se_CancelFlowExecutionsCommand = async ( input: CancelFlowExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancel-flow-executions"; + b.bp("/cancel-flow-executions"); let body: any; body = JSON.stringify( take(input, { @@ -237,15 +237,8 @@ export const se_CancelFlowExecutionsCommand = async ( flowName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -255,12 +248,11 @@ export const se_CreateConnectorProfileCommand = async ( input: CreateConnectorProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-connector-profile"; + b.bp("/create-connector-profile"); let body: any; body = JSON.stringify( take(input, { @@ -273,15 +265,8 @@ export const se_CreateConnectorProfileCommand = async ( kmsArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -291,11 +276,11 @@ export const se_CreateFlowCommand = async ( input: CreateFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-flow"; + b.bp("/create-flow"); let body: any; body = JSON.stringify( take(input, { @@ -311,15 +296,8 @@ export const se_CreateFlowCommand = async ( triggerConfig: (_) => se_TriggerConfig(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -329,12 +307,11 @@ export const se_DeleteConnectorProfileCommand = async ( input: DeleteConnectorProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-connector-profile"; + b.bp("/delete-connector-profile"); let body: any; body = JSON.stringify( take(input, { @@ -342,15 +319,8 @@ export const se_DeleteConnectorProfileCommand = async ( forceDelete: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -360,11 +330,11 @@ export const se_DeleteFlowCommand = async ( input: DeleteFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-flow"; + b.bp("/delete-flow"); let body: any; body = JSON.stringify( take(input, { @@ -372,15 +342,8 @@ export const se_DeleteFlowCommand = async ( forceDelete: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -390,11 +353,11 @@ export const se_DescribeConnectorCommand = async ( input: DescribeConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector"; + b.bp("/describe-connector"); let body: any; body = JSON.stringify( take(input, { @@ -402,15 +365,8 @@ export const se_DescribeConnectorCommand = async ( connectorType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -420,12 +376,11 @@ export const se_DescribeConnectorEntityCommand = async ( input: DescribeConnectorEntityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-entity"; + b.bp("/describe-connector-entity"); let body: any; body = JSON.stringify( take(input, { @@ -435,15 +390,8 @@ export const se_DescribeConnectorEntityCommand = async ( connectorType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -453,12 +401,11 @@ export const se_DescribeConnectorProfilesCommand = async ( input: DescribeConnectorProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-profiles"; + b.bp("/describe-connector-profiles"); let body: any; body = JSON.stringify( take(input, { @@ -469,15 +416,8 @@ export const se_DescribeConnectorProfilesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -487,11 +427,11 @@ export const se_DescribeConnectorsCommand = async ( input: DescribeConnectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connectors"; + b.bp("/describe-connectors"); let body: any; body = JSON.stringify( take(input, { @@ -500,15 +440,8 @@ export const se_DescribeConnectorsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -518,26 +451,19 @@ export const se_DescribeFlowCommand = async ( input: DescribeFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow"; + b.bp("/describe-flow"); let body: any; body = JSON.stringify( take(input, { flowName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -547,12 +473,11 @@ export const se_DescribeFlowExecutionRecordsCommand = async ( input: DescribeFlowExecutionRecordsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow-execution-records"; + b.bp("/describe-flow-execution-records"); let body: any; body = JSON.stringify( take(input, { @@ -561,15 +486,8 @@ export const se_DescribeFlowExecutionRecordsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -579,12 +497,11 @@ export const se_ListConnectorEntitiesCommand = async ( input: ListConnectorEntitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-connector-entities"; + b.bp("/list-connector-entities"); let body: any; body = JSON.stringify( take(input, { @@ -596,15 +513,8 @@ export const se_ListConnectorEntitiesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -614,11 +524,11 @@ export const se_ListConnectorsCommand = async ( input: ListConnectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-connectors"; + b.bp("/list-connectors"); let body: any; body = JSON.stringify( take(input, { @@ -626,15 +536,8 @@ export const se_ListConnectorsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -644,11 +547,11 @@ export const se_ListFlowsCommand = async ( input: ListFlowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-flows"; + b.bp("/list-flows"); let body: any; body = JSON.stringify( take(input, { @@ -656,15 +559,8 @@ export const se_ListFlowsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -674,20 +570,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -697,11 +586,11 @@ export const se_RegisterConnectorCommand = async ( input: RegisterConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-connector"; + b.bp("/register-connector"); let body: any; body = JSON.stringify( take(input, { @@ -712,15 +601,8 @@ export const se_RegisterConnectorCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -730,12 +612,11 @@ export const se_ResetConnectorMetadataCacheCommand = async ( input: ResetConnectorMetadataCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-connector-metadata-cache"; + b.bp("/reset-connector-metadata-cache"); let body: any; body = JSON.stringify( take(input, { @@ -746,15 +627,8 @@ export const se_ResetConnectorMetadataCacheCommand = async ( entitiesPath: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -764,11 +638,11 @@ export const se_StartFlowCommand = async ( input: StartFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-flow"; + b.bp("/start-flow"); let body: any; body = JSON.stringify( take(input, { @@ -776,15 +650,8 @@ export const se_StartFlowCommand = async ( flowName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -794,26 +661,19 @@ export const se_StopFlowCommand = async ( input: StopFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stop-flow"; + b.bp("/stop-flow"); let body: any; body = JSON.stringify( take(input, { flowName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -823,27 +683,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -853,11 +706,11 @@ export const se_UnregisterConnectorCommand = async ( input: UnregisterConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/unregister-connector"; + b.bp("/unregister-connector"); let body: any; body = JSON.stringify( take(input, { @@ -865,15 +718,8 @@ export const se_UnregisterConnectorCommand = async ( forceDelete: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -883,27 +729,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -913,12 +751,11 @@ export const se_UpdateConnectorProfileCommand = async ( input: UpdateConnectorProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-profile"; + b.bp("/update-connector-profile"); let body: any; body = JSON.stringify( take(input, { @@ -928,15 +765,8 @@ export const se_UpdateConnectorProfileCommand = async ( connectorProfileName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -946,12 +776,11 @@ export const se_UpdateConnectorRegistrationCommand = async ( input: UpdateConnectorRegistrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-registration"; + b.bp("/update-connector-registration"); let body: any; body = JSON.stringify( take(input, { @@ -961,15 +790,8 @@ export const se_UpdateConnectorRegistrationCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -979,11 +801,11 @@ export const se_UpdateFlowCommand = async ( input: UpdateFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-flow"; + b.bp("/update-flow"); let body: any; body = JSON.stringify( take(input, { @@ -997,15 +819,8 @@ export const se_UpdateFlowCommand = async ( triggerConfig: (_) => se_TriggerConfig(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3489,6 +3304,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-appintegrations/package.json b/clients/client-appintegrations/package.json index 851e5e181b4c..d8e6a316953d 100644 --- a/clients/client-appintegrations/package.json +++ b/clients/client-appintegrations/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts index 502772d032a3..ff80edd79981 100644 --- a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts +++ b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -103,11 +104,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -121,15 +122,8 @@ export const se_CreateApplicationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -139,11 +133,11 @@ export const se_CreateDataIntegrationCommand = async ( input: CreateDataIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations"; + b.bp("/dataIntegrations"); let body: any; body = JSON.stringify( take(input, { @@ -158,15 +152,8 @@ export const se_CreateDataIntegrationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -176,11 +163,11 @@ export const se_CreateEventIntegrationCommand = async ( input: CreateEventIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations"; + b.bp("/eventIntegrations"); let body: any; body = JSON.stringify( take(input, { @@ -192,15 +179,8 @@ export const se_CreateEventIntegrationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -210,29 +190,13 @@ export const se_DeleteDataIntegrationCommand = async ( input: DeleteDataIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/dataIntegrations/{DataIntegrationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DataIntegrationIdentifier", - () => input.DataIntegrationIdentifier!, - "{DataIntegrationIdentifier}", - false - ); + b.bp("/dataIntegrations/{DataIntegrationIdentifier}"); + b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier!, "{DataIntegrationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -242,21 +206,13 @@ export const se_DeleteEventIntegrationCommand = async ( input: DeleteEventIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/eventIntegrations/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -266,20 +222,13 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/applications/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -289,21 +238,13 @@ export const se_GetDataIntegrationCommand = async ( input: GetDataIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/dataIntegrations/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -313,21 +254,13 @@ export const se_GetEventIntegrationCommand = async ( input: GetEventIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/eventIntegrations/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -337,24 +270,16 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -364,34 +289,17 @@ export const se_ListDataIntegrationAssociationsCommand = async ( input: ListDataIntegrationAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/dataIntegrations/{DataIntegrationIdentifier}/associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DataIntegrationIdentifier", - () => input.DataIntegrationIdentifier!, - "{DataIntegrationIdentifier}", - false - ); + b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations"); + b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier!, "{DataIntegrationIdentifier}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -401,24 +309,16 @@ export const se_ListDataIntegrationsCommand = async ( input: ListDataIntegrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations"; + b.bp("/dataIntegrations"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -428,34 +328,17 @@ export const se_ListEventIntegrationAssociationsCommand = async ( input: ListEventIntegrationAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/eventIntegrations/{EventIntegrationName}/associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventIntegrationName", - () => input.EventIntegrationName!, - "{EventIntegrationName}", - false - ); + b.bp("/eventIntegrations/{EventIntegrationName}/associations"); + b.p("EventIntegrationName", () => input.EventIntegrationName!, "{EventIntegrationName}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -465,24 +348,16 @@ export const se_ListEventIntegrationsCommand = async ( input: ListEventIntegrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations"; + b.bp("/eventIntegrations"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -492,20 +367,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -515,27 +383,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -545,27 +406,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -575,12 +428,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/applications/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; body = JSON.stringify( take(input, { @@ -591,15 +444,8 @@ export const se_UpdateApplicationCommand = async ( Subscriptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -609,13 +455,12 @@ export const se_UpdateDataIntegrationCommand = async ( input: UpdateDataIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/dataIntegrations/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -623,15 +468,8 @@ export const se_UpdateDataIntegrationCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -641,28 +479,20 @@ export const se_UpdateEventIntegrationCommand = async ( input: UpdateEventIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/eventIntegrations/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2050,6 +1880,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-applicationcostprofiler/package.json b/clients/client-applicationcostprofiler/package.json index 2b11b8095389..67ef14c31438 100644 --- a/clients/client-applicationcostprofiler/package.json +++ b/clients/client-applicationcostprofiler/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts b/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts index 61432bf19def..177edb6acee2 100644 --- a/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts +++ b/clients/client-applicationcostprofiler/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -64,21 +65,13 @@ export const se_DeleteReportDefinitionCommand = async ( input: DeleteReportDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition/{reportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "reportId", () => input.reportId!, "{reportId}", false); + b.bp("/reportDefinition/{reportId}"); + b.p("reportId", () => input.reportId!, "{reportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -88,21 +81,13 @@ export const se_GetReportDefinitionCommand = async ( input: GetReportDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition/{reportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "reportId", () => input.reportId!, "{reportId}", false); + b.bp("/reportDefinition/{reportId}"); + b.p("reportId", () => input.reportId!, "{reportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -112,27 +97,19 @@ export const se_ImportApplicationUsageCommand = async ( input: ImportApplicationUsageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importApplicationUsage"; + b.bp("/importApplicationUsage"); let body: any; body = JSON.stringify( take(input, { sourceS3Location: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -142,24 +119,16 @@ export const se_ListReportDefinitionsCommand = async ( input: ListReportDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition"; + b.bp("/reportDefinition"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -169,11 +138,11 @@ export const se_PutReportDefinitionCommand = async ( input: PutReportDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition"; + b.bp("/reportDefinition"); let body: any; body = JSON.stringify( take(input, { @@ -184,15 +153,8 @@ export const se_PutReportDefinitionCommand = async ( reportId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -202,13 +164,12 @@ export const se_UpdateReportDefinitionCommand = async ( input: UpdateReportDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition/{reportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "reportId", () => input.reportId!, "{reportId}", false); + b.bp("/reportDefinition/{reportId}"); + b.p("reportId", () => input.reportId!, "{reportId}", false); let body: any; body = JSON.stringify( take(input, { @@ -218,15 +179,8 @@ export const se_UpdateReportDefinitionCommand = async ( reportFrequency: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -722,6 +676,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-appsync/package.json b/clients/client-appsync/package.json index d213618ce4cf..d499320a6bd2 100644 --- a/clients/client-appsync/package.json +++ b/clients/client-appsync/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-appsync/src/protocols/Aws_restJson1.ts b/clients/client-appsync/src/protocols/Aws_restJson1.ts index 87ec8b8b0373..4e68010851b1 100644 --- a/clients/client-appsync/src/protocols/Aws_restJson1.ts +++ b/clients/client-appsync/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -183,29 +184,20 @@ export const se_AssociateApiCommand = async ( input: AssociateApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/domainnames/{domainName}/apiassociation"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/v1/domainnames/{domainName}/apiassociation"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; body = JSON.stringify( take(input, { apiId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -215,21 +207,12 @@ export const se_AssociateMergedGraphqlApiCommand = async ( input: AssociateMergedGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sourceApiIdentifier", - () => input.sourceApiIdentifier!, - "{sourceApiIdentifier}", - false - ); + b.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations"); + b.p("sourceApiIdentifier", () => input.sourceApiIdentifier!, "{sourceApiIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -238,15 +221,8 @@ export const se_AssociateMergedGraphqlApiCommand = async ( sourceApiAssociationConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -256,21 +232,12 @@ export const se_AssociateSourceGraphqlApiCommand = async ( input: AssociateSourceGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "mergedApiIdentifier", - () => input.mergedApiIdentifier!, - "{mergedApiIdentifier}", - false - ); + b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations"); + b.p("mergedApiIdentifier", () => input.mergedApiIdentifier!, "{mergedApiIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -279,15 +246,8 @@ export const se_AssociateSourceGraphqlApiCommand = async ( sourceApiIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -297,13 +257,12 @@ export const se_CreateApiCacheCommand = async ( input: CreateApiCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/ApiCaches"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -314,15 +273,8 @@ export const se_CreateApiCacheCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -332,12 +284,12 @@ export const se_CreateApiKeyCommand = async ( input: CreateApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/apikeys"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -345,15 +297,8 @@ export const se_CreateApiKeyCommand = async ( expires: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -363,13 +308,12 @@ export const se_CreateDataSourceCommand = async ( input: CreateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/datasources"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -386,15 +330,8 @@ export const se_CreateDataSourceCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -404,11 +341,11 @@ export const se_CreateDomainNameCommand = async ( input: CreateDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames"; + b.bp("/v1/domainnames"); let body: any; body = JSON.stringify( take(input, { @@ -417,15 +354,8 @@ export const se_CreateDomainNameCommand = async ( domainName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -435,13 +365,12 @@ export const se_CreateFunctionCommand = async ( input: CreateFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/functions"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -457,15 +386,8 @@ export const se_CreateFunctionCommand = async ( syncConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -475,11 +397,11 @@ export const se_CreateGraphqlApiCommand = async ( input: CreateGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis"; + b.bp("/v1/apis"); let body: any; body = JSON.stringify( take(input, { @@ -498,15 +420,8 @@ export const se_CreateGraphqlApiCommand = async ( xrayEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -516,15 +431,13 @@ export const se_CreateResolverCommand = async ( input: CreateResolverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apis/{apiId}/types/{typeName}/resolvers"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); let body: any; body = JSON.stringify( take(input, { @@ -541,15 +454,8 @@ export const se_CreateResolverCommand = async ( syncConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -559,12 +465,12 @@ export const se_CreateTypeCommand = async ( input: CreateTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/types"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -572,15 +478,8 @@ export const se_CreateTypeCommand = async ( format: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -590,21 +489,13 @@ export const se_DeleteApiCacheCommand = async ( input: DeleteApiCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/ApiCaches"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -614,22 +505,14 @@ export const se_DeleteApiKeyCommand = async ( input: DeleteApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/apis/{apiId}/apikeys/{id}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -639,22 +522,14 @@ export const se_DeleteDataSourceCommand = async ( input: DeleteDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/apis/{apiId}/datasources/{name}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -664,21 +539,13 @@ export const se_DeleteDomainNameCommand = async ( input: DeleteDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/v1/domainnames/{domainName}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -688,22 +555,14 @@ export const se_DeleteFunctionCommand = async ( input: DeleteFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId!, "{functionId}", false); + b.bp("/v1/apis/{apiId}/functions/{functionId}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("functionId", () => input.functionId!, "{functionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -713,20 +572,13 @@ export const se_DeleteGraphqlApiCommand = async ( input: DeleteGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -736,24 +588,15 @@ export const se_DeleteResolverCommand = async ( input: DeleteResolverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName!, "{fieldName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); + b.p("fieldName", () => input.fieldName!, "{fieldName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -763,22 +606,14 @@ export const se_DeleteTypeCommand = async ( input: DeleteTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -788,22 +623,13 @@ export const se_DisassociateApiCommand = async ( input: DisassociateApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/domainnames/{domainName}/apiassociation"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/v1/domainnames/{domainName}/apiassociation"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -813,37 +639,14 @@ export const se_DisassociateMergedGraphqlApiCommand = async ( input: DisassociateMergedGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sourceApiIdentifier", - () => input.sourceApiIdentifier!, - "{sourceApiIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); + b.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}"); + b.p("sourceApiIdentifier", () => input.sourceApiIdentifier!, "{sourceApiIdentifier}", false); + b.p("associationId", () => input.associationId!, "{associationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -853,37 +656,14 @@ export const se_DisassociateSourceGraphqlApiCommand = async ( input: DisassociateSourceGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "mergedApiIdentifier", - () => input.mergedApiIdentifier!, - "{mergedApiIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); + b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"); + b.p("mergedApiIdentifier", () => input.mergedApiIdentifier!, "{mergedApiIdentifier}", false); + b.p("associationId", () => input.associationId!, "{associationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -893,12 +673,11 @@ export const se_EvaluateCodeCommand = async ( input: EvaluateCodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatecode"; + b.bp("/v1/dataplane-evaluatecode"); let body: any; body = JSON.stringify( take(input, { @@ -908,15 +687,8 @@ export const se_EvaluateCodeCommand = async ( runtime: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -926,12 +698,11 @@ export const se_EvaluateMappingTemplateCommand = async ( input: EvaluateMappingTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatetemplate"; + b.bp("/v1/dataplane-evaluatetemplate"); let body: any; body = JSON.stringify( take(input, { @@ -939,15 +710,8 @@ export const se_EvaluateMappingTemplateCommand = async ( template: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -957,21 +721,13 @@ export const se_FlushApiCacheCommand = async ( input: FlushApiCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/FlushCache"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/FlushCache"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -981,22 +737,13 @@ export const se_GetApiAssociationCommand = async ( input: GetApiAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/domainnames/{domainName}/apiassociation"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/v1/domainnames/{domainName}/apiassociation"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1006,21 +753,13 @@ export const se_GetApiCacheCommand = async ( input: GetApiCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/ApiCaches"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1030,22 +769,14 @@ export const se_GetDataSourceCommand = async ( input: GetDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/apis/{apiId}/datasources/{name}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1055,35 +786,18 @@ export const se_GetDataSourceIntrospectionCommand = async ( input: GetDataSourceIntrospectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/datasources/introspections/{introspectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "introspectionId", - () => input.introspectionId!, - "{introspectionId}", - false - ); + b.bp("/v1/datasources/introspections/{introspectionId}"); + b.p("introspectionId", () => input.introspectionId!, "{introspectionId}", false); const query: any = map({ - includeModelsSDL: [() => input.includeModelsSDL !== void 0, () => input.includeModelsSDL!.toString()], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_iMSDL]: [() => input.includeModelsSDL !== void 0, () => input[_iMSDL]!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1093,21 +807,13 @@ export const se_GetDomainNameCommand = async ( input: GetDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/v1/domainnames/{domainName}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1117,22 +823,14 @@ export const se_GetFunctionCommand = async ( input: GetFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId!, "{functionId}", false); + b.bp("/v1/apis/{apiId}/functions/{functionId}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("functionId", () => input.functionId!, "{functionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1142,20 +840,13 @@ export const se_GetGraphqlApiCommand = async ( input: GetGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1165,25 +856,17 @@ export const se_GetIntrospectionSchemaCommand = async ( input: GetIntrospectionSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schema"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/schema"); + b.p("apiId", () => input.apiId!, "{apiId}", false); const query: any = map({ - format: [, __expectNonNull(input.format!, `format`)], - includeDirectives: [() => input.includeDirectives !== void 0, () => input.includeDirectives!.toString()], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_iD]: [() => input.includeDirectives !== void 0, () => input[_iD]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1193,24 +876,15 @@ export const se_GetResolverCommand = async ( input: GetResolverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName!, "{fieldName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); + b.p("fieldName", () => input.fieldName!, "{fieldName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1220,21 +894,13 @@ export const se_GetSchemaCreationStatusCommand = async ( input: GetSchemaCreationStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/schemacreation"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1244,37 +910,14 @@ export const se_GetSourceApiAssociationCommand = async ( input: GetSourceApiAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "mergedApiIdentifier", - () => input.mergedApiIdentifier!, - "{mergedApiIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); + b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"); + b.p("mergedApiIdentifier", () => input.mergedApiIdentifier!, "{mergedApiIdentifier}", false); + b.p("associationId", () => input.associationId!, "{associationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1284,26 +927,17 @@ export const se_GetTypeCommand = async ( input: GetTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); const query: any = map({ - format: [, __expectNonNull(input.format!, `format`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1313,25 +947,17 @@ export const se_ListApiKeysCommand = async ( input: ListApiKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/apikeys"); + b.p("apiId", () => input.apiId!, "{apiId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1341,26 +967,17 @@ export const se_ListDataSourcesCommand = async ( input: ListDataSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/datasources"); + b.p("apiId", () => input.apiId!, "{apiId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1370,24 +987,16 @@ export const se_ListDomainNamesCommand = async ( input: ListDomainNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames"; + b.bp("/v1/domainnames"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1397,26 +1006,17 @@ export const se_ListFunctionsCommand = async ( input: ListFunctionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/functions"); + b.p("apiId", () => input.apiId!, "{apiId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1426,26 +1026,18 @@ export const se_ListGraphqlApisCommand = async ( input: ListGraphqlApisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis"; + b.bp("/v1/apis"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - apiType: [, input.apiType!], - owner: [, input.owner!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_aT]: [, input[_aT]!], + [_o]: [, input[_o]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1455,28 +1047,18 @@ export const se_ListResolversCommand = async ( input: ListResolversCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apis/{apiId}/types/{typeName}/resolvers"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1486,28 +1068,18 @@ export const se_ListResolversByFunctionCommand = async ( input: ListResolversByFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apis/{apiId}/functions/{functionId}/resolvers"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId!, "{functionId}", false); + b.bp("/v1/apis/{apiId}/functions/{functionId}/resolvers"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("functionId", () => input.functionId!, "{functionId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1517,26 +1089,17 @@ export const se_ListSourceApiAssociationsCommand = async ( input: ListSourceApiAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/sourceApiAssociations"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/sourceApiAssociations"); + b.p("apiId", () => input.apiId!, "{apiId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1546,20 +1109,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1569,26 +1125,18 @@ export const se_ListTypesCommand = async ( input: ListTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/types"); + b.p("apiId", () => input.apiId!, "{apiId}", false); const query: any = map({ - format: [, __expectNonNull(input.format!, `format`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1598,43 +1146,19 @@ export const se_ListTypesByAssociationCommand = async ( input: ListTypesByAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "mergedApiIdentifier", - () => input.mergedApiIdentifier!, - "{mergedApiIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); + b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types"); + b.p("mergedApiIdentifier", () => input.mergedApiIdentifier!, "{mergedApiIdentifier}", false); + b.p("associationId", () => input.associationId!, "{associationId}", false); const query: any = map({ - format: [, __expectNonNull(input.format!, `format`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1644,27 +1168,19 @@ export const se_StartDataSourceIntrospectionCommand = async ( input: StartDataSourceIntrospectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datasources/introspections"; + b.bp("/v1/datasources/introspections"); let body: any; body = JSON.stringify( take(input, { rdsDataApiConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1674,28 +1190,20 @@ export const se_StartSchemaCreationCommand = async ( input: StartSchemaCreationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/schemacreation"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { definition: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1705,37 +1213,14 @@ export const se_StartSchemaMergeCommand = async ( input: StartSchemaMergeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "mergedApiIdentifier", - () => input.mergedApiIdentifier!, - "{mergedApiIdentifier}", - false - ); + b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge"); + b.p("associationId", () => input.associationId!, "{associationId}", false); + b.p("mergedApiIdentifier", () => input.mergedApiIdentifier!, "{mergedApiIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1745,27 +1230,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1775,27 +1253,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1805,13 +1275,12 @@ export const se_UpdateApiCacheCommand = async ( input: UpdateApiCacheCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches/update"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}/ApiCaches/update"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1820,15 +1289,8 @@ export const se_UpdateApiCacheCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1838,14 +1300,13 @@ export const se_UpdateApiKeyCommand = async ( input: UpdateApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/apis/{apiId}/apikeys/{id}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -1853,15 +1314,8 @@ export const se_UpdateApiKeyCommand = async ( expires: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1871,14 +1325,13 @@ export const se_UpdateDataSourceCommand = async ( input: UpdateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/apis/{apiId}/datasources/{name}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1894,15 +1347,8 @@ export const se_UpdateDataSourceCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1912,28 +1358,20 @@ export const se_UpdateDomainNameCommand = async ( input: UpdateDomainNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName!, "{domainName}", false); + b.bp("/v1/domainnames/{domainName}"); + b.p("domainName", () => input.domainName!, "{domainName}", false); let body: any; body = JSON.stringify( take(input, { description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1943,14 +1381,13 @@ export const se_UpdateFunctionCommand = async ( input: UpdateFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId!, "{functionId}", false); + b.bp("/v1/apis/{apiId}/functions/{functionId}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("functionId", () => input.functionId!, "{functionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1966,15 +1403,8 @@ export const se_UpdateFunctionCommand = async ( syncConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1984,12 +1414,12 @@ export const se_UpdateGraphqlApiCommand = async ( input: UpdateGraphqlApiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); + b.bp("/v1/apis/{apiId}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2005,15 +1435,8 @@ export const se_UpdateGraphqlApiCommand = async ( xrayEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2023,16 +1446,14 @@ export const se_UpdateResolverCommand = async ( input: UpdateResolverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName!, "{fieldName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); + b.p("fieldName", () => input.fieldName!, "{fieldName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2048,15 +1469,8 @@ export const se_UpdateResolverCommand = async ( syncConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2066,29 +1480,13 @@ export const se_UpdateSourceApiAssociationCommand = async ( input: UpdateSourceApiAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "mergedApiIdentifier", - () => input.mergedApiIdentifier!, - "{mergedApiIdentifier}", - false - ); + b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"); + b.p("associationId", () => input.associationId!, "{associationId}", false); + b.p("mergedApiIdentifier", () => input.mergedApiIdentifier!, "{mergedApiIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -2096,15 +1494,8 @@ export const se_UpdateSourceApiAssociationCommand = async ( sourceApiAssociationConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2114,14 +1505,13 @@ export const se_UpdateTypeCommand = async ( input: UpdateTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false); + b.bp("/v1/apis/{apiId}/types/{typeName}"); + b.p("apiId", () => input.apiId!, "{apiId}", false); + b.p("typeName", () => input.typeName!, "{typeName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2129,15 +1519,8 @@ export const se_UpdateTypeCommand = async ( format: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6205,6 +5588,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aT = "apiType"; +const _f = "format"; +const _iD = "includeDirectives"; +const _iMSDL = "includeModelsSDL"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _o = "owner"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-arc-zonal-shift/package.json b/clients/client-arc-zonal-shift/package.json index 33561b71582c..a7675efec312 100644 --- a/clients/client-arc-zonal-shift/package.json +++ b/clients/client-arc-zonal-shift/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-arc-zonal-shift/src/protocols/Aws_restJson1.ts b/clients/client-arc-zonal-shift/src/protocols/Aws_restJson1.ts index ebd4568325a4..c43314d1e891 100644 --- a/clients/client-arc-zonal-shift/src/protocols/Aws_restJson1.ts +++ b/clients/client-arc-zonal-shift/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -71,28 +72,13 @@ export const se_CancelZonalShiftCommand = async ( input: CancelZonalShiftCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "zonalShiftId", - () => input.zonalShiftId!, - "{zonalShiftId}", - false - ); + b.bp("/zonalshifts/{zonalShiftId}"); + b.p("zonalShiftId", () => input.zonalShiftId!, "{zonalShiftId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -102,11 +88,11 @@ export const se_CreatePracticeRunConfigurationCommand = async ( input: CreatePracticeRunConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration"; + b.bp("/configuration"); let body: any; body = JSON.stringify( take(input, { @@ -117,15 +103,8 @@ export const se_CreatePracticeRunConfigurationCommand = async ( resourceIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -135,28 +114,13 @@ export const se_DeletePracticeRunConfigurationCommand = async ( input: DeletePracticeRunConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceIdentifier", - () => input.resourceIdentifier!, - "{resourceIdentifier}", - false - ); + b.bp("/configuration/{resourceIdentifier}"); + b.p("resourceIdentifier", () => input.resourceIdentifier!, "{resourceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -166,28 +130,13 @@ export const se_GetManagedResourceCommand = async ( input: GetManagedResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceIdentifier", - () => input.resourceIdentifier!, - "{resourceIdentifier}", - false - ); + b.bp("/managedresources/{resourceIdentifier}"); + b.p("resourceIdentifier", () => input.resourceIdentifier!, "{resourceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -197,25 +146,17 @@ export const se_ListAutoshiftsCommand = async ( input: ListAutoshiftsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/autoshifts"; + b.bp("/autoshifts"); const query: any = map({ - nextToken: [, input.nextToken!], - status: [, input.status!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -225,24 +166,16 @@ export const se_ListManagedResourcesCommand = async ( input: ListManagedResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources"; + b.bp("/managedresources"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -252,26 +185,18 @@ export const se_ListZonalShiftsCommand = async ( input: ListZonalShiftsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts"; + b.bp("/zonalshifts"); const query: any = map({ - nextToken: [, input.nextToken!], - status: [, input.status!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - resourceIdentifier: [, input.resourceIdentifier!], + [_nT]: [, input[_nT]!], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_rI]: [, input[_rI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -281,11 +206,11 @@ export const se_StartZonalShiftCommand = async ( input: StartZonalShiftCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts"; + b.bp("/zonalshifts"); let body: any; body = JSON.stringify( take(input, { @@ -295,15 +220,8 @@ export const se_StartZonalShiftCommand = async ( resourceIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -313,20 +231,12 @@ export const se_UpdatePracticeRunConfigurationCommand = async ( input: UpdatePracticeRunConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/{resourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceIdentifier", - () => input.resourceIdentifier!, - "{resourceIdentifier}", - false - ); + b.bp("/configuration/{resourceIdentifier}"); + b.p("resourceIdentifier", () => input.resourceIdentifier!, "{resourceIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -336,15 +246,8 @@ export const se_UpdatePracticeRunConfigurationCommand = async ( outcomeAlarms: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -354,35 +257,20 @@ export const se_UpdateZonalAutoshiftConfigurationCommand = async ( input: UpdateZonalAutoshiftConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managedresources/{resourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceIdentifier", - () => input.resourceIdentifier!, - "{resourceIdentifier}", - false - ); + b.bp("/managedresources/{resourceIdentifier}"); + b.p("resourceIdentifier", () => input.resourceIdentifier!, "{resourceIdentifier}", false); let body: any; body = JSON.stringify( take(input, { zonalAutoshiftStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -392,20 +280,12 @@ export const se_UpdateZonalShiftCommand = async ( input: UpdateZonalShiftCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/zonalshifts/{zonalShiftId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "zonalShiftId", - () => input.zonalShiftId!, - "{zonalShiftId}", - false - ); + b.bp("/zonalshifts/{zonalShiftId}"); + b.p("zonalShiftId", () => input.zonalShiftId!, "{zonalShiftId}", false); let body: any; body = JSON.stringify( take(input, { @@ -413,15 +293,8 @@ export const se_UpdateZonalShiftCommand = async ( expiresIn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1419,6 +1292,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rI = "resourceIdentifier"; +const _s = "status"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-auditmanager/package.json b/clients/client-auditmanager/package.json index 9386462f3152..a49a9a8f460c 100644 --- a/clients/client-auditmanager/package.json +++ b/clients/client-auditmanager/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts index 6c46ceed2ea8..e40c72b2ebf9 100644 --- a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -257,36 +258,20 @@ export const se_AssociateAssessmentReportEvidenceFolderCommand = async ( input: AssociateAssessmentReportEvidenceFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/associateToAssessmentReport"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/associateToAssessmentReport"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { evidenceFolderId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -296,21 +281,12 @@ export const se_BatchAssociateAssessmentReportEvidenceCommand = async ( input: BatchAssociateAssessmentReportEvidenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/batchAssociateToAssessmentReport"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/batchAssociateToAssessmentReport"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -318,15 +294,8 @@ export const se_BatchAssociateAssessmentReportEvidenceCommand = async ( evidenceIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -336,35 +305,20 @@ export const se_BatchCreateDelegationByAssessmentCommand = async ( input: BatchCreateDelegationByAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/delegations"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { createDelegationRequests: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -374,35 +328,20 @@ export const se_BatchDeleteDelegationByAssessmentCommand = async ( input: BatchDeleteDelegationByAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/delegations"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { delegationIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -412,21 +351,12 @@ export const se_BatchDisassociateAssessmentReportEvidenceCommand = async ( input: BatchDisassociateAssessmentReportEvidenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/batchDisassociateFromAssessmentReport"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/batchDisassociateFromAssessmentReport"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -434,15 +364,8 @@ export const se_BatchDisassociateAssessmentReportEvidenceCommand = async ( evidenceIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -452,45 +375,22 @@ export const se_BatchImportEvidenceToAssessmentControlCommand = async ( input: BatchImportEvidenceToAssessmentControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "controlSetId", - () => input.controlSetId!, - "{controlSetId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId!, "{controlId}", false); + b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("controlSetId", () => input.controlSetId!, "{controlSetId}", false); + b.p("controlId", () => input.controlId!, "{controlId}", false); let body: any; body = JSON.stringify( take(input, { manualEvidence: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -500,11 +400,11 @@ export const se_CreateAssessmentCommand = async ( input: CreateAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments"; + b.bp("/assessments"); let body: any; body = JSON.stringify( take(input, { @@ -517,15 +417,8 @@ export const se_CreateAssessmentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -535,11 +428,11 @@ export const se_CreateAssessmentFrameworkCommand = async ( input: CreateAssessmentFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks"; + b.bp("/assessmentFrameworks"); let body: any; body = JSON.stringify( take(input, { @@ -550,15 +443,8 @@ export const se_CreateAssessmentFrameworkCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -568,20 +454,12 @@ export const se_CreateAssessmentReportCommand = async ( input: CreateAssessmentReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/reports"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/reports"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -590,15 +468,8 @@ export const se_CreateAssessmentReportCommand = async ( queryStatement: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -608,11 +479,11 @@ export const se_CreateControlCommand = async ( input: CreateControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls"; + b.bp("/controls"); let body: any; body = JSON.stringify( take(input, { @@ -625,15 +496,8 @@ export const se_CreateControlCommand = async ( testingInformation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -643,28 +507,13 @@ export const se_DeleteAssessmentCommand = async ( input: DeleteAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -674,21 +523,13 @@ export const se_DeleteAssessmentFrameworkCommand = async ( input: DeleteAssessmentFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId!, "{frameworkId}", false); + b.bp("/assessmentFrameworks/{frameworkId}"); + b.p("frameworkId", () => input.frameworkId!, "{frameworkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -698,26 +539,16 @@ export const se_DeleteAssessmentFrameworkShareCommand = async ( input: DeleteAssessmentFrameworkShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessmentFrameworkShareRequests/{requestId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "requestId", () => input.requestId!, "{requestId}", false); + b.bp("/assessmentFrameworkShareRequests/{requestId}"); + b.p("requestId", () => input.requestId!, "{requestId}", false); const query: any = map({ - requestType: [, __expectNonNull(input.requestType!, `requestType`)], + [_rT]: [, __expectNonNull(input[_rT]!, `requestType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -727,37 +558,14 @@ export const se_DeleteAssessmentReportCommand = async ( input: DeleteAssessmentReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/reports/{assessmentReportId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentReportId", - () => input.assessmentReportId!, - "{assessmentReportId}", - false - ); + b.bp("/assessments/{assessmentId}/reports/{assessmentReportId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("assessmentReportId", () => input.assessmentReportId!, "{assessmentReportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -767,20 +575,13 @@ export const se_DeleteControlCommand = async ( input: DeleteControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId!, "{controlId}", false); + b.bp("/controls/{controlId}"); + b.p("controlId", () => input.controlId!, "{controlId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -790,23 +591,15 @@ export const se_DeregisterAccountCommand = async ( input: DeregisterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/deregisterAccount"; + b.bp("/account/deregisterAccount"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -816,28 +609,19 @@ export const se_DeregisterOrganizationAdminAccountCommand = async ( input: DeregisterOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/account/deregisterOrganizationAdminAccount"; + b.bp("/account/deregisterOrganizationAdminAccount"); let body: any; body = JSON.stringify( take(input, { adminAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -847,36 +631,20 @@ export const se_DisassociateAssessmentReportEvidenceFolderCommand = async ( input: DisassociateAssessmentReportEvidenceFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/disassociateFromAssessmentReport"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/disassociateFromAssessmentReport"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { evidenceFolderId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -886,22 +654,15 @@ export const se_GetAccountStatusCommand = async ( input: GetAccountStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/status"; + b.bp("/account/status"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -911,28 +672,13 @@ export const se_GetAssessmentCommand = async ( input: GetAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -942,21 +688,13 @@ export const se_GetAssessmentFrameworkCommand = async ( input: GetAssessmentFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId!, "{frameworkId}", false); + b.bp("/assessmentFrameworks/{frameworkId}"); + b.p("frameworkId", () => input.frameworkId!, "{frameworkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -966,37 +704,14 @@ export const se_GetAssessmentReportUrlCommand = async ( input: GetAssessmentReportUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/reports/{assessmentReportId}/url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentReportId", - () => input.assessmentReportId!, - "{assessmentReportId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/reports/{assessmentReportId}/url"); + b.p("assessmentReportId", () => input.assessmentReportId!, "{assessmentReportId}", false); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1006,35 +721,19 @@ export const se_GetChangeLogsCommand = async ( input: GetChangeLogsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/changelogs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/changelogs"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); const query: any = map({ - controlSetId: [, input.controlSetId!], - controlId: [, input.controlId!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_cSI]: [, input[_cSI]!], + [_cI]: [, input[_cI]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1044,20 +743,13 @@ export const se_GetControlCommand = async ( input: GetControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId!, "{controlId}", false); + b.bp("/controls/{controlId}"); + b.p("controlId", () => input.controlId!, "{controlId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1067,24 +759,16 @@ export const se_GetDelegationsCommand = async ( input: GetDelegationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegations"; + b.bp("/delegations"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1094,46 +778,18 @@ export const se_GetEvidenceCommand = async ( input: GetEvidenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "controlSetId", - () => input.controlSetId!, - "{controlSetId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "evidenceFolderId", - () => input.evidenceFolderId!, - "{evidenceFolderId}", - false + b.bp( + "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}" ); - resolvedPath = __resolvedPath(resolvedPath, input, "evidenceId", () => input.evidenceId!, "{evidenceId}", false); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("controlSetId", () => input.controlSetId!, "{controlSetId}", false); + b.p("evidenceFolderId", () => input.evidenceFolderId!, "{evidenceFolderId}", false); + b.p("evidenceId", () => input.evidenceId!, "{evidenceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1143,50 +799,19 @@ export const se_GetEvidenceByEvidenceFolderCommand = async ( input: GetEvidenceByEvidenceFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "controlSetId", - () => input.controlSetId!, - "{controlSetId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "evidenceFolderId", - () => input.evidenceFolderId!, - "{evidenceFolderId}", - false - ); + b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("controlSetId", () => input.controlSetId!, "{controlSetId}", false); + b.p("evidenceFolderId", () => input.evidenceFolderId!, "{evidenceFolderId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1196,23 +821,15 @@ export const se_GetEvidenceFileUploadUrlCommand = async ( input: GetEvidenceFileUploadUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evidenceFileUploadUrl"; + b.bp("/evidenceFileUploadUrl"); const query: any = map({ - fileName: [, __expectNonNull(input.fileName!, `fileName`)], + [_fN]: [, __expectNonNull(input[_fN]!, `fileName`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1222,45 +839,15 @@ export const se_GetEvidenceFolderCommand = async ( input: GetEvidenceFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "controlSetId", - () => input.controlSetId!, - "{controlSetId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "evidenceFolderId", - () => input.evidenceFolderId!, - "{evidenceFolderId}", - false - ); + b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("controlSetId", () => input.controlSetId!, "{controlSetId}", false); + b.p("evidenceFolderId", () => input.evidenceFolderId!, "{evidenceFolderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1270,34 +857,17 @@ export const se_GetEvidenceFoldersByAssessmentCommand = async ( input: GetEvidenceFoldersByAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/evidenceFolders"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/evidenceFolders"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1307,43 +877,19 @@ export const se_GetEvidenceFoldersByAssessmentControlCommand = async ( input: GetEvidenceFoldersByAssessmentControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "controlSetId", - () => input.controlSetId!, - "{controlSetId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId!, "{controlId}", false); + b.bp("/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("controlSetId", () => input.controlSetId!, "{controlSetId}", false); + b.p("controlId", () => input.controlId!, "{controlId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1353,22 +899,15 @@ export const se_GetInsightsCommand = async ( input: GetInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights"; + b.bp("/insights"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1378,28 +917,13 @@ export const se_GetInsightsByAssessmentCommand = async ( input: GetInsightsByAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/assessments/{assessmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/insights/assessments/{assessmentId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1409,23 +933,15 @@ export const se_GetOrganizationAdminAccountCommand = async ( input: GetOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/organizationAdminAccount"; + b.bp("/account/organizationAdminAccount"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1435,22 +951,15 @@ export const se_GetServicesInScopeCommand = async ( input: GetServicesInScopeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services"; + b.bp("/services"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1460,20 +969,13 @@ export const se_GetSettingsCommand = async ( input: GetSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/{attribute}"; - resolvedPath = __resolvedPath(resolvedPath, input, "attribute", () => input.attribute!, "{attribute}", false); + b.bp("/settings/{attribute}"); + b.p("attribute", () => input.attribute!, "{attribute}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1483,27 +985,18 @@ export const se_ListAssessmentControlInsightsByControlDomainCommand = async ( input: ListAssessmentControlInsightsByControlDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment"; + b.bp("/insights/controls-by-assessment"); const query: any = map({ - controlDomainId: [, __expectNonNull(input.controlDomainId!, `controlDomainId`)], - assessmentId: [, __expectNonNull(input.assessmentId!, `assessmentId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_cDI]: [, __expectNonNull(input[_cDI]!, `controlDomainId`)], + [_aI]: [, __expectNonNull(input[_aI]!, `assessmentId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1513,25 +1006,17 @@ export const se_ListAssessmentFrameworksCommand = async ( input: ListAssessmentFrameworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks"; + b.bp("/assessmentFrameworks"); const query: any = map({ - frameworkType: [, __expectNonNull(input.frameworkType!, `frameworkType`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_fT]: [, __expectNonNull(input[_fT]!, `frameworkType`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1541,26 +1026,17 @@ export const se_ListAssessmentFrameworkShareRequestsCommand = async ( input: ListAssessmentFrameworkShareRequestsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests"; + b.bp("/assessmentFrameworkShareRequests"); const query: any = map({ - requestType: [, __expectNonNull(input.requestType!, `requestType`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_rT]: [, __expectNonNull(input[_rT]!, `requestType`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1570,24 +1046,16 @@ export const se_ListAssessmentReportsCommand = async ( input: ListAssessmentReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports"; + b.bp("/assessmentReports"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1597,25 +1065,17 @@ export const se_ListAssessmentsCommand = async ( input: ListAssessmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments"; + b.bp("/assessments"); const query: any = map({ - status: [, input.status!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_s]: [, input[_s]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1625,25 +1085,16 @@ export const se_ListControlDomainInsightsCommand = async ( input: ListControlDomainInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains"; + b.bp("/insights/control-domains"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1653,26 +1104,17 @@ export const se_ListControlDomainInsightsByAssessmentCommand = async ( input: ListControlDomainInsightsByAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment"; + b.bp("/insights/control-domains-by-assessment"); const query: any = map({ - assessmentId: [, __expectNonNull(input.assessmentId!, `assessmentId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_aI]: [, __expectNonNull(input[_aI]!, `assessmentId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1682,25 +1124,17 @@ export const se_ListControlInsightsByControlDomainCommand = async ( input: ListControlInsightsByControlDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls"; + b.bp("/insights/controls"); const query: any = map({ - controlDomainId: [, __expectNonNull(input.controlDomainId!, `controlDomainId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_cDI]: [, __expectNonNull(input[_cDI]!, `controlDomainId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1710,25 +1144,17 @@ export const se_ListControlsCommand = async ( input: ListControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls"; + b.bp("/controls"); const query: any = map({ - controlType: [, __expectNonNull(input.controlType!, `controlType`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_cT]: [, __expectNonNull(input[_cT]!, `controlType`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1738,25 +1164,17 @@ export const se_ListKeywordsForDataSourceCommand = async ( input: ListKeywordsForDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords"; + b.bp("/dataSourceKeywords"); const query: any = map({ - source: [, __expectNonNull(input.source!, `source`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_so]: [, __expectNonNull(input[_so]!, `source`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1766,24 +1184,16 @@ export const se_ListNotificationsCommand = async ( input: ListNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/notifications"; + b.bp("/notifications"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1793,20 +1203,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1816,12 +1219,11 @@ export const se_RegisterAccountCommand = async ( input: RegisterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerAccount"; + b.bp("/account/registerAccount"); let body: any; body = JSON.stringify( take(input, { @@ -1829,15 +1231,8 @@ export const se_RegisterAccountCommand = async ( kmsKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1847,27 +1242,19 @@ export const se_RegisterOrganizationAdminAccountCommand = async ( input: RegisterOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerOrganizationAdminAccount"; + b.bp("/account/registerOrganizationAdminAccount"); let body: any; body = JSON.stringify( take(input, { adminAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1877,14 +1264,12 @@ export const se_StartAssessmentFrameworkShareCommand = async ( input: StartAssessmentFrameworkShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessmentFrameworks/{frameworkId}/shareRequests"; - resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId!, "{frameworkId}", false); + b.bp("/assessmentFrameworks/{frameworkId}/shareRequests"); + b.p("frameworkId", () => input.frameworkId!, "{frameworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1893,15 +1278,8 @@ export const se_StartAssessmentFrameworkShareCommand = async ( destinationRegion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1911,27 +1289,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1941,27 +1312,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1971,20 +1334,12 @@ export const se_UpdateAssessmentCommand = async ( input: UpdateAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1995,15 +1350,8 @@ export const se_UpdateAssessmentCommand = async ( scope: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2013,30 +1361,14 @@ export const se_UpdateAssessmentControlCommand = async ( input: UpdateAssessmentControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "controlSetId", - () => input.controlSetId!, - "{controlSetId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId!, "{controlId}", false); + b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("controlSetId", () => input.controlSetId!, "{controlSetId}", false); + b.p("controlId", () => input.controlId!, "{controlId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2044,15 +1376,8 @@ export const se_UpdateAssessmentControlCommand = async ( controlStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2062,29 +1387,13 @@ export const se_UpdateAssessmentControlSetStatusCommand = async ( input: UpdateAssessmentControlSetStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessments/{assessmentId}/controlSets/{controlSetId}/status"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "controlSetId", - () => input.controlSetId!, - "{controlSetId}", - false - ); + b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/status"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); + b.p("controlSetId", () => input.controlSetId!, "{controlSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2092,15 +1401,8 @@ export const se_UpdateAssessmentControlSetStatusCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2110,13 +1412,12 @@ export const se_UpdateAssessmentFrameworkCommand = async ( input: UpdateAssessmentFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId!, "{frameworkId}", false); + b.bp("/assessmentFrameworks/{frameworkId}"); + b.p("frameworkId", () => input.frameworkId!, "{frameworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2126,15 +1427,8 @@ export const se_UpdateAssessmentFrameworkCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2144,14 +1438,12 @@ export const se_UpdateAssessmentFrameworkShareCommand = async ( input: UpdateAssessmentFrameworkShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assessmentFrameworkShareRequests/{requestId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "requestId", () => input.requestId!, "{requestId}", false); + b.bp("/assessmentFrameworkShareRequests/{requestId}"); + b.p("requestId", () => input.requestId!, "{requestId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2159,15 +1451,8 @@ export const se_UpdateAssessmentFrameworkShareCommand = async ( requestType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2177,35 +1462,20 @@ export const se_UpdateAssessmentStatusCommand = async ( input: UpdateAssessmentStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/status"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assessmentId", - () => input.assessmentId!, - "{assessmentId}", - false - ); + b.bp("/assessments/{assessmentId}/status"); + b.p("assessmentId", () => input.assessmentId!, "{assessmentId}", false); let body: any; body = JSON.stringify( take(input, { status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2215,12 +1485,12 @@ export const se_UpdateControlCommand = async ( input: UpdateControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId!, "{controlId}", false); + b.bp("/controls/{controlId}"); + b.p("controlId", () => input.controlId!, "{controlId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2232,15 +1502,8 @@ export const se_UpdateControlCommand = async ( testingInformation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2250,11 +1513,11 @@ export const se_UpdateSettingsCommand = async ( input: UpdateSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings"; + b.bp("/settings"); let body: any; body = JSON.stringify( take(input, { @@ -2267,15 +1530,8 @@ export const se_UpdateSettingsCommand = async ( snsTopic: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2285,27 +1541,19 @@ export const se_ValidateAssessmentReportIntegrityCommand = async ( input: ValidateAssessmentReportIntegrityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports/integrity"; + b.bp("/assessmentReports/integrity"); let body: any; body = JSON.stringify( take(input, { s3RelativePath: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6668,6 +5916,20 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aI = "assessmentId"; +const _cDI = "controlDomainId"; +const _cI = "controlId"; +const _cSI = "controlSetId"; +const _cT = "controlType"; +const _fN = "fileName"; +const _fT = "frameworkType"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rT = "requestType"; +const _s = "status"; +const _so = "source"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-auto-scaling/src/protocols/Aws_query.ts b/clients/client-auto-scaling/src/protocols/Aws_query.ts index 86ef143e11a0..8d88dc59b867 100644 --- a/clients/client-auto-scaling/src/protocols/Aws_query.ts +++ b/clients/client-auto-scaling/src/protocols/Aws_query.ts @@ -435,8 +435,8 @@ export const se_AttachInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachInstancesQuery(input, context), - Action: "AttachInstances", - Version: "2011-01-01", + [_A]: _AI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -452,8 +452,8 @@ export const se_AttachLoadBalancersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachLoadBalancersType(input, context), - Action: "AttachLoadBalancers", - Version: "2011-01-01", + [_A]: _ALB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -469,8 +469,8 @@ export const se_AttachLoadBalancerTargetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachLoadBalancerTargetGroupsType(input, context), - Action: "AttachLoadBalancerTargetGroups", - Version: "2011-01-01", + [_A]: _ALBTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -486,8 +486,8 @@ export const se_AttachTrafficSourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachTrafficSourcesType(input, context), - Action: "AttachTrafficSources", - Version: "2011-01-01", + [_A]: _ATS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -503,8 +503,8 @@ export const se_BatchDeleteScheduledActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BatchDeleteScheduledActionType(input, context), - Action: "BatchDeleteScheduledAction", - Version: "2011-01-01", + [_A]: _BDSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -520,8 +520,8 @@ export const se_BatchPutScheduledUpdateGroupActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BatchPutScheduledUpdateGroupActionType(input, context), - Action: "BatchPutScheduledUpdateGroupAction", - Version: "2011-01-01", + [_A]: _BPSUGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -537,8 +537,8 @@ export const se_CancelInstanceRefreshCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelInstanceRefreshType(input, context), - Action: "CancelInstanceRefresh", - Version: "2011-01-01", + [_A]: _CIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -554,8 +554,8 @@ export const se_CompleteLifecycleActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CompleteLifecycleActionType(input, context), - Action: "CompleteLifecycleAction", - Version: "2011-01-01", + [_A]: _CLA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -571,8 +571,8 @@ export const se_CreateAutoScalingGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateAutoScalingGroupType(input, context), - Action: "CreateAutoScalingGroup", - Version: "2011-01-01", + [_A]: _CASG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -588,8 +588,8 @@ export const se_CreateLaunchConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLaunchConfigurationType(input, context), - Action: "CreateLaunchConfiguration", - Version: "2011-01-01", + [_A]: _CLC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -605,8 +605,8 @@ export const se_CreateOrUpdateTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateOrUpdateTagsType(input, context), - Action: "CreateOrUpdateTags", - Version: "2011-01-01", + [_A]: _COUT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -622,8 +622,8 @@ export const se_DeleteAutoScalingGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAutoScalingGroupType(input, context), - Action: "DeleteAutoScalingGroup", - Version: "2011-01-01", + [_A]: _DASG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -639,8 +639,8 @@ export const se_DeleteLaunchConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_LaunchConfigurationNameType(input, context), - Action: "DeleteLaunchConfiguration", - Version: "2011-01-01", + [_A]: _DLC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -656,8 +656,8 @@ export const se_DeleteLifecycleHookCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLifecycleHookType(input, context), - Action: "DeleteLifecycleHook", - Version: "2011-01-01", + [_A]: _DLH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -673,8 +673,8 @@ export const se_DeleteNotificationConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNotificationConfigurationType(input, context), - Action: "DeleteNotificationConfiguration", - Version: "2011-01-01", + [_A]: _DNC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -690,8 +690,8 @@ export const se_DeletePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeletePolicyType(input, context), - Action: "DeletePolicy", - Version: "2011-01-01", + [_A]: _DP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -707,8 +707,8 @@ export const se_DeleteScheduledActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteScheduledActionType(input, context), - Action: "DeleteScheduledAction", - Version: "2011-01-01", + [_A]: _DSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -724,8 +724,8 @@ export const se_DeleteTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTagsType(input, context), - Action: "DeleteTags", - Version: "2011-01-01", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -741,8 +741,8 @@ export const se_DeleteWarmPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteWarmPoolType(input, context), - Action: "DeleteWarmPool", - Version: "2011-01-01", + [_A]: _DWP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -756,8 +756,8 @@ export const se_DescribeAccountLimitsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeAccountLimits", - Version: "2011-01-01", + [_A]: _DAL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -771,8 +771,8 @@ export const se_DescribeAdjustmentTypesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeAdjustmentTypes", - Version: "2011-01-01", + [_A]: _DAT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -788,8 +788,8 @@ export const se_DescribeAutoScalingGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AutoScalingGroupNamesType(input, context), - Action: "DescribeAutoScalingGroups", - Version: "2011-01-01", + [_A]: _DASGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -805,8 +805,8 @@ export const se_DescribeAutoScalingInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAutoScalingInstancesType(input, context), - Action: "DescribeAutoScalingInstances", - Version: "2011-01-01", + [_A]: _DASI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -820,8 +820,8 @@ export const se_DescribeAutoScalingNotificationTypesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeAutoScalingNotificationTypes", - Version: "2011-01-01", + [_A]: _DASNT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -837,8 +837,8 @@ export const se_DescribeInstanceRefreshesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceRefreshesType(input, context), - Action: "DescribeInstanceRefreshes", - Version: "2011-01-01", + [_A]: _DIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -854,8 +854,8 @@ export const se_DescribeLaunchConfigurationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_LaunchConfigurationNamesType(input, context), - Action: "DescribeLaunchConfigurations", - Version: "2011-01-01", + [_A]: _DLCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -871,8 +871,8 @@ export const se_DescribeLifecycleHooksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLifecycleHooksType(input, context), - Action: "DescribeLifecycleHooks", - Version: "2011-01-01", + [_A]: _DLHe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -886,8 +886,8 @@ export const se_DescribeLifecycleHookTypesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeLifecycleHookTypes", - Version: "2011-01-01", + [_A]: _DLHT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -903,8 +903,8 @@ export const se_DescribeLoadBalancersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoadBalancersRequest(input, context), - Action: "DescribeLoadBalancers", - Version: "2011-01-01", + [_A]: _DLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -920,8 +920,8 @@ export const se_DescribeLoadBalancerTargetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoadBalancerTargetGroupsRequest(input, context), - Action: "DescribeLoadBalancerTargetGroups", - Version: "2011-01-01", + [_A]: _DLBTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -935,8 +935,8 @@ export const se_DescribeMetricCollectionTypesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeMetricCollectionTypes", - Version: "2011-01-01", + [_A]: _DMCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -952,8 +952,8 @@ export const se_DescribeNotificationConfigurationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNotificationConfigurationsType(input, context), - Action: "DescribeNotificationConfigurations", - Version: "2011-01-01", + [_A]: _DNCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -969,8 +969,8 @@ export const se_DescribePoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePoliciesType(input, context), - Action: "DescribePolicies", - Version: "2011-01-01", + [_A]: _DPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -986,8 +986,8 @@ export const se_DescribeScalingActivitiesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeScalingActivitiesType(input, context), - Action: "DescribeScalingActivities", - Version: "2011-01-01", + [_A]: _DSAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1001,8 +1001,8 @@ export const se_DescribeScalingProcessTypesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeScalingProcessTypes", - Version: "2011-01-01", + [_A]: _DSPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1018,8 +1018,8 @@ export const se_DescribeScheduledActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeScheduledActionsType(input, context), - Action: "DescribeScheduledActions", - Version: "2011-01-01", + [_A]: _DSAes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1035,8 +1035,8 @@ export const se_DescribeTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTagsType(input, context), - Action: "DescribeTags", - Version: "2011-01-01", + [_A]: _DTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1050,8 +1050,8 @@ export const se_DescribeTerminationPolicyTypesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeTerminationPolicyTypes", - Version: "2011-01-01", + [_A]: _DTPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1067,8 +1067,8 @@ export const se_DescribeTrafficSourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrafficSourcesRequest(input, context), - Action: "DescribeTrafficSources", - Version: "2011-01-01", + [_A]: _DTS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1084,8 +1084,8 @@ export const se_DescribeWarmPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeWarmPoolType(input, context), - Action: "DescribeWarmPool", - Version: "2011-01-01", + [_A]: _DWPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1101,8 +1101,8 @@ export const se_DetachInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachInstancesQuery(input, context), - Action: "DetachInstances", - Version: "2011-01-01", + [_A]: _DI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1118,8 +1118,8 @@ export const se_DetachLoadBalancersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachLoadBalancersType(input, context), - Action: "DetachLoadBalancers", - Version: "2011-01-01", + [_A]: _DLBe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1135,8 +1135,8 @@ export const se_DetachLoadBalancerTargetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachLoadBalancerTargetGroupsType(input, context), - Action: "DetachLoadBalancerTargetGroups", - Version: "2011-01-01", + [_A]: _DLBTGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1152,8 +1152,8 @@ export const se_DetachTrafficSourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachTrafficSourcesType(input, context), - Action: "DetachTrafficSources", - Version: "2011-01-01", + [_A]: _DTSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1169,8 +1169,8 @@ export const se_DisableMetricsCollectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableMetricsCollectionQuery(input, context), - Action: "DisableMetricsCollection", - Version: "2011-01-01", + [_A]: _DMC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1186,8 +1186,8 @@ export const se_EnableMetricsCollectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableMetricsCollectionQuery(input, context), - Action: "EnableMetricsCollection", - Version: "2011-01-01", + [_A]: _EMC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1203,8 +1203,8 @@ export const se_EnterStandbyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnterStandbyQuery(input, context), - Action: "EnterStandby", - Version: "2011-01-01", + [_A]: _ES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1220,8 +1220,8 @@ export const se_ExecutePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExecutePolicyType(input, context), - Action: "ExecutePolicy", - Version: "2011-01-01", + [_A]: _EP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1237,8 +1237,8 @@ export const se_ExitStandbyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExitStandbyQuery(input, context), - Action: "ExitStandby", - Version: "2011-01-01", + [_A]: _ESx, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1254,8 +1254,8 @@ export const se_GetPredictiveScalingForecastCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetPredictiveScalingForecastType(input, context), - Action: "GetPredictiveScalingForecast", - Version: "2011-01-01", + [_A]: _GPSF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1271,8 +1271,8 @@ export const se_PutLifecycleHookCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutLifecycleHookType(input, context), - Action: "PutLifecycleHook", - Version: "2011-01-01", + [_A]: _PLH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1288,8 +1288,8 @@ export const se_PutNotificationConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutNotificationConfigurationType(input, context), - Action: "PutNotificationConfiguration", - Version: "2011-01-01", + [_A]: _PNC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1305,8 +1305,8 @@ export const se_PutScalingPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutScalingPolicyType(input, context), - Action: "PutScalingPolicy", - Version: "2011-01-01", + [_A]: _PSP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1322,8 +1322,8 @@ export const se_PutScheduledUpdateGroupActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutScheduledUpdateGroupActionType(input, context), - Action: "PutScheduledUpdateGroupAction", - Version: "2011-01-01", + [_A]: _PSUGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1339,8 +1339,8 @@ export const se_PutWarmPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutWarmPoolType(input, context), - Action: "PutWarmPool", - Version: "2011-01-01", + [_A]: _PWP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1356,8 +1356,8 @@ export const se_RecordLifecycleActionHeartbeatCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RecordLifecycleActionHeartbeatType(input, context), - Action: "RecordLifecycleActionHeartbeat", - Version: "2011-01-01", + [_A]: _RLAH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1373,8 +1373,8 @@ export const se_ResumeProcessesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ScalingProcessQuery(input, context), - Action: "ResumeProcesses", - Version: "2011-01-01", + [_A]: _RP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1390,8 +1390,8 @@ export const se_RollbackInstanceRefreshCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RollbackInstanceRefreshType(input, context), - Action: "RollbackInstanceRefresh", - Version: "2011-01-01", + [_A]: _RIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1407,8 +1407,8 @@ export const se_SetDesiredCapacityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetDesiredCapacityType(input, context), - Action: "SetDesiredCapacity", - Version: "2011-01-01", + [_A]: _SDC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1424,8 +1424,8 @@ export const se_SetInstanceHealthCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetInstanceHealthQuery(input, context), - Action: "SetInstanceHealth", - Version: "2011-01-01", + [_A]: _SIH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1441,8 +1441,8 @@ export const se_SetInstanceProtectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetInstanceProtectionQuery(input, context), - Action: "SetInstanceProtection", - Version: "2011-01-01", + [_A]: _SIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1458,8 +1458,8 @@ export const se_StartInstanceRefreshCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartInstanceRefreshType(input, context), - Action: "StartInstanceRefresh", - Version: "2011-01-01", + [_A]: _SIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1475,8 +1475,8 @@ export const se_SuspendProcessesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ScalingProcessQuery(input, context), - Action: "SuspendProcesses", - Version: "2011-01-01", + [_A]: _SP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1492,8 +1492,8 @@ export const se_TerminateInstanceInAutoScalingGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TerminateInstanceInAutoScalingGroupType(input, context), - Action: "TerminateInstanceInAutoScalingGroup", - Version: "2011-01-01", + [_A]: _TIIASG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1509,8 +1509,8 @@ export const se_UpdateAutoScalingGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateAutoScalingGroupType(input, context), - Action: "UpdateAutoScalingGroup", - Version: "2011-01-01", + [_A]: _UASG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4778,11 +4778,11 @@ const de_ServiceLinkedRoleFailureRes = async ( */ const se_AcceleratorCountRequest = (input: AcceleratorCountRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -4824,11 +4824,11 @@ const se_AcceleratorNames = (input: AcceleratorName[], context: __SerdeContext): */ const se_AcceleratorTotalMemoryMiBRequest = (input: AcceleratorTotalMemoryMiBRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -4886,9 +4886,9 @@ const se_AlarmList = (input: string[], context: __SerdeContext): any => { */ const se_AlarmSpecification = (input: AlarmSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.Alarms != null) { - const memberEntries = se_AlarmList(input.Alarms, context); - if (input.Alarms?.length === 0) { + if (input[_Al] != null) { + const memberEntries = se_AlarmList(input[_Al], context); + if (input[_Al]?.length === 0) { entries.Alarms = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4920,9 +4920,9 @@ const se_AllowedInstanceTypes = (input: string[], context: __SerdeContext): any */ const se_AttachInstancesQuery = (input: AttachInstancesQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIds(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_II] != null) { + const memberEntries = se_InstanceIds(input[_II], context); + if (input[_II]?.length === 0) { entries.InstanceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4930,8 +4930,8 @@ const se_AttachInstancesQuery = (input: AttachInstancesQuery, context: __SerdeCo entries[loc] = value; }); } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } return entries; }; @@ -4941,12 +4941,12 @@ const se_AttachInstancesQuery = (input: AttachInstancesQuery, context: __SerdeCo */ const se_AttachLoadBalancersType = (input: AttachLoadBalancersType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LoadBalancerNames != null) { - const memberEntries = se_LoadBalancerNames(input.LoadBalancerNames, context); - if (input.LoadBalancerNames?.length === 0) { + if (input[_LBN] != null) { + const memberEntries = se_LoadBalancerNames(input[_LBN], context); + if (input[_LBN]?.length === 0) { entries.LoadBalancerNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4965,12 +4965,12 @@ const se_AttachLoadBalancerTargetGroupsType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.TargetGroupARNs != null) { - const memberEntries = se_TargetGroupARNs(input.TargetGroupARNs, context); - if (input.TargetGroupARNs?.length === 0) { + if (input[_TGARN] != null) { + const memberEntries = se_TargetGroupARNs(input[_TGARN], context); + if (input[_TGARN]?.length === 0) { entries.TargetGroupARNs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4986,12 +4986,12 @@ const se_AttachLoadBalancerTargetGroupsType = ( */ const se_AttachTrafficSourcesType = (input: AttachTrafficSourcesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.TrafficSources != null) { - const memberEntries = se_TrafficSources(input.TrafficSources, context); - if (input.TrafficSources?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TrafficSources(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TrafficSources = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5023,9 +5023,9 @@ const se_AutoScalingGroupNames = (input: string[], context: __SerdeContext): any */ const se_AutoScalingGroupNamesType = (input: AutoScalingGroupNamesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupNames != null) { - const memberEntries = se_AutoScalingGroupNames(input.AutoScalingGroupNames, context); - if (input.AutoScalingGroupNames?.length === 0) { + if (input[_ASGNu] != null) { + const memberEntries = se_AutoScalingGroupNames(input[_ASGNu], context); + if (input[_ASGNu]?.length === 0) { entries.AutoScalingGroupNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5033,15 +5033,15 @@ const se_AutoScalingGroupNamesType = (input: AutoScalingGroupNamesType, context: entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_Filters(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_Filters(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5089,11 +5089,11 @@ const se_AvailabilityZones = (input: string[], context: __SerdeContext): any => */ const se_BaselineEbsBandwidthMbpsRequest = (input: BaselineEbsBandwidthMbpsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -5103,12 +5103,12 @@ const se_BaselineEbsBandwidthMbpsRequest = (input: BaselineEbsBandwidthMbpsReque */ const se_BatchDeleteScheduledActionType = (input: BatchDeleteScheduledActionType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ScheduledActionNames != null) { - const memberEntries = se_ScheduledActionNames(input.ScheduledActionNames, context); - if (input.ScheduledActionNames?.length === 0) { + if (input[_SAN] != null) { + const memberEntries = se_ScheduledActionNames(input[_SAN], context); + if (input[_SAN]?.length === 0) { entries.ScheduledActionNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5127,12 +5127,12 @@ const se_BatchPutScheduledUpdateGroupActionType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ScheduledUpdateGroupActions != null) { - const memberEntries = se_ScheduledUpdateGroupActionRequests(input.ScheduledUpdateGroupActions, context); - if (input.ScheduledUpdateGroupActions?.length === 0) { + if (input[_SUGA] != null) { + const memberEntries = se_ScheduledUpdateGroupActionRequests(input[_SUGA], context); + if (input[_SUGA]?.length === 0) { entries.ScheduledUpdateGroupActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5148,21 +5148,21 @@ const se_BatchPutScheduledUpdateGroupActionType = ( */ const se_BlockDeviceMapping = (input: BlockDeviceMapping, context: __SerdeContext): any => { const entries: any = {}; - if (input.VirtualName != null) { - entries["VirtualName"] = input.VirtualName; + if (input[_VN] != null) { + entries[_VN] = input[_VN]; } - if (input.DeviceName != null) { - entries["DeviceName"] = input.DeviceName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Ebs != null) { - const memberEntries = se_Ebs(input.Ebs, context); + if (input[_E] != null) { + const memberEntries = se_Ebs(input[_E], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Ebs.${key}`; entries[loc] = value; }); } - if (input.NoDevice != null) { - entries["NoDevice"] = input.NoDevice; + if (input[_ND] != null) { + entries[_ND] = input[_ND]; } return entries; }; @@ -5191,8 +5191,8 @@ const se_BlockDeviceMappings = (input: BlockDeviceMapping[], context: __SerdeCon */ const se_CancelInstanceRefreshType = (input: CancelInstanceRefreshType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } return entries; }; @@ -5234,20 +5234,20 @@ const se_ClassicLinkVPCSecurityGroups = (input: string[], context: __SerdeContex */ const se_CompleteLifecycleActionType = (input: CompleteLifecycleActionType, context: __SerdeContext): any => { const entries: any = {}; - if (input.LifecycleHookName != null) { - entries["LifecycleHookName"] = input.LifecycleHookName; + if (input[_LHN] != null) { + entries[_LHN] = input[_LHN]; } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LifecycleActionToken != null) { - entries["LifecycleActionToken"] = input.LifecycleActionToken; + if (input[_LAT] != null) { + entries[_LAT] = input[_LAT]; } - if (input.LifecycleActionResult != null) { - entries["LifecycleActionResult"] = input.LifecycleActionResult; + if (input[_LAR] != null) { + entries[_LAR] = input[_LAR]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } return entries; }; @@ -5273,44 +5273,44 @@ const se_CpuManufacturers = (input: CpuManufacturer[], context: __SerdeContext): */ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LaunchConfigurationName != null) { - entries["LaunchConfigurationName"] = input.LaunchConfigurationName; + if (input[_LCN] != null) { + entries[_LCN] = input[_LCN]; } - if (input.LaunchTemplate != null) { - const memberEntries = se_LaunchTemplateSpecification(input.LaunchTemplate, context); + if (input[_LT] != null) { + const memberEntries = se_LaunchTemplateSpecification(input[_LT], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplate.${key}`; entries[loc] = value; }); } - if (input.MixedInstancesPolicy != null) { - const memberEntries = se_MixedInstancesPolicy(input.MixedInstancesPolicy, context); + if (input[_MIP] != null) { + const memberEntries = se_MixedInstancesPolicy(input[_MIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MixedInstancesPolicy.${key}`; entries[loc] = value; }); } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.MinSize != null) { - entries["MinSize"] = input.MinSize; + if (input[_MS] != null) { + entries[_MS] = input[_MS]; } - if (input.MaxSize != null) { - entries["MaxSize"] = input.MaxSize; + if (input[_MSa] != null) { + entries[_MSa] = input[_MSa]; } - if (input.DesiredCapacity != null) { - entries["DesiredCapacity"] = input.DesiredCapacity; + if (input[_DC] != null) { + entries[_DC] = input[_DC]; } - if (input.DefaultCooldown != null) { - entries["DefaultCooldown"] = input.DefaultCooldown; + if (input[_DCe] != null) { + entries[_DCe] = input[_DCe]; } - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5318,9 +5318,9 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.LoadBalancerNames != null) { - const memberEntries = se_LoadBalancerNames(input.LoadBalancerNames, context); - if (input.LoadBalancerNames?.length === 0) { + if (input[_LBN] != null) { + const memberEntries = se_LoadBalancerNames(input[_LBN], context); + if (input[_LBN]?.length === 0) { entries.LoadBalancerNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5328,9 +5328,9 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.TargetGroupARNs != null) { - const memberEntries = se_TargetGroupARNs(input.TargetGroupARNs, context); - if (input.TargetGroupARNs?.length === 0) { + if (input[_TGARN] != null) { + const memberEntries = se_TargetGroupARNs(input[_TGARN], context); + if (input[_TGARN]?.length === 0) { entries.TargetGroupARNs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5338,21 +5338,21 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.HealthCheckType != null) { - entries["HealthCheckType"] = input.HealthCheckType; + if (input[_HCT] != null) { + entries[_HCT] = input[_HCT]; } - if (input.HealthCheckGracePeriod != null) { - entries["HealthCheckGracePeriod"] = input.HealthCheckGracePeriod; + if (input[_HCGP] != null) { + entries[_HCGP] = input[_HCGP]; } - if (input.PlacementGroup != null) { - entries["PlacementGroup"] = input.PlacementGroup; + if (input[_PG] != null) { + entries[_PG] = input[_PG]; } - if (input.VPCZoneIdentifier != null) { - entries["VPCZoneIdentifier"] = input.VPCZoneIdentifier; + if (input[_VPCZI] != null) { + entries[_VPCZI] = input[_VPCZI]; } - if (input.TerminationPolicies != null) { - const memberEntries = se_TerminationPolicies(input.TerminationPolicies, context); - if (input.TerminationPolicies?.length === 0) { + if (input[_TP] != null) { + const memberEntries = se_TerminationPolicies(input[_TP], context); + if (input[_TP]?.length === 0) { entries.TerminationPolicies = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5360,15 +5360,15 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.NewInstancesProtectedFromScaleIn != null) { - entries["NewInstancesProtectedFromScaleIn"] = input.NewInstancesProtectedFromScaleIn; + if (input[_NIPFSI] != null) { + entries[_NIPFSI] = input[_NIPFSI]; } - if (input.CapacityRebalance != null) { - entries["CapacityRebalance"] = input.CapacityRebalance; + if (input[_CR] != null) { + entries[_CR] = input[_CR]; } - if (input.LifecycleHookSpecificationList != null) { - const memberEntries = se_LifecycleHookSpecifications(input.LifecycleHookSpecificationList, context); - if (input.LifecycleHookSpecificationList?.length === 0) { + if (input[_LHSL] != null) { + const memberEntries = se_LifecycleHookSpecifications(input[_LHSL], context); + if (input[_LHSL]?.length === 0) { entries.LifecycleHookSpecificationList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5376,9 +5376,9 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5386,24 +5386,24 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.ServiceLinkedRoleARN != null) { - entries["ServiceLinkedRoleARN"] = input.ServiceLinkedRoleARN; + if (input[_SLRARN] != null) { + entries[_SLRARN] = input[_SLRARN]; } - if (input.MaxInstanceLifetime != null) { - entries["MaxInstanceLifetime"] = input.MaxInstanceLifetime; + if (input[_MIL] != null) { + entries[_MIL] = input[_MIL]; } - if (input.Context != null) { - entries["Context"] = input.Context; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.DesiredCapacityType != null) { - entries["DesiredCapacityType"] = input.DesiredCapacityType; + if (input[_DCT] != null) { + entries[_DCT] = input[_DCT]; } - if (input.DefaultInstanceWarmup != null) { - entries["DefaultInstanceWarmup"] = input.DefaultInstanceWarmup; + if (input[_DIW] != null) { + entries[_DIW] = input[_DIW]; } - if (input.TrafficSources != null) { - const memberEntries = se_TrafficSources(input.TrafficSources, context); - if (input.TrafficSources?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TrafficSources(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TrafficSources = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5411,8 +5411,8 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.InstanceMaintenancePolicy != null) { - const memberEntries = se_InstanceMaintenancePolicy(input.InstanceMaintenancePolicy, context); + if (input[_IMP] != null) { + const memberEntries = se_InstanceMaintenancePolicy(input[_IMP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceMaintenancePolicy.${key}`; entries[loc] = value; @@ -5426,18 +5426,18 @@ const se_CreateAutoScalingGroupType = (input: CreateAutoScalingGroupType, contex */ const se_CreateLaunchConfigurationType = (input: CreateLaunchConfigurationType, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchConfigurationName != null) { - entries["LaunchConfigurationName"] = input.LaunchConfigurationName; + if (input[_LCN] != null) { + entries[_LCN] = input[_LCN]; } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIm] != null) { + entries[_IIm] = input[_IIm]; } - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroups(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_SecurityGroups(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5445,12 +5445,12 @@ const se_CreateLaunchConfigurationType = (input: CreateLaunchConfigurationType, entries[loc] = value; }); } - if (input.ClassicLinkVPCId != null) { - entries["ClassicLinkVPCId"] = input.ClassicLinkVPCId; + if (input[_CLVPCI] != null) { + entries[_CLVPCI] = input[_CLVPCI]; } - if (input.ClassicLinkVPCSecurityGroups != null) { - const memberEntries = se_ClassicLinkVPCSecurityGroups(input.ClassicLinkVPCSecurityGroups, context); - if (input.ClassicLinkVPCSecurityGroups?.length === 0) { + if (input[_CLVPCSG] != null) { + const memberEntries = se_ClassicLinkVPCSecurityGroups(input[_CLVPCSG], context); + if (input[_CLVPCSG]?.length === 0) { entries.ClassicLinkVPCSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5458,24 +5458,24 @@ const se_CreateLaunchConfigurationType = (input: CreateLaunchConfigurationType, entries[loc] = value; }); } - if (input.UserData != null) { - entries["UserData"] = input.UserData; + if (input[_UD] != null) { + entries[_UD] = input[_UD]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.KernelId != null) { - entries["KernelId"] = input.KernelId; + if (input[_KI] != null) { + entries[_KI] = input[_KI]; } - if (input.RamdiskId != null) { - entries["RamdiskId"] = input.RamdiskId; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.BlockDeviceMappings != null) { - const memberEntries = se_BlockDeviceMappings(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_BlockDeviceMappings(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMappings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5483,30 +5483,30 @@ const se_CreateLaunchConfigurationType = (input: CreateLaunchConfigurationType, entries[loc] = value; }); } - if (input.InstanceMonitoring != null) { - const memberEntries = se_InstanceMonitoring(input.InstanceMonitoring, context); + if (input[_IM] != null) { + const memberEntries = se_InstanceMonitoring(input[_IM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceMonitoring.${key}`; entries[loc] = value; }); } - if (input.SpotPrice != null) { - entries["SpotPrice"] = input.SpotPrice; + if (input[_SPp] != null) { + entries[_SPp] = input[_SPp]; } - if (input.IamInstanceProfile != null) { - entries["IamInstanceProfile"] = input.IamInstanceProfile; + if (input[_IIP] != null) { + entries[_IIP] = input[_IIP]; } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.AssociatePublicIpAddress != null) { - entries["AssociatePublicIpAddress"] = input.AssociatePublicIpAddress; + if (input[_APIA] != null) { + entries[_APIA] = input[_APIA]; } - if (input.PlacementTenancy != null) { - entries["PlacementTenancy"] = input.PlacementTenancy; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } - if (input.MetadataOptions != null) { - const memberEntries = se_InstanceMetadataOptions(input.MetadataOptions, context); + if (input[_MO] != null) { + const memberEntries = se_InstanceMetadataOptions(input[_MO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetadataOptions.${key}`; entries[loc] = value; @@ -5520,9 +5520,9 @@ const se_CreateLaunchConfigurationType = (input: CreateLaunchConfigurationType, */ const se_CreateOrUpdateTagsType = (input: CreateOrUpdateTagsType, context: __SerdeContext): any => { const entries: any = {}; - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5538,15 +5538,15 @@ const se_CreateOrUpdateTagsType = (input: CreateOrUpdateTagsType, context: __Ser */ const se_CustomizedMetricSpecification = (input: CustomizedMetricSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Dimensions != null) { - const memberEntries = se_MetricDimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_MetricDimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5554,15 +5554,15 @@ const se_CustomizedMetricSpecification = (input: CustomizedMetricSpecification, entries[loc] = value; }); } - if (input.Statistic != null) { - entries["Statistic"] = input.Statistic; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } - if (input.Metrics != null) { - const memberEntries = se_TargetTrackingMetricDataQueries(input.Metrics, context); - if (input.Metrics?.length === 0) { + if (input[_Me] != null) { + const memberEntries = se_TargetTrackingMetricDataQueries(input[_Me], context); + if (input[_Me]?.length === 0) { entries.Metrics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5578,11 +5578,11 @@ const se_CustomizedMetricSpecification = (input: CustomizedMetricSpecification, */ const se_DeleteAutoScalingGroupType = (input: DeleteAutoScalingGroupType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ForceDelete != null) { - entries["ForceDelete"] = input.ForceDelete; + if (input[_FD] != null) { + entries[_FD] = input[_FD]; } return entries; }; @@ -5592,11 +5592,11 @@ const se_DeleteAutoScalingGroupType = (input: DeleteAutoScalingGroupType, contex */ const se_DeleteLifecycleHookType = (input: DeleteLifecycleHookType, context: __SerdeContext): any => { const entries: any = {}; - if (input.LifecycleHookName != null) { - entries["LifecycleHookName"] = input.LifecycleHookName; + if (input[_LHN] != null) { + entries[_LHN] = input[_LHN]; } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } return entries; }; @@ -5609,11 +5609,11 @@ const se_DeleteNotificationConfigurationType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.TopicARN != null) { - entries["TopicARN"] = input.TopicARN; + if (input[_TARN] != null) { + entries[_TARN] = input[_TARN]; } return entries; }; @@ -5623,11 +5623,11 @@ const se_DeleteNotificationConfigurationType = ( */ const se_DeletePolicyType = (input: DeletePolicyType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -5637,11 +5637,11 @@ const se_DeletePolicyType = (input: DeletePolicyType, context: __SerdeContext): */ const se_DeleteScheduledActionType = (input: DeleteScheduledActionType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ScheduledActionName != null) { - entries["ScheduledActionName"] = input.ScheduledActionName; + if (input[_SANc] != null) { + entries[_SANc] = input[_SANc]; } return entries; }; @@ -5651,9 +5651,9 @@ const se_DeleteScheduledActionType = (input: DeleteScheduledActionType, context: */ const se_DeleteTagsType = (input: DeleteTagsType, context: __SerdeContext): any => { const entries: any = {}; - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5669,11 +5669,11 @@ const se_DeleteTagsType = (input: DeleteTagsType, context: __SerdeContext): any */ const se_DeleteWarmPoolType = (input: DeleteWarmPoolType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ForceDelete != null) { - entries["ForceDelete"] = input.ForceDelete; + if (input[_FD] != null) { + entries[_FD] = input[_FD]; } return entries; }; @@ -5683,9 +5683,9 @@ const se_DeleteWarmPoolType = (input: DeleteWarmPoolType, context: __SerdeContex */ const se_DescribeAutoScalingInstancesType = (input: DescribeAutoScalingInstancesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIds(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_II] != null) { + const memberEntries = se_InstanceIds(input[_II], context); + if (input[_II]?.length === 0) { entries.InstanceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5693,11 +5693,11 @@ const se_DescribeAutoScalingInstancesType = (input: DescribeAutoScalingInstances entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -5707,12 +5707,12 @@ const se_DescribeAutoScalingInstancesType = (input: DescribeAutoScalingInstances */ const se_DescribeInstanceRefreshesType = (input: DescribeInstanceRefreshesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.InstanceRefreshIds != null) { - const memberEntries = se_InstanceRefreshIds(input.InstanceRefreshIds, context); - if (input.InstanceRefreshIds?.length === 0) { + if (input[_IRI] != null) { + const memberEntries = se_InstanceRefreshIds(input[_IRI], context); + if (input[_IRI]?.length === 0) { entries.InstanceRefreshIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5720,11 +5720,11 @@ const se_DescribeInstanceRefreshesType = (input: DescribeInstanceRefreshesType, entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5734,12 +5734,12 @@ const se_DescribeInstanceRefreshesType = (input: DescribeInstanceRefreshesType, */ const se_DescribeLifecycleHooksType = (input: DescribeLifecycleHooksType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LifecycleHookNames != null) { - const memberEntries = se_LifecycleHookNames(input.LifecycleHookNames, context); - if (input.LifecycleHookNames?.length === 0) { + if (input[_LHNi] != null) { + const memberEntries = se_LifecycleHookNames(input[_LHNi], context); + if (input[_LHNi]?.length === 0) { entries.LifecycleHookNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5755,14 +5755,14 @@ const se_DescribeLifecycleHooksType = (input: DescribeLifecycleHooksType, contex */ const se_DescribeLoadBalancersRequest = (input: DescribeLoadBalancersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5775,14 +5775,14 @@ const se_DescribeLoadBalancerTargetGroupsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5795,9 +5795,9 @@ const se_DescribeNotificationConfigurationsType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoScalingGroupNames != null) { - const memberEntries = se_AutoScalingGroupNames(input.AutoScalingGroupNames, context); - if (input.AutoScalingGroupNames?.length === 0) { + if (input[_ASGNu] != null) { + const memberEntries = se_AutoScalingGroupNames(input[_ASGNu], context); + if (input[_ASGNu]?.length === 0) { entries.AutoScalingGroupNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5805,11 +5805,11 @@ const se_DescribeNotificationConfigurationsType = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5819,12 +5819,12 @@ const se_DescribeNotificationConfigurationsType = ( */ const se_DescribePoliciesType = (input: DescribePoliciesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.PolicyNames != null) { - const memberEntries = se_PolicyNames(input.PolicyNames, context); - if (input.PolicyNames?.length === 0) { + if (input[_PNo] != null) { + const memberEntries = se_PolicyNames(input[_PNo], context); + if (input[_PNo]?.length === 0) { entries.PolicyNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5832,9 +5832,9 @@ const se_DescribePoliciesType = (input: DescribePoliciesType, context: __SerdeCo entries[loc] = value; }); } - if (input.PolicyTypes != null) { - const memberEntries = se_PolicyTypes(input.PolicyTypes, context); - if (input.PolicyTypes?.length === 0) { + if (input[_PTo] != null) { + const memberEntries = se_PolicyTypes(input[_PTo], context); + if (input[_PTo]?.length === 0) { entries.PolicyTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5842,11 +5842,11 @@ const se_DescribePoliciesType = (input: DescribePoliciesType, context: __SerdeCo entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5856,9 +5856,9 @@ const se_DescribePoliciesType = (input: DescribePoliciesType, context: __SerdeCo */ const se_DescribeScalingActivitiesType = (input: DescribeScalingActivitiesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.ActivityIds != null) { - const memberEntries = se_ActivityIds(input.ActivityIds, context); - if (input.ActivityIds?.length === 0) { + if (input[_AIc] != null) { + const memberEntries = se_ActivityIds(input[_AIc], context); + if (input[_AIc]?.length === 0) { entries.ActivityIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5866,17 +5866,17 @@ const se_DescribeScalingActivitiesType = (input: DescribeScalingActivitiesType, entries[loc] = value; }); } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.IncludeDeletedGroups != null) { - entries["IncludeDeletedGroups"] = input.IncludeDeletedGroups; + if (input[_IDG] != null) { + entries[_IDG] = input[_IDG]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -5886,12 +5886,12 @@ const se_DescribeScalingActivitiesType = (input: DescribeScalingActivitiesType, */ const se_DescribeScheduledActionsType = (input: DescribeScheduledActionsType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ScheduledActionNames != null) { - const memberEntries = se_ScheduledActionNames(input.ScheduledActionNames, context); - if (input.ScheduledActionNames?.length === 0) { + if (input[_SAN] != null) { + const memberEntries = se_ScheduledActionNames(input[_SAN], context); + if (input[_SAN]?.length === 0) { entries.ScheduledActionNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5899,17 +5899,17 @@ const se_DescribeScheduledActionsType = (input: DescribeScheduledActionsType, co entries[loc] = value; }); } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5919,9 +5919,9 @@ const se_DescribeScheduledActionsType = (input: DescribeScheduledActionsType, co */ const se_DescribeTagsType = (input: DescribeTagsType, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_Filters(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_Filters(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5929,11 +5929,11 @@ const se_DescribeTagsType = (input: DescribeTagsType, context: __SerdeContext): entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5943,17 +5943,17 @@ const se_DescribeTagsType = (input: DescribeTagsType, context: __SerdeContext): */ const se_DescribeTrafficSourcesRequest = (input: DescribeTrafficSourcesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.TrafficSourceType != null) { - entries["TrafficSourceType"] = input.TrafficSourceType; + if (input[_TST] != null) { + entries[_TST] = input[_TST]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -5963,14 +5963,14 @@ const se_DescribeTrafficSourcesRequest = (input: DescribeTrafficSourcesRequest, */ const se_DescribeWarmPoolType = (input: DescribeWarmPoolType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -5980,15 +5980,15 @@ const se_DescribeWarmPoolType = (input: DescribeWarmPoolType, context: __SerdeCo */ const se_DesiredConfiguration = (input: DesiredConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplate != null) { - const memberEntries = se_LaunchTemplateSpecification(input.LaunchTemplate, context); + if (input[_LT] != null) { + const memberEntries = se_LaunchTemplateSpecification(input[_LT], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplate.${key}`; entries[loc] = value; }); } - if (input.MixedInstancesPolicy != null) { - const memberEntries = se_MixedInstancesPolicy(input.MixedInstancesPolicy, context); + if (input[_MIP] != null) { + const memberEntries = se_MixedInstancesPolicy(input[_MIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MixedInstancesPolicy.${key}`; entries[loc] = value; @@ -6002,9 +6002,9 @@ const se_DesiredConfiguration = (input: DesiredConfiguration, context: __SerdeCo */ const se_DetachInstancesQuery = (input: DetachInstancesQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIds(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_II] != null) { + const memberEntries = se_InstanceIds(input[_II], context); + if (input[_II]?.length === 0) { entries.InstanceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6012,11 +6012,11 @@ const se_DetachInstancesQuery = (input: DetachInstancesQuery, context: __SerdeCo entries[loc] = value; }); } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ShouldDecrementDesiredCapacity != null) { - entries["ShouldDecrementDesiredCapacity"] = input.ShouldDecrementDesiredCapacity; + if (input[_SDDC] != null) { + entries[_SDDC] = input[_SDDC]; } return entries; }; @@ -6026,12 +6026,12 @@ const se_DetachInstancesQuery = (input: DetachInstancesQuery, context: __SerdeCo */ const se_DetachLoadBalancersType = (input: DetachLoadBalancersType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LoadBalancerNames != null) { - const memberEntries = se_LoadBalancerNames(input.LoadBalancerNames, context); - if (input.LoadBalancerNames?.length === 0) { + if (input[_LBN] != null) { + const memberEntries = se_LoadBalancerNames(input[_LBN], context); + if (input[_LBN]?.length === 0) { entries.LoadBalancerNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6050,12 +6050,12 @@ const se_DetachLoadBalancerTargetGroupsType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.TargetGroupARNs != null) { - const memberEntries = se_TargetGroupARNs(input.TargetGroupARNs, context); - if (input.TargetGroupARNs?.length === 0) { + if (input[_TGARN] != null) { + const memberEntries = se_TargetGroupARNs(input[_TGARN], context); + if (input[_TGARN]?.length === 0) { entries.TargetGroupARNs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6071,12 +6071,12 @@ const se_DetachLoadBalancerTargetGroupsType = ( */ const se_DetachTrafficSourcesType = (input: DetachTrafficSourcesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.TrafficSources != null) { - const memberEntries = se_TrafficSources(input.TrafficSources, context); - if (input.TrafficSources?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TrafficSources(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TrafficSources = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6092,12 +6092,12 @@ const se_DetachTrafficSourcesType = (input: DetachTrafficSourcesType, context: _ */ const se_DisableMetricsCollectionQuery = (input: DisableMetricsCollectionQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.Metrics != null) { - const memberEntries = se_Metrics(input.Metrics, context); - if (input.Metrics?.length === 0) { + if (input[_Me] != null) { + const memberEntries = se_Metrics(input[_Me], context); + if (input[_Me]?.length === 0) { entries.Metrics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6113,26 +6113,26 @@ const se_DisableMetricsCollectionQuery = (input: DisableMetricsCollectionQuery, */ const se_Ebs = (input: Ebs, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.VolumeSize != null) { - entries["VolumeSize"] = input.VolumeSize; + if (input[_VS] != null) { + entries[_VS] = input[_VS]; } - if (input.VolumeType != null) { - entries["VolumeType"] = input.VolumeType; + if (input[_VT] != null) { + entries[_VT] = input[_VT]; } - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.Throughput != null) { - entries["Throughput"] = input.Throughput; + if (input[_Th] != null) { + entries[_Th] = input[_Th]; } return entries; }; @@ -6142,12 +6142,12 @@ const se_Ebs = (input: Ebs, context: __SerdeContext): any => { */ const se_EnableMetricsCollectionQuery = (input: EnableMetricsCollectionQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.Metrics != null) { - const memberEntries = se_Metrics(input.Metrics, context); - if (input.Metrics?.length === 0) { + if (input[_Me] != null) { + const memberEntries = se_Metrics(input[_Me], context); + if (input[_Me]?.length === 0) { entries.Metrics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6155,8 +6155,8 @@ const se_EnableMetricsCollectionQuery = (input: EnableMetricsCollectionQuery, co entries[loc] = value; }); } - if (input.Granularity != null) { - entries["Granularity"] = input.Granularity; + if (input[_G] != null) { + entries[_G] = input[_G]; } return entries; }; @@ -6166,9 +6166,9 @@ const se_EnableMetricsCollectionQuery = (input: EnableMetricsCollectionQuery, co */ const se_EnterStandbyQuery = (input: EnterStandbyQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIds(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_II] != null) { + const memberEntries = se_InstanceIds(input[_II], context); + if (input[_II]?.length === 0) { entries.InstanceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6176,11 +6176,11 @@ const se_EnterStandbyQuery = (input: EnterStandbyQuery, context: __SerdeContext) entries[loc] = value; }); } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ShouldDecrementDesiredCapacity != null) { - entries["ShouldDecrementDesiredCapacity"] = input.ShouldDecrementDesiredCapacity; + if (input[_SDDC] != null) { + entries[_SDDC] = input[_SDDC]; } return entries; }; @@ -6206,20 +6206,20 @@ const se_ExcludedInstanceTypes = (input: string[], context: __SerdeContext): any */ const se_ExecutePolicyType = (input: ExecutePolicyType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.HonorCooldown != null) { - entries["HonorCooldown"] = input.HonorCooldown; + if (input[_HC] != null) { + entries[_HC] = input[_HC]; } - if (input.MetricValue != null) { - entries["MetricValue"] = __serializeFloat(input.MetricValue); + if (input[_MV] != null) { + entries[_MV] = __serializeFloat(input[_MV]); } - if (input.BreachThreshold != null) { - entries["BreachThreshold"] = __serializeFloat(input.BreachThreshold); + if (input[_BT] != null) { + entries[_BT] = __serializeFloat(input[_BT]); } return entries; }; @@ -6229,9 +6229,9 @@ const se_ExecutePolicyType = (input: ExecutePolicyType, context: __SerdeContext) */ const se_ExitStandbyQuery = (input: ExitStandbyQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIds(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_II] != null) { + const memberEntries = se_InstanceIds(input[_II], context); + if (input[_II]?.length === 0) { entries.InstanceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6239,8 +6239,8 @@ const se_ExitStandbyQuery = (input: ExitStandbyQuery, context: __SerdeContext): entries[loc] = value; }); } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } return entries; }; @@ -6250,12 +6250,12 @@ const se_ExitStandbyQuery = (input: ExitStandbyQuery, context: __SerdeContext): */ const se_Filter = (input: Filter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } - if (input.Values != null) { - const memberEntries = se_Values(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_Values(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6290,17 +6290,17 @@ const se_Filters = (input: Filter[], context: __SerdeContext): any => { */ const se_GetPredictiveScalingForecastType = (input: GetPredictiveScalingForecastType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -6342,11 +6342,11 @@ const se_InstanceIds = (input: string[], context: __SerdeContext): any => { */ const se_InstanceMaintenancePolicy = (input: InstanceMaintenancePolicy, context: __SerdeContext): any => { const entries: any = {}; - if (input.MinHealthyPercentage != null) { - entries["MinHealthyPercentage"] = input.MinHealthyPercentage; + if (input[_MHP] != null) { + entries[_MHP] = input[_MHP]; } - if (input.MaxHealthyPercentage != null) { - entries["MaxHealthyPercentage"] = input.MaxHealthyPercentage; + if (input[_MHPa] != null) { + entries[_MHPa] = input[_MHPa]; } return entries; }; @@ -6356,14 +6356,14 @@ const se_InstanceMaintenancePolicy = (input: InstanceMaintenancePolicy, context: */ const se_InstanceMetadataOptions = (input: InstanceMetadataOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.HttpTokens != null) { - entries["HttpTokens"] = input.HttpTokens; + if (input[_HT] != null) { + entries[_HT] = input[_HT]; } - if (input.HttpPutResponseHopLimit != null) { - entries["HttpPutResponseHopLimit"] = input.HttpPutResponseHopLimit; + if (input[_HPRHL] != null) { + entries[_HPRHL] = input[_HPRHL]; } - if (input.HttpEndpoint != null) { - entries["HttpEndpoint"] = input.HttpEndpoint; + if (input[_HE] != null) { + entries[_HE] = input[_HE]; } return entries; }; @@ -6373,8 +6373,8 @@ const se_InstanceMetadataOptions = (input: InstanceMetadataOptions, context: __S */ const se_InstanceMonitoring = (input: InstanceMonitoring, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_Ena] != null) { + entries[_Ena] = input[_Ena]; } return entries; }; @@ -6400,23 +6400,23 @@ const se_InstanceRefreshIds = (input: string[], context: __SerdeContext): any => */ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeContext): any => { const entries: any = {}; - if (input.VCpuCount != null) { - const memberEntries = se_VCpuCountRequest(input.VCpuCount, context); + if (input[_VCC] != null) { + const memberEntries = se_VCpuCountRequest(input[_VCC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `VCpuCount.${key}`; entries[loc] = value; }); } - if (input.MemoryMiB != null) { - const memberEntries = se_MemoryMiBRequest(input.MemoryMiB, context); + if (input[_MMB] != null) { + const memberEntries = se_MemoryMiBRequest(input[_MMB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MemoryMiB.${key}`; entries[loc] = value; }); } - if (input.CpuManufacturers != null) { - const memberEntries = se_CpuManufacturers(input.CpuManufacturers, context); - if (input.CpuManufacturers?.length === 0) { + if (input[_CM] != null) { + const memberEntries = se_CpuManufacturers(input[_CM], context); + if (input[_CM]?.length === 0) { entries.CpuManufacturers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6424,16 +6424,16 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.MemoryGiBPerVCpu != null) { - const memberEntries = se_MemoryGiBPerVCpuRequest(input.MemoryGiBPerVCpu, context); + if (input[_MGBPVC] != null) { + const memberEntries = se_MemoryGiBPerVCpuRequest(input[_MGBPVC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MemoryGiBPerVCpu.${key}`; entries[loc] = value; }); } - if (input.ExcludedInstanceTypes != null) { - const memberEntries = se_ExcludedInstanceTypes(input.ExcludedInstanceTypes, context); - if (input.ExcludedInstanceTypes?.length === 0) { + if (input[_EIT] != null) { + const memberEntries = se_ExcludedInstanceTypes(input[_EIT], context); + if (input[_EIT]?.length === 0) { entries.ExcludedInstanceTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6441,9 +6441,9 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.InstanceGenerations != null) { - const memberEntries = se_InstanceGenerations(input.InstanceGenerations, context); - if (input.InstanceGenerations?.length === 0) { + if (input[_IG] != null) { + const memberEntries = se_InstanceGenerations(input[_IG], context); + if (input[_IG]?.length === 0) { entries.InstanceGenerations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6451,34 +6451,34 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.SpotMaxPricePercentageOverLowestPrice != null) { - entries["SpotMaxPricePercentageOverLowestPrice"] = input.SpotMaxPricePercentageOverLowestPrice; + if (input[_SMPPOLP] != null) { + entries[_SMPPOLP] = input[_SMPPOLP]; } - if (input.OnDemandMaxPricePercentageOverLowestPrice != null) { - entries["OnDemandMaxPricePercentageOverLowestPrice"] = input.OnDemandMaxPricePercentageOverLowestPrice; + if (input[_ODMPPOLP] != null) { + entries[_ODMPPOLP] = input[_ODMPPOLP]; } - if (input.BareMetal != null) { - entries["BareMetal"] = input.BareMetal; + if (input[_BM] != null) { + entries[_BM] = input[_BM]; } - if (input.BurstablePerformance != null) { - entries["BurstablePerformance"] = input.BurstablePerformance; + if (input[_BP] != null) { + entries[_BP] = input[_BP]; } - if (input.RequireHibernateSupport != null) { - entries["RequireHibernateSupport"] = input.RequireHibernateSupport; + if (input[_RHS] != null) { + entries[_RHS] = input[_RHS]; } - if (input.NetworkInterfaceCount != null) { - const memberEntries = se_NetworkInterfaceCountRequest(input.NetworkInterfaceCount, context); + if (input[_NIC] != null) { + const memberEntries = se_NetworkInterfaceCountRequest(input[_NIC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkInterfaceCount.${key}`; entries[loc] = value; }); } - if (input.LocalStorage != null) { - entries["LocalStorage"] = input.LocalStorage; + if (input[_LS] != null) { + entries[_LS] = input[_LS]; } - if (input.LocalStorageTypes != null) { - const memberEntries = se_LocalStorageTypes(input.LocalStorageTypes, context); - if (input.LocalStorageTypes?.length === 0) { + if (input[_LST] != null) { + const memberEntries = se_LocalStorageTypes(input[_LST], context); + if (input[_LST]?.length === 0) { entries.LocalStorageTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6486,23 +6486,23 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.TotalLocalStorageGB != null) { - const memberEntries = se_TotalLocalStorageGBRequest(input.TotalLocalStorageGB, context); + if (input[_TLSGB] != null) { + const memberEntries = se_TotalLocalStorageGBRequest(input[_TLSGB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TotalLocalStorageGB.${key}`; entries[loc] = value; }); } - if (input.BaselineEbsBandwidthMbps != null) { - const memberEntries = se_BaselineEbsBandwidthMbpsRequest(input.BaselineEbsBandwidthMbps, context); + if (input[_BEBM] != null) { + const memberEntries = se_BaselineEbsBandwidthMbpsRequest(input[_BEBM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `BaselineEbsBandwidthMbps.${key}`; entries[loc] = value; }); } - if (input.AcceleratorTypes != null) { - const memberEntries = se_AcceleratorTypes(input.AcceleratorTypes, context); - if (input.AcceleratorTypes?.length === 0) { + if (input[_AT] != null) { + const memberEntries = se_AcceleratorTypes(input[_AT], context); + if (input[_AT]?.length === 0) { entries.AcceleratorTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6510,16 +6510,16 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.AcceleratorCount != null) { - const memberEntries = se_AcceleratorCountRequest(input.AcceleratorCount, context); + if (input[_AC] != null) { + const memberEntries = se_AcceleratorCountRequest(input[_AC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AcceleratorCount.${key}`; entries[loc] = value; }); } - if (input.AcceleratorManufacturers != null) { - const memberEntries = se_AcceleratorManufacturers(input.AcceleratorManufacturers, context); - if (input.AcceleratorManufacturers?.length === 0) { + if (input[_AM] != null) { + const memberEntries = se_AcceleratorManufacturers(input[_AM], context); + if (input[_AM]?.length === 0) { entries.AcceleratorManufacturers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6527,9 +6527,9 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.AcceleratorNames != null) { - const memberEntries = se_AcceleratorNames(input.AcceleratorNames, context); - if (input.AcceleratorNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_AcceleratorNames(input[_AN], context); + if (input[_AN]?.length === 0) { entries.AcceleratorNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6537,23 +6537,23 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.AcceleratorTotalMemoryMiB != null) { - const memberEntries = se_AcceleratorTotalMemoryMiBRequest(input.AcceleratorTotalMemoryMiB, context); + if (input[_ATMMB] != null) { + const memberEntries = se_AcceleratorTotalMemoryMiBRequest(input[_ATMMB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AcceleratorTotalMemoryMiB.${key}`; entries[loc] = value; }); } - if (input.NetworkBandwidthGbps != null) { - const memberEntries = se_NetworkBandwidthGbpsRequest(input.NetworkBandwidthGbps, context); + if (input[_NBG] != null) { + const memberEntries = se_NetworkBandwidthGbpsRequest(input[_NBG], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkBandwidthGbps.${key}`; entries[loc] = value; }); } - if (input.AllowedInstanceTypes != null) { - const memberEntries = se_AllowedInstanceTypes(input.AllowedInstanceTypes, context); - if (input.AllowedInstanceTypes?.length === 0) { + if (input[_AIT] != null) { + const memberEntries = se_AllowedInstanceTypes(input[_AIT], context); + if (input[_AIT]?.length === 0) { entries.AllowedInstanceTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6569,8 +6569,8 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo */ const se_InstanceReusePolicy = (input: InstanceReusePolicy, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReuseOnScaleIn != null) { - entries["ReuseOnScaleIn"] = input.ReuseOnScaleIn; + if (input[_ROSI] != null) { + entries[_ROSI] = input[_ROSI]; } return entries; }; @@ -6580,23 +6580,23 @@ const se_InstanceReusePolicy = (input: InstanceReusePolicy, context: __SerdeCont */ const se_InstancesDistribution = (input: InstancesDistribution, context: __SerdeContext): any => { const entries: any = {}; - if (input.OnDemandAllocationStrategy != null) { - entries["OnDemandAllocationStrategy"] = input.OnDemandAllocationStrategy; + if (input[_ODAS] != null) { + entries[_ODAS] = input[_ODAS]; } - if (input.OnDemandBaseCapacity != null) { - entries["OnDemandBaseCapacity"] = input.OnDemandBaseCapacity; + if (input[_ODBC] != null) { + entries[_ODBC] = input[_ODBC]; } - if (input.OnDemandPercentageAboveBaseCapacity != null) { - entries["OnDemandPercentageAboveBaseCapacity"] = input.OnDemandPercentageAboveBaseCapacity; + if (input[_ODPABC] != null) { + entries[_ODPABC] = input[_ODPABC]; } - if (input.SpotAllocationStrategy != null) { - entries["SpotAllocationStrategy"] = input.SpotAllocationStrategy; + if (input[_SAS] != null) { + entries[_SAS] = input[_SAS]; } - if (input.SpotInstancePools != null) { - entries["SpotInstancePools"] = input.SpotInstancePools; + if (input[_SIPp] != null) { + entries[_SIPp] = input[_SIPp]; } - if (input.SpotMaxPrice != null) { - entries["SpotMaxPrice"] = input.SpotMaxPrice; + if (input[_SMP] != null) { + entries[_SMP] = input[_SMP]; } return entries; }; @@ -6622,9 +6622,9 @@ const se_LaunchConfigurationNames = (input: string[], context: __SerdeContext): */ const se_LaunchConfigurationNamesType = (input: LaunchConfigurationNamesType, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchConfigurationNames != null) { - const memberEntries = se_LaunchConfigurationNames(input.LaunchConfigurationNames, context); - if (input.LaunchConfigurationNames?.length === 0) { + if (input[_LCNa] != null) { + const memberEntries = se_LaunchConfigurationNames(input[_LCNa], context); + if (input[_LCNa]?.length === 0) { entries.LaunchConfigurationNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6632,11 +6632,11 @@ const se_LaunchConfigurationNamesType = (input: LaunchConfigurationNamesType, co entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -6646,8 +6646,8 @@ const se_LaunchConfigurationNamesType = (input: LaunchConfigurationNamesType, co */ const se_LaunchConfigurationNameType = (input: LaunchConfigurationNameType, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchConfigurationName != null) { - entries["LaunchConfigurationName"] = input.LaunchConfigurationName; + if (input[_LCN] != null) { + entries[_LCN] = input[_LCN]; } return entries; }; @@ -6657,16 +6657,16 @@ const se_LaunchConfigurationNameType = (input: LaunchConfigurationNameType, cont */ const se_LaunchTemplate = (input: LaunchTemplate, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplateSpecification != null) { - const memberEntries = se_LaunchTemplateSpecification(input.LaunchTemplateSpecification, context); + if (input[_LTS] != null) { + const memberEntries = se_LaunchTemplateSpecification(input[_LTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplateSpecification.${key}`; entries[loc] = value; }); } - if (input.Overrides != null) { - const memberEntries = se_Overrides(input.Overrides, context); - if (input.Overrides?.length === 0) { + if (input[_O] != null) { + const memberEntries = se_Overrides(input[_O], context); + if (input[_O]?.length === 0) { entries.Overrides = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6682,21 +6682,21 @@ const se_LaunchTemplate = (input: LaunchTemplate, context: __SerdeContext): any */ const se_LaunchTemplateOverrides = (input: LaunchTemplateOverrides, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.WeightedCapacity != null) { - entries["WeightedCapacity"] = input.WeightedCapacity; + if (input[_WC] != null) { + entries[_WC] = input[_WC]; } - if (input.LaunchTemplateSpecification != null) { - const memberEntries = se_LaunchTemplateSpecification(input.LaunchTemplateSpecification, context); + if (input[_LTS] != null) { + const memberEntries = se_LaunchTemplateSpecification(input[_LTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplateSpecification.${key}`; entries[loc] = value; }); } - if (input.InstanceRequirements != null) { - const memberEntries = se_InstanceRequirements(input.InstanceRequirements, context); + if (input[_IR] != null) { + const memberEntries = se_InstanceRequirements(input[_IR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirements.${key}`; entries[loc] = value; @@ -6710,14 +6710,14 @@ const se_LaunchTemplateOverrides = (input: LaunchTemplateOverrides, context: __S */ const se_LaunchTemplateSpecification = (input: LaunchTemplateSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.Version != null) { - entries["Version"] = input.Version; + if (input[_V] != null) { + entries[_V] = input[_V]; } return entries; }; @@ -6743,26 +6743,26 @@ const se_LifecycleHookNames = (input: string[], context: __SerdeContext): any => */ const se_LifecycleHookSpecification = (input: LifecycleHookSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.LifecycleHookName != null) { - entries["LifecycleHookName"] = input.LifecycleHookName; + if (input[_LHN] != null) { + entries[_LHN] = input[_LHN]; } - if (input.LifecycleTransition != null) { - entries["LifecycleTransition"] = input.LifecycleTransition; + if (input[_LTi] != null) { + entries[_LTi] = input[_LTi]; } - if (input.NotificationMetadata != null) { - entries["NotificationMetadata"] = input.NotificationMetadata; + if (input[_NM] != null) { + entries[_NM] = input[_NM]; } - if (input.HeartbeatTimeout != null) { - entries["HeartbeatTimeout"] = input.HeartbeatTimeout; + if (input[_HTe] != null) { + entries[_HTe] = input[_HTe]; } - if (input.DefaultResult != null) { - entries["DefaultResult"] = input.DefaultResult; + if (input[_DR] != null) { + entries[_DR] = input[_DR]; } - if (input.NotificationTargetARN != null) { - entries["NotificationTargetARN"] = input.NotificationTargetARN; + if (input[_NTARN] != null) { + entries[_NTARN] = input[_NTARN]; } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } return entries; }; @@ -6823,11 +6823,11 @@ const se_LocalStorageTypes = (input: LocalStorageType[], context: __SerdeContext */ const se_MemoryGiBPerVCpuRequest = (input: MemoryGiBPerVCpuRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -6837,11 +6837,11 @@ const se_MemoryGiBPerVCpuRequest = (input: MemoryGiBPerVCpuRequest, context: __S */ const se_MemoryMiBRequest = (input: MemoryMiBRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -6851,15 +6851,15 @@ const se_MemoryMiBRequest = (input: MemoryMiBRequest, context: __SerdeContext): */ const se_Metric = (input: Metric, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_MetricDimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_MetricDimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6894,24 +6894,24 @@ const se_MetricDataQueries = (input: MetricDataQuery[], context: __SerdeContext) */ const se_MetricDataQuery = (input: MetricDataQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.Id != null) { - entries["Id"] = input.Id; + if (input[_Id] != null) { + entries[_Id] = input[_Id]; } - if (input.Expression != null) { - entries["Expression"] = input.Expression; + if (input[_Ex] != null) { + entries[_Ex] = input[_Ex]; } - if (input.MetricStat != null) { - const memberEntries = se_MetricStat(input.MetricStat, context); + if (input[_MSe] != null) { + const memberEntries = se_MetricStat(input[_MSe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetricStat.${key}`; entries[loc] = value; }); } - if (input.Label != null) { - entries["Label"] = input.Label; + if (input[_L] != null) { + entries[_L] = input[_L]; } - if (input.ReturnData != null) { - entries["ReturnData"] = input.ReturnData; + if (input[_RD] != null) { + entries[_RD] = input[_RD]; } return entries; }; @@ -6921,11 +6921,11 @@ const se_MetricDataQuery = (input: MetricDataQuery, context: __SerdeContext): an */ const se_MetricDimension = (input: MetricDimension, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -6970,18 +6970,18 @@ const se_Metrics = (input: string[], context: __SerdeContext): any => { */ const se_MetricStat = (input: MetricStat, context: __SerdeContext): any => { const entries: any = {}; - if (input.Metric != null) { - const memberEntries = se_Metric(input.Metric, context); + if (input[_Met] != null) { + const memberEntries = se_Metric(input[_Met], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Metric.${key}`; entries[loc] = value; }); } - if (input.Stat != null) { - entries["Stat"] = input.Stat; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } return entries; }; @@ -6991,15 +6991,15 @@ const se_MetricStat = (input: MetricStat, context: __SerdeContext): any => { */ const se_MixedInstancesPolicy = (input: MixedInstancesPolicy, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplate != null) { - const memberEntries = se_LaunchTemplate(input.LaunchTemplate, context); + if (input[_LT] != null) { + const memberEntries = se_LaunchTemplate(input[_LT], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplate.${key}`; entries[loc] = value; }); } - if (input.InstancesDistribution != null) { - const memberEntries = se_InstancesDistribution(input.InstancesDistribution, context); + if (input[_ID] != null) { + const memberEntries = se_InstancesDistribution(input[_ID], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstancesDistribution.${key}`; entries[loc] = value; @@ -7013,11 +7013,11 @@ const se_MixedInstancesPolicy = (input: MixedInstancesPolicy, context: __SerdeCo */ const se_NetworkBandwidthGbpsRequest = (input: NetworkBandwidthGbpsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -7027,11 +7027,11 @@ const se_NetworkBandwidthGbpsRequest = (input: NetworkBandwidthGbpsRequest, cont */ const se_NetworkInterfaceCountRequest = (input: NetworkInterfaceCountRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -7092,11 +7092,11 @@ const se_PolicyTypes = (input: string[], context: __SerdeContext): any => { */ const se_PredefinedMetricSpecification = (input: PredefinedMetricSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.PredefinedMetricType != null) { - entries["PredefinedMetricType"] = input.PredefinedMetricType; + if (input[_PMT] != null) { + entries[_PMT] = input[_PMT]; } - if (input.ResourceLabel != null) { - entries["ResourceLabel"] = input.ResourceLabel; + if (input[_RL] != null) { + entries[_RL] = input[_RL]; } return entries; }; @@ -7106,9 +7106,9 @@ const se_PredefinedMetricSpecification = (input: PredefinedMetricSpecification, */ const se_PredictiveScalingConfiguration = (input: PredictiveScalingConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricSpecifications != null) { - const memberEntries = se_PredictiveScalingMetricSpecifications(input.MetricSpecifications, context); - if (input.MetricSpecifications?.length === 0) { + if (input[_MSet] != null) { + const memberEntries = se_PredictiveScalingMetricSpecifications(input[_MSet], context); + if (input[_MSet]?.length === 0) { entries.MetricSpecifications = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7116,17 +7116,17 @@ const se_PredictiveScalingConfiguration = (input: PredictiveScalingConfiguration entries[loc] = value; }); } - if (input.Mode != null) { - entries["Mode"] = input.Mode; + if (input[_Mo] != null) { + entries[_Mo] = input[_Mo]; } - if (input.SchedulingBufferTime != null) { - entries["SchedulingBufferTime"] = input.SchedulingBufferTime; + if (input[_SBT] != null) { + entries[_SBT] = input[_SBT]; } - if (input.MaxCapacityBreachBehavior != null) { - entries["MaxCapacityBreachBehavior"] = input.MaxCapacityBreachBehavior; + if (input[_MCBB] != null) { + entries[_MCBB] = input[_MCBB]; } - if (input.MaxCapacityBuffer != null) { - entries["MaxCapacityBuffer"] = input.MaxCapacityBuffer; + if (input[_MCB] != null) { + entries[_MCB] = input[_MCB]; } return entries; }; @@ -7139,9 +7139,9 @@ const se_PredictiveScalingCustomizedCapacityMetric = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MetricDataQueries != null) { - const memberEntries = se_MetricDataQueries(input.MetricDataQueries, context); - if (input.MetricDataQueries?.length === 0) { + if (input[_MDQ] != null) { + const memberEntries = se_MetricDataQueries(input[_MDQ], context); + if (input[_MDQ]?.length === 0) { entries.MetricDataQueries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7160,9 +7160,9 @@ const se_PredictiveScalingCustomizedLoadMetric = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MetricDataQueries != null) { - const memberEntries = se_MetricDataQueries(input.MetricDataQueries, context); - if (input.MetricDataQueries?.length === 0) { + if (input[_MDQ] != null) { + const memberEntries = se_MetricDataQueries(input[_MDQ], context); + if (input[_MDQ]?.length === 0) { entries.MetricDataQueries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7181,9 +7181,9 @@ const se_PredictiveScalingCustomizedScalingMetric = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MetricDataQueries != null) { - const memberEntries = se_MetricDataQueries(input.MetricDataQueries, context); - if (input.MetricDataQueries?.length === 0) { + if (input[_MDQ] != null) { + const memberEntries = se_MetricDataQueries(input[_MDQ], context); + if (input[_MDQ]?.length === 0) { entries.MetricDataQueries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7202,55 +7202,46 @@ const se_PredictiveScalingMetricSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TargetValue != null) { - entries["TargetValue"] = __serializeFloat(input.TargetValue); + if (input[_TV] != null) { + entries[_TV] = __serializeFloat(input[_TV]); } - if (input.PredefinedMetricPairSpecification != null) { - const memberEntries = se_PredictiveScalingPredefinedMetricPair(input.PredefinedMetricPairSpecification, context); + if (input[_PMPS] != null) { + const memberEntries = se_PredictiveScalingPredefinedMetricPair(input[_PMPS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PredefinedMetricPairSpecification.${key}`; entries[loc] = value; }); } - if (input.PredefinedScalingMetricSpecification != null) { - const memberEntries = se_PredictiveScalingPredefinedScalingMetric( - input.PredefinedScalingMetricSpecification, - context - ); + if (input[_PSMS] != null) { + const memberEntries = se_PredictiveScalingPredefinedScalingMetric(input[_PSMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PredefinedScalingMetricSpecification.${key}`; entries[loc] = value; }); } - if (input.PredefinedLoadMetricSpecification != null) { - const memberEntries = se_PredictiveScalingPredefinedLoadMetric(input.PredefinedLoadMetricSpecification, context); + if (input[_PLMS] != null) { + const memberEntries = se_PredictiveScalingPredefinedLoadMetric(input[_PLMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PredefinedLoadMetricSpecification.${key}`; entries[loc] = value; }); } - if (input.CustomizedScalingMetricSpecification != null) { - const memberEntries = se_PredictiveScalingCustomizedScalingMetric( - input.CustomizedScalingMetricSpecification, - context - ); + if (input[_CSMS] != null) { + const memberEntries = se_PredictiveScalingCustomizedScalingMetric(input[_CSMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CustomizedScalingMetricSpecification.${key}`; entries[loc] = value; }); } - if (input.CustomizedLoadMetricSpecification != null) { - const memberEntries = se_PredictiveScalingCustomizedLoadMetric(input.CustomizedLoadMetricSpecification, context); + if (input[_CLMS] != null) { + const memberEntries = se_PredictiveScalingCustomizedLoadMetric(input[_CLMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CustomizedLoadMetricSpecification.${key}`; entries[loc] = value; }); } - if (input.CustomizedCapacityMetricSpecification != null) { - const memberEntries = se_PredictiveScalingCustomizedCapacityMetric( - input.CustomizedCapacityMetricSpecification, - context - ); + if (input[_CCMS] != null) { + const memberEntries = se_PredictiveScalingCustomizedCapacityMetric(input[_CCMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CustomizedCapacityMetricSpecification.${key}`; entries[loc] = value; @@ -7289,11 +7280,11 @@ const se_PredictiveScalingPredefinedLoadMetric = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PredefinedMetricType != null) { - entries["PredefinedMetricType"] = input.PredefinedMetricType; + if (input[_PMT] != null) { + entries[_PMT] = input[_PMT]; } - if (input.ResourceLabel != null) { - entries["ResourceLabel"] = input.ResourceLabel; + if (input[_RL] != null) { + entries[_RL] = input[_RL]; } return entries; }; @@ -7306,11 +7297,11 @@ const se_PredictiveScalingPredefinedMetricPair = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PredefinedMetricType != null) { - entries["PredefinedMetricType"] = input.PredefinedMetricType; + if (input[_PMT] != null) { + entries[_PMT] = input[_PMT]; } - if (input.ResourceLabel != null) { - entries["ResourceLabel"] = input.ResourceLabel; + if (input[_RL] != null) { + entries[_RL] = input[_RL]; } return entries; }; @@ -7323,11 +7314,11 @@ const se_PredictiveScalingPredefinedScalingMetric = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PredefinedMetricType != null) { - entries["PredefinedMetricType"] = input.PredefinedMetricType; + if (input[_PMT] != null) { + entries[_PMT] = input[_PMT]; } - if (input.ResourceLabel != null) { - entries["ResourceLabel"] = input.ResourceLabel; + if (input[_RL] != null) { + entries[_RL] = input[_RL]; } return entries; }; @@ -7353,29 +7344,29 @@ const se_ProcessNames = (input: string[], context: __SerdeContext): any => { */ const se_PutLifecycleHookType = (input: PutLifecycleHookType, context: __SerdeContext): any => { const entries: any = {}; - if (input.LifecycleHookName != null) { - entries["LifecycleHookName"] = input.LifecycleHookName; + if (input[_LHN] != null) { + entries[_LHN] = input[_LHN]; } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LifecycleTransition != null) { - entries["LifecycleTransition"] = input.LifecycleTransition; + if (input[_LTi] != null) { + entries[_LTi] = input[_LTi]; } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.NotificationTargetARN != null) { - entries["NotificationTargetARN"] = input.NotificationTargetARN; + if (input[_NTARN] != null) { + entries[_NTARN] = input[_NTARN]; } - if (input.NotificationMetadata != null) { - entries["NotificationMetadata"] = input.NotificationMetadata; + if (input[_NM] != null) { + entries[_NM] = input[_NM]; } - if (input.HeartbeatTimeout != null) { - entries["HeartbeatTimeout"] = input.HeartbeatTimeout; + if (input[_HTe] != null) { + entries[_HTe] = input[_HTe]; } - if (input.DefaultResult != null) { - entries["DefaultResult"] = input.DefaultResult; + if (input[_DR] != null) { + entries[_DR] = input[_DR]; } return entries; }; @@ -7385,15 +7376,15 @@ const se_PutLifecycleHookType = (input: PutLifecycleHookType, context: __SerdeCo */ const se_PutNotificationConfigurationType = (input: PutNotificationConfigurationType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.TopicARN != null) { - entries["TopicARN"] = input.TopicARN; + if (input[_TARN] != null) { + entries[_TARN] = input[_TARN]; } - if (input.NotificationTypes != null) { - const memberEntries = se_AutoScalingNotificationTypes(input.NotificationTypes, context); - if (input.NotificationTypes?.length === 0) { + if (input[_NTo] != null) { + const memberEntries = se_AutoScalingNotificationTypes(input[_NTo], context); + if (input[_NTo]?.length === 0) { entries.NotificationTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7409,36 +7400,36 @@ const se_PutNotificationConfigurationType = (input: PutNotificationConfiguration */ const se_PutScalingPolicyType = (input: PutScalingPolicyType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.PolicyType != null) { - entries["PolicyType"] = input.PolicyType; + if (input[_PTol] != null) { + entries[_PTol] = input[_PTol]; } - if (input.AdjustmentType != null) { - entries["AdjustmentType"] = input.AdjustmentType; + if (input[_ATd] != null) { + entries[_ATd] = input[_ATd]; } - if (input.MinAdjustmentStep != null) { - entries["MinAdjustmentStep"] = input.MinAdjustmentStep; + if (input[_MAS] != null) { + entries[_MAS] = input[_MAS]; } - if (input.MinAdjustmentMagnitude != null) { - entries["MinAdjustmentMagnitude"] = input.MinAdjustmentMagnitude; + if (input[_MAM] != null) { + entries[_MAM] = input[_MAM]; } - if (input.ScalingAdjustment != null) { - entries["ScalingAdjustment"] = input.ScalingAdjustment; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.Cooldown != null) { - entries["Cooldown"] = input.Cooldown; + if (input[_Co] != null) { + entries[_Co] = input[_Co]; } - if (input.MetricAggregationType != null) { - entries["MetricAggregationType"] = input.MetricAggregationType; + if (input[_MAT] != null) { + entries[_MAT] = input[_MAT]; } - if (input.StepAdjustments != null) { - const memberEntries = se_StepAdjustments(input.StepAdjustments, context); - if (input.StepAdjustments?.length === 0) { + if (input[_SAt] != null) { + const memberEntries = se_StepAdjustments(input[_SAt], context); + if (input[_SAt]?.length === 0) { entries.StepAdjustments = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7446,21 +7437,21 @@ const se_PutScalingPolicyType = (input: PutScalingPolicyType, context: __SerdeCo entries[loc] = value; }); } - if (input.EstimatedInstanceWarmup != null) { - entries["EstimatedInstanceWarmup"] = input.EstimatedInstanceWarmup; + if (input[_EIW] != null) { + entries[_EIW] = input[_EIW]; } - if (input.TargetTrackingConfiguration != null) { - const memberEntries = se_TargetTrackingConfiguration(input.TargetTrackingConfiguration, context); + if (input[_TTC] != null) { + const memberEntries = se_TargetTrackingConfiguration(input[_TTC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TargetTrackingConfiguration.${key}`; entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_Ena] != null) { + entries[_Ena] = input[_Ena]; } - if (input.PredictiveScalingConfiguration != null) { - const memberEntries = se_PredictiveScalingConfiguration(input.PredictiveScalingConfiguration, context); + if (input[_PSC] != null) { + const memberEntries = se_PredictiveScalingConfiguration(input[_PSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PredictiveScalingConfiguration.${key}`; entries[loc] = value; @@ -7477,35 +7468,35 @@ const se_PutScheduledUpdateGroupActionType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ScheduledActionName != null) { - entries["ScheduledActionName"] = input.ScheduledActionName; + if (input[_SANc] != null) { + entries[_SANc] = input[_SANc]; } - if (input.Time != null) { - entries["Time"] = input.Time.toISOString().split(".")[0] + "Z"; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti].toISOString().split(".")[0] + "Z"; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Recurrence != null) { - entries["Recurrence"] = input.Recurrence; + if (input[_R] != null) { + entries[_R] = input[_R]; } - if (input.MinSize != null) { - entries["MinSize"] = input.MinSize; + if (input[_MS] != null) { + entries[_MS] = input[_MS]; } - if (input.MaxSize != null) { - entries["MaxSize"] = input.MaxSize; + if (input[_MSa] != null) { + entries[_MSa] = input[_MSa]; } - if (input.DesiredCapacity != null) { - entries["DesiredCapacity"] = input.DesiredCapacity; + if (input[_DC] != null) { + entries[_DC] = input[_DC]; } - if (input.TimeZone != null) { - entries["TimeZone"] = input.TimeZone; + if (input[_TZ] != null) { + entries[_TZ] = input[_TZ]; } return entries; }; @@ -7515,20 +7506,20 @@ const se_PutScheduledUpdateGroupActionType = ( */ const se_PutWarmPoolType = (input: PutWarmPoolType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.MaxGroupPreparedCapacity != null) { - entries["MaxGroupPreparedCapacity"] = input.MaxGroupPreparedCapacity; + if (input[_MGPC] != null) { + entries[_MGPC] = input[_MGPC]; } - if (input.MinSize != null) { - entries["MinSize"] = input.MinSize; + if (input[_MS] != null) { + entries[_MS] = input[_MS]; } - if (input.PoolState != null) { - entries["PoolState"] = input.PoolState; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } - if (input.InstanceReusePolicy != null) { - const memberEntries = se_InstanceReusePolicy(input.InstanceReusePolicy, context); + if (input[_IRP] != null) { + const memberEntries = se_InstanceReusePolicy(input[_IRP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceReusePolicy.${key}`; entries[loc] = value; @@ -7545,17 +7536,17 @@ const se_RecordLifecycleActionHeartbeatType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LifecycleHookName != null) { - entries["LifecycleHookName"] = input.LifecycleHookName; + if (input[_LHN] != null) { + entries[_LHN] = input[_LHN]; } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LifecycleActionToken != null) { - entries["LifecycleActionToken"] = input.LifecycleActionToken; + if (input[_LAT] != null) { + entries[_LAT] = input[_LAT]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } return entries; }; @@ -7565,15 +7556,15 @@ const se_RecordLifecycleActionHeartbeatType = ( */ const se_RefreshPreferences = (input: RefreshPreferences, context: __SerdeContext): any => { const entries: any = {}; - if (input.MinHealthyPercentage != null) { - entries["MinHealthyPercentage"] = input.MinHealthyPercentage; + if (input[_MHP] != null) { + entries[_MHP] = input[_MHP]; } - if (input.InstanceWarmup != null) { - entries["InstanceWarmup"] = input.InstanceWarmup; + if (input[_IW] != null) { + entries[_IW] = input[_IW]; } - if (input.CheckpointPercentages != null) { - const memberEntries = se_CheckpointPercentages(input.CheckpointPercentages, context); - if (input.CheckpointPercentages?.length === 0) { + if (input[_CP] != null) { + const memberEntries = se_CheckpointPercentages(input[_CP], context); + if (input[_CP]?.length === 0) { entries.CheckpointPercentages = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7581,30 +7572,30 @@ const se_RefreshPreferences = (input: RefreshPreferences, context: __SerdeContex entries[loc] = value; }); } - if (input.CheckpointDelay != null) { - entries["CheckpointDelay"] = input.CheckpointDelay; + if (input[_CD] != null) { + entries[_CD] = input[_CD]; } - if (input.SkipMatching != null) { - entries["SkipMatching"] = input.SkipMatching; + if (input[_SM] != null) { + entries[_SM] = input[_SM]; } - if (input.AutoRollback != null) { - entries["AutoRollback"] = input.AutoRollback; + if (input[_AR] != null) { + entries[_AR] = input[_AR]; } - if (input.ScaleInProtectedInstances != null) { - entries["ScaleInProtectedInstances"] = input.ScaleInProtectedInstances; + if (input[_SIPI] != null) { + entries[_SIPI] = input[_SIPI]; } - if (input.StandbyInstances != null) { - entries["StandbyInstances"] = input.StandbyInstances; + if (input[_SIt] != null) { + entries[_SIt] = input[_SIt]; } - if (input.AlarmSpecification != null) { - const memberEntries = se_AlarmSpecification(input.AlarmSpecification, context); + if (input[_AS] != null) { + const memberEntries = se_AlarmSpecification(input[_AS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AlarmSpecification.${key}`; entries[loc] = value; }); } - if (input.MaxHealthyPercentage != null) { - entries["MaxHealthyPercentage"] = input.MaxHealthyPercentage; + if (input[_MHPa] != null) { + entries[_MHPa] = input[_MHPa]; } return entries; }; @@ -7614,8 +7605,8 @@ const se_RefreshPreferences = (input: RefreshPreferences, context: __SerdeContex */ const se_RollbackInstanceRefreshType = (input: RollbackInstanceRefreshType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } return entries; }; @@ -7625,12 +7616,12 @@ const se_RollbackInstanceRefreshType = (input: RollbackInstanceRefreshType, cont */ const se_ScalingProcessQuery = (input: ScalingProcessQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ScalingProcesses != null) { - const memberEntries = se_ProcessNames(input.ScalingProcesses, context); - if (input.ScalingProcesses?.length === 0) { + if (input[_SPc] != null) { + const memberEntries = se_ProcessNames(input[_SPc], context); + if (input[_SPc]?.length === 0) { entries.ScalingProcesses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7665,29 +7656,29 @@ const se_ScheduledUpdateGroupActionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ScheduledActionName != null) { - entries["ScheduledActionName"] = input.ScheduledActionName; + if (input[_SANc] != null) { + entries[_SANc] = input[_SANc]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Recurrence != null) { - entries["Recurrence"] = input.Recurrence; + if (input[_R] != null) { + entries[_R] = input[_R]; } - if (input.MinSize != null) { - entries["MinSize"] = input.MinSize; + if (input[_MS] != null) { + entries[_MS] = input[_MS]; } - if (input.MaxSize != null) { - entries["MaxSize"] = input.MaxSize; + if (input[_MSa] != null) { + entries[_MSa] = input[_MSa]; } - if (input.DesiredCapacity != null) { - entries["DesiredCapacity"] = input.DesiredCapacity; + if (input[_DC] != null) { + entries[_DC] = input[_DC]; } - if (input.TimeZone != null) { - entries["TimeZone"] = input.TimeZone; + if (input[_TZ] != null) { + entries[_TZ] = input[_TZ]; } return entries; }; @@ -7735,14 +7726,14 @@ const se_SecurityGroups = (input: string[], context: __SerdeContext): any => { */ const se_SetDesiredCapacityType = (input: SetDesiredCapacityType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.DesiredCapacity != null) { - entries["DesiredCapacity"] = input.DesiredCapacity; + if (input[_DC] != null) { + entries[_DC] = input[_DC]; } - if (input.HonorCooldown != null) { - entries["HonorCooldown"] = input.HonorCooldown; + if (input[_HC] != null) { + entries[_HC] = input[_HC]; } return entries; }; @@ -7752,14 +7743,14 @@ const se_SetDesiredCapacityType = (input: SetDesiredCapacityType, context: __Ser */ const se_SetInstanceHealthQuery = (input: SetInstanceHealthQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.HealthStatus != null) { - entries["HealthStatus"] = input.HealthStatus; + if (input[_HS] != null) { + entries[_HS] = input[_HS]; } - if (input.ShouldRespectGracePeriod != null) { - entries["ShouldRespectGracePeriod"] = input.ShouldRespectGracePeriod; + if (input[_SRGP] != null) { + entries[_SRGP] = input[_SRGP]; } return entries; }; @@ -7769,9 +7760,9 @@ const se_SetInstanceHealthQuery = (input: SetInstanceHealthQuery, context: __Ser */ const se_SetInstanceProtectionQuery = (input: SetInstanceProtectionQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIds(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_II] != null) { + const memberEntries = se_InstanceIds(input[_II], context); + if (input[_II]?.length === 0) { entries.InstanceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7779,11 +7770,11 @@ const se_SetInstanceProtectionQuery = (input: SetInstanceProtectionQuery, contex entries[loc] = value; }); } - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.ProtectedFromScaleIn != null) { - entries["ProtectedFromScaleIn"] = input.ProtectedFromScaleIn; + if (input[_PFSI] != null) { + entries[_PFSI] = input[_PFSI]; } return entries; }; @@ -7793,21 +7784,21 @@ const se_SetInstanceProtectionQuery = (input: SetInstanceProtectionQuery, contex */ const se_StartInstanceRefreshType = (input: StartInstanceRefreshType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.Strategy != null) { - entries["Strategy"] = input.Strategy; + if (input[_Str] != null) { + entries[_Str] = input[_Str]; } - if (input.DesiredConfiguration != null) { - const memberEntries = se_DesiredConfiguration(input.DesiredConfiguration, context); + if (input[_DCes] != null) { + const memberEntries = se_DesiredConfiguration(input[_DCes], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DesiredConfiguration.${key}`; entries[loc] = value; }); } - if (input.Preferences != null) { - const memberEntries = se_RefreshPreferences(input.Preferences, context); + if (input[_P] != null) { + const memberEntries = se_RefreshPreferences(input[_P], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Preferences.${key}`; entries[loc] = value; @@ -7821,14 +7812,14 @@ const se_StartInstanceRefreshType = (input: StartInstanceRefreshType, context: _ */ const se_StepAdjustment = (input: StepAdjustment, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricIntervalLowerBound != null) { - entries["MetricIntervalLowerBound"] = __serializeFloat(input.MetricIntervalLowerBound); + if (input[_MILB] != null) { + entries[_MILB] = __serializeFloat(input[_MILB]); } - if (input.MetricIntervalUpperBound != null) { - entries["MetricIntervalUpperBound"] = __serializeFloat(input.MetricIntervalUpperBound); + if (input[_MIUB] != null) { + entries[_MIUB] = __serializeFloat(input[_MIUB]); } - if (input.ScalingAdjustment != null) { - entries["ScalingAdjustment"] = input.ScalingAdjustment; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } return entries; }; @@ -7857,20 +7848,20 @@ const se_StepAdjustments = (input: StepAdjustment[], context: __SerdeContext): a */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceId != null) { - entries["ResourceId"] = input.ResourceId; + if (input[_RIe] != null) { + entries[_RIe] = input[_RIe]; } - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } - if (input.PropagateAtLaunch != null) { - entries["PropagateAtLaunch"] = input.PropagateAtLaunch; + if (input[_PAL] != null) { + entries[_PAL] = input[_PAL]; } return entries; }; @@ -7915,25 +7906,25 @@ const se_TargetGroupARNs = (input: string[], context: __SerdeContext): any => { */ const se_TargetTrackingConfiguration = (input: TargetTrackingConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.PredefinedMetricSpecification != null) { - const memberEntries = se_PredefinedMetricSpecification(input.PredefinedMetricSpecification, context); + if (input[_PMS] != null) { + const memberEntries = se_PredefinedMetricSpecification(input[_PMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PredefinedMetricSpecification.${key}`; entries[loc] = value; }); } - if (input.CustomizedMetricSpecification != null) { - const memberEntries = se_CustomizedMetricSpecification(input.CustomizedMetricSpecification, context); + if (input[_CMS] != null) { + const memberEntries = se_CustomizedMetricSpecification(input[_CMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CustomizedMetricSpecification.${key}`; entries[loc] = value; }); } - if (input.TargetValue != null) { - entries["TargetValue"] = __serializeFloat(input.TargetValue); + if (input[_TV] != null) { + entries[_TV] = __serializeFloat(input[_TV]); } - if (input.DisableScaleIn != null) { - entries["DisableScaleIn"] = input.DisableScaleIn; + if (input[_DSI] != null) { + entries[_DSI] = input[_DSI]; } return entries; }; @@ -7962,24 +7953,24 @@ const se_TargetTrackingMetricDataQueries = (input: TargetTrackingMetricDataQuery */ const se_TargetTrackingMetricDataQuery = (input: TargetTrackingMetricDataQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.Id != null) { - entries["Id"] = input.Id; + if (input[_Id] != null) { + entries[_Id] = input[_Id]; } - if (input.Expression != null) { - entries["Expression"] = input.Expression; + if (input[_Ex] != null) { + entries[_Ex] = input[_Ex]; } - if (input.MetricStat != null) { - const memberEntries = se_TargetTrackingMetricStat(input.MetricStat, context); + if (input[_MSe] != null) { + const memberEntries = se_TargetTrackingMetricStat(input[_MSe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetricStat.${key}`; entries[loc] = value; }); } - if (input.Label != null) { - entries["Label"] = input.Label; + if (input[_L] != null) { + entries[_L] = input[_L]; } - if (input.ReturnData != null) { - entries["ReturnData"] = input.ReturnData; + if (input[_RD] != null) { + entries[_RD] = input[_RD]; } return entries; }; @@ -7989,18 +7980,18 @@ const se_TargetTrackingMetricDataQuery = (input: TargetTrackingMetricDataQuery, */ const se_TargetTrackingMetricStat = (input: TargetTrackingMetricStat, context: __SerdeContext): any => { const entries: any = {}; - if (input.Metric != null) { - const memberEntries = se_Metric(input.Metric, context); + if (input[_Met] != null) { + const memberEntries = se_Metric(input[_Met], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Metric.${key}`; entries[loc] = value; }); } - if (input.Stat != null) { - entries["Stat"] = input.Stat; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } return entries; }; @@ -8013,11 +8004,11 @@ const se_TerminateInstanceInAutoScalingGroupType = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.ShouldDecrementDesiredCapacity != null) { - entries["ShouldDecrementDesiredCapacity"] = input.ShouldDecrementDesiredCapacity; + if (input[_SDDC] != null) { + entries[_SDDC] = input[_SDDC]; } return entries; }; @@ -8043,11 +8034,11 @@ const se_TerminationPolicies = (input: string[], context: __SerdeContext): any = */ const se_TotalLocalStorageGBRequest = (input: TotalLocalStorageGBRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -8057,11 +8048,11 @@ const se_TotalLocalStorageGBRequest = (input: TotalLocalStorageGBRequest, contex */ const se_TrafficSourceIdentifier = (input: TrafficSourceIdentifier, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identifier != null) { - entries["Identifier"] = input.Identifier; + if (input[_Ide] != null) { + entries[_Ide] = input[_Ide]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_Ty] != null) { + entries[_Ty] = input[_Ty]; } return entries; }; @@ -8090,41 +8081,41 @@ const se_TrafficSources = (input: TrafficSourceIdentifier[], context: __SerdeCon */ const se_UpdateAutoScalingGroupType = (input: UpdateAutoScalingGroupType, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoScalingGroupName != null) { - entries["AutoScalingGroupName"] = input.AutoScalingGroupName; + if (input[_ASGN] != null) { + entries[_ASGN] = input[_ASGN]; } - if (input.LaunchConfigurationName != null) { - entries["LaunchConfigurationName"] = input.LaunchConfigurationName; + if (input[_LCN] != null) { + entries[_LCN] = input[_LCN]; } - if (input.LaunchTemplate != null) { - const memberEntries = se_LaunchTemplateSpecification(input.LaunchTemplate, context); + if (input[_LT] != null) { + const memberEntries = se_LaunchTemplateSpecification(input[_LT], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplate.${key}`; entries[loc] = value; }); } - if (input.MixedInstancesPolicy != null) { - const memberEntries = se_MixedInstancesPolicy(input.MixedInstancesPolicy, context); + if (input[_MIP] != null) { + const memberEntries = se_MixedInstancesPolicy(input[_MIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MixedInstancesPolicy.${key}`; entries[loc] = value; }); } - if (input.MinSize != null) { - entries["MinSize"] = input.MinSize; + if (input[_MS] != null) { + entries[_MS] = input[_MS]; } - if (input.MaxSize != null) { - entries["MaxSize"] = input.MaxSize; + if (input[_MSa] != null) { + entries[_MSa] = input[_MSa]; } - if (input.DesiredCapacity != null) { - entries["DesiredCapacity"] = input.DesiredCapacity; + if (input[_DC] != null) { + entries[_DC] = input[_DC]; } - if (input.DefaultCooldown != null) { - entries["DefaultCooldown"] = input.DefaultCooldown; + if (input[_DCe] != null) { + entries[_DCe] = input[_DCe]; } - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8132,21 +8123,21 @@ const se_UpdateAutoScalingGroupType = (input: UpdateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.HealthCheckType != null) { - entries["HealthCheckType"] = input.HealthCheckType; + if (input[_HCT] != null) { + entries[_HCT] = input[_HCT]; } - if (input.HealthCheckGracePeriod != null) { - entries["HealthCheckGracePeriod"] = input.HealthCheckGracePeriod; + if (input[_HCGP] != null) { + entries[_HCGP] = input[_HCGP]; } - if (input.PlacementGroup != null) { - entries["PlacementGroup"] = input.PlacementGroup; + if (input[_PG] != null) { + entries[_PG] = input[_PG]; } - if (input.VPCZoneIdentifier != null) { - entries["VPCZoneIdentifier"] = input.VPCZoneIdentifier; + if (input[_VPCZI] != null) { + entries[_VPCZI] = input[_VPCZI]; } - if (input.TerminationPolicies != null) { - const memberEntries = se_TerminationPolicies(input.TerminationPolicies, context); - if (input.TerminationPolicies?.length === 0) { + if (input[_TP] != null) { + const memberEntries = se_TerminationPolicies(input[_TP], context); + if (input[_TP]?.length === 0) { entries.TerminationPolicies = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8154,29 +8145,29 @@ const se_UpdateAutoScalingGroupType = (input: UpdateAutoScalingGroupType, contex entries[loc] = value; }); } - if (input.NewInstancesProtectedFromScaleIn != null) { - entries["NewInstancesProtectedFromScaleIn"] = input.NewInstancesProtectedFromScaleIn; + if (input[_NIPFSI] != null) { + entries[_NIPFSI] = input[_NIPFSI]; } - if (input.ServiceLinkedRoleARN != null) { - entries["ServiceLinkedRoleARN"] = input.ServiceLinkedRoleARN; + if (input[_SLRARN] != null) { + entries[_SLRARN] = input[_SLRARN]; } - if (input.MaxInstanceLifetime != null) { - entries["MaxInstanceLifetime"] = input.MaxInstanceLifetime; + if (input[_MIL] != null) { + entries[_MIL] = input[_MIL]; } - if (input.CapacityRebalance != null) { - entries["CapacityRebalance"] = input.CapacityRebalance; + if (input[_CR] != null) { + entries[_CR] = input[_CR]; } - if (input.Context != null) { - entries["Context"] = input.Context; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.DesiredCapacityType != null) { - entries["DesiredCapacityType"] = input.DesiredCapacityType; + if (input[_DCT] != null) { + entries[_DCT] = input[_DCT]; } - if (input.DefaultInstanceWarmup != null) { - entries["DefaultInstanceWarmup"] = input.DefaultInstanceWarmup; + if (input[_DIW] != null) { + entries[_DIW] = input[_DIW]; } - if (input.InstanceMaintenancePolicy != null) { - const memberEntries = se_InstanceMaintenancePolicy(input.InstanceMaintenancePolicy, context); + if (input[_IMP] != null) { + const memberEntries = se_InstanceMaintenancePolicy(input[_IMP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceMaintenancePolicy.${key}`; entries[loc] = value; @@ -8206,11 +8197,11 @@ const se_Values = (input: string[], context: __SerdeContext): any => { */ const se_VCpuCountRequest = (input: VCpuCountRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -8220,11 +8211,11 @@ const se_VCpuCountRequest = (input: VCpuCountRequest, context: __SerdeContext): */ const de_AcceleratorCountRequest = (output: any, context: __SerdeContext): AcceleratorCountRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseInt32(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseInt32(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseInt32(output[_Ma]) as number; } return contents; }; @@ -8259,11 +8250,11 @@ const de_AcceleratorTotalMemoryMiBRequest = ( context: __SerdeContext ): AcceleratorTotalMemoryMiBRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseInt32(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseInt32(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseInt32(output[_Ma]) as number; } return contents; }; @@ -8287,8 +8278,8 @@ const de_ActiveInstanceRefreshNotFoundFault = ( context: __SerdeContext ): ActiveInstanceRefreshNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8310,12 +8301,12 @@ const de_Activities = (output: any, context: __SerdeContext): Activity[] => { const de_ActivitiesType = (output: any, context: __SerdeContext): ActivitiesType => { const contents: any = {}; if (output.Activities === "") { - contents.Activities = []; - } else if (output["Activities"] !== undefined && output["Activities"]["member"] !== undefined) { - contents.Activities = de_Activities(__getArrayIfSingleItem(output["Activities"]["member"]), context); + contents[_Ac] = []; + } else if (output[_Ac] != null && output[_Ac][_me] != null) { + contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8325,41 +8316,41 @@ const de_ActivitiesType = (output: any, context: __SerdeContext): ActivitiesType */ const de_Activity = (output: any, context: __SerdeContext): Activity => { const contents: any = {}; - if (output["ActivityId"] !== undefined) { - contents.ActivityId = __expectString(output["ActivityId"]); + if (output[_AIct] != null) { + contents[_AIct] = __expectString(output[_AIct]); } - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_De] != null) { + contents[_De] = __expectString(output[_De]); } - if (output["Cause"] !== undefined) { - contents.Cause = __expectString(output["Cause"]); + if (output[_Ca] != null) { + contents[_Ca] = __expectString(output[_Ca]); } - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_ST] != null) { + contents[_ST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ST])); } - if (output["EndTime"] !== undefined) { - contents.EndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTime"])); + if (output[_ET] != null) { + contents[_ET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ET])); } - if (output["StatusCode"] !== undefined) { - contents.StatusCode = __expectString(output["StatusCode"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["StatusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["StatusMessage"]); + if (output[_SMt] != null) { + contents[_SMt] = __expectString(output[_SMt]); } - if (output["Progress"] !== undefined) { - contents.Progress = __strictParseInt32(output["Progress"]) as number; + if (output[_Pr] != null) { + contents[_Pr] = __strictParseInt32(output[_Pr]) as number; } - if (output["Details"] !== undefined) { - contents.Details = __expectString(output["Details"]); + if (output[_Det] != null) { + contents[_Det] = __expectString(output[_Det]); } - if (output["AutoScalingGroupState"] !== undefined) { - contents.AutoScalingGroupState = __expectString(output["AutoScalingGroupState"]); + if (output[_ASGS] != null) { + contents[_ASGS] = __expectString(output[_ASGS]); } - if (output["AutoScalingGroupARN"] !== undefined) { - contents.AutoScalingGroupARN = __expectString(output["AutoScalingGroupARN"]); + if (output[_ASGARN] != null) { + contents[_ASGARN] = __expectString(output[_ASGARN]); } return contents; }; @@ -8369,8 +8360,8 @@ const de_Activity = (output: any, context: __SerdeContext): Activity => { */ const de_ActivityType = (output: any, context: __SerdeContext): ActivityType => { const contents: any = {}; - if (output["Activity"] !== undefined) { - contents.Activity = de_Activity(output["Activity"], context); + if (output[_Act] != null) { + contents[_Act] = de_Activity(output[_Act], context); } return contents; }; @@ -8380,8 +8371,8 @@ const de_ActivityType = (output: any, context: __SerdeContext): ActivityType => */ const de_AdjustmentType = (output: any, context: __SerdeContext): AdjustmentType => { const contents: any = {}; - if (output["AdjustmentType"] !== undefined) { - contents.AdjustmentType = __expectString(output["AdjustmentType"]); + if (output[_ATd] != null) { + contents[_ATd] = __expectString(output[_ATd]); } return contents; }; @@ -8402,11 +8393,11 @@ const de_AdjustmentTypes = (output: any, context: __SerdeContext): AdjustmentTyp */ const de_Alarm = (output: any, context: __SerdeContext): Alarm => { const contents: any = {}; - if (output["AlarmName"] !== undefined) { - contents.AlarmName = __expectString(output["AlarmName"]); + if (output[_ANl] != null) { + contents[_ANl] = __expectString(output[_ANl]); } - if (output["AlarmARN"] !== undefined) { - contents.AlarmARN = __expectString(output["AlarmARN"]); + if (output[_AARN] != null) { + contents[_AARN] = __expectString(output[_AARN]); } return contents; }; @@ -8439,9 +8430,9 @@ const de_Alarms = (output: any, context: __SerdeContext): Alarm[] => { const de_AlarmSpecification = (output: any, context: __SerdeContext): AlarmSpecification => { const contents: any = {}; if (output.Alarms === "") { - contents.Alarms = []; - } else if (output["Alarms"] !== undefined && output["Alarms"]["member"] !== undefined) { - contents.Alarms = de_AlarmList(__getArrayIfSingleItem(output["Alarms"]["member"]), context); + contents[_Al] = []; + } else if (output[_Al] != null && output[_Al][_me] != null) { + contents[_Al] = de_AlarmList(__getArrayIfSingleItem(output[_Al][_me]), context); } return contents; }; @@ -8462,8 +8453,8 @@ const de_AllowedInstanceTypes = (output: any, context: __SerdeContext): string[] */ const de_AlreadyExistsFault = (output: any, context: __SerdeContext): AlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8500,140 +8491,128 @@ const de_AttachTrafficSourcesResultType = (output: any, context: __SerdeContext) */ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingGroup => { const contents: any = {}; - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["AutoScalingGroupARN"] !== undefined) { - contents.AutoScalingGroupARN = __expectString(output["AutoScalingGroupARN"]); + if (output[_ASGARN] != null) { + contents[_ASGARN] = __expectString(output[_ASGARN]); } - if (output["LaunchConfigurationName"] !== undefined) { - contents.LaunchConfigurationName = __expectString(output["LaunchConfigurationName"]); + if (output[_LCN] != null) { + contents[_LCN] = __expectString(output[_LCN]); } - if (output["LaunchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplateSpecification(output["LaunchTemplate"], context); + if (output[_LT] != null) { + contents[_LT] = de_LaunchTemplateSpecification(output[_LT], context); } - if (output["MixedInstancesPolicy"] !== undefined) { - contents.MixedInstancesPolicy = de_MixedInstancesPolicy(output["MixedInstancesPolicy"], context); + if (output[_MIP] != null) { + contents[_MIP] = de_MixedInstancesPolicy(output[_MIP], context); } - if (output["MinSize"] !== undefined) { - contents.MinSize = __strictParseInt32(output["MinSize"]) as number; + if (output[_MS] != null) { + contents[_MS] = __strictParseInt32(output[_MS]) as number; } - if (output["MaxSize"] !== undefined) { - contents.MaxSize = __strictParseInt32(output["MaxSize"]) as number; + if (output[_MSa] != null) { + contents[_MSa] = __strictParseInt32(output[_MSa]) as number; } - if (output["DesiredCapacity"] !== undefined) { - contents.DesiredCapacity = __strictParseInt32(output["DesiredCapacity"]) as number; + if (output[_DC] != null) { + contents[_DC] = __strictParseInt32(output[_DC]) as number; } - if (output["PredictedCapacity"] !== undefined) { - contents.PredictedCapacity = __strictParseInt32(output["PredictedCapacity"]) as number; + if (output[_PC] != null) { + contents[_PC] = __strictParseInt32(output[_PC]) as number; } - if (output["DefaultCooldown"] !== undefined) { - contents.DefaultCooldown = __strictParseInt32(output["DefaultCooldown"]) as number; + if (output[_DCe] != null) { + contents[_DCe] = __strictParseInt32(output[_DCe]) as number; } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["member"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_me] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_me]), context); } if (output.LoadBalancerNames === "") { - contents.LoadBalancerNames = []; - } else if (output["LoadBalancerNames"] !== undefined && output["LoadBalancerNames"]["member"] !== undefined) { - contents.LoadBalancerNames = de_LoadBalancerNames( - __getArrayIfSingleItem(output["LoadBalancerNames"]["member"]), - context - ); + contents[_LBN] = []; + } else if (output[_LBN] != null && output[_LBN][_me] != null) { + contents[_LBN] = de_LoadBalancerNames(__getArrayIfSingleItem(output[_LBN][_me]), context); } if (output.TargetGroupARNs === "") { - contents.TargetGroupARNs = []; - } else if (output["TargetGroupARNs"] !== undefined && output["TargetGroupARNs"]["member"] !== undefined) { - contents.TargetGroupARNs = de_TargetGroupARNs(__getArrayIfSingleItem(output["TargetGroupARNs"]["member"]), context); + contents[_TGARN] = []; + } else if (output[_TGARN] != null && output[_TGARN][_me] != null) { + contents[_TGARN] = de_TargetGroupARNs(__getArrayIfSingleItem(output[_TGARN][_me]), context); } - if (output["HealthCheckType"] !== undefined) { - contents.HealthCheckType = __expectString(output["HealthCheckType"]); + if (output[_HCT] != null) { + contents[_HCT] = __expectString(output[_HCT]); } - if (output["HealthCheckGracePeriod"] !== undefined) { - contents.HealthCheckGracePeriod = __strictParseInt32(output["HealthCheckGracePeriod"]) as number; + if (output[_HCGP] != null) { + contents[_HCGP] = __strictParseInt32(output[_HCGP]) as number; } if (output.Instances === "") { - contents.Instances = []; - } else if (output["Instances"] !== undefined && output["Instances"]["member"] !== undefined) { - contents.Instances = de_Instances(__getArrayIfSingleItem(output["Instances"]["member"]), context); + contents[_In] = []; + } else if (output[_In] != null && output[_In][_me] != null) { + contents[_In] = de_Instances(__getArrayIfSingleItem(output[_In][_me]), context); } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTime"])); + if (output[_CT] != null) { + contents[_CT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CT])); } if (output.SuspendedProcesses === "") { - contents.SuspendedProcesses = []; - } else if (output["SuspendedProcesses"] !== undefined && output["SuspendedProcesses"]["member"] !== undefined) { - contents.SuspendedProcesses = de_SuspendedProcesses( - __getArrayIfSingleItem(output["SuspendedProcesses"]["member"]), - context - ); + contents[_SPu] = []; + } else if (output[_SPu] != null && output[_SPu][_me] != null) { + contents[_SPu] = de_SuspendedProcesses(__getArrayIfSingleItem(output[_SPu][_me]), context); } - if (output["PlacementGroup"] !== undefined) { - contents.PlacementGroup = __expectString(output["PlacementGroup"]); + if (output[_PG] != null) { + contents[_PG] = __expectString(output[_PG]); } - if (output["VPCZoneIdentifier"] !== undefined) { - contents.VPCZoneIdentifier = __expectString(output["VPCZoneIdentifier"]); + if (output[_VPCZI] != null) { + contents[_VPCZI] = __expectString(output[_VPCZI]); } if (output.EnabledMetrics === "") { - contents.EnabledMetrics = []; - } else if (output["EnabledMetrics"] !== undefined && output["EnabledMetrics"]["member"] !== undefined) { - contents.EnabledMetrics = de_EnabledMetrics(__getArrayIfSingleItem(output["EnabledMetrics"]["member"]), context); + contents[_EM] = []; + } else if (output[_EM] != null && output[_EM][_me] != null) { + contents[_EM] = de_EnabledMetrics(__getArrayIfSingleItem(output[_EM][_me]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_TagDescriptionList(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_TagDescriptionList(__getArrayIfSingleItem(output[_T][_me]), context); } if (output.TerminationPolicies === "") { - contents.TerminationPolicies = []; - } else if (output["TerminationPolicies"] !== undefined && output["TerminationPolicies"]["member"] !== undefined) { - contents.TerminationPolicies = de_TerminationPolicies( - __getArrayIfSingleItem(output["TerminationPolicies"]["member"]), - context - ); + contents[_TP] = []; + } else if (output[_TP] != null && output[_TP][_me] != null) { + contents[_TP] = de_TerminationPolicies(__getArrayIfSingleItem(output[_TP][_me]), context); } - if (output["NewInstancesProtectedFromScaleIn"] !== undefined) { - contents.NewInstancesProtectedFromScaleIn = __parseBoolean(output["NewInstancesProtectedFromScaleIn"]); + if (output[_NIPFSI] != null) { + contents[_NIPFSI] = __parseBoolean(output[_NIPFSI]); } - if (output["ServiceLinkedRoleARN"] !== undefined) { - contents.ServiceLinkedRoleARN = __expectString(output["ServiceLinkedRoleARN"]); + if (output[_SLRARN] != null) { + contents[_SLRARN] = __expectString(output[_SLRARN]); } - if (output["MaxInstanceLifetime"] !== undefined) { - contents.MaxInstanceLifetime = __strictParseInt32(output["MaxInstanceLifetime"]) as number; + if (output[_MIL] != null) { + contents[_MIL] = __strictParseInt32(output[_MIL]) as number; } - if (output["CapacityRebalance"] !== undefined) { - contents.CapacityRebalance = __parseBoolean(output["CapacityRebalance"]); + if (output[_CR] != null) { + contents[_CR] = __parseBoolean(output[_CR]); } - if (output["WarmPoolConfiguration"] !== undefined) { - contents.WarmPoolConfiguration = de_WarmPoolConfiguration(output["WarmPoolConfiguration"], context); + if (output[_WPC] != null) { + contents[_WPC] = de_WarmPoolConfiguration(output[_WPC], context); } - if (output["WarmPoolSize"] !== undefined) { - contents.WarmPoolSize = __strictParseInt32(output["WarmPoolSize"]) as number; + if (output[_WPS] != null) { + contents[_WPS] = __strictParseInt32(output[_WPS]) as number; } - if (output["Context"] !== undefined) { - contents.Context = __expectString(output["Context"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["DesiredCapacityType"] !== undefined) { - contents.DesiredCapacityType = __expectString(output["DesiredCapacityType"]); + if (output[_DCT] != null) { + contents[_DCT] = __expectString(output[_DCT]); } - if (output["DefaultInstanceWarmup"] !== undefined) { - contents.DefaultInstanceWarmup = __strictParseInt32(output["DefaultInstanceWarmup"]) as number; + if (output[_DIW] != null) { + contents[_DIW] = __strictParseInt32(output[_DIW]) as number; } if (output.TrafficSources === "") { - contents.TrafficSources = []; - } else if (output["TrafficSources"] !== undefined && output["TrafficSources"]["member"] !== undefined) { - contents.TrafficSources = de_TrafficSources(__getArrayIfSingleItem(output["TrafficSources"]["member"]), context); + contents[_TS] = []; + } else if (output[_TS] != null && output[_TS][_me] != null) { + contents[_TS] = de_TrafficSources(__getArrayIfSingleItem(output[_TS][_me]), context); } - if (output["InstanceMaintenancePolicy"] !== undefined) { - contents.InstanceMaintenancePolicy = de_InstanceMaintenancePolicy(output["InstanceMaintenancePolicy"], context); + if (output[_IMP] != null) { + contents[_IMP] = de_InstanceMaintenancePolicy(output[_IMP], context); } return contents; }; @@ -8655,15 +8634,12 @@ const de_AutoScalingGroups = (output: any, context: __SerdeContext): AutoScaling const de_AutoScalingGroupsType = (output: any, context: __SerdeContext): AutoScalingGroupsType => { const contents: any = {}; if (output.AutoScalingGroups === "") { - contents.AutoScalingGroups = []; - } else if (output["AutoScalingGroups"] !== undefined && output["AutoScalingGroups"]["member"] !== undefined) { - contents.AutoScalingGroups = de_AutoScalingGroups( - __getArrayIfSingleItem(output["AutoScalingGroups"]["member"]), - context - ); + contents[_ASG] = []; + } else if (output[_ASG] != null && output[_ASG][_me] != null) { + contents[_ASG] = de_AutoScalingGroups(__getArrayIfSingleItem(output[_ASG][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8673,35 +8649,35 @@ const de_AutoScalingGroupsType = (output: any, context: __SerdeContext): AutoSca */ const de_AutoScalingInstanceDetails = (output: any, context: __SerdeContext): AutoScalingInstanceDetails => { const contents: any = {}; - if (output["InstanceId"] !== undefined) { - contents.InstanceId = __expectString(output["InstanceId"]); + if (output[_IIn] != null) { + contents[_IIn] = __expectString(output[_IIn]); } - if (output["InstanceType"] !== undefined) { - contents.InstanceType = __expectString(output["InstanceType"]); + if (output[_IT] != null) { + contents[_IT] = __expectString(output[_IT]); } - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZv] != null) { + contents[_AZv] = __expectString(output[_AZv]); } - if (output["LifecycleState"] !== undefined) { - contents.LifecycleState = __expectString(output["LifecycleState"]); + if (output[_LSi] != null) { + contents[_LSi] = __expectString(output[_LSi]); } - if (output["HealthStatus"] !== undefined) { - contents.HealthStatus = __expectString(output["HealthStatus"]); + if (output[_HS] != null) { + contents[_HS] = __expectString(output[_HS]); } - if (output["LaunchConfigurationName"] !== undefined) { - contents.LaunchConfigurationName = __expectString(output["LaunchConfigurationName"]); + if (output[_LCN] != null) { + contents[_LCN] = __expectString(output[_LCN]); } - if (output["LaunchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplateSpecification(output["LaunchTemplate"], context); + if (output[_LT] != null) { + contents[_LT] = de_LaunchTemplateSpecification(output[_LT], context); } - if (output["ProtectedFromScaleIn"] !== undefined) { - contents.ProtectedFromScaleIn = __parseBoolean(output["ProtectedFromScaleIn"]); + if (output[_PFSI] != null) { + contents[_PFSI] = __parseBoolean(output[_PFSI]); } - if (output["WeightedCapacity"] !== undefined) { - contents.WeightedCapacity = __expectString(output["WeightedCapacity"]); + if (output[_WC] != null) { + contents[_WC] = __expectString(output[_WC]); } return contents; }; @@ -8723,15 +8699,12 @@ const de_AutoScalingInstances = (output: any, context: __SerdeContext): AutoScal const de_AutoScalingInstancesType = (output: any, context: __SerdeContext): AutoScalingInstancesType => { const contents: any = {}; if (output.AutoScalingInstances === "") { - contents.AutoScalingInstances = []; - } else if (output["AutoScalingInstances"] !== undefined && output["AutoScalingInstances"]["member"] !== undefined) { - contents.AutoScalingInstances = de_AutoScalingInstances( - __getArrayIfSingleItem(output["AutoScalingInstances"]["member"]), - context - ); + contents[_ASI] = []; + } else if (output[_ASI] != null && output[_ASI][_me] != null) { + contents[_ASI] = de_AutoScalingInstances(__getArrayIfSingleItem(output[_ASI][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8763,11 +8736,11 @@ const de_AvailabilityZones = (output: any, context: __SerdeContext): string[] => */ const de_BaselineEbsBandwidthMbpsRequest = (output: any, context: __SerdeContext): BaselineEbsBandwidthMbpsRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseInt32(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseInt32(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseInt32(output[_Ma]) as number; } return contents; }; @@ -8781,15 +8754,9 @@ const de_BatchDeleteScheduledActionAnswer = ( ): BatchDeleteScheduledActionAnswer => { const contents: any = {}; if (output.FailedScheduledActions === "") { - contents.FailedScheduledActions = []; - } else if ( - output["FailedScheduledActions"] !== undefined && - output["FailedScheduledActions"]["member"] !== undefined - ) { - contents.FailedScheduledActions = de_FailedScheduledUpdateGroupActionRequests( - __getArrayIfSingleItem(output["FailedScheduledActions"]["member"]), - context - ); + contents[_FSA] = []; + } else if (output[_FSA] != null && output[_FSA][_me] != null) { + contents[_FSA] = de_FailedScheduledUpdateGroupActionRequests(__getArrayIfSingleItem(output[_FSA][_me]), context); } return contents; }; @@ -8803,13 +8770,10 @@ const de_BatchPutScheduledUpdateGroupActionAnswer = ( ): BatchPutScheduledUpdateGroupActionAnswer => { const contents: any = {}; if (output.FailedScheduledUpdateGroupActions === "") { - contents.FailedScheduledUpdateGroupActions = []; - } else if ( - output["FailedScheduledUpdateGroupActions"] !== undefined && - output["FailedScheduledUpdateGroupActions"]["member"] !== undefined - ) { - contents.FailedScheduledUpdateGroupActions = de_FailedScheduledUpdateGroupActionRequests( - __getArrayIfSingleItem(output["FailedScheduledUpdateGroupActions"]["member"]), + contents[_FSUGA] = []; + } else if (output[_FSUGA] != null && output[_FSUGA][_me] != null) { + contents[_FSUGA] = de_FailedScheduledUpdateGroupActionRequests( + __getArrayIfSingleItem(output[_FSUGA][_me]), context ); } @@ -8821,17 +8785,17 @@ const de_BatchPutScheduledUpdateGroupActionAnswer = ( */ const de_BlockDeviceMapping = (output: any, context: __SerdeContext): BlockDeviceMapping => { const contents: any = {}; - if (output["VirtualName"] !== undefined) { - contents.VirtualName = __expectString(output["VirtualName"]); + if (output[_VN] != null) { + contents[_VN] = __expectString(output[_VN]); } - if (output["DeviceName"] !== undefined) { - contents.DeviceName = __expectString(output["DeviceName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["Ebs"] !== undefined) { - contents.Ebs = de_Ebs(output["Ebs"], context); + if (output[_E] != null) { + contents[_E] = de_Ebs(output[_E], context); } - if (output["NoDevice"] !== undefined) { - contents.NoDevice = __parseBoolean(output["NoDevice"]); + if (output[_ND] != null) { + contents[_ND] = __parseBoolean(output[_ND]); } return contents; }; @@ -8852,8 +8816,8 @@ const de_BlockDeviceMappings = (output: any, context: __SerdeContext): BlockDevi */ const de_CancelInstanceRefreshAnswer = (output: any, context: __SerdeContext): CancelInstanceRefreshAnswer => { const contents: any = {}; - if (output["InstanceRefreshId"] !== undefined) { - contents.InstanceRefreshId = __expectString(output["InstanceRefreshId"]); + if (output[_IRIn] != null) { + contents[_IRIn] = __expectString(output[_IRIn]); } return contents; }; @@ -8864,17 +8828,14 @@ const de_CancelInstanceRefreshAnswer = (output: any, context: __SerdeContext): C const de_CapacityForecast = (output: any, context: __SerdeContext): CapacityForecast => { const contents: any = {}; if (output.Timestamps === "") { - contents.Timestamps = []; - } else if (output["Timestamps"] !== undefined && output["Timestamps"]["member"] !== undefined) { - contents.Timestamps = de_PredictiveScalingForecastTimestamps( - __getArrayIfSingleItem(output["Timestamps"]["member"]), - context - ); + contents[_Tim] = []; + } else if (output[_Tim] != null && output[_Tim][_me] != null) { + contents[_Tim] = de_PredictiveScalingForecastTimestamps(__getArrayIfSingleItem(output[_Tim][_me]), context); } if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_PredictiveScalingForecastValues(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_me] != null) { + contents[_Va] = de_PredictiveScalingForecastValues(__getArrayIfSingleItem(output[_Va][_me]), context); } return contents; }; @@ -8925,27 +8886,27 @@ const de_CpuManufacturers = (output: any, context: __SerdeContext): CpuManufactu */ const de_CustomizedMetricSpecification = (output: any, context: __SerdeContext): CustomizedMetricSpecification => { const contents: any = {}; - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } if (output.Dimensions === "") { - contents.Dimensions = []; - } else if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) { - contents.Dimensions = de_MetricDimensions(__getArrayIfSingleItem(output["Dimensions"]["member"]), context); + contents[_D] = []; + } else if (output[_D] != null && output[_D][_me] != null) { + contents[_D] = de_MetricDimensions(__getArrayIfSingleItem(output[_D][_me]), context); } - if (output["Statistic"] !== undefined) { - contents.Statistic = __expectString(output["Statistic"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Unit"] !== undefined) { - contents.Unit = __expectString(output["Unit"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } if (output.Metrics === "") { - contents.Metrics = []; - } else if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) { - contents.Metrics = de_TargetTrackingMetricDataQueries(__getArrayIfSingleItem(output["Metrics"]["member"]), context); + contents[_Me] = []; + } else if (output[_Me] != null && output[_Me][_me] != null) { + contents[_Me] = de_TargetTrackingMetricDataQueries(__getArrayIfSingleItem(output[_Me][_me]), context); } return contents; }; @@ -8971,17 +8932,17 @@ const de_DeleteWarmPoolAnswer = (output: any, context: __SerdeContext): DeleteWa */ const de_DescribeAccountLimitsAnswer = (output: any, context: __SerdeContext): DescribeAccountLimitsAnswer => { const contents: any = {}; - if (output["MaxNumberOfAutoScalingGroups"] !== undefined) { - contents.MaxNumberOfAutoScalingGroups = __strictParseInt32(output["MaxNumberOfAutoScalingGroups"]) as number; + if (output[_MNOASG] != null) { + contents[_MNOASG] = __strictParseInt32(output[_MNOASG]) as number; } - if (output["MaxNumberOfLaunchConfigurations"] !== undefined) { - contents.MaxNumberOfLaunchConfigurations = __strictParseInt32(output["MaxNumberOfLaunchConfigurations"]) as number; + if (output[_MNOLC] != null) { + contents[_MNOLC] = __strictParseInt32(output[_MNOLC]) as number; } - if (output["NumberOfAutoScalingGroups"] !== undefined) { - contents.NumberOfAutoScalingGroups = __strictParseInt32(output["NumberOfAutoScalingGroups"]) as number; + if (output[_NOASG] != null) { + contents[_NOASG] = __strictParseInt32(output[_NOASG]) as number; } - if (output["NumberOfLaunchConfigurations"] !== undefined) { - contents.NumberOfLaunchConfigurations = __strictParseInt32(output["NumberOfLaunchConfigurations"]) as number; + if (output[_NOLC] != null) { + contents[_NOLC] = __strictParseInt32(output[_NOLC]) as number; } return contents; }; @@ -8992,9 +8953,9 @@ const de_DescribeAccountLimitsAnswer = (output: any, context: __SerdeContext): D const de_DescribeAdjustmentTypesAnswer = (output: any, context: __SerdeContext): DescribeAdjustmentTypesAnswer => { const contents: any = {}; if (output.AdjustmentTypes === "") { - contents.AdjustmentTypes = []; - } else if (output["AdjustmentTypes"] !== undefined && output["AdjustmentTypes"]["member"] !== undefined) { - contents.AdjustmentTypes = de_AdjustmentTypes(__getArrayIfSingleItem(output["AdjustmentTypes"]["member"]), context); + contents[_ATdj] = []; + } else if (output[_ATdj] != null && output[_ATdj][_me] != null) { + contents[_ATdj] = de_AdjustmentTypes(__getArrayIfSingleItem(output[_ATdj][_me]), context); } return contents; }; @@ -9008,15 +8969,9 @@ const de_DescribeAutoScalingNotificationTypesAnswer = ( ): DescribeAutoScalingNotificationTypesAnswer => { const contents: any = {}; if (output.AutoScalingNotificationTypes === "") { - contents.AutoScalingNotificationTypes = []; - } else if ( - output["AutoScalingNotificationTypes"] !== undefined && - output["AutoScalingNotificationTypes"]["member"] !== undefined - ) { - contents.AutoScalingNotificationTypes = de_AutoScalingNotificationTypes( - __getArrayIfSingleItem(output["AutoScalingNotificationTypes"]["member"]), - context - ); + contents[_ASNT] = []; + } else if (output[_ASNT] != null && output[_ASNT][_me] != null) { + contents[_ASNT] = de_AutoScalingNotificationTypes(__getArrayIfSingleItem(output[_ASNT][_me]), context); } return contents; }; @@ -9027,15 +8982,12 @@ const de_DescribeAutoScalingNotificationTypesAnswer = ( const de_DescribeInstanceRefreshesAnswer = (output: any, context: __SerdeContext): DescribeInstanceRefreshesAnswer => { const contents: any = {}; if (output.InstanceRefreshes === "") { - contents.InstanceRefreshes = []; - } else if (output["InstanceRefreshes"] !== undefined && output["InstanceRefreshes"]["member"] !== undefined) { - contents.InstanceRefreshes = de_InstanceRefreshes( - __getArrayIfSingleItem(output["InstanceRefreshes"]["member"]), - context - ); + contents[_IRn] = []; + } else if (output[_IRn] != null && output[_IRn][_me] != null) { + contents[_IRn] = de_InstanceRefreshes(__getArrayIfSingleItem(output[_IRn][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9046,9 +8998,9 @@ const de_DescribeInstanceRefreshesAnswer = (output: any, context: __SerdeContext const de_DescribeLifecycleHooksAnswer = (output: any, context: __SerdeContext): DescribeLifecycleHooksAnswer => { const contents: any = {}; if (output.LifecycleHooks === "") { - contents.LifecycleHooks = []; - } else if (output["LifecycleHooks"] !== undefined && output["LifecycleHooks"]["member"] !== undefined) { - contents.LifecycleHooks = de_LifecycleHooks(__getArrayIfSingleItem(output["LifecycleHooks"]["member"]), context); + contents[_LH] = []; + } else if (output[_LH] != null && output[_LH][_me] != null) { + contents[_LH] = de_LifecycleHooks(__getArrayIfSingleItem(output[_LH][_me]), context); } return contents; }; @@ -9062,12 +9014,9 @@ const de_DescribeLifecycleHookTypesAnswer = ( ): DescribeLifecycleHookTypesAnswer => { const contents: any = {}; if (output.LifecycleHookTypes === "") { - contents.LifecycleHookTypes = []; - } else if (output["LifecycleHookTypes"] !== undefined && output["LifecycleHookTypes"]["member"] !== undefined) { - contents.LifecycleHookTypes = de_AutoScalingNotificationTypes( - __getArrayIfSingleItem(output["LifecycleHookTypes"]["member"]), - context - ); + contents[_LHT] = []; + } else if (output[_LHT] != null && output[_LHT][_me] != null) { + contents[_LHT] = de_AutoScalingNotificationTypes(__getArrayIfSingleItem(output[_LHT][_me]), context); } return contents; }; @@ -9078,12 +9027,12 @@ const de_DescribeLifecycleHookTypesAnswer = ( const de_DescribeLoadBalancersResponse = (output: any, context: __SerdeContext): DescribeLoadBalancersResponse => { const contents: any = {}; if (output.LoadBalancers === "") { - contents.LoadBalancers = []; - } else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { - contents.LoadBalancers = de_LoadBalancerStates(__getArrayIfSingleItem(output["LoadBalancers"]["member"]), context); + contents[_LB] = []; + } else if (output[_LB] != null && output[_LB][_me] != null) { + contents[_LB] = de_LoadBalancerStates(__getArrayIfSingleItem(output[_LB][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9097,18 +9046,12 @@ const de_DescribeLoadBalancerTargetGroupsResponse = ( ): DescribeLoadBalancerTargetGroupsResponse => { const contents: any = {}; if (output.LoadBalancerTargetGroups === "") { - contents.LoadBalancerTargetGroups = []; - } else if ( - output["LoadBalancerTargetGroups"] !== undefined && - output["LoadBalancerTargetGroups"]["member"] !== undefined - ) { - contents.LoadBalancerTargetGroups = de_LoadBalancerTargetGroupStates( - __getArrayIfSingleItem(output["LoadBalancerTargetGroups"]["member"]), - context - ); + contents[_LBTG] = []; + } else if (output[_LBTG] != null && output[_LBTG][_me] != null) { + contents[_LBTG] = de_LoadBalancerTargetGroupStates(__getArrayIfSingleItem(output[_LBTG][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9122,17 +9065,14 @@ const de_DescribeMetricCollectionTypesAnswer = ( ): DescribeMetricCollectionTypesAnswer => { const contents: any = {}; if (output.Metrics === "") { - contents.Metrics = []; - } else if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) { - contents.Metrics = de_MetricCollectionTypes(__getArrayIfSingleItem(output["Metrics"]["member"]), context); + contents[_Me] = []; + } else if (output[_Me] != null && output[_Me][_me] != null) { + contents[_Me] = de_MetricCollectionTypes(__getArrayIfSingleItem(output[_Me][_me]), context); } if (output.Granularities === "") { - contents.Granularities = []; - } else if (output["Granularities"] !== undefined && output["Granularities"]["member"] !== undefined) { - contents.Granularities = de_MetricGranularityTypes( - __getArrayIfSingleItem(output["Granularities"]["member"]), - context - ); + contents[_Gr] = []; + } else if (output[_Gr] != null && output[_Gr][_me] != null) { + contents[_Gr] = de_MetricGranularityTypes(__getArrayIfSingleItem(output[_Gr][_me]), context); } return contents; }; @@ -9146,18 +9086,12 @@ const de_DescribeNotificationConfigurationsAnswer = ( ): DescribeNotificationConfigurationsAnswer => { const contents: any = {}; if (output.NotificationConfigurations === "") { - contents.NotificationConfigurations = []; - } else if ( - output["NotificationConfigurations"] !== undefined && - output["NotificationConfigurations"]["member"] !== undefined - ) { - contents.NotificationConfigurations = de_NotificationConfigurations( - __getArrayIfSingleItem(output["NotificationConfigurations"]["member"]), - context - ); + contents[_NC] = []; + } else if (output[_NC] != null && output[_NC][_me] != null) { + contents[_NC] = de_NotificationConfigurations(__getArrayIfSingleItem(output[_NC][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9171,15 +9105,9 @@ const de_DescribeTerminationPolicyTypesAnswer = ( ): DescribeTerminationPolicyTypesAnswer => { const contents: any = {}; if (output.TerminationPolicyTypes === "") { - contents.TerminationPolicyTypes = []; - } else if ( - output["TerminationPolicyTypes"] !== undefined && - output["TerminationPolicyTypes"]["member"] !== undefined - ) { - contents.TerminationPolicyTypes = de_TerminationPolicies( - __getArrayIfSingleItem(output["TerminationPolicyTypes"]["member"]), - context - ); + contents[_TPT] = []; + } else if (output[_TPT] != null && output[_TPT][_me] != null) { + contents[_TPT] = de_TerminationPolicies(__getArrayIfSingleItem(output[_TPT][_me]), context); } return contents; }; @@ -9190,15 +9118,12 @@ const de_DescribeTerminationPolicyTypesAnswer = ( const de_DescribeTrafficSourcesResponse = (output: any, context: __SerdeContext): DescribeTrafficSourcesResponse => { const contents: any = {}; if (output.TrafficSources === "") { - contents.TrafficSources = []; - } else if (output["TrafficSources"] !== undefined && output["TrafficSources"]["member"] !== undefined) { - contents.TrafficSources = de_TrafficSourceStates( - __getArrayIfSingleItem(output["TrafficSources"]["member"]), - context - ); + contents[_TS] = []; + } else if (output[_TS] != null && output[_TS][_me] != null) { + contents[_TS] = de_TrafficSourceStates(__getArrayIfSingleItem(output[_TS][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9208,16 +9133,16 @@ const de_DescribeTrafficSourcesResponse = (output: any, context: __SerdeContext) */ const de_DescribeWarmPoolAnswer = (output: any, context: __SerdeContext): DescribeWarmPoolAnswer => { const contents: any = {}; - if (output["WarmPoolConfiguration"] !== undefined) { - contents.WarmPoolConfiguration = de_WarmPoolConfiguration(output["WarmPoolConfiguration"], context); + if (output[_WPC] != null) { + contents[_WPC] = de_WarmPoolConfiguration(output[_WPC], context); } if (output.Instances === "") { - contents.Instances = []; - } else if (output["Instances"] !== undefined && output["Instances"]["member"] !== undefined) { - contents.Instances = de_Instances(__getArrayIfSingleItem(output["Instances"]["member"]), context); + contents[_In] = []; + } else if (output[_In] != null && output[_In][_me] != null) { + contents[_In] = de_Instances(__getArrayIfSingleItem(output[_In][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9227,11 +9152,11 @@ const de_DescribeWarmPoolAnswer = (output: any, context: __SerdeContext): Descri */ const de_DesiredConfiguration = (output: any, context: __SerdeContext): DesiredConfiguration => { const contents: any = {}; - if (output["LaunchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplateSpecification(output["LaunchTemplate"], context); + if (output[_LT] != null) { + contents[_LT] = de_LaunchTemplateSpecification(output[_LT], context); } - if (output["MixedInstancesPolicy"] !== undefined) { - contents.MixedInstancesPolicy = de_MixedInstancesPolicy(output["MixedInstancesPolicy"], context); + if (output[_MIP] != null) { + contents[_MIP] = de_MixedInstancesPolicy(output[_MIP], context); } return contents; }; @@ -9242,9 +9167,9 @@ const de_DesiredConfiguration = (output: any, context: __SerdeContext): DesiredC const de_DetachInstancesAnswer = (output: any, context: __SerdeContext): DetachInstancesAnswer => { const contents: any = {}; if (output.Activities === "") { - contents.Activities = []; - } else if (output["Activities"] !== undefined && output["Activities"]["member"] !== undefined) { - contents.Activities = de_Activities(__getArrayIfSingleItem(output["Activities"]["member"]), context); + contents[_Ac] = []; + } else if (output[_Ac] != null && output[_Ac][_me] != null) { + contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); } return contents; }; @@ -9281,26 +9206,26 @@ const de_DetachTrafficSourcesResultType = (output: any, context: __SerdeContext) */ const de_Ebs = (output: any, context: __SerdeContext): Ebs => { const contents: any = {}; - if (output["SnapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["SnapshotId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["VolumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt32(output["VolumeSize"]) as number; + if (output[_VS] != null) { + contents[_VS] = __strictParseInt32(output[_VS]) as number; } - if (output["VolumeType"] !== undefined) { - contents.VolumeType = __expectString(output["VolumeType"]); + if (output[_VT] != null) { + contents[_VT] = __expectString(output[_VT]); } - if (output["DeleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["DeleteOnTermination"]); + if (output[_DOT] != null) { + contents[_DOT] = __parseBoolean(output[_DOT]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["Encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["Encrypted"]); + if (output[_En] != null) { + contents[_En] = __parseBoolean(output[_En]); } - if (output["Throughput"] !== undefined) { - contents.Throughput = __strictParseInt32(output["Throughput"]) as number; + if (output[_Th] != null) { + contents[_Th] = __strictParseInt32(output[_Th]) as number; } return contents; }; @@ -9310,11 +9235,11 @@ const de_Ebs = (output: any, context: __SerdeContext): Ebs => { */ const de_EnabledMetric = (output: any, context: __SerdeContext): EnabledMetric => { const contents: any = {}; - if (output["Metric"] !== undefined) { - contents.Metric = __expectString(output["Metric"]); + if (output[_Met] != null) { + contents[_Met] = __expectString(output[_Met]); } - if (output["Granularity"] !== undefined) { - contents.Granularity = __expectString(output["Granularity"]); + if (output[_G] != null) { + contents[_G] = __expectString(output[_G]); } return contents; }; @@ -9336,9 +9261,9 @@ const de_EnabledMetrics = (output: any, context: __SerdeContext): EnabledMetric[ const de_EnterStandbyAnswer = (output: any, context: __SerdeContext): EnterStandbyAnswer => { const contents: any = {}; if (output.Activities === "") { - contents.Activities = []; - } else if (output["Activities"] !== undefined && output["Activities"]["member"] !== undefined) { - contents.Activities = de_Activities(__getArrayIfSingleItem(output["Activities"]["member"]), context); + contents[_Ac] = []; + } else if (output[_Ac] != null && output[_Ac][_me] != null) { + contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); } return contents; }; @@ -9360,9 +9285,9 @@ const de_ExcludedInstanceTypes = (output: any, context: __SerdeContext): string[ const de_ExitStandbyAnswer = (output: any, context: __SerdeContext): ExitStandbyAnswer => { const contents: any = {}; if (output.Activities === "") { - contents.Activities = []; - } else if (output["Activities"] !== undefined && output["Activities"]["member"] !== undefined) { - contents.Activities = de_Activities(__getArrayIfSingleItem(output["Activities"]["member"]), context); + contents[_Ac] = []; + } else if (output[_Ac] != null && output[_Ac][_me] != null) { + contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); } return contents; }; @@ -9375,14 +9300,14 @@ const de_FailedScheduledUpdateGroupActionRequest = ( context: __SerdeContext ): FailedScheduledUpdateGroupActionRequest => { const contents: any = {}; - if (output["ScheduledActionName"] !== undefined) { - contents.ScheduledActionName = __expectString(output["ScheduledActionName"]); + if (output[_SANc] != null) { + contents[_SANc] = __expectString(output[_SANc]); } - if (output["ErrorCode"] !== undefined) { - contents.ErrorCode = __expectString(output["ErrorCode"]); + if (output[_EC] != null) { + contents[_EC] = __expectString(output[_EC]); } - if (output["ErrorMessage"] !== undefined) { - contents.ErrorMessage = __expectString(output["ErrorMessage"]); + if (output[_EMr] != null) { + contents[_EMr] = __expectString(output[_EMr]); } return contents; }; @@ -9410,15 +9335,15 @@ const de_GetPredictiveScalingForecastAnswer = ( ): GetPredictiveScalingForecastAnswer => { const contents: any = {}; if (output.LoadForecast === "") { - contents.LoadForecast = []; - } else if (output["LoadForecast"] !== undefined && output["LoadForecast"]["member"] !== undefined) { - contents.LoadForecast = de_LoadForecasts(__getArrayIfSingleItem(output["LoadForecast"]["member"]), context); + contents[_LF] = []; + } else if (output[_LF] != null && output[_LF][_me] != null) { + contents[_LF] = de_LoadForecasts(__getArrayIfSingleItem(output[_LF][_me]), context); } - if (output["CapacityForecast"] !== undefined) { - contents.CapacityForecast = de_CapacityForecast(output["CapacityForecast"], context); + if (output[_CF] != null) { + contents[_CF] = de_CapacityForecast(output[_CF], context); } - if (output["UpdateTime"] !== undefined) { - contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdateTime"])); + if (output[_UT] != null) { + contents[_UT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UT])); } return contents; }; @@ -9428,32 +9353,32 @@ const de_GetPredictiveScalingForecastAnswer = ( */ const de_Instance = (output: any, context: __SerdeContext): Instance => { const contents: any = {}; - if (output["InstanceId"] !== undefined) { - contents.InstanceId = __expectString(output["InstanceId"]); + if (output[_IIn] != null) { + contents[_IIn] = __expectString(output[_IIn]); } - if (output["InstanceType"] !== undefined) { - contents.InstanceType = __expectString(output["InstanceType"]); + if (output[_IT] != null) { + contents[_IT] = __expectString(output[_IT]); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZv] != null) { + contents[_AZv] = __expectString(output[_AZv]); } - if (output["LifecycleState"] !== undefined) { - contents.LifecycleState = __expectString(output["LifecycleState"]); + if (output[_LSi] != null) { + contents[_LSi] = __expectString(output[_LSi]); } - if (output["HealthStatus"] !== undefined) { - contents.HealthStatus = __expectString(output["HealthStatus"]); + if (output[_HS] != null) { + contents[_HS] = __expectString(output[_HS]); } - if (output["LaunchConfigurationName"] !== undefined) { - contents.LaunchConfigurationName = __expectString(output["LaunchConfigurationName"]); + if (output[_LCN] != null) { + contents[_LCN] = __expectString(output[_LCN]); } - if (output["LaunchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplateSpecification(output["LaunchTemplate"], context); + if (output[_LT] != null) { + contents[_LT] = de_LaunchTemplateSpecification(output[_LT], context); } - if (output["ProtectedFromScaleIn"] !== undefined) { - contents.ProtectedFromScaleIn = __parseBoolean(output["ProtectedFromScaleIn"]); + if (output[_PFSI] != null) { + contents[_PFSI] = __parseBoolean(output[_PFSI]); } - if (output["WeightedCapacity"] !== undefined) { - contents.WeightedCapacity = __expectString(output["WeightedCapacity"]); + if (output[_WC] != null) { + contents[_WC] = __expectString(output[_WC]); } return contents; }; @@ -9474,11 +9399,11 @@ const de_InstanceGenerations = (output: any, context: __SerdeContext): InstanceG */ const de_InstanceMaintenancePolicy = (output: any, context: __SerdeContext): InstanceMaintenancePolicy => { const contents: any = {}; - if (output["MinHealthyPercentage"] !== undefined) { - contents.MinHealthyPercentage = __strictParseInt32(output["MinHealthyPercentage"]) as number; + if (output[_MHP] != null) { + contents[_MHP] = __strictParseInt32(output[_MHP]) as number; } - if (output["MaxHealthyPercentage"] !== undefined) { - contents.MaxHealthyPercentage = __strictParseInt32(output["MaxHealthyPercentage"]) as number; + if (output[_MHPa] != null) { + contents[_MHPa] = __strictParseInt32(output[_MHPa]) as number; } return contents; }; @@ -9488,14 +9413,14 @@ const de_InstanceMaintenancePolicy = (output: any, context: __SerdeContext): Ins */ const de_InstanceMetadataOptions = (output: any, context: __SerdeContext): InstanceMetadataOptions => { const contents: any = {}; - if (output["HttpTokens"] !== undefined) { - contents.HttpTokens = __expectString(output["HttpTokens"]); + if (output[_HT] != null) { + contents[_HT] = __expectString(output[_HT]); } - if (output["HttpPutResponseHopLimit"] !== undefined) { - contents.HttpPutResponseHopLimit = __strictParseInt32(output["HttpPutResponseHopLimit"]) as number; + if (output[_HPRHL] != null) { + contents[_HPRHL] = __strictParseInt32(output[_HPRHL]) as number; } - if (output["HttpEndpoint"] !== undefined) { - contents.HttpEndpoint = __expectString(output["HttpEndpoint"]); + if (output[_HE] != null) { + contents[_HE] = __expectString(output[_HE]); } return contents; }; @@ -9505,8 +9430,8 @@ const de_InstanceMetadataOptions = (output: any, context: __SerdeContext): Insta */ const de_InstanceMonitoring = (output: any, context: __SerdeContext): InstanceMonitoring => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_Ena] != null) { + contents[_Ena] = __parseBoolean(output[_Ena]); } return contents; }; @@ -9516,41 +9441,41 @@ const de_InstanceMonitoring = (output: any, context: __SerdeContext): InstanceMo */ const de_InstanceRefresh = (output: any, context: __SerdeContext): InstanceRefresh => { const contents: any = {}; - if (output["InstanceRefreshId"] !== undefined) { - contents.InstanceRefreshId = __expectString(output["InstanceRefreshId"]); + if (output[_IRIn] != null) { + contents[_IRIn] = __expectString(output[_IRIn]); } - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SR] != null) { + contents[_SR] = __expectString(output[_SR]); } - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_ST] != null) { + contents[_ST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ST])); } - if (output["EndTime"] !== undefined) { - contents.EndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTime"])); + if (output[_ET] != null) { + contents[_ET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ET])); } - if (output["PercentageComplete"] !== undefined) { - contents.PercentageComplete = __strictParseInt32(output["PercentageComplete"]) as number; + if (output[_PCe] != null) { + contents[_PCe] = __strictParseInt32(output[_PCe]) as number; } - if (output["InstancesToUpdate"] !== undefined) { - contents.InstancesToUpdate = __strictParseInt32(output["InstancesToUpdate"]) as number; + if (output[_ITU] != null) { + contents[_ITU] = __strictParseInt32(output[_ITU]) as number; } - if (output["ProgressDetails"] !== undefined) { - contents.ProgressDetails = de_InstanceRefreshProgressDetails(output["ProgressDetails"], context); + if (output[_PD] != null) { + contents[_PD] = de_InstanceRefreshProgressDetails(output[_PD], context); } - if (output["Preferences"] !== undefined) { - contents.Preferences = de_RefreshPreferences(output["Preferences"], context); + if (output[_P] != null) { + contents[_P] = de_RefreshPreferences(output[_P], context); } - if (output["DesiredConfiguration"] !== undefined) { - contents.DesiredConfiguration = de_DesiredConfiguration(output["DesiredConfiguration"], context); + if (output[_DCes] != null) { + contents[_DCes] = de_DesiredConfiguration(output[_DCes], context); } - if (output["RollbackDetails"] !== undefined) { - contents.RollbackDetails = de_RollbackDetails(output["RollbackDetails"], context); + if (output[_RDo] != null) { + contents[_RDo] = de_RollbackDetails(output[_RDo], context); } return contents; }; @@ -9571,8 +9496,8 @@ const de_InstanceRefreshes = (output: any, context: __SerdeContext): InstanceRef */ const de_InstanceRefreshInProgressFault = (output: any, context: __SerdeContext): InstanceRefreshInProgressFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9582,11 +9507,11 @@ const de_InstanceRefreshInProgressFault = (output: any, context: __SerdeContext) */ const de_InstanceRefreshLivePoolProgress = (output: any, context: __SerdeContext): InstanceRefreshLivePoolProgress => { const contents: any = {}; - if (output["PercentageComplete"] !== undefined) { - contents.PercentageComplete = __strictParseInt32(output["PercentageComplete"]) as number; + if (output[_PCe] != null) { + contents[_PCe] = __strictParseInt32(output[_PCe]) as number; } - if (output["InstancesToUpdate"] !== undefined) { - contents.InstancesToUpdate = __strictParseInt32(output["InstancesToUpdate"]) as number; + if (output[_ITU] != null) { + contents[_ITU] = __strictParseInt32(output[_ITU]) as number; } return contents; }; @@ -9596,11 +9521,11 @@ const de_InstanceRefreshLivePoolProgress = (output: any, context: __SerdeContext */ const de_InstanceRefreshProgressDetails = (output: any, context: __SerdeContext): InstanceRefreshProgressDetails => { const contents: any = {}; - if (output["LivePoolProgress"] !== undefined) { - contents.LivePoolProgress = de_InstanceRefreshLivePoolProgress(output["LivePoolProgress"], context); + if (output[_LPP] != null) { + contents[_LPP] = de_InstanceRefreshLivePoolProgress(output[_LPP], context); } - if (output["WarmPoolProgress"] !== undefined) { - contents.WarmPoolProgress = de_InstanceRefreshWarmPoolProgress(output["WarmPoolProgress"], context); + if (output[_WPP] != null) { + contents[_WPP] = de_InstanceRefreshWarmPoolProgress(output[_WPP], context); } return contents; }; @@ -9610,11 +9535,11 @@ const de_InstanceRefreshProgressDetails = (output: any, context: __SerdeContext) */ const de_InstanceRefreshWarmPoolProgress = (output: any, context: __SerdeContext): InstanceRefreshWarmPoolProgress => { const contents: any = {}; - if (output["PercentageComplete"] !== undefined) { - contents.PercentageComplete = __strictParseInt32(output["PercentageComplete"]) as number; + if (output[_PCe] != null) { + contents[_PCe] = __strictParseInt32(output[_PCe]) as number; } - if (output["InstancesToUpdate"] !== undefined) { - contents.InstancesToUpdate = __strictParseInt32(output["InstancesToUpdate"]) as number; + if (output[_ITU] != null) { + contents[_ITU] = __strictParseInt32(output[_ITU]) as number; } return contents; }; @@ -9624,124 +9549,90 @@ const de_InstanceRefreshWarmPoolProgress = (output: any, context: __SerdeContext */ const de_InstanceRequirements = (output: any, context: __SerdeContext): InstanceRequirements => { const contents: any = {}; - if (output["VCpuCount"] !== undefined) { - contents.VCpuCount = de_VCpuCountRequest(output["VCpuCount"], context); + if (output[_VCC] != null) { + contents[_VCC] = de_VCpuCountRequest(output[_VCC], context); } - if (output["MemoryMiB"] !== undefined) { - contents.MemoryMiB = de_MemoryMiBRequest(output["MemoryMiB"], context); + if (output[_MMB] != null) { + contents[_MMB] = de_MemoryMiBRequest(output[_MMB], context); } if (output.CpuManufacturers === "") { - contents.CpuManufacturers = []; - } else if (output["CpuManufacturers"] !== undefined && output["CpuManufacturers"]["member"] !== undefined) { - contents.CpuManufacturers = de_CpuManufacturers( - __getArrayIfSingleItem(output["CpuManufacturers"]["member"]), - context - ); + contents[_CM] = []; + } else if (output[_CM] != null && output[_CM][_me] != null) { + contents[_CM] = de_CpuManufacturers(__getArrayIfSingleItem(output[_CM][_me]), context); } - if (output["MemoryGiBPerVCpu"] !== undefined) { - contents.MemoryGiBPerVCpu = de_MemoryGiBPerVCpuRequest(output["MemoryGiBPerVCpu"], context); + if (output[_MGBPVC] != null) { + contents[_MGBPVC] = de_MemoryGiBPerVCpuRequest(output[_MGBPVC], context); } if (output.ExcludedInstanceTypes === "") { - contents.ExcludedInstanceTypes = []; - } else if (output["ExcludedInstanceTypes"] !== undefined && output["ExcludedInstanceTypes"]["member"] !== undefined) { - contents.ExcludedInstanceTypes = de_ExcludedInstanceTypes( - __getArrayIfSingleItem(output["ExcludedInstanceTypes"]["member"]), - context - ); + contents[_EIT] = []; + } else if (output[_EIT] != null && output[_EIT][_me] != null) { + contents[_EIT] = de_ExcludedInstanceTypes(__getArrayIfSingleItem(output[_EIT][_me]), context); } if (output.InstanceGenerations === "") { - contents.InstanceGenerations = []; - } else if (output["InstanceGenerations"] !== undefined && output["InstanceGenerations"]["member"] !== undefined) { - contents.InstanceGenerations = de_InstanceGenerations( - __getArrayIfSingleItem(output["InstanceGenerations"]["member"]), - context - ); + contents[_IG] = []; + } else if (output[_IG] != null && output[_IG][_me] != null) { + contents[_IG] = de_InstanceGenerations(__getArrayIfSingleItem(output[_IG][_me]), context); } - if (output["SpotMaxPricePercentageOverLowestPrice"] !== undefined) { - contents.SpotMaxPricePercentageOverLowestPrice = __strictParseInt32( - output["SpotMaxPricePercentageOverLowestPrice"] - ) as number; + if (output[_SMPPOLP] != null) { + contents[_SMPPOLP] = __strictParseInt32(output[_SMPPOLP]) as number; } - if (output["OnDemandMaxPricePercentageOverLowestPrice"] !== undefined) { - contents.OnDemandMaxPricePercentageOverLowestPrice = __strictParseInt32( - output["OnDemandMaxPricePercentageOverLowestPrice"] - ) as number; + if (output[_ODMPPOLP] != null) { + contents[_ODMPPOLP] = __strictParseInt32(output[_ODMPPOLP]) as number; } - if (output["BareMetal"] !== undefined) { - contents.BareMetal = __expectString(output["BareMetal"]); + if (output[_BM] != null) { + contents[_BM] = __expectString(output[_BM]); } - if (output["BurstablePerformance"] !== undefined) { - contents.BurstablePerformance = __expectString(output["BurstablePerformance"]); + if (output[_BP] != null) { + contents[_BP] = __expectString(output[_BP]); } - if (output["RequireHibernateSupport"] !== undefined) { - contents.RequireHibernateSupport = __parseBoolean(output["RequireHibernateSupport"]); + if (output[_RHS] != null) { + contents[_RHS] = __parseBoolean(output[_RHS]); } - if (output["NetworkInterfaceCount"] !== undefined) { - contents.NetworkInterfaceCount = de_NetworkInterfaceCountRequest(output["NetworkInterfaceCount"], context); + if (output[_NIC] != null) { + contents[_NIC] = de_NetworkInterfaceCountRequest(output[_NIC], context); } - if (output["LocalStorage"] !== undefined) { - contents.LocalStorage = __expectString(output["LocalStorage"]); + if (output[_LS] != null) { + contents[_LS] = __expectString(output[_LS]); } if (output.LocalStorageTypes === "") { - contents.LocalStorageTypes = []; - } else if (output["LocalStorageTypes"] !== undefined && output["LocalStorageTypes"]["member"] !== undefined) { - contents.LocalStorageTypes = de_LocalStorageTypes( - __getArrayIfSingleItem(output["LocalStorageTypes"]["member"]), - context - ); + contents[_LST] = []; + } else if (output[_LST] != null && output[_LST][_me] != null) { + contents[_LST] = de_LocalStorageTypes(__getArrayIfSingleItem(output[_LST][_me]), context); } - if (output["TotalLocalStorageGB"] !== undefined) { - contents.TotalLocalStorageGB = de_TotalLocalStorageGBRequest(output["TotalLocalStorageGB"], context); + if (output[_TLSGB] != null) { + contents[_TLSGB] = de_TotalLocalStorageGBRequest(output[_TLSGB], context); } - if (output["BaselineEbsBandwidthMbps"] !== undefined) { - contents.BaselineEbsBandwidthMbps = de_BaselineEbsBandwidthMbpsRequest(output["BaselineEbsBandwidthMbps"], context); + if (output[_BEBM] != null) { + contents[_BEBM] = de_BaselineEbsBandwidthMbpsRequest(output[_BEBM], context); } if (output.AcceleratorTypes === "") { - contents.AcceleratorTypes = []; - } else if (output["AcceleratorTypes"] !== undefined && output["AcceleratorTypes"]["member"] !== undefined) { - contents.AcceleratorTypes = de_AcceleratorTypes( - __getArrayIfSingleItem(output["AcceleratorTypes"]["member"]), - context - ); + contents[_AT] = []; + } else if (output[_AT] != null && output[_AT][_me] != null) { + contents[_AT] = de_AcceleratorTypes(__getArrayIfSingleItem(output[_AT][_me]), context); } - if (output["AcceleratorCount"] !== undefined) { - contents.AcceleratorCount = de_AcceleratorCountRequest(output["AcceleratorCount"], context); + if (output[_AC] != null) { + contents[_AC] = de_AcceleratorCountRequest(output[_AC], context); } if (output.AcceleratorManufacturers === "") { - contents.AcceleratorManufacturers = []; - } else if ( - output["AcceleratorManufacturers"] !== undefined && - output["AcceleratorManufacturers"]["member"] !== undefined - ) { - contents.AcceleratorManufacturers = de_AcceleratorManufacturers( - __getArrayIfSingleItem(output["AcceleratorManufacturers"]["member"]), - context - ); + contents[_AM] = []; + } else if (output[_AM] != null && output[_AM][_me] != null) { + contents[_AM] = de_AcceleratorManufacturers(__getArrayIfSingleItem(output[_AM][_me]), context); } if (output.AcceleratorNames === "") { - contents.AcceleratorNames = []; - } else if (output["AcceleratorNames"] !== undefined && output["AcceleratorNames"]["member"] !== undefined) { - contents.AcceleratorNames = de_AcceleratorNames( - __getArrayIfSingleItem(output["AcceleratorNames"]["member"]), - context - ); + contents[_AN] = []; + } else if (output[_AN] != null && output[_AN][_me] != null) { + contents[_AN] = de_AcceleratorNames(__getArrayIfSingleItem(output[_AN][_me]), context); } - if (output["AcceleratorTotalMemoryMiB"] !== undefined) { - contents.AcceleratorTotalMemoryMiB = de_AcceleratorTotalMemoryMiBRequest( - output["AcceleratorTotalMemoryMiB"], - context - ); + if (output[_ATMMB] != null) { + contents[_ATMMB] = de_AcceleratorTotalMemoryMiBRequest(output[_ATMMB], context); } - if (output["NetworkBandwidthGbps"] !== undefined) { - contents.NetworkBandwidthGbps = de_NetworkBandwidthGbpsRequest(output["NetworkBandwidthGbps"], context); + if (output[_NBG] != null) { + contents[_NBG] = de_NetworkBandwidthGbpsRequest(output[_NBG], context); } if (output.AllowedInstanceTypes === "") { - contents.AllowedInstanceTypes = []; - } else if (output["AllowedInstanceTypes"] !== undefined && output["AllowedInstanceTypes"]["member"] !== undefined) { - contents.AllowedInstanceTypes = de_AllowedInstanceTypes( - __getArrayIfSingleItem(output["AllowedInstanceTypes"]["member"]), - context - ); + contents[_AIT] = []; + } else if (output[_AIT] != null && output[_AIT][_me] != null) { + contents[_AIT] = de_AllowedInstanceTypes(__getArrayIfSingleItem(output[_AIT][_me]), context); } return contents; }; @@ -9751,8 +9642,8 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance */ const de_InstanceReusePolicy = (output: any, context: __SerdeContext): InstanceReusePolicy => { const contents: any = {}; - if (output["ReuseOnScaleIn"] !== undefined) { - contents.ReuseOnScaleIn = __parseBoolean(output["ReuseOnScaleIn"]); + if (output[_ROSI] != null) { + contents[_ROSI] = __parseBoolean(output[_ROSI]); } return contents; }; @@ -9773,25 +9664,23 @@ const de_Instances = (output: any, context: __SerdeContext): Instance[] => { */ const de_InstancesDistribution = (output: any, context: __SerdeContext): InstancesDistribution => { const contents: any = {}; - if (output["OnDemandAllocationStrategy"] !== undefined) { - contents.OnDemandAllocationStrategy = __expectString(output["OnDemandAllocationStrategy"]); + if (output[_ODAS] != null) { + contents[_ODAS] = __expectString(output[_ODAS]); } - if (output["OnDemandBaseCapacity"] !== undefined) { - contents.OnDemandBaseCapacity = __strictParseInt32(output["OnDemandBaseCapacity"]) as number; + if (output[_ODBC] != null) { + contents[_ODBC] = __strictParseInt32(output[_ODBC]) as number; } - if (output["OnDemandPercentageAboveBaseCapacity"] !== undefined) { - contents.OnDemandPercentageAboveBaseCapacity = __strictParseInt32( - output["OnDemandPercentageAboveBaseCapacity"] - ) as number; + if (output[_ODPABC] != null) { + contents[_ODPABC] = __strictParseInt32(output[_ODPABC]) as number; } - if (output["SpotAllocationStrategy"] !== undefined) { - contents.SpotAllocationStrategy = __expectString(output["SpotAllocationStrategy"]); + if (output[_SAS] != null) { + contents[_SAS] = __expectString(output[_SAS]); } - if (output["SpotInstancePools"] !== undefined) { - contents.SpotInstancePools = __strictParseInt32(output["SpotInstancePools"]) as number; + if (output[_SIPp] != null) { + contents[_SIPp] = __strictParseInt32(output[_SIPp]) as number; } - if (output["SpotMaxPrice"] !== undefined) { - contents.SpotMaxPrice = __expectString(output["SpotMaxPrice"]); + if (output[_SMP] != null) { + contents[_SMP] = __expectString(output[_SMP]); } return contents; }; @@ -9801,8 +9690,8 @@ const de_InstancesDistribution = (output: any, context: __SerdeContext): Instanc */ const de_InvalidNextToken = (output: any, context: __SerdeContext): InvalidNextToken => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9815,8 +9704,8 @@ const de_IrreversibleInstanceRefreshFault = ( context: __SerdeContext ): IrreversibleInstanceRefreshFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9826,80 +9715,71 @@ const de_IrreversibleInstanceRefreshFault = ( */ const de_LaunchConfiguration = (output: any, context: __SerdeContext): LaunchConfiguration => { const contents: any = {}; - if (output["LaunchConfigurationName"] !== undefined) { - contents.LaunchConfigurationName = __expectString(output["LaunchConfigurationName"]); + if (output[_LCN] != null) { + contents[_LCN] = __expectString(output[_LCN]); } - if (output["LaunchConfigurationARN"] !== undefined) { - contents.LaunchConfigurationARN = __expectString(output["LaunchConfigurationARN"]); + if (output[_LCARN] != null) { + contents[_LCARN] = __expectString(output[_LCARN]); } - if (output["ImageId"] !== undefined) { - contents.ImageId = __expectString(output["ImageId"]); + if (output[_IIm] != null) { + contents[_IIm] = __expectString(output[_IIm]); } - if (output["KeyName"] !== undefined) { - contents.KeyName = __expectString(output["KeyName"]); + if (output[_KN] != null) { + contents[_KN] = __expectString(output[_KN]); } if (output.SecurityGroups === "") { - contents.SecurityGroups = []; - } else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) { - contents.SecurityGroups = de_SecurityGroups(__getArrayIfSingleItem(output["SecurityGroups"]["member"]), context); + contents[_SG] = []; + } else if (output[_SG] != null && output[_SG][_me] != null) { + contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_me]), context); } - if (output["ClassicLinkVPCId"] !== undefined) { - contents.ClassicLinkVPCId = __expectString(output["ClassicLinkVPCId"]); + if (output[_CLVPCI] != null) { + contents[_CLVPCI] = __expectString(output[_CLVPCI]); } if (output.ClassicLinkVPCSecurityGroups === "") { - contents.ClassicLinkVPCSecurityGroups = []; - } else if ( - output["ClassicLinkVPCSecurityGroups"] !== undefined && - output["ClassicLinkVPCSecurityGroups"]["member"] !== undefined - ) { - contents.ClassicLinkVPCSecurityGroups = de_ClassicLinkVPCSecurityGroups( - __getArrayIfSingleItem(output["ClassicLinkVPCSecurityGroups"]["member"]), - context - ); + contents[_CLVPCSG] = []; + } else if (output[_CLVPCSG] != null && output[_CLVPCSG][_me] != null) { + contents[_CLVPCSG] = de_ClassicLinkVPCSecurityGroups(__getArrayIfSingleItem(output[_CLVPCSG][_me]), context); } - if (output["UserData"] !== undefined) { - contents.UserData = __expectString(output["UserData"]); + if (output[_UD] != null) { + contents[_UD] = __expectString(output[_UD]); } - if (output["InstanceType"] !== undefined) { - contents.InstanceType = __expectString(output["InstanceType"]); + if (output[_IT] != null) { + contents[_IT] = __expectString(output[_IT]); } - if (output["KernelId"] !== undefined) { - contents.KernelId = __expectString(output["KernelId"]); + if (output[_KI] != null) { + contents[_KI] = __expectString(output[_KI]); } - if (output["RamdiskId"] !== undefined) { - contents.RamdiskId = __expectString(output["RamdiskId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } if (output.BlockDeviceMappings === "") { - contents.BlockDeviceMappings = []; - } else if (output["BlockDeviceMappings"] !== undefined && output["BlockDeviceMappings"]["member"] !== undefined) { - contents.BlockDeviceMappings = de_BlockDeviceMappings( - __getArrayIfSingleItem(output["BlockDeviceMappings"]["member"]), - context - ); + contents[_BDM] = []; + } else if (output[_BDM] != null && output[_BDM][_me] != null) { + contents[_BDM] = de_BlockDeviceMappings(__getArrayIfSingleItem(output[_BDM][_me]), context); } - if (output["InstanceMonitoring"] !== undefined) { - contents.InstanceMonitoring = de_InstanceMonitoring(output["InstanceMonitoring"], context); + if (output[_IM] != null) { + contents[_IM] = de_InstanceMonitoring(output[_IM], context); } - if (output["SpotPrice"] !== undefined) { - contents.SpotPrice = __expectString(output["SpotPrice"]); + if (output[_SPp] != null) { + contents[_SPp] = __expectString(output[_SPp]); } - if (output["IamInstanceProfile"] !== undefined) { - contents.IamInstanceProfile = __expectString(output["IamInstanceProfile"]); + if (output[_IIP] != null) { + contents[_IIP] = __expectString(output[_IIP]); } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTime"])); + if (output[_CT] != null) { + contents[_CT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CT])); } - if (output["EbsOptimized"] !== undefined) { - contents.EbsOptimized = __parseBoolean(output["EbsOptimized"]); + if (output[_EO] != null) { + contents[_EO] = __parseBoolean(output[_EO]); } - if (output["AssociatePublicIpAddress"] !== undefined) { - contents.AssociatePublicIpAddress = __parseBoolean(output["AssociatePublicIpAddress"]); + if (output[_APIA] != null) { + contents[_APIA] = __parseBoolean(output[_APIA]); } - if (output["PlacementTenancy"] !== undefined) { - contents.PlacementTenancy = __expectString(output["PlacementTenancy"]); + if (output[_PT] != null) { + contents[_PT] = __expectString(output[_PT]); } - if (output["MetadataOptions"] !== undefined) { - contents.MetadataOptions = de_InstanceMetadataOptions(output["MetadataOptions"], context); + if (output[_MO] != null) { + contents[_MO] = de_InstanceMetadataOptions(output[_MO], context); } return contents; }; @@ -9921,15 +9801,12 @@ const de_LaunchConfigurations = (output: any, context: __SerdeContext): LaunchCo const de_LaunchConfigurationsType = (output: any, context: __SerdeContext): LaunchConfigurationsType => { const contents: any = {}; if (output.LaunchConfigurations === "") { - contents.LaunchConfigurations = []; - } else if (output["LaunchConfigurations"] !== undefined && output["LaunchConfigurations"]["member"] !== undefined) { - contents.LaunchConfigurations = de_LaunchConfigurations( - __getArrayIfSingleItem(output["LaunchConfigurations"]["member"]), - context - ); + contents[_LC] = []; + } else if (output[_LC] != null && output[_LC][_me] != null) { + contents[_LC] = de_LaunchConfigurations(__getArrayIfSingleItem(output[_LC][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9939,16 +9816,13 @@ const de_LaunchConfigurationsType = (output: any, context: __SerdeContext): Laun */ const de_LaunchTemplate = (output: any, context: __SerdeContext): LaunchTemplate => { const contents: any = {}; - if (output["LaunchTemplateSpecification"] !== undefined) { - contents.LaunchTemplateSpecification = de_LaunchTemplateSpecification( - output["LaunchTemplateSpecification"], - context - ); + if (output[_LTS] != null) { + contents[_LTS] = de_LaunchTemplateSpecification(output[_LTS], context); } if (output.Overrides === "") { - contents.Overrides = []; - } else if (output["Overrides"] !== undefined && output["Overrides"]["member"] !== undefined) { - contents.Overrides = de_Overrides(__getArrayIfSingleItem(output["Overrides"]["member"]), context); + contents[_O] = []; + } else if (output[_O] != null && output[_O][_me] != null) { + contents[_O] = de_Overrides(__getArrayIfSingleItem(output[_O][_me]), context); } return contents; }; @@ -9958,20 +9832,17 @@ const de_LaunchTemplate = (output: any, context: __SerdeContext): LaunchTemplate */ const de_LaunchTemplateOverrides = (output: any, context: __SerdeContext): LaunchTemplateOverrides => { const contents: any = {}; - if (output["InstanceType"] !== undefined) { - contents.InstanceType = __expectString(output["InstanceType"]); + if (output[_IT] != null) { + contents[_IT] = __expectString(output[_IT]); } - if (output["WeightedCapacity"] !== undefined) { - contents.WeightedCapacity = __expectString(output["WeightedCapacity"]); + if (output[_WC] != null) { + contents[_WC] = __expectString(output[_WC]); } - if (output["LaunchTemplateSpecification"] !== undefined) { - contents.LaunchTemplateSpecification = de_LaunchTemplateSpecification( - output["LaunchTemplateSpecification"], - context - ); + if (output[_LTS] != null) { + contents[_LTS] = de_LaunchTemplateSpecification(output[_LTS], context); } - if (output["InstanceRequirements"] !== undefined) { - contents.InstanceRequirements = de_InstanceRequirements(output["InstanceRequirements"], context); + if (output[_IR] != null) { + contents[_IR] = de_InstanceRequirements(output[_IR], context); } return contents; }; @@ -9981,14 +9852,14 @@ const de_LaunchTemplateOverrides = (output: any, context: __SerdeContext): Launc */ const de_LaunchTemplateSpecification = (output: any, context: __SerdeContext): LaunchTemplateSpecification => { const contents: any = {}; - if (output["LaunchTemplateId"] !== undefined) { - contents.LaunchTemplateId = __expectString(output["LaunchTemplateId"]); + if (output[_LTI] != null) { + contents[_LTI] = __expectString(output[_LTI]); } - if (output["LaunchTemplateName"] !== undefined) { - contents.LaunchTemplateName = __expectString(output["LaunchTemplateName"]); + if (output[_LTN] != null) { + contents[_LTN] = __expectString(output[_LTN]); } - if (output["Version"] !== undefined) { - contents.Version = __expectString(output["Version"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -9998,32 +9869,32 @@ const de_LaunchTemplateSpecification = (output: any, context: __SerdeContext): L */ const de_LifecycleHook = (output: any, context: __SerdeContext): LifecycleHook => { const contents: any = {}; - if (output["LifecycleHookName"] !== undefined) { - contents.LifecycleHookName = __expectString(output["LifecycleHookName"]); + if (output[_LHN] != null) { + contents[_LHN] = __expectString(output[_LHN]); } - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["LifecycleTransition"] !== undefined) { - contents.LifecycleTransition = __expectString(output["LifecycleTransition"]); + if (output[_LTi] != null) { + contents[_LTi] = __expectString(output[_LTi]); } - if (output["NotificationTargetARN"] !== undefined) { - contents.NotificationTargetARN = __expectString(output["NotificationTargetARN"]); + if (output[_NTARN] != null) { + contents[_NTARN] = __expectString(output[_NTARN]); } - if (output["RoleARN"] !== undefined) { - contents.RoleARN = __expectString(output["RoleARN"]); + if (output[_RARN] != null) { + contents[_RARN] = __expectString(output[_RARN]); } - if (output["NotificationMetadata"] !== undefined) { - contents.NotificationMetadata = __expectString(output["NotificationMetadata"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["HeartbeatTimeout"] !== undefined) { - contents.HeartbeatTimeout = __strictParseInt32(output["HeartbeatTimeout"]) as number; + if (output[_HTe] != null) { + contents[_HTe] = __strictParseInt32(output[_HTe]) as number; } - if (output["GlobalTimeout"] !== undefined) { - contents.GlobalTimeout = __strictParseInt32(output["GlobalTimeout"]) as number; + if (output[_GT] != null) { + contents[_GT] = __strictParseInt32(output[_GT]) as number; } - if (output["DefaultResult"] !== undefined) { - contents.DefaultResult = __expectString(output["DefaultResult"]); + if (output[_DR] != null) { + contents[_DR] = __expectString(output[_DR]); } return contents; }; @@ -10044,8 +9915,8 @@ const de_LifecycleHooks = (output: any, context: __SerdeContext): LifecycleHook[ */ const de_LimitExceededFault = (output: any, context: __SerdeContext): LimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10066,11 +9937,11 @@ const de_LoadBalancerNames = (output: any, context: __SerdeContext): string[] => */ const de_LoadBalancerState = (output: any, context: __SerdeContext): LoadBalancerState => { const contents: any = {}; - if (output["LoadBalancerName"] !== undefined) { - contents.LoadBalancerName = __expectString(output["LoadBalancerName"]); + if (output[_LBNo] != null) { + contents[_LBNo] = __expectString(output[_LBNo]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } return contents; }; @@ -10091,11 +9962,11 @@ const de_LoadBalancerStates = (output: any, context: __SerdeContext): LoadBalanc */ const de_LoadBalancerTargetGroupState = (output: any, context: __SerdeContext): LoadBalancerTargetGroupState => { const contents: any = {}; - if (output["LoadBalancerTargetGroupARN"] !== undefined) { - contents.LoadBalancerTargetGroupARN = __expectString(output["LoadBalancerTargetGroupARN"]); + if (output[_LBTGARN] != null) { + contents[_LBTGARN] = __expectString(output[_LBTGARN]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } return contents; }; @@ -10117,20 +9988,17 @@ const de_LoadBalancerTargetGroupStates = (output: any, context: __SerdeContext): const de_LoadForecast = (output: any, context: __SerdeContext): LoadForecast => { const contents: any = {}; if (output.Timestamps === "") { - contents.Timestamps = []; - } else if (output["Timestamps"] !== undefined && output["Timestamps"]["member"] !== undefined) { - contents.Timestamps = de_PredictiveScalingForecastTimestamps( - __getArrayIfSingleItem(output["Timestamps"]["member"]), - context - ); + contents[_Tim] = []; + } else if (output[_Tim] != null && output[_Tim][_me] != null) { + contents[_Tim] = de_PredictiveScalingForecastTimestamps(__getArrayIfSingleItem(output[_Tim][_me]), context); } if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_PredictiveScalingForecastValues(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_me] != null) { + contents[_Va] = de_PredictiveScalingForecastValues(__getArrayIfSingleItem(output[_Va][_me]), context); } - if (output["MetricSpecification"] !== undefined) { - contents.MetricSpecification = de_PredictiveScalingMetricSpecification(output["MetricSpecification"], context); + if (output[_MSetr] != null) { + contents[_MSetr] = de_PredictiveScalingMetricSpecification(output[_MSetr], context); } return contents; }; @@ -10162,11 +10030,11 @@ const de_LocalStorageTypes = (output: any, context: __SerdeContext): LocalStorag */ const de_MemoryGiBPerVCpuRequest = (output: any, context: __SerdeContext): MemoryGiBPerVCpuRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseFloat(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseFloat(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseFloat(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseFloat(output[_Ma]) as number; } return contents; }; @@ -10176,11 +10044,11 @@ const de_MemoryGiBPerVCpuRequest = (output: any, context: __SerdeContext): Memor */ const de_MemoryMiBRequest = (output: any, context: __SerdeContext): MemoryMiBRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseInt32(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseInt32(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseInt32(output[_Ma]) as number; } return contents; }; @@ -10190,16 +10058,16 @@ const de_MemoryMiBRequest = (output: any, context: __SerdeContext): MemoryMiBReq */ const de_Metric = (output: any, context: __SerdeContext): Metric => { const contents: any = {}; - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } if (output.Dimensions === "") { - contents.Dimensions = []; - } else if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) { - contents.Dimensions = de_MetricDimensions(__getArrayIfSingleItem(output["Dimensions"]["member"]), context); + contents[_D] = []; + } else if (output[_D] != null && output[_D][_me] != null) { + contents[_D] = de_MetricDimensions(__getArrayIfSingleItem(output[_D][_me]), context); } return contents; }; @@ -10209,8 +10077,8 @@ const de_Metric = (output: any, context: __SerdeContext): Metric => { */ const de_MetricCollectionType = (output: any, context: __SerdeContext): MetricCollectionType => { const contents: any = {}; - if (output["Metric"] !== undefined) { - contents.Metric = __expectString(output["Metric"]); + if (output[_Met] != null) { + contents[_Met] = __expectString(output[_Met]); } return contents; }; @@ -10242,20 +10110,20 @@ const de_MetricDataQueries = (output: any, context: __SerdeContext): MetricDataQ */ const de_MetricDataQuery = (output: any, context: __SerdeContext): MetricDataQuery => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Expression"] !== undefined) { - contents.Expression = __expectString(output["Expression"]); + if (output[_Ex] != null) { + contents[_Ex] = __expectString(output[_Ex]); } - if (output["MetricStat"] !== undefined) { - contents.MetricStat = de_MetricStat(output["MetricStat"], context); + if (output[_MSe] != null) { + contents[_MSe] = de_MetricStat(output[_MSe], context); } - if (output["Label"] !== undefined) { - contents.Label = __expectString(output["Label"]); + if (output[_L] != null) { + contents[_L] = __expectString(output[_L]); } - if (output["ReturnData"] !== undefined) { - contents.ReturnData = __parseBoolean(output["ReturnData"]); + if (output[_RD] != null) { + contents[_RD] = __parseBoolean(output[_RD]); } return contents; }; @@ -10265,11 +10133,11 @@ const de_MetricDataQuery = (output: any, context: __SerdeContext): MetricDataQue */ const de_MetricDimension = (output: any, context: __SerdeContext): MetricDimension => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -10290,8 +10158,8 @@ const de_MetricDimensions = (output: any, context: __SerdeContext): MetricDimens */ const de_MetricGranularityType = (output: any, context: __SerdeContext): MetricGranularityType => { const contents: any = {}; - if (output["Granularity"] !== undefined) { - contents.Granularity = __expectString(output["Granularity"]); + if (output[_G] != null) { + contents[_G] = __expectString(output[_G]); } return contents; }; @@ -10312,14 +10180,14 @@ const de_MetricGranularityTypes = (output: any, context: __SerdeContext): Metric */ const de_MetricStat = (output: any, context: __SerdeContext): MetricStat => { const contents: any = {}; - if (output["Metric"] !== undefined) { - contents.Metric = de_Metric(output["Metric"], context); + if (output[_Met] != null) { + contents[_Met] = de_Metric(output[_Met], context); } - if (output["Stat"] !== undefined) { - contents.Stat = __expectString(output["Stat"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Unit"] !== undefined) { - contents.Unit = __expectString(output["Unit"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } return contents; }; @@ -10329,11 +10197,11 @@ const de_MetricStat = (output: any, context: __SerdeContext): MetricStat => { */ const de_MixedInstancesPolicy = (output: any, context: __SerdeContext): MixedInstancesPolicy => { const contents: any = {}; - if (output["LaunchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplate(output["LaunchTemplate"], context); + if (output[_LT] != null) { + contents[_LT] = de_LaunchTemplate(output[_LT], context); } - if (output["InstancesDistribution"] !== undefined) { - contents.InstancesDistribution = de_InstancesDistribution(output["InstancesDistribution"], context); + if (output[_ID] != null) { + contents[_ID] = de_InstancesDistribution(output[_ID], context); } return contents; }; @@ -10343,11 +10211,11 @@ const de_MixedInstancesPolicy = (output: any, context: __SerdeContext): MixedIns */ const de_NetworkBandwidthGbpsRequest = (output: any, context: __SerdeContext): NetworkBandwidthGbpsRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseFloat(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseFloat(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseFloat(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseFloat(output[_Ma]) as number; } return contents; }; @@ -10357,11 +10225,11 @@ const de_NetworkBandwidthGbpsRequest = (output: any, context: __SerdeContext): N */ const de_NetworkInterfaceCountRequest = (output: any, context: __SerdeContext): NetworkInterfaceCountRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseInt32(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseInt32(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseInt32(output[_Ma]) as number; } return contents; }; @@ -10371,14 +10239,14 @@ const de_NetworkInterfaceCountRequest = (output: any, context: __SerdeContext): */ const de_NotificationConfiguration = (output: any, context: __SerdeContext): NotificationConfiguration => { const contents: any = {}; - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["TopicARN"] !== undefined) { - contents.TopicARN = __expectString(output["TopicARN"]); + if (output[_TARN] != null) { + contents[_TARN] = __expectString(output[_TARN]); } - if (output["NotificationType"] !== undefined) { - contents.NotificationType = __expectString(output["NotificationType"]); + if (output[_NTot] != null) { + contents[_NTot] = __expectString(output[_NTot]); } return contents; }; @@ -10411,12 +10279,12 @@ const de_Overrides = (output: any, context: __SerdeContext): LaunchTemplateOverr const de_PoliciesType = (output: any, context: __SerdeContext): PoliciesType => { const contents: any = {}; if (output.ScalingPolicies === "") { - contents.ScalingPolicies = []; - } else if (output["ScalingPolicies"] !== undefined && output["ScalingPolicies"]["member"] !== undefined) { - contents.ScalingPolicies = de_ScalingPolicies(__getArrayIfSingleItem(output["ScalingPolicies"]["member"]), context); + contents[_SPca] = []; + } else if (output[_SPca] != null && output[_SPca][_me] != null) { + contents[_SPca] = de_ScalingPolicies(__getArrayIfSingleItem(output[_SPca][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -10426,13 +10294,13 @@ const de_PoliciesType = (output: any, context: __SerdeContext): PoliciesType => */ const de_PolicyARNType = (output: any, context: __SerdeContext): PolicyARNType => { const contents: any = {}; - if (output["PolicyARN"] !== undefined) { - contents.PolicyARN = __expectString(output["PolicyARN"]); + if (output[_PARN] != null) { + contents[_PARN] = __expectString(output[_PARN]); } if (output.Alarms === "") { - contents.Alarms = []; - } else if (output["Alarms"] !== undefined && output["Alarms"]["member"] !== undefined) { - contents.Alarms = de_Alarms(__getArrayIfSingleItem(output["Alarms"]["member"]), context); + contents[_Al] = []; + } else if (output[_Al] != null && output[_Al][_me] != null) { + contents[_Al] = de_Alarms(__getArrayIfSingleItem(output[_Al][_me]), context); } return contents; }; @@ -10442,11 +10310,11 @@ const de_PolicyARNType = (output: any, context: __SerdeContext): PolicyARNType = */ const de_PredefinedMetricSpecification = (output: any, context: __SerdeContext): PredefinedMetricSpecification => { const contents: any = {}; - if (output["PredefinedMetricType"] !== undefined) { - contents.PredefinedMetricType = __expectString(output["PredefinedMetricType"]); + if (output[_PMT] != null) { + contents[_PMT] = __expectString(output[_PMT]); } - if (output["ResourceLabel"] !== undefined) { - contents.ResourceLabel = __expectString(output["ResourceLabel"]); + if (output[_RL] != null) { + contents[_RL] = __expectString(output[_RL]); } return contents; }; @@ -10457,24 +10325,21 @@ const de_PredefinedMetricSpecification = (output: any, context: __SerdeContext): const de_PredictiveScalingConfiguration = (output: any, context: __SerdeContext): PredictiveScalingConfiguration => { const contents: any = {}; if (output.MetricSpecifications === "") { - contents.MetricSpecifications = []; - } else if (output["MetricSpecifications"] !== undefined && output["MetricSpecifications"]["member"] !== undefined) { - contents.MetricSpecifications = de_PredictiveScalingMetricSpecifications( - __getArrayIfSingleItem(output["MetricSpecifications"]["member"]), - context - ); + contents[_MSet] = []; + } else if (output[_MSet] != null && output[_MSet][_me] != null) { + contents[_MSet] = de_PredictiveScalingMetricSpecifications(__getArrayIfSingleItem(output[_MSet][_me]), context); } - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } - if (output["SchedulingBufferTime"] !== undefined) { - contents.SchedulingBufferTime = __strictParseInt32(output["SchedulingBufferTime"]) as number; + if (output[_SBT] != null) { + contents[_SBT] = __strictParseInt32(output[_SBT]) as number; } - if (output["MaxCapacityBreachBehavior"] !== undefined) { - contents.MaxCapacityBreachBehavior = __expectString(output["MaxCapacityBreachBehavior"]); + if (output[_MCBB] != null) { + contents[_MCBB] = __expectString(output[_MCBB]); } - if (output["MaxCapacityBuffer"] !== undefined) { - contents.MaxCapacityBuffer = __strictParseInt32(output["MaxCapacityBuffer"]) as number; + if (output[_MCB] != null) { + contents[_MCB] = __strictParseInt32(output[_MCB]) as number; } return contents; }; @@ -10488,12 +10353,9 @@ const de_PredictiveScalingCustomizedCapacityMetric = ( ): PredictiveScalingCustomizedCapacityMetric => { const contents: any = {}; if (output.MetricDataQueries === "") { - contents.MetricDataQueries = []; - } else if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) { - contents.MetricDataQueries = de_MetricDataQueries( - __getArrayIfSingleItem(output["MetricDataQueries"]["member"]), - context - ); + contents[_MDQ] = []; + } else if (output[_MDQ] != null && output[_MDQ][_me] != null) { + contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_me]), context); } return contents; }; @@ -10507,12 +10369,9 @@ const de_PredictiveScalingCustomizedLoadMetric = ( ): PredictiveScalingCustomizedLoadMetric => { const contents: any = {}; if (output.MetricDataQueries === "") { - contents.MetricDataQueries = []; - } else if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) { - contents.MetricDataQueries = de_MetricDataQueries( - __getArrayIfSingleItem(output["MetricDataQueries"]["member"]), - context - ); + contents[_MDQ] = []; + } else if (output[_MDQ] != null && output[_MDQ][_me] != null) { + contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_me]), context); } return contents; }; @@ -10526,12 +10385,9 @@ const de_PredictiveScalingCustomizedScalingMetric = ( ): PredictiveScalingCustomizedScalingMetric => { const contents: any = {}; if (output.MetricDataQueries === "") { - contents.MetricDataQueries = []; - } else if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) { - contents.MetricDataQueries = de_MetricDataQueries( - __getArrayIfSingleItem(output["MetricDataQueries"]["member"]), - context - ); + contents[_MDQ] = []; + } else if (output[_MDQ] != null && output[_MDQ][_me] != null) { + contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_me]), context); } return contents; }; @@ -10566,44 +10422,26 @@ const de_PredictiveScalingMetricSpecification = ( context: __SerdeContext ): PredictiveScalingMetricSpecification => { const contents: any = {}; - if (output["TargetValue"] !== undefined) { - contents.TargetValue = __strictParseFloat(output["TargetValue"]) as number; + if (output[_TV] != null) { + contents[_TV] = __strictParseFloat(output[_TV]) as number; } - if (output["PredefinedMetricPairSpecification"] !== undefined) { - contents.PredefinedMetricPairSpecification = de_PredictiveScalingPredefinedMetricPair( - output["PredefinedMetricPairSpecification"], - context - ); + if (output[_PMPS] != null) { + contents[_PMPS] = de_PredictiveScalingPredefinedMetricPair(output[_PMPS], context); } - if (output["PredefinedScalingMetricSpecification"] !== undefined) { - contents.PredefinedScalingMetricSpecification = de_PredictiveScalingPredefinedScalingMetric( - output["PredefinedScalingMetricSpecification"], - context - ); + if (output[_PSMS] != null) { + contents[_PSMS] = de_PredictiveScalingPredefinedScalingMetric(output[_PSMS], context); } - if (output["PredefinedLoadMetricSpecification"] !== undefined) { - contents.PredefinedLoadMetricSpecification = de_PredictiveScalingPredefinedLoadMetric( - output["PredefinedLoadMetricSpecification"], - context - ); + if (output[_PLMS] != null) { + contents[_PLMS] = de_PredictiveScalingPredefinedLoadMetric(output[_PLMS], context); } - if (output["CustomizedScalingMetricSpecification"] !== undefined) { - contents.CustomizedScalingMetricSpecification = de_PredictiveScalingCustomizedScalingMetric( - output["CustomizedScalingMetricSpecification"], - context - ); + if (output[_CSMS] != null) { + contents[_CSMS] = de_PredictiveScalingCustomizedScalingMetric(output[_CSMS], context); } - if (output["CustomizedLoadMetricSpecification"] !== undefined) { - contents.CustomizedLoadMetricSpecification = de_PredictiveScalingCustomizedLoadMetric( - output["CustomizedLoadMetricSpecification"], - context - ); + if (output[_CLMS] != null) { + contents[_CLMS] = de_PredictiveScalingCustomizedLoadMetric(output[_CLMS], context); } - if (output["CustomizedCapacityMetricSpecification"] !== undefined) { - contents.CustomizedCapacityMetricSpecification = de_PredictiveScalingCustomizedCapacityMetric( - output["CustomizedCapacityMetricSpecification"], - context - ); + if (output[_CCMS] != null) { + contents[_CCMS] = de_PredictiveScalingCustomizedCapacityMetric(output[_CCMS], context); } return contents; }; @@ -10630,11 +10468,11 @@ const de_PredictiveScalingPredefinedLoadMetric = ( context: __SerdeContext ): PredictiveScalingPredefinedLoadMetric => { const contents: any = {}; - if (output["PredefinedMetricType"] !== undefined) { - contents.PredefinedMetricType = __expectString(output["PredefinedMetricType"]); + if (output[_PMT] != null) { + contents[_PMT] = __expectString(output[_PMT]); } - if (output["ResourceLabel"] !== undefined) { - contents.ResourceLabel = __expectString(output["ResourceLabel"]); + if (output[_RL] != null) { + contents[_RL] = __expectString(output[_RL]); } return contents; }; @@ -10647,11 +10485,11 @@ const de_PredictiveScalingPredefinedMetricPair = ( context: __SerdeContext ): PredictiveScalingPredefinedMetricPair => { const contents: any = {}; - if (output["PredefinedMetricType"] !== undefined) { - contents.PredefinedMetricType = __expectString(output["PredefinedMetricType"]); + if (output[_PMT] != null) { + contents[_PMT] = __expectString(output[_PMT]); } - if (output["ResourceLabel"] !== undefined) { - contents.ResourceLabel = __expectString(output["ResourceLabel"]); + if (output[_RL] != null) { + contents[_RL] = __expectString(output[_RL]); } return contents; }; @@ -10664,11 +10502,11 @@ const de_PredictiveScalingPredefinedScalingMetric = ( context: __SerdeContext ): PredictiveScalingPredefinedScalingMetric => { const contents: any = {}; - if (output["PredefinedMetricType"] !== undefined) { - contents.PredefinedMetricType = __expectString(output["PredefinedMetricType"]); + if (output[_PMT] != null) { + contents[_PMT] = __expectString(output[_PMT]); } - if (output["ResourceLabel"] !== undefined) { - contents.ResourceLabel = __expectString(output["ResourceLabel"]); + if (output[_RL] != null) { + contents[_RL] = __expectString(output[_RL]); } return contents; }; @@ -10690,9 +10528,9 @@ const de_Processes = (output: any, context: __SerdeContext): ProcessType[] => { const de_ProcessesType = (output: any, context: __SerdeContext): ProcessesType => { const contents: any = {}; if (output.Processes === "") { - contents.Processes = []; - } else if (output["Processes"] !== undefined && output["Processes"]["member"] !== undefined) { - contents.Processes = de_Processes(__getArrayIfSingleItem(output["Processes"]["member"]), context); + contents[_Pro] = []; + } else if (output[_Pro] != null && output[_Pro][_me] != null) { + contents[_Pro] = de_Processes(__getArrayIfSingleItem(output[_Pro][_me]), context); } return contents; }; @@ -10702,8 +10540,8 @@ const de_ProcessesType = (output: any, context: __SerdeContext): ProcessesType = */ const de_ProcessType = (output: any, context: __SerdeContext): ProcessType => { const contents: any = {}; - if (output["ProcessName"] !== undefined) { - contents.ProcessName = __expectString(output["ProcessName"]); + if (output[_PNr] != null) { + contents[_PNr] = __expectString(output[_PNr]); } return contents; }; @@ -10740,40 +10578,37 @@ const de_RecordLifecycleActionHeartbeatAnswer = ( */ const de_RefreshPreferences = (output: any, context: __SerdeContext): RefreshPreferences => { const contents: any = {}; - if (output["MinHealthyPercentage"] !== undefined) { - contents.MinHealthyPercentage = __strictParseInt32(output["MinHealthyPercentage"]) as number; + if (output[_MHP] != null) { + contents[_MHP] = __strictParseInt32(output[_MHP]) as number; } - if (output["InstanceWarmup"] !== undefined) { - contents.InstanceWarmup = __strictParseInt32(output["InstanceWarmup"]) as number; + if (output[_IW] != null) { + contents[_IW] = __strictParseInt32(output[_IW]) as number; } if (output.CheckpointPercentages === "") { - contents.CheckpointPercentages = []; - } else if (output["CheckpointPercentages"] !== undefined && output["CheckpointPercentages"]["member"] !== undefined) { - contents.CheckpointPercentages = de_CheckpointPercentages( - __getArrayIfSingleItem(output["CheckpointPercentages"]["member"]), - context - ); + contents[_CP] = []; + } else if (output[_CP] != null && output[_CP][_me] != null) { + contents[_CP] = de_CheckpointPercentages(__getArrayIfSingleItem(output[_CP][_me]), context); } - if (output["CheckpointDelay"] !== undefined) { - contents.CheckpointDelay = __strictParseInt32(output["CheckpointDelay"]) as number; + if (output[_CD] != null) { + contents[_CD] = __strictParseInt32(output[_CD]) as number; } - if (output["SkipMatching"] !== undefined) { - contents.SkipMatching = __parseBoolean(output["SkipMatching"]); + if (output[_SM] != null) { + contents[_SM] = __parseBoolean(output[_SM]); } - if (output["AutoRollback"] !== undefined) { - contents.AutoRollback = __parseBoolean(output["AutoRollback"]); + if (output[_AR] != null) { + contents[_AR] = __parseBoolean(output[_AR]); } - if (output["ScaleInProtectedInstances"] !== undefined) { - contents.ScaleInProtectedInstances = __expectString(output["ScaleInProtectedInstances"]); + if (output[_SIPI] != null) { + contents[_SIPI] = __expectString(output[_SIPI]); } - if (output["StandbyInstances"] !== undefined) { - contents.StandbyInstances = __expectString(output["StandbyInstances"]); + if (output[_SIt] != null) { + contents[_SIt] = __expectString(output[_SIt]); } - if (output["AlarmSpecification"] !== undefined) { - contents.AlarmSpecification = de_AlarmSpecification(output["AlarmSpecification"], context); + if (output[_AS] != null) { + contents[_AS] = de_AlarmSpecification(output[_AS], context); } - if (output["MaxHealthyPercentage"] !== undefined) { - contents.MaxHealthyPercentage = __strictParseInt32(output["MaxHealthyPercentage"]) as number; + if (output[_MHPa] != null) { + contents[_MHPa] = __strictParseInt32(output[_MHPa]) as number; } return contents; }; @@ -10783,8 +10618,8 @@ const de_RefreshPreferences = (output: any, context: __SerdeContext): RefreshPre */ const de_ResourceContentionFault = (output: any, context: __SerdeContext): ResourceContentionFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10794,8 +10629,8 @@ const de_ResourceContentionFault = (output: any, context: __SerdeContext): Resou */ const de_ResourceInUseFault = (output: any, context: __SerdeContext): ResourceInUseFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10805,23 +10640,20 @@ const de_ResourceInUseFault = (output: any, context: __SerdeContext): ResourceIn */ const de_RollbackDetails = (output: any, context: __SerdeContext): RollbackDetails => { const contents: any = {}; - if (output["RollbackReason"] !== undefined) { - contents.RollbackReason = __expectString(output["RollbackReason"]); + if (output[_RR] != null) { + contents[_RR] = __expectString(output[_RR]); } - if (output["RollbackStartTime"] !== undefined) { - contents.RollbackStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RollbackStartTime"])); + if (output[_RST] != null) { + contents[_RST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RST])); } - if (output["PercentageCompleteOnRollback"] !== undefined) { - contents.PercentageCompleteOnRollback = __strictParseInt32(output["PercentageCompleteOnRollback"]) as number; + if (output[_PCOR] != null) { + contents[_PCOR] = __strictParseInt32(output[_PCOR]) as number; } - if (output["InstancesToUpdateOnRollback"] !== undefined) { - contents.InstancesToUpdateOnRollback = __strictParseInt32(output["InstancesToUpdateOnRollback"]) as number; + if (output[_ITUOR] != null) { + contents[_ITUOR] = __strictParseInt32(output[_ITUOR]) as number; } - if (output["ProgressDetailsOnRollback"] !== undefined) { - contents.ProgressDetailsOnRollback = de_InstanceRefreshProgressDetails( - output["ProgressDetailsOnRollback"], - context - ); + if (output[_PDOR] != null) { + contents[_PDOR] = de_InstanceRefreshProgressDetails(output[_PDOR], context); } return contents; }; @@ -10831,8 +10663,8 @@ const de_RollbackDetails = (output: any, context: __SerdeContext): RollbackDetai */ const de_RollbackInstanceRefreshAnswer = (output: any, context: __SerdeContext): RollbackInstanceRefreshAnswer => { const contents: any = {}; - if (output["InstanceRefreshId"] !== undefined) { - contents.InstanceRefreshId = __expectString(output["InstanceRefreshId"]); + if (output[_IRIn] != null) { + contents[_IRIn] = __expectString(output[_IRIn]); } return contents; }; @@ -10842,8 +10674,8 @@ const de_RollbackInstanceRefreshAnswer = (output: any, context: __SerdeContext): */ const de_ScalingActivityInProgressFault = (output: any, context: __SerdeContext): ScalingActivityInProgressFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10864,63 +10696,57 @@ const de_ScalingPolicies = (output: any, context: __SerdeContext): ScalingPolicy */ const de_ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy => { const contents: any = {}; - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyARN"] !== undefined) { - contents.PolicyARN = __expectString(output["PolicyARN"]); + if (output[_PARN] != null) { + contents[_PARN] = __expectString(output[_PARN]); } - if (output["PolicyType"] !== undefined) { - contents.PolicyType = __expectString(output["PolicyType"]); + if (output[_PTol] != null) { + contents[_PTol] = __expectString(output[_PTol]); } - if (output["AdjustmentType"] !== undefined) { - contents.AdjustmentType = __expectString(output["AdjustmentType"]); + if (output[_ATd] != null) { + contents[_ATd] = __expectString(output[_ATd]); } - if (output["MinAdjustmentStep"] !== undefined) { - contents.MinAdjustmentStep = __strictParseInt32(output["MinAdjustmentStep"]) as number; + if (output[_MAS] != null) { + contents[_MAS] = __strictParseInt32(output[_MAS]) as number; } - if (output["MinAdjustmentMagnitude"] !== undefined) { - contents.MinAdjustmentMagnitude = __strictParseInt32(output["MinAdjustmentMagnitude"]) as number; + if (output[_MAM] != null) { + contents[_MAM] = __strictParseInt32(output[_MAM]) as number; } - if (output["ScalingAdjustment"] !== undefined) { - contents.ScalingAdjustment = __strictParseInt32(output["ScalingAdjustment"]) as number; + if (output[_SA] != null) { + contents[_SA] = __strictParseInt32(output[_SA]) as number; } - if (output["Cooldown"] !== undefined) { - contents.Cooldown = __strictParseInt32(output["Cooldown"]) as number; + if (output[_Co] != null) { + contents[_Co] = __strictParseInt32(output[_Co]) as number; } if (output.StepAdjustments === "") { - contents.StepAdjustments = []; - } else if (output["StepAdjustments"] !== undefined && output["StepAdjustments"]["member"] !== undefined) { - contents.StepAdjustments = de_StepAdjustments(__getArrayIfSingleItem(output["StepAdjustments"]["member"]), context); + contents[_SAt] = []; + } else if (output[_SAt] != null && output[_SAt][_me] != null) { + contents[_SAt] = de_StepAdjustments(__getArrayIfSingleItem(output[_SAt][_me]), context); } - if (output["MetricAggregationType"] !== undefined) { - contents.MetricAggregationType = __expectString(output["MetricAggregationType"]); + if (output[_MAT] != null) { + contents[_MAT] = __expectString(output[_MAT]); } - if (output["EstimatedInstanceWarmup"] !== undefined) { - contents.EstimatedInstanceWarmup = __strictParseInt32(output["EstimatedInstanceWarmup"]) as number; + if (output[_EIW] != null) { + contents[_EIW] = __strictParseInt32(output[_EIW]) as number; } if (output.Alarms === "") { - contents.Alarms = []; - } else if (output["Alarms"] !== undefined && output["Alarms"]["member"] !== undefined) { - contents.Alarms = de_Alarms(__getArrayIfSingleItem(output["Alarms"]["member"]), context); + contents[_Al] = []; + } else if (output[_Al] != null && output[_Al][_me] != null) { + contents[_Al] = de_Alarms(__getArrayIfSingleItem(output[_Al][_me]), context); } - if (output["TargetTrackingConfiguration"] !== undefined) { - contents.TargetTrackingConfiguration = de_TargetTrackingConfiguration( - output["TargetTrackingConfiguration"], - context - ); + if (output[_TTC] != null) { + contents[_TTC] = de_TargetTrackingConfiguration(output[_TTC], context); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_Ena] != null) { + contents[_Ena] = __parseBoolean(output[_Ena]); } - if (output["PredictiveScalingConfiguration"] !== undefined) { - contents.PredictiveScalingConfiguration = de_PredictiveScalingConfiguration( - output["PredictiveScalingConfiguration"], - context - ); + if (output[_PSC] != null) { + contents[_PSC] = de_PredictiveScalingConfiguration(output[_PSC], context); } return contents; }; @@ -10931,18 +10757,12 @@ const de_ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy = const de_ScheduledActionsType = (output: any, context: __SerdeContext): ScheduledActionsType => { const contents: any = {}; if (output.ScheduledUpdateGroupActions === "") { - contents.ScheduledUpdateGroupActions = []; - } else if ( - output["ScheduledUpdateGroupActions"] !== undefined && - output["ScheduledUpdateGroupActions"]["member"] !== undefined - ) { - contents.ScheduledUpdateGroupActions = de_ScheduledUpdateGroupActions( - __getArrayIfSingleItem(output["ScheduledUpdateGroupActions"]["member"]), - context - ); + contents[_SUGA] = []; + } else if (output[_SUGA] != null && output[_SUGA][_me] != null) { + contents[_SUGA] = de_ScheduledUpdateGroupActions(__getArrayIfSingleItem(output[_SUGA][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -10952,38 +10772,38 @@ const de_ScheduledActionsType = (output: any, context: __SerdeContext): Schedule */ const de_ScheduledUpdateGroupAction = (output: any, context: __SerdeContext): ScheduledUpdateGroupAction => { const contents: any = {}; - if (output["AutoScalingGroupName"] !== undefined) { - contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]); + if (output[_ASGN] != null) { + contents[_ASGN] = __expectString(output[_ASGN]); } - if (output["ScheduledActionName"] !== undefined) { - contents.ScheduledActionName = __expectString(output["ScheduledActionName"]); + if (output[_SANc] != null) { + contents[_SANc] = __expectString(output[_SANc]); } - if (output["ScheduledActionARN"] !== undefined) { - contents.ScheduledActionARN = __expectString(output["ScheduledActionARN"]); + if (output[_SAARN] != null) { + contents[_SAARN] = __expectString(output[_SAARN]); } - if (output["Time"] !== undefined) { - contents.Time = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Time"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_ST] != null) { + contents[_ST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ST])); } - if (output["EndTime"] !== undefined) { - contents.EndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTime"])); + if (output[_ET] != null) { + contents[_ET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ET])); } - if (output["Recurrence"] !== undefined) { - contents.Recurrence = __expectString(output["Recurrence"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } - if (output["MinSize"] !== undefined) { - contents.MinSize = __strictParseInt32(output["MinSize"]) as number; + if (output[_MS] != null) { + contents[_MS] = __strictParseInt32(output[_MS]) as number; } - if (output["MaxSize"] !== undefined) { - contents.MaxSize = __strictParseInt32(output["MaxSize"]) as number; + if (output[_MSa] != null) { + contents[_MSa] = __strictParseInt32(output[_MSa]) as number; } - if (output["DesiredCapacity"] !== undefined) { - contents.DesiredCapacity = __strictParseInt32(output["DesiredCapacity"]) as number; + if (output[_DC] != null) { + contents[_DC] = __strictParseInt32(output[_DC]) as number; } - if (output["TimeZone"] !== undefined) { - contents.TimeZone = __expectString(output["TimeZone"]); + if (output[_TZ] != null) { + contents[_TZ] = __expectString(output[_TZ]); } return contents; }; @@ -11015,8 +10835,8 @@ const de_SecurityGroups = (output: any, context: __SerdeContext): string[] => { */ const de_ServiceLinkedRoleFailure = (output: any, context: __SerdeContext): ServiceLinkedRoleFailure => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11034,8 +10854,8 @@ const de_SetInstanceProtectionAnswer = (output: any, context: __SerdeContext): S */ const de_StartInstanceRefreshAnswer = (output: any, context: __SerdeContext): StartInstanceRefreshAnswer => { const contents: any = {}; - if (output["InstanceRefreshId"] !== undefined) { - contents.InstanceRefreshId = __expectString(output["InstanceRefreshId"]); + if (output[_IRIn] != null) { + contents[_IRIn] = __expectString(output[_IRIn]); } return contents; }; @@ -11045,14 +10865,14 @@ const de_StartInstanceRefreshAnswer = (output: any, context: __SerdeContext): St */ const de_StepAdjustment = (output: any, context: __SerdeContext): StepAdjustment => { const contents: any = {}; - if (output["MetricIntervalLowerBound"] !== undefined) { - contents.MetricIntervalLowerBound = __strictParseFloat(output["MetricIntervalLowerBound"]) as number; + if (output[_MILB] != null) { + contents[_MILB] = __strictParseFloat(output[_MILB]) as number; } - if (output["MetricIntervalUpperBound"] !== undefined) { - contents.MetricIntervalUpperBound = __strictParseFloat(output["MetricIntervalUpperBound"]) as number; + if (output[_MIUB] != null) { + contents[_MIUB] = __strictParseFloat(output[_MIUB]) as number; } - if (output["ScalingAdjustment"] !== undefined) { - contents.ScalingAdjustment = __strictParseInt32(output["ScalingAdjustment"]) as number; + if (output[_SA] != null) { + contents[_SA] = __strictParseInt32(output[_SA]) as number; } return contents; }; @@ -11073,11 +10893,11 @@ const de_StepAdjustments = (output: any, context: __SerdeContext): StepAdjustmen */ const de_SuspendedProcess = (output: any, context: __SerdeContext): SuspendedProcess => { const contents: any = {}; - if (output["ProcessName"] !== undefined) { - contents.ProcessName = __expectString(output["ProcessName"]); + if (output[_PNr] != null) { + contents[_PNr] = __expectString(output[_PNr]); } - if (output["SuspensionReason"] !== undefined) { - contents.SuspensionReason = __expectString(output["SuspensionReason"]); + if (output[_SRu] != null) { + contents[_SRu] = __expectString(output[_SRu]); } return contents; }; @@ -11098,20 +10918,20 @@ const de_SuspendedProcesses = (output: any, context: __SerdeContext): SuspendedP */ const de_TagDescription = (output: any, context: __SerdeContext): TagDescription => { const contents: any = {}; - if (output["ResourceId"] !== undefined) { - contents.ResourceId = __expectString(output["ResourceId"]); + if (output[_RIe] != null) { + contents[_RIe] = __expectString(output[_RIe]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RT] != null) { + contents[_RT] = __expectString(output[_RT]); } - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } - if (output["PropagateAtLaunch"] !== undefined) { - contents.PropagateAtLaunch = __parseBoolean(output["PropagateAtLaunch"]); + if (output[_PAL] != null) { + contents[_PAL] = __parseBoolean(output[_PAL]); } return contents; }; @@ -11133,12 +10953,12 @@ const de_TagDescriptionList = (output: any, context: __SerdeContext): TagDescrip const de_TagsType = (output: any, context: __SerdeContext): TagsType => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_TagDescriptionList(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_TagDescriptionList(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -11159,23 +10979,17 @@ const de_TargetGroupARNs = (output: any, context: __SerdeContext): string[] => { */ const de_TargetTrackingConfiguration = (output: any, context: __SerdeContext): TargetTrackingConfiguration => { const contents: any = {}; - if (output["PredefinedMetricSpecification"] !== undefined) { - contents.PredefinedMetricSpecification = de_PredefinedMetricSpecification( - output["PredefinedMetricSpecification"], - context - ); + if (output[_PMS] != null) { + contents[_PMS] = de_PredefinedMetricSpecification(output[_PMS], context); } - if (output["CustomizedMetricSpecification"] !== undefined) { - contents.CustomizedMetricSpecification = de_CustomizedMetricSpecification( - output["CustomizedMetricSpecification"], - context - ); + if (output[_CMS] != null) { + contents[_CMS] = de_CustomizedMetricSpecification(output[_CMS], context); } - if (output["TargetValue"] !== undefined) { - contents.TargetValue = __strictParseFloat(output["TargetValue"]) as number; + if (output[_TV] != null) { + contents[_TV] = __strictParseFloat(output[_TV]) as number; } - if (output["DisableScaleIn"] !== undefined) { - contents.DisableScaleIn = __parseBoolean(output["DisableScaleIn"]); + if (output[_DSI] != null) { + contents[_DSI] = __parseBoolean(output[_DSI]); } return contents; }; @@ -11196,20 +11010,20 @@ const de_TargetTrackingMetricDataQueries = (output: any, context: __SerdeContext */ const de_TargetTrackingMetricDataQuery = (output: any, context: __SerdeContext): TargetTrackingMetricDataQuery => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Expression"] !== undefined) { - contents.Expression = __expectString(output["Expression"]); + if (output[_Ex] != null) { + contents[_Ex] = __expectString(output[_Ex]); } - if (output["MetricStat"] !== undefined) { - contents.MetricStat = de_TargetTrackingMetricStat(output["MetricStat"], context); + if (output[_MSe] != null) { + contents[_MSe] = de_TargetTrackingMetricStat(output[_MSe], context); } - if (output["Label"] !== undefined) { - contents.Label = __expectString(output["Label"]); + if (output[_L] != null) { + contents[_L] = __expectString(output[_L]); } - if (output["ReturnData"] !== undefined) { - contents.ReturnData = __parseBoolean(output["ReturnData"]); + if (output[_RD] != null) { + contents[_RD] = __parseBoolean(output[_RD]); } return contents; }; @@ -11219,14 +11033,14 @@ const de_TargetTrackingMetricDataQuery = (output: any, context: __SerdeContext): */ const de_TargetTrackingMetricStat = (output: any, context: __SerdeContext): TargetTrackingMetricStat => { const contents: any = {}; - if (output["Metric"] !== undefined) { - contents.Metric = de_Metric(output["Metric"], context); + if (output[_Met] != null) { + contents[_Met] = de_Metric(output[_Met], context); } - if (output["Stat"] !== undefined) { - contents.Stat = __expectString(output["Stat"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Unit"] !== undefined) { - contents.Unit = __expectString(output["Unit"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } return contents; }; @@ -11247,11 +11061,11 @@ const de_TerminationPolicies = (output: any, context: __SerdeContext): string[] */ const de_TotalLocalStorageGBRequest = (output: any, context: __SerdeContext): TotalLocalStorageGBRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseFloat(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseFloat(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseFloat(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseFloat(output[_Ma]) as number; } return contents; }; @@ -11261,11 +11075,11 @@ const de_TotalLocalStorageGBRequest = (output: any, context: __SerdeContext): To */ const de_TrafficSourceIdentifier = (output: any, context: __SerdeContext): TrafficSourceIdentifier => { const contents: any = {}; - if (output["Identifier"] !== undefined) { - contents.Identifier = __expectString(output["Identifier"]); + if (output[_Ide] != null) { + contents[_Ide] = __expectString(output[_Ide]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_Ty] != null) { + contents[_Ty] = __expectString(output[_Ty]); } return contents; }; @@ -11286,17 +11100,17 @@ const de_TrafficSources = (output: any, context: __SerdeContext): TrafficSourceI */ const de_TrafficSourceState = (output: any, context: __SerdeContext): TrafficSourceState => { const contents: any = {}; - if (output["TrafficSource"] !== undefined) { - contents.TrafficSource = __expectString(output["TrafficSource"]); + if (output[_TSr] != null) { + contents[_TSr] = __expectString(output[_TSr]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } - if (output["Identifier"] !== undefined) { - contents.Identifier = __expectString(output["Identifier"]); + if (output[_Ide] != null) { + contents[_Ide] = __expectString(output[_Ide]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_Ty] != null) { + contents[_Ty] = __expectString(output[_Ty]); } return contents; }; @@ -11317,11 +11131,11 @@ const de_TrafficSourceStates = (output: any, context: __SerdeContext): TrafficSo */ const de_VCpuCountRequest = (output: any, context: __SerdeContext): VCpuCountRequest => { const contents: any = {}; - if (output["Min"] !== undefined) { - contents.Min = __strictParseInt32(output["Min"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseInt32(output["Max"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseInt32(output[_Ma]) as number; } return contents; }; @@ -11331,20 +11145,20 @@ const de_VCpuCountRequest = (output: any, context: __SerdeContext): VCpuCountReq */ const de_WarmPoolConfiguration = (output: any, context: __SerdeContext): WarmPoolConfiguration => { const contents: any = {}; - if (output["MaxGroupPreparedCapacity"] !== undefined) { - contents.MaxGroupPreparedCapacity = __strictParseInt32(output["MaxGroupPreparedCapacity"]) as number; + if (output[_MGPC] != null) { + contents[_MGPC] = __strictParseInt32(output[_MGPC]) as number; } - if (output["MinSize"] !== undefined) { - contents.MinSize = __strictParseInt32(output["MinSize"]) as number; + if (output[_MS] != null) { + contents[_MS] = __strictParseInt32(output[_MS]) as number; } - if (output["PoolState"] !== undefined) { - contents.PoolState = __expectString(output["PoolState"]); + if (output[_PS] != null) { + contents[_PS] = __expectString(output[_PS]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["InstanceReusePolicy"] !== undefined) { - contents.InstanceReusePolicy = de_InstanceReusePolicy(output["InstanceReusePolicy"], context); + if (output[_IRP] != null) { + contents[_IRP] = de_InstanceReusePolicy(output[_IRP], context); } return contents; }; @@ -11390,6 +11204,364 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2011-01-01"; +const _A = "Action"; +const _AARN = "AlarmARN"; +const _AC = "AcceleratorCount"; +const _AI = "AttachInstances"; +const _AIT = "AllowedInstanceTypes"; +const _AIc = "ActivityIds"; +const _AIct = "ActivityId"; +const _ALB = "AttachLoadBalancers"; +const _ALBTG = "AttachLoadBalancerTargetGroups"; +const _AM = "AcceleratorManufacturers"; +const _AN = "AcceleratorNames"; +const _ANl = "AlarmName"; +const _APIA = "AssociatePublicIpAddress"; +const _AR = "AutoRollback"; +const _AS = "AlarmSpecification"; +const _ASG = "AutoScalingGroups"; +const _ASGARN = "AutoScalingGroupARN"; +const _ASGN = "AutoScalingGroupName"; +const _ASGNu = "AutoScalingGroupNames"; +const _ASGS = "AutoScalingGroupState"; +const _ASI = "AutoScalingInstances"; +const _ASNT = "AutoScalingNotificationTypes"; +const _AT = "AcceleratorTypes"; +const _ATMMB = "AcceleratorTotalMemoryMiB"; +const _ATS = "AttachTrafficSources"; +const _ATd = "AdjustmentType"; +const _ATdj = "AdjustmentTypes"; +const _AZ = "AvailabilityZones"; +const _AZv = "AvailabilityZone"; +const _Ac = "Activities"; +const _Act = "Activity"; +const _Al = "Alarms"; +const _BDM = "BlockDeviceMappings"; +const _BDSA = "BatchDeleteScheduledAction"; +const _BEBM = "BaselineEbsBandwidthMbps"; +const _BM = "BareMetal"; +const _BP = "BurstablePerformance"; +const _BPSUGA = "BatchPutScheduledUpdateGroupAction"; +const _BT = "BreachThreshold"; +const _C = "Context"; +const _CASG = "CreateAutoScalingGroup"; +const _CCMS = "CustomizedCapacityMetricSpecification"; +const _CD = "CheckpointDelay"; +const _CF = "CapacityForecast"; +const _CIR = "CancelInstanceRefresh"; +const _CLA = "CompleteLifecycleAction"; +const _CLC = "CreateLaunchConfiguration"; +const _CLMS = "CustomizedLoadMetricSpecification"; +const _CLVPCI = "ClassicLinkVPCId"; +const _CLVPCSG = "ClassicLinkVPCSecurityGroups"; +const _CM = "CpuManufacturers"; +const _CMS = "CustomizedMetricSpecification"; +const _COUT = "CreateOrUpdateTags"; +const _CP = "CheckpointPercentages"; +const _CR = "CapacityRebalance"; +const _CSMS = "CustomizedScalingMetricSpecification"; +const _CT = "CreatedTime"; +const _Ca = "Cause"; +const _Co = "Cooldown"; +const _D = "Dimensions"; +const _DAL = "DescribeAccountLimits"; +const _DASG = "DeleteAutoScalingGroup"; +const _DASGe = "DescribeAutoScalingGroups"; +const _DASI = "DescribeAutoScalingInstances"; +const _DASNT = "DescribeAutoScalingNotificationTypes"; +const _DAT = "DescribeAdjustmentTypes"; +const _DC = "DesiredCapacity"; +const _DCT = "DesiredCapacityType"; +const _DCe = "DefaultCooldown"; +const _DCes = "DesiredConfiguration"; +const _DI = "DetachInstances"; +const _DIR = "DescribeInstanceRefreshes"; +const _DIW = "DefaultInstanceWarmup"; +const _DLB = "DescribeLoadBalancers"; +const _DLBTG = "DescribeLoadBalancerTargetGroups"; +const _DLBTGe = "DetachLoadBalancerTargetGroups"; +const _DLBe = "DetachLoadBalancers"; +const _DLC = "DeleteLaunchConfiguration"; +const _DLCe = "DescribeLaunchConfigurations"; +const _DLH = "DeleteLifecycleHook"; +const _DLHT = "DescribeLifecycleHookTypes"; +const _DLHe = "DescribeLifecycleHooks"; +const _DMC = "DisableMetricsCollection"; +const _DMCT = "DescribeMetricCollectionTypes"; +const _DN = "DeviceName"; +const _DNC = "DeleteNotificationConfiguration"; +const _DNCe = "DescribeNotificationConfigurations"; +const _DOT = "DeleteOnTermination"; +const _DP = "DeletePolicy"; +const _DPe = "DescribePolicies"; +const _DR = "DefaultResult"; +const _DSA = "DeleteScheduledAction"; +const _DSAe = "DescribeScalingActivities"; +const _DSAes = "DescribeScheduledActions"; +const _DSI = "DisableScaleIn"; +const _DSPT = "DescribeScalingProcessTypes"; +const _DT = "DeleteTags"; +const _DTPT = "DescribeTerminationPolicyTypes"; +const _DTS = "DescribeTrafficSources"; +const _DTSe = "DetachTrafficSources"; +const _DTe = "DescribeTags"; +const _DWP = "DeleteWarmPool"; +const _DWPe = "DescribeWarmPool"; +const _De = "Description"; +const _Det = "Details"; +const _E = "Ebs"; +const _EC = "ErrorCode"; +const _EIT = "ExcludedInstanceTypes"; +const _EIW = "EstimatedInstanceWarmup"; +const _EM = "EnabledMetrics"; +const _EMC = "EnableMetricsCollection"; +const _EMr = "ErrorMessage"; +const _EO = "EbsOptimized"; +const _EP = "ExecutePolicy"; +const _ES = "EnterStandby"; +const _ESx = "ExitStandby"; +const _ET = "EndTime"; +const _En = "Encrypted"; +const _Ena = "Enabled"; +const _Ex = "Expression"; +const _F = "Filters"; +const _FD = "ForceDelete"; +const _FSA = "FailedScheduledActions"; +const _FSUGA = "FailedScheduledUpdateGroupActions"; +const _G = "Granularity"; +const _GPSF = "GetPredictiveScalingForecast"; +const _GT = "GlobalTimeout"; +const _Gr = "Granularities"; +const _HC = "HonorCooldown"; +const _HCGP = "HealthCheckGracePeriod"; +const _HCT = "HealthCheckType"; +const _HE = "HttpEndpoint"; +const _HPRHL = "HttpPutResponseHopLimit"; +const _HS = "HealthStatus"; +const _HT = "HttpTokens"; +const _HTe = "HeartbeatTimeout"; +const _I = "Iops"; +const _ID = "InstancesDistribution"; +const _IDG = "IncludeDeletedGroups"; +const _IG = "InstanceGenerations"; +const _II = "InstanceIds"; +const _IIP = "IamInstanceProfile"; +const _IIm = "ImageId"; +const _IIn = "InstanceId"; +const _IM = "InstanceMonitoring"; +const _IMP = "InstanceMaintenancePolicy"; +const _IR = "InstanceRequirements"; +const _IRI = "InstanceRefreshIds"; +const _IRIn = "InstanceRefreshId"; +const _IRP = "InstanceReusePolicy"; +const _IRn = "InstanceRefreshes"; +const _IT = "InstanceType"; +const _ITU = "InstancesToUpdate"; +const _ITUOR = "InstancesToUpdateOnRollback"; +const _IW = "InstanceWarmup"; +const _Id = "Id"; +const _Ide = "Identifier"; +const _In = "Instances"; +const _K = "Key"; +const _KI = "KernelId"; +const _KN = "KeyName"; +const _L = "Label"; +const _LAR = "LifecycleActionResult"; +const _LAT = "LifecycleActionToken"; +const _LB = "LoadBalancers"; +const _LBN = "LoadBalancerNames"; +const _LBNo = "LoadBalancerName"; +const _LBTG = "LoadBalancerTargetGroups"; +const _LBTGARN = "LoadBalancerTargetGroupARN"; +const _LC = "LaunchConfigurations"; +const _LCARN = "LaunchConfigurationARN"; +const _LCN = "LaunchConfigurationName"; +const _LCNa = "LaunchConfigurationNames"; +const _LF = "LoadForecast"; +const _LH = "LifecycleHooks"; +const _LHN = "LifecycleHookName"; +const _LHNi = "LifecycleHookNames"; +const _LHSL = "LifecycleHookSpecificationList"; +const _LHT = "LifecycleHookTypes"; +const _LPP = "LivePoolProgress"; +const _LS = "LocalStorage"; +const _LST = "LocalStorageTypes"; +const _LSi = "LifecycleState"; +const _LT = "LaunchTemplate"; +const _LTI = "LaunchTemplateId"; +const _LTN = "LaunchTemplateName"; +const _LTS = "LaunchTemplateSpecification"; +const _LTi = "LifecycleTransition"; +const _M = "Min"; +const _MAM = "MinAdjustmentMagnitude"; +const _MAS = "MinAdjustmentStep"; +const _MAT = "MetricAggregationType"; +const _MCB = "MaxCapacityBuffer"; +const _MCBB = "MaxCapacityBreachBehavior"; +const _MDQ = "MetricDataQueries"; +const _MGBPVC = "MemoryGiBPerVCpu"; +const _MGPC = "MaxGroupPreparedCapacity"; +const _MHP = "MinHealthyPercentage"; +const _MHPa = "MaxHealthyPercentage"; +const _MIL = "MaxInstanceLifetime"; +const _MILB = "MetricIntervalLowerBound"; +const _MIP = "MixedInstancesPolicy"; +const _MIUB = "MetricIntervalUpperBound"; +const _MMB = "MemoryMiB"; +const _MN = "MetricName"; +const _MNOASG = "MaxNumberOfAutoScalingGroups"; +const _MNOLC = "MaxNumberOfLaunchConfigurations"; +const _MO = "MetadataOptions"; +const _MR = "MaxRecords"; +const _MS = "MinSize"; +const _MSa = "MaxSize"; +const _MSe = "MetricStat"; +const _MSet = "MetricSpecifications"; +const _MSetr = "MetricSpecification"; +const _MV = "MetricValue"; +const _Ma = "Max"; +const _Me = "Metrics"; +const _Met = "Metric"; +const _Mo = "Mode"; +const _N = "Namespace"; +const _NBG = "NetworkBandwidthGbps"; +const _NC = "NotificationConfigurations"; +const _ND = "NoDevice"; +const _NIC = "NetworkInterfaceCount"; +const _NIPFSI = "NewInstancesProtectedFromScaleIn"; +const _NM = "NotificationMetadata"; +const _NOASG = "NumberOfAutoScalingGroups"; +const _NOLC = "NumberOfLaunchConfigurations"; +const _NT = "NextToken"; +const _NTARN = "NotificationTargetARN"; +const _NTo = "NotificationTypes"; +const _NTot = "NotificationType"; +const _Na = "Name"; +const _O = "Overrides"; +const _ODAS = "OnDemandAllocationStrategy"; +const _ODBC = "OnDemandBaseCapacity"; +const _ODMPPOLP = "OnDemandMaxPricePercentageOverLowestPrice"; +const _ODPABC = "OnDemandPercentageAboveBaseCapacity"; +const _P = "Preferences"; +const _PAL = "PropagateAtLaunch"; +const _PARN = "PolicyARN"; +const _PC = "PredictedCapacity"; +const _PCOR = "PercentageCompleteOnRollback"; +const _PCe = "PercentageComplete"; +const _PD = "ProgressDetails"; +const _PDOR = "ProgressDetailsOnRollback"; +const _PFSI = "ProtectedFromScaleIn"; +const _PG = "PlacementGroup"; +const _PLH = "PutLifecycleHook"; +const _PLMS = "PredefinedLoadMetricSpecification"; +const _PMPS = "PredefinedMetricPairSpecification"; +const _PMS = "PredefinedMetricSpecification"; +const _PMT = "PredefinedMetricType"; +const _PN = "PolicyName"; +const _PNC = "PutNotificationConfiguration"; +const _PNo = "PolicyNames"; +const _PNr = "ProcessName"; +const _PS = "PoolState"; +const _PSC = "PredictiveScalingConfiguration"; +const _PSMS = "PredefinedScalingMetricSpecification"; +const _PSP = "PutScalingPolicy"; +const _PSUGA = "PutScheduledUpdateGroupAction"; +const _PT = "PlacementTenancy"; +const _PTo = "PolicyTypes"; +const _PTol = "PolicyType"; +const _PWP = "PutWarmPool"; +const _Pr = "Progress"; +const _Pro = "Processes"; +const _R = "Recurrence"; +const _RARN = "RoleARN"; +const _RD = "ReturnData"; +const _RDo = "RollbackDetails"; +const _RHS = "RequireHibernateSupport"; +const _RI = "RamdiskId"; +const _RIR = "RollbackInstanceRefresh"; +const _RIe = "ResourceId"; +const _RL = "ResourceLabel"; +const _RLAH = "RecordLifecycleActionHeartbeat"; +const _ROSI = "ReuseOnScaleIn"; +const _RP = "ResumeProcesses"; +const _RR = "RollbackReason"; +const _RST = "RollbackStartTime"; +const _RT = "ResourceType"; +const _S = "Statistic"; +const _SA = "ScalingAdjustment"; +const _SAARN = "ScheduledActionARN"; +const _SAN = "ScheduledActionNames"; +const _SANc = "ScheduledActionName"; +const _SAS = "SpotAllocationStrategy"; +const _SAt = "StepAdjustments"; +const _SBT = "SchedulingBufferTime"; +const _SC = "StatusCode"; +const _SDC = "SetDesiredCapacity"; +const _SDDC = "ShouldDecrementDesiredCapacity"; +const _SG = "SecurityGroups"; +const _SI = "SnapshotId"; +const _SIH = "SetInstanceHealth"; +const _SIP = "SetInstanceProtection"; +const _SIPI = "ScaleInProtectedInstances"; +const _SIPp = "SpotInstancePools"; +const _SIR = "StartInstanceRefresh"; +const _SIt = "StandbyInstances"; +const _SLRARN = "ServiceLinkedRoleARN"; +const _SM = "SkipMatching"; +const _SMP = "SpotMaxPrice"; +const _SMPPOLP = "SpotMaxPricePercentageOverLowestPrice"; +const _SMt = "StatusMessage"; +const _SP = "SuspendProcesses"; +const _SPc = "ScalingProcesses"; +const _SPca = "ScalingPolicies"; +const _SPp = "SpotPrice"; +const _SPu = "SuspendedProcesses"; +const _SR = "StatusReason"; +const _SRGP = "ShouldRespectGracePeriod"; +const _SRu = "SuspensionReason"; +const _ST = "StartTime"; +const _SUGA = "ScheduledUpdateGroupActions"; +const _St = "Stat"; +const _Sta = "Status"; +const _Stat = "State"; +const _Str = "Strategy"; +const _T = "Tags"; +const _TARN = "TopicARN"; +const _TGARN = "TargetGroupARNs"; +const _TIIASG = "TerminateInstanceInAutoScalingGroup"; +const _TLSGB = "TotalLocalStorageGB"; +const _TP = "TerminationPolicies"; +const _TPT = "TerminationPolicyTypes"; +const _TS = "TrafficSources"; +const _TST = "TrafficSourceType"; +const _TSr = "TrafficSource"; +const _TTC = "TargetTrackingConfiguration"; +const _TV = "TargetValue"; +const _TZ = "TimeZone"; +const _Th = "Throughput"; +const _Ti = "Time"; +const _Tim = "Timestamps"; +const _Ty = "Type"; +const _U = "Unit"; +const _UASG = "UpdateAutoScalingGroup"; +const _UD = "UserData"; +const _UT = "UpdateTime"; +const _V = "Version"; +const _VCC = "VCpuCount"; +const _VN = "VirtualName"; +const _VPCZI = "VPCZoneIdentifier"; +const _VS = "VolumeSize"; +const _VT = "VolumeType"; +const _Va = "Values"; +const _Val = "Value"; +const _WC = "WeightedCapacity"; +const _WPC = "WarmPoolConfiguration"; +const _WPP = "WarmPoolProgress"; +const _WPS = "WarmPoolSize"; +const _m = "message"; +const _me = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-b2bi/src/commands/CreateCapabilityCommand.ts b/clients/client-b2bi/src/commands/CreateCapabilityCommand.ts index a72b84549f71..e2e258dff0f1 100644 --- a/clients/client-b2bi/src/commands/CreateCapabilityCommand.ts +++ b/clients/client-b2bi/src/commands/CreateCapabilityCommand.ts @@ -147,84 +147,6 @@ export interface CreateCapabilityCommandOutput extends CreateCapabilityResponse, * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample CreateCapability call - * ```javascript - * // - * const input = { - * "name": "b2biexample", - * "type": "edi", - * "clientToken": "foo", - * "configuration": { - * "edi": { - * "type": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "inputLocation": { - * "key": "input/", - * "bucketName": "test-bucket" - * }, - * "outputLocation": { - * "key": "output/", - * "bucketName": "test-bucket" - * }, - * "transformerId": "tr-9a893cf536df4658b" - * } - * }, - * "instructionsDocuments": [ - * { - * "key": "instructiondoc.txt", - * "bucketName": "test-bucket" - * } - * ], - * "tags": [ - * { - * "Key": "capabilityKey1", - * "Value": "capabilityValue1" - * } - * ] - * }; - * const command = new CreateCapabilityCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "b2biexample", - * "type": "edi", - * "capabilityArn": "arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348", - * "capabilityId": "ca-963a8121e4fc4e348", - * "configuration": { - * "edi": { - * "type": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "inputLocation": { - * "key": "input/", - * "bucketName": "test-bucket" - * }, - * "outputLocation": { - * "key": "output/", - * "bucketName": "test-bucket" - * }, - * "transformerId": "tr-9a893cf536df4658b" - * } - * }, - * "createdAt": "2023-11-01T21:51:05.504Z", - * "instructionsDocuments": [ - * { - * "key": "instructiondoc.txt", - * "bucketName": "test-bucket" - * } - * ] - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class CreateCapabilityCommand extends $Command< CreateCapabilityCommandInput, diff --git a/clients/client-b2bi/src/commands/CreatePartnershipCommand.ts b/clients/client-b2bi/src/commands/CreatePartnershipCommand.ts index c48db65cca6b..7ad8d3d06c2c 100644 --- a/clients/client-b2bi/src/commands/CreatePartnershipCommand.ts +++ b/clients/client-b2bi/src/commands/CreatePartnershipCommand.ts @@ -114,45 +114,6 @@ export interface CreatePartnershipCommandOutput extends CreatePartnershipRespons * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample CreatePartnership call - * ```javascript - * // - * const input = { - * "name": "b2bipartner", - * "capabilities": [ - * "ca-963a8121e4fc4e348" - * ], - * "clientToken": "foo", - * "email": "john@example.com", - * "phone": "5555555555", - * "profileId": "p-60fbc37c87f04fce9", - * "tags": [ - * { - * "Key": "sampleKey1", - * "Value": "sampleValue1" - * } - * ] - * }; - * const command = new CreatePartnershipCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "b2bipartner", - * "capabilities": [ - * "ca-963a8121e4fc4e348" - * ], - * "createdAt": "2023-11-01T21:51:05.504Z", - * "email": "john@example.com", - * "partnershipArn": "arn:aws:b2bi:us-west-2:123456789012:partnership/ps-60fbc37c87f04fce9", - * "partnershipId": "ps-219fa02f5b4242af8", - * "phone": "5555555555", - * "profileId": "p-60fbc37c87f04fce9", - * "tradingPartnerId": "tp-2a17ca447f6f4a8a8" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class CreatePartnershipCommand extends $Command< CreatePartnershipCommandInput, diff --git a/clients/client-b2bi/src/commands/CreateProfileCommand.ts b/clients/client-b2bi/src/commands/CreateProfileCommand.ts index 38c07182d11a..8f2fb241c207 100644 --- a/clients/client-b2bi/src/commands/CreateProfileCommand.ts +++ b/clients/client-b2bi/src/commands/CreateProfileCommand.ts @@ -110,41 +110,6 @@ export interface CreateProfileCommandOutput extends CreateProfileResponse, __Met * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample CreateProfile call - * ```javascript - * // - * const input = { - * "name": "Shipping Profile", - * "businessName": "John's Shipping", - * "clientToken": "foo", - * "email": "john@example.com", - * "logging": "ENABLED", - * "phone": "5555555555", - * "tags": [ - * { - * "Key": "sampleKey", - * "Value": "sampleValue" - * } - * ] - * }; - * const command = new CreateProfileCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "Shipping Profile", - * "businessName": "John's Trucking", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "email": "john@example.com", - * "logGroupName": "b2bi/p-60fbc37c87f04fce9-Logs", - * "logging": "ENABLED", - * "phone": "5555555555", - * "profileArn": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9", - * "profileId": "p-60fbc37c87f04fce9" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class CreateProfileCommand extends $Command< CreateProfileCommandInput, diff --git a/clients/client-b2bi/src/commands/CreateTransformerCommand.ts b/clients/client-b2bi/src/commands/CreateTransformerCommand.ts index 8257aed9baad..05ee6b2f3808 100644 --- a/clients/client-b2bi/src/commands/CreateTransformerCommand.ts +++ b/clients/client-b2bi/src/commands/CreateTransformerCommand.ts @@ -116,51 +116,6 @@ export interface CreateTransformerCommandOutput extends CreateTransformerRespons * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample CreateTransformer call - * ```javascript - * // - * const input = { - * "name": "transformJSON", - * "clientToken": "foo", - * "ediType": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "fileFormat": "JSON", - * "mappingTemplate": "{}", - * "sampleDocument": "s3://test-bucket/sampleDoc.txt", - * "tags": [ - * { - * "Key": "sampleKey", - * "Value": "sampleValue" - * } - * ] - * }; - * const command = new CreateTransformerCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "transformJSON", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "ediType": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "fileFormat": "JSON", - * "mappingTemplate": "$", - * "sampleDocument": "s3://test-bucket/sampleDoc.txt", - * "status": "inactive", - * "transformerArn": "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9", - * "transformerId": "tr-974c129999f84d8c9" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class CreateTransformerCommand extends $Command< CreateTransformerCommandInput, diff --git a/clients/client-b2bi/src/commands/DeleteCapabilityCommand.ts b/clients/client-b2bi/src/commands/DeleteCapabilityCommand.ts index ba3dc501d7b2..a5f0aaa1fb00 100644 --- a/clients/client-b2bi/src/commands/DeleteCapabilityCommand.ts +++ b/clients/client-b2bi/src/commands/DeleteCapabilityCommand.ts @@ -80,17 +80,6 @@ export interface DeleteCapabilityCommandOutput extends __MetadataBearer {} * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample DeleteCapabilty call - * ```javascript - * // - * const input = { - * "capabilityId": "ca-963a8121e4fc4e348" - * }; - * const command = new DeleteCapabilityCommand(input); - * await client.send(command); - * // example id: example-1 - * ``` - * */ export class DeleteCapabilityCommand extends $Command< DeleteCapabilityCommandInput, diff --git a/clients/client-b2bi/src/commands/DeletePartnershipCommand.ts b/clients/client-b2bi/src/commands/DeletePartnershipCommand.ts index 2e49523faf2b..ce88623c8e20 100644 --- a/clients/client-b2bi/src/commands/DeletePartnershipCommand.ts +++ b/clients/client-b2bi/src/commands/DeletePartnershipCommand.ts @@ -81,17 +81,6 @@ export interface DeletePartnershipCommandOutput extends __MetadataBearer {} * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample DeletePartnership call - * ```javascript - * // - * const input = { - * "partnershipId": "ps-219fa02f5b4242af8" - * }; - * const command = new DeletePartnershipCommand(input); - * await client.send(command); - * // example id: example-1 - * ``` - * */ export class DeletePartnershipCommand extends $Command< DeletePartnershipCommandInput, diff --git a/clients/client-b2bi/src/commands/DeleteProfileCommand.ts b/clients/client-b2bi/src/commands/DeleteProfileCommand.ts index b6482513fdcc..48b4baf6e50a 100644 --- a/clients/client-b2bi/src/commands/DeleteProfileCommand.ts +++ b/clients/client-b2bi/src/commands/DeleteProfileCommand.ts @@ -81,17 +81,6 @@ export interface DeleteProfileCommandOutput extends __MetadataBearer {} * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample DeleteProfile call - * ```javascript - * // - * const input = { - * "profileId": "p-60fbc37c87f04fce9" - * }; - * const command = new DeleteProfileCommand(input); - * await client.send(command); - * // example id: example-1 - * ``` - * */ export class DeleteProfileCommand extends $Command< DeleteProfileCommandInput, diff --git a/clients/client-b2bi/src/commands/DeleteTransformerCommand.ts b/clients/client-b2bi/src/commands/DeleteTransformerCommand.ts index 4bf24b5fbef9..124110c3642b 100644 --- a/clients/client-b2bi/src/commands/DeleteTransformerCommand.ts +++ b/clients/client-b2bi/src/commands/DeleteTransformerCommand.ts @@ -82,17 +82,6 @@ export interface DeleteTransformerCommandOutput extends __MetadataBearer {} * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample DeleteTransformer call - * ```javascript - * // - * const input = { - * "transformerId": "tr-974c129999f84d8c9" - * }; - * const command = new DeleteTransformerCommand(input); - * await client.send(command); - * // example id: example-1 - * ``` - * */ export class DeleteTransformerCommand extends $Command< DeleteTransformerCommandInput, diff --git a/clients/client-b2bi/src/commands/GetCapabilityCommand.ts b/clients/client-b2bi/src/commands/GetCapabilityCommand.ts index 3813e3441012..642c950f5468 100644 --- a/clients/client-b2bi/src/commands/GetCapabilityCommand.ts +++ b/clients/client-b2bi/src/commands/GetCapabilityCommand.ts @@ -109,52 +109,6 @@ export interface GetCapabilityCommandOutput extends GetCapabilityResponse, __Met * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample GetCapabilty call - * ```javascript - * // - * const input = { - * "capabilityId": "ca-963a8121e4fc4e348" - * }; - * const command = new GetCapabilityCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "b2biexample", - * "type": "edi", - * "capabilityArn": "arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348", - * "capabilityId": "ca-963a8121e4fc4e348", - * "configuration": { - * "edi": { - * "type": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "inputLocation": { - * "key": "input/", - * "bucketName": "test-bucket" - * }, - * "outputLocation": { - * "key": "output/", - * "bucketName": "test-bucket" - * }, - * "transformerId": "tr-9a893cf536df4658b" - * } - * }, - * "createdAt": "2023-11-01T21:51:05.504Z", - * "instructionsDocuments": [ - * { - * "key": "instructiondoc.txt", - * "bucketName": "test-bucket" - * } - * ], - * "modifiedAt": "2023-11-02T21:51:05.504Z" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class GetCapabilityCommand extends $Command< GetCapabilityCommandInput, diff --git a/clients/client-b2bi/src/commands/GetPartnershipCommand.ts b/clients/client-b2bi/src/commands/GetPartnershipCommand.ts index 605c4025baf1..44a01fe83587 100644 --- a/clients/client-b2bi/src/commands/GetPartnershipCommand.ts +++ b/clients/client-b2bi/src/commands/GetPartnershipCommand.ts @@ -95,33 +95,6 @@ export interface GetPartnershipCommandOutput extends GetPartnershipResponse, __M * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample GetPartnership call - * ```javascript - * // - * const input = { - * "partnershipId": "ps-219fa02f5b4242af8" - * }; - * const command = new GetPartnershipCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "b2bipartner", - * "capabilities": [ - * "ca-963a8121e4fc4e348" - * ], - * "createdAt": "2023-11-01T21:51:05.504Z", - * "email": "john@example.com", - * "modifiedAt": "2023-11-01T21:51:05.504Z", - * "partnershipArn": "arn:aws:b2bi:us-west-2:123456789012:partnership/ps-219fa02f5b4242af8", - * "partnershipId": "ps-219fa02f5b4242af8", - * "phone": "5555555555", - * "profileId": "p-60fbc37c87f04fce9", - * "tradingPartnerId": "tp-2a17ca447f6f4a8a8" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class GetPartnershipCommand extends $Command< GetPartnershipCommandInput, diff --git a/clients/client-b2bi/src/commands/GetProfileCommand.ts b/clients/client-b2bi/src/commands/GetProfileCommand.ts index e90b46cc15b0..eec21b5ff2b2 100644 --- a/clients/client-b2bi/src/commands/GetProfileCommand.ts +++ b/clients/client-b2bi/src/commands/GetProfileCommand.ts @@ -89,30 +89,6 @@ export interface GetProfileCommandOutput extends GetProfileResponse, __MetadataB * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample GetProfile call - * ```javascript - * // - * const input = { - * "profileId": "p-60fbc37c87f04fce9" - * }; - * const command = new GetProfileCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "Shipping Profile", - * "businessName": "John's Trucking", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "email": "john@example.com", - * "logGroupName": "b2bi/p-60fbc37c87f04fce9-Logs", - * "logging": "ENABLED", - * "phone": "5555555555", - * "profileArn": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9", - * "profileId": "p-60fbc37c87f04fce9" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class GetProfileCommand extends $Command< GetProfileCommandInput, diff --git a/clients/client-b2bi/src/commands/GetTransformerCommand.ts b/clients/client-b2bi/src/commands/GetTransformerCommand.ts index 54ba9c2157da..24e571ac9a1c 100644 --- a/clients/client-b2bi/src/commands/GetTransformerCommand.ts +++ b/clients/client-b2bi/src/commands/GetTransformerCommand.ts @@ -95,36 +95,6 @@ export interface GetTransformerCommandOutput extends GetTransformerResponse, __M * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample GetTransformer call - * ```javascript - * // - * const input = { - * "transformerId": "tr-974c129999f84d8c9" - * }; - * const command = new GetTransformerCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "transformJSON", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "ediType": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "fileFormat": "JSON", - * "mappingTemplate": "$", - * "modifiedAt": "2023-11-01T21:51:05.504Z", - * "sampleDocument": "s3://test-bucket/sampleDoc.txt", - * "status": "inactive", - * "transformerArn": "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9", - * "transformerId": "tr-974c129999f84d8c9" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class GetTransformerCommand extends $Command< GetTransformerCommandInput, diff --git a/clients/client-b2bi/src/commands/GetTransformerJobCommand.ts b/clients/client-b2bi/src/commands/GetTransformerJobCommand.ts index 444f9a09bc93..cfa2023e24d0 100644 --- a/clients/client-b2bi/src/commands/GetTransformerJobCommand.ts +++ b/clients/client-b2bi/src/commands/GetTransformerJobCommand.ts @@ -87,30 +87,6 @@ export interface GetTransformerJobCommandOutput extends GetTransformerJobRespons * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample GetTransformerJob call - * ```javascript - * // - * const input = { - * "transformerId": "tr-974c129999f84d8c9", - * "transformerJobId": "tj-vpYxfV7yQOqjMSYllEslLw" - * }; - * const command = new GetTransformerJobCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "message": "Transformed, writing output", - * "outputFiles": [ - * { - * "key": "output/sample-214.edi.2023-11-01T10:44:03.353Z.json", - * "bucketName": "gt-edi-test" - * } - * ], - * "status": "succeeded" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class GetTransformerJobCommand extends $Command< GetTransformerJobCommandInput, diff --git a/clients/client-b2bi/src/commands/ListCapabilitiesCommand.ts b/clients/client-b2bi/src/commands/ListCapabilitiesCommand.ts index ed37652f294a..e484ff82ca8b 100644 --- a/clients/client-b2bi/src/commands/ListCapabilitiesCommand.ts +++ b/clients/client-b2bi/src/commands/ListCapabilitiesCommand.ts @@ -74,32 +74,6 @@ export interface ListCapabilitiesCommandOutput extends ListCapabilitiesResponse, * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample ListCapabilities call - * ```javascript - * // - * const input = { - * "maxResults": 50, - * "nextToken": "foo" - * }; - * const command = new ListCapabilitiesCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "capabilities": [ - * { - * "name": "b2biexample", - * "type": "edi", - * "capabilityId": "ca-963a8121e4fc4e348", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "modifiedAt": "2023-11-01T21:51:05.504Z" - * } - * ], - * "nextToken": "foo" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class ListCapabilitiesCommand extends $Command< ListCapabilitiesCommandInput, diff --git a/clients/client-b2bi/src/commands/ListPartnershipsCommand.ts b/clients/client-b2bi/src/commands/ListPartnershipsCommand.ts index 46d1ffb8b2ca..ddd0ad34ac0e 100644 --- a/clients/client-b2bi/src/commands/ListPartnershipsCommand.ts +++ b/clients/client-b2bi/src/commands/ListPartnershipsCommand.ts @@ -95,37 +95,6 @@ export interface ListPartnershipsCommandOutput extends ListPartnershipsResponse, * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample ListPartnerships call - * ```javascript - * // - * const input = { - * "maxResults": 50, - * "nextToken": "foo", - * "profileId": "p-60fbc37c87f04fce9" - * }; - * const command = new ListPartnershipsCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "nextToken": "string", - * "partnerships": [ - * { - * "name": "b2bipartner", - * "capabilities": [ - * "ca-963a8121e4fc4e348" - * ], - * "createdAt": "2023-11-01T21:51:05.504Z", - * "modifiedAt": "2023-11-01T21:51:05.504Z", - * "partnershipId": "ps-219fa02f5b4242af8", - * "profileId": "p-60fbc37c87f04fce9", - * "tradingPartnerId": "tp-2a17ca447f6f4a8a8" - * } - * ] - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class ListPartnershipsCommand extends $Command< ListPartnershipsCommandInput, diff --git a/clients/client-b2bi/src/commands/ListProfilesCommand.ts b/clients/client-b2bi/src/commands/ListProfilesCommand.ts index 38d77b1db882..274483035646 100644 --- a/clients/client-b2bi/src/commands/ListProfilesCommand.ts +++ b/clients/client-b2bi/src/commands/ListProfilesCommand.ts @@ -77,33 +77,6 @@ export interface ListProfilesCommandOutput extends ListProfilesResponse, __Metad * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample ListProfiles call - * ```javascript - * // - * const input = { - * "maxResults": 50, - * "nextToken": "foo" - * }; - * const command = new ListProfilesCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "nextToken": "foo", - * "profiles": [ - * { - * "name": "Shipping Profile", - * "businessName": "John's Trucking", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "logGroupName": "b2bi/p-60fbc37c87f04fce9-Logs", - * "logging": "ENABLED", - * "profileId": "p-60fbc37c87f04fce9" - * } - * ] - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class ListProfilesCommand extends $Command< ListProfilesCommandInput, diff --git a/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts b/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts index 3feecbf047d3..ac75dbba18d6 100644 --- a/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts @@ -75,27 +75,6 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample ListTagsForResources call - * ```javascript - * // - * const input = { - * "ResourceARN": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9" - * }; - * const command = new ListTagsForResourceCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "Tags": [ - * { - * "Key": "sampleKey", - * "Value": "SampleValue" - * } - * ] - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class ListTagsForResourceCommand extends $Command< ListTagsForResourceCommandInput, diff --git a/clients/client-b2bi/src/commands/ListTransformersCommand.ts b/clients/client-b2bi/src/commands/ListTransformersCommand.ts index d33806e09c1b..4c4b90a14d4e 100644 --- a/clients/client-b2bi/src/commands/ListTransformersCommand.ts +++ b/clients/client-b2bi/src/commands/ListTransformersCommand.ts @@ -85,41 +85,6 @@ export interface ListTransformersCommandOutput extends ListTransformersResponse, * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample ListTransformers call - * ```javascript - * // - * const input = { - * "maxResults": 50, - * "nextToken": "foo" - * }; - * const command = new ListTransformersCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "nextToken": "foo", - * "transformers": [ - * { - * "name": "transformJSON", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "ediType": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "fileFormat": "JSON", - * "mappingTemplate": "$", - * "modifiedAt": "2023-11-01T21:51:05.504Z", - * "sampleDocument": "s3://test-bucket/sampleDoc.txt", - * "status": "inactive", - * "transformerId": "tr-974c129999f84d8c9" - * } - * ] - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class ListTransformersCommand extends $Command< ListTransformersCommandInput, diff --git a/clients/client-b2bi/src/commands/StartTransformerJobCommand.ts b/clients/client-b2bi/src/commands/StartTransformerJobCommand.ts index 0f51ea2a9495..676134adaa3a 100644 --- a/clients/client-b2bi/src/commands/StartTransformerJobCommand.ts +++ b/clients/client-b2bi/src/commands/StartTransformerJobCommand.ts @@ -90,31 +90,6 @@ export interface StartTransformerJobCommandOutput extends StartTransformerJobRes * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample StartTransformerJob call - * ```javascript - * // - * const input = { - * "clientToken": "foo", - * "inputFile": { - * "key": "input/inputFile.txt", - * "bucketName": "test-bucket" - * }, - * "outputLocation": { - * "key": "output/", - * "bucketName": "test-bucket" - * }, - * "transformerId": "tr-974c129999f84d8c9" - * }; - * const command = new StartTransformerJobCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "transformerJobId": "tj-vpYxfV7yQOqjMSYllEslLw" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class StartTransformerJobCommand extends $Command< StartTransformerJobCommandInput, diff --git a/clients/client-b2bi/src/commands/TagResourceCommand.ts b/clients/client-b2bi/src/commands/TagResourceCommand.ts index 7fea071e76af..7d40c9233a19 100644 --- a/clients/client-b2bi/src/commands/TagResourceCommand.ts +++ b/clients/client-b2bi/src/commands/TagResourceCommand.ts @@ -78,23 +78,6 @@ export interface TagResourceCommandOutput extends __MetadataBearer {} * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample TagResource call - * ```javascript - * // - * const input = { - * "ResourceARN": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9", - * "Tags": [ - * { - * "Key": "sampleKey", - * "Value": "SampleValue" - * } - * ] - * }; - * const command = new TagResourceCommand(input); - * await client.send(command); - * // example id: example-1 - * ``` - * */ export class TagResourceCommand extends $Command< TagResourceCommandInput, diff --git a/clients/client-b2bi/src/commands/TestMappingCommand.ts b/clients/client-b2bi/src/commands/TestMappingCommand.ts index 7feff5ebfa46..2f37a9a44a6f 100644 --- a/clients/client-b2bi/src/commands/TestMappingCommand.ts +++ b/clients/client-b2bi/src/commands/TestMappingCommand.ts @@ -81,24 +81,6 @@ export interface TestMappingCommandOutput extends TestMappingResponse, __Metadat * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample TestMapping call - * ```javascript - * // - * const input = { - * "fileFormat": "JSON", - * "inputFileContent": "Sample file content", - * "mappingTemplate": "$" - * }; - * const command = new TestMappingCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "mappedFileContent": "Sample file content" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class TestMappingCommand extends $Command< TestMappingCommandInput, diff --git a/clients/client-b2bi/src/commands/TestParsingCommand.ts b/clients/client-b2bi/src/commands/TestParsingCommand.ts index 5619a1e5bd3b..7ec435ffa8ea 100644 --- a/clients/client-b2bi/src/commands/TestParsingCommand.ts +++ b/clients/client-b2bi/src/commands/TestParsingCommand.ts @@ -89,32 +89,6 @@ export interface TestParsingCommandOutput extends TestParsingResponse, __Metadat * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample TestParsing call - * ```javascript - * // - * const input = { - * "ediType": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "fileFormat": "JSON", - * "inputFile": { - * "key": "sampleFile.txt", - * "bucketName": "test-bucket" - * } - * }; - * const command = new TestParsingCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "parsedFileContent": "Sample parsed file content" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class TestParsingCommand extends $Command< TestParsingCommandInput, diff --git a/clients/client-b2bi/src/commands/UntagResourceCommand.ts b/clients/client-b2bi/src/commands/UntagResourceCommand.ts index 964d294951ab..50b8f1d3dcc7 100644 --- a/clients/client-b2bi/src/commands/UntagResourceCommand.ts +++ b/clients/client-b2bi/src/commands/UntagResourceCommand.ts @@ -71,20 +71,6 @@ export interface UntagResourceCommandOutput extends __MetadataBearer {} * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample UntagResource call - * ```javascript - * // - * const input = { - * "ResourceARN": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9", - * "TagKeys": [ - * "sampleKey" - * ] - * }; - * const command = new UntagResourceCommand(input); - * await client.send(command); - * // example id: example-1 - * ``` - * */ export class UntagResourceCommand extends $Command< UntagResourceCommandInput, diff --git a/clients/client-b2bi/src/commands/UpdateCapabilityCommand.ts b/clients/client-b2bi/src/commands/UpdateCapabilityCommand.ts index b82e3e494d49..fb8a1ee8fb56 100644 --- a/clients/client-b2bi/src/commands/UpdateCapabilityCommand.ts +++ b/clients/client-b2bi/src/commands/UpdateCapabilityCommand.ts @@ -142,78 +142,6 @@ export interface UpdateCapabilityCommandOutput extends UpdateCapabilityResponse, * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample UpdateCapability call - * ```javascript - * // - * const input = { - * "name": "b2biexample", - * "capabilityId": "ca-963a8121e4fc4e348", - * "configuration": { - * "edi": { - * "type": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "inputLocation": { - * "key": "input/", - * "bucketName": "test-bucket" - * }, - * "outputLocation": { - * "key": "output/", - * "bucketName": "test-bucket" - * }, - * "transformerId": "tr-9a893cf536df4658b" - * } - * }, - * "instructionsDocuments": [ - * { - * "key": "instructiondoc.txt", - * "bucketName": "test-bucket" - * } - * ] - * }; - * const command = new UpdateCapabilityCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "b2biexample", - * "type": "edi", - * "capabilityArn": "arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348", - * "capabilityId": "ca-963a8121e4fc4e348", - * "configuration": { - * "edi": { - * "type": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "inputLocation": { - * "key": "input/", - * "bucketName": "test-bucket" - * }, - * "outputLocation": { - * "key": "output/", - * "bucketName": "test-bucket" - * }, - * "transformerId": "tr-9a893cf536df4658b" - * } - * }, - * "createdAt": "2023-11-01T21:51:05.504Z", - * "instructionsDocuments": [ - * { - * "key": "instructiondoc.txt", - * "bucketName": "test-bucket" - * } - * ], - * "modifiedAt": "2023-11-01T21:51:05.504Z" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class UpdateCapabilityCommand extends $Command< UpdateCapabilityCommandInput, diff --git a/clients/client-b2bi/src/commands/UpdatePartnershipCommand.ts b/clients/client-b2bi/src/commands/UpdatePartnershipCommand.ts index 35987deeb9e2..cab4713302ab 100644 --- a/clients/client-b2bi/src/commands/UpdatePartnershipCommand.ts +++ b/clients/client-b2bi/src/commands/UpdatePartnershipCommand.ts @@ -105,37 +105,6 @@ export interface UpdatePartnershipCommandOutput extends UpdatePartnershipRespons * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample UpdatePartnership call - * ```javascript - * // - * const input = { - * "name": "b2bipartner", - * "capabilities": [ - * "ca-963a8121e4fc4e348" - * ], - * "partnershipId": "ps-219fa02f5b4242af8" - * }; - * const command = new UpdatePartnershipCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "b2bipartner", - * "capabilities": [ - * "ca-963a8121e4fc4e348" - * ], - * "createdAt": "2023-11-01T21:51:05.504Z", - * "email": "john@example.com", - * "modifiedAt": "2023-11-01T21:51:05.504Z", - * "partnershipArn": "arn:aws:b2bi:us-west-2:123456789012:partnership/ps-60fbc37c87f04fce9", - * "partnershipId": "ps-219fa02f5b4242af8", - * "phone": "5555555555", - * "profileId": "p-60fbc37c87f04fce9", - * "tradingPartnerId": "tp-2a17ca447f6f4a8a8" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class UpdatePartnershipCommand extends $Command< UpdatePartnershipCommandInput, diff --git a/clients/client-b2bi/src/commands/UpdateProfileCommand.ts b/clients/client-b2bi/src/commands/UpdateProfileCommand.ts index aba814150598..a5f7a40be32e 100644 --- a/clients/client-b2bi/src/commands/UpdateProfileCommand.ts +++ b/clients/client-b2bi/src/commands/UpdateProfileCommand.ts @@ -104,35 +104,6 @@ export interface UpdateProfileCommandOutput extends UpdateProfileResponse, __Met * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample UpdateProfile call - * ```javascript - * // - * const input = { - * "name": "Shipping Profile", - * "businessName": "John's Shipping", - * "email": "john@example.com", - * "phone": "5555555555", - * "profileId": "p-60fbc37c87f04fce9" - * }; - * const command = new UpdateProfileCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "Shipping Profile", - * "businessName": "John's Trucking", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "email": "john@example.com", - * "logGroupName": "b2bi/p-60fbc37c87f04fce9-Logs", - * "logging": "ENABLED", - * "modifiedAt": "2023-11-02T21:51:05.504Z", - * "phone": "5555555555", - * "profileArn": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9", - * "profileId": "p-60fbc37c87f04fce9" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class UpdateProfileCommand extends $Command< UpdateProfileCommandInput, diff --git a/clients/client-b2bi/src/commands/UpdateTransformerCommand.ts b/clients/client-b2bi/src/commands/UpdateTransformerCommand.ts index d72a20a379fb..5beb4a1d563f 100644 --- a/clients/client-b2bi/src/commands/UpdateTransformerCommand.ts +++ b/clients/client-b2bi/src/commands/UpdateTransformerCommand.ts @@ -112,47 +112,6 @@ export interface UpdateTransformerCommandOutput extends UpdateTransformerRespons * @throws {@link B2biServiceException} *

Base exception class for all service exceptions from B2bi service.

* - * @example Sample UpdateTransformer call - * ```javascript - * // - * const input = { - * "name": "transformJSON", - * "ediType": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "fileFormat": "JSON", - * "mappingTemplate": "{}", - * "sampleDocument": "s3://test-bucket/sampleDoc.txt", - * "status": "inactive", - * "transformerId": "tr-974c129999f84d8c9" - * }; - * const command = new UpdateTransformerCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "name": "transformJSON", - * "createdAt": "2023-11-01T21:51:05.504Z", - * "ediType": { - * "x12Details": { - * "version": "VERSION_4010", - * "transactionSet": "X12_110" - * } - * }, - * "fileFormat": "JSON", - * "mappingTemplate": "$", - * "modifiedAt": "2023-11-01T21:51:05.504Z", - * "sampleDocument": "s3://test-bucket/sampleDoc.txt", - * "status": "inactive", - * "transformerArn": "arn:aws:b2bi:us-west-2:607686414464:transformer/tr-974c129999f84d8c9", - * "transformerId": "tr-974c129999f84d8c9" - * } - * *\/ - * // example id: example-1 - * ``` - * */ export class UpdateTransformerCommand extends $Command< UpdateTransformerCommandInput, diff --git a/clients/client-backup/package.json b/clients/client-backup/package.json index 51a71325c5d2..2d5eed468537 100644 --- a/clients/client-backup/package.json +++ b/clients/client-backup/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-backup/src/protocols/Aws_restJson1.ts b/clients/client-backup/src/protocols/Aws_restJson1.ts index 638ab5f22fe8..354c01452053 100644 --- a/clients/client-backup/src/protocols/Aws_restJson1.ts +++ b/clients/client-backup/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -339,26 +340,17 @@ export const se_CancelLegalHoldCommand = async ( input: CancelLegalHoldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/legal-holds/{LegalHoldId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LegalHoldId", () => input.LegalHoldId!, "{LegalHoldId}", false); + b.bp("/legal-holds/{LegalHoldId}"); + b.p("LegalHoldId", () => input.LegalHoldId!, "{LegalHoldId}", false); const query: any = map({ - cancelDescription: [, __expectNonNull(input.CancelDescription!, `CancelDescription`)], - retainRecordInDays: [() => input.RetainRecordInDays !== void 0, () => input.RetainRecordInDays!.toString()], + [_cD]: [, __expectNonNull(input[_CD]!, `CancelDescription`)], + [_rRID]: [() => input.RetainRecordInDays !== void 0, () => input[_RRID]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -368,11 +360,11 @@ export const se_CreateBackupPlanCommand = async ( input: CreateBackupPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans"; + b.bp("/backup/plans"); let body: any; body = JSON.stringify( take(input, { @@ -381,15 +373,8 @@ export const se_CreateBackupPlanCommand = async ( CreatorRequestId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -399,20 +384,12 @@ export const se_CreateBackupSelectionCommand = async ( input: CreateBackupSelectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/selections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); + b.bp("/backup/plans/{BackupPlanId}/selections"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); let body: any; body = JSON.stringify( take(input, { @@ -420,15 +397,8 @@ export const se_CreateBackupSelectionCommand = async ( CreatorRequestId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -438,20 +408,12 @@ export const se_CreateBackupVaultCommand = async ( input: CreateBackupVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; body = JSON.stringify( take(input, { @@ -460,15 +422,8 @@ export const se_CreateBackupVaultCommand = async ( EncryptionKeyArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -478,11 +433,11 @@ export const se_CreateFrameworkCommand = async ( input: CreateFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks"; + b.bp("/audit/frameworks"); let body: any; body = JSON.stringify( take(input, { @@ -493,15 +448,8 @@ export const se_CreateFrameworkCommand = async ( IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -511,11 +459,11 @@ export const se_CreateLegalHoldCommand = async ( input: CreateLegalHoldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/legal-holds"; + b.bp("/legal-holds"); let body: any; body = JSON.stringify( take(input, { @@ -526,15 +474,8 @@ export const se_CreateLegalHoldCommand = async ( Title: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -544,21 +485,12 @@ export const se_CreateLogicallyAirGappedBackupVaultCommand = async ( input: CreateLogicallyAirGappedBackupVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/logically-air-gapped-backup-vaults/{BackupVaultName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/logically-air-gapped-backup-vaults/{BackupVaultName}"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; body = JSON.stringify( take(input, { @@ -568,15 +500,8 @@ export const se_CreateLogicallyAirGappedBackupVaultCommand = async ( MinRetentionDays: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -586,11 +511,11 @@ export const se_CreateReportPlanCommand = async ( input: CreateReportPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans"; + b.bp("/audit/report-plans"); let body: any; body = JSON.stringify( take(input, { @@ -602,15 +527,8 @@ export const se_CreateReportPlanCommand = async ( ReportSetting: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -620,11 +538,11 @@ export const se_CreateRestoreTestingPlanCommand = async ( input: CreateRestoreTestingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/plans"; + b.bp("/restore-testing/plans"); let body: any; body = JSON.stringify( take(input, { @@ -633,15 +551,8 @@ export const se_CreateRestoreTestingPlanCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -651,21 +562,12 @@ export const se_CreateRestoreTestingSelectionCommand = async ( input: CreateRestoreTestingSelectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}/selections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); let body: any; body = JSON.stringify( take(input, { @@ -673,15 +575,8 @@ export const se_CreateRestoreTestingSelectionCommand = async ( RestoreTestingSelection: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -691,28 +586,13 @@ export const se_DeleteBackupPlanCommand = async ( input: DeleteBackupPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); + b.bp("/backup/plans/{BackupPlanId}"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -722,30 +602,14 @@ export const se_DeleteBackupSelectionCommand = async ( input: DeleteBackupSelectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup/plans/{BackupPlanId}/selections/{SelectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SelectionId", () => input.SelectionId!, "{SelectionId}", false); + b.bp("/backup/plans/{BackupPlanId}/selections/{SelectionId}"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); + b.p("SelectionId", () => input.SelectionId!, "{SelectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -755,28 +619,13 @@ export const se_DeleteBackupVaultCommand = async ( input: DeleteBackupVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -786,29 +635,13 @@ export const se_DeleteBackupVaultAccessPolicyCommand = async ( input: DeleteBackupVaultAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/access-policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/access-policy"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -818,29 +651,13 @@ export const se_DeleteBackupVaultLockConfigurationCommand = async ( input: DeleteBackupVaultLockConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/vault-lock"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/vault-lock"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -850,29 +667,13 @@ export const se_DeleteBackupVaultNotificationsCommand = async ( input: DeleteBackupVaultNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/notification-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/notification-configuration"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -882,28 +683,13 @@ export const se_DeleteFrameworkCommand = async ( input: DeleteFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks/{FrameworkName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FrameworkName", - () => input.FrameworkName!, - "{FrameworkName}", - false - ); + b.bp("/audit/frameworks/{FrameworkName}"); + b.p("FrameworkName", () => input.FrameworkName!, "{FrameworkName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -913,37 +699,14 @@ export const se_DeleteRecoveryPointCommand = async ( input: DeleteRecoveryPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryPointArn", - () => input.RecoveryPointArn!, - "{RecoveryPointArn}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); + b.p("RecoveryPointArn", () => input.RecoveryPointArn!, "{RecoveryPointArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -953,28 +716,13 @@ export const se_DeleteReportPlanCommand = async ( input: DeleteReportPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans/{ReportPlanName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReportPlanName", - () => input.ReportPlanName!, - "{ReportPlanName}", - false - ); + b.bp("/audit/report-plans/{ReportPlanName}"); + b.p("ReportPlanName", () => input.ReportPlanName!, "{ReportPlanName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -984,29 +732,13 @@ export const se_DeleteRestoreTestingPlanCommand = async ( input: DeleteRestoreTestingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1016,37 +748,14 @@ export const se_DeleteRestoreTestingSelectionCommand = async ( input: DeleteRestoreTestingSelectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingSelectionName", - () => input.RestoreTestingSelectionName!, - "{RestoreTestingSelectionName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); + b.p("RestoreTestingSelectionName", () => input.RestoreTestingSelectionName!, "{RestoreTestingSelectionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1056,21 +765,13 @@ export const se_DescribeBackupJobCommand = async ( input: DescribeBackupJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs/{BackupJobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); + b.bp("/backup-jobs/{BackupJobId}"); + b.p("BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1080,32 +781,16 @@ export const se_DescribeBackupVaultCommand = async ( input: DescribeBackupVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); const query: any = map({ - backupVaultAccountId: [, input.BackupVaultAccountId!], + [_bVAI]: [, input[_BVAI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1115,20 +800,13 @@ export const se_DescribeCopyJobCommand = async ( input: DescribeCopyJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs/{CopyJobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "CopyJobId", () => input.CopyJobId!, "{CopyJobId}", false); + b.bp("/copy-jobs/{CopyJobId}"); + b.p("CopyJobId", () => input.CopyJobId!, "{CopyJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1138,28 +816,13 @@ export const se_DescribeFrameworkCommand = async ( input: DescribeFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks/{FrameworkName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FrameworkName", - () => input.FrameworkName!, - "{FrameworkName}", - false - ); + b.bp("/audit/frameworks/{FrameworkName}"); + b.p("FrameworkName", () => input.FrameworkName!, "{FrameworkName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1169,22 +832,15 @@ export const se_DescribeGlobalSettingsCommand = async ( input: DescribeGlobalSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings"; + b.bp("/global-settings"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1194,20 +850,13 @@ export const se_DescribeProtectedResourceCommand = async ( input: DescribeProtectedResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resources/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1217,41 +866,17 @@ export const se_DescribeRecoveryPointCommand = async ( input: DescribeRecoveryPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryPointArn", - () => input.RecoveryPointArn!, - "{RecoveryPointArn}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); + b.p("RecoveryPointArn", () => input.RecoveryPointArn!, "{RecoveryPointArn}", false); const query: any = map({ - backupVaultAccountId: [, input.BackupVaultAccountId!], + [_bVAI]: [, input[_BVAI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1261,22 +886,15 @@ export const se_DescribeRegionSettingsCommand = async ( input: DescribeRegionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account-settings"; + b.bp("/account-settings"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1286,21 +904,13 @@ export const se_DescribeReportJobCommand = async ( input: DescribeReportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs/{ReportJobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ReportJobId", () => input.ReportJobId!, "{ReportJobId}", false); + b.bp("/audit/report-jobs/{ReportJobId}"); + b.p("ReportJobId", () => input.ReportJobId!, "{ReportJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1310,28 +920,13 @@ export const se_DescribeReportPlanCommand = async ( input: DescribeReportPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans/{ReportPlanName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReportPlanName", - () => input.ReportPlanName!, - "{ReportPlanName}", - false - ); + b.bp("/audit/report-plans/{ReportPlanName}"); + b.p("ReportPlanName", () => input.ReportPlanName!, "{ReportPlanName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1341,28 +936,13 @@ export const se_DescribeRestoreJobCommand = async ( input: DescribeRestoreJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreJobId", - () => input.RestoreJobId!, - "{RestoreJobId}", - false - ); + b.bp("/restore-jobs/{RestoreJobId}"); + b.p("RestoreJobId", () => input.RestoreJobId!, "{RestoreJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1372,37 +952,14 @@ export const se_DisassociateRecoveryPointCommand = async ( input: DisassociateRecoveryPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/disassociate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryPointArn", - () => input.RecoveryPointArn!, - "{RecoveryPointArn}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/disassociate"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); + b.p("RecoveryPointArn", () => input.RecoveryPointArn!, "{RecoveryPointArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1412,37 +969,14 @@ export const se_DisassociateRecoveryPointFromParentCommand = async ( input: DisassociateRecoveryPointFromParentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/parentAssociation"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryPointArn", - () => input.RecoveryPointArn!, - "{RecoveryPointArn}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/parentAssociation"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); + b.p("RecoveryPointArn", () => input.RecoveryPointArn!, "{RecoveryPointArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1452,28 +986,13 @@ export const se_ExportBackupPlanTemplateCommand = async ( input: ExportBackupPlanTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/toTemplate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); + b.bp("/backup/plans/{BackupPlanId}/toTemplate"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1483,32 +1002,16 @@ export const se_GetBackupPlanCommand = async ( input: GetBackupPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); + b.bp("/backup/plans/{BackupPlanId}"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); const query: any = map({ - versionId: [, input.VersionId!], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1518,27 +1021,19 @@ export const se_GetBackupPlanFromJSONCommand = async ( input: GetBackupPlanFromJSONCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/template/json/toPlan"; + b.bp("/backup/template/json/toPlan"); let body: any; body = JSON.stringify( take(input, { BackupPlanTemplateJson: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1548,29 +1043,13 @@ export const se_GetBackupPlanFromTemplateCommand = async ( input: GetBackupPlanFromTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup/template/plans/{BackupPlanTemplateId}/toPlan"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanTemplateId", - () => input.BackupPlanTemplateId!, - "{BackupPlanTemplateId}", - false - ); + b.bp("/backup/template/plans/{BackupPlanTemplateId}/toPlan"); + b.p("BackupPlanTemplateId", () => input.BackupPlanTemplateId!, "{BackupPlanTemplateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1580,30 +1059,14 @@ export const se_GetBackupSelectionCommand = async ( input: GetBackupSelectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup/plans/{BackupPlanId}/selections/{SelectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SelectionId", () => input.SelectionId!, "{SelectionId}", false); + b.bp("/backup/plans/{BackupPlanId}/selections/{SelectionId}"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); + b.p("SelectionId", () => input.SelectionId!, "{SelectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1613,29 +1076,13 @@ export const se_GetBackupVaultAccessPolicyCommand = async ( input: GetBackupVaultAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/access-policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/access-policy"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1645,29 +1092,13 @@ export const se_GetBackupVaultNotificationsCommand = async ( input: GetBackupVaultNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/notification-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/notification-configuration"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1677,21 +1108,13 @@ export const se_GetLegalHoldCommand = async ( input: GetLegalHoldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/legal-holds/{LegalHoldId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LegalHoldId", () => input.LegalHoldId!, "{LegalHoldId}", false); + b.bp("/legal-holds/{LegalHoldId}"); + b.p("LegalHoldId", () => input.LegalHoldId!, "{LegalHoldId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1701,41 +1124,17 @@ export const se_GetRecoveryPointRestoreMetadataCommand = async ( input: GetRecoveryPointRestoreMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/restore-metadata"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryPointArn", - () => input.RecoveryPointArn!, - "{RecoveryPointArn}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/restore-metadata"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); + b.p("RecoveryPointArn", () => input.RecoveryPointArn!, "{RecoveryPointArn}", false); const query: any = map({ - backupVaultAccountId: [, input.BackupVaultAccountId!], + [_bVAI]: [, input[_BVAI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1745,28 +1144,13 @@ export const se_GetRestoreJobMetadataCommand = async ( input: GetRestoreJobMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}/metadata"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreJobId", - () => input.RestoreJobId!, - "{RestoreJobId}", - false - ); + b.bp("/restore-jobs/{RestoreJobId}/metadata"); + b.p("RestoreJobId", () => input.RestoreJobId!, "{RestoreJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1776,26 +1160,17 @@ export const se_GetRestoreTestingInferredMetadataCommand = async ( input: GetRestoreTestingInferredMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/inferred-metadata"; + b.bp("/restore-testing/inferred-metadata"); const query: any = map({ - BackupVaultAccountId: [, input.BackupVaultAccountId!], - BackupVaultName: [, __expectNonNull(input.BackupVaultName!, `BackupVaultName`)], - RecoveryPointArn: [, __expectNonNull(input.RecoveryPointArn!, `RecoveryPointArn`)], + [_BVAI]: [, input[_BVAI]!], + [_BVN]: [, __expectNonNull(input[_BVN]!, `BackupVaultName`)], + [_RPA]: [, __expectNonNull(input[_RPA]!, `RecoveryPointArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1805,29 +1180,13 @@ export const se_GetRestoreTestingPlanCommand = async ( input: GetRestoreTestingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1837,37 +1196,14 @@ export const se_GetRestoreTestingSelectionCommand = async ( input: GetRestoreTestingSelectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingSelectionName", - () => input.RestoreTestingSelectionName!, - "{RestoreTestingSelectionName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); + b.p("RestoreTestingSelectionName", () => input.RestoreTestingSelectionName!, "{RestoreTestingSelectionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1877,23 +1213,15 @@ export const se_GetSupportedResourceTypesCommand = async ( input: GetSupportedResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/supported-resource-types"; + b.bp("/supported-resource-types"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1903,47 +1231,33 @@ export const se_ListBackupJobsCommand = async ( input: ListBackupJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs"; + b.bp("/backup-jobs"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - resourceArn: [, input.ByResourceArn!], - state: [, input.ByState!], - backupVaultName: [, input.ByBackupVaultName!], - createdBefore: [ - () => input.ByCreatedBefore !== void 0, - () => (input.ByCreatedBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - createdAfter: [ - () => input.ByCreatedAfter !== void 0, - () => (input.ByCreatedAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - resourceType: [, input.ByResourceType!], - accountId: [, input.ByAccountId!], - completeAfter: [ + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_rA]: [, input[_BRA]!], + [_s]: [, input[_BS]!], + [_bVN]: [, input[_BBVN]!], + [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB]!.toISOString().split(".")[0] + "Z").toString()], + [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA]!.toISOString().split(".")[0] + "Z").toString()], + [_rT]: [, input[_BRT]!], + [_aI]: [, input[_BAI]!], + [_cAo]: [ () => input.ByCompleteAfter !== void 0, - () => (input.ByCompleteAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCAy]!.toISOString().split(".")[0] + "Z").toString(), ], - completeBefore: [ + [_cBo]: [ () => input.ByCompleteBefore !== void 0, - () => (input.ByCompleteBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCBy]!.toISOString().split(".")[0] + "Z").toString(), ], - parentJobId: [, input.ByParentJobId!], - messageCategory: [, input.ByMessageCategory!], + [_pJI]: [, input[_BPJI]!], + [_mC]: [, input[_BMC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1953,30 +1267,21 @@ export const se_ListBackupJobSummariesCommand = async ( input: ListBackupJobSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/backup-job-summaries"; + b.bp("/audit/backup-job-summaries"); const query: any = map({ - AccountId: [, input.AccountId!], - State: [, input.State!], - ResourceType: [, input.ResourceType!], - MessageCategory: [, input.MessageCategory!], - AggregationPeriod: [, input.AggregationPeriod!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_AI]: [, input[_AI]!], + [_S]: [, input[_S]!], + [_RT]: [, input[_RT]!], + [_MC]: [, input[_MC]!], + [_AP]: [, input[_AP]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1986,25 +1291,17 @@ export const se_ListBackupPlansCommand = async ( input: ListBackupPlansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans"; + b.bp("/backup/plans"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - includeDeleted: [() => input.IncludeDeleted !== void 0, () => input.IncludeDeleted!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_iD]: [() => input.IncludeDeleted !== void 0, () => input[_ID]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2014,24 +1311,16 @@ export const se_ListBackupPlanTemplatesCommand = async ( input: ListBackupPlanTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/template/plans"; + b.bp("/backup/template/plans"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2041,33 +1330,17 @@ export const se_ListBackupPlanVersionsCommand = async ( input: ListBackupPlanVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); + b.bp("/backup/plans/{BackupPlanId}/versions"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2077,33 +1350,17 @@ export const se_ListBackupSelectionsCommand = async ( input: ListBackupSelectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/selections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); + b.bp("/backup/plans/{BackupPlanId}/selections"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2113,26 +1370,18 @@ export const se_ListBackupVaultsCommand = async ( input: ListBackupVaultsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults"; + b.bp("/backup-vaults"); const query: any = map({ - vaultType: [, input.ByVaultType!], - shared: [() => input.ByShared !== void 0, () => input.ByShared!.toString()], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_vT]: [, input[_BVT]!], + [_sh]: [() => input.ByShared !== void 0, () => input[_BSy]!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2142,47 +1391,33 @@ export const se_ListCopyJobsCommand = async ( input: ListCopyJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs"; + b.bp("/copy-jobs"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - resourceArn: [, input.ByResourceArn!], - state: [, input.ByState!], - createdBefore: [ - () => input.ByCreatedBefore !== void 0, - () => (input.ByCreatedBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - createdAfter: [ - () => input.ByCreatedAfter !== void 0, - () => (input.ByCreatedAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - resourceType: [, input.ByResourceType!], - destinationVaultArn: [, input.ByDestinationVaultArn!], - accountId: [, input.ByAccountId!], - completeBefore: [ + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_rA]: [, input[_BRA]!], + [_s]: [, input[_BS]!], + [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB]!.toISOString().split(".")[0] + "Z").toString()], + [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA]!.toISOString().split(".")[0] + "Z").toString()], + [_rT]: [, input[_BRT]!], + [_dVA]: [, input[_BDVA]!], + [_aI]: [, input[_BAI]!], + [_cBo]: [ () => input.ByCompleteBefore !== void 0, - () => (input.ByCompleteBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCBy]!.toISOString().split(".")[0] + "Z").toString(), ], - completeAfter: [ + [_cAo]: [ () => input.ByCompleteAfter !== void 0, - () => (input.ByCompleteAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCAy]!.toISOString().split(".")[0] + "Z").toString(), ], - parentJobId: [, input.ByParentJobId!], - messageCategory: [, input.ByMessageCategory!], + [_pJI]: [, input[_BPJI]!], + [_mC]: [, input[_BMC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2192,30 +1427,21 @@ export const se_ListCopyJobSummariesCommand = async ( input: ListCopyJobSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/copy-job-summaries"; + b.bp("/audit/copy-job-summaries"); const query: any = map({ - AccountId: [, input.AccountId!], - State: [, input.State!], - ResourceType: [, input.ResourceType!], - MessageCategory: [, input.MessageCategory!], - AggregationPeriod: [, input.AggregationPeriod!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_AI]: [, input[_AI]!], + [_S]: [, input[_S]!], + [_RT]: [, input[_RT]!], + [_MC]: [, input[_MC]!], + [_AP]: [, input[_AP]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2225,24 +1451,16 @@ export const se_ListFrameworksCommand = async ( input: ListFrameworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks"; + b.bp("/audit/frameworks"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2252,24 +1470,16 @@ export const se_ListLegalHoldsCommand = async ( input: ListLegalHoldsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/legal-holds"; + b.bp("/legal-holds"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2279,24 +1489,16 @@ export const se_ListProtectedResourcesCommand = async ( input: ListProtectedResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources"; + b.bp("/resources"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2306,35 +1508,18 @@ export const se_ListProtectedResourcesByBackupVaultCommand = async ( input: ListProtectedResourcesByBackupVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/resources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/resources"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); const query: any = map({ - backupVaultAccountId: [, input.BackupVaultAccountId!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_bVAI]: [, input[_BVAI]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2344,47 +1529,24 @@ export const se_ListRecoveryPointsByBackupVaultCommand = async ( input: ListRecoveryPointsByBackupVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/recovery-points"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/recovery-points"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); const query: any = map({ - backupVaultAccountId: [, input.BackupVaultAccountId!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - resourceArn: [, input.ByResourceArn!], - resourceType: [, input.ByResourceType!], - backupPlanId: [, input.ByBackupPlanId!], - createdBefore: [ - () => input.ByCreatedBefore !== void 0, - () => (input.ByCreatedBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - createdAfter: [ - () => input.ByCreatedAfter !== void 0, - () => (input.ByCreatedAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - parentRecoveryPointArn: [, input.ByParentRecoveryPointArn!], + [_bVAI]: [, input[_BVAI]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_rA]: [, input[_BRA]!], + [_rT]: [, input[_BRT]!], + [_bPI]: [, input[_BBPI]!], + [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB]!.toISOString().split(".")[0] + "Z").toString()], + [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA]!.toISOString().split(".")[0] + "Z").toString()], + [_pRPA]: [, input[_BPRPA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2394,27 +1556,17 @@ export const se_ListRecoveryPointsByLegalHoldCommand = async ( input: ListRecoveryPointsByLegalHoldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/legal-holds/{LegalHoldId}/recovery-points"; - resolvedPath = __resolvedPath(resolvedPath, input, "LegalHoldId", () => input.LegalHoldId!, "{LegalHoldId}", false); + b.bp("/legal-holds/{LegalHoldId}/recovery-points"); + b.p("LegalHoldId", () => input.LegalHoldId!, "{LegalHoldId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2424,26 +1576,17 @@ export const se_ListRecoveryPointsByResourceCommand = async ( input: ListRecoveryPointsByResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/recovery-points"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resources/{ResourceArn}/recovery-points"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2453,34 +1596,26 @@ export const se_ListReportJobsCommand = async ( input: ListReportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs"; + b.bp("/audit/report-jobs"); const query: any = map({ - ReportPlanName: [, input.ByReportPlanName!], - CreationBefore: [ + [_RPN]: [, input[_BRPN]!], + [_CB]: [ () => input.ByCreationBefore !== void 0, - () => (input.ByCreationBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCByr]!.toISOString().split(".")[0] + "Z").toString(), ], - CreationAfter: [ + [_CA]: [ () => input.ByCreationAfter !== void 0, - () => (input.ByCreationAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCAyr]!.toISOString().split(".")[0] + "Z").toString(), ], - Status: [, input.ByStatus!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_St]: [, input[_BSyt]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2490,24 +1625,16 @@ export const se_ListReportPlansCommand = async ( input: ListReportPlansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans"; + b.bp("/audit/report-plans"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2517,44 +1644,30 @@ export const se_ListRestoreJobsCommand = async ( input: ListRestoreJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs"; + b.bp("/restore-jobs"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - accountId: [, input.ByAccountId!], - resourceType: [, input.ByResourceType!], - createdBefore: [ - () => input.ByCreatedBefore !== void 0, - () => (input.ByCreatedBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - createdAfter: [ - () => input.ByCreatedAfter !== void 0, - () => (input.ByCreatedAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - status: [, input.ByStatus!], - completeBefore: [ + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_aI]: [, input[_BAI]!], + [_rT]: [, input[_BRT]!], + [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB]!.toISOString().split(".")[0] + "Z").toString()], + [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA]!.toISOString().split(".")[0] + "Z").toString()], + [_st]: [, input[_BSyt]!], + [_cBo]: [ () => input.ByCompleteBefore !== void 0, - () => (input.ByCompleteBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCBy]!.toISOString().split(".")[0] + "Z").toString(), ], - completeAfter: [ + [_cAo]: [ () => input.ByCompleteAfter !== void 0, - () => (input.ByCompleteAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCAy]!.toISOString().split(".")[0] + "Z").toString(), ], - restoreTestingPlanArn: [, input.ByRestoreTestingPlanArn!], + [_rTPA]: [, input[_BRTPA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2564,35 +1677,26 @@ export const se_ListRestoreJobsByProtectedResourceCommand = async ( input: ListRestoreJobsByProtectedResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/restore-jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resources/{ResourceArn}/restore-jobs"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - status: [, input.ByStatus!], - recoveryPointCreationDateAfter: [ + [_st]: [, input[_BSyt]!], + [_rPCDA]: [ () => input.ByRecoveryPointCreationDateAfter !== void 0, - () => (input.ByRecoveryPointCreationDateAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BRPCDA]!.toISOString().split(".")[0] + "Z").toString(), ], - recoveryPointCreationDateBefore: [ + [_rPCDB]: [ () => input.ByRecoveryPointCreationDateBefore !== void 0, - () => (input.ByRecoveryPointCreationDateBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BRPCDB]!.toISOString().split(".")[0] + "Z").toString(), ], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2602,29 +1706,20 @@ export const se_ListRestoreJobSummariesCommand = async ( input: ListRestoreJobSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/restore-job-summaries"; + b.bp("/audit/restore-job-summaries"); const query: any = map({ - AccountId: [, input.AccountId!], - State: [, input.State!], - ResourceType: [, input.ResourceType!], - AggregationPeriod: [, input.AggregationPeriod!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_AI]: [, input[_AI]!], + [_S]: [, input[_S]!], + [_RT]: [, input[_RT]!], + [_AP]: [, input[_AP]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2634,24 +1729,16 @@ export const se_ListRestoreTestingPlansCommand = async ( input: ListRestoreTestingPlansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/plans"; + b.bp("/restore-testing/plans"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2661,34 +1748,17 @@ export const se_ListRestoreTestingSelectionsCommand = async ( input: ListRestoreTestingSelectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}/selections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2698,25 +1768,17 @@ export const se_ListTagsCommand = async ( input: ListTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2726,36 +1788,20 @@ export const se_PutBackupVaultAccessPolicyCommand = async ( input: PutBackupVaultAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/access-policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/access-policy"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; body = JSON.stringify( take(input, { Policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2765,21 +1811,12 @@ export const se_PutBackupVaultLockConfigurationCommand = async ( input: PutBackupVaultLockConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/vault-lock"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/vault-lock"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2788,15 +1825,8 @@ export const se_PutBackupVaultLockConfigurationCommand = async ( MinRetentionDays: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2806,21 +1836,12 @@ export const se_PutBackupVaultNotificationsCommand = async ( input: PutBackupVaultNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/notification-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/notification-configuration"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2828,15 +1849,8 @@ export const se_PutBackupVaultNotificationsCommand = async ( SNSTopicArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2846,20 +1860,12 @@ export const se_PutRestoreValidationResultCommand = async ( input: PutRestoreValidationResultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}/validations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreJobId", - () => input.RestoreJobId!, - "{RestoreJobId}", - false - ); + b.bp("/restore-jobs/{RestoreJobId}/validations"); + b.p("RestoreJobId", () => input.RestoreJobId!, "{RestoreJobId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2867,15 +1873,8 @@ export const se_PutRestoreValidationResultCommand = async ( ValidationStatusMessage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2885,11 +1884,11 @@ export const se_StartBackupJobCommand = async ( input: StartBackupJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs"; + b.bp("/backup-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -2904,15 +1903,8 @@ export const se_StartBackupJobCommand = async ( StartWindowMinutes: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2922,11 +1914,11 @@ export const se_StartCopyJobCommand = async ( input: StartCopyJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs"; + b.bp("/copy-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -2938,15 +1930,8 @@ export const se_StartCopyJobCommand = async ( SourceBackupVaultName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2956,35 +1941,20 @@ export const se_StartReportJobCommand = async ( input: StartReportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs/{ReportPlanName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReportPlanName", - () => input.ReportPlanName!, - "{ReportPlanName}", - false - ); + b.bp("/audit/report-jobs/{ReportPlanName}"); + b.p("ReportPlanName", () => input.ReportPlanName!, "{ReportPlanName}", false); let body: any; body = JSON.stringify( take(input, { IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2994,11 +1964,11 @@ export const se_StartRestoreJobCommand = async ( input: StartRestoreJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs"; + b.bp("/restore-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -3010,15 +1980,8 @@ export const se_StartRestoreJobCommand = async ( ResourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3028,21 +1991,13 @@ export const se_StopBackupJobCommand = async ( input: StopBackupJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs/{BackupJobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); + b.bp("/backup-jobs/{BackupJobId}"); + b.p("BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3052,27 +2007,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3082,27 +2030,20 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untag/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/untag/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { TagKeyList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3112,35 +2053,20 @@ export const se_UpdateBackupPlanCommand = async ( input: UpdateBackupPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupPlanId", - () => input.BackupPlanId!, - "{BackupPlanId}", - false - ); + b.bp("/backup/plans/{BackupPlanId}"); + b.p("BackupPlanId", () => input.BackupPlanId!, "{BackupPlanId}", false); let body: any; body = JSON.stringify( take(input, { BackupPlan: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3150,20 +2076,12 @@ export const se_UpdateFrameworkCommand = async ( input: UpdateFrameworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks/{FrameworkName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FrameworkName", - () => input.FrameworkName!, - "{FrameworkName}", - false - ); + b.bp("/audit/frameworks/{FrameworkName}"); + b.p("FrameworkName", () => input.FrameworkName!, "{FrameworkName}", false); let body: any; body = JSON.stringify( take(input, { @@ -3172,15 +2090,8 @@ export const se_UpdateFrameworkCommand = async ( IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3190,26 +2101,19 @@ export const se_UpdateGlobalSettingsCommand = async ( input: UpdateGlobalSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings"; + b.bp("/global-settings"); let body: any; body = JSON.stringify( take(input, { GlobalSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3219,44 +2123,21 @@ export const se_UpdateRecoveryPointLifecycleCommand = async ( input: UpdateRecoveryPointLifecycleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BackupVaultName", - () => input.BackupVaultName!, - "{BackupVaultName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryPointArn", - () => input.RecoveryPointArn!, - "{RecoveryPointArn}", - false - ); + b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}"); + b.p("BackupVaultName", () => input.BackupVaultName!, "{BackupVaultName}", false); + b.p("RecoveryPointArn", () => input.RecoveryPointArn!, "{RecoveryPointArn}", false); let body: any; body = JSON.stringify( take(input, { Lifecycle: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3266,11 +2147,11 @@ export const se_UpdateRegionSettingsCommand = async ( input: UpdateRegionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account-settings"; + b.bp("/account-settings"); let body: any; body = JSON.stringify( take(input, { @@ -3278,15 +2159,8 @@ export const se_UpdateRegionSettingsCommand = async ( ResourceTypeOptInPreference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3296,20 +2170,12 @@ export const se_UpdateReportPlanCommand = async ( input: UpdateReportPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans/{ReportPlanName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReportPlanName", - () => input.ReportPlanName!, - "{ReportPlanName}", - false - ); + b.bp("/audit/report-plans/{ReportPlanName}"); + b.p("ReportPlanName", () => input.ReportPlanName!, "{ReportPlanName}", false); let body: any; body = JSON.stringify( take(input, { @@ -3319,15 +2185,8 @@ export const se_UpdateReportPlanCommand = async ( ReportSetting: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3337,36 +2196,20 @@ export const se_UpdateRestoreTestingPlanCommand = async ( input: UpdateRestoreTestingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); let body: any; body = JSON.stringify( take(input, { RestoreTestingPlan: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3376,44 +2219,21 @@ export const se_UpdateRestoreTestingSelectionCommand = async ( input: UpdateRestoreTestingSelectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingPlanName", - () => input.RestoreTestingPlanName!, - "{RestoreTestingPlanName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RestoreTestingSelectionName", - () => input.RestoreTestingSelectionName!, - "{RestoreTestingSelectionName}", - false - ); + b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"); + b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName!, "{RestoreTestingPlanName}", false); + b.p("RestoreTestingSelectionName", () => input.RestoreTestingSelectionName!, "{RestoreTestingSelectionName}", false); let body: any; body = JSON.stringify( take(input, { RestoreTestingSelection: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -9727,6 +8547,75 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AI = "AccountId"; +const _AP = "AggregationPeriod"; +const _BAI = "ByAccountId"; +const _BBPI = "ByBackupPlanId"; +const _BBVN = "ByBackupVaultName"; +const _BCA = "ByCreatedAfter"; +const _BCAy = "ByCompleteAfter"; +const _BCAyr = "ByCreationAfter"; +const _BCB = "ByCreatedBefore"; +const _BCBy = "ByCompleteBefore"; +const _BCByr = "ByCreationBefore"; +const _BDVA = "ByDestinationVaultArn"; +const _BMC = "ByMessageCategory"; +const _BPJI = "ByParentJobId"; +const _BPRPA = "ByParentRecoveryPointArn"; +const _BRA = "ByResourceArn"; +const _BRPCDA = "ByRecoveryPointCreationDateAfter"; +const _BRPCDB = "ByRecoveryPointCreationDateBefore"; +const _BRPN = "ByReportPlanName"; +const _BRT = "ByResourceType"; +const _BRTPA = "ByRestoreTestingPlanArn"; +const _BS = "ByState"; +const _BSy = "ByShared"; +const _BSyt = "ByStatus"; +const _BVAI = "BackupVaultAccountId"; +const _BVN = "BackupVaultName"; +const _BVT = "ByVaultType"; +const _CA = "CreationAfter"; +const _CB = "CreationBefore"; +const _CD = "CancelDescription"; +const _ID = "IncludeDeleted"; +const _MC = "MessageCategory"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RPA = "RecoveryPointArn"; +const _RPN = "ReportPlanName"; +const _RRID = "RetainRecordInDays"; +const _RT = "ResourceType"; +const _S = "State"; +const _St = "Status"; +const _VI = "VersionId"; +const _aI = "accountId"; +const _bPI = "backupPlanId"; +const _bVAI = "backupVaultAccountId"; +const _bVN = "backupVaultName"; +const _cA = "createdAfter"; +const _cAo = "completeAfter"; +const _cB = "createdBefore"; +const _cBo = "completeBefore"; +const _cD = "cancelDescription"; +const _dVA = "destinationVaultArn"; +const _iD = "includeDeleted"; +const _mC = "messageCategory"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pJI = "parentJobId"; +const _pRPA = "parentRecoveryPointArn"; +const _rA = "resourceArn"; +const _rPCDA = "recoveryPointCreationDateAfter"; +const _rPCDB = "recoveryPointCreationDateBefore"; +const _rRID = "retainRecordInDays"; +const _rT = "resourceType"; +const _rTPA = "restoreTestingPlanArn"; +const _s = "state"; +const _sh = "shared"; +const _st = "status"; +const _vI = "versionId"; +const _vT = "vaultType"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-backupstorage/package.json b/clients/client-backupstorage/package.json index fd1cabdafd70..08c4765f1e7b 100644 --- a/clients/client-backupstorage/package.json +++ b/clients/client-backupstorage/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-backupstorage/src/models/models_0.ts b/clients/client-backupstorage/src/models/models_0.ts index d25ccdb21dc6..37dc4a0472c3 100644 --- a/clients/client-backupstorage/src/models/models_0.ts +++ b/clients/client-backupstorage/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { BackupStorageServiceException as __BaseException } from "./BackupStorageServiceException"; diff --git a/clients/client-backupstorage/src/protocols/Aws_restJson1.ts b/clients/client-backupstorage/src/protocols/Aws_restJson1.ts index 2f59ca07e640..9d26f1868154 100644 --- a/clients/client-backupstorage/src/protocols/Aws_restJson1.ts +++ b/clients/client-backupstorage/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -54,23 +55,14 @@ export const se_DeleteObjectCommand = async ( input: DeleteObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-jobs/{BackupJobId}/object/{ObjectName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ObjectName", () => input.ObjectName!, "{ObjectName}", false); + b.bp("/backup-jobs/{BackupJobId}/object/{ObjectName}"); + b.p("BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); + b.p("ObjectName", () => input.ObjectName!, "{ObjectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -80,30 +72,14 @@ export const se_GetChunkCommand = async ( input: GetChunkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-jobs/{StorageJobId}/chunk/{ChunkToken}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "StorageJobId", - () => input.StorageJobId!, - "{StorageJobId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChunkToken", () => input.ChunkToken!, "{ChunkToken}", false); + b.bp("/restore-jobs/{StorageJobId}/chunk/{ChunkToken}"); + b.p("StorageJobId", () => input.StorageJobId!, "{StorageJobId}", false); + b.p("ChunkToken", () => input.ChunkToken!, "{ChunkToken}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -113,30 +89,14 @@ export const se_GetObjectMetadataCommand = async ( input: GetObjectMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-jobs/{StorageJobId}/object/{ObjectToken}/metadata"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "StorageJobId", - () => input.StorageJobId!, - "{StorageJobId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ObjectToken", () => input.ObjectToken!, "{ObjectToken}", false); + b.bp("/restore-jobs/{StorageJobId}/object/{ObjectToken}/metadata"); + b.p("StorageJobId", () => input.StorageJobId!, "{StorageJobId}", false); + b.p("ObjectToken", () => input.ObjectToken!, "{ObjectToken}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -146,35 +106,18 @@ export const se_ListChunksCommand = async ( input: ListChunksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/restore-jobs/{StorageJobId}/chunks/{ObjectToken}/list"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "StorageJobId", - () => input.StorageJobId!, - "{StorageJobId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ObjectToken", () => input.ObjectToken!, "{ObjectToken}", false); + b.bp("/restore-jobs/{StorageJobId}/chunks/{ObjectToken}/list"); + b.p("StorageJobId", () => input.StorageJobId!, "{StorageJobId}", false); + b.p("ObjectToken", () => input.ObjectToken!, "{ObjectToken}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -184,43 +127,21 @@ export const se_ListObjectsCommand = async ( input: ListObjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{StorageJobId}/objects/list"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "StorageJobId", - () => input.StorageJobId!, - "{StorageJobId}", - false - ); + b.bp("/restore-jobs/{StorageJobId}/objects/list"); + b.p("StorageJobId", () => input.StorageJobId!, "{StorageJobId}", false); const query: any = map({ - "starting-object-name": [, input.StartingObjectName!], - "starting-object-prefix": [, input.StartingObjectPrefix!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], - "created-before": [ - () => input.CreatedBefore !== void 0, - () => (input.CreatedBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - "created-after": [ - () => input.CreatedAfter !== void 0, - () => (input.CreatedAfter!.toISOString().split(".")[0] + "Z").toString(), - ], + [_son]: [, input[_SON]!], + [_sop]: [, input[_SOP]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], + [_cb]: [() => input.CreatedBefore !== void 0, () => (input[_CB]!.toISOString().split(".")[0] + "Z").toString()], + [_ca]: [() => input.CreatedAfter !== void 0, () => (input[_CA]!.toISOString().split(".")[0] + "Z").toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -230,38 +151,28 @@ export const se_NotifyObjectCompleteCommand = async ( input: NotifyObjectCompleteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-jobs/{BackupJobId}/object/{UploadId}/complete"; - resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UploadId", () => input.UploadId!, "{UploadId}", false); + b.bp("/backup-jobs/{BackupJobId}/object/{UploadId}/complete"); + b.p("BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); + b.p("UploadId", () => input.UploadId!, "{UploadId}", false); const query: any = map({ - checksum: [, __expectNonNull(input.ObjectChecksum!, `ObjectChecksum`)], - "checksum-algorithm": [, __expectNonNull(input.ObjectChecksumAlgorithm!, `ObjectChecksumAlgorithm`)], - "metadata-string": [, input.MetadataString!], - "metadata-blob-length": [() => input.MetadataBlobLength !== void 0, () => input.MetadataBlobLength!.toString()], - "metadata-checksum": [, input.MetadataBlobChecksum!], - "metadata-checksum-algorithm": [, input.MetadataBlobChecksumAlgorithm!], + [_c]: [, __expectNonNull(input[_OC]!, `ObjectChecksum`)], + [_ca_]: [, __expectNonNull(input[_OCA]!, `ObjectChecksumAlgorithm`)], + [_ms]: [, input[_MS]!], + [_mbl]: [() => input.MetadataBlobLength !== void 0, () => input[_MBL]!.toString()], + [_mc]: [, input[_MBC]!], + [_mca]: [, input[_MBCA]!], }); let body: any; if (input.MetadataBlob !== undefined) { body = input.MetadataBlob; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -271,43 +182,26 @@ export const se_PutChunkCommand = async ( input: PutChunkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-jobs/{BackupJobId}/chunk/{UploadId}/{ChunkIndex}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UploadId", () => input.UploadId!, "{UploadId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChunkIndex", - () => input.ChunkIndex!.toString(), - "{ChunkIndex}", - false - ); + b.bp("/backup-jobs/{BackupJobId}/chunk/{UploadId}/{ChunkIndex}"); + b.p("BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); + b.p("UploadId", () => input.UploadId!, "{UploadId}", false); + b.p("ChunkIndex", () => input.ChunkIndex!.toString(), "{ChunkIndex}", false); const query: any = map({ - length: [__expectNonNull(input.Length, `Length`) != null, () => input.Length!.toString()], - checksum: [, __expectNonNull(input.Checksum!, `Checksum`)], - "checksum-algorithm": [, __expectNonNull(input.ChecksumAlgorithm!, `ChecksumAlgorithm`)], + [_l]: [__expectNonNull(input.Length, `Length`) != null, () => input[_L]!.toString()], + [_c]: [, __expectNonNull(input[_C]!, `Checksum`)], + [_ca_]: [, __expectNonNull(input[_CAh]!, `ChecksumAlgorithm`)], }); let body: any; if (input.Data !== undefined) { body = input.Data; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -317,39 +211,29 @@ export const se_PutObjectCommand = async ( input: PutObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-jobs/{BackupJobId}/object/{ObjectName}/put-object"; - resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ObjectName", () => input.ObjectName!, "{ObjectName}", false); + b.bp("/backup-jobs/{BackupJobId}/object/{ObjectName}/put-object"); + b.p("BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); + b.p("ObjectName", () => input.ObjectName!, "{ObjectName}", false); const query: any = map({ - "metadata-string": [, input.MetadataString!], - length: [() => input.InlineChunkLength !== void 0, () => input.InlineChunkLength!.toString()], - checksum: [, input.InlineChunkChecksum!], - "checksum-algorithm": [, input.InlineChunkChecksumAlgorithm!], - "object-checksum": [, input.ObjectChecksum!], - "object-checksum-algorithm": [, input.ObjectChecksumAlgorithm!], - throwOnDuplicate: [() => input.ThrowOnDuplicate !== void 0, () => input.ThrowOnDuplicate!.toString()], + [_ms]: [, input[_MS]!], + [_l]: [() => input.InlineChunkLength !== void 0, () => input[_ICL]!.toString()], + [_c]: [, input[_ICC]!], + [_ca_]: [, input[_ICCA]!], + [_oc]: [, input[_OC]!], + [_oca]: [, input[_OCA]!], + [_tOD]: [() => input.ThrowOnDuplicate !== void 0, () => input[_TOD]!.toString()], }); let body: any; if (input.InlineChunk !== undefined) { body = input.InlineChunk; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -359,30 +243,21 @@ export const se_StartObjectCommand = async ( input: StartObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/backup-jobs/{BackupJobId}/object/{ObjectName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ObjectName", () => input.ObjectName!, "{ObjectName}", false); + b.bp("/backup-jobs/{BackupJobId}/object/{ObjectName}"); + b.p("BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false); + b.p("ObjectName", () => input.ObjectName!, "{ObjectName}", false); let body: any; body = JSON.stringify( take(input, { ThrowOnDuplicate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -458,12 +333,9 @@ export const de_GetChunkCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Length: [ - () => void 0 !== output.headers["x-amz-data-length"], - () => __strictParseLong(output.headers["x-amz-data-length"]), - ], - Checksum: [, output.headers["x-amz-checksum"]], - ChecksumAlgorithm: [, output.headers["x-amz-checksum-algorithm"]], + [_L]: [() => void 0 !== output.headers[_xadl], () => __strictParseLong(output.headers[_xadl])], + [_C]: [, output.headers[_xac]], + [_CAh]: [, output.headers[_xaca]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -527,13 +399,10 @@ export const de_GetObjectMetadataCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - MetadataString: [, output.headers["x-amz-metadata-string"]], - MetadataBlobLength: [ - () => void 0 !== output.headers["x-amz-data-length"], - () => __strictParseLong(output.headers["x-amz-data-length"]), - ], - MetadataBlobChecksum: [, output.headers["x-amz-checksum"]], - MetadataBlobChecksumAlgorithm: [, output.headers["x-amz-checksum-algorithm"]], + [_MS]: [, output.headers[_xams]], + [_MBL]: [() => void 0 !== output.headers[_xadl], () => __strictParseLong(output.headers[_xadl])], + [_MBC]: [, output.headers[_xac]], + [_MBCA]: [, output.headers[_xaca]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -1221,6 +1090,46 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _C = "Checksum"; +const _CA = "CreatedAfter"; +const _CAh = "ChecksumAlgorithm"; +const _CB = "CreatedBefore"; +const _ICC = "InlineChunkChecksum"; +const _ICCA = "InlineChunkChecksumAlgorithm"; +const _ICL = "InlineChunkLength"; +const _L = "Length"; +const _MBC = "MetadataBlobChecksum"; +const _MBCA = "MetadataBlobChecksumAlgorithm"; +const _MBL = "MetadataBlobLength"; +const _MR = "MaxResults"; +const _MS = "MetadataString"; +const _NT = "NextToken"; +const _OC = "ObjectChecksum"; +const _OCA = "ObjectChecksumAlgorithm"; +const _SON = "StartingObjectName"; +const _SOP = "StartingObjectPrefix"; +const _TOD = "ThrowOnDuplicate"; +const _c = "checksum"; +const _ca = "created-after"; +const _ca_ = "checksum-algorithm"; +const _cb = "created-before"; +const _l = "length"; +const _mbl = "metadata-blob-length"; +const _mc = "metadata-checksum"; +const _mca = "metadata-checksum-algorithm"; +const _mr = "max-results"; +const _ms = "metadata-string"; +const _nt = "next-token"; +const _oc = "object-checksum"; +const _oca = "object-checksum-algorithm"; +const _son = "starting-object-name"; +const _sop = "starting-object-prefix"; +const _tOD = "throwOnDuplicate"; +const _xac = "x-amz-checksum"; +const _xaca = "x-amz-checksum-algorithm"; +const _xadl = "x-amz-data-length"; +const _xams = "x-amz-metadata-string"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-batch/package.json b/clients/client-batch/package.json index 2c5e0ba18121..5b2b533d658d 100644 --- a/clients/client-batch/package.json +++ b/clients/client-batch/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-batch/src/protocols/Aws_restJson1.ts b/clients/client-batch/src/protocols/Aws_restJson1.ts index 478c59ef3d3a..4c110a316830 100644 --- a/clients/client-batch/src/protocols/Aws_restJson1.ts +++ b/clients/client-batch/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -154,11 +155,11 @@ export const se_CancelJobCommand = async ( input: CancelJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/canceljob"; + b.bp("/v1/canceljob"); let body: any; body = JSON.stringify( take(input, { @@ -166,15 +167,8 @@ export const se_CancelJobCommand = async ( reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -184,12 +178,11 @@ export const se_CreateComputeEnvironmentCommand = async ( input: CreateComputeEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/createcomputeenvironment"; + b.bp("/v1/createcomputeenvironment"); let body: any; body = JSON.stringify( take(input, { @@ -203,15 +196,8 @@ export const se_CreateComputeEnvironmentCommand = async ( unmanagedvCpus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -221,11 +207,11 @@ export const se_CreateJobQueueCommand = async ( input: CreateJobQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/createjobqueue"; + b.bp("/v1/createjobqueue"); let body: any; body = JSON.stringify( take(input, { @@ -237,15 +223,8 @@ export const se_CreateJobQueueCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -255,12 +234,11 @@ export const se_CreateSchedulingPolicyCommand = async ( input: CreateSchedulingPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/createschedulingpolicy"; + b.bp("/v1/createschedulingpolicy"); let body: any; body = JSON.stringify( take(input, { @@ -269,15 +247,8 @@ export const se_CreateSchedulingPolicyCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,27 +258,19 @@ export const se_DeleteComputeEnvironmentCommand = async ( input: DeleteComputeEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deletecomputeenvironment"; + b.bp("/v1/deletecomputeenvironment"); let body: any; body = JSON.stringify( take(input, { computeEnvironment: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,26 +280,19 @@ export const se_DeleteJobQueueCommand = async ( input: DeleteJobQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deletejobqueue"; + b.bp("/v1/deletejobqueue"); let body: any; body = JSON.stringify( take(input, { jobQueue: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -346,27 +302,19 @@ export const se_DeleteSchedulingPolicyCommand = async ( input: DeleteSchedulingPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deleteschedulingpolicy"; + b.bp("/v1/deleteschedulingpolicy"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -376,27 +324,19 @@ export const se_DeregisterJobDefinitionCommand = async ( input: DeregisterJobDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deregisterjobdefinition"; + b.bp("/v1/deregisterjobdefinition"); let body: any; body = JSON.stringify( take(input, { jobDefinition: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -406,12 +346,11 @@ export const se_DescribeComputeEnvironmentsCommand = async ( input: DescribeComputeEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describecomputeenvironments"; + b.bp("/v1/describecomputeenvironments"); let body: any; body = JSON.stringify( take(input, { @@ -420,15 +359,8 @@ export const se_DescribeComputeEnvironmentsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -438,12 +370,11 @@ export const se_DescribeJobDefinitionsCommand = async ( input: DescribeJobDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobdefinitions"; + b.bp("/v1/describejobdefinitions"); let body: any; body = JSON.stringify( take(input, { @@ -454,15 +385,8 @@ export const se_DescribeJobDefinitionsCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -472,11 +396,11 @@ export const se_DescribeJobQueuesCommand = async ( input: DescribeJobQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobqueues"; + b.bp("/v1/describejobqueues"); let body: any; body = JSON.stringify( take(input, { @@ -485,15 +409,8 @@ export const se_DescribeJobQueuesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -503,26 +420,19 @@ export const se_DescribeJobsCommand = async ( input: DescribeJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobs"; + b.bp("/v1/describejobs"); let body: any; body = JSON.stringify( take(input, { jobs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -532,27 +442,19 @@ export const se_DescribeSchedulingPoliciesCommand = async ( input: DescribeSchedulingPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describeschedulingpolicies"; + b.bp("/v1/describeschedulingpolicies"); let body: any; body = JSON.stringify( take(input, { arns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -562,11 +464,11 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/listjobs"; + b.bp("/v1/listjobs"); let body: any; body = JSON.stringify( take(input, { @@ -579,15 +481,8 @@ export const se_ListJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -597,12 +492,11 @@ export const se_ListSchedulingPoliciesCommand = async ( input: ListSchedulingPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/listschedulingpolicies"; + b.bp("/v1/listschedulingpolicies"); let body: any; body = JSON.stringify( take(input, { @@ -610,15 +504,8 @@ export const se_ListSchedulingPoliciesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -628,20 +515,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -651,12 +531,11 @@ export const se_RegisterJobDefinitionCommand = async ( input: RegisterJobDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registerjobdefinition"; + b.bp("/v1/registerjobdefinition"); let body: any; body = JSON.stringify( take(input, { @@ -674,15 +553,8 @@ export const se_RegisterJobDefinitionCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -692,11 +564,11 @@ export const se_SubmitJobCommand = async ( input: SubmitJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/submitjob"; + b.bp("/v1/submitjob"); let body: any; body = JSON.stringify( take(input, { @@ -717,15 +589,8 @@ export const se_SubmitJobCommand = async ( timeout: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -735,27 +600,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -765,11 +623,11 @@ export const se_TerminateJobCommand = async ( input: TerminateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/terminatejob"; + b.bp("/v1/terminatejob"); let body: any; body = JSON.stringify( take(input, { @@ -777,15 +635,8 @@ export const se_TerminateJobCommand = async ( reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -795,27 +646,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -825,12 +668,11 @@ export const se_UpdateComputeEnvironmentCommand = async ( input: UpdateComputeEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/updatecomputeenvironment"; + b.bp("/v1/updatecomputeenvironment"); let body: any; body = JSON.stringify( take(input, { @@ -842,15 +684,8 @@ export const se_UpdateComputeEnvironmentCommand = async ( updatePolicy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -860,11 +695,11 @@ export const se_UpdateJobQueueCommand = async ( input: UpdateJobQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/updatejobqueue"; + b.bp("/v1/updatejobqueue"); let body: any; body = JSON.stringify( take(input, { @@ -875,15 +710,8 @@ export const se_UpdateJobQueueCommand = async ( state: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -893,12 +721,11 @@ export const se_UpdateSchedulingPolicyCommand = async ( input: UpdateSchedulingPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/updateschedulingpolicy"; + b.bp("/v1/updateschedulingpolicy"); let body: any; body = JSON.stringify( take(input, { @@ -906,15 +733,8 @@ export const se_UpdateSchedulingPolicyCommand = async ( fairsharePolicy: (_) => se_FairsharePolicy(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2602,6 +2422,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-bedrock-agent-runtime/package.json b/clients/client-bedrock-agent-runtime/package.json index b7f7183b9675..957d00af6445 100644 --- a/clients/client-bedrock-agent-runtime/package.json +++ b/clients/client-bedrock-agent-runtime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts index 5397d102ad6d..5d0d5ce21fe1 100644 --- a/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -67,23 +68,14 @@ export const se_InvokeAgentCommand = async ( input: InvokeAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentAliases/{agentAliasId}/sessions/{sessionId}/text"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentAliasId", - () => input.agentAliasId!, - "{agentAliasId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/agents/{agentId}/agentAliases/{agentAliasId}/sessions/{sessionId}/text"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentAliasId", () => input.agentAliasId!, "{agentAliasId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -93,15 +85,8 @@ export const se_InvokeAgentCommand = async ( sessionState: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -111,21 +96,12 @@ export const se_RetrieveCommand = async ( input: RetrieveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/retrieve"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/retrieve"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -134,15 +110,8 @@ export const se_RetrieveCommand = async ( retrievalQuery: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -152,11 +121,11 @@ export const se_RetrieveAndGenerateCommand = async ( input: RetrieveAndGenerateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/retrieveAndGenerate"; + b.bp("/retrieveAndGenerate"); let body: any; body = JSON.stringify( take(input, { @@ -166,15 +135,8 @@ export const se_RetrieveAndGenerateCommand = async ( sessionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -189,8 +151,8 @@ export const de_InvokeAgentCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["x-amzn-bedrock-agent-content-type"]], - sessionId: [, output.headers["x-amz-bedrock-agent-session-id"]], + [_cT]: [, output.headers[_xabact]], + [_sI]: [, output.headers[_xabasi]], }); const data: any = output.body; contents.completion = de_ResponseStream(data, context); @@ -987,6 +949,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cT = "contentType"; +const _sI = "sessionId"; +const _xabact = "x-amzn-bedrock-agent-content-type"; +const _xabasi = "x-amz-bedrock-agent-session-id"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-bedrock-agent/package.json b/clients/client-bedrock-agent/package.json index 95a22df62e80..dde193001315 100644 --- a/clients/client-bedrock-agent/package.json +++ b/clients/client-bedrock-agent/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts index 18546727e7f6..c67960172323 100644 --- a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -166,22 +167,13 @@ export const se_AssociateAgentKnowledgeBaseCommand = async ( input: AssociateAgentKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -190,15 +182,8 @@ export const se_AssociateAgentKnowledgeBaseCommand = async ( knowledgeBaseState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -208,11 +193,11 @@ export const se_CreateAgentCommand = async ( input: CreateAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents"; + b.bp("/agents"); let body: any; body = JSON.stringify( take(input, { @@ -228,15 +213,8 @@ export const se_CreateAgentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -246,22 +224,13 @@ export const se_CreateAgentActionGroupCommand = async ( input: CreateAgentActionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/actiongroups"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -274,15 +243,8 @@ export const se_CreateAgentActionGroupCommand = async ( parentActionGroupSignature: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -292,13 +254,12 @@ export const se_CreateAgentAliasCommand = async ( input: CreateAgentAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents/{agentId}/agentaliases"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agents/{agentId}/agentaliases"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -309,15 +270,8 @@ export const se_CreateAgentAliasCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -327,21 +281,12 @@ export const se_CreateDataSourceCommand = async ( input: CreateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -353,15 +298,8 @@ export const se_CreateDataSourceCommand = async ( vectorIngestionConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -371,11 +309,11 @@ export const se_CreateKnowledgeBaseCommand = async ( input: CreateKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgebases"; + b.bp("/knowledgebases"); let body: any; body = JSON.stringify( take(input, { @@ -388,15 +326,8 @@ export const se_CreateKnowledgeBaseCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -406,27 +337,16 @@ export const se_DeleteAgentCommand = async ( input: DeleteAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents/{agentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agents/{agentId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); const query: any = map({ - skipResourceInUseCheck: [ - () => input.skipResourceInUseCheck !== void 0, - () => input.skipResourceInUseCheck!.toString(), - ], + [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -436,45 +356,18 @@ export const se_DeleteAgentActionGroupCommand = async ( input: DeleteAgentActionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "actionGroupId", - () => input.actionGroupId!, - "{actionGroupId}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); + b.p("actionGroupId", () => input.actionGroupId!, "{actionGroupId}", false); const query: any = map({ - skipResourceInUseCheck: [ - () => input.skipResourceInUseCheck !== void 0, - () => input.skipResourceInUseCheck!.toString(), - ], + [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -484,30 +377,14 @@ export const se_DeleteAgentAliasCommand = async ( input: DeleteAgentAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentaliases/{agentAliasId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentAliasId", - () => input.agentAliasId!, - "{agentAliasId}", - false - ); + b.bp("/agents/{agentId}/agentaliases/{agentAliasId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentAliasId", () => input.agentAliasId!, "{agentAliasId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -517,37 +394,17 @@ export const se_DeleteAgentVersionCommand = async ( input: DeleteAgentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); const query: any = map({ - skipResourceInUseCheck: [ - () => input.skipResourceInUseCheck !== void 0, - () => input.skipResourceInUseCheck!.toString(), - ], + [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -557,37 +414,14 @@ export const se_DeleteDataSourceCommand = async ( input: DeleteDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -597,28 +431,13 @@ export const se_DeleteKnowledgeBaseCommand = async ( input: DeleteKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgebases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -628,38 +447,15 @@ export const se_DisassociateAgentKnowledgeBaseCommand = async ( input: DisassociateAgentKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -669,20 +465,13 @@ export const se_GetAgentCommand = async ( input: GetAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents/{agentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agents/{agentId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -692,38 +481,15 @@ export const se_GetAgentActionGroupCommand = async ( input: GetAgentActionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "actionGroupId", - () => input.actionGroupId!, - "{actionGroupId}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); + b.p("actionGroupId", () => input.actionGroupId!, "{actionGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -733,30 +499,14 @@ export const se_GetAgentAliasCommand = async ( input: GetAgentAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentaliases/{agentAliasId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentAliasId", - () => input.agentAliasId!, - "{agentAliasId}", - false - ); + b.bp("/agents/{agentId}/agentaliases/{agentAliasId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentAliasId", () => input.agentAliasId!, "{agentAliasId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -766,38 +516,15 @@ export const se_GetAgentKnowledgeBaseCommand = async ( input: GetAgentKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -807,30 +534,14 @@ export const se_GetAgentVersionCommand = async ( input: GetAgentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -840,37 +551,14 @@ export const se_GetDataSourceCommand = async ( input: GetDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -880,45 +568,15 @@ export const se_GetIngestionJobCommand = async ( input: GetIngestionJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ingestionJobId", - () => input.ingestionJobId!, - "{ingestionJobId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); + b.p("ingestionJobId", () => input.ingestionJobId!, "{ingestionJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -928,28 +586,13 @@ export const se_GetKnowledgeBaseCommand = async ( input: GetKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgebases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -959,22 +602,13 @@ export const se_ListAgentActionGroupsCommand = async ( input: ListAgentActionGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/actiongroups"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -982,15 +616,8 @@ export const se_ListAgentActionGroupsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1000,13 +627,12 @@ export const se_ListAgentAliasesCommand = async ( input: ListAgentAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents/{agentId}/agentaliases"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agents/{agentId}/agentaliases"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1014,15 +640,8 @@ export const se_ListAgentAliasesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1032,22 +651,13 @@ export const se_ListAgentKnowledgeBasesCommand = async ( input: ListAgentKnowledgeBasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -1055,15 +665,8 @@ export const se_ListAgentKnowledgeBasesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1073,11 +676,11 @@ export const se_ListAgentsCommand = async ( input: ListAgentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents"; + b.bp("/agents"); let body: any; body = JSON.stringify( take(input, { @@ -1085,15 +688,8 @@ export const se_ListAgentsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1103,13 +699,12 @@ export const se_ListAgentVersionsCommand = async ( input: ListAgentVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents/{agentId}/agentversions"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agents/{agentId}/agentversions"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1117,15 +712,8 @@ export const se_ListAgentVersionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1135,21 +723,12 @@ export const se_ListDataSourcesCommand = async ( input: ListDataSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1157,15 +736,8 @@ export const se_ListDataSourcesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1175,29 +747,13 @@ export const se_ListIngestionJobsCommand = async ( input: ListIngestionJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1207,15 +763,8 @@ export const se_ListIngestionJobsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1225,11 +774,11 @@ export const se_ListKnowledgeBasesCommand = async ( input: ListKnowledgeBasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgebases"; + b.bp("/knowledgebases"); let body: any; body = JSON.stringify( take(input, { @@ -1237,15 +786,8 @@ export const se_ListKnowledgeBasesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1255,20 +797,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1278,20 +813,13 @@ export const se_PrepareAgentCommand = async ( input: PrepareAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents/{agentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agents/{agentId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1301,29 +829,13 @@ export const se_StartIngestionJobCommand = async ( input: StartIngestionJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1331,15 +843,8 @@ export const se_StartIngestionJobCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1349,27 +854,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1379,27 +877,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1409,12 +899,12 @@ export const se_UpdateAgentCommand = async ( input: UpdateAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agents/{agentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agents/{agentId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1428,15 +918,8 @@ export const se_UpdateAgentCommand = async ( promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1446,30 +929,14 @@ export const se_UpdateAgentActionGroupCommand = async ( input: UpdateAgentActionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "actionGroupId", - () => input.actionGroupId!, - "{actionGroupId}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); + b.p("actionGroupId", () => input.actionGroupId!, "{actionGroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1481,15 +948,8 @@ export const se_UpdateAgentActionGroupCommand = async ( parentActionGroupSignature: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1499,22 +959,13 @@ export const se_UpdateAgentAliasCommand = async ( input: UpdateAgentAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentaliases/{agentAliasId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentAliasId", - () => input.agentAliasId!, - "{agentAliasId}", - false - ); + b.bp("/agents/{agentId}/agentaliases/{agentAliasId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentAliasId", () => input.agentAliasId!, "{agentAliasId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1523,15 +974,8 @@ export const se_UpdateAgentAliasCommand = async ( routingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1541,30 +985,14 @@ export const se_UpdateAgentKnowledgeBaseCommand = async ( input: UpdateAgentKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "agentVersion", - () => input.agentVersion!, - "{agentVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); + b.p("agentVersion", () => input.agentVersion!, "{agentVersion}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1572,15 +1000,8 @@ export const se_UpdateAgentKnowledgeBaseCommand = async ( knowledgeBaseState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1590,29 +1011,13 @@ export const se_UpdateDataSourceCommand = async ( input: UpdateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1623,15 +1028,8 @@ export const se_UpdateDataSourceCommand = async ( vectorIngestionConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1641,20 +1039,12 @@ export const se_UpdateKnowledgeBaseCommand = async ( input: UpdateKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgebases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgebases/{knowledgeBaseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1665,15 +1055,8 @@ export const se_UpdateKnowledgeBaseCommand = async ( storageConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4870,6 +4253,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _sRIUC = "skipResourceInUseCheck"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-bedrock-runtime/package.json b/clients/client-bedrock-runtime/package.json index d5a7a78cce97..472628d10434 100644 --- a/clients/client-bedrock-runtime/package.json +++ b/clients/client-bedrock-runtime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-bedrock-runtime/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-runtime/src/protocols/Aws_restJson1.ts index 98eff12831ad..50194f67b38a 100644 --- a/clients/client-bedrock-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock-runtime/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -46,26 +47,19 @@ export const se_InvokeModelCommand = async ( input: InvokeModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", - accept: input.accept!, + [_ct]: input[_cT]! || "application/octet-stream", + [_a]: input[_a]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/model/{modelId}/invoke"; - resolvedPath = __resolvedPath(resolvedPath, input, "modelId", () => input.modelId!, "{modelId}", false); + b.bp("/model/{modelId}/invoke"); + b.p("modelId", () => input.modelId!, "{modelId}", false); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -75,28 +69,19 @@ export const se_InvokeModelWithResponseStreamCommand = async ( input: InvokeModelWithResponseStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", - "x-amzn-bedrock-accept": input.accept!, + [_ct]: input[_cT]! || "application/octet-stream", + [_xaba]: input[_a]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/model/{modelId}/invoke-with-response-stream"; - resolvedPath = __resolvedPath(resolvedPath, input, "modelId", () => input.modelId!, "{modelId}", false); + b.bp("/model/{modelId}/invoke-with-response-stream"); + b.p("modelId", () => input.modelId!, "{modelId}", false); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -111,7 +96,7 @@ export const de_InvokeModelCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.body = data; @@ -180,7 +165,7 @@ export const de_InvokeModelWithResponseStreamCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["x-amzn-bedrock-content-type"]], + [_cT]: [, output.headers[_xabct]], }); const data: any = output.body; contents.body = de_ResponseStream(data, context); @@ -555,6 +540,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "accept"; +const _cT = "contentType"; +const _ct = "content-type"; +const _xaba = "x-amzn-bedrock-accept"; +const _xabct = "x-amzn-bedrock-content-type"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-bedrock/package.json b/clients/client-bedrock/package.json index a9a20ea6ff46..c0ff5832a792 100644 --- a/clients/client-bedrock/package.json +++ b/clients/client-bedrock/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-bedrock/src/protocols/Aws_restJson1.ts b/clients/client-bedrock/src/protocols/Aws_restJson1.ts index 243afd59c15d..70de1ceb6049 100644 --- a/clients/client-bedrock/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -118,12 +119,11 @@ export const se_CreateModelCustomizationJobCommand = async ( input: CreateModelCustomizationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/model-customization-jobs"; + b.bp("/model-customization-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -143,15 +143,8 @@ export const se_CreateModelCustomizationJobCommand = async ( vpcConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -161,12 +154,11 @@ export const se_CreateProvisionedModelThroughputCommand = async ( input: CreateProvisionedModelThroughputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioned-model-throughput"; + b.bp("/provisioned-model-throughput"); let body: any; body = JSON.stringify( take(input, { @@ -178,15 +170,8 @@ export const se_CreateProvisionedModelThroughputCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -196,28 +181,13 @@ export const se_DeleteCustomModelCommand = async ( input: DeleteCustomModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-models/{modelIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "modelIdentifier", - () => input.modelIdentifier!, - "{modelIdentifier}", - false - ); + b.bp("/custom-models/{modelIdentifier}"); + b.p("modelIdentifier", () => input.modelIdentifier!, "{modelIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -227,23 +197,15 @@ export const se_DeleteModelInvocationLoggingConfigurationCommand = async ( input: DeleteModelInvocationLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging/modelinvocations"; + b.bp("/logging/modelinvocations"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -253,29 +215,13 @@ export const se_DeleteProvisionedModelThroughputCommand = async ( input: DeleteProvisionedModelThroughputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioned-model-throughput/{provisionedModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "provisionedModelId", - () => input.provisionedModelId!, - "{provisionedModelId}", - false - ); + b.bp("/provisioned-model-throughput/{provisionedModelId}"); + b.p("provisionedModelId", () => input.provisionedModelId!, "{provisionedModelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -285,28 +231,13 @@ export const se_GetCustomModelCommand = async ( input: GetCustomModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-models/{modelIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "modelIdentifier", - () => input.modelIdentifier!, - "{modelIdentifier}", - false - ); + b.bp("/custom-models/{modelIdentifier}"); + b.p("modelIdentifier", () => input.modelIdentifier!, "{modelIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -316,28 +247,13 @@ export const se_GetFoundationModelCommand = async ( input: GetFoundationModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/foundation-models/{modelIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "modelIdentifier", - () => input.modelIdentifier!, - "{modelIdentifier}", - false - ); + b.bp("/foundation-models/{modelIdentifier}"); + b.p("modelIdentifier", () => input.modelIdentifier!, "{modelIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -347,28 +263,13 @@ export const se_GetModelCustomizationJobCommand = async ( input: GetModelCustomizationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/model-customization-jobs/{jobIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "jobIdentifier", - () => input.jobIdentifier!, - "{jobIdentifier}", - false - ); + b.bp("/model-customization-jobs/{jobIdentifier}"); + b.p("jobIdentifier", () => input.jobIdentifier!, "{jobIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -378,23 +279,15 @@ export const se_GetModelInvocationLoggingConfigurationCommand = async ( input: GetModelInvocationLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging/modelinvocations"; + b.bp("/logging/modelinvocations"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -404,29 +297,13 @@ export const se_GetProvisionedModelThroughputCommand = async ( input: GetProvisionedModelThroughputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioned-model-throughput/{provisionedModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "provisionedModelId", - () => input.provisionedModelId!, - "{provisionedModelId}", - false - ); + b.bp("/provisioned-model-throughput/{provisionedModelId}"); + b.p("provisionedModelId", () => input.provisionedModelId!, "{provisionedModelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -436,37 +313,29 @@ export const se_ListCustomModelsCommand = async ( input: ListCustomModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-models"; + b.bp("/custom-models"); const query: any = map({ - creationTimeBefore: [ + [_cTB]: [ () => input.creationTimeBefore !== void 0, - () => (input.creationTimeBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_cTB]!.toISOString().split(".")[0] + "Z").toString(), ], - creationTimeAfter: [ + [_cTA]: [ () => input.creationTimeAfter !== void 0, - () => (input.creationTimeAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_cTA]!.toISOString().split(".")[0] + "Z").toString(), ], - nameContains: [, input.nameContains!], - baseModelArnEquals: [, input.baseModelArnEquals!], - foundationModelArnEquals: [, input.foundationModelArnEquals!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], + [_nC]: [, input[_nC]!], + [_bMAE]: [, input[_bMAE]!], + [_fMAE]: [, input[_fMAE]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -476,26 +345,18 @@ export const se_ListFoundationModelsCommand = async ( input: ListFoundationModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/foundation-models"; + b.bp("/foundation-models"); const query: any = map({ - byProvider: [, input.byProvider!], - byCustomizationType: [, input.byCustomizationType!], - byOutputModality: [, input.byOutputModality!], - byInferenceType: [, input.byInferenceType!], + [_bP]: [, input[_bP]!], + [_bCT]: [, input[_bCT]!], + [_bOM]: [, input[_bOM]!], + [_bIT]: [, input[_bIT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -505,37 +366,28 @@ export const se_ListModelCustomizationJobsCommand = async ( input: ListModelCustomizationJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/model-customization-jobs"; + b.bp("/model-customization-jobs"); const query: any = map({ - creationTimeAfter: [ + [_cTA]: [ () => input.creationTimeAfter !== void 0, - () => (input.creationTimeAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_cTA]!.toISOString().split(".")[0] + "Z").toString(), ], - creationTimeBefore: [ + [_cTB]: [ () => input.creationTimeBefore !== void 0, - () => (input.creationTimeBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_cTB]!.toISOString().split(".")[0] + "Z").toString(), ], - statusEquals: [, input.statusEquals!], - nameContains: [, input.nameContains!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], + [_sE]: [, input[_sE]!], + [_nC]: [, input[_nC]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -545,38 +397,29 @@ export const se_ListProvisionedModelThroughputsCommand = async ( input: ListProvisionedModelThroughputsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioned-model-throughputs"; + b.bp("/provisioned-model-throughputs"); const query: any = map({ - creationTimeAfter: [ + [_cTA]: [ () => input.creationTimeAfter !== void 0, - () => (input.creationTimeAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_cTA]!.toISOString().split(".")[0] + "Z").toString(), ], - creationTimeBefore: [ + [_cTB]: [ () => input.creationTimeBefore !== void 0, - () => (input.creationTimeBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_cTB]!.toISOString().split(".")[0] + "Z").toString(), ], - statusEquals: [, input.statusEquals!], - modelArnEquals: [, input.modelArnEquals!], - nameContains: [, input.nameContains!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], + [_sE]: [, input[_sE]!], + [_mAE]: [, input[_mAE]!], + [_nC]: [, input[_nC]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -586,26 +429,19 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTagsForResource"; + b.bp("/listTagsForResource"); let body: any; body = JSON.stringify( take(input, { resourceARN: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -615,27 +451,19 @@ export const se_PutModelInvocationLoggingConfigurationCommand = async ( input: PutModelInvocationLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging/modelinvocations"; + b.bp("/logging/modelinvocations"); let body: any; body = JSON.stringify( take(input, { loggingConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -645,29 +473,13 @@ export const se_StopModelCustomizationJobCommand = async ( input: StopModelCustomizationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/model-customization-jobs/{jobIdentifier}/stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "jobIdentifier", - () => input.jobIdentifier!, - "{jobIdentifier}", - false - ); + b.bp("/model-customization-jobs/{jobIdentifier}/stop"); + b.p("jobIdentifier", () => input.jobIdentifier!, "{jobIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -677,11 +489,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tagResource"; + b.bp("/tagResource"); let body: any; body = JSON.stringify( take(input, { @@ -689,15 +501,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -707,11 +512,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untagResource"; + b.bp("/untagResource"); let body: any; body = JSON.stringify( take(input, { @@ -719,15 +524,8 @@ export const se_UntagResourceCommand = async ( tagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -737,21 +535,12 @@ export const se_UpdateProvisionedModelThroughputCommand = async ( input: UpdateProvisionedModelThroughputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioned-model-throughput/{provisionedModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "provisionedModelId", - () => input.provisionedModelId!, - "{provisionedModelId}", - false - ); + b.bp("/provisioned-model-throughput/{provisionedModelId}"); + b.p("provisionedModelId", () => input.provisionedModelId!, "{provisionedModelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -759,15 +548,8 @@ export const se_UpdateProvisionedModelThroughputCommand = async ( desiredProvisionedModelName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2328,6 +2110,22 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _bCT = "byCustomizationType"; +const _bIT = "byInferenceType"; +const _bMAE = "baseModelArnEquals"; +const _bOM = "byOutputModality"; +const _bP = "byProvider"; +const _cTA = "creationTimeAfter"; +const _cTB = "creationTimeBefore"; +const _fMAE = "foundationModelArnEquals"; +const _mAE = "modelArnEquals"; +const _mR = "maxResults"; +const _nC = "nameContains"; +const _nT = "nextToken"; +const _sB = "sortBy"; +const _sE = "statusEquals"; +const _sO = "sortOrder"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-billingconductor/package.json b/clients/client-billingconductor/package.json index 154b9d36009b..4bc2b17effb0 100644 --- a/clients/client-billingconductor/package.json +++ b/clients/client-billingconductor/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-billingconductor/src/protocols/Aws_restJson1.ts b/clients/client-billingconductor/src/protocols/Aws_restJson1.ts index 545ae377806a..dbd1b05e35a2 100644 --- a/clients/client-billingconductor/src/protocols/Aws_restJson1.ts +++ b/clients/client-billingconductor/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -159,11 +160,11 @@ export const se_AssociateAccountsCommand = async ( input: AssociateAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associate-accounts"; + b.bp("/associate-accounts"); let body: any; body = JSON.stringify( take(input, { @@ -171,15 +172,8 @@ export const se_AssociateAccountsCommand = async ( Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -189,12 +183,11 @@ export const se_AssociatePricingRulesCommand = async ( input: AssociatePricingRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associate-pricing-rules"; + b.bp("/associate-pricing-rules"); let body: any; body = JSON.stringify( take(input, { @@ -202,15 +195,8 @@ export const se_AssociatePricingRulesCommand = async ( PricingRuleArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -220,13 +206,11 @@ export const se_BatchAssociateResourcesToCustomLineItemCommand = async ( input: BatchAssociateResourcesToCustomLineItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/batch-associate-resources-to-custom-line-item"; + b.bp("/batch-associate-resources-to-custom-line-item"); let body: any; body = JSON.stringify( take(input, { @@ -235,15 +219,8 @@ export const se_BatchAssociateResourcesToCustomLineItemCommand = async ( TargetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -253,13 +230,11 @@ export const se_BatchDisassociateResourcesFromCustomLineItemCommand = async ( input: BatchDisassociateResourcesFromCustomLineItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/batch-disassociate-resources-from-custom-line-item"; + b.bp("/batch-disassociate-resources-from-custom-line-item"); let body: any; body = JSON.stringify( take(input, { @@ -268,15 +243,8 @@ export const se_BatchDisassociateResourcesFromCustomLineItemCommand = async ( TargetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -286,12 +254,12 @@ export const se_CreateBillingGroupCommand = async ( input: CreateBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-billing-group"; + b.bp("/create-billing-group"); let body: any; body = JSON.stringify( take(input, { @@ -303,15 +271,8 @@ export const se_CreateBillingGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -321,13 +282,12 @@ export const se_CreateCustomLineItemCommand = async ( input: CreateCustomLineItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-custom-line-item"; + b.bp("/create-custom-line-item"); let body: any; body = JSON.stringify( take(input, { @@ -340,15 +300,8 @@ export const se_CreateCustomLineItemCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -358,12 +311,12 @@ export const se_CreatePricingPlanCommand = async ( input: CreatePricingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-plan"; + b.bp("/create-pricing-plan"); let body: any; body = JSON.stringify( take(input, { @@ -373,15 +326,8 @@ export const se_CreatePricingPlanCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -391,12 +337,12 @@ export const se_CreatePricingRuleCommand = async ( input: CreatePricingRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-rule"; + b.bp("/create-pricing-rule"); let body: any; body = JSON.stringify( take(input, { @@ -413,15 +359,8 @@ export const se_CreatePricingRuleCommand = async ( UsageType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -431,26 +370,19 @@ export const se_DeleteBillingGroupCommand = async ( input: DeleteBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-billing-group"; + b.bp("/delete-billing-group"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -460,12 +392,11 @@ export const se_DeleteCustomLineItemCommand = async ( input: DeleteCustomLineItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-custom-line-item"; + b.bp("/delete-custom-line-item"); let body: any; body = JSON.stringify( take(input, { @@ -473,15 +404,8 @@ export const se_DeleteCustomLineItemCommand = async ( BillingPeriodRange: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -491,26 +415,19 @@ export const se_DeletePricingPlanCommand = async ( input: DeletePricingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-pricing-plan"; + b.bp("/delete-pricing-plan"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -520,26 +437,19 @@ export const se_DeletePricingRuleCommand = async ( input: DeletePricingRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-pricing-rule"; + b.bp("/delete-pricing-rule"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -549,11 +459,11 @@ export const se_DisassociateAccountsCommand = async ( input: DisassociateAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociate-accounts"; + b.bp("/disassociate-accounts"); let body: any; body = JSON.stringify( take(input, { @@ -561,15 +471,8 @@ export const se_DisassociateAccountsCommand = async ( Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -579,12 +482,11 @@ export const se_DisassociatePricingRulesCommand = async ( input: DisassociatePricingRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociate-pricing-rules"; + b.bp("/disassociate-pricing-rules"); let body: any; body = JSON.stringify( take(input, { @@ -592,15 +494,8 @@ export const se_DisassociatePricingRulesCommand = async ( PricingRuleArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -610,12 +505,11 @@ export const se_GetBillingGroupCostReportCommand = async ( input: GetBillingGroupCostReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-billing-group-cost-report"; + b.bp("/get-billing-group-cost-report"); let body: any; body = JSON.stringify( take(input, { @@ -626,15 +520,8 @@ export const se_GetBillingGroupCostReportCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -644,12 +531,11 @@ export const se_ListAccountAssociationsCommand = async ( input: ListAccountAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-account-associations"; + b.bp("/list-account-associations"); let body: any; body = JSON.stringify( take(input, { @@ -658,15 +544,8 @@ export const se_ListAccountAssociationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -676,12 +555,11 @@ export const se_ListBillingGroupCostReportsCommand = async ( input: ListBillingGroupCostReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-billing-group-cost-reports"; + b.bp("/list-billing-group-cost-reports"); let body: any; body = JSON.stringify( take(input, { @@ -691,15 +569,8 @@ export const se_ListBillingGroupCostReportsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -709,11 +580,11 @@ export const se_ListBillingGroupsCommand = async ( input: ListBillingGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-billing-groups"; + b.bp("/list-billing-groups"); let body: any; body = JSON.stringify( take(input, { @@ -723,15 +594,8 @@ export const se_ListBillingGroupsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -741,12 +605,11 @@ export const se_ListCustomLineItemsCommand = async ( input: ListCustomLineItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-custom-line-items"; + b.bp("/list-custom-line-items"); let body: any; body = JSON.stringify( take(input, { @@ -756,15 +619,8 @@ export const se_ListCustomLineItemsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -774,12 +630,11 @@ export const se_ListCustomLineItemVersionsCommand = async ( input: ListCustomLineItemVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-custom-line-item-versions"; + b.bp("/list-custom-line-item-versions"); let body: any; body = JSON.stringify( take(input, { @@ -789,15 +644,8 @@ export const se_ListCustomLineItemVersionsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -807,11 +655,11 @@ export const se_ListPricingPlansCommand = async ( input: ListPricingPlansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-pricing-plans"; + b.bp("/list-pricing-plans"); let body: any; body = JSON.stringify( take(input, { @@ -821,15 +669,8 @@ export const se_ListPricingPlansCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -839,13 +680,11 @@ export const se_ListPricingPlansAssociatedWithPricingRuleCommand = async ( input: ListPricingPlansAssociatedWithPricingRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/list-pricing-plans-associated-with-pricing-rule"; + b.bp("/list-pricing-plans-associated-with-pricing-rule"); let body: any; body = JSON.stringify( take(input, { @@ -855,15 +694,8 @@ export const se_ListPricingPlansAssociatedWithPricingRuleCommand = async ( PricingRuleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -873,11 +705,11 @@ export const se_ListPricingRulesCommand = async ( input: ListPricingRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-pricing-rules"; + b.bp("/list-pricing-rules"); let body: any; body = JSON.stringify( take(input, { @@ -887,15 +719,8 @@ export const se_ListPricingRulesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -905,13 +730,11 @@ export const se_ListPricingRulesAssociatedToPricingPlanCommand = async ( input: ListPricingRulesAssociatedToPricingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/list-pricing-rules-associated-to-pricing-plan"; + b.bp("/list-pricing-rules-associated-to-pricing-plan"); let body: any; body = JSON.stringify( take(input, { @@ -921,15 +744,8 @@ export const se_ListPricingRulesAssociatedToPricingPlanCommand = async ( PricingPlanArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -939,13 +755,11 @@ export const se_ListResourcesAssociatedToCustomLineItemCommand = async ( input: ListResourcesAssociatedToCustomLineItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/list-resources-associated-to-custom-line-item"; + b.bp("/list-resources-associated-to-custom-line-item"); let body: any; body = JSON.stringify( take(input, { @@ -956,15 +770,8 @@ export const se_ListResourcesAssociatedToCustomLineItemCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -974,20 +781,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -997,27 +797,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1027,27 +820,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1057,11 +842,11 @@ export const se_UpdateBillingGroupCommand = async ( input: UpdateBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-billing-group"; + b.bp("/update-billing-group"); let body: any; body = JSON.stringify( take(input, { @@ -1073,15 +858,8 @@ export const se_UpdateBillingGroupCommand = async ( Status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1091,12 +869,11 @@ export const se_UpdateCustomLineItemCommand = async ( input: UpdateCustomLineItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-custom-line-item"; + b.bp("/update-custom-line-item"); let body: any; body = JSON.stringify( take(input, { @@ -1107,15 +884,8 @@ export const se_UpdateCustomLineItemCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1125,11 +895,11 @@ export const se_UpdatePricingPlanCommand = async ( input: UpdatePricingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-pricing-plan"; + b.bp("/update-pricing-plan"); let body: any; body = JSON.stringify( take(input, { @@ -1138,15 +908,8 @@ export const se_UpdatePricingPlanCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1156,11 +919,11 @@ export const se_UpdatePricingRuleCommand = async ( input: UpdatePricingRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-pricing-rule"; + b.bp("/update-pricing-rule"); let body: any; body = JSON.stringify( take(input, { @@ -1172,15 +935,8 @@ export const se_UpdatePricingRuleCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3202,10 +2958,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3270,10 +3023,7 @@ const de_ServiceLimitExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3675,6 +3425,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ClientToken"; +const _RAS = "RetryAfterSeconds"; +const _TK = "TagKeys"; +const _ra = "retry-after"; +const _tK = "tagKeys"; +const _xact = "x-amzn-client-token"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-braket/package.json b/clients/client-braket/package.json index 2952f5a55b20..b62f62e84e63 100644 --- a/clients/client-braket/package.json +++ b/clients/client-braket/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-braket/src/protocols/Aws_restJson1.ts b/clients/client-braket/src/protocols/Aws_restJson1.ts index f113fb62a1fd..3a5cc9f96a04 100644 --- a/clients/client-braket/src/protocols/Aws_restJson1.ts +++ b/clients/client-braket/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -78,20 +79,13 @@ export const se_CancelJobCommand = async ( input: CancelJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job/{jobArn}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobArn", () => input.jobArn!, "{jobArn}", false); + b.bp("/job/{jobArn}/cancel"); + b.p("jobArn", () => input.jobArn!, "{jobArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -101,35 +95,20 @@ export const se_CancelQuantumTaskCommand = async ( input: CancelQuantumTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-task/{quantumTaskArn}/cancel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quantumTaskArn", - () => input.quantumTaskArn!, - "{quantumTaskArn}", - false - ); + b.bp("/quantum-task/{quantumTaskArn}/cancel"); + b.p("quantumTaskArn", () => input.quantumTaskArn!, "{quantumTaskArn}", false); let body: any; body = JSON.stringify( take(input, { clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -139,11 +118,11 @@ export const se_CreateJobCommand = async ( input: CreateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job"; + b.bp("/job"); let body: any; body = JSON.stringify( take(input, { @@ -162,15 +141,8 @@ export const se_CreateJobCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -180,11 +152,11 @@ export const se_CreateQuantumTaskCommand = async ( input: CreateQuantumTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-task"; + b.bp("/quantum-task"); let body: any; body = JSON.stringify( take(input, { @@ -200,15 +172,8 @@ export const se_CreateQuantumTaskCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -218,47 +183,32 @@ export const se_GetDeviceCommand = async ( input: GetDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device/{deviceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "deviceArn", () => input.deviceArn!, "{deviceArn}", false); + b.bp("/device/{deviceArn}"); + b.p("deviceArn", () => input.deviceArn!, "{deviceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetJobCommand */ export const se_GetJobCommand = async (input: GetJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job/{jobArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobArn", () => input.jobArn!, "{jobArn}", false); + b.bp("/job/{jobArn}"); + b.p("jobArn", () => input.jobArn!, "{jobArn}", false); const query: any = map({ - additionalAttributeNames: [ + [_aAN]: [ () => input.additionalAttributeNames !== void 0, - () => (input.additionalAttributeNames! || []).map((_entry) => _entry as any), + () => (input[_aAN]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -268,35 +218,19 @@ export const se_GetQuantumTaskCommand = async ( input: GetQuantumTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-task/{quantumTaskArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quantumTaskArn", - () => input.quantumTaskArn!, - "{quantumTaskArn}", - false - ); + b.bp("/quantum-task/{quantumTaskArn}"); + b.p("quantumTaskArn", () => input.quantumTaskArn!, "{quantumTaskArn}", false); const query: any = map({ - additionalAttributeNames: [ + [_aAN]: [ () => input.additionalAttributeNames !== void 0, - () => (input.additionalAttributeNames! || []).map((_entry) => _entry as any), + () => (input[_aAN]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -306,20 +240,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -329,11 +256,11 @@ export const se_SearchDevicesCommand = async ( input: SearchDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices"; + b.bp("/devices"); let body: any; body = JSON.stringify( take(input, { @@ -342,15 +269,8 @@ export const se_SearchDevicesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -360,11 +280,11 @@ export const se_SearchJobsCommand = async ( input: SearchJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); let body: any; body = JSON.stringify( take(input, { @@ -373,15 +293,8 @@ export const se_SearchJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -391,11 +304,11 @@ export const se_SearchQuantumTasksCommand = async ( input: SearchQuantumTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-tasks"; + b.bp("/quantum-tasks"); let body: any; body = JSON.stringify( take(input, { @@ -404,15 +317,8 @@ export const se_SearchQuantumTasksCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -422,27 +328,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -452,27 +351,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1627,6 +1518,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aAN = "additionalAttributeNames"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-chime-sdk-identity/package.json b/clients/client-chime-sdk-identity/package.json index 8343a8c3b4be..7a8b63dd1b43 100644 --- a/clients/client-chime-sdk-identity/package.json +++ b/clients/client-chime-sdk-identity/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts index 1f7d3d3a89bb..d83f20792040 100644 --- a/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -157,11 +158,11 @@ export const se_CreateAppInstanceCommand = async ( input: CreateAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances"; + b.bp("/app-instances"); let body: any; body = JSON.stringify( take(input, { @@ -171,15 +172,8 @@ export const se_CreateAppInstanceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -189,35 +183,20 @@ export const se_CreateAppInstanceAdminCommand = async ( input: CreateAppInstanceAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { AppInstanceAdminArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -227,11 +206,11 @@ export const se_CreateAppInstanceBotCommand = async ( input: CreateAppInstanceBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots"; + b.bp("/app-instance-bots"); let body: any; body = JSON.stringify( take(input, { @@ -243,15 +222,8 @@ export const se_CreateAppInstanceBotCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -261,11 +233,11 @@ export const se_CreateAppInstanceUserCommand = async ( input: CreateAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users"; + b.bp("/app-instance-users"); let body: any; body = JSON.stringify( take(input, { @@ -278,15 +250,8 @@ export const se_CreateAppInstanceUserCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -296,28 +261,13 @@ export const se_DeleteAppInstanceCommand = async ( input: DeleteAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -327,37 +277,14 @@ export const se_DeleteAppInstanceAdminCommand = async ( input: DeleteAppInstanceAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceAdminArn", - () => input.AppInstanceAdminArn!, - "{AppInstanceAdminArn}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"); + b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn!, "{AppInstanceAdminArn}", false); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -367,28 +294,13 @@ export const se_DeleteAppInstanceBotCommand = async ( input: DeleteAppInstanceBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceBotArn", - () => input.AppInstanceBotArn!, - "{AppInstanceBotArn}", - false - ); + b.bp("/app-instance-bots/{AppInstanceBotArn}"); + b.p("AppInstanceBotArn", () => input.AppInstanceBotArn!, "{AppInstanceBotArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -398,28 +310,13 @@ export const se_DeleteAppInstanceUserCommand = async ( input: DeleteAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -429,30 +326,14 @@ export const se_DeregisterAppInstanceUserEndpointCommand = async ( input: DeregisterAppInstanceUserEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId!, "{EndpointId}", false); + b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); + b.p("EndpointId", () => input.EndpointId!, "{EndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -462,28 +343,13 @@ export const se_DescribeAppInstanceCommand = async ( input: DescribeAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -493,37 +359,14 @@ export const se_DescribeAppInstanceAdminCommand = async ( input: DescribeAppInstanceAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceAdminArn", - () => input.AppInstanceAdminArn!, - "{AppInstanceAdminArn}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"); + b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn!, "{AppInstanceAdminArn}", false); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -533,28 +376,13 @@ export const se_DescribeAppInstanceBotCommand = async ( input: DescribeAppInstanceBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceBotArn", - () => input.AppInstanceBotArn!, - "{AppInstanceBotArn}", - false - ); + b.bp("/app-instance-bots/{AppInstanceBotArn}"); + b.p("AppInstanceBotArn", () => input.AppInstanceBotArn!, "{AppInstanceBotArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -564,28 +392,13 @@ export const se_DescribeAppInstanceUserCommand = async ( input: DescribeAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -595,30 +408,14 @@ export const se_DescribeAppInstanceUserEndpointCommand = async ( input: DescribeAppInstanceUserEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId!, "{EndpointId}", false); + b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); + b.p("EndpointId", () => input.EndpointId!, "{EndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -628,29 +425,13 @@ export const se_GetAppInstanceRetentionSettingsCommand = async ( input: GetAppInstanceRetentionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/retention-settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/retention-settings"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -660,33 +441,17 @@ export const se_ListAppInstanceAdminsCommand = async ( input: ListAppInstanceAdminsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -696,25 +461,17 @@ export const se_ListAppInstanceBotsCommand = async ( input: ListAppInstanceBotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots"; + b.bp("/app-instance-bots"); const query: any = map({ - "app-instance-arn": [, __expectNonNull(input.AppInstanceArn!, `AppInstanceArn`)], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_aia]: [, __expectNonNull(input[_AIA]!, `AppInstanceArn`)], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -724,24 +481,16 @@ export const se_ListAppInstancesCommand = async ( input: ListAppInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances"; + b.bp("/app-instances"); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -751,34 +500,17 @@ export const se_ListAppInstanceUserEndpointsCommand = async ( input: ListAppInstanceUserEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instance-users/{AppInstanceUserArn}/endpoints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -788,25 +520,17 @@ export const se_ListAppInstanceUsersCommand = async ( input: ListAppInstanceUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users"; + b.bp("/app-instance-users"); const query: any = map({ - "app-instance-arn": [, __expectNonNull(input.AppInstanceArn!, `AppInstanceArn`)], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_aia]: [, __expectNonNull(input[_AIA]!, `AppInstanceArn`)], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -816,23 +540,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ResourceARN!, `ResourceARN`)], + [_a]: [, __expectNonNull(input[_RARN]!, `ResourceARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -842,36 +558,20 @@ export const se_PutAppInstanceRetentionSettingsCommand = async ( input: PutAppInstanceRetentionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/retention-settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/retention-settings"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { AppInstanceRetentionSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -881,36 +581,20 @@ export const se_PutAppInstanceUserExpirationSettingsCommand = async ( input: PutAppInstanceUserExpirationSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instance-users/{AppInstanceUserArn}/expiration-settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}/expiration-settings"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; body = JSON.stringify( take(input, { ExpirationSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -920,21 +604,12 @@ export const se_RegisterAppInstanceUserEndpointCommand = async ( input: RegisterAppInstanceUserEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instance-users/{AppInstanceUserArn}/endpoints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -946,15 +621,8 @@ export const se_RegisterAppInstanceUserEndpointCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -964,13 +632,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "tag-resource"], + [_o]: [, "tag-resource"], }); let body: any; body = JSON.stringify( @@ -979,16 +647,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -998,13 +658,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "untag-resource"], + [_o]: [, "untag-resource"], }); let body: any; body = JSON.stringify( @@ -1013,16 +673,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1032,20 +684,12 @@ export const se_UpdateAppInstanceCommand = async ( input: UpdateAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1053,15 +697,8 @@ export const se_UpdateAppInstanceCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1071,20 +708,12 @@ export const se_UpdateAppInstanceBotCommand = async ( input: UpdateAppInstanceBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceBotArn", - () => input.AppInstanceBotArn!, - "{AppInstanceBotArn}", - false - ); + b.bp("/app-instance-bots/{AppInstanceBotArn}"); + b.p("AppInstanceBotArn", () => input.AppInstanceBotArn!, "{AppInstanceBotArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1093,15 +722,8 @@ export const se_UpdateAppInstanceBotCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1111,20 +733,12 @@ export const se_UpdateAppInstanceUserCommand = async ( input: UpdateAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1132,15 +746,8 @@ export const se_UpdateAppInstanceUserCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1150,22 +757,13 @@ export const se_UpdateAppInstanceUserEndpointCommand = async ( input: UpdateAppInstanceUserEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId!, "{EndpointId}", false); + b.bp("/app-instance-users/{AppInstanceUserArn}/endpoints/{EndpointId}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); + b.p("EndpointId", () => input.EndpointId!, "{EndpointId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1173,15 +771,8 @@ export const se_UpdateAppInstanceUserEndpointCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3443,6 +3034,16 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AIA = "AppInstanceArn"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RARN = "ResourceARN"; +const _a = "arn"; +const _aia = "app-instance-arn"; +const _mr = "max-results"; +const _nt = "next-token"; +const _o = "operation"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-chime-sdk-media-pipelines/package.json b/clients/client-chime-sdk-media-pipelines/package.json index 2c2f5cc3e465..bea660b1b3f6 100644 --- a/clients/client-chime-sdk-media-pipelines/package.json +++ b/clients/client-chime-sdk-media-pipelines/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts index 202912cc02f2..92ef7ea2bafb 100644 --- a/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -228,12 +229,11 @@ export const se_CreateMediaCapturePipelineCommand = async ( input: CreateMediaCapturePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-capture-pipelines"; + b.bp("/sdk-media-capture-pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -246,15 +246,8 @@ export const se_CreateMediaCapturePipelineCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -264,12 +257,11 @@ export const se_CreateMediaConcatenationPipelineCommand = async ( input: CreateMediaConcatenationPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-concatenation-pipelines"; + b.bp("/sdk-media-concatenation-pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -279,15 +271,8 @@ export const se_CreateMediaConcatenationPipelineCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -297,12 +282,11 @@ export const se_CreateMediaInsightsPipelineCommand = async ( input: CreateMediaInsightsPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-insights-pipelines"; + b.bp("/media-insights-pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -316,15 +300,8 @@ export const se_CreateMediaInsightsPipelineCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -334,12 +311,11 @@ export const se_CreateMediaInsightsPipelineConfigurationCommand = async ( input: CreateMediaInsightsPipelineConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-insights-pipeline-configurations"; + b.bp("/media-insights-pipeline-configurations"); let body: any; body = JSON.stringify( take(input, { @@ -351,15 +327,8 @@ export const se_CreateMediaInsightsPipelineConfigurationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -369,12 +338,11 @@ export const se_CreateMediaLiveConnectorPipelineCommand = async ( input: CreateMediaLiveConnectorPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-live-connector-pipelines"; + b.bp("/sdk-media-live-connector-pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -384,15 +352,8 @@ export const se_CreateMediaLiveConnectorPipelineCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -402,13 +363,11 @@ export const se_CreateMediaPipelineKinesisVideoStreamPoolCommand = async ( input: CreateMediaPipelineKinesisVideoStreamPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-pipeline-kinesis-video-stream-pools"; + b.bp("/media-pipeline-kinesis-video-stream-pools"); let body: any; body = JSON.stringify( take(input, { @@ -418,15 +377,8 @@ export const se_CreateMediaPipelineKinesisVideoStreamPoolCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -436,12 +388,11 @@ export const se_CreateMediaStreamPipelineCommand = async ( input: CreateMediaStreamPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-stream-pipelines"; + b.bp("/sdk-media-stream-pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -451,15 +402,8 @@ export const se_CreateMediaStreamPipelineCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -469,29 +413,13 @@ export const se_DeleteMediaCapturePipelineCommand = async ( input: DeleteMediaCapturePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sdk-media-capture-pipelines/{MediaPipelineId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaPipelineId", - () => input.MediaPipelineId!, - "{MediaPipelineId}", - false - ); + b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}"); + b.p("MediaPipelineId", () => input.MediaPipelineId!, "{MediaPipelineId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -501,22 +429,13 @@ export const se_DeleteMediaInsightsPipelineConfigurationCommand = async ( input: DeleteMediaInsightsPipelineConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipeline-configurations/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-insights-pipeline-configurations/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -526,28 +445,13 @@ export const se_DeleteMediaPipelineCommand = async ( input: DeleteMediaPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines/{MediaPipelineId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaPipelineId", - () => input.MediaPipelineId!, - "{MediaPipelineId}", - false - ); + b.bp("/sdk-media-pipelines/{MediaPipelineId}"); + b.p("MediaPipelineId", () => input.MediaPipelineId!, "{MediaPipelineId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -557,22 +461,13 @@ export const se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async ( input: DeleteMediaPipelineKinesisVideoStreamPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-pipeline-kinesis-video-stream-pools/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -582,29 +477,13 @@ export const se_GetMediaCapturePipelineCommand = async ( input: GetMediaCapturePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sdk-media-capture-pipelines/{MediaPipelineId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaPipelineId", - () => input.MediaPipelineId!, - "{MediaPipelineId}", - false - ); + b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}"); + b.p("MediaPipelineId", () => input.MediaPipelineId!, "{MediaPipelineId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -614,22 +493,13 @@ export const se_GetMediaInsightsPipelineConfigurationCommand = async ( input: GetMediaInsightsPipelineConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipeline-configurations/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-insights-pipeline-configurations/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -639,28 +509,13 @@ export const se_GetMediaPipelineCommand = async ( input: GetMediaPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines/{MediaPipelineId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaPipelineId", - () => input.MediaPipelineId!, - "{MediaPipelineId}", - false - ); + b.bp("/sdk-media-pipelines/{MediaPipelineId}"); + b.p("MediaPipelineId", () => input.MediaPipelineId!, "{MediaPipelineId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -670,22 +525,13 @@ export const se_GetMediaPipelineKinesisVideoStreamPoolCommand = async ( input: GetMediaPipelineKinesisVideoStreamPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-pipeline-kinesis-video-stream-pools/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -695,30 +541,14 @@ export const se_GetSpeakerSearchTaskCommand = async ( input: GetSpeakerSearchTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SpeakerSearchTaskId", - () => input.SpeakerSearchTaskId!, - "{SpeakerSearchTaskId}", - false - ); + b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); + b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId!, "{SpeakerSearchTaskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -728,30 +558,14 @@ export const se_GetVoiceToneAnalysisTaskCommand = async ( input: GetVoiceToneAnalysisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceToneAnalysisTaskId", - () => input.VoiceToneAnalysisTaskId!, - "{VoiceToneAnalysisTaskId}", - false - ); + b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); + b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId!, "{VoiceToneAnalysisTaskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -761,25 +575,16 @@ export const se_ListMediaCapturePipelinesCommand = async ( input: ListMediaCapturePipelinesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-capture-pipelines"; + b.bp("/sdk-media-capture-pipelines"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -789,25 +594,16 @@ export const se_ListMediaInsightsPipelineConfigurationsCommand = async ( input: ListMediaInsightsPipelineConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-insights-pipeline-configurations"; + b.bp("/media-insights-pipeline-configurations"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -817,26 +613,16 @@ export const se_ListMediaPipelineKinesisVideoStreamPoolsCommand = async ( input: ListMediaPipelineKinesisVideoStreamPoolsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-pipeline-kinesis-video-stream-pools"; + b.bp("/media-pipeline-kinesis-video-stream-pools"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -846,24 +632,16 @@ export const se_ListMediaPipelinesCommand = async ( input: ListMediaPipelinesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines"; + b.bp("/sdk-media-pipelines"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -873,23 +651,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ResourceARN!, `ResourceARN`)], + [_a]: [, __expectNonNull(input[_RARN]!, `ResourceARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -899,16 +669,14 @@ export const se_StartSpeakerSearchTaskCommand = async ( input: StartSpeakerSearchTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipelines/{Identifier}/speaker-search-tasks"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); const query: any = map({ - operation: [, "start"], + [_o]: [, "start"], }); let body: any; body = JSON.stringify( @@ -918,16 +686,8 @@ export const se_StartSpeakerSearchTaskCommand = async ( VoiceProfileDomainArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -937,16 +697,14 @@ export const se_StartVoiceToneAnalysisTaskCommand = async ( input: StartVoiceToneAnalysisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); const query: any = map({ - operation: [, "start"], + [_o]: [, "start"], }); let body: any; body = JSON.stringify( @@ -956,16 +714,8 @@ export const se_StartVoiceToneAnalysisTaskCommand = async ( LanguageCode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -975,34 +725,17 @@ export const se_StopSpeakerSearchTaskCommand = async ( input: StopSpeakerSearchTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SpeakerSearchTaskId", - () => input.SpeakerSearchTaskId!, - "{SpeakerSearchTaskId}", - false - ); + b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); + b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId!, "{SpeakerSearchTaskId}", false); const query: any = map({ - operation: [, "stop"], + [_o]: [, "stop"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1012,34 +745,17 @@ export const se_StopVoiceToneAnalysisTaskCommand = async ( input: StopVoiceToneAnalysisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceToneAnalysisTaskId", - () => input.VoiceToneAnalysisTaskId!, - "{VoiceToneAnalysisTaskId}", - false - ); + b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); + b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId!, "{VoiceToneAnalysisTaskId}", false); const query: any = map({ - operation: [, "stop"], + [_o]: [, "stop"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1049,13 +765,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "tag-resource"], + [_o]: [, "tag-resource"], }); let body: any; body = JSON.stringify( @@ -1064,16 +780,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1083,13 +791,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "untag-resource"], + [_o]: [, "untag-resource"], }); let body: any; body = JSON.stringify( @@ -1098,16 +806,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1117,14 +817,12 @@ export const se_UpdateMediaInsightsPipelineConfigurationCommand = async ( input: UpdateMediaInsightsPipelineConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipeline-configurations/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-insights-pipeline-configurations/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1133,15 +831,8 @@ export const se_UpdateMediaInsightsPipelineConfigurationCommand = async ( ResourceAccessRoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1151,29 +842,20 @@ export const se_UpdateMediaInsightsPipelineStatusCommand = async ( input: UpdateMediaInsightsPipelineStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-insights-pipeline-status/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-insights-pipeline-status/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; body = JSON.stringify( take(input, { UpdateStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1183,29 +865,20 @@ export const se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async ( input: UpdateMediaPipelineKinesisVideoStreamPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-pipeline-kinesis-video-stream-pools/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; body = JSON.stringify( take(input, { StreamConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3984,6 +3657,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RARN = "ResourceARN"; +const _a = "arn"; +const _mr = "max-results"; +const _nt = "next-token"; +const _o = "operation"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-chime-sdk-meetings/package.json b/clients/client-chime-sdk-meetings/package.json index dbbd5aee8fcc..8835d31d5084 100644 --- a/clients/client-chime-sdk-meetings/package.json +++ b/clients/client-chime-sdk-meetings/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts index 121a69e334dd..50a5e8471dd7 100644 --- a/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -90,15 +91,14 @@ export const se_BatchCreateAttendeeCommand = async ( input: BatchCreateAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/attendees"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "batch-create"], + [_o]: [, "batch-create"], }); let body: any; body = JSON.stringify( @@ -106,16 +106,8 @@ export const se_BatchCreateAttendeeCommand = async ( Attendees: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -125,16 +117,14 @@ export const se_BatchUpdateAttendeeCapabilitiesExceptCommand = async ( input: BatchUpdateAttendeeCapabilitiesExceptCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/capabilities"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/attendees/capabilities"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "batch-update-except"], + [_o]: [, "batch-update-except"], }); let body: any; body = JSON.stringify( @@ -143,16 +133,8 @@ export const se_BatchUpdateAttendeeCapabilitiesExceptCommand = async ( ExcludedAttendeeIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -162,13 +144,12 @@ export const se_CreateAttendeeCommand = async ( input: CreateAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/attendees"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; body = JSON.stringify( take(input, { @@ -176,15 +157,8 @@ export const se_CreateAttendeeCommand = async ( ExternalUserId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -194,11 +168,11 @@ export const se_CreateMeetingCommand = async ( input: CreateMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings"; + b.bp("/meetings"); let body: any; body = JSON.stringify( take(input, { @@ -213,15 +187,8 @@ export const se_CreateMeetingCommand = async ( TenantIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -231,13 +198,13 @@ export const se_CreateMeetingWithAttendeesCommand = async ( input: CreateMeetingWithAttendeesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings"; + b.bp("/meetings"); const query: any = map({ - operation: [, "create-attendees"], + [_o]: [, "create-attendees"], }); let body: any; body = JSON.stringify( @@ -254,16 +221,8 @@ export const se_CreateMeetingWithAttendeesCommand = async ( TenantIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -273,23 +232,14 @@ export const se_DeleteAttendeeCommand = async ( input: DeleteAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -299,20 +249,13 @@ export const se_DeleteMeetingCommand = async ( input: DeleteMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -322,23 +265,14 @@ export const se_GetAttendeeCommand = async ( input: GetAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -348,20 +282,13 @@ export const se_GetMeetingCommand = async ( input: GetMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -371,26 +298,17 @@ export const se_ListAttendeesCommand = async ( input: ListAttendeesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/attendees"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -400,23 +318,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ResourceARN!, `ResourceARN`)], + [_a]: [, __expectNonNull(input[_RARN]!, `ResourceARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -426,15 +336,14 @@ export const se_StartMeetingTranscriptionCommand = async ( input: StartMeetingTranscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/transcription"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "start"], + [_o]: [, "start"], }); let body: any; body = JSON.stringify( @@ -442,16 +351,8 @@ export const se_StartMeetingTranscriptionCommand = async ( TranscriptionConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -461,25 +362,16 @@ export const se_StopMeetingTranscriptionCommand = async ( input: StopMeetingTranscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/transcription"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "stop"], + [_o]: [, "stop"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -489,13 +381,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "tag-resource"], + [_o]: [, "tag-resource"], }); let body: any; body = JSON.stringify( @@ -504,16 +396,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -523,13 +407,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "untag-resource"], + [_o]: [, "untag-resource"], }); let body: any; body = JSON.stringify( @@ -538,16 +422,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -557,30 +433,21 @@ export const se_UpdateAttendeeCapabilitiesCommand = async ( input: UpdateAttendeeCapabilitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); let body: any; body = JSON.stringify( take(input, { Capabilities: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1796,7 +1663,7 @@ const de_ServiceUnavailableExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - RetryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_RAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1973,6 +1840,16 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RARN = "ResourceARN"; +const _RAS = "RetryAfterSeconds"; +const _a = "arn"; +const _mr = "max-results"; +const _nt = "next-token"; +const _o = "operation"; +const _ra = "retry-after"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-chime-sdk-messaging/package.json b/clients/client-chime-sdk-messaging/package.json index d0189755adfa..9e02d7c9fde1 100644 --- a/clients/client-chime-sdk-messaging/package.json +++ b/clients/client-chime-sdk-messaging/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts index 9c533b1aa192..9d5cd8e2531b 100644 --- a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -215,29 +216,21 @@ export const se_AssociateChannelFlowCommand = async ( input: AssociateChannelFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/channel-flow"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/channel-flow"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { ChannelFlowArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -247,16 +240,15 @@ export const se_BatchCreateChannelMembershipCommand = async ( input: BatchCreateChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/memberships"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - operation: [, "batch-create"], + [_o]: [, "batch-create"], }); let body: any; body = JSON.stringify( @@ -266,16 +258,8 @@ export const se_BatchCreateChannelMembershipCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -285,14 +269,14 @@ export const se_ChannelFlowCallbackCommand = async ( input: ChannelFlowCallbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - operation: [, "channel-flow-callback"], + [_o]: [, "channel-flow-callback"], }); let body: any; body = JSON.stringify( @@ -302,16 +286,8 @@ export const se_ChannelFlowCallbackCommand = async ( DeleteResource: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -321,12 +297,12 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); let body: any; body = JSON.stringify( take(input, { @@ -344,15 +320,8 @@ export const se_CreateChannelCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -362,29 +331,21 @@ export const se_CreateChannelBanCommand = async ( input: CreateChannelBanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/bans"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { MemberArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -394,11 +355,11 @@ export const se_CreateChannelFlowCommand = async ( input: CreateChannelFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows"; + b.bp("/channel-flows"); let body: any; body = JSON.stringify( take(input, { @@ -409,15 +370,8 @@ export const se_CreateChannelFlowCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -427,14 +381,13 @@ export const se_CreateChannelMembershipCommand = async ( input: CreateChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/memberships"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -443,15 +396,8 @@ export const se_CreateChannelMembershipCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -461,29 +407,21 @@ export const se_CreateChannelModeratorCommand = async ( input: CreateChannelModeratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/moderators"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { ChannelModeratorArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -493,22 +431,15 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -518,24 +449,16 @@ export const se_DeleteChannelBanCommand = async ( input: DeleteChannelBanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/bans/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -545,28 +468,13 @@ export const se_DeleteChannelFlowCommand = async ( input: DeleteChannelFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelFlowArn", - () => input.ChannelFlowArn!, - "{ChannelFlowArn}", - false - ); + b.bp("/channel-flows/{ChannelFlowArn}"); + b.p("ChannelFlowArn", () => input.ChannelFlowArn!, "{ChannelFlowArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -576,29 +484,19 @@ export const se_DeleteChannelMembershipCommand = async ( input: DeleteChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/memberships/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/memberships/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); const query: any = map({ - "sub-channel-id": [, input.SubChannelId!], + [_sci]: [, input[_SCI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -608,29 +506,19 @@ export const se_DeleteChannelMessageCommand = async ( input: DeleteChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); const query: any = map({ - "sub-channel-id": [, input.SubChannelId!], + [_sci]: [, input[_SCI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -640,32 +528,16 @@ export const se_DeleteChannelModeratorCommand = async ( input: DeleteChannelModeratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelModeratorArn", - () => input.ChannelModeratorArn!, - "{ChannelModeratorArn}", - false - ); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_xacb]: input[_CB]!, }); + b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("ChannelModeratorArn", () => input.ChannelModeratorArn!, "{ChannelModeratorArn}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -675,29 +547,13 @@ export const se_DeleteMessagingStreamingConfigurationsCommand = async ( input: DeleteMessagingStreamingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/streaming-configurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/streaming-configurations"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -707,22 +563,15 @@ export const se_DescribeChannelCommand = async ( input: DescribeChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -732,24 +581,16 @@ export const se_DescribeChannelBanCommand = async ( input: DescribeChannelBanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/bans/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -759,28 +600,13 @@ export const se_DescribeChannelFlowCommand = async ( input: DescribeChannelFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelFlowArn", - () => input.ChannelFlowArn!, - "{ChannelFlowArn}", - false - ); + b.bp("/channel-flows/{ChannelFlowArn}"); + b.p("ChannelFlowArn", () => input.ChannelFlowArn!, "{ChannelFlowArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -790,29 +616,19 @@ export const se_DescribeChannelMembershipCommand = async ( input: DescribeChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/memberships/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/memberships/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); const query: any = map({ - "sub-channel-id": [, input.SubChannelId!], + [_sci]: [, input[_SCI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -822,27 +638,19 @@ export const se_DescribeChannelMembershipForAppInstanceUserCommand = async ( input: DescribeChannelMembershipForAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - scope: [, "app-instance-user-membership"], - "app-instance-user-arn": [, __expectNonNull(input.AppInstanceUserArn!, `AppInstanceUserArn`)], + [_s]: [, "app-instance-user-membership"], + [_aiua]: [, __expectNonNull(input[_AIUA]!, `AppInstanceUserArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -852,27 +660,19 @@ export const se_DescribeChannelModeratedByAppInstanceUserCommand = async ( input: DescribeChannelModeratedByAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - scope: [, "app-instance-user-moderated-channel"], - "app-instance-user-arn": [, __expectNonNull(input.AppInstanceUserArn!, `AppInstanceUserArn`)], + [_s]: [, "app-instance-user-moderated-channel"], + [_aiua]: [, __expectNonNull(input[_AIUA]!, `AppInstanceUserArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -882,32 +682,16 @@ export const se_DescribeChannelModeratorCommand = async ( input: DescribeChannelModeratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelModeratorArn", - () => input.ChannelModeratorArn!, - "{ChannelModeratorArn}", - false - ); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, + [_xacb]: input[_CB]!, }); + b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("ChannelModeratorArn", () => input.ChannelModeratorArn!, "{ChannelModeratorArn}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -917,32 +701,16 @@ export const se_DisassociateChannelFlowCommand = async ( input: DisassociateChannelFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelFlowArn", - () => input.ChannelFlowArn!, - "{ChannelFlowArn}", - false - ); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_xacb]: input[_CB]!, }); + b.bp("/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("ChannelFlowArn", () => input.ChannelFlowArn!, "{ChannelFlowArn}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -952,25 +720,16 @@ export const se_GetChannelMembershipPreferencesCommand = async ( input: GetChannelMembershipPreferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/memberships/{MemberArn}/preferences"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -980,29 +739,19 @@ export const se_GetChannelMessageCommand = async ( input: GetChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); const query: any = map({ - "sub-channel-id": [, input.SubChannelId!], + [_sci]: [, input[_SCI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1012,30 +761,20 @@ export const se_GetChannelMessageStatusCommand = async ( input: GetChannelMessageStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); const query: any = map({ - scope: [, "message-status"], - "sub-channel-id": [, input.SubChannelId!], + [_s]: [, "message-status"], + [_sci]: [, input[_SCI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1045,23 +784,15 @@ export const se_GetMessagingSessionEndpointCommand = async ( input: GetMessagingSessionEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoints/messaging-session"; + b.bp("/endpoints/messaging-session"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1071,29 +802,13 @@ export const se_GetMessagingStreamingConfigurationsCommand = async ( input: GetMessagingStreamingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/streaming-configurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/streaming-configurations"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1103,28 +818,19 @@ export const se_ListChannelBansCommand = async ( input: ListChannelBansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/bans"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1134,25 +840,17 @@ export const se_ListChannelFlowsCommand = async ( input: ListChannelFlowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows"; + b.bp("/channel-flows"); const query: any = map({ - "app-instance-arn": [, __expectNonNull(input.AppInstanceArn!, `AppInstanceArn`)], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_aia]: [, __expectNonNull(input[_AIA]!, `AppInstanceArn`)], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1162,30 +860,21 @@ export const se_ListChannelMembershipsCommand = async ( input: ListChannelMembershipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/memberships"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - type: [, input.Type!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], - "sub-channel-id": [, input.SubChannelId!], + [_t]: [, input[_T]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], + [_sci]: [, input[_SCI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1195,28 +884,20 @@ export const se_ListChannelMembershipsForAppInstanceUserCommand = async ( input: ListChannelMembershipsForAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - scope: [, "app-instance-user-memberships"], - "app-instance-user-arn": [, input.AppInstanceUserArn!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_s]: [, "app-instance-user-memberships"], + [_aiua]: [, input[_AIUA]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1226,38 +907,23 @@ export const se_ListChannelMessagesCommand = async ( input: ListChannelMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/messages"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - "sort-order": [, input.SortOrder!], - "not-before": [ - () => input.NotBefore !== void 0, - () => (input.NotBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - "not-after": [ - () => input.NotAfter !== void 0, - () => (input.NotAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], - "sub-channel-id": [, input.SubChannelId!], + [_so]: [, input[_SO]!], + [_nb]: [() => input.NotBefore !== void 0, () => (input[_NB]!.toISOString().split(".")[0] + "Z").toString()], + [_na]: [() => input.NotAfter !== void 0, () => (input[_NA]!.toISOString().split(".")[0] + "Z").toString()], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], + [_sci]: [, input[_SCI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1267,28 +933,19 @@ export const se_ListChannelModeratorsCommand = async ( input: ListChannelModeratorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/moderators"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1298,28 +955,20 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - "app-instance-arn": [, __expectNonNull(input.AppInstanceArn!, `AppInstanceArn`)], - privacy: [, input.Privacy!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_aia]: [, __expectNonNull(input[_AIA]!, `AppInstanceArn`)], + [_p]: [, input[_P]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1329,26 +978,18 @@ export const se_ListChannelsAssociatedWithChannelFlowCommand = async ( input: ListChannelsAssociatedWithChannelFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - scope: [, "channel-flow-associations"], - "channel-flow-arn": [, __expectNonNull(input.ChannelFlowArn!, `ChannelFlowArn`)], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_s]: [, "channel-flow-associations"], + [_cfa]: [, __expectNonNull(input[_CFA]!, `ChannelFlowArn`)], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1358,28 +999,20 @@ export const se_ListChannelsModeratedByAppInstanceUserCommand = async ( input: ListChannelsModeratedByAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - scope: [, "app-instance-user-moderated-channels"], - "app-instance-user-arn": [, input.AppInstanceUserArn!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_s]: [, "app-instance-user-moderated-channels"], + [_aiua]: [, input[_AIUA]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1389,28 +1022,19 @@ export const se_ListSubChannelsCommand = async ( input: ListSubChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/subchannels"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/subchannels"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1420,23 +1044,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ResourceARN!, `ResourceARN`)], + [_a]: [, __expectNonNull(input[_RARN]!, `ResourceARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1446,30 +1062,21 @@ export const se_PutChannelExpirationSettingsCommand = async ( input: PutChannelExpirationSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/expiration-settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/expiration-settings"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { ExpirationSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1479,31 +1086,22 @@ export const se_PutChannelMembershipPreferencesCommand = async ( input: PutChannelMembershipPreferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/memberships/{MemberArn}/preferences"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/memberships/{MemberArn}/preferences"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; body = JSON.stringify( take(input, { Preferences: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1513,36 +1111,20 @@ export const se_PutMessagingStreamingConfigurationsCommand = async ( input: PutMessagingStreamingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/streaming-configurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/streaming-configurations"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { StreamingConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1552,18 +1134,16 @@ export const se_RedactChannelMessageCommand = async ( input: RedactChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); const query: any = map({ - operation: [, "redact"], + [_o]: [, "redact"], }); let body: any; body = JSON.stringify( @@ -1571,16 +1151,8 @@ export const se_RedactChannelMessageCommand = async ( SubChannelId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1590,16 +1162,16 @@ export const se_SearchChannelsCommand = async ( input: SearchChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - operation: [, "search"], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_o]: [, "search"], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; body = JSON.stringify( @@ -1607,16 +1179,8 @@ export const se_SearchChannelsCommand = async ( Fields: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1626,14 +1190,13 @@ export const se_SendChannelMessageCommand = async ( input: SendChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/messages"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1649,15 +1212,8 @@ export const se_SendChannelMessageCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1667,13 +1223,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "tag-resource"], + [_o]: [, "tag-resource"], }); let body: any; body = JSON.stringify( @@ -1682,16 +1238,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1701,13 +1249,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "untag-resource"], + [_o]: [, "untag-resource"], }); let body: any; body = JSON.stringify( @@ -1716,16 +1264,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1735,13 +1275,13 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1750,15 +1290,8 @@ export const se_UpdateChannelCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1768,20 +1301,12 @@ export const se_UpdateChannelFlowCommand = async ( input: UpdateChannelFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelFlowArn", - () => input.ChannelFlowArn!, - "{ChannelFlowArn}", - false - ); + b.bp("/channel-flows/{ChannelFlowArn}"); + b.p("ChannelFlowArn", () => input.ChannelFlowArn!, "{ChannelFlowArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1789,15 +1314,8 @@ export const se_UpdateChannelFlowCommand = async ( Processors: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1807,16 +1325,14 @@ export const se_UpdateChannelMessageCommand = async ( input: UpdateChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1826,15 +1342,8 @@ export const se_UpdateChannelMessageCommand = async ( SubChannelId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1844,23 +1353,15 @@ export const se_UpdateChannelReadMarkerCommand = async ( input: UpdateChannelReadMarkerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/readMarker"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5670,6 +5171,35 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AIA = "AppInstanceArn"; +const _AIUA = "AppInstanceUserArn"; +const _CB = "ChimeBearer"; +const _CFA = "ChannelFlowArn"; +const _MR = "MaxResults"; +const _NA = "NotAfter"; +const _NB = "NotBefore"; +const _NT = "NextToken"; +const _P = "Privacy"; +const _RARN = "ResourceARN"; +const _SCI = "SubChannelId"; +const _SO = "SortOrder"; +const _T = "Type"; +const _a = "arn"; +const _aia = "app-instance-arn"; +const _aiua = "app-instance-user-arn"; +const _cfa = "channel-flow-arn"; +const _mr = "max-results"; +const _na = "not-after"; +const _nb = "not-before"; +const _nt = "next-token"; +const _o = "operation"; +const _p = "privacy"; +const _s = "scope"; +const _sci = "sub-channel-id"; +const _so = "sort-order"; +const _t = "type"; +const _xacb = "x-amz-chime-bearer"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-chime-sdk-voice/package.json b/clients/client-chime-sdk-voice/package.json index 8e7a905910d8..63cb8bc742db 100644 --- a/clients/client-chime-sdk-voice/package.json +++ b/clients/client-chime-sdk-voice/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts index 9a6498e98b25..8ef9e601247c 100644 --- a/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -384,22 +385,14 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorCommand = async ( input: AssociatePhoneNumbersWithVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "associate-phone-numbers"], + [_o]: [, "associate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -408,16 +401,8 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorCommand = async ( ForceAssociate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -427,23 +412,14 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = async ( input: AssociatePhoneNumbersWithVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); const query: any = map({ - operation: [, "associate-phone-numbers"], + [_o]: [, "associate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -452,16 +428,8 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = async ( ForceAssociate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -471,13 +439,13 @@ export const se_BatchDeletePhoneNumberCommand = async ( input: BatchDeletePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers"; + b.bp("/phone-numbers"); const query: any = map({ - operation: [, "batch-delete"], + [_o]: [, "batch-delete"], }); let body: any; body = JSON.stringify( @@ -485,16 +453,8 @@ export const se_BatchDeletePhoneNumberCommand = async ( PhoneNumberIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -504,13 +464,13 @@ export const se_BatchUpdatePhoneNumberCommand = async ( input: BatchUpdatePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers"; + b.bp("/phone-numbers"); const query: any = map({ - operation: [, "batch-update"], + [_o]: [, "batch-update"], }); let body: any; body = JSON.stringify( @@ -518,16 +478,8 @@ export const se_BatchUpdatePhoneNumberCommand = async ( UpdatePhoneNumberRequestItems: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -537,11 +489,11 @@ export const se_CreatePhoneNumberOrderCommand = async ( input: CreatePhoneNumberOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders"; + b.bp("/phone-number-orders"); let body: any; body = JSON.stringify( take(input, { @@ -550,15 +502,8 @@ export const se_CreatePhoneNumberOrderCommand = async ( ProductType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -568,21 +513,12 @@ export const se_CreateProxySessionCommand = async ( input: CreateProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -595,15 +531,8 @@ export const se_CreateProxySessionCommand = async ( ParticipantPhoneNumbers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -613,12 +542,11 @@ export const se_CreateSipMediaApplicationCommand = async ( input: CreateSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications"; + b.bp("/sip-media-applications"); let body: any; body = JSON.stringify( take(input, { @@ -628,15 +556,8 @@ export const se_CreateSipMediaApplicationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -646,21 +567,12 @@ export const se_CreateSipMediaApplicationCallCommand = async ( input: CreateSipMediaApplicationCallCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/calls"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/calls"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -670,15 +582,8 @@ export const se_CreateSipMediaApplicationCallCommand = async ( ToPhoneNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -688,11 +593,11 @@ export const se_CreateSipRuleCommand = async ( input: CreateSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules"; + b.bp("/sip-rules"); let body: any; body = JSON.stringify( take(input, { @@ -703,15 +608,8 @@ export const se_CreateSipRuleCommand = async ( TriggerValue: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -721,11 +619,11 @@ export const se_CreateVoiceConnectorCommand = async ( input: CreateVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors"; + b.bp("/voice-connectors"); let body: any; body = JSON.stringify( take(input, { @@ -735,15 +633,8 @@ export const se_CreateVoiceConnectorCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -753,12 +644,11 @@ export const se_CreateVoiceConnectorGroupCommand = async ( input: CreateVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups"; + b.bp("/voice-connector-groups"); let body: any; body = JSON.stringify( take(input, { @@ -766,15 +656,8 @@ export const se_CreateVoiceConnectorGroupCommand = async ( VoiceConnectorItems: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -784,26 +667,19 @@ export const se_CreateVoiceProfileCommand = async ( input: CreateVoiceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles"; + b.bp("/voice-profiles"); let body: any; body = JSON.stringify( take(input, { SpeakerSearchTaskId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -813,11 +689,11 @@ export const se_CreateVoiceProfileDomainCommand = async ( input: CreateVoiceProfileDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profile-domains"; + b.bp("/voice-profile-domains"); let body: any; body = JSON.stringify( take(input, { @@ -828,15 +704,8 @@ export const se_CreateVoiceProfileDomainCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -846,28 +715,13 @@ export const se_DeletePhoneNumberCommand = async ( input: DeletePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -877,37 +731,14 @@ export const se_DeleteProxySessionCommand = async ( input: DeleteProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ProxySessionId", - () => input.ProxySessionId!, - "{ProxySessionId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("ProxySessionId", () => input.ProxySessionId!, "{ProxySessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -917,29 +748,13 @@ export const se_DeleteSipMediaApplicationCommand = async ( input: DeleteSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -949,20 +764,13 @@ export const se_DeleteSipRuleCommand = async ( input: DeleteSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); + b.bp("/sip-rules/{SipRuleId}"); + b.p("SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -972,28 +780,13 @@ export const se_DeleteVoiceConnectorCommand = async ( input: DeleteVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1003,29 +796,13 @@ export const se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = async input: DeleteVoiceConnectorEmergencyCallingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1035,29 +812,13 @@ export const se_DeleteVoiceConnectorGroupCommand = async ( input: DeleteVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1067,29 +828,13 @@ export const se_DeleteVoiceConnectorOriginationCommand = async ( input: DeleteVoiceConnectorOriginationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/origination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/origination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1099,29 +844,13 @@ export const se_DeleteVoiceConnectorProxyCommand = async ( input: DeleteVoiceConnectorProxyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1131,29 +860,13 @@ export const se_DeleteVoiceConnectorStreamingConfigurationCommand = async ( input: DeleteVoiceConnectorStreamingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/streaming-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1163,29 +876,13 @@ export const se_DeleteVoiceConnectorTerminationCommand = async ( input: DeleteVoiceConnectorTerminationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1195,23 +892,14 @@ export const se_DeleteVoiceConnectorTerminationCredentialsCommand = async ( input: DeleteVoiceConnectorTerminationCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/credentials"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "delete"], + [_o]: [, "delete"], }); let body: any; body = JSON.stringify( @@ -1219,16 +907,8 @@ export const se_DeleteVoiceConnectorTerminationCredentialsCommand = async ( Usernames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1238,28 +918,13 @@ export const se_DeleteVoiceProfileCommand = async ( input: DeleteVoiceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceProfileId", - () => input.VoiceProfileId!, - "{VoiceProfileId}", - false - ); + b.bp("/voice-profiles/{VoiceProfileId}"); + b.p("VoiceProfileId", () => input.VoiceProfileId!, "{VoiceProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1269,29 +934,13 @@ export const se_DeleteVoiceProfileDomainCommand = async ( input: DeleteVoiceProfileDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-profile-domains/{VoiceProfileDomainId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceProfileDomainId", - () => input.VoiceProfileDomainId!, - "{VoiceProfileDomainId}", - false - ); + b.bp("/voice-profile-domains/{VoiceProfileDomainId}"); + b.p("VoiceProfileDomainId", () => input.VoiceProfileDomainId!, "{VoiceProfileDomainId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1301,22 +950,14 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorCommand = async ( input: DisassociatePhoneNumbersFromVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "disassociate-phone-numbers"], + [_o]: [, "disassociate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -1324,16 +965,8 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorCommand = async ( E164PhoneNumbers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1343,23 +976,14 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = async ( input: DisassociatePhoneNumbersFromVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); const query: any = map({ - operation: [, "disassociate-phone-numbers"], + [_o]: [, "disassociate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -1367,16 +991,8 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = async ( E164PhoneNumbers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1386,22 +1002,15 @@ export const se_GetGlobalSettingsCommand = async ( input: GetGlobalSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings"; + b.bp("/settings"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1411,28 +1020,13 @@ export const se_GetPhoneNumberCommand = async ( input: GetPhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1442,28 +1036,13 @@ export const se_GetPhoneNumberOrderCommand = async ( input: GetPhoneNumberOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders/{PhoneNumberOrderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberOrderId", - () => input.PhoneNumberOrderId!, - "{PhoneNumberOrderId}", - false - ); + b.bp("/phone-number-orders/{PhoneNumberOrderId}"); + b.p("PhoneNumberOrderId", () => input.PhoneNumberOrderId!, "{PhoneNumberOrderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1473,22 +1052,15 @@ export const se_GetPhoneNumberSettingsCommand = async ( input: GetPhoneNumberSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number"; + b.bp("/settings/phone-number"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1498,37 +1070,14 @@ export const se_GetProxySessionCommand = async ( input: GetProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ProxySessionId", - () => input.ProxySessionId!, - "{ProxySessionId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("ProxySessionId", () => input.ProxySessionId!, "{ProxySessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1538,29 +1087,13 @@ export const se_GetSipMediaApplicationCommand = async ( input: GetSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1570,29 +1103,13 @@ export const se_GetSipMediaApplicationAlexaSkillConfigurationCommand = async ( input: GetSipMediaApplicationAlexaSkillConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1602,29 +1119,13 @@ export const se_GetSipMediaApplicationLoggingConfigurationCommand = async ( input: GetSipMediaApplicationLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/logging-configuration"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1634,20 +1135,13 @@ export const se_GetSipRuleCommand = async ( input: GetSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); + b.bp("/sip-rules/{SipRuleId}"); + b.p("SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1657,37 +1151,14 @@ export const se_GetSpeakerSearchTaskCommand = async ( input: GetSpeakerSearchTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SpeakerSearchTaskId", - () => input.SpeakerSearchTaskId!, - "{SpeakerSearchTaskId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId!, "{SpeakerSearchTaskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1697,28 +1168,13 @@ export const se_GetVoiceConnectorCommand = async ( input: GetVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1728,29 +1184,13 @@ export const se_GetVoiceConnectorEmergencyCallingConfigurationCommand = async ( input: GetVoiceConnectorEmergencyCallingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1760,29 +1200,13 @@ export const se_GetVoiceConnectorGroupCommand = async ( input: GetVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1792,29 +1216,13 @@ export const se_GetVoiceConnectorLoggingConfigurationCommand = async ( input: GetVoiceConnectorLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/logging-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1824,29 +1232,13 @@ export const se_GetVoiceConnectorOriginationCommand = async ( input: GetVoiceConnectorOriginationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/origination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/origination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1856,29 +1248,13 @@ export const se_GetVoiceConnectorProxyCommand = async ( input: GetVoiceConnectorProxyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1888,29 +1264,13 @@ export const se_GetVoiceConnectorStreamingConfigurationCommand = async ( input: GetVoiceConnectorStreamingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/streaming-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1920,29 +1280,13 @@ export const se_GetVoiceConnectorTerminationCommand = async ( input: GetVoiceConnectorTerminationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1952,29 +1296,13 @@ export const se_GetVoiceConnectorTerminationHealthCommand = async ( input: GetVoiceConnectorTerminationHealthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/health"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/health"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1984,28 +1312,13 @@ export const se_GetVoiceProfileCommand = async ( input: GetVoiceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceProfileId", - () => input.VoiceProfileId!, - "{VoiceProfileId}", - false - ); + b.bp("/voice-profiles/{VoiceProfileId}"); + b.p("VoiceProfileId", () => input.VoiceProfileId!, "{VoiceProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2015,29 +1328,13 @@ export const se_GetVoiceProfileDomainCommand = async ( input: GetVoiceProfileDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-profile-domains/{VoiceProfileDomainId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceProfileDomainId", - () => input.VoiceProfileDomainId!, - "{VoiceProfileDomainId}", - false - ); + b.bp("/voice-profile-domains/{VoiceProfileDomainId}"); + b.p("VoiceProfileDomainId", () => input.VoiceProfileDomainId!, "{VoiceProfileDomainId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2047,41 +1344,17 @@ export const se_GetVoiceToneAnalysisTaskCommand = async ( input: GetVoiceToneAnalysisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceToneAnalysisTaskId", - () => input.VoiceToneAnalysisTaskId!, - "{VoiceToneAnalysisTaskId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId!, "{VoiceToneAnalysisTaskId}", false); const query: any = map({ - isCaller: [__expectNonNull(input.IsCaller, `IsCaller`) != null, () => input.IsCaller!.toString()], + [_iC]: [__expectNonNull(input.IsCaller, `IsCaller`) != null, () => input[_IC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2091,23 +1364,15 @@ export const se_ListAvailableVoiceConnectorRegionsCommand = async ( input: ListAvailableVoiceConnectorRegionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-regions"; + b.bp("/voice-connector-regions"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2117,24 +1382,16 @@ export const se_ListPhoneNumberOrdersCommand = async ( input: ListPhoneNumberOrdersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders"; + b.bp("/phone-number-orders"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2144,28 +1401,20 @@ export const se_ListPhoneNumbersCommand = async ( input: ListPhoneNumbersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers"; + b.bp("/phone-numbers"); const query: any = map({ - status: [, input.Status!], - "product-type": [, input.ProductType!], - "filter-name": [, input.FilterName!], - "filter-value": [, input.FilterValue!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_s]: [, input[_S]!], + [_pt]: [, input[_PT]!], + [_fn]: [, input[_FN]!], + [_fv]: [, input[_FV]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2175,35 +1424,18 @@ export const se_ListProxySessionsCommand = async ( input: ListProxySessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - status: [, input.Status!], - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_s]: [, input[_S]!], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2213,25 +1445,16 @@ export const se_ListSipMediaApplicationsCommand = async ( input: ListSipMediaApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications"; + b.bp("/sip-media-applications"); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2241,25 +1464,17 @@ export const se_ListSipRulesCommand = async ( input: ListSipRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules"; + b.bp("/sip-rules"); const query: any = map({ - "sip-media-application": [, input.SipMediaApplicationId!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_sma]: [, input[_SMAI]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2269,24 +1484,15 @@ export const se_ListSupportedPhoneNumberCountriesCommand = async ( input: ListSupportedPhoneNumberCountriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-countries"; + b.bp("/phone-number-countries"); const query: any = map({ - "product-type": [, __expectNonNull(input.ProductType!, `ProductType`)], + [_pt]: [, __expectNonNull(input[_PT]!, `ProductType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2296,23 +1502,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ResourceARN!, `ResourceARN`)], + [_a]: [, __expectNonNull(input[_RARN]!, `ResourceARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2322,25 +1520,16 @@ export const se_ListVoiceConnectorGroupsCommand = async ( input: ListVoiceConnectorGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups"; + b.bp("/voice-connector-groups"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2350,24 +1539,16 @@ export const se_ListVoiceConnectorsCommand = async ( input: ListVoiceConnectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors"; + b.bp("/voice-connectors"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2377,29 +1558,13 @@ export const se_ListVoiceConnectorTerminationCredentialsCommand = async ( input: ListVoiceConnectorTerminationCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/credentials"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2409,24 +1574,16 @@ export const se_ListVoiceProfileDomainsCommand = async ( input: ListVoiceProfileDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profile-domains"; + b.bp("/voice-profile-domains"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2436,25 +1593,17 @@ export const se_ListVoiceProfilesCommand = async ( input: ListVoiceProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles"; + b.bp("/voice-profiles"); const query: any = map({ - "voice-profile-domain-id": [, __expectNonNull(input.VoiceProfileDomainId!, `VoiceProfileDomainId`)], - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_vpdi]: [, __expectNonNull(input[_VPDI]!, `VoiceProfileDomainId`)], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2464,36 +1613,20 @@ export const se_PutSipMediaApplicationAlexaSkillConfigurationCommand = async ( input: PutSipMediaApplicationAlexaSkillConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/alexa-skill-configuration"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; body = JSON.stringify( take(input, { SipMediaApplicationAlexaSkillConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2503,36 +1636,20 @@ export const se_PutSipMediaApplicationLoggingConfigurationCommand = async ( input: PutSipMediaApplicationLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/logging-configuration"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; body = JSON.stringify( take(input, { SipMediaApplicationLoggingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2542,36 +1659,20 @@ export const se_PutVoiceConnectorEmergencyCallingConfigurationCommand = async ( input: PutVoiceConnectorEmergencyCallingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { EmergencyCallingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2581,36 +1682,20 @@ export const se_PutVoiceConnectorLoggingConfigurationCommand = async ( input: PutVoiceConnectorLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/logging-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { LoggingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2620,36 +1705,20 @@ export const se_PutVoiceConnectorOriginationCommand = async ( input: PutVoiceConnectorOriginationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/origination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/origination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { Origination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2659,21 +1728,12 @@ export const se_PutVoiceConnectorProxyCommand = async ( input: PutVoiceConnectorProxyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2683,15 +1743,8 @@ export const se_PutVoiceConnectorProxyCommand = async ( PhoneNumberPoolCountries: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2701,36 +1754,20 @@ export const se_PutVoiceConnectorStreamingConfigurationCommand = async ( input: PutVoiceConnectorStreamingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/streaming-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { StreamingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2740,36 +1777,20 @@ export const se_PutVoiceConnectorTerminationCommand = async ( input: PutVoiceConnectorTerminationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { Termination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2779,23 +1800,14 @@ export const se_PutVoiceConnectorTerminationCredentialsCommand = async ( input: PutVoiceConnectorTerminationCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/credentials"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "put"], + [_o]: [, "put"], }); let body: any; body = JSON.stringify( @@ -2803,16 +1815,8 @@ export const se_PutVoiceConnectorTerminationCredentialsCommand = async ( Credentials: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2822,32 +1826,16 @@ export const se_RestorePhoneNumberCommand = async ( input: RestorePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); const query: any = map({ - operation: [, "restore"], + [_o]: [, "restore"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2857,31 +1845,23 @@ export const se_SearchAvailablePhoneNumbersCommand = async ( input: SearchAvailablePhoneNumbersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search"; + b.bp("/search"); const query: any = map({ - type: [, "phone-numbers"], - "area-code": [, input.AreaCode!], - city: [, input.City!], - country: [, input.Country!], - state: [, input.State!], - "toll-free-prefix": [, input.TollFreePrefix!], - "phone-number-type": [, input.PhoneNumberType!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_t]: [, "phone-numbers"], + [_ac]: [, input[_AC]!], + [_c]: [, input[_C]!], + [_co]: [, input[_Co]!], + [_st]: [, input[_St]!], + [_tfp]: [, input[_TFP]!], + [_pnt]: [, input[_PNT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2891,21 +1871,12 @@ export const se_StartSpeakerSearchTaskCommand = async ( input: StartSpeakerSearchTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/speaker-search-tasks"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2915,15 +1886,8 @@ export const se_StartSpeakerSearchTaskCommand = async ( VoiceProfileDomainId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2933,21 +1897,12 @@ export const se_StartVoiceToneAnalysisTaskCommand = async ( input: StartVoiceToneAnalysisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2956,15 +1911,8 @@ export const se_StartVoiceToneAnalysisTaskCommand = async ( TransactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2974,41 +1922,17 @@ export const se_StopSpeakerSearchTaskCommand = async ( input: StopSpeakerSearchTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SpeakerSearchTaskId", - () => input.SpeakerSearchTaskId!, - "{SpeakerSearchTaskId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId!, "{SpeakerSearchTaskId}", false); const query: any = map({ - operation: [, "stop"], + [_o]: [, "stop"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3018,41 +1942,17 @@ export const se_StopVoiceToneAnalysisTaskCommand = async ( input: StopVoiceToneAnalysisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceToneAnalysisTaskId", - () => input.VoiceToneAnalysisTaskId!, - "{VoiceToneAnalysisTaskId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId!, "{VoiceToneAnalysisTaskId}", false); const query: any = map({ - operation: [, "stop"], + [_o]: [, "stop"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3062,13 +1962,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "tag-resource"], + [_o]: [, "tag-resource"], }); let body: any; body = JSON.stringify( @@ -3077,16 +1977,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3096,13 +1988,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "untag-resource"], + [_o]: [, "untag-resource"], }); let body: any; body = JSON.stringify( @@ -3111,16 +2003,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3130,26 +2014,19 @@ export const se_UpdateGlobalSettingsCommand = async ( input: UpdateGlobalSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings"; + b.bp("/settings"); let body: any; body = JSON.stringify( take(input, { VoiceConnector: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3159,20 +2036,12 @@ export const se_UpdatePhoneNumberCommand = async ( input: UpdatePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3181,15 +2050,8 @@ export const se_UpdatePhoneNumberCommand = async ( ProductType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3199,26 +2061,19 @@ export const se_UpdatePhoneNumberSettingsCommand = async ( input: UpdatePhoneNumberSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number"; + b.bp("/settings/phone-number"); let body: any; body = JSON.stringify( take(input, { CallingName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3228,29 +2083,13 @@ export const se_UpdateProxySessionCommand = async ( input: UpdateProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ProxySessionId", - () => input.ProxySessionId!, - "{ProxySessionId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("ProxySessionId", () => input.ProxySessionId!, "{ProxySessionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3258,15 +2097,8 @@ export const se_UpdateProxySessionCommand = async ( ExpiryMinutes: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3276,21 +2108,12 @@ export const se_UpdateSipMediaApplicationCommand = async ( input: UpdateSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3298,15 +2121,8 @@ export const se_UpdateSipMediaApplicationCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3316,44 +2132,21 @@ export const se_UpdateSipMediaApplicationCallCommand = async ( input: UpdateSipMediaApplicationCallCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/calls/{TransactionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TransactionId", - () => input.TransactionId!, - "{TransactionId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/calls/{TransactionId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); + b.p("TransactionId", () => input.TransactionId!, "{TransactionId}", false); let body: any; body = JSON.stringify( take(input, { Arguments: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3363,12 +2156,12 @@ export const se_UpdateSipRuleCommand = async ( input: UpdateSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); + b.bp("/sip-rules/{SipRuleId}"); + b.p("SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3377,15 +2170,8 @@ export const se_UpdateSipRuleCommand = async ( TargetApplications: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3395,20 +2181,12 @@ export const se_UpdateVoiceConnectorCommand = async ( input: UpdateVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3416,15 +2194,8 @@ export const se_UpdateVoiceConnectorCommand = async ( RequireEncryption: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3434,21 +2205,12 @@ export const se_UpdateVoiceConnectorGroupCommand = async ( input: UpdateVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3456,15 +2218,8 @@ export const se_UpdateVoiceConnectorGroupCommand = async ( VoiceConnectorItems: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3474,35 +2229,20 @@ export const se_UpdateVoiceProfileCommand = async ( input: UpdateVoiceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-profiles/{VoiceProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceProfileId", - () => input.VoiceProfileId!, - "{VoiceProfileId}", - false - ); + b.bp("/voice-profiles/{VoiceProfileId}"); + b.p("VoiceProfileId", () => input.VoiceProfileId!, "{VoiceProfileId}", false); let body: any; body = JSON.stringify( take(input, { SpeakerSearchTaskId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3512,21 +2252,12 @@ export const se_UpdateVoiceProfileDomainCommand = async ( input: UpdateVoiceProfileDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-profile-domains/{VoiceProfileDomainId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceProfileDomainId", - () => input.VoiceProfileDomainId!, - "{VoiceProfileDomainId}", - false - ); + b.bp("/voice-profile-domains/{VoiceProfileDomainId}"); + b.p("VoiceProfileDomainId", () => input.VoiceProfileDomainId!, "{VoiceProfileDomainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3534,15 +2265,8 @@ export const se_UpdateVoiceProfileDomainCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3552,12 +2276,11 @@ export const se_ValidateE911AddressCommand = async ( input: ValidateE911AddressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/emergency-calling/address"; + b.bp("/emergency-calling/address"); let body: any; body = JSON.stringify( take(input, { @@ -3570,15 +2293,8 @@ export const se_ValidateE911AddressCommand = async ( StreetNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -10515,6 +9231,41 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AC = "AreaCode"; +const _C = "City"; +const _Co = "Country"; +const _FN = "FilterName"; +const _FV = "FilterValue"; +const _IC = "IsCaller"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _PNT = "PhoneNumberType"; +const _PT = "ProductType"; +const _RARN = "ResourceARN"; +const _S = "Status"; +const _SMAI = "SipMediaApplicationId"; +const _St = "State"; +const _TFP = "TollFreePrefix"; +const _VPDI = "VoiceProfileDomainId"; +const _a = "arn"; +const _ac = "area-code"; +const _c = "city"; +const _co = "country"; +const _fn = "filter-name"; +const _fv = "filter-value"; +const _iC = "isCaller"; +const _mr = "max-results"; +const _nt = "next-token"; +const _o = "operation"; +const _pnt = "phone-number-type"; +const _pt = "product-type"; +const _s = "status"; +const _sma = "sip-media-application"; +const _st = "state"; +const _t = "type"; +const _tfp = "toll-free-prefix"; +const _vpdi = "voice-profile-domain-id"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-chime/package.json b/clients/client-chime/package.json index 9463dce35ae3..43cfb124f480 100644 --- a/clients/client-chime/package.json +++ b/clients/client-chime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-chime/src/protocols/Aws_restJson1.ts b/clients/client-chime/src/protocols/Aws_restJson1.ts index 716325e22d62..c0953d8b2390 100644 --- a/clients/client-chime/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -661,22 +662,14 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorCommand = async ( input: AssociatePhoneNumbersWithVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "associate-phone-numbers"], + [_o]: [, "associate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -685,16 +678,8 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorCommand = async ( ForceAssociate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -704,23 +689,14 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = async ( input: AssociatePhoneNumbersWithVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); const query: any = map({ - operation: [, "associate-phone-numbers"], + [_o]: [, "associate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -729,16 +705,8 @@ export const se_AssociatePhoneNumbersWithVoiceConnectorGroupCommand = async ( ForceAssociate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -748,16 +716,15 @@ export const se_AssociatePhoneNumberWithUserCommand = async ( input: AssociatePhoneNumberWithUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); const query: any = map({ - operation: [, "associate-phone-number"], + [_o]: [, "associate-phone-number"], }); let body: any; body = JSON.stringify( @@ -765,16 +732,8 @@ export const se_AssociatePhoneNumberWithUserCommand = async ( E164PhoneNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -784,14 +743,14 @@ export const se_AssociateSigninDelegateGroupsWithAccountCommand = async ( input: AssociateSigninDelegateGroupsWithAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - operation: [, "associate-signin-delegate-groups"], + [_o]: [, "associate-signin-delegate-groups"], }); let body: any; body = JSON.stringify( @@ -799,16 +758,8 @@ export const se_AssociateSigninDelegateGroupsWithAccountCommand = async ( SigninDelegateGroups: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -818,15 +769,14 @@ export const se_BatchCreateAttendeeCommand = async ( input: BatchCreateAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/attendees"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "batch-create"], + [_o]: [, "batch-create"], }); let body: any; body = JSON.stringify( @@ -834,16 +784,8 @@ export const se_BatchCreateAttendeeCommand = async ( Attendees: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -853,16 +795,15 @@ export const se_BatchCreateChannelMembershipCommand = async ( input: BatchCreateChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/memberships"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - operation: [, "batch-create"], + [_o]: [, "batch-create"], }); let body: any; body = JSON.stringify( @@ -878,16 +819,9 @@ export const se_BatchCreateChannelMembershipCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -897,17 +831,15 @@ export const se_BatchCreateRoomMembershipCommand = async ( input: BatchCreateRoomMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/rooms/{RoomId}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}/memberships"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); const query: any = map({ - operation: [, "batch-create"], + [_o]: [, "batch-create"], }); let body: any; body = JSON.stringify( @@ -915,16 +847,8 @@ export const se_BatchCreateRoomMembershipCommand = async ( MembershipItemList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -934,13 +858,13 @@ export const se_BatchDeletePhoneNumberCommand = async ( input: BatchDeletePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers"; + b.bp("/phone-numbers"); const query: any = map({ - operation: [, "batch-delete"], + [_o]: [, "batch-delete"], }); let body: any; body = JSON.stringify( @@ -948,16 +872,8 @@ export const se_BatchDeletePhoneNumberCommand = async ( PhoneNumberIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -967,15 +883,14 @@ export const se_BatchSuspendUserCommand = async ( input: BatchSuspendUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/users"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - operation: [, "suspend"], + [_o]: [, "suspend"], }); let body: any; body = JSON.stringify( @@ -983,16 +898,8 @@ export const se_BatchSuspendUserCommand = async ( UserIdList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1002,15 +909,14 @@ export const se_BatchUnsuspendUserCommand = async ( input: BatchUnsuspendUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/users"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - operation: [, "unsuspend"], + [_o]: [, "unsuspend"], }); let body: any; body = JSON.stringify( @@ -1018,16 +924,8 @@ export const se_BatchUnsuspendUserCommand = async ( UserIdList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1037,13 +935,13 @@ export const se_BatchUpdatePhoneNumberCommand = async ( input: BatchUpdatePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers"; + b.bp("/phone-numbers"); const query: any = map({ - operation: [, "batch-update"], + [_o]: [, "batch-update"], }); let body: any; body = JSON.stringify( @@ -1051,16 +949,8 @@ export const se_BatchUpdatePhoneNumberCommand = async ( UpdatePhoneNumberRequestItems: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1070,28 +960,20 @@ export const se_BatchUpdateUserCommand = async ( input: BatchUpdateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/users"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; body = JSON.stringify( take(input, { UpdateUserRequestItems: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1101,26 +983,19 @@ export const se_CreateAccountCommand = async ( input: CreateAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts"; + b.bp("/accounts"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1130,11 +1005,11 @@ export const se_CreateAppInstanceCommand = async ( input: CreateAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances"; + b.bp("/app-instances"); let body: any; body = JSON.stringify( take(input, { @@ -1151,15 +1026,9 @@ export const se_CreateAppInstanceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1169,20 +1038,12 @@ export const se_CreateAppInstanceAdminCommand = async ( input: CreateAppInstanceAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1196,15 +1057,9 @@ export const se_CreateAppInstanceAdminCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1214,11 +1069,11 @@ export const se_CreateAppInstanceUserCommand = async ( input: CreateAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users"; + b.bp("/app-instance-users"); let body: any; body = JSON.stringify( take(input, { @@ -1237,15 +1092,9 @@ export const se_CreateAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1255,13 +1104,12 @@ export const se_CreateAttendeeCommand = async ( input: CreateAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/attendees"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1269,15 +1117,8 @@ export const se_CreateAttendeeCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1287,13 +1128,12 @@ export const se_CreateBotCommand = async ( input: CreateBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/bots"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/bots"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1301,15 +1141,8 @@ export const se_CreateBotCommand = async ( Domain: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1319,12 +1152,12 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); let body: any; body = JSON.stringify( take(input, { @@ -1344,15 +1177,9 @@ export const se_CreateChannelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1362,14 +1189,13 @@ export const se_CreateChannelBanCommand = async ( input: CreateChannelBanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/bans"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1383,15 +1209,9 @@ export const se_CreateChannelBanCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1401,14 +1221,13 @@ export const se_CreateChannelMembershipCommand = async ( input: CreateChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/memberships"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1423,15 +1242,9 @@ export const se_CreateChannelMembershipCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1441,14 +1254,13 @@ export const se_CreateChannelModeratorCommand = async ( input: CreateChannelModeratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/moderators"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1462,15 +1274,9 @@ export const se_CreateChannelModeratorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1480,12 +1286,11 @@ export const se_CreateMediaCapturePipelineCommand = async ( input: CreateMediaCapturePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-capture-pipelines"; + b.bp("/media-capture-pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -1497,15 +1302,8 @@ export const se_CreateMediaCapturePipelineCommand = async ( SourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1515,11 +1313,11 @@ export const se_CreateMeetingCommand = async ( input: CreateMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings"; + b.bp("/meetings"); let body: any; body = JSON.stringify( take(input, { @@ -1531,15 +1329,8 @@ export const se_CreateMeetingCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1549,13 +1340,12 @@ export const se_CreateMeetingDialOutCommand = async ( input: CreateMeetingDialOutCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/dial-outs"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/dial-outs"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1564,15 +1354,8 @@ export const se_CreateMeetingDialOutCommand = async ( ToPhoneNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1582,13 +1365,13 @@ export const se_CreateMeetingWithAttendeesCommand = async ( input: CreateMeetingWithAttendeesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings"; + b.bp("/meetings"); const query: any = map({ - operation: [, "create-attendees"], + [_o]: [, "create-attendees"], }); let body: any; body = JSON.stringify( @@ -1602,16 +1385,8 @@ export const se_CreateMeetingWithAttendeesCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1621,11 +1396,11 @@ export const se_CreatePhoneNumberOrderCommand = async ( input: CreatePhoneNumberOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders"; + b.bp("/phone-number-orders"); let body: any; body = JSON.stringify( take(input, { @@ -1633,15 +1408,8 @@ export const se_CreatePhoneNumberOrderCommand = async ( ProductType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1651,21 +1419,12 @@ export const se_CreateProxySessionCommand = async ( input: CreateProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1678,15 +1437,8 @@ export const se_CreateProxySessionCommand = async ( ParticipantPhoneNumbers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1696,13 +1448,12 @@ export const se_CreateRoomCommand = async ( input: CreateRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/rooms"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/rooms"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1710,15 +1461,8 @@ export const se_CreateRoomCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1728,15 +1472,13 @@ export const se_CreateRoomMembershipCommand = async ( input: CreateRoomMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/rooms/{RoomId}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}/memberships"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1744,15 +1486,8 @@ export const se_CreateRoomMembershipCommand = async ( Role: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1762,12 +1497,11 @@ export const se_CreateSipMediaApplicationCommand = async ( input: CreateSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications"; + b.bp("/sip-media-applications"); let body: any; body = JSON.stringify( take(input, { @@ -1776,15 +1510,8 @@ export const se_CreateSipMediaApplicationCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1794,21 +1521,12 @@ export const se_CreateSipMediaApplicationCallCommand = async ( input: CreateSipMediaApplicationCallCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/calls"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/calls"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1817,15 +1535,8 @@ export const se_CreateSipMediaApplicationCallCommand = async ( ToPhoneNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1835,11 +1546,11 @@ export const se_CreateSipRuleCommand = async ( input: CreateSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules"; + b.bp("/sip-rules"); let body: any; body = JSON.stringify( take(input, { @@ -1850,15 +1561,8 @@ export const se_CreateSipRuleCommand = async ( TriggerValue: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1868,15 +1572,14 @@ export const se_CreateUserCommand = async ( input: CreateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/users"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - operation: [, "create"], + [_o]: [, "create"], }); let body: any; body = JSON.stringify( @@ -1886,16 +1589,8 @@ export const se_CreateUserCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1905,11 +1600,11 @@ export const se_CreateVoiceConnectorCommand = async ( input: CreateVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors"; + b.bp("/voice-connectors"); let body: any; body = JSON.stringify( take(input, { @@ -1918,15 +1613,8 @@ export const se_CreateVoiceConnectorCommand = async ( RequireEncryption: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1936,12 +1624,11 @@ export const se_CreateVoiceConnectorGroupCommand = async ( input: CreateVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups"; + b.bp("/voice-connector-groups"); let body: any; body = JSON.stringify( take(input, { @@ -1949,15 +1636,8 @@ export const se_CreateVoiceConnectorGroupCommand = async ( VoiceConnectorItems: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1967,20 +1647,13 @@ export const se_DeleteAccountCommand = async ( input: DeleteAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1990,18 +1663,10 @@ export const se_DeleteAppInstanceCommand = async ( input: DeleteAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2010,15 +1675,9 @@ export const se_DeleteAppInstanceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2028,27 +1687,11 @@ export const se_DeleteAppInstanceAdminCommand = async ( input: DeleteAppInstanceAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceAdminArn", - () => input.AppInstanceAdminArn!, - "{AppInstanceAdminArn}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"); + b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn!, "{AppInstanceAdminArn}", false); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2057,15 +1700,9 @@ export const se_DeleteAppInstanceAdminCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2075,29 +1712,13 @@ export const se_DeleteAppInstanceStreamingConfigurationsCommand = async ( input: DeleteAppInstanceStreamingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/streaming-configurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/streaming-configurations"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2107,18 +1728,10 @@ export const se_DeleteAppInstanceUserCommand = async ( input: DeleteAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2127,15 +1740,9 @@ export const se_DeleteAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2145,23 +1752,14 @@ export const se_DeleteAttendeeCommand = async ( input: DeleteAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2171,12 +1769,12 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2185,15 +1783,9 @@ export const se_DeleteChannelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2203,14 +1795,13 @@ export const se_DeleteChannelBanCommand = async ( input: DeleteChannelBanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/bans/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2219,15 +1810,9 @@ export const se_DeleteChannelBanCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2237,15 +1822,13 @@ export const se_DeleteChannelMembershipCommand = async ( input: DeleteChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/memberships/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/memberships/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2254,15 +1837,9 @@ export const se_DeleteChannelMembershipCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2272,15 +1849,13 @@ export const se_DeleteChannelMessageCommand = async ( input: DeleteChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2289,15 +1864,9 @@ export const se_DeleteChannelMessageCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2307,22 +1876,13 @@ export const se_DeleteChannelModeratorCommand = async ( input: DeleteChannelModeratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelModeratorArn", - () => input.ChannelModeratorArn!, - "{ChannelModeratorArn}", - false - ); + [_xacb]: input[_CB]!, + }); + b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("ChannelModeratorArn", () => input.ChannelModeratorArn!, "{ChannelModeratorArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2331,15 +1891,9 @@ export const se_DeleteChannelModeratorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2349,23 +1903,14 @@ export const se_DeleteEventsConfigurationCommand = async ( input: DeleteEventsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/bots/{BotId}/events-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "BotId", () => input.BotId!, "{BotId}", false); + b.bp("/accounts/{AccountId}/bots/{BotId}/events-configuration"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("BotId", () => input.BotId!, "{BotId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2375,29 +1920,13 @@ export const se_DeleteMediaCapturePipelineCommand = async ( input: DeleteMediaCapturePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-capture-pipelines/{MediaPipelineId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaPipelineId", - () => input.MediaPipelineId!, - "{MediaPipelineId}", - false - ); + b.bp("/media-capture-pipelines/{MediaPipelineId}"); + b.p("MediaPipelineId", () => input.MediaPipelineId!, "{MediaPipelineId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2407,20 +1936,13 @@ export const se_DeleteMeetingCommand = async ( input: DeleteMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2430,28 +1952,13 @@ export const se_DeletePhoneNumberCommand = async ( input: DeletePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2461,37 +1968,14 @@ export const se_DeleteProxySessionCommand = async ( input: DeleteProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ProxySessionId", - () => input.ProxySessionId!, - "{ProxySessionId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("ProxySessionId", () => input.ProxySessionId!, "{ProxySessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2501,22 +1985,14 @@ export const se_DeleteRoomCommand = async ( input: DeleteRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/rooms/{RoomId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2526,24 +2002,15 @@ export const se_DeleteRoomMembershipCommand = async ( input: DeleteRoomMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/rooms/{RoomId}/memberships/{MemberId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberId", () => input.MemberId!, "{MemberId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}/memberships/{MemberId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); + b.p("MemberId", () => input.MemberId!, "{MemberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2553,29 +2020,13 @@ export const se_DeleteSipMediaApplicationCommand = async ( input: DeleteSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2585,20 +2036,13 @@ export const se_DeleteSipRuleCommand = async ( input: DeleteSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); + b.bp("/sip-rules/{SipRuleId}"); + b.p("SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2608,28 +2052,13 @@ export const se_DeleteVoiceConnectorCommand = async ( input: DeleteVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2639,29 +2068,13 @@ export const se_DeleteVoiceConnectorEmergencyCallingConfigurationCommand = async input: DeleteVoiceConnectorEmergencyCallingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2671,29 +2084,13 @@ export const se_DeleteVoiceConnectorGroupCommand = async ( input: DeleteVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2703,29 +2100,13 @@ export const se_DeleteVoiceConnectorOriginationCommand = async ( input: DeleteVoiceConnectorOriginationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/origination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/origination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2735,29 +2116,13 @@ export const se_DeleteVoiceConnectorProxyCommand = async ( input: DeleteVoiceConnectorProxyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2767,29 +2132,13 @@ export const se_DeleteVoiceConnectorStreamingConfigurationCommand = async ( input: DeleteVoiceConnectorStreamingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/streaming-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2799,29 +2148,13 @@ export const se_DeleteVoiceConnectorTerminationCommand = async ( input: DeleteVoiceConnectorTerminationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2831,23 +2164,14 @@ export const se_DeleteVoiceConnectorTerminationCredentialsCommand = async ( input: DeleteVoiceConnectorTerminationCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/credentials"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "delete"], + [_o]: [, "delete"], }); let body: any; body = JSON.stringify( @@ -2855,16 +2179,8 @@ export const se_DeleteVoiceConnectorTerminationCredentialsCommand = async ( Usernames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2874,18 +2190,10 @@ export const se_DescribeAppInstanceCommand = async ( input: DescribeAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2894,15 +2202,9 @@ export const se_DescribeAppInstanceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2912,27 +2214,11 @@ export const se_DescribeAppInstanceAdminCommand = async ( input: DescribeAppInstanceAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceAdminArn", - () => input.AppInstanceAdminArn!, - "{AppInstanceAdminArn}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins/{AppInstanceAdminArn}"); + b.p("AppInstanceAdminArn", () => input.AppInstanceAdminArn!, "{AppInstanceAdminArn}", false); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2941,15 +2227,9 @@ export const se_DescribeAppInstanceAdminCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2959,18 +2239,10 @@ export const se_DescribeAppInstanceUserCommand = async ( input: DescribeAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2979,15 +2251,9 @@ export const se_DescribeAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2997,12 +2263,12 @@ export const se_DescribeChannelCommand = async ( input: DescribeChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -3011,15 +2277,9 @@ export const se_DescribeChannelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3029,14 +2289,13 @@ export const se_DescribeChannelBanCommand = async ( input: DescribeChannelBanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/bans/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -3045,15 +2304,9 @@ export const se_DescribeChannelBanCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3063,15 +2316,13 @@ export const se_DescribeChannelMembershipCommand = async ( input: DescribeChannelMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/memberships/{MemberArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn!, "{MemberArn}", false); + b.bp("/channels/{ChannelArn}/memberships/{MemberArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MemberArn", () => input.MemberArn!, "{MemberArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -3080,15 +2331,9 @@ export const se_DescribeChannelMembershipCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3098,15 +2343,15 @@ export const se_DescribeChannelMembershipForAppInstanceUserCommand = async ( input: DescribeChannelMembershipForAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - scope: [, "app-instance-user-membership"], - "app-instance-user-arn": [, __expectNonNull(input.AppInstanceUserArn!, `AppInstanceUserArn`)], + [_s]: [, "app-instance-user-membership"], + [_aiua]: [, __expectNonNull(input[_AIUA]!, `AppInstanceUserArn`)], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3116,16 +2361,9 @@ export const se_DescribeChannelMembershipForAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3135,15 +2373,15 @@ export const se_DescribeChannelModeratedByAppInstanceUserCommand = async ( input: DescribeChannelModeratedByAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - scope: [, "app-instance-user-moderated-channel"], - "app-instance-user-arn": [, __expectNonNull(input.AppInstanceUserArn!, `AppInstanceUserArn`)], + [_s]: [, "app-instance-user-moderated-channel"], + [_aiua]: [, __expectNonNull(input[_AIUA]!, `AppInstanceUserArn`)], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3153,16 +2391,9 @@ export const se_DescribeChannelModeratedByAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3172,22 +2403,13 @@ export const se_DescribeChannelModeratorCommand = async ( input: DescribeChannelModeratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelModeratorArn", - () => input.ChannelModeratorArn!, - "{ChannelModeratorArn}", - false - ); + [_xacb]: input[_CB]!, + }); + b.bp("/channels/{ChannelArn}/moderators/{ChannelModeratorArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("ChannelModeratorArn", () => input.ChannelModeratorArn!, "{ChannelModeratorArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -3196,15 +2418,9 @@ export const se_DescribeChannelModeratorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3214,26 +2430,17 @@ export const se_DisassociatePhoneNumberFromUserCommand = async ( input: DisassociatePhoneNumberFromUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); const query: any = map({ - operation: [, "disassociate-phone-number"], + [_o]: [, "disassociate-phone-number"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3243,22 +2450,14 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorCommand = async ( input: DisassociatePhoneNumbersFromVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "disassociate-phone-numbers"], + [_o]: [, "disassociate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -3266,16 +2465,8 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorCommand = async ( E164PhoneNumbers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3285,23 +2476,14 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = async ( input: DisassociatePhoneNumbersFromVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); const query: any = map({ - operation: [, "disassociate-phone-numbers"], + [_o]: [, "disassociate-phone-numbers"], }); let body: any; body = JSON.stringify( @@ -3309,16 +2491,8 @@ export const se_DisassociatePhoneNumbersFromVoiceConnectorGroupCommand = async ( E164PhoneNumbers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3328,14 +2502,14 @@ export const se_DisassociateSigninDelegateGroupsFromAccountCommand = async ( input: DisassociateSigninDelegateGroupsFromAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - operation: [, "disassociate-signin-delegate-groups"], + [_o]: [, "disassociate-signin-delegate-groups"], }); let body: any; body = JSON.stringify( @@ -3343,16 +2517,8 @@ export const se_DisassociateSigninDelegateGroupsFromAccountCommand = async ( GroupNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3362,20 +2528,13 @@ export const se_GetAccountCommand = async ( input: GetAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3385,21 +2544,13 @@ export const se_GetAccountSettingsCommand = async ( input: GetAccountSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/settings"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3409,19 +2560,10 @@ export const se_GetAppInstanceRetentionSettingsCommand = async ( input: GetAppInstanceRetentionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/retention-settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/retention-settings"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -3430,15 +2572,9 @@ export const se_GetAppInstanceRetentionSettingsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3448,29 +2584,13 @@ export const se_GetAppInstanceStreamingConfigurationsCommand = async ( input: GetAppInstanceStreamingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/streaming-configurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/streaming-configurations"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3480,45 +2600,28 @@ export const se_GetAttendeeCommand = async ( input: GetAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetBotCommand */ export const se_GetBotCommand = async (input: GetBotCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/bots/{BotId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "BotId", () => input.BotId!, "{BotId}", false); + b.bp("/accounts/{AccountId}/bots/{BotId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("BotId", () => input.BotId!, "{BotId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3528,15 +2631,13 @@ export const se_GetChannelMessageCommand = async ( input: GetChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -3545,15 +2646,9 @@ export const se_GetChannelMessageCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3563,23 +2658,14 @@ export const se_GetEventsConfigurationCommand = async ( input: GetEventsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/bots/{BotId}/events-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "BotId", () => input.BotId!, "{BotId}", false); + b.bp("/accounts/{AccountId}/bots/{BotId}/events-configuration"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("BotId", () => input.BotId!, "{BotId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3589,22 +2675,15 @@ export const se_GetGlobalSettingsCommand = async ( input: GetGlobalSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings"; + b.bp("/settings"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3614,29 +2693,13 @@ export const se_GetMediaCapturePipelineCommand = async ( input: GetMediaCapturePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/media-capture-pipelines/{MediaPipelineId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaPipelineId", - () => input.MediaPipelineId!, - "{MediaPipelineId}", - false - ); + b.bp("/media-capture-pipelines/{MediaPipelineId}"); + b.p("MediaPipelineId", () => input.MediaPipelineId!, "{MediaPipelineId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3646,20 +2709,13 @@ export const se_GetMeetingCommand = async ( input: GetMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3669,12 +2725,11 @@ export const se_GetMessagingSessionEndpointCommand = async ( input: GetMessagingSessionEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoints/messaging-session"; + b.bp("/endpoints/messaging-session"); let body: any; body = ""; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3684,15 +2739,9 @@ export const se_GetMessagingSessionEndpointCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3702,28 +2751,13 @@ export const se_GetPhoneNumberCommand = async ( input: GetPhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3733,28 +2767,13 @@ export const se_GetPhoneNumberOrderCommand = async ( input: GetPhoneNumberOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders/{PhoneNumberOrderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberOrderId", - () => input.PhoneNumberOrderId!, - "{PhoneNumberOrderId}", - false - ); + b.bp("/phone-number-orders/{PhoneNumberOrderId}"); + b.p("PhoneNumberOrderId", () => input.PhoneNumberOrderId!, "{PhoneNumberOrderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3764,22 +2783,15 @@ export const se_GetPhoneNumberSettingsCommand = async ( input: GetPhoneNumberSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number"; + b.bp("/settings/phone-number"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3789,37 +2801,14 @@ export const se_GetProxySessionCommand = async ( input: GetProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ProxySessionId", - () => input.ProxySessionId!, - "{ProxySessionId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("ProxySessionId", () => input.ProxySessionId!, "{ProxySessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3829,21 +2818,13 @@ export const se_GetRetentionSettingsCommand = async ( input: GetRetentionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/retention-settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/retention-settings"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3853,22 +2834,14 @@ export const se_GetRoomCommand = async ( input: GetRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/rooms/{RoomId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3878,29 +2851,13 @@ export const se_GetSipMediaApplicationCommand = async ( input: GetSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3910,29 +2867,13 @@ export const se_GetSipMediaApplicationLoggingConfigurationCommand = async ( input: GetSipMediaApplicationLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/logging-configuration"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3942,20 +2883,13 @@ export const se_GetSipRuleCommand = async ( input: GetSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); + b.bp("/sip-rules/{SipRuleId}"); + b.p("SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3965,22 +2899,14 @@ export const se_GetUserCommand = async ( input: GetUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3990,23 +2916,14 @@ export const se_GetUserSettingsCommand = async ( input: GetUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/users/{UserId}/settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}/settings"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4016,28 +2933,13 @@ export const se_GetVoiceConnectorCommand = async ( input: GetVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4047,29 +2949,13 @@ export const se_GetVoiceConnectorEmergencyCallingConfigurationCommand = async ( input: GetVoiceConnectorEmergencyCallingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4079,29 +2965,13 @@ export const se_GetVoiceConnectorGroupCommand = async ( input: GetVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4111,29 +2981,13 @@ export const se_GetVoiceConnectorLoggingConfigurationCommand = async ( input: GetVoiceConnectorLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/logging-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4143,29 +2997,13 @@ export const se_GetVoiceConnectorOriginationCommand = async ( input: GetVoiceConnectorOriginationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/origination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/origination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4175,29 +3013,13 @@ export const se_GetVoiceConnectorProxyCommand = async ( input: GetVoiceConnectorProxyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4207,29 +3029,13 @@ export const se_GetVoiceConnectorStreamingConfigurationCommand = async ( input: GetVoiceConnectorStreamingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/streaming-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4239,29 +3045,13 @@ export const se_GetVoiceConnectorTerminationCommand = async ( input: GetVoiceConnectorTerminationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4271,29 +3061,13 @@ export const se_GetVoiceConnectorTerminationHealthCommand = async ( input: GetVoiceConnectorTerminationHealthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/health"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/health"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4303,15 +3077,14 @@ export const se_InviteUsersCommand = async ( input: InviteUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/users"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - operation: [, "add"], + [_o]: [, "add"], }); let body: any; body = JSON.stringify( @@ -4320,16 +3093,8 @@ export const se_InviteUsersCommand = async ( UserType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4339,26 +3104,18 @@ export const se_ListAccountsCommand = async ( input: ListAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts"; + b.bp("/accounts"); const query: any = map({ - name: [, input.Name!], - "user-email": [, input.UserEmail!], - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_n]: [, input[_N]!], + [_ue]: [, input[_UE]!], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4368,21 +3125,13 @@ export const se_ListAppInstanceAdminsCommand = async ( input: ListAppInstanceAdminsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/admins"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4392,16 +3141,9 @@ export const se_ListAppInstanceAdminsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4411,12 +3153,12 @@ export const se_ListAppInstancesCommand = async ( input: ListAppInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances"; + b.bp("/app-instances"); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4426,16 +3168,9 @@ export const se_ListAppInstancesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4445,13 +3180,13 @@ export const se_ListAppInstanceUsersCommand = async ( input: ListAppInstanceUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users"; + b.bp("/app-instance-users"); const query: any = map({ - "app-instance-arn": [, __expectNonNull(input.AppInstanceArn!, `AppInstanceArn`)], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_aia]: [, __expectNonNull(input[_AIA]!, `AppInstanceArn`)], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4461,16 +3196,9 @@ export const se_ListAppInstanceUsersCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4480,26 +3208,17 @@ export const se_ListAttendeesCommand = async ( input: ListAttendeesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/attendees"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4509,23 +3228,14 @@ export const se_ListAttendeeTagsCommand = async ( input: ListAttendeeTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}/tags"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4535,26 +3245,17 @@ export const se_ListBotsCommand = async ( input: ListBotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/bots"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/bots"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4564,16 +3265,15 @@ export const se_ListChannelBansCommand = async ( input: ListChannelBansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/bans"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4583,16 +3283,9 @@ export const se_ListChannelBansCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4602,17 +3295,16 @@ export const se_ListChannelMembershipsCommand = async ( input: ListChannelMembershipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/memberships"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - type: [, input.Type!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_t]: [, input[_T]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4622,16 +3314,9 @@ export const se_ListChannelMembershipsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4641,16 +3326,16 @@ export const se_ListChannelMembershipsForAppInstanceUserCommand = async ( input: ListChannelMembershipsForAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - scope: [, "app-instance-user-memberships"], - "app-instance-user-arn": [, input.AppInstanceUserArn!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_s]: [, "app-instance-user-memberships"], + [_aiua]: [, input[_AIUA]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4660,16 +3345,9 @@ export const se_ListChannelMembershipsForAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4679,25 +3357,18 @@ export const se_ListChannelMessagesCommand = async ( input: ListChannelMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/messages"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - "sort-order": [, input.SortOrder!], - "not-before": [ - () => input.NotBefore !== void 0, - () => (input.NotBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - "not-after": [ - () => input.NotAfter !== void 0, - () => (input.NotAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_so]: [, input[_SO]!], + [_nb]: [() => input.NotBefore !== void 0, () => (input[_NB]!.toISOString().split(".")[0] + "Z").toString()], + [_na]: [() => input.NotAfter !== void 0, () => (input[_NA]!.toISOString().split(".")[0] + "Z").toString()], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4707,16 +3378,9 @@ export const se_ListChannelMessagesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4726,16 +3390,15 @@ export const se_ListChannelModeratorsCommand = async ( input: ListChannelModeratorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/moderators"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4745,16 +3408,9 @@ export const se_ListChannelModeratorsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4764,16 +3420,16 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - "app-instance-arn": [, __expectNonNull(input.AppInstanceArn!, `AppInstanceArn`)], - privacy: [, input.Privacy!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_aia]: [, __expectNonNull(input[_AIA]!, `AppInstanceArn`)], + [_p]: [, input[_P]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4783,16 +3439,9 @@ export const se_ListChannelsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4802,16 +3451,16 @@ export const se_ListChannelsModeratedByAppInstanceUserCommand = async ( input: ListChannelsModeratedByAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - scope: [, "app-instance-user-moderated-channels"], - "app-instance-user-arn": [, input.AppInstanceUserArn!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_s]: [, "app-instance-user-moderated-channels"], + [_aiua]: [, input[_AIUA]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4821,16 +3470,9 @@ export const se_ListChannelsModeratedByAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4840,25 +3482,16 @@ export const se_ListMediaCapturePipelinesCommand = async ( input: ListMediaCapturePipelinesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-capture-pipelines"; + b.bp("/media-capture-pipelines"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4868,24 +3501,16 @@ export const se_ListMeetingsCommand = async ( input: ListMeetingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings"; + b.bp("/meetings"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4895,21 +3520,13 @@ export const se_ListMeetingTagsCommand = async ( input: ListMeetingTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/tags"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4919,24 +3536,16 @@ export const se_ListPhoneNumberOrdersCommand = async ( input: ListPhoneNumberOrdersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders"; + b.bp("/phone-number-orders"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4946,28 +3555,20 @@ export const se_ListPhoneNumbersCommand = async ( input: ListPhoneNumbersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers"; + b.bp("/phone-numbers"); const query: any = map({ - status: [, input.Status!], - "product-type": [, input.ProductType!], - "filter-name": [, input.FilterName!], - "filter-value": [, input.FilterValue!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_st]: [, input[_S]!], + [_pt]: [, input[_PT]!], + [_fn]: [, input[_FN]!], + [_fv]: [, input[_FV]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4977,35 +3578,18 @@ export const se_ListProxySessionsCommand = async ( input: ListProxySessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - status: [, input.Status!], - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_st]: [, input[_S]!], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5015,28 +3599,18 @@ export const se_ListRoomMembershipsCommand = async ( input: ListRoomMembershipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/rooms/{RoomId}/memberships"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}/memberships"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5046,27 +3620,18 @@ export const se_ListRoomsCommand = async ( input: ListRoomsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/rooms"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/rooms"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - "member-id": [, input.MemberId!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mi]: [, input[_MI]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5076,25 +3641,16 @@ export const se_ListSipMediaApplicationsCommand = async ( input: ListSipMediaApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications"; + b.bp("/sip-media-applications"); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5104,25 +3660,17 @@ export const se_ListSipRulesCommand = async ( input: ListSipRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules"; + b.bp("/sip-rules"); const query: any = map({ - "sip-media-application": [, input.SipMediaApplicationId!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_sma]: [, input[_SMAI]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5132,24 +3680,15 @@ export const se_ListSupportedPhoneNumberCountriesCommand = async ( input: ListSupportedPhoneNumberCountriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-countries"; + b.bp("/phone-number-countries"); const query: any = map({ - "product-type": [, __expectNonNull(input.ProductType!, `ProductType`)], + [_pt]: [, __expectNonNull(input[_PT]!, `ProductType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5159,23 +3698,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ResourceARN!, `ResourceARN`)], + [_a]: [, __expectNonNull(input[_RARN]!, `ResourceARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5185,28 +3716,19 @@ export const se_ListUsersCommand = async ( input: ListUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/users"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); const query: any = map({ - "user-email": [, input.UserEmail!], - "user-type": [, input.UserType!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_ue]: [, input[_UE]!], + [_ut]: [, input[_UT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5216,25 +3738,16 @@ export const se_ListVoiceConnectorGroupsCommand = async ( input: ListVoiceConnectorGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups"; + b.bp("/voice-connector-groups"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5244,24 +3757,16 @@ export const se_ListVoiceConnectorsCommand = async ( input: ListVoiceConnectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors"; + b.bp("/voice-connectors"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5271,29 +3776,13 @@ export const se_ListVoiceConnectorTerminationCredentialsCommand = async ( input: ListVoiceConnectorTerminationCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/credentials"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5303,26 +3792,17 @@ export const se_LogoutUserCommand = async ( input: LogoutUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); const query: any = map({ - operation: [, "logout"], + [_o]: [, "logout"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5332,21 +3812,12 @@ export const se_PutAppInstanceRetentionSettingsCommand = async ( input: PutAppInstanceRetentionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/retention-settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/retention-settings"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -5360,15 +3831,9 @@ export const se_PutAppInstanceRetentionSettingsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5378,36 +3843,20 @@ export const se_PutAppInstanceStreamingConfigurationsCommand = async ( input: PutAppInstanceStreamingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/app-instances/{AppInstanceArn}/streaming-configurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}/streaming-configurations"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { AppInstanceStreamingConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5417,15 +3866,13 @@ export const se_PutEventsConfigurationCommand = async ( input: PutEventsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/bots/{BotId}/events-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "BotId", () => input.BotId!, "{BotId}", false); + b.bp("/accounts/{AccountId}/bots/{BotId}/events-configuration"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("BotId", () => input.BotId!, "{BotId}", false); let body: any; body = JSON.stringify( take(input, { @@ -5433,15 +3880,8 @@ export const se_PutEventsConfigurationCommand = async ( OutboundEventsHTTPSEndpoint: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5451,28 +3891,20 @@ export const se_PutRetentionSettingsCommand = async ( input: PutRetentionSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/retention-settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/retention-settings"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; body = JSON.stringify( take(input, { RetentionSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5482,36 +3914,20 @@ export const se_PutSipMediaApplicationLoggingConfigurationCommand = async ( input: PutSipMediaApplicationLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/logging-configuration"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; body = JSON.stringify( take(input, { SipMediaApplicationLoggingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5521,36 +3937,20 @@ export const se_PutVoiceConnectorEmergencyCallingConfigurationCommand = async ( input: PutVoiceConnectorEmergencyCallingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/emergency-calling-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { EmergencyCallingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5560,36 +3960,20 @@ export const se_PutVoiceConnectorLoggingConfigurationCommand = async ( input: PutVoiceConnectorLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/logging-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/logging-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { LoggingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5599,36 +3983,20 @@ export const se_PutVoiceConnectorOriginationCommand = async ( input: PutVoiceConnectorOriginationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/origination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/origination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { Origination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5638,21 +4006,12 @@ export const se_PutVoiceConnectorProxyCommand = async ( input: PutVoiceConnectorProxyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/programmable-numbers/proxy"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -5662,15 +4021,8 @@ export const se_PutVoiceConnectorProxyCommand = async ( PhoneNumberPoolCountries: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5680,36 +4032,20 @@ export const se_PutVoiceConnectorStreamingConfigurationCommand = async ( input: PutVoiceConnectorStreamingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/streaming-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/streaming-configuration"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { StreamingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5719,36 +4055,20 @@ export const se_PutVoiceConnectorTerminationCommand = async ( input: PutVoiceConnectorTerminationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { Termination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5758,23 +4078,14 @@ export const se_PutVoiceConnectorTerminationCredentialsCommand = async ( input: PutVoiceConnectorTerminationCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/termination/credentials"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/termination/credentials"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); const query: any = map({ - operation: [, "put"], + [_o]: [, "put"], }); let body: any; body = JSON.stringify( @@ -5782,16 +4093,8 @@ export const se_PutVoiceConnectorTerminationCredentialsCommand = async ( Credentials: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5801,17 +4104,15 @@ export const se_RedactChannelMessageCommand = async ( input: RedactChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); const query: any = map({ - operation: [, "redact"], + [_o]: [, "redact"], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -5821,16 +4122,9 @@ export const se_RedactChannelMessageCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5840,35 +4134,18 @@ export const se_RedactConversationMessageCommand = async ( input: RedactConversationMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/conversations/{ConversationId}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConversationId", - () => input.ConversationId!, - "{ConversationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/accounts/{AccountId}/conversations/{ConversationId}/messages/{MessageId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("ConversationId", () => input.ConversationId!, "{ConversationId}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); const query: any = map({ - operation: [, "redact"], + [_o]: [, "redact"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5878,28 +4155,18 @@ export const se_RedactRoomMessageCommand = async ( input: RedactRoomMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/rooms/{RoomId}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}/messages/{MessageId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); const query: any = map({ - operation: [, "redact"], + [_o]: [, "redact"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5909,26 +4176,17 @@ export const se_RegenerateSecurityTokenCommand = async ( input: RegenerateSecurityTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/bots/{BotId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "BotId", () => input.BotId!, "{BotId}", false); + b.bp("/accounts/{AccountId}/bots/{BotId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("BotId", () => input.BotId!, "{BotId}", false); const query: any = map({ - operation: [, "regenerate-security-token"], + [_o]: [, "regenerate-security-token"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5938,26 +4196,17 @@ export const se_ResetPersonalPINCommand = async ( input: ResetPersonalPINCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); const query: any = map({ - operation: [, "reset-personal-pin"], + [_o]: [, "reset-personal-pin"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5967,32 +4216,16 @@ export const se_RestorePhoneNumberCommand = async ( input: RestorePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); const query: any = map({ - operation: [, "restore"], + [_o]: [, "restore"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6002,31 +4235,23 @@ export const se_SearchAvailablePhoneNumbersCommand = async ( input: SearchAvailablePhoneNumbersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search"; + b.bp("/search"); const query: any = map({ - type: [, "phone-numbers"], - "area-code": [, input.AreaCode!], - city: [, input.City!], - country: [, input.Country!], - state: [, input.State!], - "toll-free-prefix": [, input.TollFreePrefix!], - "phone-number-type": [, input.PhoneNumberType!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_t]: [, "phone-numbers"], + [_ac]: [, input[_AC]!], + [_c]: [, input[_C]!], + [_co]: [, input[_Co]!], + [_sta]: [, input[_St]!], + [_tfp]: [, input[_TFP]!], + [_pnt]: [, input[_PNT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6036,14 +4261,13 @@ export const se_SendChannelMessageCommand = async ( input: SendChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/messages"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -6061,15 +4285,9 @@ export const se_SendChannelMessageCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6079,15 +4297,14 @@ export const se_StartMeetingTranscriptionCommand = async ( input: StartMeetingTranscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/transcription"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "start"], + [_o]: [, "start"], }); let body: any; body = JSON.stringify( @@ -6095,16 +4312,8 @@ export const se_StartMeetingTranscriptionCommand = async ( TranscriptionConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6114,25 +4323,16 @@ export const se_StopMeetingTranscriptionCommand = async ( input: StopMeetingTranscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/transcription"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "stop"], + [_o]: [, "stop"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6142,17 +4342,15 @@ export const se_TagAttendeeCommand = async ( input: TagAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}/tags"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); const query: any = map({ - operation: [, "add"], + [_o]: [, "add"], }); let body: any; body = JSON.stringify( @@ -6160,16 +4358,8 @@ export const se_TagAttendeeCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6179,15 +4369,14 @@ export const se_TagMeetingCommand = async ( input: TagMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/tags"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "add"], + [_o]: [, "add"], }); let body: any; body = JSON.stringify( @@ -6195,16 +4384,8 @@ export const se_TagMeetingCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6214,13 +4395,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "tag-resource"], + [_o]: [, "tag-resource"], }); let body: any; body = JSON.stringify( @@ -6229,16 +4410,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6248,17 +4421,15 @@ export const se_UntagAttendeeCommand = async ( input: UntagAttendeeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/meetings/{MeetingId}/attendees/{AttendeeId}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); + b.bp("/meetings/{MeetingId}/attendees/{AttendeeId}/tags"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.p("AttendeeId", () => input.AttendeeId!, "{AttendeeId}", false); const query: any = map({ - operation: [, "delete"], + [_o]: [, "delete"], }); let body: any; body = JSON.stringify( @@ -6266,16 +4437,8 @@ export const se_UntagAttendeeCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6285,15 +4448,14 @@ export const se_UntagMeetingCommand = async ( input: UntagMeetingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "MeetingId", () => input.MeetingId!, "{MeetingId}", false); + b.bp("/meetings/{MeetingId}/tags"); + b.p("MeetingId", () => input.MeetingId!, "{MeetingId}", false); const query: any = map({ - operation: [, "delete"], + [_o]: [, "delete"], }); let body: any; body = JSON.stringify( @@ -6301,16 +4463,8 @@ export const se_UntagMeetingCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6320,13 +4474,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - operation: [, "untag-resource"], + [_o]: [, "untag-resource"], }); let body: any; body = JSON.stringify( @@ -6335,16 +4489,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6354,12 +4500,12 @@ export const se_UpdateAccountCommand = async ( input: UpdateAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6367,15 +4513,8 @@ export const se_UpdateAccountCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6385,28 +4524,20 @@ export const se_UpdateAccountSettingsCommand = async ( input: UpdateAccountSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); + b.bp("/accounts/{AccountId}/settings"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); let body: any; body = JSON.stringify( take(input, { AccountSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6416,20 +4547,12 @@ export const se_UpdateAppInstanceCommand = async ( input: UpdateAppInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceArn", - () => input.AppInstanceArn!, - "{AppInstanceArn}", - false - ); + b.bp("/app-instances/{AppInstanceArn}"); + b.p("AppInstanceArn", () => input.AppInstanceArn!, "{AppInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -6444,15 +4567,9 @@ export const se_UpdateAppInstanceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6462,20 +4579,12 @@ export const se_UpdateAppInstanceUserCommand = async ( input: UpdateAppInstanceUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppInstanceUserArn", - () => input.AppInstanceUserArn!, - "{AppInstanceUserArn}", - false - ); + b.bp("/app-instance-users/{AppInstanceUserArn}"); + b.p("AppInstanceUserArn", () => input.AppInstanceUserArn!, "{AppInstanceUserArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -6490,15 +4599,9 @@ export const se_UpdateAppInstanceUserCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6508,29 +4611,21 @@ export const se_UpdateBotCommand = async ( input: UpdateBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/bots/{BotId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "BotId", () => input.BotId!, "{BotId}", false); + b.bp("/accounts/{AccountId}/bots/{BotId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("BotId", () => input.BotId!, "{BotId}", false); let body: any; body = JSON.stringify( take(input, { Disabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6540,13 +4635,13 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -6562,15 +4657,9 @@ export const se_UpdateChannelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6580,16 +4669,14 @@ export const se_UpdateChannelMessageCommand = async ( input: UpdateChannelMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{ChannelArn}/messages/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/channels/{ChannelArn}/messages/{MessageId}"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6604,15 +4691,9 @@ export const se_UpdateChannelMessageCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6622,13 +4703,12 @@ export const se_UpdateChannelReadMarkerCommand = async ( input: UpdateChannelReadMarkerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-chime-bearer": input.ChimeBearer!, + [_xacb]: input[_CB]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); + b.bp("/channels/{ChannelArn}/readMarker"); + b.p("ChannelArn", () => input.ChannelArn!, "{ChannelArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -6637,15 +4717,9 @@ export const se_UpdateChannelReadMarkerCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6655,11 +4729,11 @@ export const se_UpdateGlobalSettingsCommand = async ( input: UpdateGlobalSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings"; + b.bp("/settings"); let body: any; body = JSON.stringify( take(input, { @@ -6667,15 +4741,8 @@ export const se_UpdateGlobalSettingsCommand = async ( VoiceConnector: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6685,20 +4752,12 @@ export const se_UpdatePhoneNumberCommand = async ( input: UpdatePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-numbers/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6706,15 +4765,8 @@ export const se_UpdatePhoneNumberCommand = async ( ProductType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6724,26 +4776,19 @@ export const se_UpdatePhoneNumberSettingsCommand = async ( input: UpdatePhoneNumberSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number"; + b.bp("/settings/phone-number"); let body: any; body = JSON.stringify( take(input, { CallingName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6753,29 +4798,13 @@ export const se_UpdateProxySessionCommand = async ( input: UpdateProxySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ProxySessionId", - () => input.ProxySessionId!, - "{ProxySessionId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}/proxy-sessions/{ProxySessionId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); + b.p("ProxySessionId", () => input.ProxySessionId!, "{ProxySessionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6783,15 +4812,8 @@ export const se_UpdateProxySessionCommand = async ( ExpiryMinutes: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6801,29 +4823,21 @@ export const se_UpdateRoomCommand = async ( input: UpdateRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/rooms/{RoomId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6833,31 +4847,22 @@ export const se_UpdateRoomMembershipCommand = async ( input: UpdateRoomMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/rooms/{RoomId}/memberships/{MemberId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RoomId", () => input.RoomId!, "{RoomId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberId", () => input.MemberId!, "{MemberId}", false); + b.bp("/accounts/{AccountId}/rooms/{RoomId}/memberships/{MemberId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("RoomId", () => input.RoomId!, "{RoomId}", false); + b.p("MemberId", () => input.MemberId!, "{MemberId}", false); let body: any; body = JSON.stringify( take(input, { Role: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6867,21 +4872,12 @@ export const se_UpdateSipMediaApplicationCommand = async ( input: UpdateSipMediaApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6889,15 +4885,8 @@ export const se_UpdateSipMediaApplicationCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6907,44 +4896,21 @@ export const se_UpdateSipMediaApplicationCallCommand = async ( input: UpdateSipMediaApplicationCallCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sip-media-applications/{SipMediaApplicationId}/calls/{TransactionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SipMediaApplicationId", - () => input.SipMediaApplicationId!, - "{SipMediaApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TransactionId", - () => input.TransactionId!, - "{TransactionId}", - false - ); + b.bp("/sip-media-applications/{SipMediaApplicationId}/calls/{TransactionId}"); + b.p("SipMediaApplicationId", () => input.SipMediaApplicationId!, "{SipMediaApplicationId}", false); + b.p("TransactionId", () => input.TransactionId!, "{TransactionId}", false); let body: any; body = JSON.stringify( take(input, { Arguments: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6954,12 +4920,12 @@ export const se_UpdateSipRuleCommand = async ( input: UpdateSipRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules/{SipRuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); + b.bp("/sip-rules/{SipRuleId}"); + b.p("SipRuleId", () => input.SipRuleId!, "{SipRuleId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6968,15 +4934,8 @@ export const se_UpdateSipRuleCommand = async ( TargetApplications: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6986,14 +4945,13 @@ export const se_UpdateUserCommand = async ( input: UpdateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AccountId}/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7002,15 +4960,8 @@ export const se_UpdateUserCommand = async ( UserType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7020,30 +4971,21 @@ export const se_UpdateUserSettingsCommand = async ( input: UpdateUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AccountId}/users/{UserId}/settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccountId", () => input.AccountId!, "{AccountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/accounts/{AccountId}/users/{UserId}/settings"); + b.p("AccountId", () => input.AccountId!, "{AccountId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; body = JSON.stringify( take(input, { UserSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7053,20 +4995,12 @@ export const se_UpdateVoiceConnectorCommand = async ( input: UpdateVoiceConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors/{VoiceConnectorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorId", - () => input.VoiceConnectorId!, - "{VoiceConnectorId}", - false - ); + b.bp("/voice-connectors/{VoiceConnectorId}"); + b.p("VoiceConnectorId", () => input.VoiceConnectorId!, "{VoiceConnectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7074,15 +5008,8 @@ export const se_UpdateVoiceConnectorCommand = async ( RequireEncryption: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7092,21 +5019,12 @@ export const se_UpdateVoiceConnectorGroupCommand = async ( input: UpdateVoiceConnectorGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/voice-connector-groups/{VoiceConnectorGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VoiceConnectorGroupId", - () => input.VoiceConnectorGroupId!, - "{VoiceConnectorGroupId}", - false - ); + b.bp("/voice-connector-groups/{VoiceConnectorGroupId}"); + b.p("VoiceConnectorGroupId", () => input.VoiceConnectorGroupId!, "{VoiceConnectorGroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7114,15 +5032,8 @@ export const se_UpdateVoiceConnectorGroupCommand = async ( VoiceConnectorItems: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7132,12 +5043,11 @@ export const se_ValidateE911AddressCommand = async ( input: ValidateE911AddressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/emergency-calling/address"; + b.bp("/emergency-calling/address"); let body: any; body = JSON.stringify( take(input, { @@ -7150,15 +5060,8 @@ export const se_ValidateE911AddressCommand = async ( StreetNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -20685,6 +18588,61 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AC = "AreaCode"; +const _AIA = "AppInstanceArn"; +const _AIUA = "AppInstanceUserArn"; +const _C = "City"; +const _CB = "ChimeBearer"; +const _Co = "Country"; +const _FN = "FilterName"; +const _FV = "FilterValue"; +const _MI = "MemberId"; +const _MR = "MaxResults"; +const _N = "Name"; +const _NA = "NotAfter"; +const _NB = "NotBefore"; +const _NT = "NextToken"; +const _P = "Privacy"; +const _PNT = "PhoneNumberType"; +const _PT = "ProductType"; +const _RARN = "ResourceARN"; +const _S = "Status"; +const _SMAI = "SipMediaApplicationId"; +const _SO = "SortOrder"; +const _St = "State"; +const _T = "Type"; +const _TFP = "TollFreePrefix"; +const _UE = "UserEmail"; +const _UT = "UserType"; +const _a = "arn"; +const _ac = "area-code"; +const _aia = "app-instance-arn"; +const _aiua = "app-instance-user-arn"; +const _c = "city"; +const _co = "country"; +const _fn = "filter-name"; +const _fv = "filter-value"; +const _mi = "member-id"; +const _mr = "max-results"; +const _n = "name"; +const _na = "not-after"; +const _nb = "not-before"; +const _nt = "next-token"; +const _o = "operation"; +const _p = "privacy"; +const _pnt = "phone-number-type"; +const _pt = "product-type"; +const _s = "scope"; +const _sma = "sip-media-application"; +const _so = "sort-order"; +const _st = "status"; +const _sta = "state"; +const _t = "type"; +const _tfp = "toll-free-prefix"; +const _ue = "user-email"; +const _ut = "user-type"; +const _xacb = "x-amz-chime-bearer"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cleanrooms/package.json b/clients/client-cleanrooms/package.json index 28bd1dc6319f..332a798ac487 100644 --- a/clients/client-cleanrooms/package.json +++ b/clients/client-cleanrooms/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-cleanrooms/src/protocols/Aws_restJson1.ts b/clients/client-cleanrooms/src/protocols/Aws_restJson1.ts index dd183a08872f..d38ec0231fc8 100644 --- a/clients/client-cleanrooms/src/protocols/Aws_restJson1.ts +++ b/clients/client-cleanrooms/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -306,36 +307,20 @@ export const se_BatchGetCollaborationAnalysisTemplateCommand = async ( input: BatchGetCollaborationAnalysisTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/batch-analysistemplates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/batch-analysistemplates"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { analysisTemplateArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -345,36 +330,20 @@ export const se_BatchGetSchemaCommand = async ( input: BatchGetSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/batch-schema"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/batch-schema"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { names: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -384,21 +353,12 @@ export const se_CreateAnalysisTemplateCommand = async ( input: CreateAnalysisTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/analysistemplates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/analysistemplates"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -410,15 +370,8 @@ export const se_CreateAnalysisTemplateCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -428,11 +381,11 @@ export const se_CreateCollaborationCommand = async ( input: CreateCollaborationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations"; + b.bp("/collaborations"); let body: any; body = JSON.stringify( take(input, { @@ -447,15 +400,8 @@ export const se_CreateCollaborationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -465,21 +411,12 @@ export const se_CreateConfiguredAudienceModelAssociationCommand = async ( input: CreateConfiguredAudienceModelAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -490,15 +427,8 @@ export const se_CreateConfiguredAudienceModelAssociationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -508,11 +438,11 @@ export const se_CreateConfiguredTableCommand = async ( input: CreateConfiguredTableCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables"; + b.bp("/configuredTables"); let body: any; body = JSON.stringify( take(input, { @@ -524,15 +454,8 @@ export const se_CreateConfiguredTableCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -542,21 +465,12 @@ export const se_CreateConfiguredTableAnalysisRuleCommand = async ( input: CreateConfiguredTableAnalysisRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configuredTables/{configuredTableIdentifier}/analysisRule"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredTableIdentifier", - () => input.configuredTableIdentifier!, - "{configuredTableIdentifier}", - false - ); + b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule"); + b.p("configuredTableIdentifier", () => input.configuredTableIdentifier!, "{configuredTableIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -564,15 +478,8 @@ export const se_CreateConfiguredTableAnalysisRuleCommand = async ( analysisRuleType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -582,21 +489,12 @@ export const se_CreateConfiguredTableAssociationCommand = async ( input: CreateConfiguredTableAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredTableAssociations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -607,15 +505,8 @@ export const se_CreateConfiguredTableAssociationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -625,11 +516,11 @@ export const se_CreateMembershipCommand = async ( input: CreateMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships"; + b.bp("/memberships"); let body: any; body = JSON.stringify( take(input, { @@ -640,15 +531,8 @@ export const se_CreateMembershipCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -658,21 +542,12 @@ export const se_CreatePrivacyBudgetTemplateCommand = async ( input: CreatePrivacyBudgetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/privacybudgettemplates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -682,15 +557,8 @@ export const se_CreatePrivacyBudgetTemplateCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -700,37 +568,14 @@ export const se_DeleteAnalysisTemplateCommand = async ( input: DeleteAnalysisTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analysisTemplateIdentifier", - () => input.analysisTemplateIdentifier!, - "{analysisTemplateIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p("analysisTemplateIdentifier", () => input.analysisTemplateIdentifier!, "{analysisTemplateIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -740,28 +585,13 @@ export const se_DeleteCollaborationCommand = async ( input: DeleteCollaborationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -771,37 +601,21 @@ export const se_DeleteConfiguredAudienceModelAssociationCommand = async ( input: DeleteConfiguredAudienceModelAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp( + "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}" + ); + b.p( "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier!, "{configuredAudienceModelAssociationIdentifier}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -811,29 +625,13 @@ export const se_DeleteConfiguredTableCommand = async ( input: DeleteConfiguredTableCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configuredTables/{configuredTableIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredTableIdentifier", - () => input.configuredTableIdentifier!, - "{configuredTableIdentifier}", - false - ); + b.bp("/configuredTables/{configuredTableIdentifier}"); + b.p("configuredTableIdentifier", () => input.configuredTableIdentifier!, "{configuredTableIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -843,37 +641,14 @@ export const se_DeleteConfiguredTableAnalysisRuleCommand = async ( input: DeleteConfiguredTableAnalysisRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredTableIdentifier", - () => input.configuredTableIdentifier!, - "{configuredTableIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analysisRuleType", - () => input.analysisRuleType!, - "{analysisRuleType}", - false - ); + b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}"); + b.p("configuredTableIdentifier", () => input.configuredTableIdentifier!, "{configuredTableIdentifier}", false); + b.p("analysisRuleType", () => input.analysisRuleType!, "{analysisRuleType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -883,37 +658,19 @@ export const se_DeleteConfiguredTableAssociationCommand = async ( input: DeleteConfiguredTableAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}"); + b.p( "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier!, "{configuredTableAssociationIdentifier}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -923,30 +680,14 @@ export const se_DeleteMemberCommand = async ( input: DeleteMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/member/{accountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/collaborations/{collaborationIdentifier}/member/{accountId}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -956,28 +697,13 @@ export const se_DeleteMembershipCommand = async ( input: DeleteMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -987,37 +713,19 @@ export const se_DeletePrivacyBudgetTemplateCommand = async ( input: DeletePrivacyBudgetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p( "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier!, "{privacyBudgetTemplateIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1027,37 +735,14 @@ export const se_GetAnalysisTemplateCommand = async ( input: GetAnalysisTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analysisTemplateIdentifier", - () => input.analysisTemplateIdentifier!, - "{analysisTemplateIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p("analysisTemplateIdentifier", () => input.analysisTemplateIdentifier!, "{analysisTemplateIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1067,28 +752,13 @@ export const se_GetCollaborationCommand = async ( input: GetCollaborationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1098,37 +768,14 @@ export const se_GetCollaborationAnalysisTemplateCommand = async ( input: GetCollaborationAnalysisTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analysisTemplateArn", - () => input.analysisTemplateArn!, - "{analysisTemplateArn}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); + b.p("analysisTemplateArn", () => input.analysisTemplateArn!, "{analysisTemplateArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1138,37 +785,21 @@ export const se_GetCollaborationConfiguredAudienceModelAssociationCommand = asyn input: GetCollaborationConfiguredAudienceModelAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false + b.bp( + "/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}" ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); + b.p( "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier!, "{configuredAudienceModelAssociationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1178,37 +809,19 @@ export const se_GetCollaborationPrivacyBudgetTemplateCommand = async ( input: GetCollaborationPrivacyBudgetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/collaborations/{collaborationIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); + b.p( "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier!, "{privacyBudgetTemplateIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1218,37 +831,21 @@ export const se_GetConfiguredAudienceModelAssociationCommand = async ( input: GetConfiguredAudienceModelAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp( + "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}" + ); + b.p( "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier!, "{configuredAudienceModelAssociationIdentifier}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1258,29 +855,13 @@ export const se_GetConfiguredTableCommand = async ( input: GetConfiguredTableCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configuredTables/{configuredTableIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredTableIdentifier", - () => input.configuredTableIdentifier!, - "{configuredTableIdentifier}", - false - ); + b.bp("/configuredTables/{configuredTableIdentifier}"); + b.p("configuredTableIdentifier", () => input.configuredTableIdentifier!, "{configuredTableIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1290,37 +871,14 @@ export const se_GetConfiguredTableAnalysisRuleCommand = async ( input: GetConfiguredTableAnalysisRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredTableIdentifier", - () => input.configuredTableIdentifier!, - "{configuredTableIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analysisRuleType", - () => input.analysisRuleType!, - "{analysisRuleType}", - false - ); + b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}"); + b.p("configuredTableIdentifier", () => input.configuredTableIdentifier!, "{configuredTableIdentifier}", false); + b.p("analysisRuleType", () => input.analysisRuleType!, "{analysisRuleType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1330,37 +888,19 @@ export const se_GetConfiguredTableAssociationCommand = async ( input: GetConfiguredTableAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}"); + b.p( "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier!, "{configuredTableAssociationIdentifier}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1370,28 +910,13 @@ export const se_GetMembershipCommand = async ( input: GetMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1401,37 +926,19 @@ export const se_GetPrivacyBudgetTemplateCommand = async ( input: GetPrivacyBudgetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p( "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier!, "{privacyBudgetTemplateIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1441,37 +948,14 @@ export const se_GetProtectedQueryCommand = async ( input: GetProtectedQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "protectedQueryIdentifier", - () => input.protectedQueryIdentifier!, - "{protectedQueryIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p("protectedQueryIdentifier", () => input.protectedQueryIdentifier!, "{protectedQueryIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1481,30 +965,14 @@ export const se_GetSchemaCommand = async ( input: GetSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/schemas/{name}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/collaborations/{collaborationIdentifier}/schemas/{name}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1514,31 +982,15 @@ export const se_GetSchemaAnalysisRuleCommand = async ( input: GetSchemaAnalysisRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "type", () => input.type!, "{type}", false); + b.bp("/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); + b.p("name", () => input.name!, "{name}", false); + b.p("type", () => input.type!, "{type}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1548,34 +1000,17 @@ export const se_ListAnalysisTemplatesCommand = async ( input: ListAnalysisTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/analysistemplates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/analysistemplates"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1585,34 +1020,17 @@ export const se_ListCollaborationAnalysisTemplatesCommand = async ( input: ListCollaborationAnalysisTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/analysistemplates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/analysistemplates"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1622,34 +1040,17 @@ export const se_ListCollaborationConfiguredAudienceModelAssociationsCommand = as input: ListCollaborationConfiguredAudienceModelAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1659,35 +1060,18 @@ export const se_ListCollaborationPrivacyBudgetsCommand = async ( input: ListCollaborationPrivacyBudgetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/privacybudgets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/privacybudgets"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); const query: any = map({ - privacyBudgetType: [, __expectNonNull(input.privacyBudgetType!, `privacyBudgetType`)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_pBT]: [, __expectNonNull(input[_pBT]!, `privacyBudgetType`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1697,34 +1081,17 @@ export const se_ListCollaborationPrivacyBudgetTemplatesCommand = async ( input: ListCollaborationPrivacyBudgetTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/privacybudgettemplates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/privacybudgettemplates"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1734,25 +1101,17 @@ export const se_ListCollaborationsCommand = async ( input: ListCollaborationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations"; + b.bp("/collaborations"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - memberStatus: [, input.memberStatus!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_mS]: [, input[_mS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1762,34 +1121,17 @@ export const se_ListConfiguredAudienceModelAssociationsCommand = async ( input: ListConfiguredAudienceModelAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1799,34 +1141,17 @@ export const se_ListConfiguredTableAssociationsCommand = async ( input: ListConfiguredTableAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredTableAssociations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1836,24 +1161,16 @@ export const se_ListConfiguredTablesCommand = async ( input: ListConfiguredTablesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables"; + b.bp("/configuredTables"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1863,34 +1180,17 @@ export const se_ListMembersCommand = async ( input: ListMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/members"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/members"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1900,25 +1200,17 @@ export const se_ListMembershipsCommand = async ( input: ListMembershipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships"; + b.bp("/memberships"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - status: [, input.status!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_s]: [, input[_s]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1928,35 +1220,18 @@ export const se_ListPrivacyBudgetsCommand = async ( input: ListPrivacyBudgetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/privacybudgets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/privacybudgets"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); const query: any = map({ - privacyBudgetType: [, __expectNonNull(input.privacyBudgetType!, `privacyBudgetType`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_pBT]: [, __expectNonNull(input[_pBT]!, `privacyBudgetType`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1966,34 +1241,17 @@ export const se_ListPrivacyBudgetTemplatesCommand = async ( input: ListPrivacyBudgetTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/privacybudgettemplates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2003,35 +1261,18 @@ export const se_ListProtectedQueriesCommand = async ( input: ListProtectedQueriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/protectedQueries"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/protectedQueries"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); const query: any = map({ - status: [, input.status!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_s]: [, input[_s]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2041,35 +1282,18 @@ export const se_ListSchemasCommand = async ( input: ListSchemasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/collaborations/{collaborationIdentifier}/schemas"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}/schemas"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); const query: any = map({ - schemaType: [, input.schemaType!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_sT]: [, input[_sT]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2079,20 +1303,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2102,36 +1319,20 @@ export const se_PreviewPrivacyImpactCommand = async ( input: PreviewPrivacyImpactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/previewprivacyimpact"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/previewprivacyimpact"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { parameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2141,21 +1342,12 @@ export const se_StartProtectedQueryCommand = async ( input: StartProtectedQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/protectedQueries"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/protectedQueries"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -2164,15 +1356,8 @@ export const se_StartProtectedQueryCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2182,27 +1367,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2212,27 +1390,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2242,44 +1412,21 @@ export const se_UpdateAnalysisTemplateCommand = async ( input: UpdateAnalysisTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analysisTemplateIdentifier", - () => input.analysisTemplateIdentifier!, - "{analysisTemplateIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p("analysisTemplateIdentifier", () => input.analysisTemplateIdentifier!, "{analysisTemplateIdentifier}", false); let body: any; body = JSON.stringify( take(input, { description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2289,20 +1436,12 @@ export const se_UpdateCollaborationCommand = async ( input: UpdateCollaborationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "collaborationIdentifier", - () => input.collaborationIdentifier!, - "{collaborationIdentifier}", - false - ); + b.bp("/collaborations/{collaborationIdentifier}"); + b.p("collaborationIdentifier", () => input.collaborationIdentifier!, "{collaborationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -2310,15 +1449,8 @@ export const se_UpdateCollaborationCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2328,29 +1460,20 @@ export const se_UpdateConfiguredAudienceModelAssociationCommand = async ( input: UpdateConfiguredAudienceModelAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp( + "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}" + ); + b.p( "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier!, "{configuredAudienceModelAssociationIdentifier}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -2358,15 +1481,8 @@ export const se_UpdateConfiguredAudienceModelAssociationCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2376,21 +1492,12 @@ export const se_UpdateConfiguredTableCommand = async ( input: UpdateConfiguredTableCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configuredTables/{configuredTableIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredTableIdentifier", - () => input.configuredTableIdentifier!, - "{configuredTableIdentifier}", - false - ); + b.bp("/configuredTables/{configuredTableIdentifier}"); + b.p("configuredTableIdentifier", () => input.configuredTableIdentifier!, "{configuredTableIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -2398,15 +1505,8 @@ export const se_UpdateConfiguredTableCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2416,44 +1516,21 @@ export const se_UpdateConfiguredTableAnalysisRuleCommand = async ( input: UpdateConfiguredTableAnalysisRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredTableIdentifier", - () => input.configuredTableIdentifier!, - "{configuredTableIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "analysisRuleType", - () => input.analysisRuleType!, - "{analysisRuleType}", - false - ); + b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}"); + b.p("configuredTableIdentifier", () => input.configuredTableIdentifier!, "{configuredTableIdentifier}", false); + b.p("analysisRuleType", () => input.analysisRuleType!, "{analysisRuleType}", false); let body: any; body = JSON.stringify( take(input, { analysisRulePolicy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2463,29 +1540,18 @@ export const se_UpdateConfiguredTableAssociationCommand = async ( input: UpdateConfiguredTableAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}"); + b.p( "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier!, "{configuredTableAssociationIdentifier}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -2493,15 +1559,8 @@ export const se_UpdateConfiguredTableAssociationCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2511,20 +1570,12 @@ export const se_UpdateMembershipCommand = async ( input: UpdateMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -2532,15 +1583,8 @@ export const se_UpdateMembershipCommand = async ( queryLogStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2550,24 +1594,13 @@ export const se_UpdatePrivacyBudgetTemplateCommand = async ( input: UpdatePrivacyBudgetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p( "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier!, "{privacyBudgetTemplateIdentifier}", @@ -2580,15 +1613,8 @@ export const se_UpdatePrivacyBudgetTemplateCommand = async ( privacyBudgetType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2598,44 +1624,21 @@ export const se_UpdateProtectedQueryCommand = async ( input: UpdateProtectedQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "membershipIdentifier", - () => input.membershipIdentifier!, - "{membershipIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "protectedQueryIdentifier", - () => input.protectedQueryIdentifier!, - "{protectedQueryIdentifier}", - false - ); + b.bp("/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}"); + b.p("membershipIdentifier", () => input.membershipIdentifier!, "{membershipIdentifier}", false); + b.p("protectedQueryIdentifier", () => input.protectedQueryIdentifier!, "{protectedQueryIdentifier}", false); let body: any; body = JSON.stringify( take(input, { targetStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7507,6 +6510,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _mS = "memberStatus"; +const _nT = "nextToken"; +const _pBT = "privacyBudgetType"; +const _s = "status"; +const _sT = "schemaType"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cleanroomsml/package.json b/clients/client-cleanroomsml/package.json index 951b7900f24c..53ac11fc6699 100644 --- a/clients/client-cleanroomsml/package.json +++ b/clients/client-cleanroomsml/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-cleanroomsml/src/protocols/Aws_restJson1.ts b/clients/client-cleanroomsml/src/protocols/Aws_restJson1.ts index 60e094d82c7a..9fbfda9eeb12 100644 --- a/clients/client-cleanroomsml/src/protocols/Aws_restJson1.ts +++ b/clients/client-cleanroomsml/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -145,11 +146,11 @@ export const se_CreateAudienceModelCommand = async ( input: CreateAudienceModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-model"; + b.bp("/audience-model"); let body: any; body = JSON.stringify( take(input, { @@ -162,15 +163,8 @@ export const se_CreateAudienceModelCommand = async ( trainingDatasetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -180,12 +174,11 @@ export const se_CreateConfiguredAudienceModelCommand = async ( input: CreateConfiguredAudienceModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configured-audience-model"; + b.bp("/configured-audience-model"); let body: any; body = JSON.stringify( take(input, { @@ -200,15 +193,8 @@ export const se_CreateConfiguredAudienceModelCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -218,11 +204,11 @@ export const se_CreateTrainingDatasetCommand = async ( input: CreateTrainingDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/training-dataset"; + b.bp("/training-dataset"); let body: any; body = JSON.stringify( take(input, { @@ -233,15 +219,8 @@ export const se_CreateTrainingDatasetCommand = async ( trainingData: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -251,29 +230,13 @@ export const se_DeleteAudienceGenerationJobCommand = async ( input: DeleteAudienceGenerationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/audience-generation-job/{audienceGenerationJobArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "audienceGenerationJobArn", - () => input.audienceGenerationJobArn!, - "{audienceGenerationJobArn}", - false - ); + b.bp("/audience-generation-job/{audienceGenerationJobArn}"); + b.p("audienceGenerationJobArn", () => input.audienceGenerationJobArn!, "{audienceGenerationJobArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -283,28 +246,13 @@ export const se_DeleteAudienceModelCommand = async ( input: DeleteAudienceModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-model/{audienceModelArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "audienceModelArn", - () => input.audienceModelArn!, - "{audienceModelArn}", - false - ); + b.bp("/audience-model/{audienceModelArn}"); + b.p("audienceModelArn", () => input.audienceModelArn!, "{audienceModelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -314,29 +262,13 @@ export const se_DeleteConfiguredAudienceModelCommand = async ( input: DeleteConfiguredAudienceModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configured-audience-model/{configuredAudienceModelArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredAudienceModelArn", - () => input.configuredAudienceModelArn!, - "{configuredAudienceModelArn}", - false - ); + b.bp("/configured-audience-model/{configuredAudienceModelArn}"); + b.p("configuredAudienceModelArn", () => input.configuredAudienceModelArn!, "{configuredAudienceModelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -346,29 +278,13 @@ export const se_DeleteConfiguredAudienceModelPolicyCommand = async ( input: DeleteConfiguredAudienceModelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configured-audience-model/{configuredAudienceModelArn}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredAudienceModelArn", - () => input.configuredAudienceModelArn!, - "{configuredAudienceModelArn}", - false - ); + b.bp("/configured-audience-model/{configuredAudienceModelArn}/policy"); + b.p("configuredAudienceModelArn", () => input.configuredAudienceModelArn!, "{configuredAudienceModelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -378,28 +294,13 @@ export const se_DeleteTrainingDatasetCommand = async ( input: DeleteTrainingDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/training-dataset/{trainingDatasetArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trainingDatasetArn", - () => input.trainingDatasetArn!, - "{trainingDatasetArn}", - false - ); + b.bp("/training-dataset/{trainingDatasetArn}"); + b.p("trainingDatasetArn", () => input.trainingDatasetArn!, "{trainingDatasetArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -409,29 +310,13 @@ export const se_GetAudienceGenerationJobCommand = async ( input: GetAudienceGenerationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/audience-generation-job/{audienceGenerationJobArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "audienceGenerationJobArn", - () => input.audienceGenerationJobArn!, - "{audienceGenerationJobArn}", - false - ); + b.bp("/audience-generation-job/{audienceGenerationJobArn}"); + b.p("audienceGenerationJobArn", () => input.audienceGenerationJobArn!, "{audienceGenerationJobArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -441,28 +326,13 @@ export const se_GetAudienceModelCommand = async ( input: GetAudienceModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-model/{audienceModelArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "audienceModelArn", - () => input.audienceModelArn!, - "{audienceModelArn}", - false - ); + b.bp("/audience-model/{audienceModelArn}"); + b.p("audienceModelArn", () => input.audienceModelArn!, "{audienceModelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -472,29 +342,13 @@ export const se_GetConfiguredAudienceModelCommand = async ( input: GetConfiguredAudienceModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configured-audience-model/{configuredAudienceModelArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredAudienceModelArn", - () => input.configuredAudienceModelArn!, - "{configuredAudienceModelArn}", - false - ); + b.bp("/configured-audience-model/{configuredAudienceModelArn}"); + b.p("configuredAudienceModelArn", () => input.configuredAudienceModelArn!, "{configuredAudienceModelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -504,29 +358,13 @@ export const se_GetConfiguredAudienceModelPolicyCommand = async ( input: GetConfiguredAudienceModelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configured-audience-model/{configuredAudienceModelArn}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredAudienceModelArn", - () => input.configuredAudienceModelArn!, - "{configuredAudienceModelArn}", - false - ); + b.bp("/configured-audience-model/{configuredAudienceModelArn}/policy"); + b.p("configuredAudienceModelArn", () => input.configuredAudienceModelArn!, "{configuredAudienceModelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -536,28 +374,13 @@ export const se_GetTrainingDatasetCommand = async ( input: GetTrainingDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/training-dataset/{trainingDatasetArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trainingDatasetArn", - () => input.trainingDatasetArn!, - "{trainingDatasetArn}", - false - ); + b.bp("/training-dataset/{trainingDatasetArn}"); + b.p("trainingDatasetArn", () => input.trainingDatasetArn!, "{trainingDatasetArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -567,25 +390,17 @@ export const se_ListAudienceExportJobsCommand = async ( input: ListAudienceExportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-export-job"; + b.bp("/audience-export-job"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - audienceGenerationJobArn: [, input.audienceGenerationJobArn!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_aGJA]: [, input[_aGJA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -595,27 +410,18 @@ export const se_ListAudienceGenerationJobsCommand = async ( input: ListAudienceGenerationJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-generation-job"; + b.bp("/audience-generation-job"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - configuredAudienceModelArn: [, input.configuredAudienceModelArn!], - collaborationId: [, input.collaborationId!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_cAMA]: [, input[_cAMA]!], + [_cI]: [, input[_cI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -625,24 +431,16 @@ export const se_ListAudienceModelsCommand = async ( input: ListAudienceModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-model"; + b.bp("/audience-model"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -652,25 +450,16 @@ export const se_ListConfiguredAudienceModelsCommand = async ( input: ListConfiguredAudienceModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configured-audience-model"; + b.bp("/configured-audience-model"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -680,20 +469,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -703,24 +485,16 @@ export const se_ListTrainingDatasetsCommand = async ( input: ListTrainingDatasetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/training-dataset"; + b.bp("/training-dataset"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -730,21 +504,12 @@ export const se_PutConfiguredAudienceModelPolicyCommand = async ( input: PutConfiguredAudienceModelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configured-audience-model/{configuredAudienceModelArn}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredAudienceModelArn", - () => input.configuredAudienceModelArn!, - "{configuredAudienceModelArn}", - false - ); + b.bp("/configured-audience-model/{configuredAudienceModelArn}/policy"); + b.p("configuredAudienceModelArn", () => input.configuredAudienceModelArn!, "{configuredAudienceModelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -753,15 +518,8 @@ export const se_PutConfiguredAudienceModelPolicyCommand = async ( previousPolicyHash: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -771,11 +529,11 @@ export const se_StartAudienceExportJobCommand = async ( input: StartAudienceExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-export-job"; + b.bp("/audience-export-job"); let body: any; body = JSON.stringify( take(input, { @@ -785,15 +543,8 @@ export const se_StartAudienceExportJobCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -803,12 +554,11 @@ export const se_StartAudienceGenerationJobCommand = async ( input: StartAudienceGenerationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audience-generation-job"; + b.bp("/audience-generation-job"); let body: any; body = JSON.stringify( take(input, { @@ -821,15 +571,8 @@ export const se_StartAudienceGenerationJobCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -839,27 +582,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -869,27 +605,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -899,21 +627,12 @@ export const se_UpdateConfiguredAudienceModelCommand = async ( input: UpdateConfiguredAudienceModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configured-audience-model/{configuredAudienceModelArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "configuredAudienceModelArn", - () => input.configuredAudienceModelArn!, - "{configuredAudienceModelArn}", - false - ); + b.bp("/configured-audience-model/{configuredAudienceModelArn}"); + b.p("configuredAudienceModelArn", () => input.configuredAudienceModelArn!, "{configuredAudienceModelArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -925,15 +644,8 @@ export const se_UpdateConfiguredAudienceModelCommand = async ( sharedAudienceMetrics: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2683,6 +2395,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aGJA = "audienceGenerationJobArn"; +const _cAMA = "configuredAudienceModelArn"; +const _cI = "collaborationId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloud9/src/commands/CreateEnvironmentEC2Command.ts b/clients/client-cloud9/src/commands/CreateEnvironmentEC2Command.ts index 478cb3e2185b..b3238c06803e 100644 --- a/clients/client-cloud9/src/commands/CreateEnvironmentEC2Command.ts +++ b/clients/client-cloud9/src/commands/CreateEnvironmentEC2Command.ts @@ -112,7 +112,7 @@ export interface CreateEnvironmentEC2CommandOutput extends CreateEnvironmentEC2R * "name": "my-demo-environment", * "automaticStopTimeMinutes": 60, * "description": "This is my demonstration environment.", - * "imageId": "amazonlinux-2-x86_64", + * "imageId": "amazonlinux-2023-x86_64", * "instanceType": "t2.micro", * "ownerArn": "arn:aws:iam::123456789012:user/MyDemoUser", * "subnetId": "subnet-6300cd1b" diff --git a/clients/client-clouddirectory/package.json b/clients/client-clouddirectory/package.json index 77e3b32c388a..eaab83bc9aef 100644 --- a/clients/client-clouddirectory/package.json +++ b/clients/client-clouddirectory/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts b/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts index 44d94f699cef..465747048882 100644 --- a/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts +++ b/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -280,14 +281,12 @@ export const se_AddFacetToObjectCommand = async ( input: AddFacetToObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/facets"; + b.bp("/amazonclouddirectory/2017-01-11/object/facets"); let body: any; body = JSON.stringify( take(input, { @@ -296,15 +295,8 @@ export const se_AddFacetToObjectCommand = async ( SchemaFacet: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -314,29 +306,20 @@ export const se_ApplySchemaCommand = async ( input: ApplySchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/apply"; + b.bp("/amazonclouddirectory/2017-01-11/schema/apply"); let body: any; body = JSON.stringify( take(input, { PublishedSchemaArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -346,14 +329,12 @@ export const se_AttachObjectCommand = async ( input: AttachObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/attach"; + b.bp("/amazonclouddirectory/2017-01-11/object/attach"); let body: any; body = JSON.stringify( take(input, { @@ -362,15 +343,8 @@ export const se_AttachObjectCommand = async ( ParentReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -380,14 +354,12 @@ export const se_AttachPolicyCommand = async ( input: AttachPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/policy/attach"; + b.bp("/amazonclouddirectory/2017-01-11/policy/attach"); let body: any; body = JSON.stringify( take(input, { @@ -395,15 +367,8 @@ export const se_AttachPolicyCommand = async ( PolicyReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -413,14 +378,12 @@ export const se_AttachToIndexCommand = async ( input: AttachToIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/index/attach"; + b.bp("/amazonclouddirectory/2017-01-11/index/attach"); let body: any; body = JSON.stringify( take(input, { @@ -428,15 +391,8 @@ export const se_AttachToIndexCommand = async ( TargetReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -446,14 +402,12 @@ export const se_AttachTypedLinkCommand = async ( input: AttachTypedLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/attach"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/attach"); let body: any; body = JSON.stringify( take(input, { @@ -463,15 +417,8 @@ export const se_AttachTypedLinkCommand = async ( TypedLinkFacet: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -481,30 +428,21 @@ export const se_BatchReadCommand = async ( input: BatchReadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/batchread"; + b.bp("/amazonclouddirectory/2017-01-11/batchread"); let body: any; body = JSON.stringify( take(input, { Operations: (_) => se_BatchReadOperationList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -514,29 +452,20 @@ export const se_BatchWriteCommand = async ( input: BatchWriteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/batchwrite"; + b.bp("/amazonclouddirectory/2017-01-11/batchwrite"); let body: any; body = JSON.stringify( take(input, { Operations: (_) => se_BatchWriteOperationList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -546,29 +475,20 @@ export const se_CreateDirectoryCommand = async ( input: CreateDirectoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/directory/create"; + b.bp("/amazonclouddirectory/2017-01-11/directory/create"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -578,14 +498,12 @@ export const se_CreateFacetCommand = async ( input: CreateFacetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/facet/create"; + b.bp("/amazonclouddirectory/2017-01-11/facet/create"); let body: any; body = JSON.stringify( take(input, { @@ -595,15 +513,8 @@ export const se_CreateFacetCommand = async ( ObjectType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -613,13 +524,12 @@ export const se_CreateIndexCommand = async ( input: CreateIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/index"; + b.bp("/amazonclouddirectory/2017-01-11/index"); let body: any; body = JSON.stringify( take(input, { @@ -629,15 +539,8 @@ export const se_CreateIndexCommand = async ( ParentReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -647,13 +550,12 @@ export const se_CreateObjectCommand = async ( input: CreateObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/object"; + b.bp("/amazonclouddirectory/2017-01-11/object"); let body: any; body = JSON.stringify( take(input, { @@ -663,15 +565,8 @@ export const se_CreateObjectCommand = async ( SchemaFacets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -681,28 +576,19 @@ export const se_CreateSchemaCommand = async ( input: CreateSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/create"; + b.bp("/amazonclouddirectory/2017-01-11/schema/create"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -712,29 +598,20 @@ export const se_CreateTypedLinkFacetCommand = async ( input: CreateTypedLinkFacetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/facet/create"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/create"); let body: any; body = JSON.stringify( take(input, { Facet: (_) => se_TypedLinkFacet(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -744,23 +621,14 @@ export const se_DeleteDirectoryCommand = async ( input: DeleteDirectoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/directory"; + b.bp("/amazonclouddirectory/2017-01-11/directory"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -770,29 +638,20 @@ export const se_DeleteFacetCommand = async ( input: DeleteFacetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/facet/delete"; + b.bp("/amazonclouddirectory/2017-01-11/facet/delete"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -802,29 +661,20 @@ export const se_DeleteObjectCommand = async ( input: DeleteObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/delete"; + b.bp("/amazonclouddirectory/2017-01-11/object/delete"); let body: any; body = JSON.stringify( take(input, { ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -834,22 +684,14 @@ export const se_DeleteSchemaCommand = async ( input: DeleteSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/schema"; + b.bp("/amazonclouddirectory/2017-01-11/schema"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -859,29 +701,20 @@ export const se_DeleteTypedLinkFacetCommand = async ( input: DeleteTypedLinkFacetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/facet/delete"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/delete"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -891,14 +724,12 @@ export const se_DetachFromIndexCommand = async ( input: DetachFromIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/index/detach"; + b.bp("/amazonclouddirectory/2017-01-11/index/detach"); let body: any; body = JSON.stringify( take(input, { @@ -906,15 +737,8 @@ export const se_DetachFromIndexCommand = async ( TargetReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -924,14 +748,12 @@ export const se_DetachObjectCommand = async ( input: DetachObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/detach"; + b.bp("/amazonclouddirectory/2017-01-11/object/detach"); let body: any; body = JSON.stringify( take(input, { @@ -939,15 +761,8 @@ export const se_DetachObjectCommand = async ( ParentReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -957,14 +772,12 @@ export const se_DetachPolicyCommand = async ( input: DetachPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/policy/detach"; + b.bp("/amazonclouddirectory/2017-01-11/policy/detach"); let body: any; body = JSON.stringify( take(input, { @@ -972,15 +785,8 @@ export const se_DetachPolicyCommand = async ( PolicyReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -990,29 +796,20 @@ export const se_DetachTypedLinkCommand = async ( input: DetachTypedLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/detach"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/detach"); let body: any; body = JSON.stringify( take(input, { TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1022,23 +819,14 @@ export const se_DisableDirectoryCommand = async ( input: DisableDirectoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/directory/disable"; + b.bp("/amazonclouddirectory/2017-01-11/directory/disable"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1048,23 +836,14 @@ export const se_EnableDirectoryCommand = async ( input: EnableDirectoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/directory/enable"; + b.bp("/amazonclouddirectory/2017-01-11/directory/enable"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1074,28 +853,19 @@ export const se_GetAppliedSchemaVersionCommand = async ( input: GetAppliedSchemaVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/getappliedschema"; + b.bp("/amazonclouddirectory/2017-01-11/schema/getappliedschema"); let body: any; body = JSON.stringify( take(input, { SchemaArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1105,23 +875,14 @@ export const se_GetDirectoryCommand = async ( input: GetDirectoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/directory/get"; + b.bp("/amazonclouddirectory/2017-01-11/directory/get"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1131,28 +892,20 @@ export const se_GetFacetCommand = async ( input: GetFacetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet"; + b.bp("/amazonclouddirectory/2017-01-11/facet"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1162,14 +915,12 @@ export const se_GetLinkAttributesCommand = async ( input: GetLinkAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/attributes/get"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/attributes/get"); let body: any; body = JSON.stringify( take(input, { @@ -1178,15 +929,8 @@ export const se_GetLinkAttributesCommand = async ( TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1196,15 +940,13 @@ export const se_GetObjectAttributesCommand = async ( input: GetObjectAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/attributes/get"; + b.bp("/amazonclouddirectory/2017-01-11/object/attributes/get"); let body: any; body = JSON.stringify( take(input, { @@ -1213,15 +955,8 @@ export const se_GetObjectAttributesCommand = async ( SchemaFacet: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1231,30 +966,21 @@ export const se_GetObjectInformationCommand = async ( input: GetObjectInformationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/information"; + b.bp("/amazonclouddirectory/2017-01-11/object/information"); let body: any; body = JSON.stringify( take(input, { ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1264,23 +990,14 @@ export const se_GetSchemaAsJsonCommand = async ( input: GetSchemaAsJsonCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/json"; + b.bp("/amazonclouddirectory/2017-01-11/schema/json"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1290,29 +1007,20 @@ export const se_GetTypedLinkFacetInformationCommand = async ( input: GetTypedLinkFacetInformationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/facet/get"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/get"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1322,13 +1030,11 @@ export const se_ListAppliedSchemaArnsCommand = async ( input: ListAppliedSchemaArnsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/applied"; + b.bp("/amazonclouddirectory/2017-01-11/schema/applied"); let body: any; body = JSON.stringify( take(input, { @@ -1338,15 +1044,8 @@ export const se_ListAppliedSchemaArnsCommand = async ( SchemaArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1356,15 +1055,13 @@ export const se_ListAttachedIndicesCommand = async ( input: ListAttachedIndicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/indices"; + b.bp("/amazonclouddirectory/2017-01-11/object/indices"); let body: any; body = JSON.stringify( take(input, { @@ -1373,15 +1070,8 @@ export const se_ListAttachedIndicesCommand = async ( TargetReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1391,13 +1081,11 @@ export const se_ListDevelopmentSchemaArnsCommand = async ( input: ListDevelopmentSchemaArnsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/development"; + b.bp("/amazonclouddirectory/2017-01-11/schema/development"); let body: any; body = JSON.stringify( take(input, { @@ -1405,15 +1093,8 @@ export const se_ListDevelopmentSchemaArnsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1423,13 +1104,11 @@ export const se_ListDirectoriesCommand = async ( input: ListDirectoriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/directory/list"; + b.bp("/amazonclouddirectory/2017-01-11/directory/list"); let body: any; body = JSON.stringify( take(input, { @@ -1438,15 +1117,8 @@ export const se_ListDirectoriesCommand = async ( state: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1456,14 +1128,12 @@ export const se_ListFacetAttributesCommand = async ( input: ListFacetAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/facet/attributes"; + b.bp("/amazonclouddirectory/2017-01-11/facet/attributes"); let body: any; body = JSON.stringify( take(input, { @@ -1472,15 +1142,8 @@ export const se_ListFacetAttributesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1490,14 +1153,12 @@ export const se_ListFacetNamesCommand = async ( input: ListFacetNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/facet/list"; + b.bp("/amazonclouddirectory/2017-01-11/facet/list"); let body: any; body = JSON.stringify( take(input, { @@ -1505,15 +1166,8 @@ export const se_ListFacetNamesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1523,14 +1177,12 @@ export const se_ListIncomingTypedLinksCommand = async ( input: ListIncomingTypedLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/incoming"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/incoming"); let body: any; body = JSON.stringify( take(input, { @@ -1542,15 +1194,8 @@ export const se_ListIncomingTypedLinksCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1560,15 +1205,13 @@ export const se_ListIndexCommand = async ( input: ListIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/index/targets"; + b.bp("/amazonclouddirectory/2017-01-11/index/targets"); let body: any; body = JSON.stringify( take(input, { @@ -1578,15 +1221,8 @@ export const se_ListIndexCommand = async ( RangesOnIndexedValues: (_) => se_ObjectAttributeRangeList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1596,13 +1232,11 @@ export const se_ListManagedSchemaArnsCommand = async ( input: ListManagedSchemaArnsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/managed"; + b.bp("/amazonclouddirectory/2017-01-11/schema/managed"); let body: any; body = JSON.stringify( take(input, { @@ -1611,15 +1245,8 @@ export const se_ListManagedSchemaArnsCommand = async ( SchemaArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1629,15 +1256,13 @@ export const se_ListObjectAttributesCommand = async ( input: ListObjectAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/attributes"; + b.bp("/amazonclouddirectory/2017-01-11/object/attributes"); let body: any; body = JSON.stringify( take(input, { @@ -1647,15 +1272,8 @@ export const se_ListObjectAttributesCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1665,15 +1283,13 @@ export const se_ListObjectChildrenCommand = async ( input: ListObjectChildrenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/children"; + b.bp("/amazonclouddirectory/2017-01-11/object/children"); let body: any; body = JSON.stringify( take(input, { @@ -1682,15 +1298,8 @@ export const se_ListObjectChildrenCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1700,14 +1309,12 @@ export const se_ListObjectParentPathsCommand = async ( input: ListObjectParentPathsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/parentpaths"; + b.bp("/amazonclouddirectory/2017-01-11/object/parentpaths"); let body: any; body = JSON.stringify( take(input, { @@ -1716,15 +1323,8 @@ export const se_ListObjectParentPathsCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1734,15 +1334,13 @@ export const se_ListObjectParentsCommand = async ( input: ListObjectParentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/parent"; + b.bp("/amazonclouddirectory/2017-01-11/object/parent"); let body: any; body = JSON.stringify( take(input, { @@ -1752,15 +1350,8 @@ export const se_ListObjectParentsCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1770,15 +1361,13 @@ export const se_ListObjectPoliciesCommand = async ( input: ListObjectPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/policy"; + b.bp("/amazonclouddirectory/2017-01-11/object/policy"); let body: any; body = JSON.stringify( take(input, { @@ -1787,15 +1376,8 @@ export const se_ListObjectPoliciesCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1805,14 +1387,12 @@ export const se_ListOutgoingTypedLinksCommand = async ( input: ListOutgoingTypedLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/outgoing"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/outgoing"); let body: any; body = JSON.stringify( take(input, { @@ -1824,15 +1404,8 @@ export const se_ListOutgoingTypedLinksCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1842,15 +1415,13 @@ export const se_ListPolicyAttachmentsCommand = async ( input: ListPolicyAttachmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, - "x-amz-consistency-level": input.ConsistencyLevel!, + [_xadp]: input[_DA]!, + [_xacl]: input[_CL]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/policy/attachment"; + b.bp("/amazonclouddirectory/2017-01-11/policy/attachment"); let body: any; body = JSON.stringify( take(input, { @@ -1859,15 +1430,8 @@ export const se_ListPolicyAttachmentsCommand = async ( PolicyReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1877,13 +1441,11 @@ export const se_ListPublishedSchemaArnsCommand = async ( input: ListPublishedSchemaArnsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/published"; + b.bp("/amazonclouddirectory/2017-01-11/schema/published"); let body: any; body = JSON.stringify( take(input, { @@ -1892,15 +1454,8 @@ export const se_ListPublishedSchemaArnsCommand = async ( SchemaArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1910,12 +1465,11 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags"; + b.bp("/amazonclouddirectory/2017-01-11/tags"); let body: any; body = JSON.stringify( take(input, { @@ -1924,15 +1478,8 @@ export const se_ListTagsForResourceCommand = async ( ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1942,14 +1489,12 @@ export const se_ListTypedLinkFacetAttributesCommand = async ( input: ListTypedLinkFacetAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/facet/attributes"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/attributes"); let body: any; body = JSON.stringify( take(input, { @@ -1958,15 +1503,8 @@ export const se_ListTypedLinkFacetAttributesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1976,14 +1514,12 @@ export const se_ListTypedLinkFacetNamesCommand = async ( input: ListTypedLinkFacetNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/facet/list"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/list"); let body: any; body = JSON.stringify( take(input, { @@ -1991,15 +1527,8 @@ export const se_ListTypedLinkFacetNamesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2009,14 +1538,12 @@ export const se_LookupPolicyCommand = async ( input: LookupPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/policy/lookup"; + b.bp("/amazonclouddirectory/2017-01-11/policy/lookup"); let body: any; body = JSON.stringify( take(input, { @@ -2025,15 +1552,8 @@ export const se_LookupPolicyCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2043,14 +1563,12 @@ export const se_PublishSchemaCommand = async ( input: PublishSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DevelopmentSchemaArn!, + [_xadp]: input[_DSA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/publish"; + b.bp("/amazonclouddirectory/2017-01-11/schema/publish"); let body: any; body = JSON.stringify( take(input, { @@ -2059,15 +1577,8 @@ export const se_PublishSchemaCommand = async ( Version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2077,29 +1588,20 @@ export const se_PutSchemaFromJsonCommand = async ( input: PutSchemaFromJsonCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/json"; + b.bp("/amazonclouddirectory/2017-01-11/schema/json"); let body: any; body = JSON.stringify( take(input, { Document: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2109,14 +1611,12 @@ export const se_RemoveFacetFromObjectCommand = async ( input: RemoveFacetFromObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/facets/delete"; + b.bp("/amazonclouddirectory/2017-01-11/object/facets/delete"); let body: any; body = JSON.stringify( take(input, { @@ -2124,15 +1624,8 @@ export const se_RemoveFacetFromObjectCommand = async ( SchemaFacet: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2142,12 +1635,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags/add"; + b.bp("/amazonclouddirectory/2017-01-11/tags/add"); let body: any; body = JSON.stringify( take(input, { @@ -2155,15 +1647,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2173,13 +1658,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/tags/remove"; + b.bp("/amazonclouddirectory/2017-01-11/tags/remove"); let body: any; body = JSON.stringify( take(input, { @@ -2187,15 +1670,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2205,13 +1681,12 @@ export const se_UpdateFacetCommand = async ( input: UpdateFacetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet"; + b.bp("/amazonclouddirectory/2017-01-11/facet"); let body: any; body = JSON.stringify( take(input, { @@ -2220,15 +1695,8 @@ export const se_UpdateFacetCommand = async ( ObjectType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2238,14 +1706,12 @@ export const se_UpdateLinkAttributesCommand = async ( input: UpdateLinkAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/attributes/update"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/attributes/update"); let body: any; body = JSON.stringify( take(input, { @@ -2253,15 +1719,8 @@ export const se_UpdateLinkAttributesCommand = async ( TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2271,14 +1730,12 @@ export const se_UpdateObjectAttributesCommand = async ( input: UpdateObjectAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.DirectoryArn!, + [_xadp]: input[_DA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/object/update"; + b.bp("/amazonclouddirectory/2017-01-11/object/update"); let body: any; body = JSON.stringify( take(input, { @@ -2286,15 +1743,8 @@ export const se_UpdateObjectAttributesCommand = async ( ObjectReference: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2304,29 +1754,20 @@ export const se_UpdateSchemaCommand = async ( input: UpdateSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/update"; + b.bp("/amazonclouddirectory/2017-01-11/schema/update"); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2336,14 +1777,12 @@ export const se_UpdateTypedLinkFacetCommand = async ( input: UpdateTypedLinkFacetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-data-partition": input.SchemaArn!, + [_xadp]: input[_SA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/typedlink/facet"; + b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet"); let body: any; body = JSON.stringify( take(input, { @@ -2352,15 +1791,8 @@ export const se_UpdateTypedLinkFacetCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2370,13 +1802,11 @@ export const se_UpgradeAppliedSchemaCommand = async ( input: UpgradeAppliedSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/upgradeapplied"; + b.bp("/amazonclouddirectory/2017-01-11/schema/upgradeapplied"); let body: any; body = JSON.stringify( take(input, { @@ -2385,15 +1815,8 @@ export const se_UpgradeAppliedSchemaCommand = async ( PublishedSchemaArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2403,13 +1826,11 @@ export const se_UpgradePublishedSchemaCommand = async ( input: UpgradePublishedSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/amazonclouddirectory/2017-01-11/schema/upgradepublished"; + b.bp("/amazonclouddirectory/2017-01-11/schema/upgradepublished"); let body: any; body = JSON.stringify( take(input, { @@ -2419,15 +1840,8 @@ export const se_UpgradePublishedSchemaCommand = async ( PublishedSchemaArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8767,6 +8181,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CL = "ConsistencyLevel"; +const _DA = "DirectoryArn"; +const _DSA = "DevelopmentSchemaArn"; +const _SA = "SchemaArn"; +const _xacl = "x-amz-consistency-level"; +const _xadp = "x-amz-data-partition"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloudformation/src/protocols/Aws_query.ts b/clients/client-cloudformation/src/protocols/Aws_query.ts index a7ebdc052b3d..d6beb69ba884 100644 --- a/clients/client-cloudformation/src/protocols/Aws_query.ts +++ b/clients/client-cloudformation/src/protocols/Aws_query.ts @@ -425,8 +425,8 @@ export const se_ActivateOrganizationsAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ActivateOrganizationsAccessInput(input, context), - Action: "ActivateOrganizationsAccess", - Version: "2010-05-15", + [_A]: _AOA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -442,8 +442,8 @@ export const se_ActivateTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ActivateTypeInput(input, context), - Action: "ActivateType", - Version: "2010-05-15", + [_A]: _AT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -459,8 +459,8 @@ export const se_BatchDescribeTypeConfigurationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BatchDescribeTypeConfigurationsInput(input, context), - Action: "BatchDescribeTypeConfigurations", - Version: "2010-05-15", + [_A]: _BDTC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -476,8 +476,8 @@ export const se_CancelUpdateStackCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelUpdateStackInput(input, context), - Action: "CancelUpdateStack", - Version: "2010-05-15", + [_A]: _CUS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -493,8 +493,8 @@ export const se_ContinueUpdateRollbackCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ContinueUpdateRollbackInput(input, context), - Action: "ContinueUpdateRollback", - Version: "2010-05-15", + [_A]: _CUR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -510,8 +510,8 @@ export const se_CreateChangeSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateChangeSetInput(input, context), - Action: "CreateChangeSet", - Version: "2010-05-15", + [_A]: _CCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -527,8 +527,8 @@ export const se_CreateStackCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateStackInput(input, context), - Action: "CreateStack", - Version: "2010-05-15", + [_A]: _CS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -544,8 +544,8 @@ export const se_CreateStackInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateStackInstancesInput(input, context), - Action: "CreateStackInstances", - Version: "2010-05-15", + [_A]: _CSI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -561,8 +561,8 @@ export const se_CreateStackSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateStackSetInput(input, context), - Action: "CreateStackSet", - Version: "2010-05-15", + [_A]: _CSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -578,8 +578,8 @@ export const se_DeactivateOrganizationsAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeactivateOrganizationsAccessInput(input, context), - Action: "DeactivateOrganizationsAccess", - Version: "2010-05-15", + [_A]: _DOA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -595,8 +595,8 @@ export const se_DeactivateTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeactivateTypeInput(input, context), - Action: "DeactivateType", - Version: "2010-05-15", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -612,8 +612,8 @@ export const se_DeleteChangeSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteChangeSetInput(input, context), - Action: "DeleteChangeSet", - Version: "2010-05-15", + [_A]: _DCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -629,8 +629,8 @@ export const se_DeleteStackCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteStackInput(input, context), - Action: "DeleteStack", - Version: "2010-05-15", + [_A]: _DS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -646,8 +646,8 @@ export const se_DeleteStackInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteStackInstancesInput(input, context), - Action: "DeleteStackInstances", - Version: "2010-05-15", + [_A]: _DSI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -663,8 +663,8 @@ export const se_DeleteStackSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteStackSetInput(input, context), - Action: "DeleteStackSet", - Version: "2010-05-15", + [_A]: _DSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -680,8 +680,8 @@ export const se_DeregisterTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterTypeInput(input, context), - Action: "DeregisterType", - Version: "2010-05-15", + [_A]: _DTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -697,8 +697,8 @@ export const se_DescribeAccountLimitsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAccountLimitsInput(input, context), - Action: "DescribeAccountLimits", - Version: "2010-05-15", + [_A]: _DAL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -714,8 +714,8 @@ export const se_DescribeChangeSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeChangeSetInput(input, context), - Action: "DescribeChangeSet", - Version: "2010-05-15", + [_A]: _DCSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -731,8 +731,8 @@ export const se_DescribeChangeSetHooksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeChangeSetHooksInput(input, context), - Action: "DescribeChangeSetHooks", - Version: "2010-05-15", + [_A]: _DCSH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -748,8 +748,8 @@ export const se_DescribeOrganizationsAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeOrganizationsAccessInput(input, context), - Action: "DescribeOrganizationsAccess", - Version: "2010-05-15", + [_A]: _DOAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -765,8 +765,8 @@ export const se_DescribePublisherCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePublisherInput(input, context), - Action: "DescribePublisher", - Version: "2010-05-15", + [_A]: _DP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -782,8 +782,8 @@ export const se_DescribeStackDriftDetectionStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackDriftDetectionStatusInput(input, context), - Action: "DescribeStackDriftDetectionStatus", - Version: "2010-05-15", + [_A]: _DSDDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -799,8 +799,8 @@ export const se_DescribeStackEventsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackEventsInput(input, context), - Action: "DescribeStackEvents", - Version: "2010-05-15", + [_A]: _DSE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -816,8 +816,8 @@ export const se_DescribeStackInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackInstanceInput(input, context), - Action: "DescribeStackInstance", - Version: "2010-05-15", + [_A]: _DSIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -833,8 +833,8 @@ export const se_DescribeStackResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackResourceInput(input, context), - Action: "DescribeStackResource", - Version: "2010-05-15", + [_A]: _DSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -850,8 +850,8 @@ export const se_DescribeStackResourceDriftsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackResourceDriftsInput(input, context), - Action: "DescribeStackResourceDrifts", - Version: "2010-05-15", + [_A]: _DSRD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -867,8 +867,8 @@ export const se_DescribeStackResourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackResourcesInput(input, context), - Action: "DescribeStackResources", - Version: "2010-05-15", + [_A]: _DSRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -884,8 +884,8 @@ export const se_DescribeStacksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStacksInput(input, context), - Action: "DescribeStacks", - Version: "2010-05-15", + [_A]: _DSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -901,8 +901,8 @@ export const se_DescribeStackSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackSetInput(input, context), - Action: "DescribeStackSet", - Version: "2010-05-15", + [_A]: _DSSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -918,8 +918,8 @@ export const se_DescribeStackSetOperationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStackSetOperationInput(input, context), - Action: "DescribeStackSetOperation", - Version: "2010-05-15", + [_A]: _DSSO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -935,8 +935,8 @@ export const se_DescribeTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTypeInput(input, context), - Action: "DescribeType", - Version: "2010-05-15", + [_A]: _DTes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -952,8 +952,8 @@ export const se_DescribeTypeRegistrationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTypeRegistrationInput(input, context), - Action: "DescribeTypeRegistration", - Version: "2010-05-15", + [_A]: _DTR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -969,8 +969,8 @@ export const se_DetectStackDriftCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetectStackDriftInput(input, context), - Action: "DetectStackDrift", - Version: "2010-05-15", + [_A]: _DSD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -986,8 +986,8 @@ export const se_DetectStackResourceDriftCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetectStackResourceDriftInput(input, context), - Action: "DetectStackResourceDrift", - Version: "2010-05-15", + [_A]: _DSRDe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1003,8 +1003,8 @@ export const se_DetectStackSetDriftCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetectStackSetDriftInput(input, context), - Action: "DetectStackSetDrift", - Version: "2010-05-15", + [_A]: _DSSD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1020,8 +1020,8 @@ export const se_EstimateTemplateCostCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EstimateTemplateCostInput(input, context), - Action: "EstimateTemplateCost", - Version: "2010-05-15", + [_A]: _ETC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1037,8 +1037,8 @@ export const se_ExecuteChangeSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExecuteChangeSetInput(input, context), - Action: "ExecuteChangeSet", - Version: "2010-05-15", + [_A]: _ECS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1054,8 +1054,8 @@ export const se_GetStackPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetStackPolicyInput(input, context), - Action: "GetStackPolicy", - Version: "2010-05-15", + [_A]: _GSP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1071,8 +1071,8 @@ export const se_GetTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTemplateInput(input, context), - Action: "GetTemplate", - Version: "2010-05-15", + [_A]: _GT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1088,8 +1088,8 @@ export const se_GetTemplateSummaryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTemplateSummaryInput(input, context), - Action: "GetTemplateSummary", - Version: "2010-05-15", + [_A]: _GTS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1105,8 +1105,8 @@ export const se_ImportStacksToStackSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ImportStacksToStackSetInput(input, context), - Action: "ImportStacksToStackSet", - Version: "2010-05-15", + [_A]: _ISTSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1122,8 +1122,8 @@ export const se_ListChangeSetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListChangeSetsInput(input, context), - Action: "ListChangeSets", - Version: "2010-05-15", + [_A]: _LCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1139,8 +1139,8 @@ export const se_ListExportsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListExportsInput(input, context), - Action: "ListExports", - Version: "2010-05-15", + [_A]: _LE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1156,8 +1156,8 @@ export const se_ListImportsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListImportsInput(input, context), - Action: "ListImports", - Version: "2010-05-15", + [_A]: _LI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1173,8 +1173,8 @@ export const se_ListStackInstanceResourceDriftsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListStackInstanceResourceDriftsInput(input, context), - Action: "ListStackInstanceResourceDrifts", - Version: "2010-05-15", + [_A]: _LSIRD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1190,8 +1190,8 @@ export const se_ListStackInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListStackInstancesInput(input, context), - Action: "ListStackInstances", - Version: "2010-05-15", + [_A]: _LSI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1207,8 +1207,8 @@ export const se_ListStackResourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListStackResourcesInput(input, context), - Action: "ListStackResources", - Version: "2010-05-15", + [_A]: _LSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1224,8 +1224,8 @@ export const se_ListStacksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListStacksInput(input, context), - Action: "ListStacks", - Version: "2010-05-15", + [_A]: _LS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1241,8 +1241,8 @@ export const se_ListStackSetOperationResultsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListStackSetOperationResultsInput(input, context), - Action: "ListStackSetOperationResults", - Version: "2010-05-15", + [_A]: _LSSOR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1258,8 +1258,8 @@ export const se_ListStackSetOperationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListStackSetOperationsInput(input, context), - Action: "ListStackSetOperations", - Version: "2010-05-15", + [_A]: _LSSO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1275,8 +1275,8 @@ export const se_ListStackSetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListStackSetsInput(input, context), - Action: "ListStackSets", - Version: "2010-05-15", + [_A]: _LSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1292,8 +1292,8 @@ export const se_ListTypeRegistrationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTypeRegistrationsInput(input, context), - Action: "ListTypeRegistrations", - Version: "2010-05-15", + [_A]: _LTR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1309,8 +1309,8 @@ export const se_ListTypesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTypesInput(input, context), - Action: "ListTypes", - Version: "2010-05-15", + [_A]: _LT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1326,8 +1326,8 @@ export const se_ListTypeVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTypeVersionsInput(input, context), - Action: "ListTypeVersions", - Version: "2010-05-15", + [_A]: _LTV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1343,8 +1343,8 @@ export const se_PublishTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PublishTypeInput(input, context), - Action: "PublishType", - Version: "2010-05-15", + [_A]: _PT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1360,8 +1360,8 @@ export const se_RecordHandlerProgressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RecordHandlerProgressInput(input, context), - Action: "RecordHandlerProgress", - Version: "2010-05-15", + [_A]: _RHP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1377,8 +1377,8 @@ export const se_RegisterPublisherCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterPublisherInput(input, context), - Action: "RegisterPublisher", - Version: "2010-05-15", + [_A]: _RP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1394,8 +1394,8 @@ export const se_RegisterTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterTypeInput(input, context), - Action: "RegisterType", - Version: "2010-05-15", + [_A]: _RT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1411,8 +1411,8 @@ export const se_RollbackStackCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RollbackStackInput(input, context), - Action: "RollbackStack", - Version: "2010-05-15", + [_A]: _RS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1428,8 +1428,8 @@ export const se_SetStackPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetStackPolicyInput(input, context), - Action: "SetStackPolicy", - Version: "2010-05-15", + [_A]: _SSP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1445,8 +1445,8 @@ export const se_SetTypeConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetTypeConfigurationInput(input, context), - Action: "SetTypeConfiguration", - Version: "2010-05-15", + [_A]: _STC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1462,8 +1462,8 @@ export const se_SetTypeDefaultVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetTypeDefaultVersionInput(input, context), - Action: "SetTypeDefaultVersion", - Version: "2010-05-15", + [_A]: _STDV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1479,8 +1479,8 @@ export const se_SignalResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SignalResourceInput(input, context), - Action: "SignalResource", - Version: "2010-05-15", + [_A]: _SR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1496,8 +1496,8 @@ export const se_StopStackSetOperationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopStackSetOperationInput(input, context), - Action: "StopStackSetOperation", - Version: "2010-05-15", + [_A]: _SSSO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1513,8 +1513,8 @@ export const se_TestTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TestTypeInput(input, context), - Action: "TestType", - Version: "2010-05-15", + [_A]: _TT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1530,8 +1530,8 @@ export const se_UpdateStackCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateStackInput(input, context), - Action: "UpdateStack", - Version: "2010-05-15", + [_A]: _US, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1547,8 +1547,8 @@ export const se_UpdateStackInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateStackInstancesInput(input, context), - Action: "UpdateStackInstances", - Version: "2010-05-15", + [_A]: _USI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1564,8 +1564,8 @@ export const se_UpdateStackSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateStackSetInput(input, context), - Action: "UpdateStackSet", - Version: "2010-05-15", + [_A]: _USS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1581,8 +1581,8 @@ export const se_UpdateTerminationProtectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateTerminationProtectionInput(input, context), - Action: "UpdateTerminationProtection", - Version: "2010-05-15", + [_A]: _UTP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1598,8 +1598,8 @@ export const se_ValidateTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ValidateTemplateInput(input, context), - Action: "ValidateTemplate", - Version: "2010-05-15", + [_A]: _VT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5244,39 +5244,39 @@ const se_ActivateOrganizationsAccessInput = (input: ActivateOrganizationsAccessI */ const se_ActivateTypeInput = (input: ActivateTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.PublicTypeArn != null) { - entries["PublicTypeArn"] = input.PublicTypeArn; + if (input[_PTA] != null) { + entries[_PTA] = input[_PTA]; } - if (input.PublisherId != null) { - entries["PublisherId"] = input.PublisherId; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.TypeNameAlias != null) { - entries["TypeNameAlias"] = input.TypeNameAlias; + if (input[_TNA] != null) { + entries[_TNA] = input[_TNA]; } - if (input.AutoUpdate != null) { - entries["AutoUpdate"] = input.AutoUpdate; + if (input[_AU] != null) { + entries[_AU] = input[_AU]; } - if (input.LoggingConfig != null) { - const memberEntries = se_LoggingConfig(input.LoggingConfig, context); + if (input[_LC] != null) { + const memberEntries = se_LoggingConfig(input[_LC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LoggingConfig.${key}`; entries[loc] = value; }); } - if (input.ExecutionRoleArn != null) { - entries["ExecutionRoleArn"] = input.ExecutionRoleArn; + if (input[_ERA] != null) { + entries[_ERA] = input[_ERA]; } - if (input.VersionBump != null) { - entries["VersionBump"] = input.VersionBump; + if (input[_VB] != null) { + entries[_VB] = input[_VB]; } - if (input.MajorVersion != null) { - entries["MajorVersion"] = input.MajorVersion; + if (input[_MV] != null) { + entries[_MV] = input[_MV]; } return entries; }; @@ -5286,11 +5286,11 @@ const se_ActivateTypeInput = (input: ActivateTypeInput, context: __SerdeContext) */ const se_AutoDeployment = (input: AutoDeployment, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.RetainStacksOnAccountRemoval != null) { - entries["RetainStacksOnAccountRemoval"] = input.RetainStacksOnAccountRemoval; + if (input[_RSOAR] != null) { + entries[_RSOAR] = input[_RSOAR]; } return entries; }; @@ -5303,9 +5303,9 @@ const se_BatchDescribeTypeConfigurationsInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TypeConfigurationIdentifiers != null) { - const memberEntries = se_TypeConfigurationIdentifiers(input.TypeConfigurationIdentifiers, context); - if (input.TypeConfigurationIdentifiers?.length === 0) { + if (input[_TCI] != null) { + const memberEntries = se_TypeConfigurationIdentifiers(input[_TCI], context); + if (input[_TCI]?.length === 0) { entries.TypeConfigurationIdentifiers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5321,11 +5321,11 @@ const se_BatchDescribeTypeConfigurationsInput = ( */ const se_CancelUpdateStackInput = (input: CancelUpdateStackInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } return entries; }; @@ -5351,15 +5351,15 @@ const se_Capabilities = (input: Capability[], context: __SerdeContext): any => { */ const se_ContinueUpdateRollbackInput = (input: ContinueUpdateRollbackInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.ResourcesToSkip != null) { - const memberEntries = se_ResourcesToSkip(input.ResourcesToSkip, context); - if (input.ResourcesToSkip?.length === 0) { + if (input[_RTS] != null) { + const memberEntries = se_ResourcesToSkip(input[_RTS], context); + if (input[_RTS]?.length === 0) { entries.ResourcesToSkip = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5367,8 +5367,8 @@ const se_ContinueUpdateRollbackInput = (input: ContinueUpdateRollbackInput, cont entries[loc] = value; }); } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } return entries; }; @@ -5378,21 +5378,21 @@ const se_ContinueUpdateRollbackInput = (input: ContinueUpdateRollbackInput, cont */ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } - if (input.UsePreviousTemplate != null) { - entries["UsePreviousTemplate"] = input.UsePreviousTemplate; + if (input[_UPT] != null) { + entries[_UPT] = input[_UPT]; } - if (input.Parameters != null) { - const memberEntries = se_Parameters(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_Parameters(input[_P], context); + if (input[_P]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5400,9 +5400,9 @@ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeCo entries[loc] = value; }); } - if (input.Capabilities != null) { - const memberEntries = se_Capabilities(input.Capabilities, context); - if (input.Capabilities?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_Capabilities(input[_C], context); + if (input[_C]?.length === 0) { entries.Capabilities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5410,9 +5410,9 @@ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeCo entries[loc] = value; }); } - if (input.ResourceTypes != null) { - const memberEntries = se_ResourceTypes(input.ResourceTypes, context); - if (input.ResourceTypes?.length === 0) { + if (input[_RTe] != null) { + const memberEntries = se_ResourceTypes(input[_RTe], context); + if (input[_RTe]?.length === 0) { entries.ResourceTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5420,19 +5420,19 @@ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeCo entries[loc] = value; }); } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.RollbackConfiguration != null) { - const memberEntries = se_RollbackConfiguration(input.RollbackConfiguration, context); + if (input[_RC] != null) { + const memberEntries = se_RollbackConfiguration(input[_RC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RollbackConfiguration.${key}`; entries[loc] = value; }); } - if (input.NotificationARNs != null) { - const memberEntries = se_NotificationARNs(input.NotificationARNs, context); - if (input.NotificationARNs?.length === 0) { + if (input[_NARN] != null) { + const memberEntries = se_NotificationARNs(input[_NARN], context); + if (input[_NARN]?.length === 0) { entries.NotificationARNs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5440,9 +5440,9 @@ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeCo entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_Tags(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5450,21 +5450,21 @@ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeCo entries[loc] = value; }); } - if (input.ChangeSetName != null) { - entries["ChangeSetName"] = input.ChangeSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CT] != null) { + entries[_CT] = input[_CT]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.ChangeSetType != null) { - entries["ChangeSetType"] = input.ChangeSetType; + if (input[_CST] != null) { + entries[_CST] = input[_CST]; } - if (input.ResourcesToImport != null) { - const memberEntries = se_ResourcesToImport(input.ResourcesToImport, context); - if (input.ResourcesToImport?.length === 0) { + if (input[_RTI] != null) { + const memberEntries = se_ResourcesToImport(input[_RTI], context); + if (input[_RTI]?.length === 0) { entries.ResourcesToImport = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5472,14 +5472,14 @@ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeCo entries[loc] = value; }); } - if (input.IncludeNestedStacks != null) { - entries["IncludeNestedStacks"] = input.IncludeNestedStacks; + if (input[_INS] != null) { + entries[_INS] = input[_INS]; } - if (input.OnStackFailure != null) { - entries["OnStackFailure"] = input.OnStackFailure; + if (input[_OSF] != null) { + entries[_OSF] = input[_OSF]; } - if (input.ImportExistingResources != null) { - entries["ImportExistingResources"] = input.ImportExistingResources; + if (input[_IER] != null) { + entries[_IER] = input[_IER]; } return entries; }; @@ -5489,18 +5489,18 @@ const se_CreateChangeSetInput = (input: CreateChangeSetInput, context: __SerdeCo */ const se_CreateStackInput = (input: CreateStackInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } - if (input.Parameters != null) { - const memberEntries = se_Parameters(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_Parameters(input[_P], context); + if (input[_P]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5508,22 +5508,22 @@ const se_CreateStackInput = (input: CreateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.DisableRollback != null) { - entries["DisableRollback"] = input.DisableRollback; + if (input[_DR] != null) { + entries[_DR] = input[_DR]; } - if (input.RollbackConfiguration != null) { - const memberEntries = se_RollbackConfiguration(input.RollbackConfiguration, context); + if (input[_RC] != null) { + const memberEntries = se_RollbackConfiguration(input[_RC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RollbackConfiguration.${key}`; entries[loc] = value; }); } - if (input.TimeoutInMinutes != null) { - entries["TimeoutInMinutes"] = input.TimeoutInMinutes; + if (input[_TIM] != null) { + entries[_TIM] = input[_TIM]; } - if (input.NotificationARNs != null) { - const memberEntries = se_NotificationARNs(input.NotificationARNs, context); - if (input.NotificationARNs?.length === 0) { + if (input[_NARN] != null) { + const memberEntries = se_NotificationARNs(input[_NARN], context); + if (input[_NARN]?.length === 0) { entries.NotificationARNs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5531,9 +5531,9 @@ const se_CreateStackInput = (input: CreateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.Capabilities != null) { - const memberEntries = se_Capabilities(input.Capabilities, context); - if (input.Capabilities?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_Capabilities(input[_C], context); + if (input[_C]?.length === 0) { entries.Capabilities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5541,9 +5541,9 @@ const se_CreateStackInput = (input: CreateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.ResourceTypes != null) { - const memberEntries = se_ResourceTypes(input.ResourceTypes, context); - if (input.ResourceTypes?.length === 0) { + if (input[_RTe] != null) { + const memberEntries = se_ResourceTypes(input[_RTe], context); + if (input[_RTe]?.length === 0) { entries.ResourceTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5551,21 +5551,21 @@ const se_CreateStackInput = (input: CreateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.OnFailure != null) { - entries["OnFailure"] = input.OnFailure; + if (input[_OF] != null) { + entries[_OF] = input[_OF]; } - if (input.StackPolicyBody != null) { - entries["StackPolicyBody"] = input.StackPolicyBody; + if (input[_SPB] != null) { + entries[_SPB] = input[_SPB]; } - if (input.StackPolicyURL != null) { - entries["StackPolicyURL"] = input.StackPolicyURL; + if (input[_SPURL] != null) { + entries[_SPURL] = input[_SPURL]; } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_Tags(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5573,14 +5573,14 @@ const se_CreateStackInput = (input: CreateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } - if (input.EnableTerminationProtection != null) { - entries["EnableTerminationProtection"] = input.EnableTerminationProtection; + if (input[_ETP] != null) { + entries[_ETP] = input[_ETP]; } - if (input.RetainExceptOnCreate != null) { - entries["RetainExceptOnCreate"] = input.RetainExceptOnCreate; + if (input[_REOC] != null) { + entries[_REOC] = input[_REOC]; } return entries; }; @@ -5590,12 +5590,12 @@ const se_CreateStackInput = (input: CreateStackInput, context: __SerdeContext): */ const se_CreateStackInstancesInput = (input: CreateStackInstancesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.Accounts != null) { - const memberEntries = se_AccountList(input.Accounts, context); - if (input.Accounts?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_AccountList(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Accounts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5603,16 +5603,16 @@ const se_CreateStackInstancesInput = (input: CreateStackInstancesInput, context: entries[loc] = value; }); } - if (input.DeploymentTargets != null) { - const memberEntries = se_DeploymentTargets(input.DeploymentTargets, context); + if (input[_DTep] != null) { + const memberEntries = se_DeploymentTargets(input[_DTep], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DeploymentTargets.${key}`; entries[loc] = value; }); } - if (input.Regions != null) { - const memberEntries = se_RegionList(input.Regions, context); - if (input.Regions?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_RegionList(input[_R], context); + if (input[_R]?.length === 0) { entries.Regions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5620,9 +5620,9 @@ const se_CreateStackInstancesInput = (input: CreateStackInstancesInput, context: entries[loc] = value; }); } - if (input.ParameterOverrides != null) { - const memberEntries = se_Parameters(input.ParameterOverrides, context); - if (input.ParameterOverrides?.length === 0) { + if (input[_PO] != null) { + const memberEntries = se_Parameters(input[_PO], context); + if (input[_PO]?.length === 0) { entries.ParameterOverrides = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5630,21 +5630,21 @@ const se_CreateStackInstancesInput = (input: CreateStackInstancesInput, context: entries[loc] = value; }); } - if (input.OperationPreferences != null) { - const memberEntries = se_StackSetOperationPreferences(input.OperationPreferences, context); + if (input[_OP] != null) { + const memberEntries = se_StackSetOperationPreferences(input[_OP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OperationPreferences.${key}`; entries[loc] = value; }); } - if (input.OperationId === undefined) { - input.OperationId = generateIdempotencyToken(); + if (input[_OI] === undefined) { + input[_OI] = generateIdempotencyToken(); } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -5654,24 +5654,24 @@ const se_CreateStackInstancesInput = (input: CreateStackInstancesInput, context: */ const se_CreateStackSetInput = (input: CreateStackSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } - if (input.StackId != null) { - entries["StackId"] = input.StackId; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.Parameters != null) { - const memberEntries = se_Parameters(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_Parameters(input[_P], context); + if (input[_P]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5679,9 +5679,9 @@ const se_CreateStackSetInput = (input: CreateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Capabilities != null) { - const memberEntries = se_Capabilities(input.Capabilities, context); - if (input.Capabilities?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_Capabilities(input[_C], context); + if (input[_C]?.length === 0) { entries.Capabilities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5689,9 +5689,9 @@ const se_CreateStackSetInput = (input: CreateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_Tags(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5699,33 +5699,33 @@ const se_CreateStackSetInput = (input: CreateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.AdministrationRoleARN != null) { - entries["AdministrationRoleARN"] = input.AdministrationRoleARN; + if (input[_ARARN] != null) { + entries[_ARARN] = input[_ARARN]; } - if (input.ExecutionRoleName != null) { - entries["ExecutionRoleName"] = input.ExecutionRoleName; + if (input[_ERN] != null) { + entries[_ERN] = input[_ERN]; } - if (input.PermissionModel != null) { - entries["PermissionModel"] = input.PermissionModel; + if (input[_PM] != null) { + entries[_PM] = input[_PM]; } - if (input.AutoDeployment != null) { - const memberEntries = se_AutoDeployment(input.AutoDeployment, context); + if (input[_AD] != null) { + const memberEntries = se_AutoDeployment(input[_AD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AutoDeployment.${key}`; entries[loc] = value; }); } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.ClientRequestToken === undefined) { - input.ClientRequestToken = generateIdempotencyToken(); + if (input[_CRT] === undefined) { + input[_CRT] = generateIdempotencyToken(); } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } - if (input.ManagedExecution != null) { - const memberEntries = se_ManagedExecution(input.ManagedExecution, context); + if (input[_ME] != null) { + const memberEntries = se_ManagedExecution(input[_ME], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ManagedExecution.${key}`; entries[loc] = value; @@ -5750,14 +5750,14 @@ const se_DeactivateOrganizationsAccessInput = ( */ const se_DeactivateTypeInput = (input: DeactivateTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } return entries; }; @@ -5767,11 +5767,11 @@ const se_DeactivateTypeInput = (input: DeactivateTypeInput, context: __SerdeCont */ const se_DeleteChangeSetInput = (input: DeleteChangeSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ChangeSetName != null) { - entries["ChangeSetName"] = input.ChangeSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -5781,12 +5781,12 @@ const se_DeleteChangeSetInput = (input: DeleteChangeSetInput, context: __SerdeCo */ const se_DeleteStackInput = (input: DeleteStackInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.RetainResources != null) { - const memberEntries = se_RetainResources(input.RetainResources, context); - if (input.RetainResources?.length === 0) { + if (input[_RR] != null) { + const memberEntries = se_RetainResources(input[_RR], context); + if (input[_RR]?.length === 0) { entries.RetainResources = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5794,11 +5794,11 @@ const se_DeleteStackInput = (input: DeleteStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } return entries; }; @@ -5808,12 +5808,12 @@ const se_DeleteStackInput = (input: DeleteStackInput, context: __SerdeContext): */ const se_DeleteStackInstancesInput = (input: DeleteStackInstancesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.Accounts != null) { - const memberEntries = se_AccountList(input.Accounts, context); - if (input.Accounts?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_AccountList(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Accounts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5821,16 +5821,16 @@ const se_DeleteStackInstancesInput = (input: DeleteStackInstancesInput, context: entries[loc] = value; }); } - if (input.DeploymentTargets != null) { - const memberEntries = se_DeploymentTargets(input.DeploymentTargets, context); + if (input[_DTep] != null) { + const memberEntries = se_DeploymentTargets(input[_DTep], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DeploymentTargets.${key}`; entries[loc] = value; }); } - if (input.Regions != null) { - const memberEntries = se_RegionList(input.Regions, context); - if (input.Regions?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_RegionList(input[_R], context); + if (input[_R]?.length === 0) { entries.Regions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5838,24 +5838,24 @@ const se_DeleteStackInstancesInput = (input: DeleteStackInstancesInput, context: entries[loc] = value; }); } - if (input.OperationPreferences != null) { - const memberEntries = se_StackSetOperationPreferences(input.OperationPreferences, context); + if (input[_OP] != null) { + const memberEntries = se_StackSetOperationPreferences(input[_OP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OperationPreferences.${key}`; entries[loc] = value; }); } - if (input.RetainStacks != null) { - entries["RetainStacks"] = input.RetainStacks; + if (input[_RSe] != null) { + entries[_RSe] = input[_RSe]; } - if (input.OperationId === undefined) { - input.OperationId = generateIdempotencyToken(); + if (input[_OI] === undefined) { + input[_OI] = generateIdempotencyToken(); } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -5865,11 +5865,11 @@ const se_DeleteStackInstancesInput = (input: DeleteStackInstancesInput, context: */ const se_DeleteStackSetInput = (input: DeleteStackSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -5879,9 +5879,9 @@ const se_DeleteStackSetInput = (input: DeleteStackSetInput, context: __SerdeCont */ const se_DeploymentTargets = (input: DeploymentTargets, context: __SerdeContext): any => { const entries: any = {}; - if (input.Accounts != null) { - const memberEntries = se_AccountList(input.Accounts, context); - if (input.Accounts?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_AccountList(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Accounts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5889,12 +5889,12 @@ const se_DeploymentTargets = (input: DeploymentTargets, context: __SerdeContext) entries[loc] = value; }); } - if (input.AccountsUrl != null) { - entries["AccountsUrl"] = input.AccountsUrl; + if (input[_AUc] != null) { + entries[_AUc] = input[_AUc]; } - if (input.OrganizationalUnitIds != null) { - const memberEntries = se_OrganizationalUnitIdList(input.OrganizationalUnitIds, context); - if (input.OrganizationalUnitIds?.length === 0) { + if (input[_OUI] != null) { + const memberEntries = se_OrganizationalUnitIdList(input[_OUI], context); + if (input[_OUI]?.length === 0) { entries.OrganizationalUnitIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5902,8 +5902,8 @@ const se_DeploymentTargets = (input: DeploymentTargets, context: __SerdeContext) entries[loc] = value; }); } - if (input.AccountFilterType != null) { - entries["AccountFilterType"] = input.AccountFilterType; + if (input[_AFT] != null) { + entries[_AFT] = input[_AFT]; } return entries; }; @@ -5913,17 +5913,17 @@ const se_DeploymentTargets = (input: DeploymentTargets, context: __SerdeContext) */ const se_DeregisterTypeInput = (input: DeregisterTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.VersionId != null) { - entries["VersionId"] = input.VersionId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -5933,8 +5933,8 @@ const se_DeregisterTypeInput = (input: DeregisterTypeInput, context: __SerdeCont */ const se_DescribeAccountLimitsInput = (input: DescribeAccountLimitsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -5944,17 +5944,17 @@ const se_DescribeAccountLimitsInput = (input: DescribeAccountLimitsInput, contex */ const se_DescribeChangeSetHooksInput = (input: DescribeChangeSetHooksInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ChangeSetName != null) { - entries["ChangeSetName"] = input.ChangeSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.LogicalResourceId != null) { - entries["LogicalResourceId"] = input.LogicalResourceId; + if (input[_LRI] != null) { + entries[_LRI] = input[_LRI]; } return entries; }; @@ -5964,14 +5964,14 @@ const se_DescribeChangeSetHooksInput = (input: DescribeChangeSetHooksInput, cont */ const se_DescribeChangeSetInput = (input: DescribeChangeSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ChangeSetName != null) { - entries["ChangeSetName"] = input.ChangeSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -5981,8 +5981,8 @@ const se_DescribeChangeSetInput = (input: DescribeChangeSetInput, context: __Ser */ const se_DescribeOrganizationsAccessInput = (input: DescribeOrganizationsAccessInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -5992,8 +5992,8 @@ const se_DescribeOrganizationsAccessInput = (input: DescribeOrganizationsAccessI */ const se_DescribePublisherInput = (input: DescribePublisherInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.PublisherId != null) { - entries["PublisherId"] = input.PublisherId; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } return entries; }; @@ -6006,8 +6006,8 @@ const se_DescribeStackDriftDetectionStatusInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.StackDriftDetectionId != null) { - entries["StackDriftDetectionId"] = input.StackDriftDetectionId; + if (input[_SDDI] != null) { + entries[_SDDI] = input[_SDDI]; } return entries; }; @@ -6017,11 +6017,11 @@ const se_DescribeStackDriftDetectionStatusInput = ( */ const se_DescribeStackEventsInput = (input: DescribeStackEventsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6031,17 +6031,17 @@ const se_DescribeStackEventsInput = (input: DescribeStackEventsInput, context: _ */ const se_DescribeStackInstanceInput = (input: DescribeStackInstanceInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.StackInstanceAccount != null) { - entries["StackInstanceAccount"] = input.StackInstanceAccount; + if (input[_SIA] != null) { + entries[_SIA] = input[_SIA]; } - if (input.StackInstanceRegion != null) { - entries["StackInstanceRegion"] = input.StackInstanceRegion; + if (input[_SIR] != null) { + entries[_SIR] = input[_SIR]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6051,12 +6051,12 @@ const se_DescribeStackInstanceInput = (input: DescribeStackInstanceInput, contex */ const se_DescribeStackResourceDriftsInput = (input: DescribeStackResourceDriftsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.StackResourceDriftStatusFilters != null) { - const memberEntries = se_StackResourceDriftStatusFilters(input.StackResourceDriftStatusFilters, context); - if (input.StackResourceDriftStatusFilters?.length === 0) { + if (input[_SRDSF] != null) { + const memberEntries = se_StackResourceDriftStatusFilters(input[_SRDSF], context); + if (input[_SRDSF]?.length === 0) { entries.StackResourceDriftStatusFilters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6064,11 +6064,11 @@ const se_DescribeStackResourceDriftsInput = (input: DescribeStackResourceDriftsI entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -6078,11 +6078,11 @@ const se_DescribeStackResourceDriftsInput = (input: DescribeStackResourceDriftsI */ const se_DescribeStackResourceInput = (input: DescribeStackResourceInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.LogicalResourceId != null) { - entries["LogicalResourceId"] = input.LogicalResourceId; + if (input[_LRI] != null) { + entries[_LRI] = input[_LRI]; } return entries; }; @@ -6092,14 +6092,14 @@ const se_DescribeStackResourceInput = (input: DescribeStackResourceInput, contex */ const se_DescribeStackResourcesInput = (input: DescribeStackResourcesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.LogicalResourceId != null) { - entries["LogicalResourceId"] = input.LogicalResourceId; + if (input[_LRI] != null) { + entries[_LRI] = input[_LRI]; } - if (input.PhysicalResourceId != null) { - entries["PhysicalResourceId"] = input.PhysicalResourceId; + if (input[_PRI] != null) { + entries[_PRI] = input[_PRI]; } return entries; }; @@ -6109,11 +6109,11 @@ const se_DescribeStackResourcesInput = (input: DescribeStackResourcesInput, cont */ const se_DescribeStackSetInput = (input: DescribeStackSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6123,14 +6123,14 @@ const se_DescribeStackSetInput = (input: DescribeStackSetInput, context: __Serde */ const se_DescribeStackSetOperationInput = (input: DescribeStackSetOperationInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6140,11 +6140,11 @@ const se_DescribeStackSetOperationInput = (input: DescribeStackSetOperationInput */ const se_DescribeStacksInput = (input: DescribeStacksInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6154,23 +6154,23 @@ const se_DescribeStacksInput = (input: DescribeStacksInput, context: __SerdeCont */ const se_DescribeTypeInput = (input: DescribeTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.VersionId != null) { - entries["VersionId"] = input.VersionId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.PublisherId != null) { - entries["PublisherId"] = input.PublisherId; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.PublicVersionNumber != null) { - entries["PublicVersionNumber"] = input.PublicVersionNumber; + if (input[_PVN] != null) { + entries[_PVN] = input[_PVN]; } return entries; }; @@ -6180,8 +6180,8 @@ const se_DescribeTypeInput = (input: DescribeTypeInput, context: __SerdeContext) */ const se_DescribeTypeRegistrationInput = (input: DescribeTypeRegistrationInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RegistrationToken != null) { - entries["RegistrationToken"] = input.RegistrationToken; + if (input[_RTeg] != null) { + entries[_RTeg] = input[_RTeg]; } return entries; }; @@ -6191,12 +6191,12 @@ const se_DescribeTypeRegistrationInput = (input: DescribeTypeRegistrationInput, */ const se_DetectStackDriftInput = (input: DetectStackDriftInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.LogicalResourceIds != null) { - const memberEntries = se_LogicalResourceIds(input.LogicalResourceIds, context); - if (input.LogicalResourceIds?.length === 0) { + if (input[_LRIo] != null) { + const memberEntries = se_LogicalResourceIds(input[_LRIo], context); + if (input[_LRIo]?.length === 0) { entries.LogicalResourceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6212,11 +6212,11 @@ const se_DetectStackDriftInput = (input: DetectStackDriftInput, context: __Serde */ const se_DetectStackResourceDriftInput = (input: DetectStackResourceDriftInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.LogicalResourceId != null) { - entries["LogicalResourceId"] = input.LogicalResourceId; + if (input[_LRI] != null) { + entries[_LRI] = input[_LRI]; } return entries; }; @@ -6226,24 +6226,24 @@ const se_DetectStackResourceDriftInput = (input: DetectStackResourceDriftInput, */ const se_DetectStackSetDriftInput = (input: DetectStackSetDriftInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.OperationPreferences != null) { - const memberEntries = se_StackSetOperationPreferences(input.OperationPreferences, context); + if (input[_OP] != null) { + const memberEntries = se_StackSetOperationPreferences(input[_OP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OperationPreferences.${key}`; entries[loc] = value; }); } - if (input.OperationId === undefined) { - input.OperationId = generateIdempotencyToken(); + if (input[_OI] === undefined) { + input[_OI] = generateIdempotencyToken(); } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6253,15 +6253,15 @@ const se_DetectStackSetDriftInput = (input: DetectStackSetDriftInput, context: _ */ const se_EstimateTemplateCostInput = (input: EstimateTemplateCostInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } - if (input.Parameters != null) { - const memberEntries = se_Parameters(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_Parameters(input[_P], context); + if (input[_P]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6277,20 +6277,20 @@ const se_EstimateTemplateCostInput = (input: EstimateTemplateCostInput, context: */ const se_ExecuteChangeSetInput = (input: ExecuteChangeSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ChangeSetName != null) { - entries["ChangeSetName"] = input.ChangeSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } - if (input.DisableRollback != null) { - entries["DisableRollback"] = input.DisableRollback; + if (input[_DR] != null) { + entries[_DR] = input[_DR]; } - if (input.RetainExceptOnCreate != null) { - entries["RetainExceptOnCreate"] = input.RetainExceptOnCreate; + if (input[_REOC] != null) { + entries[_REOC] = input[_REOC]; } return entries; }; @@ -6300,8 +6300,8 @@ const se_ExecuteChangeSetInput = (input: ExecuteChangeSetInput, context: __Serde */ const se_GetStackPolicyInput = (input: GetStackPolicyInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -6311,14 +6311,14 @@ const se_GetStackPolicyInput = (input: GetStackPolicyInput, context: __SerdeCont */ const se_GetTemplateInput = (input: GetTemplateInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.ChangeSetName != null) { - entries["ChangeSetName"] = input.ChangeSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.TemplateStage != null) { - entries["TemplateStage"] = input.TemplateStage; + if (input[_TS] != null) { + entries[_TS] = input[_TS]; } return entries; }; @@ -6328,23 +6328,23 @@ const se_GetTemplateInput = (input: GetTemplateInput, context: __SerdeContext): */ const se_GetTemplateSummaryInput = (input: GetTemplateSummaryInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.TemplateSummaryConfig != null) { - const memberEntries = se_TemplateSummaryConfig(input.TemplateSummaryConfig, context); + if (input[_TSC] != null) { + const memberEntries = se_TemplateSummaryConfig(input[_TSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TemplateSummaryConfig.${key}`; entries[loc] = value; @@ -6358,12 +6358,12 @@ const se_GetTemplateSummaryInput = (input: GetTemplateSummaryInput, context: __S */ const se_ImportStacksToStackSetInput = (input: ImportStacksToStackSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.StackIds != null) { - const memberEntries = se_StackIdList(input.StackIds, context); - if (input.StackIds?.length === 0) { + if (input[_SIt] != null) { + const memberEntries = se_StackIdList(input[_SIt], context); + if (input[_SIt]?.length === 0) { entries.StackIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6371,12 +6371,12 @@ const se_ImportStacksToStackSetInput = (input: ImportStacksToStackSetInput, cont entries[loc] = value; }); } - if (input.StackIdsUrl != null) { - entries["StackIdsUrl"] = input.StackIdsUrl; + if (input[_SIU] != null) { + entries[_SIU] = input[_SIU]; } - if (input.OrganizationalUnitIds != null) { - const memberEntries = se_OrganizationalUnitIdList(input.OrganizationalUnitIds, context); - if (input.OrganizationalUnitIds?.length === 0) { + if (input[_OUI] != null) { + const memberEntries = se_OrganizationalUnitIdList(input[_OUI], context); + if (input[_OUI]?.length === 0) { entries.OrganizationalUnitIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6384,21 +6384,21 @@ const se_ImportStacksToStackSetInput = (input: ImportStacksToStackSetInput, cont entries[loc] = value; }); } - if (input.OperationPreferences != null) { - const memberEntries = se_StackSetOperationPreferences(input.OperationPreferences, context); + if (input[_OP] != null) { + const memberEntries = se_StackSetOperationPreferences(input[_OP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OperationPreferences.${key}`; entries[loc] = value; }); } - if (input.OperationId === undefined) { - input.OperationId = generateIdempotencyToken(); + if (input[_OI] === undefined) { + input[_OI] = generateIdempotencyToken(); } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6408,11 +6408,11 @@ const se_ImportStacksToStackSetInput = (input: ImportStacksToStackSetInput, cont */ const se_ListChangeSetsInput = (input: ListChangeSetsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6422,8 +6422,8 @@ const se_ListChangeSetsInput = (input: ListChangeSetsInput, context: __SerdeCont */ const se_ListExportsInput = (input: ListExportsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6433,11 +6433,11 @@ const se_ListExportsInput = (input: ListExportsInput, context: __SerdeContext): */ const se_ListImportsInput = (input: ListImportsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExportName != null) { - entries["ExportName"] = input.ExportName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6450,18 +6450,18 @@ const se_ListStackInstanceResourceDriftsInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.StackInstanceResourceDriftStatuses != null) { - const memberEntries = se_StackResourceDriftStatusFilters(input.StackInstanceResourceDriftStatuses, context); - if (input.StackInstanceResourceDriftStatuses?.length === 0) { + if (input[_SIRDS] != null) { + const memberEntries = se_StackResourceDriftStatusFilters(input[_SIRDS], context); + if (input[_SIRDS]?.length === 0) { entries.StackInstanceResourceDriftStatuses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6469,17 +6469,17 @@ const se_ListStackInstanceResourceDriftsInput = ( entries[loc] = value; }); } - if (input.StackInstanceAccount != null) { - entries["StackInstanceAccount"] = input.StackInstanceAccount; + if (input[_SIA] != null) { + entries[_SIA] = input[_SIA]; } - if (input.StackInstanceRegion != null) { - entries["StackInstanceRegion"] = input.StackInstanceRegion; + if (input[_SIR] != null) { + entries[_SIR] = input[_SIR]; } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6489,18 +6489,18 @@ const se_ListStackInstanceResourceDriftsInput = ( */ const se_ListStackInstancesInput = (input: ListStackInstancesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_StackInstanceFilters(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_StackInstanceFilters(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6508,14 +6508,14 @@ const se_ListStackInstancesInput = (input: ListStackInstancesInput, context: __S entries[loc] = value; }); } - if (input.StackInstanceAccount != null) { - entries["StackInstanceAccount"] = input.StackInstanceAccount; + if (input[_SIA] != null) { + entries[_SIA] = input[_SIA]; } - if (input.StackInstanceRegion != null) { - entries["StackInstanceRegion"] = input.StackInstanceRegion; + if (input[_SIR] != null) { + entries[_SIR] = input[_SIR]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6525,11 +6525,11 @@ const se_ListStackInstancesInput = (input: ListStackInstancesInput, context: __S */ const se_ListStackResourcesInput = (input: ListStackResourcesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6542,24 +6542,24 @@ const se_ListStackSetOperationResultsInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.Filters != null) { - const memberEntries = se_OperationResultFilters(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_OperationResultFilters(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6575,17 +6575,17 @@ const se_ListStackSetOperationResultsInput = ( */ const se_ListStackSetOperationsInput = (input: ListStackSetOperationsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6595,17 +6595,17 @@ const se_ListStackSetOperationsInput = (input: ListStackSetOperationsInput, cont */ const se_ListStackSetsInput = (input: ListStackSetsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -6615,12 +6615,12 @@ const se_ListStackSetsInput = (input: ListStackSetsInput, context: __SerdeContex */ const se_ListStacksInput = (input: ListStacksInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.StackStatusFilter != null) { - const memberEntries = se_StackStatusFilter(input.StackStatusFilter, context); - if (input.StackStatusFilter?.length === 0) { + if (input[_SSF] != null) { + const memberEntries = se_StackStatusFilter(input[_SSF], context); + if (input[_SSF]?.length === 0) { entries.StackStatusFilter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6636,23 +6636,23 @@ const se_ListStacksInput = (input: ListStacksInput, context: __SerdeContext): an */ const se_ListTypeRegistrationsInput = (input: ListTypeRegistrationsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.TypeArn != null) { - entries["TypeArn"] = input.TypeArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.RegistrationStatusFilter != null) { - entries["RegistrationStatusFilter"] = input.RegistrationStatusFilter; + if (input[_RSF] != null) { + entries[_RSF] = input[_RSF]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6662,30 +6662,30 @@ const se_ListTypeRegistrationsInput = (input: ListTypeRegistrationsInput, contex */ const se_ListTypesInput = (input: ListTypesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Visibility != null) { - entries["Visibility"] = input.Visibility; + if (input[_Vi] != null) { + entries[_Vi] = input[_Vi]; } - if (input.ProvisioningType != null) { - entries["ProvisioningType"] = input.ProvisioningType; + if (input[_PTr] != null) { + entries[_PTr] = input[_PTr]; } - if (input.DeprecatedStatus != null) { - entries["DeprecatedStatus"] = input.DeprecatedStatus; + if (input[_DSep] != null) { + entries[_DSep] = input[_DSep]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.Filters != null) { - const memberEntries = se_TypeFilters(input.Filters, context); + if (input[_F] != null) { + const memberEntries = se_TypeFilters(input[_F], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Filters.${key}`; entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6695,26 +6695,26 @@ const se_ListTypesInput = (input: ListTypesInput, context: __SerdeContext): any */ const se_ListTypeVersionsInput = (input: ListTypeVersionsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DeprecatedStatus != null) { - entries["DeprecatedStatus"] = input.DeprecatedStatus; + if (input[_DSep] != null) { + entries[_DSep] = input[_DSep]; } - if (input.PublisherId != null) { - entries["PublisherId"] = input.PublisherId; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } return entries; }; @@ -6724,11 +6724,11 @@ const se_ListTypeVersionsInput = (input: ListTypeVersionsInput, context: __Serde */ const se_LoggingConfig = (input: LoggingConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.LogRoleArn != null) { - entries["LogRoleArn"] = input.LogRoleArn; + if (input[_LRA] != null) { + entries[_LRA] = input[_LRA]; } - if (input.LogGroupName != null) { - entries["LogGroupName"] = input.LogGroupName; + if (input[_LGN] != null) { + entries[_LGN] = input[_LGN]; } return entries; }; @@ -6754,8 +6754,8 @@ const se_LogicalResourceIds = (input: string[], context: __SerdeContext): any => */ const se_ManagedExecution = (input: ManagedExecution, context: __SerdeContext): any => { const entries: any = {}; - if (input.Active != null) { - entries["Active"] = input.Active; + if (input[_Act] != null) { + entries[_Act] = input[_Act]; } return entries; }; @@ -6781,11 +6781,11 @@ const se_NotificationARNs = (input: string[], context: __SerdeContext): any => { */ const se_OperationResultFilter = (input: OperationResultFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - entries["Values"] = input.Values; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -6830,17 +6830,17 @@ const se_OrganizationalUnitIdList = (input: string[], context: __SerdeContext): */ const se_Parameter = (input: Parameter, context: __SerdeContext): any => { const entries: any = {}; - if (input.ParameterKey != null) { - entries["ParameterKey"] = input.ParameterKey; + if (input[_PK] != null) { + entries[_PK] = input[_PK]; } - if (input.ParameterValue != null) { - entries["ParameterValue"] = input.ParameterValue; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.UsePreviousValue != null) { - entries["UsePreviousValue"] = input.UsePreviousValue; + if (input[_UPV] != null) { + entries[_UPV] = input[_UPV]; } - if (input.ResolvedValue != null) { - entries["ResolvedValue"] = input.ResolvedValue; + if (input[_RV] != null) { + entries[_RV] = input[_RV]; } return entries; }; @@ -6869,17 +6869,17 @@ const se_Parameters = (input: Parameter[], context: __SerdeContext): any => { */ const se_PublishTypeInput = (input: PublishTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.PublicVersionNumber != null) { - entries["PublicVersionNumber"] = input.PublicVersionNumber; + if (input[_PVN] != null) { + entries[_PVN] = input[_PVN]; } return entries; }; @@ -6889,26 +6889,26 @@ const se_PublishTypeInput = (input: PublishTypeInput, context: __SerdeContext): */ const se_RecordHandlerProgressInput = (input: RecordHandlerProgressInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.BearerToken != null) { - entries["BearerToken"] = input.BearerToken; + if (input[_BT] != null) { + entries[_BT] = input[_BT]; } - if (input.OperationStatus != null) { - entries["OperationStatus"] = input.OperationStatus; + if (input[_OS] != null) { + entries[_OS] = input[_OS]; } - if (input.CurrentOperationStatus != null) { - entries["CurrentOperationStatus"] = input.CurrentOperationStatus; + if (input[_COS] != null) { + entries[_COS] = input[_COS]; } - if (input.StatusMessage != null) { - entries["StatusMessage"] = input.StatusMessage; + if (input[_SM] != null) { + entries[_SM] = input[_SM]; } - if (input.ErrorCode != null) { - entries["ErrorCode"] = input.ErrorCode; + if (input[_EC] != null) { + entries[_EC] = input[_EC]; } - if (input.ResourceModel != null) { - entries["ResourceModel"] = input.ResourceModel; + if (input[_RM] != null) { + entries[_RM] = input[_RM]; } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } return entries; }; @@ -6934,11 +6934,11 @@ const se_RegionList = (input: string[], context: __SerdeContext): any => { */ const se_RegisterPublisherInput = (input: RegisterPublisherInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AcceptTermsAndConditions != null) { - entries["AcceptTermsAndConditions"] = input.AcceptTermsAndConditions; + if (input[_ATAC] != null) { + entries[_ATAC] = input[_ATAC]; } - if (input.ConnectionArn != null) { - entries["ConnectionArn"] = input.ConnectionArn; + if (input[_CAo] != null) { + entries[_CAo] = input[_CAo]; } return entries; }; @@ -6948,27 +6948,27 @@ const se_RegisterPublisherInput = (input: RegisterPublisherInput, context: __Ser */ const se_RegisterTypeInput = (input: RegisterTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.SchemaHandlerPackage != null) { - entries["SchemaHandlerPackage"] = input.SchemaHandlerPackage; + if (input[_SHP] != null) { + entries[_SHP] = input[_SHP]; } - if (input.LoggingConfig != null) { - const memberEntries = se_LoggingConfig(input.LoggingConfig, context); + if (input[_LC] != null) { + const memberEntries = se_LoggingConfig(input[_LC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LoggingConfig.${key}`; entries[loc] = value; }); } - if (input.ExecutionRoleArn != null) { - entries["ExecutionRoleArn"] = input.ExecutionRoleArn; + if (input[_ERA] != null) { + entries[_ERA] = input[_ERA]; } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } return entries; }; @@ -7029,14 +7029,14 @@ const se_ResourcesToSkip = (input: string[], context: __SerdeContext): any => { */ const se_ResourceToImport = (input: ResourceToImport, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RTes] != null) { + entries[_RTes] = input[_RTes]; } - if (input.LogicalResourceId != null) { - entries["LogicalResourceId"] = input.LogicalResourceId; + if (input[_LRI] != null) { + entries[_LRI] = input[_LRI]; } - if (input.ResourceIdentifier != null) { - const memberEntries = se_ResourceIdentifierProperties(input.ResourceIdentifier, context); + if (input[_RI] != null) { + const memberEntries = se_ResourceIdentifierProperties(input[_RI], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResourceIdentifier.${key}`; entries[loc] = value; @@ -7082,9 +7082,9 @@ const se_RetainResources = (input: string[], context: __SerdeContext): any => { */ const se_RollbackConfiguration = (input: RollbackConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.RollbackTriggers != null) { - const memberEntries = se_RollbackTriggers(input.RollbackTriggers, context); - if (input.RollbackTriggers?.length === 0) { + if (input[_RTo] != null) { + const memberEntries = se_RollbackTriggers(input[_RTo], context); + if (input[_RTo]?.length === 0) { entries.RollbackTriggers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7092,8 +7092,8 @@ const se_RollbackConfiguration = (input: RollbackConfiguration, context: __Serde entries[loc] = value; }); } - if (input.MonitoringTimeInMinutes != null) { - entries["MonitoringTimeInMinutes"] = input.MonitoringTimeInMinutes; + if (input[_MTIM] != null) { + entries[_MTIM] = input[_MTIM]; } return entries; }; @@ -7103,17 +7103,17 @@ const se_RollbackConfiguration = (input: RollbackConfiguration, context: __Serde */ const se_RollbackStackInput = (input: RollbackStackInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } - if (input.RetainExceptOnCreate != null) { - entries["RetainExceptOnCreate"] = input.RetainExceptOnCreate; + if (input[_REOC] != null) { + entries[_REOC] = input[_REOC]; } return entries; }; @@ -7123,11 +7123,11 @@ const se_RollbackStackInput = (input: RollbackStackInput, context: __SerdeContex */ const se_RollbackTrigger = (input: RollbackTrigger, context: __SerdeContext): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } return entries; }; @@ -7156,14 +7156,14 @@ const se_RollbackTriggers = (input: RollbackTrigger[], context: __SerdeContext): */ const se_SetStackPolicyInput = (input: SetStackPolicyInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.StackPolicyBody != null) { - entries["StackPolicyBody"] = input.StackPolicyBody; + if (input[_SPB] != null) { + entries[_SPB] = input[_SPB]; } - if (input.StackPolicyURL != null) { - entries["StackPolicyURL"] = input.StackPolicyURL; + if (input[_SPURL] != null) { + entries[_SPURL] = input[_SPURL]; } return entries; }; @@ -7173,20 +7173,20 @@ const se_SetStackPolicyInput = (input: SetStackPolicyInput, context: __SerdeCont */ const se_SetTypeConfigurationInput = (input: SetTypeConfigurationInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TypeArn != null) { - entries["TypeArn"] = input.TypeArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.Configuration != null) { - entries["Configuration"] = input.Configuration; + if (input[_Co] != null) { + entries[_Co] = input[_Co]; } - if (input.ConfigurationAlias != null) { - entries["ConfigurationAlias"] = input.ConfigurationAlias; + if (input[_CAon] != null) { + entries[_CAon] = input[_CAon]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } return entries; }; @@ -7196,17 +7196,17 @@ const se_SetTypeConfigurationInput = (input: SetTypeConfigurationInput, context: */ const se_SetTypeDefaultVersionInput = (input: SetTypeDefaultVersionInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.VersionId != null) { - entries["VersionId"] = input.VersionId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -7216,17 +7216,17 @@ const se_SetTypeDefaultVersionInput = (input: SetTypeDefaultVersionInput, contex */ const se_SignalResourceInput = (input: SignalResourceInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.LogicalResourceId != null) { - entries["LogicalResourceId"] = input.LogicalResourceId; + if (input[_LRI] != null) { + entries[_LRI] = input[_LRI]; } - if (input.UniqueId != null) { - entries["UniqueId"] = input.UniqueId; + if (input[_UI] != null) { + entries[_UI] = input[_UI]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_S] != null) { + entries[_S] = input[_S]; } return entries; }; @@ -7252,11 +7252,11 @@ const se_StackIdList = (input: string[], context: __SerdeContext): any => { */ const se_StackInstanceFilter = (input: StackInstanceFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - entries["Values"] = input.Values; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -7301,12 +7301,12 @@ const se_StackResourceDriftStatusFilters = (input: StackResourceDriftStatus[], c */ const se_StackSetOperationPreferences = (input: StackSetOperationPreferences, context: __SerdeContext): any => { const entries: any = {}; - if (input.RegionConcurrencyType != null) { - entries["RegionConcurrencyType"] = input.RegionConcurrencyType; + if (input[_RCT] != null) { + entries[_RCT] = input[_RCT]; } - if (input.RegionOrder != null) { - const memberEntries = se_RegionList(input.RegionOrder, context); - if (input.RegionOrder?.length === 0) { + if (input[_RO] != null) { + const memberEntries = se_RegionList(input[_RO], context); + if (input[_RO]?.length === 0) { entries.RegionOrder = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7314,20 +7314,20 @@ const se_StackSetOperationPreferences = (input: StackSetOperationPreferences, co entries[loc] = value; }); } - if (input.FailureToleranceCount != null) { - entries["FailureToleranceCount"] = input.FailureToleranceCount; + if (input[_FTC] != null) { + entries[_FTC] = input[_FTC]; } - if (input.FailureTolerancePercentage != null) { - entries["FailureTolerancePercentage"] = input.FailureTolerancePercentage; + if (input[_FTP] != null) { + entries[_FTP] = input[_FTP]; } - if (input.MaxConcurrentCount != null) { - entries["MaxConcurrentCount"] = input.MaxConcurrentCount; + if (input[_MCC] != null) { + entries[_MCC] = input[_MCC]; } - if (input.MaxConcurrentPercentage != null) { - entries["MaxConcurrentPercentage"] = input.MaxConcurrentPercentage; + if (input[_MCP] != null) { + entries[_MCP] = input[_MCP]; } - if (input.ConcurrencyMode != null) { - entries["ConcurrencyMode"] = input.ConcurrencyMode; + if (input[_CM] != null) { + entries[_CM] = input[_CM]; } return entries; }; @@ -7353,14 +7353,14 @@ const se_StackStatusFilter = (input: StackStatus[], context: __SerdeContext): an */ const se_StopStackSetOperationInput = (input: StopStackSetOperationInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -7370,11 +7370,11 @@ const se_StopStackSetOperationInput = (input: StopStackSetOperationInput, contex */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -7403,8 +7403,8 @@ const se_Tags = (input: Tag[], context: __SerdeContext): any => { */ const se_TemplateSummaryConfig = (input: TemplateSummaryConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.TreatUnrecognizedResourceTypesAsWarnings != null) { - entries["TreatUnrecognizedResourceTypesAsWarnings"] = input.TreatUnrecognizedResourceTypesAsWarnings; + if (input[_TURTAW] != null) { + entries[_TURTAW] = input[_TURTAW]; } return entries; }; @@ -7414,20 +7414,20 @@ const se_TemplateSummaryConfig = (input: TemplateSummaryConfig, context: __Serde */ const se_TestTypeInput = (input: TestTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.VersionId != null) { - entries["VersionId"] = input.VersionId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.LogDeliveryBucket != null) { - entries["LogDeliveryBucket"] = input.LogDeliveryBucket; + if (input[_LDB] != null) { + entries[_LDB] = input[_LDB]; } return entries; }; @@ -7437,20 +7437,20 @@ const se_TestTypeInput = (input: TestTypeInput, context: __SerdeContext): any => */ const se_TypeConfigurationIdentifier = (input: TypeConfigurationIdentifier, context: __SerdeContext): any => { const entries: any = {}; - if (input.TypeArn != null) { - entries["TypeArn"] = input.TypeArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.TypeConfigurationAlias != null) { - entries["TypeConfigurationAlias"] = input.TypeConfigurationAlias; + if (input[_TCA] != null) { + entries[_TCA] = input[_TCA]; } - if (input.TypeConfigurationArn != null) { - entries["TypeConfigurationArn"] = input.TypeConfigurationArn; + if (input[_TCAy] != null) { + entries[_TCAy] = input[_TCAy]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TypeName != null) { - entries["TypeName"] = input.TypeName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } return entries; }; @@ -7479,14 +7479,14 @@ const se_TypeConfigurationIdentifiers = (input: TypeConfigurationIdentifier[], c */ const se_TypeFilters = (input: TypeFilters, context: __SerdeContext): any => { const entries: any = {}; - if (input.Category != null) { - entries["Category"] = input.Category; + if (input[_Ca] != null) { + entries[_Ca] = input[_Ca]; } - if (input.PublisherId != null) { - entries["PublisherId"] = input.PublisherId; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.TypeNamePrefix != null) { - entries["TypeNamePrefix"] = input.TypeNamePrefix; + if (input[_TNP] != null) { + entries[_TNP] = input[_TNP]; } return entries; }; @@ -7496,27 +7496,27 @@ const se_TypeFilters = (input: TypeFilters, context: __SerdeContext): any => { */ const se_UpdateStackInput = (input: UpdateStackInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } - if (input.UsePreviousTemplate != null) { - entries["UsePreviousTemplate"] = input.UsePreviousTemplate; + if (input[_UPT] != null) { + entries[_UPT] = input[_UPT]; } - if (input.StackPolicyDuringUpdateBody != null) { - entries["StackPolicyDuringUpdateBody"] = input.StackPolicyDuringUpdateBody; + if (input[_SPDUB] != null) { + entries[_SPDUB] = input[_SPDUB]; } - if (input.StackPolicyDuringUpdateURL != null) { - entries["StackPolicyDuringUpdateURL"] = input.StackPolicyDuringUpdateURL; + if (input[_SPDUURL] != null) { + entries[_SPDUURL] = input[_SPDUURL]; } - if (input.Parameters != null) { - const memberEntries = se_Parameters(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_Parameters(input[_P], context); + if (input[_P]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7524,9 +7524,9 @@ const se_UpdateStackInput = (input: UpdateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.Capabilities != null) { - const memberEntries = se_Capabilities(input.Capabilities, context); - if (input.Capabilities?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_Capabilities(input[_C], context); + if (input[_C]?.length === 0) { entries.Capabilities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7534,9 +7534,9 @@ const se_UpdateStackInput = (input: UpdateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.ResourceTypes != null) { - const memberEntries = se_ResourceTypes(input.ResourceTypes, context); - if (input.ResourceTypes?.length === 0) { + if (input[_RTe] != null) { + const memberEntries = se_ResourceTypes(input[_RTe], context); + if (input[_RTe]?.length === 0) { entries.ResourceTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7544,25 +7544,25 @@ const se_UpdateStackInput = (input: UpdateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.RoleARN != null) { - entries["RoleARN"] = input.RoleARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.RollbackConfiguration != null) { - const memberEntries = se_RollbackConfiguration(input.RollbackConfiguration, context); + if (input[_RC] != null) { + const memberEntries = se_RollbackConfiguration(input[_RC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RollbackConfiguration.${key}`; entries[loc] = value; }); } - if (input.StackPolicyBody != null) { - entries["StackPolicyBody"] = input.StackPolicyBody; + if (input[_SPB] != null) { + entries[_SPB] = input[_SPB]; } - if (input.StackPolicyURL != null) { - entries["StackPolicyURL"] = input.StackPolicyURL; + if (input[_SPURL] != null) { + entries[_SPURL] = input[_SPURL]; } - if (input.NotificationARNs != null) { - const memberEntries = se_NotificationARNs(input.NotificationARNs, context); - if (input.NotificationARNs?.length === 0) { + if (input[_NARN] != null) { + const memberEntries = se_NotificationARNs(input[_NARN], context); + if (input[_NARN]?.length === 0) { entries.NotificationARNs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7570,9 +7570,9 @@ const se_UpdateStackInput = (input: UpdateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_Tags(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7580,14 +7580,14 @@ const se_UpdateStackInput = (input: UpdateStackInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.DisableRollback != null) { - entries["DisableRollback"] = input.DisableRollback; + if (input[_DR] != null) { + entries[_DR] = input[_DR]; } - if (input.ClientRequestToken != null) { - entries["ClientRequestToken"] = input.ClientRequestToken; + if (input[_CRT] != null) { + entries[_CRT] = input[_CRT]; } - if (input.RetainExceptOnCreate != null) { - entries["RetainExceptOnCreate"] = input.RetainExceptOnCreate; + if (input[_REOC] != null) { + entries[_REOC] = input[_REOC]; } return entries; }; @@ -7597,12 +7597,12 @@ const se_UpdateStackInput = (input: UpdateStackInput, context: __SerdeContext): */ const se_UpdateStackInstancesInput = (input: UpdateStackInstancesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.Accounts != null) { - const memberEntries = se_AccountList(input.Accounts, context); - if (input.Accounts?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_AccountList(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Accounts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7610,16 +7610,16 @@ const se_UpdateStackInstancesInput = (input: UpdateStackInstancesInput, context: entries[loc] = value; }); } - if (input.DeploymentTargets != null) { - const memberEntries = se_DeploymentTargets(input.DeploymentTargets, context); + if (input[_DTep] != null) { + const memberEntries = se_DeploymentTargets(input[_DTep], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DeploymentTargets.${key}`; entries[loc] = value; }); } - if (input.Regions != null) { - const memberEntries = se_RegionList(input.Regions, context); - if (input.Regions?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_RegionList(input[_R], context); + if (input[_R]?.length === 0) { entries.Regions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7627,9 +7627,9 @@ const se_UpdateStackInstancesInput = (input: UpdateStackInstancesInput, context: entries[loc] = value; }); } - if (input.ParameterOverrides != null) { - const memberEntries = se_Parameters(input.ParameterOverrides, context); - if (input.ParameterOverrides?.length === 0) { + if (input[_PO] != null) { + const memberEntries = se_Parameters(input[_PO], context); + if (input[_PO]?.length === 0) { entries.ParameterOverrides = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7637,21 +7637,21 @@ const se_UpdateStackInstancesInput = (input: UpdateStackInstancesInput, context: entries[loc] = value; }); } - if (input.OperationPreferences != null) { - const memberEntries = se_StackSetOperationPreferences(input.OperationPreferences, context); + if (input[_OP] != null) { + const memberEntries = se_StackSetOperationPreferences(input[_OP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OperationPreferences.${key}`; entries[loc] = value; }); } - if (input.OperationId === undefined) { - input.OperationId = generateIdempotencyToken(); + if (input[_OI] === undefined) { + input[_OI] = generateIdempotencyToken(); } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -7661,24 +7661,24 @@ const se_UpdateStackInstancesInput = (input: UpdateStackInstancesInput, context: */ const se_UpdateStackSetInput = (input: UpdateStackSetInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.StackSetName != null) { - entries["StackSetName"] = input.StackSetName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } - if (input.UsePreviousTemplate != null) { - entries["UsePreviousTemplate"] = input.UsePreviousTemplate; + if (input[_UPT] != null) { + entries[_UPT] = input[_UPT]; } - if (input.Parameters != null) { - const memberEntries = se_Parameters(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_Parameters(input[_P], context); + if (input[_P]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7686,9 +7686,9 @@ const se_UpdateStackSetInput = (input: UpdateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Capabilities != null) { - const memberEntries = se_Capabilities(input.Capabilities, context); - if (input.Capabilities?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_Capabilities(input[_C], context); + if (input[_C]?.length === 0) { entries.Capabilities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7696,9 +7696,9 @@ const se_UpdateStackSetInput = (input: UpdateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_Tags(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7706,45 +7706,45 @@ const se_UpdateStackSetInput = (input: UpdateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.OperationPreferences != null) { - const memberEntries = se_StackSetOperationPreferences(input.OperationPreferences, context); + if (input[_OP] != null) { + const memberEntries = se_StackSetOperationPreferences(input[_OP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OperationPreferences.${key}`; entries[loc] = value; }); } - if (input.AdministrationRoleARN != null) { - entries["AdministrationRoleARN"] = input.AdministrationRoleARN; + if (input[_ARARN] != null) { + entries[_ARARN] = input[_ARARN]; } - if (input.ExecutionRoleName != null) { - entries["ExecutionRoleName"] = input.ExecutionRoleName; + if (input[_ERN] != null) { + entries[_ERN] = input[_ERN]; } - if (input.DeploymentTargets != null) { - const memberEntries = se_DeploymentTargets(input.DeploymentTargets, context); + if (input[_DTep] != null) { + const memberEntries = se_DeploymentTargets(input[_DTep], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DeploymentTargets.${key}`; entries[loc] = value; }); } - if (input.PermissionModel != null) { - entries["PermissionModel"] = input.PermissionModel; + if (input[_PM] != null) { + entries[_PM] = input[_PM]; } - if (input.AutoDeployment != null) { - const memberEntries = se_AutoDeployment(input.AutoDeployment, context); + if (input[_AD] != null) { + const memberEntries = se_AutoDeployment(input[_AD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AutoDeployment.${key}`; entries[loc] = value; }); } - if (input.OperationId === undefined) { - input.OperationId = generateIdempotencyToken(); + if (input[_OI] === undefined) { + input[_OI] = generateIdempotencyToken(); } - if (input.OperationId != null) { - entries["OperationId"] = input.OperationId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.Accounts != null) { - const memberEntries = se_AccountList(input.Accounts, context); - if (input.Accounts?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_AccountList(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Accounts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7752,9 +7752,9 @@ const se_UpdateStackSetInput = (input: UpdateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Regions != null) { - const memberEntries = se_RegionList(input.Regions, context); - if (input.Regions?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_RegionList(input[_R], context); + if (input[_R]?.length === 0) { entries.Regions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7762,11 +7762,11 @@ const se_UpdateStackSetInput = (input: UpdateStackSetInput, context: __SerdeCont entries[loc] = value; }); } - if (input.CallAs != null) { - entries["CallAs"] = input.CallAs; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.ManagedExecution != null) { - const memberEntries = se_ManagedExecution(input.ManagedExecution, context); + if (input[_ME] != null) { + const memberEntries = se_ManagedExecution(input[_ME], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ManagedExecution.${key}`; entries[loc] = value; @@ -7780,11 +7780,11 @@ const se_UpdateStackSetInput = (input: UpdateStackSetInput, context: __SerdeCont */ const se_UpdateTerminationProtectionInput = (input: UpdateTerminationProtectionInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnableTerminationProtection != null) { - entries["EnableTerminationProtection"] = input.EnableTerminationProtection; + if (input[_ETP] != null) { + entries[_ETP] = input[_ETP]; } - if (input.StackName != null) { - entries["StackName"] = input.StackName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -7794,11 +7794,11 @@ const se_UpdateTerminationProtectionInput = (input: UpdateTerminationProtectionI */ const se_ValidateTemplateInput = (input: ValidateTemplateInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateBody != null) { - entries["TemplateBody"] = input.TemplateBody; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.TemplateURL != null) { - entries["TemplateURL"] = input.TemplateURL; + if (input[_TURL] != null) { + entries[_TURL] = input[_TURL]; } return entries; }; @@ -7808,11 +7808,11 @@ const se_ValidateTemplateInput = (input: ValidateTemplateInput, context: __Serde */ const de_AccountGateResult = (output: any, context: __SerdeContext): AccountGateResult => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } return contents; }; @@ -7822,11 +7822,11 @@ const de_AccountGateResult = (output: any, context: __SerdeContext): AccountGate */ const de_AccountLimit = (output: any, context: __SerdeContext): AccountLimit => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Value"] !== undefined) { - contents.Value = __strictParseInt32(output["Value"]) as number; + if (output[_Val] != null) { + contents[_Val] = __strictParseInt32(output[_Val]) as number; } return contents; }; @@ -7869,8 +7869,8 @@ const de_ActivateOrganizationsAccessOutput = ( */ const de_ActivateTypeOutput = (output: any, context: __SerdeContext): ActivateTypeOutput => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -7891,8 +7891,8 @@ const de_AllowedValues = (output: any, context: __SerdeContext): string[] => { */ const de_AlreadyExistsException = (output: any, context: __SerdeContext): AlreadyExistsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -7902,11 +7902,11 @@ const de_AlreadyExistsException = (output: any, context: __SerdeContext): Alread */ const de_AutoDeployment = (output: any, context: __SerdeContext): AutoDeployment => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["RetainStacksOnAccountRemoval"] !== undefined) { - contents.RetainStacksOnAccountRemoval = __parseBoolean(output["RetainStacksOnAccountRemoval"]); + if (output[_RSOAR] != null) { + contents[_RSOAR] = __parseBoolean(output[_RSOAR]); } return contents; }; @@ -7919,17 +7919,14 @@ const de_BatchDescribeTypeConfigurationsError = ( context: __SerdeContext ): BatchDescribeTypeConfigurationsError => { const contents: any = {}; - if (output["ErrorCode"] !== undefined) { - contents.ErrorCode = __expectString(output["ErrorCode"]); + if (output[_EC] != null) { + contents[_EC] = __expectString(output[_EC]); } - if (output["ErrorMessage"] !== undefined) { - contents.ErrorMessage = __expectString(output["ErrorMessage"]); + if (output[_EM] != null) { + contents[_EM] = __expectString(output[_EM]); } - if (output["TypeConfigurationIdentifier"] !== undefined) { - contents.TypeConfigurationIdentifier = de_TypeConfigurationIdentifier( - output["TypeConfigurationIdentifier"], - context - ); + if (output[_TCIy] != null) { + contents[_TCIy] = de_TypeConfigurationIdentifier(output[_TCIy], context); } return contents; }; @@ -7957,31 +7954,19 @@ const de_BatchDescribeTypeConfigurationsOutput = ( ): BatchDescribeTypeConfigurationsOutput => { const contents: any = {}; if (output.Errors === "") { - contents.Errors = []; - } else if (output["Errors"] !== undefined && output["Errors"]["member"] !== undefined) { - contents.Errors = de_BatchDescribeTypeConfigurationsErrors( - __getArrayIfSingleItem(output["Errors"]["member"]), - context - ); + contents[_Er] = []; + } else if (output[_Er] != null && output[_Er][_m] != null) { + contents[_Er] = de_BatchDescribeTypeConfigurationsErrors(__getArrayIfSingleItem(output[_Er][_m]), context); } if (output.UnprocessedTypeConfigurations === "") { - contents.UnprocessedTypeConfigurations = []; - } else if ( - output["UnprocessedTypeConfigurations"] !== undefined && - output["UnprocessedTypeConfigurations"]["member"] !== undefined - ) { - contents.UnprocessedTypeConfigurations = de_UnprocessedTypeConfigurations( - __getArrayIfSingleItem(output["UnprocessedTypeConfigurations"]["member"]), - context - ); + contents[_UTC] = []; + } else if (output[_UTC] != null && output[_UTC][_m] != null) { + contents[_UTC] = de_UnprocessedTypeConfigurations(__getArrayIfSingleItem(output[_UTC][_m]), context); } if (output.TypeConfigurations === "") { - contents.TypeConfigurations = []; - } else if (output["TypeConfigurations"] !== undefined && output["TypeConfigurations"]["member"] !== undefined) { - contents.TypeConfigurations = de_TypeConfigurationDetailsList( - __getArrayIfSingleItem(output["TypeConfigurations"]["member"]), - context - ); + contents[_TC] = []; + } else if (output[_TC] != null && output[_TC][_m] != null) { + contents[_TC] = de_TypeConfigurationDetailsList(__getArrayIfSingleItem(output[_TC][_m]), context); } return contents; }; @@ -8002,8 +7987,8 @@ const de_Capabilities = (output: any, context: __SerdeContext): Capability[] => */ const de_CFNRegistryException = (output: any, context: __SerdeContext): CFNRegistryException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8013,14 +7998,14 @@ const de_CFNRegistryException = (output: any, context: __SerdeContext): CFNRegis */ const de_Change = (output: any, context: __SerdeContext): Change => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["HookInvocationCount"] !== undefined) { - contents.HookInvocationCount = __strictParseInt32(output["HookInvocationCount"]) as number; + if (output[_HIC] != null) { + contents[_HIC] = __strictParseInt32(output[_HIC]) as number; } - if (output["ResourceChange"] !== undefined) { - contents.ResourceChange = de_ResourceChange(output["ResourceChange"], context); + if (output[_RCe] != null) { + contents[_RCe] = de_ResourceChange(output[_RCe], context); } return contents; }; @@ -8041,23 +8026,23 @@ const de_Changes = (output: any, context: __SerdeContext): Change[] => { */ const de_ChangeSetHook = (output: any, context: __SerdeContext): ChangeSetHook => { const contents: any = {}; - if (output["InvocationPoint"] !== undefined) { - contents.InvocationPoint = __expectString(output["InvocationPoint"]); + if (output[_IP] != null) { + contents[_IP] = __expectString(output[_IP]); } - if (output["FailureMode"] !== undefined) { - contents.FailureMode = __expectString(output["FailureMode"]); + if (output[_FM] != null) { + contents[_FM] = __expectString(output[_FM]); } - if (output["TypeName"] !== undefined) { - contents.TypeName = __expectString(output["TypeName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["TypeVersionId"] !== undefined) { - contents.TypeVersionId = __expectString(output["TypeVersionId"]); + if (output[_TVI] != null) { + contents[_TVI] = __expectString(output[_TVI]); } - if (output["TypeConfigurationVersionId"] !== undefined) { - contents.TypeConfigurationVersionId = __expectString(output["TypeConfigurationVersionId"]); + if (output[_TCVI] != null) { + contents[_TCVI] = __expectString(output[_TCVI]); } - if (output["TargetDetails"] !== undefined) { - contents.TargetDetails = de_ChangeSetHookTargetDetails(output["TargetDetails"], context); + if (output[_TD] != null) { + contents[_TD] = de_ChangeSetHookTargetDetails(output[_TD], context); } return contents; }; @@ -8070,14 +8055,14 @@ const de_ChangeSetHookResourceTargetDetails = ( context: __SerdeContext ): ChangeSetHookResourceTargetDetails => { const contents: any = {}; - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["ResourceAction"] !== undefined) { - contents.ResourceAction = __expectString(output["ResourceAction"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } return contents; }; @@ -8098,11 +8083,11 @@ const de_ChangeSetHooks = (output: any, context: __SerdeContext): ChangeSetHook[ */ const de_ChangeSetHookTargetDetails = (output: any, context: __SerdeContext): ChangeSetHookTargetDetails => { const contents: any = {}; - if (output["TargetType"] !== undefined) { - contents.TargetType = __expectString(output["TargetType"]); + if (output[_TTa] != null) { + contents[_TTa] = __expectString(output[_TTa]); } - if (output["ResourceTargetDetails"] !== undefined) { - contents.ResourceTargetDetails = de_ChangeSetHookResourceTargetDetails(output["ResourceTargetDetails"], context); + if (output[_RTD] != null) { + contents[_RTD] = de_ChangeSetHookResourceTargetDetails(output[_RTD], context); } return contents; }; @@ -8112,8 +8097,8 @@ const de_ChangeSetHookTargetDetails = (output: any, context: __SerdeContext): Ch */ const de_ChangeSetNotFoundException = (output: any, context: __SerdeContext): ChangeSetNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8134,44 +8119,44 @@ const de_ChangeSetSummaries = (output: any, context: __SerdeContext): ChangeSetS */ const de_ChangeSetSummary = (output: any, context: __SerdeContext): ChangeSetSummary => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["ChangeSetId"] !== undefined) { - contents.ChangeSetId = __expectString(output["ChangeSetId"]); + if (output[_CSIh] != null) { + contents[_CSIh] = __expectString(output[_CSIh]); } - if (output["ChangeSetName"] !== undefined) { - contents.ChangeSetName = __expectString(output["ChangeSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["ExecutionStatus"] !== undefined) { - contents.ExecutionStatus = __expectString(output["ExecutionStatus"]); + if (output[_ES] != null) { + contents[_ES] = __expectString(output[_ES]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["CreationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["IncludeNestedStacks"] !== undefined) { - contents.IncludeNestedStacks = __parseBoolean(output["IncludeNestedStacks"]); + if (output[_INS] != null) { + contents[_INS] = __parseBoolean(output[_INS]); } - if (output["ParentChangeSetId"] !== undefined) { - contents.ParentChangeSetId = __expectString(output["ParentChangeSetId"]); + if (output[_PCSI] != null) { + contents[_PCSI] = __expectString(output[_PCSI]); } - if (output["RootChangeSetId"] !== undefined) { - contents.RootChangeSetId = __expectString(output["RootChangeSetId"]); + if (output[_RCSI] != null) { + contents[_RCSI] = __expectString(output[_RCSI]); } - if (output["ImportExistingResources"] !== undefined) { - contents.ImportExistingResources = __parseBoolean(output["ImportExistingResources"]); + if (output[_IER] != null) { + contents[_IER] = __parseBoolean(output[_IER]); } return contents; }; @@ -8189,11 +8174,11 @@ const de_ContinueUpdateRollbackOutput = (output: any, context: __SerdeContext): */ const de_CreateChangeSetOutput = (output: any, context: __SerdeContext): CreateChangeSetOutput => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -8203,8 +8188,8 @@ const de_CreateChangeSetOutput = (output: any, context: __SerdeContext): CreateC */ const de_CreatedButModifiedException = (output: any, context: __SerdeContext): CreatedButModifiedException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8214,8 +8199,8 @@ const de_CreatedButModifiedException = (output: any, context: __SerdeContext): C */ const de_CreateStackInstancesOutput = (output: any, context: __SerdeContext): CreateStackInstancesOutput => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -8225,8 +8210,8 @@ const de_CreateStackInstancesOutput = (output: any, context: __SerdeContext): Cr */ const de_CreateStackOutput = (output: any, context: __SerdeContext): CreateStackOutput => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -8236,8 +8221,8 @@ const de_CreateStackOutput = (output: any, context: __SerdeContext): CreateStack */ const de_CreateStackSetOutput = (output: any, context: __SerdeContext): CreateStackSetOutput => { const contents: any = {}; - if (output["StackSetId"] !== undefined) { - contents.StackSetId = __expectString(output["StackSetId"]); + if (output[_SSI] != null) { + contents[_SSI] = __expectString(output[_SSI]); } return contents; }; @@ -8274,8 +8259,8 @@ const de_DeleteChangeSetOutput = (output: any, context: __SerdeContext): DeleteC */ const de_DeleteStackInstancesOutput = (output: any, context: __SerdeContext): DeleteStackInstancesOutput => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -8294,23 +8279,20 @@ const de_DeleteStackSetOutput = (output: any, context: __SerdeContext): DeleteSt const de_DeploymentTargets = (output: any, context: __SerdeContext): DeploymentTargets => { const contents: any = {}; if (output.Accounts === "") { - contents.Accounts = []; - } else if (output["Accounts"] !== undefined && output["Accounts"]["member"] !== undefined) { - contents.Accounts = de_AccountList(__getArrayIfSingleItem(output["Accounts"]["member"]), context); + contents[_Ac] = []; + } else if (output[_Ac] != null && output[_Ac][_m] != null) { + contents[_Ac] = de_AccountList(__getArrayIfSingleItem(output[_Ac][_m]), context); } - if (output["AccountsUrl"] !== undefined) { - contents.AccountsUrl = __expectString(output["AccountsUrl"]); + if (output[_AUc] != null) { + contents[_AUc] = __expectString(output[_AUc]); } if (output.OrganizationalUnitIds === "") { - contents.OrganizationalUnitIds = []; - } else if (output["OrganizationalUnitIds"] !== undefined && output["OrganizationalUnitIds"]["member"] !== undefined) { - contents.OrganizationalUnitIds = de_OrganizationalUnitIdList( - __getArrayIfSingleItem(output["OrganizationalUnitIds"]["member"]), - context - ); + contents[_OUI] = []; + } else if (output[_OUI] != null && output[_OUI][_m] != null) { + contents[_OUI] = de_OrganizationalUnitIdList(__getArrayIfSingleItem(output[_OUI][_m]), context); } - if (output["AccountFilterType"] !== undefined) { - contents.AccountFilterType = __expectString(output["AccountFilterType"]); + if (output[_AFT] != null) { + contents[_AFT] = __expectString(output[_AFT]); } return contents; }; @@ -8329,12 +8311,12 @@ const de_DeregisterTypeOutput = (output: any, context: __SerdeContext): Deregist const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): DescribeAccountLimitsOutput => { const contents: any = {}; if (output.AccountLimits === "") { - contents.AccountLimits = []; - } else if (output["AccountLimits"] !== undefined && output["AccountLimits"]["member"] !== undefined) { - contents.AccountLimits = de_AccountLimitList(__getArrayIfSingleItem(output["AccountLimits"]["member"]), context); + contents[_AL] = []; + } else if (output[_AL] != null && output[_AL][_m] != null) { + contents[_AL] = de_AccountLimitList(__getArrayIfSingleItem(output[_AL][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8344,28 +8326,28 @@ const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): D */ const de_DescribeChangeSetHooksOutput = (output: any, context: __SerdeContext): DescribeChangeSetHooksOutput => { const contents: any = {}; - if (output["ChangeSetId"] !== undefined) { - contents.ChangeSetId = __expectString(output["ChangeSetId"]); + if (output[_CSIh] != null) { + contents[_CSIh] = __expectString(output[_CSIh]); } - if (output["ChangeSetName"] !== undefined) { - contents.ChangeSetName = __expectString(output["ChangeSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } if (output.Hooks === "") { - contents.Hooks = []; - } else if (output["Hooks"] !== undefined && output["Hooks"]["member"] !== undefined) { - contents.Hooks = de_ChangeSetHooks(__getArrayIfSingleItem(output["Hooks"]["member"]), context); + contents[_H] = []; + } else if (output[_H] != null && output[_H][_m] != null) { + contents[_H] = de_ChangeSetHooks(__getArrayIfSingleItem(output[_H][_m]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } return contents; }; @@ -8375,81 +8357,78 @@ const de_DescribeChangeSetHooksOutput = (output: any, context: __SerdeContext): */ const de_DescribeChangeSetOutput = (output: any, context: __SerdeContext): DescribeChangeSetOutput => { const contents: any = {}; - if (output["ChangeSetName"] !== undefined) { - contents.ChangeSetName = __expectString(output["ChangeSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["ChangeSetId"] !== undefined) { - contents.ChangeSetId = __expectString(output["ChangeSetId"]); + if (output[_CSIh] != null) { + contents[_CSIh] = __expectString(output[_CSIh]); } - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["member"] !== undefined) { - contents.Parameters = de_Parameters(__getArrayIfSingleItem(output["Parameters"]["member"]), context); + contents[_P] = []; + } else if (output[_P] != null && output[_P][_m] != null) { + contents[_P] = de_Parameters(__getArrayIfSingleItem(output[_P][_m]), context); } - if (output["CreationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["ExecutionStatus"] !== undefined) { - contents.ExecutionStatus = __expectString(output["ExecutionStatus"]); + if (output[_ES] != null) { + contents[_ES] = __expectString(output[_ES]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } if (output.NotificationARNs === "") { - contents.NotificationARNs = []; - } else if (output["NotificationARNs"] !== undefined && output["NotificationARNs"]["member"] !== undefined) { - contents.NotificationARNs = de_NotificationARNs( - __getArrayIfSingleItem(output["NotificationARNs"]["member"]), - context - ); + contents[_NARN] = []; + } else if (output[_NARN] != null && output[_NARN][_m] != null) { + contents[_NARN] = de_NotificationARNs(__getArrayIfSingleItem(output[_NARN][_m]), context); } - if (output["RollbackConfiguration"] !== undefined) { - contents.RollbackConfiguration = de_RollbackConfiguration(output["RollbackConfiguration"], context); + if (output[_RC] != null) { + contents[_RC] = de_RollbackConfiguration(output[_RC], context); } if (output.Capabilities === "") { - contents.Capabilities = []; - } else if (output["Capabilities"] !== undefined && output["Capabilities"]["member"] !== undefined) { - contents.Capabilities = de_Capabilities(__getArrayIfSingleItem(output["Capabilities"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_Tags(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_Ta] = []; + } else if (output[_Ta] != null && output[_Ta][_m] != null) { + contents[_Ta] = de_Tags(__getArrayIfSingleItem(output[_Ta][_m]), context); } if (output.Changes === "") { - contents.Changes = []; - } else if (output["Changes"] !== undefined && output["Changes"]["member"] !== undefined) { - contents.Changes = de_Changes(__getArrayIfSingleItem(output["Changes"]["member"]), context); + contents[_Ch] = []; + } else if (output[_Ch] != null && output[_Ch][_m] != null) { + contents[_Ch] = de_Changes(__getArrayIfSingleItem(output[_Ch][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["IncludeNestedStacks"] !== undefined) { - contents.IncludeNestedStacks = __parseBoolean(output["IncludeNestedStacks"]); + if (output[_INS] != null) { + contents[_INS] = __parseBoolean(output[_INS]); } - if (output["ParentChangeSetId"] !== undefined) { - contents.ParentChangeSetId = __expectString(output["ParentChangeSetId"]); + if (output[_PCSI] != null) { + contents[_PCSI] = __expectString(output[_PCSI]); } - if (output["RootChangeSetId"] !== undefined) { - contents.RootChangeSetId = __expectString(output["RootChangeSetId"]); + if (output[_RCSI] != null) { + contents[_RCSI] = __expectString(output[_RCSI]); } - if (output["OnStackFailure"] !== undefined) { - contents.OnStackFailure = __expectString(output["OnStackFailure"]); + if (output[_OSF] != null) { + contents[_OSF] = __expectString(output[_OSF]); } - if (output["ImportExistingResources"] !== undefined) { - contents.ImportExistingResources = __parseBoolean(output["ImportExistingResources"]); + if (output[_IER] != null) { + contents[_IER] = __parseBoolean(output[_IER]); } return contents; }; @@ -8462,8 +8441,8 @@ const de_DescribeOrganizationsAccessOutput = ( context: __SerdeContext ): DescribeOrganizationsAccessOutput => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -8473,17 +8452,17 @@ const de_DescribeOrganizationsAccessOutput = ( */ const de_DescribePublisherOutput = (output: any, context: __SerdeContext): DescribePublisherOutput => { const contents: any = {}; - if (output["PublisherId"] !== undefined) { - contents.PublisherId = __expectString(output["PublisherId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } - if (output["PublisherStatus"] !== undefined) { - contents.PublisherStatus = __expectString(output["PublisherStatus"]); + if (output[_PS] != null) { + contents[_PS] = __expectString(output[_PS]); } - if (output["IdentityProvider"] !== undefined) { - contents.IdentityProvider = __expectString(output["IdentityProvider"]); + if (output[_IPd] != null) { + contents[_IPd] = __expectString(output[_IPd]); } - if (output["PublisherProfile"] !== undefined) { - contents.PublisherProfile = __expectString(output["PublisherProfile"]); + if (output[_PP] != null) { + contents[_PP] = __expectString(output[_PP]); } return contents; }; @@ -8496,26 +8475,26 @@ const de_DescribeStackDriftDetectionStatusOutput = ( context: __SerdeContext ): DescribeStackDriftDetectionStatusOutput => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["StackDriftDetectionId"] !== undefined) { - contents.StackDriftDetectionId = __expectString(output["StackDriftDetectionId"]); + if (output[_SDDI] != null) { + contents[_SDDI] = __expectString(output[_SDDI]); } - if (output["StackDriftStatus"] !== undefined) { - contents.StackDriftStatus = __expectString(output["StackDriftStatus"]); + if (output[_SDS] != null) { + contents[_SDS] = __expectString(output[_SDS]); } - if (output["DetectionStatus"] !== undefined) { - contents.DetectionStatus = __expectString(output["DetectionStatus"]); + if (output[_DSet] != null) { + contents[_DSet] = __expectString(output[_DSet]); } - if (output["DetectionStatusReason"] !== undefined) { - contents.DetectionStatusReason = __expectString(output["DetectionStatusReason"]); + if (output[_DSRet] != null) { + contents[_DSRet] = __expectString(output[_DSRet]); } - if (output["DriftedStackResourceCount"] !== undefined) { - contents.DriftedStackResourceCount = __strictParseInt32(output["DriftedStackResourceCount"]) as number; + if (output[_DSRC] != null) { + contents[_DSRC] = __strictParseInt32(output[_DSRC]) as number; } - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } return contents; }; @@ -8526,12 +8505,12 @@ const de_DescribeStackDriftDetectionStatusOutput = ( const de_DescribeStackEventsOutput = (output: any, context: __SerdeContext): DescribeStackEventsOutput => { const contents: any = {}; if (output.StackEvents === "") { - contents.StackEvents = []; - } else if (output["StackEvents"] !== undefined && output["StackEvents"]["member"] !== undefined) { - contents.StackEvents = de_StackEvents(__getArrayIfSingleItem(output["StackEvents"]["member"]), context); + contents[_SE] = []; + } else if (output[_SE] != null && output[_SE][_m] != null) { + contents[_SE] = de_StackEvents(__getArrayIfSingleItem(output[_SE][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8541,8 +8520,8 @@ const de_DescribeStackEventsOutput = (output: any, context: __SerdeContext): Des */ const de_DescribeStackInstanceOutput = (output: any, context: __SerdeContext): DescribeStackInstanceOutput => { const contents: any = {}; - if (output["StackInstance"] !== undefined) { - contents.StackInstance = de_StackInstance(output["StackInstance"], context); + if (output[_SIta] != null) { + contents[_SIta] = de_StackInstance(output[_SIta], context); } return contents; }; @@ -8556,15 +8535,12 @@ const de_DescribeStackResourceDriftsOutput = ( ): DescribeStackResourceDriftsOutput => { const contents: any = {}; if (output.StackResourceDrifts === "") { - contents.StackResourceDrifts = []; - } else if (output["StackResourceDrifts"] !== undefined && output["StackResourceDrifts"]["member"] !== undefined) { - contents.StackResourceDrifts = de_StackResourceDrifts( - __getArrayIfSingleItem(output["StackResourceDrifts"]["member"]), - context - ); + contents[_SRD] = []; + } else if (output[_SRD] != null && output[_SRD][_m] != null) { + contents[_SRD] = de_StackResourceDrifts(__getArrayIfSingleItem(output[_SRD][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8574,8 +8550,8 @@ const de_DescribeStackResourceDriftsOutput = ( */ const de_DescribeStackResourceOutput = (output: any, context: __SerdeContext): DescribeStackResourceOutput => { const contents: any = {}; - if (output["StackResourceDetail"] !== undefined) { - contents.StackResourceDetail = de_StackResourceDetail(output["StackResourceDetail"], context); + if (output[_SRDt] != null) { + contents[_SRDt] = de_StackResourceDetail(output[_SRDt], context); } return contents; }; @@ -8586,9 +8562,9 @@ const de_DescribeStackResourceOutput = (output: any, context: __SerdeContext): D const de_DescribeStackResourcesOutput = (output: any, context: __SerdeContext): DescribeStackResourcesOutput => { const contents: any = {}; if (output.StackResources === "") { - contents.StackResources = []; - } else if (output["StackResources"] !== undefined && output["StackResources"]["member"] !== undefined) { - contents.StackResources = de_StackResources(__getArrayIfSingleItem(output["StackResources"]["member"]), context); + contents[_SRta] = []; + } else if (output[_SRta] != null && output[_SRta][_m] != null) { + contents[_SRta] = de_StackResources(__getArrayIfSingleItem(output[_SRta][_m]), context); } return contents; }; @@ -8598,8 +8574,8 @@ const de_DescribeStackResourcesOutput = (output: any, context: __SerdeContext): */ const de_DescribeStackSetOperationOutput = (output: any, context: __SerdeContext): DescribeStackSetOperationOutput => { const contents: any = {}; - if (output["StackSetOperation"] !== undefined) { - contents.StackSetOperation = de_StackSetOperation(output["StackSetOperation"], context); + if (output[_SSO] != null) { + contents[_SSO] = de_StackSetOperation(output[_SSO], context); } return contents; }; @@ -8609,8 +8585,8 @@ const de_DescribeStackSetOperationOutput = (output: any, context: __SerdeContext */ const de_DescribeStackSetOutput = (output: any, context: __SerdeContext): DescribeStackSetOutput => { const contents: any = {}; - if (output["StackSet"] !== undefined) { - contents.StackSet = de_StackSet(output["StackSet"], context); + if (output[_SS] != null) { + contents[_SS] = de_StackSet(output[_SS], context); } return contents; }; @@ -8621,12 +8597,12 @@ const de_DescribeStackSetOutput = (output: any, context: __SerdeContext): Descri const de_DescribeStacksOutput = (output: any, context: __SerdeContext): DescribeStacksOutput => { const contents: any = {}; if (output.Stacks === "") { - contents.Stacks = []; - } else if (output["Stacks"] !== undefined && output["Stacks"]["member"] !== undefined) { - contents.Stacks = de_Stacks(__getArrayIfSingleItem(output["Stacks"]["member"]), context); + contents[_St] = []; + } else if (output[_St] != null && output[_St][_m] != null) { + contents[_St] = de_Stacks(__getArrayIfSingleItem(output[_St][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8636,94 +8612,88 @@ const de_DescribeStacksOutput = (output: any, context: __SerdeContext): Describe */ const de_DescribeTypeOutput = (output: any, context: __SerdeContext): DescribeTypeOutput => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["TypeName"] !== undefined) { - contents.TypeName = __expectString(output["TypeName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["DefaultVersionId"] !== undefined) { - contents.DefaultVersionId = __expectString(output["DefaultVersionId"]); + if (output[_DVI] != null) { + contents[_DVI] = __expectString(output[_DVI]); } - if (output["IsDefaultVersion"] !== undefined) { - contents.IsDefaultVersion = __parseBoolean(output["IsDefaultVersion"]); + if (output[_IDV] != null) { + contents[_IDV] = __parseBoolean(output[_IDV]); } - if (output["TypeTestsStatus"] !== undefined) { - contents.TypeTestsStatus = __expectString(output["TypeTestsStatus"]); + if (output[_TTS] != null) { + contents[_TTS] = __expectString(output[_TTS]); } - if (output["TypeTestsStatusDescription"] !== undefined) { - contents.TypeTestsStatusDescription = __expectString(output["TypeTestsStatusDescription"]); + if (output[_TTSD] != null) { + contents[_TTSD] = __expectString(output[_TTSD]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Schema"] !== undefined) { - contents.Schema = __expectString(output["Schema"]); + if (output[_Sc] != null) { + contents[_Sc] = __expectString(output[_Sc]); } - if (output["ProvisioningType"] !== undefined) { - contents.ProvisioningType = __expectString(output["ProvisioningType"]); + if (output[_PTr] != null) { + contents[_PTr] = __expectString(output[_PTr]); } - if (output["DeprecatedStatus"] !== undefined) { - contents.DeprecatedStatus = __expectString(output["DeprecatedStatus"]); + if (output[_DSep] != null) { + contents[_DSep] = __expectString(output[_DSep]); } - if (output["LoggingConfig"] !== undefined) { - contents.LoggingConfig = de_LoggingConfig(output["LoggingConfig"], context); + if (output[_LC] != null) { + contents[_LC] = de_LoggingConfig(output[_LC], context); } if (output.RequiredActivatedTypes === "") { - contents.RequiredActivatedTypes = []; - } else if ( - output["RequiredActivatedTypes"] !== undefined && - output["RequiredActivatedTypes"]["member"] !== undefined - ) { - contents.RequiredActivatedTypes = de_RequiredActivatedTypes( - __getArrayIfSingleItem(output["RequiredActivatedTypes"]["member"]), - context - ); + contents[_RAT] = []; + } else if (output[_RAT] != null && output[_RAT][_m] != null) { + contents[_RAT] = de_RequiredActivatedTypes(__getArrayIfSingleItem(output[_RAT][_m]), context); } - if (output["ExecutionRoleArn"] !== undefined) { - contents.ExecutionRoleArn = __expectString(output["ExecutionRoleArn"]); + if (output[_ERA] != null) { + contents[_ERA] = __expectString(output[_ERA]); } - if (output["Visibility"] !== undefined) { - contents.Visibility = __expectString(output["Visibility"]); + if (output[_Vi] != null) { + contents[_Vi] = __expectString(output[_Vi]); } - if (output["SourceUrl"] !== undefined) { - contents.SourceUrl = __expectString(output["SourceUrl"]); + if (output[_SU] != null) { + contents[_SU] = __expectString(output[_SU]); } - if (output["DocumentationUrl"] !== undefined) { - contents.DocumentationUrl = __expectString(output["DocumentationUrl"]); + if (output[_DU] != null) { + contents[_DU] = __expectString(output[_DU]); } - if (output["LastUpdated"] !== undefined) { - contents.LastUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdated"])); + if (output[_LU] != null) { + contents[_LU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LU])); } - if (output["TimeCreated"] !== undefined) { - contents.TimeCreated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["TimeCreated"])); + if (output[_TCi] != null) { + contents[_TCi] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TCi])); } - if (output["ConfigurationSchema"] !== undefined) { - contents.ConfigurationSchema = __expectString(output["ConfigurationSchema"]); + if (output[_CSo] != null) { + contents[_CSo] = __expectString(output[_CSo]); } - if (output["PublisherId"] !== undefined) { - contents.PublisherId = __expectString(output["PublisherId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } - if (output["OriginalTypeName"] !== undefined) { - contents.OriginalTypeName = __expectString(output["OriginalTypeName"]); + if (output[_OTN] != null) { + contents[_OTN] = __expectString(output[_OTN]); } - if (output["OriginalTypeArn"] !== undefined) { - contents.OriginalTypeArn = __expectString(output["OriginalTypeArn"]); + if (output[_OTA] != null) { + contents[_OTA] = __expectString(output[_OTA]); } - if (output["PublicVersionNumber"] !== undefined) { - contents.PublicVersionNumber = __expectString(output["PublicVersionNumber"]); + if (output[_PVN] != null) { + contents[_PVN] = __expectString(output[_PVN]); } - if (output["LatestPublicVersion"] !== undefined) { - contents.LatestPublicVersion = __expectString(output["LatestPublicVersion"]); + if (output[_LPV] != null) { + contents[_LPV] = __expectString(output[_LPV]); } - if (output["IsActivated"] !== undefined) { - contents.IsActivated = __parseBoolean(output["IsActivated"]); + if (output[_IA] != null) { + contents[_IA] = __parseBoolean(output[_IA]); } - if (output["AutoUpdate"] !== undefined) { - contents.AutoUpdate = __parseBoolean(output["AutoUpdate"]); + if (output[_AU] != null) { + contents[_AU] = __parseBoolean(output[_AU]); } return contents; }; @@ -8733,17 +8703,17 @@ const de_DescribeTypeOutput = (output: any, context: __SerdeContext): DescribeTy */ const de_DescribeTypeRegistrationOutput = (output: any, context: __SerdeContext): DescribeTypeRegistrationOutput => { const contents: any = {}; - if (output["ProgressStatus"] !== undefined) { - contents.ProgressStatus = __expectString(output["ProgressStatus"]); + if (output[_PSr] != null) { + contents[_PSr] = __expectString(output[_PSr]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["TypeArn"] !== undefined) { - contents.TypeArn = __expectString(output["TypeArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["TypeVersionArn"] !== undefined) { - contents.TypeVersionArn = __expectString(output["TypeVersionArn"]); + if (output[_TVA] != null) { + contents[_TVA] = __expectString(output[_TVA]); } return contents; }; @@ -8753,8 +8723,8 @@ const de_DescribeTypeRegistrationOutput = (output: any, context: __SerdeContext) */ const de_DetectStackDriftOutput = (output: any, context: __SerdeContext): DetectStackDriftOutput => { const contents: any = {}; - if (output["StackDriftDetectionId"] !== undefined) { - contents.StackDriftDetectionId = __expectString(output["StackDriftDetectionId"]); + if (output[_SDDI] != null) { + contents[_SDDI] = __expectString(output[_SDDI]); } return contents; }; @@ -8764,8 +8734,8 @@ const de_DetectStackDriftOutput = (output: any, context: __SerdeContext): Detect */ const de_DetectStackResourceDriftOutput = (output: any, context: __SerdeContext): DetectStackResourceDriftOutput => { const contents: any = {}; - if (output["StackResourceDrift"] !== undefined) { - contents.StackResourceDrift = de_StackResourceDrift(output["StackResourceDrift"], context); + if (output[_SRDta] != null) { + contents[_SRDta] = de_StackResourceDrift(output[_SRDta], context); } return contents; }; @@ -8775,8 +8745,8 @@ const de_DetectStackResourceDriftOutput = (output: any, context: __SerdeContext) */ const de_DetectStackSetDriftOutput = (output: any, context: __SerdeContext): DetectStackSetDriftOutput => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -8786,8 +8756,8 @@ const de_DetectStackSetDriftOutput = (output: any, context: __SerdeContext): Det */ const de_EstimateTemplateCostOutput = (output: any, context: __SerdeContext): EstimateTemplateCostOutput => { const contents: any = {}; - if (output["Url"] !== undefined) { - contents.Url = __expectString(output["Url"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } return contents; }; @@ -8805,14 +8775,14 @@ const de_ExecuteChangeSetOutput = (output: any, context: __SerdeContext): Execut */ const de_Export = (output: any, context: __SerdeContext): Export => { const contents: any = {}; - if (output["ExportingStackId"] !== undefined) { - contents.ExportingStackId = __expectString(output["ExportingStackId"]); + if (output[_ESI] != null) { + contents[_ESI] = __expectString(output[_ESI]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -8833,8 +8803,8 @@ const de_Exports = (output: any, context: __SerdeContext): Export[] => { */ const de_GetStackPolicyOutput = (output: any, context: __SerdeContext): GetStackPolicyOutput => { const contents: any = {}; - if (output["StackPolicyBody"] !== undefined) { - contents.StackPolicyBody = __expectString(output["StackPolicyBody"]); + if (output[_SPB] != null) { + contents[_SPB] = __expectString(output[_SPB]); } return contents; }; @@ -8844,13 +8814,13 @@ const de_GetStackPolicyOutput = (output: any, context: __SerdeContext): GetStack */ const de_GetTemplateOutput = (output: any, context: __SerdeContext): GetTemplateOutput => { const contents: any = {}; - if (output["TemplateBody"] !== undefined) { - contents.TemplateBody = __expectString(output["TemplateBody"]); + if (output[_TB] != null) { + contents[_TB] = __expectString(output[_TB]); } if (output.StagesAvailable === "") { - contents.StagesAvailable = []; - } else if (output["StagesAvailable"] !== undefined && output["StagesAvailable"]["member"] !== undefined) { - contents.StagesAvailable = de_StageList(__getArrayIfSingleItem(output["StagesAvailable"]["member"]), context); + contents[_SA] = []; + } else if (output[_SA] != null && output[_SA][_m] != null) { + contents[_SA] = de_StageList(__getArrayIfSingleItem(output[_SA][_m]), context); } return contents; }; @@ -8861,53 +8831,44 @@ const de_GetTemplateOutput = (output: any, context: __SerdeContext): GetTemplate const de_GetTemplateSummaryOutput = (output: any, context: __SerdeContext): GetTemplateSummaryOutput => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["member"] !== undefined) { - contents.Parameters = de_ParameterDeclarations(__getArrayIfSingleItem(output["Parameters"]["member"]), context); + contents[_P] = []; + } else if (output[_P] != null && output[_P][_m] != null) { + contents[_P] = de_ParameterDeclarations(__getArrayIfSingleItem(output[_P][_m]), context); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.Capabilities === "") { - contents.Capabilities = []; - } else if (output["Capabilities"] !== undefined && output["Capabilities"]["member"] !== undefined) { - contents.Capabilities = de_Capabilities(__getArrayIfSingleItem(output["Capabilities"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } - if (output["CapabilitiesReason"] !== undefined) { - contents.CapabilitiesReason = __expectString(output["CapabilitiesReason"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } if (output.ResourceTypes === "") { - contents.ResourceTypes = []; - } else if (output["ResourceTypes"] !== undefined && output["ResourceTypes"]["member"] !== undefined) { - contents.ResourceTypes = de_ResourceTypes(__getArrayIfSingleItem(output["ResourceTypes"]["member"]), context); + contents[_RTe] = []; + } else if (output[_RTe] != null && output[_RTe][_m] != null) { + contents[_RTe] = de_ResourceTypes(__getArrayIfSingleItem(output[_RTe][_m]), context); } - if (output["Version"] !== undefined) { - contents.Version = __expectString(output["Version"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } - if (output["Metadata"] !== undefined) { - contents.Metadata = __expectString(output["Metadata"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } if (output.DeclaredTransforms === "") { - contents.DeclaredTransforms = []; - } else if (output["DeclaredTransforms"] !== undefined && output["DeclaredTransforms"]["member"] !== undefined) { - contents.DeclaredTransforms = de_TransformsList( - __getArrayIfSingleItem(output["DeclaredTransforms"]["member"]), - context - ); + contents[_DTec] = []; + } else if (output[_DTec] != null && output[_DTec][_m] != null) { + contents[_DTec] = de_TransformsList(__getArrayIfSingleItem(output[_DTec][_m]), context); } if (output.ResourceIdentifierSummaries === "") { - contents.ResourceIdentifierSummaries = []; - } else if ( - output["ResourceIdentifierSummaries"] !== undefined && - output["ResourceIdentifierSummaries"]["member"] !== undefined - ) { - contents.ResourceIdentifierSummaries = de_ResourceIdentifierSummaries( - __getArrayIfSingleItem(output["ResourceIdentifierSummaries"]["member"]), - context - ); + contents[_RIS] = []; + } else if (output[_RIS] != null && output[_RIS][_m] != null) { + contents[_RIS] = de_ResourceIdentifierSummaries(__getArrayIfSingleItem(output[_RIS][_m]), context); } - if (output["Warnings"] !== undefined) { - contents.Warnings = de_Warnings(output["Warnings"], context); + if (output[_W] != null) { + contents[_W] = de_Warnings(output[_W], context); } return contents; }; @@ -8928,8 +8889,8 @@ const de_Imports = (output: any, context: __SerdeContext): string[] => { */ const de_ImportStacksToStackSetOutput = (output: any, context: __SerdeContext): ImportStacksToStackSetOutput => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -8942,8 +8903,8 @@ const de_InsufficientCapabilitiesException = ( context: __SerdeContext ): InsufficientCapabilitiesException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8953,8 +8914,8 @@ const de_InsufficientCapabilitiesException = ( */ const de_InvalidChangeSetStatusException = (output: any, context: __SerdeContext): InvalidChangeSetStatusException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8964,8 +8925,8 @@ const de_InvalidChangeSetStatusException = (output: any, context: __SerdeContext */ const de_InvalidOperationException = (output: any, context: __SerdeContext): InvalidOperationException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8975,8 +8936,8 @@ const de_InvalidOperationException = (output: any, context: __SerdeContext): Inv */ const de_InvalidStateTransitionException = (output: any, context: __SerdeContext): InvalidStateTransitionException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8986,8 +8947,8 @@ const de_InvalidStateTransitionException = (output: any, context: __SerdeContext */ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -8998,12 +8959,12 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE const de_ListChangeSetsOutput = (output: any, context: __SerdeContext): ListChangeSetsOutput => { const contents: any = {}; if (output.Summaries === "") { - contents.Summaries = []; - } else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) { - contents.Summaries = de_ChangeSetSummaries(__getArrayIfSingleItem(output["Summaries"]["member"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_m] != null) { + contents[_Su] = de_ChangeSetSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9014,12 +8975,12 @@ const de_ListChangeSetsOutput = (output: any, context: __SerdeContext): ListChan const de_ListExportsOutput = (output: any, context: __SerdeContext): ListExportsOutput => { const contents: any = {}; if (output.Exports === "") { - contents.Exports = []; - } else if (output["Exports"] !== undefined && output["Exports"]["member"] !== undefined) { - contents.Exports = de_Exports(__getArrayIfSingleItem(output["Exports"]["member"]), context); + contents[_Ex] = []; + } else if (output[_Ex] != null && output[_Ex][_m] != null) { + contents[_Ex] = de_Exports(__getArrayIfSingleItem(output[_Ex][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9030,12 +8991,12 @@ const de_ListExportsOutput = (output: any, context: __SerdeContext): ListExports const de_ListImportsOutput = (output: any, context: __SerdeContext): ListImportsOutput => { const contents: any = {}; if (output.Imports === "") { - contents.Imports = []; - } else if (output["Imports"] !== undefined && output["Imports"]["member"] !== undefined) { - contents.Imports = de_Imports(__getArrayIfSingleItem(output["Imports"]["member"]), context); + contents[_Im] = []; + } else if (output[_Im] != null && output[_Im][_m] != null) { + contents[_Im] = de_Imports(__getArrayIfSingleItem(output[_Im][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9049,15 +9010,12 @@ const de_ListStackInstanceResourceDriftsOutput = ( ): ListStackInstanceResourceDriftsOutput => { const contents: any = {}; if (output.Summaries === "") { - contents.Summaries = []; - } else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) { - contents.Summaries = de_StackInstanceResourceDriftsSummaries( - __getArrayIfSingleItem(output["Summaries"]["member"]), - context - ); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_m] != null) { + contents[_Su] = de_StackInstanceResourceDriftsSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9068,12 +9026,12 @@ const de_ListStackInstanceResourceDriftsOutput = ( const de_ListStackInstancesOutput = (output: any, context: __SerdeContext): ListStackInstancesOutput => { const contents: any = {}; if (output.Summaries === "") { - contents.Summaries = []; - } else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) { - contents.Summaries = de_StackInstanceSummaries(__getArrayIfSingleItem(output["Summaries"]["member"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_m] != null) { + contents[_Su] = de_StackInstanceSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9084,18 +9042,12 @@ const de_ListStackInstancesOutput = (output: any, context: __SerdeContext): List const de_ListStackResourcesOutput = (output: any, context: __SerdeContext): ListStackResourcesOutput => { const contents: any = {}; if (output.StackResourceSummaries === "") { - contents.StackResourceSummaries = []; - } else if ( - output["StackResourceSummaries"] !== undefined && - output["StackResourceSummaries"]["member"] !== undefined - ) { - contents.StackResourceSummaries = de_StackResourceSummaries( - __getArrayIfSingleItem(output["StackResourceSummaries"]["member"]), - context - ); + contents[_SRS] = []; + } else if (output[_SRS] != null && output[_SRS][_m] != null) { + contents[_SRS] = de_StackResourceSummaries(__getArrayIfSingleItem(output[_SRS][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9109,15 +9061,12 @@ const de_ListStackSetOperationResultsOutput = ( ): ListStackSetOperationResultsOutput => { const contents: any = {}; if (output.Summaries === "") { - contents.Summaries = []; - } else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) { - contents.Summaries = de_StackSetOperationResultSummaries( - __getArrayIfSingleItem(output["Summaries"]["member"]), - context - ); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_m] != null) { + contents[_Su] = de_StackSetOperationResultSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9128,12 +9077,12 @@ const de_ListStackSetOperationResultsOutput = ( const de_ListStackSetOperationsOutput = (output: any, context: __SerdeContext): ListStackSetOperationsOutput => { const contents: any = {}; if (output.Summaries === "") { - contents.Summaries = []; - } else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) { - contents.Summaries = de_StackSetOperationSummaries(__getArrayIfSingleItem(output["Summaries"]["member"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_m] != null) { + contents[_Su] = de_StackSetOperationSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9144,12 +9093,12 @@ const de_ListStackSetOperationsOutput = (output: any, context: __SerdeContext): const de_ListStackSetsOutput = (output: any, context: __SerdeContext): ListStackSetsOutput => { const contents: any = {}; if (output.Summaries === "") { - contents.Summaries = []; - } else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) { - contents.Summaries = de_StackSetSummaries(__getArrayIfSingleItem(output["Summaries"]["member"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_m] != null) { + contents[_Su] = de_StackSetSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9160,12 +9109,12 @@ const de_ListStackSetsOutput = (output: any, context: __SerdeContext): ListStack const de_ListStacksOutput = (output: any, context: __SerdeContext): ListStacksOutput => { const contents: any = {}; if (output.StackSummaries === "") { - contents.StackSummaries = []; - } else if (output["StackSummaries"] !== undefined && output["StackSummaries"]["member"] !== undefined) { - contents.StackSummaries = de_StackSummaries(__getArrayIfSingleItem(output["StackSummaries"]["member"]), context); + contents[_SSt] = []; + } else if (output[_SSt] != null && output[_SSt][_m] != null) { + contents[_SSt] = de_StackSummaries(__getArrayIfSingleItem(output[_SSt][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9176,15 +9125,12 @@ const de_ListStacksOutput = (output: any, context: __SerdeContext): ListStacksOu const de_ListTypeRegistrationsOutput = (output: any, context: __SerdeContext): ListTypeRegistrationsOutput => { const contents: any = {}; if (output.RegistrationTokenList === "") { - contents.RegistrationTokenList = []; - } else if (output["RegistrationTokenList"] !== undefined && output["RegistrationTokenList"]["member"] !== undefined) { - contents.RegistrationTokenList = de_RegistrationTokenList( - __getArrayIfSingleItem(output["RegistrationTokenList"]["member"]), - context - ); + contents[_RTL] = []; + } else if (output[_RTL] != null && output[_RTL][_m] != null) { + contents[_RTL] = de_RegistrationTokenList(__getArrayIfSingleItem(output[_RTL][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9195,12 +9141,12 @@ const de_ListTypeRegistrationsOutput = (output: any, context: __SerdeContext): L const de_ListTypesOutput = (output: any, context: __SerdeContext): ListTypesOutput => { const contents: any = {}; if (output.TypeSummaries === "") { - contents.TypeSummaries = []; - } else if (output["TypeSummaries"] !== undefined && output["TypeSummaries"]["member"] !== undefined) { - contents.TypeSummaries = de_TypeSummaries(__getArrayIfSingleItem(output["TypeSummaries"]["member"]), context); + contents[_TSy] = []; + } else if (output[_TSy] != null && output[_TSy][_m] != null) { + contents[_TSy] = de_TypeSummaries(__getArrayIfSingleItem(output[_TSy][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9211,15 +9157,12 @@ const de_ListTypesOutput = (output: any, context: __SerdeContext): ListTypesOutp const de_ListTypeVersionsOutput = (output: any, context: __SerdeContext): ListTypeVersionsOutput => { const contents: any = {}; if (output.TypeVersionSummaries === "") { - contents.TypeVersionSummaries = []; - } else if (output["TypeVersionSummaries"] !== undefined && output["TypeVersionSummaries"]["member"] !== undefined) { - contents.TypeVersionSummaries = de_TypeVersionSummaries( - __getArrayIfSingleItem(output["TypeVersionSummaries"]["member"]), - context - ); + contents[_TVS] = []; + } else if (output[_TVS] != null && output[_TVS][_m] != null) { + contents[_TVS] = de_TypeVersionSummaries(__getArrayIfSingleItem(output[_TVS][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -9229,11 +9172,11 @@ const de_ListTypeVersionsOutput = (output: any, context: __SerdeContext): ListTy */ const de_LoggingConfig = (output: any, context: __SerdeContext): LoggingConfig => { const contents: any = {}; - if (output["LogRoleArn"] !== undefined) { - contents.LogRoleArn = __expectString(output["LogRoleArn"]); + if (output[_LRA] != null) { + contents[_LRA] = __expectString(output[_LRA]); } - if (output["LogGroupName"] !== undefined) { - contents.LogGroupName = __expectString(output["LogGroupName"]); + if (output[_LGN] != null) { + contents[_LGN] = __expectString(output[_LGN]); } return contents; }; @@ -9254,8 +9197,8 @@ const de_LogicalResourceIds = (output: any, context: __SerdeContext): string[] = */ const de_ManagedExecution = (output: any, context: __SerdeContext): ManagedExecution => { const contents: any = {}; - if (output["Active"] !== undefined) { - contents.Active = __parseBoolean(output["Active"]); + if (output[_Act] != null) { + contents[_Act] = __parseBoolean(output[_Act]); } return contents; }; @@ -9265,11 +9208,11 @@ const de_ManagedExecution = (output: any, context: __SerdeContext): ManagedExecu */ const de_ModuleInfo = (output: any, context: __SerdeContext): ModuleInfo => { const contents: any = {}; - if (output["TypeHierarchy"] !== undefined) { - contents.TypeHierarchy = __expectString(output["TypeHierarchy"]); + if (output[_TH] != null) { + contents[_TH] = __expectString(output[_TH]); } - if (output["LogicalIdHierarchy"] !== undefined) { - contents.LogicalIdHierarchy = __expectString(output["LogicalIdHierarchy"]); + if (output[_LIH] != null) { + contents[_LIH] = __expectString(output[_LIH]); } return contents; }; @@ -9279,8 +9222,8 @@ const de_ModuleInfo = (output: any, context: __SerdeContext): ModuleInfo => { */ const de_NameAlreadyExistsException = (output: any, context: __SerdeContext): NameAlreadyExistsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9304,8 +9247,8 @@ const de_OperationIdAlreadyExistsException = ( context: __SerdeContext ): OperationIdAlreadyExistsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9315,8 +9258,8 @@ const de_OperationIdAlreadyExistsException = ( */ const de_OperationInProgressException = (output: any, context: __SerdeContext): OperationInProgressException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9326,8 +9269,8 @@ const de_OperationInProgressException = (output: any, context: __SerdeContext): */ const de_OperationNotFoundException = (output: any, context: __SerdeContext): OperationNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9340,8 +9283,8 @@ const de_OperationStatusCheckFailedException = ( context: __SerdeContext ): OperationStatusCheckFailedException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9362,17 +9305,17 @@ const de_OrganizationalUnitIdList = (output: any, context: __SerdeContext): stri */ const de_Output = (output: any, context: __SerdeContext): Output => { const contents: any = {}; - if (output["OutputKey"] !== undefined) { - contents.OutputKey = __expectString(output["OutputKey"]); + if (output[_OK] != null) { + contents[_OK] = __expectString(output[_OK]); } - if (output["OutputValue"] !== undefined) { - contents.OutputValue = __expectString(output["OutputValue"]); + if (output[_OV] != null) { + contents[_OV] = __expectString(output[_OV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["ExportName"] !== undefined) { - contents.ExportName = __expectString(output["ExportName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } return contents; }; @@ -9393,17 +9336,17 @@ const de_Outputs = (output: any, context: __SerdeContext): Output[] => { */ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { const contents: any = {}; - if (output["ParameterKey"] !== undefined) { - contents.ParameterKey = __expectString(output["ParameterKey"]); + if (output[_PK] != null) { + contents[_PK] = __expectString(output[_PK]); } - if (output["ParameterValue"] !== undefined) { - contents.ParameterValue = __expectString(output["ParameterValue"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["UsePreviousValue"] !== undefined) { - contents.UsePreviousValue = __parseBoolean(output["UsePreviousValue"]); + if (output[_UPV] != null) { + contents[_UPV] = __parseBoolean(output[_UPV]); } - if (output["ResolvedValue"] !== undefined) { - contents.ResolvedValue = __expectString(output["ResolvedValue"]); + if (output[_RV] != null) { + contents[_RV] = __expectString(output[_RV]); } return contents; }; @@ -9414,9 +9357,9 @@ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { const de_ParameterConstraints = (output: any, context: __SerdeContext): ParameterConstraints => { const contents: any = {}; if (output.AllowedValues === "") { - contents.AllowedValues = []; - } else if (output["AllowedValues"] !== undefined && output["AllowedValues"]["member"] !== undefined) { - contents.AllowedValues = de_AllowedValues(__getArrayIfSingleItem(output["AllowedValues"]["member"]), context); + contents[_AV] = []; + } else if (output[_AV] != null && output[_AV][_m] != null) { + contents[_AV] = de_AllowedValues(__getArrayIfSingleItem(output[_AV][_m]), context); } return contents; }; @@ -9426,23 +9369,23 @@ const de_ParameterConstraints = (output: any, context: __SerdeContext): Paramete */ const de_ParameterDeclaration = (output: any, context: __SerdeContext): ParameterDeclaration => { const contents: any = {}; - if (output["ParameterKey"] !== undefined) { - contents.ParameterKey = __expectString(output["ParameterKey"]); + if (output[_PK] != null) { + contents[_PK] = __expectString(output[_PK]); } - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["ParameterType"] !== undefined) { - contents.ParameterType = __expectString(output["ParameterType"]); + if (output[_PTa] != null) { + contents[_PTa] = __expectString(output[_PTa]); } - if (output["NoEcho"] !== undefined) { - contents.NoEcho = __parseBoolean(output["NoEcho"]); + if (output[_NE] != null) { + contents[_NE] = __parseBoolean(output[_NE]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["ParameterConstraints"] !== undefined) { - contents.ParameterConstraints = de_ParameterConstraints(output["ParameterConstraints"], context); + if (output[_PC] != null) { + contents[_PC] = de_ParameterConstraints(output[_PC], context); } return contents; }; @@ -9491,11 +9434,11 @@ const de_PhysicalResourceIdContextKeyValuePair = ( context: __SerdeContext ): PhysicalResourceIdContextKeyValuePair => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -9505,17 +9448,17 @@ const de_PhysicalResourceIdContextKeyValuePair = ( */ const de_PropertyDifference = (output: any, context: __SerdeContext): PropertyDifference => { const contents: any = {}; - if (output["PropertyPath"] !== undefined) { - contents.PropertyPath = __expectString(output["PropertyPath"]); + if (output[_PPr] != null) { + contents[_PPr] = __expectString(output[_PPr]); } - if (output["ExpectedValue"] !== undefined) { - contents.ExpectedValue = __expectString(output["ExpectedValue"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["ActualValue"] !== undefined) { - contents.ActualValue = __expectString(output["ActualValue"]); + if (output[_AVc] != null) { + contents[_AVc] = __expectString(output[_AVc]); } - if (output["DifferenceType"] !== undefined) { - contents.DifferenceType = __expectString(output["DifferenceType"]); + if (output[_DTi] != null) { + contents[_DTi] = __expectString(output[_DTi]); } return contents; }; @@ -9536,8 +9479,8 @@ const de_PropertyDifferences = (output: any, context: __SerdeContext): PropertyD */ const de_PublishTypeOutput = (output: any, context: __SerdeContext): PublishTypeOutput => { const contents: any = {}; - if (output["PublicTypeArn"] !== undefined) { - contents.PublicTypeArn = __expectString(output["PublicTypeArn"]); + if (output[_PTA] != null) { + contents[_PTA] = __expectString(output[_PTA]); } return contents; }; @@ -9566,8 +9509,8 @@ const de_RegionList = (output: any, context: __SerdeContext): string[] => { */ const de_RegisterPublisherOutput = (output: any, context: __SerdeContext): RegisterPublisherOutput => { const contents: any = {}; - if (output["PublisherId"] !== undefined) { - contents.PublisherId = __expectString(output["PublisherId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } return contents; }; @@ -9577,8 +9520,8 @@ const de_RegisterPublisherOutput = (output: any, context: __SerdeContext): Regis */ const de_RegisterTypeOutput = (output: any, context: __SerdeContext): RegisterTypeOutput => { const contents: any = {}; - if (output["RegistrationToken"] !== undefined) { - contents.RegistrationToken = __expectString(output["RegistrationToken"]); + if (output[_RTeg] != null) { + contents[_RTeg] = __expectString(output[_RTeg]); } return contents; }; @@ -9599,25 +9542,19 @@ const de_RegistrationTokenList = (output: any, context: __SerdeContext): string[ */ const de_RequiredActivatedType = (output: any, context: __SerdeContext): RequiredActivatedType => { const contents: any = {}; - if (output["TypeNameAlias"] !== undefined) { - contents.TypeNameAlias = __expectString(output["TypeNameAlias"]); + if (output[_TNA] != null) { + contents[_TNA] = __expectString(output[_TNA]); } - if (output["OriginalTypeName"] !== undefined) { - contents.OriginalTypeName = __expectString(output["OriginalTypeName"]); + if (output[_OTN] != null) { + contents[_OTN] = __expectString(output[_OTN]); } - if (output["PublisherId"] !== undefined) { - contents.PublisherId = __expectString(output["PublisherId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } if (output.SupportedMajorVersions === "") { - contents.SupportedMajorVersions = []; - } else if ( - output["SupportedMajorVersions"] !== undefined && - output["SupportedMajorVersions"]["member"] !== undefined - ) { - contents.SupportedMajorVersions = de_SupportedMajorVersions( - __getArrayIfSingleItem(output["SupportedMajorVersions"]["member"]), - context - ); + contents[_SMV] = []; + } else if (output[_SMV] != null && output[_SMV][_m] != null) { + contents[_SMV] = de_SupportedMajorVersions(__getArrayIfSingleItem(output[_SMV][_m]), context); } return contents; }; @@ -9638,36 +9575,36 @@ const de_RequiredActivatedTypes = (output: any, context: __SerdeContext): Requir */ const de_ResourceChange = (output: any, context: __SerdeContext): ResourceChange => { const contents: any = {}; - if (output["Action"] !== undefined) { - contents.Action = __expectString(output["Action"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["PhysicalResourceId"] !== undefined) { - contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]); + if (output[_PRI] != null) { + contents[_PRI] = __expectString(output[_PRI]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["Replacement"] !== undefined) { - contents.Replacement = __expectString(output["Replacement"]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } if (output.Scope === "") { - contents.Scope = []; - } else if (output["Scope"] !== undefined && output["Scope"]["member"] !== undefined) { - contents.Scope = de_Scope(__getArrayIfSingleItem(output["Scope"]["member"]), context); + contents[_Sco] = []; + } else if (output[_Sco] != null && output[_Sco][_m] != null) { + contents[_Sco] = de_Scope(__getArrayIfSingleItem(output[_Sco][_m]), context); } if (output.Details === "") { - contents.Details = []; - } else if (output["Details"] !== undefined && output["Details"]["member"] !== undefined) { - contents.Details = de_ResourceChangeDetails(__getArrayIfSingleItem(output["Details"]["member"]), context); + contents[_De] = []; + } else if (output[_De] != null && output[_De][_m] != null) { + contents[_De] = de_ResourceChangeDetails(__getArrayIfSingleItem(output[_De][_m]), context); } - if (output["ChangeSetId"] !== undefined) { - contents.ChangeSetId = __expectString(output["ChangeSetId"]); + if (output[_CSIh] != null) { + contents[_CSIh] = __expectString(output[_CSIh]); } - if (output["ModuleInfo"] !== undefined) { - contents.ModuleInfo = de_ModuleInfo(output["ModuleInfo"], context); + if (output[_MI] != null) { + contents[_MI] = de_ModuleInfo(output[_MI], context); } return contents; }; @@ -9677,17 +9614,17 @@ const de_ResourceChange = (output: any, context: __SerdeContext): ResourceChange */ const de_ResourceChangeDetail = (output: any, context: __SerdeContext): ResourceChangeDetail => { const contents: any = {}; - if (output["Target"] !== undefined) { - contents.Target = de_ResourceTargetDefinition(output["Target"], context); + if (output[_Tar] != null) { + contents[_Tar] = de_ResourceTargetDefinition(output[_Tar], context); } - if (output["Evaluation"] !== undefined) { - contents.Evaluation = __expectString(output["Evaluation"]); + if (output[_Ev] != null) { + contents[_Ev] = __expectString(output[_Ev]); } - if (output["ChangeSource"] !== undefined) { - contents.ChangeSource = __expectString(output["ChangeSource"]); + if (output[_CSh] != null) { + contents[_CSh] = __expectString(output[_CSh]); } - if (output["CausingEntity"] !== undefined) { - contents.CausingEntity = __expectString(output["CausingEntity"]); + if (output[_CE] != null) { + contents[_CE] = __expectString(output[_CE]); } return contents; }; @@ -9730,24 +9667,18 @@ const de_ResourceIdentifierSummaries = (output: any, context: __SerdeContext): R */ const de_ResourceIdentifierSummary = (output: any, context: __SerdeContext): ResourceIdentifierSummary => { const contents: any = {}; - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } if (output.LogicalResourceIds === "") { - contents.LogicalResourceIds = []; - } else if (output["LogicalResourceIds"] !== undefined && output["LogicalResourceIds"]["member"] !== undefined) { - contents.LogicalResourceIds = de_LogicalResourceIds( - __getArrayIfSingleItem(output["LogicalResourceIds"]["member"]), - context - ); + contents[_LRIo] = []; + } else if (output[_LRIo] != null && output[_LRIo][_m] != null) { + contents[_LRIo] = de_LogicalResourceIds(__getArrayIfSingleItem(output[_LRIo][_m]), context); } if (output.ResourceIdentifiers === "") { - contents.ResourceIdentifiers = []; - } else if (output["ResourceIdentifiers"] !== undefined && output["ResourceIdentifiers"]["member"] !== undefined) { - contents.ResourceIdentifiers = de_ResourceIdentifiers( - __getArrayIfSingleItem(output["ResourceIdentifiers"]["member"]), - context - ); + contents[_RIe] = []; + } else if (output[_RIe] != null && output[_RIe][_m] != null) { + contents[_RIe] = de_ResourceIdentifiers(__getArrayIfSingleItem(output[_RIe][_m]), context); } return contents; }; @@ -9757,14 +9688,14 @@ const de_ResourceIdentifierSummary = (output: any, context: __SerdeContext): Res */ const de_ResourceTargetDefinition = (output: any, context: __SerdeContext): ResourceTargetDefinition => { const contents: any = {}; - if (output["Attribute"] !== undefined) { - contents.Attribute = __expectString(output["Attribute"]); + if (output[_At] != null) { + contents[_At] = __expectString(output[_At]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["RequiresRecreation"] !== undefined) { - contents.RequiresRecreation = __expectString(output["RequiresRecreation"]); + if (output[_RRe] != null) { + contents[_RRe] = __expectString(output[_RRe]); } return contents; }; @@ -9786,15 +9717,12 @@ const de_ResourceTypes = (output: any, context: __SerdeContext): string[] => { const de_RollbackConfiguration = (output: any, context: __SerdeContext): RollbackConfiguration => { const contents: any = {}; if (output.RollbackTriggers === "") { - contents.RollbackTriggers = []; - } else if (output["RollbackTriggers"] !== undefined && output["RollbackTriggers"]["member"] !== undefined) { - contents.RollbackTriggers = de_RollbackTriggers( - __getArrayIfSingleItem(output["RollbackTriggers"]["member"]), - context - ); + contents[_RTo] = []; + } else if (output[_RTo] != null && output[_RTo][_m] != null) { + contents[_RTo] = de_RollbackTriggers(__getArrayIfSingleItem(output[_RTo][_m]), context); } - if (output["MonitoringTimeInMinutes"] !== undefined) { - contents.MonitoringTimeInMinutes = __strictParseInt32(output["MonitoringTimeInMinutes"]) as number; + if (output[_MTIM] != null) { + contents[_MTIM] = __strictParseInt32(output[_MTIM]) as number; } return contents; }; @@ -9804,8 +9732,8 @@ const de_RollbackConfiguration = (output: any, context: __SerdeContext): Rollbac */ const de_RollbackStackOutput = (output: any, context: __SerdeContext): RollbackStackOutput => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -9815,11 +9743,11 @@ const de_RollbackStackOutput = (output: any, context: __SerdeContext): RollbackS */ const de_RollbackTrigger = (output: any, context: __SerdeContext): RollbackTrigger => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } return contents; }; @@ -9851,8 +9779,8 @@ const de_Scope = (output: any, context: __SerdeContext): ResourceAttribute[] => */ const de_SetTypeConfigurationOutput = (output: any, context: __SerdeContext): SetTypeConfigurationOutput => { const contents: any = {}; - if (output["ConfigurationArn"] !== undefined) { - contents.ConfigurationArn = __expectString(output["ConfigurationArn"]); + if (output[_CAonf] != null) { + contents[_CAonf] = __expectString(output[_CAonf]); } return contents; }; @@ -9870,87 +9798,84 @@ const de_SetTypeDefaultVersionOutput = (output: any, context: __SerdeContext): S */ const de_Stack = (output: any, context: __SerdeContext): Stack => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["ChangeSetId"] !== undefined) { - contents.ChangeSetId = __expectString(output["ChangeSetId"]); + if (output[_CSIh] != null) { + contents[_CSIh] = __expectString(output[_CSIh]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["member"] !== undefined) { - contents.Parameters = de_Parameters(__getArrayIfSingleItem(output["Parameters"]["member"]), context); + contents[_P] = []; + } else if (output[_P] != null && output[_P][_m] != null) { + contents[_P] = de_Parameters(__getArrayIfSingleItem(output[_P][_m]), context); } - if (output["CreationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["DeletionTime"] !== undefined) { - contents.DeletionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DeletionTime"])); + if (output[_DTel] != null) { + contents[_DTel] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DTel])); } - if (output["LastUpdatedTime"] !== undefined) { - contents.LastUpdatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdatedTime"])); + if (output[_LUT] != null) { + contents[_LUT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUT])); } - if (output["RollbackConfiguration"] !== undefined) { - contents.RollbackConfiguration = de_RollbackConfiguration(output["RollbackConfiguration"], context); + if (output[_RC] != null) { + contents[_RC] = de_RollbackConfiguration(output[_RC], context); } - if (output["StackStatus"] !== undefined) { - contents.StackStatus = __expectString(output["StackStatus"]); + if (output[_SSta] != null) { + contents[_SSta] = __expectString(output[_SSta]); } - if (output["StackStatusReason"] !== undefined) { - contents.StackStatusReason = __expectString(output["StackStatusReason"]); + if (output[_SSR] != null) { + contents[_SSR] = __expectString(output[_SSR]); } - if (output["DisableRollback"] !== undefined) { - contents.DisableRollback = __parseBoolean(output["DisableRollback"]); + if (output[_DR] != null) { + contents[_DR] = __parseBoolean(output[_DR]); } if (output.NotificationARNs === "") { - contents.NotificationARNs = []; - } else if (output["NotificationARNs"] !== undefined && output["NotificationARNs"]["member"] !== undefined) { - contents.NotificationARNs = de_NotificationARNs( - __getArrayIfSingleItem(output["NotificationARNs"]["member"]), - context - ); + contents[_NARN] = []; + } else if (output[_NARN] != null && output[_NARN][_m] != null) { + contents[_NARN] = de_NotificationARNs(__getArrayIfSingleItem(output[_NARN][_m]), context); } - if (output["TimeoutInMinutes"] !== undefined) { - contents.TimeoutInMinutes = __strictParseInt32(output["TimeoutInMinutes"]) as number; + if (output[_TIM] != null) { + contents[_TIM] = __strictParseInt32(output[_TIM]) as number; } if (output.Capabilities === "") { - contents.Capabilities = []; - } else if (output["Capabilities"] !== undefined && output["Capabilities"]["member"] !== undefined) { - contents.Capabilities = de_Capabilities(__getArrayIfSingleItem(output["Capabilities"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } if (output.Outputs === "") { - contents.Outputs = []; - } else if (output["Outputs"] !== undefined && output["Outputs"]["member"] !== undefined) { - contents.Outputs = de_Outputs(__getArrayIfSingleItem(output["Outputs"]["member"]), context); + contents[_O] = []; + } else if (output[_O] != null && output[_O][_m] != null) { + contents[_O] = de_Outputs(__getArrayIfSingleItem(output[_O][_m]), context); } - if (output["RoleARN"] !== undefined) { - contents.RoleARN = __expectString(output["RoleARN"]); + if (output[_RARN] != null) { + contents[_RARN] = __expectString(output[_RARN]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_Tags(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_Ta] = []; + } else if (output[_Ta] != null && output[_Ta][_m] != null) { + contents[_Ta] = de_Tags(__getArrayIfSingleItem(output[_Ta][_m]), context); } - if (output["EnableTerminationProtection"] !== undefined) { - contents.EnableTerminationProtection = __parseBoolean(output["EnableTerminationProtection"]); + if (output[_ETP] != null) { + contents[_ETP] = __parseBoolean(output[_ETP]); } - if (output["ParentId"] !== undefined) { - contents.ParentId = __expectString(output["ParentId"]); + if (output[_PIa] != null) { + contents[_PIa] = __expectString(output[_PIa]); } - if (output["RootId"] !== undefined) { - contents.RootId = __expectString(output["RootId"]); + if (output[_RIo] != null) { + contents[_RIo] = __expectString(output[_RIo]); } - if (output["DriftInformation"] !== undefined) { - contents.DriftInformation = de_StackDriftInformation(output["DriftInformation"], context); + if (output[_DI] != null) { + contents[_DI] = de_StackDriftInformation(output[_DI], context); } - if (output["RetainExceptOnCreate"] !== undefined) { - contents.RetainExceptOnCreate = __parseBoolean(output["RetainExceptOnCreate"]); + if (output[_REOC] != null) { + contents[_REOC] = __parseBoolean(output[_REOC]); } return contents; }; @@ -9960,11 +9885,11 @@ const de_Stack = (output: any, context: __SerdeContext): Stack => { */ const de_StackDriftInformation = (output: any, context: __SerdeContext): StackDriftInformation => { const contents: any = {}; - if (output["StackDriftStatus"] !== undefined) { - contents.StackDriftStatus = __expectString(output["StackDriftStatus"]); + if (output[_SDS] != null) { + contents[_SDS] = __expectString(output[_SDS]); } - if (output["LastCheckTimestamp"] !== undefined) { - contents.LastCheckTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastCheckTimestamp"])); + if (output[_LCT] != null) { + contents[_LCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LCT])); } return contents; }; @@ -9974,11 +9899,11 @@ const de_StackDriftInformation = (output: any, context: __SerdeContext): StackDr */ const de_StackDriftInformationSummary = (output: any, context: __SerdeContext): StackDriftInformationSummary => { const contents: any = {}; - if (output["StackDriftStatus"] !== undefined) { - contents.StackDriftStatus = __expectString(output["StackDriftStatus"]); + if (output[_SDS] != null) { + contents[_SDS] = __expectString(output[_SDS]); } - if (output["LastCheckTimestamp"] !== undefined) { - contents.LastCheckTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastCheckTimestamp"])); + if (output[_LCT] != null) { + contents[_LCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LCT])); } return contents; }; @@ -9988,53 +9913,53 @@ const de_StackDriftInformationSummary = (output: any, context: __SerdeContext): */ const de_StackEvent = (output: any, context: __SerdeContext): StackEvent => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["EventId"] !== undefined) { - contents.EventId = __expectString(output["EventId"]); + if (output[_EI] != null) { + contents[_EI] = __expectString(output[_EI]); } - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["PhysicalResourceId"] !== undefined) { - contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]); + if (output[_PRI] != null) { + contents[_PRI] = __expectString(output[_PRI]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["ResourceStatus"] !== undefined) { - contents.ResourceStatus = __expectString(output["ResourceStatus"]); + if (output[_RSes] != null) { + contents[_RSes] = __expectString(output[_RSes]); } - if (output["ResourceStatusReason"] !== undefined) { - contents.ResourceStatusReason = __expectString(output["ResourceStatusReason"]); + if (output[_RSR] != null) { + contents[_RSR] = __expectString(output[_RSR]); } - if (output["ResourceProperties"] !== undefined) { - contents.ResourceProperties = __expectString(output["ResourceProperties"]); + if (output[_RPe] != null) { + contents[_RPe] = __expectString(output[_RPe]); } - if (output["ClientRequestToken"] !== undefined) { - contents.ClientRequestToken = __expectString(output["ClientRequestToken"]); + if (output[_CRT] != null) { + contents[_CRT] = __expectString(output[_CRT]); } - if (output["HookType"] !== undefined) { - contents.HookType = __expectString(output["HookType"]); + if (output[_HT] != null) { + contents[_HT] = __expectString(output[_HT]); } - if (output["HookStatus"] !== undefined) { - contents.HookStatus = __expectString(output["HookStatus"]); + if (output[_HS] != null) { + contents[_HS] = __expectString(output[_HS]); } - if (output["HookStatusReason"] !== undefined) { - contents.HookStatusReason = __expectString(output["HookStatusReason"]); + if (output[_HSR] != null) { + contents[_HSR] = __expectString(output[_HSR]); } - if (output["HookInvocationPoint"] !== undefined) { - contents.HookInvocationPoint = __expectString(output["HookInvocationPoint"]); + if (output[_HIP] != null) { + contents[_HIP] = __expectString(output[_HIP]); } - if (output["HookFailureMode"] !== undefined) { - contents.HookFailureMode = __expectString(output["HookFailureMode"]); + if (output[_HFM] != null) { + contents[_HFM] = __expectString(output[_HFM]); } return contents; }; @@ -10055,48 +9980,43 @@ const de_StackEvents = (output: any, context: __SerdeContext): StackEvent[] => { */ const de_StackInstance = (output: any, context: __SerdeContext): StackInstance => { const contents: any = {}; - if (output["StackSetId"] !== undefined) { - contents.StackSetId = __expectString(output["StackSetId"]); + if (output[_SSI] != null) { + contents[_SSI] = __expectString(output[_SSI]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Reg] != null) { + contents[_Reg] = __expectString(output[_Reg]); } - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); + if (output[_Acc] != null) { + contents[_Acc] = __expectString(output[_Acc]); } - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } if (output.ParameterOverrides === "") { - contents.ParameterOverrides = []; - } else if (output["ParameterOverrides"] !== undefined && output["ParameterOverrides"]["member"] !== undefined) { - contents.ParameterOverrides = de_Parameters( - __getArrayIfSingleItem(output["ParameterOverrides"]["member"]), - context - ); + contents[_PO] = []; + } else if (output[_PO] != null && output[_PO][_m] != null) { + contents[_PO] = de_Parameters(__getArrayIfSingleItem(output[_PO][_m]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["StackInstanceStatus"] !== undefined) { - contents.StackInstanceStatus = de_StackInstanceComprehensiveStatus(output["StackInstanceStatus"], context); + if (output[_SIS] != null) { + contents[_SIS] = de_StackInstanceComprehensiveStatus(output[_SIS], context); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["OrganizationalUnitId"] !== undefined) { - contents.OrganizationalUnitId = __expectString(output["OrganizationalUnitId"]); + if (output[_OUIr] != null) { + contents[_OUIr] = __expectString(output[_OUIr]); } - if (output["DriftStatus"] !== undefined) { - contents.DriftStatus = __expectString(output["DriftStatus"]); + if (output[_DSr] != null) { + contents[_DSr] = __expectString(output[_DSr]); } - if (output["LastDriftCheckTimestamp"] !== undefined) { - contents.LastDriftCheckTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["LastDriftCheckTimestamp"]) - ); + if (output[_LDCT] != null) { + contents[_LDCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LDCT])); } - if (output["LastOperationId"] !== undefined) { - contents.LastOperationId = __expectString(output["LastOperationId"]); + if (output[_LOI] != null) { + contents[_LOI] = __expectString(output[_LOI]); } return contents; }; @@ -10109,8 +10029,8 @@ const de_StackInstanceComprehensiveStatus = ( context: __SerdeContext ): StackInstanceComprehensiveStatus => { const contents: any = {}; - if (output["DetailedStatus"] !== undefined) { - contents.DetailedStatus = __expectString(output["DetailedStatus"]); + if (output[_DSeta] != null) { + contents[_DSeta] = __expectString(output[_DSeta]); } return contents; }; @@ -10120,8 +10040,8 @@ const de_StackInstanceComprehensiveStatus = ( */ const de_StackInstanceNotFoundException = (output: any, context: __SerdeContext): StackInstanceNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -10148,42 +10068,33 @@ const de_StackInstanceResourceDriftsSummary = ( context: __SerdeContext ): StackInstanceResourceDriftsSummary => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["PhysicalResourceId"] !== undefined) { - contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]); + if (output[_PRI] != null) { + contents[_PRI] = __expectString(output[_PRI]); } if (output.PhysicalResourceIdContext === "") { - contents.PhysicalResourceIdContext = []; - } else if ( - output["PhysicalResourceIdContext"] !== undefined && - output["PhysicalResourceIdContext"]["member"] !== undefined - ) { - contents.PhysicalResourceIdContext = de_PhysicalResourceIdContext( - __getArrayIfSingleItem(output["PhysicalResourceIdContext"]["member"]), - context - ); - } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + contents[_PRIC] = []; + } else if (output[_PRIC] != null && output[_PRIC][_m] != null) { + contents[_PRIC] = de_PhysicalResourceIdContext(__getArrayIfSingleItem(output[_PRIC][_m]), context); + } + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } if (output.PropertyDifferences === "") { - contents.PropertyDifferences = []; - } else if (output["PropertyDifferences"] !== undefined && output["PropertyDifferences"]["member"] !== undefined) { - contents.PropertyDifferences = de_PropertyDifferences( - __getArrayIfSingleItem(output["PropertyDifferences"]["member"]), - context - ); + contents[_PD] = []; + } else if (output[_PD] != null && output[_PD][_m] != null) { + contents[_PD] = de_PropertyDifferences(__getArrayIfSingleItem(output[_PD][_m]), context); } - if (output["StackResourceDriftStatus"] !== undefined) { - contents.StackResourceDriftStatus = __expectString(output["StackResourceDriftStatus"]); + if (output[_SRDS] != null) { + contents[_SRDS] = __expectString(output[_SRDS]); } - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } return contents; }; @@ -10204,40 +10115,38 @@ const de_StackInstanceSummaries = (output: any, context: __SerdeContext): StackI */ const de_StackInstanceSummary = (output: any, context: __SerdeContext): StackInstanceSummary => { const contents: any = {}; - if (output["StackSetId"] !== undefined) { - contents.StackSetId = __expectString(output["StackSetId"]); + if (output[_SSI] != null) { + contents[_SSI] = __expectString(output[_SSI]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Reg] != null) { + contents[_Reg] = __expectString(output[_Reg]); } - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); + if (output[_Acc] != null) { + contents[_Acc] = __expectString(output[_Acc]); } - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["StackInstanceStatus"] !== undefined) { - contents.StackInstanceStatus = de_StackInstanceComprehensiveStatus(output["StackInstanceStatus"], context); + if (output[_SIS] != null) { + contents[_SIS] = de_StackInstanceComprehensiveStatus(output[_SIS], context); } - if (output["OrganizationalUnitId"] !== undefined) { - contents.OrganizationalUnitId = __expectString(output["OrganizationalUnitId"]); + if (output[_OUIr] != null) { + contents[_OUIr] = __expectString(output[_OUIr]); } - if (output["DriftStatus"] !== undefined) { - contents.DriftStatus = __expectString(output["DriftStatus"]); + if (output[_DSr] != null) { + contents[_DSr] = __expectString(output[_DSr]); } - if (output["LastDriftCheckTimestamp"] !== undefined) { - contents.LastDriftCheckTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["LastDriftCheckTimestamp"]) - ); + if (output[_LDCT] != null) { + contents[_LDCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LDCT])); } - if (output["LastOperationId"] !== undefined) { - contents.LastOperationId = __expectString(output["LastOperationId"]); + if (output[_LOI] != null) { + contents[_LOI] = __expectString(output[_LOI]); } return contents; }; @@ -10247,8 +10156,8 @@ const de_StackInstanceSummary = (output: any, context: __SerdeContext): StackIns */ const de_StackNotFoundException = (output: any, context: __SerdeContext): StackNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -10258,38 +10167,38 @@ const de_StackNotFoundException = (output: any, context: __SerdeContext): StackN */ const de_StackResource = (output: any, context: __SerdeContext): StackResource => { const contents: any = {}; - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["PhysicalResourceId"] !== undefined) { - contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]); + if (output[_PRI] != null) { + contents[_PRI] = __expectString(output[_PRI]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["ResourceStatus"] !== undefined) { - contents.ResourceStatus = __expectString(output["ResourceStatus"]); + if (output[_RSes] != null) { + contents[_RSes] = __expectString(output[_RSes]); } - if (output["ResourceStatusReason"] !== undefined) { - contents.ResourceStatusReason = __expectString(output["ResourceStatusReason"]); + if (output[_RSR] != null) { + contents[_RSR] = __expectString(output[_RSR]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DriftInformation"] !== undefined) { - contents.DriftInformation = de_StackResourceDriftInformation(output["DriftInformation"], context); + if (output[_DI] != null) { + contents[_DI] = de_StackResourceDriftInformation(output[_DI], context); } - if (output["ModuleInfo"] !== undefined) { - contents.ModuleInfo = de_ModuleInfo(output["ModuleInfo"], context); + if (output[_MI] != null) { + contents[_MI] = de_ModuleInfo(output[_MI], context); } return contents; }; @@ -10299,41 +10208,41 @@ const de_StackResource = (output: any, context: __SerdeContext): StackResource = */ const de_StackResourceDetail = (output: any, context: __SerdeContext): StackResourceDetail => { const contents: any = {}; - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["PhysicalResourceId"] !== undefined) { - contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]); + if (output[_PRI] != null) { + contents[_PRI] = __expectString(output[_PRI]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["LastUpdatedTimestamp"] !== undefined) { - contents.LastUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdatedTimestamp"])); + if (output[_LUTa] != null) { + contents[_LUTa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUTa])); } - if (output["ResourceStatus"] !== undefined) { - contents.ResourceStatus = __expectString(output["ResourceStatus"]); + if (output[_RSes] != null) { + contents[_RSes] = __expectString(output[_RSes]); } - if (output["ResourceStatusReason"] !== undefined) { - contents.ResourceStatusReason = __expectString(output["ResourceStatusReason"]); + if (output[_RSR] != null) { + contents[_RSR] = __expectString(output[_RSR]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Metadata"] !== undefined) { - contents.Metadata = __expectString(output["Metadata"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["DriftInformation"] !== undefined) { - contents.DriftInformation = de_StackResourceDriftInformation(output["DriftInformation"], context); + if (output[_DI] != null) { + contents[_DI] = de_StackResourceDriftInformation(output[_DI], context); } - if (output["ModuleInfo"] !== undefined) { - contents.ModuleInfo = de_ModuleInfo(output["ModuleInfo"], context); + if (output[_MI] != null) { + contents[_MI] = de_ModuleInfo(output[_MI], context); } return contents; }; @@ -10343,51 +10252,42 @@ const de_StackResourceDetail = (output: any, context: __SerdeContext): StackReso */ const de_StackResourceDrift = (output: any, context: __SerdeContext): StackResourceDrift => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["PhysicalResourceId"] !== undefined) { - contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]); + if (output[_PRI] != null) { + contents[_PRI] = __expectString(output[_PRI]); } if (output.PhysicalResourceIdContext === "") { - contents.PhysicalResourceIdContext = []; - } else if ( - output["PhysicalResourceIdContext"] !== undefined && - output["PhysicalResourceIdContext"]["member"] !== undefined - ) { - contents.PhysicalResourceIdContext = de_PhysicalResourceIdContext( - __getArrayIfSingleItem(output["PhysicalResourceIdContext"]["member"]), - context - ); + contents[_PRIC] = []; + } else if (output[_PRIC] != null && output[_PRIC][_m] != null) { + contents[_PRIC] = de_PhysicalResourceIdContext(__getArrayIfSingleItem(output[_PRIC][_m]), context); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["ExpectedProperties"] !== undefined) { - contents.ExpectedProperties = __expectString(output["ExpectedProperties"]); + if (output[_EP] != null) { + contents[_EP] = __expectString(output[_EP]); } - if (output["ActualProperties"] !== undefined) { - contents.ActualProperties = __expectString(output["ActualProperties"]); + if (output[_AP] != null) { + contents[_AP] = __expectString(output[_AP]); } if (output.PropertyDifferences === "") { - contents.PropertyDifferences = []; - } else if (output["PropertyDifferences"] !== undefined && output["PropertyDifferences"]["member"] !== undefined) { - contents.PropertyDifferences = de_PropertyDifferences( - __getArrayIfSingleItem(output["PropertyDifferences"]["member"]), - context - ); + contents[_PD] = []; + } else if (output[_PD] != null && output[_PD][_m] != null) { + contents[_PD] = de_PropertyDifferences(__getArrayIfSingleItem(output[_PD][_m]), context); } - if (output["StackResourceDriftStatus"] !== undefined) { - contents.StackResourceDriftStatus = __expectString(output["StackResourceDriftStatus"]); + if (output[_SRDS] != null) { + contents[_SRDS] = __expectString(output[_SRDS]); } - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["ModuleInfo"] !== undefined) { - contents.ModuleInfo = de_ModuleInfo(output["ModuleInfo"], context); + if (output[_MI] != null) { + contents[_MI] = de_ModuleInfo(output[_MI], context); } return contents; }; @@ -10397,11 +10297,11 @@ const de_StackResourceDrift = (output: any, context: __SerdeContext): StackResou */ const de_StackResourceDriftInformation = (output: any, context: __SerdeContext): StackResourceDriftInformation => { const contents: any = {}; - if (output["StackResourceDriftStatus"] !== undefined) { - contents.StackResourceDriftStatus = __expectString(output["StackResourceDriftStatus"]); + if (output[_SRDS] != null) { + contents[_SRDS] = __expectString(output[_SRDS]); } - if (output["LastCheckTimestamp"] !== undefined) { - contents.LastCheckTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastCheckTimestamp"])); + if (output[_LCT] != null) { + contents[_LCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LCT])); } return contents; }; @@ -10414,11 +10314,11 @@ const de_StackResourceDriftInformationSummary = ( context: __SerdeContext ): StackResourceDriftInformationSummary => { const contents: any = {}; - if (output["StackResourceDriftStatus"] !== undefined) { - contents.StackResourceDriftStatus = __expectString(output["StackResourceDriftStatus"]); + if (output[_SRDS] != null) { + contents[_SRDS] = __expectString(output[_SRDS]); } - if (output["LastCheckTimestamp"] !== undefined) { - contents.LastCheckTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastCheckTimestamp"])); + if (output[_LCT] != null) { + contents[_LCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LCT])); } return contents; }; @@ -10461,29 +10361,29 @@ const de_StackResourceSummaries = (output: any, context: __SerdeContext): StackR */ const de_StackResourceSummary = (output: any, context: __SerdeContext): StackResourceSummary => { const contents: any = {}; - if (output["LogicalResourceId"] !== undefined) { - contents.LogicalResourceId = __expectString(output["LogicalResourceId"]); + if (output[_LRI] != null) { + contents[_LRI] = __expectString(output[_LRI]); } - if (output["PhysicalResourceId"] !== undefined) { - contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]); + if (output[_PRI] != null) { + contents[_PRI] = __expectString(output[_PRI]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["LastUpdatedTimestamp"] !== undefined) { - contents.LastUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdatedTimestamp"])); + if (output[_LUTa] != null) { + contents[_LUTa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUTa])); } - if (output["ResourceStatus"] !== undefined) { - contents.ResourceStatus = __expectString(output["ResourceStatus"]); + if (output[_RSes] != null) { + contents[_RSes] = __expectString(output[_RSes]); } - if (output["ResourceStatusReason"] !== undefined) { - contents.ResourceStatusReason = __expectString(output["ResourceStatusReason"]); + if (output[_RSR] != null) { + contents[_RSR] = __expectString(output[_RSR]); } - if (output["DriftInformation"] !== undefined) { - contents.DriftInformation = de_StackResourceDriftInformationSummary(output["DriftInformation"], context); + if (output[_DI] != null) { + contents[_DI] = de_StackResourceDriftInformationSummary(output[_DI], context); } - if (output["ModuleInfo"] !== undefined) { - contents.ModuleInfo = de_ModuleInfo(output["ModuleInfo"], context); + if (output[_MI] != null) { + contents[_MI] = de_ModuleInfo(output[_MI], context); } return contents; }; @@ -10504,72 +10404,66 @@ const de_Stacks = (output: any, context: __SerdeContext): Stack[] => { */ const de_StackSet = (output: any, context: __SerdeContext): StackSet => { const contents: any = {}; - if (output["StackSetName"] !== undefined) { - contents.StackSetName = __expectString(output["StackSetName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } - if (output["StackSetId"] !== undefined) { - contents.StackSetId = __expectString(output["StackSetId"]); + if (output[_SSI] != null) { + contents[_SSI] = __expectString(output[_SSI]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["TemplateBody"] !== undefined) { - contents.TemplateBody = __expectString(output["TemplateBody"]); + if (output[_TB] != null) { + contents[_TB] = __expectString(output[_TB]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["member"] !== undefined) { - contents.Parameters = de_Parameters(__getArrayIfSingleItem(output["Parameters"]["member"]), context); + contents[_P] = []; + } else if (output[_P] != null && output[_P][_m] != null) { + contents[_P] = de_Parameters(__getArrayIfSingleItem(output[_P][_m]), context); } if (output.Capabilities === "") { - contents.Capabilities = []; - } else if (output["Capabilities"] !== undefined && output["Capabilities"]["member"] !== undefined) { - contents.Capabilities = de_Capabilities(__getArrayIfSingleItem(output["Capabilities"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_Tags(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_Ta] = []; + } else if (output[_Ta] != null && output[_Ta][_m] != null) { + contents[_Ta] = de_Tags(__getArrayIfSingleItem(output[_Ta][_m]), context); } - if (output["StackSetARN"] !== undefined) { - contents.StackSetARN = __expectString(output["StackSetARN"]); + if (output[_SSARN] != null) { + contents[_SSARN] = __expectString(output[_SSARN]); } - if (output["AdministrationRoleARN"] !== undefined) { - contents.AdministrationRoleARN = __expectString(output["AdministrationRoleARN"]); + if (output[_ARARN] != null) { + contents[_ARARN] = __expectString(output[_ARARN]); } - if (output["ExecutionRoleName"] !== undefined) { - contents.ExecutionRoleName = __expectString(output["ExecutionRoleName"]); + if (output[_ERN] != null) { + contents[_ERN] = __expectString(output[_ERN]); } - if (output["StackSetDriftDetectionDetails"] !== undefined) { - contents.StackSetDriftDetectionDetails = de_StackSetDriftDetectionDetails( - output["StackSetDriftDetectionDetails"], - context - ); + if (output[_SSDDD] != null) { + contents[_SSDDD] = de_StackSetDriftDetectionDetails(output[_SSDDD], context); } - if (output["AutoDeployment"] !== undefined) { - contents.AutoDeployment = de_AutoDeployment(output["AutoDeployment"], context); + if (output[_AD] != null) { + contents[_AD] = de_AutoDeployment(output[_AD], context); } - if (output["PermissionModel"] !== undefined) { - contents.PermissionModel = __expectString(output["PermissionModel"]); + if (output[_PM] != null) { + contents[_PM] = __expectString(output[_PM]); } if (output.OrganizationalUnitIds === "") { - contents.OrganizationalUnitIds = []; - } else if (output["OrganizationalUnitIds"] !== undefined && output["OrganizationalUnitIds"]["member"] !== undefined) { - contents.OrganizationalUnitIds = de_OrganizationalUnitIdList( - __getArrayIfSingleItem(output["OrganizationalUnitIds"]["member"]), - context - ); + contents[_OUI] = []; + } else if (output[_OUI] != null && output[_OUI][_m] != null) { + contents[_OUI] = de_OrganizationalUnitIdList(__getArrayIfSingleItem(output[_OUI][_m]), context); } - if (output["ManagedExecution"] !== undefined) { - contents.ManagedExecution = de_ManagedExecution(output["ManagedExecution"], context); + if (output[_ME] != null) { + contents[_ME] = de_ManagedExecution(output[_ME], context); } if (output.Regions === "") { - contents.Regions = []; - } else if (output["Regions"] !== undefined && output["Regions"]["member"] !== undefined) { - contents.Regions = de_RegionList(__getArrayIfSingleItem(output["Regions"]["member"]), context); + contents[_R] = []; + } else if (output[_R] != null && output[_R][_m] != null) { + contents[_R] = de_RegionList(__getArrayIfSingleItem(output[_R][_m]), context); } return contents; }; @@ -10579,31 +10473,29 @@ const de_StackSet = (output: any, context: __SerdeContext): StackSet => { */ const de_StackSetDriftDetectionDetails = (output: any, context: __SerdeContext): StackSetDriftDetectionDetails => { const contents: any = {}; - if (output["DriftStatus"] !== undefined) { - contents.DriftStatus = __expectString(output["DriftStatus"]); + if (output[_DSr] != null) { + contents[_DSr] = __expectString(output[_DSr]); } - if (output["DriftDetectionStatus"] !== undefined) { - contents.DriftDetectionStatus = __expectString(output["DriftDetectionStatus"]); + if (output[_DDS] != null) { + contents[_DDS] = __expectString(output[_DDS]); } - if (output["LastDriftCheckTimestamp"] !== undefined) { - contents.LastDriftCheckTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["LastDriftCheckTimestamp"]) - ); + if (output[_LDCT] != null) { + contents[_LDCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LDCT])); } - if (output["TotalStackInstancesCount"] !== undefined) { - contents.TotalStackInstancesCount = __strictParseInt32(output["TotalStackInstancesCount"]) as number; + if (output[_TSIC] != null) { + contents[_TSIC] = __strictParseInt32(output[_TSIC]) as number; } - if (output["DriftedStackInstancesCount"] !== undefined) { - contents.DriftedStackInstancesCount = __strictParseInt32(output["DriftedStackInstancesCount"]) as number; + if (output[_DSIC] != null) { + contents[_DSIC] = __strictParseInt32(output[_DSIC]) as number; } - if (output["InSyncStackInstancesCount"] !== undefined) { - contents.InSyncStackInstancesCount = __strictParseInt32(output["InSyncStackInstancesCount"]) as number; + if (output[_ISSIC] != null) { + contents[_ISSIC] = __strictParseInt32(output[_ISSIC]) as number; } - if (output["InProgressStackInstancesCount"] !== undefined) { - contents.InProgressStackInstancesCount = __strictParseInt32(output["InProgressStackInstancesCount"]) as number; + if (output[_IPSIC] != null) { + contents[_IPSIC] = __strictParseInt32(output[_IPSIC]) as number; } - if (output["FailedStackInstancesCount"] !== undefined) { - contents.FailedStackInstancesCount = __strictParseInt32(output["FailedStackInstancesCount"]) as number; + if (output[_FSIC] != null) { + contents[_FSIC] = __strictParseInt32(output[_FSIC]) as number; } return contents; }; @@ -10613,8 +10505,8 @@ const de_StackSetDriftDetectionDetails = (output: any, context: __SerdeContext): */ const de_StackSetNotEmptyException = (output: any, context: __SerdeContext): StackSetNotEmptyException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -10624,8 +10516,8 @@ const de_StackSetNotEmptyException = (output: any, context: __SerdeContext): Sta */ const de_StackSetNotFoundException = (output: any, context: __SerdeContext): StackSetNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -10635,50 +10527,47 @@ const de_StackSetNotFoundException = (output: any, context: __SerdeContext): Sta */ const de_StackSetOperation = (output: any, context: __SerdeContext): StackSetOperation => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } - if (output["StackSetId"] !== undefined) { - contents.StackSetId = __expectString(output["StackSetId"]); + if (output[_SSI] != null) { + contents[_SSI] = __expectString(output[_SSI]); } - if (output["Action"] !== undefined) { - contents.Action = __expectString(output["Action"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["OperationPreferences"] !== undefined) { - contents.OperationPreferences = de_StackSetOperationPreferences(output["OperationPreferences"], context); + if (output[_OP] != null) { + contents[_OP] = de_StackSetOperationPreferences(output[_OP], context); } - if (output["RetainStacks"] !== undefined) { - contents.RetainStacks = __parseBoolean(output["RetainStacks"]); + if (output[_RSe] != null) { + contents[_RSe] = __parseBoolean(output[_RSe]); } - if (output["AdministrationRoleARN"] !== undefined) { - contents.AdministrationRoleARN = __expectString(output["AdministrationRoleARN"]); + if (output[_ARARN] != null) { + contents[_ARARN] = __expectString(output[_ARARN]); } - if (output["ExecutionRoleName"] !== undefined) { - contents.ExecutionRoleName = __expectString(output["ExecutionRoleName"]); + if (output[_ERN] != null) { + contents[_ERN] = __expectString(output[_ERN]); } - if (output["CreationTimestamp"] !== undefined) { - contents.CreationTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTimestamp"])); + if (output[_CTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTre])); } - if (output["EndTimestamp"] !== undefined) { - contents.EndTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTimestamp"])); + if (output[_ET] != null) { + contents[_ET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ET])); } - if (output["DeploymentTargets"] !== undefined) { - contents.DeploymentTargets = de_DeploymentTargets(output["DeploymentTargets"], context); + if (output[_DTep] != null) { + contents[_DTep] = de_DeploymentTargets(output[_DTep], context); } - if (output["StackSetDriftDetectionDetails"] !== undefined) { - contents.StackSetDriftDetectionDetails = de_StackSetDriftDetectionDetails( - output["StackSetDriftDetectionDetails"], - context - ); + if (output[_SSDDD] != null) { + contents[_SSDDD] = de_StackSetDriftDetectionDetails(output[_SSDDD], context); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["StatusDetails"] !== undefined) { - contents.StatusDetails = de_StackSetOperationStatusDetails(output["StatusDetails"], context); + if (output[_SD] != null) { + contents[_SD] = de_StackSetOperationStatusDetails(output[_SD], context); } return contents; }; @@ -10688,28 +10577,28 @@ const de_StackSetOperation = (output: any, context: __SerdeContext): StackSetOpe */ const de_StackSetOperationPreferences = (output: any, context: __SerdeContext): StackSetOperationPreferences => { const contents: any = {}; - if (output["RegionConcurrencyType"] !== undefined) { - contents.RegionConcurrencyType = __expectString(output["RegionConcurrencyType"]); + if (output[_RCT] != null) { + contents[_RCT] = __expectString(output[_RCT]); } if (output.RegionOrder === "") { - contents.RegionOrder = []; - } else if (output["RegionOrder"] !== undefined && output["RegionOrder"]["member"] !== undefined) { - contents.RegionOrder = de_RegionList(__getArrayIfSingleItem(output["RegionOrder"]["member"]), context); + contents[_RO] = []; + } else if (output[_RO] != null && output[_RO][_m] != null) { + contents[_RO] = de_RegionList(__getArrayIfSingleItem(output[_RO][_m]), context); } - if (output["FailureToleranceCount"] !== undefined) { - contents.FailureToleranceCount = __strictParseInt32(output["FailureToleranceCount"]) as number; + if (output[_FTC] != null) { + contents[_FTC] = __strictParseInt32(output[_FTC]) as number; } - if (output["FailureTolerancePercentage"] !== undefined) { - contents.FailureTolerancePercentage = __strictParseInt32(output["FailureTolerancePercentage"]) as number; + if (output[_FTP] != null) { + contents[_FTP] = __strictParseInt32(output[_FTP]) as number; } - if (output["MaxConcurrentCount"] !== undefined) { - contents.MaxConcurrentCount = __strictParseInt32(output["MaxConcurrentCount"]) as number; + if (output[_MCC] != null) { + contents[_MCC] = __strictParseInt32(output[_MCC]) as number; } - if (output["MaxConcurrentPercentage"] !== undefined) { - contents.MaxConcurrentPercentage = __strictParseInt32(output["MaxConcurrentPercentage"]) as number; + if (output[_MCP] != null) { + contents[_MCP] = __strictParseInt32(output[_MCP]) as number; } - if (output["ConcurrencyMode"] !== undefined) { - contents.ConcurrencyMode = __expectString(output["ConcurrencyMode"]); + if (output[_CM] != null) { + contents[_CM] = __expectString(output[_CM]); } return contents; }; @@ -10733,23 +10622,23 @@ const de_StackSetOperationResultSummaries = ( */ const de_StackSetOperationResultSummary = (output: any, context: __SerdeContext): StackSetOperationResultSummary => { const contents: any = {}; - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); + if (output[_Acc] != null) { + contents[_Acc] = __expectString(output[_Acc]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Reg] != null) { + contents[_Reg] = __expectString(output[_Reg]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["AccountGateResult"] !== undefined) { - contents.AccountGateResult = de_AccountGateResult(output["AccountGateResult"], context); + if (output[_AGR] != null) { + contents[_AGR] = de_AccountGateResult(output[_AGR], context); } - if (output["OrganizationalUnitId"] !== undefined) { - contents.OrganizationalUnitId = __expectString(output["OrganizationalUnitId"]); + if (output[_OUIr] != null) { + contents[_OUIr] = __expectString(output[_OUIr]); } return contents; }; @@ -10759,8 +10648,8 @@ const de_StackSetOperationResultSummary = (output: any, context: __SerdeContext) */ const de_StackSetOperationStatusDetails = (output: any, context: __SerdeContext): StackSetOperationStatusDetails => { const contents: any = {}; - if (output["FailedStackInstancesCount"] !== undefined) { - contents.FailedStackInstancesCount = __strictParseInt32(output["FailedStackInstancesCount"]) as number; + if (output[_FSIC] != null) { + contents[_FSIC] = __strictParseInt32(output[_FSIC]) as number; } return contents; }; @@ -10781,29 +10670,29 @@ const de_StackSetOperationSummaries = (output: any, context: __SerdeContext): St */ const de_StackSetOperationSummary = (output: any, context: __SerdeContext): StackSetOperationSummary => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } - if (output["Action"] !== undefined) { - contents.Action = __expectString(output["Action"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["CreationTimestamp"] !== undefined) { - contents.CreationTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTimestamp"])); + if (output[_CTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTre])); } - if (output["EndTimestamp"] !== undefined) { - contents.EndTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTimestamp"])); + if (output[_ET] != null) { + contents[_ET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ET])); } - if (output["StatusReason"] !== undefined) { - contents.StatusReason = __expectString(output["StatusReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["StatusDetails"] !== undefined) { - contents.StatusDetails = de_StackSetOperationStatusDetails(output["StatusDetails"], context); + if (output[_SD] != null) { + contents[_SD] = de_StackSetOperationStatusDetails(output[_SD], context); } - if (output["OperationPreferences"] !== undefined) { - contents.OperationPreferences = de_StackSetOperationPreferences(output["OperationPreferences"], context); + if (output[_OP] != null) { + contents[_OP] = de_StackSetOperationPreferences(output[_OP], context); } return contents; }; @@ -10824,34 +10713,32 @@ const de_StackSetSummaries = (output: any, context: __SerdeContext): StackSetSum */ const de_StackSetSummary = (output: any, context: __SerdeContext): StackSetSummary => { const contents: any = {}; - if (output["StackSetName"] !== undefined) { - contents.StackSetName = __expectString(output["StackSetName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } - if (output["StackSetId"] !== undefined) { - contents.StackSetId = __expectString(output["StackSetId"]); + if (output[_SSI] != null) { + contents[_SSI] = __expectString(output[_SSI]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["AutoDeployment"] !== undefined) { - contents.AutoDeployment = de_AutoDeployment(output["AutoDeployment"], context); + if (output[_AD] != null) { + contents[_AD] = de_AutoDeployment(output[_AD], context); } - if (output["PermissionModel"] !== undefined) { - contents.PermissionModel = __expectString(output["PermissionModel"]); + if (output[_PM] != null) { + contents[_PM] = __expectString(output[_PM]); } - if (output["DriftStatus"] !== undefined) { - contents.DriftStatus = __expectString(output["DriftStatus"]); + if (output[_DSr] != null) { + contents[_DSr] = __expectString(output[_DSr]); } - if (output["LastDriftCheckTimestamp"] !== undefined) { - contents.LastDriftCheckTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["LastDriftCheckTimestamp"]) - ); + if (output[_LDCT] != null) { + contents[_LDCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LDCT])); } - if (output["ManagedExecution"] !== undefined) { - contents.ManagedExecution = de_ManagedExecution(output["ManagedExecution"], context); + if (output[_ME] != null) { + contents[_ME] = de_ManagedExecution(output[_ME], context); } return contents; }; @@ -10872,38 +10759,38 @@ const de_StackSummaries = (output: any, context: __SerdeContext): StackSummary[] */ const de_StackSummary = (output: any, context: __SerdeContext): StackSummary => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["StackName"] !== undefined) { - contents.StackName = __expectString(output["StackName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["TemplateDescription"] !== undefined) { - contents.TemplateDescription = __expectString(output["TemplateDescription"]); + if (output[_TDe] != null) { + contents[_TDe] = __expectString(output[_TDe]); } - if (output["CreationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["LastUpdatedTime"] !== undefined) { - contents.LastUpdatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdatedTime"])); + if (output[_LUT] != null) { + contents[_LUT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUT])); } - if (output["DeletionTime"] !== undefined) { - contents.DeletionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DeletionTime"])); + if (output[_DTel] != null) { + contents[_DTel] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DTel])); } - if (output["StackStatus"] !== undefined) { - contents.StackStatus = __expectString(output["StackStatus"]); + if (output[_SSta] != null) { + contents[_SSta] = __expectString(output[_SSta]); } - if (output["StackStatusReason"] !== undefined) { - contents.StackStatusReason = __expectString(output["StackStatusReason"]); + if (output[_SSR] != null) { + contents[_SSR] = __expectString(output[_SSR]); } - if (output["ParentId"] !== undefined) { - contents.ParentId = __expectString(output["ParentId"]); + if (output[_PIa] != null) { + contents[_PIa] = __expectString(output[_PIa]); } - if (output["RootId"] !== undefined) { - contents.RootId = __expectString(output["RootId"]); + if (output[_RIo] != null) { + contents[_RIo] = __expectString(output[_RIo]); } - if (output["DriftInformation"] !== undefined) { - contents.DriftInformation = de_StackDriftInformationSummary(output["DriftInformation"], context); + if (output[_DI] != null) { + contents[_DI] = de_StackDriftInformationSummary(output[_DI], context); } return contents; }; @@ -10924,8 +10811,8 @@ const de_StageList = (output: any, context: __SerdeContext): TemplateStage[] => */ const de_StaleRequestException = (output: any, context: __SerdeContext): StaleRequestException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -10954,11 +10841,11 @@ const de_SupportedMajorVersions = (output: any, context: __SerdeContext): number */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -10979,17 +10866,17 @@ const de_Tags = (output: any, context: __SerdeContext): Tag[] => { */ const de_TemplateParameter = (output: any, context: __SerdeContext): TemplateParameter => { const contents: any = {}; - if (output["ParameterKey"] !== undefined) { - contents.ParameterKey = __expectString(output["ParameterKey"]); + if (output[_PK] != null) { + contents[_PK] = __expectString(output[_PK]); } - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["NoEcho"] !== undefined) { - contents.NoEcho = __parseBoolean(output["NoEcho"]); + if (output[_NE] != null) { + contents[_NE] = __parseBoolean(output[_NE]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -11010,8 +10897,8 @@ const de_TemplateParameters = (output: any, context: __SerdeContext): TemplatePa */ const de_TestTypeOutput = (output: any, context: __SerdeContext): TestTypeOutput => { const contents: any = {}; - if (output["TypeVersionArn"] !== undefined) { - contents.TypeVersionArn = __expectString(output["TypeVersionArn"]); + if (output[_TVA] != null) { + contents[_TVA] = __expectString(output[_TVA]); } return contents; }; @@ -11021,8 +10908,8 @@ const de_TestTypeOutput = (output: any, context: __SerdeContext): TestTypeOutput */ const de_TokenAlreadyExistsException = (output: any, context: __SerdeContext): TokenAlreadyExistsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -11043,26 +10930,26 @@ const de_TransformsList = (output: any, context: __SerdeContext): string[] => { */ const de_TypeConfigurationDetails = (output: any, context: __SerdeContext): TypeConfigurationDetails => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Alias"] !== undefined) { - contents.Alias = __expectString(output["Alias"]); + if (output[_Al] != null) { + contents[_Al] = __expectString(output[_Al]); } - if (output["Configuration"] !== undefined) { - contents.Configuration = __expectString(output["Configuration"]); + if (output[_Co] != null) { + contents[_Co] = __expectString(output[_Co]); } - if (output["LastUpdated"] !== undefined) { - contents.LastUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdated"])); + if (output[_LU] != null) { + contents[_LU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LU])); } - if (output["TypeArn"] !== undefined) { - contents.TypeArn = __expectString(output["TypeArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["TypeName"] !== undefined) { - contents.TypeName = __expectString(output["TypeName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["IsDefaultConfiguration"] !== undefined) { - contents.IsDefaultConfiguration = __parseBoolean(output["IsDefaultConfiguration"]); + if (output[_IDC] != null) { + contents[_IDC] = __parseBoolean(output[_IDC]); } return contents; }; @@ -11083,20 +10970,20 @@ const de_TypeConfigurationDetailsList = (output: any, context: __SerdeContext): */ const de_TypeConfigurationIdentifier = (output: any, context: __SerdeContext): TypeConfigurationIdentifier => { const contents: any = {}; - if (output["TypeArn"] !== undefined) { - contents.TypeArn = __expectString(output["TypeArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["TypeConfigurationAlias"] !== undefined) { - contents.TypeConfigurationAlias = __expectString(output["TypeConfigurationAlias"]); + if (output[_TCA] != null) { + contents[_TCA] = __expectString(output[_TCA]); } - if (output["TypeConfigurationArn"] !== undefined) { - contents.TypeConfigurationArn = __expectString(output["TypeConfigurationArn"]); + if (output[_TCAy] != null) { + contents[_TCAy] = __expectString(output[_TCAy]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["TypeName"] !== undefined) { - contents.TypeName = __expectString(output["TypeName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } return contents; }; @@ -11109,8 +10996,8 @@ const de_TypeConfigurationNotFoundException = ( context: __SerdeContext ): TypeConfigurationNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -11120,8 +11007,8 @@ const de_TypeConfigurationNotFoundException = ( */ const de_TypeNotFoundException = (output: any, context: __SerdeContext): TypeNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -11142,44 +11029,44 @@ const de_TypeSummaries = (output: any, context: __SerdeContext): TypeSummary[] = */ const de_TypeSummary = (output: any, context: __SerdeContext): TypeSummary => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["TypeName"] !== undefined) { - contents.TypeName = __expectString(output["TypeName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["DefaultVersionId"] !== undefined) { - contents.DefaultVersionId = __expectString(output["DefaultVersionId"]); + if (output[_DVI] != null) { + contents[_DVI] = __expectString(output[_DVI]); } - if (output["TypeArn"] !== undefined) { - contents.TypeArn = __expectString(output["TypeArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["LastUpdated"] !== undefined) { - contents.LastUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdated"])); + if (output[_LU] != null) { + contents[_LU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LU])); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["PublisherId"] !== undefined) { - contents.PublisherId = __expectString(output["PublisherId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } - if (output["OriginalTypeName"] !== undefined) { - contents.OriginalTypeName = __expectString(output["OriginalTypeName"]); + if (output[_OTN] != null) { + contents[_OTN] = __expectString(output[_OTN]); } - if (output["PublicVersionNumber"] !== undefined) { - contents.PublicVersionNumber = __expectString(output["PublicVersionNumber"]); + if (output[_PVN] != null) { + contents[_PVN] = __expectString(output[_PVN]); } - if (output["LatestPublicVersion"] !== undefined) { - contents.LatestPublicVersion = __expectString(output["LatestPublicVersion"]); + if (output[_LPV] != null) { + contents[_LPV] = __expectString(output[_LPV]); } - if (output["PublisherIdentity"] !== undefined) { - contents.PublisherIdentity = __expectString(output["PublisherIdentity"]); + if (output[_PIu] != null) { + contents[_PIu] = __expectString(output[_PIu]); } - if (output["PublisherName"] !== undefined) { - contents.PublisherName = __expectString(output["PublisherName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["IsActivated"] !== undefined) { - contents.IsActivated = __parseBoolean(output["IsActivated"]); + if (output[_IA] != null) { + contents[_IA] = __parseBoolean(output[_IA]); } return contents; }; @@ -11200,29 +11087,29 @@ const de_TypeVersionSummaries = (output: any, context: __SerdeContext): TypeVers */ const de_TypeVersionSummary = (output: any, context: __SerdeContext): TypeVersionSummary => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["TypeName"] !== undefined) { - contents.TypeName = __expectString(output["TypeName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["VersionId"] !== undefined) { - contents.VersionId = __expectString(output["VersionId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["IsDefaultVersion"] !== undefined) { - contents.IsDefaultVersion = __parseBoolean(output["IsDefaultVersion"]); + if (output[_IDV] != null) { + contents[_IDV] = __parseBoolean(output[_IDV]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["TimeCreated"] !== undefined) { - contents.TimeCreated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["TimeCreated"])); + if (output[_TCi] != null) { + contents[_TCi] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TCi])); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["PublicVersionNumber"] !== undefined) { - contents.PublicVersionNumber = __expectString(output["PublicVersionNumber"]); + if (output[_PVN] != null) { + contents[_PVN] = __expectString(output[_PVN]); } return contents; }; @@ -11243,8 +11130,8 @@ const de_UnprocessedTypeConfigurations = (output: any, context: __SerdeContext): */ const de_UpdateStackInstancesOutput = (output: any, context: __SerdeContext): UpdateStackInstancesOutput => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -11254,8 +11141,8 @@ const de_UpdateStackInstancesOutput = (output: any, context: __SerdeContext): Up */ const de_UpdateStackOutput = (output: any, context: __SerdeContext): UpdateStackOutput => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -11265,8 +11152,8 @@ const de_UpdateStackOutput = (output: any, context: __SerdeContext): UpdateStack */ const de_UpdateStackSetOutput = (output: any, context: __SerdeContext): UpdateStackSetOutput => { const contents: any = {}; - if (output["OperationId"] !== undefined) { - contents.OperationId = __expectString(output["OperationId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -11279,8 +11166,8 @@ const de_UpdateTerminationProtectionOutput = ( context: __SerdeContext ): UpdateTerminationProtectionOutput => { const contents: any = {}; - if (output["StackId"] !== undefined) { - contents.StackId = __expectString(output["StackId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -11291,28 +11178,25 @@ const de_UpdateTerminationProtectionOutput = ( const de_ValidateTemplateOutput = (output: any, context: __SerdeContext): ValidateTemplateOutput => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["member"] !== undefined) { - contents.Parameters = de_TemplateParameters(__getArrayIfSingleItem(output["Parameters"]["member"]), context); + contents[_P] = []; + } else if (output[_P] != null && output[_P][_m] != null) { + contents[_P] = de_TemplateParameters(__getArrayIfSingleItem(output[_P][_m]), context); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.Capabilities === "") { - contents.Capabilities = []; - } else if (output["Capabilities"] !== undefined && output["Capabilities"]["member"] !== undefined) { - contents.Capabilities = de_Capabilities(__getArrayIfSingleItem(output["Capabilities"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } - if (output["CapabilitiesReason"] !== undefined) { - contents.CapabilitiesReason = __expectString(output["CapabilitiesReason"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } if (output.DeclaredTransforms === "") { - contents.DeclaredTransforms = []; - } else if (output["DeclaredTransforms"] !== undefined && output["DeclaredTransforms"]["member"] !== undefined) { - contents.DeclaredTransforms = de_TransformsList( - __getArrayIfSingleItem(output["DeclaredTransforms"]["member"]), - context - ); + contents[_DTec] = []; + } else if (output[_DTec] != null && output[_DTec][_m] != null) { + contents[_DTec] = de_TransformsList(__getArrayIfSingleItem(output[_DTec][_m]), context); } return contents; }; @@ -11323,15 +11207,9 @@ const de_ValidateTemplateOutput = (output: any, context: __SerdeContext): Valida const de_Warnings = (output: any, context: __SerdeContext): Warnings => { const contents: any = {}; if (output.UnrecognizedResourceTypes === "") { - contents.UnrecognizedResourceTypes = []; - } else if ( - output["UnrecognizedResourceTypes"] !== undefined && - output["UnrecognizedResourceTypes"]["member"] !== undefined - ) { - contents.UnrecognizedResourceTypes = de_ResourceTypes( - __getArrayIfSingleItem(output["UnrecognizedResourceTypes"]["member"]), - context - ); + contents[_URT] = []; + } else if (output[_URT] != null && output[_URT][_m] != null) { + contents[_URT] = de_ResourceTypes(__getArrayIfSingleItem(output[_URT][_m]), context); } return contents; }; @@ -11377,6 +11255,363 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2010-05-15"; +const _A = "Action"; +const _AD = "AutoDeployment"; +const _AFT = "AccountFilterType"; +const _AGR = "AccountGateResult"; +const _AL = "AccountLimits"; +const _AOA = "ActivateOrganizationsAccess"; +const _AP = "ActualProperties"; +const _ARARN = "AdministrationRoleARN"; +const _AT = "ActivateType"; +const _ATAC = "AcceptTermsAndConditions"; +const _AU = "AutoUpdate"; +const _AUc = "AccountsUrl"; +const _AV = "AllowedValues"; +const _AVc = "ActualValue"; +const _Ac = "Accounts"; +const _Acc = "Account"; +const _Act = "Active"; +const _Al = "Alias"; +const _Ar = "Arn"; +const _At = "Attribute"; +const _BDTC = "BatchDescribeTypeConfigurations"; +const _BT = "BearerToken"; +const _C = "Capabilities"; +const _CA = "CallAs"; +const _CAo = "ConnectionArn"; +const _CAon = "ConfigurationAlias"; +const _CAonf = "ConfigurationArn"; +const _CCS = "CreateChangeSet"; +const _CE = "CausingEntity"; +const _CM = "ConcurrencyMode"; +const _COS = "CurrentOperationStatus"; +const _CR = "CapabilitiesReason"; +const _CRT = "ClientRequestToken"; +const _CS = "CreateStack"; +const _CSI = "CreateStackInstances"; +const _CSIh = "ChangeSetId"; +const _CSN = "ChangeSetName"; +const _CSS = "CreateStackSet"; +const _CST = "ChangeSetType"; +const _CSh = "ChangeSource"; +const _CSo = "ConfigurationSchema"; +const _CT = "ClientToken"; +const _CTr = "CreationTime"; +const _CTre = "CreationTimestamp"; +const _CUR = "ContinueUpdateRollback"; +const _CUS = "CancelUpdateStack"; +const _Ca = "Category"; +const _Ch = "Changes"; +const _Co = "Configuration"; +const _D = "Description"; +const _DAL = "DescribeAccountLimits"; +const _DCS = "DeleteChangeSet"; +const _DCSH = "DescribeChangeSetHooks"; +const _DCSe = "DescribeChangeSet"; +const _DDS = "DriftDetectionStatus"; +const _DI = "DriftInformation"; +const _DOA = "DeactivateOrganizationsAccess"; +const _DOAe = "DescribeOrganizationsAccess"; +const _DP = "DescribePublisher"; +const _DR = "DisableRollback"; +const _DS = "DeleteStack"; +const _DSD = "DetectStackDrift"; +const _DSDDS = "DescribeStackDriftDetectionStatus"; +const _DSE = "DescribeStackEvents"; +const _DSI = "DeleteStackInstances"; +const _DSIC = "DriftedStackInstancesCount"; +const _DSIe = "DescribeStackInstance"; +const _DSR = "DescribeStackResource"; +const _DSRC = "DriftedStackResourceCount"; +const _DSRD = "DescribeStackResourceDrifts"; +const _DSRDe = "DetectStackResourceDrift"; +const _DSRe = "DescribeStackResources"; +const _DSRet = "DetectionStatusReason"; +const _DSS = "DeleteStackSet"; +const _DSSD = "DetectStackSetDrift"; +const _DSSO = "DescribeStackSetOperation"; +const _DSSe = "DescribeStackSet"; +const _DSe = "DescribeStacks"; +const _DSep = "DeprecatedStatus"; +const _DSet = "DetectionStatus"; +const _DSeta = "DetailedStatus"; +const _DSr = "DriftStatus"; +const _DT = "DeactivateType"; +const _DTR = "DescribeTypeRegistration"; +const _DTe = "DeregisterType"; +const _DTec = "DeclaredTransforms"; +const _DTel = "DeletionTime"; +const _DTep = "DeploymentTargets"; +const _DTes = "DescribeType"; +const _DTi = "DifferenceType"; +const _DU = "DocumentationUrl"; +const _DV = "DefaultValue"; +const _DVI = "DefaultVersionId"; +const _De = "Details"; +const _E = "Enabled"; +const _EC = "ErrorCode"; +const _ECS = "ExecuteChangeSet"; +const _EI = "EventId"; +const _EM = "ErrorMessage"; +const _EN = "ExportName"; +const _EP = "ExpectedProperties"; +const _ERA = "ExecutionRoleArn"; +const _ERN = "ExecutionRoleName"; +const _ES = "ExecutionStatus"; +const _ESI = "ExportingStackId"; +const _ET = "EndTimestamp"; +const _ETC = "EstimateTemplateCost"; +const _ETP = "EnableTerminationProtection"; +const _EV = "ExpectedValue"; +const _Er = "Errors"; +const _Ev = "Evaluation"; +const _Ex = "Exports"; +const _F = "Filters"; +const _FM = "FailureMode"; +const _FSIC = "FailedStackInstancesCount"; +const _FTC = "FailureToleranceCount"; +const _FTP = "FailureTolerancePercentage"; +const _GSP = "GetStackPolicy"; +const _GT = "GetTemplate"; +const _GTS = "GetTemplateSummary"; +const _H = "Hooks"; +const _HFM = "HookFailureMode"; +const _HIC = "HookInvocationCount"; +const _HIP = "HookInvocationPoint"; +const _HS = "HookStatus"; +const _HSR = "HookStatusReason"; +const _HT = "HookType"; +const _I = "Id"; +const _IA = "IsActivated"; +const _IDC = "IsDefaultConfiguration"; +const _IDV = "IsDefaultVersion"; +const _IER = "ImportExistingResources"; +const _INS = "IncludeNestedStacks"; +const _IP = "InvocationPoint"; +const _IPSIC = "InProgressStackInstancesCount"; +const _IPd = "IdentityProvider"; +const _ISSIC = "InSyncStackInstancesCount"; +const _ISTSS = "ImportStacksToStackSet"; +const _Im = "Imports"; +const _K = "Key"; +const _LC = "LoggingConfig"; +const _LCS = "ListChangeSets"; +const _LCT = "LastCheckTimestamp"; +const _LDB = "LogDeliveryBucket"; +const _LDCT = "LastDriftCheckTimestamp"; +const _LE = "ListExports"; +const _LGN = "LogGroupName"; +const _LI = "ListImports"; +const _LIH = "LogicalIdHierarchy"; +const _LOI = "LastOperationId"; +const _LPV = "LatestPublicVersion"; +const _LRA = "LogRoleArn"; +const _LRI = "LogicalResourceId"; +const _LRIo = "LogicalResourceIds"; +const _LS = "ListStacks"; +const _LSI = "ListStackInstances"; +const _LSIRD = "ListStackInstanceResourceDrifts"; +const _LSR = "ListStackResources"; +const _LSS = "ListStackSets"; +const _LSSO = "ListStackSetOperations"; +const _LSSOR = "ListStackSetOperationResults"; +const _LT = "ListTypes"; +const _LTR = "ListTypeRegistrations"; +const _LTV = "ListTypeVersions"; +const _LU = "LastUpdated"; +const _LUT = "LastUpdatedTime"; +const _LUTa = "LastUpdatedTimestamp"; +const _M = "Message"; +const _MCC = "MaxConcurrentCount"; +const _MCP = "MaxConcurrentPercentage"; +const _ME = "ManagedExecution"; +const _MI = "ModuleInfo"; +const _MR = "MaxResults"; +const _MTIM = "MonitoringTimeInMinutes"; +const _MV = "MajorVersion"; +const _Me = "Metadata"; +const _N = "Name"; +const _NARN = "NotificationARNs"; +const _NE = "NoEcho"; +const _NT = "NextToken"; +const _O = "Outputs"; +const _OF = "OnFailure"; +const _OI = "OperationId"; +const _OK = "OutputKey"; +const _OP = "OperationPreferences"; +const _OS = "OperationStatus"; +const _OSF = "OnStackFailure"; +const _OTA = "OriginalTypeArn"; +const _OTN = "OriginalTypeName"; +const _OUI = "OrganizationalUnitIds"; +const _OUIr = "OrganizationalUnitId"; +const _OV = "OutputValue"; +const _P = "Parameters"; +const _PC = "ParameterConstraints"; +const _PCSI = "ParentChangeSetId"; +const _PD = "PropertyDifferences"; +const _PI = "PublisherId"; +const _PIa = "ParentId"; +const _PIu = "PublisherIdentity"; +const _PK = "ParameterKey"; +const _PM = "PermissionModel"; +const _PN = "PublisherName"; +const _PO = "ParameterOverrides"; +const _PP = "PublisherProfile"; +const _PPr = "PropertyPath"; +const _PRI = "PhysicalResourceId"; +const _PRIC = "PhysicalResourceIdContext"; +const _PS = "PublisherStatus"; +const _PSr = "ProgressStatus"; +const _PT = "PublishType"; +const _PTA = "PublicTypeArn"; +const _PTa = "ParameterType"; +const _PTr = "ProvisioningType"; +const _PV = "ParameterValue"; +const _PVN = "PublicVersionNumber"; +const _R = "Regions"; +const _RA = "ResourceAction"; +const _RARN = "RoleARN"; +const _RAT = "RequiredActivatedTypes"; +const _RC = "RollbackConfiguration"; +const _RCSI = "RootChangeSetId"; +const _RCT = "RegionConcurrencyType"; +const _RCe = "ResourceChange"; +const _REOC = "RetainExceptOnCreate"; +const _RHP = "RecordHandlerProgress"; +const _RI = "ResourceIdentifier"; +const _RIS = "ResourceIdentifierSummaries"; +const _RIe = "ResourceIdentifiers"; +const _RIo = "RootId"; +const _RM = "ResourceModel"; +const _RO = "RegionOrder"; +const _RP = "RegisterPublisher"; +const _RPe = "ResourceProperties"; +const _RR = "RetainResources"; +const _RRe = "RequiresRecreation"; +const _RS = "RollbackStack"; +const _RSF = "RegistrationStatusFilter"; +const _RSOAR = "RetainStacksOnAccountRemoval"; +const _RSR = "ResourceStatusReason"; +const _RSe = "RetainStacks"; +const _RSes = "ResourceStatus"; +const _RT = "RegisterType"; +const _RTD = "ResourceTargetDetails"; +const _RTI = "ResourcesToImport"; +const _RTL = "RegistrationTokenList"; +const _RTS = "ResourcesToSkip"; +const _RTe = "ResourceTypes"; +const _RTeg = "RegistrationToken"; +const _RTes = "ResourceType"; +const _RTo = "RollbackTriggers"; +const _RV = "ResolvedValue"; +const _Re = "Replacement"; +const _Reg = "Region"; +const _S = "Status"; +const _SA = "StagesAvailable"; +const _SD = "StatusDetails"; +const _SDDI = "StackDriftDetectionId"; +const _SDS = "StackDriftStatus"; +const _SE = "StackEvents"; +const _SHP = "SchemaHandlerPackage"; +const _SI = "StackId"; +const _SIA = "StackInstanceAccount"; +const _SIR = "StackInstanceRegion"; +const _SIRDS = "StackInstanceResourceDriftStatuses"; +const _SIS = "StackInstanceStatus"; +const _SIU = "StackIdsUrl"; +const _SIt = "StackIds"; +const _SIta = "StackInstance"; +const _SM = "StatusMessage"; +const _SMV = "SupportedMajorVersions"; +const _SN = "StackName"; +const _SPB = "StackPolicyBody"; +const _SPDUB = "StackPolicyDuringUpdateBody"; +const _SPDUURL = "StackPolicyDuringUpdateURL"; +const _SPURL = "StackPolicyURL"; +const _SR = "SignalResource"; +const _SRD = "StackResourceDrifts"; +const _SRDS = "StackResourceDriftStatus"; +const _SRDSF = "StackResourceDriftStatusFilters"; +const _SRDt = "StackResourceDetail"; +const _SRDta = "StackResourceDrift"; +const _SRS = "StackResourceSummaries"; +const _SRt = "StatusReason"; +const _SRta = "StackResources"; +const _SS = "StackSet"; +const _SSARN = "StackSetARN"; +const _SSDDD = "StackSetDriftDetectionDetails"; +const _SSF = "StackStatusFilter"; +const _SSI = "StackSetId"; +const _SSN = "StackSetName"; +const _SSO = "StackSetOperation"; +const _SSP = "SetStackPolicy"; +const _SSR = "StackStatusReason"; +const _SSSO = "StopStackSetOperation"; +const _SSt = "StackSummaries"; +const _SSta = "StackStatus"; +const _STC = "SetTypeConfiguration"; +const _STDV = "SetTypeDefaultVersion"; +const _SU = "SourceUrl"; +const _Sc = "Schema"; +const _Sco = "Scope"; +const _St = "Stacks"; +const _Su = "Summaries"; +const _T = "Type"; +const _TA = "TypeArn"; +const _TB = "TemplateBody"; +const _TC = "TypeConfigurations"; +const _TCA = "TypeConfigurationAlias"; +const _TCAy = "TypeConfigurationArn"; +const _TCI = "TypeConfigurationIdentifiers"; +const _TCIy = "TypeConfigurationIdentifier"; +const _TCVI = "TypeConfigurationVersionId"; +const _TCi = "TimeCreated"; +const _TD = "TargetDetails"; +const _TDe = "TemplateDescription"; +const _TH = "TypeHierarchy"; +const _TIM = "TimeoutInMinutes"; +const _TN = "TypeName"; +const _TNA = "TypeNameAlias"; +const _TNP = "TypeNamePrefix"; +const _TS = "TemplateStage"; +const _TSC = "TemplateSummaryConfig"; +const _TSIC = "TotalStackInstancesCount"; +const _TSy = "TypeSummaries"; +const _TT = "TestType"; +const _TTS = "TypeTestsStatus"; +const _TTSD = "TypeTestsStatusDescription"; +const _TTa = "TargetType"; +const _TURL = "TemplateURL"; +const _TURTAW = "TreatUnrecognizedResourceTypesAsWarnings"; +const _TVA = "TypeVersionArn"; +const _TVI = "TypeVersionId"; +const _TVS = "TypeVersionSummaries"; +const _Ta = "Tags"; +const _Tar = "Target"; +const _Ti = "Timestamp"; +const _U = "Url"; +const _UI = "UniqueId"; +const _UPT = "UsePreviousTemplate"; +const _UPV = "UsePreviousValue"; +const _URT = "UnrecognizedResourceTypes"; +const _US = "UpdateStack"; +const _USI = "UpdateStackInstances"; +const _USS = "UpdateStackSet"; +const _UTC = "UnprocessedTypeConfigurations"; +const _UTP = "UpdateTerminationProtection"; +const _V = "Version"; +const _VB = "VersionBump"; +const _VI = "VersionId"; +const _VT = "ValidateTemplate"; +const _Va = "Values"; +const _Val = "Value"; +const _Vi = "Visibility"; +const _W = "Warnings"; +const _m = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloudfront-keyvaluestore/package.json b/clients/client-cloudfront-keyvaluestore/package.json index 86faec6821f6..ff90a1f15b13 100644 --- a/clients/client-cloudfront-keyvaluestore/package.json +++ b/clients/client-cloudfront-keyvaluestore/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-cloudfront-keyvaluestore/src/protocols/Aws_restJson1.ts b/clients/client-cloudfront-keyvaluestore/src/protocols/Aws_restJson1.ts index 6ad4ee62c3ce..9db5c8cf8cdd 100644 --- a/clients/client-cloudfront-keyvaluestore/src/protocols/Aws_restJson1.ts +++ b/clients/client-cloudfront-keyvaluestore/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -51,24 +52,16 @@ export const se_DeleteKeyCommand = async ( input: DeleteKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}"; - resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN!, "{KvsARN}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key}", false); + b.bp("/key-value-stores/{KvsARN}/keys/{Key}"); + b.p("KvsARN", () => input.KvsARN!, "{KvsARN}", false); + b.p("Key", () => input.Key!, "{Key}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -78,43 +71,27 @@ export const se_DescribeKeyValueStoreCommand = async ( input: DescribeKeyValueStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}"; - resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN!, "{KvsARN}", false); + b.bp("/key-value-stores/{KvsARN}"); + b.p("KvsARN", () => input.KvsARN!, "{KvsARN}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetKeyCommand */ export const se_GetKeyCommand = async (input: GetKeyCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}"; - resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN!, "{KvsARN}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key}", false); + b.bp("/key-value-stores/{KvsARN}/keys/{Key}"); + b.p("KvsARN", () => input.KvsARN!, "{KvsARN}", false); + b.p("Key", () => input.Key!, "{Key}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -124,56 +101,39 @@ export const se_ListKeysCommand = async ( input: ListKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys"; - resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN!, "{KvsARN}", false); + b.bp("/key-value-stores/{KvsARN}/keys"); + b.p("KvsARN", () => input.KvsARN!, "{KvsARN}", false); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** * serializeAws_restJson1PutKeyCommand */ export const se_PutKeyCommand = async (input: PutKeyCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN!, "{KvsARN}", false); + b.bp("/key-value-stores/{KvsARN}/keys/{Key}"); + b.p("Key", () => input.Key!, "{Key}", false); + b.p("KvsARN", () => input.KvsARN!, "{KvsARN}", false); let body: any; body = JSON.stringify( take(input, { Value: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -183,14 +143,13 @@ export const se_UpdateKeysCommand = async ( input: UpdateKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys"; - resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN!, "{KvsARN}", false); + b.bp("/key-value-stores/{KvsARN}/keys"); + b.p("KvsARN", () => input.KvsARN!, "{KvsARN}", false); let body: any; body = JSON.stringify( take(input, { @@ -198,15 +157,8 @@ export const se_UpdateKeysCommand = async ( Puts: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -221,7 +173,7 @@ export const de_DeleteKeyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -285,7 +237,7 @@ export const de_DescribeKeyValueStoreCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -462,7 +414,7 @@ export const de_PutKeyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -523,7 +475,7 @@ export const de_UpdateKeysCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -721,6 +673,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _ET = "ETag"; +const _IM = "IfMatch"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _e = "etag"; +const _im = "if-match"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloudfront/package.json b/clients/client-cloudfront/package.json index 7247f01fb327..262c246b3d9e 100644 --- a/clients/client-cloudfront/package.json +++ b/clients/client-cloudfront/package.json @@ -35,6 +35,7 @@ "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-cloudfront/src/models/models_1.ts b/clients/client-cloudfront/src/models/models_1.ts index 09c56b435676..2ee9914602b9 100644 --- a/clients/client-cloudfront/src/models/models_1.ts +++ b/clients/client-cloudfront/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException"; + import { ActiveTrustedSigners, Aliases, diff --git a/clients/client-cloudfront/src/protocols/Aws_restXml.ts b/clients/client-cloudfront/src/protocols/Aws_restXml.ts index b99e7bb78ea7..d17528a09598 100644 --- a/clients/client-cloudfront/src/protocols/Aws_restXml.ts +++ b/clients/client-cloudfront/src/protocols/Aws_restXml.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { collectBody, @@ -682,33 +683,16 @@ export const se_AssociateAliasCommand = async ( input: AssociateAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distribution/{TargetDistributionId}/associate-alias"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TargetDistributionId", - () => input.TargetDistributionId!, - "{TargetDistributionId}", - false - ); + b.bp("/2020-05-31/distribution/{TargetDistributionId}/associate-alias"); + b.p("TargetDistributionId", () => input.TargetDistributionId!, "{TargetDistributionId}", false); const query: any = map({ - Alias: [, __expectNonNull(input.Alias!, `Alias`)], + [_A]: [, __expectNonNull(input[_A]!, `Alias`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -718,45 +702,27 @@ export const se_CopyDistributionCommand = async ( input: CopyDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - staging: [() => isSerializableHeaderValue(input.Staging), () => input.Staging!.toString()], - "if-match": input.IfMatch!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distribution/{PrimaryDistributionId}/copy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PrimaryDistributionId", - () => input.PrimaryDistributionId!, - "{PrimaryDistributionId}", - false - ); + [_s]: [() => isSerializableHeaderValue(input[_S]), () => input[_S]!.toString()], + [_im]: input[_IM]!, + }); + b.bp("/2020-05-31/distribution/{PrimaryDistributionId}/copy"); + b.p("PrimaryDistributionId", () => input.PrimaryDistributionId!, "{PrimaryDistributionId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("CopyDistributionRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.CallerReference !== undefined) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CDR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - if (input.Enabled !== undefined) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -766,29 +732,21 @@ export const se_CreateCachePolicyCommand = async ( input: CreateCachePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy"; + b.bp("/2020-05-31/cache-policy"); let body: any; let contents: any; if (input.CachePolicyConfig !== undefined) { contents = se_CachePolicyConfig(input.CachePolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -798,30 +756,21 @@ export const se_CreateCloudFrontOriginAccessIdentityCommand = async ( input: CreateCloudFrontOriginAccessIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-identity/cloudfront"; + b.bp("/2020-05-31/origin-access-identity/cloudfront"); let body: any; let contents: any; if (input.CloudFrontOriginAccessIdentityConfig !== undefined) { contents = se_CloudFrontOriginAccessIdentityConfig(input.CloudFrontOriginAccessIdentityConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -831,29 +780,21 @@ export const se_CreateContinuousDeploymentPolicyCommand = async ( input: CreateContinuousDeploymentPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/continuous-deployment-policy"; + b.bp("/2020-05-31/continuous-deployment-policy"); let body: any; let contents: any; if (input.ContinuousDeploymentPolicyConfig !== undefined) { contents = se_ContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -863,29 +804,21 @@ export const se_CreateDistributionCommand = async ( input: CreateDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution"; + b.bp("/2020-05-31/distribution"); let body: any; let contents: any; if (input.DistributionConfig !== undefined) { contents = se_DistributionConfig(input.DistributionConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -895,33 +828,24 @@ export const se_CreateDistributionWithTagsCommand = async ( input: CreateDistributionWithTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution"; + b.bp("/2020-05-31/distribution"); const query: any = map({ - WithTags: [, ""], + [_WT]: [, ""], }); let body: any; let contents: any; if (input.DistributionConfigWithTags !== undefined) { contents = se_DistributionConfigWithTags(input.DistributionConfigWithTags, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -931,29 +855,21 @@ export const se_CreateFieldLevelEncryptionConfigCommand = async ( input: CreateFieldLevelEncryptionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/field-level-encryption"; + b.bp("/2020-05-31/field-level-encryption"); let body: any; let contents: any; if (input.FieldLevelEncryptionConfig !== undefined) { contents = se_FieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -963,30 +879,21 @@ export const se_CreateFieldLevelEncryptionProfileCommand = async ( input: CreateFieldLevelEncryptionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption-profile"; + b.bp("/2020-05-31/field-level-encryption-profile"); let body: any; let contents: any; if (input.FieldLevelEncryptionProfileConfig !== undefined) { contents = se_FieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -996,37 +903,27 @@ export const se_CreateFunctionCommand = async ( input: CreateFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function"; + b.bp("/2020-05-31/function"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateFunctionRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.FunctionCode !== undefined) { - const node = __XmlNode.of("FunctionBlob", context.base64Encoder(input.FunctionCode)).withName("FunctionCode"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CFR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_FC] != null) { + bn.c(__XmlNode.of(_FB, context.base64Encoder(input[_FC])).n(_FC)); } - if (input.FunctionConfig !== undefined) { - const node = se_FunctionConfig(input.FunctionConfig, context).withName("FunctionConfig"); - bodyNode.addChildNode(node); + if (input[_FCu] != null) { + bn.c(se_FunctionConfig(input[_FCu], context).n(_FCu)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("FunctionName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_FN, input[_N]).n(_N)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1036,38 +933,22 @@ export const se_CreateInvalidationCommand = async ( input: CreateInvalidationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distribution/{DistributionId}/invalidation"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DistributionId", - () => input.DistributionId!, - "{DistributionId}", - false - ); + b.bp("/2020-05-31/distribution/{DistributionId}/invalidation"); + b.p("DistributionId", () => input.DistributionId!, "{DistributionId}", false); let body: any; let contents: any; if (input.InvalidationBatch !== undefined) { contents = se_InvalidationBatch(input.InvalidationBatch, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1077,28 +958,21 @@ export const se_CreateKeyGroupCommand = async ( input: CreateKeyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group"; + b.bp("/2020-05-31/key-group"); let body: any; let contents: any; if (input.KeyGroupConfig !== undefined) { contents = se_KeyGroupConfig(input.KeyGroupConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1108,38 +982,27 @@ export const se_CreateKeyValueStoreCommand = async ( input: CreateKeyValueStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store"; + b.bp("/2020-05-31/key-value-store"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateKeyValueStoreRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("KeyValueStoreComment", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CKVSR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_KVSC, input[_C]).n(_C)); } - if (input.ImportSource !== undefined) { - const node = se_ImportSource(input.ImportSource, context).withName("ImportSource"); - bodyNode.addChildNode(node); + if (input[_IS] != null) { + bn.c(se_ImportSource(input[_IS], context).n(_IS)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("KeyValueStoreName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_KVSN, input[_N]).n(_N)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1149,38 +1012,22 @@ export const se_CreateMonitoringSubscriptionCommand = async ( input: CreateMonitoringSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DistributionId", - () => input.DistributionId!, - "{DistributionId}", - false - ); + b.bp("/2020-05-31/distributions/{DistributionId}/monitoring-subscription"); + b.p("DistributionId", () => input.DistributionId!, "{DistributionId}", false); let body: any; let contents: any; if (input.MonitoringSubscription !== undefined) { contents = se_MonitoringSubscription(input.MonitoringSubscription, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1190,29 +1037,21 @@ export const se_CreateOriginAccessControlCommand = async ( input: CreateOriginAccessControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control"; + b.bp("/2020-05-31/origin-access-control"); let body: any; let contents: any; if (input.OriginAccessControlConfig !== undefined) { contents = se_OriginAccessControlConfig(input.OriginAccessControlConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1222,29 +1061,21 @@ export const se_CreateOriginRequestPolicyCommand = async ( input: CreateOriginRequestPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-request-policy"; + b.bp("/2020-05-31/origin-request-policy"); let body: any; let contents: any; if (input.OriginRequestPolicyConfig !== undefined) { contents = se_OriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1254,28 +1085,21 @@ export const se_CreatePublicKeyCommand = async ( input: CreatePublicKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key"; + b.bp("/2020-05-31/public-key"); let body: any; let contents: any; if (input.PublicKeyConfig !== undefined) { contents = se_PublicKeyConfig(input.PublicKeyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1285,50 +1109,26 @@ export const se_CreateRealtimeLogConfigCommand = async ( input: CreateRealtimeLogConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/realtime-log-config"; + b.bp("/2020-05-31/realtime-log-config"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateRealtimeLogConfigRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.EndPoints !== undefined) { - const nodes = se_EndPointList(input.EndPoints, context); - const containerNode = new __XmlNode("EndPoints"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.Fields !== undefined) { - const nodes = se_FieldList(input.Fields, context); - const containerNode = new __XmlNode("Fields"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + body = _ve; + const bn = new __XmlNode(_CRLCR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + bn.lc(input, "EndPoints", "EndPoints", () => se_EndPointList(input[_EP]!, context)); + bn.lc(input, "Fields", "Fields", () => se_FieldList(input[_F]!, context)); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_SR] != null) { + bn.c(__XmlNode.of(_l, String(input[_SR])).n(_SR)); } - if (input.SamplingRate !== undefined) { - const node = __XmlNode.of("long", String(input.SamplingRate)).withName("SamplingRate"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1338,29 +1138,21 @@ export const se_CreateResponseHeadersPolicyCommand = async ( input: CreateResponseHeadersPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy"; + b.bp("/2020-05-31/response-headers-policy"); let body: any; let contents: any; if (input.ResponseHeadersPolicyConfig !== undefined) { contents = se_ResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1370,29 +1162,21 @@ export const se_CreateStreamingDistributionCommand = async ( input: CreateStreamingDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution"; + b.bp("/2020-05-31/streaming-distribution"); let body: any; let contents: any; if (input.StreamingDistributionConfig !== undefined) { contents = se_StreamingDistributionConfig(input.StreamingDistributionConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1402,33 +1186,24 @@ export const se_CreateStreamingDistributionWithTagsCommand = async ( input: CreateStreamingDistributionWithTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution"; + b.bp("/2020-05-31/streaming-distribution"); const query: any = map({ - WithTags: [, ""], + [_WT]: [, ""], }); let body: any; let contents: any; if (input.StreamingDistributionConfigWithTags !== undefined) { contents = se_StreamingDistributionConfigWithTags(input.StreamingDistributionConfigWithTags, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1438,23 +1213,15 @@ export const se_DeleteCachePolicyCommand = async ( input: DeleteCachePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/cache-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1464,24 +1231,15 @@ export const se_DeleteCloudFrontOriginAccessIdentityCommand = async ( input: DeleteCloudFrontOriginAccessIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-identity/cloudfront/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-identity/cloudfront/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1491,24 +1249,15 @@ export const se_DeleteContinuousDeploymentPolicyCommand = async ( input: DeleteContinuousDeploymentPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/continuous-deployment-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/continuous-deployment-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1518,23 +1267,15 @@ export const se_DeleteDistributionCommand = async ( input: DeleteDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/distribution/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1544,23 +1285,15 @@ export const se_DeleteFieldLevelEncryptionConfigCommand = async ( input: DeleteFieldLevelEncryptionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/field-level-encryption/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1570,24 +1303,15 @@ export const se_DeleteFieldLevelEncryptionProfileCommand = async ( input: DeleteFieldLevelEncryptionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption-profile/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption-profile/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1597,23 +1321,15 @@ export const se_DeleteFunctionCommand = async ( input: DeleteFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/function/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1623,23 +1339,15 @@ export const se_DeleteKeyGroupCommand = async ( input: DeleteKeyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/key-group/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1649,23 +1357,15 @@ export const se_DeleteKeyValueStoreCommand = async ( input: DeleteKeyValueStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/key-value-store/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1675,29 +1375,13 @@ export const se_DeleteMonitoringSubscriptionCommand = async ( input: DeleteMonitoringSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DistributionId", - () => input.DistributionId!, - "{DistributionId}", - false - ); + b.bp("/2020-05-31/distributions/{DistributionId}/monitoring-subscription"); + b.p("DistributionId", () => input.DistributionId!, "{DistributionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1707,23 +1391,15 @@ export const se_DeleteOriginAccessControlCommand = async ( input: DeleteOriginAccessControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-control/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1733,23 +1409,15 @@ export const se_DeleteOriginRequestPolicyCommand = async ( input: DeleteOriginRequestPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-request-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-request-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1759,23 +1427,15 @@ export const se_DeletePublicKeyCommand = async ( input: DeletePublicKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/public-key/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1785,34 +1445,24 @@ export const se_DeleteRealtimeLogConfigCommand = async ( input: DeleteRealtimeLogConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/delete-realtime-log-config"; + b.bp("/2020-05-31/delete-realtime-log-config"); let body: any; - body = ''; - const bodyNode = new __XmlNode("DeleteRealtimeLogConfigRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.ARN !== undefined) { - const node = __XmlNode.of("string", input.ARN).withName("ARN"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_DRLCR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_ARN] != null) { + bn.c(__XmlNode.of(_st, input[_ARN]).n(_ARN)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1822,23 +1472,15 @@ export const se_DeleteResponseHeadersPolicyCommand = async ( input: DeleteResponseHeadersPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/response-headers-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1848,23 +1490,15 @@ export const se_DeleteStreamingDistributionCommand = async ( input: DeleteStreamingDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/streaming-distribution/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1874,25 +1508,16 @@ export const se_DescribeFunctionCommand = async ( input: DescribeFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}/describe"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/function/{Name}/describe"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - Stage: [, input.Stage!], + [_St]: [, input[_St]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1902,21 +1527,13 @@ export const se_DescribeKeyValueStoreCommand = async ( input: DescribeKeyValueStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/key-value-store/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1926,21 +1543,13 @@ export const se_GetCachePolicyCommand = async ( input: GetCachePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/cache-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1950,21 +1559,13 @@ export const se_GetCachePolicyConfigCommand = async ( input: GetCachePolicyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/cache-policy/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1974,22 +1575,13 @@ export const se_GetCloudFrontOriginAccessIdentityCommand = async ( input: GetCloudFrontOriginAccessIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-identity/cloudfront/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-identity/cloudfront/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1999,22 +1591,13 @@ export const se_GetCloudFrontOriginAccessIdentityConfigCommand = async ( input: GetCloudFrontOriginAccessIdentityConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-identity/cloudfront/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-identity/cloudfront/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2024,22 +1607,13 @@ export const se_GetContinuousDeploymentPolicyCommand = async ( input: GetContinuousDeploymentPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/continuous-deployment-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/continuous-deployment-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2049,22 +1623,13 @@ export const se_GetContinuousDeploymentPolicyConfigCommand = async ( input: GetContinuousDeploymentPolicyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/continuous-deployment-policy/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/continuous-deployment-policy/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2074,21 +1639,13 @@ export const se_GetDistributionCommand = async ( input: GetDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/distribution/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2098,21 +1655,13 @@ export const se_GetDistributionConfigCommand = async ( input: GetDistributionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/distribution/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2122,21 +1671,13 @@ export const se_GetFieldLevelEncryptionCommand = async ( input: GetFieldLevelEncryptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/field-level-encryption/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2146,22 +1687,13 @@ export const se_GetFieldLevelEncryptionConfigCommand = async ( input: GetFieldLevelEncryptionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2171,22 +1703,13 @@ export const se_GetFieldLevelEncryptionProfileCommand = async ( input: GetFieldLevelEncryptionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption-profile/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption-profile/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2196,22 +1719,13 @@ export const se_GetFieldLevelEncryptionProfileConfigCommand = async ( input: GetFieldLevelEncryptionProfileConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption-profile/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption-profile/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2221,25 +1735,16 @@ export const se_GetFunctionCommand = async ( input: GetFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/function/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - Stage: [, input.Stage!], + [_St]: [, input[_St]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2249,30 +1754,14 @@ export const se_GetInvalidationCommand = async ( input: GetInvalidationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distribution/{DistributionId}/invalidation/{Id}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DistributionId", - () => input.DistributionId!, - "{DistributionId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/distribution/{DistributionId}/invalidation/{Id}"); + b.p("DistributionId", () => input.DistributionId!, "{DistributionId}", false); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2282,21 +1771,13 @@ export const se_GetKeyGroupCommand = async ( input: GetKeyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/key-group/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2306,21 +1787,13 @@ export const se_GetKeyGroupConfigCommand = async ( input: GetKeyGroupConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/key-group/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2330,29 +1803,13 @@ export const se_GetMonitoringSubscriptionCommand = async ( input: GetMonitoringSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DistributionId", - () => input.DistributionId!, - "{DistributionId}", - false - ); + b.bp("/2020-05-31/distributions/{DistributionId}/monitoring-subscription"); + b.p("DistributionId", () => input.DistributionId!, "{DistributionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2362,21 +1819,13 @@ export const se_GetOriginAccessControlCommand = async ( input: GetOriginAccessControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-control/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2386,22 +1835,13 @@ export const se_GetOriginAccessControlConfigCommand = async ( input: GetOriginAccessControlConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-control/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-control/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2411,21 +1851,13 @@ export const se_GetOriginRequestPolicyCommand = async ( input: GetOriginRequestPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-request-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-request-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2435,22 +1867,13 @@ export const se_GetOriginRequestPolicyConfigCommand = async ( input: GetOriginRequestPolicyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-request-policy/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-request-policy/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2460,21 +1883,13 @@ export const se_GetPublicKeyCommand = async ( input: GetPublicKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/public-key/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2484,21 +1899,13 @@ export const se_GetPublicKeyConfigCommand = async ( input: GetPublicKeyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/public-key/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2508,34 +1915,24 @@ export const se_GetRealtimeLogConfigCommand = async ( input: GetRealtimeLogConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/get-realtime-log-config"; + b.bp("/2020-05-31/get-realtime-log-config"); let body: any; - body = ''; - const bodyNode = new __XmlNode("GetRealtimeLogConfigRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.ARN !== undefined) { - const node = __XmlNode.of("string", input.ARN).withName("ARN"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_GRLCR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_ARN] != null) { + bn.c(__XmlNode.of(_st, input[_ARN]).n(_ARN)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2545,21 +1942,13 @@ export const se_GetResponseHeadersPolicyCommand = async ( input: GetResponseHeadersPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/response-headers-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2569,22 +1958,13 @@ export const se_GetResponseHeadersPolicyConfigCommand = async ( input: GetResponseHeadersPolicyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/response-headers-policy/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/response-headers-policy/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2594,21 +1974,13 @@ export const se_GetStreamingDistributionCommand = async ( input: GetStreamingDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/streaming-distribution/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2618,22 +1990,13 @@ export const se_GetStreamingDistributionConfigCommand = async ( input: GetStreamingDistributionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/streaming-distribution/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/streaming-distribution/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2643,26 +2006,17 @@ export const se_ListCachePoliciesCommand = async ( input: ListCachePoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy"; + b.bp("/2020-05-31/cache-policy"); const query: any = map({ - Type: [, input.Type!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_T]: [, input[_T]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2672,26 +2026,16 @@ export const se_ListCloudFrontOriginAccessIdentitiesCommand = async ( input: ListCloudFrontOriginAccessIdentitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-identity/cloudfront"; + b.bp("/2020-05-31/origin-access-identity/cloudfront"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2701,27 +2045,18 @@ export const se_ListConflictingAliasesCommand = async ( input: ListConflictingAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/conflicting-alias"; + b.bp("/2020-05-31/conflicting-alias"); const query: any = map({ - DistributionId: [, __expectNonNull(input.DistributionId!, `DistributionId`)], - Alias: [, __expectNonNull(input.Alias!, `Alias`)], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_DI]: [, __expectNonNull(input[_DI]!, `DistributionId`)], + [_A]: [, __expectNonNull(input[_A]!, `Alias`)], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2731,25 +2066,16 @@ export const se_ListContinuousDeploymentPoliciesCommand = async ( input: ListContinuousDeploymentPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/continuous-deployment-policy"; + b.bp("/2020-05-31/continuous-deployment-policy"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2759,25 +2085,16 @@ export const se_ListDistributionsCommand = async ( input: ListDistributionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution"; + b.bp("/2020-05-31/distribution"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2787,34 +2104,17 @@ export const se_ListDistributionsByCachePolicyIdCommand = async ( input: ListDistributionsByCachePolicyIdCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CachePolicyId", - () => input.CachePolicyId!, - "{CachePolicyId}", - false - ); + b.bp("/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}"); + b.p("CachePolicyId", () => input.CachePolicyId!, "{CachePolicyId}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2824,27 +2124,17 @@ export const se_ListDistributionsByKeyGroupCommand = async ( input: ListDistributionsByKeyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "KeyGroupId", () => input.KeyGroupId!, "{KeyGroupId}", false); + b.bp("/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}"); + b.p("KeyGroupId", () => input.KeyGroupId!, "{KeyGroupId}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2854,34 +2144,17 @@ export const se_ListDistributionsByOriginRequestPolicyIdCommand = async ( input: ListDistributionsByOriginRequestPolicyIdCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OriginRequestPolicyId", - () => input.OriginRequestPolicyId!, - "{OriginRequestPolicyId}", - false - ); + b.bp("/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}"); + b.p("OriginRequestPolicyId", () => input.OriginRequestPolicyId!, "{OriginRequestPolicyId}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2891,43 +2164,30 @@ export const se_ListDistributionsByRealtimeLogConfigCommand = async ( input: ListDistributionsByRealtimeLogConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributionsByRealtimeLogConfig"; + b.bp("/2020-05-31/distributionsByRealtimeLogConfig"); let body: any; - body = ''; - const bodyNode = new __XmlNode("ListDistributionsByRealtimeLogConfigRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.Marker !== undefined) { - const node = __XmlNode.of("string", input.Marker).withName("Marker"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_LDBRLCR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_M] != null) { + bn.c(__XmlNode.of(_st, input[_M]).n(_M)); } - if (input.MaxItems !== undefined) { - const node = __XmlNode.of("Integer", String(input.MaxItems)).withName("MaxItems"); - bodyNode.addChildNode(node); + if (input[_MI] != null) { + bn.c(__XmlNode.of(_I, String(input[_MI])).n(_MI)); } - if (input.RealtimeLogConfigArn !== undefined) { - const node = __XmlNode.of("string", input.RealtimeLogConfigArn).withName("RealtimeLogConfigArn"); - bodyNode.addChildNode(node); + if (input[_RLCA] != null) { + bn.c(__XmlNode.of(_st, input[_RLCA]).n(_RLCA)); } - if (input.RealtimeLogConfigName !== undefined) { - const node = __XmlNode.of("string", input.RealtimeLogConfigName).withName("RealtimeLogConfigName"); - bodyNode.addChildNode(node); + if (input[_RLCN] != null) { + bn.c(__XmlNode.of(_st, input[_RLCN]).n(_RLCN)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2937,34 +2197,17 @@ export const se_ListDistributionsByResponseHeadersPolicyIdCommand = async ( input: ListDistributionsByResponseHeadersPolicyIdCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResponseHeadersPolicyId", - () => input.ResponseHeadersPolicyId!, - "{ResponseHeadersPolicyId}", - false - ); + b.bp("/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}"); + b.p("ResponseHeadersPolicyId", () => input.ResponseHeadersPolicyId!, "{ResponseHeadersPolicyId}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2974,27 +2217,17 @@ export const se_ListDistributionsByWebACLIdCommand = async ( input: ListDistributionsByWebACLIdCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distributionsByWebACLId/{WebACLId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WebACLId", () => input.WebACLId!, "{WebACLId}", false); + b.bp("/2020-05-31/distributionsByWebACLId/{WebACLId}"); + b.p("WebACLId", () => input.WebACLId!, "{WebACLId}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3004,25 +2237,16 @@ export const se_ListFieldLevelEncryptionConfigsCommand = async ( input: ListFieldLevelEncryptionConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/field-level-encryption"; + b.bp("/2020-05-31/field-level-encryption"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3032,26 +2256,16 @@ export const se_ListFieldLevelEncryptionProfilesCommand = async ( input: ListFieldLevelEncryptionProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption-profile"; + b.bp("/2020-05-31/field-level-encryption-profile"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3061,25 +2275,17 @@ export const se_ListFunctionsCommand = async ( input: ListFunctionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function"; + b.bp("/2020-05-31/function"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - Stage: [, input.Stage!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_St]: [, input[_St]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3089,34 +2295,17 @@ export const se_ListInvalidationsCommand = async ( input: ListInvalidationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distribution/{DistributionId}/invalidation"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DistributionId", - () => input.DistributionId!, - "{DistributionId}", - false - ); + b.bp("/2020-05-31/distribution/{DistributionId}/invalidation"); + b.p("DistributionId", () => input.DistributionId!, "{DistributionId}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3126,24 +2315,16 @@ export const se_ListKeyGroupsCommand = async ( input: ListKeyGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group"; + b.bp("/2020-05-31/key-group"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3153,26 +2334,17 @@ export const se_ListKeyValueStoresCommand = async ( input: ListKeyValueStoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store"; + b.bp("/2020-05-31/key-value-store"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - Status: [, input.Status!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_Sta]: [, input[_Sta]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3182,25 +2354,16 @@ export const se_ListOriginAccessControlsCommand = async ( input: ListOriginAccessControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control"; + b.bp("/2020-05-31/origin-access-control"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3210,26 +2373,17 @@ export const se_ListOriginRequestPoliciesCommand = async ( input: ListOriginRequestPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-request-policy"; + b.bp("/2020-05-31/origin-request-policy"); const query: any = map({ - Type: [, input.Type!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_T]: [, input[_T]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3239,24 +2393,16 @@ export const se_ListPublicKeysCommand = async ( input: ListPublicKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key"; + b.bp("/2020-05-31/public-key"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3266,25 +2412,16 @@ export const se_ListRealtimeLogConfigsCommand = async ( input: ListRealtimeLogConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/realtime-log-config"; + b.bp("/2020-05-31/realtime-log-config"); const query: any = map({ - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - Marker: [, input.Marker!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_M]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3294,26 +2431,17 @@ export const se_ListResponseHeadersPoliciesCommand = async ( input: ListResponseHeadersPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy"; + b.bp("/2020-05-31/response-headers-policy"); const query: any = map({ - Type: [, input.Type!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_T]: [, input[_T]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3323,25 +2451,16 @@ export const se_ListStreamingDistributionsCommand = async ( input: ListStreamingDistributionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/streaming-distribution"; + b.bp("/2020-05-31/streaming-distribution"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3351,23 +2470,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/tagging"; + b.bp("/2020-05-31/tagging"); const query: any = map({ - Resource: [, __expectNonNull(input.Resource!, `Resource`)], + [_R]: [, __expectNonNull(input[_R]!, `Resource`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3377,23 +2488,15 @@ export const se_PublishFunctionCommand = async ( input: PublishFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}/publish"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/function/{Name}/publish"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3403,33 +2506,25 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/tagging"; + b.bp("/2020-05-31/tagging"); const query: any = map({ - Operation: [, "Tag"], - Resource: [, __expectNonNull(input.Resource!, `Resource`)], + [_O]: [, "Tag"], + [_R]: [, __expectNonNull(input[_R]!, `Resource`)], }); let body: any; let contents: any; if (input.Tags !== undefined) { contents = se_Tags(input.Tags, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3439,36 +2534,26 @@ export const se_TestFunctionCommand = async ( input: TestFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}/test"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/function/{Name}/test"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("TestFunctionRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.EventObject !== undefined) { - const node = __XmlNode.of("FunctionEventObject", context.base64Encoder(input.EventObject)).withName("EventObject"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_TFR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_EO] != null) { + bn.c(__XmlNode.of(_FEO, context.base64Encoder(input[_EO])).n(_EO)); } - if (input.Stage !== undefined) { - const node = __XmlNode.of("FunctionStage", input.Stage).withName("Stage"); - bodyNode.addChildNode(node); + if (input[_St] != null) { + bn.c(__XmlNode.of(_FS, input[_St]).n(_St)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3478,33 +2563,25 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/tagging"; + b.bp("/2020-05-31/tagging"); const query: any = map({ - Operation: [, "Untag"], - Resource: [, __expectNonNull(input.Resource!, `Resource`)], + [_O]: [, "Untag"], + [_R]: [, __expectNonNull(input[_R]!, `Resource`)], }); let body: any; let contents: any; if (input.TagKeys !== undefined) { contents = se_TagKeys(input.TagKeys, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3514,31 +2591,23 @@ export const se_UpdateCachePolicyCommand = async ( input: UpdateCachePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/cache-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/cache-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.CachePolicyConfig !== undefined) { contents = se_CachePolicyConfig(input.CachePolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3548,32 +2617,23 @@ export const se_UpdateCloudFrontOriginAccessIdentityCommand = async ( input: UpdateCloudFrontOriginAccessIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-identity/cloudfront/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-identity/cloudfront/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.CloudFrontOriginAccessIdentityConfig !== undefined) { contents = se_CloudFrontOriginAccessIdentityConfig(input.CloudFrontOriginAccessIdentityConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3583,32 +2643,23 @@ export const se_UpdateContinuousDeploymentPolicyCommand = async ( input: UpdateContinuousDeploymentPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/continuous-deployment-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/continuous-deployment-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.ContinuousDeploymentPolicyConfig !== undefined) { contents = se_ContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3618,31 +2669,23 @@ export const se_UpdateDistributionCommand = async ( input: UpdateDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/distribution/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/distribution/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.DistributionConfig !== undefined) { contents = se_DistributionConfig(input.DistributionConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3652,28 +2695,18 @@ export const se_UpdateDistributionWithStagingConfigCommand = async ( input: UpdateDistributionWithStagingConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/distribution/{Id}/promote-staging-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/distribution/{Id}/promote-staging-config"); + b.p("Id", () => input.Id!, "{Id}", false); const query: any = map({ - StagingDistributionId: [, input.StagingDistributionId!], + [_SDI]: [, input[_SDI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3683,32 +2716,23 @@ export const se_UpdateFieldLevelEncryptionConfigCommand = async ( input: UpdateFieldLevelEncryptionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.FieldLevelEncryptionConfig !== undefined) { contents = se_FieldLevelEncryptionConfig(input.FieldLevelEncryptionConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3718,32 +2742,23 @@ export const se_UpdateFieldLevelEncryptionProfileCommand = async ( input: UpdateFieldLevelEncryptionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/field-level-encryption-profile/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/field-level-encryption-profile/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.FieldLevelEncryptionProfileConfig !== undefined) { contents = se_FieldLevelEncryptionProfileConfig(input.FieldLevelEncryptionProfileConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3753,36 +2768,26 @@ export const se_UpdateFunctionCommand = async ( input: UpdateFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/function/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/function/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateFunctionRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.FunctionCode !== undefined) { - const node = __XmlNode.of("FunctionBlob", context.base64Encoder(input.FunctionCode)).withName("FunctionCode"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_UFR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_FC] != null) { + bn.c(__XmlNode.of(_FB, context.base64Encoder(input[_FC])).n(_FC)); } - if (input.FunctionConfig !== undefined) { - const node = se_FunctionConfig(input.FunctionConfig, context).withName("FunctionConfig"); - bodyNode.addChildNode(node); + if (input[_FCu] != null) { + bn.c(se_FunctionConfig(input[_FCu], context).n(_FCu)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3792,31 +2797,23 @@ export const se_UpdateKeyGroupCommand = async ( input: UpdateKeyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-group/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/key-group/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.KeyGroupConfig !== undefined) { contents = se_KeyGroupConfig(input.KeyGroupConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3826,32 +2823,23 @@ export const se_UpdateKeyValueStoreCommand = async ( input: UpdateKeyValueStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/key-value-store/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2020-05-31/key-value-store/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateKeyValueStoreRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("KeyValueStoreComment", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_UKVSR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_KVSC, input[_C]).n(_C)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3861,32 +2849,23 @@ export const se_UpdateOriginAccessControlCommand = async ( input: UpdateOriginAccessControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/origin-access-control/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-access-control/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.OriginAccessControlConfig !== undefined) { contents = se_OriginAccessControlConfig(input.OriginAccessControlConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3896,31 +2875,23 @@ export const se_UpdateOriginRequestPolicyCommand = async ( input: UpdateOriginRequestPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-request-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/origin-request-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.OriginRequestPolicyConfig !== undefined) { contents = se_OriginRequestPolicyConfig(input.OriginRequestPolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3930,31 +2901,23 @@ export const se_UpdatePublicKeyCommand = async ( input: UpdatePublicKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/public-key/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/public-key/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.PublicKeyConfig !== undefined) { contents = se_PublicKeyConfig(input.PublicKeyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3964,54 +2927,29 @@ export const se_UpdateRealtimeLogConfigCommand = async ( input: UpdateRealtimeLogConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/realtime-log-config"; + b.bp("/2020-05-31/realtime-log-config"); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateRealtimeLogConfigRequest"); - bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); - if (input.ARN !== undefined) { - const node = __XmlNode.of("string", input.ARN).withName("ARN"); - bodyNode.addChildNode(node); - } - if (input.EndPoints !== undefined) { - const nodes = se_EndPointList(input.EndPoints, context); - const containerNode = new __XmlNode("EndPoints"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.Fields !== undefined) { - const nodes = se_FieldList(input.Fields, context); - const containerNode = new __XmlNode("Fields"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + body = _ve; + const bn = new __XmlNode(_URLCR); + bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + if (input[_ARN] != null) { + bn.c(__XmlNode.of(_st, input[_ARN]).n(_ARN)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + bn.lc(input, "EndPoints", "EndPoints", () => se_EndPointList(input[_EP]!, context)); + bn.lc(input, "Fields", "Fields", () => se_FieldList(input[_F]!, context)); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.SamplingRate !== undefined) { - const node = __XmlNode.of("long", String(input.SamplingRate)).withName("SamplingRate"); - bodyNode.addChildNode(node); + if (input[_SR] != null) { + bn.c(__XmlNode.of(_l, String(input[_SR])).n(_SR)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4021,31 +2959,23 @@ export const se_UpdateResponseHeadersPolicyCommand = async ( input: UpdateResponseHeadersPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/response-headers-policy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/response-headers-policy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.ResponseHeadersPolicyConfig !== undefined) { contents = se_ResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4055,32 +2985,23 @@ export const se_UpdateStreamingDistributionCommand = async ( input: UpdateStreamingDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "if-match": input.IfMatch!, + [_im]: input[_IM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-05-31/streaming-distribution/{Id}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2020-05-31/streaming-distribution/{Id}/config"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; let contents: any; if (input.StreamingDistributionConfig !== undefined) { contents = se_StreamingDistributionConfig(input.StreamingDistributionConfig, context); - body = ''; - contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); + body = _ve; + contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4150,8 +3071,8 @@ export const de_CopyDistributionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = de_Distribution(data, context); @@ -4385,8 +3306,8 @@ export const de_CreateCachePolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicy = de_CachePolicy(data, context); @@ -4452,8 +3373,8 @@ export const de_CreateCloudFrontOriginAccessIdentityCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentity = de_CloudFrontOriginAccessIdentity(data, context); @@ -4510,8 +3431,8 @@ export const de_CreateContinuousDeploymentPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ContinuousDeploymentPolicy = de_ContinuousDeploymentPolicy(data, context); @@ -4571,8 +3492,8 @@ export const de_CreateDistributionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = de_Distribution(data, context); @@ -4809,8 +3730,8 @@ export const de_CreateDistributionWithTagsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = de_Distribution(data, context); @@ -5050,8 +3971,8 @@ export const de_CreateFieldLevelEncryptionConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryption = de_FieldLevelEncryption(data, context); @@ -5117,8 +4038,8 @@ export const de_CreateFieldLevelEncryptionProfileCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfile = de_FieldLevelEncryptionProfile(data, context); @@ -5184,8 +4105,8 @@ export const de_CreateFunctionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionSummary = de_FunctionSummary(data, context); @@ -5242,7 +4163,7 @@ export const de_CreateInvalidationCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_lo]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Invalidation = de_Invalidation(data, context); @@ -5305,8 +4226,8 @@ export const de_CreateKeyGroupCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroup = de_KeyGroup(data, context); @@ -5360,8 +4281,8 @@ export const de_CreateKeyValueStoreCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], - Location: [, output.headers["location"]], + [_ET]: [, output.headers[_e]], + [_L]: [, output.headers[_lo]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyValueStore = de_KeyValueStore(data, context); @@ -5471,8 +4392,8 @@ export const de_CreateOriginAccessControlCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginAccessControl = de_OriginAccessControl(data, context); @@ -5523,8 +4444,8 @@ export const de_CreateOriginRequestPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicy = de_OriginRequestPolicy(data, context); @@ -5590,8 +4511,8 @@ export const de_CreatePublicKeyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKey = de_PublicKey(data, context); @@ -5644,8 +4565,8 @@ export const de_CreateRealtimeLogConfigCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["RealtimeLogConfig"] !== undefined) { - contents.RealtimeLogConfig = de_RealtimeLogConfig(data["RealtimeLogConfig"], context); + if (data[_RLC] != null) { + contents[_RLC] = de_RealtimeLogConfig(data[_RLC], context); } return contents; }; @@ -5697,8 +4618,8 @@ export const de_CreateResponseHeadersPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicy = de_ResponseHeadersPolicy(data, context); @@ -5764,8 +4685,8 @@ export const de_CreateStreamingDistributionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = de_StreamingDistribution(data, context); @@ -5846,8 +4767,8 @@ export const de_CreateStreamingDistributionWithTagsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], - ETag: [, output.headers["etag"]], + [_L]: [, output.headers[_lo]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = de_StreamingDistribution(data, context); @@ -6814,7 +5735,7 @@ export const de_DescribeFunctionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionSummary = de_FunctionSummary(data, context); @@ -6862,7 +5783,7 @@ export const de_DescribeKeyValueStoreCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyValueStore = de_KeyValueStore(data, context); @@ -6913,7 +5834,7 @@ export const de_GetCachePolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicy = de_CachePolicy(data, context); @@ -6961,7 +5882,7 @@ export const de_GetCachePolicyConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicyConfig = de_CachePolicyConfig(data, context); @@ -7009,7 +5930,7 @@ export const de_GetCloudFrontOriginAccessIdentityCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentity = de_CloudFrontOriginAccessIdentity(data, context); @@ -7057,7 +5978,7 @@ export const de_GetCloudFrontOriginAccessIdentityConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentityConfig = de_CloudFrontOriginAccessIdentityConfig(data, context); @@ -7105,7 +6026,7 @@ export const de_GetContinuousDeploymentPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ContinuousDeploymentPolicy = de_ContinuousDeploymentPolicy(data, context); @@ -7153,7 +6074,7 @@ export const de_GetContinuousDeploymentPolicyConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ContinuousDeploymentPolicyConfig = de_ContinuousDeploymentPolicyConfig(data, context); @@ -7201,7 +6122,7 @@ export const de_GetDistributionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = de_Distribution(data, context); @@ -7249,7 +6170,7 @@ export const de_GetDistributionConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionConfig = de_DistributionConfig(data, context); @@ -7297,7 +6218,7 @@ export const de_GetFieldLevelEncryptionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryption = de_FieldLevelEncryption(data, context); @@ -7345,7 +6266,7 @@ export const de_GetFieldLevelEncryptionConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionConfig = de_FieldLevelEncryptionConfig(data, context); @@ -7393,7 +6314,7 @@ export const de_GetFieldLevelEncryptionProfileCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfile = de_FieldLevelEncryptionProfile(data, context); @@ -7441,7 +6362,7 @@ export const de_GetFieldLevelEncryptionProfileConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfileConfig = de_FieldLevelEncryptionProfileConfig(data, context); @@ -7489,8 +6410,8 @@ export const de_GetFunctionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], - ContentType: [, output.headers["content-type"]], + [_ET]: [, output.headers[_e]], + [_CT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.FunctionCode = data; @@ -7588,7 +6509,7 @@ export const de_GetKeyGroupCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroup = de_KeyGroup(data, context); @@ -7633,7 +6554,7 @@ export const de_GetKeyGroupConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroupConfig = de_KeyGroupConfig(data, context); @@ -7731,7 +6652,7 @@ export const de_GetOriginAccessControlCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginAccessControl = de_OriginAccessControl(data, context); @@ -7779,7 +6700,7 @@ export const de_GetOriginAccessControlConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginAccessControlConfig = de_OriginAccessControlConfig(data, context); @@ -7827,7 +6748,7 @@ export const de_GetOriginRequestPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicy = de_OriginRequestPolicy(data, context); @@ -7875,7 +6796,7 @@ export const de_GetOriginRequestPolicyConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicyConfig = de_OriginRequestPolicyConfig(data, context); @@ -7923,7 +6844,7 @@ export const de_GetPublicKeyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKey = de_PublicKey(data, context); @@ -7971,7 +6892,7 @@ export const de_GetPublicKeyConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKeyConfig = de_PublicKeyConfig(data, context); @@ -8021,8 +6942,8 @@ export const de_GetRealtimeLogConfigCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["RealtimeLogConfig"] !== undefined) { - contents.RealtimeLogConfig = de_RealtimeLogConfig(data["RealtimeLogConfig"], context); + if (data[_RLC] != null) { + contents[_RLC] = de_RealtimeLogConfig(data[_RLC], context); } return contents; }; @@ -8071,7 +6992,7 @@ export const de_GetResponseHeadersPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicy = de_ResponseHeadersPolicy(data, context); @@ -8119,7 +7040,7 @@ export const de_GetResponseHeadersPolicyConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicyConfig = de_ResponseHeadersPolicyConfig(data, context); @@ -8167,7 +7088,7 @@ export const de_GetStreamingDistributionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = de_StreamingDistribution(data, context); @@ -8215,7 +7136,7 @@ export const de_GetStreamingDistributionConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistributionConfig = de_StreamingDistributionConfig(data, context); @@ -9613,7 +8534,7 @@ export const de_UpdateCachePolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicy = de_CachePolicy(data, context); @@ -9688,7 +8609,7 @@ export const de_UpdateCloudFrontOriginAccessIdentityCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentity = de_CloudFrontOriginAccessIdentity(data, context); @@ -9754,7 +8675,7 @@ export const de_UpdateContinuousDeploymentPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ContinuousDeploymentPolicy = de_ContinuousDeploymentPolicy(data, context); @@ -9817,7 +8738,7 @@ export const de_UpdateDistributionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = de_Distribution(data, context); @@ -10057,7 +8978,7 @@ export const de_UpdateDistributionWithStagingConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = de_Distribution(data, context); @@ -10282,7 +9203,7 @@ export const de_UpdateFieldLevelEncryptionConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryption = de_FieldLevelEncryption(data, context); @@ -10357,7 +9278,7 @@ export const de_UpdateFieldLevelEncryptionProfileCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfile = de_FieldLevelEncryptionProfile(data, context); @@ -10435,7 +9356,7 @@ export const de_UpdateFunctionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["ettag"]], + [_ET]: [, output.headers[_et]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionSummary = de_FunctionSummary(data, context); @@ -10495,7 +9416,7 @@ export const de_UpdateKeyGroupCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroup = de_KeyGroup(data, context); @@ -10555,7 +9476,7 @@ export const de_UpdateKeyValueStoreCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyValueStore = de_KeyValueStore(data, context); @@ -10612,7 +9533,7 @@ export const de_UpdateOriginAccessControlCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginAccessControl = de_OriginAccessControl(data, context); @@ -10675,7 +9596,7 @@ export const de_UpdateOriginRequestPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicy = de_OriginRequestPolicy(data, context); @@ -10750,7 +9671,7 @@ export const de_UpdatePublicKeyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKey = de_PublicKey(data, context); @@ -10815,8 +9736,8 @@ export const de_UpdateRealtimeLogConfigCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["RealtimeLogConfig"] !== undefined) { - contents.RealtimeLogConfig = de_RealtimeLogConfig(data["RealtimeLogConfig"], context); + if (data[_RLC] != null) { + contents[_RLC] = de_RealtimeLogConfig(data[_RLC], context); } return contents; }; @@ -10865,7 +9786,7 @@ export const de_UpdateResponseHeadersPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicy = de_ResponseHeadersPolicy(data, context); @@ -10940,7 +9861,7 @@ export const de_UpdateStreamingDistributionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], + [_ET]: [, output.headers[_e]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = de_StreamingDistribution(data, context); @@ -11019,8 +9940,8 @@ const throwDefaultError = withBaseException(__BaseException); const de_AccessDeniedRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new AccessDenied({ $metadata: deserializeMetadata(parsedOutput), @@ -11035,8 +9956,8 @@ const de_AccessDeniedRes = async (parsedOutput: any, context: __SerdeContext): P const de_BatchTooLargeRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new BatchTooLarge({ $metadata: deserializeMetadata(parsedOutput), @@ -11054,8 +9975,8 @@ const de_CachePolicyAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CachePolicyAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11070,8 +9991,8 @@ const de_CachePolicyAlreadyExistsRes = async ( const de_CachePolicyInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CachePolicyInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -11089,8 +10010,8 @@ const de_CannotChangeImmutablePublicKeyFieldsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CannotChangeImmutablePublicKeyFields({ $metadata: deserializeMetadata(parsedOutput), @@ -11108,8 +10029,8 @@ const de_CannotDeleteEntityWhileInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CannotDeleteEntityWhileInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -11127,8 +10048,8 @@ const de_CloudFrontOriginAccessIdentityAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CloudFrontOriginAccessIdentityAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11146,8 +10067,8 @@ const de_CloudFrontOriginAccessIdentityInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CloudFrontOriginAccessIdentityInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -11162,8 +10083,8 @@ const de_CloudFrontOriginAccessIdentityInUseRes = async ( const de_CNAMEAlreadyExistsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CNAMEAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11181,8 +10102,8 @@ const de_ContinuousDeploymentPolicyAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new ContinuousDeploymentPolicyAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11200,8 +10121,8 @@ const de_ContinuousDeploymentPolicyInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new ContinuousDeploymentPolicyInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -11219,8 +10140,8 @@ const de_DistributionAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new DistributionAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11238,8 +10159,8 @@ const de_DistributionNotDisabledRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new DistributionNotDisabled({ $metadata: deserializeMetadata(parsedOutput), @@ -11254,8 +10175,8 @@ const de_DistributionNotDisabledRes = async ( const de_EntityAlreadyExistsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new EntityAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11270,8 +10191,8 @@ const de_EntityAlreadyExistsRes = async (parsedOutput: any, context: __SerdeCont const de_EntityLimitExceededRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new EntityLimitExceeded({ $metadata: deserializeMetadata(parsedOutput), @@ -11286,8 +10207,8 @@ const de_EntityLimitExceededRes = async (parsedOutput: any, context: __SerdeCont const de_EntityNotFoundRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new EntityNotFound({ $metadata: deserializeMetadata(parsedOutput), @@ -11305,8 +10226,8 @@ const de_EntitySizeLimitExceededRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new EntitySizeLimitExceeded({ $metadata: deserializeMetadata(parsedOutput), @@ -11324,8 +10245,8 @@ const de_FieldLevelEncryptionConfigAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FieldLevelEncryptionConfigAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11343,8 +10264,8 @@ const de_FieldLevelEncryptionConfigInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FieldLevelEncryptionConfigInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -11362,8 +10283,8 @@ const de_FieldLevelEncryptionProfileAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FieldLevelEncryptionProfileAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11381,8 +10302,8 @@ const de_FieldLevelEncryptionProfileInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FieldLevelEncryptionProfileInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -11400,8 +10321,8 @@ const de_FieldLevelEncryptionProfileSizeExceededRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FieldLevelEncryptionProfileSizeExceeded({ $metadata: deserializeMetadata(parsedOutput), @@ -11419,8 +10340,8 @@ const de_FunctionAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FunctionAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -11435,8 +10356,8 @@ const de_FunctionAlreadyExistsRes = async ( const de_FunctionInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FunctionInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -11454,8 +10375,8 @@ const de_FunctionSizeLimitExceededRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new FunctionSizeLimitExceeded({ $metadata: deserializeMetadata(parsedOutput), @@ -11470,8 +10391,8 @@ const de_FunctionSizeLimitExceededRes = async ( const de_IllegalDeleteRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new IllegalDelete({ $metadata: deserializeMetadata(parsedOutput), @@ -11489,8 +10410,8 @@ const de_IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorRes = asyn ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior({ $metadata: deserializeMetadata(parsedOutput), @@ -11508,8 +10429,8 @@ const de_IllegalOriginAccessConfigurationRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new IllegalOriginAccessConfiguration({ $metadata: deserializeMetadata(parsedOutput), @@ -11524,8 +10445,8 @@ const de_IllegalOriginAccessConfigurationRes = async ( const de_IllegalUpdateRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new IllegalUpdate({ $metadata: deserializeMetadata(parsedOutput), @@ -11543,8 +10464,8 @@ const de_InconsistentQuantitiesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InconsistentQuantities({ $metadata: deserializeMetadata(parsedOutput), @@ -11559,8 +10480,8 @@ const de_InconsistentQuantitiesRes = async ( const de_InvalidArgumentRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidArgument({ $metadata: deserializeMetadata(parsedOutput), @@ -11578,8 +10499,8 @@ const de_InvalidDefaultRootObjectRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidDefaultRootObject({ $metadata: deserializeMetadata(parsedOutput), @@ -11597,8 +10518,8 @@ const de_InvalidDomainNameForOriginAccessControlRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidDomainNameForOriginAccessControl({ $metadata: deserializeMetadata(parsedOutput), @@ -11613,8 +10534,8 @@ const de_InvalidDomainNameForOriginAccessControlRes = async ( const de_InvalidErrorCodeRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidErrorCode({ $metadata: deserializeMetadata(parsedOutput), @@ -11632,8 +10553,8 @@ const de_InvalidForwardCookiesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidForwardCookies({ $metadata: deserializeMetadata(parsedOutput), @@ -11651,8 +10572,8 @@ const de_InvalidFunctionAssociationRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidFunctionAssociation({ $metadata: deserializeMetadata(parsedOutput), @@ -11670,8 +10591,8 @@ const de_InvalidGeoRestrictionParameterRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidGeoRestrictionParameter({ $metadata: deserializeMetadata(parsedOutput), @@ -11689,8 +10610,8 @@ const de_InvalidHeadersForS3OriginRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidHeadersForS3Origin({ $metadata: deserializeMetadata(parsedOutput), @@ -11708,8 +10629,8 @@ const de_InvalidIfMatchVersionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidIfMatchVersion({ $metadata: deserializeMetadata(parsedOutput), @@ -11727,8 +10648,8 @@ const de_InvalidLambdaFunctionAssociationRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidLambdaFunctionAssociation({ $metadata: deserializeMetadata(parsedOutput), @@ -11743,8 +10664,8 @@ const de_InvalidLambdaFunctionAssociationRes = async ( const de_InvalidLocationCodeRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidLocationCode({ $metadata: deserializeMetadata(parsedOutput), @@ -11762,8 +10683,8 @@ const de_InvalidMinimumProtocolVersionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidMinimumProtocolVersion({ $metadata: deserializeMetadata(parsedOutput), @@ -11778,8 +10699,8 @@ const de_InvalidMinimumProtocolVersionRes = async ( const de_InvalidOriginRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidOrigin({ $metadata: deserializeMetadata(parsedOutput), @@ -11797,8 +10718,8 @@ const de_InvalidOriginAccessControlRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidOriginAccessControl({ $metadata: deserializeMetadata(parsedOutput), @@ -11816,8 +10737,8 @@ const de_InvalidOriginAccessIdentityRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidOriginAccessIdentity({ $metadata: deserializeMetadata(parsedOutput), @@ -11835,8 +10756,8 @@ const de_InvalidOriginKeepaliveTimeoutRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidOriginKeepaliveTimeout({ $metadata: deserializeMetadata(parsedOutput), @@ -11854,8 +10775,8 @@ const de_InvalidOriginReadTimeoutRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidOriginReadTimeout({ $metadata: deserializeMetadata(parsedOutput), @@ -11873,8 +10794,8 @@ const de_InvalidProtocolSettingsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidProtocolSettings({ $metadata: deserializeMetadata(parsedOutput), @@ -11892,8 +10813,8 @@ const de_InvalidQueryStringParametersRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidQueryStringParameters({ $metadata: deserializeMetadata(parsedOutput), @@ -11908,8 +10829,8 @@ const de_InvalidQueryStringParametersRes = async ( const de_InvalidRelativePathRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidRelativePath({ $metadata: deserializeMetadata(parsedOutput), @@ -11927,8 +10848,8 @@ const de_InvalidRequiredProtocolRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidRequiredProtocol({ $metadata: deserializeMetadata(parsedOutput), @@ -11943,8 +10864,8 @@ const de_InvalidRequiredProtocolRes = async ( const de_InvalidResponseCodeRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidResponseCode({ $metadata: deserializeMetadata(parsedOutput), @@ -11959,8 +10880,8 @@ const de_InvalidResponseCodeRes = async (parsedOutput: any, context: __SerdeCont const de_InvalidTaggingRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidTagging({ $metadata: deserializeMetadata(parsedOutput), @@ -11975,8 +10896,8 @@ const de_InvalidTaggingRes = async (parsedOutput: any, context: __SerdeContext): const de_InvalidTTLOrderRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidTTLOrder({ $metadata: deserializeMetadata(parsedOutput), @@ -11994,8 +10915,8 @@ const de_InvalidViewerCertificateRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidViewerCertificate({ $metadata: deserializeMetadata(parsedOutput), @@ -12010,8 +10931,8 @@ const de_InvalidViewerCertificateRes = async ( const de_InvalidWebACLIdRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidWebACLId({ $metadata: deserializeMetadata(parsedOutput), @@ -12029,8 +10950,8 @@ const de_KeyGroupAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new KeyGroupAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12045,8 +10966,8 @@ const de_KeyGroupAlreadyExistsRes = async ( const de_MissingBodyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new MissingBody({ $metadata: deserializeMetadata(parsedOutput), @@ -12064,8 +10985,8 @@ const de_MonitoringSubscriptionAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new MonitoringSubscriptionAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12080,8 +11001,8 @@ const de_MonitoringSubscriptionAlreadyExistsRes = async ( const de_NoSuchCachePolicyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchCachePolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12099,8 +11020,8 @@ const de_NoSuchCloudFrontOriginAccessIdentityRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchCloudFrontOriginAccessIdentity({ $metadata: deserializeMetadata(parsedOutput), @@ -12118,8 +11039,8 @@ const de_NoSuchContinuousDeploymentPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchContinuousDeploymentPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12134,8 +11055,8 @@ const de_NoSuchContinuousDeploymentPolicyRes = async ( const de_NoSuchDistributionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchDistribution({ $metadata: deserializeMetadata(parsedOutput), @@ -12153,8 +11074,8 @@ const de_NoSuchFieldLevelEncryptionConfigRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchFieldLevelEncryptionConfig({ $metadata: deserializeMetadata(parsedOutput), @@ -12172,8 +11093,8 @@ const de_NoSuchFieldLevelEncryptionProfileRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchFieldLevelEncryptionProfile({ $metadata: deserializeMetadata(parsedOutput), @@ -12191,8 +11112,8 @@ const de_NoSuchFunctionExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchFunctionExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12207,8 +11128,8 @@ const de_NoSuchFunctionExistsRes = async ( const de_NoSuchInvalidationRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchInvalidation({ $metadata: deserializeMetadata(parsedOutput), @@ -12226,8 +11147,8 @@ const de_NoSuchMonitoringSubscriptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchMonitoringSubscription({ $metadata: deserializeMetadata(parsedOutput), @@ -12242,8 +11163,8 @@ const de_NoSuchMonitoringSubscriptionRes = async ( const de_NoSuchOriginRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchOrigin({ $metadata: deserializeMetadata(parsedOutput), @@ -12261,8 +11182,8 @@ const de_NoSuchOriginAccessControlRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchOriginAccessControl({ $metadata: deserializeMetadata(parsedOutput), @@ -12280,8 +11201,8 @@ const de_NoSuchOriginRequestPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchOriginRequestPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12296,8 +11217,8 @@ const de_NoSuchOriginRequestPolicyRes = async ( const de_NoSuchPublicKeyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchPublicKey({ $metadata: deserializeMetadata(parsedOutput), @@ -12315,8 +11236,8 @@ const de_NoSuchRealtimeLogConfigRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchRealtimeLogConfig({ $metadata: deserializeMetadata(parsedOutput), @@ -12331,8 +11252,8 @@ const de_NoSuchRealtimeLogConfigRes = async ( const de_NoSuchResourceRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchResource({ $metadata: deserializeMetadata(parsedOutput), @@ -12350,8 +11271,8 @@ const de_NoSuchResponseHeadersPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchResponseHeadersPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12369,8 +11290,8 @@ const de_NoSuchStreamingDistributionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchStreamingDistribution({ $metadata: deserializeMetadata(parsedOutput), @@ -12388,8 +11309,8 @@ const de_OriginAccessControlAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new OriginAccessControlAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12407,8 +11328,8 @@ const de_OriginAccessControlInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new OriginAccessControlInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -12426,8 +11347,8 @@ const de_OriginRequestPolicyAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new OriginRequestPolicyAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12445,8 +11366,8 @@ const de_OriginRequestPolicyInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new OriginRequestPolicyInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -12461,8 +11382,8 @@ const de_OriginRequestPolicyInUseRes = async ( const de_PreconditionFailedRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new PreconditionFailed({ $metadata: deserializeMetadata(parsedOutput), @@ -12480,8 +11401,8 @@ const de_PublicKeyAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new PublicKeyAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12496,8 +11417,8 @@ const de_PublicKeyAlreadyExistsRes = async ( const de_PublicKeyInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new PublicKeyInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -12515,8 +11436,8 @@ const de_QueryArgProfileEmptyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new QueryArgProfileEmpty({ $metadata: deserializeMetadata(parsedOutput), @@ -12534,8 +11455,8 @@ const de_RealtimeLogConfigAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new RealtimeLogConfigAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12553,8 +11474,8 @@ const de_RealtimeLogConfigInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new RealtimeLogConfigInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -12572,8 +11493,8 @@ const de_RealtimeLogConfigOwnerMismatchRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new RealtimeLogConfigOwnerMismatch({ $metadata: deserializeMetadata(parsedOutput), @@ -12588,8 +11509,8 @@ const de_RealtimeLogConfigOwnerMismatchRes = async ( const de_ResourceInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new ResourceInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -12607,8 +11528,8 @@ const de_ResponseHeadersPolicyAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new ResponseHeadersPolicyAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12626,8 +11547,8 @@ const de_ResponseHeadersPolicyInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new ResponseHeadersPolicyInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -12645,8 +11566,8 @@ const de_StagingDistributionInUseRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new StagingDistributionInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -12664,8 +11585,8 @@ const de_StreamingDistributionAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new StreamingDistributionAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -12683,8 +11604,8 @@ const de_StreamingDistributionNotDisabledRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new StreamingDistributionNotDisabled({ $metadata: deserializeMetadata(parsedOutput), @@ -12699,8 +11620,8 @@ const de_StreamingDistributionNotDisabledRes = async ( const de_TestFunctionFailedRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TestFunctionFailed({ $metadata: deserializeMetadata(parsedOutput), @@ -12718,8 +11639,8 @@ const de_TooLongCSPInResponseHeadersPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooLongCSPInResponseHeadersPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12737,8 +11658,8 @@ const de_TooManyCacheBehaviorsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCacheBehaviors({ $metadata: deserializeMetadata(parsedOutput), @@ -12756,8 +11677,8 @@ const de_TooManyCachePoliciesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCachePolicies({ $metadata: deserializeMetadata(parsedOutput), @@ -12772,8 +11693,8 @@ const de_TooManyCachePoliciesRes = async ( const de_TooManyCertificatesRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCertificates({ $metadata: deserializeMetadata(parsedOutput), @@ -12791,8 +11712,8 @@ const de_TooManyCloudFrontOriginAccessIdentitiesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCloudFrontOriginAccessIdentities({ $metadata: deserializeMetadata(parsedOutput), @@ -12810,8 +11731,8 @@ const de_TooManyContinuousDeploymentPoliciesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyContinuousDeploymentPolicies({ $metadata: deserializeMetadata(parsedOutput), @@ -12829,8 +11750,8 @@ const de_TooManyCookieNamesInWhiteListRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCookieNamesInWhiteList({ $metadata: deserializeMetadata(parsedOutput), @@ -12848,8 +11769,8 @@ const de_TooManyCookiesInCachePolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCookiesInCachePolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12867,8 +11788,8 @@ const de_TooManyCookiesInOriginRequestPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCookiesInOriginRequestPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12886,8 +11807,8 @@ const de_TooManyCustomHeadersInResponseHeadersPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyCustomHeadersInResponseHeadersPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12905,8 +11826,8 @@ const de_TooManyDistributionCNAMEsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionCNAMEs({ $metadata: deserializeMetadata(parsedOutput), @@ -12924,8 +11845,8 @@ const de_TooManyDistributionsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributions({ $metadata: deserializeMetadata(parsedOutput), @@ -12943,8 +11864,8 @@ const de_TooManyDistributionsAssociatedToCachePolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsAssociatedToCachePolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -12962,8 +11883,8 @@ const de_TooManyDistributionsAssociatedToFieldLevelEncryptionConfigRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsAssociatedToFieldLevelEncryptionConfig({ $metadata: deserializeMetadata(parsedOutput), @@ -12981,8 +11902,8 @@ const de_TooManyDistributionsAssociatedToKeyGroupRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsAssociatedToKeyGroup({ $metadata: deserializeMetadata(parsedOutput), @@ -13000,8 +11921,8 @@ const de_TooManyDistributionsAssociatedToOriginAccessControlRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsAssociatedToOriginAccessControl({ $metadata: deserializeMetadata(parsedOutput), @@ -13019,8 +11940,8 @@ const de_TooManyDistributionsAssociatedToOriginRequestPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsAssociatedToOriginRequestPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -13038,8 +11959,8 @@ const de_TooManyDistributionsAssociatedToResponseHeadersPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsAssociatedToResponseHeadersPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -13057,8 +11978,8 @@ const de_TooManyDistributionsWithFunctionAssociationsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsWithFunctionAssociations({ $metadata: deserializeMetadata(parsedOutput), @@ -13076,8 +11997,8 @@ const de_TooManyDistributionsWithLambdaAssociationsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsWithLambdaAssociations({ $metadata: deserializeMetadata(parsedOutput), @@ -13095,8 +12016,8 @@ const de_TooManyDistributionsWithSingleFunctionARNRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyDistributionsWithSingleFunctionARN({ $metadata: deserializeMetadata(parsedOutput), @@ -13114,8 +12035,8 @@ const de_TooManyFieldLevelEncryptionConfigsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFieldLevelEncryptionConfigs({ $metadata: deserializeMetadata(parsedOutput), @@ -13133,8 +12054,8 @@ const de_TooManyFieldLevelEncryptionContentTypeProfilesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFieldLevelEncryptionContentTypeProfiles({ $metadata: deserializeMetadata(parsedOutput), @@ -13152,8 +12073,8 @@ const de_TooManyFieldLevelEncryptionEncryptionEntitiesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFieldLevelEncryptionEncryptionEntities({ $metadata: deserializeMetadata(parsedOutput), @@ -13171,8 +12092,8 @@ const de_TooManyFieldLevelEncryptionFieldPatternsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFieldLevelEncryptionFieldPatterns({ $metadata: deserializeMetadata(parsedOutput), @@ -13190,8 +12111,8 @@ const de_TooManyFieldLevelEncryptionProfilesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFieldLevelEncryptionProfiles({ $metadata: deserializeMetadata(parsedOutput), @@ -13209,8 +12130,8 @@ const de_TooManyFieldLevelEncryptionQueryArgProfilesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFieldLevelEncryptionQueryArgProfiles({ $metadata: deserializeMetadata(parsedOutput), @@ -13228,8 +12149,8 @@ const de_TooManyFunctionAssociationsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFunctionAssociations({ $metadata: deserializeMetadata(parsedOutput), @@ -13244,8 +12165,8 @@ const de_TooManyFunctionAssociationsRes = async ( const de_TooManyFunctionsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyFunctions({ $metadata: deserializeMetadata(parsedOutput), @@ -13263,8 +12184,8 @@ const de_TooManyHeadersInCachePolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyHeadersInCachePolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -13282,8 +12203,8 @@ const de_TooManyHeadersInForwardedValuesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyHeadersInForwardedValues({ $metadata: deserializeMetadata(parsedOutput), @@ -13301,8 +12222,8 @@ const de_TooManyHeadersInOriginRequestPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyHeadersInOriginRequestPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -13320,8 +12241,8 @@ const de_TooManyInvalidationsInProgressRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyInvalidationsInProgress({ $metadata: deserializeMetadata(parsedOutput), @@ -13336,8 +12257,8 @@ const de_TooManyInvalidationsInProgressRes = async ( const de_TooManyKeyGroupsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyKeyGroups({ $metadata: deserializeMetadata(parsedOutput), @@ -13355,8 +12276,8 @@ const de_TooManyKeyGroupsAssociatedToDistributionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyKeyGroupsAssociatedToDistribution({ $metadata: deserializeMetadata(parsedOutput), @@ -13374,8 +12295,8 @@ const de_TooManyLambdaFunctionAssociationsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyLambdaFunctionAssociations({ $metadata: deserializeMetadata(parsedOutput), @@ -13393,8 +12314,8 @@ const de_TooManyOriginAccessControlsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyOriginAccessControls({ $metadata: deserializeMetadata(parsedOutput), @@ -13412,8 +12333,8 @@ const de_TooManyOriginCustomHeadersRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyOriginCustomHeaders({ $metadata: deserializeMetadata(parsedOutput), @@ -13431,8 +12352,8 @@ const de_TooManyOriginGroupsPerDistributionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyOriginGroupsPerDistribution({ $metadata: deserializeMetadata(parsedOutput), @@ -13450,8 +12371,8 @@ const de_TooManyOriginRequestPoliciesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyOriginRequestPolicies({ $metadata: deserializeMetadata(parsedOutput), @@ -13466,8 +12387,8 @@ const de_TooManyOriginRequestPoliciesRes = async ( const de_TooManyOriginsRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyOrigins({ $metadata: deserializeMetadata(parsedOutput), @@ -13482,8 +12403,8 @@ const de_TooManyOriginsRes = async (parsedOutput: any, context: __SerdeContext): const de_TooManyPublicKeysRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyPublicKeys({ $metadata: deserializeMetadata(parsedOutput), @@ -13501,8 +12422,8 @@ const de_TooManyPublicKeysInKeyGroupRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyPublicKeysInKeyGroup({ $metadata: deserializeMetadata(parsedOutput), @@ -13520,8 +12441,8 @@ const de_TooManyQueryStringParametersRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyQueryStringParameters({ $metadata: deserializeMetadata(parsedOutput), @@ -13539,8 +12460,8 @@ const de_TooManyQueryStringsInCachePolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyQueryStringsInCachePolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -13558,8 +12479,8 @@ const de_TooManyQueryStringsInOriginRequestPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyQueryStringsInOriginRequestPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -13577,8 +12498,8 @@ const de_TooManyRealtimeLogConfigsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyRealtimeLogConfigs({ $metadata: deserializeMetadata(parsedOutput), @@ -13596,8 +12517,8 @@ const de_TooManyRemoveHeadersInResponseHeadersPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyRemoveHeadersInResponseHeadersPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -13615,8 +12536,8 @@ const de_TooManyResponseHeadersPoliciesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyResponseHeadersPolicies({ $metadata: deserializeMetadata(parsedOutput), @@ -13634,8 +12555,8 @@ const de_TooManyStreamingDistributionCNAMEsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyStreamingDistributionCNAMEs({ $metadata: deserializeMetadata(parsedOutput), @@ -13653,8 +12574,8 @@ const de_TooManyStreamingDistributionsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyStreamingDistributions({ $metadata: deserializeMetadata(parsedOutput), @@ -13672,8 +12593,8 @@ const de_TooManyTrustedSignersRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyTrustedSigners({ $metadata: deserializeMetadata(parsedOutput), @@ -13691,8 +12612,8 @@ const de_TrustedKeyGroupDoesNotExistRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TrustedKeyGroupDoesNotExist({ $metadata: deserializeMetadata(parsedOutput), @@ -13710,8 +12631,8 @@ const de_TrustedSignerDoesNotExistRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TrustedSignerDoesNotExist({ $metadata: deserializeMetadata(parsedOutput), @@ -13729,8 +12650,8 @@ const de_UnsupportedOperationRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new UnsupportedOperation({ $metadata: deserializeMetadata(parsedOutput), @@ -13746,8 +12667,8 @@ const se_AccessControlAllowHeadersList = (input: string[], context: __SerdeConte return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Header"); + const n = __XmlNode.of(_st, entry); + return n.n(_H); }); }; @@ -13761,8 +12682,8 @@ const se_AccessControlAllowMethodsList = ( return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("ResponseHeadersPolicyAccessControlAllowMethodsValues", entry); - return node.withName("Method"); + const n = __XmlNode.of(_RHPACAMV, entry); + return n.n(_Met); }); }; @@ -13773,8 +12694,8 @@ const se_AccessControlAllowOriginsList = (input: string[], context: __SerdeConte return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Origin"); + const n = __XmlNode.of(_st, entry); + return n.n(_Or); }); }; @@ -13785,8 +12706,8 @@ const se_AccessControlExposeHeadersList = (input: string[], context: __SerdeCont return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Header"); + const n = __XmlNode.of(_st, entry); + return n.n(_H); }); }; @@ -13794,20 +12715,12 @@ const se_AccessControlExposeHeadersList = (input: string[], context: __SerdeCont * serializeAws_restXmlAliases */ const se_Aliases = (input: Aliases, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Aliases"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_AliasList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_Al); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_AliasList(input[_It]!, context)); + return bn; }; /** @@ -13817,8 +12730,8 @@ const se_AliasList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("CNAME"); + const n = __XmlNode.of(_st, entry); + return n.n(_CNAME); }); }; @@ -13826,24 +12739,15 @@ const se_AliasList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlAllowedMethods */ const se_AllowedMethods = (input: AllowedMethods, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AllowedMethods"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_MethodsList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_AM); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - if (input.CachedMethods != null) { - const node = se_CachedMethods(input.CachedMethods, context).withName("CachedMethods"); - bodyNode.addChildNode(node); + bn.lc(input, "Items", "Items", () => se_MethodsList(input[_It]!, context)); + if (input[_CM] != null) { + bn.c(se_CachedMethods(input[_CM], context).n(_CM)); } - return bodyNode; + return bn; }; /** @@ -13853,8 +12757,8 @@ const se_AwsAccountNumberList = (input: string[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("AwsAccountNumber"); + const n = __XmlNode.of(_st, entry); + return n.n(_AAN); }); }; @@ -13862,86 +12766,63 @@ const se_AwsAccountNumberList = (input: string[], context: __SerdeContext): any * serializeAws_restXmlCacheBehavior */ const se_CacheBehavior = (input: CacheBehavior, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CacheBehavior"); - if (input.PathPattern != null) { - const node = __XmlNode.of("string", input.PathPattern).withName("PathPattern"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CB); + if (input[_PP] != null) { + bn.c(__XmlNode.of(_st, input[_PP]).n(_PP)); } - if (input.TargetOriginId != null) { - const node = __XmlNode.of("string", input.TargetOriginId).withName("TargetOriginId"); - bodyNode.addChildNode(node); + if (input[_TOI] != null) { + bn.c(__XmlNode.of(_st, input[_TOI]).n(_TOI)); } - if (input.TrustedSigners != null) { - const node = se_TrustedSigners(input.TrustedSigners, context).withName("TrustedSigners"); - bodyNode.addChildNode(node); + if (input[_TS] != null) { + bn.c(se_TrustedSigners(input[_TS], context).n(_TS)); } - if (input.TrustedKeyGroups != null) { - const node = se_TrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups"); - bodyNode.addChildNode(node); + if (input[_TKG] != null) { + bn.c(se_TrustedKeyGroups(input[_TKG], context).n(_TKG)); } - if (input.ViewerProtocolPolicy != null) { - const node = __XmlNode.of("ViewerProtocolPolicy", input.ViewerProtocolPolicy).withName("ViewerProtocolPolicy"); - bodyNode.addChildNode(node); + bn.cc(input, _VPP); + if (input[_AM] != null) { + bn.c(se_AllowedMethods(input[_AM], context).n(_AM)); } - if (input.AllowedMethods != null) { - const node = se_AllowedMethods(input.AllowedMethods, context).withName("AllowedMethods"); - bodyNode.addChildNode(node); + if (input[_SS] != null) { + bn.c(__XmlNode.of(_b, String(input[_SS])).n(_SS)); } - if (input.SmoothStreaming != null) { - const node = __XmlNode.of("boolean", String(input.SmoothStreaming)).withName("SmoothStreaming"); - bodyNode.addChildNode(node); + if (input[_Co] != null) { + bn.c(__XmlNode.of(_b, String(input[_Co])).n(_Co)); } - if (input.Compress != null) { - const node = __XmlNode.of("boolean", String(input.Compress)).withName("Compress"); - bodyNode.addChildNode(node); + if (input[_LFA] != null) { + bn.c(se_LambdaFunctionAssociations(input[_LFA], context).n(_LFA)); } - if (input.LambdaFunctionAssociations != null) { - const node = se_LambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName( - "LambdaFunctionAssociations" - ); - bodyNode.addChildNode(node); + if (input[_FA] != null) { + bn.c(se_FunctionAssociations(input[_FA], context).n(_FA)); } - if (input.FunctionAssociations != null) { - const node = se_FunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations"); - bodyNode.addChildNode(node); + if (input[_FLEI] != null) { + bn.c(__XmlNode.of(_st, input[_FLEI]).n(_FLEI)); } - if (input.FieldLevelEncryptionId != null) { - const node = __XmlNode.of("string", input.FieldLevelEncryptionId).withName("FieldLevelEncryptionId"); - bodyNode.addChildNode(node); + if (input[_RLCA] != null) { + bn.c(__XmlNode.of(_st, input[_RLCA]).n(_RLCA)); } - if (input.RealtimeLogConfigArn != null) { - const node = __XmlNode.of("string", input.RealtimeLogConfigArn).withName("RealtimeLogConfigArn"); - bodyNode.addChildNode(node); + if (input[_CPI] != null) { + bn.c(__XmlNode.of(_st, input[_CPI]).n(_CPI)); } - if (input.CachePolicyId != null) { - const node = __XmlNode.of("string", input.CachePolicyId).withName("CachePolicyId"); - bodyNode.addChildNode(node); + if (input[_ORPI] != null) { + bn.c(__XmlNode.of(_st, input[_ORPI]).n(_ORPI)); } - if (input.OriginRequestPolicyId != null) { - const node = __XmlNode.of("string", input.OriginRequestPolicyId).withName("OriginRequestPolicyId"); - bodyNode.addChildNode(node); + if (input[_RHPI] != null) { + bn.c(__XmlNode.of(_st, input[_RHPI]).n(_RHPI)); } - if (input.ResponseHeadersPolicyId != null) { - const node = __XmlNode.of("string", input.ResponseHeadersPolicyId).withName("ResponseHeadersPolicyId"); - bodyNode.addChildNode(node); + if (input[_FV] != null) { + bn.c(se_ForwardedValues(input[_FV], context).n(_FV)); } - if (input.ForwardedValues != null) { - const node = se_ForwardedValues(input.ForwardedValues, context).withName("ForwardedValues"); - bodyNode.addChildNode(node); + if (input[_MTTL] != null) { + bn.c(__XmlNode.of(_l, String(input[_MTTL])).n(_MTTL)); } - if (input.MinTTL != null) { - const node = __XmlNode.of("long", String(input.MinTTL)).withName("MinTTL"); - bodyNode.addChildNode(node); + if (input[_DTTL] != null) { + bn.c(__XmlNode.of(_l, String(input[_DTTL])).n(_DTTL)); } - if (input.DefaultTTL != null) { - const node = __XmlNode.of("long", String(input.DefaultTTL)).withName("DefaultTTL"); - bodyNode.addChildNode(node); + if (input[_MTTLa] != null) { + bn.c(__XmlNode.of(_l, String(input[_MTTLa])).n(_MTTLa)); } - if (input.MaxTTL != null) { - const node = __XmlNode.of("long", String(input.MaxTTL)).withName("MaxTTL"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** @@ -13951,8 +12832,8 @@ const se_CacheBehaviorList = (input: CacheBehavior[], context: __SerdeContext): return input .filter((e: any) => e != null) .map((entry) => { - const node = se_CacheBehavior(entry, context); - return node.withName("CacheBehavior"); + const n = se_CacheBehavior(entry, context); + return n.n(_CB); }); }; @@ -13960,125 +12841,92 @@ const se_CacheBehaviorList = (input: CacheBehavior[], context: __SerdeContext): * serializeAws_restXmlCacheBehaviors */ const se_CacheBehaviors = (input: CacheBehaviors, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CacheBehaviors"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_CacheBehaviorList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CBa); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_CacheBehaviorList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlCachedMethods */ const se_CachedMethods = (input: CachedMethods, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CachedMethods"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_MethodsList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CM); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_MethodsList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlCachePolicyConfig */ const se_CachePolicyConfig = (input: CachePolicyConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CachePolicyConfig"); - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CPC); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - if (input.Name != null) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.DefaultTTL != null) { - const node = __XmlNode.of("long", String(input.DefaultTTL)).withName("DefaultTTL"); - bodyNode.addChildNode(node); + if (input[_DTTL] != null) { + bn.c(__XmlNode.of(_l, String(input[_DTTL])).n(_DTTL)); } - if (input.MaxTTL != null) { - const node = __XmlNode.of("long", String(input.MaxTTL)).withName("MaxTTL"); - bodyNode.addChildNode(node); + if (input[_MTTLa] != null) { + bn.c(__XmlNode.of(_l, String(input[_MTTLa])).n(_MTTLa)); } - if (input.MinTTL != null) { - const node = __XmlNode.of("long", String(input.MinTTL)).withName("MinTTL"); - bodyNode.addChildNode(node); + if (input[_MTTL] != null) { + bn.c(__XmlNode.of(_l, String(input[_MTTL])).n(_MTTL)); } - if (input.ParametersInCacheKeyAndForwardedToOrigin != null) { - const node = se_ParametersInCacheKeyAndForwardedToOrigin( - input.ParametersInCacheKeyAndForwardedToOrigin, - context - ).withName("ParametersInCacheKeyAndForwardedToOrigin"); - bodyNode.addChildNode(node); + if (input[_PICKAFTO] != null) { + bn.c(se_ParametersInCacheKeyAndForwardedToOrigin(input[_PICKAFTO], context).n(_PICKAFTO)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCachePolicyCookiesConfig */ const se_CachePolicyCookiesConfig = (input: CachePolicyCookiesConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CachePolicyCookiesConfig"); - if (input.CookieBehavior != null) { - const node = __XmlNode.of("CachePolicyCookieBehavior", input.CookieBehavior).withName("CookieBehavior"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CPCC); + if (input[_CBo] != null) { + bn.c(__XmlNode.of(_CPCB, input[_CBo]).n(_CBo)); } - if (input.Cookies != null) { - const node = se_CookieNames(input.Cookies, context).withName("Cookies"); - bodyNode.addChildNode(node); + if (input[_Coo] != null) { + bn.c(se_CookieNames(input[_Coo], context).n(_Coo)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCachePolicyHeadersConfig */ const se_CachePolicyHeadersConfig = (input: CachePolicyHeadersConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CachePolicyHeadersConfig"); - if (input.HeaderBehavior != null) { - const node = __XmlNode.of("CachePolicyHeaderBehavior", input.HeaderBehavior).withName("HeaderBehavior"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CPHC); + if (input[_HB] != null) { + bn.c(__XmlNode.of(_CPHB, input[_HB]).n(_HB)); } - if (input.Headers != null) { - const node = se_Headers(input.Headers, context).withName("Headers"); - bodyNode.addChildNode(node); + if (input[_He] != null) { + bn.c(se_Headers(input[_He], context).n(_He)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCachePolicyQueryStringsConfig */ const se_CachePolicyQueryStringsConfig = (input: CachePolicyQueryStringsConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CachePolicyQueryStringsConfig"); - if (input.QueryStringBehavior != null) { - const node = __XmlNode - .of("CachePolicyQueryStringBehavior", input.QueryStringBehavior) - .withName("QueryStringBehavior"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CPQSC); + if (input[_QSB] != null) { + bn.c(__XmlNode.of(_CPQSB, input[_QSB]).n(_QSB)); } - if (input.QueryStrings != null) { - const node = se_QueryStringNames(input.QueryStrings, context).withName("QueryStrings"); - bodyNode.addChildNode(node); + if (input[_QS] != null) { + bn.c(se_QueryStringNames(input[_QS], context).n(_QS)); } - return bodyNode; + return bn; }; /** @@ -14088,54 +12936,43 @@ const se_CloudFrontOriginAccessIdentityConfig = ( input: CloudFrontOriginAccessIdentityConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("CloudFrontOriginAccessIdentityConfig"); - if (input.CallerReference != null) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CFOAIC); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlContentTypeProfile */ const se_ContentTypeProfile = (input: ContentTypeProfile, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ContentTypeProfile"); - if (input.Format != null) { - const node = __XmlNode.of("Format", input.Format).withName("Format"); - bodyNode.addChildNode(node); - } - if (input.ProfileId != null) { - const node = __XmlNode.of("string", input.ProfileId).withName("ProfileId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CTP); + bn.cc(input, _Fo); + if (input[_PI] != null) { + bn.c(__XmlNode.of(_st, input[_PI]).n(_PI)); } - if (input.ContentType != null) { - const node = __XmlNode.of("string", input.ContentType).withName("ContentType"); - bodyNode.addChildNode(node); + if (input[_CT] != null) { + bn.c(__XmlNode.of(_st, input[_CT]).n(_CT)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlContentTypeProfileConfig */ const se_ContentTypeProfileConfig = (input: ContentTypeProfileConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ContentTypeProfileConfig"); - if (input.ForwardWhenContentTypeIsUnknown != null) { - const node = __XmlNode - .of("boolean", String(input.ForwardWhenContentTypeIsUnknown)) - .withName("ForwardWhenContentTypeIsUnknown"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CTPC); + if (input[_FWCTIU] != null) { + bn.c(__XmlNode.of(_b, String(input[_FWCTIU])).n(_FWCTIU)); } - if (input.ContentTypeProfiles != null) { - const node = se_ContentTypeProfiles(input.ContentTypeProfiles, context).withName("ContentTypeProfiles"); - bodyNode.addChildNode(node); + if (input[_CTPo] != null) { + bn.c(se_ContentTypeProfiles(input[_CTPo], context).n(_CTPo)); } - return bodyNode; + return bn; }; /** @@ -14145,8 +12982,8 @@ const se_ContentTypeProfileList = (input: ContentTypeProfile[], context: __Serde return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ContentTypeProfile(entry, context); - return node.withName("ContentTypeProfile"); + const n = se_ContentTypeProfile(entry, context); + return n.n(_CTP); }); }; @@ -14154,42 +12991,29 @@ const se_ContentTypeProfileList = (input: ContentTypeProfile[], context: __Serde * serializeAws_restXmlContentTypeProfiles */ const se_ContentTypeProfiles = (input: ContentTypeProfiles, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ContentTypeProfiles"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_ContentTypeProfileList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CTPo); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_ContentTypeProfileList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlContinuousDeploymentPolicyConfig */ const se_ContinuousDeploymentPolicyConfig = (input: ContinuousDeploymentPolicyConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ContinuousDeploymentPolicyConfig"); - if (input.StagingDistributionDnsNames != null) { - const node = se_StagingDistributionDnsNames(input.StagingDistributionDnsNames, context).withName( - "StagingDistributionDnsNames" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CDPC); + if (input[_SDDN] != null) { + bn.c(se_StagingDistributionDnsNames(input[_SDDN], context).n(_SDDN)); } - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - if (input.TrafficConfig != null) { - const node = se_TrafficConfig(input.TrafficConfig, context).withName("TrafficConfig"); - bodyNode.addChildNode(node); + if (input[_TC] != null) { + bn.c(se_TrafficConfig(input[_TC], context).n(_TC)); } - return bodyNode; + return bn; }; /** @@ -14199,16 +13023,14 @@ const se_ContinuousDeploymentSingleHeaderConfig = ( input: ContinuousDeploymentSingleHeaderConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ContinuousDeploymentSingleHeaderConfig"); - if (input.Header != null) { - const node = __XmlNode.of("string", input.Header).withName("Header"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CDSHC); + if (input[_H] != null) { + bn.c(__XmlNode.of(_st, input[_H]).n(_H)); } - if (input.Value != null) { - const node = __XmlNode.of("string", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_V] != null) { + bn.c(__XmlNode.of(_st, input[_V]).n(_V)); } - return bodyNode; + return bn; }; /** @@ -14218,16 +13040,14 @@ const se_ContinuousDeploymentSingleWeightConfig = ( input: ContinuousDeploymentSingleWeightConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ContinuousDeploymentSingleWeightConfig"); - if (input.Weight != null) { - const node = __XmlNode.of("float", String(input.Weight)).withName("Weight"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CDSWC); + if (input[_W] != null) { + bn.c(__XmlNode.of(_f, String(input[_W])).n(_W)); } - if (input.SessionStickinessConfig != null) { - const node = se_SessionStickinessConfig(input.SessionStickinessConfig, context).withName("SessionStickinessConfig"); - bodyNode.addChildNode(node); + if (input[_SSC] != null) { + bn.c(se_SessionStickinessConfig(input[_SSC], context).n(_SSC)); } - return bodyNode; + return bn; }; /** @@ -14237,8 +13057,8 @@ const se_CookieNameList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Name"); + const n = __XmlNode.of(_st, entry); + return n.n(_N); }); }; @@ -14246,60 +13066,46 @@ const se_CookieNameList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlCookieNames */ const se_CookieNames = (input: CookieNames, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CookieNames"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_CookieNameList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CN); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_CookieNameList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlCookiePreference */ const se_CookiePreference = (input: CookiePreference, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CookiePreference"); - if (input.Forward != null) { - const node = __XmlNode.of("ItemSelection", input.Forward).withName("Forward"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CP); + if (input[_For] != null) { + bn.c(__XmlNode.of(_ISt, input[_For]).n(_For)); } - if (input.WhitelistedNames != null) { - const node = se_CookieNames(input.WhitelistedNames, context).withName("WhitelistedNames"); - bodyNode.addChildNode(node); + if (input[_WN] != null) { + bn.c(se_CookieNames(input[_WN], context).n(_WN)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCustomErrorResponse */ const se_CustomErrorResponse = (input: CustomErrorResponse, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CustomErrorResponse"); - if (input.ErrorCode != null) { - const node = __XmlNode.of("integer", String(input.ErrorCode)).withName("ErrorCode"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CER); + if (input[_EC] != null) { + bn.c(__XmlNode.of(_i, String(input[_EC])).n(_EC)); } - if (input.ResponsePagePath != null) { - const node = __XmlNode.of("string", input.ResponsePagePath).withName("ResponsePagePath"); - bodyNode.addChildNode(node); + if (input[_RPP] != null) { + bn.c(__XmlNode.of(_st, input[_RPP]).n(_RPP)); } - if (input.ResponseCode != null) { - const node = __XmlNode.of("string", input.ResponseCode).withName("ResponseCode"); - bodyNode.addChildNode(node); + if (input[_RC] != null) { + bn.c(__XmlNode.of(_st, input[_RC]).n(_RC)); } - if (input.ErrorCachingMinTTL != null) { - const node = __XmlNode.of("long", String(input.ErrorCachingMinTTL)).withName("ErrorCachingMinTTL"); - bodyNode.addChildNode(node); + if (input[_ECMTTL] != null) { + bn.c(__XmlNode.of(_l, String(input[_ECMTTL])).n(_ECMTTL)); } - return bodyNode; + return bn; }; /** @@ -14309,8 +13115,8 @@ const se_CustomErrorResponseList = (input: CustomErrorResponse[], context: __Ser return input .filter((e: any) => e != null) .map((entry) => { - const node = se_CustomErrorResponse(entry, context); - return node.withName("CustomErrorResponse"); + const n = se_CustomErrorResponse(entry, context); + return n.n(_CER); }); }; @@ -14318,294 +13124,212 @@ const se_CustomErrorResponseList = (input: CustomErrorResponse[], context: __Ser * serializeAws_restXmlCustomErrorResponses */ const se_CustomErrorResponses = (input: CustomErrorResponses, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CustomErrorResponses"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_CustomErrorResponseList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CERu); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_CustomErrorResponseList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlCustomHeaders */ const se_CustomHeaders = (input: CustomHeaders, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CustomHeaders"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_OriginCustomHeadersList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CH); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_OriginCustomHeadersList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlCustomOriginConfig */ const se_CustomOriginConfig = (input: CustomOriginConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CustomOriginConfig"); - if (input.HTTPPort != null) { - const node = __XmlNode.of("integer", String(input.HTTPPort)).withName("HTTPPort"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_COC); + if (input[_HTTPP] != null) { + bn.c(__XmlNode.of(_i, String(input[_HTTPP])).n(_HTTPP)); } - if (input.HTTPSPort != null) { - const node = __XmlNode.of("integer", String(input.HTTPSPort)).withName("HTTPSPort"); - bodyNode.addChildNode(node); + if (input[_HTTPSP] != null) { + bn.c(__XmlNode.of(_i, String(input[_HTTPSP])).n(_HTTPSP)); } - if (input.OriginProtocolPolicy != null) { - const node = __XmlNode.of("OriginProtocolPolicy", input.OriginProtocolPolicy).withName("OriginProtocolPolicy"); - bodyNode.addChildNode(node); + bn.cc(input, _OPP); + if (input[_OSP] != null) { + bn.c(se_OriginSslProtocols(input[_OSP], context).n(_OSP)); } - if (input.OriginSslProtocols != null) { - const node = se_OriginSslProtocols(input.OriginSslProtocols, context).withName("OriginSslProtocols"); - bodyNode.addChildNode(node); + if (input[_ORT] != null) { + bn.c(__XmlNode.of(_i, String(input[_ORT])).n(_ORT)); } - if (input.OriginReadTimeout != null) { - const node = __XmlNode.of("integer", String(input.OriginReadTimeout)).withName("OriginReadTimeout"); - bodyNode.addChildNode(node); + if (input[_OKT] != null) { + bn.c(__XmlNode.of(_i, String(input[_OKT])).n(_OKT)); } - if (input.OriginKeepaliveTimeout != null) { - const node = __XmlNode.of("integer", String(input.OriginKeepaliveTimeout)).withName("OriginKeepaliveTimeout"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlDefaultCacheBehavior */ const se_DefaultCacheBehavior = (input: DefaultCacheBehavior, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("DefaultCacheBehavior"); - if (input.TargetOriginId != null) { - const node = __XmlNode.of("string", input.TargetOriginId).withName("TargetOriginId"); - bodyNode.addChildNode(node); - } - if (input.TrustedSigners != null) { - const node = se_TrustedSigners(input.TrustedSigners, context).withName("TrustedSigners"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DCB); + if (input[_TOI] != null) { + bn.c(__XmlNode.of(_st, input[_TOI]).n(_TOI)); } - if (input.TrustedKeyGroups != null) { - const node = se_TrustedKeyGroups(input.TrustedKeyGroups, context).withName("TrustedKeyGroups"); - bodyNode.addChildNode(node); + if (input[_TS] != null) { + bn.c(se_TrustedSigners(input[_TS], context).n(_TS)); } - if (input.ViewerProtocolPolicy != null) { - const node = __XmlNode.of("ViewerProtocolPolicy", input.ViewerProtocolPolicy).withName("ViewerProtocolPolicy"); - bodyNode.addChildNode(node); + if (input[_TKG] != null) { + bn.c(se_TrustedKeyGroups(input[_TKG], context).n(_TKG)); } - if (input.AllowedMethods != null) { - const node = se_AllowedMethods(input.AllowedMethods, context).withName("AllowedMethods"); - bodyNode.addChildNode(node); + bn.cc(input, _VPP); + if (input[_AM] != null) { + bn.c(se_AllowedMethods(input[_AM], context).n(_AM)); } - if (input.SmoothStreaming != null) { - const node = __XmlNode.of("boolean", String(input.SmoothStreaming)).withName("SmoothStreaming"); - bodyNode.addChildNode(node); + if (input[_SS] != null) { + bn.c(__XmlNode.of(_b, String(input[_SS])).n(_SS)); } - if (input.Compress != null) { - const node = __XmlNode.of("boolean", String(input.Compress)).withName("Compress"); - bodyNode.addChildNode(node); + if (input[_Co] != null) { + bn.c(__XmlNode.of(_b, String(input[_Co])).n(_Co)); } - if (input.LambdaFunctionAssociations != null) { - const node = se_LambdaFunctionAssociations(input.LambdaFunctionAssociations, context).withName( - "LambdaFunctionAssociations" - ); - bodyNode.addChildNode(node); + if (input[_LFA] != null) { + bn.c(se_LambdaFunctionAssociations(input[_LFA], context).n(_LFA)); } - if (input.FunctionAssociations != null) { - const node = se_FunctionAssociations(input.FunctionAssociations, context).withName("FunctionAssociations"); - bodyNode.addChildNode(node); + if (input[_FA] != null) { + bn.c(se_FunctionAssociations(input[_FA], context).n(_FA)); } - if (input.FieldLevelEncryptionId != null) { - const node = __XmlNode.of("string", input.FieldLevelEncryptionId).withName("FieldLevelEncryptionId"); - bodyNode.addChildNode(node); + if (input[_FLEI] != null) { + bn.c(__XmlNode.of(_st, input[_FLEI]).n(_FLEI)); } - if (input.RealtimeLogConfigArn != null) { - const node = __XmlNode.of("string", input.RealtimeLogConfigArn).withName("RealtimeLogConfigArn"); - bodyNode.addChildNode(node); + if (input[_RLCA] != null) { + bn.c(__XmlNode.of(_st, input[_RLCA]).n(_RLCA)); } - if (input.CachePolicyId != null) { - const node = __XmlNode.of("string", input.CachePolicyId).withName("CachePolicyId"); - bodyNode.addChildNode(node); + if (input[_CPI] != null) { + bn.c(__XmlNode.of(_st, input[_CPI]).n(_CPI)); } - if (input.OriginRequestPolicyId != null) { - const node = __XmlNode.of("string", input.OriginRequestPolicyId).withName("OriginRequestPolicyId"); - bodyNode.addChildNode(node); + if (input[_ORPI] != null) { + bn.c(__XmlNode.of(_st, input[_ORPI]).n(_ORPI)); } - if (input.ResponseHeadersPolicyId != null) { - const node = __XmlNode.of("string", input.ResponseHeadersPolicyId).withName("ResponseHeadersPolicyId"); - bodyNode.addChildNode(node); + if (input[_RHPI] != null) { + bn.c(__XmlNode.of(_st, input[_RHPI]).n(_RHPI)); } - if (input.ForwardedValues != null) { - const node = se_ForwardedValues(input.ForwardedValues, context).withName("ForwardedValues"); - bodyNode.addChildNode(node); + if (input[_FV] != null) { + bn.c(se_ForwardedValues(input[_FV], context).n(_FV)); } - if (input.MinTTL != null) { - const node = __XmlNode.of("long", String(input.MinTTL)).withName("MinTTL"); - bodyNode.addChildNode(node); + if (input[_MTTL] != null) { + bn.c(__XmlNode.of(_l, String(input[_MTTL])).n(_MTTL)); } - if (input.DefaultTTL != null) { - const node = __XmlNode.of("long", String(input.DefaultTTL)).withName("DefaultTTL"); - bodyNode.addChildNode(node); + if (input[_DTTL] != null) { + bn.c(__XmlNode.of(_l, String(input[_DTTL])).n(_DTTL)); } - if (input.MaxTTL != null) { - const node = __XmlNode.of("long", String(input.MaxTTL)).withName("MaxTTL"); - bodyNode.addChildNode(node); + if (input[_MTTLa] != null) { + bn.c(__XmlNode.of(_l, String(input[_MTTLa])).n(_MTTLa)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlDistributionConfig */ const se_DistributionConfig = (input: DistributionConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("DistributionConfig"); - if (input.CallerReference != null) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); - } - if (input.Aliases != null) { - const node = se_Aliases(input.Aliases, context).withName("Aliases"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DC); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - if (input.DefaultRootObject != null) { - const node = __XmlNode.of("string", input.DefaultRootObject).withName("DefaultRootObject"); - bodyNode.addChildNode(node); + if (input[_Al] != null) { + bn.c(se_Aliases(input[_Al], context).n(_Al)); } - if (input.Origins != null) { - const node = se_Origins(input.Origins, context).withName("Origins"); - bodyNode.addChildNode(node); + if (input[_DRO] != null) { + bn.c(__XmlNode.of(_st, input[_DRO]).n(_DRO)); } - if (input.OriginGroups != null) { - const node = se_OriginGroups(input.OriginGroups, context).withName("OriginGroups"); - bodyNode.addChildNode(node); + if (input[_Ori] != null) { + bn.c(se_Origins(input[_Ori], context).n(_Ori)); } - if (input.DefaultCacheBehavior != null) { - const node = se_DefaultCacheBehavior(input.DefaultCacheBehavior, context).withName("DefaultCacheBehavior"); - bodyNode.addChildNode(node); + if (input[_OG] != null) { + bn.c(se_OriginGroups(input[_OG], context).n(_OG)); } - if (input.CacheBehaviors != null) { - const node = se_CacheBehaviors(input.CacheBehaviors, context).withName("CacheBehaviors"); - bodyNode.addChildNode(node); + if (input[_DCB] != null) { + bn.c(se_DefaultCacheBehavior(input[_DCB], context).n(_DCB)); } - if (input.CustomErrorResponses != null) { - const node = se_CustomErrorResponses(input.CustomErrorResponses, context).withName("CustomErrorResponses"); - bodyNode.addChildNode(node); + if (input[_CBa] != null) { + bn.c(se_CacheBehaviors(input[_CBa], context).n(_CBa)); } - if (input.Comment != null) { - const node = __XmlNode.of("CommentType", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + if (input[_CERu] != null) { + bn.c(se_CustomErrorResponses(input[_CERu], context).n(_CERu)); } - if (input.Logging != null) { - const node = se_LoggingConfig(input.Logging, context).withName("Logging"); - bodyNode.addChildNode(node); + if (input[_C] != null) { + bn.c(__XmlNode.of(_CTo, input[_C]).n(_C)); } - if (input.PriceClass != null) { - const node = __XmlNode.of("PriceClass", input.PriceClass).withName("PriceClass"); - bodyNode.addChildNode(node); + if (input[_Lo] != null) { + bn.c(se_LoggingConfig(input[_Lo], context).n(_Lo)); } - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + bn.cc(input, _PC); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - if (input.ViewerCertificate != null) { - const node = se_ViewerCertificate(input.ViewerCertificate, context).withName("ViewerCertificate"); - bodyNode.addChildNode(node); + if (input[_VC] != null) { + bn.c(se_ViewerCertificate(input[_VC], context).n(_VC)); } - if (input.Restrictions != null) { - const node = se_Restrictions(input.Restrictions, context).withName("Restrictions"); - bodyNode.addChildNode(node); + if (input[_Re] != null) { + bn.c(se_Restrictions(input[_Re], context).n(_Re)); } - if (input.WebACLId != null) { - const node = __XmlNode.of("string", input.WebACLId).withName("WebACLId"); - bodyNode.addChildNode(node); + if (input[_WACLI] != null) { + bn.c(__XmlNode.of(_st, input[_WACLI]).n(_WACLI)); } - if (input.HttpVersion != null) { - const node = __XmlNode.of("HttpVersion", input.HttpVersion).withName("HttpVersion"); - bodyNode.addChildNode(node); + bn.cc(input, _HV); + if (input[_IIPVE] != null) { + bn.c(__XmlNode.of(_b, String(input[_IIPVE])).n(_IIPVE)); } - if (input.IsIPV6Enabled != null) { - const node = __XmlNode.of("boolean", String(input.IsIPV6Enabled)).withName("IsIPV6Enabled"); - bodyNode.addChildNode(node); + if (input[_CDPI] != null) { + bn.c(__XmlNode.of(_st, input[_CDPI]).n(_CDPI)); } - if (input.ContinuousDeploymentPolicyId != null) { - const node = __XmlNode.of("string", input.ContinuousDeploymentPolicyId).withName("ContinuousDeploymentPolicyId"); - bodyNode.addChildNode(node); + if (input[_S] != null) { + bn.c(__XmlNode.of(_b, String(input[_S])).n(_S)); } - if (input.Staging != null) { - const node = __XmlNode.of("boolean", String(input.Staging)).withName("Staging"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlDistributionConfigWithTags */ const se_DistributionConfigWithTags = (input: DistributionConfigWithTags, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("DistributionConfigWithTags"); - if (input.DistributionConfig != null) { - const node = se_DistributionConfig(input.DistributionConfig, context).withName("DistributionConfig"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DCWT); + if (input[_DC] != null) { + bn.c(se_DistributionConfig(input[_DC], context).n(_DC)); } - if (input.Tags != null) { - const node = se_Tags(input.Tags, context).withName("Tags"); - bodyNode.addChildNode(node); + if (input[_Ta] != null) { + bn.c(se_Tags(input[_Ta], context).n(_Ta)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlEncryptionEntities */ const se_EncryptionEntities = (input: EncryptionEntities, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("EncryptionEntities"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_EncryptionEntityList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_EE); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_EncryptionEntityList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlEncryptionEntity */ const se_EncryptionEntity = (input: EncryptionEntity, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("EncryptionEntity"); - if (input.PublicKeyId != null) { - const node = __XmlNode.of("string", input.PublicKeyId).withName("PublicKeyId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_EEn); + if (input[_PKI] != null) { + bn.c(__XmlNode.of(_st, input[_PKI]).n(_PKI)); } - if (input.ProviderId != null) { - const node = __XmlNode.of("string", input.ProviderId).withName("ProviderId"); - bodyNode.addChildNode(node); + if (input[_PIr] != null) { + bn.c(__XmlNode.of(_st, input[_PIr]).n(_PIr)); } - if (input.FieldPatterns != null) { - const node = se_FieldPatterns(input.FieldPatterns, context).withName("FieldPatterns"); - bodyNode.addChildNode(node); + if (input[_FP] != null) { + bn.c(se_FieldPatterns(input[_FP], context).n(_FP)); } - return bodyNode; + return bn; }; /** @@ -14615,8 +13339,8 @@ const se_EncryptionEntityList = (input: EncryptionEntity[], context: __SerdeCont return input .filter((e: any) => e != null) .map((entry) => { - const node = se_EncryptionEntity(entry, context); - return node.withName("EncryptionEntity"); + const n = se_EncryptionEntity(entry, context); + return n.n(_EEn); }); }; @@ -14624,16 +13348,14 @@ const se_EncryptionEntityList = (input: EncryptionEntity[], context: __SerdeCont * serializeAws_restXmlEndPoint */ const se_EndPoint = (input: EndPoint, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("EndPoint"); - if (input.StreamType != null) { - const node = __XmlNode.of("string", input.StreamType).withName("StreamType"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_EPn); + if (input[_ST] != null) { + bn.c(__XmlNode.of(_st, input[_ST]).n(_ST)); } - if (input.KinesisStreamConfig != null) { - const node = se_KinesisStreamConfig(input.KinesisStreamConfig, context).withName("KinesisStreamConfig"); - bodyNode.addChildNode(node); + if (input[_KSC] != null) { + bn.c(se_KinesisStreamConfig(input[_KSC], context).n(_KSC)); } - return bodyNode; + return bn; }; /** @@ -14643,8 +13365,8 @@ const se_EndPointList = (input: EndPoint[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_EndPoint(entry, context); - return node.withName("member"); + const n = se_EndPoint(entry, context); + return n.n(_m); }); }; @@ -14652,26 +13374,20 @@ const se_EndPointList = (input: EndPoint[], context: __SerdeContext): any => { * serializeAws_restXmlFieldLevelEncryptionConfig */ const se_FieldLevelEncryptionConfig = (input: FieldLevelEncryptionConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("FieldLevelEncryptionConfig"); - if (input.CallerReference != null) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_FLEC); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - if (input.QueryArgProfileConfig != null) { - const node = se_QueryArgProfileConfig(input.QueryArgProfileConfig, context).withName("QueryArgProfileConfig"); - bodyNode.addChildNode(node); + if (input[_QAPC] != null) { + bn.c(se_QueryArgProfileConfig(input[_QAPC], context).n(_QAPC)); } - if (input.ContentTypeProfileConfig != null) { - const node = se_ContentTypeProfileConfig(input.ContentTypeProfileConfig, context).withName( - "ContentTypeProfileConfig" - ); - bodyNode.addChildNode(node); + if (input[_CTPC] != null) { + bn.c(se_ContentTypeProfileConfig(input[_CTPC], context).n(_CTPC)); } - return bodyNode; + return bn; }; /** @@ -14681,24 +13397,20 @@ const se_FieldLevelEncryptionProfileConfig = ( input: FieldLevelEncryptionProfileConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("FieldLevelEncryptionProfileConfig"); - if (input.Name != null) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_FLEPC); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.CallerReference != null) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - if (input.EncryptionEntities != null) { - const node = se_EncryptionEntities(input.EncryptionEntities, context).withName("EncryptionEntities"); - bodyNode.addChildNode(node); + if (input[_EE] != null) { + bn.c(se_EncryptionEntities(input[_EE], context).n(_EE)); } - return bodyNode; + return bn; }; /** @@ -14708,8 +13420,8 @@ const se_FieldList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Field"); + const n = __XmlNode.of(_st, entry); + return n.n(_Fi); }); }; @@ -14720,8 +13432,8 @@ const se_FieldPatternList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("FieldPattern"); + const n = __XmlNode.of(_st, entry); + return n.n(_FPi); }); }; @@ -14729,60 +13441,42 @@ const se_FieldPatternList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlFieldPatterns */ const se_FieldPatterns = (input: FieldPatterns, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("FieldPatterns"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_FieldPatternList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_FP); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_FieldPatternList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlForwardedValues */ const se_ForwardedValues = (input: ForwardedValues, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ForwardedValues"); - if (input.QueryString != null) { - const node = __XmlNode.of("boolean", String(input.QueryString)).withName("QueryString"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_FV); + if (input[_QSu] != null) { + bn.c(__XmlNode.of(_b, String(input[_QSu])).n(_QSu)); } - if (input.Cookies != null) { - const node = se_CookiePreference(input.Cookies, context).withName("Cookies"); - bodyNode.addChildNode(node); + if (input[_Coo] != null) { + bn.c(se_CookiePreference(input[_Coo], context).n(_Coo)); } - if (input.Headers != null) { - const node = se_Headers(input.Headers, context).withName("Headers"); - bodyNode.addChildNode(node); + if (input[_He] != null) { + bn.c(se_Headers(input[_He], context).n(_He)); } - if (input.QueryStringCacheKeys != null) { - const node = se_QueryStringCacheKeys(input.QueryStringCacheKeys, context).withName("QueryStringCacheKeys"); - bodyNode.addChildNode(node); + if (input[_QSCK] != null) { + bn.c(se_QueryStringCacheKeys(input[_QSCK], context).n(_QSCK)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlFunctionAssociation */ const se_FunctionAssociation = (input: FunctionAssociation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("FunctionAssociation"); - if (input.FunctionARN != null) { - const node = __XmlNode.of("FunctionARN", input.FunctionARN).withName("FunctionARN"); - bodyNode.addChildNode(node); - } - if (input.EventType != null) { - const node = __XmlNode.of("EventType", input.EventType).withName("EventType"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_FAu); + bn.cc(input, _FARN); + bn.cc(input, _ETv); + return bn; }; /** @@ -14792,8 +13486,8 @@ const se_FunctionAssociationList = (input: FunctionAssociation[], context: __Ser return input .filter((e: any) => e != null) .map((entry) => { - const node = se_FunctionAssociation(entry, context); - return node.withName("FunctionAssociation"); + const n = se_FunctionAssociation(entry, context); + return n.n(_FAu); }); }; @@ -14801,66 +13495,44 @@ const se_FunctionAssociationList = (input: FunctionAssociation[], context: __Ser * serializeAws_restXmlFunctionAssociations */ const se_FunctionAssociations = (input: FunctionAssociations, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("FunctionAssociations"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_FunctionAssociationList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_FA); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_FunctionAssociationList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlFunctionConfig */ const se_FunctionConfig = (input: FunctionConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("FunctionConfig"); - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_FCu); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - if (input.Runtime != null) { - const node = __XmlNode.of("FunctionRuntime", input.Runtime).withName("Runtime"); - bodyNode.addChildNode(node); + if (input[_Ru] != null) { + bn.c(__XmlNode.of(_FR, input[_Ru]).n(_Ru)); } - if (input.KeyValueStoreAssociations != null) { - const node = se_KeyValueStoreAssociations(input.KeyValueStoreAssociations, context).withName( - "KeyValueStoreAssociations" - ); - bodyNode.addChildNode(node); + if (input[_KVSA] != null) { + bn.c(se_KeyValueStoreAssociations(input[_KVSA], context).n(_KVSA)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlGeoRestriction */ const se_GeoRestriction = (input: GeoRestriction, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("GeoRestriction"); - if (input.RestrictionType != null) { - const node = __XmlNode.of("GeoRestrictionType", input.RestrictionType).withName("RestrictionType"); - bodyNode.addChildNode(node); - } - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_LocationList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_GR); + if (input[_RT] != null) { + bn.c(__XmlNode.of(_GRT, input[_RT]).n(_RT)); + } + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_LocationList(input[_It]!, context)); + return bn; }; /** @@ -14870,8 +13542,8 @@ const se_HeaderList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Name"); + const n = __XmlNode.of(_st, entry); + return n.n(_N); }); }; @@ -14879,88 +13551,64 @@ const se_HeaderList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlHeaders */ const se_Headers = (input: Headers, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Headers"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_HeaderList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_He); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_HeaderList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlImportSource */ const se_ImportSource = (input: ImportSource, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ImportSource"); - if (input.SourceType != null) { - const node = __XmlNode.of("ImportSourceType", input.SourceType).withName("SourceType"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_IS); + if (input[_STo] != null) { + bn.c(__XmlNode.of(_IST, input[_STo]).n(_STo)); } - if (input.SourceARN != null) { - const node = __XmlNode.of("string", input.SourceARN).withName("SourceARN"); - bodyNode.addChildNode(node); + if (input[_SARN] != null) { + bn.c(__XmlNode.of(_st, input[_SARN]).n(_SARN)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlInvalidationBatch */ const se_InvalidationBatch = (input: InvalidationBatch, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InvalidationBatch"); - if (input.Paths != null) { - const node = se_Paths(input.Paths, context).withName("Paths"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_IB); + if (input[_P] != null) { + bn.c(se_Paths(input[_P], context).n(_P)); } - if (input.CallerReference != null) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlKeyGroupConfig */ const se_KeyGroupConfig = (input: KeyGroupConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("KeyGroupConfig"); - if (input.Name != null) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_PublicKeyIdList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_KGC); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + bn.lc(input, "Items", "Items", () => se_PublicKeyIdList(input[_It]!, context)); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlKeyValueStoreAssociation */ const se_KeyValueStoreAssociation = (input: KeyValueStoreAssociation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("KeyValueStoreAssociation"); - if (input.KeyValueStoreARN != null) { - const node = __XmlNode.of("KeyValueStoreARN", input.KeyValueStoreARN).withName("KeyValueStoreARN"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_KVSAe); + bn.cc(input, _KVSARN); + return bn; }; /** @@ -14970,8 +13618,8 @@ const se_KeyValueStoreAssociationList = (input: KeyValueStoreAssociation[], cont return input .filter((e: any) => e != null) .map((entry) => { - const node = se_KeyValueStoreAssociation(entry, context); - return node.withName("KeyValueStoreAssociation"); + const n = se_KeyValueStoreAssociation(entry, context); + return n.n(_KVSAe); }); }; @@ -14979,56 +13627,39 @@ const se_KeyValueStoreAssociationList = (input: KeyValueStoreAssociation[], cont * serializeAws_restXmlKeyValueStoreAssociations */ const se_KeyValueStoreAssociations = (input: KeyValueStoreAssociations, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("KeyValueStoreAssociations"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_KeyValueStoreAssociationList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_KVSA); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_KeyValueStoreAssociationList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlKinesisStreamConfig */ const se_KinesisStreamConfig = (input: KinesisStreamConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("KinesisStreamConfig"); - if (input.RoleARN != null) { - const node = __XmlNode.of("string", input.RoleARN).withName("RoleARN"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_KSC); + if (input[_RARN] != null) { + bn.c(__XmlNode.of(_st, input[_RARN]).n(_RARN)); } - if (input.StreamARN != null) { - const node = __XmlNode.of("string", input.StreamARN).withName("StreamARN"); - bodyNode.addChildNode(node); + if (input[_SARNt] != null) { + bn.c(__XmlNode.of(_st, input[_SARNt]).n(_SARNt)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlLambdaFunctionAssociation */ const se_LambdaFunctionAssociation = (input: LambdaFunctionAssociation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LambdaFunctionAssociation"); - if (input.LambdaFunctionARN != null) { - const node = __XmlNode.of("LambdaFunctionARN", input.LambdaFunctionARN).withName("LambdaFunctionARN"); - bodyNode.addChildNode(node); - } - if (input.EventType != null) { - const node = __XmlNode.of("EventType", input.EventType).withName("EventType"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LFAa); + bn.cc(input, _LFARN); + bn.cc(input, _ETv); + if (input[_IBn] != null) { + bn.c(__XmlNode.of(_b, String(input[_IBn])).n(_IBn)); } - if (input.IncludeBody != null) { - const node = __XmlNode.of("boolean", String(input.IncludeBody)).withName("IncludeBody"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** @@ -15038,8 +13669,8 @@ const se_LambdaFunctionAssociationList = (input: LambdaFunctionAssociation[], co return input .filter((e: any) => e != null) .map((entry) => { - const node = se_LambdaFunctionAssociation(entry, context); - return node.withName("LambdaFunctionAssociation"); + const n = se_LambdaFunctionAssociation(entry, context); + return n.n(_LFAa); }); }; @@ -15047,20 +13678,12 @@ const se_LambdaFunctionAssociationList = (input: LambdaFunctionAssociation[], co * serializeAws_restXmlLambdaFunctionAssociations */ const se_LambdaFunctionAssociations = (input: LambdaFunctionAssociations, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LambdaFunctionAssociations"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_LambdaFunctionAssociationList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_LFA); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_LambdaFunctionAssociationList(input[_It]!, context)); + return bn; }; /** @@ -15070,8 +13693,8 @@ const se_LocationList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Location"); + const n = __XmlNode.of(_st, entry); + return n.n(_L); }); }; @@ -15079,24 +13702,20 @@ const se_LocationList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlLoggingConfig */ const se_LoggingConfig = (input: LoggingConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LoggingConfig"); - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LC); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - if (input.IncludeCookies != null) { - const node = __XmlNode.of("boolean", String(input.IncludeCookies)).withName("IncludeCookies"); - bodyNode.addChildNode(node); + if (input[_IC] != null) { + bn.c(__XmlNode.of(_b, String(input[_IC])).n(_IC)); } - if (input.Bucket != null) { - const node = __XmlNode.of("string", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + if (input[_B] != null) { + bn.c(__XmlNode.of(_st, input[_B]).n(_B)); } - if (input.Prefix != null) { - const node = __XmlNode.of("string", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_Pr] != null) { + bn.c(__XmlNode.of(_st, input[_Pr]).n(_Pr)); } - return bodyNode; + return bn; }; /** @@ -15106,8 +13725,8 @@ const se_MethodsList = (input: Method[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Method", entry); - return node.withName("Method"); + const n = __XmlNode.of(_Met, entry); + return n.n(_Met); }); }; @@ -15115,108 +13734,86 @@ const se_MethodsList = (input: Method[], context: __SerdeContext): any => { * serializeAws_restXmlMonitoringSubscription */ const se_MonitoringSubscription = (input: MonitoringSubscription, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MonitoringSubscription"); - if (input.RealtimeMetricsSubscriptionConfig != null) { - const node = se_RealtimeMetricsSubscriptionConfig(input.RealtimeMetricsSubscriptionConfig, context).withName( - "RealtimeMetricsSubscriptionConfig" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_MS); + if (input[_RMSC] != null) { + bn.c(se_RealtimeMetricsSubscriptionConfig(input[_RMSC], context).n(_RMSC)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOrigin */ const se_Origin = (input: Origin, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Origin"); - if (input.Id != null) { - const node = __XmlNode.of("string", input.Id).withName("Id"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Or); + if (input[_Id] != null) { + bn.c(__XmlNode.of(_st, input[_Id]).n(_Id)); } - if (input.DomainName != null) { - const node = __XmlNode.of("string", input.DomainName).withName("DomainName"); - bodyNode.addChildNode(node); + if (input[_DN] != null) { + bn.c(__XmlNode.of(_st, input[_DN]).n(_DN)); } - if (input.OriginPath != null) { - const node = __XmlNode.of("string", input.OriginPath).withName("OriginPath"); - bodyNode.addChildNode(node); + if (input[_OP] != null) { + bn.c(__XmlNode.of(_st, input[_OP]).n(_OP)); } - if (input.CustomHeaders != null) { - const node = se_CustomHeaders(input.CustomHeaders, context).withName("CustomHeaders"); - bodyNode.addChildNode(node); + if (input[_CH] != null) { + bn.c(se_CustomHeaders(input[_CH], context).n(_CH)); } - if (input.S3OriginConfig != null) { - const node = se_S3OriginConfig(input.S3OriginConfig, context).withName("S3OriginConfig"); - bodyNode.addChildNode(node); + if (input[_SOC] != null) { + bn.c(se_S3OriginConfig(input[_SOC], context).n(_SOC)); } - if (input.CustomOriginConfig != null) { - const node = se_CustomOriginConfig(input.CustomOriginConfig, context).withName("CustomOriginConfig"); - bodyNode.addChildNode(node); + if (input[_COC] != null) { + bn.c(se_CustomOriginConfig(input[_COC], context).n(_COC)); } - if (input.ConnectionAttempts != null) { - const node = __XmlNode.of("integer", String(input.ConnectionAttempts)).withName("ConnectionAttempts"); - bodyNode.addChildNode(node); + if (input[_CA] != null) { + bn.c(__XmlNode.of(_i, String(input[_CA])).n(_CA)); } - if (input.ConnectionTimeout != null) { - const node = __XmlNode.of("integer", String(input.ConnectionTimeout)).withName("ConnectionTimeout"); - bodyNode.addChildNode(node); + if (input[_CTon] != null) { + bn.c(__XmlNode.of(_i, String(input[_CTon])).n(_CTon)); } - if (input.OriginShield != null) { - const node = se_OriginShield(input.OriginShield, context).withName("OriginShield"); - bodyNode.addChildNode(node); + if (input[_OS] != null) { + bn.c(se_OriginShield(input[_OS], context).n(_OS)); } - if (input.OriginAccessControlId != null) { - const node = __XmlNode.of("string", input.OriginAccessControlId).withName("OriginAccessControlId"); - bodyNode.addChildNode(node); + if (input[_OACI] != null) { + bn.c(__XmlNode.of(_st, input[_OACI]).n(_OACI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOriginAccessControlConfig */ const se_OriginAccessControlConfig = (input: OriginAccessControlConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginAccessControlConfig"); - if (input.Name != null) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OACC); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.Description != null) { - const node = __XmlNode.of("string", input.Description).withName("Description"); - bodyNode.addChildNode(node); + if (input[_D] != null) { + bn.c(__XmlNode.of(_st, input[_D]).n(_D)); } - if (input.SigningProtocol != null) { - const node = __XmlNode.of("OriginAccessControlSigningProtocols", input.SigningProtocol).withName("SigningProtocol"); - bodyNode.addChildNode(node); + if (input[_SP] != null) { + bn.c(__XmlNode.of(_OACSP, input[_SP]).n(_SP)); } - if (input.SigningBehavior != null) { - const node = __XmlNode.of("OriginAccessControlSigningBehaviors", input.SigningBehavior).withName("SigningBehavior"); - bodyNode.addChildNode(node); + if (input[_SB] != null) { + bn.c(__XmlNode.of(_OACSB, input[_SB]).n(_SB)); } - if (input.OriginAccessControlOriginType != null) { - const node = __XmlNode - .of("OriginAccessControlOriginTypes", input.OriginAccessControlOriginType) - .withName("OriginAccessControlOriginType"); - bodyNode.addChildNode(node); + if (input[_OACOT] != null) { + bn.c(__XmlNode.of(_OACOTr, input[_OACOT]).n(_OACOT)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOriginCustomHeader */ const se_OriginCustomHeader = (input: OriginCustomHeader, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginCustomHeader"); - if (input.HeaderName != null) { - const node = __XmlNode.of("string", input.HeaderName).withName("HeaderName"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OCH); + if (input[_HN] != null) { + bn.c(__XmlNode.of(_st, input[_HN]).n(_HN)); } - if (input.HeaderValue != null) { - const node = __XmlNode.of("sensitiveStringType", input.HeaderValue).withName("HeaderValue"); - bodyNode.addChildNode(node); + if (input[_HVe] != null) { + bn.c(__XmlNode.of(_sST, input[_HVe]).n(_HVe)); } - return bodyNode; + return bn; }; /** @@ -15226,8 +13823,8 @@ const se_OriginCustomHeadersList = (input: OriginCustomHeader[], context: __Serd return input .filter((e: any) => e != null) .map((entry) => { - const node = se_OriginCustomHeader(entry, context); - return node.withName("OriginCustomHeader"); + const n = se_OriginCustomHeader(entry, context); + return n.n(_OCH); }); }; @@ -15235,32 +13832,28 @@ const se_OriginCustomHeadersList = (input: OriginCustomHeader[], context: __Serd * serializeAws_restXmlOriginGroup */ const se_OriginGroup = (input: OriginGroup, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginGroup"); - if (input.Id != null) { - const node = __XmlNode.of("string", input.Id).withName("Id"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OGr); + if (input[_Id] != null) { + bn.c(__XmlNode.of(_st, input[_Id]).n(_Id)); } - if (input.FailoverCriteria != null) { - const node = se_OriginGroupFailoverCriteria(input.FailoverCriteria, context).withName("FailoverCriteria"); - bodyNode.addChildNode(node); + if (input[_FCa] != null) { + bn.c(se_OriginGroupFailoverCriteria(input[_FCa], context).n(_FCa)); } - if (input.Members != null) { - const node = se_OriginGroupMembers(input.Members, context).withName("Members"); - bodyNode.addChildNode(node); + if (input[_Mem] != null) { + bn.c(se_OriginGroupMembers(input[_Mem], context).n(_Mem)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOriginGroupFailoverCriteria */ const se_OriginGroupFailoverCriteria = (input: OriginGroupFailoverCriteria, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginGroupFailoverCriteria"); - if (input.StatusCodes != null) { - const node = se_StatusCodes(input.StatusCodes, context).withName("StatusCodes"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OGFC); + if (input[_SC] != null) { + bn.c(se_StatusCodes(input[_SC], context).n(_SC)); } - return bodyNode; + return bn; }; /** @@ -15270,8 +13863,8 @@ const se_OriginGroupList = (input: OriginGroup[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = se_OriginGroup(entry, context); - return node.withName("OriginGroup"); + const n = se_OriginGroup(entry, context); + return n.n(_OGr); }); }; @@ -15279,12 +13872,11 @@ const se_OriginGroupList = (input: OriginGroup[], context: __SerdeContext): any * serializeAws_restXmlOriginGroupMember */ const se_OriginGroupMember = (input: OriginGroupMember, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginGroupMember"); - if (input.OriginId != null) { - const node = __XmlNode.of("string", input.OriginId).withName("OriginId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OGM); + if (input[_OI] != null) { + bn.c(__XmlNode.of(_st, input[_OI]).n(_OI)); } - return bodyNode; + return bn; }; /** @@ -15294,8 +13886,8 @@ const se_OriginGroupMemberList = (input: OriginGroupMember[], context: __SerdeCo return input .filter((e: any) => e != null) .map((entry) => { - const node = se_OriginGroupMember(entry, context); - return node.withName("OriginGroupMember"); + const n = se_OriginGroupMember(entry, context); + return n.n(_OGM); }); }; @@ -15303,40 +13895,24 @@ const se_OriginGroupMemberList = (input: OriginGroupMember[], context: __SerdeCo * serializeAws_restXmlOriginGroupMembers */ const se_OriginGroupMembers = (input: OriginGroupMembers, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginGroupMembers"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_OriginGroupMemberList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_OGMr); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_OriginGroupMemberList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlOriginGroups */ const se_OriginGroups = (input: OriginGroups, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginGroups"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_OriginGroupList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_OG); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_OriginGroupList(input[_It]!, context)); + return bn; }; /** @@ -15346,8 +13922,8 @@ const se_OriginList = (input: Origin[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Origin(entry, context); - return node.withName("Origin"); + const n = se_Origin(entry, context); + return n.n(_Or); }); }; @@ -15355,62 +13931,51 @@ const se_OriginList = (input: Origin[], context: __SerdeContext): any => { * serializeAws_restXmlOriginRequestPolicyConfig */ const se_OriginRequestPolicyConfig = (input: OriginRequestPolicyConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginRequestPolicyConfig"); - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ORPC); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - if (input.Name != null) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.HeadersConfig != null) { - const node = se_OriginRequestPolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig"); - bodyNode.addChildNode(node); + if (input[_HC] != null) { + bn.c(se_OriginRequestPolicyHeadersConfig(input[_HC], context).n(_HC)); } - if (input.CookiesConfig != null) { - const node = se_OriginRequestPolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig"); - bodyNode.addChildNode(node); + if (input[_CC] != null) { + bn.c(se_OriginRequestPolicyCookiesConfig(input[_CC], context).n(_CC)); } - if (input.QueryStringsConfig != null) { - const node = se_OriginRequestPolicyQueryStringsConfig(input.QueryStringsConfig, context).withName( - "QueryStringsConfig" - ); - bodyNode.addChildNode(node); + if (input[_QSC] != null) { + bn.c(se_OriginRequestPolicyQueryStringsConfig(input[_QSC], context).n(_QSC)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOriginRequestPolicyCookiesConfig */ const se_OriginRequestPolicyCookiesConfig = (input: OriginRequestPolicyCookiesConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginRequestPolicyCookiesConfig"); - if (input.CookieBehavior != null) { - const node = __XmlNode.of("OriginRequestPolicyCookieBehavior", input.CookieBehavior).withName("CookieBehavior"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ORPCC); + if (input[_CBo] != null) { + bn.c(__XmlNode.of(_ORPCB, input[_CBo]).n(_CBo)); } - if (input.Cookies != null) { - const node = se_CookieNames(input.Cookies, context).withName("Cookies"); - bodyNode.addChildNode(node); + if (input[_Coo] != null) { + bn.c(se_CookieNames(input[_Coo], context).n(_Coo)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOriginRequestPolicyHeadersConfig */ const se_OriginRequestPolicyHeadersConfig = (input: OriginRequestPolicyHeadersConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginRequestPolicyHeadersConfig"); - if (input.HeaderBehavior != null) { - const node = __XmlNode.of("OriginRequestPolicyHeaderBehavior", input.HeaderBehavior).withName("HeaderBehavior"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ORPHC); + if (input[_HB] != null) { + bn.c(__XmlNode.of(_ORPHB, input[_HB]).n(_HB)); } - if (input.Headers != null) { - const node = se_Headers(input.Headers, context).withName("Headers"); - bodyNode.addChildNode(node); + if (input[_He] != null) { + bn.c(se_Headers(input[_He], context).n(_He)); } - return bodyNode; + return bn; }; /** @@ -15420,74 +13985,50 @@ const se_OriginRequestPolicyQueryStringsConfig = ( input: OriginRequestPolicyQueryStringsConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("OriginRequestPolicyQueryStringsConfig"); - if (input.QueryStringBehavior != null) { - const node = __XmlNode - .of("OriginRequestPolicyQueryStringBehavior", input.QueryStringBehavior) - .withName("QueryStringBehavior"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ORPQSC); + if (input[_QSB] != null) { + bn.c(__XmlNode.of(_ORPQSB, input[_QSB]).n(_QSB)); } - if (input.QueryStrings != null) { - const node = se_QueryStringNames(input.QueryStrings, context).withName("QueryStrings"); - bodyNode.addChildNode(node); + if (input[_QS] != null) { + bn.c(se_QueryStringNames(input[_QS], context).n(_QS)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOrigins */ const se_Origins = (input: Origins, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Origins"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_OriginList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_Ori); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_OriginList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlOriginShield */ const se_OriginShield = (input: OriginShield, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginShield"); - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); - } - if (input.OriginShieldRegion != null) { - const node = __XmlNode.of("OriginShieldRegion", input.OriginShieldRegion).withName("OriginShieldRegion"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OS); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - return bodyNode; + bn.cc(input, _OSR); + return bn; }; /** * serializeAws_restXmlOriginSslProtocols */ const se_OriginSslProtocols = (input: OriginSslProtocols, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OriginSslProtocols"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_SslProtocolsList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_OSP); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_SslProtocolsList(input[_It]!, context)); + return bn; }; /** @@ -15497,30 +14038,23 @@ const se_ParametersInCacheKeyAndForwardedToOrigin = ( input: ParametersInCacheKeyAndForwardedToOrigin, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ParametersInCacheKeyAndForwardedToOrigin"); - if (input.EnableAcceptEncodingGzip != null) { - const node = __XmlNode.of("boolean", String(input.EnableAcceptEncodingGzip)).withName("EnableAcceptEncodingGzip"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PICKAFTO); + if (input[_EAEG] != null) { + bn.c(__XmlNode.of(_b, String(input[_EAEG])).n(_EAEG)); } - if (input.EnableAcceptEncodingBrotli != null) { - const node = __XmlNode - .of("boolean", String(input.EnableAcceptEncodingBrotli)) - .withName("EnableAcceptEncodingBrotli"); - bodyNode.addChildNode(node); + if (input[_EAEB] != null) { + bn.c(__XmlNode.of(_b, String(input[_EAEB])).n(_EAEB)); } - if (input.HeadersConfig != null) { - const node = se_CachePolicyHeadersConfig(input.HeadersConfig, context).withName("HeadersConfig"); - bodyNode.addChildNode(node); + if (input[_HC] != null) { + bn.c(se_CachePolicyHeadersConfig(input[_HC], context).n(_HC)); } - if (input.CookiesConfig != null) { - const node = se_CachePolicyCookiesConfig(input.CookiesConfig, context).withName("CookiesConfig"); - bodyNode.addChildNode(node); + if (input[_CC] != null) { + bn.c(se_CachePolicyCookiesConfig(input[_CC], context).n(_CC)); } - if (input.QueryStringsConfig != null) { - const node = se_CachePolicyQueryStringsConfig(input.QueryStringsConfig, context).withName("QueryStringsConfig"); - bodyNode.addChildNode(node); + if (input[_QSC] != null) { + bn.c(se_CachePolicyQueryStringsConfig(input[_QSC], context).n(_QSC)); } - return bodyNode; + return bn; }; /** @@ -15530,8 +14064,8 @@ const se_PathList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Path"); + const n = __XmlNode.of(_st, entry); + return n.n(_Pa); }); }; @@ -15539,44 +14073,32 @@ const se_PathList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlPaths */ const se_Paths = (input: Paths, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Paths"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_PathList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_P); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_PathList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlPublicKeyConfig */ const se_PublicKeyConfig = (input: PublicKeyConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PublicKeyConfig"); - if (input.CallerReference != null) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PKC); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - if (input.Name != null) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.EncodedKey != null) { - const node = __XmlNode.of("string", input.EncodedKey).withName("EncodedKey"); - bodyNode.addChildNode(node); + if (input[_EK] != null) { + bn.c(__XmlNode.of(_st, input[_EK]).n(_EK)); } - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - return bodyNode; + return bn; }; /** @@ -15586,8 +14108,8 @@ const se_PublicKeyIdList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("PublicKey"); + const n = __XmlNode.of(_st, entry); + return n.n(_PK); }); }; @@ -15595,34 +14117,28 @@ const se_PublicKeyIdList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlQueryArgProfile */ const se_QueryArgProfile = (input: QueryArgProfile, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("QueryArgProfile"); - if (input.QueryArg != null) { - const node = __XmlNode.of("string", input.QueryArg).withName("QueryArg"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_QAP); + if (input[_QA] != null) { + bn.c(__XmlNode.of(_st, input[_QA]).n(_QA)); } - if (input.ProfileId != null) { - const node = __XmlNode.of("string", input.ProfileId).withName("ProfileId"); - bodyNode.addChildNode(node); + if (input[_PI] != null) { + bn.c(__XmlNode.of(_st, input[_PI]).n(_PI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlQueryArgProfileConfig */ const se_QueryArgProfileConfig = (input: QueryArgProfileConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("QueryArgProfileConfig"); - if (input.ForwardWhenQueryArgProfileIsUnknown != null) { - const node = __XmlNode - .of("boolean", String(input.ForwardWhenQueryArgProfileIsUnknown)) - .withName("ForwardWhenQueryArgProfileIsUnknown"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_QAPC); + if (input[_FWQAPIU] != null) { + bn.c(__XmlNode.of(_b, String(input[_FWQAPIU])).n(_FWQAPIU)); } - if (input.QueryArgProfiles != null) { - const node = se_QueryArgProfiles(input.QueryArgProfiles, context).withName("QueryArgProfiles"); - bodyNode.addChildNode(node); + if (input[_QAPu] != null) { + bn.c(se_QueryArgProfiles(input[_QAPu], context).n(_QAPu)); } - return bodyNode; + return bn; }; /** @@ -15632,8 +14148,8 @@ const se_QueryArgProfileList = (input: QueryArgProfile[], context: __SerdeContex return input .filter((e: any) => e != null) .map((entry) => { - const node = se_QueryArgProfile(entry, context); - return node.withName("QueryArgProfile"); + const n = se_QueryArgProfile(entry, context); + return n.n(_QAP); }); }; @@ -15641,40 +14157,24 @@ const se_QueryArgProfileList = (input: QueryArgProfile[], context: __SerdeContex * serializeAws_restXmlQueryArgProfiles */ const se_QueryArgProfiles = (input: QueryArgProfiles, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("QueryArgProfiles"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_QueryArgProfileList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_QAPu); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_QueryArgProfileList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlQueryStringCacheKeys */ const se_QueryStringCacheKeys = (input: QueryStringCacheKeys, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("QueryStringCacheKeys"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_QueryStringCacheKeysList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_QSCK); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_QueryStringCacheKeysList(input[_It]!, context)); + return bn; }; /** @@ -15684,8 +14184,8 @@ const se_QueryStringCacheKeysList = (input: string[], context: __SerdeContext): return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Name"); + const n = __XmlNode.of(_st, entry); + return n.n(_N); }); }; @@ -15693,20 +14193,12 @@ const se_QueryStringCacheKeysList = (input: string[], context: __SerdeContext): * serializeAws_restXmlQueryStringNames */ const se_QueryStringNames = (input: QueryStringNames, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("QueryStringNames"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_QueryStringNamesList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_QSN); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_QueryStringNamesList(input[_It]!, context)); + return bn; }; /** @@ -15716,8 +14208,8 @@ const se_QueryStringNamesList = (input: string[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("Name"); + const n = __XmlNode.of(_st, entry); + return n.n(_N); }); }; @@ -15728,14 +14220,9 @@ const se_RealtimeMetricsSubscriptionConfig = ( input: RealtimeMetricsSubscriptionConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("RealtimeMetricsSubscriptionConfig"); - if (input.RealtimeMetricsSubscriptionStatus != null) { - const node = __XmlNode - .of("RealtimeMetricsSubscriptionStatus", input.RealtimeMetricsSubscriptionStatus) - .withName("RealtimeMetricsSubscriptionStatus"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_RMSC); + bn.cc(input, _RMSS); + return bn; }; /** @@ -15745,20 +14232,12 @@ const se_ResponseHeadersPolicyAccessControlAllowHeaders = ( input: ResponseHeadersPolicyAccessControlAllowHeaders, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowHeaders"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_AccessControlAllowHeadersList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_RHPACAH); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_AccessControlAllowHeadersList(input[_It]!, context)); + return bn; }; /** @@ -15768,20 +14247,12 @@ const se_ResponseHeadersPolicyAccessControlAllowMethods = ( input: ResponseHeadersPolicyAccessControlAllowMethods, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowMethods"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_AccessControlAllowMethodsList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_RHPACAM); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_AccessControlAllowMethodsList(input[_It]!, context)); + return bn; }; /** @@ -15791,20 +14262,12 @@ const se_ResponseHeadersPolicyAccessControlAllowOrigins = ( input: ResponseHeadersPolicyAccessControlAllowOrigins, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowOrigins"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_AccessControlAllowOriginsList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_RHPACAO); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_AccessControlAllowOriginsList(input[_It]!, context)); + return bn; }; /** @@ -15814,64 +14277,41 @@ const se_ResponseHeadersPolicyAccessControlExposeHeaders = ( input: ResponseHeadersPolicyAccessControlExposeHeaders, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlExposeHeaders"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_AccessControlExposeHeadersList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_RHPACEH); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_AccessControlExposeHeadersList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlResponseHeadersPolicyConfig */ const se_ResponseHeadersPolicyConfig = (input: ResponseHeadersPolicyConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyConfig"); - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPC); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - if (input.Name != null) { - const node = __XmlNode.of("string", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_st, input[_N]).n(_N)); } - if (input.CorsConfig != null) { - const node = se_ResponseHeadersPolicyCorsConfig(input.CorsConfig, context).withName("CorsConfig"); - bodyNode.addChildNode(node); + if (input[_CCo] != null) { + bn.c(se_ResponseHeadersPolicyCorsConfig(input[_CCo], context).n(_CCo)); } - if (input.SecurityHeadersConfig != null) { - const node = se_ResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName( - "SecurityHeadersConfig" - ); - bodyNode.addChildNode(node); + if (input[_SHC] != null) { + bn.c(se_ResponseHeadersPolicySecurityHeadersConfig(input[_SHC], context).n(_SHC)); } - if (input.ServerTimingHeadersConfig != null) { - const node = se_ResponseHeadersPolicyServerTimingHeadersConfig(input.ServerTimingHeadersConfig, context).withName( - "ServerTimingHeadersConfig" - ); - bodyNode.addChildNode(node); + if (input[_STHC] != null) { + bn.c(se_ResponseHeadersPolicyServerTimingHeadersConfig(input[_STHC], context).n(_STHC)); } - if (input.CustomHeadersConfig != null) { - const node = se_ResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName( - "CustomHeadersConfig" - ); - bodyNode.addChildNode(node); + if (input[_CHC] != null) { + bn.c(se_ResponseHeadersPolicyCustomHeadersConfig(input[_CHC], context).n(_CHC)); } - if (input.RemoveHeadersConfig != null) { - const node = se_ResponseHeadersPolicyRemoveHeadersConfig(input.RemoveHeadersConfig, context).withName( - "RemoveHeadersConfig" - ); - bodyNode.addChildNode(node); + if (input[_RHC] != null) { + bn.c(se_ResponseHeadersPolicyRemoveHeadersConfig(input[_RHC], context).n(_RHC)); } - return bodyNode; + return bn; }; /** @@ -15881,16 +14321,14 @@ const se_ResponseHeadersPolicyContentSecurityPolicy = ( input: ResponseHeadersPolicyContentSecurityPolicy, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyContentSecurityPolicy"); - if (input.Override != null) { - const node = __XmlNode.of("boolean", String(input.Override)).withName("Override"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPCSP); + if (input[_Ov] != null) { + bn.c(__XmlNode.of(_b, String(input[_Ov])).n(_Ov)); } - if (input.ContentSecurityPolicy != null) { - const node = __XmlNode.of("string", input.ContentSecurityPolicy).withName("ContentSecurityPolicy"); - bodyNode.addChildNode(node); + if (input[_CSP] != null) { + bn.c(__XmlNode.of(_st, input[_CSP]).n(_CSP)); } - return bodyNode; + return bn; }; /** @@ -15900,58 +14338,40 @@ const se_ResponseHeadersPolicyContentTypeOptions = ( input: ResponseHeadersPolicyContentTypeOptions, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyContentTypeOptions"); - if (input.Override != null) { - const node = __XmlNode.of("boolean", String(input.Override)).withName("Override"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPCTO); + if (input[_Ov] != null) { + bn.c(__XmlNode.of(_b, String(input[_Ov])).n(_Ov)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlResponseHeadersPolicyCorsConfig */ const se_ResponseHeadersPolicyCorsConfig = (input: ResponseHeadersPolicyCorsConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyCorsConfig"); - if (input.AccessControlAllowOrigins != null) { - const node = se_ResponseHeadersPolicyAccessControlAllowOrigins(input.AccessControlAllowOrigins, context).withName( - "AccessControlAllowOrigins" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPCC); + if (input[_ACAO] != null) { + bn.c(se_ResponseHeadersPolicyAccessControlAllowOrigins(input[_ACAO], context).n(_ACAO)); } - if (input.AccessControlAllowHeaders != null) { - const node = se_ResponseHeadersPolicyAccessControlAllowHeaders(input.AccessControlAllowHeaders, context).withName( - "AccessControlAllowHeaders" - ); - bodyNode.addChildNode(node); + if (input[_ACAH] != null) { + bn.c(se_ResponseHeadersPolicyAccessControlAllowHeaders(input[_ACAH], context).n(_ACAH)); } - if (input.AccessControlAllowMethods != null) { - const node = se_ResponseHeadersPolicyAccessControlAllowMethods(input.AccessControlAllowMethods, context).withName( - "AccessControlAllowMethods" - ); - bodyNode.addChildNode(node); + if (input[_ACAM] != null) { + bn.c(se_ResponseHeadersPolicyAccessControlAllowMethods(input[_ACAM], context).n(_ACAM)); } - if (input.AccessControlAllowCredentials != null) { - const node = __XmlNode - .of("boolean", String(input.AccessControlAllowCredentials)) - .withName("AccessControlAllowCredentials"); - bodyNode.addChildNode(node); + if (input[_ACAC] != null) { + bn.c(__XmlNode.of(_b, String(input[_ACAC])).n(_ACAC)); } - if (input.AccessControlExposeHeaders != null) { - const node = se_ResponseHeadersPolicyAccessControlExposeHeaders(input.AccessControlExposeHeaders, context).withName( - "AccessControlExposeHeaders" - ); - bodyNode.addChildNode(node); + if (input[_ACEH] != null) { + bn.c(se_ResponseHeadersPolicyAccessControlExposeHeaders(input[_ACEH], context).n(_ACEH)); } - if (input.AccessControlMaxAgeSec != null) { - const node = __XmlNode.of("integer", String(input.AccessControlMaxAgeSec)).withName("AccessControlMaxAgeSec"); - bodyNode.addChildNode(node); + if (input[_ACMAS] != null) { + bn.c(__XmlNode.of(_i, String(input[_ACMAS])).n(_ACMAS)); } - if (input.OriginOverride != null) { - const node = __XmlNode.of("boolean", String(input.OriginOverride)).withName("OriginOverride"); - bodyNode.addChildNode(node); + if (input[_OO] != null) { + bn.c(__XmlNode.of(_b, String(input[_OO])).n(_OO)); } - return bodyNode; + return bn; }; /** @@ -15961,20 +14381,17 @@ const se_ResponseHeadersPolicyCustomHeader = ( input: ResponseHeadersPolicyCustomHeader, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyCustomHeader"); - if (input.Header != null) { - const node = __XmlNode.of("string", input.Header).withName("Header"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPCH); + if (input[_H] != null) { + bn.c(__XmlNode.of(_st, input[_H]).n(_H)); } - if (input.Value != null) { - const node = __XmlNode.of("string", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_V] != null) { + bn.c(__XmlNode.of(_st, input[_V]).n(_V)); } - if (input.Override != null) { - const node = __XmlNode.of("boolean", String(input.Override)).withName("Override"); - bodyNode.addChildNode(node); + if (input[_Ov] != null) { + bn.c(__XmlNode.of(_b, String(input[_Ov])).n(_Ov)); } - return bodyNode; + return bn; }; /** @@ -15987,8 +14404,8 @@ const se_ResponseHeadersPolicyCustomHeaderList = ( return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ResponseHeadersPolicyCustomHeader(entry, context); - return node.withName("ResponseHeadersPolicyCustomHeader"); + const n = se_ResponseHeadersPolicyCustomHeader(entry, context); + return n.n(_RHPCH); }); }; @@ -15999,20 +14416,12 @@ const se_ResponseHeadersPolicyCustomHeadersConfig = ( input: ResponseHeadersPolicyCustomHeadersConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyCustomHeadersConfig"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_ResponseHeadersPolicyCustomHeaderList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_RHPCHC); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_ResponseHeadersPolicyCustomHeaderList(input[_It]!, context)); + return bn; }; /** @@ -16022,16 +14431,14 @@ const se_ResponseHeadersPolicyFrameOptions = ( input: ResponseHeadersPolicyFrameOptions, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyFrameOptions"); - if (input.Override != null) { - const node = __XmlNode.of("boolean", String(input.Override)).withName("Override"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPFO); + if (input[_Ov] != null) { + bn.c(__XmlNode.of(_b, String(input[_Ov])).n(_Ov)); } - if (input.FrameOption != null) { - const node = __XmlNode.of("FrameOptionsList", input.FrameOption).withName("FrameOption"); - bodyNode.addChildNode(node); + if (input[_FO] != null) { + bn.c(__XmlNode.of(_FOL, input[_FO]).n(_FO)); } - return bodyNode; + return bn; }; /** @@ -16041,16 +14448,14 @@ const se_ResponseHeadersPolicyReferrerPolicy = ( input: ResponseHeadersPolicyReferrerPolicy, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyReferrerPolicy"); - if (input.Override != null) { - const node = __XmlNode.of("boolean", String(input.Override)).withName("Override"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPRP); + if (input[_Ov] != null) { + bn.c(__XmlNode.of(_b, String(input[_Ov])).n(_Ov)); } - if (input.ReferrerPolicy != null) { - const node = __XmlNode.of("ReferrerPolicyList", input.ReferrerPolicy).withName("ReferrerPolicy"); - bodyNode.addChildNode(node); + if (input[_RP] != null) { + bn.c(__XmlNode.of(_RPL, input[_RP]).n(_RP)); } - return bodyNode; + return bn; }; /** @@ -16060,12 +14465,11 @@ const se_ResponseHeadersPolicyRemoveHeader = ( input: ResponseHeadersPolicyRemoveHeader, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyRemoveHeader"); - if (input.Header != null) { - const node = __XmlNode.of("string", input.Header).withName("Header"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPRH); + if (input[_H] != null) { + bn.c(__XmlNode.of(_st, input[_H]).n(_H)); } - return bodyNode; + return bn; }; /** @@ -16078,8 +14482,8 @@ const se_ResponseHeadersPolicyRemoveHeaderList = ( return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ResponseHeadersPolicyRemoveHeader(entry, context); - return node.withName("ResponseHeadersPolicyRemoveHeader"); + const n = se_ResponseHeadersPolicyRemoveHeader(entry, context); + return n.n(_RHPRH); }); }; @@ -16090,20 +14494,12 @@ const se_ResponseHeadersPolicyRemoveHeadersConfig = ( input: ResponseHeadersPolicyRemoveHeadersConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyRemoveHeadersConfig"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_ResponseHeadersPolicyRemoveHeaderList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_RHPRHC); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_ResponseHeadersPolicyRemoveHeaderList(input[_It]!, context)); + return bn; }; /** @@ -16113,38 +14509,26 @@ const se_ResponseHeadersPolicySecurityHeadersConfig = ( input: ResponseHeadersPolicySecurityHeadersConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicySecurityHeadersConfig"); - if (input.XSSProtection != null) { - const node = se_ResponseHeadersPolicyXSSProtection(input.XSSProtection, context).withName("XSSProtection"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPSHC); + if (input[_XSSP] != null) { + bn.c(se_ResponseHeadersPolicyXSSProtection(input[_XSSP], context).n(_XSSP)); } - if (input.FrameOptions != null) { - const node = se_ResponseHeadersPolicyFrameOptions(input.FrameOptions, context).withName("FrameOptions"); - bodyNode.addChildNode(node); + if (input[_FOr] != null) { + bn.c(se_ResponseHeadersPolicyFrameOptions(input[_FOr], context).n(_FOr)); } - if (input.ReferrerPolicy != null) { - const node = se_ResponseHeadersPolicyReferrerPolicy(input.ReferrerPolicy, context).withName("ReferrerPolicy"); - bodyNode.addChildNode(node); + if (input[_RP] != null) { + bn.c(se_ResponseHeadersPolicyReferrerPolicy(input[_RP], context).n(_RP)); } - if (input.ContentSecurityPolicy != null) { - const node = se_ResponseHeadersPolicyContentSecurityPolicy(input.ContentSecurityPolicy, context).withName( - "ContentSecurityPolicy" - ); - bodyNode.addChildNode(node); + if (input[_CSP] != null) { + bn.c(se_ResponseHeadersPolicyContentSecurityPolicy(input[_CSP], context).n(_CSP)); } - if (input.ContentTypeOptions != null) { - const node = se_ResponseHeadersPolicyContentTypeOptions(input.ContentTypeOptions, context).withName( - "ContentTypeOptions" - ); - bodyNode.addChildNode(node); + if (input[_CTO] != null) { + bn.c(se_ResponseHeadersPolicyContentTypeOptions(input[_CTO], context).n(_CTO)); } - if (input.StrictTransportSecurity != null) { - const node = se_ResponseHeadersPolicyStrictTransportSecurity(input.StrictTransportSecurity, context).withName( - "StrictTransportSecurity" - ); - bodyNode.addChildNode(node); + if (input[_STS] != null) { + bn.c(se_ResponseHeadersPolicyStrictTransportSecurity(input[_STS], context).n(_STS)); } - return bodyNode; + return bn; }; /** @@ -16154,16 +14538,14 @@ const se_ResponseHeadersPolicyServerTimingHeadersConfig = ( input: ResponseHeadersPolicyServerTimingHeadersConfig, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyServerTimingHeadersConfig"); - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPSTHC); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - if (input.SamplingRate != null) { - const node = __XmlNode.of("SamplingRate", String(input.SamplingRate)).withName("SamplingRate"); - bodyNode.addChildNode(node); + if (input[_SR] != null) { + bn.c(__XmlNode.of(_SR, String(input[_SR])).n(_SR)); } - return bodyNode; + return bn; }; /** @@ -16173,24 +14555,20 @@ const se_ResponseHeadersPolicyStrictTransportSecurity = ( input: ResponseHeadersPolicyStrictTransportSecurity, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyStrictTransportSecurity"); - if (input.Override != null) { - const node = __XmlNode.of("boolean", String(input.Override)).withName("Override"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPSTS); + if (input[_Ov] != null) { + bn.c(__XmlNode.of(_b, String(input[_Ov])).n(_Ov)); } - if (input.IncludeSubdomains != null) { - const node = __XmlNode.of("boolean", String(input.IncludeSubdomains)).withName("IncludeSubdomains"); - bodyNode.addChildNode(node); + if (input[_ISn] != null) { + bn.c(__XmlNode.of(_b, String(input[_ISn])).n(_ISn)); } - if (input.Preload != null) { - const node = __XmlNode.of("boolean", String(input.Preload)).withName("Preload"); - bodyNode.addChildNode(node); + if (input[_Pre] != null) { + bn.c(__XmlNode.of(_b, String(input[_Pre])).n(_Pre)); } - if (input.AccessControlMaxAgeSec != null) { - const node = __XmlNode.of("integer", String(input.AccessControlMaxAgeSec)).withName("AccessControlMaxAgeSec"); - bodyNode.addChildNode(node); + if (input[_ACMAS] != null) { + bn.c(__XmlNode.of(_i, String(input[_ACMAS])).n(_ACMAS)); } - return bodyNode; + return bn; }; /** @@ -16200,80 +14578,70 @@ const se_ResponseHeadersPolicyXSSProtection = ( input: ResponseHeadersPolicyXSSProtection, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ResponseHeadersPolicyXSSProtection"); - if (input.Override != null) { - const node = __XmlNode.of("boolean", String(input.Override)).withName("Override"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RHPXSSP); + if (input[_Ov] != null) { + bn.c(__XmlNode.of(_b, String(input[_Ov])).n(_Ov)); } - if (input.Protection != null) { - const node = __XmlNode.of("boolean", String(input.Protection)).withName("Protection"); - bodyNode.addChildNode(node); + if (input[_Pro] != null) { + bn.c(__XmlNode.of(_b, String(input[_Pro])).n(_Pro)); } - if (input.ModeBlock != null) { - const node = __XmlNode.of("boolean", String(input.ModeBlock)).withName("ModeBlock"); - bodyNode.addChildNode(node); + if (input[_MB] != null) { + bn.c(__XmlNode.of(_b, String(input[_MB])).n(_MB)); } - if (input.ReportUri != null) { - const node = __XmlNode.of("string", input.ReportUri).withName("ReportUri"); - bodyNode.addChildNode(node); + if (input[_RU] != null) { + bn.c(__XmlNode.of(_st, input[_RU]).n(_RU)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlRestrictions */ const se_Restrictions = (input: Restrictions, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Restrictions"); - if (input.GeoRestriction != null) { - const node = se_GeoRestriction(input.GeoRestriction, context).withName("GeoRestriction"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Re); + if (input[_GR] != null) { + bn.c(se_GeoRestriction(input[_GR], context).n(_GR)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3Origin */ const se_S3Origin = (input: S3Origin, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3Origin"); - if (input.DomainName != null) { - const node = __XmlNode.of("string", input.DomainName).withName("DomainName"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SO); + if (input[_DN] != null) { + bn.c(__XmlNode.of(_st, input[_DN]).n(_DN)); } - if (input.OriginAccessIdentity != null) { - const node = __XmlNode.of("string", input.OriginAccessIdentity).withName("OriginAccessIdentity"); - bodyNode.addChildNode(node); + if (input[_OAI] != null) { + bn.c(__XmlNode.of(_st, input[_OAI]).n(_OAI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3OriginConfig */ const se_S3OriginConfig = (input: S3OriginConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3OriginConfig"); - if (input.OriginAccessIdentity != null) { - const node = __XmlNode.of("string", input.OriginAccessIdentity).withName("OriginAccessIdentity"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SOC); + if (input[_OAI] != null) { + bn.c(__XmlNode.of(_st, input[_OAI]).n(_OAI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSessionStickinessConfig */ const se_SessionStickinessConfig = (input: SessionStickinessConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SessionStickinessConfig"); - if (input.IdleTTL != null) { - const node = __XmlNode.of("integer", String(input.IdleTTL)).withName("IdleTTL"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSC); + if (input[_ITTL] != null) { + bn.c(__XmlNode.of(_i, String(input[_ITTL])).n(_ITTL)); } - if (input.MaximumTTL != null) { - const node = __XmlNode.of("integer", String(input.MaximumTTL)).withName("MaximumTTL"); - bodyNode.addChildNode(node); + if (input[_MTTLax] != null) { + bn.c(__XmlNode.of(_i, String(input[_MTTLax])).n(_MTTLax)); } - return bodyNode; + return bn; }; /** @@ -16283,8 +14651,8 @@ const se_SslProtocolsList = (input: SslProtocol[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("SslProtocol", entry); - return node.withName("SslProtocol"); + const n = __XmlNode.of(_SPs, entry); + return n.n(_SPs); }); }; @@ -16295,8 +14663,8 @@ const se_StagingDistributionDnsNameList = (input: string[], context: __SerdeCont return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("DnsName"); + const n = __XmlNode.of(_st, entry); + return n.n(_DNn); }); }; @@ -16304,20 +14672,12 @@ const se_StagingDistributionDnsNameList = (input: string[], context: __SerdeCont * serializeAws_restXmlStagingDistributionDnsNames */ const se_StagingDistributionDnsNames = (input: StagingDistributionDnsNames, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StagingDistributionDnsNames"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_StagingDistributionDnsNameList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_SDDN); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_StagingDistributionDnsNameList(input[_It]!, context)); + return bn; }; /** @@ -16327,8 +14687,8 @@ const se_StatusCodeList = (input: number[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("integer", String(entry)); - return node.withName("StatusCode"); + const n = __XmlNode.of(_i, String(entry)); + return n.n(_SCt); }); }; @@ -16336,60 +14696,42 @@ const se_StatusCodeList = (input: number[], context: __SerdeContext): any => { * serializeAws_restXmlStatusCodes */ const se_StatusCodes = (input: StatusCodes, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StatusCodes"); - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_StatusCodeList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_SC); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_StatusCodeList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlStreamingDistributionConfig */ const se_StreamingDistributionConfig = (input: StreamingDistributionConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StreamingDistributionConfig"); - if (input.CallerReference != null) { - const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SDC); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_st, input[_CR]).n(_CR)); } - if (input.S3Origin != null) { - const node = se_S3Origin(input.S3Origin, context).withName("S3Origin"); - bodyNode.addChildNode(node); + if (input[_SO] != null) { + bn.c(se_S3Origin(input[_SO], context).n(_SO)); } - if (input.Aliases != null) { - const node = se_Aliases(input.Aliases, context).withName("Aliases"); - bodyNode.addChildNode(node); + if (input[_Al] != null) { + bn.c(se_Aliases(input[_Al], context).n(_Al)); } - if (input.Comment != null) { - const node = __XmlNode.of("string", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + if (input[_C] != null) { + bn.c(__XmlNode.of(_st, input[_C]).n(_C)); } - if (input.Logging != null) { - const node = se_StreamingLoggingConfig(input.Logging, context).withName("Logging"); - bodyNode.addChildNode(node); + if (input[_Lo] != null) { + bn.c(se_StreamingLoggingConfig(input[_Lo], context).n(_Lo)); } - if (input.TrustedSigners != null) { - const node = se_TrustedSigners(input.TrustedSigners, context).withName("TrustedSigners"); - bodyNode.addChildNode(node); + if (input[_TS] != null) { + bn.c(se_TrustedSigners(input[_TS], context).n(_TS)); } - if (input.PriceClass != null) { - const node = __XmlNode.of("PriceClass", input.PriceClass).withName("PriceClass"); - bodyNode.addChildNode(node); + bn.cc(input, _PC); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** @@ -16399,54 +14741,45 @@ const se_StreamingDistributionConfigWithTags = ( input: StreamingDistributionConfigWithTags, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("StreamingDistributionConfigWithTags"); - if (input.StreamingDistributionConfig != null) { - const node = se_StreamingDistributionConfig(input.StreamingDistributionConfig, context).withName( - "StreamingDistributionConfig" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SDCWT); + if (input[_SDC] != null) { + bn.c(se_StreamingDistributionConfig(input[_SDC], context).n(_SDC)); } - if (input.Tags != null) { - const node = se_Tags(input.Tags, context).withName("Tags"); - bodyNode.addChildNode(node); + if (input[_Ta] != null) { + bn.c(se_Tags(input[_Ta], context).n(_Ta)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStreamingLoggingConfig */ const se_StreamingLoggingConfig = (input: StreamingLoggingConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StreamingLoggingConfig"); - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLC); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - if (input.Bucket != null) { - const node = __XmlNode.of("string", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + if (input[_B] != null) { + bn.c(__XmlNode.of(_st, input[_B]).n(_B)); } - if (input.Prefix != null) { - const node = __XmlNode.of("string", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_Pr] != null) { + bn.c(__XmlNode.of(_st, input[_Pr]).n(_Pr)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlTag */ const se_Tag = (input: Tag, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tag"); - if (input.Key != null) { - const node = __XmlNode.of("TagKey", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Tag); + if (input[_K] != null) { + bn.c(__XmlNode.of(_TK, input[_K]).n(_K)); } - if (input.Value != null) { - const node = __XmlNode.of("TagValue", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_V] != null) { + bn.c(__XmlNode.of(_TV, input[_V]).n(_V)); } - return bodyNode; + return bn; }; /** @@ -16456,8 +14789,8 @@ const se_TagKeyList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("TagKey", entry); - return node.withName("Key"); + const n = __XmlNode.of(_TK, entry); + return n.n(_K); }); }; @@ -16465,16 +14798,9 @@ const se_TagKeyList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlTagKeys */ const se_TagKeys = (input: TagKeys, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("TagKeys"); - if (input.Items != null) { - const nodes = se_TagKeyList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_TKa); + bn.lc(input, "Items", "Items", () => se_TagKeyList(input[_It]!, context)); + return bn; }; /** @@ -16484,8 +14810,8 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Tag(entry, context); - return node.withName("Tag"); + const n = se_Tag(entry, context); + return n.n(_Tag); }); }; @@ -16493,40 +14819,26 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { * serializeAws_restXmlTags */ const se_Tags = (input: Tags, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tags"); - if (input.Items != null) { - const nodes = se_TagList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_Ta); + bn.lc(input, "Items", "Items", () => se_TagList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlTrafficConfig */ const se_TrafficConfig = (input: TrafficConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("TrafficConfig"); - if (input.SingleWeightConfig != null) { - const node = se_ContinuousDeploymentSingleWeightConfig(input.SingleWeightConfig, context).withName( - "SingleWeightConfig" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_TC); + if (input[_SWC] != null) { + bn.c(se_ContinuousDeploymentSingleWeightConfig(input[_SWC], context).n(_SWC)); } - if (input.SingleHeaderConfig != null) { - const node = se_ContinuousDeploymentSingleHeaderConfig(input.SingleHeaderConfig, context).withName( - "SingleHeaderConfig" - ); - bodyNode.addChildNode(node); + if (input[_SHCi] != null) { + bn.c(se_ContinuousDeploymentSingleHeaderConfig(input[_SHCi], context).n(_SHCi)); } - if (input.Type != null) { - const node = __XmlNode.of("ContinuousDeploymentPolicyType", input.Type).withName("Type"); - bodyNode.addChildNode(node); + if (input[_T] != null) { + bn.c(__XmlNode.of(_CDPT, input[_T]).n(_T)); } - return bodyNode; + return bn; }; /** @@ -16536,8 +14848,8 @@ const se_TrustedKeyGroupIdList = (input: string[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("string", entry); - return node.withName("KeyGroup"); + const n = __XmlNode.of(_st, entry); + return n.n(_KG); }); }; @@ -16545,88 +14857,53 @@ const se_TrustedKeyGroupIdList = (input: string[], context: __SerdeContext): any * serializeAws_restXmlTrustedKeyGroups */ const se_TrustedKeyGroups = (input: TrustedKeyGroups, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("TrustedKeyGroups"); - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); - } - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_TrustedKeyGroupIdList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_TKG); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); + } + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); } - return bodyNode; + bn.lc(input, "Items", "Items", () => se_TrustedKeyGroupIdList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlTrustedSigners */ const se_TrustedSigners = (input: TrustedSigners, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("TrustedSigners"); - if (input.Enabled != null) { - const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); - } - if (input.Quantity != null) { - const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity"); - bodyNode.addChildNode(node); - } - if (input.Items != null) { - const nodes = se_AwsAccountNumberList(input.Items, context); - const containerNode = new __XmlNode("Items"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_TS); + if (input[_E] != null) { + bn.c(__XmlNode.of(_b, String(input[_E])).n(_E)); } - return bodyNode; + if (input[_Q] != null) { + bn.c(__XmlNode.of(_i, String(input[_Q])).n(_Q)); + } + bn.lc(input, "Items", "Items", () => se_AwsAccountNumberList(input[_It]!, context)); + return bn; }; /** * serializeAws_restXmlViewerCertificate */ const se_ViewerCertificate = (input: ViewerCertificate, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ViewerCertificate"); - if (input.CloudFrontDefaultCertificate != null) { - const node = __XmlNode - .of("boolean", String(input.CloudFrontDefaultCertificate)) - .withName("CloudFrontDefaultCertificate"); - bodyNode.addChildNode(node); - } - if (input.IAMCertificateId != null) { - const node = __XmlNode.of("string", input.IAMCertificateId).withName("IAMCertificateId"); - bodyNode.addChildNode(node); - } - if (input.ACMCertificateArn != null) { - const node = __XmlNode.of("string", input.ACMCertificateArn).withName("ACMCertificateArn"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_VC); + if (input[_CFDC] != null) { + bn.c(__XmlNode.of(_b, String(input[_CFDC])).n(_CFDC)); } - if (input.SSLSupportMethod != null) { - const node = __XmlNode.of("SSLSupportMethod", input.SSLSupportMethod).withName("SSLSupportMethod"); - bodyNode.addChildNode(node); + if (input[_IAMCI] != null) { + bn.c(__XmlNode.of(_st, input[_IAMCI]).n(_IAMCI)); } - if (input.MinimumProtocolVersion != null) { - const node = __XmlNode - .of("MinimumProtocolVersion", input.MinimumProtocolVersion) - .withName("MinimumProtocolVersion"); - bodyNode.addChildNode(node); + if (input[_ACMCA] != null) { + bn.c(__XmlNode.of(_st, input[_ACMCA]).n(_ACMCA)); } - if (input.Certificate != null) { - const node = __XmlNode.of("string", input.Certificate).withName("Certificate"); - bodyNode.addChildNode(node); + bn.cc(input, _SSLSM); + bn.cc(input, _MPV); + if (input[_Ce] != null) { + bn.c(__XmlNode.of(_st, input[_Ce]).n(_Ce)); } - if (input.CertificateSource != null) { - const node = __XmlNode.of("CertificateSource", input.CertificateSource).withName("CertificateSource"); - bodyNode.addChildNode(node); - } - return bodyNode; + bn.cc(input, _CS); + return bn; }; /** @@ -16681,16 +14958,16 @@ const de_AccessControlExposeHeadersList = (output: any, context: __SerdeContext) */ const de_ActiveTrustedKeyGroups = (output: any, context: __SerdeContext): ActiveTrustedKeyGroups => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["KeyGroup"] !== undefined) { - contents.Items = de_KGKeyPairIdsList(__getArrayIfSingleItem(output["Items"]["KeyGroup"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_KG] != null) { + contents[_It] = de_KGKeyPairIdsList(__getArrayIfSingleItem(output[_It][_KG]), context); } return contents; }; @@ -16700,16 +14977,16 @@ const de_ActiveTrustedKeyGroups = (output: any, context: __SerdeContext): Active */ const de_ActiveTrustedSigners = (output: any, context: __SerdeContext): ActiveTrustedSigners => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Signer"] !== undefined) { - contents.Items = de_SignerList(__getArrayIfSingleItem(output["Items"]["Signer"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Si] != null) { + contents[_It] = de_SignerList(__getArrayIfSingleItem(output[_It][_Si]), context); } return contents; }; @@ -16719,13 +14996,13 @@ const de_ActiveTrustedSigners = (output: any, context: __SerdeContext): ActiveTr */ const de_Aliases = (output: any, context: __SerdeContext): Aliases => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["CNAME"] !== undefined) { - contents.Items = de_AliasList(__getArrayIfSingleItem(output["Items"]["CNAME"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CNAME] != null) { + contents[_It] = de_AliasList(__getArrayIfSingleItem(output[_It][_CNAME]), context); } return contents; }; @@ -16735,11 +15012,11 @@ const de_Aliases = (output: any, context: __SerdeContext): Aliases => { */ const de_AliasICPRecordal = (output: any, context: __SerdeContext): AliasICPRecordal => { const contents: any = {}; - if (output["CNAME"] !== undefined) { - contents.CNAME = __expectString(output["CNAME"]); + if (output[_CNAME] != null) { + contents[_CNAME] = __expectString(output[_CNAME]); } - if (output["ICPRecordalStatus"] !== undefined) { - contents.ICPRecordalStatus = __expectString(output["ICPRecordalStatus"]); + if (output[_ICPRS] != null) { + contents[_ICPRS] = __expectString(output[_ICPRS]); } return contents; }; @@ -16771,16 +15048,16 @@ const de_AliasList = (output: any, context: __SerdeContext): string[] => { */ const de_AllowedMethods = (output: any, context: __SerdeContext): AllowedMethods => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Method"] !== undefined) { - contents.Items = de_MethodsList(__getArrayIfSingleItem(output["Items"]["Method"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Met] != null) { + contents[_It] = de_MethodsList(__getArrayIfSingleItem(output[_It][_Met]), context); } - if (output["CachedMethods"] !== undefined) { - contents.CachedMethods = de_CachedMethods(output["CachedMethods"], context); + if (output[_CM] != null) { + contents[_CM] = de_CachedMethods(output[_CM], context); } return contents; }; @@ -16801,62 +15078,62 @@ const de_AwsAccountNumberList = (output: any, context: __SerdeContext): string[] */ const de_CacheBehavior = (output: any, context: __SerdeContext): CacheBehavior => { const contents: any = {}; - if (output["PathPattern"] !== undefined) { - contents.PathPattern = __expectString(output["PathPattern"]); + if (output[_PP] != null) { + contents[_PP] = __expectString(output[_PP]); } - if (output["TargetOriginId"] !== undefined) { - contents.TargetOriginId = __expectString(output["TargetOriginId"]); + if (output[_TOI] != null) { + contents[_TOI] = __expectString(output[_TOI]); } - if (output["TrustedSigners"] !== undefined) { - contents.TrustedSigners = de_TrustedSigners(output["TrustedSigners"], context); + if (output[_TS] != null) { + contents[_TS] = de_TrustedSigners(output[_TS], context); } - if (output["TrustedKeyGroups"] !== undefined) { - contents.TrustedKeyGroups = de_TrustedKeyGroups(output["TrustedKeyGroups"], context); + if (output[_TKG] != null) { + contents[_TKG] = de_TrustedKeyGroups(output[_TKG], context); } - if (output["ViewerProtocolPolicy"] !== undefined) { - contents.ViewerProtocolPolicy = __expectString(output["ViewerProtocolPolicy"]); + if (output[_VPP] != null) { + contents[_VPP] = __expectString(output[_VPP]); } - if (output["AllowedMethods"] !== undefined) { - contents.AllowedMethods = de_AllowedMethods(output["AllowedMethods"], context); + if (output[_AM] != null) { + contents[_AM] = de_AllowedMethods(output[_AM], context); } - if (output["SmoothStreaming"] !== undefined) { - contents.SmoothStreaming = __parseBoolean(output["SmoothStreaming"]); + if (output[_SS] != null) { + contents[_SS] = __parseBoolean(output[_SS]); } - if (output["Compress"] !== undefined) { - contents.Compress = __parseBoolean(output["Compress"]); + if (output[_Co] != null) { + contents[_Co] = __parseBoolean(output[_Co]); } - if (output["LambdaFunctionAssociations"] !== undefined) { - contents.LambdaFunctionAssociations = de_LambdaFunctionAssociations(output["LambdaFunctionAssociations"], context); + if (output[_LFA] != null) { + contents[_LFA] = de_LambdaFunctionAssociations(output[_LFA], context); } - if (output["FunctionAssociations"] !== undefined) { - contents.FunctionAssociations = de_FunctionAssociations(output["FunctionAssociations"], context); + if (output[_FA] != null) { + contents[_FA] = de_FunctionAssociations(output[_FA], context); } - if (output["FieldLevelEncryptionId"] !== undefined) { - contents.FieldLevelEncryptionId = __expectString(output["FieldLevelEncryptionId"]); + if (output[_FLEI] != null) { + contents[_FLEI] = __expectString(output[_FLEI]); } - if (output["RealtimeLogConfigArn"] !== undefined) { - contents.RealtimeLogConfigArn = __expectString(output["RealtimeLogConfigArn"]); + if (output[_RLCA] != null) { + contents[_RLCA] = __expectString(output[_RLCA]); } - if (output["CachePolicyId"] !== undefined) { - contents.CachePolicyId = __expectString(output["CachePolicyId"]); + if (output[_CPI] != null) { + contents[_CPI] = __expectString(output[_CPI]); } - if (output["OriginRequestPolicyId"] !== undefined) { - contents.OriginRequestPolicyId = __expectString(output["OriginRequestPolicyId"]); + if (output[_ORPI] != null) { + contents[_ORPI] = __expectString(output[_ORPI]); } - if (output["ResponseHeadersPolicyId"] !== undefined) { - contents.ResponseHeadersPolicyId = __expectString(output["ResponseHeadersPolicyId"]); + if (output[_RHPI] != null) { + contents[_RHPI] = __expectString(output[_RHPI]); } - if (output["ForwardedValues"] !== undefined) { - contents.ForwardedValues = de_ForwardedValues(output["ForwardedValues"], context); + if (output[_FV] != null) { + contents[_FV] = de_ForwardedValues(output[_FV], context); } - if (output["MinTTL"] !== undefined) { - contents.MinTTL = __strictParseLong(output["MinTTL"]) as number; + if (output[_MTTL] != null) { + contents[_MTTL] = __strictParseLong(output[_MTTL]) as number; } - if (output["DefaultTTL"] !== undefined) { - contents.DefaultTTL = __strictParseLong(output["DefaultTTL"]) as number; + if (output[_DTTL] != null) { + contents[_DTTL] = __strictParseLong(output[_DTTL]) as number; } - if (output["MaxTTL"] !== undefined) { - contents.MaxTTL = __strictParseLong(output["MaxTTL"]) as number; + if (output[_MTTLa] != null) { + contents[_MTTLa] = __strictParseLong(output[_MTTLa]) as number; } return contents; }; @@ -16877,13 +15154,13 @@ const de_CacheBehaviorList = (output: any, context: __SerdeContext): CacheBehavi */ const de_CacheBehaviors = (output: any, context: __SerdeContext): CacheBehaviors => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["CacheBehavior"] !== undefined) { - contents.Items = de_CacheBehaviorList(__getArrayIfSingleItem(output["Items"]["CacheBehavior"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CB] != null) { + contents[_It] = de_CacheBehaviorList(__getArrayIfSingleItem(output[_It][_CB]), context); } return contents; }; @@ -16893,13 +15170,13 @@ const de_CacheBehaviors = (output: any, context: __SerdeContext): CacheBehaviors */ const de_CachedMethods = (output: any, context: __SerdeContext): CachedMethods => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Method"] !== undefined) { - contents.Items = de_MethodsList(__getArrayIfSingleItem(output["Items"]["Method"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Met] != null) { + contents[_It] = de_MethodsList(__getArrayIfSingleItem(output[_It][_Met]), context); } return contents; }; @@ -16909,14 +15186,14 @@ const de_CachedMethods = (output: any, context: __SerdeContext): CachedMethods = */ const de_CachePolicy = (output: any, context: __SerdeContext): CachePolicy => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["CachePolicyConfig"] !== undefined) { - contents.CachePolicyConfig = de_CachePolicyConfig(output["CachePolicyConfig"], context); + if (output[_CPC] != null) { + contents[_CPC] = de_CachePolicyConfig(output[_CPC], context); } return contents; }; @@ -16926,26 +15203,23 @@ const de_CachePolicy = (output: any, context: __SerdeContext): CachePolicy => { */ const de_CachePolicyConfig = (output: any, context: __SerdeContext): CachePolicyConfig => { const contents: any = {}; - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["DefaultTTL"] !== undefined) { - contents.DefaultTTL = __strictParseLong(output["DefaultTTL"]) as number; + if (output[_DTTL] != null) { + contents[_DTTL] = __strictParseLong(output[_DTTL]) as number; } - if (output["MaxTTL"] !== undefined) { - contents.MaxTTL = __strictParseLong(output["MaxTTL"]) as number; + if (output[_MTTLa] != null) { + contents[_MTTLa] = __strictParseLong(output[_MTTLa]) as number; } - if (output["MinTTL"] !== undefined) { - contents.MinTTL = __strictParseLong(output["MinTTL"]) as number; + if (output[_MTTL] != null) { + contents[_MTTL] = __strictParseLong(output[_MTTL]) as number; } - if (output["ParametersInCacheKeyAndForwardedToOrigin"] !== undefined) { - contents.ParametersInCacheKeyAndForwardedToOrigin = de_ParametersInCacheKeyAndForwardedToOrigin( - output["ParametersInCacheKeyAndForwardedToOrigin"], - context - ); + if (output[_PICKAFTO] != null) { + contents[_PICKAFTO] = de_ParametersInCacheKeyAndForwardedToOrigin(output[_PICKAFTO], context); } return contents; }; @@ -16955,11 +15229,11 @@ const de_CachePolicyConfig = (output: any, context: __SerdeContext): CachePolicy */ const de_CachePolicyCookiesConfig = (output: any, context: __SerdeContext): CachePolicyCookiesConfig => { const contents: any = {}; - if (output["CookieBehavior"] !== undefined) { - contents.CookieBehavior = __expectString(output["CookieBehavior"]); + if (output[_CBo] != null) { + contents[_CBo] = __expectString(output[_CBo]); } - if (output["Cookies"] !== undefined) { - contents.Cookies = de_CookieNames(output["Cookies"], context); + if (output[_Coo] != null) { + contents[_Coo] = de_CookieNames(output[_Coo], context); } return contents; }; @@ -16969,11 +15243,11 @@ const de_CachePolicyCookiesConfig = (output: any, context: __SerdeContext): Cach */ const de_CachePolicyHeadersConfig = (output: any, context: __SerdeContext): CachePolicyHeadersConfig => { const contents: any = {}; - if (output["HeaderBehavior"] !== undefined) { - contents.HeaderBehavior = __expectString(output["HeaderBehavior"]); + if (output[_HB] != null) { + contents[_HB] = __expectString(output[_HB]); } - if (output["Headers"] !== undefined) { - contents.Headers = de_Headers(output["Headers"], context); + if (output[_He] != null) { + contents[_He] = de_Headers(output[_He], context); } return contents; }; @@ -16983,19 +15257,19 @@ const de_CachePolicyHeadersConfig = (output: any, context: __SerdeContext): Cach */ const de_CachePolicyList = (output: any, context: __SerdeContext): CachePolicyList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["CachePolicySummary"] !== undefined) { - contents.Items = de_CachePolicySummaryList(__getArrayIfSingleItem(output["Items"]["CachePolicySummary"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CPS] != null) { + contents[_It] = de_CachePolicySummaryList(__getArrayIfSingleItem(output[_It][_CPS]), context); } return contents; }; @@ -17005,11 +15279,11 @@ const de_CachePolicyList = (output: any, context: __SerdeContext): CachePolicyLi */ const de_CachePolicyQueryStringsConfig = (output: any, context: __SerdeContext): CachePolicyQueryStringsConfig => { const contents: any = {}; - if (output["QueryStringBehavior"] !== undefined) { - contents.QueryStringBehavior = __expectString(output["QueryStringBehavior"]); + if (output[_QSB] != null) { + contents[_QSB] = __expectString(output[_QSB]); } - if (output["QueryStrings"] !== undefined) { - contents.QueryStrings = de_QueryStringNames(output["QueryStrings"], context); + if (output[_QS] != null) { + contents[_QS] = de_QueryStringNames(output[_QS], context); } return contents; }; @@ -17019,11 +15293,11 @@ const de_CachePolicyQueryStringsConfig = (output: any, context: __SerdeContext): */ const de_CachePolicySummary = (output: any, context: __SerdeContext): CachePolicySummary => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["CachePolicy"] !== undefined) { - contents.CachePolicy = de_CachePolicy(output["CachePolicy"], context); + if (output[_CPa] != null) { + contents[_CPa] = de_CachePolicy(output[_CPa], context); } return contents; }; @@ -17044,17 +15318,14 @@ const de_CachePolicySummaryList = (output: any, context: __SerdeContext): CacheP */ const de_CloudFrontOriginAccessIdentity = (output: any, context: __SerdeContext): CloudFrontOriginAccessIdentity => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["S3CanonicalUserId"] !== undefined) { - contents.S3CanonicalUserId = __expectString(output["S3CanonicalUserId"]); + if (output[_SCUI] != null) { + contents[_SCUI] = __expectString(output[_SCUI]); } - if (output["CloudFrontOriginAccessIdentityConfig"] !== undefined) { - contents.CloudFrontOriginAccessIdentityConfig = de_CloudFrontOriginAccessIdentityConfig( - output["CloudFrontOriginAccessIdentityConfig"], - context - ); + if (output[_CFOAIC] != null) { + contents[_CFOAIC] = de_CloudFrontOriginAccessIdentityConfig(output[_CFOAIC], context); } return contents; }; @@ -17067,11 +15338,11 @@ const de_CloudFrontOriginAccessIdentityConfig = ( context: __SerdeContext ): CloudFrontOriginAccessIdentityConfig => { const contents: any = {}; - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -17084,28 +15355,25 @@ const de_CloudFrontOriginAccessIdentityList = ( context: __SerdeContext ): CloudFrontOriginAccessIdentityList => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["CloudFrontOriginAccessIdentitySummary"] !== undefined) { - contents.Items = de_CloudFrontOriginAccessIdentitySummaryList( - __getArrayIfSingleItem(output["Items"]["CloudFrontOriginAccessIdentitySummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CFOAIS] != null) { + contents[_It] = de_CloudFrontOriginAccessIdentitySummaryList(__getArrayIfSingleItem(output[_It][_CFOAIS]), context); } return contents; }; @@ -17118,14 +15386,14 @@ const de_CloudFrontOriginAccessIdentitySummary = ( context: __SerdeContext ): CloudFrontOriginAccessIdentitySummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["S3CanonicalUserId"] !== undefined) { - contents.S3CanonicalUserId = __expectString(output["S3CanonicalUserId"]); + if (output[_SCUI] != null) { + contents[_SCUI] = __expectString(output[_SCUI]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -17149,14 +15417,14 @@ const de_CloudFrontOriginAccessIdentitySummaryList = ( */ const de_ConflictingAlias = (output: any, context: __SerdeContext): ConflictingAlias => { const contents: any = {}; - if (output["Alias"] !== undefined) { - contents.Alias = __expectString(output["Alias"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["DistributionId"] !== undefined) { - contents.DistributionId = __expectString(output["DistributionId"]); + if (output[_DI] != null) { + contents[_DI] = __expectString(output[_DI]); } - if (output["AccountId"] !== undefined) { - contents.AccountId = __expectString(output["AccountId"]); + if (output[_AI] != null) { + contents[_AI] = __expectString(output[_AI]); } return contents; }; @@ -17177,19 +15445,19 @@ const de_ConflictingAliases = (output: any, context: __SerdeContext): Conflictin */ const de_ConflictingAliasesList = (output: any, context: __SerdeContext): ConflictingAliasesList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["ConflictingAlias"] !== undefined) { - contents.Items = de_ConflictingAliases(__getArrayIfSingleItem(output["Items"]["ConflictingAlias"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CAo] != null) { + contents[_It] = de_ConflictingAliases(__getArrayIfSingleItem(output[_It][_CAo]), context); } return contents; }; @@ -17199,14 +15467,14 @@ const de_ConflictingAliasesList = (output: any, context: __SerdeContext): Confli */ const de_ContentTypeProfile = (output: any, context: __SerdeContext): ContentTypeProfile => { const contents: any = {}; - if (output["Format"] !== undefined) { - contents.Format = __expectString(output["Format"]); + if (output[_Fo] != null) { + contents[_Fo] = __expectString(output[_Fo]); } - if (output["ProfileId"] !== undefined) { - contents.ProfileId = __expectString(output["ProfileId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } - if (output["ContentType"] !== undefined) { - contents.ContentType = __expectString(output["ContentType"]); + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); } return contents; }; @@ -17216,11 +15484,11 @@ const de_ContentTypeProfile = (output: any, context: __SerdeContext): ContentTyp */ const de_ContentTypeProfileConfig = (output: any, context: __SerdeContext): ContentTypeProfileConfig => { const contents: any = {}; - if (output["ForwardWhenContentTypeIsUnknown"] !== undefined) { - contents.ForwardWhenContentTypeIsUnknown = __parseBoolean(output["ForwardWhenContentTypeIsUnknown"]); + if (output[_FWCTIU] != null) { + contents[_FWCTIU] = __parseBoolean(output[_FWCTIU]); } - if (output["ContentTypeProfiles"] !== undefined) { - contents.ContentTypeProfiles = de_ContentTypeProfiles(output["ContentTypeProfiles"], context); + if (output[_CTPo] != null) { + contents[_CTPo] = de_ContentTypeProfiles(output[_CTPo], context); } return contents; }; @@ -17241,13 +15509,13 @@ const de_ContentTypeProfileList = (output: any, context: __SerdeContext): Conten */ const de_ContentTypeProfiles = (output: any, context: __SerdeContext): ContentTypeProfiles => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["ContentTypeProfile"] !== undefined) { - contents.Items = de_ContentTypeProfileList(__getArrayIfSingleItem(output["Items"]["ContentTypeProfile"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CTP] != null) { + contents[_It] = de_ContentTypeProfileList(__getArrayIfSingleItem(output[_It][_CTP]), context); } return contents; }; @@ -17257,17 +15525,14 @@ const de_ContentTypeProfiles = (output: any, context: __SerdeContext): ContentTy */ const de_ContinuousDeploymentPolicy = (output: any, context: __SerdeContext): ContinuousDeploymentPolicy => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["ContinuousDeploymentPolicyConfig"] !== undefined) { - contents.ContinuousDeploymentPolicyConfig = de_ContinuousDeploymentPolicyConfig( - output["ContinuousDeploymentPolicyConfig"], - context - ); + if (output[_CDPC] != null) { + contents[_CDPC] = de_ContinuousDeploymentPolicyConfig(output[_CDPC], context); } return contents; }; @@ -17280,17 +15545,14 @@ const de_ContinuousDeploymentPolicyConfig = ( context: __SerdeContext ): ContinuousDeploymentPolicyConfig => { const contents: any = {}; - if (output["StagingDistributionDnsNames"] !== undefined) { - contents.StagingDistributionDnsNames = de_StagingDistributionDnsNames( - output["StagingDistributionDnsNames"], - context - ); + if (output[_SDDN] != null) { + contents[_SDDN] = de_StagingDistributionDnsNames(output[_SDDN], context); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["TrafficConfig"] !== undefined) { - contents.TrafficConfig = de_TrafficConfig(output["TrafficConfig"], context); + if (output[_TC] != null) { + contents[_TC] = de_TrafficConfig(output[_TC], context); } return contents; }; @@ -17300,22 +15562,19 @@ const de_ContinuousDeploymentPolicyConfig = ( */ const de_ContinuousDeploymentPolicyList = (output: any, context: __SerdeContext): ContinuousDeploymentPolicyList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["ContinuousDeploymentPolicySummary"] !== undefined) { - contents.Items = de_ContinuousDeploymentPolicySummaryList( - __getArrayIfSingleItem(output["Items"]["ContinuousDeploymentPolicySummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CDPS] != null) { + contents[_It] = de_ContinuousDeploymentPolicySummaryList(__getArrayIfSingleItem(output[_It][_CDPS]), context); } return contents; }; @@ -17328,8 +15587,8 @@ const de_ContinuousDeploymentPolicySummary = ( context: __SerdeContext ): ContinuousDeploymentPolicySummary => { const contents: any = {}; - if (output["ContinuousDeploymentPolicy"] !== undefined) { - contents.ContinuousDeploymentPolicy = de_ContinuousDeploymentPolicy(output["ContinuousDeploymentPolicy"], context); + if (output[_CDP] != null) { + contents[_CDP] = de_ContinuousDeploymentPolicy(output[_CDP], context); } return contents; }; @@ -17356,11 +15615,11 @@ const de_ContinuousDeploymentSingleHeaderConfig = ( context: __SerdeContext ): ContinuousDeploymentSingleHeaderConfig => { const contents: any = {}; - if (output["Header"] !== undefined) { - contents.Header = __expectString(output["Header"]); + if (output[_H] != null) { + contents[_H] = __expectString(output[_H]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -17373,11 +15632,11 @@ const de_ContinuousDeploymentSingleWeightConfig = ( context: __SerdeContext ): ContinuousDeploymentSingleWeightConfig => { const contents: any = {}; - if (output["Weight"] !== undefined) { - contents.Weight = __strictParseFloat(output["Weight"]) as number; + if (output[_W] != null) { + contents[_W] = __strictParseFloat(output[_W]) as number; } - if (output["SessionStickinessConfig"] !== undefined) { - contents.SessionStickinessConfig = de_SessionStickinessConfig(output["SessionStickinessConfig"], context); + if (output[_SSC] != null) { + contents[_SSC] = de_SessionStickinessConfig(output[_SSC], context); } return contents; }; @@ -17398,13 +15657,13 @@ const de_CookieNameList = (output: any, context: __SerdeContext): string[] => { */ const de_CookieNames = (output: any, context: __SerdeContext): CookieNames => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Name"] !== undefined) { - contents.Items = de_CookieNameList(__getArrayIfSingleItem(output["Items"]["Name"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_N] != null) { + contents[_It] = de_CookieNameList(__getArrayIfSingleItem(output[_It][_N]), context); } return contents; }; @@ -17414,11 +15673,11 @@ const de_CookieNames = (output: any, context: __SerdeContext): CookieNames => { */ const de_CookiePreference = (output: any, context: __SerdeContext): CookiePreference => { const contents: any = {}; - if (output["Forward"] !== undefined) { - contents.Forward = __expectString(output["Forward"]); + if (output[_For] != null) { + contents[_For] = __expectString(output[_For]); } - if (output["WhitelistedNames"] !== undefined) { - contents.WhitelistedNames = de_CookieNames(output["WhitelistedNames"], context); + if (output[_WN] != null) { + contents[_WN] = de_CookieNames(output[_WN], context); } return contents; }; @@ -17428,17 +15687,17 @@ const de_CookiePreference = (output: any, context: __SerdeContext): CookiePrefer */ const de_CustomErrorResponse = (output: any, context: __SerdeContext): CustomErrorResponse => { const contents: any = {}; - if (output["ErrorCode"] !== undefined) { - contents.ErrorCode = __strictParseInt32(output["ErrorCode"]) as number; + if (output[_EC] != null) { + contents[_EC] = __strictParseInt32(output[_EC]) as number; } - if (output["ResponsePagePath"] !== undefined) { - contents.ResponsePagePath = __expectString(output["ResponsePagePath"]); + if (output[_RPP] != null) { + contents[_RPP] = __expectString(output[_RPP]); } - if (output["ResponseCode"] !== undefined) { - contents.ResponseCode = __expectString(output["ResponseCode"]); + if (output[_RC] != null) { + contents[_RC] = __expectString(output[_RC]); } - if (output["ErrorCachingMinTTL"] !== undefined) { - contents.ErrorCachingMinTTL = __strictParseLong(output["ErrorCachingMinTTL"]) as number; + if (output[_ECMTTL] != null) { + contents[_ECMTTL] = __strictParseLong(output[_ECMTTL]) as number; } return contents; }; @@ -17459,16 +15718,13 @@ const de_CustomErrorResponseList = (output: any, context: __SerdeContext): Custo */ const de_CustomErrorResponses = (output: any, context: __SerdeContext): CustomErrorResponses => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["CustomErrorResponse"] !== undefined) { - contents.Items = de_CustomErrorResponseList( - __getArrayIfSingleItem(output["Items"]["CustomErrorResponse"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_CER] != null) { + contents[_It] = de_CustomErrorResponseList(__getArrayIfSingleItem(output[_It][_CER]), context); } return contents; }; @@ -17478,13 +15734,13 @@ const de_CustomErrorResponses = (output: any, context: __SerdeContext): CustomEr */ const de_CustomHeaders = (output: any, context: __SerdeContext): CustomHeaders => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["OriginCustomHeader"] !== undefined) { - contents.Items = de_OriginCustomHeadersList(__getArrayIfSingleItem(output["Items"]["OriginCustomHeader"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_OCH] != null) { + contents[_It] = de_OriginCustomHeadersList(__getArrayIfSingleItem(output[_It][_OCH]), context); } return contents; }; @@ -17494,23 +15750,23 @@ const de_CustomHeaders = (output: any, context: __SerdeContext): CustomHeaders = */ const de_CustomOriginConfig = (output: any, context: __SerdeContext): CustomOriginConfig => { const contents: any = {}; - if (output["HTTPPort"] !== undefined) { - contents.HTTPPort = __strictParseInt32(output["HTTPPort"]) as number; + if (output[_HTTPP] != null) { + contents[_HTTPP] = __strictParseInt32(output[_HTTPP]) as number; } - if (output["HTTPSPort"] !== undefined) { - contents.HTTPSPort = __strictParseInt32(output["HTTPSPort"]) as number; + if (output[_HTTPSP] != null) { + contents[_HTTPSP] = __strictParseInt32(output[_HTTPSP]) as number; } - if (output["OriginProtocolPolicy"] !== undefined) { - contents.OriginProtocolPolicy = __expectString(output["OriginProtocolPolicy"]); + if (output[_OPP] != null) { + contents[_OPP] = __expectString(output[_OPP]); } - if (output["OriginSslProtocols"] !== undefined) { - contents.OriginSslProtocols = de_OriginSslProtocols(output["OriginSslProtocols"], context); + if (output[_OSP] != null) { + contents[_OSP] = de_OriginSslProtocols(output[_OSP], context); } - if (output["OriginReadTimeout"] !== undefined) { - contents.OriginReadTimeout = __strictParseInt32(output["OriginReadTimeout"]) as number; + if (output[_ORT] != null) { + contents[_ORT] = __strictParseInt32(output[_ORT]) as number; } - if (output["OriginKeepaliveTimeout"] !== undefined) { - contents.OriginKeepaliveTimeout = __strictParseInt32(output["OriginKeepaliveTimeout"]) as number; + if (output[_OKT] != null) { + contents[_OKT] = __strictParseInt32(output[_OKT]) as number; } return contents; }; @@ -17520,59 +15776,59 @@ const de_CustomOriginConfig = (output: any, context: __SerdeContext): CustomOrig */ const de_DefaultCacheBehavior = (output: any, context: __SerdeContext): DefaultCacheBehavior => { const contents: any = {}; - if (output["TargetOriginId"] !== undefined) { - contents.TargetOriginId = __expectString(output["TargetOriginId"]); + if (output[_TOI] != null) { + contents[_TOI] = __expectString(output[_TOI]); } - if (output["TrustedSigners"] !== undefined) { - contents.TrustedSigners = de_TrustedSigners(output["TrustedSigners"], context); + if (output[_TS] != null) { + contents[_TS] = de_TrustedSigners(output[_TS], context); } - if (output["TrustedKeyGroups"] !== undefined) { - contents.TrustedKeyGroups = de_TrustedKeyGroups(output["TrustedKeyGroups"], context); + if (output[_TKG] != null) { + contents[_TKG] = de_TrustedKeyGroups(output[_TKG], context); } - if (output["ViewerProtocolPolicy"] !== undefined) { - contents.ViewerProtocolPolicy = __expectString(output["ViewerProtocolPolicy"]); + if (output[_VPP] != null) { + contents[_VPP] = __expectString(output[_VPP]); } - if (output["AllowedMethods"] !== undefined) { - contents.AllowedMethods = de_AllowedMethods(output["AllowedMethods"], context); + if (output[_AM] != null) { + contents[_AM] = de_AllowedMethods(output[_AM], context); } - if (output["SmoothStreaming"] !== undefined) { - contents.SmoothStreaming = __parseBoolean(output["SmoothStreaming"]); + if (output[_SS] != null) { + contents[_SS] = __parseBoolean(output[_SS]); } - if (output["Compress"] !== undefined) { - contents.Compress = __parseBoolean(output["Compress"]); + if (output[_Co] != null) { + contents[_Co] = __parseBoolean(output[_Co]); } - if (output["LambdaFunctionAssociations"] !== undefined) { - contents.LambdaFunctionAssociations = de_LambdaFunctionAssociations(output["LambdaFunctionAssociations"], context); + if (output[_LFA] != null) { + contents[_LFA] = de_LambdaFunctionAssociations(output[_LFA], context); } - if (output["FunctionAssociations"] !== undefined) { - contents.FunctionAssociations = de_FunctionAssociations(output["FunctionAssociations"], context); + if (output[_FA] != null) { + contents[_FA] = de_FunctionAssociations(output[_FA], context); } - if (output["FieldLevelEncryptionId"] !== undefined) { - contents.FieldLevelEncryptionId = __expectString(output["FieldLevelEncryptionId"]); + if (output[_FLEI] != null) { + contents[_FLEI] = __expectString(output[_FLEI]); } - if (output["RealtimeLogConfigArn"] !== undefined) { - contents.RealtimeLogConfigArn = __expectString(output["RealtimeLogConfigArn"]); + if (output[_RLCA] != null) { + contents[_RLCA] = __expectString(output[_RLCA]); } - if (output["CachePolicyId"] !== undefined) { - contents.CachePolicyId = __expectString(output["CachePolicyId"]); + if (output[_CPI] != null) { + contents[_CPI] = __expectString(output[_CPI]); } - if (output["OriginRequestPolicyId"] !== undefined) { - contents.OriginRequestPolicyId = __expectString(output["OriginRequestPolicyId"]); + if (output[_ORPI] != null) { + contents[_ORPI] = __expectString(output[_ORPI]); } - if (output["ResponseHeadersPolicyId"] !== undefined) { - contents.ResponseHeadersPolicyId = __expectString(output["ResponseHeadersPolicyId"]); + if (output[_RHPI] != null) { + contents[_RHPI] = __expectString(output[_RHPI]); } - if (output["ForwardedValues"] !== undefined) { - contents.ForwardedValues = de_ForwardedValues(output["ForwardedValues"], context); + if (output[_FV] != null) { + contents[_FV] = de_ForwardedValues(output[_FV], context); } - if (output["MinTTL"] !== undefined) { - contents.MinTTL = __strictParseLong(output["MinTTL"]) as number; + if (output[_MTTL] != null) { + contents[_MTTL] = __strictParseLong(output[_MTTL]) as number; } - if (output["DefaultTTL"] !== undefined) { - contents.DefaultTTL = __strictParseLong(output["DefaultTTL"]) as number; + if (output[_DTTL] != null) { + contents[_DTTL] = __strictParseLong(output[_DTTL]) as number; } - if (output["MaxTTL"] !== undefined) { - contents.MaxTTL = __strictParseLong(output["MaxTTL"]) as number; + if (output[_MTTLa] != null) { + contents[_MTTLa] = __strictParseLong(output[_MTTLa]) as number; } return contents; }; @@ -17582,43 +15838,37 @@ const de_DefaultCacheBehavior = (output: any, context: __SerdeContext): DefaultC */ const de_Distribution = (output: any, context: __SerdeContext): Distribution => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["InProgressInvalidationBatches"] !== undefined) { - contents.InProgressInvalidationBatches = __strictParseInt32(output["InProgressInvalidationBatches"]) as number; + if (output[_IPIB] != null) { + contents[_IPIB] = __strictParseInt32(output[_IPIB]) as number; } - if (output["DomainName"] !== undefined) { - contents.DomainName = __expectString(output["DomainName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["ActiveTrustedSigners"] !== undefined) { - contents.ActiveTrustedSigners = de_ActiveTrustedSigners(output["ActiveTrustedSigners"], context); + if (output[_ATS] != null) { + contents[_ATS] = de_ActiveTrustedSigners(output[_ATS], context); } - if (output["ActiveTrustedKeyGroups"] !== undefined) { - contents.ActiveTrustedKeyGroups = de_ActiveTrustedKeyGroups(output["ActiveTrustedKeyGroups"], context); + if (output[_ATKG] != null) { + contents[_ATKG] = de_ActiveTrustedKeyGroups(output[_ATKG], context); } - if (output["DistributionConfig"] !== undefined) { - contents.DistributionConfig = de_DistributionConfig(output["DistributionConfig"], context); + if (output[_DC] != null) { + contents[_DC] = de_DistributionConfig(output[_DC], context); } if (output.AliasICPRecordals === "") { - contents.AliasICPRecordals = []; - } else if ( - output["AliasICPRecordals"] !== undefined && - output["AliasICPRecordals"]["AliasICPRecordal"] !== undefined - ) { - contents.AliasICPRecordals = de_AliasICPRecordals( - __getArrayIfSingleItem(output["AliasICPRecordals"]["AliasICPRecordal"]), - context - ); + contents[_AICPR] = []; + } else if (output[_AICPR] != null && output[_AICPR][_AICPRl] != null) { + contents[_AICPR] = de_AliasICPRecordals(__getArrayIfSingleItem(output[_AICPR][_AICPRl]), context); } return contents; }; @@ -17628,62 +15878,62 @@ const de_Distribution = (output: any, context: __SerdeContext): Distribution => */ const de_DistributionConfig = (output: any, context: __SerdeContext): DistributionConfig => { const contents: any = {}; - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["Aliases"] !== undefined) { - contents.Aliases = de_Aliases(output["Aliases"], context); + if (output[_Al] != null) { + contents[_Al] = de_Aliases(output[_Al], context); } - if (output["DefaultRootObject"] !== undefined) { - contents.DefaultRootObject = __expectString(output["DefaultRootObject"]); + if (output[_DRO] != null) { + contents[_DRO] = __expectString(output[_DRO]); } - if (output["Origins"] !== undefined) { - contents.Origins = de_Origins(output["Origins"], context); + if (output[_Ori] != null) { + contents[_Ori] = de_Origins(output[_Ori], context); } - if (output["OriginGroups"] !== undefined) { - contents.OriginGroups = de_OriginGroups(output["OriginGroups"], context); + if (output[_OG] != null) { + contents[_OG] = de_OriginGroups(output[_OG], context); } - if (output["DefaultCacheBehavior"] !== undefined) { - contents.DefaultCacheBehavior = de_DefaultCacheBehavior(output["DefaultCacheBehavior"], context); + if (output[_DCB] != null) { + contents[_DCB] = de_DefaultCacheBehavior(output[_DCB], context); } - if (output["CacheBehaviors"] !== undefined) { - contents.CacheBehaviors = de_CacheBehaviors(output["CacheBehaviors"], context); + if (output[_CBa] != null) { + contents[_CBa] = de_CacheBehaviors(output[_CBa], context); } - if (output["CustomErrorResponses"] !== undefined) { - contents.CustomErrorResponses = de_CustomErrorResponses(output["CustomErrorResponses"], context); + if (output[_CERu] != null) { + contents[_CERu] = de_CustomErrorResponses(output[_CERu], context); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Logging"] !== undefined) { - contents.Logging = de_LoggingConfig(output["Logging"], context); + if (output[_Lo] != null) { + contents[_Lo] = de_LoggingConfig(output[_Lo], context); } - if (output["PriceClass"] !== undefined) { - contents.PriceClass = __expectString(output["PriceClass"]); + if (output[_PC] != null) { + contents[_PC] = __expectString(output[_PC]); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["ViewerCertificate"] !== undefined) { - contents.ViewerCertificate = de_ViewerCertificate(output["ViewerCertificate"], context); + if (output[_VC] != null) { + contents[_VC] = de_ViewerCertificate(output[_VC], context); } - if (output["Restrictions"] !== undefined) { - contents.Restrictions = de_Restrictions(output["Restrictions"], context); + if (output[_Re] != null) { + contents[_Re] = de_Restrictions(output[_Re], context); } - if (output["WebACLId"] !== undefined) { - contents.WebACLId = __expectString(output["WebACLId"]); + if (output[_WACLI] != null) { + contents[_WACLI] = __expectString(output[_WACLI]); } - if (output["HttpVersion"] !== undefined) { - contents.HttpVersion = __expectString(output["HttpVersion"]); + if (output[_HV] != null) { + contents[_HV] = __expectString(output[_HV]); } - if (output["IsIPV6Enabled"] !== undefined) { - contents.IsIPV6Enabled = __parseBoolean(output["IsIPV6Enabled"]); + if (output[_IIPVE] != null) { + contents[_IIPVE] = __parseBoolean(output[_IIPVE]); } - if (output["ContinuousDeploymentPolicyId"] !== undefined) { - contents.ContinuousDeploymentPolicyId = __expectString(output["ContinuousDeploymentPolicyId"]); + if (output[_CDPI] != null) { + contents[_CDPI] = __expectString(output[_CDPI]); } - if (output["Staging"] !== undefined) { - contents.Staging = __parseBoolean(output["Staging"]); + if (output[_S] != null) { + contents[_S] = __parseBoolean(output[_S]); } return contents; }; @@ -17693,25 +15943,25 @@ const de_DistributionConfig = (output: any, context: __SerdeContext): Distributi */ const de_DistributionIdList = (output: any, context: __SerdeContext): DistributionIdList => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["DistributionId"] !== undefined) { - contents.Items = de_DistributionIdListSummary(__getArrayIfSingleItem(output["Items"]["DistributionId"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_DI] != null) { + contents[_It] = de_DistributionIdListSummary(__getArrayIfSingleItem(output[_It][_DI]), context); } return contents; }; @@ -17732,28 +15982,25 @@ const de_DistributionIdListSummary = (output: any, context: __SerdeContext): str */ const de_DistributionList = (output: any, context: __SerdeContext): DistributionList => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["DistributionSummary"] !== undefined) { - contents.Items = de_DistributionSummaryList( - __getArrayIfSingleItem(output["Items"]["DistributionSummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_DS] != null) { + contents[_It] = de_DistributionSummaryList(__getArrayIfSingleItem(output[_It][_DS]), context); } return contents; }; @@ -17763,76 +16010,70 @@ const de_DistributionList = (output: any, context: __SerdeContext): Distribution */ const de_DistributionSummary = (output: any, context: __SerdeContext): DistributionSummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["DomainName"] !== undefined) { - contents.DomainName = __expectString(output["DomainName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["Aliases"] !== undefined) { - contents.Aliases = de_Aliases(output["Aliases"], context); + if (output[_Al] != null) { + contents[_Al] = de_Aliases(output[_Al], context); } - if (output["Origins"] !== undefined) { - contents.Origins = de_Origins(output["Origins"], context); + if (output[_Ori] != null) { + contents[_Ori] = de_Origins(output[_Ori], context); } - if (output["OriginGroups"] !== undefined) { - contents.OriginGroups = de_OriginGroups(output["OriginGroups"], context); + if (output[_OG] != null) { + contents[_OG] = de_OriginGroups(output[_OG], context); } - if (output["DefaultCacheBehavior"] !== undefined) { - contents.DefaultCacheBehavior = de_DefaultCacheBehavior(output["DefaultCacheBehavior"], context); + if (output[_DCB] != null) { + contents[_DCB] = de_DefaultCacheBehavior(output[_DCB], context); } - if (output["CacheBehaviors"] !== undefined) { - contents.CacheBehaviors = de_CacheBehaviors(output["CacheBehaviors"], context); + if (output[_CBa] != null) { + contents[_CBa] = de_CacheBehaviors(output[_CBa], context); } - if (output["CustomErrorResponses"] !== undefined) { - contents.CustomErrorResponses = de_CustomErrorResponses(output["CustomErrorResponses"], context); + if (output[_CERu] != null) { + contents[_CERu] = de_CustomErrorResponses(output[_CERu], context); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["PriceClass"] !== undefined) { - contents.PriceClass = __expectString(output["PriceClass"]); + if (output[_PC] != null) { + contents[_PC] = __expectString(output[_PC]); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["ViewerCertificate"] !== undefined) { - contents.ViewerCertificate = de_ViewerCertificate(output["ViewerCertificate"], context); + if (output[_VC] != null) { + contents[_VC] = de_ViewerCertificate(output[_VC], context); } - if (output["Restrictions"] !== undefined) { - contents.Restrictions = de_Restrictions(output["Restrictions"], context); + if (output[_Re] != null) { + contents[_Re] = de_Restrictions(output[_Re], context); } - if (output["WebACLId"] !== undefined) { - contents.WebACLId = __expectString(output["WebACLId"]); + if (output[_WACLI] != null) { + contents[_WACLI] = __expectString(output[_WACLI]); } - if (output["HttpVersion"] !== undefined) { - contents.HttpVersion = __expectString(output["HttpVersion"]); + if (output[_HV] != null) { + contents[_HV] = __expectString(output[_HV]); } - if (output["IsIPV6Enabled"] !== undefined) { - contents.IsIPV6Enabled = __parseBoolean(output["IsIPV6Enabled"]); + if (output[_IIPVE] != null) { + contents[_IIPVE] = __parseBoolean(output[_IIPVE]); } if (output.AliasICPRecordals === "") { - contents.AliasICPRecordals = []; - } else if ( - output["AliasICPRecordals"] !== undefined && - output["AliasICPRecordals"]["AliasICPRecordal"] !== undefined - ) { - contents.AliasICPRecordals = de_AliasICPRecordals( - __getArrayIfSingleItem(output["AliasICPRecordals"]["AliasICPRecordal"]), - context - ); + contents[_AICPR] = []; + } else if (output[_AICPR] != null && output[_AICPR][_AICPRl] != null) { + contents[_AICPR] = de_AliasICPRecordals(__getArrayIfSingleItem(output[_AICPR][_AICPRl]), context); } - if (output["Staging"] !== undefined) { - contents.Staging = __parseBoolean(output["Staging"]); + if (output[_S] != null) { + contents[_S] = __parseBoolean(output[_S]); } return contents; }; @@ -17853,13 +16094,13 @@ const de_DistributionSummaryList = (output: any, context: __SerdeContext): Distr */ const de_EncryptionEntities = (output: any, context: __SerdeContext): EncryptionEntities => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["EncryptionEntity"] !== undefined) { - contents.Items = de_EncryptionEntityList(__getArrayIfSingleItem(output["Items"]["EncryptionEntity"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_EEn] != null) { + contents[_It] = de_EncryptionEntityList(__getArrayIfSingleItem(output[_It][_EEn]), context); } return contents; }; @@ -17869,14 +16110,14 @@ const de_EncryptionEntities = (output: any, context: __SerdeContext): Encryption */ const de_EncryptionEntity = (output: any, context: __SerdeContext): EncryptionEntity => { const contents: any = {}; - if (output["PublicKeyId"] !== undefined) { - contents.PublicKeyId = __expectString(output["PublicKeyId"]); + if (output[_PKI] != null) { + contents[_PKI] = __expectString(output[_PKI]); } - if (output["ProviderId"] !== undefined) { - contents.ProviderId = __expectString(output["ProviderId"]); + if (output[_PIr] != null) { + contents[_PIr] = __expectString(output[_PIr]); } - if (output["FieldPatterns"] !== undefined) { - contents.FieldPatterns = de_FieldPatterns(output["FieldPatterns"], context); + if (output[_FP] != null) { + contents[_FP] = de_FieldPatterns(output[_FP], context); } return contents; }; @@ -17897,11 +16138,11 @@ const de_EncryptionEntityList = (output: any, context: __SerdeContext): Encrypti */ const de_EndPoint = (output: any, context: __SerdeContext): EndPoint => { const contents: any = {}; - if (output["StreamType"] !== undefined) { - contents.StreamType = __expectString(output["StreamType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["KinesisStreamConfig"] !== undefined) { - contents.KinesisStreamConfig = de_KinesisStreamConfig(output["KinesisStreamConfig"], context); + if (output[_KSC] != null) { + contents[_KSC] = de_KinesisStreamConfig(output[_KSC], context); } return contents; }; @@ -17922,14 +16163,14 @@ const de_EndPointList = (output: any, context: __SerdeContext): EndPoint[] => { */ const de_FieldLevelEncryption = (output: any, context: __SerdeContext): FieldLevelEncryption => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["FieldLevelEncryptionConfig"] !== undefined) { - contents.FieldLevelEncryptionConfig = de_FieldLevelEncryptionConfig(output["FieldLevelEncryptionConfig"], context); + if (output[_FLEC] != null) { + contents[_FLEC] = de_FieldLevelEncryptionConfig(output[_FLEC], context); } return contents; }; @@ -17939,17 +16180,17 @@ const de_FieldLevelEncryption = (output: any, context: __SerdeContext): FieldLev */ const de_FieldLevelEncryptionConfig = (output: any, context: __SerdeContext): FieldLevelEncryptionConfig => { const contents: any = {}; - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["QueryArgProfileConfig"] !== undefined) { - contents.QueryArgProfileConfig = de_QueryArgProfileConfig(output["QueryArgProfileConfig"], context); + if (output[_QAPC] != null) { + contents[_QAPC] = de_QueryArgProfileConfig(output[_QAPC], context); } - if (output["ContentTypeProfileConfig"] !== undefined) { - contents.ContentTypeProfileConfig = de_ContentTypeProfileConfig(output["ContentTypeProfileConfig"], context); + if (output[_CTPC] != null) { + contents[_CTPC] = de_ContentTypeProfileConfig(output[_CTPC], context); } return contents; }; @@ -17959,22 +16200,19 @@ const de_FieldLevelEncryptionConfig = (output: any, context: __SerdeContext): Fi */ const de_FieldLevelEncryptionList = (output: any, context: __SerdeContext): FieldLevelEncryptionList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["FieldLevelEncryptionSummary"] !== undefined) { - contents.Items = de_FieldLevelEncryptionSummaryList( - __getArrayIfSingleItem(output["Items"]["FieldLevelEncryptionSummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_FLES] != null) { + contents[_It] = de_FieldLevelEncryptionSummaryList(__getArrayIfSingleItem(output[_It][_FLES]), context); } return contents; }; @@ -17984,17 +16222,14 @@ const de_FieldLevelEncryptionList = (output: any, context: __SerdeContext): Fiel */ const de_FieldLevelEncryptionProfile = (output: any, context: __SerdeContext): FieldLevelEncryptionProfile => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["FieldLevelEncryptionProfileConfig"] !== undefined) { - contents.FieldLevelEncryptionProfileConfig = de_FieldLevelEncryptionProfileConfig( - output["FieldLevelEncryptionProfileConfig"], - context - ); + if (output[_FLEPC] != null) { + contents[_FLEPC] = de_FieldLevelEncryptionProfileConfig(output[_FLEPC], context); } return contents; }; @@ -18007,17 +16242,17 @@ const de_FieldLevelEncryptionProfileConfig = ( context: __SerdeContext ): FieldLevelEncryptionProfileConfig => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["EncryptionEntities"] !== undefined) { - contents.EncryptionEntities = de_EncryptionEntities(output["EncryptionEntities"], context); + if (output[_EE] != null) { + contents[_EE] = de_EncryptionEntities(output[_EE], context); } return contents; }; @@ -18027,22 +16262,19 @@ const de_FieldLevelEncryptionProfileConfig = ( */ const de_FieldLevelEncryptionProfileList = (output: any, context: __SerdeContext): FieldLevelEncryptionProfileList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["FieldLevelEncryptionProfileSummary"] !== undefined) { - contents.Items = de_FieldLevelEncryptionProfileSummaryList( - __getArrayIfSingleItem(output["Items"]["FieldLevelEncryptionProfileSummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_FLEPS] != null) { + contents[_It] = de_FieldLevelEncryptionProfileSummaryList(__getArrayIfSingleItem(output[_It][_FLEPS]), context); } return contents; }; @@ -18055,20 +16287,20 @@ const de_FieldLevelEncryptionProfileSummary = ( context: __SerdeContext ): FieldLevelEncryptionProfileSummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["EncryptionEntities"] !== undefined) { - contents.EncryptionEntities = de_EncryptionEntities(output["EncryptionEntities"], context); + if (output[_EE] != null) { + contents[_EE] = de_EncryptionEntities(output[_EE], context); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -18092,20 +16324,20 @@ const de_FieldLevelEncryptionProfileSummaryList = ( */ const de_FieldLevelEncryptionSummary = (output: any, context: __SerdeContext): FieldLevelEncryptionSummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["QueryArgProfileConfig"] !== undefined) { - contents.QueryArgProfileConfig = de_QueryArgProfileConfig(output["QueryArgProfileConfig"], context); + if (output[_QAPC] != null) { + contents[_QAPC] = de_QueryArgProfileConfig(output[_QAPC], context); } - if (output["ContentTypeProfileConfig"] !== undefined) { - contents.ContentTypeProfileConfig = de_ContentTypeProfileConfig(output["ContentTypeProfileConfig"], context); + if (output[_CTPC] != null) { + contents[_CTPC] = de_ContentTypeProfileConfig(output[_CTPC], context); } return contents; }; @@ -18148,13 +16380,13 @@ const de_FieldPatternList = (output: any, context: __SerdeContext): string[] => */ const de_FieldPatterns = (output: any, context: __SerdeContext): FieldPatterns => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["FieldPattern"] !== undefined) { - contents.Items = de_FieldPatternList(__getArrayIfSingleItem(output["Items"]["FieldPattern"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_FPi] != null) { + contents[_It] = de_FieldPatternList(__getArrayIfSingleItem(output[_It][_FPi]), context); } return contents; }; @@ -18164,17 +16396,17 @@ const de_FieldPatterns = (output: any, context: __SerdeContext): FieldPatterns = */ const de_ForwardedValues = (output: any, context: __SerdeContext): ForwardedValues => { const contents: any = {}; - if (output["QueryString"] !== undefined) { - contents.QueryString = __parseBoolean(output["QueryString"]); + if (output[_QSu] != null) { + contents[_QSu] = __parseBoolean(output[_QSu]); } - if (output["Cookies"] !== undefined) { - contents.Cookies = de_CookiePreference(output["Cookies"], context); + if (output[_Coo] != null) { + contents[_Coo] = de_CookiePreference(output[_Coo], context); } - if (output["Headers"] !== undefined) { - contents.Headers = de_Headers(output["Headers"], context); + if (output[_He] != null) { + contents[_He] = de_Headers(output[_He], context); } - if (output["QueryStringCacheKeys"] !== undefined) { - contents.QueryStringCacheKeys = de_QueryStringCacheKeys(output["QueryStringCacheKeys"], context); + if (output[_QSCK] != null) { + contents[_QSCK] = de_QueryStringCacheKeys(output[_QSCK], context); } return contents; }; @@ -18184,11 +16416,11 @@ const de_ForwardedValues = (output: any, context: __SerdeContext): ForwardedValu */ const de_FunctionAssociation = (output: any, context: __SerdeContext): FunctionAssociation => { const contents: any = {}; - if (output["FunctionARN"] !== undefined) { - contents.FunctionARN = __expectString(output["FunctionARN"]); + if (output[_FARN] != null) { + contents[_FARN] = __expectString(output[_FARN]); } - if (output["EventType"] !== undefined) { - contents.EventType = __expectString(output["EventType"]); + if (output[_ETv] != null) { + contents[_ETv] = __expectString(output[_ETv]); } return contents; }; @@ -18209,16 +16441,13 @@ const de_FunctionAssociationList = (output: any, context: __SerdeContext): Funct */ const de_FunctionAssociations = (output: any, context: __SerdeContext): FunctionAssociations => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["FunctionAssociation"] !== undefined) { - contents.Items = de_FunctionAssociationList( - __getArrayIfSingleItem(output["Items"]["FunctionAssociation"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_FAu] != null) { + contents[_It] = de_FunctionAssociationList(__getArrayIfSingleItem(output[_It][_FAu]), context); } return contents; }; @@ -18228,14 +16457,14 @@ const de_FunctionAssociations = (output: any, context: __SerdeContext): Function */ const de_FunctionConfig = (output: any, context: __SerdeContext): FunctionConfig => { const contents: any = {}; - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Runtime"] !== undefined) { - contents.Runtime = __expectString(output["Runtime"]); + if (output[_Ru] != null) { + contents[_Ru] = __expectString(output[_Ru]); } - if (output["KeyValueStoreAssociations"] !== undefined) { - contents.KeyValueStoreAssociations = de_KeyValueStoreAssociations(output["KeyValueStoreAssociations"], context); + if (output[_KVSA] != null) { + contents[_KVSA] = de_KeyValueStoreAssociations(output[_KVSA], context); } return contents; }; @@ -18256,19 +16485,19 @@ const de_FunctionExecutionLogList = (output: any, context: __SerdeContext): stri */ const de_FunctionList = (output: any, context: __SerdeContext): FunctionList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["FunctionSummary"] !== undefined) { - contents.Items = de_FunctionSummaryList(__getArrayIfSingleItem(output["Items"]["FunctionSummary"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_FSu] != null) { + contents[_It] = de_FunctionSummaryList(__getArrayIfSingleItem(output[_It][_FSu]), context); } return contents; }; @@ -18278,17 +16507,17 @@ const de_FunctionList = (output: any, context: __SerdeContext): FunctionList => */ const de_FunctionMetadata = (output: any, context: __SerdeContext): FunctionMetadata => { const contents: any = {}; - if (output["FunctionARN"] !== undefined) { - contents.FunctionARN = __expectString(output["FunctionARN"]); + if (output[_FARN] != null) { + contents[_FARN] = __expectString(output[_FARN]); } - if (output["Stage"] !== undefined) { - contents.Stage = __expectString(output["Stage"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } return contents; }; @@ -18298,17 +16527,17 @@ const de_FunctionMetadata = (output: any, context: __SerdeContext): FunctionMeta */ const de_FunctionSummary = (output: any, context: __SerdeContext): FunctionSummary => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["FunctionConfig"] !== undefined) { - contents.FunctionConfig = de_FunctionConfig(output["FunctionConfig"], context); + if (output[_FCu] != null) { + contents[_FCu] = de_FunctionConfig(output[_FCu], context); } - if (output["FunctionMetadata"] !== undefined) { - contents.FunctionMetadata = de_FunctionMetadata(output["FunctionMetadata"], context); + if (output[_FM] != null) { + contents[_FM] = de_FunctionMetadata(output[_FM], context); } return contents; }; @@ -18329,16 +16558,16 @@ const de_FunctionSummaryList = (output: any, context: __SerdeContext): FunctionS */ const de_GeoRestriction = (output: any, context: __SerdeContext): GeoRestriction => { const contents: any = {}; - if (output["RestrictionType"] !== undefined) { - contents.RestrictionType = __expectString(output["RestrictionType"]); + if (output[_RT] != null) { + contents[_RT] = __expectString(output[_RT]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Location"] !== undefined) { - contents.Items = de_LocationList(__getArrayIfSingleItem(output["Items"]["Location"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_L] != null) { + contents[_It] = de_LocationList(__getArrayIfSingleItem(output[_It][_L]), context); } return contents; }; @@ -18359,13 +16588,13 @@ const de_HeaderList = (output: any, context: __SerdeContext): string[] => { */ const de_Headers = (output: any, context: __SerdeContext): Headers => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Name"] !== undefined) { - contents.Items = de_HeaderList(__getArrayIfSingleItem(output["Items"]["Name"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_N] != null) { + contents[_It] = de_HeaderList(__getArrayIfSingleItem(output[_It][_N]), context); } return contents; }; @@ -18375,17 +16604,17 @@ const de_Headers = (output: any, context: __SerdeContext): Headers => { */ const de_Invalidation = (output: any, context: __SerdeContext): Invalidation => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTre])); } - if (output["InvalidationBatch"] !== undefined) { - contents.InvalidationBatch = de_InvalidationBatch(output["InvalidationBatch"], context); + if (output[_IB] != null) { + contents[_IB] = de_InvalidationBatch(output[_IB], context); } return contents; }; @@ -18395,11 +16624,11 @@ const de_Invalidation = (output: any, context: __SerdeContext): Invalidation => */ const de_InvalidationBatch = (output: any, context: __SerdeContext): InvalidationBatch => { const contents: any = {}; - if (output["Paths"] !== undefined) { - contents.Paths = de_Paths(output["Paths"], context); + if (output[_P] != null) { + contents[_P] = de_Paths(output[_P], context); } - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } return contents; }; @@ -18409,28 +16638,25 @@ const de_InvalidationBatch = (output: any, context: __SerdeContext): Invalidatio */ const de_InvalidationList = (output: any, context: __SerdeContext): InvalidationList => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["InvalidationSummary"] !== undefined) { - contents.Items = de_InvalidationSummaryList( - __getArrayIfSingleItem(output["Items"]["InvalidationSummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_ISnv] != null) { + contents[_It] = de_InvalidationSummaryList(__getArrayIfSingleItem(output[_It][_ISnv]), context); } return contents; }; @@ -18440,14 +16666,14 @@ const de_InvalidationList = (output: any, context: __SerdeContext): Invalidation */ const de_InvalidationSummary = (output: any, context: __SerdeContext): InvalidationSummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTre])); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } return contents; }; @@ -18468,14 +16694,14 @@ const de_InvalidationSummaryList = (output: any, context: __SerdeContext): Inval */ const de_KeyGroup = (output: any, context: __SerdeContext): KeyGroup => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["KeyGroupConfig"] !== undefined) { - contents.KeyGroupConfig = de_KeyGroupConfig(output["KeyGroupConfig"], context); + if (output[_KGC] != null) { + contents[_KGC] = de_KeyGroupConfig(output[_KGC], context); } return contents; }; @@ -18485,16 +16711,16 @@ const de_KeyGroup = (output: any, context: __SerdeContext): KeyGroup => { */ const de_KeyGroupConfig = (output: any, context: __SerdeContext): KeyGroupConfig => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["PublicKey"] !== undefined) { - contents.Items = de_PublicKeyIdList(__getArrayIfSingleItem(output["Items"]["PublicKey"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_PK] != null) { + contents[_It] = de_PublicKeyIdList(__getArrayIfSingleItem(output[_It][_PK]), context); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -18504,19 +16730,19 @@ const de_KeyGroupConfig = (output: any, context: __SerdeContext): KeyGroupConfig */ const de_KeyGroupList = (output: any, context: __SerdeContext): KeyGroupList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["KeyGroupSummary"] !== undefined) { - contents.Items = de_KeyGroupSummaryList(__getArrayIfSingleItem(output["Items"]["KeyGroupSummary"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_KGS] != null) { + contents[_It] = de_KeyGroupSummaryList(__getArrayIfSingleItem(output[_It][_KGS]), context); } return contents; }; @@ -18526,8 +16752,8 @@ const de_KeyGroupList = (output: any, context: __SerdeContext): KeyGroupList => */ const de_KeyGroupSummary = (output: any, context: __SerdeContext): KeyGroupSummary => { const contents: any = {}; - if (output["KeyGroup"] !== undefined) { - contents.KeyGroup = de_KeyGroup(output["KeyGroup"], context); + if (output[_KG] != null) { + contents[_KG] = de_KeyGroup(output[_KG], context); } return contents; }; @@ -18559,13 +16785,13 @@ const de_KeyPairIdList = (output: any, context: __SerdeContext): string[] => { */ const de_KeyPairIds = (output: any, context: __SerdeContext): KeyPairIds => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["KeyPairId"] !== undefined) { - contents.Items = de_KeyPairIdList(__getArrayIfSingleItem(output["Items"]["KeyPairId"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_KPI] != null) { + contents[_It] = de_KeyPairIdList(__getArrayIfSingleItem(output[_It][_KPI]), context); } return contents; }; @@ -18575,23 +16801,23 @@ const de_KeyPairIds = (output: any, context: __SerdeContext): KeyPairIds => { */ const de_KeyValueStore = (output: any, context: __SerdeContext): KeyValueStore => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } return contents; }; @@ -18601,8 +16827,8 @@ const de_KeyValueStore = (output: any, context: __SerdeContext): KeyValueStore = */ const de_KeyValueStoreAssociation = (output: any, context: __SerdeContext): KeyValueStoreAssociation => { const contents: any = {}; - if (output["KeyValueStoreARN"] !== undefined) { - contents.KeyValueStoreARN = __expectString(output["KeyValueStoreARN"]); + if (output[_KVSARN] != null) { + contents[_KVSARN] = __expectString(output[_KVSARN]); } return contents; }; @@ -18623,16 +16849,13 @@ const de_KeyValueStoreAssociationList = (output: any, context: __SerdeContext): */ const de_KeyValueStoreAssociations = (output: any, context: __SerdeContext): KeyValueStoreAssociations => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["KeyValueStoreAssociation"] !== undefined) { - contents.Items = de_KeyValueStoreAssociationList( - __getArrayIfSingleItem(output["Items"]["KeyValueStoreAssociation"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_KVSAe] != null) { + contents[_It] = de_KeyValueStoreAssociationList(__getArrayIfSingleItem(output[_It][_KVSAe]), context); } return contents; }; @@ -18642,19 +16865,19 @@ const de_KeyValueStoreAssociations = (output: any, context: __SerdeContext): Key */ const de_KeyValueStoreList = (output: any, context: __SerdeContext): KeyValueStoreList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["KeyValueStore"] !== undefined) { - contents.Items = de_KeyValueStoreSummaryList(__getArrayIfSingleItem(output["Items"]["KeyValueStore"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_KVS] != null) { + contents[_It] = de_KeyValueStoreSummaryList(__getArrayIfSingleItem(output[_It][_KVS]), context); } return contents; }; @@ -18675,11 +16898,11 @@ const de_KeyValueStoreSummaryList = (output: any, context: __SerdeContext): KeyV */ const de_KGKeyPairIds = (output: any, context: __SerdeContext): KGKeyPairIds => { const contents: any = {}; - if (output["KeyGroupId"] !== undefined) { - contents.KeyGroupId = __expectString(output["KeyGroupId"]); + if (output[_KGI] != null) { + contents[_KGI] = __expectString(output[_KGI]); } - if (output["KeyPairIds"] !== undefined) { - contents.KeyPairIds = de_KeyPairIds(output["KeyPairIds"], context); + if (output[_KPIe] != null) { + contents[_KPIe] = de_KeyPairIds(output[_KPIe], context); } return contents; }; @@ -18700,11 +16923,11 @@ const de_KGKeyPairIdsList = (output: any, context: __SerdeContext): KGKeyPairIds */ const de_KinesisStreamConfig = (output: any, context: __SerdeContext): KinesisStreamConfig => { const contents: any = {}; - if (output["RoleARN"] !== undefined) { - contents.RoleARN = __expectString(output["RoleARN"]); + if (output[_RARN] != null) { + contents[_RARN] = __expectString(output[_RARN]); } - if (output["StreamARN"] !== undefined) { - contents.StreamARN = __expectString(output["StreamARN"]); + if (output[_SARNt] != null) { + contents[_SARNt] = __expectString(output[_SARNt]); } return contents; }; @@ -18714,14 +16937,14 @@ const de_KinesisStreamConfig = (output: any, context: __SerdeContext): KinesisSt */ const de_LambdaFunctionAssociation = (output: any, context: __SerdeContext): LambdaFunctionAssociation => { const contents: any = {}; - if (output["LambdaFunctionARN"] !== undefined) { - contents.LambdaFunctionARN = __expectString(output["LambdaFunctionARN"]); + if (output[_LFARN] != null) { + contents[_LFARN] = __expectString(output[_LFARN]); } - if (output["EventType"] !== undefined) { - contents.EventType = __expectString(output["EventType"]); + if (output[_ETv] != null) { + contents[_ETv] = __expectString(output[_ETv]); } - if (output["IncludeBody"] !== undefined) { - contents.IncludeBody = __parseBoolean(output["IncludeBody"]); + if (output[_IBn] != null) { + contents[_IBn] = __parseBoolean(output[_IBn]); } return contents; }; @@ -18742,16 +16965,13 @@ const de_LambdaFunctionAssociationList = (output: any, context: __SerdeContext): */ const de_LambdaFunctionAssociations = (output: any, context: __SerdeContext): LambdaFunctionAssociations => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["LambdaFunctionAssociation"] !== undefined) { - contents.Items = de_LambdaFunctionAssociationList( - __getArrayIfSingleItem(output["Items"]["LambdaFunctionAssociation"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_LFAa] != null) { + contents[_It] = de_LambdaFunctionAssociationList(__getArrayIfSingleItem(output[_It][_LFAa]), context); } return contents; }; @@ -18772,17 +16992,17 @@ const de_LocationList = (output: any, context: __SerdeContext): string[] => { */ const de_LoggingConfig = (output: any, context: __SerdeContext): LoggingConfig => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["IncludeCookies"] !== undefined) { - contents.IncludeCookies = __parseBoolean(output["IncludeCookies"]); + if (output[_IC] != null) { + contents[_IC] = __parseBoolean(output[_IC]); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); } return contents; }; @@ -18803,11 +17023,8 @@ const de_MethodsList = (output: any, context: __SerdeContext): Method[] => { */ const de_MonitoringSubscription = (output: any, context: __SerdeContext): MonitoringSubscription => { const contents: any = {}; - if (output["RealtimeMetricsSubscriptionConfig"] !== undefined) { - contents.RealtimeMetricsSubscriptionConfig = de_RealtimeMetricsSubscriptionConfig( - output["RealtimeMetricsSubscriptionConfig"], - context - ); + if (output[_RMSC] != null) { + contents[_RMSC] = de_RealtimeMetricsSubscriptionConfig(output[_RMSC], context); } return contents; }; @@ -18817,35 +17034,35 @@ const de_MonitoringSubscription = (output: any, context: __SerdeContext): Monito */ const de_Origin = (output: any, context: __SerdeContext): Origin => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["DomainName"] !== undefined) { - contents.DomainName = __expectString(output["DomainName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["OriginPath"] !== undefined) { - contents.OriginPath = __expectString(output["OriginPath"]); + if (output[_OP] != null) { + contents[_OP] = __expectString(output[_OP]); } - if (output["CustomHeaders"] !== undefined) { - contents.CustomHeaders = de_CustomHeaders(output["CustomHeaders"], context); + if (output[_CH] != null) { + contents[_CH] = de_CustomHeaders(output[_CH], context); } - if (output["S3OriginConfig"] !== undefined) { - contents.S3OriginConfig = de_S3OriginConfig(output["S3OriginConfig"], context); + if (output[_SOC] != null) { + contents[_SOC] = de_S3OriginConfig(output[_SOC], context); } - if (output["CustomOriginConfig"] !== undefined) { - contents.CustomOriginConfig = de_CustomOriginConfig(output["CustomOriginConfig"], context); + if (output[_COC] != null) { + contents[_COC] = de_CustomOriginConfig(output[_COC], context); } - if (output["ConnectionAttempts"] !== undefined) { - contents.ConnectionAttempts = __strictParseInt32(output["ConnectionAttempts"]) as number; + if (output[_CA] != null) { + contents[_CA] = __strictParseInt32(output[_CA]) as number; } - if (output["ConnectionTimeout"] !== undefined) { - contents.ConnectionTimeout = __strictParseInt32(output["ConnectionTimeout"]) as number; + if (output[_CTon] != null) { + contents[_CTon] = __strictParseInt32(output[_CTon]) as number; } - if (output["OriginShield"] !== undefined) { - contents.OriginShield = de_OriginShield(output["OriginShield"], context); + if (output[_OS] != null) { + contents[_OS] = de_OriginShield(output[_OS], context); } - if (output["OriginAccessControlId"] !== undefined) { - contents.OriginAccessControlId = __expectString(output["OriginAccessControlId"]); + if (output[_OACI] != null) { + contents[_OACI] = __expectString(output[_OACI]); } return contents; }; @@ -18855,11 +17072,11 @@ const de_Origin = (output: any, context: __SerdeContext): Origin => { */ const de_OriginAccessControl = (output: any, context: __SerdeContext): OriginAccessControl => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["OriginAccessControlConfig"] !== undefined) { - contents.OriginAccessControlConfig = de_OriginAccessControlConfig(output["OriginAccessControlConfig"], context); + if (output[_OACC] != null) { + contents[_OACC] = de_OriginAccessControlConfig(output[_OACC], context); } return contents; }; @@ -18869,20 +17086,20 @@ const de_OriginAccessControl = (output: any, context: __SerdeContext): OriginAcc */ const de_OriginAccessControlConfig = (output: any, context: __SerdeContext): OriginAccessControlConfig => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["SigningProtocol"] !== undefined) { - contents.SigningProtocol = __expectString(output["SigningProtocol"]); + if (output[_SP] != null) { + contents[_SP] = __expectString(output[_SP]); } - if (output["SigningBehavior"] !== undefined) { - contents.SigningBehavior = __expectString(output["SigningBehavior"]); + if (output[_SB] != null) { + contents[_SB] = __expectString(output[_SB]); } - if (output["OriginAccessControlOriginType"] !== undefined) { - contents.OriginAccessControlOriginType = __expectString(output["OriginAccessControlOriginType"]); + if (output[_OACOT] != null) { + contents[_OACOT] = __expectString(output[_OACOT]); } return contents; }; @@ -18892,28 +17109,25 @@ const de_OriginAccessControlConfig = (output: any, context: __SerdeContext): Ori */ const de_OriginAccessControlList = (output: any, context: __SerdeContext): OriginAccessControlList => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["OriginAccessControlSummary"] !== undefined) { - contents.Items = de_OriginAccessControlSummaryList( - __getArrayIfSingleItem(output["Items"]["OriginAccessControlSummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_OACS] != null) { + contents[_It] = de_OriginAccessControlSummaryList(__getArrayIfSingleItem(output[_It][_OACS]), context); } return contents; }; @@ -18923,23 +17137,23 @@ const de_OriginAccessControlList = (output: any, context: __SerdeContext): Origi */ const de_OriginAccessControlSummary = (output: any, context: __SerdeContext): OriginAccessControlSummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["SigningProtocol"] !== undefined) { - contents.SigningProtocol = __expectString(output["SigningProtocol"]); + if (output[_SP] != null) { + contents[_SP] = __expectString(output[_SP]); } - if (output["SigningBehavior"] !== undefined) { - contents.SigningBehavior = __expectString(output["SigningBehavior"]); + if (output[_SB] != null) { + contents[_SB] = __expectString(output[_SB]); } - if (output["OriginAccessControlOriginType"] !== undefined) { - contents.OriginAccessControlOriginType = __expectString(output["OriginAccessControlOriginType"]); + if (output[_OACOT] != null) { + contents[_OACOT] = __expectString(output[_OACOT]); } return contents; }; @@ -18960,11 +17174,11 @@ const de_OriginAccessControlSummaryList = (output: any, context: __SerdeContext) */ const de_OriginCustomHeader = (output: any, context: __SerdeContext): OriginCustomHeader => { const contents: any = {}; - if (output["HeaderName"] !== undefined) { - contents.HeaderName = __expectString(output["HeaderName"]); + if (output[_HN] != null) { + contents[_HN] = __expectString(output[_HN]); } - if (output["HeaderValue"] !== undefined) { - contents.HeaderValue = __expectString(output["HeaderValue"]); + if (output[_HVe] != null) { + contents[_HVe] = __expectString(output[_HVe]); } return contents; }; @@ -18985,14 +17199,14 @@ const de_OriginCustomHeadersList = (output: any, context: __SerdeContext): Origi */ const de_OriginGroup = (output: any, context: __SerdeContext): OriginGroup => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["FailoverCriteria"] !== undefined) { - contents.FailoverCriteria = de_OriginGroupFailoverCriteria(output["FailoverCriteria"], context); + if (output[_FCa] != null) { + contents[_FCa] = de_OriginGroupFailoverCriteria(output[_FCa], context); } - if (output["Members"] !== undefined) { - contents.Members = de_OriginGroupMembers(output["Members"], context); + if (output[_Mem] != null) { + contents[_Mem] = de_OriginGroupMembers(output[_Mem], context); } return contents; }; @@ -19002,8 +17216,8 @@ const de_OriginGroup = (output: any, context: __SerdeContext): OriginGroup => { */ const de_OriginGroupFailoverCriteria = (output: any, context: __SerdeContext): OriginGroupFailoverCriteria => { const contents: any = {}; - if (output["StatusCodes"] !== undefined) { - contents.StatusCodes = de_StatusCodes(output["StatusCodes"], context); + if (output[_SC] != null) { + contents[_SC] = de_StatusCodes(output[_SC], context); } return contents; }; @@ -19024,8 +17238,8 @@ const de_OriginGroupList = (output: any, context: __SerdeContext): OriginGroup[] */ const de_OriginGroupMember = (output: any, context: __SerdeContext): OriginGroupMember => { const contents: any = {}; - if (output["OriginId"] !== undefined) { - contents.OriginId = __expectString(output["OriginId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -19046,13 +17260,13 @@ const de_OriginGroupMemberList = (output: any, context: __SerdeContext): OriginG */ const de_OriginGroupMembers = (output: any, context: __SerdeContext): OriginGroupMembers => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["OriginGroupMember"] !== undefined) { - contents.Items = de_OriginGroupMemberList(__getArrayIfSingleItem(output["Items"]["OriginGroupMember"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_OGM] != null) { + contents[_It] = de_OriginGroupMemberList(__getArrayIfSingleItem(output[_It][_OGM]), context); } return contents; }; @@ -19062,13 +17276,13 @@ const de_OriginGroupMembers = (output: any, context: __SerdeContext): OriginGrou */ const de_OriginGroups = (output: any, context: __SerdeContext): OriginGroups => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["OriginGroup"] !== undefined) { - contents.Items = de_OriginGroupList(__getArrayIfSingleItem(output["Items"]["OriginGroup"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_OGr] != null) { + contents[_It] = de_OriginGroupList(__getArrayIfSingleItem(output[_It][_OGr]), context); } return contents; }; @@ -19089,14 +17303,14 @@ const de_OriginList = (output: any, context: __SerdeContext): Origin[] => { */ const de_OriginRequestPolicy = (output: any, context: __SerdeContext): OriginRequestPolicy => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["OriginRequestPolicyConfig"] !== undefined) { - contents.OriginRequestPolicyConfig = de_OriginRequestPolicyConfig(output["OriginRequestPolicyConfig"], context); + if (output[_ORPC] != null) { + contents[_ORPC] = de_OriginRequestPolicyConfig(output[_ORPC], context); } return contents; }; @@ -19106,20 +17320,20 @@ const de_OriginRequestPolicy = (output: any, context: __SerdeContext): OriginReq */ const de_OriginRequestPolicyConfig = (output: any, context: __SerdeContext): OriginRequestPolicyConfig => { const contents: any = {}; - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["HeadersConfig"] !== undefined) { - contents.HeadersConfig = de_OriginRequestPolicyHeadersConfig(output["HeadersConfig"], context); + if (output[_HC] != null) { + contents[_HC] = de_OriginRequestPolicyHeadersConfig(output[_HC], context); } - if (output["CookiesConfig"] !== undefined) { - contents.CookiesConfig = de_OriginRequestPolicyCookiesConfig(output["CookiesConfig"], context); + if (output[_CC] != null) { + contents[_CC] = de_OriginRequestPolicyCookiesConfig(output[_CC], context); } - if (output["QueryStringsConfig"] !== undefined) { - contents.QueryStringsConfig = de_OriginRequestPolicyQueryStringsConfig(output["QueryStringsConfig"], context); + if (output[_QSC] != null) { + contents[_QSC] = de_OriginRequestPolicyQueryStringsConfig(output[_QSC], context); } return contents; }; @@ -19132,11 +17346,11 @@ const de_OriginRequestPolicyCookiesConfig = ( context: __SerdeContext ): OriginRequestPolicyCookiesConfig => { const contents: any = {}; - if (output["CookieBehavior"] !== undefined) { - contents.CookieBehavior = __expectString(output["CookieBehavior"]); + if (output[_CBo] != null) { + contents[_CBo] = __expectString(output[_CBo]); } - if (output["Cookies"] !== undefined) { - contents.Cookies = de_CookieNames(output["Cookies"], context); + if (output[_Coo] != null) { + contents[_Coo] = de_CookieNames(output[_Coo], context); } return contents; }; @@ -19149,11 +17363,11 @@ const de_OriginRequestPolicyHeadersConfig = ( context: __SerdeContext ): OriginRequestPolicyHeadersConfig => { const contents: any = {}; - if (output["HeaderBehavior"] !== undefined) { - contents.HeaderBehavior = __expectString(output["HeaderBehavior"]); + if (output[_HB] != null) { + contents[_HB] = __expectString(output[_HB]); } - if (output["Headers"] !== undefined) { - contents.Headers = de_Headers(output["Headers"], context); + if (output[_He] != null) { + contents[_He] = de_Headers(output[_He], context); } return contents; }; @@ -19163,22 +17377,19 @@ const de_OriginRequestPolicyHeadersConfig = ( */ const de_OriginRequestPolicyList = (output: any, context: __SerdeContext): OriginRequestPolicyList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["OriginRequestPolicySummary"] !== undefined) { - contents.Items = de_OriginRequestPolicySummaryList( - __getArrayIfSingleItem(output["Items"]["OriginRequestPolicySummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_ORPS] != null) { + contents[_It] = de_OriginRequestPolicySummaryList(__getArrayIfSingleItem(output[_It][_ORPS]), context); } return contents; }; @@ -19191,11 +17402,11 @@ const de_OriginRequestPolicyQueryStringsConfig = ( context: __SerdeContext ): OriginRequestPolicyQueryStringsConfig => { const contents: any = {}; - if (output["QueryStringBehavior"] !== undefined) { - contents.QueryStringBehavior = __expectString(output["QueryStringBehavior"]); + if (output[_QSB] != null) { + contents[_QSB] = __expectString(output[_QSB]); } - if (output["QueryStrings"] !== undefined) { - contents.QueryStrings = de_QueryStringNames(output["QueryStrings"], context); + if (output[_QS] != null) { + contents[_QS] = de_QueryStringNames(output[_QS], context); } return contents; }; @@ -19205,11 +17416,11 @@ const de_OriginRequestPolicyQueryStringsConfig = ( */ const de_OriginRequestPolicySummary = (output: any, context: __SerdeContext): OriginRequestPolicySummary => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["OriginRequestPolicy"] !== undefined) { - contents.OriginRequestPolicy = de_OriginRequestPolicy(output["OriginRequestPolicy"], context); + if (output[_ORP] != null) { + contents[_ORP] = de_OriginRequestPolicy(output[_ORP], context); } return contents; }; @@ -19230,13 +17441,13 @@ const de_OriginRequestPolicySummaryList = (output: any, context: __SerdeContext) */ const de_Origins = (output: any, context: __SerdeContext): Origins => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Origin"] !== undefined) { - contents.Items = de_OriginList(__getArrayIfSingleItem(output["Items"]["Origin"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Or] != null) { + contents[_It] = de_OriginList(__getArrayIfSingleItem(output[_It][_Or]), context); } return contents; }; @@ -19246,11 +17457,11 @@ const de_Origins = (output: any, context: __SerdeContext): Origins => { */ const de_OriginShield = (output: any, context: __SerdeContext): OriginShield => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["OriginShieldRegion"] !== undefined) { - contents.OriginShieldRegion = __expectString(output["OriginShieldRegion"]); + if (output[_OSR] != null) { + contents[_OSR] = __expectString(output[_OSR]); } return contents; }; @@ -19260,13 +17471,13 @@ const de_OriginShield = (output: any, context: __SerdeContext): OriginShield => */ const de_OriginSslProtocols = (output: any, context: __SerdeContext): OriginSslProtocols => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["SslProtocol"] !== undefined) { - contents.Items = de_SslProtocolsList(__getArrayIfSingleItem(output["Items"]["SslProtocol"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_SPs] != null) { + contents[_It] = de_SslProtocolsList(__getArrayIfSingleItem(output[_It][_SPs]), context); } return contents; }; @@ -19279,20 +17490,20 @@ const de_ParametersInCacheKeyAndForwardedToOrigin = ( context: __SerdeContext ): ParametersInCacheKeyAndForwardedToOrigin => { const contents: any = {}; - if (output["EnableAcceptEncodingGzip"] !== undefined) { - contents.EnableAcceptEncodingGzip = __parseBoolean(output["EnableAcceptEncodingGzip"]); + if (output[_EAEG] != null) { + contents[_EAEG] = __parseBoolean(output[_EAEG]); } - if (output["EnableAcceptEncodingBrotli"] !== undefined) { - contents.EnableAcceptEncodingBrotli = __parseBoolean(output["EnableAcceptEncodingBrotli"]); + if (output[_EAEB] != null) { + contents[_EAEB] = __parseBoolean(output[_EAEB]); } - if (output["HeadersConfig"] !== undefined) { - contents.HeadersConfig = de_CachePolicyHeadersConfig(output["HeadersConfig"], context); + if (output[_HC] != null) { + contents[_HC] = de_CachePolicyHeadersConfig(output[_HC], context); } - if (output["CookiesConfig"] !== undefined) { - contents.CookiesConfig = de_CachePolicyCookiesConfig(output["CookiesConfig"], context); + if (output[_CC] != null) { + contents[_CC] = de_CachePolicyCookiesConfig(output[_CC], context); } - if (output["QueryStringsConfig"] !== undefined) { - contents.QueryStringsConfig = de_CachePolicyQueryStringsConfig(output["QueryStringsConfig"], context); + if (output[_QSC] != null) { + contents[_QSC] = de_CachePolicyQueryStringsConfig(output[_QSC], context); } return contents; }; @@ -19313,13 +17524,13 @@ const de_PathList = (output: any, context: __SerdeContext): string[] => { */ const de_Paths = (output: any, context: __SerdeContext): Paths => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Path"] !== undefined) { - contents.Items = de_PathList(__getArrayIfSingleItem(output["Items"]["Path"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Pa] != null) { + contents[_It] = de_PathList(__getArrayIfSingleItem(output[_It][_Pa]), context); } return contents; }; @@ -19329,14 +17540,14 @@ const de_Paths = (output: any, context: __SerdeContext): Paths => { */ const de_PublicKey = (output: any, context: __SerdeContext): PublicKey => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["PublicKeyConfig"] !== undefined) { - contents.PublicKeyConfig = de_PublicKeyConfig(output["PublicKeyConfig"], context); + if (output[_PKC] != null) { + contents[_PKC] = de_PublicKeyConfig(output[_PKC], context); } return contents; }; @@ -19346,17 +17557,17 @@ const de_PublicKey = (output: any, context: __SerdeContext): PublicKey => { */ const de_PublicKeyConfig = (output: any, context: __SerdeContext): PublicKeyConfig => { const contents: any = {}; - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["EncodedKey"] !== undefined) { - contents.EncodedKey = __expectString(output["EncodedKey"]); + if (output[_EK] != null) { + contents[_EK] = __expectString(output[_EK]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -19377,19 +17588,19 @@ const de_PublicKeyIdList = (output: any, context: __SerdeContext): string[] => { */ const de_PublicKeyList = (output: any, context: __SerdeContext): PublicKeyList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["PublicKeySummary"] !== undefined) { - contents.Items = de_PublicKeySummaryList(__getArrayIfSingleItem(output["Items"]["PublicKeySummary"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_PKS] != null) { + contents[_It] = de_PublicKeySummaryList(__getArrayIfSingleItem(output[_It][_PKS]), context); } return contents; }; @@ -19399,20 +17610,20 @@ const de_PublicKeyList = (output: any, context: __SerdeContext): PublicKeyList = */ const de_PublicKeySummary = (output: any, context: __SerdeContext): PublicKeySummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["EncodedKey"] !== undefined) { - contents.EncodedKey = __expectString(output["EncodedKey"]); + if (output[_EK] != null) { + contents[_EK] = __expectString(output[_EK]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -19433,11 +17644,11 @@ const de_PublicKeySummaryList = (output: any, context: __SerdeContext): PublicKe */ const de_QueryArgProfile = (output: any, context: __SerdeContext): QueryArgProfile => { const contents: any = {}; - if (output["QueryArg"] !== undefined) { - contents.QueryArg = __expectString(output["QueryArg"]); + if (output[_QA] != null) { + contents[_QA] = __expectString(output[_QA]); } - if (output["ProfileId"] !== undefined) { - contents.ProfileId = __expectString(output["ProfileId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } return contents; }; @@ -19447,11 +17658,11 @@ const de_QueryArgProfile = (output: any, context: __SerdeContext): QueryArgProfi */ const de_QueryArgProfileConfig = (output: any, context: __SerdeContext): QueryArgProfileConfig => { const contents: any = {}; - if (output["ForwardWhenQueryArgProfileIsUnknown"] !== undefined) { - contents.ForwardWhenQueryArgProfileIsUnknown = __parseBoolean(output["ForwardWhenQueryArgProfileIsUnknown"]); + if (output[_FWQAPIU] != null) { + contents[_FWQAPIU] = __parseBoolean(output[_FWQAPIU]); } - if (output["QueryArgProfiles"] !== undefined) { - contents.QueryArgProfiles = de_QueryArgProfiles(output["QueryArgProfiles"], context); + if (output[_QAPu] != null) { + contents[_QAPu] = de_QueryArgProfiles(output[_QAPu], context); } return contents; }; @@ -19472,13 +17683,13 @@ const de_QueryArgProfileList = (output: any, context: __SerdeContext): QueryArgP */ const de_QueryArgProfiles = (output: any, context: __SerdeContext): QueryArgProfiles => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["QueryArgProfile"] !== undefined) { - contents.Items = de_QueryArgProfileList(__getArrayIfSingleItem(output["Items"]["QueryArgProfile"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_QAP] != null) { + contents[_It] = de_QueryArgProfileList(__getArrayIfSingleItem(output[_It][_QAP]), context); } return contents; }; @@ -19488,13 +17699,13 @@ const de_QueryArgProfiles = (output: any, context: __SerdeContext): QueryArgProf */ const de_QueryStringCacheKeys = (output: any, context: __SerdeContext): QueryStringCacheKeys => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Name"] !== undefined) { - contents.Items = de_QueryStringCacheKeysList(__getArrayIfSingleItem(output["Items"]["Name"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_N] != null) { + contents[_It] = de_QueryStringCacheKeysList(__getArrayIfSingleItem(output[_It][_N]), context); } return contents; }; @@ -19515,13 +17726,13 @@ const de_QueryStringCacheKeysList = (output: any, context: __SerdeContext): stri */ const de_QueryStringNames = (output: any, context: __SerdeContext): QueryStringNames => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Name"] !== undefined) { - contents.Items = de_QueryStringNamesList(__getArrayIfSingleItem(output["Items"]["Name"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_N] != null) { + contents[_It] = de_QueryStringNamesList(__getArrayIfSingleItem(output[_It][_N]), context); } return contents; }; @@ -19542,24 +17753,24 @@ const de_QueryStringNamesList = (output: any, context: __SerdeContext): string[] */ const de_RealtimeLogConfig = (output: any, context: __SerdeContext): RealtimeLogConfig => { const contents: any = {}; - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["SamplingRate"] !== undefined) { - contents.SamplingRate = __strictParseLong(output["SamplingRate"]) as number; + if (output[_SR] != null) { + contents[_SR] = __strictParseLong(output[_SR]) as number; } if (output.EndPoints === "") { - contents.EndPoints = []; - } else if (output["EndPoints"] !== undefined && output["EndPoints"]["member"] !== undefined) { - contents.EndPoints = de_EndPointList(__getArrayIfSingleItem(output["EndPoints"]["member"]), context); + contents[_EP] = []; + } else if (output[_EP] != null && output[_EP][_m] != null) { + contents[_EP] = de_EndPointList(__getArrayIfSingleItem(output[_EP][_m]), context); } if (output.Fields === "") { - contents.Fields = []; - } else if (output["Fields"] !== undefined && output["Fields"]["Field"] !== undefined) { - contents.Fields = de_FieldList(__getArrayIfSingleItem(output["Fields"]["Field"]), context); + contents[_F] = []; + } else if (output[_F] != null && output[_F][_Fi] != null) { + contents[_F] = de_FieldList(__getArrayIfSingleItem(output[_F][_Fi]), context); } return contents; }; @@ -19580,22 +17791,22 @@ const de_RealtimeLogConfigList = (output: any, context: __SerdeContext): Realtim */ const de_RealtimeLogConfigs = (output: any, context: __SerdeContext): RealtimeLogConfigs => { const contents: any = {}; - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["member"] !== undefined) { - contents.Items = de_RealtimeLogConfigList(__getArrayIfSingleItem(output["Items"]["member"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_m] != null) { + contents[_It] = de_RealtimeLogConfigList(__getArrayIfSingleItem(output[_It][_m]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -19608,8 +17819,8 @@ const de_RealtimeMetricsSubscriptionConfig = ( context: __SerdeContext ): RealtimeMetricsSubscriptionConfig => { const contents: any = {}; - if (output["RealtimeMetricsSubscriptionStatus"] !== undefined) { - contents.RealtimeMetricsSubscriptionStatus = __expectString(output["RealtimeMetricsSubscriptionStatus"]); + if (output[_RMSS] != null) { + contents[_RMSS] = __expectString(output[_RMSS]); } return contents; }; @@ -19619,17 +17830,14 @@ const de_RealtimeMetricsSubscriptionConfig = ( */ const de_ResponseHeadersPolicy = (output: any, context: __SerdeContext): ResponseHeadersPolicy => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["ResponseHeadersPolicyConfig"] !== undefined) { - contents.ResponseHeadersPolicyConfig = de_ResponseHeadersPolicyConfig( - output["ResponseHeadersPolicyConfig"], - context - ); + if (output[_RHPC] != null) { + contents[_RHPC] = de_ResponseHeadersPolicyConfig(output[_RHPC], context); } return contents; }; @@ -19642,13 +17850,13 @@ const de_ResponseHeadersPolicyAccessControlAllowHeaders = ( context: __SerdeContext ): ResponseHeadersPolicyAccessControlAllowHeaders => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Header"] !== undefined) { - contents.Items = de_AccessControlAllowHeadersList(__getArrayIfSingleItem(output["Items"]["Header"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_H] != null) { + contents[_It] = de_AccessControlAllowHeadersList(__getArrayIfSingleItem(output[_It][_H]), context); } return contents; }; @@ -19661,13 +17869,13 @@ const de_ResponseHeadersPolicyAccessControlAllowMethods = ( context: __SerdeContext ): ResponseHeadersPolicyAccessControlAllowMethods => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Method"] !== undefined) { - contents.Items = de_AccessControlAllowMethodsList(__getArrayIfSingleItem(output["Items"]["Method"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Met] != null) { + contents[_It] = de_AccessControlAllowMethodsList(__getArrayIfSingleItem(output[_It][_Met]), context); } return contents; }; @@ -19680,13 +17888,13 @@ const de_ResponseHeadersPolicyAccessControlAllowOrigins = ( context: __SerdeContext ): ResponseHeadersPolicyAccessControlAllowOrigins => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Origin"] !== undefined) { - contents.Items = de_AccessControlAllowOriginsList(__getArrayIfSingleItem(output["Items"]["Origin"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Or] != null) { + contents[_It] = de_AccessControlAllowOriginsList(__getArrayIfSingleItem(output[_It][_Or]), context); } return contents; }; @@ -19699,13 +17907,13 @@ const de_ResponseHeadersPolicyAccessControlExposeHeaders = ( context: __SerdeContext ): ResponseHeadersPolicyAccessControlExposeHeaders => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Header"] !== undefined) { - contents.Items = de_AccessControlExposeHeadersList(__getArrayIfSingleItem(output["Items"]["Header"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_H] != null) { + contents[_It] = de_AccessControlExposeHeadersList(__getArrayIfSingleItem(output[_It][_H]), context); } return contents; }; @@ -19715,32 +17923,26 @@ const de_ResponseHeadersPolicyAccessControlExposeHeaders = ( */ const de_ResponseHeadersPolicyConfig = (output: any, context: __SerdeContext): ResponseHeadersPolicyConfig => { const contents: any = {}; - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["CorsConfig"] !== undefined) { - contents.CorsConfig = de_ResponseHeadersPolicyCorsConfig(output["CorsConfig"], context); + if (output[_CCo] != null) { + contents[_CCo] = de_ResponseHeadersPolicyCorsConfig(output[_CCo], context); } - if (output["SecurityHeadersConfig"] !== undefined) { - contents.SecurityHeadersConfig = de_ResponseHeadersPolicySecurityHeadersConfig( - output["SecurityHeadersConfig"], - context - ); + if (output[_SHC] != null) { + contents[_SHC] = de_ResponseHeadersPolicySecurityHeadersConfig(output[_SHC], context); } - if (output["ServerTimingHeadersConfig"] !== undefined) { - contents.ServerTimingHeadersConfig = de_ResponseHeadersPolicyServerTimingHeadersConfig( - output["ServerTimingHeadersConfig"], - context - ); + if (output[_STHC] != null) { + contents[_STHC] = de_ResponseHeadersPolicyServerTimingHeadersConfig(output[_STHC], context); } - if (output["CustomHeadersConfig"] !== undefined) { - contents.CustomHeadersConfig = de_ResponseHeadersPolicyCustomHeadersConfig(output["CustomHeadersConfig"], context); + if (output[_CHC] != null) { + contents[_CHC] = de_ResponseHeadersPolicyCustomHeadersConfig(output[_CHC], context); } - if (output["RemoveHeadersConfig"] !== undefined) { - contents.RemoveHeadersConfig = de_ResponseHeadersPolicyRemoveHeadersConfig(output["RemoveHeadersConfig"], context); + if (output[_RHC] != null) { + contents[_RHC] = de_ResponseHeadersPolicyRemoveHeadersConfig(output[_RHC], context); } return contents; }; @@ -19753,11 +17955,11 @@ const de_ResponseHeadersPolicyContentSecurityPolicy = ( context: __SerdeContext ): ResponseHeadersPolicyContentSecurityPolicy => { const contents: any = {}; - if (output["Override"] !== undefined) { - contents.Override = __parseBoolean(output["Override"]); + if (output[_Ov] != null) { + contents[_Ov] = __parseBoolean(output[_Ov]); } - if (output["ContentSecurityPolicy"] !== undefined) { - contents.ContentSecurityPolicy = __expectString(output["ContentSecurityPolicy"]); + if (output[_CSP] != null) { + contents[_CSP] = __expectString(output[_CSP]); } return contents; }; @@ -19770,8 +17972,8 @@ const de_ResponseHeadersPolicyContentTypeOptions = ( context: __SerdeContext ): ResponseHeadersPolicyContentTypeOptions => { const contents: any = {}; - if (output["Override"] !== undefined) { - contents.Override = __parseBoolean(output["Override"]); + if (output[_Ov] != null) { + contents[_Ov] = __parseBoolean(output[_Ov]); } return contents; }; @@ -19781,38 +17983,26 @@ const de_ResponseHeadersPolicyContentTypeOptions = ( */ const de_ResponseHeadersPolicyCorsConfig = (output: any, context: __SerdeContext): ResponseHeadersPolicyCorsConfig => { const contents: any = {}; - if (output["AccessControlAllowOrigins"] !== undefined) { - contents.AccessControlAllowOrigins = de_ResponseHeadersPolicyAccessControlAllowOrigins( - output["AccessControlAllowOrigins"], - context - ); + if (output[_ACAO] != null) { + contents[_ACAO] = de_ResponseHeadersPolicyAccessControlAllowOrigins(output[_ACAO], context); } - if (output["AccessControlAllowHeaders"] !== undefined) { - contents.AccessControlAllowHeaders = de_ResponseHeadersPolicyAccessControlAllowHeaders( - output["AccessControlAllowHeaders"], - context - ); + if (output[_ACAH] != null) { + contents[_ACAH] = de_ResponseHeadersPolicyAccessControlAllowHeaders(output[_ACAH], context); } - if (output["AccessControlAllowMethods"] !== undefined) { - contents.AccessControlAllowMethods = de_ResponseHeadersPolicyAccessControlAllowMethods( - output["AccessControlAllowMethods"], - context - ); + if (output[_ACAM] != null) { + contents[_ACAM] = de_ResponseHeadersPolicyAccessControlAllowMethods(output[_ACAM], context); } - if (output["AccessControlAllowCredentials"] !== undefined) { - contents.AccessControlAllowCredentials = __parseBoolean(output["AccessControlAllowCredentials"]); + if (output[_ACAC] != null) { + contents[_ACAC] = __parseBoolean(output[_ACAC]); } - if (output["AccessControlExposeHeaders"] !== undefined) { - contents.AccessControlExposeHeaders = de_ResponseHeadersPolicyAccessControlExposeHeaders( - output["AccessControlExposeHeaders"], - context - ); + if (output[_ACEH] != null) { + contents[_ACEH] = de_ResponseHeadersPolicyAccessControlExposeHeaders(output[_ACEH], context); } - if (output["AccessControlMaxAgeSec"] !== undefined) { - contents.AccessControlMaxAgeSec = __strictParseInt32(output["AccessControlMaxAgeSec"]) as number; + if (output[_ACMAS] != null) { + contents[_ACMAS] = __strictParseInt32(output[_ACMAS]) as number; } - if (output["OriginOverride"] !== undefined) { - contents.OriginOverride = __parseBoolean(output["OriginOverride"]); + if (output[_OO] != null) { + contents[_OO] = __parseBoolean(output[_OO]); } return contents; }; @@ -19825,14 +18015,14 @@ const de_ResponseHeadersPolicyCustomHeader = ( context: __SerdeContext ): ResponseHeadersPolicyCustomHeader => { const contents: any = {}; - if (output["Header"] !== undefined) { - contents.Header = __expectString(output["Header"]); + if (output[_H] != null) { + contents[_H] = __expectString(output[_H]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } - if (output["Override"] !== undefined) { - contents.Override = __parseBoolean(output["Override"]); + if (output[_Ov] != null) { + contents[_Ov] = __parseBoolean(output[_Ov]); } return contents; }; @@ -19859,16 +18049,13 @@ const de_ResponseHeadersPolicyCustomHeadersConfig = ( context: __SerdeContext ): ResponseHeadersPolicyCustomHeadersConfig => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["ResponseHeadersPolicyCustomHeader"] !== undefined) { - contents.Items = de_ResponseHeadersPolicyCustomHeaderList( - __getArrayIfSingleItem(output["Items"]["ResponseHeadersPolicyCustomHeader"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_RHPCH] != null) { + contents[_It] = de_ResponseHeadersPolicyCustomHeaderList(__getArrayIfSingleItem(output[_It][_RHPCH]), context); } return contents; }; @@ -19881,11 +18068,11 @@ const de_ResponseHeadersPolicyFrameOptions = ( context: __SerdeContext ): ResponseHeadersPolicyFrameOptions => { const contents: any = {}; - if (output["Override"] !== undefined) { - contents.Override = __parseBoolean(output["Override"]); + if (output[_Ov] != null) { + contents[_Ov] = __parseBoolean(output[_Ov]); } - if (output["FrameOption"] !== undefined) { - contents.FrameOption = __expectString(output["FrameOption"]); + if (output[_FO] != null) { + contents[_FO] = __expectString(output[_FO]); } return contents; }; @@ -19895,22 +18082,19 @@ const de_ResponseHeadersPolicyFrameOptions = ( */ const de_ResponseHeadersPolicyList = (output: any, context: __SerdeContext): ResponseHeadersPolicyList => { const contents: any = {}; - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["ResponseHeadersPolicySummary"] !== undefined) { - contents.Items = de_ResponseHeadersPolicySummaryList( - __getArrayIfSingleItem(output["Items"]["ResponseHeadersPolicySummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_RHPS] != null) { + contents[_It] = de_ResponseHeadersPolicySummaryList(__getArrayIfSingleItem(output[_It][_RHPS]), context); } return contents; }; @@ -19923,11 +18107,11 @@ const de_ResponseHeadersPolicyReferrerPolicy = ( context: __SerdeContext ): ResponseHeadersPolicyReferrerPolicy => { const contents: any = {}; - if (output["Override"] !== undefined) { - contents.Override = __parseBoolean(output["Override"]); + if (output[_Ov] != null) { + contents[_Ov] = __parseBoolean(output[_Ov]); } - if (output["ReferrerPolicy"] !== undefined) { - contents.ReferrerPolicy = __expectString(output["ReferrerPolicy"]); + if (output[_RP] != null) { + contents[_RP] = __expectString(output[_RP]); } return contents; }; @@ -19940,8 +18124,8 @@ const de_ResponseHeadersPolicyRemoveHeader = ( context: __SerdeContext ): ResponseHeadersPolicyRemoveHeader => { const contents: any = {}; - if (output["Header"] !== undefined) { - contents.Header = __expectString(output["Header"]); + if (output[_H] != null) { + contents[_H] = __expectString(output[_H]); } return contents; }; @@ -19968,16 +18152,13 @@ const de_ResponseHeadersPolicyRemoveHeadersConfig = ( context: __SerdeContext ): ResponseHeadersPolicyRemoveHeadersConfig => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["ResponseHeadersPolicyRemoveHeader"] !== undefined) { - contents.Items = de_ResponseHeadersPolicyRemoveHeaderList( - __getArrayIfSingleItem(output["Items"]["ResponseHeadersPolicyRemoveHeader"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_RHPRH] != null) { + contents[_It] = de_ResponseHeadersPolicyRemoveHeaderList(__getArrayIfSingleItem(output[_It][_RHPRH]), context); } return contents; }; @@ -19990,29 +18171,23 @@ const de_ResponseHeadersPolicySecurityHeadersConfig = ( context: __SerdeContext ): ResponseHeadersPolicySecurityHeadersConfig => { const contents: any = {}; - if (output["XSSProtection"] !== undefined) { - contents.XSSProtection = de_ResponseHeadersPolicyXSSProtection(output["XSSProtection"], context); + if (output[_XSSP] != null) { + contents[_XSSP] = de_ResponseHeadersPolicyXSSProtection(output[_XSSP], context); } - if (output["FrameOptions"] !== undefined) { - contents.FrameOptions = de_ResponseHeadersPolicyFrameOptions(output["FrameOptions"], context); + if (output[_FOr] != null) { + contents[_FOr] = de_ResponseHeadersPolicyFrameOptions(output[_FOr], context); } - if (output["ReferrerPolicy"] !== undefined) { - contents.ReferrerPolicy = de_ResponseHeadersPolicyReferrerPolicy(output["ReferrerPolicy"], context); + if (output[_RP] != null) { + contents[_RP] = de_ResponseHeadersPolicyReferrerPolicy(output[_RP], context); } - if (output["ContentSecurityPolicy"] !== undefined) { - contents.ContentSecurityPolicy = de_ResponseHeadersPolicyContentSecurityPolicy( - output["ContentSecurityPolicy"], - context - ); + if (output[_CSP] != null) { + contents[_CSP] = de_ResponseHeadersPolicyContentSecurityPolicy(output[_CSP], context); } - if (output["ContentTypeOptions"] !== undefined) { - contents.ContentTypeOptions = de_ResponseHeadersPolicyContentTypeOptions(output["ContentTypeOptions"], context); + if (output[_CTO] != null) { + contents[_CTO] = de_ResponseHeadersPolicyContentTypeOptions(output[_CTO], context); } - if (output["StrictTransportSecurity"] !== undefined) { - contents.StrictTransportSecurity = de_ResponseHeadersPolicyStrictTransportSecurity( - output["StrictTransportSecurity"], - context - ); + if (output[_STS] != null) { + contents[_STS] = de_ResponseHeadersPolicyStrictTransportSecurity(output[_STS], context); } return contents; }; @@ -20025,11 +18200,11 @@ const de_ResponseHeadersPolicyServerTimingHeadersConfig = ( context: __SerdeContext ): ResponseHeadersPolicyServerTimingHeadersConfig => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["SamplingRate"] !== undefined) { - contents.SamplingRate = __strictParseFloat(output["SamplingRate"]) as number; + if (output[_SR] != null) { + contents[_SR] = __strictParseFloat(output[_SR]) as number; } return contents; }; @@ -20042,17 +18217,17 @@ const de_ResponseHeadersPolicyStrictTransportSecurity = ( context: __SerdeContext ): ResponseHeadersPolicyStrictTransportSecurity => { const contents: any = {}; - if (output["Override"] !== undefined) { - contents.Override = __parseBoolean(output["Override"]); + if (output[_Ov] != null) { + contents[_Ov] = __parseBoolean(output[_Ov]); } - if (output["IncludeSubdomains"] !== undefined) { - contents.IncludeSubdomains = __parseBoolean(output["IncludeSubdomains"]); + if (output[_ISn] != null) { + contents[_ISn] = __parseBoolean(output[_ISn]); } - if (output["Preload"] !== undefined) { - contents.Preload = __parseBoolean(output["Preload"]); + if (output[_Pre] != null) { + contents[_Pre] = __parseBoolean(output[_Pre]); } - if (output["AccessControlMaxAgeSec"] !== undefined) { - contents.AccessControlMaxAgeSec = __strictParseInt32(output["AccessControlMaxAgeSec"]) as number; + if (output[_ACMAS] != null) { + contents[_ACMAS] = __strictParseInt32(output[_ACMAS]) as number; } return contents; }; @@ -20062,11 +18237,11 @@ const de_ResponseHeadersPolicyStrictTransportSecurity = ( */ const de_ResponseHeadersPolicySummary = (output: any, context: __SerdeContext): ResponseHeadersPolicySummary => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["ResponseHeadersPolicy"] !== undefined) { - contents.ResponseHeadersPolicy = de_ResponseHeadersPolicy(output["ResponseHeadersPolicy"], context); + if (output[_RHP] != null) { + contents[_RHP] = de_ResponseHeadersPolicy(output[_RHP], context); } return contents; }; @@ -20090,17 +18265,17 @@ const de_ResponseHeadersPolicyXSSProtection = ( context: __SerdeContext ): ResponseHeadersPolicyXSSProtection => { const contents: any = {}; - if (output["Override"] !== undefined) { - contents.Override = __parseBoolean(output["Override"]); + if (output[_Ov] != null) { + contents[_Ov] = __parseBoolean(output[_Ov]); } - if (output["Protection"] !== undefined) { - contents.Protection = __parseBoolean(output["Protection"]); + if (output[_Pro] != null) { + contents[_Pro] = __parseBoolean(output[_Pro]); } - if (output["ModeBlock"] !== undefined) { - contents.ModeBlock = __parseBoolean(output["ModeBlock"]); + if (output[_MB] != null) { + contents[_MB] = __parseBoolean(output[_MB]); } - if (output["ReportUri"] !== undefined) { - contents.ReportUri = __expectString(output["ReportUri"]); + if (output[_RU] != null) { + contents[_RU] = __expectString(output[_RU]); } return contents; }; @@ -20110,8 +18285,8 @@ const de_ResponseHeadersPolicyXSSProtection = ( */ const de_Restrictions = (output: any, context: __SerdeContext): Restrictions => { const contents: any = {}; - if (output["GeoRestriction"] !== undefined) { - contents.GeoRestriction = de_GeoRestriction(output["GeoRestriction"], context); + if (output[_GR] != null) { + contents[_GR] = de_GeoRestriction(output[_GR], context); } return contents; }; @@ -20121,11 +18296,11 @@ const de_Restrictions = (output: any, context: __SerdeContext): Restrictions => */ const de_S3Origin = (output: any, context: __SerdeContext): S3Origin => { const contents: any = {}; - if (output["DomainName"] !== undefined) { - contents.DomainName = __expectString(output["DomainName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["OriginAccessIdentity"] !== undefined) { - contents.OriginAccessIdentity = __expectString(output["OriginAccessIdentity"]); + if (output[_OAI] != null) { + contents[_OAI] = __expectString(output[_OAI]); } return contents; }; @@ -20135,8 +18310,8 @@ const de_S3Origin = (output: any, context: __SerdeContext): S3Origin => { */ const de_S3OriginConfig = (output: any, context: __SerdeContext): S3OriginConfig => { const contents: any = {}; - if (output["OriginAccessIdentity"] !== undefined) { - contents.OriginAccessIdentity = __expectString(output["OriginAccessIdentity"]); + if (output[_OAI] != null) { + contents[_OAI] = __expectString(output[_OAI]); } return contents; }; @@ -20146,11 +18321,11 @@ const de_S3OriginConfig = (output: any, context: __SerdeContext): S3OriginConfig */ const de_SessionStickinessConfig = (output: any, context: __SerdeContext): SessionStickinessConfig => { const contents: any = {}; - if (output["IdleTTL"] !== undefined) { - contents.IdleTTL = __strictParseInt32(output["IdleTTL"]) as number; + if (output[_ITTL] != null) { + contents[_ITTL] = __strictParseInt32(output[_ITTL]) as number; } - if (output["MaximumTTL"] !== undefined) { - contents.MaximumTTL = __strictParseInt32(output["MaximumTTL"]) as number; + if (output[_MTTLax] != null) { + contents[_MTTLax] = __strictParseInt32(output[_MTTLax]) as number; } return contents; }; @@ -20160,11 +18335,11 @@ const de_SessionStickinessConfig = (output: any, context: __SerdeContext): Sessi */ const de_Signer = (output: any, context: __SerdeContext): Signer => { const contents: any = {}; - if (output["AwsAccountNumber"] !== undefined) { - contents.AwsAccountNumber = __expectString(output["AwsAccountNumber"]); + if (output[_AAN] != null) { + contents[_AAN] = __expectString(output[_AAN]); } - if (output["KeyPairIds"] !== undefined) { - contents.KeyPairIds = de_KeyPairIds(output["KeyPairIds"], context); + if (output[_KPIe] != null) { + contents[_KPIe] = de_KeyPairIds(output[_KPIe], context); } return contents; }; @@ -20207,13 +18382,13 @@ const de_StagingDistributionDnsNameList = (output: any, context: __SerdeContext) */ const de_StagingDistributionDnsNames = (output: any, context: __SerdeContext): StagingDistributionDnsNames => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["DnsName"] !== undefined) { - contents.Items = de_StagingDistributionDnsNameList(__getArrayIfSingleItem(output["Items"]["DnsName"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_DNn] != null) { + contents[_It] = de_StagingDistributionDnsNameList(__getArrayIfSingleItem(output[_It][_DNn]), context); } return contents; }; @@ -20234,13 +18409,13 @@ const de_StatusCodeList = (output: any, context: __SerdeContext): number[] => { */ const de_StatusCodes = (output: any, context: __SerdeContext): StatusCodes => { const contents: any = {}; - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["StatusCode"] !== undefined) { - contents.Items = de_StatusCodeList(__getArrayIfSingleItem(output["Items"]["StatusCode"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_SCt] != null) { + contents[_It] = de_StatusCodeList(__getArrayIfSingleItem(output[_It][_SCt]), context); } return contents; }; @@ -20250,29 +18425,26 @@ const de_StatusCodes = (output: any, context: __SerdeContext): StatusCodes => { */ const de_StreamingDistribution = (output: any, context: __SerdeContext): StreamingDistribution => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["DomainName"] !== undefined) { - contents.DomainName = __expectString(output["DomainName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["ActiveTrustedSigners"] !== undefined) { - contents.ActiveTrustedSigners = de_ActiveTrustedSigners(output["ActiveTrustedSigners"], context); + if (output[_ATS] != null) { + contents[_ATS] = de_ActiveTrustedSigners(output[_ATS], context); } - if (output["StreamingDistributionConfig"] !== undefined) { - contents.StreamingDistributionConfig = de_StreamingDistributionConfig( - output["StreamingDistributionConfig"], - context - ); + if (output[_SDC] != null) { + contents[_SDC] = de_StreamingDistributionConfig(output[_SDC], context); } return contents; }; @@ -20282,29 +18454,29 @@ const de_StreamingDistribution = (output: any, context: __SerdeContext): Streami */ const de_StreamingDistributionConfig = (output: any, context: __SerdeContext): StreamingDistributionConfig => { const contents: any = {}; - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["S3Origin"] !== undefined) { - contents.S3Origin = de_S3Origin(output["S3Origin"], context); + if (output[_SO] != null) { + contents[_SO] = de_S3Origin(output[_SO], context); } - if (output["Aliases"] !== undefined) { - contents.Aliases = de_Aliases(output["Aliases"], context); + if (output[_Al] != null) { + contents[_Al] = de_Aliases(output[_Al], context); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Logging"] !== undefined) { - contents.Logging = de_StreamingLoggingConfig(output["Logging"], context); + if (output[_Lo] != null) { + contents[_Lo] = de_StreamingLoggingConfig(output[_Lo], context); } - if (output["TrustedSigners"] !== undefined) { - contents.TrustedSigners = de_TrustedSigners(output["TrustedSigners"], context); + if (output[_TS] != null) { + contents[_TS] = de_TrustedSigners(output[_TS], context); } - if (output["PriceClass"] !== undefined) { - contents.PriceClass = __expectString(output["PriceClass"]); + if (output[_PC] != null) { + contents[_PC] = __expectString(output[_PC]); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } return contents; }; @@ -20314,28 +18486,25 @@ const de_StreamingDistributionConfig = (output: any, context: __SerdeContext): S */ const de_StreamingDistributionList = (output: any, context: __SerdeContext): StreamingDistributionList => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } - if (output["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(output["MaxItems"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["StreamingDistributionSummary"] !== undefined) { - contents.Items = de_StreamingDistributionSummaryList( - __getArrayIfSingleItem(output["Items"]["StreamingDistributionSummary"]), - context - ); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_SDS] != null) { + contents[_It] = de_StreamingDistributionSummaryList(__getArrayIfSingleItem(output[_It][_SDS]), context); } return contents; }; @@ -20345,38 +18514,38 @@ const de_StreamingDistributionList = (output: any, context: __SerdeContext): Str */ const de_StreamingDistributionSummary = (output: any, context: __SerdeContext): StreamingDistributionSummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["LastModifiedTime"] !== undefined) { - contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedTime"])); + if (output[_LMT] != null) { + contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT])); } - if (output["DomainName"] !== undefined) { - contents.DomainName = __expectString(output["DomainName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["S3Origin"] !== undefined) { - contents.S3Origin = de_S3Origin(output["S3Origin"], context); + if (output[_SO] != null) { + contents[_SO] = de_S3Origin(output[_SO], context); } - if (output["Aliases"] !== undefined) { - contents.Aliases = de_Aliases(output["Aliases"], context); + if (output[_Al] != null) { + contents[_Al] = de_Aliases(output[_Al], context); } - if (output["TrustedSigners"] !== undefined) { - contents.TrustedSigners = de_TrustedSigners(output["TrustedSigners"], context); + if (output[_TS] != null) { + contents[_TS] = de_TrustedSigners(output[_TS], context); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["PriceClass"] !== undefined) { - contents.PriceClass = __expectString(output["PriceClass"]); + if (output[_PC] != null) { + contents[_PC] = __expectString(output[_PC]); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } return contents; }; @@ -20397,14 +18566,14 @@ const de_StreamingDistributionSummaryList = (output: any, context: __SerdeContex */ const de_StreamingLoggingConfig = (output: any, context: __SerdeContext): StreamingLoggingConfig => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); } return contents; }; @@ -20414,11 +18583,11 @@ const de_StreamingLoggingConfig = (output: any, context: __SerdeContext): Stream */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -20440,9 +18609,9 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { const de_Tags = (output: any, context: __SerdeContext): Tags => { const contents: any = {}; if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["Tag"] !== undefined) { - contents.Items = de_TagList(__getArrayIfSingleItem(output["Items"]["Tag"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_Tag] != null) { + contents[_It] = de_TagList(__getArrayIfSingleItem(output[_It][_Tag]), context); } return contents; }; @@ -20452,25 +18621,22 @@ const de_Tags = (output: any, context: __SerdeContext): Tags => { */ const de_TestResult = (output: any, context: __SerdeContext): TestResult => { const contents: any = {}; - if (output["FunctionSummary"] !== undefined) { - contents.FunctionSummary = de_FunctionSummary(output["FunctionSummary"], context); + if (output[_FSu] != null) { + contents[_FSu] = de_FunctionSummary(output[_FSu], context); } - if (output["ComputeUtilization"] !== undefined) { - contents.ComputeUtilization = __expectString(output["ComputeUtilization"]); + if (output[_CU] != null) { + contents[_CU] = __expectString(output[_CU]); } if (output.FunctionExecutionLogs === "") { - contents.FunctionExecutionLogs = []; - } else if (output["FunctionExecutionLogs"] !== undefined && output["FunctionExecutionLogs"]["member"] !== undefined) { - contents.FunctionExecutionLogs = de_FunctionExecutionLogList( - __getArrayIfSingleItem(output["FunctionExecutionLogs"]["member"]), - context - ); + contents[_FEL] = []; + } else if (output[_FEL] != null && output[_FEL][_m] != null) { + contents[_FEL] = de_FunctionExecutionLogList(__getArrayIfSingleItem(output[_FEL][_m]), context); } - if (output["FunctionErrorMessage"] !== undefined) { - contents.FunctionErrorMessage = __expectString(output["FunctionErrorMessage"]); + if (output[_FEM] != null) { + contents[_FEM] = __expectString(output[_FEM]); } - if (output["FunctionOutput"] !== undefined) { - contents.FunctionOutput = __expectString(output["FunctionOutput"]); + if (output[_FOu] != null) { + contents[_FOu] = __expectString(output[_FOu]); } return contents; }; @@ -20480,14 +18646,14 @@ const de_TestResult = (output: any, context: __SerdeContext): TestResult => { */ const de_TrafficConfig = (output: any, context: __SerdeContext): TrafficConfig => { const contents: any = {}; - if (output["SingleWeightConfig"] !== undefined) { - contents.SingleWeightConfig = de_ContinuousDeploymentSingleWeightConfig(output["SingleWeightConfig"], context); + if (output[_SWC] != null) { + contents[_SWC] = de_ContinuousDeploymentSingleWeightConfig(output[_SWC], context); } - if (output["SingleHeaderConfig"] !== undefined) { - contents.SingleHeaderConfig = de_ContinuousDeploymentSingleHeaderConfig(output["SingleHeaderConfig"], context); + if (output[_SHCi] != null) { + contents[_SHCi] = de_ContinuousDeploymentSingleHeaderConfig(output[_SHCi], context); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } return contents; }; @@ -20508,16 +18674,16 @@ const de_TrustedKeyGroupIdList = (output: any, context: __SerdeContext): string[ */ const de_TrustedKeyGroups = (output: any, context: __SerdeContext): TrustedKeyGroups => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["KeyGroup"] !== undefined) { - contents.Items = de_TrustedKeyGroupIdList(__getArrayIfSingleItem(output["Items"]["KeyGroup"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_KG] != null) { + contents[_It] = de_TrustedKeyGroupIdList(__getArrayIfSingleItem(output[_It][_KG]), context); } return contents; }; @@ -20527,16 +18693,16 @@ const de_TrustedKeyGroups = (output: any, context: __SerdeContext): TrustedKeyGr */ const de_TrustedSigners = (output: any, context: __SerdeContext): TrustedSigners => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["Quantity"] !== undefined) { - contents.Quantity = __strictParseInt32(output["Quantity"]) as number; + if (output[_Q] != null) { + contents[_Q] = __strictParseInt32(output[_Q]) as number; } if (output.Items === "") { - contents.Items = []; - } else if (output["Items"] !== undefined && output["Items"]["AwsAccountNumber"] !== undefined) { - contents.Items = de_AwsAccountNumberList(__getArrayIfSingleItem(output["Items"]["AwsAccountNumber"]), context); + contents[_It] = []; + } else if (output[_It] != null && output[_It][_AAN] != null) { + contents[_It] = de_AwsAccountNumberList(__getArrayIfSingleItem(output[_It][_AAN]), context); } return contents; }; @@ -20546,26 +18712,26 @@ const de_TrustedSigners = (output: any, context: __SerdeContext): TrustedSigners */ const de_ViewerCertificate = (output: any, context: __SerdeContext): ViewerCertificate => { const contents: any = {}; - if (output["CloudFrontDefaultCertificate"] !== undefined) { - contents.CloudFrontDefaultCertificate = __parseBoolean(output["CloudFrontDefaultCertificate"]); + if (output[_CFDC] != null) { + contents[_CFDC] = __parseBoolean(output[_CFDC]); } - if (output["IAMCertificateId"] !== undefined) { - contents.IAMCertificateId = __expectString(output["IAMCertificateId"]); + if (output[_IAMCI] != null) { + contents[_IAMCI] = __expectString(output[_IAMCI]); } - if (output["ACMCertificateArn"] !== undefined) { - contents.ACMCertificateArn = __expectString(output["ACMCertificateArn"]); + if (output[_ACMCA] != null) { + contents[_ACMCA] = __expectString(output[_ACMCA]); } - if (output["SSLSupportMethod"] !== undefined) { - contents.SSLSupportMethod = __expectString(output["SSLSupportMethod"]); + if (output[_SSLSM] != null) { + contents[_SSLSM] = __expectString(output[_SSLSM]); } - if (output["MinimumProtocolVersion"] !== undefined) { - contents.MinimumProtocolVersion = __expectString(output["MinimumProtocolVersion"]); + if (output[_MPV] != null) { + contents[_MPV] = __expectString(output[_MPV]); } - if (output["Certificate"] !== undefined) { - contents.Certificate = __expectString(output["Certificate"]); + if (output[_Ce] != null) { + contents[_Ce] = __expectString(output[_Ce]); } - if (output["CertificateSource"] !== undefined) { - contents.CertificateSource = __expectString(output["CertificateSource"]); + if (output[_CS] != null) { + contents[_CS] = __expectString(output[_CS]); } return contents; }; @@ -20589,6 +18755,371 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Alias"; +const _AAN = "AwsAccountNumber"; +const _ACAC = "AccessControlAllowCredentials"; +const _ACAH = "AccessControlAllowHeaders"; +const _ACAM = "AccessControlAllowMethods"; +const _ACAO = "AccessControlAllowOrigins"; +const _ACEH = "AccessControlExposeHeaders"; +const _ACMAS = "AccessControlMaxAgeSec"; +const _ACMCA = "ACMCertificateArn"; +const _AI = "AccountId"; +const _AICPR = "AliasICPRecordals"; +const _AICPRl = "AliasICPRecordal"; +const _AM = "AllowedMethods"; +const _ARN = "ARN"; +const _ATKG = "ActiveTrustedKeyGroups"; +const _ATS = "ActiveTrustedSigners"; +const _Al = "Aliases"; +const _B = "Bucket"; +const _C = "Comment"; +const _CA = "ConnectionAttempts"; +const _CAo = "ConflictingAlias"; +const _CB = "CacheBehavior"; +const _CBa = "CacheBehaviors"; +const _CBo = "CookieBehavior"; +const _CC = "CookiesConfig"; +const _CCo = "CorsConfig"; +const _CDP = "ContinuousDeploymentPolicy"; +const _CDPC = "ContinuousDeploymentPolicyConfig"; +const _CDPI = "ContinuousDeploymentPolicyId"; +const _CDPS = "ContinuousDeploymentPolicySummary"; +const _CDPT = "ContinuousDeploymentPolicyType"; +const _CDR = "CopyDistributionRequest"; +const _CDSHC = "ContinuousDeploymentSingleHeaderConfig"; +const _CDSWC = "ContinuousDeploymentSingleWeightConfig"; +const _CER = "CustomErrorResponse"; +const _CERu = "CustomErrorResponses"; +const _CFDC = "CloudFrontDefaultCertificate"; +const _CFOAIC = "CloudFrontOriginAccessIdentityConfig"; +const _CFOAIS = "CloudFrontOriginAccessIdentitySummary"; +const _CFR = "CreateFunctionRequest"; +const _CH = "CustomHeaders"; +const _CHC = "CustomHeadersConfig"; +const _CKVSR = "CreateKeyValueStoreRequest"; +const _CM = "CachedMethods"; +const _CN = "CookieNames"; +const _CNAME = "CNAME"; +const _COC = "CustomOriginConfig"; +const _CP = "CookiePreference"; +const _CPC = "CachePolicyConfig"; +const _CPCB = "CachePolicyCookieBehavior"; +const _CPCC = "CachePolicyCookiesConfig"; +const _CPHB = "CachePolicyHeaderBehavior"; +const _CPHC = "CachePolicyHeadersConfig"; +const _CPI = "CachePolicyId"; +const _CPQSB = "CachePolicyQueryStringBehavior"; +const _CPQSC = "CachePolicyQueryStringsConfig"; +const _CPS = "CachePolicySummary"; +const _CPa = "CachePolicy"; +const _CR = "CallerReference"; +const _CRLCR = "CreateRealtimeLogConfigRequest"; +const _CS = "CertificateSource"; +const _CSP = "ContentSecurityPolicy"; +const _CT = "ContentType"; +const _CTO = "ContentTypeOptions"; +const _CTP = "ContentTypeProfile"; +const _CTPC = "ContentTypeProfileConfig"; +const _CTPo = "ContentTypeProfiles"; +const _CTo = "CommentType"; +const _CTon = "ConnectionTimeout"; +const _CTr = "CreatedTime"; +const _CTre = "CreateTime"; +const _CU = "ComputeUtilization"; +const _Ce = "Certificate"; +const _Co = "Compress"; +const _Coo = "Cookies"; +const _D = "Description"; +const _DC = "DistributionConfig"; +const _DCB = "DefaultCacheBehavior"; +const _DCWT = "DistributionConfigWithTags"; +const _DI = "DistributionId"; +const _DN = "DomainName"; +const _DNn = "DnsName"; +const _DRLCR = "DeleteRealtimeLogConfigRequest"; +const _DRO = "DefaultRootObject"; +const _DS = "DistributionSummary"; +const _DTTL = "DefaultTTL"; +const _E = "Enabled"; +const _EAEB = "EnableAcceptEncodingBrotli"; +const _EAEG = "EnableAcceptEncodingGzip"; +const _EC = "ErrorCode"; +const _ECMTTL = "ErrorCachingMinTTL"; +const _EE = "EncryptionEntities"; +const _EEn = "EncryptionEntity"; +const _EK = "EncodedKey"; +const _EO = "EventObject"; +const _EP = "EndPoints"; +const _EPn = "EndPoint"; +const _ET = "ETag"; +const _ETv = "EventType"; +const _F = "Fields"; +const _FA = "FunctionAssociations"; +const _FARN = "FunctionARN"; +const _FAu = "FunctionAssociation"; +const _FB = "FunctionBlob"; +const _FC = "FunctionCode"; +const _FCa = "FailoverCriteria"; +const _FCu = "FunctionConfig"; +const _FEL = "FunctionExecutionLogs"; +const _FEM = "FunctionErrorMessage"; +const _FEO = "FunctionEventObject"; +const _FLEC = "FieldLevelEncryptionConfig"; +const _FLEI = "FieldLevelEncryptionId"; +const _FLEPC = "FieldLevelEncryptionProfileConfig"; +const _FLEPS = "FieldLevelEncryptionProfileSummary"; +const _FLES = "FieldLevelEncryptionSummary"; +const _FM = "FunctionMetadata"; +const _FN = "FunctionName"; +const _FO = "FrameOption"; +const _FOL = "FrameOptionsList"; +const _FOr = "FrameOptions"; +const _FOu = "FunctionOutput"; +const _FP = "FieldPatterns"; +const _FPi = "FieldPattern"; +const _FR = "FunctionRuntime"; +const _FS = "FunctionStage"; +const _FSu = "FunctionSummary"; +const _FV = "ForwardedValues"; +const _FWCTIU = "ForwardWhenContentTypeIsUnknown"; +const _FWQAPIU = "ForwardWhenQueryArgProfileIsUnknown"; +const _Fi = "Field"; +const _Fo = "Format"; +const _For = "Forward"; +const _GR = "GeoRestriction"; +const _GRLCR = "GetRealtimeLogConfigRequest"; +const _GRT = "GeoRestrictionType"; +const _H = "Header"; +const _HB = "HeaderBehavior"; +const _HC = "HeadersConfig"; +const _HN = "HeaderName"; +const _HTTPP = "HTTPPort"; +const _HTTPSP = "HTTPSPort"; +const _HV = "HttpVersion"; +const _HVe = "HeaderValue"; +const _He = "Headers"; +const _I = "Integer"; +const _IAMCI = "IAMCertificateId"; +const _IB = "InvalidationBatch"; +const _IBn = "IncludeBody"; +const _IC = "IncludeCookies"; +const _ICPRS = "ICPRecordalStatus"; +const _IIPVE = "IsIPV6Enabled"; +const _IM = "IfMatch"; +const _IPIB = "InProgressInvalidationBatches"; +const _IS = "ImportSource"; +const _IST = "ImportSourceType"; +const _ISn = "IncludeSubdomains"; +const _ISnv = "InvalidationSummary"; +const _ISt = "ItemSelection"; +const _IT = "IsTruncated"; +const _ITTL = "IdleTTL"; +const _Id = "Id"; +const _It = "Items"; +const _K = "Key"; +const _KG = "KeyGroup"; +const _KGC = "KeyGroupConfig"; +const _KGI = "KeyGroupId"; +const _KGS = "KeyGroupSummary"; +const _KPI = "KeyPairId"; +const _KPIe = "KeyPairIds"; +const _KSC = "KinesisStreamConfig"; +const _KVS = "KeyValueStore"; +const _KVSA = "KeyValueStoreAssociations"; +const _KVSARN = "KeyValueStoreARN"; +const _KVSAe = "KeyValueStoreAssociation"; +const _KVSC = "KeyValueStoreComment"; +const _KVSN = "KeyValueStoreName"; +const _L = "Location"; +const _LC = "LoggingConfig"; +const _LDBRLCR = "ListDistributionsByRealtimeLogConfigRequest"; +const _LFA = "LambdaFunctionAssociations"; +const _LFARN = "LambdaFunctionARN"; +const _LFAa = "LambdaFunctionAssociation"; +const _LMT = "LastModifiedTime"; +const _Lo = "Logging"; +const _M = "Marker"; +const _MB = "ModeBlock"; +const _MI = "MaxItems"; +const _MPV = "MinimumProtocolVersion"; +const _MS = "MonitoringSubscription"; +const _MTTL = "MinTTL"; +const _MTTLa = "MaxTTL"; +const _MTTLax = "MaximumTTL"; +const _Me = "Message"; +const _Mem = "Members"; +const _Met = "Method"; +const _N = "Name"; +const _NM = "NextMarker"; +const _O = "Operation"; +const _OACC = "OriginAccessControlConfig"; +const _OACI = "OriginAccessControlId"; +const _OACOT = "OriginAccessControlOriginType"; +const _OACOTr = "OriginAccessControlOriginTypes"; +const _OACS = "OriginAccessControlSummary"; +const _OACSB = "OriginAccessControlSigningBehaviors"; +const _OACSP = "OriginAccessControlSigningProtocols"; +const _OAI = "OriginAccessIdentity"; +const _OCH = "OriginCustomHeader"; +const _OG = "OriginGroups"; +const _OGFC = "OriginGroupFailoverCriteria"; +const _OGM = "OriginGroupMember"; +const _OGMr = "OriginGroupMembers"; +const _OGr = "OriginGroup"; +const _OI = "OriginId"; +const _OKT = "OriginKeepaliveTimeout"; +const _OO = "OriginOverride"; +const _OP = "OriginPath"; +const _OPP = "OriginProtocolPolicy"; +const _ORP = "OriginRequestPolicy"; +const _ORPC = "OriginRequestPolicyConfig"; +const _ORPCB = "OriginRequestPolicyCookieBehavior"; +const _ORPCC = "OriginRequestPolicyCookiesConfig"; +const _ORPHB = "OriginRequestPolicyHeaderBehavior"; +const _ORPHC = "OriginRequestPolicyHeadersConfig"; +const _ORPI = "OriginRequestPolicyId"; +const _ORPQSB = "OriginRequestPolicyQueryStringBehavior"; +const _ORPQSC = "OriginRequestPolicyQueryStringsConfig"; +const _ORPS = "OriginRequestPolicySummary"; +const _ORT = "OriginReadTimeout"; +const _OS = "OriginShield"; +const _OSP = "OriginSslProtocols"; +const _OSR = "OriginShieldRegion"; +const _Or = "Origin"; +const _Ori = "Origins"; +const _Ov = "Override"; +const _P = "Paths"; +const _PC = "PriceClass"; +const _PI = "ProfileId"; +const _PICKAFTO = "ParametersInCacheKeyAndForwardedToOrigin"; +const _PIr = "ProviderId"; +const _PK = "PublicKey"; +const _PKC = "PublicKeyConfig"; +const _PKI = "PublicKeyId"; +const _PKS = "PublicKeySummary"; +const _PP = "PathPattern"; +const _Pa = "Path"; +const _Pr = "Prefix"; +const _Pre = "Preload"; +const _Pro = "Protection"; +const _Q = "Quantity"; +const _QA = "QueryArg"; +const _QAP = "QueryArgProfile"; +const _QAPC = "QueryArgProfileConfig"; +const _QAPu = "QueryArgProfiles"; +const _QS = "QueryStrings"; +const _QSB = "QueryStringBehavior"; +const _QSC = "QueryStringsConfig"; +const _QSCK = "QueryStringCacheKeys"; +const _QSN = "QueryStringNames"; +const _QSu = "QueryString"; +const _R = "Resource"; +const _RARN = "RoleARN"; +const _RC = "ResponseCode"; +const _RHC = "RemoveHeadersConfig"; +const _RHP = "ResponseHeadersPolicy"; +const _RHPACAH = "ResponseHeadersPolicyAccessControlAllowHeaders"; +const _RHPACAM = "ResponseHeadersPolicyAccessControlAllowMethods"; +const _RHPACAMV = "ResponseHeadersPolicyAccessControlAllowMethodsValues"; +const _RHPACAO = "ResponseHeadersPolicyAccessControlAllowOrigins"; +const _RHPACEH = "ResponseHeadersPolicyAccessControlExposeHeaders"; +const _RHPC = "ResponseHeadersPolicyConfig"; +const _RHPCC = "ResponseHeadersPolicyCorsConfig"; +const _RHPCH = "ResponseHeadersPolicyCustomHeader"; +const _RHPCHC = "ResponseHeadersPolicyCustomHeadersConfig"; +const _RHPCSP = "ResponseHeadersPolicyContentSecurityPolicy"; +const _RHPCTO = "ResponseHeadersPolicyContentTypeOptions"; +const _RHPFO = "ResponseHeadersPolicyFrameOptions"; +const _RHPI = "ResponseHeadersPolicyId"; +const _RHPRH = "ResponseHeadersPolicyRemoveHeader"; +const _RHPRHC = "ResponseHeadersPolicyRemoveHeadersConfig"; +const _RHPRP = "ResponseHeadersPolicyReferrerPolicy"; +const _RHPS = "ResponseHeadersPolicySummary"; +const _RHPSHC = "ResponseHeadersPolicySecurityHeadersConfig"; +const _RHPSTHC = "ResponseHeadersPolicyServerTimingHeadersConfig"; +const _RHPSTS = "ResponseHeadersPolicyStrictTransportSecurity"; +const _RHPXSSP = "ResponseHeadersPolicyXSSProtection"; +const _RLC = "RealtimeLogConfig"; +const _RLCA = "RealtimeLogConfigArn"; +const _RLCN = "RealtimeLogConfigName"; +const _RMSC = "RealtimeMetricsSubscriptionConfig"; +const _RMSS = "RealtimeMetricsSubscriptionStatus"; +const _RP = "ReferrerPolicy"; +const _RPL = "ReferrerPolicyList"; +const _RPP = "ResponsePagePath"; +const _RT = "RestrictionType"; +const _RU = "ReportUri"; +const _Re = "Restrictions"; +const _Ru = "Runtime"; +const _S = "Staging"; +const _SARN = "SourceARN"; +const _SARNt = "StreamARN"; +const _SB = "SigningBehavior"; +const _SC = "StatusCodes"; +const _SCUI = "S3CanonicalUserId"; +const _SCt = "StatusCode"; +const _SDC = "StreamingDistributionConfig"; +const _SDCWT = "StreamingDistributionConfigWithTags"; +const _SDDN = "StagingDistributionDnsNames"; +const _SDI = "StagingDistributionId"; +const _SDS = "StreamingDistributionSummary"; +const _SHC = "SecurityHeadersConfig"; +const _SHCi = "SingleHeaderConfig"; +const _SLC = "StreamingLoggingConfig"; +const _SO = "S3Origin"; +const _SOC = "S3OriginConfig"; +const _SP = "SigningProtocol"; +const _SPs = "SslProtocol"; +const _SR = "SamplingRate"; +const _SS = "SmoothStreaming"; +const _SSC = "SessionStickinessConfig"; +const _SSLSM = "SSLSupportMethod"; +const _ST = "StreamType"; +const _STHC = "ServerTimingHeadersConfig"; +const _STS = "StrictTransportSecurity"; +const _STo = "SourceType"; +const _SWC = "SingleWeightConfig"; +const _Si = "Signer"; +const _St = "Stage"; +const _Sta = "Status"; +const _T = "Type"; +const _TC = "TrafficConfig"; +const _TFR = "TestFunctionRequest"; +const _TK = "TagKey"; +const _TKG = "TrustedKeyGroups"; +const _TKa = "TagKeys"; +const _TOI = "TargetOriginId"; +const _TS = "TrustedSigners"; +const _TV = "TagValue"; +const _Ta = "Tags"; +const _Tag = "Tag"; +const _UFR = "UpdateFunctionRequest"; +const _UKVSR = "UpdateKeyValueStoreRequest"; +const _URLCR = "UpdateRealtimeLogConfigRequest"; +const _V = "Value"; +const _VC = "ViewerCertificate"; +const _VPP = "ViewerProtocolPolicy"; +const _W = "Weight"; +const _WACLI = "WebACLId"; +const _WN = "WhitelistedNames"; +const _WT = "WithTags"; +const _XSSP = "XSSProtection"; +const _b = "boolean"; +const _ct = "content-type"; +const _e = "etag"; +const _et = "ettag"; +const _f = "float"; +const _i = "integer"; +const _im = "if-match"; +const _l = "long"; +const _lo = "location"; +const _m = "member"; +const _s = "staging"; +const _sST = "sensitiveStringType"; +const _st = "string"; +const _ve = ''; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloudsearch-domain/package.json b/clients/client-cloudsearch-domain/package.json index fb67f1bee32f..c4160d8b0042 100644 --- a/clients/client-cloudsearch-domain/package.json +++ b/clients/client-cloudsearch-domain/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-cloudsearch-domain/src/models/models_0.ts b/clients/client-cloudsearch-domain/src/models/models_0.ts index 692fde51e59d..7175f2dfee95 100644 --- a/clients/client-cloudsearch-domain/src/models/models_0.ts +++ b/clients/client-cloudsearch-domain/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { CloudSearchDomainServiceException as __BaseException } from "./CloudSearchDomainServiceException"; diff --git a/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts b/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts index 93ce2e4c7df6..6f6eecdaa180 100644 --- a/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts +++ b/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -30,38 +31,30 @@ import { DocumentServiceException, FieldStats, SearchException } from "../models * serializeAws_restJson1SearchCommand */ export const se_SearchCommand = async (input: SearchCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-01-01/search"; + b.bp("/2013-01-01/search"); const query: any = map({ - format: [, "sdk"], - pretty: [, "true"], - cursor: [, input.cursor!], - expr: [, input.expr!], - facet: [, input.facet!], - fq: [, input.filterQuery!], - highlight: [, input.highlight!], - partial: [() => input.partial !== void 0, () => input.partial!.toString()], - q: [, __expectNonNull(input.query!, `query`)], - "q.options": [, input.queryOptions!], - "q.parser": [, input.queryParser!], - return: [, input.return!], - size: [() => input.size !== void 0, () => input.size!.toString()], - sort: [, input.sort!], - start: [() => input.start !== void 0, () => input.start!.toString()], - stats: [, input.stats!], + [_f]: [, "sdk"], + [_p]: [, "true"], + [_c]: [, input[_c]!], + [_e]: [, input[_e]!], + [_fa]: [, input[_fa]!], + [_fq]: [, input[_fQ]!], + [_h]: [, input[_h]!], + [_pa]: [() => input.partial !== void 0, () => input[_pa]!.toString()], + [_q_]: [, __expectNonNull(input[_q]!, `query`)], + [_qo]: [, input[_qO]!], + [_qp]: [, input[_qP]!], + [_r]: [, input[_r]!], + [_s]: [() => input.size !== void 0, () => input[_s]!.toString()], + [_so]: [, input[_so]!], + [_st]: [() => input.start !== void 0, () => input[_st]!.toString()], + [_sta]: [, input[_sta]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -71,27 +64,19 @@ export const se_SuggestCommand = async ( input: SuggestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-01-01/suggest"; + b.bp("/2013-01-01/suggest"); const query: any = map({ - format: [, "sdk"], - pretty: [, "true"], - q: [, __expectNonNull(input.query!, `query`)], - suggester: [, __expectNonNull(input.suggester!, `suggester`)], - size: [() => input.size !== void 0, () => input.size!.toString()], + [_f]: [, "sdk"], + [_p]: [, "true"], + [_q_]: [, __expectNonNull(input[_q]!, `query`)], + [_su]: [, __expectNonNull(input[_su]!, `suggester`)], + [_s]: [() => input.size !== void 0, () => input[_s]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -101,29 +86,20 @@ export const se_UploadDocumentsCommand = async ( input: UploadDocumentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cT]! || "application/octet-stream", }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-01-01/documents/batch"; + b.bp("/2013-01-01/documents/batch"); const query: any = map({ - format: [, "sdk"], + [_f]: [, "sdk"], }); let body: any; if (input.documents !== undefined) { body = input.documents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -394,6 +370,30 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _c = "cursor"; +const _cT = "contentType"; +const _ct = "content-type"; +const _e = "expr"; +const _f = "format"; +const _fQ = "filterQuery"; +const _fa = "facet"; +const _fq = "fq"; +const _h = "highlight"; +const _p = "pretty"; +const _pa = "partial"; +const _q = "query"; +const _qO = "queryOptions"; +const _qP = "queryParser"; +const _q_ = "q"; +const _qo = "q.options"; +const _qp = "q.parser"; +const _r = "return"; +const _s = "size"; +const _so = "sort"; +const _st = "start"; +const _sta = "stats"; +const _su = "suggester"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloudsearch/src/protocols/Aws_query.ts b/clients/client-cloudsearch/src/protocols/Aws_query.ts index a6fc23b09ac5..d560332b3825 100644 --- a/clients/client-cloudsearch/src/protocols/Aws_query.ts +++ b/clients/client-cloudsearch/src/protocols/Aws_query.ts @@ -194,8 +194,8 @@ export const se_BuildSuggestersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BuildSuggestersRequest(input, context), - Action: "BuildSuggesters", - Version: "2013-01-01", + [_A]: _BS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -211,8 +211,8 @@ export const se_CreateDomainCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDomainRequest(input, context), - Action: "CreateDomain", - Version: "2013-01-01", + [_A]: _CD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -228,8 +228,8 @@ export const se_DefineAnalysisSchemeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DefineAnalysisSchemeRequest(input, context), - Action: "DefineAnalysisScheme", - Version: "2013-01-01", + [_A]: _DAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -245,8 +245,8 @@ export const se_DefineExpressionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DefineExpressionRequest(input, context), - Action: "DefineExpression", - Version: "2013-01-01", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -262,8 +262,8 @@ export const se_DefineIndexFieldCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DefineIndexFieldRequest(input, context), - Action: "DefineIndexField", - Version: "2013-01-01", + [_A]: _DIF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -279,8 +279,8 @@ export const se_DefineSuggesterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DefineSuggesterRequest(input, context), - Action: "DefineSuggester", - Version: "2013-01-01", + [_A]: _DS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -296,8 +296,8 @@ export const se_DeleteAnalysisSchemeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAnalysisSchemeRequest(input, context), - Action: "DeleteAnalysisScheme", - Version: "2013-01-01", + [_A]: _DASe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -313,8 +313,8 @@ export const se_DeleteDomainCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDomainRequest(input, context), - Action: "DeleteDomain", - Version: "2013-01-01", + [_A]: _DD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -330,8 +330,8 @@ export const se_DeleteExpressionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteExpressionRequest(input, context), - Action: "DeleteExpression", - Version: "2013-01-01", + [_A]: _DEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -347,8 +347,8 @@ export const se_DeleteIndexFieldCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIndexFieldRequest(input, context), - Action: "DeleteIndexField", - Version: "2013-01-01", + [_A]: _DIFe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -364,8 +364,8 @@ export const se_DeleteSuggesterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSuggesterRequest(input, context), - Action: "DeleteSuggester", - Version: "2013-01-01", + [_A]: _DSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -381,8 +381,8 @@ export const se_DescribeAnalysisSchemesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAnalysisSchemesRequest(input, context), - Action: "DescribeAnalysisSchemes", - Version: "2013-01-01", + [_A]: _DASes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -398,8 +398,8 @@ export const se_DescribeAvailabilityOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAvailabilityOptionsRequest(input, context), - Action: "DescribeAvailabilityOptions", - Version: "2013-01-01", + [_A]: _DAO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -415,8 +415,8 @@ export const se_DescribeDomainEndpointOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDomainEndpointOptionsRequest(input, context), - Action: "DescribeDomainEndpointOptions", - Version: "2013-01-01", + [_A]: _DDEO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -432,8 +432,8 @@ export const se_DescribeDomainsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDomainsRequest(input, context), - Action: "DescribeDomains", - Version: "2013-01-01", + [_A]: _DDe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -449,8 +449,8 @@ export const se_DescribeExpressionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeExpressionsRequest(input, context), - Action: "DescribeExpressions", - Version: "2013-01-01", + [_A]: _DEes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -466,8 +466,8 @@ export const se_DescribeIndexFieldsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIndexFieldsRequest(input, context), - Action: "DescribeIndexFields", - Version: "2013-01-01", + [_A]: _DIFes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -483,8 +483,8 @@ export const se_DescribeScalingParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeScalingParametersRequest(input, context), - Action: "DescribeScalingParameters", - Version: "2013-01-01", + [_A]: _DSP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -500,8 +500,8 @@ export const se_DescribeServiceAccessPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeServiceAccessPoliciesRequest(input, context), - Action: "DescribeServiceAccessPolicies", - Version: "2013-01-01", + [_A]: _DSAP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -517,8 +517,8 @@ export const se_DescribeSuggestersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSuggestersRequest(input, context), - Action: "DescribeSuggesters", - Version: "2013-01-01", + [_A]: _DSes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -534,8 +534,8 @@ export const se_IndexDocumentsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_IndexDocumentsRequest(input, context), - Action: "IndexDocuments", - Version: "2013-01-01", + [_A]: _ID, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -549,8 +549,8 @@ export const se_ListDomainNamesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "ListDomainNames", - Version: "2013-01-01", + [_A]: _LDN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -566,8 +566,8 @@ export const se_UpdateAvailabilityOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateAvailabilityOptionsRequest(input, context), - Action: "UpdateAvailabilityOptions", - Version: "2013-01-01", + [_A]: _UAO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -583,8 +583,8 @@ export const se_UpdateDomainEndpointOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateDomainEndpointOptionsRequest(input, context), - Action: "UpdateDomainEndpointOptions", - Version: "2013-01-01", + [_A]: _UDEO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -600,8 +600,8 @@ export const se_UpdateScalingParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateScalingParametersRequest(input, context), - Action: "UpdateScalingParameters", - Version: "2013-01-01", + [_A]: _USP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -617,8 +617,8 @@ export const se_UpdateServiceAccessPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateServiceAccessPoliciesRequest(input, context), - Action: "UpdateServiceAccessPolicies", - Version: "2013-01-01", + [_A]: _USAP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2216,20 +2216,20 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const se_AnalysisOptions = (input: AnalysisOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.Synonyms != null) { - entries["Synonyms"] = input.Synonyms; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Stopwords != null) { - entries["Stopwords"] = input.Stopwords; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.StemmingDictionary != null) { - entries["StemmingDictionary"] = input.StemmingDictionary; + if (input[_SD] != null) { + entries[_SD] = input[_SD]; } - if (input.JapaneseTokenizationDictionary != null) { - entries["JapaneseTokenizationDictionary"] = input.JapaneseTokenizationDictionary; + if (input[_JTD] != null) { + entries[_JTD] = input[_JTD]; } - if (input.AlgorithmicStemming != null) { - entries["AlgorithmicStemming"] = input.AlgorithmicStemming; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } return entries; }; @@ -2239,14 +2239,14 @@ const se_AnalysisOptions = (input: AnalysisOptions, context: __SerdeContext): an */ const se_AnalysisScheme = (input: AnalysisScheme, context: __SerdeContext): any => { const entries: any = {}; - if (input.AnalysisSchemeName != null) { - entries["AnalysisSchemeName"] = input.AnalysisSchemeName; + if (input[_ASN] != null) { + entries[_ASN] = input[_ASN]; } - if (input.AnalysisSchemeLanguage != null) { - entries["AnalysisSchemeLanguage"] = input.AnalysisSchemeLanguage; + if (input[_ASL] != null) { + entries[_ASL] = input[_ASL]; } - if (input.AnalysisOptions != null) { - const memberEntries = se_AnalysisOptions(input.AnalysisOptions, context); + if (input[_AO] != null) { + const memberEntries = se_AnalysisOptions(input[_AO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AnalysisOptions.${key}`; entries[loc] = value; @@ -2260,8 +2260,8 @@ const se_AnalysisScheme = (input: AnalysisScheme, context: __SerdeContext): any */ const se_BuildSuggestersRequest = (input: BuildSuggestersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } return entries; }; @@ -2271,8 +2271,8 @@ const se_BuildSuggestersRequest = (input: BuildSuggestersRequest, context: __Ser */ const se_CreateDomainRequest = (input: CreateDomainRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } return entries; }; @@ -2282,20 +2282,20 @@ const se_CreateDomainRequest = (input: CreateDomainRequest, context: __SerdeCont */ const se_DateArrayOptions = (input: DateArrayOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceFields != null) { - entries["SourceFields"] = input.SourceFields; + if (input[_SF] != null) { + entries[_SF] = input[_SF]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } return entries; }; @@ -2305,23 +2305,23 @@ const se_DateArrayOptions = (input: DateArrayOptions, context: __SerdeContext): */ const se_DateOptions = (input: DateOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceField != null) { - entries["SourceField"] = input.SourceField; + if (input[_SFo] != null) { + entries[_SFo] = input[_SFo]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } - if (input.SortEnabled != null) { - entries["SortEnabled"] = input.SortEnabled; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } return entries; }; @@ -2331,11 +2331,11 @@ const se_DateOptions = (input: DateOptions, context: __SerdeContext): any => { */ const se_DefineAnalysisSchemeRequest = (input: DefineAnalysisSchemeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.AnalysisScheme != null) { - const memberEntries = se_AnalysisScheme(input.AnalysisScheme, context); + if (input[_ASn] != null) { + const memberEntries = se_AnalysisScheme(input[_ASn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AnalysisScheme.${key}`; entries[loc] = value; @@ -2349,11 +2349,11 @@ const se_DefineAnalysisSchemeRequest = (input: DefineAnalysisSchemeRequest, cont */ const se_DefineExpressionRequest = (input: DefineExpressionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Expression != null) { - const memberEntries = se_Expression(input.Expression, context); + if (input[_E] != null) { + const memberEntries = se_Expression(input[_E], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Expression.${key}`; entries[loc] = value; @@ -2367,11 +2367,11 @@ const se_DefineExpressionRequest = (input: DefineExpressionRequest, context: __S */ const se_DefineIndexFieldRequest = (input: DefineIndexFieldRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.IndexField != null) { - const memberEntries = se_IndexField(input.IndexField, context); + if (input[_IF] != null) { + const memberEntries = se_IndexField(input[_IF], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IndexField.${key}`; entries[loc] = value; @@ -2385,11 +2385,11 @@ const se_DefineIndexFieldRequest = (input: DefineIndexFieldRequest, context: __S */ const se_DefineSuggesterRequest = (input: DefineSuggesterRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Suggester != null) { - const memberEntries = se_Suggester(input.Suggester, context); + if (input[_Su] != null) { + const memberEntries = se_Suggester(input[_Su], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Suggester.${key}`; entries[loc] = value; @@ -2403,11 +2403,11 @@ const se_DefineSuggesterRequest = (input: DefineSuggesterRequest, context: __Ser */ const se_DeleteAnalysisSchemeRequest = (input: DeleteAnalysisSchemeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.AnalysisSchemeName != null) { - entries["AnalysisSchemeName"] = input.AnalysisSchemeName; + if (input[_ASN] != null) { + entries[_ASN] = input[_ASN]; } return entries; }; @@ -2417,8 +2417,8 @@ const se_DeleteAnalysisSchemeRequest = (input: DeleteAnalysisSchemeRequest, cont */ const se_DeleteDomainRequest = (input: DeleteDomainRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } return entries; }; @@ -2428,11 +2428,11 @@ const se_DeleteDomainRequest = (input: DeleteDomainRequest, context: __SerdeCont */ const se_DeleteExpressionRequest = (input: DeleteExpressionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.ExpressionName != null) { - entries["ExpressionName"] = input.ExpressionName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -2442,11 +2442,11 @@ const se_DeleteExpressionRequest = (input: DeleteExpressionRequest, context: __S */ const se_DeleteIndexFieldRequest = (input: DeleteIndexFieldRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.IndexFieldName != null) { - entries["IndexFieldName"] = input.IndexFieldName; + if (input[_IFN] != null) { + entries[_IFN] = input[_IFN]; } return entries; }; @@ -2456,11 +2456,11 @@ const se_DeleteIndexFieldRequest = (input: DeleteIndexFieldRequest, context: __S */ const se_DeleteSuggesterRequest = (input: DeleteSuggesterRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.SuggesterName != null) { - entries["SuggesterName"] = input.SuggesterName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -2470,12 +2470,12 @@ const se_DeleteSuggesterRequest = (input: DeleteSuggesterRequest, context: __Ser */ const se_DescribeAnalysisSchemesRequest = (input: DescribeAnalysisSchemesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.AnalysisSchemeNames != null) { - const memberEntries = se_StandardNameList(input.AnalysisSchemeNames, context); - if (input.AnalysisSchemeNames?.length === 0) { + if (input[_ASNn] != null) { + const memberEntries = se_StandardNameList(input[_ASNn], context); + if (input[_ASNn]?.length === 0) { entries.AnalysisSchemeNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2483,8 +2483,8 @@ const se_DescribeAnalysisSchemesRequest = (input: DescribeAnalysisSchemesRequest entries[loc] = value; }); } - if (input.Deployed != null) { - entries["Deployed"] = input.Deployed; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -2497,11 +2497,11 @@ const se_DescribeAvailabilityOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Deployed != null) { - entries["Deployed"] = input.Deployed; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -2514,11 +2514,11 @@ const se_DescribeDomainEndpointOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Deployed != null) { - entries["Deployed"] = input.Deployed; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -2528,9 +2528,9 @@ const se_DescribeDomainEndpointOptionsRequest = ( */ const se_DescribeDomainsRequest = (input: DescribeDomainsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainNames != null) { - const memberEntries = se_DomainNameList(input.DomainNames, context); - if (input.DomainNames?.length === 0) { + if (input[_DNo] != null) { + const memberEntries = se_DomainNameList(input[_DNo], context); + if (input[_DNo]?.length === 0) { entries.DomainNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2546,12 +2546,12 @@ const se_DescribeDomainsRequest = (input: DescribeDomainsRequest, context: __Ser */ const se_DescribeExpressionsRequest = (input: DescribeExpressionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.ExpressionNames != null) { - const memberEntries = se_StandardNameList(input.ExpressionNames, context); - if (input.ExpressionNames?.length === 0) { + if (input[_ENx] != null) { + const memberEntries = se_StandardNameList(input[_ENx], context); + if (input[_ENx]?.length === 0) { entries.ExpressionNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2559,8 +2559,8 @@ const se_DescribeExpressionsRequest = (input: DescribeExpressionsRequest, contex entries[loc] = value; }); } - if (input.Deployed != null) { - entries["Deployed"] = input.Deployed; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -2570,12 +2570,12 @@ const se_DescribeExpressionsRequest = (input: DescribeExpressionsRequest, contex */ const se_DescribeIndexFieldsRequest = (input: DescribeIndexFieldsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.FieldNames != null) { - const memberEntries = se_DynamicFieldNameList(input.FieldNames, context); - if (input.FieldNames?.length === 0) { + if (input[_FN] != null) { + const memberEntries = se_DynamicFieldNameList(input[_FN], context); + if (input[_FN]?.length === 0) { entries.FieldNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2583,8 +2583,8 @@ const se_DescribeIndexFieldsRequest = (input: DescribeIndexFieldsRequest, contex entries[loc] = value; }); } - if (input.Deployed != null) { - entries["Deployed"] = input.Deployed; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -2594,8 +2594,8 @@ const se_DescribeIndexFieldsRequest = (input: DescribeIndexFieldsRequest, contex */ const se_DescribeScalingParametersRequest = (input: DescribeScalingParametersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } return entries; }; @@ -2608,11 +2608,11 @@ const se_DescribeServiceAccessPoliciesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Deployed != null) { - entries["Deployed"] = input.Deployed; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -2622,12 +2622,12 @@ const se_DescribeServiceAccessPoliciesRequest = ( */ const se_DescribeSuggestersRequest = (input: DescribeSuggestersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.SuggesterNames != null) { - const memberEntries = se_StandardNameList(input.SuggesterNames, context); - if (input.SuggesterNames?.length === 0) { + if (input[_SNu] != null) { + const memberEntries = se_StandardNameList(input[_SNu], context); + if (input[_SNu]?.length === 0) { entries.SuggesterNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2635,8 +2635,8 @@ const se_DescribeSuggestersRequest = (input: DescribeSuggestersRequest, context: entries[loc] = value; }); } - if (input.Deployed != null) { - entries["Deployed"] = input.Deployed; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -2646,14 +2646,14 @@ const se_DescribeSuggestersRequest = (input: DescribeSuggestersRequest, context: */ const se_DocumentSuggesterOptions = (input: DocumentSuggesterOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceField != null) { - entries["SourceField"] = input.SourceField; + if (input[_SFo] != null) { + entries[_SFo] = input[_SFo]; } - if (input.FuzzyMatching != null) { - entries["FuzzyMatching"] = input.FuzzyMatching; + if (input[_FM] != null) { + entries[_FM] = input[_FM]; } - if (input.SortExpression != null) { - entries["SortExpression"] = input.SortExpression; + if (input[_SEor] != null) { + entries[_SEor] = input[_SEor]; } return entries; }; @@ -2663,11 +2663,11 @@ const se_DocumentSuggesterOptions = (input: DocumentSuggesterOptions, context: _ */ const se_DomainEndpointOptions = (input: DomainEndpointOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnforceHTTPS != null) { - entries["EnforceHTTPS"] = input.EnforceHTTPS; + if (input[_EHTTPS] != null) { + entries[_EHTTPS] = input[_EHTTPS]; } - if (input.TLSSecurityPolicy != null) { - entries["TLSSecurityPolicy"] = input.TLSSecurityPolicy; + if (input[_TLSSP] != null) { + entries[_TLSSP] = input[_TLSSP]; } return entries; }; @@ -2693,20 +2693,20 @@ const se_DomainNameList = (input: string[], context: __SerdeContext): any => { */ const se_DoubleArrayOptions = (input: DoubleArrayOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = __serializeFloat(input.DefaultValue); + if (input[_DV] != null) { + entries[_DV] = __serializeFloat(input[_DV]); } - if (input.SourceFields != null) { - entries["SourceFields"] = input.SourceFields; + if (input[_SF] != null) { + entries[_SF] = input[_SF]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } return entries; }; @@ -2716,23 +2716,23 @@ const se_DoubleArrayOptions = (input: DoubleArrayOptions, context: __SerdeContex */ const se_DoubleOptions = (input: DoubleOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = __serializeFloat(input.DefaultValue); + if (input[_DV] != null) { + entries[_DV] = __serializeFloat(input[_DV]); } - if (input.SourceField != null) { - entries["SourceField"] = input.SourceField; + if (input[_SFo] != null) { + entries[_SFo] = input[_SFo]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } - if (input.SortEnabled != null) { - entries["SortEnabled"] = input.SortEnabled; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } return entries; }; @@ -2758,11 +2758,11 @@ const se_DynamicFieldNameList = (input: string[], context: __SerdeContext): any */ const se_Expression = (input: Expression, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExpressionName != null) { - entries["ExpressionName"] = input.ExpressionName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.ExpressionValue != null) { - entries["ExpressionValue"] = input.ExpressionValue; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } return entries; }; @@ -2772,8 +2772,8 @@ const se_Expression = (input: Expression, context: __SerdeContext): any => { */ const se_IndexDocumentsRequest = (input: IndexDocumentsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } return entries; }; @@ -2783,84 +2783,84 @@ const se_IndexDocumentsRequest = (input: IndexDocumentsRequest, context: __Serde */ const se_IndexField = (input: IndexField, context: __SerdeContext): any => { const entries: any = {}; - if (input.IndexFieldName != null) { - entries["IndexFieldName"] = input.IndexFieldName; + if (input[_IFN] != null) { + entries[_IFN] = input[_IFN]; } - if (input.IndexFieldType != null) { - entries["IndexFieldType"] = input.IndexFieldType; + if (input[_IFT] != null) { + entries[_IFT] = input[_IFT]; } - if (input.IntOptions != null) { - const memberEntries = se_IntOptions(input.IntOptions, context); + if (input[_IO] != null) { + const memberEntries = se_IntOptions(input[_IO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IntOptions.${key}`; entries[loc] = value; }); } - if (input.DoubleOptions != null) { - const memberEntries = se_DoubleOptions(input.DoubleOptions, context); + if (input[_DO] != null) { + const memberEntries = se_DoubleOptions(input[_DO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DoubleOptions.${key}`; entries[loc] = value; }); } - if (input.LiteralOptions != null) { - const memberEntries = se_LiteralOptions(input.LiteralOptions, context); + if (input[_LO] != null) { + const memberEntries = se_LiteralOptions(input[_LO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LiteralOptions.${key}`; entries[loc] = value; }); } - if (input.TextOptions != null) { - const memberEntries = se_TextOptions(input.TextOptions, context); + if (input[_TO] != null) { + const memberEntries = se_TextOptions(input[_TO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TextOptions.${key}`; entries[loc] = value; }); } - if (input.DateOptions != null) { - const memberEntries = se_DateOptions(input.DateOptions, context); + if (input[_DOa] != null) { + const memberEntries = se_DateOptions(input[_DOa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DateOptions.${key}`; entries[loc] = value; }); } - if (input.LatLonOptions != null) { - const memberEntries = se_LatLonOptions(input.LatLonOptions, context); + if (input[_LLO] != null) { + const memberEntries = se_LatLonOptions(input[_LLO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LatLonOptions.${key}`; entries[loc] = value; }); } - if (input.IntArrayOptions != null) { - const memberEntries = se_IntArrayOptions(input.IntArrayOptions, context); + if (input[_IAO] != null) { + const memberEntries = se_IntArrayOptions(input[_IAO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IntArrayOptions.${key}`; entries[loc] = value; }); } - if (input.DoubleArrayOptions != null) { - const memberEntries = se_DoubleArrayOptions(input.DoubleArrayOptions, context); + if (input[_DAOo] != null) { + const memberEntries = se_DoubleArrayOptions(input[_DAOo], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DoubleArrayOptions.${key}`; entries[loc] = value; }); } - if (input.LiteralArrayOptions != null) { - const memberEntries = se_LiteralArrayOptions(input.LiteralArrayOptions, context); + if (input[_LAO] != null) { + const memberEntries = se_LiteralArrayOptions(input[_LAO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LiteralArrayOptions.${key}`; entries[loc] = value; }); } - if (input.TextArrayOptions != null) { - const memberEntries = se_TextArrayOptions(input.TextArrayOptions, context); + if (input[_TAO] != null) { + const memberEntries = se_TextArrayOptions(input[_TAO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TextArrayOptions.${key}`; entries[loc] = value; }); } - if (input.DateArrayOptions != null) { - const memberEntries = se_DateArrayOptions(input.DateArrayOptions, context); + if (input[_DAOa] != null) { + const memberEntries = se_DateArrayOptions(input[_DAOa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DateArrayOptions.${key}`; entries[loc] = value; @@ -2874,20 +2874,20 @@ const se_IndexField = (input: IndexField, context: __SerdeContext): any => { */ const se_IntArrayOptions = (input: IntArrayOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceFields != null) { - entries["SourceFields"] = input.SourceFields; + if (input[_SF] != null) { + entries[_SF] = input[_SF]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } return entries; }; @@ -2897,23 +2897,23 @@ const se_IntArrayOptions = (input: IntArrayOptions, context: __SerdeContext): an */ const se_IntOptions = (input: IntOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceField != null) { - entries["SourceField"] = input.SourceField; + if (input[_SFo] != null) { + entries[_SFo] = input[_SFo]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } - if (input.SortEnabled != null) { - entries["SortEnabled"] = input.SortEnabled; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } return entries; }; @@ -2923,23 +2923,23 @@ const se_IntOptions = (input: IntOptions, context: __SerdeContext): any => { */ const se_LatLonOptions = (input: LatLonOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceField != null) { - entries["SourceField"] = input.SourceField; + if (input[_SFo] != null) { + entries[_SFo] = input[_SFo]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } - if (input.SortEnabled != null) { - entries["SortEnabled"] = input.SortEnabled; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } return entries; }; @@ -2949,20 +2949,20 @@ const se_LatLonOptions = (input: LatLonOptions, context: __SerdeContext): any => */ const se_LiteralArrayOptions = (input: LiteralArrayOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceFields != null) { - entries["SourceFields"] = input.SourceFields; + if (input[_SF] != null) { + entries[_SF] = input[_SF]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } return entries; }; @@ -2972,23 +2972,23 @@ const se_LiteralArrayOptions = (input: LiteralArrayOptions, context: __SerdeCont */ const se_LiteralOptions = (input: LiteralOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceField != null) { - entries["SourceField"] = input.SourceField; + if (input[_SFo] != null) { + entries[_SFo] = input[_SFo]; } - if (input.FacetEnabled != null) { - entries["FacetEnabled"] = input.FacetEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.SearchEnabled != null) { - entries["SearchEnabled"] = input.SearchEnabled; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } - if (input.SortEnabled != null) { - entries["SortEnabled"] = input.SortEnabled; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } return entries; }; @@ -2998,14 +2998,14 @@ const se_LiteralOptions = (input: LiteralOptions, context: __SerdeContext): any */ const se_ScalingParameters = (input: ScalingParameters, context: __SerdeContext): any => { const entries: any = {}; - if (input.DesiredInstanceType != null) { - entries["DesiredInstanceType"] = input.DesiredInstanceType; + if (input[_DIT] != null) { + entries[_DIT] = input[_DIT]; } - if (input.DesiredReplicationCount != null) { - entries["DesiredReplicationCount"] = input.DesiredReplicationCount; + if (input[_DRC] != null) { + entries[_DRC] = input[_DRC]; } - if (input.DesiredPartitionCount != null) { - entries["DesiredPartitionCount"] = input.DesiredPartitionCount; + if (input[_DPC] != null) { + entries[_DPC] = input[_DPC]; } return entries; }; @@ -3031,11 +3031,11 @@ const se_StandardNameList = (input: string[], context: __SerdeContext): any => { */ const se_Suggester = (input: Suggester, context: __SerdeContext): any => { const entries: any = {}; - if (input.SuggesterName != null) { - entries["SuggesterName"] = input.SuggesterName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.DocumentSuggesterOptions != null) { - const memberEntries = se_DocumentSuggesterOptions(input.DocumentSuggesterOptions, context); + if (input[_DSO] != null) { + const memberEntries = se_DocumentSuggesterOptions(input[_DSO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DocumentSuggesterOptions.${key}`; entries[loc] = value; @@ -3049,20 +3049,20 @@ const se_Suggester = (input: Suggester, context: __SerdeContext): any => { */ const se_TextArrayOptions = (input: TextArrayOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceFields != null) { - entries["SourceFields"] = input.SourceFields; + if (input[_SF] != null) { + entries[_SF] = input[_SF]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } - if (input.HighlightEnabled != null) { - entries["HighlightEnabled"] = input.HighlightEnabled; + if (input[_HE] != null) { + entries[_HE] = input[_HE]; } - if (input.AnalysisScheme != null) { - entries["AnalysisScheme"] = input.AnalysisScheme; + if (input[_ASn] != null) { + entries[_ASn] = input[_ASn]; } return entries; }; @@ -3072,23 +3072,23 @@ const se_TextArrayOptions = (input: TextArrayOptions, context: __SerdeContext): */ const se_TextOptions = (input: TextOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.SourceField != null) { - entries["SourceField"] = input.SourceField; + if (input[_SFo] != null) { + entries[_SFo] = input[_SFo]; } - if (input.ReturnEnabled != null) { - entries["ReturnEnabled"] = input.ReturnEnabled; + if (input[_RE] != null) { + entries[_RE] = input[_RE]; } - if (input.SortEnabled != null) { - entries["SortEnabled"] = input.SortEnabled; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } - if (input.HighlightEnabled != null) { - entries["HighlightEnabled"] = input.HighlightEnabled; + if (input[_HE] != null) { + entries[_HE] = input[_HE]; } - if (input.AnalysisScheme != null) { - entries["AnalysisScheme"] = input.AnalysisScheme; + if (input[_ASn] != null) { + entries[_ASn] = input[_ASn]; } return entries; }; @@ -3098,11 +3098,11 @@ const se_TextOptions = (input: TextOptions, context: __SerdeContext): any => { */ const se_UpdateAvailabilityOptionsRequest = (input: UpdateAvailabilityOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } return entries; }; @@ -3115,11 +3115,11 @@ const se_UpdateDomainEndpointOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.DomainEndpointOptions != null) { - const memberEntries = se_DomainEndpointOptions(input.DomainEndpointOptions, context); + if (input[_DEO] != null) { + const memberEntries = se_DomainEndpointOptions(input[_DEO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DomainEndpointOptions.${key}`; entries[loc] = value; @@ -3133,11 +3133,11 @@ const se_UpdateDomainEndpointOptionsRequest = ( */ const se_UpdateScalingParametersRequest = (input: UpdateScalingParametersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.ScalingParameters != null) { - const memberEntries = se_ScalingParameters(input.ScalingParameters, context); + if (input[_SP] != null) { + const memberEntries = se_ScalingParameters(input[_SP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ScalingParameters.${key}`; entries[loc] = value; @@ -3154,11 +3154,11 @@ const se_UpdateServiceAccessPoliciesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.AccessPolicies != null) { - entries["AccessPolicies"] = input.AccessPolicies; + if (input[_AP] != null) { + entries[_AP] = input[_AP]; } return entries; }; @@ -3168,11 +3168,11 @@ const se_UpdateServiceAccessPoliciesRequest = ( */ const de_AccessPoliciesStatus = (output: any, context: __SerdeContext): AccessPoliciesStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = __expectString(output["Options"]); + if (output[_O] != null) { + contents[_O] = __expectString(output[_O]); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -3182,20 +3182,20 @@ const de_AccessPoliciesStatus = (output: any, context: __SerdeContext): AccessPo */ const de_AnalysisOptions = (output: any, context: __SerdeContext): AnalysisOptions => { const contents: any = {}; - if (output["Synonyms"] !== undefined) { - contents.Synonyms = __expectString(output["Synonyms"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Stopwords"] !== undefined) { - contents.Stopwords = __expectString(output["Stopwords"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["StemmingDictionary"] !== undefined) { - contents.StemmingDictionary = __expectString(output["StemmingDictionary"]); + if (output[_SD] != null) { + contents[_SD] = __expectString(output[_SD]); } - if (output["JapaneseTokenizationDictionary"] !== undefined) { - contents.JapaneseTokenizationDictionary = __expectString(output["JapaneseTokenizationDictionary"]); + if (output[_JTD] != null) { + contents[_JTD] = __expectString(output[_JTD]); } - if (output["AlgorithmicStemming"] !== undefined) { - contents.AlgorithmicStemming = __expectString(output["AlgorithmicStemming"]); + if (output[_AS] != null) { + contents[_AS] = __expectString(output[_AS]); } return contents; }; @@ -3205,14 +3205,14 @@ const de_AnalysisOptions = (output: any, context: __SerdeContext): AnalysisOptio */ const de_AnalysisScheme = (output: any, context: __SerdeContext): AnalysisScheme => { const contents: any = {}; - if (output["AnalysisSchemeName"] !== undefined) { - contents.AnalysisSchemeName = __expectString(output["AnalysisSchemeName"]); + if (output[_ASN] != null) { + contents[_ASN] = __expectString(output[_ASN]); } - if (output["AnalysisSchemeLanguage"] !== undefined) { - contents.AnalysisSchemeLanguage = __expectString(output["AnalysisSchemeLanguage"]); + if (output[_ASL] != null) { + contents[_ASL] = __expectString(output[_ASL]); } - if (output["AnalysisOptions"] !== undefined) { - contents.AnalysisOptions = de_AnalysisOptions(output["AnalysisOptions"], context); + if (output[_AO] != null) { + contents[_AO] = de_AnalysisOptions(output[_AO], context); } return contents; }; @@ -3222,11 +3222,11 @@ const de_AnalysisScheme = (output: any, context: __SerdeContext): AnalysisScheme */ const de_AnalysisSchemeStatus = (output: any, context: __SerdeContext): AnalysisSchemeStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = de_AnalysisScheme(output["Options"], context); + if (output[_O] != null) { + contents[_O] = de_AnalysisScheme(output[_O], context); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -3247,11 +3247,11 @@ const de_AnalysisSchemeStatusList = (output: any, context: __SerdeContext): Anal */ const de_AvailabilityOptionsStatus = (output: any, context: __SerdeContext): AvailabilityOptionsStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = __parseBoolean(output["Options"]); + if (output[_O] != null) { + contents[_O] = __parseBoolean(output[_O]); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -3261,11 +3261,11 @@ const de_AvailabilityOptionsStatus = (output: any, context: __SerdeContext): Ava */ const de_BaseException = (output: any, context: __SerdeContext): BaseException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -3276,9 +3276,9 @@ const de_BaseException = (output: any, context: __SerdeContext): BaseException = const de_BuildSuggestersResponse = (output: any, context: __SerdeContext): BuildSuggestersResponse => { const contents: any = {}; if (output.FieldNames === "") { - contents.FieldNames = []; - } else if (output["FieldNames"] !== undefined && output["FieldNames"]["member"] !== undefined) { - contents.FieldNames = de_FieldNameList(__getArrayIfSingleItem(output["FieldNames"]["member"]), context); + contents[_FN] = []; + } else if (output[_FN] != null && output[_FN][_m] != null) { + contents[_FN] = de_FieldNameList(__getArrayIfSingleItem(output[_FN][_m]), context); } return contents; }; @@ -3288,8 +3288,8 @@ const de_BuildSuggestersResponse = (output: any, context: __SerdeContext): Build */ const de_CreateDomainResponse = (output: any, context: __SerdeContext): CreateDomainResponse => { const contents: any = {}; - if (output["DomainStatus"] !== undefined) { - contents.DomainStatus = de_DomainStatus(output["DomainStatus"], context); + if (output[_DSo] != null) { + contents[_DSo] = de_DomainStatus(output[_DSo], context); } return contents; }; @@ -3299,20 +3299,20 @@ const de_CreateDomainResponse = (output: any, context: __SerdeContext): CreateDo */ const de_DateArrayOptions = (output: any, context: __SerdeContext): DateArrayOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["SourceFields"] !== undefined) { - contents.SourceFields = __expectString(output["SourceFields"]); + if (output[_SF] != null) { + contents[_SF] = __expectString(output[_SF]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } return contents; }; @@ -3322,23 +3322,23 @@ const de_DateArrayOptions = (output: any, context: __SerdeContext): DateArrayOpt */ const de_DateOptions = (output: any, context: __SerdeContext): DateOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["SourceField"] !== undefined) { - contents.SourceField = __expectString(output["SourceField"]); + if (output[_SFo] != null) { + contents[_SFo] = __expectString(output[_SFo]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } - if (output["SortEnabled"] !== undefined) { - contents.SortEnabled = __parseBoolean(output["SortEnabled"]); + if (output[_SEo] != null) { + contents[_SEo] = __parseBoolean(output[_SEo]); } return contents; }; @@ -3348,8 +3348,8 @@ const de_DateOptions = (output: any, context: __SerdeContext): DateOptions => { */ const de_DefineAnalysisSchemeResponse = (output: any, context: __SerdeContext): DefineAnalysisSchemeResponse => { const contents: any = {}; - if (output["AnalysisScheme"] !== undefined) { - contents.AnalysisScheme = de_AnalysisSchemeStatus(output["AnalysisScheme"], context); + if (output[_ASn] != null) { + contents[_ASn] = de_AnalysisSchemeStatus(output[_ASn], context); } return contents; }; @@ -3359,8 +3359,8 @@ const de_DefineAnalysisSchemeResponse = (output: any, context: __SerdeContext): */ const de_DefineExpressionResponse = (output: any, context: __SerdeContext): DefineExpressionResponse => { const contents: any = {}; - if (output["Expression"] !== undefined) { - contents.Expression = de_ExpressionStatus(output["Expression"], context); + if (output[_E] != null) { + contents[_E] = de_ExpressionStatus(output[_E], context); } return contents; }; @@ -3370,8 +3370,8 @@ const de_DefineExpressionResponse = (output: any, context: __SerdeContext): Defi */ const de_DefineIndexFieldResponse = (output: any, context: __SerdeContext): DefineIndexFieldResponse => { const contents: any = {}; - if (output["IndexField"] !== undefined) { - contents.IndexField = de_IndexFieldStatus(output["IndexField"], context); + if (output[_IF] != null) { + contents[_IF] = de_IndexFieldStatus(output[_IF], context); } return contents; }; @@ -3381,8 +3381,8 @@ const de_DefineIndexFieldResponse = (output: any, context: __SerdeContext): Defi */ const de_DefineSuggesterResponse = (output: any, context: __SerdeContext): DefineSuggesterResponse => { const contents: any = {}; - if (output["Suggester"] !== undefined) { - contents.Suggester = de_SuggesterStatus(output["Suggester"], context); + if (output[_Su] != null) { + contents[_Su] = de_SuggesterStatus(output[_Su], context); } return contents; }; @@ -3392,8 +3392,8 @@ const de_DefineSuggesterResponse = (output: any, context: __SerdeContext): Defin */ const de_DeleteAnalysisSchemeResponse = (output: any, context: __SerdeContext): DeleteAnalysisSchemeResponse => { const contents: any = {}; - if (output["AnalysisScheme"] !== undefined) { - contents.AnalysisScheme = de_AnalysisSchemeStatus(output["AnalysisScheme"], context); + if (output[_ASn] != null) { + contents[_ASn] = de_AnalysisSchemeStatus(output[_ASn], context); } return contents; }; @@ -3403,8 +3403,8 @@ const de_DeleteAnalysisSchemeResponse = (output: any, context: __SerdeContext): */ const de_DeleteDomainResponse = (output: any, context: __SerdeContext): DeleteDomainResponse => { const contents: any = {}; - if (output["DomainStatus"] !== undefined) { - contents.DomainStatus = de_DomainStatus(output["DomainStatus"], context); + if (output[_DSo] != null) { + contents[_DSo] = de_DomainStatus(output[_DSo], context); } return contents; }; @@ -3414,8 +3414,8 @@ const de_DeleteDomainResponse = (output: any, context: __SerdeContext): DeleteDo */ const de_DeleteExpressionResponse = (output: any, context: __SerdeContext): DeleteExpressionResponse => { const contents: any = {}; - if (output["Expression"] !== undefined) { - contents.Expression = de_ExpressionStatus(output["Expression"], context); + if (output[_E] != null) { + contents[_E] = de_ExpressionStatus(output[_E], context); } return contents; }; @@ -3425,8 +3425,8 @@ const de_DeleteExpressionResponse = (output: any, context: __SerdeContext): Dele */ const de_DeleteIndexFieldResponse = (output: any, context: __SerdeContext): DeleteIndexFieldResponse => { const contents: any = {}; - if (output["IndexField"] !== undefined) { - contents.IndexField = de_IndexFieldStatus(output["IndexField"], context); + if (output[_IF] != null) { + contents[_IF] = de_IndexFieldStatus(output[_IF], context); } return contents; }; @@ -3436,8 +3436,8 @@ const de_DeleteIndexFieldResponse = (output: any, context: __SerdeContext): Dele */ const de_DeleteSuggesterResponse = (output: any, context: __SerdeContext): DeleteSuggesterResponse => { const contents: any = {}; - if (output["Suggester"] !== undefined) { - contents.Suggester = de_SuggesterStatus(output["Suggester"], context); + if (output[_Su] != null) { + contents[_Su] = de_SuggesterStatus(output[_Su], context); } return contents; }; @@ -3448,12 +3448,9 @@ const de_DeleteSuggesterResponse = (output: any, context: __SerdeContext): Delet const de_DescribeAnalysisSchemesResponse = (output: any, context: __SerdeContext): DescribeAnalysisSchemesResponse => { const contents: any = {}; if (output.AnalysisSchemes === "") { - contents.AnalysisSchemes = []; - } else if (output["AnalysisSchemes"] !== undefined && output["AnalysisSchemes"]["member"] !== undefined) { - contents.AnalysisSchemes = de_AnalysisSchemeStatusList( - __getArrayIfSingleItem(output["AnalysisSchemes"]["member"]), - context - ); + contents[_ASna] = []; + } else if (output[_ASna] != null && output[_ASna][_m] != null) { + contents[_ASna] = de_AnalysisSchemeStatusList(__getArrayIfSingleItem(output[_ASna][_m]), context); } return contents; }; @@ -3466,8 +3463,8 @@ const de_DescribeAvailabilityOptionsResponse = ( context: __SerdeContext ): DescribeAvailabilityOptionsResponse => { const contents: any = {}; - if (output["AvailabilityOptions"] !== undefined) { - contents.AvailabilityOptions = de_AvailabilityOptionsStatus(output["AvailabilityOptions"], context); + if (output[_AOv] != null) { + contents[_AOv] = de_AvailabilityOptionsStatus(output[_AOv], context); } return contents; }; @@ -3480,8 +3477,8 @@ const de_DescribeDomainEndpointOptionsResponse = ( context: __SerdeContext ): DescribeDomainEndpointOptionsResponse => { const contents: any = {}; - if (output["DomainEndpointOptions"] !== undefined) { - contents.DomainEndpointOptions = de_DomainEndpointOptionsStatus(output["DomainEndpointOptions"], context); + if (output[_DEO] != null) { + contents[_DEO] = de_DomainEndpointOptionsStatus(output[_DEO], context); } return contents; }; @@ -3492,12 +3489,9 @@ const de_DescribeDomainEndpointOptionsResponse = ( const de_DescribeDomainsResponse = (output: any, context: __SerdeContext): DescribeDomainsResponse => { const contents: any = {}; if (output.DomainStatusList === "") { - contents.DomainStatusList = []; - } else if (output["DomainStatusList"] !== undefined && output["DomainStatusList"]["member"] !== undefined) { - contents.DomainStatusList = de_DomainStatusList( - __getArrayIfSingleItem(output["DomainStatusList"]["member"]), - context - ); + contents[_DSL] = []; + } else if (output[_DSL] != null && output[_DSL][_m] != null) { + contents[_DSL] = de_DomainStatusList(__getArrayIfSingleItem(output[_DSL][_m]), context); } return contents; }; @@ -3508,9 +3502,9 @@ const de_DescribeDomainsResponse = (output: any, context: __SerdeContext): Descr const de_DescribeExpressionsResponse = (output: any, context: __SerdeContext): DescribeExpressionsResponse => { const contents: any = {}; if (output.Expressions === "") { - contents.Expressions = []; - } else if (output["Expressions"] !== undefined && output["Expressions"]["member"] !== undefined) { - contents.Expressions = de_ExpressionStatusList(__getArrayIfSingleItem(output["Expressions"]["member"]), context); + contents[_Ex] = []; + } else if (output[_Ex] != null && output[_Ex][_m] != null) { + contents[_Ex] = de_ExpressionStatusList(__getArrayIfSingleItem(output[_Ex][_m]), context); } return contents; }; @@ -3521,9 +3515,9 @@ const de_DescribeExpressionsResponse = (output: any, context: __SerdeContext): D const de_DescribeIndexFieldsResponse = (output: any, context: __SerdeContext): DescribeIndexFieldsResponse => { const contents: any = {}; if (output.IndexFields === "") { - contents.IndexFields = []; - } else if (output["IndexFields"] !== undefined && output["IndexFields"]["member"] !== undefined) { - contents.IndexFields = de_IndexFieldStatusList(__getArrayIfSingleItem(output["IndexFields"]["member"]), context); + contents[_IFn] = []; + } else if (output[_IFn] != null && output[_IFn][_m] != null) { + contents[_IFn] = de_IndexFieldStatusList(__getArrayIfSingleItem(output[_IFn][_m]), context); } return contents; }; @@ -3536,8 +3530,8 @@ const de_DescribeScalingParametersResponse = ( context: __SerdeContext ): DescribeScalingParametersResponse => { const contents: any = {}; - if (output["ScalingParameters"] !== undefined) { - contents.ScalingParameters = de_ScalingParametersStatus(output["ScalingParameters"], context); + if (output[_SP] != null) { + contents[_SP] = de_ScalingParametersStatus(output[_SP], context); } return contents; }; @@ -3550,8 +3544,8 @@ const de_DescribeServiceAccessPoliciesResponse = ( context: __SerdeContext ): DescribeServiceAccessPoliciesResponse => { const contents: any = {}; - if (output["AccessPolicies"] !== undefined) { - contents.AccessPolicies = de_AccessPoliciesStatus(output["AccessPolicies"], context); + if (output[_AP] != null) { + contents[_AP] = de_AccessPoliciesStatus(output[_AP], context); } return contents; }; @@ -3562,9 +3556,9 @@ const de_DescribeServiceAccessPoliciesResponse = ( const de_DescribeSuggestersResponse = (output: any, context: __SerdeContext): DescribeSuggestersResponse => { const contents: any = {}; if (output.Suggesters === "") { - contents.Suggesters = []; - } else if (output["Suggesters"] !== undefined && output["Suggesters"]["member"] !== undefined) { - contents.Suggesters = de_SuggesterStatusList(__getArrayIfSingleItem(output["Suggesters"]["member"]), context); + contents[_Sug] = []; + } else if (output[_Sug] != null && output[_Sug][_m] != null) { + contents[_Sug] = de_SuggesterStatusList(__getArrayIfSingleItem(output[_Sug][_m]), context); } return contents; }; @@ -3574,11 +3568,11 @@ const de_DescribeSuggestersResponse = (output: any, context: __SerdeContext): De */ const de_DisabledOperationException = (output: any, context: __SerdeContext): DisabledOperationException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -3588,14 +3582,14 @@ const de_DisabledOperationException = (output: any, context: __SerdeContext): Di */ const de_DocumentSuggesterOptions = (output: any, context: __SerdeContext): DocumentSuggesterOptions => { const contents: any = {}; - if (output["SourceField"] !== undefined) { - contents.SourceField = __expectString(output["SourceField"]); + if (output[_SFo] != null) { + contents[_SFo] = __expectString(output[_SFo]); } - if (output["FuzzyMatching"] !== undefined) { - contents.FuzzyMatching = __expectString(output["FuzzyMatching"]); + if (output[_FM] != null) { + contents[_FM] = __expectString(output[_FM]); } - if (output["SortExpression"] !== undefined) { - contents.SortExpression = __expectString(output["SortExpression"]); + if (output[_SEor] != null) { + contents[_SEor] = __expectString(output[_SEor]); } return contents; }; @@ -3605,11 +3599,11 @@ const de_DocumentSuggesterOptions = (output: any, context: __SerdeContext): Docu */ const de_DomainEndpointOptions = (output: any, context: __SerdeContext): DomainEndpointOptions => { const contents: any = {}; - if (output["EnforceHTTPS"] !== undefined) { - contents.EnforceHTTPS = __parseBoolean(output["EnforceHTTPS"]); + if (output[_EHTTPS] != null) { + contents[_EHTTPS] = __parseBoolean(output[_EHTTPS]); } - if (output["TLSSecurityPolicy"] !== undefined) { - contents.TLSSecurityPolicy = __expectString(output["TLSSecurityPolicy"]); + if (output[_TLSSP] != null) { + contents[_TLSSP] = __expectString(output[_TLSSP]); } return contents; }; @@ -3619,11 +3613,11 @@ const de_DomainEndpointOptions = (output: any, context: __SerdeContext): DomainE */ const de_DomainEndpointOptionsStatus = (output: any, context: __SerdeContext): DomainEndpointOptionsStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = de_DomainEndpointOptions(output["Options"], context); + if (output[_O] != null) { + contents[_O] = de_DomainEndpointOptions(output[_O], context); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -3646,44 +3640,44 @@ const de_DomainNameMap = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["DomainId"] !== undefined) { - contents.DomainId = __expectString(output["DomainId"]); + if (output[_DI] != null) { + contents[_DI] = __expectString(output[_DI]); } - if (output["DomainName"] !== undefined) { - contents.DomainName = __expectString(output["DomainName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["Created"] !== undefined) { - contents.Created = __parseBoolean(output["Created"]); + if (output[_Cr] != null) { + contents[_Cr] = __parseBoolean(output[_Cr]); } - if (output["Deleted"] !== undefined) { - contents.Deleted = __parseBoolean(output["Deleted"]); + if (output[_De] != null) { + contents[_De] = __parseBoolean(output[_De]); } - if (output["DocService"] !== undefined) { - contents.DocService = de_ServiceEndpoint(output["DocService"], context); + if (output[_DSoc] != null) { + contents[_DSoc] = de_ServiceEndpoint(output[_DSoc], context); } - if (output["SearchService"] !== undefined) { - contents.SearchService = de_ServiceEndpoint(output["SearchService"], context); + if (output[_SS] != null) { + contents[_SS] = de_ServiceEndpoint(output[_SS], context); } - if (output["RequiresIndexDocuments"] !== undefined) { - contents.RequiresIndexDocuments = __parseBoolean(output["RequiresIndexDocuments"]); + if (output[_RID] != null) { + contents[_RID] = __parseBoolean(output[_RID]); } - if (output["Processing"] !== undefined) { - contents.Processing = __parseBoolean(output["Processing"]); + if (output[_P] != null) { + contents[_P] = __parseBoolean(output[_P]); } - if (output["SearchInstanceType"] !== undefined) { - contents.SearchInstanceType = __expectString(output["SearchInstanceType"]); + if (output[_SIT] != null) { + contents[_SIT] = __expectString(output[_SIT]); } - if (output["SearchPartitionCount"] !== undefined) { - contents.SearchPartitionCount = __strictParseInt32(output["SearchPartitionCount"]) as number; + if (output[_SPC] != null) { + contents[_SPC] = __strictParseInt32(output[_SPC]) as number; } - if (output["SearchInstanceCount"] !== undefined) { - contents.SearchInstanceCount = __strictParseInt32(output["SearchInstanceCount"]) as number; + if (output[_SIC] != null) { + contents[_SIC] = __strictParseInt32(output[_SIC]) as number; } - if (output["Limits"] !== undefined) { - contents.Limits = de_Limits(output["Limits"], context); + if (output[_L] != null) { + contents[_L] = de_Limits(output[_L], context); } return contents; }; @@ -3704,20 +3698,20 @@ const de_DomainStatusList = (output: any, context: __SerdeContext): DomainStatus */ const de_DoubleArrayOptions = (output: any, context: __SerdeContext): DoubleArrayOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __strictParseFloat(output["DefaultValue"]) as number; + if (output[_DV] != null) { + contents[_DV] = __strictParseFloat(output[_DV]) as number; } - if (output["SourceFields"] !== undefined) { - contents.SourceFields = __expectString(output["SourceFields"]); + if (output[_SF] != null) { + contents[_SF] = __expectString(output[_SF]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } return contents; }; @@ -3727,23 +3721,23 @@ const de_DoubleArrayOptions = (output: any, context: __SerdeContext): DoubleArra */ const de_DoubleOptions = (output: any, context: __SerdeContext): DoubleOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __strictParseFloat(output["DefaultValue"]) as number; + if (output[_DV] != null) { + contents[_DV] = __strictParseFloat(output[_DV]) as number; } - if (output["SourceField"] !== undefined) { - contents.SourceField = __expectString(output["SourceField"]); + if (output[_SFo] != null) { + contents[_SFo] = __expectString(output[_SFo]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } - if (output["SortEnabled"] !== undefined) { - contents.SortEnabled = __parseBoolean(output["SortEnabled"]); + if (output[_SEo] != null) { + contents[_SEo] = __parseBoolean(output[_SEo]); } return contents; }; @@ -3753,11 +3747,11 @@ const de_DoubleOptions = (output: any, context: __SerdeContext): DoubleOptions = */ const de_Expression = (output: any, context: __SerdeContext): Expression => { const contents: any = {}; - if (output["ExpressionName"] !== undefined) { - contents.ExpressionName = __expectString(output["ExpressionName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["ExpressionValue"] !== undefined) { - contents.ExpressionValue = __expectString(output["ExpressionValue"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } return contents; }; @@ -3767,11 +3761,11 @@ const de_Expression = (output: any, context: __SerdeContext): Expression => { */ const de_ExpressionStatus = (output: any, context: __SerdeContext): ExpressionStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = de_Expression(output["Options"], context); + if (output[_O] != null) { + contents[_O] = de_Expression(output[_O], context); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -3804,9 +3798,9 @@ const de_FieldNameList = (output: any, context: __SerdeContext): string[] => { const de_IndexDocumentsResponse = (output: any, context: __SerdeContext): IndexDocumentsResponse => { const contents: any = {}; if (output.FieldNames === "") { - contents.FieldNames = []; - } else if (output["FieldNames"] !== undefined && output["FieldNames"]["member"] !== undefined) { - contents.FieldNames = de_FieldNameList(__getArrayIfSingleItem(output["FieldNames"]["member"]), context); + contents[_FN] = []; + } else if (output[_FN] != null && output[_FN][_m] != null) { + contents[_FN] = de_FieldNameList(__getArrayIfSingleItem(output[_FN][_m]), context); } return contents; }; @@ -3816,44 +3810,44 @@ const de_IndexDocumentsResponse = (output: any, context: __SerdeContext): IndexD */ const de_IndexField = (output: any, context: __SerdeContext): IndexField => { const contents: any = {}; - if (output["IndexFieldName"] !== undefined) { - contents.IndexFieldName = __expectString(output["IndexFieldName"]); + if (output[_IFN] != null) { + contents[_IFN] = __expectString(output[_IFN]); } - if (output["IndexFieldType"] !== undefined) { - contents.IndexFieldType = __expectString(output["IndexFieldType"]); + if (output[_IFT] != null) { + contents[_IFT] = __expectString(output[_IFT]); } - if (output["IntOptions"] !== undefined) { - contents.IntOptions = de_IntOptions(output["IntOptions"], context); + if (output[_IO] != null) { + contents[_IO] = de_IntOptions(output[_IO], context); } - if (output["DoubleOptions"] !== undefined) { - contents.DoubleOptions = de_DoubleOptions(output["DoubleOptions"], context); + if (output[_DO] != null) { + contents[_DO] = de_DoubleOptions(output[_DO], context); } - if (output["LiteralOptions"] !== undefined) { - contents.LiteralOptions = de_LiteralOptions(output["LiteralOptions"], context); + if (output[_LO] != null) { + contents[_LO] = de_LiteralOptions(output[_LO], context); } - if (output["TextOptions"] !== undefined) { - contents.TextOptions = de_TextOptions(output["TextOptions"], context); + if (output[_TO] != null) { + contents[_TO] = de_TextOptions(output[_TO], context); } - if (output["DateOptions"] !== undefined) { - contents.DateOptions = de_DateOptions(output["DateOptions"], context); + if (output[_DOa] != null) { + contents[_DOa] = de_DateOptions(output[_DOa], context); } - if (output["LatLonOptions"] !== undefined) { - contents.LatLonOptions = de_LatLonOptions(output["LatLonOptions"], context); + if (output[_LLO] != null) { + contents[_LLO] = de_LatLonOptions(output[_LLO], context); } - if (output["IntArrayOptions"] !== undefined) { - contents.IntArrayOptions = de_IntArrayOptions(output["IntArrayOptions"], context); + if (output[_IAO] != null) { + contents[_IAO] = de_IntArrayOptions(output[_IAO], context); } - if (output["DoubleArrayOptions"] !== undefined) { - contents.DoubleArrayOptions = de_DoubleArrayOptions(output["DoubleArrayOptions"], context); + if (output[_DAOo] != null) { + contents[_DAOo] = de_DoubleArrayOptions(output[_DAOo], context); } - if (output["LiteralArrayOptions"] !== undefined) { - contents.LiteralArrayOptions = de_LiteralArrayOptions(output["LiteralArrayOptions"], context); + if (output[_LAO] != null) { + contents[_LAO] = de_LiteralArrayOptions(output[_LAO], context); } - if (output["TextArrayOptions"] !== undefined) { - contents.TextArrayOptions = de_TextArrayOptions(output["TextArrayOptions"], context); + if (output[_TAO] != null) { + contents[_TAO] = de_TextArrayOptions(output[_TAO], context); } - if (output["DateArrayOptions"] !== undefined) { - contents.DateArrayOptions = de_DateArrayOptions(output["DateArrayOptions"], context); + if (output[_DAOa] != null) { + contents[_DAOa] = de_DateArrayOptions(output[_DAOa], context); } return contents; }; @@ -3863,11 +3857,11 @@ const de_IndexField = (output: any, context: __SerdeContext): IndexField => { */ const de_IndexFieldStatus = (output: any, context: __SerdeContext): IndexFieldStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = de_IndexField(output["Options"], context); + if (output[_O] != null) { + contents[_O] = de_IndexField(output[_O], context); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -3888,20 +3882,20 @@ const de_IndexFieldStatusList = (output: any, context: __SerdeContext): IndexFie */ const de_IntArrayOptions = (output: any, context: __SerdeContext): IntArrayOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __strictParseLong(output["DefaultValue"]) as number; + if (output[_DV] != null) { + contents[_DV] = __strictParseLong(output[_DV]) as number; } - if (output["SourceFields"] !== undefined) { - contents.SourceFields = __expectString(output["SourceFields"]); + if (output[_SF] != null) { + contents[_SF] = __expectString(output[_SF]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } return contents; }; @@ -3911,11 +3905,11 @@ const de_IntArrayOptions = (output: any, context: __SerdeContext): IntArrayOptio */ const de_InternalException = (output: any, context: __SerdeContext): InternalException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -3925,23 +3919,23 @@ const de_InternalException = (output: any, context: __SerdeContext): InternalExc */ const de_IntOptions = (output: any, context: __SerdeContext): IntOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __strictParseLong(output["DefaultValue"]) as number; + if (output[_DV] != null) { + contents[_DV] = __strictParseLong(output[_DV]) as number; } - if (output["SourceField"] !== undefined) { - contents.SourceField = __expectString(output["SourceField"]); + if (output[_SFo] != null) { + contents[_SFo] = __expectString(output[_SFo]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } - if (output["SortEnabled"] !== undefined) { - contents.SortEnabled = __parseBoolean(output["SortEnabled"]); + if (output[_SEo] != null) { + contents[_SEo] = __parseBoolean(output[_SEo]); } return contents; }; @@ -3951,11 +3945,11 @@ const de_IntOptions = (output: any, context: __SerdeContext): IntOptions => { */ const de_InvalidTypeException = (output: any, context: __SerdeContext): InvalidTypeException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -3965,23 +3959,23 @@ const de_InvalidTypeException = (output: any, context: __SerdeContext): InvalidT */ const de_LatLonOptions = (output: any, context: __SerdeContext): LatLonOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["SourceField"] !== undefined) { - contents.SourceField = __expectString(output["SourceField"]); + if (output[_SFo] != null) { + contents[_SFo] = __expectString(output[_SFo]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } - if (output["SortEnabled"] !== undefined) { - contents.SortEnabled = __parseBoolean(output["SortEnabled"]); + if (output[_SEo] != null) { + contents[_SEo] = __parseBoolean(output[_SEo]); } return contents; }; @@ -3991,11 +3985,11 @@ const de_LatLonOptions = (output: any, context: __SerdeContext): LatLonOptions = */ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -4005,11 +3999,11 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE */ const de_Limits = (output: any, context: __SerdeContext): Limits => { const contents: any = {}; - if (output["MaximumReplicationCount"] !== undefined) { - contents.MaximumReplicationCount = __strictParseInt32(output["MaximumReplicationCount"]) as number; + if (output[_MRC] != null) { + contents[_MRC] = __strictParseInt32(output[_MRC]) as number; } - if (output["MaximumPartitionCount"] !== undefined) { - contents.MaximumPartitionCount = __strictParseInt32(output["MaximumPartitionCount"]) as number; + if (output[_MPC] != null) { + contents[_MPC] = __strictParseInt32(output[_MPC]) as number; } return contents; }; @@ -4020,9 +4014,9 @@ const de_Limits = (output: any, context: __SerdeContext): Limits => { const de_ListDomainNamesResponse = (output: any, context: __SerdeContext): ListDomainNamesResponse => { const contents: any = {}; if (output.DomainNames === "") { - contents.DomainNames = {}; - } else if (output["DomainNames"] !== undefined && output["DomainNames"]["entry"] !== undefined) { - contents.DomainNames = de_DomainNameMap(__getArrayIfSingleItem(output["DomainNames"]["entry"]), context); + contents[_DNo] = {}; + } else if (output[_DNo] != null && output[_DNo][_e] != null) { + contents[_DNo] = de_DomainNameMap(__getArrayIfSingleItem(output[_DNo][_e]), context); } return contents; }; @@ -4032,20 +4026,20 @@ const de_ListDomainNamesResponse = (output: any, context: __SerdeContext): ListD */ const de_LiteralArrayOptions = (output: any, context: __SerdeContext): LiteralArrayOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["SourceFields"] !== undefined) { - contents.SourceFields = __expectString(output["SourceFields"]); + if (output[_SF] != null) { + contents[_SF] = __expectString(output[_SF]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } return contents; }; @@ -4055,23 +4049,23 @@ const de_LiteralArrayOptions = (output: any, context: __SerdeContext): LiteralAr */ const de_LiteralOptions = (output: any, context: __SerdeContext): LiteralOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["SourceField"] !== undefined) { - contents.SourceField = __expectString(output["SourceField"]); + if (output[_SFo] != null) { + contents[_SFo] = __expectString(output[_SFo]); } - if (output["FacetEnabled"] !== undefined) { - contents.FacetEnabled = __parseBoolean(output["FacetEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["SearchEnabled"] !== undefined) { - contents.SearchEnabled = __parseBoolean(output["SearchEnabled"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } - if (output["SortEnabled"] !== undefined) { - contents.SortEnabled = __parseBoolean(output["SortEnabled"]); + if (output[_SEo] != null) { + contents[_SEo] = __parseBoolean(output[_SEo]); } return contents; }; @@ -4081,20 +4075,20 @@ const de_LiteralOptions = (output: any, context: __SerdeContext): LiteralOptions */ const de_OptionStatus = (output: any, context: __SerdeContext): OptionStatus => { const contents: any = {}; - if (output["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"])); + if (output[_CDr] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr])); } - if (output["UpdateDate"] !== undefined) { - contents.UpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdateDate"])); + if (output[_UD] != null) { + contents[_UD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UD])); } - if (output["UpdateVersion"] !== undefined) { - contents.UpdateVersion = __strictParseInt32(output["UpdateVersion"]) as number; + if (output[_UV] != null) { + contents[_UV] = __strictParseInt32(output[_UV]) as number; } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } - if (output["PendingDeletion"] !== undefined) { - contents.PendingDeletion = __parseBoolean(output["PendingDeletion"]); + if (output[_PD] != null) { + contents[_PD] = __parseBoolean(output[_PD]); } return contents; }; @@ -4104,11 +4098,11 @@ const de_OptionStatus = (output: any, context: __SerdeContext): OptionStatus => */ const de_ResourceAlreadyExistsException = (output: any, context: __SerdeContext): ResourceAlreadyExistsException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -4118,11 +4112,11 @@ const de_ResourceAlreadyExistsException = (output: any, context: __SerdeContext) */ const de_ResourceNotFoundException = (output: any, context: __SerdeContext): ResourceNotFoundException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -4132,14 +4126,14 @@ const de_ResourceNotFoundException = (output: any, context: __SerdeContext): Res */ const de_ScalingParameters = (output: any, context: __SerdeContext): ScalingParameters => { const contents: any = {}; - if (output["DesiredInstanceType"] !== undefined) { - contents.DesiredInstanceType = __expectString(output["DesiredInstanceType"]); + if (output[_DIT] != null) { + contents[_DIT] = __expectString(output[_DIT]); } - if (output["DesiredReplicationCount"] !== undefined) { - contents.DesiredReplicationCount = __strictParseInt32(output["DesiredReplicationCount"]) as number; + if (output[_DRC] != null) { + contents[_DRC] = __strictParseInt32(output[_DRC]) as number; } - if (output["DesiredPartitionCount"] !== undefined) { - contents.DesiredPartitionCount = __strictParseInt32(output["DesiredPartitionCount"]) as number; + if (output[_DPC] != null) { + contents[_DPC] = __strictParseInt32(output[_DPC]) as number; } return contents; }; @@ -4149,11 +4143,11 @@ const de_ScalingParameters = (output: any, context: __SerdeContext): ScalingPara */ const de_ScalingParametersStatus = (output: any, context: __SerdeContext): ScalingParametersStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = de_ScalingParameters(output["Options"], context); + if (output[_O] != null) { + contents[_O] = de_ScalingParameters(output[_O], context); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -4163,8 +4157,8 @@ const de_ScalingParametersStatus = (output: any, context: __SerdeContext): Scali */ const de_ServiceEndpoint = (output: any, context: __SerdeContext): ServiceEndpoint => { const contents: any = {}; - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_En] != null) { + contents[_En] = __expectString(output[_En]); } return contents; }; @@ -4174,11 +4168,11 @@ const de_ServiceEndpoint = (output: any, context: __SerdeContext): ServiceEndpoi */ const de_Suggester = (output: any, context: __SerdeContext): Suggester => { const contents: any = {}; - if (output["SuggesterName"] !== undefined) { - contents.SuggesterName = __expectString(output["SuggesterName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["DocumentSuggesterOptions"] !== undefined) { - contents.DocumentSuggesterOptions = de_DocumentSuggesterOptions(output["DocumentSuggesterOptions"], context); + if (output[_DSO] != null) { + contents[_DSO] = de_DocumentSuggesterOptions(output[_DSO], context); } return contents; }; @@ -4188,11 +4182,11 @@ const de_Suggester = (output: any, context: __SerdeContext): Suggester => { */ const de_SuggesterStatus = (output: any, context: __SerdeContext): SuggesterStatus => { const contents: any = {}; - if (output["Options"] !== undefined) { - contents.Options = de_Suggester(output["Options"], context); + if (output[_O] != null) { + contents[_O] = de_Suggester(output[_O], context); } - if (output["Status"] !== undefined) { - contents.Status = de_OptionStatus(output["Status"], context); + if (output[_Sta] != null) { + contents[_Sta] = de_OptionStatus(output[_Sta], context); } return contents; }; @@ -4213,20 +4207,20 @@ const de_SuggesterStatusList = (output: any, context: __SerdeContext): Suggester */ const de_TextArrayOptions = (output: any, context: __SerdeContext): TextArrayOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["SourceFields"] !== undefined) { - contents.SourceFields = __expectString(output["SourceFields"]); + if (output[_SF] != null) { + contents[_SF] = __expectString(output[_SF]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } - if (output["HighlightEnabled"] !== undefined) { - contents.HighlightEnabled = __parseBoolean(output["HighlightEnabled"]); + if (output[_HE] != null) { + contents[_HE] = __parseBoolean(output[_HE]); } - if (output["AnalysisScheme"] !== undefined) { - contents.AnalysisScheme = __expectString(output["AnalysisScheme"]); + if (output[_ASn] != null) { + contents[_ASn] = __expectString(output[_ASn]); } return contents; }; @@ -4236,23 +4230,23 @@ const de_TextArrayOptions = (output: any, context: __SerdeContext): TextArrayOpt */ const de_TextOptions = (output: any, context: __SerdeContext): TextOptions => { const contents: any = {}; - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["SourceField"] !== undefined) { - contents.SourceField = __expectString(output["SourceField"]); + if (output[_SFo] != null) { + contents[_SFo] = __expectString(output[_SFo]); } - if (output["ReturnEnabled"] !== undefined) { - contents.ReturnEnabled = __parseBoolean(output["ReturnEnabled"]); + if (output[_RE] != null) { + contents[_RE] = __parseBoolean(output[_RE]); } - if (output["SortEnabled"] !== undefined) { - contents.SortEnabled = __parseBoolean(output["SortEnabled"]); + if (output[_SEo] != null) { + contents[_SEo] = __parseBoolean(output[_SEo]); } - if (output["HighlightEnabled"] !== undefined) { - contents.HighlightEnabled = __parseBoolean(output["HighlightEnabled"]); + if (output[_HE] != null) { + contents[_HE] = __parseBoolean(output[_HE]); } - if (output["AnalysisScheme"] !== undefined) { - contents.AnalysisScheme = __expectString(output["AnalysisScheme"]); + if (output[_ASn] != null) { + contents[_ASn] = __expectString(output[_ASn]); } return contents; }; @@ -4265,8 +4259,8 @@ const de_UpdateAvailabilityOptionsResponse = ( context: __SerdeContext ): UpdateAvailabilityOptionsResponse => { const contents: any = {}; - if (output["AvailabilityOptions"] !== undefined) { - contents.AvailabilityOptions = de_AvailabilityOptionsStatus(output["AvailabilityOptions"], context); + if (output[_AOv] != null) { + contents[_AOv] = de_AvailabilityOptionsStatus(output[_AOv], context); } return contents; }; @@ -4279,8 +4273,8 @@ const de_UpdateDomainEndpointOptionsResponse = ( context: __SerdeContext ): UpdateDomainEndpointOptionsResponse => { const contents: any = {}; - if (output["DomainEndpointOptions"] !== undefined) { - contents.DomainEndpointOptions = de_DomainEndpointOptionsStatus(output["DomainEndpointOptions"], context); + if (output[_DEO] != null) { + contents[_DEO] = de_DomainEndpointOptionsStatus(output[_DEO], context); } return contents; }; @@ -4290,8 +4284,8 @@ const de_UpdateDomainEndpointOptionsResponse = ( */ const de_UpdateScalingParametersResponse = (output: any, context: __SerdeContext): UpdateScalingParametersResponse => { const contents: any = {}; - if (output["ScalingParameters"] !== undefined) { - contents.ScalingParameters = de_ScalingParametersStatus(output["ScalingParameters"], context); + if (output[_SP] != null) { + contents[_SP] = de_ScalingParametersStatus(output[_SP], context); } return contents; }; @@ -4304,8 +4298,8 @@ const de_UpdateServiceAccessPoliciesResponse = ( context: __SerdeContext ): UpdateServiceAccessPoliciesResponse => { const contents: any = {}; - if (output["AccessPolicies"] !== undefined) { - contents.AccessPolicies = de_AccessPoliciesStatus(output["AccessPolicies"], context); + if (output[_AP] != null) { + contents[_AP] = de_AccessPoliciesStatus(output[_AP], context); } return contents; }; @@ -4315,11 +4309,11 @@ const de_UpdateServiceAccessPoliciesResponse = ( */ const de_ValidationException = (output: any, context: __SerdeContext): ValidationException => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -4365,6 +4359,124 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2013-01-01"; +const _A = "Action"; +const _AO = "AnalysisOptions"; +const _AOv = "AvailabilityOptions"; +const _AP = "AccessPolicies"; +const _ARN = "ARN"; +const _AS = "AlgorithmicStemming"; +const _ASL = "AnalysisSchemeLanguage"; +const _ASN = "AnalysisSchemeName"; +const _ASNn = "AnalysisSchemeNames"; +const _ASn = "AnalysisScheme"; +const _ASna = "AnalysisSchemes"; +const _BS = "BuildSuggesters"; +const _C = "Code"; +const _CD = "CreateDomain"; +const _CDr = "CreationDate"; +const _Cr = "Created"; +const _D = "Deployed"; +const _DAO = "DescribeAvailabilityOptions"; +const _DAOa = "DateArrayOptions"; +const _DAOo = "DoubleArrayOptions"; +const _DAS = "DefineAnalysisScheme"; +const _DASe = "DeleteAnalysisScheme"; +const _DASes = "DescribeAnalysisSchemes"; +const _DD = "DeleteDomain"; +const _DDEO = "DescribeDomainEndpointOptions"; +const _DDe = "DescribeDomains"; +const _DE = "DefineExpression"; +const _DEO = "DomainEndpointOptions"; +const _DEe = "DeleteExpression"; +const _DEes = "DescribeExpressions"; +const _DI = "DomainId"; +const _DIF = "DefineIndexField"; +const _DIFe = "DeleteIndexField"; +const _DIFes = "DescribeIndexFields"; +const _DIT = "DesiredInstanceType"; +const _DN = "DomainName"; +const _DNo = "DomainNames"; +const _DO = "DoubleOptions"; +const _DOa = "DateOptions"; +const _DPC = "DesiredPartitionCount"; +const _DRC = "DesiredReplicationCount"; +const _DS = "DefineSuggester"; +const _DSAP = "DescribeServiceAccessPolicies"; +const _DSL = "DomainStatusList"; +const _DSO = "DocumentSuggesterOptions"; +const _DSP = "DescribeScalingParameters"; +const _DSe = "DeleteSuggester"; +const _DSes = "DescribeSuggesters"; +const _DSo = "DomainStatus"; +const _DSoc = "DocService"; +const _DV = "DefaultValue"; +const _De = "Deleted"; +const _E = "Expression"; +const _EHTTPS = "EnforceHTTPS"; +const _EN = "ExpressionName"; +const _ENx = "ExpressionNames"; +const _EV = "ExpressionValue"; +const _En = "Endpoint"; +const _Ex = "Expressions"; +const _FE = "FacetEnabled"; +const _FM = "FuzzyMatching"; +const _FN = "FieldNames"; +const _HE = "HighlightEnabled"; +const _IAO = "IntArrayOptions"; +const _ID = "IndexDocuments"; +const _IF = "IndexField"; +const _IFN = "IndexFieldName"; +const _IFT = "IndexFieldType"; +const _IFn = "IndexFields"; +const _IO = "IntOptions"; +const _JTD = "JapaneseTokenizationDictionary"; +const _L = "Limits"; +const _LAO = "LiteralArrayOptions"; +const _LDN = "ListDomainNames"; +const _LLO = "LatLonOptions"; +const _LO = "LiteralOptions"; +const _M = "Message"; +const _MAZ = "MultiAZ"; +const _MPC = "MaximumPartitionCount"; +const _MRC = "MaximumReplicationCount"; +const _O = "Options"; +const _P = "Processing"; +const _PD = "PendingDeletion"; +const _RE = "ReturnEnabled"; +const _RID = "RequiresIndexDocuments"; +const _S = "Synonyms"; +const _SD = "StemmingDictionary"; +const _SE = "SearchEnabled"; +const _SEo = "SortEnabled"; +const _SEor = "SortExpression"; +const _SF = "SourceFields"; +const _SFo = "SourceField"; +const _SIC = "SearchInstanceCount"; +const _SIT = "SearchInstanceType"; +const _SN = "SuggesterName"; +const _SNu = "SuggesterNames"; +const _SP = "ScalingParameters"; +const _SPC = "SearchPartitionCount"; +const _SS = "SearchService"; +const _St = "Stopwords"; +const _Sta = "Status"; +const _Stat = "State"; +const _Su = "Suggester"; +const _Sug = "Suggesters"; +const _TAO = "TextArrayOptions"; +const _TLSSP = "TLSSecurityPolicy"; +const _TO = "TextOptions"; +const _UAO = "UpdateAvailabilityOptions"; +const _UD = "UpdateDate"; +const _UDEO = "UpdateDomainEndpointOptions"; +const _USAP = "UpdateServiceAccessPolicies"; +const _USP = "UpdateScalingParameters"; +const _UV = "UpdateVersion"; +const _V = "Version"; +const _e = "entry"; +const _m = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloudtrail-data/package.json b/clients/client-cloudtrail-data/package.json index 633c31495ac3..272b7afda851 100644 --- a/clients/client-cloudtrail-data/package.json +++ b/clients/client-cloudtrail-data/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-cloudtrail-data/src/protocols/Aws_restJson1.ts b/clients/client-cloudtrail-data/src/protocols/Aws_restJson1.ts index 1db53dd52e09..3a5e5701fa2b 100644 --- a/clients/client-cloudtrail-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-cloudtrail-data/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -37,14 +38,14 @@ export const se_PutAuditEventsCommand = async ( input: PutAuditEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutAuditEvents"; + b.bp("/PutAuditEvents"); const query: any = map({ - channelArn: [, __expectNonNull(input.channelArn!, `channelArn`)], - externalId: [, input.externalId!], + [_cA]: [, __expectNonNull(input[_cA]!, `channelArn`)], + [_eI]: [, input[_eI]!], }); let body: any; body = JSON.stringify( @@ -52,16 +53,8 @@ export const se_PutAuditEventsCommand = async ( auditEvents: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -273,6 +266,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cA = "channelArn"; +const _eI = "externalId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cloudwatch/src/protocols/Aws_query.ts b/clients/client-cloudwatch/src/protocols/Aws_query.ts index 36e59fd09cd8..822bb2105ea7 100644 --- a/clients/client-cloudwatch/src/protocols/Aws_query.ts +++ b/clients/client-cloudwatch/src/protocols/Aws_query.ts @@ -235,8 +235,8 @@ export const se_DeleteAlarmsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAlarmsInput(input, context), - Action: "DeleteAlarms", - Version: "2010-08-01", + [_A]: _DA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -252,8 +252,8 @@ export const se_DeleteAnomalyDetectorCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAnomalyDetectorInput(input, context), - Action: "DeleteAnomalyDetector", - Version: "2010-08-01", + [_A]: _DAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -269,8 +269,8 @@ export const se_DeleteDashboardsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDashboardsInput(input, context), - Action: "DeleteDashboards", - Version: "2010-08-01", + [_A]: _DD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -286,8 +286,8 @@ export const se_DeleteInsightRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteInsightRulesInput(input, context), - Action: "DeleteInsightRules", - Version: "2010-08-01", + [_A]: _DIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -303,8 +303,8 @@ export const se_DeleteMetricStreamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteMetricStreamInput(input, context), - Action: "DeleteMetricStream", - Version: "2010-08-01", + [_A]: _DMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -320,8 +320,8 @@ export const se_DescribeAlarmHistoryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAlarmHistoryInput(input, context), - Action: "DescribeAlarmHistory", - Version: "2010-08-01", + [_A]: _DAH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -337,8 +337,8 @@ export const se_DescribeAlarmsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAlarmsInput(input, context), - Action: "DescribeAlarms", - Version: "2010-08-01", + [_A]: _DAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -354,8 +354,8 @@ export const se_DescribeAlarmsForMetricCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAlarmsForMetricInput(input, context), - Action: "DescribeAlarmsForMetric", - Version: "2010-08-01", + [_A]: _DAFM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -371,8 +371,8 @@ export const se_DescribeAnomalyDetectorsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAnomalyDetectorsInput(input, context), - Action: "DescribeAnomalyDetectors", - Version: "2010-08-01", + [_A]: _DADe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -388,8 +388,8 @@ export const se_DescribeInsightRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInsightRulesInput(input, context), - Action: "DescribeInsightRules", - Version: "2010-08-01", + [_A]: _DIRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -405,8 +405,8 @@ export const se_DisableAlarmActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableAlarmActionsInput(input, context), - Action: "DisableAlarmActions", - Version: "2010-08-01", + [_A]: _DAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -422,8 +422,8 @@ export const se_DisableInsightRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableInsightRulesInput(input, context), - Action: "DisableInsightRules", - Version: "2010-08-01", + [_A]: _DIRi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -439,8 +439,8 @@ export const se_EnableAlarmActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableAlarmActionsInput(input, context), - Action: "EnableAlarmActions", - Version: "2010-08-01", + [_A]: _EAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -456,8 +456,8 @@ export const se_EnableInsightRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableInsightRulesInput(input, context), - Action: "EnableInsightRules", - Version: "2010-08-01", + [_A]: _EIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -473,8 +473,8 @@ export const se_GetDashboardCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetDashboardInput(input, context), - Action: "GetDashboard", - Version: "2010-08-01", + [_A]: _GD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -490,8 +490,8 @@ export const se_GetInsightRuleReportCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetInsightRuleReportInput(input, context), - Action: "GetInsightRuleReport", - Version: "2010-08-01", + [_A]: _GIRR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -507,8 +507,8 @@ export const se_GetMetricDataCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetMetricDataInput(input, context), - Action: "GetMetricData", - Version: "2010-08-01", + [_A]: _GMD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -524,8 +524,8 @@ export const se_GetMetricStatisticsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetMetricStatisticsInput(input, context), - Action: "GetMetricStatistics", - Version: "2010-08-01", + [_A]: _GMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -541,8 +541,8 @@ export const se_GetMetricStreamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetMetricStreamInput(input, context), - Action: "GetMetricStream", - Version: "2010-08-01", + [_A]: _GMSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -558,8 +558,8 @@ export const se_GetMetricWidgetImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetMetricWidgetImageInput(input, context), - Action: "GetMetricWidgetImage", - Version: "2010-08-01", + [_A]: _GMWI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -575,8 +575,8 @@ export const se_ListDashboardsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListDashboardsInput(input, context), - Action: "ListDashboards", - Version: "2010-08-01", + [_A]: _LD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -592,8 +592,8 @@ export const se_ListManagedInsightRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListManagedInsightRulesInput(input, context), - Action: "ListManagedInsightRules", - Version: "2010-08-01", + [_A]: _LMIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -609,8 +609,8 @@ export const se_ListMetricsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListMetricsInput(input, context), - Action: "ListMetrics", - Version: "2010-08-01", + [_A]: _LM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -626,8 +626,8 @@ export const se_ListMetricStreamsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListMetricStreamsInput(input, context), - Action: "ListMetricStreams", - Version: "2010-08-01", + [_A]: _LMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -643,8 +643,8 @@ export const se_ListTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTagsForResourceInput(input, context), - Action: "ListTagsForResource", - Version: "2010-08-01", + [_A]: _LTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -660,8 +660,8 @@ export const se_PutAnomalyDetectorCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutAnomalyDetectorInput(input, context), - Action: "PutAnomalyDetector", - Version: "2010-08-01", + [_A]: _PAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -677,8 +677,8 @@ export const se_PutCompositeAlarmCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutCompositeAlarmInput(input, context), - Action: "PutCompositeAlarm", - Version: "2010-08-01", + [_A]: _PCA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -694,8 +694,8 @@ export const se_PutDashboardCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutDashboardInput(input, context), - Action: "PutDashboard", - Version: "2010-08-01", + [_A]: _PD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -711,8 +711,8 @@ export const se_PutInsightRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutInsightRuleInput(input, context), - Action: "PutInsightRule", - Version: "2010-08-01", + [_A]: _PIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -728,8 +728,8 @@ export const se_PutManagedInsightRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutManagedInsightRulesInput(input, context), - Action: "PutManagedInsightRules", - Version: "2010-08-01", + [_A]: _PMIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -745,8 +745,8 @@ export const se_PutMetricAlarmCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutMetricAlarmInput(input, context), - Action: "PutMetricAlarm", - Version: "2010-08-01", + [_A]: _PMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -762,8 +762,8 @@ export const se_PutMetricDataCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutMetricDataInput(input, context), - Action: "PutMetricData", - Version: "2010-08-01", + [_A]: _PMD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -779,8 +779,8 @@ export const se_PutMetricStreamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutMetricStreamInput(input, context), - Action: "PutMetricStream", - Version: "2010-08-01", + [_A]: _PMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -796,8 +796,8 @@ export const se_SetAlarmStateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetAlarmStateInput(input, context), - Action: "SetAlarmState", - Version: "2010-08-01", + [_A]: _SAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -813,8 +813,8 @@ export const se_StartMetricStreamsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartMetricStreamsInput(input, context), - Action: "StartMetricStreams", - Version: "2010-08-01", + [_A]: _SMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -830,8 +830,8 @@ export const se_StopMetricStreamsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopMetricStreamsInput(input, context), - Action: "StopMetricStreams", - Version: "2010-08-01", + [_A]: _SMSt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -847,8 +847,8 @@ export const se_TagResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagResourceInput(input, context), - Action: "TagResource", - Version: "2010-08-01", + [_A]: _TR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -864,8 +864,8 @@ export const se_UntagResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagResourceInput(input, context), - Action: "UntagResource", - Version: "2010-08-01", + [_A]: _UR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2989,9 +2989,9 @@ const se_AlarmTypes = (input: AlarmType[], context: __SerdeContext): any => { */ const se_AnomalyDetectorConfiguration = (input: AnomalyDetectorConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExcludedTimeRanges != null) { - const memberEntries = se_AnomalyDetectorExcludedTimeRanges(input.ExcludedTimeRanges, context); - if (input.ExcludedTimeRanges?.length === 0) { + if (input[_ETR] != null) { + const memberEntries = se_AnomalyDetectorExcludedTimeRanges(input[_ETR], context); + if (input[_ETR]?.length === 0) { entries.ExcludedTimeRanges = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2999,8 +2999,8 @@ const se_AnomalyDetectorConfiguration = (input: AnomalyDetectorConfiguration, co entries[loc] = value; }); } - if (input.MetricTimezone != null) { - entries["MetricTimezone"] = input.MetricTimezone; + if (input[_MT] != null) { + entries[_MT] = input[_MT]; } return entries; }; @@ -3077,9 +3077,9 @@ const se_DashboardNames = (input: string[], context: __SerdeContext): any => { */ const se_DeleteAlarmsInput = (input: DeleteAlarmsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AlarmNames != null) { - const memberEntries = se_AlarmNames(input.AlarmNames, context); - if (input.AlarmNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_AlarmNames(input[_AN], context); + if (input[_AN]?.length === 0) { entries.AlarmNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3095,15 +3095,15 @@ const se_DeleteAlarmsInput = (input: DeleteAlarmsInput, context: __SerdeContext) */ const se_DeleteAnomalyDetectorInput = (input: DeleteAnomalyDetectorInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3111,18 +3111,18 @@ const se_DeleteAnomalyDetectorInput = (input: DeleteAnomalyDetectorInput, contex entries[loc] = value; }); } - if (input.Stat != null) { - entries["Stat"] = input.Stat; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.SingleMetricAnomalyDetector != null) { - const memberEntries = se_SingleMetricAnomalyDetector(input.SingleMetricAnomalyDetector, context); + if (input[_SMAD] != null) { + const memberEntries = se_SingleMetricAnomalyDetector(input[_SMAD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SingleMetricAnomalyDetector.${key}`; entries[loc] = value; }); } - if (input.MetricMathAnomalyDetector != null) { - const memberEntries = se_MetricMathAnomalyDetector(input.MetricMathAnomalyDetector, context); + if (input[_MMAD] != null) { + const memberEntries = se_MetricMathAnomalyDetector(input[_MMAD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetricMathAnomalyDetector.${key}`; entries[loc] = value; @@ -3136,9 +3136,9 @@ const se_DeleteAnomalyDetectorInput = (input: DeleteAnomalyDetectorInput, contex */ const se_DeleteDashboardsInput = (input: DeleteDashboardsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.DashboardNames != null) { - const memberEntries = se_DashboardNames(input.DashboardNames, context); - if (input.DashboardNames?.length === 0) { + if (input[_DN] != null) { + const memberEntries = se_DashboardNames(input[_DN], context); + if (input[_DN]?.length === 0) { entries.DashboardNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3154,9 +3154,9 @@ const se_DeleteDashboardsInput = (input: DeleteDashboardsInput, context: __Serde */ const se_DeleteInsightRulesInput = (input: DeleteInsightRulesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleNames != null) { - const memberEntries = se_InsightRuleNames(input.RuleNames, context); - if (input.RuleNames?.length === 0) { + if (input[_RN] != null) { + const memberEntries = se_InsightRuleNames(input[_RN], context); + if (input[_RN]?.length === 0) { entries.RuleNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3172,8 +3172,8 @@ const se_DeleteInsightRulesInput = (input: DeleteInsightRulesInput, context: __S */ const se_DeleteMetricStreamInput = (input: DeleteMetricStreamInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } return entries; }; @@ -3183,12 +3183,12 @@ const se_DeleteMetricStreamInput = (input: DeleteMetricStreamInput, context: __S */ const se_DescribeAlarmHistoryInput = (input: DescribeAlarmHistoryInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AlarmName != null) { - entries["AlarmName"] = input.AlarmName; + if (input[_ANl] != null) { + entries[_ANl] = input[_ANl]; } - if (input.AlarmTypes != null) { - const memberEntries = se_AlarmTypes(input.AlarmTypes, context); - if (input.AlarmTypes?.length === 0) { + if (input[_AT] != null) { + const memberEntries = se_AlarmTypes(input[_AT], context); + if (input[_AT]?.length === 0) { entries.AlarmTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3196,23 +3196,23 @@ const se_DescribeAlarmHistoryInput = (input: DescribeAlarmHistoryInput, context: entries[loc] = value; }); } - if (input.HistoryItemType != null) { - entries["HistoryItemType"] = input.HistoryItemType; + if (input[_HIT] != null) { + entries[_HIT] = input[_HIT]; } - if (input.StartDate != null) { - entries["StartDate"] = input.StartDate.toISOString().split(".")[0] + "Z"; + if (input[_SD] != null) { + entries[_SD] = input[_SD].toISOString().split(".")[0] + "Z"; } - if (input.EndDate != null) { - entries["EndDate"] = input.EndDate.toISOString().split(".")[0] + "Z"; + if (input[_ED] != null) { + entries[_ED] = input[_ED].toISOString().split(".")[0] + "Z"; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.ScanBy != null) { - entries["ScanBy"] = input.ScanBy; + if (input[_SB] != null) { + entries[_SB] = input[_SB]; } return entries; }; @@ -3222,21 +3222,21 @@ const se_DescribeAlarmHistoryInput = (input: DescribeAlarmHistoryInput, context: */ const se_DescribeAlarmsForMetricInput = (input: DescribeAlarmsForMetricInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Statistic != null) { - entries["Statistic"] = input.Statistic; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.ExtendedStatistic != null) { - entries["ExtendedStatistic"] = input.ExtendedStatistic; + if (input[_ES] != null) { + entries[_ES] = input[_ES]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3244,11 +3244,11 @@ const se_DescribeAlarmsForMetricInput = (input: DescribeAlarmsForMetricInput, co entries[loc] = value; }); } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } return entries; }; @@ -3258,9 +3258,9 @@ const se_DescribeAlarmsForMetricInput = (input: DescribeAlarmsForMetricInput, co */ const se_DescribeAlarmsInput = (input: DescribeAlarmsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AlarmNames != null) { - const memberEntries = se_AlarmNames(input.AlarmNames, context); - if (input.AlarmNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_AlarmNames(input[_AN], context); + if (input[_AN]?.length === 0) { entries.AlarmNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3268,12 +3268,12 @@ const se_DescribeAlarmsInput = (input: DescribeAlarmsInput, context: __SerdeCont entries[loc] = value; }); } - if (input.AlarmNamePrefix != null) { - entries["AlarmNamePrefix"] = input.AlarmNamePrefix; + if (input[_ANP] != null) { + entries[_ANP] = input[_ANP]; } - if (input.AlarmTypes != null) { - const memberEntries = se_AlarmTypes(input.AlarmTypes, context); - if (input.AlarmTypes?.length === 0) { + if (input[_AT] != null) { + const memberEntries = se_AlarmTypes(input[_AT], context); + if (input[_AT]?.length === 0) { entries.AlarmTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3281,23 +3281,23 @@ const se_DescribeAlarmsInput = (input: DescribeAlarmsInput, context: __SerdeCont entries[loc] = value; }); } - if (input.ChildrenOfAlarmName != null) { - entries["ChildrenOfAlarmName"] = input.ChildrenOfAlarmName; + if (input[_COAN] != null) { + entries[_COAN] = input[_COAN]; } - if (input.ParentsOfAlarmName != null) { - entries["ParentsOfAlarmName"] = input.ParentsOfAlarmName; + if (input[_POAN] != null) { + entries[_POAN] = input[_POAN]; } - if (input.StateValue != null) { - entries["StateValue"] = input.StateValue; + if (input[_SV] != null) { + entries[_SV] = input[_SV]; } - if (input.ActionPrefix != null) { - entries["ActionPrefix"] = input.ActionPrefix; + if (input[_AP] != null) { + entries[_AP] = input[_AP]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -3307,21 +3307,21 @@ const se_DescribeAlarmsInput = (input: DescribeAlarmsInput, context: __SerdeCont */ const se_DescribeAnomalyDetectorsInput = (input: DescribeAnomalyDetectorsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MRa] != null) { + entries[_MRa] = input[_MRa]; } - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3329,9 +3329,9 @@ const se_DescribeAnomalyDetectorsInput = (input: DescribeAnomalyDetectorsInput, entries[loc] = value; }); } - if (input.AnomalyDetectorTypes != null) { - const memberEntries = se_AnomalyDetectorTypes(input.AnomalyDetectorTypes, context); - if (input.AnomalyDetectorTypes?.length === 0) { + if (input[_ADT] != null) { + const memberEntries = se_AnomalyDetectorTypes(input[_ADT], context); + if (input[_ADT]?.length === 0) { entries.AnomalyDetectorTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3347,11 +3347,11 @@ const se_DescribeAnomalyDetectorsInput = (input: DescribeAnomalyDetectorsInput, */ const se_DescribeInsightRulesInput = (input: DescribeInsightRulesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MRa] != null) { + entries[_MRa] = input[_MRa]; } return entries; }; @@ -3361,11 +3361,11 @@ const se_DescribeInsightRulesInput = (input: DescribeInsightRulesInput, context: */ const se_Dimension = (input: Dimension, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -3375,11 +3375,11 @@ const se_Dimension = (input: Dimension, context: __SerdeContext): any => { */ const se_DimensionFilter = (input: DimensionFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -3427,9 +3427,9 @@ const se_Dimensions = (input: Dimension[], context: __SerdeContext): any => { */ const se_DisableAlarmActionsInput = (input: DisableAlarmActionsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AlarmNames != null) { - const memberEntries = se_AlarmNames(input.AlarmNames, context); - if (input.AlarmNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_AlarmNames(input[_AN], context); + if (input[_AN]?.length === 0) { entries.AlarmNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3445,9 +3445,9 @@ const se_DisableAlarmActionsInput = (input: DisableAlarmActionsInput, context: _ */ const se_DisableInsightRulesInput = (input: DisableInsightRulesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleNames != null) { - const memberEntries = se_InsightRuleNames(input.RuleNames, context); - if (input.RuleNames?.length === 0) { + if (input[_RN] != null) { + const memberEntries = se_InsightRuleNames(input[_RN], context); + if (input[_RN]?.length === 0) { entries.RuleNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3463,9 +3463,9 @@ const se_DisableInsightRulesInput = (input: DisableInsightRulesInput, context: _ */ const se_EnableAlarmActionsInput = (input: EnableAlarmActionsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AlarmNames != null) { - const memberEntries = se_AlarmNames(input.AlarmNames, context); - if (input.AlarmNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_AlarmNames(input[_AN], context); + if (input[_AN]?.length === 0) { entries.AlarmNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3481,9 +3481,9 @@ const se_EnableAlarmActionsInput = (input: EnableAlarmActionsInput, context: __S */ const se_EnableInsightRulesInput = (input: EnableInsightRulesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleNames != null) { - const memberEntries = se_InsightRuleNames(input.RuleNames, context); - if (input.RuleNames?.length === 0) { + if (input[_RN] != null) { + const memberEntries = se_InsightRuleNames(input[_RN], context); + if (input[_RN]?.length === 0) { entries.RuleNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3515,8 +3515,8 @@ const se_ExtendedStatistics = (input: string[], context: __SerdeContext): any => */ const se_GetDashboardInput = (input: GetDashboardInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.DashboardName != null) { - entries["DashboardName"] = input.DashboardName; + if (input[_DNa] != null) { + entries[_DNa] = input[_DNa]; } return entries; }; @@ -3526,24 +3526,24 @@ const se_GetDashboardInput = (input: GetDashboardInput, context: __SerdeContext) */ const se_GetInsightRuleReportInput = (input: GetInsightRuleReportInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleName != null) { - entries["RuleName"] = input.RuleName; + if (input[_RNu] != null) { + entries[_RNu] = input[_RNu]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MaxContributorCount != null) { - entries["MaxContributorCount"] = input.MaxContributorCount; + if (input[_MCC] != null) { + entries[_MCC] = input[_MCC]; } - if (input.Metrics != null) { - const memberEntries = se_InsightRuleMetricList(input.Metrics, context); - if (input.Metrics?.length === 0) { + if (input[_M] != null) { + const memberEntries = se_InsightRuleMetricList(input[_M], context); + if (input[_M]?.length === 0) { entries.Metrics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3551,8 +3551,8 @@ const se_GetInsightRuleReportInput = (input: GetInsightRuleReportInput, context: entries[loc] = value; }); } - if (input.OrderBy != null) { - entries["OrderBy"] = input.OrderBy; + if (input[_OB] != null) { + entries[_OB] = input[_OB]; } return entries; }; @@ -3562,9 +3562,9 @@ const se_GetInsightRuleReportInput = (input: GetInsightRuleReportInput, context: */ const se_GetMetricDataInput = (input: GetMetricDataInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricDataQueries != null) { - const memberEntries = se_MetricDataQueries(input.MetricDataQueries, context); - if (input.MetricDataQueries?.length === 0) { + if (input[_MDQ] != null) { + const memberEntries = se_MetricDataQueries(input[_MDQ], context); + if (input[_MDQ]?.length === 0) { entries.MetricDataQueries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3572,23 +3572,23 @@ const se_GetMetricDataInput = (input: GetMetricDataInput, context: __SerdeContex entries[loc] = value; }); } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.ScanBy != null) { - entries["ScanBy"] = input.ScanBy; + if (input[_SB] != null) { + entries[_SB] = input[_SB]; } - if (input.MaxDatapoints != null) { - entries["MaxDatapoints"] = input.MaxDatapoints; + if (input[_MD] != null) { + entries[_MD] = input[_MD]; } - if (input.LabelOptions != null) { - const memberEntries = se_LabelOptions(input.LabelOptions, context); + if (input[_LO] != null) { + const memberEntries = se_LabelOptions(input[_LO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LabelOptions.${key}`; entries[loc] = value; @@ -3602,15 +3602,15 @@ const se_GetMetricDataInput = (input: GetMetricDataInput, context: __SerdeContex */ const se_GetMetricStatisticsInput = (input: GetMetricStatisticsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3618,18 +3618,18 @@ const se_GetMetricStatisticsInput = (input: GetMetricStatisticsInput, context: _ entries[loc] = value; }); } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Statistics != null) { - const memberEntries = se_Statistics(input.Statistics, context); - if (input.Statistics?.length === 0) { + if (input[_Sta] != null) { + const memberEntries = se_Statistics(input[_Sta], context); + if (input[_Sta]?.length === 0) { entries.Statistics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3637,9 +3637,9 @@ const se_GetMetricStatisticsInput = (input: GetMetricStatisticsInput, context: _ entries[loc] = value; }); } - if (input.ExtendedStatistics != null) { - const memberEntries = se_ExtendedStatistics(input.ExtendedStatistics, context); - if (input.ExtendedStatistics?.length === 0) { + if (input[_ESx] != null) { + const memberEntries = se_ExtendedStatistics(input[_ESx], context); + if (input[_ESx]?.length === 0) { entries.ExtendedStatistics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3647,8 +3647,8 @@ const se_GetMetricStatisticsInput = (input: GetMetricStatisticsInput, context: _ entries[loc] = value; }); } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } return entries; }; @@ -3658,8 +3658,8 @@ const se_GetMetricStatisticsInput = (input: GetMetricStatisticsInput, context: _ */ const se_GetMetricStreamInput = (input: GetMetricStreamInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } return entries; }; @@ -3669,11 +3669,11 @@ const se_GetMetricStreamInput = (input: GetMetricStreamInput, context: __SerdeCo */ const se_GetMetricWidgetImageInput = (input: GetMetricWidgetImageInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricWidget != null) { - entries["MetricWidget"] = input.MetricWidget; + if (input[_MW] != null) { + entries[_MW] = input[_MW]; } - if (input.OutputFormat != null) { - entries["OutputFormat"] = input.OutputFormat; + if (input[_OF] != null) { + entries[_OF] = input[_OF]; } return entries; }; @@ -3715,8 +3715,8 @@ const se_InsightRuleNames = (input: string[], context: __SerdeContext): any => { */ const se_LabelOptions = (input: LabelOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.Timezone != null) { - entries["Timezone"] = input.Timezone; + if (input[_T] != null) { + entries[_T] = input[_T]; } return entries; }; @@ -3726,11 +3726,11 @@ const se_LabelOptions = (input: LabelOptions, context: __SerdeContext): any => { */ const se_ListDashboardsInput = (input: ListDashboardsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.DashboardNamePrefix != null) { - entries["DashboardNamePrefix"] = input.DashboardNamePrefix; + if (input[_DNP] != null) { + entries[_DNP] = input[_DNP]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -3740,14 +3740,14 @@ const se_ListDashboardsInput = (input: ListDashboardsInput, context: __SerdeCont */ const se_ListManagedInsightRulesInput = (input: ListManagedInsightRulesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceARN != null) { - entries["ResourceARN"] = input.ResourceARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MRa] != null) { + entries[_MRa] = input[_MRa]; } return entries; }; @@ -3757,15 +3757,15 @@ const se_ListManagedInsightRulesInput = (input: ListManagedInsightRulesInput, co */ const se_ListMetricsInput = (input: ListMetricsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_DimensionFilters(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_DimensionFilters(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3773,17 +3773,17 @@ const se_ListMetricsInput = (input: ListMetricsInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.RecentlyActive != null) { - entries["RecentlyActive"] = input.RecentlyActive; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.IncludeLinkedAccounts != null) { - entries["IncludeLinkedAccounts"] = input.IncludeLinkedAccounts; + if (input[_ILA] != null) { + entries[_ILA] = input[_ILA]; } - if (input.OwningAccount != null) { - entries["OwningAccount"] = input.OwningAccount; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } return entries; }; @@ -3793,11 +3793,11 @@ const se_ListMetricsInput = (input: ListMetricsInput, context: __SerdeContext): */ const se_ListMetricStreamsInput = (input: ListMetricStreamsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MRa] != null) { + entries[_MRa] = input[_MRa]; } return entries; }; @@ -3807,8 +3807,8 @@ const se_ListMetricStreamsInput = (input: ListMetricStreamsInput, context: __Ser */ const se_ListTagsForResourceInput = (input: ListTagsForResourceInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceARN != null) { - entries["ResourceARN"] = input.ResourceARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } return entries; }; @@ -3818,15 +3818,15 @@ const se_ListTagsForResourceInput = (input: ListTagsForResourceInput, context: _ */ const se_ManagedRule = (input: ManagedRule, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.ResourceARN != null) { - entries["ResourceARN"] = input.ResourceARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3861,15 +3861,15 @@ const se_ManagedRules = (input: ManagedRule[], context: __SerdeContext): any => */ const se_Metric = (input: Metric, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3923,30 +3923,30 @@ const se_MetricDataQueries = (input: MetricDataQuery[], context: __SerdeContext) */ const se_MetricDataQuery = (input: MetricDataQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.Id != null) { - entries["Id"] = input.Id; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.MetricStat != null) { - const memberEntries = se_MetricStat(input.MetricStat, context); + if (input[_MS] != null) { + const memberEntries = se_MetricStat(input[_MS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetricStat.${key}`; entries[loc] = value; }); } - if (input.Expression != null) { - entries["Expression"] = input.Expression; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.Label != null) { - entries["Label"] = input.Label; + if (input[_L] != null) { + entries[_L] = input[_L]; } - if (input.ReturnData != null) { - entries["ReturnData"] = input.ReturnData; + if (input[_RD] != null) { + entries[_RD] = input[_RD]; } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.AccountId != null) { - entries["AccountId"] = input.AccountId; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -3956,12 +3956,12 @@ const se_MetricDataQuery = (input: MetricDataQuery, context: __SerdeContext): an */ const se_MetricDatum = (input: MetricDatum, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3969,22 +3969,22 @@ const se_MetricDatum = (input: MetricDatum, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.Timestamp != null) { - entries["Timestamp"] = input.Timestamp.toISOString().split(".")[0] + "Z"; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti].toISOString().split(".")[0] + "Z"; } - if (input.Value != null) { - entries["Value"] = __serializeFloat(input.Value); + if (input[_Va] != null) { + entries[_Va] = __serializeFloat(input[_Va]); } - if (input.StatisticValues != null) { - const memberEntries = se_StatisticSet(input.StatisticValues, context); + if (input[_SVt] != null) { + const memberEntries = se_StatisticSet(input[_SVt], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `StatisticValues.${key}`; entries[loc] = value; }); } - if (input.Values != null) { - const memberEntries = se_Values(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Val] != null) { + const memberEntries = se_Values(input[_Val], context); + if (input[_Val]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3992,9 +3992,9 @@ const se_MetricDatum = (input: MetricDatum, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.Counts != null) { - const memberEntries = se_Counts(input.Counts, context); - if (input.Counts?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_Counts(input[_C], context); + if (input[_C]?.length === 0) { entries.Counts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4002,11 +4002,11 @@ const se_MetricDatum = (input: MetricDatum, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } - if (input.StorageResolution != null) { - entries["StorageResolution"] = input.StorageResolution; + if (input[_SR] != null) { + entries[_SR] = input[_SR]; } return entries; }; @@ -4016,9 +4016,9 @@ const se_MetricDatum = (input: MetricDatum, context: __SerdeContext): any => { */ const se_MetricMathAnomalyDetector = (input: MetricMathAnomalyDetector, context: __SerdeContext): any => { const entries: any = {}; - if (input.MetricDataQueries != null) { - const memberEntries = se_MetricDataQueries(input.MetricDataQueries, context); - if (input.MetricDataQueries?.length === 0) { + if (input[_MDQ] != null) { + const memberEntries = se_MetricDataQueries(input[_MDQ], context); + if (input[_MDQ]?.length === 0) { entries.MetricDataQueries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4034,21 +4034,21 @@ const se_MetricMathAnomalyDetector = (input: MetricMathAnomalyDetector, context: */ const se_MetricStat = (input: MetricStat, context: __SerdeContext): any => { const entries: any = {}; - if (input.Metric != null) { - const memberEntries = se_Metric(input.Metric, context); + if (input[_Me] != null) { + const memberEntries = se_Metric(input[_Me], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Metric.${key}`; entries[loc] = value; }); } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Stat != null) { - entries["Stat"] = input.Stat; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } return entries; }; @@ -4058,12 +4058,12 @@ const se_MetricStat = (input: MetricStat, context: __SerdeContext): any => { */ const se_MetricStreamFilter = (input: MetricStreamFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricNames != null) { - const memberEntries = se_MetricStreamFilterMetricNames(input.MetricNames, context); - if (input.MetricNames?.length === 0) { + if (input[_MNe] != null) { + const memberEntries = se_MetricStreamFilterMetricNames(input[_MNe], context); + if (input[_MNe]?.length === 0) { entries.MetricNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4149,9 +4149,9 @@ const se_MetricStreamStatisticsConfiguration = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.IncludeMetrics != null) { - const memberEntries = se_MetricStreamStatisticsIncludeMetrics(input.IncludeMetrics, context); - if (input.IncludeMetrics?.length === 0) { + if (input[_IM] != null) { + const memberEntries = se_MetricStreamStatisticsIncludeMetrics(input[_IM], context); + if (input[_IM]?.length === 0) { entries.IncludeMetrics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4159,9 +4159,9 @@ const se_MetricStreamStatisticsConfiguration = ( entries[loc] = value; }); } - if (input.AdditionalStatistics != null) { - const memberEntries = se_MetricStreamStatisticsAdditionalStatistics(input.AdditionalStatistics, context); - if (input.AdditionalStatistics?.length === 0) { + if (input[_AS] != null) { + const memberEntries = se_MetricStreamStatisticsAdditionalStatistics(input[_AS], context); + if (input[_AS]?.length === 0) { entries.AdditionalStatistics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4221,11 +4221,11 @@ const se_MetricStreamStatisticsIncludeMetrics = ( */ const se_MetricStreamStatisticsMetric = (input: MetricStreamStatisticsMetric, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } return entries; }; @@ -4235,15 +4235,15 @@ const se_MetricStreamStatisticsMetric = (input: MetricStreamStatisticsMetric, co */ const se_PutAnomalyDetectorInput = (input: PutAnomalyDetectorInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4251,25 +4251,25 @@ const se_PutAnomalyDetectorInput = (input: PutAnomalyDetectorInput, context: __S entries[loc] = value; }); } - if (input.Stat != null) { - entries["Stat"] = input.Stat; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Configuration != null) { - const memberEntries = se_AnomalyDetectorConfiguration(input.Configuration, context); + if (input[_Co] != null) { + const memberEntries = se_AnomalyDetectorConfiguration(input[_Co], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Configuration.${key}`; entries[loc] = value; }); } - if (input.SingleMetricAnomalyDetector != null) { - const memberEntries = se_SingleMetricAnomalyDetector(input.SingleMetricAnomalyDetector, context); + if (input[_SMAD] != null) { + const memberEntries = se_SingleMetricAnomalyDetector(input[_SMAD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SingleMetricAnomalyDetector.${key}`; entries[loc] = value; }); } - if (input.MetricMathAnomalyDetector != null) { - const memberEntries = se_MetricMathAnomalyDetector(input.MetricMathAnomalyDetector, context); + if (input[_MMAD] != null) { + const memberEntries = se_MetricMathAnomalyDetector(input[_MMAD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetricMathAnomalyDetector.${key}`; entries[loc] = value; @@ -4283,12 +4283,12 @@ const se_PutAnomalyDetectorInput = (input: PutAnomalyDetectorInput, context: __S */ const se_PutCompositeAlarmInput = (input: PutCompositeAlarmInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ActionsEnabled != null) { - entries["ActionsEnabled"] = input.ActionsEnabled; + if (input[_AE] != null) { + entries[_AE] = input[_AE]; } - if (input.AlarmActions != null) { - const memberEntries = se_ResourceList(input.AlarmActions, context); - if (input.AlarmActions?.length === 0) { + if (input[_AA] != null) { + const memberEntries = se_ResourceList(input[_AA], context); + if (input[_AA]?.length === 0) { entries.AlarmActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4296,18 +4296,18 @@ const se_PutCompositeAlarmInput = (input: PutCompositeAlarmInput, context: __Ser entries[loc] = value; }); } - if (input.AlarmDescription != null) { - entries["AlarmDescription"] = input.AlarmDescription; + if (input[_AD] != null) { + entries[_AD] = input[_AD]; } - if (input.AlarmName != null) { - entries["AlarmName"] = input.AlarmName; + if (input[_ANl] != null) { + entries[_ANl] = input[_ANl]; } - if (input.AlarmRule != null) { - entries["AlarmRule"] = input.AlarmRule; + if (input[_AR] != null) { + entries[_AR] = input[_AR]; } - if (input.InsufficientDataActions != null) { - const memberEntries = se_ResourceList(input.InsufficientDataActions, context); - if (input.InsufficientDataActions?.length === 0) { + if (input[_IDA] != null) { + const memberEntries = se_ResourceList(input[_IDA], context); + if (input[_IDA]?.length === 0) { entries.InsufficientDataActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4315,9 +4315,9 @@ const se_PutCompositeAlarmInput = (input: PutCompositeAlarmInput, context: __Ser entries[loc] = value; }); } - if (input.OKActions != null) { - const memberEntries = se_ResourceList(input.OKActions, context); - if (input.OKActions?.length === 0) { + if (input[_OKA] != null) { + const memberEntries = se_ResourceList(input[_OKA], context); + if (input[_OKA]?.length === 0) { entries.OKActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4325,9 +4325,9 @@ const se_PutCompositeAlarmInput = (input: PutCompositeAlarmInput, context: __Ser entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4335,14 +4335,14 @@ const se_PutCompositeAlarmInput = (input: PutCompositeAlarmInput, context: __Ser entries[loc] = value; }); } - if (input.ActionsSuppressor != null) { - entries["ActionsSuppressor"] = input.ActionsSuppressor; + if (input[_ASc] != null) { + entries[_ASc] = input[_ASc]; } - if (input.ActionsSuppressorWaitPeriod != null) { - entries["ActionsSuppressorWaitPeriod"] = input.ActionsSuppressorWaitPeriod; + if (input[_ASWP] != null) { + entries[_ASWP] = input[_ASWP]; } - if (input.ActionsSuppressorExtensionPeriod != null) { - entries["ActionsSuppressorExtensionPeriod"] = input.ActionsSuppressorExtensionPeriod; + if (input[_ASEP] != null) { + entries[_ASEP] = input[_ASEP]; } return entries; }; @@ -4352,11 +4352,11 @@ const se_PutCompositeAlarmInput = (input: PutCompositeAlarmInput, context: __Ser */ const se_PutDashboardInput = (input: PutDashboardInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.DashboardName != null) { - entries["DashboardName"] = input.DashboardName; + if (input[_DNa] != null) { + entries[_DNa] = input[_DNa]; } - if (input.DashboardBody != null) { - entries["DashboardBody"] = input.DashboardBody; + if (input[_DB] != null) { + entries[_DB] = input[_DB]; } return entries; }; @@ -4366,18 +4366,18 @@ const se_PutDashboardInput = (input: PutDashboardInput, context: __SerdeContext) */ const se_PutInsightRuleInput = (input: PutInsightRuleInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleName != null) { - entries["RuleName"] = input.RuleName; + if (input[_RNu] != null) { + entries[_RNu] = input[_RNu]; } - if (input.RuleState != null) { - entries["RuleState"] = input.RuleState; + if (input[_RS] != null) { + entries[_RS] = input[_RS]; } - if (input.RuleDefinition != null) { - entries["RuleDefinition"] = input.RuleDefinition; + if (input[_RDu] != null) { + entries[_RDu] = input[_RDu]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4393,9 +4393,9 @@ const se_PutInsightRuleInput = (input: PutInsightRuleInput, context: __SerdeCont */ const se_PutManagedInsightRulesInput = (input: PutManagedInsightRulesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ManagedRules != null) { - const memberEntries = se_ManagedRules(input.ManagedRules, context); - if (input.ManagedRules?.length === 0) { + if (input[_MRan] != null) { + const memberEntries = se_ManagedRules(input[_MRan], context); + if (input[_MRan]?.length === 0) { entries.ManagedRules = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4411,18 +4411,18 @@ const se_PutManagedInsightRulesInput = (input: PutManagedInsightRulesInput, cont */ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AlarmName != null) { - entries["AlarmName"] = input.AlarmName; + if (input[_ANl] != null) { + entries[_ANl] = input[_ANl]; } - if (input.AlarmDescription != null) { - entries["AlarmDescription"] = input.AlarmDescription; + if (input[_AD] != null) { + entries[_AD] = input[_AD]; } - if (input.ActionsEnabled != null) { - entries["ActionsEnabled"] = input.ActionsEnabled; + if (input[_AE] != null) { + entries[_AE] = input[_AE]; } - if (input.OKActions != null) { - const memberEntries = se_ResourceList(input.OKActions, context); - if (input.OKActions?.length === 0) { + if (input[_OKA] != null) { + const memberEntries = se_ResourceList(input[_OKA], context); + if (input[_OKA]?.length === 0) { entries.OKActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4430,9 +4430,9 @@ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeCont entries[loc] = value; }); } - if (input.AlarmActions != null) { - const memberEntries = se_ResourceList(input.AlarmActions, context); - if (input.AlarmActions?.length === 0) { + if (input[_AA] != null) { + const memberEntries = se_ResourceList(input[_AA], context); + if (input[_AA]?.length === 0) { entries.AlarmActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4440,9 +4440,9 @@ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeCont entries[loc] = value; }); } - if (input.InsufficientDataActions != null) { - const memberEntries = se_ResourceList(input.InsufficientDataActions, context); - if (input.InsufficientDataActions?.length === 0) { + if (input[_IDA] != null) { + const memberEntries = se_ResourceList(input[_IDA], context); + if (input[_IDA]?.length === 0) { entries.InsufficientDataActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4450,21 +4450,21 @@ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeCont entries[loc] = value; }); } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Statistic != null) { - entries["Statistic"] = input.Statistic; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.ExtendedStatistic != null) { - entries["ExtendedStatistic"] = input.ExtendedStatistic; + if (input[_ES] != null) { + entries[_ES] = input[_ES]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4472,33 +4472,33 @@ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } - if (input.EvaluationPeriods != null) { - entries["EvaluationPeriods"] = input.EvaluationPeriods; + if (input[_EP] != null) { + entries[_EP] = input[_EP]; } - if (input.DatapointsToAlarm != null) { - entries["DatapointsToAlarm"] = input.DatapointsToAlarm; + if (input[_DTA] != null) { + entries[_DTA] = input[_DTA]; } - if (input.Threshold != null) { - entries["Threshold"] = __serializeFloat(input.Threshold); + if (input[_Th] != null) { + entries[_Th] = __serializeFloat(input[_Th]); } - if (input.ComparisonOperator != null) { - entries["ComparisonOperator"] = input.ComparisonOperator; + if (input[_CO] != null) { + entries[_CO] = input[_CO]; } - if (input.TreatMissingData != null) { - entries["TreatMissingData"] = input.TreatMissingData; + if (input[_TMD] != null) { + entries[_TMD] = input[_TMD]; } - if (input.EvaluateLowSampleCountPercentile != null) { - entries["EvaluateLowSampleCountPercentile"] = input.EvaluateLowSampleCountPercentile; + if (input[_ELSCP] != null) { + entries[_ELSCP] = input[_ELSCP]; } - if (input.Metrics != null) { - const memberEntries = se_MetricDataQueries(input.Metrics, context); - if (input.Metrics?.length === 0) { + if (input[_M] != null) { + const memberEntries = se_MetricDataQueries(input[_M], context); + if (input[_M]?.length === 0) { entries.Metrics = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4506,9 +4506,9 @@ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4516,8 +4516,8 @@ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeCont entries[loc] = value; }); } - if (input.ThresholdMetricId != null) { - entries["ThresholdMetricId"] = input.ThresholdMetricId; + if (input[_TMI] != null) { + entries[_TMI] = input[_TMI]; } return entries; }; @@ -4527,12 +4527,12 @@ const se_PutMetricAlarmInput = (input: PutMetricAlarmInput, context: __SerdeCont */ const se_PutMetricDataInput = (input: PutMetricDataInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricData != null) { - const memberEntries = se_MetricData(input.MetricData, context); - if (input.MetricData?.length === 0) { + if (input[_MDe] != null) { + const memberEntries = se_MetricData(input[_MDe], context); + if (input[_MDe]?.length === 0) { entries.MetricData = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4548,12 +4548,12 @@ const se_PutMetricDataInput = (input: PutMetricDataInput, context: __SerdeContex */ const se_PutMetricStreamInput = (input: PutMetricStreamInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } - if (input.IncludeFilters != null) { - const memberEntries = se_MetricStreamFilters(input.IncludeFilters, context); - if (input.IncludeFilters?.length === 0) { + if (input[_IF] != null) { + const memberEntries = se_MetricStreamFilters(input[_IF], context); + if (input[_IF]?.length === 0) { entries.IncludeFilters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4561,9 +4561,9 @@ const se_PutMetricStreamInput = (input: PutMetricStreamInput, context: __SerdeCo entries[loc] = value; }); } - if (input.ExcludeFilters != null) { - const memberEntries = se_MetricStreamFilters(input.ExcludeFilters, context); - if (input.ExcludeFilters?.length === 0) { + if (input[_EF] != null) { + const memberEntries = se_MetricStreamFilters(input[_EF], context); + if (input[_EF]?.length === 0) { entries.ExcludeFilters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4571,18 +4571,18 @@ const se_PutMetricStreamInput = (input: PutMetricStreamInput, context: __SerdeCo entries[loc] = value; }); } - if (input.FirehoseArn != null) { - entries["FirehoseArn"] = input.FirehoseArn; + if (input[_FA] != null) { + entries[_FA] = input[_FA]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RAo] != null) { + entries[_RAo] = input[_RAo]; } - if (input.OutputFormat != null) { - entries["OutputFormat"] = input.OutputFormat; + if (input[_OF] != null) { + entries[_OF] = input[_OF]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4590,9 +4590,9 @@ const se_PutMetricStreamInput = (input: PutMetricStreamInput, context: __SerdeCo entries[loc] = value; }); } - if (input.StatisticsConfigurations != null) { - const memberEntries = se_MetricStreamStatisticsConfigurations(input.StatisticsConfigurations, context); - if (input.StatisticsConfigurations?.length === 0) { + if (input[_SC] != null) { + const memberEntries = se_MetricStreamStatisticsConfigurations(input[_SC], context); + if (input[_SC]?.length === 0) { entries.StatisticsConfigurations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4600,8 +4600,8 @@ const se_PutMetricStreamInput = (input: PutMetricStreamInput, context: __SerdeCo entries[loc] = value; }); } - if (input.IncludeLinkedAccountsMetrics != null) { - entries["IncludeLinkedAccountsMetrics"] = input.IncludeLinkedAccountsMetrics; + if (input[_ILAM] != null) { + entries[_ILAM] = input[_ILAM]; } return entries; }; @@ -4611,11 +4611,11 @@ const se_PutMetricStreamInput = (input: PutMetricStreamInput, context: __SerdeCo */ const se_Range = (input: Range, context: __SerdeContext): any => { const entries: any = {}; - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -4641,17 +4641,17 @@ const se_ResourceList = (input: string[], context: __SerdeContext): any => { */ const se_SetAlarmStateInput = (input: SetAlarmStateInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.AlarmName != null) { - entries["AlarmName"] = input.AlarmName; + if (input[_ANl] != null) { + entries[_ANl] = input[_ANl]; } - if (input.StateValue != null) { - entries["StateValue"] = input.StateValue; + if (input[_SV] != null) { + entries[_SV] = input[_SV]; } - if (input.StateReason != null) { - entries["StateReason"] = input.StateReason; + if (input[_SRt] != null) { + entries[_SRt] = input[_SRt]; } - if (input.StateReasonData != null) { - entries["StateReasonData"] = input.StateReasonData; + if (input[_SRD] != null) { + entries[_SRD] = input[_SRD]; } return entries; }; @@ -4661,15 +4661,15 @@ const se_SetAlarmStateInput = (input: SetAlarmStateInput, context: __SerdeContex */ const se_SingleMetricAnomalyDetector = (input: SingleMetricAnomalyDetector, context: __SerdeContext): any => { const entries: any = {}; - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.MetricName != null) { - entries["MetricName"] = input.MetricName; + if (input[_MN] != null) { + entries[_MN] = input[_MN]; } - if (input.Dimensions != null) { - const memberEntries = se_Dimensions(input.Dimensions, context); - if (input.Dimensions?.length === 0) { + if (input[_D] != null) { + const memberEntries = se_Dimensions(input[_D], context); + if (input[_D]?.length === 0) { entries.Dimensions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4677,8 +4677,8 @@ const se_SingleMetricAnomalyDetector = (input: SingleMetricAnomalyDetector, cont entries[loc] = value; }); } - if (input.Stat != null) { - entries["Stat"] = input.Stat; + if (input[_S] != null) { + entries[_S] = input[_S]; } return entries; }; @@ -4688,9 +4688,9 @@ const se_SingleMetricAnomalyDetector = (input: SingleMetricAnomalyDetector, cont */ const se_StartMetricStreamsInput = (input: StartMetricStreamsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Names != null) { - const memberEntries = se_MetricStreamNames(input.Names, context); - if (input.Names?.length === 0) { + if (input[_Nam] != null) { + const memberEntries = se_MetricStreamNames(input[_Nam], context); + if (input[_Nam]?.length === 0) { entries.Names = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4722,17 +4722,17 @@ const se_Statistics = (input: Statistic[], context: __SerdeContext): any => { */ const se_StatisticSet = (input: StatisticSet, context: __SerdeContext): any => { const entries: any = {}; - if (input.SampleCount != null) { - entries["SampleCount"] = __serializeFloat(input.SampleCount); + if (input[_SCa] != null) { + entries[_SCa] = __serializeFloat(input[_SCa]); } - if (input.Sum != null) { - entries["Sum"] = __serializeFloat(input.Sum); + if (input[_Su] != null) { + entries[_Su] = __serializeFloat(input[_Su]); } - if (input.Minimum != null) { - entries["Minimum"] = __serializeFloat(input.Minimum); + if (input[_Mi] != null) { + entries[_Mi] = __serializeFloat(input[_Mi]); } - if (input.Maximum != null) { - entries["Maximum"] = __serializeFloat(input.Maximum); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -4742,9 +4742,9 @@ const se_StatisticSet = (input: StatisticSet, context: __SerdeContext): any => { */ const se_StopMetricStreamsInput = (input: StopMetricStreamsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Names != null) { - const memberEntries = se_MetricStreamNames(input.Names, context); - if (input.Names?.length === 0) { + if (input[_Nam] != null) { + const memberEntries = se_MetricStreamNames(input[_Nam], context); + if (input[_Nam]?.length === 0) { entries.Names = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4760,11 +4760,11 @@ const se_StopMetricStreamsInput = (input: StopMetricStreamsInput, context: __Ser */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -4809,12 +4809,12 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { */ const se_TagResourceInput = (input: TagResourceInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceARN != null) { - entries["ResourceARN"] = input.ResourceARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4830,12 +4830,12 @@ const se_TagResourceInput = (input: TagResourceInput, context: __SerdeContext): */ const se_UntagResourceInput = (input: UntagResourceInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceARN != null) { - entries["ResourceARN"] = input.ResourceARN; + if (input[_RARN] != null) { + entries[_RARN] = input[_RARN]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4867,23 +4867,23 @@ const se_Values = (input: number[], context: __SerdeContext): any => { */ const de_AlarmHistoryItem = (output: any, context: __SerdeContext): AlarmHistoryItem => { const contents: any = {}; - if (output["AlarmName"] !== undefined) { - contents.AlarmName = __expectString(output["AlarmName"]); + if (output[_ANl] != null) { + contents[_ANl] = __expectString(output[_ANl]); } - if (output["AlarmType"] !== undefined) { - contents.AlarmType = __expectString(output["AlarmType"]); + if (output[_ATl] != null) { + contents[_ATl] = __expectString(output[_ATl]); } - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["HistoryItemType"] !== undefined) { - contents.HistoryItemType = __expectString(output["HistoryItemType"]); + if (output[_HIT] != null) { + contents[_HIT] = __expectString(output[_HIT]); } - if (output["HistorySummary"] !== undefined) { - contents.HistorySummary = __expectString(output["HistorySummary"]); + if (output[_HS] != null) { + contents[_HS] = __expectString(output[_HS]); } - if (output["HistoryData"] !== undefined) { - contents.HistoryData = __expectString(output["HistoryData"]); + if (output[_HD] != null) { + contents[_HD] = __expectString(output[_HD]); } return contents; }; @@ -4904,34 +4904,31 @@ const de_AlarmHistoryItems = (output: any, context: __SerdeContext): AlarmHistor */ const de_AnomalyDetector = (output: any, context: __SerdeContext): AnomalyDetector => { const contents: any = {}; - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } if (output.Dimensions === "") { - contents.Dimensions = []; - } else if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) { - contents.Dimensions = de_Dimensions(__getArrayIfSingleItem(output["Dimensions"]["member"]), context); + contents[_D] = []; + } else if (output[_D] != null && output[_D][_m] != null) { + contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); } - if (output["Stat"] !== undefined) { - contents.Stat = __expectString(output["Stat"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Configuration"] !== undefined) { - contents.Configuration = de_AnomalyDetectorConfiguration(output["Configuration"], context); + if (output[_Co] != null) { + contents[_Co] = de_AnomalyDetectorConfiguration(output[_Co], context); } - if (output["StateValue"] !== undefined) { - contents.StateValue = __expectString(output["StateValue"]); + if (output[_SV] != null) { + contents[_SV] = __expectString(output[_SV]); } - if (output["SingleMetricAnomalyDetector"] !== undefined) { - contents.SingleMetricAnomalyDetector = de_SingleMetricAnomalyDetector( - output["SingleMetricAnomalyDetector"], - context - ); + if (output[_SMAD] != null) { + contents[_SMAD] = de_SingleMetricAnomalyDetector(output[_SMAD], context); } - if (output["MetricMathAnomalyDetector"] !== undefined) { - contents.MetricMathAnomalyDetector = de_MetricMathAnomalyDetector(output["MetricMathAnomalyDetector"], context); + if (output[_MMAD] != null) { + contents[_MMAD] = de_MetricMathAnomalyDetector(output[_MMAD], context); } return contents; }; @@ -4942,15 +4939,12 @@ const de_AnomalyDetector = (output: any, context: __SerdeContext): AnomalyDetect const de_AnomalyDetectorConfiguration = (output: any, context: __SerdeContext): AnomalyDetectorConfiguration => { const contents: any = {}; if (output.ExcludedTimeRanges === "") { - contents.ExcludedTimeRanges = []; - } else if (output["ExcludedTimeRanges"] !== undefined && output["ExcludedTimeRanges"]["member"] !== undefined) { - contents.ExcludedTimeRanges = de_AnomalyDetectorExcludedTimeRanges( - __getArrayIfSingleItem(output["ExcludedTimeRanges"]["member"]), - context - ); + contents[_ETR] = []; + } else if (output[_ETR] != null && output[_ETR][_m] != null) { + contents[_ETR] = de_AnomalyDetectorExcludedTimeRanges(__getArrayIfSingleItem(output[_ETR][_m]), context); } - if (output["MetricTimezone"] !== undefined) { - contents.MetricTimezone = __expectString(output["MetricTimezone"]); + if (output[_MT] != null) { + contents[_MT] = __expectString(output[_MT]); } return contents; }; @@ -4993,80 +4987,68 @@ const de_BatchFailures = (output: any, context: __SerdeContext): PartialFailure[ */ const de_CompositeAlarm = (output: any, context: __SerdeContext): CompositeAlarm => { const contents: any = {}; - if (output["ActionsEnabled"] !== undefined) { - contents.ActionsEnabled = __parseBoolean(output["ActionsEnabled"]); + if (output[_AE] != null) { + contents[_AE] = __parseBoolean(output[_AE]); } if (output.AlarmActions === "") { - contents.AlarmActions = []; - } else if (output["AlarmActions"] !== undefined && output["AlarmActions"]["member"] !== undefined) { - contents.AlarmActions = de_ResourceList(__getArrayIfSingleItem(output["AlarmActions"]["member"]), context); + contents[_AA] = []; + } else if (output[_AA] != null && output[_AA][_m] != null) { + contents[_AA] = de_ResourceList(__getArrayIfSingleItem(output[_AA][_m]), context); } - if (output["AlarmArn"] !== undefined) { - contents.AlarmArn = __expectString(output["AlarmArn"]); + if (output[_AAl] != null) { + contents[_AAl] = __expectString(output[_AAl]); } - if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) { - contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["AlarmConfigurationUpdatedTimestamp"]) - ); + if (output[_ACUT] != null) { + contents[_ACUT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ACUT])); } - if (output["AlarmDescription"] !== undefined) { - contents.AlarmDescription = __expectString(output["AlarmDescription"]); + if (output[_AD] != null) { + contents[_AD] = __expectString(output[_AD]); } - if (output["AlarmName"] !== undefined) { - contents.AlarmName = __expectString(output["AlarmName"]); + if (output[_ANl] != null) { + contents[_ANl] = __expectString(output[_ANl]); } - if (output["AlarmRule"] !== undefined) { - contents.AlarmRule = __expectString(output["AlarmRule"]); + if (output[_AR] != null) { + contents[_AR] = __expectString(output[_AR]); } if (output.InsufficientDataActions === "") { - contents.InsufficientDataActions = []; - } else if ( - output["InsufficientDataActions"] !== undefined && - output["InsufficientDataActions"]["member"] !== undefined - ) { - contents.InsufficientDataActions = de_ResourceList( - __getArrayIfSingleItem(output["InsufficientDataActions"]["member"]), - context - ); + contents[_IDA] = []; + } else if (output[_IDA] != null && output[_IDA][_m] != null) { + contents[_IDA] = de_ResourceList(__getArrayIfSingleItem(output[_IDA][_m]), context); } if (output.OKActions === "") { - contents.OKActions = []; - } else if (output["OKActions"] !== undefined && output["OKActions"]["member"] !== undefined) { - contents.OKActions = de_ResourceList(__getArrayIfSingleItem(output["OKActions"]["member"]), context); + contents[_OKA] = []; + } else if (output[_OKA] != null && output[_OKA][_m] != null) { + contents[_OKA] = de_ResourceList(__getArrayIfSingleItem(output[_OKA][_m]), context); } - if (output["StateReason"] !== undefined) { - contents.StateReason = __expectString(output["StateReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["StateReasonData"] !== undefined) { - contents.StateReasonData = __expectString(output["StateReasonData"]); + if (output[_SRD] != null) { + contents[_SRD] = __expectString(output[_SRD]); } - if (output["StateUpdatedTimestamp"] !== undefined) { - contents.StateUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StateUpdatedTimestamp"])); + if (output[_SUT] != null) { + contents[_SUT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SUT])); } - if (output["StateValue"] !== undefined) { - contents.StateValue = __expectString(output["StateValue"]); + if (output[_SV] != null) { + contents[_SV] = __expectString(output[_SV]); } - if (output["StateTransitionedTimestamp"] !== undefined) { - contents.StateTransitionedTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["StateTransitionedTimestamp"]) - ); + if (output[_STT] != null) { + contents[_STT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STT])); } - if (output["ActionsSuppressedBy"] !== undefined) { - contents.ActionsSuppressedBy = __expectString(output["ActionsSuppressedBy"]); + if (output[_ASB] != null) { + contents[_ASB] = __expectString(output[_ASB]); } - if (output["ActionsSuppressedReason"] !== undefined) { - contents.ActionsSuppressedReason = __expectString(output["ActionsSuppressedReason"]); + if (output[_ASR] != null) { + contents[_ASR] = __expectString(output[_ASR]); } - if (output["ActionsSuppressor"] !== undefined) { - contents.ActionsSuppressor = __expectString(output["ActionsSuppressor"]); + if (output[_ASc] != null) { + contents[_ASc] = __expectString(output[_ASc]); } - if (output["ActionsSuppressorWaitPeriod"] !== undefined) { - contents.ActionsSuppressorWaitPeriod = __strictParseInt32(output["ActionsSuppressorWaitPeriod"]) as number; + if (output[_ASWP] != null) { + contents[_ASWP] = __strictParseInt32(output[_ASWP]) as number; } - if (output["ActionsSuppressorExtensionPeriod"] !== undefined) { - contents.ActionsSuppressorExtensionPeriod = __strictParseInt32( - output["ActionsSuppressorExtensionPeriod"] - ) as number; + if (output[_ASEP] != null) { + contents[_ASEP] = __strictParseInt32(output[_ASEP]) as number; } return contents; }; @@ -5087,8 +5069,8 @@ const de_CompositeAlarms = (output: any, context: __SerdeContext): CompositeAlar */ const de_ConcurrentModificationException = (output: any, context: __SerdeContext): ConcurrentModificationException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Mes] != null) { + contents[_Mes] = __expectString(output[_Mes]); } return contents; }; @@ -5109,17 +5091,17 @@ const de_DashboardEntries = (output: any, context: __SerdeContext): DashboardEnt */ const de_DashboardEntry = (output: any, context: __SerdeContext): DashboardEntry => { const contents: any = {}; - if (output["DashboardName"] !== undefined) { - contents.DashboardName = __expectString(output["DashboardName"]); + if (output[_DNa] != null) { + contents[_DNa] = __expectString(output[_DNa]); } - if (output["DashboardArn"] !== undefined) { - contents.DashboardArn = __expectString(output["DashboardArn"]); + if (output[_DAa] != null) { + contents[_DAa] = __expectString(output[_DAa]); } - if (output["LastModified"] !== undefined) { - contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"])); + if (output[_LMa] != null) { + contents[_LMa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMa])); } - if (output["Size"] !== undefined) { - contents.Size = __strictParseLong(output["Size"]) as number; + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; } return contents; }; @@ -5129,19 +5111,13 @@ const de_DashboardEntry = (output: any, context: __SerdeContext): DashboardEntry */ const de_DashboardInvalidInputError = (output: any, context: __SerdeContext): DashboardInvalidInputError => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } if (output.dashboardValidationMessages === "") { - contents.dashboardValidationMessages = []; - } else if ( - output["dashboardValidationMessages"] !== undefined && - output["dashboardValidationMessages"]["member"] !== undefined - ) { - contents.dashboardValidationMessages = de_DashboardValidationMessages( - __getArrayIfSingleItem(output["dashboardValidationMessages"]["member"]), - context - ); + contents[_dVM] = []; + } else if (output[_dVM] != null && output[_dVM][_m] != null) { + contents[_dVM] = de_DashboardValidationMessages(__getArrayIfSingleItem(output[_dVM][_m]), context); } return contents; }; @@ -5151,8 +5127,8 @@ const de_DashboardInvalidInputError = (output: any, context: __SerdeContext): Da */ const de_DashboardNotFoundError = (output: any, context: __SerdeContext): DashboardNotFoundError => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -5162,11 +5138,11 @@ const de_DashboardNotFoundError = (output: any, context: __SerdeContext): Dashbo */ const de_DashboardValidationMessage = (output: any, context: __SerdeContext): DashboardValidationMessage => { const contents: any = {}; - if (output["DataPath"] !== undefined) { - contents.DataPath = __expectString(output["DataPath"]); + if (output[_DP] != null) { + contents[_DP] = __expectString(output[_DP]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Mes] != null) { + contents[_Mes] = __expectString(output[_Mes]); } return contents; }; @@ -5187,34 +5163,31 @@ const de_DashboardValidationMessages = (output: any, context: __SerdeContext): D */ const de_Datapoint = (output: any, context: __SerdeContext): Datapoint => { const contents: any = {}; - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["SampleCount"] !== undefined) { - contents.SampleCount = __strictParseFloat(output["SampleCount"]) as number; + if (output[_SCa] != null) { + contents[_SCa] = __strictParseFloat(output[_SCa]) as number; } - if (output["Average"] !== undefined) { - contents.Average = __strictParseFloat(output["Average"]) as number; + if (output[_Av] != null) { + contents[_Av] = __strictParseFloat(output[_Av]) as number; } - if (output["Sum"] !== undefined) { - contents.Sum = __strictParseFloat(output["Sum"]) as number; + if (output[_Su] != null) { + contents[_Su] = __strictParseFloat(output[_Su]) as number; } - if (output["Minimum"] !== undefined) { - contents.Minimum = __strictParseFloat(output["Minimum"]) as number; + if (output[_Mi] != null) { + contents[_Mi] = __strictParseFloat(output[_Mi]) as number; } - if (output["Maximum"] !== undefined) { - contents.Maximum = __strictParseFloat(output["Maximum"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseFloat(output[_Ma]) as number; } - if (output["Unit"] !== undefined) { - contents.Unit = __expectString(output["Unit"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } if (output.ExtendedStatistics === "") { - contents.ExtendedStatistics = {}; - } else if (output["ExtendedStatistics"] !== undefined && output["ExtendedStatistics"]["entry"] !== undefined) { - contents.ExtendedStatistics = de_DatapointValueMap( - __getArrayIfSingleItem(output["ExtendedStatistics"]["entry"]), - context - ); + contents[_ESx] = {}; + } else if (output[_ESx] != null && output[_ESx][_e] != null) { + contents[_ESx] = de_DatapointValueMap(__getArrayIfSingleItem(output[_ESx][_e]), context); } return contents; }; @@ -5276,9 +5249,9 @@ const de_DeleteDashboardsOutput = (output: any, context: __SerdeContext): Delete const de_DeleteInsightRulesOutput = (output: any, context: __SerdeContext): DeleteInsightRulesOutput => { const contents: any = {}; if (output.Failures === "") { - contents.Failures = []; - } else if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) { - contents.Failures = de_BatchFailures(__getArrayIfSingleItem(output["Failures"]["member"]), context); + contents[_F] = []; + } else if (output[_F] != null && output[_F][_m] != null) { + contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); } return contents; }; @@ -5297,15 +5270,12 @@ const de_DeleteMetricStreamOutput = (output: any, context: __SerdeContext): Dele const de_DescribeAlarmHistoryOutput = (output: any, context: __SerdeContext): DescribeAlarmHistoryOutput => { const contents: any = {}; if (output.AlarmHistoryItems === "") { - contents.AlarmHistoryItems = []; - } else if (output["AlarmHistoryItems"] !== undefined && output["AlarmHistoryItems"]["member"] !== undefined) { - contents.AlarmHistoryItems = de_AlarmHistoryItems( - __getArrayIfSingleItem(output["AlarmHistoryItems"]["member"]), - context - ); + contents[_AHI] = []; + } else if (output[_AHI] != null && output[_AHI][_m] != null) { + contents[_AHI] = de_AlarmHistoryItems(__getArrayIfSingleItem(output[_AHI][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5316,9 +5286,9 @@ const de_DescribeAlarmHistoryOutput = (output: any, context: __SerdeContext): De const de_DescribeAlarmsForMetricOutput = (output: any, context: __SerdeContext): DescribeAlarmsForMetricOutput => { const contents: any = {}; if (output.MetricAlarms === "") { - contents.MetricAlarms = []; - } else if (output["MetricAlarms"] !== undefined && output["MetricAlarms"]["member"] !== undefined) { - contents.MetricAlarms = de_MetricAlarms(__getArrayIfSingleItem(output["MetricAlarms"]["member"]), context); + contents[_MA] = []; + } else if (output[_MA] != null && output[_MA][_m] != null) { + contents[_MA] = de_MetricAlarms(__getArrayIfSingleItem(output[_MA][_m]), context); } return contents; }; @@ -5329,17 +5299,17 @@ const de_DescribeAlarmsForMetricOutput = (output: any, context: __SerdeContext): const de_DescribeAlarmsOutput = (output: any, context: __SerdeContext): DescribeAlarmsOutput => { const contents: any = {}; if (output.CompositeAlarms === "") { - contents.CompositeAlarms = []; - } else if (output["CompositeAlarms"] !== undefined && output["CompositeAlarms"]["member"] !== undefined) { - contents.CompositeAlarms = de_CompositeAlarms(__getArrayIfSingleItem(output["CompositeAlarms"]["member"]), context); + contents[_CA] = []; + } else if (output[_CA] != null && output[_CA][_m] != null) { + contents[_CA] = de_CompositeAlarms(__getArrayIfSingleItem(output[_CA][_m]), context); } if (output.MetricAlarms === "") { - contents.MetricAlarms = []; - } else if (output["MetricAlarms"] !== undefined && output["MetricAlarms"]["member"] !== undefined) { - contents.MetricAlarms = de_MetricAlarms(__getArrayIfSingleItem(output["MetricAlarms"]["member"]), context); + contents[_MA] = []; + } else if (output[_MA] != null && output[_MA][_m] != null) { + contents[_MA] = de_MetricAlarms(__getArrayIfSingleItem(output[_MA][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5350,15 +5320,12 @@ const de_DescribeAlarmsOutput = (output: any, context: __SerdeContext): Describe const de_DescribeAnomalyDetectorsOutput = (output: any, context: __SerdeContext): DescribeAnomalyDetectorsOutput => { const contents: any = {}; if (output.AnomalyDetectors === "") { - contents.AnomalyDetectors = []; - } else if (output["AnomalyDetectors"] !== undefined && output["AnomalyDetectors"]["member"] !== undefined) { - contents.AnomalyDetectors = de_AnomalyDetectors( - __getArrayIfSingleItem(output["AnomalyDetectors"]["member"]), - context - ); + contents[_ADn] = []; + } else if (output[_ADn] != null && output[_ADn][_m] != null) { + contents[_ADn] = de_AnomalyDetectors(__getArrayIfSingleItem(output[_ADn][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5368,13 +5335,13 @@ const de_DescribeAnomalyDetectorsOutput = (output: any, context: __SerdeContext) */ const de_DescribeInsightRulesOutput = (output: any, context: __SerdeContext): DescribeInsightRulesOutput => { const contents: any = {}; - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } if (output.InsightRules === "") { - contents.InsightRules = []; - } else if (output["InsightRules"] !== undefined && output["InsightRules"]["member"] !== undefined) { - contents.InsightRules = de_InsightRules(__getArrayIfSingleItem(output["InsightRules"]["member"]), context); + contents[_IR] = []; + } else if (output[_IR] != null && output[_IR][_m] != null) { + contents[_IR] = de_InsightRules(__getArrayIfSingleItem(output[_IR][_m]), context); } return contents; }; @@ -5384,11 +5351,11 @@ const de_DescribeInsightRulesOutput = (output: any, context: __SerdeContext): De */ const de_Dimension = (output: any, context: __SerdeContext): Dimension => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -5410,9 +5377,9 @@ const de_Dimensions = (output: any, context: __SerdeContext): Dimension[] => { const de_DisableInsightRulesOutput = (output: any, context: __SerdeContext): DisableInsightRulesOutput => { const contents: any = {}; if (output.Failures === "") { - contents.Failures = []; - } else if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) { - contents.Failures = de_BatchFailures(__getArrayIfSingleItem(output["Failures"]["member"]), context); + contents[_F] = []; + } else if (output[_F] != null && output[_F][_m] != null) { + contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); } return contents; }; @@ -5423,9 +5390,9 @@ const de_DisableInsightRulesOutput = (output: any, context: __SerdeContext): Dis const de_EnableInsightRulesOutput = (output: any, context: __SerdeContext): EnableInsightRulesOutput => { const contents: any = {}; if (output.Failures === "") { - contents.Failures = []; - } else if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) { - contents.Failures = de_BatchFailures(__getArrayIfSingleItem(output["Failures"]["member"]), context); + contents[_F] = []; + } else if (output[_F] != null && output[_F][_m] != null) { + contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); } return contents; }; @@ -5435,14 +5402,14 @@ const de_EnableInsightRulesOutput = (output: any, context: __SerdeContext): Enab */ const de_GetDashboardOutput = (output: any, context: __SerdeContext): GetDashboardOutput => { const contents: any = {}; - if (output["DashboardArn"] !== undefined) { - contents.DashboardArn = __expectString(output["DashboardArn"]); + if (output[_DAa] != null) { + contents[_DAa] = __expectString(output[_DAa]); } - if (output["DashboardBody"] !== undefined) { - contents.DashboardBody = __expectString(output["DashboardBody"]); + if (output[_DB] != null) { + contents[_DB] = __expectString(output[_DB]); } - if (output["DashboardName"] !== undefined) { - contents.DashboardName = __expectString(output["DashboardName"]); + if (output[_DNa] != null) { + contents[_DNa] = __expectString(output[_DNa]); } return contents; }; @@ -5453,37 +5420,28 @@ const de_GetDashboardOutput = (output: any, context: __SerdeContext): GetDashboa const de_GetInsightRuleReportOutput = (output: any, context: __SerdeContext): GetInsightRuleReportOutput => { const contents: any = {}; if (output.KeyLabels === "") { - contents.KeyLabels = []; - } else if (output["KeyLabels"] !== undefined && output["KeyLabels"]["member"] !== undefined) { - contents.KeyLabels = de_InsightRuleContributorKeyLabels( - __getArrayIfSingleItem(output["KeyLabels"]["member"]), - context - ); + contents[_KL] = []; + } else if (output[_KL] != null && output[_KL][_m] != null) { + contents[_KL] = de_InsightRuleContributorKeyLabels(__getArrayIfSingleItem(output[_KL][_m]), context); } - if (output["AggregationStatistic"] !== undefined) { - contents.AggregationStatistic = __expectString(output["AggregationStatistic"]); + if (output[_ASg] != null) { + contents[_ASg] = __expectString(output[_ASg]); } - if (output["AggregateValue"] !== undefined) { - contents.AggregateValue = __strictParseFloat(output["AggregateValue"]) as number; + if (output[_AV] != null) { + contents[_AV] = __strictParseFloat(output[_AV]) as number; } - if (output["ApproximateUniqueCount"] !== undefined) { - contents.ApproximateUniqueCount = __strictParseLong(output["ApproximateUniqueCount"]) as number; + if (output[_AUC] != null) { + contents[_AUC] = __strictParseLong(output[_AUC]) as number; } if (output.Contributors === "") { - contents.Contributors = []; - } else if (output["Contributors"] !== undefined && output["Contributors"]["member"] !== undefined) { - contents.Contributors = de_InsightRuleContributors( - __getArrayIfSingleItem(output["Contributors"]["member"]), - context - ); + contents[_Con] = []; + } else if (output[_Con] != null && output[_Con][_m] != null) { + contents[_Con] = de_InsightRuleContributors(__getArrayIfSingleItem(output[_Con][_m]), context); } if (output.MetricDatapoints === "") { - contents.MetricDatapoints = []; - } else if (output["MetricDatapoints"] !== undefined && output["MetricDatapoints"]["member"] !== undefined) { - contents.MetricDatapoints = de_InsightRuleMetricDatapoints( - __getArrayIfSingleItem(output["MetricDatapoints"]["member"]), - context - ); + contents[_MDet] = []; + } else if (output[_MDet] != null && output[_MDet][_m] != null) { + contents[_MDet] = de_InsightRuleMetricDatapoints(__getArrayIfSingleItem(output[_MDet][_m]), context); } return contents; }; @@ -5494,20 +5452,17 @@ const de_GetInsightRuleReportOutput = (output: any, context: __SerdeContext): Ge const de_GetMetricDataOutput = (output: any, context: __SerdeContext): GetMetricDataOutput => { const contents: any = {}; if (output.MetricDataResults === "") { - contents.MetricDataResults = []; - } else if (output["MetricDataResults"] !== undefined && output["MetricDataResults"]["member"] !== undefined) { - contents.MetricDataResults = de_MetricDataResults( - __getArrayIfSingleItem(output["MetricDataResults"]["member"]), - context - ); + contents[_MDR] = []; + } else if (output[_MDR] != null && output[_MDR][_m] != null) { + contents[_MDR] = de_MetricDataResults(__getArrayIfSingleItem(output[_MDR][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } if (output.Messages === "") { - contents.Messages = []; - } else if (output["Messages"] !== undefined && output["Messages"]["member"] !== undefined) { - contents.Messages = de_MetricDataResultMessages(__getArrayIfSingleItem(output["Messages"]["member"]), context); + contents[_Mess] = []; + } else if (output[_Mess] != null && output[_Mess][_m] != null) { + contents[_Mess] = de_MetricDataResultMessages(__getArrayIfSingleItem(output[_Mess][_m]), context); } return contents; }; @@ -5517,13 +5472,13 @@ const de_GetMetricDataOutput = (output: any, context: __SerdeContext): GetMetric */ const de_GetMetricStatisticsOutput = (output: any, context: __SerdeContext): GetMetricStatisticsOutput => { const contents: any = {}; - if (output["Label"] !== undefined) { - contents.Label = __expectString(output["Label"]); + if (output[_L] != null) { + contents[_L] = __expectString(output[_L]); } if (output.Datapoints === "") { - contents.Datapoints = []; - } else if (output["Datapoints"] !== undefined && output["Datapoints"]["member"] !== undefined) { - contents.Datapoints = de_Datapoints(__getArrayIfSingleItem(output["Datapoints"]["member"]), context); + contents[_Da] = []; + } else if (output[_Da] != null && output[_Da][_m] != null) { + contents[_Da] = de_Datapoints(__getArrayIfSingleItem(output[_Da][_m]), context); } return contents; }; @@ -5533,59 +5488,47 @@ const de_GetMetricStatisticsOutput = (output: any, context: __SerdeContext): Get */ const de_GetMetricStreamOutput = (output: any, context: __SerdeContext): GetMetricStreamOutput => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } if (output.IncludeFilters === "") { - contents.IncludeFilters = []; - } else if (output["IncludeFilters"] !== undefined && output["IncludeFilters"]["member"] !== undefined) { - contents.IncludeFilters = de_MetricStreamFilters( - __getArrayIfSingleItem(output["IncludeFilters"]["member"]), - context - ); + contents[_IF] = []; + } else if (output[_IF] != null && output[_IF][_m] != null) { + contents[_IF] = de_MetricStreamFilters(__getArrayIfSingleItem(output[_IF][_m]), context); } if (output.ExcludeFilters === "") { - contents.ExcludeFilters = []; - } else if (output["ExcludeFilters"] !== undefined && output["ExcludeFilters"]["member"] !== undefined) { - contents.ExcludeFilters = de_MetricStreamFilters( - __getArrayIfSingleItem(output["ExcludeFilters"]["member"]), - context - ); + contents[_EF] = []; + } else if (output[_EF] != null && output[_EF][_m] != null) { + contents[_EF] = de_MetricStreamFilters(__getArrayIfSingleItem(output[_EF][_m]), context); } - if (output["FirehoseArn"] !== undefined) { - contents.FirehoseArn = __expectString(output["FirehoseArn"]); + if (output[_FA] != null) { + contents[_FA] = __expectString(output[_FA]); } - if (output["RoleArn"] !== undefined) { - contents.RoleArn = __expectString(output["RoleArn"]); + if (output[_RAo] != null) { + contents[_RAo] = __expectString(output[_RAo]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } - if (output["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["LastUpdateDate"] !== undefined) { - contents.LastUpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdateDate"])); + if (output[_LUD] != null) { + contents[_LUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUD])); } - if (output["OutputFormat"] !== undefined) { - contents.OutputFormat = __expectString(output["OutputFormat"]); + if (output[_OF] != null) { + contents[_OF] = __expectString(output[_OF]); } if (output.StatisticsConfigurations === "") { - contents.StatisticsConfigurations = []; - } else if ( - output["StatisticsConfigurations"] !== undefined && - output["StatisticsConfigurations"]["member"] !== undefined - ) { - contents.StatisticsConfigurations = de_MetricStreamStatisticsConfigurations( - __getArrayIfSingleItem(output["StatisticsConfigurations"]["member"]), - context - ); - } - if (output["IncludeLinkedAccountsMetrics"] !== undefined) { - contents.IncludeLinkedAccountsMetrics = __parseBoolean(output["IncludeLinkedAccountsMetrics"]); + contents[_SC] = []; + } else if (output[_SC] != null && output[_SC][_m] != null) { + contents[_SC] = de_MetricStreamStatisticsConfigurations(__getArrayIfSingleItem(output[_SC][_m]), context); + } + if (output[_ILAM] != null) { + contents[_ILAM] = __parseBoolean(output[_ILAM]); } return contents; }; @@ -5595,8 +5538,8 @@ const de_GetMetricStreamOutput = (output: any, context: __SerdeContext): GetMetr */ const de_GetMetricWidgetImageOutput = (output: any, context: __SerdeContext): GetMetricWidgetImageOutput => { const contents: any = {}; - if (output["MetricWidgetImage"] !== undefined) { - contents.MetricWidgetImage = context.base64Decoder(output["MetricWidgetImage"]); + if (output[_MWI] != null) { + contents[_MWI] = context.base64Decoder(output[_MWI]); } return contents; }; @@ -5606,20 +5549,20 @@ const de_GetMetricWidgetImageOutput = (output: any, context: __SerdeContext): Ge */ const de_InsightRule = (output: any, context: __SerdeContext): InsightRule => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } - if (output["Schema"] !== undefined) { - contents.Schema = __expectString(output["Schema"]); + if (output[_Sc] != null) { + contents[_Sc] = __expectString(output[_Sc]); } - if (output["Definition"] !== undefined) { - contents.Definition = __expectString(output["Definition"]); + if (output[_De] != null) { + contents[_De] = __expectString(output[_De]); } - if (output["ManagedRule"] !== undefined) { - contents.ManagedRule = __parseBoolean(output["ManagedRule"]); + if (output[_MRana] != null) { + contents[_MRana] = __parseBoolean(output[_MRana]); } return contents; }; @@ -5630,20 +5573,17 @@ const de_InsightRule = (output: any, context: __SerdeContext): InsightRule => { const de_InsightRuleContributor = (output: any, context: __SerdeContext): InsightRuleContributor => { const contents: any = {}; if (output.Keys === "") { - contents.Keys = []; - } else if (output["Keys"] !== undefined && output["Keys"]["member"] !== undefined) { - contents.Keys = de_InsightRuleContributorKeys(__getArrayIfSingleItem(output["Keys"]["member"]), context); + contents[_Ke] = []; + } else if (output[_Ke] != null && output[_Ke][_m] != null) { + contents[_Ke] = de_InsightRuleContributorKeys(__getArrayIfSingleItem(output[_Ke][_m]), context); } - if (output["ApproximateAggregateValue"] !== undefined) { - contents.ApproximateAggregateValue = __strictParseFloat(output["ApproximateAggregateValue"]) as number; + if (output[_AAV] != null) { + contents[_AAV] = __strictParseFloat(output[_AAV]) as number; } if (output.Datapoints === "") { - contents.Datapoints = []; - } else if (output["Datapoints"] !== undefined && output["Datapoints"]["member"] !== undefined) { - contents.Datapoints = de_InsightRuleContributorDatapoints( - __getArrayIfSingleItem(output["Datapoints"]["member"]), - context - ); + contents[_Da] = []; + } else if (output[_Da] != null && output[_Da][_m] != null) { + contents[_Da] = de_InsightRuleContributorDatapoints(__getArrayIfSingleItem(output[_Da][_m]), context); } return contents; }; @@ -5653,11 +5593,11 @@ const de_InsightRuleContributor = (output: any, context: __SerdeContext): Insigh */ const de_InsightRuleContributorDatapoint = (output: any, context: __SerdeContext): InsightRuleContributorDatapoint => { const contents: any = {}; - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["ApproximateValue"] !== undefined) { - contents.ApproximateValue = __strictParseFloat(output["ApproximateValue"]) as number; + if (output[_AVp] != null) { + contents[_AVp] = __strictParseFloat(output[_AVp]) as number; } return contents; }; @@ -5714,29 +5654,29 @@ const de_InsightRuleContributors = (output: any, context: __SerdeContext): Insig */ const de_InsightRuleMetricDatapoint = (output: any, context: __SerdeContext): InsightRuleMetricDatapoint => { const contents: any = {}; - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["UniqueContributors"] !== undefined) { - contents.UniqueContributors = __strictParseFloat(output["UniqueContributors"]) as number; + if (output[_UC] != null) { + contents[_UC] = __strictParseFloat(output[_UC]) as number; } - if (output["MaxContributorValue"] !== undefined) { - contents.MaxContributorValue = __strictParseFloat(output["MaxContributorValue"]) as number; + if (output[_MCV] != null) { + contents[_MCV] = __strictParseFloat(output[_MCV]) as number; } - if (output["SampleCount"] !== undefined) { - contents.SampleCount = __strictParseFloat(output["SampleCount"]) as number; + if (output[_SCa] != null) { + contents[_SCa] = __strictParseFloat(output[_SCa]) as number; } - if (output["Average"] !== undefined) { - contents.Average = __strictParseFloat(output["Average"]) as number; + if (output[_Av] != null) { + contents[_Av] = __strictParseFloat(output[_Av]) as number; } - if (output["Sum"] !== undefined) { - contents.Sum = __strictParseFloat(output["Sum"]) as number; + if (output[_Su] != null) { + contents[_Su] = __strictParseFloat(output[_Su]) as number; } - if (output["Minimum"] !== undefined) { - contents.Minimum = __strictParseFloat(output["Minimum"]) as number; + if (output[_Mi] != null) { + contents[_Mi] = __strictParseFloat(output[_Mi]) as number; } - if (output["Maximum"] !== undefined) { - contents.Maximum = __strictParseFloat(output["Maximum"]) as number; + if (output[_Ma] != null) { + contents[_Ma] = __strictParseFloat(output[_Ma]) as number; } return contents; }; @@ -5768,8 +5708,8 @@ const de_InsightRules = (output: any, context: __SerdeContext): InsightRule[] => */ const de_InternalServiceFault = (output: any, context: __SerdeContext): InternalServiceFault => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Mes] != null) { + contents[_Mes] = __expectString(output[_Mes]); } return contents; }; @@ -5779,8 +5719,8 @@ const de_InternalServiceFault = (output: any, context: __SerdeContext): Internal */ const de_InvalidFormatFault = (output: any, context: __SerdeContext): InvalidFormatFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -5790,8 +5730,8 @@ const de_InvalidFormatFault = (output: any, context: __SerdeContext): InvalidFor */ const de_InvalidNextToken = (output: any, context: __SerdeContext): InvalidNextToken => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -5804,8 +5744,8 @@ const de_InvalidParameterCombinationException = ( context: __SerdeContext ): InvalidParameterCombinationException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -5815,8 +5755,8 @@ const de_InvalidParameterCombinationException = ( */ const de_InvalidParameterValueException = (output: any, context: __SerdeContext): InvalidParameterValueException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -5826,8 +5766,8 @@ const de_InvalidParameterValueException = (output: any, context: __SerdeContext) */ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Mes] != null) { + contents[_Mes] = __expectString(output[_Mes]); } return contents; }; @@ -5837,8 +5777,8 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE */ const de_LimitExceededFault = (output: any, context: __SerdeContext): LimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -5849,15 +5789,12 @@ const de_LimitExceededFault = (output: any, context: __SerdeContext): LimitExcee const de_ListDashboardsOutput = (output: any, context: __SerdeContext): ListDashboardsOutput => { const contents: any = {}; if (output.DashboardEntries === "") { - contents.DashboardEntries = []; - } else if (output["DashboardEntries"] !== undefined && output["DashboardEntries"]["member"] !== undefined) { - contents.DashboardEntries = de_DashboardEntries( - __getArrayIfSingleItem(output["DashboardEntries"]["member"]), - context - ); + contents[_DE] = []; + } else if (output[_DE] != null && output[_DE][_m] != null) { + contents[_DE] = de_DashboardEntries(__getArrayIfSingleItem(output[_DE][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5868,15 +5805,12 @@ const de_ListDashboardsOutput = (output: any, context: __SerdeContext): ListDash const de_ListManagedInsightRulesOutput = (output: any, context: __SerdeContext): ListManagedInsightRulesOutput => { const contents: any = {}; if (output.ManagedRules === "") { - contents.ManagedRules = []; - } else if (output["ManagedRules"] !== undefined && output["ManagedRules"]["member"] !== undefined) { - contents.ManagedRules = de_ManagedRuleDescriptions( - __getArrayIfSingleItem(output["ManagedRules"]["member"]), - context - ); + contents[_MRan] = []; + } else if (output[_MRan] != null && output[_MRan][_m] != null) { + contents[_MRan] = de_ManagedRuleDescriptions(__getArrayIfSingleItem(output[_MRan][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5887,17 +5821,17 @@ const de_ListManagedInsightRulesOutput = (output: any, context: __SerdeContext): const de_ListMetricsOutput = (output: any, context: __SerdeContext): ListMetricsOutput => { const contents: any = {}; if (output.Metrics === "") { - contents.Metrics = []; - } else if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) { - contents.Metrics = de_Metrics(__getArrayIfSingleItem(output["Metrics"]["member"]), context); + contents[_M] = []; + } else if (output[_M] != null && output[_M][_m] != null) { + contents[_M] = de_Metrics(__getArrayIfSingleItem(output[_M][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } if (output.OwningAccounts === "") { - contents.OwningAccounts = []; - } else if (output["OwningAccounts"] !== undefined && output["OwningAccounts"]["member"] !== undefined) { - contents.OwningAccounts = de_OwningAccounts(__getArrayIfSingleItem(output["OwningAccounts"]["member"]), context); + contents[_OAw] = []; + } else if (output[_OAw] != null && output[_OAw][_m] != null) { + contents[_OAw] = de_OwningAccounts(__getArrayIfSingleItem(output[_OAw][_m]), context); } return contents; }; @@ -5907,13 +5841,13 @@ const de_ListMetricsOutput = (output: any, context: __SerdeContext): ListMetrics */ const de_ListMetricStreamsOutput = (output: any, context: __SerdeContext): ListMetricStreamsOutput => { const contents: any = {}; - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } if (output.Entries === "") { - contents.Entries = []; - } else if (output["Entries"] !== undefined && output["Entries"]["member"] !== undefined) { - contents.Entries = de_MetricStreamEntries(__getArrayIfSingleItem(output["Entries"]["member"]), context); + contents[_En] = []; + } else if (output[_En] != null && output[_En][_m] != null) { + contents[_En] = de_MetricStreamEntries(__getArrayIfSingleItem(output[_En][_m]), context); } return contents; }; @@ -5924,9 +5858,9 @@ const de_ListMetricStreamsOutput = (output: any, context: __SerdeContext): ListM const de_ListTagsForResourceOutput = (output: any, context: __SerdeContext): ListTagsForResourceOutput => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_Ta] = []; + } else if (output[_Ta] != null && output[_Ta][_m] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Ta][_m]), context); } return contents; }; @@ -5936,14 +5870,14 @@ const de_ListTagsForResourceOutput = (output: any, context: __SerdeContext): Lis */ const de_ManagedRuleDescription = (output: any, context: __SerdeContext): ManagedRuleDescription => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["ResourceARN"] !== undefined) { - contents.ResourceARN = __expectString(output["ResourceARN"]); + if (output[_RARN] != null) { + contents[_RARN] = __expectString(output[_RARN]); } - if (output["RuleState"] !== undefined) { - contents.RuleState = de_ManagedRuleState(output["RuleState"], context); + if (output[_RS] != null) { + contents[_RS] = de_ManagedRuleState(output[_RS], context); } return contents; }; @@ -5964,11 +5898,11 @@ const de_ManagedRuleDescriptions = (output: any, context: __SerdeContext): Manag */ const de_ManagedRuleState = (output: any, context: __SerdeContext): ManagedRuleState => { const contents: any = {}; - if (output["RuleName"] !== undefined) { - contents.RuleName = __expectString(output["RuleName"]); + if (output[_RNu] != null) { + contents[_RNu] = __expectString(output[_RNu]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } return contents; }; @@ -5978,11 +5912,11 @@ const de_ManagedRuleState = (output: any, context: __SerdeContext): ManagedRuleS */ const de_MessageData = (output: any, context: __SerdeContext): MessageData => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_Cod] != null) { + contents[_Cod] = __expectString(output[_Cod]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -5992,16 +5926,16 @@ const de_MessageData = (output: any, context: __SerdeContext): MessageData => { */ const de_Metric = (output: any, context: __SerdeContext): Metric => { const contents: any = {}; - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } if (output.Dimensions === "") { - contents.Dimensions = []; - } else if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) { - contents.Dimensions = de_Dimensions(__getArrayIfSingleItem(output["Dimensions"]["member"]), context); + contents[_D] = []; + } else if (output[_D] != null && output[_D][_m] != null) { + contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); } return contents; }; @@ -6011,112 +5945,102 @@ const de_Metric = (output: any, context: __SerdeContext): Metric => { */ const de_MetricAlarm = (output: any, context: __SerdeContext): MetricAlarm => { const contents: any = {}; - if (output["AlarmName"] !== undefined) { - contents.AlarmName = __expectString(output["AlarmName"]); + if (output[_ANl] != null) { + contents[_ANl] = __expectString(output[_ANl]); } - if (output["AlarmArn"] !== undefined) { - contents.AlarmArn = __expectString(output["AlarmArn"]); + if (output[_AAl] != null) { + contents[_AAl] = __expectString(output[_AAl]); } - if (output["AlarmDescription"] !== undefined) { - contents.AlarmDescription = __expectString(output["AlarmDescription"]); + if (output[_AD] != null) { + contents[_AD] = __expectString(output[_AD]); } - if (output["AlarmConfigurationUpdatedTimestamp"] !== undefined) { - contents.AlarmConfigurationUpdatedTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["AlarmConfigurationUpdatedTimestamp"]) - ); + if (output[_ACUT] != null) { + contents[_ACUT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ACUT])); } - if (output["ActionsEnabled"] !== undefined) { - contents.ActionsEnabled = __parseBoolean(output["ActionsEnabled"]); + if (output[_AE] != null) { + contents[_AE] = __parseBoolean(output[_AE]); } if (output.OKActions === "") { - contents.OKActions = []; - } else if (output["OKActions"] !== undefined && output["OKActions"]["member"] !== undefined) { - contents.OKActions = de_ResourceList(__getArrayIfSingleItem(output["OKActions"]["member"]), context); + contents[_OKA] = []; + } else if (output[_OKA] != null && output[_OKA][_m] != null) { + contents[_OKA] = de_ResourceList(__getArrayIfSingleItem(output[_OKA][_m]), context); } if (output.AlarmActions === "") { - contents.AlarmActions = []; - } else if (output["AlarmActions"] !== undefined && output["AlarmActions"]["member"] !== undefined) { - contents.AlarmActions = de_ResourceList(__getArrayIfSingleItem(output["AlarmActions"]["member"]), context); + contents[_AA] = []; + } else if (output[_AA] != null && output[_AA][_m] != null) { + contents[_AA] = de_ResourceList(__getArrayIfSingleItem(output[_AA][_m]), context); } if (output.InsufficientDataActions === "") { - contents.InsufficientDataActions = []; - } else if ( - output["InsufficientDataActions"] !== undefined && - output["InsufficientDataActions"]["member"] !== undefined - ) { - contents.InsufficientDataActions = de_ResourceList( - __getArrayIfSingleItem(output["InsufficientDataActions"]["member"]), - context - ); + contents[_IDA] = []; + } else if (output[_IDA] != null && output[_IDA][_m] != null) { + contents[_IDA] = de_ResourceList(__getArrayIfSingleItem(output[_IDA][_m]), context); } - if (output["StateValue"] !== undefined) { - contents.StateValue = __expectString(output["StateValue"]); + if (output[_SV] != null) { + contents[_SV] = __expectString(output[_SV]); } - if (output["StateReason"] !== undefined) { - contents.StateReason = __expectString(output["StateReason"]); + if (output[_SRt] != null) { + contents[_SRt] = __expectString(output[_SRt]); } - if (output["StateReasonData"] !== undefined) { - contents.StateReasonData = __expectString(output["StateReasonData"]); + if (output[_SRD] != null) { + contents[_SRD] = __expectString(output[_SRD]); } - if (output["StateUpdatedTimestamp"] !== undefined) { - contents.StateUpdatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StateUpdatedTimestamp"])); + if (output[_SUT] != null) { + contents[_SUT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SUT])); } - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Statistic"] !== undefined) { - contents.Statistic = __expectString(output["Statistic"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["ExtendedStatistic"] !== undefined) { - contents.ExtendedStatistic = __expectString(output["ExtendedStatistic"]); + if (output[_ES] != null) { + contents[_ES] = __expectString(output[_ES]); } if (output.Dimensions === "") { - contents.Dimensions = []; - } else if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) { - contents.Dimensions = de_Dimensions(__getArrayIfSingleItem(output["Dimensions"]["member"]), context); + contents[_D] = []; + } else if (output[_D] != null && output[_D][_m] != null) { + contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); } - if (output["Period"] !== undefined) { - contents.Period = __strictParseInt32(output["Period"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["Unit"] !== undefined) { - contents.Unit = __expectString(output["Unit"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } - if (output["EvaluationPeriods"] !== undefined) { - contents.EvaluationPeriods = __strictParseInt32(output["EvaluationPeriods"]) as number; + if (output[_EP] != null) { + contents[_EP] = __strictParseInt32(output[_EP]) as number; } - if (output["DatapointsToAlarm"] !== undefined) { - contents.DatapointsToAlarm = __strictParseInt32(output["DatapointsToAlarm"]) as number; + if (output[_DTA] != null) { + contents[_DTA] = __strictParseInt32(output[_DTA]) as number; } - if (output["Threshold"] !== undefined) { - contents.Threshold = __strictParseFloat(output["Threshold"]) as number; + if (output[_Th] != null) { + contents[_Th] = __strictParseFloat(output[_Th]) as number; } - if (output["ComparisonOperator"] !== undefined) { - contents.ComparisonOperator = __expectString(output["ComparisonOperator"]); + if (output[_CO] != null) { + contents[_CO] = __expectString(output[_CO]); } - if (output["TreatMissingData"] !== undefined) { - contents.TreatMissingData = __expectString(output["TreatMissingData"]); + if (output[_TMD] != null) { + contents[_TMD] = __expectString(output[_TMD]); } - if (output["EvaluateLowSampleCountPercentile"] !== undefined) { - contents.EvaluateLowSampleCountPercentile = __expectString(output["EvaluateLowSampleCountPercentile"]); + if (output[_ELSCP] != null) { + contents[_ELSCP] = __expectString(output[_ELSCP]); } if (output.Metrics === "") { - contents.Metrics = []; - } else if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) { - contents.Metrics = de_MetricDataQueries(__getArrayIfSingleItem(output["Metrics"]["member"]), context); + contents[_M] = []; + } else if (output[_M] != null && output[_M][_m] != null) { + contents[_M] = de_MetricDataQueries(__getArrayIfSingleItem(output[_M][_m]), context); } - if (output["ThresholdMetricId"] !== undefined) { - contents.ThresholdMetricId = __expectString(output["ThresholdMetricId"]); + if (output[_TMI] != null) { + contents[_TMI] = __expectString(output[_TMI]); } - if (output["EvaluationState"] !== undefined) { - contents.EvaluationState = __expectString(output["EvaluationState"]); + if (output[_ESv] != null) { + contents[_ESv] = __expectString(output[_ESv]); } - if (output["StateTransitionedTimestamp"] !== undefined) { - contents.StateTransitionedTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["StateTransitionedTimestamp"]) - ); + if (output[_STT] != null) { + contents[_STT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STT])); } return contents; }; @@ -6148,26 +6072,26 @@ const de_MetricDataQueries = (output: any, context: __SerdeContext): MetricDataQ */ const de_MetricDataQuery = (output: any, context: __SerdeContext): MetricDataQuery => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["MetricStat"] !== undefined) { - contents.MetricStat = de_MetricStat(output["MetricStat"], context); + if (output[_MS] != null) { + contents[_MS] = de_MetricStat(output[_MS], context); } - if (output["Expression"] !== undefined) { - contents.Expression = __expectString(output["Expression"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["Label"] !== undefined) { - contents.Label = __expectString(output["Label"]); + if (output[_L] != null) { + contents[_L] = __expectString(output[_L]); } - if (output["ReturnData"] !== undefined) { - contents.ReturnData = __parseBoolean(output["ReturnData"]); + if (output[_RD] != null) { + contents[_RD] = __parseBoolean(output[_RD]); } - if (output["Period"] !== undefined) { - contents.Period = __strictParseInt32(output["Period"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["AccountId"] !== undefined) { - contents.AccountId = __expectString(output["AccountId"]); + if (output[_AI] != null) { + contents[_AI] = __expectString(output[_AI]); } return contents; }; @@ -6177,29 +6101,29 @@ const de_MetricDataQuery = (output: any, context: __SerdeContext): MetricDataQue */ const de_MetricDataResult = (output: any, context: __SerdeContext): MetricDataResult => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["Label"] !== undefined) { - contents.Label = __expectString(output["Label"]); + if (output[_L] != null) { + contents[_L] = __expectString(output[_L]); } if (output.Timestamps === "") { - contents.Timestamps = []; - } else if (output["Timestamps"] !== undefined && output["Timestamps"]["member"] !== undefined) { - contents.Timestamps = de_Timestamps(__getArrayIfSingleItem(output["Timestamps"]["member"]), context); + contents[_Tim] = []; + } else if (output[_Tim] != null && output[_Tim][_m] != null) { + contents[_Tim] = de_Timestamps(__getArrayIfSingleItem(output[_Tim][_m]), context); } if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_DatapointValues(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Val] = []; + } else if (output[_Val] != null && output[_Val][_m] != null) { + contents[_Val] = de_DatapointValues(__getArrayIfSingleItem(output[_Val][_m]), context); } - if (output["StatusCode"] !== undefined) { - contents.StatusCode = __expectString(output["StatusCode"]); + if (output[_SCt] != null) { + contents[_SCt] = __expectString(output[_SCt]); } if (output.Messages === "") { - contents.Messages = []; - } else if (output["Messages"] !== undefined && output["Messages"]["member"] !== undefined) { - contents.Messages = de_MetricDataResultMessages(__getArrayIfSingleItem(output["Messages"]["member"]), context); + contents[_Mess] = []; + } else if (output[_Mess] != null && output[_Mess][_m] != null) { + contents[_Mess] = de_MetricDataResultMessages(__getArrayIfSingleItem(output[_Mess][_m]), context); } return contents; }; @@ -6232,12 +6156,9 @@ const de_MetricDataResults = (output: any, context: __SerdeContext): MetricDataR const de_MetricMathAnomalyDetector = (output: any, context: __SerdeContext): MetricMathAnomalyDetector => { const contents: any = {}; if (output.MetricDataQueries === "") { - contents.MetricDataQueries = []; - } else if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) { - contents.MetricDataQueries = de_MetricDataQueries( - __getArrayIfSingleItem(output["MetricDataQueries"]["member"]), - context - ); + contents[_MDQ] = []; + } else if (output[_MDQ] != null && output[_MDQ][_m] != null) { + contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_m]), context); } return contents; }; @@ -6258,17 +6179,17 @@ const de_Metrics = (output: any, context: __SerdeContext): Metric[] => { */ const de_MetricStat = (output: any, context: __SerdeContext): MetricStat => { const contents: any = {}; - if (output["Metric"] !== undefined) { - contents.Metric = de_Metric(output["Metric"], context); + if (output[_Me] != null) { + contents[_Me] = de_Metric(output[_Me], context); } - if (output["Period"] !== undefined) { - contents.Period = __strictParseInt32(output["Period"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["Stat"] !== undefined) { - contents.Stat = __expectString(output["Stat"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Unit"] !== undefined) { - contents.Unit = __expectString(output["Unit"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } return contents; }; @@ -6289,26 +6210,26 @@ const de_MetricStreamEntries = (output: any, context: __SerdeContext): MetricStr */ const de_MetricStreamEntry = (output: any, context: __SerdeContext): MetricStreamEntry => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["LastUpdateDate"] !== undefined) { - contents.LastUpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUpdateDate"])); + if (output[_LUD] != null) { + contents[_LUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUD])); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["FirehoseArn"] !== undefined) { - contents.FirehoseArn = __expectString(output["FirehoseArn"]); + if (output[_FA] != null) { + contents[_FA] = __expectString(output[_FA]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Stat] != null) { + contents[_Stat] = __expectString(output[_Stat]); } - if (output["OutputFormat"] !== undefined) { - contents.OutputFormat = __expectString(output["OutputFormat"]); + if (output[_OF] != null) { + contents[_OF] = __expectString(output[_OF]); } return contents; }; @@ -6318,16 +6239,13 @@ const de_MetricStreamEntry = (output: any, context: __SerdeContext): MetricStrea */ const de_MetricStreamFilter = (output: any, context: __SerdeContext): MetricStreamFilter => { const contents: any = {}; - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } if (output.MetricNames === "") { - contents.MetricNames = []; - } else if (output["MetricNames"] !== undefined && output["MetricNames"]["member"] !== undefined) { - contents.MetricNames = de_MetricStreamFilterMetricNames( - __getArrayIfSingleItem(output["MetricNames"]["member"]), - context - ); + contents[_MNe] = []; + } else if (output[_MNe] != null && output[_MNe][_m] != null) { + contents[_MNe] = de_MetricStreamFilterMetricNames(__getArrayIfSingleItem(output[_MNe][_m]), context); } return contents; }; @@ -6374,20 +6292,14 @@ const de_MetricStreamStatisticsConfiguration = ( ): MetricStreamStatisticsConfiguration => { const contents: any = {}; if (output.IncludeMetrics === "") { - contents.IncludeMetrics = []; - } else if (output["IncludeMetrics"] !== undefined && output["IncludeMetrics"]["member"] !== undefined) { - contents.IncludeMetrics = de_MetricStreamStatisticsIncludeMetrics( - __getArrayIfSingleItem(output["IncludeMetrics"]["member"]), - context - ); + contents[_IM] = []; + } else if (output[_IM] != null && output[_IM][_m] != null) { + contents[_IM] = de_MetricStreamStatisticsIncludeMetrics(__getArrayIfSingleItem(output[_IM][_m]), context); } if (output.AdditionalStatistics === "") { - contents.AdditionalStatistics = []; - } else if (output["AdditionalStatistics"] !== undefined && output["AdditionalStatistics"]["member"] !== undefined) { - contents.AdditionalStatistics = de_MetricStreamStatisticsAdditionalStatistics( - __getArrayIfSingleItem(output["AdditionalStatistics"]["member"]), - context - ); + contents[_AS] = []; + } else if (output[_AS] != null && output[_AS][_m] != null) { + contents[_AS] = de_MetricStreamStatisticsAdditionalStatistics(__getArrayIfSingleItem(output[_AS][_m]), context); } return contents; }; @@ -6425,11 +6337,11 @@ const de_MetricStreamStatisticsIncludeMetrics = ( */ const de_MetricStreamStatisticsMetric = (output: any, context: __SerdeContext): MetricStreamStatisticsMetric => { const contents: any = {}; - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } return contents; }; @@ -6442,8 +6354,8 @@ const de_MissingRequiredParameterException = ( context: __SerdeContext ): MissingRequiredParameterException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -6464,17 +6376,17 @@ const de_OwningAccounts = (output: any, context: __SerdeContext): string[] => { */ const de_PartialFailure = (output: any, context: __SerdeContext): PartialFailure => { const contents: any = {}; - if (output["FailureResource"] !== undefined) { - contents.FailureResource = __expectString(output["FailureResource"]); + if (output[_FR] != null) { + contents[_FR] = __expectString(output[_FR]); } - if (output["ExceptionType"] !== undefined) { - contents.ExceptionType = __expectString(output["ExceptionType"]); + if (output[_ETx] != null) { + contents[_ETx] = __expectString(output[_ETx]); } - if (output["FailureCode"] !== undefined) { - contents.FailureCode = __expectString(output["FailureCode"]); + if (output[_FC] != null) { + contents[_FC] = __expectString(output[_FC]); } - if (output["FailureDescription"] !== undefined) { - contents.FailureDescription = __expectString(output["FailureDescription"]); + if (output[_FD] != null) { + contents[_FD] = __expectString(output[_FD]); } return contents; }; @@ -6493,15 +6405,9 @@ const de_PutAnomalyDetectorOutput = (output: any, context: __SerdeContext): PutA const de_PutDashboardOutput = (output: any, context: __SerdeContext): PutDashboardOutput => { const contents: any = {}; if (output.DashboardValidationMessages === "") { - contents.DashboardValidationMessages = []; - } else if ( - output["DashboardValidationMessages"] !== undefined && - output["DashboardValidationMessages"]["member"] !== undefined - ) { - contents.DashboardValidationMessages = de_DashboardValidationMessages( - __getArrayIfSingleItem(output["DashboardValidationMessages"]["member"]), - context - ); + contents[_DVM] = []; + } else if (output[_DVM] != null && output[_DVM][_m] != null) { + contents[_DVM] = de_DashboardValidationMessages(__getArrayIfSingleItem(output[_DVM][_m]), context); } return contents; }; @@ -6520,9 +6426,9 @@ const de_PutInsightRuleOutput = (output: any, context: __SerdeContext): PutInsig const de_PutManagedInsightRulesOutput = (output: any, context: __SerdeContext): PutManagedInsightRulesOutput => { const contents: any = {}; if (output.Failures === "") { - contents.Failures = []; - } else if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) { - contents.Failures = de_BatchFailures(__getArrayIfSingleItem(output["Failures"]["member"]), context); + contents[_F] = []; + } else if (output[_F] != null && output[_F][_m] != null) { + contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); } return contents; }; @@ -6532,8 +6438,8 @@ const de_PutManagedInsightRulesOutput = (output: any, context: __SerdeContext): */ const de_PutMetricStreamOutput = (output: any, context: __SerdeContext): PutMetricStreamOutput => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -6543,11 +6449,11 @@ const de_PutMetricStreamOutput = (output: any, context: __SerdeContext): PutMetr */ const de_Range = (output: any, context: __SerdeContext): Range => { const contents: any = {}; - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_ST] != null) { + contents[_ST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ST])); } - if (output["EndTime"] !== undefined) { - contents.EndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTime"])); + if (output[_ET] != null) { + contents[_ET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ET])); } return contents; }; @@ -6568,8 +6474,8 @@ const de_ResourceList = (output: any, context: __SerdeContext): string[] => { */ const de_ResourceNotFound = (output: any, context: __SerdeContext): ResourceNotFound => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -6579,14 +6485,14 @@ const de_ResourceNotFound = (output: any, context: __SerdeContext): ResourceNotF */ const de_ResourceNotFoundException = (output: any, context: __SerdeContext): ResourceNotFoundException => { const contents: any = {}; - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RT] != null) { + contents[_RT] = __expectString(output[_RT]); } - if (output["ResourceId"] !== undefined) { - contents.ResourceId = __expectString(output["ResourceId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Mes] != null) { + contents[_Mes] = __expectString(output[_Mes]); } return contents; }; @@ -6596,19 +6502,19 @@ const de_ResourceNotFoundException = (output: any, context: __SerdeContext): Res */ const de_SingleMetricAnomalyDetector = (output: any, context: __SerdeContext): SingleMetricAnomalyDetector => { const contents: any = {}; - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } if (output.Dimensions === "") { - contents.Dimensions = []; - } else if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) { - contents.Dimensions = de_Dimensions(__getArrayIfSingleItem(output["Dimensions"]["member"]), context); + contents[_D] = []; + } else if (output[_D] != null && output[_D][_m] != null) { + contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); } - if (output["Stat"] !== undefined) { - contents.Stat = __expectString(output["Stat"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -6634,11 +6540,11 @@ const de_StopMetricStreamsOutput = (output: any, context: __SerdeContext): StopM */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -6722,6 +6628,215 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2010-08-01"; +const _A = "Action"; +const _AA = "AlarmActions"; +const _AAV = "ApproximateAggregateValue"; +const _AAl = "AlarmArn"; +const _ACUT = "AlarmConfigurationUpdatedTimestamp"; +const _AD = "AlarmDescription"; +const _ADT = "AnomalyDetectorTypes"; +const _ADn = "AnomalyDetectors"; +const _AE = "ActionsEnabled"; +const _AHI = "AlarmHistoryItems"; +const _AI = "AccountId"; +const _AN = "AlarmNames"; +const _ANP = "AlarmNamePrefix"; +const _ANl = "AlarmName"; +const _AP = "ActionPrefix"; +const _AR = "AlarmRule"; +const _AS = "AdditionalStatistics"; +const _ASB = "ActionsSuppressedBy"; +const _ASEP = "ActionsSuppressorExtensionPeriod"; +const _ASR = "ActionsSuppressedReason"; +const _ASWP = "ActionsSuppressorWaitPeriod"; +const _ASc = "ActionsSuppressor"; +const _ASg = "AggregationStatistic"; +const _AT = "AlarmTypes"; +const _ATl = "AlarmType"; +const _AUC = "ApproximateUniqueCount"; +const _AV = "AggregateValue"; +const _AVp = "ApproximateValue"; +const _Ar = "Arn"; +const _Av = "Average"; +const _C = "Counts"; +const _CA = "CompositeAlarms"; +const _CD = "CreationDate"; +const _CO = "ComparisonOperator"; +const _COAN = "ChildrenOfAlarmName"; +const _Co = "Configuration"; +const _Cod = "Code"; +const _Con = "Contributors"; +const _D = "Dimensions"; +const _DA = "DeleteAlarms"; +const _DAA = "DisableAlarmActions"; +const _DAD = "DeleteAnomalyDetector"; +const _DADe = "DescribeAnomalyDetectors"; +const _DAFM = "DescribeAlarmsForMetric"; +const _DAH = "DescribeAlarmHistory"; +const _DAa = "DashboardArn"; +const _DAe = "DescribeAlarms"; +const _DB = "DashboardBody"; +const _DD = "DeleteDashboards"; +const _DE = "DashboardEntries"; +const _DIR = "DeleteInsightRules"; +const _DIRe = "DescribeInsightRules"; +const _DIRi = "DisableInsightRules"; +const _DMS = "DeleteMetricStream"; +const _DN = "DashboardNames"; +const _DNP = "DashboardNamePrefix"; +const _DNa = "DashboardName"; +const _DP = "DataPath"; +const _DTA = "DatapointsToAlarm"; +const _DVM = "DashboardValidationMessages"; +const _Da = "Datapoints"; +const _De = "Definition"; +const _E = "Expression"; +const _EAA = "EnableAlarmActions"; +const _ED = "EndDate"; +const _EF = "ExcludeFilters"; +const _EIR = "EnableInsightRules"; +const _ELSCP = "EvaluateLowSampleCountPercentile"; +const _EP = "EvaluationPeriods"; +const _ES = "ExtendedStatistic"; +const _ESv = "EvaluationState"; +const _ESx = "ExtendedStatistics"; +const _ET = "EndTime"; +const _ETR = "ExcludedTimeRanges"; +const _ETx = "ExceptionType"; +const _En = "Entries"; +const _F = "Failures"; +const _FA = "FirehoseArn"; +const _FC = "FailureCode"; +const _FD = "FailureDescription"; +const _FR = "FailureResource"; +const _GD = "GetDashboard"; +const _GIRR = "GetInsightRuleReport"; +const _GMD = "GetMetricData"; +const _GMS = "GetMetricStatistics"; +const _GMSe = "GetMetricStream"; +const _GMWI = "GetMetricWidgetImage"; +const _HD = "HistoryData"; +const _HIT = "HistoryItemType"; +const _HS = "HistorySummary"; +const _I = "Id"; +const _IDA = "InsufficientDataActions"; +const _IF = "IncludeFilters"; +const _ILA = "IncludeLinkedAccounts"; +const _ILAM = "IncludeLinkedAccountsMetrics"; +const _IM = "IncludeMetrics"; +const _IR = "InsightRules"; +const _K = "Key"; +const _KL = "KeyLabels"; +const _Ke = "Keys"; +const _L = "Label"; +const _LD = "ListDashboards"; +const _LM = "ListMetrics"; +const _LMIR = "ListManagedInsightRules"; +const _LMS = "ListMetricStreams"; +const _LMa = "LastModified"; +const _LO = "LabelOptions"; +const _LTFR = "ListTagsForResource"; +const _LUD = "LastUpdateDate"; +const _M = "Metrics"; +const _MA = "MetricAlarms"; +const _MCC = "MaxContributorCount"; +const _MCV = "MaxContributorValue"; +const _MD = "MaxDatapoints"; +const _MDQ = "MetricDataQueries"; +const _MDR = "MetricDataResults"; +const _MDe = "MetricData"; +const _MDet = "MetricDatapoints"; +const _MMAD = "MetricMathAnomalyDetector"; +const _MN = "MetricName"; +const _MNe = "MetricNames"; +const _MR = "MaxRecords"; +const _MRa = "MaxResults"; +const _MRan = "ManagedRules"; +const _MRana = "ManagedRule"; +const _MS = "MetricStat"; +const _MT = "MetricTimezone"; +const _MW = "MetricWidget"; +const _MWI = "MetricWidgetImage"; +const _Ma = "Maximum"; +const _Me = "Metric"; +const _Mes = "Message"; +const _Mess = "Messages"; +const _Mi = "Minimum"; +const _N = "Namespace"; +const _NT = "NextToken"; +const _Na = "Name"; +const _Nam = "Names"; +const _OA = "OwningAccount"; +const _OAw = "OwningAccounts"; +const _OB = "OrderBy"; +const _OF = "OutputFormat"; +const _OKA = "OKActions"; +const _P = "Period"; +const _PAD = "PutAnomalyDetector"; +const _PCA = "PutCompositeAlarm"; +const _PD = "PutDashboard"; +const _PIR = "PutInsightRule"; +const _PMA = "PutMetricAlarm"; +const _PMD = "PutMetricData"; +const _PMIR = "PutManagedInsightRules"; +const _PMS = "PutMetricStream"; +const _POAN = "ParentsOfAlarmName"; +const _RA = "RecentlyActive"; +const _RARN = "ResourceARN"; +const _RAo = "RoleArn"; +const _RD = "ReturnData"; +const _RDu = "RuleDefinition"; +const _RI = "ResourceId"; +const _RN = "RuleNames"; +const _RNu = "RuleName"; +const _RS = "RuleState"; +const _RT = "ResourceType"; +const _S = "Stat"; +const _SAS = "SetAlarmState"; +const _SB = "ScanBy"; +const _SC = "StatisticsConfigurations"; +const _SCa = "SampleCount"; +const _SCt = "StatusCode"; +const _SD = "StartDate"; +const _SMAD = "SingleMetricAnomalyDetector"; +const _SMS = "StartMetricStreams"; +const _SMSt = "StopMetricStreams"; +const _SR = "StorageResolution"; +const _SRD = "StateReasonData"; +const _SRt = "StateReason"; +const _ST = "StartTime"; +const _STT = "StateTransitionedTimestamp"; +const _SUT = "StateUpdatedTimestamp"; +const _SV = "StateValue"; +const _SVt = "StatisticValues"; +const _Sc = "Schema"; +const _Si = "Size"; +const _St = "Statistic"; +const _Sta = "Statistics"; +const _Stat = "State"; +const _Su = "Sum"; +const _T = "Timezone"; +const _TK = "TagKeys"; +const _TMD = "TreatMissingData"; +const _TMI = "ThresholdMetricId"; +const _TN = "TemplateName"; +const _TR = "TagResource"; +const _Ta = "Tags"; +const _Th = "Threshold"; +const _Ti = "Timestamp"; +const _Tim = "Timestamps"; +const _U = "Unit"; +const _UC = "UniqueContributors"; +const _UR = "UntagResource"; +const _V = "Version"; +const _Va = "Value"; +const _Val = "Values"; +const _dVM = "dashboardValidationMessages"; +const _e = "entry"; +const _m = "member"; +const _me = "message"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-codeartifact/package.json b/clients/client-codeartifact/package.json index 3fb07e0cfad5..e40184f904dc 100644 --- a/clients/client-codeartifact/package.json +++ b/clients/client-codeartifact/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-codeartifact/src/models/models_0.ts b/clients/client-codeartifact/src/models/models_0.ts index 7a8d19f5dd64..6b4cbb777827 100644 --- a/clients/client-codeartifact/src/models/models_0.ts +++ b/clients/client-codeartifact/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { CodeartifactServiceException as __BaseException } from "./CodeartifactServiceException"; diff --git a/clients/client-codeartifact/src/protocols/Aws_restJson1.ts b/clients/client-codeartifact/src/protocols/Aws_restJson1.ts index b5d4ef3cc251..921cca9371b1 100644 --- a/clients/client-codeartifact/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeartifact/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -160,27 +161,18 @@ export const se_AssociateExternalConnectionCommand = async ( input: AssociateExternalConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection"; + b.bp("/v1/repository/external-connection"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - "external-connection": [, __expectNonNull(input.externalConnection!, `externalConnection`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_ec]: [, __expectNonNull(input[_eC]!, `externalConnection`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -190,20 +182,19 @@ export const se_CopyPackageVersionsCommand = async ( input: CopyPackageVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/copy"; + b.bp("/v1/package/versions/copy"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - "source-repository": [, __expectNonNull(input.sourceRepository!, `sourceRepository`)], - "destination-repository": [, __expectNonNull(input.destinationRepository!, `destinationRepository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_sr]: [, __expectNonNull(input[_sR]!, `sourceRepository`)], + [_dr]: [, __expectNonNull(input[_dR]!, `destinationRepository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], }); let body: any; body = JSON.stringify( @@ -214,16 +205,8 @@ export const se_CopyPackageVersionsCommand = async ( versions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -233,13 +216,13 @@ export const se_CreateDomainCommand = async ( input: CreateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain"; + b.bp("/v1/domain"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], }); let body: any; body = JSON.stringify( @@ -248,16 +231,8 @@ export const se_CreateDomainCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -267,15 +242,15 @@ export const se_CreateRepositoryCommand = async ( input: CreateRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository"; + b.bp("/v1/repository"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], }); let body: any; body = JSON.stringify( @@ -285,16 +260,8 @@ export const se_CreateRepositoryCommand = async ( upstreams: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -304,24 +271,16 @@ export const se_DeleteDomainCommand = async ( input: DeleteDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain"; + b.bp("/v1/domain"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -331,26 +290,17 @@ export const se_DeleteDomainPermissionsPolicyCommand = async ( input: DeleteDomainPermissionsPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy"; + b.bp("/v1/domain/permissions/policy"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - "policy-revision": [, input.policyRevision!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_pr]: [, input[_pR]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -360,28 +310,20 @@ export const se_DeletePackageCommand = async ( input: DeletePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package"; + b.bp("/v1/package"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -391,19 +333,18 @@ export const se_DeletePackageVersionsCommand = async ( input: DeletePackageVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/delete"; + b.bp("/v1/package/versions/delete"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], }); let body: any; body = JSON.stringify( @@ -412,16 +353,8 @@ export const se_DeletePackageVersionsCommand = async ( versions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -431,25 +364,17 @@ export const se_DeleteRepositoryCommand = async ( input: DeleteRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository"; + b.bp("/v1/repository"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -459,27 +384,18 @@ export const se_DeleteRepositoryPermissionsPolicyCommand = async ( input: DeleteRepositoryPermissionsPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policies"; + b.bp("/v1/repository/permissions/policies"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - "policy-revision": [, input.policyRevision!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_pr]: [, input[_pR]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -489,24 +405,16 @@ export const se_DescribeDomainCommand = async ( input: DescribeDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain"; + b.bp("/v1/domain"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -516,28 +424,20 @@ export const se_DescribePackageCommand = async ( input: DescribePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package"; + b.bp("/v1/package"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -547,29 +447,21 @@ export const se_DescribePackageVersionCommand = async ( input: DescribePackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version"; + b.bp("/v1/package/version"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], - version: [, __expectNonNull(input.packageVersion!, `packageVersion`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], + [_v]: [, __expectNonNull(input[_pV]!, `packageVersion`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -579,25 +471,17 @@ export const se_DescribeRepositoryCommand = async ( input: DescribeRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository"; + b.bp("/v1/repository"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -607,27 +491,18 @@ export const se_DisassociateExternalConnectionCommand = async ( input: DisassociateExternalConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection"; + b.bp("/v1/repository/external-connection"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - "external-connection": [, __expectNonNull(input.externalConnection!, `externalConnection`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_ec]: [, __expectNonNull(input[_eC]!, `externalConnection`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -637,19 +512,18 @@ export const se_DisposePackageVersionsCommand = async ( input: DisposePackageVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/dispose"; + b.bp("/v1/package/versions/dispose"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], }); let body: any; body = JSON.stringify( @@ -659,16 +533,8 @@ export const se_DisposePackageVersionsCommand = async ( versions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -678,26 +544,17 @@ export const se_GetAuthorizationTokenCommand = async ( input: GetAuthorizationTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/authorization-token"; + b.bp("/v1/authorization-token"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - duration: [() => input.durationSeconds !== void 0, () => input.durationSeconds!.toString()], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_du]: [() => input.durationSeconds !== void 0, () => input[_dS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -707,25 +564,16 @@ export const se_GetDomainPermissionsPolicyCommand = async ( input: GetDomainPermissionsPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy"; + b.bp("/v1/domain/permissions/policy"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -735,32 +583,23 @@ export const se_GetPackageVersionAssetCommand = async ( input: GetPackageVersionAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/asset"; + b.bp("/v1/package/version/asset"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], - version: [, __expectNonNull(input.packageVersion!, `packageVersion`)], - asset: [, __expectNonNull(input.asset!, `asset`)], - revision: [, input.packageVersionRevision!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], + [_v]: [, __expectNonNull(input[_pV]!, `packageVersion`)], + [_a]: [, __expectNonNull(input[_a]!, `asset`)], + [_re]: [, input[_pVR]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -770,30 +609,21 @@ export const se_GetPackageVersionReadmeCommand = async ( input: GetPackageVersionReadmeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/readme"; + b.bp("/v1/package/version/readme"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], - version: [, __expectNonNull(input.packageVersion!, `packageVersion`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], + [_v]: [, __expectNonNull(input[_pV]!, `packageVersion`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -803,27 +633,18 @@ export const se_GetRepositoryEndpointCommand = async ( input: GetRepositoryEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/endpoint"; + b.bp("/v1/repository/endpoint"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -833,26 +654,17 @@ export const se_GetRepositoryPermissionsPolicyCommand = async ( input: GetRepositoryPermissionsPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policy"; + b.bp("/v1/repository/permissions/policy"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -862,11 +674,11 @@ export const se_ListDomainsCommand = async ( input: ListDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domains"; + b.bp("/v1/domains"); let body: any; body = JSON.stringify( take(input, { @@ -874,15 +686,8 @@ export const se_ListDomainsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -892,32 +697,24 @@ export const se_ListPackagesCommand = async ( input: ListPackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/packages"; + b.bp("/v1/packages"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, input.format!], - namespace: [, input.namespace!], - "package-prefix": [, input.packagePrefix!], - "max-results": [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - "next-token": [, input.nextToken!], - publish: [, input.publish!], - upstream: [, input.upstream!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, input[_f]!], + [_n]: [, input[_n]!], + [_pp]: [, input[_pP]!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nt]: [, input[_nT]!], + [_pu]: [, input[_pu]!], + [_u]: [, input[_u]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -927,32 +724,23 @@ export const se_ListPackageVersionAssetsCommand = async ( input: ListPackageVersionAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/assets"; + b.bp("/v1/package/version/assets"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], - version: [, __expectNonNull(input.packageVersion!, `packageVersion`)], - "max-results": [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - "next-token": [, input.nextToken!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], + [_v]: [, __expectNonNull(input[_pV]!, `packageVersion`)], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nt]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -962,31 +750,22 @@ export const se_ListPackageVersionDependenciesCommand = async ( input: ListPackageVersionDependenciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/dependencies"; + b.bp("/v1/package/version/dependencies"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], - version: [, __expectNonNull(input.packageVersion!, `packageVersion`)], - "next-token": [, input.nextToken!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], + [_v]: [, __expectNonNull(input[_pV]!, `packageVersion`)], + [_nt]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -996,33 +775,25 @@ export const se_ListPackageVersionsCommand = async ( input: ListPackageVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions"; + b.bp("/v1/package/versions"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], - status: [, input.status!], - sortBy: [, input.sortBy!], - "max-results": [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - "next-token": [, input.nextToken!], - originType: [, input.originType!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], + [_s]: [, input[_s]!], + [_sB]: [, input[_sB]!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nt]: [, input[_nT]!], + [_oT]: [, input[_oT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1032,25 +803,17 @@ export const se_ListRepositoriesCommand = async ( input: ListRepositoriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repositories"; + b.bp("/v1/repositories"); const query: any = map({ - "repository-prefix": [, input.repositoryPrefix!], - "max-results": [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - "next-token": [, input.nextToken!], + [_rp]: [, input[_rP]!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nt]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1060,29 +823,20 @@ export const se_ListRepositoriesInDomainCommand = async ( input: ListRepositoriesInDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/repositories"; + b.bp("/v1/domain/repositories"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - "administrator-account": [, input.administratorAccount!], - "repository-prefix": [, input.repositoryPrefix!], - "max-results": [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - "next-token": [, input.nextToken!], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_aa]: [, input[_aA]!], + [_rp]: [, input[_rP]!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nt]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1092,23 +846,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags"; + b.bp("/v1/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1118,38 +864,29 @@ export const se_PublishPackageVersionCommand = async ( input: PublishPackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-amz-content-sha256": input.assetSHA256!, + [_xacs]: input[_aSHA]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/publish"; + b.bp("/v1/package/version/publish"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], - version: [, __expectNonNull(input.packageVersion!, `packageVersion`)], - asset: [, __expectNonNull(input.assetName!, `assetName`)], - unfinished: [() => input.unfinished !== void 0, () => input.unfinished!.toString()], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], + [_v]: [, __expectNonNull(input[_pV]!, `packageVersion`)], + [_a]: [, __expectNonNull(input[_aN]!, `assetName`)], + [_un]: [() => input.unfinished !== void 0, () => input[_un]!.toString()], }); let body: any; if (input.assetContent !== undefined) { body = input.assetContent; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1159,12 +896,11 @@ export const se_PutDomainPermissionsPolicyCommand = async ( input: PutDomainPermissionsPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy"; + b.bp("/v1/domain/permissions/policy"); let body: any; body = JSON.stringify( take(input, { @@ -1174,15 +910,8 @@ export const se_PutDomainPermissionsPolicyCommand = async ( policyRevision: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1192,18 +921,18 @@ export const se_PutPackageOriginConfigurationCommand = async ( input: PutPackageOriginConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package"; + b.bp("/v1/package"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], }); let body: any; body = JSON.stringify( @@ -1211,16 +940,8 @@ export const se_PutPackageOriginConfigurationCommand = async ( restrictions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1230,16 +951,15 @@ export const se_PutRepositoryPermissionsPolicyCommand = async ( input: PutRepositoryPermissionsPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policy"; + b.bp("/v1/repository/permissions/policy"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], }); let body: any; body = JSON.stringify( @@ -1248,16 +968,8 @@ export const se_PutRepositoryPermissionsPolicyCommand = async ( policyRevision: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1267,13 +979,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tag"; + b.bp("/v1/tag"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -1281,16 +993,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1300,13 +1004,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/untag"; + b.bp("/v1/untag"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -1314,16 +1018,8 @@ export const se_UntagResourceCommand = async ( tagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1333,19 +1029,18 @@ export const se_UpdatePackageVersionsStatusCommand = async ( input: UpdatePackageVersionsStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/update_status"; + b.bp("/v1/package/versions/update_status"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], - format: [, __expectNonNull(input.format!, `format`)], - namespace: [, input.namespace!], - package: [, __expectNonNull(input.package!, `package`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], + [_f]: [, __expectNonNull(input[_f]!, `format`)], + [_n]: [, input[_n]!], + [_p]: [, __expectNonNull(input[_p]!, `package`)], }); let body: any; body = JSON.stringify( @@ -1356,16 +1051,8 @@ export const se_UpdatePackageVersionsStatusCommand = async ( versions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1375,15 +1062,15 @@ export const se_UpdateRepositoryCommand = async ( input: UpdateRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository"; + b.bp("/v1/repository"); const query: any = map({ - domain: [, __expectNonNull(input.domain!, `domain`)], - "domain-owner": [, input.domainOwner!], - repository: [, __expectNonNull(input.repository!, `repository`)], + [_d]: [, __expectNonNull(input[_d]!, `domain`)], + [_do]: [, input[_dO]!], + [_r]: [, __expectNonNull(input[_r]!, `repository`)], }); let body: any; body = JSON.stringify( @@ -1392,16 +1079,8 @@ export const se_UpdateRepositoryCommand = async ( upstreams: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2533,9 +2212,9 @@ export const de_GetPackageVersionAssetCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - assetName: [, output.headers["x-assetname"]], - packageVersion: [, output.headers["x-packageversion"]], - packageVersionRevision: [, output.headers["x-packageversionrevision"]], + [_aN]: [, output.headers[_xa]], + [_pV]: [, output.headers[_xp]], + [_pVR]: [, output.headers[_xp_]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -3854,10 +3533,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -4086,6 +3762,54 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "asset"; +const _aA = "administratorAccount"; +const _aN = "assetName"; +const _aSHA = "assetSHA256"; +const _aa = "administrator-account"; +const _d = "domain"; +const _dO = "domainOwner"; +const _dR = "destinationRepository"; +const _dS = "durationSeconds"; +const _do = "domain-owner"; +const _dr = "destination-repository"; +const _du = "duration"; +const _eC = "externalConnection"; +const _ec = "external-connection"; +const _f = "format"; +const _mR = "maxResults"; +const _mr = "max-results"; +const _n = "namespace"; +const _nT = "nextToken"; +const _nt = "next-token"; +const _oT = "originType"; +const _p = "package"; +const _pP = "packagePrefix"; +const _pR = "policyRevision"; +const _pV = "packageVersion"; +const _pVR = "packageVersionRevision"; +const _pp = "package-prefix"; +const _pr = "policy-revision"; +const _pu = "publish"; +const _r = "repository"; +const _rA = "resourceArn"; +const _rAS = "retryAfterSeconds"; +const _rP = "repositoryPrefix"; +const _ra = "retry-after"; +const _re = "revision"; +const _rp = "repository-prefix"; +const _s = "status"; +const _sB = "sortBy"; +const _sR = "sourceRepository"; +const _sr = "source-repository"; +const _u = "upstream"; +const _un = "unfinished"; +const _v = "version"; +const _xa = "x-assetname"; +const _xacs = "x-amz-content-sha256"; +const _xp = "x-packageversion"; +const _xp_ = "x-packageversionrevision"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-codecatalyst/package.json b/clients/client-codecatalyst/package.json index f704dc1a4c75..e8538e94d455 100644 --- a/clients/client-codecatalyst/package.json +++ b/clients/client-codecatalyst/package.json @@ -32,7 +32,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", - "@smithy/core": "^1.1.0", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts index c279833e788f..c849acbb4049 100644 --- a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts +++ b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -139,11 +140,11 @@ export const se_CreateAccessTokenCommand = async ( input: CreateAccessTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/accessTokens"; + b.bp("/v1/accessTokens"); let body: any; body = JSON.stringify( take(input, { @@ -151,15 +152,8 @@ export const se_CreateAccessTokenCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -169,15 +163,13 @@ export const se_CreateDevEnvironmentCommand = async ( input: CreateDevEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; body = JSON.stringify( take(input, { @@ -191,15 +183,8 @@ export const se_CreateDevEnvironmentCommand = async ( vpcConnectionName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -209,13 +194,12 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); + b.bp("/v1/spaces/{spaceName}/projects"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); let body: any; body = JSON.stringify( take(input, { @@ -223,15 +207,8 @@ export const se_CreateProjectCommand = async ( displayName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -241,31 +218,22 @@ export const se_CreateSourceRepositoryCommand = async ( input: CreateSourceRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -275,39 +243,23 @@ export const se_CreateSourceRepositoryBranchCommand = async ( input: CreateSourceRepositoryBranchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sourceRepositoryName", - () => input.sourceRepositoryName!, - "{sourceRepositoryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("sourceRepositoryName", () => input.sourceRepositoryName!, "{sourceRepositoryName}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { headCommitId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -317,20 +269,13 @@ export const se_DeleteAccessTokenCommand = async ( input: DeleteAccessTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/accessTokens/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/accessTokens/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -340,24 +285,15 @@ export const se_DeleteDevEnvironmentCommand = async ( input: DeleteDevEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -367,22 +303,14 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{spaceName}/projects/{name}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -392,24 +320,15 @@ export const se_DeleteSourceRepositoryCommand = async ( input: DeleteSourceRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -419,20 +338,13 @@ export const se_DeleteSpaceCommand = async ( input: DeleteSpaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -442,24 +354,15 @@ export const se_GetDevEnvironmentCommand = async ( input: GetDevEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -469,22 +372,14 @@ export const se_GetProjectCommand = async ( input: GetProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{spaceName}/projects/{name}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -494,24 +389,15 @@ export const se_GetSourceRepositoryCommand = async ( input: GetSourceRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -521,31 +407,15 @@ export const se_GetSourceRepositoryCloneUrlsCommand = async ( input: GetSourceRepositoryCloneUrlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/cloneUrls"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sourceRepositoryName", - () => input.sourceRepositoryName!, - "{sourceRepositoryName}", - false - ); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/cloneUrls"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("sourceRepositoryName", () => input.sourceRepositoryName!, "{sourceRepositoryName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -555,20 +425,13 @@ export const se_GetSpaceCommand = async ( input: GetSpaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -578,21 +441,13 @@ export const se_GetSubscriptionCommand = async ( input: GetSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/subscription"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); + b.bp("/v1/spaces/{spaceName}/subscription"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -602,24 +457,16 @@ export const se_GetUserDetailsCommand = async ( input: GetUserDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userDetails"; + b.bp("/userDetails"); const query: any = map({ - id: [, input.id!], - userName: [, input.userName!], + [_i]: [, input[_i]!], + [_uN]: [, input[_uN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -629,24 +476,15 @@ export const se_GetWorkflowCommand = async ( input: GetWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("id", () => input.id!, "{id}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -656,24 +494,15 @@ export const se_GetWorkflowRunCommand = async ( input: GetWorkflowRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("id", () => input.id!, "{id}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -683,11 +512,11 @@ export const se_ListAccessTokensCommand = async ( input: ListAccessTokensCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/accessTokens"; + b.bp("/v1/accessTokens"); let body: any; body = JSON.stringify( take(input, { @@ -695,15 +524,8 @@ export const se_ListAccessTokensCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -713,13 +535,12 @@ export const se_ListDevEnvironmentsCommand = async ( input: ListDevEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/devEnvironments"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); + b.bp("/v1/spaces/{spaceName}/devEnvironments"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); let body: any; body = JSON.stringify( take(input, { @@ -729,15 +550,8 @@ export const se_ListDevEnvironmentsCommand = async ( projectName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -747,23 +561,14 @@ export const se_ListDevEnvironmentSessionsCommand = async ( input: ListDevEnvironmentSessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "devEnvironmentId", - () => input.devEnvironmentId!, - "{devEnvironmentId}", - false - ); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("devEnvironmentId", () => input.devEnvironmentId!, "{devEnvironmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -771,15 +576,8 @@ export const se_ListDevEnvironmentSessionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -789,13 +587,12 @@ export const se_ListEventLogsCommand = async ( input: ListEventLogsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/eventLogs"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); + b.bp("/v1/spaces/{spaceName}/eventLogs"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); let body: any; body = JSON.stringify( take(input, { @@ -806,15 +603,8 @@ export const se_ListEventLogsCommand = async ( startTime: (_) => _.toISOString().split(".")[0] + "Z", }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -824,13 +614,12 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); + b.bp("/v1/spaces/{spaceName}/projects"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); let body: any; body = JSON.stringify( take(input, { @@ -839,15 +628,8 @@ export const se_ListProjectsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -857,15 +639,13 @@ export const se_ListSourceRepositoriesCommand = async ( input: ListSourceRepositoriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; body = JSON.stringify( take(input, { @@ -873,15 +653,8 @@ export const se_ListSourceRepositoriesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -891,23 +664,14 @@ export const se_ListSourceRepositoryBranchesCommand = async ( input: ListSourceRepositoryBranchesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sourceRepositoryName", - () => input.sourceRepositoryName!, - "{sourceRepositoryName}", - false - ); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("sourceRepositoryName", () => input.sourceRepositoryName!, "{sourceRepositoryName}", false); let body: any; body = JSON.stringify( take(input, { @@ -915,15 +679,8 @@ export const se_ListSourceRepositoryBranchesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -933,26 +690,19 @@ export const se_ListSpacesCommand = async ( input: ListSpacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces"; + b.bp("/v1/spaces"); let body: any; body = JSON.stringify( take(input, { nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -962,19 +712,17 @@ export const se_ListWorkflowRunsCommand = async ( input: ListWorkflowRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); const query: any = map({ - workflowId: [, input.workflowId!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_wI]: [, input[_wI]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -982,16 +730,8 @@ export const se_ListWorkflowRunsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1001,18 +741,16 @@ export const se_ListWorkflowsCommand = async ( input: ListWorkflowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/workflows"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1020,16 +758,8 @@ export const se_ListWorkflowsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1039,16 +769,14 @@ export const se_StartDevEnvironmentCommand = async ( input: StartDevEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -1057,15 +785,8 @@ export const se_StartDevEnvironmentCommand = async ( instanceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1075,31 +796,22 @@ export const se_StartDevEnvironmentSessionCommand = async ( input: StartDevEnvironmentSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { sessionConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1109,17 +821,15 @@ export const se_StartWorkflowRunCommand = async ( input: StartWorkflowRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); const query: any = map({ - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], }); let body: any; body = JSON.stringify( @@ -1127,16 +837,8 @@ export const se_StartWorkflowRunCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1146,24 +848,15 @@ export const se_StopDevEnvironmentCommand = async ( input: StopDevEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/stop"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1173,25 +866,16 @@ export const se_StopDevEnvironmentSessionCommand = async ( input: StopDevEnvironmentSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("id", () => input.id!, "{id}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1201,16 +885,14 @@ export const se_UpdateDevEnvironmentCommand = async ( input: UpdateDevEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -1221,15 +903,8 @@ export const se_UpdateDevEnvironmentCommand = async ( instanceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1239,29 +914,21 @@ export const se_UpdateProjectCommand = async ( input: UpdateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{spaceName}/projects/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceName", () => input.spaceName!, "{spaceName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{spaceName}/projects/{name}"); + b.p("spaceName", () => input.spaceName!, "{spaceName}", false); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1271,27 +938,20 @@ export const se_UpdateSpaceCommand = async ( input: UpdateSpaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/spaces/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/v1/spaces/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1301,22 +961,15 @@ export const se_VerifySessionCommand = async ( input: VerifySessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/session"; + b.bp("/session"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4212,6 +3865,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _i = "id"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _uN = "userName"; +const _wI = "workflowId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-codecommit/src/models/models_1.ts b/clients/client-codecommit/src/models/models_1.ts index a537892619ba..20a70c460dd6 100644 --- a/clients/client-codecommit/src/models/models_1.ts +++ b/clients/client-codecommit/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { CodeCommitServiceException as __BaseException } from "./CodeCommitServiceException"; + import { ApprovalRule, ApprovalRuleTemplate, diff --git a/clients/client-codeguru-reviewer/package.json b/clients/client-codeguru-reviewer/package.json index 15520ce87bfe..4f8a78f32996 100644 --- a/clients/client-codeguru-reviewer/package.json +++ b/clients/client-codeguru-reviewer/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts index 88377bf7f68f..3e51dd9fd3bc 100644 --- a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -104,11 +105,11 @@ export const se_AssociateRepositoryCommand = async ( input: AssociateRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations"; + b.bp("/associations"); let body: any; body = JSON.stringify( take(input, { @@ -118,15 +119,8 @@ export const se_AssociateRepositoryCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -136,11 +130,11 @@ export const se_CreateCodeReviewCommand = async ( input: CreateCodeReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews"; + b.bp("/codereviews"); let body: any; body = JSON.stringify( take(input, { @@ -150,15 +144,8 @@ export const se_CreateCodeReviewCommand = async ( Type: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -168,28 +155,13 @@ export const se_DescribeCodeReviewCommand = async ( input: DescribeCodeReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews/{CodeReviewArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeReviewArn", - () => input.CodeReviewArn!, - "{CodeReviewArn}", - false - ); + b.bp("/codereviews/{CodeReviewArn}"); + b.p("CodeReviewArn", () => input.CodeReviewArn!, "{CodeReviewArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -199,33 +171,17 @@ export const se_DescribeRecommendationFeedbackCommand = async ( input: DescribeRecommendationFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback/{CodeReviewArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeReviewArn", - () => input.CodeReviewArn!, - "{CodeReviewArn}", - false - ); + b.bp("/feedback/{CodeReviewArn}"); + b.p("CodeReviewArn", () => input.CodeReviewArn!, "{CodeReviewArn}", false); const query: any = map({ - RecommendationId: [, __expectNonNull(input.RecommendationId!, `RecommendationId`)], - UserId: [, input.UserId!], + [_RI]: [, __expectNonNull(input[_RI]!, `RecommendationId`)], + [_UI]: [, input[_UI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -235,28 +191,13 @@ export const se_DescribeRepositoryAssociationCommand = async ( input: DescribeRepositoryAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/{AssociationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssociationArn", - () => input.AssociationArn!, - "{AssociationArn}", - false - ); + b.bp("/associations/{AssociationArn}"); + b.p("AssociationArn", () => input.AssociationArn!, "{AssociationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -266,28 +207,13 @@ export const se_DisassociateRepositoryCommand = async ( input: DisassociateRepositoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/{AssociationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssociationArn", - () => input.AssociationArn!, - "{AssociationArn}", - false - ); + b.bp("/associations/{AssociationArn}"); + b.p("AssociationArn", () => input.AssociationArn!, "{AssociationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -297,34 +223,20 @@ export const se_ListCodeReviewsCommand = async ( input: ListCodeReviewsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews"; + b.bp("/codereviews"); const query: any = map({ - ProviderTypes: [ - () => input.ProviderTypes !== void 0, - () => (input.ProviderTypes! || []).map((_entry) => _entry as any), - ], - States: [() => input.States !== void 0, () => (input.States! || []).map((_entry) => _entry as any)], - RepositoryNames: [ - () => input.RepositoryNames !== void 0, - () => (input.RepositoryNames! || []).map((_entry) => _entry as any), - ], - Type: [, __expectNonNull(input.Type!, `Type`)], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_PT]: [() => input.ProviderTypes !== void 0, () => (input[_PT]! || []).map((_entry) => _entry as any)], + [_S]: [() => input.States !== void 0, () => (input[_S]! || []).map((_entry) => _entry as any)], + [_RN]: [() => input.RepositoryNames !== void 0, () => (input[_RN]! || []).map((_entry) => _entry as any)], + [_T]: [, __expectNonNull(input[_T]!, `Type`)], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -334,39 +246,19 @@ export const se_ListRecommendationFeedbackCommand = async ( input: ListRecommendationFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/feedback/{CodeReviewArn}/RecommendationFeedback"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeReviewArn", - () => input.CodeReviewArn!, - "{CodeReviewArn}", - false - ); + b.bp("/feedback/{CodeReviewArn}/RecommendationFeedback"); + b.p("CodeReviewArn", () => input.CodeReviewArn!, "{CodeReviewArn}", false); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - UserIds: [() => input.UserIds !== void 0, () => (input.UserIds! || []).map((_entry) => _entry as any)], - RecommendationIds: [ - () => input.RecommendationIds !== void 0, - () => (input.RecommendationIds! || []).map((_entry) => _entry as any), - ], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_UIs]: [() => input.UserIds !== void 0, () => (input[_UIs]! || []).map((_entry) => _entry as any)], + [_RIe]: [() => input.RecommendationIds !== void 0, () => (input[_RIe]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -376,34 +268,17 @@ export const se_ListRecommendationsCommand = async ( input: ListRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/codereviews/{CodeReviewArn}/Recommendations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeReviewArn", - () => input.CodeReviewArn!, - "{CodeReviewArn}", - false - ); + b.bp("/codereviews/{CodeReviewArn}/Recommendations"); + b.p("CodeReviewArn", () => input.CodeReviewArn!, "{CodeReviewArn}", false); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -413,31 +288,20 @@ export const se_ListRepositoryAssociationsCommand = async ( input: ListRepositoryAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations"; + b.bp("/associations"); const query: any = map({ - ProviderType: [ - () => input.ProviderTypes !== void 0, - () => (input.ProviderTypes! || []).map((_entry) => _entry as any), - ], - State: [() => input.States !== void 0, () => (input.States! || []).map((_entry) => _entry as any)], - Name: [() => input.Names !== void 0, () => (input.Names! || []).map((_entry) => _entry as any)], - Owner: [() => input.Owners !== void 0, () => (input.Owners! || []).map((_entry) => _entry as any)], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_PTr]: [() => input.ProviderTypes !== void 0, () => (input[_PT]! || []).map((_entry) => _entry as any)], + [_St]: [() => input.States !== void 0, () => (input[_S]! || []).map((_entry) => _entry as any)], + [_Na]: [() => input.Names !== void 0, () => (input[_N]! || []).map((_entry) => _entry as any)], + [_Ow]: [() => input.Owners !== void 0, () => (input[_O]! || []).map((_entry) => _entry as any)], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -447,20 +311,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -470,11 +327,11 @@ export const se_PutRecommendationFeedbackCommand = async ( input: PutRecommendationFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback"; + b.bp("/feedback"); let body: any; body = JSON.stringify( take(input, { @@ -483,15 +340,8 @@ export const se_PutRecommendationFeedbackCommand = async ( RecommendationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -501,27 +351,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -531,27 +374,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1700,6 +1535,25 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _N = "Names"; +const _NT = "NextToken"; +const _Na = "Name"; +const _O = "Owners"; +const _Ow = "Owner"; +const _PT = "ProviderTypes"; +const _PTr = "ProviderType"; +const _RI = "RecommendationId"; +const _RIe = "RecommendationIds"; +const _RN = "RepositoryNames"; +const _S = "States"; +const _St = "State"; +const _T = "Type"; +const _TK = "TagKeys"; +const _UI = "UserId"; +const _UIs = "UserIds"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-codeguru-security/package.json b/clients/client-codeguru-security/package.json index 288f5a0172ff..72f7f5f622e3 100644 --- a/clients/client-codeguru-security/package.json +++ b/clients/client-codeguru-security/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts b/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts index b67a5e0bdb8a..1a55e996c44a 100644 --- a/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -75,26 +76,19 @@ export const se_BatchGetFindingsCommand = async ( input: BatchGetFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batchGetFindings"; + b.bp("/batchGetFindings"); let body: any; body = JSON.stringify( take(input, { findingIdentifiers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -104,11 +98,11 @@ export const se_CreateScanCommand = async ( input: CreateScanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scans"; + b.bp("/scans"); let body: any; body = JSON.stringify( take(input, { @@ -120,15 +114,8 @@ export const se_CreateScanCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -138,26 +125,19 @@ export const se_CreateUploadUrlCommand = async ( input: CreateUploadUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/uploadUrl"; + b.bp("/uploadUrl"); let body: any; body = JSON.stringify( take(input, { scanName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -167,23 +147,15 @@ export const se_GetAccountConfigurationCommand = async ( input: GetAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accountConfiguration/get"; + b.bp("/accountConfiguration/get"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -193,26 +165,18 @@ export const se_GetFindingsCommand = async ( input: GetFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/{scanName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "scanName", () => input.scanName!, "{scanName}", false); + b.bp("/findings/{scanName}"); + b.p("scanName", () => input.scanName!, "{scanName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - status: [, input.status!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_s]: [, input[_s]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -222,26 +186,18 @@ export const se_GetMetricsSummaryCommand = async ( input: GetMetricsSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/summary"; + b.bp("/metrics/summary"); const query: any = map({ - date: [ + [_d]: [ __expectNonNull(input.date, `date`) != null, - () => (input.date!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_d]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -251,24 +207,16 @@ export const se_GetScanCommand = async ( input: GetScanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scans/{scanName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "scanName", () => input.scanName!, "{scanName}", false); + b.bp("/scans/{scanName}"); + b.p("scanName", () => input.scanName!, "{scanName}", false); const query: any = map({ - runId: [, input.runId!], + [_rI]: [, input[_rI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -278,32 +226,24 @@ export const se_ListFindingsMetricsCommand = async ( input: ListFindingsMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/findings"; + b.bp("/metrics/findings"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - startDate: [ + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_sD]: [ __expectNonNull(input.startDate, `startDate`) != null, - () => (input.startDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sD]!.toISOString().split(".")[0] + "Z").toString(), ], - endDate: [ + [_eD]: [ __expectNonNull(input.endDate, `endDate`) != null, - () => (input.endDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eD]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -313,24 +253,16 @@ export const se_ListScansCommand = async ( input: ListScansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scans"; + b.bp("/scans"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -340,20 +272,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -363,27 +288,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -393,27 +311,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -423,27 +333,19 @@ export const se_UpdateAccountConfigurationCommand = async ( input: UpdateAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateAccountConfiguration"; + b.bp("/updateAccountConfiguration"); let body: any; body = JSON.stringify( take(input, { encryptionConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1536,6 +1438,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _d = "date"; +const _eD = "endDate"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rI = "runId"; +const _s = "status"; +const _sD = "startDate"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-codeguruprofiler/package.json b/clients/client-codeguruprofiler/package.json index 2531cb84308b..84477fd4887b 100644 --- a/clients/client-codeguruprofiler/package.json +++ b/clients/client-codeguruprofiler/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts b/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts index b97230c3f621..7b1aef871d8a 100644 --- a/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -116,36 +117,20 @@ export const se_AddNotificationChannelsCommand = async ( input: AddNotificationChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/notificationConfiguration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); let body: any; body = JSON.stringify( take(input, { channels: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -155,29 +140,17 @@ export const se_BatchGetFrameMetricDataCommand = async ( input: BatchGetFrameMetricDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/frames/-/metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/frames/-/metrics"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); const query: any = map({ - startTime: [ - () => input.startTime !== void 0, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), - ], - endTime: [() => input.endTime !== void 0, () => (input.endTime!.toISOString().split(".")[0] + "Z").toString()], - period: [, input.period!], - targetResolution: [, input.targetResolution!], + [_sT]: [() => input.startTime !== void 0, () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString()], + [_eT]: [() => input.endTime !== void 0, () => (input[_eT]!.toISOString().split(".")[0] + "Z").toString()], + [_p]: [, input[_p]!], + [_tR]: [, input[_tR]!], }); let body: any; body = JSON.stringify( @@ -185,16 +158,8 @@ export const se_BatchGetFrameMetricDataCommand = async ( frameMetrics: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -204,21 +169,12 @@ export const se_ConfigureAgentCommand = async ( input: ConfigureAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/configureAgent"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/configureAgent"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -226,15 +182,8 @@ export const se_ConfigureAgentCommand = async ( metadata: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -244,13 +193,13 @@ export const se_CreateProfilingGroupCommand = async ( input: CreateProfilingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups"; + b.bp("/profilingGroups"); const query: any = map({ - clientToken: [, __expectNonNull(input.clientToken!, `clientToken`)], + [_cT]: [, __expectNonNull(input[_cT]!, `clientToken`)], }); let body: any; body = JSON.stringify( @@ -261,16 +210,8 @@ export const se_CreateProfilingGroupCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -280,28 +221,13 @@ export const se_DeleteProfilingGroupCommand = async ( input: DeleteProfilingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups/{profilingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -311,28 +237,13 @@ export const se_DescribeProfilingGroupCommand = async ( input: DescribeProfilingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups/{profilingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -342,26 +253,17 @@ export const se_GetFindingsReportAccountSummaryCommand = async ( input: GetFindingsReportAccountSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/internal/findingsReports"; + b.bp("/internal/findingsReports"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - dailyReportsOnly: [() => input.dailyReportsOnly !== void 0, () => input.dailyReportsOnly!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -371,29 +273,13 @@ export const se_GetNotificationConfigurationCommand = async ( input: GetNotificationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/notificationConfiguration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -403,29 +289,13 @@ export const se_GetPolicyCommand = async ( input: GetPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/policy"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -435,41 +305,21 @@ export const se_GetProfileCommand = async ( input: GetProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - accept: input.accept!, + [_a]: input[_a]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/profile"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/profile"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); const query: any = map({ - startTime: [ - () => input.startTime !== void 0, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), - ], - period: [, input.period!], - endTime: [() => input.endTime !== void 0, () => (input.endTime!.toISOString().split(".")[0] + "Z").toString()], - maxDepth: [() => input.maxDepth !== void 0, () => input.maxDepth!.toString()], + [_sT]: [() => input.startTime !== void 0, () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString()], + [_p]: [, input[_p]!], + [_eT]: [() => input.endTime !== void 0, () => (input[_eT]!.toISOString().split(".")[0] + "Z").toString()], + [_mD]: [() => input.maxDepth !== void 0, () => input[_mD]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -479,41 +329,24 @@ export const se_GetRecommendationsCommand = async ( input: GetRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/internal/profilingGroups/{profilingGroupName}/recommendations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/internal/profilingGroups/{profilingGroupName}/recommendations"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); const query: any = map({ - startTime: [ + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eT]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eT]!.toISOString().split(".")[0] + "Z").toString(), ], - locale: [, input.locale!], + [_l]: [, input[_l]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -523,43 +356,26 @@ export const se_ListFindingsReportsCommand = async ( input: ListFindingsReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/internal/profilingGroups/{profilingGroupName}/findingsReports"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/internal/profilingGroups/{profilingGroupName}/findingsReports"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); const query: any = map({ - startTime: [ + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eT]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eT]!.toISOString().split(".")[0] + "Z").toString(), ], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - dailyReportsOnly: [() => input.dailyReportsOnly !== void 0, () => input.dailyReportsOnly!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -569,44 +385,27 @@ export const se_ListProfileTimesCommand = async ( input: ListProfileTimesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/profileTimes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/profileTimes"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); const query: any = map({ - startTime: [ + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eT]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eT]!.toISOString().split(".")[0] + "Z").toString(), ], - period: [, __expectNonNull(input.period!, `period`)], - orderBy: [, input.orderBy!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_p]: [, __expectNonNull(input[_p]!, `period`)], + [_oB]: [, input[_oB]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -616,25 +415,17 @@ export const se_ListProfilingGroupsCommand = async ( input: ListProfilingGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups"; + b.bp("/profilingGroups"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - includeDescription: [() => input.includeDescription !== void 0, () => input.includeDescription!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_iD]: [() => input.includeDescription !== void 0, () => input[_iD]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -644,20 +435,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -667,38 +451,21 @@ export const se_PostAgentProfileCommand = async ( input: PostAgentProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cTo]! || "application/octet-stream", }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/agentProfile"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}/agentProfile"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); const query: any = map({ - profileToken: [, input.profileToken ?? generateIdempotencyToken()], + [_pT]: [, input[_pT] ?? generateIdempotencyToken()], }); let body: any; if (input.agentProfile !== undefined) { body = input.agentProfile; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -708,22 +475,13 @@ export const se_PutPermissionCommand = async ( input: PutPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/policy/{actionGroup}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "actionGroup", () => input.actionGroup!, "{actionGroup}", false); + b.bp("/profilingGroups/{profilingGroupName}/policy/{actionGroup}"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); + b.p("actionGroup", () => input.actionGroup!, "{actionGroup}", false); let body: any; body = JSON.stringify( take(input, { @@ -731,15 +489,8 @@ export const se_PutPermissionCommand = async ( revisionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -749,30 +500,14 @@ export const se_RemoveNotificationChannelCommand = async ( input: RemoveNotificationChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/notificationConfiguration/{channelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "channelId", () => input.channelId!, "{channelId}", false); + b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration/{channelId}"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); + b.p("channelId", () => input.channelId!, "{channelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -782,34 +517,17 @@ export const se_RemovePermissionCommand = async ( input: RemovePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/profilingGroups/{profilingGroupName}/policy/{actionGroup}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "actionGroup", () => input.actionGroup!, "{actionGroup}", false); + b.bp("/profilingGroups/{profilingGroupName}/policy/{actionGroup}"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); + b.p("actionGroup", () => input.actionGroup!, "{actionGroup}", false); const query: any = map({ - revisionId: [, __expectNonNull(input.revisionId!, `revisionId`)], + [_rI]: [, __expectNonNull(input[_rI]!, `revisionId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -819,29 +537,13 @@ export const se_SubmitFeedbackCommand = async ( input: SubmitFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/internal/profilingGroups/{profilingGroupName}/anomalies/{anomalyInstanceId}/feedback"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "anomalyInstanceId", - () => input.anomalyInstanceId!, - "{anomalyInstanceId}", - false - ); + b.bp("/internal/profilingGroups/{profilingGroupName}/anomalies/{anomalyInstanceId}/feedback"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); + b.p("anomalyInstanceId", () => input.anomalyInstanceId!, "{anomalyInstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -849,15 +551,8 @@ export const se_SubmitFeedbackCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -867,27 +562,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -897,27 +585,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -927,35 +607,20 @@ export const se_UpdateProfilingGroupCommand = async ( input: UpdateProfilingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups/{profilingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "profilingGroupName", - () => input.profilingGroupName!, - "{profilingGroupName}", - false - ); + b.bp("/profilingGroups/{profilingGroupName}"); + b.p("profilingGroupName", () => input.profilingGroupName!, "{profilingGroupName}", false); let body: any; body = JSON.stringify( take(input, { agentOrchestrationConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1474,8 +1139,8 @@ export const de_GetProfileCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], - contentEncoding: [, output.headers["content-encoding"]], + [_cTo]: [, output.headers[_ct]], + [_cE]: [, output.headers[_ce]], }); const data: any = await collectBody(output.body, context); contents.profile = data; @@ -2687,6 +2352,27 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "accept"; +const _cE = "contentEncoding"; +const _cT = "clientToken"; +const _cTo = "contentType"; +const _ce = "content-encoding"; +const _ct = "content-type"; +const _dRO = "dailyReportsOnly"; +const _eT = "endTime"; +const _iD = "includeDescription"; +const _l = "locale"; +const _mD = "maxDepth"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _oB = "orderBy"; +const _p = "period"; +const _pT = "profileToken"; +const _rI = "revisionId"; +const _sT = "startTime"; +const _tK = "tagKeys"; +const _tR = "targetResolution"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-codestar-notifications/package.json b/clients/client-codestar-notifications/package.json index 3798d37598e6..229a2ffa63ee 100644 --- a/clients/client-codestar-notifications/package.json +++ b/clients/client-codestar-notifications/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts index 9574689359c8..31947b6f78ff 100644 --- a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts +++ b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -76,12 +77,11 @@ export const se_CreateNotificationRuleCommand = async ( input: CreateNotificationRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createNotificationRule"; + b.bp("/createNotificationRule"); let body: any; body = JSON.stringify( take(input, { @@ -95,15 +95,8 @@ export const se_CreateNotificationRuleCommand = async ( Targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -113,27 +106,19 @@ export const se_DeleteNotificationRuleCommand = async ( input: DeleteNotificationRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteNotificationRule"; + b.bp("/deleteNotificationRule"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -143,11 +128,11 @@ export const se_DeleteTargetCommand = async ( input: DeleteTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTarget"; + b.bp("/deleteTarget"); let body: any; body = JSON.stringify( take(input, { @@ -155,15 +140,8 @@ export const se_DeleteTargetCommand = async ( TargetAddress: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -173,27 +151,19 @@ export const se_DescribeNotificationRuleCommand = async ( input: DescribeNotificationRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeNotificationRule"; + b.bp("/describeNotificationRule"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,11 +173,11 @@ export const se_ListEventTypesCommand = async ( input: ListEventTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listEventTypes"; + b.bp("/listEventTypes"); let body: any; body = JSON.stringify( take(input, { @@ -216,15 +186,8 @@ export const se_ListEventTypesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -234,11 +197,11 @@ export const se_ListNotificationRulesCommand = async ( input: ListNotificationRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listNotificationRules"; + b.bp("/listNotificationRules"); let body: any; body = JSON.stringify( take(input, { @@ -247,15 +210,8 @@ export const se_ListNotificationRulesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -265,26 +221,19 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTagsForResource"; + b.bp("/listTagsForResource"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -294,11 +243,11 @@ export const se_ListTargetsCommand = async ( input: ListTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTargets"; + b.bp("/listTargets"); let body: any; body = JSON.stringify( take(input, { @@ -307,15 +256,8 @@ export const se_ListTargetsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -325,11 +267,11 @@ export const se_SubscribeCommand = async ( input: SubscribeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subscribe"; + b.bp("/subscribe"); let body: any; body = JSON.stringify( take(input, { @@ -338,15 +280,8 @@ export const se_SubscribeCommand = async ( Target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -356,11 +291,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tagResource"; + b.bp("/tagResource"); let body: any; body = JSON.stringify( take(input, { @@ -368,15 +303,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -386,11 +314,11 @@ export const se_UnsubscribeCommand = async ( input: UnsubscribeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/unsubscribe"; + b.bp("/unsubscribe"); let body: any; body = JSON.stringify( take(input, { @@ -398,15 +326,8 @@ export const se_UnsubscribeCommand = async ( TargetAddress: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -416,27 +337,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untagResource/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/untagResource/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -446,12 +359,11 @@ export const se_UpdateNotificationRuleCommand = async ( input: UpdateNotificationRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateNotificationRule"; + b.bp("/updateNotificationRule"); let body: any; body = JSON.stringify( take(input, { @@ -463,15 +375,8 @@ export const se_UpdateNotificationRuleCommand = async ( Targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1363,6 +1268,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-cognito-identity-provider/src/models/models_1.ts b/clients/client-cognito-identity-provider/src/models/models_1.ts index bca4c2742a87..e5f765fc1d0a 100644 --- a/clients/client-cognito-identity-provider/src/models/models_1.ts +++ b/clients/client-cognito-identity-provider/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException"; + import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, diff --git a/clients/client-cognito-sync/package.json b/clients/client-cognito-sync/package.json index a1b2f11e8a90..3a674c459a4f 100644 --- a/clients/client-cognito-sync/package.json +++ b/clients/client-cognito-sync/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts b/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts index f7e8ec3dd614..719c37354bdb 100644 --- a/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts +++ b/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -93,29 +94,13 @@ export const se_BulkPublishCommand = async ( input: BulkPublishCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/bulkpublish"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); + b.bp("/identitypools/{IdentityPoolId}/bulkpublish"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -125,31 +110,15 @@ export const se_DeleteDatasetCommand = async ( input: DeleteDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetName", () => input.DatasetName!, "{DatasetName}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.p("DatasetName", () => input.DatasetName!, "{DatasetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -159,31 +128,15 @@ export const se_DescribeDatasetCommand = async ( input: DescribeDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetName", () => input.DatasetName!, "{DatasetName}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.p("DatasetName", () => input.DatasetName!, "{DatasetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -193,28 +146,13 @@ export const se_DescribeIdentityPoolUsageCommand = async ( input: DescribeIdentityPoolUsageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identitypools/{IdentityPoolId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); + b.bp("/identitypools/{IdentityPoolId}"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -224,30 +162,14 @@ export const se_DescribeIdentityUsageCommand = async ( input: DescribeIdentityUsageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -257,29 +179,13 @@ export const se_GetBulkPublishDetailsCommand = async ( input: GetBulkPublishDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/getBulkPublishDetails"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); + b.bp("/identitypools/{IdentityPoolId}/getBulkPublishDetails"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -289,28 +195,13 @@ export const se_GetCognitoEventsCommand = async ( input: GetCognitoEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identitypools/{IdentityPoolId}/events"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); + b.bp("/identitypools/{IdentityPoolId}/events"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -320,29 +211,13 @@ export const se_GetIdentityPoolConfigurationCommand = async ( input: GetIdentityPoolConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); + b.bp("/identitypools/{IdentityPoolId}/configuration"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -352,35 +227,18 @@ export const se_ListDatasetsCommand = async ( input: ListDatasetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -390,24 +248,16 @@ export const se_ListIdentityPoolUsageCommand = async ( input: ListIdentityPoolUsageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identitypools"; + b.bp("/identitypools"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -417,38 +267,21 @@ export const se_ListRecordsCommand = async ( input: ListRecordsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetName", () => input.DatasetName!, "{DatasetName}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.p("DatasetName", () => input.DatasetName!, "{DatasetName}", false); const query: any = map({ - lastSyncCount: [() => input.LastSyncCount !== void 0, () => input.LastSyncCount!.toString()], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - syncSessionToken: [, input.SyncSessionToken!], + [_lSC]: [() => input.LastSyncCount !== void 0, () => input[_LSC]!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_sST]: [, input[_SST]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -458,22 +291,13 @@ export const se_RegisterDeviceCommand = async ( input: RegisterDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.bp("/identitypools/{IdentityPoolId}/identity/{IdentityId}/device"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); let body: any; body = JSON.stringify( take(input, { @@ -481,15 +305,8 @@ export const se_RegisterDeviceCommand = async ( Token: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -499,35 +316,20 @@ export const se_SetCognitoEventsCommand = async ( input: SetCognitoEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identitypools/{IdentityPoolId}/events"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); + b.bp("/identitypools/{IdentityPoolId}/events"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); let body: any; body = JSON.stringify( take(input, { Events: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -537,21 +339,12 @@ export const se_SetIdentityPoolConfigurationCommand = async ( input: SetIdentityPoolConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); + b.bp("/identitypools/{IdentityPoolId}/configuration"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); let body: any; body = JSON.stringify( take(input, { @@ -559,15 +352,8 @@ export const se_SetIdentityPoolConfigurationCommand = async ( PushSync: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -577,32 +363,16 @@ export const se_SubscribeToDatasetCommand = async ( input: SubscribeToDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetName", () => input.DatasetName!, "{DatasetName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.p("DatasetName", () => input.DatasetName!, "{DatasetName}", false); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -612,32 +382,16 @@ export const se_UnsubscribeFromDatasetCommand = async ( input: UnsubscribeFromDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetName", () => input.DatasetName!, "{DatasetName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.p("DatasetName", () => input.DatasetName!, "{DatasetName}", false); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -647,24 +401,15 @@ export const se_UpdateRecordsCommand = async ( input: UpdateRecordsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-context": input.ClientContext!, + [_xacc]: input[_CC]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IdentityPoolId", - () => input.IdentityPoolId!, - "{IdentityPoolId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "IdentityId", () => input.IdentityId!, "{IdentityId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetName", () => input.DatasetName!, "{DatasetName}", false); + b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}"); + b.p("IdentityPoolId", () => input.IdentityPoolId!, "{IdentityPoolId}", false); + b.p("IdentityId", () => input.IdentityId!, "{IdentityId}", false); + b.p("DatasetName", () => input.DatasetName!, "{DatasetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -673,15 +418,8 @@ export const se_UpdateRecordsCommand = async ( SyncSessionToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2126,6 +1864,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CC = "ClientContext"; +const _LSC = "LastSyncCount"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _SST = "SyncSessionToken"; +const _lSC = "lastSyncCount"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _sST = "syncSessionToken"; +const _xacc = "x-amz-client-context"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-comprehend/src/models/models_1.ts b/clients/client-comprehend/src/models/models_1.ts index c208ff741eaf..b81e2cd583dc 100644 --- a/clients/client-comprehend/src/models/models_1.ts +++ b/clients/client-comprehend/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { ComprehendServiceException as __BaseException } from "./ComprehendServiceException"; + import { FlywheelProperties, JobStatus, Tag, VpcConfig } from "./models_0"; /** diff --git a/clients/client-config-service/src/models/models_1.ts b/clients/client-config-service/src/models/models_1.ts index d380614ce3a7..ed83924abb08 100644 --- a/clients/client-config-service/src/models/models_1.ts +++ b/clients/client-config-service/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { ConfigServiceServiceException as __BaseException } from "./ConfigServiceServiceException"; + import { AccountAggregationSource, AggregationAuthorization, diff --git a/clients/client-connect-contact-lens/package.json b/clients/client-connect-contact-lens/package.json index 6ceaa9401f78..06097618657d 100644 --- a/clients/client-connect-contact-lens/package.json +++ b/clients/client-connect-contact-lens/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts b/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts index b9b6e0967b34..a57287023cb3 100644 --- a/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -37,13 +38,11 @@ export const se_ListRealtimeContactAnalysisSegmentsCommand = async ( input: ListRealtimeContactAnalysisSegmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/realtime-contact-analysis/analysis-segments"; + b.bp("/realtime-contact-analysis/analysis-segments"); let body: any; body = JSON.stringify( take(input, { @@ -53,15 +52,8 @@ export const se_ListRealtimeContactAnalysisSegmentsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-connect/package.json b/clients/client-connect/package.json index a114a6c0708e..d593b7fbc210 100644 --- a/clients/client-connect/package.json +++ b/clients/client-connect/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-connect/src/models/models_1.ts b/clients/client-connect/src/models/models_1.ts index c37e1b5cc259..10d9d6001db8 100644 --- a/clients/client-connect/src/models/models_1.ts +++ b/clients/client-connect/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { ConnectServiceException as __BaseException } from "./ConnectServiceException"; + import { ActionSummary, AgentAvailabilityTimer, diff --git a/clients/client-connect/src/models/models_2.ts b/clients/client-connect/src/models/models_2.ts index c32c02ea0c32..5789bdc76eb3 100644 --- a/clients/client-connect/src/models/models_2.ts +++ b/clients/client-connect/src/models/models_2.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { ConnectServiceException as __BaseException } from "./ConnectServiceException"; + import { AgentAvailabilityTimer, AgentConfig, @@ -42,6 +43,7 @@ import { VocabularyLanguageCode, VocabularyState, } from "./models_0"; + import { ControlPlaneTagFilter, HierarchyGroupMatchType, diff --git a/clients/client-connect/src/protocols/Aws_restJson1.ts b/clients/client-connect/src/protocols/Aws_restJson1.ts index 778bc17a048f..af1f584b1bff 100644 --- a/clients/client-connect/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -885,37 +886,21 @@ export const se_ActivateEvaluationFormCommand = async ( input: ActivateEvaluationFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/evaluation-forms/{InstanceId}/{EvaluationFormId}/activate"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationFormId", - () => input.EvaluationFormId!, - "{EvaluationFormId}", - false - ); + b.bp("/evaluation-forms/{InstanceId}/{EvaluationFormId}/activate"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationFormId", () => input.EvaluationFormId!, "{EvaluationFormId}", false); let body: any; body = JSON.stringify( take(input, { EvaluationFormVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -925,14 +910,12 @@ export const se_AssociateAnalyticsDataSetCommand = async ( input: AssociateAnalyticsDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analytics-data/instance/{InstanceId}/association"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/analytics-data/instance/{InstanceId}/association"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -940,15 +923,8 @@ export const se_AssociateAnalyticsDataSetCommand = async ( TargetAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -958,28 +934,20 @@ export const se_AssociateApprovedOriginCommand = async ( input: AssociateApprovedOriginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/approved-origin"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { Origin: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -989,13 +957,12 @@ export const se_AssociateBotCommand = async ( input: AssociateBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bot"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/bot"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1003,15 +970,8 @@ export const se_AssociateBotCommand = async ( LexV2Bot: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1021,37 +981,21 @@ export const se_AssociateDefaultVocabularyCommand = async ( input: AssociateDefaultVocabularyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/default-vocabulary/{InstanceId}/{LanguageCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LanguageCode", - () => input.LanguageCode!, - "{LanguageCode}", - false - ); + b.bp("/default-vocabulary/{InstanceId}/{LanguageCode}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("LanguageCode", () => input.LanguageCode!, "{LanguageCode}", false); let body: any; body = JSON.stringify( take(input, { VocabularyId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1061,13 +1005,12 @@ export const se_AssociateFlowCommand = async ( input: AssociateFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/flow-associations/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/flow-associations/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1076,15 +1019,8 @@ export const se_AssociateFlowCommand = async ( ResourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1094,13 +1030,12 @@ export const se_AssociateInstanceStorageConfigCommand = async ( input: AssociateInstanceStorageConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/storage-config"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1108,15 +1043,8 @@ export const se_AssociateInstanceStorageConfigCommand = async ( StorageConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1126,28 +1054,20 @@ export const se_AssociateLambdaFunctionCommand = async ( input: AssociateLambdaFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/lambda-function"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { FunctionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1157,28 +1077,20 @@ export const se_AssociateLexBotCommand = async ( input: AssociateLexBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/lex-bot"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { LexBot: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1188,21 +1100,12 @@ export const se_AssociatePhoneNumberContactFlowCommand = async ( input: AssociatePhoneNumberContactFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/phone-number/{PhoneNumberId}/contact-flow"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-number/{PhoneNumberId}/contact-flow"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1210,15 +1113,8 @@ export const se_AssociatePhoneNumberContactFlowCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1228,30 +1124,21 @@ export const se_AssociateQueueQuickConnectsCommand = async ( input: AssociateQueueQuickConnectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/queues/{InstanceId}/{QueueId}/associate-quick-connects"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/associate-quick-connects"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; body = JSON.stringify( take(input, { QuickConnectIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1261,37 +1148,21 @@ export const se_AssociateRoutingProfileQueuesCommand = async ( input: AssociateRoutingProfileQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/associate-queues"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/associate-queues"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; body = JSON.stringify( take(input, { QueueConfigs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1301,28 +1172,20 @@ export const se_AssociateSecurityKeyCommand = async ( input: AssociateSecurityKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/security-key"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/security-key"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { Key: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1332,21 +1195,12 @@ export const se_AssociateTrafficDistributionGroupUserCommand = async ( input: AssociateTrafficDistributionGroupUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/traffic-distribution-group/{TrafficDistributionGroupId}/user"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TrafficDistributionGroupId", - () => input.TrafficDistributionGroupId!, - "{TrafficDistributionGroupId}", - false - ); + b.bp("/traffic-distribution-group/{TrafficDistributionGroupId}/user"); + b.p("TrafficDistributionGroupId", () => input.TrafficDistributionGroupId!, "{TrafficDistributionGroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1354,15 +1208,8 @@ export const se_AssociateTrafficDistributionGroupUserCommand = async ( UserId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1372,14 +1219,12 @@ export const se_BatchAssociateAnalyticsDataSetCommand = async ( input: BatchAssociateAnalyticsDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analytics-data/instance/{InstanceId}/associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/analytics-data/instance/{InstanceId}/associations"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1387,15 +1232,8 @@ export const se_BatchAssociateAnalyticsDataSetCommand = async ( TargetAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1405,14 +1243,12 @@ export const se_BatchDisassociateAnalyticsDataSetCommand = async ( input: BatchDisassociateAnalyticsDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analytics-data/instance/{InstanceId}/associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/analytics-data/instance/{InstanceId}/associations"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1420,15 +1256,8 @@ export const se_BatchDisassociateAnalyticsDataSetCommand = async ( TargetAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1438,13 +1267,12 @@ export const se_BatchGetFlowAssociationCommand = async ( input: BatchGetFlowAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/flow-associations-batch/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/flow-associations-batch/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1452,15 +1280,8 @@ export const se_BatchGetFlowAssociationCommand = async ( ResourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1470,13 +1291,12 @@ export const se_BatchPutContactCommand = async ( input: BatchPutContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/batch/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact/batch/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1484,15 +1304,8 @@ export const se_BatchPutContactCommand = async ( ContactDataRequestList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1502,11 +1315,11 @@ export const se_ClaimPhoneNumberCommand = async ( input: ClaimPhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/claim"; + b.bp("/phone-number/claim"); let body: any; body = JSON.stringify( take(input, { @@ -1518,15 +1331,8 @@ export const se_ClaimPhoneNumberCommand = async ( TargetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1536,13 +1342,12 @@ export const se_CreateAgentStatusCommand = async ( input: CreateAgentStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent-status/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/agent-status/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1553,15 +1358,8 @@ export const se_CreateAgentStatusCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1571,13 +1369,12 @@ export const se_CreateContactFlowCommand = async ( input: CreateContactFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flows/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact-flows/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1588,15 +1385,8 @@ export const se_CreateContactFlowCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1606,13 +1396,12 @@ export const se_CreateContactFlowModuleCommand = async ( input: CreateContactFlowModuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flow-modules/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact-flow-modules/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1623,15 +1412,8 @@ export const se_CreateContactFlowModuleCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1641,13 +1423,12 @@ export const se_CreateEvaluationFormCommand = async ( input: CreateEvaluationFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evaluation-forms/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/evaluation-forms/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1658,15 +1439,8 @@ export const se_CreateEvaluationFormCommand = async ( Title: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1676,13 +1450,12 @@ export const se_CreateHoursOfOperationCommand = async ( input: CreateHoursOfOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/hours-of-operations/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/hours-of-operations/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1693,15 +1466,8 @@ export const se_CreateHoursOfOperationCommand = async ( TimeZone: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1711,11 +1477,11 @@ export const se_CreateInstanceCommand = async ( input: CreateInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance"; + b.bp("/instance"); let body: any; body = JSON.stringify( take(input, { @@ -1728,15 +1494,8 @@ export const se_CreateInstanceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1746,14 +1505,12 @@ export const se_CreateIntegrationAssociationCommand = async ( input: CreateIntegrationAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/integration-associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/integration-associations"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1765,15 +1522,8 @@ export const se_CreateIntegrationAssociationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1783,12 +1533,11 @@ export const se_CreateParticipantCommand = async ( input: CreateParticipantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/create-participant"; + b.bp("/contact/create-participant"); let body: any; body = JSON.stringify( take(input, { @@ -1798,15 +1547,8 @@ export const se_CreateParticipantCommand = async ( ParticipantDetails: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1816,22 +1558,13 @@ export const se_CreatePersistentContactAssociationCommand = async ( input: CreatePersistentContactAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact/persistent-contact-association/{InstanceId}/{InitialContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InitialContactId", - () => input.InitialContactId!, - "{InitialContactId}", - false - ); + b.bp("/contact/persistent-contact-association/{InstanceId}/{InitialContactId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("InitialContactId", () => input.InitialContactId!, "{InitialContactId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1840,15 +1573,8 @@ export const se_CreatePersistentContactAssociationCommand = async ( SourceContactId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1858,12 +1584,12 @@ export const se_CreatePromptCommand = async ( input: CreatePromptCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/prompts/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1873,15 +1599,8 @@ export const se_CreatePromptCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1891,12 +1610,12 @@ export const se_CreateQueueCommand = async ( input: CreateQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/queues/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1909,15 +1628,8 @@ export const se_CreateQueueCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1927,13 +1639,12 @@ export const se_CreateQuickConnectCommand = async ( input: CreateQuickConnectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quick-connects/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/quick-connects/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1943,15 +1654,8 @@ export const se_CreateQuickConnectCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1961,13 +1665,12 @@ export const se_CreateRoutingProfileCommand = async ( input: CreateRoutingProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routing-profiles/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/routing-profiles/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1980,15 +1683,8 @@ export const se_CreateRoutingProfileCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1998,12 +1694,12 @@ export const se_CreateRuleCommand = async ( input: CreateRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/rules/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2015,15 +1711,8 @@ export const se_CreateRuleCommand = async ( TriggerEventSource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2033,13 +1722,12 @@ export const se_CreateSecurityProfileCommand = async ( input: CreateSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/security-profiles/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2052,15 +1740,8 @@ export const se_CreateSecurityProfileCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2070,13 +1751,12 @@ export const se_CreateTaskTemplateCommand = async ( input: CreateTaskTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/task/template"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2090,15 +1770,8 @@ export const se_CreateTaskTemplateCommand = async ( Status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2108,12 +1781,11 @@ export const se_CreateTrafficDistributionGroupCommand = async ( input: CreateTrafficDistributionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-group"; + b.bp("/traffic-distribution-group"); let body: any; body = JSON.stringify( take(input, { @@ -2124,15 +1796,8 @@ export const se_CreateTrafficDistributionGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2142,22 +1807,13 @@ export const se_CreateUseCaseCommand = async ( input: CreateUseCaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationAssociationId", - () => input.IntegrationAssociationId!, - "{IntegrationAssociationId}", - false - ); + b.bp("/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("IntegrationAssociationId", () => input.IntegrationAssociationId!, "{IntegrationAssociationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2165,15 +1821,8 @@ export const se_CreateUseCaseCommand = async ( UseCaseType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2183,12 +1832,12 @@ export const se_CreateUserCommand = async ( input: CreateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2203,15 +1852,8 @@ export const se_CreateUserCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2221,13 +1863,12 @@ export const se_CreateUserHierarchyGroupCommand = async ( input: CreateUserHierarchyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-groups/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user-hierarchy-groups/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2236,15 +1877,8 @@ export const se_CreateUserHierarchyGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2254,12 +1888,12 @@ export const se_CreateViewCommand = async ( input: CreateViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/views/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2271,15 +1905,8 @@ export const se_CreateViewCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2289,14 +1916,13 @@ export const se_CreateViewVersionCommand = async ( input: CreateViewVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId!, "{ViewId}", false); + b.bp("/views/{InstanceId}/{ViewId}/versions"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ViewId", () => input.ViewId!, "{ViewId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2304,15 +1930,8 @@ export const se_CreateViewVersionCommand = async ( ViewContentSha256: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2322,12 +1941,12 @@ export const se_CreateVocabularyCommand = async ( input: CreateVocabularyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/vocabulary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2338,15 +1957,8 @@ export const se_CreateVocabularyCommand = async ( VocabularyName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2356,37 +1968,21 @@ export const se_DeactivateEvaluationFormCommand = async ( input: DeactivateEvaluationFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/evaluation-forms/{InstanceId}/{EvaluationFormId}/deactivate"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationFormId", - () => input.EvaluationFormId!, - "{EvaluationFormId}", - false - ); + b.bp("/evaluation-forms/{InstanceId}/{EvaluationFormId}/deactivate"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationFormId", () => input.EvaluationFormId!, "{EvaluationFormId}", false); let body: any; body = JSON.stringify( take(input, { EvaluationFormVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2396,30 +1992,14 @@ export const se_DeleteContactEvaluationCommand = async ( input: DeleteContactEvaluationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-evaluations/{InstanceId}/{EvaluationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationId", - () => input.EvaluationId!, - "{EvaluationId}", - false - ); + b.bp("/contact-evaluations/{InstanceId}/{EvaluationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationId", () => input.EvaluationId!, "{EvaluationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2429,30 +2009,14 @@ export const se_DeleteContactFlowCommand = async ( input: DeleteContactFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flows/{InstanceId}/{ContactFlowId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowId", - () => input.ContactFlowId!, - "{ContactFlowId}", - false - ); + b.bp("/contact-flows/{InstanceId}/{ContactFlowId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowId", () => input.ContactFlowId!, "{ContactFlowId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2462,30 +2026,14 @@ export const se_DeleteContactFlowModuleCommand = async ( input: DeleteContactFlowModuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowModuleId", - () => input.ContactFlowModuleId!, - "{ContactFlowModuleId}", - false - ); + b.bp("/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowModuleId", () => input.ContactFlowModuleId!, "{ContactFlowModuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2495,34 +2043,17 @@ export const se_DeleteEvaluationFormCommand = async ( input: DeleteEvaluationFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/evaluation-forms/{InstanceId}/{EvaluationFormId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationFormId", - () => input.EvaluationFormId!, - "{EvaluationFormId}", - false - ); + b.bp("/evaluation-forms/{InstanceId}/{EvaluationFormId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationFormId", () => input.EvaluationFormId!, "{EvaluationFormId}", false); const query: any = map({ - version: [() => input.EvaluationFormVersion !== void 0, () => input.EvaluationFormVersion!.toString()], + [_v]: [() => input.EvaluationFormVersion !== void 0, () => input[_EFV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2532,30 +2063,14 @@ export const se_DeleteHoursOfOperationCommand = async ( input: DeleteHoursOfOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/hours-of-operations/{InstanceId}/{HoursOfOperationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HoursOfOperationId", - () => input.HoursOfOperationId!, - "{HoursOfOperationId}", - false - ); + b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("HoursOfOperationId", () => input.HoursOfOperationId!, "{HoursOfOperationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2565,20 +2080,13 @@ export const se_DeleteInstanceCommand = async ( input: DeleteInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2588,30 +2096,14 @@ export const se_DeleteIntegrationAssociationCommand = async ( input: DeleteIntegrationAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationAssociationId", - () => input.IntegrationAssociationId!, - "{IntegrationAssociationId}", - false - ); + b.bp("/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("IntegrationAssociationId", () => input.IntegrationAssociationId!, "{IntegrationAssociationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2621,22 +2113,14 @@ export const se_DeletePromptCommand = async ( input: DeletePromptCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId!, "{PromptId}", false); + b.bp("/prompts/{InstanceId}/{PromptId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("PromptId", () => input.PromptId!, "{PromptId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2646,22 +2130,14 @@ export const se_DeleteQueueCommand = async ( input: DeleteQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2671,30 +2147,14 @@ export const se_DeleteQuickConnectCommand = async ( input: DeleteQuickConnectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/quick-connects/{InstanceId}/{QuickConnectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "QuickConnectId", - () => input.QuickConnectId!, - "{QuickConnectId}", - false - ); + b.bp("/quick-connects/{InstanceId}/{QuickConnectId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QuickConnectId", () => input.QuickConnectId!, "{QuickConnectId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2704,30 +2164,14 @@ export const se_DeleteRoutingProfileCommand = async ( input: DeleteRoutingProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2737,22 +2181,14 @@ export const se_DeleteRuleCommand = async ( input: DeleteRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}/{RuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RuleId", () => input.RuleId!, "{RuleId}", false); + b.bp("/rules/{InstanceId}/{RuleId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RuleId", () => input.RuleId!, "{RuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2762,30 +2198,14 @@ export const se_DeleteSecurityProfileCommand = async ( input: DeleteSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles/{InstanceId}/{SecurityProfileId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SecurityProfileId", - () => input.SecurityProfileId!, - "{SecurityProfileId}", - false - ); + b.bp("/security-profiles/{InstanceId}/{SecurityProfileId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("SecurityProfileId", () => input.SecurityProfileId!, "{SecurityProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2795,30 +2215,14 @@ export const se_DeleteTaskTemplateCommand = async ( input: DeleteTaskTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/task/template/{TaskTemplateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TaskTemplateId", - () => input.TaskTemplateId!, - "{TaskTemplateId}", - false - ); + b.bp("/instance/{InstanceId}/task/template/{TaskTemplateId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("TaskTemplateId", () => input.TaskTemplateId!, "{TaskTemplateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2828,29 +2232,13 @@ export const se_DeleteTrafficDistributionGroupCommand = async ( input: DeleteTrafficDistributionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/traffic-distribution-group/{TrafficDistributionGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TrafficDistributionGroupId", - () => input.TrafficDistributionGroupId!, - "{TrafficDistributionGroupId}", - false - ); + b.bp("/traffic-distribution-group/{TrafficDistributionGroupId}"); + b.p("TrafficDistributionGroupId", () => input.TrafficDistributionGroupId!, "{TrafficDistributionGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2860,31 +2248,15 @@ export const se_DeleteUseCaseCommand = async ( input: DeleteUseCaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases/{UseCaseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationAssociationId", - () => input.IntegrationAssociationId!, - "{IntegrationAssociationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "UseCaseId", () => input.UseCaseId!, "{UseCaseId}", false); + b.bp("/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases/{UseCaseId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("IntegrationAssociationId", () => input.IntegrationAssociationId!, "{IntegrationAssociationId}", false); + b.p("UseCaseId", () => input.UseCaseId!, "{UseCaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2894,22 +2266,14 @@ export const se_DeleteUserCommand = async ( input: DeleteUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/users/{InstanceId}/{UserId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2919,30 +2283,14 @@ export const se_DeleteUserHierarchyGroupCommand = async ( input: DeleteUserHierarchyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HierarchyGroupId", - () => input.HierarchyGroupId!, - "{HierarchyGroupId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}"); + b.p("HierarchyGroupId", () => input.HierarchyGroupId!, "{HierarchyGroupId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2952,22 +2300,14 @@ export const se_DeleteViewCommand = async ( input: DeleteViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId!, "{ViewId}", false); + b.bp("/views/{InstanceId}/{ViewId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ViewId", () => input.ViewId!, "{ViewId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2977,31 +2317,15 @@ export const se_DeleteViewVersionCommand = async ( input: DeleteViewVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/views/{InstanceId}/{ViewId}/versions/{ViewVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId!, "{ViewId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ViewVersion", - () => input.ViewVersion!.toString(), - "{ViewVersion}", - false - ); + b.bp("/views/{InstanceId}/{ViewId}/versions/{ViewVersion}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ViewId", () => input.ViewId!, "{ViewId}", false); + b.p("ViewVersion", () => input.ViewVersion!.toString(), "{ViewVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3011,30 +2335,14 @@ export const se_DeleteVocabularyCommand = async ( input: DeleteVocabularyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/vocabulary-remove/{InstanceId}/{VocabularyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VocabularyId", - () => input.VocabularyId!, - "{VocabularyId}", - false - ); + b.bp("/vocabulary-remove/{InstanceId}/{VocabularyId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("VocabularyId", () => input.VocabularyId!, "{VocabularyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3044,30 +2352,14 @@ export const se_DescribeAgentStatusCommand = async ( input: DescribeAgentStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agent-status/{InstanceId}/{AgentStatusId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AgentStatusId", - () => input.AgentStatusId!, - "{AgentStatusId}", - false - ); + b.bp("/agent-status/{InstanceId}/{AgentStatusId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AgentStatusId", () => input.AgentStatusId!, "{AgentStatusId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3077,22 +2369,14 @@ export const se_DescribeContactCommand = async ( input: DescribeContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId!, "{ContactId}", false); + b.bp("/contacts/{InstanceId}/{ContactId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactId", () => input.ContactId!, "{ContactId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3102,30 +2386,14 @@ export const se_DescribeContactEvaluationCommand = async ( input: DescribeContactEvaluationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-evaluations/{InstanceId}/{EvaluationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationId", - () => input.EvaluationId!, - "{EvaluationId}", - false - ); + b.bp("/contact-evaluations/{InstanceId}/{EvaluationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationId", () => input.EvaluationId!, "{EvaluationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3135,30 +2403,14 @@ export const se_DescribeContactFlowCommand = async ( input: DescribeContactFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flows/{InstanceId}/{ContactFlowId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowId", - () => input.ContactFlowId!, - "{ContactFlowId}", - false - ); + b.bp("/contact-flows/{InstanceId}/{ContactFlowId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowId", () => input.ContactFlowId!, "{ContactFlowId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3168,30 +2420,14 @@ export const se_DescribeContactFlowModuleCommand = async ( input: DescribeContactFlowModuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowModuleId", - () => input.ContactFlowModuleId!, - "{ContactFlowModuleId}", - false - ); + b.bp("/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowModuleId", () => input.ContactFlowModuleId!, "{ContactFlowModuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3201,34 +2437,17 @@ export const se_DescribeEvaluationFormCommand = async ( input: DescribeEvaluationFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/evaluation-forms/{InstanceId}/{EvaluationFormId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationFormId", - () => input.EvaluationFormId!, - "{EvaluationFormId}", - false - ); + b.bp("/evaluation-forms/{InstanceId}/{EvaluationFormId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationFormId", () => input.EvaluationFormId!, "{EvaluationFormId}", false); const query: any = map({ - version: [() => input.EvaluationFormVersion !== void 0, () => input.EvaluationFormVersion!.toString()], + [_v]: [() => input.EvaluationFormVersion !== void 0, () => input[_EFV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3238,30 +2457,14 @@ export const se_DescribeHoursOfOperationCommand = async ( input: DescribeHoursOfOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/hours-of-operations/{InstanceId}/{HoursOfOperationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HoursOfOperationId", - () => input.HoursOfOperationId!, - "{HoursOfOperationId}", - false - ); + b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("HoursOfOperationId", () => input.HoursOfOperationId!, "{HoursOfOperationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3271,20 +2474,13 @@ export const se_DescribeInstanceCommand = async ( input: DescribeInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3294,30 +2490,14 @@ export const se_DescribeInstanceAttributeCommand = async ( input: DescribeInstanceAttributeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/attribute/{AttributeType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttributeType", - () => input.AttributeType!, - "{AttributeType}", - false - ); + b.bp("/instance/{InstanceId}/attribute/{AttributeType}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AttributeType", () => input.AttributeType!, "{AttributeType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3327,34 +2507,17 @@ export const se_DescribeInstanceStorageConfigCommand = async ( input: DescribeInstanceStorageConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/storage-config/{AssociationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssociationId", - () => input.AssociationId!, - "{AssociationId}", - false - ); + b.bp("/instance/{InstanceId}/storage-config/{AssociationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AssociationId", () => input.AssociationId!, "{AssociationId}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3364,28 +2527,13 @@ export const se_DescribePhoneNumberCommand = async ( input: DescribePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-number/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3395,22 +2543,14 @@ export const se_DescribePromptCommand = async ( input: DescribePromptCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId!, "{PromptId}", false); + b.bp("/prompts/{InstanceId}/{PromptId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("PromptId", () => input.PromptId!, "{PromptId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3420,22 +2560,14 @@ export const se_DescribeQueueCommand = async ( input: DescribeQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3445,30 +2577,14 @@ export const se_DescribeQuickConnectCommand = async ( input: DescribeQuickConnectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/quick-connects/{InstanceId}/{QuickConnectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "QuickConnectId", - () => input.QuickConnectId!, - "{QuickConnectId}", - false - ); + b.bp("/quick-connects/{InstanceId}/{QuickConnectId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QuickConnectId", () => input.QuickConnectId!, "{QuickConnectId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3478,30 +2594,14 @@ export const se_DescribeRoutingProfileCommand = async ( input: DescribeRoutingProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3511,22 +2611,14 @@ export const se_DescribeRuleCommand = async ( input: DescribeRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}/{RuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RuleId", () => input.RuleId!, "{RuleId}", false); + b.bp("/rules/{InstanceId}/{RuleId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RuleId", () => input.RuleId!, "{RuleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3536,30 +2628,14 @@ export const se_DescribeSecurityProfileCommand = async ( input: DescribeSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles/{InstanceId}/{SecurityProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SecurityProfileId", - () => input.SecurityProfileId!, - "{SecurityProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/security-profiles/{InstanceId}/{SecurityProfileId}"); + b.p("SecurityProfileId", () => input.SecurityProfileId!, "{SecurityProfileId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3569,29 +2645,13 @@ export const se_DescribeTrafficDistributionGroupCommand = async ( input: DescribeTrafficDistributionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/traffic-distribution-group/{TrafficDistributionGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TrafficDistributionGroupId", - () => input.TrafficDistributionGroupId!, - "{TrafficDistributionGroupId}", - false - ); + b.bp("/traffic-distribution-group/{TrafficDistributionGroupId}"); + b.p("TrafficDistributionGroupId", () => input.TrafficDistributionGroupId!, "{TrafficDistributionGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3601,22 +2661,14 @@ export const se_DescribeUserCommand = async ( input: DescribeUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3626,30 +2678,14 @@ export const se_DescribeUserHierarchyGroupCommand = async ( input: DescribeUserHierarchyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HierarchyGroupId", - () => input.HierarchyGroupId!, - "{HierarchyGroupId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}"); + b.p("HierarchyGroupId", () => input.HierarchyGroupId!, "{HierarchyGroupId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3659,21 +2695,13 @@ export const se_DescribeUserHierarchyStructureCommand = async ( input: DescribeUserHierarchyStructureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-structure/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user-hierarchy-structure/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3683,22 +2711,14 @@ export const se_DescribeViewCommand = async ( input: DescribeViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId!, "{ViewId}", false); + b.bp("/views/{InstanceId}/{ViewId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ViewId", () => input.ViewId!, "{ViewId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3708,29 +2728,14 @@ export const se_DescribeVocabularyCommand = async ( input: DescribeVocabularyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}/{VocabularyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VocabularyId", - () => input.VocabularyId!, - "{VocabularyId}", - false - ); + b.bp("/vocabulary/{InstanceId}/{VocabularyId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("VocabularyId", () => input.VocabularyId!, "{VocabularyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3740,14 +2745,12 @@ export const se_DisassociateAnalyticsDataSetCommand = async ( input: DisassociateAnalyticsDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analytics-data/instance/{InstanceId}/association"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/analytics-data/instance/{InstanceId}/association"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3755,15 +2758,8 @@ export const se_DisassociateAnalyticsDataSetCommand = async ( TargetAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3773,25 +2769,16 @@ export const se_DisassociateApprovedOriginCommand = async ( input: DisassociateApprovedOriginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/approved-origin"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - origin: [, __expectNonNull(input.Origin!, `Origin`)], + [_o]: [, __expectNonNull(input[_O]!, `Origin`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3801,13 +2788,12 @@ export const se_DisassociateBotCommand = async ( input: DisassociateBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bot"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/bot"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3815,15 +2801,8 @@ export const se_DisassociateBotCommand = async ( LexV2Bot: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3833,31 +2812,15 @@ export const se_DisassociateFlowCommand = async ( input: DisassociateFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceType", - () => input.ResourceType!, - "{ResourceType}", - false - ); + b.bp("/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.p("ResourceType", () => input.ResourceType!, "{ResourceType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3867,34 +2830,17 @@ export const se_DisassociateInstanceStorageConfigCommand = async ( input: DisassociateInstanceStorageConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/storage-config/{AssociationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssociationId", - () => input.AssociationId!, - "{AssociationId}", - false - ); + b.bp("/instance/{InstanceId}/storage-config/{AssociationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AssociationId", () => input.AssociationId!, "{AssociationId}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3904,25 +2850,16 @@ export const se_DisassociateLambdaFunctionCommand = async ( input: DisassociateLambdaFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/lambda-function"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - functionArn: [, __expectNonNull(input.FunctionArn!, `FunctionArn`)], + [_fA]: [, __expectNonNull(input[_FA]!, `FunctionArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3932,26 +2869,17 @@ export const se_DisassociateLexBotCommand = async ( input: DisassociateLexBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/lex-bot"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - botName: [, __expectNonNull(input.BotName!, `BotName`)], - lexRegion: [, __expectNonNull(input.LexRegion!, `LexRegion`)], + [_bN]: [, __expectNonNull(input[_BN]!, `BotName`)], + [_lR]: [, __expectNonNull(input[_LR]!, `LexRegion`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3961,33 +2889,16 @@ export const se_DisassociatePhoneNumberContactFlowCommand = async ( input: DisassociatePhoneNumberContactFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/phone-number/{PhoneNumberId}/contact-flow"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-number/{PhoneNumberId}/contact-flow"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); const query: any = map({ - instanceId: [, __expectNonNull(input.InstanceId!, `InstanceId`)], + [_iI]: [, __expectNonNull(input[_II]!, `InstanceId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3997,30 +2908,21 @@ export const se_DisassociateQueueQuickConnectsCommand = async ( input: DisassociateQueueQuickConnectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/queues/{InstanceId}/{QueueId}/disassociate-quick-connects"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/disassociate-quick-connects"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; body = JSON.stringify( take(input, { QuickConnectIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4030,37 +2932,21 @@ export const se_DisassociateRoutingProfileQueuesCommand = async ( input: DisassociateRoutingProfileQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/disassociate-queues"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/disassociate-queues"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; body = JSON.stringify( take(input, { QueueReferences: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4070,30 +2956,14 @@ export const se_DisassociateSecurityKeyCommand = async ( input: DisassociateSecurityKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/security-key/{AssociationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssociationId", - () => input.AssociationId!, - "{AssociationId}", - false - ); + b.bp("/instance/{InstanceId}/security-key/{AssociationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AssociationId", () => input.AssociationId!, "{AssociationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -4103,34 +2973,17 @@ export const se_DisassociateTrafficDistributionGroupUserCommand = async ( input: DisassociateTrafficDistributionGroupUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/traffic-distribution-group/{TrafficDistributionGroupId}/user"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TrafficDistributionGroupId", - () => input.TrafficDistributionGroupId!, - "{TrafficDistributionGroupId}", - false - ); + b.bp("/traffic-distribution-group/{TrafficDistributionGroupId}/user"); + b.p("TrafficDistributionGroupId", () => input.TrafficDistributionGroupId!, "{TrafficDistributionGroupId}", false); const query: any = map({ - UserId: [, __expectNonNull(input.UserId!, `UserId`)], - InstanceId: [, __expectNonNull(input.InstanceId!, `InstanceId`)], + [_UI]: [, __expectNonNull(input[_UI]!, `UserId`)], + [_II]: [, __expectNonNull(input[_II]!, `InstanceId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4140,29 +2993,21 @@ export const se_DismissUserContactCommand = async ( input: DismissUserContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/contact"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}/contact"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { ContactId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4172,30 +3017,14 @@ export const se_GetContactAttributesCommand = async ( input: GetContactAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact/attributes/{InstanceId}/{InitialContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InitialContactId", - () => input.InitialContactId!, - "{InitialContactId}", - false - ); + b.bp("/contact/attributes/{InstanceId}/{InitialContactId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("InitialContactId", () => input.InitialContactId!, "{InitialContactId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4205,13 +3034,12 @@ export const se_GetCurrentMetricDataCommand = async ( input: GetCurrentMetricDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/current/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/metrics/current/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -4223,15 +3051,8 @@ export const se_GetCurrentMetricDataCommand = async ( SortCriteria: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4241,13 +3062,12 @@ export const se_GetCurrentUserDataCommand = async ( input: GetCurrentUserDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/userdata/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/metrics/userdata/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -4256,15 +3076,8 @@ export const se_GetCurrentUserDataCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4274,21 +3087,13 @@ export const se_GetFederationTokenCommand = async ( input: GetFederationTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/federate/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user/federate/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4298,31 +3103,15 @@ export const se_GetFlowAssociationCommand = async ( input: GetFlowAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceType", - () => input.ResourceType!, - "{ResourceType}", - false - ); + b.bp("/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.p("ResourceType", () => input.ResourceType!, "{ResourceType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4332,13 +3121,12 @@ export const se_GetMetricDataCommand = async ( input: GetMetricDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/historical/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/metrics/historical/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -4351,15 +3139,8 @@ export const se_GetMetricDataCommand = async ( StartTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4369,11 +3150,11 @@ export const se_GetMetricDataV2Command = async ( input: GetMetricDataV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/data"; + b.bp("/metrics/data"); let body: any; body = JSON.stringify( take(input, { @@ -4388,15 +3169,8 @@ export const se_GetMetricDataV2Command = async ( StartTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4406,22 +3180,14 @@ export const se_GetPromptFileCommand = async ( input: GetPromptFileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}/file"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId!, "{PromptId}", false); + b.bp("/prompts/{InstanceId}/{PromptId}/file"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("PromptId", () => input.PromptId!, "{PromptId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4431,34 +3197,17 @@ export const se_GetTaskTemplateCommand = async ( input: GetTaskTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/task/template/{TaskTemplateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TaskTemplateId", - () => input.TaskTemplateId!, - "{TaskTemplateId}", - false - ); + b.bp("/instance/{InstanceId}/task/template/{TaskTemplateId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("TaskTemplateId", () => input.TaskTemplateId!, "{TaskTemplateId}", false); const query: any = map({ - snapshotVersion: [, input.SnapshotVersion!], + [_sV]: [, input[_SV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4468,21 +3217,13 @@ export const se_GetTrafficDistributionCommand = async ( input: GetTrafficDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/traffic-distribution/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4492,11 +3233,11 @@ export const se_ImportPhoneNumberCommand = async ( input: ImportPhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/import"; + b.bp("/phone-number/import"); let body: any; body = JSON.stringify( take(input, { @@ -4507,15 +3248,8 @@ export const se_ImportPhoneNumberCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4525,30 +3259,18 @@ export const se_ListAgentStatusesCommand = async ( input: ListAgentStatusesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent-status/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/agent-status/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - AgentStatusTypes: [ - () => input.AgentStatusTypes !== void 0, - () => (input.AgentStatusTypes! || []).map((_entry) => _entry as any), - ], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_AST]: [() => input.AgentStatusTypes !== void 0, () => (input[_AST]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4558,28 +3280,18 @@ export const se_ListAnalyticsDataAssociationsCommand = async ( input: ListAnalyticsDataAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analytics-data/instance/{InstanceId}/association"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/analytics-data/instance/{InstanceId}/association"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - DataSetId: [, input.DataSetId!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_DSI]: [, input[_DSI]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4589,26 +3301,17 @@ export const se_ListApprovedOriginsCommand = async ( input: ListApprovedOriginsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origins"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/approved-origins"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4618,27 +3321,18 @@ export const se_ListBotsCommand = async ( input: ListBotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bots"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/bots"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - lexVersion: [, __expectNonNull(input.LexVersion!, `LexVersion`)], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_lV]: [, __expectNonNull(input[_LV]!, `LexVersion`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4648,26 +3342,17 @@ export const se_ListContactEvaluationsCommand = async ( input: ListContactEvaluationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-evaluations/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact-evaluations/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - contactId: [, __expectNonNull(input.ContactId!, `ContactId`)], - nextToken: [, input.NextToken!], + [_cI]: [, __expectNonNull(input[_CI]!, `ContactId`)], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4677,28 +3362,18 @@ export const se_ListContactFlowModulesCommand = async ( input: ListContactFlowModulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flow-modules-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact-flow-modules-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - state: [, input.ContactFlowModuleState!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_s]: [, input[_CFMS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4708,30 +3383,18 @@ export const se_ListContactFlowsCommand = async ( input: ListContactFlowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flows-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact-flows-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - contactFlowTypes: [ - () => input.ContactFlowTypes !== void 0, - () => (input.ContactFlowTypes! || []).map((_entry) => _entry as any), - ], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_cFT]: [() => input.ContactFlowTypes !== void 0, () => (input[_CFT]! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4741,31 +3404,21 @@ export const se_ListContactReferencesCommand = async ( input: ListContactReferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact/references/{InstanceId}/{ContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId!, "{ContactId}", false); + b.bp("/contact/references/{InstanceId}/{ContactId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactId", () => input.ContactId!, "{ContactId}", false); const query: any = map({ - referenceTypes: [ + [_rTe]: [ __expectNonNull(input.ReferenceTypes, `ReferenceTypes`) != null, - () => (input.ReferenceTypes! || []).map((_entry) => _entry as any), + () => (input[_RTe]! || []).map((_entry) => _entry as any), ], - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4775,13 +3428,12 @@ export const se_ListDefaultVocabulariesCommand = async ( input: ListDefaultVocabulariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-vocabulary-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/default-vocabulary-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -4790,15 +3442,8 @@ export const se_ListDefaultVocabulariesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4808,26 +3453,17 @@ export const se_ListEvaluationFormsCommand = async ( input: ListEvaluationFormsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/evaluation-forms/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/evaluation-forms/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4837,35 +3473,18 @@ export const se_ListEvaluationFormVersionsCommand = async ( input: ListEvaluationFormVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/evaluation-forms/{InstanceId}/{EvaluationFormId}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationFormId", - () => input.EvaluationFormId!, - "{EvaluationFormId}", - false - ); + b.bp("/evaluation-forms/{InstanceId}/{EvaluationFormId}/versions"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationFormId", () => input.EvaluationFormId!, "{EvaluationFormId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4875,27 +3494,18 @@ export const se_ListFlowAssociationsCommand = async ( input: ListFlowAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/flow-associations-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/flow-associations-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - ResourceType: [, input.ResourceType!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_RT]: [, input[_RT]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4905,26 +3515,17 @@ export const se_ListHoursOfOperationsCommand = async ( input: ListHoursOfOperationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/hours-of-operations-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/hours-of-operations-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4934,26 +3535,17 @@ export const se_ListInstanceAttributesCommand = async ( input: ListInstanceAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/attributes"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/attributes"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4963,24 +3555,16 @@ export const se_ListInstancesCommand = async ( input: ListInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance"; + b.bp("/instance"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4990,27 +3574,18 @@ export const se_ListInstanceStorageConfigsCommand = async ( input: ListInstanceStorageConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-configs"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/storage-configs"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5020,29 +3595,19 @@ export const se_ListIntegrationAssociationsCommand = async ( input: ListIntegrationAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/integration-associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/integration-associations"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - integrationType: [, input.IntegrationType!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - integrationArn: [, input.IntegrationArn!], + [_iT]: [, input[_IT]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_iA]: [, input[_IA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5052,26 +3617,17 @@ export const se_ListLambdaFunctionsCommand = async ( input: ListLambdaFunctionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-functions"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/lambda-functions"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5081,26 +3637,17 @@ export const se_ListLexBotsCommand = async ( input: ListLexBotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bots"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/lex-bots"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5110,34 +3657,22 @@ export const se_ListPhoneNumbersCommand = async ( input: ListPhoneNumbersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/phone-numbers-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - phoneNumberTypes: [ - () => input.PhoneNumberTypes !== void 0, - () => (input.PhoneNumberTypes! || []).map((_entry) => _entry as any), - ], - phoneNumberCountryCodes: [ + [_pNT]: [() => input.PhoneNumberTypes !== void 0, () => (input[_PNT]! || []).map((_entry) => _entry as any)], + [_pNCC]: [ () => input.PhoneNumberCountryCodes !== void 0, - () => (input.PhoneNumberCountryCodes! || []).map((_entry) => _entry as any), + () => (input[_PNCC]! || []).map((_entry) => _entry as any), ], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5147,11 +3682,11 @@ export const se_ListPhoneNumbersV2Command = async ( input: ListPhoneNumbersV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/list"; + b.bp("/phone-number/list"); let body: any; body = JSON.stringify( take(input, { @@ -5164,15 +3699,8 @@ export const se_ListPhoneNumbersV2Command = async ( TargetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5182,26 +3710,17 @@ export const se_ListPromptsCommand = async ( input: ListPromptsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/prompts-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5211,28 +3730,18 @@ export const se_ListQueueQuickConnectsCommand = async ( input: ListQueueQuickConnectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/queues/{InstanceId}/{QueueId}/quick-connects"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/quick-connects"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5242,27 +3751,18 @@ export const se_ListQueuesCommand = async ( input: ListQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/queues-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - queueTypes: [() => input.QueueTypes !== void 0, () => (input.QueueTypes! || []).map((_entry) => _entry as any)], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_qT]: [() => input.QueueTypes !== void 0, () => (input[_QT]! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5272,30 +3772,18 @@ export const se_ListQuickConnectsCommand = async ( input: ListQuickConnectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quick-connects/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/quick-connects/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - QuickConnectTypes: [ - () => input.QuickConnectTypes !== void 0, - () => (input.QuickConnectTypes! || []).map((_entry) => _entry as any), - ], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_QCT]: [() => input.QuickConnectTypes !== void 0, () => (input[_QCT]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5305,15 +3793,13 @@ export const se_ListRealtimeContactAnalysisSegmentsV2Command = async ( input: ListRealtimeContactAnalysisSegmentsV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact/list-real-time-analysis-segments-v2/{InstanceId}/{ContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId!, "{ContactId}", false); + b.bp("/contact/list-real-time-analysis-segments-v2/{InstanceId}/{ContactId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactId", () => input.ContactId!, "{ContactId}", false); let body: any; body = JSON.stringify( take(input, { @@ -5323,15 +3809,8 @@ export const se_ListRealtimeContactAnalysisSegmentsV2Command = async ( SegmentTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5341,35 +3820,18 @@ export const se_ListRoutingProfileQueuesCommand = async ( input: ListRoutingProfileQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/queues"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5379,26 +3841,17 @@ export const se_ListRoutingProfilesCommand = async ( input: ListRoutingProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routing-profiles-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/routing-profiles-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5408,27 +3861,19 @@ export const se_ListRulesCommand = async ( input: ListRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/rules/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - publishStatus: [, input.PublishStatus!], - eventSourceName: [, input.EventSourceName!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_pS]: [, input[_PS]!], + [_eSN]: [, input[_ESN]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5438,26 +3883,17 @@ export const se_ListSecurityKeysCommand = async ( input: ListSecurityKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/security-keys"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/security-keys"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5467,35 +3903,18 @@ export const se_ListSecurityProfileApplicationsCommand = async ( input: ListSecurityProfileApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles-applications/{InstanceId}/{SecurityProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SecurityProfileId", - () => input.SecurityProfileId!, - "{SecurityProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/security-profiles-applications/{InstanceId}/{SecurityProfileId}"); + b.p("SecurityProfileId", () => input.SecurityProfileId!, "{SecurityProfileId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5505,35 +3924,18 @@ export const se_ListSecurityProfilePermissionsCommand = async ( input: ListSecurityProfilePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles-permissions/{InstanceId}/{SecurityProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SecurityProfileId", - () => input.SecurityProfileId!, - "{SecurityProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/security-profiles-permissions/{InstanceId}/{SecurityProfileId}"); + b.p("SecurityProfileId", () => input.SecurityProfileId!, "{SecurityProfileId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5543,26 +3945,17 @@ export const se_ListSecurityProfilesCommand = async ( input: ListSecurityProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/security-profiles-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5572,20 +3965,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5595,28 +3981,19 @@ export const se_ListTaskTemplatesCommand = async ( input: ListTaskTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/task/template"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - status: [, input.Status!], - name: [, input.Name!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_st]: [, input[_S]!], + [_n]: [, input[_N]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5626,26 +4003,17 @@ export const se_ListTrafficDistributionGroupsCommand = async ( input: ListTrafficDistributionGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-groups"; + b.bp("/traffic-distribution-groups"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - instanceId: [, input.InstanceId!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_iI]: [, input[_II]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5655,34 +4023,17 @@ export const se_ListTrafficDistributionGroupUsersCommand = async ( input: ListTrafficDistributionGroupUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/traffic-distribution-group/{TrafficDistributionGroupId}/user"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TrafficDistributionGroupId", - () => input.TrafficDistributionGroupId!, - "{TrafficDistributionGroupId}", - false - ); + b.bp("/traffic-distribution-group/{TrafficDistributionGroupId}/user"); + b.p("TrafficDistributionGroupId", () => input.TrafficDistributionGroupId!, "{TrafficDistributionGroupId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5692,35 +4043,18 @@ export const se_ListUseCasesCommand = async ( input: ListUseCasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IntegrationAssociationId", - () => input.IntegrationAssociationId!, - "{IntegrationAssociationId}", - false - ); + b.bp("/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("IntegrationAssociationId", () => input.IntegrationAssociationId!, "{IntegrationAssociationId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5730,27 +4064,17 @@ export const se_ListUserHierarchyGroupsCommand = async ( input: ListUserHierarchyGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/user-hierarchy-groups-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user-hierarchy-groups-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5760,26 +4084,17 @@ export const se_ListUsersCommand = async ( input: ListUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5789,26 +4104,18 @@ export const se_ListViewsCommand = async ( input: ListViewsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/views/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - type: [, input.Type!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_t]: [, input[_T]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5818,27 +4125,18 @@ export const se_ListViewVersionsCommand = async ( input: ListViewVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId!, "{ViewId}", false); + b.bp("/views/{InstanceId}/{ViewId}/versions"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ViewId", () => input.ViewId!, "{ViewId}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5848,11 +4146,11 @@ export const se_MonitorContactCommand = async ( input: MonitorContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/monitor"; + b.bp("/contact/monitor"); let body: any; body = JSON.stringify( take(input, { @@ -5863,15 +4161,8 @@ export const se_MonitorContactCommand = async ( UserId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5881,11 +4172,11 @@ export const se_PauseContactCommand = async ( input: PauseContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/pause"; + b.bp("/contact/pause"); let body: any; body = JSON.stringify( take(input, { @@ -5894,15 +4185,8 @@ export const se_PauseContactCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5912,29 +4196,21 @@ export const se_PutUserStatusCommand = async ( input: PutUserStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/status"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}/status"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { AgentStatusId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5944,32 +4220,16 @@ export const se_ReleasePhoneNumberCommand = async ( input: ReleasePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-number/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); const query: any = map({ - clientToken: [, input.ClientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_CT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5979,13 +4239,12 @@ export const se_ReplicateInstanceCommand = async ( input: ReplicateInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/replicate"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/replicate"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -5994,15 +4253,8 @@ export const se_ReplicateInstanceCommand = async ( ReplicaRegion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6012,11 +4264,11 @@ export const se_ResumeContactCommand = async ( input: ResumeContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/resume"; + b.bp("/contact/resume"); let body: any; body = JSON.stringify( take(input, { @@ -6025,15 +4277,8 @@ export const se_ResumeContactCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6043,12 +4288,11 @@ export const se_ResumeContactRecordingCommand = async ( input: ResumeContactRecordingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/resume-recording"; + b.bp("/contact/resume-recording"); let body: any; body = JSON.stringify( take(input, { @@ -6057,15 +4301,8 @@ export const se_ResumeContactRecordingCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6075,12 +4312,11 @@ export const se_SearchAvailablePhoneNumbersCommand = async ( input: SearchAvailablePhoneNumbersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/search-available"; + b.bp("/phone-number/search-available"); let body: any; body = JSON.stringify( take(input, { @@ -6093,15 +4329,8 @@ export const se_SearchAvailablePhoneNumbersCommand = async ( TargetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6111,12 +4340,11 @@ export const se_SearchHoursOfOperationsCommand = async ( input: SearchHoursOfOperationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-hours-of-operations"; + b.bp("/search-hours-of-operations"); let body: any; body = JSON.stringify( take(input, { @@ -6127,15 +4355,8 @@ export const se_SearchHoursOfOperationsCommand = async ( SearchFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6145,11 +4366,11 @@ export const se_SearchPromptsCommand = async ( input: SearchPromptsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-prompts"; + b.bp("/search-prompts"); let body: any; body = JSON.stringify( take(input, { @@ -6160,15 +4381,8 @@ export const se_SearchPromptsCommand = async ( SearchFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6178,11 +4392,11 @@ export const se_SearchQueuesCommand = async ( input: SearchQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-queues"; + b.bp("/search-queues"); let body: any; body = JSON.stringify( take(input, { @@ -6193,15 +4407,8 @@ export const se_SearchQueuesCommand = async ( SearchFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6211,11 +4418,11 @@ export const se_SearchQuickConnectsCommand = async ( input: SearchQuickConnectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-quick-connects"; + b.bp("/search-quick-connects"); let body: any; body = JSON.stringify( take(input, { @@ -6226,15 +4433,8 @@ export const se_SearchQuickConnectsCommand = async ( SearchFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6244,11 +4444,11 @@ export const se_SearchResourceTagsCommand = async ( input: SearchResourceTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-resource-tags"; + b.bp("/search-resource-tags"); let body: any; body = JSON.stringify( take(input, { @@ -6259,15 +4459,8 @@ export const se_SearchResourceTagsCommand = async ( SearchCriteria: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6277,12 +4470,11 @@ export const se_SearchRoutingProfilesCommand = async ( input: SearchRoutingProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-routing-profiles"; + b.bp("/search-routing-profiles"); let body: any; body = JSON.stringify( take(input, { @@ -6293,15 +4485,8 @@ export const se_SearchRoutingProfilesCommand = async ( SearchFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6311,12 +4496,11 @@ export const se_SearchSecurityProfilesCommand = async ( input: SearchSecurityProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-security-profiles"; + b.bp("/search-security-profiles"); let body: any; body = JSON.stringify( take(input, { @@ -6327,15 +4511,8 @@ export const se_SearchSecurityProfilesCommand = async ( SearchFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6345,11 +4522,11 @@ export const se_SearchUsersCommand = async ( input: SearchUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-users"; + b.bp("/search-users"); let body: any; body = JSON.stringify( take(input, { @@ -6360,15 +4537,8 @@ export const se_SearchUsersCommand = async ( SearchFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6378,13 +4548,12 @@ export const se_SearchVocabulariesCommand = async ( input: SearchVocabulariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary-summary/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/vocabulary-summary/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6395,15 +4564,8 @@ export const se_SearchVocabulariesCommand = async ( State: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6413,12 +4575,11 @@ export const se_SendChatIntegrationEventCommand = async ( input: SendChatIntegrationEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/chat-integration-event"; + b.bp("/chat-integration-event"); let body: any; body = JSON.stringify( take(input, { @@ -6429,15 +4590,8 @@ export const se_SendChatIntegrationEventCommand = async ( Subtype: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6447,11 +4601,11 @@ export const se_StartChatContactCommand = async ( input: StartChatContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/chat"; + b.bp("/contact/chat"); let body: any; body = JSON.stringify( take(input, { @@ -6468,15 +4622,8 @@ export const se_StartChatContactCommand = async ( SupportedMessagingContentTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6486,13 +4633,12 @@ export const se_StartContactEvaluationCommand = async ( input: StartContactEvaluationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-evaluations/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact-evaluations/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6501,15 +4647,8 @@ export const se_StartContactEvaluationCommand = async ( EvaluationFormId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6519,12 +4658,11 @@ export const se_StartContactRecordingCommand = async ( input: StartContactRecordingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-recording"; + b.bp("/contact/start-recording"); let body: any; body = JSON.stringify( take(input, { @@ -6534,15 +4672,8 @@ export const se_StartContactRecordingCommand = async ( VoiceRecordingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6552,12 +4683,11 @@ export const se_StartContactStreamingCommand = async ( input: StartContactStreamingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-streaming"; + b.bp("/contact/start-streaming"); let body: any; body = JSON.stringify( take(input, { @@ -6567,15 +4697,8 @@ export const se_StartContactStreamingCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6585,12 +4708,11 @@ export const se_StartOutboundVoiceContactCommand = async ( input: StartOutboundVoiceContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/outbound-voice"; + b.bp("/contact/outbound-voice"); let body: any; body = JSON.stringify( take(input, { @@ -6610,15 +4732,8 @@ export const se_StartOutboundVoiceContactCommand = async ( TrafficType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6628,11 +4743,11 @@ export const se_StartTaskContactCommand = async ( input: StartTaskContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/task"; + b.bp("/contact/task"); let body: any; body = JSON.stringify( take(input, { @@ -6650,15 +4765,8 @@ export const se_StartTaskContactCommand = async ( TaskTemplateId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6668,11 +4776,11 @@ export const se_StartWebRTCContactCommand = async ( input: StartWebRTCContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/webrtc"; + b.bp("/contact/webrtc"); let body: any; body = JSON.stringify( take(input, { @@ -6687,15 +4795,8 @@ export const se_StartWebRTCContactCommand = async ( RelatedContactId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6705,11 +4806,11 @@ export const se_StopContactCommand = async ( input: StopContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop"; + b.bp("/contact/stop"); let body: any; body = JSON.stringify( take(input, { @@ -6718,15 +4819,8 @@ export const se_StopContactCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6736,12 +4830,11 @@ export const se_StopContactRecordingCommand = async ( input: StopContactRecordingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-recording"; + b.bp("/contact/stop-recording"); let body: any; body = JSON.stringify( take(input, { @@ -6750,15 +4843,8 @@ export const se_StopContactRecordingCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6768,12 +4854,11 @@ export const se_StopContactStreamingCommand = async ( input: StopContactStreamingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-streaming"; + b.bp("/contact/stop-streaming"); let body: any; body = JSON.stringify( take(input, { @@ -6782,15 +4867,8 @@ export const se_StopContactStreamingCommand = async ( StreamingId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6800,22 +4878,13 @@ export const se_SubmitContactEvaluationCommand = async ( input: SubmitContactEvaluationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-evaluations/{InstanceId}/{EvaluationId}/submit"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationId", - () => input.EvaluationId!, - "{EvaluationId}", - false - ); + b.bp("/contact-evaluations/{InstanceId}/{EvaluationId}/submit"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationId", () => input.EvaluationId!, "{EvaluationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6823,15 +4892,8 @@ export const se_SubmitContactEvaluationCommand = async ( Notes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6841,12 +4903,11 @@ export const se_SuspendContactRecordingCommand = async ( input: SuspendContactRecordingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/suspend-recording"; + b.bp("/contact/suspend-recording"); let body: any; body = JSON.stringify( take(input, { @@ -6855,15 +4916,8 @@ export const se_SuspendContactRecordingCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6873,11 +4927,11 @@ export const se_TagContactCommand = async ( input: TagContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/tags"; + b.bp("/contact/tags"); let body: any; body = JSON.stringify( take(input, { @@ -6886,15 +4940,8 @@ export const se_TagContactCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6904,27 +4951,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6934,11 +4974,11 @@ export const se_TransferContactCommand = async ( input: TransferContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/transfer"; + b.bp("/contact/transfer"); let body: any; body = JSON.stringify( take(input, { @@ -6950,15 +4990,8 @@ export const se_TransferContactCommand = async ( UserId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6968,29 +5001,20 @@ export const se_UntagContactCommand = async ( input: UntagContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/tags/{InstanceId}/{ContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId!, "{ContactId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/contact/tags/{InstanceId}/{ContactId}"); + b.p("ContactId", () => input.ContactId!, "{ContactId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); const query: any = map({ - TagKeys: [ + [_TK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7000,27 +5024,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7030,22 +5046,13 @@ export const se_UpdateAgentStatusCommand = async ( input: UpdateAgentStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/agent-status/{InstanceId}/{AgentStatusId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AgentStatusId", - () => input.AgentStatusId!, - "{AgentStatusId}", - false - ); + b.bp("/agent-status/{InstanceId}/{AgentStatusId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AgentStatusId", () => input.AgentStatusId!, "{AgentStatusId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7056,15 +5063,8 @@ export const se_UpdateAgentStatusCommand = async ( State: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7074,14 +5074,13 @@ export const se_UpdateContactCommand = async ( input: UpdateContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId!, "{ContactId}", false); + b.bp("/contacts/{InstanceId}/{ContactId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactId", () => input.ContactId!, "{ContactId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7090,15 +5089,8 @@ export const se_UpdateContactCommand = async ( References: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7108,11 +5100,11 @@ export const se_UpdateContactAttributesCommand = async ( input: UpdateContactAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/attributes"; + b.bp("/contact/attributes"); let body: any; body = JSON.stringify( take(input, { @@ -7121,15 +5113,8 @@ export const se_UpdateContactAttributesCommand = async ( InstanceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7139,22 +5124,13 @@ export const se_UpdateContactEvaluationCommand = async ( input: UpdateContactEvaluationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-evaluations/{InstanceId}/{EvaluationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationId", - () => input.EvaluationId!, - "{EvaluationId}", - false - ); + b.bp("/contact-evaluations/{InstanceId}/{EvaluationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationId", () => input.EvaluationId!, "{EvaluationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7162,15 +5138,8 @@ export const se_UpdateContactEvaluationCommand = async ( Notes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7180,37 +5149,21 @@ export const se_UpdateContactFlowContentCommand = async ( input: UpdateContactFlowContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flows/{InstanceId}/{ContactFlowId}/content"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowId", - () => input.ContactFlowId!, - "{ContactFlowId}", - false - ); + b.bp("/contact-flows/{InstanceId}/{ContactFlowId}/content"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowId", () => input.ContactFlowId!, "{ContactFlowId}", false); let body: any; body = JSON.stringify( take(input, { Content: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7220,22 +5173,13 @@ export const se_UpdateContactFlowMetadataCommand = async ( input: UpdateContactFlowMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flows/{InstanceId}/{ContactFlowId}/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowId", - () => input.ContactFlowId!, - "{ContactFlowId}", - false - ); + b.bp("/contact-flows/{InstanceId}/{ContactFlowId}/metadata"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowId", () => input.ContactFlowId!, "{ContactFlowId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7244,15 +5188,8 @@ export const se_UpdateContactFlowMetadataCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7262,37 +5199,21 @@ export const se_UpdateContactFlowModuleContentCommand = async ( input: UpdateContactFlowModuleContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/content"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowModuleId", - () => input.ContactFlowModuleId!, - "{ContactFlowModuleId}", - false - ); + b.bp("/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/content"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowModuleId", () => input.ContactFlowModuleId!, "{ContactFlowModuleId}", false); let body: any; body = JSON.stringify( take(input, { Content: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7302,22 +5223,13 @@ export const se_UpdateContactFlowModuleMetadataCommand = async ( input: UpdateContactFlowModuleMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowModuleId", - () => input.ContactFlowModuleId!, - "{ContactFlowModuleId}", - false - ); + b.bp("/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/metadata"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowModuleId", () => input.ContactFlowModuleId!, "{ContactFlowModuleId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7326,15 +5238,8 @@ export const se_UpdateContactFlowModuleMetadataCommand = async ( State: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7344,22 +5249,13 @@ export const se_UpdateContactFlowNameCommand = async ( input: UpdateContactFlowNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact-flows/{InstanceId}/{ContactFlowId}/name"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactFlowId", - () => input.ContactFlowId!, - "{ContactFlowId}", - false - ); + b.bp("/contact-flows/{InstanceId}/{ContactFlowId}/name"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactFlowId", () => input.ContactFlowId!, "{ContactFlowId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7367,15 +5263,8 @@ export const se_UpdateContactFlowNameCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7385,11 +5274,11 @@ export const se_UpdateContactScheduleCommand = async ( input: UpdateContactScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/schedule"; + b.bp("/contact/schedule"); let body: any; body = JSON.stringify( take(input, { @@ -7398,15 +5287,8 @@ export const se_UpdateContactScheduleCommand = async ( ScheduledTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7416,22 +5298,13 @@ export const se_UpdateEvaluationFormCommand = async ( input: UpdateEvaluationFormCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/evaluation-forms/{InstanceId}/{EvaluationFormId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EvaluationFormId", - () => input.EvaluationFormId!, - "{EvaluationFormId}", - false - ); + b.bp("/evaluation-forms/{InstanceId}/{EvaluationFormId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("EvaluationFormId", () => input.EvaluationFormId!, "{EvaluationFormId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7444,15 +5317,8 @@ export const se_UpdateEvaluationFormCommand = async ( Title: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7462,22 +5328,13 @@ export const se_UpdateHoursOfOperationCommand = async ( input: UpdateHoursOfOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/hours-of-operations/{InstanceId}/{HoursOfOperationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HoursOfOperationId", - () => input.HoursOfOperationId!, - "{HoursOfOperationId}", - false - ); + b.bp("/hours-of-operations/{InstanceId}/{HoursOfOperationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("HoursOfOperationId", () => input.HoursOfOperationId!, "{HoursOfOperationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7487,15 +5344,8 @@ export const se_UpdateHoursOfOperationCommand = async ( TimeZone: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7505,37 +5355,21 @@ export const se_UpdateInstanceAttributeCommand = async ( input: UpdateInstanceAttributeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/attribute/{AttributeType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttributeType", - () => input.AttributeType!, - "{AttributeType}", - false - ); + b.bp("/instance/{InstanceId}/attribute/{AttributeType}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AttributeType", () => input.AttributeType!, "{AttributeType}", false); let body: any; body = JSON.stringify( take(input, { Value: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7545,24 +5379,15 @@ export const se_UpdateInstanceStorageConfigCommand = async ( input: UpdateInstanceStorageConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/storage-config/{AssociationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssociationId", - () => input.AssociationId!, - "{AssociationId}", - false - ); + b.bp("/instance/{InstanceId}/storage-config/{AssociationId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("AssociationId", () => input.AssociationId!, "{AssociationId}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; body = JSON.stringify( @@ -7570,16 +5395,8 @@ export const se_UpdateInstanceStorageConfigCommand = async ( StorageConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7589,30 +5406,21 @@ export const se_UpdateParticipantRoleConfigCommand = async ( input: UpdateParticipantRoleConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/contact/participant-role-config/{InstanceId}/{ContactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ContactId", () => input.ContactId!, "{ContactId}", false); + b.bp("/contact/participant-role-config/{InstanceId}/{ContactId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ContactId", () => input.ContactId!, "{ContactId}", false); let body: any; body = JSON.stringify( take(input, { ChannelConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7622,20 +5430,12 @@ export const se_UpdatePhoneNumberCommand = async ( input: UpdatePhoneNumberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-number/{PhoneNumberId}"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7644,15 +5444,8 @@ export const se_UpdatePhoneNumberCommand = async ( TargetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7662,20 +5455,12 @@ export const se_UpdatePhoneNumberMetadataCommand = async ( input: UpdatePhoneNumberMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}/metadata"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PhoneNumberId", - () => input.PhoneNumberId!, - "{PhoneNumberId}", - false - ); + b.bp("/phone-number/{PhoneNumberId}/metadata"); + b.p("PhoneNumberId", () => input.PhoneNumberId!, "{PhoneNumberId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7683,15 +5468,8 @@ export const se_UpdatePhoneNumberMetadataCommand = async ( PhoneNumberDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7701,14 +5479,13 @@ export const se_UpdatePromptCommand = async ( input: UpdatePromptCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "PromptId", () => input.PromptId!, "{PromptId}", false); + b.bp("/prompts/{InstanceId}/{PromptId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("PromptId", () => input.PromptId!, "{PromptId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7717,15 +5494,8 @@ export const se_UpdatePromptCommand = async ( S3Uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7735,30 +5505,21 @@ export const se_UpdateQueueHoursOfOperationCommand = async ( input: UpdateQueueHoursOfOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/queues/{InstanceId}/{QueueId}/hours-of-operation"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/hours-of-operation"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; body = JSON.stringify( take(input, { HoursOfOperationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7768,30 +5529,21 @@ export const se_UpdateQueueMaxContactsCommand = async ( input: UpdateQueueMaxContactsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/queues/{InstanceId}/{QueueId}/max-contacts"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/max-contacts"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; body = JSON.stringify( take(input, { MaxContacts: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7801,14 +5553,13 @@ export const se_UpdateQueueNameCommand = async ( input: UpdateQueueNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}/name"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/name"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7816,15 +5567,8 @@ export const se_UpdateQueueNameCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7834,30 +5578,21 @@ export const se_UpdateQueueOutboundCallerConfigCommand = async ( input: UpdateQueueOutboundCallerConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/queues/{InstanceId}/{QueueId}/outbound-caller-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/outbound-caller-config"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; body = JSON.stringify( take(input, { OutboundCallerConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7867,29 +5602,21 @@ export const se_UpdateQueueStatusCommand = async ( input: UpdateQueueStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}/status"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueueId", () => input.QueueId!, "{QueueId}", false); + b.bp("/queues/{InstanceId}/{QueueId}/status"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QueueId", () => input.QueueId!, "{QueueId}", false); let body: any; body = JSON.stringify( take(input, { Status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7899,37 +5626,21 @@ export const se_UpdateQuickConnectConfigCommand = async ( input: UpdateQuickConnectConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/quick-connects/{InstanceId}/{QuickConnectId}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "QuickConnectId", - () => input.QuickConnectId!, - "{QuickConnectId}", - false - ); + b.bp("/quick-connects/{InstanceId}/{QuickConnectId}/config"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QuickConnectId", () => input.QuickConnectId!, "{QuickConnectId}", false); let body: any; body = JSON.stringify( take(input, { QuickConnectConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7939,22 +5650,13 @@ export const se_UpdateQuickConnectNameCommand = async ( input: UpdateQuickConnectNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/quick-connects/{InstanceId}/{QuickConnectId}/name"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "QuickConnectId", - () => input.QuickConnectId!, - "{QuickConnectId}", - false - ); + b.bp("/quick-connects/{InstanceId}/{QuickConnectId}/name"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("QuickConnectId", () => input.QuickConnectId!, "{QuickConnectId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7962,15 +5664,8 @@ export const se_UpdateQuickConnectNameCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7980,37 +5675,21 @@ export const se_UpdateRoutingProfileAgentAvailabilityTimerCommand = async ( input: UpdateRoutingProfileAgentAvailabilityTimerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/agent-availability-timer"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/agent-availability-timer"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; body = JSON.stringify( take(input, { AgentAvailabilityTimer: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8020,37 +5699,21 @@ export const se_UpdateRoutingProfileConcurrencyCommand = async ( input: UpdateRoutingProfileConcurrencyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/concurrency"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/concurrency"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; body = JSON.stringify( take(input, { MediaConcurrencies: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8060,37 +5723,21 @@ export const se_UpdateRoutingProfileDefaultOutboundQueueCommand = async ( input: UpdateRoutingProfileDefaultOutboundQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/default-outbound-queue"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/default-outbound-queue"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; body = JSON.stringify( take(input, { DefaultOutboundQueueId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8100,22 +5747,13 @@ export const se_UpdateRoutingProfileNameCommand = async ( input: UpdateRoutingProfileNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/name"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/name"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; body = JSON.stringify( take(input, { @@ -8123,15 +5761,8 @@ export const se_UpdateRoutingProfileNameCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8141,37 +5772,21 @@ export const se_UpdateRoutingProfileQueuesCommand = async ( input: UpdateRoutingProfileQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingProfileId", - () => input.RoutingProfileId!, - "{RoutingProfileId}", - false - ); + b.bp("/routing-profiles/{InstanceId}/{RoutingProfileId}/queues"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("RoutingProfileId", () => input.RoutingProfileId!, "{RoutingProfileId}", false); let body: any; body = JSON.stringify( take(input, { QueueConfigs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8181,14 +5796,13 @@ export const se_UpdateRuleCommand = async ( input: UpdateRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{InstanceId}/{RuleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "RuleId", () => input.RuleId!, "{RuleId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/rules/{InstanceId}/{RuleId}"); + b.p("RuleId", () => input.RuleId!, "{RuleId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -8198,15 +5812,8 @@ export const se_UpdateRuleCommand = async ( PublishStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8216,22 +5823,13 @@ export const se_UpdateSecurityProfileCommand = async ( input: UpdateSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles/{InstanceId}/{SecurityProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SecurityProfileId", - () => input.SecurityProfileId!, - "{SecurityProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/security-profiles/{InstanceId}/{SecurityProfileId}"); + b.p("SecurityProfileId", () => input.SecurityProfileId!, "{SecurityProfileId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -8242,15 +5840,8 @@ export const se_UpdateSecurityProfileCommand = async ( TagRestrictedResources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8260,22 +5851,13 @@ export const se_UpdateTaskTemplateCommand = async ( input: UpdateTaskTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/instance/{InstanceId}/task/template/{TaskTemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TaskTemplateId", - () => input.TaskTemplateId!, - "{TaskTemplateId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/instance/{InstanceId}/task/template/{TaskTemplateId}"); + b.p("TaskTemplateId", () => input.TaskTemplateId!, "{TaskTemplateId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -8288,15 +5870,8 @@ export const se_UpdateTaskTemplateCommand = async ( Status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8306,13 +5881,12 @@ export const se_UpdateTrafficDistributionCommand = async ( input: UpdateTrafficDistributionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/traffic-distribution/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -8321,15 +5895,8 @@ export const se_UpdateTrafficDistributionCommand = async ( TelephonyConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8339,29 +5906,21 @@ export const se_UpdateUserHierarchyCommand = async ( input: UpdateUserHierarchyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/hierarchy"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}/hierarchy"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { HierarchyGroupId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8371,37 +5930,21 @@ export const se_UpdateUserHierarchyGroupNameCommand = async ( input: UpdateUserHierarchyGroupNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}/name"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HierarchyGroupId", - () => input.HierarchyGroupId!, - "{HierarchyGroupId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}/name"); + b.p("HierarchyGroupId", () => input.HierarchyGroupId!, "{HierarchyGroupId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8411,28 +5954,20 @@ export const se_UpdateUserHierarchyStructureCommand = async ( input: UpdateUserHierarchyStructureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-structure/{InstanceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/user-hierarchy-structure/{InstanceId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { HierarchyStructure: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8442,30 +5977,21 @@ export const se_UpdateUserIdentityInfoCommand = async ( input: UpdateUserIdentityInfoCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/users/{InstanceId}/{UserId}/identity-info"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}/identity-info"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { IdentityInfo: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8475,29 +6001,21 @@ export const se_UpdateUserPhoneConfigCommand = async ( input: UpdateUserPhoneConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/phone-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}/phone-config"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { PhoneConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8507,30 +6025,21 @@ export const se_UpdateUserRoutingProfileCommand = async ( input: UpdateUserRoutingProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/users/{InstanceId}/{UserId}/routing-profile"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}/routing-profile"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { RoutingProfileId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8540,30 +6049,21 @@ export const se_UpdateUserSecurityProfilesCommand = async ( input: UpdateUserSecurityProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/users/{InstanceId}/{UserId}/security-profiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.bp("/users/{InstanceId}/{UserId}/security-profiles"); + b.p("UserId", () => input.UserId!, "{UserId}", false); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); let body: any; body = JSON.stringify( take(input, { SecurityProfileIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8573,14 +6073,13 @@ export const se_UpdateViewContentCommand = async ( input: UpdateViewContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId!, "{ViewId}", false); + b.bp("/views/{InstanceId}/{ViewId}"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ViewId", () => input.ViewId!, "{ViewId}", false); let body: any; body = JSON.stringify( take(input, { @@ -8588,15 +6087,8 @@ export const se_UpdateViewContentCommand = async ( Status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8606,14 +6098,13 @@ export const se_UpdateViewMetadataCommand = async ( input: UpdateViewMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/views/{InstanceId}/{ViewId}/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId!, "{InstanceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ViewId", () => input.ViewId!, "{ViewId}", false); + b.bp("/views/{InstanceId}/{ViewId}/metadata"); + b.p("InstanceId", () => input.InstanceId!, "{InstanceId}", false); + b.p("ViewId", () => input.ViewId!, "{ViewId}", false); let body: any; body = JSON.stringify( take(input, { @@ -8621,15 +6112,8 @@ export const se_UpdateViewMetadataCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -25462,6 +22946,65 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AST = "AgentStatusTypes"; +const _BN = "BotName"; +const _CFMS = "ContactFlowModuleState"; +const _CFT = "ContactFlowTypes"; +const _CI = "ContactId"; +const _CT = "ClientToken"; +const _DSI = "DataSetId"; +const _EFV = "EvaluationFormVersion"; +const _ESN = "EventSourceName"; +const _FA = "FunctionArn"; +const _IA = "IntegrationArn"; +const _II = "InstanceId"; +const _IT = "IntegrationType"; +const _LR = "LexRegion"; +const _LV = "LexVersion"; +const _MR = "MaxResults"; +const _N = "Name"; +const _NT = "NextToken"; +const _O = "Origin"; +const _PNCC = "PhoneNumberCountryCodes"; +const _PNT = "PhoneNumberTypes"; +const _PS = "PublishStatus"; +const _QCT = "QuickConnectTypes"; +const _QT = "QueueTypes"; +const _RT = "ResourceType"; +const _RTe = "ReferenceTypes"; +const _S = "Status"; +const _SV = "SnapshotVersion"; +const _T = "Type"; +const _TK = "TagKeys"; +const _UI = "UserId"; +const _bN = "botName"; +const _cFT = "contactFlowTypes"; +const _cI = "contactId"; +const _cT = "clientToken"; +const _eSN = "eventSourceName"; +const _fA = "functionArn"; +const _iA = "integrationArn"; +const _iI = "instanceId"; +const _iT = "integrationType"; +const _lR = "lexRegion"; +const _lV = "lexVersion"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _o = "origin"; +const _pNCC = "phoneNumberCountryCodes"; +const _pNT = "phoneNumberTypes"; +const _pS = "publishStatus"; +const _qT = "queueTypes"; +const _rT = "resourceType"; +const _rTe = "referenceTypes"; +const _s = "state"; +const _sV = "snapshotVersion"; +const _st = "status"; +const _t = "type"; +const _tK = "tagKeys"; +const _v = "version"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-connectcampaigns/package.json b/clients/client-connectcampaigns/package.json index 96d48e347c44..5d89f36e6a61 100644 --- a/clients/client-connectcampaigns/package.json +++ b/clients/client-connectcampaigns/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-connectcampaigns/src/protocols/Aws_restJson1.ts b/clients/client-connectcampaigns/src/protocols/Aws_restJson1.ts index ca6f4cc7231f..93383a0d6fc0 100644 --- a/clients/client-connectcampaigns/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectcampaigns/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -105,11 +106,11 @@ export const se_CreateCampaignCommand = async ( input: CreateCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns"; + b.bp("/campaigns"); let body: any; body = JSON.stringify( take(input, { @@ -120,15 +121,8 @@ export const se_CreateCampaignCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -138,20 +132,13 @@ export const se_DeleteCampaignCommand = async ( input: DeleteCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -161,29 +148,13 @@ export const se_DeleteConnectInstanceConfigCommand = async ( input: DeleteConnectInstanceConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/connect-instance/{connectInstanceId}/config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectInstanceId", - () => input.connectInstanceId!, - "{connectInstanceId}", - false - ); + b.bp("/connect-instance/{connectInstanceId}/config"); + b.p("connectInstanceId", () => input.connectInstanceId!, "{connectInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -193,29 +164,13 @@ export const se_DeleteInstanceOnboardingJobCommand = async ( input: DeleteInstanceOnboardingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/connect-instance/{connectInstanceId}/onboarding"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectInstanceId", - () => input.connectInstanceId!, - "{connectInstanceId}", - false - ); + b.bp("/connect-instance/{connectInstanceId}/onboarding"); + b.p("connectInstanceId", () => input.connectInstanceId!, "{connectInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -225,20 +180,13 @@ export const se_DescribeCampaignCommand = async ( input: DescribeCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -248,20 +196,13 @@ export const se_GetCampaignStateCommand = async ( input: GetCampaignStateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/state"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/state"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -271,26 +212,19 @@ export const se_GetCampaignStateBatchCommand = async ( input: GetCampaignStateBatchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns-state"; + b.bp("/campaigns-state"); let body: any; body = JSON.stringify( take(input, { campaignIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -300,29 +234,13 @@ export const se_GetConnectInstanceConfigCommand = async ( input: GetConnectInstanceConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/connect-instance/{connectInstanceId}/config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectInstanceId", - () => input.connectInstanceId!, - "{connectInstanceId}", - false - ); + b.bp("/connect-instance/{connectInstanceId}/config"); + b.p("connectInstanceId", () => input.connectInstanceId!, "{connectInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -332,29 +250,13 @@ export const se_GetInstanceOnboardingJobStatusCommand = async ( input: GetInstanceOnboardingJobStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/connect-instance/{connectInstanceId}/onboarding"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectInstanceId", - () => input.connectInstanceId!, - "{connectInstanceId}", - false - ); + b.bp("/connect-instance/{connectInstanceId}/onboarding"); + b.p("connectInstanceId", () => input.connectInstanceId!, "{connectInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -364,11 +266,11 @@ export const se_ListCampaignsCommand = async ( input: ListCampaignsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns-summary"; + b.bp("/campaigns-summary"); let body: any; body = JSON.stringify( take(input, { @@ -377,15 +279,8 @@ export const se_ListCampaignsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -395,20 +290,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/tags/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -418,20 +306,13 @@ export const se_PauseCampaignCommand = async ( input: PauseCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/pause"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/pause"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -441,28 +322,20 @@ export const se_PutDialRequestBatchCommand = async ( input: PutDialRequestBatchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/dial-requests"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/dial-requests"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { dialRequests: (_) => se_DialRequestList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -472,20 +345,13 @@ export const se_ResumeCampaignCommand = async ( input: ResumeCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/resume"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/resume"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -495,20 +361,13 @@ export const se_StartCampaignCommand = async ( input: StartCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/start"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -518,36 +377,20 @@ export const se_StartInstanceOnboardingJobCommand = async ( input: StartInstanceOnboardingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/connect-instance/{connectInstanceId}/onboarding"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectInstanceId", - () => input.connectInstanceId!, - "{connectInstanceId}", - false - ); + b.bp("/connect-instance/{connectInstanceId}/onboarding"); + b.p("connectInstanceId", () => input.connectInstanceId!, "{connectInstanceId}", false); let body: any; body = JSON.stringify( take(input, { encryptionConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -557,20 +400,13 @@ export const se_StopCampaignCommand = async ( input: StopCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/stop"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -580,27 +416,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/tags/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -610,27 +439,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/tags/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -640,28 +461,20 @@ export const se_UpdateCampaignDialerConfigCommand = async ( input: UpdateCampaignDialerConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/dialer-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/dialer-config"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { dialerConfig: (_) => se_DialerConfig(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -671,27 +484,20 @@ export const se_UpdateCampaignNameCommand = async ( input: UpdateCampaignNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/name"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/name"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -701,13 +507,12 @@ export const se_UpdateCampaignOutboundCallConfigCommand = async ( input: UpdateCampaignOutboundCallConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/campaigns/{id}/outbound-call-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/campaigns/{id}/outbound-call-config"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -716,15 +521,8 @@ export const se_UpdateCampaignOutboundCallConfigCommand = async ( connectSourcePhoneNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2015,7 +1813,7 @@ const de_AccessDeniedExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2034,7 +1832,7 @@ const de_AccessDeniedExceptionRes = async ( */ const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2056,7 +1854,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2078,7 +1876,7 @@ const de_InvalidCampaignStateExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2101,7 +1899,7 @@ const de_InvalidStateExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2123,7 +1921,7 @@ const de_ResourceNotFoundExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2145,7 +1943,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2164,7 +1962,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2183,7 +1981,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeCont */ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - xAmzErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_xAET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2394,6 +2192,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; +const _xAET = "xAmzErrorType"; +const _xae = "x-amzn-errortype"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-connectcases/package.json b/clients/client-connectcases/package.json index a1e3b53b73ad..91a29b80e983 100644 --- a/clients/client-connectcases/package.json +++ b/clients/client-connectcases/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-connectcases/src/protocols/Aws_restJson1.ts b/clients/client-connectcases/src/protocols/Aws_restJson1.ts index 8aec709d00bc..62fbb3d62d67 100644 --- a/clients/client-connectcases/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectcases/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -121,28 +122,20 @@ export const se_BatchGetFieldCommand = async ( input: BatchGetFieldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-batch"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/fields-batch"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { fields: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -152,30 +145,21 @@ export const se_BatchPutFieldOptionsCommand = async ( input: BatchPutFieldOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/fields/{fieldId}/options"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "fieldId", () => input.fieldId!, "{fieldId}", false); + b.bp("/domains/{domainId}/fields/{fieldId}/options"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("fieldId", () => input.fieldId!, "{fieldId}", false); let body: any; body = JSON.stringify( take(input, { options: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -185,13 +169,12 @@ export const se_CreateCaseCommand = async ( input: CreateCaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/cases"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -200,15 +183,8 @@ export const se_CreateCaseCommand = async ( templateId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -218,26 +194,19 @@ export const se_CreateDomainCommand = async ( input: CreateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains"; + b.bp("/domains"); let body: any; body = JSON.stringify( take(input, { name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -247,13 +216,12 @@ export const se_CreateFieldCommand = async ( input: CreateFieldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/fields"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -262,15 +230,8 @@ export const se_CreateFieldCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -280,13 +241,12 @@ export const se_CreateLayoutCommand = async ( input: CreateLayoutCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/layouts"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -294,15 +254,8 @@ export const se_CreateLayoutCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -312,15 +265,13 @@ export const se_CreateRelatedItemCommand = async ( input: CreateRelatedItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/cases/{caseId}/related-items"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId!, "{caseId}", false); + b.bp("/domains/{domainId}/cases/{caseId}/related-items"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("caseId", () => input.caseId!, "{caseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -329,15 +280,8 @@ export const se_CreateRelatedItemCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -347,13 +291,12 @@ export const se_CreateTemplateCommand = async ( input: CreateTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/templates"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -364,15 +307,8 @@ export const se_CreateTemplateCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -382,20 +318,13 @@ export const se_DeleteDomainCommand = async ( input: DeleteDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -405,14 +334,13 @@ export const se_GetCaseCommand = async ( input: GetCaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases/{caseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId!, "{caseId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/cases/{caseId}"); + b.p("caseId", () => input.caseId!, "{caseId}", false); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -420,15 +348,8 @@ export const se_GetCaseCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -438,22 +359,13 @@ export const se_GetCaseEventConfigurationCommand = async ( input: GetCaseEventConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/case-event-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/case-event-configuration"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -463,20 +375,13 @@ export const se_GetDomainCommand = async ( input: GetDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -486,22 +391,14 @@ export const se_GetLayoutCommand = async ( input: GetLayoutCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts/{layoutId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "layoutId", () => input.layoutId!, "{layoutId}", false); + b.bp("/domains/{domainId}/layouts/{layoutId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("layoutId", () => input.layoutId!, "{layoutId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -511,23 +408,14 @@ export const se_GetTemplateCommand = async ( input: GetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/templates/{templateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "templateId", () => input.templateId!, "{templateId}", false); + b.bp("/domains/{domainId}/templates/{templateId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("templateId", () => input.templateId!, "{templateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -537,14 +425,12 @@ export const se_ListCasesForContactCommand = async ( input: ListCasesForContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/list-cases-for-contact"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/list-cases-for-contact"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -553,15 +439,8 @@ export const se_ListCasesForContactCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -571,24 +450,16 @@ export const se_ListDomainsCommand = async ( input: ListDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains-list"; + b.bp("/domains-list"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -598,29 +469,19 @@ export const se_ListFieldOptionsCommand = async ( input: ListFieldOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/fields/{fieldId}/options-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "fieldId", () => input.fieldId!, "{fieldId}", false); + b.bp("/domains/{domainId}/fields/{fieldId}/options-list"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("fieldId", () => input.fieldId!, "{fieldId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - values: [() => input.values !== void 0, () => (input.values! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_v]: [() => input.values !== void 0, () => (input[_v]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -630,26 +491,17 @@ export const se_ListFieldsCommand = async ( input: ListFieldsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/fields-list"); + b.p("domainId", () => input.domainId!, "{domainId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -659,26 +511,17 @@ export const se_ListLayoutsCommand = async ( input: ListLayoutsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/layouts-list"); + b.p("domainId", () => input.domainId!, "{domainId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -688,20 +531,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/tags/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -711,27 +547,18 @@ export const se_ListTemplatesCommand = async ( input: ListTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/templates-list"); + b.p("domainId", () => input.domainId!, "{domainId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - status: [() => input.status !== void 0, () => (input.status! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_s]: [() => input.status !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -741,29 +568,20 @@ export const se_PutCaseEventConfigurationCommand = async ( input: PutCaseEventConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/case-event-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/case-event-configuration"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { eventBridge: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -773,13 +591,12 @@ export const se_SearchCasesCommand = async ( input: SearchCasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases-search"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); + b.bp("/domains/{domainId}/cases-search"); + b.p("domainId", () => input.domainId!, "{domainId}", false); let body: any; body = JSON.stringify( take(input, { @@ -791,15 +608,8 @@ export const se_SearchCasesCommand = async ( sorts: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -809,15 +619,13 @@ export const se_SearchRelatedItemsCommand = async ( input: SearchRelatedItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/cases/{caseId}/related-items-search"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId!, "{caseId}", false); + b.bp("/domains/{domainId}/cases/{caseId}/related-items-search"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("caseId", () => input.caseId!, "{caseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -826,15 +634,8 @@ export const se_SearchRelatedItemsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -844,27 +645,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/tags/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => se_Tags(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -874,27 +668,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/tags/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -904,29 +690,21 @@ export const se_UpdateCaseCommand = async ( input: UpdateCaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases/{caseId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId!, "{caseId}", false); + b.bp("/domains/{domainId}/cases/{caseId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("caseId", () => input.caseId!, "{caseId}", false); let body: any; body = JSON.stringify( take(input, { fields: (_) => se_FieldValueList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -936,14 +714,13 @@ export const se_UpdateFieldCommand = async ( input: UpdateFieldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields/{fieldId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "fieldId", () => input.fieldId!, "{fieldId}", false); + b.bp("/domains/{domainId}/fields/{fieldId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("fieldId", () => input.fieldId!, "{fieldId}", false); let body: any; body = JSON.stringify( take(input, { @@ -951,15 +728,8 @@ export const se_UpdateFieldCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -969,14 +739,13 @@ export const se_UpdateLayoutCommand = async ( input: UpdateLayoutCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts/{layoutId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "layoutId", () => input.layoutId!, "{layoutId}", false); + b.bp("/domains/{domainId}/layouts/{layoutId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("layoutId", () => input.layoutId!, "{layoutId}", false); let body: any; body = JSON.stringify( take(input, { @@ -984,15 +753,8 @@ export const se_UpdateLayoutCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1002,15 +764,13 @@ export const se_UpdateTemplateCommand = async ( input: UpdateTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{domainId}/templates/{templateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId!, "{domainId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "templateId", () => input.templateId!, "{templateId}", false); + b.bp("/domains/{domainId}/templates/{templateId}"); + b.p("domainId", () => input.domainId!, "{domainId}", false); + b.p("templateId", () => input.templateId!, "{templateId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1021,15 +781,8 @@ export const se_UpdateTemplateCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2893,10 +2646,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3395,6 +3145,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _s = "status"; +const _tK = "tagKeys"; +const _v = "values"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-connectparticipant/package.json b/clients/client-connectparticipant/package.json index 206f461940c8..f88f70b153fa 100644 --- a/clients/client-connectparticipant/package.json +++ b/clients/client-connectparticipant/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts index 729ab2a70741..f5d06fe718ff 100644 --- a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -60,13 +61,12 @@ export const se_CompleteAttachmentUploadCommand = async ( input: CompleteAttachmentUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/complete-attachment-upload"; + b.bp("/participant/complete-attachment-upload"); let body: any; body = JSON.stringify( take(input, { @@ -74,15 +74,8 @@ export const se_CompleteAttachmentUploadCommand = async ( ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -92,13 +85,12 @@ export const se_CreateParticipantConnectionCommand = async ( input: CreateParticipantConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ParticipantToken!, + [_xab]: input[_PT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/connection"; + b.bp("/participant/connection"); let body: any; body = JSON.stringify( take(input, { @@ -106,15 +98,8 @@ export const se_CreateParticipantConnectionCommand = async ( Type: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -124,23 +109,15 @@ export const se_DescribeViewCommand = async ( input: DescribeViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/views/{ViewToken}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ViewToken", () => input.ViewToken!, "{ViewToken}", false); + b.bp("/participant/views/{ViewToken}"); + b.p("ViewToken", () => input.ViewToken!, "{ViewToken}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -150,28 +127,20 @@ export const se_DisconnectParticipantCommand = async ( input: DisconnectParticipantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/disconnect"; + b.bp("/participant/disconnect"); let body: any; body = JSON.stringify( take(input, { ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -181,28 +150,20 @@ export const se_GetAttachmentCommand = async ( input: GetAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/attachment"; + b.bp("/participant/attachment"); let body: any; body = JSON.stringify( take(input, { AttachmentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -212,13 +173,12 @@ export const se_GetTranscriptCommand = async ( input: GetTranscriptCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/transcript"; + b.bp("/participant/transcript"); let body: any; body = JSON.stringify( take(input, { @@ -230,15 +190,8 @@ export const se_GetTranscriptCommand = async ( StartPosition: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -248,12 +201,12 @@ export const se_SendEventCommand = async ( input: SendEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/event"; + b.bp("/participant/event"); let body: any; body = JSON.stringify( take(input, { @@ -262,15 +215,8 @@ export const se_SendEventCommand = async ( ContentType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -280,12 +226,12 @@ export const se_SendMessageCommand = async ( input: SendMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/message"; + b.bp("/participant/message"); let body: any; body = JSON.stringify( take(input, { @@ -294,15 +240,8 @@ export const se_SendMessageCommand = async ( ContentType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -312,13 +251,12 @@ export const se_StartAttachmentUploadCommand = async ( input: StartAttachmentUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-bearer": input.ConnectionToken!, + [_xab]: input[_CT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/participant/start-attachment-upload"; + b.bp("/participant/start-attachment-upload"); let body: any; body = JSON.stringify( take(input, { @@ -328,15 +266,8 @@ export const se_StartAttachmentUploadCommand = async ( ContentType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1041,6 +972,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ConnectionToken"; +const _PT = "ParticipantToken"; +const _xab = "x-amz-bearer"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-controltower/package.json b/clients/client-controltower/package.json index 4033fe337f81..79515ca39523 100644 --- a/clients/client-controltower/package.json +++ b/clients/client-controltower/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-controltower/src/models/models_0.ts b/clients/client-controltower/src/models/models_0.ts index f3d1a548e5f3..6b634de4a710 100644 --- a/clients/client-controltower/src/models/models_0.ts +++ b/clients/client-controltower/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { ControlTowerServiceException as __BaseException } from "./ControlTowerServiceException"; diff --git a/clients/client-controltower/src/protocols/Aws_restJson1.ts b/clients/client-controltower/src/protocols/Aws_restJson1.ts index 86883dce26ef..6c73ce465ce9 100644 --- a/clients/client-controltower/src/protocols/Aws_restJson1.ts +++ b/clients/client-controltower/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -77,11 +78,11 @@ export const se_CreateLandingZoneCommand = async ( input: CreateLandingZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-landingzone"; + b.bp("/create-landingzone"); let body: any; body = JSON.stringify( take(input, { @@ -90,15 +91,8 @@ export const se_CreateLandingZoneCommand = async ( version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -108,26 +102,19 @@ export const se_DeleteLandingZoneCommand = async ( input: DeleteLandingZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-landingzone"; + b.bp("/delete-landingzone"); let body: any; body = JSON.stringify( take(input, { landingZoneIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -137,11 +124,11 @@ export const se_DisableControlCommand = async ( input: DisableControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disable-control"; + b.bp("/disable-control"); let body: any; body = JSON.stringify( take(input, { @@ -149,15 +136,8 @@ export const se_DisableControlCommand = async ( targetIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -167,11 +147,11 @@ export const se_EnableControlCommand = async ( input: EnableControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enable-control"; + b.bp("/enable-control"); let body: any; body = JSON.stringify( take(input, { @@ -181,15 +161,8 @@ export const se_EnableControlCommand = async ( targetIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -199,26 +172,19 @@ export const se_GetControlOperationCommand = async ( input: GetControlOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-control-operation"; + b.bp("/get-control-operation"); let body: any; body = JSON.stringify( take(input, { operationIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -228,26 +194,19 @@ export const se_GetEnabledControlCommand = async ( input: GetEnabledControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-enabled-control"; + b.bp("/get-enabled-control"); let body: any; body = JSON.stringify( take(input, { enabledControlIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -257,26 +216,19 @@ export const se_GetLandingZoneCommand = async ( input: GetLandingZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone"; + b.bp("/get-landingzone"); let body: any; body = JSON.stringify( take(input, { landingZoneIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -286,27 +238,19 @@ export const se_GetLandingZoneOperationCommand = async ( input: GetLandingZoneOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-landingzone-operation"; + b.bp("/get-landingzone-operation"); let body: any; body = JSON.stringify( take(input, { operationIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -316,11 +260,11 @@ export const se_ListEnabledControlsCommand = async ( input: ListEnabledControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-enabled-controls"; + b.bp("/list-enabled-controls"); let body: any; body = JSON.stringify( take(input, { @@ -329,15 +273,8 @@ export const se_ListEnabledControlsCommand = async ( targetIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -347,11 +284,11 @@ export const se_ListLandingZonesCommand = async ( input: ListLandingZonesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-landingzones"; + b.bp("/list-landingzones"); let body: any; body = JSON.stringify( take(input, { @@ -359,15 +296,8 @@ export const se_ListLandingZonesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -377,20 +307,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -400,26 +323,19 @@ export const se_ResetLandingZoneCommand = async ( input: ResetLandingZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-landingzone"; + b.bp("/reset-landingzone"); let body: any; body = JSON.stringify( take(input, { landingZoneIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -429,27 +345,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -459,27 +368,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -489,12 +390,11 @@ export const se_UpdateEnabledControlCommand = async ( input: UpdateEnabledControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-enabled-control"; + b.bp("/update-enabled-control"); let body: any; body = JSON.stringify( take(input, { @@ -502,15 +402,8 @@ export const se_UpdateEnabledControlCommand = async ( parameters: (_) => se_EnabledControlParameters(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -520,11 +413,11 @@ export const se_UpdateLandingZoneCommand = async ( input: UpdateLandingZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-landingzone"; + b.bp("/update-landingzone"); let body: any; body = JSON.stringify( take(input, { @@ -533,15 +426,8 @@ export const se_UpdateLandingZoneCommand = async ( version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1593,10 +1479,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1799,6 +1682,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-customer-profiles/package.json b/clients/client-customer-profiles/package.json index 26ad5e8ad4f8..0956d6bc3a68 100644 --- a/clients/client-customer-profiles/package.json +++ b/clients/client-customer-profiles/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts index 6f7ba99fc344..2a10298f171e 100644 --- a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts +++ b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -214,13 +215,12 @@ export const se_AddProfileKeyCommand = async ( input: AddProfileKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/keys"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/keys"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -229,15 +229,8 @@ export const se_AddProfileKeyCommand = async ( Values: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -247,22 +240,13 @@ export const se_CreateCalculatedAttributeDefinitionCommand = async ( input: CreateCalculatedAttributeDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatedAttributeName", - () => input.CalculatedAttributeName!, - "{CalculatedAttributeName}", - false - ); + b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("CalculatedAttributeName", () => input.CalculatedAttributeName!, "{CalculatedAttributeName}", false); let body: any; body = JSON.stringify( take(input, { @@ -274,15 +258,8 @@ export const se_CreateCalculatedAttributeDefinitionCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -292,12 +269,12 @@ export const se_CreateDomainCommand = async ( input: CreateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -309,15 +286,8 @@ export const se_CreateDomainCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -327,22 +297,13 @@ export const se_CreateEventStreamCommand = async ( input: CreateEventStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/event-streams/{EventStreamName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventStreamName", - () => input.EventStreamName!, - "{EventStreamName}", - false - ); + b.bp("/domains/{DomainName}/event-streams/{EventStreamName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("EventStreamName", () => input.EventStreamName!, "{EventStreamName}", false); let body: any; body = JSON.stringify( take(input, { @@ -350,15 +311,8 @@ export const se_CreateEventStreamCommand = async ( Uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -368,14 +322,12 @@ export const se_CreateIntegrationWorkflowCommand = async ( input: CreateIntegrationWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/workflows/integrations"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/workflows/integrations"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -386,15 +338,8 @@ export const se_CreateIntegrationWorkflowCommand = async ( WorkflowType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -404,13 +349,12 @@ export const se_CreateProfileCommand = async ( input: CreateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -439,15 +383,8 @@ export const se_CreateProfileCommand = async ( ShippingAddress: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -457,30 +394,14 @@ export const se_DeleteCalculatedAttributeDefinitionCommand = async ( input: DeleteCalculatedAttributeDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatedAttributeName", - () => input.CalculatedAttributeName!, - "{CalculatedAttributeName}", - false - ); + b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("CalculatedAttributeName", () => input.CalculatedAttributeName!, "{CalculatedAttributeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -490,20 +411,13 @@ export const se_DeleteDomainCommand = async ( input: DeleteDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -513,30 +427,14 @@ export const se_DeleteEventStreamCommand = async ( input: DeleteEventStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/event-streams/{EventStreamName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventStreamName", - () => input.EventStreamName!, - "{EventStreamName}", - false - ); + b.bp("/domains/{DomainName}/event-streams/{EventStreamName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("EventStreamName", () => input.EventStreamName!, "{EventStreamName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -546,28 +444,20 @@ export const se_DeleteIntegrationCommand = async ( input: DeleteIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations/delete"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/integrations/delete"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { Uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -577,28 +467,20 @@ export const se_DeleteProfileCommand = async ( input: DeleteProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/delete"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/delete"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { ProfileId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -608,14 +490,12 @@ export const se_DeleteProfileKeyCommand = async ( input: DeleteProfileKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/profiles/keys/delete"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/keys/delete"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -624,15 +504,8 @@ export const se_DeleteProfileKeyCommand = async ( Values: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -642,14 +515,12 @@ export const se_DeleteProfileObjectCommand = async ( input: DeleteProfileObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/profiles/objects/delete"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/objects/delete"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -658,15 +529,8 @@ export const se_DeleteProfileObjectCommand = async ( ProfileObjectUniqueKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -676,30 +540,14 @@ export const se_DeleteProfileObjectTypeCommand = async ( input: DeleteProfileObjectTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/object-types/{ObjectTypeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ObjectTypeName", - () => input.ObjectTypeName!, - "{ObjectTypeName}", - false - ); + b.bp("/domains/{DomainName}/object-types/{ObjectTypeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("ObjectTypeName", () => input.ObjectTypeName!, "{ObjectTypeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -709,23 +557,14 @@ export const se_DeleteWorkflowCommand = async ( input: DeleteWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/workflows/{WorkflowId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "WorkflowId", () => input.WorkflowId!, "{WorkflowId}", false); + b.bp("/domains/{DomainName}/workflows/{WorkflowId}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("WorkflowId", () => input.WorkflowId!, "{WorkflowId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -735,28 +574,20 @@ export const se_DetectProfileObjectTypeCommand = async ( input: DetectProfileObjectTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/detect/object-types"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/detect/object-types"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { Objects: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -766,14 +597,12 @@ export const se_GetAutoMergingPreviewCommand = async ( input: GetAutoMergingPreviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -782,15 +611,8 @@ export const se_GetAutoMergingPreviewCommand = async ( MinAllowedConfidenceScoreForMerging: (_) => __serializeFloat(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -800,30 +622,14 @@ export const se_GetCalculatedAttributeDefinitionCommand = async ( input: GetCalculatedAttributeDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatedAttributeName", - () => input.CalculatedAttributeName!, - "{CalculatedAttributeName}", - false - ); + b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("CalculatedAttributeName", () => input.CalculatedAttributeName!, "{CalculatedAttributeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -833,31 +639,15 @@ export const se_GetCalculatedAttributeForProfileCommand = async ( input: GetCalculatedAttributeForProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileId", () => input.ProfileId!, "{ProfileId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatedAttributeName", - () => input.CalculatedAttributeName!, - "{CalculatedAttributeName}", - false - ); + b.bp("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("ProfileId", () => input.ProfileId!, "{ProfileId}", false); + b.p("CalculatedAttributeName", () => input.CalculatedAttributeName!, "{CalculatedAttributeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -867,20 +657,13 @@ export const se_GetDomainCommand = async ( input: GetDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -890,30 +673,14 @@ export const se_GetEventStreamCommand = async ( input: GetEventStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/event-streams/{EventStreamName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventStreamName", - () => input.EventStreamName!, - "{EventStreamName}", - false - ); + b.bp("/domains/{DomainName}/event-streams/{EventStreamName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("EventStreamName", () => input.EventStreamName!, "{EventStreamName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -923,23 +690,14 @@ export const se_GetIdentityResolutionJobCommand = async ( input: GetIdentityResolutionJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/identity-resolution-jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/domains/{DomainName}/identity-resolution-jobs/{JobId}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -949,28 +707,20 @@ export const se_GetIntegrationCommand = async ( input: GetIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/integrations"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { Uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -980,26 +730,17 @@ export const se_GetMatchesCommand = async ( input: GetMatchesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/matches"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/matches"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1009,30 +750,14 @@ export const se_GetProfileObjectTypeCommand = async ( input: GetProfileObjectTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/object-types/{ObjectTypeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ObjectTypeName", - () => input.ObjectTypeName!, - "{ObjectTypeName}", - false - ); + b.bp("/domains/{DomainName}/object-types/{ObjectTypeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("ObjectTypeName", () => input.ObjectTypeName!, "{ObjectTypeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1042,20 +767,13 @@ export const se_GetProfileObjectTypeTemplateCommand = async ( input: GetProfileObjectTypeTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{TemplateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/templates/{TemplateId}"); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1065,16 +783,15 @@ export const se_GetSimilarProfilesCommand = async ( input: GetSimilarProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/matches"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/matches"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1084,16 +801,8 @@ export const se_GetSimilarProfilesCommand = async ( SearchValue: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1103,23 +812,14 @@ export const se_GetWorkflowCommand = async ( input: GetWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/workflows/{WorkflowId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "WorkflowId", () => input.WorkflowId!, "{WorkflowId}", false); + b.bp("/domains/{DomainName}/workflows/{WorkflowId}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("WorkflowId", () => input.WorkflowId!, "{WorkflowId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1129,28 +829,18 @@ export const se_GetWorkflowStepsCommand = async ( input: GetWorkflowStepsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/workflows/{WorkflowId}/steps"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "WorkflowId", () => input.WorkflowId!, "{WorkflowId}", false); + b.bp("/domains/{DomainName}/workflows/{WorkflowId}/steps"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("WorkflowId", () => input.WorkflowId!, "{WorkflowId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1160,15 +850,15 @@ export const se_ListAccountIntegrationsCommand = async ( input: ListAccountIntegrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/integrations"; + b.bp("/integrations"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "include-hidden": [() => input.IncludeHidden !== void 0, () => input.IncludeHidden!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_ih]: [() => input.IncludeHidden !== void 0, () => input[_IH]!.toString()], }); let body: any; body = JSON.stringify( @@ -1176,16 +866,8 @@ export const se_ListAccountIntegrationsCommand = async ( Uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1195,27 +877,17 @@ export const se_ListCalculatedAttributeDefinitionsCommand = async ( input: ListCalculatedAttributeDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/calculated-attributes"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/calculated-attributes"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1225,28 +897,18 @@ export const se_ListCalculatedAttributesForProfileCommand = async ( input: ListCalculatedAttributesForProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileId", () => input.ProfileId!, "{ProfileId}", false); + b.bp("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("ProfileId", () => input.ProfileId!, "{ProfileId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1256,24 +918,16 @@ export const se_ListDomainsCommand = async ( input: ListDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains"; + b.bp("/domains"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1283,26 +937,17 @@ export const se_ListEventStreamsCommand = async ( input: ListEventStreamsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/event-streams"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/event-streams"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1312,27 +957,17 @@ export const se_ListIdentityResolutionJobsCommand = async ( input: ListIdentityResolutionJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/identity-resolution-jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/identity-resolution-jobs"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1342,27 +977,18 @@ export const se_ListIntegrationsCommand = async ( input: ListIntegrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/integrations"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "include-hidden": [() => input.IncludeHidden !== void 0, () => input.IncludeHidden!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_ih]: [() => input.IncludeHidden !== void 0, () => input[_IH]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1372,16 +998,15 @@ export const se_ListProfileObjectsCommand = async ( input: ListProfileObjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/objects"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/objects"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1391,16 +1016,8 @@ export const se_ListProfileObjectsCommand = async ( ProfileId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1410,26 +1027,17 @@ export const se_ListProfileObjectTypesCommand = async ( input: ListProfileObjectTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/object-types"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/object-types"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1439,24 +1047,16 @@ export const se_ListProfileObjectTypeTemplatesCommand = async ( input: ListProfileObjectTypeTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates"; + b.bp("/templates"); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1466,27 +1066,17 @@ export const se_ListRuleBasedMatchesCommand = async ( input: ListRuleBasedMatchesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/profiles/ruleBasedMatches"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/ruleBasedMatches"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1496,20 +1086,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1519,16 +1102,15 @@ export const se_ListWorkflowsCommand = async ( input: ListWorkflowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/workflows"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/workflows"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1539,16 +1121,8 @@ export const se_ListWorkflowsCommand = async ( WorkflowType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1558,14 +1132,12 @@ export const se_MergeProfilesCommand = async ( input: MergeProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/profiles/objects/merge"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/objects/merge"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1574,15 +1146,8 @@ export const se_MergeProfilesCommand = async ( ProfileIdsToBeMerged: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1592,13 +1157,12 @@ export const se_PutIntegrationCommand = async ( input: PutIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/integrations"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1609,15 +1173,8 @@ export const se_PutIntegrationCommand = async ( Uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1627,13 +1184,12 @@ export const se_PutProfileObjectCommand = async ( input: PutProfileObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/objects"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/objects"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1641,15 +1197,8 @@ export const se_PutProfileObjectCommand = async ( ObjectTypeName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1659,22 +1208,13 @@ export const se_PutProfileObjectTypeCommand = async ( input: PutProfileObjectTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/object-types/{ObjectTypeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ObjectTypeName", - () => input.ObjectTypeName!, - "{ObjectTypeName}", - false - ); + b.bp("/domains/{DomainName}/object-types/{ObjectTypeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("ObjectTypeName", () => input.ObjectTypeName!, "{ObjectTypeName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1689,15 +1229,8 @@ export const se_PutProfileObjectTypeCommand = async ( TemplateId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1707,16 +1240,15 @@ export const se_SearchProfilesCommand = async ( input: SearchProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/search"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles/search"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1727,16 +1259,8 @@ export const se_SearchProfilesCommand = async ( Values: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1746,27 +1270,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1776,27 +1293,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1806,22 +1315,13 @@ export const se_UpdateCalculatedAttributeDefinitionCommand = async ( input: UpdateCalculatedAttributeDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatedAttributeName", - () => input.CalculatedAttributeName!, - "{CalculatedAttributeName}", - false - ); + b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("CalculatedAttributeName", () => input.CalculatedAttributeName!, "{CalculatedAttributeName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1830,15 +1330,8 @@ export const se_UpdateCalculatedAttributeDefinitionCommand = async ( DisplayName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1848,12 +1341,12 @@ export const se_UpdateDomainCommand = async ( input: UpdateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1865,15 +1358,8 @@ export const se_UpdateDomainCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1883,13 +1369,12 @@ export const se_UpdateProfileCommand = async ( input: UpdateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/domains/{DomainName}/profiles"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1919,15 +1404,8 @@ export const se_UpdateProfileCommand = async ( ShippingAddress: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5850,6 +5328,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _IH = "IncludeHidden"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _ih = "include-hidden"; +const _mr = "max-results"; +const _nt = "next-token"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-database-migration-service/src/models/models_1.ts b/clients/client-database-migration-service/src/models/models_1.ts index 557ae0462031..e8eaf4622808 100644 --- a/clients/client-database-migration-service/src/models/models_1.ts +++ b/clients/client-database-migration-service/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { DatabaseMigrationServiceServiceException as __BaseException } from "./DatabaseMigrationServiceServiceException"; + import { ComputeConfig, Connection, diff --git a/clients/client-databrew/package.json b/clients/client-databrew/package.json index 09e9a6661da6..54bdd81d575d 100644 --- a/clients/client-databrew/package.json +++ b/clients/client-databrew/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-databrew/src/protocols/Aws_restJson1.ts b/clients/client-databrew/src/protocols/Aws_restJson1.ts index 130c7e43414d..136a13802acf 100644 --- a/clients/client-databrew/src/protocols/Aws_restJson1.ts +++ b/clients/client-databrew/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -146,28 +147,20 @@ export const se_BatchDeleteRecipeVersionCommand = async ( input: BatchDeleteRecipeVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/batchDeleteRecipeVersion"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/recipes/{Name}/batchDeleteRecipeVersion"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { RecipeVersions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -177,11 +170,11 @@ export const se_CreateDatasetCommand = async ( input: CreateDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets"; + b.bp("/datasets"); let body: any; body = JSON.stringify( take(input, { @@ -193,15 +186,8 @@ export const se_CreateDatasetCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -211,11 +197,11 @@ export const se_CreateProfileJobCommand = async ( input: CreateProfileJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs"; + b.bp("/profileJobs"); let body: any; body = JSON.stringify( take(input, { @@ -235,15 +221,8 @@ export const se_CreateProfileJobCommand = async ( ValidationConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -253,11 +232,11 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); let body: any; body = JSON.stringify( take(input, { @@ -269,15 +248,8 @@ export const se_CreateProjectCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,11 +259,11 @@ export const se_CreateRecipeCommand = async ( input: CreateRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes"; + b.bp("/recipes"); let body: any; body = JSON.stringify( take(input, { @@ -301,15 +273,8 @@ export const se_CreateRecipeCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -319,11 +284,11 @@ export const se_CreateRecipeJobCommand = async ( input: CreateRecipeJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs"; + b.bp("/recipeJobs"); let body: any; body = JSON.stringify( take(input, { @@ -344,15 +309,8 @@ export const se_CreateRecipeJobCommand = async ( Timeout: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -362,11 +320,11 @@ export const se_CreateRulesetCommand = async ( input: CreateRulesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets"; + b.bp("/rulesets"); let body: any; body = JSON.stringify( take(input, { @@ -377,15 +335,8 @@ export const se_CreateRulesetCommand = async ( TargetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -395,11 +346,11 @@ export const se_CreateScheduleCommand = async ( input: CreateScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules"; + b.bp("/schedules"); let body: any; body = JSON.stringify( take(input, { @@ -409,15 +360,8 @@ export const se_CreateScheduleCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -427,20 +371,13 @@ export const se_DeleteDatasetCommand = async ( input: DeleteDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/datasets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -450,20 +387,13 @@ export const se_DeleteJobCommand = async ( input: DeleteJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/jobs/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -473,20 +403,13 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/projects/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -496,30 +419,14 @@ export const se_DeleteRecipeVersionCommand = async ( input: DeleteRecipeVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/recipes/{Name}/recipeVersion/{RecipeVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecipeVersion", - () => input.RecipeVersion!, - "{RecipeVersion}", - false - ); + b.bp("/recipes/{Name}/recipeVersion/{RecipeVersion}"); + b.p("Name", () => input.Name!, "{Name}", false); + b.p("RecipeVersion", () => input.RecipeVersion!, "{RecipeVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -529,20 +436,13 @@ export const se_DeleteRulesetCommand = async ( input: DeleteRulesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/rulesets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -552,20 +452,13 @@ export const se_DeleteScheduleCommand = async ( input: DeleteScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedules/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -575,20 +468,13 @@ export const se_DescribeDatasetCommand = async ( input: DescribeDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/datasets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -598,20 +484,13 @@ export const se_DescribeJobCommand = async ( input: DescribeJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/jobs/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -621,22 +500,14 @@ export const se_DescribeJobRunCommand = async ( input: DescribeJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RunId", () => input.RunId!, "{RunId}", false); + b.bp("/jobs/{Name}/jobRun/{RunId}"); + b.p("Name", () => input.Name!, "{Name}", false); + b.p("RunId", () => input.RunId!, "{RunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -646,20 +517,13 @@ export const se_DescribeProjectCommand = async ( input: DescribeProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/projects/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -669,24 +533,16 @@ export const se_DescribeRecipeCommand = async ( input: DescribeRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/recipes/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - recipeVersion: [, input.RecipeVersion!], + [_rV]: [, input[_RV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -696,20 +552,13 @@ export const se_DescribeRulesetCommand = async ( input: DescribeRulesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/rulesets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -719,20 +568,13 @@ export const se_DescribeScheduleCommand = async ( input: DescribeScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedules/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -742,24 +584,16 @@ export const se_ListDatasetsCommand = async ( input: ListDatasetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets"; + b.bp("/datasets"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -769,25 +603,17 @@ export const se_ListJobRunsCommand = async ( input: ListJobRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRuns"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/jobs/{Name}/jobRuns"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -797,26 +623,18 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); const query: any = map({ - datasetName: [, input.DatasetName!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - projectName: [, input.ProjectName!], + [_dN]: [, input[_DN]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_pN]: [, input[_PN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -826,24 +644,16 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -853,25 +663,17 @@ export const se_ListRecipesCommand = async ( input: ListRecipesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes"; + b.bp("/recipes"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - recipeVersion: [, input.RecipeVersion!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_rV]: [, input[_RV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -881,25 +683,17 @@ export const se_ListRecipeVersionsCommand = async ( input: ListRecipeVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeVersions"; + b.bp("/recipeVersions"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - name: [, __expectNonNull(input.Name!, `Name`)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_n]: [, __expectNonNull(input[_N]!, `Name`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -909,25 +703,17 @@ export const se_ListRulesetsCommand = async ( input: ListRulesetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets"; + b.bp("/rulesets"); const query: any = map({ - targetArn: [, input.TargetArn!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_tA]: [, input[_TA]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -937,25 +723,17 @@ export const se_ListSchedulesCommand = async ( input: ListSchedulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules"; + b.bp("/schedules"); const query: any = map({ - jobName: [, input.JobName!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_jN]: [, input[_JN]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -965,20 +743,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -988,28 +759,20 @@ export const se_PublishRecipeCommand = async ( input: PublishRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/publishRecipe"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/recipes/{Name}/publishRecipe"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1019,13 +782,12 @@ export const se_SendProjectSessionActionCommand = async ( input: SendProjectSessionActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/sendProjectSessionAction"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/projects/{Name}/sendProjectSessionAction"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1036,15 +798,8 @@ export const se_SendProjectSessionActionCommand = async ( ViewFrame: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1054,20 +809,13 @@ export const se_StartJobRunCommand = async ( input: StartJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/startJobRun"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/jobs/{Name}/startJobRun"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1077,28 +825,20 @@ export const se_StartProjectSessionCommand = async ( input: StartProjectSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/startProjectSession"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/projects/{Name}/startProjectSession"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { AssumeControl: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1108,22 +848,14 @@ export const se_StopJobRunCommand = async ( input: StopJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}/stopJobRun"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RunId", () => input.RunId!, "{RunId}", false); + b.bp("/jobs/{Name}/jobRun/{RunId}/stopJobRun"); + b.p("Name", () => input.Name!, "{Name}", false); + b.p("RunId", () => input.RunId!, "{RunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1133,27 +865,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1163,27 +888,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1193,12 +910,12 @@ export const se_UpdateDatasetCommand = async ( input: UpdateDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/datasets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1208,15 +925,8 @@ export const se_UpdateDatasetCommand = async ( PathOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1226,12 +936,12 @@ export const se_UpdateProfileJobCommand = async ( input: UpdateProfileJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/profileJobs/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1248,15 +958,8 @@ export const se_UpdateProfileJobCommand = async ( ValidationConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1266,12 +969,12 @@ export const se_UpdateProjectCommand = async ( input: UpdateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/projects/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1279,15 +982,8 @@ export const se_UpdateProjectCommand = async ( Sample: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1297,12 +993,12 @@ export const se_UpdateRecipeCommand = async ( input: UpdateRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/recipes/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1310,15 +1006,8 @@ export const se_UpdateRecipeCommand = async ( Steps: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1328,12 +1017,12 @@ export const se_UpdateRecipeJobCommand = async ( input: UpdateRecipeJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/recipeJobs/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1349,15 +1038,8 @@ export const se_UpdateRecipeJobCommand = async ( Timeout: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1367,12 +1049,12 @@ export const se_UpdateRulesetCommand = async ( input: UpdateRulesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/rulesets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1380,15 +1062,8 @@ export const se_UpdateRulesetCommand = async ( Rules: (_) => se_RuleList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1398,12 +1073,12 @@ export const se_UpdateScheduleCommand = async ( input: UpdateScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedules/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1411,15 +1086,8 @@ export const se_UpdateScheduleCommand = async ( JobNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4480,6 +4148,25 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DN = "DatasetName"; +const _JN = "JobName"; +const _MR = "MaxResults"; +const _N = "Name"; +const _NT = "NextToken"; +const _PN = "ProjectName"; +const _RV = "RecipeVersion"; +const _TA = "TargetArn"; +const _TK = "TagKeys"; +const _dN = "datasetName"; +const _jN = "jobName"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _pN = "projectName"; +const _rV = "recipeVersion"; +const _tA = "targetArn"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-dataexchange/package.json b/clients/client-dataexchange/package.json index 05dbc16a486b..d720b4b65a55 100644 --- a/clients/client-dataexchange/package.json +++ b/clients/client-dataexchange/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-dataexchange/src/protocols/Aws_restJson1.ts b/clients/client-dataexchange/src/protocols/Aws_restJson1.ts index 12a00622f8e2..71867aeaa4f5 100644 --- a/clients/client-dataexchange/src/protocols/Aws_restJson1.ts +++ b/clients/client-dataexchange/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -134,20 +135,13 @@ export const se_CancelJobCommand = async ( input: CancelJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v1/jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -157,11 +151,11 @@ export const se_CreateDataSetCommand = async ( input: CreateDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets"; + b.bp("/v1/data-sets"); let body: any; body = JSON.stringify( take(input, { @@ -171,15 +165,8 @@ export const se_CreateDataSetCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -189,11 +176,11 @@ export const se_CreateEventActionCommand = async ( input: CreateEventActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions"; + b.bp("/v1/event-actions"); let body: any; body = JSON.stringify( take(input, { @@ -201,15 +188,8 @@ export const se_CreateEventActionCommand = async ( Event: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -219,11 +199,11 @@ export const se_CreateJobCommand = async ( input: CreateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs"; + b.bp("/v1/jobs"); let body: any; body = JSON.stringify( take(input, { @@ -231,15 +211,8 @@ export const se_CreateJobCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -249,13 +222,12 @@ export const se_CreateRevisionCommand = async ( input: CreateRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/revisions"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -263,15 +235,8 @@ export const se_CreateRevisionCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -281,24 +246,15 @@ export const se_DeleteAssetCommand = async ( input: DeleteAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AssetId", () => input.AssetId!, "{AssetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"); + b.p("AssetId", () => input.AssetId!, "{AssetId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -308,21 +264,13 @@ export const se_DeleteDataSetCommand = async ( input: DeleteDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/v1/data-sets/{DataSetId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -332,28 +280,13 @@ export const se_DeleteEventActionCommand = async ( input: DeleteEventActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventActionId", - () => input.EventActionId!, - "{EventActionId}", - false - ); + b.bp("/v1/event-actions/{EventActionId}"); + b.p("EventActionId", () => input.EventActionId!, "{EventActionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -363,23 +296,14 @@ export const se_DeleteRevisionCommand = async ( input: DeleteRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -389,24 +313,15 @@ export const se_GetAssetCommand = async ( input: GetAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AssetId", () => input.AssetId!, "{AssetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"); + b.p("AssetId", () => input.AssetId!, "{AssetId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -416,21 +331,13 @@ export const se_GetDataSetCommand = async ( input: GetDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/v1/data-sets/{DataSetId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -440,48 +347,26 @@ export const se_GetEventActionCommand = async ( input: GetEventActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventActionId", - () => input.EventActionId!, - "{EventActionId}", - false - ); + b.bp("/v1/event-actions/{EventActionId}"); + b.p("EventActionId", () => input.EventActionId!, "{EventActionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetJobCommand */ export const se_GetJobCommand = async (input: GetJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v1/jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -491,23 +376,14 @@ export const se_GetRevisionCommand = async ( input: GetRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -517,26 +393,17 @@ export const se_ListDataSetRevisionsCommand = async ( input: ListDataSetRevisionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/revisions"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -546,25 +413,17 @@ export const se_ListDataSetsCommand = async ( input: ListDataSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets"; + b.bp("/v1/data-sets"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - origin: [, input.Origin!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_o]: [, input[_O]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -574,25 +433,17 @@ export const se_ListEventActionsCommand = async ( input: ListEventActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions"; + b.bp("/v1/event-actions"); const query: any = map({ - eventSourceId: [, input.EventSourceId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_eSI]: [, input[_ESI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -602,26 +453,18 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs"; + b.bp("/v1/jobs"); const query: any = map({ - dataSetId: [, input.DataSetId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - revisionId: [, input.RevisionId!], + [_dSI]: [, input[_DSI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_rI]: [, input[_RI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -631,28 +474,18 @@ export const se_ListRevisionAssetsCommand = async ( input: ListRevisionAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -662,20 +495,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -685,30 +511,21 @@ export const se_RevokeRevisionCommand = async ( input: RevokeRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/revoke"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/revoke"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); let body: any; body = JSON.stringify( take(input, { RevocationComment: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -718,21 +535,21 @@ export const se_SendApiAssetCommand = async ( input: SendApiAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "text/plain", - "x-amzn-dataexchange-asset-id": input.AssetId!, - "x-amzn-dataexchange-data-set-id": input.DataSetId!, - "x-amzn-dataexchange-http-method": input.Method!, - "x-amzn-dataexchange-path": input.Path!, - "x-amzn-dataexchange-revision-id": input.RevisionId!, + [_xadai]: input[_AI]!, + [_xaddsi]: input[_DSI]!, + [_xadhm]: input[_M]!, + [_xadp]: input[_P]!, + [_xadri]: input[_RI]!, ...(input.RequestHeaders !== undefined && Object.keys(input.RequestHeaders).reduce((acc: any, suffix: string) => { acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders![suffix]; return acc; }, {})), }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1"; + b.bp("/v1"); const query: any = map({ ...convertMap(input.QueryStringParameters), }); @@ -747,16 +564,9 @@ export const se_SendApiAssetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -766,13 +576,12 @@ export const se_SendDataSetNotificationCommand = async ( input: SendDataSetNotificationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/notification"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/v1/data-sets/{DataSetId}/notification"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -783,15 +592,8 @@ export const se_SendDataSetNotificationCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -801,20 +603,13 @@ export const se_StartJobCommand = async ( input: StartJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v1/jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -824,27 +619,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -854,27 +642,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -884,31 +664,22 @@ export const se_UpdateAssetCommand = async ( input: UpdateAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AssetId", () => input.AssetId!, "{AssetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"); + b.p("AssetId", () => input.AssetId!, "{AssetId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -918,13 +689,12 @@ export const se_UpdateDataSetCommand = async ( input: UpdateDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/v1/data-sets/{DataSetId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -932,15 +702,8 @@ export const se_UpdateDataSetCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -950,35 +713,20 @@ export const se_UpdateEventActionCommand = async ( input: UpdateEventActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventActionId", - () => input.EventActionId!, - "{EventActionId}", - false - ); + b.bp("/v1/event-actions/{EventActionId}"); + b.p("EventActionId", () => input.EventActionId!, "{EventActionId}", false); let body: any; body = JSON.stringify( take(input, { Action: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -988,15 +736,13 @@ export const se_UpdateRevisionCommand = async ( input: UpdateRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/data-sets/{DataSetId}/revisions/{RevisionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RevisionId", () => input.RevisionId!, "{RevisionId}", false); + b.bp("/v1/data-sets/{DataSetId}/revisions/{RevisionId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("RevisionId", () => input.RevisionId!, "{RevisionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1004,15 +750,8 @@ export const se_UpdateRevisionCommand = async ( Finalized: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3473,6 +3212,29 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AI = "AssetId"; +const _DSI = "DataSetId"; +const _ESI = "EventSourceId"; +const _M = "Method"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _O = "Origin"; +const _P = "Path"; +const _RI = "RevisionId"; +const _TK = "TagKeys"; +const _dSI = "dataSetId"; +const _eSI = "eventSourceId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _o = "origin"; +const _rI = "revisionId"; +const _tK = "tagKeys"; +const _xadai = "x-amzn-dataexchange-asset-id"; +const _xaddsi = "x-amzn-dataexchange-data-set-id"; +const _xadhm = "x-amzn-dataexchange-http-method"; +const _xadp = "x-amzn-dataexchange-path"; +const _xadri = "x-amzn-dataexchange-revision-id"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-datazone/package.json b/clients/client-datazone/package.json index 86f8c236a6f6..eb180b0fa557 100644 --- a/clients/client-datazone/package.json +++ b/clients/client-datazone/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-datazone/src/protocols/Aws_restJson1.ts b/clients/client-datazone/src/protocols/Aws_restJson1.ts index 3a0a2986ce26..ecf7f7efa6bf 100644 --- a/clients/client-datazone/src/protocols/Aws_restJson1.ts +++ b/clients/client-datazone/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -323,24 +324,15 @@ export const se_AcceptPredictionsCommand = async ( input: AcceptPredictionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/assets/{identifier}/accept-predictions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/accept-predictions"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - revision: [, input.revision!], + [_r]: [, input[_r]!], }); let body: any; body = JSON.stringify( @@ -350,16 +342,8 @@ export const se_AcceptPredictionsCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -369,37 +353,21 @@ export const se_AcceptSubscriptionRequestCommand = async ( input: AcceptSubscriptionRequestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/accept"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/accept"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { decisionComment: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -409,30 +377,14 @@ export const se_CancelSubscriptionCommand = async ( input: CancelSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscriptions/{identifier}/cancel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscriptions/{identifier}/cancel"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -442,20 +394,12 @@ export const se_CreateAssetCommand = async ( input: CreateAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/assets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/assets"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -471,15 +415,8 @@ export const se_CreateAssetCommand = async ( typeRevision: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -489,22 +426,13 @@ export const se_CreateAssetRevisionCommand = async ( input: CreateAssetRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/assets/{identifier}/revisions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/revisions"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -517,15 +445,8 @@ export const se_CreateAssetRevisionCommand = async ( typeRevision: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -535,21 +456,12 @@ export const se_CreateAssetTypeCommand = async ( input: CreateAssetTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/asset-types"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/asset-types"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -559,15 +471,8 @@ export const se_CreateAssetTypeCommand = async ( owningProjectIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -577,21 +482,12 @@ export const se_CreateDataSourceCommand = async ( input: CreateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-sources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/data-sources"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -609,15 +505,8 @@ export const se_CreateDataSourceCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -627,11 +516,11 @@ export const se_CreateDomainCommand = async ( input: CreateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains"; + b.bp("/v2/domains"); let body: any; body = JSON.stringify( take(input, { @@ -644,15 +533,8 @@ export const se_CreateDomainCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -662,21 +544,12 @@ export const se_CreateEnvironmentCommand = async ( input: CreateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environments"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -688,15 +561,8 @@ export const se_CreateEnvironmentCommand = async ( userParameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -706,21 +572,12 @@ export const se_CreateEnvironmentProfileCommand = async ( input: CreateEnvironmentProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-profiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environment-profiles"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -733,15 +590,8 @@ export const se_CreateEnvironmentProfileCommand = async ( userParameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -751,20 +601,12 @@ export const se_CreateFormTypeCommand = async ( input: CreateFormTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/form-types"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/form-types"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -775,15 +617,8 @@ export const se_CreateFormTypeCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -793,20 +628,12 @@ export const se_CreateGlossaryCommand = async ( input: CreateGlossaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/glossaries"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/glossaries"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -817,15 +644,8 @@ export const se_CreateGlossaryCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -835,21 +655,12 @@ export const se_CreateGlossaryTermCommand = async ( input: CreateGlossaryTermCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/glossary-terms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/glossary-terms"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -862,15 +673,8 @@ export const se_CreateGlossaryTermCommand = async ( termRelations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -880,21 +684,12 @@ export const se_CreateGroupProfileCommand = async ( input: CreateGroupProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/group-profiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/group-profiles"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -902,15 +697,8 @@ export const se_CreateGroupProfileCommand = async ( groupIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -920,21 +708,12 @@ export const se_CreateListingChangeSetCommand = async ( input: CreateListingChangeSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/listings/change-set"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/listings/change-set"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -945,15 +724,8 @@ export const se_CreateListingChangeSetCommand = async ( entityType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -963,20 +735,12 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/projects"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/projects"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -985,15 +749,8 @@ export const se_CreateProjectCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1003,29 +760,13 @@ export const se_CreateProjectMembershipCommand = async ( input: CreateProjectMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/createMembership"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "projectIdentifier", - () => input.projectIdentifier!, - "{projectIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/createMembership"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("projectIdentifier", () => input.projectIdentifier!, "{projectIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1033,15 +774,8 @@ export const se_CreateProjectMembershipCommand = async ( member: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1051,21 +785,12 @@ export const se_CreateSubscriptionGrantCommand = async ( input: CreateSubscriptionGrantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-grants"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/subscription-grants"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1076,15 +801,8 @@ export const se_CreateSubscriptionGrantCommand = async ( subscriptionTargetIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1094,21 +812,12 @@ export const se_CreateSubscriptionRequestCommand = async ( input: CreateSubscriptionRequestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-requests"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/subscription-requests"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1118,15 +827,8 @@ export const se_CreateSubscriptionRequestCommand = async ( subscribedPrincipals: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1136,29 +838,13 @@ export const se_CreateSubscriptionTargetCommand = async ( input: CreateSubscriptionTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentIdentifier", - () => input.environmentIdentifier!, - "{environmentIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("environmentIdentifier", () => input.environmentIdentifier!, "{environmentIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1172,15 +858,8 @@ export const se_CreateSubscriptionTargetCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1190,21 +869,12 @@ export const se_CreateUserProfileCommand = async ( input: CreateUserProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/user-profiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/user-profiles"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1213,15 +883,8 @@ export const se_CreateUserProfileCommand = async ( userType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1231,30 +894,14 @@ export const se_DeleteAssetCommand = async ( input: DeleteAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/assets/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1264,30 +911,14 @@ export const se_DeleteAssetTypeCommand = async ( input: DeleteAssetTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/asset-types/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/asset-types/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1297,34 +928,17 @@ export const se_DeleteDataSourceCommand = async ( input: DeleteDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-sources/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/data-sources/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1334,24 +948,16 @@ export const se_DeleteDomainCommand = async ( input: DeleteDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{identifier}"); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1361,30 +967,14 @@ export const se_DeleteEnvironmentCommand = async ( input: DeleteEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environments/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1394,37 +984,19 @@ export const se_DeleteEnvironmentBlueprintConfigurationCommand = async ( input: DeleteEnvironmentBlueprintConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p( "environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier!, "{environmentBlueprintIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1434,30 +1006,14 @@ export const se_DeleteEnvironmentProfileCommand = async ( input: DeleteEnvironmentProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environment-profiles/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1467,37 +1023,14 @@ export const se_DeleteFormTypeCommand = async ( input: DeleteFormTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "formTypeIdentifier", - () => input.formTypeIdentifier!, - "{formTypeIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("formTypeIdentifier", () => input.formTypeIdentifier!, "{formTypeIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1507,30 +1040,14 @@ export const se_DeleteGlossaryCommand = async ( input: DeleteGlossaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/glossaries/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/glossaries/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1540,30 +1057,14 @@ export const se_DeleteGlossaryTermCommand = async ( input: DeleteGlossaryTermCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/glossary-terms/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/glossary-terms/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1573,30 +1074,14 @@ export const se_DeleteListingCommand = async ( input: DeleteListingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/listings/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/listings/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1606,30 +1091,14 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/projects/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/projects/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1639,44 +1108,21 @@ export const se_DeleteProjectMembershipCommand = async ( input: DeleteProjectMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/deleteMembership"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "projectIdentifier", - () => input.projectIdentifier!, - "{projectIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/deleteMembership"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("projectIdentifier", () => input.projectIdentifier!, "{projectIdentifier}", false); let body: any; body = JSON.stringify( take(input, { member: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1686,30 +1132,14 @@ export const se_DeleteSubscriptionGrantCommand = async ( input: DeleteSubscriptionGrantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1719,30 +1149,14 @@ export const se_DeleteSubscriptionRequestCommand = async ( input: DeleteSubscriptionRequestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1752,38 +1166,15 @@ export const se_DeleteSubscriptionTargetCommand = async ( input: DeleteSubscriptionTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentIdentifier", - () => input.environmentIdentifier!, - "{environmentIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("environmentIdentifier", () => input.environmentIdentifier!, "{environmentIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1793,34 +1184,17 @@ export const se_GetAssetCommand = async ( input: GetAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/assets/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - revision: [, input.revision!], + [_r]: [, input[_r]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1830,34 +1204,17 @@ export const se_GetAssetTypeCommand = async ( input: GetAssetTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/asset-types/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/asset-types/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - revision: [, input.revision!], + [_r]: [, input[_r]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1867,30 +1224,14 @@ export const se_GetDataSourceCommand = async ( input: GetDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-sources/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/data-sources/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1900,30 +1241,14 @@ export const se_GetDataSourceRunCommand = async ( input: GetDataSourceRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-source-runs/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/data-source-runs/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1933,20 +1258,13 @@ export const se_GetDomainCommand = async ( input: GetDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{identifier}"); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1956,30 +1274,14 @@ export const se_GetEnvironmentCommand = async ( input: GetEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environments/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1989,30 +1291,14 @@ export const se_GetEnvironmentBlueprintCommand = async ( input: GetEnvironmentBlueprintCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2022,37 +1308,19 @@ export const se_GetEnvironmentBlueprintConfigurationCommand = async ( input: GetEnvironmentBlueprintConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p( "environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier!, "{environmentBlueprintIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2062,30 +1330,14 @@ export const se_GetEnvironmentProfileCommand = async ( input: GetEnvironmentProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environment-profiles/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2095,41 +1347,17 @@ export const se_GetFormTypeCommand = async ( input: GetFormTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "formTypeIdentifier", - () => input.formTypeIdentifier!, - "{formTypeIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/form-types/{formTypeIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("formTypeIdentifier", () => input.formTypeIdentifier!, "{formTypeIdentifier}", false); const query: any = map({ - revision: [, input.revision!], + [_r]: [, input[_r]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2139,30 +1367,14 @@ export const se_GetGlossaryCommand = async ( input: GetGlossaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/glossaries/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/glossaries/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2172,30 +1384,14 @@ export const se_GetGlossaryTermCommand = async ( input: GetGlossaryTermCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/glossary-terms/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/glossary-terms/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2205,37 +1401,14 @@ export const se_GetGroupProfileCommand = async ( input: GetGroupProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "groupIdentifier", - () => input.groupIdentifier!, - "{groupIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("groupIdentifier", () => input.groupIdentifier!, "{groupIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2245,29 +1418,13 @@ export const se_GetIamPortalLoginUrlCommand = async ( input: GetIamPortalLoginUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/get-portal-login-url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/get-portal-login-url"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2277,34 +1434,17 @@ export const se_GetListingCommand = async ( input: GetListingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/listings/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/listings/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - listingRevision: [, input.listingRevision!], + [_lR]: [, input[_lR]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2314,30 +1454,14 @@ export const se_GetProjectCommand = async ( input: GetProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/projects/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/projects/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2347,30 +1471,14 @@ export const se_GetSubscriptionCommand = async ( input: GetSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscriptions/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscriptions/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2380,30 +1488,14 @@ export const se_GetSubscriptionGrantCommand = async ( input: GetSubscriptionGrantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2413,30 +1505,14 @@ export const se_GetSubscriptionRequestDetailsCommand = async ( input: GetSubscriptionRequestDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2446,38 +1522,15 @@ export const se_GetSubscriptionTargetCommand = async ( input: GetSubscriptionTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentIdentifier", - () => input.environmentIdentifier!, - "{environmentIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("environmentIdentifier", () => input.environmentIdentifier!, "{environmentIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2487,41 +1540,17 @@ export const se_GetUserProfileCommand = async ( input: GetUserProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "userIdentifier", - () => input.userIdentifier!, - "{userIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("userIdentifier", () => input.userIdentifier!, "{userIdentifier}", false); const query: any = map({ - type: [, input.type!], + [_t]: [, input[_t]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2531,35 +1560,18 @@ export const se_ListAssetRevisionsCommand = async ( input: ListAssetRevisionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/assets/{identifier}/revisions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/revisions"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2569,36 +1581,19 @@ export const se_ListDataSourceRunActivitiesCommand = async ( input: ListDataSourceRunActivitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-source-runs/{identifier}/activities"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/data-source-runs/{identifier}/activities"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - status: [, input.status!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_s]: [, input[_s]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2608,43 +1603,19 @@ export const se_ListDataSourceRunsCommand = async ( input: ListDataSourceRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceIdentifier", - () => input.dataSourceIdentifier!, - "{dataSourceIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("dataSourceIdentifier", () => input.dataSourceIdentifier!, "{dataSourceIdentifier}", false); const query: any = map({ - status: [, input.status!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_s]: [, input[_s]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2654,39 +1625,22 @@ export const se_ListDataSourcesCommand = async ( input: ListDataSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-sources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/data-sources"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - projectIdentifier: [, __expectNonNull(input.projectIdentifier!, `projectIdentifier`)], - environmentIdentifier: [, input.environmentIdentifier!], - type: [, input.type!], - status: [, input.status!], - name: [, input.name!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_pI]: [, __expectNonNull(input[_pI]!, `projectIdentifier`)], + [_eI]: [, input[_eI]!], + [_t]: [, input[_t]!], + [_s]: [, input[_s]!], + [_n]: [, input[_n]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2696,25 +1650,17 @@ export const se_ListDomainsCommand = async ( input: ListDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains"; + b.bp("/v2/domains"); const query: any = map({ - status: [, input.status!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2724,34 +1670,17 @@ export const se_ListEnvironmentBlueprintConfigurationsCommand = async ( input: ListEnvironmentBlueprintConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-blueprint-configurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2761,36 +1690,19 @@ export const se_ListEnvironmentBlueprintsCommand = async ( input: ListEnvironmentBlueprintsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-blueprints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environment-blueprints"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - name: [, input.name!], - managed: [() => input.managed !== void 0, () => input.managed!.toString()], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_n]: [, input[_n]!], + [_m]: [() => input.managed !== void 0, () => input[_m]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2800,39 +1712,22 @@ export const se_ListEnvironmentProfilesCommand = async ( input: ListEnvironmentProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-profiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environment-profiles"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - awsAccountId: [, input.awsAccountId!], - awsAccountRegion: [, input.awsAccountRegion!], - environmentBlueprintIdentifier: [, input.environmentBlueprintIdentifier!], - projectIdentifier: [, input.projectIdentifier!], - name: [, input.name!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_aAI]: [, input[_aAI]!], + [_aAR]: [, input[_aAR]!], + [_eBI]: [, input[_eBI]!], + [_pI]: [, input[_pI]!], + [_n]: [, input[_n]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2842,42 +1737,25 @@ export const se_ListEnvironmentsCommand = async ( input: ListEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environments"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - awsAccountId: [, input.awsAccountId!], - status: [, input.status!], - awsAccountRegion: [, input.awsAccountRegion!], - projectIdentifier: [, __expectNonNull(input.projectIdentifier!, `projectIdentifier`)], - environmentProfileIdentifier: [, input.environmentProfileIdentifier!], - environmentBlueprintIdentifier: [, input.environmentBlueprintIdentifier!], - provider: [, input.provider!], - name: [, input.name!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_aAI]: [, input[_aAI]!], + [_s]: [, input[_s]!], + [_aAR]: [, input[_aAR]!], + [_pI]: [, __expectNonNull(input[_pI]!, `projectIdentifier`)], + [_ePI]: [, input[_ePI]!], + [_eBI]: [, input[_eBI]!], + [_p]: [, input[_p]!], + [_n]: [, input[_n]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2887,45 +1765,22 @@ export const se_ListNotificationsCommand = async ( input: ListNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/notifications"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/notifications"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - type: [, __expectNonNull(input.type!, `type`)], - afterTimestamp: [ - () => input.afterTimestamp !== void 0, - () => (input.afterTimestamp!.toISOString().split(".")[0] + "Z").toString(), - ], - beforeTimestamp: [ - () => input.beforeTimestamp !== void 0, - () => (input.beforeTimestamp!.toISOString().split(".")[0] + "Z").toString(), - ], - subjects: [() => input.subjects !== void 0, () => (input.subjects! || []).map((_entry) => _entry as any)], - taskStatus: [, input.taskStatus!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_t]: [, __expectNonNull(input[_t]!, `type`)], + [_aT]: [() => input.afterTimestamp !== void 0, () => (input[_aT]!.toISOString().split(".")[0] + "Z").toString()], + [_bT]: [() => input.beforeTimestamp !== void 0, () => (input[_bT]!.toISOString().split(".")[0] + "Z").toString()], + [_su]: [() => input.subjects !== void 0, () => (input[_su]! || []).map((_entry) => _entry as any)], + [_tS]: [, input[_tS]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2935,44 +1790,20 @@ export const se_ListProjectMembershipsCommand = async ( input: ListProjectMembershipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/memberships"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "projectIdentifier", - () => input.projectIdentifier!, - "{projectIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/memberships"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("projectIdentifier", () => input.projectIdentifier!, "{projectIdentifier}", false); const query: any = map({ - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2982,36 +1813,20 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/projects"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/projects"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - userIdentifier: [, input.userIdentifier!], - groupIdentifier: [, input.groupIdentifier!], - name: [, input.name!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_uI]: [, input[_uI]!], + [_gI]: [, input[_gI]!], + [_n]: [, input[_n]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3021,40 +1836,23 @@ export const se_ListSubscriptionGrantsCommand = async ( input: ListSubscriptionGrantsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-grants"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/subscription-grants"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - environmentId: [, input.environmentId!], - subscriptionTargetId: [, input.subscriptionTargetId!], - subscribedListingId: [, input.subscribedListingId!], - subscriptionId: [, input.subscriptionId!], - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_eIn]: [, input[_eIn]!], + [_sTI]: [, input[_sTI]!], + [_sLI]: [, input[_sLI]!], + [_sI]: [, input[_sI]!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3064,40 +1862,23 @@ export const se_ListSubscriptionRequestsCommand = async ( input: ListSubscriptionRequestsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-requests"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/subscription-requests"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - status: [, input.status!], - subscribedListingId: [, input.subscribedListingId!], - owningProjectId: [, input.owningProjectId!], - approverProjectId: [, input.approverProjectId!], - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_s]: [, input[_s]!], + [_sLI]: [, input[_sLI]!], + [_oPI]: [, input[_oPI]!], + [_aPI]: [, input[_aPI]!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3107,41 +1888,24 @@ export const se_ListSubscriptionsCommand = async ( input: ListSubscriptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscriptions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/subscriptions"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); const query: any = map({ - subscriptionRequestIdentifier: [, input.subscriptionRequestIdentifier!], - status: [, input.status!], - subscribedListingId: [, input.subscribedListingId!], - owningProjectId: [, input.owningProjectId!], - approverProjectId: [, input.approverProjectId!], - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sRI]: [, input[_sRI]!], + [_s]: [, input[_s]!], + [_sLI]: [, input[_sLI]!], + [_oPI]: [, input[_oPI]!], + [_aPI]: [, input[_aPI]!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3151,44 +1915,20 @@ export const se_ListSubscriptionTargetsCommand = async ( input: ListSubscriptionTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentIdentifier", - () => input.environmentIdentifier!, - "{environmentIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("environmentIdentifier", () => input.environmentIdentifier!, "{environmentIdentifier}", false); const query: any = map({ - sortBy: [, input.sortBy!], - sortOrder: [, input.sortOrder!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sB]: [, input[_sB]!], + [_sO]: [, input[_sO]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3198,20 +1938,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3221,24 +1954,13 @@ export const se_PutEnvironmentBlueprintConfigurationCommand = async ( input: PutEnvironmentBlueprintConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/v2/domains/{domainIdentifier}/environment-blueprint-configurations/{environmentBlueprintIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p( "environmentBlueprintIdentifier", () => input.environmentBlueprintIdentifier!, "{environmentBlueprintIdentifier}", @@ -3253,15 +1975,8 @@ export const se_PutEnvironmentBlueprintConfigurationCommand = async ( regionalParameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3271,24 +1986,15 @@ export const se_RejectPredictionsCommand = async ( input: RejectPredictionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/assets/{identifier}/reject-predictions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/assets/{identifier}/reject-predictions"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - revision: [, input.revision!], + [_r]: [, input[_r]!], }); let body: any; body = JSON.stringify( @@ -3298,16 +2004,8 @@ export const se_RejectPredictionsCommand = async ( rejectRule: (_) => se_RejectRule(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3317,37 +2015,21 @@ export const se_RejectSubscriptionRequestCommand = async ( input: RejectSubscriptionRequestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/reject"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/reject"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { decisionComment: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3357,57 +2039,33 @@ export const se_RevokeSubscriptionCommand = async ( input: RevokeSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscriptions/{identifier}/revoke"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscriptions/{identifier}/revoke"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { retainPermissions: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1SearchCommand */ export const se_SearchCommand = async (input: SearchCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{domainIdentifier}/search"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/search"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3422,15 +2080,8 @@ export const se_SearchCommand = async (input: SearchCommandInput, context: __Ser sort: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3440,21 +2091,12 @@ export const se_SearchGroupProfilesCommand = async ( input: SearchGroupProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/search-group-profiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/search-group-profiles"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3464,15 +2106,8 @@ export const se_SearchGroupProfilesCommand = async ( searchText: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3482,21 +2117,12 @@ export const se_SearchListingsCommand = async ( input: SearchListingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/listings/search"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/listings/search"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3509,15 +2135,8 @@ export const se_SearchListingsCommand = async ( sort: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3527,21 +2146,12 @@ export const se_SearchTypesCommand = async ( input: SearchTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/types-search"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/types-search"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3555,15 +2165,8 @@ export const se_SearchTypesCommand = async ( sort: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3573,21 +2176,12 @@ export const se_SearchUserProfilesCommand = async ( input: SearchUserProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/search-user-profiles"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/search-user-profiles"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3597,15 +2191,8 @@ export const se_SearchUserProfilesCommand = async ( userType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3615,44 +2202,21 @@ export const se_StartDataSourceRunCommand = async ( input: StartDataSourceRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceIdentifier", - () => input.dataSourceIdentifier!, - "{dataSourceIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/data-sources/{dataSourceIdentifier}/runs"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("dataSourceIdentifier", () => input.dataSourceIdentifier!, "{dataSourceIdentifier}", false); let body: any; body = JSON.stringify( take(input, { clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3662,27 +2226,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3692,27 +2249,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3722,22 +2271,13 @@ export const se_UpdateDataSourceCommand = async ( input: UpdateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/data-sources/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/data-sources/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3751,15 +2291,8 @@ export const se_UpdateDataSourceCommand = async ( schedule: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3769,14 +2302,14 @@ export const se_UpdateDomainCommand = async ( input: UpdateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domains/{identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{identifier}"); + b.p("identifier", () => input.identifier!, "{identifier}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; body = JSON.stringify( @@ -3787,16 +2320,8 @@ export const se_UpdateDomainCommand = async ( singleSignOn: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3806,22 +2331,13 @@ export const se_UpdateEnvironmentCommand = async ( input: UpdateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environments/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3830,15 +2346,8 @@ export const se_UpdateEnvironmentCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3848,22 +2357,13 @@ export const se_UpdateEnvironmentProfileCommand = async ( input: UpdateEnvironmentProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environment-profiles/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3874,15 +2374,8 @@ export const se_UpdateEnvironmentProfileCommand = async ( userParameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3892,22 +2385,13 @@ export const se_UpdateGlossaryCommand = async ( input: UpdateGlossaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/glossaries/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/glossaries/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3917,15 +2401,8 @@ export const se_UpdateGlossaryCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3935,22 +2412,13 @@ export const se_UpdateGlossaryTermCommand = async ( input: UpdateGlossaryTermCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/glossary-terms/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/glossary-terms/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3962,15 +2430,8 @@ export const se_UpdateGlossaryTermCommand = async ( termRelations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3980,44 +2441,21 @@ export const se_UpdateGroupProfileCommand = async ( input: UpdateGroupProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "groupIdentifier", - () => input.groupIdentifier!, - "{groupIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/group-profiles/{groupIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("groupIdentifier", () => input.groupIdentifier!, "{groupIdentifier}", false); let body: any; body = JSON.stringify( take(input, { status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4027,22 +2465,13 @@ export const se_UpdateProjectCommand = async ( input: UpdateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/projects/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/projects/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -4051,15 +2480,8 @@ export const se_UpdateProjectCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4069,30 +2491,14 @@ export const se_UpdateSubscriptionGrantStatusCommand = async ( input: UpdateSubscriptionGrantStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}/status/{assetIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetIdentifier", - () => input.assetIdentifier!, - "{assetIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/subscription-grants/{identifier}/status/{assetIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); + b.p("assetIdentifier", () => input.assetIdentifier!, "{assetIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -4101,15 +2507,8 @@ export const se_UpdateSubscriptionGrantStatusCommand = async ( targetName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4119,37 +2518,21 @@ export const se_UpdateSubscriptionRequestCommand = async ( input: UpdateSubscriptionRequestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/subscription-requests/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { requestReason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4159,30 +2542,14 @@ export const se_UpdateSubscriptionTargetCommand = async ( input: UpdateSubscriptionTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentIdentifier", - () => input.environmentIdentifier!, - "{environmentIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "identifier", () => input.identifier!, "{identifier}", false); + b.bp("/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("environmentIdentifier", () => input.environmentIdentifier!, "{environmentIdentifier}", false); + b.p("identifier", () => input.identifier!, "{identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -4194,15 +2561,8 @@ export const se_UpdateSubscriptionTargetCommand = async ( subscriptionTargetConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4212,29 +2572,13 @@ export const se_UpdateUserProfileCommand = async ( input: UpdateUserProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainIdentifier", - () => input.domainIdentifier!, - "{domainIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "userIdentifier", - () => input.userIdentifier!, - "{userIdentifier}", - false - ); + b.bp("/v2/domains/{domainIdentifier}/user-profiles/{userIdentifier}"); + b.p("domainIdentifier", () => input.domainIdentifier!, "{domainIdentifier}", false); + b.p("userIdentifier", () => input.userIdentifier!, "{userIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -4242,15 +2586,8 @@ export const se_UpdateUserProfileCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -12365,6 +10702,39 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aAI = "awsAccountId"; +const _aAR = "awsAccountRegion"; +const _aPI = "approverProjectId"; +const _aT = "afterTimestamp"; +const _bT = "beforeTimestamp"; +const _cT = "clientToken"; +const _eBI = "environmentBlueprintIdentifier"; +const _eI = "environmentIdentifier"; +const _eIn = "environmentId"; +const _ePI = "environmentProfileIdentifier"; +const _gI = "groupIdentifier"; +const _lR = "listingRevision"; +const _m = "managed"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _oPI = "owningProjectId"; +const _p = "provider"; +const _pI = "projectIdentifier"; +const _r = "revision"; +const _s = "status"; +const _sB = "sortBy"; +const _sI = "subscriptionId"; +const _sLI = "subscribedListingId"; +const _sO = "sortOrder"; +const _sRI = "subscriptionRequestIdentifier"; +const _sTI = "subscriptionTargetId"; +const _su = "subjects"; +const _t = "type"; +const _tK = "tagKeys"; +const _tS = "taskStatus"; +const _uI = "userIdentifier"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-detective/package.json b/clients/client-detective/package.json index 6579cd5f4ed1..34a2cd17f637 100644 --- a/clients/client-detective/package.json +++ b/clients/client-detective/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-detective/src/protocols/Aws_restJson1.ts b/clients/client-detective/src/protocols/Aws_restJson1.ts index 4582cdc4fa5c..a57c03378ea3 100644 --- a/clients/client-detective/src/protocols/Aws_restJson1.ts +++ b/clients/client-detective/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -124,26 +125,19 @@ export const se_AcceptInvitationCommand = async ( input: AcceptInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation"; + b.bp("/invitation"); let body: any; body = JSON.stringify( take(input, { GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -153,11 +147,11 @@ export const se_BatchGetGraphMemberDatasourcesCommand = async ( input: BatchGetGraphMemberDatasourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get"; + b.bp("/graph/datasources/get"); let body: any; body = JSON.stringify( take(input, { @@ -165,15 +159,8 @@ export const se_BatchGetGraphMemberDatasourcesCommand = async ( GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -183,27 +170,19 @@ export const se_BatchGetMembershipDatasourcesCommand = async ( input: BatchGetMembershipDatasourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get"; + b.bp("/membership/datasources/get"); let body: any; body = JSON.stringify( take(input, { GraphArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -213,26 +192,19 @@ export const se_CreateGraphCommand = async ( input: CreateGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph"; + b.bp("/graph"); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -242,11 +214,11 @@ export const se_CreateMembersCommand = async ( input: CreateMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members"; + b.bp("/graph/members"); let body: any; body = JSON.stringify( take(input, { @@ -256,15 +228,8 @@ export const se_CreateMembersCommand = async ( Message: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -274,26 +239,19 @@ export const se_DeleteGraphCommand = async ( input: DeleteGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/removal"; + b.bp("/graph/removal"); let body: any; body = JSON.stringify( take(input, { GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -303,11 +261,11 @@ export const se_DeleteMembersCommand = async ( input: DeleteMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/removal"; + b.bp("/graph/members/removal"); let body: any; body = JSON.stringify( take(input, { @@ -315,15 +273,8 @@ export const se_DeleteMembersCommand = async ( GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -333,27 +284,19 @@ export const se_DescribeOrganizationConfigurationCommand = async ( input: DescribeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/describeOrganizationConfiguration"; + b.bp("/orgs/describeOrganizationConfiguration"); let body: any; body = JSON.stringify( take(input, { GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -363,23 +306,15 @@ export const se_DisableOrganizationAdminAccountCommand = async ( input: DisableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/disableAdminAccount"; + b.bp("/orgs/disableAdminAccount"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -389,26 +324,19 @@ export const se_DisassociateMembershipCommand = async ( input: DisassociateMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/removal"; + b.bp("/membership/removal"); let body: any; body = JSON.stringify( take(input, { GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -418,27 +346,19 @@ export const se_EnableOrganizationAdminAccountCommand = async ( input: EnableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/enableAdminAccount"; + b.bp("/orgs/enableAdminAccount"); let body: any; body = JSON.stringify( take(input, { AccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -448,12 +368,11 @@ export const se_GetInvestigationCommand = async ( input: GetInvestigationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/getInvestigation"; + b.bp("/investigations/getInvestigation"); let body: any; body = JSON.stringify( take(input, { @@ -461,15 +380,8 @@ export const se_GetInvestigationCommand = async ( InvestigationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -479,11 +391,11 @@ export const se_GetMembersCommand = async ( input: GetMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/get"; + b.bp("/graph/members/get"); let body: any; body = JSON.stringify( take(input, { @@ -491,15 +403,8 @@ export const se_GetMembersCommand = async ( GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -509,12 +414,11 @@ export const se_ListDatasourcePackagesCommand = async ( input: ListDatasourcePackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/list"; + b.bp("/graph/datasources/list"); let body: any; body = JSON.stringify( take(input, { @@ -523,15 +427,8 @@ export const se_ListDatasourcePackagesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -541,11 +438,11 @@ export const se_ListGraphsCommand = async ( input: ListGraphsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/list"; + b.bp("/graphs/list"); let body: any; body = JSON.stringify( take(input, { @@ -553,15 +450,8 @@ export const se_ListGraphsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -571,12 +461,11 @@ export const se_ListIndicatorsCommand = async ( input: ListIndicatorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/listIndicators"; + b.bp("/investigations/listIndicators"); let body: any; body = JSON.stringify( take(input, { @@ -587,15 +476,8 @@ export const se_ListIndicatorsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -605,12 +487,11 @@ export const se_ListInvestigationsCommand = async ( input: ListInvestigationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/listInvestigations"; + b.bp("/investigations/listInvestigations"); let body: any; body = JSON.stringify( take(input, { @@ -621,15 +502,8 @@ export const se_ListInvestigationsCommand = async ( SortCriteria: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -639,11 +513,11 @@ export const se_ListInvitationsCommand = async ( input: ListInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/list"; + b.bp("/invitations/list"); let body: any; body = JSON.stringify( take(input, { @@ -651,15 +525,8 @@ export const se_ListInvitationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -669,11 +536,11 @@ export const se_ListMembersCommand = async ( input: ListMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/list"; + b.bp("/graph/members/list"); let body: any; body = JSON.stringify( take(input, { @@ -682,15 +549,8 @@ export const se_ListMembersCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -700,12 +560,11 @@ export const se_ListOrganizationAdminAccountsCommand = async ( input: ListOrganizationAdminAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/adminAccountslist"; + b.bp("/orgs/adminAccountslist"); let body: any; body = JSON.stringify( take(input, { @@ -713,15 +572,8 @@ export const se_ListOrganizationAdminAccountsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -731,20 +583,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -754,26 +599,19 @@ export const se_RejectInvitationCommand = async ( input: RejectInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/removal"; + b.bp("/invitation/removal"); let body: any; body = JSON.stringify( take(input, { GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -783,12 +621,11 @@ export const se_StartInvestigationCommand = async ( input: StartInvestigationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/startInvestigation"; + b.bp("/investigations/startInvestigation"); let body: any; body = JSON.stringify( take(input, { @@ -798,15 +635,8 @@ export const se_StartInvestigationCommand = async ( ScopeStartTime: (_) => _.toISOString().split(".")[0] + "Z", }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -816,12 +646,11 @@ export const se_StartMonitoringMemberCommand = async ( input: StartMonitoringMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/member/monitoringstate"; + b.bp("/graph/member/monitoringstate"); let body: any; body = JSON.stringify( take(input, { @@ -829,15 +658,8 @@ export const se_StartMonitoringMemberCommand = async ( GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -847,27 +669,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -877,27 +692,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -907,12 +714,11 @@ export const se_UpdateDatasourcePackagesCommand = async ( input: UpdateDatasourcePackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/update"; + b.bp("/graph/datasources/update"); let body: any; body = JSON.stringify( take(input, { @@ -920,15 +726,8 @@ export const se_UpdateDatasourcePackagesCommand = async ( GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -938,12 +737,11 @@ export const se_UpdateInvestigationStateCommand = async ( input: UpdateInvestigationStateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/investigations/updateInvestigationState"; + b.bp("/investigations/updateInvestigationState"); let body: any; body = JSON.stringify( take(input, { @@ -952,15 +750,8 @@ export const se_UpdateInvestigationStateCommand = async ( State: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -970,12 +761,11 @@ export const se_UpdateOrganizationConfigurationCommand = async ( input: UpdateOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/updateOrganizationConfiguration"; + b.bp("/orgs/updateOrganizationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -983,15 +773,8 @@ export const se_UpdateOrganizationConfigurationCommand = async ( GraphArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3105,6 +2888,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-devops-guru/package.json b/clients/client-devops-guru/package.json index 8670d3aa0fcb..8d61edd6552c 100644 --- a/clients/client-devops-guru/package.json +++ b/clients/client-devops-guru/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts index 9d9086afd3ba..96cd3ceb82f4 100644 --- a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts +++ b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -208,26 +209,19 @@ export const se_AddNotificationChannelCommand = async ( input: AddNotificationChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); let body: any; body = JSON.stringify( take(input, { Config: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -237,20 +231,13 @@ export const se_DeleteInsightCommand = async ( input: DeleteInsightCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/insights/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -260,22 +247,15 @@ export const se_DescribeAccountHealthCommand = async ( input: DescribeAccountHealthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/health"; + b.bp("/accounts/health"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -285,11 +265,11 @@ export const se_DescribeAccountOverviewCommand = async ( input: DescribeAccountOverviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/overview"; + b.bp("/accounts/overview"); let body: any; body = JSON.stringify( take(input, { @@ -297,15 +277,8 @@ export const se_DescribeAccountOverviewCommand = async ( ToTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -315,24 +288,16 @@ export const se_DescribeAnomalyCommand = async ( input: DescribeAnomalyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/anomalies/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/anomalies/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); const query: any = map({ - AccountId: [, input.AccountId!], + [_AI]: [, input[_AI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -342,22 +307,15 @@ export const se_DescribeEventSourcesConfigCommand = async ( input: DescribeEventSourcesConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources"; + b.bp("/event-sources"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -367,26 +325,19 @@ export const se_DescribeFeedbackCommand = async ( input: DescribeFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback"; + b.bp("/feedback"); let body: any; body = JSON.stringify( take(input, { InsightId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -396,24 +347,16 @@ export const se_DescribeInsightCommand = async ( input: DescribeInsightCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/insights/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); const query: any = map({ - AccountId: [, input.AccountId!], + [_AI]: [, input[_AI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -423,11 +366,11 @@ export const se_DescribeOrganizationHealthCommand = async ( input: DescribeOrganizationHealthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health"; + b.bp("/organization/health"); let body: any; body = JSON.stringify( take(input, { @@ -435,15 +378,8 @@ export const se_DescribeOrganizationHealthCommand = async ( OrganizationalUnitIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -453,11 +389,11 @@ export const se_DescribeOrganizationOverviewCommand = async ( input: DescribeOrganizationOverviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/overview"; + b.bp("/organization/overview"); let body: any; body = JSON.stringify( take(input, { @@ -467,15 +403,8 @@ export const se_DescribeOrganizationOverviewCommand = async ( ToTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -485,12 +414,11 @@ export const se_DescribeOrganizationResourceCollectionHealthCommand = async ( input: DescribeOrganizationResourceCollectionHealthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health/resource-collection"; + b.bp("/organization/health/resource-collection"); let body: any; body = JSON.stringify( take(input, { @@ -501,15 +429,8 @@ export const se_DescribeOrganizationResourceCollectionHealthCommand = async ( OrganizationalUnitIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -519,33 +440,16 @@ export const se_DescribeResourceCollectionHealthCommand = async ( input: DescribeResourceCollectionHealthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/health/resource-collection/{ResourceCollectionType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceCollectionType", - () => input.ResourceCollectionType!, - "{ResourceCollectionType}", - false - ); + b.bp("/accounts/health/resource-collection/{ResourceCollectionType}"); + b.p("ResourceCollectionType", () => input.ResourceCollectionType!, "{ResourceCollectionType}", false); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -555,22 +459,15 @@ export const se_DescribeServiceIntegrationCommand = async ( input: DescribeServiceIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-integrations"; + b.bp("/service-integrations"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -580,23 +477,15 @@ export const se_GetCostEstimationCommand = async ( input: GetCostEstimationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cost-estimation"; + b.bp("/cost-estimation"); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -606,33 +495,16 @@ export const se_GetResourceCollectionCommand = async ( input: GetResourceCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/resource-collections/{ResourceCollectionType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceCollectionType", - () => input.ResourceCollectionType!, - "{ResourceCollectionType}", - false - ); + b.bp("/resource-collections/{ResourceCollectionType}"); + b.p("ResourceCollectionType", () => input.ResourceCollectionType!, "{ResourceCollectionType}", false); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -642,13 +514,12 @@ export const se_ListAnomaliesForInsightCommand = async ( input: ListAnomaliesForInsightCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/anomalies/insight/{InsightId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InsightId", () => input.InsightId!, "{InsightId}", false); + b.bp("/anomalies/insight/{InsightId}"); + b.p("InsightId", () => input.InsightId!, "{InsightId}", false); let body: any; body = JSON.stringify( take(input, { @@ -659,15 +530,8 @@ export const se_ListAnomaliesForInsightCommand = async ( StartTimeRange: (_) => se_StartTimeRange(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -677,11 +541,11 @@ export const se_ListAnomalousLogGroupsCommand = async ( input: ListAnomalousLogGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-log-anomalies"; + b.bp("/list-log-anomalies"); let body: any; body = JSON.stringify( take(input, { @@ -690,15 +554,8 @@ export const se_ListAnomalousLogGroupsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -708,11 +565,11 @@ export const se_ListEventsCommand = async ( input: ListEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/events"; + b.bp("/events"); let body: any; body = JSON.stringify( take(input, { @@ -722,15 +579,8 @@ export const se_ListEventsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -740,11 +590,11 @@ export const se_ListInsightsCommand = async ( input: ListInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights"; + b.bp("/insights"); let body: any; body = JSON.stringify( take(input, { @@ -753,15 +603,8 @@ export const se_ListInsightsCommand = async ( StatusFilter: (_) => se_ListInsightsStatusFilter(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -771,11 +614,11 @@ export const se_ListMonitoredResourcesCommand = async ( input: ListMonitoredResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/monitoredResources"; + b.bp("/monitoredResources"); let body: any; body = JSON.stringify( take(input, { @@ -784,15 +627,8 @@ export const se_ListMonitoredResourcesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -802,26 +638,19 @@ export const se_ListNotificationChannelsCommand = async ( input: ListNotificationChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); let body: any; body = JSON.stringify( take(input, { NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -831,11 +660,11 @@ export const se_ListOrganizationInsightsCommand = async ( input: ListOrganizationInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights"; + b.bp("/organization/insights"); let body: any; body = JSON.stringify( take(input, { @@ -846,15 +675,8 @@ export const se_ListOrganizationInsightsCommand = async ( StatusFilter: (_) => se_ListInsightsStatusFilter(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -864,11 +686,11 @@ export const se_ListRecommendationsCommand = async ( input: ListRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recommendations"; + b.bp("/recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -878,15 +700,8 @@ export const se_ListRecommendationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -896,26 +711,19 @@ export const se_PutFeedbackCommand = async ( input: PutFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback"; + b.bp("/feedback"); let body: any; body = JSON.stringify( take(input, { InsightFeedback: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -925,20 +733,13 @@ export const se_RemoveNotificationChannelCommand = async ( input: RemoveNotificationChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/channels/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -948,11 +749,11 @@ export const se_SearchInsightsCommand = async ( input: SearchInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/search"; + b.bp("/insights/search"); let body: any; body = JSON.stringify( take(input, { @@ -963,15 +764,8 @@ export const se_SearchInsightsCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -981,12 +775,11 @@ export const se_SearchOrganizationInsightsCommand = async ( input: SearchOrganizationInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights/search"; + b.bp("/organization/insights/search"); let body: any; body = JSON.stringify( take(input, { @@ -998,15 +791,8 @@ export const se_SearchOrganizationInsightsCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1016,11 +802,11 @@ export const se_StartCostEstimationCommand = async ( input: StartCostEstimationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cost-estimation"; + b.bp("/cost-estimation"); let body: any; body = JSON.stringify( take(input, { @@ -1028,15 +814,8 @@ export const se_StartCostEstimationCommand = async ( ResourceCollection: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1046,26 +825,19 @@ export const se_UpdateEventSourcesConfigCommand = async ( input: UpdateEventSourcesConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources"; + b.bp("/event-sources"); let body: any; body = JSON.stringify( take(input, { EventSources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1075,11 +847,11 @@ export const se_UpdateResourceCollectionCommand = async ( input: UpdateResourceCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-collections"; + b.bp("/resource-collections"); let body: any; body = JSON.stringify( take(input, { @@ -1087,15 +859,8 @@ export const se_UpdateResourceCollectionCommand = async ( ResourceCollection: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1105,26 +870,19 @@ export const se_UpdateServiceIntegrationCommand = async ( input: UpdateServiceIntegrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-integrations"; + b.bp("/service-integrations"); let body: any; body = JSON.stringify( take(input, { ServiceIntegration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2993,10 +2751,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3057,10 +2812,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -4069,6 +3821,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AI = "AccountId"; +const _NT = "NextToken"; +const _RAS = "RetryAfterSeconds"; +const _ra = "retry-after"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-dlm/package.json b/clients/client-dlm/package.json index dc39d2b91ec7..bbf8e76d691c 100644 --- a/clients/client-dlm/package.json +++ b/clients/client-dlm/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-dlm/src/protocols/Aws_restJson1.ts b/clients/client-dlm/src/protocols/Aws_restJson1.ts index 2bdf06145d36..b4cb70b52107 100644 --- a/clients/client-dlm/src/protocols/Aws_restJson1.ts +++ b/clients/client-dlm/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -86,11 +87,11 @@ export const se_CreateLifecyclePolicyCommand = async ( input: CreateLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies"; + b.bp("/policies"); let body: any; body = JSON.stringify( take(input, { @@ -108,15 +109,8 @@ export const se_CreateLifecyclePolicyCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -126,20 +120,13 @@ export const se_DeleteLifecyclePolicyCommand = async ( input: DeleteLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", () => input.PolicyId!, "{PolicyId}", false); + b.bp("/policies/{PolicyId}"); + b.p("PolicyId", () => input.PolicyId!, "{PolicyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -149,31 +136,20 @@ export const se_GetLifecyclePoliciesCommand = async ( input: GetLifecyclePoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies"; + b.bp("/policies"); const query: any = map({ - policyIds: [() => input.PolicyIds !== void 0, () => (input.PolicyIds! || []).map((_entry) => _entry as any)], - state: [, input.State!], - resourceTypes: [ - () => input.ResourceTypes !== void 0, - () => (input.ResourceTypes! || []).map((_entry) => _entry as any), - ], - targetTags: [() => input.TargetTags !== void 0, () => (input.TargetTags! || []).map((_entry) => _entry as any)], - tagsToAdd: [() => input.TagsToAdd !== void 0, () => (input.TagsToAdd! || []).map((_entry) => _entry as any)], - defaultPolicyType: [, input.DefaultPolicyType!], + [_pI]: [() => input.PolicyIds !== void 0, () => (input[_PI]! || []).map((_entry) => _entry as any)], + [_s]: [, input[_S]!], + [_rT]: [() => input.ResourceTypes !== void 0, () => (input[_RT]! || []).map((_entry) => _entry as any)], + [_tT]: [() => input.TargetTags !== void 0, () => (input[_TT]! || []).map((_entry) => _entry as any)], + [_tTA]: [() => input.TagsToAdd !== void 0, () => (input[_TTA]! || []).map((_entry) => _entry as any)], + [_dPT]: [, input[_DPT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -183,20 +159,13 @@ export const se_GetLifecyclePolicyCommand = async ( input: GetLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", () => input.PolicyId!, "{PolicyId}", false); + b.bp("/policies/{PolicyId}"); + b.p("PolicyId", () => input.PolicyId!, "{PolicyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -206,20 +175,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -229,27 +191,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -259,27 +214,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -289,12 +236,12 @@ export const se_UpdateLifecyclePolicyCommand = async ( input: UpdateLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{PolicyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", () => input.PolicyId!, "{PolicyId}", false); + b.bp("/policies/{PolicyId}"); + b.p("PolicyId", () => input.PolicyId!, "{PolicyId}", false); let body: any; body = JSON.stringify( take(input, { @@ -310,15 +257,8 @@ export const se_UpdateLifecyclePolicyCommand = async ( State: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1047,6 +987,21 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DPT = "DefaultPolicyType"; +const _PI = "PolicyIds"; +const _RT = "ResourceTypes"; +const _S = "State"; +const _TK = "TagKeys"; +const _TT = "TargetTags"; +const _TTA = "TagsToAdd"; +const _dPT = "defaultPolicyType"; +const _pI = "policyIds"; +const _rT = "resourceTypes"; +const _s = "state"; +const _tK = "tagKeys"; +const _tT = "targetTags"; +const _tTA = "tagsToAdd"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-docdb-elastic/package.json b/clients/client-docdb-elastic/package.json index b1db69fde389..8474632e362f 100644 --- a/clients/client-docdb-elastic/package.json +++ b/clients/client-docdb-elastic/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts b/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts index 2310424b910b..144cabc79908 100644 --- a/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts +++ b/clients/client-docdb-elastic/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -67,11 +68,11 @@ export const se_CreateClusterCommand = async ( input: CreateClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster"; + b.bp("/cluster"); let body: any; body = JSON.stringify( take(input, { @@ -89,15 +90,8 @@ export const se_CreateClusterCommand = async ( vpcSecurityGroupIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -107,11 +101,11 @@ export const se_CreateClusterSnapshotCommand = async ( input: CreateClusterSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshot"; + b.bp("/cluster-snapshot"); let body: any; body = JSON.stringify( take(input, { @@ -120,15 +114,8 @@ export const se_CreateClusterSnapshotCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -138,20 +125,13 @@ export const se_DeleteClusterCommand = async ( input: DeleteClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{clusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterArn", () => input.clusterArn!, "{clusterArn}", false); + b.bp("/cluster/{clusterArn}"); + b.p("clusterArn", () => input.clusterArn!, "{clusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -161,21 +141,13 @@ export const se_DeleteClusterSnapshotCommand = async ( input: DeleteClusterSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshot/{snapshotArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "snapshotArn", () => input.snapshotArn!, "{snapshotArn}", false); + b.bp("/cluster-snapshot/{snapshotArn}"); + b.p("snapshotArn", () => input.snapshotArn!, "{snapshotArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -185,20 +157,13 @@ export const se_GetClusterCommand = async ( input: GetClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{clusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterArn", () => input.clusterArn!, "{clusterArn}", false); + b.bp("/cluster/{clusterArn}"); + b.p("clusterArn", () => input.clusterArn!, "{clusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -208,21 +173,13 @@ export const se_GetClusterSnapshotCommand = async ( input: GetClusterSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshot/{snapshotArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "snapshotArn", () => input.snapshotArn!, "{snapshotArn}", false); + b.bp("/cluster-snapshot/{snapshotArn}"); + b.p("snapshotArn", () => input.snapshotArn!, "{snapshotArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -232,24 +189,16 @@ export const se_ListClustersCommand = async ( input: ListClustersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters"; + b.bp("/clusters"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -259,25 +208,17 @@ export const se_ListClusterSnapshotsCommand = async ( input: ListClusterSnapshotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshots"; + b.bp("/cluster-snapshots"); const query: any = map({ - clusterArn: [, input.clusterArn!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_cA]: [, input[_cA]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -287,20 +228,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -310,13 +244,12 @@ export const se_RestoreClusterFromSnapshotCommand = async ( input: RestoreClusterFromSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshot/{snapshotArn}/restore"; - resolvedPath = __resolvedPath(resolvedPath, input, "snapshotArn", () => input.snapshotArn!, "{snapshotArn}", false); + b.bp("/cluster-snapshot/{snapshotArn}/restore"); + b.p("snapshotArn", () => input.snapshotArn!, "{snapshotArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -327,15 +260,8 @@ export const se_RestoreClusterFromSnapshotCommand = async ( vpcSecurityGroupIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -345,27 +271,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -375,27 +294,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -405,12 +316,12 @@ export const se_UpdateClusterCommand = async ( input: UpdateClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{clusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterArn", () => input.clusterArn!, "{clusterArn}", false); + b.bp("/cluster/{clusterArn}"); + b.p("clusterArn", () => input.clusterArn!, "{clusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -424,15 +335,8 @@ export const se_UpdateClusterCommand = async ( vpcSecurityGroupIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1312,10 +1216,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1391,6 +1292,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cA = "clusterArn"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-docdb/src/protocols/Aws_query.ts b/clients/client-docdb/src/protocols/Aws_query.ts index f7cd6516d6af..51aa9a7b0454 100644 --- a/clients/client-docdb/src/protocols/Aws_query.ts +++ b/clients/client-docdb/src/protocols/Aws_query.ts @@ -400,8 +400,8 @@ export const se_AddSourceIdentifierToSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddSourceIdentifierToSubscriptionMessage(input, context), - Action: "AddSourceIdentifierToSubscription", - Version: "2014-10-31", + [_A]: _ASITS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -417,8 +417,8 @@ export const se_AddTagsToResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddTagsToResourceMessage(input, context), - Action: "AddTagsToResource", - Version: "2014-10-31", + [_A]: _ATTR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -434,8 +434,8 @@ export const se_ApplyPendingMaintenanceActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ApplyPendingMaintenanceActionMessage(input, context), - Action: "ApplyPendingMaintenanceAction", - Version: "2014-10-31", + [_A]: _APMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -451,8 +451,8 @@ export const se_CopyDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBClusterParameterGroupMessage(input, context), - Action: "CopyDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _CDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -468,8 +468,8 @@ export const se_CopyDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBClusterSnapshotMessage(input, context), - Action: "CopyDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _CDBCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -485,8 +485,8 @@ export const se_CreateDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterMessage(input, context), - Action: "CreateDBCluster", - Version: "2014-10-31", + [_A]: _CDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -502,8 +502,8 @@ export const se_CreateDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterParameterGroupMessage(input, context), - Action: "CreateDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _CDBCPGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -519,8 +519,8 @@ export const se_CreateDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterSnapshotMessage(input, context), - Action: "CreateDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _CDBCSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -536,8 +536,8 @@ export const se_CreateDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBInstanceMessage(input, context), - Action: "CreateDBInstance", - Version: "2014-10-31", + [_A]: _CDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -553,8 +553,8 @@ export const se_CreateDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBSubnetGroupMessage(input, context), - Action: "CreateDBSubnetGroup", - Version: "2014-10-31", + [_A]: _CDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -570,8 +570,8 @@ export const se_CreateEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateEventSubscriptionMessage(input, context), - Action: "CreateEventSubscription", - Version: "2014-10-31", + [_A]: _CES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -587,8 +587,8 @@ export const se_CreateGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateGlobalClusterMessage(input, context), - Action: "CreateGlobalCluster", - Version: "2014-10-31", + [_A]: _CGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -604,8 +604,8 @@ export const se_DeleteDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterMessage(input, context), - Action: "DeleteDBCluster", - Version: "2014-10-31", + [_A]: _DDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -621,8 +621,8 @@ export const se_DeleteDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterParameterGroupMessage(input, context), - Action: "DeleteDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _DDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -638,8 +638,8 @@ export const se_DeleteDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterSnapshotMessage(input, context), - Action: "DeleteDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _DDBCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -655,8 +655,8 @@ export const se_DeleteDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBInstanceMessage(input, context), - Action: "DeleteDBInstance", - Version: "2014-10-31", + [_A]: _DDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -672,8 +672,8 @@ export const se_DeleteDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBSubnetGroupMessage(input, context), - Action: "DeleteDBSubnetGroup", - Version: "2014-10-31", + [_A]: _DDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -689,8 +689,8 @@ export const se_DeleteEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEventSubscriptionMessage(input, context), - Action: "DeleteEventSubscription", - Version: "2014-10-31", + [_A]: _DES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -706,8 +706,8 @@ export const se_DeleteGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteGlobalClusterMessage(input, context), - Action: "DeleteGlobalCluster", - Version: "2014-10-31", + [_A]: _DGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -723,8 +723,8 @@ export const se_DescribeCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCertificatesMessage(input, context), - Action: "DescribeCertificates", - Version: "2014-10-31", + [_A]: _DC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -740,8 +740,8 @@ export const se_DescribeDBClusterParameterGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterParameterGroupsMessage(input, context), - Action: "DescribeDBClusterParameterGroups", - Version: "2014-10-31", + [_A]: _DDBCPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -757,8 +757,8 @@ export const se_DescribeDBClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterParametersMessage(input, context), - Action: "DescribeDBClusterParameters", - Version: "2014-10-31", + [_A]: _DDBCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -774,8 +774,8 @@ export const se_DescribeDBClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClustersMessage(input, context), - Action: "DescribeDBClusters", - Version: "2014-10-31", + [_A]: _DDBCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -791,8 +791,8 @@ export const se_DescribeDBClusterSnapshotAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterSnapshotAttributesMessage(input, context), - Action: "DescribeDBClusterSnapshotAttributes", - Version: "2014-10-31", + [_A]: _DDBCSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -808,8 +808,8 @@ export const se_DescribeDBClusterSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterSnapshotsMessage(input, context), - Action: "DescribeDBClusterSnapshots", - Version: "2014-10-31", + [_A]: _DDBCSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -825,8 +825,8 @@ export const se_DescribeDBEngineVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBEngineVersionsMessage(input, context), - Action: "DescribeDBEngineVersions", - Version: "2014-10-31", + [_A]: _DDBEV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -842,8 +842,8 @@ export const se_DescribeDBInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBInstancesMessage(input, context), - Action: "DescribeDBInstances", - Version: "2014-10-31", + [_A]: _DDBIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -859,8 +859,8 @@ export const se_DescribeDBSubnetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBSubnetGroupsMessage(input, context), - Action: "DescribeDBSubnetGroups", - Version: "2014-10-31", + [_A]: _DDBSGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -876,8 +876,8 @@ export const se_DescribeEngineDefaultClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEngineDefaultClusterParametersMessage(input, context), - Action: "DescribeEngineDefaultClusterParameters", - Version: "2014-10-31", + [_A]: _DEDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -893,8 +893,8 @@ export const se_DescribeEventCategoriesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventCategoriesMessage(input, context), - Action: "DescribeEventCategories", - Version: "2014-10-31", + [_A]: _DEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -910,8 +910,8 @@ export const se_DescribeEventsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventsMessage(input, context), - Action: "DescribeEvents", - Version: "2014-10-31", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -927,8 +927,8 @@ export const se_DescribeEventSubscriptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventSubscriptionsMessage(input, context), - Action: "DescribeEventSubscriptions", - Version: "2014-10-31", + [_A]: _DESe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -944,8 +944,8 @@ export const se_DescribeGlobalClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeGlobalClustersMessage(input, context), - Action: "DescribeGlobalClusters", - Version: "2014-10-31", + [_A]: _DGCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -961,8 +961,8 @@ export const se_DescribeOrderableDBInstanceOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeOrderableDBInstanceOptionsMessage(input, context), - Action: "DescribeOrderableDBInstanceOptions", - Version: "2014-10-31", + [_A]: _DODBIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -978,8 +978,8 @@ export const se_DescribePendingMaintenanceActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePendingMaintenanceActionsMessage(input, context), - Action: "DescribePendingMaintenanceActions", - Version: "2014-10-31", + [_A]: _DPMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -995,8 +995,8 @@ export const se_FailoverDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_FailoverDBClusterMessage(input, context), - Action: "FailoverDBCluster", - Version: "2014-10-31", + [_A]: _FDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1012,8 +1012,8 @@ export const se_ListTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTagsForResourceMessage(input, context), - Action: "ListTagsForResource", - Version: "2014-10-31", + [_A]: _LTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1029,8 +1029,8 @@ export const se_ModifyDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterMessage(input, context), - Action: "ModifyDBCluster", - Version: "2014-10-31", + [_A]: _MDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1046,8 +1046,8 @@ export const se_ModifyDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterParameterGroupMessage(input, context), - Action: "ModifyDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _MDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1063,8 +1063,8 @@ export const se_ModifyDBClusterSnapshotAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterSnapshotAttributeMessage(input, context), - Action: "ModifyDBClusterSnapshotAttribute", - Version: "2014-10-31", + [_A]: _MDBCSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1080,8 +1080,8 @@ export const se_ModifyDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBInstanceMessage(input, context), - Action: "ModifyDBInstance", - Version: "2014-10-31", + [_A]: _MDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1097,8 +1097,8 @@ export const se_ModifyDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBSubnetGroupMessage(input, context), - Action: "ModifyDBSubnetGroup", - Version: "2014-10-31", + [_A]: _MDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1114,8 +1114,8 @@ export const se_ModifyEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyEventSubscriptionMessage(input, context), - Action: "ModifyEventSubscription", - Version: "2014-10-31", + [_A]: _MES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1131,8 +1131,8 @@ export const se_ModifyGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyGlobalClusterMessage(input, context), - Action: "ModifyGlobalCluster", - Version: "2014-10-31", + [_A]: _MGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1148,8 +1148,8 @@ export const se_RebootDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebootDBInstanceMessage(input, context), - Action: "RebootDBInstance", - Version: "2014-10-31", + [_A]: _RDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1165,8 +1165,8 @@ export const se_RemoveFromGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveFromGlobalClusterMessage(input, context), - Action: "RemoveFromGlobalCluster", - Version: "2014-10-31", + [_A]: _RFGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1182,8 +1182,8 @@ export const se_RemoveSourceIdentifierFromSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveSourceIdentifierFromSubscriptionMessage(input, context), - Action: "RemoveSourceIdentifierFromSubscription", - Version: "2014-10-31", + [_A]: _RSIFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1199,8 +1199,8 @@ export const se_RemoveTagsFromResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveTagsFromResourceMessage(input, context), - Action: "RemoveTagsFromResource", - Version: "2014-10-31", + [_A]: _RTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1216,8 +1216,8 @@ export const se_ResetDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetDBClusterParameterGroupMessage(input, context), - Action: "ResetDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _RDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1233,8 +1233,8 @@ export const se_RestoreDBClusterFromSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBClusterFromSnapshotMessage(input, context), - Action: "RestoreDBClusterFromSnapshot", - Version: "2014-10-31", + [_A]: _RDBCFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1250,8 +1250,8 @@ export const se_RestoreDBClusterToPointInTimeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBClusterToPointInTimeMessage(input, context), - Action: "RestoreDBClusterToPointInTime", - Version: "2014-10-31", + [_A]: _RDBCTPIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1267,8 +1267,8 @@ export const se_StartDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartDBClusterMessage(input, context), - Action: "StartDBCluster", - Version: "2014-10-31", + [_A]: _SDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1284,8 +1284,8 @@ export const se_StopDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopDBClusterMessage(input, context), - Action: "StopDBCluster", - Version: "2014-10-31", + [_A]: _SDBCt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5053,11 +5053,11 @@ const se_AddSourceIdentifierToSubscriptionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } return entries; }; @@ -5067,12 +5067,12 @@ const se_AddSourceIdentifierToSubscriptionMessage = ( */ const se_AddTagsToResourceMessage = (input: AddTagsToResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5091,14 +5091,14 @@ const se_ApplyPendingMaintenanceActionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ResourceIdentifier != null) { - entries["ResourceIdentifier"] = input.ResourceIdentifier; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.ApplyAction != null) { - entries["ApplyAction"] = input.ApplyAction; + if (input[_AA] != null) { + entries[_AA] = input[_AA]; } - if (input.OptInType != null) { - entries["OptInType"] = input.OptInType; + if (input[_OIT] != null) { + entries[_OIT] = input[_OIT]; } return entries; }; @@ -5143,9 +5143,9 @@ const se_CloudwatchLogsExportConfiguration = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnableLogTypes != null) { - const memberEntries = se_LogTypeList(input.EnableLogTypes, context); - if (input.EnableLogTypes?.length === 0) { + if (input[_ELT] != null) { + const memberEntries = se_LogTypeList(input[_ELT], context); + if (input[_ELT]?.length === 0) { entries.EnableLogTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5153,9 +5153,9 @@ const se_CloudwatchLogsExportConfiguration = ( entries[loc] = value; }); } - if (input.DisableLogTypes != null) { - const memberEntries = se_LogTypeList(input.DisableLogTypes, context); - if (input.DisableLogTypes?.length === 0) { + if (input[_DLT] != null) { + const memberEntries = se_LogTypeList(input[_DLT], context); + if (input[_DLT]?.length === 0) { entries.DisableLogTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5174,18 +5174,18 @@ const se_CopyDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SourceDBClusterParameterGroupIdentifier != null) { - entries["SourceDBClusterParameterGroupIdentifier"] = input.SourceDBClusterParameterGroupIdentifier; + if (input[_SDBCPGI] != null) { + entries[_SDBCPGI] = input[_SDBCPGI]; } - if (input.TargetDBClusterParameterGroupIdentifier != null) { - entries["TargetDBClusterParameterGroupIdentifier"] = input.TargetDBClusterParameterGroupIdentifier; + if (input[_TDBCPGI] != null) { + entries[_TDBCPGI] = input[_TDBCPGI]; } - if (input.TargetDBClusterParameterGroupDescription != null) { - entries["TargetDBClusterParameterGroupDescription"] = input.TargetDBClusterParameterGroupDescription; + if (input[_TDBCPGD] != null) { + entries[_TDBCPGD] = input[_TDBCPGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5201,24 +5201,24 @@ const se_CopyDBClusterParameterGroupMessage = ( */ const se_CopyDBClusterSnapshotMessage = (input: CopyDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceDBClusterSnapshotIdentifier != null) { - entries["SourceDBClusterSnapshotIdentifier"] = input.SourceDBClusterSnapshotIdentifier; + if (input[_SDBCSI] != null) { + entries[_SDBCSI] = input[_SDBCSI]; } - if (input.TargetDBClusterSnapshotIdentifier != null) { - entries["TargetDBClusterSnapshotIdentifier"] = input.TargetDBClusterSnapshotIdentifier; + if (input[_TDBCSI] != null) { + entries[_TDBCSI] = input[_TDBCSI]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.CopyTags != null) { - entries["CopyTags"] = input.CopyTags; + if (input[_CT] != null) { + entries[_CT] = input[_CT]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5234,9 +5234,9 @@ const se_CopyDBClusterSnapshotMessage = (input: CopyDBClusterSnapshotMessage, co */ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5244,18 +5244,18 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5263,33 +5263,33 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5297,18 +5297,18 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5316,14 +5316,14 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -5336,18 +5336,18 @@ const se_CreateDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5363,15 +5363,15 @@ const se_CreateDBClusterParameterGroupMessage = ( */ const se_CreateDBClusterSnapshotMessage = (input: CreateDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5387,27 +5387,27 @@ const se_CreateDBClusterSnapshotMessage = (input: CreateDBClusterSnapshotMessage */ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZv] != null) { + entries[_AZv] = input[_AZv]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5415,23 +5415,23 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.PromotionTier != null) { - entries["PromotionTier"] = input.PromotionTier; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.CACertificateIdentifier != null) { - entries["CACertificateIdentifier"] = input.CACertificateIdentifier; + if (input[_CACI] != null) { + entries[_CACI] = input[_CACI]; } return entries; }; @@ -5441,15 +5441,15 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S */ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.DBSubnetGroupDescription != null) { - entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription; + if (input[_DBSGD] != null) { + entries[_DBSGD] = input[_DBSGD]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5457,9 +5457,9 @@ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, contex entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5475,18 +5475,18 @@ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, contex */ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5494,9 +5494,9 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.SourceIds != null) { - const memberEntries = se_SourceIdsList(input.SourceIds, context); - if (input.SourceIds?.length === 0) { + if (input[_SIo] != null) { + const memberEntries = se_SourceIdsList(input[_SIo], context); + if (input[_SIo]?.length === 0) { entries.SourceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5504,12 +5504,12 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5525,26 +5525,26 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage */ const se_CreateGlobalClusterMessage = (input: CreateGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.SourceDBClusterIdentifier != null) { - entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier; + if (input[_SDBCI] != null) { + entries[_SDBCI] = input[_SDBCI]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } return entries; }; @@ -5554,14 +5554,14 @@ const se_CreateGlobalClusterMessage = (input: CreateGlobalClusterMessage, contex */ const se_DeleteDBClusterMessage = (input: DeleteDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.SkipFinalSnapshot != null) { - entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot; + if (input[_SFS] != null) { + entries[_SFS] = input[_SFS]; } - if (input.FinalDBSnapshotIdentifier != null) { - entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier; + if (input[_FDBSI] != null) { + entries[_FDBSI] = input[_FDBSI]; } return entries; }; @@ -5574,8 +5574,8 @@ const se_DeleteDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } return entries; }; @@ -5585,8 +5585,8 @@ const se_DeleteDBClusterParameterGroupMessage = ( */ const se_DeleteDBClusterSnapshotMessage = (input: DeleteDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } return entries; }; @@ -5596,8 +5596,8 @@ const se_DeleteDBClusterSnapshotMessage = (input: DeleteDBClusterSnapshotMessage */ const se_DeleteDBInstanceMessage = (input: DeleteDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } return entries; }; @@ -5607,8 +5607,8 @@ const se_DeleteDBInstanceMessage = (input: DeleteDBInstanceMessage, context: __S */ const se_DeleteDBSubnetGroupMessage = (input: DeleteDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } return entries; }; @@ -5618,8 +5618,8 @@ const se_DeleteDBSubnetGroupMessage = (input: DeleteDBSubnetGroupMessage, contex */ const se_DeleteEventSubscriptionMessage = (input: DeleteEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -5629,8 +5629,8 @@ const se_DeleteEventSubscriptionMessage = (input: DeleteEventSubscriptionMessage */ const se_DeleteGlobalClusterMessage = (input: DeleteGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } return entries; }; @@ -5640,12 +5640,12 @@ const se_DeleteGlobalClusterMessage = (input: DeleteGlobalClusterMessage, contex */ const se_DescribeCertificatesMessage = (input: DescribeCertificatesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CertificateIdentifier != null) { - entries["CertificateIdentifier"] = input.CertificateIdentifier; + if (input[_CI] != null) { + entries[_CI] = input[_CI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5653,11 +5653,11 @@ const se_DescribeCertificatesMessage = (input: DescribeCertificatesMessage, cont entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -5670,12 +5670,12 @@ const se_DescribeDBClusterParameterGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5683,11 +5683,11 @@ const se_DescribeDBClusterParameterGroupsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -5700,15 +5700,15 @@ const se_DescribeDBClusterParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5716,11 +5716,11 @@ const se_DescribeDBClusterParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -5730,12 +5730,12 @@ const se_DescribeDBClusterParametersMessage = ( */ const se_DescribeDBClustersMessage = (input: DescribeDBClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5743,11 +5743,11 @@ const se_DescribeDBClustersMessage = (input: DescribeDBClustersMessage, context: entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -5760,8 +5760,8 @@ const se_DescribeDBClusterSnapshotAttributesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } return entries; }; @@ -5774,18 +5774,18 @@ const se_DescribeDBClusterSnapshotsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.SnapshotType != null) { - entries["SnapshotType"] = input.SnapshotType; + if (input[_STn] != null) { + entries[_STn] = input[_STn]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5793,17 +5793,17 @@ const se_DescribeDBClusterSnapshotsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.IncludeShared != null) { - entries["IncludeShared"] = input.IncludeShared; + if (input[_IS] != null) { + entries[_IS] = input[_IS]; } - if (input.IncludePublic != null) { - entries["IncludePublic"] = input.IncludePublic; + if (input[_IP] != null) { + entries[_IP] = input[_IP]; } return entries; }; @@ -5813,18 +5813,18 @@ const se_DescribeDBClusterSnapshotsMessage = ( */ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5832,20 +5832,20 @@ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessa entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.DefaultOnly != null) { - entries["DefaultOnly"] = input.DefaultOnly; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } - if (input.ListSupportedCharacterSets != null) { - entries["ListSupportedCharacterSets"] = input.ListSupportedCharacterSets; + if (input[_LSCS] != null) { + entries[_LSCS] = input[_LSCS]; } - if (input.ListSupportedTimezones != null) { - entries["ListSupportedTimezones"] = input.ListSupportedTimezones; + if (input[_LST] != null) { + entries[_LST] = input[_LST]; } return entries; }; @@ -5855,12 +5855,12 @@ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessa */ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5868,11 +5868,11 @@ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, contex entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -5882,12 +5882,12 @@ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, contex */ const se_DescribeDBSubnetGroupsMessage = (input: DescribeDBSubnetGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5895,11 +5895,11 @@ const se_DescribeDBSubnetGroupsMessage = (input: DescribeDBSubnetGroupsMessage, entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -5912,12 +5912,12 @@ const se_DescribeEngineDefaultClusterParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5925,11 +5925,11 @@ const se_DescribeEngineDefaultClusterParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -5939,12 +5939,12 @@ const se_DescribeEngineDefaultClusterParametersMessage = ( */ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5960,24 +5960,24 @@ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage */ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5985,9 +5985,9 @@ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __Serde entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5995,11 +5995,11 @@ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __Serde entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -6012,12 +6012,12 @@ const se_DescribeEventSubscriptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6025,11 +6025,11 @@ const se_DescribeEventSubscriptionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -6039,12 +6039,12 @@ const se_DescribeEventSubscriptionsMessage = ( */ const se_DescribeGlobalClustersMessage = (input: DescribeGlobalClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6052,11 +6052,11 @@ const se_DescribeGlobalClustersMessage = (input: DescribeGlobalClustersMessage, entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -6069,24 +6069,24 @@ const se_DescribeOrderableDBInstanceOptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.Vpc != null) { - entries["Vpc"] = input.Vpc; + if (input[_Vp] != null) { + entries[_Vp] = input[_Vp]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6094,11 +6094,11 @@ const se_DescribeOrderableDBInstanceOptionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -6111,12 +6111,12 @@ const se_DescribePendingMaintenanceActionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ResourceIdentifier != null) { - entries["ResourceIdentifier"] = input.ResourceIdentifier; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6124,11 +6124,11 @@ const se_DescribePendingMaintenanceActionsMessage = ( entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -6154,11 +6154,11 @@ const se_EventCategoriesList = (input: string[], context: __SerdeContext): any = */ const se_FailoverDBClusterMessage = (input: FailoverDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.TargetDBInstanceIdentifier != null) { - entries["TargetDBInstanceIdentifier"] = input.TargetDBInstanceIdentifier; + if (input[_TDBII] != null) { + entries[_TDBII] = input[_TDBII]; } return entries; }; @@ -6168,12 +6168,12 @@ const se_FailoverDBClusterMessage = (input: FailoverDBClusterMessage, context: _ */ const se_Filter = (input: Filter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - const memberEntries = se_FilterValueList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_FilterValueList(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6240,12 +6240,12 @@ const se_KeyList = (input: string[], context: __SerdeContext): any => { */ const se_ListTagsForResourceMessage = (input: ListTagsForResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6277,24 +6277,24 @@ const se_LogTypeList = (input: string[], context: __SerdeContext): any => { */ const se_ModifyDBClusterMessage = (input: ModifyDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.NewDBClusterIdentifier != null) { - entries["NewDBClusterIdentifier"] = input.NewDBClusterIdentifier; + if (input[_NDBCI] != null) { + entries[_NDBCI] = input[_NDBCI]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6302,36 +6302,36 @@ const se_ModifyDBClusterMessage = (input: ModifyDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.CloudwatchLogsExportConfiguration != null) { - const memberEntries = se_CloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context); + if (input[_CLEC] != null) { + const memberEntries = se_CloudwatchLogsExportConfiguration(input[_CLEC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudwatchLogsExportConfiguration.${key}`; entries[loc] = value; }); } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AllowMajorVersionUpgrade != null) { - entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade; + if (input[_AMVUl] != null) { + entries[_AMVUl] = input[_AMVUl]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -6344,12 +6344,12 @@ const se_ModifyDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6368,15 +6368,15 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.AttributeName != null) { - entries["AttributeName"] = input.AttributeName; + if (input[_AN] != null) { + entries[_AN] = input[_AN]; } - if (input.ValuesToAdd != null) { - const memberEntries = se_AttributeValueList(input.ValuesToAdd, context); - if (input.ValuesToAdd?.length === 0) { + if (input[_VTA] != null) { + const memberEntries = se_AttributeValueList(input[_VTA], context); + if (input[_VTA]?.length === 0) { entries.ValuesToAdd = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6384,9 +6384,9 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( entries[loc] = value; }); } - if (input.ValuesToRemove != null) { - const memberEntries = se_AttributeValueList(input.ValuesToRemove, context); - if (input.ValuesToRemove?.length === 0) { + if (input[_VTR] != null) { + const memberEntries = se_AttributeValueList(input[_VTR], context); + if (input[_VTR]?.length === 0) { entries.ValuesToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6402,41 +6402,41 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( */ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.NewDBInstanceIdentifier != null) { - entries["NewDBInstanceIdentifier"] = input.NewDBInstanceIdentifier; + if (input[_NDBII] != null) { + entries[_NDBII] = input[_NDBII]; } - if (input.CACertificateIdentifier != null) { - entries["CACertificateIdentifier"] = input.CACertificateIdentifier; + if (input[_CACI] != null) { + entries[_CACI] = input[_CACI]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.PromotionTier != null) { - entries["PromotionTier"] = input.PromotionTier; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.CertificateRotationRestart != null) { - entries["CertificateRotationRestart"] = input.CertificateRotationRestart; + if (input[_CRR] != null) { + entries[_CRR] = input[_CRR]; } return entries; }; @@ -6446,15 +6446,15 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S */ const se_ModifyDBSubnetGroupMessage = (input: ModifyDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.DBSubnetGroupDescription != null) { - entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription; + if (input[_DBSGD] != null) { + entries[_DBSGD] = input[_DBSGD]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6470,18 +6470,18 @@ const se_ModifyDBSubnetGroupMessage = (input: ModifyDBSubnetGroupMessage, contex */ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6489,8 +6489,8 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -6500,14 +6500,14 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage */ const se_ModifyGlobalClusterMessage = (input: ModifyGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.NewGlobalClusterIdentifier != null) { - entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier; + if (input[_NGCI] != null) { + entries[_NGCI] = input[_NGCI]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } return entries; }; @@ -6517,35 +6517,35 @@ const se_ModifyGlobalClusterMessage = (input: ModifyGlobalClusterMessage, contex */ const se_Parameter = (input: Parameter, context: __SerdeContext): any => { const entries: any = {}; - if (input.ParameterName != null) { - entries["ParameterName"] = input.ParameterName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.ParameterValue != null) { - entries["ParameterValue"] = input.ParameterValue; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.ApplyType != null) { - entries["ApplyType"] = input.ApplyType; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.DataType != null) { - entries["DataType"] = input.DataType; + if (input[_DT] != null) { + entries[_DT] = input[_DT]; } - if (input.AllowedValues != null) { - entries["AllowedValues"] = input.AllowedValues; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } - if (input.IsModifiable != null) { - entries["IsModifiable"] = input.IsModifiable; + if (input[_IM] != null) { + entries[_IM] = input[_IM]; } - if (input.MinimumEngineVersion != null) { - entries["MinimumEngineVersion"] = input.MinimumEngineVersion; + if (input[_MEV] != null) { + entries[_MEV] = input[_MEV]; } - if (input.ApplyMethod != null) { - entries["ApplyMethod"] = input.ApplyMethod; + if (input[_AM] != null) { + entries[_AM] = input[_AM]; } return entries; }; @@ -6574,11 +6574,11 @@ const se_ParametersList = (input: Parameter[], context: __SerdeContext): any => */ const se_RebootDBInstanceMessage = (input: RebootDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.ForceFailover != null) { - entries["ForceFailover"] = input.ForceFailover; + if (input[_FF] != null) { + entries[_FF] = input[_FF]; } return entries; }; @@ -6588,11 +6588,11 @@ const se_RebootDBInstanceMessage = (input: RebootDBInstanceMessage, context: __S */ const se_RemoveFromGlobalClusterMessage = (input: RemoveFromGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.DbClusterIdentifier != null) { - entries["DbClusterIdentifier"] = input.DbClusterIdentifier; + if (input[_DCI] != null) { + entries[_DCI] = input[_DCI]; } return entries; }; @@ -6605,11 +6605,11 @@ const se_RemoveSourceIdentifierFromSubscriptionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } return entries; }; @@ -6619,12 +6619,12 @@ const se_RemoveSourceIdentifierFromSubscriptionMessage = ( */ const se_RemoveTagsFromResourceMessage = (input: RemoveTagsFromResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.TagKeys != null) { - const memberEntries = se_KeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_KeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6643,15 +6643,15 @@ const se_ResetDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.ResetAllParameters != null) { - entries["ResetAllParameters"] = input.ResetAllParameters; + if (input[_RAP] != null) { + entries[_RAP] = input[_RAP]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6670,9 +6670,9 @@ const se_RestoreDBClusterFromSnapshotMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6680,27 +6680,27 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6708,9 +6708,9 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6718,12 +6718,12 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6731,14 +6731,14 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -6751,30 +6751,30 @@ const se_RestoreDBClusterToPointInTimeMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.RestoreType != null) { - entries["RestoreType"] = input.RestoreType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.SourceDBClusterIdentifier != null) { - entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier; + if (input[_SDBCI] != null) { + entries[_SDBCI] = input[_SDBCI]; } - if (input.RestoreToTime != null) { - entries["RestoreToTime"] = input.RestoreToTime.toISOString().split(".")[0] + "Z"; + if (input[_RTT] != null) { + entries[_RTT] = input[_RTT].toISOString().split(".")[0] + "Z"; } - if (input.UseLatestRestorableTime != null) { - entries["UseLatestRestorableTime"] = input.UseLatestRestorableTime; + if (input[_ULRT] != null) { + entries[_ULRT] = input[_ULRT]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6782,9 +6782,9 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6792,12 +6792,12 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6805,11 +6805,11 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -6835,8 +6835,8 @@ const se_SourceIdsList = (input: string[], context: __SerdeContext): any => { */ const se_StartDBClusterMessage = (input: StartDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -6846,8 +6846,8 @@ const se_StartDBClusterMessage = (input: StartDBClusterMessage, context: __Serde */ const se_StopDBClusterMessage = (input: StopDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -6873,11 +6873,11 @@ const se_SubnetIdentifierList = (input: string[], context: __SerdeContext): any */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -6925,8 +6925,8 @@ const de_AddSourceIdentifierToSubscriptionResult = ( context: __SerdeContext ): AddSourceIdentifierToSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -6939,11 +6939,8 @@ const de_ApplyPendingMaintenanceActionResult = ( context: __SerdeContext ): ApplyPendingMaintenanceActionResult => { const contents: any = {}; - if (output["ResourcePendingMaintenanceActions"] !== undefined) { - contents.ResourcePendingMaintenanceActions = de_ResourcePendingMaintenanceActions( - output["ResourcePendingMaintenanceActions"], - context - ); + if (output[_RPMA] != null) { + contents[_RPMA] = de_ResourcePendingMaintenanceActions(output[_RPMA], context); } return contents; }; @@ -6964,8 +6961,8 @@ const de_AttributeValueList = (output: any, context: __SerdeContext): string[] = */ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): AuthorizationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -6975,8 +6972,8 @@ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): Au */ const de_AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -7019,23 +7016,23 @@ const de_CACertificateIdentifiersList = (output: any, context: __SerdeContext): */ const de_Certificate = (output: any, context: __SerdeContext): Certificate => { const contents: any = {}; - if (output["CertificateIdentifier"] !== undefined) { - contents.CertificateIdentifier = __expectString(output["CertificateIdentifier"]); + if (output[_CI] != null) { + contents[_CI] = __expectString(output[_CI]); } - if (output["CertificateType"] !== undefined) { - contents.CertificateType = __expectString(output["CertificateType"]); + if (output[_CTe] != null) { + contents[_CTe] = __expectString(output[_CTe]); } - if (output["Thumbprint"] !== undefined) { - contents.Thumbprint = __expectString(output["Thumbprint"]); + if (output[_Th] != null) { + contents[_Th] = __expectString(output[_Th]); } - if (output["ValidFrom"] !== undefined) { - contents.ValidFrom = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidFrom"])); + if (output[_VF] != null) { + contents[_VF] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VF])); } - if (output["ValidTill"] !== undefined) { - contents.ValidTill = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidTill"])); + if (output[_VT] != null) { + contents[_VT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VT])); } - if (output["CertificateArn"] !== undefined) { - contents.CertificateArn = __expectString(output["CertificateArn"]); + if (output[_CA] != null) { + contents[_CA] = __expectString(output[_CA]); } return contents; }; @@ -7045,11 +7042,11 @@ const de_Certificate = (output: any, context: __SerdeContext): Certificate => { */ const de_CertificateDetails = (output: any, context: __SerdeContext): CertificateDetails => { const contents: any = {}; - if (output["CAIdentifier"] !== undefined) { - contents.CAIdentifier = __expectString(output["CAIdentifier"]); + if (output[_CAI] != null) { + contents[_CAI] = __expectString(output[_CAI]); } - if (output["ValidTill"] !== undefined) { - contents.ValidTill = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidTill"])); + if (output[_VT] != null) { + contents[_VT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VT])); } return contents; }; @@ -7071,12 +7068,12 @@ const de_CertificateList = (output: any, context: __SerdeContext): Certificate[] const de_CertificateMessage = (output: any, context: __SerdeContext): CertificateMessage => { const contents: any = {}; if (output.Certificates === "") { - contents.Certificates = []; - } else if (output["Certificates"] !== undefined && output["Certificates"]["Certificate"] !== undefined) { - contents.Certificates = de_CertificateList(__getArrayIfSingleItem(output["Certificates"]["Certificate"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_Ce] != null) { + contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_Ce]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -7086,8 +7083,8 @@ const de_CertificateMessage = (output: any, context: __SerdeContext): Certificat */ const de_CertificateNotFoundFault = (output: any, context: __SerdeContext): CertificateNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7100,8 +7097,8 @@ const de_CopyDBClusterParameterGroupResult = ( context: __SerdeContext ): CopyDBClusterParameterGroupResult => { const contents: any = {}; - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = de_DBClusterParameterGroup(output["DBClusterParameterGroup"], context); + if (output[_DBCPG] != null) { + contents[_DBCPG] = de_DBClusterParameterGroup(output[_DBCPG], context); } return contents; }; @@ -7111,8 +7108,8 @@ const de_CopyDBClusterParameterGroupResult = ( */ const de_CopyDBClusterSnapshotResult = (output: any, context: __SerdeContext): CopyDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -7125,8 +7122,8 @@ const de_CreateDBClusterParameterGroupResult = ( context: __SerdeContext ): CreateDBClusterParameterGroupResult => { const contents: any = {}; - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = de_DBClusterParameterGroup(output["DBClusterParameterGroup"], context); + if (output[_DBCPG] != null) { + contents[_DBCPG] = de_DBClusterParameterGroup(output[_DBCPG], context); } return contents; }; @@ -7136,8 +7133,8 @@ const de_CreateDBClusterParameterGroupResult = ( */ const de_CreateDBClusterResult = (output: any, context: __SerdeContext): CreateDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -7147,8 +7144,8 @@ const de_CreateDBClusterResult = (output: any, context: __SerdeContext): CreateD */ const de_CreateDBClusterSnapshotResult = (output: any, context: __SerdeContext): CreateDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -7158,8 +7155,8 @@ const de_CreateDBClusterSnapshotResult = (output: any, context: __SerdeContext): */ const de_CreateDBInstanceResult = (output: any, context: __SerdeContext): CreateDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -7169,8 +7166,8 @@ const de_CreateDBInstanceResult = (output: any, context: __SerdeContext): Create */ const de_CreateDBSubnetGroupResult = (output: any, context: __SerdeContext): CreateDBSubnetGroupResult => { const contents: any = {}; - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSG] != null) { + contents[_DBSG] = de_DBSubnetGroup(output[_DBSG], context); } return contents; }; @@ -7180,8 +7177,8 @@ const de_CreateDBSubnetGroupResult = (output: any, context: __SerdeContext): Cre */ const de_CreateEventSubscriptionResult = (output: any, context: __SerdeContext): CreateEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -7191,8 +7188,8 @@ const de_CreateEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_CreateGlobalClusterResult = (output: any, context: __SerdeContext): CreateGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -7203,147 +7200,115 @@ const de_CreateGlobalClusterResult = (output: any, context: __SerdeContext): Cre const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { const contents: any = {}; if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = __expectString(output["DBClusterParameterGroup"]); + if (output[_DBCPG] != null) { + contents[_DBCPG] = __expectString(output[_DBCPG]); } - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = __expectString(output["DBSubnetGroup"]); + if (output[_DBSG] != null) { + contents[_DBSG] = __expectString(output[_DBSG]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __expectString(output["PercentProgress"]); + if (output[_PP] != null) { + contents[_PP] = __expectString(output[_PP]); } - if (output["EarliestRestorableTime"] !== undefined) { - contents.EarliestRestorableTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["EarliestRestorableTime"]) - ); + if (output[_ERT] != null) { + contents[_ERT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ERT])); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["ReaderEndpoint"] !== undefined) { - contents.ReaderEndpoint = __expectString(output["ReaderEndpoint"]); + if (output[_RE] != null) { + contents[_RE] = __expectString(output[_RE]); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LatestRestorableTime"] !== undefined) { - contents.LatestRestorableTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LatestRestorableTime"])); + if (output[_LRT] != null) { + contents[_LRT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LRT])); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["PreferredBackupWindow"] !== undefined) { - contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); + if (output[_PBW] != null) { + contents[_PBW] = __expectString(output[_PBW]); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["ReplicationSourceIdentifier"] !== undefined) { - contents.ReplicationSourceIdentifier = __expectString(output["ReplicationSourceIdentifier"]); + if (output[_RSI] != null) { + contents[_RSI] = __expectString(output[_RSI]); } if (output.ReadReplicaIdentifiers === "") { - contents.ReadReplicaIdentifiers = []; - } else if ( - output["ReadReplicaIdentifiers"] !== undefined && - output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"] !== undefined - ) { - contents.ReadReplicaIdentifiers = de_ReadReplicaIdentifierList( - __getArrayIfSingleItem(output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"]), - context - ); + contents[_RRI] = []; + } else if (output[_RRI] != null && output[_RRI][_RRIe] != null) { + contents[_RRI] = de_ReadReplicaIdentifierList(__getArrayIfSingleItem(output[_RRI][_RRIe]), context); } if (output.DBClusterMembers === "") { - contents.DBClusterMembers = []; - } else if (output["DBClusterMembers"] !== undefined && output["DBClusterMembers"]["DBClusterMember"] !== undefined) { - contents.DBClusterMembers = de_DBClusterMemberList( - __getArrayIfSingleItem(output["DBClusterMembers"]["DBClusterMember"]), - context - ); + contents[_DBCM] = []; + } else if (output[_DBCM] != null && output[_DBCM][_DBCMl] != null) { + contents[_DBCM] = de_DBClusterMemberList(__getArrayIfSingleItem(output[_DBCM][_DBCMl]), context); } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DbClusterResourceId"] !== undefined) { - contents.DbClusterResourceId = __expectString(output["DbClusterResourceId"]); + if (output[_DCRI] != null) { + contents[_DCRI] = __expectString(output[_DCRI]); } - if (output["DBClusterArn"] !== undefined) { - contents.DBClusterArn = __expectString(output["DBClusterArn"]); + if (output[_DBCA] != null) { + contents[_DBCA] = __expectString(output[_DBCA]); } if (output.AssociatedRoles === "") { - contents.AssociatedRoles = []; - } else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) { - contents.AssociatedRoles = de_DBClusterRoles( - __getArrayIfSingleItem(output["AssociatedRoles"]["DBClusterRole"]), - context - ); + contents[_AR] = []; + } else if (output[_AR] != null && output[_AR][_DBCR] != null) { + contents[_AR] = de_DBClusterRoles(__getArrayIfSingleItem(output[_AR][_DBCR]), context); } - if (output["CloneGroupId"] !== undefined) { - contents.CloneGroupId = __expectString(output["CloneGroupId"]); + if (output[_CGI] != null) { + contents[_CGI] = __expectString(output[_CGI]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } if (output.EnabledCloudwatchLogsExports === "") { - contents.EnabledCloudwatchLogsExports = []; - } else if ( - output["EnabledCloudwatchLogsExports"] !== undefined && - output["EnabledCloudwatchLogsExports"]["member"] !== undefined - ) { - contents.EnabledCloudwatchLogsExports = de_LogTypeList( - __getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), - context - ); + contents[_ECLEn] = []; + } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { + contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } return contents; }; @@ -7353,8 +7318,8 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { */ const de_DBClusterAlreadyExistsFault = (output: any, context: __SerdeContext): DBClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7375,17 +7340,17 @@ const de_DBClusterList = (output: any, context: __SerdeContext): DBCluster[] => */ const de_DBClusterMember = (output: any, context: __SerdeContext): DBClusterMember => { const contents: any = {}; - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["IsClusterWriter"] !== undefined) { - contents.IsClusterWriter = __parseBoolean(output["IsClusterWriter"]); + if (output[_ICW] != null) { + contents[_ICW] = __parseBoolean(output[_ICW]); } - if (output["DBClusterParameterGroupStatus"] !== undefined) { - contents.DBClusterParameterGroupStatus = __expectString(output["DBClusterParameterGroupStatus"]); + if (output[_DBCPGS] != null) { + contents[_DBCPGS] = __expectString(output[_DBCPGS]); } - if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; + if (output[_PT] != null) { + contents[_PT] = __strictParseInt32(output[_PT]) as number; } return contents; }; @@ -7406,13 +7371,13 @@ const de_DBClusterMemberList = (output: any, context: __SerdeContext): DBCluster */ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBClusters === "") { - contents.DBClusters = []; - } else if (output["DBClusters"] !== undefined && output["DBClusters"]["DBCluster"] !== undefined) { - contents.DBClusters = de_DBClusterList(__getArrayIfSingleItem(output["DBClusters"]["DBCluster"]), context); + contents[_DBCl] = []; + } else if (output[_DBCl] != null && output[_DBCl][_DBC] != null) { + contents[_DBCl] = de_DBClusterList(__getArrayIfSingleItem(output[_DBCl][_DBC]), context); } return contents; }; @@ -7422,8 +7387,8 @@ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMes */ const de_DBClusterNotFoundFault = (output: any, context: __SerdeContext): DBClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7433,17 +7398,17 @@ const de_DBClusterNotFoundFault = (output: any, context: __SerdeContext): DBClus */ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClusterParameterGroup => { const contents: any = {}; - if (output["DBClusterParameterGroupName"] !== undefined) { - contents.DBClusterParameterGroupName = __expectString(output["DBClusterParameterGroupName"]); + if (output[_DBCPGN] != null) { + contents[_DBCPGN] = __expectString(output[_DBCPGN]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DBClusterParameterGroupArn"] !== undefined) { - contents.DBClusterParameterGroupArn = __expectString(output["DBClusterParameterGroupArn"]); + if (output[_DBCPGA] != null) { + contents[_DBCPGA] = __expectString(output[_DBCPGA]); } return contents; }; @@ -7454,12 +7419,12 @@ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClu const de_DBClusterParameterGroupDetails = (output: any, context: __SerdeContext): DBClusterParameterGroupDetails => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -7483,8 +7448,8 @@ const de_DBClusterParameterGroupNameMessage = ( context: __SerdeContext ): DBClusterParameterGroupNameMessage => { const contents: any = {}; - if (output["DBClusterParameterGroupName"] !== undefined) { - contents.DBClusterParameterGroupName = __expectString(output["DBClusterParameterGroupName"]); + if (output[_DBCPGN] != null) { + contents[_DBCPGN] = __expectString(output[_DBCPGN]); } return contents; }; @@ -7497,8 +7462,8 @@ const de_DBClusterParameterGroupNotFoundFault = ( context: __SerdeContext ): DBClusterParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7508,19 +7473,13 @@ const de_DBClusterParameterGroupNotFoundFault = ( */ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext): DBClusterParameterGroupsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBClusterParameterGroups === "") { - contents.DBClusterParameterGroups = []; - } else if ( - output["DBClusterParameterGroups"] !== undefined && - output["DBClusterParameterGroups"]["DBClusterParameterGroup"] !== undefined - ) { - contents.DBClusterParameterGroups = de_DBClusterParameterGroupList( - __getArrayIfSingleItem(output["DBClusterParameterGroups"]["DBClusterParameterGroup"]), - context - ); + contents[_DBCPGl] = []; + } else if (output[_DBCPGl] != null && output[_DBCPGl][_DBCPG] != null) { + contents[_DBCPGl] = de_DBClusterParameterGroupList(__getArrayIfSingleItem(output[_DBCPGl][_DBCPG]), context); } return contents; }; @@ -7530,8 +7489,8 @@ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext */ const de_DBClusterQuotaExceededFault = (output: any, context: __SerdeContext): DBClusterQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7541,11 +7500,11 @@ const de_DBClusterQuotaExceededFault = (output: any, context: __SerdeContext): D */ const de_DBClusterRole = (output: any, context: __SerdeContext): DBClusterRole => { const contents: any = {}; - if (output["RoleArn"] !== undefined) { - contents.RoleArn = __expectString(output["RoleArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -7567,66 +7526,60 @@ const de_DBClusterRoles = (output: any, context: __SerdeContext): DBClusterRole[ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSnapshot => { const contents: any = {}; if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["DBClusterSnapshotIdentifier"] !== undefined) { - contents.DBClusterSnapshotIdentifier = __expectString(output["DBClusterSnapshotIdentifier"]); + if (output[_DBCSI] != null) { + contents[_DBCSI] = __expectString(output[_DBCSI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["SnapshotCreateTime"] !== undefined) { - contents.SnapshotCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotCreateTime"])); + if (output[_SCT] != null) { + contents[_SCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCT])); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["SnapshotType"] !== undefined) { - contents.SnapshotType = __expectString(output["SnapshotType"]); + if (output[_STn] != null) { + contents[_STn] = __expectString(output[_STn]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; + if (output[_PP] != null) { + contents[_PP] = __strictParseInt32(output[_PP]) as number; } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DBClusterSnapshotArn"] !== undefined) { - contents.DBClusterSnapshotArn = __expectString(output["DBClusterSnapshotArn"]); + if (output[_DBCSA] != null) { + contents[_DBCSA] = __expectString(output[_DBCSA]); } - if (output["SourceDBClusterSnapshotArn"] !== undefined) { - contents.SourceDBClusterSnapshotArn = __expectString(output["SourceDBClusterSnapshotArn"]); + if (output[_SDBCSA] != null) { + contents[_SDBCSA] = __expectString(output[_SDBCSA]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } return contents; }; @@ -7639,8 +7592,8 @@ const de_DBClusterSnapshotAlreadyExistsFault = ( context: __SerdeContext ): DBClusterSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7650,16 +7603,13 @@ const de_DBClusterSnapshotAlreadyExistsFault = ( */ const de_DBClusterSnapshotAttribute = (output: any, context: __SerdeContext): DBClusterSnapshotAttribute => { const contents: any = {}; - if (output["AttributeName"] !== undefined) { - contents.AttributeName = __expectString(output["AttributeName"]); + if (output[_AN] != null) { + contents[_AN] = __expectString(output[_AN]); } if (output.AttributeValues === "") { - contents.AttributeValues = []; - } else if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) { - contents.AttributeValues = de_AttributeValueList( - __getArrayIfSingleItem(output["AttributeValues"]["AttributeValue"]), - context - ); + contents[_AVt] = []; + } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { + contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); } return contents; }; @@ -7683,19 +7633,13 @@ const de_DBClusterSnapshotAttributesResult = ( context: __SerdeContext ): DBClusterSnapshotAttributesResult => { const contents: any = {}; - if (output["DBClusterSnapshotIdentifier"] !== undefined) { - contents.DBClusterSnapshotIdentifier = __expectString(output["DBClusterSnapshotIdentifier"]); + if (output[_DBCSI] != null) { + contents[_DBCSI] = __expectString(output[_DBCSI]); } if (output.DBClusterSnapshotAttributes === "") { - contents.DBClusterSnapshotAttributes = []; - } else if ( - output["DBClusterSnapshotAttributes"] !== undefined && - output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"] !== undefined - ) { - contents.DBClusterSnapshotAttributes = de_DBClusterSnapshotAttributeList( - __getArrayIfSingleItem(output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"]), - context - ); + contents[_DBCSAl] = []; + } else if (output[_DBCSAl] != null && output[_DBCSAl][_DBCSAlu] != null) { + contents[_DBCSAl] = de_DBClusterSnapshotAttributeList(__getArrayIfSingleItem(output[_DBCSAl][_DBCSAlu]), context); } return contents; }; @@ -7716,19 +7660,13 @@ const de_DBClusterSnapshotList = (output: any, context: __SerdeContext): DBClust */ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBClusterSnapshotMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBClusterSnapshots === "") { - contents.DBClusterSnapshots = []; - } else if ( - output["DBClusterSnapshots"] !== undefined && - output["DBClusterSnapshots"]["DBClusterSnapshot"] !== undefined - ) { - contents.DBClusterSnapshots = de_DBClusterSnapshotList( - __getArrayIfSingleItem(output["DBClusterSnapshots"]["DBClusterSnapshot"]), - context - ); + contents[_DBCSl] = []; + } else if (output[_DBCSl] != null && output[_DBCSl][_DBCS] != null) { + contents[_DBCSl] = de_DBClusterSnapshotList(__getArrayIfSingleItem(output[_DBCSl][_DBCS]), context); } return contents; }; @@ -7738,8 +7676,8 @@ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBCl */ const de_DBClusterSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBClusterSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7749,58 +7687,41 @@ const de_DBClusterSnapshotNotFoundFault = (output: any, context: __SerdeContext) */ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersion => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["DBEngineDescription"] !== undefined) { - contents.DBEngineDescription = __expectString(output["DBEngineDescription"]); + if (output[_DBED] != null) { + contents[_DBED] = __expectString(output[_DBED]); } - if (output["DBEngineVersionDescription"] !== undefined) { - contents.DBEngineVersionDescription = __expectString(output["DBEngineVersionDescription"]); + if (output[_DBEVD] != null) { + contents[_DBEVD] = __expectString(output[_DBEVD]); } if (output.ValidUpgradeTarget === "") { - contents.ValidUpgradeTarget = []; - } else if ( - output["ValidUpgradeTarget"] !== undefined && - output["ValidUpgradeTarget"]["UpgradeTarget"] !== undefined - ) { - contents.ValidUpgradeTarget = de_ValidUpgradeTargetList( - __getArrayIfSingleItem(output["ValidUpgradeTarget"]["UpgradeTarget"]), - context - ); + contents[_VUT] = []; + } else if (output[_VUT] != null && output[_VUT][_UT] != null) { + contents[_VUT] = de_ValidUpgradeTargetList(__getArrayIfSingleItem(output[_VUT][_UT]), context); } if (output.ExportableLogTypes === "") { - contents.ExportableLogTypes = []; - } else if (output["ExportableLogTypes"] !== undefined && output["ExportableLogTypes"]["member"] !== undefined) { - contents.ExportableLogTypes = de_LogTypeList( - __getArrayIfSingleItem(output["ExportableLogTypes"]["member"]), - context - ); + contents[_ELTx] = []; + } else if (output[_ELTx] != null && output[_ELTx][_me] != null) { + contents[_ELTx] = de_LogTypeList(__getArrayIfSingleItem(output[_ELTx][_me]), context); } - if (output["SupportsLogExportsToCloudwatchLogs"] !== undefined) { - contents.SupportsLogExportsToCloudwatchLogs = __parseBoolean(output["SupportsLogExportsToCloudwatchLogs"]); + if (output[_SLETCL] != null) { + contents[_SLETCL] = __parseBoolean(output[_SLETCL]); } if (output.SupportedCACertificateIdentifiers === "") { - contents.SupportedCACertificateIdentifiers = []; - } else if ( - output["SupportedCACertificateIdentifiers"] !== undefined && - output["SupportedCACertificateIdentifiers"]["member"] !== undefined - ) { - contents.SupportedCACertificateIdentifiers = de_CACertificateIdentifiersList( - __getArrayIfSingleItem(output["SupportedCACertificateIdentifiers"]["member"]), - context - ); + contents[_SCACI] = []; + } else if (output[_SCACI] != null && output[_SCACI][_me] != null) { + contents[_SCACI] = de_CACertificateIdentifiersList(__getArrayIfSingleItem(output[_SCACI][_me]), context); } - if (output["SupportsCertificateRotationWithoutRestart"] !== undefined) { - contents.SupportsCertificateRotationWithoutRestart = __parseBoolean( - output["SupportsCertificateRotationWithoutRestart"] - ); + if (output[_SCRWR] != null) { + contents[_SCRWR] = __parseBoolean(output[_SCRWR]); } return contents; }; @@ -7821,16 +7742,13 @@ const de_DBEngineVersionList = (output: any, context: __SerdeContext): DBEngineV */ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngineVersionMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBEngineVersions === "") { - contents.DBEngineVersions = []; - } else if (output["DBEngineVersions"] !== undefined && output["DBEngineVersions"]["DBEngineVersion"] !== undefined) { - contents.DBEngineVersions = de_DBEngineVersionList( - __getArrayIfSingleItem(output["DBEngineVersions"]["DBEngineVersion"]), - context - ); + contents[_DBEV] = []; + } else if (output[_DBEV] != null && output[_DBEV][_DBEVn] != null) { + contents[_DBEV] = de_DBEngineVersionList(__getArrayIfSingleItem(output[_DBEV][_DBEVn]), context); } return contents; }; @@ -7840,110 +7758,95 @@ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngi */ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { const contents: any = {}; - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["DBInstanceStatus"] !== undefined) { - contents.DBInstanceStatus = __expectString(output["DBInstanceStatus"]); + if (output[_DBIS] != null) { + contents[_DBIS] = __expectString(output[_DBIS]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = de_Endpoint(output["Endpoint"], context); + if (output[_End] != null) { + contents[_End] = de_Endpoint(output[_End], context); } - if (output["InstanceCreateTime"] !== undefined) { - contents.InstanceCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["InstanceCreateTime"])); + if (output[_ICT] != null) { + contents[_ICT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ICT])); } - if (output["PreferredBackupWindow"] !== undefined) { - contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); + if (output[_PBW] != null) { + contents[_PBW] = __expectString(output[_PBW]); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZv] != null) { + contents[_AZv] = __expectString(output[_AZv]); } - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSG] != null) { + contents[_DBSG] = de_DBSubnetGroup(output[_DBSG], context); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_PendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_PendingModifiedValues(output[_PMV], context); } - if (output["LatestRestorableTime"] !== undefined) { - contents.LatestRestorableTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LatestRestorableTime"])); + if (output[_LRT] != null) { + contents[_LRT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LRT])); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["AutoMinorVersionUpgrade"] !== undefined) { - contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); + if (output[_AMVU] != null) { + contents[_AMVU] = __parseBoolean(output[_AMVU]); } - if (output["PubliclyAccessible"] !== undefined) { - contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]); + if (output[_PA] != null) { + contents[_PA] = __parseBoolean(output[_PA]); } if (output.StatusInfos === "") { - contents.StatusInfos = []; - } else if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBInstanceStatusInfo"] !== undefined) { - contents.StatusInfos = de_DBInstanceStatusInfoList( - __getArrayIfSingleItem(output["StatusInfos"]["DBInstanceStatusInfo"]), - context - ); + contents[_SIt] = []; + } else if (output[_SIt] != null && output[_SIt][_DBISI] != null) { + contents[_SIt] = de_DBInstanceStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBISI]), context); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DbiResourceId"] !== undefined) { - contents.DbiResourceId = __expectString(output["DbiResourceId"]); + if (output[_DRI] != null) { + contents[_DRI] = __expectString(output[_DRI]); } - if (output["CACertificateIdentifier"] !== undefined) { - contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]); + if (output[_CACI] != null) { + contents[_CACI] = __expectString(output[_CACI]); } - if (output["CopyTagsToSnapshot"] !== undefined) { - contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]); + if (output[_CTTS] != null) { + contents[_CTTS] = __parseBoolean(output[_CTTS]); } - if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; + if (output[_PT] != null) { + contents[_PT] = __strictParseInt32(output[_PT]) as number; } - if (output["DBInstanceArn"] !== undefined) { - contents.DBInstanceArn = __expectString(output["DBInstanceArn"]); + if (output[_DBIA] != null) { + contents[_DBIA] = __expectString(output[_DBIA]); } if (output.EnabledCloudwatchLogsExports === "") { - contents.EnabledCloudwatchLogsExports = []; - } else if ( - output["EnabledCloudwatchLogsExports"] !== undefined && - output["EnabledCloudwatchLogsExports"]["member"] !== undefined - ) { - contents.EnabledCloudwatchLogsExports = de_LogTypeList( - __getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), - context - ); + contents[_ECLEn] = []; + } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { + contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); } - if (output["CertificateDetails"] !== undefined) { - contents.CertificateDetails = de_CertificateDetails(output["CertificateDetails"], context); + if (output[_CD] != null) { + contents[_CD] = de_CertificateDetails(output[_CD], context); } return contents; }; @@ -7953,8 +7856,8 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { */ const de_DBInstanceAlreadyExistsFault = (output: any, context: __SerdeContext): DBInstanceAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7975,13 +7878,13 @@ const de_DBInstanceList = (output: any, context: __SerdeContext): DBInstance[] = */ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBInstances === "") { - contents.DBInstances = []; - } else if (output["DBInstances"] !== undefined && output["DBInstances"]["DBInstance"] !== undefined) { - contents.DBInstances = de_DBInstanceList(__getArrayIfSingleItem(output["DBInstances"]["DBInstance"]), context); + contents[_DBIn] = []; + } else if (output[_DBIn] != null && output[_DBIn][_DBI] != null) { + contents[_DBIn] = de_DBInstanceList(__getArrayIfSingleItem(output[_DBIn][_DBI]), context); } return contents; }; @@ -7991,8 +7894,8 @@ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceM */ const de_DBInstanceNotFoundFault = (output: any, context: __SerdeContext): DBInstanceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8002,17 +7905,17 @@ const de_DBInstanceNotFoundFault = (output: any, context: __SerdeContext): DBIns */ const de_DBInstanceStatusInfo = (output: any, context: __SerdeContext): DBInstanceStatusInfo => { const contents: any = {}; - if (output["StatusType"] !== undefined) { - contents.StatusType = __expectString(output["StatusType"]); + if (output[_STta] != null) { + contents[_STta] = __expectString(output[_STta]); } - if (output["Normal"] !== undefined) { - contents.Normal = __parseBoolean(output["Normal"]); + if (output[_No] != null) { + contents[_No] = __parseBoolean(output[_No]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8036,8 +7939,8 @@ const de_DBParameterGroupAlreadyExistsFault = ( context: __SerdeContext ): DBParameterGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8047,8 +7950,8 @@ const de_DBParameterGroupAlreadyExistsFault = ( */ const de_DBParameterGroupNotFoundFault = (output: any, context: __SerdeContext): DBParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8061,8 +7964,8 @@ const de_DBParameterGroupQuotaExceededFault = ( context: __SerdeContext ): DBParameterGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8072,8 +7975,8 @@ const de_DBParameterGroupQuotaExceededFault = ( */ const de_DBSecurityGroupNotFoundFault = (output: any, context: __SerdeContext): DBSecurityGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8083,8 +7986,8 @@ const de_DBSecurityGroupNotFoundFault = (output: any, context: __SerdeContext): */ const de_DBSnapshotAlreadyExistsFault = (output: any, context: __SerdeContext): DBSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8094,8 +7997,8 @@ const de_DBSnapshotAlreadyExistsFault = (output: any, context: __SerdeContext): */ const de_DBSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8105,25 +8008,25 @@ const de_DBSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBSna */ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup => { const contents: any = {}; - if (output["DBSubnetGroupName"] !== undefined) { - contents.DBSubnetGroupName = __expectString(output["DBSubnetGroupName"]); + if (output[_DBSGN] != null) { + contents[_DBSGN] = __expectString(output[_DBSGN]); } - if (output["DBSubnetGroupDescription"] !== undefined) { - contents.DBSubnetGroupDescription = __expectString(output["DBSubnetGroupDescription"]); + if (output[_DBSGD] != null) { + contents[_DBSGD] = __expectString(output[_DBSGD]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["SubnetGroupStatus"] !== undefined) { - contents.SubnetGroupStatus = __expectString(output["SubnetGroupStatus"]); + if (output[_SGS] != null) { + contents[_SGS] = __expectString(output[_SGS]); } if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) { - contents.Subnets = de_SubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_Sub] != null) { + contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); } - if (output["DBSubnetGroupArn"] !== undefined) { - contents.DBSubnetGroupArn = __expectString(output["DBSubnetGroupArn"]); + if (output[_DBSGA] != null) { + contents[_DBSGA] = __expectString(output[_DBSGA]); } return contents; }; @@ -8133,8 +8036,8 @@ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup = */ const de_DBSubnetGroupAlreadyExistsFault = (output: any, context: __SerdeContext): DBSubnetGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8147,8 +8050,8 @@ const de_DBSubnetGroupDoesNotCoverEnoughAZs = ( context: __SerdeContext ): DBSubnetGroupDoesNotCoverEnoughAZs => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8158,16 +8061,13 @@ const de_DBSubnetGroupDoesNotCoverEnoughAZs = ( */ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnetGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBSubnetGroups === "") { - contents.DBSubnetGroups = []; - } else if (output["DBSubnetGroups"] !== undefined && output["DBSubnetGroups"]["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroups = de_DBSubnetGroups( - __getArrayIfSingleItem(output["DBSubnetGroups"]["DBSubnetGroup"]), - context - ); + contents[_DBSGu] = []; + } else if (output[_DBSGu] != null && output[_DBSGu][_DBSG] != null) { + contents[_DBSGu] = de_DBSubnetGroups(__getArrayIfSingleItem(output[_DBSGu][_DBSG]), context); } return contents; }; @@ -8177,8 +8077,8 @@ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnet */ const de_DBSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): DBSubnetGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8188,8 +8088,8 @@ const de_DBSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): DB */ const de_DBSubnetGroupQuotaExceededFault = (output: any, context: __SerdeContext): DBSubnetGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8210,8 +8110,8 @@ const de_DBSubnetGroups = (output: any, context: __SerdeContext): DBSubnetGroup[ */ const de_DBSubnetQuotaExceededFault = (output: any, context: __SerdeContext): DBSubnetQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8221,8 +8121,8 @@ const de_DBSubnetQuotaExceededFault = (output: any, context: __SerdeContext): DB */ const de_DBUpgradeDependencyFailureFault = (output: any, context: __SerdeContext): DBUpgradeDependencyFailureFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8232,8 +8132,8 @@ const de_DBUpgradeDependencyFailureFault = (output: any, context: __SerdeContext */ const de_DeleteDBClusterResult = (output: any, context: __SerdeContext): DeleteDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -8243,8 +8143,8 @@ const de_DeleteDBClusterResult = (output: any, context: __SerdeContext): DeleteD */ const de_DeleteDBClusterSnapshotResult = (output: any, context: __SerdeContext): DeleteDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -8254,8 +8154,8 @@ const de_DeleteDBClusterSnapshotResult = (output: any, context: __SerdeContext): */ const de_DeleteDBInstanceResult = (output: any, context: __SerdeContext): DeleteDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -8265,8 +8165,8 @@ const de_DeleteDBInstanceResult = (output: any, context: __SerdeContext): Delete */ const de_DeleteEventSubscriptionResult = (output: any, context: __SerdeContext): DeleteEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -8276,8 +8176,8 @@ const de_DeleteEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_DeleteGlobalClusterResult = (output: any, context: __SerdeContext): DeleteGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -8290,11 +8190,8 @@ const de_DescribeDBClusterSnapshotAttributesResult = ( context: __SerdeContext ): DescribeDBClusterSnapshotAttributesResult => { const contents: any = {}; - if (output["DBClusterSnapshotAttributesResult"] !== undefined) { - contents.DBClusterSnapshotAttributesResult = de_DBClusterSnapshotAttributesResult( - output["DBClusterSnapshotAttributesResult"], - context - ); + if (output[_DBCSAR] != null) { + contents[_DBCSAR] = de_DBClusterSnapshotAttributesResult(output[_DBCSAR], context); } return contents; }; @@ -8307,8 +8204,8 @@ const de_DescribeEngineDefaultClusterParametersResult = ( context: __SerdeContext ): DescribeEngineDefaultClusterParametersResult => { const contents: any = {}; - if (output["EngineDefaults"] !== undefined) { - contents.EngineDefaults = de_EngineDefaults(output["EngineDefaults"], context); + if (output[_ED] != null) { + contents[_ED] = de_EngineDefaults(output[_ED], context); } return contents; }; @@ -8318,14 +8215,14 @@ const de_DescribeEngineDefaultClusterParametersResult = ( */ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { const contents: any = {}; - if (output["Address"] !== undefined) { - contents.Address = __expectString(output["Address"]); + if (output[_Ad] != null) { + contents[_Ad] = __expectString(output[_Ad]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } return contents; }; @@ -8335,16 +8232,16 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { */ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults => { const contents: any = {}; - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } return contents; }; @@ -8354,28 +8251,25 @@ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults */ const de_Event = (output: any, context: __SerdeContext): Event => { const contents: any = {}; - if (output["SourceIdentifier"] !== undefined) { - contents.SourceIdentifier = __expectString(output["SourceIdentifier"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Da] != null) { + contents[_Da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Da])); } - if (output["SourceArn"] !== undefined) { - contents.SourceArn = __expectString(output["SourceArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } return contents; }; @@ -8396,16 +8290,13 @@ const de_EventCategoriesList = (output: any, context: __SerdeContext): string[] */ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCategoriesMap => { const contents: any = {}; - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } return contents; }; @@ -8427,15 +8318,9 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; if (output.EventCategoriesMapList === "") { - contents.EventCategoriesMapList = []; - } else if ( - output["EventCategoriesMapList"] !== undefined && - output["EventCategoriesMapList"]["EventCategoriesMap"] !== undefined - ) { - contents.EventCategoriesMapList = de_EventCategoriesMapList( - __getArrayIfSingleItem(output["EventCategoriesMapList"]["EventCategoriesMap"]), - context - ); + contents[_ECML] = []; + } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { + contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); } return contents; }; @@ -8456,13 +8341,13 @@ const de_EventList = (output: any, context: __SerdeContext): Event[] => { */ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Events === "") { - contents.Events = []; - } else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Events"]["Event"]), context); + contents[_Ev] = []; + } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { + contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); } return contents; }; @@ -8472,45 +8357,39 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = */ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscription => { const contents: any = {}; - if (output["CustomerAwsId"] !== undefined) { - contents.CustomerAwsId = __expectString(output["CustomerAwsId"]); + if (output[_CAIu] != null) { + contents[_CAIu] = __expectString(output[_CAIu]); } - if (output["CustSubscriptionId"] !== undefined) { - contents.CustSubscriptionId = __expectString(output["CustSubscriptionId"]); + if (output[_CSI] != null) { + contents[_CSI] = __expectString(output[_CSI]); } - if (output["SnsTopicArn"] !== undefined) { - contents.SnsTopicArn = __expectString(output["SnsTopicArn"]); + if (output[_STA] != null) { + contents[_STA] = __expectString(output[_STA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["SubscriptionCreationTime"] !== undefined) { - contents.SubscriptionCreationTime = __expectString(output["SubscriptionCreationTime"]); + if (output[_SCTu] != null) { + contents[_SCTu] = __expectString(output[_SCTu]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } if (output.SourceIdsList === "") { - contents.SourceIdsList = []; - } else if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) { - contents.SourceIdsList = de_SourceIdsList(__getArrayIfSingleItem(output["SourceIdsList"]["SourceId"]), context); + contents[_SIL] = []; + } else if (output[_SIL] != null && output[_SIL][_SIou] != null) { + contents[_SIL] = de_SourceIdsList(__getArrayIfSingleItem(output[_SIL][_SIou]), context); } if (output.EventCategoriesList === "") { - contents.EventCategoriesList = []; - } else if ( - output["EventCategoriesList"] !== undefined && - output["EventCategoriesList"]["EventCategory"] !== undefined - ) { - contents.EventCategoriesList = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategoriesList"]["EventCategory"]), - context - ); + contents[_ECL] = []; + } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { + contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_En] != null) { + contents[_En] = __parseBoolean(output[_En]); } - if (output["EventSubscriptionArn"] !== undefined) { - contents.EventSubscriptionArn = __expectString(output["EventSubscriptionArn"]); + if (output[_ESA] != null) { + contents[_ESA] = __expectString(output[_ESA]); } return contents; }; @@ -8523,8 +8402,8 @@ const de_EventSubscriptionQuotaExceededFault = ( context: __SerdeContext ): EventSubscriptionQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8545,19 +8424,13 @@ const de_EventSubscriptionsList = (output: any, context: __SerdeContext): EventS */ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): EventSubscriptionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.EventSubscriptionsList === "") { - contents.EventSubscriptionsList = []; - } else if ( - output["EventSubscriptionsList"] !== undefined && - output["EventSubscriptionsList"]["EventSubscription"] !== undefined - ) { - contents.EventSubscriptionsList = de_EventSubscriptionsList( - __getArrayIfSingleItem(output["EventSubscriptionsList"]["EventSubscription"]), - context - ); + contents[_ESL] = []; + } else if (output[_ESL] != null && output[_ESL][_ES] != null) { + contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); } return contents; }; @@ -8567,8 +8440,8 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve */ const de_FailoverDBClusterResult = (output: any, context: __SerdeContext): FailoverDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -8578,43 +8451,37 @@ const de_FailoverDBClusterResult = (output: any, context: __SerdeContext): Failo */ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster => { const contents: any = {}; - if (output["GlobalClusterIdentifier"] !== undefined) { - contents.GlobalClusterIdentifier = __expectString(output["GlobalClusterIdentifier"]); + if (output[_GCI] != null) { + contents[_GCI] = __expectString(output[_GCI]); } - if (output["GlobalClusterResourceId"] !== undefined) { - contents.GlobalClusterResourceId = __expectString(output["GlobalClusterResourceId"]); + if (output[_GCRI] != null) { + contents[_GCRI] = __expectString(output[_GCRI]); } - if (output["GlobalClusterArn"] !== undefined) { - contents.GlobalClusterArn = __expectString(output["GlobalClusterArn"]); + if (output[_GCA] != null) { + contents[_GCA] = __expectString(output[_GCA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DatabaseName"] !== undefined) { - contents.DatabaseName = __expectString(output["DatabaseName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } if (output.GlobalClusterMembers === "") { - contents.GlobalClusterMembers = []; - } else if ( - output["GlobalClusterMembers"] !== undefined && - output["GlobalClusterMembers"]["GlobalClusterMember"] !== undefined - ) { - contents.GlobalClusterMembers = de_GlobalClusterMemberList( - __getArrayIfSingleItem(output["GlobalClusterMembers"]["GlobalClusterMember"]), - context - ); + contents[_GCM] = []; + } else if (output[_GCM] != null && output[_GCM][_GCMl] != null) { + contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context); } return contents; }; @@ -8624,8 +8491,8 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = */ const de_GlobalClusterAlreadyExistsFault = (output: any, context: __SerdeContext): GlobalClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8646,16 +8513,16 @@ const de_GlobalClusterList = (output: any, context: __SerdeContext): GlobalClust */ const de_GlobalClusterMember = (output: any, context: __SerdeContext): GlobalClusterMember => { const contents: any = {}; - if (output["DBClusterArn"] !== undefined) { - contents.DBClusterArn = __expectString(output["DBClusterArn"]); + if (output[_DBCA] != null) { + contents[_DBCA] = __expectString(output[_DBCA]); } if (output.Readers === "") { - contents.Readers = []; - } else if (output["Readers"] !== undefined && output["Readers"]["member"] !== undefined) { - contents.Readers = de_ReadersArnList(__getArrayIfSingleItem(output["Readers"]["member"]), context); + contents[_R] = []; + } else if (output[_R] != null && output[_R][_me] != null) { + contents[_R] = de_ReadersArnList(__getArrayIfSingleItem(output[_R][_me]), context); } - if (output["IsWriter"] !== undefined) { - contents.IsWriter = __parseBoolean(output["IsWriter"]); + if (output[_IW] != null) { + contents[_IW] = __parseBoolean(output[_IW]); } return contents; }; @@ -8676,8 +8543,8 @@ const de_GlobalClusterMemberList = (output: any, context: __SerdeContext): Globa */ const de_GlobalClusterNotFoundFault = (output: any, context: __SerdeContext): GlobalClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8687,8 +8554,8 @@ const de_GlobalClusterNotFoundFault = (output: any, context: __SerdeContext): Gl */ const de_GlobalClusterQuotaExceededFault = (output: any, context: __SerdeContext): GlobalClusterQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8698,16 +8565,13 @@ const de_GlobalClusterQuotaExceededFault = (output: any, context: __SerdeContext */ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalClustersMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.GlobalClusters === "") { - contents.GlobalClusters = []; - } else if (output["GlobalClusters"] !== undefined && output["GlobalClusters"]["GlobalClusterMember"] !== undefined) { - contents.GlobalClusters = de_GlobalClusterList( - __getArrayIfSingleItem(output["GlobalClusters"]["GlobalClusterMember"]), - context - ); + contents[_GCl] = []; + } else if (output[_GCl] != null && output[_GCl][_GCMl] != null) { + contents[_GCl] = de_GlobalClusterList(__getArrayIfSingleItem(output[_GCl][_GCMl]), context); } return contents; }; @@ -8717,8 +8581,8 @@ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalC */ const de_InstanceQuotaExceededFault = (output: any, context: __SerdeContext): InstanceQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8731,8 +8595,8 @@ const de_InsufficientDBClusterCapacityFault = ( context: __SerdeContext ): InsufficientDBClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8745,8 +8609,8 @@ const de_InsufficientDBInstanceCapacityFault = ( context: __SerdeContext ): InsufficientDBInstanceCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8759,8 +8623,8 @@ const de_InsufficientStorageClusterCapacityFault = ( context: __SerdeContext ): InsufficientStorageClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8773,8 +8637,8 @@ const de_InvalidDBClusterSnapshotStateFault = ( context: __SerdeContext ): InvalidDBClusterSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8784,8 +8648,8 @@ const de_InvalidDBClusterSnapshotStateFault = ( */ const de_InvalidDBClusterStateFault = (output: any, context: __SerdeContext): InvalidDBClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8795,8 +8659,8 @@ const de_InvalidDBClusterStateFault = (output: any, context: __SerdeContext): In */ const de_InvalidDBInstanceStateFault = (output: any, context: __SerdeContext): InvalidDBInstanceStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8809,8 +8673,8 @@ const de_InvalidDBParameterGroupStateFault = ( context: __SerdeContext ): InvalidDBParameterGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8823,8 +8687,8 @@ const de_InvalidDBSecurityGroupStateFault = ( context: __SerdeContext ): InvalidDBSecurityGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8834,8 +8698,8 @@ const de_InvalidDBSecurityGroupStateFault = ( */ const de_InvalidDBSnapshotStateFault = (output: any, context: __SerdeContext): InvalidDBSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8845,8 +8709,8 @@ const de_InvalidDBSnapshotStateFault = (output: any, context: __SerdeContext): I */ const de_InvalidDBSubnetGroupStateFault = (output: any, context: __SerdeContext): InvalidDBSubnetGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8856,8 +8720,8 @@ const de_InvalidDBSubnetGroupStateFault = (output: any, context: __SerdeContext) */ const de_InvalidDBSubnetStateFault = (output: any, context: __SerdeContext): InvalidDBSubnetStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8870,8 +8734,8 @@ const de_InvalidEventSubscriptionStateFault = ( context: __SerdeContext ): InvalidEventSubscriptionStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8881,8 +8745,8 @@ const de_InvalidEventSubscriptionStateFault = ( */ const de_InvalidGlobalClusterStateFault = (output: any, context: __SerdeContext): InvalidGlobalClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8892,8 +8756,8 @@ const de_InvalidGlobalClusterStateFault = (output: any, context: __SerdeContext) */ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRestoreFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8903,8 +8767,8 @@ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRe */ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8914,8 +8778,8 @@ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet = */ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): InvalidVPCNetworkStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8925,8 +8789,8 @@ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): I */ const de_KMSKeyNotAccessibleFault = (output: any, context: __SerdeContext): KMSKeyNotAccessibleFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8947,8 +8811,8 @@ const de_LogTypeList = (output: any, context: __SerdeContext): string[] => { */ const de_ModifyDBClusterResult = (output: any, context: __SerdeContext): ModifyDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -8961,11 +8825,8 @@ const de_ModifyDBClusterSnapshotAttributeResult = ( context: __SerdeContext ): ModifyDBClusterSnapshotAttributeResult => { const contents: any = {}; - if (output["DBClusterSnapshotAttributesResult"] !== undefined) { - contents.DBClusterSnapshotAttributesResult = de_DBClusterSnapshotAttributesResult( - output["DBClusterSnapshotAttributesResult"], - context - ); + if (output[_DBCSAR] != null) { + contents[_DBCSAR] = de_DBClusterSnapshotAttributesResult(output[_DBCSAR], context); } return contents; }; @@ -8975,8 +8836,8 @@ const de_ModifyDBClusterSnapshotAttributeResult = ( */ const de_ModifyDBInstanceResult = (output: any, context: __SerdeContext): ModifyDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -8986,8 +8847,8 @@ const de_ModifyDBInstanceResult = (output: any, context: __SerdeContext): Modify */ const de_ModifyDBSubnetGroupResult = (output: any, context: __SerdeContext): ModifyDBSubnetGroupResult => { const contents: any = {}; - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSG] != null) { + contents[_DBSG] = de_DBSubnetGroup(output[_DBSG], context); } return contents; }; @@ -8997,8 +8858,8 @@ const de_ModifyDBSubnetGroupResult = (output: any, context: __SerdeContext): Mod */ const de_ModifyEventSubscriptionResult = (output: any, context: __SerdeContext): ModifyEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -9008,8 +8869,8 @@ const de_ModifyEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_ModifyGlobalClusterResult = (output: any, context: __SerdeContext): ModifyGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -9019,34 +8880,28 @@ const de_ModifyGlobalClusterResult = (output: any, context: __SerdeContext): Mod */ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): OrderableDBInstanceOption => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZoneList( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["Vpc"] !== undefined) { - contents.Vpc = __parseBoolean(output["Vpc"]); + if (output[_Vp] != null) { + contents[_Vp] = __parseBoolean(output[_Vp]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } return contents; }; @@ -9071,18 +8926,12 @@ const de_OrderableDBInstanceOptionsMessage = ( ): OrderableDBInstanceOptionsMessage => { const contents: any = {}; if (output.OrderableDBInstanceOptions === "") { - contents.OrderableDBInstanceOptions = []; - } else if ( - output["OrderableDBInstanceOptions"] !== undefined && - output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"] !== undefined - ) { - contents.OrderableDBInstanceOptions = de_OrderableDBInstanceOptionsList( - __getArrayIfSingleItem(output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"]), - context - ); + contents[_ODBIO] = []; + } else if (output[_ODBIO] != null && output[_ODBIO][_ODBIOr] != null) { + contents[_ODBIO] = de_OrderableDBInstanceOptionsList(__getArrayIfSingleItem(output[_ODBIO][_ODBIOr]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9092,35 +8941,35 @@ const de_OrderableDBInstanceOptionsMessage = ( */ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { const contents: any = {}; - if (output["ParameterName"] !== undefined) { - contents.ParameterName = __expectString(output["ParameterName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["ParameterValue"] !== undefined) { - contents.ParameterValue = __expectString(output["ParameterValue"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Source"] !== undefined) { - contents.Source = __expectString(output["Source"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["ApplyType"] !== undefined) { - contents.ApplyType = __expectString(output["ApplyType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["DataType"] !== undefined) { - contents.DataType = __expectString(output["DataType"]); + if (output[_DT] != null) { + contents[_DT] = __expectString(output[_DT]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } - if (output["ApplyMethod"] !== undefined) { - contents.ApplyMethod = __expectString(output["ApplyMethod"]); + if (output[_AM] != null) { + contents[_AM] = __expectString(output[_AM]); } return contents; }; @@ -9142,14 +8991,14 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): PendingCloudwatchLogsExports => { const contents: any = {}; if (output.LogTypesToEnable === "") { - contents.LogTypesToEnable = []; - } else if (output["LogTypesToEnable"] !== undefined && output["LogTypesToEnable"]["member"] !== undefined) { - contents.LogTypesToEnable = de_LogTypeList(__getArrayIfSingleItem(output["LogTypesToEnable"]["member"]), context); + contents[_LTTE] = []; + } else if (output[_LTTE] != null && output[_LTTE][_me] != null) { + contents[_LTTE] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTE][_me]), context); } if (output.LogTypesToDisable === "") { - contents.LogTypesToDisable = []; - } else if (output["LogTypesToDisable"] !== undefined && output["LogTypesToDisable"]["member"] !== undefined) { - contents.LogTypesToDisable = de_LogTypeList(__getArrayIfSingleItem(output["LogTypesToDisable"]["member"]), context); + contents[_LTTD] = []; + } else if (output[_LTTD] != null && output[_LTTD][_me] != null) { + contents[_LTTD] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTD][_me]), context); } return contents; }; @@ -9159,23 +9008,23 @@ const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): */ const de_PendingMaintenanceAction = (output: any, context: __SerdeContext): PendingMaintenanceAction => { const contents: any = {}; - if (output["Action"] !== undefined) { - contents.Action = __expectString(output["Action"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["AutoAppliedAfterDate"] !== undefined) { - contents.AutoAppliedAfterDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AutoAppliedAfterDate"])); + if (output[_AAAD] != null) { + contents[_AAAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_AAAD])); } - if (output["ForcedApplyDate"] !== undefined) { - contents.ForcedApplyDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ForcedApplyDate"])); + if (output[_FAD] != null) { + contents[_FAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_FAD])); } - if (output["OptInStatus"] !== undefined) { - contents.OptInStatus = __expectString(output["OptInStatus"]); + if (output[_OIS] != null) { + contents[_OIS] = __expectString(output[_OIS]); } - if (output["CurrentApplyDate"] !== undefined) { - contents.CurrentApplyDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CurrentApplyDate"])); + if (output[_CAD] != null) { + contents[_CAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CAD])); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -9211,18 +9060,12 @@ const de_PendingMaintenanceActionsMessage = ( ): PendingMaintenanceActionsMessage => { const contents: any = {}; if (output.PendingMaintenanceActions === "") { - contents.PendingMaintenanceActions = []; - } else if ( - output["PendingMaintenanceActions"] !== undefined && - output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"] !== undefined - ) { - contents.PendingMaintenanceActions = de_PendingMaintenanceActions( - __getArrayIfSingleItem(output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"]), - context - ); + contents[_PMA] = []; + } else if (output[_PMA] != null && output[_PMA][_RPMA] != null) { + contents[_PMA] = de_PendingMaintenanceActions(__getArrayIfSingleItem(output[_PMA][_RPMA]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9232,50 +9075,47 @@ const de_PendingMaintenanceActionsMessage = ( */ const de_PendingModifiedValues = (output: any, context: __SerdeContext): PendingModifiedValues => { const contents: any = {}; - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["MasterUserPassword"] !== undefined) { - contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); + if (output[_MUP] != null) { + contents[_MUP] = __expectString(output[_MUP]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["CACertificateIdentifier"] !== undefined) { - contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]); + if (output[_CACI] != null) { + contents[_CACI] = __expectString(output[_CACI]); } - if (output["DBSubnetGroupName"] !== undefined) { - contents.DBSubnetGroupName = __expectString(output["DBSubnetGroupName"]); + if (output[_DBSGN] != null) { + contents[_DBSGN] = __expectString(output[_DBSGN]); } - if (output["PendingCloudwatchLogsExports"] !== undefined) { - contents.PendingCloudwatchLogsExports = de_PendingCloudwatchLogsExports( - output["PendingCloudwatchLogsExports"], - context - ); + if (output[_PCLE] != null) { + contents[_PCLE] = de_PendingCloudwatchLogsExports(output[_PCLE], context); } return contents; }; @@ -9307,8 +9147,8 @@ const de_ReadReplicaIdentifierList = (output: any, context: __SerdeContext): str */ const de_RebootDBInstanceResult = (output: any, context: __SerdeContext): RebootDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -9318,8 +9158,8 @@ const de_RebootDBInstanceResult = (output: any, context: __SerdeContext): Reboot */ const de_RemoveFromGlobalClusterResult = (output: any, context: __SerdeContext): RemoveFromGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -9332,8 +9172,8 @@ const de_RemoveSourceIdentifierFromSubscriptionResult = ( context: __SerdeContext ): RemoveSourceIdentifierFromSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -9343,8 +9183,8 @@ const de_RemoveSourceIdentifierFromSubscriptionResult = ( */ const de_ResourceNotFoundFault = (output: any, context: __SerdeContext): ResourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9357,19 +9197,13 @@ const de_ResourcePendingMaintenanceActions = ( context: __SerdeContext ): ResourcePendingMaintenanceActions => { const contents: any = {}; - if (output["ResourceIdentifier"] !== undefined) { - contents.ResourceIdentifier = __expectString(output["ResourceIdentifier"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } if (output.PendingMaintenanceActionDetails === "") { - contents.PendingMaintenanceActionDetails = []; - } else if ( - output["PendingMaintenanceActionDetails"] !== undefined && - output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"] !== undefined - ) { - contents.PendingMaintenanceActionDetails = de_PendingMaintenanceActionDetails( - __getArrayIfSingleItem(output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"]), - context - ); + contents[_PMAD] = []; + } else if (output[_PMAD] != null && output[_PMAD][_PMAe] != null) { + contents[_PMAD] = de_PendingMaintenanceActionDetails(__getArrayIfSingleItem(output[_PMAD][_PMAe]), context); } return contents; }; @@ -9382,8 +9216,8 @@ const de_RestoreDBClusterFromSnapshotResult = ( context: __SerdeContext ): RestoreDBClusterFromSnapshotResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -9396,8 +9230,8 @@ const de_RestoreDBClusterToPointInTimeResult = ( context: __SerdeContext ): RestoreDBClusterToPointInTimeResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -9410,8 +9244,8 @@ const de_SharedSnapshotQuotaExceededFault = ( context: __SerdeContext ): SharedSnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9421,8 +9255,8 @@ const de_SharedSnapshotQuotaExceededFault = ( */ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): SnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9432,8 +9266,8 @@ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): Sn */ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInvalidTopicFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9443,8 +9277,8 @@ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInval */ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNoAuthorizationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9454,8 +9288,8 @@ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNo */ const de_SNSTopicArnNotFoundFault = (output: any, context: __SerdeContext): SNSTopicArnNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9476,8 +9310,8 @@ const de_SourceIdsList = (output: any, context: __SerdeContext): string[] => { */ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9487,8 +9321,8 @@ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNot */ const de_StartDBClusterResult = (output: any, context: __SerdeContext): StartDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -9498,8 +9332,8 @@ const de_StartDBClusterResult = (output: any, context: __SerdeContext): StartDBC */ const de_StopDBClusterResult = (output: any, context: __SerdeContext): StopDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -9509,8 +9343,8 @@ const de_StopDBClusterResult = (output: any, context: __SerdeContext): StopDBClu */ const de_StorageQuotaExceededFault = (output: any, context: __SerdeContext): StorageQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9520,8 +9354,8 @@ const de_StorageQuotaExceededFault = (output: any, context: __SerdeContext): Sto */ const de_StorageTypeNotSupportedFault = (output: any, context: __SerdeContext): StorageTypeNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9531,14 +9365,14 @@ const de_StorageTypeNotSupportedFault = (output: any, context: __SerdeContext): */ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { const contents: any = {}; - if (output["SubnetIdentifier"] !== undefined) { - contents.SubnetIdentifier = __expectString(output["SubnetIdentifier"]); + if (output[_SIub] != null) { + contents[_SIub] = __expectString(output[_SIub]); } - if (output["SubnetAvailabilityZone"] !== undefined) { - contents.SubnetAvailabilityZone = de_AvailabilityZone(output["SubnetAvailabilityZone"], context); + if (output[_SAZ] != null) { + contents[_SAZ] = de_AvailabilityZone(output[_SAZ], context); } - if (output["SubnetStatus"] !== undefined) { - contents.SubnetStatus = __expectString(output["SubnetStatus"]); + if (output[_SS] != null) { + contents[_SS] = __expectString(output[_SS]); } return contents; }; @@ -9548,8 +9382,8 @@ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { */ const de_SubnetAlreadyInUse = (output: any, context: __SerdeContext): SubnetAlreadyInUse => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9570,8 +9404,8 @@ const de_SubnetList = (output: any, context: __SerdeContext): Subnet[] => { */ const de_SubscriptionAlreadyExistFault = (output: any, context: __SerdeContext): SubscriptionAlreadyExistFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9584,8 +9418,8 @@ const de_SubscriptionCategoryNotFoundFault = ( context: __SerdeContext ): SubscriptionCategoryNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9595,8 +9429,8 @@ const de_SubscriptionCategoryNotFoundFault = ( */ const de_SubscriptionNotFoundFault = (output: any, context: __SerdeContext): SubscriptionNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9606,11 +9440,11 @@ const de_SubscriptionNotFoundFault = (output: any, context: __SerdeContext): Sub */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -9632,9 +9466,9 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Ta] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Ta]), context); } return contents; }; @@ -9644,20 +9478,20 @@ const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage */ const de_UpgradeTarget = (output: any, context: __SerdeContext): UpgradeTarget => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["AutoUpgrade"] !== undefined) { - contents.AutoUpgrade = __parseBoolean(output["AutoUpgrade"]); + if (output[_AU] != null) { + contents[_AU] = __parseBoolean(output[_AU]); } - if (output["IsMajorVersionUpgrade"] !== undefined) { - contents.IsMajorVersionUpgrade = __parseBoolean(output["IsMajorVersionUpgrade"]); + if (output[_IMVU] != null) { + contents[_IMVU] = __parseBoolean(output[_IMVU]); } return contents; }; @@ -9678,11 +9512,11 @@ const de_ValidUpgradeTargetList = (output: any, context: __SerdeContext): Upgrad */ const de_VpcSecurityGroupMembership = (output: any, context: __SerdeContext): VpcSecurityGroupMembership => { const contents: any = {}; - if (output["VpcSecurityGroupId"] !== undefined) { - contents.VpcSecurityGroupId = __expectString(output["VpcSecurityGroupId"]); + if (output[_VSGIp] != null) { + contents[_VSGIp] = __expectString(output[_VSGIp]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -9739,6 +9573,300 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2014-10-31"; +const _A = "Action"; +const _AA = "ApplyAction"; +const _AAAD = "AutoAppliedAfterDate"; +const _AI = "ApplyImmediately"; +const _AM = "ApplyMethod"; +const _AMVU = "AutoMinorVersionUpgrade"; +const _AMVUl = "AllowMajorVersionUpgrade"; +const _AN = "AttributeName"; +const _APMA = "ApplyPendingMaintenanceAction"; +const _AR = "AssociatedRoles"; +const _AS = "AllocatedStorage"; +const _ASITS = "AddSourceIdentifierToSubscription"; +const _AT = "ApplyType"; +const _ATTR = "AddTagsToResource"; +const _AU = "AutoUpgrade"; +const _AV = "AllowedValues"; +const _AVt = "AttributeValues"; +const _AVtt = "AttributeValue"; +const _AZ = "AvailabilityZones"; +const _AZv = "AvailabilityZone"; +const _Ad = "Address"; +const _BRP = "BackupRetentionPeriod"; +const _C = "Certificates"; +const _CA = "CertificateArn"; +const _CACI = "CACertificateIdentifier"; +const _CAD = "CurrentApplyDate"; +const _CAI = "CAIdentifier"; +const _CAIu = "CustomerAwsId"; +const _CCT = "ClusterCreateTime"; +const _CD = "CertificateDetails"; +const _CDBC = "CreateDBCluster"; +const _CDBCPG = "CopyDBClusterParameterGroup"; +const _CDBCPGr = "CreateDBClusterParameterGroup"; +const _CDBCS = "CopyDBClusterSnapshot"; +const _CDBCSr = "CreateDBClusterSnapshot"; +const _CDBI = "CreateDBInstance"; +const _CDBSG = "CreateDBSubnetGroup"; +const _CES = "CreateEventSubscription"; +const _CGC = "CreateGlobalCluster"; +const _CGI = "CloneGroupId"; +const _CI = "CertificateIdentifier"; +const _CLEC = "CloudwatchLogsExportConfiguration"; +const _CRR = "CertificateRotationRestart"; +const _CSI = "CustSubscriptionId"; +const _CT = "CopyTags"; +const _CTTS = "CopyTagsToSnapshot"; +const _CTe = "CertificateType"; +const _Ce = "Certificate"; +const _D = "Description"; +const _DBC = "DBCluster"; +const _DBCA = "DBClusterArn"; +const _DBCI = "DBClusterIdentifier"; +const _DBCM = "DBClusterMembers"; +const _DBCMl = "DBClusterMember"; +const _DBCPG = "DBClusterParameterGroup"; +const _DBCPGA = "DBClusterParameterGroupArn"; +const _DBCPGN = "DBClusterParameterGroupName"; +const _DBCPGS = "DBClusterParameterGroupStatus"; +const _DBCPGl = "DBClusterParameterGroups"; +const _DBCR = "DBClusterRole"; +const _DBCS = "DBClusterSnapshot"; +const _DBCSA = "DBClusterSnapshotArn"; +const _DBCSAR = "DBClusterSnapshotAttributesResult"; +const _DBCSAl = "DBClusterSnapshotAttributes"; +const _DBCSAlu = "DBClusterSnapshotAttribute"; +const _DBCSI = "DBClusterSnapshotIdentifier"; +const _DBCSl = "DBClusterSnapshots"; +const _DBCl = "DBClusters"; +const _DBED = "DBEngineDescription"; +const _DBEV = "DBEngineVersions"; +const _DBEVD = "DBEngineVersionDescription"; +const _DBEVn = "DBEngineVersion"; +const _DBI = "DBInstance"; +const _DBIA = "DBInstanceArn"; +const _DBIC = "DBInstanceClass"; +const _DBII = "DBInstanceIdentifier"; +const _DBIS = "DBInstanceStatus"; +const _DBISI = "DBInstanceStatusInfo"; +const _DBIn = "DBInstances"; +const _DBPGF = "DBParameterGroupFamily"; +const _DBSG = "DBSubnetGroup"; +const _DBSGA = "DBSubnetGroupArn"; +const _DBSGD = "DBSubnetGroupDescription"; +const _DBSGN = "DBSubnetGroupName"; +const _DBSGu = "DBSubnetGroups"; +const _DC = "DescribeCertificates"; +const _DCI = "DbClusterIdentifier"; +const _DCRI = "DbClusterResourceId"; +const _DDBC = "DeleteDBCluster"; +const _DDBCP = "DescribeDBClusterParameters"; +const _DDBCPG = "DeleteDBClusterParameterGroup"; +const _DDBCPGe = "DescribeDBClusterParameterGroups"; +const _DDBCS = "DeleteDBClusterSnapshot"; +const _DDBCSA = "DescribeDBClusterSnapshotAttributes"; +const _DDBCSe = "DescribeDBClusterSnapshots"; +const _DDBCe = "DescribeDBClusters"; +const _DDBEV = "DescribeDBEngineVersions"; +const _DDBI = "DeleteDBInstance"; +const _DDBIe = "DescribeDBInstances"; +const _DDBSG = "DeleteDBSubnetGroup"; +const _DDBSGe = "DescribeDBSubnetGroups"; +const _DE = "DescribeEvents"; +const _DEC = "DescribeEventCategories"; +const _DEDCP = "DescribeEngineDefaultClusterParameters"; +const _DES = "DeleteEventSubscription"; +const _DESe = "DescribeEventSubscriptions"; +const _DGC = "DeleteGlobalCluster"; +const _DGCe = "DescribeGlobalClusters"; +const _DLT = "DisableLogTypes"; +const _DN = "DatabaseName"; +const _DO = "DefaultOnly"; +const _DODBIO = "DescribeOrderableDBInstanceOptions"; +const _DP = "DeletionProtection"; +const _DPMA = "DescribePendingMaintenanceActions"; +const _DRI = "DbiResourceId"; +const _DT = "DataType"; +const _Da = "Date"; +const _Du = "Duration"; +const _E = "Engine"; +const _EC = "EventCategories"; +const _ECL = "EventCategoriesList"; +const _ECLE = "EnableCloudwatchLogsExports"; +const _ECLEn = "EnabledCloudwatchLogsExports"; +const _ECM = "EventCategoriesMap"; +const _ECML = "EventCategoriesMapList"; +const _ECv = "EventCategory"; +const _ED = "EngineDefaults"; +const _ELT = "EnableLogTypes"; +const _ELTx = "ExportableLogTypes"; +const _EPI = "EnablePerformanceInsights"; +const _ERT = "EarliestRestorableTime"; +const _ES = "EventSubscription"; +const _ESA = "EventSubscriptionArn"; +const _ESL = "EventSubscriptionsList"; +const _ET = "EndTime"; +const _EV = "EngineVersion"; +const _En = "Enabled"; +const _End = "Endpoint"; +const _Ev = "Events"; +const _Eve = "Event"; +const _F = "Filters"; +const _FAD = "ForcedApplyDate"; +const _FDBC = "FailoverDBCluster"; +const _FDBSI = "FinalDBSnapshotIdentifier"; +const _FF = "ForceFailover"; +const _GC = "GlobalCluster"; +const _GCA = "GlobalClusterArn"; +const _GCI = "GlobalClusterIdentifier"; +const _GCM = "GlobalClusterMembers"; +const _GCMl = "GlobalClusterMember"; +const _GCRI = "GlobalClusterResourceId"; +const _GCl = "GlobalClusters"; +const _HZI = "HostedZoneId"; +const _I = "Iops"; +const _ICT = "InstanceCreateTime"; +const _ICW = "IsClusterWriter"; +const _IM = "IsModifiable"; +const _IMVU = "IsMajorVersionUpgrade"; +const _IP = "IncludePublic"; +const _IS = "IncludeShared"; +const _IW = "IsWriter"; +const _K = "Key"; +const _KKI = "KmsKeyId"; +const _LM = "LicenseModel"; +const _LRT = "LatestRestorableTime"; +const _LSCS = "ListSupportedCharacterSets"; +const _LST = "ListSupportedTimezones"; +const _LTFR = "ListTagsForResource"; +const _LTTD = "LogTypesToDisable"; +const _LTTE = "LogTypesToEnable"; +const _M = "Marker"; +const _MAZ = "MultiAZ"; +const _MDBC = "ModifyDBCluster"; +const _MDBCPG = "ModifyDBClusterParameterGroup"; +const _MDBCSA = "ModifyDBClusterSnapshotAttribute"; +const _MDBI = "ModifyDBInstance"; +const _MDBSG = "ModifyDBSubnetGroup"; +const _MES = "ModifyEventSubscription"; +const _MEV = "MinimumEngineVersion"; +const _MGC = "ModifyGlobalCluster"; +const _MR = "MaxRecords"; +const _MU = "MasterUsername"; +const _MUP = "MasterUserPassword"; +const _Me = "Message"; +const _N = "Name"; +const _NDBCI = "NewDBClusterIdentifier"; +const _NDBII = "NewDBInstanceIdentifier"; +const _NGCI = "NewGlobalClusterIdentifier"; +const _No = "Normal"; +const _ODBIO = "OrderableDBInstanceOptions"; +const _ODBIOr = "OrderableDBInstanceOption"; +const _OIS = "OptInStatus"; +const _OIT = "OptInType"; +const _P = "Port"; +const _PA = "PubliclyAccessible"; +const _PBW = "PreferredBackupWindow"; +const _PCLE = "PendingCloudwatchLogsExports"; +const _PIKMSKI = "PerformanceInsightsKMSKeyId"; +const _PMA = "PendingMaintenanceActions"; +const _PMAD = "PendingMaintenanceActionDetails"; +const _PMAe = "PendingMaintenanceAction"; +const _PMV = "PendingModifiedValues"; +const _PMW = "PreferredMaintenanceWindow"; +const _PN = "ParameterName"; +const _PP = "PercentProgress"; +const _PSU = "PreSignedUrl"; +const _PT = "PromotionTier"; +const _PV = "ParameterValue"; +const _Pa = "Parameters"; +const _Par = "Parameter"; +const _R = "Readers"; +const _RA = "RoleArn"; +const _RAP = "ResetAllParameters"; +const _RDBCFS = "RestoreDBClusterFromSnapshot"; +const _RDBCPG = "ResetDBClusterParameterGroup"; +const _RDBCTPIT = "RestoreDBClusterToPointInTime"; +const _RDBI = "RebootDBInstance"; +const _RE = "ReaderEndpoint"; +const _RFGC = "RemoveFromGlobalCluster"; +const _RI = "ResourceIdentifier"; +const _RN = "ResourceName"; +const _RPMA = "ResourcePendingMaintenanceActions"; +const _RRI = "ReadReplicaIdentifiers"; +const _RRIe = "ReadReplicaIdentifier"; +const _RSI = "ReplicationSourceIdentifier"; +const _RSIFS = "RemoveSourceIdentifierFromSubscription"; +const _RT = "RestoreType"; +const _RTFR = "RemoveTagsFromResource"; +const _RTT = "RestoreToTime"; +const _S = "Source"; +const _SA = "SourceArn"; +const _SAZ = "SubnetAvailabilityZone"; +const _SCACI = "SupportedCACertificateIdentifiers"; +const _SCRWR = "SupportsCertificateRotationWithoutRestart"; +const _SCT = "SnapshotCreateTime"; +const _SCTu = "SubscriptionCreationTime"; +const _SDBC = "StartDBCluster"; +const _SDBCI = "SourceDBClusterIdentifier"; +const _SDBCPGI = "SourceDBClusterParameterGroupIdentifier"; +const _SDBCSA = "SourceDBClusterSnapshotArn"; +const _SDBCSI = "SourceDBClusterSnapshotIdentifier"; +const _SDBCt = "StopDBCluster"; +const _SE = "StorageEncrypted"; +const _SFS = "SkipFinalSnapshot"; +const _SGS = "SubnetGroupStatus"; +const _SI = "SourceIdentifier"; +const _SIL = "SourceIdsList"; +const _SIn = "SnapshotIdentifier"; +const _SIo = "SourceIds"; +const _SIou = "SourceId"; +const _SIt = "StatusInfos"; +const _SIu = "SubnetIds"; +const _SIub = "SubnetIdentifier"; +const _SLETCL = "SupportsLogExportsToCloudwatchLogs"; +const _SN = "SubscriptionName"; +const _SS = "SubnetStatus"; +const _ST = "StorageType"; +const _STA = "SnsTopicArn"; +const _STn = "SnapshotType"; +const _STo = "SourceType"; +const _STt = "StartTime"; +const _STta = "StatusType"; +const _St = "Status"; +const _Su = "Subnets"; +const _Sub = "Subnet"; +const _T = "Tags"; +const _TDBCPGD = "TargetDBClusterParameterGroupDescription"; +const _TDBCPGI = "TargetDBClusterParameterGroupIdentifier"; +const _TDBCSI = "TargetDBClusterSnapshotIdentifier"; +const _TDBII = "TargetDBInstanceIdentifier"; +const _TK = "TagKeys"; +const _TL = "TagList"; +const _Ta = "Tag"; +const _Th = "Thumbprint"; +const _ULRT = "UseLatestRestorableTime"; +const _UT = "UpgradeTarget"; +const _V = "Version"; +const _VF = "ValidFrom"; +const _VI = "VpcId"; +const _VSG = "VpcSecurityGroups"; +const _VSGI = "VpcSecurityGroupIds"; +const _VSGIp = "VpcSecurityGroupId"; +const _VSGM = "VpcSecurityGroupMembership"; +const _VT = "ValidTill"; +const _VTA = "ValuesToAdd"; +const _VTR = "ValuesToRemove"; +const _VUT = "ValidUpgradeTarget"; +const _Va = "Values"; +const _Val = "Value"; +const _Vp = "Vpc"; +const _m = "message"; +const _me = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-drs/package.json b/clients/client-drs/package.json index 41f3637d139c..80bbb2cb9306 100644 --- a/clients/client-drs/package.json +++ b/clients/client-drs/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-drs/src/protocols/Aws_restJson1.ts b/clients/client-drs/src/protocols/Aws_restJson1.ts index 7e013540a413..737f5636047c 100644 --- a/clients/client-drs/src/protocols/Aws_restJson1.ts +++ b/clients/client-drs/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -216,12 +217,11 @@ export const se_AssociateSourceNetworkStackCommand = async ( input: AssociateSourceNetworkStackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateSourceNetworkStack"; + b.bp("/AssociateSourceNetworkStack"); let body: any; body = JSON.stringify( take(input, { @@ -229,15 +229,8 @@ export const se_AssociateSourceNetworkStackCommand = async ( sourceNetworkID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -247,12 +240,11 @@ export const se_CreateExtendedSourceServerCommand = async ( input: CreateExtendedSourceServerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateExtendedSourceServer"; + b.bp("/CreateExtendedSourceServer"); let body: any; body = JSON.stringify( take(input, { @@ -260,15 +252,8 @@ export const se_CreateExtendedSourceServerCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -278,12 +263,11 @@ export const se_CreateLaunchConfigurationTemplateCommand = async ( input: CreateLaunchConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLaunchConfigurationTemplate"; + b.bp("/CreateLaunchConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -298,15 +282,8 @@ export const se_CreateLaunchConfigurationTemplateCommand = async ( targetInstanceTypeRightSizingMethod: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -316,12 +293,11 @@ export const se_CreateReplicationConfigurationTemplateCommand = async ( input: CreateReplicationConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateReplicationConfigurationTemplate"; + b.bp("/CreateReplicationConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -342,15 +318,8 @@ export const se_CreateReplicationConfigurationTemplateCommand = async ( useDedicatedReplicationServer: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -360,11 +329,11 @@ export const se_CreateSourceNetworkCommand = async ( input: CreateSourceNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSourceNetwork"; + b.bp("/CreateSourceNetwork"); let body: any; body = JSON.stringify( take(input, { @@ -374,15 +343,8 @@ export const se_CreateSourceNetworkCommand = async ( vpcID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -392,26 +354,19 @@ export const se_DeleteJobCommand = async ( input: DeleteJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob"; + b.bp("/DeleteJob"); let body: any; body = JSON.stringify( take(input, { jobID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -421,11 +376,11 @@ export const se_DeleteLaunchActionCommand = async ( input: DeleteLaunchActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchAction"; + b.bp("/DeleteLaunchAction"); let body: any; body = JSON.stringify( take(input, { @@ -433,15 +388,8 @@ export const se_DeleteLaunchActionCommand = async ( resourceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -451,27 +399,19 @@ export const se_DeleteLaunchConfigurationTemplateCommand = async ( input: DeleteLaunchConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchConfigurationTemplate"; + b.bp("/DeleteLaunchConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { launchConfigurationTemplateID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -481,27 +421,19 @@ export const se_DeleteRecoveryInstanceCommand = async ( input: DeleteRecoveryInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecoveryInstance"; + b.bp("/DeleteRecoveryInstance"); let body: any; body = JSON.stringify( take(input, { recoveryInstanceID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -511,27 +443,19 @@ export const se_DeleteReplicationConfigurationTemplateCommand = async ( input: DeleteReplicationConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteReplicationConfigurationTemplate"; + b.bp("/DeleteReplicationConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { replicationConfigurationTemplateID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -541,26 +465,19 @@ export const se_DeleteSourceNetworkCommand = async ( input: DeleteSourceNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceNetwork"; + b.bp("/DeleteSourceNetwork"); let body: any; body = JSON.stringify( take(input, { sourceNetworkID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -570,26 +487,19 @@ export const se_DeleteSourceServerCommand = async ( input: DeleteSourceServerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer"; + b.bp("/DeleteSourceServer"); let body: any; body = JSON.stringify( take(input, { sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -599,11 +509,11 @@ export const se_DescribeJobLogItemsCommand = async ( input: DescribeJobLogItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems"; + b.bp("/DescribeJobLogItems"); let body: any; body = JSON.stringify( take(input, { @@ -612,15 +522,8 @@ export const se_DescribeJobLogItemsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -630,11 +533,11 @@ export const se_DescribeJobsCommand = async ( input: DescribeJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs"; + b.bp("/DescribeJobs"); let body: any; body = JSON.stringify( take(input, { @@ -643,15 +546,8 @@ export const se_DescribeJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -661,12 +557,11 @@ export const se_DescribeLaunchConfigurationTemplatesCommand = async ( input: DescribeLaunchConfigurationTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeLaunchConfigurationTemplates"; + b.bp("/DescribeLaunchConfigurationTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -675,15 +570,8 @@ export const se_DescribeLaunchConfigurationTemplatesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -693,12 +581,11 @@ export const se_DescribeRecoveryInstancesCommand = async ( input: DescribeRecoveryInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoveryInstances"; + b.bp("/DescribeRecoveryInstances"); let body: any; body = JSON.stringify( take(input, { @@ -707,15 +594,8 @@ export const se_DescribeRecoveryInstancesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -725,12 +605,11 @@ export const se_DescribeRecoverySnapshotsCommand = async ( input: DescribeRecoverySnapshotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoverySnapshots"; + b.bp("/DescribeRecoverySnapshots"); let body: any; body = JSON.stringify( take(input, { @@ -741,15 +620,8 @@ export const se_DescribeRecoverySnapshotsCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -759,13 +631,11 @@ export const se_DescribeReplicationConfigurationTemplatesCommand = async ( input: DescribeReplicationConfigurationTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/DescribeReplicationConfigurationTemplates"; + b.bp("/DescribeReplicationConfigurationTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -774,15 +644,8 @@ export const se_DescribeReplicationConfigurationTemplatesCommand = async ( replicationConfigurationTemplateIDs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -792,12 +655,11 @@ export const se_DescribeSourceNetworksCommand = async ( input: DescribeSourceNetworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceNetworks"; + b.bp("/DescribeSourceNetworks"); let body: any; body = JSON.stringify( take(input, { @@ -806,15 +668,8 @@ export const se_DescribeSourceNetworksCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -824,11 +679,11 @@ export const se_DescribeSourceServersCommand = async ( input: DescribeSourceServersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers"; + b.bp("/DescribeSourceServers"); let body: any; body = JSON.stringify( take(input, { @@ -837,15 +692,8 @@ export const se_DescribeSourceServersCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -855,27 +703,19 @@ export const se_DisconnectRecoveryInstanceCommand = async ( input: DisconnectRecoveryInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectRecoveryInstance"; + b.bp("/DisconnectRecoveryInstance"); let body: any; body = JSON.stringify( take(input, { recoveryInstanceID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -885,27 +725,19 @@ export const se_DisconnectSourceServerCommand = async ( input: DisconnectSourceServerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectSourceServer"; + b.bp("/DisconnectSourceServer"); let body: any; body = JSON.stringify( take(input, { sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -915,27 +747,19 @@ export const se_ExportSourceNetworkCfnTemplateCommand = async ( input: ExportSourceNetworkCfnTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ExportSourceNetworkCfnTemplate"; + b.bp("/ExportSourceNetworkCfnTemplate"); let body: any; body = JSON.stringify( take(input, { sourceNetworkID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -945,27 +769,19 @@ export const se_GetFailbackReplicationConfigurationCommand = async ( input: GetFailbackReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetFailbackReplicationConfiguration"; + b.bp("/GetFailbackReplicationConfiguration"); let body: any; body = JSON.stringify( take(input, { recoveryInstanceID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -975,27 +791,19 @@ export const se_GetLaunchConfigurationCommand = async ( input: GetLaunchConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration"; + b.bp("/GetLaunchConfiguration"); let body: any; body = JSON.stringify( take(input, { sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1005,27 +813,19 @@ export const se_GetReplicationConfigurationCommand = async ( input: GetReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration"; + b.bp("/GetReplicationConfiguration"); let body: any; body = JSON.stringify( take(input, { sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1035,22 +835,15 @@ export const se_InitializeServiceCommand = async ( input: InitializeServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InitializeService"; + b.bp("/InitializeService"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1060,12 +853,11 @@ export const se_ListExtensibleSourceServersCommand = async ( input: ListExtensibleSourceServersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExtensibleSourceServers"; + b.bp("/ListExtensibleSourceServers"); let body: any; body = JSON.stringify( take(input, { @@ -1074,15 +866,8 @@ export const se_ListExtensibleSourceServersCommand = async ( stagingAccountID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1092,11 +877,11 @@ export const se_ListLaunchActionsCommand = async ( input: ListLaunchActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLaunchActions"; + b.bp("/ListLaunchActions"); let body: any; body = JSON.stringify( take(input, { @@ -1106,15 +891,8 @@ export const se_ListLaunchActionsCommand = async ( resourceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1124,24 +902,16 @@ export const se_ListStagingAccountsCommand = async ( input: ListStagingAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStagingAccounts"; + b.bp("/ListStagingAccounts"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1151,20 +921,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1174,11 +937,11 @@ export const se_PutLaunchActionCommand = async ( input: PutLaunchActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutLaunchAction"; + b.bp("/PutLaunchAction"); let body: any; body = JSON.stringify( take(input, { @@ -1195,15 +958,8 @@ export const se_PutLaunchActionCommand = async ( resourceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1213,26 +969,19 @@ export const se_RetryDataReplicationCommand = async ( input: RetryDataReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication"; + b.bp("/RetryDataReplication"); let body: any; body = JSON.stringify( take(input, { sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1242,26 +991,19 @@ export const se_ReverseReplicationCommand = async ( input: ReverseReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ReverseReplication"; + b.bp("/ReverseReplication"); let body: any; body = JSON.stringify( take(input, { recoveryInstanceID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1271,11 +1013,11 @@ export const se_StartFailbackLaunchCommand = async ( input: StartFailbackLaunchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartFailbackLaunch"; + b.bp("/StartFailbackLaunch"); let body: any; body = JSON.stringify( take(input, { @@ -1283,15 +1025,8 @@ export const se_StartFailbackLaunchCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1301,11 +1036,11 @@ export const se_StartRecoveryCommand = async ( input: StartRecoveryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartRecovery"; + b.bp("/StartRecovery"); let body: any; body = JSON.stringify( take(input, { @@ -1314,15 +1049,8 @@ export const se_StartRecoveryCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1332,26 +1060,19 @@ export const se_StartReplicationCommand = async ( input: StartReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication"; + b.bp("/StartReplication"); let body: any; body = JSON.stringify( take(input, { sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1361,12 +1082,11 @@ export const se_StartSourceNetworkRecoveryCommand = async ( input: StartSourceNetworkRecoveryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartSourceNetworkRecovery"; + b.bp("/StartSourceNetworkRecovery"); let body: any; body = JSON.stringify( take(input, { @@ -1375,15 +1095,8 @@ export const se_StartSourceNetworkRecoveryCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1393,27 +1106,19 @@ export const se_StartSourceNetworkReplicationCommand = async ( input: StartSourceNetworkReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartSourceNetworkReplication"; + b.bp("/StartSourceNetworkReplication"); let body: any; body = JSON.stringify( take(input, { sourceNetworkID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1423,26 +1128,19 @@ export const se_StopFailbackCommand = async ( input: StopFailbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopFailback"; + b.bp("/StopFailback"); let body: any; body = JSON.stringify( take(input, { recoveryInstanceID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1452,26 +1150,19 @@ export const se_StopReplicationCommand = async ( input: StopReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopReplication"; + b.bp("/StopReplication"); let body: any; body = JSON.stringify( take(input, { sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1481,27 +1172,19 @@ export const se_StopSourceNetworkReplicationCommand = async ( input: StopSourceNetworkReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopSourceNetworkReplication"; + b.bp("/StopSourceNetworkReplication"); let body: any; body = JSON.stringify( take(input, { sourceNetworkID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1511,27 +1194,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1541,27 +1217,19 @@ export const se_TerminateRecoveryInstancesCommand = async ( input: TerminateRecoveryInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateRecoveryInstances"; + b.bp("/TerminateRecoveryInstances"); let body: any; body = JSON.stringify( take(input, { recoveryInstanceIDs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1571,27 +1239,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1601,12 +1261,11 @@ export const se_UpdateFailbackReplicationConfigurationCommand = async ( input: UpdateFailbackReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateFailbackReplicationConfiguration"; + b.bp("/UpdateFailbackReplicationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1616,15 +1275,8 @@ export const se_UpdateFailbackReplicationConfigurationCommand = async ( usePrivateIP: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1634,12 +1286,11 @@ export const se_UpdateLaunchConfigurationCommand = async ( input: UpdateLaunchConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration"; + b.bp("/UpdateLaunchConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1654,15 +1305,8 @@ export const se_UpdateLaunchConfigurationCommand = async ( targetInstanceTypeRightSizingMethod: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1672,12 +1316,11 @@ export const se_UpdateLaunchConfigurationTemplateCommand = async ( input: UpdateLaunchConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfigurationTemplate"; + b.bp("/UpdateLaunchConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -1692,15 +1335,8 @@ export const se_UpdateLaunchConfigurationTemplateCommand = async ( targetInstanceTypeRightSizingMethod: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1710,12 +1346,11 @@ export const se_UpdateReplicationConfigurationCommand = async ( input: UpdateReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration"; + b.bp("/UpdateReplicationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1738,15 +1373,8 @@ export const se_UpdateReplicationConfigurationCommand = async ( useDedicatedReplicationServer: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1756,12 +1384,11 @@ export const se_UpdateReplicationConfigurationTemplateCommand = async ( input: UpdateReplicationConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfigurationTemplate"; + b.bp("/UpdateReplicationConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -1783,15 +1410,8 @@ export const se_UpdateReplicationConfigurationTemplateCommand = async ( useDedicatedReplicationServer: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4911,10 +4531,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseLong(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseLong(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -4981,7 +4598,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -5323,6 +4940,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ebs/package.json b/clients/client-ebs/package.json index fd67ba8464d4..f0f2939a212b 100644 --- a/clients/client-ebs/package.json +++ b/clients/client-ebs/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-ebs/src/models/models_0.ts b/clients/client-ebs/src/models/models_0.ts index 85d1ecf9e25d..8e94547f7043 100644 --- a/clients/client-ebs/src/models/models_0.ts +++ b/clients/client-ebs/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { EBSServiceException as __BaseException } from "./EBSServiceException"; diff --git a/clients/client-ebs/src/protocols/Aws_restJson1.ts b/clients/client-ebs/src/protocols/Aws_restJson1.ts index cf0a4cd20801..4e577d3e3f3d 100644 --- a/clients/client-ebs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ebs/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -52,29 +53,18 @@ export const se_CompleteSnapshotCommand = async ( input: CompleteSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-changedblockscount": [ - () => isSerializableHeaderValue(input.ChangedBlocksCount), - () => input.ChangedBlocksCount!.toString(), - ], - "x-amz-checksum": input.Checksum!, - "x-amz-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-checksum-aggregation-method": input.ChecksumAggregationMethod!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/completion/{SnapshotId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, + [_xac]: [() => isSerializableHeaderValue(input[_CBC]), () => input[_CBC]!.toString()], + [_xac_]: input[_C]!, + [_xaca]: input[_CA]!, + [_xacam]: input[_CAM]!, }); + b.bp("/snapshots/completion/{SnapshotId}"); + b.p("SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); + let body: any; + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -84,34 +74,17 @@ export const se_GetSnapshotBlockCommand = async ( input: GetSnapshotBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/snapshots/{SnapshotId}/blocks/{BlockIndex}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BlockIndex", - () => input.BlockIndex!.toString(), - "{BlockIndex}", - false - ); + b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}"); + b.p("SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); + b.p("BlockIndex", () => input.BlockIndex!.toString(), "{BlockIndex}", false); const query: any = map({ - blockToken: [, __expectNonNull(input.BlockToken!, `BlockToken`)], + [_bT]: [, __expectNonNull(input[_BT]!, `BlockToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -121,36 +94,19 @@ export const se_ListChangedBlocksCommand = async ( input: ListChangedBlocksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/snapshots/{SecondSnapshotId}/changedblocks"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SecondSnapshotId", - () => input.SecondSnapshotId!, - "{SecondSnapshotId}", - false - ); + b.bp("/snapshots/{SecondSnapshotId}/changedblocks"); + b.p("SecondSnapshotId", () => input.SecondSnapshotId!, "{SecondSnapshotId}", false); const query: any = map({ - firstSnapshotId: [, input.FirstSnapshotId!], - pageToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - startingBlockIndex: [() => input.StartingBlockIndex !== void 0, () => input.StartingBlockIndex!.toString()], + [_fSI]: [, input[_FSI]!], + [_pT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -160,27 +116,18 @@ export const se_ListSnapshotBlocksCommand = async ( input: ListSnapshotBlocksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/{SnapshotId}/blocks"; - resolvedPath = __resolvedPath(resolvedPath, input, "SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); + b.bp("/snapshots/{SnapshotId}/blocks"); + b.p("SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); const query: any = map({ - pageToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - startingBlockIndex: [() => input.StartingBlockIndex !== void 0, () => input.StartingBlockIndex!.toString()], + [_pT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_sBI]: [() => input.StartingBlockIndex !== void 0, () => input[_SBI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -190,40 +137,24 @@ export const se_PutSnapshotBlockCommand = async ( input: PutSnapshotBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", - "x-amz-data-length": [() => isSerializableHeaderValue(input.DataLength), () => input.DataLength!.toString()], - "x-amz-progress": [() => isSerializableHeaderValue(input.Progress), () => input.Progress!.toString()], - "x-amz-checksum": input.Checksum!, - "x-amz-checksum-algorithm": input.ChecksumAlgorithm!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/snapshots/{SnapshotId}/blocks/{BlockIndex}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BlockIndex", - () => input.BlockIndex!.toString(), - "{BlockIndex}", - false - ); + [_xadl]: [() => isSerializableHeaderValue(input[_DL]), () => input[_DL]!.toString()], + [_xap]: [() => isSerializableHeaderValue(input[_P]), () => input[_P]!.toString()], + [_xac_]: input[_C]!, + [_xaca]: input[_CA]!, + }); + b.bp("/snapshots/{SnapshotId}/blocks/{BlockIndex}"); + b.p("SnapshotId", () => input.SnapshotId!, "{SnapshotId}", false); + b.p("BlockIndex", () => input.BlockIndex!.toString(), "{BlockIndex}", false); let body: any; if (input.BlockData !== undefined) { body = input.BlockData; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -233,11 +164,11 @@ export const se_StartSnapshotCommand = async ( input: StartSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots"; + b.bp("/snapshots"); let body: any; body = JSON.stringify( take(input, { @@ -251,15 +182,8 @@ export const se_StartSnapshotCommand = async ( VolumeSize: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -336,12 +260,9 @@ export const de_GetSnapshotBlockCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - DataLength: [ - () => void 0 !== output.headers["x-amz-data-length"], - () => __strictParseInt32(output.headers["x-amz-data-length"]), - ], - Checksum: [, output.headers["x-amz-checksum"]], - ChecksumAlgorithm: [, output.headers["x-amz-checksum-algorithm"]], + [_DL]: [() => void 0 !== output.headers[_xadl], () => __strictParseInt32(output.headers[_xadl])], + [_C]: [, output.headers[_xac_]], + [_CA]: [, output.headers[_xaca]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -534,8 +455,8 @@ export const de_PutSnapshotBlockCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Checksum: [, output.headers["x-amz-checksum"]], - ChecksumAlgorithm: [, output.headers["x-amz-checksum-algorithm"]], + [_C]: [, output.headers[_xac_]], + [_CA]: [, output.headers[_xaca]], }); await collectBody(output.body, context); return contents; @@ -855,6 +776,29 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _BT = "BlockToken"; +const _C = "Checksum"; +const _CA = "ChecksumAlgorithm"; +const _CAM = "ChecksumAggregationMethod"; +const _CBC = "ChangedBlocksCount"; +const _DL = "DataLength"; +const _FSI = "FirstSnapshotId"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _P = "Progress"; +const _SBI = "StartingBlockIndex"; +const _bT = "blockToken"; +const _fSI = "firstSnapshotId"; +const _mR = "maxResults"; +const _pT = "pageToken"; +const _sBI = "startingBlockIndex"; +const _xac = "x-amz-changedblockscount"; +const _xac_ = "x-amz-checksum"; +const _xaca = "x-amz-checksum-algorithm"; +const _xacam = "x-amz-checksum-aggregation-method"; +const _xadl = "x-amz-data-length"; +const _xap = "x-amz-progress"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ec2/src/models/models_2.ts b/clients/client-ec2/src/models/models_2.ts index 2e63fef1c8f6..9c3d1a8fbce1 100644 --- a/clients/client-ec2/src/models/models_2.ts +++ b/clients/client-ec2/src/models/models_2.ts @@ -30,6 +30,7 @@ import { VpcAttachment, VpcPeeringConnection, } from "./models_0"; + import { CarrierGateway, ClientVpnEndpointStatus, diff --git a/clients/client-ec2/src/models/models_3.ts b/clients/client-ec2/src/models/models_3.ts index 61fb7d01743d..7ff2853dc70e 100644 --- a/clients/client-ec2/src/models/models_3.ts +++ b/clients/client-ec2/src/models/models_3.ts @@ -36,6 +36,7 @@ import { VerifiedAccessTrustProvider, VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0"; + import { AttributeValue, BlockDeviceMapping, @@ -70,6 +71,7 @@ import { TrafficType, TransportProtocol, } from "./models_1"; + import { FleetStateCode, SubnetCidrReservation, diff --git a/clients/client-ec2/src/models/models_4.ts b/clients/client-ec2/src/models/models_4.ts index 1f5ec9b52c15..9b10ea0000ce 100644 --- a/clients/client-ec2/src/models/models_4.ts +++ b/clients/client-ec2/src/models/models_4.ts @@ -24,6 +24,7 @@ import { TagSpecification, UserIdGroupPair, } from "./models_0"; + import { AmdSevSnpSpecification, AttributeValue, @@ -68,6 +69,7 @@ import { TargetCapacityUnitType, Tenancy, } from "./models_1"; + import { NetworkInterface, NetworkInterfacePermission, @@ -81,6 +83,7 @@ import { SpotInstanceStateFault, StorageTier, } from "./models_2"; + import { ArchitectureValues, BootModeValues, diff --git a/clients/client-ec2/src/models/models_5.ts b/clients/client-ec2/src/models/models_5.ts index 87435ef96483..8940bec356cb 100644 --- a/clients/client-ec2/src/models/models_5.ts +++ b/clients/client-ec2/src/models/models_5.ts @@ -31,7 +31,9 @@ import { VpcIpv6CidrBlockAssociation, VpcPeeringConnection, } from "./models_0"; + import { DiskImageFormat, InstanceRequirementsRequest, IpamResourceTag, Subnet, VolumeType, Vpc } from "./models_1"; + import { ConnectionNotification, DnsEntry, @@ -61,6 +63,7 @@ import { VpnConnectionFilterSensitiveLog, VpnGateway, } from "./models_2"; + import { ExportTaskS3Location, FastLaunchLaunchTemplateSpecificationResponse, @@ -76,6 +79,7 @@ import { StatisticType, VirtualizationType, } from "./models_3"; + import { ArchitectureType, AttributeBooleanValue } from "./models_4"; /** diff --git a/clients/client-ec2/src/models/models_6.ts b/clients/client-ec2/src/models/models_6.ts index 5f5d34057dc4..7eb67efea15f 100644 --- a/clients/client-ec2/src/models/models_6.ts +++ b/clients/client-ec2/src/models/models_6.ts @@ -37,6 +37,7 @@ import { VerifiedAccessTrustProvider, VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0"; + import { AttributeValue, BlockDeviceMapping, @@ -73,6 +74,7 @@ import { TargetCapacityUnitType, VolumeType, } from "./models_1"; + import { AutoAcceptSharedAttachmentsValue, DefaultRouteTableAssociationValue, @@ -107,6 +109,7 @@ import { VpnEcmpSupportValue, VpnTunnelLogOptionsSpecification, } from "./models_2"; + import { ArchitectureValues, BootModeValues, @@ -127,6 +130,7 @@ import { TpmSupportValues, VirtualizationType, } from "./models_3"; + import { AnalysisStatus, ArchitectureType, @@ -151,6 +155,7 @@ import { SnapshotTaskDetail, SnapshotTaskDetailFilterSensitiveLog, } from "./models_4"; + import { InstanceFamilyCreditSpecification, IpamComplianceStatus, diff --git a/clients/client-ec2/src/models/models_7.ts b/clients/client-ec2/src/models/models_7.ts index 075b3cc42f2a..d5aa61394966 100644 --- a/clients/client-ec2/src/models/models_7.ts +++ b/clients/client-ec2/src/models/models_7.ts @@ -20,6 +20,7 @@ import { TransitGatewayVpcAttachment, UnsuccessfulItem, } from "./models_0"; + import { AmdSevSnpSpecification, BlockDeviceMapping, @@ -37,8 +38,11 @@ import { ShutdownBehavior, SpotInstanceType, } from "./models_1"; + import { SnapshotState, SSEType, TransitGatewayRoute } from "./models_2"; + import { ClientVpnConnectionStatus, Filter } from "./models_3"; + import { HttpTokensState, InstanceAttributeName, @@ -58,6 +62,7 @@ import { SpotInstanceRequestFilterSensitiveLog, SpotPlacement, } from "./models_4"; + import { CapacityReservationSpecification, InstanceMonitoring, diff --git a/clients/client-ec2/src/protocols/Aws_ec2.ts b/clients/client-ec2/src/protocols/Aws_ec2.ts index 2282164666ce..a7b89868500d 100644 --- a/clients/client-ec2/src/protocols/Aws_ec2.ts +++ b/clients/client-ec2/src/protocols/Aws_ec2.ts @@ -4056,8 +4056,8 @@ export const se_AcceptAddressTransferCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptAddressTransferRequest(input, context), - Action: "AcceptAddressTransfer", - Version: "2016-11-15", + [_A]: _AAT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4073,8 +4073,8 @@ export const se_AcceptReservedInstancesExchangeQuoteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptReservedInstancesExchangeQuoteRequest(input, context), - Action: "AcceptReservedInstancesExchangeQuote", - Version: "2016-11-15", + [_A]: _ARIEQ, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4090,8 +4090,8 @@ export const se_AcceptTransitGatewayMulticastDomainAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptTransitGatewayMulticastDomainAssociationsRequest(input, context), - Action: "AcceptTransitGatewayMulticastDomainAssociations", - Version: "2016-11-15", + [_A]: _ATGMDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4107,8 +4107,8 @@ export const se_AcceptTransitGatewayPeeringAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptTransitGatewayPeeringAttachmentRequest(input, context), - Action: "AcceptTransitGatewayPeeringAttachment", - Version: "2016-11-15", + [_A]: _ATGPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4124,8 +4124,8 @@ export const se_AcceptTransitGatewayVpcAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptTransitGatewayVpcAttachmentRequest(input, context), - Action: "AcceptTransitGatewayVpcAttachment", - Version: "2016-11-15", + [_A]: _ATGVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4141,8 +4141,8 @@ export const se_AcceptVpcEndpointConnectionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptVpcEndpointConnectionsRequest(input, context), - Action: "AcceptVpcEndpointConnections", - Version: "2016-11-15", + [_A]: _AVEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4158,8 +4158,8 @@ export const se_AcceptVpcPeeringConnectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptVpcPeeringConnectionRequest(input, context), - Action: "AcceptVpcPeeringConnection", - Version: "2016-11-15", + [_A]: _AVPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4175,8 +4175,8 @@ export const se_AdvertiseByoipCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AdvertiseByoipCidrRequest(input, context), - Action: "AdvertiseByoipCidr", - Version: "2016-11-15", + [_A]: _ABC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4192,8 +4192,8 @@ export const se_AllocateAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AllocateAddressRequest(input, context), - Action: "AllocateAddress", - Version: "2016-11-15", + [_A]: _AA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4209,8 +4209,8 @@ export const se_AllocateHostsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AllocateHostsRequest(input, context), - Action: "AllocateHosts", - Version: "2016-11-15", + [_A]: _AH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4226,8 +4226,8 @@ export const se_AllocateIpamPoolCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AllocateIpamPoolCidrRequest(input, context), - Action: "AllocateIpamPoolCidr", - Version: "2016-11-15", + [_A]: _AIPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4243,8 +4243,8 @@ export const se_ApplySecurityGroupsToClientVpnTargetNetworkCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ApplySecurityGroupsToClientVpnTargetNetworkRequest(input, context), - Action: "ApplySecurityGroupsToClientVpnTargetNetwork", - Version: "2016-11-15", + [_A]: _ASGTCVTN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4260,8 +4260,8 @@ export const se_AssignIpv6AddressesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssignIpv6AddressesRequest(input, context), - Action: "AssignIpv6Addresses", - Version: "2016-11-15", + [_A]: _AIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4277,8 +4277,8 @@ export const se_AssignPrivateIpAddressesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssignPrivateIpAddressesRequest(input, context), - Action: "AssignPrivateIpAddresses", - Version: "2016-11-15", + [_A]: _APIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4294,8 +4294,8 @@ export const se_AssignPrivateNatGatewayAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssignPrivateNatGatewayAddressRequest(input, context), - Action: "AssignPrivateNatGatewayAddress", - Version: "2016-11-15", + [_A]: _APNGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4311,8 +4311,8 @@ export const se_AssociateAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateAddressRequest(input, context), - Action: "AssociateAddress", - Version: "2016-11-15", + [_A]: _AAs, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4328,8 +4328,8 @@ export const se_AssociateClientVpnTargetNetworkCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateClientVpnTargetNetworkRequest(input, context), - Action: "AssociateClientVpnTargetNetwork", - Version: "2016-11-15", + [_A]: _ACVTN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4345,8 +4345,8 @@ export const se_AssociateDhcpOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateDhcpOptionsRequest(input, context), - Action: "AssociateDhcpOptions", - Version: "2016-11-15", + [_A]: _ADO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4362,8 +4362,8 @@ export const se_AssociateEnclaveCertificateIamRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateEnclaveCertificateIamRoleRequest(input, context), - Action: "AssociateEnclaveCertificateIamRole", - Version: "2016-11-15", + [_A]: _AECIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4379,8 +4379,8 @@ export const se_AssociateIamInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateIamInstanceProfileRequest(input, context), - Action: "AssociateIamInstanceProfile", - Version: "2016-11-15", + [_A]: _AIIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4396,8 +4396,8 @@ export const se_AssociateInstanceEventWindowCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateInstanceEventWindowRequest(input, context), - Action: "AssociateInstanceEventWindow", - Version: "2016-11-15", + [_A]: _AIEW, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4413,8 +4413,8 @@ export const se_AssociateIpamByoasnCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateIpamByoasnRequest(input, context), - Action: "AssociateIpamByoasn", - Version: "2016-11-15", + [_A]: _AIB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4430,8 +4430,8 @@ export const se_AssociateIpamResourceDiscoveryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateIpamResourceDiscoveryRequest(input, context), - Action: "AssociateIpamResourceDiscovery", - Version: "2016-11-15", + [_A]: _AIRD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4447,8 +4447,8 @@ export const se_AssociateNatGatewayAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateNatGatewayAddressRequest(input, context), - Action: "AssociateNatGatewayAddress", - Version: "2016-11-15", + [_A]: _ANGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4464,8 +4464,8 @@ export const se_AssociateRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateRouteTableRequest(input, context), - Action: "AssociateRouteTable", - Version: "2016-11-15", + [_A]: _ART, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4481,8 +4481,8 @@ export const se_AssociateSubnetCidrBlockCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateSubnetCidrBlockRequest(input, context), - Action: "AssociateSubnetCidrBlock", - Version: "2016-11-15", + [_A]: _ASCB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4498,8 +4498,8 @@ export const se_AssociateTransitGatewayMulticastDomainCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateTransitGatewayMulticastDomainRequest(input, context), - Action: "AssociateTransitGatewayMulticastDomain", - Version: "2016-11-15", + [_A]: _ATGMD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4515,8 +4515,8 @@ export const se_AssociateTransitGatewayPolicyTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateTransitGatewayPolicyTableRequest(input, context), - Action: "AssociateTransitGatewayPolicyTable", - Version: "2016-11-15", + [_A]: _ATGPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4532,8 +4532,8 @@ export const se_AssociateTransitGatewayRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateTransitGatewayRouteTableRequest(input, context), - Action: "AssociateTransitGatewayRouteTable", - Version: "2016-11-15", + [_A]: _ATGRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4549,8 +4549,8 @@ export const se_AssociateTrunkInterfaceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateTrunkInterfaceRequest(input, context), - Action: "AssociateTrunkInterface", - Version: "2016-11-15", + [_A]: _ATI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4566,8 +4566,8 @@ export const se_AssociateVpcCidrBlockCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateVpcCidrBlockRequest(input, context), - Action: "AssociateVpcCidrBlock", - Version: "2016-11-15", + [_A]: _AVCB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4583,8 +4583,8 @@ export const se_AttachClassicLinkVpcCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachClassicLinkVpcRequest(input, context), - Action: "AttachClassicLinkVpc", - Version: "2016-11-15", + [_A]: _ACLV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4600,8 +4600,8 @@ export const se_AttachInternetGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachInternetGatewayRequest(input, context), - Action: "AttachInternetGateway", - Version: "2016-11-15", + [_A]: _AIG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4617,8 +4617,8 @@ export const se_AttachNetworkInterfaceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachNetworkInterfaceRequest(input, context), - Action: "AttachNetworkInterface", - Version: "2016-11-15", + [_A]: _ANI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4634,8 +4634,8 @@ export const se_AttachVerifiedAccessTrustProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachVerifiedAccessTrustProviderRequest(input, context), - Action: "AttachVerifiedAccessTrustProvider", - Version: "2016-11-15", + [_A]: _AVATP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4651,8 +4651,8 @@ export const se_AttachVolumeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachVolumeRequest(input, context), - Action: "AttachVolume", - Version: "2016-11-15", + [_A]: _AV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4668,8 +4668,8 @@ export const se_AttachVpnGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachVpnGatewayRequest(input, context), - Action: "AttachVpnGateway", - Version: "2016-11-15", + [_A]: _AVG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4685,8 +4685,8 @@ export const se_AuthorizeClientVpnIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeClientVpnIngressRequest(input, context), - Action: "AuthorizeClientVpnIngress", - Version: "2016-11-15", + [_A]: _ACVI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4702,8 +4702,8 @@ export const se_AuthorizeSecurityGroupEgressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeSecurityGroupEgressRequest(input, context), - Action: "AuthorizeSecurityGroupEgress", - Version: "2016-11-15", + [_A]: _ASGE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4719,8 +4719,8 @@ export const se_AuthorizeSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeSecurityGroupIngressRequest(input, context), - Action: "AuthorizeSecurityGroupIngress", - Version: "2016-11-15", + [_A]: _ASGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4736,8 +4736,8 @@ export const se_BundleInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BundleInstanceRequest(input, context), - Action: "BundleInstance", - Version: "2016-11-15", + [_A]: _BI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4753,8 +4753,8 @@ export const se_CancelBundleTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelBundleTaskRequest(input, context), - Action: "CancelBundleTask", - Version: "2016-11-15", + [_A]: _CBT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4770,8 +4770,8 @@ export const se_CancelCapacityReservationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelCapacityReservationRequest(input, context), - Action: "CancelCapacityReservation", - Version: "2016-11-15", + [_A]: _CCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4787,8 +4787,8 @@ export const se_CancelCapacityReservationFleetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelCapacityReservationFleetsRequest(input, context), - Action: "CancelCapacityReservationFleets", - Version: "2016-11-15", + [_A]: _CCRF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4804,8 +4804,8 @@ export const se_CancelConversionTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelConversionRequest(input, context), - Action: "CancelConversionTask", - Version: "2016-11-15", + [_A]: _CCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4821,8 +4821,8 @@ export const se_CancelExportTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelExportTaskRequest(input, context), - Action: "CancelExportTask", - Version: "2016-11-15", + [_A]: _CET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4838,8 +4838,8 @@ export const se_CancelImageLaunchPermissionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelImageLaunchPermissionRequest(input, context), - Action: "CancelImageLaunchPermission", - Version: "2016-11-15", + [_A]: _CILP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4855,8 +4855,8 @@ export const se_CancelImportTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelImportTaskRequest(input, context), - Action: "CancelImportTask", - Version: "2016-11-15", + [_A]: _CIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4872,8 +4872,8 @@ export const se_CancelReservedInstancesListingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelReservedInstancesListingRequest(input, context), - Action: "CancelReservedInstancesListing", - Version: "2016-11-15", + [_A]: _CRIL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4889,8 +4889,8 @@ export const se_CancelSpotFleetRequestsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelSpotFleetRequestsRequest(input, context), - Action: "CancelSpotFleetRequests", - Version: "2016-11-15", + [_A]: _CSFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4906,8 +4906,8 @@ export const se_CancelSpotInstanceRequestsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelSpotInstanceRequestsRequest(input, context), - Action: "CancelSpotInstanceRequests", - Version: "2016-11-15", + [_A]: _CSIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4923,8 +4923,8 @@ export const se_ConfirmProductInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ConfirmProductInstanceRequest(input, context), - Action: "ConfirmProductInstance", - Version: "2016-11-15", + [_A]: _CPI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4940,8 +4940,8 @@ export const se_CopyFpgaImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyFpgaImageRequest(input, context), - Action: "CopyFpgaImage", - Version: "2016-11-15", + [_A]: _CFI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4957,8 +4957,8 @@ export const se_CopyImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyImageRequest(input, context), - Action: "CopyImage", - Version: "2016-11-15", + [_A]: _CI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4974,8 +4974,8 @@ export const se_CopySnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopySnapshotRequest(input, context), - Action: "CopySnapshot", - Version: "2016-11-15", + [_A]: _CS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4991,8 +4991,8 @@ export const se_CreateCapacityReservationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCapacityReservationRequest(input, context), - Action: "CreateCapacityReservation", - Version: "2016-11-15", + [_A]: _CCRr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5008,8 +5008,8 @@ export const se_CreateCapacityReservationFleetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCapacityReservationFleetRequest(input, context), - Action: "CreateCapacityReservationFleet", - Version: "2016-11-15", + [_A]: _CCRFr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5025,8 +5025,8 @@ export const se_CreateCarrierGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCarrierGatewayRequest(input, context), - Action: "CreateCarrierGateway", - Version: "2016-11-15", + [_A]: _CCG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5042,8 +5042,8 @@ export const se_CreateClientVpnEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateClientVpnEndpointRequest(input, context), - Action: "CreateClientVpnEndpoint", - Version: "2016-11-15", + [_A]: _CCVE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5059,8 +5059,8 @@ export const se_CreateClientVpnRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateClientVpnRouteRequest(input, context), - Action: "CreateClientVpnRoute", - Version: "2016-11-15", + [_A]: _CCVR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5076,8 +5076,8 @@ export const se_CreateCoipCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCoipCidrRequest(input, context), - Action: "CreateCoipCidr", - Version: "2016-11-15", + [_A]: _CCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5093,8 +5093,8 @@ export const se_CreateCoipPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCoipPoolRequest(input, context), - Action: "CreateCoipPool", - Version: "2016-11-15", + [_A]: _CCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5110,8 +5110,8 @@ export const se_CreateCustomerGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCustomerGatewayRequest(input, context), - Action: "CreateCustomerGateway", - Version: "2016-11-15", + [_A]: _CCGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5127,8 +5127,8 @@ export const se_CreateDefaultSubnetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDefaultSubnetRequest(input, context), - Action: "CreateDefaultSubnet", - Version: "2016-11-15", + [_A]: _CDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5144,8 +5144,8 @@ export const se_CreateDefaultVpcCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDefaultVpcRequest(input, context), - Action: "CreateDefaultVpc", - Version: "2016-11-15", + [_A]: _CDV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5161,8 +5161,8 @@ export const se_CreateDhcpOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDhcpOptionsRequest(input, context), - Action: "CreateDhcpOptions", - Version: "2016-11-15", + [_A]: _CDO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5178,8 +5178,8 @@ export const se_CreateEgressOnlyInternetGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateEgressOnlyInternetGatewayRequest(input, context), - Action: "CreateEgressOnlyInternetGateway", - Version: "2016-11-15", + [_A]: _CEOIG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5195,8 +5195,8 @@ export const se_CreateFleetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateFleetRequest(input, context), - Action: "CreateFleet", - Version: "2016-11-15", + [_A]: _CF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5212,8 +5212,8 @@ export const se_CreateFlowLogsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateFlowLogsRequest(input, context), - Action: "CreateFlowLogs", - Version: "2016-11-15", + [_A]: _CFL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5229,8 +5229,8 @@ export const se_CreateFpgaImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateFpgaImageRequest(input, context), - Action: "CreateFpgaImage", - Version: "2016-11-15", + [_A]: _CFIr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5246,8 +5246,8 @@ export const se_CreateImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateImageRequest(input, context), - Action: "CreateImage", - Version: "2016-11-15", + [_A]: _CIr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5263,8 +5263,8 @@ export const se_CreateInstanceConnectEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateInstanceConnectEndpointRequest(input, context), - Action: "CreateInstanceConnectEndpoint", - Version: "2016-11-15", + [_A]: _CICE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5280,8 +5280,8 @@ export const se_CreateInstanceEventWindowCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateInstanceEventWindowRequest(input, context), - Action: "CreateInstanceEventWindow", - Version: "2016-11-15", + [_A]: _CIEW, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5297,8 +5297,8 @@ export const se_CreateInstanceExportTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateInstanceExportTaskRequest(input, context), - Action: "CreateInstanceExportTask", - Version: "2016-11-15", + [_A]: _CIET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5314,8 +5314,8 @@ export const se_CreateInternetGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateInternetGatewayRequest(input, context), - Action: "CreateInternetGateway", - Version: "2016-11-15", + [_A]: _CIG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5331,8 +5331,8 @@ export const se_CreateIpamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateIpamRequest(input, context), - Action: "CreateIpam", - Version: "2016-11-15", + [_A]: _CIre, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5348,8 +5348,8 @@ export const se_CreateIpamPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateIpamPoolRequest(input, context), - Action: "CreateIpamPool", - Version: "2016-11-15", + [_A]: _CIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5365,8 +5365,8 @@ export const se_CreateIpamResourceDiscoveryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateIpamResourceDiscoveryRequest(input, context), - Action: "CreateIpamResourceDiscovery", - Version: "2016-11-15", + [_A]: _CIRD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5382,8 +5382,8 @@ export const se_CreateIpamScopeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateIpamScopeRequest(input, context), - Action: "CreateIpamScope", - Version: "2016-11-15", + [_A]: _CIS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5399,8 +5399,8 @@ export const se_CreateKeyPairCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateKeyPairRequest(input, context), - Action: "CreateKeyPair", - Version: "2016-11-15", + [_A]: _CKP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5416,8 +5416,8 @@ export const se_CreateLaunchTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLaunchTemplateRequest(input, context), - Action: "CreateLaunchTemplate", - Version: "2016-11-15", + [_A]: _CLT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5433,8 +5433,8 @@ export const se_CreateLaunchTemplateVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLaunchTemplateVersionRequest(input, context), - Action: "CreateLaunchTemplateVersion", - Version: "2016-11-15", + [_A]: _CLTV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5450,8 +5450,8 @@ export const se_CreateLocalGatewayRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLocalGatewayRouteRequest(input, context), - Action: "CreateLocalGatewayRoute", - Version: "2016-11-15", + [_A]: _CLGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5467,8 +5467,8 @@ export const se_CreateLocalGatewayRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLocalGatewayRouteTableRequest(input, context), - Action: "CreateLocalGatewayRouteTable", - Version: "2016-11-15", + [_A]: _CLGRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5484,8 +5484,8 @@ export const se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationComm let body: any; body = buildFormUrlencodedString({ ...se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input, context), - Action: "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", - Version: "2016-11-15", + [_A]: _CLGRTVIGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5501,8 +5501,8 @@ export const se_CreateLocalGatewayRouteTableVpcAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLocalGatewayRouteTableVpcAssociationRequest(input, context), - Action: "CreateLocalGatewayRouteTableVpcAssociation", - Version: "2016-11-15", + [_A]: _CLGRTVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5518,8 +5518,8 @@ export const se_CreateManagedPrefixListCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateManagedPrefixListRequest(input, context), - Action: "CreateManagedPrefixList", - Version: "2016-11-15", + [_A]: _CMPL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5535,8 +5535,8 @@ export const se_CreateNatGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateNatGatewayRequest(input, context), - Action: "CreateNatGateway", - Version: "2016-11-15", + [_A]: _CNG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5552,8 +5552,8 @@ export const se_CreateNetworkAclCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateNetworkAclRequest(input, context), - Action: "CreateNetworkAcl", - Version: "2016-11-15", + [_A]: _CNA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5569,8 +5569,8 @@ export const se_CreateNetworkAclEntryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateNetworkAclEntryRequest(input, context), - Action: "CreateNetworkAclEntry", - Version: "2016-11-15", + [_A]: _CNAE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5586,8 +5586,8 @@ export const se_CreateNetworkInsightsAccessScopeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateNetworkInsightsAccessScopeRequest(input, context), - Action: "CreateNetworkInsightsAccessScope", - Version: "2016-11-15", + [_A]: _CNIAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5603,8 +5603,8 @@ export const se_CreateNetworkInsightsPathCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateNetworkInsightsPathRequest(input, context), - Action: "CreateNetworkInsightsPath", - Version: "2016-11-15", + [_A]: _CNIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5620,8 +5620,8 @@ export const se_CreateNetworkInterfaceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateNetworkInterfaceRequest(input, context), - Action: "CreateNetworkInterface", - Version: "2016-11-15", + [_A]: _CNI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5637,8 +5637,8 @@ export const se_CreateNetworkInterfacePermissionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateNetworkInterfacePermissionRequest(input, context), - Action: "CreateNetworkInterfacePermission", - Version: "2016-11-15", + [_A]: _CNIPr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5654,8 +5654,8 @@ export const se_CreatePlacementGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreatePlacementGroupRequest(input, context), - Action: "CreatePlacementGroup", - Version: "2016-11-15", + [_A]: _CPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5671,8 +5671,8 @@ export const se_CreatePublicIpv4PoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreatePublicIpv4PoolRequest(input, context), - Action: "CreatePublicIpv4Pool", - Version: "2016-11-15", + [_A]: _CPIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5688,8 +5688,8 @@ export const se_CreateReplaceRootVolumeTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateReplaceRootVolumeTaskRequest(input, context), - Action: "CreateReplaceRootVolumeTask", - Version: "2016-11-15", + [_A]: _CRRVT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5705,8 +5705,8 @@ export const se_CreateReservedInstancesListingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateReservedInstancesListingRequest(input, context), - Action: "CreateReservedInstancesListing", - Version: "2016-11-15", + [_A]: _CRILr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5722,8 +5722,8 @@ export const se_CreateRestoreImageTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateRestoreImageTaskRequest(input, context), - Action: "CreateRestoreImageTask", - Version: "2016-11-15", + [_A]: _CRIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5739,8 +5739,8 @@ export const se_CreateRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateRouteRequest(input, context), - Action: "CreateRoute", - Version: "2016-11-15", + [_A]: _CR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5756,8 +5756,8 @@ export const se_CreateRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateRouteTableRequest(input, context), - Action: "CreateRouteTable", - Version: "2016-11-15", + [_A]: _CRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5773,8 +5773,8 @@ export const se_CreateSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSecurityGroupRequest(input, context), - Action: "CreateSecurityGroup", - Version: "2016-11-15", + [_A]: _CSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5790,8 +5790,8 @@ export const se_CreateSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSnapshotRequest(input, context), - Action: "CreateSnapshot", - Version: "2016-11-15", + [_A]: _CSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5807,8 +5807,8 @@ export const se_CreateSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSnapshotsRequest(input, context), - Action: "CreateSnapshots", - Version: "2016-11-15", + [_A]: _CSre, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5824,8 +5824,8 @@ export const se_CreateSpotDatafeedSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSpotDatafeedSubscriptionRequest(input, context), - Action: "CreateSpotDatafeedSubscription", - Version: "2016-11-15", + [_A]: _CSDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5841,8 +5841,8 @@ export const se_CreateStoreImageTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateStoreImageTaskRequest(input, context), - Action: "CreateStoreImageTask", - Version: "2016-11-15", + [_A]: _CSIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5858,8 +5858,8 @@ export const se_CreateSubnetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSubnetRequest(input, context), - Action: "CreateSubnet", - Version: "2016-11-15", + [_A]: _CSrea, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5875,8 +5875,8 @@ export const se_CreateSubnetCidrReservationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSubnetCidrReservationRequest(input, context), - Action: "CreateSubnetCidrReservation", - Version: "2016-11-15", + [_A]: _CSCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5892,8 +5892,8 @@ export const se_CreateTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTagsRequest(input, context), - Action: "CreateTags", - Version: "2016-11-15", + [_A]: _CT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5909,8 +5909,8 @@ export const se_CreateTrafficMirrorFilterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTrafficMirrorFilterRequest(input, context), - Action: "CreateTrafficMirrorFilter", - Version: "2016-11-15", + [_A]: _CTMF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5926,8 +5926,8 @@ export const se_CreateTrafficMirrorFilterRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTrafficMirrorFilterRuleRequest(input, context), - Action: "CreateTrafficMirrorFilterRule", - Version: "2016-11-15", + [_A]: _CTMFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5943,8 +5943,8 @@ export const se_CreateTrafficMirrorSessionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTrafficMirrorSessionRequest(input, context), - Action: "CreateTrafficMirrorSession", - Version: "2016-11-15", + [_A]: _CTMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5960,8 +5960,8 @@ export const se_CreateTrafficMirrorTargetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTrafficMirrorTargetRequest(input, context), - Action: "CreateTrafficMirrorTarget", - Version: "2016-11-15", + [_A]: _CTMT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5977,8 +5977,8 @@ export const se_CreateTransitGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayRequest(input, context), - Action: "CreateTransitGateway", - Version: "2016-11-15", + [_A]: _CTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5994,8 +5994,8 @@ export const se_CreateTransitGatewayConnectCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayConnectRequest(input, context), - Action: "CreateTransitGatewayConnect", - Version: "2016-11-15", + [_A]: _CTGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6011,8 +6011,8 @@ export const se_CreateTransitGatewayConnectPeerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayConnectPeerRequest(input, context), - Action: "CreateTransitGatewayConnectPeer", - Version: "2016-11-15", + [_A]: _CTGCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6028,8 +6028,8 @@ export const se_CreateTransitGatewayMulticastDomainCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayMulticastDomainRequest(input, context), - Action: "CreateTransitGatewayMulticastDomain", - Version: "2016-11-15", + [_A]: _CTGMD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6045,8 +6045,8 @@ export const se_CreateTransitGatewayPeeringAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayPeeringAttachmentRequest(input, context), - Action: "CreateTransitGatewayPeeringAttachment", - Version: "2016-11-15", + [_A]: _CTGPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6062,8 +6062,8 @@ export const se_CreateTransitGatewayPolicyTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayPolicyTableRequest(input, context), - Action: "CreateTransitGatewayPolicyTable", - Version: "2016-11-15", + [_A]: _CTGPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6079,8 +6079,8 @@ export const se_CreateTransitGatewayPrefixListReferenceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayPrefixListReferenceRequest(input, context), - Action: "CreateTransitGatewayPrefixListReference", - Version: "2016-11-15", + [_A]: _CTGPLR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6096,8 +6096,8 @@ export const se_CreateTransitGatewayRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayRouteRequest(input, context), - Action: "CreateTransitGatewayRoute", - Version: "2016-11-15", + [_A]: _CTGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6113,8 +6113,8 @@ export const se_CreateTransitGatewayRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayRouteTableRequest(input, context), - Action: "CreateTransitGatewayRouteTable", - Version: "2016-11-15", + [_A]: _CTGRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6130,8 +6130,8 @@ export const se_CreateTransitGatewayRouteTableAnnouncementCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayRouteTableAnnouncementRequest(input, context), - Action: "CreateTransitGatewayRouteTableAnnouncement", - Version: "2016-11-15", + [_A]: _CTGRTA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6147,8 +6147,8 @@ export const se_CreateTransitGatewayVpcAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTransitGatewayVpcAttachmentRequest(input, context), - Action: "CreateTransitGatewayVpcAttachment", - Version: "2016-11-15", + [_A]: _CTGVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6164,8 +6164,8 @@ export const se_CreateVerifiedAccessEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVerifiedAccessEndpointRequest(input, context), - Action: "CreateVerifiedAccessEndpoint", - Version: "2016-11-15", + [_A]: _CVAE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6181,8 +6181,8 @@ export const se_CreateVerifiedAccessGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVerifiedAccessGroupRequest(input, context), - Action: "CreateVerifiedAccessGroup", - Version: "2016-11-15", + [_A]: _CVAG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6198,8 +6198,8 @@ export const se_CreateVerifiedAccessInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVerifiedAccessInstanceRequest(input, context), - Action: "CreateVerifiedAccessInstance", - Version: "2016-11-15", + [_A]: _CVAI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6215,8 +6215,8 @@ export const se_CreateVerifiedAccessTrustProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVerifiedAccessTrustProviderRequest(input, context), - Action: "CreateVerifiedAccessTrustProvider", - Version: "2016-11-15", + [_A]: _CVATP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6232,8 +6232,8 @@ export const se_CreateVolumeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVolumeRequest(input, context), - Action: "CreateVolume", - Version: "2016-11-15", + [_A]: _CV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6249,8 +6249,8 @@ export const se_CreateVpcCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpcRequest(input, context), - Action: "CreateVpc", - Version: "2016-11-15", + [_A]: _CVr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6266,8 +6266,8 @@ export const se_CreateVpcEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpcEndpointRequest(input, context), - Action: "CreateVpcEndpoint", - Version: "2016-11-15", + [_A]: _CVE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6283,8 +6283,8 @@ export const se_CreateVpcEndpointConnectionNotificationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpcEndpointConnectionNotificationRequest(input, context), - Action: "CreateVpcEndpointConnectionNotification", - Version: "2016-11-15", + [_A]: _CVECN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6300,8 +6300,8 @@ export const se_CreateVpcEndpointServiceConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpcEndpointServiceConfigurationRequest(input, context), - Action: "CreateVpcEndpointServiceConfiguration", - Version: "2016-11-15", + [_A]: _CVESC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6317,8 +6317,8 @@ export const se_CreateVpcPeeringConnectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpcPeeringConnectionRequest(input, context), - Action: "CreateVpcPeeringConnection", - Version: "2016-11-15", + [_A]: _CVPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6334,8 +6334,8 @@ export const se_CreateVpnConnectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpnConnectionRequest(input, context), - Action: "CreateVpnConnection", - Version: "2016-11-15", + [_A]: _CVC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6351,8 +6351,8 @@ export const se_CreateVpnConnectionRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpnConnectionRouteRequest(input, context), - Action: "CreateVpnConnectionRoute", - Version: "2016-11-15", + [_A]: _CVCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6368,8 +6368,8 @@ export const se_CreateVpnGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVpnGatewayRequest(input, context), - Action: "CreateVpnGateway", - Version: "2016-11-15", + [_A]: _CVG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6385,8 +6385,8 @@ export const se_DeleteCarrierGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCarrierGatewayRequest(input, context), - Action: "DeleteCarrierGateway", - Version: "2016-11-15", + [_A]: _DCG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6402,8 +6402,8 @@ export const se_DeleteClientVpnEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteClientVpnEndpointRequest(input, context), - Action: "DeleteClientVpnEndpoint", - Version: "2016-11-15", + [_A]: _DCVE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6419,8 +6419,8 @@ export const se_DeleteClientVpnRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteClientVpnRouteRequest(input, context), - Action: "DeleteClientVpnRoute", - Version: "2016-11-15", + [_A]: _DCVR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6436,8 +6436,8 @@ export const se_DeleteCoipCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCoipCidrRequest(input, context), - Action: "DeleteCoipCidr", - Version: "2016-11-15", + [_A]: _DCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6453,8 +6453,8 @@ export const se_DeleteCoipPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCoipPoolRequest(input, context), - Action: "DeleteCoipPool", - Version: "2016-11-15", + [_A]: _DCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6470,8 +6470,8 @@ export const se_DeleteCustomerGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCustomerGatewayRequest(input, context), - Action: "DeleteCustomerGateway", - Version: "2016-11-15", + [_A]: _DCGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6487,8 +6487,8 @@ export const se_DeleteDhcpOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDhcpOptionsRequest(input, context), - Action: "DeleteDhcpOptions", - Version: "2016-11-15", + [_A]: _DDO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6504,8 +6504,8 @@ export const se_DeleteEgressOnlyInternetGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEgressOnlyInternetGatewayRequest(input, context), - Action: "DeleteEgressOnlyInternetGateway", - Version: "2016-11-15", + [_A]: _DEOIG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6521,8 +6521,8 @@ export const se_DeleteFleetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteFleetsRequest(input, context), - Action: "DeleteFleets", - Version: "2016-11-15", + [_A]: _DF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6538,8 +6538,8 @@ export const se_DeleteFlowLogsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteFlowLogsRequest(input, context), - Action: "DeleteFlowLogs", - Version: "2016-11-15", + [_A]: _DFL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6555,8 +6555,8 @@ export const se_DeleteFpgaImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteFpgaImageRequest(input, context), - Action: "DeleteFpgaImage", - Version: "2016-11-15", + [_A]: _DFI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6572,8 +6572,8 @@ export const se_DeleteInstanceConnectEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteInstanceConnectEndpointRequest(input, context), - Action: "DeleteInstanceConnectEndpoint", - Version: "2016-11-15", + [_A]: _DICE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6589,8 +6589,8 @@ export const se_DeleteInstanceEventWindowCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteInstanceEventWindowRequest(input, context), - Action: "DeleteInstanceEventWindow", - Version: "2016-11-15", + [_A]: _DIEW, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6606,8 +6606,8 @@ export const se_DeleteInternetGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteInternetGatewayRequest(input, context), - Action: "DeleteInternetGateway", - Version: "2016-11-15", + [_A]: _DIG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6623,8 +6623,8 @@ export const se_DeleteIpamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIpamRequest(input, context), - Action: "DeleteIpam", - Version: "2016-11-15", + [_A]: _DI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6640,8 +6640,8 @@ export const se_DeleteIpamPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIpamPoolRequest(input, context), - Action: "DeleteIpamPool", - Version: "2016-11-15", + [_A]: _DIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6657,8 +6657,8 @@ export const se_DeleteIpamResourceDiscoveryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIpamResourceDiscoveryRequest(input, context), - Action: "DeleteIpamResourceDiscovery", - Version: "2016-11-15", + [_A]: _DIRD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6674,8 +6674,8 @@ export const se_DeleteIpamScopeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIpamScopeRequest(input, context), - Action: "DeleteIpamScope", - Version: "2016-11-15", + [_A]: _DIS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6691,8 +6691,8 @@ export const se_DeleteKeyPairCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteKeyPairRequest(input, context), - Action: "DeleteKeyPair", - Version: "2016-11-15", + [_A]: _DKP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6708,8 +6708,8 @@ export const se_DeleteLaunchTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLaunchTemplateRequest(input, context), - Action: "DeleteLaunchTemplate", - Version: "2016-11-15", + [_A]: _DLT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6725,8 +6725,8 @@ export const se_DeleteLaunchTemplateVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLaunchTemplateVersionsRequest(input, context), - Action: "DeleteLaunchTemplateVersions", - Version: "2016-11-15", + [_A]: _DLTV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6742,8 +6742,8 @@ export const se_DeleteLocalGatewayRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLocalGatewayRouteRequest(input, context), - Action: "DeleteLocalGatewayRoute", - Version: "2016-11-15", + [_A]: _DLGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6759,8 +6759,8 @@ export const se_DeleteLocalGatewayRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLocalGatewayRouteTableRequest(input, context), - Action: "DeleteLocalGatewayRouteTable", - Version: "2016-11-15", + [_A]: _DLGRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6776,8 +6776,8 @@ export const se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationComm let body: any; body = buildFormUrlencodedString({ ...se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest(input, context), - Action: "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", - Version: "2016-11-15", + [_A]: _DLGRTVIGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6793,8 +6793,8 @@ export const se_DeleteLocalGatewayRouteTableVpcAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLocalGatewayRouteTableVpcAssociationRequest(input, context), - Action: "DeleteLocalGatewayRouteTableVpcAssociation", - Version: "2016-11-15", + [_A]: _DLGRTVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6810,8 +6810,8 @@ export const se_DeleteManagedPrefixListCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteManagedPrefixListRequest(input, context), - Action: "DeleteManagedPrefixList", - Version: "2016-11-15", + [_A]: _DMPL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6827,8 +6827,8 @@ export const se_DeleteNatGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNatGatewayRequest(input, context), - Action: "DeleteNatGateway", - Version: "2016-11-15", + [_A]: _DNG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6844,8 +6844,8 @@ export const se_DeleteNetworkAclCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkAclRequest(input, context), - Action: "DeleteNetworkAcl", - Version: "2016-11-15", + [_A]: _DNA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6861,8 +6861,8 @@ export const se_DeleteNetworkAclEntryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkAclEntryRequest(input, context), - Action: "DeleteNetworkAclEntry", - Version: "2016-11-15", + [_A]: _DNAE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6878,8 +6878,8 @@ export const se_DeleteNetworkInsightsAccessScopeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkInsightsAccessScopeRequest(input, context), - Action: "DeleteNetworkInsightsAccessScope", - Version: "2016-11-15", + [_A]: _DNIAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6895,8 +6895,8 @@ export const se_DeleteNetworkInsightsAccessScopeAnalysisCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkInsightsAccessScopeAnalysisRequest(input, context), - Action: "DeleteNetworkInsightsAccessScopeAnalysis", - Version: "2016-11-15", + [_A]: _DNIASA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6912,8 +6912,8 @@ export const se_DeleteNetworkInsightsAnalysisCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkInsightsAnalysisRequest(input, context), - Action: "DeleteNetworkInsightsAnalysis", - Version: "2016-11-15", + [_A]: _DNIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6929,8 +6929,8 @@ export const se_DeleteNetworkInsightsPathCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkInsightsPathRequest(input, context), - Action: "DeleteNetworkInsightsPath", - Version: "2016-11-15", + [_A]: _DNIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6946,8 +6946,8 @@ export const se_DeleteNetworkInterfaceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkInterfaceRequest(input, context), - Action: "DeleteNetworkInterface", - Version: "2016-11-15", + [_A]: _DNI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6963,8 +6963,8 @@ export const se_DeleteNetworkInterfacePermissionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteNetworkInterfacePermissionRequest(input, context), - Action: "DeleteNetworkInterfacePermission", - Version: "2016-11-15", + [_A]: _DNIPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6980,8 +6980,8 @@ export const se_DeletePlacementGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeletePlacementGroupRequest(input, context), - Action: "DeletePlacementGroup", - Version: "2016-11-15", + [_A]: _DPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6997,8 +6997,8 @@ export const se_DeletePublicIpv4PoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeletePublicIpv4PoolRequest(input, context), - Action: "DeletePublicIpv4Pool", - Version: "2016-11-15", + [_A]: _DPIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7014,8 +7014,8 @@ export const se_DeleteQueuedReservedInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteQueuedReservedInstancesRequest(input, context), - Action: "DeleteQueuedReservedInstances", - Version: "2016-11-15", + [_A]: _DQRI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7031,8 +7031,8 @@ export const se_DeleteRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteRouteRequest(input, context), - Action: "DeleteRoute", - Version: "2016-11-15", + [_A]: _DR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7048,8 +7048,8 @@ export const se_DeleteRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteRouteTableRequest(input, context), - Action: "DeleteRouteTable", - Version: "2016-11-15", + [_A]: _DRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7065,8 +7065,8 @@ export const se_DeleteSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSecurityGroupRequest(input, context), - Action: "DeleteSecurityGroup", - Version: "2016-11-15", + [_A]: _DSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7082,8 +7082,8 @@ export const se_DeleteSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSnapshotRequest(input, context), - Action: "DeleteSnapshot", - Version: "2016-11-15", + [_A]: _DS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7099,8 +7099,8 @@ export const se_DeleteSpotDatafeedSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSpotDatafeedSubscriptionRequest(input, context), - Action: "DeleteSpotDatafeedSubscription", - Version: "2016-11-15", + [_A]: _DSDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7116,8 +7116,8 @@ export const se_DeleteSubnetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSubnetRequest(input, context), - Action: "DeleteSubnet", - Version: "2016-11-15", + [_A]: _DSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7133,8 +7133,8 @@ export const se_DeleteSubnetCidrReservationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSubnetCidrReservationRequest(input, context), - Action: "DeleteSubnetCidrReservation", - Version: "2016-11-15", + [_A]: _DSCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7150,8 +7150,8 @@ export const se_DeleteTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTagsRequest(input, context), - Action: "DeleteTags", - Version: "2016-11-15", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7167,8 +7167,8 @@ export const se_DeleteTrafficMirrorFilterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTrafficMirrorFilterRequest(input, context), - Action: "DeleteTrafficMirrorFilter", - Version: "2016-11-15", + [_A]: _DTMF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7184,8 +7184,8 @@ export const se_DeleteTrafficMirrorFilterRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTrafficMirrorFilterRuleRequest(input, context), - Action: "DeleteTrafficMirrorFilterRule", - Version: "2016-11-15", + [_A]: _DTMFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7201,8 +7201,8 @@ export const se_DeleteTrafficMirrorSessionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTrafficMirrorSessionRequest(input, context), - Action: "DeleteTrafficMirrorSession", - Version: "2016-11-15", + [_A]: _DTMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7218,8 +7218,8 @@ export const se_DeleteTrafficMirrorTargetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTrafficMirrorTargetRequest(input, context), - Action: "DeleteTrafficMirrorTarget", - Version: "2016-11-15", + [_A]: _DTMT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7235,8 +7235,8 @@ export const se_DeleteTransitGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayRequest(input, context), - Action: "DeleteTransitGateway", - Version: "2016-11-15", + [_A]: _DTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7252,8 +7252,8 @@ export const se_DeleteTransitGatewayConnectCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayConnectRequest(input, context), - Action: "DeleteTransitGatewayConnect", - Version: "2016-11-15", + [_A]: _DTGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7269,8 +7269,8 @@ export const se_DeleteTransitGatewayConnectPeerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayConnectPeerRequest(input, context), - Action: "DeleteTransitGatewayConnectPeer", - Version: "2016-11-15", + [_A]: _DTGCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7286,8 +7286,8 @@ export const se_DeleteTransitGatewayMulticastDomainCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayMulticastDomainRequest(input, context), - Action: "DeleteTransitGatewayMulticastDomain", - Version: "2016-11-15", + [_A]: _DTGMD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7303,8 +7303,8 @@ export const se_DeleteTransitGatewayPeeringAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayPeeringAttachmentRequest(input, context), - Action: "DeleteTransitGatewayPeeringAttachment", - Version: "2016-11-15", + [_A]: _DTGPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7320,8 +7320,8 @@ export const se_DeleteTransitGatewayPolicyTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayPolicyTableRequest(input, context), - Action: "DeleteTransitGatewayPolicyTable", - Version: "2016-11-15", + [_A]: _DTGPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7337,8 +7337,8 @@ export const se_DeleteTransitGatewayPrefixListReferenceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayPrefixListReferenceRequest(input, context), - Action: "DeleteTransitGatewayPrefixListReference", - Version: "2016-11-15", + [_A]: _DTGPLR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7354,8 +7354,8 @@ export const se_DeleteTransitGatewayRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayRouteRequest(input, context), - Action: "DeleteTransitGatewayRoute", - Version: "2016-11-15", + [_A]: _DTGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7371,8 +7371,8 @@ export const se_DeleteTransitGatewayRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayRouteTableRequest(input, context), - Action: "DeleteTransitGatewayRouteTable", - Version: "2016-11-15", + [_A]: _DTGRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7388,8 +7388,8 @@ export const se_DeleteTransitGatewayRouteTableAnnouncementCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayRouteTableAnnouncementRequest(input, context), - Action: "DeleteTransitGatewayRouteTableAnnouncement", - Version: "2016-11-15", + [_A]: _DTGRTA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7405,8 +7405,8 @@ export const se_DeleteTransitGatewayVpcAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTransitGatewayVpcAttachmentRequest(input, context), - Action: "DeleteTransitGatewayVpcAttachment", - Version: "2016-11-15", + [_A]: _DTGVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7422,8 +7422,8 @@ export const se_DeleteVerifiedAccessEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVerifiedAccessEndpointRequest(input, context), - Action: "DeleteVerifiedAccessEndpoint", - Version: "2016-11-15", + [_A]: _DVAE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7439,8 +7439,8 @@ export const se_DeleteVerifiedAccessGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVerifiedAccessGroupRequest(input, context), - Action: "DeleteVerifiedAccessGroup", - Version: "2016-11-15", + [_A]: _DVAG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7456,8 +7456,8 @@ export const se_DeleteVerifiedAccessInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVerifiedAccessInstanceRequest(input, context), - Action: "DeleteVerifiedAccessInstance", - Version: "2016-11-15", + [_A]: _DVAI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7473,8 +7473,8 @@ export const se_DeleteVerifiedAccessTrustProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVerifiedAccessTrustProviderRequest(input, context), - Action: "DeleteVerifiedAccessTrustProvider", - Version: "2016-11-15", + [_A]: _DVATP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7490,8 +7490,8 @@ export const se_DeleteVolumeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVolumeRequest(input, context), - Action: "DeleteVolume", - Version: "2016-11-15", + [_A]: _DV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7507,8 +7507,8 @@ export const se_DeleteVpcCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpcRequest(input, context), - Action: "DeleteVpc", - Version: "2016-11-15", + [_A]: _DVe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7524,8 +7524,8 @@ export const se_DeleteVpcEndpointConnectionNotificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpcEndpointConnectionNotificationsRequest(input, context), - Action: "DeleteVpcEndpointConnectionNotifications", - Version: "2016-11-15", + [_A]: _DVECN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7541,8 +7541,8 @@ export const se_DeleteVpcEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpcEndpointsRequest(input, context), - Action: "DeleteVpcEndpoints", - Version: "2016-11-15", + [_A]: _DVE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7558,8 +7558,8 @@ export const se_DeleteVpcEndpointServiceConfigurationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpcEndpointServiceConfigurationsRequest(input, context), - Action: "DeleteVpcEndpointServiceConfigurations", - Version: "2016-11-15", + [_A]: _DVESC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7575,8 +7575,8 @@ export const se_DeleteVpcPeeringConnectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpcPeeringConnectionRequest(input, context), - Action: "DeleteVpcPeeringConnection", - Version: "2016-11-15", + [_A]: _DVPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7592,8 +7592,8 @@ export const se_DeleteVpnConnectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpnConnectionRequest(input, context), - Action: "DeleteVpnConnection", - Version: "2016-11-15", + [_A]: _DVC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7609,8 +7609,8 @@ export const se_DeleteVpnConnectionRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpnConnectionRouteRequest(input, context), - Action: "DeleteVpnConnectionRoute", - Version: "2016-11-15", + [_A]: _DVCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7626,8 +7626,8 @@ export const se_DeleteVpnGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVpnGatewayRequest(input, context), - Action: "DeleteVpnGateway", - Version: "2016-11-15", + [_A]: _DVG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7643,8 +7643,8 @@ export const se_DeprovisionByoipCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeprovisionByoipCidrRequest(input, context), - Action: "DeprovisionByoipCidr", - Version: "2016-11-15", + [_A]: _DBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7660,8 +7660,8 @@ export const se_DeprovisionIpamByoasnCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeprovisionIpamByoasnRequest(input, context), - Action: "DeprovisionIpamByoasn", - Version: "2016-11-15", + [_A]: _DIB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7677,8 +7677,8 @@ export const se_DeprovisionIpamPoolCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeprovisionIpamPoolCidrRequest(input, context), - Action: "DeprovisionIpamPoolCidr", - Version: "2016-11-15", + [_A]: _DIPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7694,8 +7694,8 @@ export const se_DeprovisionPublicIpv4PoolCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeprovisionPublicIpv4PoolCidrRequest(input, context), - Action: "DeprovisionPublicIpv4PoolCidr", - Version: "2016-11-15", + [_A]: _DPIPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7711,8 +7711,8 @@ export const se_DeregisterImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterImageRequest(input, context), - Action: "DeregisterImage", - Version: "2016-11-15", + [_A]: _DIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7728,8 +7728,8 @@ export const se_DeregisterInstanceEventNotificationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterInstanceEventNotificationAttributesRequest(input, context), - Action: "DeregisterInstanceEventNotificationAttributes", - Version: "2016-11-15", + [_A]: _DIENA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7745,8 +7745,8 @@ export const se_DeregisterTransitGatewayMulticastGroupMembersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterTransitGatewayMulticastGroupMembersRequest(input, context), - Action: "DeregisterTransitGatewayMulticastGroupMembers", - Version: "2016-11-15", + [_A]: _DTGMGM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7762,8 +7762,8 @@ export const se_DeregisterTransitGatewayMulticastGroupSourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterTransitGatewayMulticastGroupSourcesRequest(input, context), - Action: "DeregisterTransitGatewayMulticastGroupSources", - Version: "2016-11-15", + [_A]: _DTGMGS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7779,8 +7779,8 @@ export const se_DescribeAccountAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAccountAttributesRequest(input, context), - Action: "DescribeAccountAttributes", - Version: "2016-11-15", + [_A]: _DAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7796,8 +7796,8 @@ export const se_DescribeAddressesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAddressesRequest(input, context), - Action: "DescribeAddresses", - Version: "2016-11-15", + [_A]: _DA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7813,8 +7813,8 @@ export const se_DescribeAddressesAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAddressesAttributeRequest(input, context), - Action: "DescribeAddressesAttribute", - Version: "2016-11-15", + [_A]: _DAAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7830,8 +7830,8 @@ export const se_DescribeAddressTransfersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAddressTransfersRequest(input, context), - Action: "DescribeAddressTransfers", - Version: "2016-11-15", + [_A]: _DAT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7847,8 +7847,8 @@ export const se_DescribeAggregateIdFormatCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAggregateIdFormatRequest(input, context), - Action: "DescribeAggregateIdFormat", - Version: "2016-11-15", + [_A]: _DAIF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7864,8 +7864,8 @@ export const se_DescribeAvailabilityZonesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAvailabilityZonesRequest(input, context), - Action: "DescribeAvailabilityZones", - Version: "2016-11-15", + [_A]: _DAZ, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7881,8 +7881,8 @@ export const se_DescribeAwsNetworkPerformanceMetricSubscriptionsCommand = async let body: any; body = buildFormUrlencodedString({ ...se_DescribeAwsNetworkPerformanceMetricSubscriptionsRequest(input, context), - Action: "DescribeAwsNetworkPerformanceMetricSubscriptions", - Version: "2016-11-15", + [_A]: _DANPMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7898,8 +7898,8 @@ export const se_DescribeBundleTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeBundleTasksRequest(input, context), - Action: "DescribeBundleTasks", - Version: "2016-11-15", + [_A]: _DBT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7915,8 +7915,8 @@ export const se_DescribeByoipCidrsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeByoipCidrsRequest(input, context), - Action: "DescribeByoipCidrs", - Version: "2016-11-15", + [_A]: _DBCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7932,8 +7932,8 @@ export const se_DescribeCapacityBlockOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCapacityBlockOfferingsRequest(input, context), - Action: "DescribeCapacityBlockOfferings", - Version: "2016-11-15", + [_A]: _DCBO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7949,8 +7949,8 @@ export const se_DescribeCapacityReservationFleetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCapacityReservationFleetsRequest(input, context), - Action: "DescribeCapacityReservationFleets", - Version: "2016-11-15", + [_A]: _DCRF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7966,8 +7966,8 @@ export const se_DescribeCapacityReservationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCapacityReservationsRequest(input, context), - Action: "DescribeCapacityReservations", - Version: "2016-11-15", + [_A]: _DCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7983,8 +7983,8 @@ export const se_DescribeCarrierGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCarrierGatewaysRequest(input, context), - Action: "DescribeCarrierGateways", - Version: "2016-11-15", + [_A]: _DCGes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8000,8 +8000,8 @@ export const se_DescribeClassicLinkInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClassicLinkInstancesRequest(input, context), - Action: "DescribeClassicLinkInstances", - Version: "2016-11-15", + [_A]: _DCLI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8017,8 +8017,8 @@ export const se_DescribeClientVpnAuthorizationRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClientVpnAuthorizationRulesRequest(input, context), - Action: "DescribeClientVpnAuthorizationRules", - Version: "2016-11-15", + [_A]: _DCVAR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8034,8 +8034,8 @@ export const se_DescribeClientVpnConnectionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClientVpnConnectionsRequest(input, context), - Action: "DescribeClientVpnConnections", - Version: "2016-11-15", + [_A]: _DCVC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8051,8 +8051,8 @@ export const se_DescribeClientVpnEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClientVpnEndpointsRequest(input, context), - Action: "DescribeClientVpnEndpoints", - Version: "2016-11-15", + [_A]: _DCVEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8068,8 +8068,8 @@ export const se_DescribeClientVpnRoutesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClientVpnRoutesRequest(input, context), - Action: "DescribeClientVpnRoutes", - Version: "2016-11-15", + [_A]: _DCVRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8085,8 +8085,8 @@ export const se_DescribeClientVpnTargetNetworksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClientVpnTargetNetworksRequest(input, context), - Action: "DescribeClientVpnTargetNetworks", - Version: "2016-11-15", + [_A]: _DCVTN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8102,8 +8102,8 @@ export const se_DescribeCoipPoolsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCoipPoolsRequest(input, context), - Action: "DescribeCoipPools", - Version: "2016-11-15", + [_A]: _DCPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8119,8 +8119,8 @@ export const se_DescribeConversionTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeConversionTasksRequest(input, context), - Action: "DescribeConversionTasks", - Version: "2016-11-15", + [_A]: _DCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8136,8 +8136,8 @@ export const se_DescribeCustomerGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCustomerGatewaysRequest(input, context), - Action: "DescribeCustomerGateways", - Version: "2016-11-15", + [_A]: _DCGesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8153,8 +8153,8 @@ export const se_DescribeDhcpOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDhcpOptionsRequest(input, context), - Action: "DescribeDhcpOptions", - Version: "2016-11-15", + [_A]: _DDOe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8170,8 +8170,8 @@ export const se_DescribeEgressOnlyInternetGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEgressOnlyInternetGatewaysRequest(input, context), - Action: "DescribeEgressOnlyInternetGateways", - Version: "2016-11-15", + [_A]: _DEOIGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8187,8 +8187,8 @@ export const se_DescribeElasticGpusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeElasticGpusRequest(input, context), - Action: "DescribeElasticGpus", - Version: "2016-11-15", + [_A]: _DEG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8204,8 +8204,8 @@ export const se_DescribeExportImageTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeExportImageTasksRequest(input, context), - Action: "DescribeExportImageTasks", - Version: "2016-11-15", + [_A]: _DEIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8221,8 +8221,8 @@ export const se_DescribeExportTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeExportTasksRequest(input, context), - Action: "DescribeExportTasks", - Version: "2016-11-15", + [_A]: _DET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8238,8 +8238,8 @@ export const se_DescribeFastLaunchImagesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFastLaunchImagesRequest(input, context), - Action: "DescribeFastLaunchImages", - Version: "2016-11-15", + [_A]: _DFLI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8255,8 +8255,8 @@ export const se_DescribeFastSnapshotRestoresCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFastSnapshotRestoresRequest(input, context), - Action: "DescribeFastSnapshotRestores", - Version: "2016-11-15", + [_A]: _DFSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8272,8 +8272,8 @@ export const se_DescribeFleetHistoryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFleetHistoryRequest(input, context), - Action: "DescribeFleetHistory", - Version: "2016-11-15", + [_A]: _DFH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8289,8 +8289,8 @@ export const se_DescribeFleetInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFleetInstancesRequest(input, context), - Action: "DescribeFleetInstances", - Version: "2016-11-15", + [_A]: _DFIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8306,8 +8306,8 @@ export const se_DescribeFleetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFleetsRequest(input, context), - Action: "DescribeFleets", - Version: "2016-11-15", + [_A]: _DFe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8323,8 +8323,8 @@ export const se_DescribeFlowLogsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFlowLogsRequest(input, context), - Action: "DescribeFlowLogs", - Version: "2016-11-15", + [_A]: _DFLe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8340,8 +8340,8 @@ export const se_DescribeFpgaImageAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFpgaImageAttributeRequest(input, context), - Action: "DescribeFpgaImageAttribute", - Version: "2016-11-15", + [_A]: _DFIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8357,8 +8357,8 @@ export const se_DescribeFpgaImagesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeFpgaImagesRequest(input, context), - Action: "DescribeFpgaImages", - Version: "2016-11-15", + [_A]: _DFIes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8374,8 +8374,8 @@ export const se_DescribeHostReservationOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeHostReservationOfferingsRequest(input, context), - Action: "DescribeHostReservationOfferings", - Version: "2016-11-15", + [_A]: _DHRO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8391,8 +8391,8 @@ export const se_DescribeHostReservationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeHostReservationsRequest(input, context), - Action: "DescribeHostReservations", - Version: "2016-11-15", + [_A]: _DHR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8408,8 +8408,8 @@ export const se_DescribeHostsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeHostsRequest(input, context), - Action: "DescribeHosts", - Version: "2016-11-15", + [_A]: _DH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8425,8 +8425,8 @@ export const se_DescribeIamInstanceProfileAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIamInstanceProfileAssociationsRequest(input, context), - Action: "DescribeIamInstanceProfileAssociations", - Version: "2016-11-15", + [_A]: _DIIPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8442,8 +8442,8 @@ export const se_DescribeIdentityIdFormatCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIdentityIdFormatRequest(input, context), - Action: "DescribeIdentityIdFormat", - Version: "2016-11-15", + [_A]: _DIIF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8459,8 +8459,8 @@ export const se_DescribeIdFormatCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIdFormatRequest(input, context), - Action: "DescribeIdFormat", - Version: "2016-11-15", + [_A]: _DIF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8476,8 +8476,8 @@ export const se_DescribeImageAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeImageAttributeRequest(input, context), - Action: "DescribeImageAttribute", - Version: "2016-11-15", + [_A]: _DIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8493,8 +8493,8 @@ export const se_DescribeImagesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeImagesRequest(input, context), - Action: "DescribeImages", - Version: "2016-11-15", + [_A]: _DIes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8510,8 +8510,8 @@ export const se_DescribeImportImageTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeImportImageTasksRequest(input, context), - Action: "DescribeImportImageTasks", - Version: "2016-11-15", + [_A]: _DIIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8527,8 +8527,8 @@ export const se_DescribeImportSnapshotTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeImportSnapshotTasksRequest(input, context), - Action: "DescribeImportSnapshotTasks", - Version: "2016-11-15", + [_A]: _DIST, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8544,8 +8544,8 @@ export const se_DescribeInstanceAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceAttributeRequest(input, context), - Action: "DescribeInstanceAttribute", - Version: "2016-11-15", + [_A]: _DIAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8561,8 +8561,8 @@ export const se_DescribeInstanceConnectEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceConnectEndpointsRequest(input, context), - Action: "DescribeInstanceConnectEndpoints", - Version: "2016-11-15", + [_A]: _DICEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8578,8 +8578,8 @@ export const se_DescribeInstanceCreditSpecificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceCreditSpecificationsRequest(input, context), - Action: "DescribeInstanceCreditSpecifications", - Version: "2016-11-15", + [_A]: _DICS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8595,8 +8595,8 @@ export const se_DescribeInstanceEventNotificationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceEventNotificationAttributesRequest(input, context), - Action: "DescribeInstanceEventNotificationAttributes", - Version: "2016-11-15", + [_A]: _DIENAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8612,8 +8612,8 @@ export const se_DescribeInstanceEventWindowsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceEventWindowsRequest(input, context), - Action: "DescribeInstanceEventWindows", - Version: "2016-11-15", + [_A]: _DIEWe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8629,8 +8629,8 @@ export const se_DescribeInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstancesRequest(input, context), - Action: "DescribeInstances", - Version: "2016-11-15", + [_A]: _DIesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8646,8 +8646,8 @@ export const se_DescribeInstanceStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceStatusRequest(input, context), - Action: "DescribeInstanceStatus", - Version: "2016-11-15", + [_A]: _DISe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8663,8 +8663,8 @@ export const se_DescribeInstanceTopologyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceTopologyRequest(input, context), - Action: "DescribeInstanceTopology", - Version: "2016-11-15", + [_A]: _DIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8680,8 +8680,8 @@ export const se_DescribeInstanceTypeOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceTypeOfferingsRequest(input, context), - Action: "DescribeInstanceTypeOfferings", - Version: "2016-11-15", + [_A]: _DITO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8697,8 +8697,8 @@ export const se_DescribeInstanceTypesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstanceTypesRequest(input, context), - Action: "DescribeInstanceTypes", - Version: "2016-11-15", + [_A]: _DITe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8714,8 +8714,8 @@ export const se_DescribeInternetGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInternetGatewaysRequest(input, context), - Action: "DescribeInternetGateways", - Version: "2016-11-15", + [_A]: _DIGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8731,8 +8731,8 @@ export const se_DescribeIpamByoasnCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIpamByoasnRequest(input, context), - Action: "DescribeIpamByoasn", - Version: "2016-11-15", + [_A]: _DIBe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8748,8 +8748,8 @@ export const se_DescribeIpamPoolsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIpamPoolsRequest(input, context), - Action: "DescribeIpamPools", - Version: "2016-11-15", + [_A]: _DIPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8765,8 +8765,8 @@ export const se_DescribeIpamResourceDiscoveriesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIpamResourceDiscoveriesRequest(input, context), - Action: "DescribeIpamResourceDiscoveries", - Version: "2016-11-15", + [_A]: _DIRDe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8782,8 +8782,8 @@ export const se_DescribeIpamResourceDiscoveryAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIpamResourceDiscoveryAssociationsRequest(input, context), - Action: "DescribeIpamResourceDiscoveryAssociations", - Version: "2016-11-15", + [_A]: _DIRDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8799,8 +8799,8 @@ export const se_DescribeIpamsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIpamsRequest(input, context), - Action: "DescribeIpams", - Version: "2016-11-15", + [_A]: _DIescr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8816,8 +8816,8 @@ export const se_DescribeIpamScopesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIpamScopesRequest(input, context), - Action: "DescribeIpamScopes", - Version: "2016-11-15", + [_A]: _DISes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8833,8 +8833,8 @@ export const se_DescribeIpv6PoolsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIpv6PoolsRequest(input, context), - Action: "DescribeIpv6Pools", - Version: "2016-11-15", + [_A]: _DIPes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8850,8 +8850,8 @@ export const se_DescribeKeyPairsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeKeyPairsRequest(input, context), - Action: "DescribeKeyPairs", - Version: "2016-11-15", + [_A]: _DKPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8867,8 +8867,8 @@ export const se_DescribeLaunchTemplatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLaunchTemplatesRequest(input, context), - Action: "DescribeLaunchTemplates", - Version: "2016-11-15", + [_A]: _DLTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8884,8 +8884,8 @@ export const se_DescribeLaunchTemplateVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLaunchTemplateVersionsRequest(input, context), - Action: "DescribeLaunchTemplateVersions", - Version: "2016-11-15", + [_A]: _DLTVe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8901,8 +8901,8 @@ export const se_DescribeLocalGatewayRouteTablesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLocalGatewayRouteTablesRequest(input, context), - Action: "DescribeLocalGatewayRouteTables", - Version: "2016-11-15", + [_A]: _DLGRTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8918,8 +8918,8 @@ export const se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsC let body: any; body = buildFormUrlencodedString({ ...se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest(input, context), - Action: "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", - Version: "2016-11-15", + [_A]: _DLGRTVIGAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8935,8 +8935,8 @@ export const se_DescribeLocalGatewayRouteTableVpcAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLocalGatewayRouteTableVpcAssociationsRequest(input, context), - Action: "DescribeLocalGatewayRouteTableVpcAssociations", - Version: "2016-11-15", + [_A]: _DLGRTVAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8952,8 +8952,8 @@ export const se_DescribeLocalGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLocalGatewaysRequest(input, context), - Action: "DescribeLocalGateways", - Version: "2016-11-15", + [_A]: _DLG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8969,8 +8969,8 @@ export const se_DescribeLocalGatewayVirtualInterfaceGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLocalGatewayVirtualInterfaceGroupsRequest(input, context), - Action: "DescribeLocalGatewayVirtualInterfaceGroups", - Version: "2016-11-15", + [_A]: _DLGVIG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -8986,8 +8986,8 @@ export const se_DescribeLocalGatewayVirtualInterfacesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLocalGatewayVirtualInterfacesRequest(input, context), - Action: "DescribeLocalGatewayVirtualInterfaces", - Version: "2016-11-15", + [_A]: _DLGVI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9003,8 +9003,8 @@ export const se_DescribeLockedSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLockedSnapshotsRequest(input, context), - Action: "DescribeLockedSnapshots", - Version: "2016-11-15", + [_A]: _DLS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9020,8 +9020,8 @@ export const se_DescribeManagedPrefixListsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeManagedPrefixListsRequest(input, context), - Action: "DescribeManagedPrefixLists", - Version: "2016-11-15", + [_A]: _DMPLe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9037,8 +9037,8 @@ export const se_DescribeMovingAddressesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeMovingAddressesRequest(input, context), - Action: "DescribeMovingAddresses", - Version: "2016-11-15", + [_A]: _DMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9054,8 +9054,8 @@ export const se_DescribeNatGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNatGatewaysRequest(input, context), - Action: "DescribeNatGateways", - Version: "2016-11-15", + [_A]: _DNGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9071,8 +9071,8 @@ export const se_DescribeNetworkAclsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkAclsRequest(input, context), - Action: "DescribeNetworkAcls", - Version: "2016-11-15", + [_A]: _DNAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9088,8 +9088,8 @@ export const se_DescribeNetworkInsightsAccessScopeAnalysesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkInsightsAccessScopeAnalysesRequest(input, context), - Action: "DescribeNetworkInsightsAccessScopeAnalyses", - Version: "2016-11-15", + [_A]: _DNIASAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9105,8 +9105,8 @@ export const se_DescribeNetworkInsightsAccessScopesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkInsightsAccessScopesRequest(input, context), - Action: "DescribeNetworkInsightsAccessScopes", - Version: "2016-11-15", + [_A]: _DNIASe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9122,8 +9122,8 @@ export const se_DescribeNetworkInsightsAnalysesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkInsightsAnalysesRequest(input, context), - Action: "DescribeNetworkInsightsAnalyses", - Version: "2016-11-15", + [_A]: _DNIAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9139,8 +9139,8 @@ export const se_DescribeNetworkInsightsPathsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkInsightsPathsRequest(input, context), - Action: "DescribeNetworkInsightsPaths", - Version: "2016-11-15", + [_A]: _DNIPes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9156,8 +9156,8 @@ export const se_DescribeNetworkInterfaceAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkInterfaceAttributeRequest(input, context), - Action: "DescribeNetworkInterfaceAttribute", - Version: "2016-11-15", + [_A]: _DNIAes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9173,8 +9173,8 @@ export const se_DescribeNetworkInterfacePermissionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkInterfacePermissionsRequest(input, context), - Action: "DescribeNetworkInterfacePermissions", - Version: "2016-11-15", + [_A]: _DNIPesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9190,8 +9190,8 @@ export const se_DescribeNetworkInterfacesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNetworkInterfacesRequest(input, context), - Action: "DescribeNetworkInterfaces", - Version: "2016-11-15", + [_A]: _DNIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9207,8 +9207,8 @@ export const se_DescribePlacementGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePlacementGroupsRequest(input, context), - Action: "DescribePlacementGroups", - Version: "2016-11-15", + [_A]: _DPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9224,8 +9224,8 @@ export const se_DescribePrefixListsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePrefixListsRequest(input, context), - Action: "DescribePrefixLists", - Version: "2016-11-15", + [_A]: _DPL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9241,8 +9241,8 @@ export const se_DescribePrincipalIdFormatCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePrincipalIdFormatRequest(input, context), - Action: "DescribePrincipalIdFormat", - Version: "2016-11-15", + [_A]: _DPIF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9258,8 +9258,8 @@ export const se_DescribePublicIpv4PoolsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePublicIpv4PoolsRequest(input, context), - Action: "DescribePublicIpv4Pools", - Version: "2016-11-15", + [_A]: _DPIPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9275,8 +9275,8 @@ export const se_DescribeRegionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeRegionsRequest(input, context), - Action: "DescribeRegions", - Version: "2016-11-15", + [_A]: _DRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9292,8 +9292,8 @@ export const se_DescribeReplaceRootVolumeTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReplaceRootVolumeTasksRequest(input, context), - Action: "DescribeReplaceRootVolumeTasks", - Version: "2016-11-15", + [_A]: _DRRVT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9309,8 +9309,8 @@ export const se_DescribeReservedInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedInstancesRequest(input, context), - Action: "DescribeReservedInstances", - Version: "2016-11-15", + [_A]: _DRI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9326,8 +9326,8 @@ export const se_DescribeReservedInstancesListingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedInstancesListingsRequest(input, context), - Action: "DescribeReservedInstancesListings", - Version: "2016-11-15", + [_A]: _DRIL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9343,8 +9343,8 @@ export const se_DescribeReservedInstancesModificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedInstancesModificationsRequest(input, context), - Action: "DescribeReservedInstancesModifications", - Version: "2016-11-15", + [_A]: _DRIM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9360,8 +9360,8 @@ export const se_DescribeReservedInstancesOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedInstancesOfferingsRequest(input, context), - Action: "DescribeReservedInstancesOfferings", - Version: "2016-11-15", + [_A]: _DRIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9377,8 +9377,8 @@ export const se_DescribeRouteTablesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeRouteTablesRequest(input, context), - Action: "DescribeRouteTables", - Version: "2016-11-15", + [_A]: _DRTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9394,8 +9394,8 @@ export const se_DescribeScheduledInstanceAvailabilityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeScheduledInstanceAvailabilityRequest(input, context), - Action: "DescribeScheduledInstanceAvailability", - Version: "2016-11-15", + [_A]: _DSIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9411,8 +9411,8 @@ export const se_DescribeScheduledInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeScheduledInstancesRequest(input, context), - Action: "DescribeScheduledInstances", - Version: "2016-11-15", + [_A]: _DSI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9428,8 +9428,8 @@ export const se_DescribeSecurityGroupReferencesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSecurityGroupReferencesRequest(input, context), - Action: "DescribeSecurityGroupReferences", - Version: "2016-11-15", + [_A]: _DSGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9445,8 +9445,8 @@ export const se_DescribeSecurityGroupRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSecurityGroupRulesRequest(input, context), - Action: "DescribeSecurityGroupRules", - Version: "2016-11-15", + [_A]: _DSGRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9462,8 +9462,8 @@ export const se_DescribeSecurityGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSecurityGroupsRequest(input, context), - Action: "DescribeSecurityGroups", - Version: "2016-11-15", + [_A]: _DSGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9479,8 +9479,8 @@ export const se_DescribeSnapshotAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSnapshotAttributeRequest(input, context), - Action: "DescribeSnapshotAttribute", - Version: "2016-11-15", + [_A]: _DSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9496,8 +9496,8 @@ export const se_DescribeSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSnapshotsRequest(input, context), - Action: "DescribeSnapshots", - Version: "2016-11-15", + [_A]: _DSes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9513,8 +9513,8 @@ export const se_DescribeSnapshotTierStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSnapshotTierStatusRequest(input, context), - Action: "DescribeSnapshotTierStatus", - Version: "2016-11-15", + [_A]: _DSTS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9530,8 +9530,8 @@ export const se_DescribeSpotDatafeedSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSpotDatafeedSubscriptionRequest(input, context), - Action: "DescribeSpotDatafeedSubscription", - Version: "2016-11-15", + [_A]: _DSDSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9547,8 +9547,8 @@ export const se_DescribeSpotFleetInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSpotFleetInstancesRequest(input, context), - Action: "DescribeSpotFleetInstances", - Version: "2016-11-15", + [_A]: _DSFI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9564,8 +9564,8 @@ export const se_DescribeSpotFleetRequestHistoryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSpotFleetRequestHistoryRequest(input, context), - Action: "DescribeSpotFleetRequestHistory", - Version: "2016-11-15", + [_A]: _DSFRH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9581,8 +9581,8 @@ export const se_DescribeSpotFleetRequestsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSpotFleetRequestsRequest(input, context), - Action: "DescribeSpotFleetRequests", - Version: "2016-11-15", + [_A]: _DSFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9598,8 +9598,8 @@ export const se_DescribeSpotInstanceRequestsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSpotInstanceRequestsRequest(input, context), - Action: "DescribeSpotInstanceRequests", - Version: "2016-11-15", + [_A]: _DSIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9615,8 +9615,8 @@ export const se_DescribeSpotPriceHistoryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSpotPriceHistoryRequest(input, context), - Action: "DescribeSpotPriceHistory", - Version: "2016-11-15", + [_A]: _DSPH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9632,8 +9632,8 @@ export const se_DescribeStaleSecurityGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStaleSecurityGroupsRequest(input, context), - Action: "DescribeStaleSecurityGroups", - Version: "2016-11-15", + [_A]: _DSSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9649,8 +9649,8 @@ export const se_DescribeStoreImageTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeStoreImageTasksRequest(input, context), - Action: "DescribeStoreImageTasks", - Version: "2016-11-15", + [_A]: _DSIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9666,8 +9666,8 @@ export const se_DescribeSubnetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSubnetsRequest(input, context), - Action: "DescribeSubnets", - Version: "2016-11-15", + [_A]: _DSesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9683,8 +9683,8 @@ export const se_DescribeTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTagsRequest(input, context), - Action: "DescribeTags", - Version: "2016-11-15", + [_A]: _DTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9700,8 +9700,8 @@ export const se_DescribeTrafficMirrorFiltersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrafficMirrorFiltersRequest(input, context), - Action: "DescribeTrafficMirrorFilters", - Version: "2016-11-15", + [_A]: _DTMFe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9717,8 +9717,8 @@ export const se_DescribeTrafficMirrorSessionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrafficMirrorSessionsRequest(input, context), - Action: "DescribeTrafficMirrorSessions", - Version: "2016-11-15", + [_A]: _DTMSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9734,8 +9734,8 @@ export const se_DescribeTrafficMirrorTargetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrafficMirrorTargetsRequest(input, context), - Action: "DescribeTrafficMirrorTargets", - Version: "2016-11-15", + [_A]: _DTMTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9751,8 +9751,8 @@ export const se_DescribeTransitGatewayAttachmentsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayAttachmentsRequest(input, context), - Action: "DescribeTransitGatewayAttachments", - Version: "2016-11-15", + [_A]: _DTGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9768,8 +9768,8 @@ export const se_DescribeTransitGatewayConnectPeersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayConnectPeersRequest(input, context), - Action: "DescribeTransitGatewayConnectPeers", - Version: "2016-11-15", + [_A]: _DTGCPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9785,8 +9785,8 @@ export const se_DescribeTransitGatewayConnectsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayConnectsRequest(input, context), - Action: "DescribeTransitGatewayConnects", - Version: "2016-11-15", + [_A]: _DTGCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9802,8 +9802,8 @@ export const se_DescribeTransitGatewayMulticastDomainsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayMulticastDomainsRequest(input, context), - Action: "DescribeTransitGatewayMulticastDomains", - Version: "2016-11-15", + [_A]: _DTGMDe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9819,8 +9819,8 @@ export const se_DescribeTransitGatewayPeeringAttachmentsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayPeeringAttachmentsRequest(input, context), - Action: "DescribeTransitGatewayPeeringAttachments", - Version: "2016-11-15", + [_A]: _DTGPAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9836,8 +9836,8 @@ export const se_DescribeTransitGatewayPolicyTablesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayPolicyTablesRequest(input, context), - Action: "DescribeTransitGatewayPolicyTables", - Version: "2016-11-15", + [_A]: _DTGPTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9853,8 +9853,8 @@ export const se_DescribeTransitGatewayRouteTableAnnouncementsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayRouteTableAnnouncementsRequest(input, context), - Action: "DescribeTransitGatewayRouteTableAnnouncements", - Version: "2016-11-15", + [_A]: _DTGRTAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9870,8 +9870,8 @@ export const se_DescribeTransitGatewayRouteTablesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayRouteTablesRequest(input, context), - Action: "DescribeTransitGatewayRouteTables", - Version: "2016-11-15", + [_A]: _DTGRTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9887,8 +9887,8 @@ export const se_DescribeTransitGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewaysRequest(input, context), - Action: "DescribeTransitGateways", - Version: "2016-11-15", + [_A]: _DTGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9904,8 +9904,8 @@ export const se_DescribeTransitGatewayVpcAttachmentsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTransitGatewayVpcAttachmentsRequest(input, context), - Action: "DescribeTransitGatewayVpcAttachments", - Version: "2016-11-15", + [_A]: _DTGVAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9921,8 +9921,8 @@ export const se_DescribeTrunkInterfaceAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrunkInterfaceAssociationsRequest(input, context), - Action: "DescribeTrunkInterfaceAssociations", - Version: "2016-11-15", + [_A]: _DTIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9938,8 +9938,8 @@ export const se_DescribeVerifiedAccessEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVerifiedAccessEndpointsRequest(input, context), - Action: "DescribeVerifiedAccessEndpoints", - Version: "2016-11-15", + [_A]: _DVAEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9955,8 +9955,8 @@ export const se_DescribeVerifiedAccessGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVerifiedAccessGroupsRequest(input, context), - Action: "DescribeVerifiedAccessGroups", - Version: "2016-11-15", + [_A]: _DVAGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9972,8 +9972,8 @@ export const se_DescribeVerifiedAccessInstanceLoggingConfigurationsCommand = asy let body: any; body = buildFormUrlencodedString({ ...se_DescribeVerifiedAccessInstanceLoggingConfigurationsRequest(input, context), - Action: "DescribeVerifiedAccessInstanceLoggingConfigurations", - Version: "2016-11-15", + [_A]: _DVAILC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -9989,8 +9989,8 @@ export const se_DescribeVerifiedAccessInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVerifiedAccessInstancesRequest(input, context), - Action: "DescribeVerifiedAccessInstances", - Version: "2016-11-15", + [_A]: _DVAIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10006,8 +10006,8 @@ export const se_DescribeVerifiedAccessTrustProvidersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVerifiedAccessTrustProvidersRequest(input, context), - Action: "DescribeVerifiedAccessTrustProviders", - Version: "2016-11-15", + [_A]: _DVATPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10023,8 +10023,8 @@ export const se_DescribeVolumeAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVolumeAttributeRequest(input, context), - Action: "DescribeVolumeAttribute", - Version: "2016-11-15", + [_A]: _DVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10040,8 +10040,8 @@ export const se_DescribeVolumesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVolumesRequest(input, context), - Action: "DescribeVolumes", - Version: "2016-11-15", + [_A]: _DVes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10057,8 +10057,8 @@ export const se_DescribeVolumesModificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVolumesModificationsRequest(input, context), - Action: "DescribeVolumesModifications", - Version: "2016-11-15", + [_A]: _DVM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10074,8 +10074,8 @@ export const se_DescribeVolumeStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVolumeStatusRequest(input, context), - Action: "DescribeVolumeStatus", - Version: "2016-11-15", + [_A]: _DVS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10091,8 +10091,8 @@ export const se_DescribeVpcAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcAttributeRequest(input, context), - Action: "DescribeVpcAttribute", - Version: "2016-11-15", + [_A]: _DVAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10108,8 +10108,8 @@ export const se_DescribeVpcClassicLinkCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcClassicLinkRequest(input, context), - Action: "DescribeVpcClassicLink", - Version: "2016-11-15", + [_A]: _DVCL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10125,8 +10125,8 @@ export const se_DescribeVpcClassicLinkDnsSupportCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcClassicLinkDnsSupportRequest(input, context), - Action: "DescribeVpcClassicLinkDnsSupport", - Version: "2016-11-15", + [_A]: _DVCLDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10142,8 +10142,8 @@ export const se_DescribeVpcEndpointConnectionNotificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcEndpointConnectionNotificationsRequest(input, context), - Action: "DescribeVpcEndpointConnectionNotifications", - Version: "2016-11-15", + [_A]: _DVECNe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10159,8 +10159,8 @@ export const se_DescribeVpcEndpointConnectionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcEndpointConnectionsRequest(input, context), - Action: "DescribeVpcEndpointConnections", - Version: "2016-11-15", + [_A]: _DVEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10176,8 +10176,8 @@ export const se_DescribeVpcEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcEndpointsRequest(input, context), - Action: "DescribeVpcEndpoints", - Version: "2016-11-15", + [_A]: _DVEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10193,8 +10193,8 @@ export const se_DescribeVpcEndpointServiceConfigurationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcEndpointServiceConfigurationsRequest(input, context), - Action: "DescribeVpcEndpointServiceConfigurations", - Version: "2016-11-15", + [_A]: _DVESCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10210,8 +10210,8 @@ export const se_DescribeVpcEndpointServicePermissionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcEndpointServicePermissionsRequest(input, context), - Action: "DescribeVpcEndpointServicePermissions", - Version: "2016-11-15", + [_A]: _DVESP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10227,8 +10227,8 @@ export const se_DescribeVpcEndpointServicesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcEndpointServicesRequest(input, context), - Action: "DescribeVpcEndpointServices", - Version: "2016-11-15", + [_A]: _DVES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10244,8 +10244,8 @@ export const se_DescribeVpcPeeringConnectionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcPeeringConnectionsRequest(input, context), - Action: "DescribeVpcPeeringConnections", - Version: "2016-11-15", + [_A]: _DVPCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10261,8 +10261,8 @@ export const se_DescribeVpcsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpcsRequest(input, context), - Action: "DescribeVpcs", - Version: "2016-11-15", + [_A]: _DVesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10278,8 +10278,8 @@ export const se_DescribeVpnConnectionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpnConnectionsRequest(input, context), - Action: "DescribeVpnConnections", - Version: "2016-11-15", + [_A]: _DVCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10295,8 +10295,8 @@ export const se_DescribeVpnGatewaysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeVpnGatewaysRequest(input, context), - Action: "DescribeVpnGateways", - Version: "2016-11-15", + [_A]: _DVGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10312,8 +10312,8 @@ export const se_DetachClassicLinkVpcCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachClassicLinkVpcRequest(input, context), - Action: "DetachClassicLinkVpc", - Version: "2016-11-15", + [_A]: _DCLV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10329,8 +10329,8 @@ export const se_DetachInternetGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachInternetGatewayRequest(input, context), - Action: "DetachInternetGateway", - Version: "2016-11-15", + [_A]: _DIGet, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10346,8 +10346,8 @@ export const se_DetachNetworkInterfaceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachNetworkInterfaceRequest(input, context), - Action: "DetachNetworkInterface", - Version: "2016-11-15", + [_A]: _DNIet, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10363,8 +10363,8 @@ export const se_DetachVerifiedAccessTrustProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachVerifiedAccessTrustProviderRequest(input, context), - Action: "DetachVerifiedAccessTrustProvider", - Version: "2016-11-15", + [_A]: _DVATPet, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10380,8 +10380,8 @@ export const se_DetachVolumeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachVolumeRequest(input, context), - Action: "DetachVolume", - Version: "2016-11-15", + [_A]: _DVet, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10397,8 +10397,8 @@ export const se_DetachVpnGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachVpnGatewayRequest(input, context), - Action: "DetachVpnGateway", - Version: "2016-11-15", + [_A]: _DVGet, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10414,8 +10414,8 @@ export const se_DisableAddressTransferCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableAddressTransferRequest(input, context), - Action: "DisableAddressTransfer", - Version: "2016-11-15", + [_A]: _DATi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10431,8 +10431,8 @@ export const se_DisableAwsNetworkPerformanceMetricSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableAwsNetworkPerformanceMetricSubscriptionRequest(input, context), - Action: "DisableAwsNetworkPerformanceMetricSubscription", - Version: "2016-11-15", + [_A]: _DANPMSi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10448,8 +10448,8 @@ export const se_DisableEbsEncryptionByDefaultCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableEbsEncryptionByDefaultRequest(input, context), - Action: "DisableEbsEncryptionByDefault", - Version: "2016-11-15", + [_A]: _DEEBD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10465,8 +10465,8 @@ export const se_DisableFastLaunchCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableFastLaunchRequest(input, context), - Action: "DisableFastLaunch", - Version: "2016-11-15", + [_A]: _DFLi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10482,8 +10482,8 @@ export const se_DisableFastSnapshotRestoresCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableFastSnapshotRestoresRequest(input, context), - Action: "DisableFastSnapshotRestores", - Version: "2016-11-15", + [_A]: _DFSRi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10499,8 +10499,8 @@ export const se_DisableImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableImageRequest(input, context), - Action: "DisableImage", - Version: "2016-11-15", + [_A]: _DIi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10516,8 +10516,8 @@ export const se_DisableImageBlockPublicAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableImageBlockPublicAccessRequest(input, context), - Action: "DisableImageBlockPublicAccess", - Version: "2016-11-15", + [_A]: _DIBPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10533,8 +10533,8 @@ export const se_DisableImageDeprecationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableImageDeprecationRequest(input, context), - Action: "DisableImageDeprecation", - Version: "2016-11-15", + [_A]: _DID, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10550,8 +10550,8 @@ export const se_DisableIpamOrganizationAdminAccountCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableIpamOrganizationAdminAccountRequest(input, context), - Action: "DisableIpamOrganizationAdminAccount", - Version: "2016-11-15", + [_A]: _DIOAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10567,8 +10567,8 @@ export const se_DisableSerialConsoleAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableSerialConsoleAccessRequest(input, context), - Action: "DisableSerialConsoleAccess", - Version: "2016-11-15", + [_A]: _DSCA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10584,8 +10584,8 @@ export const se_DisableSnapshotBlockPublicAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableSnapshotBlockPublicAccessRequest(input, context), - Action: "DisableSnapshotBlockPublicAccess", - Version: "2016-11-15", + [_A]: _DSBPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10601,8 +10601,8 @@ export const se_DisableTransitGatewayRouteTablePropagationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableTransitGatewayRouteTablePropagationRequest(input, context), - Action: "DisableTransitGatewayRouteTablePropagation", - Version: "2016-11-15", + [_A]: _DTGRTP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10618,8 +10618,8 @@ export const se_DisableVgwRoutePropagationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableVgwRoutePropagationRequest(input, context), - Action: "DisableVgwRoutePropagation", - Version: "2016-11-15", + [_A]: _DVRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10635,8 +10635,8 @@ export const se_DisableVpcClassicLinkCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableVpcClassicLinkRequest(input, context), - Action: "DisableVpcClassicLink", - Version: "2016-11-15", + [_A]: _DVCLi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10652,8 +10652,8 @@ export const se_DisableVpcClassicLinkDnsSupportCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableVpcClassicLinkDnsSupportRequest(input, context), - Action: "DisableVpcClassicLinkDnsSupport", - Version: "2016-11-15", + [_A]: _DVCLDSi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10669,8 +10669,8 @@ export const se_DisassociateAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateAddressRequest(input, context), - Action: "DisassociateAddress", - Version: "2016-11-15", + [_A]: _DAi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10686,8 +10686,8 @@ export const se_DisassociateClientVpnTargetNetworkCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateClientVpnTargetNetworkRequest(input, context), - Action: "DisassociateClientVpnTargetNetwork", - Version: "2016-11-15", + [_A]: _DCVTNi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10703,8 +10703,8 @@ export const se_DisassociateEnclaveCertificateIamRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateEnclaveCertificateIamRoleRequest(input, context), - Action: "DisassociateEnclaveCertificateIamRole", - Version: "2016-11-15", + [_A]: _DECIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10720,8 +10720,8 @@ export const se_DisassociateIamInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateIamInstanceProfileRequest(input, context), - Action: "DisassociateIamInstanceProfile", - Version: "2016-11-15", + [_A]: _DIIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10737,8 +10737,8 @@ export const se_DisassociateInstanceEventWindowCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateInstanceEventWindowRequest(input, context), - Action: "DisassociateInstanceEventWindow", - Version: "2016-11-15", + [_A]: _DIEWi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10754,8 +10754,8 @@ export const se_DisassociateIpamByoasnCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateIpamByoasnRequest(input, context), - Action: "DisassociateIpamByoasn", - Version: "2016-11-15", + [_A]: _DIBi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10771,8 +10771,8 @@ export const se_DisassociateIpamResourceDiscoveryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateIpamResourceDiscoveryRequest(input, context), - Action: "DisassociateIpamResourceDiscovery", - Version: "2016-11-15", + [_A]: _DIRDi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10788,8 +10788,8 @@ export const se_DisassociateNatGatewayAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateNatGatewayAddressRequest(input, context), - Action: "DisassociateNatGatewayAddress", - Version: "2016-11-15", + [_A]: _DNGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10805,8 +10805,8 @@ export const se_DisassociateRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateRouteTableRequest(input, context), - Action: "DisassociateRouteTable", - Version: "2016-11-15", + [_A]: _DRTi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10822,8 +10822,8 @@ export const se_DisassociateSubnetCidrBlockCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateSubnetCidrBlockRequest(input, context), - Action: "DisassociateSubnetCidrBlock", - Version: "2016-11-15", + [_A]: _DSCB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10839,8 +10839,8 @@ export const se_DisassociateTransitGatewayMulticastDomainCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateTransitGatewayMulticastDomainRequest(input, context), - Action: "DisassociateTransitGatewayMulticastDomain", - Version: "2016-11-15", + [_A]: _DTGMDi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10856,8 +10856,8 @@ export const se_DisassociateTransitGatewayPolicyTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateTransitGatewayPolicyTableRequest(input, context), - Action: "DisassociateTransitGatewayPolicyTable", - Version: "2016-11-15", + [_A]: _DTGPTi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10873,8 +10873,8 @@ export const se_DisassociateTransitGatewayRouteTableCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateTransitGatewayRouteTableRequest(input, context), - Action: "DisassociateTransitGatewayRouteTable", - Version: "2016-11-15", + [_A]: _DTGRTi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10890,8 +10890,8 @@ export const se_DisassociateTrunkInterfaceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateTrunkInterfaceRequest(input, context), - Action: "DisassociateTrunkInterface", - Version: "2016-11-15", + [_A]: _DTI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10907,8 +10907,8 @@ export const se_DisassociateVpcCidrBlockCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateVpcCidrBlockRequest(input, context), - Action: "DisassociateVpcCidrBlock", - Version: "2016-11-15", + [_A]: _DVCB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10924,8 +10924,8 @@ export const se_EnableAddressTransferCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableAddressTransferRequest(input, context), - Action: "EnableAddressTransfer", - Version: "2016-11-15", + [_A]: _EAT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10941,8 +10941,8 @@ export const se_EnableAwsNetworkPerformanceMetricSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableAwsNetworkPerformanceMetricSubscriptionRequest(input, context), - Action: "EnableAwsNetworkPerformanceMetricSubscription", - Version: "2016-11-15", + [_A]: _EANPMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10958,8 +10958,8 @@ export const se_EnableEbsEncryptionByDefaultCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableEbsEncryptionByDefaultRequest(input, context), - Action: "EnableEbsEncryptionByDefault", - Version: "2016-11-15", + [_A]: _EEEBD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10975,8 +10975,8 @@ export const se_EnableFastLaunchCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableFastLaunchRequest(input, context), - Action: "EnableFastLaunch", - Version: "2016-11-15", + [_A]: _EFL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -10992,8 +10992,8 @@ export const se_EnableFastSnapshotRestoresCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableFastSnapshotRestoresRequest(input, context), - Action: "EnableFastSnapshotRestores", - Version: "2016-11-15", + [_A]: _EFSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11009,8 +11009,8 @@ export const se_EnableImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableImageRequest(input, context), - Action: "EnableImage", - Version: "2016-11-15", + [_A]: _EI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11026,8 +11026,8 @@ export const se_EnableImageBlockPublicAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableImageBlockPublicAccessRequest(input, context), - Action: "EnableImageBlockPublicAccess", - Version: "2016-11-15", + [_A]: _EIBPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11043,8 +11043,8 @@ export const se_EnableImageDeprecationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableImageDeprecationRequest(input, context), - Action: "EnableImageDeprecation", - Version: "2016-11-15", + [_A]: _EID, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11060,8 +11060,8 @@ export const se_EnableIpamOrganizationAdminAccountCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableIpamOrganizationAdminAccountRequest(input, context), - Action: "EnableIpamOrganizationAdminAccount", - Version: "2016-11-15", + [_A]: _EIOAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11077,8 +11077,8 @@ export const se_EnableReachabilityAnalyzerOrganizationSharingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableReachabilityAnalyzerOrganizationSharingRequest(input, context), - Action: "EnableReachabilityAnalyzerOrganizationSharing", - Version: "2016-11-15", + [_A]: _ERAOS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11094,8 +11094,8 @@ export const se_EnableSerialConsoleAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableSerialConsoleAccessRequest(input, context), - Action: "EnableSerialConsoleAccess", - Version: "2016-11-15", + [_A]: _ESCA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11111,8 +11111,8 @@ export const se_EnableSnapshotBlockPublicAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableSnapshotBlockPublicAccessRequest(input, context), - Action: "EnableSnapshotBlockPublicAccess", - Version: "2016-11-15", + [_A]: _ESBPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11128,8 +11128,8 @@ export const se_EnableTransitGatewayRouteTablePropagationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableTransitGatewayRouteTablePropagationRequest(input, context), - Action: "EnableTransitGatewayRouteTablePropagation", - Version: "2016-11-15", + [_A]: _ETGRTP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11145,8 +11145,8 @@ export const se_EnableVgwRoutePropagationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableVgwRoutePropagationRequest(input, context), - Action: "EnableVgwRoutePropagation", - Version: "2016-11-15", + [_A]: _EVRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11162,8 +11162,8 @@ export const se_EnableVolumeIOCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableVolumeIORequest(input, context), - Action: "EnableVolumeIO", - Version: "2016-11-15", + [_A]: _EVIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11179,8 +11179,8 @@ export const se_EnableVpcClassicLinkCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableVpcClassicLinkRequest(input, context), - Action: "EnableVpcClassicLink", - Version: "2016-11-15", + [_A]: _EVCL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11196,8 +11196,8 @@ export const se_EnableVpcClassicLinkDnsSupportCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableVpcClassicLinkDnsSupportRequest(input, context), - Action: "EnableVpcClassicLinkDnsSupport", - Version: "2016-11-15", + [_A]: _EVCLDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11213,8 +11213,8 @@ export const se_ExportClientVpnClientCertificateRevocationListCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExportClientVpnClientCertificateRevocationListRequest(input, context), - Action: "ExportClientVpnClientCertificateRevocationList", - Version: "2016-11-15", + [_A]: _ECVCCRL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11230,8 +11230,8 @@ export const se_ExportClientVpnClientConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExportClientVpnClientConfigurationRequest(input, context), - Action: "ExportClientVpnClientConfiguration", - Version: "2016-11-15", + [_A]: _ECVCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11247,8 +11247,8 @@ export const se_ExportImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExportImageRequest(input, context), - Action: "ExportImage", - Version: "2016-11-15", + [_A]: _EIx, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11264,8 +11264,8 @@ export const se_ExportTransitGatewayRoutesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExportTransitGatewayRoutesRequest(input, context), - Action: "ExportTransitGatewayRoutes", - Version: "2016-11-15", + [_A]: _ETGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11281,8 +11281,8 @@ export const se_GetAssociatedEnclaveCertificateIamRolesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetAssociatedEnclaveCertificateIamRolesRequest(input, context), - Action: "GetAssociatedEnclaveCertificateIamRoles", - Version: "2016-11-15", + [_A]: _GAECIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11298,8 +11298,8 @@ export const se_GetAssociatedIpv6PoolCidrsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetAssociatedIpv6PoolCidrsRequest(input, context), - Action: "GetAssociatedIpv6PoolCidrs", - Version: "2016-11-15", + [_A]: _GAIPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11315,8 +11315,8 @@ export const se_GetAwsNetworkPerformanceDataCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetAwsNetworkPerformanceDataRequest(input, context), - Action: "GetAwsNetworkPerformanceData", - Version: "2016-11-15", + [_A]: _GANPD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11332,8 +11332,8 @@ export const se_GetCapacityReservationUsageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetCapacityReservationUsageRequest(input, context), - Action: "GetCapacityReservationUsage", - Version: "2016-11-15", + [_A]: _GCRU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11349,8 +11349,8 @@ export const se_GetCoipPoolUsageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetCoipPoolUsageRequest(input, context), - Action: "GetCoipPoolUsage", - Version: "2016-11-15", + [_A]: _GCPU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11366,8 +11366,8 @@ export const se_GetConsoleOutputCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetConsoleOutputRequest(input, context), - Action: "GetConsoleOutput", - Version: "2016-11-15", + [_A]: _GCO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11383,8 +11383,8 @@ export const se_GetConsoleScreenshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetConsoleScreenshotRequest(input, context), - Action: "GetConsoleScreenshot", - Version: "2016-11-15", + [_A]: _GCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11400,8 +11400,8 @@ export const se_GetDefaultCreditSpecificationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetDefaultCreditSpecificationRequest(input, context), - Action: "GetDefaultCreditSpecification", - Version: "2016-11-15", + [_A]: _GDCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11417,8 +11417,8 @@ export const se_GetEbsDefaultKmsKeyIdCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetEbsDefaultKmsKeyIdRequest(input, context), - Action: "GetEbsDefaultKmsKeyId", - Version: "2016-11-15", + [_A]: _GEDKKI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11434,8 +11434,8 @@ export const se_GetEbsEncryptionByDefaultCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetEbsEncryptionByDefaultRequest(input, context), - Action: "GetEbsEncryptionByDefault", - Version: "2016-11-15", + [_A]: _GEEBD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11451,8 +11451,8 @@ export const se_GetFlowLogsIntegrationTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetFlowLogsIntegrationTemplateRequest(input, context), - Action: "GetFlowLogsIntegrationTemplate", - Version: "2016-11-15", + [_A]: _GFLIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11468,8 +11468,8 @@ export const se_GetGroupsForCapacityReservationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetGroupsForCapacityReservationRequest(input, context), - Action: "GetGroupsForCapacityReservation", - Version: "2016-11-15", + [_A]: _GGFCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11485,8 +11485,8 @@ export const se_GetHostReservationPurchasePreviewCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetHostReservationPurchasePreviewRequest(input, context), - Action: "GetHostReservationPurchasePreview", - Version: "2016-11-15", + [_A]: _GHRPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11502,8 +11502,8 @@ export const se_GetImageBlockPublicAccessStateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetImageBlockPublicAccessStateRequest(input, context), - Action: "GetImageBlockPublicAccessState", - Version: "2016-11-15", + [_A]: _GIBPAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11519,8 +11519,8 @@ export const se_GetInstanceTypesFromInstanceRequirementsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetInstanceTypesFromInstanceRequirementsRequest(input, context), - Action: "GetInstanceTypesFromInstanceRequirements", - Version: "2016-11-15", + [_A]: _GITFIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11536,8 +11536,8 @@ export const se_GetInstanceUefiDataCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetInstanceUefiDataRequest(input, context), - Action: "GetInstanceUefiData", - Version: "2016-11-15", + [_A]: _GIUD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11553,8 +11553,8 @@ export const se_GetIpamAddressHistoryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIpamAddressHistoryRequest(input, context), - Action: "GetIpamAddressHistory", - Version: "2016-11-15", + [_A]: _GIAH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11570,8 +11570,8 @@ export const se_GetIpamDiscoveredAccountsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIpamDiscoveredAccountsRequest(input, context), - Action: "GetIpamDiscoveredAccounts", - Version: "2016-11-15", + [_A]: _GIDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11587,8 +11587,8 @@ export const se_GetIpamDiscoveredPublicAddressesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIpamDiscoveredPublicAddressesRequest(input, context), - Action: "GetIpamDiscoveredPublicAddresses", - Version: "2016-11-15", + [_A]: _GIDPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11604,8 +11604,8 @@ export const se_GetIpamDiscoveredResourceCidrsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIpamDiscoveredResourceCidrsRequest(input, context), - Action: "GetIpamDiscoveredResourceCidrs", - Version: "2016-11-15", + [_A]: _GIDRC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11621,8 +11621,8 @@ export const se_GetIpamPoolAllocationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIpamPoolAllocationsRequest(input, context), - Action: "GetIpamPoolAllocations", - Version: "2016-11-15", + [_A]: _GIPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11638,8 +11638,8 @@ export const se_GetIpamPoolCidrsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIpamPoolCidrsRequest(input, context), - Action: "GetIpamPoolCidrs", - Version: "2016-11-15", + [_A]: _GIPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11655,8 +11655,8 @@ export const se_GetIpamResourceCidrsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIpamResourceCidrsRequest(input, context), - Action: "GetIpamResourceCidrs", - Version: "2016-11-15", + [_A]: _GIRC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11672,8 +11672,8 @@ export const se_GetLaunchTemplateDataCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetLaunchTemplateDataRequest(input, context), - Action: "GetLaunchTemplateData", - Version: "2016-11-15", + [_A]: _GLTD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11689,8 +11689,8 @@ export const se_GetManagedPrefixListAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetManagedPrefixListAssociationsRequest(input, context), - Action: "GetManagedPrefixListAssociations", - Version: "2016-11-15", + [_A]: _GMPLA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11706,8 +11706,8 @@ export const se_GetManagedPrefixListEntriesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetManagedPrefixListEntriesRequest(input, context), - Action: "GetManagedPrefixListEntries", - Version: "2016-11-15", + [_A]: _GMPLE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11723,8 +11723,8 @@ export const se_GetNetworkInsightsAccessScopeAnalysisFindingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetNetworkInsightsAccessScopeAnalysisFindingsRequest(input, context), - Action: "GetNetworkInsightsAccessScopeAnalysisFindings", - Version: "2016-11-15", + [_A]: _GNIASAF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11740,8 +11740,8 @@ export const se_GetNetworkInsightsAccessScopeContentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetNetworkInsightsAccessScopeContentRequest(input, context), - Action: "GetNetworkInsightsAccessScopeContent", - Version: "2016-11-15", + [_A]: _GNIASC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11757,8 +11757,8 @@ export const se_GetPasswordDataCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetPasswordDataRequest(input, context), - Action: "GetPasswordData", - Version: "2016-11-15", + [_A]: _GPD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11774,8 +11774,8 @@ export const se_GetReservedInstancesExchangeQuoteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetReservedInstancesExchangeQuoteRequest(input, context), - Action: "GetReservedInstancesExchangeQuote", - Version: "2016-11-15", + [_A]: _GRIEQ, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11791,8 +11791,8 @@ export const se_GetSecurityGroupsForVpcCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSecurityGroupsForVpcRequest(input, context), - Action: "GetSecurityGroupsForVpc", - Version: "2016-11-15", + [_A]: _GSGFV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11808,8 +11808,8 @@ export const se_GetSerialConsoleAccessStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSerialConsoleAccessStatusRequest(input, context), - Action: "GetSerialConsoleAccessStatus", - Version: "2016-11-15", + [_A]: _GSCAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11825,8 +11825,8 @@ export const se_GetSnapshotBlockPublicAccessStateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSnapshotBlockPublicAccessStateRequest(input, context), - Action: "GetSnapshotBlockPublicAccessState", - Version: "2016-11-15", + [_A]: _GSBPAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11842,8 +11842,8 @@ export const se_GetSpotPlacementScoresCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSpotPlacementScoresRequest(input, context), - Action: "GetSpotPlacementScores", - Version: "2016-11-15", + [_A]: _GSPS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11859,8 +11859,8 @@ export const se_GetSubnetCidrReservationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSubnetCidrReservationsRequest(input, context), - Action: "GetSubnetCidrReservations", - Version: "2016-11-15", + [_A]: _GSCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11876,8 +11876,8 @@ export const se_GetTransitGatewayAttachmentPropagationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTransitGatewayAttachmentPropagationsRequest(input, context), - Action: "GetTransitGatewayAttachmentPropagations", - Version: "2016-11-15", + [_A]: _GTGAP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11893,8 +11893,8 @@ export const se_GetTransitGatewayMulticastDomainAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTransitGatewayMulticastDomainAssociationsRequest(input, context), - Action: "GetTransitGatewayMulticastDomainAssociations", - Version: "2016-11-15", + [_A]: _GTGMDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11910,8 +11910,8 @@ export const se_GetTransitGatewayPolicyTableAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTransitGatewayPolicyTableAssociationsRequest(input, context), - Action: "GetTransitGatewayPolicyTableAssociations", - Version: "2016-11-15", + [_A]: _GTGPTA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11927,8 +11927,8 @@ export const se_GetTransitGatewayPolicyTableEntriesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTransitGatewayPolicyTableEntriesRequest(input, context), - Action: "GetTransitGatewayPolicyTableEntries", - Version: "2016-11-15", + [_A]: _GTGPTE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11944,8 +11944,8 @@ export const se_GetTransitGatewayPrefixListReferencesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTransitGatewayPrefixListReferencesRequest(input, context), - Action: "GetTransitGatewayPrefixListReferences", - Version: "2016-11-15", + [_A]: _GTGPLR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11961,8 +11961,8 @@ export const se_GetTransitGatewayRouteTableAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTransitGatewayRouteTableAssociationsRequest(input, context), - Action: "GetTransitGatewayRouteTableAssociations", - Version: "2016-11-15", + [_A]: _GTGRTA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11978,8 +11978,8 @@ export const se_GetTransitGatewayRouteTablePropagationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTransitGatewayRouteTablePropagationsRequest(input, context), - Action: "GetTransitGatewayRouteTablePropagations", - Version: "2016-11-15", + [_A]: _GTGRTP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -11995,8 +11995,8 @@ export const se_GetVerifiedAccessEndpointPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetVerifiedAccessEndpointPolicyRequest(input, context), - Action: "GetVerifiedAccessEndpointPolicy", - Version: "2016-11-15", + [_A]: _GVAEP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12012,8 +12012,8 @@ export const se_GetVerifiedAccessGroupPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetVerifiedAccessGroupPolicyRequest(input, context), - Action: "GetVerifiedAccessGroupPolicy", - Version: "2016-11-15", + [_A]: _GVAGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12029,8 +12029,8 @@ export const se_GetVpnConnectionDeviceSampleConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetVpnConnectionDeviceSampleConfigurationRequest(input, context), - Action: "GetVpnConnectionDeviceSampleConfiguration", - Version: "2016-11-15", + [_A]: _GVCDSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12046,8 +12046,8 @@ export const se_GetVpnConnectionDeviceTypesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetVpnConnectionDeviceTypesRequest(input, context), - Action: "GetVpnConnectionDeviceTypes", - Version: "2016-11-15", + [_A]: _GVCDT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12063,8 +12063,8 @@ export const se_GetVpnTunnelReplacementStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetVpnTunnelReplacementStatusRequest(input, context), - Action: "GetVpnTunnelReplacementStatus", - Version: "2016-11-15", + [_A]: _GVTRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12080,8 +12080,8 @@ export const se_ImportClientVpnClientCertificateRevocationListCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ImportClientVpnClientCertificateRevocationListRequest(input, context), - Action: "ImportClientVpnClientCertificateRevocationList", - Version: "2016-11-15", + [_A]: _ICVCCRL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12097,8 +12097,8 @@ export const se_ImportImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ImportImageRequest(input, context), - Action: "ImportImage", - Version: "2016-11-15", + [_A]: _II, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12114,8 +12114,8 @@ export const se_ImportInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ImportInstanceRequest(input, context), - Action: "ImportInstance", - Version: "2016-11-15", + [_A]: _IIm, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12131,8 +12131,8 @@ export const se_ImportKeyPairCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ImportKeyPairRequest(input, context), - Action: "ImportKeyPair", - Version: "2016-11-15", + [_A]: _IKP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12148,8 +12148,8 @@ export const se_ImportSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ImportSnapshotRequest(input, context), - Action: "ImportSnapshot", - Version: "2016-11-15", + [_A]: _IS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12165,8 +12165,8 @@ export const se_ImportVolumeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ImportVolumeRequest(input, context), - Action: "ImportVolume", - Version: "2016-11-15", + [_A]: _IV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12182,8 +12182,8 @@ export const se_ListImagesInRecycleBinCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListImagesInRecycleBinRequest(input, context), - Action: "ListImagesInRecycleBin", - Version: "2016-11-15", + [_A]: _LIIRB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12199,8 +12199,8 @@ export const se_ListSnapshotsInRecycleBinCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSnapshotsInRecycleBinRequest(input, context), - Action: "ListSnapshotsInRecycleBin", - Version: "2016-11-15", + [_A]: _LSIRB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12216,8 +12216,8 @@ export const se_LockSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_LockSnapshotRequest(input, context), - Action: "LockSnapshot", - Version: "2016-11-15", + [_A]: _LS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12233,8 +12233,8 @@ export const se_ModifyAddressAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyAddressAttributeRequest(input, context), - Action: "ModifyAddressAttribute", - Version: "2016-11-15", + [_A]: _MAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12250,8 +12250,8 @@ export const se_ModifyAvailabilityZoneGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyAvailabilityZoneGroupRequest(input, context), - Action: "ModifyAvailabilityZoneGroup", - Version: "2016-11-15", + [_A]: _MAZG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12267,8 +12267,8 @@ export const se_ModifyCapacityReservationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCapacityReservationRequest(input, context), - Action: "ModifyCapacityReservation", - Version: "2016-11-15", + [_A]: _MCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12284,8 +12284,8 @@ export const se_ModifyCapacityReservationFleetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCapacityReservationFleetRequest(input, context), - Action: "ModifyCapacityReservationFleet", - Version: "2016-11-15", + [_A]: _MCRF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12301,8 +12301,8 @@ export const se_ModifyClientVpnEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClientVpnEndpointRequest(input, context), - Action: "ModifyClientVpnEndpoint", - Version: "2016-11-15", + [_A]: _MCVE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12318,8 +12318,8 @@ export const se_ModifyDefaultCreditSpecificationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDefaultCreditSpecificationRequest(input, context), - Action: "ModifyDefaultCreditSpecification", - Version: "2016-11-15", + [_A]: _MDCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12335,8 +12335,8 @@ export const se_ModifyEbsDefaultKmsKeyIdCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyEbsDefaultKmsKeyIdRequest(input, context), - Action: "ModifyEbsDefaultKmsKeyId", - Version: "2016-11-15", + [_A]: _MEDKKI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12352,8 +12352,8 @@ export const se_ModifyFleetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyFleetRequest(input, context), - Action: "ModifyFleet", - Version: "2016-11-15", + [_A]: _MF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12369,8 +12369,8 @@ export const se_ModifyFpgaImageAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyFpgaImageAttributeRequest(input, context), - Action: "ModifyFpgaImageAttribute", - Version: "2016-11-15", + [_A]: _MFIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12386,8 +12386,8 @@ export const se_ModifyHostsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyHostsRequest(input, context), - Action: "ModifyHosts", - Version: "2016-11-15", + [_A]: _MH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12403,8 +12403,8 @@ export const se_ModifyIdentityIdFormatCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyIdentityIdFormatRequest(input, context), - Action: "ModifyIdentityIdFormat", - Version: "2016-11-15", + [_A]: _MIIF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12420,8 +12420,8 @@ export const se_ModifyIdFormatCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyIdFormatRequest(input, context), - Action: "ModifyIdFormat", - Version: "2016-11-15", + [_A]: _MIF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12437,8 +12437,8 @@ export const se_ModifyImageAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyImageAttributeRequest(input, context), - Action: "ModifyImageAttribute", - Version: "2016-11-15", + [_A]: _MIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12454,8 +12454,8 @@ export const se_ModifyInstanceAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstanceAttributeRequest(input, context), - Action: "ModifyInstanceAttribute", - Version: "2016-11-15", + [_A]: _MIAo, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12471,8 +12471,8 @@ export const se_ModifyInstanceCapacityReservationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstanceCapacityReservationAttributesRequest(input, context), - Action: "ModifyInstanceCapacityReservationAttributes", - Version: "2016-11-15", + [_A]: _MICRA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12488,8 +12488,8 @@ export const se_ModifyInstanceCreditSpecificationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstanceCreditSpecificationRequest(input, context), - Action: "ModifyInstanceCreditSpecification", - Version: "2016-11-15", + [_A]: _MICS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12505,8 +12505,8 @@ export const se_ModifyInstanceEventStartTimeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstanceEventStartTimeRequest(input, context), - Action: "ModifyInstanceEventStartTime", - Version: "2016-11-15", + [_A]: _MIEST, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12522,8 +12522,8 @@ export const se_ModifyInstanceEventWindowCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstanceEventWindowRequest(input, context), - Action: "ModifyInstanceEventWindow", - Version: "2016-11-15", + [_A]: _MIEW, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12539,8 +12539,8 @@ export const se_ModifyInstanceMaintenanceOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstanceMaintenanceOptionsRequest(input, context), - Action: "ModifyInstanceMaintenanceOptions", - Version: "2016-11-15", + [_A]: _MIMO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12556,8 +12556,8 @@ export const se_ModifyInstanceMetadataOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstanceMetadataOptionsRequest(input, context), - Action: "ModifyInstanceMetadataOptions", - Version: "2016-11-15", + [_A]: _MIMOo, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12573,8 +12573,8 @@ export const se_ModifyInstancePlacementCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyInstancePlacementRequest(input, context), - Action: "ModifyInstancePlacement", - Version: "2016-11-15", + [_A]: _MIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12590,8 +12590,8 @@ export const se_ModifyIpamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyIpamRequest(input, context), - Action: "ModifyIpam", - Version: "2016-11-15", + [_A]: _MI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12607,8 +12607,8 @@ export const se_ModifyIpamPoolCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyIpamPoolRequest(input, context), - Action: "ModifyIpamPool", - Version: "2016-11-15", + [_A]: _MIPo, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12624,8 +12624,8 @@ export const se_ModifyIpamResourceCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyIpamResourceCidrRequest(input, context), - Action: "ModifyIpamResourceCidr", - Version: "2016-11-15", + [_A]: _MIRC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12641,8 +12641,8 @@ export const se_ModifyIpamResourceDiscoveryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyIpamResourceDiscoveryRequest(input, context), - Action: "ModifyIpamResourceDiscovery", - Version: "2016-11-15", + [_A]: _MIRD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12658,8 +12658,8 @@ export const se_ModifyIpamScopeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyIpamScopeRequest(input, context), - Action: "ModifyIpamScope", - Version: "2016-11-15", + [_A]: _MIS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12675,8 +12675,8 @@ export const se_ModifyLaunchTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyLaunchTemplateRequest(input, context), - Action: "ModifyLaunchTemplate", - Version: "2016-11-15", + [_A]: _MLT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12692,8 +12692,8 @@ export const se_ModifyLocalGatewayRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyLocalGatewayRouteRequest(input, context), - Action: "ModifyLocalGatewayRoute", - Version: "2016-11-15", + [_A]: _MLGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12709,8 +12709,8 @@ export const se_ModifyManagedPrefixListCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyManagedPrefixListRequest(input, context), - Action: "ModifyManagedPrefixList", - Version: "2016-11-15", + [_A]: _MMPL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12726,8 +12726,8 @@ export const se_ModifyNetworkInterfaceAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyNetworkInterfaceAttributeRequest(input, context), - Action: "ModifyNetworkInterfaceAttribute", - Version: "2016-11-15", + [_A]: _MNIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12743,8 +12743,8 @@ export const se_ModifyPrivateDnsNameOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyPrivateDnsNameOptionsRequest(input, context), - Action: "ModifyPrivateDnsNameOptions", - Version: "2016-11-15", + [_A]: _MPDNO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12760,8 +12760,8 @@ export const se_ModifyReservedInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyReservedInstancesRequest(input, context), - Action: "ModifyReservedInstances", - Version: "2016-11-15", + [_A]: _MRI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12777,8 +12777,8 @@ export const se_ModifySecurityGroupRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifySecurityGroupRulesRequest(input, context), - Action: "ModifySecurityGroupRules", - Version: "2016-11-15", + [_A]: _MSGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12794,8 +12794,8 @@ export const se_ModifySnapshotAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifySnapshotAttributeRequest(input, context), - Action: "ModifySnapshotAttribute", - Version: "2016-11-15", + [_A]: _MSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12811,8 +12811,8 @@ export const se_ModifySnapshotTierCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifySnapshotTierRequest(input, context), - Action: "ModifySnapshotTier", - Version: "2016-11-15", + [_A]: _MST, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12828,8 +12828,8 @@ export const se_ModifySpotFleetRequestCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifySpotFleetRequestRequest(input, context), - Action: "ModifySpotFleetRequest", - Version: "2016-11-15", + [_A]: _MSFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12845,8 +12845,8 @@ export const se_ModifySubnetAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifySubnetAttributeRequest(input, context), - Action: "ModifySubnetAttribute", - Version: "2016-11-15", + [_A]: _MSAo, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12862,8 +12862,8 @@ export const se_ModifyTrafficMirrorFilterNetworkServicesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTrafficMirrorFilterNetworkServicesRequest(input, context), - Action: "ModifyTrafficMirrorFilterNetworkServices", - Version: "2016-11-15", + [_A]: _MTMFNS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12879,8 +12879,8 @@ export const se_ModifyTrafficMirrorFilterRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTrafficMirrorFilterRuleRequest(input, context), - Action: "ModifyTrafficMirrorFilterRule", - Version: "2016-11-15", + [_A]: _MTMFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12896,8 +12896,8 @@ export const se_ModifyTrafficMirrorSessionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTrafficMirrorSessionRequest(input, context), - Action: "ModifyTrafficMirrorSession", - Version: "2016-11-15", + [_A]: _MTMS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12913,8 +12913,8 @@ export const se_ModifyTransitGatewayCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTransitGatewayRequest(input, context), - Action: "ModifyTransitGateway", - Version: "2016-11-15", + [_A]: _MTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12930,8 +12930,8 @@ export const se_ModifyTransitGatewayPrefixListReferenceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTransitGatewayPrefixListReferenceRequest(input, context), - Action: "ModifyTransitGatewayPrefixListReference", - Version: "2016-11-15", + [_A]: _MTGPLR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12947,8 +12947,8 @@ export const se_ModifyTransitGatewayVpcAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTransitGatewayVpcAttachmentRequest(input, context), - Action: "ModifyTransitGatewayVpcAttachment", - Version: "2016-11-15", + [_A]: _MTGVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12964,8 +12964,8 @@ export const se_ModifyVerifiedAccessEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVerifiedAccessEndpointRequest(input, context), - Action: "ModifyVerifiedAccessEndpoint", - Version: "2016-11-15", + [_A]: _MVAE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12981,8 +12981,8 @@ export const se_ModifyVerifiedAccessEndpointPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVerifiedAccessEndpointPolicyRequest(input, context), - Action: "ModifyVerifiedAccessEndpointPolicy", - Version: "2016-11-15", + [_A]: _MVAEP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12998,8 +12998,8 @@ export const se_ModifyVerifiedAccessGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVerifiedAccessGroupRequest(input, context), - Action: "ModifyVerifiedAccessGroup", - Version: "2016-11-15", + [_A]: _MVAG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13015,8 +13015,8 @@ export const se_ModifyVerifiedAccessGroupPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVerifiedAccessGroupPolicyRequest(input, context), - Action: "ModifyVerifiedAccessGroupPolicy", - Version: "2016-11-15", + [_A]: _MVAGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13032,8 +13032,8 @@ export const se_ModifyVerifiedAccessInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVerifiedAccessInstanceRequest(input, context), - Action: "ModifyVerifiedAccessInstance", - Version: "2016-11-15", + [_A]: _MVAI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13049,8 +13049,8 @@ export const se_ModifyVerifiedAccessInstanceLoggingConfigurationCommand = async let body: any; body = buildFormUrlencodedString({ ...se_ModifyVerifiedAccessInstanceLoggingConfigurationRequest(input, context), - Action: "ModifyVerifiedAccessInstanceLoggingConfiguration", - Version: "2016-11-15", + [_A]: _MVAILC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13066,8 +13066,8 @@ export const se_ModifyVerifiedAccessTrustProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVerifiedAccessTrustProviderRequest(input, context), - Action: "ModifyVerifiedAccessTrustProvider", - Version: "2016-11-15", + [_A]: _MVATP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13083,8 +13083,8 @@ export const se_ModifyVolumeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVolumeRequest(input, context), - Action: "ModifyVolume", - Version: "2016-11-15", + [_A]: _MV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13100,8 +13100,8 @@ export const se_ModifyVolumeAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVolumeAttributeRequest(input, context), - Action: "ModifyVolumeAttribute", - Version: "2016-11-15", + [_A]: _MVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13117,8 +13117,8 @@ export const se_ModifyVpcAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcAttributeRequest(input, context), - Action: "ModifyVpcAttribute", - Version: "2016-11-15", + [_A]: _MVAo, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13134,8 +13134,8 @@ export const se_ModifyVpcEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcEndpointRequest(input, context), - Action: "ModifyVpcEndpoint", - Version: "2016-11-15", + [_A]: _MVE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13151,8 +13151,8 @@ export const se_ModifyVpcEndpointConnectionNotificationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcEndpointConnectionNotificationRequest(input, context), - Action: "ModifyVpcEndpointConnectionNotification", - Version: "2016-11-15", + [_A]: _MVECN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13168,8 +13168,8 @@ export const se_ModifyVpcEndpointServiceConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcEndpointServiceConfigurationRequest(input, context), - Action: "ModifyVpcEndpointServiceConfiguration", - Version: "2016-11-15", + [_A]: _MVESC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13185,8 +13185,8 @@ export const se_ModifyVpcEndpointServicePayerResponsibilityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcEndpointServicePayerResponsibilityRequest(input, context), - Action: "ModifyVpcEndpointServicePayerResponsibility", - Version: "2016-11-15", + [_A]: _MVESPR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13202,8 +13202,8 @@ export const se_ModifyVpcEndpointServicePermissionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcEndpointServicePermissionsRequest(input, context), - Action: "ModifyVpcEndpointServicePermissions", - Version: "2016-11-15", + [_A]: _MVESP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13219,8 +13219,8 @@ export const se_ModifyVpcPeeringConnectionOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcPeeringConnectionOptionsRequest(input, context), - Action: "ModifyVpcPeeringConnectionOptions", - Version: "2016-11-15", + [_A]: _MVPCO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13236,8 +13236,8 @@ export const se_ModifyVpcTenancyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpcTenancyRequest(input, context), - Action: "ModifyVpcTenancy", - Version: "2016-11-15", + [_A]: _MVT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13253,8 +13253,8 @@ export const se_ModifyVpnConnectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpnConnectionRequest(input, context), - Action: "ModifyVpnConnection", - Version: "2016-11-15", + [_A]: _MVC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13270,8 +13270,8 @@ export const se_ModifyVpnConnectionOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpnConnectionOptionsRequest(input, context), - Action: "ModifyVpnConnectionOptions", - Version: "2016-11-15", + [_A]: _MVCO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13287,8 +13287,8 @@ export const se_ModifyVpnTunnelCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpnTunnelCertificateRequest(input, context), - Action: "ModifyVpnTunnelCertificate", - Version: "2016-11-15", + [_A]: _MVTC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13304,8 +13304,8 @@ export const se_ModifyVpnTunnelOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyVpnTunnelOptionsRequest(input, context), - Action: "ModifyVpnTunnelOptions", - Version: "2016-11-15", + [_A]: _MVTO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13321,8 +13321,8 @@ export const se_MonitorInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_MonitorInstancesRequest(input, context), - Action: "MonitorInstances", - Version: "2016-11-15", + [_A]: _MIo, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13338,8 +13338,8 @@ export const se_MoveAddressToVpcCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_MoveAddressToVpcRequest(input, context), - Action: "MoveAddressToVpc", - Version: "2016-11-15", + [_A]: _MATV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13355,8 +13355,8 @@ export const se_MoveByoipCidrToIpamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_MoveByoipCidrToIpamRequest(input, context), - Action: "MoveByoipCidrToIpam", - Version: "2016-11-15", + [_A]: _MBCTI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13372,8 +13372,8 @@ export const se_ProvisionByoipCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ProvisionByoipCidrRequest(input, context), - Action: "ProvisionByoipCidr", - Version: "2016-11-15", + [_A]: _PBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13389,8 +13389,8 @@ export const se_ProvisionIpamByoasnCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ProvisionIpamByoasnRequest(input, context), - Action: "ProvisionIpamByoasn", - Version: "2016-11-15", + [_A]: _PIB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13406,8 +13406,8 @@ export const se_ProvisionIpamPoolCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ProvisionIpamPoolCidrRequest(input, context), - Action: "ProvisionIpamPoolCidr", - Version: "2016-11-15", + [_A]: _PIPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13423,8 +13423,8 @@ export const se_ProvisionPublicIpv4PoolCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ProvisionPublicIpv4PoolCidrRequest(input, context), - Action: "ProvisionPublicIpv4PoolCidr", - Version: "2016-11-15", + [_A]: _PPIPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13440,8 +13440,8 @@ export const se_PurchaseCapacityBlockCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PurchaseCapacityBlockRequest(input, context), - Action: "PurchaseCapacityBlock", - Version: "2016-11-15", + [_A]: _PCB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13457,8 +13457,8 @@ export const se_PurchaseHostReservationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PurchaseHostReservationRequest(input, context), - Action: "PurchaseHostReservation", - Version: "2016-11-15", + [_A]: _PHR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13474,8 +13474,8 @@ export const se_PurchaseReservedInstancesOfferingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PurchaseReservedInstancesOfferingRequest(input, context), - Action: "PurchaseReservedInstancesOffering", - Version: "2016-11-15", + [_A]: _PRIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13491,8 +13491,8 @@ export const se_PurchaseScheduledInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PurchaseScheduledInstancesRequest(input, context), - Action: "PurchaseScheduledInstances", - Version: "2016-11-15", + [_A]: _PSI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13508,8 +13508,8 @@ export const se_RebootInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebootInstancesRequest(input, context), - Action: "RebootInstances", - Version: "2016-11-15", + [_A]: _RI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13525,8 +13525,8 @@ export const se_RegisterImageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterImageRequest(input, context), - Action: "RegisterImage", - Version: "2016-11-15", + [_A]: _RIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13542,8 +13542,8 @@ export const se_RegisterInstanceEventNotificationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterInstanceEventNotificationAttributesRequest(input, context), - Action: "RegisterInstanceEventNotificationAttributes", - Version: "2016-11-15", + [_A]: _RIENA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13559,8 +13559,8 @@ export const se_RegisterTransitGatewayMulticastGroupMembersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterTransitGatewayMulticastGroupMembersRequest(input, context), - Action: "RegisterTransitGatewayMulticastGroupMembers", - Version: "2016-11-15", + [_A]: _RTGMGM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13576,8 +13576,8 @@ export const se_RegisterTransitGatewayMulticastGroupSourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterTransitGatewayMulticastGroupSourcesRequest(input, context), - Action: "RegisterTransitGatewayMulticastGroupSources", - Version: "2016-11-15", + [_A]: _RTGMGS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13593,8 +13593,8 @@ export const se_RejectTransitGatewayMulticastDomainAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RejectTransitGatewayMulticastDomainAssociationsRequest(input, context), - Action: "RejectTransitGatewayMulticastDomainAssociations", - Version: "2016-11-15", + [_A]: _RTGMDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13610,8 +13610,8 @@ export const se_RejectTransitGatewayPeeringAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RejectTransitGatewayPeeringAttachmentRequest(input, context), - Action: "RejectTransitGatewayPeeringAttachment", - Version: "2016-11-15", + [_A]: _RTGPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13627,8 +13627,8 @@ export const se_RejectTransitGatewayVpcAttachmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RejectTransitGatewayVpcAttachmentRequest(input, context), - Action: "RejectTransitGatewayVpcAttachment", - Version: "2016-11-15", + [_A]: _RTGVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13644,8 +13644,8 @@ export const se_RejectVpcEndpointConnectionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RejectVpcEndpointConnectionsRequest(input, context), - Action: "RejectVpcEndpointConnections", - Version: "2016-11-15", + [_A]: _RVEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13661,8 +13661,8 @@ export const se_RejectVpcPeeringConnectionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RejectVpcPeeringConnectionRequest(input, context), - Action: "RejectVpcPeeringConnection", - Version: "2016-11-15", + [_A]: _RVPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13678,8 +13678,8 @@ export const se_ReleaseAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReleaseAddressRequest(input, context), - Action: "ReleaseAddress", - Version: "2016-11-15", + [_A]: _RA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13695,8 +13695,8 @@ export const se_ReleaseHostsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReleaseHostsRequest(input, context), - Action: "ReleaseHosts", - Version: "2016-11-15", + [_A]: _RH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13712,8 +13712,8 @@ export const se_ReleaseIpamPoolAllocationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReleaseIpamPoolAllocationRequest(input, context), - Action: "ReleaseIpamPoolAllocation", - Version: "2016-11-15", + [_A]: _RIPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13729,8 +13729,8 @@ export const se_ReplaceIamInstanceProfileAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReplaceIamInstanceProfileAssociationRequest(input, context), - Action: "ReplaceIamInstanceProfileAssociation", - Version: "2016-11-15", + [_A]: _RIIPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13746,8 +13746,8 @@ export const se_ReplaceNetworkAclAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReplaceNetworkAclAssociationRequest(input, context), - Action: "ReplaceNetworkAclAssociation", - Version: "2016-11-15", + [_A]: _RNAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13763,8 +13763,8 @@ export const se_ReplaceNetworkAclEntryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReplaceNetworkAclEntryRequest(input, context), - Action: "ReplaceNetworkAclEntry", - Version: "2016-11-15", + [_A]: _RNAE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13780,8 +13780,8 @@ export const se_ReplaceRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReplaceRouteRequest(input, context), - Action: "ReplaceRoute", - Version: "2016-11-15", + [_A]: _RR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13797,8 +13797,8 @@ export const se_ReplaceRouteTableAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReplaceRouteTableAssociationRequest(input, context), - Action: "ReplaceRouteTableAssociation", - Version: "2016-11-15", + [_A]: _RRTA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13814,8 +13814,8 @@ export const se_ReplaceTransitGatewayRouteCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReplaceTransitGatewayRouteRequest(input, context), - Action: "ReplaceTransitGatewayRoute", - Version: "2016-11-15", + [_A]: _RTGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13831,8 +13831,8 @@ export const se_ReplaceVpnTunnelCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReplaceVpnTunnelRequest(input, context), - Action: "ReplaceVpnTunnel", - Version: "2016-11-15", + [_A]: _RVT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13848,8 +13848,8 @@ export const se_ReportInstanceStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReportInstanceStatusRequest(input, context), - Action: "ReportInstanceStatus", - Version: "2016-11-15", + [_A]: _RIS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13865,8 +13865,8 @@ export const se_RequestSpotFleetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RequestSpotFleetRequest(input, context), - Action: "RequestSpotFleet", - Version: "2016-11-15", + [_A]: _RSF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13882,8 +13882,8 @@ export const se_RequestSpotInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RequestSpotInstancesRequest(input, context), - Action: "RequestSpotInstances", - Version: "2016-11-15", + [_A]: _RSI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13899,8 +13899,8 @@ export const se_ResetAddressAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetAddressAttributeRequest(input, context), - Action: "ResetAddressAttribute", - Version: "2016-11-15", + [_A]: _RAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13916,8 +13916,8 @@ export const se_ResetEbsDefaultKmsKeyIdCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetEbsDefaultKmsKeyIdRequest(input, context), - Action: "ResetEbsDefaultKmsKeyId", - Version: "2016-11-15", + [_A]: _REDKKI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13933,8 +13933,8 @@ export const se_ResetFpgaImageAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetFpgaImageAttributeRequest(input, context), - Action: "ResetFpgaImageAttribute", - Version: "2016-11-15", + [_A]: _RFIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13950,8 +13950,8 @@ export const se_ResetImageAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetImageAttributeRequest(input, context), - Action: "ResetImageAttribute", - Version: "2016-11-15", + [_A]: _RIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13967,8 +13967,8 @@ export const se_ResetInstanceAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetInstanceAttributeRequest(input, context), - Action: "ResetInstanceAttribute", - Version: "2016-11-15", + [_A]: _RIAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -13984,8 +13984,8 @@ export const se_ResetNetworkInterfaceAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetNetworkInterfaceAttributeRequest(input, context), - Action: "ResetNetworkInterfaceAttribute", - Version: "2016-11-15", + [_A]: _RNIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14001,8 +14001,8 @@ export const se_ResetSnapshotAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetSnapshotAttributeRequest(input, context), - Action: "ResetSnapshotAttribute", - Version: "2016-11-15", + [_A]: _RSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14018,8 +14018,8 @@ export const se_RestoreAddressToClassicCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreAddressToClassicRequest(input, context), - Action: "RestoreAddressToClassic", - Version: "2016-11-15", + [_A]: _RATC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14035,8 +14035,8 @@ export const se_RestoreImageFromRecycleBinCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreImageFromRecycleBinRequest(input, context), - Action: "RestoreImageFromRecycleBin", - Version: "2016-11-15", + [_A]: _RIFRB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14052,8 +14052,8 @@ export const se_RestoreManagedPrefixListVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreManagedPrefixListVersionRequest(input, context), - Action: "RestoreManagedPrefixListVersion", - Version: "2016-11-15", + [_A]: _RMPLV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14069,8 +14069,8 @@ export const se_RestoreSnapshotFromRecycleBinCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreSnapshotFromRecycleBinRequest(input, context), - Action: "RestoreSnapshotFromRecycleBin", - Version: "2016-11-15", + [_A]: _RSFRB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14086,8 +14086,8 @@ export const se_RestoreSnapshotTierCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreSnapshotTierRequest(input, context), - Action: "RestoreSnapshotTier", - Version: "2016-11-15", + [_A]: _RST, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14103,8 +14103,8 @@ export const se_RevokeClientVpnIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeClientVpnIngressRequest(input, context), - Action: "RevokeClientVpnIngress", - Version: "2016-11-15", + [_A]: _RCVI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14120,8 +14120,8 @@ export const se_RevokeSecurityGroupEgressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeSecurityGroupEgressRequest(input, context), - Action: "RevokeSecurityGroupEgress", - Version: "2016-11-15", + [_A]: _RSGE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14137,8 +14137,8 @@ export const se_RevokeSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeSecurityGroupIngressRequest(input, context), - Action: "RevokeSecurityGroupIngress", - Version: "2016-11-15", + [_A]: _RSGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14154,8 +14154,8 @@ export const se_RunInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RunInstancesRequest(input, context), - Action: "RunInstances", - Version: "2016-11-15", + [_A]: _RIu, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14171,8 +14171,8 @@ export const se_RunScheduledInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RunScheduledInstancesRequest(input, context), - Action: "RunScheduledInstances", - Version: "2016-11-15", + [_A]: _RSIu, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14188,8 +14188,8 @@ export const se_SearchLocalGatewayRoutesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SearchLocalGatewayRoutesRequest(input, context), - Action: "SearchLocalGatewayRoutes", - Version: "2016-11-15", + [_A]: _SLGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14205,8 +14205,8 @@ export const se_SearchTransitGatewayMulticastGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SearchTransitGatewayMulticastGroupsRequest(input, context), - Action: "SearchTransitGatewayMulticastGroups", - Version: "2016-11-15", + [_A]: _STGMG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14222,8 +14222,8 @@ export const se_SearchTransitGatewayRoutesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SearchTransitGatewayRoutesRequest(input, context), - Action: "SearchTransitGatewayRoutes", - Version: "2016-11-15", + [_A]: _STGR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14239,8 +14239,8 @@ export const se_SendDiagnosticInterruptCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SendDiagnosticInterruptRequest(input, context), - Action: "SendDiagnosticInterrupt", - Version: "2016-11-15", + [_A]: _SDI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14256,8 +14256,8 @@ export const se_StartInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartInstancesRequest(input, context), - Action: "StartInstances", - Version: "2016-11-15", + [_A]: _SI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14273,8 +14273,8 @@ export const se_StartNetworkInsightsAccessScopeAnalysisCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartNetworkInsightsAccessScopeAnalysisRequest(input, context), - Action: "StartNetworkInsightsAccessScopeAnalysis", - Version: "2016-11-15", + [_A]: _SNIASA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14290,8 +14290,8 @@ export const se_StartNetworkInsightsAnalysisCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartNetworkInsightsAnalysisRequest(input, context), - Action: "StartNetworkInsightsAnalysis", - Version: "2016-11-15", + [_A]: _SNIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14307,8 +14307,8 @@ export const se_StartVpcEndpointServicePrivateDnsVerificationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartVpcEndpointServicePrivateDnsVerificationRequest(input, context), - Action: "StartVpcEndpointServicePrivateDnsVerification", - Version: "2016-11-15", + [_A]: _SVESPDV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14324,8 +14324,8 @@ export const se_StopInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopInstancesRequest(input, context), - Action: "StopInstances", - Version: "2016-11-15", + [_A]: _SIt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14341,8 +14341,8 @@ export const se_TerminateClientVpnConnectionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TerminateClientVpnConnectionsRequest(input, context), - Action: "TerminateClientVpnConnections", - Version: "2016-11-15", + [_A]: _TCVC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14358,8 +14358,8 @@ export const se_TerminateInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TerminateInstancesRequest(input, context), - Action: "TerminateInstances", - Version: "2016-11-15", + [_A]: _TI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14375,8 +14375,8 @@ export const se_UnassignIpv6AddressesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UnassignIpv6AddressesRequest(input, context), - Action: "UnassignIpv6Addresses", - Version: "2016-11-15", + [_A]: _UIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14392,8 +14392,8 @@ export const se_UnassignPrivateIpAddressesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UnassignPrivateIpAddressesRequest(input, context), - Action: "UnassignPrivateIpAddresses", - Version: "2016-11-15", + [_A]: _UPIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14409,8 +14409,8 @@ export const se_UnassignPrivateNatGatewayAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UnassignPrivateNatGatewayAddressRequest(input, context), - Action: "UnassignPrivateNatGatewayAddress", - Version: "2016-11-15", + [_A]: _UPNGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14426,8 +14426,8 @@ export const se_UnlockSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UnlockSnapshotRequest(input, context), - Action: "UnlockSnapshot", - Version: "2016-11-15", + [_A]: _US, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14443,8 +14443,8 @@ export const se_UnmonitorInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UnmonitorInstancesRequest(input, context), - Action: "UnmonitorInstances", - Version: "2016-11-15", + [_A]: _UI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14460,8 +14460,8 @@ export const se_UpdateSecurityGroupRuleDescriptionsEgressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateSecurityGroupRuleDescriptionsEgressRequest(input, context), - Action: "UpdateSecurityGroupRuleDescriptionsEgress", - Version: "2016-11-15", + [_A]: _USGRDE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14477,8 +14477,8 @@ export const se_UpdateSecurityGroupRuleDescriptionsIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateSecurityGroupRuleDescriptionsIngressRequest(input, context), - Action: "UpdateSecurityGroupRuleDescriptionsIngress", - Version: "2016-11-15", + [_A]: _USGRDI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14494,8 +14494,8 @@ export const se_WithdrawByoipCidrCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_WithdrawByoipCidrRequest(input, context), - Action: "WithdrawByoipCidr", - Version: "2016-11-15", + [_A]: _WBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -38940,11 +38940,11 @@ const de_WithdrawByoipCidrCommandError = async ( */ const se_AcceleratorCount = (input: AcceleratorCount, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -38954,11 +38954,11 @@ const se_AcceleratorCount = (input: AcceleratorCount, context: __SerdeContext): */ const se_AcceleratorCountRequest = (input: AcceleratorCountRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -39000,11 +39000,11 @@ const se_AcceleratorNameSet = (input: AcceleratorName[], context: __SerdeContext */ const se_AcceleratorTotalMemoryMiB = (input: AcceleratorTotalMemoryMiB, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -39014,11 +39014,11 @@ const se_AcceleratorTotalMemoryMiB = (input: AcceleratorTotalMemoryMiB, context: */ const se_AcceleratorTotalMemoryMiBRequest = (input: AcceleratorTotalMemoryMiBRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -39044,12 +39044,12 @@ const se_AcceleratorTypeSet = (input: AcceleratorType[], context: __SerdeContext */ const se_AcceptAddressTransferRequest = (input: AcceptAddressTransferRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Address != null) { - entries["Address"] = input.Address; + if (input[_Ad] != null) { + entries[_Ad] = input[_Ad]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39057,8 +39057,8 @@ const se_AcceptAddressTransferRequest = (input: AcceptAddressTransferRequest, co entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39071,12 +39071,12 @@ const se_AcceptReservedInstancesExchangeQuoteRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ReservedInstanceIds != null) { - const memberEntries = se_ReservedInstanceIdSet(input.ReservedInstanceIds, context); - if (input.ReservedInstanceIds?.length === 0) { + if (input[_RII] != null) { + const memberEntries = se_ReservedInstanceIdSet(input[_RII], context); + if (input[_RII]?.length === 0) { entries.ReservedInstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39084,9 +39084,9 @@ const se_AcceptReservedInstancesExchangeQuoteRequest = ( entries[loc] = value; }); } - if (input.TargetConfigurations != null) { - const memberEntries = se_TargetConfigurationRequestSet(input.TargetConfigurations, context); - if (input.TargetConfigurations?.length === 0) { + if (input[_TC] != null) { + const memberEntries = se_TargetConfigurationRequestSet(input[_TC], context); + if (input[_TC]?.length === 0) { entries.TargetConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39105,15 +39105,15 @@ const se_AcceptTransitGatewayMulticastDomainAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.SubnetIds != null) { - const memberEntries = se_ValueStringList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_ValueStringList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39121,8 +39121,8 @@ const se_AcceptTransitGatewayMulticastDomainAssociationsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39135,11 +39135,11 @@ const se_AcceptTransitGatewayPeeringAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39152,11 +39152,11 @@ const se_AcceptTransitGatewayVpcAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39169,15 +39169,15 @@ const se_AcceptVpcEndpointConnectionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } - if (input.VpcEndpointIds != null) { - const memberEntries = se_VpcEndpointIdList(input.VpcEndpointIds, context); - if (input.VpcEndpointIds?.length === 0) { + if (input[_VEI] != null) { + const memberEntries = se_VpcEndpointIdList(input[_VEI], context); + if (input[_VEI]?.length === 0) { entries.VpcEndpointId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39196,11 +39196,11 @@ const se_AcceptVpcPeeringConnectionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcPeeringConnectionId != null) { - entries["VpcPeeringConnectionId"] = input.VpcPeeringConnectionId; + if (input[_VPCI] != null) { + entries[_VPCI] = input[_VPCI]; } return entries; }; @@ -39229,23 +39229,23 @@ const se_AccessScopePathListRequest = (input: AccessScopePathRequest[], context: */ const se_AccessScopePathRequest = (input: AccessScopePathRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Source != null) { - const memberEntries = se_PathStatementRequest(input.Source, context); + if (input[_S] != null) { + const memberEntries = se_PathStatementRequest(input[_S], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Source.${key}`; entries[loc] = value; }); } - if (input.Destination != null) { - const memberEntries = se_PathStatementRequest(input.Destination, context); + if (input[_D] != null) { + const memberEntries = se_PathStatementRequest(input[_D], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Destination.${key}`; entries[loc] = value; }); } - if (input.ThroughResources != null) { - const memberEntries = se_ThroughResourcesStatementRequestList(input.ThroughResources, context); - if (input.ThroughResources?.length === 0) { + if (input[_TR] != null) { + const memberEntries = se_ThroughResourcesStatementRequestList(input[_TR], context); + if (input[_TR]?.length === 0) { entries.ThroughResource = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39277,8 +39277,8 @@ const se_AccountAttributeNameStringList = (input: AccountAttributeName[], contex */ const se_AddIpamOperatingRegion = (input: AddIpamOperatingRegion, context: __SerdeContext): any => { const entries: any = {}; - if (input.RegionName != null) { - entries["RegionName"] = input.RegionName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -39326,11 +39326,11 @@ const se_AddPrefixListEntries = (input: AddPrefixListEntry[], context: __SerdeCo */ const se_AddPrefixListEntry = (input: AddPrefixListEntry, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } return entries; }; @@ -39340,14 +39340,14 @@ const se_AddPrefixListEntry = (input: AddPrefixListEntry, context: __SerdeContex */ const se_AdvertiseByoipCidrRequest = (input: AdvertiseByoipCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.Asn != null) { - entries["Asn"] = input.Asn; + if (input[_As] != null) { + entries[_As] = input[_As]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39357,27 +39357,27 @@ const se_AdvertiseByoipCidrRequest = (input: AdvertiseByoipCidrRequest, context: */ const se_AllocateAddressRequest = (input: AllocateAddressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.Address != null) { - entries["Address"] = input.Address; + if (input[_Ad] != null) { + entries[_Ad] = input[_Ad]; } - if (input.PublicIpv4Pool != null) { - entries["PublicIpv4Pool"] = input.PublicIpv4Pool; + if (input[_PIP] != null) { + entries[_PIP] = input[_PIP]; } - if (input.NetworkBorderGroup != null) { - entries["NetworkBorderGroup"] = input.NetworkBorderGroup; + if (input[_NBG] != null) { + entries[_NBG] = input[_NBG]; } - if (input.CustomerOwnedIpv4Pool != null) { - entries["CustomerOwnedIpv4Pool"] = input.CustomerOwnedIpv4Pool; + if (input[_COIP] != null) { + entries[_COIP] = input[_COIP]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39393,27 +39393,27 @@ const se_AllocateAddressRequest = (input: AllocateAddressRequest, context: __Ser */ const se_AllocateHostsRequest = (input: AllocateHostsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoPlacement != null) { - entries["AutoPlacement"] = input.AutoPlacement; + if (input[_AP] != null) { + entries[_AP] = input[_AP]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.InstanceFamily != null) { - entries["InstanceFamily"] = input.InstanceFamily; + if (input[_IF] != null) { + entries[_IF] = input[_IF]; } - if (input.Quantity != null) { - entries["Quantity"] = input.Quantity; + if (input[_Q] != null) { + entries[_Q] = input[_Q]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39421,18 +39421,18 @@ const se_AllocateHostsRequest = (input: AllocateHostsRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.HostRecovery != null) { - entries["HostRecovery"] = input.HostRecovery; + if (input[_HR] != null) { + entries[_HR] = input[_HR]; } - if (input.OutpostArn != null) { - entries["OutpostArn"] = input.OutpostArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.HostMaintenance != null) { - entries["HostMaintenance"] = input.HostMaintenance; + if (input[_HM] != null) { + entries[_HM] = input[_HM]; } - if (input.AssetIds != null) { - const memberEntries = se_AssetIdList(input.AssetIds, context); - if (input.AssetIds?.length === 0) { + if (input[_AI] != null) { + const memberEntries = se_AssetIdList(input[_AI], context); + if (input[_AI]?.length === 0) { entries.AssetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39448,33 +39448,33 @@ const se_AllocateHostsRequest = (input: AllocateHostsRequest, context: __SerdeCo */ const se_AllocateIpamPoolCidrRequest = (input: AllocateIpamPoolCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.NetmaskLength != null) { - entries["NetmaskLength"] = input.NetmaskLength; + if (input[_NL] != null) { + entries[_NL] = input[_NL]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.PreviewNextCidr != null) { - entries["PreviewNextCidr"] = input.PreviewNextCidr; + if (input[_PNC] != null) { + entries[_PNC] = input[_PNC]; } - if (input.AllowedCidrs != null) { - const memberEntries = se_IpamPoolAllocationAllowedCidrs(input.AllowedCidrs, context); - if (input.AllowedCidrs?.length === 0) { + if (input[_AC] != null) { + const memberEntries = se_IpamPoolAllocationAllowedCidrs(input[_AC], context); + if (input[_AC]?.length === 0) { entries.AllowedCidr = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39482,9 +39482,9 @@ const se_AllocateIpamPoolCidrRequest = (input: AllocateIpamPoolCidrRequest, cont entries[loc] = value; }); } - if (input.DisallowedCidrs != null) { - const memberEntries = se_IpamPoolAllocationDisallowedCidrs(input.DisallowedCidrs, context); - if (input.DisallowedCidrs?.length === 0) { + if (input[_DC] != null) { + const memberEntries = se_IpamPoolAllocationDisallowedCidrs(input[_DC], context); + if (input[_DC]?.length === 0) { entries.DisallowedCidr = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39551,15 +39551,15 @@ const se_ApplySecurityGroupsToClientVpnTargetNetworkRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_ClientVpnSecurityGroupIdSet(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_ClientVpnSecurityGroupIdSet(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39567,8 +39567,8 @@ const se_ApplySecurityGroupsToClientVpnTargetNetworkRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39610,11 +39610,11 @@ const se_ArnList = (input: string[], context: __SerdeContext): any => { */ const se_AsnAuthorizationContext = (input: AsnAuthorizationContext, context: __SerdeContext): any => { const entries: any = {}; - if (input.Message != null) { - entries["Message"] = input.Message; + if (input[_Me] != null) { + entries[_Me] = input[_Me]; } - if (input.Signature != null) { - entries["Signature"] = input.Signature; + if (input[_Si] != null) { + entries[_Si] = input[_Si]; } return entries; }; @@ -39640,12 +39640,12 @@ const se_AssetIdList = (input: string[], context: __SerdeContext): any => { */ const se_AssignIpv6AddressesRequest = (input: AssignIpv6AddressesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv6AddressCount != null) { - entries["Ipv6AddressCount"] = input.Ipv6AddressCount; + if (input[_IAC] != null) { + entries[_IAC] = input[_IAC]; } - if (input.Ipv6Addresses != null) { - const memberEntries = se_Ipv6AddressList(input.Ipv6Addresses, context); - if (input.Ipv6Addresses?.length === 0) { + if (input[_IA] != null) { + const memberEntries = se_Ipv6AddressList(input[_IA], context); + if (input[_IA]?.length === 0) { entries.Ipv6Addresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39653,12 +39653,12 @@ const se_AssignIpv6AddressesRequest = (input: AssignIpv6AddressesRequest, contex entries[loc] = value; }); } - if (input.Ipv6PrefixCount != null) { - entries["Ipv6PrefixCount"] = input.Ipv6PrefixCount; + if (input[_IPC] != null) { + entries[_IPC] = input[_IPC]; } - if (input.Ipv6Prefixes != null) { - const memberEntries = se_IpPrefixList(input.Ipv6Prefixes, context); - if (input.Ipv6Prefixes?.length === 0) { + if (input[_IP] != null) { + const memberEntries = se_IpPrefixList(input[_IP], context); + if (input[_IP]?.length === 0) { entries.Ipv6Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39666,8 +39666,8 @@ const se_AssignIpv6AddressesRequest = (input: AssignIpv6AddressesRequest, contex entries[loc] = value; }); } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } return entries; }; @@ -39677,15 +39677,15 @@ const se_AssignIpv6AddressesRequest = (input: AssignIpv6AddressesRequest, contex */ const se_AssignPrivateIpAddressesRequest = (input: AssignPrivateIpAddressesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllowReassignment != null) { - entries["AllowReassignment"] = input.AllowReassignment; + if (input[_AR] != null) { + entries[_AR] = input[_AR]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_PrivateIpAddressStringList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_PrivateIpAddressStringList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39693,12 +39693,12 @@ const se_AssignPrivateIpAddressesRequest = (input: AssignPrivateIpAddressesReque entries[loc] = value; }); } - if (input.SecondaryPrivateIpAddressCount != null) { - entries["SecondaryPrivateIpAddressCount"] = input.SecondaryPrivateIpAddressCount; + if (input[_SPIAC] != null) { + entries[_SPIAC] = input[_SPIAC]; } - if (input.Ipv4Prefixes != null) { - const memberEntries = se_IpPrefixList(input.Ipv4Prefixes, context); - if (input.Ipv4Prefixes?.length === 0) { + if (input[_IPp] != null) { + const memberEntries = se_IpPrefixList(input[_IPp], context); + if (input[_IPp]?.length === 0) { entries.Ipv4Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39706,8 +39706,8 @@ const se_AssignPrivateIpAddressesRequest = (input: AssignPrivateIpAddressesReque entries[loc] = value; }); } - if (input.Ipv4PrefixCount != null) { - entries["Ipv4PrefixCount"] = input.Ipv4PrefixCount; + if (input[_IPCp] != null) { + entries[_IPCp] = input[_IPCp]; } return entries; }; @@ -39720,12 +39720,12 @@ const se_AssignPrivateNatGatewayAddressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NatGatewayId != null) { - entries["NatGatewayId"] = input.NatGatewayId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_IpList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_IpList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39733,11 +39733,11 @@ const se_AssignPrivateNatGatewayAddressRequest = ( entries[loc] = value; }); } - if (input.PrivateIpAddressCount != null) { - entries["PrivateIpAddressCount"] = input.PrivateIpAddressCount; + if (input[_PIAC] != null) { + entries[_PIAC] = input[_PIAC]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39747,26 +39747,26 @@ const se_AssignPrivateNatGatewayAddressRequest = ( */ const se_AssociateAddressRequest = (input: AssociateAddressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AIl] != null) { + entries[_AIl] = input[_AIl]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.PublicIp != null) { - entries["PublicIp"] = input.PublicIp; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.AllowReassociation != null) { - entries["AllowReassociation"] = input.AllowReassociation; + if (input[_ARl] != null) { + entries[_ARl] = input[_ARl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } return entries; }; @@ -39779,20 +39779,20 @@ const se_AssociateClientVpnTargetNetworkRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39802,14 +39802,14 @@ const se_AssociateClientVpnTargetNetworkRequest = ( */ const se_AssociateDhcpOptionsRequest = (input: AssociateDhcpOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DhcpOptionsId != null) { - entries["DhcpOptionsId"] = input.DhcpOptionsId; + if (input[_DOI] != null) { + entries[_DOI] = input[_DOI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39822,14 +39822,14 @@ const se_AssociateEnclaveCertificateIamRoleRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CertificateArn != null) { - entries["CertificateArn"] = input.CertificateArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RAo] != null) { + entries[_RAo] = input[_RAo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39842,15 +39842,15 @@ const se_AssociateIamInstanceProfileRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.IamInstanceProfile != null) { - const memberEntries = se_IamInstanceProfileSpecification(input.IamInstanceProfile, context); + if (input[_IIP] != null) { + const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IamInstanceProfile.${key}`; entries[loc] = value; }); } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } return entries; }; @@ -39863,14 +39863,14 @@ const se_AssociateInstanceEventWindowRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceEventWindowId != null) { - entries["InstanceEventWindowId"] = input.InstanceEventWindowId; + if (input[_IEWI] != null) { + entries[_IEWI] = input[_IEWI]; } - if (input.AssociationTarget != null) { - const memberEntries = se_InstanceEventWindowAssociationRequest(input.AssociationTarget, context); + if (input[_AT] != null) { + const memberEntries = se_InstanceEventWindowAssociationRequest(input[_AT], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AssociationTarget.${key}`; entries[loc] = value; @@ -39884,14 +39884,14 @@ const se_AssociateInstanceEventWindowRequest = ( */ const se_AssociateIpamByoasnRequest = (input: AssociateIpamByoasnRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Asn != null) { - entries["Asn"] = input.Asn; + if (input[_As] != null) { + entries[_As] = input[_As]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } return entries; }; @@ -39904,18 +39904,18 @@ const se_AssociateIpamResourceDiscoveryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamId != null) { - entries["IpamId"] = input.IpamId; + if (input[_IIp] != null) { + entries[_IIp] = input[_IIp]; } - if (input.IpamResourceDiscoveryId != null) { - entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId; + if (input[_IRDI] != null) { + entries[_IRDI] = input[_IRDI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39923,11 +39923,11 @@ const se_AssociateIpamResourceDiscoveryRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -39940,12 +39940,12 @@ const se_AssociateNatGatewayAddressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NatGatewayId != null) { - entries["NatGatewayId"] = input.NatGatewayId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.AllocationIds != null) { - const memberEntries = se_AllocationIdList(input.AllocationIds, context); - if (input.AllocationIds?.length === 0) { + if (input[_AIll] != null) { + const memberEntries = se_AllocationIdList(input[_AIll], context); + if (input[_AIll]?.length === 0) { entries.AllocationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39953,9 +39953,9 @@ const se_AssociateNatGatewayAddressRequest = ( entries[loc] = value; }); } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_IpList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_IpList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -39963,8 +39963,8 @@ const se_AssociateNatGatewayAddressRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -39974,17 +39974,17 @@ const se_AssociateNatGatewayAddressRequest = ( */ const se_AssociateRouteTableRequest = (input: AssociateRouteTableRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.GatewayId != null) { - entries["GatewayId"] = input.GatewayId; + if (input[_GI] != null) { + entries[_GI] = input[_GI]; } return entries; }; @@ -39994,17 +39994,17 @@ const se_AssociateRouteTableRequest = (input: AssociateRouteTableRequest, contex */ const se_AssociateSubnetCidrBlockRequest = (input: AssociateSubnetCidrBlockRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv6CidrBlock != null) { - entries["Ipv6CidrBlock"] = input.Ipv6CidrBlock; + if (input[_ICB] != null) { + entries[_ICB] = input[_ICB]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.Ipv6IpamPoolId != null) { - entries["Ipv6IpamPoolId"] = input.Ipv6IpamPoolId; + if (input[_IIPI] != null) { + entries[_IIPI] = input[_IIPI]; } - if (input.Ipv6NetmaskLength != null) { - entries["Ipv6NetmaskLength"] = input.Ipv6NetmaskLength; + if (input[_INL] != null) { + entries[_INL] = input[_INL]; } return entries; }; @@ -40017,15 +40017,15 @@ const se_AssociateTransitGatewayMulticastDomainRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.SubnetIds != null) { - const memberEntries = se_TransitGatewaySubnetIdList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_TransitGatewaySubnetIdList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40033,8 +40033,8 @@ const se_AssociateTransitGatewayMulticastDomainRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40047,14 +40047,14 @@ const se_AssociateTransitGatewayPolicyTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayPolicyTableId != null) { - entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId; + if (input[_TGPTI] != null) { + entries[_TGPTI] = input[_TGPTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40067,14 +40067,14 @@ const se_AssociateTransitGatewayRouteTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40084,26 +40084,26 @@ const se_AssociateTransitGatewayRouteTableRequest = ( */ const se_AssociateTrunkInterfaceRequest = (input: AssociateTrunkInterfaceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BranchInterfaceId != null) { - entries["BranchInterfaceId"] = input.BranchInterfaceId; + if (input[_BII] != null) { + entries[_BII] = input[_BII]; } - if (input.TrunkInterfaceId != null) { - entries["TrunkInterfaceId"] = input.TrunkInterfaceId; + if (input[_TII] != null) { + entries[_TII] = input[_TII]; } - if (input.VlanId != null) { - entries["VlanId"] = input.VlanId; + if (input[_VIl] != null) { + entries[_VIl] = input[_VIl]; } - if (input.GreKey != null) { - entries["GreKey"] = input.GreKey; + if (input[_GK] != null) { + entries[_GK] = input[_GK]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40113,35 +40113,35 @@ const se_AssociateTrunkInterfaceRequest = (input: AssociateTrunkInterfaceRequest */ const se_AssociateVpcCidrBlockRequest = (input: AssociateVpcCidrBlockRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AmazonProvidedIpv6CidrBlock != null) { - entries["AmazonProvidedIpv6CidrBlock"] = input.AmazonProvidedIpv6CidrBlock; + if (input[_APICB] != null) { + entries[_APICB] = input[_APICB]; } - if (input.CidrBlock != null) { - entries["CidrBlock"] = input.CidrBlock; + if (input[_CB] != null) { + entries[_CB] = input[_CB]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.Ipv6CidrBlockNetworkBorderGroup != null) { - entries["Ipv6CidrBlockNetworkBorderGroup"] = input.Ipv6CidrBlockNetworkBorderGroup; + if (input[_ICBNBG] != null) { + entries[_ICBNBG] = input[_ICBNBG]; } - if (input.Ipv6Pool != null) { - entries["Ipv6Pool"] = input.Ipv6Pool; + if (input[_IPpv] != null) { + entries[_IPpv] = input[_IPpv]; } - if (input.Ipv6CidrBlock != null) { - entries["Ipv6CidrBlock"] = input.Ipv6CidrBlock; + if (input[_ICB] != null) { + entries[_ICB] = input[_ICB]; } - if (input.Ipv4IpamPoolId != null) { - entries["Ipv4IpamPoolId"] = input.Ipv4IpamPoolId; + if (input[_IIPIp] != null) { + entries[_IIPIp] = input[_IIPIp]; } - if (input.Ipv4NetmaskLength != null) { - entries["Ipv4NetmaskLength"] = input.Ipv4NetmaskLength; + if (input[_INLp] != null) { + entries[_INLp] = input[_INLp]; } - if (input.Ipv6IpamPoolId != null) { - entries["Ipv6IpamPoolId"] = input.Ipv6IpamPoolId; + if (input[_IIPI] != null) { + entries[_IIPI] = input[_IIPI]; } - if (input.Ipv6NetmaskLength != null) { - entries["Ipv6NetmaskLength"] = input.Ipv6NetmaskLength; + if (input[_INL] != null) { + entries[_INL] = input[_INL]; } return entries; }; @@ -40167,17 +40167,17 @@ const se_AssociationIdList = (input: string[], context: __SerdeContext): any => */ const se_AthenaIntegration = (input: AthenaIntegration, context: __SerdeContext): any => { const entries: any = {}; - if (input.IntegrationResultS3DestinationArn != null) { - entries["IntegrationResultS3DestinationArn"] = input.IntegrationResultS3DestinationArn; + if (input[_IRSDA] != null) { + entries[_IRSDA] = input[_IRSDA]; } - if (input.PartitionLoadFrequency != null) { - entries["PartitionLoadFrequency"] = input.PartitionLoadFrequency; + if (input[_PLF] != null) { + entries[_PLF] = input[_PLF]; } - if (input.PartitionStartDate != null) { - entries["PartitionStartDate"] = input.PartitionStartDate.toISOString().split(".")[0] + "Z"; + if (input[_PSD] != null) { + entries[_PSD] = input[_PSD].toISOString().split(".")[0] + "Z"; } - if (input.PartitionEndDate != null) { - entries["PartitionEndDate"] = input.PartitionEndDate.toISOString().split(".")[0] + "Z"; + if (input[_PED] != null) { + entries[_PED] = input[_PED].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -40206,12 +40206,12 @@ const se_AthenaIntegrationsSet = (input: AthenaIntegration[], context: __SerdeCo */ const se_AttachClassicLinkVpcRequest = (input: AttachClassicLinkVpcRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Groups != null) { - const memberEntries = se_GroupIdStringList(input.Groups, context); - if (input.Groups?.length === 0) { + if (input[_G] != null) { + const memberEntries = se_GroupIdStringList(input[_G], context); + if (input[_G]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40219,11 +40219,11 @@ const se_AttachClassicLinkVpcRequest = (input: AttachClassicLinkVpcRequest, cont entries[loc] = value; }); } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -40233,14 +40233,14 @@ const se_AttachClassicLinkVpcRequest = (input: AttachClassicLinkVpcRequest, cont */ const se_AttachInternetGatewayRequest = (input: AttachInternetGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InternetGatewayId != null) { - entries["InternetGatewayId"] = input.InternetGatewayId; + if (input[_IGI] != null) { + entries[_IGI] = input[_IGI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -40250,23 +40250,23 @@ const se_AttachInternetGatewayRequest = (input: AttachInternetGatewayRequest, co */ const se_AttachNetworkInterfaceRequest = (input: AttachNetworkInterfaceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DeviceIndex != null) { - entries["DeviceIndex"] = input.DeviceIndex; + if (input[_DIev] != null) { + entries[_DIev] = input[_DIev]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.NetworkCardIndex != null) { - entries["NetworkCardIndex"] = input.NetworkCardIndex; + if (input[_NCI] != null) { + entries[_NCI] = input[_NCI]; } - if (input.EnaSrdSpecification != null) { - const memberEntries = se_EnaSrdSpecification(input.EnaSrdSpecification, context); + if (input[_ESS] != null) { + const memberEntries = se_EnaSrdSpecification(input[_ESS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnaSrdSpecification.${key}`; entries[loc] = value; @@ -40283,20 +40283,20 @@ const se_AttachVerifiedAccessTrustProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.VerifiedAccessTrustProviderId != null) { - entries["VerifiedAccessTrustProviderId"] = input.VerifiedAccessTrustProviderId; + if (input[_VATPI] != null) { + entries[_VATPI] = input[_VATPI]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40306,17 +40306,17 @@ const se_AttachVerifiedAccessTrustProviderRequest = ( */ const se_AttachVolumeRequest = (input: AttachVolumeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Device != null) { - entries["Device"] = input.Device; + if (input[_Dev] != null) { + entries[_Dev] = input[_Dev]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40326,14 +40326,14 @@ const se_AttachVolumeRequest = (input: AttachVolumeRequest, context: __SerdeCont */ const se_AttachVpnGatewayRequest = (input: AttachVpnGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.VpnGatewayId != null) { - entries["VpnGatewayId"] = input.VpnGatewayId; + if (input[_VGI] != null) { + entries[_VGI] = input[_VGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40343,8 +40343,8 @@ const se_AttachVpnGatewayRequest = (input: AttachVpnGatewayRequest, context: __S */ const se_AttributeBooleanValue = (input: AttributeBooleanValue, context: __SerdeContext): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -40354,8 +40354,8 @@ const se_AttributeBooleanValue = (input: AttributeBooleanValue, context: __Serde */ const se_AttributeValue = (input: AttributeValue, context: __SerdeContext): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -40365,29 +40365,29 @@ const se_AttributeValue = (input: AttributeValue, context: __SerdeContext): any */ const se_AuthorizeClientVpnIngressRequest = (input: AuthorizeClientVpnIngressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.TargetNetworkCidr != null) { - entries["TargetNetworkCidr"] = input.TargetNetworkCidr; + if (input[_TNC] != null) { + entries[_TNC] = input[_TNC]; } - if (input.AccessGroupId != null) { - entries["AccessGroupId"] = input.AccessGroupId; + if (input[_AGI] != null) { + entries[_AGI] = input[_AGI]; } - if (input.AuthorizeAllGroups != null) { - entries["AuthorizeAllGroups"] = input.AuthorizeAllGroups; + if (input[_AAG] != null) { + entries[_AAG] = input[_AAG]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40400,15 +40400,15 @@ const se_AuthorizeSecurityGroupEgressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.IpPermissions != null) { - const memberEntries = se_IpPermissionList(input.IpPermissions, context); - if (input.IpPermissions?.length === 0) { + if (input[_IPpe] != null) { + const memberEntries = se_IpPermissionList(input[_IPpe], context); + if (input[_IPpe]?.length === 0) { entries.IpPermissions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40416,9 +40416,9 @@ const se_AuthorizeSecurityGroupEgressRequest = ( entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40426,23 +40426,23 @@ const se_AuthorizeSecurityGroupEgressRequest = ( entries[loc] = value; }); } - if (input.CidrIp != null) { - entries["CidrIp"] = input.CidrIp; + if (input[_CIi] != null) { + entries[_CIi] = input[_CIi]; } - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.IpProtocol != null) { - entries["IpProtocol"] = input.IpProtocol; + if (input[_IPpr] != null) { + entries[_IPpr] = input[_IPpr]; } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } - if (input.SourceSecurityGroupName != null) { - entries["SourceSecurityGroupName"] = input.SourceSecurityGroupName; + if (input[_SSGN] != null) { + entries[_SSGN] = input[_SSGN]; } - if (input.SourceSecurityGroupOwnerId != null) { - entries["SourceSecurityGroupOwnerId"] = input.SourceSecurityGroupOwnerId; + if (input[_SSGOI] != null) { + entries[_SSGOI] = input[_SSGOI]; } return entries; }; @@ -40455,21 +40455,21 @@ const se_AuthorizeSecurityGroupIngressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CidrIp != null) { - entries["CidrIp"] = input.CidrIp; + if (input[_CIi] != null) { + entries[_CIi] = input[_CIi]; } - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.IpPermissions != null) { - const memberEntries = se_IpPermissionList(input.IpPermissions, context); - if (input.IpPermissions?.length === 0) { + if (input[_IPpe] != null) { + const memberEntries = se_IpPermissionList(input[_IPpe], context); + if (input[_IPpe]?.length === 0) { entries.IpPermissions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40477,24 +40477,24 @@ const se_AuthorizeSecurityGroupIngressRequest = ( entries[loc] = value; }); } - if (input.IpProtocol != null) { - entries["IpProtocol"] = input.IpProtocol; + if (input[_IPpr] != null) { + entries[_IPpr] = input[_IPpr]; } - if (input.SourceSecurityGroupName != null) { - entries["SourceSecurityGroupName"] = input.SourceSecurityGroupName; + if (input[_SSGN] != null) { + entries[_SSGN] = input[_SSGN]; } - if (input.SourceSecurityGroupOwnerId != null) { - entries["SourceSecurityGroupOwnerId"] = input.SourceSecurityGroupOwnerId; + if (input[_SSGOI] != null) { + entries[_SSGOI] = input[_SSGOI]; } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40526,11 +40526,11 @@ const se_AvailabilityZoneStringList = (input: string[], context: __SerdeContext) */ const se_BaselineEbsBandwidthMbps = (input: BaselineEbsBandwidthMbps, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -40540,11 +40540,11 @@ const se_BaselineEbsBandwidthMbps = (input: BaselineEbsBandwidthMbps, context: _ */ const se_BaselineEbsBandwidthMbpsRequest = (input: BaselineEbsBandwidthMbpsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -40570,8 +40570,8 @@ const se_BillingProductList = (input: string[], context: __SerdeContext): any => */ const se_BlobAttributeValue = (input: BlobAttributeValue, context: __SerdeContext): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = context.base64Encoder(input.Value); + if (input[_Va] != null) { + entries[_Va] = context.base64Encoder(input[_Va]); } return entries; }; @@ -40581,21 +40581,21 @@ const se_BlobAttributeValue = (input: BlobAttributeValue, context: __SerdeContex */ const se_BlockDeviceMapping = (input: BlockDeviceMapping, context: __SerdeContext): any => { const entries: any = {}; - if (input.DeviceName != null) { - entries["DeviceName"] = input.DeviceName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.VirtualName != null) { - entries["VirtualName"] = input.VirtualName; + if (input[_VN] != null) { + entries[_VN] = input[_VN]; } - if (input.Ebs != null) { - const memberEntries = se_EbsBlockDevice(input.Ebs, context); + if (input[_E] != null) { + const memberEntries = se_EbsBlockDevice(input[_E], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Ebs.${key}`; entries[loc] = value; }); } - if (input.NoDevice != null) { - entries["NoDevice"] = input.NoDevice; + if (input[_ND] != null) { + entries[_ND] = input[_ND]; } return entries; }; @@ -40659,18 +40659,18 @@ const se_BundleIdStringList = (input: string[], context: __SerdeContext): any => */ const se_BundleInstanceRequest = (input: BundleInstanceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.Storage != null) { - const memberEntries = se_Storage(input.Storage, context); + if (input[_St] != null) { + const memberEntries = se_Storage(input[_St], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Storage.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40680,11 +40680,11 @@ const se_BundleInstanceRequest = (input: BundleInstanceRequest, context: __Serde */ const se_CancelBundleTaskRequest = (input: CancelBundleTaskRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BundleId != null) { - entries["BundleId"] = input.BundleId; + if (input[_BIu] != null) { + entries[_BIu] = input[_BIu]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40697,12 +40697,12 @@ const se_CancelCapacityReservationFleetsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.CapacityReservationFleetIds != null) { - const memberEntries = se_CapacityReservationFleetIdSet(input.CapacityReservationFleetIds, context); - if (input.CapacityReservationFleetIds?.length === 0) { + if (input[_CRFI] != null) { + const memberEntries = se_CapacityReservationFleetIdSet(input[_CRFI], context); + if (input[_CRFI]?.length === 0) { entries.CapacityReservationFleetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40718,11 +40718,11 @@ const se_CancelCapacityReservationFleetsRequest = ( */ const se_CancelCapacityReservationRequest = (input: CancelCapacityReservationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CapacityReservationId != null) { - entries["CapacityReservationId"] = input.CapacityReservationId; + if (input[_CRI] != null) { + entries[_CRI] = input[_CRI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40732,14 +40732,14 @@ const se_CancelCapacityReservationRequest = (input: CancelCapacityReservationReq */ const se_CancelConversionRequest = (input: CancelConversionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ConversionTaskId != null) { - entries["ConversionTaskId"] = input.ConversionTaskId; + if (input[_CTI] != null) { + entries[_CTI] = input[_CTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ReasonMessage != null) { - entries["ReasonMessage"] = input.ReasonMessage; + if (input[_RM] != null) { + entries[_RM] = input[_RM]; } return entries; }; @@ -40749,8 +40749,8 @@ const se_CancelConversionRequest = (input: CancelConversionRequest, context: __S */ const se_CancelExportTaskRequest = (input: CancelExportTaskRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExportTaskId != null) { - entries["ExportTaskId"] = input.ExportTaskId; + if (input[_ETI] != null) { + entries[_ETI] = input[_ETI]; } return entries; }; @@ -40763,11 +40763,11 @@ const se_CancelImageLaunchPermissionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -40777,14 +40777,14 @@ const se_CancelImageLaunchPermissionRequest = ( */ const se_CancelImportTaskRequest = (input: CancelImportTaskRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CancelReason != null) { - entries["CancelReason"] = input.CancelReason; + if (input[_CRa] != null) { + entries[_CRa] = input[_CRa]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ImportTaskId != null) { - entries["ImportTaskId"] = input.ImportTaskId; + if (input[_ITI] != null) { + entries[_ITI] = input[_ITI]; } return entries; }; @@ -40797,8 +40797,8 @@ const se_CancelReservedInstancesListingRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedInstancesListingId != null) { - entries["ReservedInstancesListingId"] = input.ReservedInstancesListingId; + if (input[_RILI] != null) { + entries[_RILI] = input[_RILI]; } return entries; }; @@ -40808,12 +40808,12 @@ const se_CancelReservedInstancesListingRequest = ( */ const se_CancelSpotFleetRequestsRequest = (input: CancelSpotFleetRequestsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SpotFleetRequestIds != null) { - const memberEntries = se_SpotFleetRequestIdList(input.SpotFleetRequestIds, context); - if (input.SpotFleetRequestIds?.length === 0) { + if (input[_SFRI] != null) { + const memberEntries = se_SpotFleetRequestIdList(input[_SFRI], context); + if (input[_SFRI]?.length === 0) { entries.SpotFleetRequestId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40821,8 +40821,8 @@ const se_CancelSpotFleetRequestsRequest = (input: CancelSpotFleetRequestsRequest entries[loc] = value; }); } - if (input.TerminateInstances != null) { - entries["TerminateInstances"] = input.TerminateInstances; + if (input[_TI] != null) { + entries[_TI] = input[_TI]; } return entries; }; @@ -40835,12 +40835,12 @@ const se_CancelSpotInstanceRequestsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SpotInstanceRequestIds != null) { - const memberEntries = se_SpotInstanceRequestIdList(input.SpotInstanceRequestIds, context); - if (input.SpotInstanceRequestIds?.length === 0) { + if (input[_SIRI] != null) { + const memberEntries = se_SpotInstanceRequestIdList(input[_SIRI], context); + if (input[_SIRI]?.length === 0) { entries.SpotInstanceRequestId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -40891,8 +40891,8 @@ const se_CapacityReservationOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UsageStrategy != null) { - entries["UsageStrategy"] = input.UsageStrategy; + if (input[_USs] != null) { + entries[_USs] = input[_USs]; } return entries; }; @@ -40902,11 +40902,11 @@ const se_CapacityReservationOptionsRequest = ( */ const se_CapacityReservationSpecification = (input: CapacityReservationSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.CapacityReservationPreference != null) { - entries["CapacityReservationPreference"] = input.CapacityReservationPreference; + if (input[_CRP] != null) { + entries[_CRP] = input[_CRP]; } - if (input.CapacityReservationTarget != null) { - const memberEntries = se_CapacityReservationTarget(input.CapacityReservationTarget, context); + if (input[_CRTa] != null) { + const memberEntries = se_CapacityReservationTarget(input[_CRTa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityReservationTarget.${key}`; entries[loc] = value; @@ -40920,11 +40920,11 @@ const se_CapacityReservationSpecification = (input: CapacityReservationSpecifica */ const se_CapacityReservationTarget = (input: CapacityReservationTarget, context: __SerdeContext): any => { const entries: any = {}; - if (input.CapacityReservationId != null) { - entries["CapacityReservationId"] = input.CapacityReservationId; + if (input[_CRI] != null) { + entries[_CRI] = input[_CRI]; } - if (input.CapacityReservationResourceGroupArn != null) { - entries["CapacityReservationResourceGroupArn"] = input.CapacityReservationResourceGroupArn; + if (input[_CRRGA] != null) { + entries[_CRRGA] = input[_CRRGA]; } return entries; }; @@ -40950,8 +40950,8 @@ const se_CarrierGatewayIdSet = (input: string[], context: __SerdeContext): any = */ const se_CertificateAuthenticationRequest = (input: CertificateAuthenticationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientRootCertificateChainArn != null) { - entries["ClientRootCertificateChainArn"] = input.ClientRootCertificateChainArn; + if (input[_CRCCA] != null) { + entries[_CRCCA] = input[_CRCCA]; } return entries; }; @@ -40961,11 +40961,11 @@ const se_CertificateAuthenticationRequest = (input: CertificateAuthenticationReq */ const se_CidrAuthorizationContext = (input: CidrAuthorizationContext, context: __SerdeContext): any => { const entries: any = {}; - if (input.Message != null) { - entries["Message"] = input.Message; + if (input[_Me] != null) { + entries[_Me] = input[_Me]; } - if (input.Signature != null) { - entries["Signature"] = input.Signature; + if (input[_Si] != null) { + entries[_Si] = input[_Si]; } return entries; }; @@ -40975,8 +40975,8 @@ const se_CidrAuthorizationContext = (input: CidrAuthorizationContext, context: _ */ const se_ClassicLoadBalancer = (input: ClassicLoadBalancer, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } return entries; }; @@ -41005,9 +41005,9 @@ const se_ClassicLoadBalancers = (input: ClassicLoadBalancer[], context: __SerdeC */ const se_ClassicLoadBalancersConfig = (input: ClassicLoadBalancersConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClassicLoadBalancers != null) { - const memberEntries = se_ClassicLoadBalancers(input.ClassicLoadBalancers, context); - if (input.ClassicLoadBalancers?.length === 0) { + if (input[_CLB] != null) { + const memberEntries = se_ClassicLoadBalancers(input[_CLB], context); + if (input[_CLB]?.length === 0) { entries.ClassicLoadBalancers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41023,11 +41023,11 @@ const se_ClassicLoadBalancersConfig = (input: ClassicLoadBalancersConfig, contex */ const se_ClientConnectOptions = (input: ClientConnectOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.LambdaFunctionArn != null) { - entries["LambdaFunctionArn"] = input.LambdaFunctionArn; + if (input[_LFA] != null) { + entries[_LFA] = input[_LFA]; } return entries; }; @@ -41037,17 +41037,17 @@ const se_ClientConnectOptions = (input: ClientConnectOptions, context: __SerdeCo */ const se_ClientData = (input: ClientData, context: __SerdeContext): any => { const entries: any = {}; - if (input.Comment != null) { - entries["Comment"] = input.Comment; + if (input[_Co] != null) { + entries[_Co] = input[_Co]; } - if (input.UploadEnd != null) { - entries["UploadEnd"] = input.UploadEnd.toISOString().split(".")[0] + "Z"; + if (input[_UE] != null) { + entries[_UE] = input[_UE].toISOString().split(".")[0] + "Z"; } - if (input.UploadSize != null) { - entries["UploadSize"] = __serializeFloat(input.UploadSize); + if (input[_USp] != null) { + entries[_USp] = __serializeFloat(input[_USp]); } - if (input.UploadStart != null) { - entries["UploadStart"] = input.UploadStart.toISOString().split(".")[0] + "Z"; + if (input[_USpl] != null) { + entries[_USpl] = input[_USpl].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -41057,11 +41057,11 @@ const se_ClientData = (input: ClientData, context: __SerdeContext): any => { */ const se_ClientLoginBannerOptions = (input: ClientLoginBannerOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.BannerText != null) { - entries["BannerText"] = input.BannerText; + if (input[_BT] != null) { + entries[_BT] = input[_BT]; } return entries; }; @@ -41071,25 +41071,25 @@ const se_ClientLoginBannerOptions = (input: ClientLoginBannerOptions, context: _ */ const se_ClientVpnAuthenticationRequest = (input: ClientVpnAuthenticationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.ActiveDirectory != null) { - const memberEntries = se_DirectoryServiceAuthenticationRequest(input.ActiveDirectory, context); + if (input[_AD] != null) { + const memberEntries = se_DirectoryServiceAuthenticationRequest(input[_AD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ActiveDirectory.${key}`; entries[loc] = value; }); } - if (input.MutualAuthentication != null) { - const memberEntries = se_CertificateAuthenticationRequest(input.MutualAuthentication, context); + if (input[_MA] != null) { + const memberEntries = se_CertificateAuthenticationRequest(input[_MA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MutualAuthentication.${key}`; entries[loc] = value; }); } - if (input.FederatedAuthentication != null) { - const memberEntries = se_FederatedAuthenticationRequest(input.FederatedAuthentication, context); + if (input[_FA] != null) { + const memberEntries = se_FederatedAuthenticationRequest(input[_FA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `FederatedAuthentication.${key}`; entries[loc] = value; @@ -41160,14 +41160,14 @@ const se_CloudWatchLogOptionsSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LogEnabled != null) { - entries["LogEnabled"] = input.LogEnabled; + if (input[_LE] != null) { + entries[_LE] = input[_LE]; } - if (input.LogGroupArn != null) { - entries["LogGroupArn"] = input.LogGroupArn; + if (input[_LGA] != null) { + entries[_LGA] = input[_LGA]; } - if (input.LogOutputFormat != null) { - entries["LogOutputFormat"] = input.LogOutputFormat; + if (input[_LOF] != null) { + entries[_LOF] = input[_LOF]; } return entries; }; @@ -41193,14 +41193,14 @@ const se_CoipPoolIdSet = (input: string[], context: __SerdeContext): any => { */ const se_ConfirmProductInstanceRequest = (input: ConfirmProductInstanceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.ProductCode != null) { - entries["ProductCode"] = input.ProductCode; + if (input[_PC] != null) { + entries[_PC] = input[_PC]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41210,14 +41210,14 @@ const se_ConfirmProductInstanceRequest = (input: ConfirmProductInstanceRequest, */ const se_ConnectionLogOptions = (input: ConnectionLogOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.CloudwatchLogGroup != null) { - entries["CloudwatchLogGroup"] = input.CloudwatchLogGroup; + if (input[_CLG] != null) { + entries[_CLG] = input[_CLG]; } - if (input.CloudwatchLogStream != null) { - entries["CloudwatchLogStream"] = input.CloudwatchLogStream; + if (input[_CLS] != null) { + entries[_CLS] = input[_CLS]; } return entries; }; @@ -41246,14 +41246,14 @@ const se_ConnectionTrackingSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TcpEstablishedTimeout != null) { - entries["TcpEstablishedTimeout"] = input.TcpEstablishedTimeout; + if (input[_TET] != null) { + entries[_TET] = input[_TET]; } - if (input.UdpStreamTimeout != null) { - entries["UdpStreamTimeout"] = input.UdpStreamTimeout; + if (input[_UST] != null) { + entries[_UST] = input[_UST]; } - if (input.UdpTimeout != null) { - entries["UdpTimeout"] = input.UdpTimeout; + if (input[_UT] != null) { + entries[_UT] = input[_UT]; } return entries; }; @@ -41279,23 +41279,23 @@ const se_ConversionIdStringList = (input: string[], context: __SerdeContext): an */ const se_CopyFpgaImageRequest = (input: CopyFpgaImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SourceFpgaImageId != null) { - entries["SourceFpgaImageId"] = input.SourceFpgaImageId; + if (input[_SFII] != null) { + entries[_SFII] = input[_SFII]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.SourceRegion != null) { - entries["SourceRegion"] = input.SourceRegion; + if (input[_SR] != null) { + entries[_SR] = input[_SR]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -41305,35 +41305,35 @@ const se_CopyFpgaImageRequest = (input: CopyFpgaImageRequest, context: __SerdeCo */ const se_CopyImageRequest = (input: CopyImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.SourceImageId != null) { - entries["SourceImageId"] = input.SourceImageId; + if (input[_SII] != null) { + entries[_SII] = input[_SII]; } - if (input.SourceRegion != null) { - entries["SourceRegion"] = input.SourceRegion; + if (input[_SR] != null) { + entries[_SR] = input[_SR]; } - if (input.DestinationOutpostArn != null) { - entries["DestinationOutpostArn"] = input.DestinationOutpostArn; + if (input[_DOA] != null) { + entries[_DOA] = input[_DOA]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.CopyImageTags != null) { - entries["CopyImageTags"] = input.CopyImageTags; + if (input[_CITo] != null) { + entries[_CITo] = input[_CITo]; } return entries; }; @@ -41343,33 +41343,33 @@ const se_CopyImageRequest = (input: CopyImageRequest, context: __SerdeContext): */ const se_CopySnapshotRequest = (input: CopySnapshotRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DestinationOutpostArn != null) { - entries["DestinationOutpostArn"] = input.DestinationOutpostArn; + if (input[_DOA] != null) { + entries[_DOA] = input[_DOA]; } - if (input.DestinationRegion != null) { - entries["DestinationRegion"] = input.DestinationRegion; + if (input[_DRes] != null) { + entries[_DRes] = input[_DRes]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PresignedUrl != null) { - entries["PresignedUrl"] = input.PresignedUrl; + if (input[_PU] != null) { + entries[_PU] = input[_PU]; } - if (input.SourceRegion != null) { - entries["SourceRegion"] = input.SourceRegion; + if (input[_SR] != null) { + entries[_SR] = input[_SR]; } - if (input.SourceSnapshotId != null) { - entries["SourceSnapshotId"] = input.SourceSnapshotId; + if (input[_SSI] != null) { + entries[_SSI] = input[_SSI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41377,8 +41377,8 @@ const se_CopySnapshotRequest = (input: CopySnapshotRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41404,14 +41404,14 @@ const se_CpuManufacturerSet = (input: CpuManufacturer[], context: __SerdeContext */ const se_CpuOptionsRequest = (input: CpuOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CoreCount != null) { - entries["CoreCount"] = input.CoreCount; + if (input[_CC] != null) { + entries[_CC] = input[_CC]; } - if (input.ThreadsPerCore != null) { - entries["ThreadsPerCore"] = input.ThreadsPerCore; + if (input[_TPC] != null) { + entries[_TPC] = input[_TPC]; } - if (input.AmdSevSnp != null) { - entries["AmdSevSnp"] = input.AmdSevSnp; + if (input[_ASS] != null) { + entries[_ASS] = input[_ASS]; } return entries; }; @@ -41424,18 +41424,18 @@ const se_CreateCapacityReservationFleetRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AllocationStrategy != null) { - entries["AllocationStrategy"] = input.AllocationStrategy; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.InstanceTypeSpecifications != null) { - const memberEntries = se_ReservationFleetInstanceSpecificationList(input.InstanceTypeSpecifications, context); - if (input.InstanceTypeSpecifications?.length === 0) { + if (input[_ITS] != null) { + const memberEntries = se_ReservationFleetInstanceSpecificationList(input[_ITS], context); + if (input[_ITS]?.length === 0) { entries.InstanceTypeSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41443,21 +41443,21 @@ const se_CreateCapacityReservationFleetRequest = ( entries[loc] = value; }); } - if (input.Tenancy != null) { - entries["Tenancy"] = input.Tenancy; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } - if (input.TotalTargetCapacity != null) { - entries["TotalTargetCapacity"] = input.TotalTargetCapacity; + if (input[_TTC] != null) { + entries[_TTC] = input[_TTC]; } - if (input.EndDate != null) { - entries["EndDate"] = input.EndDate.toISOString().split(".")[0] + "Z"; + if (input[_ED] != null) { + entries[_ED] = input[_ED].toISOString().split(".")[0] + "Z"; } - if (input.InstanceMatchCriteria != null) { - entries["InstanceMatchCriteria"] = input.InstanceMatchCriteria; + if (input[_IMC] != null) { + entries[_IMC] = input[_IMC]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41465,8 +41465,8 @@ const se_CreateCapacityReservationFleetRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41476,45 +41476,45 @@ const se_CreateCapacityReservationFleetRequest = ( */ const se_CreateCapacityReservationRequest = (input: CreateCapacityReservationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.InstancePlatform != null) { - entries["InstancePlatform"] = input.InstancePlatform; + if (input[_IPn] != null) { + entries[_IPn] = input[_IPn]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.AvailabilityZoneId != null) { - entries["AvailabilityZoneId"] = input.AvailabilityZoneId; + if (input[_AZI] != null) { + entries[_AZI] = input[_AZI]; } - if (input.Tenancy != null) { - entries["Tenancy"] = input.Tenancy; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.EphemeralStorage != null) { - entries["EphemeralStorage"] = input.EphemeralStorage; + if (input[_ES] != null) { + entries[_ES] = input[_ES]; } - if (input.EndDate != null) { - entries["EndDate"] = input.EndDate.toISOString().split(".")[0] + "Z"; + if (input[_ED] != null) { + entries[_ED] = input[_ED].toISOString().split(".")[0] + "Z"; } - if (input.EndDateType != null) { - entries["EndDateType"] = input.EndDateType; + if (input[_EDT] != null) { + entries[_EDT] = input[_EDT]; } - if (input.InstanceMatchCriteria != null) { - entries["InstanceMatchCriteria"] = input.InstanceMatchCriteria; + if (input[_IMC] != null) { + entries[_IMC] = input[_IMC]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecifications = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41522,14 +41522,14 @@ const se_CreateCapacityReservationRequest = (input: CreateCapacityReservationReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.OutpostArn != null) { - entries["OutpostArn"] = input.OutpostArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.PlacementGroupArn != null) { - entries["PlacementGroupArn"] = input.PlacementGroupArn; + if (input[_PGA] != null) { + entries[_PGA] = input[_PGA]; } return entries; }; @@ -41539,12 +41539,12 @@ const se_CreateCapacityReservationRequest = (input: CreateCapacityReservationReq */ const se_CreateCarrierGatewayRequest = (input: CreateCarrierGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41552,14 +41552,14 @@ const se_CreateCarrierGatewayRequest = (input: CreateCarrierGatewayRequest, cont entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -41569,15 +41569,15 @@ const se_CreateCarrierGatewayRequest = (input: CreateCarrierGatewayRequest, cont */ const se_CreateClientVpnEndpointRequest = (input: CreateClientVpnEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientCidrBlock != null) { - entries["ClientCidrBlock"] = input.ClientCidrBlock; + if (input[_CCB] != null) { + entries[_CCB] = input[_CCB]; } - if (input.ServerCertificateArn != null) { - entries["ServerCertificateArn"] = input.ServerCertificateArn; + if (input[_SCA] != null) { + entries[_SCA] = input[_SCA]; } - if (input.AuthenticationOptions != null) { - const memberEntries = se_ClientVpnAuthenticationRequestList(input.AuthenticationOptions, context); - if (input.AuthenticationOptions?.length === 0) { + if (input[_AO] != null) { + const memberEntries = se_ClientVpnAuthenticationRequestList(input[_AO], context); + if (input[_AO]?.length === 0) { entries.Authentication = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41585,16 +41585,16 @@ const se_CreateClientVpnEndpointRequest = (input: CreateClientVpnEndpointRequest entries[loc] = value; }); } - if (input.ConnectionLogOptions != null) { - const memberEntries = se_ConnectionLogOptions(input.ConnectionLogOptions, context); + if (input[_CLO] != null) { + const memberEntries = se_ConnectionLogOptions(input[_CLO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionLogOptions.${key}`; entries[loc] = value; }); } - if (input.DnsServers != null) { - const memberEntries = se_ValueStringList(input.DnsServers, context); - if (input.DnsServers?.length === 0) { + if (input[_DSn] != null) { + const memberEntries = se_ValueStringList(input[_DSn], context); + if (input[_DSn]?.length === 0) { entries.DnsServers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41602,30 +41602,30 @@ const se_CreateClientVpnEndpointRequest = (input: CreateClientVpnEndpointRequest entries[loc] = value; }); } - if (input.TransportProtocol != null) { - entries["TransportProtocol"] = input.TransportProtocol; + if (input[_TPr] != null) { + entries[_TPr] = input[_TPr]; } - if (input.VpnPort != null) { - entries["VpnPort"] = input.VpnPort; + if (input[_VP] != null) { + entries[_VP] = input[_VP]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.SplitTunnel != null) { - entries["SplitTunnel"] = input.SplitTunnel; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41633,9 +41633,9 @@ const se_CreateClientVpnEndpointRequest = (input: CreateClientVpnEndpointRequest entries[loc] = value; }); } - if (input.SecurityGroupIds != null) { - const memberEntries = se_ClientVpnSecurityGroupIdSet(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_ClientVpnSecurityGroupIdSet(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41643,24 +41643,24 @@ const se_CreateClientVpnEndpointRequest = (input: CreateClientVpnEndpointRequest entries[loc] = value; }); } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.SelfServicePortal != null) { - entries["SelfServicePortal"] = input.SelfServicePortal; + if (input[_SSP] != null) { + entries[_SSP] = input[_SSP]; } - if (input.ClientConnectOptions != null) { - const memberEntries = se_ClientConnectOptions(input.ClientConnectOptions, context); + if (input[_CCO] != null) { + const memberEntries = se_ClientConnectOptions(input[_CCO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ClientConnectOptions.${key}`; entries[loc] = value; }); } - if (input.SessionTimeoutHours != null) { - entries["SessionTimeoutHours"] = input.SessionTimeoutHours; + if (input[_STH] != null) { + entries[_STH] = input[_STH]; } - if (input.ClientLoginBannerOptions != null) { - const memberEntries = se_ClientLoginBannerOptions(input.ClientLoginBannerOptions, context); + if (input[_CLBO] != null) { + const memberEntries = se_ClientLoginBannerOptions(input[_CLBO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ClientLoginBannerOptions.${key}`; entries[loc] = value; @@ -41674,26 +41674,26 @@ const se_CreateClientVpnEndpointRequest = (input: CreateClientVpnEndpointRequest */ const se_CreateClientVpnRouteRequest = (input: CreateClientVpnRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.TargetVpcSubnetId != null) { - entries["TargetVpcSubnetId"] = input.TargetVpcSubnetId; + if (input[_TVSI] != null) { + entries[_TVSI] = input[_TVSI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41703,14 +41703,14 @@ const se_CreateClientVpnRouteRequest = (input: CreateClientVpnRouteRequest, cont */ const se_CreateCoipCidrRequest = (input: CreateCoipCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.CoipPoolId != null) { - entries["CoipPoolId"] = input.CoipPoolId; + if (input[_CPIo] != null) { + entries[_CPIo] = input[_CPIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41720,12 +41720,12 @@ const se_CreateCoipCidrRequest = (input: CreateCoipCidrRequest, context: __Serde */ const se_CreateCoipPoolRequest = (input: CreateCoipPoolRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41733,8 +41733,8 @@ const se_CreateCoipPoolRequest = (input: CreateCoipPoolRequest, context: __Serde entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41744,21 +41744,21 @@ const se_CreateCoipPoolRequest = (input: CreateCoipPoolRequest, context: __Serde */ const se_CreateCustomerGatewayRequest = (input: CreateCustomerGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BgpAsn != null) { - entries["BgpAsn"] = input.BgpAsn; + if (input[_BA] != null) { + entries[_BA] = input[_BA]; } - if (input.PublicIp != null) { - entries["PublicIp"] = input.PublicIp; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.CertificateArn != null) { - entries["CertificateArn"] = input.CertificateArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41766,14 +41766,14 @@ const se_CreateCustomerGatewayRequest = (input: CreateCustomerGatewayRequest, co entries[loc] = value; }); } - if (input.DeviceName != null) { - entries["DeviceName"] = input.DeviceName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.IpAddress != null) { - entries["IpAddress"] = input.IpAddress; + if (input[_IAp] != null) { + entries[_IAp] = input[_IAp]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41783,14 +41783,14 @@ const se_CreateCustomerGatewayRequest = (input: CreateCustomerGatewayRequest, co */ const se_CreateDefaultSubnetRequest = (input: CreateDefaultSubnetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Ipv6Native != null) { - entries["Ipv6Native"] = input.Ipv6Native; + if (input[_IN] != null) { + entries[_IN] = input[_IN]; } return entries; }; @@ -41800,8 +41800,8 @@ const se_CreateDefaultSubnetRequest = (input: CreateDefaultSubnetRequest, contex */ const se_CreateDefaultVpcRequest = (input: CreateDefaultVpcRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41811,9 +41811,9 @@ const se_CreateDefaultVpcRequest = (input: CreateDefaultVpcRequest, context: __S */ const se_CreateDhcpOptionsRequest = (input: CreateDhcpOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DhcpConfigurations != null) { - const memberEntries = se_NewDhcpConfigurationList(input.DhcpConfigurations, context); - if (input.DhcpConfigurations?.length === 0) { + if (input[_DCh] != null) { + const memberEntries = se_NewDhcpConfigurationList(input[_DCh], context); + if (input[_DCh]?.length === 0) { entries.DhcpConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41821,9 +41821,9 @@ const se_CreateDhcpOptionsRequest = (input: CreateDhcpOptionsRequest, context: _ entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41831,8 +41831,8 @@ const se_CreateDhcpOptionsRequest = (input: CreateDhcpOptionsRequest, context: _ entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -41845,18 +41845,18 @@ const se_CreateEgressOnlyInternetGatewayRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41872,32 +41872,32 @@ const se_CreateEgressOnlyInternetGatewayRequest = ( */ const se_CreateFleetRequest = (input: CreateFleetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.SpotOptions != null) { - const memberEntries = se_SpotOptionsRequest(input.SpotOptions, context); + if (input[_SO] != null) { + const memberEntries = se_SpotOptionsRequest(input[_SO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SpotOptions.${key}`; entries[loc] = value; }); } - if (input.OnDemandOptions != null) { - const memberEntries = se_OnDemandOptionsRequest(input.OnDemandOptions, context); + if (input[_ODO] != null) { + const memberEntries = se_OnDemandOptionsRequest(input[_ODO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OnDemandOptions.${key}`; entries[loc] = value; }); } - if (input.ExcessCapacityTerminationPolicy != null) { - entries["ExcessCapacityTerminationPolicy"] = input.ExcessCapacityTerminationPolicy; + if (input[_ECTP] != null) { + entries[_ECTP] = input[_ECTP]; } - if (input.LaunchTemplateConfigs != null) { - const memberEntries = se_FleetLaunchTemplateConfigListRequest(input.LaunchTemplateConfigs, context); - if (input.LaunchTemplateConfigs?.length === 0) { + if (input[_LTC] != null) { + const memberEntries = se_FleetLaunchTemplateConfigListRequest(input[_LTC], context); + if (input[_LTC]?.length === 0) { entries.LaunchTemplateConfigs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41905,31 +41905,31 @@ const se_CreateFleetRequest = (input: CreateFleetRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.TargetCapacitySpecification != null) { - const memberEntries = se_TargetCapacitySpecificationRequest(input.TargetCapacitySpecification, context); + if (input[_TCS] != null) { + const memberEntries = se_TargetCapacitySpecificationRequest(input[_TCS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TargetCapacitySpecification.${key}`; entries[loc] = value; }); } - if (input.TerminateInstancesWithExpiration != null) { - entries["TerminateInstancesWithExpiration"] = input.TerminateInstancesWithExpiration; + if (input[_TIWE] != null) { + entries[_TIWE] = input[_TIWE]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.ValidFrom != null) { - entries["ValidFrom"] = input.ValidFrom.toISOString().split(".")[0] + "Z"; + if (input[_VF] != null) { + entries[_VF] = input[_VF].toISOString().split(".")[0] + "Z"; } - if (input.ValidUntil != null) { - entries["ValidUntil"] = input.ValidUntil.toISOString().split(".")[0] + "Z"; + if (input[_VU] != null) { + entries[_VU] = input[_VU].toISOString().split(".")[0] + "Z"; } - if (input.ReplaceUnhealthyInstances != null) { - entries["ReplaceUnhealthyInstances"] = input.ReplaceUnhealthyInstances; + if (input[_RUI] != null) { + entries[_RUI] = input[_RUI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41937,8 +41937,8 @@ const se_CreateFleetRequest = (input: CreateFleetRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.Context != null) { - entries["Context"] = input.Context; + if (input[_Con] != null) { + entries[_Con] = input[_Con]; } return entries; }; @@ -41948,24 +41948,24 @@ const se_CreateFleetRequest = (input: CreateFleetRequest, context: __SerdeContex */ const se_CreateFlowLogsRequest = (input: CreateFlowLogsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DeliverLogsPermissionArn != null) { - entries["DeliverLogsPermissionArn"] = input.DeliverLogsPermissionArn; + if (input[_DLPA] != null) { + entries[_DLPA] = input[_DLPA]; } - if (input.DeliverCrossAccountRole != null) { - entries["DeliverCrossAccountRole"] = input.DeliverCrossAccountRole; + if (input[_DCAR] != null) { + entries[_DCAR] = input[_DCAR]; } - if (input.LogGroupName != null) { - entries["LogGroupName"] = input.LogGroupName; + if (input[_LGN] != null) { + entries[_LGN] = input[_LGN]; } - if (input.ResourceIds != null) { - const memberEntries = se_FlowLogResourceIds(input.ResourceIds, context); - if (input.ResourceIds?.length === 0) { + if (input[_RIes] != null) { + const memberEntries = se_FlowLogResourceIds(input[_RIes], context); + if (input[_RIes]?.length === 0) { entries.ResourceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41973,24 +41973,24 @@ const se_CreateFlowLogsRequest = (input: CreateFlowLogsRequest, context: __Serde entries[loc] = value; }); } - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.TrafficType != null) { - entries["TrafficType"] = input.TrafficType; + if (input[_TT] != null) { + entries[_TT] = input[_TT]; } - if (input.LogDestinationType != null) { - entries["LogDestinationType"] = input.LogDestinationType; + if (input[_LDT] != null) { + entries[_LDT] = input[_LDT]; } - if (input.LogDestination != null) { - entries["LogDestination"] = input.LogDestination; + if (input[_LD] != null) { + entries[_LD] = input[_LD]; } - if (input.LogFormat != null) { - entries["LogFormat"] = input.LogFormat; + if (input[_LF] != null) { + entries[_LF] = input[_LF]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -41998,11 +41998,11 @@ const se_CreateFlowLogsRequest = (input: CreateFlowLogsRequest, context: __Serde entries[loc] = value; }); } - if (input.MaxAggregationInterval != null) { - entries["MaxAggregationInterval"] = input.MaxAggregationInterval; + if (input[_MAI] != null) { + entries[_MAI] = input[_MAI]; } - if (input.DestinationOptions != null) { - const memberEntries = se_DestinationOptionsRequest(input.DestinationOptions, context); + if (input[_DO] != null) { + const memberEntries = se_DestinationOptionsRequest(input[_DO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DestinationOptions.${key}`; entries[loc] = value; @@ -42016,35 +42016,35 @@ const se_CreateFlowLogsRequest = (input: CreateFlowLogsRequest, context: __Serde */ const se_CreateFpgaImageRequest = (input: CreateFpgaImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InputStorageLocation != null) { - const memberEntries = se_StorageLocation(input.InputStorageLocation, context); + if (input[_ISL] != null) { + const memberEntries = se_StorageLocation(input[_ISL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InputStorageLocation.${key}`; entries[loc] = value; }); } - if (input.LogsStorageLocation != null) { - const memberEntries = se_StorageLocation(input.LogsStorageLocation, context); + if (input[_LSL] != null) { + const memberEntries = se_StorageLocation(input[_LSL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LogsStorageLocation.${key}`; entries[loc] = value; }); } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42060,9 +42060,9 @@ const se_CreateFpgaImageRequest = (input: CreateFpgaImageRequest, context: __Ser */ const se_CreateImageRequest = (input: CreateImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BlockDeviceMappings != null) { - const memberEntries = se_BlockDeviceMappingRequestList(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_BlockDeviceMappingRequestList(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42070,24 +42070,24 @@ const se_CreateImageRequest = (input: CreateImageRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.NoReboot != null) { - entries["NoReboot"] = input.NoReboot; + if (input[_NR] != null) { + entries[_NR] = input[_NR]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42106,15 +42106,15 @@ const se_CreateInstanceConnectEndpointRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdStringListRequest(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdStringListRequest(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42122,18 +42122,18 @@ const se_CreateInstanceConnectEndpointRequest = ( entries[loc] = value; }); } - if (input.PreserveClientIp != null) { - entries["PreserveClientIp"] = input.PreserveClientIp; + if (input[_PCI] != null) { + entries[_PCI] = input[_PCI]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42149,15 +42149,15 @@ const se_CreateInstanceConnectEndpointRequest = ( */ const se_CreateInstanceEventWindowRequest = (input: CreateInstanceEventWindowRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.TimeRanges != null) { - const memberEntries = se_InstanceEventWindowTimeRangeRequestSet(input.TimeRanges, context); - if (input.TimeRanges?.length === 0) { + if (input[_TRi] != null) { + const memberEntries = se_InstanceEventWindowTimeRangeRequestSet(input[_TRi], context); + if (input[_TRi]?.length === 0) { entries.TimeRange = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42165,12 +42165,12 @@ const se_CreateInstanceEventWindowRequest = (input: CreateInstanceEventWindowReq entries[loc] = value; }); } - if (input.CronExpression != null) { - entries["CronExpression"] = input.CronExpression; + if (input[_CE] != null) { + entries[_CE] = input[_CE]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42186,25 +42186,25 @@ const se_CreateInstanceEventWindowRequest = (input: CreateInstanceEventWindowReq */ const se_CreateInstanceExportTaskRequest = (input: CreateInstanceExportTaskRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.ExportToS3Task != null) { - const memberEntries = se_ExportToS3TaskSpecification(input.ExportToS3Task, context); + if (input[_ETST] != null) { + const memberEntries = se_ExportToS3TaskSpecification(input[_ETST], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ExportToS3.${key}`; entries[loc] = value; }); } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.TargetEnvironment != null) { - entries["TargetEnvironment"] = input.TargetEnvironment; + if (input[_TE] != null) { + entries[_TE] = input[_TE]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42220,9 +42220,9 @@ const se_CreateInstanceExportTaskRequest = (input: CreateInstanceExportTaskReque */ const se_CreateInternetGatewayRequest = (input: CreateInternetGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42230,8 +42230,8 @@ const se_CreateInternetGatewayRequest = (input: CreateInternetGatewayRequest, co entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -42241,42 +42241,42 @@ const se_CreateInternetGatewayRequest = (input: CreateInternetGatewayRequest, co */ const se_CreateIpamPoolRequest = (input: CreateIpamPoolRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamScopeId != null) { - entries["IpamScopeId"] = input.IpamScopeId; + if (input[_ISI] != null) { + entries[_ISI] = input[_ISI]; } - if (input.Locale != null) { - entries["Locale"] = input.Locale; + if (input[_L] != null) { + entries[_L] = input[_L]; } - if (input.SourceIpamPoolId != null) { - entries["SourceIpamPoolId"] = input.SourceIpamPoolId; + if (input[_SIPI] != null) { + entries[_SIPI] = input[_SIPI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.AddressFamily != null) { - entries["AddressFamily"] = input.AddressFamily; + if (input[_AF] != null) { + entries[_AF] = input[_AF]; } - if (input.AutoImport != null) { - entries["AutoImport"] = input.AutoImport; + if (input[_AIu] != null) { + entries[_AIu] = input[_AIu]; } - if (input.PubliclyAdvertisable != null) { - entries["PubliclyAdvertisable"] = input.PubliclyAdvertisable; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.AllocationMinNetmaskLength != null) { - entries["AllocationMinNetmaskLength"] = input.AllocationMinNetmaskLength; + if (input[_AMNL] != null) { + entries[_AMNL] = input[_AMNL]; } - if (input.AllocationMaxNetmaskLength != null) { - entries["AllocationMaxNetmaskLength"] = input.AllocationMaxNetmaskLength; + if (input[_AMNLl] != null) { + entries[_AMNLl] = input[_AMNLl]; } - if (input.AllocationDefaultNetmaskLength != null) { - entries["AllocationDefaultNetmaskLength"] = input.AllocationDefaultNetmaskLength; + if (input[_ADNL] != null) { + entries[_ADNL] = input[_ADNL]; } - if (input.AllocationResourceTags != null) { - const memberEntries = se_RequestIpamResourceTagList(input.AllocationResourceTags, context); - if (input.AllocationResourceTags?.length === 0) { + if (input[_ARTl] != null) { + const memberEntries = se_RequestIpamResourceTagList(input[_ARTl], context); + if (input[_ARTl]?.length === 0) { entries.AllocationResourceTag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42284,9 +42284,9 @@ const se_CreateIpamPoolRequest = (input: CreateIpamPoolRequest, context: __Serde entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42294,20 +42294,20 @@ const se_CreateIpamPoolRequest = (input: CreateIpamPoolRequest, context: __Serde entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.AwsService != null) { - entries["AwsService"] = input.AwsService; + if (input[_ASw] != null) { + entries[_ASw] = input[_ASw]; } - if (input.PublicIpSource != null) { - entries["PublicIpSource"] = input.PublicIpSource; + if (input[_PIS] != null) { + entries[_PIS] = input[_PIS]; } - if (input.SourceResource != null) { - const memberEntries = se_IpamPoolSourceResourceRequest(input.SourceResource, context); + if (input[_SRo] != null) { + const memberEntries = se_IpamPoolSourceResourceRequest(input[_SRo], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourceResource.${key}`; entries[loc] = value; @@ -42321,15 +42321,15 @@ const se_CreateIpamPoolRequest = (input: CreateIpamPoolRequest, context: __Serde */ const se_CreateIpamRequest = (input: CreateIpamRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.OperatingRegions != null) { - const memberEntries = se_AddIpamOperatingRegionSet(input.OperatingRegions, context); - if (input.OperatingRegions?.length === 0) { + if (input[_OR] != null) { + const memberEntries = se_AddIpamOperatingRegionSet(input[_OR], context); + if (input[_OR]?.length === 0) { entries.OperatingRegion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42337,9 +42337,9 @@ const se_CreateIpamRequest = (input: CreateIpamRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42347,14 +42347,14 @@ const se_CreateIpamRequest = (input: CreateIpamRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.Tier != null) { - entries["Tier"] = input.Tier; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti]; } return entries; }; @@ -42367,15 +42367,15 @@ const se_CreateIpamResourceDiscoveryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.OperatingRegions != null) { - const memberEntries = se_AddIpamOperatingRegionSet(input.OperatingRegions, context); - if (input.OperatingRegions?.length === 0) { + if (input[_OR] != null) { + const memberEntries = se_AddIpamOperatingRegionSet(input[_OR], context); + if (input[_OR]?.length === 0) { entries.OperatingRegion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42383,9 +42383,9 @@ const se_CreateIpamResourceDiscoveryRequest = ( entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42393,11 +42393,11 @@ const se_CreateIpamResourceDiscoveryRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -42407,18 +42407,18 @@ const se_CreateIpamResourceDiscoveryRequest = ( */ const se_CreateIpamScopeRequest = (input: CreateIpamScopeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamId != null) { - entries["IpamId"] = input.IpamId; + if (input[_IIp] != null) { + entries[_IIp] = input[_IIp]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42426,11 +42426,11 @@ const se_CreateIpamScopeRequest = (input: CreateIpamScopeRequest, context: __Ser entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -42440,18 +42440,18 @@ const se_CreateIpamScopeRequest = (input: CreateIpamScopeRequest, context: __Ser */ const se_CreateKeyPairRequest = (input: CreateKeyPairRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.KeyType != null) { - entries["KeyType"] = input.KeyType; + if (input[_KT] != null) { + entries[_KT] = input[_KT]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42459,8 +42459,8 @@ const se_CreateKeyPairRequest = (input: CreateKeyPairRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.KeyFormat != null) { - entries["KeyFormat"] = input.KeyFormat; + if (input[_KF] != null) { + entries[_KF] = input[_KF]; } return entries; }; @@ -42470,28 +42470,28 @@ const se_CreateKeyPairRequest = (input: CreateKeyPairRequest, context: __SerdeCo */ const se_CreateLaunchTemplateRequest = (input: CreateLaunchTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.VersionDescription != null) { - entries["VersionDescription"] = input.VersionDescription; + if (input[_VD] != null) { + entries[_VD] = input[_VD]; } - if (input.LaunchTemplateData != null) { - const memberEntries = se_RequestLaunchTemplateData(input.LaunchTemplateData, context); + if (input[_LTD] != null) { + const memberEntries = se_RequestLaunchTemplateData(input[_LTD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplateData.${key}`; entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42510,33 +42510,33 @@ const se_CreateLaunchTemplateVersionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.SourceVersion != null) { - entries["SourceVersion"] = input.SourceVersion; + if (input[_SV] != null) { + entries[_SV] = input[_SV]; } - if (input.VersionDescription != null) { - entries["VersionDescription"] = input.VersionDescription; + if (input[_VD] != null) { + entries[_VD] = input[_VD]; } - if (input.LaunchTemplateData != null) { - const memberEntries = se_RequestLaunchTemplateData(input.LaunchTemplateData, context); + if (input[_LTD] != null) { + const memberEntries = se_RequestLaunchTemplateData(input[_LTD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplateData.${key}`; entries[loc] = value; }); } - if (input.ResolveAlias != null) { - entries["ResolveAlias"] = input.ResolveAlias; + if (input[_RAe] != null) { + entries[_RAe] = input[_RAe]; } return entries; }; @@ -42546,23 +42546,23 @@ const se_CreateLaunchTemplateVersionRequest = ( */ const se_CreateLocalGatewayRouteRequest = (input: CreateLocalGatewayRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.LocalGatewayVirtualInterfaceGroupId != null) { - entries["LocalGatewayVirtualInterfaceGroupId"] = input.LocalGatewayVirtualInterfaceGroupId; + if (input[_LGVIGI] != null) { + entries[_LGVIGI] = input[_LGVIGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.DestinationPrefixListId != null) { - entries["DestinationPrefixListId"] = input.DestinationPrefixListId; + if (input[_DPLI] != null) { + entries[_DPLI] = input[_DPLI]; } return entries; }; @@ -42575,15 +42575,15 @@ const se_CreateLocalGatewayRouteTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayId != null) { - entries["LocalGatewayId"] = input.LocalGatewayId; + if (input[_LGI] != null) { + entries[_LGI] = input[_LGI]; } - if (input.Mode != null) { - entries["Mode"] = input.Mode; + if (input[_Mo] != null) { + entries[_Mo] = input[_Mo]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42591,8 +42591,8 @@ const se_CreateLocalGatewayRouteTableRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -42605,15 +42605,15 @@ const se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.LocalGatewayVirtualInterfaceGroupId != null) { - entries["LocalGatewayVirtualInterfaceGroupId"] = input.LocalGatewayVirtualInterfaceGroupId; + if (input[_LGVIGI] != null) { + entries[_LGVIGI] = input[_LGVIGI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42621,8 +42621,8 @@ const se_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -42635,15 +42635,15 @@ const se_CreateLocalGatewayRouteTableVpcAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42651,8 +42651,8 @@ const se_CreateLocalGatewayRouteTableVpcAssociationRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -42662,15 +42662,15 @@ const se_CreateLocalGatewayRouteTableVpcAssociationRequest = ( */ const se_CreateManagedPrefixListRequest = (input: CreateManagedPrefixListRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PrefixListName != null) { - entries["PrefixListName"] = input.PrefixListName; + if (input[_PLN] != null) { + entries[_PLN] = input[_PLN]; } - if (input.Entries != null) { - const memberEntries = se_AddPrefixListEntries(input.Entries, context); - if (input.Entries?.length === 0) { + if (input[_Ent] != null) { + const memberEntries = se_AddPrefixListEntries(input[_Ent], context); + if (input[_Ent]?.length === 0) { entries.Entry = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42678,12 +42678,12 @@ const se_CreateManagedPrefixListRequest = (input: CreateManagedPrefixListRequest entries[loc] = value; }); } - if (input.MaxEntries != null) { - entries["MaxEntries"] = input.MaxEntries; + if (input[_ME] != null) { + entries[_ME] = input[_ME]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42691,14 +42691,14 @@ const se_CreateManagedPrefixListRequest = (input: CreateManagedPrefixListRequest entries[loc] = value; }); } - if (input.AddressFamily != null) { - entries["AddressFamily"] = input.AddressFamily; + if (input[_AF] != null) { + entries[_AF] = input[_AF]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -42708,24 +42708,24 @@ const se_CreateManagedPrefixListRequest = (input: CreateManagedPrefixListRequest */ const se_CreateNatGatewayRequest = (input: CreateNatGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AIl] != null) { + entries[_AIl] = input[_AIl]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42733,15 +42733,15 @@ const se_CreateNatGatewayRequest = (input: CreateNatGatewayRequest, context: __S entries[loc] = value; }); } - if (input.ConnectivityType != null) { - entries["ConnectivityType"] = input.ConnectivityType; + if (input[_CTo] != null) { + entries[_CTo] = input[_CTo]; } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } - if (input.SecondaryAllocationIds != null) { - const memberEntries = se_AllocationIdList(input.SecondaryAllocationIds, context); - if (input.SecondaryAllocationIds?.length === 0) { + if (input[_SAI] != null) { + const memberEntries = se_AllocationIdList(input[_SAI], context); + if (input[_SAI]?.length === 0) { entries.SecondaryAllocationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42749,9 +42749,9 @@ const se_CreateNatGatewayRequest = (input: CreateNatGatewayRequest, context: __S entries[loc] = value; }); } - if (input.SecondaryPrivateIpAddresses != null) { - const memberEntries = se_IpList(input.SecondaryPrivateIpAddresses, context); - if (input.SecondaryPrivateIpAddresses?.length === 0) { + if (input[_SPIA] != null) { + const memberEntries = se_IpList(input[_SPIA], context); + if (input[_SPIA]?.length === 0) { entries.SecondaryPrivateIpAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42759,8 +42759,8 @@ const se_CreateNatGatewayRequest = (input: CreateNatGatewayRequest, context: __S entries[loc] = value; }); } - if (input.SecondaryPrivateIpAddressCount != null) { - entries["SecondaryPrivateIpAddressCount"] = input.SecondaryPrivateIpAddressCount; + if (input[_SPIAC] != null) { + entries[_SPIAC] = input[_SPIAC]; } return entries; }; @@ -42770,43 +42770,43 @@ const se_CreateNatGatewayRequest = (input: CreateNatGatewayRequest, context: __S */ const se_CreateNetworkAclEntryRequest = (input: CreateNetworkAclEntryRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CidrBlock != null) { - entries["CidrBlock"] = input.CidrBlock; + if (input[_CB] != null) { + entries[_CB] = input[_CB]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Egress != null) { - entries["Egress"] = input.Egress; + if (input[_Eg] != null) { + entries[_Eg] = input[_Eg]; } - if (input.IcmpTypeCode != null) { - const memberEntries = se_IcmpTypeCode(input.IcmpTypeCode, context); + if (input[_ITC] != null) { + const memberEntries = se_IcmpTypeCode(input[_ITC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Icmp.${key}`; entries[loc] = value; }); } - if (input.Ipv6CidrBlock != null) { - entries["Ipv6CidrBlock"] = input.Ipv6CidrBlock; + if (input[_ICB] != null) { + entries[_ICB] = input[_ICB]; } - if (input.NetworkAclId != null) { - entries["NetworkAclId"] = input.NetworkAclId; + if (input[_NAI] != null) { + entries[_NAI] = input[_NAI]; } - if (input.PortRange != null) { - const memberEntries = se_PortRange(input.PortRange, context); + if (input[_PR] != null) { + const memberEntries = se_PortRange(input[_PR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PortRange.${key}`; entries[loc] = value; }); } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.RuleAction != null) { - entries["RuleAction"] = input.RuleAction; + if (input[_RAu] != null) { + entries[_RAu] = input[_RAu]; } - if (input.RuleNumber != null) { - entries["RuleNumber"] = input.RuleNumber; + if (input[_RNu] != null) { + entries[_RNu] = input[_RNu]; } return entries; }; @@ -42816,15 +42816,15 @@ const se_CreateNetworkAclEntryRequest = (input: CreateNetworkAclEntryRequest, co */ const se_CreateNetworkAclRequest = (input: CreateNetworkAclRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42843,9 +42843,9 @@ const se_CreateNetworkInsightsAccessScopeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MatchPaths != null) { - const memberEntries = se_AccessScopePathListRequest(input.MatchPaths, context); - if (input.MatchPaths?.length === 0) { + if (input[_MP] != null) { + const memberEntries = se_AccessScopePathListRequest(input[_MP], context); + if (input[_MP]?.length === 0) { entries.MatchPath = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42853,9 +42853,9 @@ const se_CreateNetworkInsightsAccessScopeRequest = ( entries[loc] = value; }); } - if (input.ExcludePaths != null) { - const memberEntries = se_AccessScopePathListRequest(input.ExcludePaths, context); - if (input.ExcludePaths?.length === 0) { + if (input[_EP] != null) { + const memberEntries = se_AccessScopePathListRequest(input[_EP], context); + if (input[_EP]?.length === 0) { entries.ExcludePath = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42863,15 +42863,15 @@ const se_CreateNetworkInsightsAccessScopeRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42879,8 +42879,8 @@ const se_CreateNetworkInsightsAccessScopeRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -42890,27 +42890,27 @@ const se_CreateNetworkInsightsAccessScopeRequest = ( */ const se_CreateNetworkInsightsPathRequest = (input: CreateNetworkInsightsPathRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceIp != null) { - entries["SourceIp"] = input.SourceIp; + if (input[_SIo] != null) { + entries[_SIo] = input[_SIo]; } - if (input.DestinationIp != null) { - entries["DestinationIp"] = input.DestinationIp; + if (input[_DIest] != null) { + entries[_DIest] = input[_DIest]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Destination != null) { - entries["Destination"] = input.Destination; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DestinationPort != null) { - entries["DestinationPort"] = input.DestinationPort; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42918,24 +42918,24 @@ const se_CreateNetworkInsightsPathRequest = (input: CreateNetworkInsightsPathReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.FilterAtSource != null) { - const memberEntries = se_PathRequestFilter(input.FilterAtSource, context); + if (input[_FAS] != null) { + const memberEntries = se_PathRequestFilter(input[_FAS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `FilterAtSource.${key}`; entries[loc] = value; }); } - if (input.FilterAtDestination != null) { - const memberEntries = se_PathRequestFilter(input.FilterAtDestination, context); + if (input[_FAD] != null) { + const memberEntries = se_PathRequestFilter(input[_FAD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `FilterAtDestination.${key}`; entries[loc] = value; @@ -42952,20 +42952,20 @@ const se_CreateNetworkInterfacePermissionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.AwsAccountId != null) { - entries["AwsAccountId"] = input.AwsAccountId; + if (input[_AAI] != null) { + entries[_AAI] = input[_AAI]; } - if (input.AwsService != null) { - entries["AwsService"] = input.AwsService; + if (input[_ASw] != null) { + entries[_ASw] = input[_ASw]; } - if (input.Permission != null) { - entries["Permission"] = input.Permission; + if (input[_Pe] != null) { + entries[_Pe] = input[_Pe]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -42975,15 +42975,15 @@ const se_CreateNetworkInterfacePermissionRequest = ( */ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Groups != null) { - const memberEntries = se_SecurityGroupIdStringList(input.Groups, context); - if (input.Groups?.length === 0) { + if (input[_G] != null) { + const memberEntries = se_SecurityGroupIdStringList(input[_G], context); + if (input[_G]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -42991,12 +42991,12 @@ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, entries[loc] = value; }); } - if (input.Ipv6AddressCount != null) { - entries["Ipv6AddressCount"] = input.Ipv6AddressCount; + if (input[_IAC] != null) { + entries[_IAC] = input[_IAC]; } - if (input.Ipv6Addresses != null) { - const memberEntries = se_InstanceIpv6AddressList(input.Ipv6Addresses, context); - if (input.Ipv6Addresses?.length === 0) { + if (input[_IA] != null) { + const memberEntries = se_InstanceIpv6AddressList(input[_IA], context); + if (input[_IA]?.length === 0) { entries.Ipv6Addresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43004,12 +43004,12 @@ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, entries[loc] = value; }); } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_PrivateIpAddressSpecificationList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_PrivateIpAddressSpecificationList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43017,12 +43017,12 @@ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, entries[loc] = value; }); } - if (input.SecondaryPrivateIpAddressCount != null) { - entries["SecondaryPrivateIpAddressCount"] = input.SecondaryPrivateIpAddressCount; + if (input[_SPIAC] != null) { + entries[_SPIAC] = input[_SPIAC]; } - if (input.Ipv4Prefixes != null) { - const memberEntries = se_Ipv4PrefixList(input.Ipv4Prefixes, context); - if (input.Ipv4Prefixes?.length === 0) { + if (input[_IPp] != null) { + const memberEntries = se_Ipv4PrefixList(input[_IPp], context); + if (input[_IPp]?.length === 0) { entries.Ipv4Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43030,12 +43030,12 @@ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, entries[loc] = value; }); } - if (input.Ipv4PrefixCount != null) { - entries["Ipv4PrefixCount"] = input.Ipv4PrefixCount; + if (input[_IPCp] != null) { + entries[_IPCp] = input[_IPCp]; } - if (input.Ipv6Prefixes != null) { - const memberEntries = se_Ipv6PrefixList(input.Ipv6Prefixes, context); - if (input.Ipv6Prefixes?.length === 0) { + if (input[_IP] != null) { + const memberEntries = se_Ipv6PrefixList(input[_IP], context); + if (input[_IP]?.length === 0) { entries.Ipv6Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43043,18 +43043,18 @@ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, entries[loc] = value; }); } - if (input.Ipv6PrefixCount != null) { - entries["Ipv6PrefixCount"] = input.Ipv6PrefixCount; + if (input[_IPC] != null) { + entries[_IPC] = input[_IPC]; } - if (input.InterfaceType != null) { - entries["InterfaceType"] = input.InterfaceType; + if (input[_ITn] != null) { + entries[_ITn] = input[_ITn]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43062,17 +43062,17 @@ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.EnablePrimaryIpv6 != null) { - entries["EnablePrimaryIpv6"] = input.EnablePrimaryIpv6; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.ConnectionTrackingSpecification != null) { - const memberEntries = se_ConnectionTrackingSpecificationRequest(input.ConnectionTrackingSpecification, context); + if (input[_CTS] != null) { + const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionTrackingSpecification.${key}`; entries[loc] = value; @@ -43086,21 +43086,21 @@ const se_CreateNetworkInterfaceRequest = (input: CreateNetworkInterfaceRequest, */ const se_CreatePlacementGroupRequest = (input: CreatePlacementGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.Strategy != null) { - entries["Strategy"] = input.Strategy; + if (input[_Str] != null) { + entries[_Str] = input[_Str]; } - if (input.PartitionCount != null) { - entries["PartitionCount"] = input.PartitionCount; + if (input[_PCa] != null) { + entries[_PCa] = input[_PCa]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43108,8 +43108,8 @@ const se_CreatePlacementGroupRequest = (input: CreatePlacementGroupRequest, cont entries[loc] = value; }); } - if (input.SpreadLevel != null) { - entries["SpreadLevel"] = input.SpreadLevel; + if (input[_SL] != null) { + entries[_SL] = input[_SL]; } return entries; }; @@ -43119,12 +43119,12 @@ const se_CreatePlacementGroupRequest = (input: CreatePlacementGroupRequest, cont */ const se_CreatePublicIpv4PoolRequest = (input: CreatePublicIpv4PoolRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43143,24 +43143,24 @@ const se_CreateReplaceRootVolumeTaskRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43168,11 +43168,11 @@ const se_CreateReplaceRootVolumeTaskRequest = ( entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DeleteReplacedRootVolume != null) { - entries["DeleteReplacedRootVolume"] = input.DeleteReplacedRootVolume; + if (input[_DRRV] != null) { + entries[_DRRV] = input[_DRRV]; } return entries; }; @@ -43185,15 +43185,15 @@ const se_CreateReservedInstancesListingRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.PriceSchedules != null) { - const memberEntries = se_PriceScheduleSpecificationList(input.PriceSchedules, context); - if (input.PriceSchedules?.length === 0) { + if (input[_PS] != null) { + const memberEntries = se_PriceScheduleSpecificationList(input[_PS], context); + if (input[_PS]?.length === 0) { entries.PriceSchedules = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43201,8 +43201,8 @@ const se_CreateReservedInstancesListingRequest = ( entries[loc] = value; }); } - if (input.ReservedInstancesId != null) { - entries["ReservedInstancesId"] = input.ReservedInstancesId; + if (input[_RIIe] != null) { + entries[_RIIe] = input[_RIIe]; } return entries; }; @@ -43212,18 +43212,18 @@ const se_CreateReservedInstancesListingRequest = ( */ const se_CreateRestoreImageTaskRequest = (input: CreateRestoreImageTaskRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Bucket != null) { - entries["Bucket"] = input.Bucket; + if (input[_B] != null) { + entries[_B] = input[_B]; } - if (input.ObjectKey != null) { - entries["ObjectKey"] = input.ObjectKey; + if (input[_OK] != null) { + entries[_OK] = input[_OK]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43231,8 +43231,8 @@ const se_CreateRestoreImageTaskRequest = (input: CreateRestoreImageTaskRequest, entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43242,53 +43242,53 @@ const se_CreateRestoreImageTaskRequest = (input: CreateRestoreImageTaskRequest, */ const se_CreateRouteRequest = (input: CreateRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.DestinationIpv6CidrBlock != null) { - entries["DestinationIpv6CidrBlock"] = input.DestinationIpv6CidrBlock; + if (input[_DICB] != null) { + entries[_DICB] = input[_DICB]; } - if (input.DestinationPrefixListId != null) { - entries["DestinationPrefixListId"] = input.DestinationPrefixListId; + if (input[_DPLI] != null) { + entries[_DPLI] = input[_DPLI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcEndpointId != null) { - entries["VpcEndpointId"] = input.VpcEndpointId; + if (input[_VEIp] != null) { + entries[_VEIp] = input[_VEIp]; } - if (input.EgressOnlyInternetGatewayId != null) { - entries["EgressOnlyInternetGatewayId"] = input.EgressOnlyInternetGatewayId; + if (input[_EOIGI] != null) { + entries[_EOIGI] = input[_EOIGI]; } - if (input.GatewayId != null) { - entries["GatewayId"] = input.GatewayId; + if (input[_GI] != null) { + entries[_GI] = input[_GI]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.NatGatewayId != null) { - entries["NatGatewayId"] = input.NatGatewayId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.LocalGatewayId != null) { - entries["LocalGatewayId"] = input.LocalGatewayId; + if (input[_LGI] != null) { + entries[_LGI] = input[_LGI]; } - if (input.CarrierGatewayId != null) { - entries["CarrierGatewayId"] = input.CarrierGatewayId; + if (input[_CGI] != null) { + entries[_CGI] = input[_CGI]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } - if (input.VpcPeeringConnectionId != null) { - entries["VpcPeeringConnectionId"] = input.VpcPeeringConnectionId; + if (input[_VPCI] != null) { + entries[_VPCI] = input[_VPCI]; } - if (input.CoreNetworkArn != null) { - entries["CoreNetworkArn"] = input.CoreNetworkArn; + if (input[_CNAo] != null) { + entries[_CNAo] = input[_CNAo]; } return entries; }; @@ -43298,15 +43298,15 @@ const se_CreateRouteRequest = (input: CreateRouteRequest, context: __SerdeContex */ const se_CreateRouteTableRequest = (input: CreateRouteTableRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43322,18 +43322,18 @@ const se_CreateRouteTableRequest = (input: CreateRouteTableRequest, context: __S */ const se_CreateSecurityGroupRequest = (input: CreateSecurityGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["GroupDescription"] = input.Description; + if (input[_De] != null) { + entries[_GD] = input[_De]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43341,8 +43341,8 @@ const se_CreateSecurityGroupRequest = (input: CreateSecurityGroupRequest, contex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43352,18 +43352,18 @@ const se_CreateSecurityGroupRequest = (input: CreateSecurityGroupRequest, contex */ const se_CreateSnapshotRequest = (input: CreateSnapshotRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.OutpostArn != null) { - entries["OutpostArn"] = input.OutpostArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43371,8 +43371,8 @@ const se_CreateSnapshotRequest = (input: CreateSnapshotRequest, context: __Serde entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43382,22 +43382,22 @@ const se_CreateSnapshotRequest = (input: CreateSnapshotRequest, context: __Serde */ const se_CreateSnapshotsRequest = (input: CreateSnapshotsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.InstanceSpecification != null) { - const memberEntries = se_InstanceSpecification(input.InstanceSpecification, context); + if (input[_ISn] != null) { + const memberEntries = se_InstanceSpecification(input[_ISn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceSpecification.${key}`; entries[loc] = value; }); } - if (input.OutpostArn != null) { - entries["OutpostArn"] = input.OutpostArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43405,11 +43405,11 @@ const se_CreateSnapshotsRequest = (input: CreateSnapshotsRequest, context: __Ser entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.CopyTagsFromSource != null) { - entries["CopyTagsFromSource"] = input.CopyTagsFromSource; + if (input[_CTFS] != null) { + entries[_CTFS] = input[_CTFS]; } return entries; }; @@ -43422,14 +43422,14 @@ const se_CreateSpotDatafeedSubscriptionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Bucket != null) { - entries["Bucket"] = input.Bucket; + if (input[_B] != null) { + entries[_B] = input[_B]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Prefix != null) { - entries["Prefix"] = input.Prefix; + if (input[_Pr] != null) { + entries[_Pr] = input[_Pr]; } return entries; }; @@ -43439,15 +43439,15 @@ const se_CreateSpotDatafeedSubscriptionRequest = ( */ const se_CreateStoreImageTaskRequest = (input: CreateStoreImageTaskRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.Bucket != null) { - entries["Bucket"] = input.Bucket; + if (input[_B] != null) { + entries[_B] = input[_B]; } - if (input.S3ObjectTags != null) { - const memberEntries = se_S3ObjectTagList(input.S3ObjectTags, context); - if (input.S3ObjectTags?.length === 0) { + if (input[_SOT] != null) { + const memberEntries = se_S3ObjectTagList(input[_SOT], context); + if (input[_SOT]?.length === 0) { entries.S3ObjectTag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43455,8 +43455,8 @@ const se_CreateStoreImageTaskRequest = (input: CreateStoreImageTaskRequest, cont entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43469,24 +43469,24 @@ const se_CreateSubnetCidrReservationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.ReservationType != null) { - entries["ReservationType"] = input.ReservationType; + if (input[_RTe] != null) { + entries[_RTe] = input[_RTe]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43502,9 +43502,9 @@ const se_CreateSubnetCidrReservationRequest = ( */ const se_CreateSubnetRequest = (input: CreateSubnetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43512,41 +43512,41 @@ const se_CreateSubnetRequest = (input: CreateSubnetRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.AvailabilityZoneId != null) { - entries["AvailabilityZoneId"] = input.AvailabilityZoneId; + if (input[_AZI] != null) { + entries[_AZI] = input[_AZI]; } - if (input.CidrBlock != null) { - entries["CidrBlock"] = input.CidrBlock; + if (input[_CB] != null) { + entries[_CB] = input[_CB]; } - if (input.Ipv6CidrBlock != null) { - entries["Ipv6CidrBlock"] = input.Ipv6CidrBlock; + if (input[_ICB] != null) { + entries[_ICB] = input[_ICB]; } - if (input.OutpostArn != null) { - entries["OutpostArn"] = input.OutpostArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Ipv6Native != null) { - entries["Ipv6Native"] = input.Ipv6Native; + if (input[_IN] != null) { + entries[_IN] = input[_IN]; } - if (input.Ipv4IpamPoolId != null) { - entries["Ipv4IpamPoolId"] = input.Ipv4IpamPoolId; + if (input[_IIPIp] != null) { + entries[_IIPIp] = input[_IIPIp]; } - if (input.Ipv4NetmaskLength != null) { - entries["Ipv4NetmaskLength"] = input.Ipv4NetmaskLength; + if (input[_INLp] != null) { + entries[_INLp] = input[_INLp]; } - if (input.Ipv6IpamPoolId != null) { - entries["Ipv6IpamPoolId"] = input.Ipv6IpamPoolId; + if (input[_IIPI] != null) { + entries[_IIPI] = input[_IIPI]; } - if (input.Ipv6NetmaskLength != null) { - entries["Ipv6NetmaskLength"] = input.Ipv6NetmaskLength; + if (input[_INL] != null) { + entries[_INL] = input[_INL]; } return entries; }; @@ -43556,12 +43556,12 @@ const se_CreateSubnetRequest = (input: CreateSubnetRequest, context: __SerdeCont */ const se_CreateTagsRequest = (input: CreateTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Resources != null) { - const memberEntries = se_ResourceIdList(input.Resources, context); - if (input.Resources?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_ResourceIdList(input[_R], context); + if (input[_R]?.length === 0) { entries.ResourceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43569,9 +43569,9 @@ const se_CreateTagsRequest = (input: CreateTagsRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43587,12 +43587,12 @@ const se_CreateTagsRequest = (input: CreateTagsRequest, context: __SerdeContext) */ const se_CreateTrafficMirrorFilterRequest = (input: CreateTrafficMirrorFilterRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43600,14 +43600,14 @@ const se_CreateTrafficMirrorFilterRequest = (input: CreateTrafficMirrorFilterReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -43620,52 +43620,52 @@ const se_CreateTrafficMirrorFilterRuleRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorFilterId != null) { - entries["TrafficMirrorFilterId"] = input.TrafficMirrorFilterId; + if (input[_TMFI] != null) { + entries[_TMFI] = input[_TMFI]; } - if (input.TrafficDirection != null) { - entries["TrafficDirection"] = input.TrafficDirection; + if (input[_TD] != null) { + entries[_TD] = input[_TD]; } - if (input.RuleNumber != null) { - entries["RuleNumber"] = input.RuleNumber; + if (input[_RNu] != null) { + entries[_RNu] = input[_RNu]; } - if (input.RuleAction != null) { - entries["RuleAction"] = input.RuleAction; + if (input[_RAu] != null) { + entries[_RAu] = input[_RAu]; } - if (input.DestinationPortRange != null) { - const memberEntries = se_TrafficMirrorPortRangeRequest(input.DestinationPortRange, context); + if (input[_DPR] != null) { + const memberEntries = se_TrafficMirrorPortRangeRequest(input[_DPR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DestinationPortRange.${key}`; entries[loc] = value; }); } - if (input.SourcePortRange != null) { - const memberEntries = se_TrafficMirrorPortRangeRequest(input.SourcePortRange, context); + if (input[_SPR] != null) { + const memberEntries = se_TrafficMirrorPortRangeRequest(input[_SPR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourcePortRange.${key}`; entries[loc] = value; }); } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.SourceCidrBlock != null) { - entries["SourceCidrBlock"] = input.SourceCidrBlock; + if (input[_SCB] != null) { + entries[_SCB] = input[_SCB]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -43678,30 +43678,30 @@ const se_CreateTrafficMirrorSessionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.TrafficMirrorTargetId != null) { - entries["TrafficMirrorTargetId"] = input.TrafficMirrorTargetId; + if (input[_TMTI] != null) { + entries[_TMTI] = input[_TMTI]; } - if (input.TrafficMirrorFilterId != null) { - entries["TrafficMirrorFilterId"] = input.TrafficMirrorFilterId; + if (input[_TMFI] != null) { + entries[_TMFI] = input[_TMFI]; } - if (input.PacketLength != null) { - entries["PacketLength"] = input.PacketLength; + if (input[_PL] != null) { + entries[_PL] = input[_PL]; } - if (input.SessionNumber != null) { - entries["SessionNumber"] = input.SessionNumber; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.VirtualNetworkId != null) { - entries["VirtualNetworkId"] = input.VirtualNetworkId; + if (input[_VNI] != null) { + entries[_VNI] = input[_VNI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43709,14 +43709,14 @@ const se_CreateTrafficMirrorSessionRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -43726,18 +43726,18 @@ const se_CreateTrafficMirrorSessionRequest = ( */ const se_CreateTrafficMirrorTargetRequest = (input: CreateTrafficMirrorTargetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.NetworkLoadBalancerArn != null) { - entries["NetworkLoadBalancerArn"] = input.NetworkLoadBalancerArn; + if (input[_NLBA] != null) { + entries[_NLBA] = input[_NLBA]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43745,17 +43745,17 @@ const se_CreateTrafficMirrorTargetRequest = (input: CreateTrafficMirrorTargetReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.GatewayLoadBalancerEndpointId != null) { - entries["GatewayLoadBalancerEndpointId"] = input.GatewayLoadBalancerEndpointId; + if (input[_GLBEI] != null) { + entries[_GLBEI] = input[_GLBEI]; } return entries; }; @@ -43768,25 +43768,25 @@ const se_CreateTransitGatewayConnectPeerRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.TransitGatewayAddress != null) { - entries["TransitGatewayAddress"] = input.TransitGatewayAddress; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.PeerAddress != null) { - entries["PeerAddress"] = input.PeerAddress; + if (input[_PAe] != null) { + entries[_PAe] = input[_PAe]; } - if (input.BgpOptions != null) { - const memberEntries = se_TransitGatewayConnectRequestBgpOptions(input.BgpOptions, context); + if (input[_BO] != null) { + const memberEntries = se_TransitGatewayConnectRequestBgpOptions(input[_BO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `BgpOptions.${key}`; entries[loc] = value; }); } - if (input.InsideCidrBlocks != null) { - const memberEntries = se_InsideCidrBlocksStringList(input.InsideCidrBlocks, context); - if (input.InsideCidrBlocks?.length === 0) { + if (input[_ICBn] != null) { + const memberEntries = se_InsideCidrBlocksStringList(input[_ICBn], context); + if (input[_ICBn]?.length === 0) { entries.InsideCidrBlocks = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43794,9 +43794,9 @@ const se_CreateTransitGatewayConnectPeerRequest = ( entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43804,8 +43804,8 @@ const se_CreateTransitGatewayConnectPeerRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43818,19 +43818,19 @@ const se_CreateTransitGatewayConnectRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransportTransitGatewayAttachmentId != null) { - entries["TransportTransitGatewayAttachmentId"] = input.TransportTransitGatewayAttachmentId; + if (input[_TTGAI] != null) { + entries[_TTGAI] = input[_TTGAI]; } - if (input.Options != null) { - const memberEntries = se_CreateTransitGatewayConnectRequestOptions(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_CreateTransitGatewayConnectRequestOptions(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43838,8 +43838,8 @@ const se_CreateTransitGatewayConnectRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43852,8 +43852,8 @@ const se_CreateTransitGatewayConnectRequestOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } return entries; }; @@ -43866,19 +43866,19 @@ const se_CreateTransitGatewayMulticastDomainRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.Options != null) { - const memberEntries = se_CreateTransitGatewayMulticastDomainRequestOptions(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_CreateTransitGatewayMulticastDomainRequestOptions(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43886,8 +43886,8 @@ const se_CreateTransitGatewayMulticastDomainRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43900,14 +43900,14 @@ const se_CreateTransitGatewayMulticastDomainRequestOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Igmpv2Support != null) { - entries["Igmpv2Support"] = input.Igmpv2Support; + if (input[_ISg] != null) { + entries[_ISg] = input[_ISg]; } - if (input.StaticSourcesSupport != null) { - entries["StaticSourcesSupport"] = input.StaticSourcesSupport; + if (input[_SSS] != null) { + entries[_SSS] = input[_SSS]; } - if (input.AutoAcceptSharedAssociations != null) { - entries["AutoAcceptSharedAssociations"] = input.AutoAcceptSharedAssociations; + if (input[_AASA] != null) { + entries[_AASA] = input[_AASA]; } return entries; }; @@ -43920,28 +43920,28 @@ const se_CreateTransitGatewayPeeringAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.PeerTransitGatewayId != null) { - entries["PeerTransitGatewayId"] = input.PeerTransitGatewayId; + if (input[_PTGI] != null) { + entries[_PTGI] = input[_PTGI]; } - if (input.PeerAccountId != null) { - entries["PeerAccountId"] = input.PeerAccountId; + if (input[_PAI] != null) { + entries[_PAI] = input[_PAI]; } - if (input.PeerRegion != null) { - entries["PeerRegion"] = input.PeerRegion; + if (input[_PRe] != null) { + entries[_PRe] = input[_PRe]; } - if (input.Options != null) { - const memberEntries = se_CreateTransitGatewayPeeringAttachmentRequestOptions(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_CreateTransitGatewayPeeringAttachmentRequestOptions(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43949,8 +43949,8 @@ const se_CreateTransitGatewayPeeringAttachmentRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -43963,8 +43963,8 @@ const se_CreateTransitGatewayPeeringAttachmentRequestOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DynamicRouting != null) { - entries["DynamicRouting"] = input.DynamicRouting; + if (input[_DRy] != null) { + entries[_DRy] = input[_DRy]; } return entries; }; @@ -43977,12 +43977,12 @@ const se_CreateTransitGatewayPolicyTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecifications = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -43990,8 +43990,8 @@ const se_CreateTransitGatewayPolicyTableRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -44004,20 +44004,20 @@ const se_CreateTransitGatewayPrefixListReferenceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.Blackhole != null) { - entries["Blackhole"] = input.Blackhole; + if (input[_Bl] != null) { + entries[_Bl] = input[_Bl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -44027,19 +44027,19 @@ const se_CreateTransitGatewayPrefixListReferenceRequest = ( */ const se_CreateTransitGatewayRequest = (input: CreateTransitGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Options != null) { - const memberEntries = se_TransitGatewayRequestOptions(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_TransitGatewayRequestOptions(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44047,8 +44047,8 @@ const se_CreateTransitGatewayRequest = (input: CreateTransitGatewayRequest, cont entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -44058,20 +44058,20 @@ const se_CreateTransitGatewayRequest = (input: CreateTransitGatewayRequest, cont */ const se_CreateTransitGatewayRouteRequest = (input: CreateTransitGatewayRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.Blackhole != null) { - entries["Blackhole"] = input.Blackhole; + if (input[_Bl] != null) { + entries[_Bl] = input[_Bl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -44084,15 +44084,15 @@ const se_CreateTransitGatewayRouteTableAnnouncementRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.PeeringAttachmentId != null) { - entries["PeeringAttachmentId"] = input.PeeringAttachmentId; + if (input[_PAIe] != null) { + entries[_PAIe] = input[_PAIe]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44100,8 +44100,8 @@ const se_CreateTransitGatewayRouteTableAnnouncementRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -44114,12 +44114,12 @@ const se_CreateTransitGatewayRouteTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecifications = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44127,8 +44127,8 @@ const se_CreateTransitGatewayRouteTableRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -44141,15 +44141,15 @@ const se_CreateTransitGatewayVpcAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.SubnetIds != null) { - const memberEntries = se_TransitGatewaySubnetIdList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_TransitGatewaySubnetIdList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44157,16 +44157,16 @@ const se_CreateTransitGatewayVpcAttachmentRequest = ( entries[loc] = value; }); } - if (input.Options != null) { - const memberEntries = se_CreateTransitGatewayVpcAttachmentRequestOptions(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_CreateTransitGatewayVpcAttachmentRequestOptions(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecifications = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44174,8 +44174,8 @@ const se_CreateTransitGatewayVpcAttachmentRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -44188,17 +44188,17 @@ const se_CreateTransitGatewayVpcAttachmentRequestOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DnsSupport != null) { - entries["DnsSupport"] = input.DnsSupport; + if (input[_DSns] != null) { + entries[_DSns] = input[_DSns]; } - if (input.SecurityGroupReferencingSupport != null) { - entries["SecurityGroupReferencingSupport"] = input.SecurityGroupReferencingSupport; + if (input[_SGRS] != null) { + entries[_SGRS] = input[_SGRS]; } - if (input.Ipv6Support != null) { - entries["Ipv6Support"] = input.Ipv6Support; + if (input[_ISp] != null) { + entries[_ISp] = input[_ISp]; } - if (input.ApplianceModeSupport != null) { - entries["ApplianceModeSupport"] = input.ApplianceModeSupport; + if (input[_AMS] != null) { + entries[_AMS] = input[_AMS]; } return entries; }; @@ -44211,14 +44211,14 @@ const se_CreateVerifiedAccessEndpointEniOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } return entries; }; @@ -44231,18 +44231,18 @@ const se_CreateVerifiedAccessEndpointLoadBalancerOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.SubnetIds != null) { - const memberEntries = se_CreateVerifiedAccessEndpointSubnetIdList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_CreateVerifiedAccessEndpointSubnetIdList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44261,27 +44261,27 @@ const se_CreateVerifiedAccessEndpointRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessGroupId != null) { - entries["VerifiedAccessGroupId"] = input.VerifiedAccessGroupId; + if (input[_VAGI] != null) { + entries[_VAGI] = input[_VAGI]; } - if (input.EndpointType != null) { - entries["EndpointType"] = input.EndpointType; + if (input[_ET] != null) { + entries[_ET] = input[_ET]; } - if (input.AttachmentType != null) { - entries["AttachmentType"] = input.AttachmentType; + if (input[_ATt] != null) { + entries[_ATt] = input[_ATt]; } - if (input.DomainCertificateArn != null) { - entries["DomainCertificateArn"] = input.DomainCertificateArn; + if (input[_DCA] != null) { + entries[_DCA] = input[_DCA]; } - if (input.ApplicationDomain != null) { - entries["ApplicationDomain"] = input.ApplicationDomain; + if (input[_ADp] != null) { + entries[_ADp] = input[_ADp]; } - if (input.EndpointDomainPrefix != null) { - entries["EndpointDomainPrefix"] = input.EndpointDomainPrefix; + if (input[_EDP] != null) { + entries[_EDP] = input[_EDP]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44289,29 +44289,29 @@ const se_CreateVerifiedAccessEndpointRequest = ( entries[loc] = value; }); } - if (input.LoadBalancerOptions != null) { - const memberEntries = se_CreateVerifiedAccessEndpointLoadBalancerOptions(input.LoadBalancerOptions, context); + if (input[_LBO] != null) { + const memberEntries = se_CreateVerifiedAccessEndpointLoadBalancerOptions(input[_LBO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LoadBalancerOptions.${key}`; entries[loc] = value; }); } - if (input.NetworkInterfaceOptions != null) { - const memberEntries = se_CreateVerifiedAccessEndpointEniOptions(input.NetworkInterfaceOptions, context); + if (input[_NIO] != null) { + const memberEntries = se_CreateVerifiedAccessEndpointEniOptions(input[_NIO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkInterfaceOptions.${key}`; entries[loc] = value; }); } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44319,17 +44319,17 @@ const se_CreateVerifiedAccessEndpointRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SseSpecification != null) { - const memberEntries = se_VerifiedAccessSseSpecificationRequest(input.SseSpecification, context); + if (input[_SS] != null) { + const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SseSpecification.${key}`; entries[loc] = value; @@ -44359,18 +44359,18 @@ const se_CreateVerifiedAccessEndpointSubnetIdList = (input: string[], context: _ */ const se_CreateVerifiedAccessGroupRequest = (input: CreateVerifiedAccessGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44378,17 +44378,17 @@ const se_CreateVerifiedAccessGroupRequest = (input: CreateVerifiedAccessGroupReq entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SseSpecification != null) { - const memberEntries = se_VerifiedAccessSseSpecificationRequest(input.SseSpecification, context); + if (input[_SS] != null) { + const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SseSpecification.${key}`; entries[loc] = value; @@ -44405,12 +44405,12 @@ const se_CreateVerifiedAccessInstanceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44418,17 +44418,17 @@ const se_CreateVerifiedAccessInstanceRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FIPSEnabled != null) { - entries["FIPSEnabled"] = input.FIPSEnabled; + if (input[_FIPSE] != null) { + entries[_FIPSE] = input[_FIPSE]; } return entries; }; @@ -44441,11 +44441,11 @@ const se_CreateVerifiedAccessTrustProviderDeviceOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TenantId != null) { - entries["TenantId"] = input.TenantId; + if (input[_TIe] != null) { + entries[_TIe] = input[_TIe]; } - if (input.PublicSigningKeyUrl != null) { - entries["PublicSigningKeyUrl"] = input.PublicSigningKeyUrl; + if (input[_PSKU] != null) { + entries[_PSKU] = input[_PSKU]; } return entries; }; @@ -44458,26 +44458,26 @@ const se_CreateVerifiedAccessTrustProviderOidcOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Issuer != null) { - entries["Issuer"] = input.Issuer; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.AuthorizationEndpoint != null) { - entries["AuthorizationEndpoint"] = input.AuthorizationEndpoint; + if (input[_AE] != null) { + entries[_AE] = input[_AE]; } - if (input.TokenEndpoint != null) { - entries["TokenEndpoint"] = input.TokenEndpoint; + if (input[_TEo] != null) { + entries[_TEo] = input[_TEo]; } - if (input.UserInfoEndpoint != null) { - entries["UserInfoEndpoint"] = input.UserInfoEndpoint; + if (input[_UIE] != null) { + entries[_UIE] = input[_UIE]; } - if (input.ClientId != null) { - entries["ClientId"] = input.ClientId; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ClientSecret != null) { - entries["ClientSecret"] = input.ClientSecret; + if (input[_CSl] != null) { + entries[_CSl] = input[_CSl]; } - if (input.Scope != null) { - entries["Scope"] = input.Scope; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } return entries; }; @@ -44490,38 +44490,38 @@ const se_CreateVerifiedAccessTrustProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrustProviderType != null) { - entries["TrustProviderType"] = input.TrustProviderType; + if (input[_TPT] != null) { + entries[_TPT] = input[_TPT]; } - if (input.UserTrustProviderType != null) { - entries["UserTrustProviderType"] = input.UserTrustProviderType; + if (input[_UTPT] != null) { + entries[_UTPT] = input[_UTPT]; } - if (input.DeviceTrustProviderType != null) { - entries["DeviceTrustProviderType"] = input.DeviceTrustProviderType; + if (input[_DTPT] != null) { + entries[_DTPT] = input[_DTPT]; } - if (input.OidcOptions != null) { - const memberEntries = se_CreateVerifiedAccessTrustProviderOidcOptions(input.OidcOptions, context); + if (input[_OO] != null) { + const memberEntries = se_CreateVerifiedAccessTrustProviderOidcOptions(input[_OO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OidcOptions.${key}`; entries[loc] = value; }); } - if (input.DeviceOptions != null) { - const memberEntries = se_CreateVerifiedAccessTrustProviderDeviceOptions(input.DeviceOptions, context); + if (input[_DOe] != null) { + const memberEntries = se_CreateVerifiedAccessTrustProviderDeviceOptions(input[_DOe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DeviceOptions.${key}`; entries[loc] = value; }); } - if (input.PolicyReferenceName != null) { - entries["PolicyReferenceName"] = input.PolicyReferenceName; + if (input[_PRN] != null) { + entries[_PRN] = input[_PRN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44529,17 +44529,17 @@ const se_CreateVerifiedAccessTrustProviderRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SseSpecification != null) { - const memberEntries = se_VerifiedAccessSseSpecificationRequest(input.SseSpecification, context); + if (input[_SS] != null) { + const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SseSpecification.${key}`; entries[loc] = value; @@ -44553,11 +44553,11 @@ const se_CreateVerifiedAccessTrustProviderRequest = ( */ const se_CreateVolumePermission = (input: CreateVolumePermission, context: __SerdeContext): any => { const entries: any = {}; - if (input.Group != null) { - entries["Group"] = input.Group; + if (input[_Gr] != null) { + entries[_Gr] = input[_Gr]; } - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } return entries; }; @@ -44589,9 +44589,9 @@ const se_CreateVolumePermissionModifications = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Add != null) { - const memberEntries = se_CreateVolumePermissionList(input.Add, context); - if (input.Add?.length === 0) { + if (input[_Add] != null) { + const memberEntries = se_CreateVolumePermissionList(input[_Add], context); + if (input[_Add]?.length === 0) { entries.Add = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44599,9 +44599,9 @@ const se_CreateVolumePermissionModifications = ( entries[loc] = value; }); } - if (input.Remove != null) { - const memberEntries = se_CreateVolumePermissionList(input.Remove, context); - if (input.Remove?.length === 0) { + if (input[_Re] != null) { + const memberEntries = se_CreateVolumePermissionList(input[_Re], context); + if (input[_Re]?.length === 0) { entries.Remove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44617,36 +44617,36 @@ const se_CreateVolumePermissionModifications = ( */ const se_CreateVolumeRequest = (input: CreateVolumeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_Io] != null) { + entries[_Io] = input[_Io]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.OutpostArn != null) { - entries["OutpostArn"] = input.OutpostArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.Size != null) { - entries["Size"] = input.Size; + if (input[_Siz] != null) { + entries[_Siz] = input[_Siz]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.VolumeType != null) { - entries["VolumeType"] = input.VolumeType; + if (input[_VT] != null) { + entries[_VT] = input[_VT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44654,17 +44654,17 @@ const se_CreateVolumeRequest = (input: CreateVolumeRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.MultiAttachEnabled != null) { - entries["MultiAttachEnabled"] = input.MultiAttachEnabled; + if (input[_MAE] != null) { + entries[_MAE] = input[_MAE]; } - if (input.Throughput != null) { - entries["Throughput"] = input.Throughput; + if (input[_Th] != null) { + entries[_Th] = input[_Th]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -44677,21 +44677,21 @@ const se_CreateVpcEndpointConnectionNotificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } - if (input.VpcEndpointId != null) { - entries["VpcEndpointId"] = input.VpcEndpointId; + if (input[_VEIp] != null) { + entries[_VEIp] = input[_VEIp]; } - if (input.ConnectionNotificationArn != null) { - entries["ConnectionNotificationArn"] = input.ConnectionNotificationArn; + if (input[_CNAon] != null) { + entries[_CNAon] = input[_CNAon]; } - if (input.ConnectionEvents != null) { - const memberEntries = se_ValueStringList(input.ConnectionEvents, context); - if (input.ConnectionEvents?.length === 0) { + if (input[_CEo] != null) { + const memberEntries = se_ValueStringList(input[_CEo], context); + if (input[_CEo]?.length === 0) { entries.ConnectionEvents = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44699,8 +44699,8 @@ const se_CreateVpcEndpointConnectionNotificationRequest = ( entries[loc] = value; }); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -44710,24 +44710,24 @@ const se_CreateVpcEndpointConnectionNotificationRequest = ( */ const se_CreateVpcEndpointRequest = (input: CreateVpcEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcEndpointType != null) { - entries["VpcEndpointType"] = input.VpcEndpointType; + if (input[_VET] != null) { + entries[_VET] = input[_VET]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.ServiceName != null) { - entries["ServiceName"] = input.ServiceName; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.RouteTableIds != null) { - const memberEntries = se_VpcEndpointRouteTableIdList(input.RouteTableIds, context); - if (input.RouteTableIds?.length === 0) { + if (input[_RTIo] != null) { + const memberEntries = se_VpcEndpointRouteTableIdList(input[_RTIo], context); + if (input[_RTIo]?.length === 0) { entries.RouteTableId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44735,9 +44735,9 @@ const se_CreateVpcEndpointRequest = (input: CreateVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.SubnetIds != null) { - const memberEntries = se_VpcEndpointSubnetIdList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_VpcEndpointSubnetIdList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44745,9 +44745,9 @@ const se_CreateVpcEndpointRequest = (input: CreateVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.SecurityGroupIds != null) { - const memberEntries = se_VpcEndpointSecurityGroupIdList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_VpcEndpointSecurityGroupIdList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44755,25 +44755,25 @@ const se_CreateVpcEndpointRequest = (input: CreateVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } - if (input.DnsOptions != null) { - const memberEntries = se_DnsOptionsSpecification(input.DnsOptions, context); + if (input[_DOn] != null) { + const memberEntries = se_DnsOptionsSpecification(input[_DOn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DnsOptions.${key}`; entries[loc] = value; }); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.PrivateDnsEnabled != null) { - entries["PrivateDnsEnabled"] = input.PrivateDnsEnabled; + if (input[_PDE] != null) { + entries[_PDE] = input[_PDE]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44781,9 +44781,9 @@ const se_CreateVpcEndpointRequest = (input: CreateVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.SubnetConfigurations != null) { - const memberEntries = se_SubnetConfigurationsList(input.SubnetConfigurations, context); - if (input.SubnetConfigurations?.length === 0) { + if (input[_SC] != null) { + const memberEntries = se_SubnetConfigurationsList(input[_SC], context); + if (input[_SC]?.length === 0) { entries.SubnetConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44802,18 +44802,18 @@ const se_CreateVpcEndpointServiceConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.AcceptanceRequired != null) { - entries["AcceptanceRequired"] = input.AcceptanceRequired; + if (input[_ARc] != null) { + entries[_ARc] = input[_ARc]; } - if (input.PrivateDnsName != null) { - entries["PrivateDnsName"] = input.PrivateDnsName; + if (input[_PDN] != null) { + entries[_PDN] = input[_PDN]; } - if (input.NetworkLoadBalancerArns != null) { - const memberEntries = se_ValueStringList(input.NetworkLoadBalancerArns, context); - if (input.NetworkLoadBalancerArns?.length === 0) { + if (input[_NLBAe] != null) { + const memberEntries = se_ValueStringList(input[_NLBAe], context); + if (input[_NLBAe]?.length === 0) { entries.NetworkLoadBalancerArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44821,9 +44821,9 @@ const se_CreateVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.GatewayLoadBalancerArns != null) { - const memberEntries = se_ValueStringList(input.GatewayLoadBalancerArns, context); - if (input.GatewayLoadBalancerArns?.length === 0) { + if (input[_GLBA] != null) { + const memberEntries = se_ValueStringList(input[_GLBA], context); + if (input[_GLBA]?.length === 0) { entries.GatewayLoadBalancerArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44831,9 +44831,9 @@ const se_CreateVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.SupportedIpAddressTypes != null) { - const memberEntries = se_ValueStringList(input.SupportedIpAddressTypes, context); - if (input.SupportedIpAddressTypes?.length === 0) { + if (input[_SIAT] != null) { + const memberEntries = se_ValueStringList(input[_SIAT], context); + if (input[_SIAT]?.length === 0) { entries.SupportedIpAddressType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44841,12 +44841,12 @@ const se_CreateVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44865,24 +44865,24 @@ const se_CreateVpcPeeringConnectionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PeerOwnerId != null) { - entries["PeerOwnerId"] = input.PeerOwnerId; + if (input[_POI] != null) { + entries[_POI] = input[_POI]; } - if (input.PeerVpcId != null) { - entries["PeerVpcId"] = input.PeerVpcId; + if (input[_PVI] != null) { + entries[_PVI] = input[_PVI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.PeerRegion != null) { - entries["PeerRegion"] = input.PeerRegion; + if (input[_PRe] != null) { + entries[_PRe] = input[_PRe]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44898,42 +44898,42 @@ const se_CreateVpcPeeringConnectionRequest = ( */ const se_CreateVpcRequest = (input: CreateVpcRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CidrBlock != null) { - entries["CidrBlock"] = input.CidrBlock; + if (input[_CB] != null) { + entries[_CB] = input[_CB]; } - if (input.AmazonProvidedIpv6CidrBlock != null) { - entries["AmazonProvidedIpv6CidrBlock"] = input.AmazonProvidedIpv6CidrBlock; + if (input[_APICB] != null) { + entries[_APICB] = input[_APICB]; } - if (input.Ipv6Pool != null) { - entries["Ipv6Pool"] = input.Ipv6Pool; + if (input[_IPpv] != null) { + entries[_IPpv] = input[_IPpv]; } - if (input.Ipv6CidrBlock != null) { - entries["Ipv6CidrBlock"] = input.Ipv6CidrBlock; + if (input[_ICB] != null) { + entries[_ICB] = input[_ICB]; } - if (input.Ipv4IpamPoolId != null) { - entries["Ipv4IpamPoolId"] = input.Ipv4IpamPoolId; + if (input[_IIPIp] != null) { + entries[_IIPIp] = input[_IIPIp]; } - if (input.Ipv4NetmaskLength != null) { - entries["Ipv4NetmaskLength"] = input.Ipv4NetmaskLength; + if (input[_INLp] != null) { + entries[_INLp] = input[_INLp]; } - if (input.Ipv6IpamPoolId != null) { - entries["Ipv6IpamPoolId"] = input.Ipv6IpamPoolId; + if (input[_IIPI] != null) { + entries[_IIPI] = input[_IIPI]; } - if (input.Ipv6NetmaskLength != null) { - entries["Ipv6NetmaskLength"] = input.Ipv6NetmaskLength; + if (input[_INL] != null) { + entries[_INL] = input[_INL]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceTenancy != null) { - entries["InstanceTenancy"] = input.InstanceTenancy; + if (input[_ITns] != null) { + entries[_ITns] = input[_ITns]; } - if (input.Ipv6CidrBlockNetworkBorderGroup != null) { - entries["Ipv6CidrBlockNetworkBorderGroup"] = input.Ipv6CidrBlockNetworkBorderGroup; + if (input[_ICBNBG] != null) { + entries[_ICBNBG] = input[_ICBNBG]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44949,31 +44949,31 @@ const se_CreateVpcRequest = (input: CreateVpcRequest, context: __SerdeContext): */ const se_CreateVpnConnectionRequest = (input: CreateVpnConnectionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CustomerGatewayId != null) { - entries["CustomerGatewayId"] = input.CustomerGatewayId; + if (input[_CGIu] != null) { + entries[_CGIu] = input[_CGIu]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.VpnGatewayId != null) { - entries["VpnGatewayId"] = input.VpnGatewayId; + if (input[_VGI] != null) { + entries[_VGI] = input[_VGI]; } - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Options != null) { - const memberEntries = se_VpnConnectionOptionsSpecification(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_VpnConnectionOptionsSpecification(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -44989,11 +44989,11 @@ const se_CreateVpnConnectionRequest = (input: CreateVpnConnectionRequest, contex */ const se_CreateVpnConnectionRouteRequest = (input: CreateVpnConnectionRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } return entries; }; @@ -45003,15 +45003,15 @@ const se_CreateVpnConnectionRouteRequest = (input: CreateVpnConnectionRouteReque */ const se_CreateVpnGatewayRequest = (input: CreateVpnGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -45019,11 +45019,11 @@ const se_CreateVpnGatewayRequest = (input: CreateVpnGatewayRequest, context: __S entries[loc] = value; }); } - if (input.AmazonSideAsn != null) { - entries["AmazonSideAsn"] = input.AmazonSideAsn; + if (input[_ASA] != null) { + entries[_ASA] = input[_ASA]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45033,8 +45033,8 @@ const se_CreateVpnGatewayRequest = (input: CreateVpnGatewayRequest, context: __S */ const se_CreditSpecificationRequest = (input: CreditSpecificationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CpuCredits != null) { - entries["CpuCredits"] = input.CpuCredits; + if (input[_CCp] != null) { + entries[_CCp] = input[_CCp]; } return entries; }; @@ -45079,23 +45079,23 @@ const se_DataQueries = (input: DataQuery[], context: __SerdeContext): any => { */ const se_DataQuery = (input: DataQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.Id != null) { - entries["Id"] = input.Id; + if (input[_Id] != null) { + entries[_Id] = input[_Id]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Destination != null) { - entries["Destination"] = input.Destination; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Metric != null) { - entries["Metric"] = input.Metric; + if (input[_Met] != null) { + entries[_Met] = input[_Met]; } - if (input.Statistic != null) { - entries["Statistic"] = input.Statistic; + if (input[_Sta] != null) { + entries[_Sta] = input[_Sta]; } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_Per] != null) { + entries[_Per] = input[_Per]; } return entries; }; @@ -45121,11 +45121,11 @@ const se_DedicatedHostIdList = (input: string[], context: __SerdeContext): any = */ const se_DeleteCarrierGatewayRequest = (input: DeleteCarrierGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CarrierGatewayId != null) { - entries["CarrierGatewayId"] = input.CarrierGatewayId; + if (input[_CGI] != null) { + entries[_CGI] = input[_CGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45135,11 +45135,11 @@ const se_DeleteCarrierGatewayRequest = (input: DeleteCarrierGatewayRequest, cont */ const se_DeleteClientVpnEndpointRequest = (input: DeleteClientVpnEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45149,17 +45149,17 @@ const se_DeleteClientVpnEndpointRequest = (input: DeleteClientVpnEndpointRequest */ const se_DeleteClientVpnRouteRequest = (input: DeleteClientVpnRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.TargetVpcSubnetId != null) { - entries["TargetVpcSubnetId"] = input.TargetVpcSubnetId; + if (input[_TVSI] != null) { + entries[_TVSI] = input[_TVSI]; } - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45169,14 +45169,14 @@ const se_DeleteClientVpnRouteRequest = (input: DeleteClientVpnRouteRequest, cont */ const se_DeleteCoipCidrRequest = (input: DeleteCoipCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.CoipPoolId != null) { - entries["CoipPoolId"] = input.CoipPoolId; + if (input[_CPIo] != null) { + entries[_CPIo] = input[_CPIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45186,11 +45186,11 @@ const se_DeleteCoipCidrRequest = (input: DeleteCoipCidrRequest, context: __Serde */ const se_DeleteCoipPoolRequest = (input: DeleteCoipPoolRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CoipPoolId != null) { - entries["CoipPoolId"] = input.CoipPoolId; + if (input[_CPIo] != null) { + entries[_CPIo] = input[_CPIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45200,11 +45200,11 @@ const se_DeleteCoipPoolRequest = (input: DeleteCoipPoolRequest, context: __Serde */ const se_DeleteCustomerGatewayRequest = (input: DeleteCustomerGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CustomerGatewayId != null) { - entries["CustomerGatewayId"] = input.CustomerGatewayId; + if (input[_CGIu] != null) { + entries[_CGIu] = input[_CGIu]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45214,11 +45214,11 @@ const se_DeleteCustomerGatewayRequest = (input: DeleteCustomerGatewayRequest, co */ const se_DeleteDhcpOptionsRequest = (input: DeleteDhcpOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DhcpOptionsId != null) { - entries["DhcpOptionsId"] = input.DhcpOptionsId; + if (input[_DOI] != null) { + entries[_DOI] = input[_DOI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45231,11 +45231,11 @@ const se_DeleteEgressOnlyInternetGatewayRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EgressOnlyInternetGatewayId != null) { - entries["EgressOnlyInternetGatewayId"] = input.EgressOnlyInternetGatewayId; + if (input[_EOIGI] != null) { + entries[_EOIGI] = input[_EOIGI]; } return entries; }; @@ -45245,12 +45245,12 @@ const se_DeleteEgressOnlyInternetGatewayRequest = ( */ const se_DeleteFleetsRequest = (input: DeleteFleetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FleetIds != null) { - const memberEntries = se_FleetIdSet(input.FleetIds, context); - if (input.FleetIds?.length === 0) { + if (input[_FI] != null) { + const memberEntries = se_FleetIdSet(input[_FI], context); + if (input[_FI]?.length === 0) { entries.FleetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -45258,8 +45258,8 @@ const se_DeleteFleetsRequest = (input: DeleteFleetsRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.TerminateInstances != null) { - entries["TerminateInstances"] = input.TerminateInstances; + if (input[_TI] != null) { + entries[_TI] = input[_TI]; } return entries; }; @@ -45269,12 +45269,12 @@ const se_DeleteFleetsRequest = (input: DeleteFleetsRequest, context: __SerdeCont */ const se_DeleteFlowLogsRequest = (input: DeleteFlowLogsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FlowLogIds != null) { - const memberEntries = se_FlowLogIdList(input.FlowLogIds, context); - if (input.FlowLogIds?.length === 0) { + if (input[_FLI] != null) { + const memberEntries = se_FlowLogIdList(input[_FLI], context); + if (input[_FLI]?.length === 0) { entries.FlowLogId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -45290,11 +45290,11 @@ const se_DeleteFlowLogsRequest = (input: DeleteFlowLogsRequest, context: __Serde */ const se_DeleteFpgaImageRequest = (input: DeleteFpgaImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FpgaImageId != null) { - entries["FpgaImageId"] = input.FpgaImageId; + if (input[_FII] != null) { + entries[_FII] = input[_FII]; } return entries; }; @@ -45307,11 +45307,11 @@ const se_DeleteInstanceConnectEndpointRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceConnectEndpointId != null) { - entries["InstanceConnectEndpointId"] = input.InstanceConnectEndpointId; + if (input[_ICEI] != null) { + entries[_ICEI] = input[_ICEI]; } return entries; }; @@ -45321,14 +45321,14 @@ const se_DeleteInstanceConnectEndpointRequest = ( */ const se_DeleteInstanceEventWindowRequest = (input: DeleteInstanceEventWindowRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ForceDelete != null) { - entries["ForceDelete"] = input.ForceDelete; + if (input[_FD] != null) { + entries[_FD] = input[_FD]; } - if (input.InstanceEventWindowId != null) { - entries["InstanceEventWindowId"] = input.InstanceEventWindowId; + if (input[_IEWI] != null) { + entries[_IEWI] = input[_IEWI]; } return entries; }; @@ -45338,11 +45338,11 @@ const se_DeleteInstanceEventWindowRequest = (input: DeleteInstanceEventWindowReq */ const se_DeleteInternetGatewayRequest = (input: DeleteInternetGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InternetGatewayId != null) { - entries["InternetGatewayId"] = input.InternetGatewayId; + if (input[_IGI] != null) { + entries[_IGI] = input[_IGI]; } return entries; }; @@ -45352,14 +45352,14 @@ const se_DeleteInternetGatewayRequest = (input: DeleteInternetGatewayRequest, co */ const se_DeleteIpamPoolRequest = (input: DeleteIpamPoolRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.Cascade != null) { - entries["Cascade"] = input.Cascade; + if (input[_Ca] != null) { + entries[_Ca] = input[_Ca]; } return entries; }; @@ -45369,14 +45369,14 @@ const se_DeleteIpamPoolRequest = (input: DeleteIpamPoolRequest, context: __Serde */ const se_DeleteIpamRequest = (input: DeleteIpamRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamId != null) { - entries["IpamId"] = input.IpamId; + if (input[_IIp] != null) { + entries[_IIp] = input[_IIp]; } - if (input.Cascade != null) { - entries["Cascade"] = input.Cascade; + if (input[_Ca] != null) { + entries[_Ca] = input[_Ca]; } return entries; }; @@ -45389,11 +45389,11 @@ const se_DeleteIpamResourceDiscoveryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryId != null) { - entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId; + if (input[_IRDI] != null) { + entries[_IRDI] = input[_IRDI]; } return entries; }; @@ -45403,11 +45403,11 @@ const se_DeleteIpamResourceDiscoveryRequest = ( */ const se_DeleteIpamScopeRequest = (input: DeleteIpamScopeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamScopeId != null) { - entries["IpamScopeId"] = input.IpamScopeId; + if (input[_ISI] != null) { + entries[_ISI] = input[_ISI]; } return entries; }; @@ -45417,14 +45417,14 @@ const se_DeleteIpamScopeRequest = (input: DeleteIpamScopeRequest, context: __Ser */ const se_DeleteKeyPairRequest = (input: DeleteKeyPairRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.KeyPairId != null) { - entries["KeyPairId"] = input.KeyPairId; + if (input[_KPI] != null) { + entries[_KPI] = input[_KPI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45434,14 +45434,14 @@ const se_DeleteKeyPairRequest = (input: DeleteKeyPairRequest, context: __SerdeCo */ const se_DeleteLaunchTemplateRequest = (input: DeleteLaunchTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } return entries; }; @@ -45454,18 +45454,18 @@ const se_DeleteLaunchTemplateVersionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.Versions != null) { - const memberEntries = se_VersionStringList(input.Versions, context); - if (input.Versions?.length === 0) { + if (input[_Ve] != null) { + const memberEntries = se_VersionStringList(input[_Ve], context); + if (input[_Ve]?.length === 0) { entries.LaunchTemplateVersion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -45481,17 +45481,17 @@ const se_DeleteLaunchTemplateVersionsRequest = ( */ const se_DeleteLocalGatewayRouteRequest = (input: DeleteLocalGatewayRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.DestinationPrefixListId != null) { - entries["DestinationPrefixListId"] = input.DestinationPrefixListId; + if (input[_DPLI] != null) { + entries[_DPLI] = input[_DPLI]; } return entries; }; @@ -45504,11 +45504,11 @@ const se_DeleteLocalGatewayRouteTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45521,12 +45521,11 @@ const se_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId != null) { - entries["LocalGatewayRouteTableVirtualInterfaceGroupAssociationId"] = - input.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId; + if (input[_LGRTVIGAI] != null) { + entries[_LGRTVIGAI] = input[_LGRTVIGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45539,11 +45538,11 @@ const se_DeleteLocalGatewayRouteTableVpcAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableVpcAssociationId != null) { - entries["LocalGatewayRouteTableVpcAssociationId"] = input.LocalGatewayRouteTableVpcAssociationId; + if (input[_LGRTVAI] != null) { + entries[_LGRTVAI] = input[_LGRTVAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45553,11 +45552,11 @@ const se_DeleteLocalGatewayRouteTableVpcAssociationRequest = ( */ const se_DeleteManagedPrefixListRequest = (input: DeleteManagedPrefixListRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } return entries; }; @@ -45567,11 +45566,11 @@ const se_DeleteManagedPrefixListRequest = (input: DeleteManagedPrefixListRequest */ const se_DeleteNatGatewayRequest = (input: DeleteNatGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NatGatewayId != null) { - entries["NatGatewayId"] = input.NatGatewayId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } return entries; }; @@ -45581,17 +45580,17 @@ const se_DeleteNatGatewayRequest = (input: DeleteNatGatewayRequest, context: __S */ const se_DeleteNetworkAclEntryRequest = (input: DeleteNetworkAclEntryRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Egress != null) { - entries["Egress"] = input.Egress; + if (input[_Eg] != null) { + entries[_Eg] = input[_Eg]; } - if (input.NetworkAclId != null) { - entries["NetworkAclId"] = input.NetworkAclId; + if (input[_NAI] != null) { + entries[_NAI] = input[_NAI]; } - if (input.RuleNumber != null) { - entries["RuleNumber"] = input.RuleNumber; + if (input[_RNu] != null) { + entries[_RNu] = input[_RNu]; } return entries; }; @@ -45601,11 +45600,11 @@ const se_DeleteNetworkAclEntryRequest = (input: DeleteNetworkAclEntryRequest, co */ const se_DeleteNetworkAclRequest = (input: DeleteNetworkAclRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkAclId != null) { - entries["NetworkAclId"] = input.NetworkAclId; + if (input[_NAI] != null) { + entries[_NAI] = input[_NAI]; } return entries; }; @@ -45618,11 +45617,11 @@ const se_DeleteNetworkInsightsAccessScopeAnalysisRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsAccessScopeAnalysisId != null) { - entries["NetworkInsightsAccessScopeAnalysisId"] = input.NetworkInsightsAccessScopeAnalysisId; + if (input[_NIASAI] != null) { + entries[_NIASAI] = input[_NIASAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45635,11 +45634,11 @@ const se_DeleteNetworkInsightsAccessScopeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInsightsAccessScopeId != null) { - entries["NetworkInsightsAccessScopeId"] = input.NetworkInsightsAccessScopeId; + if (input[_NIASI] != null) { + entries[_NIASI] = input[_NIASI]; } return entries; }; @@ -45652,11 +45651,11 @@ const se_DeleteNetworkInsightsAnalysisRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInsightsAnalysisId != null) { - entries["NetworkInsightsAnalysisId"] = input.NetworkInsightsAnalysisId; + if (input[_NIAI] != null) { + entries[_NIAI] = input[_NIAI]; } return entries; }; @@ -45666,11 +45665,11 @@ const se_DeleteNetworkInsightsAnalysisRequest = ( */ const se_DeleteNetworkInsightsPathRequest = (input: DeleteNetworkInsightsPathRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInsightsPathId != null) { - entries["NetworkInsightsPathId"] = input.NetworkInsightsPathId; + if (input[_NIPI] != null) { + entries[_NIPI] = input[_NIPI]; } return entries; }; @@ -45683,14 +45682,14 @@ const se_DeleteNetworkInterfacePermissionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInterfacePermissionId != null) { - entries["NetworkInterfacePermissionId"] = input.NetworkInterfacePermissionId; + if (input[_NIPIe] != null) { + entries[_NIPIe] = input[_NIPIe]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45700,11 +45699,11 @@ const se_DeleteNetworkInterfacePermissionRequest = ( */ const se_DeleteNetworkInterfaceRequest = (input: DeleteNetworkInterfaceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } return entries; }; @@ -45714,11 +45713,11 @@ const se_DeleteNetworkInterfaceRequest = (input: DeleteNetworkInterfaceRequest, */ const se_DeletePlacementGroupRequest = (input: DeletePlacementGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } return entries; }; @@ -45728,11 +45727,11 @@ const se_DeletePlacementGroupRequest = (input: DeletePlacementGroupRequest, cont */ const se_DeletePublicIpv4PoolRequest = (input: DeletePublicIpv4PoolRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PoolId != null) { - entries["PoolId"] = input.PoolId; + if (input[_PIo] != null) { + entries[_PIo] = input[_PIo]; } return entries; }; @@ -45761,12 +45760,12 @@ const se_DeleteQueuedReservedInstancesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ReservedInstancesIds != null) { - const memberEntries = se_DeleteQueuedReservedInstancesIdList(input.ReservedInstancesIds, context); - if (input.ReservedInstancesIds?.length === 0) { + if (input[_RIIes] != null) { + const memberEntries = se_DeleteQueuedReservedInstancesIdList(input[_RIIes], context); + if (input[_RIIes]?.length === 0) { entries.ReservedInstancesId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -45782,20 +45781,20 @@ const se_DeleteQueuedReservedInstancesRequest = ( */ const se_DeleteRouteRequest = (input: DeleteRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.DestinationIpv6CidrBlock != null) { - entries["DestinationIpv6CidrBlock"] = input.DestinationIpv6CidrBlock; + if (input[_DICB] != null) { + entries[_DICB] = input[_DICB]; } - if (input.DestinationPrefixListId != null) { - entries["DestinationPrefixListId"] = input.DestinationPrefixListId; + if (input[_DPLI] != null) { + entries[_DPLI] = input[_DPLI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } return entries; }; @@ -45805,11 +45804,11 @@ const se_DeleteRouteRequest = (input: DeleteRouteRequest, context: __SerdeContex */ const se_DeleteRouteTableRequest = (input: DeleteRouteTableRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } return entries; }; @@ -45819,14 +45818,14 @@ const se_DeleteRouteTableRequest = (input: DeleteRouteTableRequest, context: __S */ const se_DeleteSecurityGroupRequest = (input: DeleteSecurityGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45836,11 +45835,11 @@ const se_DeleteSecurityGroupRequest = (input: DeleteSecurityGroupRequest, contex */ const se_DeleteSnapshotRequest = (input: DeleteSnapshotRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45853,8 +45852,8 @@ const se_DeleteSpotDatafeedSubscriptionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45867,11 +45866,11 @@ const se_DeleteSubnetCidrReservationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubnetCidrReservationId != null) { - entries["SubnetCidrReservationId"] = input.SubnetCidrReservationId; + if (input[_SCRI] != null) { + entries[_SCRI] = input[_SCRI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45881,11 +45880,11 @@ const se_DeleteSubnetCidrReservationRequest = ( */ const se_DeleteSubnetRequest = (input: DeleteSubnetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45895,12 +45894,12 @@ const se_DeleteSubnetRequest = (input: DeleteSubnetRequest, context: __SerdeCont */ const se_DeleteTagsRequest = (input: DeleteTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Resources != null) { - const memberEntries = se_ResourceIdList(input.Resources, context); - if (input.Resources?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_ResourceIdList(input[_R], context); + if (input[_R]?.length === 0) { entries.ResourceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -45908,9 +45907,9 @@ const se_DeleteTagsRequest = (input: DeleteTagsRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -45926,11 +45925,11 @@ const se_DeleteTagsRequest = (input: DeleteTagsRequest, context: __SerdeContext) */ const se_DeleteTrafficMirrorFilterRequest = (input: DeleteTrafficMirrorFilterRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrafficMirrorFilterId != null) { - entries["TrafficMirrorFilterId"] = input.TrafficMirrorFilterId; + if (input[_TMFI] != null) { + entries[_TMFI] = input[_TMFI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45943,11 +45942,11 @@ const se_DeleteTrafficMirrorFilterRuleRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorFilterRuleId != null) { - entries["TrafficMirrorFilterRuleId"] = input.TrafficMirrorFilterRuleId; + if (input[_TMFRI] != null) { + entries[_TMFRI] = input[_TMFRI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45960,11 +45959,11 @@ const se_DeleteTrafficMirrorSessionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorSessionId != null) { - entries["TrafficMirrorSessionId"] = input.TrafficMirrorSessionId; + if (input[_TMSI] != null) { + entries[_TMSI] = input[_TMSI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45974,11 +45973,11 @@ const se_DeleteTrafficMirrorSessionRequest = ( */ const se_DeleteTrafficMirrorTargetRequest = (input: DeleteTrafficMirrorTargetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrafficMirrorTargetId != null) { - entries["TrafficMirrorTargetId"] = input.TrafficMirrorTargetId; + if (input[_TMTI] != null) { + entries[_TMTI] = input[_TMTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -45991,11 +45990,11 @@ const se_DeleteTransitGatewayConnectPeerRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayConnectPeerId != null) { - entries["TransitGatewayConnectPeerId"] = input.TransitGatewayConnectPeerId; + if (input[_TGCPI] != null) { + entries[_TGCPI] = input[_TGCPI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46008,11 +46007,11 @@ const se_DeleteTransitGatewayConnectRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46025,11 +46024,11 @@ const se_DeleteTransitGatewayMulticastDomainRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46042,11 +46041,11 @@ const se_DeleteTransitGatewayPeeringAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46059,11 +46058,11 @@ const se_DeleteTransitGatewayPolicyTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayPolicyTableId != null) { - entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId; + if (input[_TGPTI] != null) { + entries[_TGPTI] = input[_TGPTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46076,14 +46075,14 @@ const se_DeleteTransitGatewayPrefixListReferenceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46093,11 +46092,11 @@ const se_DeleteTransitGatewayPrefixListReferenceRequest = ( */ const se_DeleteTransitGatewayRequest = (input: DeleteTransitGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46107,14 +46106,14 @@ const se_DeleteTransitGatewayRequest = (input: DeleteTransitGatewayRequest, cont */ const se_DeleteTransitGatewayRouteRequest = (input: DeleteTransitGatewayRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46127,11 +46126,11 @@ const se_DeleteTransitGatewayRouteTableAnnouncementRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableAnnouncementId != null) { - entries["TransitGatewayRouteTableAnnouncementId"] = input.TransitGatewayRouteTableAnnouncementId; + if (input[_TGRTAI] != null) { + entries[_TGRTAI] = input[_TGRTAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46144,11 +46143,11 @@ const se_DeleteTransitGatewayRouteTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46161,11 +46160,11 @@ const se_DeleteTransitGatewayVpcAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46178,17 +46177,17 @@ const se_DeleteVerifiedAccessEndpointRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessEndpointId != null) { - entries["VerifiedAccessEndpointId"] = input.VerifiedAccessEndpointId; + if (input[_VAEI] != null) { + entries[_VAEI] = input[_VAEI]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46198,17 +46197,17 @@ const se_DeleteVerifiedAccessEndpointRequest = ( */ const se_DeleteVerifiedAccessGroupRequest = (input: DeleteVerifiedAccessGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VerifiedAccessGroupId != null) { - entries["VerifiedAccessGroupId"] = input.VerifiedAccessGroupId; + if (input[_VAGI] != null) { + entries[_VAGI] = input[_VAGI]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46221,17 +46220,17 @@ const se_DeleteVerifiedAccessInstanceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -46244,17 +46243,17 @@ const se_DeleteVerifiedAccessTrustProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessTrustProviderId != null) { - entries["VerifiedAccessTrustProviderId"] = input.VerifiedAccessTrustProviderId; + if (input[_VATPI] != null) { + entries[_VATPI] = input[_VATPI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -46264,11 +46263,11 @@ const se_DeleteVerifiedAccessTrustProviderRequest = ( */ const se_DeleteVolumeRequest = (input: DeleteVolumeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46281,12 +46280,12 @@ const se_DeleteVpcEndpointConnectionNotificationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ConnectionNotificationIds != null) { - const memberEntries = se_ConnectionNotificationIdsList(input.ConnectionNotificationIds, context); - if (input.ConnectionNotificationIds?.length === 0) { + if (input[_CNIo] != null) { + const memberEntries = se_ConnectionNotificationIdsList(input[_CNIo], context); + if (input[_CNIo]?.length === 0) { entries.ConnectionNotificationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46305,12 +46304,12 @@ const se_DeleteVpcEndpointServiceConfigurationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceIds != null) { - const memberEntries = se_VpcEndpointServiceIdList(input.ServiceIds, context); - if (input.ServiceIds?.length === 0) { + if (input[_SIer] != null) { + const memberEntries = se_VpcEndpointServiceIdList(input[_SIer], context); + if (input[_SIer]?.length === 0) { entries.ServiceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46326,12 +46325,12 @@ const se_DeleteVpcEndpointServiceConfigurationsRequest = ( */ const se_DeleteVpcEndpointsRequest = (input: DeleteVpcEndpointsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcEndpointIds != null) { - const memberEntries = se_VpcEndpointIdList(input.VpcEndpointIds, context); - if (input.VpcEndpointIds?.length === 0) { + if (input[_VEI] != null) { + const memberEntries = se_VpcEndpointIdList(input[_VEI], context); + if (input[_VEI]?.length === 0) { entries.VpcEndpointId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46350,11 +46349,11 @@ const se_DeleteVpcPeeringConnectionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcPeeringConnectionId != null) { - entries["VpcPeeringConnectionId"] = input.VpcPeeringConnectionId; + if (input[_VPCI] != null) { + entries[_VPCI] = input[_VPCI]; } return entries; }; @@ -46364,11 +46363,11 @@ const se_DeleteVpcPeeringConnectionRequest = ( */ const se_DeleteVpcRequest = (input: DeleteVpcRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46378,11 +46377,11 @@ const se_DeleteVpcRequest = (input: DeleteVpcRequest, context: __SerdeContext): */ const se_DeleteVpnConnectionRequest = (input: DeleteVpnConnectionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46392,11 +46391,11 @@ const se_DeleteVpnConnectionRequest = (input: DeleteVpnConnectionRequest, contex */ const se_DeleteVpnConnectionRouteRequest = (input: DeleteVpnConnectionRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } return entries; }; @@ -46406,11 +46405,11 @@ const se_DeleteVpnConnectionRouteRequest = (input: DeleteVpnConnectionRouteReque */ const se_DeleteVpnGatewayRequest = (input: DeleteVpnGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpnGatewayId != null) { - entries["VpnGatewayId"] = input.VpnGatewayId; + if (input[_VGI] != null) { + entries[_VGI] = input[_VGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46420,11 +46419,11 @@ const se_DeleteVpnGatewayRequest = (input: DeleteVpnGatewayRequest, context: __S */ const se_DeprovisionByoipCidrRequest = (input: DeprovisionByoipCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46434,14 +46433,14 @@ const se_DeprovisionByoipCidrRequest = (input: DeprovisionByoipCidrRequest, cont */ const se_DeprovisionIpamByoasnRequest = (input: DeprovisionIpamByoasnRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamId != null) { - entries["IpamId"] = input.IpamId; + if (input[_IIp] != null) { + entries[_IIp] = input[_IIp]; } - if (input.Asn != null) { - entries["Asn"] = input.Asn; + if (input[_As] != null) { + entries[_As] = input[_As]; } return entries; }; @@ -46451,14 +46450,14 @@ const se_DeprovisionIpamByoasnRequest = (input: DeprovisionIpamByoasnRequest, co */ const se_DeprovisionIpamPoolCidrRequest = (input: DeprovisionIpamPoolCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } return entries; }; @@ -46471,14 +46470,14 @@ const se_DeprovisionPublicIpv4PoolCidrRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PoolId != null) { - entries["PoolId"] = input.PoolId; + if (input[_PIo] != null) { + entries[_PIo] = input[_PIo]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } return entries; }; @@ -46488,11 +46487,11 @@ const se_DeprovisionPublicIpv4PoolCidrRequest = ( */ const se_DeregisterImageRequest = (input: DeregisterImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46505,11 +46504,11 @@ const se_DeregisterInstanceEventNotificationAttributesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceTagAttribute != null) { - const memberEntries = se_DeregisterInstanceTagAttributeRequest(input.InstanceTagAttribute, context); + if (input[_ITA] != null) { + const memberEntries = se_DeregisterInstanceTagAttributeRequest(input[_ITA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceTagAttribute.${key}`; entries[loc] = value; @@ -46526,12 +46525,12 @@ const se_DeregisterInstanceTagAttributeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.IncludeAllTagsOfInstance != null) { - entries["IncludeAllTagsOfInstance"] = input.IncludeAllTagsOfInstance; + if (input[_IATOI] != null) { + entries[_IATOI] = input[_IATOI]; } - if (input.InstanceTagKeys != null) { - const memberEntries = se_InstanceTagKeySet(input.InstanceTagKeys, context); - if (input.InstanceTagKeys?.length === 0) { + if (input[_ITK] != null) { + const memberEntries = se_InstanceTagKeySet(input[_ITK], context); + if (input[_ITK]?.length === 0) { entries.InstanceTagKey = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46550,15 +46549,15 @@ const se_DeregisterTransitGatewayMulticastGroupMembersRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.GroupIpAddress != null) { - entries["GroupIpAddress"] = input.GroupIpAddress; + if (input[_GIA] != null) { + entries[_GIA] = input[_GIA]; } - if (input.NetworkInterfaceIds != null) { - const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input.NetworkInterfaceIds, context); - if (input.NetworkInterfaceIds?.length === 0) { + if (input[_NIIe] != null) { + const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context); + if (input[_NIIe]?.length === 0) { entries.NetworkInterfaceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46566,8 +46565,8 @@ const se_DeregisterTransitGatewayMulticastGroupMembersRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46580,15 +46579,15 @@ const se_DeregisterTransitGatewayMulticastGroupSourcesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.GroupIpAddress != null) { - entries["GroupIpAddress"] = input.GroupIpAddress; + if (input[_GIA] != null) { + entries[_GIA] = input[_GIA]; } - if (input.NetworkInterfaceIds != null) { - const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input.NetworkInterfaceIds, context); - if (input.NetworkInterfaceIds?.length === 0) { + if (input[_NIIe] != null) { + const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context); + if (input[_NIIe]?.length === 0) { entries.NetworkInterfaceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46596,8 +46595,8 @@ const se_DeregisterTransitGatewayMulticastGroupSourcesRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46607,9 +46606,9 @@ const se_DeregisterTransitGatewayMulticastGroupSourcesRequest = ( */ const se_DescribeAccountAttributesRequest = (input: DescribeAccountAttributesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AttributeNames != null) { - const memberEntries = se_AccountAttributeNameStringList(input.AttributeNames, context); - if (input.AttributeNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_AccountAttributeNameStringList(input[_AN], context); + if (input[_AN]?.length === 0) { entries.AttributeName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46617,8 +46616,8 @@ const se_DescribeAccountAttributesRequest = (input: DescribeAccountAttributesReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46631,9 +46630,9 @@ const se_DescribeAddressesAttributeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AllocationIds != null) { - const memberEntries = se_AllocationIds(input.AllocationIds, context); - if (input.AllocationIds?.length === 0) { + if (input[_AIll] != null) { + const memberEntries = se_AllocationIds(input[_AIll], context); + if (input[_AIll]?.length === 0) { entries.AllocationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46641,17 +46640,17 @@ const se_DescribeAddressesAttributeRequest = ( entries[loc] = value; }); } - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46661,9 +46660,9 @@ const se_DescribeAddressesAttributeRequest = ( */ const se_DescribeAddressesRequest = (input: DescribeAddressesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46671,9 +46670,9 @@ const se_DescribeAddressesRequest = (input: DescribeAddressesRequest, context: _ entries[loc] = value; }); } - if (input.PublicIps != null) { - const memberEntries = se_PublicIpStringList(input.PublicIps, context); - if (input.PublicIps?.length === 0) { + if (input[_PIu] != null) { + const memberEntries = se_PublicIpStringList(input[_PIu], context); + if (input[_PIu]?.length === 0) { entries.PublicIp = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46681,9 +46680,9 @@ const se_DescribeAddressesRequest = (input: DescribeAddressesRequest, context: _ entries[loc] = value; }); } - if (input.AllocationIds != null) { - const memberEntries = se_AllocationIdList(input.AllocationIds, context); - if (input.AllocationIds?.length === 0) { + if (input[_AIll] != null) { + const memberEntries = se_AllocationIdList(input[_AIll], context); + if (input[_AIll]?.length === 0) { entries.AllocationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46691,8 +46690,8 @@ const se_DescribeAddressesRequest = (input: DescribeAddressesRequest, context: _ entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46702,9 +46701,9 @@ const se_DescribeAddressesRequest = (input: DescribeAddressesRequest, context: _ */ const se_DescribeAddressTransfersRequest = (input: DescribeAddressTransfersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationIds != null) { - const memberEntries = se_AllocationIdList(input.AllocationIds, context); - if (input.AllocationIds?.length === 0) { + if (input[_AIll] != null) { + const memberEntries = se_AllocationIdList(input[_AIll], context); + if (input[_AIll]?.length === 0) { entries.AllocationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46712,14 +46711,14 @@ const se_DescribeAddressTransfersRequest = (input: DescribeAddressTransfersReque entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46729,8 +46728,8 @@ const se_DescribeAddressTransfersRequest = (input: DescribeAddressTransfersReque */ const se_DescribeAggregateIdFormatRequest = (input: DescribeAggregateIdFormatRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46740,9 +46739,9 @@ const se_DescribeAggregateIdFormatRequest = (input: DescribeAggregateIdFormatReq */ const se_DescribeAvailabilityZonesRequest = (input: DescribeAvailabilityZonesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46750,9 +46749,9 @@ const se_DescribeAvailabilityZonesRequest = (input: DescribeAvailabilityZonesReq entries[loc] = value; }); } - if (input.ZoneNames != null) { - const memberEntries = se_ZoneNameStringList(input.ZoneNames, context); - if (input.ZoneNames?.length === 0) { + if (input[_ZN] != null) { + const memberEntries = se_ZoneNameStringList(input[_ZN], context); + if (input[_ZN]?.length === 0) { entries.ZoneName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46760,9 +46759,9 @@ const se_DescribeAvailabilityZonesRequest = (input: DescribeAvailabilityZonesReq entries[loc] = value; }); } - if (input.ZoneIds != null) { - const memberEntries = se_ZoneIdStringList(input.ZoneIds, context); - if (input.ZoneIds?.length === 0) { + if (input[_ZI] != null) { + const memberEntries = se_ZoneIdStringList(input[_ZI], context); + if (input[_ZI]?.length === 0) { entries.ZoneId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46770,11 +46769,11 @@ const se_DescribeAvailabilityZonesRequest = (input: DescribeAvailabilityZonesReq entries[loc] = value; }); } - if (input.AllAvailabilityZones != null) { - entries["AllAvailabilityZones"] = input.AllAvailabilityZones; + if (input[_AAZ] != null) { + entries[_AAZ] = input[_AAZ]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46787,15 +46786,15 @@ const se_DescribeAwsNetworkPerformanceMetricSubscriptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46803,8 +46802,8 @@ const se_DescribeAwsNetworkPerformanceMetricSubscriptionsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46814,9 +46813,9 @@ const se_DescribeAwsNetworkPerformanceMetricSubscriptionsRequest = ( */ const se_DescribeBundleTasksRequest = (input: DescribeBundleTasksRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BundleIds != null) { - const memberEntries = se_BundleIdStringList(input.BundleIds, context); - if (input.BundleIds?.length === 0) { + if (input[_BIun] != null) { + const memberEntries = se_BundleIdStringList(input[_BIun], context); + if (input[_BIun]?.length === 0) { entries.BundleId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46824,9 +46823,9 @@ const se_DescribeBundleTasksRequest = (input: DescribeBundleTasksRequest, contex entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46834,8 +46833,8 @@ const se_DescribeBundleTasksRequest = (input: DescribeBundleTasksRequest, contex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46845,14 +46844,14 @@ const se_DescribeBundleTasksRequest = (input: DescribeBundleTasksRequest, contex */ const se_DescribeByoipCidrsRequest = (input: DescribeByoipCidrsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -46865,29 +46864,29 @@ const se_DescribeCapacityBlockOfferingsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.StartDateRange != null) { - entries["StartDateRange"] = input.StartDateRange.toISOString().split(".")[0] + "Z"; + if (input[_SDR] != null) { + entries[_SDR] = input[_SDR].toISOString().split(".")[0] + "Z"; } - if (input.EndDateRange != null) { - entries["EndDateRange"] = input.EndDateRange.toISOString().split(".")[0] + "Z"; + if (input[_EDR] != null) { + entries[_EDR] = input[_EDR].toISOString().split(".")[0] + "Z"; } - if (input.CapacityDurationHours != null) { - entries["CapacityDurationHours"] = input.CapacityDurationHours; + if (input[_CDH] != null) { + entries[_CDH] = input[_CDH]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -46900,9 +46899,9 @@ const se_DescribeCapacityReservationFleetsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CapacityReservationFleetIds != null) { - const memberEntries = se_CapacityReservationFleetIdSet(input.CapacityReservationFleetIds, context); - if (input.CapacityReservationFleetIds?.length === 0) { + if (input[_CRFI] != null) { + const memberEntries = se_CapacityReservationFleetIdSet(input[_CRFI], context); + if (input[_CRFI]?.length === 0) { entries.CapacityReservationFleetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46910,15 +46909,15 @@ const se_DescribeCapacityReservationFleetsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46926,8 +46925,8 @@ const se_DescribeCapacityReservationFleetsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46940,9 +46939,9 @@ const se_DescribeCapacityReservationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CapacityReservationIds != null) { - const memberEntries = se_CapacityReservationIdSet(input.CapacityReservationIds, context); - if (input.CapacityReservationIds?.length === 0) { + if (input[_CRIa] != null) { + const memberEntries = se_CapacityReservationIdSet(input[_CRIa], context); + if (input[_CRIa]?.length === 0) { entries.CapacityReservationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46950,15 +46949,15 @@ const se_DescribeCapacityReservationsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46966,8 +46965,8 @@ const se_DescribeCapacityReservationsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -46977,9 +46976,9 @@ const se_DescribeCapacityReservationsRequest = ( */ const se_DescribeCarrierGatewaysRequest = (input: DescribeCarrierGatewaysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CarrierGatewayIds != null) { - const memberEntries = se_CarrierGatewayIdSet(input.CarrierGatewayIds, context); - if (input.CarrierGatewayIds?.length === 0) { + if (input[_CGIa] != null) { + const memberEntries = se_CarrierGatewayIdSet(input[_CGIa], context); + if (input[_CGIa]?.length === 0) { entries.CarrierGatewayId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46987,9 +46986,9 @@ const se_DescribeCarrierGatewaysRequest = (input: DescribeCarrierGatewaysRequest entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -46997,14 +46996,14 @@ const se_DescribeCarrierGatewaysRequest = (input: DescribeCarrierGatewaysRequest entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47017,9 +47016,9 @@ const se_DescribeClassicLinkInstancesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47027,12 +47026,12 @@ const se_DescribeClassicLinkInstancesRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47040,11 +47039,11 @@ const se_DescribeClassicLinkInstancesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -47057,18 +47056,18 @@ const se_DescribeClientVpnAuthorizationRulesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47076,8 +47075,8 @@ const se_DescribeClientVpnAuthorizationRulesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -47090,12 +47089,12 @@ const se_DescribeClientVpnConnectionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47103,14 +47102,14 @@ const se_DescribeClientVpnConnectionsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47123,9 +47122,9 @@ const se_DescribeClientVpnEndpointsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointIds != null) { - const memberEntries = se_ClientVpnEndpointIdList(input.ClientVpnEndpointIds, context); - if (input.ClientVpnEndpointIds?.length === 0) { + if (input[_CVEIl] != null) { + const memberEntries = se_ClientVpnEndpointIdList(input[_CVEIl], context); + if (input[_CVEIl]?.length === 0) { entries.ClientVpnEndpointId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47133,15 +47132,15 @@ const se_DescribeClientVpnEndpointsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47149,8 +47148,8 @@ const se_DescribeClientVpnEndpointsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47160,12 +47159,12 @@ const se_DescribeClientVpnEndpointsRequest = ( */ const se_DescribeClientVpnRoutesRequest = (input: DescribeClientVpnRoutesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47173,14 +47172,14 @@ const se_DescribeClientVpnRoutesRequest = (input: DescribeClientVpnRoutesRequest entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47193,12 +47192,12 @@ const se_DescribeClientVpnTargetNetworksRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.AssociationIds != null) { - const memberEntries = se_ValueStringList(input.AssociationIds, context); - if (input.AssociationIds?.length === 0) { + if (input[_AIs] != null) { + const memberEntries = se_ValueStringList(input[_AIs], context); + if (input[_AIs]?.length === 0) { entries.AssociationIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47206,15 +47205,15 @@ const se_DescribeClientVpnTargetNetworksRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47222,8 +47221,8 @@ const se_DescribeClientVpnTargetNetworksRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47233,9 +47232,9 @@ const se_DescribeClientVpnTargetNetworksRequest = ( */ const se_DescribeCoipPoolsRequest = (input: DescribeCoipPoolsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PoolIds != null) { - const memberEntries = se_CoipPoolIdSet(input.PoolIds, context); - if (input.PoolIds?.length === 0) { + if (input[_PIoo] != null) { + const memberEntries = se_CoipPoolIdSet(input[_PIoo], context); + if (input[_PIoo]?.length === 0) { entries.PoolId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47243,9 +47242,9 @@ const se_DescribeCoipPoolsRequest = (input: DescribeCoipPoolsRequest, context: _ entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47253,14 +47252,14 @@ const se_DescribeCoipPoolsRequest = (input: DescribeCoipPoolsRequest, context: _ entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47270,9 +47269,9 @@ const se_DescribeCoipPoolsRequest = (input: DescribeCoipPoolsRequest, context: _ */ const se_DescribeConversionTasksRequest = (input: DescribeConversionTasksRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ConversionTaskIds != null) { - const memberEntries = se_ConversionIdStringList(input.ConversionTaskIds, context); - if (input.ConversionTaskIds?.length === 0) { + if (input[_CTIo] != null) { + const memberEntries = se_ConversionIdStringList(input[_CTIo], context); + if (input[_CTIo]?.length === 0) { entries.ConversionTaskId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47280,8 +47279,8 @@ const se_DescribeConversionTasksRequest = (input: DescribeConversionTasksRequest entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47291,9 +47290,9 @@ const se_DescribeConversionTasksRequest = (input: DescribeConversionTasksRequest */ const se_DescribeCustomerGatewaysRequest = (input: DescribeCustomerGatewaysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CustomerGatewayIds != null) { - const memberEntries = se_CustomerGatewayIdStringList(input.CustomerGatewayIds, context); - if (input.CustomerGatewayIds?.length === 0) { + if (input[_CGIus] != null) { + const memberEntries = se_CustomerGatewayIdStringList(input[_CGIus], context); + if (input[_CGIus]?.length === 0) { entries.CustomerGatewayId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47301,9 +47300,9 @@ const se_DescribeCustomerGatewaysRequest = (input: DescribeCustomerGatewaysReque entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47311,8 +47310,8 @@ const se_DescribeCustomerGatewaysRequest = (input: DescribeCustomerGatewaysReque entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47322,9 +47321,9 @@ const se_DescribeCustomerGatewaysRequest = (input: DescribeCustomerGatewaysReque */ const se_DescribeDhcpOptionsRequest = (input: DescribeDhcpOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DhcpOptionsIds != null) { - const memberEntries = se_DhcpOptionsIdStringList(input.DhcpOptionsIds, context); - if (input.DhcpOptionsIds?.length === 0) { + if (input[_DOIh] != null) { + const memberEntries = se_DhcpOptionsIdStringList(input[_DOIh], context); + if (input[_DOIh]?.length === 0) { entries.DhcpOptionsId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47332,9 +47331,9 @@ const se_DescribeDhcpOptionsRequest = (input: DescribeDhcpOptionsRequest, contex entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47342,14 +47341,14 @@ const se_DescribeDhcpOptionsRequest = (input: DescribeDhcpOptionsRequest, contex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -47362,12 +47361,12 @@ const se_DescribeEgressOnlyInternetGatewaysRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EgressOnlyInternetGatewayIds != null) { - const memberEntries = se_EgressOnlyInternetGatewayIdList(input.EgressOnlyInternetGatewayIds, context); - if (input.EgressOnlyInternetGatewayIds?.length === 0) { + if (input[_EOIGIg] != null) { + const memberEntries = se_EgressOnlyInternetGatewayIdList(input[_EOIGIg], context); + if (input[_EOIGIg]?.length === 0) { entries.EgressOnlyInternetGatewayId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47375,15 +47374,15 @@ const se_DescribeEgressOnlyInternetGatewaysRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47399,9 +47398,9 @@ const se_DescribeEgressOnlyInternetGatewaysRequest = ( */ const se_DescribeElasticGpusRequest = (input: DescribeElasticGpusRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ElasticGpuIds != null) { - const memberEntries = se_ElasticGpuIdSet(input.ElasticGpuIds, context); - if (input.ElasticGpuIds?.length === 0) { + if (input[_EGI] != null) { + const memberEntries = se_ElasticGpuIdSet(input[_EGI], context); + if (input[_EGI]?.length === 0) { entries.ElasticGpuId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47409,12 +47408,12 @@ const se_DescribeElasticGpusRequest = (input: DescribeElasticGpusRequest, contex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47422,11 +47421,11 @@ const se_DescribeElasticGpusRequest = (input: DescribeElasticGpusRequest, contex entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -47436,12 +47435,12 @@ const se_DescribeElasticGpusRequest = (input: DescribeElasticGpusRequest, contex */ const se_DescribeExportImageTasksRequest = (input: DescribeExportImageTasksRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47449,9 +47448,9 @@ const se_DescribeExportImageTasksRequest = (input: DescribeExportImageTasksReque entries[loc] = value; }); } - if (input.ExportImageTaskIds != null) { - const memberEntries = se_ExportImageTaskIdList(input.ExportImageTaskIds, context); - if (input.ExportImageTaskIds?.length === 0) { + if (input[_EITI] != null) { + const memberEntries = se_ExportImageTaskIdList(input[_EITI], context); + if (input[_EITI]?.length === 0) { entries.ExportImageTaskId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47459,11 +47458,11 @@ const se_DescribeExportImageTasksRequest = (input: DescribeExportImageTasksReque entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -47473,9 +47472,9 @@ const se_DescribeExportImageTasksRequest = (input: DescribeExportImageTasksReque */ const se_DescribeExportTasksRequest = (input: DescribeExportTasksRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExportTaskIds != null) { - const memberEntries = se_ExportTaskIdStringList(input.ExportTaskIds, context); - if (input.ExportTaskIds?.length === 0) { + if (input[_ETIx] != null) { + const memberEntries = se_ExportTaskIdStringList(input[_ETIx], context); + if (input[_ETIx]?.length === 0) { entries.ExportTaskId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47483,9 +47482,9 @@ const se_DescribeExportTasksRequest = (input: DescribeExportTasksRequest, contex entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47501,9 +47500,9 @@ const se_DescribeExportTasksRequest = (input: DescribeExportTasksRequest, contex */ const se_DescribeFastLaunchImagesRequest = (input: DescribeFastLaunchImagesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageIds != null) { - const memberEntries = se_FastLaunchImageIdList(input.ImageIds, context); - if (input.ImageIds?.length === 0) { + if (input[_IImag] != null) { + const memberEntries = se_FastLaunchImageIdList(input[_IImag], context); + if (input[_IImag]?.length === 0) { entries.ImageId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47511,9 +47510,9 @@ const se_DescribeFastLaunchImagesRequest = (input: DescribeFastLaunchImagesReque entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47521,14 +47520,14 @@ const se_DescribeFastLaunchImagesRequest = (input: DescribeFastLaunchImagesReque entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47541,9 +47540,9 @@ const se_DescribeFastSnapshotRestoresRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47551,14 +47550,14 @@ const se_DescribeFastSnapshotRestoresRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47568,23 +47567,23 @@ const se_DescribeFastSnapshotRestoresRequest = ( */ const se_DescribeFleetHistoryRequest = (input: DescribeFleetHistoryRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EventType != null) { - entries["EventType"] = input.EventType; + if (input[_ETv] != null) { + entries[_ETv] = input[_ETv]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.FleetId != null) { - entries["FleetId"] = input.FleetId; + if (input[_FIl] != null) { + entries[_FIl] = input[_FIl]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -47594,21 +47593,21 @@ const se_DescribeFleetHistoryRequest = (input: DescribeFleetHistoryRequest, cont */ const se_DescribeFleetInstancesRequest = (input: DescribeFleetInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.FleetId != null) { - entries["FleetId"] = input.FleetId; + if (input[_FIl] != null) { + entries[_FIl] = input[_FIl]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47624,18 +47623,18 @@ const se_DescribeFleetInstancesRequest = (input: DescribeFleetInstancesRequest, */ const se_DescribeFleetsRequest = (input: DescribeFleetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.FleetIds != null) { - const memberEntries = se_FleetIdSet(input.FleetIds, context); - if (input.FleetIds?.length === 0) { + if (input[_FI] != null) { + const memberEntries = se_FleetIdSet(input[_FI], context); + if (input[_FI]?.length === 0) { entries.FleetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47643,9 +47642,9 @@ const se_DescribeFleetsRequest = (input: DescribeFleetsRequest, context: __Serde entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47661,12 +47660,12 @@ const se_DescribeFleetsRequest = (input: DescribeFleetsRequest, context: __Serde */ const se_DescribeFlowLogsRequest = (input: DescribeFlowLogsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filter != null) { - const memberEntries = se_FilterList(input.Filter, context); - if (input.Filter?.length === 0) { + if (input[_Fil] != null) { + const memberEntries = se_FilterList(input[_Fil], context); + if (input[_Fil]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47674,9 +47673,9 @@ const se_DescribeFlowLogsRequest = (input: DescribeFlowLogsRequest, context: __S entries[loc] = value; }); } - if (input.FlowLogIds != null) { - const memberEntries = se_FlowLogIdList(input.FlowLogIds, context); - if (input.FlowLogIds?.length === 0) { + if (input[_FLI] != null) { + const memberEntries = se_FlowLogIdList(input[_FLI], context); + if (input[_FLI]?.length === 0) { entries.FlowLogId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47684,11 +47683,11 @@ const se_DescribeFlowLogsRequest = (input: DescribeFlowLogsRequest, context: __S entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -47701,14 +47700,14 @@ const se_DescribeFpgaImageAttributeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FpgaImageId != null) { - entries["FpgaImageId"] = input.FpgaImageId; + if (input[_FII] != null) { + entries[_FII] = input[_FII]; } - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } return entries; }; @@ -47718,12 +47717,12 @@ const se_DescribeFpgaImageAttributeRequest = ( */ const se_DescribeFpgaImagesRequest = (input: DescribeFpgaImagesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FpgaImageIds != null) { - const memberEntries = se_FpgaImageIdList(input.FpgaImageIds, context); - if (input.FpgaImageIds?.length === 0) { + if (input[_FIIp] != null) { + const memberEntries = se_FpgaImageIdList(input[_FIIp], context); + if (input[_FIIp]?.length === 0) { entries.FpgaImageId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47731,9 +47730,9 @@ const se_DescribeFpgaImagesRequest = (input: DescribeFpgaImagesRequest, context: entries[loc] = value; }); } - if (input.Owners != null) { - const memberEntries = se_OwnerStringList(input.Owners, context); - if (input.Owners?.length === 0) { + if (input[_Ow] != null) { + const memberEntries = se_OwnerStringList(input[_Ow], context); + if (input[_Ow]?.length === 0) { entries.Owner = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47741,9 +47740,9 @@ const se_DescribeFpgaImagesRequest = (input: DescribeFpgaImagesRequest, context: entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47751,11 +47750,11 @@ const se_DescribeFpgaImagesRequest = (input: DescribeFpgaImagesRequest, context: entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -47768,9 +47767,9 @@ const se_DescribeHostReservationOfferingsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filter != null) { - const memberEntries = se_FilterList(input.Filter, context); - if (input.Filter?.length === 0) { + if (input[_Fil] != null) { + const memberEntries = se_FilterList(input[_Fil], context); + if (input[_Fil]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47778,20 +47777,20 @@ const se_DescribeHostReservationOfferingsRequest = ( entries[loc] = value; }); } - if (input.MaxDuration != null) { - entries["MaxDuration"] = input.MaxDuration; + if (input[_MD] != null) { + entries[_MD] = input[_MD]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.MinDuration != null) { - entries["MinDuration"] = input.MinDuration; + if (input[_MDi] != null) { + entries[_MDi] = input[_MDi]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.OfferingId != null) { - entries["OfferingId"] = input.OfferingId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } return entries; }; @@ -47801,9 +47800,9 @@ const se_DescribeHostReservationOfferingsRequest = ( */ const se_DescribeHostReservationsRequest = (input: DescribeHostReservationsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filter != null) { - const memberEntries = se_FilterList(input.Filter, context); - if (input.Filter?.length === 0) { + if (input[_Fil] != null) { + const memberEntries = se_FilterList(input[_Fil], context); + if (input[_Fil]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47811,9 +47810,9 @@ const se_DescribeHostReservationsRequest = (input: DescribeHostReservationsReque entries[loc] = value; }); } - if (input.HostReservationIdSet != null) { - const memberEntries = se_HostReservationIdSet(input.HostReservationIdSet, context); - if (input.HostReservationIdSet?.length === 0) { + if (input[_HRIS] != null) { + const memberEntries = se_HostReservationIdSet(input[_HRIS], context); + if (input[_HRIS]?.length === 0) { entries.HostReservationIdSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47821,11 +47820,11 @@ const se_DescribeHostReservationsRequest = (input: DescribeHostReservationsReque entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -47835,9 +47834,9 @@ const se_DescribeHostReservationsRequest = (input: DescribeHostReservationsReque */ const se_DescribeHostsRequest = (input: DescribeHostsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filter != null) { - const memberEntries = se_FilterList(input.Filter, context); - if (input.Filter?.length === 0) { + if (input[_Fil] != null) { + const memberEntries = se_FilterList(input[_Fil], context); + if (input[_Fil]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47845,9 +47844,9 @@ const se_DescribeHostsRequest = (input: DescribeHostsRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.HostIds != null) { - const memberEntries = se_RequestHostIdList(input.HostIds, context); - if (input.HostIds?.length === 0) { + if (input[_HI] != null) { + const memberEntries = se_RequestHostIdList(input[_HI], context); + if (input[_HI]?.length === 0) { entries.HostId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47855,11 +47854,11 @@ const se_DescribeHostsRequest = (input: DescribeHostsRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -47872,9 +47871,9 @@ const se_DescribeIamInstanceProfileAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociationIds != null) { - const memberEntries = se_AssociationIdList(input.AssociationIds, context); - if (input.AssociationIds?.length === 0) { + if (input[_AIs] != null) { + const memberEntries = se_AssociationIdList(input[_AIs], context); + if (input[_AIs]?.length === 0) { entries.AssociationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47882,9 +47881,9 @@ const se_DescribeIamInstanceProfileAssociationsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47892,11 +47891,11 @@ const se_DescribeIamInstanceProfileAssociationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -47906,11 +47905,11 @@ const se_DescribeIamInstanceProfileAssociationsRequest = ( */ const se_DescribeIdentityIdFormatRequest = (input: DescribeIdentityIdFormatRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; + if (input[_PAr] != null) { + entries[_PAr] = input[_PAr]; } - if (input.Resource != null) { - entries["Resource"] = input.Resource; + if (input[_Res] != null) { + entries[_Res] = input[_Res]; } return entries; }; @@ -47920,8 +47919,8 @@ const se_DescribeIdentityIdFormatRequest = (input: DescribeIdentityIdFormatReque */ const se_DescribeIdFormatRequest = (input: DescribeIdFormatRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Resource != null) { - entries["Resource"] = input.Resource; + if (input[_Res] != null) { + entries[_Res] = input[_Res]; } return entries; }; @@ -47931,14 +47930,14 @@ const se_DescribeIdFormatRequest = (input: DescribeIdFormatRequest, context: __S */ const se_DescribeImageAttributeRequest = (input: DescribeImageAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -47948,9 +47947,9 @@ const se_DescribeImageAttributeRequest = (input: DescribeImageAttributeRequest, */ const se_DescribeImagesRequest = (input: DescribeImagesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExecutableUsers != null) { - const memberEntries = se_ExecutableByStringList(input.ExecutableUsers, context); - if (input.ExecutableUsers?.length === 0) { + if (input[_EU] != null) { + const memberEntries = se_ExecutableByStringList(input[_EU], context); + if (input[_EU]?.length === 0) { entries.ExecutableBy = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47958,9 +47957,9 @@ const se_DescribeImagesRequest = (input: DescribeImagesRequest, context: __Serde entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47968,9 +47967,9 @@ const se_DescribeImagesRequest = (input: DescribeImagesRequest, context: __Serde entries[loc] = value; }); } - if (input.ImageIds != null) { - const memberEntries = se_ImageIdStringList(input.ImageIds, context); - if (input.ImageIds?.length === 0) { + if (input[_IImag] != null) { + const memberEntries = se_ImageIdStringList(input[_IImag], context); + if (input[_IImag]?.length === 0) { entries.ImageId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47978,9 +47977,9 @@ const se_DescribeImagesRequest = (input: DescribeImagesRequest, context: __Serde entries[loc] = value; }); } - if (input.Owners != null) { - const memberEntries = se_OwnerStringList(input.Owners, context); - if (input.Owners?.length === 0) { + if (input[_Ow] != null) { + const memberEntries = se_OwnerStringList(input[_Ow], context); + if (input[_Ow]?.length === 0) { entries.Owner = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -47988,20 +47987,20 @@ const se_DescribeImagesRequest = (input: DescribeImagesRequest, context: __Serde entries[loc] = value; }); } - if (input.IncludeDeprecated != null) { - entries["IncludeDeprecated"] = input.IncludeDeprecated; + if (input[_ID] != null) { + entries[_ID] = input[_ID]; } - if (input.IncludeDisabled != null) { - entries["IncludeDisabled"] = input.IncludeDisabled; + if (input[_IDn] != null) { + entries[_IDn] = input[_IDn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48011,12 +48010,12 @@ const se_DescribeImagesRequest = (input: DescribeImagesRequest, context: __Serde */ const se_DescribeImportImageTasksRequest = (input: DescribeImportImageTasksRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48024,9 +48023,9 @@ const se_DescribeImportImageTasksRequest = (input: DescribeImportImageTasksReque entries[loc] = value; }); } - if (input.ImportTaskIds != null) { - const memberEntries = se_ImportTaskIdList(input.ImportTaskIds, context); - if (input.ImportTaskIds?.length === 0) { + if (input[_ITIm] != null) { + const memberEntries = se_ImportTaskIdList(input[_ITIm], context); + if (input[_ITIm]?.length === 0) { entries.ImportTaskId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48034,11 +48033,11 @@ const se_DescribeImportImageTasksRequest = (input: DescribeImportImageTasksReque entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48051,12 +48050,12 @@ const se_DescribeImportSnapshotTasksRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48064,9 +48063,9 @@ const se_DescribeImportSnapshotTasksRequest = ( entries[loc] = value; }); } - if (input.ImportTaskIds != null) { - const memberEntries = se_ImportSnapshotTaskIdList(input.ImportTaskIds, context); - if (input.ImportTaskIds?.length === 0) { + if (input[_ITIm] != null) { + const memberEntries = se_ImportSnapshotTaskIdList(input[_ITIm], context); + if (input[_ITIm]?.length === 0) { entries.ImportTaskId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48074,11 +48073,11 @@ const se_DescribeImportSnapshotTasksRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48088,14 +48087,14 @@ const se_DescribeImportSnapshotTasksRequest = ( */ const se_DescribeInstanceAttributeRequest = (input: DescribeInstanceAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } return entries; }; @@ -48108,18 +48107,18 @@ const se_DescribeInstanceConnectEndpointsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48127,9 +48126,9 @@ const se_DescribeInstanceConnectEndpointsRequest = ( entries[loc] = value; }); } - if (input.InstanceConnectEndpointIds != null) { - const memberEntries = se_ValueStringList(input.InstanceConnectEndpointIds, context); - if (input.InstanceConnectEndpointIds?.length === 0) { + if (input[_ICEIn] != null) { + const memberEntries = se_ValueStringList(input[_ICEIn], context); + if (input[_ICEIn]?.length === 0) { entries.InstanceConnectEndpointId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48148,12 +48147,12 @@ const se_DescribeInstanceCreditSpecificationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48161,9 +48160,9 @@ const se_DescribeInstanceCreditSpecificationsRequest = ( entries[loc] = value; }); } - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48171,11 +48170,11 @@ const se_DescribeInstanceCreditSpecificationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48188,8 +48187,8 @@ const se_DescribeInstanceEventNotificationAttributesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -48202,12 +48201,12 @@ const se_DescribeInstanceEventWindowsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceEventWindowIds != null) { - const memberEntries = se_InstanceEventWindowIdSet(input.InstanceEventWindowIds, context); - if (input.InstanceEventWindowIds?.length === 0) { + if (input[_IEWIn] != null) { + const memberEntries = se_InstanceEventWindowIdSet(input[_IEWIn], context); + if (input[_IEWIn]?.length === 0) { entries.InstanceEventWindowId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48215,9 +48214,9 @@ const se_DescribeInstanceEventWindowsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48225,11 +48224,11 @@ const se_DescribeInstanceEventWindowsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48239,9 +48238,9 @@ const se_DescribeInstanceEventWindowsRequest = ( */ const se_DescribeInstancesRequest = (input: DescribeInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48249,9 +48248,9 @@ const se_DescribeInstancesRequest = (input: DescribeInstancesRequest, context: _ entries[loc] = value; }); } - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48259,14 +48258,14 @@ const se_DescribeInstancesRequest = (input: DescribeInstancesRequest, context: _ entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48276,9 +48275,9 @@ const se_DescribeInstancesRequest = (input: DescribeInstancesRequest, context: _ */ const se_DescribeInstanceStatusRequest = (input: DescribeInstanceStatusRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48286,9 +48285,9 @@ const se_DescribeInstanceStatusRequest = (input: DescribeInstanceStatusRequest, entries[loc] = value; }); } - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48296,17 +48295,17 @@ const se_DescribeInstanceStatusRequest = (input: DescribeInstanceStatusRequest, entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IncludeAllInstances != null) { - entries["IncludeAllInstances"] = input.IncludeAllInstances; + if (input[_IAI] != null) { + entries[_IAI] = input[_IAI]; } return entries; }; @@ -48348,18 +48347,18 @@ const se_DescribeInstanceTopologyInstanceIdSet = (input: string[], context: __Se */ const se_DescribeInstanceTopologyRequest = (input: DescribeInstanceTopologyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.InstanceIds != null) { - const memberEntries = se_DescribeInstanceTopologyInstanceIdSet(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_DescribeInstanceTopologyInstanceIdSet(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48367,9 +48366,9 @@ const se_DescribeInstanceTopologyRequest = (input: DescribeInstanceTopologyReque entries[loc] = value; }); } - if (input.GroupNames != null) { - const memberEntries = se_DescribeInstanceTopologyGroupNameSet(input.GroupNames, context); - if (input.GroupNames?.length === 0) { + if (input[_GNr] != null) { + const memberEntries = se_DescribeInstanceTopologyGroupNameSet(input[_GNr], context); + if (input[_GNr]?.length === 0) { entries.GroupName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48377,9 +48376,9 @@ const se_DescribeInstanceTopologyRequest = (input: DescribeInstanceTopologyReque entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48398,15 +48397,15 @@ const se_DescribeInstanceTypeOfferingsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LocationType != null) { - entries["LocationType"] = input.LocationType; + if (input[_LT] != null) { + entries[_LT] = input[_LT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48414,11 +48413,11 @@ const se_DescribeInstanceTypeOfferingsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48428,12 +48427,12 @@ const se_DescribeInstanceTypeOfferingsRequest = ( */ const se_DescribeInstanceTypesRequest = (input: DescribeInstanceTypesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceTypes != null) { - const memberEntries = se_RequestInstanceTypeList(input.InstanceTypes, context); - if (input.InstanceTypes?.length === 0) { + if (input[_ITnst] != null) { + const memberEntries = se_RequestInstanceTypeList(input[_ITnst], context); + if (input[_ITnst]?.length === 0) { entries.InstanceType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48441,9 +48440,9 @@ const se_DescribeInstanceTypesRequest = (input: DescribeInstanceTypesRequest, co entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48451,11 +48450,11 @@ const se_DescribeInstanceTypesRequest = (input: DescribeInstanceTypesRequest, co entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48465,9 +48464,9 @@ const se_DescribeInstanceTypesRequest = (input: DescribeInstanceTypesRequest, co */ const se_DescribeInternetGatewaysRequest = (input: DescribeInternetGatewaysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48475,12 +48474,12 @@ const se_DescribeInternetGatewaysRequest = (input: DescribeInternetGatewaysReque entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InternetGatewayIds != null) { - const memberEntries = se_InternetGatewayIdList(input.InternetGatewayIds, context); - if (input.InternetGatewayIds?.length === 0) { + if (input[_IGIn] != null) { + const memberEntries = se_InternetGatewayIdList(input[_IGIn], context); + if (input[_IGIn]?.length === 0) { entries.InternetGatewayId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48488,11 +48487,11 @@ const se_DescribeInternetGatewaysRequest = (input: DescribeInternetGatewaysReque entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -48502,14 +48501,14 @@ const se_DescribeInternetGatewaysRequest = (input: DescribeInternetGatewaysReque */ const se_DescribeIpamByoasnRequest = (input: DescribeIpamByoasnRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -48519,12 +48518,12 @@ const se_DescribeIpamByoasnRequest = (input: DescribeIpamByoasnRequest, context: */ const se_DescribeIpamPoolsRequest = (input: DescribeIpamPoolsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48532,15 +48531,15 @@ const se_DescribeIpamPoolsRequest = (input: DescribeIpamPoolsRequest, context: _ entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.IpamPoolIds != null) { - const memberEntries = se_ValueStringList(input.IpamPoolIds, context); - if (input.IpamPoolIds?.length === 0) { + if (input[_IPIp] != null) { + const memberEntries = se_ValueStringList(input[_IPIp], context); + if (input[_IPIp]?.length === 0) { entries.IpamPoolId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48559,12 +48558,12 @@ const se_DescribeIpamResourceDiscoveriesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryIds != null) { - const memberEntries = se_ValueStringList(input.IpamResourceDiscoveryIds, context); - if (input.IpamResourceDiscoveryIds?.length === 0) { + if (input[_IRDIp] != null) { + const memberEntries = se_ValueStringList(input[_IRDIp], context); + if (input[_IRDIp]?.length === 0) { entries.IpamResourceDiscoveryId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48572,15 +48571,15 @@ const se_DescribeIpamResourceDiscoveriesRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48599,12 +48598,12 @@ const se_DescribeIpamResourceDiscoveryAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryAssociationIds != null) { - const memberEntries = se_ValueStringList(input.IpamResourceDiscoveryAssociationIds, context); - if (input.IpamResourceDiscoveryAssociationIds?.length === 0) { + if (input[_IRDAI] != null) { + const memberEntries = se_ValueStringList(input[_IRDAI], context); + if (input[_IRDAI]?.length === 0) { entries.IpamResourceDiscoveryAssociationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48612,15 +48611,15 @@ const se_DescribeIpamResourceDiscoveryAssociationsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48636,12 +48635,12 @@ const se_DescribeIpamResourceDiscoveryAssociationsRequest = ( */ const se_DescribeIpamScopesRequest = (input: DescribeIpamScopesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48649,15 +48648,15 @@ const se_DescribeIpamScopesRequest = (input: DescribeIpamScopesRequest, context: entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.IpamScopeIds != null) { - const memberEntries = se_ValueStringList(input.IpamScopeIds, context); - if (input.IpamScopeIds?.length === 0) { + if (input[_ISIp] != null) { + const memberEntries = se_ValueStringList(input[_ISIp], context); + if (input[_ISIp]?.length === 0) { entries.IpamScopeId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48673,12 +48672,12 @@ const se_DescribeIpamScopesRequest = (input: DescribeIpamScopesRequest, context: */ const se_DescribeIpamsRequest = (input: DescribeIpamsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48686,15 +48685,15 @@ const se_DescribeIpamsRequest = (input: DescribeIpamsRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.IpamIds != null) { - const memberEntries = se_ValueStringList(input.IpamIds, context); - if (input.IpamIds?.length === 0) { + if (input[_IIpa] != null) { + const memberEntries = se_ValueStringList(input[_IIpa], context); + if (input[_IIpa]?.length === 0) { entries.IpamId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48710,9 +48709,9 @@ const se_DescribeIpamsRequest = (input: DescribeIpamsRequest, context: __SerdeCo */ const se_DescribeIpv6PoolsRequest = (input: DescribeIpv6PoolsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PoolIds != null) { - const memberEntries = se_Ipv6PoolIdList(input.PoolIds, context); - if (input.PoolIds?.length === 0) { + if (input[_PIoo] != null) { + const memberEntries = se_Ipv6PoolIdList(input[_PIoo], context); + if (input[_PIoo]?.length === 0) { entries.PoolId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48720,18 +48719,18 @@ const se_DescribeIpv6PoolsRequest = (input: DescribeIpv6PoolsRequest, context: _ entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48747,9 +48746,9 @@ const se_DescribeIpv6PoolsRequest = (input: DescribeIpv6PoolsRequest, context: _ */ const se_DescribeKeyPairsRequest = (input: DescribeKeyPairsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48757,9 +48756,9 @@ const se_DescribeKeyPairsRequest = (input: DescribeKeyPairsRequest, context: __S entries[loc] = value; }); } - if (input.KeyNames != null) { - const memberEntries = se_KeyNameStringList(input.KeyNames, context); - if (input.KeyNames?.length === 0) { + if (input[_KNe] != null) { + const memberEntries = se_KeyNameStringList(input[_KNe], context); + if (input[_KNe]?.length === 0) { entries.KeyName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48767,9 +48766,9 @@ const se_DescribeKeyPairsRequest = (input: DescribeKeyPairsRequest, context: __S entries[loc] = value; }); } - if (input.KeyPairIds != null) { - const memberEntries = se_KeyPairIdStringList(input.KeyPairIds, context); - if (input.KeyPairIds?.length === 0) { + if (input[_KPIe] != null) { + const memberEntries = se_KeyPairIdStringList(input[_KPIe], context); + if (input[_KPIe]?.length === 0) { entries.KeyPairId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48777,11 +48776,11 @@ const se_DescribeKeyPairsRequest = (input: DescribeKeyPairsRequest, context: __S entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IncludePublicKey != null) { - entries["IncludePublicKey"] = input.IncludePublicKey; + if (input[_IPK] != null) { + entries[_IPK] = input[_IPK]; } return entries; }; @@ -48791,12 +48790,12 @@ const se_DescribeKeyPairsRequest = (input: DescribeKeyPairsRequest, context: __S */ const se_DescribeLaunchTemplatesRequest = (input: DescribeLaunchTemplatesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LaunchTemplateIds != null) { - const memberEntries = se_LaunchTemplateIdStringList(input.LaunchTemplateIds, context); - if (input.LaunchTemplateIds?.length === 0) { + if (input[_LTIa] != null) { + const memberEntries = se_LaunchTemplateIdStringList(input[_LTIa], context); + if (input[_LTIa]?.length === 0) { entries.LaunchTemplateId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48804,9 +48803,9 @@ const se_DescribeLaunchTemplatesRequest = (input: DescribeLaunchTemplatesRequest entries[loc] = value; }); } - if (input.LaunchTemplateNames != null) { - const memberEntries = se_LaunchTemplateNameStringList(input.LaunchTemplateNames, context); - if (input.LaunchTemplateNames?.length === 0) { + if (input[_LTNa] != null) { + const memberEntries = se_LaunchTemplateNameStringList(input[_LTNa], context); + if (input[_LTNa]?.length === 0) { entries.LaunchTemplateName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48814,9 +48813,9 @@ const se_DescribeLaunchTemplatesRequest = (input: DescribeLaunchTemplatesRequest entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48824,11 +48823,11 @@ const se_DescribeLaunchTemplatesRequest = (input: DescribeLaunchTemplatesRequest entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -48841,18 +48840,18 @@ const se_DescribeLaunchTemplateVersionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.Versions != null) { - const memberEntries = se_VersionStringList(input.Versions, context); - if (input.Versions?.length === 0) { + if (input[_Ve] != null) { + const memberEntries = se_VersionStringList(input[_Ve], context); + if (input[_Ve]?.length === 0) { entries.LaunchTemplateVersion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48860,21 +48859,21 @@ const se_DescribeLaunchTemplateVersionsRequest = ( entries[loc] = value; }); } - if (input.MinVersion != null) { - entries["MinVersion"] = input.MinVersion; + if (input[_MVi] != null) { + entries[_MVi] = input[_MVi]; } - if (input.MaxVersion != null) { - entries["MaxVersion"] = input.MaxVersion; + if (input[_MVa] != null) { + entries[_MVa] = input[_MVa]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48882,8 +48881,8 @@ const se_DescribeLaunchTemplateVersionsRequest = ( entries[loc] = value; }); } - if (input.ResolveAlias != null) { - entries["ResolveAlias"] = input.ResolveAlias; + if (input[_RAe] != null) { + entries[_RAe] = input[_RAe]; } return entries; }; @@ -48896,9 +48895,9 @@ const se_DescribeLocalGatewayRouteTablesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableIds != null) { - const memberEntries = se_LocalGatewayRouteTableIdSet(input.LocalGatewayRouteTableIds, context); - if (input.LocalGatewayRouteTableIds?.length === 0) { + if (input[_LGRTIo] != null) { + const memberEntries = se_LocalGatewayRouteTableIdSet(input[_LGRTIo], context); + if (input[_LGRTIo]?.length === 0) { entries.LocalGatewayRouteTableId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48906,9 +48905,9 @@ const se_DescribeLocalGatewayRouteTablesRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48916,14 +48915,14 @@ const se_DescribeLocalGatewayRouteTablesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -48936,12 +48935,9 @@ const se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds != null) { - const memberEntries = se_LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet( - input.LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds, - context - ); - if (input.LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds?.length === 0) { + if (input[_LGRTVIGAIo] != null) { + const memberEntries = se_LocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet(input[_LGRTVIGAIo], context); + if (input[_LGRTVIGAIo]?.length === 0) { entries.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48949,9 +48945,9 @@ const se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48959,14 +48955,14 @@ const se_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -48979,12 +48975,9 @@ const se_DescribeLocalGatewayRouteTableVpcAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableVpcAssociationIds != null) { - const memberEntries = se_LocalGatewayRouteTableVpcAssociationIdSet( - input.LocalGatewayRouteTableVpcAssociationIds, - context - ); - if (input.LocalGatewayRouteTableVpcAssociationIds?.length === 0) { + if (input[_LGRTVAIo] != null) { + const memberEntries = se_LocalGatewayRouteTableVpcAssociationIdSet(input[_LGRTVAIo], context); + if (input[_LGRTVAIo]?.length === 0) { entries.LocalGatewayRouteTableVpcAssociationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -48992,9 +48985,9 @@ const se_DescribeLocalGatewayRouteTableVpcAssociationsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49002,14 +48995,14 @@ const se_DescribeLocalGatewayRouteTableVpcAssociationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -49019,9 +49012,9 @@ const se_DescribeLocalGatewayRouteTableVpcAssociationsRequest = ( */ const se_DescribeLocalGatewaysRequest = (input: DescribeLocalGatewaysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.LocalGatewayIds != null) { - const memberEntries = se_LocalGatewayIdSet(input.LocalGatewayIds, context); - if (input.LocalGatewayIds?.length === 0) { + if (input[_LGIo] != null) { + const memberEntries = se_LocalGatewayIdSet(input[_LGIo], context); + if (input[_LGIo]?.length === 0) { entries.LocalGatewayId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49029,9 +49022,9 @@ const se_DescribeLocalGatewaysRequest = (input: DescribeLocalGatewaysRequest, co entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49039,14 +49032,14 @@ const se_DescribeLocalGatewaysRequest = (input: DescribeLocalGatewaysRequest, co entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -49059,12 +49052,9 @@ const se_DescribeLocalGatewayVirtualInterfaceGroupsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayVirtualInterfaceGroupIds != null) { - const memberEntries = se_LocalGatewayVirtualInterfaceGroupIdSet( - input.LocalGatewayVirtualInterfaceGroupIds, - context - ); - if (input.LocalGatewayVirtualInterfaceGroupIds?.length === 0) { + if (input[_LGVIGIo] != null) { + const memberEntries = se_LocalGatewayVirtualInterfaceGroupIdSet(input[_LGVIGIo], context); + if (input[_LGVIGIo]?.length === 0) { entries.LocalGatewayVirtualInterfaceGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49072,9 +49062,9 @@ const se_DescribeLocalGatewayVirtualInterfaceGroupsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49082,14 +49072,14 @@ const se_DescribeLocalGatewayVirtualInterfaceGroupsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -49102,9 +49092,9 @@ const se_DescribeLocalGatewayVirtualInterfacesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LocalGatewayVirtualInterfaceIds != null) { - const memberEntries = se_LocalGatewayVirtualInterfaceIdSet(input.LocalGatewayVirtualInterfaceIds, context); - if (input.LocalGatewayVirtualInterfaceIds?.length === 0) { + if (input[_LGVII] != null) { + const memberEntries = se_LocalGatewayVirtualInterfaceIdSet(input[_LGVII], context); + if (input[_LGVII]?.length === 0) { entries.LocalGatewayVirtualInterfaceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49112,9 +49102,9 @@ const se_DescribeLocalGatewayVirtualInterfacesRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49122,14 +49112,14 @@ const se_DescribeLocalGatewayVirtualInterfacesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -49139,9 +49129,9 @@ const se_DescribeLocalGatewayVirtualInterfacesRequest = ( */ const se_DescribeLockedSnapshotsRequest = (input: DescribeLockedSnapshotsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49149,15 +49139,15 @@ const se_DescribeLockedSnapshotsRequest = (input: DescribeLockedSnapshotsRequest entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.SnapshotIds != null) { - const memberEntries = se_SnapshotIdStringList(input.SnapshotIds, context); - if (input.SnapshotIds?.length === 0) { + if (input[_SIna] != null) { + const memberEntries = se_SnapshotIdStringList(input[_SIna], context); + if (input[_SIna]?.length === 0) { entries.SnapshotId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49165,8 +49155,8 @@ const se_DescribeLockedSnapshotsRequest = (input: DescribeLockedSnapshotsRequest entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -49179,12 +49169,12 @@ const se_DescribeManagedPrefixListsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49192,15 +49182,15 @@ const se_DescribeManagedPrefixListsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.PrefixListIds != null) { - const memberEntries = se_ValueStringList(input.PrefixListIds, context); - if (input.PrefixListIds?.length === 0) { + if (input[_PLIr] != null) { + const memberEntries = se_ValueStringList(input[_PLIr], context); + if (input[_PLIr]?.length === 0) { entries.PrefixListId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49216,9 +49206,9 @@ const se_DescribeManagedPrefixListsRequest = ( */ const se_DescribeMovingAddressesRequest = (input: DescribeMovingAddressesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49226,18 +49216,18 @@ const se_DescribeMovingAddressesRequest = (input: DescribeMovingAddressesRequest entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.PublicIps != null) { - const memberEntries = se_ValueStringList(input.PublicIps, context); - if (input.PublicIps?.length === 0) { + if (input[_PIu] != null) { + const memberEntries = se_ValueStringList(input[_PIu], context); + if (input[_PIu]?.length === 0) { entries.PublicIp = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49253,12 +49243,12 @@ const se_DescribeMovingAddressesRequest = (input: DescribeMovingAddressesRequest */ const se_DescribeNatGatewaysRequest = (input: DescribeNatGatewaysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filter != null) { - const memberEntries = se_FilterList(input.Filter, context); - if (input.Filter?.length === 0) { + if (input[_Fil] != null) { + const memberEntries = se_FilterList(input[_Fil], context); + if (input[_Fil]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49266,12 +49256,12 @@ const se_DescribeNatGatewaysRequest = (input: DescribeNatGatewaysRequest, contex entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NatGatewayIds != null) { - const memberEntries = se_NatGatewayIdStringList(input.NatGatewayIds, context); - if (input.NatGatewayIds?.length === 0) { + if (input[_NGIa] != null) { + const memberEntries = se_NatGatewayIdStringList(input[_NGIa], context); + if (input[_NGIa]?.length === 0) { entries.NatGatewayId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49279,8 +49269,8 @@ const se_DescribeNatGatewaysRequest = (input: DescribeNatGatewaysRequest, contex entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -49290,9 +49280,9 @@ const se_DescribeNatGatewaysRequest = (input: DescribeNatGatewaysRequest, contex */ const se_DescribeNetworkAclsRequest = (input: DescribeNetworkAclsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49300,12 +49290,12 @@ const se_DescribeNetworkAclsRequest = (input: DescribeNetworkAclsRequest, contex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkAclIds != null) { - const memberEntries = se_NetworkAclIdStringList(input.NetworkAclIds, context); - if (input.NetworkAclIds?.length === 0) { + if (input[_NAIe] != null) { + const memberEntries = se_NetworkAclIdStringList(input[_NAIe], context); + if (input[_NAIe]?.length === 0) { entries.NetworkAclId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49313,11 +49303,11 @@ const se_DescribeNetworkAclsRequest = (input: DescribeNetworkAclsRequest, contex entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -49330,12 +49320,9 @@ const se_DescribeNetworkInsightsAccessScopeAnalysesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsAccessScopeAnalysisIds != null) { - const memberEntries = se_NetworkInsightsAccessScopeAnalysisIdList( - input.NetworkInsightsAccessScopeAnalysisIds, - context - ); - if (input.NetworkInsightsAccessScopeAnalysisIds?.length === 0) { + if (input[_NIASAIe] != null) { + const memberEntries = se_NetworkInsightsAccessScopeAnalysisIdList(input[_NIASAIe], context); + if (input[_NIASAIe]?.length === 0) { entries.NetworkInsightsAccessScopeAnalysisId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49343,18 +49330,18 @@ const se_DescribeNetworkInsightsAccessScopeAnalysesRequest = ( entries[loc] = value; }); } - if (input.NetworkInsightsAccessScopeId != null) { - entries["NetworkInsightsAccessScopeId"] = input.NetworkInsightsAccessScopeId; + if (input[_NIASI] != null) { + entries[_NIASI] = input[_NIASI]; } - if (input.AnalysisStartTimeBegin != null) { - entries["AnalysisStartTimeBegin"] = input.AnalysisStartTimeBegin.toISOString().split(".")[0] + "Z"; + if (input[_ASTB] != null) { + entries[_ASTB] = input[_ASTB].toISOString().split(".")[0] + "Z"; } - if (input.AnalysisStartTimeEnd != null) { - entries["AnalysisStartTimeEnd"] = input.AnalysisStartTimeEnd.toISOString().split(".")[0] + "Z"; + if (input[_ASTE] != null) { + entries[_ASTE] = input[_ASTE].toISOString().split(".")[0] + "Z"; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49362,14 +49349,14 @@ const se_DescribeNetworkInsightsAccessScopeAnalysesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -49382,9 +49369,9 @@ const se_DescribeNetworkInsightsAccessScopesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsAccessScopeIds != null) { - const memberEntries = se_NetworkInsightsAccessScopeIdList(input.NetworkInsightsAccessScopeIds, context); - if (input.NetworkInsightsAccessScopeIds?.length === 0) { + if (input[_NIASIe] != null) { + const memberEntries = se_NetworkInsightsAccessScopeIdList(input[_NIASIe], context); + if (input[_NIASIe]?.length === 0) { entries.NetworkInsightsAccessScopeId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49392,9 +49379,9 @@ const se_DescribeNetworkInsightsAccessScopesRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49402,14 +49389,14 @@ const se_DescribeNetworkInsightsAccessScopesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -49422,9 +49409,9 @@ const se_DescribeNetworkInsightsAnalysesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsAnalysisIds != null) { - const memberEntries = se_NetworkInsightsAnalysisIdList(input.NetworkInsightsAnalysisIds, context); - if (input.NetworkInsightsAnalysisIds?.length === 0) { + if (input[_NIAIe] != null) { + const memberEntries = se_NetworkInsightsAnalysisIdList(input[_NIAIe], context); + if (input[_NIAIe]?.length === 0) { entries.NetworkInsightsAnalysisId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49432,18 +49419,18 @@ const se_DescribeNetworkInsightsAnalysesRequest = ( entries[loc] = value; }); } - if (input.NetworkInsightsPathId != null) { - entries["NetworkInsightsPathId"] = input.NetworkInsightsPathId; + if (input[_NIPI] != null) { + entries[_NIPI] = input[_NIPI]; } - if (input.AnalysisStartTime != null) { - entries["AnalysisStartTime"] = input.AnalysisStartTime.toISOString().split(".")[0] + "Z"; + if (input[_AST] != null) { + entries[_AST] = input[_AST].toISOString().split(".")[0] + "Z"; } - if (input.AnalysisEndTime != null) { - entries["AnalysisEndTime"] = input.AnalysisEndTime.toISOString().split(".")[0] + "Z"; + if (input[_AET] != null) { + entries[_AET] = input[_AET].toISOString().split(".")[0] + "Z"; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49451,14 +49438,14 @@ const se_DescribeNetworkInsightsAnalysesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -49471,9 +49458,9 @@ const se_DescribeNetworkInsightsPathsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsPathIds != null) { - const memberEntries = se_NetworkInsightsPathIdList(input.NetworkInsightsPathIds, context); - if (input.NetworkInsightsPathIds?.length === 0) { + if (input[_NIPIet] != null) { + const memberEntries = se_NetworkInsightsPathIdList(input[_NIPIet], context); + if (input[_NIPIet]?.length === 0) { entries.NetworkInsightsPathId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49481,9 +49468,9 @@ const se_DescribeNetworkInsightsPathsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49491,14 +49478,14 @@ const se_DescribeNetworkInsightsPathsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -49511,14 +49498,14 @@ const se_DescribeNetworkInterfaceAttributeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } return entries; }; @@ -49531,9 +49518,9 @@ const se_DescribeNetworkInterfacePermissionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInterfacePermissionIds != null) { - const memberEntries = se_NetworkInterfacePermissionIdList(input.NetworkInterfacePermissionIds, context); - if (input.NetworkInterfacePermissionIds?.length === 0) { + if (input[_NIPIetw] != null) { + const memberEntries = se_NetworkInterfacePermissionIdList(input[_NIPIetw], context); + if (input[_NIPIetw]?.length === 0) { entries.NetworkInterfacePermissionId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49541,9 +49528,9 @@ const se_DescribeNetworkInterfacePermissionsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49551,11 +49538,11 @@ const se_DescribeNetworkInterfacePermissionsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -49565,9 +49552,9 @@ const se_DescribeNetworkInterfacePermissionsRequest = ( */ const se_DescribeNetworkInterfacesRequest = (input: DescribeNetworkInterfacesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49575,12 +49562,12 @@ const se_DescribeNetworkInterfacesRequest = (input: DescribeNetworkInterfacesReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInterfaceIds != null) { - const memberEntries = se_NetworkInterfaceIdList(input.NetworkInterfaceIds, context); - if (input.NetworkInterfaceIds?.length === 0) { + if (input[_NIIe] != null) { + const memberEntries = se_NetworkInterfaceIdList(input[_NIIe], context); + if (input[_NIIe]?.length === 0) { entries.NetworkInterfaceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49588,11 +49575,11 @@ const se_DescribeNetworkInterfacesRequest = (input: DescribeNetworkInterfacesReq entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -49602,9 +49589,9 @@ const se_DescribeNetworkInterfacesRequest = (input: DescribeNetworkInterfacesReq */ const se_DescribePlacementGroupsRequest = (input: DescribePlacementGroupsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49612,12 +49599,12 @@ const se_DescribePlacementGroupsRequest = (input: DescribePlacementGroupsRequest entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupNames != null) { - const memberEntries = se_PlacementGroupStringList(input.GroupNames, context); - if (input.GroupNames?.length === 0) { + if (input[_GNr] != null) { + const memberEntries = se_PlacementGroupStringList(input[_GNr], context); + if (input[_GNr]?.length === 0) { entries.GroupName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49625,9 +49612,9 @@ const se_DescribePlacementGroupsRequest = (input: DescribePlacementGroupsRequest entries[loc] = value; }); } - if (input.GroupIds != null) { - const memberEntries = se_PlacementGroupIdStringList(input.GroupIds, context); - if (input.GroupIds?.length === 0) { + if (input[_GIro] != null) { + const memberEntries = se_PlacementGroupIdStringList(input[_GIro], context); + if (input[_GIro]?.length === 0) { entries.GroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49643,12 +49630,12 @@ const se_DescribePlacementGroupsRequest = (input: DescribePlacementGroupsRequest */ const se_DescribePrefixListsRequest = (input: DescribePrefixListsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49656,15 +49643,15 @@ const se_DescribePrefixListsRequest = (input: DescribePrefixListsRequest, contex entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.PrefixListIds != null) { - const memberEntries = se_PrefixListResourceIdStringList(input.PrefixListIds, context); - if (input.PrefixListIds?.length === 0) { + if (input[_PLIr] != null) { + const memberEntries = se_PrefixListResourceIdStringList(input[_PLIr], context); + if (input[_PLIr]?.length === 0) { entries.PrefixListId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49680,12 +49667,12 @@ const se_DescribePrefixListsRequest = (input: DescribePrefixListsRequest, contex */ const se_DescribePrincipalIdFormatRequest = (input: DescribePrincipalIdFormatRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Resources != null) { - const memberEntries = se_ResourceList(input.Resources, context); - if (input.Resources?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_ResourceList(input[_R], context); + if (input[_R]?.length === 0) { entries.Resource = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49693,11 +49680,11 @@ const se_DescribePrincipalIdFormatRequest = (input: DescribePrincipalIdFormatReq entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -49707,9 +49694,9 @@ const se_DescribePrincipalIdFormatRequest = (input: DescribePrincipalIdFormatReq */ const se_DescribePublicIpv4PoolsRequest = (input: DescribePublicIpv4PoolsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PoolIds != null) { - const memberEntries = se_PublicIpv4PoolIdStringList(input.PoolIds, context); - if (input.PoolIds?.length === 0) { + if (input[_PIoo] != null) { + const memberEntries = se_PublicIpv4PoolIdStringList(input[_PIoo], context); + if (input[_PIoo]?.length === 0) { entries.PoolId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49717,15 +49704,15 @@ const se_DescribePublicIpv4PoolsRequest = (input: DescribePublicIpv4PoolsRequest entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49741,9 +49728,9 @@ const se_DescribePublicIpv4PoolsRequest = (input: DescribePublicIpv4PoolsRequest */ const se_DescribeRegionsRequest = (input: DescribeRegionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49751,9 +49738,9 @@ const se_DescribeRegionsRequest = (input: DescribeRegionsRequest, context: __Ser entries[loc] = value; }); } - if (input.RegionNames != null) { - const memberEntries = se_RegionNameStringList(input.RegionNames, context); - if (input.RegionNames?.length === 0) { + if (input[_RNe] != null) { + const memberEntries = se_RegionNameStringList(input[_RNe], context); + if (input[_RNe]?.length === 0) { entries.RegionName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49761,11 +49748,11 @@ const se_DescribeRegionsRequest = (input: DescribeRegionsRequest, context: __Ser entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.AllRegions != null) { - entries["AllRegions"] = input.AllRegions; + if (input[_ARll] != null) { + entries[_ARll] = input[_ARll]; } return entries; }; @@ -49778,9 +49765,9 @@ const se_DescribeReplaceRootVolumeTasksRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReplaceRootVolumeTaskIds != null) { - const memberEntries = se_ReplaceRootVolumeTaskIds(input.ReplaceRootVolumeTaskIds, context); - if (input.ReplaceRootVolumeTaskIds?.length === 0) { + if (input[_RRVTI] != null) { + const memberEntries = se_ReplaceRootVolumeTaskIds(input[_RRVTI], context); + if (input[_RRVTI]?.length === 0) { entries.ReplaceRootVolumeTaskId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49788,9 +49775,9 @@ const se_DescribeReplaceRootVolumeTasksRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49798,14 +49785,14 @@ const se_DescribeReplaceRootVolumeTasksRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -49818,9 +49805,9 @@ const se_DescribeReservedInstancesListingsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49828,11 +49815,11 @@ const se_DescribeReservedInstancesListingsRequest = ( entries[loc] = value; }); } - if (input.ReservedInstancesId != null) { - entries["ReservedInstancesId"] = input.ReservedInstancesId; + if (input[_RIIe] != null) { + entries[_RIIe] = input[_RIIe]; } - if (input.ReservedInstancesListingId != null) { - entries["ReservedInstancesListingId"] = input.ReservedInstancesListingId; + if (input[_RILI] != null) { + entries[_RILI] = input[_RILI]; } return entries; }; @@ -49845,9 +49832,9 @@ const se_DescribeReservedInstancesModificationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49855,9 +49842,9 @@ const se_DescribeReservedInstancesModificationsRequest = ( entries[loc] = value; }); } - if (input.ReservedInstancesModificationIds != null) { - const memberEntries = se_ReservedInstancesModificationIdStringList(input.ReservedInstancesModificationIds, context); - if (input.ReservedInstancesModificationIds?.length === 0) { + if (input[_RIMI] != null) { + const memberEntries = se_ReservedInstancesModificationIdStringList(input[_RIMI], context); + if (input[_RIMI]?.length === 0) { entries.ReservedInstancesModificationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49865,8 +49852,8 @@ const se_DescribeReservedInstancesModificationsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -49879,12 +49866,12 @@ const se_DescribeReservedInstancesOfferingsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49892,30 +49879,30 @@ const se_DescribeReservedInstancesOfferingsRequest = ( entries[loc] = value; }); } - if (input.IncludeMarketplace != null) { - entries["IncludeMarketplace"] = input.IncludeMarketplace; + if (input[_IM] != null) { + entries[_IM] = input[_IM]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.MaxDuration != null) { - entries["MaxDuration"] = input.MaxDuration; + if (input[_MD] != null) { + entries[_MD] = input[_MD]; } - if (input.MaxInstanceCount != null) { - entries["MaxInstanceCount"] = input.MaxInstanceCount; + if (input[_MIC] != null) { + entries[_MIC] = input[_MIC]; } - if (input.MinDuration != null) { - entries["MinDuration"] = input.MinDuration; + if (input[_MDi] != null) { + entries[_MDi] = input[_MDi]; } - if (input.OfferingClass != null) { - entries["OfferingClass"] = input.OfferingClass; + if (input[_OC] != null) { + entries[_OC] = input[_OC]; } - if (input.ProductDescription != null) { - entries["ProductDescription"] = input.ProductDescription; + if (input[_PDr] != null) { + entries[_PDr] = input[_PDr]; } - if (input.ReservedInstancesOfferingIds != null) { - const memberEntries = se_ReservedInstancesOfferingIdStringList(input.ReservedInstancesOfferingIds, context); - if (input.ReservedInstancesOfferingIds?.length === 0) { + if (input[_RIOI] != null) { + const memberEntries = se_ReservedInstancesOfferingIdStringList(input[_RIOI], context); + if (input[_RIOI]?.length === 0) { entries.ReservedInstancesOfferingId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49923,20 +49910,20 @@ const se_DescribeReservedInstancesOfferingsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceTenancy != null) { - entries["InstanceTenancy"] = input.InstanceTenancy; + if (input[_ITns] != null) { + entries[_ITns] = input[_ITns]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.OfferingType != null) { - entries["OfferingType"] = input.OfferingType; + if (input[_OT] != null) { + entries[_OT] = input[_OT]; } return entries; }; @@ -49946,9 +49933,9 @@ const se_DescribeReservedInstancesOfferingsRequest = ( */ const se_DescribeReservedInstancesRequest = (input: DescribeReservedInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49956,12 +49943,12 @@ const se_DescribeReservedInstancesRequest = (input: DescribeReservedInstancesReq entries[loc] = value; }); } - if (input.OfferingClass != null) { - entries["OfferingClass"] = input.OfferingClass; + if (input[_OC] != null) { + entries[_OC] = input[_OC]; } - if (input.ReservedInstancesIds != null) { - const memberEntries = se_ReservedInstancesIdStringList(input.ReservedInstancesIds, context); - if (input.ReservedInstancesIds?.length === 0) { + if (input[_RIIes] != null) { + const memberEntries = se_ReservedInstancesIdStringList(input[_RIIes], context); + if (input[_RIIes]?.length === 0) { entries.ReservedInstancesId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49969,11 +49956,11 @@ const se_DescribeReservedInstancesRequest = (input: DescribeReservedInstancesReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.OfferingType != null) { - entries["OfferingType"] = input.OfferingType; + if (input[_OT] != null) { + entries[_OT] = input[_OT]; } return entries; }; @@ -49983,9 +49970,9 @@ const se_DescribeReservedInstancesRequest = (input: DescribeReservedInstancesReq */ const se_DescribeRouteTablesRequest = (input: DescribeRouteTablesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -49993,12 +49980,12 @@ const se_DescribeRouteTablesRequest = (input: DescribeRouteTablesRequest, contex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.RouteTableIds != null) { - const memberEntries = se_RouteTableIdStringList(input.RouteTableIds, context); - if (input.RouteTableIds?.length === 0) { + if (input[_RTIo] != null) { + const memberEntries = se_RouteTableIdStringList(input[_RTIo], context); + if (input[_RTIo]?.length === 0) { entries.RouteTableId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50006,11 +49993,11 @@ const se_DescribeRouteTablesRequest = (input: DescribeRouteTablesRequest, contex entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -50023,12 +50010,12 @@ const se_DescribeScheduledInstanceAvailabilityRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50036,27 +50023,27 @@ const se_DescribeScheduledInstanceAvailabilityRequest = ( entries[loc] = value; }); } - if (input.FirstSlotStartTimeRange != null) { - const memberEntries = se_SlotDateTimeRangeRequest(input.FirstSlotStartTimeRange, context); + if (input[_FSSTR] != null) { + const memberEntries = se_SlotDateTimeRangeRequest(input[_FSSTR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `FirstSlotStartTimeRange.${key}`; entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.MaxSlotDurationInHours != null) { - entries["MaxSlotDurationInHours"] = input.MaxSlotDurationInHours; + if (input[_MSDIH] != null) { + entries[_MSDIH] = input[_MSDIH]; } - if (input.MinSlotDurationInHours != null) { - entries["MinSlotDurationInHours"] = input.MinSlotDurationInHours; + if (input[_MSDIHi] != null) { + entries[_MSDIHi] = input[_MSDIHi]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Recurrence != null) { - const memberEntries = se_ScheduledInstanceRecurrenceRequest(input.Recurrence, context); + if (input[_Rec] != null) { + const memberEntries = se_ScheduledInstanceRecurrenceRequest(input[_Rec], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Recurrence.${key}`; entries[loc] = value; @@ -50073,12 +50060,12 @@ const se_DescribeScheduledInstancesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50086,15 +50073,15 @@ const se_DescribeScheduledInstancesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.ScheduledInstanceIds != null) { - const memberEntries = se_ScheduledInstanceIdRequestSet(input.ScheduledInstanceIds, context); - if (input.ScheduledInstanceIds?.length === 0) { + if (input[_SIIc] != null) { + const memberEntries = se_ScheduledInstanceIdRequestSet(input[_SIIc], context); + if (input[_SIIc]?.length === 0) { entries.ScheduledInstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50102,8 +50089,8 @@ const se_DescribeScheduledInstancesRequest = ( entries[loc] = value; }); } - if (input.SlotStartTimeRange != null) { - const memberEntries = se_SlotStartTimeRangeRequest(input.SlotStartTimeRange, context); + if (input[_SSTR] != null) { + const memberEntries = se_SlotStartTimeRangeRequest(input[_SSTR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SlotStartTimeRange.${key}`; entries[loc] = value; @@ -50120,12 +50107,12 @@ const se_DescribeSecurityGroupReferencesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupId != null) { - const memberEntries = se_GroupIds(input.GroupId, context); - if (input.GroupId?.length === 0) { + if (input[_GIr] != null) { + const memberEntries = se_GroupIds(input[_GIr], context); + if (input[_GIr]?.length === 0) { entries.GroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50144,9 +50131,9 @@ const se_DescribeSecurityGroupRulesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50154,9 +50141,9 @@ const se_DescribeSecurityGroupRulesRequest = ( entries[loc] = value; }); } - if (input.SecurityGroupRuleIds != null) { - const memberEntries = se_SecurityGroupRuleIdList(input.SecurityGroupRuleIds, context); - if (input.SecurityGroupRuleIds?.length === 0) { + if (input[_SGRI] != null) { + const memberEntries = se_SecurityGroupRuleIdList(input[_SGRI], context); + if (input[_SGRI]?.length === 0) { entries.SecurityGroupRuleId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50164,14 +50151,14 @@ const se_DescribeSecurityGroupRulesRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -50181,9 +50168,9 @@ const se_DescribeSecurityGroupRulesRequest = ( */ const se_DescribeSecurityGroupsRequest = (input: DescribeSecurityGroupsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50191,9 +50178,9 @@ const se_DescribeSecurityGroupsRequest = (input: DescribeSecurityGroupsRequest, entries[loc] = value; }); } - if (input.GroupIds != null) { - const memberEntries = se_GroupIdStringList(input.GroupIds, context); - if (input.GroupIds?.length === 0) { + if (input[_GIro] != null) { + const memberEntries = se_GroupIdStringList(input[_GIro], context); + if (input[_GIro]?.length === 0) { entries.GroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50201,9 +50188,9 @@ const se_DescribeSecurityGroupsRequest = (input: DescribeSecurityGroupsRequest, entries[loc] = value; }); } - if (input.GroupNames != null) { - const memberEntries = se_GroupNameStringList(input.GroupNames, context); - if (input.GroupNames?.length === 0) { + if (input[_GNr] != null) { + const memberEntries = se_GroupNameStringList(input[_GNr], context); + if (input[_GNr]?.length === 0) { entries.GroupName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50211,14 +50198,14 @@ const se_DescribeSecurityGroupsRequest = (input: DescribeSecurityGroupsRequest, entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -50228,14 +50215,14 @@ const se_DescribeSecurityGroupsRequest = (input: DescribeSecurityGroupsRequest, */ const se_DescribeSnapshotAttributeRequest = (input: DescribeSnapshotAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50245,9 +50232,9 @@ const se_DescribeSnapshotAttributeRequest = (input: DescribeSnapshotAttributeReq */ const se_DescribeSnapshotsRequest = (input: DescribeSnapshotsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50255,15 +50242,15 @@ const se_DescribeSnapshotsRequest = (input: DescribeSnapshotsRequest, context: _ entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.OwnerIds != null) { - const memberEntries = se_OwnerStringList(input.OwnerIds, context); - if (input.OwnerIds?.length === 0) { + if (input[_OIw] != null) { + const memberEntries = se_OwnerStringList(input[_OIw], context); + if (input[_OIw]?.length === 0) { entries.Owner = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50271,9 +50258,9 @@ const se_DescribeSnapshotsRequest = (input: DescribeSnapshotsRequest, context: _ entries[loc] = value; }); } - if (input.RestorableByUserIds != null) { - const memberEntries = se_RestorableByStringList(input.RestorableByUserIds, context); - if (input.RestorableByUserIds?.length === 0) { + if (input[_RBUI] != null) { + const memberEntries = se_RestorableByStringList(input[_RBUI], context); + if (input[_RBUI]?.length === 0) { entries.RestorableBy = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50281,9 +50268,9 @@ const se_DescribeSnapshotsRequest = (input: DescribeSnapshotsRequest, context: _ entries[loc] = value; }); } - if (input.SnapshotIds != null) { - const memberEntries = se_SnapshotIdStringList(input.SnapshotIds, context); - if (input.SnapshotIds?.length === 0) { + if (input[_SIna] != null) { + const memberEntries = se_SnapshotIdStringList(input[_SIna], context); + if (input[_SIna]?.length === 0) { entries.SnapshotId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50291,8 +50278,8 @@ const se_DescribeSnapshotsRequest = (input: DescribeSnapshotsRequest, context: _ entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50305,9 +50292,9 @@ const se_DescribeSnapshotTierStatusRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50315,14 +50302,14 @@ const se_DescribeSnapshotTierStatusRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -50335,8 +50322,8 @@ const se_DescribeSpotDatafeedSubscriptionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50349,17 +50336,17 @@ const se_DescribeSpotFleetInstancesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.SpotFleetRequestId != null) { - entries["SpotFleetRequestId"] = input.SpotFleetRequestId; + if (input[_SFRIp] != null) { + entries[_SFRIp] = input[_SFRIp]; } return entries; }; @@ -50372,23 +50359,23 @@ const se_DescribeSpotFleetRequestHistoryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EventType != null) { - entries["EventType"] = input.EventType; + if (input[_ETv] != null) { + entries[_ETv] = input[_ETv]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.SpotFleetRequestId != null) { - entries["SpotFleetRequestId"] = input.SpotFleetRequestId; + if (input[_SFRIp] != null) { + entries[_SFRIp] = input[_SFRIp]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -50398,18 +50385,18 @@ const se_DescribeSpotFleetRequestHistoryRequest = ( */ const se_DescribeSpotFleetRequestsRequest = (input: DescribeSpotFleetRequestsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.SpotFleetRequestIds != null) { - const memberEntries = se_SpotFleetRequestIdList(input.SpotFleetRequestIds, context); - if (input.SpotFleetRequestIds?.length === 0) { + if (input[_SFRI] != null) { + const memberEntries = se_SpotFleetRequestIdList(input[_SFRI], context); + if (input[_SFRI]?.length === 0) { entries.SpotFleetRequestId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50428,9 +50415,9 @@ const se_DescribeSpotInstanceRequestsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50438,12 +50425,12 @@ const se_DescribeSpotInstanceRequestsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SpotInstanceRequestIds != null) { - const memberEntries = se_SpotInstanceRequestIdList(input.SpotInstanceRequestIds, context); - if (input.SpotInstanceRequestIds?.length === 0) { + if (input[_SIRI] != null) { + const memberEntries = se_SpotInstanceRequestIdList(input[_SIRI], context); + if (input[_SIRI]?.length === 0) { entries.SpotInstanceRequestId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50451,11 +50438,11 @@ const se_DescribeSpotInstanceRequestsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -50465,9 +50452,9 @@ const se_DescribeSpotInstanceRequestsRequest = ( */ const se_DescribeSpotPriceHistoryRequest = (input: DescribeSpotPriceHistoryRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50475,18 +50462,18 @@ const se_DescribeSpotPriceHistoryRequest = (input: DescribeSpotPriceHistoryReque entries[loc] = value; }); } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ETn] != null) { + entries[_ETn] = input[_ETn].toISOString().split(".")[0] + "Z"; } - if (input.InstanceTypes != null) { - const memberEntries = se_InstanceTypeList(input.InstanceTypes, context); - if (input.InstanceTypes?.length === 0) { + if (input[_ITnst] != null) { + const memberEntries = se_InstanceTypeList(input[_ITnst], context); + if (input[_ITnst]?.length === 0) { entries.InstanceType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50494,15 +50481,15 @@ const se_DescribeSpotPriceHistoryRequest = (input: DescribeSpotPriceHistoryReque entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.ProductDescriptions != null) { - const memberEntries = se_ProductDescriptionList(input.ProductDescriptions, context); - if (input.ProductDescriptions?.length === 0) { + if (input[_PDro] != null) { + const memberEntries = se_ProductDescriptionList(input[_PDro], context); + if (input[_PDro]?.length === 0) { entries.ProductDescription = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50510,8 +50497,8 @@ const se_DescribeSpotPriceHistoryRequest = (input: DescribeSpotPriceHistoryReque entries[loc] = value; }); } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -50524,17 +50511,17 @@ const se_DescribeStaleSecurityGroupsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -50544,9 +50531,9 @@ const se_DescribeStaleSecurityGroupsRequest = ( */ const se_DescribeStoreImageTasksRequest = (input: DescribeStoreImageTasksRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageIds != null) { - const memberEntries = se_ImageIdList(input.ImageIds, context); - if (input.ImageIds?.length === 0) { + if (input[_IImag] != null) { + const memberEntries = se_ImageIdList(input[_IImag], context); + if (input[_IImag]?.length === 0) { entries.ImageId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50554,12 +50541,12 @@ const se_DescribeStoreImageTasksRequest = (input: DescribeStoreImageTasksRequest entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50567,11 +50554,11 @@ const se_DescribeStoreImageTasksRequest = (input: DescribeStoreImageTasksRequest entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -50581,9 +50568,9 @@ const se_DescribeStoreImageTasksRequest = (input: DescribeStoreImageTasksRequest */ const se_DescribeSubnetsRequest = (input: DescribeSubnetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50591,9 +50578,9 @@ const se_DescribeSubnetsRequest = (input: DescribeSubnetsRequest, context: __Ser entries[loc] = value; }); } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdStringList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdStringList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50601,14 +50588,14 @@ const se_DescribeSubnetsRequest = (input: DescribeSubnetsRequest, context: __Ser entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -50618,12 +50605,12 @@ const se_DescribeSubnetsRequest = (input: DescribeSubnetsRequest, context: __Ser */ const se_DescribeTagsRequest = (input: DescribeTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50631,11 +50618,11 @@ const se_DescribeTagsRequest = (input: DescribeTagsRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -50648,9 +50635,9 @@ const se_DescribeTrafficMirrorFiltersRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorFilterIds != null) { - const memberEntries = se_TrafficMirrorFilterIdList(input.TrafficMirrorFilterIds, context); - if (input.TrafficMirrorFilterIds?.length === 0) { + if (input[_TMFIr] != null) { + const memberEntries = se_TrafficMirrorFilterIdList(input[_TMFIr], context); + if (input[_TMFIr]?.length === 0) { entries.TrafficMirrorFilterId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50658,12 +50645,12 @@ const se_DescribeTrafficMirrorFiltersRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50671,11 +50658,11 @@ const se_DescribeTrafficMirrorFiltersRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -50688,9 +50675,9 @@ const se_DescribeTrafficMirrorSessionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorSessionIds != null) { - const memberEntries = se_TrafficMirrorSessionIdList(input.TrafficMirrorSessionIds, context); - if (input.TrafficMirrorSessionIds?.length === 0) { + if (input[_TMSIr] != null) { + const memberEntries = se_TrafficMirrorSessionIdList(input[_TMSIr], context); + if (input[_TMSIr]?.length === 0) { entries.TrafficMirrorSessionId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50698,12 +50685,12 @@ const se_DescribeTrafficMirrorSessionsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50711,11 +50698,11 @@ const se_DescribeTrafficMirrorSessionsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -50728,9 +50715,9 @@ const se_DescribeTrafficMirrorTargetsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorTargetIds != null) { - const memberEntries = se_TrafficMirrorTargetIdList(input.TrafficMirrorTargetIds, context); - if (input.TrafficMirrorTargetIds?.length === 0) { + if (input[_TMTIr] != null) { + const memberEntries = se_TrafficMirrorTargetIdList(input[_TMTIr], context); + if (input[_TMTIr]?.length === 0) { entries.TrafficMirrorTargetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50738,12 +50725,12 @@ const se_DescribeTrafficMirrorTargetsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50751,11 +50738,11 @@ const se_DescribeTrafficMirrorTargetsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -50768,9 +50755,9 @@ const se_DescribeTransitGatewayAttachmentsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentIds != null) { - const memberEntries = se_TransitGatewayAttachmentIdStringList(input.TransitGatewayAttachmentIds, context); - if (input.TransitGatewayAttachmentIds?.length === 0) { + if (input[_TGAIr] != null) { + const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context); + if (input[_TGAIr]?.length === 0) { entries.TransitGatewayAttachmentIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50778,9 +50765,9 @@ const se_DescribeTransitGatewayAttachmentsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50788,14 +50775,14 @@ const se_DescribeTransitGatewayAttachmentsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50808,9 +50795,9 @@ const se_DescribeTransitGatewayConnectPeersRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayConnectPeerIds != null) { - const memberEntries = se_TransitGatewayConnectPeerIdStringList(input.TransitGatewayConnectPeerIds, context); - if (input.TransitGatewayConnectPeerIds?.length === 0) { + if (input[_TGCPIr] != null) { + const memberEntries = se_TransitGatewayConnectPeerIdStringList(input[_TGCPIr], context); + if (input[_TGCPIr]?.length === 0) { entries.TransitGatewayConnectPeerIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50818,9 +50805,9 @@ const se_DescribeTransitGatewayConnectPeersRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50828,14 +50815,14 @@ const se_DescribeTransitGatewayConnectPeersRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50848,9 +50835,9 @@ const se_DescribeTransitGatewayConnectsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentIds != null) { - const memberEntries = se_TransitGatewayAttachmentIdStringList(input.TransitGatewayAttachmentIds, context); - if (input.TransitGatewayAttachmentIds?.length === 0) { + if (input[_TGAIr] != null) { + const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context); + if (input[_TGAIr]?.length === 0) { entries.TransitGatewayAttachmentIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50858,9 +50845,9 @@ const se_DescribeTransitGatewayConnectsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50868,14 +50855,14 @@ const se_DescribeTransitGatewayConnectsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50888,9 +50875,9 @@ const se_DescribeTransitGatewayMulticastDomainsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainIds != null) { - const memberEntries = se_TransitGatewayMulticastDomainIdStringList(input.TransitGatewayMulticastDomainIds, context); - if (input.TransitGatewayMulticastDomainIds?.length === 0) { + if (input[_TGMDIr] != null) { + const memberEntries = se_TransitGatewayMulticastDomainIdStringList(input[_TGMDIr], context); + if (input[_TGMDIr]?.length === 0) { entries.TransitGatewayMulticastDomainIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50898,9 +50885,9 @@ const se_DescribeTransitGatewayMulticastDomainsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50908,14 +50895,14 @@ const se_DescribeTransitGatewayMulticastDomainsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50928,9 +50915,9 @@ const se_DescribeTransitGatewayPeeringAttachmentsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentIds != null) { - const memberEntries = se_TransitGatewayAttachmentIdStringList(input.TransitGatewayAttachmentIds, context); - if (input.TransitGatewayAttachmentIds?.length === 0) { + if (input[_TGAIr] != null) { + const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context); + if (input[_TGAIr]?.length === 0) { entries.TransitGatewayAttachmentIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50938,9 +50925,9 @@ const se_DescribeTransitGatewayPeeringAttachmentsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50948,14 +50935,14 @@ const se_DescribeTransitGatewayPeeringAttachmentsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -50968,9 +50955,9 @@ const se_DescribeTransitGatewayPolicyTablesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayPolicyTableIds != null) { - const memberEntries = se_TransitGatewayPolicyTableIdStringList(input.TransitGatewayPolicyTableIds, context); - if (input.TransitGatewayPolicyTableIds?.length === 0) { + if (input[_TGPTIr] != null) { + const memberEntries = se_TransitGatewayPolicyTableIdStringList(input[_TGPTIr], context); + if (input[_TGPTIr]?.length === 0) { entries.TransitGatewayPolicyTableIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50978,9 +50965,9 @@ const se_DescribeTransitGatewayPolicyTablesRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -50988,14 +50975,14 @@ const se_DescribeTransitGatewayPolicyTablesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51008,12 +50995,9 @@ const se_DescribeTransitGatewayRouteTableAnnouncementsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableAnnouncementIds != null) { - const memberEntries = se_TransitGatewayRouteTableAnnouncementIdStringList( - input.TransitGatewayRouteTableAnnouncementIds, - context - ); - if (input.TransitGatewayRouteTableAnnouncementIds?.length === 0) { + if (input[_TGRTAIr] != null) { + const memberEntries = se_TransitGatewayRouteTableAnnouncementIdStringList(input[_TGRTAIr], context); + if (input[_TGRTAIr]?.length === 0) { entries.TransitGatewayRouteTableAnnouncementIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51021,9 +51005,9 @@ const se_DescribeTransitGatewayRouteTableAnnouncementsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51031,14 +51015,14 @@ const se_DescribeTransitGatewayRouteTableAnnouncementsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51051,9 +51035,9 @@ const se_DescribeTransitGatewayRouteTablesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableIds != null) { - const memberEntries = se_TransitGatewayRouteTableIdStringList(input.TransitGatewayRouteTableIds, context); - if (input.TransitGatewayRouteTableIds?.length === 0) { + if (input[_TGRTIr] != null) { + const memberEntries = se_TransitGatewayRouteTableIdStringList(input[_TGRTIr], context); + if (input[_TGRTIr]?.length === 0) { entries.TransitGatewayRouteTableIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51061,9 +51045,9 @@ const se_DescribeTransitGatewayRouteTablesRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51071,14 +51055,14 @@ const se_DescribeTransitGatewayRouteTablesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51088,9 +51072,9 @@ const se_DescribeTransitGatewayRouteTablesRequest = ( */ const se_DescribeTransitGatewaysRequest = (input: DescribeTransitGatewaysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TransitGatewayIds != null) { - const memberEntries = se_TransitGatewayIdStringList(input.TransitGatewayIds, context); - if (input.TransitGatewayIds?.length === 0) { + if (input[_TGIr] != null) { + const memberEntries = se_TransitGatewayIdStringList(input[_TGIr], context); + if (input[_TGIr]?.length === 0) { entries.TransitGatewayIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51098,9 +51082,9 @@ const se_DescribeTransitGatewaysRequest = (input: DescribeTransitGatewaysRequest entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51108,14 +51092,14 @@ const se_DescribeTransitGatewaysRequest = (input: DescribeTransitGatewaysRequest entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51128,9 +51112,9 @@ const se_DescribeTransitGatewayVpcAttachmentsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentIds != null) { - const memberEntries = se_TransitGatewayAttachmentIdStringList(input.TransitGatewayAttachmentIds, context); - if (input.TransitGatewayAttachmentIds?.length === 0) { + if (input[_TGAIr] != null) { + const memberEntries = se_TransitGatewayAttachmentIdStringList(input[_TGAIr], context); + if (input[_TGAIr]?.length === 0) { entries.TransitGatewayAttachmentIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51138,9 +51122,9 @@ const se_DescribeTransitGatewayVpcAttachmentsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51148,14 +51132,14 @@ const se_DescribeTransitGatewayVpcAttachmentsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51168,9 +51152,9 @@ const se_DescribeTrunkInterfaceAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociationIds != null) { - const memberEntries = se_TrunkInterfaceAssociationIdList(input.AssociationIds, context); - if (input.AssociationIds?.length === 0) { + if (input[_AIs] != null) { + const memberEntries = se_TrunkInterfaceAssociationIdList(input[_AIs], context); + if (input[_AIs]?.length === 0) { entries.AssociationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51178,12 +51162,12 @@ const se_DescribeTrunkInterfaceAssociationsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51191,11 +51175,11 @@ const se_DescribeTrunkInterfaceAssociationsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -51208,9 +51192,9 @@ const se_DescribeVerifiedAccessEndpointsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessEndpointIds != null) { - const memberEntries = se_VerifiedAccessEndpointIdList(input.VerifiedAccessEndpointIds, context); - if (input.VerifiedAccessEndpointIds?.length === 0) { + if (input[_VAEIe] != null) { + const memberEntries = se_VerifiedAccessEndpointIdList(input[_VAEIe], context); + if (input[_VAEIe]?.length === 0) { entries.VerifiedAccessEndpointId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51218,21 +51202,21 @@ const se_DescribeVerifiedAccessEndpointsRequest = ( entries[loc] = value; }); } - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.VerifiedAccessGroupId != null) { - entries["VerifiedAccessGroupId"] = input.VerifiedAccessGroupId; + if (input[_VAGI] != null) { + entries[_VAGI] = input[_VAGI]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51240,8 +51224,8 @@ const se_DescribeVerifiedAccessEndpointsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51254,9 +51238,9 @@ const se_DescribeVerifiedAccessGroupsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessGroupIds != null) { - const memberEntries = se_VerifiedAccessGroupIdList(input.VerifiedAccessGroupIds, context); - if (input.VerifiedAccessGroupIds?.length === 0) { + if (input[_VAGIe] != null) { + const memberEntries = se_VerifiedAccessGroupIdList(input[_VAGIe], context); + if (input[_VAGIe]?.length === 0) { entries.VerifiedAccessGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51264,18 +51248,18 @@ const se_DescribeVerifiedAccessGroupsRequest = ( entries[loc] = value; }); } - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51283,8 +51267,8 @@ const se_DescribeVerifiedAccessGroupsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51297,9 +51281,9 @@ const se_DescribeVerifiedAccessInstanceLoggingConfigurationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceIds != null) { - const memberEntries = se_VerifiedAccessInstanceIdList(input.VerifiedAccessInstanceIds, context); - if (input.VerifiedAccessInstanceIds?.length === 0) { + if (input[_VAIIe] != null) { + const memberEntries = se_VerifiedAccessInstanceIdList(input[_VAIIe], context); + if (input[_VAIIe]?.length === 0) { entries.VerifiedAccessInstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51307,15 +51291,15 @@ const se_DescribeVerifiedAccessInstanceLoggingConfigurationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51323,8 +51307,8 @@ const se_DescribeVerifiedAccessInstanceLoggingConfigurationsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51337,9 +51321,9 @@ const se_DescribeVerifiedAccessInstancesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceIds != null) { - const memberEntries = se_VerifiedAccessInstanceIdList(input.VerifiedAccessInstanceIds, context); - if (input.VerifiedAccessInstanceIds?.length === 0) { + if (input[_VAIIe] != null) { + const memberEntries = se_VerifiedAccessInstanceIdList(input[_VAIIe], context); + if (input[_VAIIe]?.length === 0) { entries.VerifiedAccessInstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51347,15 +51331,15 @@ const se_DescribeVerifiedAccessInstancesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51363,8 +51347,8 @@ const se_DescribeVerifiedAccessInstancesRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51377,9 +51361,9 @@ const se_DescribeVerifiedAccessTrustProvidersRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessTrustProviderIds != null) { - const memberEntries = se_VerifiedAccessTrustProviderIdList(input.VerifiedAccessTrustProviderIds, context); - if (input.VerifiedAccessTrustProviderIds?.length === 0) { + if (input[_VATPIe] != null) { + const memberEntries = se_VerifiedAccessTrustProviderIdList(input[_VATPIe], context); + if (input[_VATPIe]?.length === 0) { entries.VerifiedAccessTrustProviderId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51387,15 +51371,15 @@ const se_DescribeVerifiedAccessTrustProvidersRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51403,8 +51387,8 @@ const se_DescribeVerifiedAccessTrustProvidersRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51414,14 +51398,14 @@ const se_DescribeVerifiedAccessTrustProvidersRequest = ( */ const se_DescribeVolumeAttributeRequest = (input: DescribeVolumeAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51434,12 +51418,12 @@ const se_DescribeVolumesModificationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VolumeIds != null) { - const memberEntries = se_VolumeIdStringList(input.VolumeIds, context); - if (input.VolumeIds?.length === 0) { + if (input[_VIol] != null) { + const memberEntries = se_VolumeIdStringList(input[_VIol], context); + if (input[_VIol]?.length === 0) { entries.VolumeId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51447,9 +51431,9 @@ const se_DescribeVolumesModificationsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51457,11 +51441,11 @@ const se_DescribeVolumesModificationsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -51471,9 +51455,9 @@ const se_DescribeVolumesModificationsRequest = ( */ const se_DescribeVolumesRequest = (input: DescribeVolumesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51481,9 +51465,9 @@ const se_DescribeVolumesRequest = (input: DescribeVolumesRequest, context: __Ser entries[loc] = value; }); } - if (input.VolumeIds != null) { - const memberEntries = se_VolumeIdStringList(input.VolumeIds, context); - if (input.VolumeIds?.length === 0) { + if (input[_VIol] != null) { + const memberEntries = se_VolumeIdStringList(input[_VIol], context); + if (input[_VIol]?.length === 0) { entries.VolumeId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51491,14 +51475,14 @@ const se_DescribeVolumesRequest = (input: DescribeVolumesRequest, context: __Ser entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -51508,9 +51492,9 @@ const se_DescribeVolumesRequest = (input: DescribeVolumesRequest, context: __Ser */ const se_DescribeVolumeStatusRequest = (input: DescribeVolumeStatusRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51518,15 +51502,15 @@ const se_DescribeVolumeStatusRequest = (input: DescribeVolumeStatusRequest, cont entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.VolumeIds != null) { - const memberEntries = se_VolumeIdStringList(input.VolumeIds, context); - if (input.VolumeIds?.length === 0) { + if (input[_VIol] != null) { + const memberEntries = se_VolumeIdStringList(input[_VIol], context); + if (input[_VIol]?.length === 0) { entries.VolumeId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51534,8 +51518,8 @@ const se_DescribeVolumeStatusRequest = (input: DescribeVolumeStatusRequest, cont entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51545,14 +51529,14 @@ const se_DescribeVolumeStatusRequest = (input: DescribeVolumeStatusRequest, cont */ const se_DescribeVpcAttributeRequest = (input: DescribeVpcAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51565,15 +51549,15 @@ const se_DescribeVpcClassicLinkDnsSupportRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.VpcIds != null) { - const memberEntries = se_VpcClassicLinkIdList(input.VpcIds, context); - if (input.VpcIds?.length === 0) { + if (input[_VIp] != null) { + const memberEntries = se_VpcClassicLinkIdList(input[_VIp], context); + if (input[_VIp]?.length === 0) { entries.VpcIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51589,9 +51573,9 @@ const se_DescribeVpcClassicLinkDnsSupportRequest = ( */ const se_DescribeVpcClassicLinkRequest = (input: DescribeVpcClassicLinkRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51599,12 +51583,12 @@ const se_DescribeVpcClassicLinkRequest = (input: DescribeVpcClassicLinkRequest, entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcIds != null) { - const memberEntries = se_VpcClassicLinkIdList(input.VpcIds, context); - if (input.VpcIds?.length === 0) { + if (input[_VIp] != null) { + const memberEntries = se_VpcClassicLinkIdList(input[_VIp], context); + if (input[_VIp]?.length === 0) { entries.VpcId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51623,15 +51607,15 @@ const se_DescribeVpcEndpointConnectionNotificationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ConnectionNotificationId != null) { - entries["ConnectionNotificationId"] = input.ConnectionNotificationId; + if (input[_CNIon] != null) { + entries[_CNIon] = input[_CNIon]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51639,11 +51623,11 @@ const se_DescribeVpcEndpointConnectionNotificationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -51656,12 +51640,12 @@ const se_DescribeVpcEndpointConnectionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51669,11 +51653,11 @@ const se_DescribeVpcEndpointConnectionsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -51686,12 +51670,12 @@ const se_DescribeVpcEndpointServiceConfigurationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceIds != null) { - const memberEntries = se_VpcEndpointServiceIdList(input.ServiceIds, context); - if (input.ServiceIds?.length === 0) { + if (input[_SIer] != null) { + const memberEntries = se_VpcEndpointServiceIdList(input[_SIer], context); + if (input[_SIer]?.length === 0) { entries.ServiceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51699,9 +51683,9 @@ const se_DescribeVpcEndpointServiceConfigurationsRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51709,11 +51693,11 @@ const se_DescribeVpcEndpointServiceConfigurationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -51726,15 +51710,15 @@ const se_DescribeVpcEndpointServicePermissionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51742,11 +51726,11 @@ const se_DescribeVpcEndpointServicePermissionsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -51759,12 +51743,12 @@ const se_DescribeVpcEndpointServicesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceNames != null) { - const memberEntries = se_ValueStringList(input.ServiceNames, context); - if (input.ServiceNames?.length === 0) { + if (input[_SNer] != null) { + const memberEntries = se_ValueStringList(input[_SNer], context); + if (input[_SNer]?.length === 0) { entries.ServiceName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51772,9 +51756,9 @@ const se_DescribeVpcEndpointServicesRequest = ( entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51782,11 +51766,11 @@ const se_DescribeVpcEndpointServicesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -51796,12 +51780,12 @@ const se_DescribeVpcEndpointServicesRequest = ( */ const se_DescribeVpcEndpointsRequest = (input: DescribeVpcEndpointsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcEndpointIds != null) { - const memberEntries = se_VpcEndpointIdList(input.VpcEndpointIds, context); - if (input.VpcEndpointIds?.length === 0) { + if (input[_VEI] != null) { + const memberEntries = se_VpcEndpointIdList(input[_VEI], context); + if (input[_VEI]?.length === 0) { entries.VpcEndpointId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51809,9 +51793,9 @@ const se_DescribeVpcEndpointsRequest = (input: DescribeVpcEndpointsRequest, cont entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51819,11 +51803,11 @@ const se_DescribeVpcEndpointsRequest = (input: DescribeVpcEndpointsRequest, cont entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -51836,9 +51820,9 @@ const se_DescribeVpcPeeringConnectionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51846,12 +51830,12 @@ const se_DescribeVpcPeeringConnectionsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcPeeringConnectionIds != null) { - const memberEntries = se_VpcPeeringConnectionIdList(input.VpcPeeringConnectionIds, context); - if (input.VpcPeeringConnectionIds?.length === 0) { + if (input[_VPCIp] != null) { + const memberEntries = se_VpcPeeringConnectionIdList(input[_VPCIp], context); + if (input[_VPCIp]?.length === 0) { entries.VpcPeeringConnectionId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51859,11 +51843,11 @@ const se_DescribeVpcPeeringConnectionsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -51873,9 +51857,9 @@ const se_DescribeVpcPeeringConnectionsRequest = ( */ const se_DescribeVpcsRequest = (input: DescribeVpcsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51883,9 +51867,9 @@ const se_DescribeVpcsRequest = (input: DescribeVpcsRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.VpcIds != null) { - const memberEntries = se_VpcIdStringList(input.VpcIds, context); - if (input.VpcIds?.length === 0) { + if (input[_VIp] != null) { + const memberEntries = se_VpcIdStringList(input[_VIp], context); + if (input[_VIp]?.length === 0) { entries.VpcId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51893,14 +51877,14 @@ const se_DescribeVpcsRequest = (input: DescribeVpcsRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -51910,9 +51894,9 @@ const se_DescribeVpcsRequest = (input: DescribeVpcsRequest, context: __SerdeCont */ const se_DescribeVpnConnectionsRequest = (input: DescribeVpnConnectionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51920,9 +51904,9 @@ const se_DescribeVpnConnectionsRequest = (input: DescribeVpnConnectionsRequest, entries[loc] = value; }); } - if (input.VpnConnectionIds != null) { - const memberEntries = se_VpnConnectionIdStringList(input.VpnConnectionIds, context); - if (input.VpnConnectionIds?.length === 0) { + if (input[_VCIp] != null) { + const memberEntries = se_VpnConnectionIdStringList(input[_VCIp], context); + if (input[_VCIp]?.length === 0) { entries.VpnConnectionId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51930,8 +51914,8 @@ const se_DescribeVpnConnectionsRequest = (input: DescribeVpnConnectionsRequest, entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51941,9 +51925,9 @@ const se_DescribeVpnConnectionsRequest = (input: DescribeVpnConnectionsRequest, */ const se_DescribeVpnGatewaysRequest = (input: DescribeVpnGatewaysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51951,9 +51935,9 @@ const se_DescribeVpnGatewaysRequest = (input: DescribeVpnGatewaysRequest, contex entries[loc] = value; }); } - if (input.VpnGatewayIds != null) { - const memberEntries = se_VpnGatewayIdStringList(input.VpnGatewayIds, context); - if (input.VpnGatewayIds?.length === 0) { + if (input[_VGIp] != null) { + const memberEntries = se_VpnGatewayIdStringList(input[_VGIp], context); + if (input[_VGIp]?.length === 0) { entries.VpnGatewayId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -51961,8 +51945,8 @@ const se_DescribeVpnGatewaysRequest = (input: DescribeVpnGatewaysRequest, contex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -51972,14 +51956,14 @@ const se_DescribeVpnGatewaysRequest = (input: DescribeVpnGatewaysRequest, contex */ const se_DestinationOptionsRequest = (input: DestinationOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.FileFormat != null) { - entries["FileFormat"] = input.FileFormat; + if (input[_FF] != null) { + entries[_FF] = input[_FF]; } - if (input.HiveCompatiblePartitions != null) { - entries["HiveCompatiblePartitions"] = input.HiveCompatiblePartitions; + if (input[_HCP] != null) { + entries[_HCP] = input[_HCP]; } - if (input.PerHourPartition != null) { - entries["PerHourPartition"] = input.PerHourPartition; + if (input[_PHP] != null) { + entries[_PHP] = input[_PHP]; } return entries; }; @@ -51989,14 +51973,14 @@ const se_DestinationOptionsRequest = (input: DestinationOptionsRequest, context: */ const se_DetachClassicLinkVpcRequest = (input: DetachClassicLinkVpcRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -52006,14 +51990,14 @@ const se_DetachClassicLinkVpcRequest = (input: DetachClassicLinkVpcRequest, cont */ const se_DetachInternetGatewayRequest = (input: DetachInternetGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InternetGatewayId != null) { - entries["InternetGatewayId"] = input.InternetGatewayId; + if (input[_IGI] != null) { + entries[_IGI] = input[_IGI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -52023,14 +52007,14 @@ const se_DetachInternetGatewayRequest = (input: DetachInternetGatewayRequest, co */ const se_DetachNetworkInterfaceRequest = (input: DetachNetworkInterfaceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AttachmentId != null) { - entries["AttachmentId"] = input.AttachmentId; + if (input[_AIt] != null) { + entries[_AIt] = input[_AIt]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } return entries; }; @@ -52043,20 +52027,20 @@ const se_DetachVerifiedAccessTrustProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.VerifiedAccessTrustProviderId != null) { - entries["VerifiedAccessTrustProviderId"] = input.VerifiedAccessTrustProviderId; + if (input[_VATPI] != null) { + entries[_VATPI] = input[_VATPI]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52066,20 +52050,20 @@ const se_DetachVerifiedAccessTrustProviderRequest = ( */ const se_DetachVolumeRequest = (input: DetachVolumeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Device != null) { - entries["Device"] = input.Device; + if (input[_Dev] != null) { + entries[_Dev] = input[_Dev]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52089,14 +52073,14 @@ const se_DetachVolumeRequest = (input: DetachVolumeRequest, context: __SerdeCont */ const se_DetachVpnGatewayRequest = (input: DetachVpnGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.VpnGatewayId != null) { - entries["VpnGatewayId"] = input.VpnGatewayId; + if (input[_VGI] != null) { + entries[_VGI] = input[_VGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52125,8 +52109,8 @@ const se_DirectoryServiceAuthenticationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DirectoryId != null) { - entries["DirectoryId"] = input.DirectoryId; + if (input[_DIir] != null) { + entries[_DIir] = input[_DIir]; } return entries; }; @@ -52136,11 +52120,11 @@ const se_DirectoryServiceAuthenticationRequest = ( */ const se_DisableAddressTransferRequest = (input: DisableAddressTransferRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AIl] != null) { + entries[_AIl] = input[_AIl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52153,20 +52137,20 @@ const se_DisableAwsNetworkPerformanceMetricSubscriptionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Destination != null) { - entries["Destination"] = input.Destination; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Metric != null) { - entries["Metric"] = input.Metric; + if (input[_Met] != null) { + entries[_Met] = input[_Met]; } - if (input.Statistic != null) { - entries["Statistic"] = input.Statistic; + if (input[_Sta] != null) { + entries[_Sta] = input[_Sta]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52179,8 +52163,8 @@ const se_DisableEbsEncryptionByDefaultRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52190,14 +52174,14 @@ const se_DisableEbsEncryptionByDefaultRequest = ( */ const se_DisableFastLaunchRequest = (input: DisableFastLaunchRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52210,9 +52194,9 @@ const se_DisableFastSnapshotRestoresRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZoneStringList(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZv] != null) { + const memberEntries = se_AvailabilityZoneStringList(input[_AZv], context); + if (input[_AZv]?.length === 0) { entries.AvailabilityZone = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -52220,9 +52204,9 @@ const se_DisableFastSnapshotRestoresRequest = ( entries[loc] = value; }); } - if (input.SourceSnapshotIds != null) { - const memberEntries = se_SnapshotIdStringList(input.SourceSnapshotIds, context); - if (input.SourceSnapshotIds?.length === 0) { + if (input[_SSIo] != null) { + const memberEntries = se_SnapshotIdStringList(input[_SSIo], context); + if (input[_SSIo]?.length === 0) { entries.SourceSnapshotId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -52230,8 +52214,8 @@ const se_DisableFastSnapshotRestoresRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52244,8 +52228,8 @@ const se_DisableImageBlockPublicAccessRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52255,11 +52239,11 @@ const se_DisableImageBlockPublicAccessRequest = ( */ const se_DisableImageDeprecationRequest = (input: DisableImageDeprecationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52269,11 +52253,11 @@ const se_DisableImageDeprecationRequest = (input: DisableImageDeprecationRequest */ const se_DisableImageRequest = (input: DisableImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52286,11 +52270,11 @@ const se_DisableIpamOrganizationAdminAccountRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.DelegatedAdminAccountId != null) { - entries["DelegatedAdminAccountId"] = input.DelegatedAdminAccountId; + if (input[_DAAI] != null) { + entries[_DAAI] = input[_DAAI]; } return entries; }; @@ -52303,8 +52287,8 @@ const se_DisableSerialConsoleAccessRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52317,8 +52301,8 @@ const se_DisableSnapshotBlockPublicAccessRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52331,17 +52315,17 @@ const se_DisableTransitGatewayRouteTablePropagationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TransitGatewayRouteTableAnnouncementId != null) { - entries["TransitGatewayRouteTableAnnouncementId"] = input.TransitGatewayRouteTableAnnouncementId; + if (input[_TGRTAI] != null) { + entries[_TGRTAI] = input[_TGRTAI]; } return entries; }; @@ -52354,14 +52338,14 @@ const se_DisableVgwRoutePropagationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GatewayId != null) { - entries["GatewayId"] = input.GatewayId; + if (input[_GI] != null) { + entries[_GI] = input[_GI]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52374,8 +52358,8 @@ const se_DisableVpcClassicLinkDnsSupportRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -52385,11 +52369,11 @@ const se_DisableVpcClassicLinkDnsSupportRequest = ( */ const se_DisableVpcClassicLinkRequest = (input: DisableVpcClassicLinkRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -52399,14 +52383,14 @@ const se_DisableVpcClassicLinkRequest = (input: DisableVpcClassicLinkRequest, co */ const se_DisassociateAddressRequest = (input: DisassociateAddressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } - if (input.PublicIp != null) { - entries["PublicIp"] = input.PublicIp; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52419,14 +52403,14 @@ const se_DisassociateClientVpnTargetNetworkRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52439,14 +52423,14 @@ const se_DisassociateEnclaveCertificateIamRoleRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CertificateArn != null) { - entries["CertificateArn"] = input.CertificateArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RAo] != null) { + entries[_RAo] = input[_RAo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52459,8 +52443,8 @@ const se_DisassociateIamInstanceProfileRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } return entries; }; @@ -52473,14 +52457,14 @@ const se_DisassociateInstanceEventWindowRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceEventWindowId != null) { - entries["InstanceEventWindowId"] = input.InstanceEventWindowId; + if (input[_IEWI] != null) { + entries[_IEWI] = input[_IEWI]; } - if (input.AssociationTarget != null) { - const memberEntries = se_InstanceEventWindowDisassociationRequest(input.AssociationTarget, context); + if (input[_AT] != null) { + const memberEntries = se_InstanceEventWindowDisassociationRequest(input[_AT], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AssociationTarget.${key}`; entries[loc] = value; @@ -52494,14 +52478,14 @@ const se_DisassociateInstanceEventWindowRequest = ( */ const se_DisassociateIpamByoasnRequest = (input: DisassociateIpamByoasnRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Asn != null) { - entries["Asn"] = input.Asn; + if (input[_As] != null) { + entries[_As] = input[_As]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } return entries; }; @@ -52514,11 +52498,11 @@ const se_DisassociateIpamResourceDiscoveryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryAssociationId != null) { - entries["IpamResourceDiscoveryAssociationId"] = input.IpamResourceDiscoveryAssociationId; + if (input[_IRDAIp] != null) { + entries[_IRDAIp] = input[_IRDAIp]; } return entries; }; @@ -52531,12 +52515,12 @@ const se_DisassociateNatGatewayAddressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NatGatewayId != null) { - entries["NatGatewayId"] = input.NatGatewayId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.AssociationIds != null) { - const memberEntries = se_EipAssociationIdList(input.AssociationIds, context); - if (input.AssociationIds?.length === 0) { + if (input[_AIs] != null) { + const memberEntries = se_EipAssociationIdList(input[_AIs], context); + if (input[_AIs]?.length === 0) { entries.AssociationId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -52544,11 +52528,11 @@ const se_DisassociateNatGatewayAddressRequest = ( entries[loc] = value; }); } - if (input.MaxDrainDurationSeconds != null) { - entries["MaxDrainDurationSeconds"] = input.MaxDrainDurationSeconds; + if (input[_MDDS] != null) { + entries[_MDDS] = input[_MDDS]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52558,11 +52542,11 @@ const se_DisassociateNatGatewayAddressRequest = ( */ const se_DisassociateRouteTableRequest = (input: DisassociateRouteTableRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52575,8 +52559,8 @@ const se_DisassociateSubnetCidrBlockRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } return entries; }; @@ -52589,15 +52573,15 @@ const se_DisassociateTransitGatewayMulticastDomainRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.SubnetIds != null) { - const memberEntries = se_TransitGatewaySubnetIdList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_TransitGatewaySubnetIdList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -52605,8 +52589,8 @@ const se_DisassociateTransitGatewayMulticastDomainRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52619,14 +52603,14 @@ const se_DisassociateTransitGatewayPolicyTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayPolicyTableId != null) { - entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId; + if (input[_TGPTI] != null) { + entries[_TGPTI] = input[_TGPTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52639,14 +52623,14 @@ const se_DisassociateTransitGatewayRouteTableRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52659,17 +52643,17 @@ const se_DisassociateTrunkInterfaceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52679,8 +52663,8 @@ const se_DisassociateTrunkInterfaceRequest = ( */ const se_DisassociateVpcCidrBlockRequest = (input: DisassociateVpcCidrBlockRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } return entries; }; @@ -52690,18 +52674,18 @@ const se_DisassociateVpcCidrBlockRequest = (input: DisassociateVpcCidrBlockReque */ const se_DiskImage = (input: DiskImage, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Image != null) { - const memberEntries = se_DiskImageDetail(input.Image, context); + if (input[_Im] != null) { + const memberEntries = se_DiskImageDetail(input[_Im], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Image.${key}`; entries[loc] = value; }); } - if (input.Volume != null) { - const memberEntries = se_VolumeDetail(input.Volume, context); + if (input[_Vo] != null) { + const memberEntries = se_VolumeDetail(input[_Vo], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Volume.${key}`; entries[loc] = value; @@ -52715,14 +52699,14 @@ const se_DiskImage = (input: DiskImage, context: __SerdeContext): any => { */ const se_DiskImageDetail = (input: DiskImageDetail, context: __SerdeContext): any => { const entries: any = {}; - if (input.Bytes != null) { - entries["Bytes"] = input.Bytes; + if (input[_By] != null) { + entries[_By] = input[_By]; } - if (input.Format != null) { - entries["Format"] = input.Format; + if (input[_Fo] != null) { + entries[_Fo] = input[_Fo]; } - if (input.ImportManifestUrl != null) { - entries["ImportManifestUrl"] = input.ImportManifestUrl; + if (input[_IMU] != null) { + entries[_IMU] = input[_IMU]; } return entries; }; @@ -52751,11 +52735,11 @@ const se_DiskImageList = (input: DiskImage[], context: __SerdeContext): any => { */ const se_DnsOptionsSpecification = (input: DnsOptionsSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.DnsRecordIpType != null) { - entries["DnsRecordIpType"] = input.DnsRecordIpType; + if (input[_DRIT] != null) { + entries[_DRIT] = input[_DRIT]; } - if (input.PrivateDnsOnlyForInboundResolverEndpoint != null) { - entries["PrivateDnsOnlyForInboundResolverEndpoint"] = input.PrivateDnsOnlyForInboundResolverEndpoint; + if (input[_PDOFIRE] != null) { + entries[_PDOFIRE] = input[_PDOFIRE]; } return entries; }; @@ -52765,9 +52749,9 @@ const se_DnsOptionsSpecification = (input: DnsOptionsSpecification, context: __S */ const se_DnsServersOptionsModifyStructure = (input: DnsServersOptionsModifyStructure, context: __SerdeContext): any => { const entries: any = {}; - if (input.CustomDnsServers != null) { - const memberEntries = se_ValueStringList(input.CustomDnsServers, context); - if (input.CustomDnsServers?.length === 0) { + if (input[_CDSu] != null) { + const memberEntries = se_ValueStringList(input[_CDSu], context); + if (input[_CDSu]?.length === 0) { entries.CustomDnsServers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -52775,8 +52759,8 @@ const se_DnsServersOptionsModifyStructure = (input: DnsServersOptionsModifyStruc entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -52786,32 +52770,32 @@ const se_DnsServersOptionsModifyStructure = (input: DnsServersOptionsModifyStruc */ const se_EbsBlockDevice = (input: EbsBlockDevice, context: __SerdeContext): any => { const entries: any = {}; - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_Io] != null) { + entries[_Io] = input[_Io]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.VolumeSize != null) { - entries["VolumeSize"] = input.VolumeSize; + if (input[_VS] != null) { + entries[_VS] = input[_VS]; } - if (input.VolumeType != null) { - entries["VolumeType"] = input.VolumeType; + if (input[_VT] != null) { + entries[_VT] = input[_VT]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Throughput != null) { - entries["Throughput"] = input.Throughput; + if (input[_Th] != null) { + entries[_Th] = input[_Th]; } - if (input.OutpostArn != null) { - entries["OutpostArn"] = input.OutpostArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } return entries; }; @@ -52824,11 +52808,11 @@ const se_EbsInstanceBlockDeviceSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } return entries; }; @@ -52886,8 +52870,8 @@ const se_ElasticGpuIdSet = (input: string[], context: __SerdeContext): any => { */ const se_ElasticGpuSpecification = (input: ElasticGpuSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } return entries; }; @@ -52935,11 +52919,11 @@ const se_ElasticGpuSpecifications = (input: ElasticGpuSpecification[], context: */ const se_ElasticInferenceAccelerator = (input: ElasticInferenceAccelerator, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.Count != null) { - entries["Count"] = input.Count; + if (input[_Cou] != null) { + entries[_Cou] = input[_Cou]; } return entries; }; @@ -52968,14 +52952,14 @@ const se_ElasticInferenceAccelerators = (input: ElasticInferenceAccelerator[], c */ const se_EnableAddressTransferRequest = (input: EnableAddressTransferRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AIl] != null) { + entries[_AIl] = input[_AIl]; } - if (input.TransferAccountId != null) { - entries["TransferAccountId"] = input.TransferAccountId; + if (input[_TAI] != null) { + entries[_TAI] = input[_TAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -52988,20 +52972,20 @@ const se_EnableAwsNetworkPerformanceMetricSubscriptionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Destination != null) { - entries["Destination"] = input.Destination; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Metric != null) { - entries["Metric"] = input.Metric; + if (input[_Met] != null) { + entries[_Met] = input[_Met]; } - if (input.Statistic != null) { - entries["Statistic"] = input.Statistic; + if (input[_Sta] != null) { + entries[_Sta] = input[_Sta]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53014,8 +52998,8 @@ const se_EnableEbsEncryptionByDefaultRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53025,31 +53009,31 @@ const se_EnableEbsEncryptionByDefaultRequest = ( */ const se_EnableFastLaunchRequest = (input: EnableFastLaunchRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.SnapshotConfiguration != null) { - const memberEntries = se_FastLaunchSnapshotConfigurationRequest(input.SnapshotConfiguration, context); + if (input[_SCn] != null) { + const memberEntries = se_FastLaunchSnapshotConfigurationRequest(input[_SCn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SnapshotConfiguration.${key}`; entries[loc] = value; }); } - if (input.LaunchTemplate != null) { - const memberEntries = se_FastLaunchLaunchTemplateSpecificationRequest(input.LaunchTemplate, context); + if (input[_LTa] != null) { + const memberEntries = se_FastLaunchLaunchTemplateSpecificationRequest(input[_LTa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplate.${key}`; entries[loc] = value; }); } - if (input.MaxParallelLaunches != null) { - entries["MaxParallelLaunches"] = input.MaxParallelLaunches; + if (input[_MPL] != null) { + entries[_MPL] = input[_MPL]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53062,9 +53046,9 @@ const se_EnableFastSnapshotRestoresRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZoneStringList(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZv] != null) { + const memberEntries = se_AvailabilityZoneStringList(input[_AZv], context); + if (input[_AZv]?.length === 0) { entries.AvailabilityZone = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -53072,9 +53056,9 @@ const se_EnableFastSnapshotRestoresRequest = ( entries[loc] = value; }); } - if (input.SourceSnapshotIds != null) { - const memberEntries = se_SnapshotIdStringList(input.SourceSnapshotIds, context); - if (input.SourceSnapshotIds?.length === 0) { + if (input[_SSIo] != null) { + const memberEntries = se_SnapshotIdStringList(input[_SSIo], context); + if (input[_SSIo]?.length === 0) { entries.SourceSnapshotId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -53082,8 +53066,8 @@ const se_EnableFastSnapshotRestoresRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53096,11 +53080,11 @@ const se_EnableImageBlockPublicAccessRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ImageBlockPublicAccessState != null) { - entries["ImageBlockPublicAccessState"] = input.ImageBlockPublicAccessState; + if (input[_IBPAS] != null) { + entries[_IBPAS] = input[_IBPAS]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53110,14 +53094,14 @@ const se_EnableImageBlockPublicAccessRequest = ( */ const se_EnableImageDeprecationRequest = (input: EnableImageDeprecationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DeprecateAt != null) { - entries["DeprecateAt"] = input.DeprecateAt.toISOString().split(".")[0] + "Z"; + if (input[_DAe] != null) { + entries[_DAe] = input[_DAe].toISOString().split(".")[0] + "Z"; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53127,11 +53111,11 @@ const se_EnableImageDeprecationRequest = (input: EnableImageDeprecationRequest, */ const se_EnableImageRequest = (input: EnableImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53144,11 +53128,11 @@ const se_EnableIpamOrganizationAdminAccountRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.DelegatedAdminAccountId != null) { - entries["DelegatedAdminAccountId"] = input.DelegatedAdminAccountId; + if (input[_DAAI] != null) { + entries[_DAAI] = input[_DAAI]; } return entries; }; @@ -53161,8 +53145,8 @@ const se_EnableReachabilityAnalyzerOrganizationSharingRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53172,8 +53156,8 @@ const se_EnableReachabilityAnalyzerOrganizationSharingRequest = ( */ const se_EnableSerialConsoleAccessRequest = (input: EnableSerialConsoleAccessRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53186,11 +53170,11 @@ const se_EnableSnapshotBlockPublicAccessRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.State != null) { - entries["State"] = input.State; + if (input[_Stat] != null) { + entries[_Stat] = input[_Stat]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53203,17 +53187,17 @@ const se_EnableTransitGatewayRouteTablePropagationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TransitGatewayRouteTableAnnouncementId != null) { - entries["TransitGatewayRouteTableAnnouncementId"] = input.TransitGatewayRouteTableAnnouncementId; + if (input[_TGRTAI] != null) { + entries[_TGRTAI] = input[_TGRTAI]; } return entries; }; @@ -53223,14 +53207,14 @@ const se_EnableTransitGatewayRouteTablePropagationRequest = ( */ const se_EnableVgwRoutePropagationRequest = (input: EnableVgwRoutePropagationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GatewayId != null) { - entries["GatewayId"] = input.GatewayId; + if (input[_GI] != null) { + entries[_GI] = input[_GI]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53240,11 +53224,11 @@ const se_EnableVgwRoutePropagationRequest = (input: EnableVgwRoutePropagationReq */ const se_EnableVolumeIORequest = (input: EnableVolumeIORequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } return entries; }; @@ -53257,8 +53241,8 @@ const se_EnableVpcClassicLinkDnsSupportRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -53268,11 +53252,11 @@ const se_EnableVpcClassicLinkDnsSupportRequest = ( */ const se_EnableVpcClassicLinkRequest = (input: EnableVpcClassicLinkRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -53282,11 +53266,11 @@ const se_EnableVpcClassicLinkRequest = (input: EnableVpcClassicLinkRequest, cont */ const se_EnaSrdSpecification = (input: EnaSrdSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnaSrdEnabled != null) { - entries["EnaSrdEnabled"] = input.EnaSrdEnabled; + if (input[_ESE] != null) { + entries[_ESE] = input[_ESE]; } - if (input.EnaSrdUdpSpecification != null) { - const memberEntries = se_EnaSrdUdpSpecification(input.EnaSrdUdpSpecification, context); + if (input[_ESUS] != null) { + const memberEntries = se_EnaSrdUdpSpecification(input[_ESUS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnaSrdUdpSpecification.${key}`; entries[loc] = value; @@ -53300,11 +53284,11 @@ const se_EnaSrdSpecification = (input: EnaSrdSpecification, context: __SerdeCont */ const se_EnaSrdSpecificationRequest = (input: EnaSrdSpecificationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnaSrdEnabled != null) { - entries["EnaSrdEnabled"] = input.EnaSrdEnabled; + if (input[_ESE] != null) { + entries[_ESE] = input[_ESE]; } - if (input.EnaSrdUdpSpecification != null) { - const memberEntries = se_EnaSrdUdpSpecificationRequest(input.EnaSrdUdpSpecification, context); + if (input[_ESUS] != null) { + const memberEntries = se_EnaSrdUdpSpecificationRequest(input[_ESUS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnaSrdUdpSpecification.${key}`; entries[loc] = value; @@ -53318,8 +53302,8 @@ const se_EnaSrdSpecificationRequest = (input: EnaSrdSpecificationRequest, contex */ const se_EnaSrdUdpSpecification = (input: EnaSrdUdpSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnaSrdUdpEnabled != null) { - entries["EnaSrdUdpEnabled"] = input.EnaSrdUdpEnabled; + if (input[_ESUE] != null) { + entries[_ESUE] = input[_ESUE]; } return entries; }; @@ -53329,8 +53313,8 @@ const se_EnaSrdUdpSpecification = (input: EnaSrdUdpSpecification, context: __Ser */ const se_EnaSrdUdpSpecificationRequest = (input: EnaSrdUdpSpecificationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnaSrdUdpEnabled != null) { - entries["EnaSrdUdpEnabled"] = input.EnaSrdUdpEnabled; + if (input[_ESUE] != null) { + entries[_ESUE] = input[_ESUE]; } return entries; }; @@ -53340,8 +53324,8 @@ const se_EnaSrdUdpSpecificationRequest = (input: EnaSrdUdpSpecificationRequest, */ const se_EnclaveOptionsRequest = (input: EnclaveOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -53386,11 +53370,11 @@ const se_ExportClientVpnClientCertificateRevocationListRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53403,11 +53387,11 @@ const se_ExportClientVpnClientConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53417,37 +53401,37 @@ const se_ExportClientVpnClientConfigurationRequest = ( */ const se_ExportImageRequest = (input: ExportImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DiskImageFormat != null) { - entries["DiskImageFormat"] = input.DiskImageFormat; + if (input[_DIFi] != null) { + entries[_DIFi] = input[_DIFi]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.S3ExportLocation != null) { - const memberEntries = se_ExportTaskS3LocationRequest(input.S3ExportLocation, context); + if (input[_SEL] != null) { + const memberEntries = se_ExportTaskS3LocationRequest(input[_SEL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `S3ExportLocation.${key}`; entries[loc] = value; }); } - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RNo] != null) { + entries[_RNo] = input[_RNo]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -53495,11 +53479,11 @@ const se_ExportTaskIdStringList = (input: string[], context: __SerdeContext): an */ const se_ExportTaskS3LocationRequest = (input: ExportTaskS3LocationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.S3Bucket != null) { - entries["S3Bucket"] = input.S3Bucket; + if (input[_SB] != null) { + entries[_SB] = input[_SB]; } - if (input.S3Prefix != null) { - entries["S3Prefix"] = input.S3Prefix; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } return entries; }; @@ -53509,17 +53493,17 @@ const se_ExportTaskS3LocationRequest = (input: ExportTaskS3LocationRequest, cont */ const se_ExportToS3TaskSpecification = (input: ExportToS3TaskSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.ContainerFormat != null) { - entries["ContainerFormat"] = input.ContainerFormat; + if (input[_CFo] != null) { + entries[_CFo] = input[_CFo]; } - if (input.DiskImageFormat != null) { - entries["DiskImageFormat"] = input.DiskImageFormat; + if (input[_DIFi] != null) { + entries[_DIFi] = input[_DIFi]; } - if (input.S3Bucket != null) { - entries["S3Bucket"] = input.S3Bucket; + if (input[_SB] != null) { + entries[_SB] = input[_SB]; } - if (input.S3Prefix != null) { - entries["S3Prefix"] = input.S3Prefix; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } return entries; }; @@ -53532,12 +53516,12 @@ const se_ExportTransitGatewayRoutesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -53545,11 +53529,11 @@ const se_ExportTransitGatewayRoutesRequest = ( entries[loc] = value; }); } - if (input.S3Bucket != null) { - entries["S3Bucket"] = input.S3Bucket; + if (input[_SB] != null) { + entries[_SB] = input[_SB]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53578,14 +53562,14 @@ const se_FastLaunchLaunchTemplateSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.Version != null) { - entries["Version"] = input.Version; + if (input[_V] != null) { + entries[_V] = input[_V]; } return entries; }; @@ -53598,8 +53582,8 @@ const se_FastLaunchSnapshotConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TargetResourceCount != null) { - entries["TargetResourceCount"] = input.TargetResourceCount; + if (input[_TRC] != null) { + entries[_TRC] = input[_TRC]; } return entries; }; @@ -53609,11 +53593,11 @@ const se_FastLaunchSnapshotConfigurationRequest = ( */ const se_FederatedAuthenticationRequest = (input: FederatedAuthenticationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLProviderArn != null) { - entries["SAMLProviderArn"] = input.SAMLProviderArn; + if (input[_SAMLPA] != null) { + entries[_SAMLPA] = input[_SAMLPA]; } - if (input.SelfServiceSAMLProviderArn != null) { - entries["SelfServiceSAMLProviderArn"] = input.SelfServiceSAMLProviderArn; + if (input[_SSSAMLPA] != null) { + entries[_SSSAMLPA] = input[_SSSAMLPA]; } return entries; }; @@ -53623,12 +53607,12 @@ const se_FederatedAuthenticationRequest = (input: FederatedAuthenticationRequest */ const se_Filter = (input: Filter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - const memberEntries = se_ValueStringList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Val] != null) { + const memberEntries = se_ValueStringList(input[_Val], context); + if (input[_Val]?.length === 0) { entries.Value = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -53701,16 +53685,16 @@ const se_FleetLaunchTemplateConfigListRequest = ( */ const se_FleetLaunchTemplateConfigRequest = (input: FleetLaunchTemplateConfigRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplateSpecification != null) { - const memberEntries = se_FleetLaunchTemplateSpecificationRequest(input.LaunchTemplateSpecification, context); + if (input[_LTS] != null) { + const memberEntries = se_FleetLaunchTemplateSpecificationRequest(input[_LTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplateSpecification.${key}`; entries[loc] = value; }); } - if (input.Overrides != null) { - const memberEntries = se_FleetLaunchTemplateOverridesListRequest(input.Overrides, context); - if (input.Overrides?.length === 0) { + if (input[_Ov] != null) { + const memberEntries = se_FleetLaunchTemplateOverridesListRequest(input[_Ov], context); + if (input[_Ov]?.length === 0) { entries.Overrides = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -53751,40 +53735,40 @@ const se_FleetLaunchTemplateOverridesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.MaxPrice != null) { - entries["MaxPrice"] = input.MaxPrice; + if (input[_MPa] != null) { + entries[_MPa] = input[_MPa]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.WeightedCapacity != null) { - entries["WeightedCapacity"] = __serializeFloat(input.WeightedCapacity); + if (input[_WC] != null) { + entries[_WC] = __serializeFloat(input[_WC]); } - if (input.Priority != null) { - entries["Priority"] = __serializeFloat(input.Priority); + if (input[_Pri] != null) { + entries[_Pri] = __serializeFloat(input[_Pri]); } - if (input.Placement != null) { - const memberEntries = se_Placement(input.Placement, context); + if (input[_Pl] != null) { + const memberEntries = se_Placement(input[_Pl], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Placement.${key}`; entries[loc] = value; }); } - if (input.InstanceRequirements != null) { - const memberEntries = se_InstanceRequirementsRequest(input.InstanceRequirements, context); + if (input[_IR] != null) { + const memberEntries = se_InstanceRequirementsRequest(input[_IR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirements.${key}`; entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } return entries; }; @@ -53794,14 +53778,14 @@ const se_FleetLaunchTemplateOverridesRequest = ( */ const se_FleetLaunchTemplateSpecification = (input: FleetLaunchTemplateSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.Version != null) { - entries["Version"] = input.Version; + if (input[_V] != null) { + entries[_V] = input[_V]; } return entries; }; @@ -53814,14 +53798,14 @@ const se_FleetLaunchTemplateSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.Version != null) { - entries["Version"] = input.Version; + if (input[_V] != null) { + entries[_V] = input[_V]; } return entries; }; @@ -53834,11 +53818,11 @@ const se_FleetSpotCapacityRebalanceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReplacementStrategy != null) { - entries["ReplacementStrategy"] = input.ReplacementStrategy; + if (input[_RS] != null) { + entries[_RS] = input[_RS]; } - if (input.TerminationDelay != null) { - entries["TerminationDelay"] = input.TerminationDelay; + if (input[_TDe] != null) { + entries[_TDe] = input[_TDe]; } return entries; }; @@ -53851,8 +53835,8 @@ const se_FleetSpotMaintenanceStrategiesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CapacityRebalance != null) { - const memberEntries = se_FleetSpotCapacityRebalanceRequest(input.CapacityRebalance, context); + if (input[_CRap] != null) { + const memberEntries = se_FleetSpotCapacityRebalanceRequest(input[_CRap], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityRebalance.${key}`; entries[loc] = value; @@ -53917,11 +53901,11 @@ const se_GetAssociatedEnclaveCertificateIamRolesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CertificateArn != null) { - entries["CertificateArn"] = input.CertificateArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53934,17 +53918,17 @@ const se_GetAssociatedIpv6PoolCidrsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PoolId != null) { - entries["PoolId"] = input.PoolId; + if (input[_PIo] != null) { + entries[_PIo] = input[_PIo]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53957,9 +53941,9 @@ const se_GetAwsNetworkPerformanceDataRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DataQueries != null) { - const memberEntries = se_DataQueries(input.DataQueries, context); - if (input.DataQueries?.length === 0) { + if (input[_DQ] != null) { + const memberEntries = se_DataQueries(input[_DQ], context); + if (input[_DQ]?.length === 0) { entries.DataQuery = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -53967,20 +53951,20 @@ const se_GetAwsNetworkPerformanceDataRequest = ( entries[loc] = value; }); } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ETn] != null) { + entries[_ETn] = input[_ETn].toISOString().split(".")[0] + "Z"; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -53993,17 +53977,17 @@ const se_GetCapacityReservationUsageRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CapacityReservationId != null) { - entries["CapacityReservationId"] = input.CapacityReservationId; + if (input[_CRI] != null) { + entries[_CRI] = input[_CRI]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54013,12 +53997,12 @@ const se_GetCapacityReservationUsageRequest = ( */ const se_GetCoipPoolUsageRequest = (input: GetCoipPoolUsageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PoolId != null) { - entries["PoolId"] = input.PoolId; + if (input[_PIo] != null) { + entries[_PIo] = input[_PIo]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54026,14 +54010,14 @@ const se_GetCoipPoolUsageRequest = (input: GetCoipPoolUsageRequest, context: __S entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54043,14 +54027,14 @@ const se_GetCoipPoolUsageRequest = (input: GetCoipPoolUsageRequest, context: __S */ const se_GetConsoleOutputRequest = (input: GetConsoleOutputRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Latest != null) { - entries["Latest"] = input.Latest; + if (input[_La] != null) { + entries[_La] = input[_La]; } return entries; }; @@ -54060,14 +54044,14 @@ const se_GetConsoleOutputRequest = (input: GetConsoleOutputRequest, context: __S */ const se_GetConsoleScreenshotRequest = (input: GetConsoleScreenshotRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.WakeUp != null) { - entries["WakeUp"] = input.WakeUp; + if (input[_WU] != null) { + entries[_WU] = input[_WU]; } return entries; }; @@ -54080,11 +54064,11 @@ const se_GetDefaultCreditSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceFamily != null) { - entries["InstanceFamily"] = input.InstanceFamily; + if (input[_IF] != null) { + entries[_IF] = input[_IF]; } return entries; }; @@ -54094,8 +54078,8 @@ const se_GetDefaultCreditSpecificationRequest = ( */ const se_GetEbsDefaultKmsKeyIdRequest = (input: GetEbsDefaultKmsKeyIdRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54105,8 +54089,8 @@ const se_GetEbsDefaultKmsKeyIdRequest = (input: GetEbsDefaultKmsKeyIdRequest, co */ const se_GetEbsEncryptionByDefaultRequest = (input: GetEbsEncryptionByDefaultRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54119,17 +54103,17 @@ const se_GetFlowLogsIntegrationTemplateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FlowLogId != null) { - entries["FlowLogId"] = input.FlowLogId; + if (input[_FLIl] != null) { + entries[_FLIl] = input[_FLIl]; } - if (input.ConfigDeliveryS3DestinationArn != null) { - entries["ConfigDeliveryS3DestinationArn"] = input.ConfigDeliveryS3DestinationArn; + if (input[_CDSDA] != null) { + entries[_CDSDA] = input[_CDSDA]; } - if (input.IntegrateServices != null) { - const memberEntries = se_IntegrateServices(input.IntegrateServices, context); + if (input[_ISnt] != null) { + const memberEntries = se_IntegrateServices(input[_ISnt], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IntegrateService.${key}`; entries[loc] = value; @@ -54146,17 +54130,17 @@ const se_GetGroupsForCapacityReservationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CapacityReservationId != null) { - entries["CapacityReservationId"] = input.CapacityReservationId; + if (input[_CRI] != null) { + entries[_CRI] = input[_CRI]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54169,9 +54153,9 @@ const se_GetHostReservationPurchasePreviewRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.HostIdSet != null) { - const memberEntries = se_RequestHostIdSet(input.HostIdSet, context); - if (input.HostIdSet?.length === 0) { + if (input[_HIS] != null) { + const memberEntries = se_RequestHostIdSet(input[_HIS], context); + if (input[_HIS]?.length === 0) { entries.HostIdSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54179,8 +54163,8 @@ const se_GetHostReservationPurchasePreviewRequest = ( entries[loc] = value; }); } - if (input.OfferingId != null) { - entries["OfferingId"] = input.OfferingId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } return entries; }; @@ -54193,8 +54177,8 @@ const se_GetImageBlockPublicAccessStateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54207,12 +54191,12 @@ const se_GetInstanceTypesFromInstanceRequirementsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ArchitectureTypes != null) { - const memberEntries = se_ArchitectureTypeSet(input.ArchitectureTypes, context); - if (input.ArchitectureTypes?.length === 0) { + if (input[_ATr] != null) { + const memberEntries = se_ArchitectureTypeSet(input[_ATr], context); + if (input[_ATr]?.length === 0) { entries.ArchitectureType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54220,9 +54204,9 @@ const se_GetInstanceTypesFromInstanceRequirementsRequest = ( entries[loc] = value; }); } - if (input.VirtualizationTypes != null) { - const memberEntries = se_VirtualizationTypeSet(input.VirtualizationTypes, context); - if (input.VirtualizationTypes?.length === 0) { + if (input[_VTi] != null) { + const memberEntries = se_VirtualizationTypeSet(input[_VTi], context); + if (input[_VTi]?.length === 0) { entries.VirtualizationType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54230,18 +54214,18 @@ const se_GetInstanceTypesFromInstanceRequirementsRequest = ( entries[loc] = value; }); } - if (input.InstanceRequirements != null) { - const memberEntries = se_InstanceRequirementsRequest(input.InstanceRequirements, context); + if (input[_IR] != null) { + const memberEntries = se_InstanceRequirementsRequest(input[_IR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirements.${key}`; entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -54251,11 +54235,11 @@ const se_GetInstanceTypesFromInstanceRequirementsRequest = ( */ const se_GetInstanceUefiDataRequest = (input: GetInstanceUefiDataRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54265,29 +54249,29 @@ const se_GetInstanceUefiDataRequest = (input: GetInstanceUefiDataRequest, contex */ const se_GetIpamAddressHistoryRequest = (input: GetIpamAddressHistoryRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.IpamScopeId != null) { - entries["IpamScopeId"] = input.IpamScopeId; + if (input[_ISI] != null) { + entries[_ISI] = input[_ISI]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ETn] != null) { + entries[_ETn] = input[_ETn].toISOString().split(".")[0] + "Z"; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -54297,18 +54281,18 @@ const se_GetIpamAddressHistoryRequest = (input: GetIpamAddressHistoryRequest, co */ const se_GetIpamDiscoveredAccountsRequest = (input: GetIpamDiscoveredAccountsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryId != null) { - entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId; + if (input[_IRDI] != null) { + entries[_IRDI] = input[_IRDI]; } - if (input.DiscoveryRegion != null) { - entries["DiscoveryRegion"] = input.DiscoveryRegion; + if (input[_DRi] != null) { + entries[_DRi] = input[_DRi]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54316,11 +54300,11 @@ const se_GetIpamDiscoveredAccountsRequest = (input: GetIpamDiscoveredAccountsReq entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -54333,18 +54317,18 @@ const se_GetIpamDiscoveredPublicAddressesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryId != null) { - entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId; + if (input[_IRDI] != null) { + entries[_IRDI] = input[_IRDI]; } - if (input.AddressRegion != null) { - entries["AddressRegion"] = input.AddressRegion; + if (input[_ARd] != null) { + entries[_ARd] = input[_ARd]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54352,11 +54336,11 @@ const se_GetIpamDiscoveredPublicAddressesRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -54369,18 +54353,18 @@ const se_GetIpamDiscoveredResourceCidrsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryId != null) { - entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId; + if (input[_IRDI] != null) { + entries[_IRDI] = input[_IRDI]; } - if (input.ResourceRegion != null) { - entries["ResourceRegion"] = input.ResourceRegion; + if (input[_RRe] != null) { + entries[_RRe] = input[_RRe]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54388,11 +54372,11 @@ const se_GetIpamDiscoveredResourceCidrsRequest = ( entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -54402,18 +54386,18 @@ const se_GetIpamDiscoveredResourceCidrsRequest = ( */ const se_GetIpamPoolAllocationsRequest = (input: GetIpamPoolAllocationsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.IpamPoolAllocationId != null) { - entries["IpamPoolAllocationId"] = input.IpamPoolAllocationId; + if (input[_IPAI] != null) { + entries[_IPAI] = input[_IPAI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54421,11 +54405,11 @@ const se_GetIpamPoolAllocationsRequest = (input: GetIpamPoolAllocationsRequest, entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -54435,15 +54419,15 @@ const se_GetIpamPoolAllocationsRequest = (input: GetIpamPoolAllocationsRequest, */ const se_GetIpamPoolCidrsRequest = (input: GetIpamPoolCidrsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54451,11 +54435,11 @@ const se_GetIpamPoolCidrsRequest = (input: GetIpamPoolCidrsRequest, context: __S entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -54465,12 +54449,12 @@ const se_GetIpamPoolCidrsRequest = (input: GetIpamPoolCidrsRequest, context: __S */ const se_GetIpamResourceCidrsRequest = (input: GetIpamResourceCidrsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54478,33 +54462,33 @@ const se_GetIpamResourceCidrsRequest = (input: GetIpamResourceCidrsRequest, cont entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.IpamScopeId != null) { - entries["IpamScopeId"] = input.IpamScopeId; + if (input[_ISI] != null) { + entries[_ISI] = input[_ISI]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.ResourceId != null) { - entries["ResourceId"] = input.ResourceId; + if (input[_RIeso] != null) { + entries[_RIeso] = input[_RIeso]; } - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.ResourceTag != null) { - const memberEntries = se_RequestIpamResourceTag(input.ResourceTag, context); + if (input[_RTes] != null) { + const memberEntries = se_RequestIpamResourceTag(input[_RTes], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResourceTag.${key}`; entries[loc] = value; }); } - if (input.ResourceOwner != null) { - entries["ResourceOwner"] = input.ResourceOwner; + if (input[_RO] != null) { + entries[_RO] = input[_RO]; } return entries; }; @@ -54514,11 +54498,11 @@ const se_GetIpamResourceCidrsRequest = (input: GetIpamResourceCidrsRequest, cont */ const se_GetLaunchTemplateDataRequest = (input: GetLaunchTemplateDataRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } return entries; }; @@ -54531,17 +54515,17 @@ const se_GetManagedPrefixListAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -54554,20 +54538,20 @@ const se_GetManagedPrefixListEntriesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.TargetVersion != null) { - entries["TargetVersion"] = input.TargetVersion; + if (input[_TV] != null) { + entries[_TV] = input[_TV]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -54580,17 +54564,17 @@ const se_GetNetworkInsightsAccessScopeAnalysisFindingsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsAccessScopeAnalysisId != null) { - entries["NetworkInsightsAccessScopeAnalysisId"] = input.NetworkInsightsAccessScopeAnalysisId; + if (input[_NIASAI] != null) { + entries[_NIASAI] = input[_NIASAI]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54603,11 +54587,11 @@ const se_GetNetworkInsightsAccessScopeContentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsAccessScopeId != null) { - entries["NetworkInsightsAccessScopeId"] = input.NetworkInsightsAccessScopeId; + if (input[_NIASI] != null) { + entries[_NIASI] = input[_NIASI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54617,11 +54601,11 @@ const se_GetNetworkInsightsAccessScopeContentRequest = ( */ const se_GetPasswordDataRequest = (input: GetPasswordDataRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54634,12 +54618,12 @@ const se_GetReservedInstancesExchangeQuoteRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ReservedInstanceIds != null) { - const memberEntries = se_ReservedInstanceIdSet(input.ReservedInstanceIds, context); - if (input.ReservedInstanceIds?.length === 0) { + if (input[_RII] != null) { + const memberEntries = se_ReservedInstanceIdSet(input[_RII], context); + if (input[_RII]?.length === 0) { entries.ReservedInstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54647,9 +54631,9 @@ const se_GetReservedInstancesExchangeQuoteRequest = ( entries[loc] = value; }); } - if (input.TargetConfigurations != null) { - const memberEntries = se_TargetConfigurationRequestSet(input.TargetConfigurations, context); - if (input.TargetConfigurations?.length === 0) { + if (input[_TC] != null) { + const memberEntries = se_TargetConfigurationRequestSet(input[_TC], context); + if (input[_TC]?.length === 0) { entries.TargetConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54665,18 +54649,18 @@ const se_GetReservedInstancesExchangeQuoteRequest = ( */ const se_GetSecurityGroupsForVpcRequest = (input: GetSecurityGroupsForVpcRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54684,8 +54668,8 @@ const se_GetSecurityGroupsForVpcRequest = (input: GetSecurityGroupsForVpcRequest entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54698,8 +54682,8 @@ const se_GetSerialConsoleAccessStatusRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54712,8 +54696,8 @@ const se_GetSnapshotBlockPublicAccessStateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54723,9 +54707,9 @@ const se_GetSnapshotBlockPublicAccessStateRequest = ( */ const se_GetSpotPlacementScoresRequest = (input: GetSpotPlacementScoresRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceTypes != null) { - const memberEntries = se_InstanceTypes(input.InstanceTypes, context); - if (input.InstanceTypes?.length === 0) { + if (input[_ITnst] != null) { + const memberEntries = se_InstanceTypes(input[_ITnst], context); + if (input[_ITnst]?.length === 0) { entries.InstanceType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54733,18 +54717,18 @@ const se_GetSpotPlacementScoresRequest = (input: GetSpotPlacementScoresRequest, entries[loc] = value; }); } - if (input.TargetCapacity != null) { - entries["TargetCapacity"] = input.TargetCapacity; + if (input[_TCa] != null) { + entries[_TCa] = input[_TCa]; } - if (input.TargetCapacityUnitType != null) { - entries["TargetCapacityUnitType"] = input.TargetCapacityUnitType; + if (input[_TCUT] != null) { + entries[_TCUT] = input[_TCUT]; } - if (input.SingleAvailabilityZone != null) { - entries["SingleAvailabilityZone"] = input.SingleAvailabilityZone; + if (input[_SAZ] != null) { + entries[_SAZ] = input[_SAZ]; } - if (input.RegionNames != null) { - const memberEntries = se_RegionNames(input.RegionNames, context); - if (input.RegionNames?.length === 0) { + if (input[_RNe] != null) { + const memberEntries = se_RegionNames(input[_RNe], context); + if (input[_RNe]?.length === 0) { entries.RegionName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54752,21 +54736,21 @@ const se_GetSpotPlacementScoresRequest = (input: GetSpotPlacementScoresRequest, entries[loc] = value; }); } - if (input.InstanceRequirementsWithMetadata != null) { - const memberEntries = se_InstanceRequirementsWithMetadataRequest(input.InstanceRequirementsWithMetadata, context); + if (input[_IRWM] != null) { + const memberEntries = se_InstanceRequirementsWithMetadataRequest(input[_IRWM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirementsWithMetadata.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -54776,9 +54760,9 @@ const se_GetSpotPlacementScoresRequest = (input: GetSpotPlacementScoresRequest, */ const se_GetSubnetCidrReservationsRequest = (input: GetSubnetCidrReservationsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54786,17 +54770,17 @@ const se_GetSubnetCidrReservationsRequest = (input: GetSubnetCidrReservationsReq entries[loc] = value; }); } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -54809,12 +54793,12 @@ const se_GetTransitGatewayAttachmentPropagationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54822,14 +54806,14 @@ const se_GetTransitGatewayAttachmentPropagationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54842,12 +54826,12 @@ const se_GetTransitGatewayMulticastDomainAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54855,14 +54839,14 @@ const se_GetTransitGatewayMulticastDomainAssociationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54875,12 +54859,12 @@ const se_GetTransitGatewayPolicyTableAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayPolicyTableId != null) { - entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId; + if (input[_TGPTI] != null) { + entries[_TGPTI] = input[_TGPTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54888,14 +54872,14 @@ const se_GetTransitGatewayPolicyTableAssociationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54908,12 +54892,12 @@ const se_GetTransitGatewayPolicyTableEntriesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayPolicyTableId != null) { - entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId; + if (input[_TGPTI] != null) { + entries[_TGPTI] = input[_TGPTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54921,14 +54905,14 @@ const se_GetTransitGatewayPolicyTableEntriesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54941,12 +54925,12 @@ const se_GetTransitGatewayPrefixListReferencesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54954,14 +54938,14 @@ const se_GetTransitGatewayPrefixListReferencesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -54974,12 +54958,12 @@ const se_GetTransitGatewayRouteTableAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -54987,14 +54971,14 @@ const se_GetTransitGatewayRouteTableAssociationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55007,12 +54991,12 @@ const se_GetTransitGatewayRouteTablePropagationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55020,14 +55004,14 @@ const se_GetTransitGatewayRouteTablePropagationsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55040,11 +55024,11 @@ const se_GetVerifiedAccessEndpointPolicyRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessEndpointId != null) { - entries["VerifiedAccessEndpointId"] = input.VerifiedAccessEndpointId; + if (input[_VAEI] != null) { + entries[_VAEI] = input[_VAEI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55057,11 +55041,11 @@ const se_GetVerifiedAccessGroupPolicyRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessGroupId != null) { - entries["VerifiedAccessGroupId"] = input.VerifiedAccessGroupId; + if (input[_VAGI] != null) { + entries[_VAGI] = input[_VAGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55074,17 +55058,17 @@ const se_GetVpnConnectionDeviceSampleConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.VpnConnectionDeviceTypeId != null) { - entries["VpnConnectionDeviceTypeId"] = input.VpnConnectionDeviceTypeId; + if (input[_VCDTI] != null) { + entries[_VCDTI] = input[_VCDTI]; } - if (input.InternetKeyExchangeVersion != null) { - entries["InternetKeyExchangeVersion"] = input.InternetKeyExchangeVersion; + if (input[_IKEV] != null) { + entries[_IKEV] = input[_IKEV]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55097,14 +55081,14 @@ const se_GetVpnConnectionDeviceTypesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55117,14 +55101,14 @@ const se_GetVpnTunnelReplacementStatusRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.VpnTunnelOutsideIpAddress != null) { - entries["VpnTunnelOutsideIpAddress"] = input.VpnTunnelOutsideIpAddress; + if (input[_VTOIA] != null) { + entries[_VTOIA] = input[_VTOIA]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55134,11 +55118,11 @@ const se_GetVpnTunnelReplacementStatusRequest = ( */ const se_GroupIdentifier = (input: GroupIdentifier, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } return entries; }; @@ -55215,8 +55199,8 @@ const se_GroupNameStringList = (input: string[], context: __SerdeContext): any = */ const se_HibernationOptionsRequest = (input: HibernationOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Configured != null) { - entries["Configured"] = input.Configured; + if (input[_Conf] != null) { + entries[_Conf] = input[_Conf]; } return entries; }; @@ -55242,11 +55226,11 @@ const se_HostReservationIdSet = (input: string[], context: __SerdeContext): any */ const se_IamInstanceProfileSpecification = (input: IamInstanceProfileSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } return entries; }; @@ -55256,11 +55240,11 @@ const se_IamInstanceProfileSpecification = (input: IamInstanceProfileSpecificati */ const se_IcmpTypeCode = (input: IcmpTypeCode, context: __SerdeContext): any => { const entries: any = {}; - if (input.Code != null) { - entries["Code"] = input.Code; + if (input[_Cod] != null) { + entries[_Cod] = input[_Cod]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } return entries; }; @@ -55289,8 +55273,8 @@ const se_IKEVersionsRequestList = (input: IKEVersionsRequestListValue[], context */ const se_IKEVersionsRequestListValue = (input: IKEVersionsRequestListValue, context: __SerdeContext): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -55300,23 +55284,23 @@ const se_IKEVersionsRequestListValue = (input: IKEVersionsRequestListValue, cont */ const se_ImageDiskContainer = (input: ImageDiskContainer, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DeviceName != null) { - entries["DeviceName"] = input.DeviceName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Format != null) { - entries["Format"] = input.Format; + if (input[_Fo] != null) { + entries[_Fo] = input[_Fo]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.Url != null) { - entries["Url"] = input.Url; + if (input[_U] != null) { + entries[_U] = input[_U]; } - if (input.UserBucket != null) { - const memberEntries = se_UserBucket(input.UserBucket, context); + if (input[_UB] != null) { + const memberEntries = se_UserBucket(input[_UB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `UserBucket.${key}`; entries[loc] = value; @@ -55384,14 +55368,14 @@ const se_ImportClientVpnClientCertificateRevocationListRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.CertificateRevocationList != null) { - entries["CertificateRevocationList"] = input.CertificateRevocationList; + if (input[_CRL] != null) { + entries[_CRL] = input[_CRL]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -55404,8 +55388,8 @@ const se_ImportImageLicenseConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LicenseConfigurationArn != null) { - entries["LicenseConfigurationArn"] = input.LicenseConfigurationArn; + if (input[_LCA] != null) { + entries[_LCA] = input[_LCA]; } return entries; }; @@ -55437,25 +55421,25 @@ const se_ImportImageLicenseSpecificationListRequest = ( */ const se_ImportImageRequest = (input: ImportImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Architecture != null) { - entries["Architecture"] = input.Architecture; + if (input[_Arc] != null) { + entries[_Arc] = input[_Arc]; } - if (input.ClientData != null) { - const memberEntries = se_ClientData(input.ClientData, context); + if (input[_CD] != null) { + const memberEntries = se_ClientData(input[_CD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ClientData.${key}`; entries[loc] = value; }); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DiskContainers != null) { - const memberEntries = se_ImageDiskContainerList(input.DiskContainers, context); - if (input.DiskContainers?.length === 0) { + if (input[_DCi] != null) { + const memberEntries = se_ImageDiskContainerList(input[_DCi], context); + if (input[_DCi]?.length === 0) { entries.DiskContainer = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55463,30 +55447,30 @@ const se_ImportImageRequest = (input: ImportImageRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } - if (input.Hypervisor != null) { - entries["Hypervisor"] = input.Hypervisor; + if (input[_H] != null) { + entries[_H] = input[_H]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.LicenseType != null) { - entries["LicenseType"] = input.LicenseType; + if (input[_LTi] != null) { + entries[_LTi] = input[_LTi]; } - if (input.Platform != null) { - entries["Platform"] = input.Platform; + if (input[_Pla] != null) { + entries[_Pla] = input[_Pla]; } - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RNo] != null) { + entries[_RNo] = input[_RNo]; } - if (input.LicenseSpecifications != null) { - const memberEntries = se_ImportImageLicenseSpecificationListRequest(input.LicenseSpecifications, context); - if (input.LicenseSpecifications?.length === 0) { + if (input[_LSi] != null) { + const memberEntries = se_ImportImageLicenseSpecificationListRequest(input[_LSi], context); + if (input[_LSi]?.length === 0) { entries.LicenseSpecifications = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55494,9 +55478,9 @@ const se_ImportImageRequest = (input: ImportImageRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55504,11 +55488,11 @@ const se_ImportImageRequest = (input: ImportImageRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.UsageOperation != null) { - entries["UsageOperation"] = input.UsageOperation; + if (input[_UO] != null) { + entries[_UO] = input[_UO]; } - if (input.BootMode != null) { - entries["BootMode"] = input.BootMode; + if (input[_BM] != null) { + entries[_BM] = input[_BM]; } return entries; }; @@ -55521,15 +55505,15 @@ const se_ImportInstanceLaunchSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AdditionalInfo != null) { - entries["AdditionalInfo"] = input.AdditionalInfo; + if (input[_AId] != null) { + entries[_AId] = input[_AId]; } - if (input.Architecture != null) { - entries["Architecture"] = input.Architecture; + if (input[_Arc] != null) { + entries[_Arc] = input[_Arc]; } - if (input.GroupIds != null) { - const memberEntries = se_SecurityGroupIdStringList(input.GroupIds, context); - if (input.GroupIds?.length === 0) { + if (input[_GIro] != null) { + const memberEntries = se_SecurityGroupIdStringList(input[_GIro], context); + if (input[_GIro]?.length === 0) { entries.GroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55537,9 +55521,9 @@ const se_ImportInstanceLaunchSpecification = ( entries[loc] = value; }); } - if (input.GroupNames != null) { - const memberEntries = se_SecurityGroupStringList(input.GroupNames, context); - if (input.GroupNames?.length === 0) { + if (input[_GNr] != null) { + const memberEntries = se_SecurityGroupStringList(input[_GNr], context); + if (input[_GNr]?.length === 0) { entries.GroupName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55547,30 +55531,30 @@ const se_ImportInstanceLaunchSpecification = ( entries[loc] = value; }); } - if (input.InstanceInitiatedShutdownBehavior != null) { - entries["InstanceInitiatedShutdownBehavior"] = input.InstanceInitiatedShutdownBehavior; + if (input[_IISB] != null) { + entries[_IISB] = input[_IISB]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.Monitoring != null) { - entries["Monitoring"] = input.Monitoring; + if (input[_Mon] != null) { + entries[_Mon] = input[_Mon]; } - if (input.Placement != null) { - const memberEntries = se_Placement(input.Placement, context); + if (input[_Pl] != null) { + const memberEntries = se_Placement(input[_Pl], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Placement.${key}`; entries[loc] = value; }); } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.UserData != null) { - const memberEntries = se_UserData(input.UserData, context); + if (input[_UD] != null) { + const memberEntries = se_UserData(input[_UD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `UserData.${key}`; entries[loc] = value; @@ -55584,12 +55568,12 @@ const se_ImportInstanceLaunchSpecification = ( */ const se_ImportInstanceRequest = (input: ImportInstanceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DiskImages != null) { - const memberEntries = se_DiskImageList(input.DiskImages, context); - if (input.DiskImages?.length === 0) { + if (input[_DIis] != null) { + const memberEntries = se_DiskImageList(input[_DIis], context); + if (input[_DIis]?.length === 0) { entries.DiskImage = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55597,18 +55581,18 @@ const se_ImportInstanceRequest = (input: ImportInstanceRequest, context: __Serde entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LaunchSpecification != null) { - const memberEntries = se_ImportInstanceLaunchSpecification(input.LaunchSpecification, context); + if (input[_LSa] != null) { + const memberEntries = se_ImportInstanceLaunchSpecification(input[_LSa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchSpecification.${key}`; entries[loc] = value; }); } - if (input.Platform != null) { - entries["Platform"] = input.Platform; + if (input[_Pla] != null) { + entries[_Pla] = input[_Pla]; } return entries; }; @@ -55618,18 +55602,18 @@ const se_ImportInstanceRequest = (input: ImportInstanceRequest, context: __Serde */ const se_ImportKeyPairRequest = (input: ImportKeyPairRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.PublicKeyMaterial != null) { - entries["PublicKeyMaterial"] = context.base64Encoder(input.PublicKeyMaterial); + if (input[_PKM] != null) { + entries[_PKM] = context.base64Encoder(input[_PKM]); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55645,41 +55629,41 @@ const se_ImportKeyPairRequest = (input: ImportKeyPairRequest, context: __SerdeCo */ const se_ImportSnapshotRequest = (input: ImportSnapshotRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientData != null) { - const memberEntries = se_ClientData(input.ClientData, context); + if (input[_CD] != null) { + const memberEntries = se_ClientData(input[_CD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ClientData.${key}`; entries[loc] = value; }); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DiskContainer != null) { - const memberEntries = se_SnapshotDiskContainer(input.DiskContainer, context); + if (input[_DCis] != null) { + const memberEntries = se_SnapshotDiskContainer(input[_DCis], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DiskContainer.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RNo] != null) { + entries[_RNo] = input[_RNo]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55727,24 +55711,24 @@ const se_ImportTaskIdList = (input: string[], context: __SerdeContext): any => { */ const se_ImportVolumeRequest = (input: ImportVolumeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Image != null) { - const memberEntries = se_DiskImageDetail(input.Image, context); + if (input[_Im] != null) { + const memberEntries = se_DiskImageDetail(input[_Im], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Image.${key}`; entries[loc] = value; }); } - if (input.Volume != null) { - const memberEntries = se_VolumeDetail(input.Volume, context); + if (input[_Vo] != null) { + const memberEntries = se_VolumeDetail(input[_Vo], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Volume.${key}`; entries[loc] = value; @@ -55777,21 +55761,21 @@ const se_InstanceBlockDeviceMappingSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DeviceName != null) { - entries["DeviceName"] = input.DeviceName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Ebs != null) { - const memberEntries = se_EbsInstanceBlockDeviceSpecification(input.Ebs, context); + if (input[_E] != null) { + const memberEntries = se_EbsInstanceBlockDeviceSpecification(input[_E], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Ebs.${key}`; entries[loc] = value; }); } - if (input.NoDevice != null) { - entries["NoDevice"] = input.NoDevice; + if (input[_ND] != null) { + entries[_ND] = input[_ND]; } - if (input.VirtualName != null) { - entries["VirtualName"] = input.VirtualName; + if (input[_VN] != null) { + entries[_VN] = input[_VN]; } return entries; }; @@ -55848,11 +55832,11 @@ const se_InstanceCreditSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.CpuCredits != null) { - entries["CpuCredits"] = input.CpuCredits; + if (input[_CCp] != null) { + entries[_CCp] = input[_CCp]; } return entries; }; @@ -55865,9 +55849,9 @@ const se_InstanceEventWindowAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55875,9 +55859,9 @@ const se_InstanceEventWindowAssociationRequest = ( entries[loc] = value; }); } - if (input.InstanceTags != null) { - const memberEntries = se_TagList(input.InstanceTags, context); - if (input.InstanceTags?.length === 0) { + if (input[_ITnsta] != null) { + const memberEntries = se_TagList(input[_ITnsta], context); + if (input[_ITnsta]?.length === 0) { entries.InstanceTag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55885,9 +55869,9 @@ const se_InstanceEventWindowAssociationRequest = ( entries[loc] = value; }); } - if (input.DedicatedHostIds != null) { - const memberEntries = se_DedicatedHostIdList(input.DedicatedHostIds, context); - if (input.DedicatedHostIds?.length === 0) { + if (input[_DHI] != null) { + const memberEntries = se_DedicatedHostIdList(input[_DHI], context); + if (input[_DHI]?.length === 0) { entries.DedicatedHostId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55906,9 +55890,9 @@ const se_InstanceEventWindowDisassociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55916,9 +55900,9 @@ const se_InstanceEventWindowDisassociationRequest = ( entries[loc] = value; }); } - if (input.InstanceTags != null) { - const memberEntries = se_TagList(input.InstanceTags, context); - if (input.InstanceTags?.length === 0) { + if (input[_ITnsta] != null) { + const memberEntries = se_TagList(input[_ITnsta], context); + if (input[_ITnsta]?.length === 0) { entries.InstanceTag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55926,9 +55910,9 @@ const se_InstanceEventWindowDisassociationRequest = ( entries[loc] = value; }); } - if (input.DedicatedHostIds != null) { - const memberEntries = se_DedicatedHostIdList(input.DedicatedHostIds, context); - if (input.DedicatedHostIds?.length === 0) { + if (input[_DHI] != null) { + const memberEntries = se_DedicatedHostIdList(input[_DHI], context); + if (input[_DHI]?.length === 0) { entries.DedicatedHostId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -55963,17 +55947,17 @@ const se_InstanceEventWindowTimeRangeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.StartWeekDay != null) { - entries["StartWeekDay"] = input.StartWeekDay; + if (input[_SWD] != null) { + entries[_SWD] = input[_SWD]; } - if (input.StartHour != null) { - entries["StartHour"] = input.StartHour; + if (input[_SH] != null) { + entries[_SH] = input[_SH]; } - if (input.EndWeekDay != null) { - entries["EndWeekDay"] = input.EndWeekDay; + if (input[_EWD] != null) { + entries[_EWD] = input[_EWD]; } - if (input.EndHour != null) { - entries["EndHour"] = input.EndHour; + if (input[_EH] != null) { + entries[_EH] = input[_EH]; } return entries; }; @@ -56053,11 +56037,11 @@ const se_InstanceIdStringList = (input: string[], context: __SerdeContext): any */ const se_InstanceIpv6Address = (input: InstanceIpv6Address, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv6Address != null) { - entries["Ipv6Address"] = input.Ipv6Address; + if (input[_IApv] != null) { + entries[_IApv] = input[_IApv]; } - if (input.IsPrimaryIpv6 != null) { - entries["IsPrimaryIpv6"] = input.IsPrimaryIpv6; + if (input[_IPIs] != null) { + entries[_IPIs] = input[_IPIs]; } return entries; }; @@ -56105,8 +56089,8 @@ const se_InstanceIpv6AddressListRequest = (input: InstanceIpv6AddressRequest[], */ const se_InstanceIpv6AddressRequest = (input: InstanceIpv6AddressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv6Address != null) { - entries["Ipv6Address"] = input.Ipv6Address; + if (input[_IApv] != null) { + entries[_IApv] = input[_IApv]; } return entries; }; @@ -56119,8 +56103,8 @@ const se_InstanceMaintenanceOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoRecovery != null) { - entries["AutoRecovery"] = input.AutoRecovery; + if (input[_ARu] != null) { + entries[_ARu] = input[_ARu]; } return entries; }; @@ -56130,11 +56114,11 @@ const se_InstanceMaintenanceOptionsRequest = ( */ const se_InstanceMarketOptionsRequest = (input: InstanceMarketOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.MarketType != null) { - entries["MarketType"] = input.MarketType; + if (input[_MT] != null) { + entries[_MT] = input[_MT]; } - if (input.SpotOptions != null) { - const memberEntries = se_SpotMarketOptions(input.SpotOptions, context); + if (input[_SO] != null) { + const memberEntries = se_SpotMarketOptions(input[_SO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SpotOptions.${key}`; entries[loc] = value; @@ -56148,20 +56132,20 @@ const se_InstanceMarketOptionsRequest = (input: InstanceMarketOptionsRequest, co */ const se_InstanceMetadataOptionsRequest = (input: InstanceMetadataOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.HttpTokens != null) { - entries["HttpTokens"] = input.HttpTokens; + if (input[_HT] != null) { + entries[_HT] = input[_HT]; } - if (input.HttpPutResponseHopLimit != null) { - entries["HttpPutResponseHopLimit"] = input.HttpPutResponseHopLimit; + if (input[_HPRHL] != null) { + entries[_HPRHL] = input[_HPRHL]; } - if (input.HttpEndpoint != null) { - entries["HttpEndpoint"] = input.HttpEndpoint; + if (input[_HE] != null) { + entries[_HE] = input[_HE]; } - if (input.HttpProtocolIpv6 != null) { - entries["HttpProtocolIpv6"] = input.HttpProtocolIpv6; + if (input[_HPI] != null) { + entries[_HPI] = input[_HPI]; } - if (input.InstanceMetadataTags != null) { - entries["InstanceMetadataTags"] = input.InstanceMetadataTags; + if (input[_IMT] != null) { + entries[_IMT] = input[_IMT]; } return entries; }; @@ -56174,21 +56158,21 @@ const se_InstanceNetworkInterfaceSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociatePublicIpAddress != null) { - entries["AssociatePublicIpAddress"] = input.AssociatePublicIpAddress; + if (input[_APIAs] != null) { + entries[_APIAs] = input[_APIAs]; } - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DeviceIndex != null) { - entries["DeviceIndex"] = input.DeviceIndex; + if (input[_DIev] != null) { + entries[_DIev] = input[_DIev]; } - if (input.Groups != null) { - const memberEntries = se_SecurityGroupIdStringList(input.Groups, context); - if (input.Groups?.length === 0) { + if (input[_G] != null) { + const memberEntries = se_SecurityGroupIdStringList(input[_G], context); + if (input[_G]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56196,12 +56180,12 @@ const se_InstanceNetworkInterfaceSpecification = ( entries[loc] = value; }); } - if (input.Ipv6AddressCount != null) { - entries["Ipv6AddressCount"] = input.Ipv6AddressCount; + if (input[_IAC] != null) { + entries[_IAC] = input[_IAC]; } - if (input.Ipv6Addresses != null) { - const memberEntries = se_InstanceIpv6AddressList(input.Ipv6Addresses, context); - if (input.Ipv6Addresses?.length === 0) { + if (input[_IA] != null) { + const memberEntries = se_InstanceIpv6AddressList(input[_IA], context); + if (input[_IA]?.length === 0) { entries.Ipv6Addresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56209,15 +56193,15 @@ const se_InstanceNetworkInterfaceSpecification = ( entries[loc] = value; }); } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_PrivateIpAddressSpecificationList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_PrivateIpAddressSpecificationList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56225,24 +56209,24 @@ const se_InstanceNetworkInterfaceSpecification = ( entries[loc] = value; }); } - if (input.SecondaryPrivateIpAddressCount != null) { - entries["SecondaryPrivateIpAddressCount"] = input.SecondaryPrivateIpAddressCount; + if (input[_SPIAC] != null) { + entries[_SPIAC] = input[_SPIAC]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.AssociateCarrierIpAddress != null) { - entries["AssociateCarrierIpAddress"] = input.AssociateCarrierIpAddress; + if (input[_ACIA] != null) { + entries[_ACIA] = input[_ACIA]; } - if (input.InterfaceType != null) { - entries["InterfaceType"] = input.InterfaceType; + if (input[_ITn] != null) { + entries[_ITn] = input[_ITn]; } - if (input.NetworkCardIndex != null) { - entries["NetworkCardIndex"] = input.NetworkCardIndex; + if (input[_NCI] != null) { + entries[_NCI] = input[_NCI]; } - if (input.Ipv4Prefixes != null) { - const memberEntries = se_Ipv4PrefixList(input.Ipv4Prefixes, context); - if (input.Ipv4Prefixes?.length === 0) { + if (input[_IPp] != null) { + const memberEntries = se_Ipv4PrefixList(input[_IPp], context); + if (input[_IPp]?.length === 0) { entries.Ipv4Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56250,12 +56234,12 @@ const se_InstanceNetworkInterfaceSpecification = ( entries[loc] = value; }); } - if (input.Ipv4PrefixCount != null) { - entries["Ipv4PrefixCount"] = input.Ipv4PrefixCount; + if (input[_IPCp] != null) { + entries[_IPCp] = input[_IPCp]; } - if (input.Ipv6Prefixes != null) { - const memberEntries = se_Ipv6PrefixList(input.Ipv6Prefixes, context); - if (input.Ipv6Prefixes?.length === 0) { + if (input[_IP] != null) { + const memberEntries = se_Ipv6PrefixList(input[_IP], context); + if (input[_IP]?.length === 0) { entries.Ipv6Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56263,21 +56247,21 @@ const se_InstanceNetworkInterfaceSpecification = ( entries[loc] = value; }); } - if (input.Ipv6PrefixCount != null) { - entries["Ipv6PrefixCount"] = input.Ipv6PrefixCount; + if (input[_IPC] != null) { + entries[_IPC] = input[_IPC]; } - if (input.PrimaryIpv6 != null) { - entries["PrimaryIpv6"] = input.PrimaryIpv6; + if (input[_PIr] != null) { + entries[_PIr] = input[_PIr]; } - if (input.EnaSrdSpecification != null) { - const memberEntries = se_EnaSrdSpecificationRequest(input.EnaSrdSpecification, context); + if (input[_ESS] != null) { + const memberEntries = se_EnaSrdSpecificationRequest(input[_ESS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnaSrdSpecification.${key}`; entries[loc] = value; }); } - if (input.ConnectionTrackingSpecification != null) { - const memberEntries = se_ConnectionTrackingSpecificationRequest(input.ConnectionTrackingSpecification, context); + if (input[_CTS] != null) { + const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionTrackingSpecification.${key}`; entries[loc] = value; @@ -56313,23 +56297,23 @@ const se_InstanceNetworkInterfaceSpecificationList = ( */ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeContext): any => { const entries: any = {}; - if (input.VCpuCount != null) { - const memberEntries = se_VCpuCountRange(input.VCpuCount, context); + if (input[_VCC] != null) { + const memberEntries = se_VCpuCountRange(input[_VCC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `VCpuCount.${key}`; entries[loc] = value; }); } - if (input.MemoryMiB != null) { - const memberEntries = se_MemoryMiB(input.MemoryMiB, context); + if (input[_MMB] != null) { + const memberEntries = se_MemoryMiB(input[_MMB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MemoryMiB.${key}`; entries[loc] = value; }); } - if (input.CpuManufacturers != null) { - const memberEntries = se_CpuManufacturerSet(input.CpuManufacturers, context); - if (input.CpuManufacturers?.length === 0) { + if (input[_CM] != null) { + const memberEntries = se_CpuManufacturerSet(input[_CM], context); + if (input[_CM]?.length === 0) { entries.CpuManufacturerSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56337,16 +56321,16 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.MemoryGiBPerVCpu != null) { - const memberEntries = se_MemoryGiBPerVCpu(input.MemoryGiBPerVCpu, context); + if (input[_MGBPVC] != null) { + const memberEntries = se_MemoryGiBPerVCpu(input[_MGBPVC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MemoryGiBPerVCpu.${key}`; entries[loc] = value; }); } - if (input.ExcludedInstanceTypes != null) { - const memberEntries = se_ExcludedInstanceTypeSet(input.ExcludedInstanceTypes, context); - if (input.ExcludedInstanceTypes?.length === 0) { + if (input[_EIT] != null) { + const memberEntries = se_ExcludedInstanceTypeSet(input[_EIT], context); + if (input[_EIT]?.length === 0) { entries.ExcludedInstanceTypeSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56354,9 +56338,9 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.InstanceGenerations != null) { - const memberEntries = se_InstanceGenerationSet(input.InstanceGenerations, context); - if (input.InstanceGenerations?.length === 0) { + if (input[_IG] != null) { + const memberEntries = se_InstanceGenerationSet(input[_IG], context); + if (input[_IG]?.length === 0) { entries.InstanceGenerationSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56364,34 +56348,34 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.SpotMaxPricePercentageOverLowestPrice != null) { - entries["SpotMaxPricePercentageOverLowestPrice"] = input.SpotMaxPricePercentageOverLowestPrice; + if (input[_SMPPOLP] != null) { + entries[_SMPPOLP] = input[_SMPPOLP]; } - if (input.OnDemandMaxPricePercentageOverLowestPrice != null) { - entries["OnDemandMaxPricePercentageOverLowestPrice"] = input.OnDemandMaxPricePercentageOverLowestPrice; + if (input[_ODMPPOLP] != null) { + entries[_ODMPPOLP] = input[_ODMPPOLP]; } - if (input.BareMetal != null) { - entries["BareMetal"] = input.BareMetal; + if (input[_BMa] != null) { + entries[_BMa] = input[_BMa]; } - if (input.BurstablePerformance != null) { - entries["BurstablePerformance"] = input.BurstablePerformance; + if (input[_BP] != null) { + entries[_BP] = input[_BP]; } - if (input.RequireHibernateSupport != null) { - entries["RequireHibernateSupport"] = input.RequireHibernateSupport; + if (input[_RHS] != null) { + entries[_RHS] = input[_RHS]; } - if (input.NetworkInterfaceCount != null) { - const memberEntries = se_NetworkInterfaceCount(input.NetworkInterfaceCount, context); + if (input[_NIC] != null) { + const memberEntries = se_NetworkInterfaceCount(input[_NIC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkInterfaceCount.${key}`; entries[loc] = value; }); } - if (input.LocalStorage != null) { - entries["LocalStorage"] = input.LocalStorage; + if (input[_LSo] != null) { + entries[_LSo] = input[_LSo]; } - if (input.LocalStorageTypes != null) { - const memberEntries = se_LocalStorageTypeSet(input.LocalStorageTypes, context); - if (input.LocalStorageTypes?.length === 0) { + if (input[_LST] != null) { + const memberEntries = se_LocalStorageTypeSet(input[_LST], context); + if (input[_LST]?.length === 0) { entries.LocalStorageTypeSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56399,23 +56383,23 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.TotalLocalStorageGB != null) { - const memberEntries = se_TotalLocalStorageGB(input.TotalLocalStorageGB, context); + if (input[_TLSGB] != null) { + const memberEntries = se_TotalLocalStorageGB(input[_TLSGB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TotalLocalStorageGB.${key}`; entries[loc] = value; }); } - if (input.BaselineEbsBandwidthMbps != null) { - const memberEntries = se_BaselineEbsBandwidthMbps(input.BaselineEbsBandwidthMbps, context); + if (input[_BEBM] != null) { + const memberEntries = se_BaselineEbsBandwidthMbps(input[_BEBM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `BaselineEbsBandwidthMbps.${key}`; entries[loc] = value; }); } - if (input.AcceleratorTypes != null) { - const memberEntries = se_AcceleratorTypeSet(input.AcceleratorTypes, context); - if (input.AcceleratorTypes?.length === 0) { + if (input[_ATc] != null) { + const memberEntries = se_AcceleratorTypeSet(input[_ATc], context); + if (input[_ATc]?.length === 0) { entries.AcceleratorTypeSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56423,16 +56407,16 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.AcceleratorCount != null) { - const memberEntries = se_AcceleratorCount(input.AcceleratorCount, context); + if (input[_ACc] != null) { + const memberEntries = se_AcceleratorCount(input[_ACc], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AcceleratorCount.${key}`; entries[loc] = value; }); } - if (input.AcceleratorManufacturers != null) { - const memberEntries = se_AcceleratorManufacturerSet(input.AcceleratorManufacturers, context); - if (input.AcceleratorManufacturers?.length === 0) { + if (input[_AM] != null) { + const memberEntries = se_AcceleratorManufacturerSet(input[_AM], context); + if (input[_AM]?.length === 0) { entries.AcceleratorManufacturerSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56440,9 +56424,9 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.AcceleratorNames != null) { - const memberEntries = se_AcceleratorNameSet(input.AcceleratorNames, context); - if (input.AcceleratorNames?.length === 0) { + if (input[_ANc] != null) { + const memberEntries = se_AcceleratorNameSet(input[_ANc], context); + if (input[_ANc]?.length === 0) { entries.AcceleratorNameSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56450,23 +56434,23 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo entries[loc] = value; }); } - if (input.AcceleratorTotalMemoryMiB != null) { - const memberEntries = se_AcceleratorTotalMemoryMiB(input.AcceleratorTotalMemoryMiB, context); + if (input[_ATMMB] != null) { + const memberEntries = se_AcceleratorTotalMemoryMiB(input[_ATMMB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AcceleratorTotalMemoryMiB.${key}`; entries[loc] = value; }); } - if (input.NetworkBandwidthGbps != null) { - const memberEntries = se_NetworkBandwidthGbps(input.NetworkBandwidthGbps, context); + if (input[_NBGe] != null) { + const memberEntries = se_NetworkBandwidthGbps(input[_NBGe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkBandwidthGbps.${key}`; entries[loc] = value; }); } - if (input.AllowedInstanceTypes != null) { - const memberEntries = se_AllowedInstanceTypeSet(input.AllowedInstanceTypes, context); - if (input.AllowedInstanceTypes?.length === 0) { + if (input[_AIT] != null) { + const memberEntries = se_AllowedInstanceTypeSet(input[_AIT], context); + if (input[_AIT]?.length === 0) { entries.AllowedInstanceTypeSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56482,23 +56466,23 @@ const se_InstanceRequirements = (input: InstanceRequirements, context: __SerdeCo */ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VCpuCount != null) { - const memberEntries = se_VCpuCountRangeRequest(input.VCpuCount, context); + if (input[_VCC] != null) { + const memberEntries = se_VCpuCountRangeRequest(input[_VCC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `VCpuCount.${key}`; entries[loc] = value; }); } - if (input.MemoryMiB != null) { - const memberEntries = se_MemoryMiBRequest(input.MemoryMiB, context); + if (input[_MMB] != null) { + const memberEntries = se_MemoryMiBRequest(input[_MMB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MemoryMiB.${key}`; entries[loc] = value; }); } - if (input.CpuManufacturers != null) { - const memberEntries = se_CpuManufacturerSet(input.CpuManufacturers, context); - if (input.CpuManufacturers?.length === 0) { + if (input[_CM] != null) { + const memberEntries = se_CpuManufacturerSet(input[_CM], context); + if (input[_CM]?.length === 0) { entries.CpuManufacturer = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56506,16 +56490,16 @@ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, cont entries[loc] = value; }); } - if (input.MemoryGiBPerVCpu != null) { - const memberEntries = se_MemoryGiBPerVCpuRequest(input.MemoryGiBPerVCpu, context); + if (input[_MGBPVC] != null) { + const memberEntries = se_MemoryGiBPerVCpuRequest(input[_MGBPVC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MemoryGiBPerVCpu.${key}`; entries[loc] = value; }); } - if (input.ExcludedInstanceTypes != null) { - const memberEntries = se_ExcludedInstanceTypeSet(input.ExcludedInstanceTypes, context); - if (input.ExcludedInstanceTypes?.length === 0) { + if (input[_EIT] != null) { + const memberEntries = se_ExcludedInstanceTypeSet(input[_EIT], context); + if (input[_EIT]?.length === 0) { entries.ExcludedInstanceType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56523,9 +56507,9 @@ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, cont entries[loc] = value; }); } - if (input.InstanceGenerations != null) { - const memberEntries = se_InstanceGenerationSet(input.InstanceGenerations, context); - if (input.InstanceGenerations?.length === 0) { + if (input[_IG] != null) { + const memberEntries = se_InstanceGenerationSet(input[_IG], context); + if (input[_IG]?.length === 0) { entries.InstanceGeneration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56533,34 +56517,34 @@ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, cont entries[loc] = value; }); } - if (input.SpotMaxPricePercentageOverLowestPrice != null) { - entries["SpotMaxPricePercentageOverLowestPrice"] = input.SpotMaxPricePercentageOverLowestPrice; + if (input[_SMPPOLP] != null) { + entries[_SMPPOLP] = input[_SMPPOLP]; } - if (input.OnDemandMaxPricePercentageOverLowestPrice != null) { - entries["OnDemandMaxPricePercentageOverLowestPrice"] = input.OnDemandMaxPricePercentageOverLowestPrice; + if (input[_ODMPPOLP] != null) { + entries[_ODMPPOLP] = input[_ODMPPOLP]; } - if (input.BareMetal != null) { - entries["BareMetal"] = input.BareMetal; + if (input[_BMa] != null) { + entries[_BMa] = input[_BMa]; } - if (input.BurstablePerformance != null) { - entries["BurstablePerformance"] = input.BurstablePerformance; + if (input[_BP] != null) { + entries[_BP] = input[_BP]; } - if (input.RequireHibernateSupport != null) { - entries["RequireHibernateSupport"] = input.RequireHibernateSupport; + if (input[_RHS] != null) { + entries[_RHS] = input[_RHS]; } - if (input.NetworkInterfaceCount != null) { - const memberEntries = se_NetworkInterfaceCountRequest(input.NetworkInterfaceCount, context); + if (input[_NIC] != null) { + const memberEntries = se_NetworkInterfaceCountRequest(input[_NIC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkInterfaceCount.${key}`; entries[loc] = value; }); } - if (input.LocalStorage != null) { - entries["LocalStorage"] = input.LocalStorage; + if (input[_LSo] != null) { + entries[_LSo] = input[_LSo]; } - if (input.LocalStorageTypes != null) { - const memberEntries = se_LocalStorageTypeSet(input.LocalStorageTypes, context); - if (input.LocalStorageTypes?.length === 0) { + if (input[_LST] != null) { + const memberEntries = se_LocalStorageTypeSet(input[_LST], context); + if (input[_LST]?.length === 0) { entries.LocalStorageType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56568,23 +56552,23 @@ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, cont entries[loc] = value; }); } - if (input.TotalLocalStorageGB != null) { - const memberEntries = se_TotalLocalStorageGBRequest(input.TotalLocalStorageGB, context); + if (input[_TLSGB] != null) { + const memberEntries = se_TotalLocalStorageGBRequest(input[_TLSGB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TotalLocalStorageGB.${key}`; entries[loc] = value; }); } - if (input.BaselineEbsBandwidthMbps != null) { - const memberEntries = se_BaselineEbsBandwidthMbpsRequest(input.BaselineEbsBandwidthMbps, context); + if (input[_BEBM] != null) { + const memberEntries = se_BaselineEbsBandwidthMbpsRequest(input[_BEBM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `BaselineEbsBandwidthMbps.${key}`; entries[loc] = value; }); } - if (input.AcceleratorTypes != null) { - const memberEntries = se_AcceleratorTypeSet(input.AcceleratorTypes, context); - if (input.AcceleratorTypes?.length === 0) { + if (input[_ATc] != null) { + const memberEntries = se_AcceleratorTypeSet(input[_ATc], context); + if (input[_ATc]?.length === 0) { entries.AcceleratorType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56592,16 +56576,16 @@ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, cont entries[loc] = value; }); } - if (input.AcceleratorCount != null) { - const memberEntries = se_AcceleratorCountRequest(input.AcceleratorCount, context); + if (input[_ACc] != null) { + const memberEntries = se_AcceleratorCountRequest(input[_ACc], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AcceleratorCount.${key}`; entries[loc] = value; }); } - if (input.AcceleratorManufacturers != null) { - const memberEntries = se_AcceleratorManufacturerSet(input.AcceleratorManufacturers, context); - if (input.AcceleratorManufacturers?.length === 0) { + if (input[_AM] != null) { + const memberEntries = se_AcceleratorManufacturerSet(input[_AM], context); + if (input[_AM]?.length === 0) { entries.AcceleratorManufacturer = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56609,9 +56593,9 @@ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, cont entries[loc] = value; }); } - if (input.AcceleratorNames != null) { - const memberEntries = se_AcceleratorNameSet(input.AcceleratorNames, context); - if (input.AcceleratorNames?.length === 0) { + if (input[_ANc] != null) { + const memberEntries = se_AcceleratorNameSet(input[_ANc], context); + if (input[_ANc]?.length === 0) { entries.AcceleratorName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56619,23 +56603,23 @@ const se_InstanceRequirementsRequest = (input: InstanceRequirementsRequest, cont entries[loc] = value; }); } - if (input.AcceleratorTotalMemoryMiB != null) { - const memberEntries = se_AcceleratorTotalMemoryMiBRequest(input.AcceleratorTotalMemoryMiB, context); + if (input[_ATMMB] != null) { + const memberEntries = se_AcceleratorTotalMemoryMiBRequest(input[_ATMMB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AcceleratorTotalMemoryMiB.${key}`; entries[loc] = value; }); } - if (input.NetworkBandwidthGbps != null) { - const memberEntries = se_NetworkBandwidthGbpsRequest(input.NetworkBandwidthGbps, context); + if (input[_NBGe] != null) { + const memberEntries = se_NetworkBandwidthGbpsRequest(input[_NBGe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkBandwidthGbps.${key}`; entries[loc] = value; }); } - if (input.AllowedInstanceTypes != null) { - const memberEntries = se_AllowedInstanceTypeSet(input.AllowedInstanceTypes, context); - if (input.AllowedInstanceTypes?.length === 0) { + if (input[_AIT] != null) { + const memberEntries = se_AllowedInstanceTypeSet(input[_AIT], context); + if (input[_AIT]?.length === 0) { entries.AllowedInstanceType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56654,9 +56638,9 @@ const se_InstanceRequirementsWithMetadataRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ArchitectureTypes != null) { - const memberEntries = se_ArchitectureTypeSet(input.ArchitectureTypes, context); - if (input.ArchitectureTypes?.length === 0) { + if (input[_ATr] != null) { + const memberEntries = se_ArchitectureTypeSet(input[_ATr], context); + if (input[_ATr]?.length === 0) { entries.ArchitectureType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56664,9 +56648,9 @@ const se_InstanceRequirementsWithMetadataRequest = ( entries[loc] = value; }); } - if (input.VirtualizationTypes != null) { - const memberEntries = se_VirtualizationTypeSet(input.VirtualizationTypes, context); - if (input.VirtualizationTypes?.length === 0) { + if (input[_VTi] != null) { + const memberEntries = se_VirtualizationTypeSet(input[_VTi], context); + if (input[_VTi]?.length === 0) { entries.VirtualizationType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56674,8 +56658,8 @@ const se_InstanceRequirementsWithMetadataRequest = ( entries[loc] = value; }); } - if (input.InstanceRequirements != null) { - const memberEntries = se_InstanceRequirementsRequest(input.InstanceRequirements, context); + if (input[_IR] != null) { + const memberEntries = se_InstanceRequirementsRequest(input[_IR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirements.${key}`; entries[loc] = value; @@ -56689,15 +56673,15 @@ const se_InstanceRequirementsWithMetadataRequest = ( */ const se_InstanceSpecification = (input: InstanceSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.ExcludeBootVolume != null) { - entries["ExcludeBootVolume"] = input.ExcludeBootVolume; + if (input[_EBV] != null) { + entries[_EBV] = input[_EBV]; } - if (input.ExcludeDataVolumeIds != null) { - const memberEntries = se_VolumeIdStringList(input.ExcludeDataVolumeIds, context); - if (input.ExcludeDataVolumeIds?.length === 0) { + if (input[_EDVI] != null) { + const memberEntries = se_VolumeIdStringList(input[_EDVI], context); + if (input[_EDVI]?.length === 0) { entries.ExcludeDataVolumeId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56761,9 +56745,9 @@ const se_InstanceTypes = (input: string[], context: __SerdeContext): any => { */ const se_IntegrateServices = (input: IntegrateServices, context: __SerdeContext): any => { const entries: any = {}; - if (input.AthenaIntegrations != null) { - const memberEntries = se_AthenaIntegrationsSet(input.AthenaIntegrations, context); - if (input.AthenaIntegrations?.length === 0) { + if (input[_AIth] != null) { + const memberEntries = se_AthenaIntegrationsSet(input[_AIth], context); + if (input[_AIth]?.length === 0) { entries.AthenaIntegration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56795,11 +56779,11 @@ const se_InternetGatewayIdList = (input: string[], context: __SerdeContext): any */ const se_IpamCidrAuthorizationContext = (input: IpamCidrAuthorizationContext, context: __SerdeContext): any => { const entries: any = {}; - if (input.Message != null) { - entries["Message"] = input.Message; + if (input[_Me] != null) { + entries[_Me] = input[_Me]; } - if (input.Signature != null) { - entries["Signature"] = input.Signature; + if (input[_Si] != null) { + entries[_Si] = input[_Si]; } return entries; }; @@ -56841,17 +56825,17 @@ const se_IpamPoolAllocationDisallowedCidrs = (input: string[], context: __SerdeC */ const se_IpamPoolSourceResourceRequest = (input: IpamPoolSourceResourceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceId != null) { - entries["ResourceId"] = input.ResourceId; + if (input[_RIeso] != null) { + entries[_RIeso] = input[_RIeso]; } - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.ResourceRegion != null) { - entries["ResourceRegion"] = input.ResourceRegion; + if (input[_RRe] != null) { + entries[_RRe] = input[_RRe]; } - if (input.ResourceOwner != null) { - entries["ResourceOwner"] = input.ResourceOwner; + if (input[_RO] != null) { + entries[_RO] = input[_RO]; } return entries; }; @@ -56877,15 +56861,15 @@ const se_IpList = (input: string[], context: __SerdeContext): any => { */ const se_IpPermission = (input: IpPermission, context: __SerdeContext): any => { const entries: any = {}; - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.IpProtocol != null) { - entries["IpProtocol"] = input.IpProtocol; + if (input[_IPpr] != null) { + entries[_IPpr] = input[_IPpr]; } - if (input.IpRanges != null) { - const memberEntries = se_IpRangeList(input.IpRanges, context); - if (input.IpRanges?.length === 0) { + if (input[_IRp] != null) { + const memberEntries = se_IpRangeList(input[_IRp], context); + if (input[_IRp]?.length === 0) { entries.IpRanges = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56893,9 +56877,9 @@ const se_IpPermission = (input: IpPermission, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.Ipv6Ranges != null) { - const memberEntries = se_Ipv6RangeList(input.Ipv6Ranges, context); - if (input.Ipv6Ranges?.length === 0) { + if (input[_IRpv] != null) { + const memberEntries = se_Ipv6RangeList(input[_IRpv], context); + if (input[_IRpv]?.length === 0) { entries.Ipv6Ranges = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56903,9 +56887,9 @@ const se_IpPermission = (input: IpPermission, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.PrefixListIds != null) { - const memberEntries = se_PrefixListIdList(input.PrefixListIds, context); - if (input.PrefixListIds?.length === 0) { + if (input[_PLIr] != null) { + const memberEntries = se_PrefixListIdList(input[_PLIr], context); + if (input[_PLIr]?.length === 0) { entries.PrefixListIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56913,12 +56897,12 @@ const se_IpPermission = (input: IpPermission, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } - if (input.UserIdGroupPairs != null) { - const memberEntries = se_UserIdGroupPairList(input.UserIdGroupPairs, context); - if (input.UserIdGroupPairs?.length === 0) { + if (input[_UIGP] != null) { + const memberEntries = se_UserIdGroupPairList(input[_UIGP], context); + if (input[_UIGP]?.length === 0) { entries.Groups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -56969,11 +56953,11 @@ const se_IpPrefixList = (input: string[], context: __SerdeContext): any => { */ const se_IpRange = (input: IpRange, context: __SerdeContext): any => { const entries: any = {}; - if (input.CidrIp != null) { - entries["CidrIp"] = input.CidrIp; + if (input[_CIi] != null) { + entries[_CIi] = input[_CIi]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } return entries; }; @@ -57021,8 +57005,8 @@ const se_Ipv4PrefixList = (input: Ipv4PrefixSpecificationRequest[], context: __S */ const se_Ipv4PrefixSpecificationRequest = (input: Ipv4PrefixSpecificationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv4Prefix != null) { - entries["Ipv4Prefix"] = input.Ipv4Prefix; + if (input[_IPpvr] != null) { + entries[_IPpvr] = input[_IPpvr]; } return entries; }; @@ -57083,8 +57067,8 @@ const se_Ipv6PrefixList = (input: Ipv6PrefixSpecificationRequest[], context: __S */ const se_Ipv6PrefixSpecificationRequest = (input: Ipv6PrefixSpecificationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv6Prefix != null) { - entries["Ipv6Prefix"] = input.Ipv6Prefix; + if (input[_IPpvre] != null) { + entries[_IPpvre] = input[_IPpvre]; } return entries; }; @@ -57094,11 +57078,11 @@ const se_Ipv6PrefixSpecificationRequest = (input: Ipv6PrefixSpecificationRequest */ const se_Ipv6Range = (input: Ipv6Range, context: __SerdeContext): any => { const entries: any = {}; - if (input.CidrIpv6 != null) { - entries["CidrIpv6"] = input.CidrIpv6; + if (input[_CIid] != null) { + entries[_CIid] = input[_CIid]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } return entries; }; @@ -57159,17 +57143,17 @@ const se_KeyPairIdStringList = (input: string[], context: __SerdeContext): any = */ const se_LaunchPermission = (input: LaunchPermission, context: __SerdeContext): any => { const entries: any = {}; - if (input.Group != null) { - entries["Group"] = input.Group; + if (input[_Gr] != null) { + entries[_Gr] = input[_Gr]; } - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } - if (input.OrganizationArn != null) { - entries["OrganizationArn"] = input.OrganizationArn; + if (input[_OAr] != null) { + entries[_OAr] = input[_OAr]; } - if (input.OrganizationalUnitArn != null) { - entries["OrganizationalUnitArn"] = input.OrganizationalUnitArn; + if (input[_OUA] != null) { + entries[_OUA] = input[_OUA]; } return entries; }; @@ -57198,9 +57182,9 @@ const se_LaunchPermissionList = (input: LaunchPermission[], context: __SerdeCont */ const se_LaunchPermissionModifications = (input: LaunchPermissionModifications, context: __SerdeContext): any => { const entries: any = {}; - if (input.Add != null) { - const memberEntries = se_LaunchPermissionList(input.Add, context); - if (input.Add?.length === 0) { + if (input[_Add] != null) { + const memberEntries = se_LaunchPermissionList(input[_Add], context); + if (input[_Add]?.length === 0) { entries.Add = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57208,9 +57192,9 @@ const se_LaunchPermissionModifications = (input: LaunchPermissionModifications, entries[loc] = value; }); } - if (input.Remove != null) { - const memberEntries = se_LaunchPermissionList(input.Remove, context); - if (input.Remove?.length === 0) { + if (input[_Re] != null) { + const memberEntries = se_LaunchPermissionList(input[_Re], context); + if (input[_Re]?.length === 0) { entries.Remove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57248,21 +57232,21 @@ const se_LaunchTemplateBlockDeviceMappingRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DeviceName != null) { - entries["DeviceName"] = input.DeviceName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.VirtualName != null) { - entries["VirtualName"] = input.VirtualName; + if (input[_VN] != null) { + entries[_VN] = input[_VN]; } - if (input.Ebs != null) { - const memberEntries = se_LaunchTemplateEbsBlockDeviceRequest(input.Ebs, context); + if (input[_E] != null) { + const memberEntries = se_LaunchTemplateEbsBlockDeviceRequest(input[_E], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Ebs.${key}`; entries[loc] = value; }); } - if (input.NoDevice != null) { - entries["NoDevice"] = input.NoDevice; + if (input[_ND] != null) { + entries[_ND] = input[_ND]; } return entries; }; @@ -57297,11 +57281,11 @@ const se_LaunchTemplateCapacityReservationSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CapacityReservationPreference != null) { - entries["CapacityReservationPreference"] = input.CapacityReservationPreference; + if (input[_CRP] != null) { + entries[_CRP] = input[_CRP]; } - if (input.CapacityReservationTarget != null) { - const memberEntries = se_CapacityReservationTarget(input.CapacityReservationTarget, context); + if (input[_CRTa] != null) { + const memberEntries = se_CapacityReservationTarget(input[_CRTa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityReservationTarget.${key}`; entries[loc] = value; @@ -57315,16 +57299,16 @@ const se_LaunchTemplateCapacityReservationSpecificationRequest = ( */ const se_LaunchTemplateConfig = (input: LaunchTemplateConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplateSpecification != null) { - const memberEntries = se_FleetLaunchTemplateSpecification(input.LaunchTemplateSpecification, context); + if (input[_LTS] != null) { + const memberEntries = se_FleetLaunchTemplateSpecification(input[_LTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplateSpecification.${key}`; entries[loc] = value; }); } - if (input.Overrides != null) { - const memberEntries = se_LaunchTemplateOverridesList(input.Overrides, context); - if (input.Overrides?.length === 0) { + if (input[_Ov] != null) { + const memberEntries = se_LaunchTemplateOverridesList(input[_Ov], context); + if (input[_Ov]?.length === 0) { entries.Overrides = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57359,14 +57343,14 @@ const se_LaunchTemplateConfigList = (input: LaunchTemplateConfig[], context: __S */ const se_LaunchTemplateCpuOptionsRequest = (input: LaunchTemplateCpuOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CoreCount != null) { - entries["CoreCount"] = input.CoreCount; + if (input[_CC] != null) { + entries[_CC] = input[_CC]; } - if (input.ThreadsPerCore != null) { - entries["ThreadsPerCore"] = input.ThreadsPerCore; + if (input[_TPC] != null) { + entries[_TPC] = input[_TPC]; } - if (input.AmdSevSnp != null) { - entries["AmdSevSnp"] = input.AmdSevSnp; + if (input[_ASS] != null) { + entries[_ASS] = input[_ASS]; } return entries; }; @@ -57379,29 +57363,29 @@ const se_LaunchTemplateEbsBlockDeviceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_Io] != null) { + entries[_Io] = input[_Io]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.VolumeSize != null) { - entries["VolumeSize"] = input.VolumeSize; + if (input[_VS] != null) { + entries[_VS] = input[_VS]; } - if (input.VolumeType != null) { - entries["VolumeType"] = input.VolumeType; + if (input[_VT] != null) { + entries[_VT] = input[_VT]; } - if (input.Throughput != null) { - entries["Throughput"] = input.Throughput; + if (input[_Th] != null) { + entries[_Th] = input[_Th]; } return entries; }; @@ -57414,11 +57398,11 @@ const se_LaunchTemplateElasticInferenceAccelerator = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.Count != null) { - entries["Count"] = input.Count; + if (input[_Cou] != null) { + entries[_Cou] = input[_Cou]; } return entries; }; @@ -57453,8 +57437,8 @@ const se_LaunchTemplateEnclaveOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -57467,8 +57451,8 @@ const se_LaunchTemplateHibernationOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Configured != null) { - entries["Configured"] = input.Configured; + if (input[_Conf] != null) { + entries[_Conf] = input[_Conf]; } return entries; }; @@ -57481,11 +57465,11 @@ const se_LaunchTemplateIamInstanceProfileSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } return entries; }; @@ -57514,8 +57498,8 @@ const se_LaunchTemplateInstanceMaintenanceOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AutoRecovery != null) { - entries["AutoRecovery"] = input.AutoRecovery; + if (input[_ARu] != null) { + entries[_ARu] = input[_ARu]; } return entries; }; @@ -57528,11 +57512,11 @@ const se_LaunchTemplateInstanceMarketOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MarketType != null) { - entries["MarketType"] = input.MarketType; + if (input[_MT] != null) { + entries[_MT] = input[_MT]; } - if (input.SpotOptions != null) { - const memberEntries = se_LaunchTemplateSpotMarketOptionsRequest(input.SpotOptions, context); + if (input[_SO] != null) { + const memberEntries = se_LaunchTemplateSpotMarketOptionsRequest(input[_SO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SpotOptions.${key}`; entries[loc] = value; @@ -57549,20 +57533,20 @@ const se_LaunchTemplateInstanceMetadataOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.HttpTokens != null) { - entries["HttpTokens"] = input.HttpTokens; + if (input[_HT] != null) { + entries[_HT] = input[_HT]; } - if (input.HttpPutResponseHopLimit != null) { - entries["HttpPutResponseHopLimit"] = input.HttpPutResponseHopLimit; + if (input[_HPRHL] != null) { + entries[_HPRHL] = input[_HPRHL]; } - if (input.HttpEndpoint != null) { - entries["HttpEndpoint"] = input.HttpEndpoint; + if (input[_HE] != null) { + entries[_HE] = input[_HE]; } - if (input.HttpProtocolIpv6 != null) { - entries["HttpProtocolIpv6"] = input.HttpProtocolIpv6; + if (input[_HPI] != null) { + entries[_HPI] = input[_HPI]; } - if (input.InstanceMetadataTags != null) { - entries["InstanceMetadataTags"] = input.InstanceMetadataTags; + if (input[_IMT] != null) { + entries[_IMT] = input[_IMT]; } return entries; }; @@ -57575,24 +57559,24 @@ const se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociateCarrierIpAddress != null) { - entries["AssociateCarrierIpAddress"] = input.AssociateCarrierIpAddress; + if (input[_ACIA] != null) { + entries[_ACIA] = input[_ACIA]; } - if (input.AssociatePublicIpAddress != null) { - entries["AssociatePublicIpAddress"] = input.AssociatePublicIpAddress; + if (input[_APIAs] != null) { + entries[_APIAs] = input[_APIAs]; } - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DeviceIndex != null) { - entries["DeviceIndex"] = input.DeviceIndex; + if (input[_DIev] != null) { + entries[_DIev] = input[_DIev]; } - if (input.Groups != null) { - const memberEntries = se_SecurityGroupIdStringList(input.Groups, context); - if (input.Groups?.length === 0) { + if (input[_G] != null) { + const memberEntries = se_SecurityGroupIdStringList(input[_G], context); + if (input[_G]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57600,15 +57584,15 @@ const se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = ( entries[loc] = value; }); } - if (input.InterfaceType != null) { - entries["InterfaceType"] = input.InterfaceType; + if (input[_ITn] != null) { + entries[_ITn] = input[_ITn]; } - if (input.Ipv6AddressCount != null) { - entries["Ipv6AddressCount"] = input.Ipv6AddressCount; + if (input[_IAC] != null) { + entries[_IAC] = input[_IAC]; } - if (input.Ipv6Addresses != null) { - const memberEntries = se_InstanceIpv6AddressListRequest(input.Ipv6Addresses, context); - if (input.Ipv6Addresses?.length === 0) { + if (input[_IA] != null) { + const memberEntries = se_InstanceIpv6AddressListRequest(input[_IA], context); + if (input[_IA]?.length === 0) { entries.Ipv6Addresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57616,15 +57600,15 @@ const se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = ( entries[loc] = value; }); } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_PrivateIpAddressSpecificationList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_PrivateIpAddressSpecificationList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57632,18 +57616,18 @@ const se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = ( entries[loc] = value; }); } - if (input.SecondaryPrivateIpAddressCount != null) { - entries["SecondaryPrivateIpAddressCount"] = input.SecondaryPrivateIpAddressCount; + if (input[_SPIAC] != null) { + entries[_SPIAC] = input[_SPIAC]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.NetworkCardIndex != null) { - entries["NetworkCardIndex"] = input.NetworkCardIndex; + if (input[_NCI] != null) { + entries[_NCI] = input[_NCI]; } - if (input.Ipv4Prefixes != null) { - const memberEntries = se_Ipv4PrefixList(input.Ipv4Prefixes, context); - if (input.Ipv4Prefixes?.length === 0) { + if (input[_IPp] != null) { + const memberEntries = se_Ipv4PrefixList(input[_IPp], context); + if (input[_IPp]?.length === 0) { entries.Ipv4Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57651,12 +57635,12 @@ const se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = ( entries[loc] = value; }); } - if (input.Ipv4PrefixCount != null) { - entries["Ipv4PrefixCount"] = input.Ipv4PrefixCount; + if (input[_IPCp] != null) { + entries[_IPCp] = input[_IPCp]; } - if (input.Ipv6Prefixes != null) { - const memberEntries = se_Ipv6PrefixList(input.Ipv6Prefixes, context); - if (input.Ipv6Prefixes?.length === 0) { + if (input[_IP] != null) { + const memberEntries = se_Ipv6PrefixList(input[_IP], context); + if (input[_IP]?.length === 0) { entries.Ipv6Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57664,21 +57648,21 @@ const se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = ( entries[loc] = value; }); } - if (input.Ipv6PrefixCount != null) { - entries["Ipv6PrefixCount"] = input.Ipv6PrefixCount; + if (input[_IPC] != null) { + entries[_IPC] = input[_IPC]; } - if (input.PrimaryIpv6 != null) { - entries["PrimaryIpv6"] = input.PrimaryIpv6; + if (input[_PIr] != null) { + entries[_PIr] = input[_PIr]; } - if (input.EnaSrdSpecification != null) { - const memberEntries = se_EnaSrdSpecificationRequest(input.EnaSrdSpecification, context); + if (input[_ESS] != null) { + const memberEntries = se_EnaSrdSpecificationRequest(input[_ESS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnaSrdSpecification.${key}`; entries[loc] = value; }); } - if (input.ConnectionTrackingSpecification != null) { - const memberEntries = se_ConnectionTrackingSpecificationRequest(input.ConnectionTrackingSpecification, context); + if (input[_CTS] != null) { + const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionTrackingSpecification.${key}`; entries[loc] = value; @@ -57717,8 +57701,8 @@ const se_LaunchTemplateLicenseConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LicenseConfigurationArn != null) { - entries["LicenseConfigurationArn"] = input.LicenseConfigurationArn; + if (input[_LCA] != null) { + entries[_LCA] = input[_LCA]; } return entries; }; @@ -57766,26 +57750,26 @@ const se_LaunchTemplateNameStringList = (input: string[], context: __SerdeContex */ const se_LaunchTemplateOverrides = (input: LaunchTemplateOverrides, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.SpotPrice != null) { - entries["SpotPrice"] = input.SpotPrice; + if (input[_SPp] != null) { + entries[_SPp] = input[_SPp]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.WeightedCapacity != null) { - entries["WeightedCapacity"] = __serializeFloat(input.WeightedCapacity); + if (input[_WC] != null) { + entries[_WC] = __serializeFloat(input[_WC]); } - if (input.Priority != null) { - entries["Priority"] = __serializeFloat(input.Priority); + if (input[_Pri] != null) { + entries[_Pri] = __serializeFloat(input[_Pri]); } - if (input.InstanceRequirements != null) { - const memberEntries = se_InstanceRequirements(input.InstanceRequirements, context); + if (input[_IR] != null) { + const memberEntries = se_InstanceRequirements(input[_IR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirements.${key}`; entries[loc] = value; @@ -57818,32 +57802,32 @@ const se_LaunchTemplateOverridesList = (input: LaunchTemplateOverrides[], contex */ const se_LaunchTemplatePlacementRequest = (input: LaunchTemplatePlacementRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.Affinity != null) { - entries["Affinity"] = input.Affinity; + if (input[_Af] != null) { + entries[_Af] = input[_Af]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.HostId != null) { - entries["HostId"] = input.HostId; + if (input[_HIo] != null) { + entries[_HIo] = input[_HIo]; } - if (input.Tenancy != null) { - entries["Tenancy"] = input.Tenancy; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } - if (input.SpreadDomain != null) { - entries["SpreadDomain"] = input.SpreadDomain; + if (input[_SD] != null) { + entries[_SD] = input[_SD]; } - if (input.HostResourceGroupArn != null) { - entries["HostResourceGroupArn"] = input.HostResourceGroupArn; + if (input[_HRGA] != null) { + entries[_HRGA] = input[_HRGA]; } - if (input.PartitionNumber != null) { - entries["PartitionNumber"] = input.PartitionNumber; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } return entries; }; @@ -57856,14 +57840,14 @@ const se_LaunchTemplatePrivateDnsNameOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.HostnameType != null) { - entries["HostnameType"] = input.HostnameType; + if (input[_HTo] != null) { + entries[_HTo] = input[_HTo]; } - if (input.EnableResourceNameDnsARecord != null) { - entries["EnableResourceNameDnsARecord"] = input.EnableResourceNameDnsARecord; + if (input[_ERNDAR] != null) { + entries[_ERNDAR] = input[_ERNDAR]; } - if (input.EnableResourceNameDnsAAAARecord != null) { - entries["EnableResourceNameDnsAAAARecord"] = input.EnableResourceNameDnsAAAARecord; + if (input[_ERNDAAAAR] != null) { + entries[_ERNDAAAAR] = input[_ERNDAAAAR]; } return entries; }; @@ -57873,8 +57857,8 @@ const se_LaunchTemplatePrivateDnsNameOptionsRequest = ( */ const se_LaunchTemplatesMonitoringRequest = (input: LaunchTemplatesMonitoringRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -57884,14 +57868,14 @@ const se_LaunchTemplatesMonitoringRequest = (input: LaunchTemplatesMonitoringReq */ const se_LaunchTemplateSpecification = (input: LaunchTemplateSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.Version != null) { - entries["Version"] = input.Version; + if (input[_V] != null) { + entries[_V] = input[_V]; } return entries; }; @@ -57904,20 +57888,20 @@ const se_LaunchTemplateSpotMarketOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MaxPrice != null) { - entries["MaxPrice"] = input.MaxPrice; + if (input[_MPa] != null) { + entries[_MPa] = input[_MPa]; } - if (input.SpotInstanceType != null) { - entries["SpotInstanceType"] = input.SpotInstanceType; + if (input[_SIT] != null) { + entries[_SIT] = input[_SIT]; } - if (input.BlockDurationMinutes != null) { - entries["BlockDurationMinutes"] = input.BlockDurationMinutes; + if (input[_BDMl] != null) { + entries[_BDMl] = input[_BDMl]; } - if (input.ValidUntil != null) { - entries["ValidUntil"] = input.ValidUntil.toISOString().split(".")[0] + "Z"; + if (input[_VU] != null) { + entries[_VU] = input[_VU].toISOString().split(".")[0] + "Z"; } - if (input.InstanceInterruptionBehavior != null) { - entries["InstanceInterruptionBehavior"] = input.InstanceInterruptionBehavior; + if (input[_IIB] != null) { + entries[_IIB] = input[_IIB]; } return entries; }; @@ -57930,12 +57914,12 @@ const se_LaunchTemplateTagSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -57973,8 +57957,8 @@ const se_LaunchTemplateTagSpecificationRequestList = ( */ const se_LicenseConfigurationRequest = (input: LicenseConfigurationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.LicenseConfigurationArn != null) { - entries["LicenseConfigurationArn"] = input.LicenseConfigurationArn; + if (input[_LCA] != null) { + entries[_LCA] = input[_LCA]; } return entries; }; @@ -58003,9 +57987,9 @@ const se_LicenseSpecificationListRequest = (input: LicenseConfigurationRequest[] */ const se_ListImagesInRecycleBinRequest = (input: ListImagesInRecycleBinRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageIds != null) { - const memberEntries = se_ImageIdStringList(input.ImageIds, context); - if (input.ImageIds?.length === 0) { + if (input[_IImag] != null) { + const memberEntries = se_ImageIdStringList(input[_IImag], context); + if (input[_IImag]?.length === 0) { entries.ImageId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58013,14 +57997,14 @@ const se_ListImagesInRecycleBinRequest = (input: ListImagesInRecycleBinRequest, entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -58030,15 +58014,15 @@ const se_ListImagesInRecycleBinRequest = (input: ListImagesInRecycleBinRequest, */ const se_ListSnapshotsInRecycleBinRequest = (input: ListSnapshotsInRecycleBinRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.SnapshotIds != null) { - const memberEntries = se_SnapshotIdStringList(input.SnapshotIds, context); - if (input.SnapshotIds?.length === 0) { + if (input[_SIna] != null) { + const memberEntries = se_SnapshotIdStringList(input[_SIna], context); + if (input[_SIna]?.length === 0) { entries.SnapshotId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58046,8 +58030,8 @@ const se_ListSnapshotsInRecycleBinRequest = (input: ListSnapshotsInRecycleBinReq entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -58057,15 +58041,15 @@ const se_ListSnapshotsInRecycleBinRequest = (input: ListSnapshotsInRecycleBinReq */ const se_LoadBalancersConfig = (input: LoadBalancersConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClassicLoadBalancersConfig != null) { - const memberEntries = se_ClassicLoadBalancersConfig(input.ClassicLoadBalancersConfig, context); + if (input[_CLBC] != null) { + const memberEntries = se_ClassicLoadBalancersConfig(input[_CLBC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ClassicLoadBalancersConfig.${key}`; entries[loc] = value; }); } - if (input.TargetGroupsConfig != null) { - const memberEntries = se_TargetGroupsConfig(input.TargetGroupsConfig, context); + if (input[_TGC] != null) { + const memberEntries = se_TargetGroupsConfig(input[_TGC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TargetGroupsConfig.${key}`; entries[loc] = value; @@ -58098,9 +58082,9 @@ const se_LoadPermissionListRequest = (input: LoadPermissionRequest[], context: _ */ const se_LoadPermissionModifications = (input: LoadPermissionModifications, context: __SerdeContext): any => { const entries: any = {}; - if (input.Add != null) { - const memberEntries = se_LoadPermissionListRequest(input.Add, context); - if (input.Add?.length === 0) { + if (input[_Add] != null) { + const memberEntries = se_LoadPermissionListRequest(input[_Add], context); + if (input[_Add]?.length === 0) { entries.Add = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58108,9 +58092,9 @@ const se_LoadPermissionModifications = (input: LoadPermissionModifications, cont entries[loc] = value; }); } - if (input.Remove != null) { - const memberEntries = se_LoadPermissionListRequest(input.Remove, context); - if (input.Remove?.length === 0) { + if (input[_Re] != null) { + const memberEntries = se_LoadPermissionListRequest(input[_Re], context); + if (input[_Re]?.length === 0) { entries.Remove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58126,11 +58110,11 @@ const se_LoadPermissionModifications = (input: LoadPermissionModifications, cont */ const se_LoadPermissionRequest = (input: LoadPermissionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Group != null) { - entries["Group"] = input.Group; + if (input[_Gr] != null) { + entries[_Gr] = input[_Gr]; } - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } return entries; }; @@ -58255,23 +58239,23 @@ const se_LocalStorageTypeSet = (input: LocalStorageType[], context: __SerdeConte */ const se_LockSnapshotRequest = (input: LockSnapshotRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LockMode != null) { - entries["LockMode"] = input.LockMode; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.CoolOffPeriod != null) { - entries["CoolOffPeriod"] = input.CoolOffPeriod; + if (input[_COP] != null) { + entries[_COP] = input[_COP]; } - if (input.LockDuration != null) { - entries["LockDuration"] = input.LockDuration; + if (input[_LDo] != null) { + entries[_LDo] = input[_LDo]; } - if (input.ExpirationDate != null) { - entries["ExpirationDate"] = input.ExpirationDate.toISOString().split(".")[0] + "Z"; + if (input[_EDx] != null) { + entries[_EDx] = input[_EDx].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -58281,11 +58265,11 @@ const se_LockSnapshotRequest = (input: LockSnapshotRequest, context: __SerdeCont */ const se_MemoryGiBPerVCpu = (input: MemoryGiBPerVCpu, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -58295,11 +58279,11 @@ const se_MemoryGiBPerVCpu = (input: MemoryGiBPerVCpu, context: __SerdeContext): */ const se_MemoryGiBPerVCpuRequest = (input: MemoryGiBPerVCpuRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -58309,11 +58293,11 @@ const se_MemoryGiBPerVCpuRequest = (input: MemoryGiBPerVCpuRequest, context: __S */ const se_MemoryMiB = (input: MemoryMiB, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -58323,11 +58307,11 @@ const se_MemoryMiB = (input: MemoryMiB, context: __SerdeContext): any => { */ const se_MemoryMiBRequest = (input: MemoryMiBRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -58337,14 +58321,14 @@ const se_MemoryMiBRequest = (input: MemoryMiBRequest, context: __SerdeContext): */ const se_ModifyAddressAttributeRequest = (input: ModifyAddressAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AIl] != null) { + entries[_AIl] = input[_AIl]; } - if (input.DomainName != null) { - entries["DomainName"] = input.DomainName; + if (input[_DNo] != null) { + entries[_DNo] = input[_DNo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -58357,14 +58341,14 @@ const se_ModifyAvailabilityZoneGroupRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.OptInStatus != null) { - entries["OptInStatus"] = input.OptInStatus; + if (input[_OIS] != null) { + entries[_OIS] = input[_OIS]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -58377,20 +58361,20 @@ const se_ModifyCapacityReservationFleetRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CapacityReservationFleetId != null) { - entries["CapacityReservationFleetId"] = input.CapacityReservationFleetId; + if (input[_CRFIa] != null) { + entries[_CRFIa] = input[_CRFIa]; } - if (input.TotalTargetCapacity != null) { - entries["TotalTargetCapacity"] = input.TotalTargetCapacity; + if (input[_TTC] != null) { + entries[_TTC] = input[_TTC]; } - if (input.EndDate != null) { - entries["EndDate"] = input.EndDate.toISOString().split(".")[0] + "Z"; + if (input[_ED] != null) { + entries[_ED] = input[_ED].toISOString().split(".")[0] + "Z"; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.RemoveEndDate != null) { - entries["RemoveEndDate"] = input.RemoveEndDate; + if (input[_RED] != null) { + entries[_RED] = input[_RED]; } return entries; }; @@ -58400,26 +58384,26 @@ const se_ModifyCapacityReservationFleetRequest = ( */ const se_ModifyCapacityReservationRequest = (input: ModifyCapacityReservationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CapacityReservationId != null) { - entries["CapacityReservationId"] = input.CapacityReservationId; + if (input[_CRI] != null) { + entries[_CRI] = input[_CRI]; } - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.EndDate != null) { - entries["EndDate"] = input.EndDate.toISOString().split(".")[0] + "Z"; + if (input[_ED] != null) { + entries[_ED] = input[_ED].toISOString().split(".")[0] + "Z"; } - if (input.EndDateType != null) { - entries["EndDateType"] = input.EndDateType; + if (input[_EDT] != null) { + entries[_EDT] = input[_EDT]; } - if (input.Accept != null) { - entries["Accept"] = input.Accept; + if (input[_Ac] != null) { + entries[_Ac] = input[_Ac]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.AdditionalInfo != null) { - entries["AdditionalInfo"] = input.AdditionalInfo; + if (input[_AId] != null) { + entries[_AId] = input[_AId]; } return entries; }; @@ -58429,41 +58413,41 @@ const se_ModifyCapacityReservationRequest = (input: ModifyCapacityReservationReq */ const se_ModifyClientVpnEndpointRequest = (input: ModifyClientVpnEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.ServerCertificateArn != null) { - entries["ServerCertificateArn"] = input.ServerCertificateArn; + if (input[_SCA] != null) { + entries[_SCA] = input[_SCA]; } - if (input.ConnectionLogOptions != null) { - const memberEntries = se_ConnectionLogOptions(input.ConnectionLogOptions, context); + if (input[_CLO] != null) { + const memberEntries = se_ConnectionLogOptions(input[_CLO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionLogOptions.${key}`; entries[loc] = value; }); } - if (input.DnsServers != null) { - const memberEntries = se_DnsServersOptionsModifyStructure(input.DnsServers, context); + if (input[_DSn] != null) { + const memberEntries = se_DnsServersOptionsModifyStructure(input[_DSn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DnsServers.${key}`; entries[loc] = value; }); } - if (input.VpnPort != null) { - entries["VpnPort"] = input.VpnPort; + if (input[_VP] != null) { + entries[_VP] = input[_VP]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.SplitTunnel != null) { - entries["SplitTunnel"] = input.SplitTunnel; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_ClientVpnSecurityGroupIdSet(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_ClientVpnSecurityGroupIdSet(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58471,24 +58455,24 @@ const se_ModifyClientVpnEndpointRequest = (input: ModifyClientVpnEndpointRequest entries[loc] = value; }); } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.SelfServicePortal != null) { - entries["SelfServicePortal"] = input.SelfServicePortal; + if (input[_SSP] != null) { + entries[_SSP] = input[_SSP]; } - if (input.ClientConnectOptions != null) { - const memberEntries = se_ClientConnectOptions(input.ClientConnectOptions, context); + if (input[_CCO] != null) { + const memberEntries = se_ClientConnectOptions(input[_CCO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ClientConnectOptions.${key}`; entries[loc] = value; }); } - if (input.SessionTimeoutHours != null) { - entries["SessionTimeoutHours"] = input.SessionTimeoutHours; + if (input[_STH] != null) { + entries[_STH] = input[_STH]; } - if (input.ClientLoginBannerOptions != null) { - const memberEntries = se_ClientLoginBannerOptions(input.ClientLoginBannerOptions, context); + if (input[_CLBO] != null) { + const memberEntries = se_ClientLoginBannerOptions(input[_CLBO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ClientLoginBannerOptions.${key}`; entries[loc] = value; @@ -58505,14 +58489,14 @@ const se_ModifyDefaultCreditSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceFamily != null) { - entries["InstanceFamily"] = input.InstanceFamily; + if (input[_IF] != null) { + entries[_IF] = input[_IF]; } - if (input.CpuCredits != null) { - entries["CpuCredits"] = input.CpuCredits; + if (input[_CCp] != null) { + entries[_CCp] = input[_CCp]; } return entries; }; @@ -58522,11 +58506,11 @@ const se_ModifyDefaultCreditSpecificationRequest = ( */ const se_ModifyEbsDefaultKmsKeyIdRequest = (input: ModifyEbsDefaultKmsKeyIdRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -58536,15 +58520,15 @@ const se_ModifyEbsDefaultKmsKeyIdRequest = (input: ModifyEbsDefaultKmsKeyIdReque */ const se_ModifyFleetRequest = (input: ModifyFleetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ExcessCapacityTerminationPolicy != null) { - entries["ExcessCapacityTerminationPolicy"] = input.ExcessCapacityTerminationPolicy; + if (input[_ECTP] != null) { + entries[_ECTP] = input[_ECTP]; } - if (input.LaunchTemplateConfigs != null) { - const memberEntries = se_FleetLaunchTemplateConfigListRequest(input.LaunchTemplateConfigs, context); - if (input.LaunchTemplateConfigs?.length === 0) { + if (input[_LTC] != null) { + const memberEntries = se_FleetLaunchTemplateConfigListRequest(input[_LTC], context); + if (input[_LTC]?.length === 0) { entries.LaunchTemplateConfig = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58552,18 +58536,18 @@ const se_ModifyFleetRequest = (input: ModifyFleetRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.FleetId != null) { - entries["FleetId"] = input.FleetId; + if (input[_FIl] != null) { + entries[_FIl] = input[_FIl]; } - if (input.TargetCapacitySpecification != null) { - const memberEntries = se_TargetCapacitySpecificationRequest(input.TargetCapacitySpecification, context); + if (input[_TCS] != null) { + const memberEntries = se_TargetCapacitySpecificationRequest(input[_TCS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TargetCapacitySpecification.${key}`; entries[loc] = value; }); } - if (input.Context != null) { - entries["Context"] = input.Context; + if (input[_Con] != null) { + entries[_Con] = input[_Con]; } return entries; }; @@ -58573,21 +58557,21 @@ const se_ModifyFleetRequest = (input: ModifyFleetRequest, context: __SerdeContex */ const se_ModifyFpgaImageAttributeRequest = (input: ModifyFpgaImageAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FpgaImageId != null) { - entries["FpgaImageId"] = input.FpgaImageId; + if (input[_FII] != null) { + entries[_FII] = input[_FII]; } - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.OperationType != null) { - entries["OperationType"] = input.OperationType; + if (input[_OTp] != null) { + entries[_OTp] = input[_OTp]; } - if (input.UserIds != null) { - const memberEntries = se_UserIdStringList(input.UserIds, context); - if (input.UserIds?.length === 0) { + if (input[_UIse] != null) { + const memberEntries = se_UserIdStringList(input[_UIse], context); + if (input[_UIse]?.length === 0) { entries.UserId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58595,9 +58579,9 @@ const se_ModifyFpgaImageAttributeRequest = (input: ModifyFpgaImageAttributeReque entries[loc] = value; }); } - if (input.UserGroups != null) { - const memberEntries = se_UserGroupStringList(input.UserGroups, context); - if (input.UserGroups?.length === 0) { + if (input[_UG] != null) { + const memberEntries = se_UserGroupStringList(input[_UG], context); + if (input[_UG]?.length === 0) { entries.UserGroup = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58605,9 +58589,9 @@ const se_ModifyFpgaImageAttributeRequest = (input: ModifyFpgaImageAttributeReque entries[loc] = value; }); } - if (input.ProductCodes != null) { - const memberEntries = se_ProductCodeStringList(input.ProductCodes, context); - if (input.ProductCodes?.length === 0) { + if (input[_PCr] != null) { + const memberEntries = se_ProductCodeStringList(input[_PCr], context); + if (input[_PCr]?.length === 0) { entries.ProductCode = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58615,18 +58599,18 @@ const se_ModifyFpgaImageAttributeRequest = (input: ModifyFpgaImageAttributeReque entries[loc] = value; }); } - if (input.LoadPermission != null) { - const memberEntries = se_LoadPermissionModifications(input.LoadPermission, context); + if (input[_LP] != null) { + const memberEntries = se_LoadPermissionModifications(input[_LP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LoadPermission.${key}`; entries[loc] = value; }); } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } return entries; }; @@ -58636,12 +58620,12 @@ const se_ModifyFpgaImageAttributeRequest = (input: ModifyFpgaImageAttributeReque */ const se_ModifyHostsRequest = (input: ModifyHostsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoPlacement != null) { - entries["AutoPlacement"] = input.AutoPlacement; + if (input[_AP] != null) { + entries[_AP] = input[_AP]; } - if (input.HostIds != null) { - const memberEntries = se_RequestHostIdList(input.HostIds, context); - if (input.HostIds?.length === 0) { + if (input[_HI] != null) { + const memberEntries = se_RequestHostIdList(input[_HI], context); + if (input[_HI]?.length === 0) { entries.HostId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58649,17 +58633,17 @@ const se_ModifyHostsRequest = (input: ModifyHostsRequest, context: __SerdeContex entries[loc] = value; }); } - if (input.HostRecovery != null) { - entries["HostRecovery"] = input.HostRecovery; + if (input[_HR] != null) { + entries[_HR] = input[_HR]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.InstanceFamily != null) { - entries["InstanceFamily"] = input.InstanceFamily; + if (input[_IF] != null) { + entries[_IF] = input[_IF]; } - if (input.HostMaintenance != null) { - entries["HostMaintenance"] = input.HostMaintenance; + if (input[_HM] != null) { + entries[_HM] = input[_HM]; } return entries; }; @@ -58669,14 +58653,14 @@ const se_ModifyHostsRequest = (input: ModifyHostsRequest, context: __SerdeContex */ const se_ModifyIdentityIdFormatRequest = (input: ModifyIdentityIdFormatRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; + if (input[_PAr] != null) { + entries[_PAr] = input[_PAr]; } - if (input.Resource != null) { - entries["Resource"] = input.Resource; + if (input[_Res] != null) { + entries[_Res] = input[_Res]; } - if (input.UseLongIds != null) { - entries["UseLongIds"] = input.UseLongIds; + if (input[_ULI] != null) { + entries[_ULI] = input[_ULI]; } return entries; }; @@ -58686,11 +58670,11 @@ const se_ModifyIdentityIdFormatRequest = (input: ModifyIdentityIdFormatRequest, */ const se_ModifyIdFormatRequest = (input: ModifyIdFormatRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Resource != null) { - entries["Resource"] = input.Resource; + if (input[_Res] != null) { + entries[_Res] = input[_Res]; } - if (input.UseLongIds != null) { - entries["UseLongIds"] = input.UseLongIds; + if (input[_ULI] != null) { + entries[_ULI] = input[_ULI]; } return entries; }; @@ -58700,32 +58684,32 @@ const se_ModifyIdFormatRequest = (input: ModifyIdFormatRequest, context: __Serde */ const se_ModifyImageAttributeRequest = (input: ModifyImageAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.Description != null) { - const memberEntries = se_AttributeValue(input.Description, context); + if (input[_De] != null) { + const memberEntries = se_AttributeValue(input[_De], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Description.${key}`; entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.LaunchPermission != null) { - const memberEntries = se_LaunchPermissionModifications(input.LaunchPermission, context); + if (input[_LPa] != null) { + const memberEntries = se_LaunchPermissionModifications(input[_LPa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchPermission.${key}`; entries[loc] = value; }); } - if (input.OperationType != null) { - entries["OperationType"] = input.OperationType; + if (input[_OTp] != null) { + entries[_OTp] = input[_OTp]; } - if (input.ProductCodes != null) { - const memberEntries = se_ProductCodeStringList(input.ProductCodes, context); - if (input.ProductCodes?.length === 0) { + if (input[_PCr] != null) { + const memberEntries = se_ProductCodeStringList(input[_PCr], context); + if (input[_PCr]?.length === 0) { entries.ProductCode = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58733,9 +58717,9 @@ const se_ModifyImageAttributeRequest = (input: ModifyImageAttributeRequest, cont entries[loc] = value; }); } - if (input.UserGroups != null) { - const memberEntries = se_UserGroupStringList(input.UserGroups, context); - if (input.UserGroups?.length === 0) { + if (input[_UG] != null) { + const memberEntries = se_UserGroupStringList(input[_UG], context); + if (input[_UG]?.length === 0) { entries.UserGroup = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58743,9 +58727,9 @@ const se_ModifyImageAttributeRequest = (input: ModifyImageAttributeRequest, cont entries[loc] = value; }); } - if (input.UserIds != null) { - const memberEntries = se_UserIdStringList(input.UserIds, context); - if (input.UserIds?.length === 0) { + if (input[_UIse] != null) { + const memberEntries = se_UserIdStringList(input[_UIse], context); + if (input[_UIse]?.length === 0) { entries.UserId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58753,15 +58737,15 @@ const se_ModifyImageAttributeRequest = (input: ModifyImageAttributeRequest, cont entries[loc] = value; }); } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.OrganizationArns != null) { - const memberEntries = se_OrganizationArnStringList(input.OrganizationArns, context); - if (input.OrganizationArns?.length === 0) { + if (input[_OArg] != null) { + const memberEntries = se_OrganizationArnStringList(input[_OArg], context); + if (input[_OArg]?.length === 0) { entries.OrganizationArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58769,9 +58753,9 @@ const se_ModifyImageAttributeRequest = (input: ModifyImageAttributeRequest, cont entries[loc] = value; }); } - if (input.OrganizationalUnitArns != null) { - const memberEntries = se_OrganizationalUnitArnStringList(input.OrganizationalUnitArns, context); - if (input.OrganizationalUnitArns?.length === 0) { + if (input[_OUAr] != null) { + const memberEntries = se_OrganizationalUnitArnStringList(input[_OUAr], context); + if (input[_OUAr]?.length === 0) { entries.OrganizationalUnitArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58779,8 +58763,8 @@ const se_ModifyImageAttributeRequest = (input: ModifyImageAttributeRequest, cont entries[loc] = value; }); } - if (input.ImdsSupport != null) { - const memberEntries = se_AttributeValue(input.ImdsSupport, context); + if (input[_ISm] != null) { + const memberEntries = se_AttributeValue(input[_ISm], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ImdsSupport.${key}`; entries[loc] = value; @@ -58794,19 +58778,19 @@ const se_ModifyImageAttributeRequest = (input: ModifyImageAttributeRequest, cont */ const se_ModifyInstanceAttributeRequest = (input: ModifyInstanceAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceDestCheck != null) { - const memberEntries = se_AttributeBooleanValue(input.SourceDestCheck, context); + if (input[_SDC] != null) { + const memberEntries = se_AttributeBooleanValue(input[_SDC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourceDestCheck.${key}`; entries[loc] = value; }); } - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.BlockDeviceMappings != null) { - const memberEntries = se_InstanceBlockDeviceMappingSpecificationList(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_InstanceBlockDeviceMappingSpecificationList(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58814,33 +58798,33 @@ const se_ModifyInstanceAttributeRequest = (input: ModifyInstanceAttributeRequest entries[loc] = value; }); } - if (input.DisableApiTermination != null) { - const memberEntries = se_AttributeBooleanValue(input.DisableApiTermination, context); + if (input[_DATis] != null) { + const memberEntries = se_AttributeBooleanValue(input[_DATis], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DisableApiTermination.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EbsOptimized != null) { - const memberEntries = se_AttributeBooleanValue(input.EbsOptimized, context); + if (input[_EO] != null) { + const memberEntries = se_AttributeBooleanValue(input[_EO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EbsOptimized.${key}`; entries[loc] = value; }); } - if (input.EnaSupport != null) { - const memberEntries = se_AttributeBooleanValue(input.EnaSupport, context); + if (input[_ESn] != null) { + const memberEntries = se_AttributeBooleanValue(input[_ESn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnaSupport.${key}`; entries[loc] = value; }); } - if (input.Groups != null) { - const memberEntries = se_GroupIdStringList(input.Groups, context); - if (input.Groups?.length === 0) { + if (input[_G] != null) { + const memberEntries = se_GroupIdStringList(input[_G], context); + if (input[_G]?.length === 0) { entries.GroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58848,56 +58832,56 @@ const se_ModifyInstanceAttributeRequest = (input: ModifyInstanceAttributeRequest entries[loc] = value; }); } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.InstanceInitiatedShutdownBehavior != null) { - const memberEntries = se_AttributeValue(input.InstanceInitiatedShutdownBehavior, context); + if (input[_IISB] != null) { + const memberEntries = se_AttributeValue(input[_IISB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceInitiatedShutdownBehavior.${key}`; entries[loc] = value; }); } - if (input.InstanceType != null) { - const memberEntries = se_AttributeValue(input.InstanceType, context); + if (input[_IT] != null) { + const memberEntries = se_AttributeValue(input[_IT], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceType.${key}`; entries[loc] = value; }); } - if (input.Kernel != null) { - const memberEntries = se_AttributeValue(input.Kernel, context); + if (input[_K] != null) { + const memberEntries = se_AttributeValue(input[_K], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Kernel.${key}`; entries[loc] = value; }); } - if (input.Ramdisk != null) { - const memberEntries = se_AttributeValue(input.Ramdisk, context); + if (input[_Ra] != null) { + const memberEntries = se_AttributeValue(input[_Ra], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Ramdisk.${key}`; entries[loc] = value; }); } - if (input.SriovNetSupport != null) { - const memberEntries = se_AttributeValue(input.SriovNetSupport, context); + if (input[_SNS] != null) { + const memberEntries = se_AttributeValue(input[_SNS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SriovNetSupport.${key}`; entries[loc] = value; }); } - if (input.UserData != null) { - const memberEntries = se_BlobAttributeValue(input.UserData, context); + if (input[_UD] != null) { + const memberEntries = se_BlobAttributeValue(input[_UD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `UserData.${key}`; entries[loc] = value; }); } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } - if (input.DisableApiStop != null) { - const memberEntries = se_AttributeBooleanValue(input.DisableApiStop, context); + if (input[_DAS] != null) { + const memberEntries = se_AttributeBooleanValue(input[_DAS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DisableApiStop.${key}`; entries[loc] = value; @@ -58914,18 +58898,18 @@ const se_ModifyInstanceCapacityReservationAttributesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.CapacityReservationSpecification != null) { - const memberEntries = se_CapacityReservationSpecification(input.CapacityReservationSpecification, context); + if (input[_CRS] != null) { + const memberEntries = se_CapacityReservationSpecification(input[_CRS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityReservationSpecification.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -58938,15 +58922,15 @@ const se_ModifyInstanceCreditSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.InstanceCreditSpecifications != null) { - const memberEntries = se_InstanceCreditSpecificationListRequest(input.InstanceCreditSpecifications, context); - if (input.InstanceCreditSpecifications?.length === 0) { + if (input[_ICS] != null) { + const memberEntries = se_InstanceCreditSpecificationListRequest(input[_ICS], context); + if (input[_ICS]?.length === 0) { entries.InstanceCreditSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -58965,17 +58949,17 @@ const se_ModifyInstanceEventStartTimeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.InstanceEventId != null) { - entries["InstanceEventId"] = input.InstanceEventId; + if (input[_IEI] != null) { + entries[_IEI] = input[_IEI]; } - if (input.NotBefore != null) { - entries["NotBefore"] = input.NotBefore.toISOString().split(".")[0] + "Z"; + if (input[_NB] != null) { + entries[_NB] = input[_NB].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -58985,18 +58969,18 @@ const se_ModifyInstanceEventStartTimeRequest = ( */ const se_ModifyInstanceEventWindowRequest = (input: ModifyInstanceEventWindowRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.InstanceEventWindowId != null) { - entries["InstanceEventWindowId"] = input.InstanceEventWindowId; + if (input[_IEWI] != null) { + entries[_IEWI] = input[_IEWI]; } - if (input.TimeRanges != null) { - const memberEntries = se_InstanceEventWindowTimeRangeRequestSet(input.TimeRanges, context); - if (input.TimeRanges?.length === 0) { + if (input[_TRi] != null) { + const memberEntries = se_InstanceEventWindowTimeRangeRequestSet(input[_TRi], context); + if (input[_TRi]?.length === 0) { entries.TimeRange = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59004,8 +58988,8 @@ const se_ModifyInstanceEventWindowRequest = (input: ModifyInstanceEventWindowReq entries[loc] = value; }); } - if (input.CronExpression != null) { - entries["CronExpression"] = input.CronExpression; + if (input[_CE] != null) { + entries[_CE] = input[_CE]; } return entries; }; @@ -59018,14 +59002,14 @@ const se_ModifyInstanceMaintenanceOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.AutoRecovery != null) { - entries["AutoRecovery"] = input.AutoRecovery; + if (input[_ARu] != null) { + entries[_ARu] = input[_ARu]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59038,26 +59022,26 @@ const se_ModifyInstanceMetadataOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.HttpTokens != null) { - entries["HttpTokens"] = input.HttpTokens; + if (input[_HT] != null) { + entries[_HT] = input[_HT]; } - if (input.HttpPutResponseHopLimit != null) { - entries["HttpPutResponseHopLimit"] = input.HttpPutResponseHopLimit; + if (input[_HPRHL] != null) { + entries[_HPRHL] = input[_HPRHL]; } - if (input.HttpEndpoint != null) { - entries["HttpEndpoint"] = input.HttpEndpoint; + if (input[_HE] != null) { + entries[_HE] = input[_HE]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.HttpProtocolIpv6 != null) { - entries["HttpProtocolIpv6"] = input.HttpProtocolIpv6; + if (input[_HPI] != null) { + entries[_HPI] = input[_HPI]; } - if (input.InstanceMetadataTags != null) { - entries["InstanceMetadataTags"] = input.InstanceMetadataTags; + if (input[_IMT] != null) { + entries[_IMT] = input[_IMT]; } return entries; }; @@ -59067,29 +59051,29 @@ const se_ModifyInstanceMetadataOptionsRequest = ( */ const se_ModifyInstancePlacementRequest = (input: ModifyInstancePlacementRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Affinity != null) { - entries["Affinity"] = input.Affinity; + if (input[_Af] != null) { + entries[_Af] = input[_Af]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.HostId != null) { - entries["HostId"] = input.HostId; + if (input[_HIo] != null) { + entries[_HIo] = input[_HIo]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.Tenancy != null) { - entries["Tenancy"] = input.Tenancy; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } - if (input.PartitionNumber != null) { - entries["PartitionNumber"] = input.PartitionNumber; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.HostResourceGroupArn != null) { - entries["HostResourceGroupArn"] = input.HostResourceGroupArn; + if (input[_HRGA] != null) { + entries[_HRGA] = input[_HRGA]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } return entries; }; @@ -59099,33 +59083,33 @@ const se_ModifyInstancePlacementRequest = (input: ModifyInstancePlacementRequest */ const se_ModifyIpamPoolRequest = (input: ModifyIpamPoolRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.AutoImport != null) { - entries["AutoImport"] = input.AutoImport; + if (input[_AIu] != null) { + entries[_AIu] = input[_AIu]; } - if (input.AllocationMinNetmaskLength != null) { - entries["AllocationMinNetmaskLength"] = input.AllocationMinNetmaskLength; + if (input[_AMNL] != null) { + entries[_AMNL] = input[_AMNL]; } - if (input.AllocationMaxNetmaskLength != null) { - entries["AllocationMaxNetmaskLength"] = input.AllocationMaxNetmaskLength; + if (input[_AMNLl] != null) { + entries[_AMNLl] = input[_AMNLl]; } - if (input.AllocationDefaultNetmaskLength != null) { - entries["AllocationDefaultNetmaskLength"] = input.AllocationDefaultNetmaskLength; + if (input[_ADNL] != null) { + entries[_ADNL] = input[_ADNL]; } - if (input.ClearAllocationDefaultNetmaskLength != null) { - entries["ClearAllocationDefaultNetmaskLength"] = input.ClearAllocationDefaultNetmaskLength; + if (input[_CADNL] != null) { + entries[_CADNL] = input[_CADNL]; } - if (input.AddAllocationResourceTags != null) { - const memberEntries = se_RequestIpamResourceTagList(input.AddAllocationResourceTags, context); - if (input.AddAllocationResourceTags?.length === 0) { + if (input[_AART] != null) { + const memberEntries = se_RequestIpamResourceTagList(input[_AART], context); + if (input[_AART]?.length === 0) { entries.AddAllocationResourceTag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59133,9 +59117,9 @@ const se_ModifyIpamPoolRequest = (input: ModifyIpamPoolRequest, context: __Serde entries[loc] = value; }); } - if (input.RemoveAllocationResourceTags != null) { - const memberEntries = se_RequestIpamResourceTagList(input.RemoveAllocationResourceTags, context); - if (input.RemoveAllocationResourceTags?.length === 0) { + if (input[_RART] != null) { + const memberEntries = se_RequestIpamResourceTagList(input[_RART], context); + if (input[_RART]?.length === 0) { entries.RemoveAllocationResourceTag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59151,18 +59135,18 @@ const se_ModifyIpamPoolRequest = (input: ModifyIpamPoolRequest, context: __Serde */ const se_ModifyIpamRequest = (input: ModifyIpamRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamId != null) { - entries["IpamId"] = input.IpamId; + if (input[_IIp] != null) { + entries[_IIp] = input[_IIp]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.AddOperatingRegions != null) { - const memberEntries = se_AddIpamOperatingRegionSet(input.AddOperatingRegions, context); - if (input.AddOperatingRegions?.length === 0) { + if (input[_AOR] != null) { + const memberEntries = se_AddIpamOperatingRegionSet(input[_AOR], context); + if (input[_AOR]?.length === 0) { entries.AddOperatingRegion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59170,9 +59154,9 @@ const se_ModifyIpamRequest = (input: ModifyIpamRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.RemoveOperatingRegions != null) { - const memberEntries = se_RemoveIpamOperatingRegionSet(input.RemoveOperatingRegions, context); - if (input.RemoveOperatingRegions?.length === 0) { + if (input[_ROR] != null) { + const memberEntries = se_RemoveIpamOperatingRegionSet(input[_ROR], context); + if (input[_ROR]?.length === 0) { entries.RemoveOperatingRegion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59180,8 +59164,8 @@ const se_ModifyIpamRequest = (input: ModifyIpamRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.Tier != null) { - entries["Tier"] = input.Tier; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti]; } return entries; }; @@ -59191,26 +59175,26 @@ const se_ModifyIpamRequest = (input: ModifyIpamRequest, context: __SerdeContext) */ const se_ModifyIpamResourceCidrRequest = (input: ModifyIpamResourceCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ResourceId != null) { - entries["ResourceId"] = input.ResourceId; + if (input[_RIeso] != null) { + entries[_RIeso] = input[_RIeso]; } - if (input.ResourceCidr != null) { - entries["ResourceCidr"] = input.ResourceCidr; + if (input[_RC] != null) { + entries[_RC] = input[_RC]; } - if (input.ResourceRegion != null) { - entries["ResourceRegion"] = input.ResourceRegion; + if (input[_RRe] != null) { + entries[_RRe] = input[_RRe]; } - if (input.CurrentIpamScopeId != null) { - entries["CurrentIpamScopeId"] = input.CurrentIpamScopeId; + if (input[_CISI] != null) { + entries[_CISI] = input[_CISI]; } - if (input.DestinationIpamScopeId != null) { - entries["DestinationIpamScopeId"] = input.DestinationIpamScopeId; + if (input[_DISI] != null) { + entries[_DISI] = input[_DISI]; } - if (input.Monitored != null) { - entries["Monitored"] = input.Monitored; + if (input[_Moni] != null) { + entries[_Moni] = input[_Moni]; } return entries; }; @@ -59223,18 +59207,18 @@ const se_ModifyIpamResourceDiscoveryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamResourceDiscoveryId != null) { - entries["IpamResourceDiscoveryId"] = input.IpamResourceDiscoveryId; + if (input[_IRDI] != null) { + entries[_IRDI] = input[_IRDI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.AddOperatingRegions != null) { - const memberEntries = se_AddIpamOperatingRegionSet(input.AddOperatingRegions, context); - if (input.AddOperatingRegions?.length === 0) { + if (input[_AOR] != null) { + const memberEntries = se_AddIpamOperatingRegionSet(input[_AOR], context); + if (input[_AOR]?.length === 0) { entries.AddOperatingRegion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59242,9 +59226,9 @@ const se_ModifyIpamResourceDiscoveryRequest = ( entries[loc] = value; }); } - if (input.RemoveOperatingRegions != null) { - const memberEntries = se_RemoveIpamOperatingRegionSet(input.RemoveOperatingRegions, context); - if (input.RemoveOperatingRegions?.length === 0) { + if (input[_ROR] != null) { + const memberEntries = se_RemoveIpamOperatingRegionSet(input[_ROR], context); + if (input[_ROR]?.length === 0) { entries.RemoveOperatingRegion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59260,14 +59244,14 @@ const se_ModifyIpamResourceDiscoveryRequest = ( */ const se_ModifyIpamScopeRequest = (input: ModifyIpamScopeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamScopeId != null) { - entries["IpamScopeId"] = input.IpamScopeId; + if (input[_ISI] != null) { + entries[_ISI] = input[_ISI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } return entries; }; @@ -59277,20 +59261,20 @@ const se_ModifyIpamScopeRequest = (input: ModifyIpamScopeRequest, context: __Ser */ const se_ModifyLaunchTemplateRequest = (input: ModifyLaunchTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.LaunchTemplateId != null) { - entries["LaunchTemplateId"] = input.LaunchTemplateId; + if (input[_LTI] != null) { + entries[_LTI] = input[_LTI]; } - if (input.LaunchTemplateName != null) { - entries["LaunchTemplateName"] = input.LaunchTemplateName; + if (input[_LTN] != null) { + entries[_LTN] = input[_LTN]; } - if (input.DefaultVersion != null) { - entries["SetDefaultVersion"] = input.DefaultVersion; + if (input[_DVef] != null) { + entries[_SDV] = input[_DVef]; } return entries; }; @@ -59300,23 +59284,23 @@ const se_ModifyLaunchTemplateRequest = (input: ModifyLaunchTemplateRequest, cont */ const se_ModifyLocalGatewayRouteRequest = (input: ModifyLocalGatewayRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.LocalGatewayVirtualInterfaceGroupId != null) { - entries["LocalGatewayVirtualInterfaceGroupId"] = input.LocalGatewayVirtualInterfaceGroupId; + if (input[_LGVIGI] != null) { + entries[_LGVIGI] = input[_LGVIGI]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.DestinationPrefixListId != null) { - entries["DestinationPrefixListId"] = input.DestinationPrefixListId; + if (input[_DPLI] != null) { + entries[_DPLI] = input[_DPLI]; } return entries; }; @@ -59326,21 +59310,21 @@ const se_ModifyLocalGatewayRouteRequest = (input: ModifyLocalGatewayRouteRequest */ const se_ModifyManagedPrefixListRequest = (input: ModifyManagedPrefixListRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.CurrentVersion != null) { - entries["CurrentVersion"] = input.CurrentVersion; + if (input[_CVu] != null) { + entries[_CVu] = input[_CVu]; } - if (input.PrefixListName != null) { - entries["PrefixListName"] = input.PrefixListName; + if (input[_PLN] != null) { + entries[_PLN] = input[_PLN]; } - if (input.AddEntries != null) { - const memberEntries = se_AddPrefixListEntries(input.AddEntries, context); - if (input.AddEntries?.length === 0) { + if (input[_AEd] != null) { + const memberEntries = se_AddPrefixListEntries(input[_AEd], context); + if (input[_AEd]?.length === 0) { entries.AddEntry = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59348,9 +59332,9 @@ const se_ModifyManagedPrefixListRequest = (input: ModifyManagedPrefixListRequest entries[loc] = value; }); } - if (input.RemoveEntries != null) { - const memberEntries = se_RemovePrefixListEntries(input.RemoveEntries, context); - if (input.RemoveEntries?.length === 0) { + if (input[_RE] != null) { + const memberEntries = se_RemovePrefixListEntries(input[_RE], context); + if (input[_RE]?.length === 0) { entries.RemoveEntry = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59358,8 +59342,8 @@ const se_ModifyManagedPrefixListRequest = (input: ModifyManagedPrefixListRequest entries[loc] = value; }); } - if (input.MaxEntries != null) { - entries["MaxEntries"] = input.MaxEntries; + if (input[_ME] != null) { + entries[_ME] = input[_ME]; } return entries; }; @@ -59372,26 +59356,26 @@ const se_ModifyNetworkInterfaceAttributeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Attachment != null) { - const memberEntries = se_NetworkInterfaceAttachmentChanges(input.Attachment, context); + if (input[_Att] != null) { + const memberEntries = se_NetworkInterfaceAttachmentChanges(input[_Att], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Attachment.${key}`; entries[loc] = value; }); } - if (input.Description != null) { - const memberEntries = se_AttributeValue(input.Description, context); + if (input[_De] != null) { + const memberEntries = se_AttributeValue(input[_De], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Description.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Groups != null) { - const memberEntries = se_SecurityGroupIdStringList(input.Groups, context); - if (input.Groups?.length === 0) { + if (input[_G] != null) { + const memberEntries = se_SecurityGroupIdStringList(input[_G], context); + if (input[_G]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59399,28 +59383,28 @@ const se_ModifyNetworkInterfaceAttributeRequest = ( entries[loc] = value; }); } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.SourceDestCheck != null) { - const memberEntries = se_AttributeBooleanValue(input.SourceDestCheck, context); + if (input[_SDC] != null) { + const memberEntries = se_AttributeBooleanValue(input[_SDC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourceDestCheck.${key}`; entries[loc] = value; }); } - if (input.EnaSrdSpecification != null) { - const memberEntries = se_EnaSrdSpecification(input.EnaSrdSpecification, context); + if (input[_ESS] != null) { + const memberEntries = se_EnaSrdSpecification(input[_ESS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnaSrdSpecification.${key}`; entries[loc] = value; }); } - if (input.EnablePrimaryIpv6 != null) { - entries["EnablePrimaryIpv6"] = input.EnablePrimaryIpv6; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.ConnectionTrackingSpecification != null) { - const memberEntries = se_ConnectionTrackingSpecificationRequest(input.ConnectionTrackingSpecification, context); + if (input[_CTS] != null) { + const memberEntries = se_ConnectionTrackingSpecificationRequest(input[_CTS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionTrackingSpecification.${key}`; entries[loc] = value; @@ -59437,20 +59421,20 @@ const se_ModifyPrivateDnsNameOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.PrivateDnsHostnameType != null) { - entries["PrivateDnsHostnameType"] = input.PrivateDnsHostnameType; + if (input[_PDHT] != null) { + entries[_PDHT] = input[_PDHT]; } - if (input.EnableResourceNameDnsARecord != null) { - entries["EnableResourceNameDnsARecord"] = input.EnableResourceNameDnsARecord; + if (input[_ERNDAR] != null) { + entries[_ERNDAR] = input[_ERNDAR]; } - if (input.EnableResourceNameDnsAAAARecord != null) { - entries["EnableResourceNameDnsAAAARecord"] = input.EnableResourceNameDnsAAAARecord; + if (input[_ERNDAAAAR] != null) { + entries[_ERNDAAAAR] = input[_ERNDAAAAR]; } return entries; }; @@ -59460,9 +59444,9 @@ const se_ModifyPrivateDnsNameOptionsRequest = ( */ const se_ModifyReservedInstancesRequest = (input: ModifyReservedInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReservedInstancesIds != null) { - const memberEntries = se_ReservedInstancesIdStringList(input.ReservedInstancesIds, context); - if (input.ReservedInstancesIds?.length === 0) { + if (input[_RIIes] != null) { + const memberEntries = se_ReservedInstancesIdStringList(input[_RIIes], context); + if (input[_RIIes]?.length === 0) { entries.ReservedInstancesId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59470,12 +59454,12 @@ const se_ModifyReservedInstancesRequest = (input: ModifyReservedInstancesRequest entries[loc] = value; }); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.TargetConfigurations != null) { - const memberEntries = se_ReservedInstancesConfigurationList(input.TargetConfigurations, context); - if (input.TargetConfigurations?.length === 0) { + if (input[_TC] != null) { + const memberEntries = se_ReservedInstancesConfigurationList(input[_TC], context); + if (input[_TC]?.length === 0) { entries.ReservedInstancesConfigurationSetItemType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59491,12 +59475,12 @@ const se_ModifyReservedInstancesRequest = (input: ModifyReservedInstancesRequest */ const se_ModifySecurityGroupRulesRequest = (input: ModifySecurityGroupRulesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.SecurityGroupRules != null) { - const memberEntries = se_SecurityGroupRuleUpdateList(input.SecurityGroupRules, context); - if (input.SecurityGroupRules?.length === 0) { + if (input[_SGR] != null) { + const memberEntries = se_SecurityGroupRuleUpdateList(input[_SGR], context); + if (input[_SGR]?.length === 0) { entries.SecurityGroupRule = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59504,8 +59488,8 @@ const se_ModifySecurityGroupRulesRequest = (input: ModifySecurityGroupRulesReque entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59515,19 +59499,19 @@ const se_ModifySecurityGroupRulesRequest = (input: ModifySecurityGroupRulesReque */ const se_ModifySnapshotAttributeRequest = (input: ModifySnapshotAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.CreateVolumePermission != null) { - const memberEntries = se_CreateVolumePermissionModifications(input.CreateVolumePermission, context); + if (input[_CVP] != null) { + const memberEntries = se_CreateVolumePermissionModifications(input[_CVP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CreateVolumePermission.${key}`; entries[loc] = value; }); } - if (input.GroupNames != null) { - const memberEntries = se_GroupNameStringList(input.GroupNames, context); - if (input.GroupNames?.length === 0) { + if (input[_GNr] != null) { + const memberEntries = se_GroupNameStringList(input[_GNr], context); + if (input[_GNr]?.length === 0) { entries.UserGroup = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59535,15 +59519,15 @@ const se_ModifySnapshotAttributeRequest = (input: ModifySnapshotAttributeRequest entries[loc] = value; }); } - if (input.OperationType != null) { - entries["OperationType"] = input.OperationType; + if (input[_OTp] != null) { + entries[_OTp] = input[_OTp]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.UserIds != null) { - const memberEntries = se_UserIdStringList(input.UserIds, context); - if (input.UserIds?.length === 0) { + if (input[_UIse] != null) { + const memberEntries = se_UserIdStringList(input[_UIse], context); + if (input[_UIse]?.length === 0) { entries.UserId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59551,8 +59535,8 @@ const se_ModifySnapshotAttributeRequest = (input: ModifySnapshotAttributeRequest entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59562,14 +59546,14 @@ const se_ModifySnapshotAttributeRequest = (input: ModifySnapshotAttributeRequest */ const se_ModifySnapshotTierRequest = (input: ModifySnapshotTierRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.StorageTier != null) { - entries["StorageTier"] = input.StorageTier; + if (input[_STto] != null) { + entries[_STto] = input[_STto]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59579,12 +59563,12 @@ const se_ModifySnapshotTierRequest = (input: ModifySnapshotTierRequest, context: */ const se_ModifySpotFleetRequestRequest = (input: ModifySpotFleetRequestRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExcessCapacityTerminationPolicy != null) { - entries["ExcessCapacityTerminationPolicy"] = input.ExcessCapacityTerminationPolicy; + if (input[_ECTP] != null) { + entries[_ECTP] = input[_ECTP]; } - if (input.LaunchTemplateConfigs != null) { - const memberEntries = se_LaunchTemplateConfigList(input.LaunchTemplateConfigs, context); - if (input.LaunchTemplateConfigs?.length === 0) { + if (input[_LTC] != null) { + const memberEntries = se_LaunchTemplateConfigList(input[_LTC], context); + if (input[_LTC]?.length === 0) { entries.LaunchTemplateConfig = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59592,17 +59576,17 @@ const se_ModifySpotFleetRequestRequest = (input: ModifySpotFleetRequestRequest, entries[loc] = value; }); } - if (input.SpotFleetRequestId != null) { - entries["SpotFleetRequestId"] = input.SpotFleetRequestId; + if (input[_SFRIp] != null) { + entries[_SFRIp] = input[_SFRIp]; } - if (input.TargetCapacity != null) { - entries["TargetCapacity"] = input.TargetCapacity; + if (input[_TCa] != null) { + entries[_TCa] = input[_TCa]; } - if (input.OnDemandTargetCapacity != null) { - entries["OnDemandTargetCapacity"] = input.OnDemandTargetCapacity; + if (input[_ODTC] != null) { + entries[_ODTC] = input[_ODTC]; } - if (input.Context != null) { - entries["Context"] = input.Context; + if (input[_Con] != null) { + entries[_Con] = input[_Con]; } return entries; }; @@ -59612,62 +59596,62 @@ const se_ModifySpotFleetRequestRequest = (input: ModifySpotFleetRequestRequest, */ const se_ModifySubnetAttributeRequest = (input: ModifySubnetAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AssignIpv6AddressOnCreation != null) { - const memberEntries = se_AttributeBooleanValue(input.AssignIpv6AddressOnCreation, context); + if (input[_AIAOC] != null) { + const memberEntries = se_AttributeBooleanValue(input[_AIAOC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AssignIpv6AddressOnCreation.${key}`; entries[loc] = value; }); } - if (input.MapPublicIpOnLaunch != null) { - const memberEntries = se_AttributeBooleanValue(input.MapPublicIpOnLaunch, context); + if (input[_MPIOL] != null) { + const memberEntries = se_AttributeBooleanValue(input[_MPIOL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MapPublicIpOnLaunch.${key}`; entries[loc] = value; }); } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.MapCustomerOwnedIpOnLaunch != null) { - const memberEntries = se_AttributeBooleanValue(input.MapCustomerOwnedIpOnLaunch, context); + if (input[_MCOIOL] != null) { + const memberEntries = se_AttributeBooleanValue(input[_MCOIOL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MapCustomerOwnedIpOnLaunch.${key}`; entries[loc] = value; }); } - if (input.CustomerOwnedIpv4Pool != null) { - entries["CustomerOwnedIpv4Pool"] = input.CustomerOwnedIpv4Pool; + if (input[_COIP] != null) { + entries[_COIP] = input[_COIP]; } - if (input.EnableDns64 != null) { - const memberEntries = se_AttributeBooleanValue(input.EnableDns64, context); + if (input[_EDn] != null) { + const memberEntries = se_AttributeBooleanValue(input[_EDn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnableDns64.${key}`; entries[loc] = value; }); } - if (input.PrivateDnsHostnameTypeOnLaunch != null) { - entries["PrivateDnsHostnameTypeOnLaunch"] = input.PrivateDnsHostnameTypeOnLaunch; + if (input[_PDHTOL] != null) { + entries[_PDHTOL] = input[_PDHTOL]; } - if (input.EnableResourceNameDnsARecordOnLaunch != null) { - const memberEntries = se_AttributeBooleanValue(input.EnableResourceNameDnsARecordOnLaunch, context); + if (input[_ERNDAROL] != null) { + const memberEntries = se_AttributeBooleanValue(input[_ERNDAROL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnableResourceNameDnsARecordOnLaunch.${key}`; entries[loc] = value; }); } - if (input.EnableResourceNameDnsAAAARecordOnLaunch != null) { - const memberEntries = se_AttributeBooleanValue(input.EnableResourceNameDnsAAAARecordOnLaunch, context); + if (input[_ERNDAAAAROL] != null) { + const memberEntries = se_AttributeBooleanValue(input[_ERNDAAAAROL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnableResourceNameDnsAAAARecordOnLaunch.${key}`; entries[loc] = value; }); } - if (input.EnableLniAtDeviceIndex != null) { - entries["EnableLniAtDeviceIndex"] = input.EnableLniAtDeviceIndex; + if (input[_ELADI] != null) { + entries[_ELADI] = input[_ELADI]; } - if (input.DisableLniAtDeviceIndex != null) { - const memberEntries = se_AttributeBooleanValue(input.DisableLniAtDeviceIndex, context); + if (input[_DLADI] != null) { + const memberEntries = se_AttributeBooleanValue(input[_DLADI], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DisableLniAtDeviceIndex.${key}`; entries[loc] = value; @@ -59684,12 +59668,12 @@ const se_ModifyTrafficMirrorFilterNetworkServicesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorFilterId != null) { - entries["TrafficMirrorFilterId"] = input.TrafficMirrorFilterId; + if (input[_TMFI] != null) { + entries[_TMFI] = input[_TMFI]; } - if (input.AddNetworkServices != null) { - const memberEntries = se_TrafficMirrorNetworkServiceList(input.AddNetworkServices, context); - if (input.AddNetworkServices?.length === 0) { + if (input[_ANS] != null) { + const memberEntries = se_TrafficMirrorNetworkServiceList(input[_ANS], context); + if (input[_ANS]?.length === 0) { entries.AddNetworkService = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59697,9 +59681,9 @@ const se_ModifyTrafficMirrorFilterNetworkServicesRequest = ( entries[loc] = value; }); } - if (input.RemoveNetworkServices != null) { - const memberEntries = se_TrafficMirrorNetworkServiceList(input.RemoveNetworkServices, context); - if (input.RemoveNetworkServices?.length === 0) { + if (input[_RNS] != null) { + const memberEntries = se_TrafficMirrorNetworkServiceList(input[_RNS], context); + if (input[_RNS]?.length === 0) { entries.RemoveNetworkService = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59707,8 +59691,8 @@ const se_ModifyTrafficMirrorFilterNetworkServicesRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59721,47 +59705,47 @@ const se_ModifyTrafficMirrorFilterRuleRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorFilterRuleId != null) { - entries["TrafficMirrorFilterRuleId"] = input.TrafficMirrorFilterRuleId; + if (input[_TMFRI] != null) { + entries[_TMFRI] = input[_TMFRI]; } - if (input.TrafficDirection != null) { - entries["TrafficDirection"] = input.TrafficDirection; + if (input[_TD] != null) { + entries[_TD] = input[_TD]; } - if (input.RuleNumber != null) { - entries["RuleNumber"] = input.RuleNumber; + if (input[_RNu] != null) { + entries[_RNu] = input[_RNu]; } - if (input.RuleAction != null) { - entries["RuleAction"] = input.RuleAction; + if (input[_RAu] != null) { + entries[_RAu] = input[_RAu]; } - if (input.DestinationPortRange != null) { - const memberEntries = se_TrafficMirrorPortRangeRequest(input.DestinationPortRange, context); + if (input[_DPR] != null) { + const memberEntries = se_TrafficMirrorPortRangeRequest(input[_DPR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DestinationPortRange.${key}`; entries[loc] = value; }); } - if (input.SourcePortRange != null) { - const memberEntries = se_TrafficMirrorPortRangeRequest(input.SourcePortRange, context); + if (input[_SPR] != null) { + const memberEntries = se_TrafficMirrorPortRangeRequest(input[_SPR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourcePortRange.${key}`; entries[loc] = value; }); } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.SourceCidrBlock != null) { - entries["SourceCidrBlock"] = input.SourceCidrBlock; + if (input[_SCB] != null) { + entries[_SCB] = input[_SCB]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.RemoveFields != null) { - const memberEntries = se_TrafficMirrorFilterRuleFieldList(input.RemoveFields, context); - if (input.RemoveFields?.length === 0) { + if (input[_RF] != null) { + const memberEntries = se_TrafficMirrorFilterRuleFieldList(input[_RF], context); + if (input[_RF]?.length === 0) { entries.RemoveField = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59769,8 +59753,8 @@ const se_ModifyTrafficMirrorFilterRuleRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59783,30 +59767,30 @@ const se_ModifyTrafficMirrorSessionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrafficMirrorSessionId != null) { - entries["TrafficMirrorSessionId"] = input.TrafficMirrorSessionId; + if (input[_TMSI] != null) { + entries[_TMSI] = input[_TMSI]; } - if (input.TrafficMirrorTargetId != null) { - entries["TrafficMirrorTargetId"] = input.TrafficMirrorTargetId; + if (input[_TMTI] != null) { + entries[_TMTI] = input[_TMTI]; } - if (input.TrafficMirrorFilterId != null) { - entries["TrafficMirrorFilterId"] = input.TrafficMirrorFilterId; + if (input[_TMFI] != null) { + entries[_TMFI] = input[_TMFI]; } - if (input.PacketLength != null) { - entries["PacketLength"] = input.PacketLength; + if (input[_PL] != null) { + entries[_PL] = input[_PL]; } - if (input.SessionNumber != null) { - entries["SessionNumber"] = input.SessionNumber; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.VirtualNetworkId != null) { - entries["VirtualNetworkId"] = input.VirtualNetworkId; + if (input[_VNI] != null) { + entries[_VNI] = input[_VNI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.RemoveFields != null) { - const memberEntries = se_TrafficMirrorSessionFieldList(input.RemoveFields, context); - if (input.RemoveFields?.length === 0) { + if (input[_RF] != null) { + const memberEntries = se_TrafficMirrorSessionFieldList(input[_RF], context); + if (input[_RF]?.length === 0) { entries.RemoveField = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59814,8 +59798,8 @@ const se_ModifyTrafficMirrorSessionRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59825,9 +59809,9 @@ const se_ModifyTrafficMirrorSessionRequest = ( */ const se_ModifyTransitGatewayOptions = (input: ModifyTransitGatewayOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.AddTransitGatewayCidrBlocks != null) { - const memberEntries = se_TransitGatewayCidrBlockStringList(input.AddTransitGatewayCidrBlocks, context); - if (input.AddTransitGatewayCidrBlocks?.length === 0) { + if (input[_ATGCB] != null) { + const memberEntries = se_TransitGatewayCidrBlockStringList(input[_ATGCB], context); + if (input[_ATGCB]?.length === 0) { entries.AddTransitGatewayCidrBlocks = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59835,9 +59819,9 @@ const se_ModifyTransitGatewayOptions = (input: ModifyTransitGatewayOptions, cont entries[loc] = value; }); } - if (input.RemoveTransitGatewayCidrBlocks != null) { - const memberEntries = se_TransitGatewayCidrBlockStringList(input.RemoveTransitGatewayCidrBlocks, context); - if (input.RemoveTransitGatewayCidrBlocks?.length === 0) { + if (input[_RTGCB] != null) { + const memberEntries = se_TransitGatewayCidrBlockStringList(input[_RTGCB], context); + if (input[_RTGCB]?.length === 0) { entries.RemoveTransitGatewayCidrBlocks = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59845,32 +59829,32 @@ const se_ModifyTransitGatewayOptions = (input: ModifyTransitGatewayOptions, cont entries[loc] = value; }); } - if (input.VpnEcmpSupport != null) { - entries["VpnEcmpSupport"] = input.VpnEcmpSupport; + if (input[_VES] != null) { + entries[_VES] = input[_VES]; } - if (input.DnsSupport != null) { - entries["DnsSupport"] = input.DnsSupport; + if (input[_DSns] != null) { + entries[_DSns] = input[_DSns]; } - if (input.SecurityGroupReferencingSupport != null) { - entries["SecurityGroupReferencingSupport"] = input.SecurityGroupReferencingSupport; + if (input[_SGRS] != null) { + entries[_SGRS] = input[_SGRS]; } - if (input.AutoAcceptSharedAttachments != null) { - entries["AutoAcceptSharedAttachments"] = input.AutoAcceptSharedAttachments; + if (input[_AASAu] != null) { + entries[_AASAu] = input[_AASAu]; } - if (input.DefaultRouteTableAssociation != null) { - entries["DefaultRouteTableAssociation"] = input.DefaultRouteTableAssociation; + if (input[_DRTA] != null) { + entries[_DRTA] = input[_DRTA]; } - if (input.AssociationDefaultRouteTableId != null) { - entries["AssociationDefaultRouteTableId"] = input.AssociationDefaultRouteTableId; + if (input[_ADRTI] != null) { + entries[_ADRTI] = input[_ADRTI]; } - if (input.DefaultRouteTablePropagation != null) { - entries["DefaultRouteTablePropagation"] = input.DefaultRouteTablePropagation; + if (input[_DRTP] != null) { + entries[_DRTP] = input[_DRTP]; } - if (input.PropagationDefaultRouteTableId != null) { - entries["PropagationDefaultRouteTableId"] = input.PropagationDefaultRouteTableId; + if (input[_PDRTI] != null) { + entries[_PDRTI] = input[_PDRTI]; } - if (input.AmazonSideAsn != null) { - entries["AmazonSideAsn"] = input.AmazonSideAsn; + if (input[_ASA] != null) { + entries[_ASA] = input[_ASA]; } return entries; }; @@ -59883,20 +59867,20 @@ const se_ModifyTransitGatewayPrefixListReferenceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.Blackhole != null) { - entries["Blackhole"] = input.Blackhole; + if (input[_Bl] != null) { + entries[_Bl] = input[_Bl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59906,21 +59890,21 @@ const se_ModifyTransitGatewayPrefixListReferenceRequest = ( */ const se_ModifyTransitGatewayRequest = (input: ModifyTransitGatewayRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Options != null) { - const memberEntries = se_ModifyTransitGatewayOptions(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_ModifyTransitGatewayOptions(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59933,12 +59917,12 @@ const se_ModifyTransitGatewayVpcAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.AddSubnetIds != null) { - const memberEntries = se_TransitGatewaySubnetIdList(input.AddSubnetIds, context); - if (input.AddSubnetIds?.length === 0) { + if (input[_ASI] != null) { + const memberEntries = se_TransitGatewaySubnetIdList(input[_ASI], context); + if (input[_ASI]?.length === 0) { entries.AddSubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59946,9 +59930,9 @@ const se_ModifyTransitGatewayVpcAttachmentRequest = ( entries[loc] = value; }); } - if (input.RemoveSubnetIds != null) { - const memberEntries = se_TransitGatewaySubnetIdList(input.RemoveSubnetIds, context); - if (input.RemoveSubnetIds?.length === 0) { + if (input[_RSIe] != null) { + const memberEntries = se_TransitGatewaySubnetIdList(input[_RSIe], context); + if (input[_RSIe]?.length === 0) { entries.RemoveSubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -59956,15 +59940,15 @@ const se_ModifyTransitGatewayVpcAttachmentRequest = ( entries[loc] = value; }); } - if (input.Options != null) { - const memberEntries = se_ModifyTransitGatewayVpcAttachmentRequestOptions(input.Options, context); + if (input[_O] != null) { + const memberEntries = se_ModifyTransitGatewayVpcAttachmentRequestOptions(input[_O], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Options.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -59977,17 +59961,17 @@ const se_ModifyTransitGatewayVpcAttachmentRequestOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DnsSupport != null) { - entries["DnsSupport"] = input.DnsSupport; + if (input[_DSns] != null) { + entries[_DSns] = input[_DSns]; } - if (input.SecurityGroupReferencingSupport != null) { - entries["SecurityGroupReferencingSupport"] = input.SecurityGroupReferencingSupport; + if (input[_SGRS] != null) { + entries[_SGRS] = input[_SGRS]; } - if (input.Ipv6Support != null) { - entries["Ipv6Support"] = input.Ipv6Support; + if (input[_ISp] != null) { + entries[_ISp] = input[_ISp]; } - if (input.ApplianceModeSupport != null) { - entries["ApplianceModeSupport"] = input.ApplianceModeSupport; + if (input[_AMS] != null) { + entries[_AMS] = input[_AMS]; } return entries; }; @@ -60000,11 +59984,11 @@ const se_ModifyVerifiedAccessEndpointEniOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } return entries; }; @@ -60017,9 +60001,9 @@ const se_ModifyVerifiedAccessEndpointLoadBalancerOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubnetIds != null) { - const memberEntries = se_ModifyVerifiedAccessEndpointSubnetIdList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_ModifyVerifiedAccessEndpointSubnetIdList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60027,11 +60011,11 @@ const se_ModifyVerifiedAccessEndpointLoadBalancerOptions = ( entries[loc] = value; }); } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } return entries; }; @@ -60044,26 +60028,26 @@ const se_ModifyVerifiedAccessEndpointPolicyRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessEndpointId != null) { - entries["VerifiedAccessEndpointId"] = input.VerifiedAccessEndpointId; + if (input[_VAEI] != null) { + entries[_VAEI] = input[_VAEI]; } - if (input.PolicyEnabled != null) { - entries["PolicyEnabled"] = input.PolicyEnabled; + if (input[_PE] != null) { + entries[_PE] = input[_PE]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SseSpecification != null) { - const memberEntries = se_VerifiedAccessSseSpecificationRequest(input.SseSpecification, context); + if (input[_SS] != null) { + const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SseSpecification.${key}`; entries[loc] = value; @@ -60080,37 +60064,37 @@ const se_ModifyVerifiedAccessEndpointRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessEndpointId != null) { - entries["VerifiedAccessEndpointId"] = input.VerifiedAccessEndpointId; + if (input[_VAEI] != null) { + entries[_VAEI] = input[_VAEI]; } - if (input.VerifiedAccessGroupId != null) { - entries["VerifiedAccessGroupId"] = input.VerifiedAccessGroupId; + if (input[_VAGI] != null) { + entries[_VAGI] = input[_VAGI]; } - if (input.LoadBalancerOptions != null) { - const memberEntries = se_ModifyVerifiedAccessEndpointLoadBalancerOptions(input.LoadBalancerOptions, context); + if (input[_LBO] != null) { + const memberEntries = se_ModifyVerifiedAccessEndpointLoadBalancerOptions(input[_LBO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LoadBalancerOptions.${key}`; entries[loc] = value; }); } - if (input.NetworkInterfaceOptions != null) { - const memberEntries = se_ModifyVerifiedAccessEndpointEniOptions(input.NetworkInterfaceOptions, context); + if (input[_NIO] != null) { + const memberEntries = se_ModifyVerifiedAccessEndpointEniOptions(input[_NIO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NetworkInterfaceOptions.${key}`; entries[loc] = value; }); } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60139,26 +60123,26 @@ const se_ModifyVerifiedAccessGroupPolicyRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessGroupId != null) { - entries["VerifiedAccessGroupId"] = input.VerifiedAccessGroupId; + if (input[_VAGI] != null) { + entries[_VAGI] = input[_VAGI]; } - if (input.PolicyEnabled != null) { - entries["PolicyEnabled"] = input.PolicyEnabled; + if (input[_PE] != null) { + entries[_PE] = input[_PE]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SseSpecification != null) { - const memberEntries = se_VerifiedAccessSseSpecificationRequest(input.SseSpecification, context); + if (input[_SS] != null) { + const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SseSpecification.${key}`; entries[loc] = value; @@ -60172,23 +60156,23 @@ const se_ModifyVerifiedAccessGroupPolicyRequest = ( */ const se_ModifyVerifiedAccessGroupRequest = (input: ModifyVerifiedAccessGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VerifiedAccessGroupId != null) { - entries["VerifiedAccessGroupId"] = input.VerifiedAccessGroupId; + if (input[_VAGI] != null) { + entries[_VAGI] = input[_VAGI]; } - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60201,24 +60185,24 @@ const se_ModifyVerifiedAccessInstanceLoggingConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.AccessLogs != null) { - const memberEntries = se_VerifiedAccessLogOptions(input.AccessLogs, context); + if (input[_AL] != null) { + const memberEntries = se_VerifiedAccessLogOptions(input[_AL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AccessLogs.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -60231,20 +60215,20 @@ const se_ModifyVerifiedAccessInstanceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessInstanceId != null) { - entries["VerifiedAccessInstanceId"] = input.VerifiedAccessInstanceId; + if (input[_VAII] != null) { + entries[_VAII] = input[_VAII]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -60257,8 +60241,8 @@ const se_ModifyVerifiedAccessTrustProviderDeviceOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PublicSigningKeyUrl != null) { - entries["PublicSigningKeyUrl"] = input.PublicSigningKeyUrl; + if (input[_PSKU] != null) { + entries[_PSKU] = input[_PSKU]; } return entries; }; @@ -60271,26 +60255,26 @@ const se_ModifyVerifiedAccessTrustProviderOidcOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Issuer != null) { - entries["Issuer"] = input.Issuer; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.AuthorizationEndpoint != null) { - entries["AuthorizationEndpoint"] = input.AuthorizationEndpoint; + if (input[_AE] != null) { + entries[_AE] = input[_AE]; } - if (input.TokenEndpoint != null) { - entries["TokenEndpoint"] = input.TokenEndpoint; + if (input[_TEo] != null) { + entries[_TEo] = input[_TEo]; } - if (input.UserInfoEndpoint != null) { - entries["UserInfoEndpoint"] = input.UserInfoEndpoint; + if (input[_UIE] != null) { + entries[_UIE] = input[_UIE]; } - if (input.ClientId != null) { - entries["ClientId"] = input.ClientId; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ClientSecret != null) { - entries["ClientSecret"] = input.ClientSecret; + if (input[_CSl] != null) { + entries[_CSl] = input[_CSl]; } - if (input.Scope != null) { - entries["Scope"] = input.Scope; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } return entries; }; @@ -60303,37 +60287,37 @@ const se_ModifyVerifiedAccessTrustProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VerifiedAccessTrustProviderId != null) { - entries["VerifiedAccessTrustProviderId"] = input.VerifiedAccessTrustProviderId; + if (input[_VATPI] != null) { + entries[_VATPI] = input[_VATPI]; } - if (input.OidcOptions != null) { - const memberEntries = se_ModifyVerifiedAccessTrustProviderOidcOptions(input.OidcOptions, context); + if (input[_OO] != null) { + const memberEntries = se_ModifyVerifiedAccessTrustProviderOidcOptions(input[_OO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `OidcOptions.${key}`; entries[loc] = value; }); } - if (input.DeviceOptions != null) { - const memberEntries = se_ModifyVerifiedAccessTrustProviderDeviceOptions(input.DeviceOptions, context); + if (input[_DOe] != null) { + const memberEntries = se_ModifyVerifiedAccessTrustProviderDeviceOptions(input[_DOe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DeviceOptions.${key}`; entries[loc] = value; }); } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.SseSpecification != null) { - const memberEntries = se_VerifiedAccessSseSpecificationRequest(input.SseSpecification, context); + if (input[_SS] != null) { + const memberEntries = se_VerifiedAccessSseSpecificationRequest(input[_SS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SseSpecification.${key}`; entries[loc] = value; @@ -60347,18 +60331,18 @@ const se_ModifyVerifiedAccessTrustProviderRequest = ( */ const se_ModifyVolumeAttributeRequest = (input: ModifyVolumeAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AutoEnableIO != null) { - const memberEntries = se_AttributeBooleanValue(input.AutoEnableIO, context); + if (input[_AEIO] != null) { + const memberEntries = se_AttributeBooleanValue(input[_AEIO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AutoEnableIO.${key}`; entries[loc] = value; }); } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60368,26 +60352,26 @@ const se_ModifyVolumeAttributeRequest = (input: ModifyVolumeAttributeRequest, co */ const se_ModifyVolumeRequest = (input: ModifyVolumeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VolumeId != null) { - entries["VolumeId"] = input.VolumeId; + if (input[_VIo] != null) { + entries[_VIo] = input[_VIo]; } - if (input.Size != null) { - entries["Size"] = input.Size; + if (input[_Siz] != null) { + entries[_Siz] = input[_Siz]; } - if (input.VolumeType != null) { - entries["VolumeType"] = input.VolumeType; + if (input[_VT] != null) { + entries[_VT] = input[_VT]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_Io] != null) { + entries[_Io] = input[_Io]; } - if (input.Throughput != null) { - entries["Throughput"] = input.Throughput; + if (input[_Th] != null) { + entries[_Th] = input[_Th]; } - if (input.MultiAttachEnabled != null) { - entries["MultiAttachEnabled"] = input.MultiAttachEnabled; + if (input[_MAE] != null) { + entries[_MAE] = input[_MAE]; } return entries; }; @@ -60397,25 +60381,25 @@ const se_ModifyVolumeRequest = (input: ModifyVolumeRequest, context: __SerdeCont */ const se_ModifyVpcAttributeRequest = (input: ModifyVpcAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnableDnsHostnames != null) { - const memberEntries = se_AttributeBooleanValue(input.EnableDnsHostnames, context); + if (input[_EDH] != null) { + const memberEntries = se_AttributeBooleanValue(input[_EDH], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnableDnsHostnames.${key}`; entries[loc] = value; }); } - if (input.EnableDnsSupport != null) { - const memberEntries = se_AttributeBooleanValue(input.EnableDnsSupport, context); + if (input[_EDS] != null) { + const memberEntries = se_AttributeBooleanValue(input[_EDS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnableDnsSupport.${key}`; entries[loc] = value; }); } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.EnableNetworkAddressUsageMetrics != null) { - const memberEntries = se_AttributeBooleanValue(input.EnableNetworkAddressUsageMetrics, context); + if (input[_ENAUM] != null) { + const memberEntries = se_AttributeBooleanValue(input[_ENAUM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnableNetworkAddressUsageMetrics.${key}`; entries[loc] = value; @@ -60432,18 +60416,18 @@ const se_ModifyVpcEndpointConnectionNotificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ConnectionNotificationId != null) { - entries["ConnectionNotificationId"] = input.ConnectionNotificationId; + if (input[_CNIon] != null) { + entries[_CNIon] = input[_CNIon]; } - if (input.ConnectionNotificationArn != null) { - entries["ConnectionNotificationArn"] = input.ConnectionNotificationArn; + if (input[_CNAon] != null) { + entries[_CNAon] = input[_CNAon]; } - if (input.ConnectionEvents != null) { - const memberEntries = se_ValueStringList(input.ConnectionEvents, context); - if (input.ConnectionEvents?.length === 0) { + if (input[_CEo] != null) { + const memberEntries = se_ValueStringList(input[_CEo], context); + if (input[_CEo]?.length === 0) { entries.ConnectionEvents = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60459,21 +60443,21 @@ const se_ModifyVpcEndpointConnectionNotificationRequest = ( */ const se_ModifyVpcEndpointRequest = (input: ModifyVpcEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcEndpointId != null) { - entries["VpcEndpointId"] = input.VpcEndpointId; + if (input[_VEIp] != null) { + entries[_VEIp] = input[_VEIp]; } - if (input.ResetPolicy != null) { - entries["ResetPolicy"] = input.ResetPolicy; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.AddRouteTableIds != null) { - const memberEntries = se_VpcEndpointRouteTableIdList(input.AddRouteTableIds, context); - if (input.AddRouteTableIds?.length === 0) { + if (input[_ARTI] != null) { + const memberEntries = se_VpcEndpointRouteTableIdList(input[_ARTI], context); + if (input[_ARTI]?.length === 0) { entries.AddRouteTableId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60481,9 +60465,9 @@ const se_ModifyVpcEndpointRequest = (input: ModifyVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.RemoveRouteTableIds != null) { - const memberEntries = se_VpcEndpointRouteTableIdList(input.RemoveRouteTableIds, context); - if (input.RemoveRouteTableIds?.length === 0) { + if (input[_RRTI] != null) { + const memberEntries = se_VpcEndpointRouteTableIdList(input[_RRTI], context); + if (input[_RRTI]?.length === 0) { entries.RemoveRouteTableId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60491,9 +60475,9 @@ const se_ModifyVpcEndpointRequest = (input: ModifyVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.AddSubnetIds != null) { - const memberEntries = se_VpcEndpointSubnetIdList(input.AddSubnetIds, context); - if (input.AddSubnetIds?.length === 0) { + if (input[_ASI] != null) { + const memberEntries = se_VpcEndpointSubnetIdList(input[_ASI], context); + if (input[_ASI]?.length === 0) { entries.AddSubnetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60501,9 +60485,9 @@ const se_ModifyVpcEndpointRequest = (input: ModifyVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.RemoveSubnetIds != null) { - const memberEntries = se_VpcEndpointSubnetIdList(input.RemoveSubnetIds, context); - if (input.RemoveSubnetIds?.length === 0) { + if (input[_RSIe] != null) { + const memberEntries = se_VpcEndpointSubnetIdList(input[_RSIe], context); + if (input[_RSIe]?.length === 0) { entries.RemoveSubnetId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60511,9 +60495,9 @@ const se_ModifyVpcEndpointRequest = (input: ModifyVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.AddSecurityGroupIds != null) { - const memberEntries = se_VpcEndpointSecurityGroupIdList(input.AddSecurityGroupIds, context); - if (input.AddSecurityGroupIds?.length === 0) { + if (input[_ASGId] != null) { + const memberEntries = se_VpcEndpointSecurityGroupIdList(input[_ASGId], context); + if (input[_ASGId]?.length === 0) { entries.AddSecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60521,9 +60505,9 @@ const se_ModifyVpcEndpointRequest = (input: ModifyVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.RemoveSecurityGroupIds != null) { - const memberEntries = se_VpcEndpointSecurityGroupIdList(input.RemoveSecurityGroupIds, context); - if (input.RemoveSecurityGroupIds?.length === 0) { + if (input[_RSGIe] != null) { + const memberEntries = se_VpcEndpointSecurityGroupIdList(input[_RSGIe], context); + if (input[_RSGIe]?.length === 0) { entries.RemoveSecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60531,22 +60515,22 @@ const se_ModifyVpcEndpointRequest = (input: ModifyVpcEndpointRequest, context: _ entries[loc] = value; }); } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } - if (input.DnsOptions != null) { - const memberEntries = se_DnsOptionsSpecification(input.DnsOptions, context); + if (input[_DOn] != null) { + const memberEntries = se_DnsOptionsSpecification(input[_DOn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DnsOptions.${key}`; entries[loc] = value; }); } - if (input.PrivateDnsEnabled != null) { - entries["PrivateDnsEnabled"] = input.PrivateDnsEnabled; + if (input[_PDE] != null) { + entries[_PDE] = input[_PDE]; } - if (input.SubnetConfigurations != null) { - const memberEntries = se_SubnetConfigurationsList(input.SubnetConfigurations, context); - if (input.SubnetConfigurations?.length === 0) { + if (input[_SC] != null) { + const memberEntries = se_SubnetConfigurationsList(input[_SC], context); + if (input[_SC]?.length === 0) { entries.SubnetConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60565,24 +60549,24 @@ const se_ModifyVpcEndpointServiceConfigurationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } - if (input.PrivateDnsName != null) { - entries["PrivateDnsName"] = input.PrivateDnsName; + if (input[_PDN] != null) { + entries[_PDN] = input[_PDN]; } - if (input.RemovePrivateDnsName != null) { - entries["RemovePrivateDnsName"] = input.RemovePrivateDnsName; + if (input[_RPDN] != null) { + entries[_RPDN] = input[_RPDN]; } - if (input.AcceptanceRequired != null) { - entries["AcceptanceRequired"] = input.AcceptanceRequired; + if (input[_ARc] != null) { + entries[_ARc] = input[_ARc]; } - if (input.AddNetworkLoadBalancerArns != null) { - const memberEntries = se_ValueStringList(input.AddNetworkLoadBalancerArns, context); - if (input.AddNetworkLoadBalancerArns?.length === 0) { + if (input[_ANLBA] != null) { + const memberEntries = se_ValueStringList(input[_ANLBA], context); + if (input[_ANLBA]?.length === 0) { entries.AddNetworkLoadBalancerArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60590,9 +60574,9 @@ const se_ModifyVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.RemoveNetworkLoadBalancerArns != null) { - const memberEntries = se_ValueStringList(input.RemoveNetworkLoadBalancerArns, context); - if (input.RemoveNetworkLoadBalancerArns?.length === 0) { + if (input[_RNLBA] != null) { + const memberEntries = se_ValueStringList(input[_RNLBA], context); + if (input[_RNLBA]?.length === 0) { entries.RemoveNetworkLoadBalancerArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60600,9 +60584,9 @@ const se_ModifyVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.AddGatewayLoadBalancerArns != null) { - const memberEntries = se_ValueStringList(input.AddGatewayLoadBalancerArns, context); - if (input.AddGatewayLoadBalancerArns?.length === 0) { + if (input[_AGLBA] != null) { + const memberEntries = se_ValueStringList(input[_AGLBA], context); + if (input[_AGLBA]?.length === 0) { entries.AddGatewayLoadBalancerArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60610,9 +60594,9 @@ const se_ModifyVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.RemoveGatewayLoadBalancerArns != null) { - const memberEntries = se_ValueStringList(input.RemoveGatewayLoadBalancerArns, context); - if (input.RemoveGatewayLoadBalancerArns?.length === 0) { + if (input[_RGLBA] != null) { + const memberEntries = se_ValueStringList(input[_RGLBA], context); + if (input[_RGLBA]?.length === 0) { entries.RemoveGatewayLoadBalancerArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60620,9 +60604,9 @@ const se_ModifyVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.AddSupportedIpAddressTypes != null) { - const memberEntries = se_ValueStringList(input.AddSupportedIpAddressTypes, context); - if (input.AddSupportedIpAddressTypes?.length === 0) { + if (input[_ASIAT] != null) { + const memberEntries = se_ValueStringList(input[_ASIAT], context); + if (input[_ASIAT]?.length === 0) { entries.AddSupportedIpAddressType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60630,9 +60614,9 @@ const se_ModifyVpcEndpointServiceConfigurationRequest = ( entries[loc] = value; }); } - if (input.RemoveSupportedIpAddressTypes != null) { - const memberEntries = se_ValueStringList(input.RemoveSupportedIpAddressTypes, context); - if (input.RemoveSupportedIpAddressTypes?.length === 0) { + if (input[_RSIAT] != null) { + const memberEntries = se_ValueStringList(input[_RSIAT], context); + if (input[_RSIAT]?.length === 0) { entries.RemoveSupportedIpAddressType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60651,14 +60635,14 @@ const se_ModifyVpcEndpointServicePayerResponsibilityRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } - if (input.PayerResponsibility != null) { - entries["PayerResponsibility"] = input.PayerResponsibility; + if (input[_PRa] != null) { + entries[_PRa] = input[_PRa]; } return entries; }; @@ -60671,15 +60655,15 @@ const se_ModifyVpcEndpointServicePermissionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } - if (input.AddAllowedPrincipals != null) { - const memberEntries = se_ValueStringList(input.AddAllowedPrincipals, context); - if (input.AddAllowedPrincipals?.length === 0) { + if (input[_AAP] != null) { + const memberEntries = se_ValueStringList(input[_AAP], context); + if (input[_AAP]?.length === 0) { entries.AddAllowedPrincipals = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60687,9 +60671,9 @@ const se_ModifyVpcEndpointServicePermissionsRequest = ( entries[loc] = value; }); } - if (input.RemoveAllowedPrincipals != null) { - const memberEntries = se_ValueStringList(input.RemoveAllowedPrincipals, context); - if (input.RemoveAllowedPrincipals?.length === 0) { + if (input[_RAP] != null) { + const memberEntries = se_ValueStringList(input[_RAP], context); + if (input[_RAP]?.length === 0) { entries.RemoveAllowedPrincipals = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60708,25 +60692,25 @@ const se_ModifyVpcPeeringConnectionOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AccepterPeeringConnectionOptions != null) { - const memberEntries = se_PeeringConnectionOptionsRequest(input.AccepterPeeringConnectionOptions, context); + if (input[_APCO] != null) { + const memberEntries = se_PeeringConnectionOptionsRequest(input[_APCO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AccepterPeeringConnectionOptions.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.RequesterPeeringConnectionOptions != null) { - const memberEntries = se_PeeringConnectionOptionsRequest(input.RequesterPeeringConnectionOptions, context); + if (input[_RPCO] != null) { + const memberEntries = se_PeeringConnectionOptionsRequest(input[_RPCO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RequesterPeeringConnectionOptions.${key}`; entries[loc] = value; }); } - if (input.VpcPeeringConnectionId != null) { - entries["VpcPeeringConnectionId"] = input.VpcPeeringConnectionId; + if (input[_VPCI] != null) { + entries[_VPCI] = input[_VPCI]; } return entries; }; @@ -60736,14 +60720,14 @@ const se_ModifyVpcPeeringConnectionOptionsRequest = ( */ const se_ModifyVpcTenancyRequest = (input: ModifyVpcTenancyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.InstanceTenancy != null) { - entries["InstanceTenancy"] = input.InstanceTenancy; + if (input[_ITns] != null) { + entries[_ITns] = input[_ITns]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60756,23 +60740,23 @@ const se_ModifyVpnConnectionOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.LocalIpv4NetworkCidr != null) { - entries["LocalIpv4NetworkCidr"] = input.LocalIpv4NetworkCidr; + if (input[_LINC] != null) { + entries[_LINC] = input[_LINC]; } - if (input.RemoteIpv4NetworkCidr != null) { - entries["RemoteIpv4NetworkCidr"] = input.RemoteIpv4NetworkCidr; + if (input[_RINC] != null) { + entries[_RINC] = input[_RINC]; } - if (input.LocalIpv6NetworkCidr != null) { - entries["LocalIpv6NetworkCidr"] = input.LocalIpv6NetworkCidr; + if (input[_LINCo] != null) { + entries[_LINCo] = input[_LINCo]; } - if (input.RemoteIpv6NetworkCidr != null) { - entries["RemoteIpv6NetworkCidr"] = input.RemoteIpv6NetworkCidr; + if (input[_RINCe] != null) { + entries[_RINCe] = input[_RINCe]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60782,20 +60766,20 @@ const se_ModifyVpnConnectionOptionsRequest = ( */ const se_ModifyVpnConnectionRequest = (input: ModifyVpnConnectionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.CustomerGatewayId != null) { - entries["CustomerGatewayId"] = input.CustomerGatewayId; + if (input[_CGIu] != null) { + entries[_CGIu] = input[_CGIu]; } - if (input.VpnGatewayId != null) { - entries["VpnGatewayId"] = input.VpnGatewayId; + if (input[_VGI] != null) { + entries[_VGI] = input[_VGI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60808,14 +60792,14 @@ const se_ModifyVpnTunnelCertificateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.VpnTunnelOutsideIpAddress != null) { - entries["VpnTunnelOutsideIpAddress"] = input.VpnTunnelOutsideIpAddress; + if (input[_VTOIA] != null) { + entries[_VTOIA] = input[_VTOIA]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60825,24 +60809,24 @@ const se_ModifyVpnTunnelCertificateRequest = ( */ const se_ModifyVpnTunnelOptionsRequest = (input: ModifyVpnTunnelOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.VpnTunnelOutsideIpAddress != null) { - entries["VpnTunnelOutsideIpAddress"] = input.VpnTunnelOutsideIpAddress; + if (input[_VTOIA] != null) { + entries[_VTOIA] = input[_VTOIA]; } - if (input.TunnelOptions != null) { - const memberEntries = se_ModifyVpnTunnelOptionsSpecification(input.TunnelOptions, context); + if (input[_TO] != null) { + const memberEntries = se_ModifyVpnTunnelOptionsSpecification(input[_TO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TunnelOptions.${key}`; entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SkipTunnelReplacement != null) { - entries["SkipTunnelReplacement"] = input.SkipTunnelReplacement; + if (input[_STR] != null) { + entries[_STR] = input[_STR]; } return entries; }; @@ -60855,39 +60839,39 @@ const se_ModifyVpnTunnelOptionsSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TunnelInsideCidr != null) { - entries["TunnelInsideCidr"] = input.TunnelInsideCidr; + if (input[_TIC] != null) { + entries[_TIC] = input[_TIC]; } - if (input.TunnelInsideIpv6Cidr != null) { - entries["TunnelInsideIpv6Cidr"] = input.TunnelInsideIpv6Cidr; + if (input[_TIIC] != null) { + entries[_TIIC] = input[_TIIC]; } - if (input.PreSharedKey != null) { - entries["PreSharedKey"] = input.PreSharedKey; + if (input[_PSK] != null) { + entries[_PSK] = input[_PSK]; } - if (input.Phase1LifetimeSeconds != null) { - entries["Phase1LifetimeSeconds"] = input.Phase1LifetimeSeconds; + if (input[_PLS] != null) { + entries[_PLS] = input[_PLS]; } - if (input.Phase2LifetimeSeconds != null) { - entries["Phase2LifetimeSeconds"] = input.Phase2LifetimeSeconds; + if (input[_PLSh] != null) { + entries[_PLSh] = input[_PLSh]; } - if (input.RekeyMarginTimeSeconds != null) { - entries["RekeyMarginTimeSeconds"] = input.RekeyMarginTimeSeconds; + if (input[_RMTS] != null) { + entries[_RMTS] = input[_RMTS]; } - if (input.RekeyFuzzPercentage != null) { - entries["RekeyFuzzPercentage"] = input.RekeyFuzzPercentage; + if (input[_RFP] != null) { + entries[_RFP] = input[_RFP]; } - if (input.ReplayWindowSize != null) { - entries["ReplayWindowSize"] = input.ReplayWindowSize; + if (input[_RWS] != null) { + entries[_RWS] = input[_RWS]; } - if (input.DPDTimeoutSeconds != null) { - entries["DPDTimeoutSeconds"] = input.DPDTimeoutSeconds; + if (input[_DPDTS] != null) { + entries[_DPDTS] = input[_DPDTS]; } - if (input.DPDTimeoutAction != null) { - entries["DPDTimeoutAction"] = input.DPDTimeoutAction; + if (input[_DPDTA] != null) { + entries[_DPDTA] = input[_DPDTA]; } - if (input.Phase1EncryptionAlgorithms != null) { - const memberEntries = se_Phase1EncryptionAlgorithmsRequestList(input.Phase1EncryptionAlgorithms, context); - if (input.Phase1EncryptionAlgorithms?.length === 0) { + if (input[_PEA] != null) { + const memberEntries = se_Phase1EncryptionAlgorithmsRequestList(input[_PEA], context); + if (input[_PEA]?.length === 0) { entries.Phase1EncryptionAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60895,9 +60879,9 @@ const se_ModifyVpnTunnelOptionsSpecification = ( entries[loc] = value; }); } - if (input.Phase2EncryptionAlgorithms != null) { - const memberEntries = se_Phase2EncryptionAlgorithmsRequestList(input.Phase2EncryptionAlgorithms, context); - if (input.Phase2EncryptionAlgorithms?.length === 0) { + if (input[_PEAh] != null) { + const memberEntries = se_Phase2EncryptionAlgorithmsRequestList(input[_PEAh], context); + if (input[_PEAh]?.length === 0) { entries.Phase2EncryptionAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60905,9 +60889,9 @@ const se_ModifyVpnTunnelOptionsSpecification = ( entries[loc] = value; }); } - if (input.Phase1IntegrityAlgorithms != null) { - const memberEntries = se_Phase1IntegrityAlgorithmsRequestList(input.Phase1IntegrityAlgorithms, context); - if (input.Phase1IntegrityAlgorithms?.length === 0) { + if (input[_PIAh] != null) { + const memberEntries = se_Phase1IntegrityAlgorithmsRequestList(input[_PIAh], context); + if (input[_PIAh]?.length === 0) { entries.Phase1IntegrityAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60915,9 +60899,9 @@ const se_ModifyVpnTunnelOptionsSpecification = ( entries[loc] = value; }); } - if (input.Phase2IntegrityAlgorithms != null) { - const memberEntries = se_Phase2IntegrityAlgorithmsRequestList(input.Phase2IntegrityAlgorithms, context); - if (input.Phase2IntegrityAlgorithms?.length === 0) { + if (input[_PIAha] != null) { + const memberEntries = se_Phase2IntegrityAlgorithmsRequestList(input[_PIAha], context); + if (input[_PIAha]?.length === 0) { entries.Phase2IntegrityAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60925,9 +60909,9 @@ const se_ModifyVpnTunnelOptionsSpecification = ( entries[loc] = value; }); } - if (input.Phase1DHGroupNumbers != null) { - const memberEntries = se_Phase1DHGroupNumbersRequestList(input.Phase1DHGroupNumbers, context); - if (input.Phase1DHGroupNumbers?.length === 0) { + if (input[_PDHGN] != null) { + const memberEntries = se_Phase1DHGroupNumbersRequestList(input[_PDHGN], context); + if (input[_PDHGN]?.length === 0) { entries.Phase1DHGroupNumber = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60935,9 +60919,9 @@ const se_ModifyVpnTunnelOptionsSpecification = ( entries[loc] = value; }); } - if (input.Phase2DHGroupNumbers != null) { - const memberEntries = se_Phase2DHGroupNumbersRequestList(input.Phase2DHGroupNumbers, context); - if (input.Phase2DHGroupNumbers?.length === 0) { + if (input[_PDHGNh] != null) { + const memberEntries = se_Phase2DHGroupNumbersRequestList(input[_PDHGNh], context); + if (input[_PDHGNh]?.length === 0) { entries.Phase2DHGroupNumber = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60945,9 +60929,9 @@ const se_ModifyVpnTunnelOptionsSpecification = ( entries[loc] = value; }); } - if (input.IKEVersions != null) { - const memberEntries = se_IKEVersionsRequestList(input.IKEVersions, context); - if (input.IKEVersions?.length === 0) { + if (input[_IKEVe] != null) { + const memberEntries = se_IKEVersionsRequestList(input[_IKEVe], context); + if (input[_IKEVe]?.length === 0) { entries.IKEVersion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60955,18 +60939,18 @@ const se_ModifyVpnTunnelOptionsSpecification = ( entries[loc] = value; }); } - if (input.StartupAction != null) { - entries["StartupAction"] = input.StartupAction; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.LogOptions != null) { - const memberEntries = se_VpnTunnelLogOptionsSpecification(input.LogOptions, context); + if (input[_LO] != null) { + const memberEntries = se_VpnTunnelLogOptionsSpecification(input[_LO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LogOptions.${key}`; entries[loc] = value; }); } - if (input.EnableTunnelLifecycleControl != null) { - entries["EnableTunnelLifecycleControl"] = input.EnableTunnelLifecycleControl; + if (input[_ETLC] != null) { + entries[_ETLC] = input[_ETLC]; } return entries; }; @@ -60976,9 +60960,9 @@ const se_ModifyVpnTunnelOptionsSpecification = ( */ const se_MonitorInstancesRequest = (input: MonitorInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -60986,8 +60970,8 @@ const se_MonitorInstancesRequest = (input: MonitorInstancesRequest, context: __S entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -60997,11 +60981,11 @@ const se_MonitorInstancesRequest = (input: MonitorInstancesRequest, context: __S */ const se_MoveAddressToVpcRequest = (input: MoveAddressToVpcRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PublicIp != null) { - entries["PublicIp"] = input.PublicIp; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } return entries; }; @@ -61011,17 +60995,17 @@ const se_MoveAddressToVpcRequest = (input: MoveAddressToVpcRequest, context: __S */ const se_MoveByoipCidrToIpamRequest = (input: MoveByoipCidrToIpamRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.IpamPoolOwner != null) { - entries["IpamPoolOwner"] = input.IpamPoolOwner; + if (input[_IPO] != null) { + entries[_IPO] = input[_IPO]; } return entries; }; @@ -61063,11 +61047,11 @@ const se_NetworkAclIdStringList = (input: string[], context: __SerdeContext): an */ const se_NetworkBandwidthGbps = (input: NetworkBandwidthGbps, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -61077,11 +61061,11 @@ const se_NetworkBandwidthGbps = (input: NetworkBandwidthGbps, context: __SerdeCo */ const se_NetworkBandwidthGbpsRequest = (input: NetworkBandwidthGbpsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -61158,11 +61142,11 @@ const se_NetworkInterfaceAttachmentChanges = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AttachmentId != null) { - entries["AttachmentId"] = input.AttachmentId; + if (input[_AIt] != null) { + entries[_AIt] = input[_AIt]; } - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } return entries; }; @@ -61172,11 +61156,11 @@ const se_NetworkInterfaceAttachmentChanges = ( */ const se_NetworkInterfaceCount = (input: NetworkInterfaceCount, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -61186,11 +61170,11 @@ const se_NetworkInterfaceCount = (input: NetworkInterfaceCount, context: __Serde */ const se_NetworkInterfaceCountRequest = (input: NetworkInterfaceCountRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -61232,12 +61216,12 @@ const se_NetworkInterfacePermissionIdList = (input: string[], context: __SerdeCo */ const se_NewDhcpConfiguration = (input: NewDhcpConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_Ke] != null) { + entries[_Ke] = input[_Ke]; } - if (input.Values != null) { - const memberEntries = se_ValueStringList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Val] != null) { + const memberEntries = se_ValueStringList(input[_Val], context); + if (input[_Val]?.length === 0) { entries.Value = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61288,27 +61272,27 @@ const se_OccurrenceDayRequestSet = (input: number[], context: __SerdeContext): a */ const se_OnDemandOptionsRequest = (input: OnDemandOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationStrategy != null) { - entries["AllocationStrategy"] = input.AllocationStrategy; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.CapacityReservationOptions != null) { - const memberEntries = se_CapacityReservationOptionsRequest(input.CapacityReservationOptions, context); + if (input[_CRO] != null) { + const memberEntries = se_CapacityReservationOptionsRequest(input[_CRO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityReservationOptions.${key}`; entries[loc] = value; }); } - if (input.SingleInstanceType != null) { - entries["SingleInstanceType"] = input.SingleInstanceType; + if (input[_SITi] != null) { + entries[_SITi] = input[_SITi]; } - if (input.SingleAvailabilityZone != null) { - entries["SingleAvailabilityZone"] = input.SingleAvailabilityZone; + if (input[_SAZ] != null) { + entries[_SAZ] = input[_SAZ]; } - if (input.MinTargetCapacity != null) { - entries["MinTargetCapacity"] = input.MinTargetCapacity; + if (input[_MTC] != null) { + entries[_MTC] = input[_MTC]; } - if (input.MaxTotalPrice != null) { - entries["MaxTotalPrice"] = input.MaxTotalPrice; + if (input[_MTP] != null) { + entries[_MTP] = input[_MTP]; } return entries; }; @@ -61366,9 +61350,9 @@ const se_OwnerStringList = (input: string[], context: __SerdeContext): any => { */ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceAddresses != null) { - const memberEntries = se_ValueStringList(input.SourceAddresses, context); - if (input.SourceAddresses?.length === 0) { + if (input[_SAo] != null) { + const memberEntries = se_ValueStringList(input[_SAo], context); + if (input[_SAo]?.length === 0) { entries.SourceAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61376,9 +61360,9 @@ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, co entries[loc] = value; }); } - if (input.DestinationAddresses != null) { - const memberEntries = se_ValueStringList(input.DestinationAddresses, context); - if (input.DestinationAddresses?.length === 0) { + if (input[_DAes] != null) { + const memberEntries = se_ValueStringList(input[_DAes], context); + if (input[_DAes]?.length === 0) { entries.DestinationAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61386,9 +61370,9 @@ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, co entries[loc] = value; }); } - if (input.SourcePorts != null) { - const memberEntries = se_ValueStringList(input.SourcePorts, context); - if (input.SourcePorts?.length === 0) { + if (input[_SPo] != null) { + const memberEntries = se_ValueStringList(input[_SPo], context); + if (input[_SPo]?.length === 0) { entries.SourcePort = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61396,9 +61380,9 @@ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, co entries[loc] = value; }); } - if (input.DestinationPorts != null) { - const memberEntries = se_ValueStringList(input.DestinationPorts, context); - if (input.DestinationPorts?.length === 0) { + if (input[_DPe] != null) { + const memberEntries = se_ValueStringList(input[_DPe], context); + if (input[_DPe]?.length === 0) { entries.DestinationPort = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61406,9 +61390,9 @@ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, co entries[loc] = value; }); } - if (input.SourcePrefixLists != null) { - const memberEntries = se_ValueStringList(input.SourcePrefixLists, context); - if (input.SourcePrefixLists?.length === 0) { + if (input[_SPL] != null) { + const memberEntries = se_ValueStringList(input[_SPL], context); + if (input[_SPL]?.length === 0) { entries.SourcePrefixList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61416,9 +61400,9 @@ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, co entries[loc] = value; }); } - if (input.DestinationPrefixLists != null) { - const memberEntries = se_ValueStringList(input.DestinationPrefixLists, context); - if (input.DestinationPrefixLists?.length === 0) { + if (input[_DPLe] != null) { + const memberEntries = se_ValueStringList(input[_DPLe], context); + if (input[_DPLe]?.length === 0) { entries.DestinationPrefixList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61426,9 +61410,9 @@ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, co entries[loc] = value; }); } - if (input.Protocols != null) { - const memberEntries = se_ProtocolList(input.Protocols, context); - if (input.Protocols?.length === 0) { + if (input[_Pro] != null) { + const memberEntries = se_ProtocolList(input[_Pro], context); + if (input[_Pro]?.length === 0) { entries.Protocol = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -61444,21 +61428,21 @@ const se_PacketHeaderStatementRequest = (input: PacketHeaderStatementRequest, co */ const se_PathRequestFilter = (input: PathRequestFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceAddress != null) { - entries["SourceAddress"] = input.SourceAddress; + if (input[_SAou] != null) { + entries[_SAou] = input[_SAou]; } - if (input.SourcePortRange != null) { - const memberEntries = se_RequestFilterPortRange(input.SourcePortRange, context); + if (input[_SPR] != null) { + const memberEntries = se_RequestFilterPortRange(input[_SPR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourcePortRange.${key}`; entries[loc] = value; }); } - if (input.DestinationAddress != null) { - entries["DestinationAddress"] = input.DestinationAddress; + if (input[_DAest] != null) { + entries[_DAest] = input[_DAest]; } - if (input.DestinationPortRange != null) { - const memberEntries = se_RequestFilterPortRange(input.DestinationPortRange, context); + if (input[_DPR] != null) { + const memberEntries = se_RequestFilterPortRange(input[_DPR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DestinationPortRange.${key}`; entries[loc] = value; @@ -61472,15 +61456,15 @@ const se_PathRequestFilter = (input: PathRequestFilter, context: __SerdeContext) */ const se_PathStatementRequest = (input: PathStatementRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PacketHeaderStatement != null) { - const memberEntries = se_PacketHeaderStatementRequest(input.PacketHeaderStatement, context); + if (input[_PHS] != null) { + const memberEntries = se_PacketHeaderStatementRequest(input[_PHS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PacketHeaderStatement.${key}`; entries[loc] = value; }); } - if (input.ResourceStatement != null) { - const memberEntries = se_ResourceStatementRequest(input.ResourceStatement, context); + if (input[_RSe] != null) { + const memberEntries = se_ResourceStatementRequest(input[_RSe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResourceStatement.${key}`; entries[loc] = value; @@ -61494,14 +61478,14 @@ const se_PathStatementRequest = (input: PathStatementRequest, context: __SerdeCo */ const se_PeeringConnectionOptionsRequest = (input: PeeringConnectionOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllowDnsResolutionFromRemoteVpc != null) { - entries["AllowDnsResolutionFromRemoteVpc"] = input.AllowDnsResolutionFromRemoteVpc; + if (input[_ADRFRV] != null) { + entries[_ADRFRV] = input[_ADRFRV]; } - if (input.AllowEgressFromLocalClassicLinkToRemoteVpc != null) { - entries["AllowEgressFromLocalClassicLinkToRemoteVpc"] = input.AllowEgressFromLocalClassicLinkToRemoteVpc; + if (input[_AEFLCLTRV] != null) { + entries[_AEFLCLTRV] = input[_AEFLCLTRV]; } - if (input.AllowEgressFromLocalVpcToRemoteClassicLink != null) { - entries["AllowEgressFromLocalVpcToRemoteClassicLink"] = input.AllowEgressFromLocalVpcToRemoteClassicLink; + if (input[_AEFLVTRCL] != null) { + entries[_AEFLVTRCL] = input[_AEFLVTRCL]; } return entries; }; @@ -61536,8 +61520,8 @@ const se_Phase1DHGroupNumbersRequestListValue = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -61572,8 +61556,8 @@ const se_Phase1EncryptionAlgorithmsRequestListValue = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -61608,8 +61592,8 @@ const se_Phase1IntegrityAlgorithmsRequestListValue = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -61644,8 +61628,8 @@ const se_Phase2DHGroupNumbersRequestListValue = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -61680,8 +61664,8 @@ const se_Phase2EncryptionAlgorithmsRequestListValue = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -61716,8 +61700,8 @@ const se_Phase2IntegrityAlgorithmsRequestListValue = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -61727,32 +61711,32 @@ const se_Phase2IntegrityAlgorithmsRequestListValue = ( */ const se_Placement = (input: Placement, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.Affinity != null) { - entries["Affinity"] = input.Affinity; + if (input[_Af] != null) { + entries[_Af] = input[_Af]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PartitionNumber != null) { - entries["PartitionNumber"] = input.PartitionNumber; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.HostId != null) { - entries["HostId"] = input.HostId; + if (input[_HIo] != null) { + entries[_HIo] = input[_HIo]; } - if (input.Tenancy != null) { - entries["Tenancy"] = input.Tenancy; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } - if (input.SpreadDomain != null) { - entries["SpreadDomain"] = input.SpreadDomain; + if (input[_SD] != null) { + entries[_SD] = input[_SD]; } - if (input.HostResourceGroupArn != null) { - entries["HostResourceGroupArn"] = input.HostResourceGroupArn; + if (input[_HRGA] != null) { + entries[_HRGA] = input[_HRGA]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } return entries; }; @@ -61794,11 +61778,11 @@ const se_PlacementGroupStringList = (input: string[], context: __SerdeContext): */ const se_PortRange = (input: PortRange, context: __SerdeContext): any => { const entries: any = {}; - if (input.From != null) { - entries["From"] = input.From; + if (input[_Fr] != null) { + entries[_Fr] = input[_Fr]; } - if (input.To != null) { - entries["To"] = input.To; + if (input[_To] != null) { + entries[_To] = input[_To]; } return entries; }; @@ -61808,11 +61792,11 @@ const se_PortRange = (input: PortRange, context: __SerdeContext): any => { */ const se_PrefixListId = (input: PrefixListId, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } return entries; }; @@ -61857,14 +61841,14 @@ const se_PrefixListResourceIdStringList = (input: string[], context: __SerdeCont */ const se_PriceScheduleSpecification = (input: PriceScheduleSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.CurrencyCode != null) { - entries["CurrencyCode"] = input.CurrencyCode; + if (input[_CCu] != null) { + entries[_CCu] = input[_CCu]; } - if (input.Price != null) { - entries["Price"] = __serializeFloat(input.Price); + if (input[_Pric] != null) { + entries[_Pric] = __serializeFloat(input[_Pric]); } - if (input.Term != null) { - entries["Term"] = input.Term; + if (input[_Ter] != null) { + entries[_Ter] = input[_Ter]; } return entries; }; @@ -61893,14 +61877,14 @@ const se_PriceScheduleSpecificationList = (input: PriceScheduleSpecification[], */ const se_PrivateDnsNameOptionsRequest = (input: PrivateDnsNameOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.HostnameType != null) { - entries["HostnameType"] = input.HostnameType; + if (input[_HTo] != null) { + entries[_HTo] = input[_HTo]; } - if (input.EnableResourceNameDnsARecord != null) { - entries["EnableResourceNameDnsARecord"] = input.EnableResourceNameDnsARecord; + if (input[_ERNDAR] != null) { + entries[_ERNDAR] = input[_ERNDAR]; } - if (input.EnableResourceNameDnsAAAARecord != null) { - entries["EnableResourceNameDnsAAAARecord"] = input.EnableResourceNameDnsAAAARecord; + if (input[_ERNDAAAAR] != null) { + entries[_ERNDAAAAR] = input[_ERNDAAAAR]; } return entries; }; @@ -61932,11 +61916,11 @@ const se_PrivateIpAddressConfigSet = ( */ const se_PrivateIpAddressSpecification = (input: PrivateIpAddressSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.Primary != null) { - entries["Primary"] = input.Primary; + if (input[_Prim] != null) { + entries[_Prim] = input[_Prim]; } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } return entries; }; @@ -62029,28 +62013,28 @@ const se_ProtocolList = (input: Protocol[], context: __SerdeContext): any => { */ const se_ProvisionByoipCidrRequest = (input: ProvisionByoipCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.CidrAuthorizationContext != null) { - const memberEntries = se_CidrAuthorizationContext(input.CidrAuthorizationContext, context); + if (input[_CAC] != null) { + const memberEntries = se_CidrAuthorizationContext(input[_CAC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CidrAuthorizationContext.${key}`; entries[loc] = value; }); } - if (input.PubliclyAdvertisable != null) { - entries["PubliclyAdvertisable"] = input.PubliclyAdvertisable; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PoolTagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.PoolTagSpecifications, context); - if (input.PoolTagSpecifications?.length === 0) { + if (input[_PTS] != null) { + const memberEntries = se_TagSpecificationList(input[_PTS], context); + if (input[_PTS]?.length === 0) { entries.PoolTagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62058,8 +62042,8 @@ const se_ProvisionByoipCidrRequest = (input: ProvisionByoipCidrRequest, context: entries[loc] = value; }); } - if (input.MultiRegion != null) { - entries["MultiRegion"] = input.MultiRegion; + if (input[_MRu] != null) { + entries[_MRu] = input[_MRu]; } return entries; }; @@ -62069,17 +62053,17 @@ const se_ProvisionByoipCidrRequest = (input: ProvisionByoipCidrRequest, context: */ const se_ProvisionIpamByoasnRequest = (input: ProvisionIpamByoasnRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamId != null) { - entries["IpamId"] = input.IpamId; + if (input[_IIp] != null) { + entries[_IIp] = input[_IIp]; } - if (input.Asn != null) { - entries["Asn"] = input.Asn; + if (input[_As] != null) { + entries[_As] = input[_As]; } - if (input.AsnAuthorizationContext != null) { - const memberEntries = se_AsnAuthorizationContext(input.AsnAuthorizationContext, context); + if (input[_AAC] != null) { + const memberEntries = se_AsnAuthorizationContext(input[_AAC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AsnAuthorizationContext.${key}`; entries[loc] = value; @@ -62093,30 +62077,30 @@ const se_ProvisionIpamByoasnRequest = (input: ProvisionIpamByoasnRequest, contex */ const se_ProvisionIpamPoolCidrRequest = (input: ProvisionIpamPoolCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.CidrAuthorizationContext != null) { - const memberEntries = se_IpamCidrAuthorizationContext(input.CidrAuthorizationContext, context); + if (input[_CAC] != null) { + const memberEntries = se_IpamCidrAuthorizationContext(input[_CAC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CidrAuthorizationContext.${key}`; entries[loc] = value; }); } - if (input.NetmaskLength != null) { - entries["NetmaskLength"] = input.NetmaskLength; + if (input[_NL] != null) { + entries[_NL] = input[_NL]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -62129,17 +62113,17 @@ const se_ProvisionPublicIpv4PoolCidrRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.PoolId != null) { - entries["PoolId"] = input.PoolId; + if (input[_PIo] != null) { + entries[_PIo] = input[_PIo]; } - if (input.NetmaskLength != null) { - entries["NetmaskLength"] = input.NetmaskLength; + if (input[_NL] != null) { + entries[_NL] = input[_NL]; } return entries; }; @@ -62181,12 +62165,12 @@ const se_PublicIpv4PoolIdStringList = (input: string[], context: __SerdeContext) */ const se_PurchaseCapacityBlockRequest = (input: PurchaseCapacityBlockRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62194,11 +62178,11 @@ const se_PurchaseCapacityBlockRequest = (input: PurchaseCapacityBlockRequest, co entries[loc] = value; }); } - if (input.CapacityBlockOfferingId != null) { - entries["CapacityBlockOfferingId"] = input.CapacityBlockOfferingId; + if (input[_CBOI] != null) { + entries[_CBOI] = input[_CBOI]; } - if (input.InstancePlatform != null) { - entries["InstancePlatform"] = input.InstancePlatform; + if (input[_IPn] != null) { + entries[_IPn] = input[_IPn]; } return entries; }; @@ -62208,15 +62192,15 @@ const se_PurchaseCapacityBlockRequest = (input: PurchaseCapacityBlockRequest, co */ const se_PurchaseHostReservationRequest = (input: PurchaseHostReservationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.CurrencyCode != null) { - entries["CurrencyCode"] = input.CurrencyCode; + if (input[_CCu] != null) { + entries[_CCu] = input[_CCu]; } - if (input.HostIdSet != null) { - const memberEntries = se_RequestHostIdSet(input.HostIdSet, context); - if (input.HostIdSet?.length === 0) { + if (input[_HIS] != null) { + const memberEntries = se_RequestHostIdSet(input[_HIS], context); + if (input[_HIS]?.length === 0) { entries.HostIdSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62224,15 +62208,15 @@ const se_PurchaseHostReservationRequest = (input: PurchaseHostReservationRequest entries[loc] = value; }); } - if (input.LimitPrice != null) { - entries["LimitPrice"] = input.LimitPrice; + if (input[_LPi] != null) { + entries[_LPi] = input[_LPi]; } - if (input.OfferingId != null) { - entries["OfferingId"] = input.OfferingId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62248,11 +62232,11 @@ const se_PurchaseHostReservationRequest = (input: PurchaseHostReservationRequest */ const se_PurchaseRequest = (input: PurchaseRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.PurchaseToken != null) { - entries["PurchaseToken"] = input.PurchaseToken; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } return entries; }; @@ -62284,24 +62268,24 @@ const se_PurchaseReservedInstancesOfferingRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.ReservedInstancesOfferingId != null) { - entries["ReservedInstancesOfferingId"] = input.ReservedInstancesOfferingId; + if (input[_RIOIe] != null) { + entries[_RIOIe] = input[_RIOIe]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.LimitPrice != null) { - const memberEntries = se_ReservedInstanceLimitPrice(input.LimitPrice, context); + if (input[_LPi] != null) { + const memberEntries = se_ReservedInstanceLimitPrice(input[_LPi], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LimitPrice.${key}`; entries[loc] = value; }); } - if (input.PurchaseTime != null) { - entries["PurchaseTime"] = input.PurchaseTime.toISOString().split(".")[0] + "Z"; + if (input[_PTu] != null) { + entries[_PTu] = input[_PTu].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -62314,18 +62298,18 @@ const se_PurchaseScheduledInstancesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PurchaseRequests != null) { - const memberEntries = se_PurchaseRequestSet(input.PurchaseRequests, context); - if (input.PurchaseRequests?.length === 0) { + if (input[_PRu] != null) { + const memberEntries = se_PurchaseRequestSet(input[_PRu], context); + if (input[_PRu]?.length === 0) { entries.PurchaseRequest = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62357,9 +62341,9 @@ const se_ReasonCodesList = (input: ReportInstanceReasonCodes[], context: __Serde */ const se_RebootInstancesRequest = (input: RebootInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62367,8 +62351,8 @@ const se_RebootInstancesRequest = (input: RebootInstancesRequest, context: __Ser entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -62410,15 +62394,15 @@ const se_RegionNameStringList = (input: string[], context: __SerdeContext): any */ const se_RegisterImageRequest = (input: RegisterImageRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ImageLocation != null) { - entries["ImageLocation"] = input.ImageLocation; + if (input[_IL] != null) { + entries[_IL] = input[_IL]; } - if (input.Architecture != null) { - entries["Architecture"] = input.Architecture; + if (input[_Arc] != null) { + entries[_Arc] = input[_Arc]; } - if (input.BlockDeviceMappings != null) { - const memberEntries = se_BlockDeviceMappingRequestList(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_BlockDeviceMappingRequestList(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62426,24 +62410,24 @@ const se_RegisterImageRequest = (input: RegisterImageRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EnaSupport != null) { - entries["EnaSupport"] = input.EnaSupport; + if (input[_ESn] != null) { + entries[_ESn] = input[_ESn]; } - if (input.KernelId != null) { - entries["KernelId"] = input.KernelId; + if (input[_KI] != null) { + entries[_KI] = input[_KI]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.BillingProducts != null) { - const memberEntries = se_BillingProductList(input.BillingProducts, context); - if (input.BillingProducts?.length === 0) { + if (input[_BPi] != null) { + const memberEntries = se_BillingProductList(input[_BPi], context); + if (input[_BPi]?.length === 0) { entries.BillingProduct = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62451,29 +62435,29 @@ const se_RegisterImageRequest = (input: RegisterImageRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.RamdiskId != null) { - entries["RamdiskId"] = input.RamdiskId; + if (input[_RIa] != null) { + entries[_RIa] = input[_RIa]; } - if (input.RootDeviceName != null) { - entries["RootDeviceName"] = input.RootDeviceName; + if (input[_RDN] != null) { + entries[_RDN] = input[_RDN]; } - if (input.SriovNetSupport != null) { - entries["SriovNetSupport"] = input.SriovNetSupport; + if (input[_SNS] != null) { + entries[_SNS] = input[_SNS]; } - if (input.VirtualizationType != null) { - entries["VirtualizationType"] = input.VirtualizationType; + if (input[_VTir] != null) { + entries[_VTir] = input[_VTir]; } - if (input.BootMode != null) { - entries["BootMode"] = input.BootMode; + if (input[_BM] != null) { + entries[_BM] = input[_BM]; } - if (input.TpmSupport != null) { - entries["TpmSupport"] = input.TpmSupport; + if (input[_TSp] != null) { + entries[_TSp] = input[_TSp]; } - if (input.UefiData != null) { - entries["UefiData"] = input.UefiData; + if (input[_UDe] != null) { + entries[_UDe] = input[_UDe]; } - if (input.ImdsSupport != null) { - entries["ImdsSupport"] = input.ImdsSupport; + if (input[_ISm] != null) { + entries[_ISm] = input[_ISm]; } return entries; }; @@ -62486,11 +62470,11 @@ const se_RegisterInstanceEventNotificationAttributesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceTagAttribute != null) { - const memberEntries = se_RegisterInstanceTagAttributeRequest(input.InstanceTagAttribute, context); + if (input[_ITA] != null) { + const memberEntries = se_RegisterInstanceTagAttributeRequest(input[_ITA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceTagAttribute.${key}`; entries[loc] = value; @@ -62507,12 +62491,12 @@ const se_RegisterInstanceTagAttributeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.IncludeAllTagsOfInstance != null) { - entries["IncludeAllTagsOfInstance"] = input.IncludeAllTagsOfInstance; + if (input[_IATOI] != null) { + entries[_IATOI] = input[_IATOI]; } - if (input.InstanceTagKeys != null) { - const memberEntries = se_InstanceTagKeySet(input.InstanceTagKeys, context); - if (input.InstanceTagKeys?.length === 0) { + if (input[_ITK] != null) { + const memberEntries = se_InstanceTagKeySet(input[_ITK], context); + if (input[_ITK]?.length === 0) { entries.InstanceTagKey = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62531,15 +62515,15 @@ const se_RegisterTransitGatewayMulticastGroupMembersRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.GroupIpAddress != null) { - entries["GroupIpAddress"] = input.GroupIpAddress; + if (input[_GIA] != null) { + entries[_GIA] = input[_GIA]; } - if (input.NetworkInterfaceIds != null) { - const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input.NetworkInterfaceIds, context); - if (input.NetworkInterfaceIds?.length === 0) { + if (input[_NIIe] != null) { + const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context); + if (input[_NIIe]?.length === 0) { entries.NetworkInterfaceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62547,8 +62531,8 @@ const se_RegisterTransitGatewayMulticastGroupMembersRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -62561,15 +62545,15 @@ const se_RegisterTransitGatewayMulticastGroupSourcesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.GroupIpAddress != null) { - entries["GroupIpAddress"] = input.GroupIpAddress; + if (input[_GIA] != null) { + entries[_GIA] = input[_GIA]; } - if (input.NetworkInterfaceIds != null) { - const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input.NetworkInterfaceIds, context); - if (input.NetworkInterfaceIds?.length === 0) { + if (input[_NIIe] != null) { + const memberEntries = se_TransitGatewayNetworkInterfaceIdList(input[_NIIe], context); + if (input[_NIIe]?.length === 0) { entries.NetworkInterfaceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62577,8 +62561,8 @@ const se_RegisterTransitGatewayMulticastGroupSourcesRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -62591,15 +62575,15 @@ const se_RejectTransitGatewayMulticastDomainAssociationsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.SubnetIds != null) { - const memberEntries = se_ValueStringList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_ValueStringList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62607,8 +62591,8 @@ const se_RejectTransitGatewayMulticastDomainAssociationsRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -62621,11 +62605,11 @@ const se_RejectTransitGatewayPeeringAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -62638,11 +62622,11 @@ const se_RejectTransitGatewayVpcAttachmentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -62655,15 +62639,15 @@ const se_RejectVpcEndpointConnectionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } - if (input.VpcEndpointIds != null) { - const memberEntries = se_VpcEndpointIdList(input.VpcEndpointIds, context); - if (input.VpcEndpointIds?.length === 0) { + if (input[_VEI] != null) { + const memberEntries = se_VpcEndpointIdList(input[_VEI], context); + if (input[_VEI]?.length === 0) { entries.VpcEndpointId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62682,11 +62666,11 @@ const se_RejectVpcPeeringConnectionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcPeeringConnectionId != null) { - entries["VpcPeeringConnectionId"] = input.VpcPeeringConnectionId; + if (input[_VPCI] != null) { + entries[_VPCI] = input[_VPCI]; } return entries; }; @@ -62696,17 +62680,17 @@ const se_RejectVpcPeeringConnectionRequest = ( */ const se_ReleaseAddressRequest = (input: ReleaseAddressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AIl] != null) { + entries[_AIl] = input[_AIl]; } - if (input.PublicIp != null) { - entries["PublicIp"] = input.PublicIp; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.NetworkBorderGroup != null) { - entries["NetworkBorderGroup"] = input.NetworkBorderGroup; + if (input[_NBG] != null) { + entries[_NBG] = input[_NBG]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -62716,9 +62700,9 @@ const se_ReleaseAddressRequest = (input: ReleaseAddressRequest, context: __Serde */ const se_ReleaseHostsRequest = (input: ReleaseHostsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.HostIds != null) { - const memberEntries = se_RequestHostIdList(input.HostIds, context); - if (input.HostIds?.length === 0) { + if (input[_HI] != null) { + const memberEntries = se_RequestHostIdList(input[_HI], context); + if (input[_HI]?.length === 0) { entries.HostId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -62734,17 +62718,17 @@ const se_ReleaseHostsRequest = (input: ReleaseHostsRequest, context: __SerdeCont */ const se_ReleaseIpamPoolAllocationRequest = (input: ReleaseIpamPoolAllocationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.IpamPoolId != null) { - entries["IpamPoolId"] = input.IpamPoolId; + if (input[_IPI] != null) { + entries[_IPI] = input[_IPI]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.IpamPoolAllocationId != null) { - entries["IpamPoolAllocationId"] = input.IpamPoolAllocationId; + if (input[_IPAI] != null) { + entries[_IPAI] = input[_IPAI]; } return entries; }; @@ -62754,8 +62738,8 @@ const se_ReleaseIpamPoolAllocationRequest = (input: ReleaseIpamPoolAllocationReq */ const se_RemoveIpamOperatingRegion = (input: RemoveIpamOperatingRegion, context: __SerdeContext): any => { const entries: any = {}; - if (input.RegionName != null) { - entries["RegionName"] = input.RegionName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -62803,8 +62787,8 @@ const se_RemovePrefixListEntries = (input: RemovePrefixListEntry[], context: __S */ const se_RemovePrefixListEntry = (input: RemovePrefixListEntry, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } return entries; }; @@ -62817,15 +62801,15 @@ const se_ReplaceIamInstanceProfileAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.IamInstanceProfile != null) { - const memberEntries = se_IamInstanceProfileSpecification(input.IamInstanceProfile, context); + if (input[_IIP] != null) { + const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IamInstanceProfile.${key}`; entries[loc] = value; }); } - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } return entries; }; @@ -62838,14 +62822,14 @@ const se_ReplaceNetworkAclAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkAclId != null) { - entries["NetworkAclId"] = input.NetworkAclId; + if (input[_NAI] != null) { + entries[_NAI] = input[_NAI]; } return entries; }; @@ -62855,43 +62839,43 @@ const se_ReplaceNetworkAclAssociationRequest = ( */ const se_ReplaceNetworkAclEntryRequest = (input: ReplaceNetworkAclEntryRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.CidrBlock != null) { - entries["CidrBlock"] = input.CidrBlock; + if (input[_CB] != null) { + entries[_CB] = input[_CB]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Egress != null) { - entries["Egress"] = input.Egress; + if (input[_Eg] != null) { + entries[_Eg] = input[_Eg]; } - if (input.IcmpTypeCode != null) { - const memberEntries = se_IcmpTypeCode(input.IcmpTypeCode, context); + if (input[_ITC] != null) { + const memberEntries = se_IcmpTypeCode(input[_ITC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Icmp.${key}`; entries[loc] = value; }); } - if (input.Ipv6CidrBlock != null) { - entries["Ipv6CidrBlock"] = input.Ipv6CidrBlock; + if (input[_ICB] != null) { + entries[_ICB] = input[_ICB]; } - if (input.NetworkAclId != null) { - entries["NetworkAclId"] = input.NetworkAclId; + if (input[_NAI] != null) { + entries[_NAI] = input[_NAI]; } - if (input.PortRange != null) { - const memberEntries = se_PortRange(input.PortRange, context); + if (input[_PR] != null) { + const memberEntries = se_PortRange(input[_PR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PortRange.${key}`; entries[loc] = value; }); } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.RuleAction != null) { - entries["RuleAction"] = input.RuleAction; + if (input[_RAu] != null) { + entries[_RAu] = input[_RAu]; } - if (input.RuleNumber != null) { - entries["RuleNumber"] = input.RuleNumber; + if (input[_RNu] != null) { + entries[_RNu] = input[_RNu]; } return entries; }; @@ -62917,56 +62901,56 @@ const se_ReplaceRootVolumeTaskIds = (input: string[], context: __SerdeContext): */ const se_ReplaceRouteRequest = (input: ReplaceRouteRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.DestinationIpv6CidrBlock != null) { - entries["DestinationIpv6CidrBlock"] = input.DestinationIpv6CidrBlock; + if (input[_DICB] != null) { + entries[_DICB] = input[_DICB]; } - if (input.DestinationPrefixListId != null) { - entries["DestinationPrefixListId"] = input.DestinationPrefixListId; + if (input[_DPLI] != null) { + entries[_DPLI] = input[_DPLI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.VpcEndpointId != null) { - entries["VpcEndpointId"] = input.VpcEndpointId; + if (input[_VEIp] != null) { + entries[_VEIp] = input[_VEIp]; } - if (input.EgressOnlyInternetGatewayId != null) { - entries["EgressOnlyInternetGatewayId"] = input.EgressOnlyInternetGatewayId; + if (input[_EOIGI] != null) { + entries[_EOIGI] = input[_EOIGI]; } - if (input.GatewayId != null) { - entries["GatewayId"] = input.GatewayId; + if (input[_GI] != null) { + entries[_GI] = input[_GI]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.LocalTarget != null) { - entries["LocalTarget"] = input.LocalTarget; + if (input[_LTo] != null) { + entries[_LTo] = input[_LTo]; } - if (input.NatGatewayId != null) { - entries["NatGatewayId"] = input.NatGatewayId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.TransitGatewayId != null) { - entries["TransitGatewayId"] = input.TransitGatewayId; + if (input[_TGI] != null) { + entries[_TGI] = input[_TGI]; } - if (input.LocalGatewayId != null) { - entries["LocalGatewayId"] = input.LocalGatewayId; + if (input[_LGI] != null) { + entries[_LGI] = input[_LGI]; } - if (input.CarrierGatewayId != null) { - entries["CarrierGatewayId"] = input.CarrierGatewayId; + if (input[_CGI] != null) { + entries[_CGI] = input[_CGI]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } - if (input.VpcPeeringConnectionId != null) { - entries["VpcPeeringConnectionId"] = input.VpcPeeringConnectionId; + if (input[_VPCI] != null) { + entries[_VPCI] = input[_VPCI]; } - if (input.CoreNetworkArn != null) { - entries["CoreNetworkArn"] = input.CoreNetworkArn; + if (input[_CNAo] != null) { + entries[_CNAo] = input[_CNAo]; } return entries; }; @@ -62979,14 +62963,14 @@ const se_ReplaceRouteTableAssociationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociationId != null) { - entries["AssociationId"] = input.AssociationId; + if (input[_AIss] != null) { + entries[_AIss] = input[_AIss]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.RouteTableId != null) { - entries["RouteTableId"] = input.RouteTableId; + if (input[_RTI] != null) { + entries[_RTI] = input[_RTI]; } return entries; }; @@ -62999,20 +62983,20 @@ const se_ReplaceTransitGatewayRouteRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DestinationCidrBlock != null) { - entries["DestinationCidrBlock"] = input.DestinationCidrBlock; + if (input[_DCB] != null) { + entries[_DCB] = input[_DCB]; } - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.TransitGatewayAttachmentId != null) { - entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId; + if (input[_TGAI] != null) { + entries[_TGAI] = input[_TGAI]; } - if (input.Blackhole != null) { - entries["Blackhole"] = input.Blackhole; + if (input[_Bl] != null) { + entries[_Bl] = input[_Bl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -63022,17 +63006,17 @@ const se_ReplaceTransitGatewayRouteRequest = ( */ const se_ReplaceVpnTunnelRequest = (input: ReplaceVpnTunnelRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.VpnConnectionId != null) { - entries["VpnConnectionId"] = input.VpnConnectionId; + if (input[_VCI] != null) { + entries[_VCI] = input[_VCI]; } - if (input.VpnTunnelOutsideIpAddress != null) { - entries["VpnTunnelOutsideIpAddress"] = input.VpnTunnelOutsideIpAddress; + if (input[_VTOIA] != null) { + entries[_VTOIA] = input[_VTOIA]; } - if (input.ApplyPendingMaintenance != null) { - entries["ApplyPendingMaintenance"] = input.ApplyPendingMaintenance; + if (input[_APM] != null) { + entries[_APM] = input[_APM]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -63042,18 +63026,18 @@ const se_ReplaceVpnTunnelRequest = (input: ReplaceVpnTunnelRequest, context: __S */ const se_ReportInstanceStatusRequest = (input: ReportInstanceStatusRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ETn] != null) { + entries[_ETn] = input[_ETn].toISOString().split(".")[0] + "Z"; } - if (input.Instances != null) { - const memberEntries = se_InstanceIdStringList(input.Instances, context); - if (input.Instances?.length === 0) { + if (input[_In] != null) { + const memberEntries = se_InstanceIdStringList(input[_In], context); + if (input[_In]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63061,9 +63045,9 @@ const se_ReportInstanceStatusRequest = (input: ReportInstanceStatusRequest, cont entries[loc] = value; }); } - if (input.ReasonCodes != null) { - const memberEntries = se_ReasonCodesList(input.ReasonCodes, context); - if (input.ReasonCodes?.length === 0) { + if (input[_RCe] != null) { + const memberEntries = se_ReasonCodesList(input[_RCe], context); + if (input[_RCe]?.length === 0) { entries.ReasonCode = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63071,11 +63055,11 @@ const se_ReportInstanceStatusRequest = (input: ReportInstanceStatusRequest, cont entries[loc] = value; }); } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_Statu] != null) { + entries[_Statu] = input[_Statu]; } return entries; }; @@ -63085,11 +63069,11 @@ const se_ReportInstanceStatusRequest = (input: ReportInstanceStatusRequest, cont */ const se_RequestFilterPortRange = (input: RequestFilterPortRange, context: __SerdeContext): any => { const entries: any = {}; - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } return entries; }; @@ -63147,11 +63131,11 @@ const se_RequestInstanceTypeList = (input: _InstanceType[], context: __SerdeCont */ const se_RequestIpamResourceTag = (input: RequestIpamResourceTag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_Ke] != null) { + entries[_Ke] = input[_Ke]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -63180,22 +63164,22 @@ const se_RequestIpamResourceTagList = (input: RequestIpamResourceTag[], context: */ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: __SerdeContext): any => { const entries: any = {}; - if (input.KernelId != null) { - entries["KernelId"] = input.KernelId; + if (input[_KI] != null) { + entries[_KI] = input[_KI]; } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.IamInstanceProfile != null) { - const memberEntries = se_LaunchTemplateIamInstanceProfileSpecificationRequest(input.IamInstanceProfile, context); + if (input[_IIP] != null) { + const memberEntries = se_LaunchTemplateIamInstanceProfileSpecificationRequest(input[_IIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IamInstanceProfile.${key}`; entries[loc] = value; }); } - if (input.BlockDeviceMappings != null) { - const memberEntries = se_LaunchTemplateBlockDeviceMappingRequestList(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_LaunchTemplateBlockDeviceMappingRequestList(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63203,12 +63187,9 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.NetworkInterfaces != null) { - const memberEntries = se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList( - input.NetworkInterfaces, - context - ); - if (input.NetworkInterfaces?.length === 0) { + if (input[_NI] != null) { + const memberEntries = se_LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList(input[_NI], context); + if (input[_NI]?.length === 0) { entries.NetworkInterface = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63216,44 +63197,44 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.Monitoring != null) { - const memberEntries = se_LaunchTemplatesMonitoringRequest(input.Monitoring, context); + if (input[_Mon] != null) { + const memberEntries = se_LaunchTemplatesMonitoringRequest(input[_Mon], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Monitoring.${key}`; entries[loc] = value; }); } - if (input.Placement != null) { - const memberEntries = se_LaunchTemplatePlacementRequest(input.Placement, context); + if (input[_Pl] != null) { + const memberEntries = se_LaunchTemplatePlacementRequest(input[_Pl], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Placement.${key}`; entries[loc] = value; }); } - if (input.RamDiskId != null) { - entries["RamDiskId"] = input.RamDiskId; + if (input[_RDI] != null) { + entries[_RDI] = input[_RDI]; } - if (input.DisableApiTermination != null) { - entries["DisableApiTermination"] = input.DisableApiTermination; + if (input[_DATis] != null) { + entries[_DATis] = input[_DATis]; } - if (input.InstanceInitiatedShutdownBehavior != null) { - entries["InstanceInitiatedShutdownBehavior"] = input.InstanceInitiatedShutdownBehavior; + if (input[_IISB] != null) { + entries[_IISB] = input[_IISB]; } - if (input.UserData != null) { - entries["UserData"] = input.UserData; + if (input[_UD] != null) { + entries[_UD] = input[_UD]; } - if (input.TagSpecifications != null) { - const memberEntries = se_LaunchTemplateTagSpecificationRequestList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_LaunchTemplateTagSpecificationRequestList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63261,9 +63242,9 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.ElasticGpuSpecifications != null) { - const memberEntries = se_ElasticGpuSpecificationList(input.ElasticGpuSpecifications, context); - if (input.ElasticGpuSpecifications?.length === 0) { + if (input[_EGS] != null) { + const memberEntries = se_ElasticGpuSpecificationList(input[_EGS], context); + if (input[_EGS]?.length === 0) { entries.ElasticGpuSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63271,9 +63252,9 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.ElasticInferenceAccelerators != null) { - const memberEntries = se_LaunchTemplateElasticInferenceAcceleratorList(input.ElasticInferenceAccelerators, context); - if (input.ElasticInferenceAccelerators?.length === 0) { + if (input[_EIA] != null) { + const memberEntries = se_LaunchTemplateElasticInferenceAcceleratorList(input[_EIA], context); + if (input[_EIA]?.length === 0) { entries.ElasticInferenceAccelerator = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63281,9 +63262,9 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdStringList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdStringList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63291,9 +63272,9 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroupStringList(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_SecurityGroupStringList(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroup = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63301,40 +63282,37 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.InstanceMarketOptions != null) { - const memberEntries = se_LaunchTemplateInstanceMarketOptionsRequest(input.InstanceMarketOptions, context); + if (input[_IMO] != null) { + const memberEntries = se_LaunchTemplateInstanceMarketOptionsRequest(input[_IMO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceMarketOptions.${key}`; entries[loc] = value; }); } - if (input.CreditSpecification != null) { - const memberEntries = se_CreditSpecificationRequest(input.CreditSpecification, context); + if (input[_CSred] != null) { + const memberEntries = se_CreditSpecificationRequest(input[_CSred], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CreditSpecification.${key}`; entries[loc] = value; }); } - if (input.CpuOptions != null) { - const memberEntries = se_LaunchTemplateCpuOptionsRequest(input.CpuOptions, context); + if (input[_CO] != null) { + const memberEntries = se_LaunchTemplateCpuOptionsRequest(input[_CO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CpuOptions.${key}`; entries[loc] = value; }); } - if (input.CapacityReservationSpecification != null) { - const memberEntries = se_LaunchTemplateCapacityReservationSpecificationRequest( - input.CapacityReservationSpecification, - context - ); + if (input[_CRS] != null) { + const memberEntries = se_LaunchTemplateCapacityReservationSpecificationRequest(input[_CRS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityReservationSpecification.${key}`; entries[loc] = value; }); } - if (input.LicenseSpecifications != null) { - const memberEntries = se_LaunchTemplateLicenseSpecificationListRequest(input.LicenseSpecifications, context); - if (input.LicenseSpecifications?.length === 0) { + if (input[_LSi] != null) { + const memberEntries = se_LaunchTemplateLicenseSpecificationListRequest(input[_LSi], context); + if (input[_LSi]?.length === 0) { entries.LicenseSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63342,50 +63320,50 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: entries[loc] = value; }); } - if (input.HibernationOptions != null) { - const memberEntries = se_LaunchTemplateHibernationOptionsRequest(input.HibernationOptions, context); + if (input[_HO] != null) { + const memberEntries = se_LaunchTemplateHibernationOptionsRequest(input[_HO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `HibernationOptions.${key}`; entries[loc] = value; }); } - if (input.MetadataOptions != null) { - const memberEntries = se_LaunchTemplateInstanceMetadataOptionsRequest(input.MetadataOptions, context); + if (input[_MO] != null) { + const memberEntries = se_LaunchTemplateInstanceMetadataOptionsRequest(input[_MO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetadataOptions.${key}`; entries[loc] = value; }); } - if (input.EnclaveOptions != null) { - const memberEntries = se_LaunchTemplateEnclaveOptionsRequest(input.EnclaveOptions, context); + if (input[_EOn] != null) { + const memberEntries = se_LaunchTemplateEnclaveOptionsRequest(input[_EOn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnclaveOptions.${key}`; entries[loc] = value; }); } - if (input.InstanceRequirements != null) { - const memberEntries = se_InstanceRequirementsRequest(input.InstanceRequirements, context); + if (input[_IR] != null) { + const memberEntries = se_InstanceRequirementsRequest(input[_IR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirements.${key}`; entries[loc] = value; }); } - if (input.PrivateDnsNameOptions != null) { - const memberEntries = se_LaunchTemplatePrivateDnsNameOptionsRequest(input.PrivateDnsNameOptions, context); + if (input[_PDNO] != null) { + const memberEntries = se_LaunchTemplatePrivateDnsNameOptionsRequest(input[_PDNO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PrivateDnsNameOptions.${key}`; entries[loc] = value; }); } - if (input.MaintenanceOptions != null) { - const memberEntries = se_LaunchTemplateInstanceMaintenanceOptionsRequest(input.MaintenanceOptions, context); + if (input[_MOa] != null) { + const memberEntries = se_LaunchTemplateInstanceMaintenanceOptionsRequest(input[_MOa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MaintenanceOptions.${key}`; entries[loc] = value; }); } - if (input.DisableApiStop != null) { - entries["DisableApiStop"] = input.DisableApiStop; + if (input[_DAS] != null) { + entries[_DAS] = input[_DAS]; } return entries; }; @@ -63395,11 +63373,11 @@ const se_RequestLaunchTemplateData = (input: RequestLaunchTemplateData, context: */ const se_RequestSpotFleetRequest = (input: RequestSpotFleetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SpotFleetRequestConfig != null) { - const memberEntries = se_SpotFleetRequestConfigData(input.SpotFleetRequestConfig, context); + if (input[_SFRC] != null) { + const memberEntries = se_SpotFleetRequestConfigData(input[_SFRC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SpotFleetRequestConfig.${key}`; entries[loc] = value; @@ -63413,46 +63391,46 @@ const se_RequestSpotFleetRequest = (input: RequestSpotFleetRequest, context: __S */ const se_RequestSpotInstancesRequest = (input: RequestSpotInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZoneGroup != null) { - entries["AvailabilityZoneGroup"] = input.AvailabilityZoneGroup; + if (input[_AZG] != null) { + entries[_AZG] = input[_AZG]; } - if (input.BlockDurationMinutes != null) { - entries["BlockDurationMinutes"] = input.BlockDurationMinutes; + if (input[_BDMl] != null) { + entries[_BDMl] = input[_BDMl]; } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.LaunchGroup != null) { - entries["LaunchGroup"] = input.LaunchGroup; + if (input[_LG] != null) { + entries[_LG] = input[_LG]; } - if (input.LaunchSpecification != null) { - const memberEntries = se_RequestSpotLaunchSpecification(input.LaunchSpecification, context); + if (input[_LSa] != null) { + const memberEntries = se_RequestSpotLaunchSpecification(input[_LSa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchSpecification.${key}`; entries[loc] = value; }); } - if (input.SpotPrice != null) { - entries["SpotPrice"] = input.SpotPrice; + if (input[_SPp] != null) { + entries[_SPp] = input[_SPp]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.ValidFrom != null) { - entries["ValidFrom"] = input.ValidFrom.toISOString().split(".")[0] + "Z"; + if (input[_VF] != null) { + entries[_VF] = input[_VF].toISOString().split(".")[0] + "Z"; } - if (input.ValidUntil != null) { - entries["ValidUntil"] = input.ValidUntil.toISOString().split(".")[0] + "Z"; + if (input[_VU] != null) { + entries[_VU] = input[_VU].toISOString().split(".")[0] + "Z"; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63460,8 +63438,8 @@ const se_RequestSpotInstancesRequest = (input: RequestSpotInstancesRequest, cont entries[loc] = value; }); } - if (input.InstanceInterruptionBehavior != null) { - entries["InstanceInterruptionBehavior"] = input.InstanceInterruptionBehavior; + if (input[_IIB] != null) { + entries[_IIB] = input[_IIB]; } return entries; }; @@ -63471,9 +63449,9 @@ const se_RequestSpotInstancesRequest = (input: RequestSpotInstancesRequest, cont */ const se_RequestSpotLaunchSpecification = (input: RequestSpotLaunchSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.SecurityGroupIds != null) { - const memberEntries = se_RequestSpotLaunchSpecificationSecurityGroupIdList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_RequestSpotLaunchSpecificationSecurityGroupIdList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63481,9 +63459,9 @@ const se_RequestSpotLaunchSpecification = (input: RequestSpotLaunchSpecification entries[loc] = value; }); } - if (input.SecurityGroups != null) { - const memberEntries = se_RequestSpotLaunchSpecificationSecurityGroupList(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_RequestSpotLaunchSpecificationSecurityGroupList(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroup = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63491,12 +63469,12 @@ const se_RequestSpotLaunchSpecification = (input: RequestSpotLaunchSpecification entries[loc] = value; }); } - if (input.AddressingType != null) { - entries["AddressingType"] = input.AddressingType; + if (input[_ATd] != null) { + entries[_ATd] = input[_ATd]; } - if (input.BlockDeviceMappings != null) { - const memberEntries = se_BlockDeviceMappingList(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_BlockDeviceMappingList(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63504,38 +63482,38 @@ const se_RequestSpotLaunchSpecification = (input: RequestSpotLaunchSpecification entries[loc] = value; }); } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.IamInstanceProfile != null) { - const memberEntries = se_IamInstanceProfileSpecification(input.IamInstanceProfile, context); + if (input[_IIP] != null) { + const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IamInstanceProfile.${key}`; entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.KernelId != null) { - entries["KernelId"] = input.KernelId; + if (input[_KI] != null) { + entries[_KI] = input[_KI]; } - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.Monitoring != null) { - const memberEntries = se_RunInstancesMonitoringEnabled(input.Monitoring, context); + if (input[_Mon] != null) { + const memberEntries = se_RunInstancesMonitoringEnabled(input[_Mon], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Monitoring.${key}`; entries[loc] = value; }); } - if (input.NetworkInterfaces != null) { - const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input.NetworkInterfaces, context); - if (input.NetworkInterfaces?.length === 0) { + if (input[_NI] != null) { + const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input[_NI], context); + if (input[_NI]?.length === 0) { entries.NetworkInterface = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63543,21 +63521,21 @@ const se_RequestSpotLaunchSpecification = (input: RequestSpotLaunchSpecification entries[loc] = value; }); } - if (input.Placement != null) { - const memberEntries = se_SpotPlacement(input.Placement, context); + if (input[_Pl] != null) { + const memberEntries = se_SpotPlacement(input[_Pl], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Placement.${key}`; entries[loc] = value; }); } - if (input.RamdiskId != null) { - entries["RamdiskId"] = input.RamdiskId; + if (input[_RIa] != null) { + entries[_RIa] = input[_RIa]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.UserData != null) { - entries["UserData"] = input.UserData; + if (input[_UD] != null) { + entries[_UD] = input[_UD]; } return entries; }; @@ -63602,26 +63580,26 @@ const se_ReservationFleetInstanceSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.InstancePlatform != null) { - entries["InstancePlatform"] = input.InstancePlatform; + if (input[_IPn] != null) { + entries[_IPn] = input[_IPn]; } - if (input.Weight != null) { - entries["Weight"] = __serializeFloat(input.Weight); + if (input[_W] != null) { + entries[_W] = __serializeFloat(input[_W]); } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.AvailabilityZoneId != null) { - entries["AvailabilityZoneId"] = input.AvailabilityZoneId; + if (input[_AZI] != null) { + entries[_AZI] = input[_AZI]; } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.Priority != null) { - entries["Priority"] = input.Priority; + if (input[_Pri] != null) { + entries[_Pri] = input[_Pri]; } return entries; }; @@ -63669,11 +63647,11 @@ const se_ReservedInstanceIdSet = (input: string[], context: __SerdeContext): any */ const se_ReservedInstanceLimitPrice = (input: ReservedInstanceLimitPrice, context: __SerdeContext): any => { const entries: any = {}; - if (input.Amount != null) { - entries["Amount"] = __serializeFloat(input.Amount); + if (input[_Am] != null) { + entries[_Am] = __serializeFloat(input[_Am]); } - if (input.CurrencyCode != null) { - entries["CurrencyCode"] = input.CurrencyCode; + if (input[_CCu] != null) { + entries[_CCu] = input[_CCu]; } return entries; }; @@ -63683,20 +63661,20 @@ const se_ReservedInstanceLimitPrice = (input: ReservedInstanceLimitPrice, contex */ const se_ReservedInstancesConfiguration = (input: ReservedInstancesConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.Platform != null) { - entries["Platform"] = input.Platform; + if (input[_Pla] != null) { + entries[_Pla] = input[_Pla]; } - if (input.Scope != null) { - entries["Scope"] = input.Scope; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } return entries; }; @@ -63776,14 +63754,14 @@ const se_ReservedInstancesOfferingIdStringList = (input: string[], context: __Se */ const se_ResetAddressAttributeRequest = (input: ResetAddressAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AIl] != null) { + entries[_AIl] = input[_AIl]; } - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -63793,8 +63771,8 @@ const se_ResetAddressAttributeRequest = (input: ResetAddressAttributeRequest, co */ const se_ResetEbsDefaultKmsKeyIdRequest = (input: ResetEbsDefaultKmsKeyIdRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -63804,14 +63782,14 @@ const se_ResetEbsDefaultKmsKeyIdRequest = (input: ResetEbsDefaultKmsKeyIdRequest */ const se_ResetFpgaImageAttributeRequest = (input: ResetFpgaImageAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.FpgaImageId != null) { - entries["FpgaImageId"] = input.FpgaImageId; + if (input[_FII] != null) { + entries[_FII] = input[_FII]; } - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } return entries; }; @@ -63821,14 +63799,14 @@ const se_ResetFpgaImageAttributeRequest = (input: ResetFpgaImageAttributeRequest */ const se_ResetImageAttributeRequest = (input: ResetImageAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -63838,14 +63816,14 @@ const se_ResetImageAttributeRequest = (input: ResetImageAttributeRequest, contex */ const se_ResetInstanceAttributeRequest = (input: ResetInstanceAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } return entries; }; @@ -63858,14 +63836,14 @@ const se_ResetNetworkInterfaceAttributeRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.SourceDestCheck != null) { - entries["SourceDestCheck"] = input.SourceDestCheck; + if (input[_SDC] != null) { + entries[_SDC] = input[_SDC]; } return entries; }; @@ -63875,14 +63853,14 @@ const se_ResetNetworkInterfaceAttributeRequest = ( */ const se_ResetSnapshotAttributeRequest = (input: ResetSnapshotAttributeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -63924,9 +63902,9 @@ const se_ResourceList = (input: string[], context: __SerdeContext): any => { */ const se_ResourceStatementRequest = (input: ResourceStatementRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Resources != null) { - const memberEntries = se_ValueStringList(input.Resources, context); - if (input.Resources?.length === 0) { + if (input[_R] != null) { + const memberEntries = se_ValueStringList(input[_R], context); + if (input[_R]?.length === 0) { entries.Resource = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63934,9 +63912,9 @@ const se_ResourceStatementRequest = (input: ResourceStatementRequest, context: _ entries[loc] = value; }); } - if (input.ResourceTypes != null) { - const memberEntries = se_ValueStringList(input.ResourceTypes, context); - if (input.ResourceTypes?.length === 0) { + if (input[_RTeso] != null) { + const memberEntries = se_ValueStringList(input[_RTeso], context); + if (input[_RTeso]?.length === 0) { entries.ResourceType = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -63968,11 +63946,11 @@ const se_RestorableByStringList = (input: string[], context: __SerdeContext): an */ const se_RestoreAddressToClassicRequest = (input: RestoreAddressToClassicRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PublicIp != null) { - entries["PublicIp"] = input.PublicIp; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } return entries; }; @@ -63985,11 +63963,11 @@ const se_RestoreImageFromRecycleBinRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -64002,17 +63980,17 @@ const se_RestoreManagedPrefixListVersionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.PreviousVersion != null) { - entries["PreviousVersion"] = input.PreviousVersion; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.CurrentVersion != null) { - entries["CurrentVersion"] = input.CurrentVersion; + if (input[_CVu] != null) { + entries[_CVu] = input[_CVu]; } return entries; }; @@ -64025,11 +64003,11 @@ const se_RestoreSnapshotFromRecycleBinRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -64039,17 +64017,17 @@ const se_RestoreSnapshotFromRecycleBinRequest = ( */ const se_RestoreSnapshotTierRequest = (input: RestoreSnapshotTierRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.TemporaryRestoreDays != null) { - entries["TemporaryRestoreDays"] = input.TemporaryRestoreDays; + if (input[_TRD] != null) { + entries[_TRD] = input[_TRD]; } - if (input.PermanentRestore != null) { - entries["PermanentRestore"] = input.PermanentRestore; + if (input[_PRer] != null) { + entries[_PRer] = input[_PRer]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -64059,20 +64037,20 @@ const se_RestoreSnapshotTierRequest = (input: RestoreSnapshotTierRequest, contex */ const se_RevokeClientVpnIngressRequest = (input: RevokeClientVpnIngressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.TargetNetworkCidr != null) { - entries["TargetNetworkCidr"] = input.TargetNetworkCidr; + if (input[_TNC] != null) { + entries[_TNC] = input[_TNC]; } - if (input.AccessGroupId != null) { - entries["AccessGroupId"] = input.AccessGroupId; + if (input[_AGI] != null) { + entries[_AGI] = input[_AGI]; } - if (input.RevokeAllGroups != null) { - entries["RevokeAllGroups"] = input.RevokeAllGroups; + if (input[_RAG] != null) { + entries[_RAG] = input[_RAG]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -64082,15 +64060,15 @@ const se_RevokeClientVpnIngressRequest = (input: RevokeClientVpnIngressRequest, */ const se_RevokeSecurityGroupEgressRequest = (input: RevokeSecurityGroupEgressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.IpPermissions != null) { - const memberEntries = se_IpPermissionList(input.IpPermissions, context); - if (input.IpPermissions?.length === 0) { + if (input[_IPpe] != null) { + const memberEntries = se_IpPermissionList(input[_IPpe], context); + if (input[_IPpe]?.length === 0) { entries.IpPermissions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64098,9 +64076,9 @@ const se_RevokeSecurityGroupEgressRequest = (input: RevokeSecurityGroupEgressReq entries[loc] = value; }); } - if (input.SecurityGroupRuleIds != null) { - const memberEntries = se_SecurityGroupRuleIdList(input.SecurityGroupRuleIds, context); - if (input.SecurityGroupRuleIds?.length === 0) { + if (input[_SGRI] != null) { + const memberEntries = se_SecurityGroupRuleIdList(input[_SGRI], context); + if (input[_SGRI]?.length === 0) { entries.SecurityGroupRuleId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64108,23 +64086,23 @@ const se_RevokeSecurityGroupEgressRequest = (input: RevokeSecurityGroupEgressReq entries[loc] = value; }); } - if (input.CidrIp != null) { - entries["CidrIp"] = input.CidrIp; + if (input[_CIi] != null) { + entries[_CIi] = input[_CIi]; } - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.IpProtocol != null) { - entries["IpProtocol"] = input.IpProtocol; + if (input[_IPpr] != null) { + entries[_IPpr] = input[_IPpr]; } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } - if (input.SourceSecurityGroupName != null) { - entries["SourceSecurityGroupName"] = input.SourceSecurityGroupName; + if (input[_SSGN] != null) { + entries[_SSGN] = input[_SSGN]; } - if (input.SourceSecurityGroupOwnerId != null) { - entries["SourceSecurityGroupOwnerId"] = input.SourceSecurityGroupOwnerId; + if (input[_SSGOI] != null) { + entries[_SSGOI] = input[_SSGOI]; } return entries; }; @@ -64137,21 +64115,21 @@ const se_RevokeSecurityGroupIngressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CidrIp != null) { - entries["CidrIp"] = input.CidrIp; + if (input[_CIi] != null) { + entries[_CIi] = input[_CIi]; } - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.IpPermissions != null) { - const memberEntries = se_IpPermissionList(input.IpPermissions, context); - if (input.IpPermissions?.length === 0) { + if (input[_IPpe] != null) { + const memberEntries = se_IpPermissionList(input[_IPpe], context); + if (input[_IPpe]?.length === 0) { entries.IpPermissions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64159,24 +64137,24 @@ const se_RevokeSecurityGroupIngressRequest = ( entries[loc] = value; }); } - if (input.IpProtocol != null) { - entries["IpProtocol"] = input.IpProtocol; + if (input[_IPpr] != null) { + entries[_IPpr] = input[_IPpr]; } - if (input.SourceSecurityGroupName != null) { - entries["SourceSecurityGroupName"] = input.SourceSecurityGroupName; + if (input[_SSGN] != null) { + entries[_SSGN] = input[_SSGN]; } - if (input.SourceSecurityGroupOwnerId != null) { - entries["SourceSecurityGroupOwnerId"] = input.SourceSecurityGroupOwnerId; + if (input[_SSGOI] != null) { + entries[_SSGOI] = input[_SSGOI]; } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.SecurityGroupRuleIds != null) { - const memberEntries = se_SecurityGroupRuleIdList(input.SecurityGroupRuleIds, context); - if (input.SecurityGroupRuleIds?.length === 0) { + if (input[_SGRI] != null) { + const memberEntries = se_SecurityGroupRuleIdList(input[_SGRI], context); + if (input[_SGRI]?.length === 0) { entries.SecurityGroupRuleId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64208,8 +64186,8 @@ const se_RouteTableIdStringList = (input: string[], context: __SerdeContext): an */ const se_RunInstancesMonitoringEnabled = (input: RunInstancesMonitoringEnabled, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -64219,9 +64197,9 @@ const se_RunInstancesMonitoringEnabled = (input: RunInstancesMonitoringEnabled, */ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BlockDeviceMappings != null) { - const memberEntries = se_BlockDeviceMappingRequestList(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_BlockDeviceMappingRequestList(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64229,18 +64207,18 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.Ipv6AddressCount != null) { - entries["Ipv6AddressCount"] = input.Ipv6AddressCount; + if (input[_IAC] != null) { + entries[_IAC] = input[_IAC]; } - if (input.Ipv6Addresses != null) { - const memberEntries = se_InstanceIpv6AddressList(input.Ipv6Addresses, context); - if (input.Ipv6Addresses?.length === 0) { + if (input[_IA] != null) { + const memberEntries = se_InstanceIpv6AddressList(input[_IA], context); + if (input[_IA]?.length === 0) { entries.Ipv6Address = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64248,38 +64226,38 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.KernelId != null) { - entries["KernelId"] = input.KernelId; + if (input[_KI] != null) { + entries[_KI] = input[_KI]; } - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.MaxCount != null) { - entries["MaxCount"] = input.MaxCount; + if (input[_MC] != null) { + entries[_MC] = input[_MC]; } - if (input.MinCount != null) { - entries["MinCount"] = input.MinCount; + if (input[_MCi] != null) { + entries[_MCi] = input[_MCi]; } - if (input.Monitoring != null) { - const memberEntries = se_RunInstancesMonitoringEnabled(input.Monitoring, context); + if (input[_Mon] != null) { + const memberEntries = se_RunInstancesMonitoringEnabled(input[_Mon], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Monitoring.${key}`; entries[loc] = value; }); } - if (input.Placement != null) { - const memberEntries = se_Placement(input.Placement, context); + if (input[_Pl] != null) { + const memberEntries = se_Placement(input[_Pl], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Placement.${key}`; entries[loc] = value; }); } - if (input.RamdiskId != null) { - entries["RamdiskId"] = input.RamdiskId; + if (input[_RIa] != null) { + entries[_RIa] = input[_RIa]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdStringList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdStringList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64287,9 +64265,9 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroupStringList(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_SecurityGroupStringList(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroup = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64297,43 +64275,43 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.UserData != null) { - entries["UserData"] = input.UserData; + if (input[_UD] != null) { + entries[_UD] = input[_UD]; } - if (input.AdditionalInfo != null) { - entries["AdditionalInfo"] = input.AdditionalInfo; + if (input[_AId] != null) { + entries[_AId] = input[_AId]; } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DisableApiTermination != null) { - entries["DisableApiTermination"] = input.DisableApiTermination; + if (input[_DATis] != null) { + entries[_DATis] = input[_DATis]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.IamInstanceProfile != null) { - const memberEntries = se_IamInstanceProfileSpecification(input.IamInstanceProfile, context); + if (input[_IIP] != null) { + const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IamInstanceProfile.${key}`; entries[loc] = value; }); } - if (input.InstanceInitiatedShutdownBehavior != null) { - entries["InstanceInitiatedShutdownBehavior"] = input.InstanceInitiatedShutdownBehavior; + if (input[_IISB] != null) { + entries[_IISB] = input[_IISB]; } - if (input.NetworkInterfaces != null) { - const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input.NetworkInterfaces, context); - if (input.NetworkInterfaces?.length === 0) { + if (input[_NI] != null) { + const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input[_NI], context); + if (input[_NI]?.length === 0) { entries.NetworkInterface = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64341,12 +64319,12 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } - if (input.ElasticGpuSpecification != null) { - const memberEntries = se_ElasticGpuSpecifications(input.ElasticGpuSpecification, context); - if (input.ElasticGpuSpecification?.length === 0) { + if (input[_EGSl] != null) { + const memberEntries = se_ElasticGpuSpecifications(input[_EGSl], context); + if (input[_EGSl]?.length === 0) { entries.ElasticGpuSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64354,9 +64332,9 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.ElasticInferenceAccelerators != null) { - const memberEntries = se_ElasticInferenceAccelerators(input.ElasticInferenceAccelerators, context); - if (input.ElasticInferenceAccelerators?.length === 0) { + if (input[_EIA] != null) { + const memberEntries = se_ElasticInferenceAccelerators(input[_EIA], context); + if (input[_EIA]?.length === 0) { entries.ElasticInferenceAccelerator = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64364,9 +64342,9 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64374,51 +64352,51 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.LaunchTemplate != null) { - const memberEntries = se_LaunchTemplateSpecification(input.LaunchTemplate, context); + if (input[_LTa] != null) { + const memberEntries = se_LaunchTemplateSpecification(input[_LTa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchTemplate.${key}`; entries[loc] = value; }); } - if (input.InstanceMarketOptions != null) { - const memberEntries = se_InstanceMarketOptionsRequest(input.InstanceMarketOptions, context); + if (input[_IMO] != null) { + const memberEntries = se_InstanceMarketOptionsRequest(input[_IMO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceMarketOptions.${key}`; entries[loc] = value; }); } - if (input.CreditSpecification != null) { - const memberEntries = se_CreditSpecificationRequest(input.CreditSpecification, context); + if (input[_CSred] != null) { + const memberEntries = se_CreditSpecificationRequest(input[_CSred], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CreditSpecification.${key}`; entries[loc] = value; }); } - if (input.CpuOptions != null) { - const memberEntries = se_CpuOptionsRequest(input.CpuOptions, context); + if (input[_CO] != null) { + const memberEntries = se_CpuOptionsRequest(input[_CO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CpuOptions.${key}`; entries[loc] = value; }); } - if (input.CapacityReservationSpecification != null) { - const memberEntries = se_CapacityReservationSpecification(input.CapacityReservationSpecification, context); + if (input[_CRS] != null) { + const memberEntries = se_CapacityReservationSpecification(input[_CRS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityReservationSpecification.${key}`; entries[loc] = value; }); } - if (input.HibernationOptions != null) { - const memberEntries = se_HibernationOptionsRequest(input.HibernationOptions, context); + if (input[_HO] != null) { + const memberEntries = se_HibernationOptionsRequest(input[_HO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `HibernationOptions.${key}`; entries[loc] = value; }); } - if (input.LicenseSpecifications != null) { - const memberEntries = se_LicenseSpecificationListRequest(input.LicenseSpecifications, context); - if (input.LicenseSpecifications?.length === 0) { + if (input[_LSi] != null) { + const memberEntries = se_LicenseSpecificationListRequest(input[_LSi], context); + if (input[_LSi]?.length === 0) { entries.LicenseSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64426,39 +64404,39 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.MetadataOptions != null) { - const memberEntries = se_InstanceMetadataOptionsRequest(input.MetadataOptions, context); + if (input[_MO] != null) { + const memberEntries = se_InstanceMetadataOptionsRequest(input[_MO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MetadataOptions.${key}`; entries[loc] = value; }); } - if (input.EnclaveOptions != null) { - const memberEntries = se_EnclaveOptionsRequest(input.EnclaveOptions, context); + if (input[_EOn] != null) { + const memberEntries = se_EnclaveOptionsRequest(input[_EOn], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EnclaveOptions.${key}`; entries[loc] = value; }); } - if (input.PrivateDnsNameOptions != null) { - const memberEntries = se_PrivateDnsNameOptionsRequest(input.PrivateDnsNameOptions, context); + if (input[_PDNO] != null) { + const memberEntries = se_PrivateDnsNameOptionsRequest(input[_PDNO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PrivateDnsNameOptions.${key}`; entries[loc] = value; }); } - if (input.MaintenanceOptions != null) { - const memberEntries = se_InstanceMaintenanceOptionsRequest(input.MaintenanceOptions, context); + if (input[_MOa] != null) { + const memberEntries = se_InstanceMaintenanceOptionsRequest(input[_MOa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MaintenanceOptions.${key}`; entries[loc] = value; }); } - if (input.DisableApiStop != null) { - entries["DisableApiStop"] = input.DisableApiStop; + if (input[_DAS] != null) { + entries[_DAS] = input[_DAS]; } - if (input.EnablePrimaryIpv6 != null) { - entries["EnablePrimaryIpv6"] = input.EnablePrimaryIpv6; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } return entries; }; @@ -64468,27 +64446,27 @@ const se_RunInstancesRequest = (input: RunInstancesRequest, context: __SerdeCont */ const se_RunScheduledInstancesRequest = (input: RunScheduledInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.LaunchSpecification != null) { - const memberEntries = se_ScheduledInstancesLaunchSpecification(input.LaunchSpecification, context); + if (input[_LSa] != null) { + const memberEntries = se_ScheduledInstancesLaunchSpecification(input[_LSa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LaunchSpecification.${key}`; entries[loc] = value; }); } - if (input.ScheduledInstanceId != null) { - entries["ScheduledInstanceId"] = input.ScheduledInstanceId; + if (input[_SIIch] != null) { + entries[_SIIch] = input[_SIIch]; } return entries; }; @@ -64498,11 +64476,11 @@ const se_RunScheduledInstancesRequest = (input: RunScheduledInstancesRequest, co */ const se_S3ObjectTag = (input: S3ObjectTag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_Ke] != null) { + entries[_Ke] = input[_Ke]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -64531,20 +64509,20 @@ const se_S3ObjectTagList = (input: S3ObjectTag[], context: __SerdeContext): any */ const se_S3Storage = (input: S3Storage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AWSAccessKeyId != null) { - entries["AWSAccessKeyId"] = input.AWSAccessKeyId; + if (input[_AWSAKI] != null) { + entries[_AWSAKI] = input[_AWSAKI]; } - if (input.Bucket != null) { - entries["Bucket"] = input.Bucket; + if (input[_B] != null) { + entries[_B] = input[_B]; } - if (input.Prefix != null) { - entries["Prefix"] = input.Prefix; + if (input[_Pr] != null) { + entries[_Pr] = input[_Pr]; } - if (input.UploadPolicy != null) { - entries["UploadPolicy"] = context.base64Encoder(input.UploadPolicy); + if (input[_UP] != null) { + entries[_UP] = context.base64Encoder(input[_UP]); } - if (input.UploadPolicySignature != null) { - entries["UploadPolicySignature"] = input.UploadPolicySignature; + if (input[_UPS] != null) { + entries[_UPS] = input[_UPS]; } return entries; }; @@ -64573,15 +64551,15 @@ const se_ScheduledInstanceRecurrenceRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Frequency != null) { - entries["Frequency"] = input.Frequency; + if (input[_Fre] != null) { + entries[_Fre] = input[_Fre]; } - if (input.Interval != null) { - entries["Interval"] = input.Interval; + if (input[_Int] != null) { + entries[_Int] = input[_Int]; } - if (input.OccurrenceDays != null) { - const memberEntries = se_OccurrenceDayRequestSet(input.OccurrenceDays, context); - if (input.OccurrenceDays?.length === 0) { + if (input[_OD] != null) { + const memberEntries = se_OccurrenceDayRequestSet(input[_OD], context); + if (input[_OD]?.length === 0) { entries.OccurrenceDay = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64589,11 +64567,11 @@ const se_ScheduledInstanceRecurrenceRequest = ( entries[loc] = value; }); } - if (input.OccurrenceRelativeToEnd != null) { - entries["OccurrenceRelativeToEnd"] = input.OccurrenceRelativeToEnd; + if (input[_ORTE] != null) { + entries[_ORTE] = input[_ORTE]; } - if (input.OccurrenceUnit != null) { - entries["OccurrenceUnit"] = input.OccurrenceUnit; + if (input[_OU] != null) { + entries[_OU] = input[_OU]; } return entries; }; @@ -64606,21 +64584,21 @@ const se_ScheduledInstancesBlockDeviceMapping = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DeviceName != null) { - entries["DeviceName"] = input.DeviceName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.Ebs != null) { - const memberEntries = se_ScheduledInstancesEbs(input.Ebs, context); + if (input[_E] != null) { + const memberEntries = se_ScheduledInstancesEbs(input[_E], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Ebs.${key}`; entries[loc] = value; }); } - if (input.NoDevice != null) { - entries["NoDevice"] = input.NoDevice; + if (input[_ND] != null) { + entries[_ND] = input[_ND]; } - if (input.VirtualName != null) { - entries["VirtualName"] = input.VirtualName; + if (input[_VN] != null) { + entries[_VN] = input[_VN]; } return entries; }; @@ -64652,23 +64630,23 @@ const se_ScheduledInstancesBlockDeviceMappingSet = ( */ const se_ScheduledInstancesEbs = (input: ScheduledInstancesEbs, context: __SerdeContext): any => { const entries: any = {}; - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_Enc] != null) { + entries[_Enc] = input[_Enc]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_Io] != null) { + entries[_Io] = input[_Io]; } - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.VolumeSize != null) { - entries["VolumeSize"] = input.VolumeSize; + if (input[_VS] != null) { + entries[_VS] = input[_VS]; } - if (input.VolumeType != null) { - entries["VolumeType"] = input.VolumeType; + if (input[_VT] != null) { + entries[_VT] = input[_VT]; } return entries; }; @@ -64681,11 +64659,11 @@ const se_ScheduledInstancesIamInstanceProfile = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } return entries; }; @@ -64695,8 +64673,8 @@ const se_ScheduledInstancesIamInstanceProfile = ( */ const se_ScheduledInstancesIpv6Address = (input: ScheduledInstancesIpv6Address, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv6Address != null) { - entries["Ipv6Address"] = input.Ipv6Address; + if (input[_IApv] != null) { + entries[_IApv] = input[_IApv]; } return entries; }; @@ -64728,9 +64706,9 @@ const se_ScheduledInstancesLaunchSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.BlockDeviceMappings != null) { - const memberEntries = se_ScheduledInstancesBlockDeviceMappingSet(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_ScheduledInstancesBlockDeviceMappingSet(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64738,38 +64716,38 @@ const se_ScheduledInstancesLaunchSpecification = ( entries[loc] = value; }); } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.IamInstanceProfile != null) { - const memberEntries = se_ScheduledInstancesIamInstanceProfile(input.IamInstanceProfile, context); + if (input[_IIP] != null) { + const memberEntries = se_ScheduledInstancesIamInstanceProfile(input[_IIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IamInstanceProfile.${key}`; entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.KernelId != null) { - entries["KernelId"] = input.KernelId; + if (input[_KI] != null) { + entries[_KI] = input[_KI]; } - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.Monitoring != null) { - const memberEntries = se_ScheduledInstancesMonitoring(input.Monitoring, context); + if (input[_Mon] != null) { + const memberEntries = se_ScheduledInstancesMonitoring(input[_Mon], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Monitoring.${key}`; entries[loc] = value; }); } - if (input.NetworkInterfaces != null) { - const memberEntries = se_ScheduledInstancesNetworkInterfaceSet(input.NetworkInterfaces, context); - if (input.NetworkInterfaces?.length === 0) { + if (input[_NI] != null) { + const memberEntries = se_ScheduledInstancesNetworkInterfaceSet(input[_NI], context); + if (input[_NI]?.length === 0) { entries.NetworkInterface = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64777,19 +64755,19 @@ const se_ScheduledInstancesLaunchSpecification = ( entries[loc] = value; }); } - if (input.Placement != null) { - const memberEntries = se_ScheduledInstancesPlacement(input.Placement, context); + if (input[_Pl] != null) { + const memberEntries = se_ScheduledInstancesPlacement(input[_Pl], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Placement.${key}`; entries[loc] = value; }); } - if (input.RamdiskId != null) { - entries["RamdiskId"] = input.RamdiskId; + if (input[_RIa] != null) { + entries[_RIa] = input[_RIa]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_ScheduledInstancesSecurityGroupIdSet(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_ScheduledInstancesSecurityGroupIdSet(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64797,11 +64775,11 @@ const se_ScheduledInstancesLaunchSpecification = ( entries[loc] = value; }); } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.UserData != null) { - entries["UserData"] = input.UserData; + if (input[_UD] != null) { + entries[_UD] = input[_UD]; } return entries; }; @@ -64811,8 +64789,8 @@ const se_ScheduledInstancesLaunchSpecification = ( */ const se_ScheduledInstancesMonitoring = (input: ScheduledInstancesMonitoring, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -64825,21 +64803,21 @@ const se_ScheduledInstancesNetworkInterface = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AssociatePublicIpAddress != null) { - entries["AssociatePublicIpAddress"] = input.AssociatePublicIpAddress; + if (input[_APIAs] != null) { + entries[_APIAs] = input[_APIAs]; } - if (input.DeleteOnTermination != null) { - entries["DeleteOnTermination"] = input.DeleteOnTermination; + if (input[_DOT] != null) { + entries[_DOT] = input[_DOT]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.DeviceIndex != null) { - entries["DeviceIndex"] = input.DeviceIndex; + if (input[_DIev] != null) { + entries[_DIev] = input[_DIev]; } - if (input.Groups != null) { - const memberEntries = se_ScheduledInstancesSecurityGroupIdSet(input.Groups, context); - if (input.Groups?.length === 0) { + if (input[_G] != null) { + const memberEntries = se_ScheduledInstancesSecurityGroupIdSet(input[_G], context); + if (input[_G]?.length === 0) { entries.Group = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64847,12 +64825,12 @@ const se_ScheduledInstancesNetworkInterface = ( entries[loc] = value; }); } - if (input.Ipv6AddressCount != null) { - entries["Ipv6AddressCount"] = input.Ipv6AddressCount; + if (input[_IAC] != null) { + entries[_IAC] = input[_IAC]; } - if (input.Ipv6Addresses != null) { - const memberEntries = se_ScheduledInstancesIpv6AddressList(input.Ipv6Addresses, context); - if (input.Ipv6Addresses?.length === 0) { + if (input[_IA] != null) { + const memberEntries = se_ScheduledInstancesIpv6AddressList(input[_IA], context); + if (input[_IA]?.length === 0) { entries.Ipv6Address = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64860,15 +64838,15 @@ const se_ScheduledInstancesNetworkInterface = ( entries[loc] = value; }); } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } - if (input.PrivateIpAddressConfigs != null) { - const memberEntries = se_PrivateIpAddressConfigSet(input.PrivateIpAddressConfigs, context); - if (input.PrivateIpAddressConfigs?.length === 0) { + if (input[_PIACr] != null) { + const memberEntries = se_PrivateIpAddressConfigSet(input[_PIACr], context); + if (input[_PIACr]?.length === 0) { entries.PrivateIpAddressConfig = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64876,11 +64854,11 @@ const se_ScheduledInstancesNetworkInterface = ( entries[loc] = value; }); } - if (input.SecondaryPrivateIpAddressCount != null) { - entries["SecondaryPrivateIpAddressCount"] = input.SecondaryPrivateIpAddressCount; + if (input[_SPIAC] != null) { + entries[_SPIAC] = input[_SPIAC]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } return entries; }; @@ -64912,11 +64890,11 @@ const se_ScheduledInstancesNetworkInterfaceSet = ( */ const se_ScheduledInstancesPlacement = (input: ScheduledInstancesPlacement, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } return entries; }; @@ -64929,11 +64907,11 @@ const se_ScheduledInstancesPrivateIpAddressConfig = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Primary != null) { - entries["Primary"] = input.Primary; + if (input[_Prim] != null) { + entries[_Prim] = input[_Prim]; } - if (input.PrivateIpAddress != null) { - entries["PrivateIpAddress"] = input.PrivateIpAddress; + if (input[_PIAr] != null) { + entries[_PIAr] = input[_PIAr]; } return entries; }; @@ -64959,12 +64937,12 @@ const se_ScheduledInstancesSecurityGroupIdSet = (input: string[], context: __Ser */ const se_SearchLocalGatewayRoutesRequest = (input: SearchLocalGatewayRoutesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.LocalGatewayRouteTableId != null) { - entries["LocalGatewayRouteTableId"] = input.LocalGatewayRouteTableId; + if (input[_LGRTI] != null) { + entries[_LGRTI] = input[_LGRTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -64972,14 +64950,14 @@ const se_SearchLocalGatewayRoutesRequest = (input: SearchLocalGatewayRoutesReque entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -64992,12 +64970,12 @@ const se_SearchTransitGatewayMulticastGroupsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65005,14 +64983,14 @@ const se_SearchTransitGatewayMulticastGroupsRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -65025,12 +65003,12 @@ const se_SearchTransitGatewayRoutesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TransitGatewayRouteTableId != null) { - entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId; + if (input[_TGRTI] != null) { + entries[_TGRTI] = input[_TGRTI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65038,11 +65016,11 @@ const se_SearchTransitGatewayRoutesRequest = ( entries[loc] = value; }); } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -65100,11 +65078,11 @@ const se_SecurityGroupIdStringListRequest = (input: string[], context: __SerdeCo */ const se_SecurityGroupRuleDescription = (input: SecurityGroupRuleDescription, context: __SerdeContext): any => { const entries: any = {}; - if (input.SecurityGroupRuleId != null) { - entries["SecurityGroupRuleId"] = input.SecurityGroupRuleId; + if (input[_SGRIe] != null) { + entries[_SGRIe] = input[_SGRIe]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } return entries; }; @@ -65149,29 +65127,29 @@ const se_SecurityGroupRuleIdList = (input: string[], context: __SerdeContext): a */ const se_SecurityGroupRuleRequest = (input: SecurityGroupRuleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.IpProtocol != null) { - entries["IpProtocol"] = input.IpProtocol; + if (input[_IPpr] != null) { + entries[_IPpr] = input[_IPpr]; } - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } - if (input.CidrIpv4 != null) { - entries["CidrIpv4"] = input.CidrIpv4; + if (input[_CIidr] != null) { + entries[_CIidr] = input[_CIidr]; } - if (input.CidrIpv6 != null) { - entries["CidrIpv6"] = input.CidrIpv6; + if (input[_CIid] != null) { + entries[_CIid] = input[_CIid]; } - if (input.PrefixListId != null) { - entries["PrefixListId"] = input.PrefixListId; + if (input[_PLI] != null) { + entries[_PLI] = input[_PLI]; } - if (input.ReferencedGroupId != null) { - entries["ReferencedGroupId"] = input.ReferencedGroupId; + if (input[_RGI] != null) { + entries[_RGI] = input[_RGI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } return entries; }; @@ -65181,11 +65159,11 @@ const se_SecurityGroupRuleRequest = (input: SecurityGroupRuleRequest, context: _ */ const se_SecurityGroupRuleUpdate = (input: SecurityGroupRuleUpdate, context: __SerdeContext): any => { const entries: any = {}; - if (input.SecurityGroupRuleId != null) { - entries["SecurityGroupRuleId"] = input.SecurityGroupRuleId; + if (input[_SGRIe] != null) { + entries[_SGRIe] = input[_SGRIe]; } - if (input.SecurityGroupRule != null) { - const memberEntries = se_SecurityGroupRuleRequest(input.SecurityGroupRule, context); + if (input[_SGRe] != null) { + const memberEntries = se_SecurityGroupRuleRequest(input[_SGRe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SecurityGroupRule.${key}`; entries[loc] = value; @@ -65234,11 +65212,11 @@ const se_SecurityGroupStringList = (input: string[], context: __SerdeContext): a */ const se_SendDiagnosticInterruptRequest = (input: SendDiagnosticInterruptRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -65248,11 +65226,11 @@ const se_SendDiagnosticInterruptRequest = (input: SendDiagnosticInterruptRequest */ const se_SlotDateTimeRangeRequest = (input: SlotDateTimeRangeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EarliestTime != null) { - entries["EarliestTime"] = input.EarliestTime.toISOString().split(".")[0] + "Z"; + if (input[_ETa] != null) { + entries[_ETa] = input[_ETa].toISOString().split(".")[0] + "Z"; } - if (input.LatestTime != null) { - entries["LatestTime"] = input.LatestTime.toISOString().split(".")[0] + "Z"; + if (input[_LTat] != null) { + entries[_LTat] = input[_LTat].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -65262,11 +65240,11 @@ const se_SlotDateTimeRangeRequest = (input: SlotDateTimeRangeRequest, context: _ */ const se_SlotStartTimeRangeRequest = (input: SlotStartTimeRangeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EarliestTime != null) { - entries["EarliestTime"] = input.EarliestTime.toISOString().split(".")[0] + "Z"; + if (input[_ETa] != null) { + entries[_ETa] = input[_ETa].toISOString().split(".")[0] + "Z"; } - if (input.LatestTime != null) { - entries["LatestTime"] = input.LatestTime.toISOString().split(".")[0] + "Z"; + if (input[_LTat] != null) { + entries[_LTat] = input[_LTat].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -65276,17 +65254,17 @@ const se_SlotStartTimeRangeRequest = (input: SlotStartTimeRangeRequest, context: */ const se_SnapshotDiskContainer = (input: SnapshotDiskContainer, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.Format != null) { - entries["Format"] = input.Format; + if (input[_Fo] != null) { + entries[_Fo] = input[_Fo]; } - if (input.Url != null) { - entries["Url"] = input.Url; + if (input[_U] != null) { + entries[_U] = input[_U]; } - if (input.UserBucket != null) { - const memberEntries = se_UserBucket(input.UserBucket, context); + if (input[_UB] != null) { + const memberEntries = se_UserBucket(input[_UB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `UserBucket.${key}`; entries[loc] = value; @@ -65316,11 +65294,11 @@ const se_SnapshotIdStringList = (input: string[], context: __SerdeContext): any */ const se_SpotCapacityRebalance = (input: SpotCapacityRebalance, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplacementStrategy != null) { - entries["ReplacementStrategy"] = input.ReplacementStrategy; + if (input[_RS] != null) { + entries[_RS] = input[_RS]; } - if (input.TerminationDelay != null) { - entries["TerminationDelay"] = input.TerminationDelay; + if (input[_TDe] != null) { + entries[_TDe] = input[_TDe]; } return entries; }; @@ -65330,9 +65308,9 @@ const se_SpotCapacityRebalance = (input: SpotCapacityRebalance, context: __Serde */ const se_SpotFleetLaunchSpecification = (input: SpotFleetLaunchSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.SecurityGroups != null) { - const memberEntries = se_GroupIdentifierList(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_GroupIdentifierList(input[_SG], context); + if (input[_SG]?.length === 0) { entries.GroupSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65340,12 +65318,12 @@ const se_SpotFleetLaunchSpecification = (input: SpotFleetLaunchSpecification, co entries[loc] = value; }); } - if (input.AddressingType != null) { - entries["AddressingType"] = input.AddressingType; + if (input[_ATd] != null) { + entries[_ATd] = input[_ATd]; } - if (input.BlockDeviceMappings != null) { - const memberEntries = se_BlockDeviceMappingList(input.BlockDeviceMappings, context); - if (input.BlockDeviceMappings?.length === 0) { + if (input[_BDM] != null) { + const memberEntries = se_BlockDeviceMappingList(input[_BDM], context); + if (input[_BDM]?.length === 0) { entries.BlockDeviceMapping = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65353,38 +65331,38 @@ const se_SpotFleetLaunchSpecification = (input: SpotFleetLaunchSpecification, co entries[loc] = value; }); } - if (input.EbsOptimized != null) { - entries["EbsOptimized"] = input.EbsOptimized; + if (input[_EO] != null) { + entries[_EO] = input[_EO]; } - if (input.IamInstanceProfile != null) { - const memberEntries = se_IamInstanceProfileSpecification(input.IamInstanceProfile, context); + if (input[_IIP] != null) { + const memberEntries = se_IamInstanceProfileSpecification(input[_IIP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IamInstanceProfile.${key}`; entries[loc] = value; }); } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_IIma] != null) { + entries[_IIma] = input[_IIma]; } - if (input.InstanceType != null) { - entries["InstanceType"] = input.InstanceType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } - if (input.KernelId != null) { - entries["KernelId"] = input.KernelId; + if (input[_KI] != null) { + entries[_KI] = input[_KI]; } - if (input.KeyName != null) { - entries["KeyName"] = input.KeyName; + if (input[_KN] != null) { + entries[_KN] = input[_KN]; } - if (input.Monitoring != null) { - const memberEntries = se_SpotFleetMonitoring(input.Monitoring, context); + if (input[_Mon] != null) { + const memberEntries = se_SpotFleetMonitoring(input[_Mon], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Monitoring.${key}`; entries[loc] = value; }); } - if (input.NetworkInterfaces != null) { - const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input.NetworkInterfaces, context); - if (input.NetworkInterfaces?.length === 0) { + if (input[_NI] != null) { + const memberEntries = se_InstanceNetworkInterfaceSpecificationList(input[_NI], context); + if (input[_NI]?.length === 0) { entries.NetworkInterfaceSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65392,31 +65370,31 @@ const se_SpotFleetLaunchSpecification = (input: SpotFleetLaunchSpecification, co entries[loc] = value; }); } - if (input.Placement != null) { - const memberEntries = se_SpotPlacement(input.Placement, context); + if (input[_Pl] != null) { + const memberEntries = se_SpotPlacement(input[_Pl], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Placement.${key}`; entries[loc] = value; }); } - if (input.RamdiskId != null) { - entries["RamdiskId"] = input.RamdiskId; + if (input[_RIa] != null) { + entries[_RIa] = input[_RIa]; } - if (input.SpotPrice != null) { - entries["SpotPrice"] = input.SpotPrice; + if (input[_SPp] != null) { + entries[_SPp] = input[_SPp]; } - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.UserData != null) { - entries["UserData"] = input.UserData; + if (input[_UD] != null) { + entries[_UD] = input[_UD]; } - if (input.WeightedCapacity != null) { - entries["WeightedCapacity"] = __serializeFloat(input.WeightedCapacity); + if (input[_WC] != null) { + entries[_WC] = __serializeFloat(input[_WC]); } - if (input.TagSpecifications != null) { - const memberEntries = se_SpotFleetTagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_SpotFleetTagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecificationSet = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65424,8 +65402,8 @@ const se_SpotFleetLaunchSpecification = (input: SpotFleetLaunchSpecification, co entries[loc] = value; }); } - if (input.InstanceRequirements != null) { - const memberEntries = se_InstanceRequirements(input.InstanceRequirements, context); + if (input[_IR] != null) { + const memberEntries = se_InstanceRequirements(input[_IR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `InstanceRequirements.${key}`; entries[loc] = value; @@ -65439,8 +65417,8 @@ const se_SpotFleetLaunchSpecification = (input: SpotFleetLaunchSpecification, co */ const se_SpotFleetMonitoring = (input: SpotFleetMonitoring, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -65450,37 +65428,37 @@ const se_SpotFleetMonitoring = (input: SpotFleetMonitoring, context: __SerdeCont */ const se_SpotFleetRequestConfigData = (input: SpotFleetRequestConfigData, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationStrategy != null) { - entries["AllocationStrategy"] = input.AllocationStrategy; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.OnDemandAllocationStrategy != null) { - entries["OnDemandAllocationStrategy"] = input.OnDemandAllocationStrategy; + if (input[_ODAS] != null) { + entries[_ODAS] = input[_ODAS]; } - if (input.SpotMaintenanceStrategies != null) { - const memberEntries = se_SpotMaintenanceStrategies(input.SpotMaintenanceStrategies, context); + if (input[_SMS] != null) { + const memberEntries = se_SpotMaintenanceStrategies(input[_SMS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SpotMaintenanceStrategies.${key}`; entries[loc] = value; }); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.ExcessCapacityTerminationPolicy != null) { - entries["ExcessCapacityTerminationPolicy"] = input.ExcessCapacityTerminationPolicy; + if (input[_ECTP] != null) { + entries[_ECTP] = input[_ECTP]; } - if (input.FulfilledCapacity != null) { - entries["FulfilledCapacity"] = __serializeFloat(input.FulfilledCapacity); + if (input[_FC] != null) { + entries[_FC] = __serializeFloat(input[_FC]); } - if (input.OnDemandFulfilledCapacity != null) { - entries["OnDemandFulfilledCapacity"] = __serializeFloat(input.OnDemandFulfilledCapacity); + if (input[_ODFC] != null) { + entries[_ODFC] = __serializeFloat(input[_ODFC]); } - if (input.IamFleetRole != null) { - entries["IamFleetRole"] = input.IamFleetRole; + if (input[_IFR] != null) { + entries[_IFR] = input[_IFR]; } - if (input.LaunchSpecifications != null) { - const memberEntries = se_LaunchSpecsList(input.LaunchSpecifications, context); - if (input.LaunchSpecifications?.length === 0) { + if (input[_LSau] != null) { + const memberEntries = se_LaunchSpecsList(input[_LSau], context); + if (input[_LSau]?.length === 0) { entries.LaunchSpecifications = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65488,9 +65466,9 @@ const se_SpotFleetRequestConfigData = (input: SpotFleetRequestConfigData, contex entries[loc] = value; }); } - if (input.LaunchTemplateConfigs != null) { - const memberEntries = se_LaunchTemplateConfigList(input.LaunchTemplateConfigs, context); - if (input.LaunchTemplateConfigs?.length === 0) { + if (input[_LTC] != null) { + const memberEntries = se_LaunchTemplateConfigList(input[_LTC], context); + if (input[_LTC]?.length === 0) { entries.LaunchTemplateConfigs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65498,58 +65476,58 @@ const se_SpotFleetRequestConfigData = (input: SpotFleetRequestConfigData, contex entries[loc] = value; }); } - if (input.SpotPrice != null) { - entries["SpotPrice"] = input.SpotPrice; + if (input[_SPp] != null) { + entries[_SPp] = input[_SPp]; } - if (input.TargetCapacity != null) { - entries["TargetCapacity"] = input.TargetCapacity; + if (input[_TCa] != null) { + entries[_TCa] = input[_TCa]; } - if (input.OnDemandTargetCapacity != null) { - entries["OnDemandTargetCapacity"] = input.OnDemandTargetCapacity; + if (input[_ODTC] != null) { + entries[_ODTC] = input[_ODTC]; } - if (input.OnDemandMaxTotalPrice != null) { - entries["OnDemandMaxTotalPrice"] = input.OnDemandMaxTotalPrice; + if (input[_ODMTP] != null) { + entries[_ODMTP] = input[_ODMTP]; } - if (input.SpotMaxTotalPrice != null) { - entries["SpotMaxTotalPrice"] = input.SpotMaxTotalPrice; + if (input[_SMTP] != null) { + entries[_SMTP] = input[_SMTP]; } - if (input.TerminateInstancesWithExpiration != null) { - entries["TerminateInstancesWithExpiration"] = input.TerminateInstancesWithExpiration; + if (input[_TIWE] != null) { + entries[_TIWE] = input[_TIWE]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.ValidFrom != null) { - entries["ValidFrom"] = input.ValidFrom.toISOString().split(".")[0] + "Z"; + if (input[_VF] != null) { + entries[_VF] = input[_VF].toISOString().split(".")[0] + "Z"; } - if (input.ValidUntil != null) { - entries["ValidUntil"] = input.ValidUntil.toISOString().split(".")[0] + "Z"; + if (input[_VU] != null) { + entries[_VU] = input[_VU].toISOString().split(".")[0] + "Z"; } - if (input.ReplaceUnhealthyInstances != null) { - entries["ReplaceUnhealthyInstances"] = input.ReplaceUnhealthyInstances; + if (input[_RUI] != null) { + entries[_RUI] = input[_RUI]; } - if (input.InstanceInterruptionBehavior != null) { - entries["InstanceInterruptionBehavior"] = input.InstanceInterruptionBehavior; + if (input[_IIB] != null) { + entries[_IIB] = input[_IIB]; } - if (input.LoadBalancersConfig != null) { - const memberEntries = se_LoadBalancersConfig(input.LoadBalancersConfig, context); + if (input[_LBC] != null) { + const memberEntries = se_LoadBalancersConfig(input[_LBC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LoadBalancersConfig.${key}`; entries[loc] = value; }); } - if (input.InstancePoolsToUseCount != null) { - entries["InstancePoolsToUseCount"] = input.InstancePoolsToUseCount; + if (input[_IPTUC] != null) { + entries[_IPTUC] = input[_IPTUC]; } - if (input.Context != null) { - entries["Context"] = input.Context; + if (input[_Con] != null) { + entries[_Con] = input[_Con]; } - if (input.TargetCapacityUnitType != null) { - entries["TargetCapacityUnitType"] = input.TargetCapacityUnitType; + if (input[_TCUT] != null) { + entries[_TCUT] = input[_TCUT]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65581,12 +65559,12 @@ const se_SpotFleetRequestIdList = (input: string[], context: __SerdeContext): an */ const se_SpotFleetTagSpecification = (input: SpotFleetTagSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65637,8 +65615,8 @@ const se_SpotInstanceRequestIdList = (input: string[], context: __SerdeContext): */ const se_SpotMaintenanceStrategies = (input: SpotMaintenanceStrategies, context: __SerdeContext): any => { const entries: any = {}; - if (input.CapacityRebalance != null) { - const memberEntries = se_SpotCapacityRebalance(input.CapacityRebalance, context); + if (input[_CRap] != null) { + const memberEntries = se_SpotCapacityRebalance(input[_CRap], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CapacityRebalance.${key}`; entries[loc] = value; @@ -65652,20 +65630,20 @@ const se_SpotMaintenanceStrategies = (input: SpotMaintenanceStrategies, context: */ const se_SpotMarketOptions = (input: SpotMarketOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.MaxPrice != null) { - entries["MaxPrice"] = input.MaxPrice; + if (input[_MPa] != null) { + entries[_MPa] = input[_MPa]; } - if (input.SpotInstanceType != null) { - entries["SpotInstanceType"] = input.SpotInstanceType; + if (input[_SIT] != null) { + entries[_SIT] = input[_SIT]; } - if (input.BlockDurationMinutes != null) { - entries["BlockDurationMinutes"] = input.BlockDurationMinutes; + if (input[_BDMl] != null) { + entries[_BDMl] = input[_BDMl]; } - if (input.ValidUntil != null) { - entries["ValidUntil"] = input.ValidUntil.toISOString().split(".")[0] + "Z"; + if (input[_VU] != null) { + entries[_VU] = input[_VU].toISOString().split(".")[0] + "Z"; } - if (input.InstanceInterruptionBehavior != null) { - entries["InstanceInterruptionBehavior"] = input.InstanceInterruptionBehavior; + if (input[_IIB] != null) { + entries[_IIB] = input[_IIB]; } return entries; }; @@ -65675,33 +65653,33 @@ const se_SpotMarketOptions = (input: SpotMarketOptions, context: __SerdeContext) */ const se_SpotOptionsRequest = (input: SpotOptionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AllocationStrategy != null) { - entries["AllocationStrategy"] = input.AllocationStrategy; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.MaintenanceStrategies != null) { - const memberEntries = se_FleetSpotMaintenanceStrategiesRequest(input.MaintenanceStrategies, context); + if (input[_MS] != null) { + const memberEntries = se_FleetSpotMaintenanceStrategiesRequest(input[_MS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MaintenanceStrategies.${key}`; entries[loc] = value; }); } - if (input.InstanceInterruptionBehavior != null) { - entries["InstanceInterruptionBehavior"] = input.InstanceInterruptionBehavior; + if (input[_IIB] != null) { + entries[_IIB] = input[_IIB]; } - if (input.InstancePoolsToUseCount != null) { - entries["InstancePoolsToUseCount"] = input.InstancePoolsToUseCount; + if (input[_IPTUC] != null) { + entries[_IPTUC] = input[_IPTUC]; } - if (input.SingleInstanceType != null) { - entries["SingleInstanceType"] = input.SingleInstanceType; + if (input[_SITi] != null) { + entries[_SITi] = input[_SITi]; } - if (input.SingleAvailabilityZone != null) { - entries["SingleAvailabilityZone"] = input.SingleAvailabilityZone; + if (input[_SAZ] != null) { + entries[_SAZ] = input[_SAZ]; } - if (input.MinTargetCapacity != null) { - entries["MinTargetCapacity"] = input.MinTargetCapacity; + if (input[_MTC] != null) { + entries[_MTC] = input[_MTC]; } - if (input.MaxTotalPrice != null) { - entries["MaxTotalPrice"] = input.MaxTotalPrice; + if (input[_MTP] != null) { + entries[_MTP] = input[_MTP]; } return entries; }; @@ -65711,14 +65689,14 @@ const se_SpotOptionsRequest = (input: SpotOptionsRequest, context: __SerdeContex */ const se_SpotPlacement = (input: SpotPlacement, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.Tenancy != null) { - entries["Tenancy"] = input.Tenancy; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } return entries; }; @@ -65728,9 +65706,9 @@ const se_SpotPlacement = (input: SpotPlacement, context: __SerdeContext): any => */ const se_StartInstancesRequest = (input: StartInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65738,11 +65716,11 @@ const se_StartInstancesRequest = (input: StartInstancesRequest, context: __Serde entries[loc] = value; }); } - if (input.AdditionalInfo != null) { - entries["AdditionalInfo"] = input.AdditionalInfo; + if (input[_AId] != null) { + entries[_AId] = input[_AId]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -65755,15 +65733,15 @@ const se_StartNetworkInsightsAccessScopeAnalysisRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsAccessScopeId != null) { - entries["NetworkInsightsAccessScopeId"] = input.NetworkInsightsAccessScopeId; + if (input[_NIASI] != null) { + entries[_NIASI] = input[_NIASI]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65771,11 +65749,11 @@ const se_StartNetworkInsightsAccessScopeAnalysisRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -65788,12 +65766,12 @@ const se_StartNetworkInsightsAnalysisRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInsightsPathId != null) { - entries["NetworkInsightsPathId"] = input.NetworkInsightsPathId; + if (input[_NIPI] != null) { + entries[_NIPI] = input[_NIPI]; } - if (input.AdditionalAccounts != null) { - const memberEntries = se_ValueStringList(input.AdditionalAccounts, context); - if (input.AdditionalAccounts?.length === 0) { + if (input[_AAd] != null) { + const memberEntries = se_ValueStringList(input[_AAd], context); + if (input[_AAd]?.length === 0) { entries.AdditionalAccount = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65801,9 +65779,9 @@ const se_StartNetworkInsightsAnalysisRequest = ( entries[loc] = value; }); } - if (input.FilterInArns != null) { - const memberEntries = se_ArnList(input.FilterInArns, context); - if (input.FilterInArns?.length === 0) { + if (input[_FIA] != null) { + const memberEntries = se_ArnList(input[_FIA], context); + if (input[_FIA]?.length === 0) { entries.FilterInArn = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65811,12 +65789,12 @@ const se_StartNetworkInsightsAnalysisRequest = ( entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.TagSpecifications != null) { - const memberEntries = se_TagSpecificationList(input.TagSpecifications, context); - if (input.TagSpecifications?.length === 0) { + if (input[_TS] != null) { + const memberEntries = se_TagSpecificationList(input[_TS], context); + if (input[_TS]?.length === 0) { entries.TagSpecification = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65824,11 +65802,11 @@ const se_StartNetworkInsightsAnalysisRequest = ( entries[loc] = value; }); } - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + if (input[_CTl] === undefined) { + input[_CTl] = generateIdempotencyToken(); } - if (input.ClientToken != null) { - entries["ClientToken"] = input.ClientToken; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } return entries; }; @@ -65841,11 +65819,11 @@ const se_StartVpcEndpointServicePrivateDnsVerificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.ServiceId != null) { - entries["ServiceId"] = input.ServiceId; + if (input[_SIe] != null) { + entries[_SIe] = input[_SIe]; } return entries; }; @@ -65855,9 +65833,9 @@ const se_StartVpcEndpointServicePrivateDnsVerificationRequest = ( */ const se_StopInstancesRequest = (input: StopInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -65865,14 +65843,14 @@ const se_StopInstancesRequest = (input: StopInstancesRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.Hibernate != null) { - entries["Hibernate"] = input.Hibernate; + if (input[_Hi] != null) { + entries[_Hi] = input[_Hi]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } return entries; }; @@ -65882,8 +65860,8 @@ const se_StopInstancesRequest = (input: StopInstancesRequest, context: __SerdeCo */ const se_Storage = (input: Storage, context: __SerdeContext): any => { const entries: any = {}; - if (input.S3 != null) { - const memberEntries = se_S3Storage(input.S3, context); + if (input[_S_] != null) { + const memberEntries = se_S3Storage(input[_S_], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `S3.${key}`; entries[loc] = value; @@ -65897,11 +65875,11 @@ const se_Storage = (input: Storage, context: __SerdeContext): any => { */ const se_StorageLocation = (input: StorageLocation, context: __SerdeContext): any => { const entries: any = {}; - if (input.Bucket != null) { - entries["Bucket"] = input.Bucket; + if (input[_B] != null) { + entries[_B] = input[_B]; } - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_Ke] != null) { + entries[_Ke] = input[_Ke]; } return entries; }; @@ -65911,14 +65889,14 @@ const se_StorageLocation = (input: StorageLocation, context: __SerdeContext): an */ const se_SubnetConfiguration = (input: SubnetConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SIub] != null) { + entries[_SIub] = input[_SIub]; } - if (input.Ipv4 != null) { - entries["Ipv4"] = input.Ipv4; + if (input[_Ip] != null) { + entries[_Ip] = input[_Ip]; } - if (input.Ipv6 != null) { - entries["Ipv6"] = input.Ipv6; + if (input[_Ipv] != null) { + entries[_Ipv] = input[_Ipv]; } return entries; }; @@ -65963,11 +65941,11 @@ const se_SubnetIdStringList = (input: string[], context: __SerdeContext): any => */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_Ke] != null) { + entries[_Ke] = input[_Ke]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -65996,12 +65974,12 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { */ const se_TagSpecification = (input: TagSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tag = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66039,20 +66017,20 @@ const se_TargetCapacitySpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TotalTargetCapacity != null) { - entries["TotalTargetCapacity"] = input.TotalTargetCapacity; + if (input[_TTC] != null) { + entries[_TTC] = input[_TTC]; } - if (input.OnDemandTargetCapacity != null) { - entries["OnDemandTargetCapacity"] = input.OnDemandTargetCapacity; + if (input[_ODTC] != null) { + entries[_ODTC] = input[_ODTC]; } - if (input.SpotTargetCapacity != null) { - entries["SpotTargetCapacity"] = input.SpotTargetCapacity; + if (input[_STC] != null) { + entries[_STC] = input[_STC]; } - if (input.DefaultTargetCapacityType != null) { - entries["DefaultTargetCapacityType"] = input.DefaultTargetCapacityType; + if (input[_DTCT] != null) { + entries[_DTCT] = input[_DTCT]; } - if (input.TargetCapacityUnitType != null) { - entries["TargetCapacityUnitType"] = input.TargetCapacityUnitType; + if (input[_TCUT] != null) { + entries[_TCUT] = input[_TCUT]; } return entries; }; @@ -66062,11 +66040,11 @@ const se_TargetCapacitySpecificationRequest = ( */ const se_TargetConfigurationRequest = (input: TargetConfigurationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceCount != null) { - entries["InstanceCount"] = input.InstanceCount; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } - if (input.OfferingId != null) { - entries["OfferingId"] = input.OfferingId; + if (input[_OI] != null) { + entries[_OI] = input[_OI]; } return entries; }; @@ -66095,8 +66073,8 @@ const se_TargetConfigurationRequestSet = (input: TargetConfigurationRequest[], c */ const se_TargetGroup = (input: TargetGroup, context: __SerdeContext): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } return entries; }; @@ -66125,9 +66103,9 @@ const se_TargetGroups = (input: TargetGroup[], context: __SerdeContext): any => */ const se_TargetGroupsConfig = (input: TargetGroupsConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroups != null) { - const memberEntries = se_TargetGroups(input.TargetGroups, context); - if (input.TargetGroups?.length === 0) { + if (input[_TG] != null) { + const memberEntries = se_TargetGroups(input[_TG], context); + if (input[_TG]?.length === 0) { entries.TargetGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66146,17 +66124,17 @@ const se_TerminateClientVpnConnectionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClientVpnEndpointId != null) { - entries["ClientVpnEndpointId"] = input.ClientVpnEndpointId; + if (input[_CVEI] != null) { + entries[_CVEI] = input[_CVEI]; } - if (input.ConnectionId != null) { - entries["ConnectionId"] = input.ConnectionId; + if (input[_CIo] != null) { + entries[_CIo] = input[_CIo]; } - if (input.Username != null) { - entries["Username"] = input.Username; + if (input[_Us] != null) { + entries[_Us] = input[_Us]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -66166,9 +66144,9 @@ const se_TerminateClientVpnConnectionsRequest = ( */ const se_TerminateInstancesRequest = (input: TerminateInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66176,8 +66154,8 @@ const se_TerminateInstancesRequest = (input: TerminateInstancesRequest, context: entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -66187,8 +66165,8 @@ const se_TerminateInstancesRequest = (input: TerminateInstancesRequest, context: */ const se_ThroughResourcesStatementRequest = (input: ThroughResourcesStatementRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceStatement != null) { - const memberEntries = se_ResourceStatementRequest(input.ResourceStatement, context); + if (input[_RSe] != null) { + const memberEntries = se_ResourceStatementRequest(input[_RSe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResourceStatement.${key}`; entries[loc] = value; @@ -66224,11 +66202,11 @@ const se_ThroughResourcesStatementRequestList = ( */ const se_TotalLocalStorageGB = (input: TotalLocalStorageGB, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -66238,11 +66216,11 @@ const se_TotalLocalStorageGB = (input: TotalLocalStorageGB, context: __SerdeCont */ const se_TotalLocalStorageGBRequest = (input: TotalLocalStorageGBRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = __serializeFloat(input.Min); + if (input[_M] != null) { + entries[_M] = __serializeFloat(input[_M]); } - if (input.Max != null) { - entries["Max"] = __serializeFloat(input.Max); + if (input[_Ma] != null) { + entries[_Ma] = __serializeFloat(input[_Ma]); } return entries; }; @@ -66300,11 +66278,11 @@ const se_TrafficMirrorNetworkServiceList = (input: TrafficMirrorNetworkService[] */ const se_TrafficMirrorPortRangeRequest = (input: TrafficMirrorPortRangeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.FromPort != null) { - entries["FromPort"] = input.FromPort; + if (input[_FP] != null) { + entries[_FP] = input[_FP]; } - if (input.ToPort != null) { - entries["ToPort"] = input.ToPort; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } return entries; }; @@ -66413,8 +66391,8 @@ const se_TransitGatewayConnectRequestBgpOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PeerAsn != null) { - entries["PeerAsn"] = input.PeerAsn; + if (input[_PAee] != null) { + entries[_PAee] = input[_PAee]; } return entries; }; @@ -66488,33 +66466,33 @@ const se_TransitGatewayPolicyTableIdStringList = (input: string[], context: __Se */ const se_TransitGatewayRequestOptions = (input: TransitGatewayRequestOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.AmazonSideAsn != null) { - entries["AmazonSideAsn"] = input.AmazonSideAsn; + if (input[_ASA] != null) { + entries[_ASA] = input[_ASA]; } - if (input.AutoAcceptSharedAttachments != null) { - entries["AutoAcceptSharedAttachments"] = input.AutoAcceptSharedAttachments; + if (input[_AASAu] != null) { + entries[_AASAu] = input[_AASAu]; } - if (input.DefaultRouteTableAssociation != null) { - entries["DefaultRouteTableAssociation"] = input.DefaultRouteTableAssociation; + if (input[_DRTA] != null) { + entries[_DRTA] = input[_DRTA]; } - if (input.DefaultRouteTablePropagation != null) { - entries["DefaultRouteTablePropagation"] = input.DefaultRouteTablePropagation; + if (input[_DRTP] != null) { + entries[_DRTP] = input[_DRTP]; } - if (input.VpnEcmpSupport != null) { - entries["VpnEcmpSupport"] = input.VpnEcmpSupport; + if (input[_VES] != null) { + entries[_VES] = input[_VES]; } - if (input.DnsSupport != null) { - entries["DnsSupport"] = input.DnsSupport; + if (input[_DSns] != null) { + entries[_DSns] = input[_DSns]; } - if (input.SecurityGroupReferencingSupport != null) { - entries["SecurityGroupReferencingSupport"] = input.SecurityGroupReferencingSupport; + if (input[_SGRS] != null) { + entries[_SGRS] = input[_SGRS]; } - if (input.MulticastSupport != null) { - entries["MulticastSupport"] = input.MulticastSupport; + if (input[_MSu] != null) { + entries[_MSu] = input[_MSu]; } - if (input.TransitGatewayCidrBlocks != null) { - const memberEntries = se_TransitGatewayCidrBlockStringList(input.TransitGatewayCidrBlocks, context); - if (input.TransitGatewayCidrBlocks?.length === 0) { + if (input[_TGCB] != null) { + const memberEntries = se_TransitGatewayCidrBlockStringList(input[_TGCB], context); + if (input[_TGCB]?.length === 0) { entries.TransitGatewayCidrBlocks = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66594,9 +66572,9 @@ const se_TrunkInterfaceAssociationIdList = (input: string[], context: __SerdeCon */ const se_UnassignIpv6AddressesRequest = (input: UnassignIpv6AddressesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Ipv6Addresses != null) { - const memberEntries = se_Ipv6AddressList(input.Ipv6Addresses, context); - if (input.Ipv6Addresses?.length === 0) { + if (input[_IA] != null) { + const memberEntries = se_Ipv6AddressList(input[_IA], context); + if (input[_IA]?.length === 0) { entries.Ipv6Addresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66604,9 +66582,9 @@ const se_UnassignIpv6AddressesRequest = (input: UnassignIpv6AddressesRequest, co entries[loc] = value; }); } - if (input.Ipv6Prefixes != null) { - const memberEntries = se_IpPrefixList(input.Ipv6Prefixes, context); - if (input.Ipv6Prefixes?.length === 0) { + if (input[_IP] != null) { + const memberEntries = se_IpPrefixList(input[_IP], context); + if (input[_IP]?.length === 0) { entries.Ipv6Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66614,8 +66592,8 @@ const se_UnassignIpv6AddressesRequest = (input: UnassignIpv6AddressesRequest, co entries[loc] = value; }); } - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } return entries; }; @@ -66628,12 +66606,12 @@ const se_UnassignPrivateIpAddressesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NetworkInterfaceId != null) { - entries["NetworkInterfaceId"] = input.NetworkInterfaceId; + if (input[_NII] != null) { + entries[_NII] = input[_NII]; } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_PrivateIpAddressStringList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_PrivateIpAddressStringList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66641,9 +66619,9 @@ const se_UnassignPrivateIpAddressesRequest = ( entries[loc] = value; }); } - if (input.Ipv4Prefixes != null) { - const memberEntries = se_IpPrefixList(input.Ipv4Prefixes, context); - if (input.Ipv4Prefixes?.length === 0) { + if (input[_IPp] != null) { + const memberEntries = se_IpPrefixList(input[_IPp], context); + if (input[_IPp]?.length === 0) { entries.Ipv4Prefix = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66662,12 +66640,12 @@ const se_UnassignPrivateNatGatewayAddressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NatGatewayId != null) { - entries["NatGatewayId"] = input.NatGatewayId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.PrivateIpAddresses != null) { - const memberEntries = se_IpList(input.PrivateIpAddresses, context); - if (input.PrivateIpAddresses?.length === 0) { + if (input[_PIA] != null) { + const memberEntries = se_IpList(input[_PIA], context); + if (input[_PIA]?.length === 0) { entries.PrivateIpAddress = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66675,11 +66653,11 @@ const se_UnassignPrivateNatGatewayAddressRequest = ( entries[loc] = value; }); } - if (input.MaxDrainDurationSeconds != null) { - entries["MaxDrainDurationSeconds"] = input.MaxDrainDurationSeconds; + if (input[_MDDS] != null) { + entries[_MDDS] = input[_MDDS]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -66689,11 +66667,11 @@ const se_UnassignPrivateNatGatewayAddressRequest = ( */ const se_UnlockSnapshotRequest = (input: UnlockSnapshotRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotId != null) { - entries["SnapshotId"] = input.SnapshotId; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -66703,9 +66681,9 @@ const se_UnlockSnapshotRequest = (input: UnlockSnapshotRequest, context: __Serde */ const se_UnmonitorInstancesRequest = (input: UnmonitorInstancesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceIds != null) { - const memberEntries = se_InstanceIdStringList(input.InstanceIds, context); - if (input.InstanceIds?.length === 0) { + if (input[_IIns] != null) { + const memberEntries = se_InstanceIdStringList(input[_IIns], context); + if (input[_IIns]?.length === 0) { entries.InstanceId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66713,8 +66691,8 @@ const se_UnmonitorInstancesRequest = (input: UnmonitorInstancesRequest, context: entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -66727,18 +66705,18 @@ const se_UpdateSecurityGroupRuleDescriptionsEgressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.IpPermissions != null) { - const memberEntries = se_IpPermissionList(input.IpPermissions, context); - if (input.IpPermissions?.length === 0) { + if (input[_IPpe] != null) { + const memberEntries = se_IpPermissionList(input[_IPpe], context); + if (input[_IPpe]?.length === 0) { entries.IpPermissions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66746,9 +66724,9 @@ const se_UpdateSecurityGroupRuleDescriptionsEgressRequest = ( entries[loc] = value; }); } - if (input.SecurityGroupRuleDescriptions != null) { - const memberEntries = se_SecurityGroupRuleDescriptionList(input.SecurityGroupRuleDescriptions, context); - if (input.SecurityGroupRuleDescriptions?.length === 0) { + if (input[_SGRD] != null) { + const memberEntries = se_SecurityGroupRuleDescriptionList(input[_SGRD], context); + if (input[_SGRD]?.length === 0) { entries.SecurityGroupRuleDescription = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66767,18 +66745,18 @@ const se_UpdateSecurityGroupRuleDescriptionsIngressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.IpPermissions != null) { - const memberEntries = se_IpPermissionList(input.IpPermissions, context); - if (input.IpPermissions?.length === 0) { + if (input[_IPpe] != null) { + const memberEntries = se_IpPermissionList(input[_IPpe], context); + if (input[_IPpe]?.length === 0) { entries.IpPermissions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66786,9 +66764,9 @@ const se_UpdateSecurityGroupRuleDescriptionsIngressRequest = ( entries[loc] = value; }); } - if (input.SecurityGroupRuleDescriptions != null) { - const memberEntries = se_SecurityGroupRuleDescriptionList(input.SecurityGroupRuleDescriptions, context); - if (input.SecurityGroupRuleDescriptions?.length === 0) { + if (input[_SGRD] != null) { + const memberEntries = se_SecurityGroupRuleDescriptionList(input[_SGRD], context); + if (input[_SGRD]?.length === 0) { entries.SecurityGroupRuleDescription = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -66804,11 +66782,11 @@ const se_UpdateSecurityGroupRuleDescriptionsIngressRequest = ( */ const se_UserBucket = (input: UserBucket, context: __SerdeContext): any => { const entries: any = {}; - if (input.S3Bucket != null) { - entries["S3Bucket"] = input.S3Bucket; + if (input[_SB] != null) { + entries[_SB] = input[_SB]; } - if (input.S3Key != null) { - entries["S3Key"] = input.S3Key; + if (input[_SK] != null) { + entries[_SK] = input[_SK]; } return entries; }; @@ -66818,8 +66796,8 @@ const se_UserBucket = (input: UserBucket, context: __SerdeContext): any => { */ const se_UserData = (input: UserData, context: __SerdeContext): any => { const entries: any = {}; - if (input.Data != null) { - entries["Data"] = input.Data; + if (input[_Da] != null) { + entries[_Da] = input[_Da]; } return entries; }; @@ -66845,26 +66823,26 @@ const se_UserGroupStringList = (input: string[], context: __SerdeContext): any = */ const se_UserIdGroupPair = (input: UserIdGroupPair, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_De] != null) { + entries[_De] = input[_De]; } - if (input.GroupId != null) { - entries["GroupId"] = input.GroupId; + if (input[_GIr] != null) { + entries[_GIr] = input[_GIr]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PeeringStatus != null) { - entries["PeeringStatus"] = input.PeeringStatus; + if (input[_PSe] != null) { + entries[_PSe] = input[_PSe]; } - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.VpcPeeringConnectionId != null) { - entries["VpcPeeringConnectionId"] = input.VpcPeeringConnectionId; + if (input[_VPCI] != null) { + entries[_VPCI] = input[_VPCI]; } return entries; }; @@ -66925,11 +66903,11 @@ const se_ValueStringList = (input: string[], context: __SerdeContext): any => { */ const se_VCpuCountRange = (input: VCpuCountRange, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -66939,11 +66917,11 @@ const se_VCpuCountRange = (input: VCpuCountRange, context: __SerdeContext): any */ const se_VCpuCountRangeRequest = (input: VCpuCountRangeRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Min != null) { - entries["Min"] = input.Min; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Max != null) { - entries["Max"] = input.Max; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -67004,11 +66982,11 @@ const se_VerifiedAccessLogCloudWatchLogsDestinationOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.LogGroup != null) { - entries["LogGroup"] = input.LogGroup; + if (input[_LGo] != null) { + entries[_LGo] = input[_LGo]; } return entries; }; @@ -67021,11 +66999,11 @@ const se_VerifiedAccessLogKinesisDataFirehoseDestinationOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.DeliveryStream != null) { - entries["DeliveryStream"] = input.DeliveryStream; + if (input[_DSel] != null) { + entries[_DSel] = input[_DSel]; } return entries; }; @@ -67035,32 +67013,32 @@ const se_VerifiedAccessLogKinesisDataFirehoseDestinationOptions = ( */ const se_VerifiedAccessLogOptions = (input: VerifiedAccessLogOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.S3 != null) { - const memberEntries = se_VerifiedAccessLogS3DestinationOptions(input.S3, context); + if (input[_S_] != null) { + const memberEntries = se_VerifiedAccessLogS3DestinationOptions(input[_S_], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `S3.${key}`; entries[loc] = value; }); } - if (input.CloudWatchLogs != null) { - const memberEntries = se_VerifiedAccessLogCloudWatchLogsDestinationOptions(input.CloudWatchLogs, context); + if (input[_CWL] != null) { + const memberEntries = se_VerifiedAccessLogCloudWatchLogsDestinationOptions(input[_CWL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudWatchLogs.${key}`; entries[loc] = value; }); } - if (input.KinesisDataFirehose != null) { - const memberEntries = se_VerifiedAccessLogKinesisDataFirehoseDestinationOptions(input.KinesisDataFirehose, context); + if (input[_KDF] != null) { + const memberEntries = se_VerifiedAccessLogKinesisDataFirehoseDestinationOptions(input[_KDF], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `KinesisDataFirehose.${key}`; entries[loc] = value; }); } - if (input.LogVersion != null) { - entries["LogVersion"] = input.LogVersion; + if (input[_LV] != null) { + entries[_LV] = input[_LV]; } - if (input.IncludeTrustContext != null) { - entries["IncludeTrustContext"] = input.IncludeTrustContext; + if (input[_ITCn] != null) { + entries[_ITCn] = input[_ITCn]; } return entries; }; @@ -67073,17 +67051,17 @@ const se_VerifiedAccessLogS3DestinationOptions = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.BucketName != null) { - entries["BucketName"] = input.BucketName; + if (input[_BN] != null) { + entries[_BN] = input[_BN]; } - if (input.Prefix != null) { - entries["Prefix"] = input.Prefix; + if (input[_Pr] != null) { + entries[_Pr] = input[_Pr]; } - if (input.BucketOwner != null) { - entries["BucketOwner"] = input.BucketOwner; + if (input[_BOu] != null) { + entries[_BOu] = input[_BOu]; } return entries; }; @@ -67096,11 +67074,11 @@ const se_VerifiedAccessSseSpecificationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CustomerManagedKeyEnabled != null) { - entries["CustomerManagedKeyEnabled"] = input.CustomerManagedKeyEnabled; + if (input[_CMKE] != null) { + entries[_CMKE] = input[_CMKE]; } - if (input.KmsKeyArn != null) { - entries["KmsKeyArn"] = input.KmsKeyArn; + if (input[_KKA] != null) { + entries[_KKA] = input[_KKA]; } return entries; }; @@ -67158,8 +67136,8 @@ const se_VirtualizationTypeSet = (input: VirtualizationType[], context: __SerdeC */ const se_VolumeDetail = (input: VolumeDetail, context: __SerdeContext): any => { const entries: any = {}; - if (input.Size != null) { - entries["Size"] = input.Size; + if (input[_Siz] != null) { + entries[_Siz] = input[_Siz]; } return entries; }; @@ -67332,18 +67310,18 @@ const se_VpnConnectionOptionsSpecification = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnableAcceleration != null) { - entries["EnableAcceleration"] = input.EnableAcceleration; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } - if (input.StaticRoutesOnly != null) { - entries["StaticRoutesOnly"] = input.StaticRoutesOnly; + if (input[_SRO] != null) { + entries[_SRO] = input[_SRO]; } - if (input.TunnelInsideIpVersion != null) { - entries["TunnelInsideIpVersion"] = input.TunnelInsideIpVersion; + if (input[_TIIV] != null) { + entries[_TIIV] = input[_TIIV]; } - if (input.TunnelOptions != null) { - const memberEntries = se_VpnTunnelOptionsSpecificationsList(input.TunnelOptions, context); - if (input.TunnelOptions?.length === 0) { + if (input[_TO] != null) { + const memberEntries = se_VpnTunnelOptionsSpecificationsList(input[_TO], context); + if (input[_TO]?.length === 0) { entries.TunnelOptions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67351,23 +67329,23 @@ const se_VpnConnectionOptionsSpecification = ( entries[loc] = value; }); } - if (input.LocalIpv4NetworkCidr != null) { - entries["LocalIpv4NetworkCidr"] = input.LocalIpv4NetworkCidr; + if (input[_LINC] != null) { + entries[_LINC] = input[_LINC]; } - if (input.RemoteIpv4NetworkCidr != null) { - entries["RemoteIpv4NetworkCidr"] = input.RemoteIpv4NetworkCidr; + if (input[_RINC] != null) { + entries[_RINC] = input[_RINC]; } - if (input.LocalIpv6NetworkCidr != null) { - entries["LocalIpv6NetworkCidr"] = input.LocalIpv6NetworkCidr; + if (input[_LINCo] != null) { + entries[_LINCo] = input[_LINCo]; } - if (input.RemoteIpv6NetworkCidr != null) { - entries["RemoteIpv6NetworkCidr"] = input.RemoteIpv6NetworkCidr; + if (input[_RINCe] != null) { + entries[_RINCe] = input[_RINCe]; } - if (input.OutsideIpAddressType != null) { - entries["OutsideIpAddressType"] = input.OutsideIpAddressType; + if (input[_OIAT] != null) { + entries[_OIAT] = input[_OIAT]; } - if (input.TransportTransitGatewayAttachmentId != null) { - entries["TransportTransitGatewayAttachmentId"] = input.TransportTransitGatewayAttachmentId; + if (input[_TTGAI] != null) { + entries[_TTGAI] = input[_TTGAI]; } return entries; }; @@ -67393,8 +67371,8 @@ const se_VpnGatewayIdStringList = (input: string[], context: __SerdeContext): an */ const se_VpnTunnelLogOptionsSpecification = (input: VpnTunnelLogOptionsSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.CloudWatchLogOptions != null) { - const memberEntries = se_CloudWatchLogOptionsSpecification(input.CloudWatchLogOptions, context); + if (input[_CWLO] != null) { + const memberEntries = se_CloudWatchLogOptionsSpecification(input[_CWLO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudWatchLogOptions.${key}`; entries[loc] = value; @@ -67408,39 +67386,39 @@ const se_VpnTunnelLogOptionsSpecification = (input: VpnTunnelLogOptionsSpecifica */ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.TunnelInsideCidr != null) { - entries["TunnelInsideCidr"] = input.TunnelInsideCidr; + if (input[_TIC] != null) { + entries[_TIC] = input[_TIC]; } - if (input.TunnelInsideIpv6Cidr != null) { - entries["TunnelInsideIpv6Cidr"] = input.TunnelInsideIpv6Cidr; + if (input[_TIIC] != null) { + entries[_TIIC] = input[_TIIC]; } - if (input.PreSharedKey != null) { - entries["PreSharedKey"] = input.PreSharedKey; + if (input[_PSK] != null) { + entries[_PSK] = input[_PSK]; } - if (input.Phase1LifetimeSeconds != null) { - entries["Phase1LifetimeSeconds"] = input.Phase1LifetimeSeconds; + if (input[_PLS] != null) { + entries[_PLS] = input[_PLS]; } - if (input.Phase2LifetimeSeconds != null) { - entries["Phase2LifetimeSeconds"] = input.Phase2LifetimeSeconds; + if (input[_PLSh] != null) { + entries[_PLSh] = input[_PLSh]; } - if (input.RekeyMarginTimeSeconds != null) { - entries["RekeyMarginTimeSeconds"] = input.RekeyMarginTimeSeconds; + if (input[_RMTS] != null) { + entries[_RMTS] = input[_RMTS]; } - if (input.RekeyFuzzPercentage != null) { - entries["RekeyFuzzPercentage"] = input.RekeyFuzzPercentage; + if (input[_RFP] != null) { + entries[_RFP] = input[_RFP]; } - if (input.ReplayWindowSize != null) { - entries["ReplayWindowSize"] = input.ReplayWindowSize; + if (input[_RWS] != null) { + entries[_RWS] = input[_RWS]; } - if (input.DPDTimeoutSeconds != null) { - entries["DPDTimeoutSeconds"] = input.DPDTimeoutSeconds; + if (input[_DPDTS] != null) { + entries[_DPDTS] = input[_DPDTS]; } - if (input.DPDTimeoutAction != null) { - entries["DPDTimeoutAction"] = input.DPDTimeoutAction; + if (input[_DPDTA] != null) { + entries[_DPDTA] = input[_DPDTA]; } - if (input.Phase1EncryptionAlgorithms != null) { - const memberEntries = se_Phase1EncryptionAlgorithmsRequestList(input.Phase1EncryptionAlgorithms, context); - if (input.Phase1EncryptionAlgorithms?.length === 0) { + if (input[_PEA] != null) { + const memberEntries = se_Phase1EncryptionAlgorithmsRequestList(input[_PEA], context); + if (input[_PEA]?.length === 0) { entries.Phase1EncryptionAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67448,9 +67426,9 @@ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, entries[loc] = value; }); } - if (input.Phase2EncryptionAlgorithms != null) { - const memberEntries = se_Phase2EncryptionAlgorithmsRequestList(input.Phase2EncryptionAlgorithms, context); - if (input.Phase2EncryptionAlgorithms?.length === 0) { + if (input[_PEAh] != null) { + const memberEntries = se_Phase2EncryptionAlgorithmsRequestList(input[_PEAh], context); + if (input[_PEAh]?.length === 0) { entries.Phase2EncryptionAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67458,9 +67436,9 @@ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, entries[loc] = value; }); } - if (input.Phase1IntegrityAlgorithms != null) { - const memberEntries = se_Phase1IntegrityAlgorithmsRequestList(input.Phase1IntegrityAlgorithms, context); - if (input.Phase1IntegrityAlgorithms?.length === 0) { + if (input[_PIAh] != null) { + const memberEntries = se_Phase1IntegrityAlgorithmsRequestList(input[_PIAh], context); + if (input[_PIAh]?.length === 0) { entries.Phase1IntegrityAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67468,9 +67446,9 @@ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, entries[loc] = value; }); } - if (input.Phase2IntegrityAlgorithms != null) { - const memberEntries = se_Phase2IntegrityAlgorithmsRequestList(input.Phase2IntegrityAlgorithms, context); - if (input.Phase2IntegrityAlgorithms?.length === 0) { + if (input[_PIAha] != null) { + const memberEntries = se_Phase2IntegrityAlgorithmsRequestList(input[_PIAha], context); + if (input[_PIAha]?.length === 0) { entries.Phase2IntegrityAlgorithm = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67478,9 +67456,9 @@ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, entries[loc] = value; }); } - if (input.Phase1DHGroupNumbers != null) { - const memberEntries = se_Phase1DHGroupNumbersRequestList(input.Phase1DHGroupNumbers, context); - if (input.Phase1DHGroupNumbers?.length === 0) { + if (input[_PDHGN] != null) { + const memberEntries = se_Phase1DHGroupNumbersRequestList(input[_PDHGN], context); + if (input[_PDHGN]?.length === 0) { entries.Phase1DHGroupNumber = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67488,9 +67466,9 @@ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, entries[loc] = value; }); } - if (input.Phase2DHGroupNumbers != null) { - const memberEntries = se_Phase2DHGroupNumbersRequestList(input.Phase2DHGroupNumbers, context); - if (input.Phase2DHGroupNumbers?.length === 0) { + if (input[_PDHGNh] != null) { + const memberEntries = se_Phase2DHGroupNumbersRequestList(input[_PDHGNh], context); + if (input[_PDHGNh]?.length === 0) { entries.Phase2DHGroupNumber = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67498,9 +67476,9 @@ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, entries[loc] = value; }); } - if (input.IKEVersions != null) { - const memberEntries = se_IKEVersionsRequestList(input.IKEVersions, context); - if (input.IKEVersions?.length === 0) { + if (input[_IKEVe] != null) { + const memberEntries = se_IKEVersionsRequestList(input[_IKEVe], context); + if (input[_IKEVe]?.length === 0) { entries.IKEVersion = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -67508,18 +67486,18 @@ const se_VpnTunnelOptionsSpecification = (input: VpnTunnelOptionsSpecification, entries[loc] = value; }); } - if (input.StartupAction != null) { - entries["StartupAction"] = input.StartupAction; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.LogOptions != null) { - const memberEntries = se_VpnTunnelLogOptionsSpecification(input.LogOptions, context); + if (input[_LO] != null) { + const memberEntries = se_VpnTunnelLogOptionsSpecification(input[_LO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LogOptions.${key}`; entries[loc] = value; }); } - if (input.EnableTunnelLifecycleControl != null) { - entries["EnableTunnelLifecycleControl"] = input.EnableTunnelLifecycleControl; + if (input[_ETLC] != null) { + entries[_ETLC] = input[_ETLC]; } return entries; }; @@ -67551,11 +67529,11 @@ const se_VpnTunnelOptionsSpecificationsList = ( */ const se_WithdrawByoipCidrRequest = (input: WithdrawByoipCidrRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } return entries; }; @@ -67597,11 +67575,11 @@ const se_ZoneNameStringList = (input: string[], context: __SerdeContext): any => */ const de_AcceleratorCount = (output: any, context: __SerdeContext): AcceleratorCount => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseInt32(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseInt32(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseInt32(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseInt32(output[_ma]) as number; } return contents; }; @@ -67633,11 +67611,11 @@ const de_AcceleratorNameSet = (output: any, context: __SerdeContext): Accelerato */ const de_AcceleratorTotalMemoryMiB = (output: any, context: __SerdeContext): AcceleratorTotalMemoryMiB => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseInt32(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseInt32(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseInt32(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseInt32(output[_ma]) as number; } return contents; }; @@ -67658,8 +67636,8 @@ const de_AcceleratorTypeSet = (output: any, context: __SerdeContext): Accelerato */ const de_AcceptAddressTransferResult = (output: any, context: __SerdeContext): AcceptAddressTransferResult => { const contents: any = {}; - if (output["addressTransfer"] !== undefined) { - contents.AddressTransfer = de_AddressTransfer(output["addressTransfer"], context); + if (output[_aT] != null) { + contents[_ATdd] = de_AddressTransfer(output[_aT], context); } return contents; }; @@ -67672,8 +67650,8 @@ const de_AcceptReservedInstancesExchangeQuoteResult = ( context: __SerdeContext ): AcceptReservedInstancesExchangeQuoteResult => { const contents: any = {}; - if (output["exchangeId"] !== undefined) { - contents.ExchangeId = __expectString(output["exchangeId"]); + if (output[_eI] != null) { + contents[_EIxc] = __expectString(output[_eI]); } return contents; }; @@ -67686,8 +67664,8 @@ const de_AcceptTransitGatewayMulticastDomainAssociationsResult = ( context: __SerdeContext ): AcceptTransitGatewayMulticastDomainAssociationsResult => { const contents: any = {}; - if (output["associations"] !== undefined) { - contents.Associations = de_TransitGatewayMulticastDomainAssociations(output["associations"], context); + if (output[_a] != null) { + contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a], context); } return contents; }; @@ -67700,11 +67678,8 @@ const de_AcceptTransitGatewayPeeringAttachmentResult = ( context: __SerdeContext ): AcceptTransitGatewayPeeringAttachmentResult => { const contents: any = {}; - if (output["transitGatewayPeeringAttachment"] !== undefined) { - contents.TransitGatewayPeeringAttachment = de_TransitGatewayPeeringAttachment( - output["transitGatewayPeeringAttachment"], - context - ); + if (output[_tGPA] != null) { + contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context); } return contents; }; @@ -67717,11 +67692,8 @@ const de_AcceptTransitGatewayVpcAttachmentResult = ( context: __SerdeContext ): AcceptTransitGatewayVpcAttachmentResult => { const contents: any = {}; - if (output["transitGatewayVpcAttachment"] !== undefined) { - contents.TransitGatewayVpcAttachment = de_TransitGatewayVpcAttachment( - output["transitGatewayVpcAttachment"], - context - ); + if (output[_tGVA] != null) { + contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context); } return contents; }; @@ -67735,9 +67707,9 @@ const de_AcceptVpcEndpointConnectionsResult = ( ): AcceptVpcEndpointConnectionsResult => { const contents: any = {}; if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -67750,8 +67722,8 @@ const de_AcceptVpcPeeringConnectionResult = ( context: __SerdeContext ): AcceptVpcPeeringConnectionResult => { const contents: any = {}; - if (output["vpcPeeringConnection"] !== undefined) { - contents.VpcPeeringConnection = de_VpcPeeringConnection(output["vpcPeeringConnection"], context); + if (output[_vPC] != null) { + contents[_VPC] = de_VpcPeeringConnection(output[_vPC], context); } return contents; }; @@ -67761,22 +67733,19 @@ const de_AcceptVpcPeeringConnectionResult = ( */ const de_AccessScopeAnalysisFinding = (output: any, context: __SerdeContext): AccessScopeAnalysisFinding => { const contents: any = {}; - if (output["networkInsightsAccessScopeAnalysisId"] !== undefined) { - contents.NetworkInsightsAccessScopeAnalysisId = __expectString(output["networkInsightsAccessScopeAnalysisId"]); + if (output[_nIASAI] != null) { + contents[_NIASAI] = __expectString(output[_nIASAI]); } - if (output["networkInsightsAccessScopeId"] !== undefined) { - contents.NetworkInsightsAccessScopeId = __expectString(output["networkInsightsAccessScopeId"]); + if (output[_nIASI] != null) { + contents[_NIASI] = __expectString(output[_nIASI]); } - if (output["findingId"] !== undefined) { - contents.FindingId = __expectString(output["findingId"]); + if (output[_fI] != null) { + contents[_FIi] = __expectString(output[_fI]); } if (output.findingComponentSet === "") { - contents.FindingComponents = []; - } else if (output["findingComponentSet"] !== undefined && output["findingComponentSet"]["item"] !== undefined) { - contents.FindingComponents = de_PathComponentList( - __getArrayIfSingleItem(output["findingComponentSet"]["item"]), - context - ); + contents[_FCi] = []; + } else if (output[_fCS] != null && output[_fCS][_i] != null) { + contents[_FCi] = de_PathComponentList(__getArrayIfSingleItem(output[_fCS][_i]), context); } return contents; }; @@ -67797,19 +67766,16 @@ const de_AccessScopeAnalysisFindingList = (output: any, context: __SerdeContext) */ const de_AccessScopePath = (output: any, context: __SerdeContext): AccessScopePath => { const contents: any = {}; - if (output["source"] !== undefined) { - contents.Source = de_PathStatement(output["source"], context); + if (output[_s] != null) { + contents[_S] = de_PathStatement(output[_s], context); } - if (output["destination"] !== undefined) { - contents.Destination = de_PathStatement(output["destination"], context); + if (output[_d] != null) { + contents[_D] = de_PathStatement(output[_d], context); } if (output.throughResourceSet === "") { - contents.ThroughResources = []; - } else if (output["throughResourceSet"] !== undefined && output["throughResourceSet"]["item"] !== undefined) { - contents.ThroughResources = de_ThroughResourcesStatementList( - __getArrayIfSingleItem(output["throughResourceSet"]["item"]), - context - ); + contents[_TR] = []; + } else if (output[_tRS] != null && output[_tRS][_i] != null) { + contents[_TR] = de_ThroughResourcesStatementList(__getArrayIfSingleItem(output[_tRS][_i]), context); } return contents; }; @@ -67830,16 +67796,13 @@ const de_AccessScopePathList = (output: any, context: __SerdeContext): AccessSco */ const de_AccountAttribute = (output: any, context: __SerdeContext): AccountAttribute => { const contents: any = {}; - if (output["attributeName"] !== undefined) { - contents.AttributeName = __expectString(output["attributeName"]); + if (output[_aN] != null) { + contents[_ANt] = __expectString(output[_aN]); } if (output.attributeValueSet === "") { - contents.AttributeValues = []; - } else if (output["attributeValueSet"] !== undefined && output["attributeValueSet"]["item"] !== undefined) { - contents.AttributeValues = de_AccountAttributeValueList( - __getArrayIfSingleItem(output["attributeValueSet"]["item"]), - context - ); + contents[_AVt] = []; + } else if (output[_aVS] != null && output[_aVS][_i] != null) { + contents[_AVt] = de_AccountAttributeValueList(__getArrayIfSingleItem(output[_aVS][_i]), context); } return contents; }; @@ -67860,8 +67823,8 @@ const de_AccountAttributeList = (output: any, context: __SerdeContext): AccountA */ const de_AccountAttributeValue = (output: any, context: __SerdeContext): AccountAttributeValue => { const contents: any = {}; - if (output["attributeValue"] !== undefined) { - contents.AttributeValue = __expectString(output["attributeValue"]); + if (output[_aV] != null) { + contents[_AVtt] = __expectString(output[_aV]); } return contents; }; @@ -67882,17 +67845,17 @@ const de_AccountAttributeValueList = (output: any, context: __SerdeContext): Acc */ const de_ActiveInstance = (output: any, context: __SerdeContext): ActiveInstance => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["spotInstanceRequestId"] !== undefined) { - contents.SpotInstanceRequestId = __expectString(output["spotInstanceRequestId"]); + if (output[_sIRI] != null) { + contents[_SIRIp] = __expectString(output[_sIRI]); } - if (output["instanceHealth"] !== undefined) { - contents.InstanceHealth = __expectString(output["instanceHealth"]); + if (output[_iH] != null) { + contents[_IH] = __expectString(output[_iH]); } return contents; }; @@ -67913,17 +67876,17 @@ const de_ActiveInstanceSet = (output: any, context: __SerdeContext): ActiveInsta */ const de_AddedPrincipal = (output: any, context: __SerdeContext): AddedPrincipal => { const contents: any = {}; - if (output["principalType"] !== undefined) { - contents.PrincipalType = __expectString(output["principalType"]); + if (output[_pT] != null) { + contents[_PTr] = __expectString(output[_pT]); } - if (output["principal"] !== undefined) { - contents.Principal = __expectString(output["principal"]); + if (output[_p] != null) { + contents[_Prin] = __expectString(output[_p]); } - if (output["servicePermissionId"] !== undefined) { - contents.ServicePermissionId = __expectString(output["servicePermissionId"]); + if (output[_sPI] != null) { + contents[_SPI] = __expectString(output[_sPI]); } - if (output["serviceId"] !== undefined) { - contents.ServiceId = __expectString(output["serviceId"]); + if (output[_sI] != null) { + contents[_SIe] = __expectString(output[_sI]); } return contents; }; @@ -67944,49 +67907,37 @@ const de_AddedPrincipalSet = (output: any, context: __SerdeContext): AddedPrinci */ const de_AdditionalDetail = (output: any, context: __SerdeContext): AdditionalDetail => { const contents: any = {}; - if (output["additionalDetailType"] !== undefined) { - contents.AdditionalDetailType = __expectString(output["additionalDetailType"]); + if (output[_aDT] != null) { + contents[_ADT] = __expectString(output[_aDT]); } - if (output["component"] !== undefined) { - contents.Component = de_AnalysisComponent(output["component"], context); + if (output[_c] != null) { + contents[_Com] = de_AnalysisComponent(output[_c], context); } - if (output["vpcEndpointService"] !== undefined) { - contents.VpcEndpointService = de_AnalysisComponent(output["vpcEndpointService"], context); + if (output[_vES] != null) { + contents[_VESp] = de_AnalysisComponent(output[_vES], context); } if (output.ruleOptionSet === "") { - contents.RuleOptions = []; - } else if (output["ruleOptionSet"] !== undefined && output["ruleOptionSet"]["item"] !== undefined) { - contents.RuleOptions = de_RuleOptionList(__getArrayIfSingleItem(output["ruleOptionSet"]["item"]), context); + contents[_ROu] = []; + } else if (output[_rOS] != null && output[_rOS][_i] != null) { + contents[_ROu] = de_RuleOptionList(__getArrayIfSingleItem(output[_rOS][_i]), context); } if (output.ruleGroupTypePairSet === "") { - contents.RuleGroupTypePairs = []; - } else if (output["ruleGroupTypePairSet"] !== undefined && output["ruleGroupTypePairSet"]["item"] !== undefined) { - contents.RuleGroupTypePairs = de_RuleGroupTypePairList( - __getArrayIfSingleItem(output["ruleGroupTypePairSet"]["item"]), - context - ); + contents[_RGTP] = []; + } else if (output[_rGTPS] != null && output[_rGTPS][_i] != null) { + contents[_RGTP] = de_RuleGroupTypePairList(__getArrayIfSingleItem(output[_rGTPS][_i]), context); } if (output.ruleGroupRuleOptionsPairSet === "") { - contents.RuleGroupRuleOptionsPairs = []; - } else if ( - output["ruleGroupRuleOptionsPairSet"] !== undefined && - output["ruleGroupRuleOptionsPairSet"]["item"] !== undefined - ) { - contents.RuleGroupRuleOptionsPairs = de_RuleGroupRuleOptionsPairList( - __getArrayIfSingleItem(output["ruleGroupRuleOptionsPairSet"]["item"]), - context - ); + contents[_RGROP] = []; + } else if (output[_rGROPS] != null && output[_rGROPS][_i] != null) { + contents[_RGROP] = de_RuleGroupRuleOptionsPairList(__getArrayIfSingleItem(output[_rGROPS][_i]), context); } - if (output["serviceName"] !== undefined) { - contents.ServiceName = __expectString(output["serviceName"]); + if (output[_sN] != null) { + contents[_SNe] = __expectString(output[_sN]); } if (output.loadBalancerSet === "") { - contents.LoadBalancers = []; - } else if (output["loadBalancerSet"] !== undefined && output["loadBalancerSet"]["item"] !== undefined) { - contents.LoadBalancers = de_AnalysisComponentList( - __getArrayIfSingleItem(output["loadBalancerSet"]["item"]), - context - ); + contents[_LB] = []; + } else if (output[_lBS] != null && output[_lBS][_i] != null) { + contents[_LB] = de_AnalysisComponentList(__getArrayIfSingleItem(output[_lBS][_i]), context); } return contents; }; @@ -68007,49 +67958,49 @@ const de_AdditionalDetailList = (output: any, context: __SerdeContext): Addition */ const de_Address = (output: any, context: __SerdeContext): Address => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["domain"] !== undefined) { - contents.Domain = __expectString(output["domain"]); + if (output[_do] != null) { + contents[_Do] = __expectString(output[_do]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["networkInterfaceOwnerId"] !== undefined) { - contents.NetworkInterfaceOwnerId = __expectString(output["networkInterfaceOwnerId"]); + if (output[_nIOI] != null) { + contents[_NIOI] = __expectString(output[_nIOI]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["publicIpv4Pool"] !== undefined) { - contents.PublicIpv4Pool = __expectString(output["publicIpv4Pool"]); + if (output[_pIP] != null) { + contents[_PIP] = __expectString(output[_pIP]); } - if (output["networkBorderGroup"] !== undefined) { - contents.NetworkBorderGroup = __expectString(output["networkBorderGroup"]); + if (output[_nBG] != null) { + contents[_NBG] = __expectString(output[_nBG]); } - if (output["customerOwnedIp"] !== undefined) { - contents.CustomerOwnedIp = __expectString(output["customerOwnedIp"]); + if (output[_cOI] != null) { + contents[_COI] = __expectString(output[_cOI]); } - if (output["customerOwnedIpv4Pool"] !== undefined) { - contents.CustomerOwnedIpv4Pool = __expectString(output["customerOwnedIpv4Pool"]); + if (output[_cOIP] != null) { + contents[_COIP] = __expectString(output[_cOIP]); } - if (output["carrierIp"] !== undefined) { - contents.CarrierIp = __expectString(output["carrierIp"]); + if (output[_cI] != null) { + contents[_CIa] = __expectString(output[_cI]); } return contents; }; @@ -68059,17 +68010,17 @@ const de_Address = (output: any, context: __SerdeContext): Address => { */ const de_AddressAttribute = (output: any, context: __SerdeContext): AddressAttribute => { const contents: any = {}; - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["ptrRecord"] !== undefined) { - contents.PtrRecord = __expectString(output["ptrRecord"]); + if (output[_pR] != null) { + contents[_PRt] = __expectString(output[_pR]); } - if (output["ptrRecordUpdate"] !== undefined) { - contents.PtrRecordUpdate = de_PtrUpdateStatus(output["ptrRecordUpdate"], context); + if (output[_pRU] != null) { + contents[_PRU] = de_PtrUpdateStatus(output[_pRU], context); } return contents; }; @@ -68101,27 +68052,23 @@ const de_AddressSet = (output: any, context: __SerdeContext): AddressAttribute[] */ const de_AddressTransfer = (output: any, context: __SerdeContext): AddressTransfer => { const contents: any = {}; - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["transferAccountId"] !== undefined) { - contents.TransferAccountId = __expectString(output["transferAccountId"]); + if (output[_tAI] != null) { + contents[_TAI] = __expectString(output[_tAI]); } - if (output["transferOfferExpirationTimestamp"] !== undefined) { - contents.TransferOfferExpirationTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["transferOfferExpirationTimestamp"]) - ); + if (output[_tOET] != null) { + contents[_TOET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_tOET])); } - if (output["transferOfferAcceptedTimestamp"] !== undefined) { - contents.TransferOfferAcceptedTimestamp = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["transferOfferAcceptedTimestamp"]) - ); + if (output[_tOAT] != null) { + contents[_TOAT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_tOAT])); } - if (output["addressTransferStatus"] !== undefined) { - contents.AddressTransferStatus = __expectString(output["addressTransferStatus"]); + if (output[_aTS] != null) { + contents[_ATS] = __expectString(output[_aTS]); } return contents; }; @@ -68142,8 +68089,8 @@ const de_AddressTransferList = (output: any, context: __SerdeContext): AddressTr */ const de_AdvertiseByoipCidrResult = (output: any, context: __SerdeContext): AdvertiseByoipCidrResult => { const contents: any = {}; - if (output["byoipCidr"] !== undefined) { - contents.ByoipCidr = de_ByoipCidr(output["byoipCidr"], context); + if (output[_bC] != null) { + contents[_BC] = de_ByoipCidr(output[_bC], context); } return contents; }; @@ -68153,29 +68100,29 @@ const de_AdvertiseByoipCidrResult = (output: any, context: __SerdeContext): Adve */ const de_AllocateAddressResult = (output: any, context: __SerdeContext): AllocateAddressResult => { const contents: any = {}; - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["publicIpv4Pool"] !== undefined) { - contents.PublicIpv4Pool = __expectString(output["publicIpv4Pool"]); + if (output[_pIP] != null) { + contents[_PIP] = __expectString(output[_pIP]); } - if (output["networkBorderGroup"] !== undefined) { - contents.NetworkBorderGroup = __expectString(output["networkBorderGroup"]); + if (output[_nBG] != null) { + contents[_NBG] = __expectString(output[_nBG]); } - if (output["domain"] !== undefined) { - contents.Domain = __expectString(output["domain"]); + if (output[_do] != null) { + contents[_Do] = __expectString(output[_do]); } - if (output["customerOwnedIp"] !== undefined) { - contents.CustomerOwnedIp = __expectString(output["customerOwnedIp"]); + if (output[_cOI] != null) { + contents[_COI] = __expectString(output[_cOI]); } - if (output["customerOwnedIpv4Pool"] !== undefined) { - contents.CustomerOwnedIpv4Pool = __expectString(output["customerOwnedIpv4Pool"]); + if (output[_cOIP] != null) { + contents[_COIP] = __expectString(output[_cOIP]); } - if (output["carrierIp"] !== undefined) { - contents.CarrierIp = __expectString(output["carrierIp"]); + if (output[_cI] != null) { + contents[_CIa] = __expectString(output[_cI]); } return contents; }; @@ -68186,9 +68133,9 @@ const de_AllocateAddressResult = (output: any, context: __SerdeContext): Allocat const de_AllocateHostsResult = (output: any, context: __SerdeContext): AllocateHostsResult => { const contents: any = {}; if (output.hostIdSet === "") { - contents.HostIds = []; - } else if (output["hostIdSet"] !== undefined && output["hostIdSet"]["item"] !== undefined) { - contents.HostIds = de_ResponseHostIdList(__getArrayIfSingleItem(output["hostIdSet"]["item"]), context); + contents[_HI] = []; + } else if (output[_hIS] != null && output[_hIS][_i] != null) { + contents[_HI] = de_ResponseHostIdList(__getArrayIfSingleItem(output[_hIS][_i]), context); } return contents; }; @@ -68198,8 +68145,8 @@ const de_AllocateHostsResult = (output: any, context: __SerdeContext): AllocateH */ const de_AllocateIpamPoolCidrResult = (output: any, context: __SerdeContext): AllocateIpamPoolCidrResult => { const contents: any = {}; - if (output["ipamPoolAllocation"] !== undefined) { - contents.IpamPoolAllocation = de_IpamPoolAllocation(output["ipamPoolAllocation"], context); + if (output[_iPA] != null) { + contents[_IPA] = de_IpamPoolAllocation(output[_iPA], context); } return contents; }; @@ -68220,22 +68167,22 @@ const de_AllowedInstanceTypeSet = (output: any, context: __SerdeContext): string */ const de_AllowedPrincipal = (output: any, context: __SerdeContext): AllowedPrincipal => { const contents: any = {}; - if (output["principalType"] !== undefined) { - contents.PrincipalType = __expectString(output["principalType"]); + if (output[_pT] != null) { + contents[_PTr] = __expectString(output[_pT]); } - if (output["principal"] !== undefined) { - contents.Principal = __expectString(output["principal"]); + if (output[_p] != null) { + contents[_Prin] = __expectString(output[_p]); } - if (output["servicePermissionId"] !== undefined) { - contents.ServicePermissionId = __expectString(output["servicePermissionId"]); + if (output[_sPI] != null) { + contents[_SPI] = __expectString(output[_sPI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["serviceId"] !== undefined) { - contents.ServiceId = __expectString(output["serviceId"]); + if (output[_sI] != null) { + contents[_SIe] = __expectString(output[_sI]); } return contents; }; @@ -68256,11 +68203,11 @@ const de_AllowedPrincipalSet = (output: any, context: __SerdeContext): AllowedPr */ const de_AlternatePathHint = (output: any, context: __SerdeContext): AlternatePathHint => { const contents: any = {}; - if (output["componentId"] !== undefined) { - contents.ComponentId = __expectString(output["componentId"]); + if (output[_cIo] != null) { + contents[_CIom] = __expectString(output[_cIo]); } - if (output["componentArn"] !== undefined) { - contents.ComponentArn = __expectString(output["componentArn"]); + if (output[_cA] != null) { + contents[_CAo] = __expectString(output[_cA]); } return contents; }; @@ -68281,23 +68228,23 @@ const de_AlternatePathHintList = (output: any, context: __SerdeContext): Alterna */ const de_AnalysisAclRule = (output: any, context: __SerdeContext): AnalysisAclRule => { const contents: any = {}; - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["egress"] !== undefined) { - contents.Egress = __parseBoolean(output["egress"]); + if (output[_e] != null) { + contents[_Eg] = __parseBoolean(output[_e]); } - if (output["portRange"] !== undefined) { - contents.PortRange = de_PortRange(output["portRange"], context); + if (output[_pRo] != null) { + contents[_PR] = de_PortRange(output[_pRo], context); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } - if (output["ruleAction"] !== undefined) { - contents.RuleAction = __expectString(output["ruleAction"]); + if (output[_rA] != null) { + contents[_RAu] = __expectString(output[_rA]); } - if (output["ruleNumber"] !== undefined) { - contents.RuleNumber = __strictParseInt32(output["ruleNumber"]) as number; + if (output[_rN] != null) { + contents[_RNu] = __strictParseInt32(output[_rN]) as number; } return contents; }; @@ -68307,14 +68254,14 @@ const de_AnalysisAclRule = (output: any, context: __SerdeContext): AnalysisAclRu */ const de_AnalysisComponent = (output: any, context: __SerdeContext): AnalysisComponent => { const contents: any = {}; - if (output["id"] !== undefined) { - contents.Id = __expectString(output["id"]); + if (output[_id] != null) { + contents[_Id] = __expectString(output[_id]); } - if (output["arn"] !== undefined) { - contents.Arn = __expectString(output["arn"]); + if (output[_ar] != null) { + contents[_Ar] = __expectString(output[_ar]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } return contents; }; @@ -68335,11 +68282,11 @@ const de_AnalysisComponentList = (output: any, context: __SerdeContext): Analysi */ const de_AnalysisLoadBalancerListener = (output: any, context: __SerdeContext): AnalysisLoadBalancerListener => { const contents: any = {}; - if (output["loadBalancerPort"] !== undefined) { - contents.LoadBalancerPort = __strictParseInt32(output["loadBalancerPort"]) as number; + if (output[_lBP] != null) { + contents[_LBP] = __strictParseInt32(output[_lBP]) as number; } - if (output["instancePort"] !== undefined) { - contents.InstancePort = __strictParseInt32(output["instancePort"]) as number; + if (output[_iP] != null) { + contents[_IPns] = __strictParseInt32(output[_iP]) as number; } return contents; }; @@ -68349,17 +68296,17 @@ const de_AnalysisLoadBalancerListener = (output: any, context: __SerdeContext): */ const de_AnalysisLoadBalancerTarget = (output: any, context: __SerdeContext): AnalysisLoadBalancerTarget => { const contents: any = {}; - if (output["address"] !== undefined) { - contents.Address = __expectString(output["address"]); + if (output[_ad] != null) { + contents[_Ad] = __expectString(output[_ad]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["instance"] !== undefined) { - contents.Instance = de_AnalysisComponent(output["instance"], context); + if (output[_in] != null) { + contents[_Ins] = de_AnalysisComponent(output[_in], context); } - if (output["port"] !== undefined) { - contents.Port = __strictParseInt32(output["port"]) as number; + if (output[_po] != null) { + contents[_Po] = __strictParseInt32(output[_po]) as number; } return contents; }; @@ -68370,36 +68317,27 @@ const de_AnalysisLoadBalancerTarget = (output: any, context: __SerdeContext): An const de_AnalysisPacketHeader = (output: any, context: __SerdeContext): AnalysisPacketHeader => { const contents: any = {}; if (output.destinationAddressSet === "") { - contents.DestinationAddresses = []; - } else if (output["destinationAddressSet"] !== undefined && output["destinationAddressSet"]["item"] !== undefined) { - contents.DestinationAddresses = de_IpAddressList( - __getArrayIfSingleItem(output["destinationAddressSet"]["item"]), - context - ); + contents[_DAes] = []; + } else if (output[_dAS] != null && output[_dAS][_i] != null) { + contents[_DAes] = de_IpAddressList(__getArrayIfSingleItem(output[_dAS][_i]), context); } if (output.destinationPortRangeSet === "") { - contents.DestinationPortRanges = []; - } else if ( - output["destinationPortRangeSet"] !== undefined && - output["destinationPortRangeSet"]["item"] !== undefined - ) { - contents.DestinationPortRanges = de_PortRangeList( - __getArrayIfSingleItem(output["destinationPortRangeSet"]["item"]), - context - ); + contents[_DPRe] = []; + } else if (output[_dPRS] != null && output[_dPRS][_i] != null) { + contents[_DPRe] = de_PortRangeList(__getArrayIfSingleItem(output[_dPRS][_i]), context); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } if (output.sourceAddressSet === "") { - contents.SourceAddresses = []; - } else if (output["sourceAddressSet"] !== undefined && output["sourceAddressSet"]["item"] !== undefined) { - contents.SourceAddresses = de_IpAddressList(__getArrayIfSingleItem(output["sourceAddressSet"]["item"]), context); + contents[_SAo] = []; + } else if (output[_sAS] != null && output[_sAS][_i] != null) { + contents[_SAo] = de_IpAddressList(__getArrayIfSingleItem(output[_sAS][_i]), context); } if (output.sourcePortRangeSet === "") { - contents.SourcePortRanges = []; - } else if (output["sourcePortRangeSet"] !== undefined && output["sourcePortRangeSet"]["item"] !== undefined) { - contents.SourcePortRanges = de_PortRangeList(__getArrayIfSingleItem(output["sourcePortRangeSet"]["item"]), context); + contents[_SPRo] = []; + } else if (output[_sPRS] != null && output[_sPRS][_i] != null) { + contents[_SPRo] = de_PortRangeList(__getArrayIfSingleItem(output[_sPRS][_i]), context); } return contents; }; @@ -68409,47 +68347,47 @@ const de_AnalysisPacketHeader = (output: any, context: __SerdeContext): Analysis */ const de_AnalysisRouteTableRoute = (output: any, context: __SerdeContext): AnalysisRouteTableRoute => { const contents: any = {}; - if (output["destinationCidr"] !== undefined) { - contents.DestinationCidr = __expectString(output["destinationCidr"]); + if (output[_dC] != null) { + contents[_DCe] = __expectString(output[_dC]); } - if (output["destinationPrefixListId"] !== undefined) { - contents.DestinationPrefixListId = __expectString(output["destinationPrefixListId"]); + if (output[_dPLI] != null) { + contents[_DPLI] = __expectString(output[_dPLI]); } - if (output["egressOnlyInternetGatewayId"] !== undefined) { - contents.EgressOnlyInternetGatewayId = __expectString(output["egressOnlyInternetGatewayId"]); + if (output[_eOIGI] != null) { + contents[_EOIGI] = __expectString(output[_eOIGI]); } - if (output["gatewayId"] !== undefined) { - contents.GatewayId = __expectString(output["gatewayId"]); + if (output[_gI] != null) { + contents[_GI] = __expectString(output[_gI]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["origin"] !== undefined) { - contents.Origin = __expectString(output["origin"]); + if (output[_o] != null) { + contents[_Or] = __expectString(output[_o]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["vpcPeeringConnectionId"] !== undefined) { - contents.VpcPeeringConnectionId = __expectString(output["vpcPeeringConnectionId"]); + if (output[_vPCI] != null) { + contents[_VPCI] = __expectString(output[_vPCI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["carrierGatewayId"] !== undefined) { - contents.CarrierGatewayId = __expectString(output["carrierGatewayId"]); + if (output[_cGI] != null) { + contents[_CGI] = __expectString(output[_cGI]); } - if (output["coreNetworkArn"] !== undefined) { - contents.CoreNetworkArn = __expectString(output["coreNetworkArn"]); + if (output[_cNA] != null) { + contents[_CNAo] = __expectString(output[_cNA]); } - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } return contents; }; @@ -68459,23 +68397,23 @@ const de_AnalysisRouteTableRoute = (output: any, context: __SerdeContext): Analy */ const de_AnalysisSecurityGroupRule = (output: any, context: __SerdeContext): AnalysisSecurityGroupRule => { const contents: any = {}; - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["direction"] !== undefined) { - contents.Direction = __expectString(output["direction"]); + if (output[_di] != null) { + contents[_Di] = __expectString(output[_di]); } - if (output["securityGroupId"] !== undefined) { - contents.SecurityGroupId = __expectString(output["securityGroupId"]); + if (output[_sGI] != null) { + contents[_SGIe] = __expectString(output[_sGI]); } - if (output["portRange"] !== undefined) { - contents.PortRange = de_PortRange(output["portRange"], context); + if (output[_pRo] != null) { + contents[_PR] = de_PortRange(output[_pRo], context); } - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } return contents; }; @@ -68489,12 +68427,9 @@ const de_ApplySecurityGroupsToClientVpnTargetNetworkResult = ( ): ApplySecurityGroupsToClientVpnTargetNetworkResult => { const contents: any = {}; if (output.securityGroupIds === "") { - contents.SecurityGroupIds = []; - } else if (output["securityGroupIds"] !== undefined && output["securityGroupIds"]["item"] !== undefined) { - contents.SecurityGroupIds = de_ClientVpnSecurityGroupIdSet( - __getArrayIfSingleItem(output["securityGroupIds"]["item"]), - context - ); + contents[_SGI] = []; + } else if (output[_sGIe] != null && output[_sGIe][_i] != null) { + contents[_SGI] = de_ClientVpnSecurityGroupIdSet(__getArrayIfSingleItem(output[_sGIe][_i]), context); } return contents; }; @@ -68526,17 +68461,17 @@ const de_ArnList = (output: any, context: __SerdeContext): string[] => { */ const de_AsnAssociation = (output: any, context: __SerdeContext): AsnAssociation => { const contents: any = {}; - if (output["asn"] !== undefined) { - contents.Asn = __expectString(output["asn"]); + if (output[_as] != null) { + contents[_As] = __expectString(output[_as]); } - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -68557,8 +68492,8 @@ const de_AsnAssociationSet = (output: any, context: __SerdeContext): AsnAssociat */ const de_AssignedPrivateIpAddress = (output: any, context: __SerdeContext): AssignedPrivateIpAddress => { const contents: any = {}; - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } return contents; }; @@ -68580,23 +68515,17 @@ const de_AssignedPrivateIpAddressList = (output: any, context: __SerdeContext): const de_AssignIpv6AddressesResult = (output: any, context: __SerdeContext): AssignIpv6AddressesResult => { const contents: any = {}; if (output.assignedIpv6Addresses === "") { - contents.AssignedIpv6Addresses = []; - } else if (output["assignedIpv6Addresses"] !== undefined && output["assignedIpv6Addresses"]["item"] !== undefined) { - contents.AssignedIpv6Addresses = de_Ipv6AddressList( - __getArrayIfSingleItem(output["assignedIpv6Addresses"]["item"]), - context - ); + contents[_AIAs] = []; + } else if (output[_aIA] != null && output[_aIA][_i] != null) { + contents[_AIAs] = de_Ipv6AddressList(__getArrayIfSingleItem(output[_aIA][_i]), context); } if (output.assignedIpv6PrefixSet === "") { - contents.AssignedIpv6Prefixes = []; - } else if (output["assignedIpv6PrefixSet"] !== undefined && output["assignedIpv6PrefixSet"]["item"] !== undefined) { - contents.AssignedIpv6Prefixes = de_IpPrefixList( - __getArrayIfSingleItem(output["assignedIpv6PrefixSet"]["item"]), - context - ); + contents[_AIP] = []; + } else if (output[_aIPS] != null && output[_aIPS][_i] != null) { + contents[_AIP] = de_IpPrefixList(__getArrayIfSingleItem(output[_aIPS][_i]), context); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } return contents; }; @@ -68606,27 +68535,18 @@ const de_AssignIpv6AddressesResult = (output: any, context: __SerdeContext): Ass */ const de_AssignPrivateIpAddressesResult = (output: any, context: __SerdeContext): AssignPrivateIpAddressesResult => { const contents: any = {}; - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } if (output.assignedPrivateIpAddressesSet === "") { - contents.AssignedPrivateIpAddresses = []; - } else if ( - output["assignedPrivateIpAddressesSet"] !== undefined && - output["assignedPrivateIpAddressesSet"]["item"] !== undefined - ) { - contents.AssignedPrivateIpAddresses = de_AssignedPrivateIpAddressList( - __getArrayIfSingleItem(output["assignedPrivateIpAddressesSet"]["item"]), - context - ); + contents[_APIAss] = []; + } else if (output[_aPIAS] != null && output[_aPIAS][_i] != null) { + contents[_APIAss] = de_AssignedPrivateIpAddressList(__getArrayIfSingleItem(output[_aPIAS][_i]), context); } if (output.assignedIpv4PrefixSet === "") { - contents.AssignedIpv4Prefixes = []; - } else if (output["assignedIpv4PrefixSet"] !== undefined && output["assignedIpv4PrefixSet"]["item"] !== undefined) { - contents.AssignedIpv4Prefixes = de_Ipv4PrefixesList( - __getArrayIfSingleItem(output["assignedIpv4PrefixSet"]["item"]), - context - ); + contents[_AIPs] = []; + } else if (output[_aIPSs] != null && output[_aIPSs][_i] != null) { + contents[_AIPs] = de_Ipv4PrefixesList(__getArrayIfSingleItem(output[_aIPSs][_i]), context); } return contents; }; @@ -68639,16 +68559,13 @@ const de_AssignPrivateNatGatewayAddressResult = ( context: __SerdeContext ): AssignPrivateNatGatewayAddressResult => { const contents: any = {}; - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } if (output.natGatewayAddressSet === "") { - contents.NatGatewayAddresses = []; - } else if (output["natGatewayAddressSet"] !== undefined && output["natGatewayAddressSet"]["item"] !== undefined) { - contents.NatGatewayAddresses = de_NatGatewayAddressList( - __getArrayIfSingleItem(output["natGatewayAddressSet"]["item"]), - context - ); + contents[_NGA] = []; + } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { + contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); } return contents; }; @@ -68658,8 +68575,8 @@ const de_AssignPrivateNatGatewayAddressResult = ( */ const de_AssociateAddressResult = (output: any, context: __SerdeContext): AssociateAddressResult => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } return contents; }; @@ -68672,11 +68589,11 @@ const de_AssociateClientVpnTargetNetworkResult = ( context: __SerdeContext ): AssociateClientVpnTargetNetworkResult => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["status"] !== undefined) { - contents.Status = de_AssociationStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_AssociationStatus(output[_sta], context); } return contents; }; @@ -68686,17 +68603,17 @@ const de_AssociateClientVpnTargetNetworkResult = ( */ const de_AssociatedRole = (output: any, context: __SerdeContext): AssociatedRole => { const contents: any = {}; - if (output["associatedRoleArn"] !== undefined) { - contents.AssociatedRoleArn = __expectString(output["associatedRoleArn"]); + if (output[_aRA] != null) { + contents[_ARA] = __expectString(output[_aRA]); } - if (output["certificateS3BucketName"] !== undefined) { - contents.CertificateS3BucketName = __expectString(output["certificateS3BucketName"]); + if (output[_cSBN] != null) { + contents[_CSBN] = __expectString(output[_cSBN]); } - if (output["certificateS3ObjectKey"] !== undefined) { - contents.CertificateS3ObjectKey = __expectString(output["certificateS3ObjectKey"]); + if (output[_cSOK] != null) { + contents[_CSOK] = __expectString(output[_cSOK]); } - if (output["encryptionKmsKeyId"] !== undefined) { - contents.EncryptionKmsKeyId = __expectString(output["encryptionKmsKeyId"]); + if (output[_eKKI] != null) { + contents[_EKKI] = __expectString(output[_eKKI]); } return contents; }; @@ -68717,11 +68634,11 @@ const de_AssociatedRolesList = (output: any, context: __SerdeContext): Associate */ const de_AssociatedTargetNetwork = (output: any, context: __SerdeContext): AssociatedTargetNetwork => { const contents: any = {}; - if (output["networkId"] !== undefined) { - contents.NetworkId = __expectString(output["networkId"]); + if (output[_nI] != null) { + contents[_NIe] = __expectString(output[_nI]); } - if (output["networkType"] !== undefined) { - contents.NetworkType = __expectString(output["networkType"]); + if (output[_nT] != null) { + contents[_NTe] = __expectString(output[_nT]); } return contents; }; @@ -68745,14 +68662,14 @@ const de_AssociateEnclaveCertificateIamRoleResult = ( context: __SerdeContext ): AssociateEnclaveCertificateIamRoleResult => { const contents: any = {}; - if (output["certificateS3BucketName"] !== undefined) { - contents.CertificateS3BucketName = __expectString(output["certificateS3BucketName"]); + if (output[_cSBN] != null) { + contents[_CSBN] = __expectString(output[_cSBN]); } - if (output["certificateS3ObjectKey"] !== undefined) { - contents.CertificateS3ObjectKey = __expectString(output["certificateS3ObjectKey"]); + if (output[_cSOK] != null) { + contents[_CSOK] = __expectString(output[_cSOK]); } - if (output["encryptionKmsKeyId"] !== undefined) { - contents.EncryptionKmsKeyId = __expectString(output["encryptionKmsKeyId"]); + if (output[_eKKI] != null) { + contents[_EKKI] = __expectString(output[_eKKI]); } return contents; }; @@ -68765,11 +68682,8 @@ const de_AssociateIamInstanceProfileResult = ( context: __SerdeContext ): AssociateIamInstanceProfileResult => { const contents: any = {}; - if (output["iamInstanceProfileAssociation"] !== undefined) { - contents.IamInstanceProfileAssociation = de_IamInstanceProfileAssociation( - output["iamInstanceProfileAssociation"], - context - ); + if (output[_iIPA] != null) { + contents[_IIPA] = de_IamInstanceProfileAssociation(output[_iIPA], context); } return contents; }; @@ -68782,8 +68696,8 @@ const de_AssociateInstanceEventWindowResult = ( context: __SerdeContext ): AssociateInstanceEventWindowResult => { const contents: any = {}; - if (output["instanceEventWindow"] !== undefined) { - contents.InstanceEventWindow = de_InstanceEventWindow(output["instanceEventWindow"], context); + if (output[_iEW] != null) { + contents[_IEW] = de_InstanceEventWindow(output[_iEW], context); } return contents; }; @@ -68793,8 +68707,8 @@ const de_AssociateInstanceEventWindowResult = ( */ const de_AssociateIpamByoasnResult = (output: any, context: __SerdeContext): AssociateIpamByoasnResult => { const contents: any = {}; - if (output["asnAssociation"] !== undefined) { - contents.AsnAssociation = de_AsnAssociation(output["asnAssociation"], context); + if (output[_aA] != null) { + contents[_AAsn] = de_AsnAssociation(output[_aA], context); } return contents; }; @@ -68807,11 +68721,8 @@ const de_AssociateIpamResourceDiscoveryResult = ( context: __SerdeContext ): AssociateIpamResourceDiscoveryResult => { const contents: any = {}; - if (output["ipamResourceDiscoveryAssociation"] !== undefined) { - contents.IpamResourceDiscoveryAssociation = de_IpamResourceDiscoveryAssociation( - output["ipamResourceDiscoveryAssociation"], - context - ); + if (output[_iRDA] != null) { + contents[_IRDA] = de_IpamResourceDiscoveryAssociation(output[_iRDA], context); } return contents; }; @@ -68824,16 +68735,13 @@ const de_AssociateNatGatewayAddressResult = ( context: __SerdeContext ): AssociateNatGatewayAddressResult => { const contents: any = {}; - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } if (output.natGatewayAddressSet === "") { - contents.NatGatewayAddresses = []; - } else if (output["natGatewayAddressSet"] !== undefined && output["natGatewayAddressSet"]["item"] !== undefined) { - contents.NatGatewayAddresses = de_NatGatewayAddressList( - __getArrayIfSingleItem(output["natGatewayAddressSet"]["item"]), - context - ); + contents[_NGA] = []; + } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { + contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); } return contents; }; @@ -68843,11 +68751,11 @@ const de_AssociateNatGatewayAddressResult = ( */ const de_AssociateRouteTableResult = (output: any, context: __SerdeContext): AssociateRouteTableResult => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["associationState"] !== undefined) { - contents.AssociationState = de_RouteTableAssociationState(output["associationState"], context); + if (output[_aS] != null) { + contents[_ASs] = de_RouteTableAssociationState(output[_aS], context); } return contents; }; @@ -68857,11 +68765,11 @@ const de_AssociateRouteTableResult = (output: any, context: __SerdeContext): Ass */ const de_AssociateSubnetCidrBlockResult = (output: any, context: __SerdeContext): AssociateSubnetCidrBlockResult => { const contents: any = {}; - if (output["ipv6CidrBlockAssociation"] !== undefined) { - contents.Ipv6CidrBlockAssociation = de_SubnetIpv6CidrBlockAssociation(output["ipv6CidrBlockAssociation"], context); + if (output[_iCBA] != null) { + contents[_ICBA] = de_SubnetIpv6CidrBlockAssociation(output[_iCBA], context); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } return contents; }; @@ -68874,8 +68782,8 @@ const de_AssociateTransitGatewayMulticastDomainResult = ( context: __SerdeContext ): AssociateTransitGatewayMulticastDomainResult => { const contents: any = {}; - if (output["associations"] !== undefined) { - contents.Associations = de_TransitGatewayMulticastDomainAssociations(output["associations"], context); + if (output[_a] != null) { + contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a], context); } return contents; }; @@ -68888,8 +68796,8 @@ const de_AssociateTransitGatewayPolicyTableResult = ( context: __SerdeContext ): AssociateTransitGatewayPolicyTableResult => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_TransitGatewayPolicyTableAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_TransitGatewayPolicyTableAssociation(output[_ass], context); } return contents; }; @@ -68902,8 +68810,8 @@ const de_AssociateTransitGatewayRouteTableResult = ( context: __SerdeContext ): AssociateTransitGatewayRouteTableResult => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_TransitGatewayAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_TransitGatewayAssociation(output[_ass], context); } return contents; }; @@ -68913,11 +68821,11 @@ const de_AssociateTransitGatewayRouteTableResult = ( */ const de_AssociateTrunkInterfaceResult = (output: any, context: __SerdeContext): AssociateTrunkInterfaceResult => { const contents: any = {}; - if (output["interfaceAssociation"] !== undefined) { - contents.InterfaceAssociation = de_TrunkInterfaceAssociation(output["interfaceAssociation"], context); + if (output[_iA] != null) { + contents[_IAn] = de_TrunkInterfaceAssociation(output[_iA], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -68927,14 +68835,14 @@ const de_AssociateTrunkInterfaceResult = (output: any, context: __SerdeContext): */ const de_AssociateVpcCidrBlockResult = (output: any, context: __SerdeContext): AssociateVpcCidrBlockResult => { const contents: any = {}; - if (output["ipv6CidrBlockAssociation"] !== undefined) { - contents.Ipv6CidrBlockAssociation = de_VpcIpv6CidrBlockAssociation(output["ipv6CidrBlockAssociation"], context); + if (output[_iCBA] != null) { + contents[_ICBA] = de_VpcIpv6CidrBlockAssociation(output[_iCBA], context); } - if (output["cidrBlockAssociation"] !== undefined) { - contents.CidrBlockAssociation = de_VpcCidrBlockAssociation(output["cidrBlockAssociation"], context); + if (output[_cBA] != null) { + contents[_CBA] = de_VpcCidrBlockAssociation(output[_cBA], context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -68944,11 +68852,11 @@ const de_AssociateVpcCidrBlockResult = (output: any, context: __SerdeContext): A */ const de_AssociationStatus = (output: any, context: __SerdeContext): AssociationStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -68958,8 +68866,8 @@ const de_AssociationStatus = (output: any, context: __SerdeContext): Association */ const de_AttachClassicLinkVpcResult = (output: any, context: __SerdeContext): AttachClassicLinkVpcResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -68969,11 +68877,11 @@ const de_AttachClassicLinkVpcResult = (output: any, context: __SerdeContext): At */ const de_AttachmentEnaSrdSpecification = (output: any, context: __SerdeContext): AttachmentEnaSrdSpecification => { const contents: any = {}; - if (output["enaSrdEnabled"] !== undefined) { - contents.EnaSrdEnabled = __parseBoolean(output["enaSrdEnabled"]); + if (output[_eSE] != null) { + contents[_ESE] = __parseBoolean(output[_eSE]); } - if (output["enaSrdUdpSpecification"] !== undefined) { - contents.EnaSrdUdpSpecification = de_AttachmentEnaSrdUdpSpecification(output["enaSrdUdpSpecification"], context); + if (output[_eSUS] != null) { + contents[_ESUS] = de_AttachmentEnaSrdUdpSpecification(output[_eSUS], context); } return contents; }; @@ -68986,8 +68894,8 @@ const de_AttachmentEnaSrdUdpSpecification = ( context: __SerdeContext ): AttachmentEnaSrdUdpSpecification => { const contents: any = {}; - if (output["enaSrdUdpEnabled"] !== undefined) { - contents.EnaSrdUdpEnabled = __parseBoolean(output["enaSrdUdpEnabled"]); + if (output[_eSUE] != null) { + contents[_ESUE] = __parseBoolean(output[_eSUE]); } return contents; }; @@ -68997,11 +68905,11 @@ const de_AttachmentEnaSrdUdpSpecification = ( */ const de_AttachNetworkInterfaceResult = (output: any, context: __SerdeContext): AttachNetworkInterfaceResult => { const contents: any = {}; - if (output["attachmentId"] !== undefined) { - contents.AttachmentId = __expectString(output["attachmentId"]); + if (output[_aIt] != null) { + contents[_AIt] = __expectString(output[_aIt]); } - if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; + if (output[_nCI] != null) { + contents[_NCI] = __strictParseInt32(output[_nCI]) as number; } return contents; }; @@ -69014,14 +68922,11 @@ const de_AttachVerifiedAccessTrustProviderResult = ( context: __SerdeContext ): AttachVerifiedAccessTrustProviderResult => { const contents: any = {}; - if (output["verifiedAccessTrustProvider"] !== undefined) { - contents.VerifiedAccessTrustProvider = de_VerifiedAccessTrustProvider( - output["verifiedAccessTrustProvider"], - context - ); + if (output[_vATP] != null) { + contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context); } - if (output["verifiedAccessInstance"] !== undefined) { - contents.VerifiedAccessInstance = de_VerifiedAccessInstance(output["verifiedAccessInstance"], context); + if (output[_vAI] != null) { + contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context); } return contents; }; @@ -69031,8 +68936,8 @@ const de_AttachVerifiedAccessTrustProviderResult = ( */ const de_AttachVpnGatewayResult = (output: any, context: __SerdeContext): AttachVpnGatewayResult => { const contents: any = {}; - if (output["attachment"] !== undefined) { - contents.VpcAttachment = de_VpcAttachment(output["attachment"], context); + if (output[_at] != null) { + contents[_VA] = de_VpcAttachment(output[_at], context); } return contents; }; @@ -69042,8 +68947,8 @@ const de_AttachVpnGatewayResult = (output: any, context: __SerdeContext): Attach */ const de_AttributeBooleanValue = (output: any, context: __SerdeContext): AttributeBooleanValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __parseBoolean(output["value"]); + if (output[_v] != null) { + contents[_Va] = __parseBoolean(output[_v]); } return contents; }; @@ -69053,8 +68958,8 @@ const de_AttributeBooleanValue = (output: any, context: __SerdeContext): Attribu */ const de_AttributeValue = (output: any, context: __SerdeContext): AttributeValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -69064,23 +68969,23 @@ const de_AttributeValue = (output: any, context: __SerdeContext): AttributeValue */ const de_AuthorizationRule = (output: any, context: __SerdeContext): AuthorizationRule => { const contents: any = {}; - if (output["clientVpnEndpointId"] !== undefined) { - contents.ClientVpnEndpointId = __expectString(output["clientVpnEndpointId"]); + if (output[_cVEI] != null) { + contents[_CVEI] = __expectString(output[_cVEI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } - if (output["accessAll"] !== undefined) { - contents.AccessAll = __parseBoolean(output["accessAll"]); + if (output[_aAc] != null) { + contents[_AAc] = __parseBoolean(output[_aAc]); } - if (output["destinationCidr"] !== undefined) { - contents.DestinationCidr = __expectString(output["destinationCidr"]); + if (output[_dC] != null) { + contents[_DCe] = __expectString(output[_dC]); } - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnAuthorizationRuleStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnAuthorizationRuleStatus(output[_sta], context); } return contents; }; @@ -69101,8 +69006,8 @@ const de_AuthorizationRuleSet = (output: any, context: __SerdeContext): Authoriz */ const de_AuthorizeClientVpnIngressResult = (output: any, context: __SerdeContext): AuthorizeClientVpnIngressResult => { const contents: any = {}; - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnAuthorizationRuleStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnAuthorizationRuleStatus(output[_sta], context); } return contents; }; @@ -69115,16 +69020,13 @@ const de_AuthorizeSecurityGroupEgressResult = ( context: __SerdeContext ): AuthorizeSecurityGroupEgressResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } if (output.securityGroupRuleSet === "") { - contents.SecurityGroupRules = []; - } else if (output["securityGroupRuleSet"] !== undefined && output["securityGroupRuleSet"]["item"] !== undefined) { - contents.SecurityGroupRules = de_SecurityGroupRuleList( - __getArrayIfSingleItem(output["securityGroupRuleSet"]["item"]), - context - ); + contents[_SGR] = []; + } else if (output[_sGRS] != null && output[_sGRS][_i] != null) { + contents[_SGR] = de_SecurityGroupRuleList(__getArrayIfSingleItem(output[_sGRS][_i]), context); } return contents; }; @@ -69137,16 +69039,13 @@ const de_AuthorizeSecurityGroupIngressResult = ( context: __SerdeContext ): AuthorizeSecurityGroupIngressResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } if (output.securityGroupRuleSet === "") { - contents.SecurityGroupRules = []; - } else if (output["securityGroupRuleSet"] !== undefined && output["securityGroupRuleSet"]["item"] !== undefined) { - contents.SecurityGroupRules = de_SecurityGroupRuleList( - __getArrayIfSingleItem(output["securityGroupRuleSet"]["item"]), - context - ); + contents[_SGR] = []; + } else if (output[_sGRS] != null && output[_sGRS][_i] != null) { + contents[_SGR] = de_SecurityGroupRuleList(__getArrayIfSingleItem(output[_sGRS][_i]), context); } return contents; }; @@ -69156,40 +69055,40 @@ const de_AuthorizeSecurityGroupIngressResult = ( */ const de_AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { const contents: any = {}; - if (output["zoneState"] !== undefined) { - contents.State = __expectString(output["zoneState"]); + if (output[_zS] != null) { + contents[_Stat] = __expectString(output[_zS]); } - if (output["optInStatus"] !== undefined) { - contents.OptInStatus = __expectString(output["optInStatus"]); + if (output[_oIS] != null) { + contents[_OIS] = __expectString(output[_oIS]); } if (output.messageSet === "") { - contents.Messages = []; - } else if (output["messageSet"] !== undefined && output["messageSet"]["item"] !== undefined) { - contents.Messages = de_AvailabilityZoneMessageList(__getArrayIfSingleItem(output["messageSet"]["item"]), context); + contents[_Mes] = []; + } else if (output[_mS] != null && output[_mS][_i] != null) { + contents[_Mes] = de_AvailabilityZoneMessageList(__getArrayIfSingleItem(output[_mS][_i]), context); } - if (output["regionName"] !== undefined) { - contents.RegionName = __expectString(output["regionName"]); + if (output[_rNe] != null) { + contents[_RN] = __expectString(output[_rNe]); } - if (output["zoneName"] !== undefined) { - contents.ZoneName = __expectString(output["zoneName"]); + if (output[_zN] != null) { + contents[_ZNo] = __expectString(output[_zN]); } - if (output["zoneId"] !== undefined) { - contents.ZoneId = __expectString(output["zoneId"]); + if (output[_zI] != null) { + contents[_ZIo] = __expectString(output[_zI]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["networkBorderGroup"] !== undefined) { - contents.NetworkBorderGroup = __expectString(output["networkBorderGroup"]); + if (output[_nBG] != null) { + contents[_NBG] = __expectString(output[_nBG]); } - if (output["zoneType"] !== undefined) { - contents.ZoneType = __expectString(output["zoneType"]); + if (output[_zT] != null) { + contents[_ZT] = __expectString(output[_zT]); } - if (output["parentZoneName"] !== undefined) { - contents.ParentZoneName = __expectString(output["parentZoneName"]); + if (output[_pZN] != null) { + contents[_PZN] = __expectString(output[_pZN]); } - if (output["parentZoneId"] !== undefined) { - contents.ParentZoneId = __expectString(output["parentZoneId"]); + if (output[_pZI] != null) { + contents[_PZI] = __expectString(output[_pZI]); } return contents; }; @@ -69210,8 +69109,8 @@ const de_AvailabilityZoneList = (output: any, context: __SerdeContext): Availabi */ const de_AvailabilityZoneMessage = (output: any, context: __SerdeContext): AvailabilityZoneMessage => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -69233,18 +69132,12 @@ const de_AvailabilityZoneMessageList = (output: any, context: __SerdeContext): A const de_AvailableCapacity = (output: any, context: __SerdeContext): AvailableCapacity => { const contents: any = {}; if (output.availableInstanceCapacity === "") { - contents.AvailableInstanceCapacity = []; - } else if ( - output["availableInstanceCapacity"] !== undefined && - output["availableInstanceCapacity"]["item"] !== undefined - ) { - contents.AvailableInstanceCapacity = de_AvailableInstanceCapacityList( - __getArrayIfSingleItem(output["availableInstanceCapacity"]["item"]), - context - ); + contents[_AIC] = []; + } else if (output[_aIC] != null && output[_aIC][_i] != null) { + contents[_AIC] = de_AvailableInstanceCapacityList(__getArrayIfSingleItem(output[_aIC][_i]), context); } - if (output["availableVCpus"] !== undefined) { - contents.AvailableVCpus = __strictParseInt32(output["availableVCpus"]) as number; + if (output[_aVC] != null) { + contents[_AVC] = __strictParseInt32(output[_aVC]) as number; } return contents; }; @@ -69265,11 +69158,11 @@ const de_AvailableInstanceCapacityList = (output: any, context: __SerdeContext): */ const de_BaselineEbsBandwidthMbps = (output: any, context: __SerdeContext): BaselineEbsBandwidthMbps => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseInt32(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseInt32(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseInt32(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseInt32(output[_ma]) as number; } return contents; }; @@ -69279,17 +69172,17 @@ const de_BaselineEbsBandwidthMbps = (output: any, context: __SerdeContext): Base */ const de_BlockDeviceMapping = (output: any, context: __SerdeContext): BlockDeviceMapping => { const contents: any = {}; - if (output["deviceName"] !== undefined) { - contents.DeviceName = __expectString(output["deviceName"]); + if (output[_dN] != null) { + contents[_DN] = __expectString(output[_dN]); } - if (output["virtualName"] !== undefined) { - contents.VirtualName = __expectString(output["virtualName"]); + if (output[_vN] != null) { + contents[_VN] = __expectString(output[_vN]); } - if (output["ebs"] !== undefined) { - contents.Ebs = de_EbsBlockDevice(output["ebs"], context); + if (output[_eb] != null) { + contents[_E] = de_EbsBlockDevice(output[_eb], context); } - if (output["noDevice"] !== undefined) { - contents.NoDevice = __expectString(output["noDevice"]); + if (output[_nD] != null) { + contents[_ND] = __expectString(output[_nD]); } return contents; }; @@ -69321,8 +69214,8 @@ const de_BootModeTypeList = (output: any, context: __SerdeContext): BootModeType */ const de_BundleInstanceResult = (output: any, context: __SerdeContext): BundleInstanceResult => { const contents: any = {}; - if (output["bundleInstanceTask"] !== undefined) { - contents.BundleTask = de_BundleTask(output["bundleInstanceTask"], context); + if (output[_bIT] != null) { + contents[_BTu] = de_BundleTask(output[_bIT], context); } return contents; }; @@ -69332,29 +69225,29 @@ const de_BundleInstanceResult = (output: any, context: __SerdeContext): BundleIn */ const de_BundleTask = (output: any, context: __SerdeContext): BundleTask => { const contents: any = {}; - if (output["bundleId"] !== undefined) { - contents.BundleId = __expectString(output["bundleId"]); + if (output[_bI] != null) { + contents[_BIu] = __expectString(output[_bI]); } - if (output["error"] !== undefined) { - contents.BundleTaskError = de_BundleTaskError(output["error"], context); + if (output[_er] != null) { + contents[_BTE] = de_BundleTaskError(output[_er], context); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startTime"])); + if (output[_sT] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["storage"] !== undefined) { - contents.Storage = de_Storage(output["storage"], context); + if (output[_sto] != null) { + contents[_St] = de_Storage(output[_sto], context); } - if (output["updateTime"] !== undefined) { - contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["updateTime"])); + if (output[_uT] != null) { + contents[_UTp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uT])); } return contents; }; @@ -69364,11 +69257,11 @@ const de_BundleTask = (output: any, context: __SerdeContext): BundleTask => { */ const de_BundleTaskError = (output: any, context: __SerdeContext): BundleTaskError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -69389,17 +69282,17 @@ const de_BundleTaskList = (output: any, context: __SerdeContext): BundleTask[] = */ const de_Byoasn = (output: any, context: __SerdeContext): Byoasn => { const contents: any = {}; - if (output["asn"] !== undefined) { - contents.Asn = __expectString(output["asn"]); + if (output[_as] != null) { + contents[_As] = __expectString(output[_as]); } - if (output["ipamId"] !== undefined) { - contents.IpamId = __expectString(output["ipamId"]); + if (output[_iIp] != null) { + contents[_IIp] = __expectString(output[_iIp]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -69420,25 +69313,22 @@ const de_ByoasnSet = (output: any, context: __SerdeContext): Byoasn[] => { */ const de_ByoipCidr = (output: any, context: __SerdeContext): ByoipCidr => { const contents: any = {}; - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.asnAssociationSet === "") { - contents.AsnAssociations = []; - } else if (output["asnAssociationSet"] !== undefined && output["asnAssociationSet"]["item"] !== undefined) { - contents.AsnAssociations = de_AsnAssociationSet( - __getArrayIfSingleItem(output["asnAssociationSet"]["item"]), - context - ); + contents[_AAsns] = []; + } else if (output[_aAS] != null && output[_aAS][_i] != null) { + contents[_AAsns] = de_AsnAssociationSet(__getArrayIfSingleItem(output[_aAS][_i]), context); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -69459,8 +69349,8 @@ const de_ByoipCidrSet = (output: any, context: __SerdeContext): ByoipCidr[] => { */ const de_CancelBundleTaskResult = (output: any, context: __SerdeContext): CancelBundleTaskResult => { const contents: any = {}; - if (output["bundleInstanceTask"] !== undefined) { - contents.BundleTask = de_BundleTask(output["bundleInstanceTask"], context); + if (output[_bIT] != null) { + contents[_BTu] = de_BundleTask(output[_bIT], context); } return contents; }; @@ -69473,11 +69363,11 @@ const de_CancelCapacityReservationFleetError = ( context: __SerdeContext ): CancelCapacityReservationFleetError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -69491,24 +69381,18 @@ const de_CancelCapacityReservationFleetsResult = ( ): CancelCapacityReservationFleetsResult => { const contents: any = {}; if (output.successfulFleetCancellationSet === "") { - contents.SuccessfulFleetCancellations = []; - } else if ( - output["successfulFleetCancellationSet"] !== undefined && - output["successfulFleetCancellationSet"]["item"] !== undefined - ) { - contents.SuccessfulFleetCancellations = de_CapacityReservationFleetCancellationStateSet( - __getArrayIfSingleItem(output["successfulFleetCancellationSet"]["item"]), + contents[_SFC] = []; + } else if (output[_sFCS] != null && output[_sFCS][_i] != null) { + contents[_SFC] = de_CapacityReservationFleetCancellationStateSet( + __getArrayIfSingleItem(output[_sFCS][_i]), context ); } if (output.failedFleetCancellationSet === "") { - contents.FailedFleetCancellations = []; - } else if ( - output["failedFleetCancellationSet"] !== undefined && - output["failedFleetCancellationSet"]["item"] !== undefined - ) { - contents.FailedFleetCancellations = de_FailedCapacityReservationFleetCancellationResultSet( - __getArrayIfSingleItem(output["failedFleetCancellationSet"]["item"]), + contents[_FFC] = []; + } else if (output[_fFCS] != null && output[_fFCS][_i] != null) { + contents[_FFC] = de_FailedCapacityReservationFleetCancellationResultSet( + __getArrayIfSingleItem(output[_fFCS][_i]), context ); } @@ -69520,8 +69404,8 @@ const de_CancelCapacityReservationFleetsResult = ( */ const de_CancelCapacityReservationResult = (output: any, context: __SerdeContext): CancelCapacityReservationResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -69534,8 +69418,8 @@ const de_CancelImageLaunchPermissionResult = ( context: __SerdeContext ): CancelImageLaunchPermissionResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -69545,14 +69429,14 @@ const de_CancelImageLaunchPermissionResult = ( */ const de_CancelImportTaskResult = (output: any, context: __SerdeContext): CancelImportTaskResult => { const contents: any = {}; - if (output["importTaskId"] !== undefined) { - contents.ImportTaskId = __expectString(output["importTaskId"]); + if (output[_iTI] != null) { + contents[_ITI] = __expectString(output[_iTI]); } - if (output["previousState"] !== undefined) { - contents.PreviousState = __expectString(output["previousState"]); + if (output[_pS] != null) { + contents[_PSr] = __expectString(output[_pS]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -69562,11 +69446,11 @@ const de_CancelImportTaskResult = (output: any, context: __SerdeContext): Cancel */ const de_CancelledSpotInstanceRequest = (output: any, context: __SerdeContext): CancelledSpotInstanceRequest => { const contents: any = {}; - if (output["spotInstanceRequestId"] !== undefined) { - contents.SpotInstanceRequestId = __expectString(output["spotInstanceRequestId"]); + if (output[_sIRI] != null) { + contents[_SIRIp] = __expectString(output[_sIRI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -69591,15 +69475,9 @@ const de_CancelReservedInstancesListingResult = ( ): CancelReservedInstancesListingResult => { const contents: any = {}; if (output.reservedInstancesListingsSet === "") { - contents.ReservedInstancesListings = []; - } else if ( - output["reservedInstancesListingsSet"] !== undefined && - output["reservedInstancesListingsSet"]["item"] !== undefined - ) { - contents.ReservedInstancesListings = de_ReservedInstancesListingList( - __getArrayIfSingleItem(output["reservedInstancesListingsSet"]["item"]), - context - ); + contents[_RIL] = []; + } else if (output[_rILS] != null && output[_rILS][_i] != null) { + contents[_RIL] = de_ReservedInstancesListingList(__getArrayIfSingleItem(output[_rILS][_i]), context); } return contents; }; @@ -69609,11 +69487,11 @@ const de_CancelReservedInstancesListingResult = ( */ const de_CancelSpotFleetRequestsError = (output: any, context: __SerdeContext): CancelSpotFleetRequestsError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -69626,11 +69504,11 @@ const de_CancelSpotFleetRequestsErrorItem = ( context: __SerdeContext ): CancelSpotFleetRequestsErrorItem => { const contents: any = {}; - if (output["error"] !== undefined) { - contents.Error = de_CancelSpotFleetRequestsError(output["error"], context); + if (output[_er] != null) { + contents[_Er] = de_CancelSpotFleetRequestsError(output[_er], context); } - if (output["spotFleetRequestId"] !== undefined) { - contents.SpotFleetRequestId = __expectString(output["spotFleetRequestId"]); + if (output[_sFRI] != null) { + contents[_SFRIp] = __expectString(output[_sFRI]); } return contents; }; @@ -69655,26 +69533,14 @@ const de_CancelSpotFleetRequestsErrorSet = ( const de_CancelSpotFleetRequestsResponse = (output: any, context: __SerdeContext): CancelSpotFleetRequestsResponse => { const contents: any = {}; if (output.successfulFleetRequestSet === "") { - contents.SuccessfulFleetRequests = []; - } else if ( - output["successfulFleetRequestSet"] !== undefined && - output["successfulFleetRequestSet"]["item"] !== undefined - ) { - contents.SuccessfulFleetRequests = de_CancelSpotFleetRequestsSuccessSet( - __getArrayIfSingleItem(output["successfulFleetRequestSet"]["item"]), - context - ); + contents[_SFR] = []; + } else if (output[_sFRS] != null && output[_sFRS][_i] != null) { + contents[_SFR] = de_CancelSpotFleetRequestsSuccessSet(__getArrayIfSingleItem(output[_sFRS][_i]), context); } if (output.unsuccessfulFleetRequestSet === "") { - contents.UnsuccessfulFleetRequests = []; - } else if ( - output["unsuccessfulFleetRequestSet"] !== undefined && - output["unsuccessfulFleetRequestSet"]["item"] !== undefined - ) { - contents.UnsuccessfulFleetRequests = de_CancelSpotFleetRequestsErrorSet( - __getArrayIfSingleItem(output["unsuccessfulFleetRequestSet"]["item"]), - context - ); + contents[_UFR] = []; + } else if (output[_uFRS] != null && output[_uFRS][_i] != null) { + contents[_UFR] = de_CancelSpotFleetRequestsErrorSet(__getArrayIfSingleItem(output[_uFRS][_i]), context); } return contents; }; @@ -69687,14 +69553,14 @@ const de_CancelSpotFleetRequestsSuccessItem = ( context: __SerdeContext ): CancelSpotFleetRequestsSuccessItem => { const contents: any = {}; - if (output["currentSpotFleetRequestState"] !== undefined) { - contents.CurrentSpotFleetRequestState = __expectString(output["currentSpotFleetRequestState"]); + if (output[_cSFRS] != null) { + contents[_CSFRS] = __expectString(output[_cSFRS]); } - if (output["previousSpotFleetRequestState"] !== undefined) { - contents.PreviousSpotFleetRequestState = __expectString(output["previousSpotFleetRequestState"]); + if (output[_pSFRS] != null) { + contents[_PSFRS] = __expectString(output[_pSFRS]); } - if (output["spotFleetRequestId"] !== undefined) { - contents.SpotFleetRequestId = __expectString(output["spotFleetRequestId"]); + if (output[_sFRI] != null) { + contents[_SFRIp] = __expectString(output[_sFRI]); } return contents; }; @@ -69722,12 +69588,9 @@ const de_CancelSpotInstanceRequestsResult = ( ): CancelSpotInstanceRequestsResult => { const contents: any = {}; if (output.spotInstanceRequestSet === "") { - contents.CancelledSpotInstanceRequests = []; - } else if (output["spotInstanceRequestSet"] !== undefined && output["spotInstanceRequestSet"]["item"] !== undefined) { - contents.CancelledSpotInstanceRequests = de_CancelledSpotInstanceRequestList( - __getArrayIfSingleItem(output["spotInstanceRequestSet"]["item"]), - context - ); + contents[_CSIRa] = []; + } else if (output[_sIRS] != null && output[_sIRS][_i] != null) { + contents[_CSIRa] = de_CancelledSpotInstanceRequestList(__getArrayIfSingleItem(output[_sIRS][_i]), context); } return contents; }; @@ -69737,11 +69600,11 @@ const de_CancelSpotInstanceRequestsResult = ( */ const de_CapacityAllocation = (output: any, context: __SerdeContext): CapacityAllocation => { const contents: any = {}; - if (output["allocationType"] !== undefined) { - contents.AllocationType = __expectString(output["allocationType"]); + if (output[_aTl] != null) { + contents[_ATl] = __expectString(output[_aTl]); } - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } return contents; }; @@ -69762,35 +69625,35 @@ const de_CapacityAllocations = (output: any, context: __SerdeContext): CapacityA */ const de_CapacityBlockOffering = (output: any, context: __SerdeContext): CapacityBlockOffering => { const contents: any = {}; - if (output["capacityBlockOfferingId"] !== undefined) { - contents.CapacityBlockOfferingId = __expectString(output["capacityBlockOfferingId"]); + if (output[_cBOI] != null) { + contents[_CBOI] = __expectString(output[_cBOI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; + if (output[_iC] != null) { + contents[_IC] = __strictParseInt32(output[_iC]) as number; } - if (output["startDate"] !== undefined) { - contents.StartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startDate"])); + if (output[_sD] != null) { + contents[_SDt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sD])); } - if (output["endDate"] !== undefined) { - contents.EndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["endDate"])); + if (output[_eD] != null) { + contents[_ED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eD])); } - if (output["capacityBlockDurationHours"] !== undefined) { - contents.CapacityBlockDurationHours = __strictParseInt32(output["capacityBlockDurationHours"]) as number; + if (output[_cBDH] != null) { + contents[_CBDH] = __strictParseInt32(output[_cBDH]) as number; } - if (output["upfrontFee"] !== undefined) { - contents.UpfrontFee = __expectString(output["upfrontFee"]); + if (output[_uF] != null) { + contents[_UF] = __expectString(output[_uF]); } - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["tenancy"] !== undefined) { - contents.Tenancy = __expectString(output["tenancy"]); + if (output[_t] != null) { + contents[_Te] = __expectString(output[_t]); } return contents; }; @@ -69811,84 +69674,81 @@ const de_CapacityBlockOfferingSet = (output: any, context: __SerdeContext): Capa */ const de_CapacityReservation = (output: any, context: __SerdeContext): CapacityReservation => { const contents: any = {}; - if (output["capacityReservationId"] !== undefined) { - contents.CapacityReservationId = __expectString(output["capacityReservationId"]); + if (output[_cRI] != null) { + contents[_CRI] = __expectString(output[_cRI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["capacityReservationArn"] !== undefined) { - contents.CapacityReservationArn = __expectString(output["capacityReservationArn"]); + if (output[_cRA] != null) { + contents[_CRA] = __expectString(output[_cRA]); } - if (output["availabilityZoneId"] !== undefined) { - contents.AvailabilityZoneId = __expectString(output["availabilityZoneId"]); + if (output[_aZI] != null) { + contents[_AZI] = __expectString(output[_aZI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["instancePlatform"] !== undefined) { - contents.InstancePlatform = __expectString(output["instancePlatform"]); + if (output[_iPn] != null) { + contents[_IPn] = __expectString(output[_iPn]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["tenancy"] !== undefined) { - contents.Tenancy = __expectString(output["tenancy"]); + if (output[_t] != null) { + contents[_Te] = __expectString(output[_t]); } - if (output["totalInstanceCount"] !== undefined) { - contents.TotalInstanceCount = __strictParseInt32(output["totalInstanceCount"]) as number; + if (output[_tIC] != null) { + contents[_TICo] = __strictParseInt32(output[_tIC]) as number; } - if (output["availableInstanceCount"] !== undefined) { - contents.AvailableInstanceCount = __strictParseInt32(output["availableInstanceCount"]) as number; + if (output[_aICv] != null) { + contents[_AICv] = __strictParseInt32(output[_aICv]) as number; } - if (output["ebsOptimized"] !== undefined) { - contents.EbsOptimized = __parseBoolean(output["ebsOptimized"]); + if (output[_eO] != null) { + contents[_EO] = __parseBoolean(output[_eO]); } - if (output["ephemeralStorage"] !== undefined) { - contents.EphemeralStorage = __parseBoolean(output["ephemeralStorage"]); + if (output[_eS] != null) { + contents[_ES] = __parseBoolean(output[_eS]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["startDate"] !== undefined) { - contents.StartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startDate"])); + if (output[_sD] != null) { + contents[_SDt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sD])); } - if (output["endDate"] !== undefined) { - contents.EndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["endDate"])); + if (output[_eD] != null) { + contents[_ED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eD])); } - if (output["endDateType"] !== undefined) { - contents.EndDateType = __expectString(output["endDateType"]); + if (output[_eDT] != null) { + contents[_EDT] = __expectString(output[_eDT]); } - if (output["instanceMatchCriteria"] !== undefined) { - contents.InstanceMatchCriteria = __expectString(output["instanceMatchCriteria"]); + if (output[_iMC] != null) { + contents[_IMC] = __expectString(output[_iMC]); } - if (output["createDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createDate"])); + if (output[_cD] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cD])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["capacityReservationFleetId"] !== undefined) { - contents.CapacityReservationFleetId = __expectString(output["capacityReservationFleetId"]); + if (output[_cRFI] != null) { + contents[_CRFIa] = __expectString(output[_cRFI]); } - if (output["placementGroupArn"] !== undefined) { - contents.PlacementGroupArn = __expectString(output["placementGroupArn"]); + if (output[_pGA] != null) { + contents[_PGA] = __expectString(output[_pGA]); } if (output.capacityAllocationSet === "") { - contents.CapacityAllocations = []; - } else if (output["capacityAllocationSet"] !== undefined && output["capacityAllocationSet"]["item"] !== undefined) { - contents.CapacityAllocations = de_CapacityAllocations( - __getArrayIfSingleItem(output["capacityAllocationSet"]["item"]), - context - ); + contents[_CAa] = []; + } else if (output[_cAS] != null && output[_cAS][_i] != null) { + contents[_CAa] = de_CapacityAllocations(__getArrayIfSingleItem(output[_cAS][_i]), context); } - if (output["reservationType"] !== undefined) { - contents.ReservationType = __expectString(output["reservationType"]); + if (output[_rT] != null) { + contents[_RTe] = __expectString(output[_rT]); } return contents; }; @@ -69898,51 +69758,45 @@ const de_CapacityReservation = (output: any, context: __SerdeContext): CapacityR */ const de_CapacityReservationFleet = (output: any, context: __SerdeContext): CapacityReservationFleet => { const contents: any = {}; - if (output["capacityReservationFleetId"] !== undefined) { - contents.CapacityReservationFleetId = __expectString(output["capacityReservationFleetId"]); + if (output[_cRFI] != null) { + contents[_CRFIa] = __expectString(output[_cRFI]); } - if (output["capacityReservationFleetArn"] !== undefined) { - contents.CapacityReservationFleetArn = __expectString(output["capacityReservationFleetArn"]); + if (output[_cRFA] != null) { + contents[_CRFA] = __expectString(output[_cRFA]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["totalTargetCapacity"] !== undefined) { - contents.TotalTargetCapacity = __strictParseInt32(output["totalTargetCapacity"]) as number; + if (output[_tTC] != null) { + contents[_TTC] = __strictParseInt32(output[_tTC]) as number; } - if (output["totalFulfilledCapacity"] !== undefined) { - contents.TotalFulfilledCapacity = __strictParseFloat(output["totalFulfilledCapacity"]) as number; + if (output[_tFC] != null) { + contents[_TFC] = __strictParseFloat(output[_tFC]) as number; } - if (output["tenancy"] !== undefined) { - contents.Tenancy = __expectString(output["tenancy"]); + if (output[_t] != null) { + contents[_Te] = __expectString(output[_t]); } - if (output["endDate"] !== undefined) { - contents.EndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["endDate"])); + if (output[_eD] != null) { + contents[_ED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eD])); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["instanceMatchCriteria"] !== undefined) { - contents.InstanceMatchCriteria = __expectString(output["instanceMatchCriteria"]); + if (output[_iMC] != null) { + contents[_IMC] = __expectString(output[_iMC]); } - if (output["allocationStrategy"] !== undefined) { - contents.AllocationStrategy = __expectString(output["allocationStrategy"]); + if (output[_aSl] != null) { + contents[_AS] = __expectString(output[_aSl]); } if (output.instanceTypeSpecificationSet === "") { - contents.InstanceTypeSpecifications = []; - } else if ( - output["instanceTypeSpecificationSet"] !== undefined && - output["instanceTypeSpecificationSet"]["item"] !== undefined - ) { - contents.InstanceTypeSpecifications = de_FleetCapacityReservationSet( - __getArrayIfSingleItem(output["instanceTypeSpecificationSet"]["item"]), - context - ); + contents[_ITS] = []; + } else if (output[_iTSS] != null && output[_iTSS][_i] != null) { + contents[_ITS] = de_FleetCapacityReservationSet(__getArrayIfSingleItem(output[_iTSS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -69955,14 +69809,14 @@ const de_CapacityReservationFleetCancellationState = ( context: __SerdeContext ): CapacityReservationFleetCancellationState => { const contents: any = {}; - if (output["currentFleetState"] !== undefined) { - contents.CurrentFleetState = __expectString(output["currentFleetState"]); + if (output[_cFS] != null) { + contents[_CFS] = __expectString(output[_cFS]); } - if (output["previousFleetState"] !== undefined) { - contents.PreviousFleetState = __expectString(output["previousFleetState"]); + if (output[_pFS] != null) { + contents[_PFS] = __expectString(output[_pFS]); } - if (output["capacityReservationFleetId"] !== undefined) { - contents.CapacityReservationFleetId = __expectString(output["capacityReservationFleetId"]); + if (output[_cRFI] != null) { + contents[_CRFIa] = __expectString(output[_cRFI]); } return contents; }; @@ -69997,11 +69851,11 @@ const de_CapacityReservationFleetSet = (output: any, context: __SerdeContext): C */ const de_CapacityReservationGroup = (output: any, context: __SerdeContext): CapacityReservationGroup => { const contents: any = {}; - if (output["groupArn"] !== undefined) { - contents.GroupArn = __expectString(output["groupArn"]); + if (output[_gA] != null) { + contents[_GA] = __expectString(output[_gA]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } return contents; }; @@ -70022,8 +69876,8 @@ const de_CapacityReservationGroupSet = (output: any, context: __SerdeContext): C */ const de_CapacityReservationOptions = (output: any, context: __SerdeContext): CapacityReservationOptions => { const contents: any = {}; - if (output["usageStrategy"] !== undefined) { - contents.UsageStrategy = __expectString(output["usageStrategy"]); + if (output[_uS] != null) { + contents[_USs] = __expectString(output[_uS]); } return contents; }; @@ -70047,14 +69901,11 @@ const de_CapacityReservationSpecificationResponse = ( context: __SerdeContext ): CapacityReservationSpecificationResponse => { const contents: any = {}; - if (output["capacityReservationPreference"] !== undefined) { - contents.CapacityReservationPreference = __expectString(output["capacityReservationPreference"]); + if (output[_cRP] != null) { + contents[_CRP] = __expectString(output[_cRP]); } - if (output["capacityReservationTarget"] !== undefined) { - contents.CapacityReservationTarget = de_CapacityReservationTargetResponse( - output["capacityReservationTarget"], - context - ); + if (output[_cRT] != null) { + contents[_CRTa] = de_CapacityReservationTargetResponse(output[_cRT], context); } return contents; }; @@ -70067,11 +69918,11 @@ const de_CapacityReservationTargetResponse = ( context: __SerdeContext ): CapacityReservationTargetResponse => { const contents: any = {}; - if (output["capacityReservationId"] !== undefined) { - contents.CapacityReservationId = __expectString(output["capacityReservationId"]); + if (output[_cRI] != null) { + contents[_CRI] = __expectString(output[_cRI]); } - if (output["capacityReservationResourceGroupArn"] !== undefined) { - contents.CapacityReservationResourceGroupArn = __expectString(output["capacityReservationResourceGroupArn"]); + if (output[_cRRGA] != null) { + contents[_CRRGA] = __expectString(output[_cRRGA]); } return contents; }; @@ -70081,22 +69932,22 @@ const de_CapacityReservationTargetResponse = ( */ const de_CarrierGateway = (output: any, context: __SerdeContext): CarrierGateway => { const contents: any = {}; - if (output["carrierGatewayId"] !== undefined) { - contents.CarrierGatewayId = __expectString(output["carrierGatewayId"]); + if (output[_cGI] != null) { + contents[_CGI] = __expectString(output[_cGI]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -70117,8 +69968,8 @@ const de_CarrierGatewaySet = (output: any, context: __SerdeContext): CarrierGate */ const de_CertificateAuthentication = (output: any, context: __SerdeContext): CertificateAuthentication => { const contents: any = {}; - if (output["clientRootCertificateChain"] !== undefined) { - contents.ClientRootCertificateChain = __expectString(output["clientRootCertificateChain"]); + if (output[_cRCC] != null) { + contents[_CRCC] = __expectString(output[_cRCC]); } return contents; }; @@ -70128,8 +69979,8 @@ const de_CertificateAuthentication = (output: any, context: __SerdeContext): Cer */ const de_CidrBlock = (output: any, context: __SerdeContext): CidrBlock => { const contents: any = {}; - if (output["cidrBlock"] !== undefined) { - contents.CidrBlock = __expectString(output["cidrBlock"]); + if (output[_cB] != null) { + contents[_CB] = __expectString(output[_cB]); } return contents; }; @@ -70150,11 +70001,11 @@ const de_CidrBlockSet = (output: any, context: __SerdeContext): CidrBlock[] => { */ const de_ClassicLinkDnsSupport = (output: any, context: __SerdeContext): ClassicLinkDnsSupport => { const contents: any = {}; - if (output["classicLinkDnsSupported"] !== undefined) { - contents.ClassicLinkDnsSupported = __parseBoolean(output["classicLinkDnsSupported"]); + if (output[_cLDS] != null) { + contents[_CLDS] = __parseBoolean(output[_cLDS]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -70176,20 +70027,20 @@ const de_ClassicLinkDnsSupportList = (output: any, context: __SerdeContext): Cla const de_ClassicLinkInstance = (output: any, context: __SerdeContext): ClassicLinkInstance => { const contents: any = {}; if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.Groups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -70210,8 +70061,8 @@ const de_ClassicLinkInstanceList = (output: any, context: __SerdeContext): Class */ const de_ClassicLoadBalancer = (output: any, context: __SerdeContext): ClassicLoadBalancer => { const contents: any = {}; - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } return contents; }; @@ -70233,12 +70084,9 @@ const de_ClassicLoadBalancers = (output: any, context: __SerdeContext): ClassicL const de_ClassicLoadBalancersConfig = (output: any, context: __SerdeContext): ClassicLoadBalancersConfig => { const contents: any = {}; if (output.classicLoadBalancers === "") { - contents.ClassicLoadBalancers = []; - } else if (output["classicLoadBalancers"] !== undefined && output["classicLoadBalancers"]["item"] !== undefined) { - contents.ClassicLoadBalancers = de_ClassicLoadBalancers( - __getArrayIfSingleItem(output["classicLoadBalancers"]["item"]), - context - ); + contents[_CLB] = []; + } else if (output[_cLB] != null && output[_cLB][_i] != null) { + contents[_CLB] = de_ClassicLoadBalancers(__getArrayIfSingleItem(output[_cLB][_i]), context); } return contents; }; @@ -70251,11 +70099,11 @@ const de_ClientCertificateRevocationListStatus = ( context: __SerdeContext ): ClientCertificateRevocationListStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -70265,14 +70113,14 @@ const de_ClientCertificateRevocationListStatus = ( */ const de_ClientConnectResponseOptions = (output: any, context: __SerdeContext): ClientConnectResponseOptions => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } - if (output["lambdaFunctionArn"] !== undefined) { - contents.LambdaFunctionArn = __expectString(output["lambdaFunctionArn"]); + if (output[_lFA] != null) { + contents[_LFA] = __expectString(output[_lFA]); } - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnEndpointAttributeStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnEndpointAttributeStatus(output[_sta], context); } return contents; }; @@ -70285,11 +70133,11 @@ const de_ClientLoginBannerResponseOptions = ( context: __SerdeContext ): ClientLoginBannerResponseOptions => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } - if (output["bannerText"] !== undefined) { - contents.BannerText = __expectString(output["bannerText"]); + if (output[_bT] != null) { + contents[_BT] = __expectString(output[_bT]); } return contents; }; @@ -70299,17 +70147,17 @@ const de_ClientLoginBannerResponseOptions = ( */ const de_ClientVpnAuthentication = (output: any, context: __SerdeContext): ClientVpnAuthentication => { const contents: any = {}; - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["activeDirectory"] !== undefined) { - contents.ActiveDirectory = de_DirectoryServiceAuthentication(output["activeDirectory"], context); + if (output[_aD] != null) { + contents[_AD] = de_DirectoryServiceAuthentication(output[_aD], context); } - if (output["mutualAuthentication"] !== undefined) { - contents.MutualAuthentication = de_CertificateAuthentication(output["mutualAuthentication"], context); + if (output[_mA] != null) { + contents[_MA] = de_CertificateAuthentication(output[_mA], context); } - if (output["federatedAuthentication"] !== undefined) { - contents.FederatedAuthentication = de_FederatedAuthentication(output["federatedAuthentication"], context); + if (output[_fA] != null) { + contents[_FA] = de_FederatedAuthentication(output[_fA], context); } return contents; }; @@ -70333,11 +70181,11 @@ const de_ClientVpnAuthorizationRuleStatus = ( context: __SerdeContext ): ClientVpnAuthorizationRuleStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -70347,55 +70195,49 @@ const de_ClientVpnAuthorizationRuleStatus = ( */ const de_ClientVpnConnection = (output: any, context: __SerdeContext): ClientVpnConnection => { const contents: any = {}; - if (output["clientVpnEndpointId"] !== undefined) { - contents.ClientVpnEndpointId = __expectString(output["clientVpnEndpointId"]); + if (output[_cVEI] != null) { + contents[_CVEI] = __expectString(output[_cVEI]); } - if (output["timestamp"] !== undefined) { - contents.Timestamp = __expectString(output["timestamp"]); + if (output[_ti] != null) { + contents[_Tim] = __expectString(output[_ti]); } - if (output["connectionId"] !== undefined) { - contents.ConnectionId = __expectString(output["connectionId"]); + if (output[_cIon] != null) { + contents[_CIo] = __expectString(output[_cIon]); } - if (output["username"] !== undefined) { - contents.Username = __expectString(output["username"]); + if (output[_us] != null) { + contents[_Us] = __expectString(output[_us]); } - if (output["connectionEstablishedTime"] !== undefined) { - contents.ConnectionEstablishedTime = __expectString(output["connectionEstablishedTime"]); + if (output[_cET] != null) { + contents[_CETo] = __expectString(output[_cET]); } - if (output["ingressBytes"] !== undefined) { - contents.IngressBytes = __expectString(output["ingressBytes"]); + if (output[_iB] != null) { + contents[_IB] = __expectString(output[_iB]); } - if (output["egressBytes"] !== undefined) { - contents.EgressBytes = __expectString(output["egressBytes"]); + if (output[_eB] != null) { + contents[_EB] = __expectString(output[_eB]); } - if (output["ingressPackets"] !== undefined) { - contents.IngressPackets = __expectString(output["ingressPackets"]); + if (output[_iPng] != null) { + contents[_IPng] = __expectString(output[_iPng]); } - if (output["egressPackets"] !== undefined) { - contents.EgressPackets = __expectString(output["egressPackets"]); + if (output[_eP] != null) { + contents[_EPg] = __expectString(output[_eP]); } - if (output["clientIp"] !== undefined) { - contents.ClientIp = __expectString(output["clientIp"]); + if (output[_cIl] != null) { + contents[_CIli] = __expectString(output[_cIl]); } - if (output["commonName"] !== undefined) { - contents.CommonName = __expectString(output["commonName"]); + if (output[_cN] != null) { + contents[_CN] = __expectString(output[_cN]); } - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnConnectionStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnConnectionStatus(output[_sta], context); } - if (output["connectionEndTime"] !== undefined) { - contents.ConnectionEndTime = __expectString(output["connectionEndTime"]); + if (output[_cETo] != null) { + contents[_CETon] = __expectString(output[_cETo]); } if (output.postureComplianceStatusSet === "") { - contents.PostureComplianceStatuses = []; - } else if ( - output["postureComplianceStatusSet"] !== undefined && - output["postureComplianceStatusSet"]["item"] !== undefined - ) { - contents.PostureComplianceStatuses = de_ValueStringList( - __getArrayIfSingleItem(output["postureComplianceStatusSet"]["item"]), - context - ); + contents[_PCS] = []; + } else if (output[_pCSS] != null && output[_pCSS][_i] != null) { + contents[_PCS] = de_ValueStringList(__getArrayIfSingleItem(output[_pCSS][_i]), context); } return contents; }; @@ -70416,11 +70258,11 @@ const de_ClientVpnConnectionSet = (output: any, context: __SerdeContext): Client */ const de_ClientVpnConnectionStatus = (output: any, context: __SerdeContext): ClientVpnConnectionStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -70430,99 +70272,84 @@ const de_ClientVpnConnectionStatus = (output: any, context: __SerdeContext): Cli */ const de_ClientVpnEndpoint = (output: any, context: __SerdeContext): ClientVpnEndpoint => { const contents: any = {}; - if (output["clientVpnEndpointId"] !== undefined) { - contents.ClientVpnEndpointId = __expectString(output["clientVpnEndpointId"]); + if (output[_cVEI] != null) { + contents[_CVEI] = __expectString(output[_cVEI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnEndpointStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnEndpointStatus(output[_sta], context); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectString(output["creationTime"]); + if (output[_cTre] != null) { + contents[_CTre] = __expectString(output[_cTre]); } - if (output["deletionTime"] !== undefined) { - contents.DeletionTime = __expectString(output["deletionTime"]); + if (output[_dT] != null) { + contents[_DTel] = __expectString(output[_dT]); } - if (output["dnsName"] !== undefined) { - contents.DnsName = __expectString(output["dnsName"]); + if (output[_dNn] != null) { + contents[_DNn] = __expectString(output[_dNn]); } - if (output["clientCidrBlock"] !== undefined) { - contents.ClientCidrBlock = __expectString(output["clientCidrBlock"]); + if (output[_cCB] != null) { + contents[_CCB] = __expectString(output[_cCB]); } if (output.dnsServer === "") { - contents.DnsServers = []; - } else if (output["dnsServer"] !== undefined && output["dnsServer"]["item"] !== undefined) { - contents.DnsServers = de_ValueStringList(__getArrayIfSingleItem(output["dnsServer"]["item"]), context); + contents[_DSn] = []; + } else if (output[_dS] != null && output[_dS][_i] != null) { + contents[_DSn] = de_ValueStringList(__getArrayIfSingleItem(output[_dS][_i]), context); } - if (output["splitTunnel"] !== undefined) { - contents.SplitTunnel = __parseBoolean(output["splitTunnel"]); + if (output[_sTp] != null) { + contents[_ST] = __parseBoolean(output[_sTp]); } - if (output["vpnProtocol"] !== undefined) { - contents.VpnProtocol = __expectString(output["vpnProtocol"]); + if (output[_vP] != null) { + contents[_VPp] = __expectString(output[_vP]); } - if (output["transportProtocol"] !== undefined) { - contents.TransportProtocol = __expectString(output["transportProtocol"]); + if (output[_tP] != null) { + contents[_TPr] = __expectString(output[_tP]); } - if (output["vpnPort"] !== undefined) { - contents.VpnPort = __strictParseInt32(output["vpnPort"]) as number; + if (output[_vPp] != null) { + contents[_VP] = __strictParseInt32(output[_vPp]) as number; } if (output.associatedTargetNetwork === "") { - contents.AssociatedTargetNetworks = []; - } else if ( - output["associatedTargetNetwork"] !== undefined && - output["associatedTargetNetwork"]["item"] !== undefined - ) { - contents.AssociatedTargetNetworks = de_AssociatedTargetNetworkSet( - __getArrayIfSingleItem(output["associatedTargetNetwork"]["item"]), - context - ); + contents[_ATN] = []; + } else if (output[_aTN] != null && output[_aTN][_i] != null) { + contents[_ATN] = de_AssociatedTargetNetworkSet(__getArrayIfSingleItem(output[_aTN][_i]), context); } - if (output["serverCertificateArn"] !== undefined) { - contents.ServerCertificateArn = __expectString(output["serverCertificateArn"]); + if (output[_sCA] != null) { + contents[_SCA] = __expectString(output[_sCA]); } if (output.authenticationOptions === "") { - contents.AuthenticationOptions = []; - } else if (output["authenticationOptions"] !== undefined && output["authenticationOptions"]["item"] !== undefined) { - contents.AuthenticationOptions = de_ClientVpnAuthenticationList( - __getArrayIfSingleItem(output["authenticationOptions"]["item"]), - context - ); + contents[_AO] = []; + } else if (output[_aO] != null && output[_aO][_i] != null) { + contents[_AO] = de_ClientVpnAuthenticationList(__getArrayIfSingleItem(output[_aO][_i]), context); } - if (output["connectionLogOptions"] !== undefined) { - contents.ConnectionLogOptions = de_ConnectionLogResponseOptions(output["connectionLogOptions"], context); + if (output[_cLO] != null) { + contents[_CLO] = de_ConnectionLogResponseOptions(output[_cLO], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } if (output.securityGroupIdSet === "") { - contents.SecurityGroupIds = []; - } else if (output["securityGroupIdSet"] !== undefined && output["securityGroupIdSet"]["item"] !== undefined) { - contents.SecurityGroupIds = de_ClientVpnSecurityGroupIdSet( - __getArrayIfSingleItem(output["securityGroupIdSet"]["item"]), - context - ); + contents[_SGI] = []; + } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { + contents[_SGI] = de_ClientVpnSecurityGroupIdSet(__getArrayIfSingleItem(output[_sGIS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["selfServicePortalUrl"] !== undefined) { - contents.SelfServicePortalUrl = __expectString(output["selfServicePortalUrl"]); + if (output[_sSPU] != null) { + contents[_SSPU] = __expectString(output[_sSPU]); } - if (output["clientConnectOptions"] !== undefined) { - contents.ClientConnectOptions = de_ClientConnectResponseOptions(output["clientConnectOptions"], context); + if (output[_cCO] != null) { + contents[_CCO] = de_ClientConnectResponseOptions(output[_cCO], context); } - if (output["sessionTimeoutHours"] !== undefined) { - contents.SessionTimeoutHours = __strictParseInt32(output["sessionTimeoutHours"]) as number; + if (output[_sTH] != null) { + contents[_STH] = __strictParseInt32(output[_sTH]) as number; } - if (output["clientLoginBannerOptions"] !== undefined) { - contents.ClientLoginBannerOptions = de_ClientLoginBannerResponseOptions( - output["clientLoginBannerOptions"], - context - ); + if (output[_cLBO] != null) { + contents[_CLBO] = de_ClientLoginBannerResponseOptions(output[_cLBO], context); } return contents; }; @@ -70535,11 +70362,11 @@ const de_ClientVpnEndpointAttributeStatus = ( context: __SerdeContext ): ClientVpnEndpointAttributeStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -70549,11 +70376,11 @@ const de_ClientVpnEndpointAttributeStatus = ( */ const de_ClientVpnEndpointStatus = (output: any, context: __SerdeContext): ClientVpnEndpointStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -70563,26 +70390,26 @@ const de_ClientVpnEndpointStatus = (output: any, context: __SerdeContext): Clien */ const de_ClientVpnRoute = (output: any, context: __SerdeContext): ClientVpnRoute => { const contents: any = {}; - if (output["clientVpnEndpointId"] !== undefined) { - contents.ClientVpnEndpointId = __expectString(output["clientVpnEndpointId"]); + if (output[_cVEI] != null) { + contents[_CVEI] = __expectString(output[_cVEI]); } - if (output["destinationCidr"] !== undefined) { - contents.DestinationCidr = __expectString(output["destinationCidr"]); + if (output[_dC] != null) { + contents[_DCe] = __expectString(output[_dC]); } - if (output["targetSubnet"] !== undefined) { - contents.TargetSubnet = __expectString(output["targetSubnet"]); + if (output[_tSa] != null) { + contents[_TSa] = __expectString(output[_tSa]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["origin"] !== undefined) { - contents.Origin = __expectString(output["origin"]); + if (output[_o] != null) { + contents[_Or] = __expectString(output[_o]); } - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnRouteStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnRouteStatus(output[_sta], context); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } return contents; }; @@ -70603,11 +70430,11 @@ const de_ClientVpnRouteSet = (output: any, context: __SerdeContext): ClientVpnRo */ const de_ClientVpnRouteStatus = (output: any, context: __SerdeContext): ClientVpnRouteStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -70628,14 +70455,14 @@ const de_ClientVpnSecurityGroupIdSet = (output: any, context: __SerdeContext): s */ const de_CloudWatchLogOptions = (output: any, context: __SerdeContext): CloudWatchLogOptions => { const contents: any = {}; - if (output["logEnabled"] !== undefined) { - contents.LogEnabled = __parseBoolean(output["logEnabled"]); + if (output[_lE] != null) { + contents[_LE] = __parseBoolean(output[_lE]); } - if (output["logGroupArn"] !== undefined) { - contents.LogGroupArn = __expectString(output["logGroupArn"]); + if (output[_lGA] != null) { + contents[_LGA] = __expectString(output[_lGA]); } - if (output["logOutputFormat"] !== undefined) { - contents.LogOutputFormat = __expectString(output["logOutputFormat"]); + if (output[_lOF] != null) { + contents[_LOF] = __expectString(output[_lOF]); } return contents; }; @@ -70645,17 +70472,17 @@ const de_CloudWatchLogOptions = (output: any, context: __SerdeContext): CloudWat */ const de_CoipAddressUsage = (output: any, context: __SerdeContext): CoipAddressUsage => { const contents: any = {}; - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["awsAccountId"] !== undefined) { - contents.AwsAccountId = __expectString(output["awsAccountId"]); + if (output[_aAI] != null) { + contents[_AAI] = __expectString(output[_aAI]); } - if (output["awsService"] !== undefined) { - contents.AwsService = __expectString(output["awsService"]); + if (output[_aSw] != null) { + contents[_ASw] = __expectString(output[_aSw]); } - if (output["coIp"] !== undefined) { - contents.CoIp = __expectString(output["coIp"]); + if (output[_cIop] != null) { + contents[_CIop] = __expectString(output[_cIop]); } return contents; }; @@ -70676,14 +70503,14 @@ const de_CoipAddressUsageSet = (output: any, context: __SerdeContext): CoipAddre */ const de_CoipCidr = (output: any, context: __SerdeContext): CoipCidr => { const contents: any = {}; - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["coipPoolId"] !== undefined) { - contents.CoipPoolId = __expectString(output["coipPoolId"]); + if (output[_cPI] != null) { + contents[_CPIo] = __expectString(output[_cPI]); } - if (output["localGatewayRouteTableId"] !== undefined) { - contents.LocalGatewayRouteTableId = __expectString(output["localGatewayRouteTableId"]); + if (output[_lGRTI] != null) { + contents[_LGRTI] = __expectString(output[_lGRTI]); } return contents; }; @@ -70693,24 +70520,24 @@ const de_CoipCidr = (output: any, context: __SerdeContext): CoipCidr => { */ const de_CoipPool = (output: any, context: __SerdeContext): CoipPool => { const contents: any = {}; - if (output["poolId"] !== undefined) { - contents.PoolId = __expectString(output["poolId"]); + if (output[_pIo] != null) { + contents[_PIo] = __expectString(output[_pIo]); } if (output.poolCidrSet === "") { - contents.PoolCidrs = []; - } else if (output["poolCidrSet"] !== undefined && output["poolCidrSet"]["item"] !== undefined) { - contents.PoolCidrs = de_ValueStringList(__getArrayIfSingleItem(output["poolCidrSet"]["item"]), context); + contents[_PCo] = []; + } else if (output[_pCS] != null && output[_pCS][_i] != null) { + contents[_PCo] = de_ValueStringList(__getArrayIfSingleItem(output[_pCS][_i]), context); } - if (output["localGatewayRouteTableId"] !== undefined) { - contents.LocalGatewayRouteTableId = __expectString(output["localGatewayRouteTableId"]); + if (output[_lGRTI] != null) { + contents[_LGRTI] = __expectString(output[_lGRTI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["poolArn"] !== undefined) { - contents.PoolArn = __expectString(output["poolArn"]); + if (output[_pA] != null) { + contents[_PAo] = __expectString(output[_pA]); } return contents; }; @@ -70731,11 +70558,11 @@ const de_CoipPoolSet = (output: any, context: __SerdeContext): CoipPool[] => { */ const de_ConfirmProductInstanceResult = (output: any, context: __SerdeContext): ConfirmProductInstanceResult => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -70745,14 +70572,14 @@ const de_ConfirmProductInstanceResult = (output: any, context: __SerdeContext): */ const de_ConnectionLogResponseOptions = (output: any, context: __SerdeContext): ConnectionLogResponseOptions => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_En] != null) { + contents[_En] = __parseBoolean(output[_En]); } - if (output["CloudwatchLogGroup"] !== undefined) { - contents.CloudwatchLogGroup = __expectString(output["CloudwatchLogGroup"]); + if (output[_CLG] != null) { + contents[_CLG] = __expectString(output[_CLG]); } - if (output["CloudwatchLogStream"] !== undefined) { - contents.CloudwatchLogStream = __expectString(output["CloudwatchLogStream"]); + if (output[_CLS] != null) { + contents[_CLS] = __expectString(output[_CLS]); } return contents; }; @@ -70762,28 +70589,28 @@ const de_ConnectionLogResponseOptions = (output: any, context: __SerdeContext): */ const de_ConnectionNotification = (output: any, context: __SerdeContext): ConnectionNotification => { const contents: any = {}; - if (output["connectionNotificationId"] !== undefined) { - contents.ConnectionNotificationId = __expectString(output["connectionNotificationId"]); + if (output[_cNI] != null) { + contents[_CNIon] = __expectString(output[_cNI]); } - if (output["serviceId"] !== undefined) { - contents.ServiceId = __expectString(output["serviceId"]); + if (output[_sI] != null) { + contents[_SIe] = __expectString(output[_sI]); } - if (output["vpcEndpointId"] !== undefined) { - contents.VpcEndpointId = __expectString(output["vpcEndpointId"]); + if (output[_vEI] != null) { + contents[_VEIp] = __expectString(output[_vEI]); } - if (output["connectionNotificationType"] !== undefined) { - contents.ConnectionNotificationType = __expectString(output["connectionNotificationType"]); + if (output[_cNT] != null) { + contents[_CNT] = __expectString(output[_cNT]); } - if (output["connectionNotificationArn"] !== undefined) { - contents.ConnectionNotificationArn = __expectString(output["connectionNotificationArn"]); + if (output[_cNAo] != null) { + contents[_CNAon] = __expectString(output[_cNAo]); } if (output.connectionEvents === "") { - contents.ConnectionEvents = []; - } else if (output["connectionEvents"] !== undefined && output["connectionEvents"]["item"] !== undefined) { - contents.ConnectionEvents = de_ValueStringList(__getArrayIfSingleItem(output["connectionEvents"]["item"]), context); + contents[_CEo] = []; + } else if (output[_cE] != null && output[_cE][_i] != null) { + contents[_CEo] = de_ValueStringList(__getArrayIfSingleItem(output[_cE][_i]), context); } - if (output["connectionNotificationState"] !== undefined) { - contents.ConnectionNotificationState = __expectString(output["connectionNotificationState"]); + if (output[_cNS] != null) { + contents[_CNS] = __expectString(output[_cNS]); } return contents; }; @@ -70804,14 +70631,14 @@ const de_ConnectionNotificationSet = (output: any, context: __SerdeContext): Con */ const de_ConnectionTrackingConfiguration = (output: any, context: __SerdeContext): ConnectionTrackingConfiguration => { const contents: any = {}; - if (output["tcpEstablishedTimeout"] !== undefined) { - contents.TcpEstablishedTimeout = __strictParseInt32(output["tcpEstablishedTimeout"]) as number; + if (output[_tET] != null) { + contents[_TET] = __strictParseInt32(output[_tET]) as number; } - if (output["udpStreamTimeout"] !== undefined) { - contents.UdpStreamTimeout = __strictParseInt32(output["udpStreamTimeout"]) as number; + if (output[_uST] != null) { + contents[_UST] = __strictParseInt32(output[_uST]) as number; } - if (output["udpTimeout"] !== undefined) { - contents.UdpTimeout = __strictParseInt32(output["udpTimeout"]) as number; + if (output[_uTd] != null) { + contents[_UT] = __strictParseInt32(output[_uTd]) as number; } return contents; }; @@ -70821,14 +70648,14 @@ const de_ConnectionTrackingConfiguration = (output: any, context: __SerdeContext */ const de_ConnectionTrackingSpecification = (output: any, context: __SerdeContext): ConnectionTrackingSpecification => { const contents: any = {}; - if (output["tcpEstablishedTimeout"] !== undefined) { - contents.TcpEstablishedTimeout = __strictParseInt32(output["tcpEstablishedTimeout"]) as number; + if (output[_tET] != null) { + contents[_TET] = __strictParseInt32(output[_tET]) as number; } - if (output["udpTimeout"] !== undefined) { - contents.UdpTimeout = __strictParseInt32(output["udpTimeout"]) as number; + if (output[_uTd] != null) { + contents[_UT] = __strictParseInt32(output[_uTd]) as number; } - if (output["udpStreamTimeout"] !== undefined) { - contents.UdpStreamTimeout = __strictParseInt32(output["udpStreamTimeout"]) as number; + if (output[_uST] != null) { + contents[_UST] = __strictParseInt32(output[_uST]) as number; } return contents; }; @@ -70841,14 +70668,14 @@ const de_ConnectionTrackingSpecificationRequest = ( context: __SerdeContext ): ConnectionTrackingSpecificationRequest => { const contents: any = {}; - if (output["TcpEstablishedTimeout"] !== undefined) { - contents.TcpEstablishedTimeout = __strictParseInt32(output["TcpEstablishedTimeout"]) as number; + if (output[_TET] != null) { + contents[_TET] = __strictParseInt32(output[_TET]) as number; } - if (output["UdpStreamTimeout"] !== undefined) { - contents.UdpStreamTimeout = __strictParseInt32(output["UdpStreamTimeout"]) as number; + if (output[_UST] != null) { + contents[_UST] = __strictParseInt32(output[_UST]) as number; } - if (output["UdpTimeout"] !== undefined) { - contents.UdpTimeout = __strictParseInt32(output["UdpTimeout"]) as number; + if (output[_UT] != null) { + contents[_UT] = __strictParseInt32(output[_UT]) as number; } return contents; }; @@ -70861,14 +70688,14 @@ const de_ConnectionTrackingSpecificationResponse = ( context: __SerdeContext ): ConnectionTrackingSpecificationResponse => { const contents: any = {}; - if (output["tcpEstablishedTimeout"] !== undefined) { - contents.TcpEstablishedTimeout = __strictParseInt32(output["tcpEstablishedTimeout"]) as number; + if (output[_tET] != null) { + contents[_TET] = __strictParseInt32(output[_tET]) as number; } - if (output["udpStreamTimeout"] !== undefined) { - contents.UdpStreamTimeout = __strictParseInt32(output["udpStreamTimeout"]) as number; + if (output[_uST] != null) { + contents[_UST] = __strictParseInt32(output[_uST]) as number; } - if (output["udpTimeout"] !== undefined) { - contents.UdpTimeout = __strictParseInt32(output["udpTimeout"]) as number; + if (output[_uTd] != null) { + contents[_UT] = __strictParseInt32(output[_uTd]) as number; } return contents; }; @@ -70878,28 +70705,28 @@ const de_ConnectionTrackingSpecificationResponse = ( */ const de_ConversionTask = (output: any, context: __SerdeContext): ConversionTask => { const contents: any = {}; - if (output["conversionTaskId"] !== undefined) { - contents.ConversionTaskId = __expectString(output["conversionTaskId"]); + if (output[_cTI] != null) { + contents[_CTI] = __expectString(output[_cTI]); } - if (output["expirationTime"] !== undefined) { - contents.ExpirationTime = __expectString(output["expirationTime"]); + if (output[_eT] != null) { + contents[_ETx] = __expectString(output[_eT]); } - if (output["importInstance"] !== undefined) { - contents.ImportInstance = de_ImportInstanceTaskDetails(output["importInstance"], context); + if (output[_iIm] != null) { + contents[_IIm] = de_ImportInstanceTaskDetails(output[_iIm], context); } - if (output["importVolume"] !== undefined) { - contents.ImportVolume = de_ImportVolumeTaskDetails(output["importVolume"], context); + if (output[_iV] != null) { + contents[_IV] = de_ImportVolumeTaskDetails(output[_iV], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -70909,8 +70736,8 @@ const de_ConversionTask = (output: any, context: __SerdeContext): ConversionTask */ const de_CopyFpgaImageResult = (output: any, context: __SerdeContext): CopyFpgaImageResult => { const contents: any = {}; - if (output["fpgaImageId"] !== undefined) { - contents.FpgaImageId = __expectString(output["fpgaImageId"]); + if (output[_fII] != null) { + contents[_FII] = __expectString(output[_fII]); } return contents; }; @@ -70920,8 +70747,8 @@ const de_CopyFpgaImageResult = (output: any, context: __SerdeContext): CopyFpgaI */ const de_CopyImageResult = (output: any, context: __SerdeContext): CopyImageResult => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } return contents; }; @@ -70931,13 +70758,13 @@ const de_CopyImageResult = (output: any, context: __SerdeContext): CopyImageResu */ const de_CopySnapshotResult = (output: any, context: __SerdeContext): CopySnapshotResult => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -70969,14 +70796,14 @@ const de_CpuManufacturerSet = (output: any, context: __SerdeContext): CpuManufac */ const de_CpuOptions = (output: any, context: __SerdeContext): CpuOptions => { const contents: any = {}; - if (output["coreCount"] !== undefined) { - contents.CoreCount = __strictParseInt32(output["coreCount"]) as number; + if (output[_cCo] != null) { + contents[_CC] = __strictParseInt32(output[_cCo]) as number; } - if (output["threadsPerCore"] !== undefined) { - contents.ThreadsPerCore = __strictParseInt32(output["threadsPerCore"]) as number; + if (output[_tPC] != null) { + contents[_TPC] = __strictParseInt32(output[_tPC]) as number; } - if (output["amdSevSnp"] !== undefined) { - contents.AmdSevSnp = __expectString(output["amdSevSnp"]); + if (output[_aSS] != null) { + contents[_ASS] = __expectString(output[_aSS]); } return contents; }; @@ -70989,48 +70816,42 @@ const de_CreateCapacityReservationFleetResult = ( context: __SerdeContext ): CreateCapacityReservationFleetResult => { const contents: any = {}; - if (output["capacityReservationFleetId"] !== undefined) { - contents.CapacityReservationFleetId = __expectString(output["capacityReservationFleetId"]); + if (output[_cRFI] != null) { + contents[_CRFIa] = __expectString(output[_cRFI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["totalTargetCapacity"] !== undefined) { - contents.TotalTargetCapacity = __strictParseInt32(output["totalTargetCapacity"]) as number; + if (output[_tTC] != null) { + contents[_TTC] = __strictParseInt32(output[_tTC]) as number; } - if (output["totalFulfilledCapacity"] !== undefined) { - contents.TotalFulfilledCapacity = __strictParseFloat(output["totalFulfilledCapacity"]) as number; + if (output[_tFC] != null) { + contents[_TFC] = __strictParseFloat(output[_tFC]) as number; } - if (output["instanceMatchCriteria"] !== undefined) { - contents.InstanceMatchCriteria = __expectString(output["instanceMatchCriteria"]); + if (output[_iMC] != null) { + contents[_IMC] = __expectString(output[_iMC]); } - if (output["allocationStrategy"] !== undefined) { - contents.AllocationStrategy = __expectString(output["allocationStrategy"]); + if (output[_aSl] != null) { + contents[_AS] = __expectString(output[_aSl]); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["endDate"] !== undefined) { - contents.EndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["endDate"])); + if (output[_eD] != null) { + contents[_ED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eD])); } - if (output["tenancy"] !== undefined) { - contents.Tenancy = __expectString(output["tenancy"]); + if (output[_t] != null) { + contents[_Te] = __expectString(output[_t]); } if (output.fleetCapacityReservationSet === "") { - contents.FleetCapacityReservations = []; - } else if ( - output["fleetCapacityReservationSet"] !== undefined && - output["fleetCapacityReservationSet"]["item"] !== undefined - ) { - contents.FleetCapacityReservations = de_FleetCapacityReservationSet( - __getArrayIfSingleItem(output["fleetCapacityReservationSet"]["item"]), - context - ); + contents[_FCR] = []; + } else if (output[_fCRS] != null && output[_fCRS][_i] != null) { + contents[_FCR] = de_FleetCapacityReservationSet(__getArrayIfSingleItem(output[_fCRS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -71040,8 +70861,8 @@ const de_CreateCapacityReservationFleetResult = ( */ const de_CreateCapacityReservationResult = (output: any, context: __SerdeContext): CreateCapacityReservationResult => { const contents: any = {}; - if (output["capacityReservation"] !== undefined) { - contents.CapacityReservation = de_CapacityReservation(output["capacityReservation"], context); + if (output[_cR] != null) { + contents[_CRapa] = de_CapacityReservation(output[_cR], context); } return contents; }; @@ -71051,8 +70872,8 @@ const de_CreateCapacityReservationResult = (output: any, context: __SerdeContext */ const de_CreateCarrierGatewayResult = (output: any, context: __SerdeContext): CreateCarrierGatewayResult => { const contents: any = {}; - if (output["carrierGateway"] !== undefined) { - contents.CarrierGateway = de_CarrierGateway(output["carrierGateway"], context); + if (output[_cG] != null) { + contents[_CG] = de_CarrierGateway(output[_cG], context); } return contents; }; @@ -71062,14 +70883,14 @@ const de_CreateCarrierGatewayResult = (output: any, context: __SerdeContext): Cr */ const de_CreateClientVpnEndpointResult = (output: any, context: __SerdeContext): CreateClientVpnEndpointResult => { const contents: any = {}; - if (output["clientVpnEndpointId"] !== undefined) { - contents.ClientVpnEndpointId = __expectString(output["clientVpnEndpointId"]); + if (output[_cVEI] != null) { + contents[_CVEI] = __expectString(output[_cVEI]); } - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnEndpointStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnEndpointStatus(output[_sta], context); } - if (output["dnsName"] !== undefined) { - contents.DnsName = __expectString(output["dnsName"]); + if (output[_dNn] != null) { + contents[_DNn] = __expectString(output[_dNn]); } return contents; }; @@ -71079,8 +70900,8 @@ const de_CreateClientVpnEndpointResult = (output: any, context: __SerdeContext): */ const de_CreateClientVpnRouteResult = (output: any, context: __SerdeContext): CreateClientVpnRouteResult => { const contents: any = {}; - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnRouteStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnRouteStatus(output[_sta], context); } return contents; }; @@ -71090,8 +70911,8 @@ const de_CreateClientVpnRouteResult = (output: any, context: __SerdeContext): Cr */ const de_CreateCoipCidrResult = (output: any, context: __SerdeContext): CreateCoipCidrResult => { const contents: any = {}; - if (output["coipCidr"] !== undefined) { - contents.CoipCidr = de_CoipCidr(output["coipCidr"], context); + if (output[_cCoi] != null) { + contents[_CCo] = de_CoipCidr(output[_cCoi], context); } return contents; }; @@ -71101,8 +70922,8 @@ const de_CreateCoipCidrResult = (output: any, context: __SerdeContext): CreateCo */ const de_CreateCoipPoolResult = (output: any, context: __SerdeContext): CreateCoipPoolResult => { const contents: any = {}; - if (output["coipPool"] !== undefined) { - contents.CoipPool = de_CoipPool(output["coipPool"], context); + if (output[_cP] != null) { + contents[_CP] = de_CoipPool(output[_cP], context); } return contents; }; @@ -71112,8 +70933,8 @@ const de_CreateCoipPoolResult = (output: any, context: __SerdeContext): CreateCo */ const de_CreateCustomerGatewayResult = (output: any, context: __SerdeContext): CreateCustomerGatewayResult => { const contents: any = {}; - if (output["customerGateway"] !== undefined) { - contents.CustomerGateway = de_CustomerGateway(output["customerGateway"], context); + if (output[_cGu] != null) { + contents[_CGu] = de_CustomerGateway(output[_cGu], context); } return contents; }; @@ -71123,8 +70944,8 @@ const de_CreateCustomerGatewayResult = (output: any, context: __SerdeContext): C */ const de_CreateDefaultSubnetResult = (output: any, context: __SerdeContext): CreateDefaultSubnetResult => { const contents: any = {}; - if (output["subnet"] !== undefined) { - contents.Subnet = de_Subnet(output["subnet"], context); + if (output[_su] != null) { + contents[_Su] = de_Subnet(output[_su], context); } return contents; }; @@ -71134,8 +70955,8 @@ const de_CreateDefaultSubnetResult = (output: any, context: __SerdeContext): Cre */ const de_CreateDefaultVpcResult = (output: any, context: __SerdeContext): CreateDefaultVpcResult => { const contents: any = {}; - if (output["vpc"] !== undefined) { - contents.Vpc = de_Vpc(output["vpc"], context); + if (output[_vp] != null) { + contents[_Vp] = de_Vpc(output[_vp], context); } return contents; }; @@ -71145,8 +70966,8 @@ const de_CreateDefaultVpcResult = (output: any, context: __SerdeContext): Create */ const de_CreateDhcpOptionsResult = (output: any, context: __SerdeContext): CreateDhcpOptionsResult => { const contents: any = {}; - if (output["dhcpOptions"] !== undefined) { - contents.DhcpOptions = de_DhcpOptions(output["dhcpOptions"], context); + if (output[_dO] != null) { + contents[_DOh] = de_DhcpOptions(output[_dO], context); } return contents; }; @@ -71159,11 +70980,11 @@ const de_CreateEgressOnlyInternetGatewayResult = ( context: __SerdeContext ): CreateEgressOnlyInternetGatewayResult => { const contents: any = {}; - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["egressOnlyInternetGateway"] !== undefined) { - contents.EgressOnlyInternetGateway = de_EgressOnlyInternetGateway(output["egressOnlyInternetGateway"], context); + if (output[_eOIG] != null) { + contents[_EOIG] = de_EgressOnlyInternetGateway(output[_eOIG], context); } return contents; }; @@ -71173,20 +70994,17 @@ const de_CreateEgressOnlyInternetGatewayResult = ( */ const de_CreateFleetError = (output: any, context: __SerdeContext): CreateFleetError => { const contents: any = {}; - if (output["launchTemplateAndOverrides"] !== undefined) { - contents.LaunchTemplateAndOverrides = de_LaunchTemplateAndOverridesResponse( - output["launchTemplateAndOverrides"], - context - ); + if (output[_lTAO] != null) { + contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context); } - if (output["lifecycle"] !== undefined) { - contents.Lifecycle = __expectString(output["lifecycle"]); + if (output[_l] != null) { + contents[_Li] = __expectString(output[_l]); } - if (output["errorCode"] !== undefined) { - contents.ErrorCode = __expectString(output["errorCode"]); + if (output[_eC] != null) { + contents[_EC] = __expectString(output[_eC]); } - if (output["errorMessage"] !== undefined) { - contents.ErrorMessage = __expectString(output["errorMessage"]); + if (output[_eM] != null) { + contents[_EM] = __expectString(output[_eM]); } return contents; }; @@ -71207,25 +71025,22 @@ const de_CreateFleetErrorsSet = (output: any, context: __SerdeContext): CreateFl */ const de_CreateFleetInstance = (output: any, context: __SerdeContext): CreateFleetInstance => { const contents: any = {}; - if (output["launchTemplateAndOverrides"] !== undefined) { - contents.LaunchTemplateAndOverrides = de_LaunchTemplateAndOverridesResponse( - output["launchTemplateAndOverrides"], - context - ); + if (output[_lTAO] != null) { + contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context); } - if (output["lifecycle"] !== undefined) { - contents.Lifecycle = __expectString(output["lifecycle"]); + if (output[_l] != null) { + contents[_Li] = __expectString(output[_l]); } if (output.instanceIds === "") { - contents.InstanceIds = []; - } else if (output["instanceIds"] !== undefined && output["instanceIds"]["item"] !== undefined) { - contents.InstanceIds = de_InstanceIdsSet(__getArrayIfSingleItem(output["instanceIds"]["item"]), context); + contents[_IIns] = []; + } else if (output[_iIn] != null && output[_iIn][_i] != null) { + contents[_IIns] = de_InstanceIdsSet(__getArrayIfSingleItem(output[_iIn][_i]), context); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } return contents; }; @@ -71246,21 +71061,18 @@ const de_CreateFleetInstancesSet = (output: any, context: __SerdeContext): Creat */ const de_CreateFleetResult = (output: any, context: __SerdeContext): CreateFleetResult => { const contents: any = {}; - if (output["fleetId"] !== undefined) { - contents.FleetId = __expectString(output["fleetId"]); + if (output[_fIl] != null) { + contents[_FIl] = __expectString(output[_fIl]); } if (output.errorSet === "") { - contents.Errors = []; - } else if (output["errorSet"] !== undefined && output["errorSet"]["item"] !== undefined) { - contents.Errors = de_CreateFleetErrorsSet(__getArrayIfSingleItem(output["errorSet"]["item"]), context); + contents[_Err] = []; + } else if (output[_eSr] != null && output[_eSr][_i] != null) { + contents[_Err] = de_CreateFleetErrorsSet(__getArrayIfSingleItem(output[_eSr][_i]), context); } if (output.fleetInstanceSet === "") { - contents.Instances = []; - } else if (output["fleetInstanceSet"] !== undefined && output["fleetInstanceSet"]["item"] !== undefined) { - contents.Instances = de_CreateFleetInstancesSet( - __getArrayIfSingleItem(output["fleetInstanceSet"]["item"]), - context - ); + contents[_In] = []; + } else if (output[_fIS] != null && output[_fIS][_i] != null) { + contents[_In] = de_CreateFleetInstancesSet(__getArrayIfSingleItem(output[_fIS][_i]), context); } return contents; }; @@ -71270,18 +71082,18 @@ const de_CreateFleetResult = (output: any, context: __SerdeContext): CreateFleet */ const de_CreateFlowLogsResult = (output: any, context: __SerdeContext): CreateFlowLogsResult => { const contents: any = {}; - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } if (output.flowLogIdSet === "") { - contents.FlowLogIds = []; - } else if (output["flowLogIdSet"] !== undefined && output["flowLogIdSet"]["item"] !== undefined) { - contents.FlowLogIds = de_ValueStringList(__getArrayIfSingleItem(output["flowLogIdSet"]["item"]), context); + contents[_FLI] = []; + } else if (output[_fLIS] != null && output[_fLIS][_i] != null) { + contents[_FLI] = de_ValueStringList(__getArrayIfSingleItem(output[_fLIS][_i]), context); } if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -71291,11 +71103,11 @@ const de_CreateFlowLogsResult = (output: any, context: __SerdeContext): CreateFl */ const de_CreateFpgaImageResult = (output: any, context: __SerdeContext): CreateFpgaImageResult => { const contents: any = {}; - if (output["fpgaImageId"] !== undefined) { - contents.FpgaImageId = __expectString(output["fpgaImageId"]); + if (output[_fII] != null) { + contents[_FII] = __expectString(output[_fII]); } - if (output["fpgaImageGlobalId"] !== undefined) { - contents.FpgaImageGlobalId = __expectString(output["fpgaImageGlobalId"]); + if (output[_fIGI] != null) { + contents[_FIGI] = __expectString(output[_fIGI]); } return contents; }; @@ -71305,8 +71117,8 @@ const de_CreateFpgaImageResult = (output: any, context: __SerdeContext): CreateF */ const de_CreateImageResult = (output: any, context: __SerdeContext): CreateImageResult => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } return contents; }; @@ -71319,11 +71131,11 @@ const de_CreateInstanceConnectEndpointResult = ( context: __SerdeContext ): CreateInstanceConnectEndpointResult => { const contents: any = {}; - if (output["instanceConnectEndpoint"] !== undefined) { - contents.InstanceConnectEndpoint = de_Ec2InstanceConnectEndpoint(output["instanceConnectEndpoint"], context); + if (output[_iCE] != null) { + contents[_ICE] = de_Ec2InstanceConnectEndpoint(output[_iCE], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -71333,8 +71145,8 @@ const de_CreateInstanceConnectEndpointResult = ( */ const de_CreateInstanceEventWindowResult = (output: any, context: __SerdeContext): CreateInstanceEventWindowResult => { const contents: any = {}; - if (output["instanceEventWindow"] !== undefined) { - contents.InstanceEventWindow = de_InstanceEventWindow(output["instanceEventWindow"], context); + if (output[_iEW] != null) { + contents[_IEW] = de_InstanceEventWindow(output[_iEW], context); } return contents; }; @@ -71344,8 +71156,8 @@ const de_CreateInstanceEventWindowResult = (output: any, context: __SerdeContext */ const de_CreateInstanceExportTaskResult = (output: any, context: __SerdeContext): CreateInstanceExportTaskResult => { const contents: any = {}; - if (output["exportTask"] !== undefined) { - contents.ExportTask = de_ExportTask(output["exportTask"], context); + if (output[_eTx] != null) { + contents[_ETxp] = de_ExportTask(output[_eTx], context); } return contents; }; @@ -71355,8 +71167,8 @@ const de_CreateInstanceExportTaskResult = (output: any, context: __SerdeContext) */ const de_CreateInternetGatewayResult = (output: any, context: __SerdeContext): CreateInternetGatewayResult => { const contents: any = {}; - if (output["internetGateway"] !== undefined) { - contents.InternetGateway = de_InternetGateway(output["internetGateway"], context); + if (output[_iG] != null) { + contents[_IGn] = de_InternetGateway(output[_iG], context); } return contents; }; @@ -71366,8 +71178,8 @@ const de_CreateInternetGatewayResult = (output: any, context: __SerdeContext): C */ const de_CreateIpamPoolResult = (output: any, context: __SerdeContext): CreateIpamPoolResult => { const contents: any = {}; - if (output["ipamPool"] !== undefined) { - contents.IpamPool = de_IpamPool(output["ipamPool"], context); + if (output[_iPp] != null) { + contents[_IPpa] = de_IpamPool(output[_iPp], context); } return contents; }; @@ -71380,8 +71192,8 @@ const de_CreateIpamResourceDiscoveryResult = ( context: __SerdeContext ): CreateIpamResourceDiscoveryResult => { const contents: any = {}; - if (output["ipamResourceDiscovery"] !== undefined) { - contents.IpamResourceDiscovery = de_IpamResourceDiscovery(output["ipamResourceDiscovery"], context); + if (output[_iRD] != null) { + contents[_IRD] = de_IpamResourceDiscovery(output[_iRD], context); } return contents; }; @@ -71391,8 +71203,8 @@ const de_CreateIpamResourceDiscoveryResult = ( */ const de_CreateIpamResult = (output: any, context: __SerdeContext): CreateIpamResult => { const contents: any = {}; - if (output["ipam"] !== undefined) { - contents.Ipam = de_Ipam(output["ipam"], context); + if (output[_ip] != null) { + contents[_Ipa] = de_Ipam(output[_ip], context); } return contents; }; @@ -71402,8 +71214,8 @@ const de_CreateIpamResult = (output: any, context: __SerdeContext): CreateIpamRe */ const de_CreateIpamScopeResult = (output: any, context: __SerdeContext): CreateIpamScopeResult => { const contents: any = {}; - if (output["ipamScope"] !== undefined) { - contents.IpamScope = de_IpamScope(output["ipamScope"], context); + if (output[_iS] != null) { + contents[_ISpa] = de_IpamScope(output[_iS], context); } return contents; }; @@ -71413,11 +71225,11 @@ const de_CreateIpamScopeResult = (output: any, context: __SerdeContext): CreateI */ const de_CreateLaunchTemplateResult = (output: any, context: __SerdeContext): CreateLaunchTemplateResult => { const contents: any = {}; - if (output["launchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplate(output["launchTemplate"], context); + if (output[_lT] != null) { + contents[_LTa] = de_LaunchTemplate(output[_lT], context); } - if (output["warning"] !== undefined) { - contents.Warning = de_ValidationWarning(output["warning"], context); + if (output[_w] != null) { + contents[_Wa] = de_ValidationWarning(output[_w], context); } return contents; }; @@ -71430,11 +71242,11 @@ const de_CreateLaunchTemplateVersionResult = ( context: __SerdeContext ): CreateLaunchTemplateVersionResult => { const contents: any = {}; - if (output["launchTemplateVersion"] !== undefined) { - contents.LaunchTemplateVersion = de_LaunchTemplateVersion(output["launchTemplateVersion"], context); + if (output[_lTV] != null) { + contents[_LTV] = de_LaunchTemplateVersion(output[_lTV], context); } - if (output["warning"] !== undefined) { - contents.Warning = de_ValidationWarning(output["warning"], context); + if (output[_w] != null) { + contents[_Wa] = de_ValidationWarning(output[_w], context); } return contents; }; @@ -71444,8 +71256,8 @@ const de_CreateLaunchTemplateVersionResult = ( */ const de_CreateLocalGatewayRouteResult = (output: any, context: __SerdeContext): CreateLocalGatewayRouteResult => { const contents: any = {}; - if (output["route"] !== undefined) { - contents.Route = de_LocalGatewayRoute(output["route"], context); + if (output[_ro] != null) { + contents[_Ro] = de_LocalGatewayRoute(output[_ro], context); } return contents; }; @@ -71458,8 +71270,8 @@ const de_CreateLocalGatewayRouteTableResult = ( context: __SerdeContext ): CreateLocalGatewayRouteTableResult => { const contents: any = {}; - if (output["localGatewayRouteTable"] !== undefined) { - contents.LocalGatewayRouteTable = de_LocalGatewayRouteTable(output["localGatewayRouteTable"], context); + if (output[_lGRT] != null) { + contents[_LGRT] = de_LocalGatewayRouteTable(output[_lGRT], context); } return contents; }; @@ -71472,12 +71284,8 @@ const de_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult = ( context: __SerdeContext ): CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult => { const contents: any = {}; - if (output["localGatewayRouteTableVirtualInterfaceGroupAssociation"] !== undefined) { - contents.LocalGatewayRouteTableVirtualInterfaceGroupAssociation = - de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation( - output["localGatewayRouteTableVirtualInterfaceGroupAssociation"], - context - ); + if (output[_lGRTVIGA] != null) { + contents[_LGRTVIGA] = de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation(output[_lGRTVIGA], context); } return contents; }; @@ -71490,11 +71298,8 @@ const de_CreateLocalGatewayRouteTableVpcAssociationResult = ( context: __SerdeContext ): CreateLocalGatewayRouteTableVpcAssociationResult => { const contents: any = {}; - if (output["localGatewayRouteTableVpcAssociation"] !== undefined) { - contents.LocalGatewayRouteTableVpcAssociation = de_LocalGatewayRouteTableVpcAssociation( - output["localGatewayRouteTableVpcAssociation"], - context - ); + if (output[_lGRTVA] != null) { + contents[_LGRTVA] = de_LocalGatewayRouteTableVpcAssociation(output[_lGRTVA], context); } return contents; }; @@ -71504,8 +71309,8 @@ const de_CreateLocalGatewayRouteTableVpcAssociationResult = ( */ const de_CreateManagedPrefixListResult = (output: any, context: __SerdeContext): CreateManagedPrefixListResult => { const contents: any = {}; - if (output["prefixList"] !== undefined) { - contents.PrefixList = de_ManagedPrefixList(output["prefixList"], context); + if (output[_pL] != null) { + contents[_PLr] = de_ManagedPrefixList(output[_pL], context); } return contents; }; @@ -71515,11 +71320,11 @@ const de_CreateManagedPrefixListResult = (output: any, context: __SerdeContext): */ const de_CreateNatGatewayResult = (output: any, context: __SerdeContext): CreateNatGatewayResult => { const contents: any = {}; - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["natGateway"] !== undefined) { - contents.NatGateway = de_NatGateway(output["natGateway"], context); + if (output[_nG] != null) { + contents[_NG] = de_NatGateway(output[_nG], context); } return contents; }; @@ -71529,8 +71334,8 @@ const de_CreateNatGatewayResult = (output: any, context: __SerdeContext): Create */ const de_CreateNetworkAclResult = (output: any, context: __SerdeContext): CreateNetworkAclResult => { const contents: any = {}; - if (output["networkAcl"] !== undefined) { - contents.NetworkAcl = de_NetworkAcl(output["networkAcl"], context); + if (output[_nA] != null) { + contents[_NA] = de_NetworkAcl(output[_nA], context); } return contents; }; @@ -71543,14 +71348,11 @@ const de_CreateNetworkInsightsAccessScopeResult = ( context: __SerdeContext ): CreateNetworkInsightsAccessScopeResult => { const contents: any = {}; - if (output["networkInsightsAccessScope"] !== undefined) { - contents.NetworkInsightsAccessScope = de_NetworkInsightsAccessScope(output["networkInsightsAccessScope"], context); + if (output[_nIAS] != null) { + contents[_NIAS] = de_NetworkInsightsAccessScope(output[_nIAS], context); } - if (output["networkInsightsAccessScopeContent"] !== undefined) { - contents.NetworkInsightsAccessScopeContent = de_NetworkInsightsAccessScopeContent( - output["networkInsightsAccessScopeContent"], - context - ); + if (output[_nIASC] != null) { + contents[_NIASC] = de_NetworkInsightsAccessScopeContent(output[_nIASC], context); } return contents; }; @@ -71560,8 +71362,8 @@ const de_CreateNetworkInsightsAccessScopeResult = ( */ const de_CreateNetworkInsightsPathResult = (output: any, context: __SerdeContext): CreateNetworkInsightsPathResult => { const contents: any = {}; - if (output["networkInsightsPath"] !== undefined) { - contents.NetworkInsightsPath = de_NetworkInsightsPath(output["networkInsightsPath"], context); + if (output[_nIP] != null) { + contents[_NIP] = de_NetworkInsightsPath(output[_nIP], context); } return contents; }; @@ -71574,8 +71376,8 @@ const de_CreateNetworkInterfacePermissionResult = ( context: __SerdeContext ): CreateNetworkInterfacePermissionResult => { const contents: any = {}; - if (output["interfacePermission"] !== undefined) { - contents.InterfacePermission = de_NetworkInterfacePermission(output["interfacePermission"], context); + if (output[_iPnt] != null) { + contents[_IPnt] = de_NetworkInterfacePermission(output[_iPnt], context); } return contents; }; @@ -71585,11 +71387,11 @@ const de_CreateNetworkInterfacePermissionResult = ( */ const de_CreateNetworkInterfaceResult = (output: any, context: __SerdeContext): CreateNetworkInterfaceResult => { const contents: any = {}; - if (output["networkInterface"] !== undefined) { - contents.NetworkInterface = de_NetworkInterface(output["networkInterface"], context); + if (output[_nIe] != null) { + contents[_NIet] = de_NetworkInterface(output[_nIe], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -71599,8 +71401,8 @@ const de_CreateNetworkInterfaceResult = (output: any, context: __SerdeContext): */ const de_CreatePlacementGroupResult = (output: any, context: __SerdeContext): CreatePlacementGroupResult => { const contents: any = {}; - if (output["placementGroup"] !== undefined) { - contents.PlacementGroup = de_PlacementGroup(output["placementGroup"], context); + if (output[_pG] != null) { + contents[_PG] = de_PlacementGroup(output[_pG], context); } return contents; }; @@ -71610,8 +71412,8 @@ const de_CreatePlacementGroupResult = (output: any, context: __SerdeContext): Cr */ const de_CreatePublicIpv4PoolResult = (output: any, context: __SerdeContext): CreatePublicIpv4PoolResult => { const contents: any = {}; - if (output["poolId"] !== undefined) { - contents.PoolId = __expectString(output["poolId"]); + if (output[_pIo] != null) { + contents[_PIo] = __expectString(output[_pIo]); } return contents; }; @@ -71624,8 +71426,8 @@ const de_CreateReplaceRootVolumeTaskResult = ( context: __SerdeContext ): CreateReplaceRootVolumeTaskResult => { const contents: any = {}; - if (output["replaceRootVolumeTask"] !== undefined) { - contents.ReplaceRootVolumeTask = de_ReplaceRootVolumeTask(output["replaceRootVolumeTask"], context); + if (output[_rRVT] != null) { + contents[_RRVT] = de_ReplaceRootVolumeTask(output[_rRVT], context); } return contents; }; @@ -71639,15 +71441,9 @@ const de_CreateReservedInstancesListingResult = ( ): CreateReservedInstancesListingResult => { const contents: any = {}; if (output.reservedInstancesListingsSet === "") { - contents.ReservedInstancesListings = []; - } else if ( - output["reservedInstancesListingsSet"] !== undefined && - output["reservedInstancesListingsSet"]["item"] !== undefined - ) { - contents.ReservedInstancesListings = de_ReservedInstancesListingList( - __getArrayIfSingleItem(output["reservedInstancesListingsSet"]["item"]), - context - ); + contents[_RIL] = []; + } else if (output[_rILS] != null && output[_rILS][_i] != null) { + contents[_RIL] = de_ReservedInstancesListingList(__getArrayIfSingleItem(output[_rILS][_i]), context); } return contents; }; @@ -71657,8 +71453,8 @@ const de_CreateReservedInstancesListingResult = ( */ const de_CreateRestoreImageTaskResult = (output: any, context: __SerdeContext): CreateRestoreImageTaskResult => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } return contents; }; @@ -71668,8 +71464,8 @@ const de_CreateRestoreImageTaskResult = (output: any, context: __SerdeContext): */ const de_CreateRouteResult = (output: any, context: __SerdeContext): CreateRouteResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -71679,8 +71475,8 @@ const de_CreateRouteResult = (output: any, context: __SerdeContext): CreateRoute */ const de_CreateRouteTableResult = (output: any, context: __SerdeContext): CreateRouteTableResult => { const contents: any = {}; - if (output["routeTable"] !== undefined) { - contents.RouteTable = de_RouteTable(output["routeTable"], context); + if (output[_rTo] != null) { + contents[_RTo] = de_RouteTable(output[_rTo], context); } return contents; }; @@ -71690,13 +71486,13 @@ const de_CreateRouteTableResult = (output: any, context: __SerdeContext): Create */ const de_CreateSecurityGroupResult = (output: any, context: __SerdeContext): CreateSecurityGroupResult => { const contents: any = {}; - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -71707,9 +71503,9 @@ const de_CreateSecurityGroupResult = (output: any, context: __SerdeContext): Cre const de_CreateSnapshotsResult = (output: any, context: __SerdeContext): CreateSnapshotsResult => { const contents: any = {}; if (output.snapshotSet === "") { - contents.Snapshots = []; - } else if (output["snapshotSet"] !== undefined && output["snapshotSet"]["item"] !== undefined) { - contents.Snapshots = de_SnapshotSet(__getArrayIfSingleItem(output["snapshotSet"]["item"]), context); + contents[_Sn] = []; + } else if (output[_sS] != null && output[_sS][_i] != null) { + contents[_Sn] = de_SnapshotSet(__getArrayIfSingleItem(output[_sS][_i]), context); } return contents; }; @@ -71722,8 +71518,8 @@ const de_CreateSpotDatafeedSubscriptionResult = ( context: __SerdeContext ): CreateSpotDatafeedSubscriptionResult => { const contents: any = {}; - if (output["spotDatafeedSubscription"] !== undefined) { - contents.SpotDatafeedSubscription = de_SpotDatafeedSubscription(output["spotDatafeedSubscription"], context); + if (output[_sDS] != null) { + contents[_SDS] = de_SpotDatafeedSubscription(output[_sDS], context); } return contents; }; @@ -71733,8 +71529,8 @@ const de_CreateSpotDatafeedSubscriptionResult = ( */ const de_CreateStoreImageTaskResult = (output: any, context: __SerdeContext): CreateStoreImageTaskResult => { const contents: any = {}; - if (output["objectKey"] !== undefined) { - contents.ObjectKey = __expectString(output["objectKey"]); + if (output[_oK] != null) { + contents[_OK] = __expectString(output[_oK]); } return contents; }; @@ -71747,8 +71543,8 @@ const de_CreateSubnetCidrReservationResult = ( context: __SerdeContext ): CreateSubnetCidrReservationResult => { const contents: any = {}; - if (output["subnetCidrReservation"] !== undefined) { - contents.SubnetCidrReservation = de_SubnetCidrReservation(output["subnetCidrReservation"], context); + if (output[_sCR] != null) { + contents[_SCR] = de_SubnetCidrReservation(output[_sCR], context); } return contents; }; @@ -71758,8 +71554,8 @@ const de_CreateSubnetCidrReservationResult = ( */ const de_CreateSubnetResult = (output: any, context: __SerdeContext): CreateSubnetResult => { const contents: any = {}; - if (output["subnet"] !== undefined) { - contents.Subnet = de_Subnet(output["subnet"], context); + if (output[_su] != null) { + contents[_Su] = de_Subnet(output[_su], context); } return contents; }; @@ -71769,11 +71565,11 @@ const de_CreateSubnetResult = (output: any, context: __SerdeContext): CreateSubn */ const de_CreateTrafficMirrorFilterResult = (output: any, context: __SerdeContext): CreateTrafficMirrorFilterResult => { const contents: any = {}; - if (output["trafficMirrorFilter"] !== undefined) { - contents.TrafficMirrorFilter = de_TrafficMirrorFilter(output["trafficMirrorFilter"], context); + if (output[_tMF] != null) { + contents[_TMF] = de_TrafficMirrorFilter(output[_tMF], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -71786,11 +71582,11 @@ const de_CreateTrafficMirrorFilterRuleResult = ( context: __SerdeContext ): CreateTrafficMirrorFilterRuleResult => { const contents: any = {}; - if (output["trafficMirrorFilterRule"] !== undefined) { - contents.TrafficMirrorFilterRule = de_TrafficMirrorFilterRule(output["trafficMirrorFilterRule"], context); + if (output[_tMFR] != null) { + contents[_TMFR] = de_TrafficMirrorFilterRule(output[_tMFR], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -71803,11 +71599,11 @@ const de_CreateTrafficMirrorSessionResult = ( context: __SerdeContext ): CreateTrafficMirrorSessionResult => { const contents: any = {}; - if (output["trafficMirrorSession"] !== undefined) { - contents.TrafficMirrorSession = de_TrafficMirrorSession(output["trafficMirrorSession"], context); + if (output[_tMS] != null) { + contents[_TMS] = de_TrafficMirrorSession(output[_tMS], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -71817,11 +71613,11 @@ const de_CreateTrafficMirrorSessionResult = ( */ const de_CreateTrafficMirrorTargetResult = (output: any, context: __SerdeContext): CreateTrafficMirrorTargetResult => { const contents: any = {}; - if (output["trafficMirrorTarget"] !== undefined) { - contents.TrafficMirrorTarget = de_TrafficMirrorTarget(output["trafficMirrorTarget"], context); + if (output[_tMT] != null) { + contents[_TMT] = de_TrafficMirrorTarget(output[_tMT], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -71834,8 +71630,8 @@ const de_CreateTransitGatewayConnectPeerResult = ( context: __SerdeContext ): CreateTransitGatewayConnectPeerResult => { const contents: any = {}; - if (output["transitGatewayConnectPeer"] !== undefined) { - contents.TransitGatewayConnectPeer = de_TransitGatewayConnectPeer(output["transitGatewayConnectPeer"], context); + if (output[_tGCP] != null) { + contents[_TGCP] = de_TransitGatewayConnectPeer(output[_tGCP], context); } return contents; }; @@ -71848,8 +71644,8 @@ const de_CreateTransitGatewayConnectResult = ( context: __SerdeContext ): CreateTransitGatewayConnectResult => { const contents: any = {}; - if (output["transitGatewayConnect"] !== undefined) { - contents.TransitGatewayConnect = de_TransitGatewayConnect(output["transitGatewayConnect"], context); + if (output[_tGC] != null) { + contents[_TGCr] = de_TransitGatewayConnect(output[_tGC], context); } return contents; }; @@ -71862,11 +71658,8 @@ const de_CreateTransitGatewayMulticastDomainResult = ( context: __SerdeContext ): CreateTransitGatewayMulticastDomainResult => { const contents: any = {}; - if (output["transitGatewayMulticastDomain"] !== undefined) { - contents.TransitGatewayMulticastDomain = de_TransitGatewayMulticastDomain( - output["transitGatewayMulticastDomain"], - context - ); + if (output[_tGMD] != null) { + contents[_TGMD] = de_TransitGatewayMulticastDomain(output[_tGMD], context); } return contents; }; @@ -71879,11 +71672,8 @@ const de_CreateTransitGatewayPeeringAttachmentResult = ( context: __SerdeContext ): CreateTransitGatewayPeeringAttachmentResult => { const contents: any = {}; - if (output["transitGatewayPeeringAttachment"] !== undefined) { - contents.TransitGatewayPeeringAttachment = de_TransitGatewayPeeringAttachment( - output["transitGatewayPeeringAttachment"], - context - ); + if (output[_tGPA] != null) { + contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context); } return contents; }; @@ -71896,8 +71686,8 @@ const de_CreateTransitGatewayPolicyTableResult = ( context: __SerdeContext ): CreateTransitGatewayPolicyTableResult => { const contents: any = {}; - if (output["transitGatewayPolicyTable"] !== undefined) { - contents.TransitGatewayPolicyTable = de_TransitGatewayPolicyTable(output["transitGatewayPolicyTable"], context); + if (output[_tGPT] != null) { + contents[_TGPT] = de_TransitGatewayPolicyTable(output[_tGPT], context); } return contents; }; @@ -71910,11 +71700,8 @@ const de_CreateTransitGatewayPrefixListReferenceResult = ( context: __SerdeContext ): CreateTransitGatewayPrefixListReferenceResult => { const contents: any = {}; - if (output["transitGatewayPrefixListReference"] !== undefined) { - contents.TransitGatewayPrefixListReference = de_TransitGatewayPrefixListReference( - output["transitGatewayPrefixListReference"], - context - ); + if (output[_tGPLR] != null) { + contents[_TGPLR] = de_TransitGatewayPrefixListReference(output[_tGPLR], context); } return contents; }; @@ -71924,8 +71711,8 @@ const de_CreateTransitGatewayPrefixListReferenceResult = ( */ const de_CreateTransitGatewayResult = (output: any, context: __SerdeContext): CreateTransitGatewayResult => { const contents: any = {}; - if (output["transitGateway"] !== undefined) { - contents.TransitGateway = de_TransitGateway(output["transitGateway"], context); + if (output[_tG] != null) { + contents[_TGr] = de_TransitGateway(output[_tG], context); } return contents; }; @@ -71935,8 +71722,8 @@ const de_CreateTransitGatewayResult = (output: any, context: __SerdeContext): Cr */ const de_CreateTransitGatewayRouteResult = (output: any, context: __SerdeContext): CreateTransitGatewayRouteResult => { const contents: any = {}; - if (output["route"] !== undefined) { - contents.Route = de_TransitGatewayRoute(output["route"], context); + if (output[_ro] != null) { + contents[_Ro] = de_TransitGatewayRoute(output[_ro], context); } return contents; }; @@ -71949,11 +71736,8 @@ const de_CreateTransitGatewayRouteTableAnnouncementResult = ( context: __SerdeContext ): CreateTransitGatewayRouteTableAnnouncementResult => { const contents: any = {}; - if (output["transitGatewayRouteTableAnnouncement"] !== undefined) { - contents.TransitGatewayRouteTableAnnouncement = de_TransitGatewayRouteTableAnnouncement( - output["transitGatewayRouteTableAnnouncement"], - context - ); + if (output[_tGRTA] != null) { + contents[_TGRTA] = de_TransitGatewayRouteTableAnnouncement(output[_tGRTA], context); } return contents; }; @@ -71966,8 +71750,8 @@ const de_CreateTransitGatewayRouteTableResult = ( context: __SerdeContext ): CreateTransitGatewayRouteTableResult => { const contents: any = {}; - if (output["transitGatewayRouteTable"] !== undefined) { - contents.TransitGatewayRouteTable = de_TransitGatewayRouteTable(output["transitGatewayRouteTable"], context); + if (output[_tGRT] != null) { + contents[_TGRT] = de_TransitGatewayRouteTable(output[_tGRT], context); } return contents; }; @@ -71980,11 +71764,8 @@ const de_CreateTransitGatewayVpcAttachmentResult = ( context: __SerdeContext ): CreateTransitGatewayVpcAttachmentResult => { const contents: any = {}; - if (output["transitGatewayVpcAttachment"] !== undefined) { - contents.TransitGatewayVpcAttachment = de_TransitGatewayVpcAttachment( - output["transitGatewayVpcAttachment"], - context - ); + if (output[_tGVA] != null) { + contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context); } return contents; }; @@ -71997,8 +71778,8 @@ const de_CreateVerifiedAccessEndpointResult = ( context: __SerdeContext ): CreateVerifiedAccessEndpointResult => { const contents: any = {}; - if (output["verifiedAccessEndpoint"] !== undefined) { - contents.VerifiedAccessEndpoint = de_VerifiedAccessEndpoint(output["verifiedAccessEndpoint"], context); + if (output[_vAE] != null) { + contents[_VAE] = de_VerifiedAccessEndpoint(output[_vAE], context); } return contents; }; @@ -72008,8 +71789,8 @@ const de_CreateVerifiedAccessEndpointResult = ( */ const de_CreateVerifiedAccessGroupResult = (output: any, context: __SerdeContext): CreateVerifiedAccessGroupResult => { const contents: any = {}; - if (output["verifiedAccessGroup"] !== undefined) { - contents.VerifiedAccessGroup = de_VerifiedAccessGroup(output["verifiedAccessGroup"], context); + if (output[_vAG] != null) { + contents[_VAG] = de_VerifiedAccessGroup(output[_vAG], context); } return contents; }; @@ -72022,8 +71803,8 @@ const de_CreateVerifiedAccessInstanceResult = ( context: __SerdeContext ): CreateVerifiedAccessInstanceResult => { const contents: any = {}; - if (output["verifiedAccessInstance"] !== undefined) { - contents.VerifiedAccessInstance = de_VerifiedAccessInstance(output["verifiedAccessInstance"], context); + if (output[_vAI] != null) { + contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context); } return contents; }; @@ -72036,11 +71817,8 @@ const de_CreateVerifiedAccessTrustProviderResult = ( context: __SerdeContext ): CreateVerifiedAccessTrustProviderResult => { const contents: any = {}; - if (output["verifiedAccessTrustProvider"] !== undefined) { - contents.VerifiedAccessTrustProvider = de_VerifiedAccessTrustProvider( - output["verifiedAccessTrustProvider"], - context - ); + if (output[_vATP] != null) { + contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context); } return contents; }; @@ -72050,11 +71828,11 @@ const de_CreateVerifiedAccessTrustProviderResult = ( */ const de_CreateVolumePermission = (output: any, context: __SerdeContext): CreateVolumePermission => { const contents: any = {}; - if (output["group"] !== undefined) { - contents.Group = __expectString(output["group"]); + if (output[_g] != null) { + contents[_Gr] = __expectString(output[_g]); } - if (output["userId"] !== undefined) { - contents.UserId = __expectString(output["userId"]); + if (output[_uI] != null) { + contents[_UIs] = __expectString(output[_uI]); } return contents; }; @@ -72078,11 +71856,11 @@ const de_CreateVpcEndpointConnectionNotificationResult = ( context: __SerdeContext ): CreateVpcEndpointConnectionNotificationResult => { const contents: any = {}; - if (output["connectionNotification"] !== undefined) { - contents.ConnectionNotification = de_ConnectionNotification(output["connectionNotification"], context); + if (output[_cNo] != null) { + contents[_CNo] = de_ConnectionNotification(output[_cNo], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -72092,11 +71870,11 @@ const de_CreateVpcEndpointConnectionNotificationResult = ( */ const de_CreateVpcEndpointResult = (output: any, context: __SerdeContext): CreateVpcEndpointResult => { const contents: any = {}; - if (output["vpcEndpoint"] !== undefined) { - contents.VpcEndpoint = de_VpcEndpoint(output["vpcEndpoint"], context); + if (output[_vE] != null) { + contents[_VE] = de_VpcEndpoint(output[_vE], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -72109,11 +71887,11 @@ const de_CreateVpcEndpointServiceConfigurationResult = ( context: __SerdeContext ): CreateVpcEndpointServiceConfigurationResult => { const contents: any = {}; - if (output["serviceConfiguration"] !== undefined) { - contents.ServiceConfiguration = de_ServiceConfiguration(output["serviceConfiguration"], context); + if (output[_sC] != null) { + contents[_SCe] = de_ServiceConfiguration(output[_sC], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -72126,8 +71904,8 @@ const de_CreateVpcPeeringConnectionResult = ( context: __SerdeContext ): CreateVpcPeeringConnectionResult => { const contents: any = {}; - if (output["vpcPeeringConnection"] !== undefined) { - contents.VpcPeeringConnection = de_VpcPeeringConnection(output["vpcPeeringConnection"], context); + if (output[_vPC] != null) { + contents[_VPC] = de_VpcPeeringConnection(output[_vPC], context); } return contents; }; @@ -72137,8 +71915,8 @@ const de_CreateVpcPeeringConnectionResult = ( */ const de_CreateVpcResult = (output: any, context: __SerdeContext): CreateVpcResult => { const contents: any = {}; - if (output["vpc"] !== undefined) { - contents.Vpc = de_Vpc(output["vpc"], context); + if (output[_vp] != null) { + contents[_Vp] = de_Vpc(output[_vp], context); } return contents; }; @@ -72148,8 +71926,8 @@ const de_CreateVpcResult = (output: any, context: __SerdeContext): CreateVpcResu */ const de_CreateVpnConnectionResult = (output: any, context: __SerdeContext): CreateVpnConnectionResult => { const contents: any = {}; - if (output["vpnConnection"] !== undefined) { - contents.VpnConnection = de_VpnConnection(output["vpnConnection"], context); + if (output[_vC] != null) { + contents[_VC] = de_VpnConnection(output[_vC], context); } return contents; }; @@ -72159,8 +71937,8 @@ const de_CreateVpnConnectionResult = (output: any, context: __SerdeContext): Cre */ const de_CreateVpnGatewayResult = (output: any, context: __SerdeContext): CreateVpnGatewayResult => { const contents: any = {}; - if (output["vpnGateway"] !== undefined) { - contents.VpnGateway = de_VpnGateway(output["vpnGateway"], context); + if (output[_vG] != null) { + contents[_VG] = de_VpnGateway(output[_vG], context); } return contents; }; @@ -72170,8 +71948,8 @@ const de_CreateVpnGatewayResult = (output: any, context: __SerdeContext): Create */ const de_CreditSpecification = (output: any, context: __SerdeContext): CreditSpecification => { const contents: any = {}; - if (output["cpuCredits"] !== undefined) { - contents.CpuCredits = __expectString(output["cpuCredits"]); + if (output[_cCp] != null) { + contents[_CCp] = __expectString(output[_cCp]); } return contents; }; @@ -72181,31 +71959,31 @@ const de_CreditSpecification = (output: any, context: __SerdeContext): CreditSpe */ const de_CustomerGateway = (output: any, context: __SerdeContext): CustomerGateway => { const contents: any = {}; - if (output["bgpAsn"] !== undefined) { - contents.BgpAsn = __expectString(output["bgpAsn"]); + if (output[_bA] != null) { + contents[_BA] = __expectString(output[_bA]); } - if (output["customerGatewayId"] !== undefined) { - contents.CustomerGatewayId = __expectString(output["customerGatewayId"]); + if (output[_cGIu] != null) { + contents[_CGIu] = __expectString(output[_cGIu]); } - if (output["ipAddress"] !== undefined) { - contents.IpAddress = __expectString(output["ipAddress"]); + if (output[_iAp] != null) { + contents[_IAp] = __expectString(output[_iAp]); } - if (output["certificateArn"] !== undefined) { - contents.CertificateArn = __expectString(output["certificateArn"]); + if (output[_cAe] != null) { + contents[_CA] = __expectString(output[_cAe]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["deviceName"] !== undefined) { - contents.DeviceName = __expectString(output["deviceName"]); + if (output[_dN] != null) { + contents[_DN] = __expectString(output[_dN]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -72226,28 +72004,28 @@ const de_CustomerGatewayList = (output: any, context: __SerdeContext): CustomerG */ const de_DataResponse = (output: any, context: __SerdeContext): DataResponse => { const contents: any = {}; - if (output["id"] !== undefined) { - contents.Id = __expectString(output["id"]); + if (output[_id] != null) { + contents[_Id] = __expectString(output[_id]); } - if (output["source"] !== undefined) { - contents.Source = __expectString(output["source"]); + if (output[_s] != null) { + contents[_S] = __expectString(output[_s]); } - if (output["destination"] !== undefined) { - contents.Destination = __expectString(output["destination"]); + if (output[_d] != null) { + contents[_D] = __expectString(output[_d]); } - if (output["metric"] !== undefined) { - contents.Metric = __expectString(output["metric"]); + if (output[_met] != null) { + contents[_Met] = __expectString(output[_met]); } - if (output["statistic"] !== undefined) { - contents.Statistic = __expectString(output["statistic"]); + if (output[_stat] != null) { + contents[_Sta] = __expectString(output[_stat]); } - if (output["period"] !== undefined) { - contents.Period = __expectString(output["period"]); + if (output[_pe] != null) { + contents[_Per] = __expectString(output[_pe]); } if (output.metricPointSet === "") { - contents.MetricPoints = []; - } else if (output["metricPointSet"] !== undefined && output["metricPointSet"]["item"] !== undefined) { - contents.MetricPoints = de_MetricPoints(__getArrayIfSingleItem(output["metricPointSet"]["item"]), context); + contents[_MPe] = []; + } else if (output[_mPS] != null && output[_mPS][_i] != null) { + contents[_MPe] = de_MetricPoints(__getArrayIfSingleItem(output[_mPS][_i]), context); } return contents; }; @@ -72279,8 +72057,8 @@ const de_DedicatedHostIdList = (output: any, context: __SerdeContext): string[] */ const de_DeleteCarrierGatewayResult = (output: any, context: __SerdeContext): DeleteCarrierGatewayResult => { const contents: any = {}; - if (output["carrierGateway"] !== undefined) { - contents.CarrierGateway = de_CarrierGateway(output["carrierGateway"], context); + if (output[_cG] != null) { + contents[_CG] = de_CarrierGateway(output[_cG], context); } return contents; }; @@ -72290,8 +72068,8 @@ const de_DeleteCarrierGatewayResult = (output: any, context: __SerdeContext): De */ const de_DeleteClientVpnEndpointResult = (output: any, context: __SerdeContext): DeleteClientVpnEndpointResult => { const contents: any = {}; - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnEndpointStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnEndpointStatus(output[_sta], context); } return contents; }; @@ -72301,8 +72079,8 @@ const de_DeleteClientVpnEndpointResult = (output: any, context: __SerdeContext): */ const de_DeleteClientVpnRouteResult = (output: any, context: __SerdeContext): DeleteClientVpnRouteResult => { const contents: any = {}; - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnRouteStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnRouteStatus(output[_sta], context); } return contents; }; @@ -72312,8 +72090,8 @@ const de_DeleteClientVpnRouteResult = (output: any, context: __SerdeContext): De */ const de_DeleteCoipCidrResult = (output: any, context: __SerdeContext): DeleteCoipCidrResult => { const contents: any = {}; - if (output["coipCidr"] !== undefined) { - contents.CoipCidr = de_CoipCidr(output["coipCidr"], context); + if (output[_cCoi] != null) { + contents[_CCo] = de_CoipCidr(output[_cCoi], context); } return contents; }; @@ -72323,8 +72101,8 @@ const de_DeleteCoipCidrResult = (output: any, context: __SerdeContext): DeleteCo */ const de_DeleteCoipPoolResult = (output: any, context: __SerdeContext): DeleteCoipPoolResult => { const contents: any = {}; - if (output["coipPool"] !== undefined) { - contents.CoipPool = de_CoipPool(output["coipPool"], context); + if (output[_cP] != null) { + contents[_CP] = de_CoipPool(output[_cP], context); } return contents; }; @@ -72337,8 +72115,8 @@ const de_DeleteEgressOnlyInternetGatewayResult = ( context: __SerdeContext ): DeleteEgressOnlyInternetGatewayResult => { const contents: any = {}; - if (output["returnCode"] !== undefined) { - contents.ReturnCode = __parseBoolean(output["returnCode"]); + if (output[_rC] != null) { + contents[_RCet] = __parseBoolean(output[_rC]); } return contents; }; @@ -72348,11 +72126,11 @@ const de_DeleteEgressOnlyInternetGatewayResult = ( */ const de_DeleteFleetError = (output: any, context: __SerdeContext): DeleteFleetError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -72362,11 +72140,11 @@ const de_DeleteFleetError = (output: any, context: __SerdeContext): DeleteFleetE */ const de_DeleteFleetErrorItem = (output: any, context: __SerdeContext): DeleteFleetErrorItem => { const contents: any = {}; - if (output["error"] !== undefined) { - contents.Error = de_DeleteFleetError(output["error"], context); + if (output[_er] != null) { + contents[_Er] = de_DeleteFleetError(output[_er], context); } - if (output["fleetId"] !== undefined) { - contents.FleetId = __expectString(output["fleetId"]); + if (output[_fIl] != null) { + contents[_FIl] = __expectString(output[_fIl]); } return contents; }; @@ -72388,26 +72166,14 @@ const de_DeleteFleetErrorSet = (output: any, context: __SerdeContext): DeleteFle const de_DeleteFleetsResult = (output: any, context: __SerdeContext): DeleteFleetsResult => { const contents: any = {}; if (output.successfulFleetDeletionSet === "") { - contents.SuccessfulFleetDeletions = []; - } else if ( - output["successfulFleetDeletionSet"] !== undefined && - output["successfulFleetDeletionSet"]["item"] !== undefined - ) { - contents.SuccessfulFleetDeletions = de_DeleteFleetSuccessSet( - __getArrayIfSingleItem(output["successfulFleetDeletionSet"]["item"]), - context - ); + contents[_SFD] = []; + } else if (output[_sFDS] != null && output[_sFDS][_i] != null) { + contents[_SFD] = de_DeleteFleetSuccessSet(__getArrayIfSingleItem(output[_sFDS][_i]), context); } if (output.unsuccessfulFleetDeletionSet === "") { - contents.UnsuccessfulFleetDeletions = []; - } else if ( - output["unsuccessfulFleetDeletionSet"] !== undefined && - output["unsuccessfulFleetDeletionSet"]["item"] !== undefined - ) { - contents.UnsuccessfulFleetDeletions = de_DeleteFleetErrorSet( - __getArrayIfSingleItem(output["unsuccessfulFleetDeletionSet"]["item"]), - context - ); + contents[_UFD] = []; + } else if (output[_uFDS] != null && output[_uFDS][_i] != null) { + contents[_UFD] = de_DeleteFleetErrorSet(__getArrayIfSingleItem(output[_uFDS][_i]), context); } return contents; }; @@ -72417,14 +72183,14 @@ const de_DeleteFleetsResult = (output: any, context: __SerdeContext): DeleteFlee */ const de_DeleteFleetSuccessItem = (output: any, context: __SerdeContext): DeleteFleetSuccessItem => { const contents: any = {}; - if (output["currentFleetState"] !== undefined) { - contents.CurrentFleetState = __expectString(output["currentFleetState"]); + if (output[_cFS] != null) { + contents[_CFS] = __expectString(output[_cFS]); } - if (output["previousFleetState"] !== undefined) { - contents.PreviousFleetState = __expectString(output["previousFleetState"]); + if (output[_pFS] != null) { + contents[_PFS] = __expectString(output[_pFS]); } - if (output["fleetId"] !== undefined) { - contents.FleetId = __expectString(output["fleetId"]); + if (output[_fIl] != null) { + contents[_FIl] = __expectString(output[_fIl]); } return contents; }; @@ -72446,9 +72212,9 @@ const de_DeleteFleetSuccessSet = (output: any, context: __SerdeContext): DeleteF const de_DeleteFlowLogsResult = (output: any, context: __SerdeContext): DeleteFlowLogsResult => { const contents: any = {}; if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -72458,8 +72224,8 @@ const de_DeleteFlowLogsResult = (output: any, context: __SerdeContext): DeleteFl */ const de_DeleteFpgaImageResult = (output: any, context: __SerdeContext): DeleteFpgaImageResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -72472,8 +72238,8 @@ const de_DeleteInstanceConnectEndpointResult = ( context: __SerdeContext ): DeleteInstanceConnectEndpointResult => { const contents: any = {}; - if (output["instanceConnectEndpoint"] !== undefined) { - contents.InstanceConnectEndpoint = de_Ec2InstanceConnectEndpoint(output["instanceConnectEndpoint"], context); + if (output[_iCE] != null) { + contents[_ICE] = de_Ec2InstanceConnectEndpoint(output[_iCE], context); } return contents; }; @@ -72483,8 +72249,8 @@ const de_DeleteInstanceConnectEndpointResult = ( */ const de_DeleteInstanceEventWindowResult = (output: any, context: __SerdeContext): DeleteInstanceEventWindowResult => { const contents: any = {}; - if (output["instanceEventWindowState"] !== undefined) { - contents.InstanceEventWindowState = de_InstanceEventWindowStateChange(output["instanceEventWindowState"], context); + if (output[_iEWS] != null) { + contents[_IEWS] = de_InstanceEventWindowStateChange(output[_iEWS], context); } return contents; }; @@ -72494,8 +72260,8 @@ const de_DeleteInstanceEventWindowResult = (output: any, context: __SerdeContext */ const de_DeleteIpamPoolResult = (output: any, context: __SerdeContext): DeleteIpamPoolResult => { const contents: any = {}; - if (output["ipamPool"] !== undefined) { - contents.IpamPool = de_IpamPool(output["ipamPool"], context); + if (output[_iPp] != null) { + contents[_IPpa] = de_IpamPool(output[_iPp], context); } return contents; }; @@ -72508,8 +72274,8 @@ const de_DeleteIpamResourceDiscoveryResult = ( context: __SerdeContext ): DeleteIpamResourceDiscoveryResult => { const contents: any = {}; - if (output["ipamResourceDiscovery"] !== undefined) { - contents.IpamResourceDiscovery = de_IpamResourceDiscovery(output["ipamResourceDiscovery"], context); + if (output[_iRD] != null) { + contents[_IRD] = de_IpamResourceDiscovery(output[_iRD], context); } return contents; }; @@ -72519,8 +72285,8 @@ const de_DeleteIpamResourceDiscoveryResult = ( */ const de_DeleteIpamResult = (output: any, context: __SerdeContext): DeleteIpamResult => { const contents: any = {}; - if (output["ipam"] !== undefined) { - contents.Ipam = de_Ipam(output["ipam"], context); + if (output[_ip] != null) { + contents[_Ipa] = de_Ipam(output[_ip], context); } return contents; }; @@ -72530,8 +72296,8 @@ const de_DeleteIpamResult = (output: any, context: __SerdeContext): DeleteIpamRe */ const de_DeleteIpamScopeResult = (output: any, context: __SerdeContext): DeleteIpamScopeResult => { const contents: any = {}; - if (output["ipamScope"] !== undefined) { - contents.IpamScope = de_IpamScope(output["ipamScope"], context); + if (output[_iS] != null) { + contents[_ISpa] = de_IpamScope(output[_iS], context); } return contents; }; @@ -72541,11 +72307,11 @@ const de_DeleteIpamScopeResult = (output: any, context: __SerdeContext): DeleteI */ const de_DeleteKeyPairResult = (output: any, context: __SerdeContext): DeleteKeyPairResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } - if (output["keyPairId"] !== undefined) { - contents.KeyPairId = __expectString(output["keyPairId"]); + if (output[_kPI] != null) { + contents[_KPI] = __expectString(output[_kPI]); } return contents; }; @@ -72555,8 +72321,8 @@ const de_DeleteKeyPairResult = (output: any, context: __SerdeContext): DeleteKey */ const de_DeleteLaunchTemplateResult = (output: any, context: __SerdeContext): DeleteLaunchTemplateResult => { const contents: any = {}; - if (output["launchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplate(output["launchTemplate"], context); + if (output[_lT] != null) { + contents[_LTa] = de_LaunchTemplate(output[_lT], context); } return contents; }; @@ -72569,17 +72335,17 @@ const de_DeleteLaunchTemplateVersionsResponseErrorItem = ( context: __SerdeContext ): DeleteLaunchTemplateVersionsResponseErrorItem => { const contents: any = {}; - if (output["launchTemplateId"] !== undefined) { - contents.LaunchTemplateId = __expectString(output["launchTemplateId"]); + if (output[_lTI] != null) { + contents[_LTI] = __expectString(output[_lTI]); } - if (output["launchTemplateName"] !== undefined) { - contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); + if (output[_lTN] != null) { + contents[_LTN] = __expectString(output[_lTN]); } - if (output["versionNumber"] !== undefined) { - contents.VersionNumber = __strictParseLong(output["versionNumber"]) as number; + if (output[_vNe] != null) { + contents[_VNe] = __strictParseLong(output[_vNe]) as number; } - if (output["responseError"] !== undefined) { - contents.ResponseError = de_ResponseError(output["responseError"], context); + if (output[_rE] != null) { + contents[_REe] = de_ResponseError(output[_rE], context); } return contents; }; @@ -72606,14 +72372,14 @@ const de_DeleteLaunchTemplateVersionsResponseSuccessItem = ( context: __SerdeContext ): DeleteLaunchTemplateVersionsResponseSuccessItem => { const contents: any = {}; - if (output["launchTemplateId"] !== undefined) { - contents.LaunchTemplateId = __expectString(output["launchTemplateId"]); + if (output[_lTI] != null) { + contents[_LTI] = __expectString(output[_lTI]); } - if (output["launchTemplateName"] !== undefined) { - contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); + if (output[_lTN] != null) { + contents[_LTN] = __expectString(output[_lTN]); } - if (output["versionNumber"] !== undefined) { - contents.VersionNumber = __strictParseLong(output["versionNumber"]) as number; + if (output[_vNe] != null) { + contents[_VNe] = __strictParseLong(output[_vNe]) as number; } return contents; }; @@ -72641,24 +72407,18 @@ const de_DeleteLaunchTemplateVersionsResult = ( ): DeleteLaunchTemplateVersionsResult => { const contents: any = {}; if (output.successfullyDeletedLaunchTemplateVersionSet === "") { - contents.SuccessfullyDeletedLaunchTemplateVersions = []; - } else if ( - output["successfullyDeletedLaunchTemplateVersionSet"] !== undefined && - output["successfullyDeletedLaunchTemplateVersionSet"]["item"] !== undefined - ) { - contents.SuccessfullyDeletedLaunchTemplateVersions = de_DeleteLaunchTemplateVersionsResponseSuccessSet( - __getArrayIfSingleItem(output["successfullyDeletedLaunchTemplateVersionSet"]["item"]), + contents[_SDLTV] = []; + } else if (output[_sDLTVS] != null && output[_sDLTVS][_i] != null) { + contents[_SDLTV] = de_DeleteLaunchTemplateVersionsResponseSuccessSet( + __getArrayIfSingleItem(output[_sDLTVS][_i]), context ); } if (output.unsuccessfullyDeletedLaunchTemplateVersionSet === "") { - contents.UnsuccessfullyDeletedLaunchTemplateVersions = []; - } else if ( - output["unsuccessfullyDeletedLaunchTemplateVersionSet"] !== undefined && - output["unsuccessfullyDeletedLaunchTemplateVersionSet"]["item"] !== undefined - ) { - contents.UnsuccessfullyDeletedLaunchTemplateVersions = de_DeleteLaunchTemplateVersionsResponseErrorSet( - __getArrayIfSingleItem(output["unsuccessfullyDeletedLaunchTemplateVersionSet"]["item"]), + contents[_UDLTV] = []; + } else if (output[_uDLTVS] != null && output[_uDLTVS][_i] != null) { + contents[_UDLTV] = de_DeleteLaunchTemplateVersionsResponseErrorSet( + __getArrayIfSingleItem(output[_uDLTVS][_i]), context ); } @@ -72670,8 +72430,8 @@ const de_DeleteLaunchTemplateVersionsResult = ( */ const de_DeleteLocalGatewayRouteResult = (output: any, context: __SerdeContext): DeleteLocalGatewayRouteResult => { const contents: any = {}; - if (output["route"] !== undefined) { - contents.Route = de_LocalGatewayRoute(output["route"], context); + if (output[_ro] != null) { + contents[_Ro] = de_LocalGatewayRoute(output[_ro], context); } return contents; }; @@ -72684,8 +72444,8 @@ const de_DeleteLocalGatewayRouteTableResult = ( context: __SerdeContext ): DeleteLocalGatewayRouteTableResult => { const contents: any = {}; - if (output["localGatewayRouteTable"] !== undefined) { - contents.LocalGatewayRouteTable = de_LocalGatewayRouteTable(output["localGatewayRouteTable"], context); + if (output[_lGRT] != null) { + contents[_LGRT] = de_LocalGatewayRouteTable(output[_lGRT], context); } return contents; }; @@ -72698,12 +72458,8 @@ const de_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult = ( context: __SerdeContext ): DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult => { const contents: any = {}; - if (output["localGatewayRouteTableVirtualInterfaceGroupAssociation"] !== undefined) { - contents.LocalGatewayRouteTableVirtualInterfaceGroupAssociation = - de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation( - output["localGatewayRouteTableVirtualInterfaceGroupAssociation"], - context - ); + if (output[_lGRTVIGA] != null) { + contents[_LGRTVIGA] = de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation(output[_lGRTVIGA], context); } return contents; }; @@ -72716,11 +72472,8 @@ const de_DeleteLocalGatewayRouteTableVpcAssociationResult = ( context: __SerdeContext ): DeleteLocalGatewayRouteTableVpcAssociationResult => { const contents: any = {}; - if (output["localGatewayRouteTableVpcAssociation"] !== undefined) { - contents.LocalGatewayRouteTableVpcAssociation = de_LocalGatewayRouteTableVpcAssociation( - output["localGatewayRouteTableVpcAssociation"], - context - ); + if (output[_lGRTVA] != null) { + contents[_LGRTVA] = de_LocalGatewayRouteTableVpcAssociation(output[_lGRTVA], context); } return contents; }; @@ -72730,8 +72483,8 @@ const de_DeleteLocalGatewayRouteTableVpcAssociationResult = ( */ const de_DeleteManagedPrefixListResult = (output: any, context: __SerdeContext): DeleteManagedPrefixListResult => { const contents: any = {}; - if (output["prefixList"] !== undefined) { - contents.PrefixList = de_ManagedPrefixList(output["prefixList"], context); + if (output[_pL] != null) { + contents[_PLr] = de_ManagedPrefixList(output[_pL], context); } return contents; }; @@ -72741,8 +72494,8 @@ const de_DeleteManagedPrefixListResult = (output: any, context: __SerdeContext): */ const de_DeleteNatGatewayResult = (output: any, context: __SerdeContext): DeleteNatGatewayResult => { const contents: any = {}; - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } return contents; }; @@ -72755,8 +72508,8 @@ const de_DeleteNetworkInsightsAccessScopeAnalysisResult = ( context: __SerdeContext ): DeleteNetworkInsightsAccessScopeAnalysisResult => { const contents: any = {}; - if (output["networkInsightsAccessScopeAnalysisId"] !== undefined) { - contents.NetworkInsightsAccessScopeAnalysisId = __expectString(output["networkInsightsAccessScopeAnalysisId"]); + if (output[_nIASAI] != null) { + contents[_NIASAI] = __expectString(output[_nIASAI]); } return contents; }; @@ -72769,8 +72522,8 @@ const de_DeleteNetworkInsightsAccessScopeResult = ( context: __SerdeContext ): DeleteNetworkInsightsAccessScopeResult => { const contents: any = {}; - if (output["networkInsightsAccessScopeId"] !== undefined) { - contents.NetworkInsightsAccessScopeId = __expectString(output["networkInsightsAccessScopeId"]); + if (output[_nIASI] != null) { + contents[_NIASI] = __expectString(output[_nIASI]); } return contents; }; @@ -72783,8 +72536,8 @@ const de_DeleteNetworkInsightsAnalysisResult = ( context: __SerdeContext ): DeleteNetworkInsightsAnalysisResult => { const contents: any = {}; - if (output["networkInsightsAnalysisId"] !== undefined) { - contents.NetworkInsightsAnalysisId = __expectString(output["networkInsightsAnalysisId"]); + if (output[_nIAI] != null) { + contents[_NIAI] = __expectString(output[_nIAI]); } return contents; }; @@ -72794,8 +72547,8 @@ const de_DeleteNetworkInsightsAnalysisResult = ( */ const de_DeleteNetworkInsightsPathResult = (output: any, context: __SerdeContext): DeleteNetworkInsightsPathResult => { const contents: any = {}; - if (output["networkInsightsPathId"] !== undefined) { - contents.NetworkInsightsPathId = __expectString(output["networkInsightsPathId"]); + if (output[_nIPI] != null) { + contents[_NIPI] = __expectString(output[_nIPI]); } return contents; }; @@ -72808,8 +72561,8 @@ const de_DeleteNetworkInterfacePermissionResult = ( context: __SerdeContext ): DeleteNetworkInterfacePermissionResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -72819,8 +72572,8 @@ const de_DeleteNetworkInterfacePermissionResult = ( */ const de_DeletePublicIpv4PoolResult = (output: any, context: __SerdeContext): DeletePublicIpv4PoolResult => { const contents: any = {}; - if (output["returnValue"] !== undefined) { - contents.ReturnValue = __parseBoolean(output["returnValue"]); + if (output[_rV] != null) { + contents[_RV] = __parseBoolean(output[_rV]); } return contents; }; @@ -72833,11 +72586,11 @@ const de_DeleteQueuedReservedInstancesError = ( context: __SerdeContext ): DeleteQueuedReservedInstancesError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -72851,26 +72604,14 @@ const de_DeleteQueuedReservedInstancesResult = ( ): DeleteQueuedReservedInstancesResult => { const contents: any = {}; if (output.successfulQueuedPurchaseDeletionSet === "") { - contents.SuccessfulQueuedPurchaseDeletions = []; - } else if ( - output["successfulQueuedPurchaseDeletionSet"] !== undefined && - output["successfulQueuedPurchaseDeletionSet"]["item"] !== undefined - ) { - contents.SuccessfulQueuedPurchaseDeletions = de_SuccessfulQueuedPurchaseDeletionSet( - __getArrayIfSingleItem(output["successfulQueuedPurchaseDeletionSet"]["item"]), - context - ); + contents[_SQPD] = []; + } else if (output[_sQPDS] != null && output[_sQPDS][_i] != null) { + contents[_SQPD] = de_SuccessfulQueuedPurchaseDeletionSet(__getArrayIfSingleItem(output[_sQPDS][_i]), context); } if (output.failedQueuedPurchaseDeletionSet === "") { - contents.FailedQueuedPurchaseDeletions = []; - } else if ( - output["failedQueuedPurchaseDeletionSet"] !== undefined && - output["failedQueuedPurchaseDeletionSet"]["item"] !== undefined - ) { - contents.FailedQueuedPurchaseDeletions = de_FailedQueuedPurchaseDeletionSet( - __getArrayIfSingleItem(output["failedQueuedPurchaseDeletionSet"]["item"]), - context - ); + contents[_FQPD] = []; + } else if (output[_fQPDS] != null && output[_fQPDS][_i] != null) { + contents[_FQPD] = de_FailedQueuedPurchaseDeletionSet(__getArrayIfSingleItem(output[_fQPDS][_i]), context); } return contents; }; @@ -72883,8 +72624,8 @@ const de_DeleteSubnetCidrReservationResult = ( context: __SerdeContext ): DeleteSubnetCidrReservationResult => { const contents: any = {}; - if (output["deletedSubnetCidrReservation"] !== undefined) { - contents.DeletedSubnetCidrReservation = de_SubnetCidrReservation(output["deletedSubnetCidrReservation"], context); + if (output[_dSCR] != null) { + contents[_DSCRe] = de_SubnetCidrReservation(output[_dSCR], context); } return contents; }; @@ -72894,8 +72635,8 @@ const de_DeleteSubnetCidrReservationResult = ( */ const de_DeleteTrafficMirrorFilterResult = (output: any, context: __SerdeContext): DeleteTrafficMirrorFilterResult => { const contents: any = {}; - if (output["trafficMirrorFilterId"] !== undefined) { - contents.TrafficMirrorFilterId = __expectString(output["trafficMirrorFilterId"]); + if (output[_tMFI] != null) { + contents[_TMFI] = __expectString(output[_tMFI]); } return contents; }; @@ -72908,8 +72649,8 @@ const de_DeleteTrafficMirrorFilterRuleResult = ( context: __SerdeContext ): DeleteTrafficMirrorFilterRuleResult => { const contents: any = {}; - if (output["trafficMirrorFilterRuleId"] !== undefined) { - contents.TrafficMirrorFilterRuleId = __expectString(output["trafficMirrorFilterRuleId"]); + if (output[_tMFRI] != null) { + contents[_TMFRI] = __expectString(output[_tMFRI]); } return contents; }; @@ -72922,8 +72663,8 @@ const de_DeleteTrafficMirrorSessionResult = ( context: __SerdeContext ): DeleteTrafficMirrorSessionResult => { const contents: any = {}; - if (output["trafficMirrorSessionId"] !== undefined) { - contents.TrafficMirrorSessionId = __expectString(output["trafficMirrorSessionId"]); + if (output[_tMSI] != null) { + contents[_TMSI] = __expectString(output[_tMSI]); } return contents; }; @@ -72933,8 +72674,8 @@ const de_DeleteTrafficMirrorSessionResult = ( */ const de_DeleteTrafficMirrorTargetResult = (output: any, context: __SerdeContext): DeleteTrafficMirrorTargetResult => { const contents: any = {}; - if (output["trafficMirrorTargetId"] !== undefined) { - contents.TrafficMirrorTargetId = __expectString(output["trafficMirrorTargetId"]); + if (output[_tMTI] != null) { + contents[_TMTI] = __expectString(output[_tMTI]); } return contents; }; @@ -72947,8 +72688,8 @@ const de_DeleteTransitGatewayConnectPeerResult = ( context: __SerdeContext ): DeleteTransitGatewayConnectPeerResult => { const contents: any = {}; - if (output["transitGatewayConnectPeer"] !== undefined) { - contents.TransitGatewayConnectPeer = de_TransitGatewayConnectPeer(output["transitGatewayConnectPeer"], context); + if (output[_tGCP] != null) { + contents[_TGCP] = de_TransitGatewayConnectPeer(output[_tGCP], context); } return contents; }; @@ -72961,8 +72702,8 @@ const de_DeleteTransitGatewayConnectResult = ( context: __SerdeContext ): DeleteTransitGatewayConnectResult => { const contents: any = {}; - if (output["transitGatewayConnect"] !== undefined) { - contents.TransitGatewayConnect = de_TransitGatewayConnect(output["transitGatewayConnect"], context); + if (output[_tGC] != null) { + contents[_TGCr] = de_TransitGatewayConnect(output[_tGC], context); } return contents; }; @@ -72975,11 +72716,8 @@ const de_DeleteTransitGatewayMulticastDomainResult = ( context: __SerdeContext ): DeleteTransitGatewayMulticastDomainResult => { const contents: any = {}; - if (output["transitGatewayMulticastDomain"] !== undefined) { - contents.TransitGatewayMulticastDomain = de_TransitGatewayMulticastDomain( - output["transitGatewayMulticastDomain"], - context - ); + if (output[_tGMD] != null) { + contents[_TGMD] = de_TransitGatewayMulticastDomain(output[_tGMD], context); } return contents; }; @@ -72992,11 +72730,8 @@ const de_DeleteTransitGatewayPeeringAttachmentResult = ( context: __SerdeContext ): DeleteTransitGatewayPeeringAttachmentResult => { const contents: any = {}; - if (output["transitGatewayPeeringAttachment"] !== undefined) { - contents.TransitGatewayPeeringAttachment = de_TransitGatewayPeeringAttachment( - output["transitGatewayPeeringAttachment"], - context - ); + if (output[_tGPA] != null) { + contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context); } return contents; }; @@ -73009,8 +72744,8 @@ const de_DeleteTransitGatewayPolicyTableResult = ( context: __SerdeContext ): DeleteTransitGatewayPolicyTableResult => { const contents: any = {}; - if (output["transitGatewayPolicyTable"] !== undefined) { - contents.TransitGatewayPolicyTable = de_TransitGatewayPolicyTable(output["transitGatewayPolicyTable"], context); + if (output[_tGPT] != null) { + contents[_TGPT] = de_TransitGatewayPolicyTable(output[_tGPT], context); } return contents; }; @@ -73023,11 +72758,8 @@ const de_DeleteTransitGatewayPrefixListReferenceResult = ( context: __SerdeContext ): DeleteTransitGatewayPrefixListReferenceResult => { const contents: any = {}; - if (output["transitGatewayPrefixListReference"] !== undefined) { - contents.TransitGatewayPrefixListReference = de_TransitGatewayPrefixListReference( - output["transitGatewayPrefixListReference"], - context - ); + if (output[_tGPLR] != null) { + contents[_TGPLR] = de_TransitGatewayPrefixListReference(output[_tGPLR], context); } return contents; }; @@ -73037,8 +72769,8 @@ const de_DeleteTransitGatewayPrefixListReferenceResult = ( */ const de_DeleteTransitGatewayResult = (output: any, context: __SerdeContext): DeleteTransitGatewayResult => { const contents: any = {}; - if (output["transitGateway"] !== undefined) { - contents.TransitGateway = de_TransitGateway(output["transitGateway"], context); + if (output[_tG] != null) { + contents[_TGr] = de_TransitGateway(output[_tG], context); } return contents; }; @@ -73048,8 +72780,8 @@ const de_DeleteTransitGatewayResult = (output: any, context: __SerdeContext): De */ const de_DeleteTransitGatewayRouteResult = (output: any, context: __SerdeContext): DeleteTransitGatewayRouteResult => { const contents: any = {}; - if (output["route"] !== undefined) { - contents.Route = de_TransitGatewayRoute(output["route"], context); + if (output[_ro] != null) { + contents[_Ro] = de_TransitGatewayRoute(output[_ro], context); } return contents; }; @@ -73062,11 +72794,8 @@ const de_DeleteTransitGatewayRouteTableAnnouncementResult = ( context: __SerdeContext ): DeleteTransitGatewayRouteTableAnnouncementResult => { const contents: any = {}; - if (output["transitGatewayRouteTableAnnouncement"] !== undefined) { - contents.TransitGatewayRouteTableAnnouncement = de_TransitGatewayRouteTableAnnouncement( - output["transitGatewayRouteTableAnnouncement"], - context - ); + if (output[_tGRTA] != null) { + contents[_TGRTA] = de_TransitGatewayRouteTableAnnouncement(output[_tGRTA], context); } return contents; }; @@ -73079,8 +72808,8 @@ const de_DeleteTransitGatewayRouteTableResult = ( context: __SerdeContext ): DeleteTransitGatewayRouteTableResult => { const contents: any = {}; - if (output["transitGatewayRouteTable"] !== undefined) { - contents.TransitGatewayRouteTable = de_TransitGatewayRouteTable(output["transitGatewayRouteTable"], context); + if (output[_tGRT] != null) { + contents[_TGRT] = de_TransitGatewayRouteTable(output[_tGRT], context); } return contents; }; @@ -73093,11 +72822,8 @@ const de_DeleteTransitGatewayVpcAttachmentResult = ( context: __SerdeContext ): DeleteTransitGatewayVpcAttachmentResult => { const contents: any = {}; - if (output["transitGatewayVpcAttachment"] !== undefined) { - contents.TransitGatewayVpcAttachment = de_TransitGatewayVpcAttachment( - output["transitGatewayVpcAttachment"], - context - ); + if (output[_tGVA] != null) { + contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context); } return contents; }; @@ -73110,8 +72836,8 @@ const de_DeleteVerifiedAccessEndpointResult = ( context: __SerdeContext ): DeleteVerifiedAccessEndpointResult => { const contents: any = {}; - if (output["verifiedAccessEndpoint"] !== undefined) { - contents.VerifiedAccessEndpoint = de_VerifiedAccessEndpoint(output["verifiedAccessEndpoint"], context); + if (output[_vAE] != null) { + contents[_VAE] = de_VerifiedAccessEndpoint(output[_vAE], context); } return contents; }; @@ -73121,8 +72847,8 @@ const de_DeleteVerifiedAccessEndpointResult = ( */ const de_DeleteVerifiedAccessGroupResult = (output: any, context: __SerdeContext): DeleteVerifiedAccessGroupResult => { const contents: any = {}; - if (output["verifiedAccessGroup"] !== undefined) { - contents.VerifiedAccessGroup = de_VerifiedAccessGroup(output["verifiedAccessGroup"], context); + if (output[_vAG] != null) { + contents[_VAG] = de_VerifiedAccessGroup(output[_vAG], context); } return contents; }; @@ -73135,8 +72861,8 @@ const de_DeleteVerifiedAccessInstanceResult = ( context: __SerdeContext ): DeleteVerifiedAccessInstanceResult => { const contents: any = {}; - if (output["verifiedAccessInstance"] !== undefined) { - contents.VerifiedAccessInstance = de_VerifiedAccessInstance(output["verifiedAccessInstance"], context); + if (output[_vAI] != null) { + contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context); } return contents; }; @@ -73149,11 +72875,8 @@ const de_DeleteVerifiedAccessTrustProviderResult = ( context: __SerdeContext ): DeleteVerifiedAccessTrustProviderResult => { const contents: any = {}; - if (output["verifiedAccessTrustProvider"] !== undefined) { - contents.VerifiedAccessTrustProvider = de_VerifiedAccessTrustProvider( - output["verifiedAccessTrustProvider"], - context - ); + if (output[_vATP] != null) { + contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context); } return contents; }; @@ -73167,9 +72890,9 @@ const de_DeleteVpcEndpointConnectionNotificationsResult = ( ): DeleteVpcEndpointConnectionNotificationsResult => { const contents: any = {}; if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -73183,9 +72906,9 @@ const de_DeleteVpcEndpointServiceConfigurationsResult = ( ): DeleteVpcEndpointServiceConfigurationsResult => { const contents: any = {}; if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -73196,9 +72919,9 @@ const de_DeleteVpcEndpointServiceConfigurationsResult = ( const de_DeleteVpcEndpointsResult = (output: any, context: __SerdeContext): DeleteVpcEndpointsResult => { const contents: any = {}; if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -73211,8 +72934,8 @@ const de_DeleteVpcPeeringConnectionResult = ( context: __SerdeContext ): DeleteVpcPeeringConnectionResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -73222,8 +72945,8 @@ const de_DeleteVpcPeeringConnectionResult = ( */ const de_DeprovisionByoipCidrResult = (output: any, context: __SerdeContext): DeprovisionByoipCidrResult => { const contents: any = {}; - if (output["byoipCidr"] !== undefined) { - contents.ByoipCidr = de_ByoipCidr(output["byoipCidr"], context); + if (output[_bC] != null) { + contents[_BC] = de_ByoipCidr(output[_bC], context); } return contents; }; @@ -73244,8 +72967,8 @@ const de_DeprovisionedAddressSet = (output: any, context: __SerdeContext): strin */ const de_DeprovisionIpamByoasnResult = (output: any, context: __SerdeContext): DeprovisionIpamByoasnResult => { const contents: any = {}; - if (output["byoasn"] !== undefined) { - contents.Byoasn = de_Byoasn(output["byoasn"], context); + if (output[_b] != null) { + contents[_Byo] = de_Byoasn(output[_b], context); } return contents; }; @@ -73255,8 +72978,8 @@ const de_DeprovisionIpamByoasnResult = (output: any, context: __SerdeContext): D */ const de_DeprovisionIpamPoolCidrResult = (output: any, context: __SerdeContext): DeprovisionIpamPoolCidrResult => { const contents: any = {}; - if (output["ipamPoolCidr"] !== undefined) { - contents.IpamPoolCidr = de_IpamPoolCidr(output["ipamPoolCidr"], context); + if (output[_iPC] != null) { + contents[_IPCpa] = de_IpamPoolCidr(output[_iPC], context); } return contents; }; @@ -73269,19 +72992,13 @@ const de_DeprovisionPublicIpv4PoolCidrResult = ( context: __SerdeContext ): DeprovisionPublicIpv4PoolCidrResult => { const contents: any = {}; - if (output["poolId"] !== undefined) { - contents.PoolId = __expectString(output["poolId"]); + if (output[_pIo] != null) { + contents[_PIo] = __expectString(output[_pIo]); } if (output.deprovisionedAddressSet === "") { - contents.DeprovisionedAddresses = []; - } else if ( - output["deprovisionedAddressSet"] !== undefined && - output["deprovisionedAddressSet"]["item"] !== undefined - ) { - contents.DeprovisionedAddresses = de_DeprovisionedAddressSet( - __getArrayIfSingleItem(output["deprovisionedAddressSet"]["item"]), - context - ); + contents[_DAep] = []; + } else if (output[_dASe] != null && output[_dASe][_i] != null) { + contents[_DAep] = de_DeprovisionedAddressSet(__getArrayIfSingleItem(output[_dASe][_i]), context); } return contents; }; @@ -73294,8 +73011,8 @@ const de_DeregisterInstanceEventNotificationAttributesResult = ( context: __SerdeContext ): DeregisterInstanceEventNotificationAttributesResult => { const contents: any = {}; - if (output["instanceTagAttribute"] !== undefined) { - contents.InstanceTagAttribute = de_InstanceTagNotificationAttribute(output["instanceTagAttribute"], context); + if (output[_iTA] != null) { + contents[_ITA] = de_InstanceTagNotificationAttribute(output[_iTA], context); } return contents; }; @@ -73308,11 +73025,8 @@ const de_DeregisterTransitGatewayMulticastGroupMembersResult = ( context: __SerdeContext ): DeregisterTransitGatewayMulticastGroupMembersResult => { const contents: any = {}; - if (output["deregisteredMulticastGroupMembers"] !== undefined) { - contents.DeregisteredMulticastGroupMembers = de_TransitGatewayMulticastDeregisteredGroupMembers( - output["deregisteredMulticastGroupMembers"], - context - ); + if (output[_dMGM] != null) { + contents[_DMGM] = de_TransitGatewayMulticastDeregisteredGroupMembers(output[_dMGM], context); } return contents; }; @@ -73325,11 +73039,8 @@ const de_DeregisterTransitGatewayMulticastGroupSourcesResult = ( context: __SerdeContext ): DeregisterTransitGatewayMulticastGroupSourcesResult => { const contents: any = {}; - if (output["deregisteredMulticastGroupSources"] !== undefined) { - contents.DeregisteredMulticastGroupSources = de_TransitGatewayMulticastDeregisteredGroupSources( - output["deregisteredMulticastGroupSources"], - context - ); + if (output[_dMGS] != null) { + contents[_DMGS] = de_TransitGatewayMulticastDeregisteredGroupSources(output[_dMGS], context); } return contents; }; @@ -73340,12 +73051,9 @@ const de_DeregisterTransitGatewayMulticastGroupSourcesResult = ( const de_DescribeAccountAttributesResult = (output: any, context: __SerdeContext): DescribeAccountAttributesResult => { const contents: any = {}; if (output.accountAttributeSet === "") { - contents.AccountAttributes = []; - } else if (output["accountAttributeSet"] !== undefined && output["accountAttributeSet"]["item"] !== undefined) { - contents.AccountAttributes = de_AccountAttributeList( - __getArrayIfSingleItem(output["accountAttributeSet"]["item"]), - context - ); + contents[_AAcc] = []; + } else if (output[_aASc] != null && output[_aASc][_i] != null) { + contents[_AAcc] = de_AccountAttributeList(__getArrayIfSingleItem(output[_aASc][_i]), context); } return contents; }; @@ -73359,12 +73067,12 @@ const de_DescribeAddressesAttributeResult = ( ): DescribeAddressesAttributeResult => { const contents: any = {}; if (output.addressSet === "") { - contents.Addresses = []; - } else if (output["addressSet"] !== undefined && output["addressSet"]["item"] !== undefined) { - contents.Addresses = de_AddressSet(__getArrayIfSingleItem(output["addressSet"]["item"]), context); + contents[_Addr] = []; + } else if (output[_aSd] != null && output[_aSd][_i] != null) { + contents[_Addr] = de_AddressSet(__getArrayIfSingleItem(output[_aSd][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73375,9 +73083,9 @@ const de_DescribeAddressesAttributeResult = ( const de_DescribeAddressesResult = (output: any, context: __SerdeContext): DescribeAddressesResult => { const contents: any = {}; if (output.addressesSet === "") { - contents.Addresses = []; - } else if (output["addressesSet"] !== undefined && output["addressesSet"]["item"] !== undefined) { - contents.Addresses = de_AddressList(__getArrayIfSingleItem(output["addressesSet"]["item"]), context); + contents[_Addr] = []; + } else if (output[_aSdd] != null && output[_aSdd][_i] != null) { + contents[_Addr] = de_AddressList(__getArrayIfSingleItem(output[_aSdd][_i]), context); } return contents; }; @@ -73388,15 +73096,12 @@ const de_DescribeAddressesResult = (output: any, context: __SerdeContext): Descr const de_DescribeAddressTransfersResult = (output: any, context: __SerdeContext): DescribeAddressTransfersResult => { const contents: any = {}; if (output.addressTransferSet === "") { - contents.AddressTransfers = []; - } else if (output["addressTransferSet"] !== undefined && output["addressTransferSet"]["item"] !== undefined) { - contents.AddressTransfers = de_AddressTransferList( - __getArrayIfSingleItem(output["addressTransferSet"]["item"]), - context - ); + contents[_ATddr] = []; + } else if (output[_aTSd] != null && output[_aTSd][_i] != null) { + contents[_ATddr] = de_AddressTransferList(__getArrayIfSingleItem(output[_aTSd][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73406,13 +73111,13 @@ const de_DescribeAddressTransfersResult = (output: any, context: __SerdeContext) */ const de_DescribeAggregateIdFormatResult = (output: any, context: __SerdeContext): DescribeAggregateIdFormatResult => { const contents: any = {}; - if (output["useLongIdsAggregated"] !== undefined) { - contents.UseLongIdsAggregated = __parseBoolean(output["useLongIdsAggregated"]); + if (output[_uLIA] != null) { + contents[_ULIA] = __parseBoolean(output[_uLIA]); } if (output.statusSet === "") { - contents.Statuses = []; - } else if (output["statusSet"] !== undefined && output["statusSet"]["item"] !== undefined) { - contents.Statuses = de_IdFormatList(__getArrayIfSingleItem(output["statusSet"]["item"]), context); + contents[_Status] = []; + } else if (output[_sSt] != null && output[_sSt][_i] != null) { + contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); } return contents; }; @@ -73423,12 +73128,9 @@ const de_DescribeAggregateIdFormatResult = (output: any, context: __SerdeContext const de_DescribeAvailabilityZonesResult = (output: any, context: __SerdeContext): DescribeAvailabilityZonesResult => { const contents: any = {}; if (output.availabilityZoneInfo === "") { - contents.AvailabilityZones = []; - } else if (output["availabilityZoneInfo"] !== undefined && output["availabilityZoneInfo"]["item"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZoneList( - __getArrayIfSingleItem(output["availabilityZoneInfo"]["item"]), - context - ); + contents[_AZv] = []; + } else if (output[_aZIv] != null && output[_aZIv][_i] != null) { + contents[_AZv] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_aZIv][_i]), context); } return contents; }; @@ -73441,13 +73143,13 @@ const de_DescribeAwsNetworkPerformanceMetricSubscriptionsResult = ( context: __SerdeContext ): DescribeAwsNetworkPerformanceMetricSubscriptionsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.subscriptionSet === "") { - contents.Subscriptions = []; - } else if (output["subscriptionSet"] !== undefined && output["subscriptionSet"]["item"] !== undefined) { - contents.Subscriptions = de_SubscriptionList(__getArrayIfSingleItem(output["subscriptionSet"]["item"]), context); + contents[_Sub] = []; + } else if (output[_sSu] != null && output[_sSu][_i] != null) { + contents[_Sub] = de_SubscriptionList(__getArrayIfSingleItem(output[_sSu][_i]), context); } return contents; }; @@ -73458,9 +73160,9 @@ const de_DescribeAwsNetworkPerformanceMetricSubscriptionsResult = ( const de_DescribeBundleTasksResult = (output: any, context: __SerdeContext): DescribeBundleTasksResult => { const contents: any = {}; if (output.bundleInstanceTasksSet === "") { - contents.BundleTasks = []; - } else if (output["bundleInstanceTasksSet"] !== undefined && output["bundleInstanceTasksSet"]["item"] !== undefined) { - contents.BundleTasks = de_BundleTaskList(__getArrayIfSingleItem(output["bundleInstanceTasksSet"]["item"]), context); + contents[_BTun] = []; + } else if (output[_bITS] != null && output[_bITS][_i] != null) { + contents[_BTun] = de_BundleTaskList(__getArrayIfSingleItem(output[_bITS][_i]), context); } return contents; }; @@ -73471,12 +73173,12 @@ const de_DescribeBundleTasksResult = (output: any, context: __SerdeContext): Des const de_DescribeByoipCidrsResult = (output: any, context: __SerdeContext): DescribeByoipCidrsResult => { const contents: any = {}; if (output.byoipCidrSet === "") { - contents.ByoipCidrs = []; - } else if (output["byoipCidrSet"] !== undefined && output["byoipCidrSet"]["item"] !== undefined) { - contents.ByoipCidrs = de_ByoipCidrSet(__getArrayIfSingleItem(output["byoipCidrSet"]["item"]), context); + contents[_BCy] = []; + } else if (output[_bCS] != null && output[_bCS][_i] != null) { + contents[_BCy] = de_ByoipCidrSet(__getArrayIfSingleItem(output[_bCS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73490,18 +73192,12 @@ const de_DescribeCapacityBlockOfferingsResult = ( ): DescribeCapacityBlockOfferingsResult => { const contents: any = {}; if (output.capacityBlockOfferingSet === "") { - contents.CapacityBlockOfferings = []; - } else if ( - output["capacityBlockOfferingSet"] !== undefined && - output["capacityBlockOfferingSet"]["item"] !== undefined - ) { - contents.CapacityBlockOfferings = de_CapacityBlockOfferingSet( - __getArrayIfSingleItem(output["capacityBlockOfferingSet"]["item"]), - context - ); + contents[_CBO] = []; + } else if (output[_cBOS] != null && output[_cBOS][_i] != null) { + contents[_CBO] = de_CapacityBlockOfferingSet(__getArrayIfSingleItem(output[_cBOS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73515,18 +73211,12 @@ const de_DescribeCapacityReservationFleetsResult = ( ): DescribeCapacityReservationFleetsResult => { const contents: any = {}; if (output.capacityReservationFleetSet === "") { - contents.CapacityReservationFleets = []; - } else if ( - output["capacityReservationFleetSet"] !== undefined && - output["capacityReservationFleetSet"]["item"] !== undefined - ) { - contents.CapacityReservationFleets = de_CapacityReservationFleetSet( - __getArrayIfSingleItem(output["capacityReservationFleetSet"]["item"]), - context - ); + contents[_CRF] = []; + } else if (output[_cRFS] != null && output[_cRFS][_i] != null) { + contents[_CRF] = de_CapacityReservationFleetSet(__getArrayIfSingleItem(output[_cRFS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73539,16 +73229,13 @@ const de_DescribeCapacityReservationsResult = ( context: __SerdeContext ): DescribeCapacityReservationsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.capacityReservationSet === "") { - contents.CapacityReservations = []; - } else if (output["capacityReservationSet"] !== undefined && output["capacityReservationSet"]["item"] !== undefined) { - contents.CapacityReservations = de_CapacityReservationSet( - __getArrayIfSingleItem(output["capacityReservationSet"]["item"]), - context - ); + contents[_CRapac] = []; + } else if (output[_cRS] != null && output[_cRS][_i] != null) { + contents[_CRapac] = de_CapacityReservationSet(__getArrayIfSingleItem(output[_cRS][_i]), context); } return contents; }; @@ -73559,15 +73246,12 @@ const de_DescribeCapacityReservationsResult = ( const de_DescribeCarrierGatewaysResult = (output: any, context: __SerdeContext): DescribeCarrierGatewaysResult => { const contents: any = {}; if (output.carrierGatewaySet === "") { - contents.CarrierGateways = []; - } else if (output["carrierGatewaySet"] !== undefined && output["carrierGatewaySet"]["item"] !== undefined) { - contents.CarrierGateways = de_CarrierGatewaySet( - __getArrayIfSingleItem(output["carrierGatewaySet"]["item"]), - context - ); + contents[_CGa] = []; + } else if (output[_cGS] != null && output[_cGS][_i] != null) { + contents[_CGa] = de_CarrierGatewaySet(__getArrayIfSingleItem(output[_cGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73581,12 +73265,12 @@ const de_DescribeClassicLinkInstancesResult = ( ): DescribeClassicLinkInstancesResult => { const contents: any = {}; if (output.instancesSet === "") { - contents.Instances = []; - } else if (output["instancesSet"] !== undefined && output["instancesSet"]["item"] !== undefined) { - contents.Instances = de_ClassicLinkInstanceList(__getArrayIfSingleItem(output["instancesSet"]["item"]), context); + contents[_In] = []; + } else if (output[_iSn] != null && output[_iSn][_i] != null) { + contents[_In] = de_ClassicLinkInstanceList(__getArrayIfSingleItem(output[_iSn][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73600,15 +73284,12 @@ const de_DescribeClientVpnAuthorizationRulesResult = ( ): DescribeClientVpnAuthorizationRulesResult => { const contents: any = {}; if (output.authorizationRule === "") { - contents.AuthorizationRules = []; - } else if (output["authorizationRule"] !== undefined && output["authorizationRule"]["item"] !== undefined) { - contents.AuthorizationRules = de_AuthorizationRuleSet( - __getArrayIfSingleItem(output["authorizationRule"]["item"]), - context - ); + contents[_ARut] = []; + } else if (output[_aR] != null && output[_aR][_i] != null) { + contents[_ARut] = de_AuthorizationRuleSet(__getArrayIfSingleItem(output[_aR][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73622,12 +73303,12 @@ const de_DescribeClientVpnConnectionsResult = ( ): DescribeClientVpnConnectionsResult => { const contents: any = {}; if (output.connections === "") { - contents.Connections = []; - } else if (output["connections"] !== undefined && output["connections"]["item"] !== undefined) { - contents.Connections = de_ClientVpnConnectionSet(__getArrayIfSingleItem(output["connections"]["item"]), context); + contents[_Conn] = []; + } else if (output[_con] != null && output[_con][_i] != null) { + contents[_Conn] = de_ClientVpnConnectionSet(__getArrayIfSingleItem(output[_con][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73641,12 +73322,12 @@ const de_DescribeClientVpnEndpointsResult = ( ): DescribeClientVpnEndpointsResult => { const contents: any = {}; if (output.clientVpnEndpoint === "") { - contents.ClientVpnEndpoints = []; - } else if (output["clientVpnEndpoint"] !== undefined && output["clientVpnEndpoint"]["item"] !== undefined) { - contents.ClientVpnEndpoints = de_EndpointSet(__getArrayIfSingleItem(output["clientVpnEndpoint"]["item"]), context); + contents[_CVEl] = []; + } else if (output[_cVE] != null && output[_cVE][_i] != null) { + contents[_CVEl] = de_EndpointSet(__getArrayIfSingleItem(output[_cVE][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73657,12 +73338,12 @@ const de_DescribeClientVpnEndpointsResult = ( const de_DescribeClientVpnRoutesResult = (output: any, context: __SerdeContext): DescribeClientVpnRoutesResult => { const contents: any = {}; if (output.routes === "") { - contents.Routes = []; - } else if (output["routes"] !== undefined && output["routes"]["item"] !== undefined) { - contents.Routes = de_ClientVpnRouteSet(__getArrayIfSingleItem(output["routes"]["item"]), context); + contents[_Rou] = []; + } else if (output[_rou] != null && output[_rou][_i] != null) { + contents[_Rou] = de_ClientVpnRouteSet(__getArrayIfSingleItem(output[_rou][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73676,18 +73357,12 @@ const de_DescribeClientVpnTargetNetworksResult = ( ): DescribeClientVpnTargetNetworksResult => { const contents: any = {}; if (output.clientVpnTargetNetworks === "") { - contents.ClientVpnTargetNetworks = []; - } else if ( - output["clientVpnTargetNetworks"] !== undefined && - output["clientVpnTargetNetworks"]["item"] !== undefined - ) { - contents.ClientVpnTargetNetworks = de_TargetNetworkSet( - __getArrayIfSingleItem(output["clientVpnTargetNetworks"]["item"]), - context - ); + contents[_CVTN] = []; + } else if (output[_cVTN] != null && output[_cVTN][_i] != null) { + contents[_CVTN] = de_TargetNetworkSet(__getArrayIfSingleItem(output[_cVTN][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73698,12 +73373,12 @@ const de_DescribeClientVpnTargetNetworksResult = ( const de_DescribeCoipPoolsResult = (output: any, context: __SerdeContext): DescribeCoipPoolsResult => { const contents: any = {}; if (output.coipPoolSet === "") { - contents.CoipPools = []; - } else if (output["coipPoolSet"] !== undefined && output["coipPoolSet"]["item"] !== undefined) { - contents.CoipPools = de_CoipPoolSet(__getArrayIfSingleItem(output["coipPoolSet"]["item"]), context); + contents[_CPo] = []; + } else if (output[_cPS] != null && output[_cPS][_i] != null) { + contents[_CPo] = de_CoipPoolSet(__getArrayIfSingleItem(output[_cPS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73725,12 +73400,9 @@ const de_DescribeConversionTaskList = (output: any, context: __SerdeContext): Co const de_DescribeConversionTasksResult = (output: any, context: __SerdeContext): DescribeConversionTasksResult => { const contents: any = {}; if (output.conversionTasks === "") { - contents.ConversionTasks = []; - } else if (output["conversionTasks"] !== undefined && output["conversionTasks"]["item"] !== undefined) { - contents.ConversionTasks = de_DescribeConversionTaskList( - __getArrayIfSingleItem(output["conversionTasks"]["item"]), - context - ); + contents[_CTon] = []; + } else if (output[_cTo] != null && output[_cTo][_i] != null) { + contents[_CTon] = de_DescribeConversionTaskList(__getArrayIfSingleItem(output[_cTo][_i]), context); } return contents; }; @@ -73741,12 +73413,9 @@ const de_DescribeConversionTasksResult = (output: any, context: __SerdeContext): const de_DescribeCustomerGatewaysResult = (output: any, context: __SerdeContext): DescribeCustomerGatewaysResult => { const contents: any = {}; if (output.customerGatewaySet === "") { - contents.CustomerGateways = []; - } else if (output["customerGatewaySet"] !== undefined && output["customerGatewaySet"]["item"] !== undefined) { - contents.CustomerGateways = de_CustomerGatewayList( - __getArrayIfSingleItem(output["customerGatewaySet"]["item"]), - context - ); + contents[_CGus] = []; + } else if (output[_cGSu] != null && output[_cGSu][_i] != null) { + contents[_CGus] = de_CustomerGatewayList(__getArrayIfSingleItem(output[_cGSu][_i]), context); } return contents; }; @@ -73757,12 +73426,12 @@ const de_DescribeCustomerGatewaysResult = (output: any, context: __SerdeContext) const de_DescribeDhcpOptionsResult = (output: any, context: __SerdeContext): DescribeDhcpOptionsResult => { const contents: any = {}; if (output.dhcpOptionsSet === "") { - contents.DhcpOptions = []; - } else if (output["dhcpOptionsSet"] !== undefined && output["dhcpOptionsSet"]["item"] !== undefined) { - contents.DhcpOptions = de_DhcpOptionsList(__getArrayIfSingleItem(output["dhcpOptionsSet"]["item"]), context); + contents[_DOh] = []; + } else if (output[_dOS] != null && output[_dOS][_i] != null) { + contents[_DOh] = de_DhcpOptionsList(__getArrayIfSingleItem(output[_dOS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73776,18 +73445,12 @@ const de_DescribeEgressOnlyInternetGatewaysResult = ( ): DescribeEgressOnlyInternetGatewaysResult => { const contents: any = {}; if (output.egressOnlyInternetGatewaySet === "") { - contents.EgressOnlyInternetGateways = []; - } else if ( - output["egressOnlyInternetGatewaySet"] !== undefined && - output["egressOnlyInternetGatewaySet"]["item"] !== undefined - ) { - contents.EgressOnlyInternetGateways = de_EgressOnlyInternetGatewayList( - __getArrayIfSingleItem(output["egressOnlyInternetGatewaySet"]["item"]), - context - ); + contents[_EOIGg] = []; + } else if (output[_eOIGS] != null && output[_eOIGS][_i] != null) { + contents[_EOIGg] = de_EgressOnlyInternetGatewayList(__getArrayIfSingleItem(output[_eOIGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73798,15 +73461,15 @@ const de_DescribeEgressOnlyInternetGatewaysResult = ( const de_DescribeElasticGpusResult = (output: any, context: __SerdeContext): DescribeElasticGpusResult => { const contents: any = {}; if (output.elasticGpuSet === "") { - contents.ElasticGpuSet = []; - } else if (output["elasticGpuSet"] !== undefined && output["elasticGpuSet"]["item"] !== undefined) { - contents.ElasticGpuSet = de_ElasticGpuSet(__getArrayIfSingleItem(output["elasticGpuSet"]["item"]), context); + contents[_EGSla] = []; + } else if (output[_eGS] != null && output[_eGS][_i] != null) { + contents[_EGSla] = de_ElasticGpuSet(__getArrayIfSingleItem(output[_eGS][_i]), context); } - if (output["maxResults"] !== undefined) { - contents.MaxResults = __strictParseInt32(output["maxResults"]) as number; + if (output[_mR] != null) { + contents[_MR] = __strictParseInt32(output[_mR]) as number; } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73817,15 +73480,12 @@ const de_DescribeElasticGpusResult = (output: any, context: __SerdeContext): Des const de_DescribeExportImageTasksResult = (output: any, context: __SerdeContext): DescribeExportImageTasksResult => { const contents: any = {}; if (output.exportImageTaskSet === "") { - contents.ExportImageTasks = []; - } else if (output["exportImageTaskSet"] !== undefined && output["exportImageTaskSet"]["item"] !== undefined) { - contents.ExportImageTasks = de_ExportImageTaskList( - __getArrayIfSingleItem(output["exportImageTaskSet"]["item"]), - context - ); + contents[_EITx] = []; + } else if (output[_eITS] != null && output[_eITS][_i] != null) { + contents[_EITx] = de_ExportImageTaskList(__getArrayIfSingleItem(output[_eITS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73836,9 +73496,9 @@ const de_DescribeExportImageTasksResult = (output: any, context: __SerdeContext) const de_DescribeExportTasksResult = (output: any, context: __SerdeContext): DescribeExportTasksResult => { const contents: any = {}; if (output.exportTaskSet === "") { - contents.ExportTasks = []; - } else if (output["exportTaskSet"] !== undefined && output["exportTaskSet"]["item"] !== undefined) { - contents.ExportTasks = de_ExportTaskList(__getArrayIfSingleItem(output["exportTaskSet"]["item"]), context); + contents[_ETxpo] = []; + } else if (output[_eTS] != null && output[_eTS][_i] != null) { + contents[_ETxpo] = de_ExportTaskList(__getArrayIfSingleItem(output[_eTS][_i]), context); } return contents; }; @@ -73849,15 +73509,12 @@ const de_DescribeExportTasksResult = (output: any, context: __SerdeContext): Des const de_DescribeFastLaunchImagesResult = (output: any, context: __SerdeContext): DescribeFastLaunchImagesResult => { const contents: any = {}; if (output.fastLaunchImageSet === "") { - contents.FastLaunchImages = []; - } else if (output["fastLaunchImageSet"] !== undefined && output["fastLaunchImageSet"]["item"] !== undefined) { - contents.FastLaunchImages = de_DescribeFastLaunchImagesSuccessSet( - __getArrayIfSingleItem(output["fastLaunchImageSet"]["item"]), - context - ); + contents[_FLIa] = []; + } else if (output[_fLISa] != null && output[_fLISa][_i] != null) { + contents[_FLIa] = de_DescribeFastLaunchImagesSuccessSet(__getArrayIfSingleItem(output[_fLISa][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73870,35 +73527,32 @@ const de_DescribeFastLaunchImagesSuccessItem = ( context: __SerdeContext ): DescribeFastLaunchImagesSuccessItem => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["snapshotConfiguration"] !== undefined) { - contents.SnapshotConfiguration = de_FastLaunchSnapshotConfigurationResponse( - output["snapshotConfiguration"], - context - ); + if (output[_sCn] != null) { + contents[_SCn] = de_FastLaunchSnapshotConfigurationResponse(output[_sCn], context); } - if (output["launchTemplate"] !== undefined) { - contents.LaunchTemplate = de_FastLaunchLaunchTemplateSpecificationResponse(output["launchTemplate"], context); + if (output[_lT] != null) { + contents[_LTa] = de_FastLaunchLaunchTemplateSpecificationResponse(output[_lT], context); } - if (output["maxParallelLaunches"] !== undefined) { - contents.MaxParallelLaunches = __strictParseInt32(output["maxParallelLaunches"]) as number; + if (output[_mPL] != null) { + contents[_MPL] = __strictParseInt32(output[_mPL]) as number; } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateTransitionReason"] !== undefined) { - contents.StateTransitionReason = __expectString(output["stateTransitionReason"]); + if (output[_sTR] != null) { + contents[_STRt] = __expectString(output[_sTR]); } - if (output["stateTransitionTime"] !== undefined) { - contents.StateTransitionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["stateTransitionTime"])); + if (output[_sTT] != null) { + contents[_STT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sTT])); } return contents; }; @@ -73926,15 +73580,12 @@ const de_DescribeFastSnapshotRestoresResult = ( ): DescribeFastSnapshotRestoresResult => { const contents: any = {}; if (output.fastSnapshotRestoreSet === "") { - contents.FastSnapshotRestores = []; - } else if (output["fastSnapshotRestoreSet"] !== undefined && output["fastSnapshotRestoreSet"]["item"] !== undefined) { - contents.FastSnapshotRestores = de_DescribeFastSnapshotRestoreSuccessSet( - __getArrayIfSingleItem(output["fastSnapshotRestoreSet"]["item"]), - context - ); + contents[_FSR] = []; + } else if (output[_fSRS] != null && output[_fSRS][_i] != null) { + contents[_FSR] = de_DescribeFastSnapshotRestoreSuccessSet(__getArrayIfSingleItem(output[_fSRS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -73947,38 +73598,38 @@ const de_DescribeFastSnapshotRestoreSuccessItem = ( context: __SerdeContext ): DescribeFastSnapshotRestoreSuccessItem => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateTransitionReason"] !== undefined) { - contents.StateTransitionReason = __expectString(output["stateTransitionReason"]); + if (output[_sTR] != null) { + contents[_STRt] = __expectString(output[_sTR]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ownerAlias"] !== undefined) { - contents.OwnerAlias = __expectString(output["ownerAlias"]); + if (output[_oAw] != null) { + contents[_OAw] = __expectString(output[_oAw]); } - if (output["enablingTime"] !== undefined) { - contents.EnablingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["enablingTime"])); + if (output[_eTn] != null) { + contents[_ETna] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eTn])); } - if (output["optimizingTime"] !== undefined) { - contents.OptimizingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["optimizingTime"])); + if (output[_oT] != null) { + contents[_OTpt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_oT])); } - if (output["enabledTime"] !== undefined) { - contents.EnabledTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["enabledTime"])); + if (output[_eTna] != null) { + contents[_ETnab] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eTna])); } - if (output["disablingTime"] !== undefined) { - contents.DisablingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["disablingTime"])); + if (output[_dTi] != null) { + contents[_DTi] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTi])); } - if (output["disabledTime"] !== undefined) { - contents.DisabledTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["disabledTime"])); + if (output[_dTis] != null) { + contents[_DTis] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTis])); } return contents; }; @@ -74002,20 +73653,17 @@ const de_DescribeFastSnapshotRestoreSuccessSet = ( */ const de_DescribeFleetError = (output: any, context: __SerdeContext): DescribeFleetError => { const contents: any = {}; - if (output["launchTemplateAndOverrides"] !== undefined) { - contents.LaunchTemplateAndOverrides = de_LaunchTemplateAndOverridesResponse( - output["launchTemplateAndOverrides"], - context - ); + if (output[_lTAO] != null) { + contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context); } - if (output["lifecycle"] !== undefined) { - contents.Lifecycle = __expectString(output["lifecycle"]); + if (output[_l] != null) { + contents[_Li] = __expectString(output[_l]); } - if (output["errorCode"] !== undefined) { - contents.ErrorCode = __expectString(output["errorCode"]); + if (output[_eC] != null) { + contents[_EC] = __expectString(output[_eC]); } - if (output["errorMessage"] !== undefined) { - contents.ErrorMessage = __expectString(output["errorMessage"]); + if (output[_eM] != null) { + contents[_EM] = __expectString(output[_eM]); } return contents; }; @@ -74026,21 +73674,21 @@ const de_DescribeFleetError = (output: any, context: __SerdeContext): DescribeFl const de_DescribeFleetHistoryResult = (output: any, context: __SerdeContext): DescribeFleetHistoryResult => { const contents: any = {}; if (output.historyRecordSet === "") { - contents.HistoryRecords = []; - } else if (output["historyRecordSet"] !== undefined && output["historyRecordSet"]["item"] !== undefined) { - contents.HistoryRecords = de_HistoryRecordSet(__getArrayIfSingleItem(output["historyRecordSet"]["item"]), context); + contents[_HRi] = []; + } else if (output[_hRS] != null && output[_hRS][_i] != null) { + contents[_HRi] = de_HistoryRecordSet(__getArrayIfSingleItem(output[_hRS][_i]), context); } - if (output["lastEvaluatedTime"] !== undefined) { - contents.LastEvaluatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lastEvaluatedTime"])); + if (output[_lET] != null) { + contents[_LET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lET])); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } - if (output["fleetId"] !== undefined) { - contents.FleetId = __expectString(output["fleetId"]); + if (output[_fIl] != null) { + contents[_FIl] = __expectString(output[_fIl]); } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startTime"])); + if (output[_sT] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } return contents; }; @@ -74051,18 +73699,15 @@ const de_DescribeFleetHistoryResult = (output: any, context: __SerdeContext): De const de_DescribeFleetInstancesResult = (output: any, context: __SerdeContext): DescribeFleetInstancesResult => { const contents: any = {}; if (output.activeInstanceSet === "") { - contents.ActiveInstances = []; - } else if (output["activeInstanceSet"] !== undefined && output["activeInstanceSet"]["item"] !== undefined) { - contents.ActiveInstances = de_ActiveInstanceSet( - __getArrayIfSingleItem(output["activeInstanceSet"]["item"]), - context - ); + contents[_AIc] = []; + } else if (output[_aIS] != null && output[_aIS][_i] != null) { + contents[_AIc] = de_ActiveInstanceSet(__getArrayIfSingleItem(output[_aIS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } - if (output["fleetId"] !== undefined) { - contents.FleetId = __expectString(output["fleetId"]); + if (output[_fIl] != null) { + contents[_FIl] = __expectString(output[_fIl]); } return contents; }; @@ -74083,25 +73728,22 @@ const de_DescribeFleetsErrorSet = (output: any, context: __SerdeContext): Descri */ const de_DescribeFleetsInstances = (output: any, context: __SerdeContext): DescribeFleetsInstances => { const contents: any = {}; - if (output["launchTemplateAndOverrides"] !== undefined) { - contents.LaunchTemplateAndOverrides = de_LaunchTemplateAndOverridesResponse( - output["launchTemplateAndOverrides"], - context - ); + if (output[_lTAO] != null) { + contents[_LTAO] = de_LaunchTemplateAndOverridesResponse(output[_lTAO], context); } - if (output["lifecycle"] !== undefined) { - contents.Lifecycle = __expectString(output["lifecycle"]); + if (output[_l] != null) { + contents[_Li] = __expectString(output[_l]); } if (output.instanceIds === "") { - contents.InstanceIds = []; - } else if (output["instanceIds"] !== undefined && output["instanceIds"]["item"] !== undefined) { - contents.InstanceIds = de_InstanceIdsSet(__getArrayIfSingleItem(output["instanceIds"]["item"]), context); + contents[_IIns] = []; + } else if (output[_iIn] != null && output[_iIn][_i] != null) { + contents[_IIns] = de_InstanceIdsSet(__getArrayIfSingleItem(output[_iIn][_i]), context); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } return contents; }; @@ -74122,13 +73764,13 @@ const de_DescribeFleetsInstancesSet = (output: any, context: __SerdeContext): De */ const de_DescribeFleetsResult = (output: any, context: __SerdeContext): DescribeFleetsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.fleetSet === "") { - contents.Fleets = []; - } else if (output["fleetSet"] !== undefined && output["fleetSet"]["item"] !== undefined) { - contents.Fleets = de_FleetSet(__getArrayIfSingleItem(output["fleetSet"]["item"]), context); + contents[_Fl] = []; + } else if (output[_fS] != null && output[_fS][_i] != null) { + contents[_Fl] = de_FleetSet(__getArrayIfSingleItem(output[_fS][_i]), context); } return contents; }; @@ -74139,12 +73781,12 @@ const de_DescribeFleetsResult = (output: any, context: __SerdeContext): Describe const de_DescribeFlowLogsResult = (output: any, context: __SerdeContext): DescribeFlowLogsResult => { const contents: any = {}; if (output.flowLogSet === "") { - contents.FlowLogs = []; - } else if (output["flowLogSet"] !== undefined && output["flowLogSet"]["item"] !== undefined) { - contents.FlowLogs = de_FlowLogSet(__getArrayIfSingleItem(output["flowLogSet"]["item"]), context); + contents[_FL] = []; + } else if (output[_fLS] != null && output[_fLS][_i] != null) { + contents[_FL] = de_FlowLogSet(__getArrayIfSingleItem(output[_fLS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74157,8 +73799,8 @@ const de_DescribeFpgaImageAttributeResult = ( context: __SerdeContext ): DescribeFpgaImageAttributeResult => { const contents: any = {}; - if (output["fpgaImageAttribute"] !== undefined) { - contents.FpgaImageAttribute = de_FpgaImageAttribute(output["fpgaImageAttribute"], context); + if (output[_fIA] != null) { + contents[_FIAp] = de_FpgaImageAttribute(output[_fIA], context); } return contents; }; @@ -74169,12 +73811,12 @@ const de_DescribeFpgaImageAttributeResult = ( const de_DescribeFpgaImagesResult = (output: any, context: __SerdeContext): DescribeFpgaImagesResult => { const contents: any = {}; if (output.fpgaImageSet === "") { - contents.FpgaImages = []; - } else if (output["fpgaImageSet"] !== undefined && output["fpgaImageSet"]["item"] !== undefined) { - contents.FpgaImages = de_FpgaImageList(__getArrayIfSingleItem(output["fpgaImageSet"]["item"]), context); + contents[_FIp] = []; + } else if (output[_fISp] != null && output[_fISp][_i] != null) { + contents[_FIp] = de_FpgaImageList(__getArrayIfSingleItem(output[_fISp][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74187,13 +73829,13 @@ const de_DescribeHostReservationOfferingsResult = ( context: __SerdeContext ): DescribeHostReservationOfferingsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.offeringSet === "") { - contents.OfferingSet = []; - } else if (output["offeringSet"] !== undefined && output["offeringSet"]["item"] !== undefined) { - contents.OfferingSet = de_HostOfferingSet(__getArrayIfSingleItem(output["offeringSet"]["item"]), context); + contents[_OS] = []; + } else if (output[_oS] != null && output[_oS][_i] != null) { + contents[_OS] = de_HostOfferingSet(__getArrayIfSingleItem(output[_oS][_i]), context); } return contents; }; @@ -74204,15 +73846,12 @@ const de_DescribeHostReservationOfferingsResult = ( const de_DescribeHostReservationsResult = (output: any, context: __SerdeContext): DescribeHostReservationsResult => { const contents: any = {}; if (output.hostReservationSet === "") { - contents.HostReservationSet = []; - } else if (output["hostReservationSet"] !== undefined && output["hostReservationSet"]["item"] !== undefined) { - contents.HostReservationSet = de_HostReservationSet( - __getArrayIfSingleItem(output["hostReservationSet"]["item"]), - context - ); + contents[_HRS] = []; + } else if (output[_hRSo] != null && output[_hRSo][_i] != null) { + contents[_HRS] = de_HostReservationSet(__getArrayIfSingleItem(output[_hRSo][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74223,12 +73862,12 @@ const de_DescribeHostReservationsResult = (output: any, context: __SerdeContext) const de_DescribeHostsResult = (output: any, context: __SerdeContext): DescribeHostsResult => { const contents: any = {}; if (output.hostSet === "") { - contents.Hosts = []; - } else if (output["hostSet"] !== undefined && output["hostSet"]["item"] !== undefined) { - contents.Hosts = de_HostList(__getArrayIfSingleItem(output["hostSet"]["item"]), context); + contents[_Ho] = []; + } else if (output[_hS] != null && output[_hS][_i] != null) { + contents[_Ho] = de_HostList(__getArrayIfSingleItem(output[_hS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74242,18 +73881,12 @@ const de_DescribeIamInstanceProfileAssociationsResult = ( ): DescribeIamInstanceProfileAssociationsResult => { const contents: any = {}; if (output.iamInstanceProfileAssociationSet === "") { - contents.IamInstanceProfileAssociations = []; - } else if ( - output["iamInstanceProfileAssociationSet"] !== undefined && - output["iamInstanceProfileAssociationSet"]["item"] !== undefined - ) { - contents.IamInstanceProfileAssociations = de_IamInstanceProfileAssociationSet( - __getArrayIfSingleItem(output["iamInstanceProfileAssociationSet"]["item"]), - context - ); + contents[_IIPAa] = []; + } else if (output[_iIPAS] != null && output[_iIPAS][_i] != null) { + contents[_IIPAa] = de_IamInstanceProfileAssociationSet(__getArrayIfSingleItem(output[_iIPAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74264,9 +73897,9 @@ const de_DescribeIamInstanceProfileAssociationsResult = ( const de_DescribeIdentityIdFormatResult = (output: any, context: __SerdeContext): DescribeIdentityIdFormatResult => { const contents: any = {}; if (output.statusSet === "") { - contents.Statuses = []; - } else if (output["statusSet"] !== undefined && output["statusSet"]["item"] !== undefined) { - contents.Statuses = de_IdFormatList(__getArrayIfSingleItem(output["statusSet"]["item"]), context); + contents[_Status] = []; + } else if (output[_sSt] != null && output[_sSt][_i] != null) { + contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); } return contents; }; @@ -74277,9 +73910,9 @@ const de_DescribeIdentityIdFormatResult = (output: any, context: __SerdeContext) const de_DescribeIdFormatResult = (output: any, context: __SerdeContext): DescribeIdFormatResult => { const contents: any = {}; if (output.statusSet === "") { - contents.Statuses = []; - } else if (output["statusSet"] !== undefined && output["statusSet"]["item"] !== undefined) { - contents.Statuses = de_IdFormatList(__getArrayIfSingleItem(output["statusSet"]["item"]), context); + contents[_Status] = []; + } else if (output[_sSt] != null && output[_sSt][_i] != null) { + contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); } return contents; }; @@ -74290,12 +73923,12 @@ const de_DescribeIdFormatResult = (output: any, context: __SerdeContext): Descri const de_DescribeImagesResult = (output: any, context: __SerdeContext): DescribeImagesResult => { const contents: any = {}; if (output.imagesSet === "") { - contents.Images = []; - } else if (output["imagesSet"] !== undefined && output["imagesSet"]["item"] !== undefined) { - contents.Images = de_ImageList(__getArrayIfSingleItem(output["imagesSet"]["item"]), context); + contents[_Ima] = []; + } else if (output[_iSm] != null && output[_iSm][_i] != null) { + contents[_Ima] = de_ImageList(__getArrayIfSingleItem(output[_iSm][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74306,15 +73939,12 @@ const de_DescribeImagesResult = (output: any, context: __SerdeContext): Describe const de_DescribeImportImageTasksResult = (output: any, context: __SerdeContext): DescribeImportImageTasksResult => { const contents: any = {}; if (output.importImageTaskSet === "") { - contents.ImportImageTasks = []; - } else if (output["importImageTaskSet"] !== undefined && output["importImageTaskSet"]["item"] !== undefined) { - contents.ImportImageTasks = de_ImportImageTaskList( - __getArrayIfSingleItem(output["importImageTaskSet"]["item"]), - context - ); + contents[_IIT] = []; + } else if (output[_iITS] != null && output[_iITS][_i] != null) { + contents[_IIT] = de_ImportImageTaskList(__getArrayIfSingleItem(output[_iITS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74328,15 +73958,12 @@ const de_DescribeImportSnapshotTasksResult = ( ): DescribeImportSnapshotTasksResult => { const contents: any = {}; if (output.importSnapshotTaskSet === "") { - contents.ImportSnapshotTasks = []; - } else if (output["importSnapshotTaskSet"] !== undefined && output["importSnapshotTaskSet"]["item"] !== undefined) { - contents.ImportSnapshotTasks = de_ImportSnapshotTaskList( - __getArrayIfSingleItem(output["importSnapshotTaskSet"]["item"]), - context - ); + contents[_IST] = []; + } else if (output[_iSTS] != null && output[_iSTS][_i] != null) { + contents[_IST] = de_ImportSnapshotTaskList(__getArrayIfSingleItem(output[_iSTS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74350,18 +73977,12 @@ const de_DescribeInstanceConnectEndpointsResult = ( ): DescribeInstanceConnectEndpointsResult => { const contents: any = {}; if (output.instanceConnectEndpointSet === "") { - contents.InstanceConnectEndpoints = []; - } else if ( - output["instanceConnectEndpointSet"] !== undefined && - output["instanceConnectEndpointSet"]["item"] !== undefined - ) { - contents.InstanceConnectEndpoints = de_InstanceConnectEndpointSet( - __getArrayIfSingleItem(output["instanceConnectEndpointSet"]["item"]), - context - ); + contents[_ICEn] = []; + } else if (output[_iCES] != null && output[_iCES][_i] != null) { + contents[_ICEn] = de_InstanceConnectEndpointSet(__getArrayIfSingleItem(output[_iCES][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74375,18 +73996,12 @@ const de_DescribeInstanceCreditSpecificationsResult = ( ): DescribeInstanceCreditSpecificationsResult => { const contents: any = {}; if (output.instanceCreditSpecificationSet === "") { - contents.InstanceCreditSpecifications = []; - } else if ( - output["instanceCreditSpecificationSet"] !== undefined && - output["instanceCreditSpecificationSet"]["item"] !== undefined - ) { - contents.InstanceCreditSpecifications = de_InstanceCreditSpecificationList( - __getArrayIfSingleItem(output["instanceCreditSpecificationSet"]["item"]), - context - ); + contents[_ICS] = []; + } else if (output[_iCSS] != null && output[_iCSS][_i] != null) { + contents[_ICS] = de_InstanceCreditSpecificationList(__getArrayIfSingleItem(output[_iCSS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74399,8 +74014,8 @@ const de_DescribeInstanceEventNotificationAttributesResult = ( context: __SerdeContext ): DescribeInstanceEventNotificationAttributesResult => { const contents: any = {}; - if (output["instanceTagAttribute"] !== undefined) { - contents.InstanceTagAttribute = de_InstanceTagNotificationAttribute(output["instanceTagAttribute"], context); + if (output[_iTA] != null) { + contents[_ITA] = de_InstanceTagNotificationAttribute(output[_iTA], context); } return contents; }; @@ -74414,15 +74029,12 @@ const de_DescribeInstanceEventWindowsResult = ( ): DescribeInstanceEventWindowsResult => { const contents: any = {}; if (output.instanceEventWindowSet === "") { - contents.InstanceEventWindows = []; - } else if (output["instanceEventWindowSet"] !== undefined && output["instanceEventWindowSet"]["item"] !== undefined) { - contents.InstanceEventWindows = de_InstanceEventWindowSet( - __getArrayIfSingleItem(output["instanceEventWindowSet"]["item"]), - context - ); + contents[_IEWn] = []; + } else if (output[_iEWSn] != null && output[_iEWSn][_i] != null) { + contents[_IEWn] = de_InstanceEventWindowSet(__getArrayIfSingleItem(output[_iEWSn][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74433,12 +74045,12 @@ const de_DescribeInstanceEventWindowsResult = ( const de_DescribeInstancesResult = (output: any, context: __SerdeContext): DescribeInstancesResult => { const contents: any = {}; if (output.reservationSet === "") { - contents.Reservations = []; - } else if (output["reservationSet"] !== undefined && output["reservationSet"]["item"] !== undefined) { - contents.Reservations = de_ReservationList(__getArrayIfSingleItem(output["reservationSet"]["item"]), context); + contents[_Rese] = []; + } else if (output[_rS] != null && output[_rS][_i] != null) { + contents[_Rese] = de_ReservationList(__getArrayIfSingleItem(output[_rS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74449,15 +74061,12 @@ const de_DescribeInstancesResult = (output: any, context: __SerdeContext): Descr const de_DescribeInstanceStatusResult = (output: any, context: __SerdeContext): DescribeInstanceStatusResult => { const contents: any = {}; if (output.instanceStatusSet === "") { - contents.InstanceStatuses = []; - } else if (output["instanceStatusSet"] !== undefined && output["instanceStatusSet"]["item"] !== undefined) { - contents.InstanceStatuses = de_InstanceStatusList( - __getArrayIfSingleItem(output["instanceStatusSet"]["item"]), - context - ); + contents[_ISns] = []; + } else if (output[_iSS] != null && output[_iSS][_i] != null) { + contents[_ISns] = de_InstanceStatusList(__getArrayIfSingleItem(output[_iSS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74468,12 +74077,12 @@ const de_DescribeInstanceStatusResult = (output: any, context: __SerdeContext): const de_DescribeInstanceTopologyResult = (output: any, context: __SerdeContext): DescribeInstanceTopologyResult => { const contents: any = {}; if (output.instanceSet === "") { - contents.Instances = []; - } else if (output["instanceSet"] !== undefined && output["instanceSet"]["item"] !== undefined) { - contents.Instances = de_InstanceSet(__getArrayIfSingleItem(output["instanceSet"]["item"]), context); + contents[_In] = []; + } else if (output[_iSns] != null && output[_iSns][_i] != null) { + contents[_In] = de_InstanceSet(__getArrayIfSingleItem(output[_iSns][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74487,18 +74096,12 @@ const de_DescribeInstanceTypeOfferingsResult = ( ): DescribeInstanceTypeOfferingsResult => { const contents: any = {}; if (output.instanceTypeOfferingSet === "") { - contents.InstanceTypeOfferings = []; - } else if ( - output["instanceTypeOfferingSet"] !== undefined && - output["instanceTypeOfferingSet"]["item"] !== undefined - ) { - contents.InstanceTypeOfferings = de_InstanceTypeOfferingsList( - __getArrayIfSingleItem(output["instanceTypeOfferingSet"]["item"]), - context - ); + contents[_ITO] = []; + } else if (output[_iTOS] != null && output[_iTOS][_i] != null) { + contents[_ITO] = de_InstanceTypeOfferingsList(__getArrayIfSingleItem(output[_iTOS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74509,15 +74112,12 @@ const de_DescribeInstanceTypeOfferingsResult = ( const de_DescribeInstanceTypesResult = (output: any, context: __SerdeContext): DescribeInstanceTypesResult => { const contents: any = {}; if (output.instanceTypeSet === "") { - contents.InstanceTypes = []; - } else if (output["instanceTypeSet"] !== undefined && output["instanceTypeSet"]["item"] !== undefined) { - contents.InstanceTypes = de_InstanceTypeInfoList( - __getArrayIfSingleItem(output["instanceTypeSet"]["item"]), - context - ); + contents[_ITnst] = []; + } else if (output[_iTS] != null && output[_iTS][_i] != null) { + contents[_ITnst] = de_InstanceTypeInfoList(__getArrayIfSingleItem(output[_iTS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74528,15 +74128,12 @@ const de_DescribeInstanceTypesResult = (output: any, context: __SerdeContext): D const de_DescribeInternetGatewaysResult = (output: any, context: __SerdeContext): DescribeInternetGatewaysResult => { const contents: any = {}; if (output.internetGatewaySet === "") { - contents.InternetGateways = []; - } else if (output["internetGatewaySet"] !== undefined && output["internetGatewaySet"]["item"] !== undefined) { - contents.InternetGateways = de_InternetGatewayList( - __getArrayIfSingleItem(output["internetGatewaySet"]["item"]), - context - ); + contents[_IGnt] = []; + } else if (output[_iGS] != null && output[_iGS][_i] != null) { + contents[_IGnt] = de_InternetGatewayList(__getArrayIfSingleItem(output[_iGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74547,12 +74144,12 @@ const de_DescribeInternetGatewaysResult = (output: any, context: __SerdeContext) const de_DescribeIpamByoasnResult = (output: any, context: __SerdeContext): DescribeIpamByoasnResult => { const contents: any = {}; if (output.byoasnSet === "") { - contents.Byoasns = []; - } else if (output["byoasnSet"] !== undefined && output["byoasnSet"]["item"] !== undefined) { - contents.Byoasns = de_ByoasnSet(__getArrayIfSingleItem(output["byoasnSet"]["item"]), context); + contents[_Byoa] = []; + } else if (output[_bS] != null && output[_bS][_i] != null) { + contents[_Byoa] = de_ByoasnSet(__getArrayIfSingleItem(output[_bS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74562,13 +74159,13 @@ const de_DescribeIpamByoasnResult = (output: any, context: __SerdeContext): Desc */ const de_DescribeIpamPoolsResult = (output: any, context: __SerdeContext): DescribeIpamPoolsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.ipamPoolSet === "") { - contents.IpamPools = []; - } else if (output["ipamPoolSet"] !== undefined && output["ipamPoolSet"]["item"] !== undefined) { - contents.IpamPools = de_IpamPoolSet(__getArrayIfSingleItem(output["ipamPoolSet"]["item"]), context); + contents[_IPpam] = []; + } else if (output[_iPS] != null && output[_iPS][_i] != null) { + contents[_IPpam] = de_IpamPoolSet(__getArrayIfSingleItem(output[_iPS][_i]), context); } return contents; }; @@ -74582,18 +74179,12 @@ const de_DescribeIpamResourceDiscoveriesResult = ( ): DescribeIpamResourceDiscoveriesResult => { const contents: any = {}; if (output.ipamResourceDiscoverySet === "") { - contents.IpamResourceDiscoveries = []; - } else if ( - output["ipamResourceDiscoverySet"] !== undefined && - output["ipamResourceDiscoverySet"]["item"] !== undefined - ) { - contents.IpamResourceDiscoveries = de_IpamResourceDiscoverySet( - __getArrayIfSingleItem(output["ipamResourceDiscoverySet"]["item"]), - context - ); + contents[_IRDp] = []; + } else if (output[_iRDS] != null && output[_iRDS][_i] != null) { + contents[_IRDp] = de_IpamResourceDiscoverySet(__getArrayIfSingleItem(output[_iRDS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74607,18 +74198,12 @@ const de_DescribeIpamResourceDiscoveryAssociationsResult = ( ): DescribeIpamResourceDiscoveryAssociationsResult => { const contents: any = {}; if (output.ipamResourceDiscoveryAssociationSet === "") { - contents.IpamResourceDiscoveryAssociations = []; - } else if ( - output["ipamResourceDiscoveryAssociationSet"] !== undefined && - output["ipamResourceDiscoveryAssociationSet"]["item"] !== undefined - ) { - contents.IpamResourceDiscoveryAssociations = de_IpamResourceDiscoveryAssociationSet( - __getArrayIfSingleItem(output["ipamResourceDiscoveryAssociationSet"]["item"]), - context - ); + contents[_IRDAp] = []; + } else if (output[_iRDAS] != null && output[_iRDAS][_i] != null) { + contents[_IRDAp] = de_IpamResourceDiscoveryAssociationSet(__getArrayIfSingleItem(output[_iRDAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74628,13 +74213,13 @@ const de_DescribeIpamResourceDiscoveryAssociationsResult = ( */ const de_DescribeIpamScopesResult = (output: any, context: __SerdeContext): DescribeIpamScopesResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.ipamScopeSet === "") { - contents.IpamScopes = []; - } else if (output["ipamScopeSet"] !== undefined && output["ipamScopeSet"]["item"] !== undefined) { - contents.IpamScopes = de_IpamScopeSet(__getArrayIfSingleItem(output["ipamScopeSet"]["item"]), context); + contents[_ISpam] = []; + } else if (output[_iSSp] != null && output[_iSSp][_i] != null) { + contents[_ISpam] = de_IpamScopeSet(__getArrayIfSingleItem(output[_iSSp][_i]), context); } return contents; }; @@ -74644,13 +74229,13 @@ const de_DescribeIpamScopesResult = (output: any, context: __SerdeContext): Desc */ const de_DescribeIpamsResult = (output: any, context: __SerdeContext): DescribeIpamsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.ipamSet === "") { - contents.Ipams = []; - } else if (output["ipamSet"] !== undefined && output["ipamSet"]["item"] !== undefined) { - contents.Ipams = de_IpamSet(__getArrayIfSingleItem(output["ipamSet"]["item"]), context); + contents[_Ipam] = []; + } else if (output[_iSp] != null && output[_iSp][_i] != null) { + contents[_Ipam] = de_IpamSet(__getArrayIfSingleItem(output[_iSp][_i]), context); } return contents; }; @@ -74661,12 +74246,12 @@ const de_DescribeIpamsResult = (output: any, context: __SerdeContext): DescribeI const de_DescribeIpv6PoolsResult = (output: any, context: __SerdeContext): DescribeIpv6PoolsResult => { const contents: any = {}; if (output.ipv6PoolSet === "") { - contents.Ipv6Pools = []; - } else if (output["ipv6PoolSet"] !== undefined && output["ipv6PoolSet"]["item"] !== undefined) { - contents.Ipv6Pools = de_Ipv6PoolSet(__getArrayIfSingleItem(output["ipv6PoolSet"]["item"]), context); + contents[_IPpvo] = []; + } else if (output[_iPSp] != null && output[_iPSp][_i] != null) { + contents[_IPpvo] = de_Ipv6PoolSet(__getArrayIfSingleItem(output[_iPSp][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74677,9 +74262,9 @@ const de_DescribeIpv6PoolsResult = (output: any, context: __SerdeContext): Descr const de_DescribeKeyPairsResult = (output: any, context: __SerdeContext): DescribeKeyPairsResult => { const contents: any = {}; if (output.keySet === "") { - contents.KeyPairs = []; - } else if (output["keySet"] !== undefined && output["keySet"]["item"] !== undefined) { - contents.KeyPairs = de_KeyPairList(__getArrayIfSingleItem(output["keySet"]["item"]), context); + contents[_KP] = []; + } else if (output[_kS] != null && output[_kS][_i] != null) { + contents[_KP] = de_KeyPairList(__getArrayIfSingleItem(output[_kS][_i]), context); } return contents; }; @@ -74690,12 +74275,12 @@ const de_DescribeKeyPairsResult = (output: any, context: __SerdeContext): Descri const de_DescribeLaunchTemplatesResult = (output: any, context: __SerdeContext): DescribeLaunchTemplatesResult => { const contents: any = {}; if (output.launchTemplates === "") { - contents.LaunchTemplates = []; - } else if (output["launchTemplates"] !== undefined && output["launchTemplates"]["item"] !== undefined) { - contents.LaunchTemplates = de_LaunchTemplateSet(__getArrayIfSingleItem(output["launchTemplates"]["item"]), context); + contents[_LTau] = []; + } else if (output[_lTa] != null && output[_lTa][_i] != null) { + contents[_LTau] = de_LaunchTemplateSet(__getArrayIfSingleItem(output[_lTa][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74709,18 +74294,12 @@ const de_DescribeLaunchTemplateVersionsResult = ( ): DescribeLaunchTemplateVersionsResult => { const contents: any = {}; if (output.launchTemplateVersionSet === "") { - contents.LaunchTemplateVersions = []; - } else if ( - output["launchTemplateVersionSet"] !== undefined && - output["launchTemplateVersionSet"]["item"] !== undefined - ) { - contents.LaunchTemplateVersions = de_LaunchTemplateVersionSet( - __getArrayIfSingleItem(output["launchTemplateVersionSet"]["item"]), - context - ); + contents[_LTVa] = []; + } else if (output[_lTVS] != null && output[_lTVS][_i] != null) { + contents[_LTVa] = de_LaunchTemplateVersionSet(__getArrayIfSingleItem(output[_lTVS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74734,18 +74313,12 @@ const de_DescribeLocalGatewayRouteTablesResult = ( ): DescribeLocalGatewayRouteTablesResult => { const contents: any = {}; if (output.localGatewayRouteTableSet === "") { - contents.LocalGatewayRouteTables = []; - } else if ( - output["localGatewayRouteTableSet"] !== undefined && - output["localGatewayRouteTableSet"]["item"] !== undefined - ) { - contents.LocalGatewayRouteTables = de_LocalGatewayRouteTableSet( - __getArrayIfSingleItem(output["localGatewayRouteTableSet"]["item"]), - context - ); + contents[_LGRTo] = []; + } else if (output[_lGRTS] != null && output[_lGRTS][_i] != null) { + contents[_LGRTo] = de_LocalGatewayRouteTableSet(__getArrayIfSingleItem(output[_lGRTS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74759,19 +74332,15 @@ const de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult = ): DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult => { const contents: any = {}; if (output.localGatewayRouteTableVirtualInterfaceGroupAssociationSet === "") { - contents.LocalGatewayRouteTableVirtualInterfaceGroupAssociations = []; - } else if ( - output["localGatewayRouteTableVirtualInterfaceGroupAssociationSet"] !== undefined && - output["localGatewayRouteTableVirtualInterfaceGroupAssociationSet"]["item"] !== undefined - ) { - contents.LocalGatewayRouteTableVirtualInterfaceGroupAssociations = - de_LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet( - __getArrayIfSingleItem(output["localGatewayRouteTableVirtualInterfaceGroupAssociationSet"]["item"]), - context - ); + contents[_LGRTVIGAo] = []; + } else if (output[_lGRTVIGAS] != null && output[_lGRTVIGAS][_i] != null) { + contents[_LGRTVIGAo] = de_LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet( + __getArrayIfSingleItem(output[_lGRTVIGAS][_i]), + context + ); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74785,18 +74354,15 @@ const de_DescribeLocalGatewayRouteTableVpcAssociationsResult = ( ): DescribeLocalGatewayRouteTableVpcAssociationsResult => { const contents: any = {}; if (output.localGatewayRouteTableVpcAssociationSet === "") { - contents.LocalGatewayRouteTableVpcAssociations = []; - } else if ( - output["localGatewayRouteTableVpcAssociationSet"] !== undefined && - output["localGatewayRouteTableVpcAssociationSet"]["item"] !== undefined - ) { - contents.LocalGatewayRouteTableVpcAssociations = de_LocalGatewayRouteTableVpcAssociationSet( - __getArrayIfSingleItem(output["localGatewayRouteTableVpcAssociationSet"]["item"]), + contents[_LGRTVAo] = []; + } else if (output[_lGRTVAS] != null && output[_lGRTVAS][_i] != null) { + contents[_LGRTVAo] = de_LocalGatewayRouteTableVpcAssociationSet( + __getArrayIfSingleItem(output[_lGRTVAS][_i]), context ); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74807,12 +74373,12 @@ const de_DescribeLocalGatewayRouteTableVpcAssociationsResult = ( const de_DescribeLocalGatewaysResult = (output: any, context: __SerdeContext): DescribeLocalGatewaysResult => { const contents: any = {}; if (output.localGatewaySet === "") { - contents.LocalGateways = []; - } else if (output["localGatewaySet"] !== undefined && output["localGatewaySet"]["item"] !== undefined) { - contents.LocalGateways = de_LocalGatewaySet(__getArrayIfSingleItem(output["localGatewaySet"]["item"]), context); + contents[_LGoc] = []; + } else if (output[_lGS] != null && output[_lGS][_i] != null) { + contents[_LGoc] = de_LocalGatewaySet(__getArrayIfSingleItem(output[_lGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74826,18 +74392,12 @@ const de_DescribeLocalGatewayVirtualInterfaceGroupsResult = ( ): DescribeLocalGatewayVirtualInterfaceGroupsResult => { const contents: any = {}; if (output.localGatewayVirtualInterfaceGroupSet === "") { - contents.LocalGatewayVirtualInterfaceGroups = []; - } else if ( - output["localGatewayVirtualInterfaceGroupSet"] !== undefined && - output["localGatewayVirtualInterfaceGroupSet"]["item"] !== undefined - ) { - contents.LocalGatewayVirtualInterfaceGroups = de_LocalGatewayVirtualInterfaceGroupSet( - __getArrayIfSingleItem(output["localGatewayVirtualInterfaceGroupSet"]["item"]), - context - ); + contents[_LGVIG] = []; + } else if (output[_lGVIGS] != null && output[_lGVIGS][_i] != null) { + contents[_LGVIG] = de_LocalGatewayVirtualInterfaceGroupSet(__getArrayIfSingleItem(output[_lGVIGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74851,18 +74411,12 @@ const de_DescribeLocalGatewayVirtualInterfacesResult = ( ): DescribeLocalGatewayVirtualInterfacesResult => { const contents: any = {}; if (output.localGatewayVirtualInterfaceSet === "") { - contents.LocalGatewayVirtualInterfaces = []; - } else if ( - output["localGatewayVirtualInterfaceSet"] !== undefined && - output["localGatewayVirtualInterfaceSet"]["item"] !== undefined - ) { - contents.LocalGatewayVirtualInterfaces = de_LocalGatewayVirtualInterfaceSet( - __getArrayIfSingleItem(output["localGatewayVirtualInterfaceSet"]["item"]), - context - ); + contents[_LGVI] = []; + } else if (output[_lGVIS] != null && output[_lGVIS][_i] != null) { + contents[_LGVI] = de_LocalGatewayVirtualInterfaceSet(__getArrayIfSingleItem(output[_lGVIS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74873,12 +74427,12 @@ const de_DescribeLocalGatewayVirtualInterfacesResult = ( const de_DescribeLockedSnapshotsResult = (output: any, context: __SerdeContext): DescribeLockedSnapshotsResult => { const contents: any = {}; if (output.snapshotSet === "") { - contents.Snapshots = []; - } else if (output["snapshotSet"] !== undefined && output["snapshotSet"]["item"] !== undefined) { - contents.Snapshots = de_LockedSnapshotsInfoList(__getArrayIfSingleItem(output["snapshotSet"]["item"]), context); + contents[_Sn] = []; + } else if (output[_sS] != null && output[_sS][_i] != null) { + contents[_Sn] = de_LockedSnapshotsInfoList(__getArrayIfSingleItem(output[_sS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74891,13 +74445,13 @@ const de_DescribeManagedPrefixListsResult = ( context: __SerdeContext ): DescribeManagedPrefixListsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.prefixListSet === "") { - contents.PrefixLists = []; - } else if (output["prefixListSet"] !== undefined && output["prefixListSet"]["item"] !== undefined) { - contents.PrefixLists = de_ManagedPrefixListSet(__getArrayIfSingleItem(output["prefixListSet"]["item"]), context); + contents[_PLre] = []; + } else if (output[_pLS] != null && output[_pLS][_i] != null) { + contents[_PLre] = de_ManagedPrefixListSet(__getArrayIfSingleItem(output[_pLS][_i]), context); } return contents; }; @@ -74908,15 +74462,12 @@ const de_DescribeManagedPrefixListsResult = ( const de_DescribeMovingAddressesResult = (output: any, context: __SerdeContext): DescribeMovingAddressesResult => { const contents: any = {}; if (output.movingAddressStatusSet === "") { - contents.MovingAddressStatuses = []; - } else if (output["movingAddressStatusSet"] !== undefined && output["movingAddressStatusSet"]["item"] !== undefined) { - contents.MovingAddressStatuses = de_MovingAddressStatusSet( - __getArrayIfSingleItem(output["movingAddressStatusSet"]["item"]), - context - ); + contents[_MAS] = []; + } else if (output[_mASS] != null && output[_mASS][_i] != null) { + contents[_MAS] = de_MovingAddressStatusSet(__getArrayIfSingleItem(output[_mASS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74927,12 +74478,12 @@ const de_DescribeMovingAddressesResult = (output: any, context: __SerdeContext): const de_DescribeNatGatewaysResult = (output: any, context: __SerdeContext): DescribeNatGatewaysResult => { const contents: any = {}; if (output.natGatewaySet === "") { - contents.NatGateways = []; - } else if (output["natGatewaySet"] !== undefined && output["natGatewaySet"]["item"] !== undefined) { - contents.NatGateways = de_NatGatewayList(__getArrayIfSingleItem(output["natGatewaySet"]["item"]), context); + contents[_NGa] = []; + } else if (output[_nGS] != null && output[_nGS][_i] != null) { + contents[_NGa] = de_NatGatewayList(__getArrayIfSingleItem(output[_nGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74943,12 +74494,12 @@ const de_DescribeNatGatewaysResult = (output: any, context: __SerdeContext): Des const de_DescribeNetworkAclsResult = (output: any, context: __SerdeContext): DescribeNetworkAclsResult => { const contents: any = {}; if (output.networkAclSet === "") { - contents.NetworkAcls = []; - } else if (output["networkAclSet"] !== undefined && output["networkAclSet"]["item"] !== undefined) { - contents.NetworkAcls = de_NetworkAclList(__getArrayIfSingleItem(output["networkAclSet"]["item"]), context); + contents[_NAe] = []; + } else if (output[_nAS] != null && output[_nAS][_i] != null) { + contents[_NAe] = de_NetworkAclList(__getArrayIfSingleItem(output[_nAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74962,18 +74513,12 @@ const de_DescribeNetworkInsightsAccessScopeAnalysesResult = ( ): DescribeNetworkInsightsAccessScopeAnalysesResult => { const contents: any = {}; if (output.networkInsightsAccessScopeAnalysisSet === "") { - contents.NetworkInsightsAccessScopeAnalyses = []; - } else if ( - output["networkInsightsAccessScopeAnalysisSet"] !== undefined && - output["networkInsightsAccessScopeAnalysisSet"]["item"] !== undefined - ) { - contents.NetworkInsightsAccessScopeAnalyses = de_NetworkInsightsAccessScopeAnalysisList( - __getArrayIfSingleItem(output["networkInsightsAccessScopeAnalysisSet"]["item"]), - context - ); + contents[_NIASA] = []; + } else if (output[_nIASAS] != null && output[_nIASAS][_i] != null) { + contents[_NIASA] = de_NetworkInsightsAccessScopeAnalysisList(__getArrayIfSingleItem(output[_nIASAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -74987,18 +74532,12 @@ const de_DescribeNetworkInsightsAccessScopesResult = ( ): DescribeNetworkInsightsAccessScopesResult => { const contents: any = {}; if (output.networkInsightsAccessScopeSet === "") { - contents.NetworkInsightsAccessScopes = []; - } else if ( - output["networkInsightsAccessScopeSet"] !== undefined && - output["networkInsightsAccessScopeSet"]["item"] !== undefined - ) { - contents.NetworkInsightsAccessScopes = de_NetworkInsightsAccessScopeList( - __getArrayIfSingleItem(output["networkInsightsAccessScopeSet"]["item"]), - context - ); + contents[_NIASe] = []; + } else if (output[_nIASS] != null && output[_nIASS][_i] != null) { + contents[_NIASe] = de_NetworkInsightsAccessScopeList(__getArrayIfSingleItem(output[_nIASS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75012,18 +74551,12 @@ const de_DescribeNetworkInsightsAnalysesResult = ( ): DescribeNetworkInsightsAnalysesResult => { const contents: any = {}; if (output.networkInsightsAnalysisSet === "") { - contents.NetworkInsightsAnalyses = []; - } else if ( - output["networkInsightsAnalysisSet"] !== undefined && - output["networkInsightsAnalysisSet"]["item"] !== undefined - ) { - contents.NetworkInsightsAnalyses = de_NetworkInsightsAnalysisList( - __getArrayIfSingleItem(output["networkInsightsAnalysisSet"]["item"]), - context - ); + contents[_NIA] = []; + } else if (output[_nIASe] != null && output[_nIASe][_i] != null) { + contents[_NIA] = de_NetworkInsightsAnalysisList(__getArrayIfSingleItem(output[_nIASe][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75037,15 +74570,12 @@ const de_DescribeNetworkInsightsPathsResult = ( ): DescribeNetworkInsightsPathsResult => { const contents: any = {}; if (output.networkInsightsPathSet === "") { - contents.NetworkInsightsPaths = []; - } else if (output["networkInsightsPathSet"] !== undefined && output["networkInsightsPathSet"]["item"] !== undefined) { - contents.NetworkInsightsPaths = de_NetworkInsightsPathList( - __getArrayIfSingleItem(output["networkInsightsPathSet"]["item"]), - context - ); + contents[_NIPe] = []; + } else if (output[_nIPS] != null && output[_nIPS][_i] != null) { + contents[_NIPe] = de_NetworkInsightsPathList(__getArrayIfSingleItem(output[_nIPS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75058,22 +74588,22 @@ const de_DescribeNetworkInterfaceAttributeResult = ( context: __SerdeContext ): DescribeNetworkInterfaceAttributeResult => { const contents: any = {}; - if (output["attachment"] !== undefined) { - contents.Attachment = de_NetworkInterfaceAttachment(output["attachment"], context); + if (output[_at] != null) { + contents[_Att] = de_NetworkInterfaceAttachment(output[_at], context); } - if (output["description"] !== undefined) { - contents.Description = de_AttributeValue(output["description"], context); + if (output[_de] != null) { + contents[_De] = de_AttributeValue(output[_de], context); } if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.Groups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["sourceDestCheck"] !== undefined) { - contents.SourceDestCheck = de_AttributeBooleanValue(output["sourceDestCheck"], context); + if (output[_sDC] != null) { + contents[_SDC] = de_AttributeBooleanValue(output[_sDC], context); } return contents; }; @@ -75087,18 +74617,12 @@ const de_DescribeNetworkInterfacePermissionsResult = ( ): DescribeNetworkInterfacePermissionsResult => { const contents: any = {}; if (output.networkInterfacePermissions === "") { - contents.NetworkInterfacePermissions = []; - } else if ( - output["networkInterfacePermissions"] !== undefined && - output["networkInterfacePermissions"]["item"] !== undefined - ) { - contents.NetworkInterfacePermissions = de_NetworkInterfacePermissionList( - __getArrayIfSingleItem(output["networkInterfacePermissions"]["item"]), - context - ); + contents[_NIPet] = []; + } else if (output[_nIPe] != null && output[_nIPe][_i] != null) { + contents[_NIPet] = de_NetworkInterfacePermissionList(__getArrayIfSingleItem(output[_nIPe][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75109,15 +74633,12 @@ const de_DescribeNetworkInterfacePermissionsResult = ( const de_DescribeNetworkInterfacesResult = (output: any, context: __SerdeContext): DescribeNetworkInterfacesResult => { const contents: any = {}; if (output.networkInterfaceSet === "") { - contents.NetworkInterfaces = []; - } else if (output["networkInterfaceSet"] !== undefined && output["networkInterfaceSet"]["item"] !== undefined) { - contents.NetworkInterfaces = de_NetworkInterfaceList( - __getArrayIfSingleItem(output["networkInterfaceSet"]["item"]), - context - ); + contents[_NI] = []; + } else if (output[_nIS] != null && output[_nIS][_i] != null) { + contents[_NI] = de_NetworkInterfaceList(__getArrayIfSingleItem(output[_nIS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75128,12 +74649,9 @@ const de_DescribeNetworkInterfacesResult = (output: any, context: __SerdeContext const de_DescribePlacementGroupsResult = (output: any, context: __SerdeContext): DescribePlacementGroupsResult => { const contents: any = {}; if (output.placementGroupSet === "") { - contents.PlacementGroups = []; - } else if (output["placementGroupSet"] !== undefined && output["placementGroupSet"]["item"] !== undefined) { - contents.PlacementGroups = de_PlacementGroupList( - __getArrayIfSingleItem(output["placementGroupSet"]["item"]), - context - ); + contents[_PGl] = []; + } else if (output[_pGS] != null && output[_pGS][_i] != null) { + contents[_PGl] = de_PlacementGroupList(__getArrayIfSingleItem(output[_pGS][_i]), context); } return contents; }; @@ -75143,13 +74661,13 @@ const de_DescribePlacementGroupsResult = (output: any, context: __SerdeContext): */ const de_DescribePrefixListsResult = (output: any, context: __SerdeContext): DescribePrefixListsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.prefixListSet === "") { - contents.PrefixLists = []; - } else if (output["prefixListSet"] !== undefined && output["prefixListSet"]["item"] !== undefined) { - contents.PrefixLists = de_PrefixListSet(__getArrayIfSingleItem(output["prefixListSet"]["item"]), context); + contents[_PLre] = []; + } else if (output[_pLS] != null && output[_pLS][_i] != null) { + contents[_PLre] = de_PrefixListSet(__getArrayIfSingleItem(output[_pLS][_i]), context); } return contents; }; @@ -75160,12 +74678,12 @@ const de_DescribePrefixListsResult = (output: any, context: __SerdeContext): Des const de_DescribePrincipalIdFormatResult = (output: any, context: __SerdeContext): DescribePrincipalIdFormatResult => { const contents: any = {}; if (output.principalSet === "") { - contents.Principals = []; - } else if (output["principalSet"] !== undefined && output["principalSet"]["item"] !== undefined) { - contents.Principals = de_PrincipalIdFormatList(__getArrayIfSingleItem(output["principalSet"]["item"]), context); + contents[_Princ] = []; + } else if (output[_pSr] != null && output[_pSr][_i] != null) { + contents[_Princ] = de_PrincipalIdFormatList(__getArrayIfSingleItem(output[_pSr][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75176,15 +74694,12 @@ const de_DescribePrincipalIdFormatResult = (output: any, context: __SerdeContext const de_DescribePublicIpv4PoolsResult = (output: any, context: __SerdeContext): DescribePublicIpv4PoolsResult => { const contents: any = {}; if (output.publicIpv4PoolSet === "") { - contents.PublicIpv4Pools = []; - } else if (output["publicIpv4PoolSet"] !== undefined && output["publicIpv4PoolSet"]["item"] !== undefined) { - contents.PublicIpv4Pools = de_PublicIpv4PoolSet( - __getArrayIfSingleItem(output["publicIpv4PoolSet"]["item"]), - context - ); + contents[_PIPu] = []; + } else if (output[_pIPS] != null && output[_pIPS][_i] != null) { + contents[_PIPu] = de_PublicIpv4PoolSet(__getArrayIfSingleItem(output[_pIPS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75195,9 +74710,9 @@ const de_DescribePublicIpv4PoolsResult = (output: any, context: __SerdeContext): const de_DescribeRegionsResult = (output: any, context: __SerdeContext): DescribeRegionsResult => { const contents: any = {}; if (output.regionInfo === "") { - contents.Regions = []; - } else if (output["regionInfo"] !== undefined && output["regionInfo"]["item"] !== undefined) { - contents.Regions = de_RegionList(__getArrayIfSingleItem(output["regionInfo"]["item"]), context); + contents[_Reg] = []; + } else if (output[_rI] != null && output[_rI][_i] != null) { + contents[_Reg] = de_RegionList(__getArrayIfSingleItem(output[_rI][_i]), context); } return contents; }; @@ -75211,18 +74726,12 @@ const de_DescribeReplaceRootVolumeTasksResult = ( ): DescribeReplaceRootVolumeTasksResult => { const contents: any = {}; if (output.replaceRootVolumeTaskSet === "") { - contents.ReplaceRootVolumeTasks = []; - } else if ( - output["replaceRootVolumeTaskSet"] !== undefined && - output["replaceRootVolumeTaskSet"]["item"] !== undefined - ) { - contents.ReplaceRootVolumeTasks = de_ReplaceRootVolumeTasks( - __getArrayIfSingleItem(output["replaceRootVolumeTaskSet"]["item"]), - context - ); + contents[_RRVTe] = []; + } else if (output[_rRVTS] != null && output[_rRVTS][_i] != null) { + contents[_RRVTe] = de_ReplaceRootVolumeTasks(__getArrayIfSingleItem(output[_rRVTS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75236,15 +74745,9 @@ const de_DescribeReservedInstancesListingsResult = ( ): DescribeReservedInstancesListingsResult => { const contents: any = {}; if (output.reservedInstancesListingsSet === "") { - contents.ReservedInstancesListings = []; - } else if ( - output["reservedInstancesListingsSet"] !== undefined && - output["reservedInstancesListingsSet"]["item"] !== undefined - ) { - contents.ReservedInstancesListings = de_ReservedInstancesListingList( - __getArrayIfSingleItem(output["reservedInstancesListingsSet"]["item"]), - context - ); + contents[_RIL] = []; + } else if (output[_rILS] != null && output[_rILS][_i] != null) { + contents[_RIL] = de_ReservedInstancesListingList(__getArrayIfSingleItem(output[_rILS][_i]), context); } return contents; }; @@ -75257,19 +74760,13 @@ const de_DescribeReservedInstancesModificationsResult = ( context: __SerdeContext ): DescribeReservedInstancesModificationsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.reservedInstancesModificationsSet === "") { - contents.ReservedInstancesModifications = []; - } else if ( - output["reservedInstancesModificationsSet"] !== undefined && - output["reservedInstancesModificationsSet"]["item"] !== undefined - ) { - contents.ReservedInstancesModifications = de_ReservedInstancesModificationList( - __getArrayIfSingleItem(output["reservedInstancesModificationsSet"]["item"]), - context - ); + contents[_RIM] = []; + } else if (output[_rIMS] != null && output[_rIMS][_i] != null) { + contents[_RIM] = de_ReservedInstancesModificationList(__getArrayIfSingleItem(output[_rIMS][_i]), context); } return contents; }; @@ -75283,18 +74780,12 @@ const de_DescribeReservedInstancesOfferingsResult = ( ): DescribeReservedInstancesOfferingsResult => { const contents: any = {}; if (output.reservedInstancesOfferingsSet === "") { - contents.ReservedInstancesOfferings = []; - } else if ( - output["reservedInstancesOfferingsSet"] !== undefined && - output["reservedInstancesOfferingsSet"]["item"] !== undefined - ) { - contents.ReservedInstancesOfferings = de_ReservedInstancesOfferingList( - __getArrayIfSingleItem(output["reservedInstancesOfferingsSet"]["item"]), - context - ); + contents[_RIO] = []; + } else if (output[_rIOS] != null && output[_rIOS][_i] != null) { + contents[_RIO] = de_ReservedInstancesOfferingList(__getArrayIfSingleItem(output[_rIOS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75305,12 +74796,9 @@ const de_DescribeReservedInstancesOfferingsResult = ( const de_DescribeReservedInstancesResult = (output: any, context: __SerdeContext): DescribeReservedInstancesResult => { const contents: any = {}; if (output.reservedInstancesSet === "") { - contents.ReservedInstances = []; - } else if (output["reservedInstancesSet"] !== undefined && output["reservedInstancesSet"]["item"] !== undefined) { - contents.ReservedInstances = de_ReservedInstancesList( - __getArrayIfSingleItem(output["reservedInstancesSet"]["item"]), - context - ); + contents[_RIese] = []; + } else if (output[_rIS] != null && output[_rIS][_i] != null) { + contents[_RIese] = de_ReservedInstancesList(__getArrayIfSingleItem(output[_rIS][_i]), context); } return contents; }; @@ -75321,12 +74809,12 @@ const de_DescribeReservedInstancesResult = (output: any, context: __SerdeContext const de_DescribeRouteTablesResult = (output: any, context: __SerdeContext): DescribeRouteTablesResult => { const contents: any = {}; if (output.routeTableSet === "") { - contents.RouteTables = []; - } else if (output["routeTableSet"] !== undefined && output["routeTableSet"]["item"] !== undefined) { - contents.RouteTables = de_RouteTableList(__getArrayIfSingleItem(output["routeTableSet"]["item"]), context); + contents[_RTou] = []; + } else if (output[_rTS] != null && output[_rTS][_i] != null) { + contents[_RTou] = de_RouteTableList(__getArrayIfSingleItem(output[_rTS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75339,19 +74827,13 @@ const de_DescribeScheduledInstanceAvailabilityResult = ( context: __SerdeContext ): DescribeScheduledInstanceAvailabilityResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.scheduledInstanceAvailabilitySet === "") { - contents.ScheduledInstanceAvailabilitySet = []; - } else if ( - output["scheduledInstanceAvailabilitySet"] !== undefined && - output["scheduledInstanceAvailabilitySet"]["item"] !== undefined - ) { - contents.ScheduledInstanceAvailabilitySet = de_ScheduledInstanceAvailabilitySet( - __getArrayIfSingleItem(output["scheduledInstanceAvailabilitySet"]["item"]), - context - ); + contents[_SIAS] = []; + } else if (output[_sIAS] != null && output[_sIAS][_i] != null) { + contents[_SIAS] = de_ScheduledInstanceAvailabilitySet(__getArrayIfSingleItem(output[_sIAS][_i]), context); } return contents; }; @@ -75364,16 +74846,13 @@ const de_DescribeScheduledInstancesResult = ( context: __SerdeContext ): DescribeScheduledInstancesResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.scheduledInstanceSet === "") { - contents.ScheduledInstanceSet = []; - } else if (output["scheduledInstanceSet"] !== undefined && output["scheduledInstanceSet"]["item"] !== undefined) { - contents.ScheduledInstanceSet = de_ScheduledInstanceSet( - __getArrayIfSingleItem(output["scheduledInstanceSet"]["item"]), - context - ); + contents[_SIS] = []; + } else if (output[_sIS] != null && output[_sIS][_i] != null) { + contents[_SIS] = de_ScheduledInstanceSet(__getArrayIfSingleItem(output[_sIS][_i]), context); } return contents; }; @@ -75387,15 +74866,9 @@ const de_DescribeSecurityGroupReferencesResult = ( ): DescribeSecurityGroupReferencesResult => { const contents: any = {}; if (output.securityGroupReferenceSet === "") { - contents.SecurityGroupReferenceSet = []; - } else if ( - output["securityGroupReferenceSet"] !== undefined && - output["securityGroupReferenceSet"]["item"] !== undefined - ) { - contents.SecurityGroupReferenceSet = de_SecurityGroupReferences( - __getArrayIfSingleItem(output["securityGroupReferenceSet"]["item"]), - context - ); + contents[_SGRSe] = []; + } else if (output[_sGRSe] != null && output[_sGRSe][_i] != null) { + contents[_SGRSe] = de_SecurityGroupReferences(__getArrayIfSingleItem(output[_sGRSe][_i]), context); } return contents; }; @@ -75409,15 +74882,12 @@ const de_DescribeSecurityGroupRulesResult = ( ): DescribeSecurityGroupRulesResult => { const contents: any = {}; if (output.securityGroupRuleSet === "") { - contents.SecurityGroupRules = []; - } else if (output["securityGroupRuleSet"] !== undefined && output["securityGroupRuleSet"]["item"] !== undefined) { - contents.SecurityGroupRules = de_SecurityGroupRuleList( - __getArrayIfSingleItem(output["securityGroupRuleSet"]["item"]), - context - ); + contents[_SGR] = []; + } else if (output[_sGRS] != null && output[_sGRS][_i] != null) { + contents[_SGR] = de_SecurityGroupRuleList(__getArrayIfSingleItem(output[_sGRS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75428,15 +74898,12 @@ const de_DescribeSecurityGroupRulesResult = ( const de_DescribeSecurityGroupsResult = (output: any, context: __SerdeContext): DescribeSecurityGroupsResult => { const contents: any = {}; if (output.securityGroupInfo === "") { - contents.SecurityGroups = []; - } else if (output["securityGroupInfo"] !== undefined && output["securityGroupInfo"]["item"] !== undefined) { - contents.SecurityGroups = de_SecurityGroupList( - __getArrayIfSingleItem(output["securityGroupInfo"]["item"]), - context - ); + contents[_SG] = []; + } else if (output[_sGIec] != null && output[_sGIec][_i] != null) { + contents[_SG] = de_SecurityGroupList(__getArrayIfSingleItem(output[_sGIec][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75447,20 +74914,17 @@ const de_DescribeSecurityGroupsResult = (output: any, context: __SerdeContext): const de_DescribeSnapshotAttributeResult = (output: any, context: __SerdeContext): DescribeSnapshotAttributeResult => { const contents: any = {}; if (output.createVolumePermission === "") { - contents.CreateVolumePermissions = []; - } else if (output["createVolumePermission"] !== undefined && output["createVolumePermission"]["item"] !== undefined) { - contents.CreateVolumePermissions = de_CreateVolumePermissionList( - __getArrayIfSingleItem(output["createVolumePermission"]["item"]), - context - ); + contents[_CVPr] = []; + } else if (output[_cVP] != null && output[_cVP][_i] != null) { + contents[_CVPr] = de_CreateVolumePermissionList(__getArrayIfSingleItem(output[_cVP][_i]), context); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } return contents; }; @@ -75471,12 +74935,12 @@ const de_DescribeSnapshotAttributeResult = (output: any, context: __SerdeContext const de_DescribeSnapshotsResult = (output: any, context: __SerdeContext): DescribeSnapshotsResult => { const contents: any = {}; if (output.snapshotSet === "") { - contents.Snapshots = []; - } else if (output["snapshotSet"] !== undefined && output["snapshotSet"]["item"] !== undefined) { - contents.Snapshots = de_SnapshotList(__getArrayIfSingleItem(output["snapshotSet"]["item"]), context); + contents[_Sn] = []; + } else if (output[_sS] != null && output[_sS][_i] != null) { + contents[_Sn] = de_SnapshotList(__getArrayIfSingleItem(output[_sS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75490,15 +74954,12 @@ const de_DescribeSnapshotTierStatusResult = ( ): DescribeSnapshotTierStatusResult => { const contents: any = {}; if (output.snapshotTierStatusSet === "") { - contents.SnapshotTierStatuses = []; - } else if (output["snapshotTierStatusSet"] !== undefined && output["snapshotTierStatusSet"]["item"] !== undefined) { - contents.SnapshotTierStatuses = de_snapshotTierStatusSet( - __getArrayIfSingleItem(output["snapshotTierStatusSet"]["item"]), - context - ); + contents[_STS] = []; + } else if (output[_sTSS] != null && output[_sTSS][_i] != null) { + contents[_STS] = de_snapshotTierStatusSet(__getArrayIfSingleItem(output[_sTSS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75511,8 +74972,8 @@ const de_DescribeSpotDatafeedSubscriptionResult = ( context: __SerdeContext ): DescribeSpotDatafeedSubscriptionResult => { const contents: any = {}; - if (output["spotDatafeedSubscription"] !== undefined) { - contents.SpotDatafeedSubscription = de_SpotDatafeedSubscription(output["spotDatafeedSubscription"], context); + if (output[_sDS] != null) { + contents[_SDS] = de_SpotDatafeedSubscription(output[_sDS], context); } return contents; }; @@ -75526,18 +74987,15 @@ const de_DescribeSpotFleetInstancesResponse = ( ): DescribeSpotFleetInstancesResponse => { const contents: any = {}; if (output.activeInstanceSet === "") { - contents.ActiveInstances = []; - } else if (output["activeInstanceSet"] !== undefined && output["activeInstanceSet"]["item"] !== undefined) { - contents.ActiveInstances = de_ActiveInstanceSet( - __getArrayIfSingleItem(output["activeInstanceSet"]["item"]), - context - ); + contents[_AIc] = []; + } else if (output[_aIS] != null && output[_aIS][_i] != null) { + contents[_AIc] = de_ActiveInstanceSet(__getArrayIfSingleItem(output[_aIS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } - if (output["spotFleetRequestId"] !== undefined) { - contents.SpotFleetRequestId = __expectString(output["spotFleetRequestId"]); + if (output[_sFRI] != null) { + contents[_SFRIp] = __expectString(output[_sFRI]); } return contents; }; @@ -75551,21 +75009,21 @@ const de_DescribeSpotFleetRequestHistoryResponse = ( ): DescribeSpotFleetRequestHistoryResponse => { const contents: any = {}; if (output.historyRecordSet === "") { - contents.HistoryRecords = []; - } else if (output["historyRecordSet"] !== undefined && output["historyRecordSet"]["item"] !== undefined) { - contents.HistoryRecords = de_HistoryRecords(__getArrayIfSingleItem(output["historyRecordSet"]["item"]), context); + contents[_HRi] = []; + } else if (output[_hRS] != null && output[_hRS][_i] != null) { + contents[_HRi] = de_HistoryRecords(__getArrayIfSingleItem(output[_hRS][_i]), context); } - if (output["lastEvaluatedTime"] !== undefined) { - contents.LastEvaluatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lastEvaluatedTime"])); + if (output[_lET] != null) { + contents[_LET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lET])); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } - if (output["spotFleetRequestId"] !== undefined) { - contents.SpotFleetRequestId = __expectString(output["spotFleetRequestId"]); + if (output[_sFRI] != null) { + contents[_SFRIp] = __expectString(output[_sFRI]); } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startTime"])); + if (output[_sT] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } return contents; }; @@ -75578,19 +75036,13 @@ const de_DescribeSpotFleetRequestsResponse = ( context: __SerdeContext ): DescribeSpotFleetRequestsResponse => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.spotFleetRequestConfigSet === "") { - contents.SpotFleetRequestConfigs = []; - } else if ( - output["spotFleetRequestConfigSet"] !== undefined && - output["spotFleetRequestConfigSet"]["item"] !== undefined - ) { - contents.SpotFleetRequestConfigs = de_SpotFleetRequestConfigSet( - __getArrayIfSingleItem(output["spotFleetRequestConfigSet"]["item"]), - context - ); + contents[_SFRCp] = []; + } else if (output[_sFRCS] != null && output[_sFRCS][_i] != null) { + contents[_SFRCp] = de_SpotFleetRequestConfigSet(__getArrayIfSingleItem(output[_sFRCS][_i]), context); } return contents; }; @@ -75604,15 +75056,12 @@ const de_DescribeSpotInstanceRequestsResult = ( ): DescribeSpotInstanceRequestsResult => { const contents: any = {}; if (output.spotInstanceRequestSet === "") { - contents.SpotInstanceRequests = []; - } else if (output["spotInstanceRequestSet"] !== undefined && output["spotInstanceRequestSet"]["item"] !== undefined) { - contents.SpotInstanceRequests = de_SpotInstanceRequestList( - __getArrayIfSingleItem(output["spotInstanceRequestSet"]["item"]), - context - ); + contents[_SIR] = []; + } else if (output[_sIRS] != null && output[_sIRS][_i] != null) { + contents[_SIR] = de_SpotInstanceRequestList(__getArrayIfSingleItem(output[_sIRS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75622,16 +75071,13 @@ const de_DescribeSpotInstanceRequestsResult = ( */ const de_DescribeSpotPriceHistoryResult = (output: any, context: __SerdeContext): DescribeSpotPriceHistoryResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.spotPriceHistorySet === "") { - contents.SpotPriceHistory = []; - } else if (output["spotPriceHistorySet"] !== undefined && output["spotPriceHistorySet"]["item"] !== undefined) { - contents.SpotPriceHistory = de_SpotPriceHistoryList( - __getArrayIfSingleItem(output["spotPriceHistorySet"]["item"]), - context - ); + contents[_SPH] = []; + } else if (output[_sPHS] != null && output[_sPHS][_i] != null) { + contents[_SPH] = de_SpotPriceHistoryList(__getArrayIfSingleItem(output[_sPHS][_i]), context); } return contents; }; @@ -75644,16 +75090,13 @@ const de_DescribeStaleSecurityGroupsResult = ( context: __SerdeContext ): DescribeStaleSecurityGroupsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.staleSecurityGroupSet === "") { - contents.StaleSecurityGroupSet = []; - } else if (output["staleSecurityGroupSet"] !== undefined && output["staleSecurityGroupSet"]["item"] !== undefined) { - contents.StaleSecurityGroupSet = de_StaleSecurityGroupSet( - __getArrayIfSingleItem(output["staleSecurityGroupSet"]["item"]), - context - ); + contents[_SSGS] = []; + } else if (output[_sSGS] != null && output[_sSGS][_i] != null) { + contents[_SSGS] = de_StaleSecurityGroupSet(__getArrayIfSingleItem(output[_sSGS][_i]), context); } return contents; }; @@ -75664,18 +75107,12 @@ const de_DescribeStaleSecurityGroupsResult = ( const de_DescribeStoreImageTasksResult = (output: any, context: __SerdeContext): DescribeStoreImageTasksResult => { const contents: any = {}; if (output.storeImageTaskResultSet === "") { - contents.StoreImageTaskResults = []; - } else if ( - output["storeImageTaskResultSet"] !== undefined && - output["storeImageTaskResultSet"]["item"] !== undefined - ) { - contents.StoreImageTaskResults = de_StoreImageTaskResultSet( - __getArrayIfSingleItem(output["storeImageTaskResultSet"]["item"]), - context - ); + contents[_SITR] = []; + } else if (output[_sITRS] != null && output[_sITRS][_i] != null) { + contents[_SITR] = de_StoreImageTaskResultSet(__getArrayIfSingleItem(output[_sITRS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75686,12 +75123,12 @@ const de_DescribeStoreImageTasksResult = (output: any, context: __SerdeContext): const de_DescribeSubnetsResult = (output: any, context: __SerdeContext): DescribeSubnetsResult => { const contents: any = {}; if (output.subnetSet === "") { - contents.Subnets = []; - } else if (output["subnetSet"] !== undefined && output["subnetSet"]["item"] !== undefined) { - contents.Subnets = de_SubnetList(__getArrayIfSingleItem(output["subnetSet"]["item"]), context); + contents[_Subn] = []; + } else if (output[_sSub] != null && output[_sSub][_i] != null) { + contents[_Subn] = de_SubnetList(__getArrayIfSingleItem(output[_sSub][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75701,13 +75138,13 @@ const de_DescribeSubnetsResult = (output: any, context: __SerdeContext): Describ */ const de_DescribeTagsResult = (output: any, context: __SerdeContext): DescribeTagsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagDescriptionList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagDescriptionList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -75721,15 +75158,12 @@ const de_DescribeTrafficMirrorFiltersResult = ( ): DescribeTrafficMirrorFiltersResult => { const contents: any = {}; if (output.trafficMirrorFilterSet === "") { - contents.TrafficMirrorFilters = []; - } else if (output["trafficMirrorFilterSet"] !== undefined && output["trafficMirrorFilterSet"]["item"] !== undefined) { - contents.TrafficMirrorFilters = de_TrafficMirrorFilterSet( - __getArrayIfSingleItem(output["trafficMirrorFilterSet"]["item"]), - context - ); + contents[_TMFr] = []; + } else if (output[_tMFS] != null && output[_tMFS][_i] != null) { + contents[_TMFr] = de_TrafficMirrorFilterSet(__getArrayIfSingleItem(output[_tMFS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75743,18 +75177,12 @@ const de_DescribeTrafficMirrorSessionsResult = ( ): DescribeTrafficMirrorSessionsResult => { const contents: any = {}; if (output.trafficMirrorSessionSet === "") { - contents.TrafficMirrorSessions = []; - } else if ( - output["trafficMirrorSessionSet"] !== undefined && - output["trafficMirrorSessionSet"]["item"] !== undefined - ) { - contents.TrafficMirrorSessions = de_TrafficMirrorSessionSet( - __getArrayIfSingleItem(output["trafficMirrorSessionSet"]["item"]), - context - ); + contents[_TMSr] = []; + } else if (output[_tMSS] != null && output[_tMSS][_i] != null) { + contents[_TMSr] = de_TrafficMirrorSessionSet(__getArrayIfSingleItem(output[_tMSS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75768,15 +75196,12 @@ const de_DescribeTrafficMirrorTargetsResult = ( ): DescribeTrafficMirrorTargetsResult => { const contents: any = {}; if (output.trafficMirrorTargetSet === "") { - contents.TrafficMirrorTargets = []; - } else if (output["trafficMirrorTargetSet"] !== undefined && output["trafficMirrorTargetSet"]["item"] !== undefined) { - contents.TrafficMirrorTargets = de_TrafficMirrorTargetSet( - __getArrayIfSingleItem(output["trafficMirrorTargetSet"]["item"]), - context - ); + contents[_TMTr] = []; + } else if (output[_tMTS] != null && output[_tMTS][_i] != null) { + contents[_TMTr] = de_TrafficMirrorTargetSet(__getArrayIfSingleItem(output[_tMTS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75790,18 +75215,12 @@ const de_DescribeTransitGatewayAttachmentsResult = ( ): DescribeTransitGatewayAttachmentsResult => { const contents: any = {}; if (output.transitGatewayAttachments === "") { - contents.TransitGatewayAttachments = []; - } else if ( - output["transitGatewayAttachments"] !== undefined && - output["transitGatewayAttachments"]["item"] !== undefined - ) { - contents.TransitGatewayAttachments = de_TransitGatewayAttachmentList( - __getArrayIfSingleItem(output["transitGatewayAttachments"]["item"]), - context - ); + contents[_TGAr] = []; + } else if (output[_tGA] != null && output[_tGA][_i] != null) { + contents[_TGAr] = de_TransitGatewayAttachmentList(__getArrayIfSingleItem(output[_tGA][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75815,18 +75234,12 @@ const de_DescribeTransitGatewayConnectPeersResult = ( ): DescribeTransitGatewayConnectPeersResult => { const contents: any = {}; if (output.transitGatewayConnectPeerSet === "") { - contents.TransitGatewayConnectPeers = []; - } else if ( - output["transitGatewayConnectPeerSet"] !== undefined && - output["transitGatewayConnectPeerSet"]["item"] !== undefined - ) { - contents.TransitGatewayConnectPeers = de_TransitGatewayConnectPeerList( - __getArrayIfSingleItem(output["transitGatewayConnectPeerSet"]["item"]), - context - ); + contents[_TGCPr] = []; + } else if (output[_tGCPS] != null && output[_tGCPS][_i] != null) { + contents[_TGCPr] = de_TransitGatewayConnectPeerList(__getArrayIfSingleItem(output[_tGCPS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75840,18 +75253,12 @@ const de_DescribeTransitGatewayConnectsResult = ( ): DescribeTransitGatewayConnectsResult => { const contents: any = {}; if (output.transitGatewayConnectSet === "") { - contents.TransitGatewayConnects = []; - } else if ( - output["transitGatewayConnectSet"] !== undefined && - output["transitGatewayConnectSet"]["item"] !== undefined - ) { - contents.TransitGatewayConnects = de_TransitGatewayConnectList( - __getArrayIfSingleItem(output["transitGatewayConnectSet"]["item"]), - context - ); + contents[_TGCra] = []; + } else if (output[_tGCS] != null && output[_tGCS][_i] != null) { + contents[_TGCra] = de_TransitGatewayConnectList(__getArrayIfSingleItem(output[_tGCS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75865,18 +75272,12 @@ const de_DescribeTransitGatewayMulticastDomainsResult = ( ): DescribeTransitGatewayMulticastDomainsResult => { const contents: any = {}; if (output.transitGatewayMulticastDomains === "") { - contents.TransitGatewayMulticastDomains = []; - } else if ( - output["transitGatewayMulticastDomains"] !== undefined && - output["transitGatewayMulticastDomains"]["item"] !== undefined - ) { - contents.TransitGatewayMulticastDomains = de_TransitGatewayMulticastDomainList( - __getArrayIfSingleItem(output["transitGatewayMulticastDomains"]["item"]), - context - ); + contents[_TGMDr] = []; + } else if (output[_tGMDr] != null && output[_tGMDr][_i] != null) { + contents[_TGMDr] = de_TransitGatewayMulticastDomainList(__getArrayIfSingleItem(output[_tGMDr][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75890,18 +75291,12 @@ const de_DescribeTransitGatewayPeeringAttachmentsResult = ( ): DescribeTransitGatewayPeeringAttachmentsResult => { const contents: any = {}; if (output.transitGatewayPeeringAttachments === "") { - contents.TransitGatewayPeeringAttachments = []; - } else if ( - output["transitGatewayPeeringAttachments"] !== undefined && - output["transitGatewayPeeringAttachments"]["item"] !== undefined - ) { - contents.TransitGatewayPeeringAttachments = de_TransitGatewayPeeringAttachmentList( - __getArrayIfSingleItem(output["transitGatewayPeeringAttachments"]["item"]), - context - ); + contents[_TGPAr] = []; + } else if (output[_tGPAr] != null && output[_tGPAr][_i] != null) { + contents[_TGPAr] = de_TransitGatewayPeeringAttachmentList(__getArrayIfSingleItem(output[_tGPAr][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75915,18 +75310,12 @@ const de_DescribeTransitGatewayPolicyTablesResult = ( ): DescribeTransitGatewayPolicyTablesResult => { const contents: any = {}; if (output.transitGatewayPolicyTables === "") { - contents.TransitGatewayPolicyTables = []; - } else if ( - output["transitGatewayPolicyTables"] !== undefined && - output["transitGatewayPolicyTables"]["item"] !== undefined - ) { - contents.TransitGatewayPolicyTables = de_TransitGatewayPolicyTableList( - __getArrayIfSingleItem(output["transitGatewayPolicyTables"]["item"]), - context - ); + contents[_TGPTr] = []; + } else if (output[_tGPTr] != null && output[_tGPTr][_i] != null) { + contents[_TGPTr] = de_TransitGatewayPolicyTableList(__getArrayIfSingleItem(output[_tGPTr][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75940,18 +75329,15 @@ const de_DescribeTransitGatewayRouteTableAnnouncementsResult = ( ): DescribeTransitGatewayRouteTableAnnouncementsResult => { const contents: any = {}; if (output.transitGatewayRouteTableAnnouncements === "") { - contents.TransitGatewayRouteTableAnnouncements = []; - } else if ( - output["transitGatewayRouteTableAnnouncements"] !== undefined && - output["transitGatewayRouteTableAnnouncements"]["item"] !== undefined - ) { - contents.TransitGatewayRouteTableAnnouncements = de_TransitGatewayRouteTableAnnouncementList( - __getArrayIfSingleItem(output["transitGatewayRouteTableAnnouncements"]["item"]), + contents[_TGRTAr] = []; + } else if (output[_tGRTAr] != null && output[_tGRTAr][_i] != null) { + contents[_TGRTAr] = de_TransitGatewayRouteTableAnnouncementList( + __getArrayIfSingleItem(output[_tGRTAr][_i]), context ); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75965,18 +75351,12 @@ const de_DescribeTransitGatewayRouteTablesResult = ( ): DescribeTransitGatewayRouteTablesResult => { const contents: any = {}; if (output.transitGatewayRouteTables === "") { - contents.TransitGatewayRouteTables = []; - } else if ( - output["transitGatewayRouteTables"] !== undefined && - output["transitGatewayRouteTables"]["item"] !== undefined - ) { - contents.TransitGatewayRouteTables = de_TransitGatewayRouteTableList( - __getArrayIfSingleItem(output["transitGatewayRouteTables"]["item"]), - context - ); + contents[_TGRTr] = []; + } else if (output[_tGRTr] != null && output[_tGRTr][_i] != null) { + contents[_TGRTr] = de_TransitGatewayRouteTableList(__getArrayIfSingleItem(output[_tGRTr][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -75987,15 +75367,12 @@ const de_DescribeTransitGatewayRouteTablesResult = ( const de_DescribeTransitGatewaysResult = (output: any, context: __SerdeContext): DescribeTransitGatewaysResult => { const contents: any = {}; if (output.transitGatewaySet === "") { - contents.TransitGateways = []; - } else if (output["transitGatewaySet"] !== undefined && output["transitGatewaySet"]["item"] !== undefined) { - contents.TransitGateways = de_TransitGatewayList( - __getArrayIfSingleItem(output["transitGatewaySet"]["item"]), - context - ); + contents[_TGra] = []; + } else if (output[_tGS] != null && output[_tGS][_i] != null) { + contents[_TGra] = de_TransitGatewayList(__getArrayIfSingleItem(output[_tGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76009,18 +75386,12 @@ const de_DescribeTransitGatewayVpcAttachmentsResult = ( ): DescribeTransitGatewayVpcAttachmentsResult => { const contents: any = {}; if (output.transitGatewayVpcAttachments === "") { - contents.TransitGatewayVpcAttachments = []; - } else if ( - output["transitGatewayVpcAttachments"] !== undefined && - output["transitGatewayVpcAttachments"]["item"] !== undefined - ) { - contents.TransitGatewayVpcAttachments = de_TransitGatewayVpcAttachmentList( - __getArrayIfSingleItem(output["transitGatewayVpcAttachments"]["item"]), - context - ); + contents[_TGVAr] = []; + } else if (output[_tGVAr] != null && output[_tGVAr][_i] != null) { + contents[_TGVAr] = de_TransitGatewayVpcAttachmentList(__getArrayIfSingleItem(output[_tGVAr][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76034,18 +75405,12 @@ const de_DescribeTrunkInterfaceAssociationsResult = ( ): DescribeTrunkInterfaceAssociationsResult => { const contents: any = {}; if (output.interfaceAssociationSet === "") { - contents.InterfaceAssociations = []; - } else if ( - output["interfaceAssociationSet"] !== undefined && - output["interfaceAssociationSet"]["item"] !== undefined - ) { - contents.InterfaceAssociations = de_TrunkInterfaceAssociationList( - __getArrayIfSingleItem(output["interfaceAssociationSet"]["item"]), - context - ); + contents[_IAnt] = []; + } else if (output[_iAS] != null && output[_iAS][_i] != null) { + contents[_IAnt] = de_TrunkInterfaceAssociationList(__getArrayIfSingleItem(output[_iAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76059,18 +75424,12 @@ const de_DescribeVerifiedAccessEndpointsResult = ( ): DescribeVerifiedAccessEndpointsResult => { const contents: any = {}; if (output.verifiedAccessEndpointSet === "") { - contents.VerifiedAccessEndpoints = []; - } else if ( - output["verifiedAccessEndpointSet"] !== undefined && - output["verifiedAccessEndpointSet"]["item"] !== undefined - ) { - contents.VerifiedAccessEndpoints = de_VerifiedAccessEndpointList( - __getArrayIfSingleItem(output["verifiedAccessEndpointSet"]["item"]), - context - ); + contents[_VAEe] = []; + } else if (output[_vAES] != null && output[_vAES][_i] != null) { + contents[_VAEe] = de_VerifiedAccessEndpointList(__getArrayIfSingleItem(output[_vAES][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76084,15 +75443,12 @@ const de_DescribeVerifiedAccessGroupsResult = ( ): DescribeVerifiedAccessGroupsResult => { const contents: any = {}; if (output.verifiedAccessGroupSet === "") { - contents.VerifiedAccessGroups = []; - } else if (output["verifiedAccessGroupSet"] !== undefined && output["verifiedAccessGroupSet"]["item"] !== undefined) { - contents.VerifiedAccessGroups = de_VerifiedAccessGroupList( - __getArrayIfSingleItem(output["verifiedAccessGroupSet"]["item"]), - context - ); + contents[_VAGe] = []; + } else if (output[_vAGS] != null && output[_vAGS][_i] != null) { + contents[_VAGe] = de_VerifiedAccessGroupList(__getArrayIfSingleItem(output[_vAGS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76106,18 +75462,15 @@ const de_DescribeVerifiedAccessInstanceLoggingConfigurationsResult = ( ): DescribeVerifiedAccessInstanceLoggingConfigurationsResult => { const contents: any = {}; if (output.loggingConfigurationSet === "") { - contents.LoggingConfigurations = []; - } else if ( - output["loggingConfigurationSet"] !== undefined && - output["loggingConfigurationSet"]["item"] !== undefined - ) { - contents.LoggingConfigurations = de_VerifiedAccessInstanceLoggingConfigurationList( - __getArrayIfSingleItem(output["loggingConfigurationSet"]["item"]), + contents[_LC] = []; + } else if (output[_lCS] != null && output[_lCS][_i] != null) { + contents[_LC] = de_VerifiedAccessInstanceLoggingConfigurationList( + __getArrayIfSingleItem(output[_lCS][_i]), context ); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76131,18 +75484,12 @@ const de_DescribeVerifiedAccessInstancesResult = ( ): DescribeVerifiedAccessInstancesResult => { const contents: any = {}; if (output.verifiedAccessInstanceSet === "") { - contents.VerifiedAccessInstances = []; - } else if ( - output["verifiedAccessInstanceSet"] !== undefined && - output["verifiedAccessInstanceSet"]["item"] !== undefined - ) { - contents.VerifiedAccessInstances = de_VerifiedAccessInstanceList( - __getArrayIfSingleItem(output["verifiedAccessInstanceSet"]["item"]), - context - ); + contents[_VAIe] = []; + } else if (output[_vAIS] != null && output[_vAIS][_i] != null) { + contents[_VAIe] = de_VerifiedAccessInstanceList(__getArrayIfSingleItem(output[_vAIS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76156,18 +75503,12 @@ const de_DescribeVerifiedAccessTrustProvidersResult = ( ): DescribeVerifiedAccessTrustProvidersResult => { const contents: any = {}; if (output.verifiedAccessTrustProviderSet === "") { - contents.VerifiedAccessTrustProviders = []; - } else if ( - output["verifiedAccessTrustProviderSet"] !== undefined && - output["verifiedAccessTrustProviderSet"]["item"] !== undefined - ) { - contents.VerifiedAccessTrustProviders = de_VerifiedAccessTrustProviderList( - __getArrayIfSingleItem(output["verifiedAccessTrustProviderSet"]["item"]), - context - ); + contents[_VATPe] = []; + } else if (output[_vATPS] != null && output[_vATPS][_i] != null) { + contents[_VATPe] = de_VerifiedAccessTrustProviderList(__getArrayIfSingleItem(output[_vATPS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76177,16 +75518,16 @@ const de_DescribeVerifiedAccessTrustProvidersResult = ( */ const de_DescribeVolumeAttributeResult = (output: any, context: __SerdeContext): DescribeVolumeAttributeResult => { const contents: any = {}; - if (output["autoEnableIO"] !== undefined) { - contents.AutoEnableIO = de_AttributeBooleanValue(output["autoEnableIO"], context); + if (output[_aEIO] != null) { + contents[_AEIO] = de_AttributeBooleanValue(output[_aEIO], context); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } return contents; }; @@ -76200,15 +75541,12 @@ const de_DescribeVolumesModificationsResult = ( ): DescribeVolumesModificationsResult => { const contents: any = {}; if (output.volumeModificationSet === "") { - contents.VolumesModifications = []; - } else if (output["volumeModificationSet"] !== undefined && output["volumeModificationSet"]["item"] !== undefined) { - contents.VolumesModifications = de_VolumeModificationList( - __getArrayIfSingleItem(output["volumeModificationSet"]["item"]), - context - ); + contents[_VM] = []; + } else if (output[_vMS] != null && output[_vMS][_i] != null) { + contents[_VM] = de_VolumeModificationList(__getArrayIfSingleItem(output[_vMS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76219,12 +75557,12 @@ const de_DescribeVolumesModificationsResult = ( const de_DescribeVolumesResult = (output: any, context: __SerdeContext): DescribeVolumesResult => { const contents: any = {}; if (output.volumeSet === "") { - contents.Volumes = []; - } else if (output["volumeSet"] !== undefined && output["volumeSet"]["item"] !== undefined) { - contents.Volumes = de_VolumeList(__getArrayIfSingleItem(output["volumeSet"]["item"]), context); + contents[_Vol] = []; + } else if (output[_vS] != null && output[_vS][_i] != null) { + contents[_Vol] = de_VolumeList(__getArrayIfSingleItem(output[_vS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76234,13 +75572,13 @@ const de_DescribeVolumesResult = (output: any, context: __SerdeContext): Describ */ const de_DescribeVolumeStatusResult = (output: any, context: __SerdeContext): DescribeVolumeStatusResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.volumeStatusSet === "") { - contents.VolumeStatuses = []; - } else if (output["volumeStatusSet"] !== undefined && output["volumeStatusSet"]["item"] !== undefined) { - contents.VolumeStatuses = de_VolumeStatusList(__getArrayIfSingleItem(output["volumeStatusSet"]["item"]), context); + contents[_VSo] = []; + } else if (output[_vSS] != null && output[_vSS][_i] != null) { + contents[_VSo] = de_VolumeStatusList(__getArrayIfSingleItem(output[_vSS][_i]), context); } return contents; }; @@ -76250,20 +75588,17 @@ const de_DescribeVolumeStatusResult = (output: any, context: __SerdeContext): De */ const de_DescribeVpcAttributeResult = (output: any, context: __SerdeContext): DescribeVpcAttributeResult => { const contents: any = {}; - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["enableDnsHostnames"] !== undefined) { - contents.EnableDnsHostnames = de_AttributeBooleanValue(output["enableDnsHostnames"], context); + if (output[_eDH] != null) { + contents[_EDH] = de_AttributeBooleanValue(output[_eDH], context); } - if (output["enableDnsSupport"] !== undefined) { - contents.EnableDnsSupport = de_AttributeBooleanValue(output["enableDnsSupport"], context); + if (output[_eDS] != null) { + contents[_EDS] = de_AttributeBooleanValue(output[_eDS], context); } - if (output["enableNetworkAddressUsageMetrics"] !== undefined) { - contents.EnableNetworkAddressUsageMetrics = de_AttributeBooleanValue( - output["enableNetworkAddressUsageMetrics"], - context - ); + if (output[_eNAUM] != null) { + contents[_ENAUM] = de_AttributeBooleanValue(output[_eNAUM], context); } return contents; }; @@ -76276,13 +75611,13 @@ const de_DescribeVpcClassicLinkDnsSupportResult = ( context: __SerdeContext ): DescribeVpcClassicLinkDnsSupportResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.vpcs === "") { - contents.Vpcs = []; - } else if (output["vpcs"] !== undefined && output["vpcs"]["item"] !== undefined) { - contents.Vpcs = de_ClassicLinkDnsSupportList(__getArrayIfSingleItem(output["vpcs"]["item"]), context); + contents[_Vpc] = []; + } else if (output[_vpc] != null && output[_vpc][_i] != null) { + contents[_Vpc] = de_ClassicLinkDnsSupportList(__getArrayIfSingleItem(output[_vpc][_i]), context); } return contents; }; @@ -76293,9 +75628,9 @@ const de_DescribeVpcClassicLinkDnsSupportResult = ( const de_DescribeVpcClassicLinkResult = (output: any, context: __SerdeContext): DescribeVpcClassicLinkResult => { const contents: any = {}; if (output.vpcSet === "") { - contents.Vpcs = []; - } else if (output["vpcSet"] !== undefined && output["vpcSet"]["item"] !== undefined) { - contents.Vpcs = de_VpcClassicLinkList(__getArrayIfSingleItem(output["vpcSet"]["item"]), context); + contents[_Vpc] = []; + } else if (output[_vSp] != null && output[_vSp][_i] != null) { + contents[_Vpc] = de_VpcClassicLinkList(__getArrayIfSingleItem(output[_vSp][_i]), context); } return contents; }; @@ -76309,18 +75644,12 @@ const de_DescribeVpcEndpointConnectionNotificationsResult = ( ): DescribeVpcEndpointConnectionNotificationsResult => { const contents: any = {}; if (output.connectionNotificationSet === "") { - contents.ConnectionNotificationSet = []; - } else if ( - output["connectionNotificationSet"] !== undefined && - output["connectionNotificationSet"]["item"] !== undefined - ) { - contents.ConnectionNotificationSet = de_ConnectionNotificationSet( - __getArrayIfSingleItem(output["connectionNotificationSet"]["item"]), - context - ); + contents[_CNSo] = []; + } else if (output[_cNSo] != null && output[_cNSo][_i] != null) { + contents[_CNSo] = de_ConnectionNotificationSet(__getArrayIfSingleItem(output[_cNSo][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76334,18 +75663,12 @@ const de_DescribeVpcEndpointConnectionsResult = ( ): DescribeVpcEndpointConnectionsResult => { const contents: any = {}; if (output.vpcEndpointConnectionSet === "") { - contents.VpcEndpointConnections = []; - } else if ( - output["vpcEndpointConnectionSet"] !== undefined && - output["vpcEndpointConnectionSet"]["item"] !== undefined - ) { - contents.VpcEndpointConnections = de_VpcEndpointConnectionSet( - __getArrayIfSingleItem(output["vpcEndpointConnectionSet"]["item"]), - context - ); + contents[_VEC] = []; + } else if (output[_vECS] != null && output[_vECS][_i] != null) { + contents[_VEC] = de_VpcEndpointConnectionSet(__getArrayIfSingleItem(output[_vECS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76359,18 +75682,12 @@ const de_DescribeVpcEndpointServiceConfigurationsResult = ( ): DescribeVpcEndpointServiceConfigurationsResult => { const contents: any = {}; if (output.serviceConfigurationSet === "") { - contents.ServiceConfigurations = []; - } else if ( - output["serviceConfigurationSet"] !== undefined && - output["serviceConfigurationSet"]["item"] !== undefined - ) { - contents.ServiceConfigurations = de_ServiceConfigurationSet( - __getArrayIfSingleItem(output["serviceConfigurationSet"]["item"]), - context - ); + contents[_SCer] = []; + } else if (output[_sCS] != null && output[_sCS][_i] != null) { + contents[_SCer] = de_ServiceConfigurationSet(__getArrayIfSingleItem(output[_sCS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76384,15 +75701,12 @@ const de_DescribeVpcEndpointServicePermissionsResult = ( ): DescribeVpcEndpointServicePermissionsResult => { const contents: any = {}; if (output.allowedPrincipals === "") { - contents.AllowedPrincipals = []; - } else if (output["allowedPrincipals"] !== undefined && output["allowedPrincipals"]["item"] !== undefined) { - contents.AllowedPrincipals = de_AllowedPrincipalSet( - __getArrayIfSingleItem(output["allowedPrincipals"]["item"]), - context - ); + contents[_APl] = []; + } else if (output[_aP] != null && output[_aP][_i] != null) { + contents[_APl] = de_AllowedPrincipalSet(__getArrayIfSingleItem(output[_aP][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76406,17 +75720,17 @@ const de_DescribeVpcEndpointServicesResult = ( ): DescribeVpcEndpointServicesResult => { const contents: any = {}; if (output.serviceNameSet === "") { - contents.ServiceNames = []; - } else if (output["serviceNameSet"] !== undefined && output["serviceNameSet"]["item"] !== undefined) { - contents.ServiceNames = de_ValueStringList(__getArrayIfSingleItem(output["serviceNameSet"]["item"]), context); + contents[_SNer] = []; + } else if (output[_sNS] != null && output[_sNS][_i] != null) { + contents[_SNer] = de_ValueStringList(__getArrayIfSingleItem(output[_sNS][_i]), context); } if (output.serviceDetailSet === "") { - contents.ServiceDetails = []; - } else if (output["serviceDetailSet"] !== undefined && output["serviceDetailSet"]["item"] !== undefined) { - contents.ServiceDetails = de_ServiceDetailSet(__getArrayIfSingleItem(output["serviceDetailSet"]["item"]), context); + contents[_SDe] = []; + } else if (output[_sDSe] != null && output[_sDSe][_i] != null) { + contents[_SDe] = de_ServiceDetailSet(__getArrayIfSingleItem(output[_sDSe][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76427,12 +75741,12 @@ const de_DescribeVpcEndpointServicesResult = ( const de_DescribeVpcEndpointsResult = (output: any, context: __SerdeContext): DescribeVpcEndpointsResult => { const contents: any = {}; if (output.vpcEndpointSet === "") { - contents.VpcEndpoints = []; - } else if (output["vpcEndpointSet"] !== undefined && output["vpcEndpointSet"]["item"] !== undefined) { - contents.VpcEndpoints = de_VpcEndpointSet(__getArrayIfSingleItem(output["vpcEndpointSet"]["item"]), context); + contents[_VEp] = []; + } else if (output[_vESp] != null && output[_vESp][_i] != null) { + contents[_VEp] = de_VpcEndpointSet(__getArrayIfSingleItem(output[_vESp][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76446,18 +75760,12 @@ const de_DescribeVpcPeeringConnectionsResult = ( ): DescribeVpcPeeringConnectionsResult => { const contents: any = {}; if (output.vpcPeeringConnectionSet === "") { - contents.VpcPeeringConnections = []; - } else if ( - output["vpcPeeringConnectionSet"] !== undefined && - output["vpcPeeringConnectionSet"]["item"] !== undefined - ) { - contents.VpcPeeringConnections = de_VpcPeeringConnectionList( - __getArrayIfSingleItem(output["vpcPeeringConnectionSet"]["item"]), - context - ); + contents[_VPCp] = []; + } else if (output[_vPCS] != null && output[_vPCS][_i] != null) { + contents[_VPCp] = de_VpcPeeringConnectionList(__getArrayIfSingleItem(output[_vPCS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76468,12 +75776,12 @@ const de_DescribeVpcPeeringConnectionsResult = ( const de_DescribeVpcsResult = (output: any, context: __SerdeContext): DescribeVpcsResult => { const contents: any = {}; if (output.vpcSet === "") { - contents.Vpcs = []; - } else if (output["vpcSet"] !== undefined && output["vpcSet"]["item"] !== undefined) { - contents.Vpcs = de_VpcList(__getArrayIfSingleItem(output["vpcSet"]["item"]), context); + contents[_Vpc] = []; + } else if (output[_vSp] != null && output[_vSp][_i] != null) { + contents[_Vpc] = de_VpcList(__getArrayIfSingleItem(output[_vSp][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -76484,9 +75792,9 @@ const de_DescribeVpcsResult = (output: any, context: __SerdeContext): DescribeVp const de_DescribeVpnConnectionsResult = (output: any, context: __SerdeContext): DescribeVpnConnectionsResult => { const contents: any = {}; if (output.vpnConnectionSet === "") { - contents.VpnConnections = []; - } else if (output["vpnConnectionSet"] !== undefined && output["vpnConnectionSet"]["item"] !== undefined) { - contents.VpnConnections = de_VpnConnectionList(__getArrayIfSingleItem(output["vpnConnectionSet"]["item"]), context); + contents[_VCp] = []; + } else if (output[_vCS] != null && output[_vCS][_i] != null) { + contents[_VCp] = de_VpnConnectionList(__getArrayIfSingleItem(output[_vCS][_i]), context); } return contents; }; @@ -76497,9 +75805,9 @@ const de_DescribeVpnConnectionsResult = (output: any, context: __SerdeContext): const de_DescribeVpnGatewaysResult = (output: any, context: __SerdeContext): DescribeVpnGatewaysResult => { const contents: any = {}; if (output.vpnGatewaySet === "") { - contents.VpnGateways = []; - } else if (output["vpnGatewaySet"] !== undefined && output["vpnGatewaySet"]["item"] !== undefined) { - contents.VpnGateways = de_VpnGatewayList(__getArrayIfSingleItem(output["vpnGatewaySet"]["item"]), context); + contents[_VGp] = []; + } else if (output[_vGS] != null && output[_vGS][_i] != null) { + contents[_VGp] = de_VpnGatewayList(__getArrayIfSingleItem(output[_vGS][_i]), context); } return contents; }; @@ -76509,14 +75817,14 @@ const de_DescribeVpnGatewaysResult = (output: any, context: __SerdeContext): Des */ const de_DestinationOptionsResponse = (output: any, context: __SerdeContext): DestinationOptionsResponse => { const contents: any = {}; - if (output["fileFormat"] !== undefined) { - contents.FileFormat = __expectString(output["fileFormat"]); + if (output[_fF] != null) { + contents[_FF] = __expectString(output[_fF]); } - if (output["hiveCompatiblePartitions"] !== undefined) { - contents.HiveCompatiblePartitions = __parseBoolean(output["hiveCompatiblePartitions"]); + if (output[_hCP] != null) { + contents[_HCP] = __parseBoolean(output[_hCP]); } - if (output["perHourPartition"] !== undefined) { - contents.PerHourPartition = __parseBoolean(output["perHourPartition"]); + if (output[_pHP] != null) { + contents[_PHP] = __parseBoolean(output[_pHP]); } return contents; }; @@ -76526,8 +75834,8 @@ const de_DestinationOptionsResponse = (output: any, context: __SerdeContext): De */ const de_DetachClassicLinkVpcResult = (output: any, context: __SerdeContext): DetachClassicLinkVpcResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -76540,14 +75848,11 @@ const de_DetachVerifiedAccessTrustProviderResult = ( context: __SerdeContext ): DetachVerifiedAccessTrustProviderResult => { const contents: any = {}; - if (output["verifiedAccessTrustProvider"] !== undefined) { - contents.VerifiedAccessTrustProvider = de_VerifiedAccessTrustProvider( - output["verifiedAccessTrustProvider"], - context - ); + if (output[_vATP] != null) { + contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context); } - if (output["verifiedAccessInstance"] !== undefined) { - contents.VerifiedAccessInstance = de_VerifiedAccessInstance(output["verifiedAccessInstance"], context); + if (output[_vAI] != null) { + contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context); } return contents; }; @@ -76557,11 +75862,11 @@ const de_DetachVerifiedAccessTrustProviderResult = ( */ const de_DeviceOptions = (output: any, context: __SerdeContext): DeviceOptions => { const contents: any = {}; - if (output["tenantId"] !== undefined) { - contents.TenantId = __expectString(output["tenantId"]); + if (output[_tI] != null) { + contents[_TIe] = __expectString(output[_tI]); } - if (output["publicSigningKeyUrl"] !== undefined) { - contents.PublicSigningKeyUrl = __expectString(output["publicSigningKeyUrl"]); + if (output[_pSKU] != null) { + contents[_PSKU] = __expectString(output[_pSKU]); } return contents; }; @@ -76571,13 +75876,13 @@ const de_DeviceOptions = (output: any, context: __SerdeContext): DeviceOptions = */ const de_DhcpConfiguration = (output: any, context: __SerdeContext): DhcpConfiguration => { const contents: any = {}; - if (output["key"] !== undefined) { - contents.Key = __expectString(output["key"]); + if (output[_k] != null) { + contents[_Ke] = __expectString(output[_k]); } if (output.valueSet === "") { - contents.Values = []; - } else if (output["valueSet"] !== undefined && output["valueSet"]["item"] !== undefined) { - contents.Values = de_DhcpConfigurationValueList(__getArrayIfSingleItem(output["valueSet"]["item"]), context); + contents[_Val] = []; + } else if (output[_vSa] != null && output[_vSa][_i] != null) { + contents[_Val] = de_DhcpConfigurationValueList(__getArrayIfSingleItem(output[_vSa][_i]), context); } return contents; }; @@ -76610,23 +75915,20 @@ const de_DhcpConfigurationValueList = (output: any, context: __SerdeContext): At const de_DhcpOptions = (output: any, context: __SerdeContext): DhcpOptions => { const contents: any = {}; if (output.dhcpConfigurationSet === "") { - contents.DhcpConfigurations = []; - } else if (output["dhcpConfigurationSet"] !== undefined && output["dhcpConfigurationSet"]["item"] !== undefined) { - contents.DhcpConfigurations = de_DhcpConfigurationList( - __getArrayIfSingleItem(output["dhcpConfigurationSet"]["item"]), - context - ); + contents[_DCh] = []; + } else if (output[_dCS] != null && output[_dCS][_i] != null) { + contents[_DCh] = de_DhcpConfigurationList(__getArrayIfSingleItem(output[_dCS][_i]), context); } - if (output["dhcpOptionsId"] !== undefined) { - contents.DhcpOptionsId = __expectString(output["dhcpOptionsId"]); + if (output[_dOI] != null) { + contents[_DOI] = __expectString(output[_dOI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -76647,8 +75949,8 @@ const de_DhcpOptionsList = (output: any, context: __SerdeContext): DhcpOptions[] */ const de_DirectoryServiceAuthentication = (output: any, context: __SerdeContext): DirectoryServiceAuthentication => { const contents: any = {}; - if (output["directoryId"] !== undefined) { - contents.DirectoryId = __expectString(output["directoryId"]); + if (output[_dI] != null) { + contents[_DIir] = __expectString(output[_dI]); } return contents; }; @@ -76658,8 +75960,8 @@ const de_DirectoryServiceAuthentication = (output: any, context: __SerdeContext) */ const de_DisableAddressTransferResult = (output: any, context: __SerdeContext): DisableAddressTransferResult => { const contents: any = {}; - if (output["addressTransfer"] !== undefined) { - contents.AddressTransfer = de_AddressTransfer(output["addressTransfer"], context); + if (output[_aT] != null) { + contents[_ATdd] = de_AddressTransfer(output[_aT], context); } return contents; }; @@ -76672,8 +75974,8 @@ const de_DisableAwsNetworkPerformanceMetricSubscriptionResult = ( context: __SerdeContext ): DisableAwsNetworkPerformanceMetricSubscriptionResult => { const contents: any = {}; - if (output["output"] !== undefined) { - contents.Output = __parseBoolean(output["output"]); + if (output[_ou] != null) { + contents[_Ou] = __parseBoolean(output[_ou]); } return contents; }; @@ -76686,8 +75988,8 @@ const de_DisableEbsEncryptionByDefaultResult = ( context: __SerdeContext ): DisableEbsEncryptionByDefaultResult => { const contents: any = {}; - if (output["ebsEncryptionByDefault"] !== undefined) { - contents.EbsEncryptionByDefault = __parseBoolean(output["ebsEncryptionByDefault"]); + if (output[_eEBD] != null) { + contents[_EEBD] = __parseBoolean(output[_eEBD]); } return contents; }; @@ -76697,35 +75999,32 @@ const de_DisableEbsEncryptionByDefaultResult = ( */ const de_DisableFastLaunchResult = (output: any, context: __SerdeContext): DisableFastLaunchResult => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["snapshotConfiguration"] !== undefined) { - contents.SnapshotConfiguration = de_FastLaunchSnapshotConfigurationResponse( - output["snapshotConfiguration"], - context - ); + if (output[_sCn] != null) { + contents[_SCn] = de_FastLaunchSnapshotConfigurationResponse(output[_sCn], context); } - if (output["launchTemplate"] !== undefined) { - contents.LaunchTemplate = de_FastLaunchLaunchTemplateSpecificationResponse(output["launchTemplate"], context); + if (output[_lT] != null) { + contents[_LTa] = de_FastLaunchLaunchTemplateSpecificationResponse(output[_lT], context); } - if (output["maxParallelLaunches"] !== undefined) { - contents.MaxParallelLaunches = __strictParseInt32(output["maxParallelLaunches"]) as number; + if (output[_mPL] != null) { + contents[_MPL] = __strictParseInt32(output[_mPL]) as number; } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateTransitionReason"] !== undefined) { - contents.StateTransitionReason = __expectString(output["stateTransitionReason"]); + if (output[_sTR] != null) { + contents[_STRt] = __expectString(output[_sTR]); } - if (output["stateTransitionTime"] !== undefined) { - contents.StateTransitionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["stateTransitionTime"])); + if (output[_sTT] != null) { + contents[_STT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sTT])); } return contents; }; @@ -76738,19 +76037,13 @@ const de_DisableFastSnapshotRestoreErrorItem = ( context: __SerdeContext ): DisableFastSnapshotRestoreErrorItem => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } if (output.fastSnapshotRestoreStateErrorSet === "") { - contents.FastSnapshotRestoreStateErrors = []; - } else if ( - output["fastSnapshotRestoreStateErrorSet"] !== undefined && - output["fastSnapshotRestoreStateErrorSet"]["item"] !== undefined - ) { - contents.FastSnapshotRestoreStateErrors = de_DisableFastSnapshotRestoreStateErrorSet( - __getArrayIfSingleItem(output["fastSnapshotRestoreStateErrorSet"]["item"]), - context - ); + contents[_FSRSE] = []; + } else if (output[_fSRSES] != null && output[_fSRSES][_i] != null) { + contents[_FSRSE] = de_DisableFastSnapshotRestoreStateErrorSet(__getArrayIfSingleItem(output[_fSRSES][_i]), context); } return contents; }; @@ -76778,20 +76071,14 @@ const de_DisableFastSnapshotRestoresResult = ( ): DisableFastSnapshotRestoresResult => { const contents: any = {}; if (output.successful === "") { - contents.Successful = []; - } else if (output["successful"] !== undefined && output["successful"]["item"] !== undefined) { - contents.Successful = de_DisableFastSnapshotRestoreSuccessSet( - __getArrayIfSingleItem(output["successful"]["item"]), - context - ); + contents[_Suc] = []; + } else if (output[_suc] != null && output[_suc][_i] != null) { + contents[_Suc] = de_DisableFastSnapshotRestoreSuccessSet(__getArrayIfSingleItem(output[_suc][_i]), context); } if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_DisableFastSnapshotRestoreErrorSet( - __getArrayIfSingleItem(output["unsuccessful"]["item"]), - context - ); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_DisableFastSnapshotRestoreErrorSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -76804,11 +76091,11 @@ const de_DisableFastSnapshotRestoreStateError = ( context: __SerdeContext ): DisableFastSnapshotRestoreStateError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -76821,11 +76108,11 @@ const de_DisableFastSnapshotRestoreStateErrorItem = ( context: __SerdeContext ): DisableFastSnapshotRestoreStateErrorItem => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["error"] !== undefined) { - contents.Error = de_DisableFastSnapshotRestoreStateError(output["error"], context); + if (output[_er] != null) { + contents[_Er] = de_DisableFastSnapshotRestoreStateError(output[_er], context); } return contents; }; @@ -76852,38 +76139,38 @@ const de_DisableFastSnapshotRestoreSuccessItem = ( context: __SerdeContext ): DisableFastSnapshotRestoreSuccessItem => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateTransitionReason"] !== undefined) { - contents.StateTransitionReason = __expectString(output["stateTransitionReason"]); + if (output[_sTR] != null) { + contents[_STRt] = __expectString(output[_sTR]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ownerAlias"] !== undefined) { - contents.OwnerAlias = __expectString(output["ownerAlias"]); + if (output[_oAw] != null) { + contents[_OAw] = __expectString(output[_oAw]); } - if (output["enablingTime"] !== undefined) { - contents.EnablingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["enablingTime"])); + if (output[_eTn] != null) { + contents[_ETna] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eTn])); } - if (output["optimizingTime"] !== undefined) { - contents.OptimizingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["optimizingTime"])); + if (output[_oT] != null) { + contents[_OTpt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_oT])); } - if (output["enabledTime"] !== undefined) { - contents.EnabledTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["enabledTime"])); + if (output[_eTna] != null) { + contents[_ETnab] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eTna])); } - if (output["disablingTime"] !== undefined) { - contents.DisablingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["disablingTime"])); + if (output[_dTi] != null) { + contents[_DTi] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTi])); } - if (output["disabledTime"] !== undefined) { - contents.DisabledTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["disabledTime"])); + if (output[_dTis] != null) { + contents[_DTis] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTis])); } return contents; }; @@ -76910,8 +76197,8 @@ const de_DisableImageBlockPublicAccessResult = ( context: __SerdeContext ): DisableImageBlockPublicAccessResult => { const contents: any = {}; - if (output["imageBlockPublicAccessState"] !== undefined) { - contents.ImageBlockPublicAccessState = __expectString(output["imageBlockPublicAccessState"]); + if (output[_iBPAS] != null) { + contents[_IBPAS] = __expectString(output[_iBPAS]); } return contents; }; @@ -76921,8 +76208,8 @@ const de_DisableImageBlockPublicAccessResult = ( */ const de_DisableImageDeprecationResult = (output: any, context: __SerdeContext): DisableImageDeprecationResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -76932,8 +76219,8 @@ const de_DisableImageDeprecationResult = (output: any, context: __SerdeContext): */ const de_DisableImageResult = (output: any, context: __SerdeContext): DisableImageResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -76946,8 +76233,8 @@ const de_DisableIpamOrganizationAdminAccountResult = ( context: __SerdeContext ): DisableIpamOrganizationAdminAccountResult => { const contents: any = {}; - if (output["success"] !== undefined) { - contents.Success = __parseBoolean(output["success"]); + if (output[_succ] != null) { + contents[_Succ] = __parseBoolean(output[_succ]); } return contents; }; @@ -76960,8 +76247,8 @@ const de_DisableSerialConsoleAccessResult = ( context: __SerdeContext ): DisableSerialConsoleAccessResult => { const contents: any = {}; - if (output["serialConsoleAccessEnabled"] !== undefined) { - contents.SerialConsoleAccessEnabled = __parseBoolean(output["serialConsoleAccessEnabled"]); + if (output[_sCAE] != null) { + contents[_SCAE] = __parseBoolean(output[_sCAE]); } return contents; }; @@ -76974,8 +76261,8 @@ const de_DisableSnapshotBlockPublicAccessResult = ( context: __SerdeContext ): DisableSnapshotBlockPublicAccessResult => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -76988,8 +76275,8 @@ const de_DisableTransitGatewayRouteTablePropagationResult = ( context: __SerdeContext ): DisableTransitGatewayRouteTablePropagationResult => { const contents: any = {}; - if (output["propagation"] !== undefined) { - contents.Propagation = de_TransitGatewayPropagation(output["propagation"], context); + if (output[_prop] != null) { + contents[_Prop] = de_TransitGatewayPropagation(output[_prop], context); } return contents; }; @@ -77002,8 +76289,8 @@ const de_DisableVpcClassicLinkDnsSupportResult = ( context: __SerdeContext ): DisableVpcClassicLinkDnsSupportResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -77013,8 +76300,8 @@ const de_DisableVpcClassicLinkDnsSupportResult = ( */ const de_DisableVpcClassicLinkResult = (output: any, context: __SerdeContext): DisableVpcClassicLinkResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -77027,11 +76314,11 @@ const de_DisassociateClientVpnTargetNetworkResult = ( context: __SerdeContext ): DisassociateClientVpnTargetNetworkResult => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["status"] !== undefined) { - contents.Status = de_AssociationStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_AssociationStatus(output[_sta], context); } return contents; }; @@ -77044,8 +76331,8 @@ const de_DisassociateEnclaveCertificateIamRoleResult = ( context: __SerdeContext ): DisassociateEnclaveCertificateIamRoleResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -77058,11 +76345,8 @@ const de_DisassociateIamInstanceProfileResult = ( context: __SerdeContext ): DisassociateIamInstanceProfileResult => { const contents: any = {}; - if (output["iamInstanceProfileAssociation"] !== undefined) { - contents.IamInstanceProfileAssociation = de_IamInstanceProfileAssociation( - output["iamInstanceProfileAssociation"], - context - ); + if (output[_iIPA] != null) { + contents[_IIPA] = de_IamInstanceProfileAssociation(output[_iIPA], context); } return contents; }; @@ -77075,8 +76359,8 @@ const de_DisassociateInstanceEventWindowResult = ( context: __SerdeContext ): DisassociateInstanceEventWindowResult => { const contents: any = {}; - if (output["instanceEventWindow"] !== undefined) { - contents.InstanceEventWindow = de_InstanceEventWindow(output["instanceEventWindow"], context); + if (output[_iEW] != null) { + contents[_IEW] = de_InstanceEventWindow(output[_iEW], context); } return contents; }; @@ -77086,8 +76370,8 @@ const de_DisassociateInstanceEventWindowResult = ( */ const de_DisassociateIpamByoasnResult = (output: any, context: __SerdeContext): DisassociateIpamByoasnResult => { const contents: any = {}; - if (output["asnAssociation"] !== undefined) { - contents.AsnAssociation = de_AsnAssociation(output["asnAssociation"], context); + if (output[_aA] != null) { + contents[_AAsn] = de_AsnAssociation(output[_aA], context); } return contents; }; @@ -77100,11 +76384,8 @@ const de_DisassociateIpamResourceDiscoveryResult = ( context: __SerdeContext ): DisassociateIpamResourceDiscoveryResult => { const contents: any = {}; - if (output["ipamResourceDiscoveryAssociation"] !== undefined) { - contents.IpamResourceDiscoveryAssociation = de_IpamResourceDiscoveryAssociation( - output["ipamResourceDiscoveryAssociation"], - context - ); + if (output[_iRDA] != null) { + contents[_IRDA] = de_IpamResourceDiscoveryAssociation(output[_iRDA], context); } return contents; }; @@ -77117,16 +76398,13 @@ const de_DisassociateNatGatewayAddressResult = ( context: __SerdeContext ): DisassociateNatGatewayAddressResult => { const contents: any = {}; - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } if (output.natGatewayAddressSet === "") { - contents.NatGatewayAddresses = []; - } else if (output["natGatewayAddressSet"] !== undefined && output["natGatewayAddressSet"]["item"] !== undefined) { - contents.NatGatewayAddresses = de_NatGatewayAddressList( - __getArrayIfSingleItem(output["natGatewayAddressSet"]["item"]), - context - ); + contents[_NGA] = []; + } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { + contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); } return contents; }; @@ -77139,11 +76417,11 @@ const de_DisassociateSubnetCidrBlockResult = ( context: __SerdeContext ): DisassociateSubnetCidrBlockResult => { const contents: any = {}; - if (output["ipv6CidrBlockAssociation"] !== undefined) { - contents.Ipv6CidrBlockAssociation = de_SubnetIpv6CidrBlockAssociation(output["ipv6CidrBlockAssociation"], context); + if (output[_iCBA] != null) { + contents[_ICBA] = de_SubnetIpv6CidrBlockAssociation(output[_iCBA], context); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } return contents; }; @@ -77156,8 +76434,8 @@ const de_DisassociateTransitGatewayMulticastDomainResult = ( context: __SerdeContext ): DisassociateTransitGatewayMulticastDomainResult => { const contents: any = {}; - if (output["associations"] !== undefined) { - contents.Associations = de_TransitGatewayMulticastDomainAssociations(output["associations"], context); + if (output[_a] != null) { + contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a], context); } return contents; }; @@ -77170,8 +76448,8 @@ const de_DisassociateTransitGatewayPolicyTableResult = ( context: __SerdeContext ): DisassociateTransitGatewayPolicyTableResult => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_TransitGatewayPolicyTableAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_TransitGatewayPolicyTableAssociation(output[_ass], context); } return contents; }; @@ -77184,8 +76462,8 @@ const de_DisassociateTransitGatewayRouteTableResult = ( context: __SerdeContext ): DisassociateTransitGatewayRouteTableResult => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_TransitGatewayAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_TransitGatewayAssociation(output[_ass], context); } return contents; }; @@ -77198,11 +76476,11 @@ const de_DisassociateTrunkInterfaceResult = ( context: __SerdeContext ): DisassociateTrunkInterfaceResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } return contents; }; @@ -77212,14 +76490,14 @@ const de_DisassociateTrunkInterfaceResult = ( */ const de_DisassociateVpcCidrBlockResult = (output: any, context: __SerdeContext): DisassociateVpcCidrBlockResult => { const contents: any = {}; - if (output["ipv6CidrBlockAssociation"] !== undefined) { - contents.Ipv6CidrBlockAssociation = de_VpcIpv6CidrBlockAssociation(output["ipv6CidrBlockAssociation"], context); + if (output[_iCBA] != null) { + contents[_ICBA] = de_VpcIpv6CidrBlockAssociation(output[_iCBA], context); } - if (output["cidrBlockAssociation"] !== undefined) { - contents.CidrBlockAssociation = de_VpcCidrBlockAssociation(output["cidrBlockAssociation"], context); + if (output[_cBA] != null) { + contents[_CBA] = de_VpcCidrBlockAssociation(output[_cBA], context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -77229,17 +76507,17 @@ const de_DisassociateVpcCidrBlockResult = (output: any, context: __SerdeContext) */ const de_DiskImageDescription = (output: any, context: __SerdeContext): DiskImageDescription => { const contents: any = {}; - if (output["checksum"] !== undefined) { - contents.Checksum = __expectString(output["checksum"]); + if (output[_ch] != null) { + contents[_Ch] = __expectString(output[_ch]); } - if (output["format"] !== undefined) { - contents.Format = __expectString(output["format"]); + if (output[_f] != null) { + contents[_Fo] = __expectString(output[_f]); } - if (output["importManifestUrl"] !== undefined) { - contents.ImportManifestUrl = __expectString(output["importManifestUrl"]); + if (output[_iMU] != null) { + contents[_IMU] = __expectString(output[_iMU]); } - if (output["size"] !== undefined) { - contents.Size = __strictParseLong(output["size"]) as number; + if (output[_si] != null) { + contents[_Siz] = __strictParseLong(output[_si]) as number; } return contents; }; @@ -77249,11 +76527,11 @@ const de_DiskImageDescription = (output: any, context: __SerdeContext): DiskImag */ const de_DiskImageVolumeDescription = (output: any, context: __SerdeContext): DiskImageVolumeDescription => { const contents: any = {}; - if (output["id"] !== undefined) { - contents.Id = __expectString(output["id"]); + if (output[_id] != null) { + contents[_Id] = __expectString(output[_id]); } - if (output["size"] !== undefined) { - contents.Size = __strictParseLong(output["size"]) as number; + if (output[_si] != null) { + contents[_Siz] = __strictParseLong(output[_si]) as number; } return contents; }; @@ -77263,14 +76541,14 @@ const de_DiskImageVolumeDescription = (output: any, context: __SerdeContext): Di */ const de_DiskInfo = (output: any, context: __SerdeContext): DiskInfo => { const contents: any = {}; - if (output["sizeInGB"] !== undefined) { - contents.SizeInGB = __strictParseLong(output["sizeInGB"]) as number; + if (output[_sIGB] != null) { + contents[_SIGB] = __strictParseLong(output[_sIGB]) as number; } - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } return contents; }; @@ -77291,11 +76569,11 @@ const de_DiskInfoList = (output: any, context: __SerdeContext): DiskInfo[] => { */ const de_DnsEntry = (output: any, context: __SerdeContext): DnsEntry => { const contents: any = {}; - if (output["dnsName"] !== undefined) { - contents.DnsName = __expectString(output["dnsName"]); + if (output[_dNn] != null) { + contents[_DNn] = __expectString(output[_dNn]); } - if (output["hostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["hostedZoneId"]); + if (output[_hZI] != null) { + contents[_HZI] = __expectString(output[_hZI]); } return contents; }; @@ -77316,13 +76594,11 @@ const de_DnsEntrySet = (output: any, context: __SerdeContext): DnsEntry[] => { */ const de_DnsOptions = (output: any, context: __SerdeContext): DnsOptions => { const contents: any = {}; - if (output["dnsRecordIpType"] !== undefined) { - contents.DnsRecordIpType = __expectString(output["dnsRecordIpType"]); + if (output[_dRIT] != null) { + contents[_DRIT] = __expectString(output[_dRIT]); } - if (output["privateDnsOnlyForInboundResolverEndpoint"] !== undefined) { - contents.PrivateDnsOnlyForInboundResolverEndpoint = __parseBoolean( - output["privateDnsOnlyForInboundResolverEndpoint"] - ); + if (output[_pDOFIRE] != null) { + contents[_PDOFIRE] = __parseBoolean(output[_pDOFIRE]); } return contents; }; @@ -77332,32 +76608,32 @@ const de_DnsOptions = (output: any, context: __SerdeContext): DnsOptions => { */ const de_EbsBlockDevice = (output: any, context: __SerdeContext): EbsBlockDevice => { const contents: any = {}; - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } - if (output["iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["iops"]) as number; + if (output[_io] != null) { + contents[_Io] = __strictParseInt32(output[_io]) as number; } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; + if (output[_vSo] != null) { + contents[_VS] = __strictParseInt32(output[_vSo]) as number; } - if (output["volumeType"] !== undefined) { - contents.VolumeType = __expectString(output["volumeType"]); + if (output[_vT] != null) { + contents[_VT] = __expectString(output[_vT]); } - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } - if (output["throughput"] !== undefined) { - contents.Throughput = __strictParseInt32(output["throughput"]) as number; + if (output[_th] != null) { + contents[_Th] = __strictParseInt32(output[_th]) as number; } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } return contents; }; @@ -77367,17 +76643,17 @@ const de_EbsBlockDevice = (output: any, context: __SerdeContext): EbsBlockDevice */ const de_EbsInfo = (output: any, context: __SerdeContext): EbsInfo => { const contents: any = {}; - if (output["ebsOptimizedSupport"] !== undefined) { - contents.EbsOptimizedSupport = __expectString(output["ebsOptimizedSupport"]); + if (output[_eOS] != null) { + contents[_EOS] = __expectString(output[_eOS]); } - if (output["encryptionSupport"] !== undefined) { - contents.EncryptionSupport = __expectString(output["encryptionSupport"]); + if (output[_eSn] != null) { + contents[_ESnc] = __expectString(output[_eSn]); } - if (output["ebsOptimizedInfo"] !== undefined) { - contents.EbsOptimizedInfo = de_EbsOptimizedInfo(output["ebsOptimizedInfo"], context); + if (output[_eOI] != null) { + contents[_EOI] = de_EbsOptimizedInfo(output[_eOI], context); } - if (output["nvmeSupport"] !== undefined) { - contents.NvmeSupport = __expectString(output["nvmeSupport"]); + if (output[_nS] != null) { + contents[_NS] = __expectString(output[_nS]); } return contents; }; @@ -77387,17 +76663,17 @@ const de_EbsInfo = (output: any, context: __SerdeContext): EbsInfo => { */ const de_EbsInstanceBlockDevice = (output: any, context: __SerdeContext): EbsInstanceBlockDevice => { const contents: any = {}; - if (output["attachTime"] !== undefined) { - contents.AttachTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["attachTime"])); + if (output[_aTt] != null) { + contents[_ATtt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_aTt])); } - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } return contents; }; @@ -77407,23 +76683,23 @@ const de_EbsInstanceBlockDevice = (output: any, context: __SerdeContext): EbsIns */ const de_EbsOptimizedInfo = (output: any, context: __SerdeContext): EbsOptimizedInfo => { const contents: any = {}; - if (output["baselineBandwidthInMbps"] !== undefined) { - contents.BaselineBandwidthInMbps = __strictParseInt32(output["baselineBandwidthInMbps"]) as number; + if (output[_bBIM] != null) { + contents[_BBIM] = __strictParseInt32(output[_bBIM]) as number; } - if (output["baselineThroughputInMBps"] !== undefined) { - contents.BaselineThroughputInMBps = __strictParseFloat(output["baselineThroughputInMBps"]) as number; + if (output[_bTIMB] != null) { + contents[_BTIMB] = __strictParseFloat(output[_bTIMB]) as number; } - if (output["baselineIops"] !== undefined) { - contents.BaselineIops = __strictParseInt32(output["baselineIops"]) as number; + if (output[_bIa] != null) { + contents[_BIa] = __strictParseInt32(output[_bIa]) as number; } - if (output["maximumBandwidthInMbps"] !== undefined) { - contents.MaximumBandwidthInMbps = __strictParseInt32(output["maximumBandwidthInMbps"]) as number; + if (output[_mBIM] != null) { + contents[_MBIM] = __strictParseInt32(output[_mBIM]) as number; } - if (output["maximumThroughputInMBps"] !== undefined) { - contents.MaximumThroughputInMBps = __strictParseFloat(output["maximumThroughputInMBps"]) as number; + if (output[_mTIMB] != null) { + contents[_MTIMB] = __strictParseFloat(output[_mTIMB]) as number; } - if (output["maximumIops"] !== undefined) { - contents.MaximumIops = __strictParseInt32(output["maximumIops"]) as number; + if (output[_mI] != null) { + contents[_MIa] = __strictParseInt32(output[_mI]) as number; } return contents; }; @@ -77433,62 +76709,56 @@ const de_EbsOptimizedInfo = (output: any, context: __SerdeContext): EbsOptimized */ const de_Ec2InstanceConnectEndpoint = (output: any, context: __SerdeContext): Ec2InstanceConnectEndpoint => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["instanceConnectEndpointId"] !== undefined) { - contents.InstanceConnectEndpointId = __expectString(output["instanceConnectEndpointId"]); + if (output[_iCEI] != null) { + contents[_ICEI] = __expectString(output[_iCEI]); } - if (output["instanceConnectEndpointArn"] !== undefined) { - contents.InstanceConnectEndpointArn = __expectString(output["instanceConnectEndpointArn"]); + if (output[_iCEA] != null) { + contents[_ICEA] = __expectString(output[_iCEA]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateMessage"] !== undefined) { - contents.StateMessage = __expectString(output["stateMessage"]); + if (output[_sMt] != null) { + contents[_SMt] = __expectString(output[_sMt]); } - if (output["dnsName"] !== undefined) { - contents.DnsName = __expectString(output["dnsName"]); + if (output[_dNn] != null) { + contents[_DNn] = __expectString(output[_dNn]); } - if (output["fipsDnsName"] !== undefined) { - contents.FipsDnsName = __expectString(output["fipsDnsName"]); + if (output[_fDN] != null) { + contents[_FDN] = __expectString(output[_fDN]); } if (output.networkInterfaceIdSet === "") { - contents.NetworkInterfaceIds = []; - } else if (output["networkInterfaceIdSet"] !== undefined && output["networkInterfaceIdSet"]["item"] !== undefined) { - contents.NetworkInterfaceIds = de_NetworkInterfaceIdSet( - __getArrayIfSingleItem(output["networkInterfaceIdSet"]["item"]), - context - ); + contents[_NIIe] = []; + } else if (output[_nIIS] != null && output[_nIIS][_i] != null) { + contents[_NIIe] = de_NetworkInterfaceIdSet(__getArrayIfSingleItem(output[_nIIS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["createdAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createdAt"])); + if (output[_cAr] != null) { + contents[_CAr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cAr])); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["preserveClientIp"] !== undefined) { - contents.PreserveClientIp = __parseBoolean(output["preserveClientIp"]); + if (output[_pCI] != null) { + contents[_PCI] = __parseBoolean(output[_pCI]); } if (output.securityGroupIdSet === "") { - contents.SecurityGroupIds = []; - } else if (output["securityGroupIdSet"] !== undefined && output["securityGroupIdSet"]["item"] !== undefined) { - contents.SecurityGroupIds = de_SecurityGroupIdSet( - __getArrayIfSingleItem(output["securityGroupIdSet"]["item"]), - context - ); + contents[_SGI] = []; + } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { + contents[_SGI] = de_SecurityGroupIdSet(__getArrayIfSingleItem(output[_sGIS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -77498,8 +76768,8 @@ const de_Ec2InstanceConnectEndpoint = (output: any, context: __SerdeContext): Ec */ const de_EfaInfo = (output: any, context: __SerdeContext): EfaInfo => { const contents: any = {}; - if (output["maximumEfaInterfaces"] !== undefined) { - contents.MaximumEfaInterfaces = __strictParseInt32(output["maximumEfaInterfaces"]) as number; + if (output[_mEI] != null) { + contents[_MEI] = __strictParseInt32(output[_mEI]) as number; } return contents; }; @@ -77510,20 +76780,17 @@ const de_EfaInfo = (output: any, context: __SerdeContext): EfaInfo => { const de_EgressOnlyInternetGateway = (output: any, context: __SerdeContext): EgressOnlyInternetGateway => { const contents: any = {}; if (output.attachmentSet === "") { - contents.Attachments = []; - } else if (output["attachmentSet"] !== undefined && output["attachmentSet"]["item"] !== undefined) { - contents.Attachments = de_InternetGatewayAttachmentList( - __getArrayIfSingleItem(output["attachmentSet"]["item"]), - context - ); + contents[_Atta] = []; + } else if (output[_aSt] != null && output[_aSt][_i] != null) { + contents[_Atta] = de_InternetGatewayAttachmentList(__getArrayIfSingleItem(output[_aSt][_i]), context); } - if (output["egressOnlyInternetGatewayId"] !== undefined) { - contents.EgressOnlyInternetGatewayId = __expectString(output["egressOnlyInternetGatewayId"]); + if (output[_eOIGI] != null) { + contents[_EOIGI] = __expectString(output[_eOIGI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -77544,17 +76811,17 @@ const de_EgressOnlyInternetGatewayList = (output: any, context: __SerdeContext): */ const de_ElasticGpuAssociation = (output: any, context: __SerdeContext): ElasticGpuAssociation => { const contents: any = {}; - if (output["elasticGpuId"] !== undefined) { - contents.ElasticGpuId = __expectString(output["elasticGpuId"]); + if (output[_eGI] != null) { + contents[_EGIl] = __expectString(output[_eGI]); } - if (output["elasticGpuAssociationId"] !== undefined) { - contents.ElasticGpuAssociationId = __expectString(output["elasticGpuAssociationId"]); + if (output[_eGAI] != null) { + contents[_EGAI] = __expectString(output[_eGAI]); } - if (output["elasticGpuAssociationState"] !== undefined) { - contents.ElasticGpuAssociationState = __expectString(output["elasticGpuAssociationState"]); + if (output[_eGAS] != null) { + contents[_EGAS] = __expectString(output[_eGAS]); } - if (output["elasticGpuAssociationTime"] !== undefined) { - contents.ElasticGpuAssociationTime = __expectString(output["elasticGpuAssociationTime"]); + if (output[_eGAT] != null) { + contents[_EGAT] = __expectString(output[_eGAT]); } return contents; }; @@ -77575,8 +76842,8 @@ const de_ElasticGpuAssociationList = (output: any, context: __SerdeContext): Ela */ const de_ElasticGpuHealth = (output: any, context: __SerdeContext): ElasticGpuHealth => { const contents: any = {}; - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -77586,28 +76853,28 @@ const de_ElasticGpuHealth = (output: any, context: __SerdeContext): ElasticGpuHe */ const de_ElasticGpus = (output: any, context: __SerdeContext): ElasticGpus => { const contents: any = {}; - if (output["elasticGpuId"] !== undefined) { - contents.ElasticGpuId = __expectString(output["elasticGpuId"]); + if (output[_eGI] != null) { + contents[_EGIl] = __expectString(output[_eGI]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["elasticGpuType"] !== undefined) { - contents.ElasticGpuType = __expectString(output["elasticGpuType"]); + if (output[_eGT] != null) { + contents[_EGT] = __expectString(output[_eGT]); } - if (output["elasticGpuHealth"] !== undefined) { - contents.ElasticGpuHealth = de_ElasticGpuHealth(output["elasticGpuHealth"], context); + if (output[_eGH] != null) { + contents[_EGH] = de_ElasticGpuHealth(output[_eGH], context); } - if (output["elasticGpuState"] !== undefined) { - contents.ElasticGpuState = __expectString(output["elasticGpuState"]); + if (output[_eGSl] != null) { + contents[_EGSlas] = __expectString(output[_eGSl]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -77628,8 +76895,8 @@ const de_ElasticGpuSet = (output: any, context: __SerdeContext): ElasticGpus[] = */ const de_ElasticGpuSpecificationResponse = (output: any, context: __SerdeContext): ElasticGpuSpecificationResponse => { const contents: any = {}; - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } return contents; }; @@ -77656,23 +76923,17 @@ const de_ElasticInferenceAcceleratorAssociation = ( context: __SerdeContext ): ElasticInferenceAcceleratorAssociation => { const contents: any = {}; - if (output["elasticInferenceAcceleratorArn"] !== undefined) { - contents.ElasticInferenceAcceleratorArn = __expectString(output["elasticInferenceAcceleratorArn"]); + if (output[_eIAA] != null) { + contents[_EIAA] = __expectString(output[_eIAA]); } - if (output["elasticInferenceAcceleratorAssociationId"] !== undefined) { - contents.ElasticInferenceAcceleratorAssociationId = __expectString( - output["elasticInferenceAcceleratorAssociationId"] - ); + if (output[_eIAAI] != null) { + contents[_EIAAI] = __expectString(output[_eIAAI]); } - if (output["elasticInferenceAcceleratorAssociationState"] !== undefined) { - contents.ElasticInferenceAcceleratorAssociationState = __expectString( - output["elasticInferenceAcceleratorAssociationState"] - ); + if (output[_eIAAS] != null) { + contents[_EIAAS] = __expectString(output[_eIAAS]); } - if (output["elasticInferenceAcceleratorAssociationTime"] !== undefined) { - contents.ElasticInferenceAcceleratorAssociationTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["elasticInferenceAcceleratorAssociationTime"]) - ); + if (output[_eIAAT] != null) { + contents[_EIAAT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eIAAT])); } return contents; }; @@ -77696,8 +76957,8 @@ const de_ElasticInferenceAcceleratorAssociationList = ( */ const de_EnableAddressTransferResult = (output: any, context: __SerdeContext): EnableAddressTransferResult => { const contents: any = {}; - if (output["addressTransfer"] !== undefined) { - contents.AddressTransfer = de_AddressTransfer(output["addressTransfer"], context); + if (output[_aT] != null) { + contents[_ATdd] = de_AddressTransfer(output[_aT], context); } return contents; }; @@ -77710,8 +76971,8 @@ const de_EnableAwsNetworkPerformanceMetricSubscriptionResult = ( context: __SerdeContext ): EnableAwsNetworkPerformanceMetricSubscriptionResult => { const contents: any = {}; - if (output["output"] !== undefined) { - contents.Output = __parseBoolean(output["output"]); + if (output[_ou] != null) { + contents[_Ou] = __parseBoolean(output[_ou]); } return contents; }; @@ -77724,8 +76985,8 @@ const de_EnableEbsEncryptionByDefaultResult = ( context: __SerdeContext ): EnableEbsEncryptionByDefaultResult => { const contents: any = {}; - if (output["ebsEncryptionByDefault"] !== undefined) { - contents.EbsEncryptionByDefault = __parseBoolean(output["ebsEncryptionByDefault"]); + if (output[_eEBD] != null) { + contents[_EEBD] = __parseBoolean(output[_eEBD]); } return contents; }; @@ -77735,35 +76996,32 @@ const de_EnableEbsEncryptionByDefaultResult = ( */ const de_EnableFastLaunchResult = (output: any, context: __SerdeContext): EnableFastLaunchResult => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["snapshotConfiguration"] !== undefined) { - contents.SnapshotConfiguration = de_FastLaunchSnapshotConfigurationResponse( - output["snapshotConfiguration"], - context - ); + if (output[_sCn] != null) { + contents[_SCn] = de_FastLaunchSnapshotConfigurationResponse(output[_sCn], context); } - if (output["launchTemplate"] !== undefined) { - contents.LaunchTemplate = de_FastLaunchLaunchTemplateSpecificationResponse(output["launchTemplate"], context); + if (output[_lT] != null) { + contents[_LTa] = de_FastLaunchLaunchTemplateSpecificationResponse(output[_lT], context); } - if (output["maxParallelLaunches"] !== undefined) { - contents.MaxParallelLaunches = __strictParseInt32(output["maxParallelLaunches"]) as number; + if (output[_mPL] != null) { + contents[_MPL] = __strictParseInt32(output[_mPL]) as number; } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateTransitionReason"] !== undefined) { - contents.StateTransitionReason = __expectString(output["stateTransitionReason"]); + if (output[_sTR] != null) { + contents[_STRt] = __expectString(output[_sTR]); } - if (output["stateTransitionTime"] !== undefined) { - contents.StateTransitionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["stateTransitionTime"])); + if (output[_sTT] != null) { + contents[_STT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sTT])); } return contents; }; @@ -77776,19 +77034,13 @@ const de_EnableFastSnapshotRestoreErrorItem = ( context: __SerdeContext ): EnableFastSnapshotRestoreErrorItem => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } if (output.fastSnapshotRestoreStateErrorSet === "") { - contents.FastSnapshotRestoreStateErrors = []; - } else if ( - output["fastSnapshotRestoreStateErrorSet"] !== undefined && - output["fastSnapshotRestoreStateErrorSet"]["item"] !== undefined - ) { - contents.FastSnapshotRestoreStateErrors = de_EnableFastSnapshotRestoreStateErrorSet( - __getArrayIfSingleItem(output["fastSnapshotRestoreStateErrorSet"]["item"]), - context - ); + contents[_FSRSE] = []; + } else if (output[_fSRSES] != null && output[_fSRSES][_i] != null) { + contents[_FSRSE] = de_EnableFastSnapshotRestoreStateErrorSet(__getArrayIfSingleItem(output[_fSRSES][_i]), context); } return contents; }; @@ -77816,20 +77068,14 @@ const de_EnableFastSnapshotRestoresResult = ( ): EnableFastSnapshotRestoresResult => { const contents: any = {}; if (output.successful === "") { - contents.Successful = []; - } else if (output["successful"] !== undefined && output["successful"]["item"] !== undefined) { - contents.Successful = de_EnableFastSnapshotRestoreSuccessSet( - __getArrayIfSingleItem(output["successful"]["item"]), - context - ); + contents[_Suc] = []; + } else if (output[_suc] != null && output[_suc][_i] != null) { + contents[_Suc] = de_EnableFastSnapshotRestoreSuccessSet(__getArrayIfSingleItem(output[_suc][_i]), context); } if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_EnableFastSnapshotRestoreErrorSet( - __getArrayIfSingleItem(output["unsuccessful"]["item"]), - context - ); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_EnableFastSnapshotRestoreErrorSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -77842,11 +77088,11 @@ const de_EnableFastSnapshotRestoreStateError = ( context: __SerdeContext ): EnableFastSnapshotRestoreStateError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -77859,11 +77105,11 @@ const de_EnableFastSnapshotRestoreStateErrorItem = ( context: __SerdeContext ): EnableFastSnapshotRestoreStateErrorItem => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["error"] !== undefined) { - contents.Error = de_EnableFastSnapshotRestoreStateError(output["error"], context); + if (output[_er] != null) { + contents[_Er] = de_EnableFastSnapshotRestoreStateError(output[_er], context); } return contents; }; @@ -77890,38 +77136,38 @@ const de_EnableFastSnapshotRestoreSuccessItem = ( context: __SerdeContext ): EnableFastSnapshotRestoreSuccessItem => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateTransitionReason"] !== undefined) { - contents.StateTransitionReason = __expectString(output["stateTransitionReason"]); + if (output[_sTR] != null) { + contents[_STRt] = __expectString(output[_sTR]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ownerAlias"] !== undefined) { - contents.OwnerAlias = __expectString(output["ownerAlias"]); + if (output[_oAw] != null) { + contents[_OAw] = __expectString(output[_oAw]); } - if (output["enablingTime"] !== undefined) { - contents.EnablingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["enablingTime"])); + if (output[_eTn] != null) { + contents[_ETna] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eTn])); } - if (output["optimizingTime"] !== undefined) { - contents.OptimizingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["optimizingTime"])); + if (output[_oT] != null) { + contents[_OTpt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_oT])); } - if (output["enabledTime"] !== undefined) { - contents.EnabledTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["enabledTime"])); + if (output[_eTna] != null) { + contents[_ETnab] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eTna])); } - if (output["disablingTime"] !== undefined) { - contents.DisablingTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["disablingTime"])); + if (output[_dTi] != null) { + contents[_DTi] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTi])); } - if (output["disabledTime"] !== undefined) { - contents.DisabledTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["disabledTime"])); + if (output[_dTis] != null) { + contents[_DTis] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTis])); } return contents; }; @@ -77948,8 +77194,8 @@ const de_EnableImageBlockPublicAccessResult = ( context: __SerdeContext ): EnableImageBlockPublicAccessResult => { const contents: any = {}; - if (output["imageBlockPublicAccessState"] !== undefined) { - contents.ImageBlockPublicAccessState = __expectString(output["imageBlockPublicAccessState"]); + if (output[_iBPAS] != null) { + contents[_IBPAS] = __expectString(output[_iBPAS]); } return contents; }; @@ -77959,8 +77205,8 @@ const de_EnableImageBlockPublicAccessResult = ( */ const de_EnableImageDeprecationResult = (output: any, context: __SerdeContext): EnableImageDeprecationResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -77970,8 +77216,8 @@ const de_EnableImageDeprecationResult = (output: any, context: __SerdeContext): */ const de_EnableImageResult = (output: any, context: __SerdeContext): EnableImageResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -77984,8 +77230,8 @@ const de_EnableIpamOrganizationAdminAccountResult = ( context: __SerdeContext ): EnableIpamOrganizationAdminAccountResult => { const contents: any = {}; - if (output["success"] !== undefined) { - contents.Success = __parseBoolean(output["success"]); + if (output[_succ] != null) { + contents[_Succ] = __parseBoolean(output[_succ]); } return contents; }; @@ -77998,8 +77244,8 @@ const de_EnableReachabilityAnalyzerOrganizationSharingResult = ( context: __SerdeContext ): EnableReachabilityAnalyzerOrganizationSharingResult => { const contents: any = {}; - if (output["returnValue"] !== undefined) { - contents.ReturnValue = __parseBoolean(output["returnValue"]); + if (output[_rV] != null) { + contents[_RV] = __parseBoolean(output[_rV]); } return contents; }; @@ -78009,8 +77255,8 @@ const de_EnableReachabilityAnalyzerOrganizationSharingResult = ( */ const de_EnableSerialConsoleAccessResult = (output: any, context: __SerdeContext): EnableSerialConsoleAccessResult => { const contents: any = {}; - if (output["serialConsoleAccessEnabled"] !== undefined) { - contents.SerialConsoleAccessEnabled = __parseBoolean(output["serialConsoleAccessEnabled"]); + if (output[_sCAE] != null) { + contents[_SCAE] = __parseBoolean(output[_sCAE]); } return contents; }; @@ -78023,8 +77269,8 @@ const de_EnableSnapshotBlockPublicAccessResult = ( context: __SerdeContext ): EnableSnapshotBlockPublicAccessResult => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -78037,8 +77283,8 @@ const de_EnableTransitGatewayRouteTablePropagationResult = ( context: __SerdeContext ): EnableTransitGatewayRouteTablePropagationResult => { const contents: any = {}; - if (output["propagation"] !== undefined) { - contents.Propagation = de_TransitGatewayPropagation(output["propagation"], context); + if (output[_prop] != null) { + contents[_Prop] = de_TransitGatewayPropagation(output[_prop], context); } return contents; }; @@ -78051,8 +77297,8 @@ const de_EnableVpcClassicLinkDnsSupportResult = ( context: __SerdeContext ): EnableVpcClassicLinkDnsSupportResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -78062,8 +77308,8 @@ const de_EnableVpcClassicLinkDnsSupportResult = ( */ const de_EnableVpcClassicLinkResult = (output: any, context: __SerdeContext): EnableVpcClassicLinkResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -78073,11 +77319,11 @@ const de_EnableVpcClassicLinkResult = (output: any, context: __SerdeContext): En */ const de_EnaSrdSpecificationRequest = (output: any, context: __SerdeContext): EnaSrdSpecificationRequest => { const contents: any = {}; - if (output["EnaSrdEnabled"] !== undefined) { - contents.EnaSrdEnabled = __parseBoolean(output["EnaSrdEnabled"]); + if (output[_ESE] != null) { + contents[_ESE] = __parseBoolean(output[_ESE]); } - if (output["EnaSrdUdpSpecification"] !== undefined) { - contents.EnaSrdUdpSpecification = de_EnaSrdUdpSpecificationRequest(output["EnaSrdUdpSpecification"], context); + if (output[_ESUS] != null) { + contents[_ESUS] = de_EnaSrdUdpSpecificationRequest(output[_ESUS], context); } return contents; }; @@ -78087,8 +77333,8 @@ const de_EnaSrdSpecificationRequest = (output: any, context: __SerdeContext): En */ const de_EnaSrdUdpSpecificationRequest = (output: any, context: __SerdeContext): EnaSrdUdpSpecificationRequest => { const contents: any = {}; - if (output["EnaSrdUdpEnabled"] !== undefined) { - contents.EnaSrdUdpEnabled = __parseBoolean(output["EnaSrdUdpEnabled"]); + if (output[_ESUE] != null) { + contents[_ESUE] = __parseBoolean(output[_ESUE]); } return contents; }; @@ -78098,8 +77344,8 @@ const de_EnaSrdUdpSpecificationRequest = (output: any, context: __SerdeContext): */ const de_EnclaveOptions = (output: any, context: __SerdeContext): EnclaveOptions => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } return contents; }; @@ -78131,14 +77377,14 @@ const de_ErrorSet = (output: any, context: __SerdeContext): ValidationError[] => */ const de_EventInformation = (output: any, context: __SerdeContext): EventInformation => { const contents: any = {}; - if (output["eventDescription"] !== undefined) { - contents.EventDescription = __expectString(output["eventDescription"]); + if (output[_eDv] != null) { + contents[_EDv] = __expectString(output[_eDv]); } - if (output["eventSubType"] !== undefined) { - contents.EventSubType = __expectString(output["eventSubType"]); + if (output[_eST] != null) { + contents[_EST] = __expectString(output[_eST]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } return contents; }; @@ -78159,196 +77405,178 @@ const de_ExcludedInstanceTypeSet = (output: any, context: __SerdeContext): strin */ const de_Explanation = (output: any, context: __SerdeContext): Explanation => { const contents: any = {}; - if (output["acl"] !== undefined) { - contents.Acl = de_AnalysisComponent(output["acl"], context); + if (output[_ac] != null) { + contents[_Acl] = de_AnalysisComponent(output[_ac], context); } - if (output["aclRule"] !== undefined) { - contents.AclRule = de_AnalysisAclRule(output["aclRule"], context); + if (output[_aRc] != null) { + contents[_ARcl] = de_AnalysisAclRule(output[_aRc], context); } - if (output["address"] !== undefined) { - contents.Address = __expectString(output["address"]); + if (output[_ad] != null) { + contents[_Ad] = __expectString(output[_ad]); } if (output.addressSet === "") { - contents.Addresses = []; - } else if (output["addressSet"] !== undefined && output["addressSet"]["item"] !== undefined) { - contents.Addresses = de_IpAddressList(__getArrayIfSingleItem(output["addressSet"]["item"]), context); + contents[_Addr] = []; + } else if (output[_aSd] != null && output[_aSd][_i] != null) { + contents[_Addr] = de_IpAddressList(__getArrayIfSingleItem(output[_aSd][_i]), context); } - if (output["attachedTo"] !== undefined) { - contents.AttachedTo = de_AnalysisComponent(output["attachedTo"], context); + if (output[_aTtt] != null) { + contents[_ATtta] = de_AnalysisComponent(output[_aTtt], context); } if (output.availabilityZoneSet === "") { - contents.AvailabilityZones = []; - } else if (output["availabilityZoneSet"] !== undefined && output["availabilityZoneSet"]["item"] !== undefined) { - contents.AvailabilityZones = de_ValueStringList( - __getArrayIfSingleItem(output["availabilityZoneSet"]["item"]), - context - ); + contents[_AZv] = []; + } else if (output[_aZS] != null && output[_aZS][_i] != null) { + contents[_AZv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZS][_i]), context); } if (output.cidrSet === "") { - contents.Cidrs = []; - } else if (output["cidrSet"] !== undefined && output["cidrSet"]["item"] !== undefined) { - contents.Cidrs = de_ValueStringList(__getArrayIfSingleItem(output["cidrSet"]["item"]), context); + contents[_Ci] = []; + } else if (output[_cS] != null && output[_cS][_i] != null) { + contents[_Ci] = de_ValueStringList(__getArrayIfSingleItem(output[_cS][_i]), context); } - if (output["component"] !== undefined) { - contents.Component = de_AnalysisComponent(output["component"], context); + if (output[_c] != null) { + contents[_Com] = de_AnalysisComponent(output[_c], context); } - if (output["customerGateway"] !== undefined) { - contents.CustomerGateway = de_AnalysisComponent(output["customerGateway"], context); + if (output[_cGu] != null) { + contents[_CGu] = de_AnalysisComponent(output[_cGu], context); } - if (output["destination"] !== undefined) { - contents.Destination = de_AnalysisComponent(output["destination"], context); + if (output[_d] != null) { + contents[_D] = de_AnalysisComponent(output[_d], context); } - if (output["destinationVpc"] !== undefined) { - contents.DestinationVpc = de_AnalysisComponent(output["destinationVpc"], context); + if (output[_dV] != null) { + contents[_DVest] = de_AnalysisComponent(output[_dV], context); } - if (output["direction"] !== undefined) { - contents.Direction = __expectString(output["direction"]); + if (output[_di] != null) { + contents[_Di] = __expectString(output[_di]); } - if (output["explanationCode"] !== undefined) { - contents.ExplanationCode = __expectString(output["explanationCode"]); + if (output[_eCx] != null) { + contents[_ECx] = __expectString(output[_eCx]); } - if (output["ingressRouteTable"] !== undefined) { - contents.IngressRouteTable = de_AnalysisComponent(output["ingressRouteTable"], context); + if (output[_iRT] != null) { + contents[_IRT] = de_AnalysisComponent(output[_iRT], context); } - if (output["internetGateway"] !== undefined) { - contents.InternetGateway = de_AnalysisComponent(output["internetGateway"], context); + if (output[_iG] != null) { + contents[_IGn] = de_AnalysisComponent(output[_iG], context); } - if (output["loadBalancerArn"] !== undefined) { - contents.LoadBalancerArn = __expectString(output["loadBalancerArn"]); + if (output[_lBA] != null) { + contents[_LBA] = __expectString(output[_lBA]); } - if (output["classicLoadBalancerListener"] !== undefined) { - contents.ClassicLoadBalancerListener = de_AnalysisLoadBalancerListener( - output["classicLoadBalancerListener"], - context - ); + if (output[_cLBL] != null) { + contents[_CLBL] = de_AnalysisLoadBalancerListener(output[_cLBL], context); } - if (output["loadBalancerListenerPort"] !== undefined) { - contents.LoadBalancerListenerPort = __strictParseInt32(output["loadBalancerListenerPort"]) as number; + if (output[_lBLP] != null) { + contents[_LBLP] = __strictParseInt32(output[_lBLP]) as number; } - if (output["loadBalancerTarget"] !== undefined) { - contents.LoadBalancerTarget = de_AnalysisLoadBalancerTarget(output["loadBalancerTarget"], context); + if (output[_lBT] != null) { + contents[_LBT] = de_AnalysisLoadBalancerTarget(output[_lBT], context); } - if (output["loadBalancerTargetGroup"] !== undefined) { - contents.LoadBalancerTargetGroup = de_AnalysisComponent(output["loadBalancerTargetGroup"], context); + if (output[_lBTG] != null) { + contents[_LBTG] = de_AnalysisComponent(output[_lBTG], context); } if (output.loadBalancerTargetGroupSet === "") { - contents.LoadBalancerTargetGroups = []; - } else if ( - output["loadBalancerTargetGroupSet"] !== undefined && - output["loadBalancerTargetGroupSet"]["item"] !== undefined - ) { - contents.LoadBalancerTargetGroups = de_AnalysisComponentList( - __getArrayIfSingleItem(output["loadBalancerTargetGroupSet"]["item"]), - context - ); + contents[_LBTGo] = []; + } else if (output[_lBTGS] != null && output[_lBTGS][_i] != null) { + contents[_LBTGo] = de_AnalysisComponentList(__getArrayIfSingleItem(output[_lBTGS][_i]), context); } - if (output["loadBalancerTargetPort"] !== undefined) { - contents.LoadBalancerTargetPort = __strictParseInt32(output["loadBalancerTargetPort"]) as number; + if (output[_lBTP] != null) { + contents[_LBTP] = __strictParseInt32(output[_lBTP]) as number; } - if (output["elasticLoadBalancerListener"] !== undefined) { - contents.ElasticLoadBalancerListener = de_AnalysisComponent(output["elasticLoadBalancerListener"], context); + if (output[_eLBL] != null) { + contents[_ELBL] = de_AnalysisComponent(output[_eLBL], context); } - if (output["missingComponent"] !== undefined) { - contents.MissingComponent = __expectString(output["missingComponent"]); + if (output[_mC] != null) { + contents[_MCis] = __expectString(output[_mC]); } - if (output["natGateway"] !== undefined) { - contents.NatGateway = de_AnalysisComponent(output["natGateway"], context); + if (output[_nG] != null) { + contents[_NG] = de_AnalysisComponent(output[_nG], context); } - if (output["networkInterface"] !== undefined) { - contents.NetworkInterface = de_AnalysisComponent(output["networkInterface"], context); + if (output[_nIe] != null) { + contents[_NIet] = de_AnalysisComponent(output[_nIe], context); } - if (output["packetField"] !== undefined) { - contents.PacketField = __expectString(output["packetField"]); + if (output[_pF] != null) { + contents[_PF] = __expectString(output[_pF]); } - if (output["vpcPeeringConnection"] !== undefined) { - contents.VpcPeeringConnection = de_AnalysisComponent(output["vpcPeeringConnection"], context); + if (output[_vPC] != null) { + contents[_VPC] = de_AnalysisComponent(output[_vPC], context); } - if (output["port"] !== undefined) { - contents.Port = __strictParseInt32(output["port"]) as number; + if (output[_po] != null) { + contents[_Po] = __strictParseInt32(output[_po]) as number; } if (output.portRangeSet === "") { - contents.PortRanges = []; - } else if (output["portRangeSet"] !== undefined && output["portRangeSet"]["item"] !== undefined) { - contents.PortRanges = de_PortRangeList(__getArrayIfSingleItem(output["portRangeSet"]["item"]), context); + contents[_PRo] = []; + } else if (output[_pRS] != null && output[_pRS][_i] != null) { + contents[_PRo] = de_PortRangeList(__getArrayIfSingleItem(output[_pRS][_i]), context); } - if (output["prefixList"] !== undefined) { - contents.PrefixList = de_AnalysisComponent(output["prefixList"], context); + if (output[_pL] != null) { + contents[_PLr] = de_AnalysisComponent(output[_pL], context); } if (output.protocolSet === "") { - contents.Protocols = []; - } else if (output["protocolSet"] !== undefined && output["protocolSet"]["item"] !== undefined) { - contents.Protocols = de_StringList(__getArrayIfSingleItem(output["protocolSet"]["item"]), context); + contents[_Pro] = []; + } else if (output[_pSro] != null && output[_pSro][_i] != null) { + contents[_Pro] = de_StringList(__getArrayIfSingleItem(output[_pSro][_i]), context); } - if (output["routeTableRoute"] !== undefined) { - contents.RouteTableRoute = de_AnalysisRouteTableRoute(output["routeTableRoute"], context); + if (output[_rTR] != null) { + contents[_RTR] = de_AnalysisRouteTableRoute(output[_rTR], context); } - if (output["routeTable"] !== undefined) { - contents.RouteTable = de_AnalysisComponent(output["routeTable"], context); + if (output[_rTo] != null) { + contents[_RTo] = de_AnalysisComponent(output[_rTo], context); } - if (output["securityGroup"] !== undefined) { - contents.SecurityGroup = de_AnalysisComponent(output["securityGroup"], context); + if (output[_sG] != null) { + contents[_SGe] = de_AnalysisComponent(output[_sG], context); } - if (output["securityGroupRule"] !== undefined) { - contents.SecurityGroupRule = de_AnalysisSecurityGroupRule(output["securityGroupRule"], context); + if (output[_sGR] != null) { + contents[_SGRe] = de_AnalysisSecurityGroupRule(output[_sGR], context); } if (output.securityGroupSet === "") { - contents.SecurityGroups = []; - } else if (output["securityGroupSet"] !== undefined && output["securityGroupSet"]["item"] !== undefined) { - contents.SecurityGroups = de_AnalysisComponentList( - __getArrayIfSingleItem(output["securityGroupSet"]["item"]), - context - ); + contents[_SG] = []; + } else if (output[_sGS] != null && output[_sGS][_i] != null) { + contents[_SG] = de_AnalysisComponentList(__getArrayIfSingleItem(output[_sGS][_i]), context); } - if (output["sourceVpc"] !== undefined) { - contents.SourceVpc = de_AnalysisComponent(output["sourceVpc"], context); + if (output[_sV] != null) { + contents[_SVo] = de_AnalysisComponent(output[_sV], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["subnet"] !== undefined) { - contents.Subnet = de_AnalysisComponent(output["subnet"], context); + if (output[_su] != null) { + contents[_Su] = de_AnalysisComponent(output[_su], context); } - if (output["subnetRouteTable"] !== undefined) { - contents.SubnetRouteTable = de_AnalysisComponent(output["subnetRouteTable"], context); + if (output[_sRT] != null) { + contents[_SRT] = de_AnalysisComponent(output[_sRT], context); } - if (output["vpc"] !== undefined) { - contents.Vpc = de_AnalysisComponent(output["vpc"], context); + if (output[_vp] != null) { + contents[_Vp] = de_AnalysisComponent(output[_vp], context); } - if (output["vpcEndpoint"] !== undefined) { - contents.VpcEndpoint = de_AnalysisComponent(output["vpcEndpoint"], context); + if (output[_vE] != null) { + contents[_VE] = de_AnalysisComponent(output[_vE], context); } - if (output["vpnConnection"] !== undefined) { - contents.VpnConnection = de_AnalysisComponent(output["vpnConnection"], context); + if (output[_vC] != null) { + contents[_VC] = de_AnalysisComponent(output[_vC], context); } - if (output["vpnGateway"] !== undefined) { - contents.VpnGateway = de_AnalysisComponent(output["vpnGateway"], context); + if (output[_vG] != null) { + contents[_VG] = de_AnalysisComponent(output[_vG], context); } - if (output["transitGateway"] !== undefined) { - contents.TransitGateway = de_AnalysisComponent(output["transitGateway"], context); + if (output[_tG] != null) { + contents[_TGr] = de_AnalysisComponent(output[_tG], context); } - if (output["transitGatewayRouteTable"] !== undefined) { - contents.TransitGatewayRouteTable = de_AnalysisComponent(output["transitGatewayRouteTable"], context); + if (output[_tGRT] != null) { + contents[_TGRT] = de_AnalysisComponent(output[_tGRT], context); } - if (output["transitGatewayRouteTableRoute"] !== undefined) { - contents.TransitGatewayRouteTableRoute = de_TransitGatewayRouteTableRoute( - output["transitGatewayRouteTableRoute"], - context - ); + if (output[_tGRTR] != null) { + contents[_TGRTR] = de_TransitGatewayRouteTableRoute(output[_tGRTR], context); } - if (output["transitGatewayAttachment"] !== undefined) { - contents.TransitGatewayAttachment = de_AnalysisComponent(output["transitGatewayAttachment"], context); + if (output[_tGAr] != null) { + contents[_TGAra] = de_AnalysisComponent(output[_tGAr], context); } - if (output["componentAccount"] !== undefined) { - contents.ComponentAccount = __expectString(output["componentAccount"]); + if (output[_cAo] != null) { + contents[_CAom] = __expectString(output[_cAo]); } - if (output["componentRegion"] !== undefined) { - contents.ComponentRegion = __expectString(output["componentRegion"]); + if (output[_cRo] != null) { + contents[_CRo] = __expectString(output[_cRo]); } - if (output["firewallStatelessRule"] !== undefined) { - contents.FirewallStatelessRule = de_FirewallStatelessRule(output["firewallStatelessRule"], context); + if (output[_fSR] != null) { + contents[_FSRi] = de_FirewallStatelessRule(output[_fSR], context); } - if (output["firewallStatefulRule"] !== undefined) { - contents.FirewallStatefulRule = de_FirewallStatefulRule(output["firewallStatefulRule"], context); + if (output[_fSRi] != null) { + contents[_FSRir] = de_FirewallStatefulRule(output[_fSRi], context); } return contents; }; @@ -78372,11 +77600,11 @@ const de_ExportClientVpnClientCertificateRevocationListResult = ( context: __SerdeContext ): ExportClientVpnClientCertificateRevocationListResult => { const contents: any = {}; - if (output["certificateRevocationList"] !== undefined) { - contents.CertificateRevocationList = __expectString(output["certificateRevocationList"]); + if (output[_cRL] != null) { + contents[_CRL] = __expectString(output[_cRL]); } - if (output["status"] !== undefined) { - contents.Status = de_ClientCertificateRevocationListStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientCertificateRevocationListStatus(output[_sta], context); } return contents; }; @@ -78389,8 +77617,8 @@ const de_ExportClientVpnClientConfigurationResult = ( context: __SerdeContext ): ExportClientVpnClientConfigurationResult => { const contents: any = {}; - if (output["clientConfiguration"] !== undefined) { - contents.ClientConfiguration = __expectString(output["clientConfiguration"]); + if (output[_cCl] != null) { + contents[_CCl] = __expectString(output[_cCl]); } return contents; }; @@ -78400,37 +77628,37 @@ const de_ExportClientVpnClientConfigurationResult = ( */ const de_ExportImageResult = (output: any, context: __SerdeContext): ExportImageResult => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["diskImageFormat"] !== undefined) { - contents.DiskImageFormat = __expectString(output["diskImageFormat"]); + if (output[_dIF] != null) { + contents[_DIFi] = __expectString(output[_dIF]); } - if (output["exportImageTaskId"] !== undefined) { - contents.ExportImageTaskId = __expectString(output["exportImageTaskId"]); + if (output[_eITI] != null) { + contents[_EITIx] = __expectString(output[_eITI]); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["roleName"] !== undefined) { - contents.RoleName = __expectString(output["roleName"]); + if (output[_rNo] != null) { + contents[_RNo] = __expectString(output[_rNo]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["s3ExportLocation"] !== undefined) { - contents.S3ExportLocation = de_ExportTaskS3Location(output["s3ExportLocation"], context); + if (output[_sEL] != null) { + contents[_SEL] = de_ExportTaskS3Location(output[_sEL], context); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -78440,31 +77668,31 @@ const de_ExportImageResult = (output: any, context: __SerdeContext): ExportImage */ const de_ExportImageTask = (output: any, context: __SerdeContext): ExportImageTask => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["exportImageTaskId"] !== undefined) { - contents.ExportImageTaskId = __expectString(output["exportImageTaskId"]); + if (output[_eITI] != null) { + contents[_EITIx] = __expectString(output[_eITI]); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["s3ExportLocation"] !== undefined) { - contents.S3ExportLocation = de_ExportTaskS3Location(output["s3ExportLocation"], context); + if (output[_sEL] != null) { + contents[_SEL] = de_ExportTaskS3Location(output[_sEL], context); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -78485,28 +77713,28 @@ const de_ExportImageTaskList = (output: any, context: __SerdeContext): ExportIma */ const de_ExportTask = (output: any, context: __SerdeContext): ExportTask => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["exportTaskId"] !== undefined) { - contents.ExportTaskId = __expectString(output["exportTaskId"]); + if (output[_eTI] != null) { + contents[_ETI] = __expectString(output[_eTI]); } - if (output["exportToS3"] !== undefined) { - contents.ExportToS3Task = de_ExportToS3Task(output["exportToS3"], context); + if (output[_eTSx] != null) { + contents[_ETST] = de_ExportToS3Task(output[_eTSx], context); } - if (output["instanceExport"] !== undefined) { - contents.InstanceExportDetails = de_InstanceExportDetails(output["instanceExport"], context); + if (output[_iE] != null) { + contents[_IED] = de_InstanceExportDetails(output[_iE], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -78527,11 +77755,11 @@ const de_ExportTaskList = (output: any, context: __SerdeContext): ExportTask[] = */ const de_ExportTaskS3Location = (output: any, context: __SerdeContext): ExportTaskS3Location => { const contents: any = {}; - if (output["s3Bucket"] !== undefined) { - contents.S3Bucket = __expectString(output["s3Bucket"]); + if (output[_sB] != null) { + contents[_SB] = __expectString(output[_sB]); } - if (output["s3Prefix"] !== undefined) { - contents.S3Prefix = __expectString(output["s3Prefix"]); + if (output[_sP] != null) { + contents[_SP] = __expectString(output[_sP]); } return contents; }; @@ -78541,17 +77769,17 @@ const de_ExportTaskS3Location = (output: any, context: __SerdeContext): ExportTa */ const de_ExportToS3Task = (output: any, context: __SerdeContext): ExportToS3Task => { const contents: any = {}; - if (output["containerFormat"] !== undefined) { - contents.ContainerFormat = __expectString(output["containerFormat"]); + if (output[_cF] != null) { + contents[_CFo] = __expectString(output[_cF]); } - if (output["diskImageFormat"] !== undefined) { - contents.DiskImageFormat = __expectString(output["diskImageFormat"]); + if (output[_dIF] != null) { + contents[_DIFi] = __expectString(output[_dIF]); } - if (output["s3Bucket"] !== undefined) { - contents.S3Bucket = __expectString(output["s3Bucket"]); + if (output[_sB] != null) { + contents[_SB] = __expectString(output[_sB]); } - if (output["s3Key"] !== undefined) { - contents.S3Key = __expectString(output["s3Key"]); + if (output[_sK] != null) { + contents[_SK] = __expectString(output[_sK]); } return contents; }; @@ -78564,8 +77792,8 @@ const de_ExportTransitGatewayRoutesResult = ( context: __SerdeContext ): ExportTransitGatewayRoutesResult => { const contents: any = {}; - if (output["s3Location"] !== undefined) { - contents.S3Location = __expectString(output["s3Location"]); + if (output[_sL] != null) { + contents[_SLo] = __expectString(output[_sL]); } return contents; }; @@ -78578,14 +77806,11 @@ const de_FailedCapacityReservationFleetCancellationResult = ( context: __SerdeContext ): FailedCapacityReservationFleetCancellationResult => { const contents: any = {}; - if (output["capacityReservationFleetId"] !== undefined) { - contents.CapacityReservationFleetId = __expectString(output["capacityReservationFleetId"]); + if (output[_cRFI] != null) { + contents[_CRFIa] = __expectString(output[_cRFI]); } - if (output["cancelCapacityReservationFleetError"] !== undefined) { - contents.CancelCapacityReservationFleetError = de_CancelCapacityReservationFleetError( - output["cancelCapacityReservationFleetError"], - context - ); + if (output[_cCRFE] != null) { + contents[_CCRFE] = de_CancelCapacityReservationFleetError(output[_cCRFE], context); } return contents; }; @@ -78609,11 +77834,11 @@ const de_FailedCapacityReservationFleetCancellationResultSet = ( */ const de_FailedQueuedPurchaseDeletion = (output: any, context: __SerdeContext): FailedQueuedPurchaseDeletion => { const contents: any = {}; - if (output["error"] !== undefined) { - contents.Error = de_DeleteQueuedReservedInstancesError(output["error"], context); + if (output[_er] != null) { + contents[_Er] = de_DeleteQueuedReservedInstancesError(output[_er], context); } - if (output["reservedInstancesId"] !== undefined) { - contents.ReservedInstancesId = __expectString(output["reservedInstancesId"]); + if (output[_rII] != null) { + contents[_RIIe] = __expectString(output[_rII]); } return contents; }; @@ -78637,14 +77862,14 @@ const de_FastLaunchLaunchTemplateSpecificationResponse = ( context: __SerdeContext ): FastLaunchLaunchTemplateSpecificationResponse => { const contents: any = {}; - if (output["launchTemplateId"] !== undefined) { - contents.LaunchTemplateId = __expectString(output["launchTemplateId"]); + if (output[_lTI] != null) { + contents[_LTI] = __expectString(output[_lTI]); } - if (output["launchTemplateName"] !== undefined) { - contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); + if (output[_lTN] != null) { + contents[_LTN] = __expectString(output[_lTN]); } - if (output["version"] !== undefined) { - contents.Version = __expectString(output["version"]); + if (output[_ve] != null) { + contents[_V] = __expectString(output[_ve]); } return contents; }; @@ -78657,8 +77882,8 @@ const de_FastLaunchSnapshotConfigurationResponse = ( context: __SerdeContext ): FastLaunchSnapshotConfigurationResponse => { const contents: any = {}; - if (output["targetResourceCount"] !== undefined) { - contents.TargetResourceCount = __strictParseInt32(output["targetResourceCount"]) as number; + if (output[_tRC] != null) { + contents[_TRC] = __strictParseInt32(output[_tRC]) as number; } return contents; }; @@ -78668,11 +77893,11 @@ const de_FastLaunchSnapshotConfigurationResponse = ( */ const de_FederatedAuthentication = (output: any, context: __SerdeContext): FederatedAuthentication => { const contents: any = {}; - if (output["samlProviderArn"] !== undefined) { - contents.SamlProviderArn = __expectString(output["samlProviderArn"]); + if (output[_sPA] != null) { + contents[_SPA] = __expectString(output[_sPA]); } - if (output["selfServiceSamlProviderArn"] !== undefined) { - contents.SelfServiceSamlProviderArn = __expectString(output["selfServiceSamlProviderArn"]); + if (output[_sSSPA] != null) { + contents[_SSSPA] = __expectString(output[_sSSPA]); } return contents; }; @@ -78682,11 +77907,11 @@ const de_FederatedAuthentication = (output: any, context: __SerdeContext): Feder */ const de_FilterPortRange = (output: any, context: __SerdeContext): FilterPortRange => { const contents: any = {}; - if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt32(output["fromPort"]) as number; + if (output[_fP] != null) { + contents[_FP] = __strictParseInt32(output[_fP]) as number; } - if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt32(output["toPort"]) as number; + if (output[_tPo] != null) { + contents[_TP] = __strictParseInt32(output[_tPo]) as number; } return contents; }; @@ -78696,37 +77921,37 @@ const de_FilterPortRange = (output: any, context: __SerdeContext): FilterPortRan */ const de_FirewallStatefulRule = (output: any, context: __SerdeContext): FirewallStatefulRule => { const contents: any = {}; - if (output["ruleGroupArn"] !== undefined) { - contents.RuleGroupArn = __expectString(output["ruleGroupArn"]); + if (output[_rGA] != null) { + contents[_RGA] = __expectString(output[_rGA]); } if (output.sourceSet === "") { - contents.Sources = []; - } else if (output["sourceSet"] !== undefined && output["sourceSet"]["item"] !== undefined) { - contents.Sources = de_ValueStringList(__getArrayIfSingleItem(output["sourceSet"]["item"]), context); + contents[_So] = []; + } else if (output[_sSo] != null && output[_sSo][_i] != null) { + contents[_So] = de_ValueStringList(__getArrayIfSingleItem(output[_sSo][_i]), context); } if (output.destinationSet === "") { - contents.Destinations = []; - } else if (output["destinationSet"] !== undefined && output["destinationSet"]["item"] !== undefined) { - contents.Destinations = de_ValueStringList(__getArrayIfSingleItem(output["destinationSet"]["item"]), context); + contents[_Des] = []; + } else if (output[_dSe] != null && output[_dSe][_i] != null) { + contents[_Des] = de_ValueStringList(__getArrayIfSingleItem(output[_dSe][_i]), context); } if (output.sourcePortSet === "") { - contents.SourcePorts = []; - } else if (output["sourcePortSet"] !== undefined && output["sourcePortSet"]["item"] !== undefined) { - contents.SourcePorts = de_PortRangeList(__getArrayIfSingleItem(output["sourcePortSet"]["item"]), context); + contents[_SPo] = []; + } else if (output[_sPS] != null && output[_sPS][_i] != null) { + contents[_SPo] = de_PortRangeList(__getArrayIfSingleItem(output[_sPS][_i]), context); } if (output.destinationPortSet === "") { - contents.DestinationPorts = []; - } else if (output["destinationPortSet"] !== undefined && output["destinationPortSet"]["item"] !== undefined) { - contents.DestinationPorts = de_PortRangeList(__getArrayIfSingleItem(output["destinationPortSet"]["item"]), context); + contents[_DPe] = []; + } else if (output[_dPS] != null && output[_dPS][_i] != null) { + contents[_DPe] = de_PortRangeList(__getArrayIfSingleItem(output[_dPS][_i]), context); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } - if (output["ruleAction"] !== undefined) { - contents.RuleAction = __expectString(output["ruleAction"]); + if (output[_rA] != null) { + contents[_RAu] = __expectString(output[_rA]); } - if (output["direction"] !== undefined) { - contents.Direction = __expectString(output["direction"]); + if (output[_di] != null) { + contents[_Di] = __expectString(output[_di]); } return contents; }; @@ -78736,39 +77961,39 @@ const de_FirewallStatefulRule = (output: any, context: __SerdeContext): Firewall */ const de_FirewallStatelessRule = (output: any, context: __SerdeContext): FirewallStatelessRule => { const contents: any = {}; - if (output["ruleGroupArn"] !== undefined) { - contents.RuleGroupArn = __expectString(output["ruleGroupArn"]); + if (output[_rGA] != null) { + contents[_RGA] = __expectString(output[_rGA]); } if (output.sourceSet === "") { - contents.Sources = []; - } else if (output["sourceSet"] !== undefined && output["sourceSet"]["item"] !== undefined) { - contents.Sources = de_ValueStringList(__getArrayIfSingleItem(output["sourceSet"]["item"]), context); + contents[_So] = []; + } else if (output[_sSo] != null && output[_sSo][_i] != null) { + contents[_So] = de_ValueStringList(__getArrayIfSingleItem(output[_sSo][_i]), context); } if (output.destinationSet === "") { - contents.Destinations = []; - } else if (output["destinationSet"] !== undefined && output["destinationSet"]["item"] !== undefined) { - contents.Destinations = de_ValueStringList(__getArrayIfSingleItem(output["destinationSet"]["item"]), context); + contents[_Des] = []; + } else if (output[_dSe] != null && output[_dSe][_i] != null) { + contents[_Des] = de_ValueStringList(__getArrayIfSingleItem(output[_dSe][_i]), context); } if (output.sourcePortSet === "") { - contents.SourcePorts = []; - } else if (output["sourcePortSet"] !== undefined && output["sourcePortSet"]["item"] !== undefined) { - contents.SourcePorts = de_PortRangeList(__getArrayIfSingleItem(output["sourcePortSet"]["item"]), context); + contents[_SPo] = []; + } else if (output[_sPS] != null && output[_sPS][_i] != null) { + contents[_SPo] = de_PortRangeList(__getArrayIfSingleItem(output[_sPS][_i]), context); } if (output.destinationPortSet === "") { - contents.DestinationPorts = []; - } else if (output["destinationPortSet"] !== undefined && output["destinationPortSet"]["item"] !== undefined) { - contents.DestinationPorts = de_PortRangeList(__getArrayIfSingleItem(output["destinationPortSet"]["item"]), context); + contents[_DPe] = []; + } else if (output[_dPS] != null && output[_dPS][_i] != null) { + contents[_DPe] = de_PortRangeList(__getArrayIfSingleItem(output[_dPS][_i]), context); } if (output.protocolSet === "") { - contents.Protocols = []; - } else if (output["protocolSet"] !== undefined && output["protocolSet"]["item"] !== undefined) { - contents.Protocols = de_ProtocolIntList(__getArrayIfSingleItem(output["protocolSet"]["item"]), context); + contents[_Pro] = []; + } else if (output[_pSro] != null && output[_pSro][_i] != null) { + contents[_Pro] = de_ProtocolIntList(__getArrayIfSingleItem(output[_pSro][_i]), context); } - if (output["ruleAction"] !== undefined) { - contents.RuleAction = __expectString(output["ruleAction"]); + if (output[_rA] != null) { + contents[_RAu] = __expectString(output[_rA]); } - if (output["priority"] !== undefined) { - contents.Priority = __strictParseInt32(output["priority"]) as number; + if (output[_pri] != null) { + contents[_Pri] = __strictParseInt32(output[_pri]) as number; } return contents; }; @@ -78778,38 +78003,38 @@ const de_FirewallStatelessRule = (output: any, context: __SerdeContext): Firewal */ const de_FleetCapacityReservation = (output: any, context: __SerdeContext): FleetCapacityReservation => { const contents: any = {}; - if (output["capacityReservationId"] !== undefined) { - contents.CapacityReservationId = __expectString(output["capacityReservationId"]); + if (output[_cRI] != null) { + contents[_CRI] = __expectString(output[_cRI]); } - if (output["availabilityZoneId"] !== undefined) { - contents.AvailabilityZoneId = __expectString(output["availabilityZoneId"]); + if (output[_aZI] != null) { + contents[_AZI] = __expectString(output[_aZI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["instancePlatform"] !== undefined) { - contents.InstancePlatform = __expectString(output["instancePlatform"]); + if (output[_iPn] != null) { + contents[_IPn] = __expectString(output[_iPn]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["totalInstanceCount"] !== undefined) { - contents.TotalInstanceCount = __strictParseInt32(output["totalInstanceCount"]) as number; + if (output[_tIC] != null) { + contents[_TICo] = __strictParseInt32(output[_tIC]) as number; } - if (output["fulfilledCapacity"] !== undefined) { - contents.FulfilledCapacity = __strictParseFloat(output["fulfilledCapacity"]) as number; + if (output[_fC] != null) { + contents[_FC] = __strictParseFloat(output[_fC]) as number; } - if (output["ebsOptimized"] !== undefined) { - contents.EbsOptimized = __parseBoolean(output["ebsOptimized"]); + if (output[_eO] != null) { + contents[_EO] = __parseBoolean(output[_eO]); } - if (output["createDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createDate"])); + if (output[_cD] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cD])); } - if (output["weight"] !== undefined) { - contents.Weight = __strictParseFloat(output["weight"]) as number; + if (output[_we] != null) { + contents[_W] = __strictParseFloat(output[_we]) as number; } - if (output["priority"] !== undefined) { - contents.Priority = __strictParseInt32(output["priority"]) as number; + if (output[_pri] != null) { + contents[_Pri] = __strictParseInt32(output[_pri]) as number; } return contents; }; @@ -78830,85 +78055,76 @@ const de_FleetCapacityReservationSet = (output: any, context: __SerdeContext): F */ const de_FleetData = (output: any, context: __SerdeContext): FleetData => { const contents: any = {}; - if (output["activityStatus"] !== undefined) { - contents.ActivityStatus = __expectString(output["activityStatus"]); + if (output[_aSc] != null) { + contents[_ASc] = __expectString(output[_aSc]); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["fleetId"] !== undefined) { - contents.FleetId = __expectString(output["fleetId"]); + if (output[_fIl] != null) { + contents[_FIl] = __expectString(output[_fIl]); } - if (output["fleetState"] !== undefined) { - contents.FleetState = __expectString(output["fleetState"]); + if (output[_fSl] != null) { + contents[_FS] = __expectString(output[_fSl]); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["excessCapacityTerminationPolicy"] !== undefined) { - contents.ExcessCapacityTerminationPolicy = __expectString(output["excessCapacityTerminationPolicy"]); + if (output[_eCTP] != null) { + contents[_ECTP] = __expectString(output[_eCTP]); } - if (output["fulfilledCapacity"] !== undefined) { - contents.FulfilledCapacity = __strictParseFloat(output["fulfilledCapacity"]) as number; + if (output[_fC] != null) { + contents[_FC] = __strictParseFloat(output[_fC]) as number; } - if (output["fulfilledOnDemandCapacity"] !== undefined) { - contents.FulfilledOnDemandCapacity = __strictParseFloat(output["fulfilledOnDemandCapacity"]) as number; + if (output[_fODC] != null) { + contents[_FODC] = __strictParseFloat(output[_fODC]) as number; } if (output.launchTemplateConfigs === "") { - contents.LaunchTemplateConfigs = []; - } else if (output["launchTemplateConfigs"] !== undefined && output["launchTemplateConfigs"]["item"] !== undefined) { - contents.LaunchTemplateConfigs = de_FleetLaunchTemplateConfigList( - __getArrayIfSingleItem(output["launchTemplateConfigs"]["item"]), - context - ); + contents[_LTC] = []; + } else if (output[_lTC] != null && output[_lTC][_i] != null) { + contents[_LTC] = de_FleetLaunchTemplateConfigList(__getArrayIfSingleItem(output[_lTC][_i]), context); } - if (output["targetCapacitySpecification"] !== undefined) { - contents.TargetCapacitySpecification = de_TargetCapacitySpecification( - output["targetCapacitySpecification"], - context - ); + if (output[_tCS] != null) { + contents[_TCS] = de_TargetCapacitySpecification(output[_tCS], context); } - if (output["terminateInstancesWithExpiration"] !== undefined) { - contents.TerminateInstancesWithExpiration = __parseBoolean(output["terminateInstancesWithExpiration"]); + if (output[_tIWE] != null) { + contents[_TIWE] = __parseBoolean(output[_tIWE]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["validFrom"] !== undefined) { - contents.ValidFrom = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["validFrom"])); + if (output[_vF] != null) { + contents[_VF] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_vF])); } - if (output["validUntil"] !== undefined) { - contents.ValidUntil = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["validUntil"])); + if (output[_vU] != null) { + contents[_VU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_vU])); } - if (output["replaceUnhealthyInstances"] !== undefined) { - contents.ReplaceUnhealthyInstances = __parseBoolean(output["replaceUnhealthyInstances"]); + if (output[_rUI] != null) { + contents[_RUI] = __parseBoolean(output[_rUI]); } - if (output["spotOptions"] !== undefined) { - contents.SpotOptions = de_SpotOptions(output["spotOptions"], context); + if (output[_sO] != null) { + contents[_SO] = de_SpotOptions(output[_sO], context); } - if (output["onDemandOptions"] !== undefined) { - contents.OnDemandOptions = de_OnDemandOptions(output["onDemandOptions"], context); + if (output[_oDO] != null) { + contents[_ODO] = de_OnDemandOptions(output[_oDO], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } if (output.errorSet === "") { - contents.Errors = []; - } else if (output["errorSet"] !== undefined && output["errorSet"]["item"] !== undefined) { - contents.Errors = de_DescribeFleetsErrorSet(__getArrayIfSingleItem(output["errorSet"]["item"]), context); + contents[_Err] = []; + } else if (output[_eSr] != null && output[_eSr][_i] != null) { + contents[_Err] = de_DescribeFleetsErrorSet(__getArrayIfSingleItem(output[_eSr][_i]), context); } if (output.fleetInstanceSet === "") { - contents.Instances = []; - } else if (output["fleetInstanceSet"] !== undefined && output["fleetInstanceSet"]["item"] !== undefined) { - contents.Instances = de_DescribeFleetsInstancesSet( - __getArrayIfSingleItem(output["fleetInstanceSet"]["item"]), - context - ); + contents[_In] = []; + } else if (output[_fIS] != null && output[_fIS][_i] != null) { + contents[_In] = de_DescribeFleetsInstancesSet(__getArrayIfSingleItem(output[_fIS][_i]), context); } - if (output["context"] !== undefined) { - contents.Context = __expectString(output["context"]); + if (output[_cont] != null) { + contents[_Con] = __expectString(output[_cont]); } return contents; }; @@ -78918,19 +78134,13 @@ const de_FleetData = (output: any, context: __SerdeContext): FleetData => { */ const de_FleetLaunchTemplateConfig = (output: any, context: __SerdeContext): FleetLaunchTemplateConfig => { const contents: any = {}; - if (output["launchTemplateSpecification"] !== undefined) { - contents.LaunchTemplateSpecification = de_FleetLaunchTemplateSpecification( - output["launchTemplateSpecification"], - context - ); + if (output[_lTS] != null) { + contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context); } if (output.overrides === "") { - contents.Overrides = []; - } else if (output["overrides"] !== undefined && output["overrides"]["item"] !== undefined) { - contents.Overrides = de_FleetLaunchTemplateOverridesList( - __getArrayIfSingleItem(output["overrides"]["item"]), - context - ); + contents[_Ov] = []; + } else if (output[_ov] != null && output[_ov][_i] != null) { + contents[_Ov] = de_FleetLaunchTemplateOverridesList(__getArrayIfSingleItem(output[_ov][_i]), context); } return contents; }; @@ -78951,32 +78161,32 @@ const de_FleetLaunchTemplateConfigList = (output: any, context: __SerdeContext): */ const de_FleetLaunchTemplateOverrides = (output: any, context: __SerdeContext): FleetLaunchTemplateOverrides => { const contents: any = {}; - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["maxPrice"] !== undefined) { - contents.MaxPrice = __expectString(output["maxPrice"]); + if (output[_mP] != null) { + contents[_MPa] = __expectString(output[_mP]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["weightedCapacity"] !== undefined) { - contents.WeightedCapacity = __strictParseFloat(output["weightedCapacity"]) as number; + if (output[_wC] != null) { + contents[_WC] = __strictParseFloat(output[_wC]) as number; } - if (output["priority"] !== undefined) { - contents.Priority = __strictParseFloat(output["priority"]) as number; + if (output[_pri] != null) { + contents[_Pri] = __strictParseFloat(output[_pri]) as number; } - if (output["placement"] !== undefined) { - contents.Placement = de_PlacementResponse(output["placement"], context); + if (output[_pla] != null) { + contents[_Pl] = de_PlacementResponse(output[_pla], context); } - if (output["instanceRequirements"] !== undefined) { - contents.InstanceRequirements = de_InstanceRequirements(output["instanceRequirements"], context); + if (output[_iR] != null) { + contents[_IR] = de_InstanceRequirements(output[_iR], context); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } return contents; }; @@ -79000,14 +78210,14 @@ const de_FleetLaunchTemplateSpecification = ( context: __SerdeContext ): FleetLaunchTemplateSpecification => { const contents: any = {}; - if (output["launchTemplateId"] !== undefined) { - contents.LaunchTemplateId = __expectString(output["launchTemplateId"]); + if (output[_lTI] != null) { + contents[_LTI] = __expectString(output[_lTI]); } - if (output["launchTemplateName"] !== undefined) { - contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); + if (output[_lTN] != null) { + contents[_LTN] = __expectString(output[_lTN]); } - if (output["version"] !== undefined) { - contents.Version = __expectString(output["version"]); + if (output[_ve] != null) { + contents[_V] = __expectString(output[_ve]); } return contents; }; @@ -79028,11 +78238,11 @@ const de_FleetSet = (output: any, context: __SerdeContext): FleetData[] => { */ const de_FleetSpotCapacityRebalance = (output: any, context: __SerdeContext): FleetSpotCapacityRebalance => { const contents: any = {}; - if (output["replacementStrategy"] !== undefined) { - contents.ReplacementStrategy = __expectString(output["replacementStrategy"]); + if (output[_rSe] != null) { + contents[_RS] = __expectString(output[_rSe]); } - if (output["terminationDelay"] !== undefined) { - contents.TerminationDelay = __strictParseInt32(output["terminationDelay"]) as number; + if (output[_tD] != null) { + contents[_TDe] = __strictParseInt32(output[_tD]) as number; } return contents; }; @@ -79042,8 +78252,8 @@ const de_FleetSpotCapacityRebalance = (output: any, context: __SerdeContext): Fl */ const de_FleetSpotMaintenanceStrategies = (output: any, context: __SerdeContext): FleetSpotMaintenanceStrategies => { const contents: any = {}; - if (output["capacityRebalance"] !== undefined) { - contents.CapacityRebalance = de_FleetSpotCapacityRebalance(output["capacityRebalance"], context); + if (output[_cRa] != null) { + contents[_CRap] = de_FleetSpotCapacityRebalance(output[_cRa], context); } return contents; }; @@ -79053,55 +78263,55 @@ const de_FleetSpotMaintenanceStrategies = (output: any, context: __SerdeContext) */ const de_FlowLog = (output: any, context: __SerdeContext): FlowLog => { const contents: any = {}; - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output["deliverLogsErrorMessage"] !== undefined) { - contents.DeliverLogsErrorMessage = __expectString(output["deliverLogsErrorMessage"]); + if (output[_dLEM] != null) { + contents[_DLEM] = __expectString(output[_dLEM]); } - if (output["deliverLogsPermissionArn"] !== undefined) { - contents.DeliverLogsPermissionArn = __expectString(output["deliverLogsPermissionArn"]); + if (output[_dLPA] != null) { + contents[_DLPA] = __expectString(output[_dLPA]); } - if (output["deliverCrossAccountRole"] !== undefined) { - contents.DeliverCrossAccountRole = __expectString(output["deliverCrossAccountRole"]); + if (output[_dCAR] != null) { + contents[_DCAR] = __expectString(output[_dCAR]); } - if (output["deliverLogsStatus"] !== undefined) { - contents.DeliverLogsStatus = __expectString(output["deliverLogsStatus"]); + if (output[_dLS] != null) { + contents[_DLSe] = __expectString(output[_dLS]); } - if (output["flowLogId"] !== undefined) { - contents.FlowLogId = __expectString(output["flowLogId"]); + if (output[_fLI] != null) { + contents[_FLIl] = __expectString(output[_fLI]); } - if (output["flowLogStatus"] !== undefined) { - contents.FlowLogStatus = __expectString(output["flowLogStatus"]); + if (output[_fLSl] != null) { + contents[_FLS] = __expectString(output[_fLSl]); } - if (output["logGroupName"] !== undefined) { - contents.LogGroupName = __expectString(output["logGroupName"]); + if (output[_lGN] != null) { + contents[_LGN] = __expectString(output[_lGN]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["trafficType"] !== undefined) { - contents.TrafficType = __expectString(output["trafficType"]); + if (output[_tT] != null) { + contents[_TT] = __expectString(output[_tT]); } - if (output["logDestinationType"] !== undefined) { - contents.LogDestinationType = __expectString(output["logDestinationType"]); + if (output[_lDT] != null) { + contents[_LDT] = __expectString(output[_lDT]); } - if (output["logDestination"] !== undefined) { - contents.LogDestination = __expectString(output["logDestination"]); + if (output[_lD] != null) { + contents[_LD] = __expectString(output[_lD]); } - if (output["logFormat"] !== undefined) { - contents.LogFormat = __expectString(output["logFormat"]); + if (output[_lF] != null) { + contents[_LF] = __expectString(output[_lF]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["maxAggregationInterval"] !== undefined) { - contents.MaxAggregationInterval = __strictParseInt32(output["maxAggregationInterval"]) as number; + if (output[_mAI] != null) { + contents[_MAI] = __strictParseInt32(output[_mAI]) as number; } - if (output["destinationOptions"] !== undefined) { - contents.DestinationOptions = de_DestinationOptionsResponse(output["destinationOptions"], context); + if (output[_dOe] != null) { + contents[_DO] = de_DestinationOptionsResponse(output[_dOe], context); } return contents; }; @@ -79122,17 +78332,17 @@ const de_FlowLogSet = (output: any, context: __SerdeContext): FlowLog[] => { */ const de_FpgaDeviceInfo = (output: any, context: __SerdeContext): FpgaDeviceInfo => { const contents: any = {}; - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["manufacturer"] !== undefined) { - contents.Manufacturer = __expectString(output["manufacturer"]); + if (output[_man] != null) { + contents[_Man] = __expectString(output[_man]); } - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } - if (output["memoryInfo"] !== undefined) { - contents.MemoryInfo = de_FpgaDeviceMemoryInfo(output["memoryInfo"], context); + if (output[_mIe] != null) { + contents[_MIe] = de_FpgaDeviceMemoryInfo(output[_mIe], context); } return contents; }; @@ -79153,8 +78363,8 @@ const de_FpgaDeviceInfoList = (output: any, context: __SerdeContext): FpgaDevice */ const de_FpgaDeviceMemoryInfo = (output: any, context: __SerdeContext): FpgaDeviceMemoryInfo => { const contents: any = {}; - if (output["sizeInMiB"] !== undefined) { - contents.SizeInMiB = __strictParseInt32(output["sizeInMiB"]) as number; + if (output[_sIMB] != null) { + contents[_SIMB] = __strictParseInt32(output[_sIMB]) as number; } return contents; }; @@ -79164,59 +78374,59 @@ const de_FpgaDeviceMemoryInfo = (output: any, context: __SerdeContext): FpgaDevi */ const de_FpgaImage = (output: any, context: __SerdeContext): FpgaImage => { const contents: any = {}; - if (output["fpgaImageId"] !== undefined) { - contents.FpgaImageId = __expectString(output["fpgaImageId"]); + if (output[_fII] != null) { + contents[_FII] = __expectString(output[_fII]); } - if (output["fpgaImageGlobalId"] !== undefined) { - contents.FpgaImageGlobalId = __expectString(output["fpgaImageGlobalId"]); + if (output[_fIGI] != null) { + contents[_FIGI] = __expectString(output[_fIGI]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["shellVersion"] !== undefined) { - contents.ShellVersion = __expectString(output["shellVersion"]); + if (output[_sVh] != null) { + contents[_SVh] = __expectString(output[_sVh]); } - if (output["pciId"] !== undefined) { - contents.PciId = de_PciId(output["pciId"], context); + if (output[_pIc] != null) { + contents[_PIc] = de_PciId(output[_pIc], context); } - if (output["state"] !== undefined) { - contents.State = de_FpgaImageState(output["state"], context); + if (output[_st] != null) { + contents[_Stat] = de_FpgaImageState(output[_st], context); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["updateTime"] !== undefined) { - contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["updateTime"])); + if (output[_uT] != null) { + contents[_UTp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uT])); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ownerAlias"] !== undefined) { - contents.OwnerAlias = __expectString(output["ownerAlias"]); + if (output[_oAw] != null) { + contents[_OAw] = __expectString(output[_oAw]); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } if (output.tags === "") { - contents.Tags = []; - } else if (output["tags"] !== undefined && output["tags"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tags"]["item"]), context); + contents[_Ta] = []; + } else if (output[_ta] != null && output[_ta][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_ta][_i]), context); } - if (output["public"] !== undefined) { - contents.Public = __parseBoolean(output["public"]); + if (output[_pu] != null) { + contents[_Pu] = __parseBoolean(output[_pu]); } - if (output["dataRetentionSupport"] !== undefined) { - contents.DataRetentionSupport = __parseBoolean(output["dataRetentionSupport"]); + if (output[_dRS] != null) { + contents[_DRS] = __parseBoolean(output[_dRS]); } if (output.instanceTypes === "") { - contents.InstanceTypes = []; - } else if (output["instanceTypes"] !== undefined && output["instanceTypes"]["item"] !== undefined) { - contents.InstanceTypes = de_InstanceTypesList(__getArrayIfSingleItem(output["instanceTypes"]["item"]), context); + contents[_ITnst] = []; + } else if (output[_iTn] != null && output[_iTn][_i] != null) { + contents[_ITnst] = de_InstanceTypesList(__getArrayIfSingleItem(output[_iTn][_i]), context); } return contents; }; @@ -79226,27 +78436,24 @@ const de_FpgaImage = (output: any, context: __SerdeContext): FpgaImage => { */ const de_FpgaImageAttribute = (output: any, context: __SerdeContext): FpgaImageAttribute => { const contents: any = {}; - if (output["fpgaImageId"] !== undefined) { - contents.FpgaImageId = __expectString(output["fpgaImageId"]); + if (output[_fII] != null) { + contents[_FII] = __expectString(output[_fII]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.loadPermissions === "") { - contents.LoadPermissions = []; - } else if (output["loadPermissions"] !== undefined && output["loadPermissions"]["item"] !== undefined) { - contents.LoadPermissions = de_LoadPermissionList( - __getArrayIfSingleItem(output["loadPermissions"]["item"]), - context - ); + contents[_LPo] = []; + } else if (output[_lP] != null && output[_lP][_i] != null) { + contents[_LPo] = de_LoadPermissionList(__getArrayIfSingleItem(output[_lP][_i]), context); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } return contents; }; @@ -79267,11 +78474,11 @@ const de_FpgaImageList = (output: any, context: __SerdeContext): FpgaImage[] => */ const de_FpgaImageState = (output: any, context: __SerdeContext): FpgaImageState => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -79282,12 +78489,12 @@ const de_FpgaImageState = (output: any, context: __SerdeContext): FpgaImageState const de_FpgaInfo = (output: any, context: __SerdeContext): FpgaInfo => { const contents: any = {}; if (output.fpgas === "") { - contents.Fpgas = []; - } else if (output["fpgas"] !== undefined && output["fpgas"]["item"] !== undefined) { - contents.Fpgas = de_FpgaDeviceInfoList(__getArrayIfSingleItem(output["fpgas"]["item"]), context); + contents[_Fp] = []; + } else if (output[_fp] != null && output[_fp][_i] != null) { + contents[_Fp] = de_FpgaDeviceInfoList(__getArrayIfSingleItem(output[_fp][_i]), context); } - if (output["totalFpgaMemoryInMiB"] !== undefined) { - contents.TotalFpgaMemoryInMiB = __strictParseInt32(output["totalFpgaMemoryInMiB"]) as number; + if (output[_tFMIMB] != null) { + contents[_TFMIMB] = __strictParseInt32(output[_tFMIMB]) as number; } return contents; }; @@ -79301,12 +78508,9 @@ const de_GetAssociatedEnclaveCertificateIamRolesResult = ( ): GetAssociatedEnclaveCertificateIamRolesResult => { const contents: any = {}; if (output.associatedRoleSet === "") { - contents.AssociatedRoles = []; - } else if (output["associatedRoleSet"] !== undefined && output["associatedRoleSet"]["item"] !== undefined) { - contents.AssociatedRoles = de_AssociatedRolesList( - __getArrayIfSingleItem(output["associatedRoleSet"]["item"]), - context - ); + contents[_ARs] = []; + } else if (output[_aRS] != null && output[_aRS][_i] != null) { + contents[_ARs] = de_AssociatedRolesList(__getArrayIfSingleItem(output[_aRS][_i]), context); } return contents; }; @@ -79320,15 +78524,12 @@ const de_GetAssociatedIpv6PoolCidrsResult = ( ): GetAssociatedIpv6PoolCidrsResult => { const contents: any = {}; if (output.ipv6CidrAssociationSet === "") { - contents.Ipv6CidrAssociations = []; - } else if (output["ipv6CidrAssociationSet"] !== undefined && output["ipv6CidrAssociationSet"]["item"] !== undefined) { - contents.Ipv6CidrAssociations = de_Ipv6CidrAssociationSet( - __getArrayIfSingleItem(output["ipv6CidrAssociationSet"]["item"]), - context - ); + contents[_ICA] = []; + } else if (output[_iCAS] != null && output[_iCAS][_i] != null) { + contents[_ICA] = de_Ipv6CidrAssociationSet(__getArrayIfSingleItem(output[_iCAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79342,12 +78543,12 @@ const de_GetAwsNetworkPerformanceDataResult = ( ): GetAwsNetworkPerformanceDataResult => { const contents: any = {}; if (output.dataResponseSet === "") { - contents.DataResponses = []; - } else if (output["dataResponseSet"] !== undefined && output["dataResponseSet"]["item"] !== undefined) { - contents.DataResponses = de_DataResponses(__getArrayIfSingleItem(output["dataResponseSet"]["item"]), context); + contents[_DRa] = []; + } else if (output[_dRSa] != null && output[_dRSa][_i] != null) { + contents[_DRa] = de_DataResponses(__getArrayIfSingleItem(output[_dRSa][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79360,28 +78561,28 @@ const de_GetCapacityReservationUsageResult = ( context: __SerdeContext ): GetCapacityReservationUsageResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } - if (output["capacityReservationId"] !== undefined) { - contents.CapacityReservationId = __expectString(output["capacityReservationId"]); + if (output[_cRI] != null) { + contents[_CRI] = __expectString(output[_cRI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["totalInstanceCount"] !== undefined) { - contents.TotalInstanceCount = __strictParseInt32(output["totalInstanceCount"]) as number; + if (output[_tIC] != null) { + contents[_TICo] = __strictParseInt32(output[_tIC]) as number; } - if (output["availableInstanceCount"] !== undefined) { - contents.AvailableInstanceCount = __strictParseInt32(output["availableInstanceCount"]) as number; + if (output[_aICv] != null) { + contents[_AICv] = __strictParseInt32(output[_aICv]) as number; } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.instanceUsageSet === "") { - contents.InstanceUsages = []; - } else if (output["instanceUsageSet"] !== undefined && output["instanceUsageSet"]["item"] !== undefined) { - contents.InstanceUsages = de_InstanceUsageSet(__getArrayIfSingleItem(output["instanceUsageSet"]["item"]), context); + contents[_IU] = []; + } else if (output[_iUS] != null && output[_iUS][_i] != null) { + contents[_IU] = de_InstanceUsageSet(__getArrayIfSingleItem(output[_iUS][_i]), context); } return contents; }; @@ -79391,22 +78592,19 @@ const de_GetCapacityReservationUsageResult = ( */ const de_GetCoipPoolUsageResult = (output: any, context: __SerdeContext): GetCoipPoolUsageResult => { const contents: any = {}; - if (output["coipPoolId"] !== undefined) { - contents.CoipPoolId = __expectString(output["coipPoolId"]); + if (output[_cPI] != null) { + contents[_CPIo] = __expectString(output[_cPI]); } if (output.coipAddressUsageSet === "") { - contents.CoipAddressUsages = []; - } else if (output["coipAddressUsageSet"] !== undefined && output["coipAddressUsageSet"]["item"] !== undefined) { - contents.CoipAddressUsages = de_CoipAddressUsageSet( - __getArrayIfSingleItem(output["coipAddressUsageSet"]["item"]), - context - ); + contents[_CAU] = []; + } else if (output[_cAUS] != null && output[_cAUS][_i] != null) { + contents[_CAU] = de_CoipAddressUsageSet(__getArrayIfSingleItem(output[_cAUS][_i]), context); } - if (output["localGatewayRouteTableId"] !== undefined) { - contents.LocalGatewayRouteTableId = __expectString(output["localGatewayRouteTableId"]); + if (output[_lGRTI] != null) { + contents[_LGRTI] = __expectString(output[_lGRTI]); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79416,14 +78614,14 @@ const de_GetCoipPoolUsageResult = (output: any, context: __SerdeContext): GetCoi */ const de_GetConsoleOutputResult = (output: any, context: __SerdeContext): GetConsoleOutputResult => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["output"] !== undefined) { - contents.Output = __expectString(output["output"]); + if (output[_ou] != null) { + contents[_Ou] = __expectString(output[_ou]); } - if (output["timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["timestamp"])); + if (output[_ti] != null) { + contents[_Tim] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ti])); } return contents; }; @@ -79433,11 +78631,11 @@ const de_GetConsoleOutputResult = (output: any, context: __SerdeContext): GetCon */ const de_GetConsoleScreenshotResult = (output: any, context: __SerdeContext): GetConsoleScreenshotResult => { const contents: any = {}; - if (output["imageData"] !== undefined) { - contents.ImageData = __expectString(output["imageData"]); + if (output[_iD] != null) { + contents[_IDm] = __expectString(output[_iD]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } return contents; }; @@ -79450,11 +78648,8 @@ const de_GetDefaultCreditSpecificationResult = ( context: __SerdeContext ): GetDefaultCreditSpecificationResult => { const contents: any = {}; - if (output["instanceFamilyCreditSpecification"] !== undefined) { - contents.InstanceFamilyCreditSpecification = de_InstanceFamilyCreditSpecification( - output["instanceFamilyCreditSpecification"], - context - ); + if (output[_iFCS] != null) { + contents[_IFCS] = de_InstanceFamilyCreditSpecification(output[_iFCS], context); } return contents; }; @@ -79464,8 +78659,8 @@ const de_GetDefaultCreditSpecificationResult = ( */ const de_GetEbsDefaultKmsKeyIdResult = (output: any, context: __SerdeContext): GetEbsDefaultKmsKeyIdResult => { const contents: any = {}; - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } return contents; }; @@ -79475,11 +78670,11 @@ const de_GetEbsDefaultKmsKeyIdResult = (output: any, context: __SerdeContext): G */ const de_GetEbsEncryptionByDefaultResult = (output: any, context: __SerdeContext): GetEbsEncryptionByDefaultResult => { const contents: any = {}; - if (output["ebsEncryptionByDefault"] !== undefined) { - contents.EbsEncryptionByDefault = __parseBoolean(output["ebsEncryptionByDefault"]); + if (output[_eEBD] != null) { + contents[_EEBD] = __parseBoolean(output[_eEBD]); } - if (output["sseType"] !== undefined) { - contents.SseType = __expectString(output["sseType"]); + if (output[_sTs] != null) { + contents[_STs] = __expectString(output[_sTs]); } return contents; }; @@ -79492,8 +78687,8 @@ const de_GetFlowLogsIntegrationTemplateResult = ( context: __SerdeContext ): GetFlowLogsIntegrationTemplateResult => { const contents: any = {}; - if (output["result"] !== undefined) { - contents.Result = __expectString(output["result"]); + if (output[_re] != null) { + contents[_Resu] = __expectString(output[_re]); } return contents; }; @@ -79506,19 +78701,13 @@ const de_GetGroupsForCapacityReservationResult = ( context: __SerdeContext ): GetGroupsForCapacityReservationResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.capacityReservationGroupSet === "") { - contents.CapacityReservationGroups = []; - } else if ( - output["capacityReservationGroupSet"] !== undefined && - output["capacityReservationGroupSet"]["item"] !== undefined - ) { - contents.CapacityReservationGroups = de_CapacityReservationGroupSet( - __getArrayIfSingleItem(output["capacityReservationGroupSet"]["item"]), - context - ); + contents[_CRG] = []; + } else if (output[_cRGS] != null && output[_cRGS][_i] != null) { + contents[_CRG] = de_CapacityReservationGroupSet(__getArrayIfSingleItem(output[_cRGS][_i]), context); } return contents; }; @@ -79531,19 +78720,19 @@ const de_GetHostReservationPurchasePreviewResult = ( context: __SerdeContext ): GetHostReservationPurchasePreviewResult => { const contents: any = {}; - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } if (output.purchase === "") { - contents.Purchase = []; - } else if (output["purchase"] !== undefined && output["purchase"]["item"] !== undefined) { - contents.Purchase = de_PurchaseSet(__getArrayIfSingleItem(output["purchase"]["item"]), context); + contents[_Pur] = []; + } else if (output[_pur] != null && output[_pur][_i] != null) { + contents[_Pur] = de_PurchaseSet(__getArrayIfSingleItem(output[_pur][_i]), context); } - if (output["totalHourlyPrice"] !== undefined) { - contents.TotalHourlyPrice = __expectString(output["totalHourlyPrice"]); + if (output[_tHP] != null) { + contents[_THP] = __expectString(output[_tHP]); } - if (output["totalUpfrontPrice"] !== undefined) { - contents.TotalUpfrontPrice = __expectString(output["totalUpfrontPrice"]); + if (output[_tUP] != null) { + contents[_TUP] = __expectString(output[_tUP]); } return contents; }; @@ -79556,8 +78745,8 @@ const de_GetImageBlockPublicAccessStateResult = ( context: __SerdeContext ): GetImageBlockPublicAccessStateResult => { const contents: any = {}; - if (output["imageBlockPublicAccessState"] !== undefined) { - contents.ImageBlockPublicAccessState = __expectString(output["imageBlockPublicAccessState"]); + if (output[_iBPAS] != null) { + contents[_IBPAS] = __expectString(output[_iBPAS]); } return contents; }; @@ -79571,15 +78760,15 @@ const de_GetInstanceTypesFromInstanceRequirementsResult = ( ): GetInstanceTypesFromInstanceRequirementsResult => { const contents: any = {}; if (output.instanceTypeSet === "") { - contents.InstanceTypes = []; - } else if (output["instanceTypeSet"] !== undefined && output["instanceTypeSet"]["item"] !== undefined) { - contents.InstanceTypes = de_InstanceTypeInfoFromInstanceRequirementsSet( - __getArrayIfSingleItem(output["instanceTypeSet"]["item"]), + contents[_ITnst] = []; + } else if (output[_iTS] != null && output[_iTS][_i] != null) { + contents[_ITnst] = de_InstanceTypeInfoFromInstanceRequirementsSet( + __getArrayIfSingleItem(output[_iTS][_i]), context ); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79589,11 +78778,11 @@ const de_GetInstanceTypesFromInstanceRequirementsResult = ( */ const de_GetInstanceUefiDataResult = (output: any, context: __SerdeContext): GetInstanceUefiDataResult => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["uefiData"] !== undefined) { - contents.UefiData = __expectString(output["uefiData"]); + if (output[_uD] != null) { + contents[_UDe] = __expectString(output[_uD]); } return contents; }; @@ -79604,15 +78793,12 @@ const de_GetInstanceUefiDataResult = (output: any, context: __SerdeContext): Get const de_GetIpamAddressHistoryResult = (output: any, context: __SerdeContext): GetIpamAddressHistoryResult => { const contents: any = {}; if (output.historyRecordSet === "") { - contents.HistoryRecords = []; - } else if (output["historyRecordSet"] !== undefined && output["historyRecordSet"]["item"] !== undefined) { - contents.HistoryRecords = de_IpamAddressHistoryRecordSet( - __getArrayIfSingleItem(output["historyRecordSet"]["item"]), - context - ); + contents[_HRi] = []; + } else if (output[_hRS] != null && output[_hRS][_i] != null) { + contents[_HRi] = de_IpamAddressHistoryRecordSet(__getArrayIfSingleItem(output[_hRS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79623,18 +78809,12 @@ const de_GetIpamAddressHistoryResult = (output: any, context: __SerdeContext): G const de_GetIpamDiscoveredAccountsResult = (output: any, context: __SerdeContext): GetIpamDiscoveredAccountsResult => { const contents: any = {}; if (output.ipamDiscoveredAccountSet === "") { - contents.IpamDiscoveredAccounts = []; - } else if ( - output["ipamDiscoveredAccountSet"] !== undefined && - output["ipamDiscoveredAccountSet"]["item"] !== undefined - ) { - contents.IpamDiscoveredAccounts = de_IpamDiscoveredAccountSet( - __getArrayIfSingleItem(output["ipamDiscoveredAccountSet"]["item"]), - context - ); + contents[_IDA] = []; + } else if (output[_iDAS] != null && output[_iDAS][_i] != null) { + contents[_IDA] = de_IpamDiscoveredAccountSet(__getArrayIfSingleItem(output[_iDAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79648,21 +78828,15 @@ const de_GetIpamDiscoveredPublicAddressesResult = ( ): GetIpamDiscoveredPublicAddressesResult => { const contents: any = {}; if (output.ipamDiscoveredPublicAddressSet === "") { - contents.IpamDiscoveredPublicAddresses = []; - } else if ( - output["ipamDiscoveredPublicAddressSet"] !== undefined && - output["ipamDiscoveredPublicAddressSet"]["item"] !== undefined - ) { - contents.IpamDiscoveredPublicAddresses = de_IpamDiscoveredPublicAddressSet( - __getArrayIfSingleItem(output["ipamDiscoveredPublicAddressSet"]["item"]), - context - ); + contents[_IDPA] = []; + } else if (output[_iDPAS] != null && output[_iDPAS][_i] != null) { + contents[_IDPA] = de_IpamDiscoveredPublicAddressSet(__getArrayIfSingleItem(output[_iDPAS][_i]), context); } - if (output["oldestSampleTime"] !== undefined) { - contents.OldestSampleTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["oldestSampleTime"])); + if (output[_oST] != null) { + contents[_OST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_oST])); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79676,18 +78850,12 @@ const de_GetIpamDiscoveredResourceCidrsResult = ( ): GetIpamDiscoveredResourceCidrsResult => { const contents: any = {}; if (output.ipamDiscoveredResourceCidrSet === "") { - contents.IpamDiscoveredResourceCidrs = []; - } else if ( - output["ipamDiscoveredResourceCidrSet"] !== undefined && - output["ipamDiscoveredResourceCidrSet"]["item"] !== undefined - ) { - contents.IpamDiscoveredResourceCidrs = de_IpamDiscoveredResourceCidrSet( - __getArrayIfSingleItem(output["ipamDiscoveredResourceCidrSet"]["item"]), - context - ); + contents[_IDRC] = []; + } else if (output[_iDRCS] != null && output[_iDRCS][_i] != null) { + contents[_IDRC] = de_IpamDiscoveredResourceCidrSet(__getArrayIfSingleItem(output[_iDRCS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79698,15 +78866,12 @@ const de_GetIpamDiscoveredResourceCidrsResult = ( const de_GetIpamPoolAllocationsResult = (output: any, context: __SerdeContext): GetIpamPoolAllocationsResult => { const contents: any = {}; if (output.ipamPoolAllocationSet === "") { - contents.IpamPoolAllocations = []; - } else if (output["ipamPoolAllocationSet"] !== undefined && output["ipamPoolAllocationSet"]["item"] !== undefined) { - contents.IpamPoolAllocations = de_IpamPoolAllocationSet( - __getArrayIfSingleItem(output["ipamPoolAllocationSet"]["item"]), - context - ); + contents[_IPAp] = []; + } else if (output[_iPAS] != null && output[_iPAS][_i] != null) { + contents[_IPAp] = de_IpamPoolAllocationSet(__getArrayIfSingleItem(output[_iPAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79717,12 +78882,12 @@ const de_GetIpamPoolAllocationsResult = (output: any, context: __SerdeContext): const de_GetIpamPoolCidrsResult = (output: any, context: __SerdeContext): GetIpamPoolCidrsResult => { const contents: any = {}; if (output.ipamPoolCidrSet === "") { - contents.IpamPoolCidrs = []; - } else if (output["ipamPoolCidrSet"] !== undefined && output["ipamPoolCidrSet"]["item"] !== undefined) { - contents.IpamPoolCidrs = de_IpamPoolCidrSet(__getArrayIfSingleItem(output["ipamPoolCidrSet"]["item"]), context); + contents[_IPCpam] = []; + } else if (output[_iPCS] != null && output[_iPCS][_i] != null) { + contents[_IPCpam] = de_IpamPoolCidrSet(__getArrayIfSingleItem(output[_iPCS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79732,16 +78897,13 @@ const de_GetIpamPoolCidrsResult = (output: any, context: __SerdeContext): GetIpa */ const de_GetIpamResourceCidrsResult = (output: any, context: __SerdeContext): GetIpamResourceCidrsResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.ipamResourceCidrSet === "") { - contents.IpamResourceCidrs = []; - } else if (output["ipamResourceCidrSet"] !== undefined && output["ipamResourceCidrSet"]["item"] !== undefined) { - contents.IpamResourceCidrs = de_IpamResourceCidrSet( - __getArrayIfSingleItem(output["ipamResourceCidrSet"]["item"]), - context - ); + contents[_IRC] = []; + } else if (output[_iRCS] != null && output[_iRCS][_i] != null) { + contents[_IRC] = de_IpamResourceCidrSet(__getArrayIfSingleItem(output[_iRCS][_i]), context); } return contents; }; @@ -79751,8 +78913,8 @@ const de_GetIpamResourceCidrsResult = (output: any, context: __SerdeContext): Ge */ const de_GetLaunchTemplateDataResult = (output: any, context: __SerdeContext): GetLaunchTemplateDataResult => { const contents: any = {}; - if (output["launchTemplateData"] !== undefined) { - contents.LaunchTemplateData = de_ResponseLaunchTemplateData(output["launchTemplateData"], context); + if (output[_lTD] != null) { + contents[_LTD] = de_ResponseLaunchTemplateData(output[_lTD], context); } return contents; }; @@ -79766,18 +78928,12 @@ const de_GetManagedPrefixListAssociationsResult = ( ): GetManagedPrefixListAssociationsResult => { const contents: any = {}; if (output.prefixListAssociationSet === "") { - contents.PrefixListAssociations = []; - } else if ( - output["prefixListAssociationSet"] !== undefined && - output["prefixListAssociationSet"]["item"] !== undefined - ) { - contents.PrefixListAssociations = de_PrefixListAssociationSet( - __getArrayIfSingleItem(output["prefixListAssociationSet"]["item"]), - context - ); + contents[_PLA] = []; + } else if (output[_pLAS] != null && output[_pLAS][_i] != null) { + contents[_PLA] = de_PrefixListAssociationSet(__getArrayIfSingleItem(output[_pLAS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79791,12 +78947,12 @@ const de_GetManagedPrefixListEntriesResult = ( ): GetManagedPrefixListEntriesResult => { const contents: any = {}; if (output.entrySet === "") { - contents.Entries = []; - } else if (output["entrySet"] !== undefined && output["entrySet"]["item"] !== undefined) { - contents.Entries = de_PrefixListEntrySet(__getArrayIfSingleItem(output["entrySet"]["item"]), context); + contents[_Ent] = []; + } else if (output[_eSnt] != null && output[_eSnt][_i] != null) { + contents[_Ent] = de_PrefixListEntrySet(__getArrayIfSingleItem(output[_eSnt][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79809,22 +78965,19 @@ const de_GetNetworkInsightsAccessScopeAnalysisFindingsResult = ( context: __SerdeContext ): GetNetworkInsightsAccessScopeAnalysisFindingsResult => { const contents: any = {}; - if (output["networkInsightsAccessScopeAnalysisId"] !== undefined) { - contents.NetworkInsightsAccessScopeAnalysisId = __expectString(output["networkInsightsAccessScopeAnalysisId"]); + if (output[_nIASAI] != null) { + contents[_NIASAI] = __expectString(output[_nIASAI]); } - if (output["analysisStatus"] !== undefined) { - contents.AnalysisStatus = __expectString(output["analysisStatus"]); + if (output[_aSn] != null) { + contents[_ASn] = __expectString(output[_aSn]); } if (output.analysisFindingSet === "") { - contents.AnalysisFindings = []; - } else if (output["analysisFindingSet"] !== undefined && output["analysisFindingSet"]["item"] !== undefined) { - contents.AnalysisFindings = de_AccessScopeAnalysisFindingList( - __getArrayIfSingleItem(output["analysisFindingSet"]["item"]), - context - ); + contents[_AFn] = []; + } else if (output[_aFS] != null && output[_aFS][_i] != null) { + contents[_AFn] = de_AccessScopeAnalysisFindingList(__getArrayIfSingleItem(output[_aFS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79837,11 +78990,8 @@ const de_GetNetworkInsightsAccessScopeContentResult = ( context: __SerdeContext ): GetNetworkInsightsAccessScopeContentResult => { const contents: any = {}; - if (output["networkInsightsAccessScopeContent"] !== undefined) { - contents.NetworkInsightsAccessScopeContent = de_NetworkInsightsAccessScopeContent( - output["networkInsightsAccessScopeContent"], - context - ); + if (output[_nIASC] != null) { + contents[_NIASC] = de_NetworkInsightsAccessScopeContent(output[_nIASC], context); } return contents; }; @@ -79851,14 +79001,14 @@ const de_GetNetworkInsightsAccessScopeContentResult = ( */ const de_GetPasswordDataResult = (output: any, context: __SerdeContext): GetPasswordDataResult => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["passwordData"] !== undefined) { - contents.PasswordData = __expectString(output["passwordData"]); + if (output[_pD] != null) { + contents[_PDa] = __expectString(output[_pD]); } - if (output["timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["timestamp"])); + if (output[_ti] != null) { + contents[_Tim] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ti])); } return contents; }; @@ -79871,50 +79021,36 @@ const de_GetReservedInstancesExchangeQuoteResult = ( context: __SerdeContext ): GetReservedInstancesExchangeQuoteResult => { const contents: any = {}; - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["isValidExchange"] !== undefined) { - contents.IsValidExchange = __parseBoolean(output["isValidExchange"]); + if (output[_iVE] != null) { + contents[_IVE] = __parseBoolean(output[_iVE]); } - if (output["outputReservedInstancesWillExpireAt"] !== undefined) { - contents.OutputReservedInstancesWillExpireAt = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["outputReservedInstancesWillExpireAt"]) - ); + if (output[_oRIWEA] != null) { + contents[_ORIWEA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_oRIWEA])); } - if (output["paymentDue"] !== undefined) { - contents.PaymentDue = __expectString(output["paymentDue"]); + if (output[_pDa] != null) { + contents[_PDay] = __expectString(output[_pDa]); } - if (output["reservedInstanceValueRollup"] !== undefined) { - contents.ReservedInstanceValueRollup = de_ReservationValue(output["reservedInstanceValueRollup"], context); + if (output[_rIVR] != null) { + contents[_RIVR] = de_ReservationValue(output[_rIVR], context); } if (output.reservedInstanceValueSet === "") { - contents.ReservedInstanceValueSet = []; - } else if ( - output["reservedInstanceValueSet"] !== undefined && - output["reservedInstanceValueSet"]["item"] !== undefined - ) { - contents.ReservedInstanceValueSet = de_ReservedInstanceReservationValueSet( - __getArrayIfSingleItem(output["reservedInstanceValueSet"]["item"]), - context - ); + contents[_RIVS] = []; + } else if (output[_rIVS] != null && output[_rIVS][_i] != null) { + contents[_RIVS] = de_ReservedInstanceReservationValueSet(__getArrayIfSingleItem(output[_rIVS][_i]), context); } - if (output["targetConfigurationValueRollup"] !== undefined) { - contents.TargetConfigurationValueRollup = de_ReservationValue(output["targetConfigurationValueRollup"], context); + if (output[_tCVR] != null) { + contents[_TCVR] = de_ReservationValue(output[_tCVR], context); } if (output.targetConfigurationValueSet === "") { - contents.TargetConfigurationValueSet = []; - } else if ( - output["targetConfigurationValueSet"] !== undefined && - output["targetConfigurationValueSet"]["item"] !== undefined - ) { - contents.TargetConfigurationValueSet = de_TargetReservationValueSet( - __getArrayIfSingleItem(output["targetConfigurationValueSet"]["item"]), - context - ); + contents[_TCVS] = []; + } else if (output[_tCVS] != null && output[_tCVS][_i] != null) { + contents[_TCVS] = de_TargetReservationValueSet(__getArrayIfSingleItem(output[_tCVS][_i]), context); } - if (output["validationFailureReason"] !== undefined) { - contents.ValidationFailureReason = __expectString(output["validationFailureReason"]); + if (output[_vFR] != null) { + contents[_VFR] = __expectString(output[_vFR]); } return contents; }; @@ -79924,16 +79060,13 @@ const de_GetReservedInstancesExchangeQuoteResult = ( */ const de_GetSecurityGroupsForVpcResult = (output: any, context: __SerdeContext): GetSecurityGroupsForVpcResult => { const contents: any = {}; - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } if (output.securityGroupForVpcSet === "") { - contents.SecurityGroupForVpcs = []; - } else if (output["securityGroupForVpcSet"] !== undefined && output["securityGroupForVpcSet"]["item"] !== undefined) { - contents.SecurityGroupForVpcs = de_SecurityGroupForVpcList( - __getArrayIfSingleItem(output["securityGroupForVpcSet"]["item"]), - context - ); + contents[_SGFV] = []; + } else if (output[_sGFVS] != null && output[_sGFVS][_i] != null) { + contents[_SGFV] = de_SecurityGroupForVpcList(__getArrayIfSingleItem(output[_sGFVS][_i]), context); } return contents; }; @@ -79946,8 +79079,8 @@ const de_GetSerialConsoleAccessStatusResult = ( context: __SerdeContext ): GetSerialConsoleAccessStatusResult => { const contents: any = {}; - if (output["serialConsoleAccessEnabled"] !== undefined) { - contents.SerialConsoleAccessEnabled = __parseBoolean(output["serialConsoleAccessEnabled"]); + if (output[_sCAE] != null) { + contents[_SCAE] = __parseBoolean(output[_sCAE]); } return contents; }; @@ -79960,8 +79093,8 @@ const de_GetSnapshotBlockPublicAccessStateResult = ( context: __SerdeContext ): GetSnapshotBlockPublicAccessStateResult => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -79972,15 +79105,12 @@ const de_GetSnapshotBlockPublicAccessStateResult = ( const de_GetSpotPlacementScoresResult = (output: any, context: __SerdeContext): GetSpotPlacementScoresResult => { const contents: any = {}; if (output.spotPlacementScoreSet === "") { - contents.SpotPlacementScores = []; - } else if (output["spotPlacementScoreSet"] !== undefined && output["spotPlacementScoreSet"]["item"] !== undefined) { - contents.SpotPlacementScores = de_SpotPlacementScores( - __getArrayIfSingleItem(output["spotPlacementScoreSet"]["item"]), - context - ); + contents[_SPS] = []; + } else if (output[_sPSS] != null && output[_sPSS][_i] != null) { + contents[_SPS] = de_SpotPlacementScores(__getArrayIfSingleItem(output[_sPSS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -79991,29 +79121,17 @@ const de_GetSpotPlacementScoresResult = (output: any, context: __SerdeContext): const de_GetSubnetCidrReservationsResult = (output: any, context: __SerdeContext): GetSubnetCidrReservationsResult => { const contents: any = {}; if (output.subnetIpv4CidrReservationSet === "") { - contents.SubnetIpv4CidrReservations = []; - } else if ( - output["subnetIpv4CidrReservationSet"] !== undefined && - output["subnetIpv4CidrReservationSet"]["item"] !== undefined - ) { - contents.SubnetIpv4CidrReservations = de_SubnetCidrReservationList( - __getArrayIfSingleItem(output["subnetIpv4CidrReservationSet"]["item"]), - context - ); + contents[_SICR] = []; + } else if (output[_sICRS] != null && output[_sICRS][_i] != null) { + contents[_SICR] = de_SubnetCidrReservationList(__getArrayIfSingleItem(output[_sICRS][_i]), context); } if (output.subnetIpv6CidrReservationSet === "") { - contents.SubnetIpv6CidrReservations = []; - } else if ( - output["subnetIpv6CidrReservationSet"] !== undefined && - output["subnetIpv6CidrReservationSet"]["item"] !== undefined - ) { - contents.SubnetIpv6CidrReservations = de_SubnetCidrReservationList( - __getArrayIfSingleItem(output["subnetIpv6CidrReservationSet"]["item"]), - context - ); + contents[_SICRu] = []; + } else if (output[_sICRSu] != null && output[_sICRSu][_i] != null) { + contents[_SICRu] = de_SubnetCidrReservationList(__getArrayIfSingleItem(output[_sICRSu][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80027,18 +79145,12 @@ const de_GetTransitGatewayAttachmentPropagationsResult = ( ): GetTransitGatewayAttachmentPropagationsResult => { const contents: any = {}; if (output.transitGatewayAttachmentPropagations === "") { - contents.TransitGatewayAttachmentPropagations = []; - } else if ( - output["transitGatewayAttachmentPropagations"] !== undefined && - output["transitGatewayAttachmentPropagations"]["item"] !== undefined - ) { - contents.TransitGatewayAttachmentPropagations = de_TransitGatewayAttachmentPropagationList( - __getArrayIfSingleItem(output["transitGatewayAttachmentPropagations"]["item"]), - context - ); + contents[_TGAP] = []; + } else if (output[_tGAP] != null && output[_tGAP][_i] != null) { + contents[_TGAP] = de_TransitGatewayAttachmentPropagationList(__getArrayIfSingleItem(output[_tGAP][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80052,18 +79164,12 @@ const de_GetTransitGatewayMulticastDomainAssociationsResult = ( ): GetTransitGatewayMulticastDomainAssociationsResult => { const contents: any = {}; if (output.multicastDomainAssociations === "") { - contents.MulticastDomainAssociations = []; - } else if ( - output["multicastDomainAssociations"] !== undefined && - output["multicastDomainAssociations"]["item"] !== undefined - ) { - contents.MulticastDomainAssociations = de_TransitGatewayMulticastDomainAssociationList( - __getArrayIfSingleItem(output["multicastDomainAssociations"]["item"]), - context - ); + contents[_MDA] = []; + } else if (output[_mDA] != null && output[_mDA][_i] != null) { + contents[_MDA] = de_TransitGatewayMulticastDomainAssociationList(__getArrayIfSingleItem(output[_mDA][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80077,15 +79183,12 @@ const de_GetTransitGatewayPolicyTableAssociationsResult = ( ): GetTransitGatewayPolicyTableAssociationsResult => { const contents: any = {}; if (output.associations === "") { - contents.Associations = []; - } else if (output["associations"] !== undefined && output["associations"]["item"] !== undefined) { - contents.Associations = de_TransitGatewayPolicyTableAssociationList( - __getArrayIfSingleItem(output["associations"]["item"]), - context - ); + contents[_Ass] = []; + } else if (output[_a] != null && output[_a][_i] != null) { + contents[_Ass] = de_TransitGatewayPolicyTableAssociationList(__getArrayIfSingleItem(output[_a][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80099,15 +79202,9 @@ const de_GetTransitGatewayPolicyTableEntriesResult = ( ): GetTransitGatewayPolicyTableEntriesResult => { const contents: any = {}; if (output.transitGatewayPolicyTableEntries === "") { - contents.TransitGatewayPolicyTableEntries = []; - } else if ( - output["transitGatewayPolicyTableEntries"] !== undefined && - output["transitGatewayPolicyTableEntries"]["item"] !== undefined - ) { - contents.TransitGatewayPolicyTableEntries = de_TransitGatewayPolicyTableEntryList( - __getArrayIfSingleItem(output["transitGatewayPolicyTableEntries"]["item"]), - context - ); + contents[_TGPTE] = []; + } else if (output[_tGPTE] != null && output[_tGPTE][_i] != null) { + contents[_TGPTE] = de_TransitGatewayPolicyTableEntryList(__getArrayIfSingleItem(output[_tGPTE][_i]), context); } return contents; }; @@ -80121,18 +79218,12 @@ const de_GetTransitGatewayPrefixListReferencesResult = ( ): GetTransitGatewayPrefixListReferencesResult => { const contents: any = {}; if (output.transitGatewayPrefixListReferenceSet === "") { - contents.TransitGatewayPrefixListReferences = []; - } else if ( - output["transitGatewayPrefixListReferenceSet"] !== undefined && - output["transitGatewayPrefixListReferenceSet"]["item"] !== undefined - ) { - contents.TransitGatewayPrefixListReferences = de_TransitGatewayPrefixListReferenceSet( - __getArrayIfSingleItem(output["transitGatewayPrefixListReferenceSet"]["item"]), - context - ); + contents[_TGPLRr] = []; + } else if (output[_tGPLRS] != null && output[_tGPLRS][_i] != null) { + contents[_TGPLRr] = de_TransitGatewayPrefixListReferenceSet(__getArrayIfSingleItem(output[_tGPLRS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80146,15 +79237,12 @@ const de_GetTransitGatewayRouteTableAssociationsResult = ( ): GetTransitGatewayRouteTableAssociationsResult => { const contents: any = {}; if (output.associations === "") { - contents.Associations = []; - } else if (output["associations"] !== undefined && output["associations"]["item"] !== undefined) { - contents.Associations = de_TransitGatewayRouteTableAssociationList( - __getArrayIfSingleItem(output["associations"]["item"]), - context - ); + contents[_Ass] = []; + } else if (output[_a] != null && output[_a][_i] != null) { + contents[_Ass] = de_TransitGatewayRouteTableAssociationList(__getArrayIfSingleItem(output[_a][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80168,18 +79256,12 @@ const de_GetTransitGatewayRouteTablePropagationsResult = ( ): GetTransitGatewayRouteTablePropagationsResult => { const contents: any = {}; if (output.transitGatewayRouteTablePropagations === "") { - contents.TransitGatewayRouteTablePropagations = []; - } else if ( - output["transitGatewayRouteTablePropagations"] !== undefined && - output["transitGatewayRouteTablePropagations"]["item"] !== undefined - ) { - contents.TransitGatewayRouteTablePropagations = de_TransitGatewayRouteTablePropagationList( - __getArrayIfSingleItem(output["transitGatewayRouteTablePropagations"]["item"]), - context - ); + contents[_TGRTP] = []; + } else if (output[_tGRTP] != null && output[_tGRTP][_i] != null) { + contents[_TGRTP] = de_TransitGatewayRouteTablePropagationList(__getArrayIfSingleItem(output[_tGRTP][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80192,11 +79274,11 @@ const de_GetVerifiedAccessEndpointPolicyResult = ( context: __SerdeContext ): GetVerifiedAccessEndpointPolicyResult => { const contents: any = {}; - if (output["policyEnabled"] !== undefined) { - contents.PolicyEnabled = __parseBoolean(output["policyEnabled"]); + if (output[_pE] != null) { + contents[_PE] = __parseBoolean(output[_pE]); } - if (output["policyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["policyDocument"]); + if (output[_pDo] != null) { + contents[_PD] = __expectString(output[_pDo]); } return contents; }; @@ -80209,11 +79291,11 @@ const de_GetVerifiedAccessGroupPolicyResult = ( context: __SerdeContext ): GetVerifiedAccessGroupPolicyResult => { const contents: any = {}; - if (output["policyEnabled"] !== undefined) { - contents.PolicyEnabled = __parseBoolean(output["policyEnabled"]); + if (output[_pE] != null) { + contents[_PE] = __parseBoolean(output[_pE]); } - if (output["policyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["policyDocument"]); + if (output[_pDo] != null) { + contents[_PD] = __expectString(output[_pDo]); } return contents; }; @@ -80226,8 +79308,8 @@ const de_GetVpnConnectionDeviceSampleConfigurationResult = ( context: __SerdeContext ): GetVpnConnectionDeviceSampleConfigurationResult => { const contents: any = {}; - if (output["vpnConnectionDeviceSampleConfiguration"] !== undefined) { - contents.VpnConnectionDeviceSampleConfiguration = __expectString(output["vpnConnectionDeviceSampleConfiguration"]); + if (output[_vCDSC] != null) { + contents[_VCDSC] = __expectString(output[_vCDSC]); } return contents; }; @@ -80241,18 +79323,12 @@ const de_GetVpnConnectionDeviceTypesResult = ( ): GetVpnConnectionDeviceTypesResult => { const contents: any = {}; if (output.vpnConnectionDeviceTypeSet === "") { - contents.VpnConnectionDeviceTypes = []; - } else if ( - output["vpnConnectionDeviceTypeSet"] !== undefined && - output["vpnConnectionDeviceTypeSet"]["item"] !== undefined - ) { - contents.VpnConnectionDeviceTypes = de_VpnConnectionDeviceTypeList( - __getArrayIfSingleItem(output["vpnConnectionDeviceTypeSet"]["item"]), - context - ); + contents[_VCDT] = []; + } else if (output[_vCDTS] != null && output[_vCDTS][_i] != null) { + contents[_VCDT] = de_VpnConnectionDeviceTypeList(__getArrayIfSingleItem(output[_vCDTS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -80265,23 +79341,23 @@ const de_GetVpnTunnelReplacementStatusResult = ( context: __SerdeContext ): GetVpnTunnelReplacementStatusResult => { const contents: any = {}; - if (output["vpnConnectionId"] !== undefined) { - contents.VpnConnectionId = __expectString(output["vpnConnectionId"]); + if (output[_vCI] != null) { + contents[_VCI] = __expectString(output[_vCI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["customerGatewayId"] !== undefined) { - contents.CustomerGatewayId = __expectString(output["customerGatewayId"]); + if (output[_cGIu] != null) { + contents[_CGIu] = __expectString(output[_cGIu]); } - if (output["vpnGatewayId"] !== undefined) { - contents.VpnGatewayId = __expectString(output["vpnGatewayId"]); + if (output[_vGI] != null) { + contents[_VGI] = __expectString(output[_vGI]); } - if (output["vpnTunnelOutsideIpAddress"] !== undefined) { - contents.VpnTunnelOutsideIpAddress = __expectString(output["vpnTunnelOutsideIpAddress"]); + if (output[_vTOIA] != null) { + contents[_VTOIA] = __expectString(output[_vTOIA]); } - if (output["maintenanceDetails"] !== undefined) { - contents.MaintenanceDetails = de_MaintenanceDetails(output["maintenanceDetails"], context); + if (output[_mD] != null) { + contents[_MDa] = de_MaintenanceDetails(output[_mD], context); } return contents; }; @@ -80291,17 +79367,17 @@ const de_GetVpnTunnelReplacementStatusResult = ( */ const de_GpuDeviceInfo = (output: any, context: __SerdeContext): GpuDeviceInfo => { const contents: any = {}; - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["manufacturer"] !== undefined) { - contents.Manufacturer = __expectString(output["manufacturer"]); + if (output[_man] != null) { + contents[_Man] = __expectString(output[_man]); } - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } - if (output["memoryInfo"] !== undefined) { - contents.MemoryInfo = de_GpuDeviceMemoryInfo(output["memoryInfo"], context); + if (output[_mIe] != null) { + contents[_MIe] = de_GpuDeviceMemoryInfo(output[_mIe], context); } return contents; }; @@ -80322,8 +79398,8 @@ const de_GpuDeviceInfoList = (output: any, context: __SerdeContext): GpuDeviceIn */ const de_GpuDeviceMemoryInfo = (output: any, context: __SerdeContext): GpuDeviceMemoryInfo => { const contents: any = {}; - if (output["sizeInMiB"] !== undefined) { - contents.SizeInMiB = __strictParseInt32(output["sizeInMiB"]) as number; + if (output[_sIMB] != null) { + contents[_SIMB] = __strictParseInt32(output[_sIMB]) as number; } return contents; }; @@ -80334,12 +79410,12 @@ const de_GpuDeviceMemoryInfo = (output: any, context: __SerdeContext): GpuDevice const de_GpuInfo = (output: any, context: __SerdeContext): GpuInfo => { const contents: any = {}; if (output.gpus === "") { - contents.Gpus = []; - } else if (output["gpus"] !== undefined && output["gpus"]["item"] !== undefined) { - contents.Gpus = de_GpuDeviceInfoList(__getArrayIfSingleItem(output["gpus"]["item"]), context); + contents[_Gp] = []; + } else if (output[_gp] != null && output[_gp][_i] != null) { + contents[_Gp] = de_GpuDeviceInfoList(__getArrayIfSingleItem(output[_gp][_i]), context); } - if (output["totalGpuMemoryInMiB"] !== undefined) { - contents.TotalGpuMemoryInMiB = __strictParseInt32(output["totalGpuMemoryInMiB"]) as number; + if (output[_tGMIMB] != null) { + contents[_TGMIMB] = __strictParseInt32(output[_tGMIMB]) as number; } return contents; }; @@ -80349,11 +79425,11 @@ const de_GpuInfo = (output: any, context: __SerdeContext): GpuInfo => { */ const de_GroupIdentifier = (output: any, context: __SerdeContext): GroupIdentifier => { const contents: any = {}; - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } return contents; }; @@ -80396,8 +79472,8 @@ const de_GroupIdStringList = (output: any, context: __SerdeContext): string[] => */ const de_HibernationOptions = (output: any, context: __SerdeContext): HibernationOptions => { const contents: any = {}; - if (output["configured"] !== undefined) { - contents.Configured = __parseBoolean(output["configured"]); + if (output[_conf] != null) { + contents[_Conf] = __parseBoolean(output[_conf]); } return contents; }; @@ -80407,14 +79483,14 @@ const de_HibernationOptions = (output: any, context: __SerdeContext): Hibernatio */ const de_HistoryRecord = (output: any, context: __SerdeContext): HistoryRecord => { const contents: any = {}; - if (output["eventInformation"] !== undefined) { - contents.EventInformation = de_EventInformation(output["eventInformation"], context); + if (output[_eIv] != null) { + contents[_EIv] = de_EventInformation(output[_eIv], context); } - if (output["eventType"] !== undefined) { - contents.EventType = __expectString(output["eventType"]); + if (output[_eTv] != null) { + contents[_ETv] = __expectString(output[_eTv]); } - if (output["timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["timestamp"])); + if (output[_ti] != null) { + contents[_Tim] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ti])); } return contents; }; @@ -80424,14 +79500,14 @@ const de_HistoryRecord = (output: any, context: __SerdeContext): HistoryRecord = */ const de_HistoryRecordEntry = (output: any, context: __SerdeContext): HistoryRecordEntry => { const contents: any = {}; - if (output["eventInformation"] !== undefined) { - contents.EventInformation = de_EventInformation(output["eventInformation"], context); + if (output[_eIv] != null) { + contents[_EIv] = de_EventInformation(output[_eIv], context); } - if (output["eventType"] !== undefined) { - contents.EventType = __expectString(output["eventType"]); + if (output[_eTv] != null) { + contents[_ETv] = __expectString(output[_eTv]); } - if (output["timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["timestamp"])); + if (output[_ti] != null) { + contents[_Tim] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ti])); } return contents; }; @@ -80463,69 +79539,69 @@ const de_HistoryRecordSet = (output: any, context: __SerdeContext): HistoryRecor */ const de_Host = (output: any, context: __SerdeContext): Host => { const contents: any = {}; - if (output["autoPlacement"] !== undefined) { - contents.AutoPlacement = __expectString(output["autoPlacement"]); + if (output[_aPu] != null) { + contents[_AP] = __expectString(output[_aPu]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["availableCapacity"] !== undefined) { - contents.AvailableCapacity = de_AvailableCapacity(output["availableCapacity"], context); + if (output[_aC] != null) { + contents[_ACv] = de_AvailableCapacity(output[_aC], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["hostId"] !== undefined) { - contents.HostId = __expectString(output["hostId"]); + if (output[_hI] != null) { + contents[_HIo] = __expectString(output[_hI]); } - if (output["hostProperties"] !== undefined) { - contents.HostProperties = de_HostProperties(output["hostProperties"], context); + if (output[_hP] != null) { + contents[_HP] = de_HostProperties(output[_hP], context); } - if (output["hostReservationId"] !== undefined) { - contents.HostReservationId = __expectString(output["hostReservationId"]); + if (output[_hRI] != null) { + contents[_HRI] = __expectString(output[_hRI]); } if (output.instances === "") { - contents.Instances = []; - } else if (output["instances"] !== undefined && output["instances"]["item"] !== undefined) { - contents.Instances = de_HostInstanceList(__getArrayIfSingleItem(output["instances"]["item"]), context); + contents[_In] = []; + } else if (output[_ins] != null && output[_ins][_i] != null) { + contents[_In] = de_HostInstanceList(__getArrayIfSingleItem(output[_ins][_i]), context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["allocationTime"] !== undefined) { - contents.AllocationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["allocationTime"])); + if (output[_aTll] != null) { + contents[_ATll] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_aTll])); } - if (output["releaseTime"] !== undefined) { - contents.ReleaseTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["releaseTime"])); + if (output[_rTel] != null) { + contents[_RTel] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rTel])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["hostRecovery"] !== undefined) { - contents.HostRecovery = __expectString(output["hostRecovery"]); + if (output[_hR] != null) { + contents[_HR] = __expectString(output[_hR]); } - if (output["allowsMultipleInstanceTypes"] !== undefined) { - contents.AllowsMultipleInstanceTypes = __expectString(output["allowsMultipleInstanceTypes"]); + if (output[_aMIT] != null) { + contents[_AMIT] = __expectString(output[_aMIT]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["availabilityZoneId"] !== undefined) { - contents.AvailabilityZoneId = __expectString(output["availabilityZoneId"]); + if (output[_aZI] != null) { + contents[_AZI] = __expectString(output[_aZI]); } - if (output["memberOfServiceLinkedResourceGroup"] !== undefined) { - contents.MemberOfServiceLinkedResourceGroup = __parseBoolean(output["memberOfServiceLinkedResourceGroup"]); + if (output[_mOSLRG] != null) { + contents[_MOSLRG] = __parseBoolean(output[_mOSLRG]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["hostMaintenance"] !== undefined) { - contents.HostMaintenance = __expectString(output["hostMaintenance"]); + if (output[_hM] != null) { + contents[_HM] = __expectString(output[_hM]); } - if (output["assetId"] !== undefined) { - contents.AssetId = __expectString(output["assetId"]); + if (output[_aIss] != null) { + contents[_AIsse] = __expectString(output[_aIss]); } return contents; }; @@ -80535,14 +79611,14 @@ const de_Host = (output: any, context: __SerdeContext): Host => { */ const de_HostInstance = (output: any, context: __SerdeContext): HostInstance => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } return contents; }; @@ -80574,26 +79650,26 @@ const de_HostList = (output: any, context: __SerdeContext): Host[] => { */ const de_HostOffering = (output: any, context: __SerdeContext): HostOffering => { const contents: any = {}; - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["duration"]) as number; + if (output[_du] != null) { + contents[_Du] = __strictParseInt32(output[_du]) as number; } - if (output["hourlyPrice"] !== undefined) { - contents.HourlyPrice = __expectString(output["hourlyPrice"]); + if (output[_hPo] != null) { + contents[_HPo] = __expectString(output[_hPo]); } - if (output["instanceFamily"] !== undefined) { - contents.InstanceFamily = __expectString(output["instanceFamily"]); + if (output[_iF] != null) { + contents[_IF] = __expectString(output[_iF]); } - if (output["offeringId"] !== undefined) { - contents.OfferingId = __expectString(output["offeringId"]); + if (output[_oIf] != null) { + contents[_OI] = __expectString(output[_oIf]); } - if (output["paymentOption"] !== undefined) { - contents.PaymentOption = __expectString(output["paymentOption"]); + if (output[_pO] != null) { + contents[_PO] = __expectString(output[_pO]); } - if (output["upfrontPrice"] !== undefined) { - contents.UpfrontPrice = __expectString(output["upfrontPrice"]); + if (output[_uP] != null) { + contents[_UPp] = __expectString(output[_uP]); } return contents; }; @@ -80614,20 +79690,20 @@ const de_HostOfferingSet = (output: any, context: __SerdeContext): HostOffering[ */ const de_HostProperties = (output: any, context: __SerdeContext): HostProperties => { const contents: any = {}; - if (output["cores"] !== undefined) { - contents.Cores = __strictParseInt32(output["cores"]) as number; + if (output[_cor] != null) { + contents[_Cor] = __strictParseInt32(output[_cor]) as number; } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["instanceFamily"] !== undefined) { - contents.InstanceFamily = __expectString(output["instanceFamily"]); + if (output[_iF] != null) { + contents[_IF] = __expectString(output[_iF]); } - if (output["sockets"] !== undefined) { - contents.Sockets = __strictParseInt32(output["sockets"]) as number; + if (output[_so] != null) { + contents[_Soc] = __strictParseInt32(output[_so]) as number; } - if (output["totalVCpus"] !== undefined) { - contents.TotalVCpus = __strictParseInt32(output["totalVCpus"]) as number; + if (output[_tVC] != null) { + contents[_TVC] = __strictParseInt32(output[_tVC]) as number; } return contents; }; @@ -80637,51 +79713,51 @@ const de_HostProperties = (output: any, context: __SerdeContext): HostProperties */ const de_HostReservation = (output: any, context: __SerdeContext): HostReservation => { const contents: any = {}; - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["duration"]) as number; + if (output[_du] != null) { + contents[_Du] = __strictParseInt32(output[_du]) as number; } - if (output["end"] !== undefined) { - contents.End = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["end"])); + if (output[_end] != null) { + contents[_End] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_end])); } if (output.hostIdSet === "") { - contents.HostIdSet = []; - } else if (output["hostIdSet"] !== undefined && output["hostIdSet"]["item"] !== undefined) { - contents.HostIdSet = de_ResponseHostIdSet(__getArrayIfSingleItem(output["hostIdSet"]["item"]), context); + contents[_HIS] = []; + } else if (output[_hIS] != null && output[_hIS][_i] != null) { + contents[_HIS] = de_ResponseHostIdSet(__getArrayIfSingleItem(output[_hIS][_i]), context); } - if (output["hostReservationId"] !== undefined) { - contents.HostReservationId = __expectString(output["hostReservationId"]); + if (output[_hRI] != null) { + contents[_HRI] = __expectString(output[_hRI]); } - if (output["hourlyPrice"] !== undefined) { - contents.HourlyPrice = __expectString(output["hourlyPrice"]); + if (output[_hPo] != null) { + contents[_HPo] = __expectString(output[_hPo]); } - if (output["instanceFamily"] !== undefined) { - contents.InstanceFamily = __expectString(output["instanceFamily"]); + if (output[_iF] != null) { + contents[_IF] = __expectString(output[_iF]); } - if (output["offeringId"] !== undefined) { - contents.OfferingId = __expectString(output["offeringId"]); + if (output[_oIf] != null) { + contents[_OI] = __expectString(output[_oIf]); } - if (output["paymentOption"] !== undefined) { - contents.PaymentOption = __expectString(output["paymentOption"]); + if (output[_pO] != null) { + contents[_PO] = __expectString(output[_pO]); } - if (output["start"] !== undefined) { - contents.Start = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["start"])); + if (output[_star] != null) { + contents[_Star] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_star])); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["upfrontPrice"] !== undefined) { - contents.UpfrontPrice = __expectString(output["upfrontPrice"]); + if (output[_uP] != null) { + contents[_UPp] = __expectString(output[_uP]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -80702,11 +79778,11 @@ const de_HostReservationSet = (output: any, context: __SerdeContext): HostReserv */ const de_IamInstanceProfile = (output: any, context: __SerdeContext): IamInstanceProfile => { const contents: any = {}; - if (output["arn"] !== undefined) { - contents.Arn = __expectString(output["arn"]); + if (output[_ar] != null) { + contents[_Ar] = __expectString(output[_ar]); } - if (output["id"] !== undefined) { - contents.Id = __expectString(output["id"]); + if (output[_id] != null) { + contents[_Id] = __expectString(output[_id]); } return contents; }; @@ -80716,20 +79792,20 @@ const de_IamInstanceProfile = (output: any, context: __SerdeContext): IamInstanc */ const de_IamInstanceProfileAssociation = (output: any, context: __SerdeContext): IamInstanceProfileAssociation => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["iamInstanceProfile"] !== undefined) { - contents.IamInstanceProfile = de_IamInstanceProfile(output["iamInstanceProfile"], context); + if (output[_iIP] != null) { + contents[_IIP] = de_IamInstanceProfile(output[_iIP], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["timestamp"])); + if (output[_ti] != null) { + contents[_Tim] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ti])); } return contents; }; @@ -80750,11 +79826,11 @@ const de_IamInstanceProfileAssociationSet = (output: any, context: __SerdeContex */ const de_IamInstanceProfileSpecification = (output: any, context: __SerdeContext): IamInstanceProfileSpecification => { const contents: any = {}; - if (output["arn"] !== undefined) { - contents.Arn = __expectString(output["arn"]); + if (output[_ar] != null) { + contents[_Ar] = __expectString(output[_ar]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } return contents; }; @@ -80764,11 +79840,11 @@ const de_IamInstanceProfileSpecification = (output: any, context: __SerdeContext */ const de_IcmpTypeCode = (output: any, context: __SerdeContext): IcmpTypeCode => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __strictParseInt32(output["code"]) as number; + if (output[_co] != null) { + contents[_Cod] = __strictParseInt32(output[_co]) as number; } - if (output["type"] !== undefined) { - contents.Type = __strictParseInt32(output["type"]) as number; + if (output[_ty] != null) { + contents[_T] = __strictParseInt32(output[_ty]) as number; } return contents; }; @@ -80778,14 +79854,14 @@ const de_IcmpTypeCode = (output: any, context: __SerdeContext): IcmpTypeCode => */ const de_IdFormat = (output: any, context: __SerdeContext): IdFormat => { const contents: any = {}; - if (output["deadline"] !== undefined) { - contents.Deadline = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["deadline"])); + if (output[_dea] != null) { + contents[_Dea] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dea])); } - if (output["resource"] !== undefined) { - contents.Resource = __expectString(output["resource"]); + if (output[_res] != null) { + contents[_Res] = __expectString(output[_res]); } - if (output["useLongIds"] !== undefined) { - contents.UseLongIds = __parseBoolean(output["useLongIds"]); + if (output[_uLI] != null) { + contents[_ULI] = __parseBoolean(output[_uLI]); } return contents; }; @@ -80817,8 +79893,8 @@ const de_IKEVersionsList = (output: any, context: __SerdeContext): IKEVersionsLi */ const de_IKEVersionsListValue = (output: any, context: __SerdeContext): IKEVersionsListValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -80828,107 +79904,104 @@ const de_IKEVersionsListValue = (output: any, context: __SerdeContext): IKEVersi */ const de_Image = (output: any, context: __SerdeContext): Image => { const contents: any = {}; - if (output["architecture"] !== undefined) { - contents.Architecture = __expectString(output["architecture"]); + if (output[_arc] != null) { + contents[_Arc] = __expectString(output[_arc]); } - if (output["creationDate"] !== undefined) { - contents.CreationDate = __expectString(output["creationDate"]); + if (output[_cDr] != null) { + contents[_CDre] = __expectString(output[_cDr]); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["imageLocation"] !== undefined) { - contents.ImageLocation = __expectString(output["imageLocation"]); + if (output[_iL] != null) { + contents[_IL] = __expectString(output[_iL]); } - if (output["imageType"] !== undefined) { - contents.ImageType = __expectString(output["imageType"]); + if (output[_iTm] != null) { + contents[_ITm] = __expectString(output[_iTm]); } - if (output["isPublic"] !== undefined) { - contents.Public = __parseBoolean(output["isPublic"]); + if (output[_iPs] != null) { + contents[_Pu] = __parseBoolean(output[_iPs]); } - if (output["kernelId"] !== undefined) { - contents.KernelId = __expectString(output["kernelId"]); + if (output[_kI] != null) { + contents[_KI] = __expectString(output[_kI]); } - if (output["imageOwnerId"] !== undefined) { - contents.OwnerId = __expectString(output["imageOwnerId"]); + if (output[_iOI] != null) { + contents[_OIwn] = __expectString(output[_iOI]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["platformDetails"] !== undefined) { - contents.PlatformDetails = __expectString(output["platformDetails"]); + if (output[_pDl] != null) { + contents[_PDl] = __expectString(output[_pDl]); } - if (output["usageOperation"] !== undefined) { - contents.UsageOperation = __expectString(output["usageOperation"]); + if (output[_uO] != null) { + contents[_UO] = __expectString(output[_uO]); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output["ramdiskId"] !== undefined) { - contents.RamdiskId = __expectString(output["ramdiskId"]); + if (output[_rIa] != null) { + contents[_RIa] = __expectString(output[_rIa]); } - if (output["imageState"] !== undefined) { - contents.State = __expectString(output["imageState"]); + if (output[_iSma] != null) { + contents[_Stat] = __expectString(output[_iSma]); } if (output.blockDeviceMapping === "") { - contents.BlockDeviceMappings = []; - } else if (output["blockDeviceMapping"] !== undefined && output["blockDeviceMapping"]["item"] !== undefined) { - contents.BlockDeviceMappings = de_BlockDeviceMappingList( - __getArrayIfSingleItem(output["blockDeviceMapping"]["item"]), - context - ); + contents[_BDM] = []; + } else if (output[_bDM] != null && output[_bDM][_i] != null) { + contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["enaSupport"] !== undefined) { - contents.EnaSupport = __parseBoolean(output["enaSupport"]); + if (output[_eSna] != null) { + contents[_ESn] = __parseBoolean(output[_eSna]); } - if (output["hypervisor"] !== undefined) { - contents.Hypervisor = __expectString(output["hypervisor"]); + if (output[_h] != null) { + contents[_H] = __expectString(output[_h]); } - if (output["imageOwnerAlias"] !== undefined) { - contents.ImageOwnerAlias = __expectString(output["imageOwnerAlias"]); + if (output[_iOA] != null) { + contents[_IOA] = __expectString(output[_iOA]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["rootDeviceName"] !== undefined) { - contents.RootDeviceName = __expectString(output["rootDeviceName"]); + if (output[_rDN] != null) { + contents[_RDN] = __expectString(output[_rDN]); } - if (output["rootDeviceType"] !== undefined) { - contents.RootDeviceType = __expectString(output["rootDeviceType"]); + if (output[_rDT] != null) { + contents[_RDT] = __expectString(output[_rDT]); } - if (output["sriovNetSupport"] !== undefined) { - contents.SriovNetSupport = __expectString(output["sriovNetSupport"]); + if (output[_sNSr] != null) { + contents[_SNS] = __expectString(output[_sNSr]); } - if (output["stateReason"] !== undefined) { - contents.StateReason = de_StateReason(output["stateReason"], context); + if (output[_sR] != null) { + contents[_SRt] = de_StateReason(output[_sR], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["virtualizationType"] !== undefined) { - contents.VirtualizationType = __expectString(output["virtualizationType"]); + if (output[_vTi] != null) { + contents[_VTir] = __expectString(output[_vTi]); } - if (output["bootMode"] !== undefined) { - contents.BootMode = __expectString(output["bootMode"]); + if (output[_bM] != null) { + contents[_BM] = __expectString(output[_bM]); } - if (output["tpmSupport"] !== undefined) { - contents.TpmSupport = __expectString(output["tpmSupport"]); + if (output[_tSp] != null) { + contents[_TSp] = __expectString(output[_tSp]); } - if (output["deprecationTime"] !== undefined) { - contents.DeprecationTime = __expectString(output["deprecationTime"]); + if (output[_dTe] != null) { + contents[_DTep] = __expectString(output[_dTe]); } - if (output["imdsSupport"] !== undefined) { - contents.ImdsSupport = __expectString(output["imdsSupport"]); + if (output[_iSmd] != null) { + contents[_ISm] = __expectString(output[_iSmd]); } - if (output["sourceInstanceId"] !== undefined) { - contents.SourceInstanceId = __expectString(output["sourceInstanceId"]); + if (output[_sII] != null) { + contents[_SIIo] = __expectString(output[_sII]); } return contents; }; @@ -80939,55 +80012,49 @@ const de_Image = (output: any, context: __SerdeContext): Image => { const de_ImageAttribute = (output: any, context: __SerdeContext): ImageAttribute => { const contents: any = {}; if (output.blockDeviceMapping === "") { - contents.BlockDeviceMappings = []; - } else if (output["blockDeviceMapping"] !== undefined && output["blockDeviceMapping"]["item"] !== undefined) { - contents.BlockDeviceMappings = de_BlockDeviceMappingList( - __getArrayIfSingleItem(output["blockDeviceMapping"]["item"]), - context - ); + contents[_BDM] = []; + } else if (output[_bDM] != null && output[_bDM][_i] != null) { + contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } if (output.launchPermission === "") { - contents.LaunchPermissions = []; - } else if (output["launchPermission"] !== undefined && output["launchPermission"]["item"] !== undefined) { - contents.LaunchPermissions = de_LaunchPermissionList( - __getArrayIfSingleItem(output["launchPermission"]["item"]), - context - ); + contents[_LPau] = []; + } else if (output[_lPa] != null && output[_lPa][_i] != null) { + contents[_LPau] = de_LaunchPermissionList(__getArrayIfSingleItem(output[_lPa][_i]), context); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output["description"] !== undefined) { - contents.Description = de_AttributeValue(output["description"], context); + if (output[_de] != null) { + contents[_De] = de_AttributeValue(output[_de], context); } - if (output["kernel"] !== undefined) { - contents.KernelId = de_AttributeValue(output["kernel"], context); + if (output[_ke] != null) { + contents[_KI] = de_AttributeValue(output[_ke], context); } - if (output["ramdisk"] !== undefined) { - contents.RamdiskId = de_AttributeValue(output["ramdisk"], context); + if (output[_ra] != null) { + contents[_RIa] = de_AttributeValue(output[_ra], context); } - if (output["sriovNetSupport"] !== undefined) { - contents.SriovNetSupport = de_AttributeValue(output["sriovNetSupport"], context); + if (output[_sNSr] != null) { + contents[_SNS] = de_AttributeValue(output[_sNSr], context); } - if (output["bootMode"] !== undefined) { - contents.BootMode = de_AttributeValue(output["bootMode"], context); + if (output[_bM] != null) { + contents[_BM] = de_AttributeValue(output[_bM], context); } - if (output["tpmSupport"] !== undefined) { - contents.TpmSupport = de_AttributeValue(output["tpmSupport"], context); + if (output[_tSp] != null) { + contents[_TSp] = de_AttributeValue(output[_tSp], context); } - if (output["uefiData"] !== undefined) { - contents.UefiData = de_AttributeValue(output["uefiData"], context); + if (output[_uD] != null) { + contents[_UDe] = de_AttributeValue(output[_uD], context); } - if (output["lastLaunchedTime"] !== undefined) { - contents.LastLaunchedTime = de_AttributeValue(output["lastLaunchedTime"], context); + if (output[_lLT] != null) { + contents[_LLT] = de_AttributeValue(output[_lLT], context); } - if (output["imdsSupport"] !== undefined) { - contents.ImdsSupport = de_AttributeValue(output["imdsSupport"], context); + if (output[_iSmd] != null) { + contents[_ISm] = de_AttributeValue(output[_iSmd], context); } return contents; }; @@ -81008,20 +80075,20 @@ const de_ImageList = (output: any, context: __SerdeContext): Image[] => { */ const de_ImageRecycleBinInfo = (output: any, context: __SerdeContext): ImageRecycleBinInfo => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["recycleBinEnterTime"] !== undefined) { - contents.RecycleBinEnterTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["recycleBinEnterTime"])); + if (output[_rBET] != null) { + contents[_RBET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rBET])); } - if (output["recycleBinExitTime"] !== undefined) { - contents.RecycleBinExitTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["recycleBinExitTime"])); + if (output[_rBETe] != null) { + contents[_RBETe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rBETe])); } return contents; }; @@ -81045,8 +80112,8 @@ const de_ImportClientVpnClientCertificateRevocationListResult = ( context: __SerdeContext ): ImportClientVpnClientCertificateRevocationListResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -81059,8 +80126,8 @@ const de_ImportImageLicenseConfigurationResponse = ( context: __SerdeContext ): ImportImageLicenseConfigurationResponse => { const contents: any = {}; - if (output["licenseConfigurationArn"] !== undefined) { - contents.LicenseConfigurationArn = __expectString(output["licenseConfigurationArn"]); + if (output[_lCA] != null) { + contents[_LCA] = __expectString(output[_lCA]); } return contents; }; @@ -81084,65 +80151,59 @@ const de_ImportImageLicenseSpecificationListResponse = ( */ const de_ImportImageResult = (output: any, context: __SerdeContext): ImportImageResult => { const contents: any = {}; - if (output["architecture"] !== undefined) { - contents.Architecture = __expectString(output["architecture"]); + if (output[_arc] != null) { + contents[_Arc] = __expectString(output[_arc]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["hypervisor"] !== undefined) { - contents.Hypervisor = __expectString(output["hypervisor"]); + if (output[_h] != null) { + contents[_H] = __expectString(output[_h]); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["importTaskId"] !== undefined) { - contents.ImportTaskId = __expectString(output["importTaskId"]); + if (output[_iTI] != null) { + contents[_ITI] = __expectString(output[_iTI]); } - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } - if (output["licenseType"] !== undefined) { - contents.LicenseType = __expectString(output["licenseType"]); + if (output[_lTi] != null) { + contents[_LTi] = __expectString(output[_lTi]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } if (output.snapshotDetailSet === "") { - contents.SnapshotDetails = []; - } else if (output["snapshotDetailSet"] !== undefined && output["snapshotDetailSet"]["item"] !== undefined) { - contents.SnapshotDetails = de_SnapshotDetailList( - __getArrayIfSingleItem(output["snapshotDetailSet"]["item"]), - context - ); + contents[_SDn] = []; + } else if (output[_sDSn] != null && output[_sDSn][_i] != null) { + contents[_SDn] = de_SnapshotDetailList(__getArrayIfSingleItem(output[_sDSn][_i]), context); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } if (output.licenseSpecifications === "") { - contents.LicenseSpecifications = []; - } else if (output["licenseSpecifications"] !== undefined && output["licenseSpecifications"]["item"] !== undefined) { - contents.LicenseSpecifications = de_ImportImageLicenseSpecificationListResponse( - __getArrayIfSingleItem(output["licenseSpecifications"]["item"]), - context - ); + contents[_LSi] = []; + } else if (output[_lS] != null && output[_lS][_i] != null) { + contents[_LSi] = de_ImportImageLicenseSpecificationListResponse(__getArrayIfSingleItem(output[_lS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["usageOperation"] !== undefined) { - contents.UsageOperation = __expectString(output["usageOperation"]); + if (output[_uO] != null) { + contents[_UO] = __expectString(output[_uO]); } return contents; }; @@ -81152,68 +80213,62 @@ const de_ImportImageResult = (output: any, context: __SerdeContext): ImportImage */ const de_ImportImageTask = (output: any, context: __SerdeContext): ImportImageTask => { const contents: any = {}; - if (output["architecture"] !== undefined) { - contents.Architecture = __expectString(output["architecture"]); + if (output[_arc] != null) { + contents[_Arc] = __expectString(output[_arc]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["hypervisor"] !== undefined) { - contents.Hypervisor = __expectString(output["hypervisor"]); + if (output[_h] != null) { + contents[_H] = __expectString(output[_h]); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["importTaskId"] !== undefined) { - contents.ImportTaskId = __expectString(output["importTaskId"]); + if (output[_iTI] != null) { + contents[_ITI] = __expectString(output[_iTI]); } - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } - if (output["licenseType"] !== undefined) { - contents.LicenseType = __expectString(output["licenseType"]); + if (output[_lTi] != null) { + contents[_LTi] = __expectString(output[_lTi]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } if (output.snapshotDetailSet === "") { - contents.SnapshotDetails = []; - } else if (output["snapshotDetailSet"] !== undefined && output["snapshotDetailSet"]["item"] !== undefined) { - contents.SnapshotDetails = de_SnapshotDetailList( - __getArrayIfSingleItem(output["snapshotDetailSet"]["item"]), - context - ); + contents[_SDn] = []; + } else if (output[_sDSn] != null && output[_sDSn][_i] != null) { + contents[_SDn] = de_SnapshotDetailList(__getArrayIfSingleItem(output[_sDSn][_i]), context); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } if (output.licenseSpecifications === "") { - contents.LicenseSpecifications = []; - } else if (output["licenseSpecifications"] !== undefined && output["licenseSpecifications"]["item"] !== undefined) { - contents.LicenseSpecifications = de_ImportImageLicenseSpecificationListResponse( - __getArrayIfSingleItem(output["licenseSpecifications"]["item"]), - context - ); + contents[_LSi] = []; + } else if (output[_lS] != null && output[_lS][_i] != null) { + contents[_LSi] = de_ImportImageLicenseSpecificationListResponse(__getArrayIfSingleItem(output[_lS][_i]), context); } - if (output["usageOperation"] !== undefined) { - contents.UsageOperation = __expectString(output["usageOperation"]); + if (output[_uO] != null) { + contents[_UO] = __expectString(output[_uO]); } - if (output["bootMode"] !== undefined) { - contents.BootMode = __expectString(output["bootMode"]); + if (output[_bM] != null) { + contents[_BM] = __expectString(output[_bM]); } return contents; }; @@ -81234,8 +80289,8 @@ const de_ImportImageTaskList = (output: any, context: __SerdeContext): ImportIma */ const de_ImportInstanceResult = (output: any, context: __SerdeContext): ImportInstanceResult => { const contents: any = {}; - if (output["conversionTask"] !== undefined) { - contents.ConversionTask = de_ConversionTask(output["conversionTask"], context); + if (output[_cTon] != null) { + contents[_CTonv] = de_ConversionTask(output[_cTon], context); } return contents; }; @@ -81245,19 +80300,19 @@ const de_ImportInstanceResult = (output: any, context: __SerdeContext): ImportIn */ const de_ImportInstanceTaskDetails = (output: any, context: __SerdeContext): ImportInstanceTaskDetails => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } if (output.volumes === "") { - contents.Volumes = []; - } else if (output["volumes"] !== undefined && output["volumes"]["item"] !== undefined) { - contents.Volumes = de_ImportInstanceVolumeDetailSet(__getArrayIfSingleItem(output["volumes"]["item"]), context); + contents[_Vol] = []; + } else if (output[_vo] != null && output[_vo][_i] != null) { + contents[_Vol] = de_ImportInstanceVolumeDetailSet(__getArrayIfSingleItem(output[_vo][_i]), context); } return contents; }; @@ -81267,26 +80322,26 @@ const de_ImportInstanceTaskDetails = (output: any, context: __SerdeContext): Imp */ const de_ImportInstanceVolumeDetailItem = (output: any, context: __SerdeContext): ImportInstanceVolumeDetailItem => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["bytesConverted"] !== undefined) { - contents.BytesConverted = __strictParseLong(output["bytesConverted"]) as number; + if (output[_bCy] != null) { + contents[_BCyt] = __strictParseLong(output[_bCy]) as number; } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["image"] !== undefined) { - contents.Image = de_DiskImageDescription(output["image"], context); + if (output[_im] != null) { + contents[_Im] = de_DiskImageDescription(output[_im], context); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["volume"] !== undefined) { - contents.Volume = de_DiskImageVolumeDescription(output["volume"], context); + if (output[_vol] != null) { + contents[_Vo] = de_DiskImageVolumeDescription(output[_vol], context); } return contents; }; @@ -81307,19 +80362,19 @@ const de_ImportInstanceVolumeDetailSet = (output: any, context: __SerdeContext): */ const de_ImportKeyPairResult = (output: any, context: __SerdeContext): ImportKeyPairResult => { const contents: any = {}; - if (output["keyFingerprint"] !== undefined) { - contents.KeyFingerprint = __expectString(output["keyFingerprint"]); + if (output[_kF] != null) { + contents[_KFe] = __expectString(output[_kF]); } - if (output["keyName"] !== undefined) { - contents.KeyName = __expectString(output["keyName"]); + if (output[_kN] != null) { + contents[_KN] = __expectString(output[_kN]); } - if (output["keyPairId"] !== undefined) { - contents.KeyPairId = __expectString(output["keyPairId"]); + if (output[_kPI] != null) { + contents[_KPI] = __expectString(output[_kPI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -81329,19 +80384,19 @@ const de_ImportKeyPairResult = (output: any, context: __SerdeContext): ImportKey */ const de_ImportSnapshotResult = (output: any, context: __SerdeContext): ImportSnapshotResult => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["importTaskId"] !== undefined) { - contents.ImportTaskId = __expectString(output["importTaskId"]); + if (output[_iTI] != null) { + contents[_ITI] = __expectString(output[_iTI]); } - if (output["snapshotTaskDetail"] !== undefined) { - contents.SnapshotTaskDetail = de_SnapshotTaskDetail(output["snapshotTaskDetail"], context); + if (output[_sTD] != null) { + contents[_STD] = de_SnapshotTaskDetail(output[_sTD], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -81351,19 +80406,19 @@ const de_ImportSnapshotResult = (output: any, context: __SerdeContext): ImportSn */ const de_ImportSnapshotTask = (output: any, context: __SerdeContext): ImportSnapshotTask => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["importTaskId"] !== undefined) { - contents.ImportTaskId = __expectString(output["importTaskId"]); + if (output[_iTI] != null) { + contents[_ITI] = __expectString(output[_iTI]); } - if (output["snapshotTaskDetail"] !== undefined) { - contents.SnapshotTaskDetail = de_SnapshotTaskDetail(output["snapshotTaskDetail"], context); + if (output[_sTD] != null) { + contents[_STD] = de_SnapshotTaskDetail(output[_sTD], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -81384,8 +80439,8 @@ const de_ImportSnapshotTaskList = (output: any, context: __SerdeContext): Import */ const de_ImportVolumeResult = (output: any, context: __SerdeContext): ImportVolumeResult => { const contents: any = {}; - if (output["conversionTask"] !== undefined) { - contents.ConversionTask = de_ConversionTask(output["conversionTask"], context); + if (output[_cTon] != null) { + contents[_CTonv] = de_ConversionTask(output[_cTon], context); } return contents; }; @@ -81395,20 +80450,20 @@ const de_ImportVolumeResult = (output: any, context: __SerdeContext): ImportVolu */ const de_ImportVolumeTaskDetails = (output: any, context: __SerdeContext): ImportVolumeTaskDetails => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["bytesConverted"] !== undefined) { - contents.BytesConverted = __strictParseLong(output["bytesConverted"]) as number; + if (output[_bCy] != null) { + contents[_BCyt] = __strictParseLong(output[_bCy]) as number; } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["image"] !== undefined) { - contents.Image = de_DiskImageDescription(output["image"], context); + if (output[_im] != null) { + contents[_Im] = de_DiskImageDescription(output[_im], context); } - if (output["volume"] !== undefined) { - contents.Volume = de_DiskImageVolumeDescription(output["volume"], context); + if (output[_vol] != null) { + contents[_Vo] = de_DiskImageVolumeDescription(output[_vol], context); } return contents; }; @@ -81419,15 +80474,12 @@ const de_ImportVolumeTaskDetails = (output: any, context: __SerdeContext): Impor const de_InferenceAcceleratorInfo = (output: any, context: __SerdeContext): InferenceAcceleratorInfo => { const contents: any = {}; if (output.accelerators === "") { - contents.Accelerators = []; - } else if (output["accelerators"] !== undefined && output["accelerators"]["member"] !== undefined) { - contents.Accelerators = de_InferenceDeviceInfoList( - __getArrayIfSingleItem(output["accelerators"]["member"]), - context - ); + contents[_Acc] = []; + } else if (output[_acc] != null && output[_acc][_mem] != null) { + contents[_Acc] = de_InferenceDeviceInfoList(__getArrayIfSingleItem(output[_acc][_mem]), context); } - if (output["totalInferenceMemoryInMiB"] !== undefined) { - contents.TotalInferenceMemoryInMiB = __strictParseInt32(output["totalInferenceMemoryInMiB"]) as number; + if (output[_tIMIMB] != null) { + contents[_TIMIMB] = __strictParseInt32(output[_tIMIMB]) as number; } return contents; }; @@ -81437,17 +80489,17 @@ const de_InferenceAcceleratorInfo = (output: any, context: __SerdeContext): Infe */ const de_InferenceDeviceInfo = (output: any, context: __SerdeContext): InferenceDeviceInfo => { const contents: any = {}; - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["manufacturer"] !== undefined) { - contents.Manufacturer = __expectString(output["manufacturer"]); + if (output[_man] != null) { + contents[_Man] = __expectString(output[_man]); } - if (output["memoryInfo"] !== undefined) { - contents.MemoryInfo = de_InferenceDeviceMemoryInfo(output["memoryInfo"], context); + if (output[_mIe] != null) { + contents[_MIe] = de_InferenceDeviceMemoryInfo(output[_mIe], context); } return contents; }; @@ -81468,8 +80520,8 @@ const de_InferenceDeviceInfoList = (output: any, context: __SerdeContext): Infer */ const de_InferenceDeviceMemoryInfo = (output: any, context: __SerdeContext): InferenceDeviceMemoryInfo => { const contents: any = {}; - if (output["sizeInMiB"] !== undefined) { - contents.SizeInMiB = __strictParseInt32(output["sizeInMiB"]) as number; + if (output[_sIMB] != null) { + contents[_SIMB] = __strictParseInt32(output[_sIMB]) as number; } return contents; }; @@ -81490,215 +80542,195 @@ const de_InsideCidrBlocksStringList = (output: any, context: __SerdeContext): st */ const de_Instance = (output: any, context: __SerdeContext): Instance => { const contents: any = {}; - if (output["amiLaunchIndex"] !== undefined) { - contents.AmiLaunchIndex = __strictParseInt32(output["amiLaunchIndex"]) as number; + if (output[_aLI] != null) { + contents[_ALI] = __strictParseInt32(output[_aLI]) as number; } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["kernelId"] !== undefined) { - contents.KernelId = __expectString(output["kernelId"]); + if (output[_kI] != null) { + contents[_KI] = __expectString(output[_kI]); } - if (output["keyName"] !== undefined) { - contents.KeyName = __expectString(output["keyName"]); + if (output[_kN] != null) { + contents[_KN] = __expectString(output[_kN]); } - if (output["launchTime"] !== undefined) { - contents.LaunchTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["launchTime"])); + if (output[_lTau] != null) { + contents[_LTaun] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lTau])); } - if (output["monitoring"] !== undefined) { - contents.Monitoring = de_Monitoring(output["monitoring"], context); + if (output[_mo] != null) { + contents[_Mon] = de_Monitoring(output[_mo], context); } - if (output["placement"] !== undefined) { - contents.Placement = de_Placement(output["placement"], context); + if (output[_pla] != null) { + contents[_Pl] = de_Placement(output[_pla], context); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output["dnsName"] !== undefined) { - contents.PublicDnsName = __expectString(output["dnsName"]); + if (output[_dNn] != null) { + contents[_PDNu] = __expectString(output[_dNn]); } - if (output["ipAddress"] !== undefined) { - contents.PublicIpAddress = __expectString(output["ipAddress"]); + if (output[_iAp] != null) { + contents[_PIAu] = __expectString(output[_iAp]); } - if (output["ramdiskId"] !== undefined) { - contents.RamdiskId = __expectString(output["ramdiskId"]); + if (output[_rIa] != null) { + contents[_RIa] = __expectString(output[_rIa]); } - if (output["instanceState"] !== undefined) { - contents.State = de_InstanceState(output["instanceState"], context); + if (output[_iSnst] != null) { + contents[_Stat] = de_InstanceState(output[_iSnst], context); } - if (output["reason"] !== undefined) { - contents.StateTransitionReason = __expectString(output["reason"]); + if (output[_rea] != null) { + contents[_STRt] = __expectString(output[_rea]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["architecture"] !== undefined) { - contents.Architecture = __expectString(output["architecture"]); + if (output[_arc] != null) { + contents[_Arc] = __expectString(output[_arc]); } if (output.blockDeviceMapping === "") { - contents.BlockDeviceMappings = []; - } else if (output["blockDeviceMapping"] !== undefined && output["blockDeviceMapping"]["item"] !== undefined) { - contents.BlockDeviceMappings = de_InstanceBlockDeviceMappingList( - __getArrayIfSingleItem(output["blockDeviceMapping"]["item"]), - context - ); + contents[_BDM] = []; + } else if (output[_bDM] != null && output[_bDM][_i] != null) { + contents[_BDM] = de_InstanceBlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["ebsOptimized"] !== undefined) { - contents.EbsOptimized = __parseBoolean(output["ebsOptimized"]); + if (output[_eO] != null) { + contents[_EO] = __parseBoolean(output[_eO]); } - if (output["enaSupport"] !== undefined) { - contents.EnaSupport = __parseBoolean(output["enaSupport"]); + if (output[_eSna] != null) { + contents[_ESn] = __parseBoolean(output[_eSna]); } - if (output["hypervisor"] !== undefined) { - contents.Hypervisor = __expectString(output["hypervisor"]); + if (output[_h] != null) { + contents[_H] = __expectString(output[_h]); } - if (output["iamInstanceProfile"] !== undefined) { - contents.IamInstanceProfile = de_IamInstanceProfile(output["iamInstanceProfile"], context); + if (output[_iIP] != null) { + contents[_IIP] = de_IamInstanceProfile(output[_iIP], context); } - if (output["instanceLifecycle"] !== undefined) { - contents.InstanceLifecycle = __expectString(output["instanceLifecycle"]); + if (output[_iLn] != null) { + contents[_ILn] = __expectString(output[_iLn]); } if (output.elasticGpuAssociationSet === "") { - contents.ElasticGpuAssociations = []; - } else if ( - output["elasticGpuAssociationSet"] !== undefined && - output["elasticGpuAssociationSet"]["item"] !== undefined - ) { - contents.ElasticGpuAssociations = de_ElasticGpuAssociationList( - __getArrayIfSingleItem(output["elasticGpuAssociationSet"]["item"]), - context - ); + contents[_EGA] = []; + } else if (output[_eGASl] != null && output[_eGASl][_i] != null) { + contents[_EGA] = de_ElasticGpuAssociationList(__getArrayIfSingleItem(output[_eGASl][_i]), context); } if (output.elasticInferenceAcceleratorAssociationSet === "") { - contents.ElasticInferenceAcceleratorAssociations = []; - } else if ( - output["elasticInferenceAcceleratorAssociationSet"] !== undefined && - output["elasticInferenceAcceleratorAssociationSet"]["item"] !== undefined - ) { - contents.ElasticInferenceAcceleratorAssociations = de_ElasticInferenceAcceleratorAssociationList( - __getArrayIfSingleItem(output["elasticInferenceAcceleratorAssociationSet"]["item"]), + contents[_EIAAl] = []; + } else if (output[_eIAASl] != null && output[_eIAASl][_i] != null) { + contents[_EIAAl] = de_ElasticInferenceAcceleratorAssociationList( + __getArrayIfSingleItem(output[_eIAASl][_i]), context ); } if (output.networkInterfaceSet === "") { - contents.NetworkInterfaces = []; - } else if (output["networkInterfaceSet"] !== undefined && output["networkInterfaceSet"]["item"] !== undefined) { - contents.NetworkInterfaces = de_InstanceNetworkInterfaceList( - __getArrayIfSingleItem(output["networkInterfaceSet"]["item"]), - context - ); + contents[_NI] = []; + } else if (output[_nIS] != null && output[_nIS][_i] != null) { + contents[_NI] = de_InstanceNetworkInterfaceList(__getArrayIfSingleItem(output[_nIS][_i]), context); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["rootDeviceName"] !== undefined) { - contents.RootDeviceName = __expectString(output["rootDeviceName"]); + if (output[_rDN] != null) { + contents[_RDN] = __expectString(output[_rDN]); } - if (output["rootDeviceType"] !== undefined) { - contents.RootDeviceType = __expectString(output["rootDeviceType"]); + if (output[_rDT] != null) { + contents[_RDT] = __expectString(output[_rDT]); } if (output.groupSet === "") { - contents.SecurityGroups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.SecurityGroups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_SG] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_SG] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output["sourceDestCheck"] !== undefined) { - contents.SourceDestCheck = __parseBoolean(output["sourceDestCheck"]); + if (output[_sDC] != null) { + contents[_SDC] = __parseBoolean(output[_sDC]); } - if (output["spotInstanceRequestId"] !== undefined) { - contents.SpotInstanceRequestId = __expectString(output["spotInstanceRequestId"]); + if (output[_sIRI] != null) { + contents[_SIRIp] = __expectString(output[_sIRI]); } - if (output["sriovNetSupport"] !== undefined) { - contents.SriovNetSupport = __expectString(output["sriovNetSupport"]); + if (output[_sNSr] != null) { + contents[_SNS] = __expectString(output[_sNSr]); } - if (output["stateReason"] !== undefined) { - contents.StateReason = de_StateReason(output["stateReason"], context); + if (output[_sR] != null) { + contents[_SRt] = de_StateReason(output[_sR], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["virtualizationType"] !== undefined) { - contents.VirtualizationType = __expectString(output["virtualizationType"]); + if (output[_vTi] != null) { + contents[_VTir] = __expectString(output[_vTi]); } - if (output["cpuOptions"] !== undefined) { - contents.CpuOptions = de_CpuOptions(output["cpuOptions"], context); + if (output[_cO] != null) { + contents[_CO] = de_CpuOptions(output[_cO], context); } - if (output["capacityReservationId"] !== undefined) { - contents.CapacityReservationId = __expectString(output["capacityReservationId"]); + if (output[_cRI] != null) { + contents[_CRI] = __expectString(output[_cRI]); } - if (output["capacityReservationSpecification"] !== undefined) { - contents.CapacityReservationSpecification = de_CapacityReservationSpecificationResponse( - output["capacityReservationSpecification"], - context - ); + if (output[_cRSa] != null) { + contents[_CRS] = de_CapacityReservationSpecificationResponse(output[_cRSa], context); } - if (output["hibernationOptions"] !== undefined) { - contents.HibernationOptions = de_HibernationOptions(output["hibernationOptions"], context); + if (output[_hO] != null) { + contents[_HO] = de_HibernationOptions(output[_hO], context); } if (output.licenseSet === "") { - contents.Licenses = []; - } else if (output["licenseSet"] !== undefined && output["licenseSet"]["item"] !== undefined) { - contents.Licenses = de_LicenseList(__getArrayIfSingleItem(output["licenseSet"]["item"]), context); + contents[_Lic] = []; + } else if (output[_lSi] != null && output[_lSi][_i] != null) { + contents[_Lic] = de_LicenseList(__getArrayIfSingleItem(output[_lSi][_i]), context); } - if (output["metadataOptions"] !== undefined) { - contents.MetadataOptions = de_InstanceMetadataOptionsResponse(output["metadataOptions"], context); + if (output[_mO] != null) { + contents[_MO] = de_InstanceMetadataOptionsResponse(output[_mO], context); } - if (output["enclaveOptions"] !== undefined) { - contents.EnclaveOptions = de_EnclaveOptions(output["enclaveOptions"], context); + if (output[_eOn] != null) { + contents[_EOn] = de_EnclaveOptions(output[_eOn], context); } - if (output["bootMode"] !== undefined) { - contents.BootMode = __expectString(output["bootMode"]); + if (output[_bM] != null) { + contents[_BM] = __expectString(output[_bM]); } - if (output["platformDetails"] !== undefined) { - contents.PlatformDetails = __expectString(output["platformDetails"]); + if (output[_pDl] != null) { + contents[_PDl] = __expectString(output[_pDl]); } - if (output["usageOperation"] !== undefined) { - contents.UsageOperation = __expectString(output["usageOperation"]); + if (output[_uO] != null) { + contents[_UO] = __expectString(output[_uO]); } - if (output["usageOperationUpdateTime"] !== undefined) { - contents.UsageOperationUpdateTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["usageOperationUpdateTime"]) - ); + if (output[_uOUT] != null) { + contents[_UOUT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uOUT])); } - if (output["privateDnsNameOptions"] !== undefined) { - contents.PrivateDnsNameOptions = de_PrivateDnsNameOptionsResponse(output["privateDnsNameOptions"], context); + if (output[_pDNO] != null) { + contents[_PDNO] = de_PrivateDnsNameOptionsResponse(output[_pDNO], context); } - if (output["ipv6Address"] !== undefined) { - contents.Ipv6Address = __expectString(output["ipv6Address"]); + if (output[_iApv] != null) { + contents[_IApv] = __expectString(output[_iApv]); } - if (output["tpmSupport"] !== undefined) { - contents.TpmSupport = __expectString(output["tpmSupport"]); + if (output[_tSp] != null) { + contents[_TSp] = __expectString(output[_tSp]); } - if (output["maintenanceOptions"] !== undefined) { - contents.MaintenanceOptions = de_InstanceMaintenanceOptions(output["maintenanceOptions"], context); + if (output[_mOa] != null) { + contents[_MOa] = de_InstanceMaintenanceOptions(output[_mOa], context); } - if (output["currentInstanceBootMode"] !== undefined) { - contents.CurrentInstanceBootMode = __expectString(output["currentInstanceBootMode"]); + if (output[_cIBM] != null) { + contents[_CIBM] = __expectString(output[_cIBM]); } return contents; }; @@ -81711,14 +80743,11 @@ const de_InstanceAttachmentEnaSrdSpecification = ( context: __SerdeContext ): InstanceAttachmentEnaSrdSpecification => { const contents: any = {}; - if (output["enaSrdEnabled"] !== undefined) { - contents.EnaSrdEnabled = __parseBoolean(output["enaSrdEnabled"]); + if (output[_eSE] != null) { + contents[_ESE] = __parseBoolean(output[_eSE]); } - if (output["enaSrdUdpSpecification"] !== undefined) { - contents.EnaSrdUdpSpecification = de_InstanceAttachmentEnaSrdUdpSpecification( - output["enaSrdUdpSpecification"], - context - ); + if (output[_eSUS] != null) { + contents[_ESUS] = de_InstanceAttachmentEnaSrdUdpSpecification(output[_eSUS], context); } return contents; }; @@ -81731,8 +80760,8 @@ const de_InstanceAttachmentEnaSrdUdpSpecification = ( context: __SerdeContext ): InstanceAttachmentEnaSrdUdpSpecification => { const contents: any = {}; - if (output["enaSrdUdpEnabled"] !== undefined) { - contents.EnaSrdUdpEnabled = __parseBoolean(output["enaSrdUdpEnabled"]); + if (output[_eSUE] != null) { + contents[_ESUE] = __parseBoolean(output[_eSUE]); } return contents; }; @@ -81743,67 +80772,61 @@ const de_InstanceAttachmentEnaSrdUdpSpecification = ( const de_InstanceAttribute = (output: any, context: __SerdeContext): InstanceAttribute => { const contents: any = {}; if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.Groups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } if (output.blockDeviceMapping === "") { - contents.BlockDeviceMappings = []; - } else if (output["blockDeviceMapping"] !== undefined && output["blockDeviceMapping"]["item"] !== undefined) { - contents.BlockDeviceMappings = de_InstanceBlockDeviceMappingList( - __getArrayIfSingleItem(output["blockDeviceMapping"]["item"]), - context - ); + contents[_BDM] = []; + } else if (output[_bDM] != null && output[_bDM][_i] != null) { + contents[_BDM] = de_InstanceBlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); } - if (output["disableApiTermination"] !== undefined) { - contents.DisableApiTermination = de_AttributeBooleanValue(output["disableApiTermination"], context); + if (output[_dAT] != null) { + contents[_DATis] = de_AttributeBooleanValue(output[_dAT], context); } - if (output["enaSupport"] !== undefined) { - contents.EnaSupport = de_AttributeBooleanValue(output["enaSupport"], context); + if (output[_eSna] != null) { + contents[_ESn] = de_AttributeBooleanValue(output[_eSna], context); } - if (output["enclaveOptions"] !== undefined) { - contents.EnclaveOptions = de_EnclaveOptions(output["enclaveOptions"], context); + if (output[_eOn] != null) { + contents[_EOn] = de_EnclaveOptions(output[_eOn], context); } - if (output["ebsOptimized"] !== undefined) { - contents.EbsOptimized = de_AttributeBooleanValue(output["ebsOptimized"], context); + if (output[_eO] != null) { + contents[_EO] = de_AttributeBooleanValue(output[_eO], context); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceInitiatedShutdownBehavior"] !== undefined) { - contents.InstanceInitiatedShutdownBehavior = de_AttributeValue( - output["instanceInitiatedShutdownBehavior"], - context - ); + if (output[_iISB] != null) { + contents[_IISB] = de_AttributeValue(output[_iISB], context); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = de_AttributeValue(output["instanceType"], context); + if (output[_iT] != null) { + contents[_IT] = de_AttributeValue(output[_iT], context); } - if (output["kernel"] !== undefined) { - contents.KernelId = de_AttributeValue(output["kernel"], context); + if (output[_ke] != null) { + contents[_KI] = de_AttributeValue(output[_ke], context); } if (output.productCodes === "") { - contents.ProductCodes = []; - } else if (output["productCodes"] !== undefined && output["productCodes"]["item"] !== undefined) { - contents.ProductCodes = de_ProductCodeList(__getArrayIfSingleItem(output["productCodes"]["item"]), context); + contents[_PCr] = []; + } else if (output[_pC] != null && output[_pC][_i] != null) { + contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output["ramdisk"] !== undefined) { - contents.RamdiskId = de_AttributeValue(output["ramdisk"], context); + if (output[_ra] != null) { + contents[_RIa] = de_AttributeValue(output[_ra], context); } - if (output["rootDeviceName"] !== undefined) { - contents.RootDeviceName = de_AttributeValue(output["rootDeviceName"], context); + if (output[_rDN] != null) { + contents[_RDN] = de_AttributeValue(output[_rDN], context); } - if (output["sourceDestCheck"] !== undefined) { - contents.SourceDestCheck = de_AttributeBooleanValue(output["sourceDestCheck"], context); + if (output[_sDC] != null) { + contents[_SDC] = de_AttributeBooleanValue(output[_sDC], context); } - if (output["sriovNetSupport"] !== undefined) { - contents.SriovNetSupport = de_AttributeValue(output["sriovNetSupport"], context); + if (output[_sNSr] != null) { + contents[_SNS] = de_AttributeValue(output[_sNSr], context); } - if (output["userData"] !== undefined) { - contents.UserData = de_AttributeValue(output["userData"], context); + if (output[_uDs] != null) { + contents[_UD] = de_AttributeValue(output[_uDs], context); } - if (output["disableApiStop"] !== undefined) { - contents.DisableApiStop = de_AttributeBooleanValue(output["disableApiStop"], context); + if (output[_dASi] != null) { + contents[_DAS] = de_AttributeBooleanValue(output[_dASi], context); } return contents; }; @@ -81813,11 +80836,11 @@ const de_InstanceAttribute = (output: any, context: __SerdeContext): InstanceAtt */ const de_InstanceBlockDeviceMapping = (output: any, context: __SerdeContext): InstanceBlockDeviceMapping => { const contents: any = {}; - if (output["deviceName"] !== undefined) { - contents.DeviceName = __expectString(output["deviceName"]); + if (output[_dN] != null) { + contents[_DN] = __expectString(output[_dN]); } - if (output["ebs"] !== undefined) { - contents.Ebs = de_EbsInstanceBlockDevice(output["ebs"], context); + if (output[_eb] != null) { + contents[_E] = de_EbsInstanceBlockDevice(output[_eb], context); } return contents; }; @@ -81838,14 +80861,14 @@ const de_InstanceBlockDeviceMappingList = (output: any, context: __SerdeContext) */ const de_InstanceCapacity = (output: any, context: __SerdeContext): InstanceCapacity => { const contents: any = {}; - if (output["availableCapacity"] !== undefined) { - contents.AvailableCapacity = __strictParseInt32(output["availableCapacity"]) as number; + if (output[_aC] != null) { + contents[_ACv] = __strictParseInt32(output[_aC]) as number; } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["totalCapacity"] !== undefined) { - contents.TotalCapacity = __strictParseInt32(output["totalCapacity"]) as number; + if (output[_tC] != null) { + contents[_TCo] = __strictParseInt32(output[_tC]) as number; } return contents; }; @@ -81866,11 +80889,11 @@ const de_InstanceConnectEndpointSet = (output: any, context: __SerdeContext): Ec */ const de_InstanceCount = (output: any, context: __SerdeContext): InstanceCount => { const contents: any = {}; - if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; + if (output[_iC] != null) { + contents[_IC] = __strictParseInt32(output[_iC]) as number; } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -81891,11 +80914,11 @@ const de_InstanceCountList = (output: any, context: __SerdeContext): InstanceCou */ const de_InstanceCreditSpecification = (output: any, context: __SerdeContext): InstanceCreditSpecification => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["cpuCredits"] !== undefined) { - contents.CpuCredits = __expectString(output["cpuCredits"]); + if (output[_cCp] != null) { + contents[_CCp] = __expectString(output[_cCp]); } return contents; }; @@ -81916,33 +80939,30 @@ const de_InstanceCreditSpecificationList = (output: any, context: __SerdeContext */ const de_InstanceEventWindow = (output: any, context: __SerdeContext): InstanceEventWindow => { const contents: any = {}; - if (output["instanceEventWindowId"] !== undefined) { - contents.InstanceEventWindowId = __expectString(output["instanceEventWindowId"]); + if (output[_iEWI] != null) { + contents[_IEWI] = __expectString(output[_iEWI]); } if (output.timeRangeSet === "") { - contents.TimeRanges = []; - } else if (output["timeRangeSet"] !== undefined && output["timeRangeSet"]["item"] !== undefined) { - contents.TimeRanges = de_InstanceEventWindowTimeRangeList( - __getArrayIfSingleItem(output["timeRangeSet"]["item"]), - context - ); + contents[_TRi] = []; + } else if (output[_tRSi] != null && output[_tRSi][_i] != null) { + contents[_TRi] = de_InstanceEventWindowTimeRangeList(__getArrayIfSingleItem(output[_tRSi][_i]), context); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["cronExpression"] !== undefined) { - contents.CronExpression = __expectString(output["cronExpression"]); + if (output[_cEr] != null) { + contents[_CE] = __expectString(output[_cEr]); } - if (output["associationTarget"] !== undefined) { - contents.AssociationTarget = de_InstanceEventWindowAssociationTarget(output["associationTarget"], context); + if (output[_aTs] != null) { + contents[_AT] = de_InstanceEventWindowAssociationTarget(output[_aTs], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -81956,22 +80976,19 @@ const de_InstanceEventWindowAssociationTarget = ( ): InstanceEventWindowAssociationTarget => { const contents: any = {}; if (output.instanceIdSet === "") { - contents.InstanceIds = []; - } else if (output["instanceIdSet"] !== undefined && output["instanceIdSet"]["item"] !== undefined) { - contents.InstanceIds = de_InstanceIdList(__getArrayIfSingleItem(output["instanceIdSet"]["item"]), context); + contents[_IIns] = []; + } else if (output[_iIS] != null && output[_iIS][_i] != null) { + contents[_IIns] = de_InstanceIdList(__getArrayIfSingleItem(output[_iIS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } if (output.dedicatedHostIdSet === "") { - contents.DedicatedHostIds = []; - } else if (output["dedicatedHostIdSet"] !== undefined && output["dedicatedHostIdSet"]["item"] !== undefined) { - contents.DedicatedHostIds = de_DedicatedHostIdList( - __getArrayIfSingleItem(output["dedicatedHostIdSet"]["item"]), - context - ); + contents[_DHI] = []; + } else if (output[_dHIS] != null && output[_dHIS][_i] != null) { + contents[_DHI] = de_DedicatedHostIdList(__getArrayIfSingleItem(output[_dHIS][_i]), context); } return contents; }; @@ -81992,11 +81009,11 @@ const de_InstanceEventWindowSet = (output: any, context: __SerdeContext): Instan */ const de_InstanceEventWindowStateChange = (output: any, context: __SerdeContext): InstanceEventWindowStateChange => { const contents: any = {}; - if (output["instanceEventWindowId"] !== undefined) { - contents.InstanceEventWindowId = __expectString(output["instanceEventWindowId"]); + if (output[_iEWI] != null) { + contents[_IEWI] = __expectString(output[_iEWI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -82006,17 +81023,17 @@ const de_InstanceEventWindowStateChange = (output: any, context: __SerdeContext) */ const de_InstanceEventWindowTimeRange = (output: any, context: __SerdeContext): InstanceEventWindowTimeRange => { const contents: any = {}; - if (output["startWeekDay"] !== undefined) { - contents.StartWeekDay = __expectString(output["startWeekDay"]); + if (output[_sWD] != null) { + contents[_SWD] = __expectString(output[_sWD]); } - if (output["startHour"] !== undefined) { - contents.StartHour = __strictParseInt32(output["startHour"]) as number; + if (output[_sH] != null) { + contents[_SH] = __strictParseInt32(output[_sH]) as number; } - if (output["endWeekDay"] !== undefined) { - contents.EndWeekDay = __expectString(output["endWeekDay"]); + if (output[_eWD] != null) { + contents[_EWD] = __expectString(output[_eWD]); } - if (output["endHour"] !== undefined) { - contents.EndHour = __strictParseInt32(output["endHour"]) as number; + if (output[_eH] != null) { + contents[_EH] = __strictParseInt32(output[_eH]) as number; } return contents; }; @@ -82037,11 +81054,11 @@ const de_InstanceEventWindowTimeRangeList = (output: any, context: __SerdeContex */ const de_InstanceExportDetails = (output: any, context: __SerdeContext): InstanceExportDetails => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["targetEnvironment"] !== undefined) { - contents.TargetEnvironment = __expectString(output["targetEnvironment"]); + if (output[_tE] != null) { + contents[_TE] = __expectString(output[_tE]); } return contents; }; @@ -82054,11 +81071,11 @@ const de_InstanceFamilyCreditSpecification = ( context: __SerdeContext ): InstanceFamilyCreditSpecification => { const contents: any = {}; - if (output["instanceFamily"] !== undefined) { - contents.InstanceFamily = __expectString(output["instanceFamily"]); + if (output[_iF] != null) { + contents[_IF] = __expectString(output[_iF]); } - if (output["cpuCredits"] !== undefined) { - contents.CpuCredits = __expectString(output["cpuCredits"]); + if (output[_cCp] != null) { + contents[_CCp] = __expectString(output[_cCp]); } return contents; }; @@ -82112,8 +81129,8 @@ const de_InstanceIdsSet = (output: any, context: __SerdeContext): string[] => { */ const de_InstanceIpv4Prefix = (output: any, context: __SerdeContext): InstanceIpv4Prefix => { const contents: any = {}; - if (output["ipv4Prefix"] !== undefined) { - contents.Ipv4Prefix = __expectString(output["ipv4Prefix"]); + if (output[_iPpv] != null) { + contents[_IPpvr] = __expectString(output[_iPpv]); } return contents; }; @@ -82134,11 +81151,11 @@ const de_InstanceIpv4PrefixList = (output: any, context: __SerdeContext): Instan */ const de_InstanceIpv6Address = (output: any, context: __SerdeContext): InstanceIpv6Address => { const contents: any = {}; - if (output["ipv6Address"] !== undefined) { - contents.Ipv6Address = __expectString(output["ipv6Address"]); + if (output[_iApv] != null) { + contents[_IApv] = __expectString(output[_iApv]); } - if (output["isPrimaryIpv6"] !== undefined) { - contents.IsPrimaryIpv6 = __parseBoolean(output["isPrimaryIpv6"]); + if (output[_iPI] != null) { + contents[_IPIs] = __parseBoolean(output[_iPI]); } return contents; }; @@ -82159,8 +81176,8 @@ const de_InstanceIpv6AddressList = (output: any, context: __SerdeContext): Insta */ const de_InstanceIpv6Prefix = (output: any, context: __SerdeContext): InstanceIpv6Prefix => { const contents: any = {}; - if (output["ipv6Prefix"] !== undefined) { - contents.Ipv6Prefix = __expectString(output["ipv6Prefix"]); + if (output[_iPpvr] != null) { + contents[_IPpvre] = __expectString(output[_iPpvr]); } return contents; }; @@ -82192,8 +81209,8 @@ const de_InstanceList = (output: any, context: __SerdeContext): Instance[] => { */ const de_InstanceMaintenanceOptions = (output: any, context: __SerdeContext): InstanceMaintenanceOptions => { const contents: any = {}; - if (output["autoRecovery"] !== undefined) { - contents.AutoRecovery = __expectString(output["autoRecovery"]); + if (output[_aRu] != null) { + contents[_ARu] = __expectString(output[_aRu]); } return contents; }; @@ -82203,23 +81220,23 @@ const de_InstanceMaintenanceOptions = (output: any, context: __SerdeContext): In */ const de_InstanceMetadataOptionsResponse = (output: any, context: __SerdeContext): InstanceMetadataOptionsResponse => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["httpTokens"] !== undefined) { - contents.HttpTokens = __expectString(output["httpTokens"]); + if (output[_hT] != null) { + contents[_HT] = __expectString(output[_hT]); } - if (output["httpPutResponseHopLimit"] !== undefined) { - contents.HttpPutResponseHopLimit = __strictParseInt32(output["httpPutResponseHopLimit"]) as number; + if (output[_hPRHL] != null) { + contents[_HPRHL] = __strictParseInt32(output[_hPRHL]) as number; } - if (output["httpEndpoint"] !== undefined) { - contents.HttpEndpoint = __expectString(output["httpEndpoint"]); + if (output[_hE] != null) { + contents[_HE] = __expectString(output[_hE]); } - if (output["httpProtocolIpv6"] !== undefined) { - contents.HttpProtocolIpv6 = __expectString(output["httpProtocolIpv6"]); + if (output[_hPI] != null) { + contents[_HPI] = __expectString(output[_hPI]); } - if (output["instanceMetadataTags"] !== undefined) { - contents.InstanceMetadataTags = __expectString(output["instanceMetadataTags"]); + if (output[_iMT] != null) { + contents[_IMT] = __expectString(output[_iMT]); } return contents; }; @@ -82229,11 +81246,11 @@ const de_InstanceMetadataOptionsResponse = (output: any, context: __SerdeContext */ const de_InstanceMonitoring = (output: any, context: __SerdeContext): InstanceMonitoring => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["monitoring"] !== undefined) { - contents.Monitoring = de_Monitoring(output["monitoring"], context); + if (output[_mo] != null) { + contents[_Mon] = de_Monitoring(output[_mo], context); } return contents; }; @@ -82254,81 +81271,72 @@ const de_InstanceMonitoringList = (output: any, context: __SerdeContext): Instan */ const de_InstanceNetworkInterface = (output: any, context: __SerdeContext): InstanceNetworkInterface => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_InstanceNetworkInterfaceAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_InstanceNetworkInterfaceAssociation(output[_ass], context); } - if (output["attachment"] !== undefined) { - contents.Attachment = de_InstanceNetworkInterfaceAttachment(output["attachment"], context); + if (output[_at] != null) { + contents[_Att] = de_InstanceNetworkInterfaceAttachment(output[_at], context); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.Groups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } if (output.ipv6AddressesSet === "") { - contents.Ipv6Addresses = []; - } else if (output["ipv6AddressesSet"] !== undefined && output["ipv6AddressesSet"]["item"] !== undefined) { - contents.Ipv6Addresses = de_InstanceIpv6AddressList( - __getArrayIfSingleItem(output["ipv6AddressesSet"]["item"]), - context - ); + contents[_IA] = []; + } else if (output[_iASp] != null && output[_iASp][_i] != null) { + contents[_IA] = de_InstanceIpv6AddressList(__getArrayIfSingleItem(output[_iASp][_i]), context); } - if (output["macAddress"] !== undefined) { - contents.MacAddress = __expectString(output["macAddress"]); + if (output[_mAa] != null) { + contents[_MAa] = __expectString(output[_mAa]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } if (output.privateIpAddressesSet === "") { - contents.PrivateIpAddresses = []; - } else if (output["privateIpAddressesSet"] !== undefined && output["privateIpAddressesSet"]["item"] !== undefined) { - contents.PrivateIpAddresses = de_InstancePrivateIpAddressList( - __getArrayIfSingleItem(output["privateIpAddressesSet"]["item"]), - context - ); + contents[_PIA] = []; + } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { + contents[_PIA] = de_InstancePrivateIpAddressList(__getArrayIfSingleItem(output[_pIAS][_i]), context); } - if (output["sourceDestCheck"] !== undefined) { - contents.SourceDestCheck = __parseBoolean(output["sourceDestCheck"]); + if (output[_sDC] != null) { + contents[_SDC] = __parseBoolean(output[_sDC]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["interfaceType"] !== undefined) { - contents.InterfaceType = __expectString(output["interfaceType"]); + if (output[_iTnt] != null) { + contents[_ITn] = __expectString(output[_iTnt]); } if (output.ipv4PrefixSet === "") { - contents.Ipv4Prefixes = []; - } else if (output["ipv4PrefixSet"] !== undefined && output["ipv4PrefixSet"]["item"] !== undefined) { - contents.Ipv4Prefixes = de_InstanceIpv4PrefixList(__getArrayIfSingleItem(output["ipv4PrefixSet"]["item"]), context); + contents[_IPp] = []; + } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) { + contents[_IPp] = de_InstanceIpv4PrefixList(__getArrayIfSingleItem(output[_iPSpv][_i]), context); } if (output.ipv6PrefixSet === "") { - contents.Ipv6Prefixes = []; - } else if (output["ipv6PrefixSet"] !== undefined && output["ipv6PrefixSet"]["item"] !== undefined) { - contents.Ipv6Prefixes = de_InstanceIpv6PrefixList(__getArrayIfSingleItem(output["ipv6PrefixSet"]["item"]), context); + contents[_IP] = []; + } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) { + contents[_IP] = de_InstanceIpv6PrefixList(__getArrayIfSingleItem(output[_iPSpvr][_i]), context); } - if (output["connectionTrackingConfiguration"] !== undefined) { - contents.ConnectionTrackingConfiguration = de_ConnectionTrackingSpecificationResponse( - output["connectionTrackingConfiguration"], - context - ); + if (output[_cTC] != null) { + contents[_CTC] = de_ConnectionTrackingSpecificationResponse(output[_cTC], context); } return contents; }; @@ -82341,20 +81349,20 @@ const de_InstanceNetworkInterfaceAssociation = ( context: __SerdeContext ): InstanceNetworkInterfaceAssociation => { const contents: any = {}; - if (output["carrierIp"] !== undefined) { - contents.CarrierIp = __expectString(output["carrierIp"]); + if (output[_cI] != null) { + contents[_CIa] = __expectString(output[_cI]); } - if (output["customerOwnedIp"] !== undefined) { - contents.CustomerOwnedIp = __expectString(output["customerOwnedIp"]); + if (output[_cOI] != null) { + contents[_COI] = __expectString(output[_cOI]); } - if (output["ipOwnerId"] !== undefined) { - contents.IpOwnerId = __expectString(output["ipOwnerId"]); + if (output[_iOIp] != null) { + contents[_IOI] = __expectString(output[_iOIp]); } - if (output["publicDnsName"] !== undefined) { - contents.PublicDnsName = __expectString(output["publicDnsName"]); + if (output[_pDNu] != null) { + contents[_PDNu] = __expectString(output[_pDNu]); } - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } return contents; }; @@ -82367,26 +81375,26 @@ const de_InstanceNetworkInterfaceAttachment = ( context: __SerdeContext ): InstanceNetworkInterfaceAttachment => { const contents: any = {}; - if (output["attachTime"] !== undefined) { - contents.AttachTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["attachTime"])); + if (output[_aTt] != null) { + contents[_ATtt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_aTt])); } - if (output["attachmentId"] !== undefined) { - contents.AttachmentId = __expectString(output["attachmentId"]); + if (output[_aIt] != null) { + contents[_AIt] = __expectString(output[_aIt]); } - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } - if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; + if (output[_dIe] != null) { + contents[_DIev] = __strictParseInt32(output[_dIe]) as number; } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; + if (output[_nCI] != null) { + contents[_NCI] = __strictParseInt32(output[_nCI]) as number; } - if (output["enaSrdSpecification"] !== undefined) { - contents.EnaSrdSpecification = de_InstanceAttachmentEnaSrdSpecification(output["enaSrdSpecification"], context); + if (output[_eSS] != null) { + contents[_ESS] = de_InstanceAttachmentEnaSrdSpecification(output[_eSS], context); } return contents; }; @@ -82410,93 +81418,81 @@ const de_InstanceNetworkInterfaceSpecification = ( context: __SerdeContext ): InstanceNetworkInterfaceSpecification => { const contents: any = {}; - if (output["associatePublicIpAddress"] !== undefined) { - contents.AssociatePublicIpAddress = __parseBoolean(output["associatePublicIpAddress"]); + if (output[_aPIA] != null) { + contents[_APIAs] = __parseBoolean(output[_aPIA]); } - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; + if (output[_dIe] != null) { + contents[_DIev] = __strictParseInt32(output[_dIe]) as number; } if (output.SecurityGroupId === "") { - contents.Groups = []; - } else if (output["SecurityGroupId"] !== undefined && output["SecurityGroupId"]["SecurityGroupId"] !== undefined) { - contents.Groups = de_SecurityGroupIdStringList( - __getArrayIfSingleItem(output["SecurityGroupId"]["SecurityGroupId"]), - context - ); + contents[_G] = []; + } else if (output[_SGIe] != null && output[_SGIe][_SGIe] != null) { + contents[_G] = de_SecurityGroupIdStringList(__getArrayIfSingleItem(output[_SGIe][_SGIe]), context); } - if (output["ipv6AddressCount"] !== undefined) { - contents.Ipv6AddressCount = __strictParseInt32(output["ipv6AddressCount"]) as number; + if (output[_iAC] != null) { + contents[_IAC] = __strictParseInt32(output[_iAC]) as number; } if (output.ipv6AddressesSet === "") { - contents.Ipv6Addresses = []; - } else if (output["ipv6AddressesSet"] !== undefined && output["ipv6AddressesSet"]["item"] !== undefined) { - contents.Ipv6Addresses = de_InstanceIpv6AddressList( - __getArrayIfSingleItem(output["ipv6AddressesSet"]["item"]), - context - ); + contents[_IA] = []; + } else if (output[_iASp] != null && output[_iASp][_i] != null) { + contents[_IA] = de_InstanceIpv6AddressList(__getArrayIfSingleItem(output[_iASp][_i]), context); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } if (output.privateIpAddressesSet === "") { - contents.PrivateIpAddresses = []; - } else if (output["privateIpAddressesSet"] !== undefined && output["privateIpAddressesSet"]["item"] !== undefined) { - contents.PrivateIpAddresses = de_PrivateIpAddressSpecificationList( - __getArrayIfSingleItem(output["privateIpAddressesSet"]["item"]), - context - ); + contents[_PIA] = []; + } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { + contents[_PIA] = de_PrivateIpAddressSpecificationList(__getArrayIfSingleItem(output[_pIAS][_i]), context); } - if (output["secondaryPrivateIpAddressCount"] !== undefined) { - contents.SecondaryPrivateIpAddressCount = __strictParseInt32(output["secondaryPrivateIpAddressCount"]) as number; + if (output[_sPIAC] != null) { + contents[_SPIAC] = __strictParseInt32(output[_sPIAC]) as number; } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["AssociateCarrierIpAddress"] !== undefined) { - contents.AssociateCarrierIpAddress = __parseBoolean(output["AssociateCarrierIpAddress"]); + if (output[_ACIA] != null) { + contents[_ACIA] = __parseBoolean(output[_ACIA]); } - if (output["InterfaceType"] !== undefined) { - contents.InterfaceType = __expectString(output["InterfaceType"]); + if (output[_ITn] != null) { + contents[_ITn] = __expectString(output[_ITn]); } - if (output["NetworkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt32(output["NetworkCardIndex"]) as number; + if (output[_NCI] != null) { + contents[_NCI] = __strictParseInt32(output[_NCI]) as number; } if (output.Ipv4Prefix === "") { - contents.Ipv4Prefixes = []; - } else if (output["Ipv4Prefix"] !== undefined && output["Ipv4Prefix"]["item"] !== undefined) { - contents.Ipv4Prefixes = de_Ipv4PrefixList(__getArrayIfSingleItem(output["Ipv4Prefix"]["item"]), context); + contents[_IPp] = []; + } else if (output[_IPpvr] != null && output[_IPpvr][_i] != null) { + contents[_IPp] = de_Ipv4PrefixList(__getArrayIfSingleItem(output[_IPpvr][_i]), context); } - if (output["Ipv4PrefixCount"] !== undefined) { - contents.Ipv4PrefixCount = __strictParseInt32(output["Ipv4PrefixCount"]) as number; + if (output[_IPCp] != null) { + contents[_IPCp] = __strictParseInt32(output[_IPCp]) as number; } if (output.Ipv6Prefix === "") { - contents.Ipv6Prefixes = []; - } else if (output["Ipv6Prefix"] !== undefined && output["Ipv6Prefix"]["item"] !== undefined) { - contents.Ipv6Prefixes = de_Ipv6PrefixList(__getArrayIfSingleItem(output["Ipv6Prefix"]["item"]), context); + contents[_IP] = []; + } else if (output[_IPpvre] != null && output[_IPpvre][_i] != null) { + contents[_IP] = de_Ipv6PrefixList(__getArrayIfSingleItem(output[_IPpvre][_i]), context); } - if (output["Ipv6PrefixCount"] !== undefined) { - contents.Ipv6PrefixCount = __strictParseInt32(output["Ipv6PrefixCount"]) as number; + if (output[_IPC] != null) { + contents[_IPC] = __strictParseInt32(output[_IPC]) as number; } - if (output["PrimaryIpv6"] !== undefined) { - contents.PrimaryIpv6 = __parseBoolean(output["PrimaryIpv6"]); + if (output[_PIr] != null) { + contents[_PIr] = __parseBoolean(output[_PIr]); } - if (output["EnaSrdSpecification"] !== undefined) { - contents.EnaSrdSpecification = de_EnaSrdSpecificationRequest(output["EnaSrdSpecification"], context); + if (output[_ESS] != null) { + contents[_ESS] = de_EnaSrdSpecificationRequest(output[_ESS], context); } - if (output["ConnectionTrackingSpecification"] !== undefined) { - contents.ConnectionTrackingSpecification = de_ConnectionTrackingSpecificationRequest( - output["ConnectionTrackingSpecification"], - context - ); + if (output[_CTS] != null) { + contents[_CTS] = de_ConnectionTrackingSpecificationRequest(output[_CTS], context); } return contents; }; @@ -82520,17 +81516,17 @@ const de_InstanceNetworkInterfaceSpecificationList = ( */ const de_InstancePrivateIpAddress = (output: any, context: __SerdeContext): InstancePrivateIpAddress => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_InstanceNetworkInterfaceAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_InstanceNetworkInterfaceAssociation(output[_ass], context); } - if (output["primary"] !== undefined) { - contents.Primary = __parseBoolean(output["primary"]); + if (output[_prim] != null) { + contents[_Prim] = __parseBoolean(output[_prim]); } - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } return contents; }; @@ -82551,124 +81547,90 @@ const de_InstancePrivateIpAddressList = (output: any, context: __SerdeContext): */ const de_InstanceRequirements = (output: any, context: __SerdeContext): InstanceRequirements => { const contents: any = {}; - if (output["vCpuCount"] !== undefined) { - contents.VCpuCount = de_VCpuCountRange(output["vCpuCount"], context); + if (output[_vCC] != null) { + contents[_VCC] = de_VCpuCountRange(output[_vCC], context); } - if (output["memoryMiB"] !== undefined) { - contents.MemoryMiB = de_MemoryMiB(output["memoryMiB"], context); + if (output[_mMB] != null) { + contents[_MMB] = de_MemoryMiB(output[_mMB], context); } if (output.cpuManufacturerSet === "") { - contents.CpuManufacturers = []; - } else if (output["cpuManufacturerSet"] !== undefined && output["cpuManufacturerSet"]["item"] !== undefined) { - contents.CpuManufacturers = de_CpuManufacturerSet( - __getArrayIfSingleItem(output["cpuManufacturerSet"]["item"]), - context - ); + contents[_CM] = []; + } else if (output[_cMS] != null && output[_cMS][_i] != null) { + contents[_CM] = de_CpuManufacturerSet(__getArrayIfSingleItem(output[_cMS][_i]), context); } - if (output["memoryGiBPerVCpu"] !== undefined) { - contents.MemoryGiBPerVCpu = de_MemoryGiBPerVCpu(output["memoryGiBPerVCpu"], context); + if (output[_mGBPVC] != null) { + contents[_MGBPVC] = de_MemoryGiBPerVCpu(output[_mGBPVC], context); } if (output.excludedInstanceTypeSet === "") { - contents.ExcludedInstanceTypes = []; - } else if ( - output["excludedInstanceTypeSet"] !== undefined && - output["excludedInstanceTypeSet"]["item"] !== undefined - ) { - contents.ExcludedInstanceTypes = de_ExcludedInstanceTypeSet( - __getArrayIfSingleItem(output["excludedInstanceTypeSet"]["item"]), - context - ); + contents[_EIT] = []; + } else if (output[_eITSx] != null && output[_eITSx][_i] != null) { + contents[_EIT] = de_ExcludedInstanceTypeSet(__getArrayIfSingleItem(output[_eITSx][_i]), context); } if (output.instanceGenerationSet === "") { - contents.InstanceGenerations = []; - } else if (output["instanceGenerationSet"] !== undefined && output["instanceGenerationSet"]["item"] !== undefined) { - contents.InstanceGenerations = de_InstanceGenerationSet( - __getArrayIfSingleItem(output["instanceGenerationSet"]["item"]), - context - ); + contents[_IG] = []; + } else if (output[_iGSn] != null && output[_iGSn][_i] != null) { + contents[_IG] = de_InstanceGenerationSet(__getArrayIfSingleItem(output[_iGSn][_i]), context); } - if (output["spotMaxPricePercentageOverLowestPrice"] !== undefined) { - contents.SpotMaxPricePercentageOverLowestPrice = __strictParseInt32( - output["spotMaxPricePercentageOverLowestPrice"] - ) as number; + if (output[_sMPPOLP] != null) { + contents[_SMPPOLP] = __strictParseInt32(output[_sMPPOLP]) as number; } - if (output["onDemandMaxPricePercentageOverLowestPrice"] !== undefined) { - contents.OnDemandMaxPricePercentageOverLowestPrice = __strictParseInt32( - output["onDemandMaxPricePercentageOverLowestPrice"] - ) as number; + if (output[_oDMPPOLP] != null) { + contents[_ODMPPOLP] = __strictParseInt32(output[_oDMPPOLP]) as number; } - if (output["bareMetal"] !== undefined) { - contents.BareMetal = __expectString(output["bareMetal"]); + if (output[_bMa] != null) { + contents[_BMa] = __expectString(output[_bMa]); } - if (output["burstablePerformance"] !== undefined) { - contents.BurstablePerformance = __expectString(output["burstablePerformance"]); + if (output[_bP] != null) { + contents[_BP] = __expectString(output[_bP]); } - if (output["requireHibernateSupport"] !== undefined) { - contents.RequireHibernateSupport = __parseBoolean(output["requireHibernateSupport"]); + if (output[_rHS] != null) { + contents[_RHS] = __parseBoolean(output[_rHS]); } - if (output["networkInterfaceCount"] !== undefined) { - contents.NetworkInterfaceCount = de_NetworkInterfaceCount(output["networkInterfaceCount"], context); + if (output[_nIC] != null) { + contents[_NIC] = de_NetworkInterfaceCount(output[_nIC], context); } - if (output["localStorage"] !== undefined) { - contents.LocalStorage = __expectString(output["localStorage"]); + if (output[_lSo] != null) { + contents[_LSo] = __expectString(output[_lSo]); } if (output.localStorageTypeSet === "") { - contents.LocalStorageTypes = []; - } else if (output["localStorageTypeSet"] !== undefined && output["localStorageTypeSet"]["item"] !== undefined) { - contents.LocalStorageTypes = de_LocalStorageTypeSet( - __getArrayIfSingleItem(output["localStorageTypeSet"]["item"]), - context - ); + contents[_LST] = []; + } else if (output[_lSTS] != null && output[_lSTS][_i] != null) { + contents[_LST] = de_LocalStorageTypeSet(__getArrayIfSingleItem(output[_lSTS][_i]), context); } - if (output["totalLocalStorageGB"] !== undefined) { - contents.TotalLocalStorageGB = de_TotalLocalStorageGB(output["totalLocalStorageGB"], context); + if (output[_tLSGB] != null) { + contents[_TLSGB] = de_TotalLocalStorageGB(output[_tLSGB], context); } - if (output["baselineEbsBandwidthMbps"] !== undefined) { - contents.BaselineEbsBandwidthMbps = de_BaselineEbsBandwidthMbps(output["baselineEbsBandwidthMbps"], context); + if (output[_bEBM] != null) { + contents[_BEBM] = de_BaselineEbsBandwidthMbps(output[_bEBM], context); } if (output.acceleratorTypeSet === "") { - contents.AcceleratorTypes = []; - } else if (output["acceleratorTypeSet"] !== undefined && output["acceleratorTypeSet"]["item"] !== undefined) { - contents.AcceleratorTypes = de_AcceleratorTypeSet( - __getArrayIfSingleItem(output["acceleratorTypeSet"]["item"]), - context - ); + contents[_ATc] = []; + } else if (output[_aTSc] != null && output[_aTSc][_i] != null) { + contents[_ATc] = de_AcceleratorTypeSet(__getArrayIfSingleItem(output[_aTSc][_i]), context); } - if (output["acceleratorCount"] !== undefined) { - contents.AcceleratorCount = de_AcceleratorCount(output["acceleratorCount"], context); + if (output[_aCc] != null) { + contents[_ACc] = de_AcceleratorCount(output[_aCc], context); } if (output.acceleratorManufacturerSet === "") { - contents.AcceleratorManufacturers = []; - } else if ( - output["acceleratorManufacturerSet"] !== undefined && - output["acceleratorManufacturerSet"]["item"] !== undefined - ) { - contents.AcceleratorManufacturers = de_AcceleratorManufacturerSet( - __getArrayIfSingleItem(output["acceleratorManufacturerSet"]["item"]), - context - ); + contents[_AM] = []; + } else if (output[_aMS] != null && output[_aMS][_i] != null) { + contents[_AM] = de_AcceleratorManufacturerSet(__getArrayIfSingleItem(output[_aMS][_i]), context); } if (output.acceleratorNameSet === "") { - contents.AcceleratorNames = []; - } else if (output["acceleratorNameSet"] !== undefined && output["acceleratorNameSet"]["item"] !== undefined) { - contents.AcceleratorNames = de_AcceleratorNameSet( - __getArrayIfSingleItem(output["acceleratorNameSet"]["item"]), - context - ); + contents[_ANc] = []; + } else if (output[_aNS] != null && output[_aNS][_i] != null) { + contents[_ANc] = de_AcceleratorNameSet(__getArrayIfSingleItem(output[_aNS][_i]), context); } - if (output["acceleratorTotalMemoryMiB"] !== undefined) { - contents.AcceleratorTotalMemoryMiB = de_AcceleratorTotalMemoryMiB(output["acceleratorTotalMemoryMiB"], context); + if (output[_aTMMB] != null) { + contents[_ATMMB] = de_AcceleratorTotalMemoryMiB(output[_aTMMB], context); } - if (output["networkBandwidthGbps"] !== undefined) { - contents.NetworkBandwidthGbps = de_NetworkBandwidthGbps(output["networkBandwidthGbps"], context); + if (output[_nBGe] != null) { + contents[_NBGe] = de_NetworkBandwidthGbps(output[_nBGe], context); } if (output.allowedInstanceTypeSet === "") { - contents.AllowedInstanceTypes = []; - } else if (output["allowedInstanceTypeSet"] !== undefined && output["allowedInstanceTypeSet"]["item"] !== undefined) { - contents.AllowedInstanceTypes = de_AllowedInstanceTypeSet( - __getArrayIfSingleItem(output["allowedInstanceTypeSet"]["item"]), - context - ); + contents[_AIT] = []; + } else if (output[_aITS] != null && output[_aITS][_i] != null) { + contents[_AIT] = de_AllowedInstanceTypeSet(__getArrayIfSingleItem(output[_aITS][_i]), context); } return contents; }; @@ -82689,11 +81651,11 @@ const de_InstanceSet = (output: any, context: __SerdeContext): InstanceTopology[ */ const de_InstanceState = (output: any, context: __SerdeContext): InstanceState => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __strictParseInt32(output["code"]) as number; + if (output[_co] != null) { + contents[_Cod] = __strictParseInt32(output[_co]) as number; } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } return contents; }; @@ -82703,14 +81665,14 @@ const de_InstanceState = (output: any, context: __SerdeContext): InstanceState = */ const de_InstanceStateChange = (output: any, context: __SerdeContext): InstanceStateChange => { const contents: any = {}; - if (output["currentState"] !== undefined) { - contents.CurrentState = de_InstanceState(output["currentState"], context); + if (output[_cSu] != null) { + contents[_CSu] = de_InstanceState(output[_cSu], context); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["previousState"] !== undefined) { - contents.PreviousState = de_InstanceState(output["previousState"], context); + if (output[_pS] != null) { + contents[_PSr] = de_InstanceState(output[_pS], context); } return contents; }; @@ -82731,28 +81693,28 @@ const de_InstanceStateChangeList = (output: any, context: __SerdeContext): Insta */ const de_InstanceStatus = (output: any, context: __SerdeContext): InstanceStatus => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } if (output.eventsSet === "") { - contents.Events = []; - } else if (output["eventsSet"] !== undefined && output["eventsSet"]["item"] !== undefined) { - contents.Events = de_InstanceStatusEventList(__getArrayIfSingleItem(output["eventsSet"]["item"]), context); + contents[_Ev] = []; + } else if (output[_eSv] != null && output[_eSv][_i] != null) { + contents[_Ev] = de_InstanceStatusEventList(__getArrayIfSingleItem(output[_eSv][_i]), context); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceState"] !== undefined) { - contents.InstanceState = de_InstanceState(output["instanceState"], context); + if (output[_iSnst] != null) { + contents[_ISnst] = de_InstanceState(output[_iSnst], context); } - if (output["instanceStatus"] !== undefined) { - contents.InstanceStatus = de_InstanceStatusSummary(output["instanceStatus"], context); + if (output[_iSnsta] != null) { + contents[_ISnsta] = de_InstanceStatusSummary(output[_iSnsta], context); } - if (output["systemStatus"] !== undefined) { - contents.SystemStatus = de_InstanceStatusSummary(output["systemStatus"], context); + if (output[_sSy] != null) { + contents[_SSy] = de_InstanceStatusSummary(output[_sSy], context); } return contents; }; @@ -82762,14 +81724,14 @@ const de_InstanceStatus = (output: any, context: __SerdeContext): InstanceStatus */ const de_InstanceStatusDetails = (output: any, context: __SerdeContext): InstanceStatusDetails => { const contents: any = {}; - if (output["impairedSince"] !== undefined) { - contents.ImpairedSince = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["impairedSince"])); + if (output[_iSmp] != null) { + contents[_ISmp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_iSmp])); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -82790,23 +81752,23 @@ const de_InstanceStatusDetailsList = (output: any, context: __SerdeContext): Ins */ const de_InstanceStatusEvent = (output: any, context: __SerdeContext): InstanceStatusEvent => { const contents: any = {}; - if (output["instanceEventId"] !== undefined) { - contents.InstanceEventId = __expectString(output["instanceEventId"]); + if (output[_iEI] != null) { + contents[_IEI] = __expectString(output[_iEI]); } - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["notAfter"] !== undefined) { - contents.NotAfter = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["notAfter"])); + if (output[_nAo] != null) { + contents[_NAo] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_nAo])); } - if (output["notBefore"] !== undefined) { - contents.NotBefore = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["notBefore"])); + if (output[_nB] != null) { + contents[_NB] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_nB])); } - if (output["notBeforeDeadline"] !== undefined) { - contents.NotBeforeDeadline = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["notBeforeDeadline"])); + if (output[_nBD] != null) { + contents[_NBD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_nBD])); } return contents; }; @@ -82839,12 +81801,12 @@ const de_InstanceStatusList = (output: any, context: __SerdeContext): InstanceSt const de_InstanceStatusSummary = (output: any, context: __SerdeContext): InstanceStatusSummary => { const contents: any = {}; if (output.details === "") { - contents.Details = []; - } else if (output["details"] !== undefined && output["details"]["item"] !== undefined) { - contents.Details = de_InstanceStatusDetailsList(__getArrayIfSingleItem(output["details"]["item"]), context); + contents[_Det] = []; + } else if (output[_det] != null && output[_det][_i] != null) { + contents[_Det] = de_InstanceStatusDetailsList(__getArrayIfSingleItem(output[_det][_i]), context); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -82854,19 +81816,19 @@ const de_InstanceStatusSummary = (output: any, context: __SerdeContext): Instanc */ const de_InstanceStorageInfo = (output: any, context: __SerdeContext): InstanceStorageInfo => { const contents: any = {}; - if (output["totalSizeInGB"] !== undefined) { - contents.TotalSizeInGB = __strictParseLong(output["totalSizeInGB"]) as number; + if (output[_tSIGB] != null) { + contents[_TSIGB] = __strictParseLong(output[_tSIGB]) as number; } if (output.disks === "") { - contents.Disks = []; - } else if (output["disks"] !== undefined && output["disks"]["item"] !== undefined) { - contents.Disks = de_DiskInfoList(__getArrayIfSingleItem(output["disks"]["item"]), context); + contents[_Dis] = []; + } else if (output[_dis] != null && output[_dis][_i] != null) { + contents[_Dis] = de_DiskInfoList(__getArrayIfSingleItem(output[_dis][_i]), context); } - if (output["nvmeSupport"] !== undefined) { - contents.NvmeSupport = __expectString(output["nvmeSupport"]); + if (output[_nS] != null) { + contents[_NS] = __expectString(output[_nS]); } - if (output["encryptionSupport"] !== undefined) { - contents.EncryptionSupport = __expectString(output["encryptionSupport"]); + if (output[_eSn] != null) { + contents[_ESnc] = __expectString(output[_eSn]); } return contents; }; @@ -82891,15 +81853,12 @@ const de_InstanceTagNotificationAttribute = ( ): InstanceTagNotificationAttribute => { const contents: any = {}; if (output.instanceTagKeySet === "") { - contents.InstanceTagKeys = []; - } else if (output["instanceTagKeySet"] !== undefined && output["instanceTagKeySet"]["item"] !== undefined) { - contents.InstanceTagKeys = de_InstanceTagKeySet( - __getArrayIfSingleItem(output["instanceTagKeySet"]["item"]), - context - ); + contents[_ITK] = []; + } else if (output[_iTKS] != null && output[_iTKS][_i] != null) { + contents[_ITK] = de_InstanceTagKeySet(__getArrayIfSingleItem(output[_iTKS][_i]), context); } - if (output["includeAllTagsOfInstance"] !== undefined) { - contents.IncludeAllTagsOfInstance = __parseBoolean(output["includeAllTagsOfInstance"]); + if (output[_iATOI] != null) { + contents[_IATOI] = __parseBoolean(output[_iATOI]); } return contents; }; @@ -82909,25 +81868,25 @@ const de_InstanceTagNotificationAttribute = ( */ const de_InstanceTopology = (output: any, context: __SerdeContext): InstanceTopology => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } if (output.networkNodeSet === "") { - contents.NetworkNodes = []; - } else if (output["networkNodeSet"] !== undefined && output["networkNodeSet"]["item"] !== undefined) { - contents.NetworkNodes = de_NetworkNodesList(__getArrayIfSingleItem(output["networkNodeSet"]["item"]), context); + contents[_NN] = []; + } else if (output[_nNS] != null && output[_nNS][_i] != null) { + contents[_NN] = de_NetworkNodesList(__getArrayIfSingleItem(output[_nNS][_i]), context); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["zoneId"] !== undefined) { - contents.ZoneId = __expectString(output["zoneId"]); + if (output[_zI] != null) { + contents[_ZIo] = __expectString(output[_zI]); } return contents; }; @@ -82937,112 +81896,94 @@ const de_InstanceTopology = (output: any, context: __SerdeContext): InstanceTopo */ const de_InstanceTypeInfo = (output: any, context: __SerdeContext): InstanceTypeInfo => { const contents: any = {}; - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["currentGeneration"] !== undefined) { - contents.CurrentGeneration = __parseBoolean(output["currentGeneration"]); + if (output[_cGur] != null) { + contents[_CGur] = __parseBoolean(output[_cGur]); } - if (output["freeTierEligible"] !== undefined) { - contents.FreeTierEligible = __parseBoolean(output["freeTierEligible"]); + if (output[_fTE] != null) { + contents[_FTE] = __parseBoolean(output[_fTE]); } if (output.supportedUsageClasses === "") { - contents.SupportedUsageClasses = []; - } else if (output["supportedUsageClasses"] !== undefined && output["supportedUsageClasses"]["item"] !== undefined) { - contents.SupportedUsageClasses = de_UsageClassTypeList( - __getArrayIfSingleItem(output["supportedUsageClasses"]["item"]), - context - ); + contents[_SUC] = []; + } else if (output[_sUC] != null && output[_sUC][_i] != null) { + contents[_SUC] = de_UsageClassTypeList(__getArrayIfSingleItem(output[_sUC][_i]), context); } if (output.supportedRootDeviceTypes === "") { - contents.SupportedRootDeviceTypes = []; - } else if ( - output["supportedRootDeviceTypes"] !== undefined && - output["supportedRootDeviceTypes"]["item"] !== undefined - ) { - contents.SupportedRootDeviceTypes = de_RootDeviceTypeList( - __getArrayIfSingleItem(output["supportedRootDeviceTypes"]["item"]), - context - ); + contents[_SRDT] = []; + } else if (output[_sRDT] != null && output[_sRDT][_i] != null) { + contents[_SRDT] = de_RootDeviceTypeList(__getArrayIfSingleItem(output[_sRDT][_i]), context); } if (output.supportedVirtualizationTypes === "") { - contents.SupportedVirtualizationTypes = []; - } else if ( - output["supportedVirtualizationTypes"] !== undefined && - output["supportedVirtualizationTypes"]["item"] !== undefined - ) { - contents.SupportedVirtualizationTypes = de_VirtualizationTypeList( - __getArrayIfSingleItem(output["supportedVirtualizationTypes"]["item"]), - context - ); + contents[_SVT] = []; + } else if (output[_sVT] != null && output[_sVT][_i] != null) { + contents[_SVT] = de_VirtualizationTypeList(__getArrayIfSingleItem(output[_sVT][_i]), context); } - if (output["bareMetal"] !== undefined) { - contents.BareMetal = __parseBoolean(output["bareMetal"]); + if (output[_bMa] != null) { + contents[_BMa] = __parseBoolean(output[_bMa]); } - if (output["hypervisor"] !== undefined) { - contents.Hypervisor = __expectString(output["hypervisor"]); + if (output[_h] != null) { + contents[_H] = __expectString(output[_h]); } - if (output["processorInfo"] !== undefined) { - contents.ProcessorInfo = de_ProcessorInfo(output["processorInfo"], context); + if (output[_pIr] != null) { + contents[_PIro] = de_ProcessorInfo(output[_pIr], context); } - if (output["vCpuInfo"] !== undefined) { - contents.VCpuInfo = de_VCpuInfo(output["vCpuInfo"], context); + if (output[_vCIp] != null) { + contents[_VCIpu] = de_VCpuInfo(output[_vCIp], context); } - if (output["memoryInfo"] !== undefined) { - contents.MemoryInfo = de_MemoryInfo(output["memoryInfo"], context); + if (output[_mIe] != null) { + contents[_MIe] = de_MemoryInfo(output[_mIe], context); } - if (output["instanceStorageSupported"] !== undefined) { - contents.InstanceStorageSupported = __parseBoolean(output["instanceStorageSupported"]); + if (output[_iSSn] != null) { + contents[_ISS] = __parseBoolean(output[_iSSn]); } - if (output["instanceStorageInfo"] !== undefined) { - contents.InstanceStorageInfo = de_InstanceStorageInfo(output["instanceStorageInfo"], context); + if (output[_iSI] != null) { + contents[_ISIn] = de_InstanceStorageInfo(output[_iSI], context); } - if (output["ebsInfo"] !== undefined) { - contents.EbsInfo = de_EbsInfo(output["ebsInfo"], context); + if (output[_eIb] != null) { + contents[_EIb] = de_EbsInfo(output[_eIb], context); } - if (output["networkInfo"] !== undefined) { - contents.NetworkInfo = de_NetworkInfo(output["networkInfo"], context); + if (output[_nIet] != null) { + contents[_NIetw] = de_NetworkInfo(output[_nIet], context); } - if (output["gpuInfo"] !== undefined) { - contents.GpuInfo = de_GpuInfo(output["gpuInfo"], context); + if (output[_gIp] != null) { + contents[_GIp] = de_GpuInfo(output[_gIp], context); } - if (output["fpgaInfo"] !== undefined) { - contents.FpgaInfo = de_FpgaInfo(output["fpgaInfo"], context); + if (output[_fIp] != null) { + contents[_FIpg] = de_FpgaInfo(output[_fIp], context); } - if (output["placementGroupInfo"] !== undefined) { - contents.PlacementGroupInfo = de_PlacementGroupInfo(output["placementGroupInfo"], context); + if (output[_pGI] != null) { + contents[_PGI] = de_PlacementGroupInfo(output[_pGI], context); } - if (output["inferenceAcceleratorInfo"] !== undefined) { - contents.InferenceAcceleratorInfo = de_InferenceAcceleratorInfo(output["inferenceAcceleratorInfo"], context); + if (output[_iAI] != null) { + contents[_IAIn] = de_InferenceAcceleratorInfo(output[_iAI], context); } - if (output["hibernationSupported"] !== undefined) { - contents.HibernationSupported = __parseBoolean(output["hibernationSupported"]); + if (output[_hSi] != null) { + contents[_HS] = __parseBoolean(output[_hSi]); } - if (output["burstablePerformanceSupported"] !== undefined) { - contents.BurstablePerformanceSupported = __parseBoolean(output["burstablePerformanceSupported"]); + if (output[_bPS] != null) { + contents[_BPS] = __parseBoolean(output[_bPS]); } - if (output["dedicatedHostsSupported"] !== undefined) { - contents.DedicatedHostsSupported = __parseBoolean(output["dedicatedHostsSupported"]); + if (output[_dHS] != null) { + contents[_DHS] = __parseBoolean(output[_dHS]); } - if (output["autoRecoverySupported"] !== undefined) { - contents.AutoRecoverySupported = __parseBoolean(output["autoRecoverySupported"]); + if (output[_aRSu] != null) { + contents[_ARS] = __parseBoolean(output[_aRSu]); } if (output.supportedBootModes === "") { - contents.SupportedBootModes = []; - } else if (output["supportedBootModes"] !== undefined && output["supportedBootModes"]["item"] !== undefined) { - contents.SupportedBootModes = de_BootModeTypeList( - __getArrayIfSingleItem(output["supportedBootModes"]["item"]), - context - ); + contents[_SBM] = []; + } else if (output[_sBM] != null && output[_sBM][_i] != null) { + contents[_SBM] = de_BootModeTypeList(__getArrayIfSingleItem(output[_sBM][_i]), context); } - if (output["nitroEnclavesSupport"] !== undefined) { - contents.NitroEnclavesSupport = __expectString(output["nitroEnclavesSupport"]); + if (output[_nES] != null) { + contents[_NES] = __expectString(output[_nES]); } - if (output["nitroTpmSupport"] !== undefined) { - contents.NitroTpmSupport = __expectString(output["nitroTpmSupport"]); + if (output[_nTS] != null) { + contents[_NTS] = __expectString(output[_nTS]); } - if (output["nitroTpmInfo"] !== undefined) { - contents.NitroTpmInfo = de_NitroTpmInfo(output["nitroTpmInfo"], context); + if (output[_nTI] != null) { + contents[_NTI] = de_NitroTpmInfo(output[_nTI], context); } return contents; }; @@ -83055,8 +81996,8 @@ const de_InstanceTypeInfoFromInstanceRequirements = ( context: __SerdeContext ): InstanceTypeInfoFromInstanceRequirements => { const contents: any = {}; - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } return contents; }; @@ -83091,14 +82032,14 @@ const de_InstanceTypeInfoList = (output: any, context: __SerdeContext): Instance */ const de_InstanceTypeOffering = (output: any, context: __SerdeContext): InstanceTypeOffering => { const contents: any = {}; - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["locationType"] !== undefined) { - contents.LocationType = __expectString(output["locationType"]); + if (output[_lTo] != null) { + contents[_LT] = __expectString(output[_lTo]); } - if (output["location"] !== undefined) { - contents.Location = __expectString(output["location"]); + if (output[_lo] != null) { + contents[_Lo] = __expectString(output[_lo]); } return contents; }; @@ -83130,11 +82071,11 @@ const de_InstanceTypesList = (output: any, context: __SerdeContext): string[] => */ const de_InstanceUsage = (output: any, context: __SerdeContext): InstanceUsage => { const contents: any = {}; - if (output["accountId"] !== undefined) { - contents.AccountId = __expectString(output["accountId"]); + if (output[_aIc] != null) { + contents[_AIcc] = __expectString(output[_aIc]); } - if (output["usedInstanceCount"] !== undefined) { - contents.UsedInstanceCount = __strictParseInt32(output["usedInstanceCount"]) as number; + if (output[_uIC] != null) { + contents[_UIC] = __strictParseInt32(output[_uIC]) as number; } return contents; }; @@ -83156,23 +82097,20 @@ const de_InstanceUsageSet = (output: any, context: __SerdeContext): InstanceUsag const de_InternetGateway = (output: any, context: __SerdeContext): InternetGateway => { const contents: any = {}; if (output.attachmentSet === "") { - contents.Attachments = []; - } else if (output["attachmentSet"] !== undefined && output["attachmentSet"]["item"] !== undefined) { - contents.Attachments = de_InternetGatewayAttachmentList( - __getArrayIfSingleItem(output["attachmentSet"]["item"]), - context - ); + contents[_Atta] = []; + } else if (output[_aSt] != null && output[_aSt][_i] != null) { + contents[_Atta] = de_InternetGatewayAttachmentList(__getArrayIfSingleItem(output[_aSt][_i]), context); } - if (output["internetGatewayId"] !== undefined) { - contents.InternetGatewayId = __expectString(output["internetGatewayId"]); + if (output[_iGI] != null) { + contents[_IGI] = __expectString(output[_iGI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -83182,11 +82120,11 @@ const de_InternetGateway = (output: any, context: __SerdeContext): InternetGatew */ const de_InternetGatewayAttachment = (output: any, context: __SerdeContext): InternetGatewayAttachment => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -83229,62 +82167,57 @@ const de_IpAddressList = (output: any, context: __SerdeContext): string[] => { */ const de_Ipam = (output: any, context: __SerdeContext): Ipam => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ipamId"] !== undefined) { - contents.IpamId = __expectString(output["ipamId"]); + if (output[_iIp] != null) { + contents[_IIp] = __expectString(output[_iIp]); } - if (output["ipamArn"] !== undefined) { - contents.IpamArn = __expectString(output["ipamArn"]); + if (output[_iApa] != null) { + contents[_IApa] = __expectString(output[_iApa]); } - if (output["ipamRegion"] !== undefined) { - contents.IpamRegion = __expectString(output["ipamRegion"]); + if (output[_iRp] != null) { + contents[_IRpa] = __expectString(output[_iRp]); } - if (output["publicDefaultScopeId"] !== undefined) { - contents.PublicDefaultScopeId = __expectString(output["publicDefaultScopeId"]); + if (output[_pDSI] != null) { + contents[_PDSI] = __expectString(output[_pDSI]); } - if (output["privateDefaultScopeId"] !== undefined) { - contents.PrivateDefaultScopeId = __expectString(output["privateDefaultScopeId"]); + if (output[_pDSIr] != null) { + contents[_PDSIr] = __expectString(output[_pDSIr]); } - if (output["scopeCount"] !== undefined) { - contents.ScopeCount = __strictParseInt32(output["scopeCount"]) as number; + if (output[_sCc] != null) { + contents[_SCc] = __strictParseInt32(output[_sCc]) as number; } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.operatingRegionSet === "") { - contents.OperatingRegions = []; - } else if (output["operatingRegionSet"] !== undefined && output["operatingRegionSet"]["item"] !== undefined) { - contents.OperatingRegions = de_IpamOperatingRegionSet( - __getArrayIfSingleItem(output["operatingRegionSet"]["item"]), - context - ); + contents[_OR] = []; + } else if (output[_oRS] != null && output[_oRS][_i] != null) { + contents[_OR] = de_IpamOperatingRegionSet(__getArrayIfSingleItem(output[_oRS][_i]), context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["defaultResourceDiscoveryId"] !== undefined) { - contents.DefaultResourceDiscoveryId = __expectString(output["defaultResourceDiscoveryId"]); + if (output[_dRDI] != null) { + contents[_DRDI] = __expectString(output[_dRDI]); } - if (output["defaultResourceDiscoveryAssociationId"] !== undefined) { - contents.DefaultResourceDiscoveryAssociationId = __expectString(output["defaultResourceDiscoveryAssociationId"]); + if (output[_dRDAI] != null) { + contents[_DRDAI] = __expectString(output[_dRDAI]); } - if (output["resourceDiscoveryAssociationCount"] !== undefined) { - contents.ResourceDiscoveryAssociationCount = __strictParseInt32( - output["resourceDiscoveryAssociationCount"] - ) as number; + if (output[_rDAC] != null) { + contents[_RDAC] = __strictParseInt32(output[_rDAC]) as number; } - if (output["stateMessage"] !== undefined) { - contents.StateMessage = __expectString(output["stateMessage"]); + if (output[_sMt] != null) { + contents[_SMt] = __expectString(output[_sMt]); } - if (output["tier"] !== undefined) { - contents.Tier = __expectString(output["tier"]); + if (output[_tie] != null) { + contents[_Ti] = __expectString(output[_tie]); } return contents; }; @@ -83294,38 +82227,38 @@ const de_Ipam = (output: any, context: __SerdeContext): Ipam => { */ const de_IpamAddressHistoryRecord = (output: any, context: __SerdeContext): IpamAddressHistoryRecord => { const contents: any = {}; - if (output["resourceOwnerId"] !== undefined) { - contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]); + if (output[_rOI] != null) { + contents[_ROI] = __expectString(output[_rOI]); } - if (output["resourceRegion"] !== undefined) { - contents.ResourceRegion = __expectString(output["resourceRegion"]); + if (output[_rR] != null) { + contents[_RRe] = __expectString(output[_rR]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceCidr"] !== undefined) { - contents.ResourceCidr = __expectString(output["resourceCidr"]); + if (output[_rCe] != null) { + contents[_RC] = __expectString(output[_rCe]); } - if (output["resourceName"] !== undefined) { - contents.ResourceName = __expectString(output["resourceName"]); + if (output[_rNes] != null) { + contents[_RNes] = __expectString(output[_rNes]); } - if (output["resourceComplianceStatus"] !== undefined) { - contents.ResourceComplianceStatus = __expectString(output["resourceComplianceStatus"]); + if (output[_rCS] != null) { + contents[_RCS] = __expectString(output[_rCS]); } - if (output["resourceOverlapStatus"] !== undefined) { - contents.ResourceOverlapStatus = __expectString(output["resourceOverlapStatus"]); + if (output[_rOSe] != null) { + contents[_ROS] = __expectString(output[_rOSe]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["sampledStartTime"] !== undefined) { - contents.SampledStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["sampledStartTime"])); + if (output[_sST] != null) { + contents[_SST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sST])); } - if (output["sampledEndTime"] !== undefined) { - contents.SampledEndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["sampledEndTime"])); + if (output[_sET] != null) { + contents[_SET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sET])); } return contents; }; @@ -83346,24 +82279,20 @@ const de_IpamAddressHistoryRecordSet = (output: any, context: __SerdeContext): I */ const de_IpamDiscoveredAccount = (output: any, context: __SerdeContext): IpamDiscoveredAccount => { const contents: any = {}; - if (output["accountId"] !== undefined) { - contents.AccountId = __expectString(output["accountId"]); + if (output[_aIc] != null) { + contents[_AIcc] = __expectString(output[_aIc]); } - if (output["discoveryRegion"] !== undefined) { - contents.DiscoveryRegion = __expectString(output["discoveryRegion"]); + if (output[_dR] != null) { + contents[_DRi] = __expectString(output[_dR]); } - if (output["failureReason"] !== undefined) { - contents.FailureReason = de_IpamDiscoveryFailureReason(output["failureReason"], context); + if (output[_fR] != null) { + contents[_FR] = de_IpamDiscoveryFailureReason(output[_fR], context); } - if (output["lastAttemptedDiscoveryTime"] !== undefined) { - contents.LastAttemptedDiscoveryTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["lastAttemptedDiscoveryTime"]) - ); + if (output[_lADT] != null) { + contents[_LADT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lADT])); } - if (output["lastSuccessfulDiscoveryTime"] !== undefined) { - contents.LastSuccessfulDiscoveryTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["lastSuccessfulDiscoveryTime"]) - ); + if (output[_lSDT] != null) { + contents[_LSDT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lSDT])); } return contents; }; @@ -83384,67 +82313,64 @@ const de_IpamDiscoveredAccountSet = (output: any, context: __SerdeContext): Ipam */ const de_IpamDiscoveredPublicAddress = (output: any, context: __SerdeContext): IpamDiscoveredPublicAddress => { const contents: any = {}; - if (output["ipamResourceDiscoveryId"] !== undefined) { - contents.IpamResourceDiscoveryId = __expectString(output["ipamResourceDiscoveryId"]); + if (output[_iRDI] != null) { + contents[_IRDI] = __expectString(output[_iRDI]); } - if (output["addressRegion"] !== undefined) { - contents.AddressRegion = __expectString(output["addressRegion"]); + if (output[_aRd] != null) { + contents[_ARd] = __expectString(output[_aRd]); } - if (output["address"] !== undefined) { - contents.Address = __expectString(output["address"]); + if (output[_ad] != null) { + contents[_Ad] = __expectString(output[_ad]); } - if (output["addressOwnerId"] !== undefined) { - contents.AddressOwnerId = __expectString(output["addressOwnerId"]); + if (output[_aOI] != null) { + contents[_AOI] = __expectString(output[_aOI]); } - if (output["addressAllocationId"] !== undefined) { - contents.AddressAllocationId = __expectString(output["addressAllocationId"]); + if (output[_aAId] != null) { + contents[_AAId] = __expectString(output[_aAId]); } - if (output["associationStatus"] !== undefined) { - contents.AssociationStatus = __expectString(output["associationStatus"]); + if (output[_aSs] != null) { + contents[_ASss] = __expectString(output[_aSs]); } - if (output["addressType"] !== undefined) { - contents.AddressType = __expectString(output["addressType"]); + if (output[_aTd] != null) { + contents[_ATddre] = __expectString(output[_aTd]); } - if (output["service"] !== undefined) { - contents.Service = __expectString(output["service"]); + if (output[_se] != null) { + contents[_Se] = __expectString(output[_se]); } - if (output["serviceResource"] !== undefined) { - contents.ServiceResource = __expectString(output["serviceResource"]); + if (output[_sRe] != null) { + contents[_SRe] = __expectString(output[_sRe]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["publicIpv4PoolId"] !== undefined) { - contents.PublicIpv4PoolId = __expectString(output["publicIpv4PoolId"]); + if (output[_pIPI] != null) { + contents[_PIPI] = __expectString(output[_pIPI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["networkInterfaceDescription"] !== undefined) { - contents.NetworkInterfaceDescription = __expectString(output["networkInterfaceDescription"]); + if (output[_nID] != null) { + contents[_NID] = __expectString(output[_nID]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["tags"] !== undefined) { - contents.Tags = de_IpamPublicAddressTags(output["tags"], context); + if (output[_ta] != null) { + contents[_Ta] = de_IpamPublicAddressTags(output[_ta], context); } - if (output["networkBorderGroup"] !== undefined) { - contents.NetworkBorderGroup = __expectString(output["networkBorderGroup"]); + if (output[_nBG] != null) { + contents[_NBG] = __expectString(output[_nBG]); } if (output.securityGroupSet === "") { - contents.SecurityGroups = []; - } else if (output["securityGroupSet"] !== undefined && output["securityGroupSet"]["item"] !== undefined) { - contents.SecurityGroups = de_IpamPublicAddressSecurityGroupList( - __getArrayIfSingleItem(output["securityGroupSet"]["item"]), - context - ); + contents[_SG] = []; + } else if (output[_sGS] != null && output[_sGS][_i] != null) { + contents[_SG] = de_IpamPublicAddressSecurityGroupList(__getArrayIfSingleItem(output[_sGS][_i]), context); } - if (output["sampleTime"] !== undefined) { - contents.SampleTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["sampleTime"])); + if (output[_sTa] != null) { + contents[_STa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sTa])); } return contents; }; @@ -83465,37 +82391,37 @@ const de_IpamDiscoveredPublicAddressSet = (output: any, context: __SerdeContext) */ const de_IpamDiscoveredResourceCidr = (output: any, context: __SerdeContext): IpamDiscoveredResourceCidr => { const contents: any = {}; - if (output["ipamResourceDiscoveryId"] !== undefined) { - contents.IpamResourceDiscoveryId = __expectString(output["ipamResourceDiscoveryId"]); + if (output[_iRDI] != null) { + contents[_IRDI] = __expectString(output[_iRDI]); } - if (output["resourceRegion"] !== undefined) { - contents.ResourceRegion = __expectString(output["resourceRegion"]); + if (output[_rR] != null) { + contents[_RRe] = __expectString(output[_rR]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceOwnerId"] !== undefined) { - contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]); + if (output[_rOI] != null) { + contents[_ROI] = __expectString(output[_rOI]); } - if (output["resourceCidr"] !== undefined) { - contents.ResourceCidr = __expectString(output["resourceCidr"]); + if (output[_rCe] != null) { + contents[_RC] = __expectString(output[_rCe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } if (output.resourceTagSet === "") { - contents.ResourceTags = []; - } else if (output["resourceTagSet"] !== undefined && output["resourceTagSet"]["item"] !== undefined) { - contents.ResourceTags = de_IpamResourceTagList(__getArrayIfSingleItem(output["resourceTagSet"]["item"]), context); + contents[_RTesou] = []; + } else if (output[_rTSe] != null && output[_rTSe][_i] != null) { + contents[_RTesou] = de_IpamResourceTagList(__getArrayIfSingleItem(output[_rTSe][_i]), context); } - if (output["ipUsage"] !== undefined) { - contents.IpUsage = __strictParseFloat(output["ipUsage"]) as number; + if (output[_iU] != null) { + contents[_IUp] = __strictParseFloat(output[_iU]) as number; } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["sampleTime"] !== undefined) { - contents.SampleTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["sampleTime"])); + if (output[_sTa] != null) { + contents[_STa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sTa])); } return contents; }; @@ -83516,11 +82442,11 @@ const de_IpamDiscoveredResourceCidrSet = (output: any, context: __SerdeContext): */ const de_IpamDiscoveryFailureReason = (output: any, context: __SerdeContext): IpamDiscoveryFailureReason => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -83530,8 +82456,8 @@ const de_IpamDiscoveryFailureReason = (output: any, context: __SerdeContext): Ip */ const de_IpamOperatingRegion = (output: any, context: __SerdeContext): IpamOperatingRegion => { const contents: any = {}; - if (output["regionName"] !== undefined) { - contents.RegionName = __expectString(output["regionName"]); + if (output[_rNe] != null) { + contents[_RN] = __expectString(output[_rNe]); } return contents; }; @@ -83552,87 +82478,81 @@ const de_IpamOperatingRegionSet = (output: any, context: __SerdeContext): IpamOp */ const de_IpamPool = (output: any, context: __SerdeContext): IpamPool => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ipamPoolId"] !== undefined) { - contents.IpamPoolId = __expectString(output["ipamPoolId"]); + if (output[_iPIp] != null) { + contents[_IPI] = __expectString(output[_iPIp]); } - if (output["sourceIpamPoolId"] !== undefined) { - contents.SourceIpamPoolId = __expectString(output["sourceIpamPoolId"]); + if (output[_sIPI] != null) { + contents[_SIPI] = __expectString(output[_sIPI]); } - if (output["ipamPoolArn"] !== undefined) { - contents.IpamPoolArn = __expectString(output["ipamPoolArn"]); + if (output[_iPAp] != null) { + contents[_IPApa] = __expectString(output[_iPAp]); } - if (output["ipamScopeArn"] !== undefined) { - contents.IpamScopeArn = __expectString(output["ipamScopeArn"]); + if (output[_iSA] != null) { + contents[_ISA] = __expectString(output[_iSA]); } - if (output["ipamScopeType"] !== undefined) { - contents.IpamScopeType = __expectString(output["ipamScopeType"]); + if (output[_iST] != null) { + contents[_ISTp] = __expectString(output[_iST]); } - if (output["ipamArn"] !== undefined) { - contents.IpamArn = __expectString(output["ipamArn"]); + if (output[_iApa] != null) { + contents[_IApa] = __expectString(output[_iApa]); } - if (output["ipamRegion"] !== undefined) { - contents.IpamRegion = __expectString(output["ipamRegion"]); + if (output[_iRp] != null) { + contents[_IRpa] = __expectString(output[_iRp]); } - if (output["locale"] !== undefined) { - contents.Locale = __expectString(output["locale"]); + if (output[_loc] != null) { + contents[_L] = __expectString(output[_loc]); } - if (output["poolDepth"] !== undefined) { - contents.PoolDepth = __strictParseInt32(output["poolDepth"]) as number; + if (output[_pDoo] != null) { + contents[_PDo] = __strictParseInt32(output[_pDoo]) as number; } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateMessage"] !== undefined) { - contents.StateMessage = __expectString(output["stateMessage"]); + if (output[_sMt] != null) { + contents[_SMt] = __expectString(output[_sMt]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["autoImport"] !== undefined) { - contents.AutoImport = __parseBoolean(output["autoImport"]); + if (output[_aIu] != null) { + contents[_AIu] = __parseBoolean(output[_aIu]); } - if (output["publiclyAdvertisable"] !== undefined) { - contents.PubliclyAdvertisable = __parseBoolean(output["publiclyAdvertisable"]); + if (output[_pAu] != null) { + contents[_PA] = __parseBoolean(output[_pAu]); } - if (output["addressFamily"] !== undefined) { - contents.AddressFamily = __expectString(output["addressFamily"]); + if (output[_aF] != null) { + contents[_AF] = __expectString(output[_aF]); } - if (output["allocationMinNetmaskLength"] !== undefined) { - contents.AllocationMinNetmaskLength = __strictParseInt32(output["allocationMinNetmaskLength"]) as number; + if (output[_aMNL] != null) { + contents[_AMNL] = __strictParseInt32(output[_aMNL]) as number; } - if (output["allocationMaxNetmaskLength"] !== undefined) { - contents.AllocationMaxNetmaskLength = __strictParseInt32(output["allocationMaxNetmaskLength"]) as number; + if (output[_aMNLl] != null) { + contents[_AMNLl] = __strictParseInt32(output[_aMNLl]) as number; } - if (output["allocationDefaultNetmaskLength"] !== undefined) { - contents.AllocationDefaultNetmaskLength = __strictParseInt32(output["allocationDefaultNetmaskLength"]) as number; + if (output[_aDNL] != null) { + contents[_ADNL] = __strictParseInt32(output[_aDNL]) as number; } if (output.allocationResourceTagSet === "") { - contents.AllocationResourceTags = []; - } else if ( - output["allocationResourceTagSet"] !== undefined && - output["allocationResourceTagSet"]["item"] !== undefined - ) { - contents.AllocationResourceTags = de_IpamResourceTagList( - __getArrayIfSingleItem(output["allocationResourceTagSet"]["item"]), - context - ); + contents[_ARTl] = []; + } else if (output[_aRTS] != null && output[_aRTS][_i] != null) { + contents[_ARTl] = de_IpamResourceTagList(__getArrayIfSingleItem(output[_aRTS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["awsService"] !== undefined) { - contents.AwsService = __expectString(output["awsService"]); + if (output[_aSw] != null) { + contents[_ASw] = __expectString(output[_aSw]); } - if (output["publicIpSource"] !== undefined) { - contents.PublicIpSource = __expectString(output["publicIpSource"]); + if (output[_pIS] != null) { + contents[_PIS] = __expectString(output[_pIS]); } - if (output["sourceResource"] !== undefined) { - contents.SourceResource = de_IpamPoolSourceResource(output["sourceResource"], context); + if (output[_sRo] != null) { + contents[_SRo] = de_IpamPoolSourceResource(output[_sRo], context); } return contents; }; @@ -83642,26 +82562,26 @@ const de_IpamPool = (output: any, context: __SerdeContext): IpamPool => { */ const de_IpamPoolAllocation = (output: any, context: __SerdeContext): IpamPoolAllocation => { const contents: any = {}; - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["ipamPoolAllocationId"] !== undefined) { - contents.IpamPoolAllocationId = __expectString(output["ipamPoolAllocationId"]); + if (output[_iPAI] != null) { + contents[_IPAI] = __expectString(output[_iPAI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceRegion"] !== undefined) { - contents.ResourceRegion = __expectString(output["resourceRegion"]); + if (output[_rR] != null) { + contents[_RRe] = __expectString(output[_rR]); } - if (output["resourceOwner"] !== undefined) { - contents.ResourceOwner = __expectString(output["resourceOwner"]); + if (output[_rO] != null) { + contents[_RO] = __expectString(output[_rO]); } return contents; }; @@ -83682,20 +82602,20 @@ const de_IpamPoolAllocationSet = (output: any, context: __SerdeContext): IpamPoo */ const de_IpamPoolCidr = (output: any, context: __SerdeContext): IpamPoolCidr => { const contents: any = {}; - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["failureReason"] !== undefined) { - contents.FailureReason = de_IpamPoolCidrFailureReason(output["failureReason"], context); + if (output[_fR] != null) { + contents[_FR] = de_IpamPoolCidrFailureReason(output[_fR], context); } - if (output["ipamPoolCidrId"] !== undefined) { - contents.IpamPoolCidrId = __expectString(output["ipamPoolCidrId"]); + if (output[_iPCI] != null) { + contents[_IPCI] = __expectString(output[_iPCI]); } - if (output["netmaskLength"] !== undefined) { - contents.NetmaskLength = __strictParseInt32(output["netmaskLength"]) as number; + if (output[_nL] != null) { + contents[_NL] = __strictParseInt32(output[_nL]) as number; } return contents; }; @@ -83705,11 +82625,11 @@ const de_IpamPoolCidr = (output: any, context: __SerdeContext): IpamPoolCidr => */ const de_IpamPoolCidrFailureReason = (output: any, context: __SerdeContext): IpamPoolCidrFailureReason => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -83741,17 +82661,17 @@ const de_IpamPoolSet = (output: any, context: __SerdeContext): IpamPool[] => { */ const de_IpamPoolSourceResource = (output: any, context: __SerdeContext): IpamPoolSourceResource => { const contents: any = {}; - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceRegion"] !== undefined) { - contents.ResourceRegion = __expectString(output["resourceRegion"]); + if (output[_rR] != null) { + contents[_RRe] = __expectString(output[_rR]); } - if (output["resourceOwner"] !== undefined) { - contents.ResourceOwner = __expectString(output["resourceOwner"]); + if (output[_rO] != null) { + contents[_RO] = __expectString(output[_rO]); } return contents; }; @@ -83761,11 +82681,11 @@ const de_IpamPoolSourceResource = (output: any, context: __SerdeContext): IpamPo */ const de_IpamPublicAddressSecurityGroup = (output: any, context: __SerdeContext): IpamPublicAddressSecurityGroup => { const contents: any = {}; - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } return contents; }; @@ -83789,11 +82709,11 @@ const de_IpamPublicAddressSecurityGroupList = ( */ const de_IpamPublicAddressTag = (output: any, context: __SerdeContext): IpamPublicAddressTag => { const contents: any = {}; - if (output["key"] !== undefined) { - contents.Key = __expectString(output["key"]); + if (output[_k] != null) { + contents[_Ke] = __expectString(output[_k]); } - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -83815,9 +82735,9 @@ const de_IpamPublicAddressTagList = (output: any, context: __SerdeContext): Ipam const de_IpamPublicAddressTags = (output: any, context: __SerdeContext): IpamPublicAddressTags => { const contents: any = {}; if (output.eipTagSet === "") { - contents.EipTags = []; - } else if (output["eipTagSet"] !== undefined && output["eipTagSet"]["item"] !== undefined) { - contents.EipTags = de_IpamPublicAddressTagList(__getArrayIfSingleItem(output["eipTagSet"]["item"]), context); + contents[_ETi] = []; + } else if (output[_eTSi] != null && output[_eTSi][_i] != null) { + contents[_ETi] = de_IpamPublicAddressTagList(__getArrayIfSingleItem(output[_eTSi][_i]), context); } return contents; }; @@ -83827,52 +82747,52 @@ const de_IpamPublicAddressTags = (output: any, context: __SerdeContext): IpamPub */ const de_IpamResourceCidr = (output: any, context: __SerdeContext): IpamResourceCidr => { const contents: any = {}; - if (output["ipamId"] !== undefined) { - contents.IpamId = __expectString(output["ipamId"]); + if (output[_iIp] != null) { + contents[_IIp] = __expectString(output[_iIp]); } - if (output["ipamScopeId"] !== undefined) { - contents.IpamScopeId = __expectString(output["ipamScopeId"]); + if (output[_iSIp] != null) { + contents[_ISI] = __expectString(output[_iSIp]); } - if (output["ipamPoolId"] !== undefined) { - contents.IpamPoolId = __expectString(output["ipamPoolId"]); + if (output[_iPIp] != null) { + contents[_IPI] = __expectString(output[_iPIp]); } - if (output["resourceRegion"] !== undefined) { - contents.ResourceRegion = __expectString(output["resourceRegion"]); + if (output[_rR] != null) { + contents[_RRe] = __expectString(output[_rR]); } - if (output["resourceOwnerId"] !== undefined) { - contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]); + if (output[_rOI] != null) { + contents[_ROI] = __expectString(output[_rOI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceName"] !== undefined) { - contents.ResourceName = __expectString(output["resourceName"]); + if (output[_rNes] != null) { + contents[_RNes] = __expectString(output[_rNes]); } - if (output["resourceCidr"] !== undefined) { - contents.ResourceCidr = __expectString(output["resourceCidr"]); + if (output[_rCe] != null) { + contents[_RC] = __expectString(output[_rCe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } if (output.resourceTagSet === "") { - contents.ResourceTags = []; - } else if (output["resourceTagSet"] !== undefined && output["resourceTagSet"]["item"] !== undefined) { - contents.ResourceTags = de_IpamResourceTagList(__getArrayIfSingleItem(output["resourceTagSet"]["item"]), context); + contents[_RTesou] = []; + } else if (output[_rTSe] != null && output[_rTSe][_i] != null) { + contents[_RTesou] = de_IpamResourceTagList(__getArrayIfSingleItem(output[_rTSe][_i]), context); } - if (output["ipUsage"] !== undefined) { - contents.IpUsage = __strictParseFloat(output["ipUsage"]) as number; + if (output[_iU] != null) { + contents[_IUp] = __strictParseFloat(output[_iU]) as number; } - if (output["complianceStatus"] !== undefined) { - contents.ComplianceStatus = __expectString(output["complianceStatus"]); + if (output[_cSo] != null) { + contents[_CSo] = __expectString(output[_cSo]); } - if (output["managementState"] !== undefined) { - contents.ManagementState = __expectString(output["managementState"]); + if (output[_mSa] != null) { + contents[_MSa] = __expectString(output[_mSa]); } - if (output["overlapStatus"] !== undefined) { - contents.OverlapStatus = __expectString(output["overlapStatus"]); + if (output[_oSv] != null) { + contents[_OSv] = __expectString(output[_oSv]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -83893,39 +82813,36 @@ const de_IpamResourceCidrSet = (output: any, context: __SerdeContext): IpamResou */ const de_IpamResourceDiscovery = (output: any, context: __SerdeContext): IpamResourceDiscovery => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ipamResourceDiscoveryId"] !== undefined) { - contents.IpamResourceDiscoveryId = __expectString(output["ipamResourceDiscoveryId"]); + if (output[_iRDI] != null) { + contents[_IRDI] = __expectString(output[_iRDI]); } - if (output["ipamResourceDiscoveryArn"] !== undefined) { - contents.IpamResourceDiscoveryArn = __expectString(output["ipamResourceDiscoveryArn"]); + if (output[_iRDAp] != null) { + contents[_IRDApa] = __expectString(output[_iRDAp]); } - if (output["ipamResourceDiscoveryRegion"] !== undefined) { - contents.IpamResourceDiscoveryRegion = __expectString(output["ipamResourceDiscoveryRegion"]); + if (output[_iRDR] != null) { + contents[_IRDR] = __expectString(output[_iRDR]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.operatingRegionSet === "") { - contents.OperatingRegions = []; - } else if (output["operatingRegionSet"] !== undefined && output["operatingRegionSet"]["item"] !== undefined) { - contents.OperatingRegions = de_IpamOperatingRegionSet( - __getArrayIfSingleItem(output["operatingRegionSet"]["item"]), - context - ); + contents[_OR] = []; + } else if (output[_oRS] != null && output[_oRS][_i] != null) { + contents[_OR] = de_IpamOperatingRegionSet(__getArrayIfSingleItem(output[_oRS][_i]), context); } - if (output["isDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["isDefault"]); + if (output[_iDs] != null) { + contents[_IDs] = __parseBoolean(output[_iDs]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -83938,40 +82855,40 @@ const de_IpamResourceDiscoveryAssociation = ( context: __SerdeContext ): IpamResourceDiscoveryAssociation => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ipamResourceDiscoveryAssociationId"] !== undefined) { - contents.IpamResourceDiscoveryAssociationId = __expectString(output["ipamResourceDiscoveryAssociationId"]); + if (output[_iRDAI] != null) { + contents[_IRDAIp] = __expectString(output[_iRDAI]); } - if (output["ipamResourceDiscoveryAssociationArn"] !== undefined) { - contents.IpamResourceDiscoveryAssociationArn = __expectString(output["ipamResourceDiscoveryAssociationArn"]); + if (output[_iRDAA] != null) { + contents[_IRDAA] = __expectString(output[_iRDAA]); } - if (output["ipamResourceDiscoveryId"] !== undefined) { - contents.IpamResourceDiscoveryId = __expectString(output["ipamResourceDiscoveryId"]); + if (output[_iRDI] != null) { + contents[_IRDI] = __expectString(output[_iRDI]); } - if (output["ipamId"] !== undefined) { - contents.IpamId = __expectString(output["ipamId"]); + if (output[_iIp] != null) { + contents[_IIp] = __expectString(output[_iIp]); } - if (output["ipamArn"] !== undefined) { - contents.IpamArn = __expectString(output["ipamArn"]); + if (output[_iApa] != null) { + contents[_IApa] = __expectString(output[_iApa]); } - if (output["ipamRegion"] !== undefined) { - contents.IpamRegion = __expectString(output["ipamRegion"]); + if (output[_iRp] != null) { + contents[_IRpa] = __expectString(output[_iRp]); } - if (output["isDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["isDefault"]); + if (output[_iDs] != null) { + contents[_IDs] = __parseBoolean(output[_iDs]); } - if (output["resourceDiscoveryStatus"] !== undefined) { - contents.ResourceDiscoveryStatus = __expectString(output["resourceDiscoveryStatus"]); + if (output[_rDS] != null) { + contents[_RDS] = __expectString(output[_rDS]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -84006,11 +82923,11 @@ const de_IpamResourceDiscoverySet = (output: any, context: __SerdeContext): Ipam */ const de_IpamResourceTag = (output: any, context: __SerdeContext): IpamResourceTag => { const contents: any = {}; - if (output["key"] !== undefined) { - contents.Key = __expectString(output["key"]); + if (output[_k] != null) { + contents[_Ke] = __expectString(output[_k]); } - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -84031,40 +82948,40 @@ const de_IpamResourceTagList = (output: any, context: __SerdeContext): IpamResou */ const de_IpamScope = (output: any, context: __SerdeContext): IpamScope => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["ipamScopeId"] !== undefined) { - contents.IpamScopeId = __expectString(output["ipamScopeId"]); + if (output[_iSIp] != null) { + contents[_ISI] = __expectString(output[_iSIp]); } - if (output["ipamScopeArn"] !== undefined) { - contents.IpamScopeArn = __expectString(output["ipamScopeArn"]); + if (output[_iSA] != null) { + contents[_ISA] = __expectString(output[_iSA]); } - if (output["ipamArn"] !== undefined) { - contents.IpamArn = __expectString(output["ipamArn"]); + if (output[_iApa] != null) { + contents[_IApa] = __expectString(output[_iApa]); } - if (output["ipamRegion"] !== undefined) { - contents.IpamRegion = __expectString(output["ipamRegion"]); + if (output[_iRp] != null) { + contents[_IRpa] = __expectString(output[_iRp]); } - if (output["ipamScopeType"] !== undefined) { - contents.IpamScopeType = __expectString(output["ipamScopeType"]); + if (output[_iST] != null) { + contents[_ISTp] = __expectString(output[_iST]); } - if (output["isDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["isDefault"]); + if (output[_iDs] != null) { + contents[_IDs] = __parseBoolean(output[_iDs]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["poolCount"] !== undefined) { - contents.PoolCount = __strictParseInt32(output["poolCount"]) as number; + if (output[_pCo] != null) { + contents[_PCoo] = __strictParseInt32(output[_pCo]) as number; } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -84096,34 +83013,34 @@ const de_IpamSet = (output: any, context: __SerdeContext): Ipam[] => { */ const de_IpPermission = (output: any, context: __SerdeContext): IpPermission => { const contents: any = {}; - if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt32(output["fromPort"]) as number; + if (output[_fP] != null) { + contents[_FP] = __strictParseInt32(output[_fP]) as number; } - if (output["ipProtocol"] !== undefined) { - contents.IpProtocol = __expectString(output["ipProtocol"]); + if (output[_iPpr] != null) { + contents[_IPpr] = __expectString(output[_iPpr]); } if (output.ipRanges === "") { - contents.IpRanges = []; - } else if (output["ipRanges"] !== undefined && output["ipRanges"]["item"] !== undefined) { - contents.IpRanges = de_IpRangeList(__getArrayIfSingleItem(output["ipRanges"]["item"]), context); + contents[_IRp] = []; + } else if (output[_iRpa] != null && output[_iRpa][_i] != null) { + contents[_IRp] = de_IpRangeList(__getArrayIfSingleItem(output[_iRpa][_i]), context); } if (output.ipv6Ranges === "") { - contents.Ipv6Ranges = []; - } else if (output["ipv6Ranges"] !== undefined && output["ipv6Ranges"]["item"] !== undefined) { - contents.Ipv6Ranges = de_Ipv6RangeList(__getArrayIfSingleItem(output["ipv6Ranges"]["item"]), context); + contents[_IRpv] = []; + } else if (output[_iRpv] != null && output[_iRpv][_i] != null) { + contents[_IRpv] = de_Ipv6RangeList(__getArrayIfSingleItem(output[_iRpv][_i]), context); } if (output.prefixListIds === "") { - contents.PrefixListIds = []; - } else if (output["prefixListIds"] !== undefined && output["prefixListIds"]["item"] !== undefined) { - contents.PrefixListIds = de_PrefixListIdList(__getArrayIfSingleItem(output["prefixListIds"]["item"]), context); + contents[_PLIr] = []; + } else if (output[_pLIr] != null && output[_pLIr][_i] != null) { + contents[_PLIr] = de_PrefixListIdList(__getArrayIfSingleItem(output[_pLIr][_i]), context); } - if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt32(output["toPort"]) as number; + if (output[_tPo] != null) { + contents[_TP] = __strictParseInt32(output[_tPo]) as number; } if (output.groups === "") { - contents.UserIdGroupPairs = []; - } else if (output["groups"] !== undefined && output["groups"]["item"] !== undefined) { - contents.UserIdGroupPairs = de_UserIdGroupPairList(__getArrayIfSingleItem(output["groups"]["item"]), context); + contents[_UIGP] = []; + } else if (output[_gr] != null && output[_gr][_i] != null) { + contents[_UIGP] = de_UserIdGroupPairList(__getArrayIfSingleItem(output[_gr][_i]), context); } return contents; }; @@ -84155,11 +83072,11 @@ const de_IpPrefixList = (output: any, context: __SerdeContext): string[] => { */ const de_IpRange = (output: any, context: __SerdeContext): IpRange => { const contents: any = {}; - if (output["cidrIp"] !== undefined) { - contents.CidrIp = __expectString(output["cidrIp"]); + if (output[_cIi] != null) { + contents[_CIi] = __expectString(output[_cIi]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } return contents; }; @@ -84224,8 +83141,8 @@ const de_Ipv4PrefixListResponse = (output: any, context: __SerdeContext): Ipv4Pr */ const de_Ipv4PrefixSpecification = (output: any, context: __SerdeContext): Ipv4PrefixSpecification => { const contents: any = {}; - if (output["ipv4Prefix"] !== undefined) { - contents.Ipv4Prefix = __expectString(output["ipv4Prefix"]); + if (output[_iPpv] != null) { + contents[_IPpvr] = __expectString(output[_iPpv]); } return contents; }; @@ -84235,8 +83152,8 @@ const de_Ipv4PrefixSpecification = (output: any, context: __SerdeContext): Ipv4P */ const de_Ipv4PrefixSpecificationRequest = (output: any, context: __SerdeContext): Ipv4PrefixSpecificationRequest => { const contents: any = {}; - if (output["Ipv4Prefix"] !== undefined) { - contents.Ipv4Prefix = __expectString(output["Ipv4Prefix"]); + if (output[_IPpvr] != null) { + contents[_IPpvr] = __expectString(output[_IPpvr]); } return contents; }; @@ -84246,8 +83163,8 @@ const de_Ipv4PrefixSpecificationRequest = (output: any, context: __SerdeContext) */ const de_Ipv4PrefixSpecificationResponse = (output: any, context: __SerdeContext): Ipv4PrefixSpecificationResponse => { const contents: any = {}; - if (output["ipv4Prefix"] !== undefined) { - contents.Ipv4Prefix = __expectString(output["ipv4Prefix"]); + if (output[_iPpv] != null) { + contents[_IPpvr] = __expectString(output[_iPpv]); } return contents; }; @@ -84268,11 +83185,11 @@ const de_Ipv6AddressList = (output: any, context: __SerdeContext): string[] => { */ const de_Ipv6CidrAssociation = (output: any, context: __SerdeContext): Ipv6CidrAssociation => { const contents: any = {}; - if (output["ipv6Cidr"] !== undefined) { - contents.Ipv6Cidr = __expectString(output["ipv6Cidr"]); + if (output[_iCp] != null) { + contents[_ICp] = __expectString(output[_iCp]); } - if (output["associatedResource"] !== undefined) { - contents.AssociatedResource = __expectString(output["associatedResource"]); + if (output[_aRs] != null) { + contents[_ARss] = __expectString(output[_aRs]); } return contents; }; @@ -84293,8 +83210,8 @@ const de_Ipv6CidrAssociationSet = (output: any, context: __SerdeContext): Ipv6Ci */ const de_Ipv6CidrBlock = (output: any, context: __SerdeContext): Ipv6CidrBlock => { const contents: any = {}; - if (output["ipv6CidrBlock"] !== undefined) { - contents.Ipv6CidrBlock = __expectString(output["ipv6CidrBlock"]); + if (output[_iCB] != null) { + contents[_ICB] = __expectString(output[_iCB]); } return contents; }; @@ -84315,21 +83232,21 @@ const de_Ipv6CidrBlockSet = (output: any, context: __SerdeContext): Ipv6CidrBloc */ const de_Ipv6Pool = (output: any, context: __SerdeContext): Ipv6Pool => { const contents: any = {}; - if (output["poolId"] !== undefined) { - contents.PoolId = __expectString(output["poolId"]); + if (output[_pIo] != null) { + contents[_PIo] = __expectString(output[_pIo]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.poolCidrBlockSet === "") { - contents.PoolCidrBlocks = []; - } else if (output["poolCidrBlockSet"] !== undefined && output["poolCidrBlockSet"]["item"] !== undefined) { - contents.PoolCidrBlocks = de_PoolCidrBlocksSet(__getArrayIfSingleItem(output["poolCidrBlockSet"]["item"]), context); + contents[_PCBo] = []; + } else if (output[_pCBS] != null && output[_pCBS][_i] != null) { + contents[_PCBo] = de_PoolCidrBlocksSet(__getArrayIfSingleItem(output[_pCBS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -84383,8 +83300,8 @@ const de_Ipv6PrefixListResponse = (output: any, context: __SerdeContext): Ipv6Pr */ const de_Ipv6PrefixSpecification = (output: any, context: __SerdeContext): Ipv6PrefixSpecification => { const contents: any = {}; - if (output["ipv6Prefix"] !== undefined) { - contents.Ipv6Prefix = __expectString(output["ipv6Prefix"]); + if (output[_iPpvr] != null) { + contents[_IPpvre] = __expectString(output[_iPpvr]); } return contents; }; @@ -84394,8 +83311,8 @@ const de_Ipv6PrefixSpecification = (output: any, context: __SerdeContext): Ipv6P */ const de_Ipv6PrefixSpecificationRequest = (output: any, context: __SerdeContext): Ipv6PrefixSpecificationRequest => { const contents: any = {}; - if (output["Ipv6Prefix"] !== undefined) { - contents.Ipv6Prefix = __expectString(output["Ipv6Prefix"]); + if (output[_IPpvre] != null) { + contents[_IPpvre] = __expectString(output[_IPpvre]); } return contents; }; @@ -84405,8 +83322,8 @@ const de_Ipv6PrefixSpecificationRequest = (output: any, context: __SerdeContext) */ const de_Ipv6PrefixSpecificationResponse = (output: any, context: __SerdeContext): Ipv6PrefixSpecificationResponse => { const contents: any = {}; - if (output["ipv6Prefix"] !== undefined) { - contents.Ipv6Prefix = __expectString(output["ipv6Prefix"]); + if (output[_iPpvr] != null) { + contents[_IPpvre] = __expectString(output[_iPpvr]); } return contents; }; @@ -84416,11 +83333,11 @@ const de_Ipv6PrefixSpecificationResponse = (output: any, context: __SerdeContext */ const de_Ipv6Range = (output: any, context: __SerdeContext): Ipv6Range => { const contents: any = {}; - if (output["cidrIpv6"] !== undefined) { - contents.CidrIpv6 = __expectString(output["cidrIpv6"]); + if (output[_cIid] != null) { + contents[_CIid] = __expectString(output[_cIid]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } return contents; }; @@ -84441,22 +83358,22 @@ const de_Ipv6RangeList = (output: any, context: __SerdeContext): Ipv6Range[] => */ const de_KeyPair = (output: any, context: __SerdeContext): KeyPair => { const contents: any = {}; - if (output["keyFingerprint"] !== undefined) { - contents.KeyFingerprint = __expectString(output["keyFingerprint"]); + if (output[_kF] != null) { + contents[_KFe] = __expectString(output[_kF]); } - if (output["keyMaterial"] !== undefined) { - contents.KeyMaterial = __expectString(output["keyMaterial"]); + if (output[_kM] != null) { + contents[_KM] = __expectString(output[_kM]); } - if (output["keyName"] !== undefined) { - contents.KeyName = __expectString(output["keyName"]); + if (output[_kN] != null) { + contents[_KN] = __expectString(output[_kN]); } - if (output["keyPairId"] !== undefined) { - contents.KeyPairId = __expectString(output["keyPairId"]); + if (output[_kPI] != null) { + contents[_KPI] = __expectString(output[_kPI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -84466,28 +83383,28 @@ const de_KeyPair = (output: any, context: __SerdeContext): KeyPair => { */ const de_KeyPairInfo = (output: any, context: __SerdeContext): KeyPairInfo => { const contents: any = {}; - if (output["keyPairId"] !== undefined) { - contents.KeyPairId = __expectString(output["keyPairId"]); + if (output[_kPI] != null) { + contents[_KPI] = __expectString(output[_kPI]); } - if (output["keyFingerprint"] !== undefined) { - contents.KeyFingerprint = __expectString(output["keyFingerprint"]); + if (output[_kF] != null) { + contents[_KFe] = __expectString(output[_kF]); } - if (output["keyName"] !== undefined) { - contents.KeyName = __expectString(output["keyName"]); + if (output[_kN] != null) { + contents[_KN] = __expectString(output[_kN]); } - if (output["keyType"] !== undefined) { - contents.KeyType = __expectString(output["keyType"]); + if (output[_kT] != null) { + contents[_KT] = __expectString(output[_kT]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["publicKey"] !== undefined) { - contents.PublicKey = __expectString(output["publicKey"]); + if (output[_pK] != null) { + contents[_PK] = __expectString(output[_pK]); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } return contents; }; @@ -84508,11 +83425,11 @@ const de_KeyPairList = (output: any, context: __SerdeContext): KeyPairInfo[] => */ const de_LastError = (output: any, context: __SerdeContext): LastError => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } return contents; }; @@ -84522,17 +83439,17 @@ const de_LastError = (output: any, context: __SerdeContext): LastError => { */ const de_LaunchPermission = (output: any, context: __SerdeContext): LaunchPermission => { const contents: any = {}; - if (output["group"] !== undefined) { - contents.Group = __expectString(output["group"]); + if (output[_g] != null) { + contents[_Gr] = __expectString(output[_g]); } - if (output["userId"] !== undefined) { - contents.UserId = __expectString(output["userId"]); + if (output[_uI] != null) { + contents[_UIs] = __expectString(output[_uI]); } - if (output["organizationArn"] !== undefined) { - contents.OrganizationArn = __expectString(output["organizationArn"]); + if (output[_oAr] != null) { + contents[_OAr] = __expectString(output[_oAr]); } - if (output["organizationalUnitArn"] !== undefined) { - contents.OrganizationalUnitArn = __expectString(output["organizationalUnitArn"]); + if (output[_oUA] != null) { + contents[_OUA] = __expectString(output[_oUA]); } return contents; }; @@ -84553,62 +83470,56 @@ const de_LaunchPermissionList = (output: any, context: __SerdeContext): LaunchPe */ const de_LaunchSpecification = (output: any, context: __SerdeContext): LaunchSpecification => { const contents: any = {}; - if (output["userData"] !== undefined) { - contents.UserData = __expectString(output["userData"]); + if (output[_uDs] != null) { + contents[_UD] = __expectString(output[_uDs]); } if (output.groupSet === "") { - contents.SecurityGroups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.SecurityGroups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_SG] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_SG] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output["addressingType"] !== undefined) { - contents.AddressingType = __expectString(output["addressingType"]); + if (output[_aTdd] != null) { + contents[_ATd] = __expectString(output[_aTdd]); } if (output.blockDeviceMapping === "") { - contents.BlockDeviceMappings = []; - } else if (output["blockDeviceMapping"] !== undefined && output["blockDeviceMapping"]["item"] !== undefined) { - contents.BlockDeviceMappings = de_BlockDeviceMappingList( - __getArrayIfSingleItem(output["blockDeviceMapping"]["item"]), - context - ); + contents[_BDM] = []; + } else if (output[_bDM] != null && output[_bDM][_i] != null) { + contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); } - if (output["ebsOptimized"] !== undefined) { - contents.EbsOptimized = __parseBoolean(output["ebsOptimized"]); + if (output[_eO] != null) { + contents[_EO] = __parseBoolean(output[_eO]); } - if (output["iamInstanceProfile"] !== undefined) { - contents.IamInstanceProfile = de_IamInstanceProfileSpecification(output["iamInstanceProfile"], context); + if (output[_iIP] != null) { + contents[_IIP] = de_IamInstanceProfileSpecification(output[_iIP], context); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["kernelId"] !== undefined) { - contents.KernelId = __expectString(output["kernelId"]); + if (output[_kI] != null) { + contents[_KI] = __expectString(output[_kI]); } - if (output["keyName"] !== undefined) { - contents.KeyName = __expectString(output["keyName"]); + if (output[_kN] != null) { + contents[_KN] = __expectString(output[_kN]); } if (output.networkInterfaceSet === "") { - contents.NetworkInterfaces = []; - } else if (output["networkInterfaceSet"] !== undefined && output["networkInterfaceSet"]["item"] !== undefined) { - contents.NetworkInterfaces = de_InstanceNetworkInterfaceSpecificationList( - __getArrayIfSingleItem(output["networkInterfaceSet"]["item"]), - context - ); + contents[_NI] = []; + } else if (output[_nIS] != null && output[_nIS][_i] != null) { + contents[_NI] = de_InstanceNetworkInterfaceSpecificationList(__getArrayIfSingleItem(output[_nIS][_i]), context); } - if (output["placement"] !== undefined) { - contents.Placement = de_SpotPlacement(output["placement"], context); + if (output[_pla] != null) { + contents[_Pl] = de_SpotPlacement(output[_pla], context); } - if (output["ramdiskId"] !== undefined) { - contents.RamdiskId = __expectString(output["ramdiskId"]); + if (output[_rIa] != null) { + contents[_RIa] = __expectString(output[_rIa]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["monitoring"] !== undefined) { - contents.Monitoring = de_RunInstancesMonitoringEnabled(output["monitoring"], context); + if (output[_mo] != null) { + contents[_Mon] = de_RunInstancesMonitoringEnabled(output[_mo], context); } return contents; }; @@ -84629,28 +83540,28 @@ const de_LaunchSpecsList = (output: any, context: __SerdeContext): SpotFleetLaun */ const de_LaunchTemplate = (output: any, context: __SerdeContext): LaunchTemplate => { const contents: any = {}; - if (output["launchTemplateId"] !== undefined) { - contents.LaunchTemplateId = __expectString(output["launchTemplateId"]); + if (output[_lTI] != null) { + contents[_LTI] = __expectString(output[_lTI]); } - if (output["launchTemplateName"] !== undefined) { - contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); + if (output[_lTN] != null) { + contents[_LTN] = __expectString(output[_lTN]); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["createdBy"] !== undefined) { - contents.CreatedBy = __expectString(output["createdBy"]); + if (output[_cBr] != null) { + contents[_CBr] = __expectString(output[_cBr]); } - if (output["defaultVersionNumber"] !== undefined) { - contents.DefaultVersionNumber = __strictParseLong(output["defaultVersionNumber"]) as number; + if (output[_dVN] != null) { + contents[_DVN] = __strictParseLong(output[_dVN]) as number; } - if (output["latestVersionNumber"] !== undefined) { - contents.LatestVersionNumber = __strictParseLong(output["latestVersionNumber"]) as number; + if (output[_lVN] != null) { + contents[_LVN] = __strictParseLong(output[_lVN]) as number; } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -84663,14 +83574,11 @@ const de_LaunchTemplateAndOverridesResponse = ( context: __SerdeContext ): LaunchTemplateAndOverridesResponse => { const contents: any = {}; - if (output["launchTemplateSpecification"] !== undefined) { - contents.LaunchTemplateSpecification = de_FleetLaunchTemplateSpecification( - output["launchTemplateSpecification"], - context - ); + if (output[_lTS] != null) { + contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context); } - if (output["overrides"] !== undefined) { - contents.Overrides = de_FleetLaunchTemplateOverrides(output["overrides"], context); + if (output[_ov] != null) { + contents[_Ov] = de_FleetLaunchTemplateOverrides(output[_ov], context); } return contents; }; @@ -84683,17 +83591,17 @@ const de_LaunchTemplateBlockDeviceMapping = ( context: __SerdeContext ): LaunchTemplateBlockDeviceMapping => { const contents: any = {}; - if (output["deviceName"] !== undefined) { - contents.DeviceName = __expectString(output["deviceName"]); + if (output[_dN] != null) { + contents[_DN] = __expectString(output[_dN]); } - if (output["virtualName"] !== undefined) { - contents.VirtualName = __expectString(output["virtualName"]); + if (output[_vN] != null) { + contents[_VN] = __expectString(output[_vN]); } - if (output["ebs"] !== undefined) { - contents.Ebs = de_LaunchTemplateEbsBlockDevice(output["ebs"], context); + if (output[_eb] != null) { + contents[_E] = de_LaunchTemplateEbsBlockDevice(output[_eb], context); } - if (output["noDevice"] !== undefined) { - contents.NoDevice = __expectString(output["noDevice"]); + if (output[_nD] != null) { + contents[_ND] = __expectString(output[_nD]); } return contents; }; @@ -84720,14 +83628,11 @@ const de_LaunchTemplateCapacityReservationSpecificationResponse = ( context: __SerdeContext ): LaunchTemplateCapacityReservationSpecificationResponse => { const contents: any = {}; - if (output["capacityReservationPreference"] !== undefined) { - contents.CapacityReservationPreference = __expectString(output["capacityReservationPreference"]); + if (output[_cRP] != null) { + contents[_CRP] = __expectString(output[_cRP]); } - if (output["capacityReservationTarget"] !== undefined) { - contents.CapacityReservationTarget = de_CapacityReservationTargetResponse( - output["capacityReservationTarget"], - context - ); + if (output[_cRT] != null) { + contents[_CRTa] = de_CapacityReservationTargetResponse(output[_cRT], context); } return contents; }; @@ -84737,16 +83642,13 @@ const de_LaunchTemplateCapacityReservationSpecificationResponse = ( */ const de_LaunchTemplateConfig = (output: any, context: __SerdeContext): LaunchTemplateConfig => { const contents: any = {}; - if (output["launchTemplateSpecification"] !== undefined) { - contents.LaunchTemplateSpecification = de_FleetLaunchTemplateSpecification( - output["launchTemplateSpecification"], - context - ); + if (output[_lTS] != null) { + contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context); } if (output.overrides === "") { - contents.Overrides = []; - } else if (output["overrides"] !== undefined && output["overrides"]["item"] !== undefined) { - contents.Overrides = de_LaunchTemplateOverridesList(__getArrayIfSingleItem(output["overrides"]["item"]), context); + contents[_Ov] = []; + } else if (output[_ov] != null && output[_ov][_i] != null) { + contents[_Ov] = de_LaunchTemplateOverridesList(__getArrayIfSingleItem(output[_ov][_i]), context); } return contents; }; @@ -84767,14 +83669,14 @@ const de_LaunchTemplateConfigList = (output: any, context: __SerdeContext): Laun */ const de_LaunchTemplateCpuOptions = (output: any, context: __SerdeContext): LaunchTemplateCpuOptions => { const contents: any = {}; - if (output["coreCount"] !== undefined) { - contents.CoreCount = __strictParseInt32(output["coreCount"]) as number; + if (output[_cCo] != null) { + contents[_CC] = __strictParseInt32(output[_cCo]) as number; } - if (output["threadsPerCore"] !== undefined) { - contents.ThreadsPerCore = __strictParseInt32(output["threadsPerCore"]) as number; + if (output[_tPC] != null) { + contents[_TPC] = __strictParseInt32(output[_tPC]) as number; } - if (output["amdSevSnp"] !== undefined) { - contents.AmdSevSnp = __expectString(output["amdSevSnp"]); + if (output[_aSS] != null) { + contents[_ASS] = __expectString(output[_aSS]); } return contents; }; @@ -84784,29 +83686,29 @@ const de_LaunchTemplateCpuOptions = (output: any, context: __SerdeContext): Laun */ const de_LaunchTemplateEbsBlockDevice = (output: any, context: __SerdeContext): LaunchTemplateEbsBlockDevice => { const contents: any = {}; - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } - if (output["iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["iops"]) as number; + if (output[_io] != null) { + contents[_Io] = __strictParseInt32(output[_io]) as number; } - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; + if (output[_vSo] != null) { + contents[_VS] = __strictParseInt32(output[_vSo]) as number; } - if (output["volumeType"] !== undefined) { - contents.VolumeType = __expectString(output["volumeType"]); + if (output[_vT] != null) { + contents[_VT] = __expectString(output[_vT]); } - if (output["throughput"] !== undefined) { - contents.Throughput = __strictParseInt32(output["throughput"]) as number; + if (output[_th] != null) { + contents[_Th] = __strictParseInt32(output[_th]) as number; } return contents; }; @@ -84819,11 +83721,11 @@ const de_LaunchTemplateElasticInferenceAcceleratorResponse = ( context: __SerdeContext ): LaunchTemplateElasticInferenceAcceleratorResponse => { const contents: any = {}; - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } return contents; }; @@ -84850,14 +83752,11 @@ const de_LaunchTemplateEnaSrdSpecification = ( context: __SerdeContext ): LaunchTemplateEnaSrdSpecification => { const contents: any = {}; - if (output["enaSrdEnabled"] !== undefined) { - contents.EnaSrdEnabled = __parseBoolean(output["enaSrdEnabled"]); + if (output[_eSE] != null) { + contents[_ESE] = __parseBoolean(output[_eSE]); } - if (output["enaSrdUdpSpecification"] !== undefined) { - contents.EnaSrdUdpSpecification = de_LaunchTemplateEnaSrdUdpSpecification( - output["enaSrdUdpSpecification"], - context - ); + if (output[_eSUS] != null) { + contents[_ESUS] = de_LaunchTemplateEnaSrdUdpSpecification(output[_eSUS], context); } return contents; }; @@ -84870,8 +83769,8 @@ const de_LaunchTemplateEnaSrdUdpSpecification = ( context: __SerdeContext ): LaunchTemplateEnaSrdUdpSpecification => { const contents: any = {}; - if (output["enaSrdUdpEnabled"] !== undefined) { - contents.EnaSrdUdpEnabled = __parseBoolean(output["enaSrdUdpEnabled"]); + if (output[_eSUE] != null) { + contents[_ESUE] = __parseBoolean(output[_eSUE]); } return contents; }; @@ -84881,8 +83780,8 @@ const de_LaunchTemplateEnaSrdUdpSpecification = ( */ const de_LaunchTemplateEnclaveOptions = (output: any, context: __SerdeContext): LaunchTemplateEnclaveOptions => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } return contents; }; @@ -84895,8 +83794,8 @@ const de_LaunchTemplateHibernationOptions = ( context: __SerdeContext ): LaunchTemplateHibernationOptions => { const contents: any = {}; - if (output["configured"] !== undefined) { - contents.Configured = __parseBoolean(output["configured"]); + if (output[_conf] != null) { + contents[_Conf] = __parseBoolean(output[_conf]); } return contents; }; @@ -84909,11 +83808,11 @@ const de_LaunchTemplateIamInstanceProfileSpecification = ( context: __SerdeContext ): LaunchTemplateIamInstanceProfileSpecification => { const contents: any = {}; - if (output["arn"] !== undefined) { - contents.Arn = __expectString(output["arn"]); + if (output[_ar] != null) { + contents[_Ar] = __expectString(output[_ar]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } return contents; }; @@ -84926,8 +83825,8 @@ const de_LaunchTemplateInstanceMaintenanceOptions = ( context: __SerdeContext ): LaunchTemplateInstanceMaintenanceOptions => { const contents: any = {}; - if (output["autoRecovery"] !== undefined) { - contents.AutoRecovery = __expectString(output["autoRecovery"]); + if (output[_aRu] != null) { + contents[_ARu] = __expectString(output[_aRu]); } return contents; }; @@ -84940,11 +83839,11 @@ const de_LaunchTemplateInstanceMarketOptions = ( context: __SerdeContext ): LaunchTemplateInstanceMarketOptions => { const contents: any = {}; - if (output["marketType"] !== undefined) { - contents.MarketType = __expectString(output["marketType"]); + if (output[_mT] != null) { + contents[_MT] = __expectString(output[_mT]); } - if (output["spotOptions"] !== undefined) { - contents.SpotOptions = de_LaunchTemplateSpotMarketOptions(output["spotOptions"], context); + if (output[_sO] != null) { + contents[_SO] = de_LaunchTemplateSpotMarketOptions(output[_sO], context); } return contents; }; @@ -84957,23 +83856,23 @@ const de_LaunchTemplateInstanceMetadataOptions = ( context: __SerdeContext ): LaunchTemplateInstanceMetadataOptions => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["httpTokens"] !== undefined) { - contents.HttpTokens = __expectString(output["httpTokens"]); + if (output[_hT] != null) { + contents[_HT] = __expectString(output[_hT]); } - if (output["httpPutResponseHopLimit"] !== undefined) { - contents.HttpPutResponseHopLimit = __strictParseInt32(output["httpPutResponseHopLimit"]) as number; + if (output[_hPRHL] != null) { + contents[_HPRHL] = __strictParseInt32(output[_hPRHL]) as number; } - if (output["httpEndpoint"] !== undefined) { - contents.HttpEndpoint = __expectString(output["httpEndpoint"]); + if (output[_hE] != null) { + contents[_HE] = __expectString(output[_hE]); } - if (output["httpProtocolIpv6"] !== undefined) { - contents.HttpProtocolIpv6 = __expectString(output["httpProtocolIpv6"]); + if (output[_hPI] != null) { + contents[_HPI] = __expectString(output[_hPI]); } - if (output["instanceMetadataTags"] !== undefined) { - contents.InstanceMetadataTags = __expectString(output["instanceMetadataTags"]); + if (output[_iMT] != null) { + contents[_IMT] = __expectString(output[_iMT]); } return contents; }; @@ -84986,90 +83885,81 @@ const de_LaunchTemplateInstanceNetworkInterfaceSpecification = ( context: __SerdeContext ): LaunchTemplateInstanceNetworkInterfaceSpecification => { const contents: any = {}; - if (output["associateCarrierIpAddress"] !== undefined) { - contents.AssociateCarrierIpAddress = __parseBoolean(output["associateCarrierIpAddress"]); + if (output[_aCIA] != null) { + contents[_ACIA] = __parseBoolean(output[_aCIA]); } - if (output["associatePublicIpAddress"] !== undefined) { - contents.AssociatePublicIpAddress = __parseBoolean(output["associatePublicIpAddress"]); + if (output[_aPIA] != null) { + contents[_APIAs] = __parseBoolean(output[_aPIA]); } - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; + if (output[_dIe] != null) { + contents[_DIev] = __strictParseInt32(output[_dIe]) as number; } if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["groupId"] !== undefined) { - contents.Groups = de_GroupIdStringList(__getArrayIfSingleItem(output["groupSet"]["groupId"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_gIr] != null) { + contents[_G] = de_GroupIdStringList(__getArrayIfSingleItem(output[_gS][_gIr]), context); } - if (output["interfaceType"] !== undefined) { - contents.InterfaceType = __expectString(output["interfaceType"]); + if (output[_iTnt] != null) { + contents[_ITn] = __expectString(output[_iTnt]); } - if (output["ipv6AddressCount"] !== undefined) { - contents.Ipv6AddressCount = __strictParseInt32(output["ipv6AddressCount"]) as number; + if (output[_iAC] != null) { + contents[_IAC] = __strictParseInt32(output[_iAC]) as number; } if (output.ipv6AddressesSet === "") { - contents.Ipv6Addresses = []; - } else if (output["ipv6AddressesSet"] !== undefined && output["ipv6AddressesSet"]["item"] !== undefined) { - contents.Ipv6Addresses = de_InstanceIpv6AddressList( - __getArrayIfSingleItem(output["ipv6AddressesSet"]["item"]), - context - ); + contents[_IA] = []; + } else if (output[_iASp] != null && output[_iASp][_i] != null) { + contents[_IA] = de_InstanceIpv6AddressList(__getArrayIfSingleItem(output[_iASp][_i]), context); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } if (output.privateIpAddressesSet === "") { - contents.PrivateIpAddresses = []; - } else if (output["privateIpAddressesSet"] !== undefined && output["privateIpAddressesSet"]["item"] !== undefined) { - contents.PrivateIpAddresses = de_PrivateIpAddressSpecificationList( - __getArrayIfSingleItem(output["privateIpAddressesSet"]["item"]), - context - ); + contents[_PIA] = []; + } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { + contents[_PIA] = de_PrivateIpAddressSpecificationList(__getArrayIfSingleItem(output[_pIAS][_i]), context); } - if (output["secondaryPrivateIpAddressCount"] !== undefined) { - contents.SecondaryPrivateIpAddressCount = __strictParseInt32(output["secondaryPrivateIpAddressCount"]) as number; + if (output[_sPIAC] != null) { + contents[_SPIAC] = __strictParseInt32(output[_sPIAC]) as number; } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; + if (output[_nCI] != null) { + contents[_NCI] = __strictParseInt32(output[_nCI]) as number; } if (output.ipv4PrefixSet === "") { - contents.Ipv4Prefixes = []; - } else if (output["ipv4PrefixSet"] !== undefined && output["ipv4PrefixSet"]["item"] !== undefined) { - contents.Ipv4Prefixes = de_Ipv4PrefixListResponse(__getArrayIfSingleItem(output["ipv4PrefixSet"]["item"]), context); + contents[_IPp] = []; + } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) { + contents[_IPp] = de_Ipv4PrefixListResponse(__getArrayIfSingleItem(output[_iPSpv][_i]), context); } - if (output["ipv4PrefixCount"] !== undefined) { - contents.Ipv4PrefixCount = __strictParseInt32(output["ipv4PrefixCount"]) as number; + if (output[_iPCp] != null) { + contents[_IPCp] = __strictParseInt32(output[_iPCp]) as number; } if (output.ipv6PrefixSet === "") { - contents.Ipv6Prefixes = []; - } else if (output["ipv6PrefixSet"] !== undefined && output["ipv6PrefixSet"]["item"] !== undefined) { - contents.Ipv6Prefixes = de_Ipv6PrefixListResponse(__getArrayIfSingleItem(output["ipv6PrefixSet"]["item"]), context); + contents[_IP] = []; + } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) { + contents[_IP] = de_Ipv6PrefixListResponse(__getArrayIfSingleItem(output[_iPSpvr][_i]), context); } - if (output["ipv6PrefixCount"] !== undefined) { - contents.Ipv6PrefixCount = __strictParseInt32(output["ipv6PrefixCount"]) as number; + if (output[_iPCpv] != null) { + contents[_IPC] = __strictParseInt32(output[_iPCpv]) as number; } - if (output["primaryIpv6"] !== undefined) { - contents.PrimaryIpv6 = __parseBoolean(output["primaryIpv6"]); + if (output[_pIri] != null) { + contents[_PIr] = __parseBoolean(output[_pIri]); } - if (output["enaSrdSpecification"] !== undefined) { - contents.EnaSrdSpecification = de_LaunchTemplateEnaSrdSpecification(output["enaSrdSpecification"], context); + if (output[_eSS] != null) { + contents[_ESS] = de_LaunchTemplateEnaSrdSpecification(output[_eSS], context); } - if (output["connectionTrackingSpecification"] !== undefined) { - contents.ConnectionTrackingSpecification = de_ConnectionTrackingSpecification( - output["connectionTrackingSpecification"], - context - ); + if (output[_cTS] != null) { + contents[_CTS] = de_ConnectionTrackingSpecification(output[_cTS], context); } return contents; }; @@ -85096,8 +83986,8 @@ const de_LaunchTemplateLicenseConfiguration = ( context: __SerdeContext ): LaunchTemplateLicenseConfiguration => { const contents: any = {}; - if (output["licenseConfigurationArn"] !== undefined) { - contents.LicenseConfigurationArn = __expectString(output["licenseConfigurationArn"]); + if (output[_lCA] != null) { + contents[_LCA] = __expectString(output[_lCA]); } return contents; }; @@ -85118,26 +84008,26 @@ const de_LaunchTemplateLicenseList = (output: any, context: __SerdeContext): Lau */ const de_LaunchTemplateOverrides = (output: any, context: __SerdeContext): LaunchTemplateOverrides => { const contents: any = {}; - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["spotPrice"] !== undefined) { - contents.SpotPrice = __expectString(output["spotPrice"]); + if (output[_sPp] != null) { + contents[_SPp] = __expectString(output[_sPp]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["weightedCapacity"] !== undefined) { - contents.WeightedCapacity = __strictParseFloat(output["weightedCapacity"]) as number; + if (output[_wC] != null) { + contents[_WC] = __strictParseFloat(output[_wC]) as number; } - if (output["priority"] !== undefined) { - contents.Priority = __strictParseFloat(output["priority"]) as number; + if (output[_pri] != null) { + contents[_Pri] = __strictParseFloat(output[_pri]) as number; } - if (output["instanceRequirements"] !== undefined) { - contents.InstanceRequirements = de_InstanceRequirements(output["instanceRequirements"], context); + if (output[_iR] != null) { + contents[_IR] = de_InstanceRequirements(output[_iR], context); } return contents; }; @@ -85158,32 +84048,32 @@ const de_LaunchTemplateOverridesList = (output: any, context: __SerdeContext): L */ const de_LaunchTemplatePlacement = (output: any, context: __SerdeContext): LaunchTemplatePlacement => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["affinity"] !== undefined) { - contents.Affinity = __expectString(output["affinity"]); + if (output[_af] != null) { + contents[_Af] = __expectString(output[_af]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["hostId"] !== undefined) { - contents.HostId = __expectString(output["hostId"]); + if (output[_hI] != null) { + contents[_HIo] = __expectString(output[_hI]); } - if (output["tenancy"] !== undefined) { - contents.Tenancy = __expectString(output["tenancy"]); + if (output[_t] != null) { + contents[_Te] = __expectString(output[_t]); } - if (output["spreadDomain"] !== undefined) { - contents.SpreadDomain = __expectString(output["spreadDomain"]); + if (output[_sDp] != null) { + contents[_SD] = __expectString(output[_sDp]); } - if (output["hostResourceGroupArn"] !== undefined) { - contents.HostResourceGroupArn = __expectString(output["hostResourceGroupArn"]); + if (output[_hRGA] != null) { + contents[_HRGA] = __expectString(output[_hRGA]); } - if (output["partitionNumber"] !== undefined) { - contents.PartitionNumber = __strictParseInt32(output["partitionNumber"]) as number; + if (output[_pN] != null) { + contents[_PN] = __strictParseInt32(output[_pN]) as number; } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } return contents; }; @@ -85196,14 +84086,14 @@ const de_LaunchTemplatePrivateDnsNameOptions = ( context: __SerdeContext ): LaunchTemplatePrivateDnsNameOptions => { const contents: any = {}; - if (output["hostnameType"] !== undefined) { - contents.HostnameType = __expectString(output["hostnameType"]); + if (output[_hTo] != null) { + contents[_HTo] = __expectString(output[_hTo]); } - if (output["enableResourceNameDnsARecord"] !== undefined) { - contents.EnableResourceNameDnsARecord = __parseBoolean(output["enableResourceNameDnsARecord"]); + if (output[_eRNDAR] != null) { + contents[_ERNDAR] = __parseBoolean(output[_eRNDAR]); } - if (output["enableResourceNameDnsAAAARecord"] !== undefined) { - contents.EnableResourceNameDnsAAAARecord = __parseBoolean(output["enableResourceNameDnsAAAARecord"]); + if (output[_eRNDAAAAR] != null) { + contents[_ERNDAAAAR] = __parseBoolean(output[_eRNDAAAAR]); } return contents; }; @@ -85224,8 +84114,8 @@ const de_LaunchTemplateSet = (output: any, context: __SerdeContext): LaunchTempl */ const de_LaunchTemplatesMonitoring = (output: any, context: __SerdeContext): LaunchTemplatesMonitoring => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } return contents; }; @@ -85235,20 +84125,20 @@ const de_LaunchTemplatesMonitoring = (output: any, context: __SerdeContext): Lau */ const de_LaunchTemplateSpotMarketOptions = (output: any, context: __SerdeContext): LaunchTemplateSpotMarketOptions => { const contents: any = {}; - if (output["maxPrice"] !== undefined) { - contents.MaxPrice = __expectString(output["maxPrice"]); + if (output[_mP] != null) { + contents[_MPa] = __expectString(output[_mP]); } - if (output["spotInstanceType"] !== undefined) { - contents.SpotInstanceType = __expectString(output["spotInstanceType"]); + if (output[_sIT] != null) { + contents[_SIT] = __expectString(output[_sIT]); } - if (output["blockDurationMinutes"] !== undefined) { - contents.BlockDurationMinutes = __strictParseInt32(output["blockDurationMinutes"]) as number; + if (output[_bDMl] != null) { + contents[_BDMl] = __strictParseInt32(output[_bDMl]) as number; } - if (output["validUntil"] !== undefined) { - contents.ValidUntil = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["validUntil"])); + if (output[_vU] != null) { + contents[_VU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_vU])); } - if (output["instanceInterruptionBehavior"] !== undefined) { - contents.InstanceInterruptionBehavior = __expectString(output["instanceInterruptionBehavior"]); + if (output[_iIB] != null) { + contents[_IIB] = __expectString(output[_iIB]); } return contents; }; @@ -85258,13 +84148,13 @@ const de_LaunchTemplateSpotMarketOptions = (output: any, context: __SerdeContext */ const de_LaunchTemplateTagSpecification = (output: any, context: __SerdeContext): LaunchTemplateTagSpecification => { const contents: any = {}; - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -85288,29 +84178,29 @@ const de_LaunchTemplateTagSpecificationList = ( */ const de_LaunchTemplateVersion = (output: any, context: __SerdeContext): LaunchTemplateVersion => { const contents: any = {}; - if (output["launchTemplateId"] !== undefined) { - contents.LaunchTemplateId = __expectString(output["launchTemplateId"]); + if (output[_lTI] != null) { + contents[_LTI] = __expectString(output[_lTI]); } - if (output["launchTemplateName"] !== undefined) { - contents.LaunchTemplateName = __expectString(output["launchTemplateName"]); + if (output[_lTN] != null) { + contents[_LTN] = __expectString(output[_lTN]); } - if (output["versionNumber"] !== undefined) { - contents.VersionNumber = __strictParseLong(output["versionNumber"]) as number; + if (output[_vNe] != null) { + contents[_VNe] = __strictParseLong(output[_vNe]) as number; } - if (output["versionDescription"] !== undefined) { - contents.VersionDescription = __expectString(output["versionDescription"]); + if (output[_vD] != null) { + contents[_VD] = __expectString(output[_vD]); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["createdBy"] !== undefined) { - contents.CreatedBy = __expectString(output["createdBy"]); + if (output[_cBr] != null) { + contents[_CBr] = __expectString(output[_cBr]); } - if (output["defaultVersion"] !== undefined) { - contents.DefaultVersion = __parseBoolean(output["defaultVersion"]); + if (output[_dVe] != null) { + contents[_DVef] = __parseBoolean(output[_dVe]); } - if (output["launchTemplateData"] !== undefined) { - contents.LaunchTemplateData = de_ResponseLaunchTemplateData(output["launchTemplateData"], context); + if (output[_lTD] != null) { + contents[_LTD] = de_ResponseLaunchTemplateData(output[_lTD], context); } return contents; }; @@ -85331,8 +84221,8 @@ const de_LaunchTemplateVersionSet = (output: any, context: __SerdeContext): Laun */ const de_LicenseConfiguration = (output: any, context: __SerdeContext): LicenseConfiguration => { const contents: any = {}; - if (output["licenseConfigurationArn"] !== undefined) { - contents.LicenseConfigurationArn = __expectString(output["licenseConfigurationArn"]); + if (output[_lCA] != null) { + contents[_LCA] = __expectString(output[_lCA]); } return contents; }; @@ -85354,12 +84244,12 @@ const de_LicenseList = (output: any, context: __SerdeContext): LicenseConfigurat const de_ListImagesInRecycleBinResult = (output: any, context: __SerdeContext): ListImagesInRecycleBinResult => { const contents: any = {}; if (output.imageSet === "") { - contents.Images = []; - } else if (output["imageSet"] !== undefined && output["imageSet"]["item"] !== undefined) { - contents.Images = de_ImageRecycleBinInfoList(__getArrayIfSingleItem(output["imageSet"]["item"]), context); + contents[_Ima] = []; + } else if (output[_iSmag] != null && output[_iSmag][_i] != null) { + contents[_Ima] = de_ImageRecycleBinInfoList(__getArrayIfSingleItem(output[_iSmag][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -85370,12 +84260,12 @@ const de_ListImagesInRecycleBinResult = (output: any, context: __SerdeContext): const de_ListSnapshotsInRecycleBinResult = (output: any, context: __SerdeContext): ListSnapshotsInRecycleBinResult => { const contents: any = {}; if (output.snapshotSet === "") { - contents.Snapshots = []; - } else if (output["snapshotSet"] !== undefined && output["snapshotSet"]["item"] !== undefined) { - contents.Snapshots = de_SnapshotRecycleBinInfoList(__getArrayIfSingleItem(output["snapshotSet"]["item"]), context); + contents[_Sn] = []; + } else if (output[_sS] != null && output[_sS][_i] != null) { + contents[_Sn] = de_SnapshotRecycleBinInfoList(__getArrayIfSingleItem(output[_sS][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -85385,11 +84275,11 @@ const de_ListSnapshotsInRecycleBinResult = (output: any, context: __SerdeContext */ const de_LoadBalancersConfig = (output: any, context: __SerdeContext): LoadBalancersConfig => { const contents: any = {}; - if (output["classicLoadBalancersConfig"] !== undefined) { - contents.ClassicLoadBalancersConfig = de_ClassicLoadBalancersConfig(output["classicLoadBalancersConfig"], context); + if (output[_cLBC] != null) { + contents[_CLBC] = de_ClassicLoadBalancersConfig(output[_cLBC], context); } - if (output["targetGroupsConfig"] !== undefined) { - contents.TargetGroupsConfig = de_TargetGroupsConfig(output["targetGroupsConfig"], context); + if (output[_tGCa] != null) { + contents[_TGC] = de_TargetGroupsConfig(output[_tGCa], context); } return contents; }; @@ -85399,11 +84289,11 @@ const de_LoadBalancersConfig = (output: any, context: __SerdeContext): LoadBalan */ const de_LoadPermission = (output: any, context: __SerdeContext): LoadPermission => { const contents: any = {}; - if (output["userId"] !== undefined) { - contents.UserId = __expectString(output["userId"]); + if (output[_uI] != null) { + contents[_UIs] = __expectString(output[_uI]); } - if (output["group"] !== undefined) { - contents.Group = __expectString(output["group"]); + if (output[_g] != null) { + contents[_Gr] = __expectString(output[_g]); } return contents; }; @@ -85424,22 +84314,22 @@ const de_LoadPermissionList = (output: any, context: __SerdeContext): LoadPermis */ const de_LocalGateway = (output: any, context: __SerdeContext): LocalGateway => { const contents: any = {}; - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -85449,38 +84339,38 @@ const de_LocalGateway = (output: any, context: __SerdeContext): LocalGateway => */ const de_LocalGatewayRoute = (output: any, context: __SerdeContext): LocalGatewayRoute => { const contents: any = {}; - if (output["destinationCidrBlock"] !== undefined) { - contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]); + if (output[_dCB] != null) { + contents[_DCB] = __expectString(output[_dCB]); } - if (output["localGatewayVirtualInterfaceGroupId"] !== undefined) { - contents.LocalGatewayVirtualInterfaceGroupId = __expectString(output["localGatewayVirtualInterfaceGroupId"]); + if (output[_lGVIGI] != null) { + contents[_LGVIGI] = __expectString(output[_lGVIGI]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["localGatewayRouteTableId"] !== undefined) { - contents.LocalGatewayRouteTableId = __expectString(output["localGatewayRouteTableId"]); + if (output[_lGRTI] != null) { + contents[_LGRTI] = __expectString(output[_lGRTI]); } - if (output["localGatewayRouteTableArn"] !== undefined) { - contents.LocalGatewayRouteTableArn = __expectString(output["localGatewayRouteTableArn"]); + if (output[_lGRTA] != null) { + contents[_LGRTA] = __expectString(output[_lGRTA]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["coipPoolId"] !== undefined) { - contents.CoipPoolId = __expectString(output["coipPoolId"]); + if (output[_cPI] != null) { + contents[_CPIo] = __expectString(output[_cPI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["destinationPrefixListId"] !== undefined) { - contents.DestinationPrefixListId = __expectString(output["destinationPrefixListId"]); + if (output[_dPLI] != null) { + contents[_DPLI] = __expectString(output[_dPLI]); } return contents; }; @@ -85501,34 +84391,34 @@ const de_LocalGatewayRouteList = (output: any, context: __SerdeContext): LocalGa */ const de_LocalGatewayRouteTable = (output: any, context: __SerdeContext): LocalGatewayRouteTable => { const contents: any = {}; - if (output["localGatewayRouteTableId"] !== undefined) { - contents.LocalGatewayRouteTableId = __expectString(output["localGatewayRouteTableId"]); + if (output[_lGRTI] != null) { + contents[_LGRTI] = __expectString(output[_lGRTI]); } - if (output["localGatewayRouteTableArn"] !== undefined) { - contents.LocalGatewayRouteTableArn = __expectString(output["localGatewayRouteTableArn"]); + if (output[_lGRTA] != null) { + contents[_LGRTA] = __expectString(output[_lGRTA]); } - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["mode"] !== undefined) { - contents.Mode = __expectString(output["mode"]); + if (output[_mod] != null) { + contents[_Mo] = __expectString(output[_mod]); } - if (output["stateReason"] !== undefined) { - contents.StateReason = de_StateReason(output["stateReason"], context); + if (output[_sR] != null) { + contents[_SRt] = de_StateReason(output[_sR], context); } return contents; }; @@ -85552,33 +84442,31 @@ const de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation = ( context: __SerdeContext ): LocalGatewayRouteTableVirtualInterfaceGroupAssociation => { const contents: any = {}; - if (output["localGatewayRouteTableVirtualInterfaceGroupAssociationId"] !== undefined) { - contents.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId = __expectString( - output["localGatewayRouteTableVirtualInterfaceGroupAssociationId"] - ); + if (output[_lGRTVIGAI] != null) { + contents[_LGRTVIGAI] = __expectString(output[_lGRTVIGAI]); } - if (output["localGatewayVirtualInterfaceGroupId"] !== undefined) { - contents.LocalGatewayVirtualInterfaceGroupId = __expectString(output["localGatewayVirtualInterfaceGroupId"]); + if (output[_lGVIGI] != null) { + contents[_LGVIGI] = __expectString(output[_lGVIGI]); } - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } - if (output["localGatewayRouteTableId"] !== undefined) { - contents.LocalGatewayRouteTableId = __expectString(output["localGatewayRouteTableId"]); + if (output[_lGRTI] != null) { + contents[_LGRTI] = __expectString(output[_lGRTI]); } - if (output["localGatewayRouteTableArn"] !== undefined) { - contents.LocalGatewayRouteTableArn = __expectString(output["localGatewayRouteTableArn"]); + if (output[_lGRTA] != null) { + contents[_LGRTA] = __expectString(output[_lGRTA]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -85605,31 +84493,31 @@ const de_LocalGatewayRouteTableVpcAssociation = ( context: __SerdeContext ): LocalGatewayRouteTableVpcAssociation => { const contents: any = {}; - if (output["localGatewayRouteTableVpcAssociationId"] !== undefined) { - contents.LocalGatewayRouteTableVpcAssociationId = __expectString(output["localGatewayRouteTableVpcAssociationId"]); + if (output[_lGRTVAI] != null) { + contents[_LGRTVAI] = __expectString(output[_lGRTVAI]); } - if (output["localGatewayRouteTableId"] !== undefined) { - contents.LocalGatewayRouteTableId = __expectString(output["localGatewayRouteTableId"]); + if (output[_lGRTI] != null) { + contents[_LGRTI] = __expectString(output[_lGRTI]); } - if (output["localGatewayRouteTableArn"] !== undefined) { - contents.LocalGatewayRouteTableArn = __expectString(output["localGatewayRouteTableArn"]); + if (output[_lGRTA] != null) { + contents[_LGRTA] = __expectString(output[_lGRTA]); } - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -85664,34 +84552,34 @@ const de_LocalGatewaySet = (output: any, context: __SerdeContext): LocalGateway[ */ const de_LocalGatewayVirtualInterface = (output: any, context: __SerdeContext): LocalGatewayVirtualInterface => { const contents: any = {}; - if (output["localGatewayVirtualInterfaceId"] !== undefined) { - contents.LocalGatewayVirtualInterfaceId = __expectString(output["localGatewayVirtualInterfaceId"]); + if (output[_lGVII] != null) { + contents[_LGVIIo] = __expectString(output[_lGVII]); } - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } - if (output["vlan"] !== undefined) { - contents.Vlan = __strictParseInt32(output["vlan"]) as number; + if (output[_vl] != null) { + contents[_Vl] = __strictParseInt32(output[_vl]) as number; } - if (output["localAddress"] !== undefined) { - contents.LocalAddress = __expectString(output["localAddress"]); + if (output[_lA] != null) { + contents[_LA] = __expectString(output[_lA]); } - if (output["peerAddress"] !== undefined) { - contents.PeerAddress = __expectString(output["peerAddress"]); + if (output[_pAe] != null) { + contents[_PAe] = __expectString(output[_pAe]); } - if (output["localBgpAsn"] !== undefined) { - contents.LocalBgpAsn = __strictParseInt32(output["localBgpAsn"]) as number; + if (output[_lBAo] != null) { + contents[_LBAo] = __strictParseInt32(output[_lBAo]) as number; } - if (output["peerBgpAsn"] !== undefined) { - contents.PeerBgpAsn = __strictParseInt32(output["peerBgpAsn"]) as number; + if (output[_pBA] != null) { + contents[_PBA] = __strictParseInt32(output[_pBA]) as number; } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -85704,30 +84592,24 @@ const de_LocalGatewayVirtualInterfaceGroup = ( context: __SerdeContext ): LocalGatewayVirtualInterfaceGroup => { const contents: any = {}; - if (output["localGatewayVirtualInterfaceGroupId"] !== undefined) { - contents.LocalGatewayVirtualInterfaceGroupId = __expectString(output["localGatewayVirtualInterfaceGroupId"]); + if (output[_lGVIGI] != null) { + contents[_LGVIGI] = __expectString(output[_lGVIGI]); } if (output.localGatewayVirtualInterfaceIdSet === "") { - contents.LocalGatewayVirtualInterfaceIds = []; - } else if ( - output["localGatewayVirtualInterfaceIdSet"] !== undefined && - output["localGatewayVirtualInterfaceIdSet"]["item"] !== undefined - ) { - contents.LocalGatewayVirtualInterfaceIds = de_LocalGatewayVirtualInterfaceIdSet( - __getArrayIfSingleItem(output["localGatewayVirtualInterfaceIdSet"]["item"]), - context - ); + contents[_LGVII] = []; + } else if (output[_lGVIIS] != null && output[_lGVIIS][_i] != null) { + contents[_LGVII] = de_LocalGatewayVirtualInterfaceIdSet(__getArrayIfSingleItem(output[_lGVIIS][_i]), context); } - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -85784,34 +84666,32 @@ const de_LocalStorageTypeSet = (output: any, context: __SerdeContext): LocalStor */ const de_LockedSnapshotsInfo = (output: any, context: __SerdeContext): LockedSnapshotsInfo => { const contents: any = {}; - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["lockState"] !== undefined) { - contents.LockState = __expectString(output["lockState"]); + if (output[_lSoc] != null) { + contents[_LSoc] = __expectString(output[_lSoc]); } - if (output["lockDuration"] !== undefined) { - contents.LockDuration = __strictParseInt32(output["lockDuration"]) as number; + if (output[_lDo] != null) { + contents[_LDo] = __strictParseInt32(output[_lDo]) as number; } - if (output["coolOffPeriod"] !== undefined) { - contents.CoolOffPeriod = __strictParseInt32(output["coolOffPeriod"]) as number; + if (output[_cOP] != null) { + contents[_COP] = __strictParseInt32(output[_cOP]) as number; } - if (output["coolOffPeriodExpiresOn"] !== undefined) { - contents.CoolOffPeriodExpiresOn = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["coolOffPeriodExpiresOn"]) - ); + if (output[_cOPEO] != null) { + contents[_COPEO] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cOPEO])); } - if (output["lockCreatedOn"] !== undefined) { - contents.LockCreatedOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockCreatedOn"])); + if (output[_lCO] != null) { + contents[_LCO] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lCO])); } - if (output["lockDurationStartTime"] !== undefined) { - contents.LockDurationStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockDurationStartTime"])); + if (output[_lDST] != null) { + contents[_LDST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lDST])); } - if (output["lockExpiresOn"] !== undefined) { - contents.LockExpiresOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockExpiresOn"])); + if (output[_lEO] != null) { + contents[_LEO] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lEO])); } return contents; }; @@ -85832,31 +84712,29 @@ const de_LockedSnapshotsInfoList = (output: any, context: __SerdeContext): Locke */ const de_LockSnapshotResult = (output: any, context: __SerdeContext): LockSnapshotResult => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["lockState"] !== undefined) { - contents.LockState = __expectString(output["lockState"]); + if (output[_lSoc] != null) { + contents[_LSoc] = __expectString(output[_lSoc]); } - if (output["lockDuration"] !== undefined) { - contents.LockDuration = __strictParseInt32(output["lockDuration"]) as number; + if (output[_lDo] != null) { + contents[_LDo] = __strictParseInt32(output[_lDo]) as number; } - if (output["coolOffPeriod"] !== undefined) { - contents.CoolOffPeriod = __strictParseInt32(output["coolOffPeriod"]) as number; + if (output[_cOP] != null) { + contents[_COP] = __strictParseInt32(output[_cOP]) as number; } - if (output["coolOffPeriodExpiresOn"] !== undefined) { - contents.CoolOffPeriodExpiresOn = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["coolOffPeriodExpiresOn"]) - ); + if (output[_cOPEO] != null) { + contents[_COPEO] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cOPEO])); } - if (output["lockCreatedOn"] !== undefined) { - contents.LockCreatedOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockCreatedOn"])); + if (output[_lCO] != null) { + contents[_LCO] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lCO])); } - if (output["lockExpiresOn"] !== undefined) { - contents.LockExpiresOn = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockExpiresOn"])); + if (output[_lEO] != null) { + contents[_LEO] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lEO])); } - if (output["lockDurationStartTime"] !== undefined) { - contents.LockDurationStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lockDurationStartTime"])); + if (output[_lDST] != null) { + contents[_LDST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lDST])); } return contents; }; @@ -85866,18 +84744,14 @@ const de_LockSnapshotResult = (output: any, context: __SerdeContext): LockSnapsh */ const de_MaintenanceDetails = (output: any, context: __SerdeContext): MaintenanceDetails => { const contents: any = {}; - if (output["pendingMaintenance"] !== undefined) { - contents.PendingMaintenance = __expectString(output["pendingMaintenance"]); + if (output[_pM] != null) { + contents[_PM] = __expectString(output[_pM]); } - if (output["maintenanceAutoAppliedAfter"] !== undefined) { - contents.MaintenanceAutoAppliedAfter = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["maintenanceAutoAppliedAfter"]) - ); + if (output[_mAAA] != null) { + contents[_MAAA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_mAAA])); } - if (output["lastMaintenanceApplied"] !== undefined) { - contents.LastMaintenanceApplied = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["lastMaintenanceApplied"]) - ); + if (output[_lMA] != null) { + contents[_LMA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lMA])); } return contents; }; @@ -85887,37 +84761,37 @@ const de_MaintenanceDetails = (output: any, context: __SerdeContext): Maintenanc */ const de_ManagedPrefixList = (output: any, context: __SerdeContext): ManagedPrefixList => { const contents: any = {}; - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } - if (output["addressFamily"] !== undefined) { - contents.AddressFamily = __expectString(output["addressFamily"]); + if (output[_aF] != null) { + contents[_AF] = __expectString(output[_aF]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["stateMessage"] !== undefined) { - contents.StateMessage = __expectString(output["stateMessage"]); + if (output[_sMt] != null) { + contents[_SMt] = __expectString(output[_sMt]); } - if (output["prefixListArn"] !== undefined) { - contents.PrefixListArn = __expectString(output["prefixListArn"]); + if (output[_pLA] != null) { + contents[_PLAr] = __expectString(output[_pLA]); } - if (output["prefixListName"] !== undefined) { - contents.PrefixListName = __expectString(output["prefixListName"]); + if (output[_pLN] != null) { + contents[_PLN] = __expectString(output[_pLN]); } - if (output["maxEntries"] !== undefined) { - contents.MaxEntries = __strictParseInt32(output["maxEntries"]) as number; + if (output[_mE] != null) { + contents[_ME] = __strictParseInt32(output[_mE]) as number; } - if (output["version"] !== undefined) { - contents.Version = __strictParseLong(output["version"]) as number; + if (output[_ve] != null) { + contents[_V] = __strictParseLong(output[_ve]) as number; } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } return contents; }; @@ -85938,11 +84812,11 @@ const de_ManagedPrefixListSet = (output: any, context: __SerdeContext): ManagedP */ const de_MemoryGiBPerVCpu = (output: any, context: __SerdeContext): MemoryGiBPerVCpu => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseFloat(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseFloat(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseFloat(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseFloat(output[_ma]) as number; } return contents; }; @@ -85952,8 +84826,8 @@ const de_MemoryGiBPerVCpu = (output: any, context: __SerdeContext): MemoryGiBPer */ const de_MemoryInfo = (output: any, context: __SerdeContext): MemoryInfo => { const contents: any = {}; - if (output["sizeInMiB"] !== undefined) { - contents.SizeInMiB = __strictParseLong(output["sizeInMiB"]) as number; + if (output[_sIMB] != null) { + contents[_SIMB] = __strictParseLong(output[_sIMB]) as number; } return contents; }; @@ -85963,11 +84837,11 @@ const de_MemoryInfo = (output: any, context: __SerdeContext): MemoryInfo => { */ const de_MemoryMiB = (output: any, context: __SerdeContext): MemoryMiB => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseInt32(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseInt32(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseInt32(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseInt32(output[_ma]) as number; } return contents; }; @@ -85977,17 +84851,17 @@ const de_MemoryMiB = (output: any, context: __SerdeContext): MemoryMiB => { */ const de_MetricPoint = (output: any, context: __SerdeContext): MetricPoint => { const contents: any = {}; - if (output["startDate"] !== undefined) { - contents.StartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startDate"])); + if (output[_sD] != null) { + contents[_SDt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sD])); } - if (output["endDate"] !== undefined) { - contents.EndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["endDate"])); + if (output[_eD] != null) { + contents[_ED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eD])); } - if (output["value"] !== undefined) { - contents.Value = __strictParseFloat(output["value"]) as number; + if (output[_v] != null) { + contents[_Va] = __strictParseFloat(output[_v]) as number; } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -86008,8 +84882,8 @@ const de_MetricPoints = (output: any, context: __SerdeContext): MetricPoint[] => */ const de_ModifyAddressAttributeResult = (output: any, context: __SerdeContext): ModifyAddressAttributeResult => { const contents: any = {}; - if (output["address"] !== undefined) { - contents.Address = de_AddressAttribute(output["address"], context); + if (output[_ad] != null) { + contents[_Ad] = de_AddressAttribute(output[_ad], context); } return contents; }; @@ -86022,8 +84896,8 @@ const de_ModifyAvailabilityZoneGroupResult = ( context: __SerdeContext ): ModifyAvailabilityZoneGroupResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86036,8 +84910,8 @@ const de_ModifyCapacityReservationFleetResult = ( context: __SerdeContext ): ModifyCapacityReservationFleetResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86047,8 +84921,8 @@ const de_ModifyCapacityReservationFleetResult = ( */ const de_ModifyCapacityReservationResult = (output: any, context: __SerdeContext): ModifyCapacityReservationResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86058,8 +84932,8 @@ const de_ModifyCapacityReservationResult = (output: any, context: __SerdeContext */ const de_ModifyClientVpnEndpointResult = (output: any, context: __SerdeContext): ModifyClientVpnEndpointResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86072,11 +84946,8 @@ const de_ModifyDefaultCreditSpecificationResult = ( context: __SerdeContext ): ModifyDefaultCreditSpecificationResult => { const contents: any = {}; - if (output["instanceFamilyCreditSpecification"] !== undefined) { - contents.InstanceFamilyCreditSpecification = de_InstanceFamilyCreditSpecification( - output["instanceFamilyCreditSpecification"], - context - ); + if (output[_iFCS] != null) { + contents[_IFCS] = de_InstanceFamilyCreditSpecification(output[_iFCS], context); } return contents; }; @@ -86086,8 +84957,8 @@ const de_ModifyDefaultCreditSpecificationResult = ( */ const de_ModifyEbsDefaultKmsKeyIdResult = (output: any, context: __SerdeContext): ModifyEbsDefaultKmsKeyIdResult => { const contents: any = {}; - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } return contents; }; @@ -86097,8 +84968,8 @@ const de_ModifyEbsDefaultKmsKeyIdResult = (output: any, context: __SerdeContext) */ const de_ModifyFleetResult = (output: any, context: __SerdeContext): ModifyFleetResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86108,8 +84979,8 @@ const de_ModifyFleetResult = (output: any, context: __SerdeContext): ModifyFleet */ const de_ModifyFpgaImageAttributeResult = (output: any, context: __SerdeContext): ModifyFpgaImageAttributeResult => { const contents: any = {}; - if (output["fpgaImageAttribute"] !== undefined) { - contents.FpgaImageAttribute = de_FpgaImageAttribute(output["fpgaImageAttribute"], context); + if (output[_fIA] != null) { + contents[_FIAp] = de_FpgaImageAttribute(output[_fIA], context); } return contents; }; @@ -86120,14 +84991,14 @@ const de_ModifyFpgaImageAttributeResult = (output: any, context: __SerdeContext) const de_ModifyHostsResult = (output: any, context: __SerdeContext): ModifyHostsResult => { const contents: any = {}; if (output.successful === "") { - contents.Successful = []; - } else if (output["successful"] !== undefined && output["successful"]["item"] !== undefined) { - contents.Successful = de_ResponseHostIdList(__getArrayIfSingleItem(output["successful"]["item"]), context); + contents[_Suc] = []; + } else if (output[_suc] != null && output[_suc][_i] != null) { + contents[_Suc] = de_ResponseHostIdList(__getArrayIfSingleItem(output[_suc][_i]), context); } if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemList(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemList(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -86140,8 +85011,8 @@ const de_ModifyInstanceCapacityReservationAttributesResult = ( context: __SerdeContext ): ModifyInstanceCapacityReservationAttributesResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86155,24 +85026,15 @@ const de_ModifyInstanceCreditSpecificationResult = ( ): ModifyInstanceCreditSpecificationResult => { const contents: any = {}; if (output.successfulInstanceCreditSpecificationSet === "") { - contents.SuccessfulInstanceCreditSpecifications = []; - } else if ( - output["successfulInstanceCreditSpecificationSet"] !== undefined && - output["successfulInstanceCreditSpecificationSet"]["item"] !== undefined - ) { - contents.SuccessfulInstanceCreditSpecifications = de_SuccessfulInstanceCreditSpecificationSet( - __getArrayIfSingleItem(output["successfulInstanceCreditSpecificationSet"]["item"]), - context - ); + contents[_SICS] = []; + } else if (output[_sICSS] != null && output[_sICSS][_i] != null) { + contents[_SICS] = de_SuccessfulInstanceCreditSpecificationSet(__getArrayIfSingleItem(output[_sICSS][_i]), context); } if (output.unsuccessfulInstanceCreditSpecificationSet === "") { - contents.UnsuccessfulInstanceCreditSpecifications = []; - } else if ( - output["unsuccessfulInstanceCreditSpecificationSet"] !== undefined && - output["unsuccessfulInstanceCreditSpecificationSet"]["item"] !== undefined - ) { - contents.UnsuccessfulInstanceCreditSpecifications = de_UnsuccessfulInstanceCreditSpecificationSet( - __getArrayIfSingleItem(output["unsuccessfulInstanceCreditSpecificationSet"]["item"]), + contents[_UICS] = []; + } else if (output[_uICSS] != null && output[_uICSS][_i] != null) { + contents[_UICS] = de_UnsuccessfulInstanceCreditSpecificationSet( + __getArrayIfSingleItem(output[_uICSS][_i]), context ); } @@ -86187,8 +85049,8 @@ const de_ModifyInstanceEventStartTimeResult = ( context: __SerdeContext ): ModifyInstanceEventStartTimeResult => { const contents: any = {}; - if (output["event"] !== undefined) { - contents.Event = de_InstanceStatusEvent(output["event"], context); + if (output[_ev] != null) { + contents[_Eve] = de_InstanceStatusEvent(output[_ev], context); } return contents; }; @@ -86198,8 +85060,8 @@ const de_ModifyInstanceEventStartTimeResult = ( */ const de_ModifyInstanceEventWindowResult = (output: any, context: __SerdeContext): ModifyInstanceEventWindowResult => { const contents: any = {}; - if (output["instanceEventWindow"] !== undefined) { - contents.InstanceEventWindow = de_InstanceEventWindow(output["instanceEventWindow"], context); + if (output[_iEW] != null) { + contents[_IEW] = de_InstanceEventWindow(output[_iEW], context); } return contents; }; @@ -86212,11 +85074,11 @@ const de_ModifyInstanceMaintenanceOptionsResult = ( context: __SerdeContext ): ModifyInstanceMaintenanceOptionsResult => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["autoRecovery"] !== undefined) { - contents.AutoRecovery = __expectString(output["autoRecovery"]); + if (output[_aRu] != null) { + contents[_ARu] = __expectString(output[_aRu]); } return contents; }; @@ -86229,11 +85091,11 @@ const de_ModifyInstanceMetadataOptionsResult = ( context: __SerdeContext ): ModifyInstanceMetadataOptionsResult => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceMetadataOptions"] !== undefined) { - contents.InstanceMetadataOptions = de_InstanceMetadataOptionsResponse(output["instanceMetadataOptions"], context); + if (output[_iMO] != null) { + contents[_IMOn] = de_InstanceMetadataOptionsResponse(output[_iMO], context); } return contents; }; @@ -86243,8 +85105,8 @@ const de_ModifyInstanceMetadataOptionsResult = ( */ const de_ModifyInstancePlacementResult = (output: any, context: __SerdeContext): ModifyInstancePlacementResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86254,8 +85116,8 @@ const de_ModifyInstancePlacementResult = (output: any, context: __SerdeContext): */ const de_ModifyIpamPoolResult = (output: any, context: __SerdeContext): ModifyIpamPoolResult => { const contents: any = {}; - if (output["ipamPool"] !== undefined) { - contents.IpamPool = de_IpamPool(output["ipamPool"], context); + if (output[_iPp] != null) { + contents[_IPpa] = de_IpamPool(output[_iPp], context); } return contents; }; @@ -86265,8 +85127,8 @@ const de_ModifyIpamPoolResult = (output: any, context: __SerdeContext): ModifyIp */ const de_ModifyIpamResourceCidrResult = (output: any, context: __SerdeContext): ModifyIpamResourceCidrResult => { const contents: any = {}; - if (output["ipamResourceCidr"] !== undefined) { - contents.IpamResourceCidr = de_IpamResourceCidr(output["ipamResourceCidr"], context); + if (output[_iRC] != null) { + contents[_IRCp] = de_IpamResourceCidr(output[_iRC], context); } return contents; }; @@ -86279,8 +85141,8 @@ const de_ModifyIpamResourceDiscoveryResult = ( context: __SerdeContext ): ModifyIpamResourceDiscoveryResult => { const contents: any = {}; - if (output["ipamResourceDiscovery"] !== undefined) { - contents.IpamResourceDiscovery = de_IpamResourceDiscovery(output["ipamResourceDiscovery"], context); + if (output[_iRD] != null) { + contents[_IRD] = de_IpamResourceDiscovery(output[_iRD], context); } return contents; }; @@ -86290,8 +85152,8 @@ const de_ModifyIpamResourceDiscoveryResult = ( */ const de_ModifyIpamResult = (output: any, context: __SerdeContext): ModifyIpamResult => { const contents: any = {}; - if (output["ipam"] !== undefined) { - contents.Ipam = de_Ipam(output["ipam"], context); + if (output[_ip] != null) { + contents[_Ipa] = de_Ipam(output[_ip], context); } return contents; }; @@ -86301,8 +85163,8 @@ const de_ModifyIpamResult = (output: any, context: __SerdeContext): ModifyIpamRe */ const de_ModifyIpamScopeResult = (output: any, context: __SerdeContext): ModifyIpamScopeResult => { const contents: any = {}; - if (output["ipamScope"] !== undefined) { - contents.IpamScope = de_IpamScope(output["ipamScope"], context); + if (output[_iS] != null) { + contents[_ISpa] = de_IpamScope(output[_iS], context); } return contents; }; @@ -86312,8 +85174,8 @@ const de_ModifyIpamScopeResult = (output: any, context: __SerdeContext): ModifyI */ const de_ModifyLaunchTemplateResult = (output: any, context: __SerdeContext): ModifyLaunchTemplateResult => { const contents: any = {}; - if (output["launchTemplate"] !== undefined) { - contents.LaunchTemplate = de_LaunchTemplate(output["launchTemplate"], context); + if (output[_lT] != null) { + contents[_LTa] = de_LaunchTemplate(output[_lT], context); } return contents; }; @@ -86323,8 +85185,8 @@ const de_ModifyLaunchTemplateResult = (output: any, context: __SerdeContext): Mo */ const de_ModifyLocalGatewayRouteResult = (output: any, context: __SerdeContext): ModifyLocalGatewayRouteResult => { const contents: any = {}; - if (output["route"] !== undefined) { - contents.Route = de_LocalGatewayRoute(output["route"], context); + if (output[_ro] != null) { + contents[_Ro] = de_LocalGatewayRoute(output[_ro], context); } return contents; }; @@ -86334,8 +85196,8 @@ const de_ModifyLocalGatewayRouteResult = (output: any, context: __SerdeContext): */ const de_ModifyManagedPrefixListResult = (output: any, context: __SerdeContext): ModifyManagedPrefixListResult => { const contents: any = {}; - if (output["prefixList"] !== undefined) { - contents.PrefixList = de_ManagedPrefixList(output["prefixList"], context); + if (output[_pL] != null) { + contents[_PLr] = de_ManagedPrefixList(output[_pL], context); } return contents; }; @@ -86348,8 +85210,8 @@ const de_ModifyPrivateDnsNameOptionsResult = ( context: __SerdeContext ): ModifyPrivateDnsNameOptionsResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86359,8 +85221,8 @@ const de_ModifyPrivateDnsNameOptionsResult = ( */ const de_ModifyReservedInstancesResult = (output: any, context: __SerdeContext): ModifyReservedInstancesResult => { const contents: any = {}; - if (output["reservedInstancesModificationId"] !== undefined) { - contents.ReservedInstancesModificationId = __expectString(output["reservedInstancesModificationId"]); + if (output[_rIMI] != null) { + contents[_RIMIe] = __expectString(output[_rIMI]); } return contents; }; @@ -86370,8 +85232,8 @@ const de_ModifyReservedInstancesResult = (output: any, context: __SerdeContext): */ const de_ModifySecurityGroupRulesResult = (output: any, context: __SerdeContext): ModifySecurityGroupRulesResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86381,11 +85243,11 @@ const de_ModifySecurityGroupRulesResult = (output: any, context: __SerdeContext) */ const de_ModifySnapshotTierResult = (output: any, context: __SerdeContext): ModifySnapshotTierResult => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["tieringStartTime"] !== undefined) { - contents.TieringStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["tieringStartTime"])); + if (output[_tST] != null) { + contents[_TST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_tST])); } return contents; }; @@ -86395,8 +85257,8 @@ const de_ModifySnapshotTierResult = (output: any, context: __SerdeContext): Modi */ const de_ModifySpotFleetRequestResponse = (output: any, context: __SerdeContext): ModifySpotFleetRequestResponse => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86409,8 +85271,8 @@ const de_ModifyTrafficMirrorFilterNetworkServicesResult = ( context: __SerdeContext ): ModifyTrafficMirrorFilterNetworkServicesResult => { const contents: any = {}; - if (output["trafficMirrorFilter"] !== undefined) { - contents.TrafficMirrorFilter = de_TrafficMirrorFilter(output["trafficMirrorFilter"], context); + if (output[_tMF] != null) { + contents[_TMF] = de_TrafficMirrorFilter(output[_tMF], context); } return contents; }; @@ -86423,8 +85285,8 @@ const de_ModifyTrafficMirrorFilterRuleResult = ( context: __SerdeContext ): ModifyTrafficMirrorFilterRuleResult => { const contents: any = {}; - if (output["trafficMirrorFilterRule"] !== undefined) { - contents.TrafficMirrorFilterRule = de_TrafficMirrorFilterRule(output["trafficMirrorFilterRule"], context); + if (output[_tMFR] != null) { + contents[_TMFR] = de_TrafficMirrorFilterRule(output[_tMFR], context); } return contents; }; @@ -86437,8 +85299,8 @@ const de_ModifyTrafficMirrorSessionResult = ( context: __SerdeContext ): ModifyTrafficMirrorSessionResult => { const contents: any = {}; - if (output["trafficMirrorSession"] !== undefined) { - contents.TrafficMirrorSession = de_TrafficMirrorSession(output["trafficMirrorSession"], context); + if (output[_tMS] != null) { + contents[_TMS] = de_TrafficMirrorSession(output[_tMS], context); } return contents; }; @@ -86451,11 +85313,8 @@ const de_ModifyTransitGatewayPrefixListReferenceResult = ( context: __SerdeContext ): ModifyTransitGatewayPrefixListReferenceResult => { const contents: any = {}; - if (output["transitGatewayPrefixListReference"] !== undefined) { - contents.TransitGatewayPrefixListReference = de_TransitGatewayPrefixListReference( - output["transitGatewayPrefixListReference"], - context - ); + if (output[_tGPLR] != null) { + contents[_TGPLR] = de_TransitGatewayPrefixListReference(output[_tGPLR], context); } return contents; }; @@ -86465,8 +85324,8 @@ const de_ModifyTransitGatewayPrefixListReferenceResult = ( */ const de_ModifyTransitGatewayResult = (output: any, context: __SerdeContext): ModifyTransitGatewayResult => { const contents: any = {}; - if (output["transitGateway"] !== undefined) { - contents.TransitGateway = de_TransitGateway(output["transitGateway"], context); + if (output[_tG] != null) { + contents[_TGr] = de_TransitGateway(output[_tG], context); } return contents; }; @@ -86479,11 +85338,8 @@ const de_ModifyTransitGatewayVpcAttachmentResult = ( context: __SerdeContext ): ModifyTransitGatewayVpcAttachmentResult => { const contents: any = {}; - if (output["transitGatewayVpcAttachment"] !== undefined) { - contents.TransitGatewayVpcAttachment = de_TransitGatewayVpcAttachment( - output["transitGatewayVpcAttachment"], - context - ); + if (output[_tGVA] != null) { + contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context); } return contents; }; @@ -86496,14 +85352,14 @@ const de_ModifyVerifiedAccessEndpointPolicyResult = ( context: __SerdeContext ): ModifyVerifiedAccessEndpointPolicyResult => { const contents: any = {}; - if (output["policyEnabled"] !== undefined) { - contents.PolicyEnabled = __parseBoolean(output["policyEnabled"]); + if (output[_pE] != null) { + contents[_PE] = __parseBoolean(output[_pE]); } - if (output["policyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["policyDocument"]); + if (output[_pDo] != null) { + contents[_PD] = __expectString(output[_pDo]); } - if (output["sseSpecification"] !== undefined) { - contents.SseSpecification = de_VerifiedAccessSseSpecificationResponse(output["sseSpecification"], context); + if (output[_sSs] != null) { + contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context); } return contents; }; @@ -86516,8 +85372,8 @@ const de_ModifyVerifiedAccessEndpointResult = ( context: __SerdeContext ): ModifyVerifiedAccessEndpointResult => { const contents: any = {}; - if (output["verifiedAccessEndpoint"] !== undefined) { - contents.VerifiedAccessEndpoint = de_VerifiedAccessEndpoint(output["verifiedAccessEndpoint"], context); + if (output[_vAE] != null) { + contents[_VAE] = de_VerifiedAccessEndpoint(output[_vAE], context); } return contents; }; @@ -86530,14 +85386,14 @@ const de_ModifyVerifiedAccessGroupPolicyResult = ( context: __SerdeContext ): ModifyVerifiedAccessGroupPolicyResult => { const contents: any = {}; - if (output["policyEnabled"] !== undefined) { - contents.PolicyEnabled = __parseBoolean(output["policyEnabled"]); + if (output[_pE] != null) { + contents[_PE] = __parseBoolean(output[_pE]); } - if (output["policyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["policyDocument"]); + if (output[_pDo] != null) { + contents[_PD] = __expectString(output[_pDo]); } - if (output["sseSpecification"] !== undefined) { - contents.SseSpecification = de_VerifiedAccessSseSpecificationResponse(output["sseSpecification"], context); + if (output[_sSs] != null) { + contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context); } return contents; }; @@ -86547,8 +85403,8 @@ const de_ModifyVerifiedAccessGroupPolicyResult = ( */ const de_ModifyVerifiedAccessGroupResult = (output: any, context: __SerdeContext): ModifyVerifiedAccessGroupResult => { const contents: any = {}; - if (output["verifiedAccessGroup"] !== undefined) { - contents.VerifiedAccessGroup = de_VerifiedAccessGroup(output["verifiedAccessGroup"], context); + if (output[_vAG] != null) { + contents[_VAG] = de_VerifiedAccessGroup(output[_vAG], context); } return contents; }; @@ -86561,11 +85417,8 @@ const de_ModifyVerifiedAccessInstanceLoggingConfigurationResult = ( context: __SerdeContext ): ModifyVerifiedAccessInstanceLoggingConfigurationResult => { const contents: any = {}; - if (output["loggingConfiguration"] !== undefined) { - contents.LoggingConfiguration = de_VerifiedAccessInstanceLoggingConfiguration( - output["loggingConfiguration"], - context - ); + if (output[_lC] != null) { + contents[_LCo] = de_VerifiedAccessInstanceLoggingConfiguration(output[_lC], context); } return contents; }; @@ -86578,8 +85431,8 @@ const de_ModifyVerifiedAccessInstanceResult = ( context: __SerdeContext ): ModifyVerifiedAccessInstanceResult => { const contents: any = {}; - if (output["verifiedAccessInstance"] !== undefined) { - contents.VerifiedAccessInstance = de_VerifiedAccessInstance(output["verifiedAccessInstance"], context); + if (output[_vAI] != null) { + contents[_VAI] = de_VerifiedAccessInstance(output[_vAI], context); } return contents; }; @@ -86592,11 +85445,8 @@ const de_ModifyVerifiedAccessTrustProviderResult = ( context: __SerdeContext ): ModifyVerifiedAccessTrustProviderResult => { const contents: any = {}; - if (output["verifiedAccessTrustProvider"] !== undefined) { - contents.VerifiedAccessTrustProvider = de_VerifiedAccessTrustProvider( - output["verifiedAccessTrustProvider"], - context - ); + if (output[_vATP] != null) { + contents[_VATP] = de_VerifiedAccessTrustProvider(output[_vATP], context); } return contents; }; @@ -86606,8 +85456,8 @@ const de_ModifyVerifiedAccessTrustProviderResult = ( */ const de_ModifyVolumeResult = (output: any, context: __SerdeContext): ModifyVolumeResult => { const contents: any = {}; - if (output["volumeModification"] !== undefined) { - contents.VolumeModification = de_VolumeModification(output["volumeModification"], context); + if (output[_vM] != null) { + contents[_VMo] = de_VolumeModification(output[_vM], context); } return contents; }; @@ -86620,8 +85470,8 @@ const de_ModifyVpcEndpointConnectionNotificationResult = ( context: __SerdeContext ): ModifyVpcEndpointConnectionNotificationResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.ReturnValue = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_RV] = __parseBoolean(output[_r]); } return contents; }; @@ -86631,8 +85481,8 @@ const de_ModifyVpcEndpointConnectionNotificationResult = ( */ const de_ModifyVpcEndpointResult = (output: any, context: __SerdeContext): ModifyVpcEndpointResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86645,8 +85495,8 @@ const de_ModifyVpcEndpointServiceConfigurationResult = ( context: __SerdeContext ): ModifyVpcEndpointServiceConfigurationResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -86659,8 +85509,8 @@ const de_ModifyVpcEndpointServicePayerResponsibilityResult = ( context: __SerdeContext ): ModifyVpcEndpointServicePayerResponsibilityResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.ReturnValue = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_RV] = __parseBoolean(output[_r]); } return contents; }; @@ -86674,15 +85524,12 @@ const de_ModifyVpcEndpointServicePermissionsResult = ( ): ModifyVpcEndpointServicePermissionsResult => { const contents: any = {}; if (output.addedPrincipalSet === "") { - contents.AddedPrincipals = []; - } else if (output["addedPrincipalSet"] !== undefined && output["addedPrincipalSet"]["item"] !== undefined) { - contents.AddedPrincipals = de_AddedPrincipalSet( - __getArrayIfSingleItem(output["addedPrincipalSet"]["item"]), - context - ); + contents[_APd] = []; + } else if (output[_aPS] != null && output[_aPS][_i] != null) { + contents[_APd] = de_AddedPrincipalSet(__getArrayIfSingleItem(output[_aPS][_i]), context); } - if (output["return"] !== undefined) { - contents.ReturnValue = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_RV] = __parseBoolean(output[_r]); } return contents; }; @@ -86695,17 +85542,11 @@ const de_ModifyVpcPeeringConnectionOptionsResult = ( context: __SerdeContext ): ModifyVpcPeeringConnectionOptionsResult => { const contents: any = {}; - if (output["accepterPeeringConnectionOptions"] !== undefined) { - contents.AccepterPeeringConnectionOptions = de_PeeringConnectionOptions( - output["accepterPeeringConnectionOptions"], - context - ); + if (output[_aPCO] != null) { + contents[_APCO] = de_PeeringConnectionOptions(output[_aPCO], context); } - if (output["requesterPeeringConnectionOptions"] !== undefined) { - contents.RequesterPeeringConnectionOptions = de_PeeringConnectionOptions( - output["requesterPeeringConnectionOptions"], - context - ); + if (output[_rPCO] != null) { + contents[_RPCO] = de_PeeringConnectionOptions(output[_rPCO], context); } return contents; }; @@ -86715,8 +85556,8 @@ const de_ModifyVpcPeeringConnectionOptionsResult = ( */ const de_ModifyVpcTenancyResult = (output: any, context: __SerdeContext): ModifyVpcTenancyResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.ReturnValue = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_RV] = __parseBoolean(output[_r]); } return contents; }; @@ -86729,8 +85570,8 @@ const de_ModifyVpnConnectionOptionsResult = ( context: __SerdeContext ): ModifyVpnConnectionOptionsResult => { const contents: any = {}; - if (output["vpnConnection"] !== undefined) { - contents.VpnConnection = de_VpnConnection(output["vpnConnection"], context); + if (output[_vC] != null) { + contents[_VC] = de_VpnConnection(output[_vC], context); } return contents; }; @@ -86740,8 +85581,8 @@ const de_ModifyVpnConnectionOptionsResult = ( */ const de_ModifyVpnConnectionResult = (output: any, context: __SerdeContext): ModifyVpnConnectionResult => { const contents: any = {}; - if (output["vpnConnection"] !== undefined) { - contents.VpnConnection = de_VpnConnection(output["vpnConnection"], context); + if (output[_vC] != null) { + contents[_VC] = de_VpnConnection(output[_vC], context); } return contents; }; @@ -86754,8 +85595,8 @@ const de_ModifyVpnTunnelCertificateResult = ( context: __SerdeContext ): ModifyVpnTunnelCertificateResult => { const contents: any = {}; - if (output["vpnConnection"] !== undefined) { - contents.VpnConnection = de_VpnConnection(output["vpnConnection"], context); + if (output[_vC] != null) { + contents[_VC] = de_VpnConnection(output[_vC], context); } return contents; }; @@ -86765,8 +85606,8 @@ const de_ModifyVpnTunnelCertificateResult = ( */ const de_ModifyVpnTunnelOptionsResult = (output: any, context: __SerdeContext): ModifyVpnTunnelOptionsResult => { const contents: any = {}; - if (output["vpnConnection"] !== undefined) { - contents.VpnConnection = de_VpnConnection(output["vpnConnection"], context); + if (output[_vC] != null) { + contents[_VC] = de_VpnConnection(output[_vC], context); } return contents; }; @@ -86776,8 +85617,8 @@ const de_ModifyVpnTunnelOptionsResult = (output: any, context: __SerdeContext): */ const de_Monitoring = (output: any, context: __SerdeContext): Monitoring => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -86788,12 +85629,9 @@ const de_Monitoring = (output: any, context: __SerdeContext): Monitoring => { const de_MonitorInstancesResult = (output: any, context: __SerdeContext): MonitorInstancesResult => { const contents: any = {}; if (output.instancesSet === "") { - contents.InstanceMonitorings = []; - } else if (output["instancesSet"] !== undefined && output["instancesSet"]["item"] !== undefined) { - contents.InstanceMonitorings = de_InstanceMonitoringList( - __getArrayIfSingleItem(output["instancesSet"]["item"]), - context - ); + contents[_IMn] = []; + } else if (output[_iSn] != null && output[_iSn][_i] != null) { + contents[_IMn] = de_InstanceMonitoringList(__getArrayIfSingleItem(output[_iSn][_i]), context); } return contents; }; @@ -86803,11 +85641,11 @@ const de_MonitorInstancesResult = (output: any, context: __SerdeContext): Monito */ const de_MoveAddressToVpcResult = (output: any, context: __SerdeContext): MoveAddressToVpcResult => { const contents: any = {}; - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -86817,8 +85655,8 @@ const de_MoveAddressToVpcResult = (output: any, context: __SerdeContext): MoveAd */ const de_MoveByoipCidrToIpamResult = (output: any, context: __SerdeContext): MoveByoipCidrToIpamResult => { const contents: any = {}; - if (output["byoipCidr"] !== undefined) { - contents.ByoipCidr = de_ByoipCidr(output["byoipCidr"], context); + if (output[_bC] != null) { + contents[_BC] = de_ByoipCidr(output[_bC], context); } return contents; }; @@ -86828,11 +85666,11 @@ const de_MoveByoipCidrToIpamResult = (output: any, context: __SerdeContext): Mov */ const de_MovingAddressStatus = (output: any, context: __SerdeContext): MovingAddressStatus => { const contents: any = {}; - if (output["moveStatus"] !== undefined) { - contents.MoveStatus = __expectString(output["moveStatus"]); + if (output[_mSo] != null) { + contents[_MSo] = __expectString(output[_mSo]); } - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } return contents; }; @@ -86853,48 +85691,45 @@ const de_MovingAddressStatusSet = (output: any, context: __SerdeContext): Moving */ const de_NatGateway = (output: any, context: __SerdeContext): NatGateway => { const contents: any = {}; - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["deleteTime"] !== undefined) { - contents.DeleteTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["deleteTime"])); + if (output[_dTel] != null) { + contents[_DTele] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTel])); } - if (output["failureCode"] !== undefined) { - contents.FailureCode = __expectString(output["failureCode"]); + if (output[_fCa] != null) { + contents[_FCa] = __expectString(output[_fCa]); } - if (output["failureMessage"] !== undefined) { - contents.FailureMessage = __expectString(output["failureMessage"]); + if (output[_fM] != null) { + contents[_FM] = __expectString(output[_fM]); } if (output.natGatewayAddressSet === "") { - contents.NatGatewayAddresses = []; - } else if (output["natGatewayAddressSet"] !== undefined && output["natGatewayAddressSet"]["item"] !== undefined) { - contents.NatGatewayAddresses = de_NatGatewayAddressList( - __getArrayIfSingleItem(output["natGatewayAddressSet"]["item"]), - context - ); + contents[_NGA] = []; + } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { + contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); } - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } - if (output["provisionedBandwidth"] !== undefined) { - contents.ProvisionedBandwidth = de_ProvisionedBandwidth(output["provisionedBandwidth"], context); + if (output[_pB] != null) { + contents[_PB] = de_ProvisionedBandwidth(output[_pB], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["connectivityType"] !== undefined) { - contents.ConnectivityType = __expectString(output["connectivityType"]); + if (output[_cTonn] != null) { + contents[_CTo] = __expectString(output[_cTonn]); } return contents; }; @@ -86904,29 +85739,29 @@ const de_NatGateway = (output: any, context: __SerdeContext): NatGateway => { */ const de_NatGatewayAddress = (output: any, context: __SerdeContext): NatGatewayAddress => { const contents: any = {}; - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["privateIp"] !== undefined) { - contents.PrivateIp = __expectString(output["privateIp"]); + if (output[_pIriv] != null) { + contents[_PIri] = __expectString(output[_pIriv]); } - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["isPrimary"] !== undefined) { - contents.IsPrimary = __parseBoolean(output["isPrimary"]); + if (output[_iPsr] != null) { + contents[_IPs] = __parseBoolean(output[_iPsr]); } - if (output["failureMessage"] !== undefined) { - contents.FailureMessage = __expectString(output["failureMessage"]); + if (output[_fM] != null) { + contents[_FM] = __expectString(output[_fM]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -86959,34 +85794,31 @@ const de_NatGatewayList = (output: any, context: __SerdeContext): NatGateway[] = const de_NetworkAcl = (output: any, context: __SerdeContext): NetworkAcl => { const contents: any = {}; if (output.associationSet === "") { - contents.Associations = []; - } else if (output["associationSet"] !== undefined && output["associationSet"]["item"] !== undefined) { - contents.Associations = de_NetworkAclAssociationList( - __getArrayIfSingleItem(output["associationSet"]["item"]), - context - ); + contents[_Ass] = []; + } else if (output[_aSss] != null && output[_aSss][_i] != null) { + contents[_Ass] = de_NetworkAclAssociationList(__getArrayIfSingleItem(output[_aSss][_i]), context); } if (output.entrySet === "") { - contents.Entries = []; - } else if (output["entrySet"] !== undefined && output["entrySet"]["item"] !== undefined) { - contents.Entries = de_NetworkAclEntryList(__getArrayIfSingleItem(output["entrySet"]["item"]), context); + contents[_Ent] = []; + } else if (output[_eSnt] != null && output[_eSnt][_i] != null) { + contents[_Ent] = de_NetworkAclEntryList(__getArrayIfSingleItem(output[_eSnt][_i]), context); } - if (output["default"] !== undefined) { - contents.IsDefault = __parseBoolean(output["default"]); + if (output[_def] != null) { + contents[_IDs] = __parseBoolean(output[_def]); } - if (output["networkAclId"] !== undefined) { - contents.NetworkAclId = __expectString(output["networkAclId"]); + if (output[_nAI] != null) { + contents[_NAI] = __expectString(output[_nAI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } return contents; }; @@ -86996,14 +85828,14 @@ const de_NetworkAcl = (output: any, context: __SerdeContext): NetworkAcl => { */ const de_NetworkAclAssociation = (output: any, context: __SerdeContext): NetworkAclAssociation => { const contents: any = {}; - if (output["networkAclAssociationId"] !== undefined) { - contents.NetworkAclAssociationId = __expectString(output["networkAclAssociationId"]); + if (output[_nAAI] != null) { + contents[_NAAI] = __expectString(output[_nAAI]); } - if (output["networkAclId"] !== undefined) { - contents.NetworkAclId = __expectString(output["networkAclId"]); + if (output[_nAI] != null) { + contents[_NAI] = __expectString(output[_nAI]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } return contents; }; @@ -87024,29 +85856,29 @@ const de_NetworkAclAssociationList = (output: any, context: __SerdeContext): Net */ const de_NetworkAclEntry = (output: any, context: __SerdeContext): NetworkAclEntry => { const contents: any = {}; - if (output["cidrBlock"] !== undefined) { - contents.CidrBlock = __expectString(output["cidrBlock"]); + if (output[_cB] != null) { + contents[_CB] = __expectString(output[_cB]); } - if (output["egress"] !== undefined) { - contents.Egress = __parseBoolean(output["egress"]); + if (output[_e] != null) { + contents[_Eg] = __parseBoolean(output[_e]); } - if (output["icmpTypeCode"] !== undefined) { - contents.IcmpTypeCode = de_IcmpTypeCode(output["icmpTypeCode"], context); + if (output[_iTC] != null) { + contents[_ITC] = de_IcmpTypeCode(output[_iTC], context); } - if (output["ipv6CidrBlock"] !== undefined) { - contents.Ipv6CidrBlock = __expectString(output["ipv6CidrBlock"]); + if (output[_iCB] != null) { + contents[_ICB] = __expectString(output[_iCB]); } - if (output["portRange"] !== undefined) { - contents.PortRange = de_PortRange(output["portRange"], context); + if (output[_pRo] != null) { + contents[_PR] = de_PortRange(output[_pRo], context); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } - if (output["ruleAction"] !== undefined) { - contents.RuleAction = __expectString(output["ruleAction"]); + if (output[_rA] != null) { + contents[_RAu] = __expectString(output[_rA]); } - if (output["ruleNumber"] !== undefined) { - contents.RuleNumber = __strictParseInt32(output["ruleNumber"]) as number; + if (output[_rN] != null) { + contents[_RNu] = __strictParseInt32(output[_rN]) as number; } return contents; }; @@ -87078,11 +85910,11 @@ const de_NetworkAclList = (output: any, context: __SerdeContext): NetworkAcl[] = */ const de_NetworkBandwidthGbps = (output: any, context: __SerdeContext): NetworkBandwidthGbps => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseFloat(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseFloat(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseFloat(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseFloat(output[_ma]) as number; } return contents; }; @@ -87092,20 +85924,20 @@ const de_NetworkBandwidthGbps = (output: any, context: __SerdeContext): NetworkB */ const de_NetworkCardInfo = (output: any, context: __SerdeContext): NetworkCardInfo => { const contents: any = {}; - if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; + if (output[_nCI] != null) { + contents[_NCI] = __strictParseInt32(output[_nCI]) as number; } - if (output["networkPerformance"] !== undefined) { - contents.NetworkPerformance = __expectString(output["networkPerformance"]); + if (output[_nP] != null) { + contents[_NP] = __expectString(output[_nP]); } - if (output["maximumNetworkInterfaces"] !== undefined) { - contents.MaximumNetworkInterfaces = __strictParseInt32(output["maximumNetworkInterfaces"]) as number; + if (output[_mNI] != null) { + contents[_MNI] = __strictParseInt32(output[_mNI]) as number; } - if (output["baselineBandwidthInGbps"] !== undefined) { - contents.BaselineBandwidthInGbps = __strictParseFloat(output["baselineBandwidthInGbps"]) as number; + if (output[_bBIG] != null) { + contents[_BBIG] = __strictParseFloat(output[_bBIG]) as number; } - if (output["peakBandwidthInGbps"] !== undefined) { - contents.PeakBandwidthInGbps = __strictParseFloat(output["peakBandwidthInGbps"]) as number; + if (output[_pBIG] != null) { + contents[_PBIG] = __strictParseFloat(output[_pBIG]) as number; } return contents; }; @@ -87126,46 +85958,46 @@ const de_NetworkCardInfoList = (output: any, context: __SerdeContext): NetworkCa */ const de_NetworkInfo = (output: any, context: __SerdeContext): NetworkInfo => { const contents: any = {}; - if (output["networkPerformance"] !== undefined) { - contents.NetworkPerformance = __expectString(output["networkPerformance"]); + if (output[_nP] != null) { + contents[_NP] = __expectString(output[_nP]); } - if (output["maximumNetworkInterfaces"] !== undefined) { - contents.MaximumNetworkInterfaces = __strictParseInt32(output["maximumNetworkInterfaces"]) as number; + if (output[_mNI] != null) { + contents[_MNI] = __strictParseInt32(output[_mNI]) as number; } - if (output["maximumNetworkCards"] !== undefined) { - contents.MaximumNetworkCards = __strictParseInt32(output["maximumNetworkCards"]) as number; + if (output[_mNC] != null) { + contents[_MNC] = __strictParseInt32(output[_mNC]) as number; } - if (output["defaultNetworkCardIndex"] !== undefined) { - contents.DefaultNetworkCardIndex = __strictParseInt32(output["defaultNetworkCardIndex"]) as number; + if (output[_dNCI] != null) { + contents[_DNCI] = __strictParseInt32(output[_dNCI]) as number; } if (output.networkCards === "") { - contents.NetworkCards = []; - } else if (output["networkCards"] !== undefined && output["networkCards"]["item"] !== undefined) { - contents.NetworkCards = de_NetworkCardInfoList(__getArrayIfSingleItem(output["networkCards"]["item"]), context); + contents[_NC] = []; + } else if (output[_nC] != null && output[_nC][_i] != null) { + contents[_NC] = de_NetworkCardInfoList(__getArrayIfSingleItem(output[_nC][_i]), context); } - if (output["ipv4AddressesPerInterface"] !== undefined) { - contents.Ipv4AddressesPerInterface = __strictParseInt32(output["ipv4AddressesPerInterface"]) as number; + if (output[_iAPI] != null) { + contents[_IAPI] = __strictParseInt32(output[_iAPI]) as number; } - if (output["ipv6AddressesPerInterface"] !== undefined) { - contents.Ipv6AddressesPerInterface = __strictParseInt32(output["ipv6AddressesPerInterface"]) as number; + if (output[_iAPIp] != null) { + contents[_IAPIp] = __strictParseInt32(output[_iAPIp]) as number; } - if (output["ipv6Supported"] !== undefined) { - contents.Ipv6Supported = __parseBoolean(output["ipv6Supported"]); + if (output[_iSpv] != null) { + contents[_ISpv] = __parseBoolean(output[_iSpv]); } - if (output["enaSupport"] !== undefined) { - contents.EnaSupport = __expectString(output["enaSupport"]); + if (output[_eSna] != null) { + contents[_ESn] = __expectString(output[_eSna]); } - if (output["efaSupported"] !== undefined) { - contents.EfaSupported = __parseBoolean(output["efaSupported"]); + if (output[_eSf] != null) { + contents[_ESf] = __parseBoolean(output[_eSf]); } - if (output["efaInfo"] !== undefined) { - contents.EfaInfo = de_EfaInfo(output["efaInfo"], context); + if (output[_eIf] != null) { + contents[_EIf] = de_EfaInfo(output[_eIf], context); } - if (output["encryptionInTransitSupported"] !== undefined) { - contents.EncryptionInTransitSupported = __parseBoolean(output["encryptionInTransitSupported"]); + if (output[_eITSn] != null) { + contents[_EITS] = __parseBoolean(output[_eITSn]); } - if (output["enaSrdSupported"] !== undefined) { - contents.EnaSrdSupported = __parseBoolean(output["enaSrdSupported"]); + if (output[_eSSn] != null) { + contents[_ESSn] = __parseBoolean(output[_eSSn]); } return contents; }; @@ -87175,22 +86007,22 @@ const de_NetworkInfo = (output: any, context: __SerdeContext): NetworkInfo => { */ const de_NetworkInsightsAccessScope = (output: any, context: __SerdeContext): NetworkInsightsAccessScope => { const contents: any = {}; - if (output["networkInsightsAccessScopeId"] !== undefined) { - contents.NetworkInsightsAccessScopeId = __expectString(output["networkInsightsAccessScopeId"]); + if (output[_nIASI] != null) { + contents[_NIASI] = __expectString(output[_nIASI]); } - if (output["networkInsightsAccessScopeArn"] !== undefined) { - contents.NetworkInsightsAccessScopeArn = __expectString(output["networkInsightsAccessScopeArn"]); + if (output[_nIASA] != null) { + contents[_NIASAe] = __expectString(output[_nIASA]); } - if (output["createdDate"] !== undefined) { - contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createdDate"])); + if (output[_cDre] != null) { + contents[_CDrea] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cDre])); } - if (output["updatedDate"] !== undefined) { - contents.UpdatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["updatedDate"])); + if (output[_uDp] != null) { + contents[_UDp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uDp])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -87203,40 +86035,40 @@ const de_NetworkInsightsAccessScopeAnalysis = ( context: __SerdeContext ): NetworkInsightsAccessScopeAnalysis => { const contents: any = {}; - if (output["networkInsightsAccessScopeAnalysisId"] !== undefined) { - contents.NetworkInsightsAccessScopeAnalysisId = __expectString(output["networkInsightsAccessScopeAnalysisId"]); + if (output[_nIASAI] != null) { + contents[_NIASAI] = __expectString(output[_nIASAI]); } - if (output["networkInsightsAccessScopeAnalysisArn"] !== undefined) { - contents.NetworkInsightsAccessScopeAnalysisArn = __expectString(output["networkInsightsAccessScopeAnalysisArn"]); + if (output[_nIASAA] != null) { + contents[_NIASAA] = __expectString(output[_nIASAA]); } - if (output["networkInsightsAccessScopeId"] !== undefined) { - contents.NetworkInsightsAccessScopeId = __expectString(output["networkInsightsAccessScopeId"]); + if (output[_nIASI] != null) { + contents[_NIASI] = __expectString(output[_nIASI]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["warningMessage"] !== undefined) { - contents.WarningMessage = __expectString(output["warningMessage"]); + if (output[_wM] != null) { + contents[_WM] = __expectString(output[_wM]); } - if (output["startDate"] !== undefined) { - contents.StartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startDate"])); + if (output[_sD] != null) { + contents[_SDt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sD])); } - if (output["endDate"] !== undefined) { - contents.EndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["endDate"])); + if (output[_eD] != null) { + contents[_ED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eD])); } - if (output["findingsFound"] !== undefined) { - contents.FindingsFound = __expectString(output["findingsFound"]); + if (output[_fFi] != null) { + contents[_FFi] = __expectString(output[_fFi]); } - if (output["analyzedEniCount"] !== undefined) { - contents.AnalyzedEniCount = __strictParseInt32(output["analyzedEniCount"]) as number; + if (output[_aEC] != null) { + contents[_AEC] = __strictParseInt32(output[_aEC]) as number; } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -87263,18 +86095,18 @@ const de_NetworkInsightsAccessScopeContent = ( context: __SerdeContext ): NetworkInsightsAccessScopeContent => { const contents: any = {}; - if (output["networkInsightsAccessScopeId"] !== undefined) { - contents.NetworkInsightsAccessScopeId = __expectString(output["networkInsightsAccessScopeId"]); + if (output[_nIASI] != null) { + contents[_NIASI] = __expectString(output[_nIASI]); } if (output.matchPathSet === "") { - contents.MatchPaths = []; - } else if (output["matchPathSet"] !== undefined && output["matchPathSet"]["item"] !== undefined) { - contents.MatchPaths = de_AccessScopePathList(__getArrayIfSingleItem(output["matchPathSet"]["item"]), context); + contents[_MP] = []; + } else if (output[_mPSa] != null && output[_mPSa][_i] != null) { + contents[_MP] = de_AccessScopePathList(__getArrayIfSingleItem(output[_mPSa][_i]), context); } if (output.excludePathSet === "") { - contents.ExcludePaths = []; - } else if (output["excludePathSet"] !== undefined && output["excludePathSet"]["item"] !== undefined) { - contents.ExcludePaths = de_AccessScopePathList(__getArrayIfSingleItem(output["excludePathSet"]["item"]), context); + contents[_EP] = []; + } else if (output[_ePS] != null && output[_ePS][_i] != null) { + contents[_EP] = de_AccessScopePathList(__getArrayIfSingleItem(output[_ePS][_i]), context); } return contents; }; @@ -87295,87 +86127,69 @@ const de_NetworkInsightsAccessScopeList = (output: any, context: __SerdeContext) */ const de_NetworkInsightsAnalysis = (output: any, context: __SerdeContext): NetworkInsightsAnalysis => { const contents: any = {}; - if (output["networkInsightsAnalysisId"] !== undefined) { - contents.NetworkInsightsAnalysisId = __expectString(output["networkInsightsAnalysisId"]); + if (output[_nIAI] != null) { + contents[_NIAI] = __expectString(output[_nIAI]); } - if (output["networkInsightsAnalysisArn"] !== undefined) { - contents.NetworkInsightsAnalysisArn = __expectString(output["networkInsightsAnalysisArn"]); + if (output[_nIAA] != null) { + contents[_NIAA] = __expectString(output[_nIAA]); } - if (output["networkInsightsPathId"] !== undefined) { - contents.NetworkInsightsPathId = __expectString(output["networkInsightsPathId"]); + if (output[_nIPI] != null) { + contents[_NIPI] = __expectString(output[_nIPI]); } if (output.additionalAccountSet === "") { - contents.AdditionalAccounts = []; - } else if (output["additionalAccountSet"] !== undefined && output["additionalAccountSet"]["item"] !== undefined) { - contents.AdditionalAccounts = de_ValueStringList( - __getArrayIfSingleItem(output["additionalAccountSet"]["item"]), - context - ); + contents[_AAd] = []; + } else if (output[_aASd] != null && output[_aASd][_i] != null) { + contents[_AAd] = de_ValueStringList(__getArrayIfSingleItem(output[_aASd][_i]), context); } if (output.filterInArnSet === "") { - contents.FilterInArns = []; - } else if (output["filterInArnSet"] !== undefined && output["filterInArnSet"]["item"] !== undefined) { - contents.FilterInArns = de_ArnList(__getArrayIfSingleItem(output["filterInArnSet"]["item"]), context); + contents[_FIA] = []; + } else if (output[_fIAS] != null && output[_fIAS][_i] != null) { + contents[_FIA] = de_ArnList(__getArrayIfSingleItem(output[_fIAS][_i]), context); } - if (output["startDate"] !== undefined) { - contents.StartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startDate"])); + if (output[_sD] != null) { + contents[_SDt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sD])); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["warningMessage"] !== undefined) { - contents.WarningMessage = __expectString(output["warningMessage"]); + if (output[_wM] != null) { + contents[_WM] = __expectString(output[_wM]); } - if (output["networkPathFound"] !== undefined) { - contents.NetworkPathFound = __parseBoolean(output["networkPathFound"]); + if (output[_nPF] != null) { + contents[_NPF] = __parseBoolean(output[_nPF]); } if (output.forwardPathComponentSet === "") { - contents.ForwardPathComponents = []; - } else if ( - output["forwardPathComponentSet"] !== undefined && - output["forwardPathComponentSet"]["item"] !== undefined - ) { - contents.ForwardPathComponents = de_PathComponentList( - __getArrayIfSingleItem(output["forwardPathComponentSet"]["item"]), - context - ); + contents[_FPC] = []; + } else if (output[_fPCS] != null && output[_fPCS][_i] != null) { + contents[_FPC] = de_PathComponentList(__getArrayIfSingleItem(output[_fPCS][_i]), context); } if (output.returnPathComponentSet === "") { - contents.ReturnPathComponents = []; - } else if (output["returnPathComponentSet"] !== undefined && output["returnPathComponentSet"]["item"] !== undefined) { - contents.ReturnPathComponents = de_PathComponentList( - __getArrayIfSingleItem(output["returnPathComponentSet"]["item"]), - context - ); + contents[_RPC] = []; + } else if (output[_rPCS] != null && output[_rPCS][_i] != null) { + contents[_RPC] = de_PathComponentList(__getArrayIfSingleItem(output[_rPCS][_i]), context); } if (output.explanationSet === "") { - contents.Explanations = []; - } else if (output["explanationSet"] !== undefined && output["explanationSet"]["item"] !== undefined) { - contents.Explanations = de_ExplanationList(__getArrayIfSingleItem(output["explanationSet"]["item"]), context); + contents[_Ex] = []; + } else if (output[_eSx] != null && output[_eSx][_i] != null) { + contents[_Ex] = de_ExplanationList(__getArrayIfSingleItem(output[_eSx][_i]), context); } if (output.alternatePathHintSet === "") { - contents.AlternatePathHints = []; - } else if (output["alternatePathHintSet"] !== undefined && output["alternatePathHintSet"]["item"] !== undefined) { - contents.AlternatePathHints = de_AlternatePathHintList( - __getArrayIfSingleItem(output["alternatePathHintSet"]["item"]), - context - ); + contents[_APH] = []; + } else if (output[_aPHS] != null && output[_aPHS][_i] != null) { + contents[_APH] = de_AlternatePathHintList(__getArrayIfSingleItem(output[_aPHS][_i]), context); } if (output.suggestedAccountSet === "") { - contents.SuggestedAccounts = []; - } else if (output["suggestedAccountSet"] !== undefined && output["suggestedAccountSet"]["item"] !== undefined) { - contents.SuggestedAccounts = de_ValueStringList( - __getArrayIfSingleItem(output["suggestedAccountSet"]["item"]), - context - ); + contents[_SAu] = []; + } else if (output[_sASu] != null && output[_sASu][_i] != null) { + contents[_SAu] = de_ValueStringList(__getArrayIfSingleItem(output[_sASu][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -87396,49 +86210,49 @@ const de_NetworkInsightsAnalysisList = (output: any, context: __SerdeContext): N */ const de_NetworkInsightsPath = (output: any, context: __SerdeContext): NetworkInsightsPath => { const contents: any = {}; - if (output["networkInsightsPathId"] !== undefined) { - contents.NetworkInsightsPathId = __expectString(output["networkInsightsPathId"]); + if (output[_nIPI] != null) { + contents[_NIPI] = __expectString(output[_nIPI]); } - if (output["networkInsightsPathArn"] !== undefined) { - contents.NetworkInsightsPathArn = __expectString(output["networkInsightsPathArn"]); + if (output[_nIPA] != null) { + contents[_NIPA] = __expectString(output[_nIPA]); } - if (output["createdDate"] !== undefined) { - contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createdDate"])); + if (output[_cDre] != null) { + contents[_CDrea] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cDre])); } - if (output["source"] !== undefined) { - contents.Source = __expectString(output["source"]); + if (output[_s] != null) { + contents[_S] = __expectString(output[_s]); } - if (output["destination"] !== undefined) { - contents.Destination = __expectString(output["destination"]); + if (output[_d] != null) { + contents[_D] = __expectString(output[_d]); } - if (output["sourceArn"] !== undefined) { - contents.SourceArn = __expectString(output["sourceArn"]); + if (output[_sA] != null) { + contents[_SAour] = __expectString(output[_sA]); } - if (output["destinationArn"] !== undefined) { - contents.DestinationArn = __expectString(output["destinationArn"]); + if (output[_dA] != null) { + contents[_DAesti] = __expectString(output[_dA]); } - if (output["sourceIp"] !== undefined) { - contents.SourceIp = __expectString(output["sourceIp"]); + if (output[_sIo] != null) { + contents[_SIo] = __expectString(output[_sIo]); } - if (output["destinationIp"] !== undefined) { - contents.DestinationIp = __expectString(output["destinationIp"]); + if (output[_dIes] != null) { + contents[_DIest] = __expectString(output[_dIes]); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } - if (output["destinationPort"] !== undefined) { - contents.DestinationPort = __strictParseInt32(output["destinationPort"]) as number; + if (output[_dP] != null) { + contents[_DP] = __strictParseInt32(output[_dP]) as number; } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["filterAtSource"] !== undefined) { - contents.FilterAtSource = de_PathFilter(output["filterAtSource"], context); + if (output[_fAS] != null) { + contents[_FAS] = de_PathFilter(output[_fAS], context); } - if (output["filterAtDestination"] !== undefined) { - contents.FilterAtDestination = de_PathFilter(output["filterAtDestination"], context); + if (output[_fAD] != null) { + contents[_FAD] = de_PathFilter(output[_fAD], context); } return contents; }; @@ -87459,107 +86273,98 @@ const de_NetworkInsightsPathList = (output: any, context: __SerdeContext): Netwo */ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInterface => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_NetworkInterfaceAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_NetworkInterfaceAssociation(output[_ass], context); } - if (output["attachment"] !== undefined) { - contents.Attachment = de_NetworkInterfaceAttachment(output["attachment"], context); + if (output[_at] != null) { + contents[_Att] = de_NetworkInterfaceAttachment(output[_at], context); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["connectionTrackingConfiguration"] !== undefined) { - contents.ConnectionTrackingConfiguration = de_ConnectionTrackingConfiguration( - output["connectionTrackingConfiguration"], - context - ); + if (output[_cTC] != null) { + contents[_CTC] = de_ConnectionTrackingConfiguration(output[_cTC], context); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.Groups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output["interfaceType"] !== undefined) { - contents.InterfaceType = __expectString(output["interfaceType"]); + if (output[_iTnt] != null) { + contents[_ITn] = __expectString(output[_iTnt]); } if (output.ipv6AddressesSet === "") { - contents.Ipv6Addresses = []; - } else if (output["ipv6AddressesSet"] !== undefined && output["ipv6AddressesSet"]["item"] !== undefined) { - contents.Ipv6Addresses = de_NetworkInterfaceIpv6AddressesList( - __getArrayIfSingleItem(output["ipv6AddressesSet"]["item"]), - context - ); + contents[_IA] = []; + } else if (output[_iASp] != null && output[_iASp][_i] != null) { + contents[_IA] = de_NetworkInterfaceIpv6AddressesList(__getArrayIfSingleItem(output[_iASp][_i]), context); } - if (output["macAddress"] !== undefined) { - contents.MacAddress = __expectString(output["macAddress"]); + if (output[_mAa] != null) { + contents[_MAa] = __expectString(output[_mAa]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } if (output.privateIpAddressesSet === "") { - contents.PrivateIpAddresses = []; - } else if (output["privateIpAddressesSet"] !== undefined && output["privateIpAddressesSet"]["item"] !== undefined) { - contents.PrivateIpAddresses = de_NetworkInterfacePrivateIpAddressList( - __getArrayIfSingleItem(output["privateIpAddressesSet"]["item"]), - context - ); + contents[_PIA] = []; + } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { + contents[_PIA] = de_NetworkInterfacePrivateIpAddressList(__getArrayIfSingleItem(output[_pIAS][_i]), context); } if (output.ipv4PrefixSet === "") { - contents.Ipv4Prefixes = []; - } else if (output["ipv4PrefixSet"] !== undefined && output["ipv4PrefixSet"]["item"] !== undefined) { - contents.Ipv4Prefixes = de_Ipv4PrefixesList(__getArrayIfSingleItem(output["ipv4PrefixSet"]["item"]), context); + contents[_IPp] = []; + } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) { + contents[_IPp] = de_Ipv4PrefixesList(__getArrayIfSingleItem(output[_iPSpv][_i]), context); } if (output.ipv6PrefixSet === "") { - contents.Ipv6Prefixes = []; - } else if (output["ipv6PrefixSet"] !== undefined && output["ipv6PrefixSet"]["item"] !== undefined) { - contents.Ipv6Prefixes = de_Ipv6PrefixesList(__getArrayIfSingleItem(output["ipv6PrefixSet"]["item"]), context); + contents[_IP] = []; + } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) { + contents[_IP] = de_Ipv6PrefixesList(__getArrayIfSingleItem(output[_iPSpvr][_i]), context); } - if (output["requesterId"] !== undefined) { - contents.RequesterId = __expectString(output["requesterId"]); + if (output[_rIeq] != null) { + contents[_RIeq] = __expectString(output[_rIeq]); } - if (output["requesterManaged"] !== undefined) { - contents.RequesterManaged = __parseBoolean(output["requesterManaged"]); + if (output[_rM] != null) { + contents[_RMe] = __parseBoolean(output[_rM]); } - if (output["sourceDestCheck"] !== undefined) { - contents.SourceDestCheck = __parseBoolean(output["sourceDestCheck"]); + if (output[_sDC] != null) { + contents[_SDC] = __parseBoolean(output[_sDC]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } if (output.tagSet === "") { - contents.TagSet = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.TagSet = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_TSag] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_TSag] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["denyAllIgwTraffic"] !== undefined) { - contents.DenyAllIgwTraffic = __parseBoolean(output["denyAllIgwTraffic"]); + if (output[_dAIT] != null) { + contents[_DAIT] = __parseBoolean(output[_dAIT]); } - if (output["ipv6Native"] !== undefined) { - contents.Ipv6Native = __parseBoolean(output["ipv6Native"]); + if (output[_iN] != null) { + contents[_IN] = __parseBoolean(output[_iN]); } - if (output["ipv6Address"] !== undefined) { - contents.Ipv6Address = __expectString(output["ipv6Address"]); + if (output[_iApv] != null) { + contents[_IApv] = __expectString(output[_iApv]); } return contents; }; @@ -87569,26 +86374,26 @@ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInter */ const de_NetworkInterfaceAssociation = (output: any, context: __SerdeContext): NetworkInterfaceAssociation => { const contents: any = {}; - if (output["allocationId"] !== undefined) { - contents.AllocationId = __expectString(output["allocationId"]); + if (output[_aI] != null) { + contents[_AIl] = __expectString(output[_aI]); } - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["ipOwnerId"] !== undefined) { - contents.IpOwnerId = __expectString(output["ipOwnerId"]); + if (output[_iOIp] != null) { + contents[_IOI] = __expectString(output[_iOIp]); } - if (output["publicDnsName"] !== undefined) { - contents.PublicDnsName = __expectString(output["publicDnsName"]); + if (output[_pDNu] != null) { + contents[_PDNu] = __expectString(output[_pDNu]); } - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } - if (output["customerOwnedIp"] !== undefined) { - contents.CustomerOwnedIp = __expectString(output["customerOwnedIp"]); + if (output[_cOI] != null) { + contents[_COI] = __expectString(output[_cOI]); } - if (output["carrierIp"] !== undefined) { - contents.CarrierIp = __expectString(output["carrierIp"]); + if (output[_cI] != null) { + contents[_CIa] = __expectString(output[_cI]); } return contents; }; @@ -87598,32 +86403,32 @@ const de_NetworkInterfaceAssociation = (output: any, context: __SerdeContext): N */ const de_NetworkInterfaceAttachment = (output: any, context: __SerdeContext): NetworkInterfaceAttachment => { const contents: any = {}; - if (output["attachTime"] !== undefined) { - contents.AttachTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["attachTime"])); + if (output[_aTt] != null) { + contents[_ATtt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_aTt])); } - if (output["attachmentId"] !== undefined) { - contents.AttachmentId = __expectString(output["attachmentId"]); + if (output[_aIt] != null) { + contents[_AIt] = __expectString(output[_aIt]); } - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } - if (output["deviceIndex"] !== undefined) { - contents.DeviceIndex = __strictParseInt32(output["deviceIndex"]) as number; + if (output[_dIe] != null) { + contents[_DIev] = __strictParseInt32(output[_dIe]) as number; } - if (output["networkCardIndex"] !== undefined) { - contents.NetworkCardIndex = __strictParseInt32(output["networkCardIndex"]) as number; + if (output[_nCI] != null) { + contents[_NCI] = __strictParseInt32(output[_nCI]) as number; } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceOwnerId"] !== undefined) { - contents.InstanceOwnerId = __expectString(output["instanceOwnerId"]); + if (output[_iOIn] != null) { + contents[_IOIn] = __expectString(output[_iOIn]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["enaSrdSpecification"] !== undefined) { - contents.EnaSrdSpecification = de_AttachmentEnaSrdSpecification(output["enaSrdSpecification"], context); + if (output[_eSS] != null) { + contents[_ESS] = de_AttachmentEnaSrdSpecification(output[_eSS], context); } return contents; }; @@ -87633,11 +86438,11 @@ const de_NetworkInterfaceAttachment = (output: any, context: __SerdeContext): Ne */ const de_NetworkInterfaceCount = (output: any, context: __SerdeContext): NetworkInterfaceCount => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseInt32(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseInt32(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseInt32(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseInt32(output[_ma]) as number; } return contents; }; @@ -87658,11 +86463,11 @@ const de_NetworkInterfaceIdSet = (output: any, context: __SerdeContext): string[ */ const de_NetworkInterfaceIpv6Address = (output: any, context: __SerdeContext): NetworkInterfaceIpv6Address => { const contents: any = {}; - if (output["ipv6Address"] !== undefined) { - contents.Ipv6Address = __expectString(output["ipv6Address"]); + if (output[_iApv] != null) { + contents[_IApv] = __expectString(output[_iApv]); } - if (output["isPrimaryIpv6"] !== undefined) { - contents.IsPrimaryIpv6 = __parseBoolean(output["isPrimaryIpv6"]); + if (output[_iPI] != null) { + contents[_IPIs] = __parseBoolean(output[_iPI]); } return contents; }; @@ -87694,23 +86499,23 @@ const de_NetworkInterfaceList = (output: any, context: __SerdeContext): NetworkI */ const de_NetworkInterfacePermission = (output: any, context: __SerdeContext): NetworkInterfacePermission => { const contents: any = {}; - if (output["networkInterfacePermissionId"] !== undefined) { - contents.NetworkInterfacePermissionId = __expectString(output["networkInterfacePermissionId"]); + if (output[_nIPIe] != null) { + contents[_NIPIe] = __expectString(output[_nIPIe]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["awsAccountId"] !== undefined) { - contents.AwsAccountId = __expectString(output["awsAccountId"]); + if (output[_aAI] != null) { + contents[_AAI] = __expectString(output[_aAI]); } - if (output["awsService"] !== undefined) { - contents.AwsService = __expectString(output["awsService"]); + if (output[_aSw] != null) { + contents[_ASw] = __expectString(output[_aSw]); } - if (output["permission"] !== undefined) { - contents.Permission = __expectString(output["permission"]); + if (output[_per] != null) { + contents[_Pe] = __expectString(output[_per]); } - if (output["permissionState"] !== undefined) { - contents.PermissionState = de_NetworkInterfacePermissionState(output["permissionState"], context); + if (output[_pSe] != null) { + contents[_PSer] = de_NetworkInterfacePermissionState(output[_pSe], context); } return contents; }; @@ -87731,11 +86536,11 @@ const de_NetworkInterfacePermissionList = (output: any, context: __SerdeContext) */ const de_NetworkInterfacePermissionState = (output: any, context: __SerdeContext): NetworkInterfacePermissionState => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } return contents; }; @@ -87748,17 +86553,17 @@ const de_NetworkInterfacePrivateIpAddress = ( context: __SerdeContext ): NetworkInterfacePrivateIpAddress => { const contents: any = {}; - if (output["association"] !== undefined) { - contents.Association = de_NetworkInterfaceAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_NetworkInterfaceAssociation(output[_ass], context); } - if (output["primary"] !== undefined) { - contents.Primary = __parseBoolean(output["primary"]); + if (output[_prim] != null) { + contents[_Prim] = __parseBoolean(output[_prim]); } - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } return contents; }; @@ -87794,12 +86599,9 @@ const de_NetworkNodesList = (output: any, context: __SerdeContext): string[] => const de_NitroTpmInfo = (output: any, context: __SerdeContext): NitroTpmInfo => { const contents: any = {}; if (output.supportedVersions === "") { - contents.SupportedVersions = []; - } else if (output["supportedVersions"] !== undefined && output["supportedVersions"]["item"] !== undefined) { - contents.SupportedVersions = de_NitroTpmSupportedVersionsList( - __getArrayIfSingleItem(output["supportedVersions"]["item"]), - context - ); + contents[_SVu] = []; + } else if (output[_sVu] != null && output[_sVu][_i] != null) { + contents[_SVu] = de_NitroTpmSupportedVersionsList(__getArrayIfSingleItem(output[_sVu][_i]), context); } return contents; }; @@ -87831,26 +86633,26 @@ const de_OccurrenceDaySet = (output: any, context: __SerdeContext): number[] => */ const de_OidcOptions = (output: any, context: __SerdeContext): OidcOptions => { const contents: any = {}; - if (output["issuer"] !== undefined) { - contents.Issuer = __expectString(output["issuer"]); + if (output[_is] != null) { + contents[_I] = __expectString(output[_is]); } - if (output["authorizationEndpoint"] !== undefined) { - contents.AuthorizationEndpoint = __expectString(output["authorizationEndpoint"]); + if (output[_aE] != null) { + contents[_AE] = __expectString(output[_aE]); } - if (output["tokenEndpoint"] !== undefined) { - contents.TokenEndpoint = __expectString(output["tokenEndpoint"]); + if (output[_tEo] != null) { + contents[_TEo] = __expectString(output[_tEo]); } - if (output["userInfoEndpoint"] !== undefined) { - contents.UserInfoEndpoint = __expectString(output["userInfoEndpoint"]); + if (output[_uIE] != null) { + contents[_UIE] = __expectString(output[_uIE]); } - if (output["clientId"] !== undefined) { - contents.ClientId = __expectString(output["clientId"]); + if (output[_cIli] != null) { + contents[_CIl] = __expectString(output[_cIli]); } - if (output["clientSecret"] !== undefined) { - contents.ClientSecret = __expectString(output["clientSecret"]); + if (output[_cSl] != null) { + contents[_CSl] = __expectString(output[_cSl]); } - if (output["scope"] !== undefined) { - contents.Scope = __expectString(output["scope"]); + if (output[_sc] != null) { + contents[_Sc] = __expectString(output[_sc]); } return contents; }; @@ -87860,23 +86662,23 @@ const de_OidcOptions = (output: any, context: __SerdeContext): OidcOptions => { */ const de_OnDemandOptions = (output: any, context: __SerdeContext): OnDemandOptions => { const contents: any = {}; - if (output["allocationStrategy"] !== undefined) { - contents.AllocationStrategy = __expectString(output["allocationStrategy"]); + if (output[_aSl] != null) { + contents[_AS] = __expectString(output[_aSl]); } - if (output["capacityReservationOptions"] !== undefined) { - contents.CapacityReservationOptions = de_CapacityReservationOptions(output["capacityReservationOptions"], context); + if (output[_cRO] != null) { + contents[_CRO] = de_CapacityReservationOptions(output[_cRO], context); } - if (output["singleInstanceType"] !== undefined) { - contents.SingleInstanceType = __parseBoolean(output["singleInstanceType"]); + if (output[_sITi] != null) { + contents[_SITi] = __parseBoolean(output[_sITi]); } - if (output["singleAvailabilityZone"] !== undefined) { - contents.SingleAvailabilityZone = __parseBoolean(output["singleAvailabilityZone"]); + if (output[_sAZ] != null) { + contents[_SAZ] = __parseBoolean(output[_sAZ]); } - if (output["minTargetCapacity"] !== undefined) { - contents.MinTargetCapacity = __strictParseInt32(output["minTargetCapacity"]) as number; + if (output[_mTC] != null) { + contents[_MTC] = __strictParseInt32(output[_mTC]) as number; } - if (output["maxTotalPrice"] !== undefined) { - contents.MaxTotalPrice = __expectString(output["maxTotalPrice"]); + if (output[_mTP] != null) { + contents[_MTP] = __expectString(output[_mTP]); } return contents; }; @@ -87887,54 +86689,39 @@ const de_OnDemandOptions = (output: any, context: __SerdeContext): OnDemandOptio const de_PacketHeaderStatement = (output: any, context: __SerdeContext): PacketHeaderStatement => { const contents: any = {}; if (output.sourceAddressSet === "") { - contents.SourceAddresses = []; - } else if (output["sourceAddressSet"] !== undefined && output["sourceAddressSet"]["item"] !== undefined) { - contents.SourceAddresses = de_ValueStringList(__getArrayIfSingleItem(output["sourceAddressSet"]["item"]), context); + contents[_SAo] = []; + } else if (output[_sAS] != null && output[_sAS][_i] != null) { + contents[_SAo] = de_ValueStringList(__getArrayIfSingleItem(output[_sAS][_i]), context); } if (output.destinationAddressSet === "") { - contents.DestinationAddresses = []; - } else if (output["destinationAddressSet"] !== undefined && output["destinationAddressSet"]["item"] !== undefined) { - contents.DestinationAddresses = de_ValueStringList( - __getArrayIfSingleItem(output["destinationAddressSet"]["item"]), - context - ); + contents[_DAes] = []; + } else if (output[_dAS] != null && output[_dAS][_i] != null) { + contents[_DAes] = de_ValueStringList(__getArrayIfSingleItem(output[_dAS][_i]), context); } if (output.sourcePortSet === "") { - contents.SourcePorts = []; - } else if (output["sourcePortSet"] !== undefined && output["sourcePortSet"]["item"] !== undefined) { - contents.SourcePorts = de_ValueStringList(__getArrayIfSingleItem(output["sourcePortSet"]["item"]), context); + contents[_SPo] = []; + } else if (output[_sPS] != null && output[_sPS][_i] != null) { + contents[_SPo] = de_ValueStringList(__getArrayIfSingleItem(output[_sPS][_i]), context); } if (output.destinationPortSet === "") { - contents.DestinationPorts = []; - } else if (output["destinationPortSet"] !== undefined && output["destinationPortSet"]["item"] !== undefined) { - contents.DestinationPorts = de_ValueStringList( - __getArrayIfSingleItem(output["destinationPortSet"]["item"]), - context - ); + contents[_DPe] = []; + } else if (output[_dPS] != null && output[_dPS][_i] != null) { + contents[_DPe] = de_ValueStringList(__getArrayIfSingleItem(output[_dPS][_i]), context); } if (output.sourcePrefixListSet === "") { - contents.SourcePrefixLists = []; - } else if (output["sourcePrefixListSet"] !== undefined && output["sourcePrefixListSet"]["item"] !== undefined) { - contents.SourcePrefixLists = de_ValueStringList( - __getArrayIfSingleItem(output["sourcePrefixListSet"]["item"]), - context - ); + contents[_SPL] = []; + } else if (output[_sPLS] != null && output[_sPLS][_i] != null) { + contents[_SPL] = de_ValueStringList(__getArrayIfSingleItem(output[_sPLS][_i]), context); } if (output.destinationPrefixListSet === "") { - contents.DestinationPrefixLists = []; - } else if ( - output["destinationPrefixListSet"] !== undefined && - output["destinationPrefixListSet"]["item"] !== undefined - ) { - contents.DestinationPrefixLists = de_ValueStringList( - __getArrayIfSingleItem(output["destinationPrefixListSet"]["item"]), - context - ); + contents[_DPLe] = []; + } else if (output[_dPLS] != null && output[_dPLS][_i] != null) { + contents[_DPLe] = de_ValueStringList(__getArrayIfSingleItem(output[_dPLS][_i]), context); } if (output.protocolSet === "") { - contents.Protocols = []; - } else if (output["protocolSet"] !== undefined && output["protocolSet"]["item"] !== undefined) { - contents.Protocols = de_ProtocolList(__getArrayIfSingleItem(output["protocolSet"]["item"]), context); + contents[_Pro] = []; + } else if (output[_pSro] != null && output[_pSro][_i] != null) { + contents[_Pro] = de_ProtocolList(__getArrayIfSingleItem(output[_pSro][_i]), context); } return contents; }; @@ -87944,75 +86731,69 @@ const de_PacketHeaderStatement = (output: any, context: __SerdeContext): PacketH */ const de_PathComponent = (output: any, context: __SerdeContext): PathComponent => { const contents: any = {}; - if (output["sequenceNumber"] !== undefined) { - contents.SequenceNumber = __strictParseInt32(output["sequenceNumber"]) as number; + if (output[_sNe] != null) { + contents[_SNeq] = __strictParseInt32(output[_sNe]) as number; } - if (output["aclRule"] !== undefined) { - contents.AclRule = de_AnalysisAclRule(output["aclRule"], context); + if (output[_aRc] != null) { + contents[_ARcl] = de_AnalysisAclRule(output[_aRc], context); } - if (output["attachedTo"] !== undefined) { - contents.AttachedTo = de_AnalysisComponent(output["attachedTo"], context); + if (output[_aTtt] != null) { + contents[_ATtta] = de_AnalysisComponent(output[_aTtt], context); } - if (output["component"] !== undefined) { - contents.Component = de_AnalysisComponent(output["component"], context); + if (output[_c] != null) { + contents[_Com] = de_AnalysisComponent(output[_c], context); } - if (output["destinationVpc"] !== undefined) { - contents.DestinationVpc = de_AnalysisComponent(output["destinationVpc"], context); + if (output[_dV] != null) { + contents[_DVest] = de_AnalysisComponent(output[_dV], context); } - if (output["outboundHeader"] !== undefined) { - contents.OutboundHeader = de_AnalysisPacketHeader(output["outboundHeader"], context); + if (output[_oH] != null) { + contents[_OH] = de_AnalysisPacketHeader(output[_oH], context); } - if (output["inboundHeader"] !== undefined) { - contents.InboundHeader = de_AnalysisPacketHeader(output["inboundHeader"], context); + if (output[_iHn] != null) { + contents[_IHn] = de_AnalysisPacketHeader(output[_iHn], context); } - if (output["routeTableRoute"] !== undefined) { - contents.RouteTableRoute = de_AnalysisRouteTableRoute(output["routeTableRoute"], context); + if (output[_rTR] != null) { + contents[_RTR] = de_AnalysisRouteTableRoute(output[_rTR], context); } - if (output["securityGroupRule"] !== undefined) { - contents.SecurityGroupRule = de_AnalysisSecurityGroupRule(output["securityGroupRule"], context); + if (output[_sGR] != null) { + contents[_SGRe] = de_AnalysisSecurityGroupRule(output[_sGR], context); } - if (output["sourceVpc"] !== undefined) { - contents.SourceVpc = de_AnalysisComponent(output["sourceVpc"], context); + if (output[_sV] != null) { + contents[_SVo] = de_AnalysisComponent(output[_sV], context); } - if (output["subnet"] !== undefined) { - contents.Subnet = de_AnalysisComponent(output["subnet"], context); + if (output[_su] != null) { + contents[_Su] = de_AnalysisComponent(output[_su], context); } - if (output["vpc"] !== undefined) { - contents.Vpc = de_AnalysisComponent(output["vpc"], context); + if (output[_vp] != null) { + contents[_Vp] = de_AnalysisComponent(output[_vp], context); } if (output.additionalDetailSet === "") { - contents.AdditionalDetails = []; - } else if (output["additionalDetailSet"] !== undefined && output["additionalDetailSet"]["item"] !== undefined) { - contents.AdditionalDetails = de_AdditionalDetailList( - __getArrayIfSingleItem(output["additionalDetailSet"]["item"]), - context - ); + contents[_ADd] = []; + } else if (output[_aDS] != null && output[_aDS][_i] != null) { + contents[_ADd] = de_AdditionalDetailList(__getArrayIfSingleItem(output[_aDS][_i]), context); } - if (output["transitGateway"] !== undefined) { - contents.TransitGateway = de_AnalysisComponent(output["transitGateway"], context); + if (output[_tG] != null) { + contents[_TGr] = de_AnalysisComponent(output[_tG], context); } - if (output["transitGatewayRouteTableRoute"] !== undefined) { - contents.TransitGatewayRouteTableRoute = de_TransitGatewayRouteTableRoute( - output["transitGatewayRouteTableRoute"], - context - ); + if (output[_tGRTR] != null) { + contents[_TGRTR] = de_TransitGatewayRouteTableRoute(output[_tGRTR], context); } if (output.explanationSet === "") { - contents.Explanations = []; - } else if (output["explanationSet"] !== undefined && output["explanationSet"]["item"] !== undefined) { - contents.Explanations = de_ExplanationList(__getArrayIfSingleItem(output["explanationSet"]["item"]), context); + contents[_Ex] = []; + } else if (output[_eSx] != null && output[_eSx][_i] != null) { + contents[_Ex] = de_ExplanationList(__getArrayIfSingleItem(output[_eSx][_i]), context); } - if (output["elasticLoadBalancerListener"] !== undefined) { - contents.ElasticLoadBalancerListener = de_AnalysisComponent(output["elasticLoadBalancerListener"], context); + if (output[_eLBL] != null) { + contents[_ELBL] = de_AnalysisComponent(output[_eLBL], context); } - if (output["firewallStatelessRule"] !== undefined) { - contents.FirewallStatelessRule = de_FirewallStatelessRule(output["firewallStatelessRule"], context); + if (output[_fSR] != null) { + contents[_FSRi] = de_FirewallStatelessRule(output[_fSR], context); } - if (output["firewallStatefulRule"] !== undefined) { - contents.FirewallStatefulRule = de_FirewallStatefulRule(output["firewallStatefulRule"], context); + if (output[_fSRi] != null) { + contents[_FSRir] = de_FirewallStatefulRule(output[_fSRi], context); } - if (output["serviceName"] !== undefined) { - contents.ServiceName = __expectString(output["serviceName"]); + if (output[_sN] != null) { + contents[_SNe] = __expectString(output[_sN]); } return contents; }; @@ -88033,17 +86814,17 @@ const de_PathComponentList = (output: any, context: __SerdeContext): PathCompone */ const de_PathFilter = (output: any, context: __SerdeContext): PathFilter => { const contents: any = {}; - if (output["sourceAddress"] !== undefined) { - contents.SourceAddress = __expectString(output["sourceAddress"]); + if (output[_sAo] != null) { + contents[_SAou] = __expectString(output[_sAo]); } - if (output["sourcePortRange"] !== undefined) { - contents.SourcePortRange = de_FilterPortRange(output["sourcePortRange"], context); + if (output[_sPR] != null) { + contents[_SPR] = de_FilterPortRange(output[_sPR], context); } - if (output["destinationAddress"] !== undefined) { - contents.DestinationAddress = __expectString(output["destinationAddress"]); + if (output[_dAe] != null) { + contents[_DAest] = __expectString(output[_dAe]); } - if (output["destinationPortRange"] !== undefined) { - contents.DestinationPortRange = de_FilterPortRange(output["destinationPortRange"], context); + if (output[_dPR] != null) { + contents[_DPR] = de_FilterPortRange(output[_dPR], context); } return contents; }; @@ -88053,11 +86834,11 @@ const de_PathFilter = (output: any, context: __SerdeContext): PathFilter => { */ const de_PathStatement = (output: any, context: __SerdeContext): PathStatement => { const contents: any = {}; - if (output["packetHeaderStatement"] !== undefined) { - contents.PacketHeaderStatement = de_PacketHeaderStatement(output["packetHeaderStatement"], context); + if (output[_pHS] != null) { + contents[_PHS] = de_PacketHeaderStatement(output[_pHS], context); } - if (output["resourceStatement"] !== undefined) { - contents.ResourceStatement = de_ResourceStatement(output["resourceStatement"], context); + if (output[_rSes] != null) { + contents[_RSe] = de_ResourceStatement(output[_rSes], context); } return contents; }; @@ -88067,17 +86848,17 @@ const de_PathStatement = (output: any, context: __SerdeContext): PathStatement = */ const de_PciId = (output: any, context: __SerdeContext): PciId => { const contents: any = {}; - if (output["DeviceId"] !== undefined) { - contents.DeviceId = __expectString(output["DeviceId"]); + if (output[_DIevi] != null) { + contents[_DIevi] = __expectString(output[_DIevi]); } - if (output["VendorId"] !== undefined) { - contents.VendorId = __expectString(output["VendorId"]); + if (output[_VIe] != null) { + contents[_VIe] = __expectString(output[_VIe]); } - if (output["SubsystemId"] !== undefined) { - contents.SubsystemId = __expectString(output["SubsystemId"]); + if (output[_SIubs] != null) { + contents[_SIubs] = __expectString(output[_SIubs]); } - if (output["SubsystemVendorId"] !== undefined) { - contents.SubsystemVendorId = __expectString(output["SubsystemVendorId"]); + if (output[_SVI] != null) { + contents[_SVI] = __expectString(output[_SVI]); } return contents; }; @@ -88087,11 +86868,11 @@ const de_PciId = (output: any, context: __SerdeContext): PciId => { */ const de_PeeringAttachmentStatus = (output: any, context: __SerdeContext): PeeringAttachmentStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -88101,18 +86882,14 @@ const de_PeeringAttachmentStatus = (output: any, context: __SerdeContext): Peeri */ const de_PeeringConnectionOptions = (output: any, context: __SerdeContext): PeeringConnectionOptions => { const contents: any = {}; - if (output["allowDnsResolutionFromRemoteVpc"] !== undefined) { - contents.AllowDnsResolutionFromRemoteVpc = __parseBoolean(output["allowDnsResolutionFromRemoteVpc"]); + if (output[_aDRFRV] != null) { + contents[_ADRFRV] = __parseBoolean(output[_aDRFRV]); } - if (output["allowEgressFromLocalClassicLinkToRemoteVpc"] !== undefined) { - contents.AllowEgressFromLocalClassicLinkToRemoteVpc = __parseBoolean( - output["allowEgressFromLocalClassicLinkToRemoteVpc"] - ); + if (output[_aEFLCLTRV] != null) { + contents[_AEFLCLTRV] = __parseBoolean(output[_aEFLCLTRV]); } - if (output["allowEgressFromLocalVpcToRemoteClassicLink"] !== undefined) { - contents.AllowEgressFromLocalVpcToRemoteClassicLink = __parseBoolean( - output["allowEgressFromLocalVpcToRemoteClassicLink"] - ); + if (output[_aEFLVTRCL] != null) { + contents[_AEFLVTRCL] = __parseBoolean(output[_aEFLVTRCL]); } return contents; }; @@ -88122,17 +86899,17 @@ const de_PeeringConnectionOptions = (output: any, context: __SerdeContext): Peer */ const de_PeeringTgwInfo = (output: any, context: __SerdeContext): PeeringTgwInfo => { const contents: any = {}; - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["coreNetworkId"] !== undefined) { - contents.CoreNetworkId = __expectString(output["coreNetworkId"]); + if (output[_cNIo] != null) { + contents[_CNIor] = __expectString(output[_cNIo]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["region"] !== undefined) { - contents.Region = __expectString(output["region"]); + if (output[_reg] != null) { + contents[_Regi] = __expectString(output[_reg]); } return contents; }; @@ -88153,8 +86930,8 @@ const de_Phase1DHGroupNumbersList = (output: any, context: __SerdeContext): Phas */ const de_Phase1DHGroupNumbersListValue = (output: any, context: __SerdeContext): Phase1DHGroupNumbersListValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __strictParseInt32(output["value"]) as number; + if (output[_v] != null) { + contents[_Va] = __strictParseInt32(output[_v]) as number; } return contents; }; @@ -88181,8 +86958,8 @@ const de_Phase1EncryptionAlgorithmsListValue = ( context: __SerdeContext ): Phase1EncryptionAlgorithmsListValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -88209,8 +86986,8 @@ const de_Phase1IntegrityAlgorithmsListValue = ( context: __SerdeContext ): Phase1IntegrityAlgorithmsListValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -88231,8 +87008,8 @@ const de_Phase2DHGroupNumbersList = (output: any, context: __SerdeContext): Phas */ const de_Phase2DHGroupNumbersListValue = (output: any, context: __SerdeContext): Phase2DHGroupNumbersListValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __strictParseInt32(output["value"]) as number; + if (output[_v] != null) { + contents[_Va] = __strictParseInt32(output[_v]) as number; } return contents; }; @@ -88259,8 +87036,8 @@ const de_Phase2EncryptionAlgorithmsListValue = ( context: __SerdeContext ): Phase2EncryptionAlgorithmsListValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -88287,8 +87064,8 @@ const de_Phase2IntegrityAlgorithmsListValue = ( context: __SerdeContext ): Phase2IntegrityAlgorithmsListValue => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -88298,32 +87075,32 @@ const de_Phase2IntegrityAlgorithmsListValue = ( */ const de_Placement = (output: any, context: __SerdeContext): Placement => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["affinity"] !== undefined) { - contents.Affinity = __expectString(output["affinity"]); + if (output[_af] != null) { + contents[_Af] = __expectString(output[_af]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["partitionNumber"] !== undefined) { - contents.PartitionNumber = __strictParseInt32(output["partitionNumber"]) as number; + if (output[_pN] != null) { + contents[_PN] = __strictParseInt32(output[_pN]) as number; } - if (output["hostId"] !== undefined) { - contents.HostId = __expectString(output["hostId"]); + if (output[_hI] != null) { + contents[_HIo] = __expectString(output[_hI]); } - if (output["tenancy"] !== undefined) { - contents.Tenancy = __expectString(output["tenancy"]); + if (output[_t] != null) { + contents[_Te] = __expectString(output[_t]); } - if (output["spreadDomain"] !== undefined) { - contents.SpreadDomain = __expectString(output["spreadDomain"]); + if (output[_sDp] != null) { + contents[_SD] = __expectString(output[_sDp]); } - if (output["hostResourceGroupArn"] !== undefined) { - contents.HostResourceGroupArn = __expectString(output["hostResourceGroupArn"]); + if (output[_hRGA] != null) { + contents[_HRGA] = __expectString(output[_hRGA]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } return contents; }; @@ -88333,31 +87110,31 @@ const de_Placement = (output: any, context: __SerdeContext): Placement => { */ const de_PlacementGroup = (output: any, context: __SerdeContext): PlacementGroup => { const contents: any = {}; - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["strategy"] !== undefined) { - contents.Strategy = __expectString(output["strategy"]); + if (output[_str] != null) { + contents[_Str] = __expectString(output[_str]); } - if (output["partitionCount"] !== undefined) { - contents.PartitionCount = __strictParseInt32(output["partitionCount"]) as number; + if (output[_pCa] != null) { + contents[_PCa] = __strictParseInt32(output[_pCa]) as number; } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["groupArn"] !== undefined) { - contents.GroupArn = __expectString(output["groupArn"]); + if (output[_gA] != null) { + contents[_GA] = __expectString(output[_gA]); } - if (output["spreadLevel"] !== undefined) { - contents.SpreadLevel = __expectString(output["spreadLevel"]); + if (output[_sLp] != null) { + contents[_SL] = __expectString(output[_sLp]); } return contents; }; @@ -88368,12 +87145,9 @@ const de_PlacementGroup = (output: any, context: __SerdeContext): PlacementGroup const de_PlacementGroupInfo = (output: any, context: __SerdeContext): PlacementGroupInfo => { const contents: any = {}; if (output.supportedStrategies === "") { - contents.SupportedStrategies = []; - } else if (output["supportedStrategies"] !== undefined && output["supportedStrategies"]["item"] !== undefined) { - contents.SupportedStrategies = de_PlacementGroupStrategyList( - __getArrayIfSingleItem(output["supportedStrategies"]["item"]), - context - ); + contents[_SSu] = []; + } else if (output[_sSup] != null && output[_sSup][_i] != null) { + contents[_SSu] = de_PlacementGroupStrategyList(__getArrayIfSingleItem(output[_sSup][_i]), context); } return contents; }; @@ -88405,8 +87179,8 @@ const de_PlacementGroupStrategyList = (output: any, context: __SerdeContext): Pl */ const de_PlacementResponse = (output: any, context: __SerdeContext): PlacementResponse => { const contents: any = {}; - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } return contents; }; @@ -88416,8 +87190,8 @@ const de_PlacementResponse = (output: any, context: __SerdeContext): PlacementRe */ const de_PoolCidrBlock = (output: any, context: __SerdeContext): PoolCidrBlock => { const contents: any = {}; - if (output["poolCidrBlock"] !== undefined) { - contents.Cidr = __expectString(output["poolCidrBlock"]); + if (output[_pCB] != null) { + contents[_C] = __expectString(output[_pCB]); } return contents; }; @@ -88438,11 +87212,11 @@ const de_PoolCidrBlocksSet = (output: any, context: __SerdeContext): PoolCidrBlo */ const de_PortRange = (output: any, context: __SerdeContext): PortRange => { const contents: any = {}; - if (output["from"] !== undefined) { - contents.From = __strictParseInt32(output["from"]) as number; + if (output[_fr] != null) { + contents[_Fr] = __strictParseInt32(output[_fr]) as number; } - if (output["to"] !== undefined) { - contents.To = __strictParseInt32(output["to"]) as number; + if (output[_to] != null) { + contents[_To] = __strictParseInt32(output[_to]) as number; } return contents; }; @@ -88464,15 +87238,15 @@ const de_PortRangeList = (output: any, context: __SerdeContext): PortRange[] => const de_PrefixList = (output: any, context: __SerdeContext): PrefixList => { const contents: any = {}; if (output.cidrSet === "") { - contents.Cidrs = []; - } else if (output["cidrSet"] !== undefined && output["cidrSet"]["item"] !== undefined) { - contents.Cidrs = de_ValueStringList(__getArrayIfSingleItem(output["cidrSet"]["item"]), context); + contents[_Ci] = []; + } else if (output[_cS] != null && output[_cS][_i] != null) { + contents[_Ci] = de_ValueStringList(__getArrayIfSingleItem(output[_cS][_i]), context); } - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } - if (output["prefixListName"] !== undefined) { - contents.PrefixListName = __expectString(output["prefixListName"]); + if (output[_pLN] != null) { + contents[_PLN] = __expectString(output[_pLN]); } return contents; }; @@ -88482,11 +87256,11 @@ const de_PrefixList = (output: any, context: __SerdeContext): PrefixList => { */ const de_PrefixListAssociation = (output: any, context: __SerdeContext): PrefixListAssociation => { const contents: any = {}; - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceOwner"] !== undefined) { - contents.ResourceOwner = __expectString(output["resourceOwner"]); + if (output[_rO] != null) { + contents[_RO] = __expectString(output[_rO]); } return contents; }; @@ -88507,11 +87281,11 @@ const de_PrefixListAssociationSet = (output: any, context: __SerdeContext): Pref */ const de_PrefixListEntry = (output: any, context: __SerdeContext): PrefixListEntry => { const contents: any = {}; - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } return contents; }; @@ -88532,11 +87306,11 @@ const de_PrefixListEntrySet = (output: any, context: __SerdeContext): PrefixList */ const de_PrefixListId = (output: any, context: __SerdeContext): PrefixListId => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } return contents; }; @@ -88579,17 +87353,17 @@ const de_PrefixListSet = (output: any, context: __SerdeContext): PrefixList[] => */ const de_PriceSchedule = (output: any, context: __SerdeContext): PriceSchedule => { const contents: any = {}; - if (output["active"] !== undefined) { - contents.Active = __parseBoolean(output["active"]); + if (output[_act] != null) { + contents[_Act] = __parseBoolean(output[_act]); } - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["price"] !== undefined) { - contents.Price = __strictParseFloat(output["price"]) as number; + if (output[_pric] != null) { + contents[_Pric] = __strictParseFloat(output[_pric]) as number; } - if (output["term"] !== undefined) { - contents.Term = __strictParseLong(output["term"]) as number; + if (output[_te] != null) { + contents[_Ter] = __strictParseLong(output[_te]) as number; } return contents; }; @@ -88610,11 +87384,11 @@ const de_PriceScheduleList = (output: any, context: __SerdeContext): PriceSchedu */ const de_PricingDetail = (output: any, context: __SerdeContext): PricingDetail => { const contents: any = {}; - if (output["count"] !== undefined) { - contents.Count = __strictParseInt32(output["count"]) as number; + if (output[_cou] != null) { + contents[_Cou] = __strictParseInt32(output[_cou]) as number; } - if (output["price"] !== undefined) { - contents.Price = __strictParseFloat(output["price"]) as number; + if (output[_pric] != null) { + contents[_Pric] = __strictParseFloat(output[_pric]) as number; } return contents; }; @@ -88635,13 +87409,13 @@ const de_PricingDetailsList = (output: any, context: __SerdeContext): PricingDet */ const de_PrincipalIdFormat = (output: any, context: __SerdeContext): PrincipalIdFormat => { const contents: any = {}; - if (output["arn"] !== undefined) { - contents.Arn = __expectString(output["arn"]); + if (output[_ar] != null) { + contents[_Ar] = __expectString(output[_ar]); } if (output.statusSet === "") { - contents.Statuses = []; - } else if (output["statusSet"] !== undefined && output["statusSet"]["item"] !== undefined) { - contents.Statuses = de_IdFormatList(__getArrayIfSingleItem(output["statusSet"]["item"]), context); + contents[_Status] = []; + } else if (output[_sSt] != null && output[_sSt][_i] != null) { + contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); } return contents; }; @@ -88662,8 +87436,8 @@ const de_PrincipalIdFormatList = (output: any, context: __SerdeContext): Princip */ const de_PrivateDnsDetails = (output: any, context: __SerdeContext): PrivateDnsDetails => { const contents: any = {}; - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } return contents; }; @@ -88684,17 +87458,17 @@ const de_PrivateDnsDetailsSet = (output: any, context: __SerdeContext): PrivateD */ const de_PrivateDnsNameConfiguration = (output: any, context: __SerdeContext): PrivateDnsNameConfiguration => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } return contents; }; @@ -88704,14 +87478,14 @@ const de_PrivateDnsNameConfiguration = (output: any, context: __SerdeContext): P */ const de_PrivateDnsNameOptionsOnLaunch = (output: any, context: __SerdeContext): PrivateDnsNameOptionsOnLaunch => { const contents: any = {}; - if (output["hostnameType"] !== undefined) { - contents.HostnameType = __expectString(output["hostnameType"]); + if (output[_hTo] != null) { + contents[_HTo] = __expectString(output[_hTo]); } - if (output["enableResourceNameDnsARecord"] !== undefined) { - contents.EnableResourceNameDnsARecord = __parseBoolean(output["enableResourceNameDnsARecord"]); + if (output[_eRNDAR] != null) { + contents[_ERNDAR] = __parseBoolean(output[_eRNDAR]); } - if (output["enableResourceNameDnsAAAARecord"] !== undefined) { - contents.EnableResourceNameDnsAAAARecord = __parseBoolean(output["enableResourceNameDnsAAAARecord"]); + if (output[_eRNDAAAAR] != null) { + contents[_ERNDAAAAR] = __parseBoolean(output[_eRNDAAAAR]); } return contents; }; @@ -88721,14 +87495,14 @@ const de_PrivateDnsNameOptionsOnLaunch = (output: any, context: __SerdeContext): */ const de_PrivateDnsNameOptionsResponse = (output: any, context: __SerdeContext): PrivateDnsNameOptionsResponse => { const contents: any = {}; - if (output["hostnameType"] !== undefined) { - contents.HostnameType = __expectString(output["hostnameType"]); + if (output[_hTo] != null) { + contents[_HTo] = __expectString(output[_hTo]); } - if (output["enableResourceNameDnsARecord"] !== undefined) { - contents.EnableResourceNameDnsARecord = __parseBoolean(output["enableResourceNameDnsARecord"]); + if (output[_eRNDAR] != null) { + contents[_ERNDAR] = __parseBoolean(output[_eRNDAR]); } - if (output["enableResourceNameDnsAAAARecord"] !== undefined) { - contents.EnableResourceNameDnsAAAARecord = __parseBoolean(output["enableResourceNameDnsAAAARecord"]); + if (output[_eRNDAAAAR] != null) { + contents[_ERNDAAAAR] = __parseBoolean(output[_eRNDAAAAR]); } return contents; }; @@ -88738,11 +87512,11 @@ const de_PrivateDnsNameOptionsResponse = (output: any, context: __SerdeContext): */ const de_PrivateIpAddressSpecification = (output: any, context: __SerdeContext): PrivateIpAddressSpecification => { const contents: any = {}; - if (output["primary"] !== undefined) { - contents.Primary = __parseBoolean(output["primary"]); + if (output[_prim] != null) { + contents[_Prim] = __parseBoolean(output[_prim]); } - if (output["privateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["privateIpAddress"]); + if (output[_pIA] != null) { + contents[_PIAr] = __expectString(output[_pIA]); } return contents; }; @@ -88767,26 +87541,20 @@ const de_PrivateIpAddressSpecificationList = ( const de_ProcessorInfo = (output: any, context: __SerdeContext): ProcessorInfo => { const contents: any = {}; if (output.supportedArchitectures === "") { - contents.SupportedArchitectures = []; - } else if (output["supportedArchitectures"] !== undefined && output["supportedArchitectures"]["item"] !== undefined) { - contents.SupportedArchitectures = de_ArchitectureTypeList( - __getArrayIfSingleItem(output["supportedArchitectures"]["item"]), - context - ); + contents[_SAup] = []; + } else if (output[_sAu] != null && output[_sAu][_i] != null) { + contents[_SAup] = de_ArchitectureTypeList(__getArrayIfSingleItem(output[_sAu][_i]), context); } - if (output["sustainedClockSpeedInGhz"] !== undefined) { - contents.SustainedClockSpeedInGhz = __strictParseFloat(output["sustainedClockSpeedInGhz"]) as number; + if (output[_sCSIG] != null) { + contents[_SCSIG] = __strictParseFloat(output[_sCSIG]) as number; } if (output.supportedFeatures === "") { - contents.SupportedFeatures = []; - } else if (output["supportedFeatures"] !== undefined && output["supportedFeatures"]["item"] !== undefined) { - contents.SupportedFeatures = de_SupportedAdditionalProcessorFeatureList( - __getArrayIfSingleItem(output["supportedFeatures"]["item"]), - context - ); + contents[_SF] = []; + } else if (output[_sF] != null && output[_sF][_i] != null) { + contents[_SF] = de_SupportedAdditionalProcessorFeatureList(__getArrayIfSingleItem(output[_sF][_i]), context); } - if (output["manufacturer"] !== undefined) { - contents.Manufacturer = __expectString(output["manufacturer"]); + if (output[_man] != null) { + contents[_Man] = __expectString(output[_man]); } return contents; }; @@ -88796,11 +87564,11 @@ const de_ProcessorInfo = (output: any, context: __SerdeContext): ProcessorInfo = */ const de_ProductCode = (output: any, context: __SerdeContext): ProductCode => { const contents: any = {}; - if (output["productCode"] !== undefined) { - contents.ProductCodeId = __expectString(output["productCode"]); + if (output[_pCr] != null) { + contents[_PCIr] = __expectString(output[_pCr]); } - if (output["type"] !== undefined) { - contents.ProductCodeType = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_PCT] = __expectString(output[_ty]); } return contents; }; @@ -88821,8 +87589,8 @@ const de_ProductCodeList = (output: any, context: __SerdeContext): ProductCode[] */ const de_PropagatingVgw = (output: any, context: __SerdeContext): PropagatingVgw => { const contents: any = {}; - if (output["gatewayId"] !== undefined) { - contents.GatewayId = __expectString(output["gatewayId"]); + if (output[_gI] != null) { + contents[_GI] = __expectString(output[_gI]); } return contents; }; @@ -88865,8 +87633,8 @@ const de_ProtocolList = (output: any, context: __SerdeContext): Protocol[] => { */ const de_ProvisionByoipCidrResult = (output: any, context: __SerdeContext): ProvisionByoipCidrResult => { const contents: any = {}; - if (output["byoipCidr"] !== undefined) { - contents.ByoipCidr = de_ByoipCidr(output["byoipCidr"], context); + if (output[_bC] != null) { + contents[_BC] = de_ByoipCidr(output[_bC], context); } return contents; }; @@ -88876,20 +87644,20 @@ const de_ProvisionByoipCidrResult = (output: any, context: __SerdeContext): Prov */ const de_ProvisionedBandwidth = (output: any, context: __SerdeContext): ProvisionedBandwidth => { const contents: any = {}; - if (output["provisionTime"] !== undefined) { - contents.ProvisionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["provisionTime"])); + if (output[_pTr] != null) { + contents[_PTro] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_pTr])); } - if (output["provisioned"] !== undefined) { - contents.Provisioned = __expectString(output["provisioned"]); + if (output[_prov] != null) { + contents[_Prov] = __expectString(output[_prov]); } - if (output["requestTime"] !== undefined) { - contents.RequestTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["requestTime"])); + if (output[_rTeq] != null) { + contents[_RTeq] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rTeq])); } - if (output["requested"] !== undefined) { - contents.Requested = __expectString(output["requested"]); + if (output[_req] != null) { + contents[_Req] = __expectString(output[_req]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -88899,8 +87667,8 @@ const de_ProvisionedBandwidth = (output: any, context: __SerdeContext): Provisio */ const de_ProvisionIpamByoasnResult = (output: any, context: __SerdeContext): ProvisionIpamByoasnResult => { const contents: any = {}; - if (output["byoasn"] !== undefined) { - contents.Byoasn = de_Byoasn(output["byoasn"], context); + if (output[_b] != null) { + contents[_Byo] = de_Byoasn(output[_b], context); } return contents; }; @@ -88910,8 +87678,8 @@ const de_ProvisionIpamByoasnResult = (output: any, context: __SerdeContext): Pro */ const de_ProvisionIpamPoolCidrResult = (output: any, context: __SerdeContext): ProvisionIpamPoolCidrResult => { const contents: any = {}; - if (output["ipamPoolCidr"] !== undefined) { - contents.IpamPoolCidr = de_IpamPoolCidr(output["ipamPoolCidr"], context); + if (output[_iPC] != null) { + contents[_IPCpa] = de_IpamPoolCidr(output[_iPC], context); } return contents; }; @@ -88924,11 +87692,11 @@ const de_ProvisionPublicIpv4PoolCidrResult = ( context: __SerdeContext ): ProvisionPublicIpv4PoolCidrResult => { const contents: any = {}; - if (output["poolId"] !== undefined) { - contents.PoolId = __expectString(output["poolId"]); + if (output[_pIo] != null) { + contents[_PIo] = __expectString(output[_pIo]); } - if (output["poolAddressRange"] !== undefined) { - contents.PoolAddressRange = de_PublicIpv4PoolRange(output["poolAddressRange"], context); + if (output[_pAR] != null) { + contents[_PAR] = de_PublicIpv4PoolRange(output[_pAR], context); } return contents; }; @@ -88938,14 +87706,14 @@ const de_ProvisionPublicIpv4PoolCidrResult = ( */ const de_PtrUpdateStatus = (output: any, context: __SerdeContext): PtrUpdateStatus => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["reason"] !== undefined) { - contents.Reason = __expectString(output["reason"]); + if (output[_rea] != null) { + contents[_Rea] = __expectString(output[_rea]); } return contents; }; @@ -88955,33 +87723,30 @@ const de_PtrUpdateStatus = (output: any, context: __SerdeContext): PtrUpdateStat */ const de_PublicIpv4Pool = (output: any, context: __SerdeContext): PublicIpv4Pool => { const contents: any = {}; - if (output["poolId"] !== undefined) { - contents.PoolId = __expectString(output["poolId"]); + if (output[_pIo] != null) { + contents[_PIo] = __expectString(output[_pIo]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.poolAddressRangeSet === "") { - contents.PoolAddressRanges = []; - } else if (output["poolAddressRangeSet"] !== undefined && output["poolAddressRangeSet"]["item"] !== undefined) { - contents.PoolAddressRanges = de_PublicIpv4PoolRangeSet( - __getArrayIfSingleItem(output["poolAddressRangeSet"]["item"]), - context - ); + contents[_PARo] = []; + } else if (output[_pARS] != null && output[_pARS][_i] != null) { + contents[_PARo] = de_PublicIpv4PoolRangeSet(__getArrayIfSingleItem(output[_pARS][_i]), context); } - if (output["totalAddressCount"] !== undefined) { - contents.TotalAddressCount = __strictParseInt32(output["totalAddressCount"]) as number; + if (output[_tAC] != null) { + contents[_TAC] = __strictParseInt32(output[_tAC]) as number; } - if (output["totalAvailableAddressCount"] !== undefined) { - contents.TotalAvailableAddressCount = __strictParseInt32(output["totalAvailableAddressCount"]) as number; + if (output[_tAAC] != null) { + contents[_TAAC] = __strictParseInt32(output[_tAAC]) as number; } - if (output["networkBorderGroup"] !== undefined) { - contents.NetworkBorderGroup = __expectString(output["networkBorderGroup"]); + if (output[_nBG] != null) { + contents[_NBG] = __expectString(output[_nBG]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -88991,17 +87756,17 @@ const de_PublicIpv4Pool = (output: any, context: __SerdeContext): PublicIpv4Pool */ const de_PublicIpv4PoolRange = (output: any, context: __SerdeContext): PublicIpv4PoolRange => { const contents: any = {}; - if (output["firstAddress"] !== undefined) { - contents.FirstAddress = __expectString(output["firstAddress"]); + if (output[_fAi] != null) { + contents[_FAi] = __expectString(output[_fAi]); } - if (output["lastAddress"] !== undefined) { - contents.LastAddress = __expectString(output["lastAddress"]); + if (output[_lAa] != null) { + contents[_LAa] = __expectString(output[_lAa]); } - if (output["addressCount"] !== undefined) { - contents.AddressCount = __strictParseInt32(output["addressCount"]) as number; + if (output[_aCd] != null) { + contents[_ACd] = __strictParseInt32(output[_aCd]) as number; } - if (output["availableAddressCount"] !== undefined) { - contents.AvailableAddressCount = __strictParseInt32(output["availableAddressCount"]) as number; + if (output[_aAC] != null) { + contents[_AACv] = __strictParseInt32(output[_aAC]) as number; } return contents; }; @@ -89033,31 +87798,31 @@ const de_PublicIpv4PoolSet = (output: any, context: __SerdeContext): PublicIpv4P */ const de_Purchase = (output: any, context: __SerdeContext): Purchase => { const contents: any = {}; - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["duration"]) as number; + if (output[_du] != null) { + contents[_Du] = __strictParseInt32(output[_du]) as number; } if (output.hostIdSet === "") { - contents.HostIdSet = []; - } else if (output["hostIdSet"] !== undefined && output["hostIdSet"]["item"] !== undefined) { - contents.HostIdSet = de_ResponseHostIdSet(__getArrayIfSingleItem(output["hostIdSet"]["item"]), context); + contents[_HIS] = []; + } else if (output[_hIS] != null && output[_hIS][_i] != null) { + contents[_HIS] = de_ResponseHostIdSet(__getArrayIfSingleItem(output[_hIS][_i]), context); } - if (output["hostReservationId"] !== undefined) { - contents.HostReservationId = __expectString(output["hostReservationId"]); + if (output[_hRI] != null) { + contents[_HRI] = __expectString(output[_hRI]); } - if (output["hourlyPrice"] !== undefined) { - contents.HourlyPrice = __expectString(output["hourlyPrice"]); + if (output[_hPo] != null) { + contents[_HPo] = __expectString(output[_hPo]); } - if (output["instanceFamily"] !== undefined) { - contents.InstanceFamily = __expectString(output["instanceFamily"]); + if (output[_iF] != null) { + contents[_IF] = __expectString(output[_iF]); } - if (output["paymentOption"] !== undefined) { - contents.PaymentOption = __expectString(output["paymentOption"]); + if (output[_pO] != null) { + contents[_PO] = __expectString(output[_pO]); } - if (output["upfrontPrice"] !== undefined) { - contents.UpfrontPrice = __expectString(output["upfrontPrice"]); + if (output[_uP] != null) { + contents[_UPp] = __expectString(output[_uP]); } return contents; }; @@ -89067,8 +87832,8 @@ const de_Purchase = (output: any, context: __SerdeContext): Purchase => { */ const de_PurchaseCapacityBlockResult = (output: any, context: __SerdeContext): PurchaseCapacityBlockResult => { const contents: any = {}; - if (output["capacityReservation"] !== undefined) { - contents.CapacityReservation = de_CapacityReservation(output["capacityReservation"], context); + if (output[_cR] != null) { + contents[_CRapa] = de_CapacityReservation(output[_cR], context); } return contents; }; @@ -89089,22 +87854,22 @@ const de_PurchasedScheduledInstanceSet = (output: any, context: __SerdeContext): */ const de_PurchaseHostReservationResult = (output: any, context: __SerdeContext): PurchaseHostReservationResult => { const contents: any = {}; - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } if (output.purchase === "") { - contents.Purchase = []; - } else if (output["purchase"] !== undefined && output["purchase"]["item"] !== undefined) { - contents.Purchase = de_PurchaseSet(__getArrayIfSingleItem(output["purchase"]["item"]), context); + contents[_Pur] = []; + } else if (output[_pur] != null && output[_pur][_i] != null) { + contents[_Pur] = de_PurchaseSet(__getArrayIfSingleItem(output[_pur][_i]), context); } - if (output["totalHourlyPrice"] !== undefined) { - contents.TotalHourlyPrice = __expectString(output["totalHourlyPrice"]); + if (output[_tHP] != null) { + contents[_THP] = __expectString(output[_tHP]); } - if (output["totalUpfrontPrice"] !== undefined) { - contents.TotalUpfrontPrice = __expectString(output["totalUpfrontPrice"]); + if (output[_tUP] != null) { + contents[_TUP] = __expectString(output[_tUP]); } return contents; }; @@ -89117,8 +87882,8 @@ const de_PurchaseReservedInstancesOfferingResult = ( context: __SerdeContext ): PurchaseReservedInstancesOfferingResult => { const contents: any = {}; - if (output["reservedInstancesId"] !== undefined) { - contents.ReservedInstancesId = __expectString(output["reservedInstancesId"]); + if (output[_rII] != null) { + contents[_RIIe] = __expectString(output[_rII]); } return contents; }; @@ -89132,12 +87897,9 @@ const de_PurchaseScheduledInstancesResult = ( ): PurchaseScheduledInstancesResult => { const contents: any = {}; if (output.scheduledInstanceSet === "") { - contents.ScheduledInstanceSet = []; - } else if (output["scheduledInstanceSet"] !== undefined && output["scheduledInstanceSet"]["item"] !== undefined) { - contents.ScheduledInstanceSet = de_PurchasedScheduledInstanceSet( - __getArrayIfSingleItem(output["scheduledInstanceSet"]["item"]), - context - ); + contents[_SIS] = []; + } else if (output[_sIS] != null && output[_sIS][_i] != null) { + contents[_SIS] = de_PurchasedScheduledInstanceSet(__getArrayIfSingleItem(output[_sIS][_i]), context); } return contents; }; @@ -89158,11 +87920,11 @@ const de_PurchaseSet = (output: any, context: __SerdeContext): Purchase[] => { */ const de_RecurringCharge = (output: any, context: __SerdeContext): RecurringCharge => { const contents: any = {}; - if (output["amount"] !== undefined) { - contents.Amount = __strictParseFloat(output["amount"]) as number; + if (output[_am] != null) { + contents[_Am] = __strictParseFloat(output[_am]) as number; } - if (output["frequency"] !== undefined) { - contents.Frequency = __expectString(output["frequency"]); + if (output[_fre] != null) { + contents[_Fre] = __expectString(output[_fre]); } return contents; }; @@ -89183,20 +87945,20 @@ const de_RecurringChargesList = (output: any, context: __SerdeContext): Recurrin */ const de_ReferencedSecurityGroup = (output: any, context: __SerdeContext): ReferencedSecurityGroup => { const contents: any = {}; - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } - if (output["peeringStatus"] !== undefined) { - contents.PeeringStatus = __expectString(output["peeringStatus"]); + if (output[_pSee] != null) { + contents[_PSe] = __expectString(output[_pSee]); } - if (output["userId"] !== undefined) { - contents.UserId = __expectString(output["userId"]); + if (output[_uI] != null) { + contents[_UIs] = __expectString(output[_uI]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["vpcPeeringConnectionId"] !== undefined) { - contents.VpcPeeringConnectionId = __expectString(output["vpcPeeringConnectionId"]); + if (output[_vPCI] != null) { + contents[_VPCI] = __expectString(output[_vPCI]); } return contents; }; @@ -89206,14 +87968,14 @@ const de_ReferencedSecurityGroup = (output: any, context: __SerdeContext): Refer */ const de_Region = (output: any, context: __SerdeContext): Region => { const contents: any = {}; - if (output["regionEndpoint"] !== undefined) { - contents.Endpoint = __expectString(output["regionEndpoint"]); + if (output[_rEe] != null) { + contents[_Endp] = __expectString(output[_rEe]); } - if (output["regionName"] !== undefined) { - contents.RegionName = __expectString(output["regionName"]); + if (output[_rNe] != null) { + contents[_RN] = __expectString(output[_rNe]); } - if (output["optInStatus"] !== undefined) { - contents.OptInStatus = __expectString(output["optInStatus"]); + if (output[_oIS] != null) { + contents[_OIS] = __expectString(output[_oIS]); } return contents; }; @@ -89234,8 +87996,8 @@ const de_RegionList = (output: any, context: __SerdeContext): Region[] => { */ const de_RegisterImageResult = (output: any, context: __SerdeContext): RegisterImageResult => { const contents: any = {}; - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } return contents; }; @@ -89248,8 +88010,8 @@ const de_RegisterInstanceEventNotificationAttributesResult = ( context: __SerdeContext ): RegisterInstanceEventNotificationAttributesResult => { const contents: any = {}; - if (output["instanceTagAttribute"] !== undefined) { - contents.InstanceTagAttribute = de_InstanceTagNotificationAttribute(output["instanceTagAttribute"], context); + if (output[_iTA] != null) { + contents[_ITA] = de_InstanceTagNotificationAttribute(output[_iTA], context); } return contents; }; @@ -89262,11 +88024,8 @@ const de_RegisterTransitGatewayMulticastGroupMembersResult = ( context: __SerdeContext ): RegisterTransitGatewayMulticastGroupMembersResult => { const contents: any = {}; - if (output["registeredMulticastGroupMembers"] !== undefined) { - contents.RegisteredMulticastGroupMembers = de_TransitGatewayMulticastRegisteredGroupMembers( - output["registeredMulticastGroupMembers"], - context - ); + if (output[_rMGM] != null) { + contents[_RMGM] = de_TransitGatewayMulticastRegisteredGroupMembers(output[_rMGM], context); } return contents; }; @@ -89279,11 +88038,8 @@ const de_RegisterTransitGatewayMulticastGroupSourcesResult = ( context: __SerdeContext ): RegisterTransitGatewayMulticastGroupSourcesResult => { const contents: any = {}; - if (output["registeredMulticastGroupSources"] !== undefined) { - contents.RegisteredMulticastGroupSources = de_TransitGatewayMulticastRegisteredGroupSources( - output["registeredMulticastGroupSources"], - context - ); + if (output[_rMGS] != null) { + contents[_RMGS] = de_TransitGatewayMulticastRegisteredGroupSources(output[_rMGS], context); } return contents; }; @@ -89296,8 +88052,8 @@ const de_RejectTransitGatewayMulticastDomainAssociationsResult = ( context: __SerdeContext ): RejectTransitGatewayMulticastDomainAssociationsResult => { const contents: any = {}; - if (output["associations"] !== undefined) { - contents.Associations = de_TransitGatewayMulticastDomainAssociations(output["associations"], context); + if (output[_a] != null) { + contents[_Ass] = de_TransitGatewayMulticastDomainAssociations(output[_a], context); } return contents; }; @@ -89310,11 +88066,8 @@ const de_RejectTransitGatewayPeeringAttachmentResult = ( context: __SerdeContext ): RejectTransitGatewayPeeringAttachmentResult => { const contents: any = {}; - if (output["transitGatewayPeeringAttachment"] !== undefined) { - contents.TransitGatewayPeeringAttachment = de_TransitGatewayPeeringAttachment( - output["transitGatewayPeeringAttachment"], - context - ); + if (output[_tGPA] != null) { + contents[_TGPA] = de_TransitGatewayPeeringAttachment(output[_tGPA], context); } return contents; }; @@ -89327,11 +88080,8 @@ const de_RejectTransitGatewayVpcAttachmentResult = ( context: __SerdeContext ): RejectTransitGatewayVpcAttachmentResult => { const contents: any = {}; - if (output["transitGatewayVpcAttachment"] !== undefined) { - contents.TransitGatewayVpcAttachment = de_TransitGatewayVpcAttachment( - output["transitGatewayVpcAttachment"], - context - ); + if (output[_tGVA] != null) { + contents[_TGVA] = de_TransitGatewayVpcAttachment(output[_tGVA], context); } return contents; }; @@ -89345,9 +88095,9 @@ const de_RejectVpcEndpointConnectionsResult = ( ): RejectVpcEndpointConnectionsResult => { const contents: any = {}; if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -89360,8 +88110,8 @@ const de_RejectVpcPeeringConnectionResult = ( context: __SerdeContext ): RejectVpcPeeringConnectionResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -89372,14 +88122,14 @@ const de_RejectVpcPeeringConnectionResult = ( const de_ReleaseHostsResult = (output: any, context: __SerdeContext): ReleaseHostsResult => { const contents: any = {}; if (output.successful === "") { - contents.Successful = []; - } else if (output["successful"] !== undefined && output["successful"]["item"] !== undefined) { - contents.Successful = de_ResponseHostIdList(__getArrayIfSingleItem(output["successful"]["item"]), context); + contents[_Suc] = []; + } else if (output[_suc] != null && output[_suc][_i] != null) { + contents[_Suc] = de_ResponseHostIdList(__getArrayIfSingleItem(output[_suc][_i]), context); } if (output.unsuccessful === "") { - contents.Unsuccessful = []; - } else if (output["unsuccessful"] !== undefined && output["unsuccessful"]["item"] !== undefined) { - contents.Unsuccessful = de_UnsuccessfulItemList(__getArrayIfSingleItem(output["unsuccessful"]["item"]), context); + contents[_Un] = []; + } else if (output[_u] != null && output[_u][_i] != null) { + contents[_Un] = de_UnsuccessfulItemList(__getArrayIfSingleItem(output[_u][_i]), context); } return contents; }; @@ -89389,8 +88139,8 @@ const de_ReleaseHostsResult = (output: any, context: __SerdeContext): ReleaseHos */ const de_ReleaseIpamPoolAllocationResult = (output: any, context: __SerdeContext): ReleaseIpamPoolAllocationResult => { const contents: any = {}; - if (output["success"] !== undefined) { - contents.Success = __parseBoolean(output["success"]); + if (output[_succ] != null) { + contents[_Succ] = __parseBoolean(output[_succ]); } return contents; }; @@ -89403,11 +88153,8 @@ const de_ReplaceIamInstanceProfileAssociationResult = ( context: __SerdeContext ): ReplaceIamInstanceProfileAssociationResult => { const contents: any = {}; - if (output["iamInstanceProfileAssociation"] !== undefined) { - contents.IamInstanceProfileAssociation = de_IamInstanceProfileAssociation( - output["iamInstanceProfileAssociation"], - context - ); + if (output[_iIPA] != null) { + contents[_IIPA] = de_IamInstanceProfileAssociation(output[_iIPA], context); } return contents; }; @@ -89420,8 +88167,8 @@ const de_ReplaceNetworkAclAssociationResult = ( context: __SerdeContext ): ReplaceNetworkAclAssociationResult => { const contents: any = {}; - if (output["newAssociationId"] !== undefined) { - contents.NewAssociationId = __expectString(output["newAssociationId"]); + if (output[_nAIe] != null) { + contents[_NAIew] = __expectString(output[_nAIe]); } return contents; }; @@ -89431,34 +88178,34 @@ const de_ReplaceNetworkAclAssociationResult = ( */ const de_ReplaceRootVolumeTask = (output: any, context: __SerdeContext): ReplaceRootVolumeTask => { const contents: any = {}; - if (output["replaceRootVolumeTaskId"] !== undefined) { - contents.ReplaceRootVolumeTaskId = __expectString(output["replaceRootVolumeTaskId"]); + if (output[_rRVTI] != null) { + contents[_RRVTIe] = __expectString(output[_rRVTI]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["taskState"] !== undefined) { - contents.TaskState = __expectString(output["taskState"]); + if (output[_tSas] != null) { + contents[_TSas] = __expectString(output[_tSas]); } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectString(output["startTime"]); + if (output[_sT] != null) { + contents[_STt] = __expectString(output[_sT]); } - if (output["completeTime"] !== undefined) { - contents.CompleteTime = __expectString(output["completeTime"]); + if (output[_cTom] != null) { + contents[_CTom] = __expectString(output[_cTom]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["deleteReplacedRootVolume"] !== undefined) { - contents.DeleteReplacedRootVolume = __parseBoolean(output["deleteReplacedRootVolume"]); + if (output[_dRRV] != null) { + contents[_DRRV] = __parseBoolean(output[_dRRV]); } return contents; }; @@ -89482,11 +88229,11 @@ const de_ReplaceRouteTableAssociationResult = ( context: __SerdeContext ): ReplaceRouteTableAssociationResult => { const contents: any = {}; - if (output["newAssociationId"] !== undefined) { - contents.NewAssociationId = __expectString(output["newAssociationId"]); + if (output[_nAIe] != null) { + contents[_NAIew] = __expectString(output[_nAIe]); } - if (output["associationState"] !== undefined) { - contents.AssociationState = de_RouteTableAssociationState(output["associationState"], context); + if (output[_aS] != null) { + contents[_ASs] = de_RouteTableAssociationState(output[_aS], context); } return contents; }; @@ -89499,8 +88246,8 @@ const de_ReplaceTransitGatewayRouteResult = ( context: __SerdeContext ): ReplaceTransitGatewayRouteResult => { const contents: any = {}; - if (output["route"] !== undefined) { - contents.Route = de_TransitGatewayRoute(output["route"], context); + if (output[_ro] != null) { + contents[_Ro] = de_TransitGatewayRoute(output[_ro], context); } return contents; }; @@ -89510,8 +88257,8 @@ const de_ReplaceTransitGatewayRouteResult = ( */ const de_ReplaceVpnTunnelResult = (output: any, context: __SerdeContext): ReplaceVpnTunnelResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -89521,8 +88268,8 @@ const de_ReplaceVpnTunnelResult = (output: any, context: __SerdeContext): Replac */ const de_RequestSpotFleetResponse = (output: any, context: __SerdeContext): RequestSpotFleetResponse => { const contents: any = {}; - if (output["spotFleetRequestId"] !== undefined) { - contents.SpotFleetRequestId = __expectString(output["spotFleetRequestId"]); + if (output[_sFRI] != null) { + contents[_SFRIp] = __expectString(output[_sFRI]); } return contents; }; @@ -89533,12 +88280,9 @@ const de_RequestSpotFleetResponse = (output: any, context: __SerdeContext): Requ const de_RequestSpotInstancesResult = (output: any, context: __SerdeContext): RequestSpotInstancesResult => { const contents: any = {}; if (output.spotInstanceRequestSet === "") { - contents.SpotInstanceRequests = []; - } else if (output["spotInstanceRequestSet"] !== undefined && output["spotInstanceRequestSet"]["item"] !== undefined) { - contents.SpotInstanceRequests = de_SpotInstanceRequestList( - __getArrayIfSingleItem(output["spotInstanceRequestSet"]["item"]), - context - ); + contents[_SIR] = []; + } else if (output[_sIRS] != null && output[_sIRS][_i] != null) { + contents[_SIR] = de_SpotInstanceRequestList(__getArrayIfSingleItem(output[_sIRS][_i]), context); } return contents; }; @@ -89549,23 +88293,23 @@ const de_RequestSpotInstancesResult = (output: any, context: __SerdeContext): Re const de_Reservation = (output: any, context: __SerdeContext): Reservation => { const contents: any = {}; if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.Groups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } if (output.instancesSet === "") { - contents.Instances = []; - } else if (output["instancesSet"] !== undefined && output["instancesSet"]["item"] !== undefined) { - contents.Instances = de_InstanceList(__getArrayIfSingleItem(output["instancesSet"]["item"]), context); + contents[_In] = []; + } else if (output[_iSn] != null && output[_iSn][_i] != null) { + contents[_In] = de_InstanceList(__getArrayIfSingleItem(output[_iSn][_i]), context); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["requesterId"] !== undefined) { - contents.RequesterId = __expectString(output["requesterId"]); + if (output[_rIeq] != null) { + contents[_RIeq] = __expectString(output[_rIeq]); } - if (output["reservationId"] !== undefined) { - contents.ReservationId = __expectString(output["reservationId"]); + if (output[_rIes] != null) { + contents[_RIeser] = __expectString(output[_rIes]); } return contents; }; @@ -89586,14 +88330,14 @@ const de_ReservationList = (output: any, context: __SerdeContext): Reservation[] */ const de_ReservationValue = (output: any, context: __SerdeContext): ReservationValue => { const contents: any = {}; - if (output["hourlyPrice"] !== undefined) { - contents.HourlyPrice = __expectString(output["hourlyPrice"]); + if (output[_hPo] != null) { + contents[_HPo] = __expectString(output[_hPo]); } - if (output["remainingTotalValue"] !== undefined) { - contents.RemainingTotalValue = __expectString(output["remainingTotalValue"]); + if (output[_rTV] != null) { + contents[_RTV] = __expectString(output[_rTV]); } - if (output["remainingUpfrontValue"] !== undefined) { - contents.RemainingUpfrontValue = __expectString(output["remainingUpfrontValue"]); + if (output[_rUV] != null) { + contents[_RUV] = __expectString(output[_rUV]); } return contents; }; @@ -89606,11 +88350,11 @@ const de_ReservedInstanceReservationValue = ( context: __SerdeContext ): ReservedInstanceReservationValue => { const contents: any = {}; - if (output["reservationValue"] !== undefined) { - contents.ReservationValue = de_ReservationValue(output["reservationValue"], context); + if (output[_rVe] != null) { + contents[_RVe] = de_ReservationValue(output[_rVe], context); } - if (output["reservedInstanceId"] !== undefined) { - contents.ReservedInstanceId = __expectString(output["reservedInstanceId"]); + if (output[_rIIe] != null) { + contents[_RIIese] = __expectString(output[_rIIe]); } return contents; }; @@ -89634,66 +88378,63 @@ const de_ReservedInstanceReservationValueSet = ( */ const de_ReservedInstances = (output: any, context: __SerdeContext): ReservedInstances => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["duration"] !== undefined) { - contents.Duration = __strictParseLong(output["duration"]) as number; + if (output[_du] != null) { + contents[_Du] = __strictParseLong(output[_du]) as number; } - if (output["end"] !== undefined) { - contents.End = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["end"])); + if (output[_end] != null) { + contents[_End] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_end])); } - if (output["fixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["fixedPrice"]) as number; + if (output[_fPi] != null) { + contents[_FPi] = __strictParseFloat(output[_fPi]) as number; } - if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; + if (output[_iC] != null) { + contents[_IC] = __strictParseInt32(output[_iC]) as number; } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["productDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["productDescription"]); + if (output[_pDr] != null) { + contents[_PDr] = __expectString(output[_pDr]); } - if (output["reservedInstancesId"] !== undefined) { - contents.ReservedInstancesId = __expectString(output["reservedInstancesId"]); + if (output[_rII] != null) { + contents[_RIIe] = __expectString(output[_rII]); } - if (output["start"] !== undefined) { - contents.Start = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["start"])); + if (output[_star] != null) { + contents[_Star] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_star])); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["usagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["usagePrice"]) as number; + if (output[_uPs] != null) { + contents[_UPs] = __strictParseFloat(output[_uPs]) as number; } - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["instanceTenancy"] !== undefined) { - contents.InstanceTenancy = __expectString(output["instanceTenancy"]); + if (output[_iTns] != null) { + contents[_ITns] = __expectString(output[_iTns]); } - if (output["offeringClass"] !== undefined) { - contents.OfferingClass = __expectString(output["offeringClass"]); + if (output[_oC] != null) { + contents[_OC] = __expectString(output[_oC]); } - if (output["offeringType"] !== undefined) { - contents.OfferingType = __expectString(output["offeringType"]); + if (output[_oTf] != null) { + contents[_OT] = __expectString(output[_oTf]); } if (output.recurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["recurringCharges"] !== undefined && output["recurringCharges"]["item"] !== undefined) { - contents.RecurringCharges = de_RecurringChargesList( - __getArrayIfSingleItem(output["recurringCharges"]["item"]), - context - ); + contents[_RCec] = []; + } else if (output[_rCec] != null && output[_rCec][_i] != null) { + contents[_RCec] = de_RecurringChargesList(__getArrayIfSingleItem(output[_rCec][_i]), context); } - if (output["scope"] !== undefined) { - contents.Scope = __expectString(output["scope"]); + if (output[_sc] != null) { + contents[_Sc] = __expectString(output[_sc]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -89703,20 +88444,20 @@ const de_ReservedInstances = (output: any, context: __SerdeContext): ReservedIns */ const de_ReservedInstancesConfiguration = (output: any, context: __SerdeContext): ReservedInstancesConfiguration => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; + if (output[_iC] != null) { + contents[_IC] = __strictParseInt32(output[_iC]) as number; } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["scope"] !== undefined) { - contents.Scope = __expectString(output["scope"]); + if (output[_sc] != null) { + contents[_Sc] = __expectString(output[_sc]); } return contents; }; @@ -89726,8 +88467,8 @@ const de_ReservedInstancesConfiguration = (output: any, context: __SerdeContext) */ const de_ReservedInstancesId = (output: any, context: __SerdeContext): ReservedInstancesId => { const contents: any = {}; - if (output["reservedInstancesId"] !== undefined) { - contents.ReservedInstancesId = __expectString(output["reservedInstancesId"]); + if (output[_rII] != null) { + contents[_RIIe] = __expectString(output[_rII]); } return contents; }; @@ -89748,41 +88489,41 @@ const de_ReservedInstancesList = (output: any, context: __SerdeContext): Reserve */ const de_ReservedInstancesListing = (output: any, context: __SerdeContext): ReservedInstancesListing => { const contents: any = {}; - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["createDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createDate"])); + if (output[_cD] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cD])); } if (output.instanceCounts === "") { - contents.InstanceCounts = []; - } else if (output["instanceCounts"] !== undefined && output["instanceCounts"]["item"] !== undefined) { - contents.InstanceCounts = de_InstanceCountList(__getArrayIfSingleItem(output["instanceCounts"]["item"]), context); + contents[_ICn] = []; + } else if (output[_iCn] != null && output[_iCn][_i] != null) { + contents[_ICn] = de_InstanceCountList(__getArrayIfSingleItem(output[_iCn][_i]), context); } if (output.priceSchedules === "") { - contents.PriceSchedules = []; - } else if (output["priceSchedules"] !== undefined && output["priceSchedules"]["item"] !== undefined) { - contents.PriceSchedules = de_PriceScheduleList(__getArrayIfSingleItem(output["priceSchedules"]["item"]), context); + contents[_PS] = []; + } else if (output[_pSri] != null && output[_pSri][_i] != null) { + contents[_PS] = de_PriceScheduleList(__getArrayIfSingleItem(output[_pSri][_i]), context); } - if (output["reservedInstancesId"] !== undefined) { - contents.ReservedInstancesId = __expectString(output["reservedInstancesId"]); + if (output[_rII] != null) { + contents[_RIIe] = __expectString(output[_rII]); } - if (output["reservedInstancesListingId"] !== undefined) { - contents.ReservedInstancesListingId = __expectString(output["reservedInstancesListingId"]); + if (output[_rILI] != null) { + contents[_RILI] = __expectString(output[_rILI]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["updateDate"] !== undefined) { - contents.UpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["updateDate"])); + if (output[_uDpd] != null) { + contents[_UDpd] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uDpd])); } return contents; }; @@ -89803,42 +88544,36 @@ const de_ReservedInstancesListingList = (output: any, context: __SerdeContext): */ const de_ReservedInstancesModification = (output: any, context: __SerdeContext): ReservedInstancesModification => { const contents: any = {}; - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["createDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createDate"])); + if (output[_cD] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cD])); } - if (output["effectiveDate"] !== undefined) { - contents.EffectiveDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["effectiveDate"])); + if (output[_eDf] != null) { + contents[_EDf] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eDf])); } if (output.modificationResultSet === "") { - contents.ModificationResults = []; - } else if (output["modificationResultSet"] !== undefined && output["modificationResultSet"]["item"] !== undefined) { - contents.ModificationResults = de_ReservedInstancesModificationResultList( - __getArrayIfSingleItem(output["modificationResultSet"]["item"]), - context - ); + contents[_MRo] = []; + } else if (output[_mRS] != null && output[_mRS][_i] != null) { + contents[_MRo] = de_ReservedInstancesModificationResultList(__getArrayIfSingleItem(output[_mRS][_i]), context); } if (output.reservedInstancesSet === "") { - contents.ReservedInstancesIds = []; - } else if (output["reservedInstancesSet"] !== undefined && output["reservedInstancesSet"]["item"] !== undefined) { - contents.ReservedInstancesIds = de_ReservedIntancesIds( - __getArrayIfSingleItem(output["reservedInstancesSet"]["item"]), - context - ); + contents[_RIIes] = []; + } else if (output[_rIS] != null && output[_rIS][_i] != null) { + contents[_RIIes] = de_ReservedIntancesIds(__getArrayIfSingleItem(output[_rIS][_i]), context); } - if (output["reservedInstancesModificationId"] !== undefined) { - contents.ReservedInstancesModificationId = __expectString(output["reservedInstancesModificationId"]); + if (output[_rIMI] != null) { + contents[_RIMIe] = __expectString(output[_rIMI]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["updateDate"] !== undefined) { - contents.UpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["updateDate"])); + if (output[_uDpd] != null) { + contents[_UDpd] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uDpd])); } return contents; }; @@ -89865,11 +88600,11 @@ const de_ReservedInstancesModificationResult = ( context: __SerdeContext ): ReservedInstancesModificationResult => { const contents: any = {}; - if (output["reservedInstancesId"] !== undefined) { - contents.ReservedInstancesId = __expectString(output["reservedInstancesId"]); + if (output[_rII] != null) { + contents[_RIIe] = __expectString(output[_rII]); } - if (output["targetConfiguration"] !== undefined) { - contents.TargetConfiguration = de_ReservedInstancesConfiguration(output["targetConfiguration"], context); + if (output[_tCa] != null) { + contents[_TCar] = de_ReservedInstancesConfiguration(output[_tCa], context); } return contents; }; @@ -89893,60 +88628,54 @@ const de_ReservedInstancesModificationResultList = ( */ const de_ReservedInstancesOffering = (output: any, context: __SerdeContext): ReservedInstancesOffering => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["duration"] !== undefined) { - contents.Duration = __strictParseLong(output["duration"]) as number; + if (output[_du] != null) { + contents[_Du] = __strictParseLong(output[_du]) as number; } - if (output["fixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["fixedPrice"]) as number; + if (output[_fPi] != null) { + contents[_FPi] = __strictParseFloat(output[_fPi]) as number; } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["productDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["productDescription"]); + if (output[_pDr] != null) { + contents[_PDr] = __expectString(output[_pDr]); } - if (output["reservedInstancesOfferingId"] !== undefined) { - contents.ReservedInstancesOfferingId = __expectString(output["reservedInstancesOfferingId"]); + if (output[_rIOI] != null) { + contents[_RIOIe] = __expectString(output[_rIOI]); } - if (output["usagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["usagePrice"]) as number; + if (output[_uPs] != null) { + contents[_UPs] = __strictParseFloat(output[_uPs]) as number; } - if (output["currencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["currencyCode"]); + if (output[_cC] != null) { + contents[_CCu] = __expectString(output[_cC]); } - if (output["instanceTenancy"] !== undefined) { - contents.InstanceTenancy = __expectString(output["instanceTenancy"]); + if (output[_iTns] != null) { + contents[_ITns] = __expectString(output[_iTns]); } - if (output["marketplace"] !== undefined) { - contents.Marketplace = __parseBoolean(output["marketplace"]); + if (output[_mar] != null) { + contents[_Mar] = __parseBoolean(output[_mar]); } - if (output["offeringClass"] !== undefined) { - contents.OfferingClass = __expectString(output["offeringClass"]); + if (output[_oC] != null) { + contents[_OC] = __expectString(output[_oC]); } - if (output["offeringType"] !== undefined) { - contents.OfferingType = __expectString(output["offeringType"]); + if (output[_oTf] != null) { + contents[_OT] = __expectString(output[_oTf]); } if (output.pricingDetailsSet === "") { - contents.PricingDetails = []; - } else if (output["pricingDetailsSet"] !== undefined && output["pricingDetailsSet"]["item"] !== undefined) { - contents.PricingDetails = de_PricingDetailsList( - __getArrayIfSingleItem(output["pricingDetailsSet"]["item"]), - context - ); + contents[_PDri] = []; + } else if (output[_pDS] != null && output[_pDS][_i] != null) { + contents[_PDri] = de_PricingDetailsList(__getArrayIfSingleItem(output[_pDS][_i]), context); } if (output.recurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["recurringCharges"] !== undefined && output["recurringCharges"]["item"] !== undefined) { - contents.RecurringCharges = de_RecurringChargesList( - __getArrayIfSingleItem(output["recurringCharges"]["item"]), - context - ); + contents[_RCec] = []; + } else if (output[_rCec] != null && output[_rCec][_i] != null) { + contents[_RCec] = de_RecurringChargesList(__getArrayIfSingleItem(output[_rCec][_i]), context); } - if (output["scope"] !== undefined) { - contents.Scope = __expectString(output["scope"]); + if (output[_sc] != null) { + contents[_Sc] = __expectString(output[_sc]); } return contents; }; @@ -89978,8 +88707,8 @@ const de_ReservedIntancesIds = (output: any, context: __SerdeContext): ReservedI */ const de_ResetAddressAttributeResult = (output: any, context: __SerdeContext): ResetAddressAttributeResult => { const contents: any = {}; - if (output["address"] !== undefined) { - contents.Address = de_AddressAttribute(output["address"], context); + if (output[_ad] != null) { + contents[_Ad] = de_AddressAttribute(output[_ad], context); } return contents; }; @@ -89989,8 +88718,8 @@ const de_ResetAddressAttributeResult = (output: any, context: __SerdeContext): R */ const de_ResetEbsDefaultKmsKeyIdResult = (output: any, context: __SerdeContext): ResetEbsDefaultKmsKeyIdResult => { const contents: any = {}; - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } return contents; }; @@ -90000,8 +88729,8 @@ const de_ResetEbsDefaultKmsKeyIdResult = (output: any, context: __SerdeContext): */ const de_ResetFpgaImageAttributeResult = (output: any, context: __SerdeContext): ResetFpgaImageAttributeResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -90012,14 +88741,14 @@ const de_ResetFpgaImageAttributeResult = (output: any, context: __SerdeContext): const de_ResourceStatement = (output: any, context: __SerdeContext): ResourceStatement => { const contents: any = {}; if (output.resourceSet === "") { - contents.Resources = []; - } else if (output["resourceSet"] !== undefined && output["resourceSet"]["item"] !== undefined) { - contents.Resources = de_ValueStringList(__getArrayIfSingleItem(output["resourceSet"]["item"]), context); + contents[_R] = []; + } else if (output[_rSeso] != null && output[_rSeso][_i] != null) { + contents[_R] = de_ValueStringList(__getArrayIfSingleItem(output[_rSeso][_i]), context); } if (output.resourceTypeSet === "") { - contents.ResourceTypes = []; - } else if (output["resourceTypeSet"] !== undefined && output["resourceTypeSet"]["item"] !== undefined) { - contents.ResourceTypes = de_ValueStringList(__getArrayIfSingleItem(output["resourceTypeSet"]["item"]), context); + contents[_RTeso] = []; + } else if (output[_rTSes] != null && output[_rTSes][_i] != null) { + contents[_RTeso] = de_ValueStringList(__getArrayIfSingleItem(output[_rTSes][_i]), context); } return contents; }; @@ -90029,11 +88758,11 @@ const de_ResourceStatement = (output: any, context: __SerdeContext): ResourceSta */ const de_ResponseError = (output: any, context: __SerdeContext): ResponseError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -90065,147 +88794,120 @@ const de_ResponseHostIdSet = (output: any, context: __SerdeContext): string[] => */ const de_ResponseLaunchTemplateData = (output: any, context: __SerdeContext): ResponseLaunchTemplateData => { const contents: any = {}; - if (output["kernelId"] !== undefined) { - contents.KernelId = __expectString(output["kernelId"]); + if (output[_kI] != null) { + contents[_KI] = __expectString(output[_kI]); } - if (output["ebsOptimized"] !== undefined) { - contents.EbsOptimized = __parseBoolean(output["ebsOptimized"]); + if (output[_eO] != null) { + contents[_EO] = __parseBoolean(output[_eO]); } - if (output["iamInstanceProfile"] !== undefined) { - contents.IamInstanceProfile = de_LaunchTemplateIamInstanceProfileSpecification( - output["iamInstanceProfile"], - context - ); + if (output[_iIP] != null) { + contents[_IIP] = de_LaunchTemplateIamInstanceProfileSpecification(output[_iIP], context); } if (output.blockDeviceMappingSet === "") { - contents.BlockDeviceMappings = []; - } else if (output["blockDeviceMappingSet"] !== undefined && output["blockDeviceMappingSet"]["item"] !== undefined) { - contents.BlockDeviceMappings = de_LaunchTemplateBlockDeviceMappingList( - __getArrayIfSingleItem(output["blockDeviceMappingSet"]["item"]), - context - ); + contents[_BDM] = []; + } else if (output[_bDMS] != null && output[_bDMS][_i] != null) { + contents[_BDM] = de_LaunchTemplateBlockDeviceMappingList(__getArrayIfSingleItem(output[_bDMS][_i]), context); } if (output.networkInterfaceSet === "") { - contents.NetworkInterfaces = []; - } else if (output["networkInterfaceSet"] !== undefined && output["networkInterfaceSet"]["item"] !== undefined) { - contents.NetworkInterfaces = de_LaunchTemplateInstanceNetworkInterfaceSpecificationList( - __getArrayIfSingleItem(output["networkInterfaceSet"]["item"]), + contents[_NI] = []; + } else if (output[_nIS] != null && output[_nIS][_i] != null) { + contents[_NI] = de_LaunchTemplateInstanceNetworkInterfaceSpecificationList( + __getArrayIfSingleItem(output[_nIS][_i]), context ); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["keyName"] !== undefined) { - contents.KeyName = __expectString(output["keyName"]); + if (output[_kN] != null) { + contents[_KN] = __expectString(output[_kN]); } - if (output["monitoring"] !== undefined) { - contents.Monitoring = de_LaunchTemplatesMonitoring(output["monitoring"], context); + if (output[_mo] != null) { + contents[_Mon] = de_LaunchTemplatesMonitoring(output[_mo], context); } - if (output["placement"] !== undefined) { - contents.Placement = de_LaunchTemplatePlacement(output["placement"], context); + if (output[_pla] != null) { + contents[_Pl] = de_LaunchTemplatePlacement(output[_pla], context); } - if (output["ramDiskId"] !== undefined) { - contents.RamDiskId = __expectString(output["ramDiskId"]); + if (output[_rDI] != null) { + contents[_RDI] = __expectString(output[_rDI]); } - if (output["disableApiTermination"] !== undefined) { - contents.DisableApiTermination = __parseBoolean(output["disableApiTermination"]); + if (output[_dAT] != null) { + contents[_DATis] = __parseBoolean(output[_dAT]); } - if (output["instanceInitiatedShutdownBehavior"] !== undefined) { - contents.InstanceInitiatedShutdownBehavior = __expectString(output["instanceInitiatedShutdownBehavior"]); + if (output[_iISB] != null) { + contents[_IISB] = __expectString(output[_iISB]); } - if (output["userData"] !== undefined) { - contents.UserData = __expectString(output["userData"]); + if (output[_uDs] != null) { + contents[_UD] = __expectString(output[_uDs]); } if (output.tagSpecificationSet === "") { - contents.TagSpecifications = []; - } else if (output["tagSpecificationSet"] !== undefined && output["tagSpecificationSet"]["item"] !== undefined) { - contents.TagSpecifications = de_LaunchTemplateTagSpecificationList( - __getArrayIfSingleItem(output["tagSpecificationSet"]["item"]), - context - ); + contents[_TS] = []; + } else if (output[_tSS] != null && output[_tSS][_i] != null) { + contents[_TS] = de_LaunchTemplateTagSpecificationList(__getArrayIfSingleItem(output[_tSS][_i]), context); } if (output.elasticGpuSpecificationSet === "") { - contents.ElasticGpuSpecifications = []; - } else if ( - output["elasticGpuSpecificationSet"] !== undefined && - output["elasticGpuSpecificationSet"]["item"] !== undefined - ) { - contents.ElasticGpuSpecifications = de_ElasticGpuSpecificationResponseList( - __getArrayIfSingleItem(output["elasticGpuSpecificationSet"]["item"]), - context - ); + contents[_EGS] = []; + } else if (output[_eGSS] != null && output[_eGSS][_i] != null) { + contents[_EGS] = de_ElasticGpuSpecificationResponseList(__getArrayIfSingleItem(output[_eGSS][_i]), context); } if (output.elasticInferenceAcceleratorSet === "") { - contents.ElasticInferenceAccelerators = []; - } else if ( - output["elasticInferenceAcceleratorSet"] !== undefined && - output["elasticInferenceAcceleratorSet"]["item"] !== undefined - ) { - contents.ElasticInferenceAccelerators = de_LaunchTemplateElasticInferenceAcceleratorResponseList( - __getArrayIfSingleItem(output["elasticInferenceAcceleratorSet"]["item"]), + contents[_EIA] = []; + } else if (output[_eIAS] != null && output[_eIAS][_i] != null) { + contents[_EIA] = de_LaunchTemplateElasticInferenceAcceleratorResponseList( + __getArrayIfSingleItem(output[_eIAS][_i]), context ); } if (output.securityGroupIdSet === "") { - contents.SecurityGroupIds = []; - } else if (output["securityGroupIdSet"] !== undefined && output["securityGroupIdSet"]["item"] !== undefined) { - contents.SecurityGroupIds = de_ValueStringList( - __getArrayIfSingleItem(output["securityGroupIdSet"]["item"]), - context - ); + contents[_SGI] = []; + } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { + contents[_SGI] = de_ValueStringList(__getArrayIfSingleItem(output[_sGIS][_i]), context); } if (output.securityGroupSet === "") { - contents.SecurityGroups = []; - } else if (output["securityGroupSet"] !== undefined && output["securityGroupSet"]["item"] !== undefined) { - contents.SecurityGroups = de_ValueStringList(__getArrayIfSingleItem(output["securityGroupSet"]["item"]), context); + contents[_SG] = []; + } else if (output[_sGS] != null && output[_sGS][_i] != null) { + contents[_SG] = de_ValueStringList(__getArrayIfSingleItem(output[_sGS][_i]), context); } - if (output["instanceMarketOptions"] !== undefined) { - contents.InstanceMarketOptions = de_LaunchTemplateInstanceMarketOptions(output["instanceMarketOptions"], context); + if (output[_iMOn] != null) { + contents[_IMO] = de_LaunchTemplateInstanceMarketOptions(output[_iMOn], context); } - if (output["creditSpecification"] !== undefined) { - contents.CreditSpecification = de_CreditSpecification(output["creditSpecification"], context); + if (output[_cSr] != null) { + contents[_CSred] = de_CreditSpecification(output[_cSr], context); } - if (output["cpuOptions"] !== undefined) { - contents.CpuOptions = de_LaunchTemplateCpuOptions(output["cpuOptions"], context); + if (output[_cO] != null) { + contents[_CO] = de_LaunchTemplateCpuOptions(output[_cO], context); } - if (output["capacityReservationSpecification"] !== undefined) { - contents.CapacityReservationSpecification = de_LaunchTemplateCapacityReservationSpecificationResponse( - output["capacityReservationSpecification"], - context - ); + if (output[_cRSa] != null) { + contents[_CRS] = de_LaunchTemplateCapacityReservationSpecificationResponse(output[_cRSa], context); } if (output.licenseSet === "") { - contents.LicenseSpecifications = []; - } else if (output["licenseSet"] !== undefined && output["licenseSet"]["item"] !== undefined) { - contents.LicenseSpecifications = de_LaunchTemplateLicenseList( - __getArrayIfSingleItem(output["licenseSet"]["item"]), - context - ); + contents[_LSi] = []; + } else if (output[_lSi] != null && output[_lSi][_i] != null) { + contents[_LSi] = de_LaunchTemplateLicenseList(__getArrayIfSingleItem(output[_lSi][_i]), context); } - if (output["hibernationOptions"] !== undefined) { - contents.HibernationOptions = de_LaunchTemplateHibernationOptions(output["hibernationOptions"], context); + if (output[_hO] != null) { + contents[_HO] = de_LaunchTemplateHibernationOptions(output[_hO], context); } - if (output["metadataOptions"] !== undefined) { - contents.MetadataOptions = de_LaunchTemplateInstanceMetadataOptions(output["metadataOptions"], context); + if (output[_mO] != null) { + contents[_MO] = de_LaunchTemplateInstanceMetadataOptions(output[_mO], context); } - if (output["enclaveOptions"] !== undefined) { - contents.EnclaveOptions = de_LaunchTemplateEnclaveOptions(output["enclaveOptions"], context); + if (output[_eOn] != null) { + contents[_EOn] = de_LaunchTemplateEnclaveOptions(output[_eOn], context); } - if (output["instanceRequirements"] !== undefined) { - contents.InstanceRequirements = de_InstanceRequirements(output["instanceRequirements"], context); + if (output[_iR] != null) { + contents[_IR] = de_InstanceRequirements(output[_iR], context); } - if (output["privateDnsNameOptions"] !== undefined) { - contents.PrivateDnsNameOptions = de_LaunchTemplatePrivateDnsNameOptions(output["privateDnsNameOptions"], context); + if (output[_pDNO] != null) { + contents[_PDNO] = de_LaunchTemplatePrivateDnsNameOptions(output[_pDNO], context); } - if (output["maintenanceOptions"] !== undefined) { - contents.MaintenanceOptions = de_LaunchTemplateInstanceMaintenanceOptions(output["maintenanceOptions"], context); + if (output[_mOa] != null) { + contents[_MOa] = de_LaunchTemplateInstanceMaintenanceOptions(output[_mOa], context); } - if (output["disableApiStop"] !== undefined) { - contents.DisableApiStop = __parseBoolean(output["disableApiStop"]); + if (output[_dASi] != null) { + contents[_DAS] = __parseBoolean(output[_dASi]); } return contents; }; @@ -90215,11 +88917,11 @@ const de_ResponseLaunchTemplateData = (output: any, context: __SerdeContext): Re */ const de_RestoreAddressToClassicResult = (output: any, context: __SerdeContext): RestoreAddressToClassicResult => { const contents: any = {}; - if (output["publicIp"] !== undefined) { - contents.PublicIp = __expectString(output["publicIp"]); + if (output[_pI] != null) { + contents[_PI] = __expectString(output[_pI]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -90232,8 +88934,8 @@ const de_RestoreImageFromRecycleBinResult = ( context: __SerdeContext ): RestoreImageFromRecycleBinResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -90246,8 +88948,8 @@ const de_RestoreManagedPrefixListVersionResult = ( context: __SerdeContext ): RestoreManagedPrefixListVersionResult => { const contents: any = {}; - if (output["prefixList"] !== undefined) { - contents.PrefixList = de_ManagedPrefixList(output["prefixList"], context); + if (output[_pL] != null) { + contents[_PLr] = de_ManagedPrefixList(output[_pL], context); } return contents; }; @@ -90260,38 +88962,38 @@ const de_RestoreSnapshotFromRecycleBinResult = ( context: __SerdeContext ): RestoreSnapshotFromRecycleBinResult => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startTime"])); + if (output[_sT] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } - if (output["status"] !== undefined) { - contents.State = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Stat] = __expectString(output[_sta]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; + if (output[_vSo] != null) { + contents[_VS] = __strictParseInt32(output[_vSo]) as number; } - if (output["sseType"] !== undefined) { - contents.SseType = __expectString(output["sseType"]); + if (output[_sTs] != null) { + contents[_STs] = __expectString(output[_sTs]); } return contents; }; @@ -90301,17 +89003,17 @@ const de_RestoreSnapshotFromRecycleBinResult = ( */ const de_RestoreSnapshotTierResult = (output: any, context: __SerdeContext): RestoreSnapshotTierResult => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["restoreStartTime"] !== undefined) { - contents.RestoreStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["restoreStartTime"])); + if (output[_rST] != null) { + contents[_RSTe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rST])); } - if (output["restoreDuration"] !== undefined) { - contents.RestoreDuration = __strictParseInt32(output["restoreDuration"]) as number; + if (output[_rD] != null) { + contents[_RD] = __strictParseInt32(output[_rD]) as number; } - if (output["isPermanentRestore"] !== undefined) { - contents.IsPermanentRestore = __parseBoolean(output["isPermanentRestore"]); + if (output[_iPR] != null) { + contents[_IPR] = __parseBoolean(output[_iPR]); } return contents; }; @@ -90321,8 +89023,8 @@ const de_RestoreSnapshotTierResult = (output: any, context: __SerdeContext): Res */ const de_RevokeClientVpnIngressResult = (output: any, context: __SerdeContext): RevokeClientVpnIngressResult => { const contents: any = {}; - if (output["status"] !== undefined) { - contents.Status = de_ClientVpnAuthorizationRuleStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_ClientVpnAuthorizationRuleStatus(output[_sta], context); } return contents; }; @@ -90332,16 +89034,13 @@ const de_RevokeClientVpnIngressResult = (output: any, context: __SerdeContext): */ const de_RevokeSecurityGroupEgressResult = (output: any, context: __SerdeContext): RevokeSecurityGroupEgressResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } if (output.unknownIpPermissionSet === "") { - contents.UnknownIpPermissions = []; - } else if (output["unknownIpPermissionSet"] !== undefined && output["unknownIpPermissionSet"]["item"] !== undefined) { - contents.UnknownIpPermissions = de_IpPermissionList( - __getArrayIfSingleItem(output["unknownIpPermissionSet"]["item"]), - context - ); + contents[_UIP] = []; + } else if (output[_uIPS] != null && output[_uIPS][_i] != null) { + contents[_UIP] = de_IpPermissionList(__getArrayIfSingleItem(output[_uIPS][_i]), context); } return contents; }; @@ -90354,16 +89053,13 @@ const de_RevokeSecurityGroupIngressResult = ( context: __SerdeContext ): RevokeSecurityGroupIngressResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } if (output.unknownIpPermissionSet === "") { - contents.UnknownIpPermissions = []; - } else if (output["unknownIpPermissionSet"] !== undefined && output["unknownIpPermissionSet"]["item"] !== undefined) { - contents.UnknownIpPermissions = de_IpPermissionList( - __getArrayIfSingleItem(output["unknownIpPermissionSet"]["item"]), - context - ); + contents[_UIP] = []; + } else if (output[_uIPS] != null && output[_uIPS][_i] != null) { + contents[_UIP] = de_IpPermissionList(__getArrayIfSingleItem(output[_uIPS][_i]), context); } return contents; }; @@ -90384,53 +89080,53 @@ const de_RootDeviceTypeList = (output: any, context: __SerdeContext): RootDevice */ const de_Route = (output: any, context: __SerdeContext): Route => { const contents: any = {}; - if (output["destinationCidrBlock"] !== undefined) { - contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]); + if (output[_dCB] != null) { + contents[_DCB] = __expectString(output[_dCB]); } - if (output["destinationIpv6CidrBlock"] !== undefined) { - contents.DestinationIpv6CidrBlock = __expectString(output["destinationIpv6CidrBlock"]); + if (output[_dICB] != null) { + contents[_DICB] = __expectString(output[_dICB]); } - if (output["destinationPrefixListId"] !== undefined) { - contents.DestinationPrefixListId = __expectString(output["destinationPrefixListId"]); + if (output[_dPLI] != null) { + contents[_DPLI] = __expectString(output[_dPLI]); } - if (output["egressOnlyInternetGatewayId"] !== undefined) { - contents.EgressOnlyInternetGatewayId = __expectString(output["egressOnlyInternetGatewayId"]); + if (output[_eOIGI] != null) { + contents[_EOIGI] = __expectString(output[_eOIGI]); } - if (output["gatewayId"] !== undefined) { - contents.GatewayId = __expectString(output["gatewayId"]); + if (output[_gI] != null) { + contents[_GI] = __expectString(output[_gI]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["instanceOwnerId"] !== undefined) { - contents.InstanceOwnerId = __expectString(output["instanceOwnerId"]); + if (output[_iOIn] != null) { + contents[_IOIn] = __expectString(output[_iOIn]); } - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["localGatewayId"] !== undefined) { - contents.LocalGatewayId = __expectString(output["localGatewayId"]); + if (output[_lGI] != null) { + contents[_LGI] = __expectString(output[_lGI]); } - if (output["carrierGatewayId"] !== undefined) { - contents.CarrierGatewayId = __expectString(output["carrierGatewayId"]); + if (output[_cGI] != null) { + contents[_CGI] = __expectString(output[_cGI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["origin"] !== undefined) { - contents.Origin = __expectString(output["origin"]); + if (output[_o] != null) { + contents[_Or] = __expectString(output[_o]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["vpcPeeringConnectionId"] !== undefined) { - contents.VpcPeeringConnectionId = __expectString(output["vpcPeeringConnectionId"]); + if (output[_vPCI] != null) { + contents[_VPCI] = __expectString(output[_vPCI]); } - if (output["coreNetworkArn"] !== undefined) { - contents.CoreNetworkArn = __expectString(output["coreNetworkArn"]); + if (output[_cNA] != null) { + contents[_CNAo] = __expectString(output[_cNA]); } return contents; }; @@ -90452,39 +89148,33 @@ const de_RouteList = (output: any, context: __SerdeContext): Route[] => { const de_RouteTable = (output: any, context: __SerdeContext): RouteTable => { const contents: any = {}; if (output.associationSet === "") { - contents.Associations = []; - } else if (output["associationSet"] !== undefined && output["associationSet"]["item"] !== undefined) { - contents.Associations = de_RouteTableAssociationList( - __getArrayIfSingleItem(output["associationSet"]["item"]), - context - ); + contents[_Ass] = []; + } else if (output[_aSss] != null && output[_aSss][_i] != null) { + contents[_Ass] = de_RouteTableAssociationList(__getArrayIfSingleItem(output[_aSss][_i]), context); } if (output.propagatingVgwSet === "") { - contents.PropagatingVgws = []; - } else if (output["propagatingVgwSet"] !== undefined && output["propagatingVgwSet"]["item"] !== undefined) { - contents.PropagatingVgws = de_PropagatingVgwList( - __getArrayIfSingleItem(output["propagatingVgwSet"]["item"]), - context - ); + contents[_PVr] = []; + } else if (output[_pVS] != null && output[_pVS][_i] != null) { + contents[_PVr] = de_PropagatingVgwList(__getArrayIfSingleItem(output[_pVS][_i]), context); } - if (output["routeTableId"] !== undefined) { - contents.RouteTableId = __expectString(output["routeTableId"]); + if (output[_rTI] != null) { + contents[_RTI] = __expectString(output[_rTI]); } if (output.routeSet === "") { - contents.Routes = []; - } else if (output["routeSet"] !== undefined && output["routeSet"]["item"] !== undefined) { - contents.Routes = de_RouteList(__getArrayIfSingleItem(output["routeSet"]["item"]), context); + contents[_Rou] = []; + } else if (output[_rSo] != null && output[_rSo][_i] != null) { + contents[_Rou] = de_RouteList(__getArrayIfSingleItem(output[_rSo][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } return contents; }; @@ -90494,23 +89184,23 @@ const de_RouteTable = (output: any, context: __SerdeContext): RouteTable => { */ const de_RouteTableAssociation = (output: any, context: __SerdeContext): RouteTableAssociation => { const contents: any = {}; - if (output["main"] !== undefined) { - contents.Main = __parseBoolean(output["main"]); + if (output[_mai] != null) { + contents[_Mai] = __parseBoolean(output[_mai]); } - if (output["routeTableAssociationId"] !== undefined) { - contents.RouteTableAssociationId = __expectString(output["routeTableAssociationId"]); + if (output[_rTAI] != null) { + contents[_RTAI] = __expectString(output[_rTAI]); } - if (output["routeTableId"] !== undefined) { - contents.RouteTableId = __expectString(output["routeTableId"]); + if (output[_rTI] != null) { + contents[_RTI] = __expectString(output[_rTI]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["gatewayId"] !== undefined) { - contents.GatewayId = __expectString(output["gatewayId"]); + if (output[_gI] != null) { + contents[_GI] = __expectString(output[_gI]); } - if (output["associationState"] !== undefined) { - contents.AssociationState = de_RouteTableAssociationState(output["associationState"], context); + if (output[_aS] != null) { + contents[_ASs] = de_RouteTableAssociationState(output[_aS], context); } return contents; }; @@ -90531,11 +89221,11 @@ const de_RouteTableAssociationList = (output: any, context: __SerdeContext): Rou */ const de_RouteTableAssociationState = (output: any, context: __SerdeContext): RouteTableAssociationState => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } return contents; }; @@ -90556,13 +89246,13 @@ const de_RouteTableList = (output: any, context: __SerdeContext): RouteTable[] = */ const de_RuleGroupRuleOptionsPair = (output: any, context: __SerdeContext): RuleGroupRuleOptionsPair => { const contents: any = {}; - if (output["ruleGroupArn"] !== undefined) { - contents.RuleGroupArn = __expectString(output["ruleGroupArn"]); + if (output[_rGA] != null) { + contents[_RGA] = __expectString(output[_rGA]); } if (output.ruleOptionSet === "") { - contents.RuleOptions = []; - } else if (output["ruleOptionSet"] !== undefined && output["ruleOptionSet"]["item"] !== undefined) { - contents.RuleOptions = de_RuleOptionList(__getArrayIfSingleItem(output["ruleOptionSet"]["item"]), context); + contents[_ROu] = []; + } else if (output[_rOS] != null && output[_rOS][_i] != null) { + contents[_ROu] = de_RuleOptionList(__getArrayIfSingleItem(output[_rOS][_i]), context); } return contents; }; @@ -90583,11 +89273,11 @@ const de_RuleGroupRuleOptionsPairList = (output: any, context: __SerdeContext): */ const de_RuleGroupTypePair = (output: any, context: __SerdeContext): RuleGroupTypePair => { const contents: any = {}; - if (output["ruleGroupArn"] !== undefined) { - contents.RuleGroupArn = __expectString(output["ruleGroupArn"]); + if (output[_rGA] != null) { + contents[_RGA] = __expectString(output[_rGA]); } - if (output["ruleGroupType"] !== undefined) { - contents.RuleGroupType = __expectString(output["ruleGroupType"]); + if (output[_rGT] != null) { + contents[_RGT] = __expectString(output[_rGT]); } return contents; }; @@ -90608,13 +89298,13 @@ const de_RuleGroupTypePairList = (output: any, context: __SerdeContext): RuleGro */ const de_RuleOption = (output: any, context: __SerdeContext): RuleOption => { const contents: any = {}; - if (output["keyword"] !== undefined) { - contents.Keyword = __expectString(output["keyword"]); + if (output[_key] != null) { + contents[_Key] = __expectString(output[_key]); } if (output.settingSet === "") { - contents.Settings = []; - } else if (output["settingSet"] !== undefined && output["settingSet"]["item"] !== undefined) { - contents.Settings = de_StringList(__getArrayIfSingleItem(output["settingSet"]["item"]), context); + contents[_Set] = []; + } else if (output[_sSe] != null && output[_sSe][_i] != null) { + contents[_Set] = de_StringList(__getArrayIfSingleItem(output[_sSe][_i]), context); } return contents; }; @@ -90635,8 +89325,8 @@ const de_RuleOptionList = (output: any, context: __SerdeContext): RuleOption[] = */ const de_RunInstancesMonitoringEnabled = (output: any, context: __SerdeContext): RunInstancesMonitoringEnabled => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } return contents; }; @@ -90647,9 +89337,9 @@ const de_RunInstancesMonitoringEnabled = (output: any, context: __SerdeContext): const de_RunScheduledInstancesResult = (output: any, context: __SerdeContext): RunScheduledInstancesResult => { const contents: any = {}; if (output.instanceIdSet === "") { - contents.InstanceIdSet = []; - } else if (output["instanceIdSet"] !== undefined && output["instanceIdSet"]["item"] !== undefined) { - contents.InstanceIdSet = de_InstanceIdSet(__getArrayIfSingleItem(output["instanceIdSet"]["item"]), context); + contents[_IIS] = []; + } else if (output[_iIS] != null && output[_iIS][_i] != null) { + contents[_IIS] = de_InstanceIdSet(__getArrayIfSingleItem(output[_iIS][_i]), context); } return contents; }; @@ -90659,20 +89349,20 @@ const de_RunScheduledInstancesResult = (output: any, context: __SerdeContext): R */ const de_S3Storage = (output: any, context: __SerdeContext): S3Storage => { const contents: any = {}; - if (output["AWSAccessKeyId"] !== undefined) { - contents.AWSAccessKeyId = __expectString(output["AWSAccessKeyId"]); + if (output[_AWSAKI] != null) { + contents[_AWSAKI] = __expectString(output[_AWSAKI]); } - if (output["bucket"] !== undefined) { - contents.Bucket = __expectString(output["bucket"]); + if (output[_bu] != null) { + contents[_B] = __expectString(output[_bu]); } - if (output["prefix"] !== undefined) { - contents.Prefix = __expectString(output["prefix"]); + if (output[_pre] != null) { + contents[_Pr] = __expectString(output[_pre]); } - if (output["uploadPolicy"] !== undefined) { - contents.UploadPolicy = context.base64Decoder(output["uploadPolicy"]); + if (output[_uPp] != null) { + contents[_UP] = context.base64Decoder(output[_uPp]); } - if (output["uploadPolicySignature"] !== undefined) { - contents.UploadPolicySignature = __expectString(output["uploadPolicySignature"]); + if (output[_uPS] != null) { + contents[_UPS] = __expectString(output[_uPS]); } return contents; }; @@ -90682,50 +89372,50 @@ const de_S3Storage = (output: any, context: __SerdeContext): S3Storage => { */ const de_ScheduledInstance = (output: any, context: __SerdeContext): ScheduledInstance => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["createDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createDate"])); + if (output[_cD] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cD])); } - if (output["hourlyPrice"] !== undefined) { - contents.HourlyPrice = __expectString(output["hourlyPrice"]); + if (output[_hPo] != null) { + contents[_HPo] = __expectString(output[_hPo]); } - if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; + if (output[_iC] != null) { + contents[_IC] = __strictParseInt32(output[_iC]) as number; } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["networkPlatform"] !== undefined) { - contents.NetworkPlatform = __expectString(output["networkPlatform"]); + if (output[_nPe] != null) { + contents[_NPe] = __expectString(output[_nPe]); } - if (output["nextSlotStartTime"] !== undefined) { - contents.NextSlotStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["nextSlotStartTime"])); + if (output[_nSST] != null) { + contents[_NSST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_nSST])); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["previousSlotEndTime"] !== undefined) { - contents.PreviousSlotEndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["previousSlotEndTime"])); + if (output[_pSET] != null) { + contents[_PSET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_pSET])); } - if (output["recurrence"] !== undefined) { - contents.Recurrence = de_ScheduledInstanceRecurrence(output["recurrence"], context); + if (output[_rec] != null) { + contents[_Rec] = de_ScheduledInstanceRecurrence(output[_rec], context); } - if (output["scheduledInstanceId"] !== undefined) { - contents.ScheduledInstanceId = __expectString(output["scheduledInstanceId"]); + if (output[_sIIc] != null) { + contents[_SIIch] = __expectString(output[_sIIc]); } - if (output["slotDurationInHours"] !== undefined) { - contents.SlotDurationInHours = __strictParseInt32(output["slotDurationInHours"]) as number; + if (output[_sDIH] != null) { + contents[_SDIH] = __strictParseInt32(output[_sDIH]) as number; } - if (output["termEndDate"] !== undefined) { - contents.TermEndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["termEndDate"])); + if (output[_tED] != null) { + contents[_TED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_tED])); } - if (output["termStartDate"] !== undefined) { - contents.TermStartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["termStartDate"])); + if (output[_tSD] != null) { + contents[_TSD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_tSD])); } - if (output["totalScheduledInstanceHours"] !== undefined) { - contents.TotalScheduledInstanceHours = __strictParseInt32(output["totalScheduledInstanceHours"]) as number; + if (output[_tSIH] != null) { + contents[_TSIH] = __strictParseInt32(output[_tSIH]) as number; } return contents; }; @@ -90735,44 +89425,44 @@ const de_ScheduledInstance = (output: any, context: __SerdeContext): ScheduledIn */ const de_ScheduledInstanceAvailability = (output: any, context: __SerdeContext): ScheduledInstanceAvailability => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["availableInstanceCount"] !== undefined) { - contents.AvailableInstanceCount = __strictParseInt32(output["availableInstanceCount"]) as number; + if (output[_aICv] != null) { + contents[_AICv] = __strictParseInt32(output[_aICv]) as number; } - if (output["firstSlotStartTime"] !== undefined) { - contents.FirstSlotStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["firstSlotStartTime"])); + if (output[_fSST] != null) { + contents[_FSST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_fSST])); } - if (output["hourlyPrice"] !== undefined) { - contents.HourlyPrice = __expectString(output["hourlyPrice"]); + if (output[_hPo] != null) { + contents[_HPo] = __expectString(output[_hPo]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["maxTermDurationInDays"] !== undefined) { - contents.MaxTermDurationInDays = __strictParseInt32(output["maxTermDurationInDays"]) as number; + if (output[_mTDID] != null) { + contents[_MTDID] = __strictParseInt32(output[_mTDID]) as number; } - if (output["minTermDurationInDays"] !== undefined) { - contents.MinTermDurationInDays = __strictParseInt32(output["minTermDurationInDays"]) as number; + if (output[_mTDIDi] != null) { + contents[_MTDIDi] = __strictParseInt32(output[_mTDIDi]) as number; } - if (output["networkPlatform"] !== undefined) { - contents.NetworkPlatform = __expectString(output["networkPlatform"]); + if (output[_nPe] != null) { + contents[_NPe] = __expectString(output[_nPe]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["purchaseToken"] !== undefined) { - contents.PurchaseToken = __expectString(output["purchaseToken"]); + if (output[_pTu] != null) { + contents[_PT] = __expectString(output[_pTu]); } - if (output["recurrence"] !== undefined) { - contents.Recurrence = de_ScheduledInstanceRecurrence(output["recurrence"], context); + if (output[_rec] != null) { + contents[_Rec] = de_ScheduledInstanceRecurrence(output[_rec], context); } - if (output["slotDurationInHours"] !== undefined) { - contents.SlotDurationInHours = __strictParseInt32(output["slotDurationInHours"]) as number; + if (output[_sDIH] != null) { + contents[_SDIH] = __strictParseInt32(output[_sDIH]) as number; } - if (output["totalScheduledInstanceHours"] !== undefined) { - contents.TotalScheduledInstanceHours = __strictParseInt32(output["totalScheduledInstanceHours"]) as number; + if (output[_tSIH] != null) { + contents[_TSIH] = __strictParseInt32(output[_tSIH]) as number; } return contents; }; @@ -90793,25 +89483,22 @@ const de_ScheduledInstanceAvailabilitySet = (output: any, context: __SerdeContex */ const de_ScheduledInstanceRecurrence = (output: any, context: __SerdeContext): ScheduledInstanceRecurrence => { const contents: any = {}; - if (output["frequency"] !== undefined) { - contents.Frequency = __expectString(output["frequency"]); + if (output[_fre] != null) { + contents[_Fre] = __expectString(output[_fre]); } - if (output["interval"] !== undefined) { - contents.Interval = __strictParseInt32(output["interval"]) as number; + if (output[_int] != null) { + contents[_Int] = __strictParseInt32(output[_int]) as number; } if (output.occurrenceDaySet === "") { - contents.OccurrenceDaySet = []; - } else if (output["occurrenceDaySet"] !== undefined && output["occurrenceDaySet"]["item"] !== undefined) { - contents.OccurrenceDaySet = de_OccurrenceDaySet( - __getArrayIfSingleItem(output["occurrenceDaySet"]["item"]), - context - ); + contents[_ODS] = []; + } else if (output[_oDS] != null && output[_oDS][_i] != null) { + contents[_ODS] = de_OccurrenceDaySet(__getArrayIfSingleItem(output[_oDS][_i]), context); } - if (output["occurrenceRelativeToEnd"] !== undefined) { - contents.OccurrenceRelativeToEnd = __parseBoolean(output["occurrenceRelativeToEnd"]); + if (output[_oRTE] != null) { + contents[_ORTE] = __parseBoolean(output[_oRTE]); } - if (output["occurrenceUnit"] !== undefined) { - contents.OccurrenceUnit = __expectString(output["occurrenceUnit"]); + if (output[_oU] != null) { + contents[_OU] = __expectString(output[_oU]); } return contents; }; @@ -90833,12 +89520,12 @@ const de_ScheduledInstanceSet = (output: any, context: __SerdeContext): Schedule const de_SearchLocalGatewayRoutesResult = (output: any, context: __SerdeContext): SearchLocalGatewayRoutesResult => { const contents: any = {}; if (output.routeSet === "") { - contents.Routes = []; - } else if (output["routeSet"] !== undefined && output["routeSet"]["item"] !== undefined) { - contents.Routes = de_LocalGatewayRouteList(__getArrayIfSingleItem(output["routeSet"]["item"]), context); + contents[_Rou] = []; + } else if (output[_rSo] != null && output[_rSo][_i] != null) { + contents[_Rou] = de_LocalGatewayRouteList(__getArrayIfSingleItem(output[_rSo][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -90852,15 +89539,12 @@ const de_SearchTransitGatewayMulticastGroupsResult = ( ): SearchTransitGatewayMulticastGroupsResult => { const contents: any = {}; if (output.multicastGroups === "") { - contents.MulticastGroups = []; - } else if (output["multicastGroups"] !== undefined && output["multicastGroups"]["item"] !== undefined) { - contents.MulticastGroups = de_TransitGatewayMulticastGroupList( - __getArrayIfSingleItem(output["multicastGroups"]["item"]), - context - ); + contents[_MG] = []; + } else if (output[_mG] != null && output[_mG][_i] != null) { + contents[_MG] = de_TransitGatewayMulticastGroupList(__getArrayIfSingleItem(output[_mG][_i]), context); } - if (output["nextToken"] !== undefined) { - contents.NextToken = __expectString(output["nextToken"]); + if (output[_nTe] != null) { + contents[_NT] = __expectString(output[_nTe]); } return contents; }; @@ -90874,12 +89558,12 @@ const de_SearchTransitGatewayRoutesResult = ( ): SearchTransitGatewayRoutesResult => { const contents: any = {}; if (output.routeSet === "") { - contents.Routes = []; - } else if (output["routeSet"] !== undefined && output["routeSet"]["item"] !== undefined) { - contents.Routes = de_TransitGatewayRouteList(__getArrayIfSingleItem(output["routeSet"]["item"]), context); + contents[_Rou] = []; + } else if (output[_rSo] != null && output[_rSo][_i] != null) { + contents[_Rou] = de_TransitGatewayRouteList(__getArrayIfSingleItem(output[_rSo][_i]), context); } - if (output["additionalRoutesAvailable"] !== undefined) { - contents.AdditionalRoutesAvailable = __parseBoolean(output["additionalRoutesAvailable"]); + if (output[_aRAd] != null) { + contents[_ARAd] = __parseBoolean(output[_aRAd]); } return contents; }; @@ -90889,38 +89573,35 @@ const de_SearchTransitGatewayRoutesResult = ( */ const de_SecurityGroup = (output: any, context: __SerdeContext): SecurityGroup => { const contents: any = {}; - if (output["groupDescription"] !== undefined) { - contents.Description = __expectString(output["groupDescription"]); + if (output[_gD] != null) { + contents[_De] = __expectString(output[_gD]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } if (output.ipPermissions === "") { - contents.IpPermissions = []; - } else if (output["ipPermissions"] !== undefined && output["ipPermissions"]["item"] !== undefined) { - contents.IpPermissions = de_IpPermissionList(__getArrayIfSingleItem(output["ipPermissions"]["item"]), context); + contents[_IPpe] = []; + } else if (output[_iPpe] != null && output[_iPpe][_i] != null) { + contents[_IPpe] = de_IpPermissionList(__getArrayIfSingleItem(output[_iPpe][_i]), context); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } if (output.ipPermissionsEgress === "") { - contents.IpPermissionsEgress = []; - } else if (output["ipPermissionsEgress"] !== undefined && output["ipPermissionsEgress"]["item"] !== undefined) { - contents.IpPermissionsEgress = de_IpPermissionList( - __getArrayIfSingleItem(output["ipPermissionsEgress"]["item"]), - context - ); + contents[_IPE] = []; + } else if (output[_iPE] != null && output[_iPE][_i] != null) { + contents[_IPE] = de_IpPermissionList(__getArrayIfSingleItem(output[_iPE][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -90930,25 +89611,25 @@ const de_SecurityGroup = (output: any, context: __SerdeContext): SecurityGroup = */ const de_SecurityGroupForVpc = (output: any, context: __SerdeContext): SecurityGroupForVpc => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["primaryVpcId"] !== undefined) { - contents.PrimaryVpcId = __expectString(output["primaryVpcId"]); + if (output[_pVI] != null) { + contents[_PVIr] = __expectString(output[_pVI]); } return contents; }; @@ -90969,11 +89650,11 @@ const de_SecurityGroupForVpcList = (output: any, context: __SerdeContext): Secur */ const de_SecurityGroupIdentifier = (output: any, context: __SerdeContext): SecurityGroupIdentifier => { const contents: any = {}; - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } return contents; }; @@ -91027,17 +89708,17 @@ const de_SecurityGroupList = (output: any, context: __SerdeContext): SecurityGro */ const de_SecurityGroupReference = (output: any, context: __SerdeContext): SecurityGroupReference => { const contents: any = {}; - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } - if (output["referencingVpcId"] !== undefined) { - contents.ReferencingVpcId = __expectString(output["referencingVpcId"]); + if (output[_rVI] != null) { + contents[_RVI] = __expectString(output[_rVI]); } - if (output["vpcPeeringConnectionId"] !== undefined) { - contents.VpcPeeringConnectionId = __expectString(output["vpcPeeringConnectionId"]); + if (output[_vPCI] != null) { + contents[_VPCI] = __expectString(output[_vPCI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } return contents; }; @@ -91058,46 +89739,46 @@ const de_SecurityGroupReferences = (output: any, context: __SerdeContext): Secur */ const de_SecurityGroupRule = (output: any, context: __SerdeContext): SecurityGroupRule => { const contents: any = {}; - if (output["securityGroupRuleId"] !== undefined) { - contents.SecurityGroupRuleId = __expectString(output["securityGroupRuleId"]); + if (output[_sGRI] != null) { + contents[_SGRIe] = __expectString(output[_sGRI]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } - if (output["groupOwnerId"] !== undefined) { - contents.GroupOwnerId = __expectString(output["groupOwnerId"]); + if (output[_gOI] != null) { + contents[_GOI] = __expectString(output[_gOI]); } - if (output["isEgress"] !== undefined) { - contents.IsEgress = __parseBoolean(output["isEgress"]); + if (output[_iEs] != null) { + contents[_IE] = __parseBoolean(output[_iEs]); } - if (output["ipProtocol"] !== undefined) { - contents.IpProtocol = __expectString(output["ipProtocol"]); + if (output[_iPpr] != null) { + contents[_IPpr] = __expectString(output[_iPpr]); } - if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt32(output["fromPort"]) as number; + if (output[_fP] != null) { + contents[_FP] = __strictParseInt32(output[_fP]) as number; } - if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt32(output["toPort"]) as number; + if (output[_tPo] != null) { + contents[_TP] = __strictParseInt32(output[_tPo]) as number; } - if (output["cidrIpv4"] !== undefined) { - contents.CidrIpv4 = __expectString(output["cidrIpv4"]); + if (output[_cIidr] != null) { + contents[_CIidr] = __expectString(output[_cIidr]); } - if (output["cidrIpv6"] !== undefined) { - contents.CidrIpv6 = __expectString(output["cidrIpv6"]); + if (output[_cIid] != null) { + contents[_CIid] = __expectString(output[_cIid]); } - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } - if (output["referencedGroupInfo"] !== undefined) { - contents.ReferencedGroupInfo = de_ReferencedSecurityGroup(output["referencedGroupInfo"], context); + if (output[_rGI] != null) { + contents[_RGIe] = de_ReferencedSecurityGroup(output[_rGI], context); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -91119,90 +89800,63 @@ const de_SecurityGroupRuleList = (output: any, context: __SerdeContext): Securit const de_ServiceConfiguration = (output: any, context: __SerdeContext): ServiceConfiguration => { const contents: any = {}; if (output.serviceType === "") { - contents.ServiceType = []; - } else if (output["serviceType"] !== undefined && output["serviceType"]["item"] !== undefined) { - contents.ServiceType = de_ServiceTypeDetailSet(__getArrayIfSingleItem(output["serviceType"]["item"]), context); + contents[_STe] = []; + } else if (output[_sTe] != null && output[_sTe][_i] != null) { + contents[_STe] = de_ServiceTypeDetailSet(__getArrayIfSingleItem(output[_sTe][_i]), context); } - if (output["serviceId"] !== undefined) { - contents.ServiceId = __expectString(output["serviceId"]); + if (output[_sI] != null) { + contents[_SIe] = __expectString(output[_sI]); } - if (output["serviceName"] !== undefined) { - contents.ServiceName = __expectString(output["serviceName"]); + if (output[_sN] != null) { + contents[_SNe] = __expectString(output[_sN]); } - if (output["serviceState"] !== undefined) { - contents.ServiceState = __expectString(output["serviceState"]); + if (output[_sSer] != null) { + contents[_SSe] = __expectString(output[_sSer]); } if (output.availabilityZoneSet === "") { - contents.AvailabilityZones = []; - } else if (output["availabilityZoneSet"] !== undefined && output["availabilityZoneSet"]["item"] !== undefined) { - contents.AvailabilityZones = de_ValueStringList( - __getArrayIfSingleItem(output["availabilityZoneSet"]["item"]), - context - ); + contents[_AZv] = []; + } else if (output[_aZS] != null && output[_aZS][_i] != null) { + contents[_AZv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZS][_i]), context); } - if (output["acceptanceRequired"] !== undefined) { - contents.AcceptanceRequired = __parseBoolean(output["acceptanceRequired"]); + if (output[_aRcc] != null) { + contents[_ARc] = __parseBoolean(output[_aRcc]); } - if (output["managesVpcEndpoints"] !== undefined) { - contents.ManagesVpcEndpoints = __parseBoolean(output["managesVpcEndpoints"]); + if (output[_mVE] != null) { + contents[_MVEa] = __parseBoolean(output[_mVE]); } if (output.networkLoadBalancerArnSet === "") { - contents.NetworkLoadBalancerArns = []; - } else if ( - output["networkLoadBalancerArnSet"] !== undefined && - output["networkLoadBalancerArnSet"]["item"] !== undefined - ) { - contents.NetworkLoadBalancerArns = de_ValueStringList( - __getArrayIfSingleItem(output["networkLoadBalancerArnSet"]["item"]), - context - ); + contents[_NLBAe] = []; + } else if (output[_nLBAS] != null && output[_nLBAS][_i] != null) { + contents[_NLBAe] = de_ValueStringList(__getArrayIfSingleItem(output[_nLBAS][_i]), context); } if (output.gatewayLoadBalancerArnSet === "") { - contents.GatewayLoadBalancerArns = []; - } else if ( - output["gatewayLoadBalancerArnSet"] !== undefined && - output["gatewayLoadBalancerArnSet"]["item"] !== undefined - ) { - contents.GatewayLoadBalancerArns = de_ValueStringList( - __getArrayIfSingleItem(output["gatewayLoadBalancerArnSet"]["item"]), - context - ); + contents[_GLBA] = []; + } else if (output[_gLBAS] != null && output[_gLBAS][_i] != null) { + contents[_GLBA] = de_ValueStringList(__getArrayIfSingleItem(output[_gLBAS][_i]), context); } if (output.supportedIpAddressTypeSet === "") { - contents.SupportedIpAddressTypes = []; - } else if ( - output["supportedIpAddressTypeSet"] !== undefined && - output["supportedIpAddressTypeSet"]["item"] !== undefined - ) { - contents.SupportedIpAddressTypes = de_SupportedIpAddressTypes( - __getArrayIfSingleItem(output["supportedIpAddressTypeSet"]["item"]), - context - ); + contents[_SIAT] = []; + } else if (output[_sIATS] != null && output[_sIATS][_i] != null) { + contents[_SIAT] = de_SupportedIpAddressTypes(__getArrayIfSingleItem(output[_sIATS][_i]), context); } if (output.baseEndpointDnsNameSet === "") { - contents.BaseEndpointDnsNames = []; - } else if (output["baseEndpointDnsNameSet"] !== undefined && output["baseEndpointDnsNameSet"]["item"] !== undefined) { - contents.BaseEndpointDnsNames = de_ValueStringList( - __getArrayIfSingleItem(output["baseEndpointDnsNameSet"]["item"]), - context - ); + contents[_BEDN] = []; + } else if (output[_bEDNS] != null && output[_bEDNS][_i] != null) { + contents[_BEDN] = de_ValueStringList(__getArrayIfSingleItem(output[_bEDNS][_i]), context); } - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } - if (output["privateDnsNameConfiguration"] !== undefined) { - contents.PrivateDnsNameConfiguration = de_PrivateDnsNameConfiguration( - output["privateDnsNameConfiguration"], - context - ); + if (output[_pDNC] != null) { + contents[_PDNC] = de_PrivateDnsNameConfiguration(output[_pDNC], context); } - if (output["payerResponsibility"] !== undefined) { - contents.PayerResponsibility = __expectString(output["payerResponsibility"]); + if (output[_pRa] != null) { + contents[_PRa] = __expectString(output[_pRa]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -91223,77 +89877,62 @@ const de_ServiceConfigurationSet = (output: any, context: __SerdeContext): Servi */ const de_ServiceDetail = (output: any, context: __SerdeContext): ServiceDetail => { const contents: any = {}; - if (output["serviceName"] !== undefined) { - contents.ServiceName = __expectString(output["serviceName"]); + if (output[_sN] != null) { + contents[_SNe] = __expectString(output[_sN]); } - if (output["serviceId"] !== undefined) { - contents.ServiceId = __expectString(output["serviceId"]); + if (output[_sI] != null) { + contents[_SIe] = __expectString(output[_sI]); } if (output.serviceType === "") { - contents.ServiceType = []; - } else if (output["serviceType"] !== undefined && output["serviceType"]["item"] !== undefined) { - contents.ServiceType = de_ServiceTypeDetailSet(__getArrayIfSingleItem(output["serviceType"]["item"]), context); + contents[_STe] = []; + } else if (output[_sTe] != null && output[_sTe][_i] != null) { + contents[_STe] = de_ServiceTypeDetailSet(__getArrayIfSingleItem(output[_sTe][_i]), context); } if (output.availabilityZoneSet === "") { - contents.AvailabilityZones = []; - } else if (output["availabilityZoneSet"] !== undefined && output["availabilityZoneSet"]["item"] !== undefined) { - contents.AvailabilityZones = de_ValueStringList( - __getArrayIfSingleItem(output["availabilityZoneSet"]["item"]), - context - ); + contents[_AZv] = []; + } else if (output[_aZS] != null && output[_aZS][_i] != null) { + contents[_AZv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZS][_i]), context); } - if (output["owner"] !== undefined) { - contents.Owner = __expectString(output["owner"]); + if (output[_ow] != null) { + contents[_Own] = __expectString(output[_ow]); } if (output.baseEndpointDnsNameSet === "") { - contents.BaseEndpointDnsNames = []; - } else if (output["baseEndpointDnsNameSet"] !== undefined && output["baseEndpointDnsNameSet"]["item"] !== undefined) { - contents.BaseEndpointDnsNames = de_ValueStringList( - __getArrayIfSingleItem(output["baseEndpointDnsNameSet"]["item"]), - context - ); + contents[_BEDN] = []; + } else if (output[_bEDNS] != null && output[_bEDNS][_i] != null) { + contents[_BEDN] = de_ValueStringList(__getArrayIfSingleItem(output[_bEDNS][_i]), context); } - if (output["privateDnsName"] !== undefined) { - contents.PrivateDnsName = __expectString(output["privateDnsName"]); + if (output[_pDN] != null) { + contents[_PDN] = __expectString(output[_pDN]); } if (output.privateDnsNameSet === "") { - contents.PrivateDnsNames = []; - } else if (output["privateDnsNameSet"] !== undefined && output["privateDnsNameSet"]["item"] !== undefined) { - contents.PrivateDnsNames = de_PrivateDnsDetailsSet( - __getArrayIfSingleItem(output["privateDnsNameSet"]["item"]), - context - ); + contents[_PDNr] = []; + } else if (output[_pDNS] != null && output[_pDNS][_i] != null) { + contents[_PDNr] = de_PrivateDnsDetailsSet(__getArrayIfSingleItem(output[_pDNS][_i]), context); } - if (output["vpcEndpointPolicySupported"] !== undefined) { - contents.VpcEndpointPolicySupported = __parseBoolean(output["vpcEndpointPolicySupported"]); + if (output[_vEPS] != null) { + contents[_VEPS] = __parseBoolean(output[_vEPS]); } - if (output["acceptanceRequired"] !== undefined) { - contents.AcceptanceRequired = __parseBoolean(output["acceptanceRequired"]); + if (output[_aRcc] != null) { + contents[_ARc] = __parseBoolean(output[_aRcc]); } - if (output["managesVpcEndpoints"] !== undefined) { - contents.ManagesVpcEndpoints = __parseBoolean(output["managesVpcEndpoints"]); + if (output[_mVE] != null) { + contents[_MVEa] = __parseBoolean(output[_mVE]); } - if (output["payerResponsibility"] !== undefined) { - contents.PayerResponsibility = __expectString(output["payerResponsibility"]); + if (output[_pRa] != null) { + contents[_PRa] = __expectString(output[_pRa]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["privateDnsNameVerificationState"] !== undefined) { - contents.PrivateDnsNameVerificationState = __expectString(output["privateDnsNameVerificationState"]); + if (output[_pDNVS] != null) { + contents[_PDNVS] = __expectString(output[_pDNVS]); } if (output.supportedIpAddressTypeSet === "") { - contents.SupportedIpAddressTypes = []; - } else if ( - output["supportedIpAddressTypeSet"] !== undefined && - output["supportedIpAddressTypeSet"]["item"] !== undefined - ) { - contents.SupportedIpAddressTypes = de_SupportedIpAddressTypes( - __getArrayIfSingleItem(output["supportedIpAddressTypeSet"]["item"]), - context - ); + contents[_SIAT] = []; + } else if (output[_sIATS] != null && output[_sIATS][_i] != null) { + contents[_SIAT] = de_SupportedIpAddressTypes(__getArrayIfSingleItem(output[_sIATS][_i]), context); } return contents; }; @@ -91314,8 +89953,8 @@ const de_ServiceDetailSet = (output: any, context: __SerdeContext): ServiceDetai */ const de_ServiceTypeDetail = (output: any, context: __SerdeContext): ServiceTypeDetail => { const contents: any = {}; - if (output["serviceType"] !== undefined) { - contents.ServiceType = __expectString(output["serviceType"]); + if (output[_sTe] != null) { + contents[_STe] = __expectString(output[_sTe]); } return contents; }; @@ -91336,61 +89975,61 @@ const de_ServiceTypeDetailSet = (output: any, context: __SerdeContext): ServiceT */ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { const contents: any = {}; - if (output["dataEncryptionKeyId"] !== undefined) { - contents.DataEncryptionKeyId = __expectString(output["dataEncryptionKeyId"]); + if (output[_dEKI] != null) { + contents[_DEKI] = __expectString(output[_dEKI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startTime"])); + if (output[_sT] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } - if (output["status"] !== undefined) { - contents.State = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Stat] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StateMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SMt] = __expectString(output[_sM]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; + if (output[_vSo] != null) { + contents[_VS] = __strictParseInt32(output[_vSo]) as number; } - if (output["ownerAlias"] !== undefined) { - contents.OwnerAlias = __expectString(output["ownerAlias"]); + if (output[_oAw] != null) { + contents[_OAw] = __expectString(output[_oAw]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["storageTier"] !== undefined) { - contents.StorageTier = __expectString(output["storageTier"]); + if (output[_sTt] != null) { + contents[_STto] = __expectString(output[_sTt]); } - if (output["restoreExpiryTime"] !== undefined) { - contents.RestoreExpiryTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["restoreExpiryTime"])); + if (output[_rET] != null) { + contents[_RET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rET])); } - if (output["sseType"] !== undefined) { - contents.SseType = __expectString(output["sseType"]); + if (output[_sTs] != null) { + contents[_STs] = __expectString(output[_sTs]); } return contents; }; @@ -91400,35 +90039,35 @@ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { */ const de_SnapshotDetail = (output: any, context: __SerdeContext): SnapshotDetail => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["deviceName"] !== undefined) { - contents.DeviceName = __expectString(output["deviceName"]); + if (output[_dN] != null) { + contents[_DN] = __expectString(output[_dN]); } - if (output["diskImageSize"] !== undefined) { - contents.DiskImageSize = __strictParseFloat(output["diskImageSize"]) as number; + if (output[_dIS] != null) { + contents[_DISi] = __strictParseFloat(output[_dIS]) as number; } - if (output["format"] !== undefined) { - contents.Format = __expectString(output["format"]); + if (output[_f] != null) { + contents[_Fo] = __expectString(output[_f]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["url"] !== undefined) { - contents.Url = __expectString(output["url"]); + if (output[_ur] != null) { + contents[_U] = __expectString(output[_ur]); } - if (output["userBucket"] !== undefined) { - contents.UserBucket = de_UserBucketDetails(output["userBucket"], context); + if (output[_uB] != null) { + contents[_UB] = de_UserBucketDetails(output[_uB], context); } return contents; }; @@ -91449,43 +90088,43 @@ const de_SnapshotDetailList = (output: any, context: __SerdeContext): SnapshotDe */ const de_SnapshotInfo = (output: any, context: __SerdeContext): SnapshotInfo => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["volumeSize"] !== undefined) { - contents.VolumeSize = __strictParseInt32(output["volumeSize"]) as number; + if (output[_vSo] != null) { + contents[_VS] = __strictParseInt32(output[_vSo]) as number; } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startTime"])); + if (output[_sT] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["sseType"] !== undefined) { - contents.SseType = __expectString(output["sseType"]); + if (output[_sTs] != null) { + contents[_STs] = __expectString(output[_sTs]); } return contents; }; @@ -91506,20 +90145,20 @@ const de_SnapshotList = (output: any, context: __SerdeContext): Snapshot[] => { */ const de_SnapshotRecycleBinInfo = (output: any, context: __SerdeContext): SnapshotRecycleBinInfo => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["recycleBinEnterTime"] !== undefined) { - contents.RecycleBinEnterTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["recycleBinEnterTime"])); + if (output[_rBET] != null) { + contents[_RBET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rBET])); } - if (output["recycleBinExitTime"] !== undefined) { - contents.RecycleBinExitTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["recycleBinExitTime"])); + if (output[_rBETe] != null) { + contents[_RBETe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rBETe])); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } return contents; }; @@ -91551,38 +90190,38 @@ const de_SnapshotSet = (output: any, context: __SerdeContext): SnapshotInfo[] => */ const de_SnapshotTaskDetail = (output: any, context: __SerdeContext): SnapshotTaskDetail => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["diskImageSize"] !== undefined) { - contents.DiskImageSize = __strictParseFloat(output["diskImageSize"]) as number; + if (output[_dIS] != null) { + contents[_DISi] = __strictParseFloat(output[_dIS]) as number; } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["format"] !== undefined) { - contents.Format = __expectString(output["format"]); + if (output[_f] != null) { + contents[_Fo] = __expectString(output[_f]); } - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } - if (output["progress"] !== undefined) { - contents.Progress = __expectString(output["progress"]); + if (output[_pro] != null) { + contents[_Prog] = __expectString(output[_pro]); } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["url"] !== undefined) { - contents.Url = __expectString(output["url"]); + if (output[_ur] != null) { + contents[_U] = __expectString(output[_ur]); } - if (output["userBucket"] !== undefined) { - contents.UserBucket = de_UserBucketDetails(output["userBucket"], context); + if (output[_uB] != null) { + contents[_UB] = de_UserBucketDetails(output[_uB], context); } return contents; }; @@ -91592,43 +90231,43 @@ const de_SnapshotTaskDetail = (output: any, context: __SerdeContext): SnapshotTa */ const de_SnapshotTierStatus = (output: any, context: __SerdeContext): SnapshotTierStatus => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["storageTier"] !== undefined) { - contents.StorageTier = __expectString(output["storageTier"]); + if (output[_sTt] != null) { + contents[_STto] = __expectString(output[_sTt]); } - if (output["lastTieringStartTime"] !== undefined) { - contents.LastTieringStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lastTieringStartTime"])); + if (output[_lTST] != null) { + contents[_LTST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lTST])); } - if (output["lastTieringProgress"] !== undefined) { - contents.LastTieringProgress = __strictParseInt32(output["lastTieringProgress"]) as number; + if (output[_lTP] != null) { + contents[_LTP] = __strictParseInt32(output[_lTP]) as number; } - if (output["lastTieringOperationStatus"] !== undefined) { - contents.LastTieringOperationStatus = __expectString(output["lastTieringOperationStatus"]); + if (output[_lTOS] != null) { + contents[_LTOS] = __expectString(output[_lTOS]); } - if (output["lastTieringOperationStatusDetail"] !== undefined) { - contents.LastTieringOperationStatusDetail = __expectString(output["lastTieringOperationStatusDetail"]); + if (output[_lTOSD] != null) { + contents[_LTOSD] = __expectString(output[_lTOSD]); } - if (output["archivalCompleteTime"] !== undefined) { - contents.ArchivalCompleteTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["archivalCompleteTime"])); + if (output[_aCT] != null) { + contents[_ACT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_aCT])); } - if (output["restoreExpiryTime"] !== undefined) { - contents.RestoreExpiryTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["restoreExpiryTime"])); + if (output[_rET] != null) { + contents[_RET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rET])); } return contents; }; @@ -91649,11 +90288,11 @@ const de_snapshotTierStatusSet = (output: any, context: __SerdeContext): Snapsho */ const de_SpotCapacityRebalance = (output: any, context: __SerdeContext): SpotCapacityRebalance => { const contents: any = {}; - if (output["replacementStrategy"] !== undefined) { - contents.ReplacementStrategy = __expectString(output["replacementStrategy"]); + if (output[_rSe] != null) { + contents[_RS] = __expectString(output[_rSe]); } - if (output["terminationDelay"] !== undefined) { - contents.TerminationDelay = __strictParseInt32(output["terminationDelay"]) as number; + if (output[_tD] != null) { + contents[_TDe] = __strictParseInt32(output[_tD]) as number; } return contents; }; @@ -91663,20 +90302,20 @@ const de_SpotCapacityRebalance = (output: any, context: __SerdeContext): SpotCap */ const de_SpotDatafeedSubscription = (output: any, context: __SerdeContext): SpotDatafeedSubscription => { const contents: any = {}; - if (output["bucket"] !== undefined) { - contents.Bucket = __expectString(output["bucket"]); + if (output[_bu] != null) { + contents[_B] = __expectString(output[_bu]); } - if (output["fault"] !== undefined) { - contents.Fault = de_SpotInstanceStateFault(output["fault"], context); + if (output[_fa] != null) { + contents[_Fa] = de_SpotInstanceStateFault(output[_fa], context); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["prefix"] !== undefined) { - contents.Prefix = __expectString(output["prefix"]); + if (output[_pre] != null) { + contents[_Pr] = __expectString(output[_pre]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -91687,78 +90326,69 @@ const de_SpotDatafeedSubscription = (output: any, context: __SerdeContext): Spot const de_SpotFleetLaunchSpecification = (output: any, context: __SerdeContext): SpotFleetLaunchSpecification => { const contents: any = {}; if (output.groupSet === "") { - contents.SecurityGroups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.SecurityGroups = de_GroupIdentifierList(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_SG] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_SG] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output["addressingType"] !== undefined) { - contents.AddressingType = __expectString(output["addressingType"]); + if (output[_aTdd] != null) { + contents[_ATd] = __expectString(output[_aTdd]); } if (output.blockDeviceMapping === "") { - contents.BlockDeviceMappings = []; - } else if (output["blockDeviceMapping"] !== undefined && output["blockDeviceMapping"]["item"] !== undefined) { - contents.BlockDeviceMappings = de_BlockDeviceMappingList( - __getArrayIfSingleItem(output["blockDeviceMapping"]["item"]), - context - ); + contents[_BDM] = []; + } else if (output[_bDM] != null && output[_bDM][_i] != null) { + contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); } - if (output["ebsOptimized"] !== undefined) { - contents.EbsOptimized = __parseBoolean(output["ebsOptimized"]); + if (output[_eO] != null) { + contents[_EO] = __parseBoolean(output[_eO]); } - if (output["iamInstanceProfile"] !== undefined) { - contents.IamInstanceProfile = de_IamInstanceProfileSpecification(output["iamInstanceProfile"], context); + if (output[_iIP] != null) { + contents[_IIP] = de_IamInstanceProfileSpecification(output[_iIP], context); } - if (output["imageId"] !== undefined) { - contents.ImageId = __expectString(output["imageId"]); + if (output[_iIma] != null) { + contents[_IIma] = __expectString(output[_iIma]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["kernelId"] !== undefined) { - contents.KernelId = __expectString(output["kernelId"]); + if (output[_kI] != null) { + contents[_KI] = __expectString(output[_kI]); } - if (output["keyName"] !== undefined) { - contents.KeyName = __expectString(output["keyName"]); + if (output[_kN] != null) { + contents[_KN] = __expectString(output[_kN]); } - if (output["monitoring"] !== undefined) { - contents.Monitoring = de_SpotFleetMonitoring(output["monitoring"], context); + if (output[_mo] != null) { + contents[_Mon] = de_SpotFleetMonitoring(output[_mo], context); } if (output.networkInterfaceSet === "") { - contents.NetworkInterfaces = []; - } else if (output["networkInterfaceSet"] !== undefined && output["networkInterfaceSet"]["item"] !== undefined) { - contents.NetworkInterfaces = de_InstanceNetworkInterfaceSpecificationList( - __getArrayIfSingleItem(output["networkInterfaceSet"]["item"]), - context - ); + contents[_NI] = []; + } else if (output[_nIS] != null && output[_nIS][_i] != null) { + contents[_NI] = de_InstanceNetworkInterfaceSpecificationList(__getArrayIfSingleItem(output[_nIS][_i]), context); } - if (output["placement"] !== undefined) { - contents.Placement = de_SpotPlacement(output["placement"], context); + if (output[_pla] != null) { + contents[_Pl] = de_SpotPlacement(output[_pla], context); } - if (output["ramdiskId"] !== undefined) { - contents.RamdiskId = __expectString(output["ramdiskId"]); + if (output[_rIa] != null) { + contents[_RIa] = __expectString(output[_rIa]); } - if (output["spotPrice"] !== undefined) { - contents.SpotPrice = __expectString(output["spotPrice"]); + if (output[_sPp] != null) { + contents[_SPp] = __expectString(output[_sPp]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["userData"] !== undefined) { - contents.UserData = __expectString(output["userData"]); + if (output[_uDs] != null) { + contents[_UD] = __expectString(output[_uDs]); } - if (output["weightedCapacity"] !== undefined) { - contents.WeightedCapacity = __strictParseFloat(output["weightedCapacity"]) as number; + if (output[_wC] != null) { + contents[_WC] = __strictParseFloat(output[_wC]) as number; } if (output.tagSpecificationSet === "") { - contents.TagSpecifications = []; - } else if (output["tagSpecificationSet"] !== undefined && output["tagSpecificationSet"]["item"] !== undefined) { - contents.TagSpecifications = de_SpotFleetTagSpecificationList( - __getArrayIfSingleItem(output["tagSpecificationSet"]["item"]), - context - ); + contents[_TS] = []; + } else if (output[_tSS] != null && output[_tSS][_i] != null) { + contents[_TS] = de_SpotFleetTagSpecificationList(__getArrayIfSingleItem(output[_tSS][_i]), context); } - if (output["instanceRequirements"] !== undefined) { - contents.InstanceRequirements = de_InstanceRequirements(output["instanceRequirements"], context); + if (output[_iR] != null) { + contents[_IR] = de_InstanceRequirements(output[_iR], context); } return contents; }; @@ -91768,8 +90398,8 @@ const de_SpotFleetLaunchSpecification = (output: any, context: __SerdeContext): */ const de_SpotFleetMonitoring = (output: any, context: __SerdeContext): SpotFleetMonitoring => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } return contents; }; @@ -91779,25 +90409,25 @@ const de_SpotFleetMonitoring = (output: any, context: __SerdeContext): SpotFleet */ const de_SpotFleetRequestConfig = (output: any, context: __SerdeContext): SpotFleetRequestConfig => { const contents: any = {}; - if (output["activityStatus"] !== undefined) { - contents.ActivityStatus = __expectString(output["activityStatus"]); + if (output[_aSc] != null) { + contents[_ASc] = __expectString(output[_aSc]); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["spotFleetRequestConfig"] !== undefined) { - contents.SpotFleetRequestConfig = de_SpotFleetRequestConfigData(output["spotFleetRequestConfig"], context); + if (output[_sFRC] != null) { + contents[_SFRC] = de_SpotFleetRequestConfigData(output[_sFRC], context); } - if (output["spotFleetRequestId"] !== undefined) { - contents.SpotFleetRequestId = __expectString(output["spotFleetRequestId"]); + if (output[_sFRI] != null) { + contents[_SFRIp] = __expectString(output[_sFRI]); } - if (output["spotFleetRequestState"] !== undefined) { - contents.SpotFleetRequestState = __expectString(output["spotFleetRequestState"]); + if (output[_sFRSp] != null) { + contents[_SFRS] = __expectString(output[_sFRSp]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -91807,98 +90437,89 @@ const de_SpotFleetRequestConfig = (output: any, context: __SerdeContext): SpotFl */ const de_SpotFleetRequestConfigData = (output: any, context: __SerdeContext): SpotFleetRequestConfigData => { const contents: any = {}; - if (output["allocationStrategy"] !== undefined) { - contents.AllocationStrategy = __expectString(output["allocationStrategy"]); + if (output[_aSl] != null) { + contents[_AS] = __expectString(output[_aSl]); } - if (output["onDemandAllocationStrategy"] !== undefined) { - contents.OnDemandAllocationStrategy = __expectString(output["onDemandAllocationStrategy"]); + if (output[_oDAS] != null) { + contents[_ODAS] = __expectString(output[_oDAS]); } - if (output["spotMaintenanceStrategies"] !== undefined) { - contents.SpotMaintenanceStrategies = de_SpotMaintenanceStrategies(output["spotMaintenanceStrategies"], context); + if (output[_sMS] != null) { + contents[_SMS] = de_SpotMaintenanceStrategies(output[_sMS], context); } - if (output["clientToken"] !== undefined) { - contents.ClientToken = __expectString(output["clientToken"]); + if (output[_cT] != null) { + contents[_CTl] = __expectString(output[_cT]); } - if (output["excessCapacityTerminationPolicy"] !== undefined) { - contents.ExcessCapacityTerminationPolicy = __expectString(output["excessCapacityTerminationPolicy"]); + if (output[_eCTP] != null) { + contents[_ECTP] = __expectString(output[_eCTP]); } - if (output["fulfilledCapacity"] !== undefined) { - contents.FulfilledCapacity = __strictParseFloat(output["fulfilledCapacity"]) as number; + if (output[_fC] != null) { + contents[_FC] = __strictParseFloat(output[_fC]) as number; } - if (output["onDemandFulfilledCapacity"] !== undefined) { - contents.OnDemandFulfilledCapacity = __strictParseFloat(output["onDemandFulfilledCapacity"]) as number; + if (output[_oDFC] != null) { + contents[_ODFC] = __strictParseFloat(output[_oDFC]) as number; } - if (output["iamFleetRole"] !== undefined) { - contents.IamFleetRole = __expectString(output["iamFleetRole"]); + if (output[_iFR] != null) { + contents[_IFR] = __expectString(output[_iFR]); } if (output.launchSpecifications === "") { - contents.LaunchSpecifications = []; - } else if (output["launchSpecifications"] !== undefined && output["launchSpecifications"]["item"] !== undefined) { - contents.LaunchSpecifications = de_LaunchSpecsList( - __getArrayIfSingleItem(output["launchSpecifications"]["item"]), - context - ); + contents[_LSau] = []; + } else if (output[_lSa] != null && output[_lSa][_i] != null) { + contents[_LSau] = de_LaunchSpecsList(__getArrayIfSingleItem(output[_lSa][_i]), context); } if (output.launchTemplateConfigs === "") { - contents.LaunchTemplateConfigs = []; - } else if (output["launchTemplateConfigs"] !== undefined && output["launchTemplateConfigs"]["item"] !== undefined) { - contents.LaunchTemplateConfigs = de_LaunchTemplateConfigList( - __getArrayIfSingleItem(output["launchTemplateConfigs"]["item"]), - context - ); + contents[_LTC] = []; + } else if (output[_lTC] != null && output[_lTC][_i] != null) { + contents[_LTC] = de_LaunchTemplateConfigList(__getArrayIfSingleItem(output[_lTC][_i]), context); } - if (output["spotPrice"] !== undefined) { - contents.SpotPrice = __expectString(output["spotPrice"]); + if (output[_sPp] != null) { + contents[_SPp] = __expectString(output[_sPp]); } - if (output["targetCapacity"] !== undefined) { - contents.TargetCapacity = __strictParseInt32(output["targetCapacity"]) as number; + if (output[_tCar] != null) { + contents[_TCa] = __strictParseInt32(output[_tCar]) as number; } - if (output["onDemandTargetCapacity"] !== undefined) { - contents.OnDemandTargetCapacity = __strictParseInt32(output["onDemandTargetCapacity"]) as number; + if (output[_oDTC] != null) { + contents[_ODTC] = __strictParseInt32(output[_oDTC]) as number; } - if (output["onDemandMaxTotalPrice"] !== undefined) { - contents.OnDemandMaxTotalPrice = __expectString(output["onDemandMaxTotalPrice"]); + if (output[_oDMTP] != null) { + contents[_ODMTP] = __expectString(output[_oDMTP]); } - if (output["spotMaxTotalPrice"] !== undefined) { - contents.SpotMaxTotalPrice = __expectString(output["spotMaxTotalPrice"]); + if (output[_sMTP] != null) { + contents[_SMTP] = __expectString(output[_sMTP]); } - if (output["terminateInstancesWithExpiration"] !== undefined) { - contents.TerminateInstancesWithExpiration = __parseBoolean(output["terminateInstancesWithExpiration"]); + if (output[_tIWE] != null) { + contents[_TIWE] = __parseBoolean(output[_tIWE]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["validFrom"] !== undefined) { - contents.ValidFrom = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["validFrom"])); + if (output[_vF] != null) { + contents[_VF] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_vF])); } - if (output["validUntil"] !== undefined) { - contents.ValidUntil = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["validUntil"])); + if (output[_vU] != null) { + contents[_VU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_vU])); } - if (output["replaceUnhealthyInstances"] !== undefined) { - contents.ReplaceUnhealthyInstances = __parseBoolean(output["replaceUnhealthyInstances"]); + if (output[_rUI] != null) { + contents[_RUI] = __parseBoolean(output[_rUI]); } - if (output["instanceInterruptionBehavior"] !== undefined) { - contents.InstanceInterruptionBehavior = __expectString(output["instanceInterruptionBehavior"]); + if (output[_iIB] != null) { + contents[_IIB] = __expectString(output[_iIB]); } - if (output["loadBalancersConfig"] !== undefined) { - contents.LoadBalancersConfig = de_LoadBalancersConfig(output["loadBalancersConfig"], context); + if (output[_lBC] != null) { + contents[_LBC] = de_LoadBalancersConfig(output[_lBC], context); } - if (output["instancePoolsToUseCount"] !== undefined) { - contents.InstancePoolsToUseCount = __strictParseInt32(output["instancePoolsToUseCount"]) as number; + if (output[_iPTUC] != null) { + contents[_IPTUC] = __strictParseInt32(output[_iPTUC]) as number; } - if (output["context"] !== undefined) { - contents.Context = __expectString(output["context"]); + if (output[_cont] != null) { + contents[_Con] = __expectString(output[_cont]); } - if (output["targetCapacityUnitType"] !== undefined) { - contents.TargetCapacityUnitType = __expectString(output["targetCapacityUnitType"]); + if (output[_tCUT] != null) { + contents[_TCUT] = __expectString(output[_tCUT]); } if (output.TagSpecification === "") { - contents.TagSpecifications = []; - } else if (output["TagSpecification"] !== undefined && output["TagSpecification"]["item"] !== undefined) { - contents.TagSpecifications = de_TagSpecificationList( - __getArrayIfSingleItem(output["TagSpecification"]["item"]), - context - ); + contents[_TS] = []; + } else if (output[_TSagp] != null && output[_TSagp][_i] != null) { + contents[_TS] = de_TagSpecificationList(__getArrayIfSingleItem(output[_TSagp][_i]), context); } return contents; }; @@ -91919,13 +90540,13 @@ const de_SpotFleetRequestConfigSet = (output: any, context: __SerdeContext): Spo */ const de_SpotFleetTagSpecification = (output: any, context: __SerdeContext): SpotFleetTagSpecification => { const contents: any = {}; - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } if (output.tag === "") { - contents.Tags = []; - } else if (output["tag"] !== undefined && output["tag"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tag"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tag] != null && output[_tag][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tag][_i]), context); } return contents; }; @@ -91946,64 +90567,64 @@ const de_SpotFleetTagSpecificationList = (output: any, context: __SerdeContext): */ const de_SpotInstanceRequest = (output: any, context: __SerdeContext): SpotInstanceRequest => { const contents: any = {}; - if (output["actualBlockHourlyPrice"] !== undefined) { - contents.ActualBlockHourlyPrice = __expectString(output["actualBlockHourlyPrice"]); + if (output[_aBHP] != null) { + contents[_ABHP] = __expectString(output[_aBHP]); } - if (output["availabilityZoneGroup"] !== undefined) { - contents.AvailabilityZoneGroup = __expectString(output["availabilityZoneGroup"]); + if (output[_aZG] != null) { + contents[_AZG] = __expectString(output[_aZG]); } - if (output["blockDurationMinutes"] !== undefined) { - contents.BlockDurationMinutes = __strictParseInt32(output["blockDurationMinutes"]) as number; + if (output[_bDMl] != null) { + contents[_BDMl] = __strictParseInt32(output[_bDMl]) as number; } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["fault"] !== undefined) { - contents.Fault = de_SpotInstanceStateFault(output["fault"], context); + if (output[_fa] != null) { + contents[_Fa] = de_SpotInstanceStateFault(output[_fa], context); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["launchGroup"] !== undefined) { - contents.LaunchGroup = __expectString(output["launchGroup"]); + if (output[_lG] != null) { + contents[_LG] = __expectString(output[_lG]); } - if (output["launchSpecification"] !== undefined) { - contents.LaunchSpecification = de_LaunchSpecification(output["launchSpecification"], context); + if (output[_lSau] != null) { + contents[_LSa] = de_LaunchSpecification(output[_lSau], context); } - if (output["launchedAvailabilityZone"] !== undefined) { - contents.LaunchedAvailabilityZone = __expectString(output["launchedAvailabilityZone"]); + if (output[_lAZ] != null) { + contents[_LAZ] = __expectString(output[_lAZ]); } - if (output["productDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["productDescription"]); + if (output[_pDr] != null) { + contents[_PDr] = __expectString(output[_pDr]); } - if (output["spotInstanceRequestId"] !== undefined) { - contents.SpotInstanceRequestId = __expectString(output["spotInstanceRequestId"]); + if (output[_sIRI] != null) { + contents[_SIRIp] = __expectString(output[_sIRI]); } - if (output["spotPrice"] !== undefined) { - contents.SpotPrice = __expectString(output["spotPrice"]); + if (output[_sPp] != null) { + contents[_SPp] = __expectString(output[_sPp]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["status"] !== undefined) { - contents.Status = de_SpotInstanceStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_SpotInstanceStatus(output[_sta], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["validFrom"] !== undefined) { - contents.ValidFrom = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["validFrom"])); + if (output[_vF] != null) { + contents[_VF] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_vF])); } - if (output["validUntil"] !== undefined) { - contents.ValidUntil = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["validUntil"])); + if (output[_vU] != null) { + contents[_VU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_vU])); } - if (output["instanceInterruptionBehavior"] !== undefined) { - contents.InstanceInterruptionBehavior = __expectString(output["instanceInterruptionBehavior"]); + if (output[_iIB] != null) { + contents[_IIB] = __expectString(output[_iIB]); } return contents; }; @@ -92024,11 +90645,11 @@ const de_SpotInstanceRequestList = (output: any, context: __SerdeContext): SpotI */ const de_SpotInstanceStateFault = (output: any, context: __SerdeContext): SpotInstanceStateFault => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -92038,14 +90659,14 @@ const de_SpotInstanceStateFault = (output: any, context: __SerdeContext): SpotIn */ const de_SpotInstanceStatus = (output: any, context: __SerdeContext): SpotInstanceStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } - if (output["updateTime"] !== undefined) { - contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["updateTime"])); + if (output[_uT] != null) { + contents[_UTp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uT])); } return contents; }; @@ -92055,8 +90676,8 @@ const de_SpotInstanceStatus = (output: any, context: __SerdeContext): SpotInstan */ const de_SpotMaintenanceStrategies = (output: any, context: __SerdeContext): SpotMaintenanceStrategies => { const contents: any = {}; - if (output["capacityRebalance"] !== undefined) { - contents.CapacityRebalance = de_SpotCapacityRebalance(output["capacityRebalance"], context); + if (output[_cRa] != null) { + contents[_CRap] = de_SpotCapacityRebalance(output[_cRa], context); } return contents; }; @@ -92066,29 +90687,29 @@ const de_SpotMaintenanceStrategies = (output: any, context: __SerdeContext): Spo */ const de_SpotOptions = (output: any, context: __SerdeContext): SpotOptions => { const contents: any = {}; - if (output["allocationStrategy"] !== undefined) { - contents.AllocationStrategy = __expectString(output["allocationStrategy"]); + if (output[_aSl] != null) { + contents[_AS] = __expectString(output[_aSl]); } - if (output["maintenanceStrategies"] !== undefined) { - contents.MaintenanceStrategies = de_FleetSpotMaintenanceStrategies(output["maintenanceStrategies"], context); + if (output[_mSai] != null) { + contents[_MS] = de_FleetSpotMaintenanceStrategies(output[_mSai], context); } - if (output["instanceInterruptionBehavior"] !== undefined) { - contents.InstanceInterruptionBehavior = __expectString(output["instanceInterruptionBehavior"]); + if (output[_iIB] != null) { + contents[_IIB] = __expectString(output[_iIB]); } - if (output["instancePoolsToUseCount"] !== undefined) { - contents.InstancePoolsToUseCount = __strictParseInt32(output["instancePoolsToUseCount"]) as number; + if (output[_iPTUC] != null) { + contents[_IPTUC] = __strictParseInt32(output[_iPTUC]) as number; } - if (output["singleInstanceType"] !== undefined) { - contents.SingleInstanceType = __parseBoolean(output["singleInstanceType"]); + if (output[_sITi] != null) { + contents[_SITi] = __parseBoolean(output[_sITi]); } - if (output["singleAvailabilityZone"] !== undefined) { - contents.SingleAvailabilityZone = __parseBoolean(output["singleAvailabilityZone"]); + if (output[_sAZ] != null) { + contents[_SAZ] = __parseBoolean(output[_sAZ]); } - if (output["minTargetCapacity"] !== undefined) { - contents.MinTargetCapacity = __strictParseInt32(output["minTargetCapacity"]) as number; + if (output[_mTC] != null) { + contents[_MTC] = __strictParseInt32(output[_mTC]) as number; } - if (output["maxTotalPrice"] !== undefined) { - contents.MaxTotalPrice = __expectString(output["maxTotalPrice"]); + if (output[_mTP] != null) { + contents[_MTP] = __expectString(output[_mTP]); } return contents; }; @@ -92098,14 +90719,14 @@ const de_SpotOptions = (output: any, context: __SerdeContext): SpotOptions => { */ const de_SpotPlacement = (output: any, context: __SerdeContext): SpotPlacement => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["tenancy"] !== undefined) { - contents.Tenancy = __expectString(output["tenancy"]); + if (output[_t] != null) { + contents[_Te] = __expectString(output[_t]); } return contents; }; @@ -92115,14 +90736,14 @@ const de_SpotPlacement = (output: any, context: __SerdeContext): SpotPlacement = */ const de_SpotPlacementScore = (output: any, context: __SerdeContext): SpotPlacementScore => { const contents: any = {}; - if (output["region"] !== undefined) { - contents.Region = __expectString(output["region"]); + if (output[_reg] != null) { + contents[_Regi] = __expectString(output[_reg]); } - if (output["availabilityZoneId"] !== undefined) { - contents.AvailabilityZoneId = __expectString(output["availabilityZoneId"]); + if (output[_aZI] != null) { + contents[_AZI] = __expectString(output[_aZI]); } - if (output["score"] !== undefined) { - contents.Score = __strictParseInt32(output["score"]) as number; + if (output[_sco] != null) { + contents[_Sco] = __strictParseInt32(output[_sco]) as number; } return contents; }; @@ -92143,20 +90764,20 @@ const de_SpotPlacementScores = (output: any, context: __SerdeContext): SpotPlace */ const de_SpotPrice = (output: any, context: __SerdeContext): SpotPrice => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["instanceType"] !== undefined) { - contents.InstanceType = __expectString(output["instanceType"]); + if (output[_iT] != null) { + contents[_IT] = __expectString(output[_iT]); } - if (output["productDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["productDescription"]); + if (output[_pDr] != null) { + contents[_PDr] = __expectString(output[_pDr]); } - if (output["spotPrice"] !== undefined) { - contents.SpotPrice = __expectString(output["spotPrice"]); + if (output[_sPp] != null) { + contents[_SPp] = __expectString(output[_sPp]); } - if (output["timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["timestamp"])); + if (output[_ti] != null) { + contents[_Tim] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ti])); } return contents; }; @@ -92177,29 +90798,29 @@ const de_SpotPriceHistoryList = (output: any, context: __SerdeContext): SpotPric */ const de_StaleIpPermission = (output: any, context: __SerdeContext): StaleIpPermission => { const contents: any = {}; - if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt32(output["fromPort"]) as number; + if (output[_fP] != null) { + contents[_FP] = __strictParseInt32(output[_fP]) as number; } - if (output["ipProtocol"] !== undefined) { - contents.IpProtocol = __expectString(output["ipProtocol"]); + if (output[_iPpr] != null) { + contents[_IPpr] = __expectString(output[_iPpr]); } if (output.ipRanges === "") { - contents.IpRanges = []; - } else if (output["ipRanges"] !== undefined && output["ipRanges"]["item"] !== undefined) { - contents.IpRanges = de_IpRanges(__getArrayIfSingleItem(output["ipRanges"]["item"]), context); + contents[_IRp] = []; + } else if (output[_iRpa] != null && output[_iRpa][_i] != null) { + contents[_IRp] = de_IpRanges(__getArrayIfSingleItem(output[_iRpa][_i]), context); } if (output.prefixListIds === "") { - contents.PrefixListIds = []; - } else if (output["prefixListIds"] !== undefined && output["prefixListIds"]["item"] !== undefined) { - contents.PrefixListIds = de_PrefixListIdSet(__getArrayIfSingleItem(output["prefixListIds"]["item"]), context); + contents[_PLIr] = []; + } else if (output[_pLIr] != null && output[_pLIr][_i] != null) { + contents[_PLIr] = de_PrefixListIdSet(__getArrayIfSingleItem(output[_pLIr][_i]), context); } - if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt32(output["toPort"]) as number; + if (output[_tPo] != null) { + contents[_TP] = __strictParseInt32(output[_tPo]) as number; } if (output.groups === "") { - contents.UserIdGroupPairs = []; - } else if (output["groups"] !== undefined && output["groups"]["item"] !== undefined) { - contents.UserIdGroupPairs = de_UserIdGroupPairSet(__getArrayIfSingleItem(output["groups"]["item"]), context); + contents[_UIGP] = []; + } else if (output[_gr] != null && output[_gr][_i] != null) { + contents[_UIGP] = de_UserIdGroupPairSet(__getArrayIfSingleItem(output[_gr][_i]), context); } return contents; }; @@ -92220,36 +90841,27 @@ const de_StaleIpPermissionSet = (output: any, context: __SerdeContext): StaleIpP */ const de_StaleSecurityGroup = (output: any, context: __SerdeContext): StaleSecurityGroup => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } if (output.staleIpPermissions === "") { - contents.StaleIpPermissions = []; - } else if (output["staleIpPermissions"] !== undefined && output["staleIpPermissions"]["item"] !== undefined) { - contents.StaleIpPermissions = de_StaleIpPermissionSet( - __getArrayIfSingleItem(output["staleIpPermissions"]["item"]), - context - ); + contents[_SIP] = []; + } else if (output[_sIP] != null && output[_sIP][_i] != null) { + contents[_SIP] = de_StaleIpPermissionSet(__getArrayIfSingleItem(output[_sIP][_i]), context); } if (output.staleIpPermissionsEgress === "") { - contents.StaleIpPermissionsEgress = []; - } else if ( - output["staleIpPermissionsEgress"] !== undefined && - output["staleIpPermissionsEgress"]["item"] !== undefined - ) { - contents.StaleIpPermissionsEgress = de_StaleIpPermissionSet( - __getArrayIfSingleItem(output["staleIpPermissionsEgress"]["item"]), - context - ); + contents[_SIPE] = []; + } else if (output[_sIPE] != null && output[_sIPE][_i] != null) { + contents[_SIPE] = de_StaleIpPermissionSet(__getArrayIfSingleItem(output[_sIPE][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -92271,12 +90883,9 @@ const de_StaleSecurityGroupSet = (output: any, context: __SerdeContext): StaleSe const de_StartInstancesResult = (output: any, context: __SerdeContext): StartInstancesResult => { const contents: any = {}; if (output.instancesSet === "") { - contents.StartingInstances = []; - } else if (output["instancesSet"] !== undefined && output["instancesSet"]["item"] !== undefined) { - contents.StartingInstances = de_InstanceStateChangeList( - __getArrayIfSingleItem(output["instancesSet"]["item"]), - context - ); + contents[_SIta] = []; + } else if (output[_iSn] != null && output[_iSn][_i] != null) { + contents[_SIta] = de_InstanceStateChangeList(__getArrayIfSingleItem(output[_iSn][_i]), context); } return contents; }; @@ -92289,11 +90898,8 @@ const de_StartNetworkInsightsAccessScopeAnalysisResult = ( context: __SerdeContext ): StartNetworkInsightsAccessScopeAnalysisResult => { const contents: any = {}; - if (output["networkInsightsAccessScopeAnalysis"] !== undefined) { - contents.NetworkInsightsAccessScopeAnalysis = de_NetworkInsightsAccessScopeAnalysis( - output["networkInsightsAccessScopeAnalysis"], - context - ); + if (output[_nIASAe] != null) { + contents[_NIASAet] = de_NetworkInsightsAccessScopeAnalysis(output[_nIASAe], context); } return contents; }; @@ -92306,8 +90912,8 @@ const de_StartNetworkInsightsAnalysisResult = ( context: __SerdeContext ): StartNetworkInsightsAnalysisResult => { const contents: any = {}; - if (output["networkInsightsAnalysis"] !== undefined) { - contents.NetworkInsightsAnalysis = de_NetworkInsightsAnalysis(output["networkInsightsAnalysis"], context); + if (output[_nIA] != null) { + contents[_NIAe] = de_NetworkInsightsAnalysis(output[_nIA], context); } return contents; }; @@ -92320,8 +90926,8 @@ const de_StartVpcEndpointServicePrivateDnsVerificationResult = ( context: __SerdeContext ): StartVpcEndpointServicePrivateDnsVerificationResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.ReturnValue = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_RV] = __parseBoolean(output[_r]); } return contents; }; @@ -92331,11 +90937,11 @@ const de_StartVpcEndpointServicePrivateDnsVerificationResult = ( */ const de_StateReason = (output: any, context: __SerdeContext): StateReason => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -92346,12 +90952,9 @@ const de_StateReason = (output: any, context: __SerdeContext): StateReason => { const de_StopInstancesResult = (output: any, context: __SerdeContext): StopInstancesResult => { const contents: any = {}; if (output.instancesSet === "") { - contents.StoppingInstances = []; - } else if (output["instancesSet"] !== undefined && output["instancesSet"]["item"] !== undefined) { - contents.StoppingInstances = de_InstanceStateChangeList( - __getArrayIfSingleItem(output["instancesSet"]["item"]), - context - ); + contents[_SIto] = []; + } else if (output[_iSn] != null && output[_iSn][_i] != null) { + contents[_SIto] = de_InstanceStateChangeList(__getArrayIfSingleItem(output[_iSn][_i]), context); } return contents; }; @@ -92361,8 +90964,8 @@ const de_StopInstancesResult = (output: any, context: __SerdeContext): StopInsta */ const de_Storage = (output: any, context: __SerdeContext): Storage => { const contents: any = {}; - if (output["S3"] !== undefined) { - contents.S3 = de_S3Storage(output["S3"], context); + if (output[_S_] != null) { + contents[_S_] = de_S3Storage(output[_S_], context); } return contents; }; @@ -92372,26 +90975,26 @@ const de_Storage = (output: any, context: __SerdeContext): Storage => { */ const de_StoreImageTaskResult = (output: any, context: __SerdeContext): StoreImageTaskResult => { const contents: any = {}; - if (output["amiId"] !== undefined) { - contents.AmiId = __expectString(output["amiId"]); + if (output[_aIm] != null) { + contents[_AIm] = __expectString(output[_aIm]); } - if (output["taskStartTime"] !== undefined) { - contents.TaskStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["taskStartTime"])); + if (output[_tSTa] != null) { + contents[_TSTa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_tSTa])); } - if (output["bucket"] !== undefined) { - contents.Bucket = __expectString(output["bucket"]); + if (output[_bu] != null) { + contents[_B] = __expectString(output[_bu]); } - if (output["s3objectKey"] !== undefined) { - contents.S3objectKey = __expectString(output["s3objectKey"]); + if (output[_sKo] != null) { + contents[_SKo] = __expectString(output[_sKo]); } - if (output["progressPercentage"] !== undefined) { - contents.ProgressPercentage = __strictParseInt32(output["progressPercentage"]) as number; + if (output[_pP] != null) { + contents[_PP] = __strictParseInt32(output[_pP]) as number; } - if (output["storeTaskState"] !== undefined) { - contents.StoreTaskState = __expectString(output["storeTaskState"]); + if (output[_sTS] != null) { + contents[_STSt] = __expectString(output[_sTS]); } - if (output["storeTaskFailureReason"] !== undefined) { - contents.StoreTaskFailureReason = __expectString(output["storeTaskFailureReason"]); + if (output[_sTFR] != null) { + contents[_STFR] = __expectString(output[_sTFR]); } return contents; }; @@ -92423,81 +91026,72 @@ const de_StringList = (output: any, context: __SerdeContext): string[] => { */ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["availabilityZoneId"] !== undefined) { - contents.AvailabilityZoneId = __expectString(output["availabilityZoneId"]); + if (output[_aZI] != null) { + contents[_AZI] = __expectString(output[_aZI]); } - if (output["availableIpAddressCount"] !== undefined) { - contents.AvailableIpAddressCount = __strictParseInt32(output["availableIpAddressCount"]) as number; + if (output[_aIAC] != null) { + contents[_AIAC] = __strictParseInt32(output[_aIAC]) as number; } - if (output["cidrBlock"] !== undefined) { - contents.CidrBlock = __expectString(output["cidrBlock"]); + if (output[_cB] != null) { + contents[_CB] = __expectString(output[_cB]); } - if (output["defaultForAz"] !== undefined) { - contents.DefaultForAz = __parseBoolean(output["defaultForAz"]); + if (output[_dFA] != null) { + contents[_DFA] = __parseBoolean(output[_dFA]); } - if (output["enableLniAtDeviceIndex"] !== undefined) { - contents.EnableLniAtDeviceIndex = __strictParseInt32(output["enableLniAtDeviceIndex"]) as number; + if (output[_eLADI] != null) { + contents[_ELADI] = __strictParseInt32(output[_eLADI]) as number; } - if (output["mapPublicIpOnLaunch"] !== undefined) { - contents.MapPublicIpOnLaunch = __parseBoolean(output["mapPublicIpOnLaunch"]); + if (output[_mPIOL] != null) { + contents[_MPIOL] = __parseBoolean(output[_mPIOL]); } - if (output["mapCustomerOwnedIpOnLaunch"] !== undefined) { - contents.MapCustomerOwnedIpOnLaunch = __parseBoolean(output["mapCustomerOwnedIpOnLaunch"]); + if (output[_mCOIOL] != null) { + contents[_MCOIOL] = __parseBoolean(output[_mCOIOL]); } - if (output["customerOwnedIpv4Pool"] !== undefined) { - contents.CustomerOwnedIpv4Pool = __expectString(output["customerOwnedIpv4Pool"]); + if (output[_cOIP] != null) { + contents[_COIP] = __expectString(output[_cOIP]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["assignIpv6AddressOnCreation"] !== undefined) { - contents.AssignIpv6AddressOnCreation = __parseBoolean(output["assignIpv6AddressOnCreation"]); + if (output[_aIAOC] != null) { + contents[_AIAOC] = __parseBoolean(output[_aIAOC]); } if (output.ipv6CidrBlockAssociationSet === "") { - contents.Ipv6CidrBlockAssociationSet = []; - } else if ( - output["ipv6CidrBlockAssociationSet"] !== undefined && - output["ipv6CidrBlockAssociationSet"]["item"] !== undefined - ) { - contents.Ipv6CidrBlockAssociationSet = de_SubnetIpv6CidrBlockAssociationSet( - __getArrayIfSingleItem(output["ipv6CidrBlockAssociationSet"]["item"]), - context - ); + contents[_ICBAS] = []; + } else if (output[_iCBAS] != null && output[_iCBAS][_i] != null) { + contents[_ICBAS] = de_SubnetIpv6CidrBlockAssociationSet(__getArrayIfSingleItem(output[_iCBAS][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["subnetArn"] !== undefined) { - contents.SubnetArn = __expectString(output["subnetArn"]); + if (output[_sAub] != null) { + contents[_SAub] = __expectString(output[_sAub]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["enableDns64"] !== undefined) { - contents.EnableDns64 = __parseBoolean(output["enableDns64"]); + if (output[_eDn] != null) { + contents[_EDn] = __parseBoolean(output[_eDn]); } - if (output["ipv6Native"] !== undefined) { - contents.Ipv6Native = __parseBoolean(output["ipv6Native"]); + if (output[_iN] != null) { + contents[_IN] = __parseBoolean(output[_iN]); } - if (output["privateDnsNameOptionsOnLaunch"] !== undefined) { - contents.PrivateDnsNameOptionsOnLaunch = de_PrivateDnsNameOptionsOnLaunch( - output["privateDnsNameOptionsOnLaunch"], - context - ); + if (output[_pDNOOL] != null) { + contents[_PDNOOL] = de_PrivateDnsNameOptionsOnLaunch(output[_pDNOOL], context); } return contents; }; @@ -92507,11 +91101,11 @@ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { */ const de_SubnetAssociation = (output: any, context: __SerdeContext): SubnetAssociation => { const contents: any = {}; - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -92532,11 +91126,11 @@ const de_SubnetAssociationList = (output: any, context: __SerdeContext): SubnetA */ const de_SubnetCidrBlockState = (output: any, context: __SerdeContext): SubnetCidrBlockState => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } return contents; }; @@ -92546,28 +91140,28 @@ const de_SubnetCidrBlockState = (output: any, context: __SerdeContext): SubnetCi */ const de_SubnetCidrReservation = (output: any, context: __SerdeContext): SubnetCidrReservation => { const contents: any = {}; - if (output["subnetCidrReservationId"] !== undefined) { - contents.SubnetCidrReservationId = __expectString(output["subnetCidrReservationId"]); + if (output[_sCRI] != null) { + contents[_SCRI] = __expectString(output[_sCRI]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["cidr"] !== undefined) { - contents.Cidr = __expectString(output["cidr"]); + if (output[_ci] != null) { + contents[_C] = __expectString(output[_ci]); } - if (output["reservationType"] !== undefined) { - contents.ReservationType = __expectString(output["reservationType"]); + if (output[_rT] != null) { + contents[_RTe] = __expectString(output[_rT]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -92588,14 +91182,14 @@ const de_SubnetCidrReservationList = (output: any, context: __SerdeContext): Sub */ const de_SubnetIpv6CidrBlockAssociation = (output: any, context: __SerdeContext): SubnetIpv6CidrBlockAssociation => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["ipv6CidrBlock"] !== undefined) { - contents.Ipv6CidrBlock = __expectString(output["ipv6CidrBlock"]); + if (output[_iCB] != null) { + contents[_ICB] = __expectString(output[_iCB]); } - if (output["ipv6CidrBlockState"] !== undefined) { - contents.Ipv6CidrBlockState = de_SubnetCidrBlockState(output["ipv6CidrBlockState"], context); + if (output[_iCBS] != null) { + contents[_ICBS] = de_SubnetCidrBlockState(output[_iCBS], context); } return contents; }; @@ -92630,20 +91224,20 @@ const de_SubnetList = (output: any, context: __SerdeContext): Subnet[] => { */ const de_Subscription = (output: any, context: __SerdeContext): Subscription => { const contents: any = {}; - if (output["source"] !== undefined) { - contents.Source = __expectString(output["source"]); + if (output[_s] != null) { + contents[_S] = __expectString(output[_s]); } - if (output["destination"] !== undefined) { - contents.Destination = __expectString(output["destination"]); + if (output[_d] != null) { + contents[_D] = __expectString(output[_d]); } - if (output["metric"] !== undefined) { - contents.Metric = __expectString(output["metric"]); + if (output[_met] != null) { + contents[_Met] = __expectString(output[_met]); } - if (output["statistic"] !== undefined) { - contents.Statistic = __expectString(output["statistic"]); + if (output[_stat] != null) { + contents[_Sta] = __expectString(output[_stat]); } - if (output["period"] !== undefined) { - contents.Period = __expectString(output["period"]); + if (output[_pe] != null) { + contents[_Per] = __expectString(output[_pe]); } return contents; }; @@ -92667,8 +91261,8 @@ const de_SuccessfulInstanceCreditSpecificationItem = ( context: __SerdeContext ): SuccessfulInstanceCreditSpecificationItem => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } return contents; }; @@ -92695,8 +91289,8 @@ const de_SuccessfulQueuedPurchaseDeletion = ( context: __SerdeContext ): SuccessfulQueuedPurchaseDeletion => { const contents: any = {}; - if (output["reservedInstancesId"] !== undefined) { - contents.ReservedInstancesId = __expectString(output["reservedInstancesId"]); + if (output[_rII] != null) { + contents[_RIIe] = __expectString(output[_rII]); } return contents; }; @@ -92745,11 +91339,11 @@ const de_SupportedIpAddressTypes = (output: any, context: __SerdeContext): Servi */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["key"] !== undefined) { - contents.Key = __expectString(output["key"]); + if (output[_k] != null) { + contents[_Ke] = __expectString(output[_k]); } - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -92759,17 +91353,17 @@ const de_Tag = (output: any, context: __SerdeContext): Tag => { */ const de_TagDescription = (output: any, context: __SerdeContext): TagDescription => { const contents: any = {}; - if (output["key"] !== undefined) { - contents.Key = __expectString(output["key"]); + if (output[_k] != null) { + contents[_Ke] = __expectString(output[_k]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["value"] !== undefined) { - contents.Value = __expectString(output["value"]); + if (output[_v] != null) { + contents[_Va] = __expectString(output[_v]); } return contents; }; @@ -92801,13 +91395,13 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TagSpecification = (output: any, context: __SerdeContext): TagSpecification => { const contents: any = {}; - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } if (output.Tag === "") { - contents.Tags = []; - } else if (output["Tag"] !== undefined && output["Tag"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tag"]["item"]), context); + contents[_Ta] = []; + } else if (output[_Tag] != null && output[_Tag][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Tag][_i]), context); } return contents; }; @@ -92828,20 +91422,20 @@ const de_TagSpecificationList = (output: any, context: __SerdeContext): TagSpeci */ const de_TargetCapacitySpecification = (output: any, context: __SerdeContext): TargetCapacitySpecification => { const contents: any = {}; - if (output["totalTargetCapacity"] !== undefined) { - contents.TotalTargetCapacity = __strictParseInt32(output["totalTargetCapacity"]) as number; + if (output[_tTC] != null) { + contents[_TTC] = __strictParseInt32(output[_tTC]) as number; } - if (output["onDemandTargetCapacity"] !== undefined) { - contents.OnDemandTargetCapacity = __strictParseInt32(output["onDemandTargetCapacity"]) as number; + if (output[_oDTC] != null) { + contents[_ODTC] = __strictParseInt32(output[_oDTC]) as number; } - if (output["spotTargetCapacity"] !== undefined) { - contents.SpotTargetCapacity = __strictParseInt32(output["spotTargetCapacity"]) as number; + if (output[_sTC] != null) { + contents[_STC] = __strictParseInt32(output[_sTC]) as number; } - if (output["defaultTargetCapacityType"] !== undefined) { - contents.DefaultTargetCapacityType = __expectString(output["defaultTargetCapacityType"]); + if (output[_dTCT] != null) { + contents[_DTCT] = __expectString(output[_dTCT]); } - if (output["targetCapacityUnitType"] !== undefined) { - contents.TargetCapacityUnitType = __expectString(output["targetCapacityUnitType"]); + if (output[_tCUT] != null) { + contents[_TCUT] = __expectString(output[_tCUT]); } return contents; }; @@ -92851,11 +91445,11 @@ const de_TargetCapacitySpecification = (output: any, context: __SerdeContext): T */ const de_TargetConfiguration = (output: any, context: __SerdeContext): TargetConfiguration => { const contents: any = {}; - if (output["instanceCount"] !== undefined) { - contents.InstanceCount = __strictParseInt32(output["instanceCount"]) as number; + if (output[_iC] != null) { + contents[_IC] = __strictParseInt32(output[_iC]) as number; } - if (output["offeringId"] !== undefined) { - contents.OfferingId = __expectString(output["offeringId"]); + if (output[_oIf] != null) { + contents[_OI] = __expectString(output[_oIf]); } return contents; }; @@ -92865,8 +91459,8 @@ const de_TargetConfiguration = (output: any, context: __SerdeContext): TargetCon */ const de_TargetGroup = (output: any, context: __SerdeContext): TargetGroup => { const contents: any = {}; - if (output["arn"] !== undefined) { - contents.Arn = __expectString(output["arn"]); + if (output[_ar] != null) { + contents[_Ar] = __expectString(output[_ar]); } return contents; }; @@ -92888,9 +91482,9 @@ const de_TargetGroups = (output: any, context: __SerdeContext): TargetGroup[] => const de_TargetGroupsConfig = (output: any, context: __SerdeContext): TargetGroupsConfig => { const contents: any = {}; if (output.targetGroups === "") { - contents.TargetGroups = []; - } else if (output["targetGroups"] !== undefined && output["targetGroups"]["item"] !== undefined) { - contents.TargetGroups = de_TargetGroups(__getArrayIfSingleItem(output["targetGroups"]["item"]), context); + contents[_TG] = []; + } else if (output[_tGa] != null && output[_tGa][_i] != null) { + contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_tGa][_i]), context); } return contents; }; @@ -92900,25 +91494,25 @@ const de_TargetGroupsConfig = (output: any, context: __SerdeContext): TargetGrou */ const de_TargetNetwork = (output: any, context: __SerdeContext): TargetNetwork => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["targetNetworkId"] !== undefined) { - contents.TargetNetworkId = __expectString(output["targetNetworkId"]); + if (output[_tNI] != null) { + contents[_TNI] = __expectString(output[_tNI]); } - if (output["clientVpnEndpointId"] !== undefined) { - contents.ClientVpnEndpointId = __expectString(output["clientVpnEndpointId"]); + if (output[_cVEI] != null) { + contents[_CVEI] = __expectString(output[_cVEI]); } - if (output["status"] !== undefined) { - contents.Status = de_AssociationStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_AssociationStatus(output[_sta], context); } if (output.securityGroups === "") { - contents.SecurityGroups = []; - } else if (output["securityGroups"] !== undefined && output["securityGroups"]["item"] !== undefined) { - contents.SecurityGroups = de_ValueStringList(__getArrayIfSingleItem(output["securityGroups"]["item"]), context); + contents[_SG] = []; + } else if (output[_sGe] != null && output[_sGe][_i] != null) { + contents[_SG] = de_ValueStringList(__getArrayIfSingleItem(output[_sGe][_i]), context); } return contents; }; @@ -92939,11 +91533,11 @@ const de_TargetNetworkSet = (output: any, context: __SerdeContext): TargetNetwor */ const de_TargetReservationValue = (output: any, context: __SerdeContext): TargetReservationValue => { const contents: any = {}; - if (output["reservationValue"] !== undefined) { - contents.ReservationValue = de_ReservationValue(output["reservationValue"], context); + if (output[_rVe] != null) { + contents[_RVe] = de_ReservationValue(output[_rVe], context); } - if (output["targetConfiguration"] !== undefined) { - contents.TargetConfiguration = de_TargetConfiguration(output["targetConfiguration"], context); + if (output[_tCa] != null) { + contents[_TCar] = de_TargetConfiguration(output[_tCa], context); } return contents; }; @@ -92967,19 +91561,16 @@ const de_TerminateClientVpnConnectionsResult = ( context: __SerdeContext ): TerminateClientVpnConnectionsResult => { const contents: any = {}; - if (output["clientVpnEndpointId"] !== undefined) { - contents.ClientVpnEndpointId = __expectString(output["clientVpnEndpointId"]); + if (output[_cVEI] != null) { + contents[_CVEI] = __expectString(output[_cVEI]); } - if (output["username"] !== undefined) { - contents.Username = __expectString(output["username"]); + if (output[_us] != null) { + contents[_Us] = __expectString(output[_us]); } if (output.connectionStatuses === "") { - contents.ConnectionStatuses = []; - } else if (output["connectionStatuses"] !== undefined && output["connectionStatuses"]["item"] !== undefined) { - contents.ConnectionStatuses = de_TerminateConnectionStatusSet( - __getArrayIfSingleItem(output["connectionStatuses"]["item"]), - context - ); + contents[_CSon] = []; + } else if (output[_cSon] != null && output[_cSon][_i] != null) { + contents[_CSon] = de_TerminateConnectionStatusSet(__getArrayIfSingleItem(output[_cSon][_i]), context); } return contents; }; @@ -92989,14 +91580,14 @@ const de_TerminateClientVpnConnectionsResult = ( */ const de_TerminateConnectionStatus = (output: any, context: __SerdeContext): TerminateConnectionStatus => { const contents: any = {}; - if (output["connectionId"] !== undefined) { - contents.ConnectionId = __expectString(output["connectionId"]); + if (output[_cIon] != null) { + contents[_CIo] = __expectString(output[_cIon]); } - if (output["previousStatus"] !== undefined) { - contents.PreviousStatus = de_ClientVpnConnectionStatus(output["previousStatus"], context); + if (output[_pSre] != null) { + contents[_PSre] = de_ClientVpnConnectionStatus(output[_pSre], context); } - if (output["currentStatus"] !== undefined) { - contents.CurrentStatus = de_ClientVpnConnectionStatus(output["currentStatus"], context); + if (output[_cSur] != null) { + contents[_CSur] = de_ClientVpnConnectionStatus(output[_cSur], context); } return contents; }; @@ -93018,12 +91609,9 @@ const de_TerminateConnectionStatusSet = (output: any, context: __SerdeContext): const de_TerminateInstancesResult = (output: any, context: __SerdeContext): TerminateInstancesResult => { const contents: any = {}; if (output.instancesSet === "") { - contents.TerminatingInstances = []; - } else if (output["instancesSet"] !== undefined && output["instancesSet"]["item"] !== undefined) { - contents.TerminatingInstances = de_InstanceStateChangeList( - __getArrayIfSingleItem(output["instancesSet"]["item"]), - context - ); + contents[_TIer] = []; + } else if (output[_iSn] != null && output[_iSn][_i] != null) { + contents[_TIer] = de_InstanceStateChangeList(__getArrayIfSingleItem(output[_iSn][_i]), context); } return contents; }; @@ -93044,8 +91632,8 @@ const de_ThreadsPerCoreList = (output: any, context: __SerdeContext): number[] = */ const de_ThroughResourcesStatement = (output: any, context: __SerdeContext): ThroughResourcesStatement => { const contents: any = {}; - if (output["resourceStatement"] !== undefined) { - contents.ResourceStatement = de_ResourceStatement(output["resourceStatement"], context); + if (output[_rSes] != null) { + contents[_RSe] = de_ResourceStatement(output[_rSes], context); } return contents; }; @@ -93066,11 +91654,11 @@ const de_ThroughResourcesStatementList = (output: any, context: __SerdeContext): */ const de_TotalLocalStorageGB = (output: any, context: __SerdeContext): TotalLocalStorageGB => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseFloat(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseFloat(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseFloat(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseFloat(output[_ma]) as number; } return contents; }; @@ -93080,40 +91668,31 @@ const de_TotalLocalStorageGB = (output: any, context: __SerdeContext): TotalLoca */ const de_TrafficMirrorFilter = (output: any, context: __SerdeContext): TrafficMirrorFilter => { const contents: any = {}; - if (output["trafficMirrorFilterId"] !== undefined) { - contents.TrafficMirrorFilterId = __expectString(output["trafficMirrorFilterId"]); + if (output[_tMFI] != null) { + contents[_TMFI] = __expectString(output[_tMFI]); } if (output.ingressFilterRuleSet === "") { - contents.IngressFilterRules = []; - } else if (output["ingressFilterRuleSet"] !== undefined && output["ingressFilterRuleSet"]["item"] !== undefined) { - contents.IngressFilterRules = de_TrafficMirrorFilterRuleList( - __getArrayIfSingleItem(output["ingressFilterRuleSet"]["item"]), - context - ); + contents[_IFRn] = []; + } else if (output[_iFRS] != null && output[_iFRS][_i] != null) { + contents[_IFRn] = de_TrafficMirrorFilterRuleList(__getArrayIfSingleItem(output[_iFRS][_i]), context); } if (output.egressFilterRuleSet === "") { - contents.EgressFilterRules = []; - } else if (output["egressFilterRuleSet"] !== undefined && output["egressFilterRuleSet"]["item"] !== undefined) { - contents.EgressFilterRules = de_TrafficMirrorFilterRuleList( - __getArrayIfSingleItem(output["egressFilterRuleSet"]["item"]), - context - ); + contents[_EFR] = []; + } else if (output[_eFRS] != null && output[_eFRS][_i] != null) { + contents[_EFR] = de_TrafficMirrorFilterRuleList(__getArrayIfSingleItem(output[_eFRS][_i]), context); } if (output.networkServiceSet === "") { - contents.NetworkServices = []; - } else if (output["networkServiceSet"] !== undefined && output["networkServiceSet"]["item"] !== undefined) { - contents.NetworkServices = de_TrafficMirrorNetworkServiceList( - __getArrayIfSingleItem(output["networkServiceSet"]["item"]), - context - ); + contents[_NSe] = []; + } else if (output[_nSS] != null && output[_nSS][_i] != null) { + contents[_NSe] = de_TrafficMirrorNetworkServiceList(__getArrayIfSingleItem(output[_nSS][_i]), context); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -93123,38 +91702,38 @@ const de_TrafficMirrorFilter = (output: any, context: __SerdeContext): TrafficMi */ const de_TrafficMirrorFilterRule = (output: any, context: __SerdeContext): TrafficMirrorFilterRule => { const contents: any = {}; - if (output["trafficMirrorFilterRuleId"] !== undefined) { - contents.TrafficMirrorFilterRuleId = __expectString(output["trafficMirrorFilterRuleId"]); + if (output[_tMFRI] != null) { + contents[_TMFRI] = __expectString(output[_tMFRI]); } - if (output["trafficMirrorFilterId"] !== undefined) { - contents.TrafficMirrorFilterId = __expectString(output["trafficMirrorFilterId"]); + if (output[_tMFI] != null) { + contents[_TMFI] = __expectString(output[_tMFI]); } - if (output["trafficDirection"] !== undefined) { - contents.TrafficDirection = __expectString(output["trafficDirection"]); + if (output[_tDr] != null) { + contents[_TD] = __expectString(output[_tDr]); } - if (output["ruleNumber"] !== undefined) { - contents.RuleNumber = __strictParseInt32(output["ruleNumber"]) as number; + if (output[_rN] != null) { + contents[_RNu] = __strictParseInt32(output[_rN]) as number; } - if (output["ruleAction"] !== undefined) { - contents.RuleAction = __expectString(output["ruleAction"]); + if (output[_rA] != null) { + contents[_RAu] = __expectString(output[_rA]); } - if (output["protocol"] !== undefined) { - contents.Protocol = __strictParseInt32(output["protocol"]) as number; + if (output[_pr] != null) { + contents[_P] = __strictParseInt32(output[_pr]) as number; } - if (output["destinationPortRange"] !== undefined) { - contents.DestinationPortRange = de_TrafficMirrorPortRange(output["destinationPortRange"], context); + if (output[_dPR] != null) { + contents[_DPR] = de_TrafficMirrorPortRange(output[_dPR], context); } - if (output["sourcePortRange"] !== undefined) { - contents.SourcePortRange = de_TrafficMirrorPortRange(output["sourcePortRange"], context); + if (output[_sPR] != null) { + contents[_SPR] = de_TrafficMirrorPortRange(output[_sPR], context); } - if (output["destinationCidrBlock"] !== undefined) { - contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]); + if (output[_dCB] != null) { + contents[_DCB] = __expectString(output[_dCB]); } - if (output["sourceCidrBlock"] !== undefined) { - contents.SourceCidrBlock = __expectString(output["sourceCidrBlock"]); + if (output[_sCB] != null) { + contents[_SCB] = __expectString(output[_sCB]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } return contents; }; @@ -93197,11 +91776,11 @@ const de_TrafficMirrorNetworkServiceList = (output: any, context: __SerdeContext */ const de_TrafficMirrorPortRange = (output: any, context: __SerdeContext): TrafficMirrorPortRange => { const contents: any = {}; - if (output["fromPort"] !== undefined) { - contents.FromPort = __strictParseInt32(output["fromPort"]) as number; + if (output[_fP] != null) { + contents[_FP] = __strictParseInt32(output[_fP]) as number; } - if (output["toPort"] !== undefined) { - contents.ToPort = __strictParseInt32(output["toPort"]) as number; + if (output[_tPo] != null) { + contents[_TP] = __strictParseInt32(output[_tPo]) as number; } return contents; }; @@ -93211,37 +91790,37 @@ const de_TrafficMirrorPortRange = (output: any, context: __SerdeContext): Traffi */ const de_TrafficMirrorSession = (output: any, context: __SerdeContext): TrafficMirrorSession => { const contents: any = {}; - if (output["trafficMirrorSessionId"] !== undefined) { - contents.TrafficMirrorSessionId = __expectString(output["trafficMirrorSessionId"]); + if (output[_tMSI] != null) { + contents[_TMSI] = __expectString(output[_tMSI]); } - if (output["trafficMirrorTargetId"] !== undefined) { - contents.TrafficMirrorTargetId = __expectString(output["trafficMirrorTargetId"]); + if (output[_tMTI] != null) { + contents[_TMTI] = __expectString(output[_tMTI]); } - if (output["trafficMirrorFilterId"] !== undefined) { - contents.TrafficMirrorFilterId = __expectString(output["trafficMirrorFilterId"]); + if (output[_tMFI] != null) { + contents[_TMFI] = __expectString(output[_tMFI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["packetLength"] !== undefined) { - contents.PacketLength = __strictParseInt32(output["packetLength"]) as number; + if (output[_pLa] != null) { + contents[_PL] = __strictParseInt32(output[_pLa]) as number; } - if (output["sessionNumber"] !== undefined) { - contents.SessionNumber = __strictParseInt32(output["sessionNumber"]) as number; + if (output[_sNes] != null) { + contents[_SN] = __strictParseInt32(output[_sNes]) as number; } - if (output["virtualNetworkId"] !== undefined) { - contents.VirtualNetworkId = __strictParseInt32(output["virtualNetworkId"]) as number; + if (output[_vNI] != null) { + contents[_VNI] = __strictParseInt32(output[_vNI]) as number; } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -93262,31 +91841,31 @@ const de_TrafficMirrorSessionSet = (output: any, context: __SerdeContext): Traff */ const de_TrafficMirrorTarget = (output: any, context: __SerdeContext): TrafficMirrorTarget => { const contents: any = {}; - if (output["trafficMirrorTargetId"] !== undefined) { - contents.TrafficMirrorTargetId = __expectString(output["trafficMirrorTargetId"]); + if (output[_tMTI] != null) { + contents[_TMTI] = __expectString(output[_tMTI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["networkLoadBalancerArn"] !== undefined) { - contents.NetworkLoadBalancerArn = __expectString(output["networkLoadBalancerArn"]); + if (output[_nLBA] != null) { + contents[_NLBA] = __expectString(output[_nLBA]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["gatewayLoadBalancerEndpointId"] !== undefined) { - contents.GatewayLoadBalancerEndpointId = __expectString(output["gatewayLoadBalancerEndpointId"]); + if (output[_gLBEI] != null) { + contents[_GLBEI] = __expectString(output[_gLBEI]); } return contents; }; @@ -93307,31 +91886,31 @@ const de_TrafficMirrorTargetSet = (output: any, context: __SerdeContext): Traffi */ const de_TransitGateway = (output: any, context: __SerdeContext): TransitGateway => { const contents: any = {}; - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["transitGatewayArn"] !== undefined) { - contents.TransitGatewayArn = __expectString(output["transitGatewayArn"]); + if (output[_tGAra] != null) { + contents[_TGAran] = __expectString(output[_tGAra]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output["options"] !== undefined) { - contents.Options = de_TransitGatewayOptions(output["options"], context); + if (output[_op] != null) { + contents[_O] = de_TransitGatewayOptions(output[_op], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -93341,20 +91920,20 @@ const de_TransitGateway = (output: any, context: __SerdeContext): TransitGateway */ const de_TransitGatewayAssociation = (output: any, context: __SerdeContext): TransitGatewayAssociation => { const contents: any = {}; - if (output["transitGatewayRouteTableId"] !== undefined) { - contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]); + if (output[_tGRTI] != null) { + contents[_TGRTI] = __expectString(output[_tGRTI]); } - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -93364,37 +91943,37 @@ const de_TransitGatewayAssociation = (output: any, context: __SerdeContext): Tra */ const de_TransitGatewayAttachment = (output: any, context: __SerdeContext): TransitGatewayAttachment => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["transitGatewayOwnerId"] !== undefined) { - contents.TransitGatewayOwnerId = __expectString(output["transitGatewayOwnerId"]); + if (output[_tGOI] != null) { + contents[_TGOI] = __expectString(output[_tGOI]); } - if (output["resourceOwnerId"] !== undefined) { - contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]); + if (output[_rOI] != null) { + contents[_ROI] = __expectString(output[_rOI]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["association"] !== undefined) { - contents.Association = de_TransitGatewayAttachmentAssociation(output["association"], context); + if (output[_ass] != null) { + contents[_Asso] = de_TransitGatewayAttachmentAssociation(output[_ass], context); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -93407,11 +91986,11 @@ const de_TransitGatewayAttachmentAssociation = ( context: __SerdeContext ): TransitGatewayAttachmentAssociation => { const contents: any = {}; - if (output["transitGatewayRouteTableId"] !== undefined) { - contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]); + if (output[_tGRTI] != null) { + contents[_TGRTI] = __expectString(output[_tGRTI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -93424,20 +92003,20 @@ const de_TransitGatewayAttachmentBgpConfiguration = ( context: __SerdeContext ): TransitGatewayAttachmentBgpConfiguration => { const contents: any = {}; - if (output["transitGatewayAsn"] !== undefined) { - contents.TransitGatewayAsn = __strictParseLong(output["transitGatewayAsn"]) as number; + if (output[_tGAran] != null) { + contents[_TGArans] = __strictParseLong(output[_tGAran]) as number; } - if (output["peerAsn"] !== undefined) { - contents.PeerAsn = __strictParseLong(output["peerAsn"]) as number; + if (output[_pAee] != null) { + contents[_PAee] = __strictParseLong(output[_pAee]) as number; } - if (output["transitGatewayAddress"] !== undefined) { - contents.TransitGatewayAddress = __expectString(output["transitGatewayAddress"]); + if (output[_tGArans] != null) { + contents[_TGA] = __expectString(output[_tGArans]); } - if (output["peerAddress"] !== undefined) { - contents.PeerAddress = __expectString(output["peerAddress"]); + if (output[_pAe] != null) { + contents[_PAe] = __expectString(output[_pAe]); } - if (output["bgpStatus"] !== undefined) { - contents.BgpStatus = __expectString(output["bgpStatus"]); + if (output[_bSg] != null) { + contents[_BS] = __expectString(output[_bSg]); } return contents; }; @@ -93475,11 +92054,11 @@ const de_TransitGatewayAttachmentPropagation = ( context: __SerdeContext ): TransitGatewayAttachmentPropagation => { const contents: any = {}; - if (output["transitGatewayRouteTableId"] !== undefined) { - contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]); + if (output[_tGRTI] != null) { + contents[_TGRTI] = __expectString(output[_tGRTI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -93503,28 +92082,28 @@ const de_TransitGatewayAttachmentPropagationList = ( */ const de_TransitGatewayConnect = (output: any, context: __SerdeContext): TransitGatewayConnect => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["transportTransitGatewayAttachmentId"] !== undefined) { - contents.TransportTransitGatewayAttachmentId = __expectString(output["transportTransitGatewayAttachmentId"]); + if (output[_tTGAI] != null) { + contents[_TTGAI] = __expectString(output[_tTGAI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output["options"] !== undefined) { - contents.Options = de_TransitGatewayConnectOptions(output["options"], context); + if (output[_op] != null) { + contents[_O] = de_TransitGatewayConnectOptions(output[_op], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -93545,8 +92124,8 @@ const de_TransitGatewayConnectList = (output: any, context: __SerdeContext): Tra */ const de_TransitGatewayConnectOptions = (output: any, context: __SerdeContext): TransitGatewayConnectOptions => { const contents: any = {}; - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } return contents; }; @@ -93556,28 +92135,25 @@ const de_TransitGatewayConnectOptions = (output: any, context: __SerdeContext): */ const de_TransitGatewayConnectPeer = (output: any, context: __SerdeContext): TransitGatewayConnectPeer => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["transitGatewayConnectPeerId"] !== undefined) { - contents.TransitGatewayConnectPeerId = __expectString(output["transitGatewayConnectPeerId"]); + if (output[_tGCPI] != null) { + contents[_TGCPI] = __expectString(output[_tGCPI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output["connectPeerConfiguration"] !== undefined) { - contents.ConnectPeerConfiguration = de_TransitGatewayConnectPeerConfiguration( - output["connectPeerConfiguration"], - context - ); + if (output[_cPC] != null) { + contents[_CPC] = de_TransitGatewayConnectPeerConfiguration(output[_cPC], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -93590,30 +92166,24 @@ const de_TransitGatewayConnectPeerConfiguration = ( context: __SerdeContext ): TransitGatewayConnectPeerConfiguration => { const contents: any = {}; - if (output["transitGatewayAddress"] !== undefined) { - contents.TransitGatewayAddress = __expectString(output["transitGatewayAddress"]); + if (output[_tGArans] != null) { + contents[_TGA] = __expectString(output[_tGArans]); } - if (output["peerAddress"] !== undefined) { - contents.PeerAddress = __expectString(output["peerAddress"]); + if (output[_pAe] != null) { + contents[_PAe] = __expectString(output[_pAe]); } if (output.insideCidrBlocks === "") { - contents.InsideCidrBlocks = []; - } else if (output["insideCidrBlocks"] !== undefined && output["insideCidrBlocks"]["item"] !== undefined) { - contents.InsideCidrBlocks = de_InsideCidrBlocksStringList( - __getArrayIfSingleItem(output["insideCidrBlocks"]["item"]), - context - ); + contents[_ICBn] = []; + } else if (output[_iCBn] != null && output[_iCBn][_i] != null) { + contents[_ICBn] = de_InsideCidrBlocksStringList(__getArrayIfSingleItem(output[_iCBn][_i]), context); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } if (output.bgpConfigurations === "") { - contents.BgpConfigurations = []; - } else if (output["bgpConfigurations"] !== undefined && output["bgpConfigurations"]["item"] !== undefined) { - contents.BgpConfigurations = de_TransitGatewayAttachmentBgpConfigurationList( - __getArrayIfSingleItem(output["bgpConfigurations"]["item"]), - context - ); + contents[_BCg] = []; + } else if (output[_bCg] != null && output[_bCg][_i] != null) { + contents[_BCg] = de_TransitGatewayAttachmentBgpConfigurationList(__getArrayIfSingleItem(output[_bCg][_i]), context); } return contents; }; @@ -93648,22 +92218,16 @@ const de_TransitGatewayMulticastDeregisteredGroupMembers = ( context: __SerdeContext ): TransitGatewayMulticastDeregisteredGroupMembers => { const contents: any = {}; - if (output["transitGatewayMulticastDomainId"] !== undefined) { - contents.TransitGatewayMulticastDomainId = __expectString(output["transitGatewayMulticastDomainId"]); + if (output[_tGMDI] != null) { + contents[_TGMDI] = __expectString(output[_tGMDI]); } if (output.deregisteredNetworkInterfaceIds === "") { - contents.DeregisteredNetworkInterfaceIds = []; - } else if ( - output["deregisteredNetworkInterfaceIds"] !== undefined && - output["deregisteredNetworkInterfaceIds"]["item"] !== undefined - ) { - contents.DeregisteredNetworkInterfaceIds = de_ValueStringList( - __getArrayIfSingleItem(output["deregisteredNetworkInterfaceIds"]["item"]), - context - ); + contents[_DNII] = []; + } else if (output[_dNII] != null && output[_dNII][_i] != null) { + contents[_DNII] = de_ValueStringList(__getArrayIfSingleItem(output[_dNII][_i]), context); } - if (output["groupIpAddress"] !== undefined) { - contents.GroupIpAddress = __expectString(output["groupIpAddress"]); + if (output[_gIA] != null) { + contents[_GIA] = __expectString(output[_gIA]); } return contents; }; @@ -93676,22 +92240,16 @@ const de_TransitGatewayMulticastDeregisteredGroupSources = ( context: __SerdeContext ): TransitGatewayMulticastDeregisteredGroupSources => { const contents: any = {}; - if (output["transitGatewayMulticastDomainId"] !== undefined) { - contents.TransitGatewayMulticastDomainId = __expectString(output["transitGatewayMulticastDomainId"]); + if (output[_tGMDI] != null) { + contents[_TGMDI] = __expectString(output[_tGMDI]); } if (output.deregisteredNetworkInterfaceIds === "") { - contents.DeregisteredNetworkInterfaceIds = []; - } else if ( - output["deregisteredNetworkInterfaceIds"] !== undefined && - output["deregisteredNetworkInterfaceIds"]["item"] !== undefined - ) { - contents.DeregisteredNetworkInterfaceIds = de_ValueStringList( - __getArrayIfSingleItem(output["deregisteredNetworkInterfaceIds"]["item"]), - context - ); + contents[_DNII] = []; + } else if (output[_dNII] != null && output[_dNII][_i] != null) { + contents[_DNII] = de_ValueStringList(__getArrayIfSingleItem(output[_dNII][_i]), context); } - if (output["groupIpAddress"] !== undefined) { - contents.GroupIpAddress = __expectString(output["groupIpAddress"]); + if (output[_gIA] != null) { + contents[_GIA] = __expectString(output[_gIA]); } return contents; }; @@ -93701,31 +92259,31 @@ const de_TransitGatewayMulticastDeregisteredGroupSources = ( */ const de_TransitGatewayMulticastDomain = (output: any, context: __SerdeContext): TransitGatewayMulticastDomain => { const contents: any = {}; - if (output["transitGatewayMulticastDomainId"] !== undefined) { - contents.TransitGatewayMulticastDomainId = __expectString(output["transitGatewayMulticastDomainId"]); + if (output[_tGMDI] != null) { + contents[_TGMDI] = __expectString(output[_tGMDI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["transitGatewayMulticastDomainArn"] !== undefined) { - contents.TransitGatewayMulticastDomainArn = __expectString(output["transitGatewayMulticastDomainArn"]); + if (output[_tGMDA] != null) { + contents[_TGMDA] = __expectString(output[_tGMDA]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["options"] !== undefined) { - contents.Options = de_TransitGatewayMulticastDomainOptions(output["options"], context); + if (output[_op] != null) { + contents[_O] = de_TransitGatewayMulticastDomainOptions(output[_op], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -93738,20 +92296,20 @@ const de_TransitGatewayMulticastDomainAssociation = ( context: __SerdeContext ): TransitGatewayMulticastDomainAssociation => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceOwnerId"] !== undefined) { - contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]); + if (output[_rOI] != null) { + contents[_ROI] = __expectString(output[_rOI]); } - if (output["subnet"] !== undefined) { - contents.Subnet = de_SubnetAssociation(output["subnet"], context); + if (output[_su] != null) { + contents[_Su] = de_SubnetAssociation(output[_su], context); } return contents; }; @@ -93778,25 +92336,25 @@ const de_TransitGatewayMulticastDomainAssociations = ( context: __SerdeContext ): TransitGatewayMulticastDomainAssociations => { const contents: any = {}; - if (output["transitGatewayMulticastDomainId"] !== undefined) { - contents.TransitGatewayMulticastDomainId = __expectString(output["transitGatewayMulticastDomainId"]); + if (output[_tGMDI] != null) { + contents[_TGMDI] = __expectString(output[_tGMDI]); } - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceOwnerId"] !== undefined) { - contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]); + if (output[_rOI] != null) { + contents[_ROI] = __expectString(output[_rOI]); } if (output.subnets === "") { - contents.Subnets = []; - } else if (output["subnets"] !== undefined && output["subnets"]["item"] !== undefined) { - contents.Subnets = de_SubnetAssociationList(__getArrayIfSingleItem(output["subnets"]["item"]), context); + contents[_Subn] = []; + } else if (output[_sub] != null && output[_sub][_i] != null) { + contents[_Subn] = de_SubnetAssociationList(__getArrayIfSingleItem(output[_sub][_i]), context); } return contents; }; @@ -93823,14 +92381,14 @@ const de_TransitGatewayMulticastDomainOptions = ( context: __SerdeContext ): TransitGatewayMulticastDomainOptions => { const contents: any = {}; - if (output["igmpv2Support"] !== undefined) { - contents.Igmpv2Support = __expectString(output["igmpv2Support"]); + if (output[_iSg] != null) { + contents[_ISg] = __expectString(output[_iSg]); } - if (output["staticSourcesSupport"] !== undefined) { - contents.StaticSourcesSupport = __expectString(output["staticSourcesSupport"]); + if (output[_sSS] != null) { + contents[_SSS] = __expectString(output[_sSS]); } - if (output["autoAcceptSharedAssociations"] !== undefined) { - contents.AutoAcceptSharedAssociations = __expectString(output["autoAcceptSharedAssociations"]); + if (output[_aASA] != null) { + contents[_AASA] = __expectString(output[_aASA]); } return contents; }; @@ -93840,38 +92398,38 @@ const de_TransitGatewayMulticastDomainOptions = ( */ const de_TransitGatewayMulticastGroup = (output: any, context: __SerdeContext): TransitGatewayMulticastGroup => { const contents: any = {}; - if (output["groupIpAddress"] !== undefined) { - contents.GroupIpAddress = __expectString(output["groupIpAddress"]); + if (output[_gIA] != null) { + contents[_GIA] = __expectString(output[_gIA]); } - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["subnetId"] !== undefined) { - contents.SubnetId = __expectString(output["subnetId"]); + if (output[_sIu] != null) { + contents[_SIub] = __expectString(output[_sIu]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceOwnerId"] !== undefined) { - contents.ResourceOwnerId = __expectString(output["resourceOwnerId"]); + if (output[_rOI] != null) { + contents[_ROI] = __expectString(output[_rOI]); } - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["groupMember"] !== undefined) { - contents.GroupMember = __parseBoolean(output["groupMember"]); + if (output[_gM] != null) { + contents[_GM] = __parseBoolean(output[_gM]); } - if (output["groupSource"] !== undefined) { - contents.GroupSource = __parseBoolean(output["groupSource"]); + if (output[_gSr] != null) { + contents[_GS] = __parseBoolean(output[_gSr]); } - if (output["memberType"] !== undefined) { - contents.MemberType = __expectString(output["memberType"]); + if (output[_mTe] != null) { + contents[_MTe] = __expectString(output[_mTe]); } - if (output["sourceType"] !== undefined) { - contents.SourceType = __expectString(output["sourceType"]); + if (output[_sTo] != null) { + contents[_STo] = __expectString(output[_sTo]); } return contents; }; @@ -93895,22 +92453,16 @@ const de_TransitGatewayMulticastRegisteredGroupMembers = ( context: __SerdeContext ): TransitGatewayMulticastRegisteredGroupMembers => { const contents: any = {}; - if (output["transitGatewayMulticastDomainId"] !== undefined) { - contents.TransitGatewayMulticastDomainId = __expectString(output["transitGatewayMulticastDomainId"]); + if (output[_tGMDI] != null) { + contents[_TGMDI] = __expectString(output[_tGMDI]); } if (output.registeredNetworkInterfaceIds === "") { - contents.RegisteredNetworkInterfaceIds = []; - } else if ( - output["registeredNetworkInterfaceIds"] !== undefined && - output["registeredNetworkInterfaceIds"]["item"] !== undefined - ) { - contents.RegisteredNetworkInterfaceIds = de_ValueStringList( - __getArrayIfSingleItem(output["registeredNetworkInterfaceIds"]["item"]), - context - ); + contents[_RNII] = []; + } else if (output[_rNII] != null && output[_rNII][_i] != null) { + contents[_RNII] = de_ValueStringList(__getArrayIfSingleItem(output[_rNII][_i]), context); } - if (output["groupIpAddress"] !== undefined) { - contents.GroupIpAddress = __expectString(output["groupIpAddress"]); + if (output[_gIA] != null) { + contents[_GIA] = __expectString(output[_gIA]); } return contents; }; @@ -93923,22 +92475,16 @@ const de_TransitGatewayMulticastRegisteredGroupSources = ( context: __SerdeContext ): TransitGatewayMulticastRegisteredGroupSources => { const contents: any = {}; - if (output["transitGatewayMulticastDomainId"] !== undefined) { - contents.TransitGatewayMulticastDomainId = __expectString(output["transitGatewayMulticastDomainId"]); + if (output[_tGMDI] != null) { + contents[_TGMDI] = __expectString(output[_tGMDI]); } if (output.registeredNetworkInterfaceIds === "") { - contents.RegisteredNetworkInterfaceIds = []; - } else if ( - output["registeredNetworkInterfaceIds"] !== undefined && - output["registeredNetworkInterfaceIds"]["item"] !== undefined - ) { - contents.RegisteredNetworkInterfaceIds = de_ValueStringList( - __getArrayIfSingleItem(output["registeredNetworkInterfaceIds"]["item"]), - context - ); + contents[_RNII] = []; + } else if (output[_rNII] != null && output[_rNII][_i] != null) { + contents[_RNII] = de_ValueStringList(__getArrayIfSingleItem(output[_rNII][_i]), context); } - if (output["groupIpAddress"] !== undefined) { - contents.GroupIpAddress = __expectString(output["groupIpAddress"]); + if (output[_gIA] != null) { + contents[_GIA] = __expectString(output[_gIA]); } return contents; }; @@ -93948,46 +92494,40 @@ const de_TransitGatewayMulticastRegisteredGroupSources = ( */ const de_TransitGatewayOptions = (output: any, context: __SerdeContext): TransitGatewayOptions => { const contents: any = {}; - if (output["amazonSideAsn"] !== undefined) { - contents.AmazonSideAsn = __strictParseLong(output["amazonSideAsn"]) as number; + if (output[_aSA] != null) { + contents[_ASA] = __strictParseLong(output[_aSA]) as number; } if (output.transitGatewayCidrBlocks === "") { - contents.TransitGatewayCidrBlocks = []; - } else if ( - output["transitGatewayCidrBlocks"] !== undefined && - output["transitGatewayCidrBlocks"]["item"] !== undefined - ) { - contents.TransitGatewayCidrBlocks = de_ValueStringList( - __getArrayIfSingleItem(output["transitGatewayCidrBlocks"]["item"]), - context - ); + contents[_TGCB] = []; + } else if (output[_tGCB] != null && output[_tGCB][_i] != null) { + contents[_TGCB] = de_ValueStringList(__getArrayIfSingleItem(output[_tGCB][_i]), context); } - if (output["autoAcceptSharedAttachments"] !== undefined) { - contents.AutoAcceptSharedAttachments = __expectString(output["autoAcceptSharedAttachments"]); + if (output[_aASAu] != null) { + contents[_AASAu] = __expectString(output[_aASAu]); } - if (output["defaultRouteTableAssociation"] !== undefined) { - contents.DefaultRouteTableAssociation = __expectString(output["defaultRouteTableAssociation"]); + if (output[_dRTA] != null) { + contents[_DRTA] = __expectString(output[_dRTA]); } - if (output["associationDefaultRouteTableId"] !== undefined) { - contents.AssociationDefaultRouteTableId = __expectString(output["associationDefaultRouteTableId"]); + if (output[_aDRTI] != null) { + contents[_ADRTI] = __expectString(output[_aDRTI]); } - if (output["defaultRouteTablePropagation"] !== undefined) { - contents.DefaultRouteTablePropagation = __expectString(output["defaultRouteTablePropagation"]); + if (output[_dRTP] != null) { + contents[_DRTP] = __expectString(output[_dRTP]); } - if (output["propagationDefaultRouteTableId"] !== undefined) { - contents.PropagationDefaultRouteTableId = __expectString(output["propagationDefaultRouteTableId"]); + if (output[_pDRTI] != null) { + contents[_PDRTI] = __expectString(output[_pDRTI]); } - if (output["vpnEcmpSupport"] !== undefined) { - contents.VpnEcmpSupport = __expectString(output["vpnEcmpSupport"]); + if (output[_vESpn] != null) { + contents[_VES] = __expectString(output[_vESpn]); } - if (output["dnsSupport"] !== undefined) { - contents.DnsSupport = __expectString(output["dnsSupport"]); + if (output[_dSn] != null) { + contents[_DSns] = __expectString(output[_dSn]); } - if (output["securityGroupReferencingSupport"] !== undefined) { - contents.SecurityGroupReferencingSupport = __expectString(output["securityGroupReferencingSupport"]); + if (output[_sGRSec] != null) { + contents[_SGRS] = __expectString(output[_sGRSec]); } - if (output["multicastSupport"] !== undefined) { - contents.MulticastSupport = __expectString(output["multicastSupport"]); + if (output[_mSu] != null) { + contents[_MSu] = __expectString(output[_mSu]); } return contents; }; @@ -93997,34 +92537,34 @@ const de_TransitGatewayOptions = (output: any, context: __SerdeContext): Transit */ const de_TransitGatewayPeeringAttachment = (output: any, context: __SerdeContext): TransitGatewayPeeringAttachment => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["accepterTransitGatewayAttachmentId"] !== undefined) { - contents.AccepterTransitGatewayAttachmentId = __expectString(output["accepterTransitGatewayAttachmentId"]); + if (output[_aTGAI] != null) { + contents[_ATGAI] = __expectString(output[_aTGAI]); } - if (output["requesterTgwInfo"] !== undefined) { - contents.RequesterTgwInfo = de_PeeringTgwInfo(output["requesterTgwInfo"], context); + if (output[_rTIe] != null) { + contents[_RTIe] = de_PeeringTgwInfo(output[_rTIe], context); } - if (output["accepterTgwInfo"] !== undefined) { - contents.AccepterTgwInfo = de_PeeringTgwInfo(output["accepterTgwInfo"], context); + if (output[_aTI] != null) { + contents[_ATIc] = de_PeeringTgwInfo(output[_aTI], context); } - if (output["options"] !== undefined) { - contents.Options = de_TransitGatewayPeeringAttachmentOptions(output["options"], context); + if (output[_op] != null) { + contents[_O] = de_TransitGatewayPeeringAttachmentOptions(output[_op], context); } - if (output["status"] !== undefined) { - contents.Status = de_PeeringAttachmentStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_PeeringAttachmentStatus(output[_sta], context); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -94051,8 +92591,8 @@ const de_TransitGatewayPeeringAttachmentOptions = ( context: __SerdeContext ): TransitGatewayPeeringAttachmentOptions => { const contents: any = {}; - if (output["dynamicRouting"] !== undefined) { - contents.DynamicRouting = __expectString(output["dynamicRouting"]); + if (output[_dRy] != null) { + contents[_DRy] = __expectString(output[_dRy]); } return contents; }; @@ -94062,23 +92602,23 @@ const de_TransitGatewayPeeringAttachmentOptions = ( */ const de_TransitGatewayPolicyRule = (output: any, context: __SerdeContext): TransitGatewayPolicyRule => { const contents: any = {}; - if (output["sourceCidrBlock"] !== undefined) { - contents.SourceCidrBlock = __expectString(output["sourceCidrBlock"]); + if (output[_sCB] != null) { + contents[_SCB] = __expectString(output[_sCB]); } - if (output["sourcePortRange"] !== undefined) { - contents.SourcePortRange = __expectString(output["sourcePortRange"]); + if (output[_sPR] != null) { + contents[_SPR] = __expectString(output[_sPR]); } - if (output["destinationCidrBlock"] !== undefined) { - contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]); + if (output[_dCB] != null) { + contents[_DCB] = __expectString(output[_dCB]); } - if (output["destinationPortRange"] !== undefined) { - contents.DestinationPortRange = __expectString(output["destinationPortRange"]); + if (output[_dPR] != null) { + contents[_DPR] = __expectString(output[_dPR]); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } - if (output["metaData"] !== undefined) { - contents.MetaData = de_TransitGatewayPolicyRuleMetaData(output["metaData"], context); + if (output[_mDe] != null) { + contents[_MDe] = de_TransitGatewayPolicyRuleMetaData(output[_mDe], context); } return contents; }; @@ -94091,11 +92631,11 @@ const de_TransitGatewayPolicyRuleMetaData = ( context: __SerdeContext ): TransitGatewayPolicyRuleMetaData => { const contents: any = {}; - if (output["metaDataKey"] !== undefined) { - contents.MetaDataKey = __expectString(output["metaDataKey"]); + if (output[_mDK] != null) { + contents[_MDK] = __expectString(output[_mDK]); } - if (output["metaDataValue"] !== undefined) { - contents.MetaDataValue = __expectString(output["metaDataValue"]); + if (output[_mDV] != null) { + contents[_MDV] = __expectString(output[_mDV]); } return contents; }; @@ -94105,22 +92645,22 @@ const de_TransitGatewayPolicyRuleMetaData = ( */ const de_TransitGatewayPolicyTable = (output: any, context: __SerdeContext): TransitGatewayPolicyTable => { const contents: any = {}; - if (output["transitGatewayPolicyTableId"] !== undefined) { - contents.TransitGatewayPolicyTableId = __expectString(output["transitGatewayPolicyTableId"]); + if (output[_tGPTI] != null) { + contents[_TGPTI] = __expectString(output[_tGPTI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -94133,20 +92673,20 @@ const de_TransitGatewayPolicyTableAssociation = ( context: __SerdeContext ): TransitGatewayPolicyTableAssociation => { const contents: any = {}; - if (output["transitGatewayPolicyTableId"] !== undefined) { - contents.TransitGatewayPolicyTableId = __expectString(output["transitGatewayPolicyTableId"]); + if (output[_tGPTI] != null) { + contents[_TGPTI] = __expectString(output[_tGPTI]); } - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -94170,14 +92710,14 @@ const de_TransitGatewayPolicyTableAssociationList = ( */ const de_TransitGatewayPolicyTableEntry = (output: any, context: __SerdeContext): TransitGatewayPolicyTableEntry => { const contents: any = {}; - if (output["policyRuleNumber"] !== undefined) { - contents.PolicyRuleNumber = __expectString(output["policyRuleNumber"]); + if (output[_pRN] != null) { + contents[_PRNo] = __expectString(output[_pRN]); } - if (output["policyRule"] !== undefined) { - contents.PolicyRule = de_TransitGatewayPolicyRule(output["policyRule"], context); + if (output[_pRol] != null) { + contents[_PRol] = de_TransitGatewayPolicyRule(output[_pRol], context); } - if (output["targetRouteTableId"] !== undefined) { - contents.TargetRouteTableId = __expectString(output["targetRouteTableId"]); + if (output[_tRTI] != null) { + contents[_TRTI] = __expectString(output[_tRTI]); } return contents; }; @@ -94215,14 +92755,14 @@ const de_TransitGatewayPrefixListAttachment = ( context: __SerdeContext ): TransitGatewayPrefixListAttachment => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } return contents; }; @@ -94235,26 +92775,23 @@ const de_TransitGatewayPrefixListReference = ( context: __SerdeContext ): TransitGatewayPrefixListReference => { const contents: any = {}; - if (output["transitGatewayRouteTableId"] !== undefined) { - contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]); + if (output[_tGRTI] != null) { + contents[_TGRTI] = __expectString(output[_tGRTI]); } - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } - if (output["prefixListOwnerId"] !== undefined) { - contents.PrefixListOwnerId = __expectString(output["prefixListOwnerId"]); + if (output[_pLOI] != null) { + contents[_PLOI] = __expectString(output[_pLOI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["blackhole"] !== undefined) { - contents.Blackhole = __parseBoolean(output["blackhole"]); + if (output[_bl] != null) { + contents[_Bl] = __parseBoolean(output[_bl]); } - if (output["transitGatewayAttachment"] !== undefined) { - contents.TransitGatewayAttachment = de_TransitGatewayPrefixListAttachment( - output["transitGatewayAttachment"], - context - ); + if (output[_tGAr] != null) { + contents[_TGAra] = de_TransitGatewayPrefixListAttachment(output[_tGAr], context); } return contents; }; @@ -94278,23 +92815,23 @@ const de_TransitGatewayPrefixListReferenceSet = ( */ const de_TransitGatewayPropagation = (output: any, context: __SerdeContext): TransitGatewayPropagation => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["transitGatewayRouteTableId"] !== undefined) { - contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]); + if (output[_tGRTI] != null) { + contents[_TGRTI] = __expectString(output[_tGRTI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) { - contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]); + if (output[_tGRTAI] != null) { + contents[_TGRTAI] = __expectString(output[_tGRTAI]); } return contents; }; @@ -94304,31 +92841,25 @@ const de_TransitGatewayPropagation = (output: any, context: __SerdeContext): Tra */ const de_TransitGatewayRoute = (output: any, context: __SerdeContext): TransitGatewayRoute => { const contents: any = {}; - if (output["destinationCidrBlock"] !== undefined) { - contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]); + if (output[_dCB] != null) { + contents[_DCB] = __expectString(output[_dCB]); } - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } - if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) { - contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]); + if (output[_tGRTAI] != null) { + contents[_TGRTAI] = __expectString(output[_tGRTAI]); } if (output.transitGatewayAttachments === "") { - contents.TransitGatewayAttachments = []; - } else if ( - output["transitGatewayAttachments"] !== undefined && - output["transitGatewayAttachments"]["item"] !== undefined - ) { - contents.TransitGatewayAttachments = de_TransitGatewayRouteAttachmentList( - __getArrayIfSingleItem(output["transitGatewayAttachments"]["item"]), - context - ); + contents[_TGAr] = []; + } else if (output[_tGA] != null && output[_tGA][_i] != null) { + contents[_TGAr] = de_TransitGatewayRouteAttachmentList(__getArrayIfSingleItem(output[_tGA][_i]), context); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -94338,14 +92869,14 @@ const de_TransitGatewayRoute = (output: any, context: __SerdeContext): TransitGa */ const de_TransitGatewayRouteAttachment = (output: any, context: __SerdeContext): TransitGatewayRouteAttachment => { const contents: any = {}; - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } return contents; }; @@ -94380,28 +92911,28 @@ const de_TransitGatewayRouteList = (output: any, context: __SerdeContext): Trans */ const de_TransitGatewayRouteTable = (output: any, context: __SerdeContext): TransitGatewayRouteTable => { const contents: any = {}; - if (output["transitGatewayRouteTableId"] !== undefined) { - contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]); + if (output[_tGRTI] != null) { + contents[_TGRTI] = __expectString(output[_tGRTI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["defaultAssociationRouteTable"] !== undefined) { - contents.DefaultAssociationRouteTable = __parseBoolean(output["defaultAssociationRouteTable"]); + if (output[_dART] != null) { + contents[_DART] = __parseBoolean(output[_dART]); } - if (output["defaultPropagationRouteTable"] !== undefined) { - contents.DefaultPropagationRouteTable = __parseBoolean(output["defaultPropagationRouteTable"]); + if (output[_dPRT] != null) { + contents[_DPRT] = __parseBoolean(output[_dPRT]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -94414,40 +92945,40 @@ const de_TransitGatewayRouteTableAnnouncement = ( context: __SerdeContext ): TransitGatewayRouteTableAnnouncement => { const contents: any = {}; - if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) { - contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]); + if (output[_tGRTAI] != null) { + contents[_TGRTAI] = __expectString(output[_tGRTAI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["coreNetworkId"] !== undefined) { - contents.CoreNetworkId = __expectString(output["coreNetworkId"]); + if (output[_cNIo] != null) { + contents[_CNIor] = __expectString(output[_cNIo]); } - if (output["peerTransitGatewayId"] !== undefined) { - contents.PeerTransitGatewayId = __expectString(output["peerTransitGatewayId"]); + if (output[_pTGI] != null) { + contents[_PTGI] = __expectString(output[_pTGI]); } - if (output["peerCoreNetworkId"] !== undefined) { - contents.PeerCoreNetworkId = __expectString(output["peerCoreNetworkId"]); + if (output[_pCNI] != null) { + contents[_PCNI] = __expectString(output[_pCNI]); } - if (output["peeringAttachmentId"] !== undefined) { - contents.PeeringAttachmentId = __expectString(output["peeringAttachmentId"]); + if (output[_pAI] != null) { + contents[_PAIe] = __expectString(output[_pAI]); } - if (output["announcementDirection"] !== undefined) { - contents.AnnouncementDirection = __expectString(output["announcementDirection"]); + if (output[_aDn] != null) { + contents[_ADn] = __expectString(output[_aDn]); } - if (output["transitGatewayRouteTableId"] !== undefined) { - contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]); + if (output[_tGRTI] != null) { + contents[_TGRTI] = __expectString(output[_tGRTI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -94474,17 +93005,17 @@ const de_TransitGatewayRouteTableAssociation = ( context: __SerdeContext ): TransitGatewayRouteTableAssociation => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -94522,20 +93053,20 @@ const de_TransitGatewayRouteTablePropagation = ( context: __SerdeContext ): TransitGatewayRouteTablePropagation => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) { - contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]); + if (output[_tGRTAI] != null) { + contents[_TGRTAI] = __expectString(output[_tGRTAI]); } return contents; }; @@ -94559,26 +93090,26 @@ const de_TransitGatewayRouteTablePropagationList = ( */ const de_TransitGatewayRouteTableRoute = (output: any, context: __SerdeContext): TransitGatewayRouteTableRoute => { const contents: any = {}; - if (output["destinationCidr"] !== undefined) { - contents.DestinationCidr = __expectString(output["destinationCidr"]); + if (output[_dC] != null) { + contents[_DCe] = __expectString(output[_dC]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["routeOrigin"] !== undefined) { - contents.RouteOrigin = __expectString(output["routeOrigin"]); + if (output[_rOo] != null) { + contents[_ROo] = __expectString(output[_rOo]); } - if (output["prefixListId"] !== undefined) { - contents.PrefixListId = __expectString(output["prefixListId"]); + if (output[_pLI] != null) { + contents[_PLI] = __expectString(output[_pLI]); } - if (output["attachmentId"] !== undefined) { - contents.AttachmentId = __expectString(output["attachmentId"]); + if (output[_aIt] != null) { + contents[_AIt] = __expectString(output[_aIt]); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } - if (output["resourceType"] !== undefined) { - contents.ResourceType = __expectString(output["resourceType"]); + if (output[_rTe] != null) { + contents[_RT] = __expectString(output[_rTe]); } return contents; }; @@ -94588,36 +93119,36 @@ const de_TransitGatewayRouteTableRoute = (output: any, context: __SerdeContext): */ const de_TransitGatewayVpcAttachment = (output: any, context: __SerdeContext): TransitGatewayVpcAttachment => { const contents: any = {}; - if (output["transitGatewayAttachmentId"] !== undefined) { - contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]); + if (output[_tGAI] != null) { + contents[_TGAI] = __expectString(output[_tGAI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["vpcOwnerId"] !== undefined) { - contents.VpcOwnerId = __expectString(output["vpcOwnerId"]); + if (output[_vOI] != null) { + contents[_VOI] = __expectString(output[_vOI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } if (output.subnetIds === "") { - contents.SubnetIds = []; - } else if (output["subnetIds"] !== undefined && output["subnetIds"]["item"] !== undefined) { - contents.SubnetIds = de_ValueStringList(__getArrayIfSingleItem(output["subnetIds"]["item"]), context); + contents[_SIu] = []; + } else if (output[_sIub] != null && output[_sIub][_i] != null) { + contents[_SIu] = de_ValueStringList(__getArrayIfSingleItem(output[_sIub][_i]), context); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTime"])); + if (output[_cTre] != null) { + contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output["options"] !== undefined) { - contents.Options = de_TransitGatewayVpcAttachmentOptions(output["options"], context); + if (output[_op] != null) { + contents[_O] = de_TransitGatewayVpcAttachmentOptions(output[_op], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -94641,17 +93172,17 @@ const de_TransitGatewayVpcAttachmentOptions = ( context: __SerdeContext ): TransitGatewayVpcAttachmentOptions => { const contents: any = {}; - if (output["dnsSupport"] !== undefined) { - contents.DnsSupport = __expectString(output["dnsSupport"]); + if (output[_dSn] != null) { + contents[_DSns] = __expectString(output[_dSn]); } - if (output["securityGroupReferencingSupport"] !== undefined) { - contents.SecurityGroupReferencingSupport = __expectString(output["securityGroupReferencingSupport"]); + if (output[_sGRSec] != null) { + contents[_SGRS] = __expectString(output[_sGRSec]); } - if (output["ipv6Support"] !== undefined) { - contents.Ipv6Support = __expectString(output["ipv6Support"]); + if (output[_iSpvu] != null) { + contents[_ISp] = __expectString(output[_iSpvu]); } - if (output["applianceModeSupport"] !== undefined) { - contents.ApplianceModeSupport = __expectString(output["applianceModeSupport"]); + if (output[_aMSp] != null) { + contents[_AMS] = __expectString(output[_aMSp]); } return contents; }; @@ -94661,28 +93192,28 @@ const de_TransitGatewayVpcAttachmentOptions = ( */ const de_TrunkInterfaceAssociation = (output: any, context: __SerdeContext): TrunkInterfaceAssociation => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["branchInterfaceId"] !== undefined) { - contents.BranchInterfaceId = __expectString(output["branchInterfaceId"]); + if (output[_bII] != null) { + contents[_BII] = __expectString(output[_bII]); } - if (output["trunkInterfaceId"] !== undefined) { - contents.TrunkInterfaceId = __expectString(output["trunkInterfaceId"]); + if (output[_tII] != null) { + contents[_TII] = __expectString(output[_tII]); } - if (output["interfaceProtocol"] !== undefined) { - contents.InterfaceProtocol = __expectString(output["interfaceProtocol"]); + if (output[_iPnte] != null) { + contents[_IPnte] = __expectString(output[_iPnte]); } - if (output["vlanId"] !== undefined) { - contents.VlanId = __strictParseInt32(output["vlanId"]) as number; + if (output[_vIl] != null) { + contents[_VIl] = __strictParseInt32(output[_vIl]) as number; } - if (output["greKey"] !== undefined) { - contents.GreKey = __strictParseInt32(output["greKey"]) as number; + if (output[_gK] != null) { + contents[_GK] = __strictParseInt32(output[_gK]) as number; } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -94703,112 +93234,82 @@ const de_TrunkInterfaceAssociationList = (output: any, context: __SerdeContext): */ const de_TunnelOption = (output: any, context: __SerdeContext): TunnelOption => { const contents: any = {}; - if (output["outsideIpAddress"] !== undefined) { - contents.OutsideIpAddress = __expectString(output["outsideIpAddress"]); + if (output[_oIA] != null) { + contents[_OIA] = __expectString(output[_oIA]); } - if (output["tunnelInsideCidr"] !== undefined) { - contents.TunnelInsideCidr = __expectString(output["tunnelInsideCidr"]); + if (output[_tICu] != null) { + contents[_TIC] = __expectString(output[_tICu]); } - if (output["tunnelInsideIpv6Cidr"] !== undefined) { - contents.TunnelInsideIpv6Cidr = __expectString(output["tunnelInsideIpv6Cidr"]); + if (output[_tIIC] != null) { + contents[_TIIC] = __expectString(output[_tIIC]); } - if (output["preSharedKey"] !== undefined) { - contents.PreSharedKey = __expectString(output["preSharedKey"]); + if (output[_pSK] != null) { + contents[_PSK] = __expectString(output[_pSK]); } - if (output["phase1LifetimeSeconds"] !== undefined) { - contents.Phase1LifetimeSeconds = __strictParseInt32(output["phase1LifetimeSeconds"]) as number; + if (output[_pLSh] != null) { + contents[_PLS] = __strictParseInt32(output[_pLSh]) as number; } - if (output["phase2LifetimeSeconds"] !== undefined) { - contents.Phase2LifetimeSeconds = __strictParseInt32(output["phase2LifetimeSeconds"]) as number; + if (output[_pLSha] != null) { + contents[_PLSh] = __strictParseInt32(output[_pLSha]) as number; } - if (output["rekeyMarginTimeSeconds"] !== undefined) { - contents.RekeyMarginTimeSeconds = __strictParseInt32(output["rekeyMarginTimeSeconds"]) as number; + if (output[_rMTS] != null) { + contents[_RMTS] = __strictParseInt32(output[_rMTS]) as number; } - if (output["rekeyFuzzPercentage"] !== undefined) { - contents.RekeyFuzzPercentage = __strictParseInt32(output["rekeyFuzzPercentage"]) as number; + if (output[_rFP] != null) { + contents[_RFP] = __strictParseInt32(output[_rFP]) as number; } - if (output["replayWindowSize"] !== undefined) { - contents.ReplayWindowSize = __strictParseInt32(output["replayWindowSize"]) as number; + if (output[_rWS] != null) { + contents[_RWS] = __strictParseInt32(output[_rWS]) as number; } - if (output["dpdTimeoutSeconds"] !== undefined) { - contents.DpdTimeoutSeconds = __strictParseInt32(output["dpdTimeoutSeconds"]) as number; + if (output[_dTS] != null) { + contents[_DTS] = __strictParseInt32(output[_dTS]) as number; } - if (output["dpdTimeoutAction"] !== undefined) { - contents.DpdTimeoutAction = __expectString(output["dpdTimeoutAction"]); + if (output[_dTA] != null) { + contents[_DTA] = __expectString(output[_dTA]); } if (output.phase1EncryptionAlgorithmSet === "") { - contents.Phase1EncryptionAlgorithms = []; - } else if ( - output["phase1EncryptionAlgorithmSet"] !== undefined && - output["phase1EncryptionAlgorithmSet"]["item"] !== undefined - ) { - contents.Phase1EncryptionAlgorithms = de_Phase1EncryptionAlgorithmsList( - __getArrayIfSingleItem(output["phase1EncryptionAlgorithmSet"]["item"]), - context - ); + contents[_PEA] = []; + } else if (output[_pEAS] != null && output[_pEAS][_i] != null) { + contents[_PEA] = de_Phase1EncryptionAlgorithmsList(__getArrayIfSingleItem(output[_pEAS][_i]), context); } if (output.phase2EncryptionAlgorithmSet === "") { - contents.Phase2EncryptionAlgorithms = []; - } else if ( - output["phase2EncryptionAlgorithmSet"] !== undefined && - output["phase2EncryptionAlgorithmSet"]["item"] !== undefined - ) { - contents.Phase2EncryptionAlgorithms = de_Phase2EncryptionAlgorithmsList( - __getArrayIfSingleItem(output["phase2EncryptionAlgorithmSet"]["item"]), - context - ); + contents[_PEAh] = []; + } else if (output[_pEASh] != null && output[_pEASh][_i] != null) { + contents[_PEAh] = de_Phase2EncryptionAlgorithmsList(__getArrayIfSingleItem(output[_pEASh][_i]), context); } if (output.phase1IntegrityAlgorithmSet === "") { - contents.Phase1IntegrityAlgorithms = []; - } else if ( - output["phase1IntegrityAlgorithmSet"] !== undefined && - output["phase1IntegrityAlgorithmSet"]["item"] !== undefined - ) { - contents.Phase1IntegrityAlgorithms = de_Phase1IntegrityAlgorithmsList( - __getArrayIfSingleItem(output["phase1IntegrityAlgorithmSet"]["item"]), - context - ); + contents[_PIAh] = []; + } else if (output[_pIASh] != null && output[_pIASh][_i] != null) { + contents[_PIAh] = de_Phase1IntegrityAlgorithmsList(__getArrayIfSingleItem(output[_pIASh][_i]), context); } if (output.phase2IntegrityAlgorithmSet === "") { - contents.Phase2IntegrityAlgorithms = []; - } else if ( - output["phase2IntegrityAlgorithmSet"] !== undefined && - output["phase2IntegrityAlgorithmSet"]["item"] !== undefined - ) { - contents.Phase2IntegrityAlgorithms = de_Phase2IntegrityAlgorithmsList( - __getArrayIfSingleItem(output["phase2IntegrityAlgorithmSet"]["item"]), - context - ); + contents[_PIAha] = []; + } else if (output[_pIASha] != null && output[_pIASha][_i] != null) { + contents[_PIAha] = de_Phase2IntegrityAlgorithmsList(__getArrayIfSingleItem(output[_pIASha][_i]), context); } if (output.phase1DHGroupNumberSet === "") { - contents.Phase1DHGroupNumbers = []; - } else if (output["phase1DHGroupNumberSet"] !== undefined && output["phase1DHGroupNumberSet"]["item"] !== undefined) { - contents.Phase1DHGroupNumbers = de_Phase1DHGroupNumbersList( - __getArrayIfSingleItem(output["phase1DHGroupNumberSet"]["item"]), - context - ); + contents[_PDHGN] = []; + } else if (output[_pDHGNS] != null && output[_pDHGNS][_i] != null) { + contents[_PDHGN] = de_Phase1DHGroupNumbersList(__getArrayIfSingleItem(output[_pDHGNS][_i]), context); } if (output.phase2DHGroupNumberSet === "") { - contents.Phase2DHGroupNumbers = []; - } else if (output["phase2DHGroupNumberSet"] !== undefined && output["phase2DHGroupNumberSet"]["item"] !== undefined) { - contents.Phase2DHGroupNumbers = de_Phase2DHGroupNumbersList( - __getArrayIfSingleItem(output["phase2DHGroupNumberSet"]["item"]), - context - ); + contents[_PDHGNh] = []; + } else if (output[_pDHGNSh] != null && output[_pDHGNSh][_i] != null) { + contents[_PDHGNh] = de_Phase2DHGroupNumbersList(__getArrayIfSingleItem(output[_pDHGNSh][_i]), context); } if (output.ikeVersionSet === "") { - contents.IkeVersions = []; - } else if (output["ikeVersionSet"] !== undefined && output["ikeVersionSet"]["item"] !== undefined) { - contents.IkeVersions = de_IKEVersionsList(__getArrayIfSingleItem(output["ikeVersionSet"]["item"]), context); + contents[_IVk] = []; + } else if (output[_iVS] != null && output[_iVS][_i] != null) { + contents[_IVk] = de_IKEVersionsList(__getArrayIfSingleItem(output[_iVS][_i]), context); } - if (output["startupAction"] !== undefined) { - contents.StartupAction = __expectString(output["startupAction"]); + if (output[_sAt] != null) { + contents[_SA] = __expectString(output[_sAt]); } - if (output["logOptions"] !== undefined) { - contents.LogOptions = de_VpnTunnelLogOptions(output["logOptions"], context); + if (output[_lO] != null) { + contents[_LO] = de_VpnTunnelLogOptions(output[_lO], context); } - if (output["enableTunnelLifecycleControl"] !== undefined) { - contents.EnableTunnelLifecycleControl = __parseBoolean(output["enableTunnelLifecycleControl"]); + if (output[_eTLC] != null) { + contents[_ETLC] = __parseBoolean(output[_eTLC]); } return contents; }; @@ -94829,30 +93330,18 @@ const de_TunnelOptionsList = (output: any, context: __SerdeContext): TunnelOptio */ const de_UnassignIpv6AddressesResult = (output: any, context: __SerdeContext): UnassignIpv6AddressesResult => { const contents: any = {}; - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } if (output.unassignedIpv6Addresses === "") { - contents.UnassignedIpv6Addresses = []; - } else if ( - output["unassignedIpv6Addresses"] !== undefined && - output["unassignedIpv6Addresses"]["item"] !== undefined - ) { - contents.UnassignedIpv6Addresses = de_Ipv6AddressList( - __getArrayIfSingleItem(output["unassignedIpv6Addresses"]["item"]), - context - ); + contents[_UIAn] = []; + } else if (output[_uIA] != null && output[_uIA][_i] != null) { + contents[_UIAn] = de_Ipv6AddressList(__getArrayIfSingleItem(output[_uIA][_i]), context); } if (output.unassignedIpv6PrefixSet === "") { - contents.UnassignedIpv6Prefixes = []; - } else if ( - output["unassignedIpv6PrefixSet"] !== undefined && - output["unassignedIpv6PrefixSet"]["item"] !== undefined - ) { - contents.UnassignedIpv6Prefixes = de_IpPrefixList( - __getArrayIfSingleItem(output["unassignedIpv6PrefixSet"]["item"]), - context - ); + contents[_UIPn] = []; + } else if (output[_uIPSn] != null && output[_uIPSn][_i] != null) { + contents[_UIPn] = de_IpPrefixList(__getArrayIfSingleItem(output[_uIPSn][_i]), context); } return contents; }; @@ -94865,16 +93354,13 @@ const de_UnassignPrivateNatGatewayAddressResult = ( context: __SerdeContext ): UnassignPrivateNatGatewayAddressResult => { const contents: any = {}; - if (output["natGatewayId"] !== undefined) { - contents.NatGatewayId = __expectString(output["natGatewayId"]); + if (output[_nGI] != null) { + contents[_NGI] = __expectString(output[_nGI]); } if (output.natGatewayAddressSet === "") { - contents.NatGatewayAddresses = []; - } else if (output["natGatewayAddressSet"] !== undefined && output["natGatewayAddressSet"]["item"] !== undefined) { - contents.NatGatewayAddresses = de_NatGatewayAddressList( - __getArrayIfSingleItem(output["natGatewayAddressSet"]["item"]), - context - ); + contents[_NGA] = []; + } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { + contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); } return contents; }; @@ -94884,8 +93370,8 @@ const de_UnassignPrivateNatGatewayAddressResult = ( */ const de_UnlockSnapshotResult = (output: any, context: __SerdeContext): UnlockSnapshotResult => { const contents: any = {}; - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } return contents; }; @@ -94896,12 +93382,9 @@ const de_UnlockSnapshotResult = (output: any, context: __SerdeContext): UnlockSn const de_UnmonitorInstancesResult = (output: any, context: __SerdeContext): UnmonitorInstancesResult => { const contents: any = {}; if (output.instancesSet === "") { - contents.InstanceMonitorings = []; - } else if (output["instancesSet"] !== undefined && output["instancesSet"]["item"] !== undefined) { - contents.InstanceMonitorings = de_InstanceMonitoringList( - __getArrayIfSingleItem(output["instancesSet"]["item"]), - context - ); + contents[_IMn] = []; + } else if (output[_iSn] != null && output[_iSn][_i] != null) { + contents[_IMn] = de_InstanceMonitoringList(__getArrayIfSingleItem(output[_iSn][_i]), context); } return contents; }; @@ -94914,11 +93397,11 @@ const de_UnsuccessfulInstanceCreditSpecificationItem = ( context: __SerdeContext ): UnsuccessfulInstanceCreditSpecificationItem => { const contents: any = {}; - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["error"] !== undefined) { - contents.Error = de_UnsuccessfulInstanceCreditSpecificationItemError(output["error"], context); + if (output[_er] != null) { + contents[_Er] = de_UnsuccessfulInstanceCreditSpecificationItemError(output[_er], context); } return contents; }; @@ -94931,11 +93414,11 @@ const de_UnsuccessfulInstanceCreditSpecificationItemError = ( context: __SerdeContext ): UnsuccessfulInstanceCreditSpecificationItemError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -94959,11 +93442,11 @@ const de_UnsuccessfulInstanceCreditSpecificationSet = ( */ const de_UnsuccessfulItem = (output: any, context: __SerdeContext): UnsuccessfulItem => { const contents: any = {}; - if (output["error"] !== undefined) { - contents.Error = de_UnsuccessfulItemError(output["error"], context); + if (output[_er] != null) { + contents[_Er] = de_UnsuccessfulItemError(output[_er], context); } - if (output["resourceId"] !== undefined) { - contents.ResourceId = __expectString(output["resourceId"]); + if (output[_rIe] != null) { + contents[_RIeso] = __expectString(output[_rIe]); } return contents; }; @@ -94973,11 +93456,11 @@ const de_UnsuccessfulItem = (output: any, context: __SerdeContext): Unsuccessful */ const de_UnsuccessfulItemError = (output: any, context: __SerdeContext): UnsuccessfulItemError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -95012,8 +93495,8 @@ const de_UpdateSecurityGroupRuleDescriptionsEgressResult = ( context: __SerdeContext ): UpdateSecurityGroupRuleDescriptionsEgressResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -95026,8 +93509,8 @@ const de_UpdateSecurityGroupRuleDescriptionsIngressResult = ( context: __SerdeContext ): UpdateSecurityGroupRuleDescriptionsIngressResult => { const contents: any = {}; - if (output["return"] !== undefined) { - contents.Return = __parseBoolean(output["return"]); + if (output[_r] != null) { + contents[_Ret] = __parseBoolean(output[_r]); } return contents; }; @@ -95048,11 +93531,11 @@ const de_UsageClassTypeList = (output: any, context: __SerdeContext): UsageClass */ const de_UserBucketDetails = (output: any, context: __SerdeContext): UserBucketDetails => { const contents: any = {}; - if (output["s3Bucket"] !== undefined) { - contents.S3Bucket = __expectString(output["s3Bucket"]); + if (output[_sB] != null) { + contents[_SB] = __expectString(output[_sB]); } - if (output["s3Key"] !== undefined) { - contents.S3Key = __expectString(output["s3Key"]); + if (output[_sK] != null) { + contents[_SK] = __expectString(output[_sK]); } return contents; }; @@ -95062,26 +93545,26 @@ const de_UserBucketDetails = (output: any, context: __SerdeContext): UserBucketD */ const de_UserIdGroupPair = (output: any, context: __SerdeContext): UserIdGroupPair => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["groupId"] !== undefined) { - contents.GroupId = __expectString(output["groupId"]); + if (output[_gIr] != null) { + contents[_GIr] = __expectString(output[_gIr]); } - if (output["groupName"] !== undefined) { - contents.GroupName = __expectString(output["groupName"]); + if (output[_gN] != null) { + contents[_GN] = __expectString(output[_gN]); } - if (output["peeringStatus"] !== undefined) { - contents.PeeringStatus = __expectString(output["peeringStatus"]); + if (output[_pSee] != null) { + contents[_PSe] = __expectString(output[_pSee]); } - if (output["userId"] !== undefined) { - contents.UserId = __expectString(output["userId"]); + if (output[_uI] != null) { + contents[_UIs] = __expectString(output[_uI]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["vpcPeeringConnectionId"] !== undefined) { - contents.VpcPeeringConnectionId = __expectString(output["vpcPeeringConnectionId"]); + if (output[_vPCI] != null) { + contents[_VPCI] = __expectString(output[_vPCI]); } return contents; }; @@ -95113,11 +93596,11 @@ const de_UserIdGroupPairSet = (output: any, context: __SerdeContext): UserIdGrou */ const de_ValidationError = (output: any, context: __SerdeContext): ValidationError => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -95128,9 +93611,9 @@ const de_ValidationError = (output: any, context: __SerdeContext): ValidationErr const de_ValidationWarning = (output: any, context: __SerdeContext): ValidationWarning => { const contents: any = {}; if (output.errorSet === "") { - contents.Errors = []; - } else if (output["errorSet"] !== undefined && output["errorSet"]["item"] !== undefined) { - contents.Errors = de_ErrorSet(__getArrayIfSingleItem(output["errorSet"]["item"]), context); + contents[_Err] = []; + } else if (output[_eSr] != null && output[_eSr][_i] != null) { + contents[_Err] = de_ErrorSet(__getArrayIfSingleItem(output[_eSr][_i]), context); } return contents; }; @@ -95151,11 +93634,11 @@ const de_ValueStringList = (output: any, context: __SerdeContext): string[] => { */ const de_VCpuCountRange = (output: any, context: __SerdeContext): VCpuCountRange => { const contents: any = {}; - if (output["min"] !== undefined) { - contents.Min = __strictParseInt32(output["min"]) as number; + if (output[_m] != null) { + contents[_M] = __strictParseInt32(output[_m]) as number; } - if (output["max"] !== undefined) { - contents.Max = __strictParseInt32(output["max"]) as number; + if (output[_ma] != null) { + contents[_Ma] = __strictParseInt32(output[_ma]) as number; } return contents; }; @@ -95165,27 +93648,24 @@ const de_VCpuCountRange = (output: any, context: __SerdeContext): VCpuCountRange */ const de_VCpuInfo = (output: any, context: __SerdeContext): VCpuInfo => { const contents: any = {}; - if (output["defaultVCpus"] !== undefined) { - contents.DefaultVCpus = __strictParseInt32(output["defaultVCpus"]) as number; + if (output[_dVC] != null) { + contents[_DVCef] = __strictParseInt32(output[_dVC]) as number; } - if (output["defaultCores"] !== undefined) { - contents.DefaultCores = __strictParseInt32(output["defaultCores"]) as number; + if (output[_dCe] != null) { + contents[_DCef] = __strictParseInt32(output[_dCe]) as number; } - if (output["defaultThreadsPerCore"] !== undefined) { - contents.DefaultThreadsPerCore = __strictParseInt32(output["defaultThreadsPerCore"]) as number; + if (output[_dTPC] != null) { + contents[_DTPC] = __strictParseInt32(output[_dTPC]) as number; } if (output.validCores === "") { - contents.ValidCores = []; - } else if (output["validCores"] !== undefined && output["validCores"]["item"] !== undefined) { - contents.ValidCores = de_CoreCountList(__getArrayIfSingleItem(output["validCores"]["item"]), context); + contents[_VCa] = []; + } else if (output[_vCa] != null && output[_vCa][_i] != null) { + contents[_VCa] = de_CoreCountList(__getArrayIfSingleItem(output[_vCa][_i]), context); } if (output.validThreadsPerCore === "") { - contents.ValidThreadsPerCore = []; - } else if (output["validThreadsPerCore"] !== undefined && output["validThreadsPerCore"]["item"] !== undefined) { - contents.ValidThreadsPerCore = de_ThreadsPerCoreList( - __getArrayIfSingleItem(output["validThreadsPerCore"]["item"]), - context - ); + contents[_VTPC] = []; + } else if (output[_vTPC] != null && output[_vTPC][_i] != null) { + contents[_VTPC] = de_ThreadsPerCoreList(__getArrayIfSingleItem(output[_vTPC][_i]), context); } return contents; }; @@ -95195,69 +93675,66 @@ const de_VCpuInfo = (output: any, context: __SerdeContext): VCpuInfo => { */ const de_VerifiedAccessEndpoint = (output: any, context: __SerdeContext): VerifiedAccessEndpoint => { const contents: any = {}; - if (output["verifiedAccessInstanceId"] !== undefined) { - contents.VerifiedAccessInstanceId = __expectString(output["verifiedAccessInstanceId"]); + if (output[_vAII] != null) { + contents[_VAII] = __expectString(output[_vAII]); } - if (output["verifiedAccessGroupId"] !== undefined) { - contents.VerifiedAccessGroupId = __expectString(output["verifiedAccessGroupId"]); + if (output[_vAGI] != null) { + contents[_VAGI] = __expectString(output[_vAGI]); } - if (output["verifiedAccessEndpointId"] !== undefined) { - contents.VerifiedAccessEndpointId = __expectString(output["verifiedAccessEndpointId"]); + if (output[_vAEI] != null) { + contents[_VAEI] = __expectString(output[_vAEI]); } - if (output["applicationDomain"] !== undefined) { - contents.ApplicationDomain = __expectString(output["applicationDomain"]); + if (output[_aDp] != null) { + contents[_ADp] = __expectString(output[_aDp]); } - if (output["endpointType"] !== undefined) { - contents.EndpointType = __expectString(output["endpointType"]); + if (output[_eTnd] != null) { + contents[_ET] = __expectString(output[_eTnd]); } - if (output["attachmentType"] !== undefined) { - contents.AttachmentType = __expectString(output["attachmentType"]); + if (output[_aTtta] != null) { + contents[_ATt] = __expectString(output[_aTtta]); } - if (output["domainCertificateArn"] !== undefined) { - contents.DomainCertificateArn = __expectString(output["domainCertificateArn"]); + if (output[_dCA] != null) { + contents[_DCA] = __expectString(output[_dCA]); } - if (output["endpointDomain"] !== undefined) { - contents.EndpointDomain = __expectString(output["endpointDomain"]); + if (output[_eDnd] != null) { + contents[_EDnd] = __expectString(output[_eDnd]); } - if (output["deviceValidationDomain"] !== undefined) { - contents.DeviceValidationDomain = __expectString(output["deviceValidationDomain"]); + if (output[_dVD] != null) { + contents[_DVD] = __expectString(output[_dVD]); } if (output.securityGroupIdSet === "") { - contents.SecurityGroupIds = []; - } else if (output["securityGroupIdSet"] !== undefined && output["securityGroupIdSet"]["item"] !== undefined) { - contents.SecurityGroupIds = de_SecurityGroupIdList( - __getArrayIfSingleItem(output["securityGroupIdSet"]["item"]), - context - ); + contents[_SGI] = []; + } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { + contents[_SGI] = de_SecurityGroupIdList(__getArrayIfSingleItem(output[_sGIS][_i]), context); } - if (output["loadBalancerOptions"] !== undefined) { - contents.LoadBalancerOptions = de_VerifiedAccessEndpointLoadBalancerOptions(output["loadBalancerOptions"], context); + if (output[_lBO] != null) { + contents[_LBO] = de_VerifiedAccessEndpointLoadBalancerOptions(output[_lBO], context); } - if (output["networkInterfaceOptions"] !== undefined) { - contents.NetworkInterfaceOptions = de_VerifiedAccessEndpointEniOptions(output["networkInterfaceOptions"], context); + if (output[_nIO] != null) { + contents[_NIO] = de_VerifiedAccessEndpointEniOptions(output[_nIO], context); } - if (output["status"] !== undefined) { - contents.Status = de_VerifiedAccessEndpointStatus(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_VerifiedAccessEndpointStatus(output[_sta], context); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectString(output["creationTime"]); + if (output[_cTre] != null) { + contents[_CTre] = __expectString(output[_cTre]); } - if (output["lastUpdatedTime"] !== undefined) { - contents.LastUpdatedTime = __expectString(output["lastUpdatedTime"]); + if (output[_lUT] != null) { + contents[_LUT] = __expectString(output[_lUT]); } - if (output["deletionTime"] !== undefined) { - contents.DeletionTime = __expectString(output["deletionTime"]); + if (output[_dT] != null) { + contents[_DTel] = __expectString(output[_dT]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["sseSpecification"] !== undefined) { - contents.SseSpecification = de_VerifiedAccessSseSpecificationResponse(output["sseSpecification"], context); + if (output[_sSs] != null) { + contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context); } return contents; }; @@ -95270,14 +93747,14 @@ const de_VerifiedAccessEndpointEniOptions = ( context: __SerdeContext ): VerifiedAccessEndpointEniOptions => { const contents: any = {}; - if (output["networkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]); + if (output[_nII] != null) { + contents[_NII] = __expectString(output[_nII]); } - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } - if (output["port"] !== undefined) { - contents.Port = __strictParseInt32(output["port"]) as number; + if (output[_po] != null) { + contents[_Po] = __strictParseInt32(output[_po]) as number; } return contents; }; @@ -95301,22 +93778,19 @@ const de_VerifiedAccessEndpointLoadBalancerOptions = ( context: __SerdeContext ): VerifiedAccessEndpointLoadBalancerOptions => { const contents: any = {}; - if (output["protocol"] !== undefined) { - contents.Protocol = __expectString(output["protocol"]); + if (output[_pr] != null) { + contents[_P] = __expectString(output[_pr]); } - if (output["port"] !== undefined) { - contents.Port = __strictParseInt32(output["port"]) as number; + if (output[_po] != null) { + contents[_Po] = __strictParseInt32(output[_po]) as number; } - if (output["loadBalancerArn"] !== undefined) { - contents.LoadBalancerArn = __expectString(output["loadBalancerArn"]); + if (output[_lBA] != null) { + contents[_LBA] = __expectString(output[_lBA]); } if (output.subnetIdSet === "") { - contents.SubnetIds = []; - } else if (output["subnetIdSet"] !== undefined && output["subnetIdSet"]["item"] !== undefined) { - contents.SubnetIds = de_VerifiedAccessEndpointSubnetIdList( - __getArrayIfSingleItem(output["subnetIdSet"]["item"]), - context - ); + contents[_SIu] = []; + } else if (output[_sISu] != null && output[_sISu][_i] != null) { + contents[_SIu] = de_VerifiedAccessEndpointSubnetIdList(__getArrayIfSingleItem(output[_sISu][_i]), context); } return contents; }; @@ -95326,11 +93800,11 @@ const de_VerifiedAccessEndpointLoadBalancerOptions = ( */ const de_VerifiedAccessEndpointStatus = (output: any, context: __SerdeContext): VerifiedAccessEndpointStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -95351,37 +93825,37 @@ const de_VerifiedAccessEndpointSubnetIdList = (output: any, context: __SerdeCont */ const de_VerifiedAccessGroup = (output: any, context: __SerdeContext): VerifiedAccessGroup => { const contents: any = {}; - if (output["verifiedAccessGroupId"] !== undefined) { - contents.VerifiedAccessGroupId = __expectString(output["verifiedAccessGroupId"]); + if (output[_vAGI] != null) { + contents[_VAGI] = __expectString(output[_vAGI]); } - if (output["verifiedAccessInstanceId"] !== undefined) { - contents.VerifiedAccessInstanceId = __expectString(output["verifiedAccessInstanceId"]); + if (output[_vAII] != null) { + contents[_VAII] = __expectString(output[_vAII]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["owner"] !== undefined) { - contents.Owner = __expectString(output["owner"]); + if (output[_ow] != null) { + contents[_Own] = __expectString(output[_ow]); } - if (output["verifiedAccessGroupArn"] !== undefined) { - contents.VerifiedAccessGroupArn = __expectString(output["verifiedAccessGroupArn"]); + if (output[_vAGA] != null) { + contents[_VAGA] = __expectString(output[_vAGA]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectString(output["creationTime"]); + if (output[_cTre] != null) { + contents[_CTre] = __expectString(output[_cTre]); } - if (output["lastUpdatedTime"] !== undefined) { - contents.LastUpdatedTime = __expectString(output["lastUpdatedTime"]); + if (output[_lUT] != null) { + contents[_LUT] = __expectString(output[_lUT]); } - if (output["deletionTime"] !== undefined) { - contents.DeletionTime = __expectString(output["deletionTime"]); + if (output[_dT] != null) { + contents[_DTel] = __expectString(output[_dT]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["sseSpecification"] !== undefined) { - contents.SseSpecification = de_VerifiedAccessSseSpecificationResponse(output["sseSpecification"], context); + if (output[_sSs] != null) { + contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context); } return contents; }; @@ -95402,36 +93876,30 @@ const de_VerifiedAccessGroupList = (output: any, context: __SerdeContext): Verif */ const de_VerifiedAccessInstance = (output: any, context: __SerdeContext): VerifiedAccessInstance => { const contents: any = {}; - if (output["verifiedAccessInstanceId"] !== undefined) { - contents.VerifiedAccessInstanceId = __expectString(output["verifiedAccessInstanceId"]); + if (output[_vAII] != null) { + contents[_VAII] = __expectString(output[_vAII]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } if (output.verifiedAccessTrustProviderSet === "") { - contents.VerifiedAccessTrustProviders = []; - } else if ( - output["verifiedAccessTrustProviderSet"] !== undefined && - output["verifiedAccessTrustProviderSet"]["item"] !== undefined - ) { - contents.VerifiedAccessTrustProviders = de_VerifiedAccessTrustProviderCondensedList( - __getArrayIfSingleItem(output["verifiedAccessTrustProviderSet"]["item"]), - context - ); + contents[_VATPe] = []; + } else if (output[_vATPS] != null && output[_vATPS][_i] != null) { + contents[_VATPe] = de_VerifiedAccessTrustProviderCondensedList(__getArrayIfSingleItem(output[_vATPS][_i]), context); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectString(output["creationTime"]); + if (output[_cTre] != null) { + contents[_CTre] = __expectString(output[_cTre]); } - if (output["lastUpdatedTime"] !== undefined) { - contents.LastUpdatedTime = __expectString(output["lastUpdatedTime"]); + if (output[_lUT] != null) { + contents[_LUT] = __expectString(output[_lUT]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["fipsEnabled"] !== undefined) { - contents.FipsEnabled = __parseBoolean(output["fipsEnabled"]); + if (output[_fE] != null) { + contents[_FE] = __parseBoolean(output[_fE]); } return contents; }; @@ -95455,11 +93923,11 @@ const de_VerifiedAccessInstanceLoggingConfiguration = ( context: __SerdeContext ): VerifiedAccessInstanceLoggingConfiguration => { const contents: any = {}; - if (output["verifiedAccessInstanceId"] !== undefined) { - contents.VerifiedAccessInstanceId = __expectString(output["verifiedAccessInstanceId"]); + if (output[_vAII] != null) { + contents[_VAII] = __expectString(output[_vAII]); } - if (output["accessLogs"] !== undefined) { - contents.AccessLogs = de_VerifiedAccessLogs(output["accessLogs"], context); + if (output[_aL] != null) { + contents[_AL] = de_VerifiedAccessLogs(output[_aL], context); } return contents; }; @@ -95486,14 +93954,14 @@ const de_VerifiedAccessLogCloudWatchLogsDestination = ( context: __SerdeContext ): VerifiedAccessLogCloudWatchLogsDestination => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } - if (output["deliveryStatus"] !== undefined) { - contents.DeliveryStatus = de_VerifiedAccessLogDeliveryStatus(output["deliveryStatus"], context); + if (output[_dSel] != null) { + contents[_DSeli] = de_VerifiedAccessLogDeliveryStatus(output[_dSel], context); } - if (output["logGroup"] !== undefined) { - contents.LogGroup = __expectString(output["logGroup"]); + if (output[_lGo] != null) { + contents[_LGo] = __expectString(output[_lGo]); } return contents; }; @@ -95503,11 +93971,11 @@ const de_VerifiedAccessLogCloudWatchLogsDestination = ( */ const de_VerifiedAccessLogDeliveryStatus = (output: any, context: __SerdeContext): VerifiedAccessLogDeliveryStatus => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -95520,14 +93988,14 @@ const de_VerifiedAccessLogKinesisDataFirehoseDestination = ( context: __SerdeContext ): VerifiedAccessLogKinesisDataFirehoseDestination => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } - if (output["deliveryStatus"] !== undefined) { - contents.DeliveryStatus = de_VerifiedAccessLogDeliveryStatus(output["deliveryStatus"], context); + if (output[_dSel] != null) { + contents[_DSeli] = de_VerifiedAccessLogDeliveryStatus(output[_dSel], context); } - if (output["deliveryStream"] !== undefined) { - contents.DeliveryStream = __expectString(output["deliveryStream"]); + if (output[_dSeli] != null) { + contents[_DSel] = __expectString(output[_dSeli]); } return contents; }; @@ -95537,23 +94005,20 @@ const de_VerifiedAccessLogKinesisDataFirehoseDestination = ( */ const de_VerifiedAccessLogs = (output: any, context: __SerdeContext): VerifiedAccessLogs => { const contents: any = {}; - if (output["s3"] !== undefined) { - contents.S3 = de_VerifiedAccessLogS3Destination(output["s3"], context); + if (output[_s_] != null) { + contents[_S_] = de_VerifiedAccessLogS3Destination(output[_s_], context); } - if (output["cloudWatchLogs"] !== undefined) { - contents.CloudWatchLogs = de_VerifiedAccessLogCloudWatchLogsDestination(output["cloudWatchLogs"], context); + if (output[_cWL] != null) { + contents[_CWL] = de_VerifiedAccessLogCloudWatchLogsDestination(output[_cWL], context); } - if (output["kinesisDataFirehose"] !== undefined) { - contents.KinesisDataFirehose = de_VerifiedAccessLogKinesisDataFirehoseDestination( - output["kinesisDataFirehose"], - context - ); + if (output[_kDF] != null) { + contents[_KDF] = de_VerifiedAccessLogKinesisDataFirehoseDestination(output[_kDF], context); } - if (output["logVersion"] !== undefined) { - contents.LogVersion = __expectString(output["logVersion"]); + if (output[_lV] != null) { + contents[_LV] = __expectString(output[_lV]); } - if (output["includeTrustContext"] !== undefined) { - contents.IncludeTrustContext = __parseBoolean(output["includeTrustContext"]); + if (output[_iTCn] != null) { + contents[_ITCn] = __parseBoolean(output[_iTCn]); } return contents; }; @@ -95563,20 +94028,20 @@ const de_VerifiedAccessLogs = (output: any, context: __SerdeContext): VerifiedAc */ const de_VerifiedAccessLogS3Destination = (output: any, context: __SerdeContext): VerifiedAccessLogS3Destination => { const contents: any = {}; - if (output["enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["enabled"]); + if (output[_en] != null) { + contents[_En] = __parseBoolean(output[_en]); } - if (output["deliveryStatus"] !== undefined) { - contents.DeliveryStatus = de_VerifiedAccessLogDeliveryStatus(output["deliveryStatus"], context); + if (output[_dSel] != null) { + contents[_DSeli] = de_VerifiedAccessLogDeliveryStatus(output[_dSel], context); } - if (output["bucketName"] !== undefined) { - contents.BucketName = __expectString(output["bucketName"]); + if (output[_bN] != null) { + contents[_BN] = __expectString(output[_bN]); } - if (output["prefix"] !== undefined) { - contents.Prefix = __expectString(output["prefix"]); + if (output[_pre] != null) { + contents[_Pr] = __expectString(output[_pre]); } - if (output["bucketOwner"] !== undefined) { - contents.BucketOwner = __expectString(output["bucketOwner"]); + if (output[_bO] != null) { + contents[_BOu] = __expectString(output[_bO]); } return contents; }; @@ -95589,11 +94054,11 @@ const de_VerifiedAccessSseSpecificationResponse = ( context: __SerdeContext ): VerifiedAccessSseSpecificationResponse => { const contents: any = {}; - if (output["customerManagedKeyEnabled"] !== undefined) { - contents.CustomerManagedKeyEnabled = __parseBoolean(output["customerManagedKeyEnabled"]); + if (output[_cMKE] != null) { + contents[_CMKE] = __parseBoolean(output[_cMKE]); } - if (output["kmsKeyArn"] !== undefined) { - contents.KmsKeyArn = __expectString(output["kmsKeyArn"]); + if (output[_kKA] != null) { + contents[_KKA] = __expectString(output[_kKA]); } return contents; }; @@ -95603,43 +94068,43 @@ const de_VerifiedAccessSseSpecificationResponse = ( */ const de_VerifiedAccessTrustProvider = (output: any, context: __SerdeContext): VerifiedAccessTrustProvider => { const contents: any = {}; - if (output["verifiedAccessTrustProviderId"] !== undefined) { - contents.VerifiedAccessTrustProviderId = __expectString(output["verifiedAccessTrustProviderId"]); + if (output[_vATPI] != null) { + contents[_VATPI] = __expectString(output[_vATPI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["trustProviderType"] !== undefined) { - contents.TrustProviderType = __expectString(output["trustProviderType"]); + if (output[_tPT] != null) { + contents[_TPT] = __expectString(output[_tPT]); } - if (output["userTrustProviderType"] !== undefined) { - contents.UserTrustProviderType = __expectString(output["userTrustProviderType"]); + if (output[_uTPT] != null) { + contents[_UTPT] = __expectString(output[_uTPT]); } - if (output["deviceTrustProviderType"] !== undefined) { - contents.DeviceTrustProviderType = __expectString(output["deviceTrustProviderType"]); + if (output[_dTPT] != null) { + contents[_DTPT] = __expectString(output[_dTPT]); } - if (output["oidcOptions"] !== undefined) { - contents.OidcOptions = de_OidcOptions(output["oidcOptions"], context); + if (output[_oO] != null) { + contents[_OO] = de_OidcOptions(output[_oO], context); } - if (output["deviceOptions"] !== undefined) { - contents.DeviceOptions = de_DeviceOptions(output["deviceOptions"], context); + if (output[_dOev] != null) { + contents[_DOe] = de_DeviceOptions(output[_dOev], context); } - if (output["policyReferenceName"] !== undefined) { - contents.PolicyReferenceName = __expectString(output["policyReferenceName"]); + if (output[_pRNo] != null) { + contents[_PRN] = __expectString(output[_pRNo]); } - if (output["creationTime"] !== undefined) { - contents.CreationTime = __expectString(output["creationTime"]); + if (output[_cTre] != null) { + contents[_CTre] = __expectString(output[_cTre]); } - if (output["lastUpdatedTime"] !== undefined) { - contents.LastUpdatedTime = __expectString(output["lastUpdatedTime"]); + if (output[_lUT] != null) { + contents[_LUT] = __expectString(output[_lUT]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["sseSpecification"] !== undefined) { - contents.SseSpecification = de_VerifiedAccessSseSpecificationResponse(output["sseSpecification"], context); + if (output[_sSs] != null) { + contents[_SS] = de_VerifiedAccessSseSpecificationResponse(output[_sSs], context); } return contents; }; @@ -95652,20 +94117,20 @@ const de_VerifiedAccessTrustProviderCondensed = ( context: __SerdeContext ): VerifiedAccessTrustProviderCondensed => { const contents: any = {}; - if (output["verifiedAccessTrustProviderId"] !== undefined) { - contents.VerifiedAccessTrustProviderId = __expectString(output["verifiedAccessTrustProviderId"]); + if (output[_vATPI] != null) { + contents[_VATPI] = __expectString(output[_vATPI]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["trustProviderType"] !== undefined) { - contents.TrustProviderType = __expectString(output["trustProviderType"]); + if (output[_tPT] != null) { + contents[_TPT] = __expectString(output[_tPT]); } - if (output["userTrustProviderType"] !== undefined) { - contents.UserTrustProviderType = __expectString(output["userTrustProviderType"]); + if (output[_uTPT] != null) { + contents[_UTPT] = __expectString(output[_uTPT]); } - if (output["deviceTrustProviderType"] !== undefined) { - contents.DeviceTrustProviderType = __expectString(output["deviceTrustProviderType"]); + if (output[_dTPT] != null) { + contents[_DTPT] = __expectString(output[_dTPT]); } return contents; }; @@ -95700,23 +94165,23 @@ const de_VerifiedAccessTrustProviderList = (output: any, context: __SerdeContext */ const de_VgwTelemetry = (output: any, context: __SerdeContext): VgwTelemetry => { const contents: any = {}; - if (output["acceptedRouteCount"] !== undefined) { - contents.AcceptedRouteCount = __strictParseInt32(output["acceptedRouteCount"]) as number; + if (output[_aRC] != null) { + contents[_ARC] = __strictParseInt32(output[_aRC]) as number; } - if (output["lastStatusChange"] !== undefined) { - contents.LastStatusChange = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["lastStatusChange"])); + if (output[_lSC] != null) { + contents[_LSC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_lSC])); } - if (output["outsideIpAddress"] !== undefined) { - contents.OutsideIpAddress = __expectString(output["outsideIpAddress"]); + if (output[_oIA] != null) { + contents[_OIA] = __expectString(output[_oIA]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["certificateArn"] !== undefined) { - contents.CertificateArn = __expectString(output["certificateArn"]); + if (output[_cAe] != null) { + contents[_CA] = __expectString(output[_cAe]); } return contents; }; @@ -95749,59 +94214,59 @@ const de_VirtualizationTypeList = (output: any, context: __SerdeContext): Virtua const de_Volume = (output: any, context: __SerdeContext): Volume => { const contents: any = {}; if (output.attachmentSet === "") { - contents.Attachments = []; - } else if (output["attachmentSet"] !== undefined && output["attachmentSet"]["item"] !== undefined) { - contents.Attachments = de_VolumeAttachmentList(__getArrayIfSingleItem(output["attachmentSet"]["item"]), context); + contents[_Atta] = []; + } else if (output[_aSt] != null && output[_aSt][_i] != null) { + contents[_Atta] = de_VolumeAttachmentList(__getArrayIfSingleItem(output[_aSt][_i]), context); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["createTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["createTime"])); + if (output[_cTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output["encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["encrypted"]); + if (output[_enc] != null) { + contents[_Enc] = __parseBoolean(output[_enc]); } - if (output["kmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["kmsKeyId"]); + if (output[_kKI] != null) { + contents[_KKI] = __expectString(output[_kKI]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } - if (output["size"] !== undefined) { - contents.Size = __strictParseInt32(output["size"]) as number; + if (output[_si] != null) { + contents[_Siz] = __strictParseInt32(output[_si]) as number; } - if (output["snapshotId"] !== undefined) { - contents.SnapshotId = __expectString(output["snapshotId"]); + if (output[_sIn] != null) { + contents[_SIn] = __expectString(output[_sIn]); } - if (output["status"] !== undefined) { - contents.State = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Stat] = __expectString(output[_sta]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["iops"]) as number; + if (output[_io] != null) { + contents[_Io] = __strictParseInt32(output[_io]) as number; } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["volumeType"] !== undefined) { - contents.VolumeType = __expectString(output["volumeType"]); + if (output[_vT] != null) { + contents[_VT] = __expectString(output[_vT]); } - if (output["fastRestored"] !== undefined) { - contents.FastRestored = __parseBoolean(output["fastRestored"]); + if (output[_fRa] != null) { + contents[_FRa] = __parseBoolean(output[_fRa]); } - if (output["multiAttachEnabled"] !== undefined) { - contents.MultiAttachEnabled = __parseBoolean(output["multiAttachEnabled"]); + if (output[_mAE] != null) { + contents[_MAE] = __parseBoolean(output[_mAE]); } - if (output["throughput"] !== undefined) { - contents.Throughput = __strictParseInt32(output["throughput"]) as number; + if (output[_th] != null) { + contents[_Th] = __strictParseInt32(output[_th]) as number; } - if (output["sseType"] !== undefined) { - contents.SseType = __expectString(output["sseType"]); + if (output[_sTs] != null) { + contents[_STs] = __expectString(output[_sTs]); } return contents; }; @@ -95811,23 +94276,23 @@ const de_Volume = (output: any, context: __SerdeContext): Volume => { */ const de_VolumeAttachment = (output: any, context: __SerdeContext): VolumeAttachment => { const contents: any = {}; - if (output["attachTime"] !== undefined) { - contents.AttachTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["attachTime"])); + if (output[_aTt] != null) { + contents[_ATtt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_aTt])); } - if (output["device"] !== undefined) { - contents.Device = __expectString(output["device"]); + if (output[_dev] != null) { + contents[_Dev] = __expectString(output[_dev]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } - if (output["status"] !== undefined) { - contents.State = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Stat] = __expectString(output[_sta]); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["deleteOnTermination"] !== undefined) { - contents.DeleteOnTermination = __parseBoolean(output["deleteOnTermination"]); + if (output[_dOT] != null) { + contents[_DOT] = __parseBoolean(output[_dOT]); } return contents; }; @@ -95859,53 +94324,53 @@ const de_VolumeList = (output: any, context: __SerdeContext): Volume[] => { */ const de_VolumeModification = (output: any, context: __SerdeContext): VolumeModification => { const contents: any = {}; - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["modificationState"] !== undefined) { - contents.ModificationState = __expectString(output["modificationState"]); + if (output[_mSod] != null) { + contents[_MSod] = __expectString(output[_mSod]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } - if (output["targetSize"] !== undefined) { - contents.TargetSize = __strictParseInt32(output["targetSize"]) as number; + if (output[_tSar] != null) { + contents[_TSar] = __strictParseInt32(output[_tSar]) as number; } - if (output["targetIops"] !== undefined) { - contents.TargetIops = __strictParseInt32(output["targetIops"]) as number; + if (output[_tIa] != null) { + contents[_TIa] = __strictParseInt32(output[_tIa]) as number; } - if (output["targetVolumeType"] !== undefined) { - contents.TargetVolumeType = __expectString(output["targetVolumeType"]); + if (output[_tVT] != null) { + contents[_TVT] = __expectString(output[_tVT]); } - if (output["targetThroughput"] !== undefined) { - contents.TargetThroughput = __strictParseInt32(output["targetThroughput"]) as number; + if (output[_tTa] != null) { + contents[_TTa] = __strictParseInt32(output[_tTa]) as number; } - if (output["targetMultiAttachEnabled"] !== undefined) { - contents.TargetMultiAttachEnabled = __parseBoolean(output["targetMultiAttachEnabled"]); + if (output[_tMAE] != null) { + contents[_TMAE] = __parseBoolean(output[_tMAE]); } - if (output["originalSize"] !== undefined) { - contents.OriginalSize = __strictParseInt32(output["originalSize"]) as number; + if (output[_oSr] != null) { + contents[_OSr] = __strictParseInt32(output[_oSr]) as number; } - if (output["originalIops"] !== undefined) { - contents.OriginalIops = __strictParseInt32(output["originalIops"]) as number; + if (output[_oIr] != null) { + contents[_OIr] = __strictParseInt32(output[_oIr]) as number; } - if (output["originalVolumeType"] !== undefined) { - contents.OriginalVolumeType = __expectString(output["originalVolumeType"]); + if (output[_oVT] != null) { + contents[_OVT] = __expectString(output[_oVT]); } - if (output["originalThroughput"] !== undefined) { - contents.OriginalThroughput = __strictParseInt32(output["originalThroughput"]) as number; + if (output[_oTr] != null) { + contents[_OTr] = __strictParseInt32(output[_oTr]) as number; } - if (output["originalMultiAttachEnabled"] !== undefined) { - contents.OriginalMultiAttachEnabled = __parseBoolean(output["originalMultiAttachEnabled"]); + if (output[_oMAE] != null) { + contents[_OMAE] = __parseBoolean(output[_oMAE]); } - if (output["progress"] !== undefined) { - contents.Progress = __strictParseLong(output["progress"]) as number; + if (output[_pro] != null) { + contents[_Prog] = __strictParseLong(output[_pro]) as number; } - if (output["startTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["startTime"])); + if (output[_sT] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } - if (output["endTime"] !== undefined) { - contents.EndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["endTime"])); + if (output[_eTndi] != null) { + contents[_ETn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eTndi])); } return contents; }; @@ -95926,17 +94391,17 @@ const de_VolumeModificationList = (output: any, context: __SerdeContext): Volume */ const de_VolumeStatusAction = (output: any, context: __SerdeContext): VolumeStatusAction => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["eventId"] !== undefined) { - contents.EventId = __expectString(output["eventId"]); + if (output[_eIve] != null) { + contents[_EIve] = __expectString(output[_eIve]); } - if (output["eventType"] !== undefined) { - contents.EventType = __expectString(output["eventType"]); + if (output[_eTv] != null) { + contents[_ETv] = __expectString(output[_eTv]); } return contents; }; @@ -95957,11 +94422,11 @@ const de_VolumeStatusActionsList = (output: any, context: __SerdeContext): Volum */ const de_VolumeStatusAttachmentStatus = (output: any, context: __SerdeContext): VolumeStatusAttachmentStatus => { const contents: any = {}; - if (output["ioPerformance"] !== undefined) { - contents.IoPerformance = __expectString(output["ioPerformance"]); + if (output[_iPo] != null) { + contents[_IPo] = __expectString(output[_iPo]); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } return contents; }; @@ -95982,11 +94447,11 @@ const de_VolumeStatusAttachmentStatusList = (output: any, context: __SerdeContex */ const de_VolumeStatusDetails = (output: any, context: __SerdeContext): VolumeStatusDetails => { const contents: any = {}; - if (output["name"] !== undefined) { - contents.Name = __expectString(output["name"]); + if (output[_n] != null) { + contents[_N] = __expectString(output[_n]); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -96007,23 +94472,23 @@ const de_VolumeStatusDetailsList = (output: any, context: __SerdeContext): Volum */ const de_VolumeStatusEvent = (output: any, context: __SerdeContext): VolumeStatusEvent => { const contents: any = {}; - if (output["description"] !== undefined) { - contents.Description = __expectString(output["description"]); + if (output[_de] != null) { + contents[_De] = __expectString(output[_de]); } - if (output["eventId"] !== undefined) { - contents.EventId = __expectString(output["eventId"]); + if (output[_eIve] != null) { + contents[_EIve] = __expectString(output[_eIve]); } - if (output["eventType"] !== undefined) { - contents.EventType = __expectString(output["eventType"]); + if (output[_eTv] != null) { + contents[_ETv] = __expectString(output[_eTv]); } - if (output["notAfter"] !== undefined) { - contents.NotAfter = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["notAfter"])); + if (output[_nAo] != null) { + contents[_NAo] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_nAo])); } - if (output["notBefore"] !== undefined) { - contents.NotBefore = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["notBefore"])); + if (output[_nB] != null) { + contents[_NB] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_nB])); } - if (output["instanceId"] !== undefined) { - contents.InstanceId = __expectString(output["instanceId"]); + if (output[_iI] != null) { + contents[_IIn] = __expectString(output[_iI]); } return contents; }; @@ -96045,12 +94510,12 @@ const de_VolumeStatusEventsList = (output: any, context: __SerdeContext): Volume const de_VolumeStatusInfo = (output: any, context: __SerdeContext): VolumeStatusInfo => { const contents: any = {}; if (output.details === "") { - contents.Details = []; - } else if (output["details"] !== undefined && output["details"]["item"] !== undefined) { - contents.Details = de_VolumeStatusDetailsList(__getArrayIfSingleItem(output["details"]["item"]), context); + contents[_Det] = []; + } else if (output[_det] != null && output[_det][_i] != null) { + contents[_Det] = de_VolumeStatusDetailsList(__getArrayIfSingleItem(output[_det][_i]), context); } - if (output["status"] !== undefined) { - contents.Status = __expectString(output["status"]); + if (output[_sta] != null) { + contents[_Statu] = __expectString(output[_sta]); } return contents; }; @@ -96061,34 +94526,31 @@ const de_VolumeStatusInfo = (output: any, context: __SerdeContext): VolumeStatus const de_VolumeStatusItem = (output: any, context: __SerdeContext): VolumeStatusItem => { const contents: any = {}; if (output.actionsSet === "") { - contents.Actions = []; - } else if (output["actionsSet"] !== undefined && output["actionsSet"]["item"] !== undefined) { - contents.Actions = de_VolumeStatusActionsList(__getArrayIfSingleItem(output["actionsSet"]["item"]), context); + contents[_Acti] = []; + } else if (output[_aSct] != null && output[_aSct][_i] != null) { + contents[_Acti] = de_VolumeStatusActionsList(__getArrayIfSingleItem(output[_aSct][_i]), context); } - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["outpostArn"] !== undefined) { - contents.OutpostArn = __expectString(output["outpostArn"]); + if (output[_oA] != null) { + contents[_OA] = __expectString(output[_oA]); } if (output.eventsSet === "") { - contents.Events = []; - } else if (output["eventsSet"] !== undefined && output["eventsSet"]["item"] !== undefined) { - contents.Events = de_VolumeStatusEventsList(__getArrayIfSingleItem(output["eventsSet"]["item"]), context); + contents[_Ev] = []; + } else if (output[_eSv] != null && output[_eSv][_i] != null) { + contents[_Ev] = de_VolumeStatusEventsList(__getArrayIfSingleItem(output[_eSv][_i]), context); } - if (output["volumeId"] !== undefined) { - contents.VolumeId = __expectString(output["volumeId"]); + if (output[_vIo] != null) { + contents[_VIo] = __expectString(output[_vIo]); } - if (output["volumeStatus"] !== undefined) { - contents.VolumeStatus = de_VolumeStatusInfo(output["volumeStatus"], context); + if (output[_vSol] != null) { + contents[_VSol] = de_VolumeStatusInfo(output[_vSol], context); } if (output.attachmentStatuses === "") { - contents.AttachmentStatuses = []; - } else if (output["attachmentStatuses"] !== undefined && output["attachmentStatuses"]["item"] !== undefined) { - contents.AttachmentStatuses = de_VolumeStatusAttachmentStatusList( - __getArrayIfSingleItem(output["attachmentStatuses"]["item"]), - context - ); + contents[_ASt] = []; + } else if (output[_aStt] != null && output[_aStt][_i] != null) { + contents[_ASt] = de_VolumeStatusAttachmentStatusList(__getArrayIfSingleItem(output[_aStt][_i]), context); } return contents; }; @@ -96109,53 +94571,41 @@ const de_VolumeStatusList = (output: any, context: __SerdeContext): VolumeStatus */ const de_Vpc = (output: any, context: __SerdeContext): Vpc => { const contents: any = {}; - if (output["cidrBlock"] !== undefined) { - contents.CidrBlock = __expectString(output["cidrBlock"]); + if (output[_cB] != null) { + contents[_CB] = __expectString(output[_cB]); } - if (output["dhcpOptionsId"] !== undefined) { - contents.DhcpOptionsId = __expectString(output["dhcpOptionsId"]); + if (output[_dOI] != null) { + contents[_DOI] = __expectString(output[_dOI]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["instanceTenancy"] !== undefined) { - contents.InstanceTenancy = __expectString(output["instanceTenancy"]); + if (output[_iTns] != null) { + contents[_ITns] = __expectString(output[_iTns]); } if (output.ipv6CidrBlockAssociationSet === "") { - contents.Ipv6CidrBlockAssociationSet = []; - } else if ( - output["ipv6CidrBlockAssociationSet"] !== undefined && - output["ipv6CidrBlockAssociationSet"]["item"] !== undefined - ) { - contents.Ipv6CidrBlockAssociationSet = de_VpcIpv6CidrBlockAssociationSet( - __getArrayIfSingleItem(output["ipv6CidrBlockAssociationSet"]["item"]), - context - ); + contents[_ICBAS] = []; + } else if (output[_iCBAS] != null && output[_iCBAS][_i] != null) { + contents[_ICBAS] = de_VpcIpv6CidrBlockAssociationSet(__getArrayIfSingleItem(output[_iCBAS][_i]), context); } if (output.cidrBlockAssociationSet === "") { - contents.CidrBlockAssociationSet = []; - } else if ( - output["cidrBlockAssociationSet"] !== undefined && - output["cidrBlockAssociationSet"]["item"] !== undefined - ) { - contents.CidrBlockAssociationSet = de_VpcCidrBlockAssociationSet( - __getArrayIfSingleItem(output["cidrBlockAssociationSet"]["item"]), - context - ); + contents[_CBAS] = []; + } else if (output[_cBAS] != null && output[_cBAS][_i] != null) { + contents[_CBAS] = de_VpcCidrBlockAssociationSet(__getArrayIfSingleItem(output[_cBAS][_i]), context); } - if (output["isDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["isDefault"]); + if (output[_iDs] != null) { + contents[_IDs] = __parseBoolean(output[_iDs]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -96165,11 +94615,11 @@ const de_Vpc = (output: any, context: __SerdeContext): Vpc => { */ const de_VpcAttachment = (output: any, context: __SerdeContext): VpcAttachment => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -96190,14 +94640,14 @@ const de_VpcAttachmentList = (output: any, context: __SerdeContext): VpcAttachme */ const de_VpcCidrBlockAssociation = (output: any, context: __SerdeContext): VpcCidrBlockAssociation => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["cidrBlock"] !== undefined) { - contents.CidrBlock = __expectString(output["cidrBlock"]); + if (output[_cB] != null) { + contents[_CB] = __expectString(output[_cB]); } - if (output["cidrBlockState"] !== undefined) { - contents.CidrBlockState = de_VpcCidrBlockState(output["cidrBlockState"], context); + if (output[_cBS] != null) { + contents[_CBS] = de_VpcCidrBlockState(output[_cBS], context); } return contents; }; @@ -96218,11 +94668,11 @@ const de_VpcCidrBlockAssociationSet = (output: any, context: __SerdeContext): Vp */ const de_VpcCidrBlockState = (output: any, context: __SerdeContext): VpcCidrBlockState => { const contents: any = {}; - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["statusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["statusMessage"]); + if (output[_sM] != null) { + contents[_SM] = __expectString(output[_sM]); } return contents; }; @@ -96232,16 +94682,16 @@ const de_VpcCidrBlockState = (output: any, context: __SerdeContext): VpcCidrBloc */ const de_VpcClassicLink = (output: any, context: __SerdeContext): VpcClassicLink => { const contents: any = {}; - if (output["classicLinkEnabled"] !== undefined) { - contents.ClassicLinkEnabled = __parseBoolean(output["classicLinkEnabled"]); + if (output[_cLE] != null) { + contents[_CLE] = __parseBoolean(output[_cLE]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } return contents; }; @@ -96262,77 +94712,74 @@ const de_VpcClassicLinkList = (output: any, context: __SerdeContext): VpcClassic */ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { const contents: any = {}; - if (output["vpcEndpointId"] !== undefined) { - contents.VpcEndpointId = __expectString(output["vpcEndpointId"]); + if (output[_vEI] != null) { + contents[_VEIp] = __expectString(output[_vEI]); } - if (output["vpcEndpointType"] !== undefined) { - contents.VpcEndpointType = __expectString(output["vpcEndpointType"]); + if (output[_vET] != null) { + contents[_VET] = __expectString(output[_vET]); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["serviceName"] !== undefined) { - contents.ServiceName = __expectString(output["serviceName"]); + if (output[_sN] != null) { + contents[_SNe] = __expectString(output[_sN]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["policyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["policyDocument"]); + if (output[_pDo] != null) { + contents[_PD] = __expectString(output[_pDo]); } if (output.routeTableIdSet === "") { - contents.RouteTableIds = []; - } else if (output["routeTableIdSet"] !== undefined && output["routeTableIdSet"]["item"] !== undefined) { - contents.RouteTableIds = de_ValueStringList(__getArrayIfSingleItem(output["routeTableIdSet"]["item"]), context); + contents[_RTIo] = []; + } else if (output[_rTIS] != null && output[_rTIS][_i] != null) { + contents[_RTIo] = de_ValueStringList(__getArrayIfSingleItem(output[_rTIS][_i]), context); } if (output.subnetIdSet === "") { - contents.SubnetIds = []; - } else if (output["subnetIdSet"] !== undefined && output["subnetIdSet"]["item"] !== undefined) { - contents.SubnetIds = de_ValueStringList(__getArrayIfSingleItem(output["subnetIdSet"]["item"]), context); + contents[_SIu] = []; + } else if (output[_sISu] != null && output[_sISu][_i] != null) { + contents[_SIu] = de_ValueStringList(__getArrayIfSingleItem(output[_sISu][_i]), context); } if (output.groupSet === "") { - contents.Groups = []; - } else if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) { - contents.Groups = de_GroupIdentifierSet(__getArrayIfSingleItem(output["groupSet"]["item"]), context); + contents[_G] = []; + } else if (output[_gS] != null && output[_gS][_i] != null) { + contents[_G] = de_GroupIdentifierSet(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output["ipAddressType"] !== undefined) { - contents.IpAddressType = __expectString(output["ipAddressType"]); + if (output[_iAT] != null) { + contents[_IAT] = __expectString(output[_iAT]); } - if (output["dnsOptions"] !== undefined) { - contents.DnsOptions = de_DnsOptions(output["dnsOptions"], context); + if (output[_dOn] != null) { + contents[_DOn] = de_DnsOptions(output[_dOn], context); } - if (output["privateDnsEnabled"] !== undefined) { - contents.PrivateDnsEnabled = __parseBoolean(output["privateDnsEnabled"]); + if (output[_pDE] != null) { + contents[_PDE] = __parseBoolean(output[_pDE]); } - if (output["requesterManaged"] !== undefined) { - contents.RequesterManaged = __parseBoolean(output["requesterManaged"]); + if (output[_rM] != null) { + contents[_RMe] = __parseBoolean(output[_rM]); } if (output.networkInterfaceIdSet === "") { - contents.NetworkInterfaceIds = []; - } else if (output["networkInterfaceIdSet"] !== undefined && output["networkInterfaceIdSet"]["item"] !== undefined) { - contents.NetworkInterfaceIds = de_ValueStringList( - __getArrayIfSingleItem(output["networkInterfaceIdSet"]["item"]), - context - ); + contents[_NIIe] = []; + } else if (output[_nIIS] != null && output[_nIIS][_i] != null) { + contents[_NIIe] = de_ValueStringList(__getArrayIfSingleItem(output[_nIIS][_i]), context); } if (output.dnsEntrySet === "") { - contents.DnsEntries = []; - } else if (output["dnsEntrySet"] !== undefined && output["dnsEntrySet"]["item"] !== undefined) { - contents.DnsEntries = de_DnsEntrySet(__getArrayIfSingleItem(output["dnsEntrySet"]["item"]), context); + contents[_DE] = []; + } else if (output[_dES] != null && output[_dES][_i] != null) { + contents[_DE] = de_DnsEntrySet(__getArrayIfSingleItem(output[_dES][_i]), context); } - if (output["creationTimestamp"] !== undefined) { - contents.CreationTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTimestamp"])); + if (output[_cTrea] != null) { + contents[_CTrea] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTrea])); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["lastError"] !== undefined) { - contents.LastError = de_LastError(output["lastError"], context); + if (output[_lEa] != null) { + contents[_LEa] = de_LastError(output[_lEa], context); } return contents; }; @@ -96342,58 +94789,46 @@ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { */ const de_VpcEndpointConnection = (output: any, context: __SerdeContext): VpcEndpointConnection => { const contents: any = {}; - if (output["serviceId"] !== undefined) { - contents.ServiceId = __expectString(output["serviceId"]); + if (output[_sI] != null) { + contents[_SIe] = __expectString(output[_sI]); } - if (output["vpcEndpointId"] !== undefined) { - contents.VpcEndpointId = __expectString(output["vpcEndpointId"]); + if (output[_vEI] != null) { + contents[_VEIp] = __expectString(output[_vEI]); } - if (output["vpcEndpointOwner"] !== undefined) { - contents.VpcEndpointOwner = __expectString(output["vpcEndpointOwner"]); + if (output[_vEO] != null) { + contents[_VEO] = __expectString(output[_vEO]); } - if (output["vpcEndpointState"] !== undefined) { - contents.VpcEndpointState = __expectString(output["vpcEndpointState"]); + if (output[_vESpc] != null) { + contents[_VESpc] = __expectString(output[_vESpc]); } - if (output["creationTimestamp"] !== undefined) { - contents.CreationTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["creationTimestamp"])); + if (output[_cTrea] != null) { + contents[_CTrea] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTrea])); } if (output.dnsEntrySet === "") { - contents.DnsEntries = []; - } else if (output["dnsEntrySet"] !== undefined && output["dnsEntrySet"]["item"] !== undefined) { - contents.DnsEntries = de_DnsEntrySet(__getArrayIfSingleItem(output["dnsEntrySet"]["item"]), context); + contents[_DE] = []; + } else if (output[_dES] != null && output[_dES][_i] != null) { + contents[_DE] = de_DnsEntrySet(__getArrayIfSingleItem(output[_dES][_i]), context); } if (output.networkLoadBalancerArnSet === "") { - contents.NetworkLoadBalancerArns = []; - } else if ( - output["networkLoadBalancerArnSet"] !== undefined && - output["networkLoadBalancerArnSet"]["item"] !== undefined - ) { - contents.NetworkLoadBalancerArns = de_ValueStringList( - __getArrayIfSingleItem(output["networkLoadBalancerArnSet"]["item"]), - context - ); + contents[_NLBAe] = []; + } else if (output[_nLBAS] != null && output[_nLBAS][_i] != null) { + contents[_NLBAe] = de_ValueStringList(__getArrayIfSingleItem(output[_nLBAS][_i]), context); } if (output.gatewayLoadBalancerArnSet === "") { - contents.GatewayLoadBalancerArns = []; - } else if ( - output["gatewayLoadBalancerArnSet"] !== undefined && - output["gatewayLoadBalancerArnSet"]["item"] !== undefined - ) { - contents.GatewayLoadBalancerArns = de_ValueStringList( - __getArrayIfSingleItem(output["gatewayLoadBalancerArnSet"]["item"]), - context - ); + contents[_GLBA] = []; + } else if (output[_gLBAS] != null && output[_gLBAS][_i] != null) { + contents[_GLBA] = de_ValueStringList(__getArrayIfSingleItem(output[_gLBAS][_i]), context); } - if (output["ipAddressType"] !== undefined) { - contents.IpAddressType = __expectString(output["ipAddressType"]); + if (output[_iAT] != null) { + contents[_IAT] = __expectString(output[_iAT]); } - if (output["vpcEndpointConnectionId"] !== undefined) { - contents.VpcEndpointConnectionId = __expectString(output["vpcEndpointConnectionId"]); + if (output[_vECI] != null) { + contents[_VECI] = __expectString(output[_vECI]); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -96425,20 +94860,20 @@ const de_VpcEndpointSet = (output: any, context: __SerdeContext): VpcEndpoint[] */ const de_VpcIpv6CidrBlockAssociation = (output: any, context: __SerdeContext): VpcIpv6CidrBlockAssociation => { const contents: any = {}; - if (output["associationId"] !== undefined) { - contents.AssociationId = __expectString(output["associationId"]); + if (output[_aIs] != null) { + contents[_AIss] = __expectString(output[_aIs]); } - if (output["ipv6CidrBlock"] !== undefined) { - contents.Ipv6CidrBlock = __expectString(output["ipv6CidrBlock"]); + if (output[_iCB] != null) { + contents[_ICB] = __expectString(output[_iCB]); } - if (output["ipv6CidrBlockState"] !== undefined) { - contents.Ipv6CidrBlockState = de_VpcCidrBlockState(output["ipv6CidrBlockState"], context); + if (output[_iCBS] != null) { + contents[_ICBS] = de_VpcCidrBlockState(output[_iCBS], context); } - if (output["networkBorderGroup"] !== undefined) { - contents.NetworkBorderGroup = __expectString(output["networkBorderGroup"]); + if (output[_nBG] != null) { + contents[_NBG] = __expectString(output[_nBG]); } - if (output["ipv6Pool"] !== undefined) { - contents.Ipv6Pool = __expectString(output["ipv6Pool"]); + if (output[_iPpvo] != null) { + contents[_IPpv] = __expectString(output[_iPpvo]); } return contents; }; @@ -96470,25 +94905,25 @@ const de_VpcList = (output: any, context: __SerdeContext): Vpc[] => { */ const de_VpcPeeringConnection = (output: any, context: __SerdeContext): VpcPeeringConnection => { const contents: any = {}; - if (output["accepterVpcInfo"] !== undefined) { - contents.AccepterVpcInfo = de_VpcPeeringConnectionVpcInfo(output["accepterVpcInfo"], context); + if (output[_aVI] != null) { + contents[_AVI] = de_VpcPeeringConnectionVpcInfo(output[_aVI], context); } - if (output["expirationTime"] !== undefined) { - contents.ExpirationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["expirationTime"])); + if (output[_eT] != null) { + contents[_ETx] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eT])); } - if (output["requesterVpcInfo"] !== undefined) { - contents.RequesterVpcInfo = de_VpcPeeringConnectionVpcInfo(output["requesterVpcInfo"], context); + if (output[_rVIe] != null) { + contents[_RVIe] = de_VpcPeeringConnectionVpcInfo(output[_rVIe], context); } - if (output["status"] !== undefined) { - contents.Status = de_VpcPeeringConnectionStateReason(output["status"], context); + if (output[_sta] != null) { + contents[_Statu] = de_VpcPeeringConnectionStateReason(output[_sta], context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output["vpcPeeringConnectionId"] !== undefined) { - contents.VpcPeeringConnectionId = __expectString(output["vpcPeeringConnectionId"]); + if (output[_vPCI] != null) { + contents[_VPCI] = __expectString(output[_vPCI]); } return contents; }; @@ -96512,18 +94947,14 @@ const de_VpcPeeringConnectionOptionsDescription = ( context: __SerdeContext ): VpcPeeringConnectionOptionsDescription => { const contents: any = {}; - if (output["allowDnsResolutionFromRemoteVpc"] !== undefined) { - contents.AllowDnsResolutionFromRemoteVpc = __parseBoolean(output["allowDnsResolutionFromRemoteVpc"]); + if (output[_aDRFRV] != null) { + contents[_ADRFRV] = __parseBoolean(output[_aDRFRV]); } - if (output["allowEgressFromLocalClassicLinkToRemoteVpc"] !== undefined) { - contents.AllowEgressFromLocalClassicLinkToRemoteVpc = __parseBoolean( - output["allowEgressFromLocalClassicLinkToRemoteVpc"] - ); + if (output[_aEFLCLTRV] != null) { + contents[_AEFLCLTRV] = __parseBoolean(output[_aEFLCLTRV]); } - if (output["allowEgressFromLocalVpcToRemoteClassicLink"] !== undefined) { - contents.AllowEgressFromLocalVpcToRemoteClassicLink = __parseBoolean( - output["allowEgressFromLocalVpcToRemoteClassicLink"] - ); + if (output[_aEFLVTRCL] != null) { + contents[_AEFLVTRCL] = __parseBoolean(output[_aEFLVTRCL]); } return contents; }; @@ -96533,11 +94964,11 @@ const de_VpcPeeringConnectionOptionsDescription = ( */ const de_VpcPeeringConnectionStateReason = (output: any, context: __SerdeContext): VpcPeeringConnectionStateReason => { const contents: any = {}; - if (output["code"] !== undefined) { - contents.Code = __expectString(output["code"]); + if (output[_co] != null) { + contents[_Cod] = __expectString(output[_co]); } - if (output["message"] !== undefined) { - contents.Message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_Me] = __expectString(output[_me]); } return contents; }; @@ -96547,33 +94978,30 @@ const de_VpcPeeringConnectionStateReason = (output: any, context: __SerdeContext */ const de_VpcPeeringConnectionVpcInfo = (output: any, context: __SerdeContext): VpcPeeringConnectionVpcInfo => { const contents: any = {}; - if (output["cidrBlock"] !== undefined) { - contents.CidrBlock = __expectString(output["cidrBlock"]); + if (output[_cB] != null) { + contents[_CB] = __expectString(output[_cB]); } if (output.ipv6CidrBlockSet === "") { - contents.Ipv6CidrBlockSet = []; - } else if (output["ipv6CidrBlockSet"] !== undefined && output["ipv6CidrBlockSet"]["item"] !== undefined) { - contents.Ipv6CidrBlockSet = de_Ipv6CidrBlockSet( - __getArrayIfSingleItem(output["ipv6CidrBlockSet"]["item"]), - context - ); + contents[_ICBSp] = []; + } else if (output[_iCBSp] != null && output[_iCBSp][_i] != null) { + contents[_ICBSp] = de_Ipv6CidrBlockSet(__getArrayIfSingleItem(output[_iCBSp][_i]), context); } if (output.cidrBlockSet === "") { - contents.CidrBlockSet = []; - } else if (output["cidrBlockSet"] !== undefined && output["cidrBlockSet"]["item"] !== undefined) { - contents.CidrBlockSet = de_CidrBlockSet(__getArrayIfSingleItem(output["cidrBlockSet"]["item"]), context); + contents[_CBSi] = []; + } else if (output[_cBSi] != null && output[_cBSi][_i] != null) { + contents[_CBSi] = de_CidrBlockSet(__getArrayIfSingleItem(output[_cBSi][_i]), context); } - if (output["ownerId"] !== undefined) { - contents.OwnerId = __expectString(output["ownerId"]); + if (output[_oI] != null) { + contents[_OIwn] = __expectString(output[_oI]); } - if (output["peeringOptions"] !== undefined) { - contents.PeeringOptions = de_VpcPeeringConnectionOptionsDescription(output["peeringOptions"], context); + if (output[_pOe] != null) { + contents[_POe] = de_VpcPeeringConnectionOptionsDescription(output[_pOe], context); } - if (output["vpcId"] !== undefined) { - contents.VpcId = __expectString(output["vpcId"]); + if (output[_vI] != null) { + contents[_VI] = __expectString(output[_vI]); } - if (output["region"] !== undefined) { - contents.Region = __expectString(output["region"]); + if (output[_reg] != null) { + contents[_Regi] = __expectString(output[_reg]); } return contents; }; @@ -96583,56 +95011,56 @@ const de_VpcPeeringConnectionVpcInfo = (output: any, context: __SerdeContext): V */ const de_VpnConnection = (output: any, context: __SerdeContext): VpnConnection => { const contents: any = {}; - if (output["customerGatewayConfiguration"] !== undefined) { - contents.CustomerGatewayConfiguration = __expectString(output["customerGatewayConfiguration"]); + if (output[_cGC] != null) { + contents[_CGC] = __expectString(output[_cGC]); } - if (output["customerGatewayId"] !== undefined) { - contents.CustomerGatewayId = __expectString(output["customerGatewayId"]); + if (output[_cGIu] != null) { + contents[_CGIu] = __expectString(output[_cGIu]); } - if (output["category"] !== undefined) { - contents.Category = __expectString(output["category"]); + if (output[_ca] != null) { + contents[_Cat] = __expectString(output[_ca]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } - if (output["vpnConnectionId"] !== undefined) { - contents.VpnConnectionId = __expectString(output["vpnConnectionId"]); + if (output[_vCI] != null) { + contents[_VCI] = __expectString(output[_vCI]); } - if (output["vpnGatewayId"] !== undefined) { - contents.VpnGatewayId = __expectString(output["vpnGatewayId"]); + if (output[_vGI] != null) { + contents[_VGI] = __expectString(output[_vGI]); } - if (output["transitGatewayId"] !== undefined) { - contents.TransitGatewayId = __expectString(output["transitGatewayId"]); + if (output[_tGI] != null) { + contents[_TGI] = __expectString(output[_tGI]); } - if (output["coreNetworkArn"] !== undefined) { - contents.CoreNetworkArn = __expectString(output["coreNetworkArn"]); + if (output[_cNA] != null) { + contents[_CNAo] = __expectString(output[_cNA]); } - if (output["coreNetworkAttachmentArn"] !== undefined) { - contents.CoreNetworkAttachmentArn = __expectString(output["coreNetworkAttachmentArn"]); + if (output[_cNAA] != null) { + contents[_CNAA] = __expectString(output[_cNAA]); } - if (output["gatewayAssociationState"] !== undefined) { - contents.GatewayAssociationState = __expectString(output["gatewayAssociationState"]); + if (output[_gAS] != null) { + contents[_GAS] = __expectString(output[_gAS]); } - if (output["options"] !== undefined) { - contents.Options = de_VpnConnectionOptions(output["options"], context); + if (output[_op] != null) { + contents[_O] = de_VpnConnectionOptions(output[_op], context); } if (output.routes === "") { - contents.Routes = []; - } else if (output["routes"] !== undefined && output["routes"]["item"] !== undefined) { - contents.Routes = de_VpnStaticRouteList(__getArrayIfSingleItem(output["routes"]["item"]), context); + contents[_Rou] = []; + } else if (output[_rou] != null && output[_rou][_i] != null) { + contents[_Rou] = de_VpnStaticRouteList(__getArrayIfSingleItem(output[_rou][_i]), context); } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } if (output.vgwTelemetry === "") { - contents.VgwTelemetry = []; - } else if (output["vgwTelemetry"] !== undefined && output["vgwTelemetry"]["item"] !== undefined) { - contents.VgwTelemetry = de_VgwTelemetryList(__getArrayIfSingleItem(output["vgwTelemetry"]["item"]), context); + contents[_VTg] = []; + } else if (output[_vTg] != null && output[_vTg][_i] != null) { + contents[_VTg] = de_VgwTelemetryList(__getArrayIfSingleItem(output[_vTg][_i]), context); } return contents; }; @@ -96642,17 +95070,17 @@ const de_VpnConnection = (output: any, context: __SerdeContext): VpnConnection = */ const de_VpnConnectionDeviceType = (output: any, context: __SerdeContext): VpnConnectionDeviceType => { const contents: any = {}; - if (output["vpnConnectionDeviceTypeId"] !== undefined) { - contents.VpnConnectionDeviceTypeId = __expectString(output["vpnConnectionDeviceTypeId"]); + if (output[_vCDTI] != null) { + contents[_VCDTI] = __expectString(output[_vCDTI]); } - if (output["vendor"] !== undefined) { - contents.Vendor = __expectString(output["vendor"]); + if (output[_ven] != null) { + contents[_Ven] = __expectString(output[_ven]); } - if (output["platform"] !== undefined) { - contents.Platform = __expectString(output["platform"]); + if (output[_pl] != null) { + contents[_Pla] = __expectString(output[_pl]); } - if (output["software"] !== undefined) { - contents.Software = __expectString(output["software"]); + if (output[_sof] != null) { + contents[_Sof] = __expectString(output[_sof]); } return contents; }; @@ -96684,37 +95112,37 @@ const de_VpnConnectionList = (output: any, context: __SerdeContext): VpnConnecti */ const de_VpnConnectionOptions = (output: any, context: __SerdeContext): VpnConnectionOptions => { const contents: any = {}; - if (output["enableAcceleration"] !== undefined) { - contents.EnableAcceleration = __parseBoolean(output["enableAcceleration"]); + if (output[_eA] != null) { + contents[_EA] = __parseBoolean(output[_eA]); } - if (output["staticRoutesOnly"] !== undefined) { - contents.StaticRoutesOnly = __parseBoolean(output["staticRoutesOnly"]); + if (output[_sRO] != null) { + contents[_SRO] = __parseBoolean(output[_sRO]); } - if (output["localIpv4NetworkCidr"] !== undefined) { - contents.LocalIpv4NetworkCidr = __expectString(output["localIpv4NetworkCidr"]); + if (output[_lINC] != null) { + contents[_LINC] = __expectString(output[_lINC]); } - if (output["remoteIpv4NetworkCidr"] !== undefined) { - contents.RemoteIpv4NetworkCidr = __expectString(output["remoteIpv4NetworkCidr"]); + if (output[_rINC] != null) { + contents[_RINC] = __expectString(output[_rINC]); } - if (output["localIpv6NetworkCidr"] !== undefined) { - contents.LocalIpv6NetworkCidr = __expectString(output["localIpv6NetworkCidr"]); + if (output[_lINCo] != null) { + contents[_LINCo] = __expectString(output[_lINCo]); } - if (output["remoteIpv6NetworkCidr"] !== undefined) { - contents.RemoteIpv6NetworkCidr = __expectString(output["remoteIpv6NetworkCidr"]); + if (output[_rINCe] != null) { + contents[_RINCe] = __expectString(output[_rINCe]); } - if (output["outsideIpAddressType"] !== undefined) { - contents.OutsideIpAddressType = __expectString(output["outsideIpAddressType"]); + if (output[_oIAT] != null) { + contents[_OIAT] = __expectString(output[_oIAT]); } - if (output["transportTransitGatewayAttachmentId"] !== undefined) { - contents.TransportTransitGatewayAttachmentId = __expectString(output["transportTransitGatewayAttachmentId"]); + if (output[_tTGAI] != null) { + contents[_TTGAI] = __expectString(output[_tTGAI]); } - if (output["tunnelInsideIpVersion"] !== undefined) { - contents.TunnelInsideIpVersion = __expectString(output["tunnelInsideIpVersion"]); + if (output[_tIIV] != null) { + contents[_TIIV] = __expectString(output[_tIIV]); } if (output.tunnelOptionSet === "") { - contents.TunnelOptions = []; - } else if (output["tunnelOptionSet"] !== undefined && output["tunnelOptionSet"]["item"] !== undefined) { - contents.TunnelOptions = de_TunnelOptionsList(__getArrayIfSingleItem(output["tunnelOptionSet"]["item"]), context); + contents[_TO] = []; + } else if (output[_tOS] != null && output[_tOS][_i] != null) { + contents[_TO] = de_TunnelOptionsList(__getArrayIfSingleItem(output[_tOS][_i]), context); } return contents; }; @@ -96724,30 +95152,30 @@ const de_VpnConnectionOptions = (output: any, context: __SerdeContext): VpnConne */ const de_VpnGateway = (output: any, context: __SerdeContext): VpnGateway => { const contents: any = {}; - if (output["availabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["availabilityZone"]); + if (output[_aZ] != null) { + contents[_AZ] = __expectString(output[_aZ]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } - if (output["type"] !== undefined) { - contents.Type = __expectString(output["type"]); + if (output[_ty] != null) { + contents[_T] = __expectString(output[_ty]); } if (output.attachments === "") { - contents.VpcAttachments = []; - } else if (output["attachments"] !== undefined && output["attachments"]["item"] !== undefined) { - contents.VpcAttachments = de_VpcAttachmentList(__getArrayIfSingleItem(output["attachments"]["item"]), context); + contents[_VAp] = []; + } else if (output[_att] != null && output[_att][_i] != null) { + contents[_VAp] = de_VpcAttachmentList(__getArrayIfSingleItem(output[_att][_i]), context); } - if (output["vpnGatewayId"] !== undefined) { - contents.VpnGatewayId = __expectString(output["vpnGatewayId"]); + if (output[_vGI] != null) { + contents[_VGI] = __expectString(output[_vGI]); } - if (output["amazonSideAsn"] !== undefined) { - contents.AmazonSideAsn = __strictParseLong(output["amazonSideAsn"]) as number; + if (output[_aSA] != null) { + contents[_ASA] = __strictParseLong(output[_aSA]) as number; } if (output.tagSet === "") { - contents.Tags = []; - } else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context); + contents[_Ta] = []; + } else if (output[_tS] != null && output[_tS][_i] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } return contents; }; @@ -96768,14 +95196,14 @@ const de_VpnGatewayList = (output: any, context: __SerdeContext): VpnGateway[] = */ const de_VpnStaticRoute = (output: any, context: __SerdeContext): VpnStaticRoute => { const contents: any = {}; - if (output["destinationCidrBlock"] !== undefined) { - contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]); + if (output[_dCB] != null) { + contents[_DCB] = __expectString(output[_dCB]); } - if (output["source"] !== undefined) { - contents.Source = __expectString(output["source"]); + if (output[_s] != null) { + contents[_S] = __expectString(output[_s]); } - if (output["state"] !== undefined) { - contents.State = __expectString(output["state"]); + if (output[_st] != null) { + contents[_Stat] = __expectString(output[_st]); } return contents; }; @@ -96796,8 +95224,8 @@ const de_VpnStaticRouteList = (output: any, context: __SerdeContext): VpnStaticR */ const de_VpnTunnelLogOptions = (output: any, context: __SerdeContext): VpnTunnelLogOptions => { const contents: any = {}; - if (output["cloudWatchLogOptions"] !== undefined) { - contents.CloudWatchLogOptions = de_CloudWatchLogOptions(output["cloudWatchLogOptions"], context); + if (output[_cWLO] != null) { + contents[_CWLO] = de_CloudWatchLogOptions(output[_cWLO], context); } return contents; }; @@ -96807,8 +95235,8 @@ const de_VpnTunnelLogOptions = (output: any, context: __SerdeContext): VpnTunnel */ const de_WithdrawByoipCidrResult = (output: any, context: __SerdeContext): WithdrawByoipCidrResult => { const contents: any = {}; - if (output["byoipCidr"] !== undefined) { - contents.ByoipCidr = de_ByoipCidr(output["byoipCidr"], context); + if (output[_bC] != null) { + contents[_BC] = de_ByoipCidr(output[_bC], context); } return contents; }; @@ -96854,6 +95282,4140 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2016-11-15"; +const _A = "Action"; +const _AA = "AllocateAddress"; +const _AAC = "AsnAuthorizationContext"; +const _AACv = "AvailableAddressCount"; +const _AAG = "AuthorizeAllGroups"; +const _AAI = "AwsAccountId"; +const _AAId = "AddressAllocationId"; +const _AAP = "AddAllowedPrincipals"; +const _AART = "AddAllocationResourceTags"; +const _AASA = "AutoAcceptSharedAssociations"; +const _AASAu = "AutoAcceptSharedAttachments"; +const _AAT = "AcceptAddressTransfer"; +const _AAZ = "AllAvailabilityZones"; +const _AAc = "AccessAll"; +const _AAcc = "AccountAttributes"; +const _AAd = "AdditionalAccounts"; +const _AAs = "AssociateAddress"; +const _AAsn = "AsnAssociation"; +const _AAsns = "AsnAssociations"; +const _ABC = "AdvertiseByoipCidr"; +const _ABHP = "ActualBlockHourlyPrice"; +const _AC = "AllowedCidrs"; +const _ACIA = "AssociateCarrierIpAddress"; +const _ACLV = "AttachClassicLinkVpc"; +const _ACT = "ArchivalCompleteTime"; +const _ACVI = "AuthorizeClientVpnIngress"; +const _ACVTN = "AssociateClientVpnTargetNetwork"; +const _ACc = "AcceleratorCount"; +const _ACd = "AddressCount"; +const _ACv = "AvailableCapacity"; +const _AD = "ActiveDirectory"; +const _ADNL = "AllocationDefaultNetmaskLength"; +const _ADO = "AssociateDhcpOptions"; +const _ADRFRV = "AllowDnsResolutionFromRemoteVpc"; +const _ADRTI = "AssociationDefaultRouteTableId"; +const _ADT = "AdditionalDetailType"; +const _ADd = "AdditionalDetails"; +const _ADn = "AnnouncementDirection"; +const _ADp = "ApplicationDomain"; +const _AE = "AuthorizationEndpoint"; +const _AEC = "AnalyzedEniCount"; +const _AECIR = "AssociateEnclaveCertificateIamRole"; +const _AEFLCLTRV = "AllowEgressFromLocalClassicLinkToRemoteVpc"; +const _AEFLVTRCL = "AllowEgressFromLocalVpcToRemoteClassicLink"; +const _AEIO = "AutoEnableIO"; +const _AET = "AnalysisEndTime"; +const _AEd = "AddEntries"; +const _AF = "AddressFamily"; +const _AFn = "AnalysisFindings"; +const _AGI = "AccessGroupId"; +const _AGLBA = "AddGatewayLoadBalancerArns"; +const _AH = "AllocateHosts"; +const _AI = "AssetIds"; +const _AIA = "AssignIpv6Addresses"; +const _AIAC = "AvailableIpAddressCount"; +const _AIAOC = "AssignIpv6AddressOnCreation"; +const _AIAs = "AssignedIpv6Addresses"; +const _AIB = "AssociateIpamByoasn"; +const _AIC = "AvailableInstanceCapacity"; +const _AICv = "AvailableInstanceCount"; +const _AIEW = "AssociateInstanceEventWindow"; +const _AIG = "AttachInternetGateway"; +const _AIIP = "AssociateIamInstanceProfile"; +const _AIP = "AssignedIpv6Prefixes"; +const _AIPC = "AllocateIpamPoolCidr"; +const _AIPs = "AssignedIpv4Prefixes"; +const _AIRD = "AssociateIpamResourceDiscovery"; +const _AIT = "AllowedInstanceTypes"; +const _AIc = "ActiveInstances"; +const _AIcc = "AccountId"; +const _AId = "AdditionalInfo"; +const _AIl = "AllocationId"; +const _AIll = "AllocationIds"; +const _AIm = "AmiId"; +const _AIs = "AssociationIds"; +const _AIss = "AssociationId"; +const _AIsse = "AssetId"; +const _AIt = "AttachmentId"; +const _AIth = "AthenaIntegrations"; +const _AIu = "AutoImport"; +const _AL = "AccessLogs"; +const _ALI = "AmiLaunchIndex"; +const _AM = "AcceleratorManufacturers"; +const _AMIT = "AllowsMultipleInstanceTypes"; +const _AMNL = "AllocationMinNetmaskLength"; +const _AMNLl = "AllocationMaxNetmaskLength"; +const _AMS = "ApplianceModeSupport"; +const _AN = "AttributeNames"; +const _ANGA = "AssociateNatGatewayAddress"; +const _ANI = "AttachNetworkInterface"; +const _ANLBA = "AddNetworkLoadBalancerArns"; +const _ANS = "AddNetworkServices"; +const _ANc = "AcceleratorNames"; +const _ANt = "AttributeName"; +const _AO = "AuthenticationOptions"; +const _AOI = "AddressOwnerId"; +const _AOR = "AddOperatingRegions"; +const _AP = "AutoPlacement"; +const _APCO = "AccepterPeeringConnectionOptions"; +const _APH = "AlternatePathHints"; +const _APIA = "AssignPrivateIpAddresses"; +const _APIAs = "AssociatePublicIpAddress"; +const _APIAss = "AssignedPrivateIpAddresses"; +const _APICB = "AmazonProvidedIpv6CidrBlock"; +const _APM = "ApplyPendingMaintenance"; +const _APNGA = "AssignPrivateNatGatewayAddress"; +const _APd = "AddedPrincipals"; +const _APl = "AllowedPrincipals"; +const _AR = "AllowReassignment"; +const _ARA = "AssociatedRoleArn"; +const _ARAd = "AdditionalRoutesAvailable"; +const _ARC = "AcceptedRouteCount"; +const _ARIEQ = "AcceptReservedInstancesExchangeQuote"; +const _ARS = "AutoRecoverySupported"; +const _ART = "AssociateRouteTable"; +const _ARTI = "AddRouteTableIds"; +const _ARTl = "AllocationResourceTags"; +const _ARc = "AcceptanceRequired"; +const _ARcl = "AclRule"; +const _ARd = "AddressRegion"; +const _ARl = "AllowReassociation"; +const _ARll = "AllRegions"; +const _ARs = "AssociatedRoles"; +const _ARss = "AssociatedResource"; +const _ARu = "AutoRecovery"; +const _ARut = "AuthorizationRules"; +const _AS = "AllocationStrategy"; +const _ASA = "AmazonSideAsn"; +const _ASCB = "AssociateSubnetCidrBlock"; +const _ASGE = "AuthorizeSecurityGroupEgress"; +const _ASGI = "AuthorizeSecurityGroupIngress"; +const _ASGId = "AddSecurityGroupIds"; +const _ASGTCVTN = "ApplySecurityGroupsToClientVpnTargetNetwork"; +const _ASI = "AddSubnetIds"; +const _ASIAT = "AddSupportedIpAddressTypes"; +const _ASS = "AmdSevSnp"; +const _AST = "AnalysisStartTime"; +const _ASTB = "AnalysisStartTimeBegin"; +const _ASTE = "AnalysisStartTimeEnd"; +const _ASc = "ActivityStatus"; +const _ASn = "AnalysisStatus"; +const _ASs = "AssociationState"; +const _ASss = "AssociationStatus"; +const _ASt = "AttachmentStatuses"; +const _ASw = "AwsService"; +const _AT = "AssociationTarget"; +const _ATGAI = "AccepterTransitGatewayAttachmentId"; +const _ATGCB = "AddTransitGatewayCidrBlocks"; +const _ATGMD = "AssociateTransitGatewayMulticastDomain"; +const _ATGMDA = "AcceptTransitGatewayMulticastDomainAssociations"; +const _ATGPA = "AcceptTransitGatewayPeeringAttachment"; +const _ATGPT = "AssociateTransitGatewayPolicyTable"; +const _ATGRT = "AssociateTransitGatewayRouteTable"; +const _ATGVA = "AcceptTransitGatewayVpcAttachment"; +const _ATI = "AssociateTrunkInterface"; +const _ATIc = "AccepterTgwInfo"; +const _ATMMB = "AcceleratorTotalMemoryMiB"; +const _ATN = "AssociatedTargetNetworks"; +const _ATS = "AddressTransferStatus"; +const _ATc = "AcceleratorTypes"; +const _ATd = "AddressingType"; +const _ATdd = "AddressTransfer"; +const _ATddr = "AddressTransfers"; +const _ATddre = "AddressType"; +const _ATl = "AllocationType"; +const _ATll = "AllocationTime"; +const _ATr = "ArchitectureTypes"; +const _ATt = "AttachmentType"; +const _ATtt = "AttachTime"; +const _ATtta = "AttachedTo"; +const _AV = "AttachVolume"; +const _AVATP = "AttachVerifiedAccessTrustProvider"; +const _AVC = "AvailableVCpus"; +const _AVCB = "AssociateVpcCidrBlock"; +const _AVEC = "AcceptVpcEndpointConnections"; +const _AVG = "AttachVpnGateway"; +const _AVI = "AccepterVpcInfo"; +const _AVPC = "AcceptVpcPeeringConnection"; +const _AVt = "AttributeValues"; +const _AVtt = "AttributeValue"; +const _AWSAKI = "AWSAccessKeyId"; +const _AZ = "AvailabilityZone"; +const _AZG = "AvailabilityZoneGroup"; +const _AZI = "AvailabilityZoneId"; +const _AZv = "AvailabilityZones"; +const _Ac = "Accept"; +const _Acc = "Accelerators"; +const _Acl = "Acl"; +const _Act = "Active"; +const _Acti = "Actions"; +const _Ad = "Address"; +const _Add = "Add"; +const _Addr = "Addresses"; +const _Af = "Affinity"; +const _Am = "Amount"; +const _Ar = "Arn"; +const _Arc = "Architecture"; +const _As = "Asn"; +const _Ass = "Associations"; +const _Asso = "Association"; +const _At = "Attribute"; +const _Att = "Attachment"; +const _Atta = "Attachments"; +const _B = "Bucket"; +const _BA = "BgpAsn"; +const _BBIG = "BaselineBandwidthInGbps"; +const _BBIM = "BaselineBandwidthInMbps"; +const _BC = "ByoipCidr"; +const _BCg = "BgpConfigurations"; +const _BCy = "ByoipCidrs"; +const _BCyt = "BytesConverted"; +const _BDM = "BlockDeviceMappings"; +const _BDMl = "BlockDurationMinutes"; +const _BEBM = "BaselineEbsBandwidthMbps"; +const _BEDN = "BaseEndpointDnsNames"; +const _BI = "BundleInstance"; +const _BII = "BranchInterfaceId"; +const _BIa = "BaselineIops"; +const _BIu = "BundleId"; +const _BIun = "BundleIds"; +const _BM = "BootMode"; +const _BMa = "BareMetal"; +const _BN = "BucketName"; +const _BO = "BgpOptions"; +const _BOu = "BucketOwner"; +const _BP = "BurstablePerformance"; +const _BPS = "BurstablePerformanceSupported"; +const _BPi = "BillingProducts"; +const _BS = "BgpStatus"; +const _BT = "BannerText"; +const _BTE = "BundleTaskError"; +const _BTIMB = "BaselineThroughputInMBps"; +const _BTu = "BundleTask"; +const _BTun = "BundleTasks"; +const _Bl = "Blackhole"; +const _By = "Bytes"; +const _Byo = "Byoasn"; +const _Byoa = "Byoasns"; +const _C = "Cidr"; +const _CA = "CertificateArn"; +const _CAC = "CidrAuthorizationContext"; +const _CADNL = "ClearAllocationDefaultNetmaskLength"; +const _CAU = "CoipAddressUsages"; +const _CAa = "CapacityAllocations"; +const _CAo = "ComponentArn"; +const _CAom = "ComponentAccount"; +const _CAr = "CreatedAt"; +const _CB = "CidrBlock"; +const _CBA = "CidrBlockAssociation"; +const _CBAS = "CidrBlockAssociationSet"; +const _CBDH = "CapacityBlockDurationHours"; +const _CBO = "CapacityBlockOfferings"; +const _CBOI = "CapacityBlockOfferingId"; +const _CBS = "CidrBlockState"; +const _CBSi = "CidrBlockSet"; +const _CBT = "CancelBundleTask"; +const _CBr = "CreatedBy"; +const _CC = "CoreCount"; +const _CCB = "ClientCidrBlock"; +const _CCC = "CreateCoipCidr"; +const _CCG = "CreateCarrierGateway"; +const _CCGr = "CreateCustomerGateway"; +const _CCO = "ClientConnectOptions"; +const _CCP = "CreateCoipPool"; +const _CCR = "CancelCapacityReservation"; +const _CCRF = "CancelCapacityReservationFleets"; +const _CCRFE = "CancelCapacityReservationFleetError"; +const _CCRFr = "CreateCapacityReservationFleet"; +const _CCRr = "CreateCapacityReservation"; +const _CCT = "CancelConversionTask"; +const _CCVE = "CreateClientVpnEndpoint"; +const _CCVR = "CreateClientVpnRoute"; +const _CCl = "ClientConfiguration"; +const _CCo = "CoipCidr"; +const _CCp = "CpuCredits"; +const _CCu = "CurrencyCode"; +const _CD = "ClientData"; +const _CDH = "CapacityDurationHours"; +const _CDO = "CreateDhcpOptions"; +const _CDS = "CreateDefaultSubnet"; +const _CDSDA = "ConfigDeliveryS3DestinationArn"; +const _CDSu = "CustomDnsServers"; +const _CDV = "CreateDefaultVpc"; +const _CDr = "CreateDate"; +const _CDre = "CreationDate"; +const _CDrea = "CreatedDate"; +const _CE = "CronExpression"; +const _CEOIG = "CreateEgressOnlyInternetGateway"; +const _CET = "CancelExportTask"; +const _CETo = "ConnectionEstablishedTime"; +const _CETon = "ConnectionEndTime"; +const _CEo = "ConnectionEvents"; +const _CF = "CreateFleet"; +const _CFI = "CopyFpgaImage"; +const _CFIr = "CreateFpgaImage"; +const _CFL = "CreateFlowLogs"; +const _CFS = "CurrentFleetState"; +const _CFo = "ContainerFormat"; +const _CG = "CarrierGateway"; +const _CGC = "CustomerGatewayConfiguration"; +const _CGI = "CarrierGatewayId"; +const _CGIa = "CarrierGatewayIds"; +const _CGIu = "CustomerGatewayId"; +const _CGIus = "CustomerGatewayIds"; +const _CGa = "CarrierGateways"; +const _CGu = "CustomerGateway"; +const _CGur = "CurrentGeneration"; +const _CGus = "CustomerGateways"; +const _CI = "CopyImage"; +const _CIBM = "CurrentInstanceBootMode"; +const _CICE = "CreateInstanceConnectEndpoint"; +const _CIET = "CreateInstanceExportTask"; +const _CIEW = "CreateInstanceEventWindow"; +const _CIG = "CreateInternetGateway"; +const _CILP = "CancelImageLaunchPermission"; +const _CIP = "CreateIpamPool"; +const _CIRD = "CreateIpamResourceDiscovery"; +const _CIS = "CreateIpamScope"; +const _CISI = "CurrentIpamScopeId"; +const _CIT = "CancelImportTask"; +const _CITo = "CopyImageTags"; +const _CIa = "CarrierIp"; +const _CIi = "CidrIp"; +const _CIid = "CidrIpv6"; +const _CIidr = "CidrIpv4"; +const _CIl = "ClientId"; +const _CIli = "ClientIp"; +const _CIo = "ConnectionId"; +const _CIom = "ComponentId"; +const _CIop = "CoIp"; +const _CIr = "CreateImage"; +const _CIre = "CreateIpam"; +const _CKP = "CreateKeyPair"; +const _CLB = "ClassicLoadBalancers"; +const _CLBC = "ClassicLoadBalancersConfig"; +const _CLBL = "ClassicLoadBalancerListener"; +const _CLBO = "ClientLoginBannerOptions"; +const _CLDS = "ClassicLinkDnsSupported"; +const _CLE = "ClassicLinkEnabled"; +const _CLG = "CloudwatchLogGroup"; +const _CLGR = "CreateLocalGatewayRoute"; +const _CLGRT = "CreateLocalGatewayRouteTable"; +const _CLGRTVA = "CreateLocalGatewayRouteTableVpcAssociation"; +const _CLGRTVIGA = "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation"; +const _CLO = "ConnectionLogOptions"; +const _CLS = "CloudwatchLogStream"; +const _CLT = "CreateLaunchTemplate"; +const _CLTV = "CreateLaunchTemplateVersion"; +const _CM = "CpuManufacturers"; +const _CMKE = "CustomerManagedKeyEnabled"; +const _CMPL = "CreateManagedPrefixList"; +const _CN = "CommonName"; +const _CNA = "CreateNetworkAcl"; +const _CNAA = "CoreNetworkAttachmentArn"; +const _CNAE = "CreateNetworkAclEntry"; +const _CNAo = "CoreNetworkArn"; +const _CNAon = "ConnectionNotificationArn"; +const _CNG = "CreateNatGateway"; +const _CNI = "CreateNetworkInterface"; +const _CNIAS = "CreateNetworkInsightsAccessScope"; +const _CNIP = "CreateNetworkInsightsPath"; +const _CNIPr = "CreateNetworkInterfacePermission"; +const _CNIo = "ConnectionNotificationIds"; +const _CNIon = "ConnectionNotificationId"; +const _CNIor = "CoreNetworkId"; +const _CNS = "ConnectionNotificationState"; +const _CNSo = "ConnectionNotificationSet"; +const _CNT = "ConnectionNotificationType"; +const _CNo = "ConnectionNotification"; +const _CO = "CpuOptions"; +const _COI = "CustomerOwnedIp"; +const _COIP = "CustomerOwnedIpv4Pool"; +const _COP = "CoolOffPeriod"; +const _COPEO = "CoolOffPeriodExpiresOn"; +const _CP = "CoipPool"; +const _CPC = "ConnectPeerConfiguration"; +const _CPG = "CreatePlacementGroup"; +const _CPI = "ConfirmProductInstance"; +const _CPIP = "CreatePublicIpv4Pool"; +const _CPIo = "CoipPoolId"; +const _CPo = "CoipPools"; +const _CR = "CreateRoute"; +const _CRA = "CapacityReservationArn"; +const _CRCC = "ClientRootCertificateChain"; +const _CRCCA = "ClientRootCertificateChainArn"; +const _CRF = "CapacityReservationFleets"; +const _CRFA = "CapacityReservationFleetArn"; +const _CRFI = "CapacityReservationFleetIds"; +const _CRFIa = "CapacityReservationFleetId"; +const _CRG = "CapacityReservationGroups"; +const _CRI = "CapacityReservationId"; +const _CRIL = "CancelReservedInstancesListing"; +const _CRILr = "CreateReservedInstancesListing"; +const _CRIT = "CreateRestoreImageTask"; +const _CRIa = "CapacityReservationIds"; +const _CRL = "CertificateRevocationList"; +const _CRO = "CapacityReservationOptions"; +const _CRP = "CapacityReservationPreference"; +const _CRRGA = "CapacityReservationResourceGroupArn"; +const _CRRVT = "CreateReplaceRootVolumeTask"; +const _CRS = "CapacityReservationSpecification"; +const _CRT = "CreateRouteTable"; +const _CRTa = "CapacityReservationTarget"; +const _CRa = "CancelReason"; +const _CRap = "CapacityRebalance"; +const _CRapa = "CapacityReservation"; +const _CRapac = "CapacityReservations"; +const _CRo = "ComponentRegion"; +const _CS = "CopySnapshot"; +const _CSBN = "CertificateS3BucketName"; +const _CSCR = "CreateSubnetCidrReservation"; +const _CSDS = "CreateSpotDatafeedSubscription"; +const _CSFR = "CancelSpotFleetRequests"; +const _CSFRS = "CurrentSpotFleetRequestState"; +const _CSG = "CreateSecurityGroup"; +const _CSIR = "CancelSpotInstanceRequests"; +const _CSIRa = "CancelledSpotInstanceRequests"; +const _CSIT = "CreateStoreImageTask"; +const _CSOK = "CertificateS3ObjectKey"; +const _CSl = "ClientSecret"; +const _CSo = "ComplianceStatus"; +const _CSon = "ConnectionStatuses"; +const _CSr = "CreateSnapshot"; +const _CSre = "CreateSnapshots"; +const _CSrea = "CreateSubnet"; +const _CSred = "CreditSpecification"; +const _CSu = "CurrentState"; +const _CSur = "CurrentStatus"; +const _CT = "CreateTags"; +const _CTC = "ConnectionTrackingConfiguration"; +const _CTFS = "CopyTagsFromSource"; +const _CTG = "CreateTransitGateway"; +const _CTGC = "CreateTransitGatewayConnect"; +const _CTGCP = "CreateTransitGatewayConnectPeer"; +const _CTGMD = "CreateTransitGatewayMulticastDomain"; +const _CTGPA = "CreateTransitGatewayPeeringAttachment"; +const _CTGPLR = "CreateTransitGatewayPrefixListReference"; +const _CTGPT = "CreateTransitGatewayPolicyTable"; +const _CTGR = "CreateTransitGatewayRoute"; +const _CTGRT = "CreateTransitGatewayRouteTable"; +const _CTGRTA = "CreateTransitGatewayRouteTableAnnouncement"; +const _CTGVA = "CreateTransitGatewayVpcAttachment"; +const _CTI = "ConversionTaskId"; +const _CTIo = "ConversionTaskIds"; +const _CTMF = "CreateTrafficMirrorFilter"; +const _CTMFR = "CreateTrafficMirrorFilterRule"; +const _CTMS = "CreateTrafficMirrorSession"; +const _CTMT = "CreateTrafficMirrorTarget"; +const _CTS = "ConnectionTrackingSpecification"; +const _CTl = "ClientToken"; +const _CTo = "ConnectivityType"; +const _CTom = "CompleteTime"; +const _CTon = "ConversionTasks"; +const _CTonv = "ConversionTask"; +const _CTr = "CreateTime"; +const _CTre = "CreationTime"; +const _CTrea = "CreationTimestamp"; +const _CV = "CreateVolume"; +const _CVAE = "CreateVerifiedAccessEndpoint"; +const _CVAG = "CreateVerifiedAccessGroup"; +const _CVAI = "CreateVerifiedAccessInstance"; +const _CVATP = "CreateVerifiedAccessTrustProvider"; +const _CVC = "CreateVpnConnection"; +const _CVCR = "CreateVpnConnectionRoute"; +const _CVE = "CreateVpcEndpoint"; +const _CVECN = "CreateVpcEndpointConnectionNotification"; +const _CVEI = "ClientVpnEndpointId"; +const _CVEIl = "ClientVpnEndpointIds"; +const _CVESC = "CreateVpcEndpointServiceConfiguration"; +const _CVEl = "ClientVpnEndpoints"; +const _CVG = "CreateVpnGateway"; +const _CVP = "CreateVolumePermission"; +const _CVPC = "CreateVpcPeeringConnection"; +const _CVPr = "CreateVolumePermissions"; +const _CVTN = "ClientVpnTargetNetworks"; +const _CVr = "CreateVpc"; +const _CVu = "CurrentVersion"; +const _CWL = "CloudWatchLogs"; +const _CWLO = "CloudWatchLogOptions"; +const _Ca = "Cascade"; +const _Cat = "Category"; +const _Ch = "Checksum"; +const _Ci = "Cidrs"; +const _Co = "Comment"; +const _Cod = "Code"; +const _Com = "Component"; +const _Con = "Context"; +const _Conf = "Configured"; +const _Conn = "Connections"; +const _Cor = "Cores"; +const _Cou = "Count"; +const _D = "Destination"; +const _DA = "DescribeAddresses"; +const _DAA = "DescribeAccountAttributes"; +const _DAAI = "DelegatedAdminAccountId"; +const _DAAe = "DescribeAddressesAttribute"; +const _DAIF = "DescribeAggregateIdFormat"; +const _DAIT = "DenyAllIgwTraffic"; +const _DANPMS = "DescribeAwsNetworkPerformanceMetricSubscriptions"; +const _DANPMSi = "DisableAwsNetworkPerformanceMetricSubscription"; +const _DART = "DefaultAssociationRouteTable"; +const _DAS = "DisableApiStop"; +const _DAT = "DescribeAddressTransfers"; +const _DATi = "DisableAddressTransfer"; +const _DATis = "DisableApiTermination"; +const _DAZ = "DescribeAvailabilityZones"; +const _DAe = "DeprecateAt"; +const _DAep = "DeprovisionedAddresses"; +const _DAes = "DestinationAddresses"; +const _DAest = "DestinationAddress"; +const _DAesti = "DestinationArn"; +const _DAi = "DisassociateAddress"; +const _DBC = "DeprovisionByoipCidr"; +const _DBCe = "DescribeByoipCidrs"; +const _DBT = "DescribeBundleTasks"; +const _DC = "DisallowedCidrs"; +const _DCA = "DomainCertificateArn"; +const _DCAR = "DeliverCrossAccountRole"; +const _DCB = "DestinationCidrBlock"; +const _DCBO = "DescribeCapacityBlockOfferings"; +const _DCC = "DeleteCoipCidr"; +const _DCG = "DeleteCarrierGateway"; +const _DCGe = "DeleteCustomerGateway"; +const _DCGes = "DescribeCarrierGateways"; +const _DCGesc = "DescribeCustomerGateways"; +const _DCLI = "DescribeClassicLinkInstances"; +const _DCLV = "DetachClassicLinkVpc"; +const _DCP = "DeleteCoipPool"; +const _DCPe = "DescribeCoipPools"; +const _DCR = "DescribeCapacityReservations"; +const _DCRF = "DescribeCapacityReservationFleets"; +const _DCT = "DescribeConversionTasks"; +const _DCVAR = "DescribeClientVpnAuthorizationRules"; +const _DCVC = "DescribeClientVpnConnections"; +const _DCVE = "DeleteClientVpnEndpoint"; +const _DCVEe = "DescribeClientVpnEndpoints"; +const _DCVR = "DeleteClientVpnRoute"; +const _DCVRe = "DescribeClientVpnRoutes"; +const _DCVTN = "DescribeClientVpnTargetNetworks"; +const _DCVTNi = "DisassociateClientVpnTargetNetwork"; +const _DCe = "DestinationCidr"; +const _DCef = "DefaultCores"; +const _DCh = "DhcpConfigurations"; +const _DCi = "DiskContainers"; +const _DCis = "DiskContainer"; +const _DDO = "DeleteDhcpOptions"; +const _DDOe = "DescribeDhcpOptions"; +const _DE = "DnsEntries"; +const _DECIR = "DisassociateEnclaveCertificateIamRole"; +const _DEEBD = "DisableEbsEncryptionByDefault"; +const _DEG = "DescribeElasticGpus"; +const _DEIT = "DescribeExportImageTasks"; +const _DEKI = "DataEncryptionKeyId"; +const _DEOIG = "DeleteEgressOnlyInternetGateway"; +const _DEOIGe = "DescribeEgressOnlyInternetGateways"; +const _DET = "DescribeExportTasks"; +const _DF = "DeleteFleets"; +const _DFA = "DefaultForAz"; +const _DFH = "DescribeFleetHistory"; +const _DFI = "DeleteFpgaImage"; +const _DFIA = "DescribeFpgaImageAttribute"; +const _DFIe = "DescribeFleetInstances"; +const _DFIes = "DescribeFpgaImages"; +const _DFL = "DeleteFlowLogs"; +const _DFLI = "DescribeFastLaunchImages"; +const _DFLe = "DescribeFlowLogs"; +const _DFLi = "DisableFastLaunch"; +const _DFSR = "DescribeFastSnapshotRestores"; +const _DFSRi = "DisableFastSnapshotRestores"; +const _DFe = "DescribeFleets"; +const _DH = "DescribeHosts"; +const _DHI = "DedicatedHostIds"; +const _DHR = "DescribeHostReservations"; +const _DHRO = "DescribeHostReservationOfferings"; +const _DHS = "DedicatedHostsSupported"; +const _DI = "DeleteIpam"; +const _DIA = "DescribeImageAttribute"; +const _DIAe = "DescribeInstanceAttribute"; +const _DIB = "DeprovisionIpamByoasn"; +const _DIBPA = "DisableImageBlockPublicAccess"; +const _DIBe = "DescribeIpamByoasn"; +const _DIBi = "DisassociateIpamByoasn"; +const _DICB = "DestinationIpv6CidrBlock"; +const _DICE = "DeleteInstanceConnectEndpoint"; +const _DICEe = "DescribeInstanceConnectEndpoints"; +const _DICS = "DescribeInstanceCreditSpecifications"; +const _DID = "DisableImageDeprecation"; +const _DIENA = "DeregisterInstanceEventNotificationAttributes"; +const _DIENAe = "DescribeInstanceEventNotificationAttributes"; +const _DIEW = "DeleteInstanceEventWindow"; +const _DIEWe = "DescribeInstanceEventWindows"; +const _DIEWi = "DisassociateInstanceEventWindow"; +const _DIF = "DescribeIdFormat"; +const _DIFi = "DiskImageFormat"; +const _DIG = "DeleteInternetGateway"; +const _DIGe = "DescribeInternetGateways"; +const _DIGet = "DetachInternetGateway"; +const _DIIF = "DescribeIdentityIdFormat"; +const _DIIP = "DisassociateIamInstanceProfile"; +const _DIIPA = "DescribeIamInstanceProfileAssociations"; +const _DIIT = "DescribeImportImageTasks"; +const _DIOAA = "DisableIpamOrganizationAdminAccount"; +const _DIP = "DeleteIpamPool"; +const _DIPC = "DeprovisionIpamPoolCidr"; +const _DIPe = "DescribeIpamPools"; +const _DIPes = "DescribeIpv6Pools"; +const _DIRD = "DeleteIpamResourceDiscovery"; +const _DIRDA = "DescribeIpamResourceDiscoveryAssociations"; +const _DIRDe = "DescribeIpamResourceDiscoveries"; +const _DIRDi = "DisassociateIpamResourceDiscovery"; +const _DIS = "DeleteIpamScope"; +const _DISI = "DestinationIpamScopeId"; +const _DIST = "DescribeImportSnapshotTasks"; +const _DISe = "DescribeInstanceStatus"; +const _DISes = "DescribeIpamScopes"; +const _DISi = "DiskImageSize"; +const _DIT = "DescribeInstanceTopology"; +const _DITO = "DescribeInstanceTypeOfferings"; +const _DITe = "DescribeInstanceTypes"; +const _DIe = "DeregisterImage"; +const _DIes = "DescribeImages"; +const _DIesc = "DescribeInstances"; +const _DIescr = "DescribeIpams"; +const _DIest = "DestinationIp"; +const _DIev = "DeviceIndex"; +const _DIevi = "DeviceId"; +const _DIi = "DisableImage"; +const _DIir = "DirectoryId"; +const _DIis = "DiskImages"; +const _DKP = "DeleteKeyPair"; +const _DKPe = "DescribeKeyPairs"; +const _DLADI = "DisableLniAtDeviceIndex"; +const _DLEM = "DeliverLogsErrorMessage"; +const _DLG = "DescribeLocalGateways"; +const _DLGR = "DeleteLocalGatewayRoute"; +const _DLGRT = "DeleteLocalGatewayRouteTable"; +const _DLGRTVA = "DeleteLocalGatewayRouteTableVpcAssociation"; +const _DLGRTVAe = "DescribeLocalGatewayRouteTableVpcAssociations"; +const _DLGRTVIGA = "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation"; +const _DLGRTVIGAe = "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations"; +const _DLGRTe = "DescribeLocalGatewayRouteTables"; +const _DLGVI = "DescribeLocalGatewayVirtualInterfaces"; +const _DLGVIG = "DescribeLocalGatewayVirtualInterfaceGroups"; +const _DLPA = "DeliverLogsPermissionArn"; +const _DLS = "DescribeLockedSnapshots"; +const _DLSe = "DeliverLogsStatus"; +const _DLT = "DeleteLaunchTemplate"; +const _DLTV = "DeleteLaunchTemplateVersions"; +const _DLTVe = "DescribeLaunchTemplateVersions"; +const _DLTe = "DescribeLaunchTemplates"; +const _DMA = "DescribeMovingAddresses"; +const _DMGM = "DeregisteredMulticastGroupMembers"; +const _DMGS = "DeregisteredMulticastGroupSources"; +const _DMPL = "DeleteManagedPrefixList"; +const _DMPLe = "DescribeManagedPrefixLists"; +const _DN = "DeviceName"; +const _DNA = "DeleteNetworkAcl"; +const _DNAE = "DeleteNetworkAclEntry"; +const _DNAe = "DescribeNetworkAcls"; +const _DNCI = "DefaultNetworkCardIndex"; +const _DNG = "DeleteNatGateway"; +const _DNGA = "DisassociateNatGatewayAddress"; +const _DNGe = "DescribeNatGateways"; +const _DNI = "DeleteNetworkInterface"; +const _DNIA = "DeleteNetworkInsightsAnalysis"; +const _DNIAS = "DeleteNetworkInsightsAccessScope"; +const _DNIASA = "DeleteNetworkInsightsAccessScopeAnalysis"; +const _DNIASAe = "DescribeNetworkInsightsAccessScopeAnalyses"; +const _DNIASe = "DescribeNetworkInsightsAccessScopes"; +const _DNIAe = "DescribeNetworkInsightsAnalyses"; +const _DNIAes = "DescribeNetworkInterfaceAttribute"; +const _DNII = "DeregisteredNetworkInterfaceIds"; +const _DNIP = "DeleteNetworkInsightsPath"; +const _DNIPe = "DeleteNetworkInterfacePermission"; +const _DNIPes = "DescribeNetworkInsightsPaths"; +const _DNIPesc = "DescribeNetworkInterfacePermissions"; +const _DNIe = "DescribeNetworkInterfaces"; +const _DNIet = "DetachNetworkInterface"; +const _DNn = "DnsName"; +const _DNo = "DomainName"; +const _DO = "DestinationOptions"; +const _DOA = "DestinationOutpostArn"; +const _DOI = "DhcpOptionsId"; +const _DOIh = "DhcpOptionsIds"; +const _DOT = "DeleteOnTermination"; +const _DOe = "DeviceOptions"; +const _DOh = "DhcpOptions"; +const _DOn = "DnsOptions"; +const _DP = "DestinationPort"; +const _DPDTA = "DPDTimeoutAction"; +const _DPDTS = "DPDTimeoutSeconds"; +const _DPG = "DeletePlacementGroup"; +const _DPGe = "DescribePlacementGroups"; +const _DPIF = "DescribePrincipalIdFormat"; +const _DPIP = "DeletePublicIpv4Pool"; +const _DPIPC = "DeprovisionPublicIpv4PoolCidr"; +const _DPIPe = "DescribePublicIpv4Pools"; +const _DPL = "DescribePrefixLists"; +const _DPLI = "DestinationPrefixListId"; +const _DPLe = "DestinationPrefixLists"; +const _DPR = "DestinationPortRange"; +const _DPRT = "DefaultPropagationRouteTable"; +const _DPRe = "DestinationPortRanges"; +const _DPe = "DestinationPorts"; +const _DQ = "DataQueries"; +const _DQRI = "DeleteQueuedReservedInstances"; +const _DR = "DeleteRoute"; +const _DRDAI = "DefaultResourceDiscoveryAssociationId"; +const _DRDI = "DefaultResourceDiscoveryId"; +const _DRI = "DescribeReservedInstances"; +const _DRIL = "DescribeReservedInstancesListings"; +const _DRIM = "DescribeReservedInstancesModifications"; +const _DRIO = "DescribeReservedInstancesOfferings"; +const _DRIT = "DnsRecordIpType"; +const _DRRV = "DeleteReplacedRootVolume"; +const _DRRVT = "DescribeReplaceRootVolumeTasks"; +const _DRS = "DataRetentionSupport"; +const _DRT = "DeleteRouteTable"; +const _DRTA = "DefaultRouteTableAssociation"; +const _DRTP = "DefaultRouteTablePropagation"; +const _DRTe = "DescribeRouteTables"; +const _DRTi = "DisassociateRouteTable"; +const _DRa = "DataResponses"; +const _DRe = "DescribeRegions"; +const _DRes = "DestinationRegion"; +const _DRi = "DiscoveryRegion"; +const _DRr = "DryRun"; +const _DRy = "DynamicRouting"; +const _DS = "DeleteSnapshot"; +const _DSA = "DescribeSnapshotAttribute"; +const _DSBPA = "DisableSnapshotBlockPublicAccess"; +const _DSCA = "DisableSerialConsoleAccess"; +const _DSCB = "DisassociateSubnetCidrBlock"; +const _DSCR = "DeleteSubnetCidrReservation"; +const _DSCRe = "DeletedSubnetCidrReservation"; +const _DSDS = "DeleteSpotDatafeedSubscription"; +const _DSDSe = "DescribeSpotDatafeedSubscription"; +const _DSFI = "DescribeSpotFleetInstances"; +const _DSFR = "DescribeSpotFleetRequests"; +const _DSFRH = "DescribeSpotFleetRequestHistory"; +const _DSG = "DeleteSecurityGroup"; +const _DSGR = "DescribeSecurityGroupReferences"; +const _DSGRe = "DescribeSecurityGroupRules"; +const _DSGe = "DescribeSecurityGroups"; +const _DSI = "DescribeScheduledInstances"; +const _DSIA = "DescribeScheduledInstanceAvailability"; +const _DSIR = "DescribeSpotInstanceRequests"; +const _DSIT = "DescribeStoreImageTasks"; +const _DSPH = "DescribeSpotPriceHistory"; +const _DSSG = "DescribeStaleSecurityGroups"; +const _DSTS = "DescribeSnapshotTierStatus"; +const _DSe = "DeleteSubnet"; +const _DSel = "DeliveryStream"; +const _DSeli = "DeliveryStatus"; +const _DSes = "DescribeSnapshots"; +const _DSesc = "DescribeSubnets"; +const _DSn = "DnsServers"; +const _DSns = "DnsSupport"; +const _DT = "DeleteTags"; +const _DTA = "DpdTimeoutAction"; +const _DTCT = "DefaultTargetCapacityType"; +const _DTG = "DeleteTransitGateway"; +const _DTGA = "DescribeTransitGatewayAttachments"; +const _DTGC = "DeleteTransitGatewayConnect"; +const _DTGCP = "DeleteTransitGatewayConnectPeer"; +const _DTGCPe = "DescribeTransitGatewayConnectPeers"; +const _DTGCe = "DescribeTransitGatewayConnects"; +const _DTGMD = "DeleteTransitGatewayMulticastDomain"; +const _DTGMDe = "DescribeTransitGatewayMulticastDomains"; +const _DTGMDi = "DisassociateTransitGatewayMulticastDomain"; +const _DTGMGM = "DeregisterTransitGatewayMulticastGroupMembers"; +const _DTGMGS = "DeregisterTransitGatewayMulticastGroupSources"; +const _DTGPA = "DeleteTransitGatewayPeeringAttachment"; +const _DTGPAe = "DescribeTransitGatewayPeeringAttachments"; +const _DTGPLR = "DeleteTransitGatewayPrefixListReference"; +const _DTGPT = "DeleteTransitGatewayPolicyTable"; +const _DTGPTe = "DescribeTransitGatewayPolicyTables"; +const _DTGPTi = "DisassociateTransitGatewayPolicyTable"; +const _DTGR = "DeleteTransitGatewayRoute"; +const _DTGRT = "DeleteTransitGatewayRouteTable"; +const _DTGRTA = "DeleteTransitGatewayRouteTableAnnouncement"; +const _DTGRTAe = "DescribeTransitGatewayRouteTableAnnouncements"; +const _DTGRTP = "DisableTransitGatewayRouteTablePropagation"; +const _DTGRTe = "DescribeTransitGatewayRouteTables"; +const _DTGRTi = "DisassociateTransitGatewayRouteTable"; +const _DTGVA = "DeleteTransitGatewayVpcAttachment"; +const _DTGVAe = "DescribeTransitGatewayVpcAttachments"; +const _DTGe = "DescribeTransitGateways"; +const _DTI = "DisassociateTrunkInterface"; +const _DTIA = "DescribeTrunkInterfaceAssociations"; +const _DTMF = "DeleteTrafficMirrorFilter"; +const _DTMFR = "DeleteTrafficMirrorFilterRule"; +const _DTMFe = "DescribeTrafficMirrorFilters"; +const _DTMS = "DeleteTrafficMirrorSession"; +const _DTMSe = "DescribeTrafficMirrorSessions"; +const _DTMT = "DeleteTrafficMirrorTarget"; +const _DTMTe = "DescribeTrafficMirrorTargets"; +const _DTPC = "DefaultThreadsPerCore"; +const _DTPT = "DeviceTrustProviderType"; +const _DTS = "DpdTimeoutSeconds"; +const _DTe = "DescribeTags"; +const _DTel = "DeletionTime"; +const _DTele = "DeleteTime"; +const _DTep = "DeprecationTime"; +const _DTi = "DisablingTime"; +const _DTis = "DisabledTime"; +const _DV = "DeleteVolume"; +const _DVA = "DescribeVolumeAttribute"; +const _DVAE = "DeleteVerifiedAccessEndpoint"; +const _DVAEe = "DescribeVerifiedAccessEndpoints"; +const _DVAG = "DeleteVerifiedAccessGroup"; +const _DVAGe = "DescribeVerifiedAccessGroups"; +const _DVAI = "DeleteVerifiedAccessInstance"; +const _DVAILC = "DescribeVerifiedAccessInstanceLoggingConfigurations"; +const _DVAIe = "DescribeVerifiedAccessInstances"; +const _DVATP = "DeleteVerifiedAccessTrustProvider"; +const _DVATPe = "DescribeVerifiedAccessTrustProviders"; +const _DVATPet = "DetachVerifiedAccessTrustProvider"; +const _DVAe = "DescribeVpcAttribute"; +const _DVC = "DeleteVpnConnection"; +const _DVCB = "DisassociateVpcCidrBlock"; +const _DVCL = "DescribeVpcClassicLink"; +const _DVCLDS = "DescribeVpcClassicLinkDnsSupport"; +const _DVCLDSi = "DisableVpcClassicLinkDnsSupport"; +const _DVCLi = "DisableVpcClassicLink"; +const _DVCR = "DeleteVpnConnectionRoute"; +const _DVCe = "DescribeVpnConnections"; +const _DVCef = "DefaultVCpus"; +const _DVD = "DeviceValidationDomain"; +const _DVE = "DeleteVpcEndpoints"; +const _DVEC = "DescribeVpcEndpointConnections"; +const _DVECN = "DeleteVpcEndpointConnectionNotifications"; +const _DVECNe = "DescribeVpcEndpointConnectionNotifications"; +const _DVES = "DescribeVpcEndpointServices"; +const _DVESC = "DeleteVpcEndpointServiceConfigurations"; +const _DVESCe = "DescribeVpcEndpointServiceConfigurations"; +const _DVESP = "DescribeVpcEndpointServicePermissions"; +const _DVEe = "DescribeVpcEndpoints"; +const _DVG = "DeleteVpnGateway"; +const _DVGe = "DescribeVpnGateways"; +const _DVGet = "DetachVpnGateway"; +const _DVM = "DescribeVolumesModifications"; +const _DVN = "DefaultVersionNumber"; +const _DVPC = "DeleteVpcPeeringConnection"; +const _DVPCe = "DescribeVpcPeeringConnections"; +const _DVRP = "DisableVgwRoutePropagation"; +const _DVS = "DescribeVolumeStatus"; +const _DVe = "DeleteVpc"; +const _DVef = "DefaultVersion"; +const _DVes = "DescribeVolumes"; +const _DVesc = "DescribeVpcs"; +const _DVest = "DestinationVpc"; +const _DVet = "DetachVolume"; +const _Da = "Data"; +const _De = "Description"; +const _Dea = "Deadline"; +const _Des = "Destinations"; +const _Det = "Details"; +const _Dev = "Device"; +const _Di = "Direction"; +const _Dis = "Disks"; +const _Do = "Domain"; +const _Du = "Duration"; +const _E = "Ebs"; +const _EA = "EnableAcceleration"; +const _EANPMS = "EnableAwsNetworkPerformanceMetricSubscription"; +const _EAT = "EnableAddressTransfer"; +const _EB = "EgressBytes"; +const _EBV = "ExcludeBootVolume"; +const _EC = "ErrorCode"; +const _ECTP = "ExcessCapacityTerminationPolicy"; +const _ECVCC = "ExportClientVpnClientConfiguration"; +const _ECVCCRL = "ExportClientVpnClientCertificateRevocationList"; +const _ECx = "ExplanationCode"; +const _ED = "EndDate"; +const _EDH = "EnableDnsHostnames"; +const _EDP = "EndpointDomainPrefix"; +const _EDR = "EndDateRange"; +const _EDS = "EnableDnsSupport"; +const _EDT = "EndDateType"; +const _EDVI = "ExcludeDataVolumeIds"; +const _EDf = "EffectiveDate"; +const _EDn = "EnableDns64"; +const _EDnd = "EndpointDomain"; +const _EDv = "EventDescription"; +const _EDx = "ExpirationDate"; +const _EEBD = "EbsEncryptionByDefault"; +const _EEEBD = "EnableEbsEncryptionByDefault"; +const _EFL = "EnableFastLaunch"; +const _EFR = "EgressFilterRules"; +const _EFSR = "EnableFastSnapshotRestores"; +const _EGA = "ElasticGpuAssociations"; +const _EGAI = "ElasticGpuAssociationId"; +const _EGAS = "ElasticGpuAssociationState"; +const _EGAT = "ElasticGpuAssociationTime"; +const _EGH = "ElasticGpuHealth"; +const _EGI = "ElasticGpuIds"; +const _EGIl = "ElasticGpuId"; +const _EGS = "ElasticGpuSpecifications"; +const _EGSl = "ElasticGpuSpecification"; +const _EGSla = "ElasticGpuSet"; +const _EGSlas = "ElasticGpuState"; +const _EGT = "ElasticGpuType"; +const _EH = "EndHour"; +const _EI = "EnableImage"; +const _EIA = "ElasticInferenceAccelerators"; +const _EIAA = "ElasticInferenceAcceleratorArn"; +const _EIAAI = "ElasticInferenceAcceleratorAssociationId"; +const _EIAAS = "ElasticInferenceAcceleratorAssociationState"; +const _EIAAT = "ElasticInferenceAcceleratorAssociationTime"; +const _EIAAl = "ElasticInferenceAcceleratorAssociations"; +const _EIBPA = "EnableImageBlockPublicAccess"; +const _EID = "EnableImageDeprecation"; +const _EIOAA = "EnableIpamOrganizationAdminAccount"; +const _EIT = "ExcludedInstanceTypes"; +const _EITI = "ExportImageTaskIds"; +const _EITIx = "ExportImageTaskId"; +const _EITS = "EncryptionInTransitSupported"; +const _EITx = "ExportImageTasks"; +const _EIb = "EbsInfo"; +const _EIf = "EfaInfo"; +const _EIv = "EventInformation"; +const _EIve = "EventId"; +const _EIx = "ExportImage"; +const _EIxc = "ExchangeId"; +const _EKKI = "EncryptionKmsKeyId"; +const _ELADI = "EnableLniAtDeviceIndex"; +const _ELBL = "ElasticLoadBalancerListener"; +const _EM = "ErrorMessage"; +const _ENAUM = "EnableNetworkAddressUsageMetrics"; +const _EO = "EbsOptimized"; +const _EOI = "EbsOptimizedInfo"; +const _EOIG = "EgressOnlyInternetGateway"; +const _EOIGI = "EgressOnlyInternetGatewayId"; +const _EOIGIg = "EgressOnlyInternetGatewayIds"; +const _EOIGg = "EgressOnlyInternetGateways"; +const _EOS = "EbsOptimizedSupport"; +const _EOn = "EnclaveOptions"; +const _EP = "ExcludePaths"; +const _EPI = "EnablePrimaryIpv6"; +const _EPg = "EgressPackets"; +const _ERAOS = "EnableReachabilityAnalyzerOrganizationSharing"; +const _ERNDAAAAR = "EnableResourceNameDnsAAAARecord"; +const _ERNDAAAAROL = "EnableResourceNameDnsAAAARecordOnLaunch"; +const _ERNDAR = "EnableResourceNameDnsARecord"; +const _ERNDAROL = "EnableResourceNameDnsARecordOnLaunch"; +const _ES = "EphemeralStorage"; +const _ESBPA = "EnableSnapshotBlockPublicAccess"; +const _ESCA = "EnableSerialConsoleAccess"; +const _ESE = "EnaSrdEnabled"; +const _ESS = "EnaSrdSpecification"; +const _ESSn = "EnaSrdSupported"; +const _EST = "EventSubType"; +const _ESUE = "EnaSrdUdpEnabled"; +const _ESUS = "EnaSrdUdpSpecification"; +const _ESf = "EfaSupported"; +const _ESn = "EnaSupport"; +const _ESnc = "EncryptionSupport"; +const _ET = "EndpointType"; +const _ETGR = "ExportTransitGatewayRoutes"; +const _ETGRTP = "EnableTransitGatewayRouteTablePropagation"; +const _ETI = "ExportTaskId"; +const _ETIx = "ExportTaskIds"; +const _ETLC = "EnableTunnelLifecycleControl"; +const _ETST = "ExportToS3Task"; +const _ETa = "EarliestTime"; +const _ETi = "EipTags"; +const _ETn = "EndTime"; +const _ETna = "EnablingTime"; +const _ETnab = "EnabledTime"; +const _ETv = "EventType"; +const _ETx = "ExpirationTime"; +const _ETxp = "ExportTask"; +const _ETxpo = "ExportTasks"; +const _EU = "ExecutableUsers"; +const _EVCL = "EnableVpcClassicLink"; +const _EVCLDS = "EnableVpcClassicLinkDnsSupport"; +const _EVIO = "EnableVolumeIO"; +const _EVRP = "EnableVgwRoutePropagation"; +const _EWD = "EndWeekDay"; +const _Eg = "Egress"; +const _En = "Enabled"; +const _Enc = "Encrypted"; +const _End = "End"; +const _Endp = "Endpoint"; +const _Ent = "Entries"; +const _Er = "Error"; +const _Err = "Errors"; +const _Ev = "Events"; +const _Eve = "Event"; +const _Ex = "Explanations"; +const _F = "Force"; +const _FA = "FederatedAuthentication"; +const _FAD = "FilterAtDestination"; +const _FAS = "FilterAtSource"; +const _FAi = "FirstAddress"; +const _FC = "FulfilledCapacity"; +const _FCR = "FleetCapacityReservations"; +const _FCa = "FailureCode"; +const _FCi = "FindingComponents"; +const _FD = "ForceDelete"; +const _FDN = "FipsDnsName"; +const _FE = "FipsEnabled"; +const _FF = "FileFormat"; +const _FFC = "FailedFleetCancellations"; +const _FFi = "FindingsFound"; +const _FI = "FleetIds"; +const _FIA = "FilterInArns"; +const _FIAp = "FpgaImageAttribute"; +const _FIGI = "FpgaImageGlobalId"; +const _FII = "FpgaImageId"; +const _FIIp = "FpgaImageIds"; +const _FIPSE = "FIPSEnabled"; +const _FIi = "FindingId"; +const _FIl = "FleetId"; +const _FIp = "FpgaImages"; +const _FIpg = "FpgaInfo"; +const _FL = "FlowLogs"; +const _FLI = "FlowLogIds"; +const _FLIa = "FastLaunchImages"; +const _FLIl = "FlowLogId"; +const _FLS = "FlowLogStatus"; +const _FM = "FailureMessage"; +const _FODC = "FulfilledOnDemandCapacity"; +const _FP = "FromPort"; +const _FPC = "ForwardPathComponents"; +const _FPi = "FixedPrice"; +const _FQPD = "FailedQueuedPurchaseDeletions"; +const _FR = "FailureReason"; +const _FRa = "FastRestored"; +const _FS = "FleetState"; +const _FSR = "FastSnapshotRestores"; +const _FSRSE = "FastSnapshotRestoreStateErrors"; +const _FSRi = "FirewallStatelessRule"; +const _FSRir = "FirewallStatefulRule"; +const _FSST = "FirstSlotStartTime"; +const _FSSTR = "FirstSlotStartTimeRange"; +const _FTE = "FreeTierEligible"; +const _Fa = "Fault"; +const _Fi = "Filters"; +const _Fil = "Filter"; +const _Fl = "Fleets"; +const _Fo = "Format"; +const _Fp = "Fpgas"; +const _Fr = "From"; +const _Fre = "Frequency"; +const _G = "Groups"; +const _GA = "GroupArn"; +const _GAECIR = "GetAssociatedEnclaveCertificateIamRoles"; +const _GAIPC = "GetAssociatedIpv6PoolCidrs"; +const _GANPD = "GetAwsNetworkPerformanceData"; +const _GAS = "GatewayAssociationState"; +const _GCO = "GetConsoleOutput"; +const _GCPU = "GetCoipPoolUsage"; +const _GCRU = "GetCapacityReservationUsage"; +const _GCS = "GetConsoleScreenshot"; +const _GD = "GroupDescription"; +const _GDCS = "GetDefaultCreditSpecification"; +const _GEDKKI = "GetEbsDefaultKmsKeyId"; +const _GEEBD = "GetEbsEncryptionByDefault"; +const _GFLIT = "GetFlowLogsIntegrationTemplate"; +const _GGFCR = "GetGroupsForCapacityReservation"; +const _GHRPP = "GetHostReservationPurchasePreview"; +const _GI = "GatewayId"; +const _GIA = "GroupIpAddress"; +const _GIAH = "GetIpamAddressHistory"; +const _GIBPAS = "GetImageBlockPublicAccessState"; +const _GIDA = "GetIpamDiscoveredAccounts"; +const _GIDPA = "GetIpamDiscoveredPublicAddresses"; +const _GIDRC = "GetIpamDiscoveredResourceCidrs"; +const _GIPA = "GetIpamPoolAllocations"; +const _GIPC = "GetIpamPoolCidrs"; +const _GIRC = "GetIpamResourceCidrs"; +const _GITFIR = "GetInstanceTypesFromInstanceRequirements"; +const _GIUD = "GetInstanceUefiData"; +const _GIp = "GpuInfo"; +const _GIr = "GroupId"; +const _GIro = "GroupIds"; +const _GK = "GreKey"; +const _GLBA = "GatewayLoadBalancerArns"; +const _GLBEI = "GatewayLoadBalancerEndpointId"; +const _GLTD = "GetLaunchTemplateData"; +const _GM = "GroupMember"; +const _GMPLA = "GetManagedPrefixListAssociations"; +const _GMPLE = "GetManagedPrefixListEntries"; +const _GN = "GroupName"; +const _GNIASAF = "GetNetworkInsightsAccessScopeAnalysisFindings"; +const _GNIASC = "GetNetworkInsightsAccessScopeContent"; +const _GNr = "GroupNames"; +const _GOI = "GroupOwnerId"; +const _GPD = "GetPasswordData"; +const _GRIEQ = "GetReservedInstancesExchangeQuote"; +const _GS = "GroupSource"; +const _GSBPAS = "GetSnapshotBlockPublicAccessState"; +const _GSCAS = "GetSerialConsoleAccessStatus"; +const _GSCR = "GetSubnetCidrReservations"; +const _GSGFV = "GetSecurityGroupsForVpc"; +const _GSPS = "GetSpotPlacementScores"; +const _GTGAP = "GetTransitGatewayAttachmentPropagations"; +const _GTGMDA = "GetTransitGatewayMulticastDomainAssociations"; +const _GTGPLR = "GetTransitGatewayPrefixListReferences"; +const _GTGPTA = "GetTransitGatewayPolicyTableAssociations"; +const _GTGPTE = "GetTransitGatewayPolicyTableEntries"; +const _GTGRTA = "GetTransitGatewayRouteTableAssociations"; +const _GTGRTP = "GetTransitGatewayRouteTablePropagations"; +const _GVAEP = "GetVerifiedAccessEndpointPolicy"; +const _GVAGP = "GetVerifiedAccessGroupPolicy"; +const _GVCDSC = "GetVpnConnectionDeviceSampleConfiguration"; +const _GVCDT = "GetVpnConnectionDeviceTypes"; +const _GVTRS = "GetVpnTunnelReplacementStatus"; +const _Gp = "Gpus"; +const _Gr = "Group"; +const _H = "Hypervisor"; +const _HCP = "HiveCompatiblePartitions"; +const _HE = "HttpEndpoint"; +const _HI = "HostIds"; +const _HIS = "HostIdSet"; +const _HIo = "HostId"; +const _HM = "HostMaintenance"; +const _HO = "HibernationOptions"; +const _HP = "HostProperties"; +const _HPI = "HttpProtocolIpv6"; +const _HPRHL = "HttpPutResponseHopLimit"; +const _HPo = "HourlyPrice"; +const _HR = "HostRecovery"; +const _HRGA = "HostResourceGroupArn"; +const _HRI = "HostReservationId"; +const _HRIS = "HostReservationIdSet"; +const _HRS = "HostReservationSet"; +const _HRi = "HistoryRecords"; +const _HS = "HibernationSupported"; +const _HT = "HttpTokens"; +const _HTo = "HostnameType"; +const _HZI = "HostedZoneId"; +const _Hi = "Hibernate"; +const _Ho = "Hosts"; +const _I = "Issuer"; +const _IA = "Ipv6Addresses"; +const _IAC = "Ipv6AddressCount"; +const _IAI = "IncludeAllInstances"; +const _IAIn = "InferenceAcceleratorInfo"; +const _IAPI = "Ipv4AddressesPerInterface"; +const _IAPIp = "Ipv6AddressesPerInterface"; +const _IAT = "IpAddressType"; +const _IATOI = "IncludeAllTagsOfInstance"; +const _IAn = "InterfaceAssociation"; +const _IAnt = "InterfaceAssociations"; +const _IAp = "IpAddress"; +const _IApa = "IpamArn"; +const _IApv = "Ipv6Address"; +const _IB = "IngressBytes"; +const _IBPAS = "ImageBlockPublicAccessState"; +const _IC = "InstanceCount"; +const _ICA = "Ipv6CidrAssociations"; +const _ICB = "Ipv6CidrBlock"; +const _ICBA = "Ipv6CidrBlockAssociation"; +const _ICBAS = "Ipv6CidrBlockAssociationSet"; +const _ICBNBG = "Ipv6CidrBlockNetworkBorderGroup"; +const _ICBS = "Ipv6CidrBlockState"; +const _ICBSp = "Ipv6CidrBlockSet"; +const _ICBn = "InsideCidrBlocks"; +const _ICE = "InstanceConnectEndpoint"; +const _ICEA = "InstanceConnectEndpointArn"; +const _ICEI = "InstanceConnectEndpointId"; +const _ICEIn = "InstanceConnectEndpointIds"; +const _ICEn = "InstanceConnectEndpoints"; +const _ICS = "InstanceCreditSpecifications"; +const _ICVCCRL = "ImportClientVpnClientCertificateRevocationList"; +const _ICn = "InstanceCounts"; +const _ICp = "Ipv6Cidr"; +const _ID = "IncludeDeprecated"; +const _IDA = "IpamDiscoveredAccounts"; +const _IDPA = "IpamDiscoveredPublicAddresses"; +const _IDRC = "IpamDiscoveredResourceCidrs"; +const _IDm = "ImageData"; +const _IDn = "IncludeDisabled"; +const _IDs = "IsDefault"; +const _IE = "IsEgress"; +const _IED = "InstanceExportDetails"; +const _IEI = "InstanceEventId"; +const _IEW = "InstanceEventWindow"; +const _IEWI = "InstanceEventWindowId"; +const _IEWIn = "InstanceEventWindowIds"; +const _IEWS = "InstanceEventWindowState"; +const _IEWn = "InstanceEventWindows"; +const _IF = "InstanceFamily"; +const _IFCS = "InstanceFamilyCreditSpecification"; +const _IFR = "IamFleetRole"; +const _IFRn = "IngressFilterRules"; +const _IG = "InstanceGenerations"; +const _IGI = "InternetGatewayId"; +const _IGIn = "InternetGatewayIds"; +const _IGn = "InternetGateway"; +const _IGnt = "InternetGateways"; +const _IH = "InstanceHealth"; +const _IHn = "InboundHeader"; +const _II = "ImportImage"; +const _IIB = "InstanceInterruptionBehavior"; +const _IIP = "IamInstanceProfile"; +const _IIPA = "IamInstanceProfileAssociation"; +const _IIPAa = "IamInstanceProfileAssociations"; +const _IIPI = "Ipv6IpamPoolId"; +const _IIPIp = "Ipv4IpamPoolId"; +const _IIS = "InstanceIdSet"; +const _IISB = "InstanceInitiatedShutdownBehavior"; +const _IIT = "ImportImageTasks"; +const _IIm = "ImportInstance"; +const _IIma = "ImageId"; +const _IImag = "ImageIds"; +const _IIn = "InstanceId"; +const _IIns = "InstanceIds"; +const _IIp = "IpamId"; +const _IIpa = "IpamIds"; +const _IKEV = "InternetKeyExchangeVersion"; +const _IKEVe = "IKEVersions"; +const _IKP = "ImportKeyPair"; +const _IL = "ImageLocation"; +const _ILn = "InstanceLifecycle"; +const _IM = "IncludeMarketplace"; +const _IMC = "InstanceMatchCriteria"; +const _IMO = "InstanceMarketOptions"; +const _IMOn = "InstanceMetadataOptions"; +const _IMT = "InstanceMetadataTags"; +const _IMU = "ImportManifestUrl"; +const _IMn = "InstanceMonitorings"; +const _IN = "Ipv6Native"; +const _INL = "Ipv6NetmaskLength"; +const _INLp = "Ipv4NetmaskLength"; +const _IOA = "ImageOwnerAlias"; +const _IOI = "IpOwnerId"; +const _IOIn = "InstanceOwnerId"; +const _IP = "Ipv6Prefixes"; +const _IPA = "IpamPoolAllocation"; +const _IPAI = "IpamPoolAllocationId"; +const _IPAp = "IpamPoolAllocations"; +const _IPApa = "IpamPoolArn"; +const _IPC = "Ipv6PrefixCount"; +const _IPCI = "IpamPoolCidrId"; +const _IPCp = "Ipv4PrefixCount"; +const _IPCpa = "IpamPoolCidr"; +const _IPCpam = "IpamPoolCidrs"; +const _IPE = "IpPermissionsEgress"; +const _IPI = "IpamPoolId"; +const _IPIp = "IpamPoolIds"; +const _IPIs = "IsPrimaryIpv6"; +const _IPK = "IncludePublicKey"; +const _IPO = "IpamPoolOwner"; +const _IPR = "IsPermanentRestore"; +const _IPTUC = "InstancePoolsToUseCount"; +const _IPn = "InstancePlatform"; +const _IPng = "IngressPackets"; +const _IPns = "InstancePort"; +const _IPnt = "InterfacePermission"; +const _IPnte = "InterfaceProtocol"; +const _IPo = "IoPerformance"; +const _IPp = "Ipv4Prefixes"; +const _IPpa = "IpamPool"; +const _IPpam = "IpamPools"; +const _IPpe = "IpPermissions"; +const _IPpr = "IpProtocol"; +const _IPpv = "Ipv6Pool"; +const _IPpvo = "Ipv6Pools"; +const _IPpvr = "Ipv4Prefix"; +const _IPpvre = "Ipv6Prefix"; +const _IPs = "IsPrimary"; +const _IR = "InstanceRequirements"; +const _IRC = "IpamResourceCidrs"; +const _IRCp = "IpamResourceCidr"; +const _IRD = "IpamResourceDiscovery"; +const _IRDA = "IpamResourceDiscoveryAssociation"; +const _IRDAA = "IpamResourceDiscoveryAssociationArn"; +const _IRDAI = "IpamResourceDiscoveryAssociationIds"; +const _IRDAIp = "IpamResourceDiscoveryAssociationId"; +const _IRDAp = "IpamResourceDiscoveryAssociations"; +const _IRDApa = "IpamResourceDiscoveryArn"; +const _IRDI = "IpamResourceDiscoveryId"; +const _IRDIp = "IpamResourceDiscoveryIds"; +const _IRDR = "IpamResourceDiscoveryRegion"; +const _IRDp = "IpamResourceDiscoveries"; +const _IRSDA = "IntegrationResultS3DestinationArn"; +const _IRT = "IngressRouteTable"; +const _IRWM = "InstanceRequirementsWithMetadata"; +const _IRp = "IpRanges"; +const _IRpa = "IpamRegion"; +const _IRpv = "Ipv6Ranges"; +const _IS = "ImportSnapshot"; +const _ISA = "IpamScopeArn"; +const _ISI = "IpamScopeId"; +const _ISIn = "InstanceStorageInfo"; +const _ISIp = "IpamScopeIds"; +const _ISL = "InputStorageLocation"; +const _ISS = "InstanceStorageSupported"; +const _IST = "ImportSnapshotTasks"; +const _ISTp = "IpamScopeType"; +const _ISg = "Igmpv2Support"; +const _ISm = "ImdsSupport"; +const _ISmp = "ImpairedSince"; +const _ISn = "InstanceSpecification"; +const _ISns = "InstanceStatuses"; +const _ISnst = "InstanceState"; +const _ISnsta = "InstanceStatus"; +const _ISnt = "IntegrateServices"; +const _ISp = "Ipv6Support"; +const _ISpa = "IpamScope"; +const _ISpam = "IpamScopes"; +const _ISpv = "Ipv6Supported"; +const _IT = "InstanceType"; +const _ITA = "InstanceTagAttribute"; +const _ITC = "IcmpTypeCode"; +const _ITCn = "IncludeTrustContext"; +const _ITI = "ImportTaskId"; +const _ITIm = "ImportTaskIds"; +const _ITK = "InstanceTagKeys"; +const _ITO = "InstanceTypeOfferings"; +const _ITS = "InstanceTypeSpecifications"; +const _ITm = "ImageType"; +const _ITn = "InterfaceType"; +const _ITns = "InstanceTenancy"; +const _ITnst = "InstanceTypes"; +const _ITnsta = "InstanceTags"; +const _IU = "InstanceUsages"; +const _IUp = "IpUsage"; +const _IV = "ImportVolume"; +const _IVE = "IsValidExchange"; +const _IVk = "IkeVersions"; +const _Id = "Id"; +const _Im = "Image"; +const _Ima = "Images"; +const _In = "Instances"; +const _Ins = "Instance"; +const _Int = "Interval"; +const _Io = "Iops"; +const _Ip = "Ipv4"; +const _Ipa = "Ipam"; +const _Ipam = "Ipams"; +const _Ipv = "Ipv6"; +const _K = "Kernel"; +const _KDF = "KinesisDataFirehose"; +const _KF = "KeyFormat"; +const _KFe = "KeyFingerprint"; +const _KI = "KernelId"; +const _KKA = "KmsKeyArn"; +const _KKI = "KmsKeyId"; +const _KM = "KeyMaterial"; +const _KN = "KeyName"; +const _KNe = "KeyNames"; +const _KP = "KeyPairs"; +const _KPI = "KeyPairId"; +const _KPIe = "KeyPairIds"; +const _KT = "KeyType"; +const _Ke = "Key"; +const _Key = "Keyword"; +const _L = "Locale"; +const _LA = "LocalAddress"; +const _LADT = "LastAttemptedDiscoveryTime"; +const _LAZ = "LaunchedAvailabilityZone"; +const _LAa = "LastAddress"; +const _LB = "LoadBalancers"; +const _LBA = "LoadBalancerArn"; +const _LBAo = "LocalBgpAsn"; +const _LBC = "LoadBalancersConfig"; +const _LBLP = "LoadBalancerListenerPort"; +const _LBO = "LoadBalancerOptions"; +const _LBP = "LoadBalancerPort"; +const _LBT = "LoadBalancerTarget"; +const _LBTG = "LoadBalancerTargetGroup"; +const _LBTGo = "LoadBalancerTargetGroups"; +const _LBTP = "LoadBalancerTargetPort"; +const _LC = "LoggingConfigurations"; +const _LCA = "LicenseConfigurationArn"; +const _LCO = "LockCreatedOn"; +const _LCo = "LoggingConfiguration"; +const _LD = "LogDestination"; +const _LDST = "LockDurationStartTime"; +const _LDT = "LogDestinationType"; +const _LDo = "LockDuration"; +const _LE = "LogEnabled"; +const _LEO = "LockExpiresOn"; +const _LET = "LastEvaluatedTime"; +const _LEa = "LastError"; +const _LF = "LogFormat"; +const _LFA = "LambdaFunctionArn"; +const _LG = "LaunchGroup"; +const _LGA = "LogGroupArn"; +const _LGI = "LocalGatewayId"; +const _LGIo = "LocalGatewayIds"; +const _LGN = "LogGroupName"; +const _LGRT = "LocalGatewayRouteTable"; +const _LGRTA = "LocalGatewayRouteTableArn"; +const _LGRTI = "LocalGatewayRouteTableId"; +const _LGRTIo = "LocalGatewayRouteTableIds"; +const _LGRTVA = "LocalGatewayRouteTableVpcAssociation"; +const _LGRTVAI = "LocalGatewayRouteTableVpcAssociationId"; +const _LGRTVAIo = "LocalGatewayRouteTableVpcAssociationIds"; +const _LGRTVAo = "LocalGatewayRouteTableVpcAssociations"; +const _LGRTVIGA = "LocalGatewayRouteTableVirtualInterfaceGroupAssociation"; +const _LGRTVIGAI = "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId"; +const _LGRTVIGAIo = "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds"; +const _LGRTVIGAo = "LocalGatewayRouteTableVirtualInterfaceGroupAssociations"; +const _LGRTo = "LocalGatewayRouteTables"; +const _LGVI = "LocalGatewayVirtualInterfaces"; +const _LGVIG = "LocalGatewayVirtualInterfaceGroups"; +const _LGVIGI = "LocalGatewayVirtualInterfaceGroupId"; +const _LGVIGIo = "LocalGatewayVirtualInterfaceGroupIds"; +const _LGVII = "LocalGatewayVirtualInterfaceIds"; +const _LGVIIo = "LocalGatewayVirtualInterfaceId"; +const _LGo = "LogGroup"; +const _LGoc = "LocalGateways"; +const _LIIRB = "ListImagesInRecycleBin"; +const _LINC = "LocalIpv4NetworkCidr"; +const _LINCo = "LocalIpv6NetworkCidr"; +const _LLT = "LastLaunchedTime"; +const _LM = "LockMode"; +const _LMA = "LastMaintenanceApplied"; +const _LO = "LogOptions"; +const _LOF = "LogOutputFormat"; +const _LP = "LoadPermission"; +const _LPa = "LaunchPermission"; +const _LPau = "LaunchPermissions"; +const _LPi = "LimitPrice"; +const _LPo = "LoadPermissions"; +const _LS = "LockSnapshot"; +const _LSC = "LastStatusChange"; +const _LSDT = "LastSuccessfulDiscoveryTime"; +const _LSIRB = "ListSnapshotsInRecycleBin"; +const _LSL = "LogsStorageLocation"; +const _LST = "LocalStorageTypes"; +const _LSa = "LaunchSpecification"; +const _LSau = "LaunchSpecifications"; +const _LSi = "LicenseSpecifications"; +const _LSo = "LocalStorage"; +const _LSoc = "LockState"; +const _LT = "LocationType"; +const _LTAO = "LaunchTemplateAndOverrides"; +const _LTC = "LaunchTemplateConfigs"; +const _LTD = "LaunchTemplateData"; +const _LTI = "LaunchTemplateId"; +const _LTIa = "LaunchTemplateIds"; +const _LTN = "LaunchTemplateName"; +const _LTNa = "LaunchTemplateNames"; +const _LTOS = "LastTieringOperationStatus"; +const _LTOSD = "LastTieringOperationStatusDetail"; +const _LTP = "LastTieringProgress"; +const _LTS = "LaunchTemplateSpecification"; +const _LTST = "LastTieringStartTime"; +const _LTV = "LaunchTemplateVersion"; +const _LTVa = "LaunchTemplateVersions"; +const _LTa = "LaunchTemplate"; +const _LTat = "LatestTime"; +const _LTau = "LaunchTemplates"; +const _LTaun = "LaunchTime"; +const _LTi = "LicenseType"; +const _LTo = "LocalTarget"; +const _LUT = "LastUpdatedTime"; +const _LV = "LogVersion"; +const _LVN = "LatestVersionNumber"; +const _La = "Latest"; +const _Li = "Lifecycle"; +const _Lic = "Licenses"; +const _Lo = "Location"; +const _M = "Min"; +const _MA = "MutualAuthentication"; +const _MAA = "ModifyAddressAttribute"; +const _MAAA = "MaintenanceAutoAppliedAfter"; +const _MAE = "MultiAttachEnabled"; +const _MAI = "MaxAggregationInterval"; +const _MAS = "MovingAddressStatuses"; +const _MATV = "MoveAddressToVpc"; +const _MAZG = "ModifyAvailabilityZoneGroup"; +const _MAa = "MacAddress"; +const _MBCTI = "MoveByoipCidrToIpam"; +const _MBIM = "MaximumBandwidthInMbps"; +const _MC = "MaxCount"; +const _MCOIOL = "MapCustomerOwnedIpOnLaunch"; +const _MCR = "ModifyCapacityReservation"; +const _MCRF = "ModifyCapacityReservationFleet"; +const _MCVE = "ModifyClientVpnEndpoint"; +const _MCi = "MinCount"; +const _MCis = "MissingComponent"; +const _MD = "MaxDuration"; +const _MDA = "MulticastDomainAssociations"; +const _MDCS = "ModifyDefaultCreditSpecification"; +const _MDDS = "MaxDrainDurationSeconds"; +const _MDK = "MetaDataKey"; +const _MDV = "MetaDataValue"; +const _MDa = "MaintenanceDetails"; +const _MDe = "MetaData"; +const _MDi = "MinDuration"; +const _ME = "MaxEntries"; +const _MEDKKI = "ModifyEbsDefaultKmsKeyId"; +const _MEI = "MaximumEfaInterfaces"; +const _MF = "ModifyFleet"; +const _MFIA = "ModifyFpgaImageAttribute"; +const _MG = "MulticastGroups"; +const _MGBPVC = "MemoryGiBPerVCpu"; +const _MH = "ModifyHosts"; +const _MI = "ModifyIpam"; +const _MIA = "ModifyImageAttribute"; +const _MIAo = "ModifyInstanceAttribute"; +const _MIC = "MaxInstanceCount"; +const _MICRA = "ModifyInstanceCapacityReservationAttributes"; +const _MICS = "ModifyInstanceCreditSpecification"; +const _MIEST = "ModifyInstanceEventStartTime"; +const _MIEW = "ModifyInstanceEventWindow"; +const _MIF = "ModifyIdFormat"; +const _MIIF = "ModifyIdentityIdFormat"; +const _MIMO = "ModifyInstanceMaintenanceOptions"; +const _MIMOo = "ModifyInstanceMetadataOptions"; +const _MIP = "ModifyInstancePlacement"; +const _MIPo = "ModifyIpamPool"; +const _MIRC = "ModifyIpamResourceCidr"; +const _MIRD = "ModifyIpamResourceDiscovery"; +const _MIS = "ModifyIpamScope"; +const _MIa = "MaximumIops"; +const _MIe = "MemoryInfo"; +const _MIo = "MonitorInstances"; +const _MLGR = "ModifyLocalGatewayRoute"; +const _MLT = "ModifyLaunchTemplate"; +const _MMB = "MemoryMiB"; +const _MMPL = "ModifyManagedPrefixList"; +const _MNC = "MaximumNetworkCards"; +const _MNI = "MaximumNetworkInterfaces"; +const _MNIA = "ModifyNetworkInterfaceAttribute"; +const _MO = "MetadataOptions"; +const _MOSLRG = "MemberOfServiceLinkedResourceGroup"; +const _MOa = "MaintenanceOptions"; +const _MP = "MatchPaths"; +const _MPDNO = "ModifyPrivateDnsNameOptions"; +const _MPIOL = "MapPublicIpOnLaunch"; +const _MPL = "MaxParallelLaunches"; +const _MPa = "MaxPrice"; +const _MPe = "MetricPoints"; +const _MR = "MaxResults"; +const _MRI = "ModifyReservedInstances"; +const _MRo = "ModificationResults"; +const _MRu = "MultiRegion"; +const _MS = "MaintenanceStrategies"; +const _MSA = "ModifySnapshotAttribute"; +const _MSAo = "ModifySubnetAttribute"; +const _MSDIH = "MaxSlotDurationInHours"; +const _MSDIHi = "MinSlotDurationInHours"; +const _MSFR = "ModifySpotFleetRequest"; +const _MSGR = "ModifySecurityGroupRules"; +const _MST = "ModifySnapshotTier"; +const _MSa = "ManagementState"; +const _MSo = "MoveStatus"; +const _MSod = "ModificationState"; +const _MSu = "MulticastSupport"; +const _MT = "MarketType"; +const _MTC = "MinTargetCapacity"; +const _MTDID = "MaxTermDurationInDays"; +const _MTDIDi = "MinTermDurationInDays"; +const _MTG = "ModifyTransitGateway"; +const _MTGPLR = "ModifyTransitGatewayPrefixListReference"; +const _MTGVA = "ModifyTransitGatewayVpcAttachment"; +const _MTIMB = "MaximumThroughputInMBps"; +const _MTMFNS = "ModifyTrafficMirrorFilterNetworkServices"; +const _MTMFR = "ModifyTrafficMirrorFilterRule"; +const _MTMS = "ModifyTrafficMirrorSession"; +const _MTP = "MaxTotalPrice"; +const _MTe = "MemberType"; +const _MV = "ModifyVolume"; +const _MVA = "ModifyVolumeAttribute"; +const _MVAE = "ModifyVerifiedAccessEndpoint"; +const _MVAEP = "ModifyVerifiedAccessEndpointPolicy"; +const _MVAG = "ModifyVerifiedAccessGroup"; +const _MVAGP = "ModifyVerifiedAccessGroupPolicy"; +const _MVAI = "ModifyVerifiedAccessInstance"; +const _MVAILC = "ModifyVerifiedAccessInstanceLoggingConfiguration"; +const _MVATP = "ModifyVerifiedAccessTrustProvider"; +const _MVAo = "ModifyVpcAttribute"; +const _MVC = "ModifyVpnConnection"; +const _MVCO = "ModifyVpnConnectionOptions"; +const _MVE = "ModifyVpcEndpoint"; +const _MVECN = "ModifyVpcEndpointConnectionNotification"; +const _MVESC = "ModifyVpcEndpointServiceConfiguration"; +const _MVESP = "ModifyVpcEndpointServicePermissions"; +const _MVESPR = "ModifyVpcEndpointServicePayerResponsibility"; +const _MVEa = "ManagesVpcEndpoints"; +const _MVPCO = "ModifyVpcPeeringConnectionOptions"; +const _MVT = "ModifyVpcTenancy"; +const _MVTC = "ModifyVpnTunnelCertificate"; +const _MVTO = "ModifyVpnTunnelOptions"; +const _MVa = "MaxVersion"; +const _MVi = "MinVersion"; +const _Ma = "Max"; +const _Mai = "Main"; +const _Man = "Manufacturer"; +const _Mar = "Marketplace"; +const _Me = "Message"; +const _Mes = "Messages"; +const _Met = "Metric"; +const _Mo = "Mode"; +const _Mon = "Monitoring"; +const _Moni = "Monitored"; +const _N = "Name"; +const _NA = "NetworkAcl"; +const _NAAI = "NetworkAclAssociationId"; +const _NAI = "NetworkAclId"; +const _NAIe = "NetworkAclIds"; +const _NAIew = "NewAssociationId"; +const _NAe = "NetworkAcls"; +const _NAo = "NotAfter"; +const _NB = "NotBefore"; +const _NBD = "NotBeforeDeadline"; +const _NBG = "NetworkBorderGroup"; +const _NBGe = "NetworkBandwidthGbps"; +const _NC = "NetworkCards"; +const _NCI = "NetworkCardIndex"; +const _ND = "NoDevice"; +const _NES = "NitroEnclavesSupport"; +const _NG = "NatGateway"; +const _NGA = "NatGatewayAddresses"; +const _NGI = "NatGatewayId"; +const _NGIa = "NatGatewayIds"; +const _NGa = "NatGateways"; +const _NI = "NetworkInterfaces"; +const _NIA = "NetworkInsightsAnalyses"; +const _NIAA = "NetworkInsightsAnalysisArn"; +const _NIAI = "NetworkInsightsAnalysisId"; +const _NIAIe = "NetworkInsightsAnalysisIds"; +const _NIAS = "NetworkInsightsAccessScope"; +const _NIASA = "NetworkInsightsAccessScopeAnalyses"; +const _NIASAA = "NetworkInsightsAccessScopeAnalysisArn"; +const _NIASAI = "NetworkInsightsAccessScopeAnalysisId"; +const _NIASAIe = "NetworkInsightsAccessScopeAnalysisIds"; +const _NIASAe = "NetworkInsightsAccessScopeArn"; +const _NIASAet = "NetworkInsightsAccessScopeAnalysis"; +const _NIASC = "NetworkInsightsAccessScopeContent"; +const _NIASI = "NetworkInsightsAccessScopeId"; +const _NIASIe = "NetworkInsightsAccessScopeIds"; +const _NIASe = "NetworkInsightsAccessScopes"; +const _NIAe = "NetworkInsightsAnalysis"; +const _NIC = "NetworkInterfaceCount"; +const _NID = "NetworkInterfaceDescription"; +const _NII = "NetworkInterfaceId"; +const _NIIe = "NetworkInterfaceIds"; +const _NIO = "NetworkInterfaceOptions"; +const _NIOI = "NetworkInterfaceOwnerId"; +const _NIP = "NetworkInsightsPath"; +const _NIPA = "NetworkInsightsPathArn"; +const _NIPI = "NetworkInsightsPathId"; +const _NIPIe = "NetworkInterfacePermissionId"; +const _NIPIet = "NetworkInsightsPathIds"; +const _NIPIetw = "NetworkInterfacePermissionIds"; +const _NIPe = "NetworkInsightsPaths"; +const _NIPet = "NetworkInterfacePermissions"; +const _NIe = "NetworkId"; +const _NIet = "NetworkInterface"; +const _NIetw = "NetworkInfo"; +const _NL = "NetmaskLength"; +const _NLBA = "NetworkLoadBalancerArn"; +const _NLBAe = "NetworkLoadBalancerArns"; +const _NN = "NetworkNodes"; +const _NP = "NetworkPerformance"; +const _NPF = "NetworkPathFound"; +const _NPe = "NetworkPlatform"; +const _NR = "NoReboot"; +const _NS = "NvmeSupport"; +const _NSST = "NextSlotStartTime"; +const _NSe = "NetworkServices"; +const _NT = "NextToken"; +const _NTI = "NitroTpmInfo"; +const _NTS = "NitroTpmSupport"; +const _NTe = "NetworkType"; +const _O = "Options"; +const _OA = "OutpostArn"; +const _OAr = "OrganizationArn"; +const _OArg = "OrganizationArns"; +const _OAw = "OwnerAlias"; +const _OC = "OfferingClass"; +const _OD = "OccurrenceDays"; +const _ODAS = "OnDemandAllocationStrategy"; +const _ODFC = "OnDemandFulfilledCapacity"; +const _ODMPPOLP = "OnDemandMaxPricePercentageOverLowestPrice"; +const _ODMTP = "OnDemandMaxTotalPrice"; +const _ODO = "OnDemandOptions"; +const _ODS = "OccurrenceDaySet"; +const _ODTC = "OnDemandTargetCapacity"; +const _OH = "OutboundHeader"; +const _OI = "OfferingId"; +const _OIA = "OutsideIpAddress"; +const _OIAT = "OutsideIpAddressType"; +const _OIS = "OptInStatus"; +const _OIr = "OriginalIops"; +const _OIw = "OwnerIds"; +const _OIwn = "OwnerId"; +const _OK = "ObjectKey"; +const _OMAE = "OriginalMultiAttachEnabled"; +const _OO = "OidcOptions"; +const _OR = "OperatingRegions"; +const _ORIWEA = "OutputReservedInstancesWillExpireAt"; +const _ORTE = "OccurrenceRelativeToEnd"; +const _OS = "OfferingSet"; +const _OST = "OldestSampleTime"; +const _OSr = "OriginalSize"; +const _OSv = "OverlapStatus"; +const _OT = "OfferingType"; +const _OTp = "OperationType"; +const _OTpt = "OptimizingTime"; +const _OTr = "OriginalThroughput"; +const _OU = "OccurrenceUnit"; +const _OUA = "OrganizationalUnitArn"; +const _OUAr = "OrganizationalUnitArns"; +const _OVT = "OriginalVolumeType"; +const _Or = "Origin"; +const _Ou = "Output"; +const _Ov = "Overrides"; +const _Ow = "Owners"; +const _Own = "Owner"; +const _P = "Protocol"; +const _PA = "PubliclyAdvertisable"; +const _PAI = "PeerAccountId"; +const _PAIe = "PeeringAttachmentId"; +const _PAR = "PoolAddressRange"; +const _PARo = "PoolAddressRanges"; +const _PAe = "PeerAddress"; +const _PAee = "PeerAsn"; +const _PAo = "PoolArn"; +const _PAr = "PrincipalArn"; +const _PB = "ProvisionedBandwidth"; +const _PBA = "PeerBgpAsn"; +const _PBC = "ProvisionByoipCidr"; +const _PBIG = "PeakBandwidthInGbps"; +const _PC = "ProductCode"; +const _PCB = "PurchaseCapacityBlock"; +const _PCBo = "PoolCidrBlocks"; +const _PCI = "PreserveClientIp"; +const _PCIr = "ProductCodeId"; +const _PCNI = "PeerCoreNetworkId"; +const _PCS = "PostureComplianceStatuses"; +const _PCT = "ProductCodeType"; +const _PCa = "PartitionCount"; +const _PCo = "PoolCidrs"; +const _PCoo = "PoolCount"; +const _PCr = "ProductCodes"; +const _PD = "PolicyDocument"; +const _PDE = "PrivateDnsEnabled"; +const _PDHGN = "Phase1DHGroupNumbers"; +const _PDHGNh = "Phase2DHGroupNumbers"; +const _PDHT = "PrivateDnsHostnameType"; +const _PDHTOL = "PrivateDnsHostnameTypeOnLaunch"; +const _PDN = "PrivateDnsName"; +const _PDNC = "PrivateDnsNameConfiguration"; +const _PDNO = "PrivateDnsNameOptions"; +const _PDNOOL = "PrivateDnsNameOptionsOnLaunch"; +const _PDNVS = "PrivateDnsNameVerificationState"; +const _PDNr = "PrivateDnsNames"; +const _PDNu = "PublicDnsName"; +const _PDOFIRE = "PrivateDnsOnlyForInboundResolverEndpoint"; +const _PDRTI = "PropagationDefaultRouteTableId"; +const _PDSI = "PublicDefaultScopeId"; +const _PDSIr = "PrivateDefaultScopeId"; +const _PDa = "PasswordData"; +const _PDay = "PaymentDue"; +const _PDl = "PlatformDetails"; +const _PDo = "PoolDepth"; +const _PDr = "ProductDescription"; +const _PDri = "PricingDetails"; +const _PDro = "ProductDescriptions"; +const _PE = "PolicyEnabled"; +const _PEA = "Phase1EncryptionAlgorithms"; +const _PEAh = "Phase2EncryptionAlgorithms"; +const _PED = "PartitionEndDate"; +const _PF = "PacketField"; +const _PFS = "PreviousFleetState"; +const _PG = "PlacementGroup"; +const _PGA = "PlacementGroupArn"; +const _PGI = "PlacementGroupInfo"; +const _PGl = "PlacementGroups"; +const _PHP = "PerHourPartition"; +const _PHR = "PurchaseHostReservation"; +const _PHS = "PacketHeaderStatement"; +const _PI = "PublicIp"; +const _PIA = "PrivateIpAddresses"; +const _PIAC = "PrivateIpAddressCount"; +const _PIACr = "PrivateIpAddressConfigs"; +const _PIAh = "Phase1IntegrityAlgorithms"; +const _PIAha = "Phase2IntegrityAlgorithms"; +const _PIAr = "PrivateIpAddress"; +const _PIAu = "PublicIpAddress"; +const _PIB = "ProvisionIpamByoasn"; +const _PIP = "PublicIpv4Pool"; +const _PIPC = "ProvisionIpamPoolCidr"; +const _PIPI = "PublicIpv4PoolId"; +const _PIPu = "PublicIpv4Pools"; +const _PIS = "PublicIpSource"; +const _PIc = "PciId"; +const _PIo = "PoolId"; +const _PIoo = "PoolIds"; +const _PIr = "PrimaryIpv6"; +const _PIri = "PrivateIp"; +const _PIro = "ProcessorInfo"; +const _PIu = "PublicIps"; +const _PK = "PublicKey"; +const _PKM = "PublicKeyMaterial"; +const _PL = "PacketLength"; +const _PLA = "PrefixListAssociations"; +const _PLAr = "PrefixListArn"; +const _PLF = "PartitionLoadFrequency"; +const _PLI = "PrefixListId"; +const _PLIr = "PrefixListIds"; +const _PLN = "PrefixListName"; +const _PLOI = "PrefixListOwnerId"; +const _PLS = "Phase1LifetimeSeconds"; +const _PLSh = "Phase2LifetimeSeconds"; +const _PLr = "PrefixList"; +const _PLre = "PrefixLists"; +const _PM = "PendingMaintenance"; +const _PN = "PartitionNumber"; +const _PNC = "PreviewNextCidr"; +const _PO = "PaymentOption"; +const _POI = "PeerOwnerId"; +const _POe = "PeeringOptions"; +const _PP = "ProgressPercentage"; +const _PPIPC = "ProvisionPublicIpv4PoolCidr"; +const _PR = "PortRange"; +const _PRIO = "PurchaseReservedInstancesOffering"; +const _PRN = "PolicyReferenceName"; +const _PRNo = "PolicyRuleNumber"; +const _PRU = "PtrRecordUpdate"; +const _PRa = "PayerResponsibility"; +const _PRe = "PeerRegion"; +const _PRer = "PermanentRestore"; +const _PRo = "PortRanges"; +const _PRol = "PolicyRule"; +const _PRt = "PtrRecord"; +const _PRu = "PurchaseRequests"; +const _PS = "PriceSchedules"; +const _PSD = "PartitionStartDate"; +const _PSET = "PreviousSlotEndTime"; +const _PSFRS = "PreviousSpotFleetRequestState"; +const _PSI = "PurchaseScheduledInstances"; +const _PSK = "PreSharedKey"; +const _PSKU = "PublicSigningKeyUrl"; +const _PSe = "PeeringStatus"; +const _PSer = "PermissionState"; +const _PSr = "PreviousState"; +const _PSre = "PreviousStatus"; +const _PT = "PurchaseToken"; +const _PTGI = "PeerTransitGatewayId"; +const _PTS = "PoolTagSpecifications"; +const _PTr = "PrincipalType"; +const _PTro = "ProvisionTime"; +const _PTu = "PurchaseTime"; +const _PU = "PresignedUrl"; +const _PV = "PreviousVersion"; +const _PVI = "PeerVpcId"; +const _PVIr = "PrimaryVpcId"; +const _PVr = "PropagatingVgws"; +const _PZI = "ParentZoneId"; +const _PZN = "ParentZoneName"; +const _Pe = "Permission"; +const _Per = "Period"; +const _Pl = "Placement"; +const _Pla = "Platform"; +const _Po = "Port"; +const _Pr = "Prefix"; +const _Pri = "Priority"; +const _Pric = "Price"; +const _Prim = "Primary"; +const _Prin = "Principal"; +const _Princ = "Principals"; +const _Pro = "Protocols"; +const _Prog = "Progress"; +const _Prop = "Propagation"; +const _Prov = "Provisioned"; +const _Pu = "Public"; +const _Pur = "Purchase"; +const _Q = "Quantity"; +const _R = "Resources"; +const _RA = "ReleaseAddress"; +const _RAA = "ResetAddressAttribute"; +const _RAG = "RevokeAllGroups"; +const _RAP = "RemoveAllowedPrincipals"; +const _RART = "RemoveAllocationResourceTags"; +const _RATC = "RestoreAddressToClassic"; +const _RAe = "ResolveAlias"; +const _RAo = "RoleArn"; +const _RAu = "RuleAction"; +const _RBET = "RecycleBinEnterTime"; +const _RBETe = "RecycleBinExitTime"; +const _RBUI = "RestorableByUserIds"; +const _RC = "ResourceCidr"; +const _RCS = "ResourceComplianceStatus"; +const _RCVI = "RevokeClientVpnIngress"; +const _RCe = "ReasonCodes"; +const _RCec = "RecurringCharges"; +const _RCet = "ReturnCode"; +const _RD = "RestoreDuration"; +const _RDAC = "ResourceDiscoveryAssociationCount"; +const _RDI = "RamDiskId"; +const _RDN = "RootDeviceName"; +const _RDS = "ResourceDiscoveryStatus"; +const _RDT = "RootDeviceType"; +const _RE = "RemoveEntries"; +const _RED = "RemoveEndDate"; +const _REDKKI = "ResetEbsDefaultKmsKeyId"; +const _RET = "RestoreExpiryTime"; +const _REe = "ResponseError"; +const _RF = "RemoveFields"; +const _RFIA = "ResetFpgaImageAttribute"; +const _RFP = "RekeyFuzzPercentage"; +const _RGA = "RuleGroupArn"; +const _RGI = "ReferencedGroupId"; +const _RGIe = "ReferencedGroupInfo"; +const _RGLBA = "RemoveGatewayLoadBalancerArns"; +const _RGROP = "RuleGroupRuleOptionsPairs"; +const _RGT = "RuleGroupType"; +const _RGTP = "RuleGroupTypePairs"; +const _RH = "ReleaseHosts"; +const _RHS = "RequireHibernateSupport"; +const _RI = "RebootInstances"; +const _RIA = "ResetImageAttribute"; +const _RIAe = "ResetInstanceAttribute"; +const _RIENA = "RegisterInstanceEventNotificationAttributes"; +const _RIFRB = "RestoreImageFromRecycleBin"; +const _RII = "ReservedInstanceIds"; +const _RIIPA = "ReplaceIamInstanceProfileAssociation"; +const _RIIe = "ReservedInstancesId"; +const _RIIes = "ReservedInstancesIds"; +const _RIIese = "ReservedInstanceId"; +const _RIL = "ReservedInstancesListings"; +const _RILI = "ReservedInstancesListingId"; +const _RIM = "ReservedInstancesModifications"; +const _RIMI = "ReservedInstancesModificationIds"; +const _RIMIe = "ReservedInstancesModificationId"; +const _RINC = "RemoteIpv4NetworkCidr"; +const _RINCe = "RemoteIpv6NetworkCidr"; +const _RIO = "ReservedInstancesOfferings"; +const _RIOI = "ReservedInstancesOfferingIds"; +const _RIOIe = "ReservedInstancesOfferingId"; +const _RIPA = "ReleaseIpamPoolAllocation"; +const _RIS = "ReportInstanceStatus"; +const _RIVR = "ReservedInstanceValueRollup"; +const _RIVS = "ReservedInstanceValueSet"; +const _RIa = "RamdiskId"; +const _RIe = "RegisterImage"; +const _RIeq = "RequesterId"; +const _RIes = "ResourceIds"; +const _RIese = "ReservedInstances"; +const _RIeser = "ReservationId"; +const _RIeso = "ResourceId"; +const _RIu = "RunInstances"; +const _RM = "ReasonMessage"; +const _RMGM = "RegisteredMulticastGroupMembers"; +const _RMGS = "RegisteredMulticastGroupSources"; +const _RMPLV = "RestoreManagedPrefixListVersion"; +const _RMTS = "RekeyMarginTimeSeconds"; +const _RMe = "RequesterManaged"; +const _RN = "RegionName"; +const _RNAA = "ReplaceNetworkAclAssociation"; +const _RNAE = "ReplaceNetworkAclEntry"; +const _RNIA = "ResetNetworkInterfaceAttribute"; +const _RNII = "RegisteredNetworkInterfaceIds"; +const _RNLBA = "RemoveNetworkLoadBalancerArns"; +const _RNS = "RemoveNetworkServices"; +const _RNe = "RegionNames"; +const _RNes = "ResourceName"; +const _RNo = "RoleName"; +const _RNu = "RuleNumber"; +const _RO = "ResourceOwner"; +const _ROI = "ResourceOwnerId"; +const _ROR = "RemoveOperatingRegions"; +const _ROS = "ResourceOverlapStatus"; +const _ROo = "RouteOrigin"; +const _ROu = "RuleOptions"; +const _RP = "ResetPolicy"; +const _RPC = "ReturnPathComponents"; +const _RPCO = "RequesterPeeringConnectionOptions"; +const _RPDN = "RemovePrivateDnsName"; +const _RR = "ReplaceRoute"; +const _RRTA = "ReplaceRouteTableAssociation"; +const _RRTI = "RemoveRouteTableIds"; +const _RRVT = "ReplaceRootVolumeTask"; +const _RRVTI = "ReplaceRootVolumeTaskIds"; +const _RRVTIe = "ReplaceRootVolumeTaskId"; +const _RRVTe = "ReplaceRootVolumeTasks"; +const _RRe = "ResourceRegion"; +const _RS = "ReplacementStrategy"; +const _RSA = "ResetSnapshotAttribute"; +const _RSF = "RequestSpotFleet"; +const _RSFRB = "RestoreSnapshotFromRecycleBin"; +const _RSGE = "RevokeSecurityGroupEgress"; +const _RSGI = "RevokeSecurityGroupIngress"; +const _RSGIe = "RemoveSecurityGroupIds"; +const _RSI = "RequestSpotInstances"; +const _RSIAT = "RemoveSupportedIpAddressTypes"; +const _RSIe = "RemoveSubnetIds"; +const _RSIu = "RunScheduledInstances"; +const _RST = "RestoreSnapshotTier"; +const _RSTe = "RestoreStartTime"; +const _RSe = "ResourceStatement"; +const _RT = "ResourceType"; +const _RTAI = "RouteTableAssociationId"; +const _RTGCB = "RemoveTransitGatewayCidrBlocks"; +const _RTGMDA = "RejectTransitGatewayMulticastDomainAssociations"; +const _RTGMGM = "RegisterTransitGatewayMulticastGroupMembers"; +const _RTGMGS = "RegisterTransitGatewayMulticastGroupSources"; +const _RTGPA = "RejectTransitGatewayPeeringAttachment"; +const _RTGR = "ReplaceTransitGatewayRoute"; +const _RTGVA = "RejectTransitGatewayVpcAttachment"; +const _RTI = "RouteTableId"; +const _RTIe = "RequesterTgwInfo"; +const _RTIo = "RouteTableIds"; +const _RTR = "RouteTableRoute"; +const _RTV = "RemainingTotalValue"; +const _RTe = "ReservationType"; +const _RTel = "ReleaseTime"; +const _RTeq = "RequestTime"; +const _RTes = "ResourceTag"; +const _RTeso = "ResourceTypes"; +const _RTesou = "ResourceTags"; +const _RTo = "RouteTable"; +const _RTou = "RouteTables"; +const _RUI = "ReplaceUnhealthyInstances"; +const _RUV = "RemainingUpfrontValue"; +const _RV = "ReturnValue"; +const _RVEC = "RejectVpcEndpointConnections"; +const _RVI = "ReferencingVpcId"; +const _RVIe = "RequesterVpcInfo"; +const _RVPC = "RejectVpcPeeringConnection"; +const _RVT = "ReplaceVpnTunnel"; +const _RVe = "ReservationValue"; +const _RWS = "ReplayWindowSize"; +const _Ra = "Ramdisk"; +const _Re = "Remove"; +const _Rea = "Reason"; +const _Rec = "Recurrence"; +const _Reg = "Regions"; +const _Regi = "Region"; +const _Req = "Requested"; +const _Res = "Resource"; +const _Rese = "Reservations"; +const _Resu = "Result"; +const _Ret = "Return"; +const _Ro = "Route"; +const _Rou = "Routes"; +const _S = "Source"; +const _SA = "StartupAction"; +const _SAI = "SecondaryAllocationIds"; +const _SAMLPA = "SAMLProviderArn"; +const _SAZ = "SingleAvailabilityZone"; +const _SAo = "SourceAddresses"; +const _SAou = "SourceAddress"; +const _SAour = "SourceArn"; +const _SAu = "SuggestedAccounts"; +const _SAub = "SubnetArn"; +const _SAup = "SupportedArchitectures"; +const _SB = "S3Bucket"; +const _SBM = "SupportedBootModes"; +const _SC = "SubnetConfigurations"; +const _SCA = "ServerCertificateArn"; +const _SCAE = "SerialConsoleAccessEnabled"; +const _SCB = "SourceCidrBlock"; +const _SCR = "SubnetCidrReservation"; +const _SCRI = "SubnetCidrReservationId"; +const _SCSIG = "SustainedClockSpeedInGhz"; +const _SCc = "ScopeCount"; +const _SCe = "ServiceConfiguration"; +const _SCer = "ServiceConfigurations"; +const _SCn = "SnapshotConfiguration"; +const _SD = "SpreadDomain"; +const _SDC = "SourceDestCheck"; +const _SDI = "SendDiagnosticInterrupt"; +const _SDIH = "SlotDurationInHours"; +const _SDLTV = "SuccessfullyDeletedLaunchTemplateVersions"; +const _SDR = "StartDateRange"; +const _SDS = "SpotDatafeedSubscription"; +const _SDV = "SetDefaultVersion"; +const _SDe = "ServiceDetails"; +const _SDn = "SnapshotDetails"; +const _SDt = "StartDate"; +const _SEL = "S3ExportLocation"; +const _SET = "SampledEndTime"; +const _SF = "SupportedFeatures"; +const _SFC = "SuccessfulFleetCancellations"; +const _SFD = "SuccessfulFleetDeletions"; +const _SFII = "SourceFpgaImageId"; +const _SFR = "SuccessfulFleetRequests"; +const _SFRC = "SpotFleetRequestConfig"; +const _SFRCp = "SpotFleetRequestConfigs"; +const _SFRI = "SpotFleetRequestIds"; +const _SFRIp = "SpotFleetRequestId"; +const _SFRS = "SpotFleetRequestState"; +const _SG = "SecurityGroups"; +const _SGFV = "SecurityGroupForVpcs"; +const _SGI = "SecurityGroupIds"; +const _SGIe = "SecurityGroupId"; +const _SGR = "SecurityGroupRules"; +const _SGRD = "SecurityGroupRuleDescriptions"; +const _SGRI = "SecurityGroupRuleIds"; +const _SGRIe = "SecurityGroupRuleId"; +const _SGRS = "SecurityGroupReferencingSupport"; +const _SGRSe = "SecurityGroupReferenceSet"; +const _SGRe = "SecurityGroupRule"; +const _SGe = "SecurityGroup"; +const _SH = "StartHour"; +const _SI = "StartInstances"; +const _SIAS = "ScheduledInstanceAvailabilitySet"; +const _SIAT = "SupportedIpAddressTypes"; +const _SICR = "SubnetIpv4CidrReservations"; +const _SICRu = "SubnetIpv6CidrReservations"; +const _SICS = "SuccessfulInstanceCreditSpecifications"; +const _SIGB = "SizeInGB"; +const _SII = "SourceImageId"; +const _SIIc = "ScheduledInstanceIds"; +const _SIIch = "ScheduledInstanceId"; +const _SIIo = "SourceInstanceId"; +const _SIMB = "SizeInMiB"; +const _SIP = "StaleIpPermissions"; +const _SIPE = "StaleIpPermissionsEgress"; +const _SIPI = "SourceIpamPoolId"; +const _SIR = "SpotInstanceRequests"; +const _SIRI = "SpotInstanceRequestIds"; +const _SIRIp = "SpotInstanceRequestId"; +const _SIS = "ScheduledInstanceSet"; +const _SIT = "SpotInstanceType"; +const _SITR = "StoreImageTaskResults"; +const _SITi = "SingleInstanceType"; +const _SIe = "ServiceId"; +const _SIer = "ServiceIds"; +const _SIn = "SnapshotId"; +const _SIna = "SnapshotIds"; +const _SIo = "SourceIp"; +const _SIt = "StopInstances"; +const _SIta = "StartingInstances"; +const _SIto = "StoppingInstances"; +const _SIu = "SubnetIds"; +const _SIub = "SubnetId"; +const _SIubs = "SubsystemId"; +const _SK = "S3Key"; +const _SKo = "S3objectKey"; +const _SL = "SpreadLevel"; +const _SLGR = "SearchLocalGatewayRoutes"; +const _SLo = "S3Location"; +const _SM = "StatusMessage"; +const _SMPPOLP = "SpotMaxPricePercentageOverLowestPrice"; +const _SMS = "SpotMaintenanceStrategies"; +const _SMTP = "SpotMaxTotalPrice"; +const _SMt = "StateMessage"; +const _SN = "SessionNumber"; +const _SNIA = "StartNetworkInsightsAnalysis"; +const _SNIASA = "StartNetworkInsightsAccessScopeAnalysis"; +const _SNS = "SriovNetSupport"; +const _SNe = "ServiceName"; +const _SNeq = "SequenceNumber"; +const _SNer = "ServiceNames"; +const _SO = "SpotOptions"; +const _SOT = "S3ObjectTags"; +const _SP = "S3Prefix"; +const _SPA = "SamlProviderArn"; +const _SPH = "SpotPriceHistory"; +const _SPI = "ServicePermissionId"; +const _SPIA = "SecondaryPrivateIpAddresses"; +const _SPIAC = "SecondaryPrivateIpAddressCount"; +const _SPL = "SourcePrefixLists"; +const _SPR = "SourcePortRange"; +const _SPRo = "SourcePortRanges"; +const _SPS = "SpotPlacementScores"; +const _SPo = "SourcePorts"; +const _SPp = "SpotPrice"; +const _SQPD = "SuccessfulQueuedPurchaseDeletions"; +const _SR = "SourceRegion"; +const _SRDT = "SupportedRootDeviceTypes"; +const _SRO = "StaticRoutesOnly"; +const _SRT = "SubnetRouteTable"; +const _SRe = "ServiceResource"; +const _SRo = "SourceResource"; +const _SRt = "StateReason"; +const _SS = "SseSpecification"; +const _SSGN = "SourceSecurityGroupName"; +const _SSGOI = "SourceSecurityGroupOwnerId"; +const _SSGS = "StaleSecurityGroupSet"; +const _SSI = "SourceSnapshotId"; +const _SSIo = "SourceSnapshotIds"; +const _SSP = "SelfServicePortal"; +const _SSPU = "SelfServicePortalUrl"; +const _SSS = "StaticSourcesSupport"; +const _SSSAMLPA = "SelfServiceSAMLProviderArn"; +const _SSSPA = "SelfServiceSamlProviderArn"; +const _SST = "SampledStartTime"; +const _SSTR = "SlotStartTimeRange"; +const _SSe = "ServiceState"; +const _SSu = "SupportedStrategies"; +const _SSy = "SystemStatus"; +const _ST = "SplitTunnel"; +const _STC = "SpotTargetCapacity"; +const _STD = "SnapshotTaskDetail"; +const _STFR = "StoreTaskFailureReason"; +const _STGMG = "SearchTransitGatewayMulticastGroups"; +const _STGR = "SearchTransitGatewayRoutes"; +const _STH = "SessionTimeoutHours"; +const _STR = "SkipTunnelReplacement"; +const _STRt = "StateTransitionReason"; +const _STS = "SnapshotTierStatuses"; +const _STSt = "StoreTaskState"; +const _STT = "StateTransitionTime"; +const _STa = "SampleTime"; +const _STe = "ServiceType"; +const _STo = "SourceType"; +const _STs = "SseType"; +const _STt = "StartTime"; +const _STto = "StorageTier"; +const _SUC = "SupportedUsageClasses"; +const _SV = "SourceVersion"; +const _SVESPDV = "StartVpcEndpointServicePrivateDnsVerification"; +const _SVI = "SubsystemVendorId"; +const _SVT = "SupportedVirtualizationTypes"; +const _SVh = "ShellVersion"; +const _SVo = "SourceVpc"; +const _SVu = "SupportedVersions"; +const _SWD = "StartWeekDay"; +const _S_ = "S3"; +const _Sc = "Scope"; +const _Sco = "Score"; +const _Se = "Service"; +const _Set = "Settings"; +const _Si = "Signature"; +const _Siz = "Size"; +const _Sn = "Snapshots"; +const _So = "Sources"; +const _Soc = "Sockets"; +const _Sof = "Software"; +const _St = "Storage"; +const _Sta = "Statistic"; +const _Star = "Start"; +const _Stat = "State"; +const _Statu = "Status"; +const _Status = "Statuses"; +const _Str = "Strategy"; +const _Su = "Subnet"; +const _Sub = "Subscriptions"; +const _Subn = "Subnets"; +const _Suc = "Successful"; +const _Succ = "Success"; +const _T = "Type"; +const _TAAC = "TotalAvailableAddressCount"; +const _TAC = "TotalAddressCount"; +const _TAI = "TransferAccountId"; +const _TC = "TargetConfigurations"; +const _TCS = "TargetCapacitySpecification"; +const _TCUT = "TargetCapacityUnitType"; +const _TCVC = "TerminateClientVpnConnections"; +const _TCVR = "TargetConfigurationValueRollup"; +const _TCVS = "TargetConfigurationValueSet"; +const _TCa = "TargetCapacity"; +const _TCar = "TargetConfiguration"; +const _TCo = "TotalCapacity"; +const _TD = "TrafficDirection"; +const _TDe = "TerminationDelay"; +const _TE = "TargetEnvironment"; +const _TED = "TermEndDate"; +const _TET = "TcpEstablishedTimeout"; +const _TEo = "TokenEndpoint"; +const _TFC = "TotalFulfilledCapacity"; +const _TFMIMB = "TotalFpgaMemoryInMiB"; +const _TG = "TargetGroups"; +const _TGA = "TransitGatewayAddress"; +const _TGAI = "TransitGatewayAttachmentId"; +const _TGAIr = "TransitGatewayAttachmentIds"; +const _TGAP = "TransitGatewayAttachmentPropagations"; +const _TGAr = "TransitGatewayAttachments"; +const _TGAra = "TransitGatewayAttachment"; +const _TGAran = "TransitGatewayArn"; +const _TGArans = "TransitGatewayAsn"; +const _TGC = "TargetGroupsConfig"; +const _TGCB = "TransitGatewayCidrBlocks"; +const _TGCP = "TransitGatewayConnectPeer"; +const _TGCPI = "TransitGatewayConnectPeerId"; +const _TGCPIr = "TransitGatewayConnectPeerIds"; +const _TGCPr = "TransitGatewayConnectPeers"; +const _TGCr = "TransitGatewayConnect"; +const _TGCra = "TransitGatewayConnects"; +const _TGI = "TransitGatewayId"; +const _TGIr = "TransitGatewayIds"; +const _TGMD = "TransitGatewayMulticastDomain"; +const _TGMDA = "TransitGatewayMulticastDomainArn"; +const _TGMDI = "TransitGatewayMulticastDomainId"; +const _TGMDIr = "TransitGatewayMulticastDomainIds"; +const _TGMDr = "TransitGatewayMulticastDomains"; +const _TGMIMB = "TotalGpuMemoryInMiB"; +const _TGOI = "TransitGatewayOwnerId"; +const _TGPA = "TransitGatewayPeeringAttachment"; +const _TGPAr = "TransitGatewayPeeringAttachments"; +const _TGPLR = "TransitGatewayPrefixListReference"; +const _TGPLRr = "TransitGatewayPrefixListReferences"; +const _TGPT = "TransitGatewayPolicyTable"; +const _TGPTE = "TransitGatewayPolicyTableEntries"; +const _TGPTI = "TransitGatewayPolicyTableId"; +const _TGPTIr = "TransitGatewayPolicyTableIds"; +const _TGPTr = "TransitGatewayPolicyTables"; +const _TGRT = "TransitGatewayRouteTable"; +const _TGRTA = "TransitGatewayRouteTableAnnouncement"; +const _TGRTAI = "TransitGatewayRouteTableAnnouncementId"; +const _TGRTAIr = "TransitGatewayRouteTableAnnouncementIds"; +const _TGRTAr = "TransitGatewayRouteTableAnnouncements"; +const _TGRTI = "TransitGatewayRouteTableId"; +const _TGRTIr = "TransitGatewayRouteTableIds"; +const _TGRTP = "TransitGatewayRouteTablePropagations"; +const _TGRTR = "TransitGatewayRouteTableRoute"; +const _TGRTr = "TransitGatewayRouteTables"; +const _TGVA = "TransitGatewayVpcAttachment"; +const _TGVAr = "TransitGatewayVpcAttachments"; +const _TGr = "TransitGateway"; +const _TGra = "TransitGateways"; +const _THP = "TotalHourlyPrice"; +const _TI = "TerminateInstances"; +const _TIC = "TunnelInsideCidr"; +const _TICo = "TotalInstanceCount"; +const _TII = "TrunkInterfaceId"; +const _TIIC = "TunnelInsideIpv6Cidr"; +const _TIIV = "TunnelInsideIpVersion"; +const _TIMIMB = "TotalInferenceMemoryInMiB"; +const _TIWE = "TerminateInstancesWithExpiration"; +const _TIa = "TargetIops"; +const _TIe = "TenantId"; +const _TIer = "TerminatingInstances"; +const _TLSGB = "TotalLocalStorageGB"; +const _TMAE = "TargetMultiAttachEnabled"; +const _TMF = "TrafficMirrorFilter"; +const _TMFI = "TrafficMirrorFilterId"; +const _TMFIr = "TrafficMirrorFilterIds"; +const _TMFR = "TrafficMirrorFilterRule"; +const _TMFRI = "TrafficMirrorFilterRuleId"; +const _TMFr = "TrafficMirrorFilters"; +const _TMS = "TrafficMirrorSession"; +const _TMSI = "TrafficMirrorSessionId"; +const _TMSIr = "TrafficMirrorSessionIds"; +const _TMSr = "TrafficMirrorSessions"; +const _TMT = "TrafficMirrorTarget"; +const _TMTI = "TrafficMirrorTargetId"; +const _TMTIr = "TrafficMirrorTargetIds"; +const _TMTr = "TrafficMirrorTargets"; +const _TNC = "TargetNetworkCidr"; +const _TNI = "TargetNetworkId"; +const _TO = "TunnelOptions"; +const _TOAT = "TransferOfferAcceptedTimestamp"; +const _TOET = "TransferOfferExpirationTimestamp"; +const _TP = "ToPort"; +const _TPC = "ThreadsPerCore"; +const _TPT = "TrustProviderType"; +const _TPr = "TransportProtocol"; +const _TR = "ThroughResources"; +const _TRC = "TargetResourceCount"; +const _TRD = "TemporaryRestoreDays"; +const _TRTI = "TargetRouteTableId"; +const _TRi = "TimeRanges"; +const _TS = "TagSpecifications"; +const _TSD = "TermStartDate"; +const _TSIGB = "TotalSizeInGB"; +const _TSIH = "TotalScheduledInstanceHours"; +const _TST = "TieringStartTime"; +const _TSTa = "TaskStartTime"; +const _TSa = "TargetSubnet"; +const _TSag = "TagSet"; +const _TSagp = "TagSpecification"; +const _TSar = "TargetSize"; +const _TSas = "TaskState"; +const _TSp = "TpmSupport"; +const _TT = "TrafficType"; +const _TTC = "TotalTargetCapacity"; +const _TTGAI = "TransportTransitGatewayAttachmentId"; +const _TTa = "TargetThroughput"; +const _TUP = "TotalUpfrontPrice"; +const _TV = "TargetVersion"; +const _TVC = "TotalVCpus"; +const _TVSI = "TargetVpcSubnetId"; +const _TVT = "TargetVolumeType"; +const _Ta = "Tags"; +const _Tag = "Tag"; +const _Te = "Tenancy"; +const _Ter = "Term"; +const _Th = "Throughput"; +const _Ti = "Tier"; +const _Tim = "Timestamp"; +const _To = "To"; +const _U = "Url"; +const _UB = "UserBucket"; +const _UD = "UserData"; +const _UDLTV = "UnsuccessfullyDeletedLaunchTemplateVersions"; +const _UDe = "UefiData"; +const _UDp = "UpdatedDate"; +const _UDpd = "UpdateDate"; +const _UE = "UploadEnd"; +const _UF = "UpfrontFee"; +const _UFD = "UnsuccessfulFleetDeletions"; +const _UFR = "UnsuccessfulFleetRequests"; +const _UG = "UserGroups"; +const _UI = "UnmonitorInstances"; +const _UIA = "UnassignIpv6Addresses"; +const _UIAn = "UnassignedIpv6Addresses"; +const _UIC = "UsedInstanceCount"; +const _UICS = "UnsuccessfulInstanceCreditSpecifications"; +const _UIE = "UserInfoEndpoint"; +const _UIGP = "UserIdGroupPairs"; +const _UIP = "UnknownIpPermissions"; +const _UIPn = "UnassignedIpv6Prefixes"; +const _UIs = "UserId"; +const _UIse = "UserIds"; +const _ULI = "UseLongIds"; +const _ULIA = "UseLongIdsAggregated"; +const _UO = "UsageOperation"; +const _UOUT = "UsageOperationUpdateTime"; +const _UP = "UploadPolicy"; +const _UPIA = "UnassignPrivateIpAddresses"; +const _UPNGA = "UnassignPrivateNatGatewayAddress"; +const _UPS = "UploadPolicySignature"; +const _UPp = "UpfrontPrice"; +const _UPs = "UsagePrice"; +const _US = "UnlockSnapshot"; +const _USGRDE = "UpdateSecurityGroupRuleDescriptionsEgress"; +const _USGRDI = "UpdateSecurityGroupRuleDescriptionsIngress"; +const _UST = "UdpStreamTimeout"; +const _USp = "UploadSize"; +const _USpl = "UploadStart"; +const _USs = "UsageStrategy"; +const _UT = "UdpTimeout"; +const _UTPT = "UserTrustProviderType"; +const _UTp = "UpdateTime"; +const _Un = "Unsuccessful"; +const _Us = "Username"; +const _V = "Version"; +const _VA = "VpcAttachment"; +const _VAE = "VerifiedAccessEndpoint"; +const _VAEI = "VerifiedAccessEndpointId"; +const _VAEIe = "VerifiedAccessEndpointIds"; +const _VAEe = "VerifiedAccessEndpoints"; +const _VAG = "VerifiedAccessGroup"; +const _VAGA = "VerifiedAccessGroupArn"; +const _VAGI = "VerifiedAccessGroupId"; +const _VAGIe = "VerifiedAccessGroupIds"; +const _VAGe = "VerifiedAccessGroups"; +const _VAI = "VerifiedAccessInstance"; +const _VAII = "VerifiedAccessInstanceId"; +const _VAIIe = "VerifiedAccessInstanceIds"; +const _VAIe = "VerifiedAccessInstances"; +const _VATP = "VerifiedAccessTrustProvider"; +const _VATPI = "VerifiedAccessTrustProviderId"; +const _VATPIe = "VerifiedAccessTrustProviderIds"; +const _VATPe = "VerifiedAccessTrustProviders"; +const _VAp = "VpcAttachments"; +const _VC = "VpnConnection"; +const _VCC = "VCpuCount"; +const _VCDSC = "VpnConnectionDeviceSampleConfiguration"; +const _VCDT = "VpnConnectionDeviceTypes"; +const _VCDTI = "VpnConnectionDeviceTypeId"; +const _VCI = "VpnConnectionId"; +const _VCIp = "VpnConnectionIds"; +const _VCIpu = "VCpuInfo"; +const _VCa = "ValidCores"; +const _VCp = "VpnConnections"; +const _VD = "VersionDescription"; +const _VE = "VpcEndpoint"; +const _VEC = "VpcEndpointConnections"; +const _VECI = "VpcEndpointConnectionId"; +const _VEI = "VpcEndpointIds"; +const _VEIp = "VpcEndpointId"; +const _VEO = "VpcEndpointOwner"; +const _VEPS = "VpcEndpointPolicySupported"; +const _VES = "VpnEcmpSupport"; +const _VESp = "VpcEndpointService"; +const _VESpc = "VpcEndpointState"; +const _VET = "VpcEndpointType"; +const _VEp = "VpcEndpoints"; +const _VF = "ValidFrom"; +const _VFR = "ValidationFailureReason"; +const _VG = "VpnGateway"; +const _VGI = "VpnGatewayId"; +const _VGIp = "VpnGatewayIds"; +const _VGp = "VpnGateways"; +const _VI = "VpcId"; +const _VIe = "VendorId"; +const _VIl = "VlanId"; +const _VIo = "VolumeId"; +const _VIol = "VolumeIds"; +const _VIp = "VpcIds"; +const _VM = "VolumesModifications"; +const _VMo = "VolumeModification"; +const _VN = "VirtualName"; +const _VNI = "VirtualNetworkId"; +const _VNe = "VersionNumber"; +const _VOI = "VpcOwnerId"; +const _VP = "VpnPort"; +const _VPC = "VpcPeeringConnection"; +const _VPCI = "VpcPeeringConnectionId"; +const _VPCIp = "VpcPeeringConnectionIds"; +const _VPCp = "VpcPeeringConnections"; +const _VPp = "VpnProtocol"; +const _VS = "VolumeSize"; +const _VSo = "VolumeStatuses"; +const _VSol = "VolumeStatus"; +const _VT = "VolumeType"; +const _VTOIA = "VpnTunnelOutsideIpAddress"; +const _VTPC = "ValidThreadsPerCore"; +const _VTg = "VgwTelemetry"; +const _VTi = "VirtualizationTypes"; +const _VTir = "VirtualizationType"; +const _VU = "ValidUntil"; +const _Va = "Value"; +const _Val = "Values"; +const _Ve = "Versions"; +const _Ven = "Vendor"; +const _Vl = "Vlan"; +const _Vo = "Volume"; +const _Vol = "Volumes"; +const _Vp = "Vpc"; +const _Vpc = "Vpcs"; +const _W = "Weight"; +const _WBC = "WithdrawByoipCidr"; +const _WC = "WeightedCapacity"; +const _WM = "WarningMessage"; +const _WU = "WakeUp"; +const _Wa = "Warning"; +const _ZI = "ZoneIds"; +const _ZIo = "ZoneId"; +const _ZN = "ZoneNames"; +const _ZNo = "ZoneName"; +const _ZT = "ZoneType"; +const _a = "associations"; +const _aA = "asnAssociation"; +const _aAC = "availableAddressCount"; +const _aAI = "awsAccountId"; +const _aAId = "addressAllocationId"; +const _aAS = "asnAssociationSet"; +const _aASA = "autoAcceptSharedAssociations"; +const _aASAu = "autoAcceptSharedAttachments"; +const _aASc = "accountAttributeSet"; +const _aASd = "additionalAccountSet"; +const _aAc = "accessAll"; +const _aBHP = "actualBlockHourlyPrice"; +const _aC = "availableCapacity"; +const _aCIA = "associateCarrierIpAddress"; +const _aCT = "archivalCompleteTime"; +const _aCc = "acceleratorCount"; +const _aCd = "addressCount"; +const _aD = "activeDirectory"; +const _aDNL = "allocationDefaultNetmaskLength"; +const _aDRFRV = "allowDnsResolutionFromRemoteVpc"; +const _aDRTI = "associationDefaultRouteTableId"; +const _aDS = "additionalDetailSet"; +const _aDT = "additionalDetailType"; +const _aDn = "announcementDirection"; +const _aDp = "applicationDomain"; +const _aE = "authorizationEndpoint"; +const _aEC = "analyzedEniCount"; +const _aEFLCLTRV = "allowEgressFromLocalClassicLinkToRemoteVpc"; +const _aEFLVTRCL = "allowEgressFromLocalVpcToRemoteClassicLink"; +const _aEIO = "autoEnableIO"; +const _aF = "addressFamily"; +const _aFS = "analysisFindingSet"; +const _aI = "allocationId"; +const _aIA = "assignedIpv6Addresses"; +const _aIAC = "availableIpAddressCount"; +const _aIAOC = "assignIpv6AddressOnCreation"; +const _aIC = "availableInstanceCapacity"; +const _aICv = "availableInstanceCount"; +const _aIPS = "assignedIpv6PrefixSet"; +const _aIPSs = "assignedIpv4PrefixSet"; +const _aIS = "activeInstanceSet"; +const _aITS = "allowedInstanceTypeSet"; +const _aIc = "accountId"; +const _aIm = "amiId"; +const _aIs = "associationId"; +const _aIss = "assetId"; +const _aIt = "attachmentId"; +const _aIu = "autoImport"; +const _aL = "accessLogs"; +const _aLI = "amiLaunchIndex"; +const _aMIT = "allowsMultipleInstanceTypes"; +const _aMNL = "allocationMinNetmaskLength"; +const _aMNLl = "allocationMaxNetmaskLength"; +const _aMS = "acceleratorManufacturerSet"; +const _aMSp = "applianceModeSupport"; +const _aN = "attributeName"; +const _aNS = "acceleratorNameSet"; +const _aO = "authenticationOptions"; +const _aOI = "addressOwnerId"; +const _aP = "allowedPrincipals"; +const _aPCO = "accepterPeeringConnectionOptions"; +const _aPHS = "alternatePathHintSet"; +const _aPIA = "associatePublicIpAddress"; +const _aPIAS = "assignedPrivateIpAddressesSet"; +const _aPS = "addedPrincipalSet"; +const _aPu = "autoPlacement"; +const _aR = "authorizationRule"; +const _aRA = "associatedRoleArn"; +const _aRAd = "additionalRoutesAvailable"; +const _aRC = "acceptedRouteCount"; +const _aRS = "associatedRoleSet"; +const _aRSu = "autoRecoverySupported"; +const _aRTS = "allocationResourceTagSet"; +const _aRc = "aclRule"; +const _aRcc = "acceptanceRequired"; +const _aRd = "addressRegion"; +const _aRs = "associatedResource"; +const _aRu = "autoRecovery"; +const _aS = "associationState"; +const _aSA = "amazonSideAsn"; +const _aSS = "amdSevSnp"; +const _aSc = "activityStatus"; +const _aSct = "actionsSet"; +const _aSd = "addressSet"; +const _aSdd = "addressesSet"; +const _aSl = "allocationStrategy"; +const _aSn = "analysisStatus"; +const _aSs = "associationStatus"; +const _aSss = "associationSet"; +const _aSt = "attachmentSet"; +const _aStt = "attachmentStatuses"; +const _aSw = "awsService"; +const _aT = "addressTransfer"; +const _aTGAI = "accepterTransitGatewayAttachmentId"; +const _aTI = "accepterTgwInfo"; +const _aTMMB = "acceleratorTotalMemoryMiB"; +const _aTN = "associatedTargetNetwork"; +const _aTS = "addressTransferStatus"; +const _aTSc = "acceleratorTypeSet"; +const _aTSd = "addressTransferSet"; +const _aTd = "addressType"; +const _aTdd = "addressingType"; +const _aTl = "allocationType"; +const _aTll = "allocationTime"; +const _aTs = "associationTarget"; +const _aTt = "attachTime"; +const _aTtt = "attachedTo"; +const _aTtta = "attachmentType"; +const _aV = "attributeValue"; +const _aVC = "availableVCpus"; +const _aVI = "accepterVpcInfo"; +const _aVS = "attributeValueSet"; +const _aZ = "availabilityZone"; +const _aZG = "availabilityZoneGroup"; +const _aZI = "availabilityZoneId"; +const _aZIv = "availabilityZoneInfo"; +const _aZS = "availabilityZoneSet"; +const _ac = "acl"; +const _acc = "accelerators"; +const _act = "active"; +const _ad = "address"; +const _af = "affinity"; +const _am = "amount"; +const _ar = "arn"; +const _arc = "architecture"; +const _as = "asn"; +const _ass = "association"; +const _at = "attachment"; +const _att = "attachments"; +const _b = "byoasn"; +const _bA = "bgpAsn"; +const _bBIG = "baselineBandwidthInGbps"; +const _bBIM = "baselineBandwidthInMbps"; +const _bC = "byoipCidr"; +const _bCS = "byoipCidrSet"; +const _bCg = "bgpConfigurations"; +const _bCy = "bytesConverted"; +const _bDM = "blockDeviceMapping"; +const _bDMS = "blockDeviceMappingSet"; +const _bDMl = "blockDurationMinutes"; +const _bEBM = "baselineEbsBandwidthMbps"; +const _bEDNS = "baseEndpointDnsNameSet"; +const _bI = "bundleId"; +const _bII = "branchInterfaceId"; +const _bIT = "bundleInstanceTask"; +const _bITS = "bundleInstanceTasksSet"; +const _bIa = "baselineIops"; +const _bM = "bootMode"; +const _bMa = "bareMetal"; +const _bN = "bucketName"; +const _bO = "bucketOwner"; +const _bP = "burstablePerformance"; +const _bPS = "burstablePerformanceSupported"; +const _bS = "byoasnSet"; +const _bSg = "bgpStatus"; +const _bT = "bannerText"; +const _bTIMB = "baselineThroughputInMBps"; +const _bl = "blackhole"; +const _bu = "bucket"; +const _c = "component"; +const _cA = "componentArn"; +const _cAS = "capacityAllocationSet"; +const _cAUS = "coipAddressUsageSet"; +const _cAe = "certificateArn"; +const _cAo = "componentAccount"; +const _cAr = "createdAt"; +const _cB = "cidrBlock"; +const _cBA = "cidrBlockAssociation"; +const _cBAS = "cidrBlockAssociationSet"; +const _cBDH = "capacityBlockDurationHours"; +const _cBOI = "capacityBlockOfferingId"; +const _cBOS = "capacityBlockOfferingSet"; +const _cBS = "cidrBlockState"; +const _cBSi = "cidrBlockSet"; +const _cBr = "createdBy"; +const _cC = "currencyCode"; +const _cCB = "clientCidrBlock"; +const _cCO = "clientConnectOptions"; +const _cCRFE = "cancelCapacityReservationFleetError"; +const _cCl = "clientConfiguration"; +const _cCo = "coreCount"; +const _cCoi = "coipCidr"; +const _cCp = "cpuCredits"; +const _cD = "createDate"; +const _cDr = "creationDate"; +const _cDre = "createdDate"; +const _cE = "connectionEvents"; +const _cET = "connectionEstablishedTime"; +const _cETo = "connectionEndTime"; +const _cEr = "cronExpression"; +const _cF = "containerFormat"; +const _cFS = "currentFleetState"; +const _cG = "carrierGateway"; +const _cGC = "customerGatewayConfiguration"; +const _cGI = "carrierGatewayId"; +const _cGIu = "customerGatewayId"; +const _cGS = "carrierGatewaySet"; +const _cGSu = "customerGatewaySet"; +const _cGu = "customerGateway"; +const _cGur = "currentGeneration"; +const _cI = "carrierIp"; +const _cIBM = "currentInstanceBootMode"; +const _cIi = "cidrIp"; +const _cIid = "cidrIpv6"; +const _cIidr = "cidrIpv4"; +const _cIl = "clientIp"; +const _cIli = "clientId"; +const _cIo = "componentId"; +const _cIon = "connectionId"; +const _cIop = "coIp"; +const _cLB = "classicLoadBalancers"; +const _cLBC = "classicLoadBalancersConfig"; +const _cLBL = "classicLoadBalancerListener"; +const _cLBO = "clientLoginBannerOptions"; +const _cLDS = "classicLinkDnsSupported"; +const _cLE = "classicLinkEnabled"; +const _cLO = "connectionLogOptions"; +const _cMKE = "customerManagedKeyEnabled"; +const _cMS = "cpuManufacturerSet"; +const _cN = "commonName"; +const _cNA = "coreNetworkArn"; +const _cNAA = "coreNetworkAttachmentArn"; +const _cNAo = "connectionNotificationArn"; +const _cNI = "connectionNotificationId"; +const _cNIo = "coreNetworkId"; +const _cNS = "connectionNotificationState"; +const _cNSo = "connectionNotificationSet"; +const _cNT = "connectionNotificationType"; +const _cNo = "connectionNotification"; +const _cO = "cpuOptions"; +const _cOI = "customerOwnedIp"; +const _cOIP = "customerOwnedIpv4Pool"; +const _cOP = "coolOffPeriod"; +const _cOPEO = "coolOffPeriodExpiresOn"; +const _cP = "coipPool"; +const _cPC = "connectPeerConfiguration"; +const _cPI = "coipPoolId"; +const _cPS = "coipPoolSet"; +const _cR = "capacityReservation"; +const _cRA = "capacityReservationArn"; +const _cRCC = "clientRootCertificateChain"; +const _cRFA = "capacityReservationFleetArn"; +const _cRFI = "capacityReservationFleetId"; +const _cRFS = "capacityReservationFleetSet"; +const _cRGS = "capacityReservationGroupSet"; +const _cRI = "capacityReservationId"; +const _cRL = "certificateRevocationList"; +const _cRO = "capacityReservationOptions"; +const _cRP = "capacityReservationPreference"; +const _cRRGA = "capacityReservationResourceGroupArn"; +const _cRS = "capacityReservationSet"; +const _cRSa = "capacityReservationSpecification"; +const _cRT = "capacityReservationTarget"; +const _cRa = "capacityRebalance"; +const _cRo = "componentRegion"; +const _cS = "cidrSet"; +const _cSBN = "certificateS3BucketName"; +const _cSFRS = "currentSpotFleetRequestState"; +const _cSOK = "certificateS3ObjectKey"; +const _cSl = "clientSecret"; +const _cSo = "complianceStatus"; +const _cSon = "connectionStatuses"; +const _cSr = "creditSpecification"; +const _cSu = "currentState"; +const _cSur = "currentStatus"; +const _cT = "clientToken"; +const _cTC = "connectionTrackingConfiguration"; +const _cTI = "conversionTaskId"; +const _cTS = "connectionTrackingSpecification"; +const _cTo = "conversionTasks"; +const _cTom = "completeTime"; +const _cTon = "conversionTask"; +const _cTonn = "connectivityType"; +const _cTr = "createTime"; +const _cTre = "creationTime"; +const _cTrea = "creationTimestamp"; +const _cVE = "clientVpnEndpoint"; +const _cVEI = "clientVpnEndpointId"; +const _cVP = "createVolumePermission"; +const _cVTN = "clientVpnTargetNetworks"; +const _cWL = "cloudWatchLogs"; +const _cWLO = "cloudWatchLogOptions"; +const _ca = "category"; +const _ch = "checksum"; +const _ci = "cidr"; +const _co = "code"; +const _con = "connections"; +const _conf = "configured"; +const _cont = "context"; +const _cor = "cores"; +const _cou = "count"; +const _d = "destination"; +const _dA = "destinationArn"; +const _dAIT = "denyAllIgwTraffic"; +const _dART = "defaultAssociationRouteTable"; +const _dAS = "destinationAddressSet"; +const _dASe = "deprovisionedAddressSet"; +const _dASi = "disableApiStop"; +const _dAT = "disableApiTermination"; +const _dAe = "destinationAddress"; +const _dC = "destinationCidr"; +const _dCA = "domainCertificateArn"; +const _dCAR = "deliverCrossAccountRole"; +const _dCB = "destinationCidrBlock"; +const _dCS = "dhcpConfigurationSet"; +const _dCe = "defaultCores"; +const _dEKI = "dataEncryptionKeyId"; +const _dES = "dnsEntrySet"; +const _dFA = "defaultForAz"; +const _dHIS = "dedicatedHostIdSet"; +const _dHS = "dedicatedHostsSupported"; +const _dI = "directoryId"; +const _dICB = "destinationIpv6CidrBlock"; +const _dIF = "diskImageFormat"; +const _dIS = "diskImageSize"; +const _dIe = "deviceIndex"; +const _dIes = "destinationIp"; +const _dLEM = "deliverLogsErrorMessage"; +const _dLPA = "deliverLogsPermissionArn"; +const _dLS = "deliverLogsStatus"; +const _dMGM = "deregisteredMulticastGroupMembers"; +const _dMGS = "deregisteredMulticastGroupSources"; +const _dN = "deviceName"; +const _dNCI = "defaultNetworkCardIndex"; +const _dNII = "deregisteredNetworkInterfaceIds"; +const _dNn = "dnsName"; +const _dO = "dhcpOptions"; +const _dOI = "dhcpOptionsId"; +const _dOS = "dhcpOptionsSet"; +const _dOT = "deleteOnTermination"; +const _dOe = "destinationOptions"; +const _dOev = "deviceOptions"; +const _dOn = "dnsOptions"; +const _dP = "destinationPort"; +const _dPLI = "destinationPrefixListId"; +const _dPLS = "destinationPrefixListSet"; +const _dPR = "destinationPortRange"; +const _dPRS = "destinationPortRangeSet"; +const _dPRT = "defaultPropagationRouteTable"; +const _dPS = "destinationPortSet"; +const _dR = "discoveryRegion"; +const _dRDAI = "defaultResourceDiscoveryAssociationId"; +const _dRDI = "defaultResourceDiscoveryId"; +const _dRIT = "dnsRecordIpType"; +const _dRRV = "deleteReplacedRootVolume"; +const _dRS = "dataRetentionSupport"; +const _dRSa = "dataResponseSet"; +const _dRTA = "defaultRouteTableAssociation"; +const _dRTP = "defaultRouteTablePropagation"; +const _dRy = "dynamicRouting"; +const _dS = "dnsServer"; +const _dSCR = "deletedSubnetCidrReservation"; +const _dSe = "destinationSet"; +const _dSel = "deliveryStatus"; +const _dSeli = "deliveryStream"; +const _dSn = "dnsSupport"; +const _dT = "deletionTime"; +const _dTA = "dpdTimeoutAction"; +const _dTCT = "defaultTargetCapacityType"; +const _dTPC = "defaultThreadsPerCore"; +const _dTPT = "deviceTrustProviderType"; +const _dTS = "dpdTimeoutSeconds"; +const _dTe = "deprecationTime"; +const _dTel = "deleteTime"; +const _dTi = "disablingTime"; +const _dTis = "disabledTime"; +const _dV = "destinationVpc"; +const _dVC = "defaultVCpus"; +const _dVD = "deviceValidationDomain"; +const _dVN = "defaultVersionNumber"; +const _dVe = "defaultVersion"; +const _de = "description"; +const _dea = "deadline"; +const _def = "default"; +const _det = "details"; +const _dev = "device"; +const _di = "direction"; +const _dis = "disks"; +const _do = "domain"; +const _du = "duration"; +const _e = "egress"; +const _eA = "enableAcceleration"; +const _eB = "egressBytes"; +const _eC = "errorCode"; +const _eCTP = "excessCapacityTerminationPolicy"; +const _eCx = "explanationCode"; +const _eD = "endDate"; +const _eDH = "enableDnsHostnames"; +const _eDS = "enableDnsSupport"; +const _eDT = "endDateType"; +const _eDf = "effectiveDate"; +const _eDn = "enableDns64"; +const _eDnd = "endpointDomain"; +const _eDv = "eventDescription"; +const _eEBD = "ebsEncryptionByDefault"; +const _eFRS = "egressFilterRuleSet"; +const _eGAI = "elasticGpuAssociationId"; +const _eGAS = "elasticGpuAssociationState"; +const _eGASl = "elasticGpuAssociationSet"; +const _eGAT = "elasticGpuAssociationTime"; +const _eGH = "elasticGpuHealth"; +const _eGI = "elasticGpuId"; +const _eGS = "elasticGpuSet"; +const _eGSS = "elasticGpuSpecificationSet"; +const _eGSl = "elasticGpuState"; +const _eGT = "elasticGpuType"; +const _eH = "endHour"; +const _eI = "exchangeId"; +const _eIAA = "elasticInferenceAcceleratorArn"; +const _eIAAI = "elasticInferenceAcceleratorAssociationId"; +const _eIAAS = "elasticInferenceAcceleratorAssociationState"; +const _eIAASl = "elasticInferenceAcceleratorAssociationSet"; +const _eIAAT = "elasticInferenceAcceleratorAssociationTime"; +const _eIAS = "elasticInferenceAcceleratorSet"; +const _eITI = "exportImageTaskId"; +const _eITS = "exportImageTaskSet"; +const _eITSn = "encryptionInTransitSupported"; +const _eITSx = "excludedInstanceTypeSet"; +const _eIb = "ebsInfo"; +const _eIf = "efaInfo"; +const _eIv = "eventInformation"; +const _eIve = "eventId"; +const _eKKI = "encryptionKmsKeyId"; +const _eLADI = "enableLniAtDeviceIndex"; +const _eLBL = "elasticLoadBalancerListener"; +const _eM = "errorMessage"; +const _eNAUM = "enableNetworkAddressUsageMetrics"; +const _eO = "ebsOptimized"; +const _eOI = "ebsOptimizedInfo"; +const _eOIG = "egressOnlyInternetGateway"; +const _eOIGI = "egressOnlyInternetGatewayId"; +const _eOIGS = "egressOnlyInternetGatewaySet"; +const _eOS = "ebsOptimizedSupport"; +const _eOn = "enclaveOptions"; +const _eP = "egressPackets"; +const _ePS = "excludePathSet"; +const _eRNDAAAAR = "enableResourceNameDnsAAAARecord"; +const _eRNDAR = "enableResourceNameDnsARecord"; +const _eS = "ephemeralStorage"; +const _eSE = "enaSrdEnabled"; +const _eSS = "enaSrdSpecification"; +const _eSSn = "enaSrdSupported"; +const _eST = "eventSubType"; +const _eSUE = "enaSrdUdpEnabled"; +const _eSUS = "enaSrdUdpSpecification"; +const _eSf = "efaSupported"; +const _eSn = "encryptionSupport"; +const _eSna = "enaSupport"; +const _eSnt = "entrySet"; +const _eSr = "errorSet"; +const _eSv = "eventsSet"; +const _eSx = "explanationSet"; +const _eT = "expirationTime"; +const _eTI = "exportTaskId"; +const _eTLC = "enableTunnelLifecycleControl"; +const _eTS = "exportTaskSet"; +const _eTSi = "eipTagSet"; +const _eTSx = "exportToS3"; +const _eTn = "enablingTime"; +const _eTna = "enabledTime"; +const _eTnd = "endpointType"; +const _eTndi = "endTime"; +const _eTv = "eventType"; +const _eTx = "exportTask"; +const _eWD = "endWeekDay"; +const _eb = "ebs"; +const _en = "enabled"; +const _enc = "encrypted"; +const _end = "end"; +const _er = "error"; +const _ev = "event"; +const _f = "format"; +const _fA = "federatedAuthentication"; +const _fAD = "filterAtDestination"; +const _fAS = "filterAtSource"; +const _fAi = "firstAddress"; +const _fC = "fulfilledCapacity"; +const _fCRS = "fleetCapacityReservationSet"; +const _fCS = "findingComponentSet"; +const _fCa = "failureCode"; +const _fDN = "fipsDnsName"; +const _fE = "fipsEnabled"; +const _fF = "fileFormat"; +const _fFCS = "failedFleetCancellationSet"; +const _fFi = "findingsFound"; +const _fI = "findingId"; +const _fIA = "fpgaImageAttribute"; +const _fIAS = "filterInArnSet"; +const _fIGI = "fpgaImageGlobalId"; +const _fII = "fpgaImageId"; +const _fIS = "fleetInstanceSet"; +const _fISp = "fpgaImageSet"; +const _fIl = "fleetId"; +const _fIp = "fpgaInfo"; +const _fLI = "flowLogId"; +const _fLIS = "flowLogIdSet"; +const _fLISa = "fastLaunchImageSet"; +const _fLS = "flowLogSet"; +const _fLSl = "flowLogStatus"; +const _fM = "failureMessage"; +const _fODC = "fulfilledOnDemandCapacity"; +const _fP = "fromPort"; +const _fPCS = "forwardPathComponentSet"; +const _fPi = "fixedPrice"; +const _fQPDS = "failedQueuedPurchaseDeletionSet"; +const _fR = "failureReason"; +const _fRa = "fastRestored"; +const _fS = "fleetSet"; +const _fSR = "firewallStatelessRule"; +const _fSRS = "fastSnapshotRestoreSet"; +const _fSRSES = "fastSnapshotRestoreStateErrorSet"; +const _fSRi = "firewallStatefulRule"; +const _fSST = "firstSlotStartTime"; +const _fSl = "fleetState"; +const _fTE = "freeTierEligible"; +const _fa = "fault"; +const _fp = "fpgas"; +const _fr = "from"; +const _fre = "frequency"; +const _g = "group"; +const _gA = "groupArn"; +const _gAS = "gatewayAssociationState"; +const _gD = "groupDescription"; +const _gI = "gatewayId"; +const _gIA = "groupIpAddress"; +const _gIp = "gpuInfo"; +const _gIr = "groupId"; +const _gK = "greKey"; +const _gLBAS = "gatewayLoadBalancerArnSet"; +const _gLBEI = "gatewayLoadBalancerEndpointId"; +const _gM = "groupMember"; +const _gN = "groupName"; +const _gOI = "groupOwnerId"; +const _gS = "groupSet"; +const _gSr = "groupSource"; +const _gp = "gpus"; +const _gr = "groups"; +const _h = "hypervisor"; +const _hCP = "hiveCompatiblePartitions"; +const _hE = "httpEndpoint"; +const _hI = "hostId"; +const _hIS = "hostIdSet"; +const _hM = "hostMaintenance"; +const _hO = "hibernationOptions"; +const _hP = "hostProperties"; +const _hPI = "httpProtocolIpv6"; +const _hPRHL = "httpPutResponseHopLimit"; +const _hPo = "hourlyPrice"; +const _hR = "hostRecovery"; +const _hRGA = "hostResourceGroupArn"; +const _hRI = "hostReservationId"; +const _hRS = "historyRecordSet"; +const _hRSo = "hostReservationSet"; +const _hS = "hostSet"; +const _hSi = "hibernationSupported"; +const _hT = "httpTokens"; +const _hTo = "hostnameType"; +const _hZI = "hostedZoneId"; +const _i = "item"; +const _iA = "interfaceAssociation"; +const _iAC = "ipv6AddressCount"; +const _iAI = "inferenceAcceleratorInfo"; +const _iAPI = "ipv4AddressesPerInterface"; +const _iAPIp = "ipv6AddressesPerInterface"; +const _iAS = "interfaceAssociationSet"; +const _iASp = "ipv6AddressesSet"; +const _iAT = "ipAddressType"; +const _iATOI = "includeAllTagsOfInstance"; +const _iAp = "ipAddress"; +const _iApa = "ipamArn"; +const _iApv = "ipv6Address"; +const _iB = "ingressBytes"; +const _iBPAS = "imageBlockPublicAccessState"; +const _iC = "instanceCount"; +const _iCAS = "ipv6CidrAssociationSet"; +const _iCB = "ipv6CidrBlock"; +const _iCBA = "ipv6CidrBlockAssociation"; +const _iCBAS = "ipv6CidrBlockAssociationSet"; +const _iCBS = "ipv6CidrBlockState"; +const _iCBSp = "ipv6CidrBlockSet"; +const _iCBn = "insideCidrBlocks"; +const _iCE = "instanceConnectEndpoint"; +const _iCEA = "instanceConnectEndpointArn"; +const _iCEI = "instanceConnectEndpointId"; +const _iCES = "instanceConnectEndpointSet"; +const _iCSS = "instanceCreditSpecificationSet"; +const _iCn = "instanceCounts"; +const _iCp = "ipv6Cidr"; +const _iD = "imageData"; +const _iDAS = "ipamDiscoveredAccountSet"; +const _iDPAS = "ipamDiscoveredPublicAddressSet"; +const _iDRCS = "ipamDiscoveredResourceCidrSet"; +const _iDs = "isDefault"; +const _iE = "instanceExport"; +const _iEI = "instanceEventId"; +const _iEW = "instanceEventWindow"; +const _iEWI = "instanceEventWindowId"; +const _iEWS = "instanceEventWindowState"; +const _iEWSn = "instanceEventWindowSet"; +const _iEs = "isEgress"; +const _iF = "instanceFamily"; +const _iFCS = "instanceFamilyCreditSpecification"; +const _iFR = "iamFleetRole"; +const _iFRS = "ingressFilterRuleSet"; +const _iG = "internetGateway"; +const _iGI = "internetGatewayId"; +const _iGS = "internetGatewaySet"; +const _iGSn = "instanceGenerationSet"; +const _iH = "instanceHealth"; +const _iHn = "inboundHeader"; +const _iI = "instanceId"; +const _iIB = "instanceInterruptionBehavior"; +const _iIP = "iamInstanceProfile"; +const _iIPA = "iamInstanceProfileAssociation"; +const _iIPAS = "iamInstanceProfileAssociationSet"; +const _iIS = "instanceIdSet"; +const _iISB = "instanceInitiatedShutdownBehavior"; +const _iITS = "importImageTaskSet"; +const _iIm = "importInstance"; +const _iIma = "imageId"; +const _iIn = "instanceIds"; +const _iIp = "ipamId"; +const _iL = "imageLocation"; +const _iLn = "instanceLifecycle"; +const _iMC = "instanceMatchCriteria"; +const _iMO = "instanceMetadataOptions"; +const _iMOn = "instanceMarketOptions"; +const _iMT = "instanceMetadataTags"; +const _iMU = "importManifestUrl"; +const _iN = "ipv6Native"; +const _iOA = "imageOwnerAlias"; +const _iOI = "imageOwnerId"; +const _iOIn = "instanceOwnerId"; +const _iOIp = "ipOwnerId"; +const _iP = "instancePort"; +const _iPA = "ipamPoolAllocation"; +const _iPAI = "ipamPoolAllocationId"; +const _iPAS = "ipamPoolAllocationSet"; +const _iPAp = "ipamPoolArn"; +const _iPC = "ipamPoolCidr"; +const _iPCI = "ipamPoolCidrId"; +const _iPCS = "ipamPoolCidrSet"; +const _iPCp = "ipv4PrefixCount"; +const _iPCpv = "ipv6PrefixCount"; +const _iPE = "ipPermissionsEgress"; +const _iPI = "isPrimaryIpv6"; +const _iPIp = "ipamPoolId"; +const _iPR = "isPermanentRestore"; +const _iPS = "ipamPoolSet"; +const _iPSp = "ipv6PoolSet"; +const _iPSpv = "ipv4PrefixSet"; +const _iPSpvr = "ipv6PrefixSet"; +const _iPTUC = "instancePoolsToUseCount"; +const _iPn = "instancePlatform"; +const _iPng = "ingressPackets"; +const _iPnt = "interfacePermission"; +const _iPnte = "interfaceProtocol"; +const _iPo = "ioPerformance"; +const _iPp = "ipamPool"; +const _iPpe = "ipPermissions"; +const _iPpr = "ipProtocol"; +const _iPpv = "ipv4Prefix"; +const _iPpvo = "ipv6Pool"; +const _iPpvr = "ipv6Prefix"; +const _iPs = "isPublic"; +const _iPsr = "isPrimary"; +const _iR = "instanceRequirements"; +const _iRC = "ipamResourceCidr"; +const _iRCS = "ipamResourceCidrSet"; +const _iRD = "ipamResourceDiscovery"; +const _iRDA = "ipamResourceDiscoveryAssociation"; +const _iRDAA = "ipamResourceDiscoveryAssociationArn"; +const _iRDAI = "ipamResourceDiscoveryAssociationId"; +const _iRDAS = "ipamResourceDiscoveryAssociationSet"; +const _iRDAp = "ipamResourceDiscoveryArn"; +const _iRDI = "ipamResourceDiscoveryId"; +const _iRDR = "ipamResourceDiscoveryRegion"; +const _iRDS = "ipamResourceDiscoverySet"; +const _iRT = "ingressRouteTable"; +const _iRp = "ipamRegion"; +const _iRpa = "ipRanges"; +const _iRpv = "ipv6Ranges"; +const _iS = "ipamScope"; +const _iSA = "ipamScopeArn"; +const _iSI = "instanceStorageInfo"; +const _iSIp = "ipamScopeId"; +const _iSS = "instanceStatusSet"; +const _iSSn = "instanceStorageSupported"; +const _iSSp = "ipamScopeSet"; +const _iST = "ipamScopeType"; +const _iSTS = "importSnapshotTaskSet"; +const _iSg = "igmpv2Support"; +const _iSm = "imagesSet"; +const _iSma = "imageState"; +const _iSmag = "imageSet"; +const _iSmd = "imdsSupport"; +const _iSmp = "impairedSince"; +const _iSn = "instancesSet"; +const _iSns = "instanceSet"; +const _iSnst = "instanceState"; +const _iSnsta = "instanceStatus"; +const _iSp = "ipamSet"; +const _iSpv = "ipv6Supported"; +const _iSpvu = "ipv6Support"; +const _iT = "instanceType"; +const _iTA = "instanceTagAttribute"; +const _iTC = "icmpTypeCode"; +const _iTCn = "includeTrustContext"; +const _iTI = "importTaskId"; +const _iTKS = "instanceTagKeySet"; +const _iTOS = "instanceTypeOfferingSet"; +const _iTS = "instanceTypeSet"; +const _iTSS = "instanceTypeSpecificationSet"; +const _iTm = "imageType"; +const _iTn = "instanceTypes"; +const _iTns = "instanceTenancy"; +const _iTnt = "interfaceType"; +const _iU = "ipUsage"; +const _iUS = "instanceUsageSet"; +const _iV = "importVolume"; +const _iVE = "isValidExchange"; +const _iVS = "ikeVersionSet"; +const _id = "id"; +const _im = "image"; +const _in = "instance"; +const _ins = "instances"; +const _int = "interval"; +const _io = "iops"; +const _ip = "ipam"; +const _is = "issuer"; +const _k = "key"; +const _kDF = "kinesisDataFirehose"; +const _kF = "keyFingerprint"; +const _kI = "kernelId"; +const _kKA = "kmsKeyArn"; +const _kKI = "kmsKeyId"; +const _kM = "keyMaterial"; +const _kN = "keyName"; +const _kPI = "keyPairId"; +const _kS = "keySet"; +const _kT = "keyType"; +const _ke = "kernel"; +const _key = "keyword"; +const _l = "lifecycle"; +const _lA = "localAddress"; +const _lADT = "lastAttemptedDiscoveryTime"; +const _lAZ = "launchedAvailabilityZone"; +const _lAa = "lastAddress"; +const _lBA = "loadBalancerArn"; +const _lBAo = "localBgpAsn"; +const _lBC = "loadBalancersConfig"; +const _lBLP = "loadBalancerListenerPort"; +const _lBO = "loadBalancerOptions"; +const _lBP = "loadBalancerPort"; +const _lBS = "loadBalancerSet"; +const _lBT = "loadBalancerTarget"; +const _lBTG = "loadBalancerTargetGroup"; +const _lBTGS = "loadBalancerTargetGroupSet"; +const _lBTP = "loadBalancerTargetPort"; +const _lC = "loggingConfiguration"; +const _lCA = "licenseConfigurationArn"; +const _lCO = "lockCreatedOn"; +const _lCS = "loggingConfigurationSet"; +const _lD = "logDestination"; +const _lDST = "lockDurationStartTime"; +const _lDT = "logDestinationType"; +const _lDo = "lockDuration"; +const _lE = "logEnabled"; +const _lEO = "lockExpiresOn"; +const _lET = "lastEvaluatedTime"; +const _lEa = "lastError"; +const _lF = "logFormat"; +const _lFA = "lambdaFunctionArn"; +const _lG = "launchGroup"; +const _lGA = "logGroupArn"; +const _lGI = "localGatewayId"; +const _lGN = "logGroupName"; +const _lGRT = "localGatewayRouteTable"; +const _lGRTA = "localGatewayRouteTableArn"; +const _lGRTI = "localGatewayRouteTableId"; +const _lGRTS = "localGatewayRouteTableSet"; +const _lGRTVA = "localGatewayRouteTableVpcAssociation"; +const _lGRTVAI = "localGatewayRouteTableVpcAssociationId"; +const _lGRTVAS = "localGatewayRouteTableVpcAssociationSet"; +const _lGRTVIGA = "localGatewayRouteTableVirtualInterfaceGroupAssociation"; +const _lGRTVIGAI = "localGatewayRouteTableVirtualInterfaceGroupAssociationId"; +const _lGRTVIGAS = "localGatewayRouteTableVirtualInterfaceGroupAssociationSet"; +const _lGS = "localGatewaySet"; +const _lGVIGI = "localGatewayVirtualInterfaceGroupId"; +const _lGVIGS = "localGatewayVirtualInterfaceGroupSet"; +const _lGVII = "localGatewayVirtualInterfaceId"; +const _lGVIIS = "localGatewayVirtualInterfaceIdSet"; +const _lGVIS = "localGatewayVirtualInterfaceSet"; +const _lGo = "logGroup"; +const _lINC = "localIpv4NetworkCidr"; +const _lINCo = "localIpv6NetworkCidr"; +const _lLT = "lastLaunchedTime"; +const _lMA = "lastMaintenanceApplied"; +const _lO = "logOptions"; +const _lOF = "logOutputFormat"; +const _lP = "loadPermissions"; +const _lPa = "launchPermission"; +const _lS = "licenseSpecifications"; +const _lSC = "lastStatusChange"; +const _lSDT = "lastSuccessfulDiscoveryTime"; +const _lSTS = "localStorageTypeSet"; +const _lSa = "launchSpecifications"; +const _lSau = "launchSpecification"; +const _lSi = "licenseSet"; +const _lSo = "localStorage"; +const _lSoc = "lockState"; +const _lT = "launchTemplate"; +const _lTAO = "launchTemplateAndOverrides"; +const _lTC = "launchTemplateConfigs"; +const _lTD = "launchTemplateData"; +const _lTI = "launchTemplateId"; +const _lTN = "launchTemplateName"; +const _lTOS = "lastTieringOperationStatus"; +const _lTOSD = "lastTieringOperationStatusDetail"; +const _lTP = "lastTieringProgress"; +const _lTS = "launchTemplateSpecification"; +const _lTST = "lastTieringStartTime"; +const _lTV = "launchTemplateVersion"; +const _lTVS = "launchTemplateVersionSet"; +const _lTa = "launchTemplates"; +const _lTau = "launchTime"; +const _lTi = "licenseType"; +const _lTo = "locationType"; +const _lUT = "lastUpdatedTime"; +const _lV = "logVersion"; +const _lVN = "latestVersionNumber"; +const _lo = "location"; +const _loc = "locale"; +const _m = "min"; +const _mA = "mutualAuthentication"; +const _mAAA = "maintenanceAutoAppliedAfter"; +const _mAE = "multiAttachEnabled"; +const _mAI = "maxAggregationInterval"; +const _mASS = "movingAddressStatusSet"; +const _mAa = "macAddress"; +const _mBIM = "maximumBandwidthInMbps"; +const _mC = "missingComponent"; +const _mCOIOL = "mapCustomerOwnedIpOnLaunch"; +const _mD = "maintenanceDetails"; +const _mDA = "multicastDomainAssociations"; +const _mDK = "metaDataKey"; +const _mDV = "metaDataValue"; +const _mDe = "metaData"; +const _mE = "maxEntries"; +const _mEI = "maximumEfaInterfaces"; +const _mG = "multicastGroups"; +const _mGBPVC = "memoryGiBPerVCpu"; +const _mI = "maximumIops"; +const _mIe = "memoryInfo"; +const _mMB = "memoryMiB"; +const _mNC = "maximumNetworkCards"; +const _mNI = "maximumNetworkInterfaces"; +const _mO = "metadataOptions"; +const _mOSLRG = "memberOfServiceLinkedResourceGroup"; +const _mOa = "maintenanceOptions"; +const _mP = "maxPrice"; +const _mPIOL = "mapPublicIpOnLaunch"; +const _mPL = "maxParallelLaunches"; +const _mPS = "metricPointSet"; +const _mPSa = "matchPathSet"; +const _mR = "maxResults"; +const _mRS = "modificationResultSet"; +const _mS = "messageSet"; +const _mSa = "managementState"; +const _mSai = "maintenanceStrategies"; +const _mSo = "moveStatus"; +const _mSod = "modificationState"; +const _mSu = "multicastSupport"; +const _mT = "marketType"; +const _mTC = "minTargetCapacity"; +const _mTDID = "maxTermDurationInDays"; +const _mTDIDi = "minTermDurationInDays"; +const _mTIMB = "maximumThroughputInMBps"; +const _mTP = "maxTotalPrice"; +const _mTe = "memberType"; +const _mVE = "managesVpcEndpoints"; +const _ma = "max"; +const _mai = "main"; +const _man = "manufacturer"; +const _mar = "marketplace"; +const _me = "message"; +const _mem = "member"; +const _met = "metric"; +const _mo = "monitoring"; +const _mod = "mode"; +const _n = "name"; +const _nA = "networkAcl"; +const _nAAI = "networkAclAssociationId"; +const _nAI = "networkAclId"; +const _nAIe = "newAssociationId"; +const _nAS = "networkAclSet"; +const _nAo = "notAfter"; +const _nB = "notBefore"; +const _nBD = "notBeforeDeadline"; +const _nBG = "networkBorderGroup"; +const _nBGe = "networkBandwidthGbps"; +const _nC = "networkCards"; +const _nCI = "networkCardIndex"; +const _nD = "noDevice"; +const _nES = "nitroEnclavesSupport"; +const _nG = "natGateway"; +const _nGAS = "natGatewayAddressSet"; +const _nGI = "natGatewayId"; +const _nGS = "natGatewaySet"; +const _nI = "networkId"; +const _nIA = "networkInsightsAnalysis"; +const _nIAA = "networkInsightsAnalysisArn"; +const _nIAI = "networkInsightsAnalysisId"; +const _nIAS = "networkInsightsAccessScope"; +const _nIASA = "networkInsightsAccessScopeArn"; +const _nIASAA = "networkInsightsAccessScopeAnalysisArn"; +const _nIASAI = "networkInsightsAccessScopeAnalysisId"; +const _nIASAS = "networkInsightsAccessScopeAnalysisSet"; +const _nIASAe = "networkInsightsAccessScopeAnalysis"; +const _nIASC = "networkInsightsAccessScopeContent"; +const _nIASI = "networkInsightsAccessScopeId"; +const _nIASS = "networkInsightsAccessScopeSet"; +const _nIASe = "networkInsightsAnalysisSet"; +const _nIC = "networkInterfaceCount"; +const _nID = "networkInterfaceDescription"; +const _nII = "networkInterfaceId"; +const _nIIS = "networkInterfaceIdSet"; +const _nIO = "networkInterfaceOptions"; +const _nIOI = "networkInterfaceOwnerId"; +const _nIP = "networkInsightsPath"; +const _nIPA = "networkInsightsPathArn"; +const _nIPI = "networkInsightsPathId"; +const _nIPIe = "networkInterfacePermissionId"; +const _nIPS = "networkInsightsPathSet"; +const _nIPe = "networkInterfacePermissions"; +const _nIS = "networkInterfaceSet"; +const _nIe = "networkInterface"; +const _nIet = "networkInfo"; +const _nL = "netmaskLength"; +const _nLBA = "networkLoadBalancerArn"; +const _nLBAS = "networkLoadBalancerArnSet"; +const _nNS = "networkNodeSet"; +const _nP = "networkPerformance"; +const _nPF = "networkPathFound"; +const _nPe = "networkPlatform"; +const _nS = "nvmeSupport"; +const _nSS = "networkServiceSet"; +const _nSST = "nextSlotStartTime"; +const _nT = "networkType"; +const _nTI = "nitroTpmInfo"; +const _nTS = "nitroTpmSupport"; +const _nTe = "nextToken"; +const _o = "origin"; +const _oA = "outpostArn"; +const _oAr = "organizationArn"; +const _oAw = "ownerAlias"; +const _oC = "offeringClass"; +const _oDAS = "onDemandAllocationStrategy"; +const _oDFC = "onDemandFulfilledCapacity"; +const _oDMPPOLP = "onDemandMaxPricePercentageOverLowestPrice"; +const _oDMTP = "onDemandMaxTotalPrice"; +const _oDO = "onDemandOptions"; +const _oDS = "occurrenceDaySet"; +const _oDTC = "onDemandTargetCapacity"; +const _oH = "outboundHeader"; +const _oI = "ownerId"; +const _oIA = "outsideIpAddress"; +const _oIAT = "outsideIpAddressType"; +const _oIS = "optInStatus"; +const _oIf = "offeringId"; +const _oIr = "originalIops"; +const _oK = "objectKey"; +const _oMAE = "originalMultiAttachEnabled"; +const _oO = "oidcOptions"; +const _oRIWEA = "outputReservedInstancesWillExpireAt"; +const _oRS = "operatingRegionSet"; +const _oRTE = "occurrenceRelativeToEnd"; +const _oS = "offeringSet"; +const _oST = "oldestSampleTime"; +const _oSr = "originalSize"; +const _oSv = "overlapStatus"; +const _oT = "optimizingTime"; +const _oTf = "offeringType"; +const _oTr = "originalThroughput"; +const _oU = "occurrenceUnit"; +const _oUA = "organizationalUnitArn"; +const _oVT = "originalVolumeType"; +const _op = "options"; +const _ou = "output"; +const _ov = "overrides"; +const _ow = "owner"; +const _p = "principal"; +const _pA = "poolArn"; +const _pAI = "peeringAttachmentId"; +const _pAR = "poolAddressRange"; +const _pARS = "poolAddressRangeSet"; +const _pAe = "peerAddress"; +const _pAee = "peerAsn"; +const _pAu = "publiclyAdvertisable"; +const _pB = "provisionedBandwidth"; +const _pBA = "peerBgpAsn"; +const _pBIG = "peakBandwidthInGbps"; +const _pC = "productCodes"; +const _pCB = "poolCidrBlock"; +const _pCBS = "poolCidrBlockSet"; +const _pCI = "preserveClientIp"; +const _pCNI = "peerCoreNetworkId"; +const _pCS = "poolCidrSet"; +const _pCSS = "postureComplianceStatusSet"; +const _pCa = "partitionCount"; +const _pCo = "poolCount"; +const _pCr = "productCode"; +const _pD = "passwordData"; +const _pDE = "privateDnsEnabled"; +const _pDHGNS = "phase1DHGroupNumberSet"; +const _pDHGNSh = "phase2DHGroupNumberSet"; +const _pDN = "privateDnsName"; +const _pDNC = "privateDnsNameConfiguration"; +const _pDNO = "privateDnsNameOptions"; +const _pDNOOL = "privateDnsNameOptionsOnLaunch"; +const _pDNS = "privateDnsNameSet"; +const _pDNVS = "privateDnsNameVerificationState"; +const _pDNu = "publicDnsName"; +const _pDOFIRE = "privateDnsOnlyForInboundResolverEndpoint"; +const _pDRTI = "propagationDefaultRouteTableId"; +const _pDS = "pricingDetailsSet"; +const _pDSI = "publicDefaultScopeId"; +const _pDSIr = "privateDefaultScopeId"; +const _pDa = "paymentDue"; +const _pDl = "platformDetails"; +const _pDo = "policyDocument"; +const _pDoo = "poolDepth"; +const _pDr = "productDescription"; +const _pE = "policyEnabled"; +const _pEAS = "phase1EncryptionAlgorithmSet"; +const _pEASh = "phase2EncryptionAlgorithmSet"; +const _pF = "packetField"; +const _pFS = "previousFleetState"; +const _pG = "placementGroup"; +const _pGA = "placementGroupArn"; +const _pGI = "placementGroupInfo"; +const _pGS = "placementGroupSet"; +const _pHP = "perHourPartition"; +const _pHS = "packetHeaderStatement"; +const _pI = "publicIp"; +const _pIA = "privateIpAddress"; +const _pIAS = "privateIpAddressesSet"; +const _pIASh = "phase1IntegrityAlgorithmSet"; +const _pIASha = "phase2IntegrityAlgorithmSet"; +const _pIP = "publicIpv4Pool"; +const _pIPI = "publicIpv4PoolId"; +const _pIPS = "publicIpv4PoolSet"; +const _pIS = "publicIpSource"; +const _pIc = "pciId"; +const _pIo = "poolId"; +const _pIr = "processorInfo"; +const _pIri = "primaryIpv6"; +const _pIriv = "privateIp"; +const _pK = "publicKey"; +const _pL = "prefixList"; +const _pLA = "prefixListArn"; +const _pLAS = "prefixListAssociationSet"; +const _pLI = "prefixListId"; +const _pLIr = "prefixListIds"; +const _pLN = "prefixListName"; +const _pLOI = "prefixListOwnerId"; +const _pLS = "prefixListSet"; +const _pLSh = "phase1LifetimeSeconds"; +const _pLSha = "phase2LifetimeSeconds"; +const _pLa = "packetLength"; +const _pM = "pendingMaintenance"; +const _pN = "partitionNumber"; +const _pO = "paymentOption"; +const _pOe = "peeringOptions"; +const _pP = "progressPercentage"; +const _pR = "ptrRecord"; +const _pRN = "policyRuleNumber"; +const _pRNo = "policyReferenceName"; +const _pRS = "portRangeSet"; +const _pRU = "ptrRecordUpdate"; +const _pRa = "payerResponsibility"; +const _pRo = "portRange"; +const _pRol = "policyRule"; +const _pS = "previousState"; +const _pSET = "previousSlotEndTime"; +const _pSFRS = "previousSpotFleetRequestState"; +const _pSK = "preSharedKey"; +const _pSKU = "publicSigningKeyUrl"; +const _pSe = "permissionState"; +const _pSee = "peeringStatus"; +const _pSr = "principalSet"; +const _pSre = "previousStatus"; +const _pSri = "priceSchedules"; +const _pSro = "protocolSet"; +const _pT = "principalType"; +const _pTGI = "peerTransitGatewayId"; +const _pTr = "provisionTime"; +const _pTu = "purchaseToken"; +const _pVI = "primaryVpcId"; +const _pVS = "propagatingVgwSet"; +const _pZI = "parentZoneId"; +const _pZN = "parentZoneName"; +const _pe = "period"; +const _per = "permission"; +const _pl = "platform"; +const _pla = "placement"; +const _po = "port"; +const _pr = "protocol"; +const _pre = "prefix"; +const _pri = "priority"; +const _pric = "price"; +const _prim = "primary"; +const _pro = "progress"; +const _prop = "propagation"; +const _prov = "provisioned"; +const _pu = "public"; +const _pur = "purchase"; +const _r = "return"; +const _rA = "ruleAction"; +const _rBET = "recycleBinEnterTime"; +const _rBETe = "recycleBinExitTime"; +const _rC = "returnCode"; +const _rCS = "resourceComplianceStatus"; +const _rCe = "resourceCidr"; +const _rCec = "recurringCharges"; +const _rD = "restoreDuration"; +const _rDAC = "resourceDiscoveryAssociationCount"; +const _rDI = "ramDiskId"; +const _rDN = "rootDeviceName"; +const _rDS = "resourceDiscoveryStatus"; +const _rDT = "rootDeviceType"; +const _rE = "responseError"; +const _rET = "restoreExpiryTime"; +const _rEe = "regionEndpoint"; +const _rFP = "rekeyFuzzPercentage"; +const _rGA = "ruleGroupArn"; +const _rGI = "referencedGroupInfo"; +const _rGROPS = "ruleGroupRuleOptionsPairSet"; +const _rGT = "ruleGroupType"; +const _rGTPS = "ruleGroupTypePairSet"; +const _rHS = "requireHibernateSupport"; +const _rI = "regionInfo"; +const _rII = "reservedInstancesId"; +const _rIIe = "reservedInstanceId"; +const _rILI = "reservedInstancesListingId"; +const _rILS = "reservedInstancesListingsSet"; +const _rIMI = "reservedInstancesModificationId"; +const _rIMS = "reservedInstancesModificationsSet"; +const _rINC = "remoteIpv4NetworkCidr"; +const _rINCe = "remoteIpv6NetworkCidr"; +const _rIOI = "reservedInstancesOfferingId"; +const _rIOS = "reservedInstancesOfferingsSet"; +const _rIS = "reservedInstancesSet"; +const _rIVR = "reservedInstanceValueRollup"; +const _rIVS = "reservedInstanceValueSet"; +const _rIa = "ramdiskId"; +const _rIe = "resourceId"; +const _rIeq = "requesterId"; +const _rIes = "reservationId"; +const _rM = "requesterManaged"; +const _rMGM = "registeredMulticastGroupMembers"; +const _rMGS = "registeredMulticastGroupSources"; +const _rMTS = "rekeyMarginTimeSeconds"; +const _rN = "ruleNumber"; +const _rNII = "registeredNetworkInterfaceIds"; +const _rNe = "regionName"; +const _rNes = "resourceName"; +const _rNo = "roleName"; +const _rO = "resourceOwner"; +const _rOI = "resourceOwnerId"; +const _rOS = "ruleOptionSet"; +const _rOSe = "resourceOverlapStatus"; +const _rOo = "routeOrigin"; +const _rPCO = "requesterPeeringConnectionOptions"; +const _rPCS = "returnPathComponentSet"; +const _rR = "resourceRegion"; +const _rRVT = "replaceRootVolumeTask"; +const _rRVTI = "replaceRootVolumeTaskId"; +const _rRVTS = "replaceRootVolumeTaskSet"; +const _rS = "reservationSet"; +const _rST = "restoreStartTime"; +const _rSe = "replacementStrategy"; +const _rSes = "resourceStatement"; +const _rSeso = "resourceSet"; +const _rSo = "routeSet"; +const _rT = "reservationType"; +const _rTAI = "routeTableAssociationId"; +const _rTI = "routeTableId"; +const _rTIS = "routeTableIdSet"; +const _rTIe = "requesterTgwInfo"; +const _rTR = "routeTableRoute"; +const _rTS = "routeTableSet"; +const _rTSe = "resourceTagSet"; +const _rTSes = "resourceTypeSet"; +const _rTV = "remainingTotalValue"; +const _rTe = "resourceType"; +const _rTel = "releaseTime"; +const _rTeq = "requestTime"; +const _rTo = "routeTable"; +const _rUI = "replaceUnhealthyInstances"; +const _rUV = "remainingUpfrontValue"; +const _rV = "returnValue"; +const _rVI = "referencingVpcId"; +const _rVIe = "requesterVpcInfo"; +const _rVe = "reservationValue"; +const _rWS = "replayWindowSize"; +const _ra = "ramdisk"; +const _re = "result"; +const _rea = "reason"; +const _rec = "recurrence"; +const _reg = "region"; +const _req = "requested"; +const _res = "resource"; +const _ro = "route"; +const _rou = "routes"; +const _s = "source"; +const _sA = "sourceArn"; +const _sAS = "sourceAddressSet"; +const _sASu = "suggestedAccountSet"; +const _sAZ = "singleAvailabilityZone"; +const _sAo = "sourceAddress"; +const _sAt = "startupAction"; +const _sAu = "supportedArchitectures"; +const _sAub = "subnetArn"; +const _sB = "s3Bucket"; +const _sBM = "supportedBootModes"; +const _sC = "serviceConfiguration"; +const _sCA = "serverCertificateArn"; +const _sCAE = "serialConsoleAccessEnabled"; +const _sCB = "sourceCidrBlock"; +const _sCR = "subnetCidrReservation"; +const _sCRI = "subnetCidrReservationId"; +const _sCS = "serviceConfigurationSet"; +const _sCSIG = "sustainedClockSpeedInGhz"; +const _sCc = "scopeCount"; +const _sCn = "snapshotConfiguration"; +const _sD = "startDate"; +const _sDC = "sourceDestCheck"; +const _sDIH = "slotDurationInHours"; +const _sDLTVS = "successfullyDeletedLaunchTemplateVersionSet"; +const _sDS = "spotDatafeedSubscription"; +const _sDSe = "serviceDetailSet"; +const _sDSn = "snapshotDetailSet"; +const _sDp = "spreadDomain"; +const _sEL = "s3ExportLocation"; +const _sET = "sampledEndTime"; +const _sF = "supportedFeatures"; +const _sFCS = "successfulFleetCancellationSet"; +const _sFDS = "successfulFleetDeletionSet"; +const _sFRC = "spotFleetRequestConfig"; +const _sFRCS = "spotFleetRequestConfigSet"; +const _sFRI = "spotFleetRequestId"; +const _sFRS = "successfulFleetRequestSet"; +const _sFRSp = "spotFleetRequestState"; +const _sG = "securityGroup"; +const _sGFVS = "securityGroupForVpcSet"; +const _sGI = "securityGroupId"; +const _sGIS = "securityGroupIdSet"; +const _sGIe = "securityGroupIds"; +const _sGIec = "securityGroupInfo"; +const _sGR = "securityGroupRule"; +const _sGRI = "securityGroupRuleId"; +const _sGRS = "securityGroupRuleSet"; +const _sGRSe = "securityGroupReferenceSet"; +const _sGRSec = "securityGroupReferencingSupport"; +const _sGS = "securityGroupSet"; +const _sGe = "securityGroups"; +const _sH = "startHour"; +const _sI = "serviceId"; +const _sIAS = "scheduledInstanceAvailabilitySet"; +const _sIATS = "supportedIpAddressTypeSet"; +const _sICRS = "subnetIpv4CidrReservationSet"; +const _sICRSu = "subnetIpv6CidrReservationSet"; +const _sICSS = "successfulInstanceCreditSpecificationSet"; +const _sIGB = "sizeInGB"; +const _sII = "sourceInstanceId"; +const _sIIc = "scheduledInstanceId"; +const _sIMB = "sizeInMiB"; +const _sIP = "staleIpPermissions"; +const _sIPE = "staleIpPermissionsEgress"; +const _sIPI = "sourceIpamPoolId"; +const _sIRI = "spotInstanceRequestId"; +const _sIRS = "spotInstanceRequestSet"; +const _sIS = "scheduledInstanceSet"; +const _sISu = "subnetIdSet"; +const _sIT = "spotInstanceType"; +const _sITRS = "storeImageTaskResultSet"; +const _sITi = "singleInstanceType"; +const _sIn = "snapshotId"; +const _sIo = "sourceIp"; +const _sIu = "subnetId"; +const _sIub = "subnetIds"; +const _sK = "s3Key"; +const _sKo = "s3objectKey"; +const _sL = "s3Location"; +const _sLp = "spreadLevel"; +const _sM = "statusMessage"; +const _sMPPOLP = "spotMaxPricePercentageOverLowestPrice"; +const _sMS = "spotMaintenanceStrategies"; +const _sMTP = "spotMaxTotalPrice"; +const _sMt = "stateMessage"; +const _sN = "serviceName"; +const _sNS = "serviceNameSet"; +const _sNSr = "sriovNetSupport"; +const _sNe = "sequenceNumber"; +const _sNes = "sessionNumber"; +const _sO = "spotOptions"; +const _sP = "s3Prefix"; +const _sPA = "samlProviderArn"; +const _sPHS = "spotPriceHistorySet"; +const _sPI = "servicePermissionId"; +const _sPIAC = "secondaryPrivateIpAddressCount"; +const _sPLS = "sourcePrefixListSet"; +const _sPR = "sourcePortRange"; +const _sPRS = "sourcePortRangeSet"; +const _sPS = "sourcePortSet"; +const _sPSS = "spotPlacementScoreSet"; +const _sPp = "spotPrice"; +const _sQPDS = "successfulQueuedPurchaseDeletionSet"; +const _sR = "stateReason"; +const _sRDT = "supportedRootDeviceTypes"; +const _sRO = "staticRoutesOnly"; +const _sRT = "subnetRouteTable"; +const _sRe = "serviceResource"; +const _sRo = "sourceResource"; +const _sS = "snapshotSet"; +const _sSGS = "staleSecurityGroupSet"; +const _sSPU = "selfServicePortalUrl"; +const _sSS = "staticSourcesSupport"; +const _sSSPA = "selfServiceSamlProviderArn"; +const _sST = "sampledStartTime"; +const _sSe = "settingSet"; +const _sSer = "serviceState"; +const _sSo = "sourceSet"; +const _sSs = "sseSpecification"; +const _sSt = "statusSet"; +const _sSu = "subscriptionSet"; +const _sSub = "subnetSet"; +const _sSup = "supportedStrategies"; +const _sSy = "systemStatus"; +const _sT = "startTime"; +const _sTC = "spotTargetCapacity"; +const _sTD = "snapshotTaskDetail"; +const _sTFR = "storeTaskFailureReason"; +const _sTH = "sessionTimeoutHours"; +const _sTR = "stateTransitionReason"; +const _sTS = "storeTaskState"; +const _sTSS = "snapshotTierStatusSet"; +const _sTT = "stateTransitionTime"; +const _sTa = "sampleTime"; +const _sTe = "serviceType"; +const _sTo = "sourceType"; +const _sTp = "splitTunnel"; +const _sTs = "sseType"; +const _sTt = "storageTier"; +const _sUC = "supportedUsageClasses"; +const _sV = "sourceVpc"; +const _sVT = "supportedVirtualizationTypes"; +const _sVh = "shellVersion"; +const _sVu = "supportedVersions"; +const _sWD = "startWeekDay"; +const _s_ = "s3"; +const _sc = "scope"; +const _sco = "score"; +const _se = "service"; +const _si = "size"; +const _so = "sockets"; +const _sof = "software"; +const _st = "state"; +const _sta = "status"; +const _star = "start"; +const _stat = "statistic"; +const _sto = "storage"; +const _str = "strategy"; +const _su = "subnet"; +const _sub = "subnets"; +const _suc = "successful"; +const _succ = "success"; +const _t = "tenancy"; +const _tAAC = "totalAvailableAddressCount"; +const _tAC = "totalAddressCount"; +const _tAI = "transferAccountId"; +const _tC = "totalCapacity"; +const _tCS = "targetCapacitySpecification"; +const _tCUT = "targetCapacityUnitType"; +const _tCVR = "targetConfigurationValueRollup"; +const _tCVS = "targetConfigurationValueSet"; +const _tCa = "targetConfiguration"; +const _tCar = "targetCapacity"; +const _tD = "terminationDelay"; +const _tDr = "trafficDirection"; +const _tE = "targetEnvironment"; +const _tED = "termEndDate"; +const _tET = "tcpEstablishedTimeout"; +const _tEo = "tokenEndpoint"; +const _tFC = "totalFulfilledCapacity"; +const _tFMIMB = "totalFpgaMemoryInMiB"; +const _tG = "transitGateway"; +const _tGA = "transitGatewayAttachments"; +const _tGAI = "transitGatewayAttachmentId"; +const _tGAP = "transitGatewayAttachmentPropagations"; +const _tGAr = "transitGatewayAttachment"; +const _tGAra = "transitGatewayArn"; +const _tGAran = "transitGatewayAsn"; +const _tGArans = "transitGatewayAddress"; +const _tGC = "transitGatewayConnect"; +const _tGCB = "transitGatewayCidrBlocks"; +const _tGCP = "transitGatewayConnectPeer"; +const _tGCPI = "transitGatewayConnectPeerId"; +const _tGCPS = "transitGatewayConnectPeerSet"; +const _tGCS = "transitGatewayConnectSet"; +const _tGCa = "targetGroupsConfig"; +const _tGI = "transitGatewayId"; +const _tGMD = "transitGatewayMulticastDomain"; +const _tGMDA = "transitGatewayMulticastDomainArn"; +const _tGMDI = "transitGatewayMulticastDomainId"; +const _tGMDr = "transitGatewayMulticastDomains"; +const _tGMIMB = "totalGpuMemoryInMiB"; +const _tGOI = "transitGatewayOwnerId"; +const _tGPA = "transitGatewayPeeringAttachment"; +const _tGPAr = "transitGatewayPeeringAttachments"; +const _tGPLR = "transitGatewayPrefixListReference"; +const _tGPLRS = "transitGatewayPrefixListReferenceSet"; +const _tGPT = "transitGatewayPolicyTable"; +const _tGPTE = "transitGatewayPolicyTableEntries"; +const _tGPTI = "transitGatewayPolicyTableId"; +const _tGPTr = "transitGatewayPolicyTables"; +const _tGRT = "transitGatewayRouteTable"; +const _tGRTA = "transitGatewayRouteTableAnnouncement"; +const _tGRTAI = "transitGatewayRouteTableAnnouncementId"; +const _tGRTAr = "transitGatewayRouteTableAnnouncements"; +const _tGRTI = "transitGatewayRouteTableId"; +const _tGRTP = "transitGatewayRouteTablePropagations"; +const _tGRTR = "transitGatewayRouteTableRoute"; +const _tGRTr = "transitGatewayRouteTables"; +const _tGS = "transitGatewaySet"; +const _tGVA = "transitGatewayVpcAttachment"; +const _tGVAr = "transitGatewayVpcAttachments"; +const _tGa = "targetGroups"; +const _tHP = "totalHourlyPrice"; +const _tI = "tenantId"; +const _tIC = "totalInstanceCount"; +const _tICu = "tunnelInsideCidr"; +const _tII = "trunkInterfaceId"; +const _tIIC = "tunnelInsideIpv6Cidr"; +const _tIIV = "tunnelInsideIpVersion"; +const _tIMIMB = "totalInferenceMemoryInMiB"; +const _tIWE = "terminateInstancesWithExpiration"; +const _tIa = "targetIops"; +const _tLSGB = "totalLocalStorageGB"; +const _tMAE = "targetMultiAttachEnabled"; +const _tMF = "trafficMirrorFilter"; +const _tMFI = "trafficMirrorFilterId"; +const _tMFR = "trafficMirrorFilterRule"; +const _tMFRI = "trafficMirrorFilterRuleId"; +const _tMFS = "trafficMirrorFilterSet"; +const _tMS = "trafficMirrorSession"; +const _tMSI = "trafficMirrorSessionId"; +const _tMSS = "trafficMirrorSessionSet"; +const _tMT = "trafficMirrorTarget"; +const _tMTI = "trafficMirrorTargetId"; +const _tMTS = "trafficMirrorTargetSet"; +const _tNI = "targetNetworkId"; +const _tOAT = "transferOfferAcceptedTimestamp"; +const _tOET = "transferOfferExpirationTimestamp"; +const _tOS = "tunnelOptionSet"; +const _tP = "transportProtocol"; +const _tPC = "threadsPerCore"; +const _tPT = "trustProviderType"; +const _tPo = "toPort"; +const _tRC = "targetResourceCount"; +const _tRS = "throughResourceSet"; +const _tRSi = "timeRangeSet"; +const _tRTI = "targetRouteTableId"; +const _tS = "tagSet"; +const _tSD = "termStartDate"; +const _tSIGB = "totalSizeInGB"; +const _tSIH = "totalScheduledInstanceHours"; +const _tSS = "tagSpecificationSet"; +const _tST = "tieringStartTime"; +const _tSTa = "taskStartTime"; +const _tSa = "targetSubnet"; +const _tSar = "targetSize"; +const _tSas = "taskState"; +const _tSp = "tpmSupport"; +const _tT = "trafficType"; +const _tTC = "totalTargetCapacity"; +const _tTGAI = "transportTransitGatewayAttachmentId"; +const _tTa = "targetThroughput"; +const _tUP = "totalUpfrontPrice"; +const _tVC = "totalVCpus"; +const _tVT = "targetVolumeType"; +const _ta = "tags"; +const _tag = "tag"; +const _te = "term"; +const _th = "throughput"; +const _ti = "timestamp"; +const _tie = "tier"; +const _to = "to"; +const _ty = "type"; +const _u = "unsuccessful"; +const _uB = "userBucket"; +const _uD = "uefiData"; +const _uDLTVS = "unsuccessfullyDeletedLaunchTemplateVersionSet"; +const _uDp = "updatedDate"; +const _uDpd = "updateDate"; +const _uDs = "userData"; +const _uF = "upfrontFee"; +const _uFDS = "unsuccessfulFleetDeletionSet"; +const _uFRS = "unsuccessfulFleetRequestSet"; +const _uI = "userId"; +const _uIA = "unassignedIpv6Addresses"; +const _uIC = "usedInstanceCount"; +const _uICSS = "unsuccessfulInstanceCreditSpecificationSet"; +const _uIE = "userInfoEndpoint"; +const _uIPS = "unknownIpPermissionSet"; +const _uIPSn = "unassignedIpv6PrefixSet"; +const _uLI = "useLongIds"; +const _uLIA = "useLongIdsAggregated"; +const _uO = "usageOperation"; +const _uOUT = "usageOperationUpdateTime"; +const _uP = "upfrontPrice"; +const _uPS = "uploadPolicySignature"; +const _uPp = "uploadPolicy"; +const _uPs = "usagePrice"; +const _uS = "usageStrategy"; +const _uST = "udpStreamTimeout"; +const _uT = "updateTime"; +const _uTPT = "userTrustProviderType"; +const _uTd = "udpTimeout"; +const _ur = "url"; +const _us = "username"; +const _v = "value"; +const _vAE = "verifiedAccessEndpoint"; +const _vAEI = "verifiedAccessEndpointId"; +const _vAES = "verifiedAccessEndpointSet"; +const _vAG = "verifiedAccessGroup"; +const _vAGA = "verifiedAccessGroupArn"; +const _vAGI = "verifiedAccessGroupId"; +const _vAGS = "verifiedAccessGroupSet"; +const _vAI = "verifiedAccessInstance"; +const _vAII = "verifiedAccessInstanceId"; +const _vAIS = "verifiedAccessInstanceSet"; +const _vATP = "verifiedAccessTrustProvider"; +const _vATPI = "verifiedAccessTrustProviderId"; +const _vATPS = "verifiedAccessTrustProviderSet"; +const _vC = "vpnConnection"; +const _vCC = "vCpuCount"; +const _vCDSC = "vpnConnectionDeviceSampleConfiguration"; +const _vCDTI = "vpnConnectionDeviceTypeId"; +const _vCDTS = "vpnConnectionDeviceTypeSet"; +const _vCI = "vpnConnectionId"; +const _vCIp = "vCpuInfo"; +const _vCS = "vpnConnectionSet"; +const _vCa = "validCores"; +const _vD = "versionDescription"; +const _vE = "vpcEndpoint"; +const _vECI = "vpcEndpointConnectionId"; +const _vECS = "vpcEndpointConnectionSet"; +const _vEI = "vpcEndpointId"; +const _vEO = "vpcEndpointOwner"; +const _vEPS = "vpcEndpointPolicySupported"; +const _vES = "vpcEndpointService"; +const _vESp = "vpcEndpointSet"; +const _vESpc = "vpcEndpointState"; +const _vESpn = "vpnEcmpSupport"; +const _vET = "vpcEndpointType"; +const _vF = "validFrom"; +const _vFR = "validationFailureReason"; +const _vG = "vpnGateway"; +const _vGI = "vpnGatewayId"; +const _vGS = "vpnGatewaySet"; +const _vI = "vpcId"; +const _vIl = "vlanId"; +const _vIo = "volumeId"; +const _vM = "volumeModification"; +const _vMS = "volumeModificationSet"; +const _vN = "virtualName"; +const _vNI = "virtualNetworkId"; +const _vNe = "versionNumber"; +const _vOI = "vpcOwnerId"; +const _vP = "vpnProtocol"; +const _vPC = "vpcPeeringConnection"; +const _vPCI = "vpcPeeringConnectionId"; +const _vPCS = "vpcPeeringConnectionSet"; +const _vPp = "vpnPort"; +const _vS = "volumeSet"; +const _vSS = "volumeStatusSet"; +const _vSa = "valueSet"; +const _vSo = "volumeSize"; +const _vSol = "volumeStatus"; +const _vSp = "vpcSet"; +const _vT = "volumeType"; +const _vTOIA = "vpnTunnelOutsideIpAddress"; +const _vTPC = "validThreadsPerCore"; +const _vTg = "vgwTelemetry"; +const _vTi = "virtualizationType"; +const _vU = "validUntil"; +const _ve = "version"; +const _ven = "vendor"; +const _vl = "vlan"; +const _vo = "volumes"; +const _vol = "volume"; +const _vp = "vpc"; +const _vpc = "vpcs"; +const _w = "warning"; +const _wC = "weightedCapacity"; +const _wM = "warningMessage"; +const _we = "weight"; +const _zI = "zoneId"; +const _zN = "zoneName"; +const _zS = "zoneState"; +const _zT = "zoneType"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-efs/package.json b/clients/client-efs/package.json index b6967bee42f7..d1b1ede2997d 100644 --- a/clients/client-efs/package.json +++ b/clients/client-efs/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-efs/src/protocols/Aws_restJson1.ts b/clients/client-efs/src/protocols/Aws_restJson1.ts index 7bba4642f170..3b1fd3c5fc31 100644 --- a/clients/client-efs/src/protocols/Aws_restJson1.ts +++ b/clients/client-efs/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -166,12 +167,11 @@ export const se_CreateAccessPointCommand = async ( input: CreateAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points"; + b.bp("/2015-02-01/access-points"); let body: any; body = JSON.stringify( take(input, { @@ -182,15 +182,8 @@ export const se_CreateAccessPointCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -200,12 +193,11 @@ export const se_CreateFileSystemCommand = async ( input: CreateFileSystemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems"; + b.bp("/2015-02-01/file-systems"); let body: any; body = JSON.stringify( take(input, { @@ -220,15 +212,8 @@ export const se_CreateFileSystemCommand = async ( ThroughputMode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -238,12 +223,11 @@ export const se_CreateMountTargetCommand = async ( input: CreateMountTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets"; + b.bp("/2015-02-01/mount-targets"); let body: any; body = JSON.stringify( take(input, { @@ -253,15 +237,8 @@ export const se_CreateMountTargetCommand = async ( SubnetId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -271,36 +248,20 @@ export const se_CreateReplicationConfigurationCommand = async ( input: CreateReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceFileSystemId", - () => input.SourceFileSystemId!, - "{SourceFileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration"); + b.p("SourceFileSystemId", () => input.SourceFileSystemId!, "{SourceFileSystemId}", false); let body: any; body = JSON.stringify( take(input, { Destinations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -310,35 +271,20 @@ export const se_CreateTagsCommand = async ( input: CreateTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/create-tags/{FileSystemId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/create-tags/{FileSystemId}"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -348,28 +294,13 @@ export const se_DeleteAccessPointCommand = async ( input: DeleteAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points/{AccessPointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AccessPointId", - () => input.AccessPointId!, - "{AccessPointId}", - false - ); + b.bp("/2015-02-01/access-points/{AccessPointId}"); + b.p("AccessPointId", () => input.AccessPointId!, "{AccessPointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -379,28 +310,13 @@ export const se_DeleteFileSystemCommand = async ( input: DeleteFileSystemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems/{FileSystemId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -410,29 +326,13 @@ export const se_DeleteFileSystemPolicyCommand = async ( input: DeleteFileSystemPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/policy"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -442,28 +342,13 @@ export const se_DeleteMountTargetCommand = async ( input: DeleteMountTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets/{MountTargetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MountTargetId", - () => input.MountTargetId!, - "{MountTargetId}", - false - ); + b.bp("/2015-02-01/mount-targets/{MountTargetId}"); + b.p("MountTargetId", () => input.MountTargetId!, "{MountTargetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -473,29 +358,13 @@ export const se_DeleteReplicationConfigurationCommand = async ( input: DeleteReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceFileSystemId", - () => input.SourceFileSystemId!, - "{SourceFileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration"); + b.p("SourceFileSystemId", () => input.SourceFileSystemId!, "{SourceFileSystemId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -505,35 +374,20 @@ export const se_DeleteTagsCommand = async ( input: DeleteTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/delete-tags/{FileSystemId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/delete-tags/{FileSystemId}"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; body = JSON.stringify( take(input, { TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -543,27 +397,18 @@ export const se_DescribeAccessPointsCommand = async ( input: DescribeAccessPointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points"; + b.bp("/2015-02-01/access-points"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], - AccessPointId: [, input.AccessPointId!], - FileSystemId: [, input.FileSystemId!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], + [_API]: [, input[_API]!], + [_FSI]: [, input[_FSI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -573,12 +418,11 @@ export const se_DescribeAccountPreferencesCommand = async ( input: DescribeAccountPreferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/account-preferences"; + b.bp("/2015-02-01/account-preferences"); let body: any; body = JSON.stringify( take(input, { @@ -586,15 +430,8 @@ export const se_DescribeAccountPreferencesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -604,29 +441,13 @@ export const se_DescribeBackupPolicyCommand = async ( input: DescribeBackupPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/backup-policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -636,29 +457,13 @@ export const se_DescribeFileSystemPolicyCommand = async ( input: DescribeFileSystemPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/policy"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -668,27 +473,18 @@ export const se_DescribeFileSystemsCommand = async ( input: DescribeFileSystemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems"; + b.bp("/2015-02-01/file-systems"); const query: any = map({ - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - Marker: [, input.Marker!], - CreationToken: [, input.CreationToken!], - FileSystemId: [, input.FileSystemId!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_M]: [, input[_M]!], + [_CT]: [, input[_CT]!], + [_FSI]: [, input[_FSI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -698,29 +494,13 @@ export const se_DescribeLifecycleConfigurationCommand = async ( input: DescribeLifecycleConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -730,28 +510,19 @@ export const se_DescribeMountTargetsCommand = async ( input: DescribeMountTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets"; + b.bp("/2015-02-01/mount-targets"); const query: any = map({ - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - Marker: [, input.Marker!], - FileSystemId: [, input.FileSystemId!], - MountTargetId: [, input.MountTargetId!], - AccessPointId: [, input.AccessPointId!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_M]: [, input[_M]!], + [_FSI]: [, input[_FSI]!], + [_MTI]: [, input[_MTI]!], + [_API]: [, input[_API]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -761,29 +532,13 @@ export const se_DescribeMountTargetSecurityGroupsCommand = async ( input: DescribeMountTargetSecurityGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/mount-targets/{MountTargetId}/security-groups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MountTargetId", - () => input.MountTargetId!, - "{MountTargetId}", - false - ); + b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups"); + b.p("MountTargetId", () => input.MountTargetId!, "{MountTargetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -793,27 +548,17 @@ export const se_DescribeReplicationConfigurationsCommand = async ( input: DescribeReplicationConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/replication-configurations"; + b.bp("/2015-02-01/file-systems/replication-configurations"); const query: any = map({ - FileSystemId: [, input.FileSystemId!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_FSI]: [, input[_FSI]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -823,33 +568,17 @@ export const se_DescribeTagsCommand = async ( input: DescribeTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/tags/{FileSystemId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/tags/{FileSystemId}"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); const query: any = map({ - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - Marker: [, input.Marker!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_M]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -859,26 +588,17 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/resource-tags/{ResourceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/2015-02-01/resource-tags/{ResourceId}"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -888,36 +608,20 @@ export const se_ModifyMountTargetSecurityGroupsCommand = async ( input: ModifyMountTargetSecurityGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/mount-targets/{MountTargetId}/security-groups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MountTargetId", - () => input.MountTargetId!, - "{MountTargetId}", - false - ); + b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups"); + b.p("MountTargetId", () => input.MountTargetId!, "{MountTargetId}", false); let body: any; body = JSON.stringify( take(input, { SecurityGroups: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -927,27 +631,19 @@ export const se_PutAccountPreferencesCommand = async ( input: PutAccountPreferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/account-preferences"; + b.bp("/2015-02-01/account-preferences"); let body: any; body = JSON.stringify( take(input, { ResourceIdType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -957,36 +653,20 @@ export const se_PutBackupPolicyCommand = async ( input: PutBackupPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/backup-policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; body = JSON.stringify( take(input, { BackupPolicy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -996,21 +676,12 @@ export const se_PutFileSystemPolicyCommand = async ( input: PutFileSystemPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/policy"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1018,15 +689,8 @@ export const se_PutFileSystemPolicyCommand = async ( Policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1036,36 +700,20 @@ export const se_PutLifecycleConfigurationCommand = async ( input: PutLifecycleConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; body = JSON.stringify( take(input, { LifecyclePolicies: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1075,28 +723,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/resource-tags/{ResourceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/2015-02-01/resource-tags/{ResourceId}"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1106,28 +746,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/resource-tags/{ResourceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/2015-02-01/resource-tags/{ResourceId}"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1137,20 +768,12 @@ export const se_UpdateFileSystemCommand = async ( input: UpdateFileSystemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems/{FileSystemId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1158,15 +781,8 @@ export const se_UpdateFileSystemCommand = async ( ThroughputMode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1176,36 +792,20 @@ export const se_UpdateFileSystemProtectionCommand = async ( input: UpdateFileSystemProtectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-02-01/file-systems/{FileSystemId}/protection"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FileSystemId", - () => input.FileSystemId!, - "{FileSystemId}", - false - ); + b.bp("/2015-02-01/file-systems/{FileSystemId}/protection"); + b.p("FileSystemId", () => input.FileSystemId!, "{FileSystemId}", false); let body: any; body = JSON.stringify( take(input, { ReplicationOverwriteProtection: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3861,6 +3461,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _API = "AccessPointId"; +const _CT = "CreationToken"; +const _FSI = "FileSystemId"; +const _M = "Marker"; +const _MI = "MaxItems"; +const _MR = "MaxResults"; +const _MTI = "MountTargetId"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-eks-auth/package.json b/clients/client-eks-auth/package.json index af47d5b4bb48..5bb1fe6bc225 100644 --- a/clients/client-eks-auth/package.json +++ b/clients/client-eks-auth/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-eks-auth/src/protocols/Aws_restJson1.ts b/clients/client-eks-auth/src/protocols/Aws_restJson1.ts index f80242006642..83050e71c556 100644 --- a/clients/client-eks-auth/src/protocols/Aws_restJson1.ts +++ b/clients/client-eks-auth/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -45,29 +46,20 @@ export const se_AssumeRoleForPodIdentityCommand = async ( input: AssumeRoleForPodIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/assume-role-for-pod-identity"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/assume-role-for-pod-identity"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { token: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-eks/package.json b/clients/client-eks/package.json index b4bbc61e167f..a50652d3b624 100644 --- a/clients/client-eks/package.json +++ b/clients/client-eks/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-eks/src/protocols/Aws_restJson1.ts b/clients/client-eks/src/protocols/Aws_restJson1.ts index 2bae76b8fd8c..b54eb50336a2 100644 --- a/clients/client-eks/src/protocols/Aws_restJson1.ts +++ b/clients/client-eks/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -267,14 +268,12 @@ export const se_AssociateEncryptionConfigCommand = async ( input: AssociateEncryptionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/encryption-config/associate"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/encryption-config/associate"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -282,15 +281,8 @@ export const se_AssociateEncryptionConfigCommand = async ( encryptionConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -300,14 +292,12 @@ export const se_AssociateIdentityProviderConfigCommand = async ( input: AssociateIdentityProviderConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/identity-provider-configs/associate"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/identity-provider-configs/associate"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -316,15 +306,8 @@ export const se_AssociateIdentityProviderConfigCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -370,13 +353,12 @@ export const se_CreateAddonCommand = async ( input: CreateAddonCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/addons"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -389,15 +371,8 @@ export const se_CreateAddonCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -407,11 +382,11 @@ export const se_CreateClusterCommand = async ( input: CreateClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters"; + b.bp("/clusters"); let body: any; body = JSON.stringify( take(input, { @@ -428,15 +403,8 @@ export const se_CreateClusterCommand = async ( version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -446,12 +414,11 @@ export const se_CreateEksAnywhereSubscriptionCommand = async ( input: CreateEksAnywhereSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions"; + b.bp("/eks-anywhere-subscriptions"); let body: any; body = JSON.stringify( take(input, { @@ -464,15 +431,8 @@ export const se_CreateEksAnywhereSubscriptionCommand = async ( term: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -482,13 +442,12 @@ export const se_CreateFargateProfileCommand = async ( input: CreateFargateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/fargate-profiles"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -500,15 +459,8 @@ export const se_CreateFargateProfileCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -518,13 +470,12 @@ export const se_CreateNodegroupCommand = async ( input: CreateNodegroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/node-groups"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -547,15 +498,8 @@ export const se_CreateNodegroupCommand = async ( version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -565,14 +509,12 @@ export const se_CreatePodIdentityAssociationCommand = async ( input: CreatePodIdentityAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/pod-identity-associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/pod-identity-associations"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -583,15 +525,8 @@ export const se_CreatePodIdentityAssociationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -634,27 +569,17 @@ export const se_DeleteAddonCommand = async ( input: DeleteAddonCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/addons/{addonName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName!, "{addonName}", false); + b.bp("/clusters/{clusterName}/addons/{addonName}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("addonName", () => input.addonName!, "{addonName}", false); const query: any = map({ - preserve: [() => input.preserve !== void 0, () => input.preserve!.toString()], + [_p]: [() => input.preserve !== void 0, () => input[_p]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -664,20 +589,13 @@ export const se_DeleteClusterCommand = async ( input: DeleteClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/clusters/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -687,21 +605,13 @@ export const se_DeleteEksAnywhereSubscriptionCommand = async ( input: DeleteEksAnywhereSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/eks-anywhere-subscriptions/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -711,30 +621,14 @@ export const se_DeleteFargateProfileCommand = async ( input: DeleteFargateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "fargateProfileName", - () => input.fargateProfileName!, - "{fargateProfileName}", - false - ); + b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("fargateProfileName", () => input.fargateProfileName!, "{fargateProfileName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -744,30 +638,14 @@ export const se_DeleteNodegroupCommand = async ( input: DeleteNodegroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/node-groups/{nodegroupName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nodegroupName", - () => input.nodegroupName!, - "{nodegroupName}", - false - ); + b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("nodegroupName", () => input.nodegroupName!, "{nodegroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -777,30 +655,14 @@ export const se_DeletePodIdentityAssociationCommand = async ( input: DeletePodIdentityAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/pod-identity-associations/{associationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); + b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("associationId", () => input.associationId!, "{associationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -810,21 +672,13 @@ export const se_DeregisterClusterCommand = async ( input: DeregisterClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/cluster-registrations/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -867,23 +721,14 @@ export const se_DescribeAddonCommand = async ( input: DescribeAddonCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/addons/{addonName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName!, "{addonName}", false); + b.bp("/clusters/{clusterName}/addons/{addonName}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("addonName", () => input.addonName!, "{addonName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -893,25 +738,16 @@ export const se_DescribeAddonConfigurationCommand = async ( input: DescribeAddonConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/configuration-schemas"; + b.bp("/addons/configuration-schemas"); const query: any = map({ - addonName: [, __expectNonNull(input.addonName!, `addonName`)], - addonVersion: [, __expectNonNull(input.addonVersion!, `addonVersion`)], + [_aN]: [, __expectNonNull(input[_aN]!, `addonName`)], + [_aV]: [, __expectNonNull(input[_aV]!, `addonVersion`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -921,30 +757,21 @@ export const se_DescribeAddonVersionsCommand = async ( input: DescribeAddonVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions"; + b.bp("/addons/supported-versions"); const query: any = map({ - kubernetesVersion: [, input.kubernetesVersion!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - addonName: [, input.addonName!], - types: [() => input.types !== void 0, () => (input.types! || []).map((_entry) => _entry as any)], - publishers: [() => input.publishers !== void 0, () => (input.publishers! || []).map((_entry) => _entry as any)], - owners: [() => input.owners !== void 0, () => (input.owners! || []).map((_entry) => _entry as any)], + [_kV]: [, input[_kV]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_aN]: [, input[_aN]!], + [_t]: [() => input.types !== void 0, () => (input[_t]! || []).map((_entry) => _entry as any)], + [_pu]: [() => input.publishers !== void 0, () => (input[_pu]! || []).map((_entry) => _entry as any)], + [_o]: [() => input.owners !== void 0, () => (input[_o]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -954,20 +781,13 @@ export const se_DescribeClusterCommand = async ( input: DescribeClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/clusters/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -977,21 +797,13 @@ export const se_DescribeEksAnywhereSubscriptionCommand = async ( input: DescribeEksAnywhereSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/eks-anywhere-subscriptions/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1001,30 +813,14 @@ export const se_DescribeFargateProfileCommand = async ( input: DescribeFargateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "fargateProfileName", - () => input.fargateProfileName!, - "{fargateProfileName}", - false - ); + b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("fargateProfileName", () => input.fargateProfileName!, "{fargateProfileName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1034,29 +830,20 @@ export const se_DescribeIdentityProviderConfigCommand = async ( input: DescribeIdentityProviderConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/identity-provider-configs/describe"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/identity-provider-configs/describe"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { identityProviderConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1066,30 +853,14 @@ export const se_DescribeNodegroupCommand = async ( input: DescribeNodegroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/node-groups/{nodegroupName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nodegroupName", - () => input.nodegroupName!, - "{nodegroupName}", - false - ); + b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("nodegroupName", () => input.nodegroupName!, "{nodegroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1099,30 +870,14 @@ export const se_DescribePodIdentityAssociationCommand = async ( input: DescribePodIdentityAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/pod-identity-associations/{associationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); + b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("associationId", () => input.associationId!, "{associationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1132,27 +887,18 @@ export const se_DescribeUpdateCommand = async ( input: DescribeUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates/{updateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "updateId", () => input.updateId!, "{updateId}", false); + b.bp("/clusters/{name}/updates/{updateId}"); + b.p("name", () => input.name!, "{name}", false); + b.p("updateId", () => input.updateId!, "{updateId}", false); const query: any = map({ - nodegroupName: [, input.nodegroupName!], - addonName: [, input.addonName!], + [_nN]: [, input[_nN]!], + [_aN]: [, input[_aN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1196,14 +942,12 @@ export const se_DisassociateIdentityProviderConfigCommand = async ( input: DisassociateIdentityProviderConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/identity-provider-configs/disassociate"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/identity-provider-configs/disassociate"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1211,15 +955,8 @@ export const se_DisassociateIdentityProviderConfigCommand = async ( identityProviderConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1280,35 +1017,26 @@ export const se_ListAccessPoliciesCommand = async ( }; /** - * serializeAws_restJson1ListAddonsCommand - */ -export const se_ListAddonsCommand = async ( - input: ListAddonsCommandInput, - context: __SerdeContext -): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - }); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; - -/** + * serializeAws_restJson1ListAddonsCommand + */ +export const se_ListAddonsCommand = async ( + input: ListAddonsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/clusters/{clusterName}/addons"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + const query: any = map({ + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + }); + let body: any; + b.m("GET").h(headers).q(query).b(body); + return b.build(); +}; + +/** * serializeAws_restJson1ListAssociatedAccessPoliciesCommand */ export const se_ListAssociatedAccessPoliciesCommand = async ( @@ -1353,25 +1081,17 @@ export const se_ListClustersCommand = async ( input: ListClustersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters"; + b.bp("/clusters"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - include: [() => input.include !== void 0, () => (input.include! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_i]: [() => input.include !== void 0, () => (input[_i]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1381,29 +1101,17 @@ export const se_ListEksAnywhereSubscriptionsCommand = async ( input: ListEksAnywhereSubscriptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions"; + b.bp("/eks-anywhere-subscriptions"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - includeStatus: [ - () => input.includeStatus !== void 0, - () => (input.includeStatus! || []).map((_entry) => _entry as any), - ], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_iS]: [() => input.includeStatus !== void 0, () => (input[_iS]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1413,26 +1121,17 @@ export const se_ListFargateProfilesCommand = async ( input: ListFargateProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/fargate-profiles"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1442,27 +1141,17 @@ export const se_ListIdentityProviderConfigsCommand = async ( input: ListIdentityProviderConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/identity-provider-configs"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/identity-provider-configs"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1472,26 +1161,17 @@ export const se_ListNodegroupsCommand = async ( input: ListNodegroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/node-groups"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1501,29 +1181,19 @@ export const se_ListPodIdentityAssociationsCommand = async ( input: ListPodIdentityAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/pod-identity-associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/clusters/{clusterName}/pod-identity-associations"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); const query: any = map({ - namespace: [, input.namespace!], - serviceAccount: [, input.serviceAccount!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_n]: [, input[_n]!], + [_sA]: [, input[_sA]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1533,20 +1203,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1556,27 +1219,19 @@ export const se_ListUpdatesCommand = async ( input: ListUpdatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/clusters/{name}/updates"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - nodegroupName: [, input.nodegroupName!], - addonName: [, input.addonName!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nN]: [, input[_nN]!], + [_aN]: [, input[_aN]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1586,11 +1241,11 @@ export const se_RegisterClusterCommand = async ( input: RegisterClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations"; + b.bp("/cluster-registrations"); let body: any; body = JSON.stringify( take(input, { @@ -1600,15 +1255,8 @@ export const se_RegisterClusterCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1618,27 +1266,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1648,27 +1289,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1720,15 +1353,13 @@ export const se_UpdateAddonCommand = async ( input: UpdateAddonCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/addons/{addonName}/update"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName!, "{addonName}", false); + b.bp("/clusters/{clusterName}/addons/{addonName}/update"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("addonName", () => input.addonName!, "{addonName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1739,15 +1370,8 @@ export const se_UpdateAddonCommand = async ( serviceAccountRoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1757,13 +1381,12 @@ export const se_UpdateClusterConfigCommand = async ( input: UpdateClusterConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/update-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/clusters/{name}/update-config"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1773,15 +1396,8 @@ export const se_UpdateClusterConfigCommand = async ( resourcesVpcConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1791,12 +1407,12 @@ export const se_UpdateClusterVersionCommand = async ( input: UpdateClusterVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/clusters/{name}/updates"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1804,15 +1420,8 @@ export const se_UpdateClusterVersionCommand = async ( version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1822,13 +1431,12 @@ export const se_UpdateEksAnywhereSubscriptionCommand = async ( input: UpdateEksAnywhereSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/eks-anywhere-subscriptions/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -1836,15 +1444,8 @@ export const se_UpdateEksAnywhereSubscriptionCommand = async ( clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1854,22 +1455,13 @@ export const se_UpdateNodegroupConfigCommand = async ( input: UpdateNodegroupConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/node-groups/{nodegroupName}/update-config"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nodegroupName", - () => input.nodegroupName!, - "{nodegroupName}", - false - ); + b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-config"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("nodegroupName", () => input.nodegroupName!, "{nodegroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1880,15 +1472,8 @@ export const se_UpdateNodegroupConfigCommand = async ( updateConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1898,22 +1483,13 @@ export const se_UpdateNodegroupVersionCommand = async ( input: UpdateNodegroupVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/node-groups/{nodegroupName}/update-version"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nodegroupName", - () => input.nodegroupName!, - "{nodegroupName}", - false - ); + b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-version"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("nodegroupName", () => input.nodegroupName!, "{nodegroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1924,15 +1500,8 @@ export const se_UpdateNodegroupVersionCommand = async ( version: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1942,22 +1511,13 @@ export const se_UpdatePodIdentityAssociationCommand = async ( input: UpdatePodIdentityAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/clusters/{clusterName}/pod-identity-associations/{associationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "associationId", - () => input.associationId!, - "{associationId}", - false - ); + b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}"); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); + b.p("associationId", () => input.associationId!, "{associationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1965,15 +1525,8 @@ export const se_UpdatePodIdentityAssociationCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5807,6 +5360,22 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aN = "addonName"; +const _aV = "addonVersion"; +const _i = "include"; +const _iS = "includeStatus"; +const _kV = "kubernetesVersion"; +const _mR = "maxResults"; +const _n = "namespace"; +const _nN = "nodegroupName"; +const _nT = "nextToken"; +const _o = "owners"; +const _p = "preserve"; +const _pu = "publishers"; +const _sA = "serviceAccount"; +const _t = "types"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts b/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts index d7ab8647b9c4..1ea3b85195f3 100644 --- a/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts +++ b/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts @@ -349,8 +349,8 @@ export const se_AbortEnvironmentUpdateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AbortEnvironmentUpdateMessage(input, context), - Action: "AbortEnvironmentUpdate", - Version: "2010-12-01", + [_A]: _AEU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -366,8 +366,8 @@ export const se_ApplyEnvironmentManagedActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ApplyEnvironmentManagedActionRequest(input, context), - Action: "ApplyEnvironmentManagedAction", - Version: "2010-12-01", + [_A]: _AEMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -383,8 +383,8 @@ export const se_AssociateEnvironmentOperationsRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateEnvironmentOperationsRoleMessage(input, context), - Action: "AssociateEnvironmentOperationsRole", - Version: "2010-12-01", + [_A]: _AEOR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -400,8 +400,8 @@ export const se_CheckDNSAvailabilityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CheckDNSAvailabilityMessage(input, context), - Action: "CheckDNSAvailability", - Version: "2010-12-01", + [_A]: _CDNSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -417,8 +417,8 @@ export const se_ComposeEnvironmentsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ComposeEnvironmentsMessage(input, context), - Action: "ComposeEnvironments", - Version: "2010-12-01", + [_A]: _CE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -434,8 +434,8 @@ export const se_CreateApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateApplicationMessage(input, context), - Action: "CreateApplication", - Version: "2010-12-01", + [_A]: _CA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -451,8 +451,8 @@ export const se_CreateApplicationVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateApplicationVersionMessage(input, context), - Action: "CreateApplicationVersion", - Version: "2010-12-01", + [_A]: _CAV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -468,8 +468,8 @@ export const se_CreateConfigurationTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateConfigurationTemplateMessage(input, context), - Action: "CreateConfigurationTemplate", - Version: "2010-12-01", + [_A]: _CCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -485,8 +485,8 @@ export const se_CreateEnvironmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateEnvironmentMessage(input, context), - Action: "CreateEnvironment", - Version: "2010-12-01", + [_A]: _CEr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -502,8 +502,8 @@ export const se_CreatePlatformVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreatePlatformVersionRequest(input, context), - Action: "CreatePlatformVersion", - Version: "2010-12-01", + [_A]: _CPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -517,8 +517,8 @@ export const se_CreateStorageLocationCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "CreateStorageLocation", - Version: "2010-12-01", + [_A]: _CSL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -534,8 +534,8 @@ export const se_DeleteApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteApplicationMessage(input, context), - Action: "DeleteApplication", - Version: "2010-12-01", + [_A]: _DA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -551,8 +551,8 @@ export const se_DeleteApplicationVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteApplicationVersionMessage(input, context), - Action: "DeleteApplicationVersion", - Version: "2010-12-01", + [_A]: _DAV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -568,8 +568,8 @@ export const se_DeleteConfigurationTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteConfigurationTemplateMessage(input, context), - Action: "DeleteConfigurationTemplate", - Version: "2010-12-01", + [_A]: _DCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -585,8 +585,8 @@ export const se_DeleteEnvironmentConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEnvironmentConfigurationMessage(input, context), - Action: "DeleteEnvironmentConfiguration", - Version: "2010-12-01", + [_A]: _DEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -602,8 +602,8 @@ export const se_DeletePlatformVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeletePlatformVersionRequest(input, context), - Action: "DeletePlatformVersion", - Version: "2010-12-01", + [_A]: _DPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -617,8 +617,8 @@ export const se_DescribeAccountAttributesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeAccountAttributes", - Version: "2010-12-01", + [_A]: _DAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -634,8 +634,8 @@ export const se_DescribeApplicationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeApplicationsMessage(input, context), - Action: "DescribeApplications", - Version: "2010-12-01", + [_A]: _DAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -651,8 +651,8 @@ export const se_DescribeApplicationVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeApplicationVersionsMessage(input, context), - Action: "DescribeApplicationVersions", - Version: "2010-12-01", + [_A]: _DAVe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -668,8 +668,8 @@ export const se_DescribeConfigurationOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeConfigurationOptionsMessage(input, context), - Action: "DescribeConfigurationOptions", - Version: "2010-12-01", + [_A]: _DCO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -685,8 +685,8 @@ export const se_DescribeConfigurationSettingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeConfigurationSettingsMessage(input, context), - Action: "DescribeConfigurationSettings", - Version: "2010-12-01", + [_A]: _DCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -702,8 +702,8 @@ export const se_DescribeEnvironmentHealthCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEnvironmentHealthRequest(input, context), - Action: "DescribeEnvironmentHealth", - Version: "2010-12-01", + [_A]: _DEH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -719,8 +719,8 @@ export const se_DescribeEnvironmentManagedActionHistoryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEnvironmentManagedActionHistoryRequest(input, context), - Action: "DescribeEnvironmentManagedActionHistory", - Version: "2010-12-01", + [_A]: _DEMAH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -736,8 +736,8 @@ export const se_DescribeEnvironmentManagedActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEnvironmentManagedActionsRequest(input, context), - Action: "DescribeEnvironmentManagedActions", - Version: "2010-12-01", + [_A]: _DEMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -753,8 +753,8 @@ export const se_DescribeEnvironmentResourcesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEnvironmentResourcesMessage(input, context), - Action: "DescribeEnvironmentResources", - Version: "2010-12-01", + [_A]: _DER, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -770,8 +770,8 @@ export const se_DescribeEnvironmentsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEnvironmentsMessage(input, context), - Action: "DescribeEnvironments", - Version: "2010-12-01", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -787,8 +787,8 @@ export const se_DescribeEventsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventsMessage(input, context), - Action: "DescribeEvents", - Version: "2010-12-01", + [_A]: _DEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -804,8 +804,8 @@ export const se_DescribeInstancesHealthCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInstancesHealthRequest(input, context), - Action: "DescribeInstancesHealth", - Version: "2010-12-01", + [_A]: _DIH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -821,8 +821,8 @@ export const se_DescribePlatformVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePlatformVersionRequest(input, context), - Action: "DescribePlatformVersion", - Version: "2010-12-01", + [_A]: _DPVe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -838,8 +838,8 @@ export const se_DisassociateEnvironmentOperationsRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateEnvironmentOperationsRoleMessage(input, context), - Action: "DisassociateEnvironmentOperationsRole", - Version: "2010-12-01", + [_A]: _DEOR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -853,8 +853,8 @@ export const se_ListAvailableSolutionStacksCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "ListAvailableSolutionStacks", - Version: "2010-12-01", + [_A]: _LASS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -870,8 +870,8 @@ export const se_ListPlatformBranchesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPlatformBranchesRequest(input, context), - Action: "ListPlatformBranches", - Version: "2010-12-01", + [_A]: _LPB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -887,8 +887,8 @@ export const se_ListPlatformVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPlatformVersionsRequest(input, context), - Action: "ListPlatformVersions", - Version: "2010-12-01", + [_A]: _LPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -904,8 +904,8 @@ export const se_ListTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTagsForResourceMessage(input, context), - Action: "ListTagsForResource", - Version: "2010-12-01", + [_A]: _LTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -921,8 +921,8 @@ export const se_RebuildEnvironmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebuildEnvironmentMessage(input, context), - Action: "RebuildEnvironment", - Version: "2010-12-01", + [_A]: _RE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -938,8 +938,8 @@ export const se_RequestEnvironmentInfoCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RequestEnvironmentInfoMessage(input, context), - Action: "RequestEnvironmentInfo", - Version: "2010-12-01", + [_A]: _REI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -955,8 +955,8 @@ export const se_RestartAppServerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestartAppServerMessage(input, context), - Action: "RestartAppServer", - Version: "2010-12-01", + [_A]: _RAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -972,8 +972,8 @@ export const se_RetrieveEnvironmentInfoCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RetrieveEnvironmentInfoMessage(input, context), - Action: "RetrieveEnvironmentInfo", - Version: "2010-12-01", + [_A]: _REIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -989,8 +989,8 @@ export const se_SwapEnvironmentCNAMEsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SwapEnvironmentCNAMEsMessage(input, context), - Action: "SwapEnvironmentCNAMEs", - Version: "2010-12-01", + [_A]: _SECNAME, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1006,8 +1006,8 @@ export const se_TerminateEnvironmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TerminateEnvironmentMessage(input, context), - Action: "TerminateEnvironment", - Version: "2010-12-01", + [_A]: _TE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1023,8 +1023,8 @@ export const se_UpdateApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateApplicationMessage(input, context), - Action: "UpdateApplication", - Version: "2010-12-01", + [_A]: _UA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1040,8 +1040,8 @@ export const se_UpdateApplicationResourceLifecycleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateApplicationResourceLifecycleMessage(input, context), - Action: "UpdateApplicationResourceLifecycle", - Version: "2010-12-01", + [_A]: _UARL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1057,8 +1057,8 @@ export const se_UpdateApplicationVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateApplicationVersionMessage(input, context), - Action: "UpdateApplicationVersion", - Version: "2010-12-01", + [_A]: _UAV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1074,8 +1074,8 @@ export const se_UpdateConfigurationTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateConfigurationTemplateMessage(input, context), - Action: "UpdateConfigurationTemplate", - Version: "2010-12-01", + [_A]: _UCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1091,8 +1091,8 @@ export const se_UpdateEnvironmentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateEnvironmentMessage(input, context), - Action: "UpdateEnvironment", - Version: "2010-12-01", + [_A]: _UE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1108,8 +1108,8 @@ export const se_UpdateTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateTagsForResourceMessage(input, context), - Action: "UpdateTagsForResource", - Version: "2010-12-01", + [_A]: _UTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1125,8 +1125,8 @@ export const se_ValidateConfigurationSettingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ValidateConfigurationSettingsMessage(input, context), - Action: "ValidateConfigurationSettings", - Version: "2010-12-01", + [_A]: _VCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3581,11 +3581,11 @@ const de_TooManyTagsExceptionRes = async ( */ const se_AbortEnvironmentUpdateMessage = (input: AbortEnvironmentUpdateMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -3614,11 +3614,11 @@ const se_ApplicationResourceLifecycleConfig = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ServiceRole != null) { - entries["ServiceRole"] = input.ServiceRole; + if (input[_SR] != null) { + entries[_SR] = input[_SR]; } - if (input.VersionLifecycleConfig != null) { - const memberEntries = se_ApplicationVersionLifecycleConfig(input.VersionLifecycleConfig, context); + if (input[_VLC] != null) { + const memberEntries = se_ApplicationVersionLifecycleConfig(input[_VLC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `VersionLifecycleConfig.${key}`; entries[loc] = value; @@ -3635,15 +3635,15 @@ const se_ApplicationVersionLifecycleConfig = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MaxCountRule != null) { - const memberEntries = se_MaxCountRule(input.MaxCountRule, context); + if (input[_MCR] != null) { + const memberEntries = se_MaxCountRule(input[_MCR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MaxCountRule.${key}`; entries[loc] = value; }); } - if (input.MaxAgeRule != null) { - const memberEntries = se_MaxAgeRule(input.MaxAgeRule, context); + if (input[_MAR] != null) { + const memberEntries = se_MaxAgeRule(input[_MAR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MaxAgeRule.${key}`; entries[loc] = value; @@ -3660,14 +3660,14 @@ const se_ApplyEnvironmentManagedActionRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.ActionId != null) { - entries["ActionId"] = input.ActionId; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -3680,11 +3680,11 @@ const se_AssociateEnvironmentOperationsRoleMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.OperationsRole != null) { - entries["OperationsRole"] = input.OperationsRole; + if (input[_OR] != null) { + entries[_OR] = input[_OR]; } return entries; }; @@ -3694,20 +3694,20 @@ const se_AssociateEnvironmentOperationsRoleMessage = ( */ const se_BuildConfiguration = (input: BuildConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.ArtifactName != null) { - entries["ArtifactName"] = input.ArtifactName; + if (input[_AN] != null) { + entries[_AN] = input[_AN]; } - if (input.CodeBuildServiceRole != null) { - entries["CodeBuildServiceRole"] = input.CodeBuildServiceRole; + if (input[_CBSR] != null) { + entries[_CBSR] = input[_CBSR]; } - if (input.ComputeType != null) { - entries["ComputeType"] = input.ComputeType; + if (input[_CT] != null) { + entries[_CT] = input[_CT]; } - if (input.Image != null) { - entries["Image"] = input.Image; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.TimeoutInMinutes != null) { - entries["TimeoutInMinutes"] = input.TimeoutInMinutes; + if (input[_TIM] != null) { + entries[_TIM] = input[_TIM]; } return entries; }; @@ -3717,8 +3717,8 @@ const se_BuildConfiguration = (input: BuildConfiguration, context: __SerdeContex */ const se_CheckDNSAvailabilityMessage = (input: CheckDNSAvailabilityMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CNAMEPrefix != null) { - entries["CNAMEPrefix"] = input.CNAMEPrefix; + if (input[_CNAMEP] != null) { + entries[_CNAMEP] = input[_CNAMEP]; } return entries; }; @@ -3728,15 +3728,15 @@ const se_CheckDNSAvailabilityMessage = (input: CheckDNSAvailabilityMessage, cont */ const se_ComposeEnvironmentsMessage = (input: ComposeEnvironmentsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.VersionLabels != null) { - const memberEntries = se_VersionLabels(input.VersionLabels, context); - if (input.VersionLabels?.length === 0) { + if (input[_VL] != null) { + const memberEntries = se_VersionLabels(input[_VL], context); + if (input[_VL]?.length === 0) { entries.VersionLabels = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3752,17 +3752,17 @@ const se_ComposeEnvironmentsMessage = (input: ComposeEnvironmentsMessage, contex */ const se_ConfigurationOptionSetting = (input: ConfigurationOptionSetting, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.OptionName != null) { - entries["OptionName"] = input.OptionName; + if (input[_ON] != null) { + entries[_ON] = input[_ON]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -3791,22 +3791,22 @@ const se_ConfigurationOptionSettingsList = (input: ConfigurationOptionSetting[], */ const se_CreateApplicationMessage = (input: CreateApplicationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.ResourceLifecycleConfig != null) { - const memberEntries = se_ApplicationResourceLifecycleConfig(input.ResourceLifecycleConfig, context); + if (input[_RLC] != null) { + const memberEntries = se_ApplicationResourceLifecycleConfig(input[_RLC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResourceLifecycleConfig.${key}`; entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3822,45 +3822,45 @@ const se_CreateApplicationMessage = (input: CreateApplicationMessage, context: _ */ const se_CreateApplicationVersionMessage = (input: CreateApplicationVersionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.VersionLabel != null) { - entries["VersionLabel"] = input.VersionLabel; + if (input[_VLe] != null) { + entries[_VLe] = input[_VLe]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.SourceBuildInformation != null) { - const memberEntries = se_SourceBuildInformation(input.SourceBuildInformation, context); + if (input[_SBI] != null) { + const memberEntries = se_SourceBuildInformation(input[_SBI], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourceBuildInformation.${key}`; entries[loc] = value; }); } - if (input.SourceBundle != null) { - const memberEntries = se_S3Location(input.SourceBundle, context); + if (input[_SB] != null) { + const memberEntries = se_S3Location(input[_SB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourceBundle.${key}`; entries[loc] = value; }); } - if (input.BuildConfiguration != null) { - const memberEntries = se_BuildConfiguration(input.BuildConfiguration, context); + if (input[_BC] != null) { + const memberEntries = se_BuildConfiguration(input[_BC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `BuildConfiguration.${key}`; entries[loc] = value; }); } - if (input.AutoCreateApplication != null) { - entries["AutoCreateApplication"] = input.AutoCreateApplication; + if (input[_ACA] != null) { + entries[_ACA] = input[_ACA]; } - if (input.Process != null) { - entries["Process"] = input.Process; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3879,34 +3879,34 @@ const se_CreateConfigurationTemplateMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.SolutionStackName != null) { - entries["SolutionStackName"] = input.SolutionStackName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.PlatformArn != null) { - entries["PlatformArn"] = input.PlatformArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.SourceConfiguration != null) { - const memberEntries = se_SourceConfiguration(input.SourceConfiguration, context); + if (input[_SC] != null) { + const memberEntries = se_SourceConfiguration(input[_SC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourceConfiguration.${key}`; entries[loc] = value; }); } - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.OptionSettings != null) { - const memberEntries = se_ConfigurationOptionSettingsList(input.OptionSettings, context); - if (input.OptionSettings?.length === 0) { + if (input[_OS] != null) { + const memberEntries = se_ConfigurationOptionSettingsList(input[_OS], context); + if (input[_OS]?.length === 0) { entries.OptionSettings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3914,9 +3914,9 @@ const se_CreateConfigurationTemplateMessage = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3932,31 +3932,31 @@ const se_CreateConfigurationTemplateMessage = ( */ const se_CreateEnvironmentMessage = (input: CreateEnvironmentMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.CNAMEPrefix != null) { - entries["CNAMEPrefix"] = input.CNAMEPrefix; + if (input[_CNAMEP] != null) { + entries[_CNAMEP] = input[_CNAMEP]; } - if (input.Tier != null) { - const memberEntries = se_EnvironmentTier(input.Tier, context); + if (input[_Ti] != null) { + const memberEntries = se_EnvironmentTier(input[_Ti], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Tier.${key}`; entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3964,21 +3964,21 @@ const se_CreateEnvironmentMessage = (input: CreateEnvironmentMessage, context: _ entries[loc] = value; }); } - if (input.VersionLabel != null) { - entries["VersionLabel"] = input.VersionLabel; + if (input[_VLe] != null) { + entries[_VLe] = input[_VLe]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.SolutionStackName != null) { - entries["SolutionStackName"] = input.SolutionStackName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.PlatformArn != null) { - entries["PlatformArn"] = input.PlatformArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.OptionSettings != null) { - const memberEntries = se_ConfigurationOptionSettingsList(input.OptionSettings, context); - if (input.OptionSettings?.length === 0) { + if (input[_OS] != null) { + const memberEntries = se_ConfigurationOptionSettingsList(input[_OS], context); + if (input[_OS]?.length === 0) { entries.OptionSettings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3986,9 +3986,9 @@ const se_CreateEnvironmentMessage = (input: CreateEnvironmentMessage, context: _ entries[loc] = value; }); } - if (input.OptionsToRemove != null) { - const memberEntries = se_OptionsSpecifierList(input.OptionsToRemove, context); - if (input.OptionsToRemove?.length === 0) { + if (input[_OTR] != null) { + const memberEntries = se_OptionsSpecifierList(input[_OTR], context); + if (input[_OTR]?.length === 0) { entries.OptionsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3996,8 +3996,8 @@ const se_CreateEnvironmentMessage = (input: CreateEnvironmentMessage, context: _ entries[loc] = value; }); } - if (input.OperationsRole != null) { - entries["OperationsRole"] = input.OperationsRole; + if (input[_OR] != null) { + entries[_OR] = input[_OR]; } return entries; }; @@ -4007,25 +4007,25 @@ const se_CreateEnvironmentMessage = (input: CreateEnvironmentMessage, context: _ */ const se_CreatePlatformVersionRequest = (input: CreatePlatformVersionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PlatformName != null) { - entries["PlatformName"] = input.PlatformName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.PlatformVersion != null) { - entries["PlatformVersion"] = input.PlatformVersion; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.PlatformDefinitionBundle != null) { - const memberEntries = se_S3Location(input.PlatformDefinitionBundle, context); + if (input[_PDB] != null) { + const memberEntries = se_S3Location(input[_PDB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PlatformDefinitionBundle.${key}`; entries[loc] = value; }); } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.OptionSettings != null) { - const memberEntries = se_ConfigurationOptionSettingsList(input.OptionSettings, context); - if (input.OptionSettings?.length === 0) { + if (input[_OS] != null) { + const memberEntries = se_ConfigurationOptionSettingsList(input[_OS], context); + if (input[_OS]?.length === 0) { entries.OptionSettings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4033,9 +4033,9 @@ const se_CreatePlatformVersionRequest = (input: CreatePlatformVersionRequest, co entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_Tags(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_Tags(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4051,11 +4051,11 @@ const se_CreatePlatformVersionRequest = (input: CreatePlatformVersionRequest, co */ const se_DeleteApplicationMessage = (input: DeleteApplicationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TerminateEnvByForce != null) { - entries["TerminateEnvByForce"] = input.TerminateEnvByForce; + if (input[_TEBF] != null) { + entries[_TEBF] = input[_TEBF]; } return entries; }; @@ -4065,14 +4065,14 @@ const se_DeleteApplicationMessage = (input: DeleteApplicationMessage, context: _ */ const se_DeleteApplicationVersionMessage = (input: DeleteApplicationVersionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.VersionLabel != null) { - entries["VersionLabel"] = input.VersionLabel; + if (input[_VLe] != null) { + entries[_VLe] = input[_VLe]; } - if (input.DeleteSourceBundle != null) { - entries["DeleteSourceBundle"] = input.DeleteSourceBundle; + if (input[_DSB] != null) { + entries[_DSB] = input[_DSB]; } return entries; }; @@ -4085,11 +4085,11 @@ const se_DeleteConfigurationTemplateMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } return entries; }; @@ -4102,11 +4102,11 @@ const se_DeleteEnvironmentConfigurationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -4116,8 +4116,8 @@ const se_DeleteEnvironmentConfigurationMessage = ( */ const se_DeletePlatformVersionRequest = (input: DeletePlatformVersionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PlatformArn != null) { - entries["PlatformArn"] = input.PlatformArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -4127,9 +4127,9 @@ const se_DeletePlatformVersionRequest = (input: DeletePlatformVersionRequest, co */ const se_DescribeApplicationsMessage = (input: DescribeApplicationsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationNames != null) { - const memberEntries = se_ApplicationNamesList(input.ApplicationNames, context); - if (input.ApplicationNames?.length === 0) { + if (input[_ANpp] != null) { + const memberEntries = se_ApplicationNamesList(input[_ANpp], context); + if (input[_ANpp]?.length === 0) { entries.ApplicationNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4148,12 +4148,12 @@ const se_DescribeApplicationVersionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.VersionLabels != null) { - const memberEntries = se_VersionLabelsList(input.VersionLabels, context); - if (input.VersionLabels?.length === 0) { + if (input[_VL] != null) { + const memberEntries = se_VersionLabelsList(input[_VL], context); + if (input[_VL]?.length === 0) { entries.VersionLabels = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4161,11 +4161,11 @@ const se_DescribeApplicationVersionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4178,24 +4178,24 @@ const se_DescribeConfigurationOptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.SolutionStackName != null) { - entries["SolutionStackName"] = input.SolutionStackName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.PlatformArn != null) { - entries["PlatformArn"] = input.PlatformArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Options != null) { - const memberEntries = se_OptionsSpecifierList(input.Options, context); - if (input.Options?.length === 0) { + if (input[_O] != null) { + const memberEntries = se_OptionsSpecifierList(input[_O], context); + if (input[_O]?.length === 0) { entries.Options = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4214,14 +4214,14 @@ const se_DescribeConfigurationSettingsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -4231,15 +4231,15 @@ const se_DescribeConfigurationSettingsMessage = ( */ const se_DescribeEnvironmentHealthRequest = (input: DescribeEnvironmentHealthRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.AttributeNames != null) { - const memberEntries = se_EnvironmentHealthAttributes(input.AttributeNames, context); - if (input.AttributeNames?.length === 0) { + if (input[_ANt] != null) { + const memberEntries = se_EnvironmentHealthAttributes(input[_ANt], context); + if (input[_ANt]?.length === 0) { entries.AttributeNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4258,17 +4258,17 @@ const se_DescribeEnvironmentManagedActionHistoryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -4281,14 +4281,14 @@ const se_DescribeEnvironmentManagedActionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_S] != null) { + entries[_S] = input[_S]; } return entries; }; @@ -4301,11 +4301,11 @@ const se_DescribeEnvironmentResourcesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -4315,15 +4315,15 @@ const se_DescribeEnvironmentResourcesMessage = ( */ const se_DescribeEnvironmentsMessage = (input: DescribeEnvironmentsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.VersionLabel != null) { - entries["VersionLabel"] = input.VersionLabel; + if (input[_VLe] != null) { + entries[_VLe] = input[_VLe]; } - if (input.EnvironmentIds != null) { - const memberEntries = se_EnvironmentIdList(input.EnvironmentIds, context); - if (input.EnvironmentIds?.length === 0) { + if (input[_EIn] != null) { + const memberEntries = se_EnvironmentIdList(input[_EIn], context); + if (input[_EIn]?.length === 0) { entries.EnvironmentIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4331,9 +4331,9 @@ const se_DescribeEnvironmentsMessage = (input: DescribeEnvironmentsMessage, cont entries[loc] = value; }); } - if (input.EnvironmentNames != null) { - const memberEntries = se_EnvironmentNamesList(input.EnvironmentNames, context); - if (input.EnvironmentNames?.length === 0) { + if (input[_ENn] != null) { + const memberEntries = se_EnvironmentNamesList(input[_ENn], context); + if (input[_ENn]?.length === 0) { entries.EnvironmentNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4341,17 +4341,17 @@ const se_DescribeEnvironmentsMessage = (input: DescribeEnvironmentsMessage, cont entries[loc] = value; }); } - if (input.IncludeDeleted != null) { - entries["IncludeDeleted"] = input.IncludeDeleted; + if (input[_ID] != null) { + entries[_ID] = input[_ID]; } - if (input.IncludedDeletedBackTo != null) { - entries["IncludedDeletedBackTo"] = input.IncludedDeletedBackTo.toISOString().split(".")[0] + "Z"; + if (input[_IDBT] != null) { + entries[_IDBT] = input[_IDBT].toISOString().split(".")[0] + "Z"; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4361,41 +4361,41 @@ const se_DescribeEnvironmentsMessage = (input: DescribeEnvironmentsMessage, cont */ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.VersionLabel != null) { - entries["VersionLabel"] = input.VersionLabel; + if (input[_VLe] != null) { + entries[_VLe] = input[_VLe]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.PlatformArn != null) { - entries["PlatformArn"] = input.PlatformArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.RequestId != null) { - entries["RequestId"] = input.RequestId; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.Severity != null) { - entries["Severity"] = input.Severity; + if (input[_Se] != null) { + entries[_Se] = input[_Se]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_ST] != null) { + entries[_ST] = input[_ST].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4405,15 +4405,15 @@ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __Serde */ const se_DescribeInstancesHealthRequest = (input: DescribeInstancesHealthRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.AttributeNames != null) { - const memberEntries = se_InstancesHealthAttributes(input.AttributeNames, context); - if (input.AttributeNames?.length === 0) { + if (input[_ANt] != null) { + const memberEntries = se_InstancesHealthAttributes(input[_ANt], context); + if (input[_ANt]?.length === 0) { entries.AttributeNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4421,8 +4421,8 @@ const se_DescribeInstancesHealthRequest = (input: DescribeInstancesHealthRequest entries[loc] = value; }); } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4432,8 +4432,8 @@ const se_DescribeInstancesHealthRequest = (input: DescribeInstancesHealthRequest */ const se_DescribePlatformVersionRequest = (input: DescribePlatformVersionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PlatformArn != null) { - entries["PlatformArn"] = input.PlatformArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -4446,8 +4446,8 @@ const se_DisassociateEnvironmentOperationsRoleMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -4505,14 +4505,14 @@ const se_EnvironmentNamesList = (input: string[], context: __SerdeContext): any */ const se_EnvironmentTier = (input: EnvironmentTier, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_Na] != null) { + entries[_Na] = input[_Na]; } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_Ty] != null) { + entries[_Ty] = input[_Ty]; } - if (input.Version != null) { - entries["Version"] = input.Version; + if (input[_V] != null) { + entries[_V] = input[_V]; } return entries; }; @@ -4538,9 +4538,9 @@ const se_InstancesHealthAttributes = (input: InstancesHealthAttribute[], context */ const se_ListPlatformBranchesRequest = (input: ListPlatformBranchesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_SearchFilters(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_SearchFilters(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4548,11 +4548,11 @@ const se_ListPlatformBranchesRequest = (input: ListPlatformBranchesRequest, cont entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4562,9 +4562,9 @@ const se_ListPlatformBranchesRequest = (input: ListPlatformBranchesRequest, cont */ const se_ListPlatformVersionsRequest = (input: ListPlatformVersionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filters != null) { - const memberEntries = se_PlatformFilters(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_PlatformFilters(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4572,11 +4572,11 @@ const se_ListPlatformVersionsRequest = (input: ListPlatformVersionsRequest, cont entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4586,8 +4586,8 @@ const se_ListPlatformVersionsRequest = (input: ListPlatformVersionsRequest, cont */ const se_ListTagsForResourceMessage = (input: ListTagsForResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } return entries; }; @@ -4597,14 +4597,14 @@ const se_ListTagsForResourceMessage = (input: ListTagsForResourceMessage, contex */ const se_MaxAgeRule = (input: MaxAgeRule, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.MaxAgeInDays != null) { - entries["MaxAgeInDays"] = input.MaxAgeInDays; + if (input[_MAID] != null) { + entries[_MAID] = input[_MAID]; } - if (input.DeleteSourceFromS3 != null) { - entries["DeleteSourceFromS3"] = input.DeleteSourceFromS3; + if (input[_DSFS] != null) { + entries[_DSFS] = input[_DSFS]; } return entries; }; @@ -4614,14 +4614,14 @@ const se_MaxAgeRule = (input: MaxAgeRule, context: __SerdeContext): any => { */ const se_MaxCountRule = (input: MaxCountRule, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.MaxCount != null) { - entries["MaxCount"] = input.MaxCount; + if (input[_MC] != null) { + entries[_MC] = input[_MC]; } - if (input.DeleteSourceFromS3 != null) { - entries["DeleteSourceFromS3"] = input.DeleteSourceFromS3; + if (input[_DSFS] != null) { + entries[_DSFS] = input[_DSFS]; } return entries; }; @@ -4631,14 +4631,14 @@ const se_MaxCountRule = (input: MaxCountRule, context: __SerdeContext): any => { */ const se_OptionSpecification = (input: OptionSpecification, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Namespace != null) { - entries["Namespace"] = input.Namespace; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.OptionName != null) { - entries["OptionName"] = input.OptionName; + if (input[_ON] != null) { + entries[_ON] = input[_ON]; } return entries; }; @@ -4667,15 +4667,15 @@ const se_OptionsSpecifierList = (input: OptionSpecification[], context: __SerdeC */ const se_PlatformFilter = (input: PlatformFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_Ty] != null) { + entries[_Ty] = input[_Ty]; } - if (input.Operator != null) { - entries["Operator"] = input.Operator; + if (input[_Op] != null) { + entries[_Op] = input[_Op]; } - if (input.Values != null) { - const memberEntries = se_PlatformFilterValueList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Val] != null) { + const memberEntries = se_PlatformFilterValueList(input[_Val], context); + if (input[_Val]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4726,11 +4726,11 @@ const se_PlatformFilterValueList = (input: string[], context: __SerdeContext): a */ const se_RebuildEnvironmentMessage = (input: RebuildEnvironmentMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -4740,14 +4740,14 @@ const se_RebuildEnvironmentMessage = (input: RebuildEnvironmentMessage, context: */ const se_RequestEnvironmentInfoMessage = (input: RequestEnvironmentInfoMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.InfoType != null) { - entries["InfoType"] = input.InfoType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } return entries; }; @@ -4757,11 +4757,11 @@ const se_RequestEnvironmentInfoMessage = (input: RequestEnvironmentInfoMessage, */ const se_RestartAppServerMessage = (input: RestartAppServerMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -4771,14 +4771,14 @@ const se_RestartAppServerMessage = (input: RestartAppServerMessage, context: __S */ const se_RetrieveEnvironmentInfoMessage = (input: RetrieveEnvironmentInfoMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.InfoType != null) { - entries["InfoType"] = input.InfoType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } return entries; }; @@ -4788,11 +4788,11 @@ const se_RetrieveEnvironmentInfoMessage = (input: RetrieveEnvironmentInfoMessage */ const se_S3Location = (input: S3Location, context: __SerdeContext): any => { const entries: any = {}; - if (input.S3Bucket != null) { - entries["S3Bucket"] = input.S3Bucket; + if (input[_SBu] != null) { + entries[_SBu] = input[_SBu]; } - if (input.S3Key != null) { - entries["S3Key"] = input.S3Key; + if (input[_SK] != null) { + entries[_SK] = input[_SK]; } return entries; }; @@ -4802,15 +4802,15 @@ const se_S3Location = (input: S3Location, context: __SerdeContext): any => { */ const se_SearchFilter = (input: SearchFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.Operator != null) { - entries["Operator"] = input.Operator; + if (input[_Op] != null) { + entries[_Op] = input[_Op]; } - if (input.Values != null) { - const memberEntries = se_SearchFilterValues(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Val] != null) { + const memberEntries = se_SearchFilterValues(input[_Val], context); + if (input[_Val]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4861,14 +4861,14 @@ const se_SearchFilterValues = (input: string[], context: __SerdeContext): any => */ const se_SourceBuildInformation = (input: SourceBuildInformation, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.SourceRepository != null) { - entries["SourceRepository"] = input.SourceRepository; + if (input[_SRo] != null) { + entries[_SRo] = input[_SRo]; } - if (input.SourceLocation != null) { - entries["SourceLocation"] = input.SourceLocation; + if (input[_SL] != null) { + entries[_SL] = input[_SL]; } return entries; }; @@ -4878,11 +4878,11 @@ const se_SourceBuildInformation = (input: SourceBuildInformation, context: __Ser */ const se_SourceConfiguration = (input: SourceConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } return entries; }; @@ -4892,17 +4892,17 @@ const se_SourceConfiguration = (input: SourceConfiguration, context: __SerdeCont */ const se_SwapEnvironmentCNAMEsMessage = (input: SwapEnvironmentCNAMEsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceEnvironmentId != null) { - entries["SourceEnvironmentId"] = input.SourceEnvironmentId; + if (input[_SEI] != null) { + entries[_SEI] = input[_SEI]; } - if (input.SourceEnvironmentName != null) { - entries["SourceEnvironmentName"] = input.SourceEnvironmentName; + if (input[_SEN] != null) { + entries[_SEN] = input[_SEN]; } - if (input.DestinationEnvironmentId != null) { - entries["DestinationEnvironmentId"] = input.DestinationEnvironmentId; + if (input[_DEI] != null) { + entries[_DEI] = input[_DEI]; } - if (input.DestinationEnvironmentName != null) { - entries["DestinationEnvironmentName"] = input.DestinationEnvironmentName; + if (input[_DEN] != null) { + entries[_DEN] = input[_DEN]; } return entries; }; @@ -4912,11 +4912,11 @@ const se_SwapEnvironmentCNAMEsMessage = (input: SwapEnvironmentCNAMEsMessage, co */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -4980,17 +4980,17 @@ const se_Tags = (input: Tag[], context: __SerdeContext): any => { */ const se_TerminateEnvironmentMessage = (input: TerminateEnvironmentMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.TerminateResources != null) { - entries["TerminateResources"] = input.TerminateResources; + if (input[_TR] != null) { + entries[_TR] = input[_TR]; } - if (input.ForceTerminate != null) { - entries["ForceTerminate"] = input.ForceTerminate; + if (input[_FT] != null) { + entries[_FT] = input[_FT]; } return entries; }; @@ -5000,11 +5000,11 @@ const se_TerminateEnvironmentMessage = (input: TerminateEnvironmentMessage, cont */ const se_UpdateApplicationMessage = (input: UpdateApplicationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -5017,11 +5017,11 @@ const se_UpdateApplicationResourceLifecycleMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.ResourceLifecycleConfig != null) { - const memberEntries = se_ApplicationResourceLifecycleConfig(input.ResourceLifecycleConfig, context); + if (input[_RLC] != null) { + const memberEntries = se_ApplicationResourceLifecycleConfig(input[_RLC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResourceLifecycleConfig.${key}`; entries[loc] = value; @@ -5035,14 +5035,14 @@ const se_UpdateApplicationResourceLifecycleMessage = ( */ const se_UpdateApplicationVersionMessage = (input: UpdateApplicationVersionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.VersionLabel != null) { - entries["VersionLabel"] = input.VersionLabel; + if (input[_VLe] != null) { + entries[_VLe] = input[_VLe]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -5055,18 +5055,18 @@ const se_UpdateConfigurationTemplateMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.OptionSettings != null) { - const memberEntries = se_ConfigurationOptionSettingsList(input.OptionSettings, context); - if (input.OptionSettings?.length === 0) { + if (input[_OS] != null) { + const memberEntries = se_ConfigurationOptionSettingsList(input[_OS], context); + if (input[_OS]?.length === 0) { entries.OptionSettings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5074,9 +5074,9 @@ const se_UpdateConfigurationTemplateMessage = ( entries[loc] = value; }); } - if (input.OptionsToRemove != null) { - const memberEntries = se_OptionsSpecifierList(input.OptionsToRemove, context); - if (input.OptionsToRemove?.length === 0) { + if (input[_OTR] != null) { + const memberEntries = se_OptionsSpecifierList(input[_OTR], context); + if (input[_OTR]?.length === 0) { entries.OptionsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5092,43 +5092,43 @@ const se_UpdateConfigurationTemplateMessage = ( */ const se_UpdateEnvironmentMessage = (input: UpdateEnvironmentMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.EnvironmentId != null) { - entries["EnvironmentId"] = input.EnvironmentId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tier != null) { - const memberEntries = se_EnvironmentTier(input.Tier, context); + if (input[_Ti] != null) { + const memberEntries = se_EnvironmentTier(input[_Ti], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Tier.${key}`; entries[loc] = value; }); } - if (input.VersionLabel != null) { - entries["VersionLabel"] = input.VersionLabel; + if (input[_VLe] != null) { + entries[_VLe] = input[_VLe]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.SolutionStackName != null) { - entries["SolutionStackName"] = input.SolutionStackName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.PlatformArn != null) { - entries["PlatformArn"] = input.PlatformArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.OptionSettings != null) { - const memberEntries = se_ConfigurationOptionSettingsList(input.OptionSettings, context); - if (input.OptionSettings?.length === 0) { + if (input[_OS] != null) { + const memberEntries = se_ConfigurationOptionSettingsList(input[_OS], context); + if (input[_OS]?.length === 0) { entries.OptionSettings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5136,9 +5136,9 @@ const se_UpdateEnvironmentMessage = (input: UpdateEnvironmentMessage, context: _ entries[loc] = value; }); } - if (input.OptionsToRemove != null) { - const memberEntries = se_OptionsSpecifierList(input.OptionsToRemove, context); - if (input.OptionsToRemove?.length === 0) { + if (input[_OTR] != null) { + const memberEntries = se_OptionsSpecifierList(input[_OTR], context); + if (input[_OTR]?.length === 0) { entries.OptionsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5154,12 +5154,12 @@ const se_UpdateEnvironmentMessage = (input: UpdateEnvironmentMessage, context: _ */ const se_UpdateTagsForResourceMessage = (input: UpdateTagsForResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.TagsToAdd != null) { - const memberEntries = se_TagList(input.TagsToAdd, context); - if (input.TagsToAdd?.length === 0) { + if (input[_TTA] != null) { + const memberEntries = se_TagList(input[_TTA], context); + if (input[_TTA]?.length === 0) { entries.TagsToAdd = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5167,9 +5167,9 @@ const se_UpdateTagsForResourceMessage = (input: UpdateTagsForResourceMessage, co entries[loc] = value; }); } - if (input.TagsToRemove != null) { - const memberEntries = se_TagKeyList(input.TagsToRemove, context); - if (input.TagsToRemove?.length === 0) { + if (input[_TTR] != null) { + const memberEntries = se_TagKeyList(input[_TTR], context); + if (input[_TTR]?.length === 0) { entries.TagsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5188,18 +5188,18 @@ const se_ValidateConfigurationSettingsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ApplicationName != null) { - entries["ApplicationName"] = input.ApplicationName; + if (input[_ANp] != null) { + entries[_ANp] = input[_ANp]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.EnvironmentName != null) { - entries["EnvironmentName"] = input.EnvironmentName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.OptionSettings != null) { - const memberEntries = se_ConfigurationOptionSettingsList(input.OptionSettings, context); - if (input.OptionSettings?.length === 0) { + if (input[_OS] != null) { + const memberEntries = se_ConfigurationOptionSettingsList(input[_OS], context); + if (input[_OS]?.length === 0) { entries.OptionSettings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5247,42 +5247,33 @@ const se_VersionLabelsList = (input: string[], context: __SerdeContext): any => */ const de_ApplicationDescription = (output: any, context: __SerdeContext): ApplicationDescription => { const contents: any = {}; - if (output["ApplicationArn"] !== undefined) { - contents.ApplicationArn = __expectString(output["ApplicationArn"]); + if (output[_AA] != null) { + contents[_AA] = __expectString(output[_AA]); } - if (output["ApplicationName"] !== undefined) { - contents.ApplicationName = __expectString(output["ApplicationName"]); + if (output[_ANp] != null) { + contents[_ANp] = __expectString(output[_ANp]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DateCreated"] !== undefined) { - contents.DateCreated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateCreated"])); + if (output[_DC] != null) { + contents[_DC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DC])); } - if (output["DateUpdated"] !== undefined) { - contents.DateUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateUpdated"])); + if (output[_DU] != null) { + contents[_DU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DU])); } if (output.Versions === "") { - contents.Versions = []; - } else if (output["Versions"] !== undefined && output["Versions"]["member"] !== undefined) { - contents.Versions = de_VersionLabelsList(__getArrayIfSingleItem(output["Versions"]["member"]), context); + contents[_Ve] = []; + } else if (output[_Ve] != null && output[_Ve][_m] != null) { + contents[_Ve] = de_VersionLabelsList(__getArrayIfSingleItem(output[_Ve][_m]), context); } if (output.ConfigurationTemplates === "") { - contents.ConfigurationTemplates = []; - } else if ( - output["ConfigurationTemplates"] !== undefined && - output["ConfigurationTemplates"]["member"] !== undefined - ) { - contents.ConfigurationTemplates = de_ConfigurationTemplateNamesList( - __getArrayIfSingleItem(output["ConfigurationTemplates"]["member"]), - context - ); - } - if (output["ResourceLifecycleConfig"] !== undefined) { - contents.ResourceLifecycleConfig = de_ApplicationResourceLifecycleConfig( - output["ResourceLifecycleConfig"], - context - ); + contents[_CTo] = []; + } else if (output[_CTo] != null && output[_CTo][_m] != null) { + contents[_CTo] = de_ConfigurationTemplateNamesList(__getArrayIfSingleItem(output[_CTo][_m]), context); + } + if (output[_RLC] != null) { + contents[_RLC] = de_ApplicationResourceLifecycleConfig(output[_RLC], context); } return contents; }; @@ -5303,8 +5294,8 @@ const de_ApplicationDescriptionList = (output: any, context: __SerdeContext): Ap */ const de_ApplicationDescriptionMessage = (output: any, context: __SerdeContext): ApplicationDescriptionMessage => { const contents: any = {}; - if (output["Application"] !== undefined) { - contents.Application = de_ApplicationDescription(output["Application"], context); + if (output[_Ap] != null) { + contents[_Ap] = de_ApplicationDescription(output[_Ap], context); } return contents; }; @@ -5315,12 +5306,9 @@ const de_ApplicationDescriptionMessage = (output: any, context: __SerdeContext): const de_ApplicationDescriptionsMessage = (output: any, context: __SerdeContext): ApplicationDescriptionsMessage => { const contents: any = {}; if (output.Applications === "") { - contents.Applications = []; - } else if (output["Applications"] !== undefined && output["Applications"]["member"] !== undefined) { - contents.Applications = de_ApplicationDescriptionList( - __getArrayIfSingleItem(output["Applications"]["member"]), - context - ); + contents[_App] = []; + } else if (output[_App] != null && output[_App][_m] != null) { + contents[_App] = de_ApplicationDescriptionList(__getArrayIfSingleItem(output[_App][_m]), context); } return contents; }; @@ -5330,17 +5318,17 @@ const de_ApplicationDescriptionsMessage = (output: any, context: __SerdeContext) */ const de_ApplicationMetrics = (output: any, context: __SerdeContext): ApplicationMetrics => { const contents: any = {}; - if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["Duration"]) as number; + if (output[_Du] != null) { + contents[_Du] = __strictParseInt32(output[_Du]) as number; } - if (output["RequestCount"] !== undefined) { - contents.RequestCount = __strictParseInt32(output["RequestCount"]) as number; + if (output[_RC] != null) { + contents[_RC] = __strictParseInt32(output[_RC]) as number; } - if (output["StatusCodes"] !== undefined) { - contents.StatusCodes = de_StatusCodes(output["StatusCodes"], context); + if (output[_SCt] != null) { + contents[_SCt] = de_StatusCodes(output[_SCt], context); } - if (output["Latency"] !== undefined) { - contents.Latency = de_Latency(output["Latency"], context); + if (output[_L] != null) { + contents[_L] = de_Latency(output[_L], context); } return contents; }; @@ -5353,11 +5341,11 @@ const de_ApplicationResourceLifecycleConfig = ( context: __SerdeContext ): ApplicationResourceLifecycleConfig => { const contents: any = {}; - if (output["ServiceRole"] !== undefined) { - contents.ServiceRole = __expectString(output["ServiceRole"]); + if (output[_SR] != null) { + contents[_SR] = __expectString(output[_SR]); } - if (output["VersionLifecycleConfig"] !== undefined) { - contents.VersionLifecycleConfig = de_ApplicationVersionLifecycleConfig(output["VersionLifecycleConfig"], context); + if (output[_VLC] != null) { + contents[_VLC] = de_ApplicationVersionLifecycleConfig(output[_VLC], context); } return contents; }; @@ -5370,14 +5358,11 @@ const de_ApplicationResourceLifecycleDescriptionMessage = ( context: __SerdeContext ): ApplicationResourceLifecycleDescriptionMessage => { const contents: any = {}; - if (output["ApplicationName"] !== undefined) { - contents.ApplicationName = __expectString(output["ApplicationName"]); + if (output[_ANp] != null) { + contents[_ANp] = __expectString(output[_ANp]); } - if (output["ResourceLifecycleConfig"] !== undefined) { - contents.ResourceLifecycleConfig = de_ApplicationResourceLifecycleConfig( - output["ResourceLifecycleConfig"], - context - ); + if (output[_RLC] != null) { + contents[_RLC] = de_ApplicationResourceLifecycleConfig(output[_RLC], context); } return contents; }; @@ -5387,35 +5372,35 @@ const de_ApplicationResourceLifecycleDescriptionMessage = ( */ const de_ApplicationVersionDescription = (output: any, context: __SerdeContext): ApplicationVersionDescription => { const contents: any = {}; - if (output["ApplicationVersionArn"] !== undefined) { - contents.ApplicationVersionArn = __expectString(output["ApplicationVersionArn"]); + if (output[_AVA] != null) { + contents[_AVA] = __expectString(output[_AVA]); } - if (output["ApplicationName"] !== undefined) { - contents.ApplicationName = __expectString(output["ApplicationName"]); + if (output[_ANp] != null) { + contents[_ANp] = __expectString(output[_ANp]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["VersionLabel"] !== undefined) { - contents.VersionLabel = __expectString(output["VersionLabel"]); + if (output[_VLe] != null) { + contents[_VLe] = __expectString(output[_VLe]); } - if (output["SourceBuildInformation"] !== undefined) { - contents.SourceBuildInformation = de_SourceBuildInformation(output["SourceBuildInformation"], context); + if (output[_SBI] != null) { + contents[_SBI] = de_SourceBuildInformation(output[_SBI], context); } - if (output["BuildArn"] !== undefined) { - contents.BuildArn = __expectString(output["BuildArn"]); + if (output[_BA] != null) { + contents[_BA] = __expectString(output[_BA]); } - if (output["SourceBundle"] !== undefined) { - contents.SourceBundle = de_S3Location(output["SourceBundle"], context); + if (output[_SB] != null) { + contents[_SB] = de_S3Location(output[_SB], context); } - if (output["DateCreated"] !== undefined) { - contents.DateCreated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateCreated"])); + if (output[_DC] != null) { + contents[_DC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DC])); } - if (output["DateUpdated"] !== undefined) { - contents.DateUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateUpdated"])); + if (output[_DU] != null) { + contents[_DU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DU])); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -5442,8 +5427,8 @@ const de_ApplicationVersionDescriptionMessage = ( context: __SerdeContext ): ApplicationVersionDescriptionMessage => { const contents: any = {}; - if (output["ApplicationVersion"] !== undefined) { - contents.ApplicationVersion = de_ApplicationVersionDescription(output["ApplicationVersion"], context); + if (output[_AV] != null) { + contents[_AV] = de_ApplicationVersionDescription(output[_AV], context); } return contents; }; @@ -5457,15 +5442,12 @@ const de_ApplicationVersionDescriptionsMessage = ( ): ApplicationVersionDescriptionsMessage => { const contents: any = {}; if (output.ApplicationVersions === "") { - contents.ApplicationVersions = []; - } else if (output["ApplicationVersions"] !== undefined && output["ApplicationVersions"]["member"] !== undefined) { - contents.ApplicationVersions = de_ApplicationVersionDescriptionList( - __getArrayIfSingleItem(output["ApplicationVersions"]["member"]), - context - ); + contents[_AVp] = []; + } else if (output[_AVp] != null && output[_AVp][_m] != null) { + contents[_AVp] = de_ApplicationVersionDescriptionList(__getArrayIfSingleItem(output[_AVp][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5478,11 +5460,11 @@ const de_ApplicationVersionLifecycleConfig = ( context: __SerdeContext ): ApplicationVersionLifecycleConfig => { const contents: any = {}; - if (output["MaxCountRule"] !== undefined) { - contents.MaxCountRule = de_MaxCountRule(output["MaxCountRule"], context); + if (output[_MCR] != null) { + contents[_MCR] = de_MaxCountRule(output[_MCR], context); } - if (output["MaxAgeRule"] !== undefined) { - contents.MaxAgeRule = de_MaxAgeRule(output["MaxAgeRule"], context); + if (output[_MAR] != null) { + contents[_MAR] = de_MaxAgeRule(output[_MAR], context); } return contents; }; @@ -5495,17 +5477,17 @@ const de_ApplyEnvironmentManagedActionResult = ( context: __SerdeContext ): ApplyEnvironmentManagedActionResult => { const contents: any = {}; - if (output["ActionId"] !== undefined) { - contents.ActionId = __expectString(output["ActionId"]); + if (output[_AI] != null) { + contents[_AI] = __expectString(output[_AI]); } - if (output["ActionDescription"] !== undefined) { - contents.ActionDescription = __expectString(output["ActionDescription"]); + if (output[_AD] != null) { + contents[_AD] = __expectString(output[_AD]); } - if (output["ActionType"] !== undefined) { - contents.ActionType = __expectString(output["ActionType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -5515,8 +5497,8 @@ const de_ApplyEnvironmentManagedActionResult = ( */ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingGroup => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } return contents; }; @@ -5559,8 +5541,8 @@ const de_AvailableSolutionStackNamesList = (output: any, context: __SerdeContext */ const de_Builder = (output: any, context: __SerdeContext): Builder => { const contents: any = {}; - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } return contents; }; @@ -5584,11 +5566,11 @@ const de_CheckDNSAvailabilityResultMessage = ( context: __SerdeContext ): CheckDNSAvailabilityResultMessage => { const contents: any = {}; - if (output["Available"] !== undefined) { - contents.Available = __parseBoolean(output["Available"]); + if (output[_Av] != null) { + contents[_Av] = __parseBoolean(output[_Av]); } - if (output["FullyQualifiedCNAME"] !== undefined) { - contents.FullyQualifiedCNAME = __expectString(output["FullyQualifiedCNAME"]); + if (output[_FQCNAME] != null) { + contents[_FQCNAME] = __expectString(output[_FQCNAME]); } return contents; }; @@ -5601,8 +5583,8 @@ const de_CodeBuildNotInServiceRegionException = ( context: __SerdeContext ): CodeBuildNotInServiceRegionException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -5612,43 +5594,40 @@ const de_CodeBuildNotInServiceRegionException = ( */ const de_ConfigurationOptionDescription = (output: any, context: __SerdeContext): ConfigurationOptionDescription => { const contents: any = {}; - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["ChangeSeverity"] !== undefined) { - contents.ChangeSeverity = __expectString(output["ChangeSeverity"]); + if (output[_CS] != null) { + contents[_CS] = __expectString(output[_CS]); } - if (output["UserDefined"] !== undefined) { - contents.UserDefined = __parseBoolean(output["UserDefined"]); + if (output[_UD] != null) { + contents[_UD] = __parseBoolean(output[_UD]); } - if (output["ValueType"] !== undefined) { - contents.ValueType = __expectString(output["ValueType"]); + if (output[_VT] != null) { + contents[_VT] = __expectString(output[_VT]); } if (output.ValueOptions === "") { - contents.ValueOptions = []; - } else if (output["ValueOptions"] !== undefined && output["ValueOptions"]["member"] !== undefined) { - contents.ValueOptions = de_ConfigurationOptionPossibleValues( - __getArrayIfSingleItem(output["ValueOptions"]["member"]), - context - ); + contents[_VO] = []; + } else if (output[_VO] != null && output[_VO][_m] != null) { + contents[_VO] = de_ConfigurationOptionPossibleValues(__getArrayIfSingleItem(output[_VO][_m]), context); } - if (output["MinValue"] !== undefined) { - contents.MinValue = __strictParseInt32(output["MinValue"]) as number; + if (output[_MV] != null) { + contents[_MV] = __strictParseInt32(output[_MV]) as number; } - if (output["MaxValue"] !== undefined) { - contents.MaxValue = __strictParseInt32(output["MaxValue"]) as number; + if (output[_MVa] != null) { + contents[_MVa] = __strictParseInt32(output[_MVa]) as number; } - if (output["MaxLength"] !== undefined) { - contents.MaxLength = __strictParseInt32(output["MaxLength"]) as number; + if (output[_ML] != null) { + contents[_ML] = __strictParseInt32(output[_ML]) as number; } - if (output["Regex"] !== undefined) { - contents.Regex = de_OptionRestrictionRegex(output["Regex"], context); + if (output[_R] != null) { + contents[_R] = de_OptionRestrictionRegex(output[_R], context); } return contents; }; @@ -5683,19 +5662,16 @@ const de_ConfigurationOptionPossibleValues = (output: any, context: __SerdeConte */ const de_ConfigurationOptionsDescription = (output: any, context: __SerdeContext): ConfigurationOptionsDescription => { const contents: any = {}; - if (output["SolutionStackName"] !== undefined) { - contents.SolutionStackName = __expectString(output["SolutionStackName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } - if (output["PlatformArn"] !== undefined) { - contents.PlatformArn = __expectString(output["PlatformArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } if (output.Options === "") { - contents.Options = []; - } else if (output["Options"] !== undefined && output["Options"]["member"] !== undefined) { - contents.Options = de_ConfigurationOptionDescriptionsList( - __getArrayIfSingleItem(output["Options"]["member"]), - context - ); + contents[_O] = []; + } else if (output[_O] != null && output[_O][_m] != null) { + contents[_O] = de_ConfigurationOptionDescriptionsList(__getArrayIfSingleItem(output[_O][_m]), context); } return contents; }; @@ -5705,17 +5681,17 @@ const de_ConfigurationOptionsDescription = (output: any, context: __SerdeContext */ const de_ConfigurationOptionSetting = (output: any, context: __SerdeContext): ConfigurationOptionSetting => { const contents: any = {}; - if (output["ResourceName"] !== undefined) { - contents.ResourceName = __expectString(output["ResourceName"]); + if (output[_RN] != null) { + contents[_RN] = __expectString(output[_RN]); } - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["OptionName"] !== undefined) { - contents.OptionName = __expectString(output["OptionName"]); + if (output[_ON] != null) { + contents[_ON] = __expectString(output[_ON]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -5739,40 +5715,37 @@ const de_ConfigurationSettingsDescription = ( context: __SerdeContext ): ConfigurationSettingsDescription => { const contents: any = {}; - if (output["SolutionStackName"] !== undefined) { - contents.SolutionStackName = __expectString(output["SolutionStackName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } - if (output["PlatformArn"] !== undefined) { - contents.PlatformArn = __expectString(output["PlatformArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } - if (output["ApplicationName"] !== undefined) { - contents.ApplicationName = __expectString(output["ApplicationName"]); + if (output[_ANp] != null) { + contents[_ANp] = __expectString(output[_ANp]); } - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["EnvironmentName"] !== undefined) { - contents.EnvironmentName = __expectString(output["EnvironmentName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["DeploymentStatus"] !== undefined) { - contents.DeploymentStatus = __expectString(output["DeploymentStatus"]); + if (output[_DS] != null) { + contents[_DS] = __expectString(output[_DS]); } - if (output["DateCreated"] !== undefined) { - contents.DateCreated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateCreated"])); + if (output[_DC] != null) { + contents[_DC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DC])); } - if (output["DateUpdated"] !== undefined) { - contents.DateUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateUpdated"])); + if (output[_DU] != null) { + contents[_DU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DU])); } if (output.OptionSettings === "") { - contents.OptionSettings = []; - } else if (output["OptionSettings"] !== undefined && output["OptionSettings"]["member"] !== undefined) { - contents.OptionSettings = de_ConfigurationOptionSettingsList( - __getArrayIfSingleItem(output["OptionSettings"]["member"]), - context - ); + contents[_OS] = []; + } else if (output[_OS] != null && output[_OS][_m] != null) { + contents[_OS] = de_ConfigurationOptionSettingsList(__getArrayIfSingleItem(output[_OS][_m]), context); } return contents; }; @@ -5800,12 +5773,9 @@ const de_ConfigurationSettingsDescriptions = ( ): ConfigurationSettingsDescriptions => { const contents: any = {}; if (output.ConfigurationSettings === "") { - contents.ConfigurationSettings = []; - } else if (output["ConfigurationSettings"] !== undefined && output["ConfigurationSettings"]["member"] !== undefined) { - contents.ConfigurationSettings = de_ConfigurationSettingsDescriptionList( - __getArrayIfSingleItem(output["ConfigurationSettings"]["member"]), - context - ); + contents[_CSo] = []; + } else if (output[_CSo] != null && output[_CSo][_m] != null) { + contents[_CSo] = de_ConfigurationSettingsDescriptionList(__getArrayIfSingleItem(output[_CSo][_m]), context); } return contents; }; @@ -5819,9 +5789,9 @@ const de_ConfigurationSettingsValidationMessages = ( ): ConfigurationSettingsValidationMessages => { const contents: any = {}; if (output.Messages === "") { - contents.Messages = []; - } else if (output["Messages"] !== undefined && output["Messages"]["member"] !== undefined) { - contents.Messages = de_ValidationMessagesList(__getArrayIfSingleItem(output["Messages"]["member"]), context); + contents[_M] = []; + } else if (output[_M] != null && output[_M][_m] != null) { + contents[_M] = de_ValidationMessagesList(__getArrayIfSingleItem(output[_M][_m]), context); } return contents; }; @@ -5842,29 +5812,29 @@ const de_ConfigurationTemplateNamesList = (output: any, context: __SerdeContext) */ const de_CPUUtilization = (output: any, context: __SerdeContext): CPUUtilization => { const contents: any = {}; - if (output["User"] !== undefined) { - contents.User = __strictParseFloat(output["User"]) as number; + if (output[_U] != null) { + contents[_U] = __strictParseFloat(output[_U]) as number; } - if (output["Nice"] !== undefined) { - contents.Nice = __strictParseFloat(output["Nice"]) as number; + if (output[_Ni] != null) { + contents[_Ni] = __strictParseFloat(output[_Ni]) as number; } - if (output["System"] !== undefined) { - contents.System = __strictParseFloat(output["System"]) as number; + if (output[_Sy] != null) { + contents[_Sy] = __strictParseFloat(output[_Sy]) as number; } - if (output["Idle"] !== undefined) { - contents.Idle = __strictParseFloat(output["Idle"]) as number; + if (output[_Id] != null) { + contents[_Id] = __strictParseFloat(output[_Id]) as number; } - if (output["IOWait"] !== undefined) { - contents.IOWait = __strictParseFloat(output["IOWait"]) as number; + if (output[_IOW] != null) { + contents[_IOW] = __strictParseFloat(output[_IOW]) as number; } - if (output["IRQ"] !== undefined) { - contents.IRQ = __strictParseFloat(output["IRQ"]) as number; + if (output[_IRQ] != null) { + contents[_IRQ] = __strictParseFloat(output[_IRQ]) as number; } - if (output["SoftIRQ"] !== undefined) { - contents.SoftIRQ = __strictParseFloat(output["SoftIRQ"]) as number; + if (output[_SIRQ] != null) { + contents[_SIRQ] = __strictParseFloat(output[_SIRQ]) as number; } - if (output["Privileged"] !== undefined) { - contents.Privileged = __strictParseFloat(output["Privileged"]) as number; + if (output[_Pr] != null) { + contents[_Pr] = __strictParseFloat(output[_Pr]) as number; } return contents; }; @@ -5874,11 +5844,11 @@ const de_CPUUtilization = (output: any, context: __SerdeContext): CPUUtilization */ const de_CreatePlatformVersionResult = (output: any, context: __SerdeContext): CreatePlatformVersionResult => { const contents: any = {}; - if (output["PlatformSummary"] !== undefined) { - contents.PlatformSummary = de_PlatformSummary(output["PlatformSummary"], context); + if (output[_PS] != null) { + contents[_PS] = de_PlatformSummary(output[_PS], context); } - if (output["Builder"] !== undefined) { - contents.Builder = de_Builder(output["Builder"], context); + if (output[_B] != null) { + contents[_B] = de_Builder(output[_B], context); } return contents; }; @@ -5891,8 +5861,8 @@ const de_CreateStorageLocationResultMessage = ( context: __SerdeContext ): CreateStorageLocationResultMessage => { const contents: any = {}; - if (output["S3Bucket"] !== undefined) { - contents.S3Bucket = __expectString(output["S3Bucket"]); + if (output[_SBu] != null) { + contents[_SBu] = __expectString(output[_SBu]); } return contents; }; @@ -5902,11 +5872,11 @@ const de_CreateStorageLocationResultMessage = ( */ const de_CustomAmi = (output: any, context: __SerdeContext): CustomAmi => { const contents: any = {}; - if (output["VirtualizationType"] !== undefined) { - contents.VirtualizationType = __expectString(output["VirtualizationType"]); + if (output[_VTi] != null) { + contents[_VTi] = __expectString(output[_VTi]); } - if (output["ImageId"] !== undefined) { - contents.ImageId = __expectString(output["ImageId"]); + if (output[_II] != null) { + contents[_II] = __expectString(output[_II]); } return contents; }; @@ -5927,8 +5897,8 @@ const de_CustomAmiList = (output: any, context: __SerdeContext): CustomAmi[] => */ const de_DeletePlatformVersionResult = (output: any, context: __SerdeContext): DeletePlatformVersionResult => { const contents: any = {}; - if (output["PlatformSummary"] !== undefined) { - contents.PlatformSummary = de_PlatformSummary(output["PlatformSummary"], context); + if (output[_PS] != null) { + contents[_PS] = de_PlatformSummary(output[_PS], context); } return contents; }; @@ -5938,17 +5908,17 @@ const de_DeletePlatformVersionResult = (output: any, context: __SerdeContext): D */ const de_Deployment = (output: any, context: __SerdeContext): Deployment => { const contents: any = {}; - if (output["VersionLabel"] !== undefined) { - contents.VersionLabel = __expectString(output["VersionLabel"]); + if (output[_VLe] != null) { + contents[_VLe] = __expectString(output[_VLe]); } - if (output["DeploymentId"] !== undefined) { - contents.DeploymentId = __strictParseLong(output["DeploymentId"]) as number; + if (output[_DI] != null) { + contents[_DI] = __strictParseLong(output[_DI]) as number; } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["DeploymentTime"] !== undefined) { - contents.DeploymentTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DeploymentTime"])); + if (output[_DT] != null) { + contents[_DT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DT])); } return contents; }; @@ -5958,8 +5928,8 @@ const de_Deployment = (output: any, context: __SerdeContext): Deployment => { */ const de_DescribeAccountAttributesResult = (output: any, context: __SerdeContext): DescribeAccountAttributesResult => { const contents: any = {}; - if (output["ResourceQuotas"] !== undefined) { - contents.ResourceQuotas = de_ResourceQuotas(output["ResourceQuotas"], context); + if (output[_RQ] != null) { + contents[_RQ] = de_ResourceQuotas(output[_RQ], context); } return contents; }; @@ -5969,31 +5939,31 @@ const de_DescribeAccountAttributesResult = (output: any, context: __SerdeContext */ const de_DescribeEnvironmentHealthResult = (output: any, context: __SerdeContext): DescribeEnvironmentHealthResult => { const contents: any = {}; - if (output["EnvironmentName"] !== undefined) { - contents.EnvironmentName = __expectString(output["EnvironmentName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["HealthStatus"] !== undefined) { - contents.HealthStatus = __expectString(output["HealthStatus"]); + if (output[_HS] != null) { + contents[_HS] = __expectString(output[_HS]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Color"] !== undefined) { - contents.Color = __expectString(output["Color"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } if (output.Causes === "") { - contents.Causes = []; - } else if (output["Causes"] !== undefined && output["Causes"]["member"] !== undefined) { - contents.Causes = de_Causes(__getArrayIfSingleItem(output["Causes"]["member"]), context); + contents[_Ca] = []; + } else if (output[_Ca] != null && output[_Ca][_m] != null) { + contents[_Ca] = de_Causes(__getArrayIfSingleItem(output[_Ca][_m]), context); } - if (output["ApplicationMetrics"] !== undefined) { - contents.ApplicationMetrics = de_ApplicationMetrics(output["ApplicationMetrics"], context); + if (output[_AM] != null) { + contents[_AM] = de_ApplicationMetrics(output[_AM], context); } - if (output["InstancesHealth"] !== undefined) { - contents.InstancesHealth = de_InstanceHealthSummary(output["InstancesHealth"], context); + if (output[_IH] != null) { + contents[_IH] = de_InstanceHealthSummary(output[_IH], context); } - if (output["RefreshedAt"] !== undefined) { - contents.RefreshedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RefreshedAt"])); + if (output[_RAe] != null) { + contents[_RAe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RAe])); } return contents; }; @@ -6007,18 +5977,12 @@ const de_DescribeEnvironmentManagedActionHistoryResult = ( ): DescribeEnvironmentManagedActionHistoryResult => { const contents: any = {}; if (output.ManagedActionHistoryItems === "") { - contents.ManagedActionHistoryItems = []; - } else if ( - output["ManagedActionHistoryItems"] !== undefined && - output["ManagedActionHistoryItems"]["member"] !== undefined - ) { - contents.ManagedActionHistoryItems = de_ManagedActionHistoryItems( - __getArrayIfSingleItem(output["ManagedActionHistoryItems"]["member"]), - context - ); - } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + contents[_MAHI] = []; + } else if (output[_MAHI] != null && output[_MAHI][_m] != null) { + contents[_MAHI] = de_ManagedActionHistoryItems(__getArrayIfSingleItem(output[_MAHI][_m]), context); + } + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -6032,9 +5996,9 @@ const de_DescribeEnvironmentManagedActionsResult = ( ): DescribeEnvironmentManagedActionsResult => { const contents: any = {}; if (output.ManagedActions === "") { - contents.ManagedActions = []; - } else if (output["ManagedActions"] !== undefined && output["ManagedActions"]["member"] !== undefined) { - contents.ManagedActions = de_ManagedActions(__getArrayIfSingleItem(output["ManagedActions"]["member"]), context); + contents[_MA] = []; + } else if (output[_MA] != null && output[_MA][_m] != null) { + contents[_MA] = de_ManagedActions(__getArrayIfSingleItem(output[_MA][_m]), context); } return contents; }; @@ -6045,18 +6009,15 @@ const de_DescribeEnvironmentManagedActionsResult = ( const de_DescribeInstancesHealthResult = (output: any, context: __SerdeContext): DescribeInstancesHealthResult => { const contents: any = {}; if (output.InstanceHealthList === "") { - contents.InstanceHealthList = []; - } else if (output["InstanceHealthList"] !== undefined && output["InstanceHealthList"]["member"] !== undefined) { - contents.InstanceHealthList = de_InstanceHealthList( - __getArrayIfSingleItem(output["InstanceHealthList"]["member"]), - context - ); + contents[_IHL] = []; + } else if (output[_IHL] != null && output[_IHL][_m] != null) { + contents[_IHL] = de_InstanceHealthList(__getArrayIfSingleItem(output[_IHL][_m]), context); } - if (output["RefreshedAt"] !== undefined) { - contents.RefreshedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RefreshedAt"])); + if (output[_RAe] != null) { + contents[_RAe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RAe])); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -6066,8 +6027,8 @@ const de_DescribeInstancesHealthResult = (output: any, context: __SerdeContext): */ const de_DescribePlatformVersionResult = (output: any, context: __SerdeContext): DescribePlatformVersionResult => { const contents: any = {}; - if (output["PlatformDescription"] !== undefined) { - contents.PlatformDescription = de_PlatformDescription(output["PlatformDescription"], context); + if (output[_PD] != null) { + contents[_PD] = de_PlatformDescription(output[_PD], context); } return contents; }; @@ -6080,8 +6041,8 @@ const de_ElasticBeanstalkServiceException = ( context: __SerdeContext ): ElasticBeanstalkServiceException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -6091,73 +6052,70 @@ const de_ElasticBeanstalkServiceException = ( */ const de_EnvironmentDescription = (output: any, context: __SerdeContext): EnvironmentDescription => { const contents: any = {}; - if (output["EnvironmentName"] !== undefined) { - contents.EnvironmentName = __expectString(output["EnvironmentName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["EnvironmentId"] !== undefined) { - contents.EnvironmentId = __expectString(output["EnvironmentId"]); + if (output[_EI] != null) { + contents[_EI] = __expectString(output[_EI]); } - if (output["ApplicationName"] !== undefined) { - contents.ApplicationName = __expectString(output["ApplicationName"]); + if (output[_ANp] != null) { + contents[_ANp] = __expectString(output[_ANp]); } - if (output["VersionLabel"] !== undefined) { - contents.VersionLabel = __expectString(output["VersionLabel"]); + if (output[_VLe] != null) { + contents[_VLe] = __expectString(output[_VLe]); } - if (output["SolutionStackName"] !== undefined) { - contents.SolutionStackName = __expectString(output["SolutionStackName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } - if (output["PlatformArn"] !== undefined) { - contents.PlatformArn = __expectString(output["PlatformArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["EndpointURL"] !== undefined) { - contents.EndpointURL = __expectString(output["EndpointURL"]); + if (output[_EURL] != null) { + contents[_EURL] = __expectString(output[_EURL]); } - if (output["CNAME"] !== undefined) { - contents.CNAME = __expectString(output["CNAME"]); + if (output[_CNAME] != null) { + contents[_CNAME] = __expectString(output[_CNAME]); } - if (output["DateCreated"] !== undefined) { - contents.DateCreated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateCreated"])); + if (output[_DC] != null) { + contents[_DC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DC])); } - if (output["DateUpdated"] !== undefined) { - contents.DateUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateUpdated"])); + if (output[_DU] != null) { + contents[_DU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DU])); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["AbortableOperationInProgress"] !== undefined) { - contents.AbortableOperationInProgress = __parseBoolean(output["AbortableOperationInProgress"]); + if (output[_AOIP] != null) { + contents[_AOIP] = __parseBoolean(output[_AOIP]); } - if (output["Health"] !== undefined) { - contents.Health = __expectString(output["Health"]); + if (output[_H] != null) { + contents[_H] = __expectString(output[_H]); } - if (output["HealthStatus"] !== undefined) { - contents.HealthStatus = __expectString(output["HealthStatus"]); + if (output[_HS] != null) { + contents[_HS] = __expectString(output[_HS]); } - if (output["Resources"] !== undefined) { - contents.Resources = de_EnvironmentResourcesDescription(output["Resources"], context); + if (output[_Re] != null) { + contents[_Re] = de_EnvironmentResourcesDescription(output[_Re], context); } - if (output["Tier"] !== undefined) { - contents.Tier = de_EnvironmentTier(output["Tier"], context); + if (output[_Ti] != null) { + contents[_Ti] = de_EnvironmentTier(output[_Ti], context); } if (output.EnvironmentLinks === "") { - contents.EnvironmentLinks = []; - } else if (output["EnvironmentLinks"] !== undefined && output["EnvironmentLinks"]["member"] !== undefined) { - contents.EnvironmentLinks = de_EnvironmentLinks( - __getArrayIfSingleItem(output["EnvironmentLinks"]["member"]), - context - ); + contents[_EL] = []; + } else if (output[_EL] != null && output[_EL][_m] != null) { + contents[_EL] = de_EnvironmentLinks(__getArrayIfSingleItem(output[_EL][_m]), context); } - if (output["EnvironmentArn"] !== undefined) { - contents.EnvironmentArn = __expectString(output["EnvironmentArn"]); + if (output[_EA] != null) { + contents[_EA] = __expectString(output[_EA]); } - if (output["OperationsRole"] !== undefined) { - contents.OperationsRole = __expectString(output["OperationsRole"]); + if (output[_OR] != null) { + contents[_OR] = __expectString(output[_OR]); } return contents; }; @@ -6179,15 +6137,12 @@ const de_EnvironmentDescriptionsList = (output: any, context: __SerdeContext): E const de_EnvironmentDescriptionsMessage = (output: any, context: __SerdeContext): EnvironmentDescriptionsMessage => { const contents: any = {}; if (output.Environments === "") { - contents.Environments = []; - } else if (output["Environments"] !== undefined && output["Environments"]["member"] !== undefined) { - contents.Environments = de_EnvironmentDescriptionsList( - __getArrayIfSingleItem(output["Environments"]["member"]), - context - ); + contents[_En] = []; + } else if (output[_En] != null && output[_En][_m] != null) { + contents[_En] = de_EnvironmentDescriptionsList(__getArrayIfSingleItem(output[_En][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -6197,17 +6152,17 @@ const de_EnvironmentDescriptionsMessage = (output: any, context: __SerdeContext) */ const de_EnvironmentInfoDescription = (output: any, context: __SerdeContext): EnvironmentInfoDescription => { const contents: any = {}; - if (output["InfoType"] !== undefined) { - contents.InfoType = __expectString(output["InfoType"]); + if (output[_IT] != null) { + contents[_IT] = __expectString(output[_IT]); } - if (output["Ec2InstanceId"] !== undefined) { - contents.Ec2InstanceId = __expectString(output["Ec2InstanceId"]); + if (output[_EII] != null) { + contents[_EII] = __expectString(output[_EII]); } - if (output["SampleTimestamp"] !== undefined) { - contents.SampleTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SampleTimestamp"])); + if (output[_STa] != null) { + contents[_STa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STa])); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -6228,11 +6183,11 @@ const de_EnvironmentInfoDescriptionList = (output: any, context: __SerdeContext) */ const de_EnvironmentLink = (output: any, context: __SerdeContext): EnvironmentLink => { const contents: any = {}; - if (output["LinkName"] !== undefined) { - contents.LinkName = __expectString(output["LinkName"]); + if (output[_LN] != null) { + contents[_LN] = __expectString(output[_LN]); } - if (output["EnvironmentName"] !== undefined) { - contents.EnvironmentName = __expectString(output["EnvironmentName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } return contents; }; @@ -6253,52 +6208,43 @@ const de_EnvironmentLinks = (output: any, context: __SerdeContext): EnvironmentL */ const de_EnvironmentResourceDescription = (output: any, context: __SerdeContext): EnvironmentResourceDescription => { const contents: any = {}; - if (output["EnvironmentName"] !== undefined) { - contents.EnvironmentName = __expectString(output["EnvironmentName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } if (output.AutoScalingGroups === "") { - contents.AutoScalingGroups = []; - } else if (output["AutoScalingGroups"] !== undefined && output["AutoScalingGroups"]["member"] !== undefined) { - contents.AutoScalingGroups = de_AutoScalingGroupList( - __getArrayIfSingleItem(output["AutoScalingGroups"]["member"]), - context - ); + contents[_ASG] = []; + } else if (output[_ASG] != null && output[_ASG][_m] != null) { + contents[_ASG] = de_AutoScalingGroupList(__getArrayIfSingleItem(output[_ASG][_m]), context); } if (output.Instances === "") { - contents.Instances = []; - } else if (output["Instances"] !== undefined && output["Instances"]["member"] !== undefined) { - contents.Instances = de_InstanceList(__getArrayIfSingleItem(output["Instances"]["member"]), context); + contents[_In] = []; + } else if (output[_In] != null && output[_In][_m] != null) { + contents[_In] = de_InstanceList(__getArrayIfSingleItem(output[_In][_m]), context); } if (output.LaunchConfigurations === "") { - contents.LaunchConfigurations = []; - } else if (output["LaunchConfigurations"] !== undefined && output["LaunchConfigurations"]["member"] !== undefined) { - contents.LaunchConfigurations = de_LaunchConfigurationList( - __getArrayIfSingleItem(output["LaunchConfigurations"]["member"]), - context - ); + contents[_LC] = []; + } else if (output[_LC] != null && output[_LC][_m] != null) { + contents[_LC] = de_LaunchConfigurationList(__getArrayIfSingleItem(output[_LC][_m]), context); } if (output.LaunchTemplates === "") { - contents.LaunchTemplates = []; - } else if (output["LaunchTemplates"] !== undefined && output["LaunchTemplates"]["member"] !== undefined) { - contents.LaunchTemplates = de_LaunchTemplateList( - __getArrayIfSingleItem(output["LaunchTemplates"]["member"]), - context - ); + contents[_LT] = []; + } else if (output[_LT] != null && output[_LT][_m] != null) { + contents[_LT] = de_LaunchTemplateList(__getArrayIfSingleItem(output[_LT][_m]), context); } if (output.LoadBalancers === "") { - contents.LoadBalancers = []; - } else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { - contents.LoadBalancers = de_LoadBalancerList(__getArrayIfSingleItem(output["LoadBalancers"]["member"]), context); + contents[_LB] = []; + } else if (output[_LB] != null && output[_LB][_m] != null) { + contents[_LB] = de_LoadBalancerList(__getArrayIfSingleItem(output[_LB][_m]), context); } if (output.Triggers === "") { - contents.Triggers = []; - } else if (output["Triggers"] !== undefined && output["Triggers"]["member"] !== undefined) { - contents.Triggers = de_TriggerList(__getArrayIfSingleItem(output["Triggers"]["member"]), context); + contents[_Tr] = []; + } else if (output[_Tr] != null && output[_Tr][_m] != null) { + contents[_Tr] = de_TriggerList(__getArrayIfSingleItem(output[_Tr][_m]), context); } if (output.Queues === "") { - contents.Queues = []; - } else if (output["Queues"] !== undefined && output["Queues"]["member"] !== undefined) { - contents.Queues = de_QueueList(__getArrayIfSingleItem(output["Queues"]["member"]), context); + contents[_Q] = []; + } else if (output[_Q] != null && output[_Q][_m] != null) { + contents[_Q] = de_QueueList(__getArrayIfSingleItem(output[_Q][_m]), context); } return contents; }; @@ -6311,8 +6257,8 @@ const de_EnvironmentResourceDescriptionsMessage = ( context: __SerdeContext ): EnvironmentResourceDescriptionsMessage => { const contents: any = {}; - if (output["EnvironmentResources"] !== undefined) { - contents.EnvironmentResources = de_EnvironmentResourceDescription(output["EnvironmentResources"], context); + if (output[_ER] != null) { + contents[_ER] = de_EnvironmentResourceDescription(output[_ER], context); } return contents; }; @@ -6322,8 +6268,8 @@ const de_EnvironmentResourceDescriptionsMessage = ( */ const de_EnvironmentResourcesDescription = (output: any, context: __SerdeContext): EnvironmentResourcesDescription => { const contents: any = {}; - if (output["LoadBalancer"] !== undefined) { - contents.LoadBalancer = de_LoadBalancerDescription(output["LoadBalancer"], context); + if (output[_LBo] != null) { + contents[_LBo] = de_LoadBalancerDescription(output[_LBo], context); } return contents; }; @@ -6333,14 +6279,14 @@ const de_EnvironmentResourcesDescription = (output: any, context: __SerdeContext */ const de_EnvironmentTier = (output: any, context: __SerdeContext): EnvironmentTier => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_Ty] != null) { + contents[_Ty] = __expectString(output[_Ty]); } - if (output["Version"] !== undefined) { - contents.Version = __expectString(output["Version"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -6350,32 +6296,32 @@ const de_EnvironmentTier = (output: any, context: __SerdeContext): EnvironmentTi */ const de_EventDescription = (output: any, context: __SerdeContext): EventDescription => { const contents: any = {}; - if (output["EventDate"] !== undefined) { - contents.EventDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EventDate"])); + if (output[_ED] != null) { + contents[_ED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ED])); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["ApplicationName"] !== undefined) { - contents.ApplicationName = __expectString(output["ApplicationName"]); + if (output[_ANp] != null) { + contents[_ANp] = __expectString(output[_ANp]); } - if (output["VersionLabel"] !== undefined) { - contents.VersionLabel = __expectString(output["VersionLabel"]); + if (output[_VLe] != null) { + contents[_VLe] = __expectString(output[_VLe]); } - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["EnvironmentName"] !== undefined) { - contents.EnvironmentName = __expectString(output["EnvironmentName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["PlatformArn"] !== undefined) { - contents.PlatformArn = __expectString(output["PlatformArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } - if (output["RequestId"] !== undefined) { - contents.RequestId = __expectString(output["RequestId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } - if (output["Severity"] !== undefined) { - contents.Severity = __expectString(output["Severity"]); + if (output[_Se] != null) { + contents[_Se] = __expectString(output[_Se]); } return contents; }; @@ -6397,12 +6343,12 @@ const de_EventDescriptionList = (output: any, context: __SerdeContext): EventDes const de_EventDescriptionsMessage = (output: any, context: __SerdeContext): EventDescriptionsMessage => { const contents: any = {}; if (output.Events === "") { - contents.Events = []; - } else if (output["Events"] !== undefined && output["Events"]["member"] !== undefined) { - contents.Events = de_EventDescriptionList(__getArrayIfSingleItem(output["Events"]["member"]), context); + contents[_Ev] = []; + } else if (output[_Ev] != null && output[_Ev][_m] != null) { + contents[_Ev] = de_EventDescriptionList(__getArrayIfSingleItem(output[_Ev][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -6412,8 +6358,8 @@ const de_EventDescriptionsMessage = (output: any, context: __SerdeContext): Even */ const de_Instance = (output: any, context: __SerdeContext): Instance => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id_] != null) { + contents[_Id_] = __expectString(output[_Id_]); } return contents; }; @@ -6434,29 +6380,29 @@ const de_InstanceHealthList = (output: any, context: __SerdeContext): SingleInst */ const de_InstanceHealthSummary = (output: any, context: __SerdeContext): InstanceHealthSummary => { const contents: any = {}; - if (output["NoData"] !== undefined) { - contents.NoData = __strictParseInt32(output["NoData"]) as number; + if (output[_ND] != null) { + contents[_ND] = __strictParseInt32(output[_ND]) as number; } - if (output["Unknown"] !== undefined) { - contents.Unknown = __strictParseInt32(output["Unknown"]) as number; + if (output[_Un] != null) { + contents[_Un] = __strictParseInt32(output[_Un]) as number; } - if (output["Pending"] !== undefined) { - contents.Pending = __strictParseInt32(output["Pending"]) as number; + if (output[_Pe] != null) { + contents[_Pe] = __strictParseInt32(output[_Pe]) as number; } - if (output["Ok"] !== undefined) { - contents.Ok = __strictParseInt32(output["Ok"]) as number; + if (output[_Ok] != null) { + contents[_Ok] = __strictParseInt32(output[_Ok]) as number; } - if (output["Info"] !== undefined) { - contents.Info = __strictParseInt32(output["Info"]) as number; + if (output[_Inf] != null) { + contents[_Inf] = __strictParseInt32(output[_Inf]) as number; } - if (output["Warning"] !== undefined) { - contents.Warning = __strictParseInt32(output["Warning"]) as number; + if (output[_W] != null) { + contents[_W] = __strictParseInt32(output[_W]) as number; } - if (output["Degraded"] !== undefined) { - contents.Degraded = __strictParseInt32(output["Degraded"]) as number; + if (output[_De] != null) { + contents[_De] = __strictParseInt32(output[_De]) as number; } - if (output["Severe"] !== undefined) { - contents.Severe = __strictParseInt32(output["Severe"]) as number; + if (output[_Sev] != null) { + contents[_Sev] = __strictParseInt32(output[_Sev]) as number; } return contents; }; @@ -6477,8 +6423,8 @@ const de_InstanceList = (output: any, context: __SerdeContext): Instance[] => { */ const de_InsufficientPrivilegesException = (output: any, context: __SerdeContext): InsufficientPrivilegesException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -6488,8 +6434,8 @@ const de_InsufficientPrivilegesException = (output: any, context: __SerdeContext */ const de_InvalidRequestException = (output: any, context: __SerdeContext): InvalidRequestException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -6499,29 +6445,29 @@ const de_InvalidRequestException = (output: any, context: __SerdeContext): Inval */ const de_Latency = (output: any, context: __SerdeContext): Latency => { const contents: any = {}; - if (output["P999"] !== undefined) { - contents.P999 = __strictParseFloat(output["P999"]) as number; + if (output[_P_] != null) { + contents[_P_] = __strictParseFloat(output[_P_]) as number; } - if (output["P99"] !== undefined) { - contents.P99 = __strictParseFloat(output["P99"]) as number; + if (output[_P__] != null) { + contents[_P__] = __strictParseFloat(output[_P__]) as number; } - if (output["P95"] !== undefined) { - contents.P95 = __strictParseFloat(output["P95"]) as number; + if (output[_P___] != null) { + contents[_P___] = __strictParseFloat(output[_P___]) as number; } - if (output["P90"] !== undefined) { - contents.P90 = __strictParseFloat(output["P90"]) as number; + if (output[_P____] != null) { + contents[_P____] = __strictParseFloat(output[_P____]) as number; } - if (output["P85"] !== undefined) { - contents.P85 = __strictParseFloat(output["P85"]) as number; + if (output[_P_____] != null) { + contents[_P_____] = __strictParseFloat(output[_P_____]) as number; } - if (output["P75"] !== undefined) { - contents.P75 = __strictParseFloat(output["P75"]) as number; + if (output[_P______] != null) { + contents[_P______] = __strictParseFloat(output[_P______]) as number; } - if (output["P50"] !== undefined) { - contents.P50 = __strictParseFloat(output["P50"]) as number; + if (output[_P_______] != null) { + contents[_P_______] = __strictParseFloat(output[_P_______]) as number; } - if (output["P10"] !== undefined) { - contents.P10 = __strictParseFloat(output["P10"]) as number; + if (output[_P________] != null) { + contents[_P________] = __strictParseFloat(output[_P________]) as number; } return contents; }; @@ -6531,8 +6477,8 @@ const de_Latency = (output: any, context: __SerdeContext): Latency => { */ const de_LaunchConfiguration = (output: any, context: __SerdeContext): LaunchConfiguration => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } return contents; }; @@ -6553,8 +6499,8 @@ const de_LaunchConfigurationList = (output: any, context: __SerdeContext): Launc */ const de_LaunchTemplate = (output: any, context: __SerdeContext): LaunchTemplate => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id_] != null) { + contents[_Id_] = __expectString(output[_Id_]); } return contents; }; @@ -6579,20 +6525,14 @@ const de_ListAvailableSolutionStacksResultMessage = ( ): ListAvailableSolutionStacksResultMessage => { const contents: any = {}; if (output.SolutionStacks === "") { - contents.SolutionStacks = []; - } else if (output["SolutionStacks"] !== undefined && output["SolutionStacks"]["member"] !== undefined) { - contents.SolutionStacks = de_AvailableSolutionStackNamesList( - __getArrayIfSingleItem(output["SolutionStacks"]["member"]), - context - ); + contents[_SS] = []; + } else if (output[_SS] != null && output[_SS][_m] != null) { + contents[_SS] = de_AvailableSolutionStackNamesList(__getArrayIfSingleItem(output[_SS][_m]), context); } if (output.SolutionStackDetails === "") { - contents.SolutionStackDetails = []; - } else if (output["SolutionStackDetails"] !== undefined && output["SolutionStackDetails"]["member"] !== undefined) { - contents.SolutionStackDetails = de_AvailableSolutionStackDetailsList( - __getArrayIfSingleItem(output["SolutionStackDetails"]["member"]), - context - ); + contents[_SSD] = []; + } else if (output[_SSD] != null && output[_SSD][_m] != null) { + contents[_SSD] = de_AvailableSolutionStackDetailsList(__getArrayIfSingleItem(output[_SSD][_m]), context); } return contents; }; @@ -6602,11 +6542,11 @@ const de_ListAvailableSolutionStacksResultMessage = ( */ const de_Listener = (output: any, context: __SerdeContext): Listener => { const contents: any = {}; - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_Pro] != null) { + contents[_Pro] = __expectString(output[_Pro]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_Po] != null) { + contents[_Po] = __strictParseInt32(output[_Po]) as number; } return contents; }; @@ -6617,18 +6557,12 @@ const de_Listener = (output: any, context: __SerdeContext): Listener => { const de_ListPlatformBranchesResult = (output: any, context: __SerdeContext): ListPlatformBranchesResult => { const contents: any = {}; if (output.PlatformBranchSummaryList === "") { - contents.PlatformBranchSummaryList = []; - } else if ( - output["PlatformBranchSummaryList"] !== undefined && - output["PlatformBranchSummaryList"]["member"] !== undefined - ) { - contents.PlatformBranchSummaryList = de_PlatformBranchSummaryList( - __getArrayIfSingleItem(output["PlatformBranchSummaryList"]["member"]), - context - ); - } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + contents[_PBSL] = []; + } else if (output[_PBSL] != null && output[_PBSL][_m] != null) { + contents[_PBSL] = de_PlatformBranchSummaryList(__getArrayIfSingleItem(output[_PBSL][_m]), context); + } + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -6639,15 +6573,12 @@ const de_ListPlatformBranchesResult = (output: any, context: __SerdeContext): Li const de_ListPlatformVersionsResult = (output: any, context: __SerdeContext): ListPlatformVersionsResult => { const contents: any = {}; if (output.PlatformSummaryList === "") { - contents.PlatformSummaryList = []; - } else if (output["PlatformSummaryList"] !== undefined && output["PlatformSummaryList"]["member"] !== undefined) { - contents.PlatformSummaryList = de_PlatformSummaryList( - __getArrayIfSingleItem(output["PlatformSummaryList"]["member"]), - context - ); + contents[_PSL] = []; + } else if (output[_PSL] != null && output[_PSL][_m] != null) { + contents[_PSL] = de_PlatformSummaryList(__getArrayIfSingleItem(output[_PSL][_m]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -6668,8 +6599,8 @@ const de_LoadAverage = (output: any, context: __SerdeContext): number[] => { */ const de_LoadBalancer = (output: any, context: __SerdeContext): LoadBalancer => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } return contents; }; @@ -6679,19 +6610,16 @@ const de_LoadBalancer = (output: any, context: __SerdeContext): LoadBalancer => */ const de_LoadBalancerDescription = (output: any, context: __SerdeContext): LoadBalancerDescription => { const contents: any = {}; - if (output["LoadBalancerName"] !== undefined) { - contents.LoadBalancerName = __expectString(output["LoadBalancerName"]); + if (output[_LBN] != null) { + contents[_LBN] = __expectString(output[_LBN]); } - if (output["Domain"] !== undefined) { - contents.Domain = __expectString(output["Domain"]); + if (output[_Do] != null) { + contents[_Do] = __expectString(output[_Do]); } if (output.Listeners === "") { - contents.Listeners = []; - } else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { - contents.Listeners = de_LoadBalancerListenersDescription( - __getArrayIfSingleItem(output["Listeners"]["member"]), - context - ); + contents[_Li] = []; + } else if (output[_Li] != null && output[_Li][_m] != null) { + contents[_Li] = de_LoadBalancerListenersDescription(__getArrayIfSingleItem(output[_Li][_m]), context); } return contents; }; @@ -6723,20 +6651,20 @@ const de_LoadBalancerListenersDescription = (output: any, context: __SerdeContex */ const de_ManagedAction = (output: any, context: __SerdeContext): ManagedAction => { const contents: any = {}; - if (output["ActionId"] !== undefined) { - contents.ActionId = __expectString(output["ActionId"]); + if (output[_AI] != null) { + contents[_AI] = __expectString(output[_AI]); } - if (output["ActionDescription"] !== undefined) { - contents.ActionDescription = __expectString(output["ActionDescription"]); + if (output[_AD] != null) { + contents[_AD] = __expectString(output[_AD]); } - if (output["ActionType"] !== undefined) { - contents.ActionType = __expectString(output["ActionType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["WindowStartTime"] !== undefined) { - contents.WindowStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["WindowStartTime"])); + if (output[_WST] != null) { + contents[_WST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_WST])); } return contents; }; @@ -6746,29 +6674,29 @@ const de_ManagedAction = (output: any, context: __SerdeContext): ManagedAction = */ const de_ManagedActionHistoryItem = (output: any, context: __SerdeContext): ManagedActionHistoryItem => { const contents: any = {}; - if (output["ActionId"] !== undefined) { - contents.ActionId = __expectString(output["ActionId"]); + if (output[_AI] != null) { + contents[_AI] = __expectString(output[_AI]); } - if (output["ActionType"] !== undefined) { - contents.ActionType = __expectString(output["ActionType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["ActionDescription"] !== undefined) { - contents.ActionDescription = __expectString(output["ActionDescription"]); + if (output[_AD] != null) { + contents[_AD] = __expectString(output[_AD]); } - if (output["FailureType"] !== undefined) { - contents.FailureType = __expectString(output["FailureType"]); + if (output[_FTa] != null) { + contents[_FTa] = __expectString(output[_FTa]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["FailureDescription"] !== undefined) { - contents.FailureDescription = __expectString(output["FailureDescription"]); + if (output[_FD] != null) { + contents[_FD] = __expectString(output[_FD]); } - if (output["ExecutedTime"] !== undefined) { - contents.ExecutedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ExecutedTime"])); + if (output[_ETx] != null) { + contents[_ETx] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ETx])); } - if (output["FinishedTime"] !== undefined) { - contents.FinishedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["FinishedTime"])); + if (output[_FTi] != null) { + contents[_FTi] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_FTi])); } return contents; }; @@ -6792,8 +6720,8 @@ const de_ManagedActionInvalidStateException = ( context: __SerdeContext ): ManagedActionInvalidStateException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -6814,14 +6742,14 @@ const de_ManagedActions = (output: any, context: __SerdeContext): ManagedAction[ */ const de_MaxAgeRule = (output: any, context: __SerdeContext): MaxAgeRule => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["MaxAgeInDays"] !== undefined) { - contents.MaxAgeInDays = __strictParseInt32(output["MaxAgeInDays"]) as number; + if (output[_MAID] != null) { + contents[_MAID] = __strictParseInt32(output[_MAID]) as number; } - if (output["DeleteSourceFromS3"] !== undefined) { - contents.DeleteSourceFromS3 = __parseBoolean(output["DeleteSourceFromS3"]); + if (output[_DSFS] != null) { + contents[_DSFS] = __parseBoolean(output[_DSFS]); } return contents; }; @@ -6831,14 +6759,14 @@ const de_MaxAgeRule = (output: any, context: __SerdeContext): MaxAgeRule => { */ const de_MaxCountRule = (output: any, context: __SerdeContext): MaxCountRule => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["MaxCount"] !== undefined) { - contents.MaxCount = __strictParseInt32(output["MaxCount"]) as number; + if (output[_MC] != null) { + contents[_MC] = __strictParseInt32(output[_MC]) as number; } - if (output["DeleteSourceFromS3"] !== undefined) { - contents.DeleteSourceFromS3 = __parseBoolean(output["DeleteSourceFromS3"]); + if (output[_DSFS] != null) { + contents[_DSFS] = __parseBoolean(output[_DSFS]); } return contents; }; @@ -6848,8 +6776,8 @@ const de_MaxCountRule = (output: any, context: __SerdeContext): MaxCountRule => */ const de_OperationInProgressException = (output: any, context: __SerdeContext): OperationInProgressException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -6859,11 +6787,11 @@ const de_OperationInProgressException = (output: any, context: __SerdeContext): */ const de_OptionRestrictionRegex = (output: any, context: __SerdeContext): OptionRestrictionRegex => { const contents: any = {}; - if (output["Pattern"] !== undefined) { - contents.Pattern = __expectString(output["Pattern"]); + if (output[_Pa] != null) { + contents[_Pa] = __expectString(output[_Pa]); } - if (output["Label"] !== undefined) { - contents.Label = __expectString(output["Label"]); + if (output[_La] != null) { + contents[_La] = __expectString(output[_La]); } return contents; }; @@ -6873,25 +6801,22 @@ const de_OptionRestrictionRegex = (output: any, context: __SerdeContext): Option */ const de_PlatformBranchSummary = (output: any, context: __SerdeContext): PlatformBranchSummary => { const contents: any = {}; - if (output["PlatformName"] !== undefined) { - contents.PlatformName = __expectString(output["PlatformName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["BranchName"] !== undefined) { - contents.BranchName = __expectString(output["BranchName"]); + if (output[_BN] != null) { + contents[_BN] = __expectString(output[_BN]); } - if (output["LifecycleState"] !== undefined) { - contents.LifecycleState = __expectString(output["LifecycleState"]); + if (output[_LS] != null) { + contents[_LS] = __expectString(output[_LS]); } - if (output["BranchOrder"] !== undefined) { - contents.BranchOrder = __strictParseInt32(output["BranchOrder"]) as number; + if (output[_BO] != null) { + contents[_BO] = __strictParseInt32(output[_BO]) as number; } if (output.SupportedTierList === "") { - contents.SupportedTierList = []; - } else if (output["SupportedTierList"] !== undefined && output["SupportedTierList"]["member"] !== undefined) { - contents.SupportedTierList = de_SupportedTierList( - __getArrayIfSingleItem(output["SupportedTierList"]["member"]), - context - ); + contents[_STL] = []; + } else if (output[_STL] != null && output[_STL][_m] != null) { + contents[_STL] = de_SupportedTierList(__getArrayIfSingleItem(output[_STL][_m]), context); } return contents; }; @@ -6912,87 +6837,78 @@ const de_PlatformBranchSummaryList = (output: any, context: __SerdeContext): Pla */ const de_PlatformDescription = (output: any, context: __SerdeContext): PlatformDescription => { const contents: any = {}; - if (output["PlatformArn"] !== undefined) { - contents.PlatformArn = __expectString(output["PlatformArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } - if (output["PlatformOwner"] !== undefined) { - contents.PlatformOwner = __expectString(output["PlatformOwner"]); + if (output[_PO] != null) { + contents[_PO] = __expectString(output[_PO]); } - if (output["PlatformName"] !== undefined) { - contents.PlatformName = __expectString(output["PlatformName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PlatformVersion"] !== undefined) { - contents.PlatformVersion = __expectString(output["PlatformVersion"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["SolutionStackName"] !== undefined) { - contents.SolutionStackName = __expectString(output["SolutionStackName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } - if (output["PlatformStatus"] !== undefined) { - contents.PlatformStatus = __expectString(output["PlatformStatus"]); + if (output[_PSl] != null) { + contents[_PSl] = __expectString(output[_PSl]); } - if (output["DateCreated"] !== undefined) { - contents.DateCreated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateCreated"])); + if (output[_DC] != null) { + contents[_DC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DC])); } - if (output["DateUpdated"] !== undefined) { - contents.DateUpdated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DateUpdated"])); + if (output[_DU] != null) { + contents[_DU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DU])); } - if (output["PlatformCategory"] !== undefined) { - contents.PlatformCategory = __expectString(output["PlatformCategory"]); + if (output[_PC] != null) { + contents[_PC] = __expectString(output[_PC]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Maintainer"] !== undefined) { - contents.Maintainer = __expectString(output["Maintainer"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } - if (output["OperatingSystemName"] !== undefined) { - contents.OperatingSystemName = __expectString(output["OperatingSystemName"]); + if (output[_OSN] != null) { + contents[_OSN] = __expectString(output[_OSN]); } - if (output["OperatingSystemVersion"] !== undefined) { - contents.OperatingSystemVersion = __expectString(output["OperatingSystemVersion"]); + if (output[_OSV] != null) { + contents[_OSV] = __expectString(output[_OSV]); } if (output.ProgrammingLanguages === "") { - contents.ProgrammingLanguages = []; - } else if (output["ProgrammingLanguages"] !== undefined && output["ProgrammingLanguages"]["member"] !== undefined) { - contents.ProgrammingLanguages = de_PlatformProgrammingLanguages( - __getArrayIfSingleItem(output["ProgrammingLanguages"]["member"]), - context - ); + contents[_PL] = []; + } else if (output[_PL] != null && output[_PL][_m] != null) { + contents[_PL] = de_PlatformProgrammingLanguages(__getArrayIfSingleItem(output[_PL][_m]), context); } if (output.Frameworks === "") { - contents.Frameworks = []; - } else if (output["Frameworks"] !== undefined && output["Frameworks"]["member"] !== undefined) { - contents.Frameworks = de_PlatformFrameworks(__getArrayIfSingleItem(output["Frameworks"]["member"]), context); + contents[_Fr] = []; + } else if (output[_Fr] != null && output[_Fr][_m] != null) { + contents[_Fr] = de_PlatformFrameworks(__getArrayIfSingleItem(output[_Fr][_m]), context); } if (output.CustomAmiList === "") { - contents.CustomAmiList = []; - } else if (output["CustomAmiList"] !== undefined && output["CustomAmiList"]["member"] !== undefined) { - contents.CustomAmiList = de_CustomAmiList(__getArrayIfSingleItem(output["CustomAmiList"]["member"]), context); + contents[_CAL] = []; + } else if (output[_CAL] != null && output[_CAL][_m] != null) { + contents[_CAL] = de_CustomAmiList(__getArrayIfSingleItem(output[_CAL][_m]), context); } if (output.SupportedTierList === "") { - contents.SupportedTierList = []; - } else if (output["SupportedTierList"] !== undefined && output["SupportedTierList"]["member"] !== undefined) { - contents.SupportedTierList = de_SupportedTierList( - __getArrayIfSingleItem(output["SupportedTierList"]["member"]), - context - ); + contents[_STL] = []; + } else if (output[_STL] != null && output[_STL][_m] != null) { + contents[_STL] = de_SupportedTierList(__getArrayIfSingleItem(output[_STL][_m]), context); } if (output.SupportedAddonList === "") { - contents.SupportedAddonList = []; - } else if (output["SupportedAddonList"] !== undefined && output["SupportedAddonList"]["member"] !== undefined) { - contents.SupportedAddonList = de_SupportedAddonList( - __getArrayIfSingleItem(output["SupportedAddonList"]["member"]), - context - ); + contents[_SAL] = []; + } else if (output[_SAL] != null && output[_SAL][_m] != null) { + contents[_SAL] = de_SupportedAddonList(__getArrayIfSingleItem(output[_SAL][_m]), context); } - if (output["PlatformLifecycleState"] !== undefined) { - contents.PlatformLifecycleState = __expectString(output["PlatformLifecycleState"]); + if (output[_PLS] != null) { + contents[_PLS] = __expectString(output[_PLS]); } - if (output["PlatformBranchName"] !== undefined) { - contents.PlatformBranchName = __expectString(output["PlatformBranchName"]); + if (output[_PBN] != null) { + contents[_PBN] = __expectString(output[_PBN]); } - if (output["PlatformBranchLifecycleState"] !== undefined) { - contents.PlatformBranchLifecycleState = __expectString(output["PlatformBranchLifecycleState"]); + if (output[_PBLS] != null) { + contents[_PBLS] = __expectString(output[_PBLS]); } return contents; }; @@ -7002,11 +6918,11 @@ const de_PlatformDescription = (output: any, context: __SerdeContext): PlatformD */ const de_PlatformFramework = (output: any, context: __SerdeContext): PlatformFramework => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["Version"] !== undefined) { - contents.Version = __expectString(output["Version"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -7027,11 +6943,11 @@ const de_PlatformFrameworks = (output: any, context: __SerdeContext): PlatformFr */ const de_PlatformProgrammingLanguage = (output: any, context: __SerdeContext): PlatformProgrammingLanguage => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["Version"] !== undefined) { - contents.Version = __expectString(output["Version"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -7052,51 +6968,45 @@ const de_PlatformProgrammingLanguages = (output: any, context: __SerdeContext): */ const de_PlatformSummary = (output: any, context: __SerdeContext): PlatformSummary => { const contents: any = {}; - if (output["PlatformArn"] !== undefined) { - contents.PlatformArn = __expectString(output["PlatformArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } - if (output["PlatformOwner"] !== undefined) { - contents.PlatformOwner = __expectString(output["PlatformOwner"]); + if (output[_PO] != null) { + contents[_PO] = __expectString(output[_PO]); } - if (output["PlatformStatus"] !== undefined) { - contents.PlatformStatus = __expectString(output["PlatformStatus"]); + if (output[_PSl] != null) { + contents[_PSl] = __expectString(output[_PSl]); } - if (output["PlatformCategory"] !== undefined) { - contents.PlatformCategory = __expectString(output["PlatformCategory"]); + if (output[_PC] != null) { + contents[_PC] = __expectString(output[_PC]); } - if (output["OperatingSystemName"] !== undefined) { - contents.OperatingSystemName = __expectString(output["OperatingSystemName"]); + if (output[_OSN] != null) { + contents[_OSN] = __expectString(output[_OSN]); } - if (output["OperatingSystemVersion"] !== undefined) { - contents.OperatingSystemVersion = __expectString(output["OperatingSystemVersion"]); + if (output[_OSV] != null) { + contents[_OSV] = __expectString(output[_OSV]); } if (output.SupportedTierList === "") { - contents.SupportedTierList = []; - } else if (output["SupportedTierList"] !== undefined && output["SupportedTierList"]["member"] !== undefined) { - contents.SupportedTierList = de_SupportedTierList( - __getArrayIfSingleItem(output["SupportedTierList"]["member"]), - context - ); + contents[_STL] = []; + } else if (output[_STL] != null && output[_STL][_m] != null) { + contents[_STL] = de_SupportedTierList(__getArrayIfSingleItem(output[_STL][_m]), context); } if (output.SupportedAddonList === "") { - contents.SupportedAddonList = []; - } else if (output["SupportedAddonList"] !== undefined && output["SupportedAddonList"]["member"] !== undefined) { - contents.SupportedAddonList = de_SupportedAddonList( - __getArrayIfSingleItem(output["SupportedAddonList"]["member"]), - context - ); + contents[_SAL] = []; + } else if (output[_SAL] != null && output[_SAL][_m] != null) { + contents[_SAL] = de_SupportedAddonList(__getArrayIfSingleItem(output[_SAL][_m]), context); } - if (output["PlatformLifecycleState"] !== undefined) { - contents.PlatformLifecycleState = __expectString(output["PlatformLifecycleState"]); + if (output[_PLS] != null) { + contents[_PLS] = __expectString(output[_PLS]); } - if (output["PlatformVersion"] !== undefined) { - contents.PlatformVersion = __expectString(output["PlatformVersion"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["PlatformBranchName"] !== undefined) { - contents.PlatformBranchName = __expectString(output["PlatformBranchName"]); + if (output[_PBN] != null) { + contents[_PBN] = __expectString(output[_PBN]); } - if (output["PlatformBranchLifecycleState"] !== undefined) { - contents.PlatformBranchLifecycleState = __expectString(output["PlatformBranchLifecycleState"]); + if (output[_PBLS] != null) { + contents[_PBLS] = __expectString(output[_PBLS]); } return contents; }; @@ -7120,8 +7030,8 @@ const de_PlatformVersionStillReferencedException = ( context: __SerdeContext ): PlatformVersionStillReferencedException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7131,11 +7041,11 @@ const de_PlatformVersionStillReferencedException = ( */ const de_Queue = (output: any, context: __SerdeContext): Queue => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } - if (output["URL"] !== undefined) { - contents.URL = __expectString(output["URL"]); + if (output[_URL] != null) { + contents[_URL] = __expectString(output[_URL]); } return contents; }; @@ -7156,8 +7066,8 @@ const de_QueueList = (output: any, context: __SerdeContext): Queue[] => { */ const de_ResourceNotFoundException = (output: any, context: __SerdeContext): ResourceNotFoundException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7167,8 +7077,8 @@ const de_ResourceNotFoundException = (output: any, context: __SerdeContext): Res */ const de_ResourceQuota = (output: any, context: __SerdeContext): ResourceQuota => { const contents: any = {}; - if (output["Maximum"] !== undefined) { - contents.Maximum = __strictParseInt32(output["Maximum"]) as number; + if (output[_Max] != null) { + contents[_Max] = __strictParseInt32(output[_Max]) as number; } return contents; }; @@ -7178,20 +7088,20 @@ const de_ResourceQuota = (output: any, context: __SerdeContext): ResourceQuota = */ const de_ResourceQuotas = (output: any, context: __SerdeContext): ResourceQuotas => { const contents: any = {}; - if (output["ApplicationQuota"] !== undefined) { - contents.ApplicationQuota = de_ResourceQuota(output["ApplicationQuota"], context); + if (output[_AQ] != null) { + contents[_AQ] = de_ResourceQuota(output[_AQ], context); } - if (output["ApplicationVersionQuota"] !== undefined) { - contents.ApplicationVersionQuota = de_ResourceQuota(output["ApplicationVersionQuota"], context); + if (output[_AVQ] != null) { + contents[_AVQ] = de_ResourceQuota(output[_AVQ], context); } - if (output["EnvironmentQuota"] !== undefined) { - contents.EnvironmentQuota = de_ResourceQuota(output["EnvironmentQuota"], context); + if (output[_EQ] != null) { + contents[_EQ] = de_ResourceQuota(output[_EQ], context); } - if (output["ConfigurationTemplateQuota"] !== undefined) { - contents.ConfigurationTemplateQuota = de_ResourceQuota(output["ConfigurationTemplateQuota"], context); + if (output[_CTQ] != null) { + contents[_CTQ] = de_ResourceQuota(output[_CTQ], context); } - if (output["CustomPlatformQuota"] !== undefined) { - contents.CustomPlatformQuota = de_ResourceQuota(output["CustomPlatformQuota"], context); + if (output[_CPQ] != null) { + contents[_CPQ] = de_ResourceQuota(output[_CPQ], context); } return contents; }; @@ -7201,13 +7111,13 @@ const de_ResourceQuotas = (output: any, context: __SerdeContext): ResourceQuotas */ const de_ResourceTagsDescriptionMessage = (output: any, context: __SerdeContext): ResourceTagsDescriptionMessage => { const contents: any = {}; - if (output["ResourceArn"] !== undefined) { - contents.ResourceArn = __expectString(output["ResourceArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } if (output.ResourceTags === "") { - contents.ResourceTags = []; - } else if (output["ResourceTags"] !== undefined && output["ResourceTags"]["member"] !== undefined) { - contents.ResourceTags = de_TagList(__getArrayIfSingleItem(output["ResourceTags"]["member"]), context); + contents[_RT] = []; + } else if (output[_RT] != null && output[_RT][_m] != null) { + contents[_RT] = de_TagList(__getArrayIfSingleItem(output[_RT][_m]), context); } return contents; }; @@ -7220,8 +7130,8 @@ const de_ResourceTypeNotSupportedException = ( context: __SerdeContext ): ResourceTypeNotSupportedException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7235,12 +7145,9 @@ const de_RetrieveEnvironmentInfoResultMessage = ( ): RetrieveEnvironmentInfoResultMessage => { const contents: any = {}; if (output.EnvironmentInfo === "") { - contents.EnvironmentInfo = []; - } else if (output["EnvironmentInfo"] !== undefined && output["EnvironmentInfo"]["member"] !== undefined) { - contents.EnvironmentInfo = de_EnvironmentInfoDescriptionList( - __getArrayIfSingleItem(output["EnvironmentInfo"]["member"]), - context - ); + contents[_EInv] = []; + } else if (output[_EInv] != null && output[_EInv][_m] != null) { + contents[_EInv] = de_EnvironmentInfoDescriptionList(__getArrayIfSingleItem(output[_EInv][_m]), context); } return contents; }; @@ -7250,11 +7157,11 @@ const de_RetrieveEnvironmentInfoResultMessage = ( */ const de_S3Location = (output: any, context: __SerdeContext): S3Location => { const contents: any = {}; - if (output["S3Bucket"] !== undefined) { - contents.S3Bucket = __expectString(output["S3Bucket"]); + if (output[_SBu] != null) { + contents[_SBu] = __expectString(output[_SBu]); } - if (output["S3Key"] !== undefined) { - contents.S3Key = __expectString(output["S3Key"]); + if (output[_SK] != null) { + contents[_SK] = __expectString(output[_SK]); } return contents; }; @@ -7267,8 +7174,8 @@ const de_S3LocationNotInServiceRegionException = ( context: __SerdeContext ): S3LocationNotInServiceRegionException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7278,8 +7185,8 @@ const de_S3LocationNotInServiceRegionException = ( */ const de_S3SubscriptionRequiredException = (output: any, context: __SerdeContext): S3SubscriptionRequiredException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7289,37 +7196,37 @@ const de_S3SubscriptionRequiredException = (output: any, context: __SerdeContext */ const de_SingleInstanceHealth = (output: any, context: __SerdeContext): SingleInstanceHealth => { const contents: any = {}; - if (output["InstanceId"] !== undefined) { - contents.InstanceId = __expectString(output["InstanceId"]); + if (output[_IIn] != null) { + contents[_IIn] = __expectString(output[_IIn]); } - if (output["HealthStatus"] !== undefined) { - contents.HealthStatus = __expectString(output["HealthStatus"]); + if (output[_HS] != null) { + contents[_HS] = __expectString(output[_HS]); } - if (output["Color"] !== undefined) { - contents.Color = __expectString(output["Color"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } if (output.Causes === "") { - contents.Causes = []; - } else if (output["Causes"] !== undefined && output["Causes"]["member"] !== undefined) { - contents.Causes = de_Causes(__getArrayIfSingleItem(output["Causes"]["member"]), context); + contents[_Ca] = []; + } else if (output[_Ca] != null && output[_Ca][_m] != null) { + contents[_Ca] = de_Causes(__getArrayIfSingleItem(output[_Ca][_m]), context); } - if (output["LaunchedAt"] !== undefined) { - contents.LaunchedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LaunchedAt"])); + if (output[_LA] != null) { + contents[_LA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LA])); } - if (output["ApplicationMetrics"] !== undefined) { - contents.ApplicationMetrics = de_ApplicationMetrics(output["ApplicationMetrics"], context); + if (output[_AM] != null) { + contents[_AM] = de_ApplicationMetrics(output[_AM], context); } - if (output["System"] !== undefined) { - contents.System = de_SystemStatus(output["System"], context); + if (output[_Sy] != null) { + contents[_Sy] = de_SystemStatus(output[_Sy], context); } - if (output["Deployment"] !== undefined) { - contents.Deployment = de_Deployment(output["Deployment"], context); + if (output[_Dep] != null) { + contents[_Dep] = de_Deployment(output[_Dep], context); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZ] != null) { + contents[_AZ] = __expectString(output[_AZ]); } - if (output["InstanceType"] !== undefined) { - contents.InstanceType = __expectString(output["InstanceType"]); + if (output[_ITn] != null) { + contents[_ITn] = __expectString(output[_ITn]); } return contents; }; @@ -7329,16 +7236,13 @@ const de_SingleInstanceHealth = (output: any, context: __SerdeContext): SingleIn */ const de_SolutionStackDescription = (output: any, context: __SerdeContext): SolutionStackDescription => { const contents: any = {}; - if (output["SolutionStackName"] !== undefined) { - contents.SolutionStackName = __expectString(output["SolutionStackName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } if (output.PermittedFileTypes === "") { - contents.PermittedFileTypes = []; - } else if (output["PermittedFileTypes"] !== undefined && output["PermittedFileTypes"]["member"] !== undefined) { - contents.PermittedFileTypes = de_SolutionStackFileTypeList( - __getArrayIfSingleItem(output["PermittedFileTypes"]["member"]), - context - ); + contents[_PFT] = []; + } else if (output[_PFT] != null && output[_PFT][_m] != null) { + contents[_PFT] = de_SolutionStackFileTypeList(__getArrayIfSingleItem(output[_PFT][_m]), context); } return contents; }; @@ -7359,14 +7263,14 @@ const de_SolutionStackFileTypeList = (output: any, context: __SerdeContext): str */ const de_SourceBuildInformation = (output: any, context: __SerdeContext): SourceBuildInformation => { const contents: any = {}; - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } - if (output["SourceRepository"] !== undefined) { - contents.SourceRepository = __expectString(output["SourceRepository"]); + if (output[_SRo] != null) { + contents[_SRo] = __expectString(output[_SRo]); } - if (output["SourceLocation"] !== undefined) { - contents.SourceLocation = __expectString(output["SourceLocation"]); + if (output[_SL] != null) { + contents[_SL] = __expectString(output[_SL]); } return contents; }; @@ -7376,8 +7280,8 @@ const de_SourceBuildInformation = (output: any, context: __SerdeContext): Source */ const de_SourceBundleDeletionException = (output: any, context: __SerdeContext): SourceBundleDeletionException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7387,17 +7291,17 @@ const de_SourceBundleDeletionException = (output: any, context: __SerdeContext): */ const de_StatusCodes = (output: any, context: __SerdeContext): StatusCodes => { const contents: any = {}; - if (output["Status2xx"] !== undefined) { - contents.Status2xx = __strictParseInt32(output["Status2xx"]) as number; + if (output[_St] != null) { + contents[_St] = __strictParseInt32(output[_St]) as number; } - if (output["Status3xx"] !== undefined) { - contents.Status3xx = __strictParseInt32(output["Status3xx"]) as number; + if (output[_Sta] != null) { + contents[_Sta] = __strictParseInt32(output[_Sta]) as number; } - if (output["Status4xx"] !== undefined) { - contents.Status4xx = __strictParseInt32(output["Status4xx"]) as number; + if (output[_Stat] != null) { + contents[_Stat] = __strictParseInt32(output[_Stat]) as number; } - if (output["Status5xx"] !== undefined) { - contents.Status5xx = __strictParseInt32(output["Status5xx"]) as number; + if (output[_Statu] != null) { + contents[_Statu] = __strictParseInt32(output[_Statu]) as number; } return contents; }; @@ -7429,13 +7333,13 @@ const de_SupportedTierList = (output: any, context: __SerdeContext): string[] => */ const de_SystemStatus = (output: any, context: __SerdeContext): SystemStatus => { const contents: any = {}; - if (output["CPUUtilization"] !== undefined) { - contents.CPUUtilization = de_CPUUtilization(output["CPUUtilization"], context); + if (output[_CPUU] != null) { + contents[_CPUU] = de_CPUUtilization(output[_CPUU], context); } if (output.LoadAverage === "") { - contents.LoadAverage = []; - } else if (output["LoadAverage"] !== undefined && output["LoadAverage"]["member"] !== undefined) { - contents.LoadAverage = de_LoadAverage(__getArrayIfSingleItem(output["LoadAverage"]["member"]), context); + contents[_LAo] = []; + } else if (output[_LAo] != null && output[_LAo][_m] != null) { + contents[_LAo] = de_LoadAverage(__getArrayIfSingleItem(output[_LAo][_m]), context); } return contents; }; @@ -7445,11 +7349,11 @@ const de_SystemStatus = (output: any, context: __SerdeContext): SystemStatus => */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -7470,8 +7374,8 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TooManyApplicationsException = (output: any, context: __SerdeContext): TooManyApplicationsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7484,8 +7388,8 @@ const de_TooManyApplicationVersionsException = ( context: __SerdeContext ): TooManyApplicationVersionsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7495,8 +7399,8 @@ const de_TooManyApplicationVersionsException = ( */ const de_TooManyBucketsException = (output: any, context: __SerdeContext): TooManyBucketsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7509,8 +7413,8 @@ const de_TooManyConfigurationTemplatesException = ( context: __SerdeContext ): TooManyConfigurationTemplatesException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7520,8 +7424,8 @@ const de_TooManyConfigurationTemplatesException = ( */ const de_TooManyEnvironmentsException = (output: any, context: __SerdeContext): TooManyEnvironmentsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7531,8 +7435,8 @@ const de_TooManyEnvironmentsException = (output: any, context: __SerdeContext): */ const de_TooManyPlatformsException = (output: any, context: __SerdeContext): TooManyPlatformsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7542,8 +7446,8 @@ const de_TooManyPlatformsException = (output: any, context: __SerdeContext): Too */ const de_TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -7553,8 +7457,8 @@ const de_TooManyTagsException = (output: any, context: __SerdeContext): TooManyT */ const de_Trigger = (output: any, context: __SerdeContext): Trigger => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_Na] != null) { + contents[_Na] = __expectString(output[_Na]); } return contents; }; @@ -7575,17 +7479,17 @@ const de_TriggerList = (output: any, context: __SerdeContext): Trigger[] => { */ const de_ValidationMessage = (output: any, context: __SerdeContext): ValidationMessage => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["Severity"] !== undefined) { - contents.Severity = __expectString(output["Severity"]); + if (output[_Se] != null) { + contents[_Se] = __expectString(output[_Se]); } - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["OptionName"] !== undefined) { - contents.OptionName = __expectString(output["OptionName"]); + if (output[_ON] != null) { + contents[_ON] = __expectString(output[_ON]); } return contents; }; @@ -7653,6 +7557,293 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2010-12-01"; +const _A = "Action"; +const _AA = "ApplicationArn"; +const _ACA = "AutoCreateApplication"; +const _AD = "ActionDescription"; +const _AEMA = "ApplyEnvironmentManagedAction"; +const _AEOR = "AssociateEnvironmentOperationsRole"; +const _AEU = "AbortEnvironmentUpdate"; +const _AI = "ActionId"; +const _AM = "ApplicationMetrics"; +const _AN = "ArtifactName"; +const _ANp = "ApplicationName"; +const _ANpp = "ApplicationNames"; +const _ANt = "AttributeNames"; +const _AOIP = "AbortableOperationInProgress"; +const _AQ = "ApplicationQuota"; +const _ARN = "ARN"; +const _ASG = "AutoScalingGroups"; +const _AT = "ActionType"; +const _AV = "ApplicationVersion"; +const _AVA = "ApplicationVersionArn"; +const _AVQ = "ApplicationVersionQuota"; +const _AVp = "ApplicationVersions"; +const _AZ = "AvailabilityZone"; +const _Ap = "Application"; +const _App = "Applications"; +const _At = "Attribute"; +const _Av = "Available"; +const _B = "Builder"; +const _BA = "BuildArn"; +const _BC = "BuildConfiguration"; +const _BN = "BranchName"; +const _BO = "BranchOrder"; +const _C = "Color"; +const _CA = "CreateApplication"; +const _CAL = "CustomAmiList"; +const _CAV = "CreateApplicationVersion"; +const _CBSR = "CodeBuildServiceRole"; +const _CCT = "CreateConfigurationTemplate"; +const _CDNSA = "CheckDNSAvailability"; +const _CE = "ComposeEnvironments"; +const _CEr = "CreateEnvironment"; +const _CNAME = "CNAME"; +const _CNAMEP = "CNAMEPrefix"; +const _CPQ = "CustomPlatformQuota"; +const _CPUU = "CPUUtilization"; +const _CPV = "CreatePlatformVersion"; +const _CS = "ChangeSeverity"; +const _CSL = "CreateStorageLocation"; +const _CSo = "ConfigurationSettings"; +const _CT = "ComputeType"; +const _CTQ = "ConfigurationTemplateQuota"; +const _CTo = "ConfigurationTemplates"; +const _Ca = "Causes"; +const _D = "Description"; +const _DA = "DeleteApplication"; +const _DAA = "DescribeAccountAttributes"; +const _DAV = "DeleteApplicationVersion"; +const _DAVe = "DescribeApplicationVersions"; +const _DAe = "DescribeApplications"; +const _DC = "DateCreated"; +const _DCO = "DescribeConfigurationOptions"; +const _DCS = "DescribeConfigurationSettings"; +const _DCT = "DeleteConfigurationTemplate"; +const _DE = "DescribeEnvironments"; +const _DEC = "DeleteEnvironmentConfiguration"; +const _DEH = "DescribeEnvironmentHealth"; +const _DEI = "DestinationEnvironmentId"; +const _DEMA = "DescribeEnvironmentManagedActions"; +const _DEMAH = "DescribeEnvironmentManagedActionHistory"; +const _DEN = "DestinationEnvironmentName"; +const _DEOR = "DisassociateEnvironmentOperationsRole"; +const _DER = "DescribeEnvironmentResources"; +const _DEe = "DescribeEvents"; +const _DI = "DeploymentId"; +const _DIH = "DescribeInstancesHealth"; +const _DPV = "DeletePlatformVersion"; +const _DPVe = "DescribePlatformVersion"; +const _DS = "DeploymentStatus"; +const _DSB = "DeleteSourceBundle"; +const _DSFS = "DeleteSourceFromS3"; +const _DT = "DeploymentTime"; +const _DU = "DateUpdated"; +const _DV = "DefaultValue"; +const _De = "Degraded"; +const _Dep = "Deployment"; +const _Do = "Domain"; +const _Du = "Duration"; +const _E = "Enabled"; +const _EA = "EnvironmentArn"; +const _ED = "EventDate"; +const _EI = "EnvironmentId"; +const _EII = "Ec2InstanceId"; +const _EIn = "EnvironmentIds"; +const _EInv = "EnvironmentInfo"; +const _EL = "EnvironmentLinks"; +const _EN = "EnvironmentName"; +const _ENn = "EnvironmentNames"; +const _EQ = "EnvironmentQuota"; +const _ER = "EnvironmentResources"; +const _ET = "EndTime"; +const _ETx = "ExecutedTime"; +const _EURL = "EndpointURL"; +const _En = "Environments"; +const _Ev = "Events"; +const _F = "Filters"; +const _FD = "FailureDescription"; +const _FQCNAME = "FullyQualifiedCNAME"; +const _FT = "ForceTerminate"; +const _FTa = "FailureType"; +const _FTi = "FinishedTime"; +const _Fr = "Frameworks"; +const _GN = "GroupName"; +const _H = "Health"; +const _HS = "HealthStatus"; +const _I = "Image"; +const _ID = "IncludeDeleted"; +const _IDBT = "IncludedDeletedBackTo"; +const _IH = "InstancesHealth"; +const _IHL = "InstanceHealthList"; +const _II = "ImageId"; +const _IIn = "InstanceId"; +const _IOW = "IOWait"; +const _IRQ = "IRQ"; +const _IT = "InfoType"; +const _ITn = "InstanceType"; +const _Id = "Idle"; +const _Id_ = "Id"; +const _In = "Instances"; +const _Inf = "Info"; +const _K = "Key"; +const _L = "Latency"; +const _LA = "LaunchedAt"; +const _LASS = "ListAvailableSolutionStacks"; +const _LAo = "LoadAverage"; +const _LB = "LoadBalancers"; +const _LBN = "LoadBalancerName"; +const _LBo = "LoadBalancer"; +const _LC = "LaunchConfigurations"; +const _LN = "LinkName"; +const _LPB = "ListPlatformBranches"; +const _LPV = "ListPlatformVersions"; +const _LS = "LifecycleState"; +const _LT = "LaunchTemplates"; +const _LTFR = "ListTagsForResource"; +const _La = "Label"; +const _Li = "Listeners"; +const _M = "Messages"; +const _MA = "ManagedActions"; +const _MAHI = "ManagedActionHistoryItems"; +const _MAID = "MaxAgeInDays"; +const _MAR = "MaxAgeRule"; +const _MC = "MaxCount"; +const _MCR = "MaxCountRule"; +const _MI = "MaxItems"; +const _ML = "MaxLength"; +const _MR = "MaxRecords"; +const _MV = "MinValue"; +const _MVa = "MaxValue"; +const _Ma = "Maintainer"; +const _Max = "Maximum"; +const _Me = "Message"; +const _N = "Namespace"; +const _ND = "NoData"; +const _NT = "NextToken"; +const _Na = "Name"; +const _Ni = "Nice"; +const _O = "Options"; +const _ON = "OptionName"; +const _OR = "OperationsRole"; +const _OS = "OptionSettings"; +const _OSN = "OperatingSystemName"; +const _OSV = "OperatingSystemVersion"; +const _OTR = "OptionsToRemove"; +const _Ok = "Ok"; +const _Op = "Operator"; +const _P = "Process"; +const _PA = "PlatformArn"; +const _PBLS = "PlatformBranchLifecycleState"; +const _PBN = "PlatformBranchName"; +const _PBSL = "PlatformBranchSummaryList"; +const _PC = "PlatformCategory"; +const _PD = "PlatformDescription"; +const _PDB = "PlatformDefinitionBundle"; +const _PFT = "PermittedFileTypes"; +const _PL = "ProgrammingLanguages"; +const _PLS = "PlatformLifecycleState"; +const _PN = "PlatformName"; +const _PO = "PlatformOwner"; +const _PS = "PlatformSummary"; +const _PSL = "PlatformSummaryList"; +const _PSl = "PlatformStatus"; +const _PV = "PlatformVersion"; +const _P_ = "P999"; +const _P__ = "P99"; +const _P___ = "P95"; +const _P____ = "P90"; +const _P_____ = "P85"; +const _P______ = "P75"; +const _P_______ = "P50"; +const _P________ = "P10"; +const _Pa = "Pattern"; +const _Pe = "Pending"; +const _Po = "Port"; +const _Pr = "Privileged"; +const _Pro = "Protocol"; +const _Q = "Queues"; +const _R = "Regex"; +const _RA = "ResourceArn"; +const _RAS = "RestartAppServer"; +const _RAe = "RefreshedAt"; +const _RC = "RequestCount"; +const _RE = "RebuildEnvironment"; +const _REI = "RequestEnvironmentInfo"; +const _REIe = "RetrieveEnvironmentInfo"; +const _RI = "RequestId"; +const _RLC = "ResourceLifecycleConfig"; +const _RN = "ResourceName"; +const _RQ = "ResourceQuotas"; +const _RT = "ResourceTags"; +const _Re = "Resources"; +const _S = "Status"; +const _SAL = "SupportedAddonList"; +const _SB = "SourceBundle"; +const _SBI = "SourceBuildInformation"; +const _SBu = "S3Bucket"; +const _SC = "SourceConfiguration"; +const _SCt = "StatusCodes"; +const _SECNAME = "SwapEnvironmentCNAMEs"; +const _SEI = "SourceEnvironmentId"; +const _SEN = "SourceEnvironmentName"; +const _SIRQ = "SoftIRQ"; +const _SK = "S3Key"; +const _SL = "SourceLocation"; +const _SR = "ServiceRole"; +const _SRo = "SourceRepository"; +const _SS = "SolutionStacks"; +const _SSD = "SolutionStackDetails"; +const _SSN = "SolutionStackName"; +const _ST = "StartTime"; +const _STL = "SupportedTierList"; +const _STa = "SampleTimestamp"; +const _STo = "SourceType"; +const _Se = "Severity"; +const _Sev = "Severe"; +const _St = "Status2xx"; +const _Sta = "Status3xx"; +const _Stat = "Status4xx"; +const _Statu = "Status5xx"; +const _Sy = "System"; +const _T = "Tags"; +const _TE = "TerminateEnvironment"; +const _TEBF = "TerminateEnvByForce"; +const _TIM = "TimeoutInMinutes"; +const _TN = "TemplateName"; +const _TR = "TerminateResources"; +const _TTA = "TagsToAdd"; +const _TTR = "TagsToRemove"; +const _Ti = "Tier"; +const _Tr = "Triggers"; +const _Ty = "Type"; +const _U = "User"; +const _UA = "UpdateApplication"; +const _UARL = "UpdateApplicationResourceLifecycle"; +const _UAV = "UpdateApplicationVersion"; +const _UCT = "UpdateConfigurationTemplate"; +const _UD = "UserDefined"; +const _UE = "UpdateEnvironment"; +const _URL = "URL"; +const _UTFR = "UpdateTagsForResource"; +const _Un = "Unknown"; +const _V = "Version"; +const _VCS = "ValidateConfigurationSettings"; +const _VL = "VersionLabels"; +const _VLC = "VersionLifecycleConfig"; +const _VLe = "VersionLabel"; +const _VO = "ValueOptions"; +const _VT = "ValueType"; +const _VTi = "VirtualizationType"; +const _Va = "Value"; +const _Val = "Values"; +const _Ve = "Versions"; +const _W = "Warning"; +const _WST = "WindowStartTime"; +const _m = "member"; +const _me = "message"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-elastic-inference/package.json b/clients/client-elastic-inference/package.json index 6ecfbcdce6be..ae75fabec694 100644 --- a/clients/client-elastic-inference/package.json +++ b/clients/client-elastic-inference/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts index a5e9363fa718..9021099e6fb2 100644 --- a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -47,12 +48,11 @@ export const se_DescribeAcceleratorOfferingsCommand = async ( input: DescribeAcceleratorOfferingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-accelerator-offerings"; + b.bp("/describe-accelerator-offerings"); let body: any; body = JSON.stringify( take(input, { @@ -60,15 +60,8 @@ export const se_DescribeAcceleratorOfferingsCommand = async ( locationType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -78,11 +71,11 @@ export const se_DescribeAcceleratorsCommand = async ( input: DescribeAcceleratorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-accelerators"; + b.bp("/describe-accelerators"); let body: any; body = JSON.stringify( take(input, { @@ -92,15 +85,8 @@ export const se_DescribeAcceleratorsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -110,23 +96,15 @@ export const se_DescribeAcceleratorTypesCommand = async ( input: DescribeAcceleratorTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-accelerator-types"; + b.bp("/describe-accelerator-types"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -136,20 +114,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -159,27 +130,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -189,27 +153,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -628,6 +584,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { 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 35b75e04baee..dbaa31fef3bc 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 @@ -319,8 +319,8 @@ export const se_AddListenerCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddListenerCertificatesInput(input, context), - Action: "AddListenerCertificates", - Version: "2015-12-01", + [_A]: _ALC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -336,8 +336,8 @@ export const se_AddTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddTagsInput(input, context), - Action: "AddTags", - Version: "2015-12-01", + [_A]: _AT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -353,8 +353,8 @@ export const se_AddTrustStoreRevocationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddTrustStoreRevocationsInput(input, context), - Action: "AddTrustStoreRevocations", - Version: "2015-12-01", + [_A]: _ATSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -370,8 +370,8 @@ export const se_CreateListenerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateListenerInput(input, context), - Action: "CreateListener", - Version: "2015-12-01", + [_A]: _CL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -387,8 +387,8 @@ export const se_CreateLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLoadBalancerInput(input, context), - Action: "CreateLoadBalancer", - Version: "2015-12-01", + [_A]: _CLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -404,8 +404,8 @@ export const se_CreateRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateRuleInput(input, context), - Action: "CreateRule", - Version: "2015-12-01", + [_A]: _CR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -421,8 +421,8 @@ export const se_CreateTargetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTargetGroupInput(input, context), - Action: "CreateTargetGroup", - Version: "2015-12-01", + [_A]: _CTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -438,8 +438,8 @@ export const se_CreateTrustStoreCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTrustStoreInput(input, context), - Action: "CreateTrustStore", - Version: "2015-12-01", + [_A]: _CTS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -455,8 +455,8 @@ export const se_DeleteListenerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteListenerInput(input, context), - Action: "DeleteListener", - Version: "2015-12-01", + [_A]: _DL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -472,8 +472,8 @@ export const se_DeleteLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLoadBalancerInput(input, context), - Action: "DeleteLoadBalancer", - Version: "2015-12-01", + [_A]: _DLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -489,8 +489,8 @@ export const se_DeleteRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteRuleInput(input, context), - Action: "DeleteRule", - Version: "2015-12-01", + [_A]: _DR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -506,8 +506,8 @@ export const se_DeleteTargetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTargetGroupInput(input, context), - Action: "DeleteTargetGroup", - Version: "2015-12-01", + [_A]: _DTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -523,8 +523,8 @@ export const se_DeleteTrustStoreCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTrustStoreInput(input, context), - Action: "DeleteTrustStore", - Version: "2015-12-01", + [_A]: _DTS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -540,8 +540,8 @@ export const se_DeregisterTargetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterTargetsInput(input, context), - Action: "DeregisterTargets", - Version: "2015-12-01", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -557,8 +557,8 @@ export const se_DescribeAccountLimitsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAccountLimitsInput(input, context), - Action: "DescribeAccountLimits", - Version: "2015-12-01", + [_A]: _DAL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -574,8 +574,8 @@ export const se_DescribeListenerCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeListenerCertificatesInput(input, context), - Action: "DescribeListenerCertificates", - Version: "2015-12-01", + [_A]: _DLC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -591,8 +591,8 @@ export const se_DescribeListenersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeListenersInput(input, context), - Action: "DescribeListeners", - Version: "2015-12-01", + [_A]: _DLe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -608,8 +608,8 @@ export const se_DescribeLoadBalancerAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoadBalancerAttributesInput(input, context), - Action: "DescribeLoadBalancerAttributes", - Version: "2015-12-01", + [_A]: _DLBA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -625,8 +625,8 @@ export const se_DescribeLoadBalancersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoadBalancersInput(input, context), - Action: "DescribeLoadBalancers", - Version: "2015-12-01", + [_A]: _DLBe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -642,8 +642,8 @@ export const se_DescribeRulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeRulesInput(input, context), - Action: "DescribeRules", - Version: "2015-12-01", + [_A]: _DRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -659,8 +659,8 @@ export const se_DescribeSSLPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSSLPoliciesInput(input, context), - Action: "DescribeSSLPolicies", - Version: "2015-12-01", + [_A]: _DSSLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -676,8 +676,8 @@ export const se_DescribeTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTagsInput(input, context), - Action: "DescribeTags", - Version: "2015-12-01", + [_A]: _DTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -693,8 +693,8 @@ export const se_DescribeTargetGroupAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTargetGroupAttributesInput(input, context), - Action: "DescribeTargetGroupAttributes", - Version: "2015-12-01", + [_A]: _DTGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -710,8 +710,8 @@ export const se_DescribeTargetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTargetGroupsInput(input, context), - Action: "DescribeTargetGroups", - Version: "2015-12-01", + [_A]: _DTGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -727,8 +727,8 @@ export const se_DescribeTargetHealthCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTargetHealthInput(input, context), - Action: "DescribeTargetHealth", - Version: "2015-12-01", + [_A]: _DTH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -744,8 +744,8 @@ export const se_DescribeTrustStoreAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrustStoreAssociationsInput(input, context), - Action: "DescribeTrustStoreAssociations", - Version: "2015-12-01", + [_A]: _DTSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -761,8 +761,8 @@ export const se_DescribeTrustStoreRevocationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrustStoreRevocationsInput(input, context), - Action: "DescribeTrustStoreRevocations", - Version: "2015-12-01", + [_A]: _DTSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -778,8 +778,8 @@ export const se_DescribeTrustStoresCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTrustStoresInput(input, context), - Action: "DescribeTrustStores", - Version: "2015-12-01", + [_A]: _DTSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -795,8 +795,8 @@ export const se_GetTrustStoreCaCertificatesBundleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTrustStoreCaCertificatesBundleInput(input, context), - Action: "GetTrustStoreCaCertificatesBundle", - Version: "2015-12-01", + [_A]: _GTSCCB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -812,8 +812,8 @@ export const se_GetTrustStoreRevocationContentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTrustStoreRevocationContentInput(input, context), - Action: "GetTrustStoreRevocationContent", - Version: "2015-12-01", + [_A]: _GTSRC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -829,8 +829,8 @@ export const se_ModifyListenerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyListenerInput(input, context), - Action: "ModifyListener", - Version: "2015-12-01", + [_A]: _ML, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -846,8 +846,8 @@ export const se_ModifyLoadBalancerAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyLoadBalancerAttributesInput(input, context), - Action: "ModifyLoadBalancerAttributes", - Version: "2015-12-01", + [_A]: _MLBA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -863,8 +863,8 @@ export const se_ModifyRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyRuleInput(input, context), - Action: "ModifyRule", - Version: "2015-12-01", + [_A]: _MR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -880,8 +880,8 @@ export const se_ModifyTargetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTargetGroupInput(input, context), - Action: "ModifyTargetGroup", - Version: "2015-12-01", + [_A]: _MTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -897,8 +897,8 @@ export const se_ModifyTargetGroupAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTargetGroupAttributesInput(input, context), - Action: "ModifyTargetGroupAttributes", - Version: "2015-12-01", + [_A]: _MTGA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -914,8 +914,8 @@ export const se_ModifyTrustStoreCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTrustStoreInput(input, context), - Action: "ModifyTrustStore", - Version: "2015-12-01", + [_A]: _MTS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -931,8 +931,8 @@ export const se_RegisterTargetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterTargetsInput(input, context), - Action: "RegisterTargets", - Version: "2015-12-01", + [_A]: _RT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -948,8 +948,8 @@ export const se_RemoveListenerCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveListenerCertificatesInput(input, context), - Action: "RemoveListenerCertificates", - Version: "2015-12-01", + [_A]: _RLC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -965,8 +965,8 @@ export const se_RemoveTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveTagsInput(input, context), - Action: "RemoveTags", - Version: "2015-12-01", + [_A]: _RTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -982,8 +982,8 @@ export const se_RemoveTrustStoreRevocationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveTrustStoreRevocationsInput(input, context), - Action: "RemoveTrustStoreRevocations", - Version: "2015-12-01", + [_A]: _RTSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -999,8 +999,8 @@ export const se_SetIpAddressTypeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetIpAddressTypeInput(input, context), - Action: "SetIpAddressType", - Version: "2015-12-01", + [_A]: _SIAT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1016,8 +1016,8 @@ export const se_SetRulePrioritiesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetRulePrioritiesInput(input, context), - Action: "SetRulePriorities", - Version: "2015-12-01", + [_A]: _SRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1033,8 +1033,8 @@ export const se_SetSecurityGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetSecurityGroupsInput(input, context), - Action: "SetSecurityGroups", - Version: "2015-12-01", + [_A]: _SSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1050,8 +1050,8 @@ export const se_SetSubnetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetSubnetsInput(input, context), - Action: "SetSubnets", - Version: "2015-12-01", + [_A]: _SS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -4258,45 +4258,45 @@ const de_UnsupportedProtocolExceptionRes = async ( */ const se_Action = (input: Action, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.AuthenticateOidcConfig != null) { - const memberEntries = se_AuthenticateOidcActionConfig(input.AuthenticateOidcConfig, context); + if (input[_AOC] != null) { + const memberEntries = se_AuthenticateOidcActionConfig(input[_AOC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AuthenticateOidcConfig.${key}`; entries[loc] = value; }); } - if (input.AuthenticateCognitoConfig != null) { - const memberEntries = se_AuthenticateCognitoActionConfig(input.AuthenticateCognitoConfig, context); + if (input[_ACC] != null) { + const memberEntries = se_AuthenticateCognitoActionConfig(input[_ACC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AuthenticateCognitoConfig.${key}`; entries[loc] = value; }); } - if (input.Order != null) { - entries["Order"] = input.Order; + if (input[_O] != null) { + entries[_O] = input[_O]; } - if (input.RedirectConfig != null) { - const memberEntries = se_RedirectActionConfig(input.RedirectConfig, context); + if (input[_RC] != null) { + const memberEntries = se_RedirectActionConfig(input[_RC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RedirectConfig.${key}`; entries[loc] = value; }); } - if (input.FixedResponseConfig != null) { - const memberEntries = se_FixedResponseActionConfig(input.FixedResponseConfig, context); + if (input[_FRC] != null) { + const memberEntries = se_FixedResponseActionConfig(input[_FRC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `FixedResponseConfig.${key}`; entries[loc] = value; }); } - if (input.ForwardConfig != null) { - const memberEntries = se_ForwardActionConfig(input.ForwardConfig, context); + if (input[_FC] != null) { + const memberEntries = se_ForwardActionConfig(input[_FC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ForwardConfig.${key}`; entries[loc] = value; @@ -4329,12 +4329,12 @@ const se_Actions = (input: Action[], context: __SerdeContext): any => { */ const se_AddListenerCertificatesInput = (input: AddListenerCertificatesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + if (input[_LA] != null) { + entries[_LA] = input[_LA]; } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_CertificateList(input[_C], context); + if (input[_C]?.length === 0) { entries.Certificates = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4350,9 +4350,9 @@ const se_AddListenerCertificatesInput = (input: AddListenerCertificatesInput, co */ const se_AddTagsInput = (input: AddTagsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArns != null) { - const memberEntries = se_ResourceArns(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { + if (input[_RA] != null) { + const memberEntries = se_ResourceArns(input[_RA], context); + if (input[_RA]?.length === 0) { entries.ResourceArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4360,9 +4360,9 @@ const se_AddTagsInput = (input: AddTagsInput, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4378,12 +4378,12 @@ const se_AddTagsInput = (input: AddTagsInput, context: __SerdeContext): any => { */ const se_AddTrustStoreRevocationsInput = (input: AddTrustStoreRevocationsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } - if (input.RevocationContents != null) { - const memberEntries = se_RevocationContents(input.RevocationContents, context); - if (input.RevocationContents?.length === 0) { + if (input[_RCe] != null) { + const memberEntries = se_RevocationContents(input[_RCe], context); + if (input[_RCe]?.length === 0) { entries.RevocationContents = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4434,36 +4434,33 @@ const se_AuthenticateCognitoActionAuthenticationRequestExtraParams = ( */ const se_AuthenticateCognitoActionConfig = (input: AuthenticateCognitoActionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserPoolArn != null) { - entries["UserPoolArn"] = input.UserPoolArn; + if (input[_UPA] != null) { + entries[_UPA] = input[_UPA]; } - if (input.UserPoolClientId != null) { - entries["UserPoolClientId"] = input.UserPoolClientId; + if (input[_UPCI] != null) { + entries[_UPCI] = input[_UPCI]; } - if (input.UserPoolDomain != null) { - entries["UserPoolDomain"] = input.UserPoolDomain; + if (input[_UPD] != null) { + entries[_UPD] = input[_UPD]; } - if (input.SessionCookieName != null) { - entries["SessionCookieName"] = input.SessionCookieName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.Scope != null) { - entries["Scope"] = input.Scope; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.SessionTimeout != null) { - entries["SessionTimeout"] = input.SessionTimeout; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.AuthenticationRequestExtraParams != null) { - const memberEntries = se_AuthenticateCognitoActionAuthenticationRequestExtraParams( - input.AuthenticationRequestExtraParams, - context - ); + if (input[_AREP] != null) { + const memberEntries = se_AuthenticateCognitoActionAuthenticationRequestExtraParams(input[_AREP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AuthenticationRequestExtraParams.${key}`; entries[loc] = value; }); } - if (input.OnUnauthenticatedRequest != null) { - entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest; + if (input[_OUR] != null) { + entries[_OUR] = input[_OUR]; } return entries; }; @@ -4492,48 +4489,45 @@ const se_AuthenticateOidcActionAuthenticationRequestExtraParams = ( */ const se_AuthenticateOidcActionConfig = (input: AuthenticateOidcActionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Issuer != null) { - entries["Issuer"] = input.Issuer; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.AuthorizationEndpoint != null) { - entries["AuthorizationEndpoint"] = input.AuthorizationEndpoint; + if (input[_AE] != null) { + entries[_AE] = input[_AE]; } - if (input.TokenEndpoint != null) { - entries["TokenEndpoint"] = input.TokenEndpoint; + if (input[_TE] != null) { + entries[_TE] = input[_TE]; } - if (input.UserInfoEndpoint != null) { - entries["UserInfoEndpoint"] = input.UserInfoEndpoint; + if (input[_UIE] != null) { + entries[_UIE] = input[_UIE]; } - if (input.ClientId != null) { - entries["ClientId"] = input.ClientId; + if (input[_CI] != null) { + entries[_CI] = input[_CI]; } - if (input.ClientSecret != null) { - entries["ClientSecret"] = input.ClientSecret; + if (input[_CS] != null) { + entries[_CS] = input[_CS]; } - if (input.SessionCookieName != null) { - entries["SessionCookieName"] = input.SessionCookieName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.Scope != null) { - entries["Scope"] = input.Scope; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.SessionTimeout != null) { - entries["SessionTimeout"] = input.SessionTimeout; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.AuthenticationRequestExtraParams != null) { - const memberEntries = se_AuthenticateOidcActionAuthenticationRequestExtraParams( - input.AuthenticationRequestExtraParams, - context - ); + if (input[_AREP] != null) { + const memberEntries = se_AuthenticateOidcActionAuthenticationRequestExtraParams(input[_AREP], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AuthenticationRequestExtraParams.${key}`; entries[loc] = value; }); } - if (input.OnUnauthenticatedRequest != null) { - entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest; + if (input[_OUR] != null) { + entries[_OUR] = input[_OUR]; } - if (input.UseExistingClientSecret != null) { - entries["UseExistingClientSecret"] = input.UseExistingClientSecret; + if (input[_UECS] != null) { + entries[_UECS] = input[_UECS]; } return entries; }; @@ -4543,11 +4537,11 @@ const se_AuthenticateOidcActionConfig = (input: AuthenticateOidcActionConfig, co */ const se_Certificate = (input: Certificate, context: __SerdeContext): any => { const entries: any = {}; - if (input.CertificateArn != null) { - entries["CertificateArn"] = input.CertificateArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.IsDefault != null) { - entries["IsDefault"] = input.IsDefault; + if (input[_ID] != null) { + entries[_ID] = input[_ID]; } return entries; }; @@ -4576,21 +4570,21 @@ const se_CertificateList = (input: Certificate[], context: __SerdeContext): any */ const se_CreateListenerInput = (input: CreateListenerInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.SslPolicy != null) { - entries["SslPolicy"] = input.SslPolicy; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_CertificateList(input[_C], context); + if (input[_C]?.length === 0) { entries.Certificates = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4598,9 +4592,9 @@ const se_CreateListenerInput = (input: CreateListenerInput, context: __SerdeCont entries[loc] = value; }); } - if (input.DefaultActions != null) { - const memberEntries = se_Actions(input.DefaultActions, context); - if (input.DefaultActions?.length === 0) { + if (input[_DA] != null) { + const memberEntries = se_Actions(input[_DA], context); + if (input[_DA]?.length === 0) { entries.DefaultActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4608,9 +4602,9 @@ const se_CreateListenerInput = (input: CreateListenerInput, context: __SerdeCont entries[loc] = value; }); } - if (input.AlpnPolicy != null) { - const memberEntries = se_AlpnPolicyName(input.AlpnPolicy, context); - if (input.AlpnPolicy?.length === 0) { + if (input[_AP] != null) { + const memberEntries = se_AlpnPolicyName(input[_AP], context); + if (input[_AP]?.length === 0) { entries.AlpnPolicy = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4618,9 +4612,9 @@ const se_CreateListenerInput = (input: CreateListenerInput, context: __SerdeCont entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4628,8 +4622,8 @@ const se_CreateListenerInput = (input: CreateListenerInput, context: __SerdeCont entries[loc] = value; }); } - if (input.MutualAuthentication != null) { - const memberEntries = se_MutualAuthenticationAttributes(input.MutualAuthentication, context); + if (input[_MA] != null) { + const memberEntries = se_MutualAuthenticationAttributes(input[_MA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MutualAuthentication.${key}`; entries[loc] = value; @@ -4643,12 +4637,12 @@ const se_CreateListenerInput = (input: CreateListenerInput, context: __SerdeCont */ const se_CreateLoadBalancerInput = (input: CreateLoadBalancerInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Subnets != null) { - const memberEntries = se_Subnets(input.Subnets, context); - if (input.Subnets?.length === 0) { + if (input[_Su] != null) { + const memberEntries = se_Subnets(input[_Su], context); + if (input[_Su]?.length === 0) { entries.Subnets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4656,9 +4650,9 @@ const se_CreateLoadBalancerInput = (input: CreateLoadBalancerInput, context: __S entries[loc] = value; }); } - if (input.SubnetMappings != null) { - const memberEntries = se_SubnetMappings(input.SubnetMappings, context); - if (input.SubnetMappings?.length === 0) { + if (input[_SM] != null) { + const memberEntries = se_SubnetMappings(input[_SM], context); + if (input[_SM]?.length === 0) { entries.SubnetMappings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4666,9 +4660,9 @@ const se_CreateLoadBalancerInput = (input: CreateLoadBalancerInput, context: __S entries[loc] = value; }); } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroups(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_SecurityGroups(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4676,12 +4670,12 @@ const se_CreateLoadBalancerInput = (input: CreateLoadBalancerInput, context: __S entries[loc] = value; }); } - if (input.Scheme != null) { - entries["Scheme"] = input.Scheme; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4689,14 +4683,14 @@ const se_CreateLoadBalancerInput = (input: CreateLoadBalancerInput, context: __S entries[loc] = value; }); } - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } - if (input.CustomerOwnedIpv4Pool != null) { - entries["CustomerOwnedIpv4Pool"] = input.CustomerOwnedIpv4Pool; + if (input[_COIP] != null) { + entries[_COIP] = input[_COIP]; } return entries; }; @@ -4706,12 +4700,12 @@ const se_CreateLoadBalancerInput = (input: CreateLoadBalancerInput, context: __S */ const se_CreateRuleInput = (input: CreateRuleInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + if (input[_LA] != null) { + entries[_LA] = input[_LA]; } - if (input.Conditions != null) { - const memberEntries = se_RuleConditionList(input.Conditions, context); - if (input.Conditions?.length === 0) { + if (input[_Co] != null) { + const memberEntries = se_RuleConditionList(input[_Co], context); + if (input[_Co]?.length === 0) { entries.Conditions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4719,12 +4713,12 @@ const se_CreateRuleInput = (input: CreateRuleInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.Priority != null) { - entries["Priority"] = input.Priority; + if (input[_Pr] != null) { + entries[_Pr] = input[_Pr]; } - if (input.Actions != null) { - const memberEntries = se_Actions(input.Actions, context); - if (input.Actions?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_Actions(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Actions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4732,9 +4726,9 @@ const se_CreateRuleInput = (input: CreateRuleInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4750,58 +4744,58 @@ const se_CreateRuleInput = (input: CreateRuleInput, context: __SerdeContext): an */ const se_CreateTargetGroupInput = (input: CreateTargetGroupInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.ProtocolVersion != null) { - entries["ProtocolVersion"] = input.ProtocolVersion; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } - if (input.HealthCheckProtocol != null) { - entries["HealthCheckProtocol"] = input.HealthCheckProtocol; + if (input[_HCP] != null) { + entries[_HCP] = input[_HCP]; } - if (input.HealthCheckPort != null) { - entries["HealthCheckPort"] = input.HealthCheckPort; + if (input[_HCPe] != null) { + entries[_HCPe] = input[_HCPe]; } - if (input.HealthCheckEnabled != null) { - entries["HealthCheckEnabled"] = input.HealthCheckEnabled; + if (input[_HCE] != null) { + entries[_HCE] = input[_HCE]; } - if (input.HealthCheckPath != null) { - entries["HealthCheckPath"] = input.HealthCheckPath; + if (input[_HCPea] != null) { + entries[_HCPea] = input[_HCPea]; } - if (input.HealthCheckIntervalSeconds != null) { - entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds; + if (input[_HCIS] != null) { + entries[_HCIS] = input[_HCIS]; } - if (input.HealthCheckTimeoutSeconds != null) { - entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds; + if (input[_HCTS] != null) { + entries[_HCTS] = input[_HCTS]; } - if (input.HealthyThresholdCount != null) { - entries["HealthyThresholdCount"] = input.HealthyThresholdCount; + if (input[_HTC] != null) { + entries[_HTC] = input[_HTC]; } - if (input.UnhealthyThresholdCount != null) { - entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount; + if (input[_UTC] != null) { + entries[_UTC] = input[_UTC]; } - if (input.Matcher != null) { - const memberEntries = se_Matcher(input.Matcher, context); + if (input[_M] != null) { + const memberEntries = se_Matcher(input[_M], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Matcher.${key}`; entries[loc] = value; }); } - if (input.TargetType != null) { - entries["TargetType"] = input.TargetType; + if (input[_TT] != null) { + entries[_TT] = input[_TT]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4809,8 +4803,8 @@ const se_CreateTargetGroupInput = (input: CreateTargetGroupInput, context: __Ser entries[loc] = value; }); } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } return entries; }; @@ -4820,21 +4814,21 @@ const se_CreateTargetGroupInput = (input: CreateTargetGroupInput, context: __Ser */ const se_CreateTrustStoreInput = (input: CreateTrustStoreInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.CaCertificatesBundleS3Bucket != null) { - entries["CaCertificatesBundleS3Bucket"] = input.CaCertificatesBundleS3Bucket; + if (input[_CCBSB] != null) { + entries[_CCBSB] = input[_CCBSB]; } - if (input.CaCertificatesBundleS3Key != null) { - entries["CaCertificatesBundleS3Key"] = input.CaCertificatesBundleS3Key; + if (input[_CCBSK] != null) { + entries[_CCBSK] = input[_CCBSK]; } - if (input.CaCertificatesBundleS3ObjectVersion != null) { - entries["CaCertificatesBundleS3ObjectVersion"] = input.CaCertificatesBundleS3ObjectVersion; + if (input[_CCBSOV] != null) { + entries[_CCBSOV] = input[_CCBSOV]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4850,8 +4844,8 @@ const se_CreateTrustStoreInput = (input: CreateTrustStoreInput, context: __Serde */ const se_DeleteListenerInput = (input: DeleteListenerInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + if (input[_LA] != null) { + entries[_LA] = input[_LA]; } return entries; }; @@ -4861,8 +4855,8 @@ const se_DeleteListenerInput = (input: DeleteListenerInput, context: __SerdeCont */ const se_DeleteLoadBalancerInput = (input: DeleteLoadBalancerInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } return entries; }; @@ -4872,8 +4866,8 @@ const se_DeleteLoadBalancerInput = (input: DeleteLoadBalancerInput, context: __S */ const se_DeleteRuleInput = (input: DeleteRuleInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleArn != null) { - entries["RuleArn"] = input.RuleArn; + if (input[_RAu] != null) { + entries[_RAu] = input[_RAu]; } return entries; }; @@ -4883,8 +4877,8 @@ const se_DeleteRuleInput = (input: DeleteRuleInput, context: __SerdeContext): an */ const se_DeleteTargetGroupInput = (input: DeleteTargetGroupInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } return entries; }; @@ -4894,8 +4888,8 @@ const se_DeleteTargetGroupInput = (input: DeleteTargetGroupInput, context: __Ser */ const se_DeleteTrustStoreInput = (input: DeleteTrustStoreInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } return entries; }; @@ -4905,12 +4899,12 @@ const se_DeleteTrustStoreInput = (input: DeleteTrustStoreInput, context: __Serde */ const se_DeregisterTargetsInput = (input: DeregisterTargetsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.Targets != null) { - const memberEntries = se_TargetDescriptions(input.Targets, context); - if (input.Targets?.length === 0) { + if (input[_Tar] != null) { + const memberEntries = se_TargetDescriptions(input[_Tar], context); + if (input[_Tar]?.length === 0) { entries.Targets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4926,11 +4920,11 @@ const se_DeregisterTargetsInput = (input: DeregisterTargetsInput, context: __Ser */ const se_DescribeAccountLimitsInput = (input: DescribeAccountLimitsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -4943,14 +4937,14 @@ const se_DescribeListenerCertificatesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + if (input[_LA] != null) { + entries[_LA] = input[_LA]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -4960,12 +4954,12 @@ const se_DescribeListenerCertificatesInput = ( */ const se_DescribeListenersInput = (input: DescribeListenersInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.ListenerArns != null) { - const memberEntries = se_ListenerArns(input.ListenerArns, context); - if (input.ListenerArns?.length === 0) { + if (input[_LAi] != null) { + const memberEntries = se_ListenerArns(input[_LAi], context); + if (input[_LAi]?.length === 0) { entries.ListenerArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4973,11 +4967,11 @@ const se_DescribeListenersInput = (input: DescribeListenersInput, context: __Ser entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -4990,8 +4984,8 @@ const se_DescribeLoadBalancerAttributesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } return entries; }; @@ -5001,9 +4995,9 @@ const se_DescribeLoadBalancerAttributesInput = ( */ const se_DescribeLoadBalancersInput = (input: DescribeLoadBalancersInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArns != null) { - const memberEntries = se_LoadBalancerArns(input.LoadBalancerArns, context); - if (input.LoadBalancerArns?.length === 0) { + if (input[_LBAo] != null) { + const memberEntries = se_LoadBalancerArns(input[_LBAo], context); + if (input[_LBAo]?.length === 0) { entries.LoadBalancerArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5011,9 +5005,9 @@ const se_DescribeLoadBalancersInput = (input: DescribeLoadBalancersInput, contex entries[loc] = value; }); } - if (input.Names != null) { - const memberEntries = se_LoadBalancerNames(input.Names, context); - if (input.Names?.length === 0) { + if (input[_Na] != null) { + const memberEntries = se_LoadBalancerNames(input[_Na], context); + if (input[_Na]?.length === 0) { entries.Names = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5021,11 +5015,11 @@ const se_DescribeLoadBalancersInput = (input: DescribeLoadBalancersInput, contex entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -5035,12 +5029,12 @@ const se_DescribeLoadBalancersInput = (input: DescribeLoadBalancersInput, contex */ const se_DescribeRulesInput = (input: DescribeRulesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + if (input[_LA] != null) { + entries[_LA] = input[_LA]; } - if (input.RuleArns != null) { - const memberEntries = se_RuleArns(input.RuleArns, context); - if (input.RuleArns?.length === 0) { + if (input[_RAul] != null) { + const memberEntries = se_RuleArns(input[_RAul], context); + if (input[_RAul]?.length === 0) { entries.RuleArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5048,11 +5042,11 @@ const se_DescribeRulesInput = (input: DescribeRulesInput, context: __SerdeContex entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -5062,9 +5056,9 @@ const se_DescribeRulesInput = (input: DescribeRulesInput, context: __SerdeContex */ const se_DescribeSSLPoliciesInput = (input: DescribeSSLPoliciesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Names != null) { - const memberEntries = se_SslPolicyNames(input.Names, context); - if (input.Names?.length === 0) { + if (input[_Na] != null) { + const memberEntries = se_SslPolicyNames(input[_Na], context); + if (input[_Na]?.length === 0) { entries.Names = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5072,14 +5066,14 @@ const se_DescribeSSLPoliciesInput = (input: DescribeSSLPoliciesInput, context: _ entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } - if (input.LoadBalancerType != null) { - entries["LoadBalancerType"] = input.LoadBalancerType; + if (input[_LBT] != null) { + entries[_LBT] = input[_LBT]; } return entries; }; @@ -5089,9 +5083,9 @@ const se_DescribeSSLPoliciesInput = (input: DescribeSSLPoliciesInput, context: _ */ const se_DescribeTagsInput = (input: DescribeTagsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArns != null) { - const memberEntries = se_ResourceArns(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { + if (input[_RA] != null) { + const memberEntries = se_ResourceArns(input[_RA], context); + if (input[_RA]?.length === 0) { entries.ResourceArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5110,8 +5104,8 @@ const se_DescribeTargetGroupAttributesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } return entries; }; @@ -5121,12 +5115,12 @@ const se_DescribeTargetGroupAttributesInput = ( */ const se_DescribeTargetGroupsInput = (input: DescribeTargetGroupsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.TargetGroupArns != null) { - const memberEntries = se_TargetGroupArns(input.TargetGroupArns, context); - if (input.TargetGroupArns?.length === 0) { + if (input[_TGAa] != null) { + const memberEntries = se_TargetGroupArns(input[_TGAa], context); + if (input[_TGAa]?.length === 0) { entries.TargetGroupArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5134,9 +5128,9 @@ const se_DescribeTargetGroupsInput = (input: DescribeTargetGroupsInput, context: entries[loc] = value; }); } - if (input.Names != null) { - const memberEntries = se_TargetGroupNames(input.Names, context); - if (input.Names?.length === 0) { + if (input[_Na] != null) { + const memberEntries = se_TargetGroupNames(input[_Na], context); + if (input[_Na]?.length === 0) { entries.Names = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5144,11 +5138,11 @@ const se_DescribeTargetGroupsInput = (input: DescribeTargetGroupsInput, context: entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -5158,12 +5152,12 @@ const se_DescribeTargetGroupsInput = (input: DescribeTargetGroupsInput, context: */ const se_DescribeTargetHealthInput = (input: DescribeTargetHealthInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.Targets != null) { - const memberEntries = se_TargetDescriptions(input.Targets, context); - if (input.Targets?.length === 0) { + if (input[_Tar] != null) { + const memberEntries = se_TargetDescriptions(input[_Tar], context); + if (input[_Tar]?.length === 0) { entries.Targets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5171,9 +5165,9 @@ const se_DescribeTargetHealthInput = (input: DescribeTargetHealthInput, context: entries[loc] = value; }); } - if (input.Include != null) { - const memberEntries = se_ListOfDescribeTargetHealthIncludeOptions(input.Include, context); - if (input.Include?.length === 0) { + if (input[_In] != null) { + const memberEntries = se_ListOfDescribeTargetHealthIncludeOptions(input[_In], context); + if (input[_In]?.length === 0) { entries.Include = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5192,14 +5186,14 @@ const se_DescribeTrustStoreAssociationsInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -5212,12 +5206,12 @@ const se_DescribeTrustStoreRevocationsInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } - if (input.RevocationIds != null) { - const memberEntries = se_RevocationIds(input.RevocationIds, context); - if (input.RevocationIds?.length === 0) { + if (input[_RI] != null) { + const memberEntries = se_RevocationIds(input[_RI], context); + if (input[_RI]?.length === 0) { entries.RevocationIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5225,11 +5219,11 @@ const se_DescribeTrustStoreRevocationsInput = ( entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -5239,9 +5233,9 @@ const se_DescribeTrustStoreRevocationsInput = ( */ const se_DescribeTrustStoresInput = (input: DescribeTrustStoresInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrustStoreArns != null) { - const memberEntries = se_TrustStoreArns(input.TrustStoreArns, context); - if (input.TrustStoreArns?.length === 0) { + if (input[_TSAr] != null) { + const memberEntries = se_TrustStoreArns(input[_TSAr], context); + if (input[_TSAr]?.length === 0) { entries.TrustStoreArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5249,9 +5243,9 @@ const se_DescribeTrustStoresInput = (input: DescribeTrustStoresInput, context: _ entries[loc] = value; }); } - if (input.Names != null) { - const memberEntries = se_TrustStoreNames(input.Names, context); - if (input.Names?.length === 0) { + if (input[_Na] != null) { + const memberEntries = se_TrustStoreNames(input[_Na], context); + if (input[_Na]?.length === 0) { entries.Names = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5259,11 +5253,11 @@ const se_DescribeTrustStoresInput = (input: DescribeTrustStoresInput, context: _ entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -5273,14 +5267,14 @@ const se_DescribeTrustStoresInput = (input: DescribeTrustStoresInput, context: _ */ const se_FixedResponseActionConfig = (input: FixedResponseActionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.MessageBody != null) { - entries["MessageBody"] = input.MessageBody; + if (input[_MB] != null) { + entries[_MB] = input[_MB]; } - if (input.StatusCode != null) { - entries["StatusCode"] = input.StatusCode; + if (input[_SC] != null) { + entries[_SC] = input[_SC]; } - if (input.ContentType != null) { - entries["ContentType"] = input.ContentType; + if (input[_CT] != null) { + entries[_CT] = input[_CT]; } return entries; }; @@ -5290,9 +5284,9 @@ const se_FixedResponseActionConfig = (input: FixedResponseActionConfig, context: */ const se_ForwardActionConfig = (input: ForwardActionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroups != null) { - const memberEntries = se_TargetGroupList(input.TargetGroups, context); - if (input.TargetGroups?.length === 0) { + if (input[_TG] != null) { + const memberEntries = se_TargetGroupList(input[_TG], context); + if (input[_TG]?.length === 0) { entries.TargetGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5300,8 +5294,8 @@ const se_ForwardActionConfig = (input: ForwardActionConfig, context: __SerdeCont entries[loc] = value; }); } - if (input.TargetGroupStickinessConfig != null) { - const memberEntries = se_TargetGroupStickinessConfig(input.TargetGroupStickinessConfig, context); + if (input[_TGSC] != null) { + const memberEntries = se_TargetGroupStickinessConfig(input[_TGSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TargetGroupStickinessConfig.${key}`; entries[loc] = value; @@ -5318,8 +5312,8 @@ const se_GetTrustStoreCaCertificatesBundleInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } return entries; }; @@ -5332,11 +5326,11 @@ const se_GetTrustStoreRevocationContentInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } - if (input.RevocationId != null) { - entries["RevocationId"] = input.RevocationId; + if (input[_RIe] != null) { + entries[_RIe] = input[_RIe]; } return entries; }; @@ -5346,9 +5340,9 @@ const se_GetTrustStoreRevocationContentInput = ( */ const se_HostHeaderConditionConfig = (input: HostHeaderConditionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ListOfString(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5364,12 +5358,12 @@ const se_HostHeaderConditionConfig = (input: HostHeaderConditionConfig, context: */ const se_HttpHeaderConditionConfig = (input: HttpHeaderConditionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.HttpHeaderName != null) { - entries["HttpHeaderName"] = input.HttpHeaderName; + if (input[_HHN] != null) { + entries[_HHN] = input[_HHN]; } - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ListOfString(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5385,9 +5379,9 @@ const se_HttpHeaderConditionConfig = (input: HttpHeaderConditionConfig, context: */ const se_HttpRequestMethodConditionConfig = (input: HttpRequestMethodConditionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ListOfString(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5470,11 +5464,11 @@ const se_LoadBalancerArns = (input: string[], context: __SerdeContext): any => { */ const se_LoadBalancerAttribute = (input: LoadBalancerAttribute, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -5519,11 +5513,11 @@ const se_LoadBalancerNames = (input: string[], context: __SerdeContext): any => */ const se_Matcher = (input: Matcher, context: __SerdeContext): any => { const entries: any = {}; - if (input.HttpCode != null) { - entries["HttpCode"] = input.HttpCode; + if (input[_HC] != null) { + entries[_HC] = input[_HC]; } - if (input.GrpcCode != null) { - entries["GrpcCode"] = input.GrpcCode; + if (input[_GC] != null) { + entries[_GC] = input[_GC]; } return entries; }; @@ -5533,21 +5527,21 @@ const se_Matcher = (input: Matcher, context: __SerdeContext): any => { */ const se_ModifyListenerInput = (input: ModifyListenerInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + if (input[_LA] != null) { + entries[_LA] = input[_LA]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.SslPolicy != null) { - entries["SslPolicy"] = input.SslPolicy; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_CertificateList(input[_C], context); + if (input[_C]?.length === 0) { entries.Certificates = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5555,9 +5549,9 @@ const se_ModifyListenerInput = (input: ModifyListenerInput, context: __SerdeCont entries[loc] = value; }); } - if (input.DefaultActions != null) { - const memberEntries = se_Actions(input.DefaultActions, context); - if (input.DefaultActions?.length === 0) { + if (input[_DA] != null) { + const memberEntries = se_Actions(input[_DA], context); + if (input[_DA]?.length === 0) { entries.DefaultActions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5565,9 +5559,9 @@ const se_ModifyListenerInput = (input: ModifyListenerInput, context: __SerdeCont entries[loc] = value; }); } - if (input.AlpnPolicy != null) { - const memberEntries = se_AlpnPolicyName(input.AlpnPolicy, context); - if (input.AlpnPolicy?.length === 0) { + if (input[_AP] != null) { + const memberEntries = se_AlpnPolicyName(input[_AP], context); + if (input[_AP]?.length === 0) { entries.AlpnPolicy = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5575,8 +5569,8 @@ const se_ModifyListenerInput = (input: ModifyListenerInput, context: __SerdeCont entries[loc] = value; }); } - if (input.MutualAuthentication != null) { - const memberEntries = se_MutualAuthenticationAttributes(input.MutualAuthentication, context); + if (input[_MA] != null) { + const memberEntries = se_MutualAuthenticationAttributes(input[_MA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MutualAuthentication.${key}`; entries[loc] = value; @@ -5593,12 +5587,12 @@ const se_ModifyLoadBalancerAttributesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.Attributes != null) { - const memberEntries = se_LoadBalancerAttributes(input.Attributes, context); - if (input.Attributes?.length === 0) { + if (input[_At] != null) { + const memberEntries = se_LoadBalancerAttributes(input[_At], context); + if (input[_At]?.length === 0) { entries.Attributes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5614,12 +5608,12 @@ const se_ModifyLoadBalancerAttributesInput = ( */ const se_ModifyRuleInput = (input: ModifyRuleInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleArn != null) { - entries["RuleArn"] = input.RuleArn; + if (input[_RAu] != null) { + entries[_RAu] = input[_RAu]; } - if (input.Conditions != null) { - const memberEntries = se_RuleConditionList(input.Conditions, context); - if (input.Conditions?.length === 0) { + if (input[_Co] != null) { + const memberEntries = se_RuleConditionList(input[_Co], context); + if (input[_Co]?.length === 0) { entries.Conditions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5627,9 +5621,9 @@ const se_ModifyRuleInput = (input: ModifyRuleInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.Actions != null) { - const memberEntries = se_Actions(input.Actions, context); - if (input.Actions?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_Actions(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Actions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5645,12 +5639,12 @@ const se_ModifyRuleInput = (input: ModifyRuleInput, context: __SerdeContext): an */ const se_ModifyTargetGroupAttributesInput = (input: ModifyTargetGroupAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.Attributes != null) { - const memberEntries = se_TargetGroupAttributes(input.Attributes, context); - if (input.Attributes?.length === 0) { + if (input[_At] != null) { + const memberEntries = se_TargetGroupAttributes(input[_At], context); + if (input[_At]?.length === 0) { entries.Attributes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5666,35 +5660,35 @@ const se_ModifyTargetGroupAttributesInput = (input: ModifyTargetGroupAttributesI */ const se_ModifyTargetGroupInput = (input: ModifyTargetGroupInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.HealthCheckProtocol != null) { - entries["HealthCheckProtocol"] = input.HealthCheckProtocol; + if (input[_HCP] != null) { + entries[_HCP] = input[_HCP]; } - if (input.HealthCheckPort != null) { - entries["HealthCheckPort"] = input.HealthCheckPort; + if (input[_HCPe] != null) { + entries[_HCPe] = input[_HCPe]; } - if (input.HealthCheckPath != null) { - entries["HealthCheckPath"] = input.HealthCheckPath; + if (input[_HCPea] != null) { + entries[_HCPea] = input[_HCPea]; } - if (input.HealthCheckEnabled != null) { - entries["HealthCheckEnabled"] = input.HealthCheckEnabled; + if (input[_HCE] != null) { + entries[_HCE] = input[_HCE]; } - if (input.HealthCheckIntervalSeconds != null) { - entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds; + if (input[_HCIS] != null) { + entries[_HCIS] = input[_HCIS]; } - if (input.HealthCheckTimeoutSeconds != null) { - entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds; + if (input[_HCTS] != null) { + entries[_HCTS] = input[_HCTS]; } - if (input.HealthyThresholdCount != null) { - entries["HealthyThresholdCount"] = input.HealthyThresholdCount; + if (input[_HTC] != null) { + entries[_HTC] = input[_HTC]; } - if (input.UnhealthyThresholdCount != null) { - entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount; + if (input[_UTC] != null) { + entries[_UTC] = input[_UTC]; } - if (input.Matcher != null) { - const memberEntries = se_Matcher(input.Matcher, context); + if (input[_M] != null) { + const memberEntries = se_Matcher(input[_M], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Matcher.${key}`; entries[loc] = value; @@ -5708,17 +5702,17 @@ const se_ModifyTargetGroupInput = (input: ModifyTargetGroupInput, context: __Ser */ const se_ModifyTrustStoreInput = (input: ModifyTrustStoreInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } - if (input.CaCertificatesBundleS3Bucket != null) { - entries["CaCertificatesBundleS3Bucket"] = input.CaCertificatesBundleS3Bucket; + if (input[_CCBSB] != null) { + entries[_CCBSB] = input[_CCBSB]; } - if (input.CaCertificatesBundleS3Key != null) { - entries["CaCertificatesBundleS3Key"] = input.CaCertificatesBundleS3Key; + if (input[_CCBSK] != null) { + entries[_CCBSK] = input[_CCBSK]; } - if (input.CaCertificatesBundleS3ObjectVersion != null) { - entries["CaCertificatesBundleS3ObjectVersion"] = input.CaCertificatesBundleS3ObjectVersion; + if (input[_CCBSOV] != null) { + entries[_CCBSOV] = input[_CCBSOV]; } return entries; }; @@ -5728,14 +5722,14 @@ const se_ModifyTrustStoreInput = (input: ModifyTrustStoreInput, context: __Serde */ const se_MutualAuthenticationAttributes = (input: MutualAuthenticationAttributes, context: __SerdeContext): any => { const entries: any = {}; - if (input.Mode != null) { - entries["Mode"] = input.Mode; + if (input[_Mo] != null) { + entries[_Mo] = input[_Mo]; } - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } - if (input.IgnoreClientCertificateExpiry != null) { - entries["IgnoreClientCertificateExpiry"] = input.IgnoreClientCertificateExpiry; + if (input[_ICCE] != null) { + entries[_ICCE] = input[_ICCE]; } return entries; }; @@ -5745,9 +5739,9 @@ const se_MutualAuthenticationAttributes = (input: MutualAuthenticationAttributes */ const se_PathPatternConditionConfig = (input: PathPatternConditionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ListOfString(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5763,9 +5757,9 @@ const se_PathPatternConditionConfig = (input: PathPatternConditionConfig, contex */ const se_QueryStringConditionConfig = (input: QueryStringConditionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Values != null) { - const memberEntries = se_QueryStringKeyValuePairList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_QueryStringKeyValuePairList(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5781,11 +5775,11 @@ const se_QueryStringConditionConfig = (input: QueryStringConditionConfig, contex */ const se_QueryStringKeyValuePair = (input: QueryStringKeyValuePair, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -5814,23 +5808,23 @@ const se_QueryStringKeyValuePairList = (input: QueryStringKeyValuePair[], contex */ const se_RedirectActionConfig = (input: RedirectActionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.Host != null) { - entries["Host"] = input.Host; + if (input[_H] != null) { + entries[_H] = input[_H]; } - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_Pa] != null) { + entries[_Pa] = input[_Pa]; } - if (input.Query != null) { - entries["Query"] = input.Query; + if (input[_Q] != null) { + entries[_Q] = input[_Q]; } - if (input.StatusCode != null) { - entries["StatusCode"] = input.StatusCode; + if (input[_SC] != null) { + entries[_SC] = input[_SC]; } return entries; }; @@ -5840,12 +5834,12 @@ const se_RedirectActionConfig = (input: RedirectActionConfig, context: __SerdeCo */ const se_RegisterTargetsInput = (input: RegisterTargetsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.Targets != null) { - const memberEntries = se_TargetDescriptions(input.Targets, context); - if (input.Targets?.length === 0) { + if (input[_Tar] != null) { + const memberEntries = se_TargetDescriptions(input[_Tar], context); + if (input[_Tar]?.length === 0) { entries.Targets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5861,12 +5855,12 @@ const se_RegisterTargetsInput = (input: RegisterTargetsInput, context: __SerdeCo */ const se_RemoveListenerCertificatesInput = (input: RemoveListenerCertificatesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListenerArn != null) { - entries["ListenerArn"] = input.ListenerArn; + if (input[_LA] != null) { + entries[_LA] = input[_LA]; } - if (input.Certificates != null) { - const memberEntries = se_CertificateList(input.Certificates, context); - if (input.Certificates?.length === 0) { + if (input[_C] != null) { + const memberEntries = se_CertificateList(input[_C], context); + if (input[_C]?.length === 0) { entries.Certificates = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5882,9 +5876,9 @@ const se_RemoveListenerCertificatesInput = (input: RemoveListenerCertificatesInp */ const se_RemoveTagsInput = (input: RemoveTagsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArns != null) { - const memberEntries = se_ResourceArns(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { + if (input[_RA] != null) { + const memberEntries = se_ResourceArns(input[_RA], context); + if (input[_RA]?.length === 0) { entries.ResourceArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5892,9 +5886,9 @@ const se_RemoveTagsInput = (input: RemoveTagsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.TagKeys != null) { - const memberEntries = se_TagKeys(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeys(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5910,12 +5904,12 @@ const se_RemoveTagsInput = (input: RemoveTagsInput, context: __SerdeContext): an */ const se_RemoveTrustStoreRevocationsInput = (input: RemoveTrustStoreRevocationsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrustStoreArn != null) { - entries["TrustStoreArn"] = input.TrustStoreArn; + if (input[_TSA] != null) { + entries[_TSA] = input[_TSA]; } - if (input.RevocationIds != null) { - const memberEntries = se_RevocationIds(input.RevocationIds, context); - if (input.RevocationIds?.length === 0) { + if (input[_RI] != null) { + const memberEntries = se_RevocationIds(input[_RI], context); + if (input[_RI]?.length === 0) { entries.RevocationIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5947,17 +5941,17 @@ const se_ResourceArns = (input: string[], context: __SerdeContext): any => { */ const se_RevocationContent = (input: RevocationContent, context: __SerdeContext): any => { const entries: any = {}; - if (input.S3Bucket != null) { - entries["S3Bucket"] = input.S3Bucket; + if (input[_SB] != null) { + entries[_SB] = input[_SB]; } - if (input.S3Key != null) { - entries["S3Key"] = input.S3Key; + if (input[_SK] != null) { + entries[_SK] = input[_SK]; } - if (input.S3ObjectVersion != null) { - entries["S3ObjectVersion"] = input.S3ObjectVersion; + if (input[_SOV] != null) { + entries[_SOV] = input[_SOV]; } - if (input.RevocationType != null) { - entries["RevocationType"] = input.RevocationType; + if (input[_RTev] != null) { + entries[_RTev] = input[_RTev]; } return entries; }; @@ -6018,12 +6012,12 @@ const se_RuleArns = (input: string[], context: __SerdeContext): any => { */ const se_RuleCondition = (input: RuleCondition, context: __SerdeContext): any => { const entries: any = {}; - if (input.Field != null) { - entries["Field"] = input.Field; + if (input[_F] != null) { + entries[_F] = input[_F]; } - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ListOfString(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6031,43 +6025,43 @@ const se_RuleCondition = (input: RuleCondition, context: __SerdeContext): any => entries[loc] = value; }); } - if (input.HostHeaderConfig != null) { - const memberEntries = se_HostHeaderConditionConfig(input.HostHeaderConfig, context); + if (input[_HHC] != null) { + const memberEntries = se_HostHeaderConditionConfig(input[_HHC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `HostHeaderConfig.${key}`; entries[loc] = value; }); } - if (input.PathPatternConfig != null) { - const memberEntries = se_PathPatternConditionConfig(input.PathPatternConfig, context); + if (input[_PPC] != null) { + const memberEntries = se_PathPatternConditionConfig(input[_PPC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PathPatternConfig.${key}`; entries[loc] = value; }); } - if (input.HttpHeaderConfig != null) { - const memberEntries = se_HttpHeaderConditionConfig(input.HttpHeaderConfig, context); + if (input[_HHCt] != null) { + const memberEntries = se_HttpHeaderConditionConfig(input[_HHCt], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `HttpHeaderConfig.${key}`; entries[loc] = value; }); } - if (input.QueryStringConfig != null) { - const memberEntries = se_QueryStringConditionConfig(input.QueryStringConfig, context); + if (input[_QSC] != null) { + const memberEntries = se_QueryStringConditionConfig(input[_QSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `QueryStringConfig.${key}`; entries[loc] = value; }); } - if (input.HttpRequestMethodConfig != null) { - const memberEntries = se_HttpRequestMethodConditionConfig(input.HttpRequestMethodConfig, context); + if (input[_HRMC] != null) { + const memberEntries = se_HttpRequestMethodConditionConfig(input[_HRMC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `HttpRequestMethodConfig.${key}`; entries[loc] = value; }); } - if (input.SourceIpConfig != null) { - const memberEntries = se_SourceIpConditionConfig(input.SourceIpConfig, context); + if (input[_SIC] != null) { + const memberEntries = se_SourceIpConditionConfig(input[_SIC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SourceIpConfig.${key}`; entries[loc] = value; @@ -6119,11 +6113,11 @@ const se_RulePriorityList = (input: RulePriorityPair[], context: __SerdeContext) */ const se_RulePriorityPair = (input: RulePriorityPair, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleArn != null) { - entries["RuleArn"] = input.RuleArn; + if (input[_RAu] != null) { + entries[_RAu] = input[_RAu]; } - if (input.Priority != null) { - entries["Priority"] = input.Priority; + if (input[_Pr] != null) { + entries[_Pr] = input[_Pr]; } return entries; }; @@ -6149,11 +6143,11 @@ const se_SecurityGroups = (input: string[], context: __SerdeContext): any => { */ const se_SetIpAddressTypeInput = (input: SetIpAddressTypeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } return entries; }; @@ -6163,9 +6157,9 @@ const se_SetIpAddressTypeInput = (input: SetIpAddressTypeInput, context: __Serde */ const se_SetRulePrioritiesInput = (input: SetRulePrioritiesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.RulePriorities != null) { - const memberEntries = se_RulePriorityList(input.RulePriorities, context); - if (input.RulePriorities?.length === 0) { + if (input[_RP] != null) { + const memberEntries = se_RulePriorityList(input[_RP], context); + if (input[_RP]?.length === 0) { entries.RulePriorities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6181,12 +6175,12 @@ const se_SetRulePrioritiesInput = (input: SetRulePrioritiesInput, context: __Ser */ const se_SetSecurityGroupsInput = (input: SetSecurityGroupsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroups(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_SecurityGroups(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6194,9 +6188,8 @@ const se_SetSecurityGroupsInput = (input: SetSecurityGroupsInput, context: __Ser entries[loc] = value; }); } - if (input.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic != null) { - entries["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] = - input.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic; + if (input[_ESGIROPLT] != null) { + entries[_ESGIROPLT] = input[_ESGIROPLT]; } return entries; }; @@ -6206,12 +6199,12 @@ const se_SetSecurityGroupsInput = (input: SetSecurityGroupsInput, context: __Ser */ const se_SetSubnetsInput = (input: SetSubnetsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerArn != null) { - entries["LoadBalancerArn"] = input.LoadBalancerArn; + if (input[_LBA] != null) { + entries[_LBA] = input[_LBA]; } - if (input.Subnets != null) { - const memberEntries = se_Subnets(input.Subnets, context); - if (input.Subnets?.length === 0) { + if (input[_Su] != null) { + const memberEntries = se_Subnets(input[_Su], context); + if (input[_Su]?.length === 0) { entries.Subnets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6219,9 +6212,9 @@ const se_SetSubnetsInput = (input: SetSubnetsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.SubnetMappings != null) { - const memberEntries = se_SubnetMappings(input.SubnetMappings, context); - if (input.SubnetMappings?.length === 0) { + if (input[_SM] != null) { + const memberEntries = se_SubnetMappings(input[_SM], context); + if (input[_SM]?.length === 0) { entries.SubnetMappings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6229,8 +6222,8 @@ const se_SetSubnetsInput = (input: SetSubnetsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } return entries; }; @@ -6240,9 +6233,9 @@ const se_SetSubnetsInput = (input: SetSubnetsInput, context: __SerdeContext): an */ const se_SourceIpConditionConfig = (input: SourceIpConditionConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Values != null) { - const memberEntries = se_ListOfString(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ListOfString(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6274,17 +6267,17 @@ const se_SslPolicyNames = (input: string[], context: __SerdeContext): any => { */ const se_SubnetMapping = (input: SubnetMapping, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubnetId != null) { - entries["SubnetId"] = input.SubnetId; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.AllocationId != null) { - entries["AllocationId"] = input.AllocationId; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.PrivateIPv4Address != null) { - entries["PrivateIPv4Address"] = input.PrivateIPv4Address; + if (input[_PIPA] != null) { + entries[_PIPA] = input[_PIPA]; } - if (input.IPv6Address != null) { - entries["IPv6Address"] = input.IPv6Address; + if (input[_IPA] != null) { + entries[_IPA] = input[_IPA]; } return entries; }; @@ -6329,11 +6322,11 @@ const se_Subnets = (input: string[], context: __SerdeContext): any => { */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -6378,14 +6371,14 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { */ const se_TargetDescription = (input: TargetDescription, context: __SerdeContext): any => { const entries: any = {}; - if (input.Id != null) { - entries["Id"] = input.Id; + if (input[_Id] != null) { + entries[_Id] = input[_Id]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } return entries; }; @@ -6430,11 +6423,11 @@ const se_TargetGroupArns = (input: string[], context: __SerdeContext): any => { */ const se_TargetGroupAttribute = (input: TargetGroupAttribute, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -6498,11 +6491,11 @@ const se_TargetGroupNames = (input: string[], context: __SerdeContext): any => { */ const se_TargetGroupStickinessConfig = (input: TargetGroupStickinessConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; } return entries; }; @@ -6512,11 +6505,11 @@ const se_TargetGroupStickinessConfig = (input: TargetGroupStickinessConfig, cont */ const se_TargetGroupTuple = (input: TargetGroupTuple, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupArn != null) { - entries["TargetGroupArn"] = input.TargetGroupArn; + if (input[_TGA] != null) { + entries[_TGA] = input[_TGA]; } - if (input.Weight != null) { - entries["Weight"] = input.Weight; + if (input[_W] != null) { + entries[_W] = input[_W]; } return entries; }; @@ -6558,32 +6551,29 @@ const se_TrustStoreNames = (input: string[], context: __SerdeContext): any => { */ const de_Action = (output: any, context: __SerdeContext): Action => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["TargetGroupArn"] !== undefined) { - contents.TargetGroupArn = __expectString(output["TargetGroupArn"]); + if (output[_TGA] != null) { + contents[_TGA] = __expectString(output[_TGA]); } - if (output["AuthenticateOidcConfig"] !== undefined) { - contents.AuthenticateOidcConfig = de_AuthenticateOidcActionConfig(output["AuthenticateOidcConfig"], context); + if (output[_AOC] != null) { + contents[_AOC] = de_AuthenticateOidcActionConfig(output[_AOC], context); } - if (output["AuthenticateCognitoConfig"] !== undefined) { - contents.AuthenticateCognitoConfig = de_AuthenticateCognitoActionConfig( - output["AuthenticateCognitoConfig"], - context - ); + if (output[_ACC] != null) { + contents[_ACC] = de_AuthenticateCognitoActionConfig(output[_ACC], context); } - if (output["Order"] !== undefined) { - contents.Order = __strictParseInt32(output["Order"]) as number; + if (output[_O] != null) { + contents[_O] = __strictParseInt32(output[_O]) as number; } - if (output["RedirectConfig"] !== undefined) { - contents.RedirectConfig = de_RedirectActionConfig(output["RedirectConfig"], context); + if (output[_RC] != null) { + contents[_RC] = de_RedirectActionConfig(output[_RC], context); } - if (output["FixedResponseConfig"] !== undefined) { - contents.FixedResponseConfig = de_FixedResponseActionConfig(output["FixedResponseConfig"], context); + if (output[_FRC] != null) { + contents[_FRC] = de_FixedResponseActionConfig(output[_FRC], context); } - if (output["ForwardConfig"] !== undefined) { - contents.ForwardConfig = de_ForwardActionConfig(output["ForwardConfig"], context); + if (output[_FC] != null) { + contents[_FC] = de_ForwardActionConfig(output[_FC], context); } return contents; }; @@ -6605,9 +6595,9 @@ const de_Actions = (output: any, context: __SerdeContext): Action[] => { const de_AddListenerCertificatesOutput = (output: any, context: __SerdeContext): AddListenerCertificatesOutput => { const contents: any = {}; if (output.Certificates === "") { - contents.Certificates = []; - } else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { - contents.Certificates = de_CertificateList(__getArrayIfSingleItem(output["Certificates"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_m]), context); } return contents; }; @@ -6626,12 +6616,9 @@ const de_AddTagsOutput = (output: any, context: __SerdeContext): AddTagsOutput = const de_AddTrustStoreRevocationsOutput = (output: any, context: __SerdeContext): AddTrustStoreRevocationsOutput => { const contents: any = {}; if (output.TrustStoreRevocations === "") { - contents.TrustStoreRevocations = []; - } else if (output["TrustStoreRevocations"] !== undefined && output["TrustStoreRevocations"]["member"] !== undefined) { - contents.TrustStoreRevocations = de_TrustStoreRevocations( - __getArrayIfSingleItem(output["TrustStoreRevocations"]["member"]), - context - ); + contents[_TSR] = []; + } else if (output[_TSR] != null && output[_TSR][_m] != null) { + contents[_TSR] = de_TrustStoreRevocations(__getArrayIfSingleItem(output[_TSR][_m]), context); } return contents; }; @@ -6641,8 +6628,8 @@ const de_AddTrustStoreRevocationsOutput = (output: any, context: __SerdeContext) */ const de_AllocationIdNotFoundException = (output: any, context: __SerdeContext): AllocationIdNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -6663,8 +6650,8 @@ const de_AlpnPolicyName = (output: any, context: __SerdeContext): string[] => { */ const de_ALPNPolicyNotSupportedException = (output: any, context: __SerdeContext): ALPNPolicyNotSupportedException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -6674,11 +6661,11 @@ const de_ALPNPolicyNotSupportedException = (output: any, context: __SerdeContext */ const de_AnomalyDetection = (output: any, context: __SerdeContext): AnomalyDetection => { const contents: any = {}; - if (output["Result"] !== undefined) { - contents.Result = __expectString(output["Result"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } - if (output["MitigationInEffect"] !== undefined) { - contents.MitigationInEffect = __expectString(output["MitigationInEffect"]); + if (output[_MIE] != null) { + contents[_MIE] = __expectString(output[_MIE]); } return contents; }; @@ -6704,37 +6691,34 @@ const de_AuthenticateCognitoActionAuthenticationRequestExtraParams = ( */ const de_AuthenticateCognitoActionConfig = (output: any, context: __SerdeContext): AuthenticateCognitoActionConfig => { const contents: any = {}; - if (output["UserPoolArn"] !== undefined) { - contents.UserPoolArn = __expectString(output["UserPoolArn"]); + if (output[_UPA] != null) { + contents[_UPA] = __expectString(output[_UPA]); } - if (output["UserPoolClientId"] !== undefined) { - contents.UserPoolClientId = __expectString(output["UserPoolClientId"]); + if (output[_UPCI] != null) { + contents[_UPCI] = __expectString(output[_UPCI]); } - if (output["UserPoolDomain"] !== undefined) { - contents.UserPoolDomain = __expectString(output["UserPoolDomain"]); + if (output[_UPD] != null) { + contents[_UPD] = __expectString(output[_UPD]); } - if (output["SessionCookieName"] !== undefined) { - contents.SessionCookieName = __expectString(output["SessionCookieName"]); + if (output[_SCN] != null) { + contents[_SCN] = __expectString(output[_SCN]); } - if (output["Scope"] !== undefined) { - contents.Scope = __expectString(output["Scope"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["SessionTimeout"] !== undefined) { - contents.SessionTimeout = __strictParseLong(output["SessionTimeout"]) as number; + if (output[_ST] != null) { + contents[_ST] = __strictParseLong(output[_ST]) as number; } if (output.AuthenticationRequestExtraParams === "") { - contents.AuthenticationRequestExtraParams = {}; - } else if ( - output["AuthenticationRequestExtraParams"] !== undefined && - output["AuthenticationRequestExtraParams"]["entry"] !== undefined - ) { - contents.AuthenticationRequestExtraParams = de_AuthenticateCognitoActionAuthenticationRequestExtraParams( - __getArrayIfSingleItem(output["AuthenticationRequestExtraParams"]["entry"]), + contents[_AREP] = {}; + } else if (output[_AREP] != null && output[_AREP][_e] != null) { + contents[_AREP] = de_AuthenticateCognitoActionAuthenticationRequestExtraParams( + __getArrayIfSingleItem(output[_AREP][_e]), context ); } - if (output["OnUnauthenticatedRequest"] !== undefined) { - contents.OnUnauthenticatedRequest = __expectString(output["OnUnauthenticatedRequest"]); + if (output[_OUR] != null) { + contents[_OUR] = __expectString(output[_OUR]); } return contents; }; @@ -6760,49 +6744,46 @@ const de_AuthenticateOidcActionAuthenticationRequestExtraParams = ( */ const de_AuthenticateOidcActionConfig = (output: any, context: __SerdeContext): AuthenticateOidcActionConfig => { const contents: any = {}; - if (output["Issuer"] !== undefined) { - contents.Issuer = __expectString(output["Issuer"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["AuthorizationEndpoint"] !== undefined) { - contents.AuthorizationEndpoint = __expectString(output["AuthorizationEndpoint"]); + if (output[_AE] != null) { + contents[_AE] = __expectString(output[_AE]); } - if (output["TokenEndpoint"] !== undefined) { - contents.TokenEndpoint = __expectString(output["TokenEndpoint"]); + if (output[_TE] != null) { + contents[_TE] = __expectString(output[_TE]); } - if (output["UserInfoEndpoint"] !== undefined) { - contents.UserInfoEndpoint = __expectString(output["UserInfoEndpoint"]); + if (output[_UIE] != null) { + contents[_UIE] = __expectString(output[_UIE]); } - if (output["ClientId"] !== undefined) { - contents.ClientId = __expectString(output["ClientId"]); + if (output[_CI] != null) { + contents[_CI] = __expectString(output[_CI]); } - if (output["ClientSecret"] !== undefined) { - contents.ClientSecret = __expectString(output["ClientSecret"]); + if (output[_CS] != null) { + contents[_CS] = __expectString(output[_CS]); } - if (output["SessionCookieName"] !== undefined) { - contents.SessionCookieName = __expectString(output["SessionCookieName"]); + if (output[_SCN] != null) { + contents[_SCN] = __expectString(output[_SCN]); } - if (output["Scope"] !== undefined) { - contents.Scope = __expectString(output["Scope"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["SessionTimeout"] !== undefined) { - contents.SessionTimeout = __strictParseLong(output["SessionTimeout"]) as number; + if (output[_ST] != null) { + contents[_ST] = __strictParseLong(output[_ST]) as number; } if (output.AuthenticationRequestExtraParams === "") { - contents.AuthenticationRequestExtraParams = {}; - } else if ( - output["AuthenticationRequestExtraParams"] !== undefined && - output["AuthenticationRequestExtraParams"]["entry"] !== undefined - ) { - contents.AuthenticationRequestExtraParams = de_AuthenticateOidcActionAuthenticationRequestExtraParams( - __getArrayIfSingleItem(output["AuthenticationRequestExtraParams"]["entry"]), + contents[_AREP] = {}; + } else if (output[_AREP] != null && output[_AREP][_e] != null) { + contents[_AREP] = de_AuthenticateOidcActionAuthenticationRequestExtraParams( + __getArrayIfSingleItem(output[_AREP][_e]), context ); } - if (output["OnUnauthenticatedRequest"] !== undefined) { - contents.OnUnauthenticatedRequest = __expectString(output["OnUnauthenticatedRequest"]); + if (output[_OUR] != null) { + contents[_OUR] = __expectString(output[_OUR]); } - if (output["UseExistingClientSecret"] !== undefined) { - contents.UseExistingClientSecret = __parseBoolean(output["UseExistingClientSecret"]); + if (output[_UECS] != null) { + contents[_UECS] = __parseBoolean(output[_UECS]); } return contents; }; @@ -6812,22 +6793,19 @@ const de_AuthenticateOidcActionConfig = (output: any, context: __SerdeContext): */ const de_AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { const contents: any = {}; - if (output["ZoneName"] !== undefined) { - contents.ZoneName = __expectString(output["ZoneName"]); + if (output[_ZN] != null) { + contents[_ZN] = __expectString(output[_ZN]); } - if (output["SubnetId"] !== undefined) { - contents.SubnetId = __expectString(output["SubnetId"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["OutpostId"] !== undefined) { - contents.OutpostId = __expectString(output["OutpostId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } if (output.LoadBalancerAddresses === "") { - contents.LoadBalancerAddresses = []; - } else if (output["LoadBalancerAddresses"] !== undefined && output["LoadBalancerAddresses"]["member"] !== undefined) { - contents.LoadBalancerAddresses = de_LoadBalancerAddresses( - __getArrayIfSingleItem(output["LoadBalancerAddresses"]["member"]), - context - ); + contents[_LBAoa] = []; + } else if (output[_LBAoa] != null && output[_LBAoa][_m] != null) { + contents[_LBAoa] = de_LoadBalancerAddresses(__getArrayIfSingleItem(output[_LBAoa][_m]), context); } return contents; }; @@ -6840,8 +6818,8 @@ const de_AvailabilityZoneNotSupportedException = ( context: __SerdeContext ): AvailabilityZoneNotSupportedException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -6865,8 +6843,8 @@ const de_CaCertificatesBundleNotFoundException = ( context: __SerdeContext ): CaCertificatesBundleNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -6876,11 +6854,11 @@ const de_CaCertificatesBundleNotFoundException = ( */ const de_Certificate = (output: any, context: __SerdeContext): Certificate => { const contents: any = {}; - if (output["CertificateArn"] !== undefined) { - contents.CertificateArn = __expectString(output["CertificateArn"]); + if (output[_CA] != null) { + contents[_CA] = __expectString(output[_CA]); } - if (output["IsDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["IsDefault"]); + if (output[_ID] != null) { + contents[_ID] = __parseBoolean(output[_ID]); } return contents; }; @@ -6901,8 +6879,8 @@ const de_CertificateList = (output: any, context: __SerdeContext): Certificate[] */ const de_CertificateNotFoundException = (output: any, context: __SerdeContext): CertificateNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -6912,11 +6890,11 @@ const de_CertificateNotFoundException = (output: any, context: __SerdeContext): */ const de_Cipher = (output: any, context: __SerdeContext): Cipher => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt32(output["Priority"]) as number; + if (output[_Pr] != null) { + contents[_Pr] = __strictParseInt32(output[_Pr]) as number; } return contents; }; @@ -6938,9 +6916,9 @@ const de_Ciphers = (output: any, context: __SerdeContext): Cipher[] => { const de_CreateListenerOutput = (output: any, context: __SerdeContext): CreateListenerOutput => { const contents: any = {}; if (output.Listeners === "") { - contents.Listeners = []; - } else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { - contents.Listeners = de_Listeners(__getArrayIfSingleItem(output["Listeners"]["member"]), context); + contents[_L] = []; + } else if (output[_L] != null && output[_L][_m] != null) { + contents[_L] = de_Listeners(__getArrayIfSingleItem(output[_L][_m]), context); } return contents; }; @@ -6951,9 +6929,9 @@ const de_CreateListenerOutput = (output: any, context: __SerdeContext): CreateLi const de_CreateLoadBalancerOutput = (output: any, context: __SerdeContext): CreateLoadBalancerOutput => { const contents: any = {}; if (output.LoadBalancers === "") { - contents.LoadBalancers = []; - } else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { - contents.LoadBalancers = de_LoadBalancers(__getArrayIfSingleItem(output["LoadBalancers"]["member"]), context); + contents[_LB] = []; + } else if (output[_LB] != null && output[_LB][_m] != null) { + contents[_LB] = de_LoadBalancers(__getArrayIfSingleItem(output[_LB][_m]), context); } return contents; }; @@ -6964,9 +6942,9 @@ const de_CreateLoadBalancerOutput = (output: any, context: __SerdeContext): Crea const de_CreateRuleOutput = (output: any, context: __SerdeContext): CreateRuleOutput => { const contents: any = {}; if (output.Rules === "") { - contents.Rules = []; - } else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules(__getArrayIfSingleItem(output["Rules"]["member"]), context); + contents[_Ru] = []; + } else if (output[_Ru] != null && output[_Ru][_m] != null) { + contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); } return contents; }; @@ -6977,9 +6955,9 @@ const de_CreateRuleOutput = (output: any, context: __SerdeContext): CreateRuleOu const de_CreateTargetGroupOutput = (output: any, context: __SerdeContext): CreateTargetGroupOutput => { const contents: any = {}; if (output.TargetGroups === "") { - contents.TargetGroups = []; - } else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroups(__getArrayIfSingleItem(output["TargetGroups"]["member"]), context); + contents[_TG] = []; + } else if (output[_TG] != null && output[_TG][_m] != null) { + contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_TG][_m]), context); } return contents; }; @@ -6990,9 +6968,9 @@ const de_CreateTargetGroupOutput = (output: any, context: __SerdeContext): Creat const de_CreateTrustStoreOutput = (output: any, context: __SerdeContext): CreateTrustStoreOutput => { const contents: any = {}; if (output.TrustStores === "") { - contents.TrustStores = []; - } else if (output["TrustStores"] !== undefined && output["TrustStores"]["member"] !== undefined) { - contents.TrustStores = de_TrustStores(__getArrayIfSingleItem(output["TrustStores"]["member"]), context); + contents[_TS] = []; + } else if (output[_TS] != null && output[_TS][_m] != null) { + contents[_TS] = de_TrustStores(__getArrayIfSingleItem(output[_TS][_m]), context); } return contents; }; @@ -7051,12 +7029,12 @@ const de_DeregisterTargetsOutput = (output: any, context: __SerdeContext): Dereg const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): DescribeAccountLimitsOutput => { const contents: any = {}; if (output.Limits === "") { - contents.Limits = []; - } else if (output["Limits"] !== undefined && output["Limits"]["member"] !== undefined) { - contents.Limits = de_Limits(__getArrayIfSingleItem(output["Limits"]["member"]), context); + contents[_Li] = []; + } else if (output[_Li] != null && output[_Li][_m] != null) { + contents[_Li] = de_Limits(__getArrayIfSingleItem(output[_Li][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7070,12 +7048,12 @@ const de_DescribeListenerCertificatesOutput = ( ): DescribeListenerCertificatesOutput => { const contents: any = {}; if (output.Certificates === "") { - contents.Certificates = []; - } else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { - contents.Certificates = de_CertificateList(__getArrayIfSingleItem(output["Certificates"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7086,12 +7064,12 @@ const de_DescribeListenerCertificatesOutput = ( const de_DescribeListenersOutput = (output: any, context: __SerdeContext): DescribeListenersOutput => { const contents: any = {}; if (output.Listeners === "") { - contents.Listeners = []; - } else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { - contents.Listeners = de_Listeners(__getArrayIfSingleItem(output["Listeners"]["member"]), context); + contents[_L] = []; + } else if (output[_L] != null && output[_L][_m] != null) { + contents[_L] = de_Listeners(__getArrayIfSingleItem(output[_L][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7105,9 +7083,9 @@ const de_DescribeLoadBalancerAttributesOutput = ( ): DescribeLoadBalancerAttributesOutput => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = []; - } else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_LoadBalancerAttributes(__getArrayIfSingleItem(output["Attributes"]["member"]), context); + contents[_At] = []; + } else if (output[_At] != null && output[_At][_m] != null) { + contents[_At] = de_LoadBalancerAttributes(__getArrayIfSingleItem(output[_At][_m]), context); } return contents; }; @@ -7118,12 +7096,12 @@ const de_DescribeLoadBalancerAttributesOutput = ( const de_DescribeLoadBalancersOutput = (output: any, context: __SerdeContext): DescribeLoadBalancersOutput => { const contents: any = {}; if (output.LoadBalancers === "") { - contents.LoadBalancers = []; - } else if (output["LoadBalancers"] !== undefined && output["LoadBalancers"]["member"] !== undefined) { - contents.LoadBalancers = de_LoadBalancers(__getArrayIfSingleItem(output["LoadBalancers"]["member"]), context); + contents[_LB] = []; + } else if (output[_LB] != null && output[_LB][_m] != null) { + contents[_LB] = de_LoadBalancers(__getArrayIfSingleItem(output[_LB][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7134,12 +7112,12 @@ const de_DescribeLoadBalancersOutput = (output: any, context: __SerdeContext): D const de_DescribeRulesOutput = (output: any, context: __SerdeContext): DescribeRulesOutput => { const contents: any = {}; if (output.Rules === "") { - contents.Rules = []; - } else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules(__getArrayIfSingleItem(output["Rules"]["member"]), context); + contents[_Ru] = []; + } else if (output[_Ru] != null && output[_Ru][_m] != null) { + contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7150,12 +7128,12 @@ const de_DescribeRulesOutput = (output: any, context: __SerdeContext): DescribeR const de_DescribeSSLPoliciesOutput = (output: any, context: __SerdeContext): DescribeSSLPoliciesOutput => { const contents: any = {}; if (output.SslPolicies === "") { - contents.SslPolicies = []; - } else if (output["SslPolicies"] !== undefined && output["SslPolicies"]["member"] !== undefined) { - contents.SslPolicies = de_SslPolicies(__getArrayIfSingleItem(output["SslPolicies"]["member"]), context); + contents[_SPs] = []; + } else if (output[_SPs] != null && output[_SPs][_m] != null) { + contents[_SPs] = de_SslPolicies(__getArrayIfSingleItem(output[_SPs][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7166,9 +7144,9 @@ const de_DescribeSSLPoliciesOutput = (output: any, context: __SerdeContext): Des const de_DescribeTagsOutput = (output: any, context: __SerdeContext): DescribeTagsOutput => { const contents: any = {}; if (output.TagDescriptions === "") { - contents.TagDescriptions = []; - } else if (output["TagDescriptions"] !== undefined && output["TagDescriptions"]["member"] !== undefined) { - contents.TagDescriptions = de_TagDescriptions(__getArrayIfSingleItem(output["TagDescriptions"]["member"]), context); + contents[_TD] = []; + } else if (output[_TD] != null && output[_TD][_m] != null) { + contents[_TD] = de_TagDescriptions(__getArrayIfSingleItem(output[_TD][_m]), context); } return contents; }; @@ -7182,9 +7160,9 @@ const de_DescribeTargetGroupAttributesOutput = ( ): DescribeTargetGroupAttributesOutput => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = []; - } else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_TargetGroupAttributes(__getArrayIfSingleItem(output["Attributes"]["member"]), context); + contents[_At] = []; + } else if (output[_At] != null && output[_At][_m] != null) { + contents[_At] = de_TargetGroupAttributes(__getArrayIfSingleItem(output[_At][_m]), context); } return contents; }; @@ -7195,12 +7173,12 @@ const de_DescribeTargetGroupAttributesOutput = ( const de_DescribeTargetGroupsOutput = (output: any, context: __SerdeContext): DescribeTargetGroupsOutput => { const contents: any = {}; if (output.TargetGroups === "") { - contents.TargetGroups = []; - } else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroups(__getArrayIfSingleItem(output["TargetGroups"]["member"]), context); + contents[_TG] = []; + } else if (output[_TG] != null && output[_TG][_m] != null) { + contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_TG][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7211,15 +7189,9 @@ const de_DescribeTargetGroupsOutput = (output: any, context: __SerdeContext): De const de_DescribeTargetHealthOutput = (output: any, context: __SerdeContext): DescribeTargetHealthOutput => { const contents: any = {}; if (output.TargetHealthDescriptions === "") { - contents.TargetHealthDescriptions = []; - } else if ( - output["TargetHealthDescriptions"] !== undefined && - output["TargetHealthDescriptions"]["member"] !== undefined - ) { - contents.TargetHealthDescriptions = de_TargetHealthDescriptions( - __getArrayIfSingleItem(output["TargetHealthDescriptions"]["member"]), - context - ); + contents[_THD] = []; + } else if (output[_THD] != null && output[_THD][_m] != null) { + contents[_THD] = de_TargetHealthDescriptions(__getArrayIfSingleItem(output[_THD][_m]), context); } return contents; }; @@ -7233,18 +7205,12 @@ const de_DescribeTrustStoreAssociationsOutput = ( ): DescribeTrustStoreAssociationsOutput => { const contents: any = {}; if (output.TrustStoreAssociations === "") { - contents.TrustStoreAssociations = []; - } else if ( - output["TrustStoreAssociations"] !== undefined && - output["TrustStoreAssociations"]["member"] !== undefined - ) { - contents.TrustStoreAssociations = de_TrustStoreAssociations( - __getArrayIfSingleItem(output["TrustStoreAssociations"]["member"]), - context - ); + contents[_TSAru] = []; + } else if (output[_TSAru] != null && output[_TSAru][_m] != null) { + contents[_TSAru] = de_TrustStoreAssociations(__getArrayIfSingleItem(output[_TSAru][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7254,17 +7220,17 @@ const de_DescribeTrustStoreAssociationsOutput = ( */ const de_DescribeTrustStoreRevocation = (output: any, context: __SerdeContext): DescribeTrustStoreRevocation => { const contents: any = {}; - if (output["TrustStoreArn"] !== undefined) { - contents.TrustStoreArn = __expectString(output["TrustStoreArn"]); + if (output[_TSA] != null) { + contents[_TSA] = __expectString(output[_TSA]); } - if (output["RevocationId"] !== undefined) { - contents.RevocationId = __strictParseLong(output["RevocationId"]) as number; + if (output[_RIe] != null) { + contents[_RIe] = __strictParseLong(output[_RIe]) as number; } - if (output["RevocationType"] !== undefined) { - contents.RevocationType = __expectString(output["RevocationType"]); + if (output[_RTev] != null) { + contents[_RTev] = __expectString(output[_RTev]); } - if (output["NumberOfRevokedEntries"] !== undefined) { - contents.NumberOfRevokedEntries = __strictParseLong(output["NumberOfRevokedEntries"]) as number; + if (output[_NORE] != null) { + contents[_NORE] = __strictParseLong(output[_NORE]) as number; } return contents; }; @@ -7292,15 +7258,12 @@ const de_DescribeTrustStoreRevocationsOutput = ( ): DescribeTrustStoreRevocationsOutput => { const contents: any = {}; if (output.TrustStoreRevocations === "") { - contents.TrustStoreRevocations = []; - } else if (output["TrustStoreRevocations"] !== undefined && output["TrustStoreRevocations"]["member"] !== undefined) { - contents.TrustStoreRevocations = de_DescribeTrustStoreRevocationResponse( - __getArrayIfSingleItem(output["TrustStoreRevocations"]["member"]), - context - ); + contents[_TSR] = []; + } else if (output[_TSR] != null && output[_TSR][_m] != null) { + contents[_TSR] = de_DescribeTrustStoreRevocationResponse(__getArrayIfSingleItem(output[_TSR][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7311,12 +7274,12 @@ const de_DescribeTrustStoreRevocationsOutput = ( const de_DescribeTrustStoresOutput = (output: any, context: __SerdeContext): DescribeTrustStoresOutput => { const contents: any = {}; if (output.TrustStores === "") { - contents.TrustStores = []; - } else if (output["TrustStores"] !== undefined && output["TrustStores"]["member"] !== undefined) { - contents.TrustStores = de_TrustStores(__getArrayIfSingleItem(output["TrustStores"]["member"]), context); + contents[_TS] = []; + } else if (output[_TS] != null && output[_TS][_m] != null) { + contents[_TS] = de_TrustStores(__getArrayIfSingleItem(output[_TS][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -7326,8 +7289,8 @@ const de_DescribeTrustStoresOutput = (output: any, context: __SerdeContext): Des */ const de_DuplicateListenerException = (output: any, context: __SerdeContext): DuplicateListenerException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7340,8 +7303,8 @@ const de_DuplicateLoadBalancerNameException = ( context: __SerdeContext ): DuplicateLoadBalancerNameException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7351,8 +7314,8 @@ const de_DuplicateLoadBalancerNameException = ( */ const de_DuplicateTagKeysException = (output: any, context: __SerdeContext): DuplicateTagKeysException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7365,8 +7328,8 @@ const de_DuplicateTargetGroupNameException = ( context: __SerdeContext ): DuplicateTargetGroupNameException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7379,8 +7342,8 @@ const de_DuplicateTrustStoreNameException = ( context: __SerdeContext ): DuplicateTrustStoreNameException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7390,14 +7353,14 @@ const de_DuplicateTrustStoreNameException = ( */ const de_FixedResponseActionConfig = (output: any, context: __SerdeContext): FixedResponseActionConfig => { const contents: any = {}; - if (output["MessageBody"] !== undefined) { - contents.MessageBody = __expectString(output["MessageBody"]); + if (output[_MB] != null) { + contents[_MB] = __expectString(output[_MB]); } - if (output["StatusCode"] !== undefined) { - contents.StatusCode = __expectString(output["StatusCode"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["ContentType"] !== undefined) { - contents.ContentType = __expectString(output["ContentType"]); + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); } return contents; }; @@ -7408,15 +7371,12 @@ const de_FixedResponseActionConfig = (output: any, context: __SerdeContext): Fix const de_ForwardActionConfig = (output: any, context: __SerdeContext): ForwardActionConfig => { const contents: any = {}; if (output.TargetGroups === "") { - contents.TargetGroups = []; - } else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroupList(__getArrayIfSingleItem(output["TargetGroups"]["member"]), context); + contents[_TG] = []; + } else if (output[_TG] != null && output[_TG][_m] != null) { + contents[_TG] = de_TargetGroupList(__getArrayIfSingleItem(output[_TG][_m]), context); } - if (output["TargetGroupStickinessConfig"] !== undefined) { - contents.TargetGroupStickinessConfig = de_TargetGroupStickinessConfig( - output["TargetGroupStickinessConfig"], - context - ); + if (output[_TGSC] != null) { + contents[_TGSC] = de_TargetGroupStickinessConfig(output[_TGSC], context); } return contents; }; @@ -7429,8 +7389,8 @@ const de_GetTrustStoreCaCertificatesBundleOutput = ( context: __SerdeContext ): GetTrustStoreCaCertificatesBundleOutput => { const contents: any = {}; - if (output["Location"] !== undefined) { - contents.Location = __expectString(output["Location"]); + if (output[_Lo] != null) { + contents[_Lo] = __expectString(output[_Lo]); } return contents; }; @@ -7443,8 +7403,8 @@ const de_GetTrustStoreRevocationContentOutput = ( context: __SerdeContext ): GetTrustStoreRevocationContentOutput => { const contents: any = {}; - if (output["Location"] !== undefined) { - contents.Location = __expectString(output["Location"]); + if (output[_Lo] != null) { + contents[_Lo] = __expectString(output[_Lo]); } return contents; }; @@ -7454,8 +7414,8 @@ const de_GetTrustStoreRevocationContentOutput = ( */ const de_HealthUnavailableException = (output: any, context: __SerdeContext): HealthUnavailableException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7466,9 +7426,9 @@ const de_HealthUnavailableException = (output: any, context: __SerdeContext): He const de_HostHeaderConditionConfig = (output: any, context: __SerdeContext): HostHeaderConditionConfig => { const contents: any = {}; if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_m] != null) { + contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); } return contents; }; @@ -7478,13 +7438,13 @@ const de_HostHeaderConditionConfig = (output: any, context: __SerdeContext): Hos */ const de_HttpHeaderConditionConfig = (output: any, context: __SerdeContext): HttpHeaderConditionConfig => { const contents: any = {}; - if (output["HttpHeaderName"] !== undefined) { - contents.HttpHeaderName = __expectString(output["HttpHeaderName"]); + if (output[_HHN] != null) { + contents[_HHN] = __expectString(output[_HHN]); } if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_m] != null) { + contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); } return contents; }; @@ -7498,9 +7458,9 @@ const de_HttpRequestMethodConditionConfig = ( ): HttpRequestMethodConditionConfig => { const contents: any = {}; if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_m] != null) { + contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); } return contents; }; @@ -7510,8 +7470,8 @@ const de_HttpRequestMethodConditionConfig = ( */ const de_IncompatibleProtocolsException = (output: any, context: __SerdeContext): IncompatibleProtocolsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7524,8 +7484,8 @@ const de_InvalidCaCertificatesBundleException = ( context: __SerdeContext ): InvalidCaCertificatesBundleException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7538,8 +7498,8 @@ const de_InvalidConfigurationRequestException = ( context: __SerdeContext ): InvalidConfigurationRequestException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7552,8 +7512,8 @@ const de_InvalidLoadBalancerActionException = ( context: __SerdeContext ): InvalidLoadBalancerActionException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7566,8 +7526,8 @@ const de_InvalidRevocationContentException = ( context: __SerdeContext ): InvalidRevocationContentException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7577,8 +7537,8 @@ const de_InvalidRevocationContentException = ( */ const de_InvalidSchemeException = (output: any, context: __SerdeContext): InvalidSchemeException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7588,8 +7548,8 @@ const de_InvalidSchemeException = (output: any, context: __SerdeContext): Invali */ const de_InvalidSecurityGroupException = (output: any, context: __SerdeContext): InvalidSecurityGroupException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7599,8 +7559,8 @@ const de_InvalidSecurityGroupException = (output: any, context: __SerdeContext): */ const de_InvalidSubnetException = (output: any, context: __SerdeContext): InvalidSubnetException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7610,8 +7570,8 @@ const de_InvalidSubnetException = (output: any, context: __SerdeContext): Invali */ const de_InvalidTargetException = (output: any, context: __SerdeContext): InvalidTargetException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7621,11 +7581,11 @@ const de_InvalidTargetException = (output: any, context: __SerdeContext): Invali */ const de_Limit = (output: any, context: __SerdeContext): Limit => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Max"] !== undefined) { - contents.Max = __expectString(output["Max"]); + if (output[_Max] != null) { + contents[_Max] = __expectString(output[_Max]); } return contents; }; @@ -7646,38 +7606,38 @@ const de_Limits = (output: any, context: __SerdeContext): Limit[] => { */ const de_Listener = (output: any, context: __SerdeContext): Listener => { const contents: any = {}; - if (output["ListenerArn"] !== undefined) { - contents.ListenerArn = __expectString(output["ListenerArn"]); + if (output[_LA] != null) { + contents[_LA] = __expectString(output[_LA]); } - if (output["LoadBalancerArn"] !== undefined) { - contents.LoadBalancerArn = __expectString(output["LoadBalancerArn"]); + if (output[_LBA] != null) { + contents[_LBA] = __expectString(output[_LBA]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_Po] != null) { + contents[_Po] = __strictParseInt32(output[_Po]) as number; } - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Certificates === "") { - contents.Certificates = []; - } else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { - contents.Certificates = de_CertificateList(__getArrayIfSingleItem(output["Certificates"]["member"]), context); + contents[_C] = []; + } else if (output[_C] != null && output[_C][_m] != null) { + contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_m]), context); } - if (output["SslPolicy"] !== undefined) { - contents.SslPolicy = __expectString(output["SslPolicy"]); + if (output[_SP] != null) { + contents[_SP] = __expectString(output[_SP]); } if (output.DefaultActions === "") { - contents.DefaultActions = []; - } else if (output["DefaultActions"] !== undefined && output["DefaultActions"]["member"] !== undefined) { - contents.DefaultActions = de_Actions(__getArrayIfSingleItem(output["DefaultActions"]["member"]), context); + contents[_DA] = []; + } else if (output[_DA] != null && output[_DA][_m] != null) { + contents[_DA] = de_Actions(__getArrayIfSingleItem(output[_DA][_m]), context); } if (output.AlpnPolicy === "") { - contents.AlpnPolicy = []; - } else if (output["AlpnPolicy"] !== undefined && output["AlpnPolicy"]["member"] !== undefined) { - contents.AlpnPolicy = de_AlpnPolicyName(__getArrayIfSingleItem(output["AlpnPolicy"]["member"]), context); + contents[_AP] = []; + } else if (output[_AP] != null && output[_AP][_m] != null) { + contents[_AP] = de_AlpnPolicyName(__getArrayIfSingleItem(output[_AP][_m]), context); } - if (output["MutualAuthentication"] !== undefined) { - contents.MutualAuthentication = de_MutualAuthenticationAttributes(output["MutualAuthentication"], context); + if (output[_MA] != null) { + contents[_MA] = de_MutualAuthenticationAttributes(output[_MA], context); } return contents; }; @@ -7687,8 +7647,8 @@ const de_Listener = (output: any, context: __SerdeContext): Listener => { */ const de_ListenerNotFoundException = (output: any, context: __SerdeContext): ListenerNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7720,56 +7680,51 @@ const de_ListOfString = (output: any, context: __SerdeContext): string[] => { */ const de_LoadBalancer = (output: any, context: __SerdeContext): LoadBalancer => { const contents: any = {}; - if (output["LoadBalancerArn"] !== undefined) { - contents.LoadBalancerArn = __expectString(output["LoadBalancerArn"]); + if (output[_LBA] != null) { + contents[_LBA] = __expectString(output[_LBA]); } - if (output["DNSName"] !== undefined) { - contents.DNSName = __expectString(output["DNSName"]); + if (output[_DNSN] != null) { + contents[_DNSN] = __expectString(output[_DNSN]); } - if (output["CanonicalHostedZoneId"] !== undefined) { - contents.CanonicalHostedZoneId = __expectString(output["CanonicalHostedZoneId"]); + if (output[_CHZI] != null) { + contents[_CHZI] = __expectString(output[_CHZI]); } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["LoadBalancerName"] !== undefined) { - contents.LoadBalancerName = __expectString(output["LoadBalancerName"]); + if (output[_LBN] != null) { + contents[_LBN] = __expectString(output[_LBN]); } - if (output["Scheme"] !== undefined) { - contents.Scheme = __expectString(output["Scheme"]); + if (output[_Sc] != null) { + contents[_Sc] = __expectString(output[_Sc]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["State"] !== undefined) { - contents.State = de_LoadBalancerState(output["State"], context); + if (output[_St] != null) { + contents[_St] = de_LoadBalancerState(output[_St], context); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["member"]), - context - ); + contents[_AZv] = []; + } else if (output[_AZv] != null && output[_AZv][_m] != null) { + contents[_AZv] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZv][_m]), context); } if (output.SecurityGroups === "") { - contents.SecurityGroups = []; - } else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) { - contents.SecurityGroups = de_SecurityGroups(__getArrayIfSingleItem(output["SecurityGroups"]["member"]), context); + contents[_SG] = []; + } else if (output[_SG] != null && output[_SG][_m] != null) { + contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context); } - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = __expectString(output["IpAddressType"]); + if (output[_IAT] != null) { + contents[_IAT] = __expectString(output[_IAT]); } - if (output["CustomerOwnedIpv4Pool"] !== undefined) { - contents.CustomerOwnedIpv4Pool = __expectString(output["CustomerOwnedIpv4Pool"]); + if (output[_COIP] != null) { + contents[_COIP] = __expectString(output[_COIP]); } - if (output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] !== undefined) { - contents.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = __expectString( - output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] - ); + if (output[_ESGIROPLT] != null) { + contents[_ESGIROPLT] = __expectString(output[_ESGIROPLT]); } return contents; }; @@ -7779,17 +7734,17 @@ const de_LoadBalancer = (output: any, context: __SerdeContext): LoadBalancer => */ const de_LoadBalancerAddress = (output: any, context: __SerdeContext): LoadBalancerAddress => { const contents: any = {}; - if (output["IpAddress"] !== undefined) { - contents.IpAddress = __expectString(output["IpAddress"]); + if (output[_IA] != null) { + contents[_IA] = __expectString(output[_IA]); } - if (output["AllocationId"] !== undefined) { - contents.AllocationId = __expectString(output["AllocationId"]); + if (output[_AI] != null) { + contents[_AI] = __expectString(output[_AI]); } - if (output["PrivateIPv4Address"] !== undefined) { - contents.PrivateIPv4Address = __expectString(output["PrivateIPv4Address"]); + if (output[_PIPA] != null) { + contents[_PIPA] = __expectString(output[_PIPA]); } - if (output["IPv6Address"] !== undefined) { - contents.IPv6Address = __expectString(output["IPv6Address"]); + if (output[_IPA] != null) { + contents[_IPA] = __expectString(output[_IPA]); } return contents; }; @@ -7821,11 +7776,11 @@ const de_LoadBalancerArns = (output: any, context: __SerdeContext): string[] => */ const de_LoadBalancerAttribute = (output: any, context: __SerdeContext): LoadBalancerAttribute => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -7846,8 +7801,8 @@ const de_LoadBalancerAttributes = (output: any, context: __SerdeContext): LoadBa */ const de_LoadBalancerNotFoundException = (output: any, context: __SerdeContext): LoadBalancerNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -7868,11 +7823,11 @@ const de_LoadBalancers = (output: any, context: __SerdeContext): LoadBalancer[] */ const de_LoadBalancerState = (output: any, context: __SerdeContext): LoadBalancerState => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_Cod] != null) { + contents[_Cod] = __expectString(output[_Cod]); } - if (output["Reason"] !== undefined) { - contents.Reason = __expectString(output["Reason"]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } return contents; }; @@ -7882,11 +7837,11 @@ const de_LoadBalancerState = (output: any, context: __SerdeContext): LoadBalance */ const de_Matcher = (output: any, context: __SerdeContext): Matcher => { const contents: any = {}; - if (output["HttpCode"] !== undefined) { - contents.HttpCode = __expectString(output["HttpCode"]); + if (output[_HC] != null) { + contents[_HC] = __expectString(output[_HC]); } - if (output["GrpcCode"] !== undefined) { - contents.GrpcCode = __expectString(output["GrpcCode"]); + if (output[_GC] != null) { + contents[_GC] = __expectString(output[_GC]); } return contents; }; @@ -7897,9 +7852,9 @@ const de_Matcher = (output: any, context: __SerdeContext): Matcher => { const de_ModifyListenerOutput = (output: any, context: __SerdeContext): ModifyListenerOutput => { const contents: any = {}; if (output.Listeners === "") { - contents.Listeners = []; - } else if (output["Listeners"] !== undefined && output["Listeners"]["member"] !== undefined) { - contents.Listeners = de_Listeners(__getArrayIfSingleItem(output["Listeners"]["member"]), context); + contents[_L] = []; + } else if (output[_L] != null && output[_L][_m] != null) { + contents[_L] = de_Listeners(__getArrayIfSingleItem(output[_L][_m]), context); } return contents; }; @@ -7913,9 +7868,9 @@ const de_ModifyLoadBalancerAttributesOutput = ( ): ModifyLoadBalancerAttributesOutput => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = []; - } else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_LoadBalancerAttributes(__getArrayIfSingleItem(output["Attributes"]["member"]), context); + contents[_At] = []; + } else if (output[_At] != null && output[_At][_m] != null) { + contents[_At] = de_LoadBalancerAttributes(__getArrayIfSingleItem(output[_At][_m]), context); } return contents; }; @@ -7926,9 +7881,9 @@ const de_ModifyLoadBalancerAttributesOutput = ( const de_ModifyRuleOutput = (output: any, context: __SerdeContext): ModifyRuleOutput => { const contents: any = {}; if (output.Rules === "") { - contents.Rules = []; - } else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules(__getArrayIfSingleItem(output["Rules"]["member"]), context); + contents[_Ru] = []; + } else if (output[_Ru] != null && output[_Ru][_m] != null) { + contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); } return contents; }; @@ -7942,9 +7897,9 @@ const de_ModifyTargetGroupAttributesOutput = ( ): ModifyTargetGroupAttributesOutput => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = []; - } else if (output["Attributes"] !== undefined && output["Attributes"]["member"] !== undefined) { - contents.Attributes = de_TargetGroupAttributes(__getArrayIfSingleItem(output["Attributes"]["member"]), context); + contents[_At] = []; + } else if (output[_At] != null && output[_At][_m] != null) { + contents[_At] = de_TargetGroupAttributes(__getArrayIfSingleItem(output[_At][_m]), context); } return contents; }; @@ -7955,9 +7910,9 @@ const de_ModifyTargetGroupAttributesOutput = ( const de_ModifyTargetGroupOutput = (output: any, context: __SerdeContext): ModifyTargetGroupOutput => { const contents: any = {}; if (output.TargetGroups === "") { - contents.TargetGroups = []; - } else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroups(__getArrayIfSingleItem(output["TargetGroups"]["member"]), context); + contents[_TG] = []; + } else if (output[_TG] != null && output[_TG][_m] != null) { + contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_TG][_m]), context); } return contents; }; @@ -7968,9 +7923,9 @@ const de_ModifyTargetGroupOutput = (output: any, context: __SerdeContext): Modif const de_ModifyTrustStoreOutput = (output: any, context: __SerdeContext): ModifyTrustStoreOutput => { const contents: any = {}; if (output.TrustStores === "") { - contents.TrustStores = []; - } else if (output["TrustStores"] !== undefined && output["TrustStores"]["member"] !== undefined) { - contents.TrustStores = de_TrustStores(__getArrayIfSingleItem(output["TrustStores"]["member"]), context); + contents[_TS] = []; + } else if (output[_TS] != null && output[_TS][_m] != null) { + contents[_TS] = de_TrustStores(__getArrayIfSingleItem(output[_TS][_m]), context); } return contents; }; @@ -7980,14 +7935,14 @@ const de_ModifyTrustStoreOutput = (output: any, context: __SerdeContext): Modify */ const de_MutualAuthenticationAttributes = (output: any, context: __SerdeContext): MutualAuthenticationAttributes => { const contents: any = {}; - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } - if (output["TrustStoreArn"] !== undefined) { - contents.TrustStoreArn = __expectString(output["TrustStoreArn"]); + if (output[_TSA] != null) { + contents[_TSA] = __expectString(output[_TSA]); } - if (output["IgnoreClientCertificateExpiry"] !== undefined) { - contents.IgnoreClientCertificateExpiry = __parseBoolean(output["IgnoreClientCertificateExpiry"]); + if (output[_ICCE] != null) { + contents[_ICCE] = __parseBoolean(output[_ICCE]); } return contents; }; @@ -7997,8 +7952,8 @@ const de_MutualAuthenticationAttributes = (output: any, context: __SerdeContext) */ const de_OperationNotPermittedException = (output: any, context: __SerdeContext): OperationNotPermittedException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8009,9 +7964,9 @@ const de_OperationNotPermittedException = (output: any, context: __SerdeContext) const de_PathPatternConditionConfig = (output: any, context: __SerdeContext): PathPatternConditionConfig => { const contents: any = {}; if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_m] != null) { + contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); } return contents; }; @@ -8021,8 +7976,8 @@ const de_PathPatternConditionConfig = (output: any, context: __SerdeContext): Pa */ const de_PriorityInUseException = (output: any, context: __SerdeContext): PriorityInUseException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8033,9 +7988,9 @@ const de_PriorityInUseException = (output: any, context: __SerdeContext): Priori const de_QueryStringConditionConfig = (output: any, context: __SerdeContext): QueryStringConditionConfig => { const contents: any = {}; if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_QueryStringKeyValuePairList(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_m] != null) { + contents[_Va] = de_QueryStringKeyValuePairList(__getArrayIfSingleItem(output[_Va][_m]), context); } return contents; }; @@ -8045,11 +8000,11 @@ const de_QueryStringConditionConfig = (output: any, context: __SerdeContext): Qu */ const de_QueryStringKeyValuePair = (output: any, context: __SerdeContext): QueryStringKeyValuePair => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -8070,23 +8025,23 @@ const de_QueryStringKeyValuePairList = (output: any, context: __SerdeContext): Q */ const de_RedirectActionConfig = (output: any, context: __SerdeContext): RedirectActionConfig => { const contents: any = {}; - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["Port"] !== undefined) { - contents.Port = __expectString(output["Port"]); + if (output[_Po] != null) { + contents[_Po] = __expectString(output[_Po]); } - if (output["Host"] !== undefined) { - contents.Host = __expectString(output["Host"]); + if (output[_H] != null) { + contents[_H] = __expectString(output[_H]); } - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_Pa] != null) { + contents[_Pa] = __expectString(output[_Pa]); } - if (output["Query"] !== undefined) { - contents.Query = __expectString(output["Query"]); + if (output[_Q] != null) { + contents[_Q] = __expectString(output[_Q]); } - if (output["StatusCode"] !== undefined) { - contents.StatusCode = __expectString(output["StatusCode"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } return contents; }; @@ -8134,8 +8089,8 @@ const de_RemoveTrustStoreRevocationsOutput = ( */ const de_ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8148,8 +8103,8 @@ const de_RevocationContentNotFoundException = ( context: __SerdeContext ): RevocationContentNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8159,8 +8114,8 @@ const de_RevocationContentNotFoundException = ( */ const de_RevocationIdNotFoundException = (output: any, context: __SerdeContext): RevocationIdNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8170,24 +8125,24 @@ const de_RevocationIdNotFoundException = (output: any, context: __SerdeContext): */ const de_Rule = (output: any, context: __SerdeContext): Rule => { const contents: any = {}; - if (output["RuleArn"] !== undefined) { - contents.RuleArn = __expectString(output["RuleArn"]); + if (output[_RAu] != null) { + contents[_RAu] = __expectString(output[_RAu]); } - if (output["Priority"] !== undefined) { - contents.Priority = __expectString(output["Priority"]); + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); } if (output.Conditions === "") { - contents.Conditions = []; - } else if (output["Conditions"] !== undefined && output["Conditions"]["member"] !== undefined) { - contents.Conditions = de_RuleConditionList(__getArrayIfSingleItem(output["Conditions"]["member"]), context); + contents[_Co] = []; + } else if (output[_Co] != null && output[_Co][_m] != null) { + contents[_Co] = de_RuleConditionList(__getArrayIfSingleItem(output[_Co][_m]), context); } if (output.Actions === "") { - contents.Actions = []; - } else if (output["Actions"] !== undefined && output["Actions"]["member"] !== undefined) { - contents.Actions = de_Actions(__getArrayIfSingleItem(output["Actions"]["member"]), context); + contents[_Ac] = []; + } else if (output[_Ac] != null && output[_Ac][_m] != null) { + contents[_Ac] = de_Actions(__getArrayIfSingleItem(output[_Ac][_m]), context); } - if (output["IsDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["IsDefault"]); + if (output[_ID] != null) { + contents[_ID] = __parseBoolean(output[_ID]); } return contents; }; @@ -8197,31 +8152,31 @@ const de_Rule = (output: any, context: __SerdeContext): Rule => { */ const de_RuleCondition = (output: any, context: __SerdeContext): RuleCondition => { const contents: any = {}; - if (output["Field"] !== undefined) { - contents.Field = __expectString(output["Field"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_m] != null) { + contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); } - if (output["HostHeaderConfig"] !== undefined) { - contents.HostHeaderConfig = de_HostHeaderConditionConfig(output["HostHeaderConfig"], context); + if (output[_HHC] != null) { + contents[_HHC] = de_HostHeaderConditionConfig(output[_HHC], context); } - if (output["PathPatternConfig"] !== undefined) { - contents.PathPatternConfig = de_PathPatternConditionConfig(output["PathPatternConfig"], context); + if (output[_PPC] != null) { + contents[_PPC] = de_PathPatternConditionConfig(output[_PPC], context); } - if (output["HttpHeaderConfig"] !== undefined) { - contents.HttpHeaderConfig = de_HttpHeaderConditionConfig(output["HttpHeaderConfig"], context); + if (output[_HHCt] != null) { + contents[_HHCt] = de_HttpHeaderConditionConfig(output[_HHCt], context); } - if (output["QueryStringConfig"] !== undefined) { - contents.QueryStringConfig = de_QueryStringConditionConfig(output["QueryStringConfig"], context); + if (output[_QSC] != null) { + contents[_QSC] = de_QueryStringConditionConfig(output[_QSC], context); } - if (output["HttpRequestMethodConfig"] !== undefined) { - contents.HttpRequestMethodConfig = de_HttpRequestMethodConditionConfig(output["HttpRequestMethodConfig"], context); + if (output[_HRMC] != null) { + contents[_HRMC] = de_HttpRequestMethodConditionConfig(output[_HRMC], context); } - if (output["SourceIpConfig"] !== undefined) { - contents.SourceIpConfig = de_SourceIpConditionConfig(output["SourceIpConfig"], context); + if (output[_SIC] != null) { + contents[_SIC] = de_SourceIpConditionConfig(output[_SIC], context); } return contents; }; @@ -8242,8 +8197,8 @@ const de_RuleConditionList = (output: any, context: __SerdeContext): RuleConditi */ const de_RuleNotFoundException = (output: any, context: __SerdeContext): RuleNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8275,8 +8230,8 @@ const de_SecurityGroups = (output: any, context: __SerdeContext): string[] => { */ const de_SetIpAddressTypeOutput = (output: any, context: __SerdeContext): SetIpAddressTypeOutput => { const contents: any = {}; - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = __expectString(output["IpAddressType"]); + if (output[_IAT] != null) { + contents[_IAT] = __expectString(output[_IAT]); } return contents; }; @@ -8287,9 +8242,9 @@ const de_SetIpAddressTypeOutput = (output: any, context: __SerdeContext): SetIpA const de_SetRulePrioritiesOutput = (output: any, context: __SerdeContext): SetRulePrioritiesOutput => { const contents: any = {}; if (output.Rules === "") { - contents.Rules = []; - } else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_Rules(__getArrayIfSingleItem(output["Rules"]["member"]), context); + contents[_Ru] = []; + } else if (output[_Ru] != null && output[_Ru][_m] != null) { + contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); } return contents; }; @@ -8300,17 +8255,12 @@ const de_SetRulePrioritiesOutput = (output: any, context: __SerdeContext): SetRu const de_SetSecurityGroupsOutput = (output: any, context: __SerdeContext): SetSecurityGroupsOutput => { const contents: any = {}; if (output.SecurityGroupIds === "") { - contents.SecurityGroupIds = []; - } else if (output["SecurityGroupIds"] !== undefined && output["SecurityGroupIds"]["member"] !== undefined) { - contents.SecurityGroupIds = de_SecurityGroups( - __getArrayIfSingleItem(output["SecurityGroupIds"]["member"]), - context - ); + contents[_SGI] = []; + } else if (output[_SGI] != null && output[_SGI][_m] != null) { + contents[_SGI] = de_SecurityGroups(__getArrayIfSingleItem(output[_SGI][_m]), context); } - if (output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] !== undefined) { - contents.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = __expectString( - output["EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"] - ); + if (output[_ESGIROPLT] != null) { + contents[_ESGIROPLT] = __expectString(output[_ESGIROPLT]); } return contents; }; @@ -8321,15 +8271,12 @@ const de_SetSecurityGroupsOutput = (output: any, context: __SerdeContext): SetSe const de_SetSubnetsOutput = (output: any, context: __SerdeContext): SetSubnetsOutput => { const contents: any = {}; if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["member"]), - context - ); + contents[_AZv] = []; + } else if (output[_AZv] != null && output[_AZv][_m] != null) { + contents[_AZv] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZv][_m]), context); } - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = __expectString(output["IpAddressType"]); + if (output[_IAT] != null) { + contents[_IAT] = __expectString(output[_IAT]); } return contents; }; @@ -8340,9 +8287,9 @@ const de_SetSubnetsOutput = (output: any, context: __SerdeContext): SetSubnetsOu const de_SourceIpConditionConfig = (output: any, context: __SerdeContext): SourceIpConditionConfig => { const contents: any = {}; if (output.Values === "") { - contents.Values = []; - } else if (output["Values"] !== undefined && output["Values"]["member"] !== undefined) { - contents.Values = de_ListOfString(__getArrayIfSingleItem(output["Values"]["member"]), context); + contents[_Va] = []; + } else if (output[_Va] != null && output[_Va][_m] != null) { + contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); } return contents; }; @@ -8364,28 +8311,22 @@ const de_SslPolicies = (output: any, context: __SerdeContext): SslPolicy[] => { const de_SslPolicy = (output: any, context: __SerdeContext): SslPolicy => { const contents: any = {}; if (output.SslProtocols === "") { - contents.SslProtocols = []; - } else if (output["SslProtocols"] !== undefined && output["SslProtocols"]["member"] !== undefined) { - contents.SslProtocols = de_SslProtocols(__getArrayIfSingleItem(output["SslProtocols"]["member"]), context); + contents[_SPsl] = []; + } else if (output[_SPsl] != null && output[_SPsl][_m] != null) { + contents[_SPsl] = de_SslProtocols(__getArrayIfSingleItem(output[_SPsl][_m]), context); } if (output.Ciphers === "") { - contents.Ciphers = []; - } else if (output["Ciphers"] !== undefined && output["Ciphers"]["member"] !== undefined) { - contents.Ciphers = de_Ciphers(__getArrayIfSingleItem(output["Ciphers"]["member"]), context); + contents[_Ci] = []; + } else if (output[_Ci] != null && output[_Ci][_m] != null) { + contents[_Ci] = de_Ciphers(__getArrayIfSingleItem(output[_Ci][_m]), context); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } if (output.SupportedLoadBalancerTypes === "") { - contents.SupportedLoadBalancerTypes = []; - } else if ( - output["SupportedLoadBalancerTypes"] !== undefined && - output["SupportedLoadBalancerTypes"]["member"] !== undefined - ) { - contents.SupportedLoadBalancerTypes = de_ListOfString( - __getArrayIfSingleItem(output["SupportedLoadBalancerTypes"]["member"]), - context - ); + contents[_SLBT] = []; + } else if (output[_SLBT] != null && output[_SLBT][_m] != null) { + contents[_SLBT] = de_ListOfString(__getArrayIfSingleItem(output[_SLBT][_m]), context); } return contents; }; @@ -8395,8 +8336,8 @@ const de_SslPolicy = (output: any, context: __SerdeContext): SslPolicy => { */ const de_SSLPolicyNotFoundException = (output: any, context: __SerdeContext): SSLPolicyNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8417,8 +8358,8 @@ const de_SslProtocols = (output: any, context: __SerdeContext): string[] => { */ const de_SubnetNotFoundException = (output: any, context: __SerdeContext): SubnetNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8428,11 +8369,11 @@ const de_SubnetNotFoundException = (output: any, context: __SerdeContext): Subne */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -8442,13 +8383,13 @@ const de_Tag = (output: any, context: __SerdeContext): Tag => { */ const de_TagDescription = (output: any, context: __SerdeContext): TagDescription => { const contents: any = {}; - if (output["ResourceArn"] !== undefined) { - contents.ResourceArn = __expectString(output["ResourceArn"]); + if (output[_RAe] != null) { + contents[_RAe] = __expectString(output[_RAe]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_Ta] = []; + } else if (output[_Ta] != null && output[_Ta][_m] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Ta][_m]), context); } return contents; }; @@ -8480,14 +8421,14 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TargetDescription = (output: any, context: __SerdeContext): TargetDescription => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_Po] != null) { + contents[_Po] = __strictParseInt32(output[_Po]) as number; } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZ] != null) { + contents[_AZ] = __expectString(output[_AZ]); } return contents; }; @@ -8497,64 +8438,61 @@ const de_TargetDescription = (output: any, context: __SerdeContext): TargetDescr */ const de_TargetGroup = (output: any, context: __SerdeContext): TargetGroup => { const contents: any = {}; - if (output["TargetGroupArn"] !== undefined) { - contents.TargetGroupArn = __expectString(output["TargetGroupArn"]); + if (output[_TGA] != null) { + contents[_TGA] = __expectString(output[_TGA]); } - if (output["TargetGroupName"] !== undefined) { - contents.TargetGroupName = __expectString(output["TargetGroupName"]); + if (output[_TGN] != null) { + contents[_TGN] = __expectString(output[_TGN]); } - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_Po] != null) { + contents[_Po] = __strictParseInt32(output[_Po]) as number; } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["HealthCheckProtocol"] !== undefined) { - contents.HealthCheckProtocol = __expectString(output["HealthCheckProtocol"]); + if (output[_HCP] != null) { + contents[_HCP] = __expectString(output[_HCP]); } - if (output["HealthCheckPort"] !== undefined) { - contents.HealthCheckPort = __expectString(output["HealthCheckPort"]); + if (output[_HCPe] != null) { + contents[_HCPe] = __expectString(output[_HCPe]); } - if (output["HealthCheckEnabled"] !== undefined) { - contents.HealthCheckEnabled = __parseBoolean(output["HealthCheckEnabled"]); + if (output[_HCE] != null) { + contents[_HCE] = __parseBoolean(output[_HCE]); } - if (output["HealthCheckIntervalSeconds"] !== undefined) { - contents.HealthCheckIntervalSeconds = __strictParseInt32(output["HealthCheckIntervalSeconds"]) as number; + if (output[_HCIS] != null) { + contents[_HCIS] = __strictParseInt32(output[_HCIS]) as number; } - if (output["HealthCheckTimeoutSeconds"] !== undefined) { - contents.HealthCheckTimeoutSeconds = __strictParseInt32(output["HealthCheckTimeoutSeconds"]) as number; + if (output[_HCTS] != null) { + contents[_HCTS] = __strictParseInt32(output[_HCTS]) as number; } - if (output["HealthyThresholdCount"] !== undefined) { - contents.HealthyThresholdCount = __strictParseInt32(output["HealthyThresholdCount"]) as number; + if (output[_HTC] != null) { + contents[_HTC] = __strictParseInt32(output[_HTC]) as number; } - if (output["UnhealthyThresholdCount"] !== undefined) { - contents.UnhealthyThresholdCount = __strictParseInt32(output["UnhealthyThresholdCount"]) as number; + if (output[_UTC] != null) { + contents[_UTC] = __strictParseInt32(output[_UTC]) as number; } - if (output["HealthCheckPath"] !== undefined) { - contents.HealthCheckPath = __expectString(output["HealthCheckPath"]); + if (output[_HCPea] != null) { + contents[_HCPea] = __expectString(output[_HCPea]); } - if (output["Matcher"] !== undefined) { - contents.Matcher = de_Matcher(output["Matcher"], context); + if (output[_M] != null) { + contents[_M] = de_Matcher(output[_M], context); } if (output.LoadBalancerArns === "") { - contents.LoadBalancerArns = []; - } else if (output["LoadBalancerArns"] !== undefined && output["LoadBalancerArns"]["member"] !== undefined) { - contents.LoadBalancerArns = de_LoadBalancerArns( - __getArrayIfSingleItem(output["LoadBalancerArns"]["member"]), - context - ); + contents[_LBAo] = []; + } else if (output[_LBAo] != null && output[_LBAo][_m] != null) { + contents[_LBAo] = de_LoadBalancerArns(__getArrayIfSingleItem(output[_LBAo][_m]), context); } - if (output["TargetType"] !== undefined) { - contents.TargetType = __expectString(output["TargetType"]); + if (output[_TT] != null) { + contents[_TT] = __expectString(output[_TT]); } - if (output["ProtocolVersion"] !== undefined) { - contents.ProtocolVersion = __expectString(output["ProtocolVersion"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = __expectString(output["IpAddressType"]); + if (output[_IAT] != null) { + contents[_IAT] = __expectString(output[_IAT]); } return contents; }; @@ -8567,8 +8505,8 @@ const de_TargetGroupAssociationLimitException = ( context: __SerdeContext ): TargetGroupAssociationLimitException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8578,11 +8516,11 @@ const de_TargetGroupAssociationLimitException = ( */ const de_TargetGroupAttribute = (output: any, context: __SerdeContext): TargetGroupAttribute => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -8614,8 +8552,8 @@ const de_TargetGroupList = (output: any, context: __SerdeContext): TargetGroupTu */ const de_TargetGroupNotFoundException = (output: any, context: __SerdeContext): TargetGroupNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8636,11 +8574,11 @@ const de_TargetGroups = (output: any, context: __SerdeContext): TargetGroup[] => */ const de_TargetGroupStickinessConfig = (output: any, context: __SerdeContext): TargetGroupStickinessConfig => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["DurationSeconds"] !== undefined) { - contents.DurationSeconds = __strictParseInt32(output["DurationSeconds"]) as number; + if (output[_DS] != null) { + contents[_DS] = __strictParseInt32(output[_DS]) as number; } return contents; }; @@ -8650,11 +8588,11 @@ const de_TargetGroupStickinessConfig = (output: any, context: __SerdeContext): T */ const de_TargetGroupTuple = (output: any, context: __SerdeContext): TargetGroupTuple => { const contents: any = {}; - if (output["TargetGroupArn"] !== undefined) { - contents.TargetGroupArn = __expectString(output["TargetGroupArn"]); + if (output[_TGA] != null) { + contents[_TGA] = __expectString(output[_TGA]); } - if (output["Weight"] !== undefined) { - contents.Weight = __strictParseInt32(output["Weight"]) as number; + if (output[_W] != null) { + contents[_W] = __strictParseInt32(output[_W]) as number; } return contents; }; @@ -8664,14 +8602,14 @@ const de_TargetGroupTuple = (output: any, context: __SerdeContext): TargetGroupT */ const de_TargetHealth = (output: any, context: __SerdeContext): TargetHealth => { const contents: any = {}; - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Reason"] !== undefined) { - contents.Reason = __expectString(output["Reason"]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -8681,17 +8619,17 @@ const de_TargetHealth = (output: any, context: __SerdeContext): TargetHealth => */ const de_TargetHealthDescription = (output: any, context: __SerdeContext): TargetHealthDescription => { const contents: any = {}; - if (output["Target"] !== undefined) { - contents.Target = de_TargetDescription(output["Target"], context); + if (output[_Targ] != null) { + contents[_Targ] = de_TargetDescription(output[_Targ], context); } - if (output["HealthCheckPort"] !== undefined) { - contents.HealthCheckPort = __expectString(output["HealthCheckPort"]); + if (output[_HCPe] != null) { + contents[_HCPe] = __expectString(output[_HCPe]); } - if (output["TargetHealth"] !== undefined) { - contents.TargetHealth = de_TargetHealth(output["TargetHealth"], context); + if (output[_TH] != null) { + contents[_TH] = de_TargetHealth(output[_TH], context); } - if (output["AnomalyDetection"] !== undefined) { - contents.AnomalyDetection = de_AnomalyDetection(output["AnomalyDetection"], context); + if (output[_AD] != null) { + contents[_AD] = de_AnomalyDetection(output[_AD], context); } return contents; }; @@ -8712,8 +8650,8 @@ const de_TargetHealthDescriptions = (output: any, context: __SerdeContext): Targ */ const de_TooManyActionsException = (output: any, context: __SerdeContext): TooManyActionsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8723,8 +8661,8 @@ const de_TooManyActionsException = (output: any, context: __SerdeContext): TooMa */ const de_TooManyCertificatesException = (output: any, context: __SerdeContext): TooManyCertificatesException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8734,8 +8672,8 @@ const de_TooManyCertificatesException = (output: any, context: __SerdeContext): */ const de_TooManyListenersException = (output: any, context: __SerdeContext): TooManyListenersException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8745,8 +8683,8 @@ const de_TooManyListenersException = (output: any, context: __SerdeContext): Too */ const de_TooManyLoadBalancersException = (output: any, context: __SerdeContext): TooManyLoadBalancersException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8759,8 +8697,8 @@ const de_TooManyRegistrationsForTargetIdException = ( context: __SerdeContext ): TooManyRegistrationsForTargetIdException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8770,8 +8708,8 @@ const de_TooManyRegistrationsForTargetIdException = ( */ const de_TooManyRulesException = (output: any, context: __SerdeContext): TooManyRulesException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8781,8 +8719,8 @@ const de_TooManyRulesException = (output: any, context: __SerdeContext): TooMany */ const de_TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8792,8 +8730,8 @@ const de_TooManyTagsException = (output: any, context: __SerdeContext): TooManyT */ const de_TooManyTargetGroupsException = (output: any, context: __SerdeContext): TooManyTargetGroupsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8803,8 +8741,8 @@ const de_TooManyTargetGroupsException = (output: any, context: __SerdeContext): */ const de_TooManyTargetsException = (output: any, context: __SerdeContext): TooManyTargetsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8817,8 +8755,8 @@ const de_TooManyTrustStoreRevocationEntriesException = ( context: __SerdeContext ): TooManyTrustStoreRevocationEntriesException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8828,8 +8766,8 @@ const de_TooManyTrustStoreRevocationEntriesException = ( */ const de_TooManyTrustStoresException = (output: any, context: __SerdeContext): TooManyTrustStoresException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8842,8 +8780,8 @@ const de_TooManyUniqueTargetGroupsPerLoadBalancerException = ( context: __SerdeContext ): TooManyUniqueTargetGroupsPerLoadBalancerException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8853,20 +8791,20 @@ const de_TooManyUniqueTargetGroupsPerLoadBalancerException = ( */ const de_TrustStore = (output: any, context: __SerdeContext): TrustStore => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["TrustStoreArn"] !== undefined) { - contents.TrustStoreArn = __expectString(output["TrustStoreArn"]); + if (output[_TSA] != null) { + contents[_TSA] = __expectString(output[_TSA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["NumberOfCaCertificates"] !== undefined) { - contents.NumberOfCaCertificates = __strictParseInt32(output["NumberOfCaCertificates"]) as number; + if (output[_NOCC] != null) { + contents[_NOCC] = __strictParseInt32(output[_NOCC]) as number; } - if (output["TotalRevokedEntries"] !== undefined) { - contents.TotalRevokedEntries = __strictParseLong(output["TotalRevokedEntries"]) as number; + if (output[_TRE] != null) { + contents[_TRE] = __strictParseLong(output[_TRE]) as number; } return contents; }; @@ -8876,8 +8814,8 @@ const de_TrustStore = (output: any, context: __SerdeContext): TrustStore => { */ const de_TrustStoreAssociation = (output: any, context: __SerdeContext): TrustStoreAssociation => { const contents: any = {}; - if (output["ResourceArn"] !== undefined) { - contents.ResourceArn = __expectString(output["ResourceArn"]); + if (output[_RAe] != null) { + contents[_RAe] = __expectString(output[_RAe]); } return contents; }; @@ -8898,8 +8836,8 @@ const de_TrustStoreAssociations = (output: any, context: __SerdeContext): TrustS */ const de_TrustStoreInUseException = (output: any, context: __SerdeContext): TrustStoreInUseException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8909,8 +8847,8 @@ const de_TrustStoreInUseException = (output: any, context: __SerdeContext): Trus */ const de_TrustStoreNotFoundException = (output: any, context: __SerdeContext): TrustStoreNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8920,8 +8858,8 @@ const de_TrustStoreNotFoundException = (output: any, context: __SerdeContext): T */ const de_TrustStoreNotReadyException = (output: any, context: __SerdeContext): TrustStoreNotReadyException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -8931,17 +8869,17 @@ const de_TrustStoreNotReadyException = (output: any, context: __SerdeContext): T */ const de_TrustStoreRevocation = (output: any, context: __SerdeContext): TrustStoreRevocation => { const contents: any = {}; - if (output["TrustStoreArn"] !== undefined) { - contents.TrustStoreArn = __expectString(output["TrustStoreArn"]); + if (output[_TSA] != null) { + contents[_TSA] = __expectString(output[_TSA]); } - if (output["RevocationId"] !== undefined) { - contents.RevocationId = __strictParseLong(output["RevocationId"]) as number; + if (output[_RIe] != null) { + contents[_RIe] = __strictParseLong(output[_RIe]) as number; } - if (output["RevocationType"] !== undefined) { - contents.RevocationType = __expectString(output["RevocationType"]); + if (output[_RTev] != null) { + contents[_RTev] = __expectString(output[_RTev]); } - if (output["NumberOfRevokedEntries"] !== undefined) { - contents.NumberOfRevokedEntries = __strictParseLong(output["NumberOfRevokedEntries"]) as number; + if (output[_NORE] != null) { + contents[_NORE] = __strictParseLong(output[_NORE]) as number; } return contents; }; @@ -8973,8 +8911,8 @@ const de_TrustStores = (output: any, context: __SerdeContext): TrustStore[] => { */ const de_UnsupportedProtocolException = (output: any, context: __SerdeContext): UnsupportedProtocolException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -9020,6 +8958,215 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2015-12-01"; +const _A = "Action"; +const _ACC = "AuthenticateCognitoConfig"; +const _AD = "AnomalyDetection"; +const _AE = "AuthorizationEndpoint"; +const _AI = "AllocationId"; +const _ALC = "AddListenerCertificates"; +const _AOC = "AuthenticateOidcConfig"; +const _AP = "AlpnPolicy"; +const _AREP = "AuthenticationRequestExtraParams"; +const _AT = "AddTags"; +const _ATSR = "AddTrustStoreRevocations"; +const _AZ = "AvailabilityZone"; +const _AZv = "AvailabilityZones"; +const _Ac = "Actions"; +const _At = "Attributes"; +const _C = "Certificates"; +const _CA = "CertificateArn"; +const _CCBSB = "CaCertificatesBundleS3Bucket"; +const _CCBSK = "CaCertificatesBundleS3Key"; +const _CCBSOV = "CaCertificatesBundleS3ObjectVersion"; +const _CHZI = "CanonicalHostedZoneId"; +const _CI = "ClientId"; +const _CL = "CreateListener"; +const _CLB = "CreateLoadBalancer"; +const _COIP = "CustomerOwnedIpv4Pool"; +const _CR = "CreateRule"; +const _CS = "ClientSecret"; +const _CT = "ContentType"; +const _CTG = "CreateTargetGroup"; +const _CTS = "CreateTrustStore"; +const _CTr = "CreatedTime"; +const _Ci = "Ciphers"; +const _Co = "Conditions"; +const _Cod = "Code"; +const _D = "Description"; +const _DA = "DefaultActions"; +const _DAL = "DescribeAccountLimits"; +const _DL = "DeleteListener"; +const _DLB = "DeleteLoadBalancer"; +const _DLBA = "DescribeLoadBalancerAttributes"; +const _DLBe = "DescribeLoadBalancers"; +const _DLC = "DescribeListenerCertificates"; +const _DLe = "DescribeListeners"; +const _DNSN = "DNSName"; +const _DR = "DeleteRule"; +const _DRe = "DescribeRules"; +const _DS = "DurationSeconds"; +const _DSSLP = "DescribeSSLPolicies"; +const _DT = "DeregisterTargets"; +const _DTG = "DeleteTargetGroup"; +const _DTGA = "DescribeTargetGroupAttributes"; +const _DTGe = "DescribeTargetGroups"; +const _DTH = "DescribeTargetHealth"; +const _DTS = "DeleteTrustStore"; +const _DTSA = "DescribeTrustStoreAssociations"; +const _DTSR = "DescribeTrustStoreRevocations"; +const _DTSe = "DescribeTrustStores"; +const _DTe = "DescribeTags"; +const _E = "Enabled"; +const _ESGIROPLT = "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic"; +const _F = "Field"; +const _FC = "ForwardConfig"; +const _FRC = "FixedResponseConfig"; +const _GC = "GrpcCode"; +const _GTSCCB = "GetTrustStoreCaCertificatesBundle"; +const _GTSRC = "GetTrustStoreRevocationContent"; +const _H = "Host"; +const _HC = "HttpCode"; +const _HCE = "HealthCheckEnabled"; +const _HCIS = "HealthCheckIntervalSeconds"; +const _HCP = "HealthCheckProtocol"; +const _HCPe = "HealthCheckPort"; +const _HCPea = "HealthCheckPath"; +const _HCTS = "HealthCheckTimeoutSeconds"; +const _HHC = "HostHeaderConfig"; +const _HHCt = "HttpHeaderConfig"; +const _HHN = "HttpHeaderName"; +const _HRMC = "HttpRequestMethodConfig"; +const _HTC = "HealthyThresholdCount"; +const _I = "Issuer"; +const _IA = "IpAddress"; +const _IAT = "IpAddressType"; +const _ICCE = "IgnoreClientCertificateExpiry"; +const _ID = "IsDefault"; +const _IPA = "IPv6Address"; +const _Id = "Id"; +const _In = "Include"; +const _K = "Key"; +const _L = "Listeners"; +const _LA = "ListenerArn"; +const _LAi = "ListenerArns"; +const _LB = "LoadBalancers"; +const _LBA = "LoadBalancerArn"; +const _LBAo = "LoadBalancerArns"; +const _LBAoa = "LoadBalancerAddresses"; +const _LBN = "LoadBalancerName"; +const _LBT = "LoadBalancerType"; +const _Li = "Limits"; +const _Lo = "Location"; +const _M = "Matcher"; +const _MA = "MutualAuthentication"; +const _MB = "MessageBody"; +const _MIE = "MitigationInEffect"; +const _ML = "ModifyListener"; +const _MLBA = "ModifyLoadBalancerAttributes"; +const _MR = "ModifyRule"; +const _MTG = "ModifyTargetGroup"; +const _MTGA = "ModifyTargetGroupAttributes"; +const _MTS = "ModifyTrustStore"; +const _Ma = "Marker"; +const _Max = "Max"; +const _Me = "Message"; +const _Mo = "Mode"; +const _N = "Name"; +const _NM = "NextMarker"; +const _NOCC = "NumberOfCaCertificates"; +const _NORE = "NumberOfRevokedEntries"; +const _Na = "Names"; +const _O = "Order"; +const _OI = "OutpostId"; +const _OUR = "OnUnauthenticatedRequest"; +const _P = "Protocol"; +const _PIPA = "PrivateIPv4Address"; +const _PPC = "PathPatternConfig"; +const _PS = "PageSize"; +const _PV = "ProtocolVersion"; +const _Pa = "Path"; +const _Po = "Port"; +const _Pr = "Priority"; +const _Q = "Query"; +const _QSC = "QueryStringConfig"; +const _R = "Result"; +const _RA = "ResourceArns"; +const _RAe = "ResourceArn"; +const _RAu = "RuleArn"; +const _RAul = "RuleArns"; +const _RC = "RedirectConfig"; +const _RCe = "RevocationContents"; +const _RI = "RevocationIds"; +const _RIe = "RevocationId"; +const _RLC = "RemoveListenerCertificates"; +const _RP = "RulePriorities"; +const _RT = "RegisterTargets"; +const _RTSR = "RemoveTrustStoreRevocations"; +const _RTe = "RemoveTags"; +const _RTev = "RevocationType"; +const _Re = "Reason"; +const _Ru = "Rules"; +const _S = "Scope"; +const _SB = "S3Bucket"; +const _SC = "StatusCode"; +const _SCN = "SessionCookieName"; +const _SG = "SecurityGroups"; +const _SGI = "SecurityGroupIds"; +const _SI = "SubnetId"; +const _SIAT = "SetIpAddressType"; +const _SIC = "SourceIpConfig"; +const _SK = "S3Key"; +const _SLBT = "SupportedLoadBalancerTypes"; +const _SM = "SubnetMappings"; +const _SOV = "S3ObjectVersion"; +const _SP = "SslPolicy"; +const _SPs = "SslPolicies"; +const _SPsl = "SslProtocols"; +const _SRP = "SetRulePriorities"; +const _SS = "SetSubnets"; +const _SSG = "SetSecurityGroups"; +const _ST = "SessionTimeout"; +const _Sc = "Scheme"; +const _St = "State"; +const _Sta = "Status"; +const _Su = "Subnets"; +const _T = "Type"; +const _TD = "TagDescriptions"; +const _TE = "TokenEndpoint"; +const _TG = "TargetGroups"; +const _TGA = "TargetGroupArn"; +const _TGAa = "TargetGroupArns"; +const _TGN = "TargetGroupName"; +const _TGSC = "TargetGroupStickinessConfig"; +const _TH = "TargetHealth"; +const _THD = "TargetHealthDescriptions"; +const _TK = "TagKeys"; +const _TRE = "TotalRevokedEntries"; +const _TS = "TrustStores"; +const _TSA = "TrustStoreArn"; +const _TSAr = "TrustStoreArns"; +const _TSAru = "TrustStoreAssociations"; +const _TSR = "TrustStoreRevocations"; +const _TT = "TargetType"; +const _Ta = "Tags"; +const _Tar = "Targets"; +const _Targ = "Target"; +const _UECS = "UseExistingClientSecret"; +const _UIE = "UserInfoEndpoint"; +const _UPA = "UserPoolArn"; +const _UPCI = "UserPoolClientId"; +const _UPD = "UserPoolDomain"; +const _UTC = "UnhealthyThresholdCount"; +const _V = "Version"; +const _VI = "VpcId"; +const _Va = "Values"; +const _Val = "Value"; +const _W = "Weight"; +const _ZN = "ZoneName"; +const _e = "entry"; +const _m = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { 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 f96d902ff243..210d0ffb67e4 100644 --- a/clients/client-elastic-load-balancing/src/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing/src/protocols/Aws_query.ts @@ -244,8 +244,8 @@ export const se_AddTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddTagsInput(input, context), - Action: "AddTags", - Version: "2012-06-01", + [_A]: _AT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -261,8 +261,8 @@ export const se_ApplySecurityGroupsToLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ApplySecurityGroupsToLoadBalancerInput(input, context), - Action: "ApplySecurityGroupsToLoadBalancer", - Version: "2012-06-01", + [_A]: _ASGTLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -278,8 +278,8 @@ export const se_AttachLoadBalancerToSubnetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachLoadBalancerToSubnetsInput(input, context), - Action: "AttachLoadBalancerToSubnets", - Version: "2012-06-01", + [_A]: _ALBTS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -295,8 +295,8 @@ export const se_ConfigureHealthCheckCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ConfigureHealthCheckInput(input, context), - Action: "ConfigureHealthCheck", - Version: "2012-06-01", + [_A]: _CHC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -312,8 +312,8 @@ export const se_CreateAppCookieStickinessPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateAppCookieStickinessPolicyInput(input, context), - Action: "CreateAppCookieStickinessPolicy", - Version: "2012-06-01", + [_A]: _CACSP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -329,8 +329,8 @@ export const se_CreateLBCookieStickinessPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLBCookieStickinessPolicyInput(input, context), - Action: "CreateLBCookieStickinessPolicy", - Version: "2012-06-01", + [_A]: _CLBCSP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -346,8 +346,8 @@ export const se_CreateLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateAccessPointInput(input, context), - Action: "CreateLoadBalancer", - Version: "2012-06-01", + [_A]: _CLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -363,8 +363,8 @@ export const se_CreateLoadBalancerListenersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLoadBalancerListenerInput(input, context), - Action: "CreateLoadBalancerListeners", - Version: "2012-06-01", + [_A]: _CLBL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -380,8 +380,8 @@ export const se_CreateLoadBalancerPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLoadBalancerPolicyInput(input, context), - Action: "CreateLoadBalancerPolicy", - Version: "2012-06-01", + [_A]: _CLBP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -397,8 +397,8 @@ export const se_DeleteLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAccessPointInput(input, context), - Action: "DeleteLoadBalancer", - Version: "2012-06-01", + [_A]: _DLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -414,8 +414,8 @@ export const se_DeleteLoadBalancerListenersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLoadBalancerListenerInput(input, context), - Action: "DeleteLoadBalancerListeners", - Version: "2012-06-01", + [_A]: _DLBL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -431,8 +431,8 @@ export const se_DeleteLoadBalancerPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLoadBalancerPolicyInput(input, context), - Action: "DeleteLoadBalancerPolicy", - Version: "2012-06-01", + [_A]: _DLBP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -448,8 +448,8 @@ export const se_DeregisterInstancesFromLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterEndPointsInput(input, context), - Action: "DeregisterInstancesFromLoadBalancer", - Version: "2012-06-01", + [_A]: _DIFLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -465,8 +465,8 @@ export const se_DescribeAccountLimitsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAccountLimitsInput(input, context), - Action: "DescribeAccountLimits", - Version: "2012-06-01", + [_A]: _DAL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -482,8 +482,8 @@ export const se_DescribeInstanceHealthCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEndPointStateInput(input, context), - Action: "DescribeInstanceHealth", - Version: "2012-06-01", + [_A]: _DIH, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -499,8 +499,8 @@ export const se_DescribeLoadBalancerAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoadBalancerAttributesInput(input, context), - Action: "DescribeLoadBalancerAttributes", - Version: "2012-06-01", + [_A]: _DLBA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -516,8 +516,8 @@ export const se_DescribeLoadBalancerPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoadBalancerPoliciesInput(input, context), - Action: "DescribeLoadBalancerPolicies", - Version: "2012-06-01", + [_A]: _DLBPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -533,8 +533,8 @@ export const se_DescribeLoadBalancerPolicyTypesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoadBalancerPolicyTypesInput(input, context), - Action: "DescribeLoadBalancerPolicyTypes", - Version: "2012-06-01", + [_A]: _DLBPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -550,8 +550,8 @@ export const se_DescribeLoadBalancersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAccessPointsInput(input, context), - Action: "DescribeLoadBalancers", - Version: "2012-06-01", + [_A]: _DLBe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -567,8 +567,8 @@ export const se_DescribeTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTagsInput(input, context), - Action: "DescribeTags", - Version: "2012-06-01", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -584,8 +584,8 @@ export const se_DetachLoadBalancerFromSubnetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachLoadBalancerFromSubnetsInput(input, context), - Action: "DetachLoadBalancerFromSubnets", - Version: "2012-06-01", + [_A]: _DLBFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -601,8 +601,8 @@ export const se_DisableAvailabilityZonesForLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveAvailabilityZonesInput(input, context), - Action: "DisableAvailabilityZonesForLoadBalancer", - Version: "2012-06-01", + [_A]: _DAZFLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -618,8 +618,8 @@ export const se_EnableAvailabilityZonesForLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddAvailabilityZonesInput(input, context), - Action: "EnableAvailabilityZonesForLoadBalancer", - Version: "2012-06-01", + [_A]: _EAZFLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -635,8 +635,8 @@ export const se_ModifyLoadBalancerAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyLoadBalancerAttributesInput(input, context), - Action: "ModifyLoadBalancerAttributes", - Version: "2012-06-01", + [_A]: _MLBA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -652,8 +652,8 @@ export const se_RegisterInstancesWithLoadBalancerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterEndPointsInput(input, context), - Action: "RegisterInstancesWithLoadBalancer", - Version: "2012-06-01", + [_A]: _RIWLB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -669,8 +669,8 @@ export const se_RemoveTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveTagsInput(input, context), - Action: "RemoveTags", - Version: "2012-06-01", + [_A]: _RT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -686,8 +686,8 @@ export const se_SetLoadBalancerListenerSSLCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetLoadBalancerListenerSSLCertificateInput(input, context), - Action: "SetLoadBalancerListenerSSLCertificate", - Version: "2012-06-01", + [_A]: _SLBLSSLC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -703,8 +703,8 @@ export const se_SetLoadBalancerPoliciesForBackendServerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetLoadBalancerPoliciesForBackendServerInput(input, context), - Action: "SetLoadBalancerPoliciesForBackendServer", - Version: "2012-06-01", + [_A]: _SLBPFBS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -720,8 +720,8 @@ export const se_SetLoadBalancerPoliciesOfListenerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetLoadBalancerPoliciesOfListenerInput(input, context), - Action: "SetLoadBalancerPoliciesOfListener", - Version: "2012-06-01", + [_A]: _SLBPOL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2564,17 +2564,17 @@ const de_UnsupportedProtocolExceptionRes = async ( */ const se_AccessLog = (input: AccessLog, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.S3BucketName != null) { - entries["S3BucketName"] = input.S3BucketName; + if (input[_SBN] != null) { + entries[_SBN] = input[_SBN]; } - if (input.EmitInterval != null) { - entries["EmitInterval"] = input.EmitInterval; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.S3BucketPrefix != null) { - entries["S3BucketPrefix"] = input.S3BucketPrefix; + if (input[_SBP] != null) { + entries[_SBP] = input[_SBP]; } return entries; }; @@ -2584,12 +2584,12 @@ const se_AccessLog = (input: AccessLog, context: __SerdeContext): any => { */ const se_AddAvailabilityZonesInput = (input: AddAvailabilityZonesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2605,11 +2605,11 @@ const se_AddAvailabilityZonesInput = (input: AddAvailabilityZonesInput, context: */ const se_AdditionalAttribute = (input: AdditionalAttribute, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -2638,9 +2638,9 @@ const se_AdditionalAttributes = (input: AdditionalAttribute[], context: __SerdeC */ const se_AddTagsInput = (input: AddTagsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerNames != null) { - const memberEntries = se_LoadBalancerNames(input.LoadBalancerNames, context); - if (input.LoadBalancerNames?.length === 0) { + if (input[_LBNo] != null) { + const memberEntries = se_LoadBalancerNames(input[_LBNo], context); + if (input[_LBNo]?.length === 0) { entries.LoadBalancerNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2648,9 +2648,9 @@ const se_AddTagsInput = (input: AddTagsInput, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2669,12 +2669,12 @@ const se_ApplySecurityGroupsToLoadBalancerInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroups(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_SecurityGroups(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2690,12 +2690,12 @@ const se_ApplySecurityGroupsToLoadBalancerInput = ( */ const se_AttachLoadBalancerToSubnetsInput = (input: AttachLoadBalancerToSubnetsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.Subnets != null) { - const memberEntries = se_Subnets(input.Subnets, context); - if (input.Subnets?.length === 0) { + if (input[_S] != null) { + const memberEntries = se_Subnets(input[_S], context); + if (input[_S]?.length === 0) { entries.Subnets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2727,11 +2727,11 @@ const se_AvailabilityZones = (input: string[], context: __SerdeContext): any => */ const se_ConfigureHealthCheckInput = (input: ConfigureHealthCheckInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.HealthCheck != null) { - const memberEntries = se_HealthCheck(input.HealthCheck, context); + if (input[_HC] != null) { + const memberEntries = se_HealthCheck(input[_HC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `HealthCheck.${key}`; entries[loc] = value; @@ -2745,11 +2745,11 @@ const se_ConfigureHealthCheckInput = (input: ConfigureHealthCheckInput, context: */ const se_ConnectionDraining = (input: ConnectionDraining, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.Timeout != null) { - entries["Timeout"] = input.Timeout; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti]; } return entries; }; @@ -2759,8 +2759,8 @@ const se_ConnectionDraining = (input: ConnectionDraining, context: __SerdeContex */ const se_ConnectionSettings = (input: ConnectionSettings, context: __SerdeContext): any => { const entries: any = {}; - if (input.IdleTimeout != null) { - entries["IdleTimeout"] = input.IdleTimeout; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } return entries; }; @@ -2770,12 +2770,12 @@ const se_ConnectionSettings = (input: ConnectionSettings, context: __SerdeContex */ const se_CreateAccessPointInput = (input: CreateAccessPointInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.Listeners != null) { - const memberEntries = se_Listeners(input.Listeners, context); - if (input.Listeners?.length === 0) { + if (input[_L] != null) { + const memberEntries = se_Listeners(input[_L], context); + if (input[_L]?.length === 0) { entries.Listeners = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2783,9 +2783,9 @@ const se_CreateAccessPointInput = (input: CreateAccessPointInput, context: __Ser entries[loc] = value; }); } - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2793,9 +2793,9 @@ const se_CreateAccessPointInput = (input: CreateAccessPointInput, context: __Ser entries[loc] = value; }); } - if (input.Subnets != null) { - const memberEntries = se_Subnets(input.Subnets, context); - if (input.Subnets?.length === 0) { + if (input[_S] != null) { + const memberEntries = se_Subnets(input[_S], context); + if (input[_S]?.length === 0) { entries.Subnets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2803,9 +2803,9 @@ const se_CreateAccessPointInput = (input: CreateAccessPointInput, context: __Ser entries[loc] = value; }); } - if (input.SecurityGroups != null) { - const memberEntries = se_SecurityGroups(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_SecurityGroups(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2813,12 +2813,12 @@ const se_CreateAccessPointInput = (input: CreateAccessPointInput, context: __Ser entries[loc] = value; }); } - if (input.Scheme != null) { - entries["Scheme"] = input.Scheme; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2837,14 +2837,14 @@ const se_CreateAppCookieStickinessPolicyInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.CookieName != null) { - entries["CookieName"] = input.CookieName; + if (input[_CN] != null) { + entries[_CN] = input[_CN]; } return entries; }; @@ -2857,14 +2857,14 @@ const se_CreateLBCookieStickinessPolicyInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.CookieExpirationPeriod != null) { - entries["CookieExpirationPeriod"] = input.CookieExpirationPeriod; + if (input[_CEP] != null) { + entries[_CEP] = input[_CEP]; } return entries; }; @@ -2874,12 +2874,12 @@ const se_CreateLBCookieStickinessPolicyInput = ( */ const se_CreateLoadBalancerListenerInput = (input: CreateLoadBalancerListenerInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.Listeners != null) { - const memberEntries = se_Listeners(input.Listeners, context); - if (input.Listeners?.length === 0) { + if (input[_L] != null) { + const memberEntries = se_Listeners(input[_L], context); + if (input[_L]?.length === 0) { entries.Listeners = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2895,18 +2895,18 @@ const se_CreateLoadBalancerListenerInput = (input: CreateLoadBalancerListenerInp */ const se_CreateLoadBalancerPolicyInput = (input: CreateLoadBalancerPolicyInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.PolicyTypeName != null) { - entries["PolicyTypeName"] = input.PolicyTypeName; + if (input[_PTN] != null) { + entries[_PTN] = input[_PTN]; } - if (input.PolicyAttributes != null) { - const memberEntries = se_PolicyAttributes(input.PolicyAttributes, context); - if (input.PolicyAttributes?.length === 0) { + if (input[_PA] != null) { + const memberEntries = se_PolicyAttributes(input[_PA], context); + if (input[_PA]?.length === 0) { entries.PolicyAttributes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2922,8 +2922,8 @@ const se_CreateLoadBalancerPolicyInput = (input: CreateLoadBalancerPolicyInput, */ const se_CrossZoneLoadBalancing = (input: CrossZoneLoadBalancing, context: __SerdeContext): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } return entries; }; @@ -2933,8 +2933,8 @@ const se_CrossZoneLoadBalancing = (input: CrossZoneLoadBalancing, context: __Ser */ const se_DeleteAccessPointInput = (input: DeleteAccessPointInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } return entries; }; @@ -2944,12 +2944,12 @@ const se_DeleteAccessPointInput = (input: DeleteAccessPointInput, context: __Ser */ const se_DeleteLoadBalancerListenerInput = (input: DeleteLoadBalancerListenerInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.LoadBalancerPorts != null) { - const memberEntries = se_Ports(input.LoadBalancerPorts, context); - if (input.LoadBalancerPorts?.length === 0) { + if (input[_LBP] != null) { + const memberEntries = se_Ports(input[_LBP], context); + if (input[_LBP]?.length === 0) { entries.LoadBalancerPorts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2965,11 +2965,11 @@ const se_DeleteLoadBalancerListenerInput = (input: DeleteLoadBalancerListenerInp */ const se_DeleteLoadBalancerPolicyInput = (input: DeleteLoadBalancerPolicyInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -2979,12 +2979,12 @@ const se_DeleteLoadBalancerPolicyInput = (input: DeleteLoadBalancerPolicyInput, */ const se_DeregisterEndPointsInput = (input: DeregisterEndPointsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.Instances != null) { - const memberEntries = se_Instances(input.Instances, context); - if (input.Instances?.length === 0) { + if (input[_I] != null) { + const memberEntries = se_Instances(input[_I], context); + if (input[_I]?.length === 0) { entries.Instances = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3000,9 +3000,9 @@ const se_DeregisterEndPointsInput = (input: DeregisterEndPointsInput, context: _ */ const se_DescribeAccessPointsInput = (input: DescribeAccessPointsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerNames != null) { - const memberEntries = se_LoadBalancerNames(input.LoadBalancerNames, context); - if (input.LoadBalancerNames?.length === 0) { + if (input[_LBNo] != null) { + const memberEntries = se_LoadBalancerNames(input[_LBNo], context); + if (input[_LBNo]?.length === 0) { entries.LoadBalancerNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3010,11 +3010,11 @@ const se_DescribeAccessPointsInput = (input: DescribeAccessPointsInput, context: entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -3024,11 +3024,11 @@ const se_DescribeAccessPointsInput = (input: DescribeAccessPointsInput, context: */ const se_DescribeAccountLimitsInput = (input: DescribeAccountLimitsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.PageSize != null) { - entries["PageSize"] = input.PageSize; + if (input[_PS] != null) { + entries[_PS] = input[_PS]; } return entries; }; @@ -3038,12 +3038,12 @@ const se_DescribeAccountLimitsInput = (input: DescribeAccountLimitsInput, contex */ const se_DescribeEndPointStateInput = (input: DescribeEndPointStateInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.Instances != null) { - const memberEntries = se_Instances(input.Instances, context); - if (input.Instances?.length === 0) { + if (input[_I] != null) { + const memberEntries = se_Instances(input[_I], context); + if (input[_I]?.length === 0) { entries.Instances = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3062,8 +3062,8 @@ const se_DescribeLoadBalancerAttributesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } return entries; }; @@ -3076,12 +3076,12 @@ const se_DescribeLoadBalancerPoliciesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.PolicyNames != null) { - const memberEntries = se_PolicyNames(input.PolicyNames, context); - if (input.PolicyNames?.length === 0) { + if (input[_PNo] != null) { + const memberEntries = se_PolicyNames(input[_PNo], context); + if (input[_PNo]?.length === 0) { entries.PolicyNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3100,9 +3100,9 @@ const se_DescribeLoadBalancerPolicyTypesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PolicyTypeNames != null) { - const memberEntries = se_PolicyTypeNames(input.PolicyTypeNames, context); - if (input.PolicyTypeNames?.length === 0) { + if (input[_PTNo] != null) { + const memberEntries = se_PolicyTypeNames(input[_PTNo], context); + if (input[_PTNo]?.length === 0) { entries.PolicyTypeNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3118,9 +3118,9 @@ const se_DescribeLoadBalancerPolicyTypesInput = ( */ const se_DescribeTagsInput = (input: DescribeTagsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerNames != null) { - const memberEntries = se_LoadBalancerNamesMax20(input.LoadBalancerNames, context); - if (input.LoadBalancerNames?.length === 0) { + if (input[_LBNo] != null) { + const memberEntries = se_LoadBalancerNamesMax20(input[_LBNo], context); + if (input[_LBNo]?.length === 0) { entries.LoadBalancerNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3139,12 +3139,12 @@ const se_DetachLoadBalancerFromSubnetsInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.Subnets != null) { - const memberEntries = se_Subnets(input.Subnets, context); - if (input.Subnets?.length === 0) { + if (input[_S] != null) { + const memberEntries = se_Subnets(input[_S], context); + if (input[_S]?.length === 0) { entries.Subnets = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3160,20 +3160,20 @@ const se_DetachLoadBalancerFromSubnetsInput = ( */ const se_HealthCheck = (input: HealthCheck, context: __SerdeContext): any => { const entries: any = {}; - if (input.Target != null) { - entries["Target"] = input.Target; + if (input[_Ta] != null) { + entries[_Ta] = input[_Ta]; } - if (input.Interval != null) { - entries["Interval"] = input.Interval; + if (input[_In] != null) { + entries[_In] = input[_In]; } - if (input.Timeout != null) { - entries["Timeout"] = input.Timeout; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti]; } - if (input.UnhealthyThreshold != null) { - entries["UnhealthyThreshold"] = input.UnhealthyThreshold; + if (input[_UT] != null) { + entries[_UT] = input[_UT]; } - if (input.HealthyThreshold != null) { - entries["HealthyThreshold"] = input.HealthyThreshold; + if (input[_HT] != null) { + entries[_HT] = input[_HT]; } return entries; }; @@ -3183,8 +3183,8 @@ const se_HealthCheck = (input: HealthCheck, context: __SerdeContext): any => { */ const se_Instance = (input: Instance, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceId != null) { - entries["InstanceId"] = input.InstanceId; + if (input[_II] != null) { + entries[_II] = input[_II]; } return entries; }; @@ -3213,20 +3213,20 @@ const se_Instances = (input: Instance[], context: __SerdeContext): any => { */ const se_Listener = (input: Listener, context: __SerdeContext): any => { const entries: any = {}; - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.LoadBalancerPort != null) { - entries["LoadBalancerPort"] = input.LoadBalancerPort; + if (input[_LBPo] != null) { + entries[_LBPo] = input[_LBPo]; } - if (input.InstanceProtocol != null) { - entries["InstanceProtocol"] = input.InstanceProtocol; + if (input[_IP] != null) { + entries[_IP] = input[_IP]; } - if (input.InstancePort != null) { - entries["InstancePort"] = input.InstancePort; + if (input[_IPn] != null) { + entries[_IPn] = input[_IPn]; } - if (input.SSLCertificateId != null) { - entries["SSLCertificateId"] = input.SSLCertificateId; + if (input[_SSLCI] != null) { + entries[_SSLCI] = input[_SSLCI]; } return entries; }; @@ -3255,37 +3255,37 @@ const se_Listeners = (input: Listener[], context: __SerdeContext): any => { */ const se_LoadBalancerAttributes = (input: LoadBalancerAttributes, context: __SerdeContext): any => { const entries: any = {}; - if (input.CrossZoneLoadBalancing != null) { - const memberEntries = se_CrossZoneLoadBalancing(input.CrossZoneLoadBalancing, context); + if (input[_CZLB] != null) { + const memberEntries = se_CrossZoneLoadBalancing(input[_CZLB], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CrossZoneLoadBalancing.${key}`; entries[loc] = value; }); } - if (input.AccessLog != null) { - const memberEntries = se_AccessLog(input.AccessLog, context); + if (input[_AL] != null) { + const memberEntries = se_AccessLog(input[_AL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AccessLog.${key}`; entries[loc] = value; }); } - if (input.ConnectionDraining != null) { - const memberEntries = se_ConnectionDraining(input.ConnectionDraining, context); + if (input[_CD] != null) { + const memberEntries = se_ConnectionDraining(input[_CD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionDraining.${key}`; entries[loc] = value; }); } - if (input.ConnectionSettings != null) { - const memberEntries = se_ConnectionSettings(input.ConnectionSettings, context); + if (input[_CS] != null) { + const memberEntries = se_ConnectionSettings(input[_CS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionSettings.${key}`; entries[loc] = value; }); } - if (input.AdditionalAttributes != null) { - const memberEntries = se_AdditionalAttributes(input.AdditionalAttributes, context); - if (input.AdditionalAttributes?.length === 0) { + if (input[_AA] != null) { + const memberEntries = se_AdditionalAttributes(input[_AA], context); + if (input[_AA]?.length === 0) { entries.AdditionalAttributes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3336,11 +3336,11 @@ const se_ModifyLoadBalancerAttributesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.LoadBalancerAttributes != null) { - const memberEntries = se_LoadBalancerAttributes(input.LoadBalancerAttributes, context); + if (input[_LBA] != null) { + const memberEntries = se_LoadBalancerAttributes(input[_LBA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LoadBalancerAttributes.${key}`; entries[loc] = value; @@ -3354,11 +3354,11 @@ const se_ModifyLoadBalancerAttributesInput = ( */ const se_PolicyAttribute = (input: PolicyAttribute, context: __SerdeContext): any => { const entries: any = {}; - if (input.AttributeName != null) { - entries["AttributeName"] = input.AttributeName; + if (input[_AN] != null) { + entries[_AN] = input[_AN]; } - if (input.AttributeValue != null) { - entries["AttributeValue"] = input.AttributeValue; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } return entries; }; @@ -3435,12 +3435,12 @@ const se_Ports = (input: number[], context: __SerdeContext): any => { */ const se_RegisterEndPointsInput = (input: RegisterEndPointsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.Instances != null) { - const memberEntries = se_Instances(input.Instances, context); - if (input.Instances?.length === 0) { + if (input[_I] != null) { + const memberEntries = se_Instances(input[_I], context); + if (input[_I]?.length === 0) { entries.Instances = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3456,12 +3456,12 @@ const se_RegisterEndPointsInput = (input: RegisterEndPointsInput, context: __Ser */ const se_RemoveAvailabilityZonesInput = (input: RemoveAvailabilityZonesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3477,9 +3477,9 @@ const se_RemoveAvailabilityZonesInput = (input: RemoveAvailabilityZonesInput, co */ const se_RemoveTagsInput = (input: RemoveTagsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.LoadBalancerNames != null) { - const memberEntries = se_LoadBalancerNames(input.LoadBalancerNames, context); - if (input.LoadBalancerNames?.length === 0) { + if (input[_LBNo] != null) { + const memberEntries = se_LoadBalancerNames(input[_LBNo], context); + if (input[_LBNo]?.length === 0) { entries.LoadBalancerNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3487,9 +3487,9 @@ const se_RemoveTagsInput = (input: RemoveTagsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagKeyList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagKeyList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3524,14 +3524,14 @@ const se_SetLoadBalancerListenerSSLCertificateInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.LoadBalancerPort != null) { - entries["LoadBalancerPort"] = input.LoadBalancerPort; + if (input[_LBPo] != null) { + entries[_LBPo] = input[_LBPo]; } - if (input.SSLCertificateId != null) { - entries["SSLCertificateId"] = input.SSLCertificateId; + if (input[_SSLCI] != null) { + entries[_SSLCI] = input[_SSLCI]; } return entries; }; @@ -3544,15 +3544,15 @@ const se_SetLoadBalancerPoliciesForBackendServerInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.InstancePort != null) { - entries["InstancePort"] = input.InstancePort; + if (input[_IPn] != null) { + entries[_IPn] = input[_IPn]; } - if (input.PolicyNames != null) { - const memberEntries = se_PolicyNames(input.PolicyNames, context); - if (input.PolicyNames?.length === 0) { + if (input[_PNo] != null) { + const memberEntries = se_PolicyNames(input[_PNo], context); + if (input[_PNo]?.length === 0) { entries.PolicyNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3571,15 +3571,15 @@ const se_SetLoadBalancerPoliciesOfListenerInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.LoadBalancerName != null) { - entries["LoadBalancerName"] = input.LoadBalancerName; + if (input[_LBN] != null) { + entries[_LBN] = input[_LBN]; } - if (input.LoadBalancerPort != null) { - entries["LoadBalancerPort"] = input.LoadBalancerPort; + if (input[_LBPo] != null) { + entries[_LBPo] = input[_LBPo]; } - if (input.PolicyNames != null) { - const memberEntries = se_PolicyNames(input.PolicyNames, context); - if (input.PolicyNames?.length === 0) { + if (input[_PNo] != null) { + const memberEntries = se_PolicyNames(input[_PNo], context); + if (input[_PNo]?.length === 0) { entries.PolicyNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3611,11 +3611,11 @@ const se_Subnets = (input: string[], context: __SerdeContext): any => { */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -3644,8 +3644,8 @@ const se_TagKeyList = (input: TagKeyOnly[], context: __SerdeContext): any => { */ const se_TagKeyOnly = (input: TagKeyOnly, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } return entries; }; @@ -3674,17 +3674,17 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { */ const de_AccessLog = (output: any, context: __SerdeContext): AccessLog => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["S3BucketName"] !== undefined) { - contents.S3BucketName = __expectString(output["S3BucketName"]); + if (output[_SBN] != null) { + contents[_SBN] = __expectString(output[_SBN]); } - if (output["EmitInterval"] !== undefined) { - contents.EmitInterval = __strictParseInt32(output["EmitInterval"]) as number; + if (output[_EI] != null) { + contents[_EI] = __strictParseInt32(output[_EI]) as number; } - if (output["S3BucketPrefix"] !== undefined) { - contents.S3BucketPrefix = __expectString(output["S3BucketPrefix"]); + if (output[_SBP] != null) { + contents[_SBP] = __expectString(output[_SBP]); } return contents; }; @@ -3694,8 +3694,8 @@ const de_AccessLog = (output: any, context: __SerdeContext): AccessLog => { */ const de_AccessPointNotFoundException = (output: any, context: __SerdeContext): AccessPointNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -3706,12 +3706,9 @@ const de_AccessPointNotFoundException = (output: any, context: __SerdeContext): const de_AddAvailabilityZonesOutput = (output: any, context: __SerdeContext): AddAvailabilityZonesOutput => { const contents: any = {}; if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["member"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_m] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context); } return contents; }; @@ -3721,11 +3718,11 @@ const de_AddAvailabilityZonesOutput = (output: any, context: __SerdeContext): Ad */ const de_AdditionalAttribute = (output: any, context: __SerdeContext): AdditionalAttribute => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -3765,11 +3762,11 @@ const de_AppCookieStickinessPolicies = (output: any, context: __SerdeContext): A */ const de_AppCookieStickinessPolicy = (output: any, context: __SerdeContext): AppCookieStickinessPolicy => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["CookieName"] !== undefined) { - contents.CookieName = __expectString(output["CookieName"]); + if (output[_CN] != null) { + contents[_CN] = __expectString(output[_CN]); } return contents; }; @@ -3783,9 +3780,9 @@ const de_ApplySecurityGroupsToLoadBalancerOutput = ( ): ApplySecurityGroupsToLoadBalancerOutput => { const contents: any = {}; if (output.SecurityGroups === "") { - contents.SecurityGroups = []; - } else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) { - contents.SecurityGroups = de_SecurityGroups(__getArrayIfSingleItem(output["SecurityGroups"]["member"]), context); + contents[_SG] = []; + } else if (output[_SG] != null && output[_SG][_m] != null) { + contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context); } return contents; }; @@ -3799,9 +3796,9 @@ const de_AttachLoadBalancerToSubnetsOutput = ( ): AttachLoadBalancerToSubnetsOutput => { const contents: any = {}; if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["member"] !== undefined) { - contents.Subnets = de_Subnets(__getArrayIfSingleItem(output["Subnets"]["member"]), context); + contents[_S] = []; + } else if (output[_S] != null && output[_S][_m] != null) { + contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context); } return contents; }; @@ -3822,13 +3819,13 @@ const de_AvailabilityZones = (output: any, context: __SerdeContext): string[] => */ const de_BackendServerDescription = (output: any, context: __SerdeContext): BackendServerDescription => { const contents: any = {}; - if (output["InstancePort"] !== undefined) { - contents.InstancePort = __strictParseInt32(output["InstancePort"]) as number; + if (output[_IPn] != null) { + contents[_IPn] = __strictParseInt32(output[_IPn]) as number; } if (output.PolicyNames === "") { - contents.PolicyNames = []; - } else if (output["PolicyNames"] !== undefined && output["PolicyNames"]["member"] !== undefined) { - contents.PolicyNames = de_PolicyNames(__getArrayIfSingleItem(output["PolicyNames"]["member"]), context); + contents[_PNo] = []; + } else if (output[_PNo] != null && output[_PNo][_m] != null) { + contents[_PNo] = de_PolicyNames(__getArrayIfSingleItem(output[_PNo][_m]), context); } return contents; }; @@ -3849,8 +3846,8 @@ const de_BackendServerDescriptions = (output: any, context: __SerdeContext): Bac */ const de_CertificateNotFoundException = (output: any, context: __SerdeContext): CertificateNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -3860,8 +3857,8 @@ const de_CertificateNotFoundException = (output: any, context: __SerdeContext): */ const de_ConfigureHealthCheckOutput = (output: any, context: __SerdeContext): ConfigureHealthCheckOutput => { const contents: any = {}; - if (output["HealthCheck"] !== undefined) { - contents.HealthCheck = de_HealthCheck(output["HealthCheck"], context); + if (output[_HC] != null) { + contents[_HC] = de_HealthCheck(output[_HC], context); } return contents; }; @@ -3871,11 +3868,11 @@ const de_ConfigureHealthCheckOutput = (output: any, context: __SerdeContext): Co */ const de_ConnectionDraining = (output: any, context: __SerdeContext): ConnectionDraining => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["Timeout"] !== undefined) { - contents.Timeout = __strictParseInt32(output["Timeout"]) as number; + if (output[_Ti] != null) { + contents[_Ti] = __strictParseInt32(output[_Ti]) as number; } return contents; }; @@ -3885,8 +3882,8 @@ const de_ConnectionDraining = (output: any, context: __SerdeContext): Connection */ const de_ConnectionSettings = (output: any, context: __SerdeContext): ConnectionSettings => { const contents: any = {}; - if (output["IdleTimeout"] !== undefined) { - contents.IdleTimeout = __strictParseInt32(output["IdleTimeout"]) as number; + if (output[_IT] != null) { + contents[_IT] = __strictParseInt32(output[_IT]) as number; } return contents; }; @@ -3896,8 +3893,8 @@ const de_ConnectionSettings = (output: any, context: __SerdeContext): Connection */ const de_CreateAccessPointOutput = (output: any, context: __SerdeContext): CreateAccessPointOutput => { const contents: any = {}; - if (output["DNSName"] !== undefined) { - contents.DNSName = __expectString(output["DNSName"]); + if (output[_DNSN] != null) { + contents[_DNSN] = __expectString(output[_DNSN]); } return contents; }; @@ -3948,8 +3945,8 @@ const de_CreateLoadBalancerPolicyOutput = (output: any, context: __SerdeContext) */ const de_CrossZoneLoadBalancing = (output: any, context: __SerdeContext): CrossZoneLoadBalancing => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } return contents; }; @@ -3986,8 +3983,8 @@ const de_DeleteLoadBalancerPolicyOutput = (output: any, context: __SerdeContext) */ const de_DependencyThrottleException = (output: any, context: __SerdeContext): DependencyThrottleException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -3998,9 +3995,9 @@ const de_DependencyThrottleException = (output: any, context: __SerdeContext): D const de_DeregisterEndPointsOutput = (output: any, context: __SerdeContext): DeregisterEndPointsOutput => { const contents: any = {}; if (output.Instances === "") { - contents.Instances = []; - } else if (output["Instances"] !== undefined && output["Instances"]["member"] !== undefined) { - contents.Instances = de_Instances(__getArrayIfSingleItem(output["Instances"]["member"]), context); + contents[_I] = []; + } else if (output[_I] != null && output[_I][_m] != null) { + contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context); } return contents; }; @@ -4011,18 +4008,12 @@ const de_DeregisterEndPointsOutput = (output: any, context: __SerdeContext): Der const de_DescribeAccessPointsOutput = (output: any, context: __SerdeContext): DescribeAccessPointsOutput => { const contents: any = {}; if (output.LoadBalancerDescriptions === "") { - contents.LoadBalancerDescriptions = []; - } else if ( - output["LoadBalancerDescriptions"] !== undefined && - output["LoadBalancerDescriptions"]["member"] !== undefined - ) { - contents.LoadBalancerDescriptions = de_LoadBalancerDescriptions( - __getArrayIfSingleItem(output["LoadBalancerDescriptions"]["member"]), - context - ); - } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + contents[_LBD] = []; + } else if (output[_LBD] != null && output[_LBD][_m] != null) { + contents[_LBD] = de_LoadBalancerDescriptions(__getArrayIfSingleItem(output[_LBD][_m]), context); + } + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -4033,12 +4024,12 @@ const de_DescribeAccessPointsOutput = (output: any, context: __SerdeContext): De const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): DescribeAccountLimitsOutput => { const contents: any = {}; if (output.Limits === "") { - contents.Limits = []; - } else if (output["Limits"] !== undefined && output["Limits"]["member"] !== undefined) { - contents.Limits = de_Limits(__getArrayIfSingleItem(output["Limits"]["member"]), context); + contents[_Li] = []; + } else if (output[_Li] != null && output[_Li][_m] != null) { + contents[_Li] = de_Limits(__getArrayIfSingleItem(output[_Li][_m]), context); } - if (output["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(output["NextMarker"]); + if (output[_NM] != null) { + contents[_NM] = __expectString(output[_NM]); } return contents; }; @@ -4049,9 +4040,9 @@ const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): D const de_DescribeEndPointStateOutput = (output: any, context: __SerdeContext): DescribeEndPointStateOutput => { const contents: any = {}; if (output.InstanceStates === "") { - contents.InstanceStates = []; - } else if (output["InstanceStates"] !== undefined && output["InstanceStates"]["member"] !== undefined) { - contents.InstanceStates = de_InstanceStates(__getArrayIfSingleItem(output["InstanceStates"]["member"]), context); + contents[_IS] = []; + } else if (output[_IS] != null && output[_IS][_m] != null) { + contents[_IS] = de_InstanceStates(__getArrayIfSingleItem(output[_IS][_m]), context); } return contents; }; @@ -4064,8 +4055,8 @@ const de_DescribeLoadBalancerAttributesOutput = ( context: __SerdeContext ): DescribeLoadBalancerAttributesOutput => { const contents: any = {}; - if (output["LoadBalancerAttributes"] !== undefined) { - contents.LoadBalancerAttributes = de_LoadBalancerAttributes(output["LoadBalancerAttributes"], context); + if (output[_LBA] != null) { + contents[_LBA] = de_LoadBalancerAttributes(output[_LBA], context); } return contents; }; @@ -4079,12 +4070,9 @@ const de_DescribeLoadBalancerPoliciesOutput = ( ): DescribeLoadBalancerPoliciesOutput => { const contents: any = {}; if (output.PolicyDescriptions === "") { - contents.PolicyDescriptions = []; - } else if (output["PolicyDescriptions"] !== undefined && output["PolicyDescriptions"]["member"] !== undefined) { - contents.PolicyDescriptions = de_PolicyDescriptions( - __getArrayIfSingleItem(output["PolicyDescriptions"]["member"]), - context - ); + contents[_PD] = []; + } else if (output[_PD] != null && output[_PD][_m] != null) { + contents[_PD] = de_PolicyDescriptions(__getArrayIfSingleItem(output[_PD][_m]), context); } return contents; }; @@ -4098,15 +4086,9 @@ const de_DescribeLoadBalancerPolicyTypesOutput = ( ): DescribeLoadBalancerPolicyTypesOutput => { const contents: any = {}; if (output.PolicyTypeDescriptions === "") { - contents.PolicyTypeDescriptions = []; - } else if ( - output["PolicyTypeDescriptions"] !== undefined && - output["PolicyTypeDescriptions"]["member"] !== undefined - ) { - contents.PolicyTypeDescriptions = de_PolicyTypeDescriptions( - __getArrayIfSingleItem(output["PolicyTypeDescriptions"]["member"]), - context - ); + contents[_PTD] = []; + } else if (output[_PTD] != null && output[_PTD][_m] != null) { + contents[_PTD] = de_PolicyTypeDescriptions(__getArrayIfSingleItem(output[_PTD][_m]), context); } return contents; }; @@ -4117,9 +4099,9 @@ const de_DescribeLoadBalancerPolicyTypesOutput = ( const de_DescribeTagsOutput = (output: any, context: __SerdeContext): DescribeTagsOutput => { const contents: any = {}; if (output.TagDescriptions === "") { - contents.TagDescriptions = []; - } else if (output["TagDescriptions"] !== undefined && output["TagDescriptions"]["member"] !== undefined) { - contents.TagDescriptions = de_TagDescriptions(__getArrayIfSingleItem(output["TagDescriptions"]["member"]), context); + contents[_TD] = []; + } else if (output[_TD] != null && output[_TD][_m] != null) { + contents[_TD] = de_TagDescriptions(__getArrayIfSingleItem(output[_TD][_m]), context); } return contents; }; @@ -4133,9 +4115,9 @@ const de_DetachLoadBalancerFromSubnetsOutput = ( ): DetachLoadBalancerFromSubnetsOutput => { const contents: any = {}; if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["member"] !== undefined) { - contents.Subnets = de_Subnets(__getArrayIfSingleItem(output["Subnets"]["member"]), context); + contents[_S] = []; + } else if (output[_S] != null && output[_S][_m] != null) { + contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context); } return contents; }; @@ -4148,8 +4130,8 @@ const de_DuplicateAccessPointNameException = ( context: __SerdeContext ): DuplicateAccessPointNameException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4159,8 +4141,8 @@ const de_DuplicateAccessPointNameException = ( */ const de_DuplicateListenerException = (output: any, context: __SerdeContext): DuplicateListenerException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4170,8 +4152,8 @@ const de_DuplicateListenerException = (output: any, context: __SerdeContext): Du */ const de_DuplicatePolicyNameException = (output: any, context: __SerdeContext): DuplicatePolicyNameException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4181,8 +4163,8 @@ const de_DuplicatePolicyNameException = (output: any, context: __SerdeContext): */ const de_DuplicateTagKeysException = (output: any, context: __SerdeContext): DuplicateTagKeysException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4192,20 +4174,20 @@ const de_DuplicateTagKeysException = (output: any, context: __SerdeContext): Dup */ const de_HealthCheck = (output: any, context: __SerdeContext): HealthCheck => { const contents: any = {}; - if (output["Target"] !== undefined) { - contents.Target = __expectString(output["Target"]); + if (output[_Ta] != null) { + contents[_Ta] = __expectString(output[_Ta]); } - if (output["Interval"] !== undefined) { - contents.Interval = __strictParseInt32(output["Interval"]) as number; + if (output[_In] != null) { + contents[_In] = __strictParseInt32(output[_In]) as number; } - if (output["Timeout"] !== undefined) { - contents.Timeout = __strictParseInt32(output["Timeout"]) as number; + if (output[_Ti] != null) { + contents[_Ti] = __strictParseInt32(output[_Ti]) as number; } - if (output["UnhealthyThreshold"] !== undefined) { - contents.UnhealthyThreshold = __strictParseInt32(output["UnhealthyThreshold"]) as number; + if (output[_UT] != null) { + contents[_UT] = __strictParseInt32(output[_UT]) as number; } - if (output["HealthyThreshold"] !== undefined) { - contents.HealthyThreshold = __strictParseInt32(output["HealthyThreshold"]) as number; + if (output[_HT] != null) { + contents[_HT] = __strictParseInt32(output[_HT]) as number; } return contents; }; @@ -4215,8 +4197,8 @@ const de_HealthCheck = (output: any, context: __SerdeContext): HealthCheck => { */ const de_Instance = (output: any, context: __SerdeContext): Instance => { const contents: any = {}; - if (output["InstanceId"] !== undefined) { - contents.InstanceId = __expectString(output["InstanceId"]); + if (output[_II] != null) { + contents[_II] = __expectString(output[_II]); } return contents; }; @@ -4237,17 +4219,17 @@ const de_Instances = (output: any, context: __SerdeContext): Instance[] => { */ const de_InstanceState = (output: any, context: __SerdeContext): InstanceState => { const contents: any = {}; - if (output["InstanceId"] !== undefined) { - contents.InstanceId = __expectString(output["InstanceId"]); + if (output[_II] != null) { + contents[_II] = __expectString(output[_II]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["ReasonCode"] !== undefined) { - contents.ReasonCode = __expectString(output["ReasonCode"]); + if (output[_RC] != null) { + contents[_RC] = __expectString(output[_RC]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -4271,8 +4253,8 @@ const de_InvalidConfigurationRequestException = ( context: __SerdeContext ): InvalidConfigurationRequestException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4282,8 +4264,8 @@ const de_InvalidConfigurationRequestException = ( */ const de_InvalidEndPointException = (output: any, context: __SerdeContext): InvalidEndPointException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4293,8 +4275,8 @@ const de_InvalidEndPointException = (output: any, context: __SerdeContext): Inva */ const de_InvalidSchemeException = (output: any, context: __SerdeContext): InvalidSchemeException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4304,8 +4286,8 @@ const de_InvalidSchemeException = (output: any, context: __SerdeContext): Invali */ const de_InvalidSecurityGroupException = (output: any, context: __SerdeContext): InvalidSecurityGroupException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4315,8 +4297,8 @@ const de_InvalidSecurityGroupException = (output: any, context: __SerdeContext): */ const de_InvalidSubnetException = (output: any, context: __SerdeContext): InvalidSubnetException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4337,11 +4319,11 @@ const de_LBCookieStickinessPolicies = (output: any, context: __SerdeContext): LB */ const de_LBCookieStickinessPolicy = (output: any, context: __SerdeContext): LBCookieStickinessPolicy => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["CookieExpirationPeriod"] !== undefined) { - contents.CookieExpirationPeriod = __strictParseLong(output["CookieExpirationPeriod"]) as number; + if (output[_CEP] != null) { + contents[_CEP] = __strictParseLong(output[_CEP]) as number; } return contents; }; @@ -4351,11 +4333,11 @@ const de_LBCookieStickinessPolicy = (output: any, context: __SerdeContext): LBCo */ const de_Limit = (output: any, context: __SerdeContext): Limit => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Max"] !== undefined) { - contents.Max = __expectString(output["Max"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -4376,20 +4358,20 @@ const de_Limits = (output: any, context: __SerdeContext): Limit[] => { */ const de_Listener = (output: any, context: __SerdeContext): Listener => { const contents: any = {}; - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["LoadBalancerPort"] !== undefined) { - contents.LoadBalancerPort = __strictParseInt32(output["LoadBalancerPort"]) as number; + if (output[_LBPo] != null) { + contents[_LBPo] = __strictParseInt32(output[_LBPo]) as number; } - if (output["InstanceProtocol"] !== undefined) { - contents.InstanceProtocol = __expectString(output["InstanceProtocol"]); + if (output[_IP] != null) { + contents[_IP] = __expectString(output[_IP]); } - if (output["InstancePort"] !== undefined) { - contents.InstancePort = __strictParseInt32(output["InstancePort"]) as number; + if (output[_IPn] != null) { + contents[_IPn] = __strictParseInt32(output[_IPn]) as number; } - if (output["SSLCertificateId"] !== undefined) { - contents.SSLCertificateId = __expectString(output["SSLCertificateId"]); + if (output[_SSLCI] != null) { + contents[_SSLCI] = __expectString(output[_SSLCI]); } return contents; }; @@ -4399,13 +4381,13 @@ const de_Listener = (output: any, context: __SerdeContext): Listener => { */ const de_ListenerDescription = (output: any, context: __SerdeContext): ListenerDescription => { const contents: any = {}; - if (output["Listener"] !== undefined) { - contents.Listener = de_Listener(output["Listener"], context); + if (output[_Lis] != null) { + contents[_Lis] = de_Listener(output[_Lis], context); } if (output.PolicyNames === "") { - contents.PolicyNames = []; - } else if (output["PolicyNames"] !== undefined && output["PolicyNames"]["member"] !== undefined) { - contents.PolicyNames = de_PolicyNames(__getArrayIfSingleItem(output["PolicyNames"]["member"]), context); + contents[_PNo] = []; + } else if (output[_PNo] != null && output[_PNo][_m] != null) { + contents[_PNo] = de_PolicyNames(__getArrayIfSingleItem(output[_PNo][_m]), context); } return contents; }; @@ -4426,8 +4408,8 @@ const de_ListenerDescriptions = (output: any, context: __SerdeContext): Listener */ const de_ListenerNotFoundException = (output: any, context: __SerdeContext): ListenerNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4440,8 +4422,8 @@ const de_LoadBalancerAttributeNotFoundException = ( context: __SerdeContext ): LoadBalancerAttributeNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4451,25 +4433,22 @@ const de_LoadBalancerAttributeNotFoundException = ( */ const de_LoadBalancerAttributes = (output: any, context: __SerdeContext): LoadBalancerAttributes => { const contents: any = {}; - if (output["CrossZoneLoadBalancing"] !== undefined) { - contents.CrossZoneLoadBalancing = de_CrossZoneLoadBalancing(output["CrossZoneLoadBalancing"], context); + if (output[_CZLB] != null) { + contents[_CZLB] = de_CrossZoneLoadBalancing(output[_CZLB], context); } - if (output["AccessLog"] !== undefined) { - contents.AccessLog = de_AccessLog(output["AccessLog"], context); + if (output[_AL] != null) { + contents[_AL] = de_AccessLog(output[_AL], context); } - if (output["ConnectionDraining"] !== undefined) { - contents.ConnectionDraining = de_ConnectionDraining(output["ConnectionDraining"], context); + if (output[_CD] != null) { + contents[_CD] = de_ConnectionDraining(output[_CD], context); } - if (output["ConnectionSettings"] !== undefined) { - contents.ConnectionSettings = de_ConnectionSettings(output["ConnectionSettings"], context); + if (output[_CS] != null) { + contents[_CS] = de_ConnectionSettings(output[_CS], context); } if (output.AdditionalAttributes === "") { - contents.AdditionalAttributes = []; - } else if (output["AdditionalAttributes"] !== undefined && output["AdditionalAttributes"]["member"] !== undefined) { - contents.AdditionalAttributes = de_AdditionalAttributes( - __getArrayIfSingleItem(output["AdditionalAttributes"]["member"]), - context - ); + contents[_AA] = []; + } else if (output[_AA] != null && output[_AA][_m] != null) { + contents[_AA] = de_AdditionalAttributes(__getArrayIfSingleItem(output[_AA][_m]), context); } return contents; }; @@ -4479,77 +4458,65 @@ const de_LoadBalancerAttributes = (output: any, context: __SerdeContext): LoadBa */ const de_LoadBalancerDescription = (output: any, context: __SerdeContext): LoadBalancerDescription => { const contents: any = {}; - if (output["LoadBalancerName"] !== undefined) { - contents.LoadBalancerName = __expectString(output["LoadBalancerName"]); + if (output[_LBN] != null) { + contents[_LBN] = __expectString(output[_LBN]); } - if (output["DNSName"] !== undefined) { - contents.DNSName = __expectString(output["DNSName"]); + if (output[_DNSN] != null) { + contents[_DNSN] = __expectString(output[_DNSN]); } - if (output["CanonicalHostedZoneName"] !== undefined) { - contents.CanonicalHostedZoneName = __expectString(output["CanonicalHostedZoneName"]); + if (output[_CHZN] != null) { + contents[_CHZN] = __expectString(output[_CHZN]); } - if (output["CanonicalHostedZoneNameID"] !== undefined) { - contents.CanonicalHostedZoneNameID = __expectString(output["CanonicalHostedZoneNameID"]); + if (output[_CHZNID] != null) { + contents[_CHZNID] = __expectString(output[_CHZNID]); } if (output.ListenerDescriptions === "") { - contents.ListenerDescriptions = []; - } else if (output["ListenerDescriptions"] !== undefined && output["ListenerDescriptions"]["member"] !== undefined) { - contents.ListenerDescriptions = de_ListenerDescriptions( - __getArrayIfSingleItem(output["ListenerDescriptions"]["member"]), - context - ); + contents[_LD] = []; + } else if (output[_LD] != null && output[_LD][_m] != null) { + contents[_LD] = de_ListenerDescriptions(__getArrayIfSingleItem(output[_LD][_m]), context); } - if (output["Policies"] !== undefined) { - contents.Policies = de_Policies(output["Policies"], context); + if (output[_Po] != null) { + contents[_Po] = de_Policies(output[_Po], context); } if (output.BackendServerDescriptions === "") { - contents.BackendServerDescriptions = []; - } else if ( - output["BackendServerDescriptions"] !== undefined && - output["BackendServerDescriptions"]["member"] !== undefined - ) { - contents.BackendServerDescriptions = de_BackendServerDescriptions( - __getArrayIfSingleItem(output["BackendServerDescriptions"]["member"]), - context - ); + contents[_BSD] = []; + } else if (output[_BSD] != null && output[_BSD][_m] != null) { + contents[_BSD] = de_BackendServerDescriptions(__getArrayIfSingleItem(output[_BSD][_m]), context); } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["member"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_m] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context); } if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["member"] !== undefined) { - contents.Subnets = de_Subnets(__getArrayIfSingleItem(output["Subnets"]["member"]), context); + contents[_S] = []; + } else if (output[_S] != null && output[_S][_m] != null) { + contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context); } - if (output["VPCId"] !== undefined) { - contents.VPCId = __expectString(output["VPCId"]); + if (output[_VPCI] != null) { + contents[_VPCI] = __expectString(output[_VPCI]); } if (output.Instances === "") { - contents.Instances = []; - } else if (output["Instances"] !== undefined && output["Instances"]["member"] !== undefined) { - contents.Instances = de_Instances(__getArrayIfSingleItem(output["Instances"]["member"]), context); + contents[_I] = []; + } else if (output[_I] != null && output[_I][_m] != null) { + contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context); } - if (output["HealthCheck"] !== undefined) { - contents.HealthCheck = de_HealthCheck(output["HealthCheck"], context); + if (output[_HC] != null) { + contents[_HC] = de_HealthCheck(output[_HC], context); } - if (output["SourceSecurityGroup"] !== undefined) { - contents.SourceSecurityGroup = de_SourceSecurityGroup(output["SourceSecurityGroup"], context); + if (output[_SSG] != null) { + contents[_SSG] = de_SourceSecurityGroup(output[_SSG], context); } if (output.SecurityGroups === "") { - contents.SecurityGroups = []; - } else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) { - contents.SecurityGroups = de_SecurityGroups(__getArrayIfSingleItem(output["SecurityGroups"]["member"]), context); + contents[_SG] = []; + } else if (output[_SG] != null && output[_SG][_m] != null) { + contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context); } - if (output["CreatedTime"] !== undefined) { - contents.CreatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTime"])); + if (output[_CT] != null) { + contents[_CT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CT])); } - if (output["Scheme"] !== undefined) { - contents.Scheme = __expectString(output["Scheme"]); + if (output[_Sc] != null) { + contents[_Sc] = __expectString(output[_Sc]); } return contents; }; @@ -4573,11 +4540,11 @@ const de_ModifyLoadBalancerAttributesOutput = ( context: __SerdeContext ): ModifyLoadBalancerAttributesOutput => { const contents: any = {}; - if (output["LoadBalancerName"] !== undefined) { - contents.LoadBalancerName = __expectString(output["LoadBalancerName"]); + if (output[_LBN] != null) { + contents[_LBN] = __expectString(output[_LBN]); } - if (output["LoadBalancerAttributes"] !== undefined) { - contents.LoadBalancerAttributes = de_LoadBalancerAttributes(output["LoadBalancerAttributes"], context); + if (output[_LBA] != null) { + contents[_LBA] = de_LoadBalancerAttributes(output[_LBA], context); } return contents; }; @@ -4587,8 +4554,8 @@ const de_ModifyLoadBalancerAttributesOutput = ( */ const de_OperationNotPermittedException = (output: any, context: __SerdeContext): OperationNotPermittedException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4599,31 +4566,19 @@ const de_OperationNotPermittedException = (output: any, context: __SerdeContext) const de_Policies = (output: any, context: __SerdeContext): Policies => { const contents: any = {}; if (output.AppCookieStickinessPolicies === "") { - contents.AppCookieStickinessPolicies = []; - } else if ( - output["AppCookieStickinessPolicies"] !== undefined && - output["AppCookieStickinessPolicies"]["member"] !== undefined - ) { - contents.AppCookieStickinessPolicies = de_AppCookieStickinessPolicies( - __getArrayIfSingleItem(output["AppCookieStickinessPolicies"]["member"]), - context - ); + contents[_ACSP] = []; + } else if (output[_ACSP] != null && output[_ACSP][_m] != null) { + contents[_ACSP] = de_AppCookieStickinessPolicies(__getArrayIfSingleItem(output[_ACSP][_m]), context); } if (output.LBCookieStickinessPolicies === "") { - contents.LBCookieStickinessPolicies = []; - } else if ( - output["LBCookieStickinessPolicies"] !== undefined && - output["LBCookieStickinessPolicies"]["member"] !== undefined - ) { - contents.LBCookieStickinessPolicies = de_LBCookieStickinessPolicies( - __getArrayIfSingleItem(output["LBCookieStickinessPolicies"]["member"]), - context - ); + contents[_LBCSP] = []; + } else if (output[_LBCSP] != null && output[_LBCSP][_m] != null) { + contents[_LBCSP] = de_LBCookieStickinessPolicies(__getArrayIfSingleItem(output[_LBCSP][_m]), context); } if (output.OtherPolicies === "") { - contents.OtherPolicies = []; - } else if (output["OtherPolicies"] !== undefined && output["OtherPolicies"]["member"] !== undefined) { - contents.OtherPolicies = de_PolicyNames(__getArrayIfSingleItem(output["OtherPolicies"]["member"]), context); + contents[_OP] = []; + } else if (output[_OP] != null && output[_OP][_m] != null) { + contents[_OP] = de_PolicyNames(__getArrayIfSingleItem(output[_OP][_m]), context); } return contents; }; @@ -4633,11 +4588,11 @@ const de_Policies = (output: any, context: __SerdeContext): Policies => { */ const de_PolicyAttributeDescription = (output: any, context: __SerdeContext): PolicyAttributeDescription => { const contents: any = {}; - if (output["AttributeName"] !== undefined) { - contents.AttributeName = __expectString(output["AttributeName"]); + if (output[_AN] != null) { + contents[_AN] = __expectString(output[_AN]); } - if (output["AttributeValue"] !== undefined) { - contents.AttributeValue = __expectString(output["AttributeValue"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } return contents; }; @@ -4658,20 +4613,20 @@ const de_PolicyAttributeDescriptions = (output: any, context: __SerdeContext): P */ const de_PolicyAttributeTypeDescription = (output: any, context: __SerdeContext): PolicyAttributeTypeDescription => { const contents: any = {}; - if (output["AttributeName"] !== undefined) { - contents.AttributeName = __expectString(output["AttributeName"]); + if (output[_AN] != null) { + contents[_AN] = __expectString(output[_AN]); } - if (output["AttributeType"] !== undefined) { - contents.AttributeType = __expectString(output["AttributeType"]); + if (output[_ATt] != null) { + contents[_ATt] = __expectString(output[_ATt]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["Cardinality"] !== undefined) { - contents.Cardinality = __expectString(output["Cardinality"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -4692,22 +4647,16 @@ const de_PolicyAttributeTypeDescriptions = (output: any, context: __SerdeContext */ const de_PolicyDescription = (output: any, context: __SerdeContext): PolicyDescription => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyTypeName"] !== undefined) { - contents.PolicyTypeName = __expectString(output["PolicyTypeName"]); + if (output[_PTN] != null) { + contents[_PTN] = __expectString(output[_PTN]); } if (output.PolicyAttributeDescriptions === "") { - contents.PolicyAttributeDescriptions = []; - } else if ( - output["PolicyAttributeDescriptions"] !== undefined && - output["PolicyAttributeDescriptions"]["member"] !== undefined - ) { - contents.PolicyAttributeDescriptions = de_PolicyAttributeDescriptions( - __getArrayIfSingleItem(output["PolicyAttributeDescriptions"]["member"]), - context - ); + contents[_PAD] = []; + } else if (output[_PAD] != null && output[_PAD][_m] != null) { + contents[_PAD] = de_PolicyAttributeDescriptions(__getArrayIfSingleItem(output[_PAD][_m]), context); } return contents; }; @@ -4739,8 +4688,8 @@ const de_PolicyNames = (output: any, context: __SerdeContext): string[] => { */ const de_PolicyNotFoundException = (output: any, context: __SerdeContext): PolicyNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4750,22 +4699,16 @@ const de_PolicyNotFoundException = (output: any, context: __SerdeContext): Polic */ const de_PolicyTypeDescription = (output: any, context: __SerdeContext): PolicyTypeDescription => { const contents: any = {}; - if (output["PolicyTypeName"] !== undefined) { - contents.PolicyTypeName = __expectString(output["PolicyTypeName"]); + if (output[_PTN] != null) { + contents[_PTN] = __expectString(output[_PTN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.PolicyAttributeTypeDescriptions === "") { - contents.PolicyAttributeTypeDescriptions = []; - } else if ( - output["PolicyAttributeTypeDescriptions"] !== undefined && - output["PolicyAttributeTypeDescriptions"]["member"] !== undefined - ) { - contents.PolicyAttributeTypeDescriptions = de_PolicyAttributeTypeDescriptions( - __getArrayIfSingleItem(output["PolicyAttributeTypeDescriptions"]["member"]), - context - ); + contents[_PATD] = []; + } else if (output[_PATD] != null && output[_PATD][_m] != null) { + contents[_PATD] = de_PolicyAttributeTypeDescriptions(__getArrayIfSingleItem(output[_PATD][_m]), context); } return contents; }; @@ -4786,8 +4729,8 @@ const de_PolicyTypeDescriptions = (output: any, context: __SerdeContext): Policy */ const de_PolicyTypeNotFoundException = (output: any, context: __SerdeContext): PolicyTypeNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4798,9 +4741,9 @@ const de_PolicyTypeNotFoundException = (output: any, context: __SerdeContext): P const de_RegisterEndPointsOutput = (output: any, context: __SerdeContext): RegisterEndPointsOutput => { const contents: any = {}; if (output.Instances === "") { - contents.Instances = []; - } else if (output["Instances"] !== undefined && output["Instances"]["member"] !== undefined) { - contents.Instances = de_Instances(__getArrayIfSingleItem(output["Instances"]["member"]), context); + contents[_I] = []; + } else if (output[_I] != null && output[_I][_m] != null) { + contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context); } return contents; }; @@ -4811,12 +4754,9 @@ const de_RegisterEndPointsOutput = (output: any, context: __SerdeContext): Regis const de_RemoveAvailabilityZonesOutput = (output: any, context: __SerdeContext): RemoveAvailabilityZonesOutput => { const contents: any = {}; if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if (output["AvailabilityZones"] !== undefined && output["AvailabilityZones"]["member"] !== undefined) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["member"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_m] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context); } return contents; }; @@ -4878,11 +4818,11 @@ const de_SetLoadBalancerPoliciesOfListenerOutput = ( */ const de_SourceSecurityGroup = (output: any, context: __SerdeContext): SourceSecurityGroup => { const contents: any = {}; - if (output["OwnerAlias"] !== undefined) { - contents.OwnerAlias = __expectString(output["OwnerAlias"]); + if (output[_OA] != null) { + contents[_OA] = __expectString(output[_OA]); } - if (output["GroupName"] !== undefined) { - contents.GroupName = __expectString(output["GroupName"]); + if (output[_GN] != null) { + contents[_GN] = __expectString(output[_GN]); } return contents; }; @@ -4892,8 +4832,8 @@ const de_SourceSecurityGroup = (output: any, context: __SerdeContext): SourceSec */ const de_SubnetNotFoundException = (output: any, context: __SerdeContext): SubnetNotFoundException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4914,11 +4854,11 @@ const de_Subnets = (output: any, context: __SerdeContext): string[] => { */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -4928,13 +4868,13 @@ const de_Tag = (output: any, context: __SerdeContext): Tag => { */ const de_TagDescription = (output: any, context: __SerdeContext): TagDescription => { const contents: any = {}; - if (output["LoadBalancerName"] !== undefined) { - contents.LoadBalancerName = __expectString(output["LoadBalancerName"]); + if (output[_LBN] != null) { + contents[_LBN] = __expectString(output[_LBN]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_m] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_m]), context); } return contents; }; @@ -4966,8 +4906,8 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TooManyAccessPointsException = (output: any, context: __SerdeContext): TooManyAccessPointsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4977,8 +4917,8 @@ const de_TooManyAccessPointsException = (output: any, context: __SerdeContext): */ const de_TooManyPoliciesException = (output: any, context: __SerdeContext): TooManyPoliciesException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4988,8 +4928,8 @@ const de_TooManyPoliciesException = (output: any, context: __SerdeContext): TooM */ const de_TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -4999,8 +4939,8 @@ const de_TooManyTagsException = (output: any, context: __SerdeContext): TooManyT */ const de_UnsupportedProtocolException = (output: any, context: __SerdeContext): UnsupportedProtocolException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -5046,6 +4986,119 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2012-06-01"; +const _A = "Action"; +const _AA = "AdditionalAttributes"; +const _ACSP = "AppCookieStickinessPolicies"; +const _AL = "AccessLog"; +const _ALBTS = "AttachLoadBalancerToSubnets"; +const _AN = "AttributeName"; +const _ASGTLB = "ApplySecurityGroupsToLoadBalancer"; +const _AT = "AddTags"; +const _ATt = "AttributeType"; +const _AV = "AttributeValue"; +const _AZ = "AvailabilityZones"; +const _BSD = "BackendServerDescriptions"; +const _C = "Cardinality"; +const _CACSP = "CreateAppCookieStickinessPolicy"; +const _CD = "ConnectionDraining"; +const _CEP = "CookieExpirationPeriod"; +const _CHC = "ConfigureHealthCheck"; +const _CHZN = "CanonicalHostedZoneName"; +const _CHZNID = "CanonicalHostedZoneNameID"; +const _CLB = "CreateLoadBalancer"; +const _CLBCSP = "CreateLBCookieStickinessPolicy"; +const _CLBL = "CreateLoadBalancerListeners"; +const _CLBP = "CreateLoadBalancerPolicy"; +const _CN = "CookieName"; +const _CS = "ConnectionSettings"; +const _CT = "CreatedTime"; +const _CZLB = "CrossZoneLoadBalancing"; +const _D = "Description"; +const _DAL = "DescribeAccountLimits"; +const _DAZFLB = "DisableAvailabilityZonesForLoadBalancer"; +const _DIFLB = "DeregisterInstancesFromLoadBalancer"; +const _DIH = "DescribeInstanceHealth"; +const _DLB = "DeleteLoadBalancer"; +const _DLBA = "DescribeLoadBalancerAttributes"; +const _DLBFS = "DetachLoadBalancerFromSubnets"; +const _DLBL = "DeleteLoadBalancerListeners"; +const _DLBP = "DeleteLoadBalancerPolicy"; +const _DLBPT = "DescribeLoadBalancerPolicyTypes"; +const _DLBPe = "DescribeLoadBalancerPolicies"; +const _DLBe = "DescribeLoadBalancers"; +const _DNSN = "DNSName"; +const _DT = "DescribeTags"; +const _DV = "DefaultValue"; +const _E = "Enabled"; +const _EAZFLB = "EnableAvailabilityZonesForLoadBalancer"; +const _EI = "EmitInterval"; +const _GN = "GroupName"; +const _HC = "HealthCheck"; +const _HT = "HealthyThreshold"; +const _I = "Instances"; +const _II = "InstanceId"; +const _IP = "InstanceProtocol"; +const _IPn = "InstancePort"; +const _IS = "InstanceStates"; +const _IT = "IdleTimeout"; +const _In = "Interval"; +const _K = "Key"; +const _L = "Listeners"; +const _LBA = "LoadBalancerAttributes"; +const _LBCSP = "LBCookieStickinessPolicies"; +const _LBD = "LoadBalancerDescriptions"; +const _LBN = "LoadBalancerName"; +const _LBNo = "LoadBalancerNames"; +const _LBP = "LoadBalancerPorts"; +const _LBPo = "LoadBalancerPort"; +const _LD = "ListenerDescriptions"; +const _Li = "Limits"; +const _Lis = "Listener"; +const _M = "Marker"; +const _MLBA = "ModifyLoadBalancerAttributes"; +const _Ma = "Max"; +const _Me = "Message"; +const _N = "Name"; +const _NM = "NextMarker"; +const _OA = "OwnerAlias"; +const _OP = "OtherPolicies"; +const _P = "Protocol"; +const _PA = "PolicyAttributes"; +const _PAD = "PolicyAttributeDescriptions"; +const _PATD = "PolicyAttributeTypeDescriptions"; +const _PD = "PolicyDescriptions"; +const _PN = "PolicyName"; +const _PNo = "PolicyNames"; +const _PS = "PageSize"; +const _PTD = "PolicyTypeDescriptions"; +const _PTN = "PolicyTypeName"; +const _PTNo = "PolicyTypeNames"; +const _Po = "Policies"; +const _RC = "ReasonCode"; +const _RIWLB = "RegisterInstancesWithLoadBalancer"; +const _RT = "RemoveTags"; +const _S = "Subnets"; +const _SBN = "S3BucketName"; +const _SBP = "S3BucketPrefix"; +const _SG = "SecurityGroups"; +const _SLBLSSLC = "SetLoadBalancerListenerSSLCertificate"; +const _SLBPFBS = "SetLoadBalancerPoliciesForBackendServer"; +const _SLBPOL = "SetLoadBalancerPoliciesOfListener"; +const _SSG = "SourceSecurityGroup"; +const _SSLCI = "SSLCertificateId"; +const _Sc = "Scheme"; +const _St = "State"; +const _T = "Tags"; +const _TD = "TagDescriptions"; +const _Ta = "Target"; +const _Ti = "Timeout"; +const _UT = "UnhealthyThreshold"; +const _V = "Version"; +const _VPCI = "VPCId"; +const _Va = "Value"; +const _m = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-elastic-transcoder/package.json b/clients/client-elastic-transcoder/package.json index 48462372a872..4171d98d574c 100644 --- a/clients/client-elastic-transcoder/package.json +++ b/clients/client-elastic-transcoder/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts b/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts index 9addf0e0176d..92d021f6475f 100644 --- a/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -84,20 +85,13 @@ export const se_CancelJobCommand = async ( input: CancelJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/jobs/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/jobs/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -107,11 +101,11 @@ export const se_CreateJobCommand = async ( input: CreateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/jobs"; + b.bp("/2012-09-25/jobs"); let body: any; body = JSON.stringify( take(input, { @@ -125,15 +119,8 @@ export const se_CreateJobCommand = async ( UserMetadata: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -143,11 +130,11 @@ export const se_CreatePipelineCommand = async ( input: CreatePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/pipelines"; + b.bp("/2012-09-25/pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -161,15 +148,8 @@ export const se_CreatePipelineCommand = async ( ThumbnailConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -179,11 +159,11 @@ export const se_CreatePresetCommand = async ( input: CreatePresetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/presets"; + b.bp("/2012-09-25/presets"); let body: any; body = JSON.stringify( take(input, { @@ -195,15 +175,8 @@ export const se_CreatePresetCommand = async ( Video: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -213,21 +186,13 @@ export const se_DeletePipelineCommand = async ( input: DeletePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/pipelines/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/pipelines/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -237,20 +202,13 @@ export const se_DeletePresetCommand = async ( input: DeletePresetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/presets/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/presets/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -260,26 +218,17 @@ export const se_ListJobsByPipelineCommand = async ( input: ListJobsByPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/jobsByPipeline/{PipelineId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PipelineId", () => input.PipelineId!, "{PipelineId}", false); + b.bp("/2012-09-25/jobsByPipeline/{PipelineId}"); + b.p("PipelineId", () => input.PipelineId!, "{PipelineId}", false); const query: any = map({ - Ascending: [, input.Ascending!], - PageToken: [, input.PageToken!], + [_A]: [, input[_A]!], + [_PT]: [, input[_PT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -289,26 +238,17 @@ export const se_ListJobsByStatusCommand = async ( input: ListJobsByStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/jobsByStatus/{Status}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Status", () => input.Status!, "{Status}", false); + b.bp("/2012-09-25/jobsByStatus/{Status}"); + b.p("Status", () => input.Status!, "{Status}", false); const query: any = map({ - Ascending: [, input.Ascending!], - PageToken: [, input.PageToken!], + [_A]: [, input[_A]!], + [_PT]: [, input[_PT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -318,24 +258,16 @@ export const se_ListPipelinesCommand = async ( input: ListPipelinesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/pipelines"; + b.bp("/2012-09-25/pipelines"); const query: any = map({ - Ascending: [, input.Ascending!], - PageToken: [, input.PageToken!], + [_A]: [, input[_A]!], + [_PT]: [, input[_PT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -345,24 +277,16 @@ export const se_ListPresetsCommand = async ( input: ListPresetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/presets"; + b.bp("/2012-09-25/presets"); const query: any = map({ - Ascending: [, input.Ascending!], - PageToken: [, input.PageToken!], + [_A]: [, input[_A]!], + [_PT]: [, input[_PT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -372,20 +296,13 @@ export const se_ReadJobCommand = async ( input: ReadJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/jobs/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/jobs/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -395,21 +312,13 @@ export const se_ReadPipelineCommand = async ( input: ReadPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/pipelines/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/pipelines/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -419,20 +328,13 @@ export const se_ReadPresetCommand = async ( input: ReadPresetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/presets/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/presets/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -442,11 +344,11 @@ export const se_TestRoleCommand = async ( input: TestRoleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/roleTests"; + b.bp("/2012-09-25/roleTests"); let body: any; body = JSON.stringify( take(input, { @@ -456,15 +358,8 @@ export const se_TestRoleCommand = async ( Topics: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -474,13 +369,12 @@ export const se_UpdatePipelineCommand = async ( input: UpdatePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/pipelines/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/pipelines/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -493,15 +387,8 @@ export const se_UpdatePipelineCommand = async ( ThumbnailConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -511,28 +398,20 @@ export const se_UpdatePipelineNotificationsCommand = async ( input: UpdatePipelineNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/pipelines/{Id}/notifications"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/pipelines/{Id}/notifications"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { Notifications: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -542,28 +421,20 @@ export const se_UpdatePipelineStatusCommand = async ( input: UpdatePipelineStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2012-09-25/pipelines/{Id}/status"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2012-09-25/pipelines/{Id}/status"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { Status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1912,6 +1783,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Ascending"; +const _PT = "PageToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-elasticache/src/models/models_1.ts b/clients/client-elasticache/src/models/models_1.ts index a36dc760e9d3..1205c6448d03 100644 --- a/clients/client-elasticache/src/models/models_1.ts +++ b/clients/client-elasticache/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { ElastiCacheServiceException as __BaseException } from "./ElastiCacheServiceException"; + import { ReplicationGroup } from "./models_0"; /** diff --git a/clients/client-elasticache/src/protocols/Aws_query.ts b/clients/client-elasticache/src/protocols/Aws_query.ts index bc327cde6895..121679cb0364 100644 --- a/clients/client-elasticache/src/protocols/Aws_query.ts +++ b/clients/client-elasticache/src/protocols/Aws_query.ts @@ -559,8 +559,8 @@ export const se_AddTagsToResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddTagsToResourceMessage(input, context), - Action: "AddTagsToResource", - Version: "2015-02-02", + [_A]: _ATTR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -576,8 +576,8 @@ export const se_AuthorizeCacheSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeCacheSecurityGroupIngressMessage(input, context), - Action: "AuthorizeCacheSecurityGroupIngress", - Version: "2015-02-02", + [_A]: _ACSGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -593,8 +593,8 @@ export const se_BatchApplyUpdateActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BatchApplyUpdateActionMessage(input, context), - Action: "BatchApplyUpdateAction", - Version: "2015-02-02", + [_A]: _BAUA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -610,8 +610,8 @@ export const se_BatchStopUpdateActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BatchStopUpdateActionMessage(input, context), - Action: "BatchStopUpdateAction", - Version: "2015-02-02", + [_A]: _BSUA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -627,8 +627,8 @@ export const se_CompleteMigrationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CompleteMigrationMessage(input, context), - Action: "CompleteMigration", - Version: "2015-02-02", + [_A]: _CM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -644,8 +644,8 @@ export const se_CopyServerlessCacheSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyServerlessCacheSnapshotRequest(input, context), - Action: "CopyServerlessCacheSnapshot", - Version: "2015-02-02", + [_A]: _CSCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -661,8 +661,8 @@ export const se_CopySnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopySnapshotMessage(input, context), - Action: "CopySnapshot", - Version: "2015-02-02", + [_A]: _CS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -678,8 +678,8 @@ export const se_CreateCacheClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCacheClusterMessage(input, context), - Action: "CreateCacheCluster", - Version: "2015-02-02", + [_A]: _CCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -695,8 +695,8 @@ export const se_CreateCacheParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCacheParameterGroupMessage(input, context), - Action: "CreateCacheParameterGroup", - Version: "2015-02-02", + [_A]: _CCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -712,8 +712,8 @@ export const se_CreateCacheSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCacheSecurityGroupMessage(input, context), - Action: "CreateCacheSecurityGroup", - Version: "2015-02-02", + [_A]: _CCSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -729,8 +729,8 @@ export const se_CreateCacheSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCacheSubnetGroupMessage(input, context), - Action: "CreateCacheSubnetGroup", - Version: "2015-02-02", + [_A]: _CCSGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -746,8 +746,8 @@ export const se_CreateGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateGlobalReplicationGroupMessage(input, context), - Action: "CreateGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _CGRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -763,8 +763,8 @@ export const se_CreateReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateReplicationGroupMessage(input, context), - Action: "CreateReplicationGroup", - Version: "2015-02-02", + [_A]: _CRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -780,8 +780,8 @@ export const se_CreateServerlessCacheCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateServerlessCacheRequest(input, context), - Action: "CreateServerlessCache", - Version: "2015-02-02", + [_A]: _CSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -797,8 +797,8 @@ export const se_CreateServerlessCacheSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateServerlessCacheSnapshotRequest(input, context), - Action: "CreateServerlessCacheSnapshot", - Version: "2015-02-02", + [_A]: _CSCSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -814,8 +814,8 @@ export const se_CreateSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSnapshotMessage(input, context), - Action: "CreateSnapshot", - Version: "2015-02-02", + [_A]: _CSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -831,8 +831,8 @@ export const se_CreateUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateUserMessage(input, context), - Action: "CreateUser", - Version: "2015-02-02", + [_A]: _CU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -848,8 +848,8 @@ export const se_CreateUserGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateUserGroupMessage(input, context), - Action: "CreateUserGroup", - Version: "2015-02-02", + [_A]: _CUG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -865,8 +865,8 @@ export const se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DecreaseNodeGroupsInGlobalReplicationGroupMessage(input, context), - Action: "DecreaseNodeGroupsInGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _DNGIGRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -882,8 +882,8 @@ export const se_DecreaseReplicaCountCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DecreaseReplicaCountMessage(input, context), - Action: "DecreaseReplicaCount", - Version: "2015-02-02", + [_A]: _DRC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -899,8 +899,8 @@ export const se_DeleteCacheClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCacheClusterMessage(input, context), - Action: "DeleteCacheCluster", - Version: "2015-02-02", + [_A]: _DCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -916,8 +916,8 @@ export const se_DeleteCacheParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCacheParameterGroupMessage(input, context), - Action: "DeleteCacheParameterGroup", - Version: "2015-02-02", + [_A]: _DCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -933,8 +933,8 @@ export const se_DeleteCacheSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCacheSecurityGroupMessage(input, context), - Action: "DeleteCacheSecurityGroup", - Version: "2015-02-02", + [_A]: _DCSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -950,8 +950,8 @@ export const se_DeleteCacheSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCacheSubnetGroupMessage(input, context), - Action: "DeleteCacheSubnetGroup", - Version: "2015-02-02", + [_A]: _DCSGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -967,8 +967,8 @@ export const se_DeleteGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteGlobalReplicationGroupMessage(input, context), - Action: "DeleteGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _DGRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -984,8 +984,8 @@ export const se_DeleteReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteReplicationGroupMessage(input, context), - Action: "DeleteReplicationGroup", - Version: "2015-02-02", + [_A]: _DRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1001,8 +1001,8 @@ export const se_DeleteServerlessCacheCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteServerlessCacheRequest(input, context), - Action: "DeleteServerlessCache", - Version: "2015-02-02", + [_A]: _DSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1018,8 +1018,8 @@ export const se_DeleteServerlessCacheSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteServerlessCacheSnapshotRequest(input, context), - Action: "DeleteServerlessCacheSnapshot", - Version: "2015-02-02", + [_A]: _DSCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1035,8 +1035,8 @@ export const se_DeleteSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSnapshotMessage(input, context), - Action: "DeleteSnapshot", - Version: "2015-02-02", + [_A]: _DS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1052,8 +1052,8 @@ export const se_DeleteUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteUserMessage(input, context), - Action: "DeleteUser", - Version: "2015-02-02", + [_A]: _DU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1069,8 +1069,8 @@ export const se_DeleteUserGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteUserGroupMessage(input, context), - Action: "DeleteUserGroup", - Version: "2015-02-02", + [_A]: _DUG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1086,8 +1086,8 @@ export const se_DescribeCacheClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCacheClustersMessage(input, context), - Action: "DescribeCacheClusters", - Version: "2015-02-02", + [_A]: _DCCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1103,8 +1103,8 @@ export const se_DescribeCacheEngineVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCacheEngineVersionsMessage(input, context), - Action: "DescribeCacheEngineVersions", - Version: "2015-02-02", + [_A]: _DCEV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1120,8 +1120,8 @@ export const se_DescribeCacheParameterGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCacheParameterGroupsMessage(input, context), - Action: "DescribeCacheParameterGroups", - Version: "2015-02-02", + [_A]: _DCPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1137,8 +1137,8 @@ export const se_DescribeCacheParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCacheParametersMessage(input, context), - Action: "DescribeCacheParameters", - Version: "2015-02-02", + [_A]: _DCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1154,8 +1154,8 @@ export const se_DescribeCacheSecurityGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCacheSecurityGroupsMessage(input, context), - Action: "DescribeCacheSecurityGroups", - Version: "2015-02-02", + [_A]: _DCSGes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1171,8 +1171,8 @@ export const se_DescribeCacheSubnetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCacheSubnetGroupsMessage(input, context), - Action: "DescribeCacheSubnetGroups", - Version: "2015-02-02", + [_A]: _DCSGesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1188,8 +1188,8 @@ export const se_DescribeEngineDefaultParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEngineDefaultParametersMessage(input, context), - Action: "DescribeEngineDefaultParameters", - Version: "2015-02-02", + [_A]: _DEDP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1205,8 +1205,8 @@ export const se_DescribeEventsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventsMessage(input, context), - Action: "DescribeEvents", - Version: "2015-02-02", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1222,8 +1222,8 @@ export const se_DescribeGlobalReplicationGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeGlobalReplicationGroupsMessage(input, context), - Action: "DescribeGlobalReplicationGroups", - Version: "2015-02-02", + [_A]: _DGRGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1239,8 +1239,8 @@ export const se_DescribeReplicationGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReplicationGroupsMessage(input, context), - Action: "DescribeReplicationGroups", - Version: "2015-02-02", + [_A]: _DRGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1256,8 +1256,8 @@ export const se_DescribeReservedCacheNodesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedCacheNodesMessage(input, context), - Action: "DescribeReservedCacheNodes", - Version: "2015-02-02", + [_A]: _DRCN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1273,8 +1273,8 @@ export const se_DescribeReservedCacheNodesOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedCacheNodesOfferingsMessage(input, context), - Action: "DescribeReservedCacheNodesOfferings", - Version: "2015-02-02", + [_A]: _DRCNO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1290,8 +1290,8 @@ export const se_DescribeServerlessCachesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeServerlessCachesRequest(input, context), - Action: "DescribeServerlessCaches", - Version: "2015-02-02", + [_A]: _DSCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1307,8 +1307,8 @@ export const se_DescribeServerlessCacheSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeServerlessCacheSnapshotsRequest(input, context), - Action: "DescribeServerlessCacheSnapshots", - Version: "2015-02-02", + [_A]: _DSCSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1324,8 +1324,8 @@ export const se_DescribeServiceUpdatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeServiceUpdatesMessage(input, context), - Action: "DescribeServiceUpdates", - Version: "2015-02-02", + [_A]: _DSU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1341,8 +1341,8 @@ export const se_DescribeSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSnapshotsMessage(input, context), - Action: "DescribeSnapshots", - Version: "2015-02-02", + [_A]: _DSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1358,8 +1358,8 @@ export const se_DescribeUpdateActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeUpdateActionsMessage(input, context), - Action: "DescribeUpdateActions", - Version: "2015-02-02", + [_A]: _DUA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1375,8 +1375,8 @@ export const se_DescribeUserGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeUserGroupsMessage(input, context), - Action: "DescribeUserGroups", - Version: "2015-02-02", + [_A]: _DUGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1392,8 +1392,8 @@ export const se_DescribeUsersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeUsersMessage(input, context), - Action: "DescribeUsers", - Version: "2015-02-02", + [_A]: _DUe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1409,8 +1409,8 @@ export const se_DisassociateGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateGlobalReplicationGroupMessage(input, context), - Action: "DisassociateGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _DGRGi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1426,8 +1426,8 @@ export const se_ExportServerlessCacheSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ExportServerlessCacheSnapshotRequest(input, context), - Action: "ExportServerlessCacheSnapshot", - Version: "2015-02-02", + [_A]: _ESCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1443,8 +1443,8 @@ export const se_FailoverGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_FailoverGlobalReplicationGroupMessage(input, context), - Action: "FailoverGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _FGRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1460,8 +1460,8 @@ export const se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_IncreaseNodeGroupsInGlobalReplicationGroupMessage(input, context), - Action: "IncreaseNodeGroupsInGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _INGIGRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1477,8 +1477,8 @@ export const se_IncreaseReplicaCountCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_IncreaseReplicaCountMessage(input, context), - Action: "IncreaseReplicaCount", - Version: "2015-02-02", + [_A]: _IRC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1494,8 +1494,8 @@ export const se_ListAllowedNodeTypeModificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListAllowedNodeTypeModificationsMessage(input, context), - Action: "ListAllowedNodeTypeModifications", - Version: "2015-02-02", + [_A]: _LANTM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1511,8 +1511,8 @@ export const se_ListTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTagsForResourceMessage(input, context), - Action: "ListTagsForResource", - Version: "2015-02-02", + [_A]: _LTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1528,8 +1528,8 @@ export const se_ModifyCacheClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCacheClusterMessage(input, context), - Action: "ModifyCacheCluster", - Version: "2015-02-02", + [_A]: _MCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1545,8 +1545,8 @@ export const se_ModifyCacheParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCacheParameterGroupMessage(input, context), - Action: "ModifyCacheParameterGroup", - Version: "2015-02-02", + [_A]: _MCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1562,8 +1562,8 @@ export const se_ModifyCacheSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCacheSubnetGroupMessage(input, context), - Action: "ModifyCacheSubnetGroup", - Version: "2015-02-02", + [_A]: _MCSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1579,8 +1579,8 @@ export const se_ModifyGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyGlobalReplicationGroupMessage(input, context), - Action: "ModifyGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _MGRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1596,8 +1596,8 @@ export const se_ModifyReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyReplicationGroupMessage(input, context), - Action: "ModifyReplicationGroup", - Version: "2015-02-02", + [_A]: _MRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1613,8 +1613,8 @@ export const se_ModifyReplicationGroupShardConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyReplicationGroupShardConfigurationMessage(input, context), - Action: "ModifyReplicationGroupShardConfiguration", - Version: "2015-02-02", + [_A]: _MRGSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1630,8 +1630,8 @@ export const se_ModifyServerlessCacheCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyServerlessCacheRequest(input, context), - Action: "ModifyServerlessCache", - Version: "2015-02-02", + [_A]: _MSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1647,8 +1647,8 @@ export const se_ModifyUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyUserMessage(input, context), - Action: "ModifyUser", - Version: "2015-02-02", + [_A]: _MU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1664,8 +1664,8 @@ export const se_ModifyUserGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyUserGroupMessage(input, context), - Action: "ModifyUserGroup", - Version: "2015-02-02", + [_A]: _MUG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1681,8 +1681,8 @@ export const se_PurchaseReservedCacheNodesOfferingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PurchaseReservedCacheNodesOfferingMessage(input, context), - Action: "PurchaseReservedCacheNodesOffering", - Version: "2015-02-02", + [_A]: _PRCNO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1698,8 +1698,8 @@ export const se_RebalanceSlotsInGlobalReplicationGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebalanceSlotsInGlobalReplicationGroupMessage(input, context), - Action: "RebalanceSlotsInGlobalReplicationGroup", - Version: "2015-02-02", + [_A]: _RSIGRG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1715,8 +1715,8 @@ export const se_RebootCacheClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebootCacheClusterMessage(input, context), - Action: "RebootCacheCluster", - Version: "2015-02-02", + [_A]: _RCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1732,8 +1732,8 @@ export const se_RemoveTagsFromResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveTagsFromResourceMessage(input, context), - Action: "RemoveTagsFromResource", - Version: "2015-02-02", + [_A]: _RTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1749,8 +1749,8 @@ export const se_ResetCacheParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetCacheParameterGroupMessage(input, context), - Action: "ResetCacheParameterGroup", - Version: "2015-02-02", + [_A]: _RCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1766,8 +1766,8 @@ export const se_RevokeCacheSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeCacheSecurityGroupIngressMessage(input, context), - Action: "RevokeCacheSecurityGroupIngress", - Version: "2015-02-02", + [_A]: _RCSGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1783,8 +1783,8 @@ export const se_StartMigrationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartMigrationMessage(input, context), - Action: "StartMigration", - Version: "2015-02-02", + [_A]: _SM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1800,8 +1800,8 @@ export const se_TestFailoverCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TestFailoverMessage(input, context), - Action: "TestFailover", - Version: "2015-02-02", + [_A]: _TF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1817,8 +1817,8 @@ export const se_TestMigrationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TestMigrationMessage(input, context), - Action: "TestMigration", - Version: "2015-02-02", + [_A]: _TM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -7538,12 +7538,12 @@ const de_UserQuotaExceededFaultRes = async ( */ const se_AddTagsToResourceMessage = (input: AddTagsToResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7559,12 +7559,12 @@ const se_AddTagsToResourceMessage = (input: AddTagsToResourceMessage, context: _ */ const se_AuthenticationMode = (input: AuthenticationMode, context: __SerdeContext): any => { const entries: any = {}; - if (input.Type != null) { - entries["Type"] = input.Type; + if (input[_Ty] != null) { + entries[_Ty] = input[_Ty]; } - if (input.Passwords != null) { - const memberEntries = se_PasswordListInput(input.Passwords, context); - if (input.Passwords?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_PasswordListInput(input[_P], context); + if (input[_P]?.length === 0) { entries.Passwords = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7583,14 +7583,14 @@ const se_AuthorizeCacheSecurityGroupIngressMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CacheSecurityGroupName != null) { - entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.EC2SecurityGroupName != null) { - entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName; + if (input[_ECSGN] != null) { + entries[_ECSGN] = input[_ECSGN]; } - if (input.EC2SecurityGroupOwnerId != null) { - entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId; + if (input[_ECSGOI] != null) { + entries[_ECSGOI] = input[_ECSGOI]; } return entries; }; @@ -7616,9 +7616,9 @@ const se_AvailabilityZonesList = (input: string[], context: __SerdeContext): any */ const se_BatchApplyUpdateActionMessage = (input: BatchApplyUpdateActionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupIds != null) { - const memberEntries = se_ReplicationGroupIdList(input.ReplicationGroupIds, context); - if (input.ReplicationGroupIds?.length === 0) { + if (input[_RGI] != null) { + const memberEntries = se_ReplicationGroupIdList(input[_RGI], context); + if (input[_RGI]?.length === 0) { entries.ReplicationGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7626,9 +7626,9 @@ const se_BatchApplyUpdateActionMessage = (input: BatchApplyUpdateActionMessage, entries[loc] = value; }); } - if (input.CacheClusterIds != null) { - const memberEntries = se_CacheClusterIdList(input.CacheClusterIds, context); - if (input.CacheClusterIds?.length === 0) { + if (input[_CCI] != null) { + const memberEntries = se_CacheClusterIdList(input[_CCI], context); + if (input[_CCI]?.length === 0) { entries.CacheClusterIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7636,8 +7636,8 @@ const se_BatchApplyUpdateActionMessage = (input: BatchApplyUpdateActionMessage, entries[loc] = value; }); } - if (input.ServiceUpdateName != null) { - entries["ServiceUpdateName"] = input.ServiceUpdateName; + if (input[_SUN] != null) { + entries[_SUN] = input[_SUN]; } return entries; }; @@ -7647,9 +7647,9 @@ const se_BatchApplyUpdateActionMessage = (input: BatchApplyUpdateActionMessage, */ const se_BatchStopUpdateActionMessage = (input: BatchStopUpdateActionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupIds != null) { - const memberEntries = se_ReplicationGroupIdList(input.ReplicationGroupIds, context); - if (input.ReplicationGroupIds?.length === 0) { + if (input[_RGI] != null) { + const memberEntries = se_ReplicationGroupIdList(input[_RGI], context); + if (input[_RGI]?.length === 0) { entries.ReplicationGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7657,9 +7657,9 @@ const se_BatchStopUpdateActionMessage = (input: BatchStopUpdateActionMessage, co entries[loc] = value; }); } - if (input.CacheClusterIds != null) { - const memberEntries = se_CacheClusterIdList(input.CacheClusterIds, context); - if (input.CacheClusterIds?.length === 0) { + if (input[_CCI] != null) { + const memberEntries = se_CacheClusterIdList(input[_CCI], context); + if (input[_CCI]?.length === 0) { entries.CacheClusterIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7667,8 +7667,8 @@ const se_BatchStopUpdateActionMessage = (input: BatchStopUpdateActionMessage, co entries[loc] = value; }); } - if (input.ServiceUpdateName != null) { - entries["ServiceUpdateName"] = input.ServiceUpdateName; + if (input[_SUN] != null) { + entries[_SUN] = input[_SUN]; } return entries; }; @@ -7726,15 +7726,15 @@ const se_CacheSecurityGroupNameList = (input: string[], context: __SerdeContext) */ const se_CacheUsageLimits = (input: CacheUsageLimits, context: __SerdeContext): any => { const entries: any = {}; - if (input.DataStorage != null) { - const memberEntries = se_DataStorage(input.DataStorage, context); + if (input[_DSa] != null) { + const memberEntries = se_DataStorage(input[_DSa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DataStorage.${key}`; entries[loc] = value; }); } - if (input.ECPUPerSecond != null) { - const memberEntries = se_ECPUPerSecond(input.ECPUPerSecond, context); + if (input[_ECPUPS] != null) { + const memberEntries = se_ECPUPerSecond(input[_ECPUPS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ECPUPerSecond.${key}`; entries[loc] = value; @@ -7748,8 +7748,8 @@ const se_CacheUsageLimits = (input: CacheUsageLimits, context: __SerdeContext): */ const se_CloudWatchLogsDestinationDetails = (input: CloudWatchLogsDestinationDetails, context: __SerdeContext): any => { const entries: any = {}; - if (input.LogGroup != null) { - entries["LogGroup"] = input.LogGroup; + if (input[_LG] != null) { + entries[_LG] = input[_LG]; } return entries; }; @@ -7759,11 +7759,11 @@ const se_CloudWatchLogsDestinationDetails = (input: CloudWatchLogsDestinationDet */ const se_CompleteMigrationMessage = (input: CompleteMigrationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } return entries; }; @@ -7773,15 +7773,15 @@ const se_CompleteMigrationMessage = (input: CompleteMigrationMessage, context: _ */ const se_ConfigureShard = (input: ConfigureShard, context: __SerdeContext): any => { const entries: any = {}; - if (input.NodeGroupId != null) { - entries["NodeGroupId"] = input.NodeGroupId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.NewReplicaCount != null) { - entries["NewReplicaCount"] = input.NewReplicaCount; + if (input[_NRC] != null) { + entries[_NRC] = input[_NRC]; } - if (input.PreferredAvailabilityZones != null) { - const memberEntries = se_PreferredAvailabilityZoneList(input.PreferredAvailabilityZones, context); - if (input.PreferredAvailabilityZones?.length === 0) { + if (input[_PAZ] != null) { + const memberEntries = se_PreferredAvailabilityZoneList(input[_PAZ], context); + if (input[_PAZ]?.length === 0) { entries.PreferredAvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7789,9 +7789,9 @@ const se_ConfigureShard = (input: ConfigureShard, context: __SerdeContext): any entries[loc] = value; }); } - if (input.PreferredOutpostArns != null) { - const memberEntries = se_PreferredOutpostArnList(input.PreferredOutpostArns, context); - if (input.PreferredOutpostArns?.length === 0) { + if (input[_POA] != null) { + const memberEntries = se_PreferredOutpostArnList(input[_POA], context); + if (input[_POA]?.length === 0) { entries.PreferredOutpostArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7810,18 +7810,18 @@ const se_CopyServerlessCacheSnapshotRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SourceServerlessCacheSnapshotName != null) { - entries["SourceServerlessCacheSnapshotName"] = input.SourceServerlessCacheSnapshotName; + if (input[_SSCSN] != null) { + entries[_SSCSN] = input[_SSCSN]; } - if (input.TargetServerlessCacheSnapshotName != null) { - entries["TargetServerlessCacheSnapshotName"] = input.TargetServerlessCacheSnapshotName; + if (input[_TSCSN] != null) { + entries[_TSCSN] = input[_TSCSN]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7837,21 +7837,21 @@ const se_CopyServerlessCacheSnapshotRequest = ( */ const se_CopySnapshotMessage = (input: CopySnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceSnapshotName != null) { - entries["SourceSnapshotName"] = input.SourceSnapshotName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.TargetSnapshotName != null) { - entries["TargetSnapshotName"] = input.TargetSnapshotName; + if (input[_TSN] != null) { + entries[_TSN] = input[_TSN]; } - if (input.TargetBucket != null) { - entries["TargetBucket"] = input.TargetBucket; + if (input[_TB] != null) { + entries[_TB] = input[_TB]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7867,21 +7867,21 @@ const se_CopySnapshotMessage = (input: CopySnapshotMessage, context: __SerdeCont */ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.AZMode != null) { - entries["AZMode"] = input.AZMode; + if (input[_AZM] != null) { + entries[_AZM] = input[_AZM]; } - if (input.PreferredAvailabilityZone != null) { - entries["PreferredAvailabilityZone"] = input.PreferredAvailabilityZone; + if (input[_PAZr] != null) { + entries[_PAZr] = input[_PAZr]; } - if (input.PreferredAvailabilityZones != null) { - const memberEntries = se_PreferredAvailabilityZoneList(input.PreferredAvailabilityZones, context); - if (input.PreferredAvailabilityZones?.length === 0) { + if (input[_PAZ] != null) { + const memberEntries = se_PreferredAvailabilityZoneList(input[_PAZ], context); + if (input[_PAZ]?.length === 0) { entries.PreferredAvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7889,27 +7889,27 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: entries[loc] = value; }); } - if (input.NumCacheNodes != null) { - entries["NumCacheNodes"] = input.NumCacheNodes; + if (input[_NCN] != null) { + entries[_NCN] = input[_NCN]; } - if (input.CacheNodeType != null) { - entries["CacheNodeType"] = input.CacheNodeType; + if (input[_CNT] != null) { + entries[_CNT] = input[_CNT]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.CacheSubnetGroupName != null) { - entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName; + if (input[_CSGNa] != null) { + entries[_CSGNa] = input[_CSGNa]; } - if (input.CacheSecurityGroupNames != null) { - const memberEntries = se_CacheSecurityGroupNameList(input.CacheSecurityGroupNames, context); - if (input.CacheSecurityGroupNames?.length === 0) { + if (input[_CSGNac] != null) { + const memberEntries = se_CacheSecurityGroupNameList(input[_CSGNac], context); + if (input[_CSGNac]?.length === 0) { entries.CacheSecurityGroupNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7917,9 +7917,9 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: entries[loc] = value; }); } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdsList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdsList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7927,9 +7927,9 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7937,9 +7937,9 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: entries[loc] = value; }); } - if (input.SnapshotArns != null) { - const memberEntries = se_SnapshotArnsList(input.SnapshotArns, context); - if (input.SnapshotArns?.length === 0) { + if (input[_SA] != null) { + const memberEntries = se_SnapshotArnsList(input[_SA], context); + if (input[_SA]?.length === 0) { entries.SnapshotArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7947,39 +7947,39 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: entries[loc] = value; }); } - if (input.SnapshotName != null) { - entries["SnapshotName"] = input.SnapshotName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.NotificationTopicArn != null) { - entries["NotificationTopicArn"] = input.NotificationTopicArn; + if (input[_NTA] != null) { + entries[_NTA] = input[_NTA]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.SnapshotRetentionLimit != null) { - entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit; + if (input[_SRL] != null) { + entries[_SRL] = input[_SRL]; } - if (input.SnapshotWindow != null) { - entries["SnapshotWindow"] = input.SnapshotWindow; + if (input[_SW] != null) { + entries[_SW] = input[_SW]; } - if (input.AuthToken != null) { - entries["AuthToken"] = input.AuthToken; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.OutpostMode != null) { - entries["OutpostMode"] = input.OutpostMode; + if (input[_OM] != null) { + entries[_OM] = input[_OM]; } - if (input.PreferredOutpostArn != null) { - entries["PreferredOutpostArn"] = input.PreferredOutpostArn; + if (input[_POAr] != null) { + entries[_POAr] = input[_POAr]; } - if (input.PreferredOutpostArns != null) { - const memberEntries = se_PreferredOutpostArnList(input.PreferredOutpostArns, context); - if (input.PreferredOutpostArns?.length === 0) { + if (input[_POA] != null) { + const memberEntries = se_PreferredOutpostArnList(input[_POA], context); + if (input[_POA]?.length === 0) { entries.PreferredOutpostArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7987,9 +7987,9 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: entries[loc] = value; }); } - if (input.LogDeliveryConfigurations != null) { - const memberEntries = se_LogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context); - if (input.LogDeliveryConfigurations?.length === 0) { + if (input[_LDC] != null) { + const memberEntries = se_LogDeliveryConfigurationRequestList(input[_LDC], context); + if (input[_LDC]?.length === 0) { entries.LogDeliveryConfigurations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7997,14 +7997,14 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: entries[loc] = value; }); } - if (input.TransitEncryptionEnabled != null) { - entries["TransitEncryptionEnabled"] = input.TransitEncryptionEnabled; + if (input[_TEE] != null) { + entries[_TEE] = input[_TEE]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.IpDiscovery != null) { - entries["IpDiscovery"] = input.IpDiscovery; + if (input[_ID] != null) { + entries[_ID] = input[_ID]; } return entries; }; @@ -8014,18 +8014,18 @@ const se_CreateCacheClusterMessage = (input: CreateCacheClusterMessage, context: */ const se_CreateCacheParameterGroupMessage = (input: CreateCacheParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.CacheParameterGroupFamily != null) { - entries["CacheParameterGroupFamily"] = input.CacheParameterGroupFamily; + if (input[_CPGF] != null) { + entries[_CPGF] = input[_CPGF]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8041,15 +8041,15 @@ const se_CreateCacheParameterGroupMessage = (input: CreateCacheParameterGroupMes */ const se_CreateCacheSecurityGroupMessage = (input: CreateCacheSecurityGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheSecurityGroupName != null) { - entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8065,15 +8065,15 @@ const se_CreateCacheSecurityGroupMessage = (input: CreateCacheSecurityGroupMessa */ const se_CreateCacheSubnetGroupMessage = (input: CreateCacheSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheSubnetGroupName != null) { - entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName; + if (input[_CSGNa] != null) { + entries[_CSGNa] = input[_CSGNa]; } - if (input.CacheSubnetGroupDescription != null) { - entries["CacheSubnetGroupDescription"] = input.CacheSubnetGroupDescription; + if (input[_CSGD] != null) { + entries[_CSGD] = input[_CSGD]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SI] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SI], context); + if (input[_SI]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8081,9 +8081,9 @@ const se_CreateCacheSubnetGroupMessage = (input: CreateCacheSubnetGroupMessage, entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8102,14 +8102,14 @@ const se_CreateGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupIdSuffix != null) { - entries["GlobalReplicationGroupIdSuffix"] = input.GlobalReplicationGroupIdSuffix; + if (input[_GRGIS] != null) { + entries[_GRGIS] = input[_GRGIS]; } - if (input.GlobalReplicationGroupDescription != null) { - entries["GlobalReplicationGroupDescription"] = input.GlobalReplicationGroupDescription; + if (input[_GRGD] != null) { + entries[_GRGD] = input[_GRGD]; } - if (input.PrimaryReplicationGroupId != null) { - entries["PrimaryReplicationGroupId"] = input.PrimaryReplicationGroupId; + if (input[_PRGI] != null) { + entries[_PRGI] = input[_PRGI]; } return entries; }; @@ -8119,30 +8119,30 @@ const se_CreateGlobalReplicationGroupMessage = ( */ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.ReplicationGroupDescription != null) { - entries["ReplicationGroupDescription"] = input.ReplicationGroupDescription; + if (input[_RGD] != null) { + entries[_RGD] = input[_RGD]; } - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.PrimaryClusterId != null) { - entries["PrimaryClusterId"] = input.PrimaryClusterId; + if (input[_PCI] != null) { + entries[_PCI] = input[_PCI]; } - if (input.AutomaticFailoverEnabled != null) { - entries["AutomaticFailoverEnabled"] = input.AutomaticFailoverEnabled; + if (input[_AFE] != null) { + entries[_AFE] = input[_AFE]; } - if (input.MultiAZEnabled != null) { - entries["MultiAZEnabled"] = input.MultiAZEnabled; + if (input[_MAZE] != null) { + entries[_MAZE] = input[_MAZE]; } - if (input.NumCacheClusters != null) { - entries["NumCacheClusters"] = input.NumCacheClusters; + if (input[_NCC] != null) { + entries[_NCC] = input[_NCC]; } - if (input.PreferredCacheClusterAZs != null) { - const memberEntries = se_AvailabilityZonesList(input.PreferredCacheClusterAZs, context); - if (input.PreferredCacheClusterAZs?.length === 0) { + if (input[_PCCAZ] != null) { + const memberEntries = se_AvailabilityZonesList(input[_PCCAZ], context); + if (input[_PCCAZ]?.length === 0) { entries.PreferredCacheClusterAZs = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8150,15 +8150,15 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.NumNodeGroups != null) { - entries["NumNodeGroups"] = input.NumNodeGroups; + if (input[_NNG] != null) { + entries[_NNG] = input[_NNG]; } - if (input.ReplicasPerNodeGroup != null) { - entries["ReplicasPerNodeGroup"] = input.ReplicasPerNodeGroup; + if (input[_RPNG] != null) { + entries[_RPNG] = input[_RPNG]; } - if (input.NodeGroupConfiguration != null) { - const memberEntries = se_NodeGroupConfigurationList(input.NodeGroupConfiguration, context); - if (input.NodeGroupConfiguration?.length === 0) { + if (input[_NGC] != null) { + const memberEntries = se_NodeGroupConfigurationList(input[_NGC], context); + if (input[_NGC]?.length === 0) { entries.NodeGroupConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8166,24 +8166,24 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.CacheNodeType != null) { - entries["CacheNodeType"] = input.CacheNodeType; + if (input[_CNT] != null) { + entries[_CNT] = input[_CNT]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.CacheSubnetGroupName != null) { - entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName; + if (input[_CSGNa] != null) { + entries[_CSGNa] = input[_CSGNa]; } - if (input.CacheSecurityGroupNames != null) { - const memberEntries = se_CacheSecurityGroupNameList(input.CacheSecurityGroupNames, context); - if (input.CacheSecurityGroupNames?.length === 0) { + if (input[_CSGNac] != null) { + const memberEntries = se_CacheSecurityGroupNameList(input[_CSGNac], context); + if (input[_CSGNac]?.length === 0) { entries.CacheSecurityGroupNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8191,9 +8191,9 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdsList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdsList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8201,9 +8201,9 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8211,9 +8211,9 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.SnapshotArns != null) { - const memberEntries = se_SnapshotArnsList(input.SnapshotArns, context); - if (input.SnapshotArns?.length === 0) { + if (input[_SA] != null) { + const memberEntries = se_SnapshotArnsList(input[_SA], context); + if (input[_SA]?.length === 0) { entries.SnapshotArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8221,42 +8221,42 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.SnapshotName != null) { - entries["SnapshotName"] = input.SnapshotName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } - if (input.NotificationTopicArn != null) { - entries["NotificationTopicArn"] = input.NotificationTopicArn; + if (input[_NTA] != null) { + entries[_NTA] = input[_NTA]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.SnapshotRetentionLimit != null) { - entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit; + if (input[_SRL] != null) { + entries[_SRL] = input[_SRL]; } - if (input.SnapshotWindow != null) { - entries["SnapshotWindow"] = input.SnapshotWindow; + if (input[_SW] != null) { + entries[_SW] = input[_SW]; } - if (input.AuthToken != null) { - entries["AuthToken"] = input.AuthToken; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.TransitEncryptionEnabled != null) { - entries["TransitEncryptionEnabled"] = input.TransitEncryptionEnabled; + if (input[_TEE] != null) { + entries[_TEE] = input[_TEE]; } - if (input.AtRestEncryptionEnabled != null) { - entries["AtRestEncryptionEnabled"] = input.AtRestEncryptionEnabled; + if (input[_AREE] != null) { + entries[_AREE] = input[_AREE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.UserGroupIds != null) { - const memberEntries = se_UserGroupIdListInput(input.UserGroupIds, context); - if (input.UserGroupIds?.length === 0) { + if (input[_UGI] != null) { + const memberEntries = se_UserGroupIdListInput(input[_UGI], context); + if (input[_UGI]?.length === 0) { entries.UserGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8264,9 +8264,9 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.LogDeliveryConfigurations != null) { - const memberEntries = se_LogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context); - if (input.LogDeliveryConfigurations?.length === 0) { + if (input[_LDC] != null) { + const memberEntries = se_LogDeliveryConfigurationRequestList(input[_LDC], context); + if (input[_LDC]?.length === 0) { entries.LogDeliveryConfigurations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8274,23 +8274,23 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, entries[loc] = value; }); } - if (input.DataTieringEnabled != null) { - entries["DataTieringEnabled"] = input.DataTieringEnabled; + if (input[_DTE] != null) { + entries[_DTE] = input[_DTE]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.IpDiscovery != null) { - entries["IpDiscovery"] = input.IpDiscovery; + if (input[_ID] != null) { + entries[_ID] = input[_ID]; } - if (input.TransitEncryptionMode != null) { - entries["TransitEncryptionMode"] = input.TransitEncryptionMode; + if (input[_TEM] != null) { + entries[_TEM] = input[_TEM]; } - if (input.ClusterMode != null) { - entries["ClusterMode"] = input.ClusterMode; + if (input[_CMl] != null) { + entries[_CMl] = input[_CMl]; } - if (input.ServerlessCacheSnapshotName != null) { - entries["ServerlessCacheSnapshotName"] = input.ServerlessCacheSnapshotName; + if (input[_SCSN] != null) { + entries[_SCSN] = input[_SCSN]; } return entries; }; @@ -8300,31 +8300,31 @@ const se_CreateReplicationGroupMessage = (input: CreateReplicationGroupMessage, */ const se_CreateServerlessCacheRequest = (input: CreateServerlessCacheRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerlessCacheName != null) { - entries["ServerlessCacheName"] = input.ServerlessCacheName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.MajorEngineVersion != null) { - entries["MajorEngineVersion"] = input.MajorEngineVersion; + if (input[_MEV] != null) { + entries[_MEV] = input[_MEV]; } - if (input.CacheUsageLimits != null) { - const memberEntries = se_CacheUsageLimits(input.CacheUsageLimits, context); + if (input[_CUL] != null) { + const memberEntries = se_CacheUsageLimits(input[_CUL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CacheUsageLimits.${key}`; entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdsList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdsList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8332,9 +8332,9 @@ const se_CreateServerlessCacheRequest = (input: CreateServerlessCacheRequest, co entries[loc] = value; }); } - if (input.SnapshotArnsToRestore != null) { - const memberEntries = se_SnapshotArnsList(input.SnapshotArnsToRestore, context); - if (input.SnapshotArnsToRestore?.length === 0) { + if (input[_SATR] != null) { + const memberEntries = se_SnapshotArnsList(input[_SATR], context); + if (input[_SATR]?.length === 0) { entries.SnapshotArnsToRestore = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8342,9 +8342,9 @@ const se_CreateServerlessCacheRequest = (input: CreateServerlessCacheRequest, co entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8352,12 +8352,12 @@ const se_CreateServerlessCacheRequest = (input: CreateServerlessCacheRequest, co entries[loc] = value; }); } - if (input.UserGroupId != null) { - entries["UserGroupId"] = input.UserGroupId; + if (input[_UGIs] != null) { + entries[_UGIs] = input[_UGIs]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdsList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SI] != null) { + const memberEntries = se_SubnetIdsList(input[_SI], context); + if (input[_SI]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8365,11 +8365,11 @@ const se_CreateServerlessCacheRequest = (input: CreateServerlessCacheRequest, co entries[loc] = value; }); } - if (input.SnapshotRetentionLimit != null) { - entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit; + if (input[_SRL] != null) { + entries[_SRL] = input[_SRL]; } - if (input.DailySnapshotTime != null) { - entries["DailySnapshotTime"] = input.DailySnapshotTime; + if (input[_DST] != null) { + entries[_DST] = input[_DST]; } return entries; }; @@ -8382,18 +8382,18 @@ const se_CreateServerlessCacheSnapshotRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ServerlessCacheSnapshotName != null) { - entries["ServerlessCacheSnapshotName"] = input.ServerlessCacheSnapshotName; + if (input[_SCSN] != null) { + entries[_SCSN] = input[_SCSN]; } - if (input.ServerlessCacheName != null) { - entries["ServerlessCacheName"] = input.ServerlessCacheName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8409,21 +8409,21 @@ const se_CreateServerlessCacheSnapshotRequest = ( */ const se_CreateSnapshotMessage = (input: CreateSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.SnapshotName != null) { - entries["SnapshotName"] = input.SnapshotName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8439,15 +8439,15 @@ const se_CreateSnapshotMessage = (input: CreateSnapshotMessage, context: __Serde */ const se_CreateUserGroupMessage = (input: CreateUserGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserGroupId != null) { - entries["UserGroupId"] = input.UserGroupId; + if (input[_UGIs] != null) { + entries[_UGIs] = input[_UGIs]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.UserIds != null) { - const memberEntries = se_UserIdListInput(input.UserIds, context); - if (input.UserIds?.length === 0) { + if (input[_UI] != null) { + const memberEntries = se_UserIdListInput(input[_UI], context); + if (input[_UI]?.length === 0) { entries.UserIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8455,9 +8455,9 @@ const se_CreateUserGroupMessage = (input: CreateUserGroupMessage, context: __Ser entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8473,18 +8473,18 @@ const se_CreateUserGroupMessage = (input: CreateUserGroupMessage, context: __Ser */ const se_CreateUserMessage = (input: CreateUserMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.Passwords != null) { - const memberEntries = se_PasswordListInput(input.Passwords, context); - if (input.Passwords?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_PasswordListInput(input[_P], context); + if (input[_P]?.length === 0) { entries.Passwords = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8492,15 +8492,15 @@ const se_CreateUserMessage = (input: CreateUserMessage, context: __SerdeContext) entries[loc] = value; }); } - if (input.AccessString != null) { - entries["AccessString"] = input.AccessString; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.NoPasswordRequired != null) { - entries["NoPasswordRequired"] = input.NoPasswordRequired; + if (input[_NPR] != null) { + entries[_NPR] = input[_NPR]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8508,8 +8508,8 @@ const se_CreateUserMessage = (input: CreateUserMessage, context: __SerdeContext) entries[loc] = value; }); } - if (input.AuthenticationMode != null) { - const memberEntries = se_AuthenticationMode(input.AuthenticationMode, context); + if (input[_AM] != null) { + const memberEntries = se_AuthenticationMode(input[_AM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AuthenticationMode.${key}`; entries[loc] = value; @@ -8523,11 +8523,11 @@ const se_CreateUserMessage = (input: CreateUserMessage, context: __SerdeContext) */ const se_CustomerNodeEndpoint = (input: CustomerNodeEndpoint, context: __SerdeContext): any => { const entries: any = {}; - if (input.Address != null) { - entries["Address"] = input.Address; + if (input[_Ad] != null) { + entries[_Ad] = input[_Ad]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } return entries; }; @@ -8556,11 +8556,11 @@ const se_CustomerNodeEndpointList = (input: CustomerNodeEndpoint[], context: __S */ const se_DataStorage = (input: DataStorage, context: __SerdeContext): any => { const entries: any = {}; - if (input.Maximum != null) { - entries["Maximum"] = input.Maximum; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Unit != null) { - entries["Unit"] = input.Unit; + if (input[_U] != null) { + entries[_U] = input[_U]; } return entries; }; @@ -8573,15 +8573,15 @@ const se_DecreaseNodeGroupsInGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.NodeGroupCount != null) { - entries["NodeGroupCount"] = input.NodeGroupCount; + if (input[_NGCo] != null) { + entries[_NGCo] = input[_NGCo]; } - if (input.GlobalNodeGroupsToRemove != null) { - const memberEntries = se_GlobalNodeGroupIdList(input.GlobalNodeGroupsToRemove, context); - if (input.GlobalNodeGroupsToRemove?.length === 0) { + if (input[_GNGTR] != null) { + const memberEntries = se_GlobalNodeGroupIdList(input[_GNGTR], context); + if (input[_GNGTR]?.length === 0) { entries.GlobalNodeGroupsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8589,9 +8589,9 @@ const se_DecreaseNodeGroupsInGlobalReplicationGroupMessage = ( entries[loc] = value; }); } - if (input.GlobalNodeGroupsToRetain != null) { - const memberEntries = se_GlobalNodeGroupIdList(input.GlobalNodeGroupsToRetain, context); - if (input.GlobalNodeGroupsToRetain?.length === 0) { + if (input[_GNGTRl] != null) { + const memberEntries = se_GlobalNodeGroupIdList(input[_GNGTRl], context); + if (input[_GNGTRl]?.length === 0) { entries.GlobalNodeGroupsToRetain = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8599,8 +8599,8 @@ const se_DecreaseNodeGroupsInGlobalReplicationGroupMessage = ( entries[loc] = value; }); } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -8610,15 +8610,15 @@ const se_DecreaseNodeGroupsInGlobalReplicationGroupMessage = ( */ const se_DecreaseReplicaCountMessage = (input: DecreaseReplicaCountMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.NewReplicaCount != null) { - entries["NewReplicaCount"] = input.NewReplicaCount; + if (input[_NRC] != null) { + entries[_NRC] = input[_NRC]; } - if (input.ReplicaConfiguration != null) { - const memberEntries = se_ReplicaConfigurationList(input.ReplicaConfiguration, context); - if (input.ReplicaConfiguration?.length === 0) { + if (input[_RC] != null) { + const memberEntries = se_ReplicaConfigurationList(input[_RC], context); + if (input[_RC]?.length === 0) { entries.ReplicaConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8626,9 +8626,9 @@ const se_DecreaseReplicaCountMessage = (input: DecreaseReplicaCountMessage, cont entries[loc] = value; }); } - if (input.ReplicasToRemove != null) { - const memberEntries = se_RemoveReplicasList(input.ReplicasToRemove, context); - if (input.ReplicasToRemove?.length === 0) { + if (input[_RTR] != null) { + const memberEntries = se_RemoveReplicasList(input[_RTR], context); + if (input[_RTR]?.length === 0) { entries.ReplicasToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8636,8 +8636,8 @@ const se_DecreaseReplicaCountMessage = (input: DecreaseReplicaCountMessage, cont entries[loc] = value; }); } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -8647,11 +8647,11 @@ const se_DecreaseReplicaCountMessage = (input: DecreaseReplicaCountMessage, cont */ const se_DeleteCacheClusterMessage = (input: DeleteCacheClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.FinalSnapshotIdentifier != null) { - entries["FinalSnapshotIdentifier"] = input.FinalSnapshotIdentifier; + if (input[_FSI] != null) { + entries[_FSI] = input[_FSI]; } return entries; }; @@ -8661,8 +8661,8 @@ const se_DeleteCacheClusterMessage = (input: DeleteCacheClusterMessage, context: */ const se_DeleteCacheParameterGroupMessage = (input: DeleteCacheParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } return entries; }; @@ -8672,8 +8672,8 @@ const se_DeleteCacheParameterGroupMessage = (input: DeleteCacheParameterGroupMes */ const se_DeleteCacheSecurityGroupMessage = (input: DeleteCacheSecurityGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheSecurityGroupName != null) { - entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } return entries; }; @@ -8683,8 +8683,8 @@ const se_DeleteCacheSecurityGroupMessage = (input: DeleteCacheSecurityGroupMessa */ const se_DeleteCacheSubnetGroupMessage = (input: DeleteCacheSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheSubnetGroupName != null) { - entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName; + if (input[_CSGNa] != null) { + entries[_CSGNa] = input[_CSGNa]; } return entries; }; @@ -8697,11 +8697,11 @@ const se_DeleteGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.RetainPrimaryReplicationGroup != null) { - entries["RetainPrimaryReplicationGroup"] = input.RetainPrimaryReplicationGroup; + if (input[_RPRG] != null) { + entries[_RPRG] = input[_RPRG]; } return entries; }; @@ -8711,14 +8711,14 @@ const se_DeleteGlobalReplicationGroupMessage = ( */ const se_DeleteReplicationGroupMessage = (input: DeleteReplicationGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.RetainPrimaryCluster != null) { - entries["RetainPrimaryCluster"] = input.RetainPrimaryCluster; + if (input[_RPC] != null) { + entries[_RPC] = input[_RPC]; } - if (input.FinalSnapshotIdentifier != null) { - entries["FinalSnapshotIdentifier"] = input.FinalSnapshotIdentifier; + if (input[_FSI] != null) { + entries[_FSI] = input[_FSI]; } return entries; }; @@ -8728,11 +8728,11 @@ const se_DeleteReplicationGroupMessage = (input: DeleteReplicationGroupMessage, */ const se_DeleteServerlessCacheRequest = (input: DeleteServerlessCacheRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerlessCacheName != null) { - entries["ServerlessCacheName"] = input.ServerlessCacheName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.FinalSnapshotName != null) { - entries["FinalSnapshotName"] = input.FinalSnapshotName; + if (input[_FSN] != null) { + entries[_FSN] = input[_FSN]; } return entries; }; @@ -8745,8 +8745,8 @@ const se_DeleteServerlessCacheSnapshotRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ServerlessCacheSnapshotName != null) { - entries["ServerlessCacheSnapshotName"] = input.ServerlessCacheSnapshotName; + if (input[_SCSN] != null) { + entries[_SCSN] = input[_SCSN]; } return entries; }; @@ -8756,8 +8756,8 @@ const se_DeleteServerlessCacheSnapshotRequest = ( */ const se_DeleteSnapshotMessage = (input: DeleteSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotName != null) { - entries["SnapshotName"] = input.SnapshotName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -8767,8 +8767,8 @@ const se_DeleteSnapshotMessage = (input: DeleteSnapshotMessage, context: __Serde */ const se_DeleteUserGroupMessage = (input: DeleteUserGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserGroupId != null) { - entries["UserGroupId"] = input.UserGroupId; + if (input[_UGIs] != null) { + entries[_UGIs] = input[_UGIs]; } return entries; }; @@ -8778,8 +8778,8 @@ const se_DeleteUserGroupMessage = (input: DeleteUserGroupMessage, context: __Ser */ const se_DeleteUserMessage = (input: DeleteUserMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } return entries; }; @@ -8789,20 +8789,20 @@ const se_DeleteUserMessage = (input: DeleteUserMessage, context: __SerdeContext) */ const se_DescribeCacheClustersMessage = (input: DescribeCacheClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.ShowCacheNodeInfo != null) { - entries["ShowCacheNodeInfo"] = input.ShowCacheNodeInfo; + if (input[_SCNI] != null) { + entries[_SCNI] = input[_SCNI]; } - if (input.ShowCacheClustersNotInReplicationGroups != null) { - entries["ShowCacheClustersNotInReplicationGroups"] = input.ShowCacheClustersNotInReplicationGroups; + if (input[_SCCNIRG] != null) { + entries[_SCCNIRG] = input[_SCCNIRG]; } return entries; }; @@ -8815,23 +8815,23 @@ const se_DescribeCacheEngineVersionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.CacheParameterGroupFamily != null) { - entries["CacheParameterGroupFamily"] = input.CacheParameterGroupFamily; + if (input[_CPGF] != null) { + entries[_CPGF] = input[_CPGF]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.DefaultOnly != null) { - entries["DefaultOnly"] = input.DefaultOnly; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } return entries; }; @@ -8844,14 +8844,14 @@ const se_DescribeCacheParameterGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -8861,17 +8861,17 @@ const se_DescribeCacheParameterGroupsMessage = ( */ const se_DescribeCacheParametersMessage = (input: DescribeCacheParametersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -8884,14 +8884,14 @@ const se_DescribeCacheSecurityGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CacheSecurityGroupName != null) { - entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -8901,14 +8901,14 @@ const se_DescribeCacheSecurityGroupsMessage = ( */ const se_DescribeCacheSubnetGroupsMessage = (input: DescribeCacheSubnetGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheSubnetGroupName != null) { - entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName; + if (input[_CSGNa] != null) { + entries[_CSGNa] = input[_CSGNa]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -8921,14 +8921,14 @@ const se_DescribeEngineDefaultParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CacheParameterGroupFamily != null) { - entries["CacheParameterGroupFamily"] = input.CacheParameterGroupFamily; + if (input[_CPGF] != null) { + entries[_CPGF] = input[_CPGF]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -8938,26 +8938,26 @@ const se_DescribeEngineDefaultParametersMessage = ( */ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SIo] != null) { + entries[_SIo] = input[_SIo]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -8970,17 +8970,17 @@ const se_DescribeGlobalReplicationGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.ShowMemberInfo != null) { - entries["ShowMemberInfo"] = input.ShowMemberInfo; + if (input[_SMI] != null) { + entries[_SMI] = input[_SMI]; } return entries; }; @@ -8990,14 +8990,14 @@ const se_DescribeGlobalReplicationGroupsMessage = ( */ const se_DescribeReplicationGroupsMessage = (input: DescribeReplicationGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -9010,29 +9010,29 @@ const se_DescribeReservedCacheNodesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedCacheNodeId != null) { - entries["ReservedCacheNodeId"] = input.ReservedCacheNodeId; + if (input[_RCNI] != null) { + entries[_RCNI] = input[_RCNI]; } - if (input.ReservedCacheNodesOfferingId != null) { - entries["ReservedCacheNodesOfferingId"] = input.ReservedCacheNodesOfferingId; + if (input[_RCNOI] != null) { + entries[_RCNOI] = input[_RCNOI]; } - if (input.CacheNodeType != null) { - entries["CacheNodeType"] = input.CacheNodeType; + if (input[_CNT] != null) { + entries[_CNT] = input[_CNT]; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.ProductDescription != null) { - entries["ProductDescription"] = input.ProductDescription; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.OfferingType != null) { - entries["OfferingType"] = input.OfferingType; + if (input[_OT] != null) { + entries[_OT] = input[_OT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -9045,26 +9045,26 @@ const se_DescribeReservedCacheNodesOfferingsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedCacheNodesOfferingId != null) { - entries["ReservedCacheNodesOfferingId"] = input.ReservedCacheNodesOfferingId; + if (input[_RCNOI] != null) { + entries[_RCNOI] = input[_RCNOI]; } - if (input.CacheNodeType != null) { - entries["CacheNodeType"] = input.CacheNodeType; + if (input[_CNT] != null) { + entries[_CNT] = input[_CNT]; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.ProductDescription != null) { - entries["ProductDescription"] = input.ProductDescription; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.OfferingType != null) { - entries["OfferingType"] = input.OfferingType; + if (input[_OT] != null) { + entries[_OT] = input[_OT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -9077,20 +9077,20 @@ const se_DescribeServerlessCacheSnapshotsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ServerlessCacheName != null) { - entries["ServerlessCacheName"] = input.ServerlessCacheName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.ServerlessCacheSnapshotName != null) { - entries["ServerlessCacheSnapshotName"] = input.ServerlessCacheSnapshotName; + if (input[_SCSN] != null) { + entries[_SCSN] = input[_SCSN]; } - if (input.SnapshotType != null) { - entries["SnapshotType"] = input.SnapshotType; + if (input[_STn] != null) { + entries[_STn] = input[_STn]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NTe] != null) { + entries[_NTe] = input[_NTe]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MRa] != null) { + entries[_MRa] = input[_MRa]; } return entries; }; @@ -9100,14 +9100,14 @@ const se_DescribeServerlessCacheSnapshotsRequest = ( */ const se_DescribeServerlessCachesRequest = (input: DescribeServerlessCachesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerlessCacheName != null) { - entries["ServerlessCacheName"] = input.ServerlessCacheName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MRa] != null) { + entries[_MRa] = input[_MRa]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NTe] != null) { + entries[_NTe] = input[_NTe]; } return entries; }; @@ -9117,12 +9117,12 @@ const se_DescribeServerlessCachesRequest = (input: DescribeServerlessCachesReque */ const se_DescribeServiceUpdatesMessage = (input: DescribeServiceUpdatesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServiceUpdateName != null) { - entries["ServiceUpdateName"] = input.ServiceUpdateName; + if (input[_SUN] != null) { + entries[_SUN] = input[_SUN]; } - if (input.ServiceUpdateStatus != null) { - const memberEntries = se_ServiceUpdateStatusList(input.ServiceUpdateStatus, context); - if (input.ServiceUpdateStatus?.length === 0) { + if (input[_SUS] != null) { + const memberEntries = se_ServiceUpdateStatusList(input[_SUS], context); + if (input[_SUS]?.length === 0) { entries.ServiceUpdateStatus = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9130,11 +9130,11 @@ const se_DescribeServiceUpdatesMessage = (input: DescribeServiceUpdatesMessage, entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -9144,26 +9144,26 @@ const se_DescribeServiceUpdatesMessage = (input: DescribeServiceUpdatesMessage, */ const se_DescribeSnapshotsMessage = (input: DescribeSnapshotsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.SnapshotName != null) { - entries["SnapshotName"] = input.SnapshotName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnapshotSource != null) { - entries["SnapshotSource"] = input.SnapshotSource; + if (input[_SS] != null) { + entries[_SS] = input[_SS]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.ShowNodeGroupConfig != null) { - entries["ShowNodeGroupConfig"] = input.ShowNodeGroupConfig; + if (input[_SNGC] != null) { + entries[_SNGC] = input[_SNGC]; } return entries; }; @@ -9173,12 +9173,12 @@ const se_DescribeSnapshotsMessage = (input: DescribeSnapshotsMessage, context: _ */ const se_DescribeUpdateActionsMessage = (input: DescribeUpdateActionsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServiceUpdateName != null) { - entries["ServiceUpdateName"] = input.ServiceUpdateName; + if (input[_SUN] != null) { + entries[_SUN] = input[_SUN]; } - if (input.ReplicationGroupIds != null) { - const memberEntries = se_ReplicationGroupIdList(input.ReplicationGroupIds, context); - if (input.ReplicationGroupIds?.length === 0) { + if (input[_RGI] != null) { + const memberEntries = se_ReplicationGroupIdList(input[_RGI], context); + if (input[_RGI]?.length === 0) { entries.ReplicationGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9186,9 +9186,9 @@ const se_DescribeUpdateActionsMessage = (input: DescribeUpdateActionsMessage, co entries[loc] = value; }); } - if (input.CacheClusterIds != null) { - const memberEntries = se_CacheClusterIdList(input.CacheClusterIds, context); - if (input.CacheClusterIds?.length === 0) { + if (input[_CCI] != null) { + const memberEntries = se_CacheClusterIdList(input[_CCI], context); + if (input[_CCI]?.length === 0) { entries.CacheClusterIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9196,12 +9196,12 @@ const se_DescribeUpdateActionsMessage = (input: DescribeUpdateActionsMessage, co entries[loc] = value; }); } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.ServiceUpdateStatus != null) { - const memberEntries = se_ServiceUpdateStatusList(input.ServiceUpdateStatus, context); - if (input.ServiceUpdateStatus?.length === 0) { + if (input[_SUS] != null) { + const memberEntries = se_ServiceUpdateStatusList(input[_SUS], context); + if (input[_SUS]?.length === 0) { entries.ServiceUpdateStatus = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9209,16 +9209,16 @@ const se_DescribeUpdateActionsMessage = (input: DescribeUpdateActionsMessage, co entries[loc] = value; }); } - if (input.ServiceUpdateTimeRange != null) { - const memberEntries = se_TimeRangeFilter(input.ServiceUpdateTimeRange, context); + if (input[_SUTR] != null) { + const memberEntries = se_TimeRangeFilter(input[_SUTR], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServiceUpdateTimeRange.${key}`; entries[loc] = value; }); } - if (input.UpdateActionStatus != null) { - const memberEntries = se_UpdateActionStatusList(input.UpdateActionStatus, context); - if (input.UpdateActionStatus?.length === 0) { + if (input[_UAS] != null) { + const memberEntries = se_UpdateActionStatusList(input[_UAS], context); + if (input[_UAS]?.length === 0) { entries.UpdateActionStatus = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9226,14 +9226,14 @@ const se_DescribeUpdateActionsMessage = (input: DescribeUpdateActionsMessage, co entries[loc] = value; }); } - if (input.ShowNodeLevelUpdateStatus != null) { - entries["ShowNodeLevelUpdateStatus"] = input.ShowNodeLevelUpdateStatus; + if (input[_SNLUS] != null) { + entries[_SNLUS] = input[_SNLUS]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -9243,14 +9243,14 @@ const se_DescribeUpdateActionsMessage = (input: DescribeUpdateActionsMessage, co */ const se_DescribeUserGroupsMessage = (input: DescribeUserGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserGroupId != null) { - entries["UserGroupId"] = input.UserGroupId; + if (input[_UGIs] != null) { + entries[_UGIs] = input[_UGIs]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -9260,15 +9260,15 @@ const se_DescribeUserGroupsMessage = (input: DescribeUserGroupsMessage, context: */ const se_DescribeUsersMessage = (input: DescribeUsersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9276,11 +9276,11 @@ const se_DescribeUsersMessage = (input: DescribeUsersMessage, context: __SerdeCo entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -9290,15 +9290,15 @@ const se_DescribeUsersMessage = (input: DescribeUsersMessage, context: __SerdeCo */ const se_DestinationDetails = (input: DestinationDetails, context: __SerdeContext): any => { const entries: any = {}; - if (input.CloudWatchLogsDetails != null) { - const memberEntries = se_CloudWatchLogsDestinationDetails(input.CloudWatchLogsDetails, context); + if (input[_CWLD] != null) { + const memberEntries = se_CloudWatchLogsDestinationDetails(input[_CWLD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudWatchLogsDetails.${key}`; entries[loc] = value; }); } - if (input.KinesisFirehoseDetails != null) { - const memberEntries = se_KinesisFirehoseDestinationDetails(input.KinesisFirehoseDetails, context); + if (input[_KFD] != null) { + const memberEntries = se_KinesisFirehoseDestinationDetails(input[_KFD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `KinesisFirehoseDetails.${key}`; entries[loc] = value; @@ -9315,14 +9315,14 @@ const se_DisassociateGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.ReplicationGroupRegion != null) { - entries["ReplicationGroupRegion"] = input.ReplicationGroupRegion; + if (input[_RGR] != null) { + entries[_RGR] = input[_RGR]; } return entries; }; @@ -9332,8 +9332,8 @@ const se_DisassociateGlobalReplicationGroupMessage = ( */ const se_ECPUPerSecond = (input: ECPUPerSecond, context: __SerdeContext): any => { const entries: any = {}; - if (input.Maximum != null) { - entries["Maximum"] = input.Maximum; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -9346,11 +9346,11 @@ const se_ExportServerlessCacheSnapshotRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ServerlessCacheSnapshotName != null) { - entries["ServerlessCacheSnapshotName"] = input.ServerlessCacheSnapshotName; + if (input[_SCSN] != null) { + entries[_SCSN] = input[_SCSN]; } - if (input.S3BucketName != null) { - entries["S3BucketName"] = input.S3BucketName; + if (input[_SBN] != null) { + entries[_SBN] = input[_SBN]; } return entries; }; @@ -9363,14 +9363,14 @@ const se_FailoverGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.PrimaryRegion != null) { - entries["PrimaryRegion"] = input.PrimaryRegion; + if (input[_PR] != null) { + entries[_PR] = input[_PR]; } - if (input.PrimaryReplicationGroupId != null) { - entries["PrimaryReplicationGroupId"] = input.PrimaryReplicationGroupId; + if (input[_PRGI] != null) { + entries[_PRGI] = input[_PRGI]; } return entries; }; @@ -9380,12 +9380,12 @@ const se_FailoverGlobalReplicationGroupMessage = ( */ const se_Filter = (input: Filter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - const memberEntries = se_FilterValueList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_FilterValueList(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9455,15 +9455,15 @@ const se_IncreaseNodeGroupsInGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.NodeGroupCount != null) { - entries["NodeGroupCount"] = input.NodeGroupCount; + if (input[_NGCo] != null) { + entries[_NGCo] = input[_NGCo]; } - if (input.RegionalConfigurations != null) { - const memberEntries = se_RegionalConfigurationList(input.RegionalConfigurations, context); - if (input.RegionalConfigurations?.length === 0) { + if (input[_RCe] != null) { + const memberEntries = se_RegionalConfigurationList(input[_RCe], context); + if (input[_RCe]?.length === 0) { entries.RegionalConfigurations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9471,8 +9471,8 @@ const se_IncreaseNodeGroupsInGlobalReplicationGroupMessage = ( entries[loc] = value; }); } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -9482,15 +9482,15 @@ const se_IncreaseNodeGroupsInGlobalReplicationGroupMessage = ( */ const se_IncreaseReplicaCountMessage = (input: IncreaseReplicaCountMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.NewReplicaCount != null) { - entries["NewReplicaCount"] = input.NewReplicaCount; + if (input[_NRC] != null) { + entries[_NRC] = input[_NRC]; } - if (input.ReplicaConfiguration != null) { - const memberEntries = se_ReplicaConfigurationList(input.ReplicaConfiguration, context); - if (input.ReplicaConfiguration?.length === 0) { + if (input[_RC] != null) { + const memberEntries = se_ReplicaConfigurationList(input[_RC], context); + if (input[_RC]?.length === 0) { entries.ReplicaConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9498,8 +9498,8 @@ const se_IncreaseReplicaCountMessage = (input: IncreaseReplicaCountMessage, cont entries[loc] = value; }); } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -9528,8 +9528,8 @@ const se_KinesisFirehoseDestinationDetails = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DeliveryStream != null) { - entries["DeliveryStream"] = input.DeliveryStream; + if (input[_DSel] != null) { + entries[_DSel] = input[_DSel]; } return entries; }; @@ -9542,11 +9542,11 @@ const se_ListAllowedNodeTypeModificationsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } return entries; }; @@ -9556,8 +9556,8 @@ const se_ListAllowedNodeTypeModificationsMessage = ( */ const se_ListTagsForResourceMessage = (input: ListTagsForResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -9567,24 +9567,24 @@ const se_ListTagsForResourceMessage = (input: ListTagsForResourceMessage, contex */ const se_LogDeliveryConfigurationRequest = (input: LogDeliveryConfigurationRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.LogType != null) { - entries["LogType"] = input.LogType; + if (input[_LT] != null) { + entries[_LT] = input[_LT]; } - if (input.DestinationType != null) { - entries["DestinationType"] = input.DestinationType; + if (input[_DT] != null) { + entries[_DT] = input[_DT]; } - if (input.DestinationDetails != null) { - const memberEntries = se_DestinationDetails(input.DestinationDetails, context); + if (input[_DD] != null) { + const memberEntries = se_DestinationDetails(input[_DD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DestinationDetails.${key}`; entries[loc] = value; }); } - if (input.LogFormat != null) { - entries["LogFormat"] = input.LogFormat; + if (input[_LF] != null) { + entries[_LF] = input[_LF]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -9616,15 +9616,15 @@ const se_LogDeliveryConfigurationRequestList = ( */ const se_ModifyCacheClusterMessage = (input: ModifyCacheClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.NumCacheNodes != null) { - entries["NumCacheNodes"] = input.NumCacheNodes; + if (input[_NCN] != null) { + entries[_NCN] = input[_NCN]; } - if (input.CacheNodeIdsToRemove != null) { - const memberEntries = se_CacheNodeIdsList(input.CacheNodeIdsToRemove, context); - if (input.CacheNodeIdsToRemove?.length === 0) { + if (input[_CNITR] != null) { + const memberEntries = se_CacheNodeIdsList(input[_CNITR], context); + if (input[_CNITR]?.length === 0) { entries.CacheNodeIdsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9632,12 +9632,12 @@ const se_ModifyCacheClusterMessage = (input: ModifyCacheClusterMessage, context: entries[loc] = value; }); } - if (input.AZMode != null) { - entries["AZMode"] = input.AZMode; + if (input[_AZM] != null) { + entries[_AZM] = input[_AZM]; } - if (input.NewAvailabilityZones != null) { - const memberEntries = se_PreferredAvailabilityZoneList(input.NewAvailabilityZones, context); - if (input.NewAvailabilityZones?.length === 0) { + if (input[_NAZ] != null) { + const memberEntries = se_PreferredAvailabilityZoneList(input[_NAZ], context); + if (input[_NAZ]?.length === 0) { entries.NewAvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9645,9 +9645,9 @@ const se_ModifyCacheClusterMessage = (input: ModifyCacheClusterMessage, context: entries[loc] = value; }); } - if (input.CacheSecurityGroupNames != null) { - const memberEntries = se_CacheSecurityGroupNameList(input.CacheSecurityGroupNames, context); - if (input.CacheSecurityGroupNames?.length === 0) { + if (input[_CSGNac] != null) { + const memberEntries = se_CacheSecurityGroupNameList(input[_CSGNac], context); + if (input[_CSGNac]?.length === 0) { entries.CacheSecurityGroupNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9655,9 +9655,9 @@ const se_ModifyCacheClusterMessage = (input: ModifyCacheClusterMessage, context: entries[loc] = value; }); } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdsList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdsList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9665,45 +9665,45 @@ const se_ModifyCacheClusterMessage = (input: ModifyCacheClusterMessage, context: entries[loc] = value; }); } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.NotificationTopicArn != null) { - entries["NotificationTopicArn"] = input.NotificationTopicArn; + if (input[_NTA] != null) { + entries[_NTA] = input[_NTA]; } - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.NotificationTopicStatus != null) { - entries["NotificationTopicStatus"] = input.NotificationTopicStatus; + if (input[_NTS] != null) { + entries[_NTS] = input[_NTS]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.SnapshotRetentionLimit != null) { - entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit; + if (input[_SRL] != null) { + entries[_SRL] = input[_SRL]; } - if (input.SnapshotWindow != null) { - entries["SnapshotWindow"] = input.SnapshotWindow; + if (input[_SW] != null) { + entries[_SW] = input[_SW]; } - if (input.CacheNodeType != null) { - entries["CacheNodeType"] = input.CacheNodeType; + if (input[_CNT] != null) { + entries[_CNT] = input[_CNT]; } - if (input.AuthToken != null) { - entries["AuthToken"] = input.AuthToken; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.AuthTokenUpdateStrategy != null) { - entries["AuthTokenUpdateStrategy"] = input.AuthTokenUpdateStrategy; + if (input[_ATUS] != null) { + entries[_ATUS] = input[_ATUS]; } - if (input.LogDeliveryConfigurations != null) { - const memberEntries = se_LogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context); - if (input.LogDeliveryConfigurations?.length === 0) { + if (input[_LDC] != null) { + const memberEntries = se_LogDeliveryConfigurationRequestList(input[_LDC], context); + if (input[_LDC]?.length === 0) { entries.LogDeliveryConfigurations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9711,8 +9711,8 @@ const se_ModifyCacheClusterMessage = (input: ModifyCacheClusterMessage, context: entries[loc] = value; }); } - if (input.IpDiscovery != null) { - entries["IpDiscovery"] = input.IpDiscovery; + if (input[_ID] != null) { + entries[_ID] = input[_ID]; } return entries; }; @@ -9722,12 +9722,12 @@ const se_ModifyCacheClusterMessage = (input: ModifyCacheClusterMessage, context: */ const se_ModifyCacheParameterGroupMessage = (input: ModifyCacheParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.ParameterNameValues != null) { - const memberEntries = se_ParameterNameValueList(input.ParameterNameValues, context); - if (input.ParameterNameValues?.length === 0) { + if (input[_PNV] != null) { + const memberEntries = se_ParameterNameValueList(input[_PNV], context); + if (input[_PNV]?.length === 0) { entries.ParameterNameValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9743,15 +9743,15 @@ const se_ModifyCacheParameterGroupMessage = (input: ModifyCacheParameterGroupMes */ const se_ModifyCacheSubnetGroupMessage = (input: ModifyCacheSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheSubnetGroupName != null) { - entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName; + if (input[_CSGNa] != null) { + entries[_CSGNa] = input[_CSGNa]; } - if (input.CacheSubnetGroupDescription != null) { - entries["CacheSubnetGroupDescription"] = input.CacheSubnetGroupDescription; + if (input[_CSGD] != null) { + entries[_CSGD] = input[_CSGD]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SI] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SI], context); + if (input[_SI]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9770,26 +9770,26 @@ const se_ModifyGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.CacheNodeType != null) { - entries["CacheNodeType"] = input.CacheNodeType; + if (input[_CNT] != null) { + entries[_CNT] = input[_CNT]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.GlobalReplicationGroupDescription != null) { - entries["GlobalReplicationGroupDescription"] = input.GlobalReplicationGroupDescription; + if (input[_GRGD] != null) { + entries[_GRGD] = input[_GRGD]; } - if (input.AutomaticFailoverEnabled != null) { - entries["AutomaticFailoverEnabled"] = input.AutomaticFailoverEnabled; + if (input[_AFE] != null) { + entries[_AFE] = input[_AFE]; } return entries; }; @@ -9799,30 +9799,30 @@ const se_ModifyGlobalReplicationGroupMessage = ( */ const se_ModifyReplicationGroupMessage = (input: ModifyReplicationGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.ReplicationGroupDescription != null) { - entries["ReplicationGroupDescription"] = input.ReplicationGroupDescription; + if (input[_RGD] != null) { + entries[_RGD] = input[_RGD]; } - if (input.PrimaryClusterId != null) { - entries["PrimaryClusterId"] = input.PrimaryClusterId; + if (input[_PCI] != null) { + entries[_PCI] = input[_PCI]; } - if (input.SnapshottingClusterId != null) { - entries["SnapshottingClusterId"] = input.SnapshottingClusterId; + if (input[_SCI] != null) { + entries[_SCI] = input[_SCI]; } - if (input.AutomaticFailoverEnabled != null) { - entries["AutomaticFailoverEnabled"] = input.AutomaticFailoverEnabled; + if (input[_AFE] != null) { + entries[_AFE] = input[_AFE]; } - if (input.MultiAZEnabled != null) { - entries["MultiAZEnabled"] = input.MultiAZEnabled; + if (input[_MAZE] != null) { + entries[_MAZE] = input[_MAZE]; } - if (input.NodeGroupId != null) { - entries["NodeGroupId"] = input.NodeGroupId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.CacheSecurityGroupNames != null) { - const memberEntries = se_CacheSecurityGroupNameList(input.CacheSecurityGroupNames, context); - if (input.CacheSecurityGroupNames?.length === 0) { + if (input[_CSGNac] != null) { + const memberEntries = se_CacheSecurityGroupNameList(input[_CSGNac], context); + if (input[_CSGNac]?.length === 0) { entries.CacheSecurityGroupNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9830,9 +9830,9 @@ const se_ModifyReplicationGroupMessage = (input: ModifyReplicationGroupMessage, entries[loc] = value; }); } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdsList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdsList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9840,45 +9840,45 @@ const se_ModifyReplicationGroupMessage = (input: ModifyReplicationGroupMessage, entries[loc] = value; }); } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.NotificationTopicArn != null) { - entries["NotificationTopicArn"] = input.NotificationTopicArn; + if (input[_NTA] != null) { + entries[_NTA] = input[_NTA]; } - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.NotificationTopicStatus != null) { - entries["NotificationTopicStatus"] = input.NotificationTopicStatus; + if (input[_NTS] != null) { + entries[_NTS] = input[_NTS]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.SnapshotRetentionLimit != null) { - entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit; + if (input[_SRL] != null) { + entries[_SRL] = input[_SRL]; } - if (input.SnapshotWindow != null) { - entries["SnapshotWindow"] = input.SnapshotWindow; + if (input[_SW] != null) { + entries[_SW] = input[_SW]; } - if (input.CacheNodeType != null) { - entries["CacheNodeType"] = input.CacheNodeType; + if (input[_CNT] != null) { + entries[_CNT] = input[_CNT]; } - if (input.AuthToken != null) { - entries["AuthToken"] = input.AuthToken; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.AuthTokenUpdateStrategy != null) { - entries["AuthTokenUpdateStrategy"] = input.AuthTokenUpdateStrategy; + if (input[_ATUS] != null) { + entries[_ATUS] = input[_ATUS]; } - if (input.UserGroupIdsToAdd != null) { - const memberEntries = se_UserGroupIdList(input.UserGroupIdsToAdd, context); - if (input.UserGroupIdsToAdd?.length === 0) { + if (input[_UGITA] != null) { + const memberEntries = se_UserGroupIdList(input[_UGITA], context); + if (input[_UGITA]?.length === 0) { entries.UserGroupIdsToAdd = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9886,9 +9886,9 @@ const se_ModifyReplicationGroupMessage = (input: ModifyReplicationGroupMessage, entries[loc] = value; }); } - if (input.UserGroupIdsToRemove != null) { - const memberEntries = se_UserGroupIdList(input.UserGroupIdsToRemove, context); - if (input.UserGroupIdsToRemove?.length === 0) { + if (input[_UGITR] != null) { + const memberEntries = se_UserGroupIdList(input[_UGITR], context); + if (input[_UGITR]?.length === 0) { entries.UserGroupIdsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9896,12 +9896,12 @@ const se_ModifyReplicationGroupMessage = (input: ModifyReplicationGroupMessage, entries[loc] = value; }); } - if (input.RemoveUserGroups != null) { - entries["RemoveUserGroups"] = input.RemoveUserGroups; + if (input[_RUG] != null) { + entries[_RUG] = input[_RUG]; } - if (input.LogDeliveryConfigurations != null) { - const memberEntries = se_LogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context); - if (input.LogDeliveryConfigurations?.length === 0) { + if (input[_LDC] != null) { + const memberEntries = se_LogDeliveryConfigurationRequestList(input[_LDC], context); + if (input[_LDC]?.length === 0) { entries.LogDeliveryConfigurations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9909,17 +9909,17 @@ const se_ModifyReplicationGroupMessage = (input: ModifyReplicationGroupMessage, entries[loc] = value; }); } - if (input.IpDiscovery != null) { - entries["IpDiscovery"] = input.IpDiscovery; + if (input[_ID] != null) { + entries[_ID] = input[_ID]; } - if (input.TransitEncryptionEnabled != null) { - entries["TransitEncryptionEnabled"] = input.TransitEncryptionEnabled; + if (input[_TEE] != null) { + entries[_TEE] = input[_TEE]; } - if (input.TransitEncryptionMode != null) { - entries["TransitEncryptionMode"] = input.TransitEncryptionMode; + if (input[_TEM] != null) { + entries[_TEM] = input[_TEM]; } - if (input.ClusterMode != null) { - entries["ClusterMode"] = input.ClusterMode; + if (input[_CMl] != null) { + entries[_CMl] = input[_CMl]; } return entries; }; @@ -9932,18 +9932,18 @@ const se_ModifyReplicationGroupShardConfigurationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.NodeGroupCount != null) { - entries["NodeGroupCount"] = input.NodeGroupCount; + if (input[_NGCo] != null) { + entries[_NGCo] = input[_NGCo]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.ReshardingConfiguration != null) { - const memberEntries = se_ReshardingConfigurationList(input.ReshardingConfiguration, context); - if (input.ReshardingConfiguration?.length === 0) { + if (input[_RCes] != null) { + const memberEntries = se_ReshardingConfigurationList(input[_RCes], context); + if (input[_RCes]?.length === 0) { entries.ReshardingConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9951,9 +9951,9 @@ const se_ModifyReplicationGroupShardConfigurationMessage = ( entries[loc] = value; }); } - if (input.NodeGroupsToRemove != null) { - const memberEntries = se_NodeGroupsToRemoveList(input.NodeGroupsToRemove, context); - if (input.NodeGroupsToRemove?.length === 0) { + if (input[_NGTR] != null) { + const memberEntries = se_NodeGroupsToRemoveList(input[_NGTR], context); + if (input[_NGTR]?.length === 0) { entries.NodeGroupsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9961,9 +9961,9 @@ const se_ModifyReplicationGroupShardConfigurationMessage = ( entries[loc] = value; }); } - if (input.NodeGroupsToRetain != null) { - const memberEntries = se_NodeGroupsToRetainList(input.NodeGroupsToRetain, context); - if (input.NodeGroupsToRetain?.length === 0) { + if (input[_NGTRo] != null) { + const memberEntries = se_NodeGroupsToRetainList(input[_NGTRo], context); + if (input[_NGTRo]?.length === 0) { entries.NodeGroupsToRetain = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -9979,28 +9979,28 @@ const se_ModifyReplicationGroupShardConfigurationMessage = ( */ const se_ModifyServerlessCacheRequest = (input: ModifyServerlessCacheRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerlessCacheName != null) { - entries["ServerlessCacheName"] = input.ServerlessCacheName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.CacheUsageLimits != null) { - const memberEntries = se_CacheUsageLimits(input.CacheUsageLimits, context); + if (input[_CUL] != null) { + const memberEntries = se_CacheUsageLimits(input[_CUL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CacheUsageLimits.${key}`; entries[loc] = value; }); } - if (input.RemoveUserGroup != null) { - entries["RemoveUserGroup"] = input.RemoveUserGroup; + if (input[_RUGe] != null) { + entries[_RUGe] = input[_RUGe]; } - if (input.UserGroupId != null) { - entries["UserGroupId"] = input.UserGroupId; + if (input[_UGIs] != null) { + entries[_UGIs] = input[_UGIs]; } - if (input.SecurityGroupIds != null) { - const memberEntries = se_SecurityGroupIdsList(input.SecurityGroupIds, context); - if (input.SecurityGroupIds?.length === 0) { + if (input[_SGI] != null) { + const memberEntries = se_SecurityGroupIdsList(input[_SGI], context); + if (input[_SGI]?.length === 0) { entries.SecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10008,11 +10008,11 @@ const se_ModifyServerlessCacheRequest = (input: ModifyServerlessCacheRequest, co entries[loc] = value; }); } - if (input.SnapshotRetentionLimit != null) { - entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit; + if (input[_SRL] != null) { + entries[_SRL] = input[_SRL]; } - if (input.DailySnapshotTime != null) { - entries["DailySnapshotTime"] = input.DailySnapshotTime; + if (input[_DST] != null) { + entries[_DST] = input[_DST]; } return entries; }; @@ -10022,12 +10022,12 @@ const se_ModifyServerlessCacheRequest = (input: ModifyServerlessCacheRequest, co */ const se_ModifyUserGroupMessage = (input: ModifyUserGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserGroupId != null) { - entries["UserGroupId"] = input.UserGroupId; + if (input[_UGIs] != null) { + entries[_UGIs] = input[_UGIs]; } - if (input.UserIdsToAdd != null) { - const memberEntries = se_UserIdListInput(input.UserIdsToAdd, context); - if (input.UserIdsToAdd?.length === 0) { + if (input[_UITA] != null) { + const memberEntries = se_UserIdListInput(input[_UITA], context); + if (input[_UITA]?.length === 0) { entries.UserIdsToAdd = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10035,9 +10035,9 @@ const se_ModifyUserGroupMessage = (input: ModifyUserGroupMessage, context: __Ser entries[loc] = value; }); } - if (input.UserIdsToRemove != null) { - const memberEntries = se_UserIdListInput(input.UserIdsToRemove, context); - if (input.UserIdsToRemove?.length === 0) { + if (input[_UITR] != null) { + const memberEntries = se_UserIdListInput(input[_UITR], context); + if (input[_UITR]?.length === 0) { entries.UserIdsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10053,18 +10053,18 @@ const se_ModifyUserGroupMessage = (input: ModifyUserGroupMessage, context: __Ser */ const se_ModifyUserMessage = (input: ModifyUserMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserId != null) { - entries["UserId"] = input.UserId; + if (input[_UIs] != null) { + entries[_UIs] = input[_UIs]; } - if (input.AccessString != null) { - entries["AccessString"] = input.AccessString; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.AppendAccessString != null) { - entries["AppendAccessString"] = input.AppendAccessString; + if (input[_AAS] != null) { + entries[_AAS] = input[_AAS]; } - if (input.Passwords != null) { - const memberEntries = se_PasswordListInput(input.Passwords, context); - if (input.Passwords?.length === 0) { + if (input[_P] != null) { + const memberEntries = se_PasswordListInput(input[_P], context); + if (input[_P]?.length === 0) { entries.Passwords = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10072,11 +10072,11 @@ const se_ModifyUserMessage = (input: ModifyUserMessage, context: __SerdeContext) entries[loc] = value; }); } - if (input.NoPasswordRequired != null) { - entries["NoPasswordRequired"] = input.NoPasswordRequired; + if (input[_NPR] != null) { + entries[_NPR] = input[_NPR]; } - if (input.AuthenticationMode != null) { - const memberEntries = se_AuthenticationMode(input.AuthenticationMode, context); + if (input[_AM] != null) { + const memberEntries = se_AuthenticationMode(input[_AM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AuthenticationMode.${key}`; entries[loc] = value; @@ -10090,21 +10090,21 @@ const se_ModifyUserMessage = (input: ModifyUserMessage, context: __SerdeContext) */ const se_NodeGroupConfiguration = (input: NodeGroupConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.NodeGroupId != null) { - entries["NodeGroupId"] = input.NodeGroupId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.Slots != null) { - entries["Slots"] = input.Slots; + if (input[_Sl] != null) { + entries[_Sl] = input[_Sl]; } - if (input.ReplicaCount != null) { - entries["ReplicaCount"] = input.ReplicaCount; + if (input[_RCep] != null) { + entries[_RCep] = input[_RCep]; } - if (input.PrimaryAvailabilityZone != null) { - entries["PrimaryAvailabilityZone"] = input.PrimaryAvailabilityZone; + if (input[_PAZri] != null) { + entries[_PAZri] = input[_PAZri]; } - if (input.ReplicaAvailabilityZones != null) { - const memberEntries = se_AvailabilityZonesList(input.ReplicaAvailabilityZones, context); - if (input.ReplicaAvailabilityZones?.length === 0) { + if (input[_RAZ] != null) { + const memberEntries = se_AvailabilityZonesList(input[_RAZ], context); + if (input[_RAZ]?.length === 0) { entries.ReplicaAvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10112,12 +10112,12 @@ const se_NodeGroupConfiguration = (input: NodeGroupConfiguration, context: __Ser entries[loc] = value; }); } - if (input.PrimaryOutpostArn != null) { - entries["PrimaryOutpostArn"] = input.PrimaryOutpostArn; + if (input[_POAri] != null) { + entries[_POAri] = input[_POAri]; } - if (input.ReplicaOutpostArns != null) { - const memberEntries = se_OutpostArnsList(input.ReplicaOutpostArns, context); - if (input.ReplicaOutpostArns?.length === 0) { + if (input[_ROA] != null) { + const memberEntries = se_OutpostArnsList(input[_ROA], context); + if (input[_ROA]?.length === 0) { entries.ReplicaOutpostArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10200,11 +10200,11 @@ const se_OutpostArnsList = (input: string[], context: __SerdeContext): any => { */ const se_ParameterNameValue = (input: ParameterNameValue, context: __SerdeContext): any => { const entries: any = {}; - if (input.ParameterName != null) { - entries["ParameterName"] = input.ParameterName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.ParameterValue != null) { - entries["ParameterValue"] = input.ParameterValue; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } return entries; }; @@ -10284,18 +10284,18 @@ const se_PurchaseReservedCacheNodesOfferingMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedCacheNodesOfferingId != null) { - entries["ReservedCacheNodesOfferingId"] = input.ReservedCacheNodesOfferingId; + if (input[_RCNOI] != null) { + entries[_RCNOI] = input[_RCNOI]; } - if (input.ReservedCacheNodeId != null) { - entries["ReservedCacheNodeId"] = input.ReservedCacheNodeId; + if (input[_RCNI] != null) { + entries[_RCNI] = input[_RCNI]; } - if (input.CacheNodeCount != null) { - entries["CacheNodeCount"] = input.CacheNodeCount; + if (input[_CNC] != null) { + entries[_CNC] = input[_CNC]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10314,11 +10314,11 @@ const se_RebalanceSlotsInGlobalReplicationGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalReplicationGroupId != null) { - entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId; + if (input[_GRGI] != null) { + entries[_GRGI] = input[_GRGI]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -10328,12 +10328,12 @@ const se_RebalanceSlotsInGlobalReplicationGroupMessage = ( */ const se_RebootCacheClusterMessage = (input: RebootCacheClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheClusterId != null) { - entries["CacheClusterId"] = input.CacheClusterId; + if (input[_CCIa] != null) { + entries[_CCIa] = input[_CCIa]; } - if (input.CacheNodeIdsToReboot != null) { - const memberEntries = se_CacheNodeIdsList(input.CacheNodeIdsToReboot, context); - if (input.CacheNodeIdsToReboot?.length === 0) { + if (input[_CNITRa] != null) { + const memberEntries = se_CacheNodeIdsList(input[_CNITRa], context); + if (input[_CNITRa]?.length === 0) { entries.CacheNodeIdsToReboot = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10349,15 +10349,15 @@ const se_RebootCacheClusterMessage = (input: RebootCacheClusterMessage, context: */ const se_RegionalConfiguration = (input: RegionalConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.ReplicationGroupRegion != null) { - entries["ReplicationGroupRegion"] = input.ReplicationGroupRegion; + if (input[_RGR] != null) { + entries[_RGR] = input[_RGR]; } - if (input.ReshardingConfiguration != null) { - const memberEntries = se_ReshardingConfigurationList(input.ReshardingConfiguration, context); - if (input.ReshardingConfiguration?.length === 0) { + if (input[_RCes] != null) { + const memberEntries = se_ReshardingConfigurationList(input[_RCes], context); + if (input[_RCes]?.length === 0) { entries.ReshardingConfiguration = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10408,12 +10408,12 @@ const se_RemoveReplicasList = (input: string[], context: __SerdeContext): any => */ const se_RemoveTagsFromResourceMessage = (input: RemoveTagsFromResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.TagKeys != null) { - const memberEntries = se_KeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_KeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10464,15 +10464,15 @@ const se_ReplicationGroupIdList = (input: string[], context: __SerdeContext): an */ const se_ResetCacheParameterGroupMessage = (input: ResetCacheParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CacheParameterGroupName != null) { - entries["CacheParameterGroupName"] = input.CacheParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.ResetAllParameters != null) { - entries["ResetAllParameters"] = input.ResetAllParameters; + if (input[_RAP] != null) { + entries[_RAP] = input[_RAP]; } - if (input.ParameterNameValues != null) { - const memberEntries = se_ParameterNameValueList(input.ParameterNameValues, context); - if (input.ParameterNameValues?.length === 0) { + if (input[_PNV] != null) { + const memberEntries = se_ParameterNameValueList(input[_PNV], context); + if (input[_PNV]?.length === 0) { entries.ParameterNameValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10488,12 +10488,12 @@ const se_ResetCacheParameterGroupMessage = (input: ResetCacheParameterGroupMessa */ const se_ReshardingConfiguration = (input: ReshardingConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.NodeGroupId != null) { - entries["NodeGroupId"] = input.NodeGroupId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } - if (input.PreferredAvailabilityZones != null) { - const memberEntries = se_AvailabilityZonesList(input.PreferredAvailabilityZones, context); - if (input.PreferredAvailabilityZones?.length === 0) { + if (input[_PAZ] != null) { + const memberEntries = se_AvailabilityZonesList(input[_PAZ], context); + if (input[_PAZ]?.length === 0) { entries.PreferredAvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10531,14 +10531,14 @@ const se_RevokeCacheSecurityGroupIngressMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CacheSecurityGroupName != null) { - entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.EC2SecurityGroupName != null) { - entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName; + if (input[_ECSGN] != null) { + entries[_ECSGN] = input[_ECSGN]; } - if (input.EC2SecurityGroupOwnerId != null) { - entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId; + if (input[_ECSGOI] != null) { + entries[_ECSGOI] = input[_ECSGOI]; } return entries; }; @@ -10596,12 +10596,12 @@ const se_SnapshotArnsList = (input: string[], context: __SerdeContext): any => { */ const se_StartMigrationMessage = (input: StartMigrationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.CustomerNodeEndpointList != null) { - const memberEntries = se_CustomerNodeEndpointList(input.CustomerNodeEndpointList, context); - if (input.CustomerNodeEndpointList?.length === 0) { + if (input[_CNEL] != null) { + const memberEntries = se_CustomerNodeEndpointList(input[_CNEL], context); + if (input[_CNEL]?.length === 0) { entries.CustomerNodeEndpointList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10649,11 +10649,11 @@ const se_SubnetIdsList = (input: string[], context: __SerdeContext): any => { */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -10682,11 +10682,11 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { */ const se_TestFailoverMessage = (input: TestFailoverMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.NodeGroupId != null) { - entries["NodeGroupId"] = input.NodeGroupId; + if (input[_NGI] != null) { + entries[_NGI] = input[_NGI]; } return entries; }; @@ -10696,12 +10696,12 @@ const se_TestFailoverMessage = (input: TestFailoverMessage, context: __SerdeCont */ const se_TestMigrationMessage = (input: TestMigrationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReplicationGroupId != null) { - entries["ReplicationGroupId"] = input.ReplicationGroupId; + if (input[_RGIe] != null) { + entries[_RGIe] = input[_RGIe]; } - if (input.CustomerNodeEndpointList != null) { - const memberEntries = se_CustomerNodeEndpointList(input.CustomerNodeEndpointList, context); - if (input.CustomerNodeEndpointList?.length === 0) { + if (input[_CNEL] != null) { + const memberEntries = se_CustomerNodeEndpointList(input[_CNEL], context); + if (input[_CNEL]?.length === 0) { entries.CustomerNodeEndpointList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -10717,11 +10717,11 @@ const se_TestMigrationMessage = (input: TestMigrationMessage, context: __SerdeCo */ const se_TimeRangeFilter = (input: TimeRangeFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } return entries; }; @@ -10799,23 +10799,14 @@ const de_AllowedNodeTypeModificationsMessage = ( ): AllowedNodeTypeModificationsMessage => { const contents: any = {}; if (output.ScaleUpModifications === "") { - contents.ScaleUpModifications = []; - } else if (output["ScaleUpModifications"] !== undefined && output["ScaleUpModifications"]["member"] !== undefined) { - contents.ScaleUpModifications = de_NodeTypeList( - __getArrayIfSingleItem(output["ScaleUpModifications"]["member"]), - context - ); + contents[_SUM] = []; + } else if (output[_SUM] != null && output[_SUM][_m] != null) { + contents[_SUM] = de_NodeTypeList(__getArrayIfSingleItem(output[_SUM][_m]), context); } if (output.ScaleDownModifications === "") { - contents.ScaleDownModifications = []; - } else if ( - output["ScaleDownModifications"] !== undefined && - output["ScaleDownModifications"]["member"] !== undefined - ) { - contents.ScaleDownModifications = de_NodeTypeList( - __getArrayIfSingleItem(output["ScaleDownModifications"]["member"]), - context - ); + contents[_SDM] = []; + } else if (output[_SDM] != null && output[_SDM][_m] != null) { + contents[_SDM] = de_NodeTypeList(__getArrayIfSingleItem(output[_SDM][_m]), context); } return contents; }; @@ -10828,8 +10819,8 @@ const de_APICallRateForCustomerExceededFault = ( context: __SerdeContext ): APICallRateForCustomerExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -10839,11 +10830,11 @@ const de_APICallRateForCustomerExceededFault = ( */ const de_Authentication = (output: any, context: __SerdeContext): Authentication => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_Ty] != null) { + contents[_Ty] = __expectString(output[_Ty]); } - if (output["PasswordCount"] !== undefined) { - contents.PasswordCount = __strictParseInt32(output["PasswordCount"]) as number; + if (output[_PC] != null) { + contents[_PC] = __strictParseInt32(output[_PC]) as number; } return contents; }; @@ -10853,8 +10844,8 @@ const de_Authentication = (output: any, context: __SerdeContext): Authentication */ const de_AuthorizationAlreadyExistsFault = (output: any, context: __SerdeContext): AuthorizationAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -10864,8 +10855,8 @@ const de_AuthorizationAlreadyExistsFault = (output: any, context: __SerdeContext */ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): AuthorizationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -10878,8 +10869,8 @@ const de_AuthorizeCacheSecurityGroupIngressResult = ( context: __SerdeContext ): AuthorizeCacheSecurityGroupIngressResult => { const contents: any = {}; - if (output["CacheSecurityGroup"] !== undefined) { - contents.CacheSecurityGroup = de_CacheSecurityGroup(output["CacheSecurityGroup"], context); + if (output[_CSG] != null) { + contents[_CSG] = de_CacheSecurityGroup(output[_CSG], context); } return contents; }; @@ -10889,8 +10880,8 @@ const de_AuthorizeCacheSecurityGroupIngressResult = ( */ const de_AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -10911,131 +10902,112 @@ const de_AvailabilityZonesList = (output: any, context: __SerdeContext): string[ */ const de_CacheCluster = (output: any, context: __SerdeContext): CacheCluster => { const contents: any = {}; - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["ConfigurationEndpoint"] !== undefined) { - contents.ConfigurationEndpoint = de_Endpoint(output["ConfigurationEndpoint"], context); + if (output[_CE] != null) { + contents[_CE] = de_Endpoint(output[_CE], context); } - if (output["ClientDownloadLandingPage"] !== undefined) { - contents.ClientDownloadLandingPage = __expectString(output["ClientDownloadLandingPage"]); + if (output[_CDLP] != null) { + contents[_CDLP] = __expectString(output[_CDLP]); } - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["CacheClusterStatus"] !== undefined) { - contents.CacheClusterStatus = __expectString(output["CacheClusterStatus"]); + if (output[_CCS] != null) { + contents[_CCS] = __expectString(output[_CCS]); } - if (output["NumCacheNodes"] !== undefined) { - contents.NumCacheNodes = __strictParseInt32(output["NumCacheNodes"]) as number; + if (output[_NCN] != null) { + contents[_NCN] = __strictParseInt32(output[_NCN]) as number; } - if (output["PreferredAvailabilityZone"] !== undefined) { - contents.PreferredAvailabilityZone = __expectString(output["PreferredAvailabilityZone"]); + if (output[_PAZr] != null) { + contents[_PAZr] = __expectString(output[_PAZr]); } - if (output["PreferredOutpostArn"] !== undefined) { - contents.PreferredOutpostArn = __expectString(output["PreferredOutpostArn"]); + if (output[_POAr] != null) { + contents[_POAr] = __expectString(output[_POAr]); } - if (output["CacheClusterCreateTime"] !== undefined) { - contents.CacheClusterCreateTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["CacheClusterCreateTime"]) - ); + if (output[_CCCT] != null) { + contents[_CCCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCCT])); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_PendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_PendingModifiedValues(output[_PMV], context); } - if (output["NotificationConfiguration"] !== undefined) { - contents.NotificationConfiguration = de_NotificationConfiguration(output["NotificationConfiguration"], context); + if (output[_NC] != null) { + contents[_NC] = de_NotificationConfiguration(output[_NC], context); } if (output.CacheSecurityGroups === "") { - contents.CacheSecurityGroups = []; - } else if ( - output["CacheSecurityGroups"] !== undefined && - output["CacheSecurityGroups"]["CacheSecurityGroup"] !== undefined - ) { - contents.CacheSecurityGroups = de_CacheSecurityGroupMembershipList( - __getArrayIfSingleItem(output["CacheSecurityGroups"]["CacheSecurityGroup"]), - context - ); - } - if (output["CacheParameterGroup"] !== undefined) { - contents.CacheParameterGroup = de_CacheParameterGroupStatus(output["CacheParameterGroup"], context); - } - if (output["CacheSubnetGroupName"] !== undefined) { - contents.CacheSubnetGroupName = __expectString(output["CacheSubnetGroupName"]); + contents[_CSGa] = []; + } else if (output[_CSGa] != null && output[_CSGa][_CSG] != null) { + contents[_CSGa] = de_CacheSecurityGroupMembershipList(__getArrayIfSingleItem(output[_CSGa][_CSG]), context); + } + if (output[_CPG] != null) { + contents[_CPG] = de_CacheParameterGroupStatus(output[_CPG], context); + } + if (output[_CSGNa] != null) { + contents[_CSGNa] = __expectString(output[_CSGNa]); } if (output.CacheNodes === "") { - contents.CacheNodes = []; - } else if (output["CacheNodes"] !== undefined && output["CacheNodes"]["CacheNode"] !== undefined) { - contents.CacheNodes = de_CacheNodeList(__getArrayIfSingleItem(output["CacheNodes"]["CacheNode"]), context); + contents[_CN] = []; + } else if (output[_CN] != null && output[_CN][_CNa] != null) { + contents[_CN] = de_CacheNodeList(__getArrayIfSingleItem(output[_CN][_CNa]), context); } - if (output["AutoMinorVersionUpgrade"] !== undefined) { - contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); + if (output[_AMVU] != null) { + contents[_AMVU] = __parseBoolean(output[_AMVU]); } if (output.SecurityGroups === "") { - contents.SecurityGroups = []; - } else if (output["SecurityGroups"] !== undefined && output["SecurityGroups"]["member"] !== undefined) { - contents.SecurityGroups = de_SecurityGroupMembershipList( - __getArrayIfSingleItem(output["SecurityGroups"]["member"]), - context - ); + contents[_SG] = []; + } else if (output[_SG] != null && output[_SG][_m] != null) { + contents[_SG] = de_SecurityGroupMembershipList(__getArrayIfSingleItem(output[_SG][_m]), context); } - if (output["ReplicationGroupId"] !== undefined) { - contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); + if (output[_RGIe] != null) { + contents[_RGIe] = __expectString(output[_RGIe]); } - if (output["SnapshotRetentionLimit"] !== undefined) { - contents.SnapshotRetentionLimit = __strictParseInt32(output["SnapshotRetentionLimit"]) as number; + if (output[_SRL] != null) { + contents[_SRL] = __strictParseInt32(output[_SRL]) as number; } - if (output["SnapshotWindow"] !== undefined) { - contents.SnapshotWindow = __expectString(output["SnapshotWindow"]); + if (output[_SW] != null) { + contents[_SW] = __expectString(output[_SW]); } - if (output["AuthTokenEnabled"] !== undefined) { - contents.AuthTokenEnabled = __parseBoolean(output["AuthTokenEnabled"]); + if (output[_ATE] != null) { + contents[_ATE] = __parseBoolean(output[_ATE]); } - if (output["AuthTokenLastModifiedDate"] !== undefined) { - contents.AuthTokenLastModifiedDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["AuthTokenLastModifiedDate"]) - ); + if (output[_ATLMD] != null) { + contents[_ATLMD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ATLMD])); } - if (output["TransitEncryptionEnabled"] !== undefined) { - contents.TransitEncryptionEnabled = __parseBoolean(output["TransitEncryptionEnabled"]); + if (output[_TEE] != null) { + contents[_TEE] = __parseBoolean(output[_TEE]); } - if (output["AtRestEncryptionEnabled"] !== undefined) { - contents.AtRestEncryptionEnabled = __parseBoolean(output["AtRestEncryptionEnabled"]); + if (output[_AREE] != null) { + contents[_AREE] = __parseBoolean(output[_AREE]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["ReplicationGroupLogDeliveryEnabled"] !== undefined) { - contents.ReplicationGroupLogDeliveryEnabled = __parseBoolean(output["ReplicationGroupLogDeliveryEnabled"]); + if (output[_RGLDE] != null) { + contents[_RGLDE] = __parseBoolean(output[_RGLDE]); } if (output.LogDeliveryConfigurations === "") { - contents.LogDeliveryConfigurations = []; - } else if ( - output["LogDeliveryConfigurations"] !== undefined && - output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"] !== undefined - ) { - contents.LogDeliveryConfigurations = de_LogDeliveryConfigurationList( - __getArrayIfSingleItem(output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"]), - context - ); + contents[_LDC] = []; + } else if (output[_LDC] != null && output[_LDC][_LDCo] != null) { + contents[_LDC] = de_LogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_LDCo]), context); } - if (output["NetworkType"] !== undefined) { - contents.NetworkType = __expectString(output["NetworkType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["IpDiscovery"] !== undefined) { - contents.IpDiscovery = __expectString(output["IpDiscovery"]); + if (output[_ID] != null) { + contents[_ID] = __expectString(output[_ID]); } - if (output["TransitEncryptionMode"] !== undefined) { - contents.TransitEncryptionMode = __expectString(output["TransitEncryptionMode"]); + if (output[_TEM] != null) { + contents[_TEM] = __expectString(output[_TEM]); } return contents; }; @@ -11045,8 +11017,8 @@ const de_CacheCluster = (output: any, context: __SerdeContext): CacheCluster => */ const de_CacheClusterAlreadyExistsFault = (output: any, context: __SerdeContext): CacheClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11067,16 +11039,13 @@ const de_CacheClusterList = (output: any, context: __SerdeContext): CacheCluster */ const de_CacheClusterMessage = (output: any, context: __SerdeContext): CacheClusterMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.CacheClusters === "") { - contents.CacheClusters = []; - } else if (output["CacheClusters"] !== undefined && output["CacheClusters"]["CacheCluster"] !== undefined) { - contents.CacheClusters = de_CacheClusterList( - __getArrayIfSingleItem(output["CacheClusters"]["CacheCluster"]), - context - ); + contents[_CC] = []; + } else if (output[_CC] != null && output[_CC][_CCa] != null) { + contents[_CC] = de_CacheClusterList(__getArrayIfSingleItem(output[_CC][_CCa]), context); } return contents; }; @@ -11086,8 +11055,8 @@ const de_CacheClusterMessage = (output: any, context: __SerdeContext): CacheClus */ const de_CacheClusterNotFoundFault = (output: any, context: __SerdeContext): CacheClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11097,20 +11066,20 @@ const de_CacheClusterNotFoundFault = (output: any, context: __SerdeContext): Cac */ const de_CacheEngineVersion = (output: any, context: __SerdeContext): CacheEngineVersion => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["CacheParameterGroupFamily"] !== undefined) { - contents.CacheParameterGroupFamily = __expectString(output["CacheParameterGroupFamily"]); + if (output[_CPGF] != null) { + contents[_CPGF] = __expectString(output[_CPGF]); } - if (output["CacheEngineDescription"] !== undefined) { - contents.CacheEngineDescription = __expectString(output["CacheEngineDescription"]); + if (output[_CED] != null) { + contents[_CED] = __expectString(output[_CED]); } - if (output["CacheEngineVersionDescription"] !== undefined) { - contents.CacheEngineVersionDescription = __expectString(output["CacheEngineVersionDescription"]); + if (output[_CEVD] != null) { + contents[_CEVD] = __expectString(output[_CEVD]); } return contents; }; @@ -11131,19 +11100,13 @@ const de_CacheEngineVersionList = (output: any, context: __SerdeContext): CacheE */ const de_CacheEngineVersionMessage = (output: any, context: __SerdeContext): CacheEngineVersionMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.CacheEngineVersions === "") { - contents.CacheEngineVersions = []; - } else if ( - output["CacheEngineVersions"] !== undefined && - output["CacheEngineVersions"]["CacheEngineVersion"] !== undefined - ) { - contents.CacheEngineVersions = de_CacheEngineVersionList( - __getArrayIfSingleItem(output["CacheEngineVersions"]["CacheEngineVersion"]), - context - ); + contents[_CEV] = []; + } else if (output[_CEV] != null && output[_CEV][_CEVa] != null) { + contents[_CEV] = de_CacheEngineVersionList(__getArrayIfSingleItem(output[_CEV][_CEVa]), context); } return contents; }; @@ -11153,29 +11116,29 @@ const de_CacheEngineVersionMessage = (output: any, context: __SerdeContext): Cac */ const de_CacheNode = (output: any, context: __SerdeContext): CacheNode => { const contents: any = {}; - if (output["CacheNodeId"] !== undefined) { - contents.CacheNodeId = __expectString(output["CacheNodeId"]); + if (output[_CNI] != null) { + contents[_CNI] = __expectString(output[_CNI]); } - if (output["CacheNodeStatus"] !== undefined) { - contents.CacheNodeStatus = __expectString(output["CacheNodeStatus"]); + if (output[_CNS] != null) { + contents[_CNS] = __expectString(output[_CNS]); } - if (output["CacheNodeCreateTime"] !== undefined) { - contents.CacheNodeCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CacheNodeCreateTime"])); + if (output[_CNCT] != null) { + contents[_CNCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CNCT])); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = de_Endpoint(output["Endpoint"], context); + if (output[_End] != null) { + contents[_End] = de_Endpoint(output[_End], context); } - if (output["ParameterGroupStatus"] !== undefined) { - contents.ParameterGroupStatus = __expectString(output["ParameterGroupStatus"]); + if (output[_PGS] != null) { + contents[_PGS] = __expectString(output[_PGS]); } - if (output["SourceCacheNodeId"] !== undefined) { - contents.SourceCacheNodeId = __expectString(output["SourceCacheNodeId"]); + if (output[_SCNIo] != null) { + contents[_SCNIo] = __expectString(output[_SCNIo]); } - if (output["CustomerAvailabilityZone"] !== undefined) { - contents.CustomerAvailabilityZone = __expectString(output["CustomerAvailabilityZone"]); + if (output[_CAZ] != null) { + contents[_CAZ] = __expectString(output[_CAZ]); } - if (output["CustomerOutpostArn"] !== undefined) { - contents.CustomerOutpostArn = __expectString(output["CustomerOutpostArn"]); + if (output[_COA] != null) { + contents[_COA] = __expectString(output[_COA]); } return contents; }; @@ -11207,40 +11170,34 @@ const de_CacheNodeList = (output: any, context: __SerdeContext): CacheNode[] => */ const de_CacheNodeTypeSpecificParameter = (output: any, context: __SerdeContext): CacheNodeTypeSpecificParameter => { const contents: any = {}; - if (output["ParameterName"] !== undefined) { - contents.ParameterName = __expectString(output["ParameterName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Source"] !== undefined) { - contents.Source = __expectString(output["Source"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["DataType"] !== undefined) { - contents.DataType = __expectString(output["DataType"]); + if (output[_DTa] != null) { + contents[_DTa] = __expectString(output[_DTa]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEVi] != null) { + contents[_MEVi] = __expectString(output[_MEVi]); } if (output.CacheNodeTypeSpecificValues === "") { - contents.CacheNodeTypeSpecificValues = []; - } else if ( - output["CacheNodeTypeSpecificValues"] !== undefined && - output["CacheNodeTypeSpecificValues"]["CacheNodeTypeSpecificValue"] !== undefined - ) { - contents.CacheNodeTypeSpecificValues = de_CacheNodeTypeSpecificValueList( - __getArrayIfSingleItem(output["CacheNodeTypeSpecificValues"]["CacheNodeTypeSpecificValue"]), - context - ); + contents[_CNTSV] = []; + } else if (output[_CNTSV] != null && output[_CNTSV][_CNTSVa] != null) { + contents[_CNTSV] = de_CacheNodeTypeSpecificValueList(__getArrayIfSingleItem(output[_CNTSV][_CNTSVa]), context); } - if (output["ChangeType"] !== undefined) { - contents.ChangeType = __expectString(output["ChangeType"]); + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); } return contents; }; @@ -11264,11 +11221,11 @@ const de_CacheNodeTypeSpecificParametersList = ( */ const de_CacheNodeTypeSpecificValue = (output: any, context: __SerdeContext): CacheNodeTypeSpecificValue => { const contents: any = {}; - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -11289,33 +11246,29 @@ const de_CacheNodeTypeSpecificValueList = (output: any, context: __SerdeContext) */ const de_CacheNodeUpdateStatus = (output: any, context: __SerdeContext): CacheNodeUpdateStatus => { const contents: any = {}; - if (output["CacheNodeId"] !== undefined) { - contents.CacheNodeId = __expectString(output["CacheNodeId"]); + if (output[_CNI] != null) { + contents[_CNI] = __expectString(output[_CNI]); } - if (output["NodeUpdateStatus"] !== undefined) { - contents.NodeUpdateStatus = __expectString(output["NodeUpdateStatus"]); + if (output[_NUS] != null) { + contents[_NUS] = __expectString(output[_NUS]); } - if (output["NodeDeletionDate"] !== undefined) { - contents.NodeDeletionDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["NodeDeletionDate"])); + if (output[_NDD] != null) { + contents[_NDD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NDD])); } - if (output["NodeUpdateStartDate"] !== undefined) { - contents.NodeUpdateStartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["NodeUpdateStartDate"])); + if (output[_NUSD] != null) { + contents[_NUSD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUSD])); } - if (output["NodeUpdateEndDate"] !== undefined) { - contents.NodeUpdateEndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["NodeUpdateEndDate"])); + if (output[_NUED] != null) { + contents[_NUED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUED])); } - if (output["NodeUpdateInitiatedBy"] !== undefined) { - contents.NodeUpdateInitiatedBy = __expectString(output["NodeUpdateInitiatedBy"]); + if (output[_NUIB] != null) { + contents[_NUIB] = __expectString(output[_NUIB]); } - if (output["NodeUpdateInitiatedDate"] !== undefined) { - contents.NodeUpdateInitiatedDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["NodeUpdateInitiatedDate"]) - ); + if (output[_NUID] != null) { + contents[_NUID] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUID])); } - if (output["NodeUpdateStatusModifiedDate"] !== undefined) { - contents.NodeUpdateStatusModifiedDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["NodeUpdateStatusModifiedDate"]) - ); + if (output[_NUSMD] != null) { + contents[_NUSMD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUSMD])); } return contents; }; @@ -11336,20 +11289,20 @@ const de_CacheNodeUpdateStatusList = (output: any, context: __SerdeContext): Cac */ const de_CacheParameterGroup = (output: any, context: __SerdeContext): CacheParameterGroup => { const contents: any = {}; - if (output["CacheParameterGroupName"] !== undefined) { - contents.CacheParameterGroupName = __expectString(output["CacheParameterGroupName"]); + if (output[_CPGN] != null) { + contents[_CPGN] = __expectString(output[_CPGN]); } - if (output["CacheParameterGroupFamily"] !== undefined) { - contents.CacheParameterGroupFamily = __expectString(output["CacheParameterGroupFamily"]); + if (output[_CPGF] != null) { + contents[_CPGF] = __expectString(output[_CPGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["IsGlobal"] !== undefined) { - contents.IsGlobal = __parseBoolean(output["IsGlobal"]); + if (output[_IG] != null) { + contents[_IG] = __parseBoolean(output[_IG]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } return contents; }; @@ -11362,8 +11315,8 @@ const de_CacheParameterGroupAlreadyExistsFault = ( context: __SerdeContext ): CacheParameterGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11373,24 +11326,18 @@ const de_CacheParameterGroupAlreadyExistsFault = ( */ const de_CacheParameterGroupDetails = (output: any, context: __SerdeContext): CacheParameterGroupDetails => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } if (output.CacheNodeTypeSpecificParameters === "") { - contents.CacheNodeTypeSpecificParameters = []; - } else if ( - output["CacheNodeTypeSpecificParameters"] !== undefined && - output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"] !== undefined - ) { - contents.CacheNodeTypeSpecificParameters = de_CacheNodeTypeSpecificParametersList( - __getArrayIfSingleItem(output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"]), - context - ); + contents[_CNTSP] = []; + } else if (output[_CNTSP] != null && output[_CNTSP][_CNTSPa] != null) { + contents[_CNTSP] = de_CacheNodeTypeSpecificParametersList(__getArrayIfSingleItem(output[_CNTSP][_CNTSPa]), context); } return contents; }; @@ -11411,8 +11358,8 @@ const de_CacheParameterGroupList = (output: any, context: __SerdeContext): Cache */ const de_CacheParameterGroupNameMessage = (output: any, context: __SerdeContext): CacheParameterGroupNameMessage => { const contents: any = {}; - if (output["CacheParameterGroupName"] !== undefined) { - contents.CacheParameterGroupName = __expectString(output["CacheParameterGroupName"]); + if (output[_CPGN] != null) { + contents[_CPGN] = __expectString(output[_CPGN]); } return contents; }; @@ -11425,8 +11372,8 @@ const de_CacheParameterGroupNotFoundFault = ( context: __SerdeContext ): CacheParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11439,8 +11386,8 @@ const de_CacheParameterGroupQuotaExceededFault = ( context: __SerdeContext ): CacheParameterGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11450,19 +11397,13 @@ const de_CacheParameterGroupQuotaExceededFault = ( */ const de_CacheParameterGroupsMessage = (output: any, context: __SerdeContext): CacheParameterGroupsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.CacheParameterGroups === "") { - contents.CacheParameterGroups = []; - } else if ( - output["CacheParameterGroups"] !== undefined && - output["CacheParameterGroups"]["CacheParameterGroup"] !== undefined - ) { - contents.CacheParameterGroups = de_CacheParameterGroupList( - __getArrayIfSingleItem(output["CacheParameterGroups"]["CacheParameterGroup"]), - context - ); + contents[_CPGa] = []; + } else if (output[_CPGa] != null && output[_CPGa][_CPG] != null) { + contents[_CPGa] = de_CacheParameterGroupList(__getArrayIfSingleItem(output[_CPGa][_CPG]), context); } return contents; }; @@ -11472,22 +11413,16 @@ const de_CacheParameterGroupsMessage = (output: any, context: __SerdeContext): C */ const de_CacheParameterGroupStatus = (output: any, context: __SerdeContext): CacheParameterGroupStatus => { const contents: any = {}; - if (output["CacheParameterGroupName"] !== undefined) { - contents.CacheParameterGroupName = __expectString(output["CacheParameterGroupName"]); + if (output[_CPGN] != null) { + contents[_CPGN] = __expectString(output[_CPGN]); } - if (output["ParameterApplyStatus"] !== undefined) { - contents.ParameterApplyStatus = __expectString(output["ParameterApplyStatus"]); + if (output[_PAS] != null) { + contents[_PAS] = __expectString(output[_PAS]); } if (output.CacheNodeIdsToReboot === "") { - contents.CacheNodeIdsToReboot = []; - } else if ( - output["CacheNodeIdsToReboot"] !== undefined && - output["CacheNodeIdsToReboot"]["CacheNodeId"] !== undefined - ) { - contents.CacheNodeIdsToReboot = de_CacheNodeIdsList( - __getArrayIfSingleItem(output["CacheNodeIdsToReboot"]["CacheNodeId"]), - context - ); + contents[_CNITRa] = []; + } else if (output[_CNITRa] != null && output[_CNITRa][_CNI] != null) { + contents[_CNITRa] = de_CacheNodeIdsList(__getArrayIfSingleItem(output[_CNITRa][_CNI]), context); } return contents; }; @@ -11497,28 +11432,22 @@ const de_CacheParameterGroupStatus = (output: any, context: __SerdeContext): Cac */ const de_CacheSecurityGroup = (output: any, context: __SerdeContext): CacheSecurityGroup => { const contents: any = {}; - if (output["OwnerId"] !== undefined) { - contents.OwnerId = __expectString(output["OwnerId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } - if (output["CacheSecurityGroupName"] !== undefined) { - contents.CacheSecurityGroupName = __expectString(output["CacheSecurityGroupName"]); + if (output[_CSGN] != null) { + contents[_CSGN] = __expectString(output[_CSGN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.EC2SecurityGroups === "") { - contents.EC2SecurityGroups = []; - } else if ( - output["EC2SecurityGroups"] !== undefined && - output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined - ) { - contents.EC2SecurityGroups = de_EC2SecurityGroupList( - __getArrayIfSingleItem(output["EC2SecurityGroups"]["EC2SecurityGroup"]), - context - ); + contents[_ECSG] = []; + } else if (output[_ECSG] != null && output[_ECSG][_ECSGe] != null) { + contents[_ECSG] = de_EC2SecurityGroupList(__getArrayIfSingleItem(output[_ECSG][_ECSGe]), context); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } return contents; }; @@ -11531,8 +11460,8 @@ const de_CacheSecurityGroupAlreadyExistsFault = ( context: __SerdeContext ): CacheSecurityGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11542,11 +11471,11 @@ const de_CacheSecurityGroupAlreadyExistsFault = ( */ const de_CacheSecurityGroupMembership = (output: any, context: __SerdeContext): CacheSecurityGroupMembership => { const contents: any = {}; - if (output["CacheSecurityGroupName"] !== undefined) { - contents.CacheSecurityGroupName = __expectString(output["CacheSecurityGroupName"]); + if (output[_CSGN] != null) { + contents[_CSGN] = __expectString(output[_CSGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -11567,19 +11496,13 @@ const de_CacheSecurityGroupMembershipList = (output: any, context: __SerdeContex */ const de_CacheSecurityGroupMessage = (output: any, context: __SerdeContext): CacheSecurityGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.CacheSecurityGroups === "") { - contents.CacheSecurityGroups = []; - } else if ( - output["CacheSecurityGroups"] !== undefined && - output["CacheSecurityGroups"]["CacheSecurityGroup"] !== undefined - ) { - contents.CacheSecurityGroups = de_CacheSecurityGroups( - __getArrayIfSingleItem(output["CacheSecurityGroups"]["CacheSecurityGroup"]), - context - ); + contents[_CSGa] = []; + } else if (output[_CSGa] != null && output[_CSGa][_CSG] != null) { + contents[_CSGa] = de_CacheSecurityGroups(__getArrayIfSingleItem(output[_CSGa][_CSG]), context); } return contents; }; @@ -11589,8 +11512,8 @@ const de_CacheSecurityGroupMessage = (output: any, context: __SerdeContext): Cac */ const de_CacheSecurityGroupNotFoundFault = (output: any, context: __SerdeContext): CacheSecurityGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11603,8 +11526,8 @@ const de_CacheSecurityGroupQuotaExceededFault = ( context: __SerdeContext ): CacheSecurityGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11625,30 +11548,27 @@ const de_CacheSecurityGroups = (output: any, context: __SerdeContext): CacheSecu */ const de_CacheSubnetGroup = (output: any, context: __SerdeContext): CacheSubnetGroup => { const contents: any = {}; - if (output["CacheSubnetGroupName"] !== undefined) { - contents.CacheSubnetGroupName = __expectString(output["CacheSubnetGroupName"]); + if (output[_CSGNa] != null) { + contents[_CSGNa] = __expectString(output[_CSGNa]); } - if (output["CacheSubnetGroupDescription"] !== undefined) { - contents.CacheSubnetGroupDescription = __expectString(output["CacheSubnetGroupDescription"]); + if (output[_CSGD] != null) { + contents[_CSGD] = __expectString(output[_CSGD]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) { - contents.Subnets = de_SubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_Sub] != null) { + contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } if (output.SupportedNetworkTypes === "") { - contents.SupportedNetworkTypes = []; - } else if (output["SupportedNetworkTypes"] !== undefined && output["SupportedNetworkTypes"]["member"] !== undefined) { - contents.SupportedNetworkTypes = de_NetworkTypeList( - __getArrayIfSingleItem(output["SupportedNetworkTypes"]["member"]), - context - ); + contents[_SNT] = []; + } else if (output[_SNT] != null && output[_SNT][_m] != null) { + contents[_SNT] = de_NetworkTypeList(__getArrayIfSingleItem(output[_SNT][_m]), context); } return contents; }; @@ -11661,8 +11581,8 @@ const de_CacheSubnetGroupAlreadyExistsFault = ( context: __SerdeContext ): CacheSubnetGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11672,8 +11592,8 @@ const de_CacheSubnetGroupAlreadyExistsFault = ( */ const de_CacheSubnetGroupInUse = (output: any, context: __SerdeContext): CacheSubnetGroupInUse => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11683,19 +11603,13 @@ const de_CacheSubnetGroupInUse = (output: any, context: __SerdeContext): CacheSu */ const de_CacheSubnetGroupMessage = (output: any, context: __SerdeContext): CacheSubnetGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.CacheSubnetGroups === "") { - contents.CacheSubnetGroups = []; - } else if ( - output["CacheSubnetGroups"] !== undefined && - output["CacheSubnetGroups"]["CacheSubnetGroup"] !== undefined - ) { - contents.CacheSubnetGroups = de_CacheSubnetGroups( - __getArrayIfSingleItem(output["CacheSubnetGroups"]["CacheSubnetGroup"]), - context - ); + contents[_CSGac] = []; + } else if (output[_CSGac] != null && output[_CSGac][_CSGach] != null) { + contents[_CSGac] = de_CacheSubnetGroups(__getArrayIfSingleItem(output[_CSGac][_CSGach]), context); } return contents; }; @@ -11705,8 +11619,8 @@ const de_CacheSubnetGroupMessage = (output: any, context: __SerdeContext): Cache */ const de_CacheSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): CacheSubnetGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11719,8 +11633,8 @@ const de_CacheSubnetGroupQuotaExceededFault = ( context: __SerdeContext ): CacheSubnetGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11741,8 +11655,8 @@ const de_CacheSubnetGroups = (output: any, context: __SerdeContext): CacheSubnet */ const de_CacheSubnetQuotaExceededFault = (output: any, context: __SerdeContext): CacheSubnetQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11752,11 +11666,11 @@ const de_CacheSubnetQuotaExceededFault = (output: any, context: __SerdeContext): */ const de_CacheUsageLimits = (output: any, context: __SerdeContext): CacheUsageLimits => { const contents: any = {}; - if (output["DataStorage"] !== undefined) { - contents.DataStorage = de_DataStorage(output["DataStorage"], context); + if (output[_DSa] != null) { + contents[_DSa] = de_DataStorage(output[_DSa], context); } - if (output["ECPUPerSecond"] !== undefined) { - contents.ECPUPerSecond = de_ECPUPerSecond(output["ECPUPerSecond"], context); + if (output[_ECPUPS] != null) { + contents[_ECPUPS] = de_ECPUPerSecond(output[_ECPUPS], context); } return contents; }; @@ -11769,8 +11683,8 @@ const de_CloudWatchLogsDestinationDetails = ( context: __SerdeContext ): CloudWatchLogsDestinationDetails => { const contents: any = {}; - if (output["LogGroup"] !== undefined) { - contents.LogGroup = __expectString(output["LogGroup"]); + if (output[_LG] != null) { + contents[_LG] = __expectString(output[_LG]); } return contents; }; @@ -11794,8 +11708,8 @@ const de_ClusterQuotaForCustomerExceededFault = ( context: __SerdeContext ): ClusterQuotaForCustomerExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11805,8 +11719,8 @@ const de_ClusterQuotaForCustomerExceededFault = ( */ const de_CompleteMigrationResponse = (output: any, context: __SerdeContext): CompleteMigrationResponse => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -11819,8 +11733,8 @@ const de_CopyServerlessCacheSnapshotResponse = ( context: __SerdeContext ): CopyServerlessCacheSnapshotResponse => { const contents: any = {}; - if (output["ServerlessCacheSnapshot"] !== undefined) { - contents.ServerlessCacheSnapshot = de_ServerlessCacheSnapshot(output["ServerlessCacheSnapshot"], context); + if (output[_SCS] != null) { + contents[_SCS] = de_ServerlessCacheSnapshot(output[_SCS], context); } return contents; }; @@ -11830,8 +11744,8 @@ const de_CopyServerlessCacheSnapshotResponse = ( */ const de_CopySnapshotResult = (output: any, context: __SerdeContext): CopySnapshotResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -11841,8 +11755,8 @@ const de_CopySnapshotResult = (output: any, context: __SerdeContext): CopySnapsh */ const de_CreateCacheClusterResult = (output: any, context: __SerdeContext): CreateCacheClusterResult => { const contents: any = {}; - if (output["CacheCluster"] !== undefined) { - contents.CacheCluster = de_CacheCluster(output["CacheCluster"], context); + if (output[_CCa] != null) { + contents[_CCa] = de_CacheCluster(output[_CCa], context); } return contents; }; @@ -11852,8 +11766,8 @@ const de_CreateCacheClusterResult = (output: any, context: __SerdeContext): Crea */ const de_CreateCacheParameterGroupResult = (output: any, context: __SerdeContext): CreateCacheParameterGroupResult => { const contents: any = {}; - if (output["CacheParameterGroup"] !== undefined) { - contents.CacheParameterGroup = de_CacheParameterGroup(output["CacheParameterGroup"], context); + if (output[_CPG] != null) { + contents[_CPG] = de_CacheParameterGroup(output[_CPG], context); } return contents; }; @@ -11863,8 +11777,8 @@ const de_CreateCacheParameterGroupResult = (output: any, context: __SerdeContext */ const de_CreateCacheSecurityGroupResult = (output: any, context: __SerdeContext): CreateCacheSecurityGroupResult => { const contents: any = {}; - if (output["CacheSecurityGroup"] !== undefined) { - contents.CacheSecurityGroup = de_CacheSecurityGroup(output["CacheSecurityGroup"], context); + if (output[_CSG] != null) { + contents[_CSG] = de_CacheSecurityGroup(output[_CSG], context); } return contents; }; @@ -11874,8 +11788,8 @@ const de_CreateCacheSecurityGroupResult = (output: any, context: __SerdeContext) */ const de_CreateCacheSubnetGroupResult = (output: any, context: __SerdeContext): CreateCacheSubnetGroupResult => { const contents: any = {}; - if (output["CacheSubnetGroup"] !== undefined) { - contents.CacheSubnetGroup = de_CacheSubnetGroup(output["CacheSubnetGroup"], context); + if (output[_CSGach] != null) { + contents[_CSGach] = de_CacheSubnetGroup(output[_CSGach], context); } return contents; }; @@ -11888,8 +11802,8 @@ const de_CreateGlobalReplicationGroupResult = ( context: __SerdeContext ): CreateGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -11899,8 +11813,8 @@ const de_CreateGlobalReplicationGroupResult = ( */ const de_CreateReplicationGroupResult = (output: any, context: __SerdeContext): CreateReplicationGroupResult => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -11910,8 +11824,8 @@ const de_CreateReplicationGroupResult = (output: any, context: __SerdeContext): */ const de_CreateServerlessCacheResponse = (output: any, context: __SerdeContext): CreateServerlessCacheResponse => { const contents: any = {}; - if (output["ServerlessCache"] !== undefined) { - contents.ServerlessCache = de_ServerlessCache(output["ServerlessCache"], context); + if (output[_SC] != null) { + contents[_SC] = de_ServerlessCache(output[_SC], context); } return contents; }; @@ -11924,8 +11838,8 @@ const de_CreateServerlessCacheSnapshotResponse = ( context: __SerdeContext ): CreateServerlessCacheSnapshotResponse => { const contents: any = {}; - if (output["ServerlessCacheSnapshot"] !== undefined) { - contents.ServerlessCacheSnapshot = de_ServerlessCacheSnapshot(output["ServerlessCacheSnapshot"], context); + if (output[_SCS] != null) { + contents[_SCS] = de_ServerlessCacheSnapshot(output[_SCS], context); } return contents; }; @@ -11935,8 +11849,8 @@ const de_CreateServerlessCacheSnapshotResponse = ( */ const de_CreateSnapshotResult = (output: any, context: __SerdeContext): CreateSnapshotResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -11946,11 +11860,11 @@ const de_CreateSnapshotResult = (output: any, context: __SerdeContext): CreateSn */ const de_DataStorage = (output: any, context: __SerdeContext): DataStorage => { const contents: any = {}; - if (output["Maximum"] !== undefined) { - contents.Maximum = __strictParseInt32(output["Maximum"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } - if (output["Unit"] !== undefined) { - contents.Unit = __expectString(output["Unit"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } return contents; }; @@ -11963,8 +11877,8 @@ const de_DecreaseNodeGroupsInGlobalReplicationGroupResult = ( context: __SerdeContext ): DecreaseNodeGroupsInGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -11974,8 +11888,8 @@ const de_DecreaseNodeGroupsInGlobalReplicationGroupResult = ( */ const de_DecreaseReplicaCountResult = (output: any, context: __SerdeContext): DecreaseReplicaCountResult => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -11988,8 +11902,8 @@ const de_DefaultUserAssociatedToUserGroupFault = ( context: __SerdeContext ): DefaultUserAssociatedToUserGroupFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -11999,8 +11913,8 @@ const de_DefaultUserAssociatedToUserGroupFault = ( */ const de_DefaultUserRequired = (output: any, context: __SerdeContext): DefaultUserRequired => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12010,8 +11924,8 @@ const de_DefaultUserRequired = (output: any, context: __SerdeContext): DefaultUs */ const de_DeleteCacheClusterResult = (output: any, context: __SerdeContext): DeleteCacheClusterResult => { const contents: any = {}; - if (output["CacheCluster"] !== undefined) { - contents.CacheCluster = de_CacheCluster(output["CacheCluster"], context); + if (output[_CCa] != null) { + contents[_CCa] = de_CacheCluster(output[_CCa], context); } return contents; }; @@ -12024,8 +11938,8 @@ const de_DeleteGlobalReplicationGroupResult = ( context: __SerdeContext ): DeleteGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -12035,8 +11949,8 @@ const de_DeleteGlobalReplicationGroupResult = ( */ const de_DeleteReplicationGroupResult = (output: any, context: __SerdeContext): DeleteReplicationGroupResult => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -12046,8 +11960,8 @@ const de_DeleteReplicationGroupResult = (output: any, context: __SerdeContext): */ const de_DeleteServerlessCacheResponse = (output: any, context: __SerdeContext): DeleteServerlessCacheResponse => { const contents: any = {}; - if (output["ServerlessCache"] !== undefined) { - contents.ServerlessCache = de_ServerlessCache(output["ServerlessCache"], context); + if (output[_SC] != null) { + contents[_SC] = de_ServerlessCache(output[_SC], context); } return contents; }; @@ -12060,8 +11974,8 @@ const de_DeleteServerlessCacheSnapshotResponse = ( context: __SerdeContext ): DeleteServerlessCacheSnapshotResponse => { const contents: any = {}; - if (output["ServerlessCacheSnapshot"] !== undefined) { - contents.ServerlessCacheSnapshot = de_ServerlessCacheSnapshot(output["ServerlessCacheSnapshot"], context); + if (output[_SCS] != null) { + contents[_SCS] = de_ServerlessCacheSnapshot(output[_SCS], context); } return contents; }; @@ -12071,8 +11985,8 @@ const de_DeleteServerlessCacheSnapshotResponse = ( */ const de_DeleteSnapshotResult = (output: any, context: __SerdeContext): DeleteSnapshotResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -12085,8 +11999,8 @@ const de_DescribeEngineDefaultParametersResult = ( context: __SerdeContext ): DescribeEngineDefaultParametersResult => { const contents: any = {}; - if (output["EngineDefaults"] !== undefined) { - contents.EngineDefaults = de_EngineDefaults(output["EngineDefaults"], context); + if (output[_ED] != null) { + contents[_ED] = de_EngineDefaults(output[_ED], context); } return contents; }; @@ -12099,19 +12013,13 @@ const de_DescribeGlobalReplicationGroupsResult = ( context: __SerdeContext ): DescribeGlobalReplicationGroupsResult => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.GlobalReplicationGroups === "") { - contents.GlobalReplicationGroups = []; - } else if ( - output["GlobalReplicationGroups"] !== undefined && - output["GlobalReplicationGroups"]["GlobalReplicationGroup"] !== undefined - ) { - contents.GlobalReplicationGroups = de_GlobalReplicationGroupList( - __getArrayIfSingleItem(output["GlobalReplicationGroups"]["GlobalReplicationGroup"]), - context - ); + contents[_GRGl] = []; + } else if (output[_GRGl] != null && output[_GRGl][_GRG] != null) { + contents[_GRGl] = de_GlobalReplicationGroupList(__getArrayIfSingleItem(output[_GRGl][_GRG]), context); } return contents; }; @@ -12124,19 +12032,13 @@ const de_DescribeServerlessCacheSnapshotsResponse = ( context: __SerdeContext ): DescribeServerlessCacheSnapshotsResponse => { const contents: any = {}; - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NTe] != null) { + contents[_NTe] = __expectString(output[_NTe]); } if (output.ServerlessCacheSnapshots === "") { - contents.ServerlessCacheSnapshots = []; - } else if ( - output["ServerlessCacheSnapshots"] !== undefined && - output["ServerlessCacheSnapshots"]["ServerlessCacheSnapshot"] !== undefined - ) { - contents.ServerlessCacheSnapshots = de_ServerlessCacheSnapshotList( - __getArrayIfSingleItem(output["ServerlessCacheSnapshots"]["ServerlessCacheSnapshot"]), - context - ); + contents[_SCSe] = []; + } else if (output[_SCSe] != null && output[_SCSe][_SCS] != null) { + contents[_SCSe] = de_ServerlessCacheSnapshotList(__getArrayIfSingleItem(output[_SCSe][_SCS]), context); } return contents; }; @@ -12149,16 +12051,13 @@ const de_DescribeServerlessCachesResponse = ( context: __SerdeContext ): DescribeServerlessCachesResponse => { const contents: any = {}; - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NTe] != null) { + contents[_NTe] = __expectString(output[_NTe]); } if (output.ServerlessCaches === "") { - contents.ServerlessCaches = []; - } else if (output["ServerlessCaches"] !== undefined && output["ServerlessCaches"]["member"] !== undefined) { - contents.ServerlessCaches = de_ServerlessCacheList( - __getArrayIfSingleItem(output["ServerlessCaches"]["member"]), - context - ); + contents[_SCe] = []; + } else if (output[_SCe] != null && output[_SCe][_m] != null) { + contents[_SCe] = de_ServerlessCacheList(__getArrayIfSingleItem(output[_SCe][_m]), context); } return contents; }; @@ -12168,13 +12067,13 @@ const de_DescribeServerlessCachesResponse = ( */ const de_DescribeSnapshotsListMessage = (output: any, context: __SerdeContext): DescribeSnapshotsListMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.Snapshots === "") { - contents.Snapshots = []; - } else if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) { - contents.Snapshots = de_SnapshotList(__getArrayIfSingleItem(output["Snapshots"]["Snapshot"]), context); + contents[_Sna] = []; + } else if (output[_Sna] != null && output[_Sna][_Sn] != null) { + contents[_Sna] = de_SnapshotList(__getArrayIfSingleItem(output[_Sna][_Sn]), context); } return contents; }; @@ -12185,12 +12084,12 @@ const de_DescribeSnapshotsListMessage = (output: any, context: __SerdeContext): const de_DescribeUserGroupsResult = (output: any, context: __SerdeContext): DescribeUserGroupsResult => { const contents: any = {}; if (output.UserGroups === "") { - contents.UserGroups = []; - } else if (output["UserGroups"] !== undefined && output["UserGroups"]["member"] !== undefined) { - contents.UserGroups = de_UserGroupList(__getArrayIfSingleItem(output["UserGroups"]["member"]), context); + contents[_UG] = []; + } else if (output[_UG] != null && output[_UG][_m] != null) { + contents[_UG] = de_UserGroupList(__getArrayIfSingleItem(output[_UG][_m]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -12201,12 +12100,12 @@ const de_DescribeUserGroupsResult = (output: any, context: __SerdeContext): Desc const de_DescribeUsersResult = (output: any, context: __SerdeContext): DescribeUsersResult => { const contents: any = {}; if (output.Users === "") { - contents.Users = []; - } else if (output["Users"] !== undefined && output["Users"]["member"] !== undefined) { - contents.Users = de_UserList(__getArrayIfSingleItem(output["Users"]["member"]), context); + contents[_Us] = []; + } else if (output[_Us] != null && output[_Us][_m] != null) { + contents[_Us] = de_UserList(__getArrayIfSingleItem(output[_Us][_m]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -12216,11 +12115,11 @@ const de_DescribeUsersResult = (output: any, context: __SerdeContext): DescribeU */ const de_DestinationDetails = (output: any, context: __SerdeContext): DestinationDetails => { const contents: any = {}; - if (output["CloudWatchLogsDetails"] !== undefined) { - contents.CloudWatchLogsDetails = de_CloudWatchLogsDestinationDetails(output["CloudWatchLogsDetails"], context); + if (output[_CWLD] != null) { + contents[_CWLD] = de_CloudWatchLogsDestinationDetails(output[_CWLD], context); } - if (output["KinesisFirehoseDetails"] !== undefined) { - contents.KinesisFirehoseDetails = de_KinesisFirehoseDestinationDetails(output["KinesisFirehoseDetails"], context); + if (output[_KFD] != null) { + contents[_KFD] = de_KinesisFirehoseDestinationDetails(output[_KFD], context); } return contents; }; @@ -12233,8 +12132,8 @@ const de_DisassociateGlobalReplicationGroupResult = ( context: __SerdeContext ): DisassociateGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -12244,8 +12143,8 @@ const de_DisassociateGlobalReplicationGroupResult = ( */ const de_DuplicateUserNameFault = (output: any, context: __SerdeContext): DuplicateUserNameFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12255,14 +12154,14 @@ const de_DuplicateUserNameFault = (output: any, context: __SerdeContext): Duplic */ const de_EC2SecurityGroup = (output: any, context: __SerdeContext): EC2SecurityGroup => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EC2SecurityGroupName"] !== undefined) { - contents.EC2SecurityGroupName = __expectString(output["EC2SecurityGroupName"]); + if (output[_ECSGN] != null) { + contents[_ECSGN] = __expectString(output[_ECSGN]); } - if (output["EC2SecurityGroupOwnerId"] !== undefined) { - contents.EC2SecurityGroupOwnerId = __expectString(output["EC2SecurityGroupOwnerId"]); + if (output[_ECSGOI] != null) { + contents[_ECSGOI] = __expectString(output[_ECSGOI]); } return contents; }; @@ -12283,8 +12182,8 @@ const de_EC2SecurityGroupList = (output: any, context: __SerdeContext): EC2Secur */ const de_ECPUPerSecond = (output: any, context: __SerdeContext): ECPUPerSecond => { const contents: any = {}; - if (output["Maximum"] !== undefined) { - contents.Maximum = __strictParseInt32(output["Maximum"]) as number; + if (output[_M] != null) { + contents[_M] = __strictParseInt32(output[_M]) as number; } return contents; }; @@ -12294,11 +12193,11 @@ const de_ECPUPerSecond = (output: any, context: __SerdeContext): ECPUPerSecond = */ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { const contents: any = {}; - if (output["Address"] !== undefined) { - contents.Address = __expectString(output["Address"]); + if (output[_Ad] != null) { + contents[_Ad] = __expectString(output[_Ad]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_Po] != null) { + contents[_Po] = __strictParseInt32(output[_Po]) as number; } return contents; }; @@ -12308,27 +12207,21 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { */ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults => { const contents: any = {}; - if (output["CacheParameterGroupFamily"] !== undefined) { - contents.CacheParameterGroupFamily = __expectString(output["CacheParameterGroupFamily"]); + if (output[_CPGF] != null) { + contents[_CPGF] = __expectString(output[_CPGF]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } if (output.CacheNodeTypeSpecificParameters === "") { - contents.CacheNodeTypeSpecificParameters = []; - } else if ( - output["CacheNodeTypeSpecificParameters"] !== undefined && - output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"] !== undefined - ) { - contents.CacheNodeTypeSpecificParameters = de_CacheNodeTypeSpecificParametersList( - __getArrayIfSingleItem(output["CacheNodeTypeSpecificParameters"]["CacheNodeTypeSpecificParameter"]), - context - ); + contents[_CNTSP] = []; + } else if (output[_CNTSP] != null && output[_CNTSP][_CNTSPa] != null) { + contents[_CNTSP] = de_CacheNodeTypeSpecificParametersList(__getArrayIfSingleItem(output[_CNTSP][_CNTSPa]), context); } return contents; }; @@ -12338,17 +12231,17 @@ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults */ const de_Event = (output: any, context: __SerdeContext): Event => { const contents: any = {}; - if (output["SourceIdentifier"] !== undefined) { - contents.SourceIdentifier = __expectString(output["SourceIdentifier"]); + if (output[_SIo] != null) { + contents[_SIo] = __expectString(output[_SIo]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Da] != null) { + contents[_Da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Da])); } return contents; }; @@ -12369,13 +12262,13 @@ const de_EventList = (output: any, context: __SerdeContext): Event[] => { */ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.Events === "") { - contents.Events = []; - } else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Events"]["Event"]), context); + contents[_Ev] = []; + } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { + contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); } return contents; }; @@ -12388,8 +12281,8 @@ const de_ExportServerlessCacheSnapshotResponse = ( context: __SerdeContext ): ExportServerlessCacheSnapshotResponse => { const contents: any = {}; - if (output["ServerlessCacheSnapshot"] !== undefined) { - contents.ServerlessCacheSnapshot = de_ServerlessCacheSnapshot(output["ServerlessCacheSnapshot"], context); + if (output[_SCS] != null) { + contents[_SCS] = de_ServerlessCacheSnapshot(output[_SCS], context); } return contents; }; @@ -12402,8 +12295,8 @@ const de_FailoverGlobalReplicationGroupResult = ( context: __SerdeContext ): FailoverGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -12413,11 +12306,11 @@ const de_FailoverGlobalReplicationGroupResult = ( */ const de_GlobalNodeGroup = (output: any, context: __SerdeContext): GlobalNodeGroup => { const contents: any = {}; - if (output["GlobalNodeGroupId"] !== undefined) { - contents.GlobalNodeGroupId = __expectString(output["GlobalNodeGroupId"]); + if (output[_GNGI] != null) { + contents[_GNGI] = __expectString(output[_GNGI]); } - if (output["Slots"] !== undefined) { - contents.Slots = __expectString(output["Slots"]); + if (output[_Sl] != null) { + contents[_Sl] = __expectString(output[_Sl]); } return contents; }; @@ -12438,54 +12331,48 @@ const de_GlobalNodeGroupList = (output: any, context: __SerdeContext): GlobalNod */ const de_GlobalReplicationGroup = (output: any, context: __SerdeContext): GlobalReplicationGroup => { const contents: any = {}; - if (output["GlobalReplicationGroupId"] !== undefined) { - contents.GlobalReplicationGroupId = __expectString(output["GlobalReplicationGroupId"]); + if (output[_GRGI] != null) { + contents[_GRGI] = __expectString(output[_GRGI]); } - if (output["GlobalReplicationGroupDescription"] !== undefined) { - contents.GlobalReplicationGroupDescription = __expectString(output["GlobalReplicationGroupDescription"]); + if (output[_GRGD] != null) { + contents[_GRGD] = __expectString(output[_GRGD]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } if (output.Members === "") { - contents.Members = []; - } else if (output["Members"] !== undefined && output["Members"]["GlobalReplicationGroupMember"] !== undefined) { - contents.Members = de_GlobalReplicationGroupMemberList( - __getArrayIfSingleItem(output["Members"]["GlobalReplicationGroupMember"]), - context - ); + contents[_Mem] = []; + } else if (output[_Mem] != null && output[_Mem][_GRGM] != null) { + contents[_Mem] = de_GlobalReplicationGroupMemberList(__getArrayIfSingleItem(output[_Mem][_GRGM]), context); } - if (output["ClusterEnabled"] !== undefined) { - contents.ClusterEnabled = __parseBoolean(output["ClusterEnabled"]); + if (output[_CEl] != null) { + contents[_CEl] = __parseBoolean(output[_CEl]); } if (output.GlobalNodeGroups === "") { - contents.GlobalNodeGroups = []; - } else if (output["GlobalNodeGroups"] !== undefined && output["GlobalNodeGroups"]["GlobalNodeGroup"] !== undefined) { - contents.GlobalNodeGroups = de_GlobalNodeGroupList( - __getArrayIfSingleItem(output["GlobalNodeGroups"]["GlobalNodeGroup"]), - context - ); + contents[_GNG] = []; + } else if (output[_GNG] != null && output[_GNG][_GNGl] != null) { + contents[_GNG] = de_GlobalNodeGroupList(__getArrayIfSingleItem(output[_GNG][_GNGl]), context); } - if (output["AuthTokenEnabled"] !== undefined) { - contents.AuthTokenEnabled = __parseBoolean(output["AuthTokenEnabled"]); + if (output[_ATE] != null) { + contents[_ATE] = __parseBoolean(output[_ATE]); } - if (output["TransitEncryptionEnabled"] !== undefined) { - contents.TransitEncryptionEnabled = __parseBoolean(output["TransitEncryptionEnabled"]); + if (output[_TEE] != null) { + contents[_TEE] = __parseBoolean(output[_TEE]); } - if (output["AtRestEncryptionEnabled"] !== undefined) { - contents.AtRestEncryptionEnabled = __parseBoolean(output["AtRestEncryptionEnabled"]); + if (output[_AREE] != null) { + contents[_AREE] = __parseBoolean(output[_AREE]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } return contents; }; @@ -12498,8 +12385,8 @@ const de_GlobalReplicationGroupAlreadyExistsFault = ( context: __SerdeContext ): GlobalReplicationGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12509,11 +12396,11 @@ const de_GlobalReplicationGroupAlreadyExistsFault = ( */ const de_GlobalReplicationGroupInfo = (output: any, context: __SerdeContext): GlobalReplicationGroupInfo => { const contents: any = {}; - if (output["GlobalReplicationGroupId"] !== undefined) { - contents.GlobalReplicationGroupId = __expectString(output["GlobalReplicationGroupId"]); + if (output[_GRGI] != null) { + contents[_GRGI] = __expectString(output[_GRGI]); } - if (output["GlobalReplicationGroupMemberRole"] !== undefined) { - contents.GlobalReplicationGroupMemberRole = __expectString(output["GlobalReplicationGroupMemberRole"]); + if (output[_GRGMR] != null) { + contents[_GRGMR] = __expectString(output[_GRGMR]); } return contents; }; @@ -12534,20 +12421,20 @@ const de_GlobalReplicationGroupList = (output: any, context: __SerdeContext): Gl */ const de_GlobalReplicationGroupMember = (output: any, context: __SerdeContext): GlobalReplicationGroupMember => { const contents: any = {}; - if (output["ReplicationGroupId"] !== undefined) { - contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); + if (output[_RGIe] != null) { + contents[_RGIe] = __expectString(output[_RGIe]); } - if (output["ReplicationGroupRegion"] !== undefined) { - contents.ReplicationGroupRegion = __expectString(output["ReplicationGroupRegion"]); + if (output[_RGR] != null) { + contents[_RGR] = __expectString(output[_RGR]); } - if (output["Role"] !== undefined) { - contents.Role = __expectString(output["Role"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } - if (output["AutomaticFailover"] !== undefined) { - contents.AutomaticFailover = __expectString(output["AutomaticFailover"]); + if (output[_AF] != null) { + contents[_AF] = __expectString(output[_AF]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -12571,8 +12458,8 @@ const de_GlobalReplicationGroupNotFoundFault = ( context: __SerdeContext ): GlobalReplicationGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12585,8 +12472,8 @@ const de_IncreaseNodeGroupsInGlobalReplicationGroupResult = ( context: __SerdeContext ): IncreaseNodeGroupsInGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -12596,8 +12483,8 @@ const de_IncreaseNodeGroupsInGlobalReplicationGroupResult = ( */ const de_IncreaseReplicaCountResult = (output: any, context: __SerdeContext): IncreaseReplicaCountResult => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -12610,8 +12497,8 @@ const de_InsufficientCacheClusterCapacityFault = ( context: __SerdeContext ): InsufficientCacheClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12621,8 +12508,8 @@ const de_InsufficientCacheClusterCapacityFault = ( */ const de_InvalidARNFault = (output: any, context: __SerdeContext): InvalidARNFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12632,8 +12519,8 @@ const de_InvalidARNFault = (output: any, context: __SerdeContext): InvalidARNFau */ const de_InvalidCacheClusterStateFault = (output: any, context: __SerdeContext): InvalidCacheClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12646,8 +12533,8 @@ const de_InvalidCacheParameterGroupStateFault = ( context: __SerdeContext ): InvalidCacheParameterGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12660,8 +12547,8 @@ const de_InvalidCacheSecurityGroupStateFault = ( context: __SerdeContext ): InvalidCacheSecurityGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12671,8 +12558,8 @@ const de_InvalidCacheSecurityGroupStateFault = ( */ const de_InvalidCredentialsException = (output: any, context: __SerdeContext): InvalidCredentialsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12685,8 +12572,8 @@ const de_InvalidGlobalReplicationGroupStateFault = ( context: __SerdeContext ): InvalidGlobalReplicationGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12696,8 +12583,8 @@ const de_InvalidGlobalReplicationGroupStateFault = ( */ const de_InvalidKMSKeyFault = (output: any, context: __SerdeContext): InvalidKMSKeyFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12710,8 +12597,8 @@ const de_InvalidParameterCombinationException = ( context: __SerdeContext ): InvalidParameterCombinationException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12721,8 +12608,8 @@ const de_InvalidParameterCombinationException = ( */ const de_InvalidParameterValueException = (output: any, context: __SerdeContext): InvalidParameterValueException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12735,8 +12622,8 @@ const de_InvalidReplicationGroupStateFault = ( context: __SerdeContext ): InvalidReplicationGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12749,8 +12636,8 @@ const de_InvalidServerlessCacheSnapshotStateFault = ( context: __SerdeContext ): InvalidServerlessCacheSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12763,8 +12650,8 @@ const de_InvalidServerlessCacheStateFault = ( context: __SerdeContext ): InvalidServerlessCacheStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12774,8 +12661,8 @@ const de_InvalidServerlessCacheStateFault = ( */ const de_InvalidSnapshotStateFault = (output: any, context: __SerdeContext): InvalidSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12785,8 +12672,8 @@ const de_InvalidSnapshotStateFault = (output: any, context: __SerdeContext): Inv */ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12796,8 +12683,8 @@ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet = */ const de_InvalidUserGroupStateFault = (output: any, context: __SerdeContext): InvalidUserGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12807,8 +12694,8 @@ const de_InvalidUserGroupStateFault = (output: any, context: __SerdeContext): In */ const de_InvalidUserStateFault = (output: any, context: __SerdeContext): InvalidUserStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12818,8 +12705,8 @@ const de_InvalidUserStateFault = (output: any, context: __SerdeContext): Invalid */ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): InvalidVPCNetworkStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -12832,8 +12719,8 @@ const de_KinesisFirehoseDestinationDetails = ( context: __SerdeContext ): KinesisFirehoseDestinationDetails => { const contents: any = {}; - if (output["DeliveryStream"] !== undefined) { - contents.DeliveryStream = __expectString(output["DeliveryStream"]); + if (output[_DSel] != null) { + contents[_DSel] = __expectString(output[_DSel]); } return contents; }; @@ -12843,23 +12730,23 @@ const de_KinesisFirehoseDestinationDetails = ( */ const de_LogDeliveryConfiguration = (output: any, context: __SerdeContext): LogDeliveryConfiguration => { const contents: any = {}; - if (output["LogType"] !== undefined) { - contents.LogType = __expectString(output["LogType"]); + if (output[_LT] != null) { + contents[_LT] = __expectString(output[_LT]); } - if (output["DestinationType"] !== undefined) { - contents.DestinationType = __expectString(output["DestinationType"]); + if (output[_DT] != null) { + contents[_DT] = __expectString(output[_DT]); } - if (output["DestinationDetails"] !== undefined) { - contents.DestinationDetails = de_DestinationDetails(output["DestinationDetails"], context); + if (output[_DD] != null) { + contents[_DD] = de_DestinationDetails(output[_DD], context); } - if (output["LogFormat"] !== undefined) { - contents.LogFormat = __expectString(output["LogFormat"]); + if (output[_LF] != null) { + contents[_LF] = __expectString(output[_LF]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -12880,8 +12767,8 @@ const de_LogDeliveryConfigurationList = (output: any, context: __SerdeContext): */ const de_ModifyCacheClusterResult = (output: any, context: __SerdeContext): ModifyCacheClusterResult => { const contents: any = {}; - if (output["CacheCluster"] !== undefined) { - contents.CacheCluster = de_CacheCluster(output["CacheCluster"], context); + if (output[_CCa] != null) { + contents[_CCa] = de_CacheCluster(output[_CCa], context); } return contents; }; @@ -12891,8 +12778,8 @@ const de_ModifyCacheClusterResult = (output: any, context: __SerdeContext): Modi */ const de_ModifyCacheSubnetGroupResult = (output: any, context: __SerdeContext): ModifyCacheSubnetGroupResult => { const contents: any = {}; - if (output["CacheSubnetGroup"] !== undefined) { - contents.CacheSubnetGroup = de_CacheSubnetGroup(output["CacheSubnetGroup"], context); + if (output[_CSGach] != null) { + contents[_CSGach] = de_CacheSubnetGroup(output[_CSGach], context); } return contents; }; @@ -12905,8 +12792,8 @@ const de_ModifyGlobalReplicationGroupResult = ( context: __SerdeContext ): ModifyGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -12916,8 +12803,8 @@ const de_ModifyGlobalReplicationGroupResult = ( */ const de_ModifyReplicationGroupResult = (output: any, context: __SerdeContext): ModifyReplicationGroupResult => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -12930,8 +12817,8 @@ const de_ModifyReplicationGroupShardConfigurationResult = ( context: __SerdeContext ): ModifyReplicationGroupShardConfigurationResult => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -12941,8 +12828,8 @@ const de_ModifyReplicationGroupShardConfigurationResult = ( */ const de_ModifyServerlessCacheResponse = (output: any, context: __SerdeContext): ModifyServerlessCacheResponse => { const contents: any = {}; - if (output["ServerlessCache"] !== undefined) { - contents.ServerlessCache = de_ServerlessCache(output["ServerlessCache"], context); + if (output[_SC] != null) { + contents[_SC] = de_ServerlessCache(output[_SC], context); } return contents; }; @@ -12963,28 +12850,25 @@ const de_NetworkTypeList = (output: any, context: __SerdeContext): NetworkType[] */ const de_NodeGroup = (output: any, context: __SerdeContext): NodeGroup => { const contents: any = {}; - if (output["NodeGroupId"] !== undefined) { - contents.NodeGroupId = __expectString(output["NodeGroupId"]); + if (output[_NGI] != null) { + contents[_NGI] = __expectString(output[_NGI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["PrimaryEndpoint"] !== undefined) { - contents.PrimaryEndpoint = de_Endpoint(output["PrimaryEndpoint"], context); + if (output[_PE] != null) { + contents[_PE] = de_Endpoint(output[_PE], context); } - if (output["ReaderEndpoint"] !== undefined) { - contents.ReaderEndpoint = de_Endpoint(output["ReaderEndpoint"], context); + if (output[_RE] != null) { + contents[_RE] = de_Endpoint(output[_RE], context); } - if (output["Slots"] !== undefined) { - contents.Slots = __expectString(output["Slots"]); + if (output[_Sl] != null) { + contents[_Sl] = __expectString(output[_Sl]); } if (output.NodeGroupMembers === "") { - contents.NodeGroupMembers = []; - } else if (output["NodeGroupMembers"] !== undefined && output["NodeGroupMembers"]["NodeGroupMember"] !== undefined) { - contents.NodeGroupMembers = de_NodeGroupMemberList( - __getArrayIfSingleItem(output["NodeGroupMembers"]["NodeGroupMember"]), - context - ); + contents[_NGM] = []; + } else if (output[_NGM] != null && output[_NGM][_NGMo] != null) { + contents[_NGM] = de_NodeGroupMemberList(__getArrayIfSingleItem(output[_NGM][_NGMo]), context); } return contents; }; @@ -12994,39 +12878,30 @@ const de_NodeGroup = (output: any, context: __SerdeContext): NodeGroup => { */ const de_NodeGroupConfiguration = (output: any, context: __SerdeContext): NodeGroupConfiguration => { const contents: any = {}; - if (output["NodeGroupId"] !== undefined) { - contents.NodeGroupId = __expectString(output["NodeGroupId"]); + if (output[_NGI] != null) { + contents[_NGI] = __expectString(output[_NGI]); } - if (output["Slots"] !== undefined) { - contents.Slots = __expectString(output["Slots"]); + if (output[_Sl] != null) { + contents[_Sl] = __expectString(output[_Sl]); } - if (output["ReplicaCount"] !== undefined) { - contents.ReplicaCount = __strictParseInt32(output["ReplicaCount"]) as number; + if (output[_RCep] != null) { + contents[_RCep] = __strictParseInt32(output[_RCep]) as number; } - if (output["PrimaryAvailabilityZone"] !== undefined) { - contents.PrimaryAvailabilityZone = __expectString(output["PrimaryAvailabilityZone"]); + if (output[_PAZri] != null) { + contents[_PAZri] = __expectString(output[_PAZri]); } if (output.ReplicaAvailabilityZones === "") { - contents.ReplicaAvailabilityZones = []; - } else if ( - output["ReplicaAvailabilityZones"] !== undefined && - output["ReplicaAvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.ReplicaAvailabilityZones = de_AvailabilityZonesList( - __getArrayIfSingleItem(output["ReplicaAvailabilityZones"]["AvailabilityZone"]), - context - ); - } - if (output["PrimaryOutpostArn"] !== undefined) { - contents.PrimaryOutpostArn = __expectString(output["PrimaryOutpostArn"]); + contents[_RAZ] = []; + } else if (output[_RAZ] != null && output[_RAZ][_AZ] != null) { + contents[_RAZ] = de_AvailabilityZonesList(__getArrayIfSingleItem(output[_RAZ][_AZ]), context); + } + if (output[_POAri] != null) { + contents[_POAri] = __expectString(output[_POAri]); } if (output.ReplicaOutpostArns === "") { - contents.ReplicaOutpostArns = []; - } else if (output["ReplicaOutpostArns"] !== undefined && output["ReplicaOutpostArns"]["OutpostArn"] !== undefined) { - contents.ReplicaOutpostArns = de_OutpostArnsList( - __getArrayIfSingleItem(output["ReplicaOutpostArns"]["OutpostArn"]), - context - ); + contents[_ROA] = []; + } else if (output[_ROA] != null && output[_ROA][_OA] != null) { + contents[_ROA] = de_OutpostArnsList(__getArrayIfSingleItem(output[_ROA][_OA]), context); } return contents; }; @@ -13047,23 +12922,23 @@ const de_NodeGroupList = (output: any, context: __SerdeContext): NodeGroup[] => */ const de_NodeGroupMember = (output: any, context: __SerdeContext): NodeGroupMember => { const contents: any = {}; - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["CacheNodeId"] !== undefined) { - contents.CacheNodeId = __expectString(output["CacheNodeId"]); + if (output[_CNI] != null) { + contents[_CNI] = __expectString(output[_CNI]); } - if (output["ReadEndpoint"] !== undefined) { - contents.ReadEndpoint = de_Endpoint(output["ReadEndpoint"], context); + if (output[_REe] != null) { + contents[_REe] = de_Endpoint(output[_REe], context); } - if (output["PreferredAvailabilityZone"] !== undefined) { - contents.PreferredAvailabilityZone = __expectString(output["PreferredAvailabilityZone"]); + if (output[_PAZr] != null) { + contents[_PAZr] = __expectString(output[_PAZr]); } - if (output["PreferredOutpostArn"] !== undefined) { - contents.PreferredOutpostArn = __expectString(output["PreferredOutpostArn"]); + if (output[_POAr] != null) { + contents[_POAr] = __expectString(output[_POAr]); } - if (output["CurrentRole"] !== undefined) { - contents.CurrentRole = __expectString(output["CurrentRole"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } return contents; }; @@ -13084,36 +12959,32 @@ const de_NodeGroupMemberList = (output: any, context: __SerdeContext): NodeGroup */ const de_NodeGroupMemberUpdateStatus = (output: any, context: __SerdeContext): NodeGroupMemberUpdateStatus => { const contents: any = {}; - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["CacheNodeId"] !== undefined) { - contents.CacheNodeId = __expectString(output["CacheNodeId"]); + if (output[_CNI] != null) { + contents[_CNI] = __expectString(output[_CNI]); } - if (output["NodeUpdateStatus"] !== undefined) { - contents.NodeUpdateStatus = __expectString(output["NodeUpdateStatus"]); + if (output[_NUS] != null) { + contents[_NUS] = __expectString(output[_NUS]); } - if (output["NodeDeletionDate"] !== undefined) { - contents.NodeDeletionDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["NodeDeletionDate"])); + if (output[_NDD] != null) { + contents[_NDD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NDD])); } - if (output["NodeUpdateStartDate"] !== undefined) { - contents.NodeUpdateStartDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["NodeUpdateStartDate"])); + if (output[_NUSD] != null) { + contents[_NUSD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUSD])); } - if (output["NodeUpdateEndDate"] !== undefined) { - contents.NodeUpdateEndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["NodeUpdateEndDate"])); + if (output[_NUED] != null) { + contents[_NUED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUED])); } - if (output["NodeUpdateInitiatedBy"] !== undefined) { - contents.NodeUpdateInitiatedBy = __expectString(output["NodeUpdateInitiatedBy"]); + if (output[_NUIB] != null) { + contents[_NUIB] = __expectString(output[_NUIB]); } - if (output["NodeUpdateInitiatedDate"] !== undefined) { - contents.NodeUpdateInitiatedDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["NodeUpdateInitiatedDate"]) - ); + if (output[_NUID] != null) { + contents[_NUID] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUID])); } - if (output["NodeUpdateStatusModifiedDate"] !== undefined) { - contents.NodeUpdateStatusModifiedDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["NodeUpdateStatusModifiedDate"]) - ); + if (output[_NUSMD] != null) { + contents[_NUSMD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NUSMD])); } return contents; }; @@ -13134,8 +13005,8 @@ const de_NodeGroupMemberUpdateStatusList = (output: any, context: __SerdeContext */ const de_NodeGroupNotFoundFault = (output: any, context: __SerdeContext): NodeGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13148,8 +13019,8 @@ const de_NodeGroupsPerReplicationGroupQuotaExceededFault = ( context: __SerdeContext ): NodeGroupsPerReplicationGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13159,19 +13030,13 @@ const de_NodeGroupsPerReplicationGroupQuotaExceededFault = ( */ const de_NodeGroupUpdateStatus = (output: any, context: __SerdeContext): NodeGroupUpdateStatus => { const contents: any = {}; - if (output["NodeGroupId"] !== undefined) { - contents.NodeGroupId = __expectString(output["NodeGroupId"]); + if (output[_NGI] != null) { + contents[_NGI] = __expectString(output[_NGI]); } if (output.NodeGroupMemberUpdateStatus === "") { - contents.NodeGroupMemberUpdateStatus = []; - } else if ( - output["NodeGroupMemberUpdateStatus"] !== undefined && - output["NodeGroupMemberUpdateStatus"]["NodeGroupMemberUpdateStatus"] !== undefined - ) { - contents.NodeGroupMemberUpdateStatus = de_NodeGroupMemberUpdateStatusList( - __getArrayIfSingleItem(output["NodeGroupMemberUpdateStatus"]["NodeGroupMemberUpdateStatus"]), - context - ); + contents[_NGMUS] = []; + } else if (output[_NGMUS] != null && output[_NGMUS][_NGMUS] != null) { + contents[_NGMUS] = de_NodeGroupMemberUpdateStatusList(__getArrayIfSingleItem(output[_NGMUS][_NGMUS]), context); } return contents; }; @@ -13195,8 +13060,8 @@ const de_NodeQuotaForClusterExceededFault = ( context: __SerdeContext ): NodeQuotaForClusterExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13209,8 +13074,8 @@ const de_NodeQuotaForCustomerExceededFault = ( context: __SerdeContext ): NodeQuotaForCustomerExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13220,26 +13085,26 @@ const de_NodeQuotaForCustomerExceededFault = ( */ const de_NodeSnapshot = (output: any, context: __SerdeContext): NodeSnapshot => { const contents: any = {}; - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["NodeGroupId"] !== undefined) { - contents.NodeGroupId = __expectString(output["NodeGroupId"]); + if (output[_NGI] != null) { + contents[_NGI] = __expectString(output[_NGI]); } - if (output["CacheNodeId"] !== undefined) { - contents.CacheNodeId = __expectString(output["CacheNodeId"]); + if (output[_CNI] != null) { + contents[_CNI] = __expectString(output[_CNI]); } - if (output["NodeGroupConfiguration"] !== undefined) { - contents.NodeGroupConfiguration = de_NodeGroupConfiguration(output["NodeGroupConfiguration"], context); + if (output[_NGC] != null) { + contents[_NGC] = de_NodeGroupConfiguration(output[_NGC], context); } - if (output["CacheSize"] !== undefined) { - contents.CacheSize = __expectString(output["CacheSize"]); + if (output[_CSa] != null) { + contents[_CSa] = __expectString(output[_CSa]); } - if (output["CacheNodeCreateTime"] !== undefined) { - contents.CacheNodeCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CacheNodeCreateTime"])); + if (output[_CNCT] != null) { + contents[_CNCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CNCT])); } - if (output["SnapshotCreateTime"] !== undefined) { - contents.SnapshotCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotCreateTime"])); + if (output[_SCT] != null) { + contents[_SCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCT])); } return contents; }; @@ -13271,8 +13136,8 @@ const de_NodeTypeList = (output: any, context: __SerdeContext): string[] => { */ const de_NoOperationFault = (output: any, context: __SerdeContext): NoOperationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13282,11 +13147,11 @@ const de_NoOperationFault = (output: any, context: __SerdeContext): NoOperationF */ const de_NotificationConfiguration = (output: any, context: __SerdeContext): NotificationConfiguration => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["TopicStatus"] !== undefined) { - contents.TopicStatus = __expectString(output["TopicStatus"]); + if (output[_TS] != null) { + contents[_TS] = __expectString(output[_TS]); } return contents; }; @@ -13307,32 +13172,32 @@ const de_OutpostArnsList = (output: any, context: __SerdeContext): string[] => { */ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { const contents: any = {}; - if (output["ParameterName"] !== undefined) { - contents.ParameterName = __expectString(output["ParameterName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["ParameterValue"] !== undefined) { - contents.ParameterValue = __expectString(output["ParameterValue"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Source"] !== undefined) { - contents.Source = __expectString(output["Source"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["DataType"] !== undefined) { - contents.DataType = __expectString(output["DataType"]); + if (output[_DTa] != null) { + contents[_DTa] = __expectString(output[_DTa]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEVi] != null) { + contents[_MEVi] = __expectString(output[_MEVi]); } - if (output["ChangeType"] !== undefined) { - contents.ChangeType = __expectString(output["ChangeType"]); + if (output[_CT] != null) { + contents[_CT] = __expectString(output[_CT]); } return contents; }; @@ -13353,17 +13218,17 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => */ const de_PendingLogDeliveryConfiguration = (output: any, context: __SerdeContext): PendingLogDeliveryConfiguration => { const contents: any = {}; - if (output["LogType"] !== undefined) { - contents.LogType = __expectString(output["LogType"]); + if (output[_LT] != null) { + contents[_LT] = __expectString(output[_LT]); } - if (output["DestinationType"] !== undefined) { - contents.DestinationType = __expectString(output["DestinationType"]); + if (output[_DT] != null) { + contents[_DT] = __expectString(output[_DT]); } - if (output["DestinationDetails"] !== undefined) { - contents.DestinationDetails = de_DestinationDetails(output["DestinationDetails"], context); + if (output[_DD] != null) { + contents[_DD] = de_DestinationDetails(output[_DD], context); } - if (output["LogFormat"] !== undefined) { - contents.LogFormat = __expectString(output["LogFormat"]); + if (output[_LF] != null) { + contents[_LF] = __expectString(output[_LF]); } return contents; }; @@ -13387,45 +13252,33 @@ const de_PendingLogDeliveryConfigurationList = ( */ const de_PendingModifiedValues = (output: any, context: __SerdeContext): PendingModifiedValues => { const contents: any = {}; - if (output["NumCacheNodes"] !== undefined) { - contents.NumCacheNodes = __strictParseInt32(output["NumCacheNodes"]) as number; + if (output[_NCN] != null) { + contents[_NCN] = __strictParseInt32(output[_NCN]) as number; } if (output.CacheNodeIdsToRemove === "") { - contents.CacheNodeIdsToRemove = []; - } else if ( - output["CacheNodeIdsToRemove"] !== undefined && - output["CacheNodeIdsToRemove"]["CacheNodeId"] !== undefined - ) { - contents.CacheNodeIdsToRemove = de_CacheNodeIdsList( - __getArrayIfSingleItem(output["CacheNodeIdsToRemove"]["CacheNodeId"]), - context - ); + contents[_CNITR] = []; + } else if (output[_CNITR] != null && output[_CNITR][_CNI] != null) { + contents[_CNITR] = de_CacheNodeIdsList(__getArrayIfSingleItem(output[_CNITR][_CNI]), context); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["AuthTokenStatus"] !== undefined) { - contents.AuthTokenStatus = __expectString(output["AuthTokenStatus"]); + if (output[_ATS] != null) { + contents[_ATS] = __expectString(output[_ATS]); } if (output.LogDeliveryConfigurations === "") { - contents.LogDeliveryConfigurations = []; - } else if ( - output["LogDeliveryConfigurations"] !== undefined && - output["LogDeliveryConfigurations"]["member"] !== undefined - ) { - contents.LogDeliveryConfigurations = de_PendingLogDeliveryConfigurationList( - __getArrayIfSingleItem(output["LogDeliveryConfigurations"]["member"]), - context - ); + contents[_LDC] = []; + } else if (output[_LDC] != null && output[_LDC][_m] != null) { + contents[_LDC] = de_PendingLogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_m]), context); } - if (output["TransitEncryptionEnabled"] !== undefined) { - contents.TransitEncryptionEnabled = __parseBoolean(output["TransitEncryptionEnabled"]); + if (output[_TEE] != null) { + contents[_TEE] = __parseBoolean(output[_TEE]); } - if (output["TransitEncryptionMode"] !== undefined) { - contents.TransitEncryptionMode = __expectString(output["TransitEncryptionMode"]); + if (output[_TEM] != null) { + contents[_TEM] = __expectString(output[_TEM]); } return contents; }; @@ -13435,17 +13288,17 @@ const de_PendingModifiedValues = (output: any, context: __SerdeContext): Pending */ const de_ProcessedUpdateAction = (output: any, context: __SerdeContext): ProcessedUpdateAction => { const contents: any = {}; - if (output["ReplicationGroupId"] !== undefined) { - contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); + if (output[_RGIe] != null) { + contents[_RGIe] = __expectString(output[_RGIe]); } - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["ServiceUpdateName"] !== undefined) { - contents.ServiceUpdateName = __expectString(output["ServiceUpdateName"]); + if (output[_SUN] != null) { + contents[_SUN] = __expectString(output[_SUN]); } - if (output["UpdateActionStatus"] !== undefined) { - contents.UpdateActionStatus = __expectString(output["UpdateActionStatus"]); + if (output[_UAS] != null) { + contents[_UAS] = __expectString(output[_UAS]); } return contents; }; @@ -13469,8 +13322,8 @@ const de_PurchaseReservedCacheNodesOfferingResult = ( context: __SerdeContext ): PurchaseReservedCacheNodesOfferingResult => { const contents: any = {}; - if (output["ReservedCacheNode"] !== undefined) { - contents.ReservedCacheNode = de_ReservedCacheNode(output["ReservedCacheNode"], context); + if (output[_RCN] != null) { + contents[_RCN] = de_ReservedCacheNode(output[_RCN], context); } return contents; }; @@ -13483,8 +13336,8 @@ const de_RebalanceSlotsInGlobalReplicationGroupResult = ( context: __SerdeContext ): RebalanceSlotsInGlobalReplicationGroupResult => { const contents: any = {}; - if (output["GlobalReplicationGroup"] !== undefined) { - contents.GlobalReplicationGroup = de_GlobalReplicationGroup(output["GlobalReplicationGroup"], context); + if (output[_GRG] != null) { + contents[_GRG] = de_GlobalReplicationGroup(output[_GRG], context); } return contents; }; @@ -13494,8 +13347,8 @@ const de_RebalanceSlotsInGlobalReplicationGroupResult = ( */ const de_RebootCacheClusterResult = (output: any, context: __SerdeContext): RebootCacheClusterResult => { const contents: any = {}; - if (output["CacheCluster"] !== undefined) { - contents.CacheCluster = de_CacheCluster(output["CacheCluster"], context); + if (output[_CCa] != null) { + contents[_CCa] = de_CacheCluster(output[_CCa], context); } return contents; }; @@ -13505,11 +13358,11 @@ const de_RebootCacheClusterResult = (output: any, context: __SerdeContext): Rebo */ const de_RecurringCharge = (output: any, context: __SerdeContext): RecurringCharge => { const contents: any = {}; - if (output["RecurringChargeAmount"] !== undefined) { - contents.RecurringChargeAmount = __strictParseFloat(output["RecurringChargeAmount"]) as number; + if (output[_RCA] != null) { + contents[_RCA] = __strictParseFloat(output[_RCA]) as number; } - if (output["RecurringChargeFrequency"] !== undefined) { - contents.RecurringChargeFrequency = __expectString(output["RecurringChargeFrequency"]); + if (output[_RCF] != null) { + contents[_RCF] = __expectString(output[_RCF]); } return contents; }; @@ -13530,124 +13383,108 @@ const de_RecurringChargeList = (output: any, context: __SerdeContext): Recurring */ const de_ReplicationGroup = (output: any, context: __SerdeContext): ReplicationGroup => { const contents: any = {}; - if (output["ReplicationGroupId"] !== undefined) { - contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); + if (output[_RGIe] != null) { + contents[_RGIe] = __expectString(output[_RGIe]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["GlobalReplicationGroupInfo"] !== undefined) { - contents.GlobalReplicationGroupInfo = de_GlobalReplicationGroupInfo(output["GlobalReplicationGroupInfo"], context); + if (output[_GRGIl] != null) { + contents[_GRGIl] = de_GlobalReplicationGroupInfo(output[_GRGIl], context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_ReplicationGroupPendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_ReplicationGroupPendingModifiedValues(output[_PMV], context); } if (output.MemberClusters === "") { - contents.MemberClusters = []; - } else if (output["MemberClusters"] !== undefined && output["MemberClusters"]["ClusterId"] !== undefined) { - contents.MemberClusters = de_ClusterIdList(__getArrayIfSingleItem(output["MemberClusters"]["ClusterId"]), context); + contents[_MC] = []; + } else if (output[_MC] != null && output[_MC][_CI] != null) { + contents[_MC] = de_ClusterIdList(__getArrayIfSingleItem(output[_MC][_CI]), context); } if (output.NodeGroups === "") { - contents.NodeGroups = []; - } else if (output["NodeGroups"] !== undefined && output["NodeGroups"]["NodeGroup"] !== undefined) { - contents.NodeGroups = de_NodeGroupList(__getArrayIfSingleItem(output["NodeGroups"]["NodeGroup"]), context); + contents[_NG] = []; + } else if (output[_NG] != null && output[_NG][_NGo] != null) { + contents[_NG] = de_NodeGroupList(__getArrayIfSingleItem(output[_NG][_NGo]), context); } - if (output["SnapshottingClusterId"] !== undefined) { - contents.SnapshottingClusterId = __expectString(output["SnapshottingClusterId"]); + if (output[_SCI] != null) { + contents[_SCI] = __expectString(output[_SCI]); } - if (output["AutomaticFailover"] !== undefined) { - contents.AutomaticFailover = __expectString(output["AutomaticFailover"]); + if (output[_AF] != null) { + contents[_AF] = __expectString(output[_AF]); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __expectString(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __expectString(output[_MAZ]); } - if (output["ConfigurationEndpoint"] !== undefined) { - contents.ConfigurationEndpoint = de_Endpoint(output["ConfigurationEndpoint"], context); + if (output[_CE] != null) { + contents[_CE] = de_Endpoint(output[_CE], context); } - if (output["SnapshotRetentionLimit"] !== undefined) { - contents.SnapshotRetentionLimit = __strictParseInt32(output["SnapshotRetentionLimit"]) as number; + if (output[_SRL] != null) { + contents[_SRL] = __strictParseInt32(output[_SRL]) as number; } - if (output["SnapshotWindow"] !== undefined) { - contents.SnapshotWindow = __expectString(output["SnapshotWindow"]); + if (output[_SW] != null) { + contents[_SW] = __expectString(output[_SW]); } - if (output["ClusterEnabled"] !== undefined) { - contents.ClusterEnabled = __parseBoolean(output["ClusterEnabled"]); + if (output[_CEl] != null) { + contents[_CEl] = __parseBoolean(output[_CEl]); } - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["AuthTokenEnabled"] !== undefined) { - contents.AuthTokenEnabled = __parseBoolean(output["AuthTokenEnabled"]); + if (output[_ATE] != null) { + contents[_ATE] = __parseBoolean(output[_ATE]); } - if (output["AuthTokenLastModifiedDate"] !== undefined) { - contents.AuthTokenLastModifiedDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["AuthTokenLastModifiedDate"]) - ); + if (output[_ATLMD] != null) { + contents[_ATLMD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ATLMD])); } - if (output["TransitEncryptionEnabled"] !== undefined) { - contents.TransitEncryptionEnabled = __parseBoolean(output["TransitEncryptionEnabled"]); + if (output[_TEE] != null) { + contents[_TEE] = __parseBoolean(output[_TEE]); } - if (output["AtRestEncryptionEnabled"] !== undefined) { - contents.AtRestEncryptionEnabled = __parseBoolean(output["AtRestEncryptionEnabled"]); + if (output[_AREE] != null) { + contents[_AREE] = __parseBoolean(output[_AREE]); } if (output.MemberClustersOutpostArns === "") { - contents.MemberClustersOutpostArns = []; - } else if ( - output["MemberClustersOutpostArns"] !== undefined && - output["MemberClustersOutpostArns"]["ReplicationGroupOutpostArn"] !== undefined - ) { - contents.MemberClustersOutpostArns = de_ReplicationGroupOutpostArnList( - __getArrayIfSingleItem(output["MemberClustersOutpostArns"]["ReplicationGroupOutpostArn"]), - context - ); - } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); - } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + contents[_MCOA] = []; + } else if (output[_MCOA] != null && output[_MCOA][_RGOA] != null) { + contents[_MCOA] = de_ReplicationGroupOutpostArnList(__getArrayIfSingleItem(output[_MCOA][_RGOA]), context); + } + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); + } + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } if (output.UserGroupIds === "") { - contents.UserGroupIds = []; - } else if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) { - contents.UserGroupIds = de_UserGroupIdList(__getArrayIfSingleItem(output["UserGroupIds"]["member"]), context); + contents[_UGI] = []; + } else if (output[_UGI] != null && output[_UGI][_m] != null) { + contents[_UGI] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGI][_m]), context); } if (output.LogDeliveryConfigurations === "") { - contents.LogDeliveryConfigurations = []; - } else if ( - output["LogDeliveryConfigurations"] !== undefined && - output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"] !== undefined - ) { - contents.LogDeliveryConfigurations = de_LogDeliveryConfigurationList( - __getArrayIfSingleItem(output["LogDeliveryConfigurations"]["LogDeliveryConfiguration"]), - context - ); + contents[_LDC] = []; + } else if (output[_LDC] != null && output[_LDC][_LDCo] != null) { + contents[_LDC] = de_LogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_LDCo]), context); } - if (output["ReplicationGroupCreateTime"] !== undefined) { - contents.ReplicationGroupCreateTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ReplicationGroupCreateTime"]) - ); + if (output[_RGCT] != null) { + contents[_RGCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RGCT])); } - if (output["DataTiering"] !== undefined) { - contents.DataTiering = __expectString(output["DataTiering"]); + if (output[_DTat] != null) { + contents[_DTat] = __expectString(output[_DTat]); } - if (output["AutoMinorVersionUpgrade"] !== undefined) { - contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); + if (output[_AMVU] != null) { + contents[_AMVU] = __parseBoolean(output[_AMVU]); } - if (output["NetworkType"] !== undefined) { - contents.NetworkType = __expectString(output["NetworkType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["IpDiscovery"] !== undefined) { - contents.IpDiscovery = __expectString(output["IpDiscovery"]); + if (output[_ID] != null) { + contents[_ID] = __expectString(output[_ID]); } - if (output["TransitEncryptionMode"] !== undefined) { - contents.TransitEncryptionMode = __expectString(output["TransitEncryptionMode"]); + if (output[_TEM] != null) { + contents[_TEM] = __expectString(output[_TEM]); } - if (output["ClusterMode"] !== undefined) { - contents.ClusterMode = __expectString(output["ClusterMode"]); + if (output[_CMl] != null) { + contents[_CMl] = __expectString(output[_CMl]); } return contents; }; @@ -13660,8 +13497,8 @@ const de_ReplicationGroupAlreadyExistsFault = ( context: __SerdeContext ): ReplicationGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13674,8 +13511,8 @@ const de_ReplicationGroupAlreadyUnderMigrationFault = ( context: __SerdeContext ): ReplicationGroupAlreadyUnderMigrationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13696,19 +13533,13 @@ const de_ReplicationGroupList = (output: any, context: __SerdeContext): Replicat */ const de_ReplicationGroupMessage = (output: any, context: __SerdeContext): ReplicationGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.ReplicationGroups === "") { - contents.ReplicationGroups = []; - } else if ( - output["ReplicationGroups"] !== undefined && - output["ReplicationGroups"]["ReplicationGroup"] !== undefined - ) { - contents.ReplicationGroups = de_ReplicationGroupList( - __getArrayIfSingleItem(output["ReplicationGroups"]["ReplicationGroup"]), - context - ); + contents[_RGe] = []; + } else if (output[_RGe] != null && output[_RGe][_RG] != null) { + contents[_RGe] = de_ReplicationGroupList(__getArrayIfSingleItem(output[_RGe][_RG]), context); } return contents; }; @@ -13718,8 +13549,8 @@ const de_ReplicationGroupMessage = (output: any, context: __SerdeContext): Repli */ const de_ReplicationGroupNotFoundFault = (output: any, context: __SerdeContext): ReplicationGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13732,8 +13563,8 @@ const de_ReplicationGroupNotUnderMigrationFault = ( context: __SerdeContext ): ReplicationGroupNotUnderMigrationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13757,40 +13588,34 @@ const de_ReplicationGroupPendingModifiedValues = ( context: __SerdeContext ): ReplicationGroupPendingModifiedValues => { const contents: any = {}; - if (output["PrimaryClusterId"] !== undefined) { - contents.PrimaryClusterId = __expectString(output["PrimaryClusterId"]); + if (output[_PCI] != null) { + contents[_PCI] = __expectString(output[_PCI]); } - if (output["AutomaticFailoverStatus"] !== undefined) { - contents.AutomaticFailoverStatus = __expectString(output["AutomaticFailoverStatus"]); + if (output[_AFS] != null) { + contents[_AFS] = __expectString(output[_AFS]); } - if (output["Resharding"] !== undefined) { - contents.Resharding = de_ReshardingStatus(output["Resharding"], context); + if (output[_Re] != null) { + contents[_Re] = de_ReshardingStatus(output[_Re], context); } - if (output["AuthTokenStatus"] !== undefined) { - contents.AuthTokenStatus = __expectString(output["AuthTokenStatus"]); + if (output[_ATS] != null) { + contents[_ATS] = __expectString(output[_ATS]); } - if (output["UserGroups"] !== undefined) { - contents.UserGroups = de_UserGroupsUpdateStatus(output["UserGroups"], context); + if (output[_UG] != null) { + contents[_UG] = de_UserGroupsUpdateStatus(output[_UG], context); } if (output.LogDeliveryConfigurations === "") { - contents.LogDeliveryConfigurations = []; - } else if ( - output["LogDeliveryConfigurations"] !== undefined && - output["LogDeliveryConfigurations"]["member"] !== undefined - ) { - contents.LogDeliveryConfigurations = de_PendingLogDeliveryConfigurationList( - __getArrayIfSingleItem(output["LogDeliveryConfigurations"]["member"]), - context - ); + contents[_LDC] = []; + } else if (output[_LDC] != null && output[_LDC][_m] != null) { + contents[_LDC] = de_PendingLogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_m]), context); } - if (output["TransitEncryptionEnabled"] !== undefined) { - contents.TransitEncryptionEnabled = __parseBoolean(output["TransitEncryptionEnabled"]); + if (output[_TEE] != null) { + contents[_TEE] = __parseBoolean(output[_TEE]); } - if (output["TransitEncryptionMode"] !== undefined) { - contents.TransitEncryptionMode = __expectString(output["TransitEncryptionMode"]); + if (output[_TEM] != null) { + contents[_TEM] = __expectString(output[_TEM]); } - if (output["ClusterMode"] !== undefined) { - contents.ClusterMode = __expectString(output["ClusterMode"]); + if (output[_CMl] != null) { + contents[_CMl] = __expectString(output[_CMl]); } return contents; }; @@ -13800,49 +13625,46 @@ const de_ReplicationGroupPendingModifiedValues = ( */ const de_ReservedCacheNode = (output: any, context: __SerdeContext): ReservedCacheNode => { const contents: any = {}; - if (output["ReservedCacheNodeId"] !== undefined) { - contents.ReservedCacheNodeId = __expectString(output["ReservedCacheNodeId"]); + if (output[_RCNI] != null) { + contents[_RCNI] = __expectString(output[_RCNI]); } - if (output["ReservedCacheNodesOfferingId"] !== undefined) { - contents.ReservedCacheNodesOfferingId = __expectString(output["ReservedCacheNodesOfferingId"]); + if (output[_RCNOI] != null) { + contents[_RCNOI] = __expectString(output[_RCNOI]); } - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_STt] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STt])); } - if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["Duration"]) as number; + if (output[_Du] != null) { + contents[_Du] = __strictParseInt32(output[_Du]) as number; } - if (output["FixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; + if (output[_FP] != null) { + contents[_FP] = __strictParseFloat(output[_FP]) as number; } - if (output["UsagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["UsagePrice"]) as number; + if (output[_UP] != null) { + contents[_UP] = __strictParseFloat(output[_UP]) as number; } - if (output["CacheNodeCount"] !== undefined) { - contents.CacheNodeCount = __strictParseInt32(output["CacheNodeCount"]) as number; + if (output[_CNC] != null) { + contents[_CNC] = __strictParseInt32(output[_CNC]) as number; } - if (output["ProductDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["ProductDescription"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } - if (output["OfferingType"] !== undefined) { - contents.OfferingType = __expectString(output["OfferingType"]); + if (output[_OT] != null) { + contents[_OT] = __expectString(output[_OT]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } if (output.RecurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) { - contents.RecurringCharges = de_RecurringChargeList( - __getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), - context - ); + contents[_RCec] = []; + } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { + contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); } - if (output["ReservationARN"] !== undefined) { - contents.ReservationARN = __expectString(output["ReservationARN"]); + if (output[_RARN] != null) { + contents[_RARN] = __expectString(output[_RARN]); } return contents; }; @@ -13855,8 +13677,8 @@ const de_ReservedCacheNodeAlreadyExistsFault = ( context: __SerdeContext ): ReservedCacheNodeAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13877,19 +13699,13 @@ const de_ReservedCacheNodeList = (output: any, context: __SerdeContext): Reserve */ const de_ReservedCacheNodeMessage = (output: any, context: __SerdeContext): ReservedCacheNodeMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.ReservedCacheNodes === "") { - contents.ReservedCacheNodes = []; - } else if ( - output["ReservedCacheNodes"] !== undefined && - output["ReservedCacheNodes"]["ReservedCacheNode"] !== undefined - ) { - contents.ReservedCacheNodes = de_ReservedCacheNodeList( - __getArrayIfSingleItem(output["ReservedCacheNodes"]["ReservedCacheNode"]), - context - ); + contents[_RCNe] = []; + } else if (output[_RCNe] != null && output[_RCNe][_RCN] != null) { + contents[_RCNe] = de_ReservedCacheNodeList(__getArrayIfSingleItem(output[_RCNe][_RCN]), context); } return contents; }; @@ -13899,8 +13715,8 @@ const de_ReservedCacheNodeMessage = (output: any, context: __SerdeContext): Rese */ const de_ReservedCacheNodeNotFoundFault = (output: any, context: __SerdeContext): ReservedCacheNodeNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13913,8 +13729,8 @@ const de_ReservedCacheNodeQuotaExceededFault = ( context: __SerdeContext ): ReservedCacheNodeQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -13924,34 +13740,31 @@ const de_ReservedCacheNodeQuotaExceededFault = ( */ const de_ReservedCacheNodesOffering = (output: any, context: __SerdeContext): ReservedCacheNodesOffering => { const contents: any = {}; - if (output["ReservedCacheNodesOfferingId"] !== undefined) { - contents.ReservedCacheNodesOfferingId = __expectString(output["ReservedCacheNodesOfferingId"]); + if (output[_RCNOI] != null) { + contents[_RCNOI] = __expectString(output[_RCNOI]); } - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["Duration"]) as number; + if (output[_Du] != null) { + contents[_Du] = __strictParseInt32(output[_Du]) as number; } - if (output["FixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; + if (output[_FP] != null) { + contents[_FP] = __strictParseFloat(output[_FP]) as number; } - if (output["UsagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["UsagePrice"]) as number; + if (output[_UP] != null) { + contents[_UP] = __strictParseFloat(output[_UP]) as number; } - if (output["ProductDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["ProductDescription"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } - if (output["OfferingType"] !== undefined) { - contents.OfferingType = __expectString(output["OfferingType"]); + if (output[_OT] != null) { + contents[_OT] = __expectString(output[_OT]); } if (output.RecurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) { - contents.RecurringCharges = de_RecurringChargeList( - __getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), - context - ); + contents[_RCec] = []; + } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { + contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); } return contents; }; @@ -13975,19 +13788,13 @@ const de_ReservedCacheNodesOfferingMessage = ( context: __SerdeContext ): ReservedCacheNodesOfferingMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.ReservedCacheNodesOfferings === "") { - contents.ReservedCacheNodesOfferings = []; - } else if ( - output["ReservedCacheNodesOfferings"] !== undefined && - output["ReservedCacheNodesOfferings"]["ReservedCacheNodesOffering"] !== undefined - ) { - contents.ReservedCacheNodesOfferings = de_ReservedCacheNodesOfferingList( - __getArrayIfSingleItem(output["ReservedCacheNodesOfferings"]["ReservedCacheNodesOffering"]), - context - ); + contents[_RCNO] = []; + } else if (output[_RCNO] != null && output[_RCNO][_RCNOe] != null) { + contents[_RCNO] = de_ReservedCacheNodesOfferingList(__getArrayIfSingleItem(output[_RCNO][_RCNOe]), context); } return contents; }; @@ -14000,8 +13807,8 @@ const de_ReservedCacheNodesOfferingNotFoundFault = ( context: __SerdeContext ): ReservedCacheNodesOfferingNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14011,8 +13818,8 @@ const de_ReservedCacheNodesOfferingNotFoundFault = ( */ const de_ReshardingStatus = (output: any, context: __SerdeContext): ReshardingStatus => { const contents: any = {}; - if (output["SlotMigration"] !== undefined) { - contents.SlotMigration = de_SlotMigration(output["SlotMigration"], context); + if (output[_SMl] != null) { + contents[_SMl] = de_SlotMigration(output[_SMl], context); } return contents; }; @@ -14025,8 +13832,8 @@ const de_RevokeCacheSecurityGroupIngressResult = ( context: __SerdeContext ): RevokeCacheSecurityGroupIngressResult => { const contents: any = {}; - if (output["CacheSecurityGroup"] !== undefined) { - contents.CacheSecurityGroup = de_CacheSecurityGroup(output["CacheSecurityGroup"], context); + if (output[_CSG] != null) { + contents[_CSG] = de_CacheSecurityGroup(output[_CSG], context); } return contents; }; @@ -14047,11 +13854,11 @@ const de_SecurityGroupIdsList = (output: any, context: __SerdeContext): string[] */ const de_SecurityGroupMembership = (output: any, context: __SerdeContext): SecurityGroupMembership => { const contents: any = {}; - if (output["SecurityGroupId"] !== undefined) { - contents.SecurityGroupId = __expectString(output["SecurityGroupId"]); + if (output[_SGIe] != null) { + contents[_SGIe] = __expectString(output[_SGIe]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -14072,63 +13879,60 @@ const de_SecurityGroupMembershipList = (output: any, context: __SerdeContext): S */ const de_ServerlessCache = (output: any, context: __SerdeContext): ServerlessCache => { const contents: any = {}; - if (output["ServerlessCacheName"] !== undefined) { - contents.ServerlessCacheName = __expectString(output["ServerlessCacheName"]); + if (output[_SCN] != null) { + contents[_SCN] = __expectString(output[_SCN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["MajorEngineVersion"] !== undefined) { - contents.MajorEngineVersion = __expectString(output["MajorEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } - if (output["FullEngineVersion"] !== undefined) { - contents.FullEngineVersion = __expectString(output["FullEngineVersion"]); + if (output[_FEV] != null) { + contents[_FEV] = __expectString(output[_FEV]); } - if (output["CacheUsageLimits"] !== undefined) { - contents.CacheUsageLimits = de_CacheUsageLimits(output["CacheUsageLimits"], context); + if (output[_CUL] != null) { + contents[_CUL] = de_CacheUsageLimits(output[_CUL], context); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } if (output.SecurityGroupIds === "") { - contents.SecurityGroupIds = []; - } else if (output["SecurityGroupIds"] !== undefined && output["SecurityGroupIds"]["SecurityGroupId"] !== undefined) { - contents.SecurityGroupIds = de_SecurityGroupIdsList( - __getArrayIfSingleItem(output["SecurityGroupIds"]["SecurityGroupId"]), - context - ); + contents[_SGI] = []; + } else if (output[_SGI] != null && output[_SGI][_SGIe] != null) { + contents[_SGI] = de_SecurityGroupIdsList(__getArrayIfSingleItem(output[_SGI][_SGIe]), context); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = de_Endpoint(output["Endpoint"], context); + if (output[_End] != null) { + contents[_End] = de_Endpoint(output[_End], context); } - if (output["ReaderEndpoint"] !== undefined) { - contents.ReaderEndpoint = de_Endpoint(output["ReaderEndpoint"], context); + if (output[_RE] != null) { + contents[_RE] = de_Endpoint(output[_RE], context); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["UserGroupId"] !== undefined) { - contents.UserGroupId = __expectString(output["UserGroupId"]); + if (output[_UGIs] != null) { + contents[_UGIs] = __expectString(output[_UGIs]); } if (output.SubnetIds === "") { - contents.SubnetIds = []; - } else if (output["SubnetIds"] !== undefined && output["SubnetIds"]["SubnetId"] !== undefined) { - contents.SubnetIds = de_SubnetIdsList(__getArrayIfSingleItem(output["SubnetIds"]["SubnetId"]), context); + contents[_SI] = []; + } else if (output[_SI] != null && output[_SI][_SIu] != null) { + contents[_SI] = de_SubnetIdsList(__getArrayIfSingleItem(output[_SI][_SIu]), context); } - if (output["SnapshotRetentionLimit"] !== undefined) { - contents.SnapshotRetentionLimit = __strictParseInt32(output["SnapshotRetentionLimit"]) as number; + if (output[_SRL] != null) { + contents[_SRL] = __strictParseInt32(output[_SRL]) as number; } - if (output["DailySnapshotTime"] !== undefined) { - contents.DailySnapshotTime = __expectString(output["DailySnapshotTime"]); + if (output[_DST] != null) { + contents[_DST] = __expectString(output[_DST]); } return contents; }; @@ -14141,8 +13945,8 @@ const de_ServerlessCacheAlreadyExistsFault = ( context: __SerdeContext ): ServerlessCacheAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14152,14 +13956,14 @@ const de_ServerlessCacheAlreadyExistsFault = ( */ const de_ServerlessCacheConfiguration = (output: any, context: __SerdeContext): ServerlessCacheConfiguration => { const contents: any = {}; - if (output["ServerlessCacheName"] !== undefined) { - contents.ServerlessCacheName = __expectString(output["ServerlessCacheName"]); + if (output[_SCN] != null) { + contents[_SCN] = __expectString(output[_SCN]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["MajorEngineVersion"] !== undefined) { - contents.MajorEngineVersion = __expectString(output["MajorEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } return contents; }; @@ -14180,8 +13984,8 @@ const de_ServerlessCacheList = (output: any, context: __SerdeContext): Serverles */ const de_ServerlessCacheNotFoundFault = (output: any, context: __SerdeContext): ServerlessCacheNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14194,8 +13998,8 @@ const de_ServerlessCacheQuotaForCustomerExceededFault = ( context: __SerdeContext ): ServerlessCacheQuotaForCustomerExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14205,35 +14009,32 @@ const de_ServerlessCacheQuotaForCustomerExceededFault = ( */ const de_ServerlessCacheSnapshot = (output: any, context: __SerdeContext): ServerlessCacheSnapshot => { const contents: any = {}; - if (output["ServerlessCacheSnapshotName"] !== undefined) { - contents.ServerlessCacheSnapshotName = __expectString(output["ServerlessCacheSnapshotName"]); + if (output[_SCSN] != null) { + contents[_SCSN] = __expectString(output[_SCSN]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["SnapshotType"] !== undefined) { - contents.SnapshotType = __expectString(output["SnapshotType"]); + if (output[_STn] != null) { + contents[_STn] = __expectString(output[_STn]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["ExpiryTime"] !== undefined) { - contents.ExpiryTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ExpiryTime"])); + if (output[_ETx] != null) { + contents[_ETx] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ETx])); } - if (output["BytesUsedForCache"] !== undefined) { - contents.BytesUsedForCache = __expectString(output["BytesUsedForCache"]); + if (output[_BUFC] != null) { + contents[_BUFC] = __expectString(output[_BUFC]); } - if (output["ServerlessCacheConfiguration"] !== undefined) { - contents.ServerlessCacheConfiguration = de_ServerlessCacheConfiguration( - output["ServerlessCacheConfiguration"], - context - ); + if (output[_SCC] != null) { + contents[_SCC] = de_ServerlessCacheConfiguration(output[_SCC], context); } return contents; }; @@ -14246,8 +14047,8 @@ const de_ServerlessCacheSnapshotAlreadyExistsFault = ( context: __SerdeContext ): ServerlessCacheSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14271,8 +14072,8 @@ const de_ServerlessCacheSnapshotNotFoundFault = ( context: __SerdeContext ): ServerlessCacheSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14285,8 +14086,8 @@ const de_ServerlessCacheSnapshotQuotaExceededFault = ( context: __SerdeContext ): ServerlessCacheSnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14296,8 +14097,8 @@ const de_ServerlessCacheSnapshotQuotaExceededFault = ( */ const de_ServiceLinkedRoleNotFoundFault = (output: any, context: __SerdeContext): ServiceLinkedRoleNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14307,45 +14108,41 @@ const de_ServiceLinkedRoleNotFoundFault = (output: any, context: __SerdeContext) */ const de_ServiceUpdate = (output: any, context: __SerdeContext): ServiceUpdate => { const contents: any = {}; - if (output["ServiceUpdateName"] !== undefined) { - contents.ServiceUpdateName = __expectString(output["ServiceUpdateName"]); + if (output[_SUN] != null) { + contents[_SUN] = __expectString(output[_SUN]); } - if (output["ServiceUpdateReleaseDate"] !== undefined) { - contents.ServiceUpdateReleaseDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ServiceUpdateReleaseDate"]) - ); + if (output[_SURD] != null) { + contents[_SURD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SURD])); } - if (output["ServiceUpdateEndDate"] !== undefined) { - contents.ServiceUpdateEndDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ServiceUpdateEndDate"])); + if (output[_SUED] != null) { + contents[_SUED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SUED])); } - if (output["ServiceUpdateSeverity"] !== undefined) { - contents.ServiceUpdateSeverity = __expectString(output["ServiceUpdateSeverity"]); + if (output[_SUSe] != null) { + contents[_SUSe] = __expectString(output[_SUSe]); } - if (output["ServiceUpdateRecommendedApplyByDate"] !== undefined) { - contents.ServiceUpdateRecommendedApplyByDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ServiceUpdateRecommendedApplyByDate"]) - ); + if (output[_SURABD] != null) { + contents[_SURABD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SURABD])); } - if (output["ServiceUpdateStatus"] !== undefined) { - contents.ServiceUpdateStatus = __expectString(output["ServiceUpdateStatus"]); + if (output[_SUS] != null) { + contents[_SUS] = __expectString(output[_SUS]); } - if (output["ServiceUpdateDescription"] !== undefined) { - contents.ServiceUpdateDescription = __expectString(output["ServiceUpdateDescription"]); + if (output[_SUD] != null) { + contents[_SUD] = __expectString(output[_SUD]); } - if (output["ServiceUpdateType"] !== undefined) { - contents.ServiceUpdateType = __expectString(output["ServiceUpdateType"]); + if (output[_SUT] != null) { + contents[_SUT] = __expectString(output[_SUT]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["AutoUpdateAfterRecommendedApplyByDate"] !== undefined) { - contents.AutoUpdateAfterRecommendedApplyByDate = __parseBoolean(output["AutoUpdateAfterRecommendedApplyByDate"]); + if (output[_AUARABD] != null) { + contents[_AUARABD] = __parseBoolean(output[_AUARABD]); } - if (output["EstimatedUpdateTime"] !== undefined) { - contents.EstimatedUpdateTime = __expectString(output["EstimatedUpdateTime"]); + if (output[_EUT] != null) { + contents[_EUT] = __expectString(output[_EUT]); } return contents; }; @@ -14366,8 +14163,8 @@ const de_ServiceUpdateList = (output: any, context: __SerdeContext): ServiceUpda */ const de_ServiceUpdateNotFoundFault = (output: any, context: __SerdeContext): ServiceUpdateNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14377,16 +14174,13 @@ const de_ServiceUpdateNotFoundFault = (output: any, context: __SerdeContext): Se */ const de_ServiceUpdatesMessage = (output: any, context: __SerdeContext): ServiceUpdatesMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.ServiceUpdates === "") { - contents.ServiceUpdates = []; - } else if (output["ServiceUpdates"] !== undefined && output["ServiceUpdates"]["ServiceUpdate"] !== undefined) { - contents.ServiceUpdates = de_ServiceUpdateList( - __getArrayIfSingleItem(output["ServiceUpdates"]["ServiceUpdate"]), - context - ); + contents[_SU] = []; + } else if (output[_SU] != null && output[_SU][_SUe] != null) { + contents[_SU] = de_ServiceUpdateList(__getArrayIfSingleItem(output[_SU][_SUe]), context); } return contents; }; @@ -14396,8 +14190,8 @@ const de_ServiceUpdatesMessage = (output: any, context: __SerdeContext): Service */ const de_SlotMigration = (output: any, context: __SerdeContext): SlotMigration => { const contents: any = {}; - if (output["ProgressPercentage"] !== undefined) { - contents.ProgressPercentage = __strictParseFloat(output["ProgressPercentage"]) as number; + if (output[_PP] != null) { + contents[_PP] = __strictParseFloat(output[_PP]) as number; } return contents; }; @@ -14407,96 +14201,91 @@ const de_SlotMigration = (output: any, context: __SerdeContext): SlotMigration = */ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { const contents: any = {}; - if (output["SnapshotName"] !== undefined) { - contents.SnapshotName = __expectString(output["SnapshotName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["ReplicationGroupId"] !== undefined) { - contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); + if (output[_RGIe] != null) { + contents[_RGIe] = __expectString(output[_RGIe]); } - if (output["ReplicationGroupDescription"] !== undefined) { - contents.ReplicationGroupDescription = __expectString(output["ReplicationGroupDescription"]); + if (output[_RGD] != null) { + contents[_RGD] = __expectString(output[_RGD]); } - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["SnapshotStatus"] !== undefined) { - contents.SnapshotStatus = __expectString(output["SnapshotStatus"]); + if (output[_SSn] != null) { + contents[_SSn] = __expectString(output[_SSn]); } - if (output["SnapshotSource"] !== undefined) { - contents.SnapshotSource = __expectString(output["SnapshotSource"]); + if (output[_SS] != null) { + contents[_SS] = __expectString(output[_SS]); } - if (output["CacheNodeType"] !== undefined) { - contents.CacheNodeType = __expectString(output["CacheNodeType"]); + if (output[_CNT] != null) { + contents[_CNT] = __expectString(output[_CNT]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["NumCacheNodes"] !== undefined) { - contents.NumCacheNodes = __strictParseInt32(output["NumCacheNodes"]) as number; + if (output[_NCN] != null) { + contents[_NCN] = __strictParseInt32(output[_NCN]) as number; } - if (output["PreferredAvailabilityZone"] !== undefined) { - contents.PreferredAvailabilityZone = __expectString(output["PreferredAvailabilityZone"]); + if (output[_PAZr] != null) { + contents[_PAZr] = __expectString(output[_PAZr]); } - if (output["PreferredOutpostArn"] !== undefined) { - contents.PreferredOutpostArn = __expectString(output["PreferredOutpostArn"]); + if (output[_POAr] != null) { + contents[_POAr] = __expectString(output[_POAr]); } - if (output["CacheClusterCreateTime"] !== undefined) { - contents.CacheClusterCreateTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["CacheClusterCreateTime"]) - ); + if (output[_CCCT] != null) { + contents[_CCCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCCT])); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_Po] != null) { + contents[_Po] = __strictParseInt32(output[_Po]) as number; } - if (output["CacheParameterGroupName"] !== undefined) { - contents.CacheParameterGroupName = __expectString(output["CacheParameterGroupName"]); + if (output[_CPGN] != null) { + contents[_CPGN] = __expectString(output[_CPGN]); } - if (output["CacheSubnetGroupName"] !== undefined) { - contents.CacheSubnetGroupName = __expectString(output["CacheSubnetGroupName"]); + if (output[_CSGNa] != null) { + contents[_CSGNa] = __expectString(output[_CSGNa]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["AutoMinorVersionUpgrade"] !== undefined) { - contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); + if (output[_AMVU] != null) { + contents[_AMVU] = __parseBoolean(output[_AMVU]); } - if (output["SnapshotRetentionLimit"] !== undefined) { - contents.SnapshotRetentionLimit = __strictParseInt32(output["SnapshotRetentionLimit"]) as number; + if (output[_SRL] != null) { + contents[_SRL] = __strictParseInt32(output[_SRL]) as number; } - if (output["SnapshotWindow"] !== undefined) { - contents.SnapshotWindow = __expectString(output["SnapshotWindow"]); + if (output[_SW] != null) { + contents[_SW] = __expectString(output[_SW]); } - if (output["NumNodeGroups"] !== undefined) { - contents.NumNodeGroups = __strictParseInt32(output["NumNodeGroups"]) as number; + if (output[_NNG] != null) { + contents[_NNG] = __strictParseInt32(output[_NNG]) as number; } - if (output["AutomaticFailover"] !== undefined) { - contents.AutomaticFailover = __expectString(output["AutomaticFailover"]); + if (output[_AF] != null) { + contents[_AF] = __expectString(output[_AF]); } if (output.NodeSnapshots === "") { - contents.NodeSnapshots = []; - } else if (output["NodeSnapshots"] !== undefined && output["NodeSnapshots"]["NodeSnapshot"] !== undefined) { - contents.NodeSnapshots = de_NodeSnapshotList( - __getArrayIfSingleItem(output["NodeSnapshots"]["NodeSnapshot"]), - context - ); + contents[_NS] = []; + } else if (output[_NS] != null && output[_NS][_NSo] != null) { + contents[_NS] = de_NodeSnapshotList(__getArrayIfSingleItem(output[_NS][_NSo]), context); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } - if (output["DataTiering"] !== undefined) { - contents.DataTiering = __expectString(output["DataTiering"]); + if (output[_DTat] != null) { + contents[_DTat] = __expectString(output[_DTat]); } return contents; }; @@ -14506,8 +14295,8 @@ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { */ const de_SnapshotAlreadyExistsFault = (output: any, context: __SerdeContext): SnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14520,8 +14309,8 @@ const de_SnapshotFeatureNotSupportedFault = ( context: __SerdeContext ): SnapshotFeatureNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14542,8 +14331,8 @@ const de_SnapshotList = (output: any, context: __SerdeContext): Snapshot[] => { */ const de_SnapshotNotFoundFault = (output: any, context: __SerdeContext): SnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14553,8 +14342,8 @@ const de_SnapshotNotFoundFault = (output: any, context: __SerdeContext): Snapsho */ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): SnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14564,8 +14353,8 @@ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): Sn */ const de_StartMigrationResponse = (output: any, context: __SerdeContext): StartMigrationResponse => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -14575,22 +14364,19 @@ const de_StartMigrationResponse = (output: any, context: __SerdeContext): StartM */ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { const contents: any = {}; - if (output["SubnetIdentifier"] !== undefined) { - contents.SubnetIdentifier = __expectString(output["SubnetIdentifier"]); + if (output[_SIub] != null) { + contents[_SIub] = __expectString(output[_SIub]); } - if (output["SubnetAvailabilityZone"] !== undefined) { - contents.SubnetAvailabilityZone = de_AvailabilityZone(output["SubnetAvailabilityZone"], context); + if (output[_SAZ] != null) { + contents[_SAZ] = de_AvailabilityZone(output[_SAZ], context); } - if (output["SubnetOutpost"] !== undefined) { - contents.SubnetOutpost = de_SubnetOutpost(output["SubnetOutpost"], context); + if (output[_SO] != null) { + contents[_SO] = de_SubnetOutpost(output[_SO], context); } if (output.SupportedNetworkTypes === "") { - contents.SupportedNetworkTypes = []; - } else if (output["SupportedNetworkTypes"] !== undefined && output["SupportedNetworkTypes"]["member"] !== undefined) { - contents.SupportedNetworkTypes = de_NetworkTypeList( - __getArrayIfSingleItem(output["SupportedNetworkTypes"]["member"]), - context - ); + contents[_SNT] = []; + } else if (output[_SNT] != null && output[_SNT][_m] != null) { + contents[_SNT] = de_NetworkTypeList(__getArrayIfSingleItem(output[_SNT][_m]), context); } return contents; }; @@ -14611,8 +14397,8 @@ const de_SubnetIdsList = (output: any, context: __SerdeContext): string[] => { */ const de_SubnetInUse = (output: any, context: __SerdeContext): SubnetInUse => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14633,8 +14419,8 @@ const de_SubnetList = (output: any, context: __SerdeContext): Subnet[] => { */ const de_SubnetNotAllowedFault = (output: any, context: __SerdeContext): SubnetNotAllowedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14644,8 +14430,8 @@ const de_SubnetNotAllowedFault = (output: any, context: __SerdeContext): SubnetN */ const de_SubnetOutpost = (output: any, context: __SerdeContext): SubnetOutpost => { const contents: any = {}; - if (output["SubnetOutpostArn"] !== undefined) { - contents.SubnetOutpostArn = __expectString(output["SubnetOutpostArn"]); + if (output[_SOA] != null) { + contents[_SOA] = __expectString(output[_SOA]); } return contents; }; @@ -14655,11 +14441,11 @@ const de_SubnetOutpost = (output: any, context: __SerdeContext): SubnetOutpost = */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -14681,9 +14467,9 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Ta] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Ta]), context); } return contents; }; @@ -14693,8 +14479,8 @@ const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage */ const de_TagNotFoundFault = (output: any, context: __SerdeContext): TagNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14704,8 +14490,8 @@ const de_TagNotFoundFault = (output: any, context: __SerdeContext): TagNotFoundF */ const de_TagQuotaPerResourceExceeded = (output: any, context: __SerdeContext): TagQuotaPerResourceExceeded => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14715,8 +14501,8 @@ const de_TagQuotaPerResourceExceeded = (output: any, context: __SerdeContext): T */ const de_TestFailoverNotAvailableFault = (output: any, context: __SerdeContext): TestFailoverNotAvailableFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14726,8 +14512,8 @@ const de_TestFailoverNotAvailableFault = (output: any, context: __SerdeContext): */ const de_TestFailoverResult = (output: any, context: __SerdeContext): TestFailoverResult => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -14737,8 +14523,8 @@ const de_TestFailoverResult = (output: any, context: __SerdeContext): TestFailov */ const de_TestMigrationResponse = (output: any, context: __SerdeContext): TestMigrationResponse => { const contents: any = {}; - if (output["ReplicationGroup"] !== undefined) { - contents.ReplicationGroup = de_ReplicationGroup(output["ReplicationGroup"], context); + if (output[_RG] != null) { + contents[_RG] = de_ReplicationGroup(output[_RG], context); } return contents; }; @@ -14770,20 +14556,20 @@ const de_UGServerlessCacheIdList = (output: any, context: __SerdeContext): strin */ const de_UnprocessedUpdateAction = (output: any, context: __SerdeContext): UnprocessedUpdateAction => { const contents: any = {}; - if (output["ReplicationGroupId"] !== undefined) { - contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); + if (output[_RGIe] != null) { + contents[_RGIe] = __expectString(output[_RGIe]); } - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["ServiceUpdateName"] !== undefined) { - contents.ServiceUpdateName = __expectString(output["ServiceUpdateName"]); + if (output[_SUN] != null) { + contents[_SUN] = __expectString(output[_SUN]); } - if (output["ErrorType"] !== undefined) { - contents.ErrorType = __expectString(output["ErrorType"]); + if (output[_ETr] != null) { + contents[_ETr] = __expectString(output[_ETr]); } - if (output["ErrorMessage"] !== undefined) { - contents.ErrorMessage = __expectString(output["ErrorMessage"]); + if (output[_EM] != null) { + contents[_EM] = __expectString(output[_EM]); } return contents; }; @@ -14804,80 +14590,60 @@ const de_UnprocessedUpdateActionList = (output: any, context: __SerdeContext): U */ const de_UpdateAction = (output: any, context: __SerdeContext): UpdateAction => { const contents: any = {}; - if (output["ReplicationGroupId"] !== undefined) { - contents.ReplicationGroupId = __expectString(output["ReplicationGroupId"]); + if (output[_RGIe] != null) { + contents[_RGIe] = __expectString(output[_RGIe]); } - if (output["CacheClusterId"] !== undefined) { - contents.CacheClusterId = __expectString(output["CacheClusterId"]); + if (output[_CCIa] != null) { + contents[_CCIa] = __expectString(output[_CCIa]); } - if (output["ServiceUpdateName"] !== undefined) { - contents.ServiceUpdateName = __expectString(output["ServiceUpdateName"]); + if (output[_SUN] != null) { + contents[_SUN] = __expectString(output[_SUN]); } - if (output["ServiceUpdateReleaseDate"] !== undefined) { - contents.ServiceUpdateReleaseDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ServiceUpdateReleaseDate"]) - ); + if (output[_SURD] != null) { + contents[_SURD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SURD])); } - if (output["ServiceUpdateSeverity"] !== undefined) { - contents.ServiceUpdateSeverity = __expectString(output["ServiceUpdateSeverity"]); + if (output[_SUSe] != null) { + contents[_SUSe] = __expectString(output[_SUSe]); } - if (output["ServiceUpdateStatus"] !== undefined) { - contents.ServiceUpdateStatus = __expectString(output["ServiceUpdateStatus"]); + if (output[_SUS] != null) { + contents[_SUS] = __expectString(output[_SUS]); } - if (output["ServiceUpdateRecommendedApplyByDate"] !== undefined) { - contents.ServiceUpdateRecommendedApplyByDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ServiceUpdateRecommendedApplyByDate"]) - ); + if (output[_SURABD] != null) { + contents[_SURABD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SURABD])); } - if (output["ServiceUpdateType"] !== undefined) { - contents.ServiceUpdateType = __expectString(output["ServiceUpdateType"]); + if (output[_SUT] != null) { + contents[_SUT] = __expectString(output[_SUT]); } - if (output["UpdateActionAvailableDate"] !== undefined) { - contents.UpdateActionAvailableDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["UpdateActionAvailableDate"]) - ); + if (output[_UAAD] != null) { + contents[_UAAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UAAD])); } - if (output["UpdateActionStatus"] !== undefined) { - contents.UpdateActionStatus = __expectString(output["UpdateActionStatus"]); + if (output[_UAS] != null) { + contents[_UAS] = __expectString(output[_UAS]); } - if (output["NodesUpdated"] !== undefined) { - contents.NodesUpdated = __expectString(output["NodesUpdated"]); + if (output[_NU] != null) { + contents[_NU] = __expectString(output[_NU]); } - if (output["UpdateActionStatusModifiedDate"] !== undefined) { - contents.UpdateActionStatusModifiedDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["UpdateActionStatusModifiedDate"]) - ); + if (output[_UASMD] != null) { + contents[_UASMD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UASMD])); } - if (output["SlaMet"] !== undefined) { - contents.SlaMet = __expectString(output["SlaMet"]); + if (output[_SMla] != null) { + contents[_SMla] = __expectString(output[_SMla]); } if (output.NodeGroupUpdateStatus === "") { - contents.NodeGroupUpdateStatus = []; - } else if ( - output["NodeGroupUpdateStatus"] !== undefined && - output["NodeGroupUpdateStatus"]["NodeGroupUpdateStatus"] !== undefined - ) { - contents.NodeGroupUpdateStatus = de_NodeGroupUpdateStatusList( - __getArrayIfSingleItem(output["NodeGroupUpdateStatus"]["NodeGroupUpdateStatus"]), - context - ); + contents[_NGUS] = []; + } else if (output[_NGUS] != null && output[_NGUS][_NGUS] != null) { + contents[_NGUS] = de_NodeGroupUpdateStatusList(__getArrayIfSingleItem(output[_NGUS][_NGUS]), context); } if (output.CacheNodeUpdateStatus === "") { - contents.CacheNodeUpdateStatus = []; - } else if ( - output["CacheNodeUpdateStatus"] !== undefined && - output["CacheNodeUpdateStatus"]["CacheNodeUpdateStatus"] !== undefined - ) { - contents.CacheNodeUpdateStatus = de_CacheNodeUpdateStatusList( - __getArrayIfSingleItem(output["CacheNodeUpdateStatus"]["CacheNodeUpdateStatus"]), - context - ); + contents[_CNUS] = []; + } else if (output[_CNUS] != null && output[_CNUS][_CNUS] != null) { + contents[_CNUS] = de_CacheNodeUpdateStatusList(__getArrayIfSingleItem(output[_CNUS][_CNUS]), context); } - if (output["EstimatedUpdateTime"] !== undefined) { - contents.EstimatedUpdateTime = __expectString(output["EstimatedUpdateTime"]); + if (output[_EUT] != null) { + contents[_EUT] = __expectString(output[_EUT]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } return contents; }; @@ -14899,26 +14665,14 @@ const de_UpdateActionList = (output: any, context: __SerdeContext): UpdateAction const de_UpdateActionResultsMessage = (output: any, context: __SerdeContext): UpdateActionResultsMessage => { const contents: any = {}; if (output.ProcessedUpdateActions === "") { - contents.ProcessedUpdateActions = []; - } else if ( - output["ProcessedUpdateActions"] !== undefined && - output["ProcessedUpdateActions"]["ProcessedUpdateAction"] !== undefined - ) { - contents.ProcessedUpdateActions = de_ProcessedUpdateActionList( - __getArrayIfSingleItem(output["ProcessedUpdateActions"]["ProcessedUpdateAction"]), - context - ); + contents[_PUA] = []; + } else if (output[_PUA] != null && output[_PUA][_PUAr] != null) { + contents[_PUA] = de_ProcessedUpdateActionList(__getArrayIfSingleItem(output[_PUA][_PUAr]), context); } if (output.UnprocessedUpdateActions === "") { - contents.UnprocessedUpdateActions = []; - } else if ( - output["UnprocessedUpdateActions"] !== undefined && - output["UnprocessedUpdateActions"]["UnprocessedUpdateAction"] !== undefined - ) { - contents.UnprocessedUpdateActions = de_UnprocessedUpdateActionList( - __getArrayIfSingleItem(output["UnprocessedUpdateActions"]["UnprocessedUpdateAction"]), - context - ); + contents[_UUA] = []; + } else if (output[_UUA] != null && output[_UUA][_UUAn] != null) { + contents[_UUA] = de_UnprocessedUpdateActionList(__getArrayIfSingleItem(output[_UUA][_UUAn]), context); } return contents; }; @@ -14928,16 +14682,13 @@ const de_UpdateActionResultsMessage = (output: any, context: __SerdeContext): Up */ const de_UpdateActionsMessage = (output: any, context: __SerdeContext): UpdateActionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.UpdateActions === "") { - contents.UpdateActions = []; - } else if (output["UpdateActions"] !== undefined && output["UpdateActions"]["UpdateAction"] !== undefined) { - contents.UpdateActions = de_UpdateActionList( - __getArrayIfSingleItem(output["UpdateActions"]["UpdateAction"]), - context - ); + contents[_UA] = []; + } else if (output[_UA] != null && output[_UA][_UAp] != null) { + contents[_UA] = de_UpdateActionList(__getArrayIfSingleItem(output[_UA][_UAp]), context); } return contents; }; @@ -14947,34 +14698,34 @@ const de_UpdateActionsMessage = (output: any, context: __SerdeContext): UpdateAc */ const de_User = (output: any, context: __SerdeContext): User => { const contents: any = {}; - if (output["UserId"] !== undefined) { - contents.UserId = __expectString(output["UserId"]); + if (output[_UIs] != null) { + contents[_UIs] = __expectString(output[_UIs]); } - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEVi] != null) { + contents[_MEVi] = __expectString(output[_MEVi]); } - if (output["AccessString"] !== undefined) { - contents.AccessString = __expectString(output["AccessString"]); + if (output[_AS] != null) { + contents[_AS] = __expectString(output[_AS]); } if (output.UserGroupIds === "") { - contents.UserGroupIds = []; - } else if (output["UserGroupIds"] !== undefined && output["UserGroupIds"]["member"] !== undefined) { - contents.UserGroupIds = de_UserGroupIdList(__getArrayIfSingleItem(output["UserGroupIds"]["member"]), context); + contents[_UGI] = []; + } else if (output[_UGI] != null && output[_UGI][_m] != null) { + contents[_UGI] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGI][_m]), context); } - if (output["Authentication"] !== undefined) { - contents.Authentication = de_Authentication(output["Authentication"], context); + if (output[_Au] != null) { + contents[_Au] = de_Authentication(output[_Au], context); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } return contents; }; @@ -14984,8 +14735,8 @@ const de_User = (output: any, context: __SerdeContext): User => { */ const de_UserAlreadyExistsFault = (output: any, context: __SerdeContext): UserAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -14995,44 +14746,38 @@ const de_UserAlreadyExistsFault = (output: any, context: __SerdeContext): UserAl */ const de_UserGroup = (output: any, context: __SerdeContext): UserGroup => { const contents: any = {}; - if (output["UserGroupId"] !== undefined) { - contents.UserGroupId = __expectString(output["UserGroupId"]); + if (output[_UGIs] != null) { + contents[_UGIs] = __expectString(output[_UGIs]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } if (output.UserIds === "") { - contents.UserIds = []; - } else if (output["UserIds"] !== undefined && output["UserIds"]["member"] !== undefined) { - contents.UserIds = de_UserIdList(__getArrayIfSingleItem(output["UserIds"]["member"]), context); + contents[_UI] = []; + } else if (output[_UI] != null && output[_UI][_m] != null) { + contents[_UI] = de_UserIdList(__getArrayIfSingleItem(output[_UI][_m]), context); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEVi] != null) { + contents[_MEVi] = __expectString(output[_MEVi]); } - if (output["PendingChanges"] !== undefined) { - contents.PendingChanges = de_UserGroupPendingChanges(output["PendingChanges"], context); + if (output[_PCe] != null) { + contents[_PCe] = de_UserGroupPendingChanges(output[_PCe], context); } if (output.ReplicationGroups === "") { - contents.ReplicationGroups = []; - } else if (output["ReplicationGroups"] !== undefined && output["ReplicationGroups"]["member"] !== undefined) { - contents.ReplicationGroups = de_UGReplicationGroupIdList( - __getArrayIfSingleItem(output["ReplicationGroups"]["member"]), - context - ); + contents[_RGe] = []; + } else if (output[_RGe] != null && output[_RGe][_m] != null) { + contents[_RGe] = de_UGReplicationGroupIdList(__getArrayIfSingleItem(output[_RGe][_m]), context); } if (output.ServerlessCaches === "") { - contents.ServerlessCaches = []; - } else if (output["ServerlessCaches"] !== undefined && output["ServerlessCaches"]["member"] !== undefined) { - contents.ServerlessCaches = de_UGServerlessCacheIdList( - __getArrayIfSingleItem(output["ServerlessCaches"]["member"]), - context - ); + contents[_SCe] = []; + } else if (output[_SCe] != null && output[_SCe][_m] != null) { + contents[_SCe] = de_UGServerlessCacheIdList(__getArrayIfSingleItem(output[_SCe][_m]), context); } - if (output["ARN"] !== undefined) { - contents.ARN = __expectString(output["ARN"]); + if (output[_ARN] != null) { + contents[_ARN] = __expectString(output[_ARN]); } return contents; }; @@ -15042,8 +14787,8 @@ const de_UserGroup = (output: any, context: __SerdeContext): UserGroup => { */ const de_UserGroupAlreadyExistsFault = (output: any, context: __SerdeContext): UserGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -15075,8 +14820,8 @@ const de_UserGroupList = (output: any, context: __SerdeContext): UserGroup[] => */ const de_UserGroupNotFoundFault = (output: any, context: __SerdeContext): UserGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -15087,14 +14832,14 @@ const de_UserGroupNotFoundFault = (output: any, context: __SerdeContext): UserGr const de_UserGroupPendingChanges = (output: any, context: __SerdeContext): UserGroupPendingChanges => { const contents: any = {}; if (output.UserIdsToRemove === "") { - contents.UserIdsToRemove = []; - } else if (output["UserIdsToRemove"] !== undefined && output["UserIdsToRemove"]["member"] !== undefined) { - contents.UserIdsToRemove = de_UserIdList(__getArrayIfSingleItem(output["UserIdsToRemove"]["member"]), context); + contents[_UITR] = []; + } else if (output[_UITR] != null && output[_UITR][_m] != null) { + contents[_UITR] = de_UserIdList(__getArrayIfSingleItem(output[_UITR][_m]), context); } if (output.UserIdsToAdd === "") { - contents.UserIdsToAdd = []; - } else if (output["UserIdsToAdd"] !== undefined && output["UserIdsToAdd"]["member"] !== undefined) { - contents.UserIdsToAdd = de_UserIdList(__getArrayIfSingleItem(output["UserIdsToAdd"]["member"]), context); + contents[_UITA] = []; + } else if (output[_UITA] != null && output[_UITA][_m] != null) { + contents[_UITA] = de_UserIdList(__getArrayIfSingleItem(output[_UITA][_m]), context); } return contents; }; @@ -15104,8 +14849,8 @@ const de_UserGroupPendingChanges = (output: any, context: __SerdeContext): UserG */ const de_UserGroupQuotaExceededFault = (output: any, context: __SerdeContext): UserGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -15116,20 +14861,14 @@ const de_UserGroupQuotaExceededFault = (output: any, context: __SerdeContext): U const de_UserGroupsUpdateStatus = (output: any, context: __SerdeContext): UserGroupsUpdateStatus => { const contents: any = {}; if (output.UserGroupIdsToAdd === "") { - contents.UserGroupIdsToAdd = []; - } else if (output["UserGroupIdsToAdd"] !== undefined && output["UserGroupIdsToAdd"]["member"] !== undefined) { - contents.UserGroupIdsToAdd = de_UserGroupIdList( - __getArrayIfSingleItem(output["UserGroupIdsToAdd"]["member"]), - context - ); + contents[_UGITA] = []; + } else if (output[_UGITA] != null && output[_UGITA][_m] != null) { + contents[_UGITA] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGITA][_m]), context); } if (output.UserGroupIdsToRemove === "") { - contents.UserGroupIdsToRemove = []; - } else if (output["UserGroupIdsToRemove"] !== undefined && output["UserGroupIdsToRemove"]["member"] !== undefined) { - contents.UserGroupIdsToRemove = de_UserGroupIdList( - __getArrayIfSingleItem(output["UserGroupIdsToRemove"]["member"]), - context - ); + contents[_UGITR] = []; + } else if (output[_UGITR] != null && output[_UGITR][_m] != null) { + contents[_UGITR] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGITR][_m]), context); } return contents; }; @@ -15161,8 +14900,8 @@ const de_UserList = (output: any, context: __SerdeContext): User[] => { */ const de_UserNotFoundFault = (output: any, context: __SerdeContext): UserNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -15172,8 +14911,8 @@ const de_UserNotFoundFault = (output: any, context: __SerdeContext): UserNotFoun */ const de_UserQuotaExceededFault = (output: any, context: __SerdeContext): UserQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_me] != null) { + contents[_me] = __expectString(output[_me]); } return contents; }; @@ -15219,6 +14958,430 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2015-02-02"; +const _A = "Action"; +const _AAS = "AppendAccessString"; +const _ACSGI = "AuthorizeCacheSecurityGroupIngress"; +const _AF = "AutomaticFailover"; +const _AFE = "AutomaticFailoverEnabled"; +const _AFS = "AutomaticFailoverStatus"; +const _AI = "ApplyImmediately"; +const _AM = "AuthenticationMode"; +const _AMVU = "AutoMinorVersionUpgrade"; +const _AREE = "AtRestEncryptionEnabled"; +const _ARN = "ARN"; +const _AS = "AccessString"; +const _AT = "AuthToken"; +const _ATE = "AuthTokenEnabled"; +const _ATLMD = "AuthTokenLastModifiedDate"; +const _ATS = "AuthTokenStatus"; +const _ATTR = "AddTagsToResource"; +const _ATUS = "AuthTokenUpdateStrategy"; +const _AUARABD = "AutoUpdateAfterRecommendedApplyByDate"; +const _AV = "AllowedValues"; +const _AZ = "AvailabilityZone"; +const _AZM = "AZMode"; +const _Ad = "Address"; +const _Au = "Authentication"; +const _BAUA = "BatchApplyUpdateAction"; +const _BSUA = "BatchStopUpdateAction"; +const _BUFC = "BytesUsedForCache"; +const _CAZ = "CustomerAvailabilityZone"; +const _CC = "CacheClusters"; +const _CCC = "CreateCacheCluster"; +const _CCCT = "CacheClusterCreateTime"; +const _CCI = "CacheClusterIds"; +const _CCIa = "CacheClusterId"; +const _CCPG = "CreateCacheParameterGroup"; +const _CCS = "CacheClusterStatus"; +const _CCSG = "CreateCacheSecurityGroup"; +const _CCSGr = "CreateCacheSubnetGroup"; +const _CCa = "CacheCluster"; +const _CDLP = "ClientDownloadLandingPage"; +const _CE = "ConfigurationEndpoint"; +const _CED = "CacheEngineDescription"; +const _CEV = "CacheEngineVersions"; +const _CEVD = "CacheEngineVersionDescription"; +const _CEVa = "CacheEngineVersion"; +const _CEl = "ClusterEnabled"; +const _CGRG = "CreateGlobalReplicationGroup"; +const _CI = "ClusterId"; +const _CM = "CompleteMigration"; +const _CMl = "ClusterMode"; +const _CN = "CacheNodes"; +const _CNC = "CacheNodeCount"; +const _CNCT = "CacheNodeCreateTime"; +const _CNEL = "CustomerNodeEndpointList"; +const _CNI = "CacheNodeId"; +const _CNITR = "CacheNodeIdsToRemove"; +const _CNITRa = "CacheNodeIdsToReboot"; +const _CNS = "CacheNodeStatus"; +const _CNT = "CacheNodeType"; +const _CNTSP = "CacheNodeTypeSpecificParameters"; +const _CNTSPa = "CacheNodeTypeSpecificParameter"; +const _CNTSV = "CacheNodeTypeSpecificValues"; +const _CNTSVa = "CacheNodeTypeSpecificValue"; +const _CNUS = "CacheNodeUpdateStatus"; +const _CNa = "CacheNode"; +const _COA = "CustomerOutpostArn"; +const _CPG = "CacheParameterGroup"; +const _CPGF = "CacheParameterGroupFamily"; +const _CPGN = "CacheParameterGroupName"; +const _CPGa = "CacheParameterGroups"; +const _CR = "CurrentRole"; +const _CRG = "CreateReplicationGroup"; +const _CS = "CopySnapshot"; +const _CSC = "CreateServerlessCache"; +const _CSCS = "CopyServerlessCacheSnapshot"; +const _CSCSr = "CreateServerlessCacheSnapshot"; +const _CSG = "CacheSecurityGroup"; +const _CSGD = "CacheSubnetGroupDescription"; +const _CSGN = "CacheSecurityGroupName"; +const _CSGNa = "CacheSubnetGroupName"; +const _CSGNac = "CacheSecurityGroupNames"; +const _CSGa = "CacheSecurityGroups"; +const _CSGac = "CacheSubnetGroups"; +const _CSGach = "CacheSubnetGroup"; +const _CSa = "CacheSize"; +const _CSr = "CreateSnapshot"; +const _CT = "ChangeType"; +const _CTr = "CreateTime"; +const _CU = "CreateUser"; +const _CUG = "CreateUserGroup"; +const _CUL = "CacheUsageLimits"; +const _CWLD = "CloudWatchLogsDetails"; +const _D = "Description"; +const _DCC = "DeleteCacheCluster"; +const _DCCe = "DescribeCacheClusters"; +const _DCEV = "DescribeCacheEngineVersions"; +const _DCP = "DescribeCacheParameters"; +const _DCPG = "DeleteCacheParameterGroup"; +const _DCPGe = "DescribeCacheParameterGroups"; +const _DCSG = "DeleteCacheSecurityGroup"; +const _DCSGe = "DeleteCacheSubnetGroup"; +const _DCSGes = "DescribeCacheSecurityGroups"; +const _DCSGesc = "DescribeCacheSubnetGroups"; +const _DD = "DestinationDetails"; +const _DE = "DescribeEvents"; +const _DEDP = "DescribeEngineDefaultParameters"; +const _DGRG = "DeleteGlobalReplicationGroup"; +const _DGRGe = "DescribeGlobalReplicationGroups"; +const _DGRGi = "DisassociateGlobalReplicationGroup"; +const _DNGIGRG = "DecreaseNodeGroupsInGlobalReplicationGroup"; +const _DO = "DefaultOnly"; +const _DRC = "DecreaseReplicaCount"; +const _DRCN = "DescribeReservedCacheNodes"; +const _DRCNO = "DescribeReservedCacheNodesOfferings"; +const _DRG = "DeleteReplicationGroup"; +const _DRGe = "DescribeReplicationGroups"; +const _DS = "DeleteSnapshot"; +const _DSC = "DeleteServerlessCache"; +const _DSCS = "DeleteServerlessCacheSnapshot"; +const _DSCSe = "DescribeServerlessCacheSnapshots"; +const _DSCe = "DescribeServerlessCaches"; +const _DST = "DailySnapshotTime"; +const _DSU = "DescribeServiceUpdates"; +const _DSa = "DataStorage"; +const _DSe = "DescribeSnapshots"; +const _DSel = "DeliveryStream"; +const _DT = "DestinationType"; +const _DTE = "DataTieringEnabled"; +const _DTa = "DataType"; +const _DTat = "DataTiering"; +const _DU = "DeleteUser"; +const _DUA = "DescribeUpdateActions"; +const _DUG = "DeleteUserGroup"; +const _DUGe = "DescribeUserGroups"; +const _DUe = "DescribeUsers"; +const _Da = "Date"; +const _Du = "Duration"; +const _E = "Engine"; +const _ECPUPS = "ECPUPerSecond"; +const _ECSG = "EC2SecurityGroups"; +const _ECSGN = "EC2SecurityGroupName"; +const _ECSGOI = "EC2SecurityGroupOwnerId"; +const _ECSGe = "EC2SecurityGroup"; +const _ED = "EngineDefaults"; +const _EM = "ErrorMessage"; +const _ESCS = "ExportServerlessCacheSnapshot"; +const _ET = "EndTime"; +const _ETr = "ErrorType"; +const _ETx = "ExpiryTime"; +const _EUT = "EstimatedUpdateTime"; +const _EV = "EngineVersion"; +const _En = "Enabled"; +const _End = "Endpoint"; +const _Ev = "Events"; +const _Eve = "Event"; +const _F = "Force"; +const _FEV = "FullEngineVersion"; +const _FGRG = "FailoverGlobalReplicationGroup"; +const _FP = "FixedPrice"; +const _FSI = "FinalSnapshotIdentifier"; +const _FSN = "FinalSnapshotName"; +const _Fi = "Filters"; +const _GNG = "GlobalNodeGroups"; +const _GNGI = "GlobalNodeGroupId"; +const _GNGTR = "GlobalNodeGroupsToRemove"; +const _GNGTRl = "GlobalNodeGroupsToRetain"; +const _GNGl = "GlobalNodeGroup"; +const _GRG = "GlobalReplicationGroup"; +const _GRGD = "GlobalReplicationGroupDescription"; +const _GRGI = "GlobalReplicationGroupId"; +const _GRGIS = "GlobalReplicationGroupIdSuffix"; +const _GRGIl = "GlobalReplicationGroupInfo"; +const _GRGM = "GlobalReplicationGroupMember"; +const _GRGMR = "GlobalReplicationGroupMemberRole"; +const _GRGl = "GlobalReplicationGroups"; +const _ID = "IpDiscovery"; +const _IG = "IsGlobal"; +const _IM = "IsModifiable"; +const _INGIGRG = "IncreaseNodeGroupsInGlobalReplicationGroup"; +const _IRC = "IncreaseReplicaCount"; +const _K = "Key"; +const _KFD = "KinesisFirehoseDetails"; +const _KKI = "KmsKeyId"; +const _LANTM = "ListAllowedNodeTypeModifications"; +const _LDC = "LogDeliveryConfigurations"; +const _LDCo = "LogDeliveryConfiguration"; +const _LF = "LogFormat"; +const _LG = "LogGroup"; +const _LT = "LogType"; +const _LTFR = "ListTagsForResource"; +const _M = "Maximum"; +const _MAZ = "MultiAZ"; +const _MAZE = "MultiAZEnabled"; +const _MC = "MemberClusters"; +const _MCC = "ModifyCacheCluster"; +const _MCOA = "MemberClustersOutpostArns"; +const _MCPG = "ModifyCacheParameterGroup"; +const _MCSG = "ModifyCacheSubnetGroup"; +const _MEV = "MajorEngineVersion"; +const _MEVi = "MinimumEngineVersion"; +const _MGRG = "ModifyGlobalReplicationGroup"; +const _MR = "MaxRecords"; +const _MRG = "ModifyReplicationGroup"; +const _MRGSC = "ModifyReplicationGroupShardConfiguration"; +const _MRa = "MaxResults"; +const _MSC = "ModifyServerlessCache"; +const _MU = "ModifyUser"; +const _MUG = "ModifyUserGroup"; +const _Ma = "Marker"; +const _Me = "Message"; +const _Mem = "Members"; +const _N = "Name"; +const _NAZ = "NewAvailabilityZones"; +const _NC = "NotificationConfiguration"; +const _NCC = "NumCacheClusters"; +const _NCN = "NumCacheNodes"; +const _NDD = "NodeDeletionDate"; +const _NG = "NodeGroups"; +const _NGC = "NodeGroupConfiguration"; +const _NGCo = "NodeGroupCount"; +const _NGI = "NodeGroupId"; +const _NGM = "NodeGroupMembers"; +const _NGMUS = "NodeGroupMemberUpdateStatus"; +const _NGMo = "NodeGroupMember"; +const _NGTR = "NodeGroupsToRemove"; +const _NGTRo = "NodeGroupsToRetain"; +const _NGUS = "NodeGroupUpdateStatus"; +const _NGo = "NodeGroup"; +const _NNG = "NumNodeGroups"; +const _NPR = "NoPasswordRequired"; +const _NRC = "NewReplicaCount"; +const _NS = "NodeSnapshots"; +const _NSo = "NodeSnapshot"; +const _NT = "NetworkType"; +const _NTA = "NotificationTopicArn"; +const _NTS = "NotificationTopicStatus"; +const _NTe = "NextToken"; +const _NU = "NodesUpdated"; +const _NUED = "NodeUpdateEndDate"; +const _NUIB = "NodeUpdateInitiatedBy"; +const _NUID = "NodeUpdateInitiatedDate"; +const _NUS = "NodeUpdateStatus"; +const _NUSD = "NodeUpdateStartDate"; +const _NUSMD = "NodeUpdateStatusModifiedDate"; +const _OA = "OutpostArn"; +const _OI = "OwnerId"; +const _OM = "OutpostMode"; +const _OT = "OfferingType"; +const _P = "Passwords"; +const _PAS = "ParameterApplyStatus"; +const _PAZ = "PreferredAvailabilityZones"; +const _PAZr = "PreferredAvailabilityZone"; +const _PAZri = "PrimaryAvailabilityZone"; +const _PC = "PasswordCount"; +const _PCCAZ = "PreferredCacheClusterAZs"; +const _PCI = "PrimaryClusterId"; +const _PCe = "PendingChanges"; +const _PD = "ProductDescription"; +const _PE = "PrimaryEndpoint"; +const _PGS = "ParameterGroupStatus"; +const _PMV = "PendingModifiedValues"; +const _PMW = "PreferredMaintenanceWindow"; +const _PN = "ParameterName"; +const _PNV = "ParameterNameValues"; +const _POA = "PreferredOutpostArns"; +const _POAr = "PreferredOutpostArn"; +const _POAri = "PrimaryOutpostArn"; +const _PP = "ProgressPercentage"; +const _PR = "PrimaryRegion"; +const _PRCNO = "PurchaseReservedCacheNodesOffering"; +const _PRGI = "PrimaryReplicationGroupId"; +const _PUA = "ProcessedUpdateActions"; +const _PUAr = "ProcessedUpdateAction"; +const _PV = "ParameterValue"; +const _Pa = "Parameters"; +const _Par = "Parameter"; +const _Po = "Port"; +const _R = "Role"; +const _RAP = "ResetAllParameters"; +const _RARN = "ReservationARN"; +const _RAZ = "ReplicaAvailabilityZones"; +const _RC = "ReplicaConfiguration"; +const _RCA = "RecurringChargeAmount"; +const _RCC = "RebootCacheCluster"; +const _RCF = "RecurringChargeFrequency"; +const _RCN = "ReservedCacheNode"; +const _RCNI = "ReservedCacheNodeId"; +const _RCNO = "ReservedCacheNodesOfferings"; +const _RCNOI = "ReservedCacheNodesOfferingId"; +const _RCNOe = "ReservedCacheNodesOffering"; +const _RCNe = "ReservedCacheNodes"; +const _RCPG = "ResetCacheParameterGroup"; +const _RCSGI = "RevokeCacheSecurityGroupIngress"; +const _RCe = "RegionalConfigurations"; +const _RCec = "RecurringCharges"; +const _RCecu = "RecurringCharge"; +const _RCep = "ReplicaCount"; +const _RCes = "ReshardingConfiguration"; +const _RE = "ReaderEndpoint"; +const _REe = "ReadEndpoint"; +const _RG = "ReplicationGroup"; +const _RGCT = "ReplicationGroupCreateTime"; +const _RGD = "ReplicationGroupDescription"; +const _RGI = "ReplicationGroupIds"; +const _RGIe = "ReplicationGroupId"; +const _RGLDE = "ReplicationGroupLogDeliveryEnabled"; +const _RGOA = "ReplicationGroupOutpostArn"; +const _RGR = "ReplicationGroupRegion"; +const _RGe = "ReplicationGroups"; +const _RN = "ResourceName"; +const _ROA = "ReplicaOutpostArns"; +const _RPC = "RetainPrimaryCluster"; +const _RPNG = "ReplicasPerNodeGroup"; +const _RPRG = "RetainPrimaryReplicationGroup"; +const _RSIGRG = "RebalanceSlotsInGlobalReplicationGroup"; +const _RTFR = "RemoveTagsFromResource"; +const _RTR = "ReplicasToRemove"; +const _RUG = "RemoveUserGroups"; +const _RUGe = "RemoveUserGroup"; +const _Re = "Resharding"; +const _S = "Source"; +const _SA = "SnapshotArns"; +const _SATR = "SnapshotArnsToRestore"; +const _SAZ = "SubnetAvailabilityZone"; +const _SBN = "S3BucketName"; +const _SC = "ServerlessCache"; +const _SCC = "ServerlessCacheConfiguration"; +const _SCCNIRG = "ShowCacheClustersNotInReplicationGroups"; +const _SCI = "SnapshottingClusterId"; +const _SCN = "ServerlessCacheName"; +const _SCNI = "ShowCacheNodeInfo"; +const _SCNIo = "SourceCacheNodeId"; +const _SCS = "ServerlessCacheSnapshot"; +const _SCSN = "ServerlessCacheSnapshotName"; +const _SCSe = "ServerlessCacheSnapshots"; +const _SCT = "SnapshotCreateTime"; +const _SCe = "ServerlessCaches"; +const _SDM = "ScaleDownModifications"; +const _SG = "SecurityGroups"; +const _SGI = "SecurityGroupIds"; +const _SGIe = "SecurityGroupId"; +const _SI = "SubnetIds"; +const _SIo = "SourceIdentifier"; +const _SIu = "SubnetId"; +const _SIub = "SubnetIdentifier"; +const _SM = "StartMigration"; +const _SMI = "ShowMemberInfo"; +const _SMl = "SlotMigration"; +const _SMla = "SlaMet"; +const _SN = "SnapshotName"; +const _SNGC = "ShowNodeGroupConfig"; +const _SNLUS = "ShowNodeLevelUpdateStatus"; +const _SNT = "SupportedNetworkTypes"; +const _SO = "SubnetOutpost"; +const _SOA = "SubnetOutpostArn"; +const _SRL = "SnapshotRetentionLimit"; +const _SS = "SnapshotSource"; +const _SSCSN = "SourceServerlessCacheSnapshotName"; +const _SSN = "SourceSnapshotName"; +const _SSn = "SnapshotStatus"; +const _ST = "SourceType"; +const _STn = "SnapshotType"; +const _STt = "StartTime"; +const _SU = "ServiceUpdates"; +const _SUD = "ServiceUpdateDescription"; +const _SUED = "ServiceUpdateEndDate"; +const _SUM = "ScaleUpModifications"; +const _SUN = "ServiceUpdateName"; +const _SURABD = "ServiceUpdateRecommendedApplyByDate"; +const _SURD = "ServiceUpdateReleaseDate"; +const _SUS = "ServiceUpdateStatus"; +const _SUSe = "ServiceUpdateSeverity"; +const _SUT = "ServiceUpdateType"; +const _SUTR = "ServiceUpdateTimeRange"; +const _SUe = "ServiceUpdate"; +const _SW = "SnapshotWindow"; +const _Sl = "Slots"; +const _Sn = "Snapshot"; +const _Sna = "Snapshots"; +const _St = "Status"; +const _Sta = "State"; +const _Su = "Subnets"; +const _Sub = "Subnet"; +const _T = "Tags"; +const _TA = "TopicArn"; +const _TB = "TargetBucket"; +const _TEE = "TransitEncryptionEnabled"; +const _TEM = "TransitEncryptionMode"; +const _TF = "TestFailover"; +const _TK = "TagKeys"; +const _TL = "TagList"; +const _TM = "TestMigration"; +const _TS = "TopicStatus"; +const _TSCSN = "TargetServerlessCacheSnapshotName"; +const _TSN = "TargetSnapshotName"; +const _Ta = "Tag"; +const _Ty = "Type"; +const _U = "Unit"; +const _UA = "UpdateActions"; +const _UAAD = "UpdateActionAvailableDate"; +const _UAS = "UpdateActionStatus"; +const _UASMD = "UpdateActionStatusModifiedDate"; +const _UAp = "UpdateAction"; +const _UG = "UserGroups"; +const _UGI = "UserGroupIds"; +const _UGITA = "UserGroupIdsToAdd"; +const _UGITR = "UserGroupIdsToRemove"; +const _UGIs = "UserGroupId"; +const _UI = "UserIds"; +const _UITA = "UserIdsToAdd"; +const _UITR = "UserIdsToRemove"; +const _UIs = "UserId"; +const _UN = "UserName"; +const _UP = "UsagePrice"; +const _UUA = "UnprocessedUpdateActions"; +const _UUAn = "UnprocessedUpdateAction"; +const _Us = "Users"; +const _V = "Version"; +const _VI = "VpcId"; +const _Va = "Values"; +const _Val = "Value"; +const _m = "member"; +const _me = "message"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-elasticsearch-service/package.json b/clients/client-elasticsearch-service/package.json index c229a78f0309..27e83b7b724b 100644 --- a/clients/client-elasticsearch-service/package.json +++ b/clients/client-elasticsearch-service/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts index 0dcea7472a18..9be5125c3c4a 100644 --- a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -256,29 +257,18 @@ export const se_AcceptInboundCrossClusterSearchConnectionCommand = async ( input: AcceptInboundCrossClusterSearchConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/accept"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/accept"); + b.p( "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId!, "{CrossClusterSearchConnectionId}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -288,11 +278,11 @@ export const se_AddTagsCommand = async ( input: AddTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags"; + b.bp("/2015-01-01/tags"); let body: any; body = JSON.stringify( take(input, { @@ -300,15 +290,8 @@ export const se_AddTagsCommand = async ( TagList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -318,23 +301,14 @@ export const se_AssociatePackageCommand = async ( input: AssociatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/packages/associate/{PackageID}/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/packages/associate/{PackageID}/{DomainName}"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -344,29 +318,20 @@ export const se_AuthorizeVpcEndpointAccessCommand = async ( input: AuthorizeVpcEndpointAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/domain/{DomainName}/authorizeVpcEndpointAccess"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/authorizeVpcEndpointAccess"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { Account: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -376,28 +341,19 @@ export const se_CancelElasticsearchServiceSoftwareUpdateCommand = async ( input: CancelElasticsearchServiceSoftwareUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/serviceSoftwareUpdate/cancel"; + b.bp("/2015-01-01/es/serviceSoftwareUpdate/cancel"); let body: any; body = JSON.stringify( take(input, { DomainName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -407,11 +363,11 @@ export const se_CreateElasticsearchDomainCommand = async ( input: CreateElasticsearchDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain"; + b.bp("/2015-01-01/es/domain"); let body: any; body = JSON.stringify( take(input, { @@ -433,15 +389,8 @@ export const se_CreateElasticsearchDomainCommand = async ( VPCOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -451,12 +400,11 @@ export const se_CreateOutboundCrossClusterSearchConnectionCommand = async ( input: CreateOutboundCrossClusterSearchConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/ccs/outboundConnection"; + b.bp("/2015-01-01/es/ccs/outboundConnection"); let body: any; body = JSON.stringify( take(input, { @@ -465,15 +413,8 @@ export const se_CreateOutboundCrossClusterSearchConnectionCommand = async ( SourceDomainInfo: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -483,11 +424,11 @@ export const se_CreatePackageCommand = async ( input: CreatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages"; + b.bp("/2015-01-01/packages"); let body: any; body = JSON.stringify( take(input, { @@ -497,15 +438,8 @@ export const se_CreatePackageCommand = async ( PackageType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -515,12 +449,11 @@ export const se_CreateVpcEndpointCommand = async ( input: CreateVpcEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints"; + b.bp("/2015-01-01/es/vpcEndpoints"); let body: any; body = JSON.stringify( take(input, { @@ -529,15 +462,8 @@ export const se_CreateVpcEndpointCommand = async ( VpcOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -547,21 +473,13 @@ export const se_DeleteElasticsearchDomainCommand = async ( input: DeleteElasticsearchDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -571,22 +489,15 @@ export const se_DeleteElasticsearchServiceRoleCommand = async ( input: DeleteElasticsearchServiceRoleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/role"; + b.bp("/2015-01-01/es/role"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -596,29 +507,18 @@ export const se_DeleteInboundCrossClusterSearchConnectionCommand = async ( input: DeleteInboundCrossClusterSearchConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}"); + b.p( "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId!, "{CrossClusterSearchConnectionId}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -628,29 +528,18 @@ export const se_DeleteOutboundCrossClusterSearchConnectionCommand = async ( input: DeleteOutboundCrossClusterSearchConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/ccs/outboundConnection/{CrossClusterSearchConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/2015-01-01/es/ccs/outboundConnection/{CrossClusterSearchConnectionId}"); + b.p( "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId!, "{CrossClusterSearchConnectionId}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -660,21 +549,13 @@ export const se_DeletePackageCommand = async ( input: DeletePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); + b.bp("/2015-01-01/packages/{PackageID}"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -684,29 +565,13 @@ export const se_DeleteVpcEndpointCommand = async ( input: DeleteVpcEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/vpcEndpoints/{VpcEndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VpcEndpointId", - () => input.VpcEndpointId!, - "{VpcEndpointId}", - false - ); + b.bp("/2015-01-01/es/vpcEndpoints/{VpcEndpointId}"); + b.p("VpcEndpointId", () => input.VpcEndpointId!, "{VpcEndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -716,14 +581,12 @@ export const se_DescribeDomainAutoTunesCommand = async ( input: DescribeDomainAutoTunesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/domain/{DomainName}/autoTunes"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/autoTunes"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -731,15 +594,8 @@ export const se_DescribeDomainAutoTunesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -749,26 +605,16 @@ export const se_DescribeDomainChangeProgressCommand = async ( input: DescribeDomainChangeProgressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/domain/{DomainName}/progress"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/progress"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - changeid: [, input.ChangeId!], + [_c]: [, input[_CI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -778,21 +624,13 @@ export const se_DescribeElasticsearchDomainCommand = async ( input: DescribeElasticsearchDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -802,21 +640,13 @@ export const se_DescribeElasticsearchDomainConfigCommand = async ( input: DescribeElasticsearchDomainConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/config"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -826,27 +656,19 @@ export const se_DescribeElasticsearchDomainsCommand = async ( input: DescribeElasticsearchDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain-info"; + b.bp("/2015-01-01/es/domain-info"); let body: any; body = JSON.stringify( take(input, { DomainNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -856,41 +678,17 @@ export const se_DescribeElasticsearchInstanceTypeLimitsCommand = async ( input: DescribeElasticsearchInstanceTypeLimitsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InstanceType", - () => input.InstanceType!, - "{InstanceType}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ElasticsearchVersion", - () => input.ElasticsearchVersion!, - "{ElasticsearchVersion}", - false - ); + b.bp("/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}"); + b.p("InstanceType", () => input.InstanceType!, "{InstanceType}", false); + b.p("ElasticsearchVersion", () => input.ElasticsearchVersion!, "{ElasticsearchVersion}", false); const query: any = map({ - domainName: [, input.DomainName!], + [_dN]: [, input[_DN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -900,13 +698,11 @@ export const se_DescribeInboundCrossClusterSearchConnectionsCommand = async ( input: DescribeInboundCrossClusterSearchConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/ccs/inboundConnection/search"; + b.bp("/2015-01-01/es/ccs/inboundConnection/search"); let body: any; body = JSON.stringify( take(input, { @@ -915,15 +711,8 @@ export const se_DescribeInboundCrossClusterSearchConnectionsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -933,13 +722,11 @@ export const se_DescribeOutboundCrossClusterSearchConnectionsCommand = async ( input: DescribeOutboundCrossClusterSearchConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/ccs/outboundConnection/search"; + b.bp("/2015-01-01/es/ccs/outboundConnection/search"); let body: any; body = JSON.stringify( take(input, { @@ -948,15 +735,8 @@ export const se_DescribeOutboundCrossClusterSearchConnectionsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -966,12 +746,11 @@ export const se_DescribePackagesCommand = async ( input: DescribePackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/describe"; + b.bp("/2015-01-01/packages/describe"); let body: any; body = JSON.stringify( take(input, { @@ -980,15 +759,8 @@ export const se_DescribePackagesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -998,26 +770,17 @@ export const se_DescribeReservedElasticsearchInstanceOfferingsCommand = async ( input: DescribeReservedElasticsearchInstanceOfferingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstanceOfferings"; + b.bp("/2015-01-01/es/reservedInstanceOfferings"); const query: any = map({ - offeringId: [, input.ReservedElasticsearchInstanceOfferingId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_oI]: [, input[_REIOI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1027,26 +790,17 @@ export const se_DescribeReservedElasticsearchInstancesCommand = async ( input: DescribeReservedElasticsearchInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstances"; + b.bp("/2015-01-01/es/reservedInstances"); const query: any = map({ - reservationId: [, input.ReservedElasticsearchInstanceId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_rI]: [, input[_REII]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1056,27 +810,19 @@ export const se_DescribeVpcEndpointsCommand = async ( input: DescribeVpcEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/describe"; + b.bp("/2015-01-01/es/vpcEndpoints/describe"); let body: any; body = JSON.stringify( take(input, { VpcEndpointIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1086,23 +832,14 @@ export const se_DissociatePackageCommand = async ( input: DissociatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/packages/dissociate/{PackageID}/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/packages/dissociate/{PackageID}/{DomainName}"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1112,24 +849,15 @@ export const se_GetCompatibleElasticsearchVersionsCommand = async ( input: GetCompatibleElasticsearchVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/compatibleVersions"; + b.bp("/2015-01-01/es/compatibleVersions"); const query: any = map({ - domainName: [, input.DomainName!], + [_dN]: [, input[_DN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1139,26 +867,17 @@ export const se_GetPackageVersionHistoryCommand = async ( input: GetPackageVersionHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/history"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); + b.bp("/2015-01-01/packages/{PackageID}/history"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1168,27 +887,17 @@ export const se_GetUpgradeHistoryCommand = async ( input: GetUpgradeHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/upgradeDomain/{DomainName}/history"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/upgradeDomain/{DomainName}/history"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1198,22 +907,13 @@ export const se_GetUpgradeStatusCommand = async ( input: GetUpgradeStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/upgradeDomain/{DomainName}/status"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/upgradeDomain/{DomainName}/status"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1223,23 +923,15 @@ export const se_ListDomainNamesCommand = async ( input: ListDomainNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain"; + b.bp("/2015-01-01/domain"); const query: any = map({ - engineType: [, input.EngineType!], + [_eT]: [, input[_ET]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1249,26 +941,17 @@ export const se_ListDomainsForPackageCommand = async ( input: ListDomainsForPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/domains"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); + b.bp("/2015-01-01/packages/{PackageID}/domains"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1278,35 +961,18 @@ export const se_ListElasticsearchInstanceTypesCommand = async ( input: ListElasticsearchInstanceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/instanceTypes/{ElasticsearchVersion}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ElasticsearchVersion", - () => input.ElasticsearchVersion!, - "{ElasticsearchVersion}", - false - ); + b.bp("/2015-01-01/es/instanceTypes/{ElasticsearchVersion}"); + b.p("ElasticsearchVersion", () => input.ElasticsearchVersion!, "{ElasticsearchVersion}", false); const query: any = map({ - domainName: [, input.DomainName!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_dN]: [, input[_DN]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1316,25 +982,16 @@ export const se_ListElasticsearchVersionsCommand = async ( input: ListElasticsearchVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/versions"; + b.bp("/2015-01-01/es/versions"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1344,26 +1001,17 @@ export const se_ListPackagesForDomainCommand = async ( input: ListPackagesForDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain/{DomainName}/packages"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/domain/{DomainName}/packages"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1373,23 +1021,15 @@ export const se_ListTagsCommand = async ( input: ListTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags"; + b.bp("/2015-01-01/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ARN!, `ARN`)], + [_a]: [, __expectNonNull(input[_ARN]!, `ARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1399,26 +1039,16 @@ export const se_ListVpcEndpointAccessCommand = async ( input: ListVpcEndpointAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/domain/{DomainName}/listVpcEndpointAccess"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/listVpcEndpointAccess"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1428,24 +1058,15 @@ export const se_ListVpcEndpointsCommand = async ( input: ListVpcEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints"; + b.bp("/2015-01-01/es/vpcEndpoints"); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1455,26 +1076,16 @@ export const se_ListVpcEndpointsForDomainCommand = async ( input: ListVpcEndpointsForDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/domain/{DomainName}/vpcEndpoints"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/vpcEndpoints"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1484,13 +1095,11 @@ export const se_PurchaseReservedElasticsearchInstanceOfferingCommand = async ( input: PurchaseReservedElasticsearchInstanceOfferingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/purchaseReservedInstanceOffering"; + b.bp("/2015-01-01/es/purchaseReservedInstanceOffering"); let body: any; body = JSON.stringify( take(input, { @@ -1499,15 +1108,8 @@ export const se_PurchaseReservedElasticsearchInstanceOfferingCommand = async ( ReservedElasticsearchInstanceOfferingId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1517,29 +1119,18 @@ export const se_RejectInboundCrossClusterSearchConnectionCommand = async ( input: RejectInboundCrossClusterSearchConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/reject"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/reject"); + b.p( "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId!, "{CrossClusterSearchConnectionId}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1549,12 +1140,11 @@ export const se_RemoveTagsCommand = async ( input: RemoveTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags-removal"; + b.bp("/2015-01-01/tags-removal"); let body: any; body = JSON.stringify( take(input, { @@ -1562,15 +1152,8 @@ export const se_RemoveTagsCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1580,29 +1163,20 @@ export const se_RevokeVpcEndpointAccessCommand = async ( input: RevokeVpcEndpointAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/domain/{DomainName}/revokeVpcEndpointAccess"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/revokeVpcEndpointAccess"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { Account: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1612,28 +1186,19 @@ export const se_StartElasticsearchServiceSoftwareUpdateCommand = async ( input: StartElasticsearchServiceSoftwareUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-01-01/es/serviceSoftwareUpdate/start"; + b.bp("/2015-01-01/es/serviceSoftwareUpdate/start"); let body: any; body = JSON.stringify( take(input, { DomainName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1643,13 +1208,12 @@ export const se_UpdateElasticsearchDomainConfigCommand = async ( input: UpdateElasticsearchDomainConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2015-01-01/es/domain/{DomainName}/config"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1669,15 +1233,8 @@ export const se_UpdateElasticsearchDomainConfigCommand = async ( VPCOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1687,12 +1244,11 @@ export const se_UpdatePackageCommand = async ( input: UpdatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/update"; + b.bp("/2015-01-01/packages/update"); let body: any; body = JSON.stringify( take(input, { @@ -1702,15 +1258,8 @@ export const se_UpdatePackageCommand = async ( PackageSource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1720,12 +1269,11 @@ export const se_UpdateVpcEndpointCommand = async ( input: UpdateVpcEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/update"; + b.bp("/2015-01-01/es/vpcEndpoints/update"); let body: any; body = JSON.stringify( take(input, { @@ -1733,15 +1281,8 @@ export const se_UpdateVpcEndpointCommand = async ( VpcOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1751,12 +1292,11 @@ export const se_UpgradeElasticsearchDomainCommand = async ( input: UpgradeElasticsearchDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/upgradeDomain"; + b.bp("/2015-01-01/es/upgradeDomain"); let body: any; body = JSON.stringify( take(input, { @@ -1765,15 +1305,8 @@ export const se_UpgradeElasticsearchDomainCommand = async ( TargetVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5699,6 +5232,23 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _ARN = "ARN"; +const _CI = "ChangeId"; +const _DN = "DomainName"; +const _ET = "EngineType"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _REII = "ReservedElasticsearchInstanceId"; +const _REIOI = "ReservedElasticsearchInstanceOfferingId"; +const _a = "arn"; +const _c = "changeid"; +const _dN = "domainName"; +const _eT = "engineType"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _oI = "offeringId"; +const _rI = "reservationId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-emr-containers/package.json b/clients/client-emr-containers/package.json index 3834a3d4dfd9..51ba4dc3ac59 100644 --- a/clients/client-emr-containers/package.json +++ b/clients/client-emr-containers/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts index e2cb91545653..7dd17b444603 100644 --- a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts +++ b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -113,30 +114,14 @@ export const se_CancelJobRunCommand = async ( input: CancelJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/jobruns/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -146,11 +131,11 @@ export const se_CreateJobTemplateCommand = async ( input: CreateJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates"; + b.bp("/jobtemplates"); let body: any; body = JSON.stringify( take(input, { @@ -161,15 +146,8 @@ export const se_CreateJobTemplateCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -179,21 +157,12 @@ export const se_CreateManagedEndpointCommand = async ( input: CreateManagedEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/endpoints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/endpoints"); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); let body: any; body = JSON.stringify( take(input, { @@ -207,15 +176,8 @@ export const se_CreateManagedEndpointCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -225,11 +187,11 @@ export const se_CreateVirtualClusterCommand = async ( input: CreateVirtualClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters"; + b.bp("/virtualclusters"); let body: any; body = JSON.stringify( take(input, { @@ -239,15 +201,8 @@ export const se_CreateVirtualClusterCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -257,20 +212,13 @@ export const se_DeleteJobTemplateCommand = async ( input: DeleteJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/jobtemplates/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -280,30 +228,14 @@ export const se_DeleteManagedEndpointCommand = async ( input: DeleteManagedEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/endpoints/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -313,20 +245,13 @@ export const se_DeleteVirtualClusterCommand = async ( input: DeleteVirtualClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/virtualclusters/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -336,30 +261,14 @@ export const se_DescribeJobRunCommand = async ( input: DescribeJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/jobruns/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -369,20 +278,13 @@ export const se_DescribeJobTemplateCommand = async ( input: DescribeJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/jobtemplates/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -392,30 +294,14 @@ export const se_DescribeManagedEndpointCommand = async ( input: DescribeManagedEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/endpoints/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -425,20 +311,13 @@ export const se_DescribeVirtualClusterCommand = async ( input: DescribeVirtualClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/virtualclusters/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -448,29 +327,13 @@ export const se_GetManagedEndpointSessionCredentialsCommand = async ( input: GetManagedEndpointSessionCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "endpointIdentifier", - () => input.endpointIdentifier!, - "{endpointIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterIdentifier", - () => input.virtualClusterIdentifier!, - "{virtualClusterIdentifier}", - false - ); + b.bp("/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials"); + b.p("endpointIdentifier", () => input.endpointIdentifier!, "{endpointIdentifier}", false); + b.p("virtualClusterIdentifier", () => input.virtualClusterIdentifier!, "{virtualClusterIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -481,15 +344,8 @@ export const se_GetManagedEndpointSessionCredentialsCommand = async ( logContext: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -499,44 +355,21 @@ export const se_ListJobRunsCommand = async ( input: ListJobRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/jobruns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/jobruns"); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); const query: any = map({ - createdBefore: [ - () => input.createdBefore !== void 0, - () => (input.createdBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - createdAfter: [ - () => input.createdAfter !== void 0, - () => (input.createdAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - name: [, input.name!], - states: [() => input.states !== void 0, () => (input.states! || []).map((_entry) => _entry as any)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB]!.toISOString().split(".")[0] + "Z").toString()], + [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA]!.toISOString().split(".")[0] + "Z").toString()], + [_n]: [, input[_n]!], + [_s]: [() => input.states !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -546,32 +379,18 @@ export const se_ListJobTemplatesCommand = async ( input: ListJobTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates"; + b.bp("/jobtemplates"); const query: any = map({ - createdAfter: [ - () => input.createdAfter !== void 0, - () => (input.createdAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - createdBefore: [ - () => input.createdBefore !== void 0, - () => (input.createdBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA]!.toISOString().split(".")[0] + "Z").toString()], + [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB]!.toISOString().split(".")[0] + "Z").toString()], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -581,44 +400,21 @@ export const se_ListManagedEndpointsCommand = async ( input: ListManagedEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/endpoints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/endpoints"); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); const query: any = map({ - createdBefore: [ - () => input.createdBefore !== void 0, - () => (input.createdBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - createdAfter: [ - () => input.createdAfter !== void 0, - () => (input.createdAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - types: [() => input.types !== void 0, () => (input.types! || []).map((_entry) => _entry as any)], - states: [() => input.states !== void 0, () => (input.states! || []).map((_entry) => _entry as any)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB]!.toISOString().split(".")[0] + "Z").toString()], + [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA]!.toISOString().split(".")[0] + "Z").toString()], + [_t]: [() => input.types !== void 0, () => (input[_t]! || []).map((_entry) => _entry as any)], + [_s]: [() => input.states !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -628,20 +424,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -651,35 +440,21 @@ export const se_ListVirtualClustersCommand = async ( input: ListVirtualClustersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters"; + b.bp("/virtualclusters"); const query: any = map({ - containerProviderId: [, input.containerProviderId!], - containerProviderType: [, input.containerProviderType!], - createdAfter: [ - () => input.createdAfter !== void 0, - () => (input.createdAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - createdBefore: [ - () => input.createdBefore !== void 0, - () => (input.createdBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - states: [() => input.states !== void 0, () => (input.states! || []).map((_entry) => _entry as any)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_cPI]: [, input[_cPI]!], + [_cPT]: [, input[_cPT]!], + [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA]!.toISOString().split(".")[0] + "Z").toString()], + [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB]!.toISOString().split(".")[0] + "Z").toString()], + [_s]: [() => input.states !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -689,21 +464,12 @@ export const se_StartJobRunCommand = async ( input: StartJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/virtualclusters/{virtualClusterId}/jobruns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "virtualClusterId", - () => input.virtualClusterId!, - "{virtualClusterId}", - false - ); + b.bp("/virtualclusters/{virtualClusterId}/jobruns"); + b.p("virtualClusterId", () => input.virtualClusterId!, "{virtualClusterId}", false); let body: any; body = JSON.stringify( take(input, { @@ -719,15 +485,8 @@ export const se_StartJobRunCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -737,27 +496,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -767,27 +519,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2271,6 +2015,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cA = "createdAfter"; +const _cB = "createdBefore"; +const _cPI = "containerProviderId"; +const _cPT = "containerProviderType"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _s = "states"; +const _t = "types"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-emr-serverless/package.json b/clients/client-emr-serverless/package.json index beb3d47ecb3e..574edc0b8c3f 100644 --- a/clients/client-emr-serverless/package.json +++ b/clients/client-emr-serverless/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts b/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts index 902895d7f4be..87e41c5b9e3b 100644 --- a/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts +++ b/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -86,30 +87,14 @@ export const se_CancelJobRunCommand = async ( input: CancelJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/jobruns/{jobRunId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId!, "{jobRunId}", false); + b.bp("/applications/{applicationId}/jobruns/{jobRunId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("jobRunId", () => input.jobRunId!, "{jobRunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -119,11 +104,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -144,15 +129,8 @@ export const se_CreateApplicationCommand = async ( workerTypeSpecifications: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -162,28 +140,13 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -193,28 +156,13 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -224,30 +172,14 @@ export const se_GetDashboardForJobRunCommand = async ( input: GetDashboardForJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/jobruns/{jobRunId}/dashboard"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId!, "{jobRunId}", false); + b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("jobRunId", () => input.jobRunId!, "{jobRunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -257,30 +189,14 @@ export const se_GetJobRunCommand = async ( input: GetJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/jobruns/{jobRunId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId!, "{jobRunId}", false); + b.bp("/applications/{applicationId}/jobruns/{jobRunId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("jobRunId", () => input.jobRunId!, "{jobRunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -290,25 +206,17 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - states: [() => input.states !== void 0, () => (input.states! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_s]: [() => input.states !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -318,42 +226,20 @@ export const se_ListJobRunsCommand = async ( input: ListJobRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/jobruns"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - createdAtAfter: [ - () => input.createdAtAfter !== void 0, - () => (input.createdAtAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - createdAtBefore: [ - () => input.createdAtBefore !== void 0, - () => (input.createdAtBefore!.toISOString().split(".")[0] + "Z").toString(), - ], - states: [() => input.states !== void 0, () => (input.states! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA]!.toISOString().split(".")[0] + "Z").toString()], + [_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB]!.toISOString().split(".")[0] + "Z").toString()], + [_s]: [() => input.states !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -363,20 +249,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -386,28 +265,13 @@ export const se_StartApplicationCommand = async ( input: StartApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/start"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -417,20 +281,12 @@ export const se_StartJobRunCommand = async ( input: StartJobRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/jobruns"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -443,15 +299,8 @@ export const se_StartJobRunCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -461,28 +310,13 @@ export const se_StopApplicationCommand = async ( input: StopApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/stop"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -492,27 +326,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -522,27 +349,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -552,20 +371,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -583,15 +394,8 @@ export const se_UpdateApplicationCommand = async ( workerTypeSpecifications: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1793,6 +1597,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cAA = "createdAtAfter"; +const _cAB = "createdAtBefore"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _s = "states"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-entityresolution/package.json b/clients/client-entityresolution/package.json index fb13a503c64e..87c17b7fb4fc 100644 --- a/clients/client-entityresolution/package.json +++ b/clients/client-entityresolution/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-entityresolution/src/models/models_0.ts b/clients/client-entityresolution/src/models/models_0.ts index 3e59133c9ce0..ff3d2a9c1b41 100644 --- a/clients/client-entityresolution/src/models/models_0.ts +++ b/clients/client-entityresolution/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { EntityResolutionServiceException as __BaseException } from "./EntityResolutionServiceException"; diff --git a/clients/client-entityresolution/src/protocols/Aws_restJson1.ts b/clients/client-entityresolution/src/protocols/Aws_restJson1.ts index f656b1012dcf..fe1db67a8148 100644 --- a/clients/client-entityresolution/src/protocols/Aws_restJson1.ts +++ b/clients/client-entityresolution/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -132,11 +133,11 @@ export const se_CreateIdMappingWorkflowCommand = async ( input: CreateIdMappingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows"; + b.bp("/idmappingworkflows"); let body: any; body = JSON.stringify( take(input, { @@ -149,15 +150,8 @@ export const se_CreateIdMappingWorkflowCommand = async ( workflowName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -167,11 +161,11 @@ export const se_CreateMatchingWorkflowCommand = async ( input: CreateMatchingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows"; + b.bp("/matchingworkflows"); let body: any; body = JSON.stringify( take(input, { @@ -185,15 +179,8 @@ export const se_CreateMatchingWorkflowCommand = async ( workflowName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,11 +190,11 @@ export const se_CreateSchemaMappingCommand = async ( input: CreateSchemaMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas"; + b.bp("/schemas"); let body: any; body = JSON.stringify( take(input, { @@ -217,15 +204,8 @@ export const se_CreateSchemaMappingCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -235,28 +215,13 @@ export const se_DeleteIdMappingWorkflowCommand = async ( input: DeleteIdMappingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/idmappingworkflows/{workflowName}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -266,28 +231,13 @@ export const se_DeleteMatchingWorkflowCommand = async ( input: DeleteMatchingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/matchingworkflows/{workflowName}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -297,20 +247,13 @@ export const se_DeleteSchemaMappingCommand = async ( input: DeleteSchemaMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "schemaName", () => input.schemaName!, "{schemaName}", false); + b.bp("/schemas/{schemaName}"); + b.p("schemaName", () => input.schemaName!, "{schemaName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -320,30 +263,14 @@ export const se_GetIdMappingJobCommand = async ( input: GetIdMappingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/idmappingworkflows/{workflowName}/jobs/{jobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/idmappingworkflows/{workflowName}/jobs/{jobId}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -353,28 +280,13 @@ export const se_GetIdMappingWorkflowCommand = async ( input: GetIdMappingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/idmappingworkflows/{workflowName}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -384,35 +296,20 @@ export const se_GetMatchIdCommand = async ( input: GetMatchIdCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/matches"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/matchingworkflows/{workflowName}/matches"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; body = JSON.stringify( take(input, { record: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -422,30 +319,14 @@ export const se_GetMatchingJobCommand = async ( input: GetMatchingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/matchingworkflows/{workflowName}/jobs/{jobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/matchingworkflows/{workflowName}/jobs/{jobId}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -455,28 +336,13 @@ export const se_GetMatchingWorkflowCommand = async ( input: GetMatchingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/matchingworkflows/{workflowName}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -486,37 +352,14 @@ export const se_GetProviderServiceCommand = async ( input: GetProviderServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/providerservices/{providerName}/{providerServiceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "providerName", - () => input.providerName!, - "{providerName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "providerServiceName", - () => input.providerServiceName!, - "{providerServiceName}", - false - ); + b.bp("/providerservices/{providerName}/{providerServiceName}"); + b.p("providerName", () => input.providerName!, "{providerName}", false); + b.p("providerServiceName", () => input.providerServiceName!, "{providerServiceName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -526,20 +369,13 @@ export const se_GetSchemaMappingCommand = async ( input: GetSchemaMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "schemaName", () => input.schemaName!, "{schemaName}", false); + b.bp("/schemas/{schemaName}"); + b.p("schemaName", () => input.schemaName!, "{schemaName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -549,33 +385,17 @@ export const se_ListIdMappingJobsCommand = async ( input: ListIdMappingJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/idmappingworkflows/{workflowName}/jobs"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -585,24 +405,16 @@ export const se_ListIdMappingWorkflowsCommand = async ( input: ListIdMappingWorkflowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows"; + b.bp("/idmappingworkflows"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -612,33 +424,17 @@ export const se_ListMatchingJobsCommand = async ( input: ListMatchingJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/matchingworkflows/{workflowName}/jobs"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -648,24 +444,16 @@ export const se_ListMatchingWorkflowsCommand = async ( input: ListMatchingWorkflowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows"; + b.bp("/matchingworkflows"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -675,25 +463,17 @@ export const se_ListProviderServicesCommand = async ( input: ListProviderServicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/providerservices"; + b.bp("/providerservices"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - providerName: [, input.providerName!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_pN]: [, input[_pN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -703,24 +483,16 @@ export const se_ListSchemaMappingsCommand = async ( input: ListSchemaMappingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas"; + b.bp("/schemas"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -730,20 +502,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -753,28 +518,13 @@ export const se_StartIdMappingJobCommand = async ( input: StartIdMappingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/idmappingworkflows/{workflowName}/jobs"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -784,28 +534,13 @@ export const se_StartMatchingJobCommand = async ( input: StartMatchingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/matchingworkflows/{workflowName}/jobs"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -815,27 +550,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -845,27 +573,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -875,20 +595,12 @@ export const se_UpdateIdMappingWorkflowCommand = async ( input: UpdateIdMappingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/idmappingworkflows/{workflowName}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; body = JSON.stringify( take(input, { @@ -899,15 +611,8 @@ export const se_UpdateIdMappingWorkflowCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -917,20 +622,12 @@ export const se_UpdateMatchingWorkflowCommand = async ( input: UpdateMatchingWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workflowName", - () => input.workflowName!, - "{workflowName}", - false - ); + b.bp("/matchingworkflows/{workflowName}"); + b.p("workflowName", () => input.workflowName!, "{workflowName}", false); let body: any; body = JSON.stringify( take(input, { @@ -942,15 +639,8 @@ export const se_UpdateMatchingWorkflowCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -960,12 +650,12 @@ export const se_UpdateSchemaMappingCommand = async ( input: UpdateSchemaMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "schemaName", () => input.schemaName!, "{schemaName}", false); + b.bp("/schemas/{schemaName}"); + b.p("schemaName", () => input.schemaName!, "{schemaName}", false); let body: any; body = JSON.stringify( take(input, { @@ -973,15 +663,8 @@ export const se_UpdateSchemaMappingCommand = async ( mappedInputFields: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3063,6 +2746,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pN = "providerName"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-evidently/package.json b/clients/client-evidently/package.json index daa3081f4c10..db776f313bdb 100644 --- a/clients/client-evidently/package.json +++ b/clients/client-evidently/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-evidently/src/protocols/Aws_restJson1.ts b/clients/client-evidently/src/protocols/Aws_restJson1.ts index cf6749db8a7c..1fe84b28df90 100644 --- a/clients/client-evidently/src/protocols/Aws_restJson1.ts +++ b/clients/client-evidently/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -142,13 +143,12 @@ export const se_BatchEvaluateFeatureCommand = async ( input: BatchEvaluateFeatureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/evaluations"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/evaluations"); + b.p("project", () => input.project!, "{project}", false); let body: any; body = JSON.stringify( take(input, { @@ -162,15 +162,9 @@ export const se_BatchEvaluateFeatureCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -180,13 +174,12 @@ export const se_CreateExperimentCommand = async ( input: CreateExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/experiments"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/experiments"); + b.p("project", () => input.project!, "{project}", false); let body: any; body = JSON.stringify( take(input, { @@ -201,15 +194,8 @@ export const se_CreateExperimentCommand = async ( treatments: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -219,13 +205,12 @@ export const se_CreateFeatureCommand = async ( input: CreateFeatureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/features"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/features"); + b.p("project", () => input.project!, "{project}", false); let body: any; body = JSON.stringify( take(input, { @@ -238,15 +223,8 @@ export const se_CreateFeatureCommand = async ( variations: (_) => se_VariationConfigsList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -256,13 +234,12 @@ export const se_CreateLaunchCommand = async ( input: CreateLaunchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/launches"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/launches"); + b.p("project", () => input.project!, "{project}", false); let body: any; body = JSON.stringify( take(input, { @@ -275,15 +252,8 @@ export const se_CreateLaunchCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -293,11 +263,11 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); let body: any; body = JSON.stringify( take(input, { @@ -308,15 +278,8 @@ export const se_CreateProjectCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -326,11 +289,11 @@ export const se_CreateSegmentCommand = async ( input: CreateSegmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/segments"; + b.bp("/segments"); let body: any; body = JSON.stringify( take(input, { @@ -340,15 +303,8 @@ export const se_CreateSegmentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -358,23 +314,14 @@ export const se_DeleteExperimentCommand = async ( input: DeleteExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/experiments/{experiment}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "experiment", () => input.experiment!, "{experiment}", false); + b.bp("/projects/{project}/experiments/{experiment}"); + b.p("project", () => input.project!, "{project}", false); + b.p("experiment", () => input.experiment!, "{experiment}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -384,22 +331,14 @@ export const se_DeleteFeatureCommand = async ( input: DeleteFeatureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/features/{feature}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "feature", () => input.feature!, "{feature}", false); + b.bp("/projects/{project}/features/{feature}"); + b.p("project", () => input.project!, "{project}", false); + b.p("feature", () => input.feature!, "{feature}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -409,22 +348,14 @@ export const se_DeleteLaunchCommand = async ( input: DeleteLaunchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/launches/{launch}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "launch", () => input.launch!, "{launch}", false); + b.bp("/projects/{project}/launches/{launch}"); + b.p("project", () => input.project!, "{project}", false); + b.p("launch", () => input.launch!, "{launch}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -434,20 +365,13 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}"); + b.p("project", () => input.project!, "{project}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -457,20 +381,13 @@ export const se_DeleteSegmentCommand = async ( input: DeleteSegmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/segments/{segment}"; - resolvedPath = __resolvedPath(resolvedPath, input, "segment", () => input.segment!, "{segment}", false); + b.bp("/segments/{segment}"); + b.p("segment", () => input.segment!, "{segment}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -480,14 +397,13 @@ export const se_EvaluateFeatureCommand = async ( input: EvaluateFeatureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/evaluations/{feature}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "feature", () => input.feature!, "{feature}", false); + b.bp("/projects/{project}/evaluations/{feature}"); + b.p("project", () => input.project!, "{project}", false); + b.p("feature", () => input.feature!, "{feature}", false); let body: any; body = JSON.stringify( take(input, { @@ -502,15 +418,9 @@ export const se_EvaluateFeatureCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -520,23 +430,14 @@ export const se_GetExperimentCommand = async ( input: GetExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/experiments/{experiment}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "experiment", () => input.experiment!, "{experiment}", false); + b.bp("/projects/{project}/experiments/{experiment}"); + b.p("project", () => input.project!, "{project}", false); + b.p("experiment", () => input.experiment!, "{experiment}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -546,15 +447,13 @@ export const se_GetExperimentResultsCommand = async ( input: GetExperimentResultsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/experiments/{experiment}/results"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "experiment", () => input.experiment!, "{experiment}", false); + b.bp("/projects/{project}/experiments/{experiment}/results"); + b.p("project", () => input.project!, "{project}", false); + b.p("experiment", () => input.experiment!, "{experiment}", false); let body: any; body = JSON.stringify( take(input, { @@ -568,15 +467,8 @@ export const se_GetExperimentResultsCommand = async ( treatmentNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -586,22 +478,14 @@ export const se_GetFeatureCommand = async ( input: GetFeatureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/features/{feature}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "feature", () => input.feature!, "{feature}", false); + b.bp("/projects/{project}/features/{feature}"); + b.p("project", () => input.project!, "{project}", false); + b.p("feature", () => input.feature!, "{feature}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -611,22 +495,14 @@ export const se_GetLaunchCommand = async ( input: GetLaunchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/launches/{launch}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "launch", () => input.launch!, "{launch}", false); + b.bp("/projects/{project}/launches/{launch}"); + b.p("project", () => input.project!, "{project}", false); + b.p("launch", () => input.launch!, "{launch}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -636,20 +512,13 @@ export const se_GetProjectCommand = async ( input: GetProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}"); + b.p("project", () => input.project!, "{project}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -659,20 +528,13 @@ export const se_GetSegmentCommand = async ( input: GetSegmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/segments/{segment}"; - resolvedPath = __resolvedPath(resolvedPath, input, "segment", () => input.segment!, "{segment}", false); + b.bp("/segments/{segment}"); + b.p("segment", () => input.segment!, "{segment}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -682,27 +544,18 @@ export const se_ListExperimentsCommand = async ( input: ListExperimentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/experiments"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/experiments"); + b.p("project", () => input.project!, "{project}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - status: [, input.status!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_s]: [, input[_s]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -712,26 +565,17 @@ export const se_ListFeaturesCommand = async ( input: ListFeaturesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/features"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/features"); + b.p("project", () => input.project!, "{project}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -741,27 +585,18 @@ export const se_ListLaunchesCommand = async ( input: ListLaunchesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/launches"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/launches"); + b.p("project", () => input.project!, "{project}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - status: [, input.status!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_s]: [, input[_s]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -771,24 +606,16 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -798,27 +625,18 @@ export const se_ListSegmentReferencesCommand = async ( input: ListSegmentReferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/segments/{segment}/references"; - resolvedPath = __resolvedPath(resolvedPath, input, "segment", () => input.segment!, "{segment}", false); + b.bp("/segments/{segment}/references"); + b.p("segment", () => input.segment!, "{segment}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - type: [, __expectNonNull(input.type!, `type`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_t]: [, __expectNonNull(input[_t]!, `type`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -828,24 +646,16 @@ export const se_ListSegmentsCommand = async ( input: ListSegmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/segments"; + b.bp("/segments"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -855,20 +665,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -878,13 +681,12 @@ export const se_PutProjectEventsCommand = async ( input: PutProjectEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/events/projects/{project}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/events/projects/{project}"); + b.p("project", () => input.project!, "{project}", false); let body: any; body = JSON.stringify( take(input, { @@ -898,15 +700,9 @@ export const se_PutProjectEventsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -916,30 +712,21 @@ export const se_StartExperimentCommand = async ( input: StartExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/experiments/{experiment}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "experiment", () => input.experiment!, "{experiment}", false); + b.bp("/projects/{project}/experiments/{experiment}/start"); + b.p("project", () => input.project!, "{project}", false); + b.p("experiment", () => input.experiment!, "{experiment}", false); let body: any; body = JSON.stringify( take(input, { analysisCompleteTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -949,23 +736,14 @@ export const se_StartLaunchCommand = async ( input: StartLaunchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/launches/{launch}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "launch", () => input.launch!, "{launch}", false); + b.bp("/projects/{project}/launches/{launch}/start"); + b.p("project", () => input.project!, "{project}", false); + b.p("launch", () => input.launch!, "{launch}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -975,15 +753,13 @@ export const se_StopExperimentCommand = async ( input: StopExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/experiments/{experiment}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "experiment", () => input.experiment!, "{experiment}", false); + b.bp("/projects/{project}/experiments/{experiment}/cancel"); + b.p("project", () => input.project!, "{project}", false); + b.p("experiment", () => input.experiment!, "{experiment}", false); let body: any; body = JSON.stringify( take(input, { @@ -991,15 +767,8 @@ export const se_StopExperimentCommand = async ( reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1009,15 +778,13 @@ export const se_StopLaunchCommand = async ( input: StopLaunchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/launches/{launch}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "launch", () => input.launch!, "{launch}", false); + b.bp("/projects/{project}/launches/{launch}/cancel"); + b.p("project", () => input.project!, "{project}", false); + b.p("launch", () => input.launch!, "{launch}", false); let body: any; body = JSON.stringify( take(input, { @@ -1025,15 +792,8 @@ export const se_StopLaunchCommand = async ( reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1043,27 +803,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1073,11 +826,11 @@ export const se_TestSegmentPatternCommand = async ( input: TestSegmentPatternCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/test-segment-pattern"; + b.bp("/test-segment-pattern"); let body: any; body = JSON.stringify( take(input, { @@ -1085,15 +838,8 @@ export const se_TestSegmentPatternCommand = async ( payload: (_) => __LazyJsonString.fromObject(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1103,27 +849,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1133,15 +871,13 @@ export const se_UpdateExperimentCommand = async ( input: UpdateExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{project}/experiments/{experiment}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "experiment", () => input.experiment!, "{experiment}", false); + b.bp("/projects/{project}/experiments/{experiment}"); + b.p("project", () => input.project!, "{project}", false); + b.p("experiment", () => input.experiment!, "{experiment}", false); let body: any; body = JSON.stringify( take(input, { @@ -1155,15 +891,8 @@ export const se_UpdateExperimentCommand = async ( treatments: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1173,14 +902,13 @@ export const se_UpdateFeatureCommand = async ( input: UpdateFeatureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/features/{feature}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "feature", () => input.feature!, "{feature}", false); + b.bp("/projects/{project}/features/{feature}"); + b.p("project", () => input.project!, "{project}", false); + b.p("feature", () => input.feature!, "{feature}", false); let body: any; body = JSON.stringify( take(input, { @@ -1192,15 +920,8 @@ export const se_UpdateFeatureCommand = async ( removeVariations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1210,14 +931,13 @@ export const se_UpdateLaunchCommand = async ( input: UpdateLaunchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/launches/{launch}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "launch", () => input.launch!, "{launch}", false); + b.bp("/projects/{project}/launches/{launch}"); + b.p("project", () => input.project!, "{project}", false); + b.p("launch", () => input.launch!, "{launch}", false); let body: any; body = JSON.stringify( take(input, { @@ -1228,15 +948,8 @@ export const se_UpdateLaunchCommand = async ( scheduledSplitsConfig: (_) => se_ScheduledSplitsLaunchConfig(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1246,12 +959,12 @@ export const se_UpdateProjectCommand = async ( input: UpdateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}"); + b.p("project", () => input.project!, "{project}", false); let body: any; body = JSON.stringify( take(input, { @@ -1259,15 +972,8 @@ export const se_UpdateProjectCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1277,13 +983,12 @@ export const se_UpdateProjectDataDeliveryCommand = async ( input: UpdateProjectDataDeliveryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{project}/data-delivery"; - resolvedPath = __resolvedPath(resolvedPath, input, "project", () => input.project!, "{project}", false); + b.bp("/projects/{project}/data-delivery"); + b.p("project", () => input.project!, "{project}", false); let body: any; body = JSON.stringify( take(input, { @@ -1291,15 +996,8 @@ export const se_UpdateProjectDataDeliveryCommand = async ( s3Destination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4347,6 +4045,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _s = "status"; +const _t = "type"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-finspace-data/package.json b/clients/client-finspace-data/package.json index 221c514643ab..4a64e8dc4fd9 100644 --- a/clients/client-finspace-data/package.json +++ b/clients/client-finspace-data/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts index cfb6652f53e4..20ced8349c92 100644 --- a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -109,37 +110,21 @@ export const se_AssociateUserToPermissionGroupCommand = async ( input: AssociateUserToPermissionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/permission-group/{permissionGroupId}/users/{userId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "permissionGroupId", - () => input.permissionGroupId!, - "{permissionGroupId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/permission-group/{permissionGroupId}/users/{userId}"); + b.p("permissionGroupId", () => input.permissionGroupId!, "{permissionGroupId}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -149,13 +134,12 @@ export const se_CreateChangesetCommand = async ( input: CreateChangesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasets/{datasetId}/changesetsv2"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -165,15 +149,8 @@ export const se_CreateChangesetCommand = async ( sourceParams: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -183,11 +160,11 @@ export const se_CreateDatasetCommand = async ( input: CreateDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2"; + b.bp("/datasetsv2"); let body: any; body = JSON.stringify( take(input, { @@ -201,15 +178,8 @@ export const se_CreateDatasetCommand = async ( schemaDefinition: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -219,13 +189,12 @@ export const se_CreateDataViewCommand = async ( input: CreateDataViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasets/{datasetId}/dataviewsv2"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -237,15 +206,8 @@ export const se_CreateDataViewCommand = async ( sortColumns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -255,11 +217,11 @@ export const se_CreatePermissionGroupCommand = async ( input: CreatePermissionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group"; + b.bp("/permission-group"); let body: any; body = JSON.stringify( take(input, { @@ -269,15 +231,8 @@ export const se_CreatePermissionGroupCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,11 +242,11 @@ export const se_CreateUserCommand = async ( input: CreateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user"; + b.bp("/user"); let body: any; body = JSON.stringify( take(input, { @@ -304,15 +259,8 @@ export const se_CreateUserCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -322,24 +270,16 @@ export const se_DeleteDatasetCommand = async ( input: DeleteDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasetsv2/{datasetId}"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -349,32 +289,16 @@ export const se_DeletePermissionGroupCommand = async ( input: DeletePermissionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "permissionGroupId", - () => input.permissionGroupId!, - "{permissionGroupId}", - false - ); + b.bp("/permission-group/{permissionGroupId}"); + b.p("permissionGroupId", () => input.permissionGroupId!, "{permissionGroupId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -384,27 +308,20 @@ export const se_DisableUserCommand = async ( input: DisableUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/disable"; - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/user/{userId}/disable"); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -414,34 +331,17 @@ export const se_DisassociateUserFromPermissionGroupCommand = async ( input: DisassociateUserFromPermissionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/permission-group/{permissionGroupId}/users/{userId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "permissionGroupId", - () => input.permissionGroupId!, - "{permissionGroupId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/permission-group/{permissionGroupId}/users/{userId}"); + b.p("permissionGroupId", () => input.permissionGroupId!, "{permissionGroupId}", false); + b.p("userId", () => input.userId!, "{userId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -451,27 +351,20 @@ export const se_EnableUserCommand = async ( input: EnableUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/enable"; - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/user/{userId}/enable"); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -481,23 +374,14 @@ export const se_GetChangesetCommand = async ( input: GetChangesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datasets/{datasetId}/changesetsv2/{changesetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "changesetId", () => input.changesetId!, "{changesetId}", false); + b.bp("/datasets/{datasetId}/changesetsv2/{changesetId}"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); + b.p("changesetId", () => input.changesetId!, "{changesetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -507,20 +391,13 @@ export const se_GetDatasetCommand = async ( input: GetDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasetsv2/{datasetId}"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -530,23 +407,14 @@ export const se_GetDataViewCommand = async ( input: GetDataViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datasets/{datasetId}/dataviewsv2/{dataViewId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "dataViewId", () => input.dataViewId!, "{dataViewId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasets/{datasetId}/dataviewsv2/{dataViewId}"); + b.p("dataViewId", () => input.dataViewId!, "{dataViewId}", false); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -556,23 +424,14 @@ export const se_GetExternalDataViewAccessDetailsCommand = async ( input: GetExternalDataViewAccessDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datasets/{datasetId}/dataviewsv2/{dataViewId}/external-access-details"; - resolvedPath = __resolvedPath(resolvedPath, input, "dataViewId", () => input.dataViewId!, "{dataViewId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasets/{datasetId}/dataviewsv2/{dataViewId}/external-access-details"); + b.p("dataViewId", () => input.dataViewId!, "{dataViewId}", false); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -582,28 +441,13 @@ export const se_GetPermissionGroupCommand = async ( input: GetPermissionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "permissionGroupId", - () => input.permissionGroupId!, - "{permissionGroupId}", - false - ); + b.bp("/permission-group/{permissionGroupId}"); + b.p("permissionGroupId", () => input.permissionGroupId!, "{permissionGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -613,25 +457,16 @@ export const se_GetProgrammaticAccessCredentialsCommand = async ( input: GetProgrammaticAccessCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/credentials/programmatic"; + b.bp("/credentials/programmatic"); const query: any = map({ - durationInMinutes: [() => input.durationInMinutes !== void 0, () => input.durationInMinutes!.toString()], - environmentId: [, __expectNonNull(input.environmentId!, `environmentId`)], + [_dIM]: [() => input.durationInMinutes !== void 0, () => input[_dIM]!.toString()], + [_eI]: [, __expectNonNull(input[_eI]!, `environmentId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -641,20 +476,13 @@ export const se_GetUserCommand = async ( input: GetUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/user/{userId}"); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -664,26 +492,19 @@ export const se_GetWorkingLocationCommand = async ( input: GetWorkingLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workingLocationV1"; + b.bp("/workingLocationV1"); let body: any; body = JSON.stringify( take(input, { locationType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -693,26 +514,17 @@ export const se_ListChangesetsCommand = async ( input: ListChangesetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasets/{datasetId}/changesetsv2"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -722,24 +534,16 @@ export const se_ListDatasetsCommand = async ( input: ListDatasetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2"; + b.bp("/datasetsv2"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -749,26 +553,17 @@ export const se_ListDataViewsCommand = async ( input: ListDataViewsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasets/{datasetId}/dataviewsv2"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -778,24 +573,16 @@ export const se_ListPermissionGroupsCommand = async ( input: ListPermissionGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group"; + b.bp("/permission-group"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -805,26 +592,17 @@ export const se_ListPermissionGroupsByUserCommand = async ( input: ListPermissionGroupsByUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/permission-groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/user/{userId}/permission-groups"); + b.p("userId", () => input.userId!, "{userId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -834,24 +612,16 @@ export const se_ListUsersCommand = async ( input: ListUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user"; + b.bp("/user"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -861,34 +631,17 @@ export const se_ListUsersByPermissionGroupCommand = async ( input: ListUsersByPermissionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/permission-group/{permissionGroupId}/users"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "permissionGroupId", - () => input.permissionGroupId!, - "{permissionGroupId}", - false - ); + b.bp("/permission-group/{permissionGroupId}/users"); + b.p("permissionGroupId", () => input.permissionGroupId!, "{permissionGroupId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -898,27 +651,20 @@ export const se_ResetUserPasswordCommand = async ( input: ResetUserPasswordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/password"; - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/user/{userId}/password"); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -928,15 +674,13 @@ export const se_UpdateChangesetCommand = async ( input: UpdateChangesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datasets/{datasetId}/changesetsv2/{changesetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "changesetId", () => input.changesetId!, "{changesetId}", false); + b.bp("/datasets/{datasetId}/changesetsv2/{changesetId}"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); + b.p("changesetId", () => input.changesetId!, "{changesetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -945,15 +689,8 @@ export const se_UpdateChangesetCommand = async ( sourceParams: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -963,12 +700,12 @@ export const se_UpdateDatasetCommand = async ( input: UpdateDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId!, "{datasetId}", false); + b.bp("/datasetsv2/{datasetId}"); + b.p("datasetId", () => input.datasetId!, "{datasetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -980,15 +717,8 @@ export const se_UpdateDatasetCommand = async ( schemaDefinition: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -998,20 +728,12 @@ export const se_UpdatePermissionGroupCommand = async ( input: UpdatePermissionGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "permissionGroupId", - () => input.permissionGroupId!, - "{permissionGroupId}", - false - ); + b.bp("/permission-group/{permissionGroupId}"); + b.p("permissionGroupId", () => input.permissionGroupId!, "{permissionGroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1021,15 +743,8 @@ export const se_UpdatePermissionGroupCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1039,12 +754,12 @@ export const se_UpdateUserCommand = async ( input: UpdateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/user/{userId}"); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1056,15 +771,8 @@ export const se_UpdateUserCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3261,6 +2969,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cT = "clientToken"; +const _dIM = "durationInMinutes"; +const _eI = "environmentId"; +const _mR = "maxResults"; +const _nT = "nextToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-finspace/package.json b/clients/client-finspace/package.json index 529a98c0d5f8..b61d57f7c900 100644 --- a/clients/client-finspace/package.json +++ b/clients/client-finspace/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-finspace/src/protocols/Aws_restJson1.ts b/clients/client-finspace/src/protocols/Aws_restJson1.ts index 3c099bd66a5f..2b5850a61744 100644 --- a/clients/client-finspace/src/protocols/Aws_restJson1.ts +++ b/clients/client-finspace/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -164,11 +165,11 @@ export const se_CreateEnvironmentCommand = async ( input: CreateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment"; + b.bp("/environment"); let body: any; body = JSON.stringify( take(input, { @@ -182,15 +183,8 @@ export const se_CreateEnvironmentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -200,29 +194,13 @@ export const se_CreateKxChangesetCommand = async ( input: CreateKxChangesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/changesets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/changesets"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); let body: any; body = JSON.stringify( take(input, { @@ -230,15 +208,8 @@ export const se_CreateKxChangesetCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -248,20 +219,12 @@ export const se_CreateKxClusterCommand = async ( input: CreateKxClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/clusters"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/clusters"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -287,15 +250,8 @@ export const se_CreateKxClusterCommand = async ( vpcConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -305,21 +261,12 @@ export const se_CreateKxDatabaseCommand = async ( input: CreateKxDatabaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/databases"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -329,15 +276,8 @@ export const se_CreateKxDatabaseCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -347,29 +287,13 @@ export const se_CreateKxDataviewCommand = async ( input: CreateKxDataviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/dataviews"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); let body: any; body = JSON.stringify( take(input, { @@ -384,15 +308,8 @@ export const se_CreateKxDataviewCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -402,11 +319,11 @@ export const se_CreateKxEnvironmentCommand = async ( input: CreateKxEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments"; + b.bp("/kx/environments"); let body: any; body = JSON.stringify( take(input, { @@ -417,15 +334,8 @@ export const se_CreateKxEnvironmentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -435,21 +345,12 @@ export const se_CreateKxScalingGroupCommand = async ( input: CreateKxScalingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/scalingGroups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/scalingGroups"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -460,15 +361,8 @@ export const se_CreateKxScalingGroupCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -478,20 +372,12 @@ export const se_CreateKxUserCommand = async ( input: CreateKxUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/users"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/users"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -501,15 +387,8 @@ export const se_CreateKxUserCommand = async ( userName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -519,21 +398,12 @@ export const se_CreateKxVolumeCommand = async ( input: CreateKxVolumeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/kxvolumes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/kxvolumes"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -547,15 +417,8 @@ export const se_CreateKxVolumeCommand = async ( volumeType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -565,28 +428,13 @@ export const se_DeleteEnvironmentCommand = async ( input: DeleteEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/environment/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -596,34 +444,17 @@ export const se_DeleteKxClusterCommand = async ( input: DeleteKxClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/clusters/{clusterName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/kx/environments/{environmentId}/clusters/{clusterName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -633,41 +464,17 @@ export const se_DeleteKxDatabaseCommand = async ( input: DeleteKxDatabaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); const query: any = map({ - clientToken: [, __expectNonNull(input.clientToken!, `clientToken`)], + [_cT]: [, __expectNonNull(input[_cT]!, `clientToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -677,49 +484,18 @@ export const se_DeleteKxDataviewCommand = async ( input: DeleteKxDataviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataviewName", - () => input.dataviewName!, - "{dataviewName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); + b.p("dataviewName", () => input.dataviewName!, "{dataviewName}", false); const query: any = map({ - clientToken: [, __expectNonNull(input.clientToken!, `clientToken`)], + [_cT]: [, __expectNonNull(input[_cT]!, `clientToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -729,32 +505,16 @@ export const se_DeleteKxEnvironmentCommand = async ( input: DeleteKxEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -764,41 +524,17 @@ export const se_DeleteKxScalingGroupCommand = async ( input: DeleteKxScalingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "scalingGroupName", - () => input.scalingGroupName!, - "{scalingGroupName}", - false - ); + b.bp("/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("scalingGroupName", () => input.scalingGroupName!, "{scalingGroupName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -808,34 +544,17 @@ export const se_DeleteKxUserCommand = async ( input: DeleteKxUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/users/{userName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "userName", () => input.userName!, "{userName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/users/{userName}"); + b.p("userName", () => input.userName!, "{userName}", false); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -845,34 +564,17 @@ export const se_DeleteKxVolumeCommand = async ( input: DeleteKxVolumeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/kxvolumes/{volumeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "volumeName", () => input.volumeName!, "{volumeName}", false); + b.bp("/kx/environments/{environmentId}/kxvolumes/{volumeName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("volumeName", () => input.volumeName!, "{volumeName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -882,28 +584,13 @@ export const se_GetEnvironmentCommand = async ( input: GetEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/environment/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -913,38 +600,15 @@ export const se_GetKxChangesetCommand = async ( input: GetKxChangesetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/changesets/{changesetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "changesetId", () => input.changesetId!, "{changesetId}", false); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/changesets/{changesetId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); + b.p("changesetId", () => input.changesetId!, "{changesetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -954,30 +618,14 @@ export const se_GetKxClusterCommand = async ( input: GetKxClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/clusters/{clusterName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/kx/environments/{environmentId}/clusters/{clusterName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -987,34 +635,17 @@ export const se_GetKxConnectionStringCommand = async ( input: GetKxConnectionStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/connectionString"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/connectionString"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - userArn: [, __expectNonNull(input.userArn!, `userArn`)], - clusterName: [, __expectNonNull(input.clusterName!, `clusterName`)], + [_uA]: [, __expectNonNull(input[_uA]!, `userArn`)], + [_cN]: [, __expectNonNull(input[_cN]!, `clusterName`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1024,37 +655,14 @@ export const se_GetKxDatabaseCommand = async ( input: GetKxDatabaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1064,45 +672,15 @@ export const se_GetKxDataviewCommand = async ( input: GetKxDataviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataviewName", - () => input.dataviewName!, - "{dataviewName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); + b.p("dataviewName", () => input.dataviewName!, "{dataviewName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1112,28 +690,13 @@ export const se_GetKxEnvironmentCommand = async ( input: GetKxEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1143,37 +706,14 @@ export const se_GetKxScalingGroupCommand = async ( input: GetKxScalingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "scalingGroupName", - () => input.scalingGroupName!, - "{scalingGroupName}", - false - ); + b.bp("/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("scalingGroupName", () => input.scalingGroupName!, "{scalingGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1183,30 +723,14 @@ export const se_GetKxUserCommand = async ( input: GetKxUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/users/{userName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "userName", () => input.userName!, "{userName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/users/{userName}"); + b.p("userName", () => input.userName!, "{userName}", false); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1216,30 +740,14 @@ export const se_GetKxVolumeCommand = async ( input: GetKxVolumeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/kxvolumes/{volumeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "volumeName", () => input.volumeName!, "{volumeName}", false); + b.bp("/kx/environments/{environmentId}/kxvolumes/{volumeName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("volumeName", () => input.volumeName!, "{volumeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1249,24 +757,16 @@ export const se_ListEnvironmentsCommand = async ( input: ListEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment"; + b.bp("/environment"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1276,42 +776,18 @@ export const se_ListKxChangesetsCommand = async ( input: ListKxChangesetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/changesets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/changesets"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1321,35 +797,18 @@ export const se_ListKxClusterNodesCommand = async ( input: ListKxClusterNodesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/clusters/{clusterName}/nodes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/kx/environments/{environmentId}/clusters/{clusterName}/nodes"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1359,34 +818,18 @@ export const se_ListKxClustersCommand = async ( input: ListKxClustersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/clusters"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/clusters"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - clusterType: [, input.clusterType!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_cTl]: [, input[_cTl]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1396,34 +839,17 @@ export const se_ListKxDatabasesCommand = async ( input: ListKxDatabasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/databases"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1433,42 +859,18 @@ export const se_ListKxDataviewsCommand = async ( input: ListKxDataviewsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/dataviews"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1478,24 +880,16 @@ export const se_ListKxEnvironmentsCommand = async ( input: ListKxEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments"; + b.bp("/kx/environments"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1505,34 +899,17 @@ export const se_ListKxScalingGroupsCommand = async ( input: ListKxScalingGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/scalingGroups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/scalingGroups"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1542,33 +919,17 @@ export const se_ListKxUsersCommand = async ( input: ListKxUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/users"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/users"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1578,35 +939,18 @@ export const se_ListKxVolumesCommand = async ( input: ListKxVolumesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/kxvolumes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/kxvolumes"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - volumeType: [, input.volumeType!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_vT]: [, input[_vT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1616,20 +960,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1639,27 +976,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1669,27 +999,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1699,20 +1021,12 @@ export const se_UpdateEnvironmentCommand = async ( input: UpdateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/environment/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1722,15 +1036,8 @@ export const se_UpdateEnvironmentCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1740,22 +1047,13 @@ export const se_UpdateKxClusterCodeConfigurationCommand = async ( input: UpdateKxClusterCodeConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/clusters/{clusterName}/configuration/code"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/kx/environments/{environmentId}/clusters/{clusterName}/configuration/code"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1766,15 +1064,8 @@ export const se_UpdateKxClusterCodeConfigurationCommand = async ( initializationScript: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1784,22 +1075,13 @@ export const se_UpdateKxClusterDatabasesCommand = async ( input: UpdateKxClusterDatabasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/clusters/{clusterName}/configuration/databases"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName!, "{clusterName}", false); + b.bp("/kx/environments/{environmentId}/clusters/{clusterName}/configuration/databases"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("clusterName", () => input.clusterName!, "{clusterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1808,15 +1090,8 @@ export const se_UpdateKxClusterDatabasesCommand = async ( deploymentConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1826,29 +1101,13 @@ export const se_UpdateKxDatabaseCommand = async ( input: UpdateKxDatabaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1856,15 +1115,8 @@ export const se_UpdateKxDatabaseCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1874,37 +1126,14 @@ export const se_UpdateKxDataviewCommand = async ( input: UpdateKxDataviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "databaseName", - () => input.databaseName!, - "{databaseName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataviewName", - () => input.dataviewName!, - "{dataviewName}", - false - ); + b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("databaseName", () => input.databaseName!, "{databaseName}", false); + b.p("dataviewName", () => input.dataviewName!, "{dataviewName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1914,15 +1143,8 @@ export const se_UpdateKxDataviewCommand = async ( segmentConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1932,20 +1154,12 @@ export const se_UpdateKxEnvironmentCommand = async ( input: UpdateKxEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1954,15 +1168,8 @@ export const se_UpdateKxEnvironmentCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1972,20 +1179,12 @@ export const se_UpdateKxEnvironmentNetworkCommand = async ( input: UpdateKxEnvironmentNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/kx/environments/{environmentId}/network"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/kx/environments/{environmentId}/network"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1994,15 +1193,8 @@ export const se_UpdateKxEnvironmentNetworkCommand = async ( transitGatewayConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2012,22 +1204,13 @@ export const se_UpdateKxUserCommand = async ( input: UpdateKxUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/users/{userName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "userName", () => input.userName!, "{userName}", false); + b.bp("/kx/environments/{environmentId}/users/{userName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("userName", () => input.userName!, "{userName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2035,15 +1218,8 @@ export const se_UpdateKxUserCommand = async ( iamRole: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2053,22 +1229,13 @@ export const se_UpdateKxVolumeCommand = async ( input: UpdateKxVolumeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/kx/environments/{environmentId}/kxvolumes/{volumeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "volumeName", () => input.volumeName!, "{volumeName}", false); + b.bp("/kx/environments/{environmentId}/kxvolumes/{volumeName}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); + b.p("volumeName", () => input.volumeName!, "{volumeName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2077,15 +1244,8 @@ export const se_UpdateKxVolumeCommand = async ( nas1Configuration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -6017,6 +5177,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cN = "clusterName"; +const _cT = "clientToken"; +const _cTl = "clusterType"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; +const _uA = "userArn"; +const _vT = "volumeType"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-fis/package.json b/clients/client-fis/package.json index dc3b54c6d550..ac518ae28993 100644 --- a/clients/client-fis/package.json +++ b/clients/client-fis/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-fis/src/protocols/Aws_restJson1.ts b/clients/client-fis/src/protocols/Aws_restJson1.ts index 5d24bd55b26e..2282de882261 100644 --- a/clients/client-fis/src/protocols/Aws_restJson1.ts +++ b/clients/client-fis/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -128,11 +129,11 @@ export const se_CreateExperimentTemplateCommand = async ( input: CreateExperimentTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates"; + b.bp("/experimentTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -147,15 +148,8 @@ export const se_CreateExperimentTemplateCommand = async ( targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -165,22 +159,13 @@ export const se_CreateTargetAccountConfigurationCommand = async ( input: CreateTargetAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentTemplateId", - () => input.experimentTemplateId!, - "{experimentTemplateId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"); + b.p("experimentTemplateId", () => input.experimentTemplateId!, "{experimentTemplateId}", false); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -189,15 +174,8 @@ export const se_CreateTargetAccountConfigurationCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -207,21 +185,13 @@ export const se_DeleteExperimentTemplateCommand = async ( input: DeleteExperimentTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/experimentTemplates/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -231,30 +201,14 @@ export const se_DeleteTargetAccountConfigurationCommand = async ( input: DeleteTargetAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentTemplateId", - () => input.experimentTemplateId!, - "{experimentTemplateId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"); + b.p("experimentTemplateId", () => input.experimentTemplateId!, "{experimentTemplateId}", false); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -264,20 +218,13 @@ export const se_GetActionCommand = async ( input: GetActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/actions/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -287,20 +234,13 @@ export const se_GetExperimentCommand = async ( input: GetExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/experiments/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -310,30 +250,14 @@ export const se_GetExperimentTargetAccountConfigurationCommand = async ( input: GetExperimentTargetAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experiments/{experimentId}/targetAccountConfigurations/{accountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentId", - () => input.experimentId!, - "{experimentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/experiments/{experimentId}/targetAccountConfigurations/{accountId}"); + b.p("experimentId", () => input.experimentId!, "{experimentId}", false); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -343,21 +267,13 @@ export const se_GetExperimentTemplateCommand = async ( input: GetExperimentTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/experimentTemplates/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -367,30 +283,14 @@ export const se_GetTargetAccountConfigurationCommand = async ( input: GetTargetAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentTemplateId", - () => input.experimentTemplateId!, - "{experimentTemplateId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"); + b.p("experimentTemplateId", () => input.experimentTemplateId!, "{experimentTemplateId}", false); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -400,28 +300,13 @@ export const se_GetTargetResourceTypeCommand = async ( input: GetTargetResourceTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes/{resourceType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceType", - () => input.resourceType!, - "{resourceType}", - false - ); + b.bp("/targetResourceTypes/{resourceType}"); + b.p("resourceType", () => input.resourceType!, "{resourceType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -431,24 +316,16 @@ export const se_ListActionsCommand = async ( input: ListActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions"; + b.bp("/actions"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -458,35 +335,18 @@ export const se_ListExperimentResolvedTargetsCommand = async ( input: ListExperimentResolvedTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experiments/{experimentId}/resolvedTargets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentId", - () => input.experimentId!, - "{experimentId}", - false - ); + b.bp("/experiments/{experimentId}/resolvedTargets"); + b.p("experimentId", () => input.experimentId!, "{experimentId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - targetName: [, input.targetName!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_tN]: [, input[_tN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -496,24 +356,16 @@ export const se_ListExperimentsCommand = async ( input: ListExperimentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments"; + b.bp("/experiments"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -523,33 +375,16 @@ export const se_ListExperimentTargetAccountConfigurationsCommand = async ( input: ListExperimentTargetAccountConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experiments/{experimentId}/targetAccountConfigurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentId", - () => input.experimentId!, - "{experimentId}", - false - ); + b.bp("/experiments/{experimentId}/targetAccountConfigurations"); + b.p("experimentId", () => input.experimentId!, "{experimentId}", false); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -559,24 +394,16 @@ export const se_ListExperimentTemplatesCommand = async ( input: ListExperimentTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates"; + b.bp("/experimentTemplates"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -586,20 +413,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -609,34 +429,17 @@ export const se_ListTargetAccountConfigurationsCommand = async ( input: ListTargetAccountConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentTemplateId", - () => input.experimentTemplateId!, - "{experimentTemplateId}", - false - ); + b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations"); + b.p("experimentTemplateId", () => input.experimentTemplateId!, "{experimentTemplateId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -646,24 +449,16 @@ export const se_ListTargetResourceTypesCommand = async ( input: ListTargetResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes"; + b.bp("/targetResourceTypes"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -673,11 +468,11 @@ export const se_StartExperimentCommand = async ( input: StartExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments"; + b.bp("/experiments"); let body: any; body = JSON.stringify( take(input, { @@ -686,15 +481,8 @@ export const se_StartExperimentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -704,20 +492,13 @@ export const se_StopExperimentCommand = async ( input: StopExperimentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/experiments/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -727,27 +508,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -757,24 +531,16 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)], + [_tK]: [() => input.tagKeys !== void 0, () => (input[_tK]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -784,13 +550,12 @@ export const se_UpdateExperimentTemplateCommand = async ( input: UpdateExperimentTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/experimentTemplates/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -803,15 +568,8 @@ export const se_UpdateExperimentTemplateCommand = async ( targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -821,22 +579,13 @@ export const se_UpdateTargetAccountConfigurationCommand = async ( input: UpdateTargetAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "experimentTemplateId", - () => input.experimentTemplateId!, - "{experimentTemplateId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/experimentTemplates/{experimentTemplateId}/targetAccountConfigurations/{accountId}"); + b.p("experimentTemplateId", () => input.experimentTemplateId!, "{experimentTemplateId}", false); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -844,15 +593,8 @@ export const se_UpdateTargetAccountConfigurationCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2419,6 +2161,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; +const _tN = "targetName"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-glacier/package.json b/clients/client-glacier/package.json index f0954b6982c3..099fc3ed2735 100644 --- a/clients/client-glacier/package.json +++ b/clients/client-glacier/package.json @@ -37,6 +37,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-glacier/src/models/models_0.ts b/clients/client-glacier/src/models/models_0.ts index 8924616b7a68..24aa907c1404 100644 --- a/clients/client-glacier/src/models/models_0.ts +++ b/clients/client-glacier/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { GlacierServiceException as __BaseException } from "./GlacierServiceException"; diff --git a/clients/client-glacier/src/protocols/Aws_restJson1.ts b/clients/client-glacier/src/protocols/Aws_restJson1.ts index bddfe52f9084..d38a84c46278 100644 --- a/clients/client-glacier/src/protocols/Aws_restJson1.ts +++ b/clients/client-glacier/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -139,24 +140,15 @@ export const se_AbortMultipartUploadCommand = async ( input: AbortMultipartUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); + b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -166,23 +158,14 @@ export const se_AbortVaultLockCommand = async ( input: AbortVaultLockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/lock-policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/lock-policy"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -192,16 +175,15 @@ export const se_AddTagsToVaultCommand = async ( input: AddTagsToVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/tags"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); const query: any = map({ - operation: [, "add"], + [_o]: [, "add"], }); let body: any; body = JSON.stringify( @@ -209,16 +191,8 @@ export const se_AddTagsToVaultCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -228,27 +202,18 @@ export const se_CompleteMultipartUploadCommand = async ( input: CompleteMultipartUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-archive-size": input.archiveSize!, - "x-amz-sha256-tree-hash": input.checksum!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, + [_xaas]: input[_aS]!, + [_xasth]: input[_c]!, }); + b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); + let body: any; + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -258,24 +223,15 @@ export const se_CompleteVaultLockCommand = async ( input: CompleteVaultLockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/lock-policy/{lockId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "lockId", () => input.lockId!, "{lockId}", false); + b.bp("/{accountId}/vaults/{vaultName}/lock-policy/{lockId}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("lockId", () => input.lockId!, "{lockId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -285,22 +241,14 @@ export const se_CreateVaultCommand = async ( input: CreateVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -310,24 +258,15 @@ export const se_DeleteArchiveCommand = async ( input: DeleteArchiveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/archives/{archiveId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "archiveId", () => input.archiveId!, "{archiveId}", false); + b.bp("/{accountId}/vaults/{vaultName}/archives/{archiveId}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("archiveId", () => input.archiveId!, "{archiveId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -337,22 +276,14 @@ export const se_DeleteVaultCommand = async ( input: DeleteVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -362,23 +293,14 @@ export const se_DeleteVaultAccessPolicyCommand = async ( input: DeleteVaultAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/access-policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/access-policy"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -388,23 +310,14 @@ export const se_DeleteVaultNotificationsCommand = async ( input: DeleteVaultNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/notification-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/notification-configuration"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -414,24 +327,15 @@ export const se_DescribeJobCommand = async ( input: DescribeJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -441,22 +345,14 @@ export const se_DescribeVaultCommand = async ( input: DescribeVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -466,21 +362,13 @@ export const se_GetDataRetrievalPolicyCommand = async ( input: GetDataRetrievalPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/{accountId}/policies/data-retrieval"); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -490,26 +378,17 @@ export const se_GetJobOutputCommand = async ( input: GetJobOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - range: input.range!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/jobs/{jobId}/output"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, + [_r]: input[_r]!, }); + b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}/output"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -519,23 +398,14 @@ export const se_GetVaultAccessPolicyCommand = async ( input: GetVaultAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/access-policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/access-policy"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -545,23 +415,14 @@ export const se_GetVaultLockCommand = async ( input: GetVaultLockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/lock-policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/lock-policy"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -571,23 +432,14 @@ export const se_GetVaultNotificationsCommand = async ( input: GetVaultNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/notification-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/notification-configuration"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -597,14 +449,13 @@ export const se_InitiateJobCommand = async ( input: InitiateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/jobs"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; if (input.jobParameters !== undefined) { body = _json(input.jobParameters); @@ -613,15 +464,8 @@ export const se_InitiateJobCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -631,26 +475,17 @@ export const se_InitiateMultipartUploadCommand = async ( input: InitiateMultipartUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-archive-description": input.archiveDescription!, - "x-amz-part-size": input.partSize!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/multipart-uploads"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, + [_xaad]: input[_aD]!, + [_xaps]: input[_pS]!, }); + b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + let body: any; + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -660,15 +495,13 @@ export const se_InitiateVaultLockCommand = async ( input: InitiateVaultLockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/lock-policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/lock-policy"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; if (input.policy !== undefined) { body = _json(input.policy); @@ -677,15 +510,8 @@ export const se_InitiateVaultLockCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -695,29 +521,20 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/jobs"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); const query: any = map({ - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - marker: [, input.marker!], - statuscode: [, input.statuscode!], - completed: [, input.completed!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_m]: [, input[_m]!], + [_s]: [, input[_s]!], + [_co]: [, input[_co]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -727,28 +544,18 @@ export const se_ListMultipartUploadsCommand = async ( input: ListMultipartUploadsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/multipart-uploads"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); const query: any = map({ - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - marker: [, input.marker!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_m]: [, input[_m]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -758,29 +565,19 @@ export const se_ListPartsCommand = async ( input: ListPartsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); + b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); const query: any = map({ - marker: [, input.marker!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_m]: [, input[_m]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -790,21 +587,13 @@ export const se_ListProvisionedCapacityCommand = async ( input: ListProvisionedCapacityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/{accountId}/provisioned-capacity"); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -814,22 +603,14 @@ export const se_ListTagsForVaultCommand = async ( input: ListTagsForVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/tags"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -839,25 +620,17 @@ export const se_ListVaultsCommand = async ( input: ListVaultsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/{accountId}/vaults"); + b.p("accountId", () => input.accountId!, "{accountId}", false); const query: any = map({ - marker: [, input.marker!], - limit: [() => input.limit !== void 0, () => input.limit!.toString()], + [_m]: [, input[_m]!], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -867,21 +640,13 @@ export const se_PurchaseProvisionedCapacityCommand = async ( input: PurchaseProvisionedCapacityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/{accountId}/provisioned-capacity"); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -891,16 +656,15 @@ export const se_RemoveTagsFromVaultCommand = async ( input: RemoveTagsFromVaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/tags"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); const query: any = map({ - operation: [, "remove"], + [_o]: [, "remove"], }); let body: any; body = JSON.stringify( @@ -908,16 +672,8 @@ export const se_RemoveTagsFromVaultCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -927,28 +683,20 @@ export const se_SetDataRetrievalPolicyCommand = async ( input: SetDataRetrievalPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/{accountId}/policies/data-retrieval"); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; body = JSON.stringify( take(input, { Policy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -958,15 +706,13 @@ export const se_SetVaultAccessPolicyCommand = async ( input: SetVaultAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/access-policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/access-policy"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; if (input.policy !== undefined) { body = _json(input.policy); @@ -975,15 +721,8 @@ export const se_SetVaultAccessPolicyCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -993,15 +732,13 @@ export const se_SetVaultNotificationsCommand = async ( input: SetVaultNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/notification-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); + b.bp("/{accountId}/vaults/{vaultName}/notification-configuration"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); let body: any; if (input.vaultNotificationConfig !== undefined) { body = _json(input.vaultNotificationConfig); @@ -1010,15 +747,8 @@ export const se_SetVaultNotificationsCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1028,29 +758,21 @@ export const se_UploadArchiveCommand = async ( input: UploadArchiveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-amz-archive-description": input.archiveDescription!, - "x-amz-sha256-tree-hash": input.checksum!, + [_xaad]: input[_aD]!, + [_xasth]: input[_c]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/archives"; - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); + b.bp("/{accountId}/vaults/{vaultName}/archives"); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("accountId", () => input.accountId!, "{accountId}", false); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1060,31 +782,22 @@ export const se_UploadMultipartPartCommand = async ( input: UploadMultipartPartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-amz-sha256-tree-hash": input.checksum!, - "content-range": input.range!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId!, "{accountId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName!, "{vaultName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); + [_xasth]: input[_c]!, + [_cr]: input[_r]!, + }); + b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}"); + b.p("accountId", () => input.accountId!, "{accountId}", false); + b.p("vaultName", () => input.vaultName!, "{vaultName}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); let body: any; if (input.body !== undefined) { body = input.body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1258,9 +971,9 @@ export const de_CompleteMultipartUploadCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - location: [, output.headers["location"]], - checksum: [, output.headers["x-amz-sha256-tree-hash"]], - archiveId: [, output.headers["x-amz-archive-id"]], + [_lo]: [, output.headers[_lo]], + [_c]: [, output.headers[_xasth]], + [_aI]: [, output.headers[_xaai]], }); await collectBody(output.body, context); return contents; @@ -1365,7 +1078,7 @@ export const de_CreateVaultCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - location: [, output.headers["location"]], + [_lo]: [, output.headers[_lo]], }); await collectBody(output.body, context); return contents; @@ -1816,11 +1529,11 @@ export const de_GetJobOutputCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - checksum: [, output.headers["x-amz-sha256-tree-hash"]], - contentRange: [, output.headers["content-range"]], - acceptRanges: [, output.headers["accept-ranges"]], - contentType: [, output.headers["content-type"]], - archiveDescription: [, output.headers["x-amz-archive-description"]], + [_c]: [, output.headers[_xasth]], + [_cR]: [, output.headers[_cr]], + [_aR]: [, output.headers[_ar]], + [_cT]: [, output.headers[_ct]], + [_aD]: [, output.headers[_xaad]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -2043,9 +1756,9 @@ export const de_InitiateJobCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - location: [, output.headers["location"]], - jobId: [, output.headers["x-amz-job-id"]], - jobOutputPath: [, output.headers["x-amz-job-output-path"]], + [_lo]: [, output.headers[_lo]], + [_jI]: [, output.headers[_xaji]], + [_jOP]: [, output.headers[_xajop]], }); await collectBody(output.body, context); return contents; @@ -2104,8 +1817,8 @@ export const de_InitiateMultipartUploadCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - location: [, output.headers["location"]], - uploadId: [, output.headers["x-amz-multipart-upload-id"]], + [_lo]: [, output.headers[_lo]], + [_uI]: [, output.headers[_xamui]], }); await collectBody(output.body, context); return contents; @@ -2158,7 +1871,7 @@ export const de_InitiateVaultLockCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - lockId: [, output.headers["x-amz-lock-id"]], + [_lI]: [, output.headers[_xali]], }); await collectBody(output.body, context); return contents; @@ -2553,7 +2266,7 @@ export const de_PurchaseProvisionedCapacityCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - capacityId: [, output.headers["x-amz-capacity-id"]], + [_cI]: [, output.headers[_xaci]], }); await collectBody(output.body, context); return contents; @@ -2811,9 +2524,9 @@ export const de_UploadArchiveCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - location: [, output.headers["location"]], - checksum: [, output.headers["x-amz-sha256-tree-hash"]], - archiveId: [, output.headers["x-amz-archive-id"]], + [_lo]: [, output.headers[_lo]], + [_c]: [, output.headers[_xasth]], + [_aI]: [, output.headers[_xaai]], }); await collectBody(output.body, context); return contents; @@ -2869,7 +2582,7 @@ export const de_UploadMultipartPartCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - checksum: [, output.headers["x-amz-sha256-tree-hash"]], + [_c]: [, output.headers[_xasth]], }); await collectBody(output.body, context); return contents; @@ -3215,6 +2928,40 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aD = "archiveDescription"; +const _aI = "archiveId"; +const _aR = "acceptRanges"; +const _aS = "archiveSize"; +const _ar = "accept-ranges"; +const _c = "checksum"; +const _cI = "capacityId"; +const _cR = "contentRange"; +const _cT = "contentType"; +const _co = "completed"; +const _cr = "content-range"; +const _ct = "content-type"; +const _jI = "jobId"; +const _jOP = "jobOutputPath"; +const _l = "limit"; +const _lI = "lockId"; +const _lo = "location"; +const _m = "marker"; +const _o = "operation"; +const _pS = "partSize"; +const _r = "range"; +const _s = "statuscode"; +const _uI = "uploadId"; +const _xaad = "x-amz-archive-description"; +const _xaai = "x-amz-archive-id"; +const _xaas = "x-amz-archive-size"; +const _xaci = "x-amz-capacity-id"; +const _xaji = "x-amz-job-id"; +const _xajop = "x-amz-job-output-path"; +const _xali = "x-amz-lock-id"; +const _xamui = "x-amz-multipart-upload-id"; +const _xaps = "x-amz-part-size"; +const _xasth = "x-amz-sha256-tree-hash"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-glue/src/models/models_1.ts b/clients/client-glue/src/models/models_1.ts index 95ee7f50b429..20a5d599cb4a 100644 --- a/clients/client-glue/src/models/models_1.ts +++ b/clients/client-glue/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { GlueServiceException as __BaseException } from "./GlueServiceException"; + import { Action, Blueprint, diff --git a/clients/client-glue/src/models/models_2.ts b/clients/client-glue/src/models/models_2.ts index c8d6030626d8..2673e7d81223 100644 --- a/clients/client-glue/src/models/models_2.ts +++ b/clients/client-glue/src/models/models_2.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { GlueServiceException as __BaseException } from "./GlueServiceException"; + import { Action, Aggregate, @@ -111,6 +112,7 @@ import { Workflow, WorkflowRun, } from "./models_0"; + import { ColumnStatistics, Compatibility, diff --git a/clients/client-grafana/package.json b/clients/client-grafana/package.json index 00da8b3b3736..f3e855384dba 100644 --- a/clients/client-grafana/package.json +++ b/clients/client-grafana/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-grafana/src/protocols/Aws_restJson1.ts b/clients/client-grafana/src/protocols/Aws_restJson1.ts index 64d2dbcefdc3..a8f55ab3a81a 100644 --- a/clients/client-grafana/src/protocols/Aws_restJson1.ts +++ b/clients/client-grafana/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -99,23 +100,14 @@ export const se_AssociateLicenseCommand = async ( input: AssociateLicenseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/licenses/{licenseType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "licenseType", () => input.licenseType!, "{licenseType}", false); + b.bp("/workspaces/{workspaceId}/licenses/{licenseType}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("licenseType", () => input.licenseType!, "{licenseType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -125,11 +117,11 @@ export const se_CreateWorkspaceCommand = async ( input: CreateWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces"; + b.bp("/workspaces"); let body: any; body = JSON.stringify( take(input, { @@ -152,15 +144,8 @@ export const se_CreateWorkspaceCommand = async ( workspaceRoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -170,13 +155,12 @@ export const se_CreateWorkspaceApiKeyCommand = async ( input: CreateWorkspaceApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/apikeys"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/apikeys"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -185,15 +169,8 @@ export const se_CreateWorkspaceApiKeyCommand = async ( secondsToLive: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,21 +180,13 @@ export const se_DeleteWorkspaceCommand = async ( input: DeleteWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -227,23 +196,14 @@ export const se_DeleteWorkspaceApiKeyCommand = async ( input: DeleteWorkspaceApiKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/apikeys/{keyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "keyName", () => input.keyName!, "{keyName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/apikeys/{keyName}"); + b.p("keyName", () => input.keyName!, "{keyName}", false); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -253,21 +213,13 @@ export const se_DescribeWorkspaceCommand = async ( input: DescribeWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -277,21 +229,13 @@ export const se_DescribeWorkspaceAuthenticationCommand = async ( input: DescribeWorkspaceAuthenticationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/authentication"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/authentication"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -301,21 +245,13 @@ export const se_DescribeWorkspaceConfigurationCommand = async ( input: DescribeWorkspaceConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/configuration"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -325,23 +261,14 @@ export const se_DisassociateLicenseCommand = async ( input: DisassociateLicenseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/licenses/{licenseType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "licenseType", () => input.licenseType!, "{licenseType}", false); + b.bp("/workspaces/{workspaceId}/licenses/{licenseType}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("licenseType", () => input.licenseType!, "{licenseType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -351,29 +278,20 @@ export const se_ListPermissionsCommand = async ( input: ListPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/permissions"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/permissions"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - userType: [, input.userType!], - userId: [, input.userId!], - groupId: [, input.groupId!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_uT]: [, input[_uT]!], + [_uI]: [, input[_uI]!], + [_gI]: [, input[_gI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -383,20 +301,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -406,25 +317,17 @@ export const se_ListVersionsCommand = async ( input: ListVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/versions"; + b.bp("/versions"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - "workspace-id": [, input.workspaceId!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_wi]: [, input[_wI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -434,24 +337,16 @@ export const se_ListWorkspacesCommand = async ( input: ListWorkspacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces"; + b.bp("/workspaces"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -461,27 +356,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -491,27 +379,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -521,28 +401,20 @@ export const se_UpdatePermissionsCommand = async ( input: UpdatePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/permissions"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/permissions"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { updateInstructionBatch: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -552,13 +424,12 @@ export const se_UpdateWorkspaceCommand = async ( input: UpdateWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -578,15 +449,8 @@ export const se_UpdateWorkspaceCommand = async ( workspaceRoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -596,13 +460,12 @@ export const se_UpdateWorkspaceAuthenticationCommand = async ( input: UpdateWorkspaceAuthenticationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/authentication"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/authentication"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -610,15 +473,8 @@ export const se_UpdateWorkspaceAuthenticationCommand = async ( samlConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -628,13 +484,12 @@ export const se_UpdateWorkspaceConfigurationCommand = async ( input: UpdateWorkspaceConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/configuration"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -642,15 +497,8 @@ export const se_UpdateWorkspaceConfigurationCommand = async ( grafanaVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1832,10 +1680,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1900,10 +1745,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2124,6 +1966,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _gI = "groupId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; +const _uI = "userId"; +const _uT = "userType"; +const _wI = "workspaceId"; +const _wi = "workspace-id"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-greengrass/package.json b/clients/client-greengrass/package.json index f463acb3d85a..3cccf30a2a91 100644 --- a/clients/client-greengrass/package.json +++ b/clients/client-greengrass/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-greengrass/src/protocols/Aws_restJson1.ts b/clients/client-greengrass/src/protocols/Aws_restJson1.ts index f6c0cd9fe25d..399e471e474e 100644 --- a/clients/client-greengrass/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrass/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -385,28 +386,20 @@ export const se_AssociateRoleToGroupCommand = async ( input: AssociateRoleToGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/role"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/role"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; body = JSON.stringify( take(input, { RoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -416,27 +409,19 @@ export const se_AssociateServiceRoleToAccountCommand = async ( input: AssociateServiceRoleToAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole"; + b.bp("/greengrass/servicerole"); let body: any; body = JSON.stringify( take(input, { RoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -446,13 +431,12 @@ export const se_CreateConnectorDefinitionCommand = async ( input: CreateConnectorDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/connectors"; + b.bp("/greengrass/definition/connectors"); let body: any; body = JSON.stringify( take(input, { @@ -461,15 +445,8 @@ export const se_CreateConnectorDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -479,37 +456,21 @@ export const se_CreateConnectorDefinitionVersionCommand = async ( input: CreateConnectorDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorDefinitionId", - () => input.ConnectorDefinitionId!, - "{ConnectorDefinitionId}", - false - ); + [_xact]: input[_ACT]!, + }); + b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions"); + b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId!, "{ConnectorDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Connectors: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -519,13 +480,12 @@ export const se_CreateCoreDefinitionCommand = async ( input: CreateCoreDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/cores"; + b.bp("/greengrass/definition/cores"); let body: any; body = JSON.stringify( take(input, { @@ -534,15 +494,8 @@ export const se_CreateCoreDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -552,37 +505,21 @@ export const se_CreateCoreDefinitionVersionCommand = async ( input: CreateCoreDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/cores/{CoreDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreDefinitionId", - () => input.CoreDefinitionId!, - "{CoreDefinitionId}", - false - ); + [_xact]: input[_ACT]!, + }); + b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions"); + b.p("CoreDefinitionId", () => input.CoreDefinitionId!, "{CoreDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Cores: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -592,14 +529,13 @@ export const se_CreateDeploymentCommand = async ( input: CreateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/deployments"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/deployments"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -608,15 +544,8 @@ export const se_CreateDeploymentCommand = async ( GroupVersionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -626,13 +555,12 @@ export const se_CreateDeviceDefinitionCommand = async ( input: CreateDeviceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/devices"; + b.bp("/greengrass/definition/devices"); let body: any; body = JSON.stringify( take(input, { @@ -641,15 +569,8 @@ export const se_CreateDeviceDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -659,37 +580,21 @@ export const se_CreateDeviceDefinitionVersionCommand = async ( input: CreateDeviceDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/devices/{DeviceDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeviceDefinitionId", - () => input.DeviceDefinitionId!, - "{DeviceDefinitionId}", - false - ); + [_xact]: input[_ACT]!, + }); + b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions"); + b.p("DeviceDefinitionId", () => input.DeviceDefinitionId!, "{DeviceDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Devices: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -699,13 +604,12 @@ export const se_CreateFunctionDefinitionCommand = async ( input: CreateFunctionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/functions"; + b.bp("/greengrass/definition/functions"); let body: any; body = JSON.stringify( take(input, { @@ -714,15 +618,8 @@ export const se_CreateFunctionDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -732,22 +629,13 @@ export const se_CreateFunctionDefinitionVersionCommand = async ( input: CreateFunctionDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/functions/{FunctionDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionDefinitionId", - () => input.FunctionDefinitionId!, - "{FunctionDefinitionId}", - false - ); + [_xact]: input[_ACT]!, + }); + b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions"); + b.p("FunctionDefinitionId", () => input.FunctionDefinitionId!, "{FunctionDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -755,15 +643,8 @@ export const se_CreateFunctionDefinitionVersionCommand = async ( Functions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -773,12 +654,12 @@ export const se_CreateGroupCommand = async ( input: CreateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups"; + b.bp("/greengrass/groups"); let body: any; body = JSON.stringify( take(input, { @@ -787,15 +668,8 @@ export const se_CreateGroupCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -805,24 +679,15 @@ export const se_CreateGroupCertificateAuthorityCommand = async ( input: CreateGroupCertificateAuthorityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/certificateauthorities"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/certificateauthorities"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -832,14 +697,13 @@ export const se_CreateGroupVersionCommand = async ( input: CreateGroupVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/versions"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -852,15 +716,8 @@ export const se_CreateGroupVersionCommand = async ( SubscriptionDefinitionVersionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -870,13 +727,12 @@ export const se_CreateLoggerDefinitionCommand = async ( input: CreateLoggerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/loggers"; + b.bp("/greengrass/definition/loggers"); let body: any; body = JSON.stringify( take(input, { @@ -885,15 +741,8 @@ export const se_CreateLoggerDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -903,37 +752,21 @@ export const se_CreateLoggerDefinitionVersionCommand = async ( input: CreateLoggerDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/loggers/{LoggerDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LoggerDefinitionId", - () => input.LoggerDefinitionId!, - "{LoggerDefinitionId}", - false - ); + [_xact]: input[_ACT]!, + }); + b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions"); + b.p("LoggerDefinitionId", () => input.LoggerDefinitionId!, "{LoggerDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Loggers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -943,13 +776,12 @@ export const se_CreateResourceDefinitionCommand = async ( input: CreateResourceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/resources"; + b.bp("/greengrass/definition/resources"); let body: any; body = JSON.stringify( take(input, { @@ -958,15 +790,8 @@ export const se_CreateResourceDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -976,37 +801,21 @@ export const se_CreateResourceDefinitionVersionCommand = async ( input: CreateResourceDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/resources/{ResourceDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceDefinitionId", - () => input.ResourceDefinitionId!, - "{ResourceDefinitionId}", - false - ); + [_xact]: input[_ACT]!, + }); + b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions"); + b.p("ResourceDefinitionId", () => input.ResourceDefinitionId!, "{ResourceDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Resources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1016,12 +825,12 @@ export const se_CreateSoftwareUpdateJobCommand = async ( input: CreateSoftwareUpdateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/updates"; + b.bp("/greengrass/updates"); let body: any; body = JSON.stringify( take(input, { @@ -1033,15 +842,8 @@ export const se_CreateSoftwareUpdateJobCommand = async ( UpdateTargetsOperatingSystem: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1051,13 +853,12 @@ export const se_CreateSubscriptionDefinitionCommand = async ( input: CreateSubscriptionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/subscriptions"; + b.bp("/greengrass/definition/subscriptions"); let body: any; body = JSON.stringify( take(input, { @@ -1066,15 +867,8 @@ export const se_CreateSubscriptionDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1084,37 +878,21 @@ export const se_CreateSubscriptionDefinitionVersionCommand = async ( input: CreateSubscriptionDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscriptionDefinitionId", - () => input.SubscriptionDefinitionId!, - "{SubscriptionDefinitionId}", - false - ); + [_xact]: input[_ACT]!, + }); + b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions"); + b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId!, "{SubscriptionDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Subscriptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1124,29 +902,13 @@ export const se_DeleteConnectorDefinitionCommand = async ( input: DeleteConnectorDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/connectors/{ConnectorDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorDefinitionId", - () => input.ConnectorDefinitionId!, - "{ConnectorDefinitionId}", - false - ); + b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}"); + b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId!, "{ConnectorDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1156,29 +918,13 @@ export const se_DeleteCoreDefinitionCommand = async ( input: DeleteCoreDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/cores/{CoreDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreDefinitionId", - () => input.CoreDefinitionId!, - "{CoreDefinitionId}", - false - ); + b.bp("/greengrass/definition/cores/{CoreDefinitionId}"); + b.p("CoreDefinitionId", () => input.CoreDefinitionId!, "{CoreDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1188,29 +934,13 @@ export const se_DeleteDeviceDefinitionCommand = async ( input: DeleteDeviceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/devices/{DeviceDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeviceDefinitionId", - () => input.DeviceDefinitionId!, - "{DeviceDefinitionId}", - false - ); + b.bp("/greengrass/definition/devices/{DeviceDefinitionId}"); + b.p("DeviceDefinitionId", () => input.DeviceDefinitionId!, "{DeviceDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1220,29 +950,13 @@ export const se_DeleteFunctionDefinitionCommand = async ( input: DeleteFunctionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/functions/{FunctionDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionDefinitionId", - () => input.FunctionDefinitionId!, - "{FunctionDefinitionId}", - false - ); + b.bp("/greengrass/definition/functions/{FunctionDefinitionId}"); + b.p("FunctionDefinitionId", () => input.FunctionDefinitionId!, "{FunctionDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1252,21 +966,13 @@ export const se_DeleteGroupCommand = async ( input: DeleteGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1276,29 +982,13 @@ export const se_DeleteLoggerDefinitionCommand = async ( input: DeleteLoggerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/loggers/{LoggerDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LoggerDefinitionId", - () => input.LoggerDefinitionId!, - "{LoggerDefinitionId}", - false - ); + b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}"); + b.p("LoggerDefinitionId", () => input.LoggerDefinitionId!, "{LoggerDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1308,29 +998,13 @@ export const se_DeleteResourceDefinitionCommand = async ( input: DeleteResourceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/resources/{ResourceDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceDefinitionId", - () => input.ResourceDefinitionId!, - "{ResourceDefinitionId}", - false - ); + b.bp("/greengrass/definition/resources/{ResourceDefinitionId}"); + b.p("ResourceDefinitionId", () => input.ResourceDefinitionId!, "{ResourceDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1340,29 +1014,13 @@ export const se_DeleteSubscriptionDefinitionCommand = async ( input: DeleteSubscriptionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscriptionDefinitionId", - () => input.SubscriptionDefinitionId!, - "{SubscriptionDefinitionId}", - false - ); + b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}"); + b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId!, "{SubscriptionDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1372,21 +1030,13 @@ export const se_DisassociateRoleFromGroupCommand = async ( input: DisassociateRoleFromGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/role"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/role"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1396,23 +1046,15 @@ export const se_DisassociateServiceRoleFromAccountCommand = async ( input: DisassociateServiceRoleFromAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole"; + b.bp("/greengrass/servicerole"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1422,21 +1064,13 @@ export const se_GetAssociatedRoleCommand = async ( input: GetAssociatedRoleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/role"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/role"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1446,29 +1080,13 @@ export const se_GetBulkDeploymentStatusCommand = async ( input: GetBulkDeploymentStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/bulk/deployments/{BulkDeploymentId}/status"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BulkDeploymentId", - () => input.BulkDeploymentId!, - "{BulkDeploymentId}", - false - ); + b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/status"); + b.p("BulkDeploymentId", () => input.BulkDeploymentId!, "{BulkDeploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1478,22 +1096,13 @@ export const se_GetConnectivityInfoCommand = async ( input: GetConnectivityInfoCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/things/{ThingName}/connectivityInfo"; - resolvedPath = __resolvedPath(resolvedPath, input, "ThingName", () => input.ThingName!, "{ThingName}", false); + b.bp("/greengrass/things/{ThingName}/connectivityInfo"); + b.p("ThingName", () => input.ThingName!, "{ThingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1503,29 +1112,13 @@ export const se_GetConnectorDefinitionCommand = async ( input: GetConnectorDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/connectors/{ConnectorDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorDefinitionId", - () => input.ConnectorDefinitionId!, - "{ConnectorDefinitionId}", - false - ); + b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}"); + b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId!, "{ConnectorDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1535,41 +1128,22 @@ export const se_GetConnectorDefinitionVersionCommand = async ( input: GetConnectorDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorDefinitionId", - () => input.ConnectorDefinitionId!, - "{ConnectorDefinitionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}"); + b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId!, "{ConnectorDefinitionId}", false); + b.p( "ConnectorDefinitionVersionId", () => input.ConnectorDefinitionVersionId!, "{ConnectorDefinitionVersionId}", false ); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1579,29 +1153,13 @@ export const se_GetCoreDefinitionCommand = async ( input: GetCoreDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/cores/{CoreDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreDefinitionId", - () => input.CoreDefinitionId!, - "{CoreDefinitionId}", - false - ); + b.bp("/greengrass/definition/cores/{CoreDefinitionId}"); + b.p("CoreDefinitionId", () => input.CoreDefinitionId!, "{CoreDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1611,37 +1169,14 @@ export const se_GetCoreDefinitionVersionCommand = async ( input: GetCoreDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreDefinitionId", - () => input.CoreDefinitionId!, - "{CoreDefinitionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreDefinitionVersionId", - () => input.CoreDefinitionVersionId!, - "{CoreDefinitionVersionId}", - false - ); + b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}"); + b.p("CoreDefinitionId", () => input.CoreDefinitionId!, "{CoreDefinitionId}", false); + b.p("CoreDefinitionVersionId", () => input.CoreDefinitionVersionId!, "{CoreDefinitionVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1651,30 +1186,14 @@ export const se_GetDeploymentStatusCommand = async ( input: GetDeploymentStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/deployments/{DeploymentId}/status"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeploymentId", - () => input.DeploymentId!, - "{DeploymentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/deployments/{DeploymentId}/status"); + b.p("DeploymentId", () => input.DeploymentId!, "{DeploymentId}", false); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1684,29 +1203,13 @@ export const se_GetDeviceDefinitionCommand = async ( input: GetDeviceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/devices/{DeviceDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeviceDefinitionId", - () => input.DeviceDefinitionId!, - "{DeviceDefinitionId}", - false - ); + b.bp("/greengrass/definition/devices/{DeviceDefinitionId}"); + b.p("DeviceDefinitionId", () => input.DeviceDefinitionId!, "{DeviceDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1716,41 +1219,17 @@ export const se_GetDeviceDefinitionVersionCommand = async ( input: GetDeviceDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/devices/{DeviceDefinitionId}/versions/{DeviceDefinitionVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeviceDefinitionId", - () => input.DeviceDefinitionId!, - "{DeviceDefinitionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeviceDefinitionVersionId", - () => input.DeviceDefinitionVersionId!, - "{DeviceDefinitionVersionId}", - false - ); + b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions/{DeviceDefinitionVersionId}"); + b.p("DeviceDefinitionId", () => input.DeviceDefinitionId!, "{DeviceDefinitionId}", false); + b.p("DeviceDefinitionVersionId", () => input.DeviceDefinitionVersionId!, "{DeviceDefinitionVersionId}", false); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1760,29 +1239,13 @@ export const se_GetFunctionDefinitionCommand = async ( input: GetFunctionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/functions/{FunctionDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionDefinitionId", - () => input.FunctionDefinitionId!, - "{FunctionDefinitionId}", - false - ); + b.bp("/greengrass/definition/functions/{FunctionDefinitionId}"); + b.p("FunctionDefinitionId", () => input.FunctionDefinitionId!, "{FunctionDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1792,41 +1255,17 @@ export const se_GetFunctionDefinitionVersionCommand = async ( input: GetFunctionDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/functions/{FunctionDefinitionId}/versions/{FunctionDefinitionVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionDefinitionId", - () => input.FunctionDefinitionId!, - "{FunctionDefinitionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionDefinitionVersionId", - () => input.FunctionDefinitionVersionId!, - "{FunctionDefinitionVersionId}", - false - ); + b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions/{FunctionDefinitionVersionId}"); + b.p("FunctionDefinitionId", () => input.FunctionDefinitionId!, "{FunctionDefinitionId}", false); + b.p("FunctionDefinitionVersionId", () => input.FunctionDefinitionVersionId!, "{FunctionDefinitionVersionId}", false); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1836,21 +1275,13 @@ export const se_GetGroupCommand = async ( input: GetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1860,30 +1291,14 @@ export const se_GetGroupCertificateAuthorityCommand = async ( input: GetGroupCertificateAuthorityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/certificateauthorities/{CertificateAuthorityId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CertificateAuthorityId", - () => input.CertificateAuthorityId!, - "{CertificateAuthorityId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/certificateauthorities/{CertificateAuthorityId}"); + b.p("CertificateAuthorityId", () => input.CertificateAuthorityId!, "{CertificateAuthorityId}", false); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1893,22 +1308,13 @@ export const se_GetGroupCertificateConfigurationCommand = async ( input: GetGroupCertificateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1918,30 +1324,14 @@ export const se_GetGroupVersionCommand = async ( input: GetGroupVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/versions/{GroupVersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupVersionId", - () => input.GroupVersionId!, - "{GroupVersionId}", - false - ); + b.bp("/greengrass/groups/{GroupId}/versions/{GroupVersionId}"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); + b.p("GroupVersionId", () => input.GroupVersionId!, "{GroupVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1951,29 +1341,13 @@ export const se_GetLoggerDefinitionCommand = async ( input: GetLoggerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/loggers/{LoggerDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LoggerDefinitionId", - () => input.LoggerDefinitionId!, - "{LoggerDefinitionId}", - false - ); + b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}"); + b.p("LoggerDefinitionId", () => input.LoggerDefinitionId!, "{LoggerDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1983,41 +1357,17 @@ export const se_GetLoggerDefinitionVersionCommand = async ( input: GetLoggerDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/loggers/{LoggerDefinitionId}/versions/{LoggerDefinitionVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LoggerDefinitionId", - () => input.LoggerDefinitionId!, - "{LoggerDefinitionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LoggerDefinitionVersionId", - () => input.LoggerDefinitionVersionId!, - "{LoggerDefinitionVersionId}", - false - ); + b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions/{LoggerDefinitionVersionId}"); + b.p("LoggerDefinitionId", () => input.LoggerDefinitionId!, "{LoggerDefinitionId}", false); + b.p("LoggerDefinitionVersionId", () => input.LoggerDefinitionVersionId!, "{LoggerDefinitionVersionId}", false); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2027,29 +1377,13 @@ export const se_GetResourceDefinitionCommand = async ( input: GetResourceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/resources/{ResourceDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceDefinitionId", - () => input.ResourceDefinitionId!, - "{ResourceDefinitionId}", - false - ); + b.bp("/greengrass/definition/resources/{ResourceDefinitionId}"); + b.p("ResourceDefinitionId", () => input.ResourceDefinitionId!, "{ResourceDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2059,37 +1393,14 @@ export const se_GetResourceDefinitionVersionCommand = async ( input: GetResourceDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/resources/{ResourceDefinitionId}/versions/{ResourceDefinitionVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceDefinitionId", - () => input.ResourceDefinitionId!, - "{ResourceDefinitionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceDefinitionVersionId", - () => input.ResourceDefinitionVersionId!, - "{ResourceDefinitionVersionId}", - false - ); + b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions/{ResourceDefinitionVersionId}"); + b.p("ResourceDefinitionId", () => input.ResourceDefinitionId!, "{ResourceDefinitionId}", false); + b.p("ResourceDefinitionVersionId", () => input.ResourceDefinitionVersionId!, "{ResourceDefinitionVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2099,23 +1410,15 @@ export const se_GetServiceRoleForAccountCommand = async ( input: GetServiceRoleForAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole"; + b.bp("/greengrass/servicerole"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2125,29 +1428,13 @@ export const se_GetSubscriptionDefinitionCommand = async ( input: GetSubscriptionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscriptionDefinitionId", - () => input.SubscriptionDefinitionId!, - "{SubscriptionDefinitionId}", - false - ); + b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}"); + b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId!, "{SubscriptionDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2157,41 +1444,22 @@ export const se_GetSubscriptionDefinitionVersionCommand = async ( input: GetSubscriptionDefinitionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions/{SubscriptionDefinitionVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscriptionDefinitionId", - () => input.SubscriptionDefinitionId!, - "{SubscriptionDefinitionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions/{SubscriptionDefinitionVersionId}"); + b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId!, "{SubscriptionDefinitionId}", false); + b.p( "SubscriptionDefinitionVersionId", () => input.SubscriptionDefinitionVersionId!, "{SubscriptionDefinitionVersionId}", false ); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2201,22 +1469,13 @@ export const se_GetThingRuntimeConfigurationCommand = async ( input: GetThingRuntimeConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/things/{ThingName}/runtimeconfig"; - resolvedPath = __resolvedPath(resolvedPath, input, "ThingName", () => input.ThingName!, "{ThingName}", false); + b.bp("/greengrass/things/{ThingName}/runtimeconfig"); + b.p("ThingName", () => input.ThingName!, "{ThingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2226,34 +1485,17 @@ export const se_ListBulkDeploymentDetailedReportsCommand = async ( input: ListBulkDeploymentDetailedReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BulkDeploymentId", - () => input.BulkDeploymentId!, - "{BulkDeploymentId}", - false - ); + b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports"); + b.p("BulkDeploymentId", () => input.BulkDeploymentId!, "{BulkDeploymentId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2263,25 +1505,16 @@ export const se_ListBulkDeploymentsCommand = async ( input: ListBulkDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/bulk/deployments"; + b.bp("/greengrass/bulk/deployments"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2291,25 +1524,16 @@ export const se_ListConnectorDefinitionsCommand = async ( input: ListConnectorDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/connectors"; + b.bp("/greengrass/definition/connectors"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2319,34 +1543,17 @@ export const se_ListConnectorDefinitionVersionsCommand = async ( input: ListConnectorDefinitionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorDefinitionId", - () => input.ConnectorDefinitionId!, - "{ConnectorDefinitionId}", - false - ); + b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions"); + b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId!, "{ConnectorDefinitionId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2356,25 +1563,16 @@ export const se_ListCoreDefinitionsCommand = async ( input: ListCoreDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/cores"; + b.bp("/greengrass/definition/cores"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2384,34 +1582,17 @@ export const se_ListCoreDefinitionVersionsCommand = async ( input: ListCoreDefinitionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/cores/{CoreDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreDefinitionId", - () => input.CoreDefinitionId!, - "{CoreDefinitionId}", - false - ); + b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions"); + b.p("CoreDefinitionId", () => input.CoreDefinitionId!, "{CoreDefinitionId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2421,26 +1602,17 @@ export const se_ListDeploymentsCommand = async ( input: ListDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/deployments"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/deployments"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2450,25 +1622,16 @@ export const se_ListDeviceDefinitionsCommand = async ( input: ListDeviceDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/devices"; + b.bp("/greengrass/definition/devices"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2478,34 +1641,17 @@ export const se_ListDeviceDefinitionVersionsCommand = async ( input: ListDeviceDefinitionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/devices/{DeviceDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeviceDefinitionId", - () => input.DeviceDefinitionId!, - "{DeviceDefinitionId}", - false - ); + b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions"); + b.p("DeviceDefinitionId", () => input.DeviceDefinitionId!, "{DeviceDefinitionId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2515,25 +1661,16 @@ export const se_ListFunctionDefinitionsCommand = async ( input: ListFunctionDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/functions"; + b.bp("/greengrass/definition/functions"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2543,34 +1680,17 @@ export const se_ListFunctionDefinitionVersionsCommand = async ( input: ListFunctionDefinitionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/functions/{FunctionDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionDefinitionId", - () => input.FunctionDefinitionId!, - "{FunctionDefinitionId}", - false - ); + b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions"); + b.p("FunctionDefinitionId", () => input.FunctionDefinitionId!, "{FunctionDefinitionId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2580,22 +1700,13 @@ export const se_ListGroupCertificateAuthoritiesCommand = async ( input: ListGroupCertificateAuthoritiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/certificateauthorities"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/certificateauthorities"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2605,24 +1716,16 @@ export const se_ListGroupsCommand = async ( input: ListGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups"; + b.bp("/greengrass/groups"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2632,26 +1735,17 @@ export const se_ListGroupVersionsCommand = async ( input: ListGroupVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/versions"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2661,25 +1755,16 @@ export const se_ListLoggerDefinitionsCommand = async ( input: ListLoggerDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/loggers"; + b.bp("/greengrass/definition/loggers"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2689,34 +1774,17 @@ export const se_ListLoggerDefinitionVersionsCommand = async ( input: ListLoggerDefinitionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/loggers/{LoggerDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LoggerDefinitionId", - () => input.LoggerDefinitionId!, - "{LoggerDefinitionId}", - false - ); + b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions"); + b.p("LoggerDefinitionId", () => input.LoggerDefinitionId!, "{LoggerDefinitionId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2726,25 +1794,16 @@ export const se_ListResourceDefinitionsCommand = async ( input: ListResourceDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/resources"; + b.bp("/greengrass/definition/resources"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2754,34 +1813,17 @@ export const se_ListResourceDefinitionVersionsCommand = async ( input: ListResourceDefinitionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/resources/{ResourceDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceDefinitionId", - () => input.ResourceDefinitionId!, - "{ResourceDefinitionId}", - false - ); + b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions"); + b.p("ResourceDefinitionId", () => input.ResourceDefinitionId!, "{ResourceDefinitionId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2791,25 +1833,16 @@ export const se_ListSubscriptionDefinitionsCommand = async ( input: ListSubscriptionDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/subscriptions"; + b.bp("/greengrass/definition/subscriptions"); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2819,34 +1852,17 @@ export const se_ListSubscriptionDefinitionVersionsCommand = async ( input: ListSubscriptionDefinitionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscriptionDefinitionId", - () => input.SubscriptionDefinitionId!, - "{SubscriptionDefinitionId}", - false - ); + b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions"); + b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId!, "{SubscriptionDefinitionId}", false); const query: any = map({ - MaxResults: [, input.MaxResults!], - NextToken: [, input.NextToken!], + [_MR]: [, input[_MR]!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2856,20 +1872,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2879,30 +1888,21 @@ export const se_ResetDeploymentsCommand = async ( input: ResetDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/deployments/$reset"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/deployments/$reset"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; body = JSON.stringify( take(input, { Force: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2912,13 +1912,12 @@ export const se_StartBulkDeploymentCommand = async ( input: StartBulkDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.AmznClientToken!, + [_xact]: input[_ACT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/bulk/deployments"; + b.bp("/greengrass/bulk/deployments"); let body: any; body = JSON.stringify( take(input, { @@ -2927,15 +1926,8 @@ export const se_StartBulkDeploymentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2945,29 +1937,13 @@ export const se_StopBulkDeploymentCommand = async ( input: StopBulkDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/bulk/deployments/{BulkDeploymentId}/$stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BulkDeploymentId", - () => input.BulkDeploymentId!, - "{BulkDeploymentId}", - false - ); + b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/$stop"); + b.p("BulkDeploymentId", () => input.BulkDeploymentId!, "{BulkDeploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2977,27 +1953,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3007,27 +1976,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3037,29 +1998,20 @@ export const se_UpdateConnectivityInfoCommand = async ( input: UpdateConnectivityInfoCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/things/{ThingName}/connectivityInfo"; - resolvedPath = __resolvedPath(resolvedPath, input, "ThingName", () => input.ThingName!, "{ThingName}", false); + b.bp("/greengrass/things/{ThingName}/connectivityInfo"); + b.p("ThingName", () => input.ThingName!, "{ThingName}", false); let body: any; body = JSON.stringify( take(input, { ConnectivityInfo: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3069,36 +2021,20 @@ export const se_UpdateConnectorDefinitionCommand = async ( input: UpdateConnectorDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/connectors/{ConnectorDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorDefinitionId", - () => input.ConnectorDefinitionId!, - "{ConnectorDefinitionId}", - false - ); + b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}"); + b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId!, "{ConnectorDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3108,36 +2044,20 @@ export const se_UpdateCoreDefinitionCommand = async ( input: UpdateCoreDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/cores/{CoreDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreDefinitionId", - () => input.CoreDefinitionId!, - "{CoreDefinitionId}", - false - ); + b.bp("/greengrass/definition/cores/{CoreDefinitionId}"); + b.p("CoreDefinitionId", () => input.CoreDefinitionId!, "{CoreDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3147,36 +2067,20 @@ export const se_UpdateDeviceDefinitionCommand = async ( input: UpdateDeviceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/devices/{DeviceDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DeviceDefinitionId", - () => input.DeviceDefinitionId!, - "{DeviceDefinitionId}", - false - ); + b.bp("/greengrass/definition/devices/{DeviceDefinitionId}"); + b.p("DeviceDefinitionId", () => input.DeviceDefinitionId!, "{DeviceDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3186,36 +2090,20 @@ export const se_UpdateFunctionDefinitionCommand = async ( input: UpdateFunctionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/functions/{FunctionDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionDefinitionId", - () => input.FunctionDefinitionId!, - "{FunctionDefinitionId}", - false - ); + b.bp("/greengrass/definition/functions/{FunctionDefinitionId}"); + b.p("FunctionDefinitionId", () => input.FunctionDefinitionId!, "{FunctionDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3225,28 +2113,20 @@ export const se_UpdateGroupCommand = async ( input: UpdateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3256,29 +2136,20 @@ export const se_UpdateGroupCertificateConfigurationCommand = async ( input: UpdateGroupCertificateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupId", () => input.GroupId!, "{GroupId}", false); + b.bp("/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry"); + b.p("GroupId", () => input.GroupId!, "{GroupId}", false); let body: any; body = JSON.stringify( take(input, { CertificateExpiryInMilliseconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3288,36 +2159,20 @@ export const se_UpdateLoggerDefinitionCommand = async ( input: UpdateLoggerDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/loggers/{LoggerDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LoggerDefinitionId", - () => input.LoggerDefinitionId!, - "{LoggerDefinitionId}", - false - ); + b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}"); + b.p("LoggerDefinitionId", () => input.LoggerDefinitionId!, "{LoggerDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3327,36 +2182,20 @@ export const se_UpdateResourceDefinitionCommand = async ( input: UpdateResourceDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/resources/{ResourceDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceDefinitionId", - () => input.ResourceDefinitionId!, - "{ResourceDefinitionId}", - false - ); + b.bp("/greengrass/definition/resources/{ResourceDefinitionId}"); + b.p("ResourceDefinitionId", () => input.ResourceDefinitionId!, "{ResourceDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3366,36 +2205,20 @@ export const se_UpdateSubscriptionDefinitionCommand = async ( input: UpdateSubscriptionDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscriptionDefinitionId", - () => input.SubscriptionDefinitionId!, - "{SubscriptionDefinitionId}", - false - ); + b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}"); + b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId!, "{SubscriptionDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3405,29 +2228,20 @@ export const se_UpdateThingRuntimeConfigurationCommand = async ( input: UpdateThingRuntimeConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/things/{ThingName}/runtimeconfig"; - resolvedPath = __resolvedPath(resolvedPath, input, "ThingName", () => input.ThingName!, "{ThingName}", false); + b.bp("/greengrass/things/{ThingName}/runtimeconfig"); + b.p("ThingName", () => input.ThingName!, "{ThingName}", false); let body: any; body = JSON.stringify( take(input, { TelemetryConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8173,6 +6987,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _ACT = "AmznClientToken"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _tK = "tagKeys"; +const _xact = "x-amzn-client-token"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-greengrassv2/package.json b/clients/client-greengrassv2/package.json index 15d23793887b..3bfc515d3573 100644 --- a/clients/client-greengrassv2/package.json +++ b/clients/client-greengrassv2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts index 0a6238c8b6c9..9677a144c715 100644 --- a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -156,27 +157,19 @@ export const se_AssociateServiceRoleToAccountCommand = async ( input: AssociateServiceRoleToAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole"; + b.bp("/greengrass/servicerole"); let body: any; body = JSON.stringify( take(input, { RoleArn: [, , `roleArn`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -186,36 +179,20 @@ export const se_BatchAssociateClientDeviceWithCoreDeviceCommand = async ( input: BatchAssociateClientDeviceWithCoreDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "coreDeviceThingName", - () => input.coreDeviceThingName!, - "{coreDeviceThingName}", - false - ); + b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices"); + b.p("coreDeviceThingName", () => input.coreDeviceThingName!, "{coreDeviceThingName}", false); let body: any; body = JSON.stringify( take(input, { entries: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -225,36 +202,20 @@ export const se_BatchDisassociateClientDeviceFromCoreDeviceCommand = async ( input: BatchDisassociateClientDeviceFromCoreDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/coreDevices/{coreDeviceThingName}/disassociateClientDevices"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "coreDeviceThingName", - () => input.coreDeviceThingName!, - "{coreDeviceThingName}", - false - ); + b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/disassociateClientDevices"); + b.p("coreDeviceThingName", () => input.coreDeviceThingName!, "{coreDeviceThingName}", false); let body: any; body = JSON.stringify( take(input, { entries: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -264,29 +225,13 @@ export const se_CancelDeploymentCommand = async ( input: CancelDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/deployments/{deploymentId}/cancel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deploymentId", - () => input.deploymentId!, - "{deploymentId}", - false - ); + b.bp("/greengrass/v2/deployments/{deploymentId}/cancel"); + b.p("deploymentId", () => input.deploymentId!, "{deploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -296,12 +241,11 @@ export const se_CreateComponentVersionCommand = async ( input: CreateComponentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/createComponentVersion"; + b.bp("/greengrass/v2/createComponentVersion"); let body: any; body = JSON.stringify( take(input, { @@ -311,15 +255,8 @@ export const se_CreateComponentVersionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -329,12 +266,11 @@ export const se_CreateDeploymentCommand = async ( input: CreateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments"; + b.bp("/greengrass/v2/deployments"); let body: any; body = JSON.stringify( take(input, { @@ -348,15 +284,8 @@ export const se_CreateDeploymentCommand = async ( targetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -366,21 +295,13 @@ export const se_DeleteComponentCommand = async ( input: DeleteComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/greengrass/v2/components/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -390,29 +311,13 @@ export const se_DeleteCoreDeviceCommand = async ( input: DeleteCoreDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/coreDevices/{coreDeviceThingName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "coreDeviceThingName", - () => input.coreDeviceThingName!, - "{coreDeviceThingName}", - false - ); + b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}"); + b.p("coreDeviceThingName", () => input.coreDeviceThingName!, "{coreDeviceThingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -422,28 +327,13 @@ export const se_DeleteDeploymentCommand = async ( input: DeleteDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments/{deploymentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deploymentId", - () => input.deploymentId!, - "{deploymentId}", - false - ); + b.bp("/greengrass/v2/deployments/{deploymentId}"); + b.p("deploymentId", () => input.deploymentId!, "{deploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -453,21 +343,13 @@ export const se_DescribeComponentCommand = async ( input: DescribeComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/greengrass/v2/components/{arn}/metadata"); + b.p("arn", () => input.arn!, "{arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -477,23 +359,15 @@ export const se_DisassociateServiceRoleFromAccountCommand = async ( input: DisassociateServiceRoleFromAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole"; + b.bp("/greengrass/servicerole"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -503,25 +377,16 @@ export const se_GetComponentCommand = async ( input: GetComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/greengrass/v2/components/{arn}"); + b.p("arn", () => input.arn!, "{arn}", false); const query: any = map({ - recipeOutputFormat: [, input.recipeOutputFormat!], + [_rOF]: [, input[_rOF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -531,30 +396,14 @@ export const se_GetComponentVersionArtifactCommand = async ( input: GetComponentVersionArtifactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/components/{arn}/artifacts/{artifactName+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "artifactName", - () => input.artifactName!, - "{artifactName+}", - true - ); + b.bp("/greengrass/v2/components/{arn}/artifacts/{artifactName+}"); + b.p("arn", () => input.arn!, "{arn}", false); + b.p("artifactName", () => input.artifactName!, "{artifactName+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -564,22 +413,13 @@ export const se_GetConnectivityInfoCommand = async ( input: GetConnectivityInfoCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/things/{thingName}/connectivityInfo"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/greengrass/things/{thingName}/connectivityInfo"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -589,29 +429,13 @@ export const se_GetCoreDeviceCommand = async ( input: GetCoreDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/coreDevices/{coreDeviceThingName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "coreDeviceThingName", - () => input.coreDeviceThingName!, - "{coreDeviceThingName}", - false - ); + b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}"); + b.p("coreDeviceThingName", () => input.coreDeviceThingName!, "{coreDeviceThingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -621,28 +445,13 @@ export const se_GetDeploymentCommand = async ( input: GetDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments/{deploymentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deploymentId", - () => input.deploymentId!, - "{deploymentId}", - false - ); + b.bp("/greengrass/v2/deployments/{deploymentId}"); + b.p("deploymentId", () => input.deploymentId!, "{deploymentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -652,23 +461,15 @@ export const se_GetServiceRoleForAccountCommand = async ( input: GetServiceRoleForAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole"; + b.bp("/greengrass/servicerole"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -678,34 +479,17 @@ export const se_ListClientDevicesAssociatedWithCoreDeviceCommand = async ( input: ListClientDevicesAssociatedWithCoreDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/coreDevices/{coreDeviceThingName}/associatedClientDevices"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "coreDeviceThingName", - () => input.coreDeviceThingName!, - "{coreDeviceThingName}", - false - ); + b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/associatedClientDevices"); + b.p("coreDeviceThingName", () => input.coreDeviceThingName!, "{coreDeviceThingName}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -715,26 +499,17 @@ export const se_ListComponentsCommand = async ( input: ListComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components"; + b.bp("/greengrass/v2/components"); const query: any = map({ - scope: [, input.scope!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -744,26 +519,17 @@ export const se_ListComponentVersionsCommand = async ( input: ListComponentVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn}", false); + b.bp("/greengrass/v2/components/{arn}/versions"); + b.p("arn", () => input.arn!, "{arn}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -773,27 +539,18 @@ export const se_ListCoreDevicesCommand = async ( input: ListCoreDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/coreDevices"; + b.bp("/greengrass/v2/coreDevices"); const query: any = map({ - thingGroupArn: [, input.thingGroupArn!], - status: [, input.status!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_tGA]: [, input[_tGA]!], + [_st]: [, input[_st]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -803,28 +560,19 @@ export const se_ListDeploymentsCommand = async ( input: ListDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments"; + b.bp("/greengrass/v2/deployments"); const query: any = map({ - targetArn: [, input.targetArn!], - historyFilter: [, input.historyFilter!], - parentTargetArn: [, input.parentTargetArn!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_tA]: [, input[_tA]!], + [_hF]: [, input[_hF]!], + [_pTA]: [, input[_pTA]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -834,34 +582,17 @@ export const se_ListEffectiveDeploymentsCommand = async ( input: ListEffectiveDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "coreDeviceThingName", - () => input.coreDeviceThingName!, - "{coreDeviceThingName}", - false - ); + b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments"); + b.p("coreDeviceThingName", () => input.coreDeviceThingName!, "{coreDeviceThingName}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -871,35 +602,18 @@ export const se_ListInstalledComponentsCommand = async ( input: ListInstalledComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "coreDeviceThingName", - () => input.coreDeviceThingName!, - "{coreDeviceThingName}", - false - ); + b.bp("/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents"); + b.p("coreDeviceThingName", () => input.coreDeviceThingName!, "{coreDeviceThingName}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - topologyFilter: [, input.topologyFilter!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_tF]: [, input[_tF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -909,20 +623,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -932,12 +639,11 @@ export const se_ResolveComponentCandidatesCommand = async ( input: ResolveComponentCandidatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/resolveComponentCandidates"; + b.bp("/greengrass/v2/resolveComponentCandidates"); let body: any; body = JSON.stringify( take(input, { @@ -945,15 +651,8 @@ export const se_ResolveComponentCandidatesCommand = async ( platform: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -963,27 +662,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -993,27 +685,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1023,29 +707,20 @@ export const se_UpdateConnectivityInfoCommand = async ( input: UpdateConnectivityInfoCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/greengrass/things/{thingName}/connectivityInfo"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/greengrass/things/{thingName}/connectivityInfo"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; body = JSON.stringify( take(input, { ConnectivityInfo: [, (_) => se_connectivityInfoList(_, context), `connectivityInfo`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2784,10 +2459,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2872,10 +2544,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3517,6 +3186,20 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _hF = "historyFilter"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pTA = "parentTargetArn"; +const _rAS = "retryAfterSeconds"; +const _rOF = "recipeOutputFormat"; +const _ra = "retry-after"; +const _s = "scope"; +const _st = "status"; +const _tA = "targetArn"; +const _tF = "topologyFilter"; +const _tGA = "thingGroupArn"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-groundstation/package.json b/clients/client-groundstation/package.json index 816b59a18323..a472492ac98f 100644 --- a/clients/client-groundstation/package.json +++ b/clients/client-groundstation/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-groundstation/src/protocols/Aws_restJson1.ts b/clients/client-groundstation/src/protocols/Aws_restJson1.ts index 8de78649886a..e86b51551e45 100644 --- a/clients/client-groundstation/src/protocols/Aws_restJson1.ts +++ b/clients/client-groundstation/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -148,20 +149,13 @@ export const se_CancelContactCommand = async ( input: CancelContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/{contactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "contactId", () => input.contactId!, "{contactId}", false); + b.bp("/contact/{contactId}"); + b.p("contactId", () => input.contactId!, "{contactId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -171,11 +165,11 @@ export const se_CreateConfigCommand = async ( input: CreateConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config"; + b.bp("/config"); let body: any; body = JSON.stringify( take(input, { @@ -184,15 +178,8 @@ export const se_CreateConfigCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -202,11 +189,11 @@ export const se_CreateDataflowEndpointGroupCommand = async ( input: CreateDataflowEndpointGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup"; + b.bp("/dataflowEndpointGroup"); let body: any; body = JSON.stringify( take(input, { @@ -216,15 +203,8 @@ export const se_CreateDataflowEndpointGroupCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -234,11 +214,11 @@ export const se_CreateEphemerisCommand = async ( input: CreateEphemerisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris"; + b.bp("/ephemeris"); let body: any; body = JSON.stringify( take(input, { @@ -252,15 +232,8 @@ export const se_CreateEphemerisCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -270,11 +243,11 @@ export const se_CreateMissionProfileCommand = async ( input: CreateMissionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile"; + b.bp("/missionprofile"); let body: any; body = JSON.stringify( take(input, { @@ -289,15 +262,8 @@ export const se_CreateMissionProfileCommand = async ( trackingConfigArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -307,22 +273,14 @@ export const se_DeleteConfigCommand = async ( input: DeleteConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "configId", () => input.configId!, "{configId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "configType", () => input.configType!, "{configType}", false); + b.bp("/config/{configType}/{configId}"); + b.p("configId", () => input.configId!, "{configId}", false); + b.p("configType", () => input.configType!, "{configType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -332,29 +290,13 @@ export const se_DeleteDataflowEndpointGroupCommand = async ( input: DeleteDataflowEndpointGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/dataflowEndpointGroup/{dataflowEndpointGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataflowEndpointGroupId", - () => input.dataflowEndpointGroupId!, - "{dataflowEndpointGroupId}", - false - ); + b.bp("/dataflowEndpointGroup/{dataflowEndpointGroupId}"); + b.p("dataflowEndpointGroupId", () => input.dataflowEndpointGroupId!, "{dataflowEndpointGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -364,20 +306,13 @@ export const se_DeleteEphemerisCommand = async ( input: DeleteEphemerisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ephemerisId", () => input.ephemerisId!, "{ephemerisId}", false); + b.bp("/ephemeris/{ephemerisId}"); + b.p("ephemerisId", () => input.ephemerisId!, "{ephemerisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -387,28 +322,13 @@ export const se_DeleteMissionProfileCommand = async ( input: DeleteMissionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "missionProfileId", - () => input.missionProfileId!, - "{missionProfileId}", - false - ); + b.bp("/missionprofile/{missionProfileId}"); + b.p("missionProfileId", () => input.missionProfileId!, "{missionProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -418,20 +338,13 @@ export const se_DescribeContactCommand = async ( input: DescribeContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/{contactId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "contactId", () => input.contactId!, "{contactId}", false); + b.bp("/contact/{contactId}"); + b.p("contactId", () => input.contactId!, "{contactId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -441,20 +354,13 @@ export const se_DescribeEphemerisCommand = async ( input: DescribeEphemerisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ephemerisId", () => input.ephemerisId!, "{ephemerisId}", false); + b.bp("/ephemeris/{ephemerisId}"); + b.p("ephemerisId", () => input.ephemerisId!, "{ephemerisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -464,21 +370,13 @@ export const se_GetAgentConfigurationCommand = async ( input: GetAgentConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}/configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agent/{agentId}/configuration"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -488,22 +386,14 @@ export const se_GetConfigCommand = async ( input: GetConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "configId", () => input.configId!, "{configId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "configType", () => input.configType!, "{configType}", false); + b.bp("/config/{configType}/{configId}"); + b.p("configId", () => input.configId!, "{configId}", false); + b.p("configType", () => input.configType!, "{configType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -513,29 +403,13 @@ export const se_GetDataflowEndpointGroupCommand = async ( input: GetDataflowEndpointGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/dataflowEndpointGroup/{dataflowEndpointGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataflowEndpointGroupId", - () => input.dataflowEndpointGroupId!, - "{dataflowEndpointGroupId}", - false - ); + b.bp("/dataflowEndpointGroup/{dataflowEndpointGroupId}"); + b.p("dataflowEndpointGroupId", () => input.dataflowEndpointGroupId!, "{dataflowEndpointGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -545,11 +419,11 @@ export const se_GetMinuteUsageCommand = async ( input: GetMinuteUsageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/minute-usage"; + b.bp("/minute-usage"); let body: any; body = JSON.stringify( take(input, { @@ -557,15 +431,8 @@ export const se_GetMinuteUsageCommand = async ( year: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -575,28 +442,13 @@ export const se_GetMissionProfileCommand = async ( input: GetMissionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "missionProfileId", - () => input.missionProfileId!, - "{missionProfileId}", - false - ); + b.bp("/missionprofile/{missionProfileId}"); + b.p("missionProfileId", () => input.missionProfileId!, "{missionProfileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -606,20 +458,13 @@ export const se_GetSatelliteCommand = async ( input: GetSatelliteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/satellite/{satelliteId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "satelliteId", () => input.satelliteId!, "{satelliteId}", false); + b.bp("/satellite/{satelliteId}"); + b.p("satelliteId", () => input.satelliteId!, "{satelliteId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -629,24 +474,16 @@ export const se_ListConfigsCommand = async ( input: ListConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config"; + b.bp("/config"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -656,11 +493,11 @@ export const se_ListContactsCommand = async ( input: ListContactsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts"; + b.bp("/contacts"); let body: any; body = JSON.stringify( take(input, { @@ -674,15 +511,8 @@ export const se_ListContactsCommand = async ( statusList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -692,24 +522,16 @@ export const se_ListDataflowEndpointGroupsCommand = async ( input: ListDataflowEndpointGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup"; + b.bp("/dataflowEndpointGroup"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -719,14 +541,14 @@ export const se_ListEphemeridesCommand = async ( input: ListEphemeridesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemerides"; + b.bp("/ephemerides"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -737,16 +559,8 @@ export const se_ListEphemeridesCommand = async ( statusList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -756,25 +570,17 @@ export const se_ListGroundStationsCommand = async ( input: ListGroundStationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groundstation"; + b.bp("/groundstation"); const query: any = map({ - satelliteId: [, input.satelliteId!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sI]: [, input[_sI]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -784,24 +590,16 @@ export const se_ListMissionProfilesCommand = async ( input: ListMissionProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile"; + b.bp("/missionprofile"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -811,24 +609,16 @@ export const se_ListSatellitesCommand = async ( input: ListSatellitesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/satellite"; + b.bp("/satellite"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -838,20 +628,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -861,11 +644,11 @@ export const se_RegisterAgentCommand = async ( input: RegisterAgentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent"; + b.bp("/agent"); let body: any; body = JSON.stringify( take(input, { @@ -873,15 +656,8 @@ export const se_RegisterAgentCommand = async ( discoveryData: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -891,11 +667,11 @@ export const se_ReserveContactCommand = async ( input: ReserveContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact"; + b.bp("/contact"); let body: any; body = JSON.stringify( take(input, { @@ -907,15 +683,8 @@ export const se_ReserveContactCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -925,27 +694,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -955,27 +717,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -985,12 +739,12 @@ export const se_UpdateAgentStatusCommand = async ( input: UpdateAgentStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId!, "{agentId}", false); + b.bp("/agent/{agentId}"); + b.p("agentId", () => input.agentId!, "{agentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -999,15 +753,8 @@ export const se_UpdateAgentStatusCommand = async ( taskId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1017,14 +764,13 @@ export const se_UpdateConfigCommand = async ( input: UpdateConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "configId", () => input.configId!, "{configId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "configType", () => input.configType!, "{configType}", false); + b.bp("/config/{configType}/{configId}"); + b.p("configId", () => input.configId!, "{configId}", false); + b.p("configType", () => input.configType!, "{configType}", false); let body: any; body = JSON.stringify( take(input, { @@ -1032,15 +778,8 @@ export const se_UpdateConfigCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1050,12 +789,12 @@ export const se_UpdateEphemerisCommand = async ( input: UpdateEphemerisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ephemerisId", () => input.ephemerisId!, "{ephemerisId}", false); + b.bp("/ephemeris/{ephemerisId}"); + b.p("ephemerisId", () => input.ephemerisId!, "{ephemerisId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1064,15 +803,8 @@ export const se_UpdateEphemerisCommand = async ( priority: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1082,20 +814,12 @@ export const se_UpdateMissionProfileCommand = async ( input: UpdateMissionProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "missionProfileId", - () => input.missionProfileId!, - "{missionProfileId}", - false - ); + b.bp("/missionprofile/{missionProfileId}"); + b.p("missionProfileId", () => input.missionProfileId!, "{missionProfileId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1109,15 +833,8 @@ export const se_UpdateMissionProfileCommand = async ( trackingConfigArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3581,6 +3298,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _sI = "satelliteId"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-guardduty/package.json b/clients/client-guardduty/package.json index fae0605ba6d3..7036b1a18761 100644 --- a/clients/client-guardduty/package.json +++ b/clients/client-guardduty/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index 24d166dc4aeb..6834dd496a27 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -387,13 +388,12 @@ export const se_AcceptAdministratorInvitationCommand = async ( input: AcceptAdministratorInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/administrator"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/administrator"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -401,15 +401,8 @@ export const se_AcceptAdministratorInvitationCommand = async ( invitationId: [, , `InvitationId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -419,13 +412,12 @@ export const se_AcceptInvitationCommand = async ( input: AcceptInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/master"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/master"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -433,15 +425,8 @@ export const se_AcceptInvitationCommand = async ( masterId: [, , `MasterId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -451,28 +436,20 @@ export const se_ArchiveFindingsCommand = async ( input: ArchiveFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/archive"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/findings/archive"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { findingIds: [, (_) => _json(_), `FindingIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -482,11 +459,11 @@ export const se_CreateDetectorCommand = async ( input: CreateDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector"; + b.bp("/detector"); let body: any; body = JSON.stringify( take(input, { @@ -498,15 +475,8 @@ export const se_CreateDetectorCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -516,13 +486,12 @@ export const se_CreateFilterCommand = async ( input: CreateFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/filter"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/filter"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -535,15 +504,8 @@ export const se_CreateFilterCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -553,13 +515,12 @@ export const se_CreateIPSetCommand = async ( input: CreateIPSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/ipset"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -571,15 +532,8 @@ export const se_CreateIPSetCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -589,28 +543,20 @@ export const se_CreateMembersCommand = async ( input: CreateMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountDetails: [, (_) => se_AccountDetails(_, context), `AccountDetails`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -620,14 +566,12 @@ export const se_CreatePublishingDestinationCommand = async ( input: CreatePublishingDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/publishingDestination"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/publishingDestination"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -636,15 +580,8 @@ export const se_CreatePublishingDestinationCommand = async ( destinationType: [, , `DestinationType`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -654,28 +591,20 @@ export const se_CreateSampleFindingsCommand = async ( input: CreateSampleFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/create"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/findings/create"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { findingTypes: [, (_) => _json(_), `FindingTypes`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -685,13 +614,12 @@ export const se_CreateThreatIntelSetCommand = async ( input: CreateThreatIntelSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/threatintelset"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/threatintelset"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -703,15 +631,8 @@ export const se_CreateThreatIntelSetCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -721,26 +642,19 @@ export const se_DeclineInvitationsCommand = async ( input: DeclineInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/decline"; + b.bp("/invitation/decline"); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -750,20 +664,13 @@ export const se_DeleteDetectorCommand = async ( input: DeleteDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -773,23 +680,14 @@ export const se_DeleteFilterCommand = async ( input: DeleteFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/filter/{FilterName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "FilterName", () => input.FilterName!, "{FilterName}", false); + b.bp("/detector/{DetectorId}/filter/{FilterName}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("FilterName", () => input.FilterName!, "{FilterName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -799,26 +697,19 @@ export const se_DeleteInvitationsCommand = async ( input: DeleteInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/delete"; + b.bp("/invitation/delete"); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -828,22 +719,14 @@ export const se_DeleteIPSetCommand = async ( input: DeleteIPSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "IpSetId", () => input.IpSetId!, "{IpSetId}", false); + b.bp("/detector/{DetectorId}/ipset/{IpSetId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("IpSetId", () => input.IpSetId!, "{IpSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -853,28 +736,20 @@ export const se_DeleteMembersCommand = async ( input: DeleteMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/delete"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/delete"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -884,30 +759,14 @@ export const se_DeletePublishingDestinationCommand = async ( input: DeletePublishingDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/publishingDestination/{DestinationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DestinationId", - () => input.DestinationId!, - "{DestinationId}", - false - ); + b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("DestinationId", () => input.DestinationId!, "{DestinationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -917,30 +776,14 @@ export const se_DeleteThreatIntelSetCommand = async ( input: DeleteThreatIntelSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ThreatIntelSetId", - () => input.ThreatIntelSetId!, - "{ThreatIntelSetId}", - false - ); + b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("ThreatIntelSetId", () => input.ThreatIntelSetId!, "{ThreatIntelSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -950,13 +793,12 @@ export const se_DescribeMalwareScansCommand = async ( input: DescribeMalwareScansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/malware-scans"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/malware-scans"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -966,15 +808,8 @@ export const se_DescribeMalwareScansCommand = async ( sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -984,26 +819,17 @@ export const se_DescribeOrganizationConfigurationCommand = async ( input: DescribeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/admin"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1013,30 +839,14 @@ export const se_DescribePublishingDestinationCommand = async ( input: DescribePublishingDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/publishingDestination/{DestinationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DestinationId", - () => input.DestinationId!, - "{DestinationId}", - false - ); + b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("DestinationId", () => input.DestinationId!, "{DestinationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1046,26 +856,19 @@ export const se_DisableOrganizationAdminAccountCommand = async ( input: DisableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin/disable"; + b.bp("/admin/disable"); let body: any; body = JSON.stringify( take(input, { adminAccountId: [, , `AdminAccountId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1075,22 +878,13 @@ export const se_DisassociateFromAdministratorAccountCommand = async ( input: DisassociateFromAdministratorAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/administrator/disassociate"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/administrator/disassociate"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1100,22 +894,13 @@ export const se_DisassociateFromMasterAccountCommand = async ( input: DisassociateFromMasterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/master/disassociate"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/master/disassociate"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1125,29 +910,20 @@ export const se_DisassociateMembersCommand = async ( input: DisassociateMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/member/disassociate"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/disassociate"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1157,26 +933,19 @@ export const se_EnableOrganizationAdminAccountCommand = async ( input: EnableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin/enable"; + b.bp("/admin/enable"); let body: any; body = JSON.stringify( take(input, { adminAccountId: [, , `AdminAccountId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1186,21 +955,13 @@ export const se_GetAdministratorAccountCommand = async ( input: GetAdministratorAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/administrator"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/administrator"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1210,14 +971,12 @@ export const se_GetCoverageStatisticsCommand = async ( input: GetCoverageStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/coverage/statistics"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/coverage/statistics"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1225,15 +984,8 @@ export const se_GetCoverageStatisticsCommand = async ( statisticsType: [, (_) => _json(_), `StatisticsType`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1243,20 +995,13 @@ export const se_GetDetectorCommand = async ( input: GetDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1266,23 +1011,14 @@ export const se_GetFilterCommand = async ( input: GetFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/filter/{FilterName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "FilterName", () => input.FilterName!, "{FilterName}", false); + b.bp("/detector/{DetectorId}/filter/{FilterName}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("FilterName", () => input.FilterName!, "{FilterName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1292,13 +1028,12 @@ export const se_GetFindingsCommand = async ( input: GetFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/get"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/findings/get"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1306,15 +1041,8 @@ export const se_GetFindingsCommand = async ( sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1324,14 +1052,12 @@ export const se_GetFindingsStatisticsCommand = async ( input: GetFindingsStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/findings/statistics"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/findings/statistics"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1339,15 +1065,8 @@ export const se_GetFindingsStatisticsCommand = async ( findingStatisticTypes: [, (_) => _json(_), `FindingStatisticTypes`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1357,22 +1076,15 @@ export const se_GetInvitationsCountCommand = async ( input: GetInvitationsCountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/count"; + b.bp("/invitation/count"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1382,22 +1094,14 @@ export const se_GetIPSetCommand = async ( input: GetIPSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "IpSetId", () => input.IpSetId!, "{IpSetId}", false); + b.bp("/detector/{DetectorId}/ipset/{IpSetId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("IpSetId", () => input.IpSetId!, "{IpSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1407,22 +1111,13 @@ export const se_GetMalwareScanSettingsCommand = async ( input: GetMalwareScanSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/malware-scan-settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/malware-scan-settings"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1432,21 +1127,13 @@ export const se_GetMasterAccountCommand = async ( input: GetMasterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/master"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/master"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1456,29 +1143,20 @@ export const se_GetMemberDetectorsCommand = async ( input: GetMemberDetectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/member/detector/get"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/detector/get"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1488,28 +1166,20 @@ export const se_GetMembersCommand = async ( input: GetMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/get"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/get"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1519,29 +1189,20 @@ export const se_GetRemainingFreeTrialDaysCommand = async ( input: GetRemainingFreeTrialDaysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/freeTrial/daysRemaining"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/freeTrial/daysRemaining"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1551,30 +1212,14 @@ export const se_GetThreatIntelSetCommand = async ( input: GetThreatIntelSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ThreatIntelSetId", - () => input.ThreatIntelSetId!, - "{ThreatIntelSetId}", - false - ); + b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("ThreatIntelSetId", () => input.ThreatIntelSetId!, "{ThreatIntelSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1584,13 +1229,12 @@ export const se_GetUsageStatisticsCommand = async ( input: GetUsageStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/usage/statistics"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/usage/statistics"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1601,15 +1245,8 @@ export const se_GetUsageStatisticsCommand = async ( usageStatisticsType: [, , `UsageStatisticType`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1619,13 +1256,12 @@ export const se_InviteMembersCommand = async ( input: InviteMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/invite"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/invite"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1634,15 +1270,8 @@ export const se_InviteMembersCommand = async ( message: [, , `Message`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1652,13 +1281,12 @@ export const se_ListCoverageCommand = async ( input: ListCoverageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/coverage"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/coverage"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1668,15 +1296,8 @@ export const se_ListCoverageCommand = async ( sortCriteria: [, (_) => se_CoverageSortCriteria(_, context), `SortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1686,24 +1307,16 @@ export const se_ListDetectorsCommand = async ( input: ListDetectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector"; + b.bp("/detector"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1713,26 +1326,17 @@ export const se_ListFiltersCommand = async ( input: ListFiltersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/filter"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/filter"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1742,13 +1346,12 @@ export const se_ListFindingsCommand = async ( input: ListFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/findings"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1758,15 +1361,8 @@ export const se_ListFindingsCommand = async ( sortCriteria: [, (_) => se_SortCriteria(_, context), `SortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1776,24 +1372,16 @@ export const se_ListInvitationsCommand = async ( input: ListInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation"; + b.bp("/invitation"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1803,26 +1391,17 @@ export const se_ListIPSetsCommand = async ( input: ListIPSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/ipset"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1832,27 +1411,18 @@ export const se_ListMembersCommand = async ( input: ListMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - onlyAssociated: [, input.OnlyAssociated!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_oA]: [, input[_OA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1862,24 +1432,16 @@ export const se_ListOrganizationAdminAccountsCommand = async ( input: ListOrganizationAdminAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin"; + b.bp("/admin"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1889,27 +1451,17 @@ export const se_ListPublishingDestinationsCommand = async ( input: ListPublishingDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/publishingDestination"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/publishingDestination"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1919,20 +1471,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1942,26 +1487,17 @@ export const se_ListThreatIntelSetsCommand = async ( input: ListThreatIntelSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/threatintelset"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/threatintelset"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1971,26 +1507,19 @@ export const se_StartMalwareScanCommand = async ( input: StartMalwareScanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/malware-scan/start"; + b.bp("/malware-scan/start"); let body: any; body = JSON.stringify( take(input, { resourceArn: [, , `ResourceArn`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2000,28 +1529,20 @@ export const se_StartMonitoringMembersCommand = async ( input: StartMonitoringMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/start"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2031,28 +1552,20 @@ export const se_StopMonitoringMembersCommand = async ( input: StopMonitoringMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/stop"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `AccountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2062,27 +1575,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2092,28 +1598,20 @@ export const se_UnarchiveFindingsCommand = async ( input: UnarchiveFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/unarchive"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/findings/unarchive"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { findingIds: [, (_) => _json(_), `FindingIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2123,27 +1621,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2153,12 +1643,12 @@ export const se_UpdateDetectorCommand = async ( input: UpdateDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2168,15 +1658,8 @@ export const se_UpdateDetectorCommand = async ( findingPublishingFrequency: [, , `FindingPublishingFrequency`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2186,15 +1669,13 @@ export const se_UpdateFilterCommand = async ( input: UpdateFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/filter/{FilterName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "FilterName", () => input.FilterName!, "{FilterName}", false); + b.bp("/detector/{DetectorId}/filter/{FilterName}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("FilterName", () => input.FilterName!, "{FilterName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2204,15 +1685,8 @@ export const se_UpdateFilterCommand = async ( rank: [, , `Rank`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2222,13 +1696,12 @@ export const se_UpdateFindingsFeedbackCommand = async ( input: UpdateFindingsFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/feedback"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/findings/feedback"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2237,15 +1710,8 @@ export const se_UpdateFindingsFeedbackCommand = async ( findingIds: [, (_) => _json(_), `FindingIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2255,14 +1721,13 @@ export const se_UpdateIPSetCommand = async ( input: UpdateIPSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "IpSetId", () => input.IpSetId!, "{IpSetId}", false); + b.bp("/detector/{DetectorId}/ipset/{IpSetId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("IpSetId", () => input.IpSetId!, "{IpSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2271,15 +1736,8 @@ export const se_UpdateIPSetCommand = async ( name: [, , `Name`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2289,14 +1747,12 @@ export const se_UpdateMalwareScanSettingsCommand = async ( input: UpdateMalwareScanSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/malware-scan-settings"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/malware-scan-settings"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2304,15 +1760,8 @@ export const se_UpdateMalwareScanSettingsCommand = async ( scanResourceCriteria: [, (_) => se_ScanResourceCriteria(_, context), `ScanResourceCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2322,14 +1771,12 @@ export const se_UpdateMemberDetectorsCommand = async ( input: UpdateMemberDetectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/member/detector/update"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/member/detector/update"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2338,15 +1785,8 @@ export const se_UpdateMemberDetectorsCommand = async ( features: [, (_) => se_MemberFeaturesConfigurations(_, context), `Features`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2356,13 +1796,12 @@ export const se_UpdateOrganizationConfigurationCommand = async ( input: UpdateOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.bp("/detector/{DetectorId}/admin"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2372,15 +1811,8 @@ export const se_UpdateOrganizationConfigurationCommand = async ( features: [, (_) => se_OrganizationFeaturesConfigurations(_, context), `Features`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2390,37 +1822,21 @@ export const se_UpdatePublishingDestinationCommand = async ( input: UpdatePublishingDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/publishingDestination/{DestinationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DestinationId", - () => input.DestinationId!, - "{DestinationId}", - false - ); + b.bp("/detector/{DetectorId}/publishingDestination/{DestinationId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("DestinationId", () => input.DestinationId!, "{DestinationId}", false); let body: any; body = JSON.stringify( take(input, { destinationProperties: [, (_) => se_DestinationProperties(_, context), `DestinationProperties`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2430,22 +1846,13 @@ export const se_UpdateThreatIntelSetCommand = async ( input: UpdateThreatIntelSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId!, "{DetectorId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ThreatIntelSetId", - () => input.ThreatIntelSetId!, - "{ThreatIntelSetId}", - false - ); + b.bp("/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"); + b.p("DetectorId", () => input.DetectorId!, "{DetectorId}", false); + b.p("ThreatIntelSetId", () => input.ThreatIntelSetId!, "{ThreatIntelSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2454,15 +1861,8 @@ export const se_UpdateThreatIntelSetCommand = async ( name: [, , `Name`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8909,6 +8309,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _OA = "OnlyAssociated"; +const _TK = "TagKeys"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _oA = "onlyAssociated"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-honeycode/package.json b/clients/client-honeycode/package.json index 8c036ffe9507..e37226006bfa 100644 --- a/clients/client-honeycode/package.json +++ b/clients/client-honeycode/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-honeycode/src/protocols/Aws_restJson1.ts b/clients/client-honeycode/src/protocols/Aws_restJson1.ts index 0bc7061951da..426ef55e27c0 100644 --- a/clients/client-honeycode/src/protocols/Aws_restJson1.ts +++ b/clients/client-honeycode/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -95,15 +96,13 @@ export const se_BatchCreateTableRowsCommand = async ( input: BatchCreateTableRowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/rows/batchcreate"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/rows/batchcreate"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); let body: any; body = JSON.stringify( take(input, { @@ -111,15 +110,8 @@ export const se_BatchCreateTableRowsCommand = async ( rowsToCreate: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -129,15 +121,13 @@ export const se_BatchDeleteTableRowsCommand = async ( input: BatchDeleteTableRowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/rows/batchdelete"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/rows/batchdelete"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); let body: any; body = JSON.stringify( take(input, { @@ -145,15 +135,8 @@ export const se_BatchDeleteTableRowsCommand = async ( rowIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -163,15 +146,13 @@ export const se_BatchUpdateTableRowsCommand = async ( input: BatchUpdateTableRowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/rows/batchupdate"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/rows/batchupdate"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); let body: any; body = JSON.stringify( take(input, { @@ -179,15 +160,8 @@ export const se_BatchUpdateTableRowsCommand = async ( rowsToUpdate: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -197,15 +171,13 @@ export const se_BatchUpsertTableRowsCommand = async ( input: BatchUpsertTableRowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/rows/batchupsert"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/rows/batchupsert"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); let body: any; body = JSON.stringify( take(input, { @@ -213,15 +185,8 @@ export const se_BatchUpsertTableRowsCommand = async ( rowsToUpsert: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -231,24 +196,15 @@ export const se_DescribeTableDataImportJobCommand = async ( input: DescribeTableDataImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/import/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/import/{jobId}"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -258,11 +214,11 @@ export const se_GetScreenDataCommand = async ( input: GetScreenDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/screendata"; + b.bp("/screendata"); let body: any; body = JSON.stringify( take(input, { @@ -274,15 +230,8 @@ export const se_GetScreenDataCommand = async ( workbookId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -292,24 +241,15 @@ export const se_InvokeScreenAutomationCommand = async ( input: InvokeScreenAutomationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/apps/{appId}/screens/{screenId}/automations/{screenAutomationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId!, "{appId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "screenId", () => input.screenId!, "{screenId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "screenAutomationId", - () => input.screenAutomationId!, - "{screenAutomationId}", - false - ); + b.bp("/workbooks/{workbookId}/apps/{appId}/screens/{screenId}/automations/{screenAutomationId}"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("appId", () => input.appId!, "{appId}", false); + b.p("screenId", () => input.screenId!, "{screenId}", false); + b.p("screenAutomationId", () => input.screenAutomationId!, "{screenAutomationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -318,15 +258,8 @@ export const se_InvokeScreenAutomationCommand = async ( variables: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -336,27 +269,17 @@ export const se_ListTableColumnsCommand = async ( input: ListTableColumnsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/columns"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/columns"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -366,15 +289,13 @@ export const se_ListTableRowsCommand = async ( input: ListTableRowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/rows/list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/rows/list"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); let body: any; body = JSON.stringify( take(input, { @@ -383,15 +304,8 @@ export const se_ListTableRowsCommand = async ( rowIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -401,26 +315,17 @@ export const se_ListTablesCommand = async ( input: ListTablesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workbooks/{workbookId}/tables"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); + b.bp("/workbooks/{workbookId}/tables"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -430,20 +335,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -453,15 +351,13 @@ export const se_QueryTableRowsCommand = async ( input: QueryTableRowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{tableId}/rows/query"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "tableId", () => input.tableId!, "{tableId}", false); + b.bp("/workbooks/{workbookId}/tables/{tableId}/rows/query"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("tableId", () => input.tableId!, "{tableId}", false); let body: any; body = JSON.stringify( take(input, { @@ -470,15 +366,8 @@ export const se_QueryTableRowsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -488,22 +377,13 @@ export const se_StartTableDataImportJobCommand = async ( input: StartTableDataImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workbooks/{workbookId}/tables/{destinationTableId}/import"; - resolvedPath = __resolvedPath(resolvedPath, input, "workbookId", () => input.workbookId!, "{workbookId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "destinationTableId", - () => input.destinationTableId!, - "{destinationTableId}", - false - ); + b.bp("/workbooks/{workbookId}/tables/{destinationTableId}/import"); + b.p("workbookId", () => input.workbookId!, "{workbookId}", false); + b.p("destinationTableId", () => input.destinationTableId!, "{destinationTableId}", false); let body: any; body = JSON.stringify( take(input, { @@ -513,15 +393,8 @@ export const se_StartTableDataImportJobCommand = async ( importOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -531,27 +404,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -561,27 +427,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1926,6 +1784,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iam/src/models/models_1.ts b/clients/client-iam/src/models/models_1.ts index c2db1cd77b9b..49f4fdfe0c40 100644 --- a/clients/client-iam/src/models/models_1.ts +++ b/clients/client-iam/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { IAMServiceException as __BaseException } from "./IAMServiceException"; + import { Role, ServerCertificateMetadata, SigningCertificate, SSHPublicKey, StatusType, Tag } from "./models_0"; /** diff --git a/clients/client-iam/src/protocols/Aws_query.ts b/clients/client-iam/src/protocols/Aws_query.ts index 19f5ce8ccde8..2d219c39fe49 100644 --- a/clients/client-iam/src/protocols/Aws_query.ts +++ b/clients/client-iam/src/protocols/Aws_query.ts @@ -741,8 +741,8 @@ export const se_AddClientIDToOpenIDConnectProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddClientIDToOpenIDConnectProviderRequest(input, context), - Action: "AddClientIDToOpenIDConnectProvider", - Version: "2010-05-08", + [_A]: _ACIDTOIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -758,8 +758,8 @@ export const se_AddRoleToInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddRoleToInstanceProfileRequest(input, context), - Action: "AddRoleToInstanceProfile", - Version: "2010-05-08", + [_A]: _ARTIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -775,8 +775,8 @@ export const se_AddUserToGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddUserToGroupRequest(input, context), - Action: "AddUserToGroup", - Version: "2010-05-08", + [_A]: _AUTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -792,8 +792,8 @@ export const se_AttachGroupPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachGroupPolicyRequest(input, context), - Action: "AttachGroupPolicy", - Version: "2010-05-08", + [_A]: _AGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -809,8 +809,8 @@ export const se_AttachRolePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachRolePolicyRequest(input, context), - Action: "AttachRolePolicy", - Version: "2010-05-08", + [_A]: _ARP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -826,8 +826,8 @@ export const se_AttachUserPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AttachUserPolicyRequest(input, context), - Action: "AttachUserPolicy", - Version: "2010-05-08", + [_A]: _AUP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -843,8 +843,8 @@ export const se_ChangePasswordCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ChangePasswordRequest(input, context), - Action: "ChangePassword", - Version: "2010-05-08", + [_A]: _CP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -860,8 +860,8 @@ export const se_CreateAccessKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateAccessKeyRequest(input, context), - Action: "CreateAccessKey", - Version: "2010-05-08", + [_A]: _CAK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -877,8 +877,8 @@ export const se_CreateAccountAliasCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateAccountAliasRequest(input, context), - Action: "CreateAccountAlias", - Version: "2010-05-08", + [_A]: _CAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -894,8 +894,8 @@ export const se_CreateGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateGroupRequest(input, context), - Action: "CreateGroup", - Version: "2010-05-08", + [_A]: _CG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -911,8 +911,8 @@ export const se_CreateInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateInstanceProfileRequest(input, context), - Action: "CreateInstanceProfile", - Version: "2010-05-08", + [_A]: _CIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -928,8 +928,8 @@ export const se_CreateLoginProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateLoginProfileRequest(input, context), - Action: "CreateLoginProfile", - Version: "2010-05-08", + [_A]: _CLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -945,8 +945,8 @@ export const se_CreateOpenIDConnectProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateOpenIDConnectProviderRequest(input, context), - Action: "CreateOpenIDConnectProvider", - Version: "2010-05-08", + [_A]: _COIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -962,8 +962,8 @@ export const se_CreatePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreatePolicyRequest(input, context), - Action: "CreatePolicy", - Version: "2010-05-08", + [_A]: _CPr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -979,8 +979,8 @@ export const se_CreatePolicyVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreatePolicyVersionRequest(input, context), - Action: "CreatePolicyVersion", - Version: "2010-05-08", + [_A]: _CPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -996,8 +996,8 @@ export const se_CreateRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateRoleRequest(input, context), - Action: "CreateRole", - Version: "2010-05-08", + [_A]: _CR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1013,8 +1013,8 @@ export const se_CreateSAMLProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSAMLProviderRequest(input, context), - Action: "CreateSAMLProvider", - Version: "2010-05-08", + [_A]: _CSAMLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1030,8 +1030,8 @@ export const se_CreateServiceLinkedRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateServiceLinkedRoleRequest(input, context), - Action: "CreateServiceLinkedRole", - Version: "2010-05-08", + [_A]: _CSLR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1047,8 +1047,8 @@ export const se_CreateServiceSpecificCredentialCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateServiceSpecificCredentialRequest(input, context), - Action: "CreateServiceSpecificCredential", - Version: "2010-05-08", + [_A]: _CSSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1064,8 +1064,8 @@ export const se_CreateUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateUserRequest(input, context), - Action: "CreateUser", - Version: "2010-05-08", + [_A]: _CU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1081,8 +1081,8 @@ export const se_CreateVirtualMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateVirtualMFADeviceRequest(input, context), - Action: "CreateVirtualMFADevice", - Version: "2010-05-08", + [_A]: _CVMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1098,8 +1098,8 @@ export const se_DeactivateMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeactivateMFADeviceRequest(input, context), - Action: "DeactivateMFADevice", - Version: "2010-05-08", + [_A]: _DMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1115,8 +1115,8 @@ export const se_DeleteAccessKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAccessKeyRequest(input, context), - Action: "DeleteAccessKey", - Version: "2010-05-08", + [_A]: _DAK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1132,8 +1132,8 @@ export const se_DeleteAccountAliasCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAccountAliasRequest(input, context), - Action: "DeleteAccountAlias", - Version: "2010-05-08", + [_A]: _DAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1147,8 +1147,8 @@ export const se_DeleteAccountPasswordPolicyCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DeleteAccountPasswordPolicy", - Version: "2010-05-08", + [_A]: _DAPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1164,8 +1164,8 @@ export const se_DeleteGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteGroupRequest(input, context), - Action: "DeleteGroup", - Version: "2010-05-08", + [_A]: _DG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1181,8 +1181,8 @@ export const se_DeleteGroupPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteGroupPolicyRequest(input, context), - Action: "DeleteGroupPolicy", - Version: "2010-05-08", + [_A]: _DGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1198,8 +1198,8 @@ export const se_DeleteInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteInstanceProfileRequest(input, context), - Action: "DeleteInstanceProfile", - Version: "2010-05-08", + [_A]: _DIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1215,8 +1215,8 @@ export const se_DeleteLoginProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteLoginProfileRequest(input, context), - Action: "DeleteLoginProfile", - Version: "2010-05-08", + [_A]: _DLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1232,8 +1232,8 @@ export const se_DeleteOpenIDConnectProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteOpenIDConnectProviderRequest(input, context), - Action: "DeleteOpenIDConnectProvider", - Version: "2010-05-08", + [_A]: _DOIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1249,8 +1249,8 @@ export const se_DeletePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeletePolicyRequest(input, context), - Action: "DeletePolicy", - Version: "2010-05-08", + [_A]: _DP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1266,8 +1266,8 @@ export const se_DeletePolicyVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeletePolicyVersionRequest(input, context), - Action: "DeletePolicyVersion", - Version: "2010-05-08", + [_A]: _DPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1283,8 +1283,8 @@ export const se_DeleteRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteRoleRequest(input, context), - Action: "DeleteRole", - Version: "2010-05-08", + [_A]: _DR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1300,8 +1300,8 @@ export const se_DeleteRolePermissionsBoundaryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteRolePermissionsBoundaryRequest(input, context), - Action: "DeleteRolePermissionsBoundary", - Version: "2010-05-08", + [_A]: _DRPB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1317,8 +1317,8 @@ export const se_DeleteRolePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteRolePolicyRequest(input, context), - Action: "DeleteRolePolicy", - Version: "2010-05-08", + [_A]: _DRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1334,8 +1334,8 @@ export const se_DeleteSAMLProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSAMLProviderRequest(input, context), - Action: "DeleteSAMLProvider", - Version: "2010-05-08", + [_A]: _DSAMLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1351,8 +1351,8 @@ export const se_DeleteServerCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteServerCertificateRequest(input, context), - Action: "DeleteServerCertificate", - Version: "2010-05-08", + [_A]: _DSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1368,8 +1368,8 @@ export const se_DeleteServiceLinkedRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteServiceLinkedRoleRequest(input, context), - Action: "DeleteServiceLinkedRole", - Version: "2010-05-08", + [_A]: _DSLR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1385,8 +1385,8 @@ export const se_DeleteServiceSpecificCredentialCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteServiceSpecificCredentialRequest(input, context), - Action: "DeleteServiceSpecificCredential", - Version: "2010-05-08", + [_A]: _DSSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1402,8 +1402,8 @@ export const se_DeleteSigningCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSigningCertificateRequest(input, context), - Action: "DeleteSigningCertificate", - Version: "2010-05-08", + [_A]: _DSCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1419,8 +1419,8 @@ export const se_DeleteSSHPublicKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSSHPublicKeyRequest(input, context), - Action: "DeleteSSHPublicKey", - Version: "2010-05-08", + [_A]: _DSSHPK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1436,8 +1436,8 @@ export const se_DeleteUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteUserRequest(input, context), - Action: "DeleteUser", - Version: "2010-05-08", + [_A]: _DU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1453,8 +1453,8 @@ export const se_DeleteUserPermissionsBoundaryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteUserPermissionsBoundaryRequest(input, context), - Action: "DeleteUserPermissionsBoundary", - Version: "2010-05-08", + [_A]: _DUPB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1470,8 +1470,8 @@ export const se_DeleteUserPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteUserPolicyRequest(input, context), - Action: "DeleteUserPolicy", - Version: "2010-05-08", + [_A]: _DUP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1487,8 +1487,8 @@ export const se_DeleteVirtualMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVirtualMFADeviceRequest(input, context), - Action: "DeleteVirtualMFADevice", - Version: "2010-05-08", + [_A]: _DVMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1504,8 +1504,8 @@ export const se_DetachGroupPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachGroupPolicyRequest(input, context), - Action: "DetachGroupPolicy", - Version: "2010-05-08", + [_A]: _DGPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1521,8 +1521,8 @@ export const se_DetachRolePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachRolePolicyRequest(input, context), - Action: "DetachRolePolicy", - Version: "2010-05-08", + [_A]: _DRPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1538,8 +1538,8 @@ export const se_DetachUserPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DetachUserPolicyRequest(input, context), - Action: "DetachUserPolicy", - Version: "2010-05-08", + [_A]: _DUPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1555,8 +1555,8 @@ export const se_EnableMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableMFADeviceRequest(input, context), - Action: "EnableMFADevice", - Version: "2010-05-08", + [_A]: _EMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1570,8 +1570,8 @@ export const se_GenerateCredentialReportCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GenerateCredentialReport", - Version: "2010-05-08", + [_A]: _GCR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1587,8 +1587,8 @@ export const se_GenerateOrganizationsAccessReportCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GenerateOrganizationsAccessReportRequest(input, context), - Action: "GenerateOrganizationsAccessReport", - Version: "2010-05-08", + [_A]: _GOAR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1604,8 +1604,8 @@ export const se_GenerateServiceLastAccessedDetailsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GenerateServiceLastAccessedDetailsRequest(input, context), - Action: "GenerateServiceLastAccessedDetails", - Version: "2010-05-08", + [_A]: _GSLAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1621,8 +1621,8 @@ export const se_GetAccessKeyLastUsedCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetAccessKeyLastUsedRequest(input, context), - Action: "GetAccessKeyLastUsed", - Version: "2010-05-08", + [_A]: _GAKLU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1638,8 +1638,8 @@ export const se_GetAccountAuthorizationDetailsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetAccountAuthorizationDetailsRequest(input, context), - Action: "GetAccountAuthorizationDetails", - Version: "2010-05-08", + [_A]: _GAAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1653,8 +1653,8 @@ export const se_GetAccountPasswordPolicyCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GetAccountPasswordPolicy", - Version: "2010-05-08", + [_A]: _GAPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1668,8 +1668,8 @@ export const se_GetAccountSummaryCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GetAccountSummary", - Version: "2010-05-08", + [_A]: _GAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1685,8 +1685,8 @@ export const se_GetContextKeysForCustomPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetContextKeysForCustomPolicyRequest(input, context), - Action: "GetContextKeysForCustomPolicy", - Version: "2010-05-08", + [_A]: _GCKFCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1702,8 +1702,8 @@ export const se_GetContextKeysForPrincipalPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetContextKeysForPrincipalPolicyRequest(input, context), - Action: "GetContextKeysForPrincipalPolicy", - Version: "2010-05-08", + [_A]: _GCKFPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1717,8 +1717,8 @@ export const se_GetCredentialReportCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GetCredentialReport", - Version: "2010-05-08", + [_A]: _GCRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1734,8 +1734,8 @@ export const se_GetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetGroupRequest(input, context), - Action: "GetGroup", - Version: "2010-05-08", + [_A]: _GG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1751,8 +1751,8 @@ export const se_GetGroupPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetGroupPolicyRequest(input, context), - Action: "GetGroupPolicy", - Version: "2010-05-08", + [_A]: _GGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1768,8 +1768,8 @@ export const se_GetInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetInstanceProfileRequest(input, context), - Action: "GetInstanceProfile", - Version: "2010-05-08", + [_A]: _GIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1785,8 +1785,8 @@ export const se_GetLoginProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetLoginProfileRequest(input, context), - Action: "GetLoginProfile", - Version: "2010-05-08", + [_A]: _GLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1802,8 +1802,8 @@ export const se_GetMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetMFADeviceRequest(input, context), - Action: "GetMFADevice", - Version: "2010-05-08", + [_A]: _GMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1819,8 +1819,8 @@ export const se_GetOpenIDConnectProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetOpenIDConnectProviderRequest(input, context), - Action: "GetOpenIDConnectProvider", - Version: "2010-05-08", + [_A]: _GOIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1836,8 +1836,8 @@ export const se_GetOrganizationsAccessReportCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetOrganizationsAccessReportRequest(input, context), - Action: "GetOrganizationsAccessReport", - Version: "2010-05-08", + [_A]: _GOARe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1853,8 +1853,8 @@ export const se_GetPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetPolicyRequest(input, context), - Action: "GetPolicy", - Version: "2010-05-08", + [_A]: _GP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1870,8 +1870,8 @@ export const se_GetPolicyVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetPolicyVersionRequest(input, context), - Action: "GetPolicyVersion", - Version: "2010-05-08", + [_A]: _GPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1887,8 +1887,8 @@ export const se_GetRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetRoleRequest(input, context), - Action: "GetRole", - Version: "2010-05-08", + [_A]: _GR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1904,8 +1904,8 @@ export const se_GetRolePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetRolePolicyRequest(input, context), - Action: "GetRolePolicy", - Version: "2010-05-08", + [_A]: _GRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1921,8 +1921,8 @@ export const se_GetSAMLProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSAMLProviderRequest(input, context), - Action: "GetSAMLProvider", - Version: "2010-05-08", + [_A]: _GSAMLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1938,8 +1938,8 @@ export const se_GetServerCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetServerCertificateRequest(input, context), - Action: "GetServerCertificate", - Version: "2010-05-08", + [_A]: _GSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1955,8 +1955,8 @@ export const se_GetServiceLastAccessedDetailsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetServiceLastAccessedDetailsRequest(input, context), - Action: "GetServiceLastAccessedDetails", - Version: "2010-05-08", + [_A]: _GSLADe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1972,8 +1972,8 @@ export const se_GetServiceLastAccessedDetailsWithEntitiesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetServiceLastAccessedDetailsWithEntitiesRequest(input, context), - Action: "GetServiceLastAccessedDetailsWithEntities", - Version: "2010-05-08", + [_A]: _GSLADWE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1989,8 +1989,8 @@ export const se_GetServiceLinkedRoleDeletionStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetServiceLinkedRoleDeletionStatusRequest(input, context), - Action: "GetServiceLinkedRoleDeletionStatus", - Version: "2010-05-08", + [_A]: _GSLRDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2006,8 +2006,8 @@ export const se_GetSSHPublicKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSSHPublicKeyRequest(input, context), - Action: "GetSSHPublicKey", - Version: "2010-05-08", + [_A]: _GSSHPK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2023,8 +2023,8 @@ export const se_GetUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetUserRequest(input, context), - Action: "GetUser", - Version: "2010-05-08", + [_A]: _GU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2040,8 +2040,8 @@ export const se_GetUserPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetUserPolicyRequest(input, context), - Action: "GetUserPolicy", - Version: "2010-05-08", + [_A]: _GUP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2057,8 +2057,8 @@ export const se_ListAccessKeysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListAccessKeysRequest(input, context), - Action: "ListAccessKeys", - Version: "2010-05-08", + [_A]: _LAK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2074,8 +2074,8 @@ export const se_ListAccountAliasesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListAccountAliasesRequest(input, context), - Action: "ListAccountAliases", - Version: "2010-05-08", + [_A]: _LAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2091,8 +2091,8 @@ export const se_ListAttachedGroupPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListAttachedGroupPoliciesRequest(input, context), - Action: "ListAttachedGroupPolicies", - Version: "2010-05-08", + [_A]: _LAGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2108,8 +2108,8 @@ export const se_ListAttachedRolePoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListAttachedRolePoliciesRequest(input, context), - Action: "ListAttachedRolePolicies", - Version: "2010-05-08", + [_A]: _LARP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2125,8 +2125,8 @@ export const se_ListAttachedUserPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListAttachedUserPoliciesRequest(input, context), - Action: "ListAttachedUserPolicies", - Version: "2010-05-08", + [_A]: _LAUP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2142,8 +2142,8 @@ export const se_ListEntitiesForPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListEntitiesForPolicyRequest(input, context), - Action: "ListEntitiesForPolicy", - Version: "2010-05-08", + [_A]: _LEFP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2159,8 +2159,8 @@ export const se_ListGroupPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListGroupPoliciesRequest(input, context), - Action: "ListGroupPolicies", - Version: "2010-05-08", + [_A]: _LGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2176,8 +2176,8 @@ export const se_ListGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListGroupsRequest(input, context), - Action: "ListGroups", - Version: "2010-05-08", + [_A]: _LG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2193,8 +2193,8 @@ export const se_ListGroupsForUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListGroupsForUserRequest(input, context), - Action: "ListGroupsForUser", - Version: "2010-05-08", + [_A]: _LGFU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2210,8 +2210,8 @@ export const se_ListInstanceProfilesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListInstanceProfilesRequest(input, context), - Action: "ListInstanceProfiles", - Version: "2010-05-08", + [_A]: _LIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2227,8 +2227,8 @@ export const se_ListInstanceProfilesForRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListInstanceProfilesForRoleRequest(input, context), - Action: "ListInstanceProfilesForRole", - Version: "2010-05-08", + [_A]: _LIPFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2244,8 +2244,8 @@ export const se_ListInstanceProfileTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListInstanceProfileTagsRequest(input, context), - Action: "ListInstanceProfileTags", - Version: "2010-05-08", + [_A]: _LIPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2261,8 +2261,8 @@ export const se_ListMFADevicesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListMFADevicesRequest(input, context), - Action: "ListMFADevices", - Version: "2010-05-08", + [_A]: _LMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2278,8 +2278,8 @@ export const se_ListMFADeviceTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListMFADeviceTagsRequest(input, context), - Action: "ListMFADeviceTags", - Version: "2010-05-08", + [_A]: _LMFADT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2295,8 +2295,8 @@ export const se_ListOpenIDConnectProvidersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListOpenIDConnectProvidersRequest(input, context), - Action: "ListOpenIDConnectProviders", - Version: "2010-05-08", + [_A]: _LOIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2312,8 +2312,8 @@ export const se_ListOpenIDConnectProviderTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListOpenIDConnectProviderTagsRequest(input, context), - Action: "ListOpenIDConnectProviderTags", - Version: "2010-05-08", + [_A]: _LOIDCPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2329,8 +2329,8 @@ export const se_ListPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPoliciesRequest(input, context), - Action: "ListPolicies", - Version: "2010-05-08", + [_A]: _LP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2346,8 +2346,8 @@ export const se_ListPoliciesGrantingServiceAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPoliciesGrantingServiceAccessRequest(input, context), - Action: "ListPoliciesGrantingServiceAccess", - Version: "2010-05-08", + [_A]: _LPGSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2363,8 +2363,8 @@ export const se_ListPolicyTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPolicyTagsRequest(input, context), - Action: "ListPolicyTags", - Version: "2010-05-08", + [_A]: _LPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2380,8 +2380,8 @@ export const se_ListPolicyVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPolicyVersionsRequest(input, context), - Action: "ListPolicyVersions", - Version: "2010-05-08", + [_A]: _LPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2397,8 +2397,8 @@ export const se_ListRolePoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListRolePoliciesRequest(input, context), - Action: "ListRolePolicies", - Version: "2010-05-08", + [_A]: _LRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2414,8 +2414,8 @@ export const se_ListRolesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListRolesRequest(input, context), - Action: "ListRoles", - Version: "2010-05-08", + [_A]: _LR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2431,8 +2431,8 @@ export const se_ListRoleTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListRoleTagsRequest(input, context), - Action: "ListRoleTags", - Version: "2010-05-08", + [_A]: _LRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2448,8 +2448,8 @@ export const se_ListSAMLProvidersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSAMLProvidersRequest(input, context), - Action: "ListSAMLProviders", - Version: "2010-05-08", + [_A]: _LSAMLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2465,8 +2465,8 @@ export const se_ListSAMLProviderTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSAMLProviderTagsRequest(input, context), - Action: "ListSAMLProviderTags", - Version: "2010-05-08", + [_A]: _LSAMLPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2482,8 +2482,8 @@ export const se_ListServerCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListServerCertificatesRequest(input, context), - Action: "ListServerCertificates", - Version: "2010-05-08", + [_A]: _LSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2499,8 +2499,8 @@ export const se_ListServerCertificateTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListServerCertificateTagsRequest(input, context), - Action: "ListServerCertificateTags", - Version: "2010-05-08", + [_A]: _LSCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2516,8 +2516,8 @@ export const se_ListServiceSpecificCredentialsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListServiceSpecificCredentialsRequest(input, context), - Action: "ListServiceSpecificCredentials", - Version: "2010-05-08", + [_A]: _LSSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2533,8 +2533,8 @@ export const se_ListSigningCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSigningCertificatesRequest(input, context), - Action: "ListSigningCertificates", - Version: "2010-05-08", + [_A]: _LSCi, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2550,8 +2550,8 @@ export const se_ListSSHPublicKeysCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSSHPublicKeysRequest(input, context), - Action: "ListSSHPublicKeys", - Version: "2010-05-08", + [_A]: _LSSHPK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2567,8 +2567,8 @@ export const se_ListUserPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListUserPoliciesRequest(input, context), - Action: "ListUserPolicies", - Version: "2010-05-08", + [_A]: _LUP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2584,8 +2584,8 @@ export const se_ListUsersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListUsersRequest(input, context), - Action: "ListUsers", - Version: "2010-05-08", + [_A]: _LU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2601,8 +2601,8 @@ export const se_ListUserTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListUserTagsRequest(input, context), - Action: "ListUserTags", - Version: "2010-05-08", + [_A]: _LUT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2618,8 +2618,8 @@ export const se_ListVirtualMFADevicesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListVirtualMFADevicesRequest(input, context), - Action: "ListVirtualMFADevices", - Version: "2010-05-08", + [_A]: _LVMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2635,8 +2635,8 @@ export const se_PutGroupPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutGroupPolicyRequest(input, context), - Action: "PutGroupPolicy", - Version: "2010-05-08", + [_A]: _PGP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2652,8 +2652,8 @@ export const se_PutRolePermissionsBoundaryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutRolePermissionsBoundaryRequest(input, context), - Action: "PutRolePermissionsBoundary", - Version: "2010-05-08", + [_A]: _PRPB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2669,8 +2669,8 @@ export const se_PutRolePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutRolePolicyRequest(input, context), - Action: "PutRolePolicy", - Version: "2010-05-08", + [_A]: _PRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2686,8 +2686,8 @@ export const se_PutUserPermissionsBoundaryCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutUserPermissionsBoundaryRequest(input, context), - Action: "PutUserPermissionsBoundary", - Version: "2010-05-08", + [_A]: _PUPB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2703,8 +2703,8 @@ export const se_PutUserPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutUserPolicyRequest(input, context), - Action: "PutUserPolicy", - Version: "2010-05-08", + [_A]: _PUP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2720,8 +2720,8 @@ export const se_RemoveClientIDFromOpenIDConnectProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveClientIDFromOpenIDConnectProviderRequest(input, context), - Action: "RemoveClientIDFromOpenIDConnectProvider", - Version: "2010-05-08", + [_A]: _RCIDFOIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2737,8 +2737,8 @@ export const se_RemoveRoleFromInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveRoleFromInstanceProfileRequest(input, context), - Action: "RemoveRoleFromInstanceProfile", - Version: "2010-05-08", + [_A]: _RRFIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2754,8 +2754,8 @@ export const se_RemoveUserFromGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveUserFromGroupRequest(input, context), - Action: "RemoveUserFromGroup", - Version: "2010-05-08", + [_A]: _RUFG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2771,8 +2771,8 @@ export const se_ResetServiceSpecificCredentialCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetServiceSpecificCredentialRequest(input, context), - Action: "ResetServiceSpecificCredential", - Version: "2010-05-08", + [_A]: _RSSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2788,8 +2788,8 @@ export const se_ResyncMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResyncMFADeviceRequest(input, context), - Action: "ResyncMFADevice", - Version: "2010-05-08", + [_A]: _RMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2805,8 +2805,8 @@ export const se_SetDefaultPolicyVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetDefaultPolicyVersionRequest(input, context), - Action: "SetDefaultPolicyVersion", - Version: "2010-05-08", + [_A]: _SDPV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2822,8 +2822,8 @@ export const se_SetSecurityTokenServicePreferencesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetSecurityTokenServicePreferencesRequest(input, context), - Action: "SetSecurityTokenServicePreferences", - Version: "2010-05-08", + [_A]: _SSTSP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2839,8 +2839,8 @@ export const se_SimulateCustomPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SimulateCustomPolicyRequest(input, context), - Action: "SimulateCustomPolicy", - Version: "2010-05-08", + [_A]: _SCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2856,8 +2856,8 @@ export const se_SimulatePrincipalPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SimulatePrincipalPolicyRequest(input, context), - Action: "SimulatePrincipalPolicy", - Version: "2010-05-08", + [_A]: _SPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2873,8 +2873,8 @@ export const se_TagInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagInstanceProfileRequest(input, context), - Action: "TagInstanceProfile", - Version: "2010-05-08", + [_A]: _TIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2890,8 +2890,8 @@ export const se_TagMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagMFADeviceRequest(input, context), - Action: "TagMFADevice", - Version: "2010-05-08", + [_A]: _TMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2907,8 +2907,8 @@ export const se_TagOpenIDConnectProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagOpenIDConnectProviderRequest(input, context), - Action: "TagOpenIDConnectProvider", - Version: "2010-05-08", + [_A]: _TOIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2924,8 +2924,8 @@ export const se_TagPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagPolicyRequest(input, context), - Action: "TagPolicy", - Version: "2010-05-08", + [_A]: _TP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2941,8 +2941,8 @@ export const se_TagRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagRoleRequest(input, context), - Action: "TagRole", - Version: "2010-05-08", + [_A]: _TR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2958,8 +2958,8 @@ export const se_TagSAMLProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagSAMLProviderRequest(input, context), - Action: "TagSAMLProvider", - Version: "2010-05-08", + [_A]: _TSAMLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2975,8 +2975,8 @@ export const se_TagServerCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagServerCertificateRequest(input, context), - Action: "TagServerCertificate", - Version: "2010-05-08", + [_A]: _TSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2992,8 +2992,8 @@ export const se_TagUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagUserRequest(input, context), - Action: "TagUser", - Version: "2010-05-08", + [_A]: _TU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3009,8 +3009,8 @@ export const se_UntagInstanceProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagInstanceProfileRequest(input, context), - Action: "UntagInstanceProfile", - Version: "2010-05-08", + [_A]: _UIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3026,8 +3026,8 @@ export const se_UntagMFADeviceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagMFADeviceRequest(input, context), - Action: "UntagMFADevice", - Version: "2010-05-08", + [_A]: _UMFAD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3043,8 +3043,8 @@ export const se_UntagOpenIDConnectProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagOpenIDConnectProviderRequest(input, context), - Action: "UntagOpenIDConnectProvider", - Version: "2010-05-08", + [_A]: _UOIDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3060,8 +3060,8 @@ export const se_UntagPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagPolicyRequest(input, context), - Action: "UntagPolicy", - Version: "2010-05-08", + [_A]: _UP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3077,8 +3077,8 @@ export const se_UntagRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagRoleRequest(input, context), - Action: "UntagRole", - Version: "2010-05-08", + [_A]: _UR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3094,8 +3094,8 @@ export const se_UntagSAMLProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagSAMLProviderRequest(input, context), - Action: "UntagSAMLProvider", - Version: "2010-05-08", + [_A]: _USAMLP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3111,8 +3111,8 @@ export const se_UntagServerCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagServerCertificateRequest(input, context), - Action: "UntagServerCertificate", - Version: "2010-05-08", + [_A]: _USC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3128,8 +3128,8 @@ export const se_UntagUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagUserRequest(input, context), - Action: "UntagUser", - Version: "2010-05-08", + [_A]: _UU, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3145,8 +3145,8 @@ export const se_UpdateAccessKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateAccessKeyRequest(input, context), - Action: "UpdateAccessKey", - Version: "2010-05-08", + [_A]: _UAK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3162,8 +3162,8 @@ export const se_UpdateAccountPasswordPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateAccountPasswordPolicyRequest(input, context), - Action: "UpdateAccountPasswordPolicy", - Version: "2010-05-08", + [_A]: _UAPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3179,8 +3179,8 @@ export const se_UpdateAssumeRolePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateAssumeRolePolicyRequest(input, context), - Action: "UpdateAssumeRolePolicy", - Version: "2010-05-08", + [_A]: _UARP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3196,8 +3196,8 @@ export const se_UpdateGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateGroupRequest(input, context), - Action: "UpdateGroup", - Version: "2010-05-08", + [_A]: _UG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3213,8 +3213,8 @@ export const se_UpdateLoginProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateLoginProfileRequest(input, context), - Action: "UpdateLoginProfile", - Version: "2010-05-08", + [_A]: _ULP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3230,8 +3230,8 @@ export const se_UpdateOpenIDConnectProviderThumbprintCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateOpenIDConnectProviderThumbprintRequest(input, context), - Action: "UpdateOpenIDConnectProviderThumbprint", - Version: "2010-05-08", + [_A]: _UOIDCPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3247,8 +3247,8 @@ export const se_UpdateRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateRoleRequest(input, context), - Action: "UpdateRole", - Version: "2010-05-08", + [_A]: _URp, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3264,8 +3264,8 @@ export const se_UpdateRoleDescriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateRoleDescriptionRequest(input, context), - Action: "UpdateRoleDescription", - Version: "2010-05-08", + [_A]: _URD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3281,8 +3281,8 @@ export const se_UpdateSAMLProviderCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateSAMLProviderRequest(input, context), - Action: "UpdateSAMLProvider", - Version: "2010-05-08", + [_A]: _USAMLPp, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3298,8 +3298,8 @@ export const se_UpdateServerCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateServerCertificateRequest(input, context), - Action: "UpdateServerCertificate", - Version: "2010-05-08", + [_A]: _USCp, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3315,8 +3315,8 @@ export const se_UpdateServiceSpecificCredentialCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateServiceSpecificCredentialRequest(input, context), - Action: "UpdateServiceSpecificCredential", - Version: "2010-05-08", + [_A]: _USSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3332,8 +3332,8 @@ export const se_UpdateSigningCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateSigningCertificateRequest(input, context), - Action: "UpdateSigningCertificate", - Version: "2010-05-08", + [_A]: _USCpd, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3349,8 +3349,8 @@ export const se_UpdateSSHPublicKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateSSHPublicKeyRequest(input, context), - Action: "UpdateSSHPublicKey", - Version: "2010-05-08", + [_A]: _USSHPK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3366,8 +3366,8 @@ export const se_UpdateUserCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateUserRequest(input, context), - Action: "UpdateUser", - Version: "2010-05-08", + [_A]: _UUp, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3383,8 +3383,8 @@ export const se_UploadServerCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UploadServerCertificateRequest(input, context), - Action: "UploadServerCertificate", - Version: "2010-05-08", + [_A]: _USCpl, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3400,8 +3400,8 @@ export const se_UploadSigningCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UploadSigningCertificateRequest(input, context), - Action: "UploadSigningCertificate", - Version: "2010-05-08", + [_A]: _USCplo, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3417,8 +3417,8 @@ export const se_UploadSSHPublicKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UploadSSHPublicKeyRequest(input, context), - Action: "UploadSSHPublicKey", - Version: "2010-05-08", + [_A]: _USSHPKp, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12048,11 +12048,11 @@ const se_AddClientIDToOpenIDConnectProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } - if (input.ClientID != null) { - entries["ClientID"] = input.ClientID; + if (input[_CID] != null) { + entries[_CID] = input[_CID]; } return entries; }; @@ -12062,11 +12062,11 @@ const se_AddClientIDToOpenIDConnectProviderRequest = ( */ const se_AddRoleToInstanceProfileRequest = (input: AddRoleToInstanceProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -12076,11 +12076,11 @@ const se_AddRoleToInstanceProfileRequest = (input: AddRoleToInstanceProfileReque */ const se_AddUserToGroupRequest = (input: AddUserToGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -12090,11 +12090,11 @@ const se_AddUserToGroupRequest = (input: AddUserToGroupRequest, context: __Serde */ const se_AttachGroupPolicyRequest = (input: AttachGroupPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -12104,11 +12104,11 @@ const se_AttachGroupPolicyRequest = (input: AttachGroupPolicyRequest, context: _ */ const se_AttachRolePolicyRequest = (input: AttachRolePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -12118,11 +12118,11 @@ const se_AttachRolePolicyRequest = (input: AttachRolePolicyRequest, context: __S */ const se_AttachUserPolicyRequest = (input: AttachUserPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -12132,11 +12132,11 @@ const se_AttachUserPolicyRequest = (input: AttachUserPolicyRequest, context: __S */ const se_ChangePasswordRequest = (input: ChangePasswordRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.OldPassword != null) { - entries["OldPassword"] = input.OldPassword; + if (input[_OP] != null) { + entries[_OP] = input[_OP]; } - if (input.NewPassword != null) { - entries["NewPassword"] = input.NewPassword; + if (input[_NP] != null) { + entries[_NP] = input[_NP]; } return entries; }; @@ -12162,12 +12162,12 @@ const se_clientIDListType = (input: string[], context: __SerdeContext): any => { */ const se_ContextEntry = (input: ContextEntry, context: __SerdeContext): any => { const entries: any = {}; - if (input.ContextKeyName != null) { - entries["ContextKeyName"] = input.ContextKeyName; + if (input[_CKN] != null) { + entries[_CKN] = input[_CKN]; } - if (input.ContextKeyValues != null) { - const memberEntries = se_ContextKeyValueListType(input.ContextKeyValues, context); - if (input.ContextKeyValues?.length === 0) { + if (input[_CKV] != null) { + const memberEntries = se_ContextKeyValueListType(input[_CKV], context); + if (input[_CKV]?.length === 0) { entries.ContextKeyValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12175,8 +12175,8 @@ const se_ContextEntry = (input: ContextEntry, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.ContextKeyType != null) { - entries["ContextKeyType"] = input.ContextKeyType; + if (input[_CKT] != null) { + entries[_CKT] = input[_CKT]; } return entries; }; @@ -12221,8 +12221,8 @@ const se_ContextKeyValueListType = (input: string[], context: __SerdeContext): a */ const se_CreateAccessKeyRequest = (input: CreateAccessKeyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -12232,8 +12232,8 @@ const se_CreateAccessKeyRequest = (input: CreateAccessKeyRequest, context: __Ser */ const se_CreateAccountAliasRequest = (input: CreateAccountAliasRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AccountAlias != null) { - entries["AccountAlias"] = input.AccountAlias; + if (input[_AA] != null) { + entries[_AA] = input[_AA]; } return entries; }; @@ -12243,11 +12243,11 @@ const se_CreateAccountAliasRequest = (input: CreateAccountAliasRequest, context: */ const se_CreateGroupRequest = (input: CreateGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } return entries; }; @@ -12257,15 +12257,15 @@ const se_CreateGroupRequest = (input: CreateGroupRequest, context: __SerdeContex */ const se_CreateInstanceProfileRequest = (input: CreateInstanceProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12281,14 +12281,14 @@ const se_CreateInstanceProfileRequest = (input: CreateInstanceProfileRequest, co */ const se_CreateLoginProfileRequest = (input: CreateLoginProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Password != null) { - entries["Password"] = input.Password; + if (input[_Pa] != null) { + entries[_Pa] = input[_Pa]; } - if (input.PasswordResetRequired != null) { - entries["PasswordResetRequired"] = input.PasswordResetRequired; + if (input[_PRR] != null) { + entries[_PRR] = input[_PRR]; } return entries; }; @@ -12301,12 +12301,12 @@ const se_CreateOpenIDConnectProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Url != null) { - entries["Url"] = input.Url; + if (input[_U] != null) { + entries[_U] = input[_U]; } - if (input.ClientIDList != null) { - const memberEntries = se_clientIDListType(input.ClientIDList, context); - if (input.ClientIDList?.length === 0) { + if (input[_CIDL] != null) { + const memberEntries = se_clientIDListType(input[_CIDL], context); + if (input[_CIDL]?.length === 0) { entries.ClientIDList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12314,9 +12314,9 @@ const se_CreateOpenIDConnectProviderRequest = ( entries[loc] = value; }); } - if (input.ThumbprintList != null) { - const memberEntries = se_thumbprintListType(input.ThumbprintList, context); - if (input.ThumbprintList?.length === 0) { + if (input[_TL] != null) { + const memberEntries = se_thumbprintListType(input[_TL], context); + if (input[_TL]?.length === 0) { entries.ThumbprintList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12324,9 +12324,9 @@ const se_CreateOpenIDConnectProviderRequest = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12342,21 +12342,21 @@ const se_CreateOpenIDConnectProviderRequest = ( */ const se_CreatePolicyRequest = (input: CreatePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12372,14 +12372,14 @@ const se_CreatePolicyRequest = (input: CreatePolicyRequest, context: __SerdeCont */ const se_CreatePolicyVersionRequest = (input: CreatePolicyVersionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.SetAsDefault != null) { - entries["SetAsDefault"] = input.SetAsDefault; + if (input[_SAD] != null) { + entries[_SAD] = input[_SAD]; } return entries; }; @@ -12389,27 +12389,27 @@ const se_CreatePolicyVersionRequest = (input: CreatePolicyVersionRequest, contex */ const se_CreateRoleRequest = (input: CreateRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.AssumeRolePolicyDocument != null) { - entries["AssumeRolePolicyDocument"] = input.AssumeRolePolicyDocument; + if (input[_ARPD] != null) { + entries[_ARPD] = input[_ARPD]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.MaxSessionDuration != null) { - entries["MaxSessionDuration"] = input.MaxSessionDuration; + if (input[_MSD] != null) { + entries[_MSD] = input[_MSD]; } - if (input.PermissionsBoundary != null) { - entries["PermissionsBoundary"] = input.PermissionsBoundary; + if (input[_PB] != null) { + entries[_PB] = input[_PB]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12425,15 +12425,15 @@ const se_CreateRoleRequest = (input: CreateRoleRequest, context: __SerdeContext) */ const se_CreateSAMLProviderRequest = (input: CreateSAMLProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLMetadataDocument != null) { - entries["SAMLMetadataDocument"] = input.SAMLMetadataDocument; + if (input[_SAMLMD] != null) { + entries[_SAMLMD] = input[_SAMLMD]; } - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12449,14 +12449,14 @@ const se_CreateSAMLProviderRequest = (input: CreateSAMLProviderRequest, context: */ const se_CreateServiceLinkedRoleRequest = (input: CreateServiceLinkedRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AWSServiceName != null) { - entries["AWSServiceName"] = input.AWSServiceName; + if (input[_AWSSN] != null) { + entries[_AWSSN] = input[_AWSSN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.CustomSuffix != null) { - entries["CustomSuffix"] = input.CustomSuffix; + if (input[_CS] != null) { + entries[_CS] = input[_CS]; } return entries; }; @@ -12469,11 +12469,11 @@ const se_CreateServiceSpecificCredentialRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.ServiceName != null) { - entries["ServiceName"] = input.ServiceName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -12483,18 +12483,18 @@ const se_CreateServiceSpecificCredentialRequest = ( */ const se_CreateUserRequest = (input: CreateUserRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PermissionsBoundary != null) { - entries["PermissionsBoundary"] = input.PermissionsBoundary; + if (input[_PB] != null) { + entries[_PB] = input[_PB]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12510,15 +12510,15 @@ const se_CreateUserRequest = (input: CreateUserRequest, context: __SerdeContext) */ const se_CreateVirtualMFADeviceRequest = (input: CreateVirtualMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.VirtualMFADeviceName != null) { - entries["VirtualMFADeviceName"] = input.VirtualMFADeviceName; + if (input[_VMFADN] != null) { + entries[_VMFADN] = input[_VMFADN]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12534,11 +12534,11 @@ const se_CreateVirtualMFADeviceRequest = (input: CreateVirtualMFADeviceRequest, */ const se_DeactivateMFADeviceRequest = (input: DeactivateMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } return entries; }; @@ -12548,11 +12548,11 @@ const se_DeactivateMFADeviceRequest = (input: DeactivateMFADeviceRequest, contex */ const se_DeleteAccessKeyRequest = (input: DeleteAccessKeyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; + if (input[_AKI] != null) { + entries[_AKI] = input[_AKI]; } return entries; }; @@ -12562,8 +12562,8 @@ const se_DeleteAccessKeyRequest = (input: DeleteAccessKeyRequest, context: __Ser */ const se_DeleteAccountAliasRequest = (input: DeleteAccountAliasRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AccountAlias != null) { - entries["AccountAlias"] = input.AccountAlias; + if (input[_AA] != null) { + entries[_AA] = input[_AA]; } return entries; }; @@ -12573,11 +12573,11 @@ const se_DeleteAccountAliasRequest = (input: DeleteAccountAliasRequest, context: */ const se_DeleteGroupPolicyRequest = (input: DeleteGroupPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -12587,8 +12587,8 @@ const se_DeleteGroupPolicyRequest = (input: DeleteGroupPolicyRequest, context: _ */ const se_DeleteGroupRequest = (input: DeleteGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } return entries; }; @@ -12598,8 +12598,8 @@ const se_DeleteGroupRequest = (input: DeleteGroupRequest, context: __SerdeContex */ const se_DeleteInstanceProfileRequest = (input: DeleteInstanceProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } return entries; }; @@ -12609,8 +12609,8 @@ const se_DeleteInstanceProfileRequest = (input: DeleteInstanceProfileRequest, co */ const se_DeleteLoginProfileRequest = (input: DeleteLoginProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -12623,8 +12623,8 @@ const se_DeleteOpenIDConnectProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } return entries; }; @@ -12634,8 +12634,8 @@ const se_DeleteOpenIDConnectProviderRequest = ( */ const se_DeletePolicyRequest = (input: DeletePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -12645,11 +12645,11 @@ const se_DeletePolicyRequest = (input: DeletePolicyRequest, context: __SerdeCont */ const se_DeletePolicyVersionRequest = (input: DeletePolicyVersionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.VersionId != null) { - entries["VersionId"] = input.VersionId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -12662,8 +12662,8 @@ const se_DeleteRolePermissionsBoundaryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -12673,11 +12673,11 @@ const se_DeleteRolePermissionsBoundaryRequest = ( */ const se_DeleteRolePolicyRequest = (input: DeleteRolePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -12687,8 +12687,8 @@ const se_DeleteRolePolicyRequest = (input: DeleteRolePolicyRequest, context: __S */ const se_DeleteRoleRequest = (input: DeleteRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -12698,8 +12698,8 @@ const se_DeleteRoleRequest = (input: DeleteRoleRequest, context: __SerdeContext) */ const se_DeleteSAMLProviderRequest = (input: DeleteSAMLProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLProviderArn != null) { - entries["SAMLProviderArn"] = input.SAMLProviderArn; + if (input[_SAMLPA] != null) { + entries[_SAMLPA] = input[_SAMLPA]; } return entries; }; @@ -12709,8 +12709,8 @@ const se_DeleteSAMLProviderRequest = (input: DeleteSAMLProviderRequest, context: */ const se_DeleteServerCertificateRequest = (input: DeleteServerCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerCertificateName != null) { - entries["ServerCertificateName"] = input.ServerCertificateName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } return entries; }; @@ -12720,8 +12720,8 @@ const se_DeleteServerCertificateRequest = (input: DeleteServerCertificateRequest */ const se_DeleteServiceLinkedRoleRequest = (input: DeleteServiceLinkedRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -12734,11 +12734,11 @@ const se_DeleteServiceSpecificCredentialRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.ServiceSpecificCredentialId != null) { - entries["ServiceSpecificCredentialId"] = input.ServiceSpecificCredentialId; + if (input[_SSCI] != null) { + entries[_SSCI] = input[_SSCI]; } return entries; }; @@ -12748,11 +12748,11 @@ const se_DeleteServiceSpecificCredentialRequest = ( */ const se_DeleteSigningCertificateRequest = (input: DeleteSigningCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.CertificateId != null) { - entries["CertificateId"] = input.CertificateId; + if (input[_CI] != null) { + entries[_CI] = input[_CI]; } return entries; }; @@ -12762,11 +12762,11 @@ const se_DeleteSigningCertificateRequest = (input: DeleteSigningCertificateReque */ const se_DeleteSSHPublicKeyRequest = (input: DeleteSSHPublicKeyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.SSHPublicKeyId != null) { - entries["SSHPublicKeyId"] = input.SSHPublicKeyId; + if (input[_SSHPKI] != null) { + entries[_SSHPKI] = input[_SSHPKI]; } return entries; }; @@ -12779,8 +12779,8 @@ const se_DeleteUserPermissionsBoundaryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -12790,11 +12790,11 @@ const se_DeleteUserPermissionsBoundaryRequest = ( */ const se_DeleteUserPolicyRequest = (input: DeleteUserPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -12804,8 +12804,8 @@ const se_DeleteUserPolicyRequest = (input: DeleteUserPolicyRequest, context: __S */ const se_DeleteUserRequest = (input: DeleteUserRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -12815,8 +12815,8 @@ const se_DeleteUserRequest = (input: DeleteUserRequest, context: __SerdeContext) */ const se_DeleteVirtualMFADeviceRequest = (input: DeleteVirtualMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } return entries; }; @@ -12826,11 +12826,11 @@ const se_DeleteVirtualMFADeviceRequest = (input: DeleteVirtualMFADeviceRequest, */ const se_DetachGroupPolicyRequest = (input: DetachGroupPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -12840,11 +12840,11 @@ const se_DetachGroupPolicyRequest = (input: DetachGroupPolicyRequest, context: _ */ const se_DetachRolePolicyRequest = (input: DetachRolePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -12854,11 +12854,11 @@ const se_DetachRolePolicyRequest = (input: DetachRolePolicyRequest, context: __S */ const se_DetachUserPolicyRequest = (input: DetachUserPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -12868,17 +12868,17 @@ const se_DetachUserPolicyRequest = (input: DetachUserPolicyRequest, context: __S */ const se_EnableMFADeviceRequest = (input: EnableMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } - if (input.AuthenticationCode1 != null) { - entries["AuthenticationCode1"] = input.AuthenticationCode1; + if (input[_AC] != null) { + entries[_AC] = input[_AC]; } - if (input.AuthenticationCode2 != null) { - entries["AuthenticationCode2"] = input.AuthenticationCode2; + if (input[_ACu] != null) { + entries[_ACu] = input[_ACu]; } return entries; }; @@ -12907,11 +12907,11 @@ const se_GenerateOrganizationsAccessReportRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EntityPath != null) { - entries["EntityPath"] = input.EntityPath; + if (input[_EP] != null) { + entries[_EP] = input[_EP]; } - if (input.OrganizationsPolicyId != null) { - entries["OrganizationsPolicyId"] = input.OrganizationsPolicyId; + if (input[_OPI] != null) { + entries[_OPI] = input[_OPI]; } return entries; }; @@ -12924,11 +12924,11 @@ const se_GenerateServiceLastAccessedDetailsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.Granularity != null) { - entries["Granularity"] = input.Granularity; + if (input[_G] != null) { + entries[_G] = input[_G]; } return entries; }; @@ -12938,8 +12938,8 @@ const se_GenerateServiceLastAccessedDetailsRequest = ( */ const se_GetAccessKeyLastUsedRequest = (input: GetAccessKeyLastUsedRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; + if (input[_AKI] != null) { + entries[_AKI] = input[_AKI]; } return entries; }; @@ -12952,9 +12952,9 @@ const se_GetAccountAuthorizationDetailsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Filter != null) { - const memberEntries = se_entityListType(input.Filter, context); - if (input.Filter?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_entityListType(input[_F], context); + if (input[_F]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12962,11 +12962,11 @@ const se_GetAccountAuthorizationDetailsRequest = ( entries[loc] = value; }); } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -12979,9 +12979,9 @@ const se_GetContextKeysForCustomPolicyRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PolicyInputList != null) { - const memberEntries = se_SimulationPolicyListType(input.PolicyInputList, context); - if (input.PolicyInputList?.length === 0) { + if (input[_PIL] != null) { + const memberEntries = se_SimulationPolicyListType(input[_PIL], context); + if (input[_PIL]?.length === 0) { entries.PolicyInputList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13000,12 +13000,12 @@ const se_GetContextKeysForPrincipalPolicyRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PolicySourceArn != null) { - entries["PolicySourceArn"] = input.PolicySourceArn; + if (input[_PSA] != null) { + entries[_PSA] = input[_PSA]; } - if (input.PolicyInputList != null) { - const memberEntries = se_SimulationPolicyListType(input.PolicyInputList, context); - if (input.PolicyInputList?.length === 0) { + if (input[_PIL] != null) { + const memberEntries = se_SimulationPolicyListType(input[_PIL], context); + if (input[_PIL]?.length === 0) { entries.PolicyInputList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13021,11 +13021,11 @@ const se_GetContextKeysForPrincipalPolicyRequest = ( */ const se_GetGroupPolicyRequest = (input: GetGroupPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -13035,14 +13035,14 @@ const se_GetGroupPolicyRequest = (input: GetGroupPolicyRequest, context: __Serde */ const se_GetGroupRequest = (input: GetGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13052,8 +13052,8 @@ const se_GetGroupRequest = (input: GetGroupRequest, context: __SerdeContext): an */ const se_GetInstanceProfileRequest = (input: GetInstanceProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } return entries; }; @@ -13063,8 +13063,8 @@ const se_GetInstanceProfileRequest = (input: GetInstanceProfileRequest, context: */ const se_GetLoginProfileRequest = (input: GetLoginProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -13074,11 +13074,11 @@ const se_GetLoginProfileRequest = (input: GetLoginProfileRequest, context: __Ser */ const se_GetMFADeviceRequest = (input: GetMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -13088,8 +13088,8 @@ const se_GetMFADeviceRequest = (input: GetMFADeviceRequest, context: __SerdeCont */ const se_GetOpenIDConnectProviderRequest = (input: GetOpenIDConnectProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } return entries; }; @@ -13102,17 +13102,17 @@ const se_GetOrganizationsAccessReportRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.JobId != null) { - entries["JobId"] = input.JobId; + if (input[_JI] != null) { + entries[_JI] = input[_JI]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.SortKey != null) { - entries["SortKey"] = input.SortKey; + if (input[_SK] != null) { + entries[_SK] = input[_SK]; } return entries; }; @@ -13122,8 +13122,8 @@ const se_GetOrganizationsAccessReportRequest = ( */ const se_GetPolicyRequest = (input: GetPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } return entries; }; @@ -13133,11 +13133,11 @@ const se_GetPolicyRequest = (input: GetPolicyRequest, context: __SerdeContext): */ const se_GetPolicyVersionRequest = (input: GetPolicyVersionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.VersionId != null) { - entries["VersionId"] = input.VersionId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -13147,11 +13147,11 @@ const se_GetPolicyVersionRequest = (input: GetPolicyVersionRequest, context: __S */ const se_GetRolePolicyRequest = (input: GetRolePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -13161,8 +13161,8 @@ const se_GetRolePolicyRequest = (input: GetRolePolicyRequest, context: __SerdeCo */ const se_GetRoleRequest = (input: GetRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -13172,8 +13172,8 @@ const se_GetRoleRequest = (input: GetRoleRequest, context: __SerdeContext): any */ const se_GetSAMLProviderRequest = (input: GetSAMLProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLProviderArn != null) { - entries["SAMLProviderArn"] = input.SAMLProviderArn; + if (input[_SAMLPA] != null) { + entries[_SAMLPA] = input[_SAMLPA]; } return entries; }; @@ -13183,8 +13183,8 @@ const se_GetSAMLProviderRequest = (input: GetSAMLProviderRequest, context: __Ser */ const se_GetServerCertificateRequest = (input: GetServerCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerCertificateName != null) { - entries["ServerCertificateName"] = input.ServerCertificateName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } return entries; }; @@ -13197,14 +13197,14 @@ const se_GetServiceLastAccessedDetailsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.JobId != null) { - entries["JobId"] = input.JobId; + if (input[_JI] != null) { + entries[_JI] = input[_JI]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -13217,17 +13217,17 @@ const se_GetServiceLastAccessedDetailsWithEntitiesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.JobId != null) { - entries["JobId"] = input.JobId; + if (input[_JI] != null) { + entries[_JI] = input[_JI]; } - if (input.ServiceNamespace != null) { - entries["ServiceNamespace"] = input.ServiceNamespace; + if (input[_SNer] != null) { + entries[_SNer] = input[_SNer]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -13240,8 +13240,8 @@ const se_GetServiceLinkedRoleDeletionStatusRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DeletionTaskId != null) { - entries["DeletionTaskId"] = input.DeletionTaskId; + if (input[_DTI] != null) { + entries[_DTI] = input[_DTI]; } return entries; }; @@ -13251,14 +13251,14 @@ const se_GetServiceLinkedRoleDeletionStatusRequest = ( */ const se_GetSSHPublicKeyRequest = (input: GetSSHPublicKeyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.SSHPublicKeyId != null) { - entries["SSHPublicKeyId"] = input.SSHPublicKeyId; + if (input[_SSHPKI] != null) { + entries[_SSHPKI] = input[_SSHPKI]; } - if (input.Encoding != null) { - entries["Encoding"] = input.Encoding; + if (input[_E] != null) { + entries[_E] = input[_E]; } return entries; }; @@ -13268,11 +13268,11 @@ const se_GetSSHPublicKeyRequest = (input: GetSSHPublicKeyRequest, context: __Ser */ const se_GetUserPolicyRequest = (input: GetUserPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -13282,8 +13282,8 @@ const se_GetUserPolicyRequest = (input: GetUserPolicyRequest, context: __SerdeCo */ const se_GetUserRequest = (input: GetUserRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -13293,14 +13293,14 @@ const se_GetUserRequest = (input: GetUserRequest, context: __SerdeContext): any */ const se_ListAccessKeysRequest = (input: ListAccessKeysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13310,11 +13310,11 @@ const se_ListAccessKeysRequest = (input: ListAccessKeysRequest, context: __Serde */ const se_ListAccountAliasesRequest = (input: ListAccountAliasesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13324,17 +13324,17 @@ const se_ListAccountAliasesRequest = (input: ListAccountAliasesRequest, context: */ const se_ListAttachedGroupPoliciesRequest = (input: ListAttachedGroupPoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13344,17 +13344,17 @@ const se_ListAttachedGroupPoliciesRequest = (input: ListAttachedGroupPoliciesReq */ const se_ListAttachedRolePoliciesRequest = (input: ListAttachedRolePoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13364,17 +13364,17 @@ const se_ListAttachedRolePoliciesRequest = (input: ListAttachedRolePoliciesReque */ const se_ListAttachedUserPoliciesRequest = (input: ListAttachedUserPoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13384,23 +13384,23 @@ const se_ListAttachedUserPoliciesRequest = (input: ListAttachedUserPoliciesReque */ const se_ListEntitiesForPolicyRequest = (input: ListEntitiesForPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.EntityFilter != null) { - entries["EntityFilter"] = input.EntityFilter; + if (input[_EF] != null) { + entries[_EF] = input[_EF]; } - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.PolicyUsageFilter != null) { - entries["PolicyUsageFilter"] = input.PolicyUsageFilter; + if (input[_PUF] != null) { + entries[_PUF] = input[_PUF]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13410,14 +13410,14 @@ const se_ListEntitiesForPolicyRequest = (input: ListEntitiesForPolicyRequest, co */ const se_ListGroupPoliciesRequest = (input: ListGroupPoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13427,14 +13427,14 @@ const se_ListGroupPoliciesRequest = (input: ListGroupPoliciesRequest, context: _ */ const se_ListGroupsForUserRequest = (input: ListGroupsForUserRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13444,14 +13444,14 @@ const se_ListGroupsForUserRequest = (input: ListGroupsForUserRequest, context: _ */ const se_ListGroupsRequest = (input: ListGroupsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13464,14 +13464,14 @@ const se_ListInstanceProfilesForRoleRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13481,14 +13481,14 @@ const se_ListInstanceProfilesForRoleRequest = ( */ const se_ListInstanceProfilesRequest = (input: ListInstanceProfilesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13498,14 +13498,14 @@ const se_ListInstanceProfilesRequest = (input: ListInstanceProfilesRequest, cont */ const se_ListInstanceProfileTagsRequest = (input: ListInstanceProfileTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13515,14 +13515,14 @@ const se_ListInstanceProfileTagsRequest = (input: ListInstanceProfileTagsRequest */ const se_ListMFADevicesRequest = (input: ListMFADevicesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13532,14 +13532,14 @@ const se_ListMFADevicesRequest = (input: ListMFADevicesRequest, context: __Serde */ const se_ListMFADeviceTagsRequest = (input: ListMFADeviceTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13563,14 +13563,14 @@ const se_ListOpenIDConnectProviderTagsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13583,15 +13583,15 @@ const se_ListPoliciesGrantingServiceAccessRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Arn != null) { - entries["Arn"] = input.Arn; + if (input[_Ar] != null) { + entries[_Ar] = input[_Ar]; } - if (input.ServiceNamespaces != null) { - const memberEntries = se_serviceNamespaceListType(input.ServiceNamespaces, context); - if (input.ServiceNamespaces?.length === 0) { + if (input[_SNerv] != null) { + const memberEntries = se_serviceNamespaceListType(input[_SNerv], context); + if (input[_SNerv]?.length === 0) { entries.ServiceNamespaces = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13607,23 +13607,23 @@ const se_ListPoliciesGrantingServiceAccessRequest = ( */ const se_ListPoliciesRequest = (input: ListPoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Scope != null) { - entries["Scope"] = input.Scope; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.OnlyAttached != null) { - entries["OnlyAttached"] = input.OnlyAttached; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.PolicyUsageFilter != null) { - entries["PolicyUsageFilter"] = input.PolicyUsageFilter; + if (input[_PUF] != null) { + entries[_PUF] = input[_PUF]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13633,14 +13633,14 @@ const se_ListPoliciesRequest = (input: ListPoliciesRequest, context: __SerdeCont */ const se_ListPolicyTagsRequest = (input: ListPolicyTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13650,14 +13650,14 @@ const se_ListPolicyTagsRequest = (input: ListPolicyTagsRequest, context: __Serde */ const se_ListPolicyVersionsRequest = (input: ListPolicyVersionsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13667,14 +13667,14 @@ const se_ListPolicyVersionsRequest = (input: ListPolicyVersionsRequest, context: */ const se_ListRolePoliciesRequest = (input: ListRolePoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13684,14 +13684,14 @@ const se_ListRolePoliciesRequest = (input: ListRolePoliciesRequest, context: __S */ const se_ListRolesRequest = (input: ListRolesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13701,14 +13701,14 @@ const se_ListRolesRequest = (input: ListRolesRequest, context: __SerdeContext): */ const se_ListRoleTagsRequest = (input: ListRoleTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13726,14 +13726,14 @@ const se_ListSAMLProvidersRequest = (input: ListSAMLProvidersRequest, context: _ */ const se_ListSAMLProviderTagsRequest = (input: ListSAMLProviderTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLProviderArn != null) { - entries["SAMLProviderArn"] = input.SAMLProviderArn; + if (input[_SAMLPA] != null) { + entries[_SAMLPA] = input[_SAMLPA]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13743,14 +13743,14 @@ const se_ListSAMLProviderTagsRequest = (input: ListSAMLProviderTagsRequest, cont */ const se_ListServerCertificatesRequest = (input: ListServerCertificatesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13760,14 +13760,14 @@ const se_ListServerCertificatesRequest = (input: ListServerCertificatesRequest, */ const se_ListServerCertificateTagsRequest = (input: ListServerCertificateTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerCertificateName != null) { - entries["ServerCertificateName"] = input.ServerCertificateName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13780,11 +13780,11 @@ const se_ListServiceSpecificCredentialsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.ServiceName != null) { - entries["ServiceName"] = input.ServiceName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -13794,14 +13794,14 @@ const se_ListServiceSpecificCredentialsRequest = ( */ const se_ListSigningCertificatesRequest = (input: ListSigningCertificatesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13811,14 +13811,14 @@ const se_ListSigningCertificatesRequest = (input: ListSigningCertificatesRequest */ const se_ListSSHPublicKeysRequest = (input: ListSSHPublicKeysRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13828,14 +13828,14 @@ const se_ListSSHPublicKeysRequest = (input: ListSSHPublicKeysRequest, context: _ */ const se_ListUserPoliciesRequest = (input: ListUserPoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13845,14 +13845,14 @@ const se_ListUserPoliciesRequest = (input: ListUserPoliciesRequest, context: __S */ const se_ListUsersRequest = (input: ListUsersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PathPrefix != null) { - entries["PathPrefix"] = input.PathPrefix; + if (input[_PP] != null) { + entries[_PP] = input[_PP]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13862,14 +13862,14 @@ const se_ListUsersRequest = (input: ListUsersRequest, context: __SerdeContext): */ const se_ListUserTagsRequest = (input: ListUserTagsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13879,14 +13879,14 @@ const se_ListUserTagsRequest = (input: ListUserTagsRequest, context: __SerdeCont */ const se_ListVirtualMFADevicesRequest = (input: ListVirtualMFADevicesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AssignmentStatus != null) { - entries["AssignmentStatus"] = input.AssignmentStatus; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -13896,14 +13896,14 @@ const se_ListVirtualMFADevicesRequest = (input: ListVirtualMFADevicesRequest, co */ const se_PutGroupPolicyRequest = (input: PutGroupPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } return entries; }; @@ -13916,11 +13916,11 @@ const se_PutRolePermissionsBoundaryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PermissionsBoundary != null) { - entries["PermissionsBoundary"] = input.PermissionsBoundary; + if (input[_PB] != null) { + entries[_PB] = input[_PB]; } return entries; }; @@ -13930,14 +13930,14 @@ const se_PutRolePermissionsBoundaryRequest = ( */ const se_PutRolePolicyRequest = (input: PutRolePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } return entries; }; @@ -13950,11 +13950,11 @@ const se_PutUserPermissionsBoundaryRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PermissionsBoundary != null) { - entries["PermissionsBoundary"] = input.PermissionsBoundary; + if (input[_PB] != null) { + entries[_PB] = input[_PB]; } return entries; }; @@ -13964,14 +13964,14 @@ const se_PutUserPermissionsBoundaryRequest = ( */ const se_PutUserPolicyRequest = (input: PutUserPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } return entries; }; @@ -13984,11 +13984,11 @@ const se_RemoveClientIDFromOpenIDConnectProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } - if (input.ClientID != null) { - entries["ClientID"] = input.ClientID; + if (input[_CID] != null) { + entries[_CID] = input[_CID]; } return entries; }; @@ -14001,11 +14001,11 @@ const se_RemoveRoleFromInstanceProfileRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -14015,11 +14015,11 @@ const se_RemoveRoleFromInstanceProfileRequest = ( */ const se_RemoveUserFromGroupRequest = (input: RemoveUserFromGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } return entries; }; @@ -14032,11 +14032,11 @@ const se_ResetServiceSpecificCredentialRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.ServiceSpecificCredentialId != null) { - entries["ServiceSpecificCredentialId"] = input.ServiceSpecificCredentialId; + if (input[_SSCI] != null) { + entries[_SSCI] = input[_SSCI]; } return entries; }; @@ -14062,17 +14062,17 @@ const se_ResourceNameListType = (input: string[], context: __SerdeContext): any */ const se_ResyncMFADeviceRequest = (input: ResyncMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } - if (input.AuthenticationCode1 != null) { - entries["AuthenticationCode1"] = input.AuthenticationCode1; + if (input[_AC] != null) { + entries[_AC] = input[_AC]; } - if (input.AuthenticationCode2 != null) { - entries["AuthenticationCode2"] = input.AuthenticationCode2; + if (input[_ACu] != null) { + entries[_ACu] = input[_ACu]; } return entries; }; @@ -14098,11 +14098,11 @@ const se_serviceNamespaceListType = (input: string[], context: __SerdeContext): */ const se_SetDefaultPolicyVersionRequest = (input: SetDefaultPolicyVersionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.VersionId != null) { - entries["VersionId"] = input.VersionId; + if (input[_VI] != null) { + entries[_VI] = input[_VI]; } return entries; }; @@ -14115,8 +14115,8 @@ const se_SetSecurityTokenServicePreferencesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.GlobalEndpointTokenVersion != null) { - entries["GlobalEndpointTokenVersion"] = input.GlobalEndpointTokenVersion; + if (input[_GETV] != null) { + entries[_GETV] = input[_GETV]; } return entries; }; @@ -14126,9 +14126,9 @@ const se_SetSecurityTokenServicePreferencesRequest = ( */ const se_SimulateCustomPolicyRequest = (input: SimulateCustomPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyInputList != null) { - const memberEntries = se_SimulationPolicyListType(input.PolicyInputList, context); - if (input.PolicyInputList?.length === 0) { + if (input[_PIL] != null) { + const memberEntries = se_SimulationPolicyListType(input[_PIL], context); + if (input[_PIL]?.length === 0) { entries.PolicyInputList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14136,9 +14136,9 @@ const se_SimulateCustomPolicyRequest = (input: SimulateCustomPolicyRequest, cont entries[loc] = value; }); } - if (input.PermissionsBoundaryPolicyInputList != null) { - const memberEntries = se_SimulationPolicyListType(input.PermissionsBoundaryPolicyInputList, context); - if (input.PermissionsBoundaryPolicyInputList?.length === 0) { + if (input[_PBPIL] != null) { + const memberEntries = se_SimulationPolicyListType(input[_PBPIL], context); + if (input[_PBPIL]?.length === 0) { entries.PermissionsBoundaryPolicyInputList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14146,9 +14146,9 @@ const se_SimulateCustomPolicyRequest = (input: SimulateCustomPolicyRequest, cont entries[loc] = value; }); } - if (input.ActionNames != null) { - const memberEntries = se_ActionNameListType(input.ActionNames, context); - if (input.ActionNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_ActionNameListType(input[_AN], context); + if (input[_AN]?.length === 0) { entries.ActionNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14156,9 +14156,9 @@ const se_SimulateCustomPolicyRequest = (input: SimulateCustomPolicyRequest, cont entries[loc] = value; }); } - if (input.ResourceArns != null) { - const memberEntries = se_ResourceNameListType(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { + if (input[_RA] != null) { + const memberEntries = se_ResourceNameListType(input[_RA], context); + if (input[_RA]?.length === 0) { entries.ResourceArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14166,18 +14166,18 @@ const se_SimulateCustomPolicyRequest = (input: SimulateCustomPolicyRequest, cont entries[loc] = value; }); } - if (input.ResourcePolicy != null) { - entries["ResourcePolicy"] = input.ResourcePolicy; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.ResourceOwner != null) { - entries["ResourceOwner"] = input.ResourceOwner; + if (input[_RO] != null) { + entries[_RO] = input[_RO]; } - if (input.CallerArn != null) { - entries["CallerArn"] = input.CallerArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.ContextEntries != null) { - const memberEntries = se_ContextEntryListType(input.ContextEntries, context); - if (input.ContextEntries?.length === 0) { + if (input[_CE] != null) { + const memberEntries = se_ContextEntryListType(input[_CE], context); + if (input[_CE]?.length === 0) { entries.ContextEntries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14185,14 +14185,14 @@ const se_SimulateCustomPolicyRequest = (input: SimulateCustomPolicyRequest, cont entries[loc] = value; }); } - if (input.ResourceHandlingOption != null) { - entries["ResourceHandlingOption"] = input.ResourceHandlingOption; + if (input[_RHO] != null) { + entries[_RHO] = input[_RHO]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14202,12 +14202,12 @@ const se_SimulateCustomPolicyRequest = (input: SimulateCustomPolicyRequest, cont */ const se_SimulatePrincipalPolicyRequest = (input: SimulatePrincipalPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicySourceArn != null) { - entries["PolicySourceArn"] = input.PolicySourceArn; + if (input[_PSA] != null) { + entries[_PSA] = input[_PSA]; } - if (input.PolicyInputList != null) { - const memberEntries = se_SimulationPolicyListType(input.PolicyInputList, context); - if (input.PolicyInputList?.length === 0) { + if (input[_PIL] != null) { + const memberEntries = se_SimulationPolicyListType(input[_PIL], context); + if (input[_PIL]?.length === 0) { entries.PolicyInputList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14215,9 +14215,9 @@ const se_SimulatePrincipalPolicyRequest = (input: SimulatePrincipalPolicyRequest entries[loc] = value; }); } - if (input.PermissionsBoundaryPolicyInputList != null) { - const memberEntries = se_SimulationPolicyListType(input.PermissionsBoundaryPolicyInputList, context); - if (input.PermissionsBoundaryPolicyInputList?.length === 0) { + if (input[_PBPIL] != null) { + const memberEntries = se_SimulationPolicyListType(input[_PBPIL], context); + if (input[_PBPIL]?.length === 0) { entries.PermissionsBoundaryPolicyInputList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14225,9 +14225,9 @@ const se_SimulatePrincipalPolicyRequest = (input: SimulatePrincipalPolicyRequest entries[loc] = value; }); } - if (input.ActionNames != null) { - const memberEntries = se_ActionNameListType(input.ActionNames, context); - if (input.ActionNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_ActionNameListType(input[_AN], context); + if (input[_AN]?.length === 0) { entries.ActionNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14235,9 +14235,9 @@ const se_SimulatePrincipalPolicyRequest = (input: SimulatePrincipalPolicyRequest entries[loc] = value; }); } - if (input.ResourceArns != null) { - const memberEntries = se_ResourceNameListType(input.ResourceArns, context); - if (input.ResourceArns?.length === 0) { + if (input[_RA] != null) { + const memberEntries = se_ResourceNameListType(input[_RA], context); + if (input[_RA]?.length === 0) { entries.ResourceArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14245,18 +14245,18 @@ const se_SimulatePrincipalPolicyRequest = (input: SimulatePrincipalPolicyRequest entries[loc] = value; }); } - if (input.ResourcePolicy != null) { - entries["ResourcePolicy"] = input.ResourcePolicy; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.ResourceOwner != null) { - entries["ResourceOwner"] = input.ResourceOwner; + if (input[_RO] != null) { + entries[_RO] = input[_RO]; } - if (input.CallerArn != null) { - entries["CallerArn"] = input.CallerArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.ContextEntries != null) { - const memberEntries = se_ContextEntryListType(input.ContextEntries, context); - if (input.ContextEntries?.length === 0) { + if (input[_CE] != null) { + const memberEntries = se_ContextEntryListType(input[_CE], context); + if (input[_CE]?.length === 0) { entries.ContextEntries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14264,14 +14264,14 @@ const se_SimulatePrincipalPolicyRequest = (input: SimulatePrincipalPolicyRequest entries[loc] = value; }); } - if (input.ResourceHandlingOption != null) { - entries["ResourceHandlingOption"] = input.ResourceHandlingOption; + if (input[_RHO] != null) { + entries[_RHO] = input[_RHO]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14297,11 +14297,11 @@ const se_SimulationPolicyListType = (input: string[], context: __SerdeContext): */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -14311,12 +14311,12 @@ const se_Tag = (input: Tag, context: __SerdeContext): any => { */ const se_TagInstanceProfileRequest = (input: TagInstanceProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14367,12 +14367,12 @@ const se_tagListType = (input: Tag[], context: __SerdeContext): any => { */ const se_TagMFADeviceRequest = (input: TagMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14388,12 +14388,12 @@ const se_TagMFADeviceRequest = (input: TagMFADeviceRequest, context: __SerdeCont */ const se_TagOpenIDConnectProviderRequest = (input: TagOpenIDConnectProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14409,12 +14409,12 @@ const se_TagOpenIDConnectProviderRequest = (input: TagOpenIDConnectProviderReque */ const se_TagPolicyRequest = (input: TagPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14430,12 +14430,12 @@ const se_TagPolicyRequest = (input: TagPolicyRequest, context: __SerdeContext): */ const se_TagRoleRequest = (input: TagRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14451,12 +14451,12 @@ const se_TagRoleRequest = (input: TagRoleRequest, context: __SerdeContext): any */ const se_TagSAMLProviderRequest = (input: TagSAMLProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLProviderArn != null) { - entries["SAMLProviderArn"] = input.SAMLProviderArn; + if (input[_SAMLPA] != null) { + entries[_SAMLPA] = input[_SAMLPA]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14472,12 +14472,12 @@ const se_TagSAMLProviderRequest = (input: TagSAMLProviderRequest, context: __Ser */ const se_TagServerCertificateRequest = (input: TagServerCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerCertificateName != null) { - entries["ServerCertificateName"] = input.ServerCertificateName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14493,12 +14493,12 @@ const se_TagServerCertificateRequest = (input: TagServerCertificateRequest, cont */ const se_TagUserRequest = (input: TagUserRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14530,12 +14530,12 @@ const se_thumbprintListType = (input: string[], context: __SerdeContext): any => */ const se_UntagInstanceProfileRequest = (input: UntagInstanceProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.InstanceProfileName != null) { - entries["InstanceProfileName"] = input.InstanceProfileName; + if (input[_IPN] != null) { + entries[_IPN] = input[_IPN]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14551,12 +14551,12 @@ const se_UntagInstanceProfileRequest = (input: UntagInstanceProfileRequest, cont */ const se_UntagMFADeviceRequest = (input: UntagMFADeviceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SNe] != null) { + entries[_SNe] = input[_SNe]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14575,12 +14575,12 @@ const se_UntagOpenIDConnectProviderRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14596,12 +14596,12 @@ const se_UntagOpenIDConnectProviderRequest = ( */ const se_UntagPolicyRequest = (input: UntagPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.PolicyArn != null) { - entries["PolicyArn"] = input.PolicyArn; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14617,12 +14617,12 @@ const se_UntagPolicyRequest = (input: UntagPolicyRequest, context: __SerdeContex */ const se_UntagRoleRequest = (input: UntagRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14638,12 +14638,12 @@ const se_UntagRoleRequest = (input: UntagRoleRequest, context: __SerdeContext): */ const se_UntagSAMLProviderRequest = (input: UntagSAMLProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLProviderArn != null) { - entries["SAMLProviderArn"] = input.SAMLProviderArn; + if (input[_SAMLPA] != null) { + entries[_SAMLPA] = input[_SAMLPA]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14659,12 +14659,12 @@ const se_UntagSAMLProviderRequest = (input: UntagSAMLProviderRequest, context: _ */ const se_UntagServerCertificateRequest = (input: UntagServerCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerCertificateName != null) { - entries["ServerCertificateName"] = input.ServerCertificateName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14680,12 +14680,12 @@ const se_UntagServerCertificateRequest = (input: UntagServerCertificateRequest, */ const se_UntagUserRequest = (input: UntagUserRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.TagKeys != null) { - const memberEntries = se_tagKeyListType(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_tagKeyListType(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14701,14 +14701,14 @@ const se_UntagUserRequest = (input: UntagUserRequest, context: __SerdeContext): */ const se_UpdateAccessKeyRequest = (input: UpdateAccessKeyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; + if (input[_AKI] != null) { + entries[_AKI] = input[_AKI]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } return entries; }; @@ -14721,32 +14721,32 @@ const se_UpdateAccountPasswordPolicyRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.MinimumPasswordLength != null) { - entries["MinimumPasswordLength"] = input.MinimumPasswordLength; + if (input[_MPL] != null) { + entries[_MPL] = input[_MPL]; } - if (input.RequireSymbols != null) { - entries["RequireSymbols"] = input.RequireSymbols; + if (input[_RS] != null) { + entries[_RS] = input[_RS]; } - if (input.RequireNumbers != null) { - entries["RequireNumbers"] = input.RequireNumbers; + if (input[_RNe] != null) { + entries[_RNe] = input[_RNe]; } - if (input.RequireUppercaseCharacters != null) { - entries["RequireUppercaseCharacters"] = input.RequireUppercaseCharacters; + if (input[_RUC] != null) { + entries[_RUC] = input[_RUC]; } - if (input.RequireLowercaseCharacters != null) { - entries["RequireLowercaseCharacters"] = input.RequireLowercaseCharacters; + if (input[_RLC] != null) { + entries[_RLC] = input[_RLC]; } - if (input.AllowUsersToChangePassword != null) { - entries["AllowUsersToChangePassword"] = input.AllowUsersToChangePassword; + if (input[_AUTCP] != null) { + entries[_AUTCP] = input[_AUTCP]; } - if (input.MaxPasswordAge != null) { - entries["MaxPasswordAge"] = input.MaxPasswordAge; + if (input[_MPA] != null) { + entries[_MPA] = input[_MPA]; } - if (input.PasswordReusePrevention != null) { - entries["PasswordReusePrevention"] = input.PasswordReusePrevention; + if (input[_PRPa] != null) { + entries[_PRPa] = input[_PRPa]; } - if (input.HardExpiry != null) { - entries["HardExpiry"] = input.HardExpiry; + if (input[_HE] != null) { + entries[_HE] = input[_HE]; } return entries; }; @@ -14756,11 +14756,11 @@ const se_UpdateAccountPasswordPolicyRequest = ( */ const se_UpdateAssumeRolePolicyRequest = (input: UpdateAssumeRolePolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.PolicyDocument != null) { - entries["PolicyDocument"] = input.PolicyDocument; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } return entries; }; @@ -14770,14 +14770,14 @@ const se_UpdateAssumeRolePolicyRequest = (input: UpdateAssumeRolePolicyRequest, */ const se_UpdateGroupRequest = (input: UpdateGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.GroupName != null) { - entries["GroupName"] = input.GroupName; + if (input[_GN] != null) { + entries[_GN] = input[_GN]; } - if (input.NewPath != null) { - entries["NewPath"] = input.NewPath; + if (input[_NPe] != null) { + entries[_NPe] = input[_NPe]; } - if (input.NewGroupName != null) { - entries["NewGroupName"] = input.NewGroupName; + if (input[_NGN] != null) { + entries[_NGN] = input[_NGN]; } return entries; }; @@ -14787,14 +14787,14 @@ const se_UpdateGroupRequest = (input: UpdateGroupRequest, context: __SerdeContex */ const se_UpdateLoginProfileRequest = (input: UpdateLoginProfileRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.Password != null) { - entries["Password"] = input.Password; + if (input[_Pa] != null) { + entries[_Pa] = input[_Pa]; } - if (input.PasswordResetRequired != null) { - entries["PasswordResetRequired"] = input.PasswordResetRequired; + if (input[_PRR] != null) { + entries[_PRR] = input[_PRR]; } return entries; }; @@ -14807,12 +14807,12 @@ const se_UpdateOpenIDConnectProviderThumbprintRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.OpenIDConnectProviderArn != null) { - entries["OpenIDConnectProviderArn"] = input.OpenIDConnectProviderArn; + if (input[_OIDCPA] != null) { + entries[_OIDCPA] = input[_OIDCPA]; } - if (input.ThumbprintList != null) { - const memberEntries = se_thumbprintListType(input.ThumbprintList, context); - if (input.ThumbprintList?.length === 0) { + if (input[_TL] != null) { + const memberEntries = se_thumbprintListType(input[_TL], context); + if (input[_TL]?.length === 0) { entries.ThumbprintList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14828,11 +14828,11 @@ const se_UpdateOpenIDConnectProviderThumbprintRequest = ( */ const se_UpdateRoleDescriptionRequest = (input: UpdateRoleDescriptionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } return entries; }; @@ -14842,14 +14842,14 @@ const se_UpdateRoleDescriptionRequest = (input: UpdateRoleDescriptionRequest, co */ const se_UpdateRoleRequest = (input: UpdateRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleName != null) { - entries["RoleName"] = input.RoleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.MaxSessionDuration != null) { - entries["MaxSessionDuration"] = input.MaxSessionDuration; + if (input[_MSD] != null) { + entries[_MSD] = input[_MSD]; } return entries; }; @@ -14859,11 +14859,11 @@ const se_UpdateRoleRequest = (input: UpdateRoleRequest, context: __SerdeContext) */ const se_UpdateSAMLProviderRequest = (input: UpdateSAMLProviderRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.SAMLMetadataDocument != null) { - entries["SAMLMetadataDocument"] = input.SAMLMetadataDocument; + if (input[_SAMLMD] != null) { + entries[_SAMLMD] = input[_SAMLMD]; } - if (input.SAMLProviderArn != null) { - entries["SAMLProviderArn"] = input.SAMLProviderArn; + if (input[_SAMLPA] != null) { + entries[_SAMLPA] = input[_SAMLPA]; } return entries; }; @@ -14873,14 +14873,14 @@ const se_UpdateSAMLProviderRequest = (input: UpdateSAMLProviderRequest, context: */ const se_UpdateServerCertificateRequest = (input: UpdateServerCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ServerCertificateName != null) { - entries["ServerCertificateName"] = input.ServerCertificateName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.NewPath != null) { - entries["NewPath"] = input.NewPath; + if (input[_NPe] != null) { + entries[_NPe] = input[_NPe]; } - if (input.NewServerCertificateName != null) { - entries["NewServerCertificateName"] = input.NewServerCertificateName; + if (input[_NSCN] != null) { + entries[_NSCN] = input[_NSCN]; } return entries; }; @@ -14893,14 +14893,14 @@ const se_UpdateServiceSpecificCredentialRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.ServiceSpecificCredentialId != null) { - entries["ServiceSpecificCredentialId"] = input.ServiceSpecificCredentialId; + if (input[_SSCI] != null) { + entries[_SSCI] = input[_SSCI]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } return entries; }; @@ -14910,14 +14910,14 @@ const se_UpdateServiceSpecificCredentialRequest = ( */ const se_UpdateSigningCertificateRequest = (input: UpdateSigningCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.CertificateId != null) { - entries["CertificateId"] = input.CertificateId; + if (input[_CI] != null) { + entries[_CI] = input[_CI]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } return entries; }; @@ -14927,14 +14927,14 @@ const se_UpdateSigningCertificateRequest = (input: UpdateSigningCertificateReque */ const se_UpdateSSHPublicKeyRequest = (input: UpdateSSHPublicKeyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.SSHPublicKeyId != null) { - entries["SSHPublicKeyId"] = input.SSHPublicKeyId; + if (input[_SSHPKI] != null) { + entries[_SSHPKI] = input[_SSHPKI]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } return entries; }; @@ -14944,14 +14944,14 @@ const se_UpdateSSHPublicKeyRequest = (input: UpdateSSHPublicKeyRequest, context: */ const se_UpdateUserRequest = (input: UpdateUserRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.NewPath != null) { - entries["NewPath"] = input.NewPath; + if (input[_NPe] != null) { + entries[_NPe] = input[_NPe]; } - if (input.NewUserName != null) { - entries["NewUserName"] = input.NewUserName; + if (input[_NUN] != null) { + entries[_NUN] = input[_NUN]; } return entries; }; @@ -14961,24 +14961,24 @@ const se_UpdateUserRequest = (input: UpdateUserRequest, context: __SerdeContext) */ const se_UploadServerCertificateRequest = (input: UploadServerCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Path != null) { - entries["Path"] = input.Path; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.ServerCertificateName != null) { - entries["ServerCertificateName"] = input.ServerCertificateName; + if (input[_SCN] != null) { + entries[_SCN] = input[_SCN]; } - if (input.CertificateBody != null) { - entries["CertificateBody"] = input.CertificateBody; + if (input[_CB] != null) { + entries[_CB] = input[_CB]; } - if (input.PrivateKey != null) { - entries["PrivateKey"] = input.PrivateKey; + if (input[_PK] != null) { + entries[_PK] = input[_PK]; } - if (input.CertificateChain != null) { - entries["CertificateChain"] = input.CertificateChain; + if (input[_CC] != null) { + entries[_CC] = input[_CC]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14994,11 +14994,11 @@ const se_UploadServerCertificateRequest = (input: UploadServerCertificateRequest */ const se_UploadSigningCertificateRequest = (input: UploadSigningCertificateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.CertificateBody != null) { - entries["CertificateBody"] = input.CertificateBody; + if (input[_CB] != null) { + entries[_CB] = input[_CB]; } return entries; }; @@ -15008,11 +15008,11 @@ const se_UploadSigningCertificateRequest = (input: UploadSigningCertificateReque */ const se_UploadSSHPublicKeyRequest = (input: UploadSSHPublicKeyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.SSHPublicKeyBody != null) { - entries["SSHPublicKeyBody"] = input.SSHPublicKeyBody; + if (input[_SSHPKB] != null) { + entries[_SSHPKB] = input[_SSHPKB]; } return entries; }; @@ -15022,23 +15022,23 @@ const se_UploadSSHPublicKeyRequest = (input: UploadSSHPublicKeyRequest, context: */ const de_AccessDetail = (output: any, context: __SerdeContext): AccessDetail => { const contents: any = {}; - if (output["ServiceName"] !== undefined) { - contents.ServiceName = __expectString(output["ServiceName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["ServiceNamespace"] !== undefined) { - contents.ServiceNamespace = __expectString(output["ServiceNamespace"]); + if (output[_SNer] != null) { + contents[_SNer] = __expectString(output[_SNer]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } - if (output["EntityPath"] !== undefined) { - contents.EntityPath = __expectString(output["EntityPath"]); + if (output[_EP] != null) { + contents[_EP] = __expectString(output[_EP]); } - if (output["LastAuthenticatedTime"] !== undefined) { - contents.LastAuthenticatedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastAuthenticatedTime"])); + if (output[_LAT] != null) { + contents[_LAT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LAT])); } - if (output["TotalAuthenticatedEntities"] !== undefined) { - contents.TotalAuthenticatedEntities = __strictParseInt32(output["TotalAuthenticatedEntities"]) as number; + if (output[_TAE] != null) { + contents[_TAE] = __strictParseInt32(output[_TAE]) as number; } return contents; }; @@ -15059,20 +15059,20 @@ const de_AccessDetails = (output: any, context: __SerdeContext): AccessDetail[] */ const de_AccessKey = (output: any, context: __SerdeContext): AccessKey => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = __expectString(output["AccessKeyId"]); + if (output[_AKI] != null) { + contents[_AKI] = __expectString(output[_AKI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = __expectString(output["SecretAccessKey"]); + if (output[_SAK] != null) { + contents[_SAK] = __expectString(output[_SAK]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } return contents; }; @@ -15082,14 +15082,14 @@ const de_AccessKey = (output: any, context: __SerdeContext): AccessKey => { */ const de_AccessKeyLastUsed = (output: any, context: __SerdeContext): AccessKeyLastUsed => { const contents: any = {}; - if (output["LastUsedDate"] !== undefined) { - contents.LastUsedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUsedDate"])); + if (output[_LUD] != null) { + contents[_LUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUD])); } - if (output["ServiceName"] !== undefined) { - contents.ServiceName = __expectString(output["ServiceName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } return contents; }; @@ -15099,17 +15099,17 @@ const de_AccessKeyLastUsed = (output: any, context: __SerdeContext): AccessKeyLa */ const de_AccessKeyMetadata = (output: any, context: __SerdeContext): AccessKeyMetadata => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = __expectString(output["AccessKeyId"]); + if (output[_AKI] != null) { + contents[_AKI] = __expectString(output[_AKI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } return contents; }; @@ -15152,11 +15152,11 @@ const de_ArnListType = (output: any, context: __SerdeContext): string[] => { */ const de_AttachedPermissionsBoundary = (output: any, context: __SerdeContext): AttachedPermissionsBoundary => { const contents: any = {}; - if (output["PermissionsBoundaryType"] !== undefined) { - contents.PermissionsBoundaryType = __expectString(output["PermissionsBoundaryType"]); + if (output[_PBT] != null) { + contents[_PBT] = __expectString(output[_PBT]); } - if (output["PermissionsBoundaryArn"] !== undefined) { - contents.PermissionsBoundaryArn = __expectString(output["PermissionsBoundaryArn"]); + if (output[_PBA] != null) { + contents[_PBA] = __expectString(output[_PBA]); } return contents; }; @@ -15177,11 +15177,11 @@ const de_attachedPoliciesListType = (output: any, context: __SerdeContext): Atta */ const de_AttachedPolicy = (output: any, context: __SerdeContext): AttachedPolicy => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyArn"] !== undefined) { - contents.PolicyArn = __expectString(output["PolicyArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } return contents; }; @@ -15226,8 +15226,8 @@ const de_clientIDListType = (output: any, context: __SerdeContext): string[] => */ const de_ConcurrentModificationException = (output: any, context: __SerdeContext): ConcurrentModificationException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15248,8 +15248,8 @@ const de_ContextKeyNamesResultListType = (output: any, context: __SerdeContext): */ const de_CreateAccessKeyResponse = (output: any, context: __SerdeContext): CreateAccessKeyResponse => { const contents: any = {}; - if (output["AccessKey"] !== undefined) { - contents.AccessKey = de_AccessKey(output["AccessKey"], context); + if (output[_AK] != null) { + contents[_AK] = de_AccessKey(output[_AK], context); } return contents; }; @@ -15259,8 +15259,8 @@ const de_CreateAccessKeyResponse = (output: any, context: __SerdeContext): Creat */ const de_CreateGroupResponse = (output: any, context: __SerdeContext): CreateGroupResponse => { const contents: any = {}; - if (output["Group"] !== undefined) { - contents.Group = de_Group(output["Group"], context); + if (output[_Gr] != null) { + contents[_Gr] = de_Group(output[_Gr], context); } return contents; }; @@ -15270,8 +15270,8 @@ const de_CreateGroupResponse = (output: any, context: __SerdeContext): CreateGro */ const de_CreateInstanceProfileResponse = (output: any, context: __SerdeContext): CreateInstanceProfileResponse => { const contents: any = {}; - if (output["InstanceProfile"] !== undefined) { - contents.InstanceProfile = de_InstanceProfile(output["InstanceProfile"], context); + if (output[_IP] != null) { + contents[_IP] = de_InstanceProfile(output[_IP], context); } return contents; }; @@ -15281,8 +15281,8 @@ const de_CreateInstanceProfileResponse = (output: any, context: __SerdeContext): */ const de_CreateLoginProfileResponse = (output: any, context: __SerdeContext): CreateLoginProfileResponse => { const contents: any = {}; - if (output["LoginProfile"] !== undefined) { - contents.LoginProfile = de_LoginProfile(output["LoginProfile"], context); + if (output[_LPo] != null) { + contents[_LPo] = de_LoginProfile(output[_LPo], context); } return contents; }; @@ -15295,13 +15295,13 @@ const de_CreateOpenIDConnectProviderResponse = ( context: __SerdeContext ): CreateOpenIDConnectProviderResponse => { const contents: any = {}; - if (output["OpenIDConnectProviderArn"] !== undefined) { - contents.OpenIDConnectProviderArn = __expectString(output["OpenIDConnectProviderArn"]); + if (output[_OIDCPA] != null) { + contents[_OIDCPA] = __expectString(output[_OIDCPA]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -15311,8 +15311,8 @@ const de_CreateOpenIDConnectProviderResponse = ( */ const de_CreatePolicyResponse = (output: any, context: __SerdeContext): CreatePolicyResponse => { const contents: any = {}; - if (output["Policy"] !== undefined) { - contents.Policy = de_Policy(output["Policy"], context); + if (output[_Po] != null) { + contents[_Po] = de_Policy(output[_Po], context); } return contents; }; @@ -15322,8 +15322,8 @@ const de_CreatePolicyResponse = (output: any, context: __SerdeContext): CreatePo */ const de_CreatePolicyVersionResponse = (output: any, context: __SerdeContext): CreatePolicyVersionResponse => { const contents: any = {}; - if (output["PolicyVersion"] !== undefined) { - contents.PolicyVersion = de_PolicyVersion(output["PolicyVersion"], context); + if (output[_PV] != null) { + contents[_PV] = de_PolicyVersion(output[_PV], context); } return contents; }; @@ -15333,8 +15333,8 @@ const de_CreatePolicyVersionResponse = (output: any, context: __SerdeContext): C */ const de_CreateRoleResponse = (output: any, context: __SerdeContext): CreateRoleResponse => { const contents: any = {}; - if (output["Role"] !== undefined) { - contents.Role = de_Role(output["Role"], context); + if (output[_Ro] != null) { + contents[_Ro] = de_Role(output[_Ro], context); } return contents; }; @@ -15344,13 +15344,13 @@ const de_CreateRoleResponse = (output: any, context: __SerdeContext): CreateRole */ const de_CreateSAMLProviderResponse = (output: any, context: __SerdeContext): CreateSAMLProviderResponse => { const contents: any = {}; - if (output["SAMLProviderArn"] !== undefined) { - contents.SAMLProviderArn = __expectString(output["SAMLProviderArn"]); + if (output[_SAMLPA] != null) { + contents[_SAMLPA] = __expectString(output[_SAMLPA]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -15360,8 +15360,8 @@ const de_CreateSAMLProviderResponse = (output: any, context: __SerdeContext): Cr */ const de_CreateServiceLinkedRoleResponse = (output: any, context: __SerdeContext): CreateServiceLinkedRoleResponse => { const contents: any = {}; - if (output["Role"] !== undefined) { - contents.Role = de_Role(output["Role"], context); + if (output[_Ro] != null) { + contents[_Ro] = de_Role(output[_Ro], context); } return contents; }; @@ -15374,8 +15374,8 @@ const de_CreateServiceSpecificCredentialResponse = ( context: __SerdeContext ): CreateServiceSpecificCredentialResponse => { const contents: any = {}; - if (output["ServiceSpecificCredential"] !== undefined) { - contents.ServiceSpecificCredential = de_ServiceSpecificCredential(output["ServiceSpecificCredential"], context); + if (output[_SSC] != null) { + contents[_SSC] = de_ServiceSpecificCredential(output[_SSC], context); } return contents; }; @@ -15385,8 +15385,8 @@ const de_CreateServiceSpecificCredentialResponse = ( */ const de_CreateUserResponse = (output: any, context: __SerdeContext): CreateUserResponse => { const contents: any = {}; - if (output["User"] !== undefined) { - contents.User = de_User(output["User"], context); + if (output[_Us] != null) { + contents[_Us] = de_User(output[_Us], context); } return contents; }; @@ -15396,8 +15396,8 @@ const de_CreateUserResponse = (output: any, context: __SerdeContext): CreateUser */ const de_CreateVirtualMFADeviceResponse = (output: any, context: __SerdeContext): CreateVirtualMFADeviceResponse => { const contents: any = {}; - if (output["VirtualMFADevice"] !== undefined) { - contents.VirtualMFADevice = de_VirtualMFADevice(output["VirtualMFADevice"], context); + if (output[_VMFAD] != null) { + contents[_VMFAD] = de_VirtualMFADevice(output[_VMFAD], context); } return contents; }; @@ -15410,8 +15410,8 @@ const de_CredentialReportExpiredException = ( context: __SerdeContext ): CredentialReportExpiredException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15424,8 +15424,8 @@ const de_CredentialReportNotPresentException = ( context: __SerdeContext ): CredentialReportNotPresentException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15438,8 +15438,8 @@ const de_CredentialReportNotReadyException = ( context: __SerdeContext ): CredentialReportNotReadyException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15449,8 +15449,8 @@ const de_CredentialReportNotReadyException = ( */ const de_DeleteConflictException = (output: any, context: __SerdeContext): DeleteConflictException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15460,8 +15460,8 @@ const de_DeleteConflictException = (output: any, context: __SerdeContext): Delet */ const de_DeleteServiceLinkedRoleResponse = (output: any, context: __SerdeContext): DeleteServiceLinkedRoleResponse => { const contents: any = {}; - if (output["DeletionTaskId"] !== undefined) { - contents.DeletionTaskId = __expectString(output["DeletionTaskId"]); + if (output[_DTI] != null) { + contents[_DTI] = __expectString(output[_DTI]); } return contents; }; @@ -15471,13 +15471,13 @@ const de_DeleteServiceLinkedRoleResponse = (output: any, context: __SerdeContext */ const de_DeletionTaskFailureReasonType = (output: any, context: __SerdeContext): DeletionTaskFailureReasonType => { const contents: any = {}; - if (output["Reason"] !== undefined) { - contents.Reason = __expectString(output["Reason"]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } if (output.RoleUsageList === "") { - contents.RoleUsageList = []; - } else if (output["RoleUsageList"] !== undefined && output["RoleUsageList"]["member"] !== undefined) { - contents.RoleUsageList = de_RoleUsageListType(__getArrayIfSingleItem(output["RoleUsageList"]["member"]), context); + contents[_RUL] = []; + } else if (output[_RUL] != null && output[_RUL][_me] != null) { + contents[_RUL] = de_RoleUsageListType(__getArrayIfSingleItem(output[_RUL][_me]), context); } return contents; }; @@ -15487,8 +15487,8 @@ const de_DeletionTaskFailureReasonType = (output: any, context: __SerdeContext): */ const de_DuplicateCertificateException = (output: any, context: __SerdeContext): DuplicateCertificateException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15498,8 +15498,8 @@ const de_DuplicateCertificateException = (output: any, context: __SerdeContext): */ const de_DuplicateSSHPublicKeyException = (output: any, context: __SerdeContext): DuplicateSSHPublicKeyException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15509,8 +15509,8 @@ const de_DuplicateSSHPublicKeyException = (output: any, context: __SerdeContext) */ const de_EntityAlreadyExistsException = (output: any, context: __SerdeContext): EntityAlreadyExistsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15520,11 +15520,11 @@ const de_EntityAlreadyExistsException = (output: any, context: __SerdeContext): */ const de_EntityDetails = (output: any, context: __SerdeContext): EntityDetails => { const contents: any = {}; - if (output["EntityInfo"] !== undefined) { - contents.EntityInfo = de_EntityInfo(output["EntityInfo"], context); + if (output[_EI] != null) { + contents[_EI] = de_EntityInfo(output[_EI], context); } - if (output["LastAuthenticated"] !== undefined) { - contents.LastAuthenticated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastAuthenticated"])); + if (output[_LA] != null) { + contents[_LA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LA])); } return contents; }; @@ -15545,20 +15545,20 @@ const de_entityDetailsListType = (output: any, context: __SerdeContext): EntityD */ const de_EntityInfo = (output: any, context: __SerdeContext): EntityInfo => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_Ty] != null) { + contents[_Ty] = __expectString(output[_Ty]); } - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } return contents; }; @@ -15571,8 +15571,8 @@ const de_EntityTemporarilyUnmodifiableException = ( context: __SerdeContext ): EntityTemporarilyUnmodifiableException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -15582,11 +15582,11 @@ const de_EntityTemporarilyUnmodifiableException = ( */ const de_ErrorDetails = (output: any, context: __SerdeContext): ErrorDetails => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -15612,61 +15612,40 @@ const de_EvalDecisionDetailsType = ( */ const de_EvaluationResult = (output: any, context: __SerdeContext): EvaluationResult => { const contents: any = {}; - if (output["EvalActionName"] !== undefined) { - contents.EvalActionName = __expectString(output["EvalActionName"]); + if (output[_EAN] != null) { + contents[_EAN] = __expectString(output[_EAN]); } - if (output["EvalResourceName"] !== undefined) { - contents.EvalResourceName = __expectString(output["EvalResourceName"]); + if (output[_ERN] != null) { + contents[_ERN] = __expectString(output[_ERN]); } - if (output["EvalDecision"] !== undefined) { - contents.EvalDecision = __expectString(output["EvalDecision"]); + if (output[_ED] != null) { + contents[_ED] = __expectString(output[_ED]); } if (output.MatchedStatements === "") { - contents.MatchedStatements = []; - } else if (output["MatchedStatements"] !== undefined && output["MatchedStatements"]["member"] !== undefined) { - contents.MatchedStatements = de_StatementListType( - __getArrayIfSingleItem(output["MatchedStatements"]["member"]), - context - ); + contents[_MS] = []; + } else if (output[_MS] != null && output[_MS][_me] != null) { + contents[_MS] = de_StatementListType(__getArrayIfSingleItem(output[_MS][_me]), context); } if (output.MissingContextValues === "") { - contents.MissingContextValues = []; - } else if (output["MissingContextValues"] !== undefined && output["MissingContextValues"]["member"] !== undefined) { - contents.MissingContextValues = de_ContextKeyNamesResultListType( - __getArrayIfSingleItem(output["MissingContextValues"]["member"]), - context - ); + contents[_MCV] = []; + } else if (output[_MCV] != null && output[_MCV][_me] != null) { + contents[_MCV] = de_ContextKeyNamesResultListType(__getArrayIfSingleItem(output[_MCV][_me]), context); } - if (output["OrganizationsDecisionDetail"] !== undefined) { - contents.OrganizationsDecisionDetail = de_OrganizationsDecisionDetail( - output["OrganizationsDecisionDetail"], - context - ); + if (output[_ODD] != null) { + contents[_ODD] = de_OrganizationsDecisionDetail(output[_ODD], context); } - if (output["PermissionsBoundaryDecisionDetail"] !== undefined) { - contents.PermissionsBoundaryDecisionDetail = de_PermissionsBoundaryDecisionDetail( - output["PermissionsBoundaryDecisionDetail"], - context - ); + if (output[_PBDD] != null) { + contents[_PBDD] = de_PermissionsBoundaryDecisionDetail(output[_PBDD], context); } if (output.EvalDecisionDetails === "") { - contents.EvalDecisionDetails = {}; - } else if (output["EvalDecisionDetails"] !== undefined && output["EvalDecisionDetails"]["entry"] !== undefined) { - contents.EvalDecisionDetails = de_EvalDecisionDetailsType( - __getArrayIfSingleItem(output["EvalDecisionDetails"]["entry"]), - context - ); + contents[_EDD] = {}; + } else if (output[_EDD] != null && output[_EDD][_e] != null) { + contents[_EDD] = de_EvalDecisionDetailsType(__getArrayIfSingleItem(output[_EDD][_e]), context); } if (output.ResourceSpecificResults === "") { - contents.ResourceSpecificResults = []; - } else if ( - output["ResourceSpecificResults"] !== undefined && - output["ResourceSpecificResults"]["member"] !== undefined - ) { - contents.ResourceSpecificResults = de_ResourceSpecificResultListType( - __getArrayIfSingleItem(output["ResourceSpecificResults"]["member"]), - context - ); + contents[_RSR] = []; + } else if (output[_RSR] != null && output[_RSR][_me] != null) { + contents[_RSR] = de_ResourceSpecificResultListType(__getArrayIfSingleItem(output[_RSR][_me]), context); } return contents; }; @@ -15690,11 +15669,11 @@ const de_GenerateCredentialReportResponse = ( context: __SerdeContext ): GenerateCredentialReportResponse => { const contents: any = {}; - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -15707,8 +15686,8 @@ const de_GenerateOrganizationsAccessReportResponse = ( context: __SerdeContext ): GenerateOrganizationsAccessReportResponse => { const contents: any = {}; - if (output["JobId"] !== undefined) { - contents.JobId = __expectString(output["JobId"]); + if (output[_JI] != null) { + contents[_JI] = __expectString(output[_JI]); } return contents; }; @@ -15721,8 +15700,8 @@ const de_GenerateServiceLastAccessedDetailsResponse = ( context: __SerdeContext ): GenerateServiceLastAccessedDetailsResponse => { const contents: any = {}; - if (output["JobId"] !== undefined) { - contents.JobId = __expectString(output["JobId"]); + if (output[_JI] != null) { + contents[_JI] = __expectString(output[_JI]); } return contents; }; @@ -15732,11 +15711,11 @@ const de_GenerateServiceLastAccessedDetailsResponse = ( */ const de_GetAccessKeyLastUsedResponse = (output: any, context: __SerdeContext): GetAccessKeyLastUsedResponse => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["AccessKeyLastUsed"] !== undefined) { - contents.AccessKeyLastUsed = de_AccessKeyLastUsed(output["AccessKeyLastUsed"], context); + if (output[_AKLU] != null) { + contents[_AKLU] = de_AccessKeyLastUsed(output[_AKLU], context); } return contents; }; @@ -15750,39 +15729,30 @@ const de_GetAccountAuthorizationDetailsResponse = ( ): GetAccountAuthorizationDetailsResponse => { const contents: any = {}; if (output.UserDetailList === "") { - contents.UserDetailList = []; - } else if (output["UserDetailList"] !== undefined && output["UserDetailList"]["member"] !== undefined) { - contents.UserDetailList = de_userDetailListType( - __getArrayIfSingleItem(output["UserDetailList"]["member"]), - context - ); + contents[_UDL] = []; + } else if (output[_UDL] != null && output[_UDL][_me] != null) { + contents[_UDL] = de_userDetailListType(__getArrayIfSingleItem(output[_UDL][_me]), context); } if (output.GroupDetailList === "") { - contents.GroupDetailList = []; - } else if (output["GroupDetailList"] !== undefined && output["GroupDetailList"]["member"] !== undefined) { - contents.GroupDetailList = de_groupDetailListType( - __getArrayIfSingleItem(output["GroupDetailList"]["member"]), - context - ); + contents[_GDL] = []; + } else if (output[_GDL] != null && output[_GDL][_me] != null) { + contents[_GDL] = de_groupDetailListType(__getArrayIfSingleItem(output[_GDL][_me]), context); } if (output.RoleDetailList === "") { - contents.RoleDetailList = []; - } else if (output["RoleDetailList"] !== undefined && output["RoleDetailList"]["member"] !== undefined) { - contents.RoleDetailList = de_roleDetailListType( - __getArrayIfSingleItem(output["RoleDetailList"]["member"]), - context - ); + contents[_RDL] = []; + } else if (output[_RDL] != null && output[_RDL][_me] != null) { + contents[_RDL] = de_roleDetailListType(__getArrayIfSingleItem(output[_RDL][_me]), context); } if (output.Policies === "") { - contents.Policies = []; - } else if (output["Policies"] !== undefined && output["Policies"]["member"] !== undefined) { - contents.Policies = de_ManagedPolicyDetailListType(__getArrayIfSingleItem(output["Policies"]["member"]), context); + contents[_Pol] = []; + } else if (output[_Pol] != null && output[_Pol][_me] != null) { + contents[_Pol] = de_ManagedPolicyDetailListType(__getArrayIfSingleItem(output[_Pol][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -15795,8 +15765,8 @@ const de_GetAccountPasswordPolicyResponse = ( context: __SerdeContext ): GetAccountPasswordPolicyResponse => { const contents: any = {}; - if (output["PasswordPolicy"] !== undefined) { - contents.PasswordPolicy = de_PasswordPolicy(output["PasswordPolicy"], context); + if (output[_PPa] != null) { + contents[_PPa] = de_PasswordPolicy(output[_PPa], context); } return contents; }; @@ -15807,9 +15777,9 @@ const de_GetAccountPasswordPolicyResponse = ( const de_GetAccountSummaryResponse = (output: any, context: __SerdeContext): GetAccountSummaryResponse => { const contents: any = {}; if (output.SummaryMap === "") { - contents.SummaryMap = {}; - } else if (output["SummaryMap"] !== undefined && output["SummaryMap"]["entry"] !== undefined) { - contents.SummaryMap = de_summaryMapType(__getArrayIfSingleItem(output["SummaryMap"]["entry"]), context); + contents[_SM] = {}; + } else if (output[_SM] != null && output[_SM][_e] != null) { + contents[_SM] = de_summaryMapType(__getArrayIfSingleItem(output[_SM][_e]), context); } return contents; }; @@ -15820,12 +15790,9 @@ const de_GetAccountSummaryResponse = (output: any, context: __SerdeContext): Get const de_GetContextKeysForPolicyResponse = (output: any, context: __SerdeContext): GetContextKeysForPolicyResponse => { const contents: any = {}; if (output.ContextKeyNames === "") { - contents.ContextKeyNames = []; - } else if (output["ContextKeyNames"] !== undefined && output["ContextKeyNames"]["member"] !== undefined) { - contents.ContextKeyNames = de_ContextKeyNamesResultListType( - __getArrayIfSingleItem(output["ContextKeyNames"]["member"]), - context - ); + contents[_CKNo] = []; + } else if (output[_CKNo] != null && output[_CKNo][_me] != null) { + contents[_CKNo] = de_ContextKeyNamesResultListType(__getArrayIfSingleItem(output[_CKNo][_me]), context); } return contents; }; @@ -15835,14 +15802,14 @@ const de_GetContextKeysForPolicyResponse = (output: any, context: __SerdeContext */ const de_GetCredentialReportResponse = (output: any, context: __SerdeContext): GetCredentialReportResponse => { const contents: any = {}; - if (output["Content"] !== undefined) { - contents.Content = context.base64Decoder(output["Content"]); + if (output[_Co] != null) { + contents[_Co] = context.base64Decoder(output[_Co]); } - if (output["ReportFormat"] !== undefined) { - contents.ReportFormat = __expectString(output["ReportFormat"]); + if (output[_RF] != null) { + contents[_RF] = __expectString(output[_RF]); } - if (output["GeneratedTime"] !== undefined) { - contents.GeneratedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["GeneratedTime"])); + if (output[_GT] != null) { + contents[_GT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_GT])); } return contents; }; @@ -15852,14 +15819,14 @@ const de_GetCredentialReportResponse = (output: any, context: __SerdeContext): G */ const de_GetGroupPolicyResponse = (output: any, context: __SerdeContext): GetGroupPolicyResponse => { const contents: any = {}; - if (output["GroupName"] !== undefined) { - contents.GroupName = __expectString(output["GroupName"]); + if (output[_GN] != null) { + contents[_GN] = __expectString(output[_GN]); } - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["PolicyDocument"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } return contents; }; @@ -15869,19 +15836,19 @@ const de_GetGroupPolicyResponse = (output: any, context: __SerdeContext): GetGro */ const de_GetGroupResponse = (output: any, context: __SerdeContext): GetGroupResponse => { const contents: any = {}; - if (output["Group"] !== undefined) { - contents.Group = de_Group(output["Group"], context); + if (output[_Gr] != null) { + contents[_Gr] = de_Group(output[_Gr], context); } if (output.Users === "") { - contents.Users = []; - } else if (output["Users"] !== undefined && output["Users"]["member"] !== undefined) { - contents.Users = de_userListType(__getArrayIfSingleItem(output["Users"]["member"]), context); + contents[_Use] = []; + } else if (output[_Use] != null && output[_Use][_me] != null) { + contents[_Use] = de_userListType(__getArrayIfSingleItem(output[_Use][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -15891,8 +15858,8 @@ const de_GetGroupResponse = (output: any, context: __SerdeContext): GetGroupResp */ const de_GetInstanceProfileResponse = (output: any, context: __SerdeContext): GetInstanceProfileResponse => { const contents: any = {}; - if (output["InstanceProfile"] !== undefined) { - contents.InstanceProfile = de_InstanceProfile(output["InstanceProfile"], context); + if (output[_IP] != null) { + contents[_IP] = de_InstanceProfile(output[_IP], context); } return contents; }; @@ -15902,8 +15869,8 @@ const de_GetInstanceProfileResponse = (output: any, context: __SerdeContext): Ge */ const de_GetLoginProfileResponse = (output: any, context: __SerdeContext): GetLoginProfileResponse => { const contents: any = {}; - if (output["LoginProfile"] !== undefined) { - contents.LoginProfile = de_LoginProfile(output["LoginProfile"], context); + if (output[_LPo] != null) { + contents[_LPo] = de_LoginProfile(output[_LPo], context); } return contents; }; @@ -15913,22 +15880,19 @@ const de_GetLoginProfileResponse = (output: any, context: __SerdeContext): GetLo */ const de_GetMFADeviceResponse = (output: any, context: __SerdeContext): GetMFADeviceResponse => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["SerialNumber"] !== undefined) { - contents.SerialNumber = __expectString(output["SerialNumber"]); + if (output[_SNe] != null) { + contents[_SNe] = __expectString(output[_SNe]); } - if (output["EnableDate"] !== undefined) { - contents.EnableDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EnableDate"])); + if (output[_EDn] != null) { + contents[_EDn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_EDn])); } if (output.Certifications === "") { - contents.Certifications = {}; - } else if (output["Certifications"] !== undefined && output["Certifications"]["entry"] !== undefined) { - contents.Certifications = de_CertificationMapType( - __getArrayIfSingleItem(output["Certifications"]["entry"]), - context - ); + contents[_Ce] = {}; + } else if (output[_Ce] != null && output[_Ce][_e] != null) { + contents[_Ce] = de_CertificationMapType(__getArrayIfSingleItem(output[_Ce][_e]), context); } return contents; }; @@ -15941,29 +15905,26 @@ const de_GetOpenIDConnectProviderResponse = ( context: __SerdeContext ): GetOpenIDConnectProviderResponse => { const contents: any = {}; - if (output["Url"] !== undefined) { - contents.Url = __expectString(output["Url"]); + if (output[_U] != null) { + contents[_U] = __expectString(output[_U]); } if (output.ClientIDList === "") { - contents.ClientIDList = []; - } else if (output["ClientIDList"] !== undefined && output["ClientIDList"]["member"] !== undefined) { - contents.ClientIDList = de_clientIDListType(__getArrayIfSingleItem(output["ClientIDList"]["member"]), context); + contents[_CIDL] = []; + } else if (output[_CIDL] != null && output[_CIDL][_me] != null) { + contents[_CIDL] = de_clientIDListType(__getArrayIfSingleItem(output[_CIDL][_me]), context); } if (output.ThumbprintList === "") { - contents.ThumbprintList = []; - } else if (output["ThumbprintList"] !== undefined && output["ThumbprintList"]["member"] !== undefined) { - contents.ThumbprintList = de_thumbprintListType( - __getArrayIfSingleItem(output["ThumbprintList"]["member"]), - context - ); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_me] != null) { + contents[_TL] = de_thumbprintListType(__getArrayIfSingleItem(output[_TL][_me]), context); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -15976,34 +15937,34 @@ const de_GetOrganizationsAccessReportResponse = ( context: __SerdeContext ): GetOrganizationsAccessReportResponse => { const contents: any = {}; - if (output["JobStatus"] !== undefined) { - contents.JobStatus = __expectString(output["JobStatus"]); + if (output[_JS] != null) { + contents[_JS] = __expectString(output[_JS]); } - if (output["JobCreationDate"] !== undefined) { - contents.JobCreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["JobCreationDate"])); + if (output[_JCD] != null) { + contents[_JCD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCD])); } - if (output["JobCompletionDate"] !== undefined) { - contents.JobCompletionDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["JobCompletionDate"])); + if (output[_JCDo] != null) { + contents[_JCDo] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCDo])); } - if (output["NumberOfServicesAccessible"] !== undefined) { - contents.NumberOfServicesAccessible = __strictParseInt32(output["NumberOfServicesAccessible"]) as number; + if (output[_NOSA] != null) { + contents[_NOSA] = __strictParseInt32(output[_NOSA]) as number; } - if (output["NumberOfServicesNotAccessed"] !== undefined) { - contents.NumberOfServicesNotAccessed = __strictParseInt32(output["NumberOfServicesNotAccessed"]) as number; + if (output[_NOSNA] != null) { + contents[_NOSNA] = __strictParseInt32(output[_NOSNA]) as number; } if (output.AccessDetails === "") { - contents.AccessDetails = []; - } else if (output["AccessDetails"] !== undefined && output["AccessDetails"]["member"] !== undefined) { - contents.AccessDetails = de_AccessDetails(__getArrayIfSingleItem(output["AccessDetails"]["member"]), context); + contents[_AD] = []; + } else if (output[_AD] != null && output[_AD][_me] != null) { + contents[_AD] = de_AccessDetails(__getArrayIfSingleItem(output[_AD][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["ErrorDetails"] !== undefined) { - contents.ErrorDetails = de_ErrorDetails(output["ErrorDetails"], context); + if (output[_EDr] != null) { + contents[_EDr] = de_ErrorDetails(output[_EDr], context); } return contents; }; @@ -16013,8 +15974,8 @@ const de_GetOrganizationsAccessReportResponse = ( */ const de_GetPolicyResponse = (output: any, context: __SerdeContext): GetPolicyResponse => { const contents: any = {}; - if (output["Policy"] !== undefined) { - contents.Policy = de_Policy(output["Policy"], context); + if (output[_Po] != null) { + contents[_Po] = de_Policy(output[_Po], context); } return contents; }; @@ -16024,8 +15985,8 @@ const de_GetPolicyResponse = (output: any, context: __SerdeContext): GetPolicyRe */ const de_GetPolicyVersionResponse = (output: any, context: __SerdeContext): GetPolicyVersionResponse => { const contents: any = {}; - if (output["PolicyVersion"] !== undefined) { - contents.PolicyVersion = de_PolicyVersion(output["PolicyVersion"], context); + if (output[_PV] != null) { + contents[_PV] = de_PolicyVersion(output[_PV], context); } return contents; }; @@ -16035,14 +15996,14 @@ const de_GetPolicyVersionResponse = (output: any, context: __SerdeContext): GetP */ const de_GetRolePolicyResponse = (output: any, context: __SerdeContext): GetRolePolicyResponse => { const contents: any = {}; - if (output["RoleName"] !== undefined) { - contents.RoleName = __expectString(output["RoleName"]); + if (output[_RN] != null) { + contents[_RN] = __expectString(output[_RN]); } - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["PolicyDocument"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } return contents; }; @@ -16052,8 +16013,8 @@ const de_GetRolePolicyResponse = (output: any, context: __SerdeContext): GetRole */ const de_GetRoleResponse = (output: any, context: __SerdeContext): GetRoleResponse => { const contents: any = {}; - if (output["Role"] !== undefined) { - contents.Role = de_Role(output["Role"], context); + if (output[_Ro] != null) { + contents[_Ro] = de_Role(output[_Ro], context); } return contents; }; @@ -16063,19 +16024,19 @@ const de_GetRoleResponse = (output: any, context: __SerdeContext): GetRoleRespon */ const de_GetSAMLProviderResponse = (output: any, context: __SerdeContext): GetSAMLProviderResponse => { const contents: any = {}; - if (output["SAMLMetadataDocument"] !== undefined) { - contents.SAMLMetadataDocument = __expectString(output["SAMLMetadataDocument"]); + if (output[_SAMLMD] != null) { + contents[_SAMLMD] = __expectString(output[_SAMLMD]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["ValidUntil"] !== undefined) { - contents.ValidUntil = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidUntil"])); + if (output[_VU] != null) { + contents[_VU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VU])); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -16085,8 +16046,8 @@ const de_GetSAMLProviderResponse = (output: any, context: __SerdeContext): GetSA */ const de_GetServerCertificateResponse = (output: any, context: __SerdeContext): GetServerCertificateResponse => { const contents: any = {}; - if (output["ServerCertificate"] !== undefined) { - contents.ServerCertificate = de_ServerCertificate(output["ServerCertificate"], context); + if (output[_SC] != null) { + contents[_SC] = de_ServerCertificate(output[_SC], context); } return contents; }; @@ -16099,34 +16060,31 @@ const de_GetServiceLastAccessedDetailsResponse = ( context: __SerdeContext ): GetServiceLastAccessedDetailsResponse => { const contents: any = {}; - if (output["JobStatus"] !== undefined) { - contents.JobStatus = __expectString(output["JobStatus"]); + if (output[_JS] != null) { + contents[_JS] = __expectString(output[_JS]); } - if (output["JobType"] !== undefined) { - contents.JobType = __expectString(output["JobType"]); + if (output[_JT] != null) { + contents[_JT] = __expectString(output[_JT]); } - if (output["JobCreationDate"] !== undefined) { - contents.JobCreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["JobCreationDate"])); + if (output[_JCD] != null) { + contents[_JCD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCD])); } if (output.ServicesLastAccessed === "") { - contents.ServicesLastAccessed = []; - } else if (output["ServicesLastAccessed"] !== undefined && output["ServicesLastAccessed"]["member"] !== undefined) { - contents.ServicesLastAccessed = de_ServicesLastAccessed( - __getArrayIfSingleItem(output["ServicesLastAccessed"]["member"]), - context - ); + contents[_SLA] = []; + } else if (output[_SLA] != null && output[_SLA][_me] != null) { + contents[_SLA] = de_ServicesLastAccessed(__getArrayIfSingleItem(output[_SLA][_me]), context); } - if (output["JobCompletionDate"] !== undefined) { - contents.JobCompletionDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["JobCompletionDate"])); + if (output[_JCDo] != null) { + contents[_JCDo] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCDo])); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["Error"] !== undefined) { - contents.Error = de_ErrorDetails(output["Error"], context); + if (output[_Er] != null) { + contents[_Er] = de_ErrorDetails(output[_Er], context); } return contents; }; @@ -16139,31 +16097,28 @@ const de_GetServiceLastAccessedDetailsWithEntitiesResponse = ( context: __SerdeContext ): GetServiceLastAccessedDetailsWithEntitiesResponse => { const contents: any = {}; - if (output["JobStatus"] !== undefined) { - contents.JobStatus = __expectString(output["JobStatus"]); + if (output[_JS] != null) { + contents[_JS] = __expectString(output[_JS]); } - if (output["JobCreationDate"] !== undefined) { - contents.JobCreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["JobCreationDate"])); + if (output[_JCD] != null) { + contents[_JCD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCD])); } - if (output["JobCompletionDate"] !== undefined) { - contents.JobCompletionDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["JobCompletionDate"])); + if (output[_JCDo] != null) { + contents[_JCDo] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCDo])); } if (output.EntityDetailsList === "") { - contents.EntityDetailsList = []; - } else if (output["EntityDetailsList"] !== undefined && output["EntityDetailsList"]["member"] !== undefined) { - contents.EntityDetailsList = de_entityDetailsListType( - __getArrayIfSingleItem(output["EntityDetailsList"]["member"]), - context - ); + contents[_EDL] = []; + } else if (output[_EDL] != null && output[_EDL][_me] != null) { + contents[_EDL] = de_entityDetailsListType(__getArrayIfSingleItem(output[_EDL][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["Error"] !== undefined) { - contents.Error = de_ErrorDetails(output["Error"], context); + if (output[_Er] != null) { + contents[_Er] = de_ErrorDetails(output[_Er], context); } return contents; }; @@ -16176,11 +16131,11 @@ const de_GetServiceLinkedRoleDeletionStatusResponse = ( context: __SerdeContext ): GetServiceLinkedRoleDeletionStatusResponse => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Reason"] !== undefined) { - contents.Reason = de_DeletionTaskFailureReasonType(output["Reason"], context); + if (output[_Re] != null) { + contents[_Re] = de_DeletionTaskFailureReasonType(output[_Re], context); } return contents; }; @@ -16190,8 +16145,8 @@ const de_GetServiceLinkedRoleDeletionStatusResponse = ( */ const de_GetSSHPublicKeyResponse = (output: any, context: __SerdeContext): GetSSHPublicKeyResponse => { const contents: any = {}; - if (output["SSHPublicKey"] !== undefined) { - contents.SSHPublicKey = de_SSHPublicKey(output["SSHPublicKey"], context); + if (output[_SSHPK] != null) { + contents[_SSHPK] = de_SSHPublicKey(output[_SSHPK], context); } return contents; }; @@ -16201,14 +16156,14 @@ const de_GetSSHPublicKeyResponse = (output: any, context: __SerdeContext): GetSS */ const de_GetUserPolicyResponse = (output: any, context: __SerdeContext): GetUserPolicyResponse => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["PolicyDocument"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } return contents; }; @@ -16218,8 +16173,8 @@ const de_GetUserPolicyResponse = (output: any, context: __SerdeContext): GetUser */ const de_GetUserResponse = (output: any, context: __SerdeContext): GetUserResponse => { const contents: any = {}; - if (output["User"] !== undefined) { - contents.User = de_User(output["User"], context); + if (output[_Us] != null) { + contents[_Us] = de_User(output[_Us], context); } return contents; }; @@ -16229,20 +16184,20 @@ const de_GetUserResponse = (output: any, context: __SerdeContext): GetUserRespon */ const de_Group = (output: any, context: __SerdeContext): Group => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["GroupName"] !== undefined) { - contents.GroupName = __expectString(output["GroupName"]); + if (output[_GN] != null) { + contents[_GN] = __expectString(output[_GN]); } - if (output["GroupId"] !== undefined) { - contents.GroupId = __expectString(output["GroupId"]); + if (output[_GI] != null) { + contents[_GI] = __expectString(output[_GI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } return contents; }; @@ -16252,39 +16207,30 @@ const de_Group = (output: any, context: __SerdeContext): Group => { */ const de_GroupDetail = (output: any, context: __SerdeContext): GroupDetail => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["GroupName"] !== undefined) { - contents.GroupName = __expectString(output["GroupName"]); + if (output[_GN] != null) { + contents[_GN] = __expectString(output[_GN]); } - if (output["GroupId"] !== undefined) { - contents.GroupId = __expectString(output["GroupId"]); + if (output[_GI] != null) { + contents[_GI] = __expectString(output[_GI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } if (output.GroupPolicyList === "") { - contents.GroupPolicyList = []; - } else if (output["GroupPolicyList"] !== undefined && output["GroupPolicyList"]["member"] !== undefined) { - contents.GroupPolicyList = de_policyDetailListType( - __getArrayIfSingleItem(output["GroupPolicyList"]["member"]), - context - ); + contents[_GPL] = []; + } else if (output[_GPL] != null && output[_GPL][_me] != null) { + contents[_GPL] = de_policyDetailListType(__getArrayIfSingleItem(output[_GPL][_me]), context); } if (output.AttachedManagedPolicies === "") { - contents.AttachedManagedPolicies = []; - } else if ( - output["AttachedManagedPolicies"] !== undefined && - output["AttachedManagedPolicies"]["member"] !== undefined - ) { - contents.AttachedManagedPolicies = de_attachedPoliciesListType( - __getArrayIfSingleItem(output["AttachedManagedPolicies"]["member"]), - context - ); + contents[_AMP] = []; + } else if (output[_AMP] != null && output[_AMP][_me] != null) { + contents[_AMP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AMP][_me]), context); } return contents; }; @@ -16327,30 +16273,30 @@ const de_groupNameListType = (output: any, context: __SerdeContext): string[] => */ const de_InstanceProfile = (output: any, context: __SerdeContext): InstanceProfile => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["InstanceProfileName"] !== undefined) { - contents.InstanceProfileName = __expectString(output["InstanceProfileName"]); + if (output[_IPN] != null) { + contents[_IPN] = __expectString(output[_IPN]); } - if (output["InstanceProfileId"] !== undefined) { - contents.InstanceProfileId = __expectString(output["InstanceProfileId"]); + if (output[_IPI] != null) { + contents[_IPI] = __expectString(output[_IPI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } if (output.Roles === "") { - contents.Roles = []; - } else if (output["Roles"] !== undefined && output["Roles"]["member"] !== undefined) { - contents.Roles = de_roleListType(__getArrayIfSingleItem(output["Roles"]["member"]), context); + contents[_Rol] = []; + } else if (output[_Rol] != null && output[_Rol][_me] != null) { + contents[_Rol] = de_roleListType(__getArrayIfSingleItem(output[_Rol][_me]), context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -16374,8 +16320,8 @@ const de_InvalidAuthenticationCodeException = ( context: __SerdeContext ): InvalidAuthenticationCodeException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16385,8 +16331,8 @@ const de_InvalidAuthenticationCodeException = ( */ const de_InvalidCertificateException = (output: any, context: __SerdeContext): InvalidCertificateException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16396,8 +16342,8 @@ const de_InvalidCertificateException = (output: any, context: __SerdeContext): I */ const de_InvalidInputException = (output: any, context: __SerdeContext): InvalidInputException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16407,8 +16353,8 @@ const de_InvalidInputException = (output: any, context: __SerdeContext): Invalid */ const de_InvalidPublicKeyException = (output: any, context: __SerdeContext): InvalidPublicKeyException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16418,8 +16364,8 @@ const de_InvalidPublicKeyException = (output: any, context: __SerdeContext): Inv */ const de_InvalidUserTypeException = (output: any, context: __SerdeContext): InvalidUserTypeException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16429,8 +16375,8 @@ const de_InvalidUserTypeException = (output: any, context: __SerdeContext): Inva */ const de_KeyPairMismatchException = (output: any, context: __SerdeContext): KeyPairMismatchException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16440,8 +16386,8 @@ const de_KeyPairMismatchException = (output: any, context: __SerdeContext): KeyP */ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16452,18 +16398,15 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE const de_ListAccessKeysResponse = (output: any, context: __SerdeContext): ListAccessKeysResponse => { const contents: any = {}; if (output.AccessKeyMetadata === "") { - contents.AccessKeyMetadata = []; - } else if (output["AccessKeyMetadata"] !== undefined && output["AccessKeyMetadata"]["member"] !== undefined) { - contents.AccessKeyMetadata = de_accessKeyMetadataListType( - __getArrayIfSingleItem(output["AccessKeyMetadata"]["member"]), - context - ); + contents[_AKM] = []; + } else if (output[_AKM] != null && output[_AKM][_me] != null) { + contents[_AKM] = de_accessKeyMetadataListType(__getArrayIfSingleItem(output[_AKM][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16474,18 +16417,15 @@ const de_ListAccessKeysResponse = (output: any, context: __SerdeContext): ListAc const de_ListAccountAliasesResponse = (output: any, context: __SerdeContext): ListAccountAliasesResponse => { const contents: any = {}; if (output.AccountAliases === "") { - contents.AccountAliases = []; - } else if (output["AccountAliases"] !== undefined && output["AccountAliases"]["member"] !== undefined) { - contents.AccountAliases = de_accountAliasListType( - __getArrayIfSingleItem(output["AccountAliases"]["member"]), - context - ); + contents[_AAc] = []; + } else if (output[_AAc] != null && output[_AAc][_me] != null) { + contents[_AAc] = de_accountAliasListType(__getArrayIfSingleItem(output[_AAc][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16499,18 +16439,15 @@ const de_ListAttachedGroupPoliciesResponse = ( ): ListAttachedGroupPoliciesResponse => { const contents: any = {}; if (output.AttachedPolicies === "") { - contents.AttachedPolicies = []; - } else if (output["AttachedPolicies"] !== undefined && output["AttachedPolicies"]["member"] !== undefined) { - contents.AttachedPolicies = de_attachedPoliciesListType( - __getArrayIfSingleItem(output["AttachedPolicies"]["member"]), - context - ); + contents[_AP] = []; + } else if (output[_AP] != null && output[_AP][_me] != null) { + contents[_AP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AP][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16524,18 +16461,15 @@ const de_ListAttachedRolePoliciesResponse = ( ): ListAttachedRolePoliciesResponse => { const contents: any = {}; if (output.AttachedPolicies === "") { - contents.AttachedPolicies = []; - } else if (output["AttachedPolicies"] !== undefined && output["AttachedPolicies"]["member"] !== undefined) { - contents.AttachedPolicies = de_attachedPoliciesListType( - __getArrayIfSingleItem(output["AttachedPolicies"]["member"]), - context - ); + contents[_AP] = []; + } else if (output[_AP] != null && output[_AP][_me] != null) { + contents[_AP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AP][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16549,18 +16483,15 @@ const de_ListAttachedUserPoliciesResponse = ( ): ListAttachedUserPoliciesResponse => { const contents: any = {}; if (output.AttachedPolicies === "") { - contents.AttachedPolicies = []; - } else if (output["AttachedPolicies"] !== undefined && output["AttachedPolicies"]["member"] !== undefined) { - contents.AttachedPolicies = de_attachedPoliciesListType( - __getArrayIfSingleItem(output["AttachedPolicies"]["member"]), - context - ); + contents[_AP] = []; + } else if (output[_AP] != null && output[_AP][_me] != null) { + contents[_AP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AP][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16571,25 +16502,25 @@ const de_ListAttachedUserPoliciesResponse = ( const de_ListEntitiesForPolicyResponse = (output: any, context: __SerdeContext): ListEntitiesForPolicyResponse => { const contents: any = {}; if (output.PolicyGroups === "") { - contents.PolicyGroups = []; - } else if (output["PolicyGroups"] !== undefined && output["PolicyGroups"]["member"] !== undefined) { - contents.PolicyGroups = de_PolicyGroupListType(__getArrayIfSingleItem(output["PolicyGroups"]["member"]), context); + contents[_PG] = []; + } else if (output[_PG] != null && output[_PG][_me] != null) { + contents[_PG] = de_PolicyGroupListType(__getArrayIfSingleItem(output[_PG][_me]), context); } if (output.PolicyUsers === "") { - contents.PolicyUsers = []; - } else if (output["PolicyUsers"] !== undefined && output["PolicyUsers"]["member"] !== undefined) { - contents.PolicyUsers = de_PolicyUserListType(__getArrayIfSingleItem(output["PolicyUsers"]["member"]), context); + contents[_PU] = []; + } else if (output[_PU] != null && output[_PU][_me] != null) { + contents[_PU] = de_PolicyUserListType(__getArrayIfSingleItem(output[_PU][_me]), context); } if (output.PolicyRoles === "") { - contents.PolicyRoles = []; - } else if (output["PolicyRoles"] !== undefined && output["PolicyRoles"]["member"] !== undefined) { - contents.PolicyRoles = de_PolicyRoleListType(__getArrayIfSingleItem(output["PolicyRoles"]["member"]), context); + contents[_PR] = []; + } else if (output[_PR] != null && output[_PR][_me] != null) { + contents[_PR] = de_PolicyRoleListType(__getArrayIfSingleItem(output[_PR][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16600,15 +16531,15 @@ const de_ListEntitiesForPolicyResponse = (output: any, context: __SerdeContext): const de_ListGroupPoliciesResponse = (output: any, context: __SerdeContext): ListGroupPoliciesResponse => { const contents: any = {}; if (output.PolicyNames === "") { - contents.PolicyNames = []; - } else if (output["PolicyNames"] !== undefined && output["PolicyNames"]["member"] !== undefined) { - contents.PolicyNames = de_policyNameListType(__getArrayIfSingleItem(output["PolicyNames"]["member"]), context); + contents[_PNo] = []; + } else if (output[_PNo] != null && output[_PNo][_me] != null) { + contents[_PNo] = de_policyNameListType(__getArrayIfSingleItem(output[_PNo][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16619,15 +16550,15 @@ const de_ListGroupPoliciesResponse = (output: any, context: __SerdeContext): Lis const de_ListGroupsForUserResponse = (output: any, context: __SerdeContext): ListGroupsForUserResponse => { const contents: any = {}; if (output.Groups === "") { - contents.Groups = []; - } else if (output["Groups"] !== undefined && output["Groups"]["member"] !== undefined) { - contents.Groups = de_groupListType(__getArrayIfSingleItem(output["Groups"]["member"]), context); + contents[_Gro] = []; + } else if (output[_Gro] != null && output[_Gro][_me] != null) { + contents[_Gro] = de_groupListType(__getArrayIfSingleItem(output[_Gro][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16638,15 +16569,15 @@ const de_ListGroupsForUserResponse = (output: any, context: __SerdeContext): Lis const de_ListGroupsResponse = (output: any, context: __SerdeContext): ListGroupsResponse => { const contents: any = {}; if (output.Groups === "") { - contents.Groups = []; - } else if (output["Groups"] !== undefined && output["Groups"]["member"] !== undefined) { - contents.Groups = de_groupListType(__getArrayIfSingleItem(output["Groups"]["member"]), context); + contents[_Gro] = []; + } else if (output[_Gro] != null && output[_Gro][_me] != null) { + contents[_Gro] = de_groupListType(__getArrayIfSingleItem(output[_Gro][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16660,18 +16591,15 @@ const de_ListInstanceProfilesForRoleResponse = ( ): ListInstanceProfilesForRoleResponse => { const contents: any = {}; if (output.InstanceProfiles === "") { - contents.InstanceProfiles = []; - } else if (output["InstanceProfiles"] !== undefined && output["InstanceProfiles"]["member"] !== undefined) { - contents.InstanceProfiles = de_instanceProfileListType( - __getArrayIfSingleItem(output["InstanceProfiles"]["member"]), - context - ); + contents[_IPn] = []; + } else if (output[_IPn] != null && output[_IPn][_me] != null) { + contents[_IPn] = de_instanceProfileListType(__getArrayIfSingleItem(output[_IPn][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16682,18 +16610,15 @@ const de_ListInstanceProfilesForRoleResponse = ( const de_ListInstanceProfilesResponse = (output: any, context: __SerdeContext): ListInstanceProfilesResponse => { const contents: any = {}; if (output.InstanceProfiles === "") { - contents.InstanceProfiles = []; - } else if (output["InstanceProfiles"] !== undefined && output["InstanceProfiles"]["member"] !== undefined) { - contents.InstanceProfiles = de_instanceProfileListType( - __getArrayIfSingleItem(output["InstanceProfiles"]["member"]), - context - ); + contents[_IPn] = []; + } else if (output[_IPn] != null && output[_IPn][_me] != null) { + contents[_IPn] = de_instanceProfileListType(__getArrayIfSingleItem(output[_IPn][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16704,15 +16629,15 @@ const de_ListInstanceProfilesResponse = (output: any, context: __SerdeContext): const de_ListInstanceProfileTagsResponse = (output: any, context: __SerdeContext): ListInstanceProfileTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16723,15 +16648,15 @@ const de_ListInstanceProfileTagsResponse = (output: any, context: __SerdeContext const de_ListMFADevicesResponse = (output: any, context: __SerdeContext): ListMFADevicesResponse => { const contents: any = {}; if (output.MFADevices === "") { - contents.MFADevices = []; - } else if (output["MFADevices"] !== undefined && output["MFADevices"]["member"] !== undefined) { - contents.MFADevices = de_mfaDeviceListType(__getArrayIfSingleItem(output["MFADevices"]["member"]), context); + contents[_MFAD] = []; + } else if (output[_MFAD] != null && output[_MFAD][_me] != null) { + contents[_MFAD] = de_mfaDeviceListType(__getArrayIfSingleItem(output[_MFAD][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16742,15 +16667,15 @@ const de_ListMFADevicesResponse = (output: any, context: __SerdeContext): ListMF const de_ListMFADeviceTagsResponse = (output: any, context: __SerdeContext): ListMFADeviceTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16764,15 +16689,9 @@ const de_ListOpenIDConnectProvidersResponse = ( ): ListOpenIDConnectProvidersResponse => { const contents: any = {}; if (output.OpenIDConnectProviderList === "") { - contents.OpenIDConnectProviderList = []; - } else if ( - output["OpenIDConnectProviderList"] !== undefined && - output["OpenIDConnectProviderList"]["member"] !== undefined - ) { - contents.OpenIDConnectProviderList = de_OpenIDConnectProviderListType( - __getArrayIfSingleItem(output["OpenIDConnectProviderList"]["member"]), - context - ); + contents[_OIDCPL] = []; + } else if (output[_OIDCPL] != null && output[_OIDCPL][_me] != null) { + contents[_OIDCPL] = de_OpenIDConnectProviderListType(__getArrayIfSingleItem(output[_OIDCPL][_me]), context); } return contents; }; @@ -16786,15 +16705,15 @@ const de_ListOpenIDConnectProviderTagsResponse = ( ): ListOpenIDConnectProviderTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16807,16 +16726,13 @@ const de_ListPoliciesGrantingServiceAccessEntry = ( context: __SerdeContext ): ListPoliciesGrantingServiceAccessEntry => { const contents: any = {}; - if (output["ServiceNamespace"] !== undefined) { - contents.ServiceNamespace = __expectString(output["ServiceNamespace"]); + if (output[_SNer] != null) { + contents[_SNer] = __expectString(output[_SNer]); } if (output.Policies === "") { - contents.Policies = []; - } else if (output["Policies"] !== undefined && output["Policies"]["member"] !== undefined) { - contents.Policies = de_policyGrantingServiceAccessListType( - __getArrayIfSingleItem(output["Policies"]["member"]), - context - ); + contents[_Pol] = []; + } else if (output[_Pol] != null && output[_Pol][_me] != null) { + contents[_Pol] = de_policyGrantingServiceAccessListType(__getArrayIfSingleItem(output[_Pol][_me]), context); } return contents; }; @@ -16830,21 +16746,18 @@ const de_ListPoliciesGrantingServiceAccessResponse = ( ): ListPoliciesGrantingServiceAccessResponse => { const contents: any = {}; if (output.PoliciesGrantingServiceAccess === "") { - contents.PoliciesGrantingServiceAccess = []; - } else if ( - output["PoliciesGrantingServiceAccess"] !== undefined && - output["PoliciesGrantingServiceAccess"]["member"] !== undefined - ) { - contents.PoliciesGrantingServiceAccess = de_listPolicyGrantingServiceAccessResponseListType( - __getArrayIfSingleItem(output["PoliciesGrantingServiceAccess"]["member"]), + contents[_PGSA] = []; + } else if (output[_PGSA] != null && output[_PGSA][_me] != null) { + contents[_PGSA] = de_listPolicyGrantingServiceAccessResponseListType( + __getArrayIfSingleItem(output[_PGSA][_me]), context ); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16855,15 +16768,15 @@ const de_ListPoliciesGrantingServiceAccessResponse = ( const de_ListPoliciesResponse = (output: any, context: __SerdeContext): ListPoliciesResponse => { const contents: any = {}; if (output.Policies === "") { - contents.Policies = []; - } else if (output["Policies"] !== undefined && output["Policies"]["member"] !== undefined) { - contents.Policies = de_policyListType(__getArrayIfSingleItem(output["Policies"]["member"]), context); + contents[_Pol] = []; + } else if (output[_Pol] != null && output[_Pol][_me] != null) { + contents[_Pol] = de_policyListType(__getArrayIfSingleItem(output[_Pol][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16888,15 +16801,15 @@ const de_listPolicyGrantingServiceAccessResponseListType = ( const de_ListPolicyTagsResponse = (output: any, context: __SerdeContext): ListPolicyTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16907,15 +16820,15 @@ const de_ListPolicyTagsResponse = (output: any, context: __SerdeContext): ListPo const de_ListPolicyVersionsResponse = (output: any, context: __SerdeContext): ListPolicyVersionsResponse => { const contents: any = {}; if (output.Versions === "") { - contents.Versions = []; - } else if (output["Versions"] !== undefined && output["Versions"]["member"] !== undefined) { - contents.Versions = de_policyDocumentVersionListType(__getArrayIfSingleItem(output["Versions"]["member"]), context); + contents[_Ve] = []; + } else if (output[_Ve] != null && output[_Ve][_me] != null) { + contents[_Ve] = de_policyDocumentVersionListType(__getArrayIfSingleItem(output[_Ve][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16926,15 +16839,15 @@ const de_ListPolicyVersionsResponse = (output: any, context: __SerdeContext): Li const de_ListRolePoliciesResponse = (output: any, context: __SerdeContext): ListRolePoliciesResponse => { const contents: any = {}; if (output.PolicyNames === "") { - contents.PolicyNames = []; - } else if (output["PolicyNames"] !== undefined && output["PolicyNames"]["member"] !== undefined) { - contents.PolicyNames = de_policyNameListType(__getArrayIfSingleItem(output["PolicyNames"]["member"]), context); + contents[_PNo] = []; + } else if (output[_PNo] != null && output[_PNo][_me] != null) { + contents[_PNo] = de_policyNameListType(__getArrayIfSingleItem(output[_PNo][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16945,15 +16858,15 @@ const de_ListRolePoliciesResponse = (output: any, context: __SerdeContext): List const de_ListRolesResponse = (output: any, context: __SerdeContext): ListRolesResponse => { const contents: any = {}; if (output.Roles === "") { - contents.Roles = []; - } else if (output["Roles"] !== undefined && output["Roles"]["member"] !== undefined) { - contents.Roles = de_roleListType(__getArrayIfSingleItem(output["Roles"]["member"]), context); + contents[_Rol] = []; + } else if (output[_Rol] != null && output[_Rol][_me] != null) { + contents[_Rol] = de_roleListType(__getArrayIfSingleItem(output[_Rol][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16964,15 +16877,15 @@ const de_ListRolesResponse = (output: any, context: __SerdeContext): ListRolesRe const de_ListRoleTagsResponse = (output: any, context: __SerdeContext): ListRoleTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -16983,12 +16896,9 @@ const de_ListRoleTagsResponse = (output: any, context: __SerdeContext): ListRole const de_ListSAMLProvidersResponse = (output: any, context: __SerdeContext): ListSAMLProvidersResponse => { const contents: any = {}; if (output.SAMLProviderList === "") { - contents.SAMLProviderList = []; - } else if (output["SAMLProviderList"] !== undefined && output["SAMLProviderList"]["member"] !== undefined) { - contents.SAMLProviderList = de_SAMLProviderListType( - __getArrayIfSingleItem(output["SAMLProviderList"]["member"]), - context - ); + contents[_SAMLPL] = []; + } else if (output[_SAMLPL] != null && output[_SAMLPL][_me] != null) { + contents[_SAMLPL] = de_SAMLProviderListType(__getArrayIfSingleItem(output[_SAMLPL][_me]), context); } return contents; }; @@ -16999,15 +16909,15 @@ const de_ListSAMLProvidersResponse = (output: any, context: __SerdeContext): Lis const de_ListSAMLProviderTagsResponse = (output: any, context: __SerdeContext): ListSAMLProviderTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17018,21 +16928,15 @@ const de_ListSAMLProviderTagsResponse = (output: any, context: __SerdeContext): const de_ListServerCertificatesResponse = (output: any, context: __SerdeContext): ListServerCertificatesResponse => { const contents: any = {}; if (output.ServerCertificateMetadataList === "") { - contents.ServerCertificateMetadataList = []; - } else if ( - output["ServerCertificateMetadataList"] !== undefined && - output["ServerCertificateMetadataList"]["member"] !== undefined - ) { - contents.ServerCertificateMetadataList = de_serverCertificateMetadataListType( - __getArrayIfSingleItem(output["ServerCertificateMetadataList"]["member"]), - context - ); + contents[_SCML] = []; + } else if (output[_SCML] != null && output[_SCML][_me] != null) { + contents[_SCML] = de_serverCertificateMetadataListType(__getArrayIfSingleItem(output[_SCML][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17046,15 +16950,15 @@ const de_ListServerCertificateTagsResponse = ( ): ListServerCertificateTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17068,15 +16972,9 @@ const de_ListServiceSpecificCredentialsResponse = ( ): ListServiceSpecificCredentialsResponse => { const contents: any = {}; if (output.ServiceSpecificCredentials === "") { - contents.ServiceSpecificCredentials = []; - } else if ( - output["ServiceSpecificCredentials"] !== undefined && - output["ServiceSpecificCredentials"]["member"] !== undefined - ) { - contents.ServiceSpecificCredentials = de_ServiceSpecificCredentialsListType( - __getArrayIfSingleItem(output["ServiceSpecificCredentials"]["member"]), - context - ); + contents[_SSCe] = []; + } else if (output[_SSCe] != null && output[_SSCe][_me] != null) { + contents[_SSCe] = de_ServiceSpecificCredentialsListType(__getArrayIfSingleItem(output[_SSCe][_me]), context); } return contents; }; @@ -17087,15 +16985,15 @@ const de_ListServiceSpecificCredentialsResponse = ( const de_ListSigningCertificatesResponse = (output: any, context: __SerdeContext): ListSigningCertificatesResponse => { const contents: any = {}; if (output.Certificates === "") { - contents.Certificates = []; - } else if (output["Certificates"] !== undefined && output["Certificates"]["member"] !== undefined) { - contents.Certificates = de_certificateListType(__getArrayIfSingleItem(output["Certificates"]["member"]), context); + contents[_Cer] = []; + } else if (output[_Cer] != null && output[_Cer][_me] != null) { + contents[_Cer] = de_certificateListType(__getArrayIfSingleItem(output[_Cer][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17106,18 +17004,15 @@ const de_ListSigningCertificatesResponse = (output: any, context: __SerdeContext const de_ListSSHPublicKeysResponse = (output: any, context: __SerdeContext): ListSSHPublicKeysResponse => { const contents: any = {}; if (output.SSHPublicKeys === "") { - contents.SSHPublicKeys = []; - } else if (output["SSHPublicKeys"] !== undefined && output["SSHPublicKeys"]["member"] !== undefined) { - contents.SSHPublicKeys = de_SSHPublicKeyListType( - __getArrayIfSingleItem(output["SSHPublicKeys"]["member"]), - context - ); + contents[_SSHPKu] = []; + } else if (output[_SSHPKu] != null && output[_SSHPKu][_me] != null) { + contents[_SSHPKu] = de_SSHPublicKeyListType(__getArrayIfSingleItem(output[_SSHPKu][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17128,15 +17023,15 @@ const de_ListSSHPublicKeysResponse = (output: any, context: __SerdeContext): Lis const de_ListUserPoliciesResponse = (output: any, context: __SerdeContext): ListUserPoliciesResponse => { const contents: any = {}; if (output.PolicyNames === "") { - contents.PolicyNames = []; - } else if (output["PolicyNames"] !== undefined && output["PolicyNames"]["member"] !== undefined) { - contents.PolicyNames = de_policyNameListType(__getArrayIfSingleItem(output["PolicyNames"]["member"]), context); + contents[_PNo] = []; + } else if (output[_PNo] != null && output[_PNo][_me] != null) { + contents[_PNo] = de_policyNameListType(__getArrayIfSingleItem(output[_PNo][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17147,15 +17042,15 @@ const de_ListUserPoliciesResponse = (output: any, context: __SerdeContext): List const de_ListUsersResponse = (output: any, context: __SerdeContext): ListUsersResponse => { const contents: any = {}; if (output.Users === "") { - contents.Users = []; - } else if (output["Users"] !== undefined && output["Users"]["member"] !== undefined) { - contents.Users = de_userListType(__getArrayIfSingleItem(output["Users"]["member"]), context); + contents[_Use] = []; + } else if (output[_Use] != null && output[_Use][_me] != null) { + contents[_Use] = de_userListType(__getArrayIfSingleItem(output[_Use][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17166,15 +17061,15 @@ const de_ListUsersResponse = (output: any, context: __SerdeContext): ListUsersRe const de_ListUserTagsResponse = (output: any, context: __SerdeContext): ListUserTagsResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17185,18 +17080,15 @@ const de_ListUserTagsResponse = (output: any, context: __SerdeContext): ListUser const de_ListVirtualMFADevicesResponse = (output: any, context: __SerdeContext): ListVirtualMFADevicesResponse => { const contents: any = {}; if (output.VirtualMFADevices === "") { - contents.VirtualMFADevices = []; - } else if (output["VirtualMFADevices"] !== undefined && output["VirtualMFADevices"]["member"] !== undefined) { - contents.VirtualMFADevices = de_virtualMFADeviceListType( - __getArrayIfSingleItem(output["VirtualMFADevices"]["member"]), - context - ); + contents[_VMFADi] = []; + } else if (output[_VMFADi] != null && output[_VMFADi][_me] != null) { + contents[_VMFADi] = de_virtualMFADeviceListType(__getArrayIfSingleItem(output[_VMFADi][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17206,14 +17098,14 @@ const de_ListVirtualMFADevicesResponse = (output: any, context: __SerdeContext): */ const de_LoginProfile = (output: any, context: __SerdeContext): LoginProfile => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["PasswordResetRequired"] !== undefined) { - contents.PasswordResetRequired = __parseBoolean(output["PasswordResetRequired"]); + if (output[_PRR] != null) { + contents[_PRR] = __parseBoolean(output[_PRR]); } return contents; }; @@ -17223,8 +17115,8 @@ const de_LoginProfile = (output: any, context: __SerdeContext): LoginProfile => */ const de_MalformedCertificateException = (output: any, context: __SerdeContext): MalformedCertificateException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17237,8 +17129,8 @@ const de_MalformedPolicyDocumentException = ( context: __SerdeContext ): MalformedPolicyDocumentException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17248,46 +17140,43 @@ const de_MalformedPolicyDocumentException = ( */ const de_ManagedPolicyDetail = (output: any, context: __SerdeContext): ManagedPolicyDetail => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyId"] !== undefined) { - contents.PolicyId = __expectString(output["PolicyId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["DefaultVersionId"] !== undefined) { - contents.DefaultVersionId = __expectString(output["DefaultVersionId"]); + if (output[_DVI] != null) { + contents[_DVI] = __expectString(output[_DVI]); } - if (output["AttachmentCount"] !== undefined) { - contents.AttachmentCount = __strictParseInt32(output["AttachmentCount"]) as number; + if (output[_ACt] != null) { + contents[_ACt] = __strictParseInt32(output[_ACt]) as number; } - if (output["PermissionsBoundaryUsageCount"] !== undefined) { - contents.PermissionsBoundaryUsageCount = __strictParseInt32(output["PermissionsBoundaryUsageCount"]) as number; + if (output[_PBUC] != null) { + contents[_PBUC] = __strictParseInt32(output[_PBUC]) as number; } - if (output["IsAttachable"] !== undefined) { - contents.IsAttachable = __parseBoolean(output["IsAttachable"]); + if (output[_IA] != null) { + contents[_IA] = __parseBoolean(output[_IA]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["UpdateDate"] !== undefined) { - contents.UpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdateDate"])); + if (output[_UD] != null) { + contents[_UD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UD])); } if (output.PolicyVersionList === "") { - contents.PolicyVersionList = []; - } else if (output["PolicyVersionList"] !== undefined && output["PolicyVersionList"]["member"] !== undefined) { - contents.PolicyVersionList = de_policyDocumentVersionListType( - __getArrayIfSingleItem(output["PolicyVersionList"]["member"]), - context - ); + contents[_PVL] = []; + } else if (output[_PVL] != null && output[_PVL][_me] != null) { + contents[_PVL] = de_policyDocumentVersionListType(__getArrayIfSingleItem(output[_PVL][_me]), context); } return contents; }; @@ -17308,14 +17197,14 @@ const de_ManagedPolicyDetailListType = (output: any, context: __SerdeContext): M */ const de_MFADevice = (output: any, context: __SerdeContext): MFADevice => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["SerialNumber"] !== undefined) { - contents.SerialNumber = __expectString(output["SerialNumber"]); + if (output[_SNe] != null) { + contents[_SNe] = __expectString(output[_SNe]); } - if (output["EnableDate"] !== undefined) { - contents.EnableDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EnableDate"])); + if (output[_EDn] != null) { + contents[_EDn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_EDn])); } return contents; }; @@ -17336,8 +17225,8 @@ const de_mfaDeviceListType = (output: any, context: __SerdeContext): MFADevice[] */ const de_NoSuchEntityException = (output: any, context: __SerdeContext): NoSuchEntityException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17347,8 +17236,8 @@ const de_NoSuchEntityException = (output: any, context: __SerdeContext): NoSuchE */ const de_OpenIDConnectProviderListEntry = (output: any, context: __SerdeContext): OpenIDConnectProviderListEntry => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -17369,8 +17258,8 @@ const de_OpenIDConnectProviderListType = (output: any, context: __SerdeContext): */ const de_OrganizationsDecisionDetail = (output: any, context: __SerdeContext): OrganizationsDecisionDetail => { const contents: any = {}; - if (output["AllowedByOrganizations"] !== undefined) { - contents.AllowedByOrganizations = __parseBoolean(output["AllowedByOrganizations"]); + if (output[_ABO] != null) { + contents[_ABO] = __parseBoolean(output[_ABO]); } return contents; }; @@ -17380,35 +17269,35 @@ const de_OrganizationsDecisionDetail = (output: any, context: __SerdeContext): O */ const de_PasswordPolicy = (output: any, context: __SerdeContext): PasswordPolicy => { const contents: any = {}; - if (output["MinimumPasswordLength"] !== undefined) { - contents.MinimumPasswordLength = __strictParseInt32(output["MinimumPasswordLength"]) as number; + if (output[_MPL] != null) { + contents[_MPL] = __strictParseInt32(output[_MPL]) as number; } - if (output["RequireSymbols"] !== undefined) { - contents.RequireSymbols = __parseBoolean(output["RequireSymbols"]); + if (output[_RS] != null) { + contents[_RS] = __parseBoolean(output[_RS]); } - if (output["RequireNumbers"] !== undefined) { - contents.RequireNumbers = __parseBoolean(output["RequireNumbers"]); + if (output[_RNe] != null) { + contents[_RNe] = __parseBoolean(output[_RNe]); } - if (output["RequireUppercaseCharacters"] !== undefined) { - contents.RequireUppercaseCharacters = __parseBoolean(output["RequireUppercaseCharacters"]); + if (output[_RUC] != null) { + contents[_RUC] = __parseBoolean(output[_RUC]); } - if (output["RequireLowercaseCharacters"] !== undefined) { - contents.RequireLowercaseCharacters = __parseBoolean(output["RequireLowercaseCharacters"]); + if (output[_RLC] != null) { + contents[_RLC] = __parseBoolean(output[_RLC]); } - if (output["AllowUsersToChangePassword"] !== undefined) { - contents.AllowUsersToChangePassword = __parseBoolean(output["AllowUsersToChangePassword"]); + if (output[_AUTCP] != null) { + contents[_AUTCP] = __parseBoolean(output[_AUTCP]); } - if (output["ExpirePasswords"] !== undefined) { - contents.ExpirePasswords = __parseBoolean(output["ExpirePasswords"]); + if (output[_EPx] != null) { + contents[_EPx] = __parseBoolean(output[_EPx]); } - if (output["MaxPasswordAge"] !== undefined) { - contents.MaxPasswordAge = __strictParseInt32(output["MaxPasswordAge"]) as number; + if (output[_MPA] != null) { + contents[_MPA] = __strictParseInt32(output[_MPA]) as number; } - if (output["PasswordReusePrevention"] !== undefined) { - contents.PasswordReusePrevention = __strictParseInt32(output["PasswordReusePrevention"]) as number; + if (output[_PRPa] != null) { + contents[_PRPa] = __strictParseInt32(output[_PRPa]) as number; } - if (output["HardExpiry"] !== undefined) { - contents.HardExpiry = __parseBoolean(output["HardExpiry"]); + if (output[_HE] != null) { + contents[_HE] = __parseBoolean(output[_HE]); } return contents; }; @@ -17421,8 +17310,8 @@ const de_PasswordPolicyViolationException = ( context: __SerdeContext ): PasswordPolicyViolationException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17435,8 +17324,8 @@ const de_PermissionsBoundaryDecisionDetail = ( context: __SerdeContext ): PermissionsBoundaryDecisionDetail => { const contents: any = {}; - if (output["AllowedByPermissionsBoundary"] !== undefined) { - contents.AllowedByPermissionsBoundary = __parseBoolean(output["AllowedByPermissionsBoundary"]); + if (output[_ABPB] != null) { + contents[_ABPB] = __parseBoolean(output[_ABPB]); } return contents; }; @@ -17446,43 +17335,43 @@ const de_PermissionsBoundaryDecisionDetail = ( */ const de_Policy = (output: any, context: __SerdeContext): Policy => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyId"] !== undefined) { - contents.PolicyId = __expectString(output["PolicyId"]); + if (output[_PI] != null) { + contents[_PI] = __expectString(output[_PI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["DefaultVersionId"] !== undefined) { - contents.DefaultVersionId = __expectString(output["DefaultVersionId"]); + if (output[_DVI] != null) { + contents[_DVI] = __expectString(output[_DVI]); } - if (output["AttachmentCount"] !== undefined) { - contents.AttachmentCount = __strictParseInt32(output["AttachmentCount"]) as number; + if (output[_ACt] != null) { + contents[_ACt] = __strictParseInt32(output[_ACt]) as number; } - if (output["PermissionsBoundaryUsageCount"] !== undefined) { - contents.PermissionsBoundaryUsageCount = __strictParseInt32(output["PermissionsBoundaryUsageCount"]) as number; + if (output[_PBUC] != null) { + contents[_PBUC] = __strictParseInt32(output[_PBUC]) as number; } - if (output["IsAttachable"] !== undefined) { - contents.IsAttachable = __parseBoolean(output["IsAttachable"]); + if (output[_IA] != null) { + contents[_IA] = __parseBoolean(output[_IA]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["UpdateDate"] !== undefined) { - contents.UpdateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdateDate"])); + if (output[_UD] != null) { + contents[_UD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UD])); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -17492,11 +17381,11 @@ const de_Policy = (output: any, context: __SerdeContext): Policy => { */ const de_PolicyDetail = (output: any, context: __SerdeContext): PolicyDetail => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyDocument"] !== undefined) { - contents.PolicyDocument = __expectString(output["PolicyDocument"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } return contents; }; @@ -17528,8 +17417,8 @@ const de_policyDocumentVersionListType = (output: any, context: __SerdeContext): */ const de_PolicyEvaluationException = (output: any, context: __SerdeContext): PolicyEvaluationException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17539,20 +17428,20 @@ const de_PolicyEvaluationException = (output: any, context: __SerdeContext): Pol */ const de_PolicyGrantingServiceAccess = (output: any, context: __SerdeContext): PolicyGrantingServiceAccess => { const contents: any = {}; - if (output["PolicyName"] !== undefined) { - contents.PolicyName = __expectString(output["PolicyName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["PolicyType"] !== undefined) { - contents.PolicyType = __expectString(output["PolicyType"]); + if (output[_PT] != null) { + contents[_PT] = __expectString(output[_PT]); } - if (output["PolicyArn"] !== undefined) { - contents.PolicyArn = __expectString(output["PolicyArn"]); + if (output[_PA] != null) { + contents[_PA] = __expectString(output[_PA]); } - if (output["EntityType"] !== undefined) { - contents.EntityType = __expectString(output["EntityType"]); + if (output[_ET] != null) { + contents[_ET] = __expectString(output[_ET]); } - if (output["EntityName"] !== undefined) { - contents.EntityName = __expectString(output["EntityName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } return contents; }; @@ -17576,11 +17465,11 @@ const de_policyGrantingServiceAccessListType = ( */ const de_PolicyGroup = (output: any, context: __SerdeContext): PolicyGroup => { const contents: any = {}; - if (output["GroupName"] !== undefined) { - contents.GroupName = __expectString(output["GroupName"]); + if (output[_GN] != null) { + contents[_GN] = __expectString(output[_GN]); } - if (output["GroupId"] !== undefined) { - contents.GroupId = __expectString(output["GroupId"]); + if (output[_GI] != null) { + contents[_GI] = __expectString(output[_GI]); } return contents; }; @@ -17623,8 +17512,8 @@ const de_policyNameListType = (output: any, context: __SerdeContext): string[] = */ const de_PolicyNotAttachableException = (output: any, context: __SerdeContext): PolicyNotAttachableException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17634,11 +17523,11 @@ const de_PolicyNotAttachableException = (output: any, context: __SerdeContext): */ const de_PolicyRole = (output: any, context: __SerdeContext): PolicyRole => { const contents: any = {}; - if (output["RoleName"] !== undefined) { - contents.RoleName = __expectString(output["RoleName"]); + if (output[_RN] != null) { + contents[_RN] = __expectString(output[_RN]); } - if (output["RoleId"] !== undefined) { - contents.RoleId = __expectString(output["RoleId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } return contents; }; @@ -17659,11 +17548,11 @@ const de_PolicyRoleListType = (output: any, context: __SerdeContext): PolicyRole */ const de_PolicyUser = (output: any, context: __SerdeContext): PolicyUser => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["UserId"] !== undefined) { - contents.UserId = __expectString(output["UserId"]); + if (output[_UI] != null) { + contents[_UI] = __expectString(output[_UI]); } return contents; }; @@ -17684,17 +17573,17 @@ const de_PolicyUserListType = (output: any, context: __SerdeContext): PolicyUser */ const de_PolicyVersion = (output: any, context: __SerdeContext): PolicyVersion => { const contents: any = {}; - if (output["Document"] !== undefined) { - contents.Document = __expectString(output["Document"]); + if (output[_Do] != null) { + contents[_Do] = __expectString(output[_Do]); } - if (output["VersionId"] !== undefined) { - contents.VersionId = __expectString(output["VersionId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["IsDefaultVersion"] !== undefined) { - contents.IsDefaultVersion = __parseBoolean(output["IsDefaultVersion"]); + if (output[_IDV] != null) { + contents[_IDV] = __parseBoolean(output[_IDV]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } return contents; }; @@ -17704,11 +17593,11 @@ const de_PolicyVersion = (output: any, context: __SerdeContext): PolicyVersion = */ const de_Position = (output: any, context: __SerdeContext): Position => { const contents: any = {}; - if (output["Line"] !== undefined) { - contents.Line = __strictParseInt32(output["Line"]) as number; + if (output[_L] != null) { + contents[_L] = __strictParseInt32(output[_L]) as number; } - if (output["Column"] !== undefined) { - contents.Column = __strictParseInt32(output["Column"]) as number; + if (output[_Col] != null) { + contents[_Col] = __strictParseInt32(output[_Col]) as number; } return contents; }; @@ -17721,8 +17610,8 @@ const de_ReportGenerationLimitExceededException = ( context: __SerdeContext ): ReportGenerationLimitExceededException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17735,8 +17624,8 @@ const de_ResetServiceSpecificCredentialResponse = ( context: __SerdeContext ): ResetServiceSpecificCredentialResponse => { const contents: any = {}; - if (output["ServiceSpecificCredential"] !== undefined) { - contents.ServiceSpecificCredential = de_ServiceSpecificCredential(output["ServiceSpecificCredential"], context); + if (output[_SSC] != null) { + contents[_SSC] = de_ServiceSpecificCredential(output[_SSC], context); } return contents; }; @@ -17746,41 +17635,29 @@ const de_ResetServiceSpecificCredentialResponse = ( */ const de_ResourceSpecificResult = (output: any, context: __SerdeContext): ResourceSpecificResult => { const contents: any = {}; - if (output["EvalResourceName"] !== undefined) { - contents.EvalResourceName = __expectString(output["EvalResourceName"]); + if (output[_ERN] != null) { + contents[_ERN] = __expectString(output[_ERN]); } - if (output["EvalResourceDecision"] !== undefined) { - contents.EvalResourceDecision = __expectString(output["EvalResourceDecision"]); + if (output[_ERD] != null) { + contents[_ERD] = __expectString(output[_ERD]); } if (output.MatchedStatements === "") { - contents.MatchedStatements = []; - } else if (output["MatchedStatements"] !== undefined && output["MatchedStatements"]["member"] !== undefined) { - contents.MatchedStatements = de_StatementListType( - __getArrayIfSingleItem(output["MatchedStatements"]["member"]), - context - ); + contents[_MS] = []; + } else if (output[_MS] != null && output[_MS][_me] != null) { + contents[_MS] = de_StatementListType(__getArrayIfSingleItem(output[_MS][_me]), context); } if (output.MissingContextValues === "") { - contents.MissingContextValues = []; - } else if (output["MissingContextValues"] !== undefined && output["MissingContextValues"]["member"] !== undefined) { - contents.MissingContextValues = de_ContextKeyNamesResultListType( - __getArrayIfSingleItem(output["MissingContextValues"]["member"]), - context - ); + contents[_MCV] = []; + } else if (output[_MCV] != null && output[_MCV][_me] != null) { + contents[_MCV] = de_ContextKeyNamesResultListType(__getArrayIfSingleItem(output[_MCV][_me]), context); } if (output.EvalDecisionDetails === "") { - contents.EvalDecisionDetails = {}; - } else if (output["EvalDecisionDetails"] !== undefined && output["EvalDecisionDetails"]["entry"] !== undefined) { - contents.EvalDecisionDetails = de_EvalDecisionDetailsType( - __getArrayIfSingleItem(output["EvalDecisionDetails"]["entry"]), - context - ); + contents[_EDD] = {}; + } else if (output[_EDD] != null && output[_EDD][_e] != null) { + contents[_EDD] = de_EvalDecisionDetailsType(__getArrayIfSingleItem(output[_EDD][_e]), context); } - if (output["PermissionsBoundaryDecisionDetail"] !== undefined) { - contents.PermissionsBoundaryDecisionDetail = de_PermissionsBoundaryDecisionDetail( - output["PermissionsBoundaryDecisionDetail"], - context - ); + if (output[_PBDD] != null) { + contents[_PBDD] = de_PermissionsBoundaryDecisionDetail(output[_PBDD], context); } return contents; }; @@ -17801,40 +17678,40 @@ const de_ResourceSpecificResultListType = (output: any, context: __SerdeContext) */ const de_Role = (output: any, context: __SerdeContext): Role => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["RoleName"] !== undefined) { - contents.RoleName = __expectString(output["RoleName"]); + if (output[_RN] != null) { + contents[_RN] = __expectString(output[_RN]); } - if (output["RoleId"] !== undefined) { - contents.RoleId = __expectString(output["RoleId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["AssumeRolePolicyDocument"] !== undefined) { - contents.AssumeRolePolicyDocument = __expectString(output["AssumeRolePolicyDocument"]); + if (output[_ARPD] != null) { + contents[_ARPD] = __expectString(output[_ARPD]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["MaxSessionDuration"] !== undefined) { - contents.MaxSessionDuration = __strictParseInt32(output["MaxSessionDuration"]) as number; + if (output[_MSD] != null) { + contents[_MSD] = __strictParseInt32(output[_MSD]) as number; } - if (output["PermissionsBoundary"] !== undefined) { - contents.PermissionsBoundary = de_AttachedPermissionsBoundary(output["PermissionsBoundary"], context); + if (output[_PB] != null) { + contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["RoleLastUsed"] !== undefined) { - contents.RoleLastUsed = de_RoleLastUsed(output["RoleLastUsed"], context); + if (output[_RLU] != null) { + contents[_RLU] = de_RoleLastUsed(output[_RLU], context); } return contents; }; @@ -17844,61 +17721,49 @@ const de_Role = (output: any, context: __SerdeContext): Role => { */ const de_RoleDetail = (output: any, context: __SerdeContext): RoleDetail => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["RoleName"] !== undefined) { - contents.RoleName = __expectString(output["RoleName"]); + if (output[_RN] != null) { + contents[_RN] = __expectString(output[_RN]); } - if (output["RoleId"] !== undefined) { - contents.RoleId = __expectString(output["RoleId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["AssumeRolePolicyDocument"] !== undefined) { - contents.AssumeRolePolicyDocument = __expectString(output["AssumeRolePolicyDocument"]); + if (output[_ARPD] != null) { + contents[_ARPD] = __expectString(output[_ARPD]); } if (output.InstanceProfileList === "") { - contents.InstanceProfileList = []; - } else if (output["InstanceProfileList"] !== undefined && output["InstanceProfileList"]["member"] !== undefined) { - contents.InstanceProfileList = de_instanceProfileListType( - __getArrayIfSingleItem(output["InstanceProfileList"]["member"]), - context - ); + contents[_IPL] = []; + } else if (output[_IPL] != null && output[_IPL][_me] != null) { + contents[_IPL] = de_instanceProfileListType(__getArrayIfSingleItem(output[_IPL][_me]), context); } if (output.RolePolicyList === "") { - contents.RolePolicyList = []; - } else if (output["RolePolicyList"] !== undefined && output["RolePolicyList"]["member"] !== undefined) { - contents.RolePolicyList = de_policyDetailListType( - __getArrayIfSingleItem(output["RolePolicyList"]["member"]), - context - ); + contents[_RPL] = []; + } else if (output[_RPL] != null && output[_RPL][_me] != null) { + contents[_RPL] = de_policyDetailListType(__getArrayIfSingleItem(output[_RPL][_me]), context); } if (output.AttachedManagedPolicies === "") { - contents.AttachedManagedPolicies = []; - } else if ( - output["AttachedManagedPolicies"] !== undefined && - output["AttachedManagedPolicies"]["member"] !== undefined - ) { - contents.AttachedManagedPolicies = de_attachedPoliciesListType( - __getArrayIfSingleItem(output["AttachedManagedPolicies"]["member"]), - context - ); + contents[_AMP] = []; + } else if (output[_AMP] != null && output[_AMP][_me] != null) { + contents[_AMP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AMP][_me]), context); } - if (output["PermissionsBoundary"] !== undefined) { - contents.PermissionsBoundary = de_AttachedPermissionsBoundary(output["PermissionsBoundary"], context); + if (output[_PB] != null) { + contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output["RoleLastUsed"] !== undefined) { - contents.RoleLastUsed = de_RoleLastUsed(output["RoleLastUsed"], context); + if (output[_RLU] != null) { + contents[_RLU] = de_RoleLastUsed(output[_RLU], context); } return contents; }; @@ -17919,11 +17784,11 @@ const de_roleDetailListType = (output: any, context: __SerdeContext): RoleDetail */ const de_RoleLastUsed = (output: any, context: __SerdeContext): RoleLastUsed => { const contents: any = {}; - if (output["LastUsedDate"] !== undefined) { - contents.LastUsedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastUsedDate"])); + if (output[_LUD] != null) { + contents[_LUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LUD])); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } return contents; }; @@ -17955,13 +17820,13 @@ const de_RoleUsageListType = (output: any, context: __SerdeContext): RoleUsageTy */ const de_RoleUsageType = (output: any, context: __SerdeContext): RoleUsageType => { const contents: any = {}; - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } if (output.Resources === "") { - contents.Resources = []; - } else if (output["Resources"] !== undefined && output["Resources"]["member"] !== undefined) { - contents.Resources = de_ArnListType(__getArrayIfSingleItem(output["Resources"]["member"]), context); + contents[_Res] = []; + } else if (output[_Res] != null && output[_Res][_me] != null) { + contents[_Res] = de_ArnListType(__getArrayIfSingleItem(output[_Res][_me]), context); } return contents; }; @@ -17971,14 +17836,14 @@ const de_RoleUsageType = (output: any, context: __SerdeContext): RoleUsageType = */ const de_SAMLProviderListEntry = (output: any, context: __SerdeContext): SAMLProviderListEntry => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["ValidUntil"] !== undefined) { - contents.ValidUntil = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidUntil"])); + if (output[_VU] != null) { + contents[_VU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VU])); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } return contents; }; @@ -17999,19 +17864,19 @@ const de_SAMLProviderListType = (output: any, context: __SerdeContext): SAMLProv */ const de_ServerCertificate = (output: any, context: __SerdeContext): ServerCertificate => { const contents: any = {}; - if (output["ServerCertificateMetadata"] !== undefined) { - contents.ServerCertificateMetadata = de_ServerCertificateMetadata(output["ServerCertificateMetadata"], context); + if (output[_SCM] != null) { + contents[_SCM] = de_ServerCertificateMetadata(output[_SCM], context); } - if (output["CertificateBody"] !== undefined) { - contents.CertificateBody = __expectString(output["CertificateBody"]); + if (output[_CB] != null) { + contents[_CB] = __expectString(output[_CB]); } - if (output["CertificateChain"] !== undefined) { - contents.CertificateChain = __expectString(output["CertificateChain"]); + if (output[_CC] != null) { + contents[_CC] = __expectString(output[_CC]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -18021,23 +17886,23 @@ const de_ServerCertificate = (output: any, context: __SerdeContext): ServerCerti */ const de_ServerCertificateMetadata = (output: any, context: __SerdeContext): ServerCertificateMetadata => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["ServerCertificateName"] !== undefined) { - contents.ServerCertificateName = __expectString(output["ServerCertificateName"]); + if (output[_SCN] != null) { + contents[_SCN] = __expectString(output[_SCN]); } - if (output["ServerCertificateId"] !== undefined) { - contents.ServerCertificateId = __expectString(output["ServerCertificateId"]); + if (output[_SCI] != null) { + contents[_SCI] = __expectString(output[_SCI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["UploadDate"] !== undefined) { - contents.UploadDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UploadDate"])); + if (output[_UDp] != null) { + contents[_UDp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UDp])); } - if (output["Expiration"] !== undefined) { - contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"])); + if (output[_Ex] != null) { + contents[_Ex] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ex])); } return contents; }; @@ -18058,8 +17923,8 @@ const de_serverCertificateMetadataListType = (output: any, context: __SerdeConte */ const de_ServiceFailureException = (output: any, context: __SerdeContext): ServiceFailureException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18069,34 +17934,28 @@ const de_ServiceFailureException = (output: any, context: __SerdeContext): Servi */ const de_ServiceLastAccessed = (output: any, context: __SerdeContext): ServiceLastAccessed => { const contents: any = {}; - if (output["ServiceName"] !== undefined) { - contents.ServiceName = __expectString(output["ServiceName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["LastAuthenticated"] !== undefined) { - contents.LastAuthenticated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastAuthenticated"])); + if (output[_LA] != null) { + contents[_LA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LA])); } - if (output["ServiceNamespace"] !== undefined) { - contents.ServiceNamespace = __expectString(output["ServiceNamespace"]); + if (output[_SNer] != null) { + contents[_SNer] = __expectString(output[_SNer]); } - if (output["LastAuthenticatedEntity"] !== undefined) { - contents.LastAuthenticatedEntity = __expectString(output["LastAuthenticatedEntity"]); + if (output[_LAE] != null) { + contents[_LAE] = __expectString(output[_LAE]); } - if (output["LastAuthenticatedRegion"] !== undefined) { - contents.LastAuthenticatedRegion = __expectString(output["LastAuthenticatedRegion"]); + if (output[_LAR] != null) { + contents[_LAR] = __expectString(output[_LAR]); } - if (output["TotalAuthenticatedEntities"] !== undefined) { - contents.TotalAuthenticatedEntities = __strictParseInt32(output["TotalAuthenticatedEntities"]) as number; + if (output[_TAE] != null) { + contents[_TAE] = __strictParseInt32(output[_TAE]) as number; } if (output.TrackedActionsLastAccessed === "") { - contents.TrackedActionsLastAccessed = []; - } else if ( - output["TrackedActionsLastAccessed"] !== undefined && - output["TrackedActionsLastAccessed"]["member"] !== undefined - ) { - contents.TrackedActionsLastAccessed = de_TrackedActionsLastAccessed( - __getArrayIfSingleItem(output["TrackedActionsLastAccessed"]["member"]), - context - ); + contents[_TALA] = []; + } else if (output[_TALA] != null && output[_TALA][_me] != null) { + contents[_TALA] = de_TrackedActionsLastAccessed(__getArrayIfSingleItem(output[_TALA][_me]), context); } return contents; }; @@ -18106,8 +17965,8 @@ const de_ServiceLastAccessed = (output: any, context: __SerdeContext): ServiceLa */ const de_ServiceNotSupportedException = (output: any, context: __SerdeContext): ServiceNotSupportedException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18128,26 +17987,26 @@ const de_ServicesLastAccessed = (output: any, context: __SerdeContext): ServiceL */ const de_ServiceSpecificCredential = (output: any, context: __SerdeContext): ServiceSpecificCredential => { const contents: any = {}; - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["ServiceName"] !== undefined) { - contents.ServiceName = __expectString(output["ServiceName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } - if (output["ServiceUserName"] !== undefined) { - contents.ServiceUserName = __expectString(output["ServiceUserName"]); + if (output[_SUN] != null) { + contents[_SUN] = __expectString(output[_SUN]); } - if (output["ServicePassword"] !== undefined) { - contents.ServicePassword = __expectString(output["ServicePassword"]); + if (output[_SP] != null) { + contents[_SP] = __expectString(output[_SP]); } - if (output["ServiceSpecificCredentialId"] !== undefined) { - contents.ServiceSpecificCredentialId = __expectString(output["ServiceSpecificCredentialId"]); + if (output[_SSCI] != null) { + contents[_SSCI] = __expectString(output[_SSCI]); } - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -18160,23 +18019,23 @@ const de_ServiceSpecificCredentialMetadata = ( context: __SerdeContext ): ServiceSpecificCredentialMetadata => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["ServiceUserName"] !== undefined) { - contents.ServiceUserName = __expectString(output["ServiceUserName"]); + if (output[_SUN] != null) { + contents[_SUN] = __expectString(output[_SUN]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["ServiceSpecificCredentialId"] !== undefined) { - contents.ServiceSpecificCredentialId = __expectString(output["ServiceSpecificCredentialId"]); + if (output[_SSCI] != null) { + contents[_SSCI] = __expectString(output[_SSCI]); } - if (output["ServiceName"] !== undefined) { - contents.ServiceName = __expectString(output["ServiceName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } return contents; }; @@ -18200,20 +18059,20 @@ const de_ServiceSpecificCredentialsListType = ( */ const de_SigningCertificate = (output: any, context: __SerdeContext): SigningCertificate => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["CertificateId"] !== undefined) { - contents.CertificateId = __expectString(output["CertificateId"]); + if (output[_CI] != null) { + contents[_CI] = __expectString(output[_CI]); } - if (output["CertificateBody"] !== undefined) { - contents.CertificateBody = __expectString(output["CertificateBody"]); + if (output[_CB] != null) { + contents[_CB] = __expectString(output[_CB]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["UploadDate"] !== undefined) { - contents.UploadDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UploadDate"])); + if (output[_UDp] != null) { + contents[_UDp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UDp])); } return contents; }; @@ -18224,18 +18083,15 @@ const de_SigningCertificate = (output: any, context: __SerdeContext): SigningCer const de_SimulatePolicyResponse = (output: any, context: __SerdeContext): SimulatePolicyResponse => { const contents: any = {}; if (output.EvaluationResults === "") { - contents.EvaluationResults = []; - } else if (output["EvaluationResults"] !== undefined && output["EvaluationResults"]["member"] !== undefined) { - contents.EvaluationResults = de_EvaluationResultsListType( - __getArrayIfSingleItem(output["EvaluationResults"]["member"]), - context - ); + contents[_ER] = []; + } else if (output[_ER] != null && output[_ER][_me] != null) { + contents[_ER] = de_EvaluationResultsListType(__getArrayIfSingleItem(output[_ER][_me]), context); } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18245,23 +18101,23 @@ const de_SimulatePolicyResponse = (output: any, context: __SerdeContext): Simula */ const de_SSHPublicKey = (output: any, context: __SerdeContext): SSHPublicKey => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["SSHPublicKeyId"] !== undefined) { - contents.SSHPublicKeyId = __expectString(output["SSHPublicKeyId"]); + if (output[_SSHPKI] != null) { + contents[_SSHPKI] = __expectString(output[_SSHPKI]); } - if (output["Fingerprint"] !== undefined) { - contents.Fingerprint = __expectString(output["Fingerprint"]); + if (output[_Fi] != null) { + contents[_Fi] = __expectString(output[_Fi]); } - if (output["SSHPublicKeyBody"] !== undefined) { - contents.SSHPublicKeyBody = __expectString(output["SSHPublicKeyBody"]); + if (output[_SSHPKB] != null) { + contents[_SSHPKB] = __expectString(output[_SSHPKB]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["UploadDate"] !== undefined) { - contents.UploadDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UploadDate"])); + if (output[_UDp] != null) { + contents[_UDp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UDp])); } return contents; }; @@ -18282,17 +18138,17 @@ const de_SSHPublicKeyListType = (output: any, context: __SerdeContext): SSHPubli */ const de_SSHPublicKeyMetadata = (output: any, context: __SerdeContext): SSHPublicKeyMetadata => { const contents: any = {}; - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["SSHPublicKeyId"] !== undefined) { - contents.SSHPublicKeyId = __expectString(output["SSHPublicKeyId"]); + if (output[_SSHPKI] != null) { + contents[_SSHPKI] = __expectString(output[_SSHPKI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["UploadDate"] !== undefined) { - contents.UploadDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UploadDate"])); + if (output[_UDp] != null) { + contents[_UDp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UDp])); } return contents; }; @@ -18302,17 +18158,17 @@ const de_SSHPublicKeyMetadata = (output: any, context: __SerdeContext): SSHPubli */ const de_Statement = (output: any, context: __SerdeContext): Statement => { const contents: any = {}; - if (output["SourcePolicyId"] !== undefined) { - contents.SourcePolicyId = __expectString(output["SourcePolicyId"]); + if (output[_SPI] != null) { + contents[_SPI] = __expectString(output[_SPI]); } - if (output["SourcePolicyType"] !== undefined) { - contents.SourcePolicyType = __expectString(output["SourcePolicyType"]); + if (output[_SPT] != null) { + contents[_SPT] = __expectString(output[_SPT]); } - if (output["StartPosition"] !== undefined) { - contents.StartPosition = de_Position(output["StartPosition"], context); + if (output[_SPt] != null) { + contents[_SPt] = de_Position(output[_SPt], context); } - if (output["EndPosition"] !== undefined) { - contents.EndPosition = de_Position(output["EndPosition"], context); + if (output[_EPn] != null) { + contents[_EPn] = de_Position(output[_EPn], context); } return contents; }; @@ -18346,11 +18202,11 @@ const de_summaryMapType = (output: any, context: __SerdeContext): Partial { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -18382,17 +18238,17 @@ const de_thumbprintListType = (output: any, context: __SerdeContext): string[] = */ const de_TrackedActionLastAccessed = (output: any, context: __SerdeContext): TrackedActionLastAccessed => { const contents: any = {}; - if (output["ActionName"] !== undefined) { - contents.ActionName = __expectString(output["ActionName"]); + if (output[_ANc] != null) { + contents[_ANc] = __expectString(output[_ANc]); } - if (output["LastAccessedEntity"] !== undefined) { - contents.LastAccessedEntity = __expectString(output["LastAccessedEntity"]); + if (output[_LAEa] != null) { + contents[_LAEa] = __expectString(output[_LAEa]); } - if (output["LastAccessedTime"] !== undefined) { - contents.LastAccessedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastAccessedTime"])); + if (output[_LATa] != null) { + contents[_LATa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LATa])); } - if (output["LastAccessedRegion"] !== undefined) { - contents.LastAccessedRegion = __expectString(output["LastAccessedRegion"]); + if (output[_LARa] != null) { + contents[_LARa] = __expectString(output[_LARa]); } return contents; }; @@ -18413,8 +18269,8 @@ const de_TrackedActionsLastAccessed = (output: any, context: __SerdeContext): Tr */ const de_UnmodifiableEntityException = (output: any, context: __SerdeContext): UnmodifiableEntityException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18427,8 +18283,8 @@ const de_UnrecognizedPublicKeyEncodingException = ( context: __SerdeContext ): UnrecognizedPublicKeyEncodingException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18438,8 +18294,8 @@ const de_UnrecognizedPublicKeyEncodingException = ( */ const de_UpdateRoleDescriptionResponse = (output: any, context: __SerdeContext): UpdateRoleDescriptionResponse => { const contents: any = {}; - if (output["Role"] !== undefined) { - contents.Role = de_Role(output["Role"], context); + if (output[_Ro] != null) { + contents[_Ro] = de_Role(output[_Ro], context); } return contents; }; @@ -18457,8 +18313,8 @@ const de_UpdateRoleResponse = (output: any, context: __SerdeContext): UpdateRole */ const de_UpdateSAMLProviderResponse = (output: any, context: __SerdeContext): UpdateSAMLProviderResponse => { const contents: any = {}; - if (output["SAMLProviderArn"] !== undefined) { - contents.SAMLProviderArn = __expectString(output["SAMLProviderArn"]); + if (output[_SAMLPA] != null) { + contents[_SAMLPA] = __expectString(output[_SAMLPA]); } return contents; }; @@ -18468,13 +18324,13 @@ const de_UpdateSAMLProviderResponse = (output: any, context: __SerdeContext): Up */ const de_UploadServerCertificateResponse = (output: any, context: __SerdeContext): UploadServerCertificateResponse => { const contents: any = {}; - if (output["ServerCertificateMetadata"] !== undefined) { - contents.ServerCertificateMetadata = de_ServerCertificateMetadata(output["ServerCertificateMetadata"], context); + if (output[_SCM] != null) { + contents[_SCM] = de_ServerCertificateMetadata(output[_SCM], context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -18487,8 +18343,8 @@ const de_UploadSigningCertificateResponse = ( context: __SerdeContext ): UploadSigningCertificateResponse => { const contents: any = {}; - if (output["Certificate"] !== undefined) { - contents.Certificate = de_SigningCertificate(output["Certificate"], context); + if (output[_Cert] != null) { + contents[_Cert] = de_SigningCertificate(output[_Cert], context); } return contents; }; @@ -18498,8 +18354,8 @@ const de_UploadSigningCertificateResponse = ( */ const de_UploadSSHPublicKeyResponse = (output: any, context: __SerdeContext): UploadSSHPublicKeyResponse => { const contents: any = {}; - if (output["SSHPublicKey"] !== undefined) { - contents.SSHPublicKey = de_SSHPublicKey(output["SSHPublicKey"], context); + if (output[_SSHPK] != null) { + contents[_SSHPK] = de_SSHPublicKey(output[_SSHPK], context); } return contents; }; @@ -18509,31 +18365,31 @@ const de_UploadSSHPublicKeyResponse = (output: any, context: __SerdeContext): Up */ const de_User = (output: any, context: __SerdeContext): User => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["UserId"] !== undefined) { - contents.UserId = __expectString(output["UserId"]); + if (output[_UI] != null) { + contents[_UI] = __expectString(output[_UI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["PasswordLastUsed"] !== undefined) { - contents.PasswordLastUsed = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["PasswordLastUsed"])); + if (output[_PLU] != null) { + contents[_PLU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_PLU])); } - if (output["PermissionsBoundary"] !== undefined) { - contents.PermissionsBoundary = de_AttachedPermissionsBoundary(output["PermissionsBoundary"], context); + if (output[_PB] != null) { + contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -18543,52 +18399,43 @@ const de_User = (output: any, context: __SerdeContext): User => { */ const de_UserDetail = (output: any, context: __SerdeContext): UserDetail => { const contents: any = {}; - if (output["Path"] !== undefined) { - contents.Path = __expectString(output["Path"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["UserId"] !== undefined) { - contents.UserId = __expectString(output["UserId"]); + if (output[_UI] != null) { + contents[_UI] = __expectString(output[_UI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["CreateDate"] !== undefined) { - contents.CreateDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } if (output.UserPolicyList === "") { - contents.UserPolicyList = []; - } else if (output["UserPolicyList"] !== undefined && output["UserPolicyList"]["member"] !== undefined) { - contents.UserPolicyList = de_policyDetailListType( - __getArrayIfSingleItem(output["UserPolicyList"]["member"]), - context - ); + contents[_UPL] = []; + } else if (output[_UPL] != null && output[_UPL][_me] != null) { + contents[_UPL] = de_policyDetailListType(__getArrayIfSingleItem(output[_UPL][_me]), context); } if (output.GroupList === "") { - contents.GroupList = []; - } else if (output["GroupList"] !== undefined && output["GroupList"]["member"] !== undefined) { - contents.GroupList = de_groupNameListType(__getArrayIfSingleItem(output["GroupList"]["member"]), context); + contents[_GL] = []; + } else if (output[_GL] != null && output[_GL][_me] != null) { + contents[_GL] = de_groupNameListType(__getArrayIfSingleItem(output[_GL][_me]), context); } if (output.AttachedManagedPolicies === "") { - contents.AttachedManagedPolicies = []; - } else if ( - output["AttachedManagedPolicies"] !== undefined && - output["AttachedManagedPolicies"]["member"] !== undefined - ) { - contents.AttachedManagedPolicies = de_attachedPoliciesListType( - __getArrayIfSingleItem(output["AttachedManagedPolicies"]["member"]), - context - ); + contents[_AMP] = []; + } else if (output[_AMP] != null && output[_AMP][_me] != null) { + contents[_AMP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AMP][_me]), context); } - if (output["PermissionsBoundary"] !== undefined) { - contents.PermissionsBoundary = de_AttachedPermissionsBoundary(output["PermissionsBoundary"], context); + if (output[_PB] != null) { + contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -18620,25 +18467,25 @@ const de_userListType = (output: any, context: __SerdeContext): User[] => { */ const de_VirtualMFADevice = (output: any, context: __SerdeContext): VirtualMFADevice => { const contents: any = {}; - if (output["SerialNumber"] !== undefined) { - contents.SerialNumber = __expectString(output["SerialNumber"]); + if (output[_SNe] != null) { + contents[_SNe] = __expectString(output[_SNe]); } - if (output["Base32StringSeed"] !== undefined) { - contents.Base32StringSeed = context.base64Decoder(output["Base32StringSeed"]); + if (output[_BSS] != null) { + contents[_BSS] = context.base64Decoder(output[_BSS]); } - if (output["QRCodePNG"] !== undefined) { - contents.QRCodePNG = context.base64Decoder(output["QRCodePNG"]); + if (output[_QRCPNG] != null) { + contents[_QRCPNG] = context.base64Decoder(output[_QRCPNG]); } - if (output["User"] !== undefined) { - contents.User = de_User(output["User"], context); + if (output[_Us] != null) { + contents[_Us] = de_User(output[_Us], context); } - if (output["EnableDate"] !== undefined) { - contents.EnableDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EnableDate"])); + if (output[_EDn] != null) { + contents[_EDn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_EDn])); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_tagListType(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_me] != null) { + contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); } return contents; }; @@ -18695,6 +18542,404 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2010-05-08"; +const _A = "Action"; +const _AA = "AccountAlias"; +const _AAc = "AccountAliases"; +const _ABO = "AllowedByOrganizations"; +const _ABPB = "AllowedByPermissionsBoundary"; +const _AC = "AuthenticationCode1"; +const _ACIDTOIDCP = "AddClientIDToOpenIDConnectProvider"; +const _ACt = "AttachmentCount"; +const _ACu = "AuthenticationCode2"; +const _AD = "AccessDetails"; +const _AGP = "AttachGroupPolicy"; +const _AK = "AccessKey"; +const _AKI = "AccessKeyId"; +const _AKLU = "AccessKeyLastUsed"; +const _AKM = "AccessKeyMetadata"; +const _AMP = "AttachedManagedPolicies"; +const _AN = "ActionNames"; +const _ANc = "ActionName"; +const _AP = "AttachedPolicies"; +const _ARP = "AttachRolePolicy"; +const _ARPD = "AssumeRolePolicyDocument"; +const _ARTIP = "AddRoleToInstanceProfile"; +const _AS = "AssignmentStatus"; +const _AUP = "AttachUserPolicy"; +const _AUTCP = "AllowUsersToChangePassword"; +const _AUTG = "AddUserToGroup"; +const _AWSSN = "AWSServiceName"; +const _Ar = "Arn"; +const _BSS = "Base32StringSeed"; +const _C = "Code"; +const _CA = "CallerArn"; +const _CAA = "CreateAccountAlias"; +const _CAK = "CreateAccessKey"; +const _CB = "CertificateBody"; +const _CC = "CertificateChain"; +const _CD = "CreateDate"; +const _CE = "ContextEntries"; +const _CG = "CreateGroup"; +const _CI = "CertificateId"; +const _CID = "ClientID"; +const _CIDL = "ClientIDList"; +const _CIP = "CreateInstanceProfile"; +const _CKN = "ContextKeyName"; +const _CKNo = "ContextKeyNames"; +const _CKT = "ContextKeyType"; +const _CKV = "ContextKeyValues"; +const _CLP = "CreateLoginProfile"; +const _COIDCP = "CreateOpenIDConnectProvider"; +const _CP = "ChangePassword"; +const _CPV = "CreatePolicyVersion"; +const _CPr = "CreatePolicy"; +const _CR = "CreateRole"; +const _CS = "CustomSuffix"; +const _CSAMLP = "CreateSAMLProvider"; +const _CSLR = "CreateServiceLinkedRole"; +const _CSSC = "CreateServiceSpecificCredential"; +const _CU = "CreateUser"; +const _CVMFAD = "CreateVirtualMFADevice"; +const _Ce = "Certifications"; +const _Cer = "Certificates"; +const _Cert = "Certificate"; +const _Co = "Content"; +const _Col = "Column"; +const _D = "Description"; +const _DAA = "DeleteAccountAlias"; +const _DAK = "DeleteAccessKey"; +const _DAPP = "DeleteAccountPasswordPolicy"; +const _DG = "DeleteGroup"; +const _DGP = "DeleteGroupPolicy"; +const _DGPe = "DetachGroupPolicy"; +const _DIP = "DeleteInstanceProfile"; +const _DLP = "DeleteLoginProfile"; +const _DMFAD = "DeactivateMFADevice"; +const _DOIDCP = "DeleteOpenIDConnectProvider"; +const _DP = "DeletePolicy"; +const _DPV = "DeletePolicyVersion"; +const _DR = "DeleteRole"; +const _DRP = "DeleteRolePolicy"; +const _DRPB = "DeleteRolePermissionsBoundary"; +const _DRPe = "DetachRolePolicy"; +const _DSAMLP = "DeleteSAMLProvider"; +const _DSC = "DeleteServerCertificate"; +const _DSCe = "DeleteSigningCertificate"; +const _DSLR = "DeleteServiceLinkedRole"; +const _DSSC = "DeleteServiceSpecificCredential"; +const _DSSHPK = "DeleteSSHPublicKey"; +const _DTI = "DeletionTaskId"; +const _DU = "DeleteUser"; +const _DUP = "DeleteUserPolicy"; +const _DUPB = "DeleteUserPermissionsBoundary"; +const _DUPe = "DetachUserPolicy"; +const _DVI = "DefaultVersionId"; +const _DVMFAD = "DeleteVirtualMFADevice"; +const _Do = "Document"; +const _E = "Encoding"; +const _EAN = "EvalActionName"; +const _ED = "EvalDecision"; +const _EDD = "EvalDecisionDetails"; +const _EDL = "EntityDetailsList"; +const _EDn = "EnableDate"; +const _EDr = "ErrorDetails"; +const _EF = "EntityFilter"; +const _EI = "EntityInfo"; +const _EMFAD = "EnableMFADevice"; +const _EN = "EntityName"; +const _EP = "EntityPath"; +const _EPn = "EndPosition"; +const _EPx = "ExpirePasswords"; +const _ER = "EvaluationResults"; +const _ERD = "EvalResourceDecision"; +const _ERN = "EvalResourceName"; +const _ET = "EntityType"; +const _Er = "Error"; +const _Ex = "Expiration"; +const _F = "Filter"; +const _Fi = "Fingerprint"; +const _G = "Granularity"; +const _GAAD = "GetAccountAuthorizationDetails"; +const _GAKLU = "GetAccessKeyLastUsed"; +const _GAPP = "GetAccountPasswordPolicy"; +const _GAS = "GetAccountSummary"; +const _GCKFCP = "GetContextKeysForCustomPolicy"; +const _GCKFPP = "GetContextKeysForPrincipalPolicy"; +const _GCR = "GenerateCredentialReport"; +const _GCRe = "GetCredentialReport"; +const _GDL = "GroupDetailList"; +const _GETV = "GlobalEndpointTokenVersion"; +const _GG = "GetGroup"; +const _GGP = "GetGroupPolicy"; +const _GI = "GroupId"; +const _GIP = "GetInstanceProfile"; +const _GL = "GroupList"; +const _GLP = "GetLoginProfile"; +const _GMFAD = "GetMFADevice"; +const _GN = "GroupName"; +const _GOAR = "GenerateOrganizationsAccessReport"; +const _GOARe = "GetOrganizationsAccessReport"; +const _GOIDCP = "GetOpenIDConnectProvider"; +const _GP = "GetPolicy"; +const _GPL = "GroupPolicyList"; +const _GPV = "GetPolicyVersion"; +const _GR = "GetRole"; +const _GRP = "GetRolePolicy"; +const _GSAMLP = "GetSAMLProvider"; +const _GSC = "GetServerCertificate"; +const _GSLAD = "GenerateServiceLastAccessedDetails"; +const _GSLADWE = "GetServiceLastAccessedDetailsWithEntities"; +const _GSLADe = "GetServiceLastAccessedDetails"; +const _GSLRDS = "GetServiceLinkedRoleDeletionStatus"; +const _GSSHPK = "GetSSHPublicKey"; +const _GT = "GeneratedTime"; +const _GU = "GetUser"; +const _GUP = "GetUserPolicy"; +const _Gr = "Group"; +const _Gro = "Groups"; +const _HE = "HardExpiry"; +const _I = "Id"; +const _IA = "IsAttachable"; +const _IDV = "IsDefaultVersion"; +const _IP = "InstanceProfile"; +const _IPI = "InstanceProfileId"; +const _IPL = "InstanceProfileList"; +const _IPN = "InstanceProfileName"; +const _IPn = "InstanceProfiles"; +const _IT = "IsTruncated"; +const _JCD = "JobCreationDate"; +const _JCDo = "JobCompletionDate"; +const _JI = "JobId"; +const _JS = "JobStatus"; +const _JT = "JobType"; +const _K = "Key"; +const _L = "Line"; +const _LA = "LastAuthenticated"; +const _LAA = "ListAccountAliases"; +const _LAE = "LastAuthenticatedEntity"; +const _LAEa = "LastAccessedEntity"; +const _LAGP = "ListAttachedGroupPolicies"; +const _LAK = "ListAccessKeys"; +const _LAR = "LastAuthenticatedRegion"; +const _LARP = "ListAttachedRolePolicies"; +const _LARa = "LastAccessedRegion"; +const _LAT = "LastAuthenticatedTime"; +const _LATa = "LastAccessedTime"; +const _LAUP = "ListAttachedUserPolicies"; +const _LEFP = "ListEntitiesForPolicy"; +const _LG = "ListGroups"; +const _LGFU = "ListGroupsForUser"; +const _LGP = "ListGroupPolicies"; +const _LIP = "ListInstanceProfiles"; +const _LIPFR = "ListInstanceProfilesForRole"; +const _LIPT = "ListInstanceProfileTags"; +const _LMFAD = "ListMFADevices"; +const _LMFADT = "ListMFADeviceTags"; +const _LOIDCP = "ListOpenIDConnectProviders"; +const _LOIDCPT = "ListOpenIDConnectProviderTags"; +const _LP = "ListPolicies"; +const _LPGSA = "ListPoliciesGrantingServiceAccess"; +const _LPT = "ListPolicyTags"; +const _LPV = "ListPolicyVersions"; +const _LPo = "LoginProfile"; +const _LR = "ListRoles"; +const _LRP = "ListRolePolicies"; +const _LRT = "ListRoleTags"; +const _LSAMLP = "ListSAMLProviders"; +const _LSAMLPT = "ListSAMLProviderTags"; +const _LSC = "ListServerCertificates"; +const _LSCT = "ListServerCertificateTags"; +const _LSCi = "ListSigningCertificates"; +const _LSSC = "ListServiceSpecificCredentials"; +const _LSSHPK = "ListSSHPublicKeys"; +const _LU = "ListUsers"; +const _LUD = "LastUsedDate"; +const _LUP = "ListUserPolicies"; +const _LUT = "ListUserTags"; +const _LVMFAD = "ListVirtualMFADevices"; +const _M = "Marker"; +const _MCV = "MissingContextValues"; +const _MFAD = "MFADevices"; +const _MI = "MaxItems"; +const _MPA = "MaxPasswordAge"; +const _MPL = "MinimumPasswordLength"; +const _MS = "MatchedStatements"; +const _MSD = "MaxSessionDuration"; +const _Me = "Message"; +const _N = "Name"; +const _NGN = "NewGroupName"; +const _NOSA = "NumberOfServicesAccessible"; +const _NOSNA = "NumberOfServicesNotAccessed"; +const _NP = "NewPassword"; +const _NPe = "NewPath"; +const _NSCN = "NewServerCertificateName"; +const _NUN = "NewUserName"; +const _OA = "OnlyAttached"; +const _ODD = "OrganizationsDecisionDetail"; +const _OIDCPA = "OpenIDConnectProviderArn"; +const _OIDCPL = "OpenIDConnectProviderList"; +const _OP = "OldPassword"; +const _OPI = "OrganizationsPolicyId"; +const _P = "Path"; +const _PA = "PolicyArn"; +const _PB = "PermissionsBoundary"; +const _PBA = "PermissionsBoundaryArn"; +const _PBDD = "PermissionsBoundaryDecisionDetail"; +const _PBPIL = "PermissionsBoundaryPolicyInputList"; +const _PBT = "PermissionsBoundaryType"; +const _PBUC = "PermissionsBoundaryUsageCount"; +const _PD = "PolicyDocument"; +const _PG = "PolicyGroups"; +const _PGP = "PutGroupPolicy"; +const _PGSA = "PoliciesGrantingServiceAccess"; +const _PI = "PolicyId"; +const _PIL = "PolicyInputList"; +const _PK = "PrivateKey"; +const _PLU = "PasswordLastUsed"; +const _PN = "PolicyName"; +const _PNo = "PolicyNames"; +const _PP = "PathPrefix"; +const _PPa = "PasswordPolicy"; +const _PR = "PolicyRoles"; +const _PRP = "PutRolePolicy"; +const _PRPB = "PutRolePermissionsBoundary"; +const _PRPa = "PasswordReusePrevention"; +const _PRR = "PasswordResetRequired"; +const _PSA = "PolicySourceArn"; +const _PT = "PolicyType"; +const _PU = "PolicyUsers"; +const _PUF = "PolicyUsageFilter"; +const _PUP = "PutUserPolicy"; +const _PUPB = "PutUserPermissionsBoundary"; +const _PV = "PolicyVersion"; +const _PVL = "PolicyVersionList"; +const _Pa = "Password"; +const _Po = "Policy"; +const _Pol = "Policies"; +const _QRCPNG = "QRCodePNG"; +const _R = "Region"; +const _RA = "ResourceArns"; +const _RCIDFOIDCP = "RemoveClientIDFromOpenIDConnectProvider"; +const _RDL = "RoleDetailList"; +const _RF = "ReportFormat"; +const _RHO = "ResourceHandlingOption"; +const _RI = "RoleId"; +const _RLC = "RequireLowercaseCharacters"; +const _RLU = "RoleLastUsed"; +const _RMFAD = "ResyncMFADevice"; +const _RN = "RoleName"; +const _RNe = "RequireNumbers"; +const _RO = "ResourceOwner"; +const _RP = "ResourcePolicy"; +const _RPL = "RolePolicyList"; +const _RRFIP = "RemoveRoleFromInstanceProfile"; +const _RS = "RequireSymbols"; +const _RSR = "ResourceSpecificResults"; +const _RSSC = "ResetServiceSpecificCredential"; +const _RUC = "RequireUppercaseCharacters"; +const _RUFG = "RemoveUserFromGroup"; +const _RUL = "RoleUsageList"; +const _Re = "Reason"; +const _Res = "Resources"; +const _Ro = "Role"; +const _Rol = "Roles"; +const _S = "Scope"; +const _SAD = "SetAsDefault"; +const _SAK = "SecretAccessKey"; +const _SAMLMD = "SAMLMetadataDocument"; +const _SAMLPA = "SAMLProviderArn"; +const _SAMLPL = "SAMLProviderList"; +const _SC = "ServerCertificate"; +const _SCI = "ServerCertificateId"; +const _SCM = "ServerCertificateMetadata"; +const _SCML = "ServerCertificateMetadataList"; +const _SCN = "ServerCertificateName"; +const _SCP = "SimulateCustomPolicy"; +const _SDPV = "SetDefaultPolicyVersion"; +const _SK = "SortKey"; +const _SLA = "ServicesLastAccessed"; +const _SM = "SummaryMap"; +const _SN = "ServiceName"; +const _SNe = "SerialNumber"; +const _SNer = "ServiceNamespace"; +const _SNerv = "ServiceNamespaces"; +const _SP = "ServicePassword"; +const _SPI = "SourcePolicyId"; +const _SPP = "SimulatePrincipalPolicy"; +const _SPT = "SourcePolicyType"; +const _SPt = "StartPosition"; +const _SSC = "ServiceSpecificCredential"; +const _SSCI = "ServiceSpecificCredentialId"; +const _SSCe = "ServiceSpecificCredentials"; +const _SSHPK = "SSHPublicKey"; +const _SSHPKB = "SSHPublicKeyBody"; +const _SSHPKI = "SSHPublicKeyId"; +const _SSHPKu = "SSHPublicKeys"; +const _SSTSP = "SetSecurityTokenServicePreferences"; +const _SUN = "ServiceUserName"; +const _St = "Status"; +const _Sta = "State"; +const _T = "Tags"; +const _TAE = "TotalAuthenticatedEntities"; +const _TALA = "TrackedActionsLastAccessed"; +const _TIP = "TagInstanceProfile"; +const _TK = "TagKeys"; +const _TL = "ThumbprintList"; +const _TMFAD = "TagMFADevice"; +const _TOIDCP = "TagOpenIDConnectProvider"; +const _TP = "TagPolicy"; +const _TR = "TagRole"; +const _TSAMLP = "TagSAMLProvider"; +const _TSC = "TagServerCertificate"; +const _TU = "TagUser"; +const _Ty = "Type"; +const _U = "Url"; +const _UAK = "UpdateAccessKey"; +const _UAPP = "UpdateAccountPasswordPolicy"; +const _UARP = "UpdateAssumeRolePolicy"; +const _UD = "UpdateDate"; +const _UDL = "UserDetailList"; +const _UDp = "UploadDate"; +const _UG = "UpdateGroup"; +const _UI = "UserId"; +const _UIP = "UntagInstanceProfile"; +const _ULP = "UpdateLoginProfile"; +const _UMFAD = "UntagMFADevice"; +const _UN = "UserName"; +const _UOIDCP = "UntagOpenIDConnectProvider"; +const _UOIDCPT = "UpdateOpenIDConnectProviderThumbprint"; +const _UP = "UntagPolicy"; +const _UPL = "UserPolicyList"; +const _UR = "UntagRole"; +const _URD = "UpdateRoleDescription"; +const _URp = "UpdateRole"; +const _USAMLP = "UntagSAMLProvider"; +const _USAMLPp = "UpdateSAMLProvider"; +const _USC = "UntagServerCertificate"; +const _USCp = "UpdateServerCertificate"; +const _USCpd = "UpdateSigningCertificate"; +const _USCpl = "UploadServerCertificate"; +const _USCplo = "UploadSigningCertificate"; +const _USSC = "UpdateServiceSpecificCredential"; +const _USSHPK = "UpdateSSHPublicKey"; +const _USSHPKp = "UploadSSHPublicKey"; +const _UU = "UntagUser"; +const _UUp = "UpdateUser"; +const _Us = "User"; +const _Use = "Users"; +const _V = "Version"; +const _VI = "VersionId"; +const _VMFAD = "VirtualMFADevice"; +const _VMFADN = "VirtualMFADeviceName"; +const _VMFADi = "VirtualMFADevices"; +const _VU = "ValidUntil"; +const _Va = "Value"; +const _Ve = "Versions"; +const _e = "entry"; +const _m = "message"; +const _me = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-identitystore/src/models/models_0.ts b/clients/client-identitystore/src/models/models_0.ts index 1474d0a3f9da..25e24339d144 100644 --- a/clients/client-identitystore/src/models/models_0.ts +++ b/clients/client-identitystore/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { IdentitystoreServiceException as __BaseException } from "./IdentitystoreServiceException"; diff --git a/clients/client-imagebuilder/package.json b/clients/client-imagebuilder/package.json index 264d614373b4..fd4e94641333 100644 --- a/clients/client-imagebuilder/package.json +++ b/clients/client-imagebuilder/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts index a3d279ff3666..b6edea8cded2 100644 --- a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts +++ b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -308,11 +309,11 @@ export const se_CancelImageCreationCommand = async ( input: CancelImageCreationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelImageCreation"; + b.bp("/CancelImageCreation"); let body: any; body = JSON.stringify( take(input, { @@ -320,15 +321,8 @@ export const se_CancelImageCreationCommand = async ( imageBuildVersionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -338,12 +332,11 @@ export const se_CancelLifecycleExecutionCommand = async ( input: CancelLifecycleExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelLifecycleExecution"; + b.bp("/CancelLifecycleExecution"); let body: any; body = JSON.stringify( take(input, { @@ -351,15 +344,8 @@ export const se_CancelLifecycleExecutionCommand = async ( lifecycleExecutionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -369,11 +355,11 @@ export const se_CreateComponentCommand = async ( input: CreateComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateComponent"; + b.bp("/CreateComponent"); let body: any; body = JSON.stringify( take(input, { @@ -390,15 +376,8 @@ export const se_CreateComponentCommand = async ( uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -408,11 +387,11 @@ export const se_CreateContainerRecipeCommand = async ( input: CreateContainerRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateContainerRecipe"; + b.bp("/CreateContainerRecipe"); let body: any; body = JSON.stringify( take(input, { @@ -434,15 +413,8 @@ export const se_CreateContainerRecipeCommand = async ( workingDirectory: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -452,12 +424,11 @@ export const se_CreateDistributionConfigurationCommand = async ( input: CreateDistributionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDistributionConfiguration"; + b.bp("/CreateDistributionConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -468,15 +439,8 @@ export const se_CreateDistributionConfigurationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -486,11 +450,11 @@ export const se_CreateImageCommand = async ( input: CreateImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImage"; + b.bp("/CreateImage"); let body: any; body = JSON.stringify( take(input, { @@ -507,15 +471,8 @@ export const se_CreateImageCommand = async ( workflows: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -525,11 +482,11 @@ export const se_CreateImagePipelineCommand = async ( input: CreateImagePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImagePipeline"; + b.bp("/CreateImagePipeline"); let body: any; body = JSON.stringify( take(input, { @@ -550,15 +507,8 @@ export const se_CreateImagePipelineCommand = async ( workflows: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -568,11 +518,11 @@ export const se_CreateImageRecipeCommand = async ( input: CreateImageRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImageRecipe"; + b.bp("/CreateImageRecipe"); let body: any; body = JSON.stringify( take(input, { @@ -588,15 +538,8 @@ export const se_CreateImageRecipeCommand = async ( workingDirectory: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -606,12 +549,11 @@ export const se_CreateInfrastructureConfigurationCommand = async ( input: CreateInfrastructureConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateInfrastructureConfiguration"; + b.bp("/CreateInfrastructureConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -631,15 +573,8 @@ export const se_CreateInfrastructureConfigurationCommand = async ( terminateInstanceOnFailure: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -649,11 +584,11 @@ export const se_CreateLifecyclePolicyCommand = async ( input: CreateLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLifecyclePolicy"; + b.bp("/CreateLifecyclePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -668,15 +603,8 @@ export const se_CreateLifecyclePolicyCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -686,11 +614,11 @@ export const se_CreateWorkflowCommand = async ( input: CreateWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateWorkflow"; + b.bp("/CreateWorkflow"); let body: any; body = JSON.stringify( take(input, { @@ -706,15 +634,8 @@ export const se_CreateWorkflowCommand = async ( uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -724,23 +645,15 @@ export const se_DeleteComponentCommand = async ( input: DeleteComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteComponent"; + b.bp("/DeleteComponent"); const query: any = map({ - componentBuildVersionArn: [, __expectNonNull(input.componentBuildVersionArn!, `componentBuildVersionArn`)], + [_cBVA]: [, __expectNonNull(input[_cBVA]!, `componentBuildVersionArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -750,23 +663,15 @@ export const se_DeleteContainerRecipeCommand = async ( input: DeleteContainerRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteContainerRecipe"; + b.bp("/DeleteContainerRecipe"); const query: any = map({ - containerRecipeArn: [, __expectNonNull(input.containerRecipeArn!, `containerRecipeArn`)], + [_cRA]: [, __expectNonNull(input[_cRA]!, `containerRecipeArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -776,27 +681,15 @@ export const se_DeleteDistributionConfigurationCommand = async ( input: DeleteDistributionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteDistributionConfiguration"; + b.bp("/DeleteDistributionConfiguration"); const query: any = map({ - distributionConfigurationArn: [ - , - __expectNonNull(input.distributionConfigurationArn!, `distributionConfigurationArn`), - ], + [_dCA]: [, __expectNonNull(input[_dCA]!, `distributionConfigurationArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -806,23 +699,15 @@ export const se_DeleteImageCommand = async ( input: DeleteImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImage"; + b.bp("/DeleteImage"); const query: any = map({ - imageBuildVersionArn: [, __expectNonNull(input.imageBuildVersionArn!, `imageBuildVersionArn`)], + [_iBVA]: [, __expectNonNull(input[_iBVA]!, `imageBuildVersionArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -832,23 +717,15 @@ export const se_DeleteImagePipelineCommand = async ( input: DeleteImagePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImagePipeline"; + b.bp("/DeleteImagePipeline"); const query: any = map({ - imagePipelineArn: [, __expectNonNull(input.imagePipelineArn!, `imagePipelineArn`)], + [_iPA]: [, __expectNonNull(input[_iPA]!, `imagePipelineArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -858,23 +735,15 @@ export const se_DeleteImageRecipeCommand = async ( input: DeleteImageRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteImageRecipe"; + b.bp("/DeleteImageRecipe"); const query: any = map({ - imageRecipeArn: [, __expectNonNull(input.imageRecipeArn!, `imageRecipeArn`)], + [_iRA]: [, __expectNonNull(input[_iRA]!, `imageRecipeArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -884,27 +753,15 @@ export const se_DeleteInfrastructureConfigurationCommand = async ( input: DeleteInfrastructureConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteInfrastructureConfiguration"; + b.bp("/DeleteInfrastructureConfiguration"); const query: any = map({ - infrastructureConfigurationArn: [ - , - __expectNonNull(input.infrastructureConfigurationArn!, `infrastructureConfigurationArn`), - ], + [_iCA]: [, __expectNonNull(input[_iCA]!, `infrastructureConfigurationArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -914,23 +771,15 @@ export const se_DeleteLifecyclePolicyCommand = async ( input: DeleteLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLifecyclePolicy"; + b.bp("/DeleteLifecyclePolicy"); const query: any = map({ - lifecyclePolicyArn: [, __expectNonNull(input.lifecyclePolicyArn!, `lifecyclePolicyArn`)], + [_lPA]: [, __expectNonNull(input[_lPA]!, `lifecyclePolicyArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -940,23 +789,15 @@ export const se_DeleteWorkflowCommand = async ( input: DeleteWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteWorkflow"; + b.bp("/DeleteWorkflow"); const query: any = map({ - workflowBuildVersionArn: [, __expectNonNull(input.workflowBuildVersionArn!, `workflowBuildVersionArn`)], + [_wBVA]: [, __expectNonNull(input[_wBVA]!, `workflowBuildVersionArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -966,23 +807,15 @@ export const se_GetComponentCommand = async ( input: GetComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComponent"; + b.bp("/GetComponent"); const query: any = map({ - componentBuildVersionArn: [, __expectNonNull(input.componentBuildVersionArn!, `componentBuildVersionArn`)], + [_cBVA]: [, __expectNonNull(input[_cBVA]!, `componentBuildVersionArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -992,23 +825,15 @@ export const se_GetComponentPolicyCommand = async ( input: GetComponentPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComponentPolicy"; + b.bp("/GetComponentPolicy"); const query: any = map({ - componentArn: [, __expectNonNull(input.componentArn!, `componentArn`)], + [_cA]: [, __expectNonNull(input[_cA]!, `componentArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1018,23 +843,15 @@ export const se_GetContainerRecipeCommand = async ( input: GetContainerRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetContainerRecipe"; + b.bp("/GetContainerRecipe"); const query: any = map({ - containerRecipeArn: [, __expectNonNull(input.containerRecipeArn!, `containerRecipeArn`)], + [_cRA]: [, __expectNonNull(input[_cRA]!, `containerRecipeArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1044,24 +861,15 @@ export const se_GetContainerRecipePolicyCommand = async ( input: GetContainerRecipePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetContainerRecipePolicy"; + b.bp("/GetContainerRecipePolicy"); const query: any = map({ - containerRecipeArn: [, __expectNonNull(input.containerRecipeArn!, `containerRecipeArn`)], + [_cRA]: [, __expectNonNull(input[_cRA]!, `containerRecipeArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1071,27 +879,15 @@ export const se_GetDistributionConfigurationCommand = async ( input: GetDistributionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDistributionConfiguration"; + b.bp("/GetDistributionConfiguration"); const query: any = map({ - distributionConfigurationArn: [ - , - __expectNonNull(input.distributionConfigurationArn!, `distributionConfigurationArn`), - ], + [_dCA]: [, __expectNonNull(input[_dCA]!, `distributionConfigurationArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1101,23 +897,15 @@ export const se_GetImageCommand = async ( input: GetImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImage"; + b.bp("/GetImage"); const query: any = map({ - imageBuildVersionArn: [, __expectNonNull(input.imageBuildVersionArn!, `imageBuildVersionArn`)], + [_iBVA]: [, __expectNonNull(input[_iBVA]!, `imageBuildVersionArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1127,23 +915,15 @@ export const se_GetImagePipelineCommand = async ( input: GetImagePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImagePipeline"; + b.bp("/GetImagePipeline"); const query: any = map({ - imagePipelineArn: [, __expectNonNull(input.imagePipelineArn!, `imagePipelineArn`)], + [_iPA]: [, __expectNonNull(input[_iPA]!, `imagePipelineArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1153,23 +933,15 @@ export const se_GetImagePolicyCommand = async ( input: GetImagePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImagePolicy"; + b.bp("/GetImagePolicy"); const query: any = map({ - imageArn: [, __expectNonNull(input.imageArn!, `imageArn`)], + [_iA]: [, __expectNonNull(input[_iA]!, `imageArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1179,23 +951,15 @@ export const se_GetImageRecipeCommand = async ( input: GetImageRecipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImageRecipe"; + b.bp("/GetImageRecipe"); const query: any = map({ - imageRecipeArn: [, __expectNonNull(input.imageRecipeArn!, `imageRecipeArn`)], + [_iRA]: [, __expectNonNull(input[_iRA]!, `imageRecipeArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1205,23 +969,15 @@ export const se_GetImageRecipePolicyCommand = async ( input: GetImageRecipePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetImageRecipePolicy"; + b.bp("/GetImageRecipePolicy"); const query: any = map({ - imageRecipeArn: [, __expectNonNull(input.imageRecipeArn!, `imageRecipeArn`)], + [_iRA]: [, __expectNonNull(input[_iRA]!, `imageRecipeArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1231,27 +987,15 @@ export const se_GetInfrastructureConfigurationCommand = async ( input: GetInfrastructureConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetInfrastructureConfiguration"; + b.bp("/GetInfrastructureConfiguration"); const query: any = map({ - infrastructureConfigurationArn: [ - , - __expectNonNull(input.infrastructureConfigurationArn!, `infrastructureConfigurationArn`), - ], + [_iCA]: [, __expectNonNull(input[_iCA]!, `infrastructureConfigurationArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1261,23 +1005,15 @@ export const se_GetLifecycleExecutionCommand = async ( input: GetLifecycleExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecycleExecution"; + b.bp("/GetLifecycleExecution"); const query: any = map({ - lifecycleExecutionId: [, __expectNonNull(input.lifecycleExecutionId!, `lifecycleExecutionId`)], + [_lEI]: [, __expectNonNull(input[_lEI]!, `lifecycleExecutionId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1287,23 +1023,15 @@ export const se_GetLifecyclePolicyCommand = async ( input: GetLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLifecyclePolicy"; + b.bp("/GetLifecyclePolicy"); const query: any = map({ - lifecyclePolicyArn: [, __expectNonNull(input.lifecyclePolicyArn!, `lifecyclePolicyArn`)], + [_lPA]: [, __expectNonNull(input[_lPA]!, `lifecyclePolicyArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1313,23 +1041,15 @@ export const se_GetWorkflowCommand = async ( input: GetWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflow"; + b.bp("/GetWorkflow"); const query: any = map({ - workflowBuildVersionArn: [, __expectNonNull(input.workflowBuildVersionArn!, `workflowBuildVersionArn`)], + [_wBVA]: [, __expectNonNull(input[_wBVA]!, `workflowBuildVersionArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1339,23 +1059,15 @@ export const se_GetWorkflowExecutionCommand = async ( input: GetWorkflowExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowExecution"; + b.bp("/GetWorkflowExecution"); const query: any = map({ - workflowExecutionId: [, __expectNonNull(input.workflowExecutionId!, `workflowExecutionId`)], + [_wEI]: [, __expectNonNull(input[_wEI]!, `workflowExecutionId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1365,24 +1077,15 @@ export const se_GetWorkflowStepExecutionCommand = async ( input: GetWorkflowStepExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowStepExecution"; + b.bp("/GetWorkflowStepExecution"); const query: any = map({ - stepExecutionId: [, __expectNonNull(input.stepExecutionId!, `stepExecutionId`)], + [_sEI]: [, __expectNonNull(input[_sEI]!, `stepExecutionId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1392,11 +1095,11 @@ export const se_ImportComponentCommand = async ( input: ImportComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportComponent"; + b.bp("/ImportComponent"); let body: any; body = JSON.stringify( take(input, { @@ -1414,15 +1117,8 @@ export const se_ImportComponentCommand = async ( uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1432,11 +1128,11 @@ export const se_ImportVmImageCommand = async ( input: ImportVmImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportVmImage"; + b.bp("/ImportVmImage"); let body: any; body = JSON.stringify( take(input, { @@ -1450,15 +1146,8 @@ export const se_ImportVmImageCommand = async ( vmImportTaskId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1468,12 +1157,11 @@ export const se_ListComponentBuildVersionsCommand = async ( input: ListComponentBuildVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListComponentBuildVersions"; + b.bp("/ListComponentBuildVersions"); let body: any; body = JSON.stringify( take(input, { @@ -1482,15 +1170,8 @@ export const se_ListComponentBuildVersionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1500,11 +1181,11 @@ export const se_ListComponentsCommand = async ( input: ListComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListComponents"; + b.bp("/ListComponents"); let body: any; body = JSON.stringify( take(input, { @@ -1515,15 +1196,8 @@ export const se_ListComponentsCommand = async ( owner: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1533,11 +1207,11 @@ export const se_ListContainerRecipesCommand = async ( input: ListContainerRecipesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListContainerRecipes"; + b.bp("/ListContainerRecipes"); let body: any; body = JSON.stringify( take(input, { @@ -1547,15 +1221,8 @@ export const se_ListContainerRecipesCommand = async ( owner: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1565,12 +1232,11 @@ export const se_ListDistributionConfigurationsCommand = async ( input: ListDistributionConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListDistributionConfigurations"; + b.bp("/ListDistributionConfigurations"); let body: any; body = JSON.stringify( take(input, { @@ -1579,15 +1245,8 @@ export const se_ListDistributionConfigurationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1597,12 +1256,11 @@ export const se_ListImageBuildVersionsCommand = async ( input: ListImageBuildVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageBuildVersions"; + b.bp("/ListImageBuildVersions"); let body: any; body = JSON.stringify( take(input, { @@ -1612,15 +1270,8 @@ export const se_ListImageBuildVersionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1630,11 +1281,11 @@ export const se_ListImagePackagesCommand = async ( input: ListImagePackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePackages"; + b.bp("/ListImagePackages"); let body: any; body = JSON.stringify( take(input, { @@ -1643,15 +1294,8 @@ export const se_ListImagePackagesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1661,12 +1305,11 @@ export const se_ListImagePipelineImagesCommand = async ( input: ListImagePipelineImagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePipelineImages"; + b.bp("/ListImagePipelineImages"); let body: any; body = JSON.stringify( take(input, { @@ -1676,15 +1319,8 @@ export const se_ListImagePipelineImagesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1694,11 +1330,11 @@ export const se_ListImagePipelinesCommand = async ( input: ListImagePipelinesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePipelines"; + b.bp("/ListImagePipelines"); let body: any; body = JSON.stringify( take(input, { @@ -1707,15 +1343,8 @@ export const se_ListImagePipelinesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1725,11 +1354,11 @@ export const se_ListImageRecipesCommand = async ( input: ListImageRecipesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageRecipes"; + b.bp("/ListImageRecipes"); let body: any; body = JSON.stringify( take(input, { @@ -1739,15 +1368,8 @@ export const se_ListImageRecipesCommand = async ( owner: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1757,11 +1379,11 @@ export const se_ListImagesCommand = async ( input: ListImagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImages"; + b.bp("/ListImages"); let body: any; body = JSON.stringify( take(input, { @@ -1773,15 +1395,8 @@ export const se_ListImagesCommand = async ( owner: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1791,12 +1406,11 @@ export const se_ListImageScanFindingAggregationsCommand = async ( input: ListImageScanFindingAggregationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindingAggregations"; + b.bp("/ListImageScanFindingAggregations"); let body: any; body = JSON.stringify( take(input, { @@ -1804,15 +1418,8 @@ export const se_ListImageScanFindingAggregationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1822,11 +1429,11 @@ export const se_ListImageScanFindingsCommand = async ( input: ListImageScanFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindings"; + b.bp("/ListImageScanFindings"); let body: any; body = JSON.stringify( take(input, { @@ -1835,15 +1442,8 @@ export const se_ListImageScanFindingsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1853,12 +1453,11 @@ export const se_ListInfrastructureConfigurationsCommand = async ( input: ListInfrastructureConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListInfrastructureConfigurations"; + b.bp("/ListInfrastructureConfigurations"); let body: any; body = JSON.stringify( take(input, { @@ -1867,15 +1466,8 @@ export const se_ListInfrastructureConfigurationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1885,12 +1477,11 @@ export const se_ListLifecycleExecutionResourcesCommand = async ( input: ListLifecycleExecutionResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutionResources"; + b.bp("/ListLifecycleExecutionResources"); let body: any; body = JSON.stringify( take(input, { @@ -1900,15 +1491,8 @@ export const se_ListLifecycleExecutionResourcesCommand = async ( parentResourceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1918,12 +1502,11 @@ export const se_ListLifecycleExecutionsCommand = async ( input: ListLifecycleExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecycleExecutions"; + b.bp("/ListLifecycleExecutions"); let body: any; body = JSON.stringify( take(input, { @@ -1932,15 +1515,8 @@ export const se_ListLifecycleExecutionsCommand = async ( resourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1950,11 +1526,11 @@ export const se_ListLifecyclePoliciesCommand = async ( input: ListLifecyclePoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLifecyclePolicies"; + b.bp("/ListLifecyclePolicies"); let body: any; body = JSON.stringify( take(input, { @@ -1963,15 +1539,8 @@ export const se_ListLifecyclePoliciesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1981,20 +1550,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2004,12 +1566,11 @@ export const se_ListWaitingWorkflowStepsCommand = async ( input: ListWaitingWorkflowStepsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWaitingWorkflowSteps"; + b.bp("/ListWaitingWorkflowSteps"); let body: any; body = JSON.stringify( take(input, { @@ -2017,15 +1578,8 @@ export const se_ListWaitingWorkflowStepsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2035,12 +1589,11 @@ export const se_ListWorkflowBuildVersionsCommand = async ( input: ListWorkflowBuildVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowBuildVersions"; + b.bp("/ListWorkflowBuildVersions"); let body: any; body = JSON.stringify( take(input, { @@ -2049,15 +1602,8 @@ export const se_ListWorkflowBuildVersionsCommand = async ( workflowVersionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2067,12 +1613,11 @@ export const se_ListWorkflowExecutionsCommand = async ( input: ListWorkflowExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowExecutions"; + b.bp("/ListWorkflowExecutions"); let body: any; body = JSON.stringify( take(input, { @@ -2081,15 +1626,8 @@ export const se_ListWorkflowExecutionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2099,11 +1637,11 @@ export const se_ListWorkflowsCommand = async ( input: ListWorkflowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflows"; + b.bp("/ListWorkflows"); let body: any; body = JSON.stringify( take(input, { @@ -2114,15 +1652,8 @@ export const se_ListWorkflowsCommand = async ( owner: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2132,12 +1663,11 @@ export const se_ListWorkflowStepExecutionsCommand = async ( input: ListWorkflowStepExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowStepExecutions"; + b.bp("/ListWorkflowStepExecutions"); let body: any; body = JSON.stringify( take(input, { @@ -2146,15 +1676,8 @@ export const se_ListWorkflowStepExecutionsCommand = async ( workflowExecutionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2164,11 +1687,11 @@ export const se_PutComponentPolicyCommand = async ( input: PutComponentPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutComponentPolicy"; + b.bp("/PutComponentPolicy"); let body: any; body = JSON.stringify( take(input, { @@ -2176,15 +1699,8 @@ export const se_PutComponentPolicyCommand = async ( policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2194,12 +1710,11 @@ export const se_PutContainerRecipePolicyCommand = async ( input: PutContainerRecipePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutContainerRecipePolicy"; + b.bp("/PutContainerRecipePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -2207,15 +1722,8 @@ export const se_PutContainerRecipePolicyCommand = async ( policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2225,11 +1733,11 @@ export const se_PutImagePolicyCommand = async ( input: PutImagePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutImagePolicy"; + b.bp("/PutImagePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -2237,15 +1745,8 @@ export const se_PutImagePolicyCommand = async ( policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2255,11 +1756,11 @@ export const se_PutImageRecipePolicyCommand = async ( input: PutImageRecipePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutImageRecipePolicy"; + b.bp("/PutImageRecipePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -2267,15 +1768,8 @@ export const se_PutImageRecipePolicyCommand = async ( policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2285,12 +1779,11 @@ export const se_SendWorkflowStepActionCommand = async ( input: SendWorkflowStepActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendWorkflowStepAction"; + b.bp("/SendWorkflowStepAction"); let body: any; body = JSON.stringify( take(input, { @@ -2301,15 +1794,8 @@ export const se_SendWorkflowStepActionCommand = async ( stepExecutionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2319,12 +1805,11 @@ export const se_StartImagePipelineExecutionCommand = async ( input: StartImagePipelineExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartImagePipelineExecution"; + b.bp("/StartImagePipelineExecution"); let body: any; body = JSON.stringify( take(input, { @@ -2332,15 +1817,8 @@ export const se_StartImagePipelineExecutionCommand = async ( imagePipelineArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2350,12 +1828,11 @@ export const se_StartResourceStateUpdateCommand = async ( input: StartResourceStateUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartResourceStateUpdate"; + b.bp("/StartResourceStateUpdate"); let body: any; body = JSON.stringify( take(input, { @@ -2368,15 +1845,8 @@ export const se_StartResourceStateUpdateCommand = async ( updateAt: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2386,27 +1856,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2416,27 +1879,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2446,12 +1901,11 @@ export const se_UpdateDistributionConfigurationCommand = async ( input: UpdateDistributionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateDistributionConfiguration"; + b.bp("/UpdateDistributionConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -2461,15 +1915,8 @@ export const se_UpdateDistributionConfigurationCommand = async ( distributions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2479,11 +1926,11 @@ export const se_UpdateImagePipelineCommand = async ( input: UpdateImagePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateImagePipeline"; + b.bp("/UpdateImagePipeline"); let body: any; body = JSON.stringify( take(input, { @@ -2503,15 +1950,8 @@ export const se_UpdateImagePipelineCommand = async ( workflows: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2521,12 +1961,11 @@ export const se_UpdateInfrastructureConfigurationCommand = async ( input: UpdateInfrastructureConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateInfrastructureConfiguration"; + b.bp("/UpdateInfrastructureConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -2545,15 +1984,8 @@ export const se_UpdateInfrastructureConfigurationCommand = async ( terminateInstanceOnFailure: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2563,11 +1995,11 @@ export const se_UpdateLifecyclePolicyCommand = async ( input: UpdateLifecyclePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLifecyclePolicy"; + b.bp("/UpdateLifecyclePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -2581,15 +2013,8 @@ export const se_UpdateLifecyclePolicyCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8510,6 +7935,22 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cA = "componentArn"; +const _cBVA = "componentBuildVersionArn"; +const _cRA = "containerRecipeArn"; +const _dCA = "distributionConfigurationArn"; +const _iA = "imageArn"; +const _iBVA = "imageBuildVersionArn"; +const _iCA = "infrastructureConfigurationArn"; +const _iPA = "imagePipelineArn"; +const _iRA = "imageRecipeArn"; +const _lEI = "lifecycleExecutionId"; +const _lPA = "lifecyclePolicyArn"; +const _sEI = "stepExecutionId"; +const _tK = "tagKeys"; +const _wBVA = "workflowBuildVersionArn"; +const _wEI = "workflowExecutionId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-inspector-scan/package.json b/clients/client-inspector-scan/package.json index 87e2e46cbc38..abbcedaf6f70 100644 --- a/clients/client-inspector-scan/package.json +++ b/clients/client-inspector-scan/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-inspector-scan/src/models/models_0.ts b/clients/client-inspector-scan/src/models/models_0.ts index d41491856bfa..4670beb276ff 100644 --- a/clients/client-inspector-scan/src/models/models_0.ts +++ b/clients/client-inspector-scan/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { InspectorScanServiceException as __BaseException } from "./InspectorScanServiceException"; diff --git a/clients/client-inspector-scan/src/protocols/Aws_restJson1.ts b/clients/client-inspector-scan/src/protocols/Aws_restJson1.ts index 2c144666b791..114fc2051a7f 100644 --- a/clients/client-inspector-scan/src/protocols/Aws_restJson1.ts +++ b/clients/client-inspector-scan/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -35,11 +36,11 @@ export const se_ScanSbomCommand = async ( input: ScanSbomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/scan/sbom"; + b.bp("/scan/sbom"); let body: any; body = JSON.stringify( take(input, { @@ -47,15 +48,8 @@ export const se_ScanSbomCommand = async ( sbom: (_) => se_Sbom(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -143,10 +137,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -166,10 +157,7 @@ const de_InternalServerExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -239,6 +227,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-inspector2/package.json b/clients/client-inspector2/package.json index 3fe7b50631a9..f145e24f5cdf 100644 --- a/clients/client-inspector2/package.json +++ b/clients/client-inspector2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-inspector2/src/protocols/Aws_restJson1.ts b/clients/client-inspector2/src/protocols/Aws_restJson1.ts index 98fa92bd96bc..9d6071caf762 100644 --- a/clients/client-inspector2/src/protocols/Aws_restJson1.ts +++ b/clients/client-inspector2/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -233,26 +234,19 @@ export const se_AssociateMemberCommand = async ( input: AssociateMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/associate"; + b.bp("/members/associate"); let body: any; body = JSON.stringify( take(input, { accountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -262,26 +256,19 @@ export const se_BatchGetAccountStatusCommand = async ( input: BatchGetAccountStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/status/batch/get"; + b.bp("/status/batch/get"); let body: any; body = JSON.stringify( take(input, { accountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -291,26 +278,19 @@ export const se_BatchGetCodeSnippetCommand = async ( input: BatchGetCodeSnippetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codesnippet/batchget"; + b.bp("/codesnippet/batchget"); let body: any; body = JSON.stringify( take(input, { findingArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -320,27 +300,19 @@ export const se_BatchGetFindingDetailsCommand = async ( input: BatchGetFindingDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/details/batch/get"; + b.bp("/findings/details/batch/get"); let body: any; body = JSON.stringify( take(input, { findingArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -350,27 +322,19 @@ export const se_BatchGetFreeTrialInfoCommand = async ( input: BatchGetFreeTrialInfoCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/freetrialinfo/batchget"; + b.bp("/freetrialinfo/batchget"); let body: any; body = JSON.stringify( take(input, { accountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -380,27 +344,19 @@ export const se_BatchGetMemberEc2DeepInspectionStatusCommand = async ( input: BatchGetMemberEc2DeepInspectionStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ec2deepinspectionstatus/member/batch/get"; + b.bp("/ec2deepinspectionstatus/member/batch/get"); let body: any; body = JSON.stringify( take(input, { accountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -410,28 +366,19 @@ export const se_BatchUpdateMemberEc2DeepInspectionStatusCommand = async ( input: BatchUpdateMemberEc2DeepInspectionStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/ec2deepinspectionstatus/member/batch/update"; + b.bp("/ec2deepinspectionstatus/member/batch/update"); let body: any; body = JSON.stringify( take(input, { accountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -441,26 +388,19 @@ export const se_CancelFindingsReportCommand = async ( input: CancelFindingsReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/cancel"; + b.bp("/reporting/cancel"); let body: any; body = JSON.stringify( take(input, { reportId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -470,26 +410,19 @@ export const se_CancelSbomExportCommand = async ( input: CancelSbomExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sbomexport/cancel"; + b.bp("/sbomexport/cancel"); let body: any; body = JSON.stringify( take(input, { reportId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -499,11 +432,11 @@ export const se_CreateFilterCommand = async ( input: CreateFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/create"; + b.bp("/filters/create"); let body: any; body = JSON.stringify( take(input, { @@ -515,15 +448,8 @@ export const se_CreateFilterCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -533,11 +459,11 @@ export const se_CreateFindingsReportCommand = async ( input: CreateFindingsReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/create"; + b.bp("/reporting/create"); let body: any; body = JSON.stringify( take(input, { @@ -546,15 +472,8 @@ export const se_CreateFindingsReportCommand = async ( s3Destination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -564,11 +483,11 @@ export const se_CreateSbomExportCommand = async ( input: CreateSbomExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sbomexport/create"; + b.bp("/sbomexport/create"); let body: any; body = JSON.stringify( take(input, { @@ -577,15 +496,8 @@ export const se_CreateSbomExportCommand = async ( s3Destination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -595,26 +507,19 @@ export const se_DeleteFilterCommand = async ( input: DeleteFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/delete"; + b.bp("/filters/delete"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -624,23 +529,15 @@ export const se_DescribeOrganizationConfigurationCommand = async ( input: DescribeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/describe"; + b.bp("/organizationconfiguration/describe"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -650,11 +547,11 @@ export const se_DisableCommand = async ( input: DisableCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disable"; + b.bp("/disable"); let body: any; body = JSON.stringify( take(input, { @@ -662,15 +559,8 @@ export const se_DisableCommand = async ( resourceTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -680,27 +570,19 @@ export const se_DisableDelegatedAdminAccountCommand = async ( input: DisableDelegatedAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/disable"; + b.bp("/delegatedadminaccounts/disable"); let body: any; body = JSON.stringify( take(input, { delegatedAdminAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -710,37 +592,30 @@ export const se_DisassociateMemberCommand = async ( input: DisassociateMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate"; + b.bp("/members/disassociate"); let body: any; body = JSON.stringify( take(input, { accountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1EnableCommand */ export const se_EnableCommand = async (input: EnableCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enable"; + b.bp("/enable"); let body: any; body = JSON.stringify( take(input, { @@ -749,15 +624,8 @@ export const se_EnableCommand = async (input: EnableCommandInput, context: __Ser resourceTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -767,12 +635,11 @@ export const se_EnableDelegatedAdminAccountCommand = async ( input: EnableDelegatedAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/enable"; + b.bp("/delegatedadminaccounts/enable"); let body: any; body = JSON.stringify( take(input, { @@ -780,15 +647,8 @@ export const se_EnableDelegatedAdminAccountCommand = async ( delegatedAdminAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -798,22 +658,15 @@ export const se_GetConfigurationCommand = async ( input: GetConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/get"; + b.bp("/configuration/get"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -823,23 +676,15 @@ export const se_GetDelegatedAdminAccountCommand = async ( input: GetDelegatedAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/get"; + b.bp("/delegatedadminaccounts/get"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -849,23 +694,15 @@ export const se_GetEc2DeepInspectionConfigurationCommand = async ( input: GetEc2DeepInspectionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ec2deepinspectionconfiguration/get"; + b.bp("/ec2deepinspectionconfiguration/get"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -875,24 +712,16 @@ export const se_GetEncryptionKeyCommand = async ( input: GetEncryptionKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/encryptionkey/get"; + b.bp("/encryptionkey/get"); const query: any = map({ - scanType: [, __expectNonNull(input.scanType!, `scanType`)], - resourceType: [, __expectNonNull(input.resourceType!, `resourceType`)], + [_sT]: [, __expectNonNull(input[_sT]!, `scanType`)], + [_rT]: [, __expectNonNull(input[_rT]!, `resourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -902,26 +731,19 @@ export const se_GetFindingsReportStatusCommand = async ( input: GetFindingsReportStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/status/get"; + b.bp("/reporting/status/get"); let body: any; body = JSON.stringify( take(input, { reportId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -931,26 +753,19 @@ export const se_GetMemberCommand = async ( input: GetMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/get"; + b.bp("/members/get"); let body: any; body = JSON.stringify( take(input, { accountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -960,26 +775,19 @@ export const se_GetSbomExportCommand = async ( input: GetSbomExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sbomexport/get"; + b.bp("/sbomexport/get"); let body: any; body = JSON.stringify( take(input, { reportId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -989,12 +797,11 @@ export const se_ListAccountPermissionsCommand = async ( input: ListAccountPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accountpermissions/list"; + b.bp("/accountpermissions/list"); let body: any; body = JSON.stringify( take(input, { @@ -1003,15 +810,8 @@ export const se_ListAccountPermissionsCommand = async ( service: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1021,11 +821,11 @@ export const se_ListCoverageCommand = async ( input: ListCoverageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/list"; + b.bp("/coverage/list"); let body: any; body = JSON.stringify( take(input, { @@ -1034,15 +834,8 @@ export const se_ListCoverageCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1052,12 +845,11 @@ export const se_ListCoverageStatisticsCommand = async ( input: ListCoverageStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/statistics/list"; + b.bp("/coverage/statistics/list"); let body: any; body = JSON.stringify( take(input, { @@ -1066,15 +858,8 @@ export const se_ListCoverageStatisticsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1084,12 +869,11 @@ export const se_ListDelegatedAdminAccountsCommand = async ( input: ListDelegatedAdminAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/list"; + b.bp("/delegatedadminaccounts/list"); let body: any; body = JSON.stringify( take(input, { @@ -1097,15 +881,8 @@ export const se_ListDelegatedAdminAccountsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1115,11 +892,11 @@ export const se_ListFiltersCommand = async ( input: ListFiltersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/list"; + b.bp("/filters/list"); let body: any; body = JSON.stringify( take(input, { @@ -1129,15 +906,8 @@ export const se_ListFiltersCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1147,12 +917,11 @@ export const se_ListFindingAggregationsCommand = async ( input: ListFindingAggregationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/aggregation/list"; + b.bp("/findings/aggregation/list"); let body: any; body = JSON.stringify( take(input, { @@ -1163,15 +932,8 @@ export const se_ListFindingAggregationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1181,11 +943,11 @@ export const se_ListFindingsCommand = async ( input: ListFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/list"; + b.bp("/findings/list"); let body: any; body = JSON.stringify( take(input, { @@ -1195,15 +957,8 @@ export const se_ListFindingsCommand = async ( sortCriteria: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1213,11 +968,11 @@ export const se_ListMembersCommand = async ( input: ListMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/list"; + b.bp("/members/list"); let body: any; body = JSON.stringify( take(input, { @@ -1226,15 +981,8 @@ export const se_ListMembersCommand = async ( onlyAssociated: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1244,20 +992,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1267,11 +1008,11 @@ export const se_ListUsageTotalsCommand = async ( input: ListUsageTotalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usage/list"; + b.bp("/usage/list"); let body: any; body = JSON.stringify( take(input, { @@ -1280,15 +1021,8 @@ export const se_ListUsageTotalsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1298,11 +1032,11 @@ export const se_ResetEncryptionKeyCommand = async ( input: ResetEncryptionKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/encryptionkey/reset"; + b.bp("/encryptionkey/reset"); let body: any; body = JSON.stringify( take(input, { @@ -1310,15 +1044,8 @@ export const se_ResetEncryptionKeyCommand = async ( scanType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1328,12 +1055,11 @@ export const se_SearchVulnerabilitiesCommand = async ( input: SearchVulnerabilitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vulnerabilities/search"; + b.bp("/vulnerabilities/search"); let body: any; body = JSON.stringify( take(input, { @@ -1341,15 +1067,8 @@ export const se_SearchVulnerabilitiesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1359,27 +1078,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1389,27 +1101,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1419,26 +1123,19 @@ export const se_UpdateConfigurationCommand = async ( input: UpdateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/update"; + b.bp("/configuration/update"); let body: any; body = JSON.stringify( take(input, { ecrConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1448,12 +1145,11 @@ export const se_UpdateEc2DeepInspectionConfigurationCommand = async ( input: UpdateEc2DeepInspectionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ec2deepinspectionconfiguration/update"; + b.bp("/ec2deepinspectionconfiguration/update"); let body: any; body = JSON.stringify( take(input, { @@ -1461,15 +1157,8 @@ export const se_UpdateEc2DeepInspectionConfigurationCommand = async ( packagePaths: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1479,11 +1168,11 @@ export const se_UpdateEncryptionKeyCommand = async ( input: UpdateEncryptionKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/encryptionkey/update"; + b.bp("/encryptionkey/update"); let body: any; body = JSON.stringify( take(input, { @@ -1492,15 +1181,8 @@ export const se_UpdateEncryptionKeyCommand = async ( scanType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1510,11 +1192,11 @@ export const se_UpdateFilterCommand = async ( input: UpdateFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/update"; + b.bp("/filters/update"); let body: any; body = JSON.stringify( take(input, { @@ -1526,15 +1208,8 @@ export const se_UpdateFilterCommand = async ( reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1544,27 +1219,19 @@ export const se_UpdateOrganizationConfigurationCommand = async ( input: UpdateOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/update"; + b.bp("/organizationconfiguration/update"); let body: any; body = JSON.stringify( take(input, { autoEnable: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1574,28 +1241,19 @@ export const se_UpdateOrgEc2DeepInspectionConfigurationCommand = async ( input: UpdateOrgEc2DeepInspectionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/ec2deepinspectionconfiguration/org/update"; + b.bp("/ec2deepinspectionconfiguration/org/update"); let body: any; body = JSON.stringify( take(input, { orgPackagePaths: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4304,10 +3962,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -4367,10 +4022,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -5628,6 +5280,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _rAS = "retryAfterSeconds"; +const _rT = "resourceType"; +const _ra = "retry-after"; +const _sT = "scanType"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-internetmonitor/package.json b/clients/client-internetmonitor/package.json index 7a57e0fe1182..d7218abe43be 100644 --- a/clients/client-internetmonitor/package.json +++ b/clients/client-internetmonitor/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts b/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts index 2da8d9734589..3935bb412545 100644 --- a/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts +++ b/clients/client-internetmonitor/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -75,11 +76,11 @@ export const se_CreateMonitorCommand = async ( input: CreateMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors"; + b.bp("/v20210603/Monitors"); let body: any; body = JSON.stringify( take(input, { @@ -93,15 +94,8 @@ export const se_CreateMonitorCommand = async ( TrafficPercentageToMonitor: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -111,21 +105,13 @@ export const se_DeleteMonitorCommand = async ( input: DeleteMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.bp("/v20210603/Monitors/{MonitorName}"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -135,23 +121,14 @@ export const se_GetHealthEventCommand = async ( input: GetHealthEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20210603/Monitors/{MonitorName}/HealthEvents/{EventId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "EventId", () => input.EventId!, "{EventId}", false); + b.bp("/v20210603/Monitors/{MonitorName}/HealthEvents/{EventId}"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.p("EventId", () => input.EventId!, "{EventId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -161,21 +138,13 @@ export const se_GetMonitorCommand = async ( input: GetMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.bp("/v20210603/Monitors/{MonitorName}"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -185,28 +154,18 @@ export const se_GetQueryResultsCommand = async ( input: GetQueryResultsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Results"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueryId", () => input.QueryId!, "{QueryId}", false); + b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Results"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.p("QueryId", () => input.QueryId!, "{QueryId}", false); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -216,23 +175,14 @@ export const se_GetQueryStatusCommand = async ( input: GetQueryStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Status"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueryId", () => input.QueryId!, "{QueryId}", false); + b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Status"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.p("QueryId", () => input.QueryId!, "{QueryId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -242,33 +192,20 @@ export const se_ListHealthEventsCommand = async ( input: ListHealthEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20210603/Monitors/{MonitorName}/HealthEvents"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.bp("/v20210603/Monitors/{MonitorName}/HealthEvents"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); const query: any = map({ - StartTime: [ - () => input.StartTime !== void 0, - () => (input.StartTime!.toISOString().split(".")[0] + "Z").toString(), - ], - EndTime: [() => input.EndTime !== void 0, () => (input.EndTime!.toISOString().split(".")[0] + "Z").toString()], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - EventStatus: [, input.EventStatus!], + [_ST]: [() => input.StartTime !== void 0, () => (input[_ST]!.toISOString().split(".")[0] + "Z").toString()], + [_ET]: [() => input.EndTime !== void 0, () => (input[_ET]!.toISOString().split(".")[0] + "Z").toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_ES]: [, input[_ES]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -278,25 +215,17 @@ export const se_ListMonitorsCommand = async ( input: ListMonitorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors"; + b.bp("/v20210603/Monitors"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - MonitorStatus: [, input.MonitorStatus!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_MS]: [, input[_MS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -306,20 +235,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -329,13 +251,12 @@ export const se_StartQueryCommand = async ( input: StartQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}/Queries"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.bp("/v20210603/Monitors/{MonitorName}/Queries"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); let body: any; body = JSON.stringify( take(input, { @@ -345,15 +266,8 @@ export const se_StartQueryCommand = async ( StartTime: (_) => _.toISOString().split(".")[0] + "Z", }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -363,23 +277,14 @@ export const se_StopQueryCommand = async ( input: StopQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20210603/Monitors/{MonitorName}/Queries/{QueryId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QueryId", () => input.QueryId!, "{QueryId}", false); + b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.p("QueryId", () => input.QueryId!, "{QueryId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -389,27 +294,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -419,27 +317,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -449,13 +339,12 @@ export const se_UpdateMonitorCommand = async ( input: UpdateMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName!, "{MonitorName}", false); + b.bp("/v20210603/Monitors/{MonitorName}"); + b.p("MonitorName", () => input.MonitorName!, "{MonitorName}", false); let body: any; body = JSON.stringify( take(input, { @@ -469,15 +358,8 @@ export const se_UpdateMonitorCommand = async ( TrafficPercentageToMonitor: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1729,6 +1611,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _ES = "EventStatus"; +const _ET = "EndTime"; +const _MR = "MaxResults"; +const _MS = "MonitorStatus"; +const _NT = "NextToken"; +const _ST = "StartTime"; +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-1click-devices-service/package.json b/clients/client-iot-1click-devices-service/package.json index 3f2d5abb1e0f..0d3ed347d46c 100644 --- a/clients/client-iot-1click-devices-service/package.json +++ b/clients/client-iot-1click-devices-service/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts b/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts index a6b77fdedd6c..6b7a85f917a2 100644 --- a/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -69,20 +70,13 @@ export const se_ClaimDevicesByClaimCodeCommand = async ( input: ClaimDevicesByClaimCodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/claims/{ClaimCode}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClaimCode", () => input.ClaimCode!, "{ClaimCode}", false); + b.bp("/claims/{ClaimCode}"); + b.p("ClaimCode", () => input.ClaimCode!, "{ClaimCode}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -92,20 +86,13 @@ export const se_DescribeDeviceCommand = async ( input: DescribeDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -115,28 +102,20 @@ export const se_FinalizeDeviceClaimCommand = async ( input: FinalizeDeviceClaimCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}/finalize-claim"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}/finalize-claim"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -146,21 +125,13 @@ export const se_GetDeviceMethodsCommand = async ( input: GetDeviceMethodsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}/methods"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}/methods"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -170,21 +141,13 @@ export const se_InitiateDeviceClaimCommand = async ( input: InitiateDeviceClaimCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}/initiate-claim"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}/initiate-claim"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -194,13 +157,12 @@ export const se_InvokeDeviceMethodCommand = async ( input: InvokeDeviceMethodCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}/methods"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}/methods"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -208,15 +170,8 @@ export const se_InvokeDeviceMethodCommand = async ( deviceMethodParameters: [, , `DeviceMethodParameters`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -226,34 +181,25 @@ export const se_ListDeviceEventsCommand = async ( input: ListDeviceEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}/events"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}/events"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); const query: any = map({ - fromTimeStamp: [ + [_fTS]: [ __expectNonNull(input.FromTimeStamp, `FromTimeStamp`) != null, - () => (input.FromTimeStamp!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_FTS]!.toISOString().split(".")[0] + "Z").toString(), ], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - toTimeStamp: [ + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_tTS]: [ __expectNonNull(input.ToTimeStamp, `ToTimeStamp`) != null, - () => (input.ToTimeStamp!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_TTS]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -263,25 +209,17 @@ export const se_ListDevicesCommand = async ( input: ListDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices"; + b.bp("/devices"); const query: any = map({ - deviceType: [, input.DeviceType!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_dT]: [, input[_DT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -291,20 +229,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -314,27 +245,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -344,21 +268,13 @@ export const se_UnclaimDeviceCommand = async ( input: UnclaimDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}/unclaim"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}/unclaim"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -368,27 +284,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -398,28 +306,20 @@ export const se_UpdateDeviceStateCommand = async ( input: UpdateDeviceStateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}/state"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}/state"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; body = JSON.stringify( take(input, { enabled: [, , `Enabled`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1384,6 +1284,19 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DT = "DeviceType"; +const _FTS = "FromTimeStamp"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _TTS = "ToTimeStamp"; +const _dT = "deviceType"; +const _fTS = "fromTimeStamp"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; +const _tTS = "toTimeStamp"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-1click-projects/package.json b/clients/client-iot-1click-projects/package.json index 756673554a12..54a130820873 100644 --- a/clients/client-iot-1click-projects/package.json +++ b/clients/client-iot-1click-projects/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts b/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts index 2f6173dc56fd..3f9f4828987d 100644 --- a/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -71,45 +72,22 @@ export const se_AssociateDeviceWithPlacementCommand = async ( input: AssociateDeviceWithPlacementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "placementName", - () => input.placementName!, - "{placementName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deviceTemplateName", - () => input.deviceTemplateName!, - "{deviceTemplateName}", - false - ); + b.bp("/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}"); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("placementName", () => input.placementName!, "{placementName}", false); + b.p("deviceTemplateName", () => input.deviceTemplateName!, "{deviceTemplateName}", false); let body: any; body = JSON.stringify( take(input, { deviceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -119,13 +97,12 @@ export const se_CreatePlacementCommand = async ( input: CreatePlacementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectName}/placements"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}/placements"); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; body = JSON.stringify( take(input, { @@ -133,15 +110,8 @@ export const se_CreatePlacementCommand = async ( placementName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -151,11 +121,11 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); let body: any; body = JSON.stringify( take(input, { @@ -165,15 +135,8 @@ export const se_CreateProjectCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -183,30 +146,14 @@ export const se_DeletePlacementCommand = async ( input: DeletePlacementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{projectName}/placements/{placementName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "placementName", - () => input.placementName!, - "{placementName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}/placements/{placementName}"); + b.p("placementName", () => input.placementName!, "{placementName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -216,20 +163,13 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}"); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -239,30 +179,14 @@ export const se_DescribePlacementCommand = async ( input: DescribePlacementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{projectName}/placements/{placementName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "placementName", - () => input.placementName!, - "{placementName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}/placements/{placementName}"); + b.p("placementName", () => input.placementName!, "{placementName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -272,20 +196,13 @@ export const se_DescribeProjectCommand = async ( input: DescribeProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}"); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -295,38 +212,15 @@ export const se_DisassociateDeviceFromPlacementCommand = async ( input: DisassociateDeviceFromPlacementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "placementName", - () => input.placementName!, - "{placementName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deviceTemplateName", - () => input.deviceTemplateName!, - "{deviceTemplateName}", - false - ); + b.bp("/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}"); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("placementName", () => input.placementName!, "{placementName}", false); + b.p("deviceTemplateName", () => input.deviceTemplateName!, "{deviceTemplateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -336,30 +230,14 @@ export const se_GetDevicesInPlacementCommand = async ( input: GetDevicesInPlacementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{projectName}/placements/{placementName}/devices"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "placementName", - () => input.placementName!, - "{placementName}", - false - ); + b.bp("/projects/{projectName}/placements/{placementName}/devices"); + b.p("projectName", () => input.projectName!, "{projectName}", false); + b.p("placementName", () => input.placementName!, "{placementName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -369,26 +247,17 @@ export const se_ListPlacementsCommand = async ( input: ListPlacementsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectName}/placements"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}/placements"); + b.p("projectName", () => input.projectName!, "{projectName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -398,24 +267,16 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -425,20 +286,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -448,27 +302,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -478,27 +325,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -508,37 +347,21 @@ export const se_UpdatePlacementCommand = async ( input: UpdatePlacementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/projects/{projectName}/placements/{placementName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "placementName", - () => input.placementName!, - "{placementName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}/placements/{placementName}"); + b.p("placementName", () => input.placementName!, "{placementName}", false); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; body = JSON.stringify( take(input, { attributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -548,12 +371,12 @@ export const se_UpdateProjectCommand = async ( input: UpdateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectName", () => input.projectName!, "{projectName}", false); + b.bp("/projects/{projectName}"); + b.p("projectName", () => input.projectName!, "{projectName}", false); let body: any; body = JSON.stringify( take(input, { @@ -561,15 +384,8 @@ export const se_UpdateProjectCommand = async ( placementTemplate: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1632,6 +1448,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-data-plane/package.json b/clients/client-iot-data-plane/package.json index 9d46a97caef5..9b1c94f3bd08 100644 --- a/clients/client-iot-data-plane/package.json +++ b/clients/client-iot-data-plane/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts b/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts index edcdd971ff51..922ffa3fb971 100644 --- a/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-data-plane/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -56,25 +57,16 @@ export const se_DeleteThingShadowCommand = async ( input: DeleteThingShadowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/shadow"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/shadow"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - name: [, input.shadowName!], + [_n]: [, input[_sN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -84,20 +76,13 @@ export const se_GetRetainedMessageCommand = async ( input: GetRetainedMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/retainedMessage/{topic}"; - resolvedPath = __resolvedPath(resolvedPath, input, "topic", () => input.topic!, "{topic}", false); + b.bp("/retainedMessage/{topic}"); + b.p("topic", () => input.topic!, "{topic}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -107,25 +92,16 @@ export const se_GetThingShadowCommand = async ( input: GetThingShadowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/shadow"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/shadow"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - name: [, input.shadowName!], + [_n]: [, input[_sN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -135,27 +111,17 @@ export const se_ListNamedShadowsForThingCommand = async ( input: ListNamedShadowsForThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/things/shadow/ListNamedShadowsForThing/{thingName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/api/things/shadow/ListNamedShadowsForThing/{thingName}"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], + [_nT]: [, input[_nT]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -165,24 +131,16 @@ export const se_ListRetainedMessagesCommand = async ( input: ListRetainedMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/retainedMessage"; + b.bp("/retainedMessage"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -192,39 +150,31 @@ export const se_PublishCommand = async ( input: PublishCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-amz-mqtt5-user-properties": [ - () => isSerializableHeaderValue(input.userProperties), - () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.userProperties!))), + [_xamup]: [ + () => isSerializableHeaderValue(input[_uP]), + () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input[_uP]!))), ], - "x-amz-mqtt5-payload-format-indicator": input.payloadFormatIndicator!, - "x-amz-mqtt5-correlation-data": input.correlationData!, + [_xampfi]: input[_pFI]!, + [_xamcd]: input[_cD]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/topics/{topic}"; - resolvedPath = __resolvedPath(resolvedPath, input, "topic", () => input.topic!, "{topic}", false); + b.bp("/topics/{topic}"); + b.p("topic", () => input.topic!, "{topic}", false); const query: any = map({ - qos: [() => input.qos !== void 0, () => input.qos!.toString()], - retain: [() => input.retain !== void 0, () => input.retain!.toString()], - contentType: [, input.contentType!], - responseTopic: [, input.responseTopic!], - messageExpiry: [() => input.messageExpiry !== void 0, () => input.messageExpiry!.toString()], + [_q]: [() => input.qos !== void 0, () => input[_q]!.toString()], + [_r]: [() => input.retain !== void 0, () => input[_r]!.toString()], + [_cT]: [, input[_cT]!], + [_rT]: [, input[_rT]!], + [_mE]: [() => input.messageExpiry !== void 0, () => input[_mE]!.toString()], }); let body: any; if (input.payload !== undefined) { body = input.payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -234,30 +184,21 @@ export const se_UpdateThingShadowCommand = async ( input: UpdateThingShadowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/shadow"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/shadow"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - name: [, input.shadowName!], + [_n]: [, input[_sN]!], }); let body: any; if (input.payload !== undefined) { body = input.payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -932,6 +873,23 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cD = "correlationData"; +const _cT = "contentType"; +const _mE = "messageExpiry"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _pFI = "payloadFormatIndicator"; +const _pS = "pageSize"; +const _q = "qos"; +const _r = "retain"; +const _rT = "responseTopic"; +const _sN = "shadowName"; +const _uP = "userProperties"; +const _xamcd = "x-amz-mqtt5-correlation-data"; +const _xampfi = "x-amz-mqtt5-payload-format-indicator"; +const _xamup = "x-amz-mqtt5-user-properties"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-events-data/package.json b/clients/client-iot-events-data/package.json index 7bd2773c6e9c..a5db62363bc9 100644 --- a/clients/client-iot-events-data/package.json +++ b/clients/client-iot-events-data/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts b/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts index 5cb31e749155..ca1d365adb75 100644 --- a/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events-data/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -77,26 +78,19 @@ export const se_BatchAcknowledgeAlarmCommand = async ( input: BatchAcknowledgeAlarmCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/acknowledge"; + b.bp("/alarms/acknowledge"); let body: any; body = JSON.stringify( take(input, { acknowledgeActionRequests: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -106,26 +100,19 @@ export const se_BatchDeleteDetectorCommand = async ( input: BatchDeleteDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/delete"; + b.bp("/detectors/delete"); let body: any; body = JSON.stringify( take(input, { detectors: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -135,26 +122,19 @@ export const se_BatchDisableAlarmCommand = async ( input: BatchDisableAlarmCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/disable"; + b.bp("/alarms/disable"); let body: any; body = JSON.stringify( take(input, { disableActionRequests: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -164,26 +144,19 @@ export const se_BatchEnableAlarmCommand = async ( input: BatchEnableAlarmCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/enable"; + b.bp("/alarms/enable"); let body: any; body = JSON.stringify( take(input, { enableActionRequests: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -193,26 +166,19 @@ export const se_BatchPutMessageCommand = async ( input: BatchPutMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/messages"; + b.bp("/inputs/messages"); let body: any; body = JSON.stringify( take(input, { messages: (_) => se_Messages(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -222,26 +188,19 @@ export const se_BatchResetAlarmCommand = async ( input: BatchResetAlarmCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/reset"; + b.bp("/alarms/reset"); let body: any; body = JSON.stringify( take(input, { resetActionRequests: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -251,26 +210,19 @@ export const se_BatchSnoozeAlarmCommand = async ( input: BatchSnoozeAlarmCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/snooze"; + b.bp("/alarms/snooze"); let body: any; body = JSON.stringify( take(input, { snoozeActionRequests: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -280,26 +232,19 @@ export const se_BatchUpdateDetectorCommand = async ( input: BatchUpdateDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors"; + b.bp("/detectors"); let body: any; body = JSON.stringify( take(input, { detectors: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -309,32 +254,16 @@ export const se_DescribeAlarmCommand = async ( input: DescribeAlarmCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/{alarmModelName}/keyValues"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "alarmModelName", - () => input.alarmModelName!, - "{alarmModelName}", - false - ); + b.bp("/alarms/{alarmModelName}/keyValues"); + b.p("alarmModelName", () => input.alarmModelName!, "{alarmModelName}", false); const query: any = map({ - keyValue: [, input.keyValue!], + [_kV]: [, input[_kV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -344,32 +273,16 @@ export const se_DescribeDetectorCommand = async ( input: DescribeDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/{detectorModelName}/keyValues"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "detectorModelName", - () => input.detectorModelName!, - "{detectorModelName}", - false - ); + b.bp("/detectors/{detectorModelName}/keyValues"); + b.p("detectorModelName", () => input.detectorModelName!, "{detectorModelName}", false); const query: any = map({ - keyValue: [, input.keyValue!], + [_kV]: [, input[_kV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -379,32 +292,17 @@ export const se_ListAlarmsCommand = async ( input: ListAlarmsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/{alarmModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "alarmModelName", - () => input.alarmModelName!, - "{alarmModelName}", - false - ); + b.bp("/alarms/{alarmModelName}"); + b.p("alarmModelName", () => input.alarmModelName!, "{alarmModelName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -414,34 +312,18 @@ export const se_ListDetectorsCommand = async ( input: ListDetectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/{detectorModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "detectorModelName", - () => input.detectorModelName!, - "{detectorModelName}", - false - ); + b.bp("/detectors/{detectorModelName}"); + b.p("detectorModelName", () => input.detectorModelName!, "{detectorModelName}", false); const query: any = map({ - stateName: [, input.stateName!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_sN]: [, input[_sN]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1468,6 +1350,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _kV = "keyValue"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _sN = "stateName"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-events/package.json b/clients/client-iot-events/package.json index ab51eefb316c..9b8f16e10956 100644 --- a/clients/client-iot-events/package.json +++ b/clients/client-iot-events/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-events/src/protocols/Aws_restJson1.ts b/clients/client-iot-events/src/protocols/Aws_restJson1.ts index ac6459231080..c565210d5879 100644 --- a/clients/client-iot-events/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -160,11 +161,11 @@ export const se_CreateAlarmModelCommand = async ( input: CreateAlarmModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models"; + b.bp("/alarm-models"); let body: any; body = JSON.stringify( take(input, { @@ -180,15 +181,8 @@ export const se_CreateAlarmModelCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -198,11 +192,11 @@ export const se_CreateDetectorModelCommand = async ( input: CreateDetectorModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models"; + b.bp("/detector-models"); let body: any; body = JSON.stringify( take(input, { @@ -215,15 +209,8 @@ export const se_CreateDetectorModelCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -233,11 +220,11 @@ export const se_CreateInputCommand = async ( input: CreateInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs"; + b.bp("/inputs"); let body: any; body = JSON.stringify( take(input, { @@ -247,15 +234,8 @@ export const se_CreateInputCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -265,28 +245,13 @@ export const se_DeleteAlarmModelCommand = async ( input: DeleteAlarmModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "alarmModelName", - () => input.alarmModelName!, - "{alarmModelName}", - false - ); + b.bp("/alarm-models/{alarmModelName}"); + b.p("alarmModelName", () => input.alarmModelName!, "{alarmModelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -296,28 +261,13 @@ export const se_DeleteDetectorModelCommand = async ( input: DeleteDetectorModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "detectorModelName", - () => input.detectorModelName!, - "{detectorModelName}", - false - ); + b.bp("/detector-models/{detectorModelName}"); + b.p("detectorModelName", () => input.detectorModelName!, "{detectorModelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -327,20 +277,13 @@ export const se_DeleteInputCommand = async ( input: DeleteInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "inputName", () => input.inputName!, "{inputName}", false); + b.bp("/inputs/{inputName}"); + b.p("inputName", () => input.inputName!, "{inputName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -350,32 +293,16 @@ export const se_DescribeAlarmModelCommand = async ( input: DescribeAlarmModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "alarmModelName", - () => input.alarmModelName!, - "{alarmModelName}", - false - ); + b.bp("/alarm-models/{alarmModelName}"); + b.p("alarmModelName", () => input.alarmModelName!, "{alarmModelName}", false); const query: any = map({ - version: [, input.alarmModelVersion!], + [_v]: [, input[_aMV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -385,32 +312,16 @@ export const se_DescribeDetectorModelCommand = async ( input: DescribeDetectorModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "detectorModelName", - () => input.detectorModelName!, - "{detectorModelName}", - false - ); + b.bp("/detector-models/{detectorModelName}"); + b.p("detectorModelName", () => input.detectorModelName!, "{detectorModelName}", false); const query: any = map({ - version: [, input.detectorModelVersion!], + [_v]: [, input[_dMV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -420,21 +331,13 @@ export const se_DescribeDetectorModelAnalysisCommand = async ( input: DescribeDetectorModelAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analysis/detector-models/{analysisId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "analysisId", () => input.analysisId!, "{analysisId}", false); + b.bp("/analysis/detector-models/{analysisId}"); + b.p("analysisId", () => input.analysisId!, "{analysisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -444,20 +347,13 @@ export const se_DescribeInputCommand = async ( input: DescribeInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "inputName", () => input.inputName!, "{inputName}", false); + b.bp("/inputs/{inputName}"); + b.p("inputName", () => input.inputName!, "{inputName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -467,22 +363,15 @@ export const se_DescribeLoggingOptionsCommand = async ( input: DescribeLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging"; + b.bp("/logging"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -492,27 +381,17 @@ export const se_GetDetectorModelAnalysisResultsCommand = async ( input: GetDetectorModelAnalysisResultsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/analysis/detector-models/{analysisId}/results"; - resolvedPath = __resolvedPath(resolvedPath, input, "analysisId", () => input.analysisId!, "{analysisId}", false); + b.bp("/analysis/detector-models/{analysisId}/results"); + b.p("analysisId", () => input.analysisId!, "{analysisId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -522,24 +401,16 @@ export const se_ListAlarmModelsCommand = async ( input: ListAlarmModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models"; + b.bp("/alarm-models"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -549,33 +420,17 @@ export const se_ListAlarmModelVersionsCommand = async ( input: ListAlarmModelVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "alarmModelName", - () => input.alarmModelName!, - "{alarmModelName}", - false - ); + b.bp("/alarm-models/{alarmModelName}/versions"); + b.p("alarmModelName", () => input.alarmModelName!, "{alarmModelName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -585,24 +440,16 @@ export const se_ListDetectorModelsCommand = async ( input: ListDetectorModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models"; + b.bp("/detector-models"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -612,34 +459,17 @@ export const se_ListDetectorModelVersionsCommand = async ( input: ListDetectorModelVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detector-models/{detectorModelName}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "detectorModelName", - () => input.detectorModelName!, - "{detectorModelName}", - false - ); + b.bp("/detector-models/{detectorModelName}/versions"); + b.p("detectorModelName", () => input.detectorModelName!, "{detectorModelName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -649,11 +479,11 @@ export const se_ListInputRoutingsCommand = async ( input: ListInputRoutingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/input-routings"; + b.bp("/input-routings"); let body: any; body = JSON.stringify( take(input, { @@ -662,15 +492,8 @@ export const se_ListInputRoutingsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -680,24 +503,16 @@ export const se_ListInputsCommand = async ( input: ListInputsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs"; + b.bp("/inputs"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -707,23 +522,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -733,26 +540,19 @@ export const se_PutLoggingOptionsCommand = async ( input: PutLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging"; + b.bp("/logging"); let body: any; body = JSON.stringify( take(input, { loggingOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -762,27 +562,19 @@ export const se_StartDetectorModelAnalysisCommand = async ( input: StartDetectorModelAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analysis/detector-models"; + b.bp("/analysis/detector-models"); let body: any; body = JSON.stringify( take(input, { detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -792,13 +584,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -806,16 +598,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -825,27 +609,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], - tagKeys: [ + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -855,20 +631,12 @@ export const se_UpdateAlarmModelCommand = async ( input: UpdateAlarmModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "alarmModelName", - () => input.alarmModelName!, - "{alarmModelName}", - false - ); + b.bp("/alarm-models/{alarmModelName}"); + b.p("alarmModelName", () => input.alarmModelName!, "{alarmModelName}", false); let body: any; body = JSON.stringify( take(input, { @@ -881,15 +649,8 @@ export const se_UpdateAlarmModelCommand = async ( severity: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -899,20 +660,12 @@ export const se_UpdateDetectorModelCommand = async ( input: UpdateDetectorModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "detectorModelName", - () => input.detectorModelName!, - "{detectorModelName}", - false - ); + b.bp("/detector-models/{detectorModelName}"); + b.p("detectorModelName", () => input.detectorModelName!, "{detectorModelName}", false); let body: any; body = JSON.stringify( take(input, { @@ -922,15 +675,8 @@ export const se_UpdateDetectorModelCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -940,12 +686,12 @@ export const se_UpdateInputCommand = async ( input: UpdateInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "inputName", () => input.inputName!, "{inputName}", false); + b.bp("/inputs/{inputName}"); + b.p("inputName", () => input.inputName!, "{inputName}", false); let body: any; body = JSON.stringify( take(input, { @@ -953,15 +699,8 @@ export const se_UpdateInputCommand = async ( inputDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3180,6 +2919,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aMV = "alarmModelVersion"; +const _dMV = "detectorModelVersion"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rA = "resourceArn"; +const _tK = "tagKeys"; +const _v = "version"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-jobs-data-plane/package.json b/clients/client-iot-jobs-data-plane/package.json index 1b611c8c6622..134da11ae78b 100644 --- a/clients/client-iot-jobs-data-plane/package.json +++ b/clients/client-iot-jobs-data-plane/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts b/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts index da02ac0d53c7..179daf5bcebc 100644 --- a/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -50,27 +51,18 @@ export const se_DescribeJobExecutionCommand = async ( input: DescribeJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - includeJobDocument: [() => input.includeJobDocument !== void 0, () => input.includeJobDocument!.toString()], - executionNumber: [() => input.executionNumber !== void 0, () => input.executionNumber!.toString()], + [_iJD]: [() => input.includeJobDocument !== void 0, () => input[_iJD]!.toString()], + [_eN]: [() => input.executionNumber !== void 0, () => input[_eN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -80,20 +72,13 @@ export const se_GetPendingJobExecutionsCommand = async ( input: GetPendingJobExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/jobs"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -103,13 +88,12 @@ export const se_StartNextPendingJobExecutionCommand = async ( input: StartNextPendingJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/$next"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/jobs/$next"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; body = JSON.stringify( take(input, { @@ -117,15 +101,8 @@ export const se_StartNextPendingJobExecutionCommand = async ( stepTimeoutInMinutes: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -135,14 +112,13 @@ export const se_UpdateJobExecutionCommand = async ( input: UpdateJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; body = JSON.stringify( take(input, { @@ -155,15 +131,8 @@ export const se_UpdateJobExecutionCommand = async ( stepTimeoutInMinutes: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -580,6 +549,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _eN = "executionNumber"; +const _iJD = "includeJobDocument"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-roborunner/package.json b/clients/client-iot-roborunner/package.json index 6a2c066d57db..f9a21e34053c 100644 --- a/clients/client-iot-roborunner/package.json +++ b/clients/client-iot-roborunner/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts b/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts index 157d8fb8c5af..9d5b6fe0aac1 100644 --- a/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-roborunner/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -70,11 +71,11 @@ export const se_CreateDestinationCommand = async ( input: CreateDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createDestination"; + b.bp("/createDestination"); let body: any; body = JSON.stringify( take(input, { @@ -85,15 +86,8 @@ export const se_CreateDestinationCommand = async ( state: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -103,11 +97,11 @@ export const se_CreateSiteCommand = async ( input: CreateSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createSite"; + b.bp("/createSite"); let body: any; body = JSON.stringify( take(input, { @@ -117,15 +111,8 @@ export const se_CreateSiteCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -135,11 +122,11 @@ export const se_CreateWorkerCommand = async ( input: CreateWorkerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createWorker"; + b.bp("/createWorker"); let body: any; body = JSON.stringify( take(input, { @@ -153,15 +140,8 @@ export const se_CreateWorkerCommand = async ( vendorProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -171,11 +151,11 @@ export const se_CreateWorkerFleetCommand = async ( input: CreateWorkerFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createWorkerFleet"; + b.bp("/createWorkerFleet"); let body: any; body = JSON.stringify( take(input, { @@ -185,15 +165,8 @@ export const se_CreateWorkerFleetCommand = async ( site: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,26 +176,19 @@ export const se_DeleteDestinationCommand = async ( input: DeleteDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteDestination"; + b.bp("/deleteDestination"); let body: any; body = JSON.stringify( take(input, { id: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -232,26 +198,19 @@ export const se_DeleteSiteCommand = async ( input: DeleteSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteSite"; + b.bp("/deleteSite"); let body: any; body = JSON.stringify( take(input, { id: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -261,26 +220,19 @@ export const se_DeleteWorkerCommand = async ( input: DeleteWorkerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteWorker"; + b.bp("/deleteWorker"); let body: any; body = JSON.stringify( take(input, { id: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -290,26 +242,19 @@ export const se_DeleteWorkerFleetCommand = async ( input: DeleteWorkerFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteWorkerFleet"; + b.bp("/deleteWorkerFleet"); let body: any; body = JSON.stringify( take(input, { id: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -319,23 +264,15 @@ export const se_GetDestinationCommand = async ( input: GetDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getDestination"; + b.bp("/getDestination"); const query: any = map({ - id: [, __expectNonNull(input.id!, `id`)], + [_i]: [, __expectNonNull(input[_i]!, `id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -345,23 +282,15 @@ export const se_GetSiteCommand = async ( input: GetSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getSite"; + b.bp("/getSite"); const query: any = map({ - id: [, __expectNonNull(input.id!, `id`)], + [_i]: [, __expectNonNull(input[_i]!, `id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -371,23 +300,15 @@ export const se_GetWorkerCommand = async ( input: GetWorkerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getWorker"; + b.bp("/getWorker"); const query: any = map({ - id: [, __expectNonNull(input.id!, `id`)], + [_i]: [, __expectNonNull(input[_i]!, `id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -397,23 +318,15 @@ export const se_GetWorkerFleetCommand = async ( input: GetWorkerFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getWorkerFleet"; + b.bp("/getWorkerFleet"); const query: any = map({ - id: [, __expectNonNull(input.id!, `id`)], + [_i]: [, __expectNonNull(input[_i]!, `id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -423,26 +336,18 @@ export const se_ListDestinationsCommand = async ( input: ListDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDestinations"; + b.bp("/listDestinations"); const query: any = map({ - site: [, __expectNonNull(input.site!, `site`)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - state: [, input.state!], + [_s]: [, __expectNonNull(input[_s]!, `site`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_st]: [, input[_st]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -452,24 +357,16 @@ export const se_ListSitesCommand = async ( input: ListSitesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listSites"; + b.bp("/listSites"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -479,25 +376,17 @@ export const se_ListWorkerFleetsCommand = async ( input: ListWorkerFleetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkerFleets"; + b.bp("/listWorkerFleets"); const query: any = map({ - site: [, __expectNonNull(input.site!, `site`)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_s]: [, __expectNonNull(input[_s]!, `site`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -507,26 +396,18 @@ export const se_ListWorkersCommand = async ( input: ListWorkersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkers"; + b.bp("/listWorkers"); const query: any = map({ - site: [, __expectNonNull(input.site!, `site`)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - fleet: [, input.fleet!], + [_s]: [, __expectNonNull(input[_s]!, `site`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_f]: [, input[_f]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -536,11 +417,11 @@ export const se_UpdateDestinationCommand = async ( input: UpdateDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDestination"; + b.bp("/updateDestination"); let body: any; body = JSON.stringify( take(input, { @@ -550,15 +431,8 @@ export const se_UpdateDestinationCommand = async ( state: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -568,11 +442,11 @@ export const se_UpdateSiteCommand = async ( input: UpdateSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateSite"; + b.bp("/updateSite"); let body: any; body = JSON.stringify( take(input, { @@ -582,15 +456,8 @@ export const se_UpdateSiteCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -600,11 +467,11 @@ export const se_UpdateWorkerCommand = async ( input: UpdateWorkerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateWorker"; + b.bp("/updateWorker"); let body: any; body = JSON.stringify( take(input, { @@ -617,15 +484,8 @@ export const se_UpdateWorkerCommand = async ( vendorProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -635,11 +495,11 @@ export const se_UpdateWorkerFleetCommand = async ( input: UpdateWorkerFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateWorkerFleet"; + b.bp("/updateWorkerFleet"); let body: any; body = JSON.stringify( take(input, { @@ -648,15 +508,8 @@ export const se_UpdateWorkerFleetCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2254,6 +2107,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _f = "fleet"; +const _i = "id"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _s = "site"; +const _st = "state"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot-wireless/package.json b/clients/client-iot-wireless/package.json index 323f739396da..8d0d3cdefa95 100644 --- a/clients/client-iot-wireless/package.json +++ b/clients/client-iot-wireless/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot-wireless/src/models/models_1.ts b/clients/client-iot-wireless/src/models/models_1.ts index f814b3259194..8cd658d71028 100644 --- a/clients/client-iot-wireless/src/models/models_1.ts +++ b/clients/client-iot-wireless/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { IoTWirelessServiceException as __BaseException } from "./IoTWirelessServiceException"; + import { ApplicationConfig, CertificateList, diff --git a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts index e60270972fad..b133f987cce7 100644 --- a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -501,11 +502,11 @@ export const se_AssociateAwsAccountWithPartnerAccountCommand = async ( input: AssociateAwsAccountWithPartnerAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts"; + b.bp("/partner-accounts"); let body: any; body = JSON.stringify( take(input, { @@ -514,15 +515,8 @@ export const se_AssociateAwsAccountWithPartnerAccountCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -532,28 +526,20 @@ export const se_AssociateMulticastGroupWithFuotaTaskCommand = async ( input: AssociateMulticastGroupWithFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/multicast-group"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/fuota-tasks/{Id}/multicast-group"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { MulticastGroupId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -563,28 +549,20 @@ export const se_AssociateWirelessDeviceWithFuotaTaskCommand = async ( input: AssociateWirelessDeviceWithFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/wireless-device"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/fuota-tasks/{Id}/wireless-device"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { WirelessDeviceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -594,28 +572,20 @@ export const se_AssociateWirelessDeviceWithMulticastGroupCommand = async ( input: AssociateWirelessDeviceWithMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/wireless-device"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}/wireless-device"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { WirelessDeviceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -625,28 +595,20 @@ export const se_AssociateWirelessDeviceWithThingCommand = async ( input: AssociateWirelessDeviceWithThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/thing"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}/thing"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { ThingArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -656,28 +618,20 @@ export const se_AssociateWirelessGatewayWithCertificateCommand = async ( input: AssociateWirelessGatewayWithCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/certificate"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { IotCertificateId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -687,28 +641,20 @@ export const se_AssociateWirelessGatewayWithThingCommand = async ( input: AssociateWirelessGatewayWithThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/thing"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/thing"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { ThingArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -718,21 +664,13 @@ export const se_CancelMulticastGroupSessionCommand = async ( input: CancelMulticastGroupSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}/session"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -742,11 +680,11 @@ export const se_CreateDestinationCommand = async ( input: CreateDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations"; + b.bp("/destinations"); let body: any; body = JSON.stringify( take(input, { @@ -759,15 +697,8 @@ export const se_CreateDestinationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -777,11 +708,11 @@ export const se_CreateDeviceProfileCommand = async ( input: CreateDeviceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles"; + b.bp("/device-profiles"); let body: any; body = JSON.stringify( take(input, { @@ -792,15 +723,8 @@ export const se_CreateDeviceProfileCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -810,11 +734,11 @@ export const se_CreateFuotaTaskCommand = async ( input: CreateFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks"; + b.bp("/fuota-tasks"); let body: any; body = JSON.stringify( take(input, { @@ -830,15 +754,8 @@ export const se_CreateFuotaTaskCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -848,11 +765,11 @@ export const se_CreateMulticastGroupCommand = async ( input: CreateMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups"; + b.bp("/multicast-groups"); let body: any; body = JSON.stringify( take(input, { @@ -863,15 +780,8 @@ export const se_CreateMulticastGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -881,12 +791,11 @@ export const se_CreateNetworkAnalyzerConfigurationCommand = async ( input: CreateNetworkAnalyzerConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/network-analyzer-configurations"; + b.bp("/network-analyzer-configurations"); let body: any; body = JSON.stringify( take(input, { @@ -900,15 +809,8 @@ export const se_CreateNetworkAnalyzerConfigurationCommand = async ( WirelessGateways: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -918,11 +820,11 @@ export const se_CreateServiceProfileCommand = async ( input: CreateServiceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles"; + b.bp("/service-profiles"); let body: any; body = JSON.stringify( take(input, { @@ -932,15 +834,8 @@ export const se_CreateServiceProfileCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -950,11 +845,11 @@ export const se_CreateWirelessDeviceCommand = async ( input: CreateWirelessDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices"; + b.bp("/wireless-devices"); let body: any; body = JSON.stringify( take(input, { @@ -969,15 +864,8 @@ export const se_CreateWirelessDeviceCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -987,11 +875,11 @@ export const se_CreateWirelessGatewayCommand = async ( input: CreateWirelessGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways"; + b.bp("/wireless-gateways"); let body: any; body = JSON.stringify( take(input, { @@ -1002,15 +890,8 @@ export const se_CreateWirelessGatewayCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1020,28 +901,20 @@ export const se_CreateWirelessGatewayTaskCommand = async ( input: CreateWirelessGatewayTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/tasks"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { WirelessGatewayTaskDefinitionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1051,12 +924,11 @@ export const se_CreateWirelessGatewayTaskDefinitionCommand = async ( input: CreateWirelessGatewayTaskDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions"; + b.bp("/wireless-gateway-task-definitions"); let body: any; body = JSON.stringify( take(input, { @@ -1067,15 +939,8 @@ export const se_CreateWirelessGatewayTaskDefinitionCommand = async ( Update: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1085,20 +950,13 @@ export const se_DeleteDestinationCommand = async ( input: DeleteDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/destinations/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1108,20 +966,13 @@ export const se_DeleteDeviceProfileCommand = async ( input: DeleteDeviceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/device-profiles/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1131,20 +982,13 @@ export const se_DeleteFuotaTaskCommand = async ( input: DeleteFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/fuota-tasks/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1154,20 +998,13 @@ export const se_DeleteMulticastGroupCommand = async ( input: DeleteMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1177,29 +1014,13 @@ export const se_DeleteNetworkAnalyzerConfigurationCommand = async ( input: DeleteNetworkAnalyzerConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/network-analyzer-configurations/{ConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationName", - () => input.ConfigurationName!, - "{ConfigurationName}", - false - ); + b.bp("/network-analyzer-configurations/{ConfigurationName}"); + b.p("ConfigurationName", () => input.ConfigurationName!, "{ConfigurationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1209,26 +1030,17 @@ export const se_DeleteQueuedMessagesCommand = async ( input: DeleteQueuedMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}/data"); + b.p("Id", () => input.Id!, "{Id}", false); const query: any = map({ - messageId: [, __expectNonNull(input.MessageId!, `MessageId`)], - WirelessDeviceType: [, input.WirelessDeviceType!], + [_mI]: [, __expectNonNull(input[_MI]!, `MessageId`)], + [_WDT]: [, input[_WDT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1238,20 +1050,13 @@ export const se_DeleteServiceProfileCommand = async ( input: DeleteServiceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/service-profiles/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1261,20 +1066,13 @@ export const se_DeleteWirelessDeviceCommand = async ( input: DeleteWirelessDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1284,21 +1082,13 @@ export const se_DeleteWirelessDeviceImportTaskCommand = async ( input: DeleteWirelessDeviceImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless_device_import_task/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1308,20 +1098,13 @@ export const se_DeleteWirelessGatewayCommand = async ( input: DeleteWirelessGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1331,21 +1114,13 @@ export const se_DeleteWirelessGatewayTaskCommand = async ( input: DeleteWirelessGatewayTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/tasks"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1355,21 +1130,13 @@ export const se_DeleteWirelessGatewayTaskDefinitionCommand = async ( input: DeleteWirelessGatewayTaskDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateway-task-definitions/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1379,25 +1146,16 @@ export const se_DeregisterWirelessDeviceCommand = async ( input: DeregisterWirelessDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}/deregister"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/wireless-devices/{Identifier}/deregister"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); const query: any = map({ - WirelessDeviceType: [, input.WirelessDeviceType!], + [_WDT]: [, input[_WDT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1407,32 +1165,16 @@ export const se_DisassociateAwsAccountFromPartnerAccountCommand = async ( input: DisassociateAwsAccountFromPartnerAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PartnerAccountId", - () => input.PartnerAccountId!, - "{PartnerAccountId}", - false - ); + b.bp("/partner-accounts/{PartnerAccountId}"); + b.p("PartnerAccountId", () => input.PartnerAccountId!, "{PartnerAccountId}", false); const query: any = map({ - partnerType: [, __expectNonNull(input.PartnerType!, `PartnerType`)], + [_pT]: [, __expectNonNull(input[_PT]!, `PartnerType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1442,30 +1184,14 @@ export const se_DisassociateMulticastGroupFromFuotaTaskCommand = async ( input: DisassociateMulticastGroupFromFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/fuota-tasks/{Id}/multicast-groups/{MulticastGroupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MulticastGroupId", - () => input.MulticastGroupId!, - "{MulticastGroupId}", - false - ); + b.bp("/fuota-tasks/{Id}/multicast-groups/{MulticastGroupId}"); + b.p("Id", () => input.Id!, "{Id}", false); + b.p("MulticastGroupId", () => input.MulticastGroupId!, "{MulticastGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1475,30 +1201,14 @@ export const se_DisassociateWirelessDeviceFromFuotaTaskCommand = async ( input: DisassociateWirelessDeviceFromFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/fuota-tasks/{Id}/wireless-devices/{WirelessDeviceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "WirelessDeviceId", - () => input.WirelessDeviceId!, - "{WirelessDeviceId}", - false - ); + b.bp("/fuota-tasks/{Id}/wireless-devices/{WirelessDeviceId}"); + b.p("Id", () => input.Id!, "{Id}", false); + b.p("WirelessDeviceId", () => input.WirelessDeviceId!, "{WirelessDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1508,30 +1218,14 @@ export const se_DisassociateWirelessDeviceFromMulticastGroupCommand = async ( input: DisassociateWirelessDeviceFromMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/multicast-groups/{Id}/wireless-devices/{WirelessDeviceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "WirelessDeviceId", - () => input.WirelessDeviceId!, - "{WirelessDeviceId}", - false - ); + b.bp("/multicast-groups/{Id}/wireless-devices/{WirelessDeviceId}"); + b.p("Id", () => input.Id!, "{Id}", false); + b.p("WirelessDeviceId", () => input.WirelessDeviceId!, "{WirelessDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1541,21 +1235,13 @@ export const se_DisassociateWirelessDeviceFromThingCommand = async ( input: DisassociateWirelessDeviceFromThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/thing"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}/thing"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1565,21 +1251,13 @@ export const se_DisassociateWirelessGatewayFromCertificateCommand = async ( input: DisassociateWirelessGatewayFromCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/certificate"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1589,21 +1267,13 @@ export const se_DisassociateWirelessGatewayFromThingCommand = async ( input: DisassociateWirelessGatewayFromThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/thing"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/thing"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1613,20 +1283,13 @@ export const se_GetDestinationCommand = async ( input: GetDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/destinations/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1636,20 +1299,13 @@ export const se_GetDeviceProfileCommand = async ( input: GetDeviceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/device-profiles/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1659,23 +1315,15 @@ export const se_GetEventConfigurationByResourceTypesCommand = async ( input: GetEventConfigurationByResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types"; + b.bp("/event-configurations-resource-types"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1685,20 +1333,13 @@ export const se_GetFuotaTaskCommand = async ( input: GetFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/fuota-tasks/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1708,22 +1349,15 @@ export const se_GetLogLevelsByResourceTypesCommand = async ( input: GetLogLevelsByResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels"; + b.bp("/log-levels"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1733,20 +1367,13 @@ export const se_GetMulticastGroupCommand = async ( input: GetMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1756,21 +1383,13 @@ export const se_GetMulticastGroupSessionCommand = async ( input: GetMulticastGroupSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}/session"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1780,29 +1399,13 @@ export const se_GetNetworkAnalyzerConfigurationCommand = async ( input: GetNetworkAnalyzerConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/network-analyzer-configurations/{ConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationName", - () => input.ConfigurationName!, - "{ConfigurationName}", - false - ); + b.bp("/network-analyzer-configurations/{ConfigurationName}"); + b.p("ConfigurationName", () => input.ConfigurationName!, "{ConfigurationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1812,32 +1415,16 @@ export const se_GetPartnerAccountCommand = async ( input: GetPartnerAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PartnerAccountId", - () => input.PartnerAccountId!, - "{PartnerAccountId}", - false - ); + b.bp("/partner-accounts/{PartnerAccountId}"); + b.p("PartnerAccountId", () => input.PartnerAccountId!, "{PartnerAccountId}", false); const query: any = map({ - partnerType: [, __expectNonNull(input.PartnerType!, `PartnerType`)], + [_pT]: [, __expectNonNull(input[_PT]!, `PartnerType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1847,32 +1434,16 @@ export const se_GetPositionCommand = async ( input: GetPositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/positions/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1882,33 +1453,16 @@ export const se_GetPositionConfigurationCommand = async ( input: GetPositionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/position-configurations/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/position-configurations/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1918,11 +1472,11 @@ export const se_GetPositionEstimateCommand = async ( input: GetPositionEstimateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/position-estimate"; + b.bp("/position-estimate"); let body: any; body = JSON.stringify( take(input, { @@ -1933,15 +1487,8 @@ export const se_GetPositionEstimateCommand = async ( WiFiAccessPoints: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1951,26 +1498,17 @@ export const se_GetResourceEventConfigurationCommand = async ( input: GetResourceEventConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/event-configurations/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); const query: any = map({ - identifierType: [, __expectNonNull(input.IdentifierType!, `IdentifierType`)], - partnerType: [, input.PartnerType!], + [_iT]: [, __expectNonNull(input[_IT]!, `IdentifierType`)], + [_pT]: [, input[_PT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1980,32 +1518,16 @@ export const se_GetResourceLogLevelCommand = async ( input: GetResourceLogLevelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/log-levels/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2015,32 +1537,16 @@ export const se_GetResourcePositionCommand = async ( input: GetResourcePositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/resource-positions/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2050,23 +1556,15 @@ export const se_GetServiceEndpointCommand = async ( input: GetServiceEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-endpoint"; + b.bp("/service-endpoint"); const query: any = map({ - serviceType: [, input.ServiceType!], + [_sT]: [, input[_ST]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2076,20 +1574,13 @@ export const se_GetServiceProfileCommand = async ( input: GetServiceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/service-profiles/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2099,25 +1590,16 @@ export const se_GetWirelessDeviceCommand = async ( input: GetWirelessDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/wireless-devices/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); const query: any = map({ - identifierType: [, __expectNonNull(input.IdentifierType!, `IdentifierType`)], + [_iT]: [, __expectNonNull(input[_IT]!, `IdentifierType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2127,21 +1609,13 @@ export const se_GetWirelessDeviceImportTaskCommand = async ( input: GetWirelessDeviceImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless_device_import_task/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2151,29 +1625,13 @@ export const se_GetWirelessDeviceStatisticsCommand = async ( input: GetWirelessDeviceStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/wireless-devices/{WirelessDeviceId}/statistics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "WirelessDeviceId", - () => input.WirelessDeviceId!, - "{WirelessDeviceId}", - false - ); + b.bp("/wireless-devices/{WirelessDeviceId}/statistics"); + b.p("WirelessDeviceId", () => input.WirelessDeviceId!, "{WirelessDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2183,25 +1641,16 @@ export const se_GetWirelessGatewayCommand = async ( input: GetWirelessGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/wireless-gateways/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); const query: any = map({ - identifierType: [, __expectNonNull(input.IdentifierType!, `IdentifierType`)], + [_iT]: [, __expectNonNull(input[_IT]!, `IdentifierType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2211,21 +1660,13 @@ export const se_GetWirelessGatewayCertificateCommand = async ( input: GetWirelessGatewayCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/certificate"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2235,22 +1676,13 @@ export const se_GetWirelessGatewayFirmwareInformationCommand = async ( input: GetWirelessGatewayFirmwareInformationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/wireless-gateways/{Id}/firmware-information"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/firmware-information"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2260,29 +1692,13 @@ export const se_GetWirelessGatewayStatisticsCommand = async ( input: GetWirelessGatewayStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/wireless-gateways/{WirelessGatewayId}/statistics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "WirelessGatewayId", - () => input.WirelessGatewayId!, - "{WirelessGatewayId}", - false - ); + b.bp("/wireless-gateways/{WirelessGatewayId}/statistics"); + b.p("WirelessGatewayId", () => input.WirelessGatewayId!, "{WirelessGatewayId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2292,21 +1708,13 @@ export const se_GetWirelessGatewayTaskCommand = async ( input: GetWirelessGatewayTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}/tasks"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2316,21 +1724,13 @@ export const se_GetWirelessGatewayTaskDefinitionCommand = async ( input: GetWirelessGatewayTaskDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateway-task-definitions/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2340,24 +1740,16 @@ export const se_ListDestinationsCommand = async ( input: ListDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations"; + b.bp("/destinations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2367,25 +1759,17 @@ export const se_ListDeviceProfilesCommand = async ( input: ListDeviceProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles"; + b.bp("/device-profiles"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - deviceProfileType: [, input.DeviceProfileType!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_dPT]: [, input[_DPT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2395,27 +1779,18 @@ export const se_ListDevicesForWirelessDeviceImportTaskCommand = async ( input: ListDevicesForWirelessDeviceImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task"; + b.bp("/wireless_device_import_task"); const query: any = map({ - id: [, __expectNonNull(input.Id!, `Id`)], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - status: [, input.Status!], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_s]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2425,25 +1800,17 @@ export const se_ListEventConfigurationsCommand = async ( input: ListEventConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations"; + b.bp("/event-configurations"); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2453,24 +1820,16 @@ export const se_ListFuotaTasksCommand = async ( input: ListFuotaTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks"; + b.bp("/fuota-tasks"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2480,24 +1839,16 @@ export const se_ListMulticastGroupsCommand = async ( input: ListMulticastGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups"; + b.bp("/multicast-groups"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2507,26 +1858,17 @@ export const se_ListMulticastGroupsByFuotaTaskCommand = async ( input: ListMulticastGroupsByFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/multicast-groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/fuota-tasks/{Id}/multicast-groups"); + b.p("Id", () => input.Id!, "{Id}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2536,25 +1878,16 @@ export const se_ListNetworkAnalyzerConfigurationsCommand = async ( input: ListNetworkAnalyzerConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/network-analyzer-configurations"; + b.bp("/network-analyzer-configurations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2564,24 +1897,16 @@ export const se_ListPartnerAccountsCommand = async ( input: ListPartnerAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts"; + b.bp("/partner-accounts"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2591,26 +1916,17 @@ export const se_ListPositionConfigurationsCommand = async ( input: ListPositionConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/position-configurations"; + b.bp("/position-configurations"); const query: any = map({ - resourceType: [, input.ResourceType!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_rT]: [, input[_RT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2620,27 +1936,18 @@ export const se_ListQueuedMessagesCommand = async ( input: ListQueuedMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}/data"); + b.p("Id", () => input.Id!, "{Id}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - WirelessDeviceType: [, input.WirelessDeviceType!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_WDT]: [, input[_WDT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2650,24 +1957,16 @@ export const se_ListServiceProfilesCommand = async ( input: ListServiceProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles"; + b.bp("/service-profiles"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2677,23 +1976,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], + [_rA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2703,25 +1994,16 @@ export const se_ListWirelessDeviceImportTasksCommand = async ( input: ListWirelessDeviceImportTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_tasks"; + b.bp("/wireless_device_import_tasks"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2731,30 +2013,22 @@ export const se_ListWirelessDevicesCommand = async ( input: ListWirelessDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices"; + b.bp("/wireless-devices"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - destinationName: [, input.DestinationName!], - deviceProfileId: [, input.DeviceProfileId!], - serviceProfileId: [, input.ServiceProfileId!], - wirelessDeviceType: [, input.WirelessDeviceType!], - fuotaTaskId: [, input.FuotaTaskId!], - multicastGroupId: [, input.MulticastGroupId!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_dN]: [, input[_DN]!], + [_dPI]: [, input[_DPI]!], + [_sPI]: [, input[_SPI]!], + [_wDT]: [, input[_WDT]!], + [_fTI]: [, input[_FTI]!], + [_mGI]: [, input[_MGI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2764,24 +2038,16 @@ export const se_ListWirelessGatewaysCommand = async ( input: ListWirelessGatewaysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways"; + b.bp("/wireless-gateways"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2791,26 +2057,17 @@ export const se_ListWirelessGatewayTaskDefinitionsCommand = async ( input: ListWirelessGatewayTaskDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions"; + b.bp("/wireless-gateway-task-definitions"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - taskDefinitionType: [, input.TaskDefinitionType!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_tDT]: [, input[_TDT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2820,23 +2077,14 @@ export const se_PutPositionConfigurationCommand = async ( input: PutPositionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/position-configurations/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/position-configurations/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; body = JSON.stringify( @@ -2845,16 +2093,8 @@ export const se_PutPositionConfigurationCommand = async ( Solvers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2864,22 +2104,14 @@ export const se_PutResourceLogLevelCommand = async ( input: PutResourceLogLevelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/log-levels/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; body = JSON.stringify( @@ -2887,16 +2119,8 @@ export const se_PutResourceLogLevelCommand = async ( LogLevel: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2906,22 +2130,15 @@ export const se_ResetAllResourceLogLevelsCommand = async ( input: ResetAllResourceLogLevelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels"; + b.bp("/log-levels"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2931,32 +2148,16 @@ export const se_ResetResourceLogLevelCommand = async ( input: ResetResourceLogLevelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/log-levels/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2966,13 +2167,12 @@ export const se_SendDataToMulticastGroupCommand = async ( input: SendDataToMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/data"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}/data"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -2980,15 +2180,8 @@ export const se_SendDataToMulticastGroupCommand = async ( WirelessMetadata: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2998,13 +2191,12 @@ export const se_SendDataToWirelessDeviceCommand = async ( input: SendDataToWirelessDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}/data"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3013,15 +2205,8 @@ export const se_SendDataToWirelessDeviceCommand = async ( WirelessMetadata: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3031,13 +2216,12 @@ export const se_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = asyn input: StartBulkAssociateWirelessDeviceWithMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/bulk"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}/bulk"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3045,15 +2229,8 @@ export const se_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = asyn Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3063,13 +2240,12 @@ export const se_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = a input: StartBulkDisassociateWirelessDeviceFromMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/bulk"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}/bulk"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3077,15 +2253,8 @@ export const se_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = a Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3095,27 +2264,20 @@ export const se_StartFuotaTaskCommand = async ( input: StartFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/fuota-tasks/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { LoRaWAN: (_) => se_LoRaWANStartFuotaTask(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3125,28 +2287,20 @@ export const se_StartMulticastGroupSessionCommand = async ( input: StartMulticastGroupSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}/session"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { LoRaWAN: (_) => se_LoRaWANMulticastSession(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3156,12 +2310,11 @@ export const se_StartSingleWirelessDeviceImportTaskCommand = async ( input: StartSingleWirelessDeviceImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_single_device_import_task"; + b.bp("/wireless_single_device_import_task"); let body: any; body = JSON.stringify( take(input, { @@ -3172,15 +2325,8 @@ export const se_StartSingleWirelessDeviceImportTaskCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3190,12 +2336,11 @@ export const se_StartWirelessDeviceImportTaskCommand = async ( input: StartWirelessDeviceImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task"; + b.bp("/wireless_device_import_task"); let body: any; body = JSON.stringify( take(input, { @@ -3205,15 +2350,8 @@ export const se_StartWirelessDeviceImportTaskCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3223,13 +2361,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], + [_rA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], }); let body: any; body = JSON.stringify( @@ -3237,16 +2375,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3256,21 +2386,13 @@ export const se_TestWirelessDeviceCommand = async ( input: TestWirelessDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/test"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}/test"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3280,27 +2402,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], - tagKeys: [ + [_rA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3310,12 +2424,12 @@ export const se_UpdateDestinationCommand = async ( input: UpdateDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/destinations/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -3325,15 +2439,8 @@ export const se_UpdateDestinationCommand = async ( RoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3343,12 +2450,11 @@ export const se_UpdateEventConfigurationByResourceTypesCommand = async ( input: UpdateEventConfigurationByResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types"; + b.bp("/event-configurations-resource-types"); let body: any; body = JSON.stringify( take(input, { @@ -3359,15 +2465,8 @@ export const se_UpdateEventConfigurationByResourceTypesCommand = async ( Proximity: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3377,12 +2476,12 @@ export const se_UpdateFuotaTaskCommand = async ( input: UpdateFuotaTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/fuota-tasks/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3396,15 +2495,8 @@ export const se_UpdateFuotaTaskCommand = async ( RedundancyPercent: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3414,11 +2506,11 @@ export const se_UpdateLogLevelsByResourceTypesCommand = async ( input: UpdateLogLevelsByResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels"; + b.bp("/log-levels"); let body: any; body = JSON.stringify( take(input, { @@ -3427,15 +2519,8 @@ export const se_UpdateLogLevelsByResourceTypesCommand = async ( WirelessGatewayLogOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3445,12 +2530,12 @@ export const se_UpdateMulticastGroupCommand = async ( input: UpdateMulticastGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/multicast-groups/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3459,15 +2544,8 @@ export const se_UpdateMulticastGroupCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3477,21 +2555,12 @@ export const se_UpdateNetworkAnalyzerConfigurationCommand = async ( input: UpdateNetworkAnalyzerConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/network-analyzer-configurations/{ConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationName", - () => input.ConfigurationName!, - "{ConfigurationName}", - false - ); + b.bp("/network-analyzer-configurations/{ConfigurationName}"); + b.p("ConfigurationName", () => input.ConfigurationName!, "{ConfigurationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -3505,15 +2574,8 @@ export const se_UpdateNetworkAnalyzerConfigurationCommand = async ( WirelessGatewaysToRemove: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3523,22 +2585,14 @@ export const se_UpdatePartnerAccountCommand = async ( input: UpdatePartnerAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PartnerAccountId", - () => input.PartnerAccountId!, - "{PartnerAccountId}", - false - ); + b.bp("/partner-accounts/{PartnerAccountId}"); + b.p("PartnerAccountId", () => input.PartnerAccountId!, "{PartnerAccountId}", false); const query: any = map({ - partnerType: [, __expectNonNull(input.PartnerType!, `PartnerType`)], + [_pT]: [, __expectNonNull(input[_PT]!, `PartnerType`)], }); let body: any; body = JSON.stringify( @@ -3546,16 +2600,8 @@ export const se_UpdatePartnerAccountCommand = async ( Sidewalk: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3565,22 +2611,14 @@ export const se_UpdatePositionCommand = async ( input: UpdatePositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/positions/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; body = JSON.stringify( @@ -3588,16 +2626,8 @@ export const se_UpdatePositionCommand = async ( Position: (_) => se_PositionCoordinate(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3607,16 +2637,15 @@ export const se_UpdateResourceEventConfigurationCommand = async ( input: UpdateResourceEventConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/event-configurations/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); const query: any = map({ - identifierType: [, __expectNonNull(input.IdentifierType!, `IdentifierType`)], - partnerType: [, input.PartnerType!], + [_iT]: [, __expectNonNull(input[_IT]!, `IdentifierType`)], + [_pT]: [, input[_PT]!], }); let body: any; body = JSON.stringify( @@ -3628,16 +2657,8 @@ export const se_UpdateResourceEventConfigurationCommand = async ( Proximity: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3647,37 +2668,21 @@ export const se_UpdateResourcePositionCommand = async ( input: UpdateResourcePositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/resource-positions/{ResourceIdentifier}"); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - resourceType: [, __expectNonNull(input.ResourceType!, `ResourceType`)], + [_rT]: [, __expectNonNull(input[_RT]!, `ResourceType`)], }); let body: any; if (input.GeoJsonPayload !== undefined) { body = input.GeoJsonPayload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3687,12 +2692,12 @@ export const se_UpdateWirelessDeviceCommand = async ( input: UpdateWirelessDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-devices/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3703,15 +2708,8 @@ export const se_UpdateWirelessDeviceCommand = async ( Positioning: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3721,28 +2719,20 @@ export const se_UpdateWirelessDeviceImportTaskCommand = async ( input: UpdateWirelessDeviceImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless_device_import_task/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { Sidewalk: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3752,12 +2742,12 @@ export const se_UpdateWirelessGatewayCommand = async ( input: UpdateWirelessGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/wireless-gateways/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3768,15 +2758,8 @@ export const se_UpdateWirelessGatewayCommand = async ( NetIdFilters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -11091,6 +10074,45 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DN = "DestinationName"; +const _DPI = "DeviceProfileId"; +const _DPT = "DeviceProfileType"; +const _FTI = "FuotaTaskId"; +const _I = "Id"; +const _IT = "IdentifierType"; +const _MGI = "MulticastGroupId"; +const _MI = "MessageId"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _PT = "PartnerType"; +const _RA = "ResourceArn"; +const _RT = "ResourceType"; +const _S = "Status"; +const _SPI = "ServiceProfileId"; +const _ST = "ServiceType"; +const _TDT = "TaskDefinitionType"; +const _TK = "TagKeys"; +const _WDT = "WirelessDeviceType"; +const _dN = "destinationName"; +const _dPI = "deviceProfileId"; +const _dPT = "deviceProfileType"; +const _fTI = "fuotaTaskId"; +const _i = "id"; +const _iT = "identifierType"; +const _mGI = "multicastGroupId"; +const _mI = "messageId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pT = "partnerType"; +const _rA = "resourceArn"; +const _rT = "resourceType"; +const _s = "status"; +const _sPI = "serviceProfileId"; +const _sT = "serviceType"; +const _tDT = "taskDefinitionType"; +const _tK = "tagKeys"; +const _wDT = "wirelessDeviceType"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iot/package.json b/clients/client-iot/package.json index b50710e99c2a..03d1fc39083e 100644 --- a/clients/client-iot/package.json +++ b/clients/client-iot/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iot/src/models/models_1.ts b/clients/client-iot/src/models/models_1.ts index 7f614308c46a..7a05c55d9883 100644 --- a/clients/client-iot/src/models/models_1.ts +++ b/clients/client-iot/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { IoTServiceException as __BaseException } from "./IoTServiceException"; + import { AbortConfig, Action, diff --git a/clients/client-iot/src/models/models_2.ts b/clients/client-iot/src/models/models_2.ts index 032d4171f59d..473a21e1081e 100644 --- a/clients/client-iot/src/models/models_2.ts +++ b/clients/client-iot/src/models/models_2.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; import { IoTServiceException as __BaseException } from "./IoTServiceException"; + import { AbortConfig, AggregationType, @@ -50,6 +51,7 @@ import { VerificationState, ViolationEventAdditionalInfo, } from "./models_0"; + import { BehaviorCriteriaType, CACertificateStatus, diff --git a/clients/client-iot/src/protocols/Aws_restJson1.ts b/clients/client-iot/src/protocols/Aws_restJson1.ts index d7b2d5f8404f..c7772d42c196 100644 --- a/clients/client-iot/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -946,33 +947,16 @@ export const se_AcceptCertificateTransferCommand = async ( input: AcceptCertificateTransferCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accept-certificate-transfer/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/accept-certificate-transfer/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); const query: any = map({ - setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive!.toString()], + [_sAA]: [() => input.setAsActive !== void 0, () => input[_sAA]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -982,12 +966,11 @@ export const se_AddThingToBillingGroupCommand = async ( input: AddThingToBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/addThingToBillingGroup"; + b.bp("/billing-groups/addThingToBillingGroup"); let body: any; body = JSON.stringify( take(input, { @@ -997,15 +980,8 @@ export const se_AddThingToBillingGroupCommand = async ( thingName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1015,12 +991,11 @@ export const se_AddThingToThingGroupCommand = async ( input: AddThingToThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/addThingToThingGroup"; + b.bp("/thing-groups/addThingToThingGroup"); let body: any; body = JSON.stringify( take(input, { @@ -1031,15 +1006,8 @@ export const se_AddThingToThingGroupCommand = async ( thingName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1049,14 +1017,14 @@ export const se_AssociateTargetsWithJobCommand = async ( input: AssociateTargetsWithJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/targets"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}/targets"); + b.p("jobId", () => input.jobId!, "{jobId}", false); const query: any = map({ - namespaceId: [, input.namespaceId!], + [_nI]: [, input[_nI]!], }); let body: any; body = JSON.stringify( @@ -1065,16 +1033,8 @@ export const se_AssociateTargetsWithJobCommand = async ( targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1084,28 +1044,20 @@ export const se_AttachPolicyCommand = async ( input: AttachPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/target-policies/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/target-policies/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; body = JSON.stringify( take(input, { target: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1115,23 +1067,15 @@ export const se_AttachPrincipalPolicyCommand = async ( input: AttachPrincipalPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-iot-principal": input.principal!, + [_xaip]: input[_p]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principal-policies/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/principal-policies/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1141,33 +1085,16 @@ export const se_AttachSecurityProfileCommand = async ( input: AttachSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles/{securityProfileName}/targets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "securityProfileName", - () => input.securityProfileName!, - "{securityProfileName}", - false - ); + b.bp("/security-profiles/{securityProfileName}/targets"); + b.p("securityProfileName", () => input.securityProfileName!, "{securityProfileName}", false); const query: any = map({ - securityProfileTargetArn: [, __expectNonNull(input.securityProfileTargetArn!, `securityProfileTargetArn`)], + [_sPTA]: [, __expectNonNull(input[_sPTA]!, `securityProfileTargetArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1177,23 +1104,15 @@ export const se_AttachThingPrincipalCommand = async ( input: AttachThingPrincipalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-principal": input.principal!, + [_xap]: input[_p]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/principals"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/principals"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1203,22 +1122,13 @@ export const se_CancelAuditMitigationActionsTaskCommand = async ( input: CancelAuditMitigationActionsTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/audit/mitigationactions/tasks/{taskId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/audit/mitigationactions/tasks/{taskId}/cancel"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1228,21 +1138,13 @@ export const se_CancelAuditTaskCommand = async ( input: CancelAuditTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks/{taskId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/audit/tasks/{taskId}/cancel"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1252,29 +1154,13 @@ export const se_CancelCertificateTransferCommand = async ( input: CancelCertificateTransferCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/cancel-certificate-transfer/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/cancel-certificate-transfer/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1284,22 +1170,13 @@ export const se_CancelDetectMitigationActionsTaskCommand = async ( input: CancelDetectMitigationActionsTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/detect/mitigationactions/tasks/{taskId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/detect/mitigationactions/tasks/{taskId}/cancel"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1309,14 +1186,14 @@ export const se_CancelJobCommand = async ( input: CancelJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}/cancel"); + b.p("jobId", () => input.jobId!, "{jobId}", false); const query: any = map({ - force: [() => input.force !== void 0, () => input.force!.toString()], + [_f]: [() => input.force !== void 0, () => input[_f]!.toString()], }); let body: any; body = JSON.stringify( @@ -1325,16 +1202,8 @@ export const se_CancelJobCommand = async ( reasonCode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1344,16 +1213,15 @@ export const se_CancelJobExecutionCommand = async ( input: CancelJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/{jobId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/jobs/{jobId}/cancel"); + b.p("jobId", () => input.jobId!, "{jobId}", false); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - force: [() => input.force !== void 0, () => input.force!.toString()], + [_f]: [() => input.force !== void 0, () => input[_f]!.toString()], }); let body: any; body = JSON.stringify( @@ -1362,16 +1230,8 @@ export const se_CancelJobExecutionCommand = async ( statusDetails: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1381,22 +1241,15 @@ export const se_ClearDefaultAuthorizerCommand = async ( input: ClearDefaultAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer"; + b.bp("/default-authorizer"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1406,28 +1259,13 @@ export const se_ConfirmTopicRuleDestinationCommand = async ( input: ConfirmTopicRuleDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/confirmdestination/{confirmationToken+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "confirmationToken", - () => input.confirmationToken!, - "{confirmationToken+}", - true - ); + b.bp("/confirmdestination/{confirmationToken+}"); + b.p("confirmationToken", () => input.confirmationToken!, "{confirmationToken+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1437,12 +1275,11 @@ export const se_CreateAuditSuppressionCommand = async ( input: CreateAuditSuppressionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/create"; + b.bp("/audit/suppressions/create"); let body: any; body = JSON.stringify( take(input, { @@ -1454,15 +1291,8 @@ export const se_CreateAuditSuppressionCommand = async ( suppressIndefinitely: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1472,20 +1302,12 @@ export const se_CreateAuthorizerCommand = async ( input: CreateAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerName", - () => input.authorizerName!, - "{authorizerName}", - false - ); + b.bp("/authorizer/{authorizerName}"); + b.p("authorizerName", () => input.authorizerName!, "{authorizerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1498,15 +1320,8 @@ export const se_CreateAuthorizerCommand = async ( tokenSigningPublicKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1516,20 +1331,12 @@ export const se_CreateBillingGroupCommand = async ( input: CreateBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "billingGroupName", - () => input.billingGroupName!, - "{billingGroupName}", - false - ); + b.bp("/billing-groups/{billingGroupName}"); + b.p("billingGroupName", () => input.billingGroupName!, "{billingGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1537,15 +1344,8 @@ export const se_CreateBillingGroupCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1555,13 +1355,13 @@ export const se_CreateCertificateFromCsrCommand = async ( input: CreateCertificateFromCsrCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates"; + b.bp("/certificates"); const query: any = map({ - setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive!.toString()], + [_sAA]: [() => input.setAsActive !== void 0, () => input[_sAA]!.toString()], }); let body: any; body = JSON.stringify( @@ -1569,16 +1369,8 @@ export const se_CreateCertificateFromCsrCommand = async ( certificateSigningRequest: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1588,21 +1380,12 @@ export const se_CreateCertificateProviderCommand = async ( input: CreateCertificateProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/certificate-providers/{certificateProviderName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateProviderName", - () => input.certificateProviderName!, - "{certificateProviderName}", - false - ); + b.bp("/certificate-providers/{certificateProviderName}"); + b.p("certificateProviderName", () => input.certificateProviderName!, "{certificateProviderName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1612,15 +1395,8 @@ export const se_CreateCertificateProviderCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1630,13 +1406,12 @@ export const se_CreateCustomMetricCommand = async ( input: CreateCustomMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/custom-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1646,15 +1421,8 @@ export const se_CreateCustomMetricCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1664,12 +1432,12 @@ export const se_CreateDimensionCommand = async ( input: CreateDimensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/dimensions/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1679,15 +1447,8 @@ export const se_CreateDimensionCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1697,21 +1458,12 @@ export const se_CreateDomainConfigurationCommand = async ( input: CreateDomainConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainConfigurations/{domainConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainConfigurationName", - () => input.domainConfigurationName!, - "{domainConfigurationName}", - false - ); + b.bp("/domainConfigurations/{domainConfigurationName}"); + b.p("domainConfigurationName", () => input.domainConfigurationName!, "{domainConfigurationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1724,15 +1476,8 @@ export const se_CreateDomainConfigurationCommand = async ( validationCertificateArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1742,20 +1487,12 @@ export const se_CreateDynamicThingGroupCommand = async ( input: CreateDynamicThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dynamic-thing-groups/{thingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/dynamic-thing-groups/{thingGroupName}"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1766,15 +1503,8 @@ export const se_CreateDynamicThingGroupCommand = async ( thingGroupProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1784,13 +1514,12 @@ export const se_CreateFleetMetricCommand = async ( input: CreateFleetMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/fleet-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1805,15 +1534,8 @@ export const se_CreateFleetMetricCommand = async ( unit: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1823,12 +1545,12 @@ export const se_CreateJobCommand = async ( input: CreateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1850,15 +1572,8 @@ export const se_CreateJobCommand = async ( timeoutConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1868,20 +1583,12 @@ export const se_CreateJobTemplateCommand = async ( input: CreateJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates/{jobTemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "jobTemplateId", - () => input.jobTemplateId!, - "{jobTemplateId}", - false - ); + b.bp("/job-templates/{jobTemplateId}"); + b.p("jobTemplateId", () => input.jobTemplateId!, "{jobTemplateId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1899,15 +1606,8 @@ export const se_CreateJobTemplateCommand = async ( timeoutConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1917,23 +1617,15 @@ export const se_CreateKeysAndCertificateCommand = async ( input: CreateKeysAndCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/keys-and-certificate"; + b.bp("/keys-and-certificate"); const query: any = map({ - setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive!.toString()], + [_sAA]: [() => input.setAsActive !== void 0, () => input[_sAA]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1943,13 +1635,12 @@ export const se_CreateMitigationActionCommand = async ( input: CreateMitigationActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "actionName", () => input.actionName!, "{actionName}", false); + b.bp("/mitigationactions/actions/{actionName}"); + b.p("actionName", () => input.actionName!, "{actionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1958,15 +1649,8 @@ export const se_CreateMitigationActionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1976,13 +1660,12 @@ export const se_CreateOTAUpdateCommand = async ( input: CreateOTAUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates/{otaUpdateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "otaUpdateId", () => input.otaUpdateId!, "{otaUpdateId}", false); + b.bp("/otaUpdates/{otaUpdateId}"); + b.p("otaUpdateId", () => input.otaUpdateId!, "{otaUpdateId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2000,15 +1683,8 @@ export const se_CreateOTAUpdateCommand = async ( targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2018,14 +1694,14 @@ export const se_CreatePackageCommand = async ( input: CreatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); + b.bp("/packages/{packageName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; body = JSON.stringify( @@ -2034,16 +1710,8 @@ export const se_CreatePackageCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2053,17 +1721,15 @@ export const se_CreatePackageVersionCommand = async ( input: CreatePackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/packages/{packageName}/versions/{versionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + b.bp("/packages/{packageName}/versions/{versionName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); + b.p("versionName", () => input.versionName!, "{versionName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; body = JSON.stringify( @@ -2073,16 +1739,8 @@ export const se_CreatePackageVersionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2092,12 +1750,12 @@ export const se_CreatePolicyCommand = async ( input: CreatePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/policies/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2105,15 +1763,8 @@ export const se_CreatePolicyCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2123,15 +1774,14 @@ export const se_CreatePolicyVersionCommand = async ( input: CreatePolicyVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}/version"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/policies/{policyName}/version"); + b.p("policyName", () => input.policyName!, "{policyName}", false); const query: any = map({ - setAsDefault: [() => input.setAsDefault !== void 0, () => input.setAsDefault!.toString()], + [_sAD]: [() => input.setAsDefault !== void 0, () => input[_sAD]!.toString()], }); let body: any; body = JSON.stringify( @@ -2139,16 +1789,8 @@ export const se_CreatePolicyVersionCommand = async ( policyDocument: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2158,29 +1800,13 @@ export const se_CreateProvisioningClaimCommand = async ( input: CreateProvisioningClaimCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioning-templates/{templateName}/provisioning-claim"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); + b.bp("/provisioning-templates/{templateName}/provisioning-claim"); + b.p("templateName", () => input.templateName!, "{templateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2190,12 +1816,11 @@ export const se_CreateProvisioningTemplateCommand = async ( input: CreateProvisioningTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates"; + b.bp("/provisioning-templates"); let body: any; body = JSON.stringify( take(input, { @@ -2209,15 +1834,8 @@ export const se_CreateProvisioningTemplateCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2227,23 +1845,14 @@ export const se_CreateProvisioningTemplateVersionCommand = async ( input: CreateProvisioningTemplateVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioning-templates/{templateName}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); + b.bp("/provisioning-templates/{templateName}/versions"); + b.p("templateName", () => input.templateName!, "{templateName}", false); const query: any = map({ - setAsDefault: [() => input.setAsDefault !== void 0, () => input.setAsDefault!.toString()], + [_sAD]: [() => input.setAsDefault !== void 0, () => input[_sAD]!.toString()], }); let body: any; body = JSON.stringify( @@ -2251,16 +1860,8 @@ export const se_CreateProvisioningTemplateVersionCommand = async ( templateBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2270,13 +1871,12 @@ export const se_CreateRoleAliasCommand = async ( input: CreateRoleAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "roleAlias", () => input.roleAlias!, "{roleAlias}", false); + b.bp("/role-aliases/{roleAlias}"); + b.p("roleAlias", () => input.roleAlias!, "{roleAlias}", false); let body: any; body = JSON.stringify( take(input, { @@ -2285,15 +1885,8 @@ export const se_CreateRoleAliasCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2303,21 +1896,12 @@ export const se_CreateScheduledAuditCommand = async ( input: CreateScheduledAuditCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/audit/scheduledaudits/{scheduledAuditName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "scheduledAuditName", - () => input.scheduledAuditName!, - "{scheduledAuditName}", - false - ); + b.bp("/audit/scheduledaudits/{scheduledAuditName}"); + b.p("scheduledAuditName", () => input.scheduledAuditName!, "{scheduledAuditName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2328,15 +1912,8 @@ export const se_CreateScheduledAuditCommand = async ( targetCheckNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2346,20 +1923,12 @@ export const se_CreateSecurityProfileCommand = async ( input: CreateSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "securityProfileName", - () => input.securityProfileName!, - "{securityProfileName}", - false - ); + b.bp("/security-profiles/{securityProfileName}"); + b.p("securityProfileName", () => input.securityProfileName!, "{securityProfileName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2372,15 +1941,8 @@ export const se_CreateSecurityProfileCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2390,12 +1952,12 @@ export const se_CreateStreamCommand = async ( input: CreateStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "streamId", () => input.streamId!, "{streamId}", false); + b.bp("/streams/{streamId}"); + b.p("streamId", () => input.streamId!, "{streamId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2405,15 +1967,8 @@ export const se_CreateStreamCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2423,12 +1978,12 @@ export const se_CreateThingCommand = async ( input: CreateThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2437,15 +1992,8 @@ export const se_CreateThingCommand = async ( thingTypeName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2455,20 +2003,12 @@ export const se_CreateThingGroupCommand = async ( input: CreateThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/thing-groups/{thingGroupName}"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2477,15 +2017,8 @@ export const se_CreateThingGroupCommand = async ( thingGroupProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2495,20 +2028,12 @@ export const se_CreateThingTypeCommand = async ( input: CreateThingTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingTypeName", - () => input.thingTypeName!, - "{thingTypeName}", - false - ); + b.bp("/thing-types/{thingTypeName}"); + b.p("thingTypeName", () => input.thingTypeName!, "{thingTypeName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2516,15 +2041,8 @@ export const se_CreateThingTypeCommand = async ( thingTypeProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2534,13 +2052,13 @@ export const se_CreateTopicRuleCommand = async ( input: CreateTopicRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-tagging": input.tags!, + [_xat]: input[_t]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/rules/{ruleName}"); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; if (input.topicRulePayload !== undefined) { body = _json(input.topicRulePayload); @@ -2549,15 +2067,8 @@ export const se_CreateTopicRuleCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2567,26 +2078,19 @@ export const se_CreateTopicRuleDestinationCommand = async ( input: CreateTopicRuleDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations"; + b.bp("/destinations"); let body: any; body = JSON.stringify( take(input, { destinationConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2596,26 +2100,15 @@ export const se_DeleteAccountAuditConfigurationCommand = async ( input: DeleteAccountAuditConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration"; + b.bp("/audit/configuration"); const query: any = map({ - deleteScheduledAudits: [ - () => input.deleteScheduledAudits !== void 0, - () => input.deleteScheduledAudits!.toString(), - ], + [_dSA]: [() => input.deleteScheduledAudits !== void 0, () => input[_dSA]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2625,12 +2118,11 @@ export const se_DeleteAuditSuppressionCommand = async ( input: DeleteAuditSuppressionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/delete"; + b.bp("/audit/suppressions/delete"); let body: any; body = JSON.stringify( take(input, { @@ -2638,15 +2130,8 @@ export const se_DeleteAuditSuppressionCommand = async ( resourceIdentifier: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2656,28 +2141,13 @@ export const se_DeleteAuthorizerCommand = async ( input: DeleteAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerName", - () => input.authorizerName!, - "{authorizerName}", - false - ); + b.bp("/authorizer/{authorizerName}"); + b.p("authorizerName", () => input.authorizerName!, "{authorizerName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2687,32 +2157,16 @@ export const se_DeleteBillingGroupCommand = async ( input: DeleteBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "billingGroupName", - () => input.billingGroupName!, - "{billingGroupName}", - false - ); + b.bp("/billing-groups/{billingGroupName}"); + b.p("billingGroupName", () => input.billingGroupName!, "{billingGroupName}", false); const query: any = map({ - expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion!.toString()], + [_eV]: [() => input.expectedVersion !== void 0, () => input[_eV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2722,28 +2176,13 @@ export const se_DeleteCACertificateCommand = async ( input: DeleteCACertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/cacertificate/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2753,32 +2192,16 @@ export const se_DeleteCertificateCommand = async ( input: DeleteCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/certificates/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); const query: any = map({ - forceDelete: [() => input.forceDelete !== void 0, () => input.forceDelete!.toString()], + [_fD]: [() => input.forceDelete !== void 0, () => input[_fD]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2788,29 +2211,13 @@ export const se_DeleteCertificateProviderCommand = async ( input: DeleteCertificateProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/certificate-providers/{certificateProviderName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateProviderName", - () => input.certificateProviderName!, - "{certificateProviderName}", - false - ); + b.bp("/certificate-providers/{certificateProviderName}"); + b.p("certificateProviderName", () => input.certificateProviderName!, "{certificateProviderName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2820,21 +2227,13 @@ export const se_DeleteCustomMetricCommand = async ( input: DeleteCustomMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/custom-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2844,20 +2243,13 @@ export const se_DeleteDimensionCommand = async ( input: DeleteDimensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/dimensions/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2867,29 +2259,13 @@ export const se_DeleteDomainConfigurationCommand = async ( input: DeleteDomainConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainConfigurations/{domainConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainConfigurationName", - () => input.domainConfigurationName!, - "{domainConfigurationName}", - false - ); + b.bp("/domainConfigurations/{domainConfigurationName}"); + b.p("domainConfigurationName", () => input.domainConfigurationName!, "{domainConfigurationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2899,32 +2275,16 @@ export const se_DeleteDynamicThingGroupCommand = async ( input: DeleteDynamicThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dynamic-thing-groups/{thingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/dynamic-thing-groups/{thingGroupName}"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); const query: any = map({ - expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion!.toString()], + [_eV]: [() => input.expectedVersion !== void 0, () => input[_eV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2934,25 +2294,16 @@ export const se_DeleteFleetMetricCommand = async ( input: DeleteFleetMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/fleet-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); const query: any = map({ - expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion!.toString()], + [_eV]: [() => input.expectedVersion !== void 0, () => input[_eV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2962,25 +2313,17 @@ export const se_DeleteJobCommand = async ( input: DeleteJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); const query: any = map({ - force: [() => input.force !== void 0, () => input.force!.toString()], - namespaceId: [, input.namespaceId!], + [_f]: [() => input.force !== void 0, () => input[_f]!.toString()], + [_nI]: [, input[_nI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2990,36 +2333,19 @@ export const se_DeleteJobExecutionCommand = async ( input: DeleteJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/things/{thingName}/jobs/{jobId}/executionNumber/{executionNumber}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "executionNumber", - () => input.executionNumber!.toString(), - "{executionNumber}", - false - ); + b.bp("/things/{thingName}/jobs/{jobId}/executionNumber/{executionNumber}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); + b.p("thingName", () => input.thingName!, "{thingName}", false); + b.p("executionNumber", () => input.executionNumber!.toString(), "{executionNumber}", false); const query: any = map({ - force: [() => input.force !== void 0, () => input.force!.toString()], - namespaceId: [, input.namespaceId!], + [_f]: [() => input.force !== void 0, () => input[_f]!.toString()], + [_nI]: [, input[_nI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3029,28 +2355,13 @@ export const se_DeleteJobTemplateCommand = async ( input: DeleteJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates/{jobTemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "jobTemplateId", - () => input.jobTemplateId!, - "{jobTemplateId}", - false - ); + b.bp("/job-templates/{jobTemplateId}"); + b.p("jobTemplateId", () => input.jobTemplateId!, "{jobTemplateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3060,21 +2371,13 @@ export const se_DeleteMitigationActionCommand = async ( input: DeleteMitigationActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "actionName", () => input.actionName!, "{actionName}", false); + b.bp("/mitigationactions/actions/{actionName}"); + b.p("actionName", () => input.actionName!, "{actionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3084,26 +2387,17 @@ export const se_DeleteOTAUpdateCommand = async ( input: DeleteOTAUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates/{otaUpdateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "otaUpdateId", () => input.otaUpdateId!, "{otaUpdateId}", false); + b.bp("/otaUpdates/{otaUpdateId}"); + b.p("otaUpdateId", () => input.otaUpdateId!, "{otaUpdateId}", false); const query: any = map({ - deleteStream: [() => input.deleteStream !== void 0, () => input.deleteStream!.toString()], - forceDeleteAWSJob: [() => input.forceDeleteAWSJob !== void 0, () => input.forceDeleteAWSJob!.toString()], + [_dS]: [() => input.deleteStream !== void 0, () => input[_dS]!.toString()], + [_fDAWSJ]: [() => input.forceDeleteAWSJob !== void 0, () => input[_fDAWSJ]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3113,24 +2407,16 @@ export const se_DeletePackageCommand = async ( input: DeletePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); + b.bp("/packages/{packageName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3140,27 +2426,17 @@ export const se_DeletePackageVersionCommand = async ( input: DeletePackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/packages/{packageName}/versions/{versionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + b.bp("/packages/{packageName}/versions/{versionName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); + b.p("versionName", () => input.versionName!, "{versionName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3170,20 +2446,13 @@ export const se_DeletePolicyCommand = async ( input: DeletePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/policies/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3193,30 +2462,14 @@ export const se_DeletePolicyVersionCommand = async ( input: DeletePolicyVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/policies/{policyName}/version/{policyVersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "policyVersionId", - () => input.policyVersionId!, - "{policyVersionId}", - false - ); + b.bp("/policies/{policyName}/version/{policyVersionId}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); + b.p("policyVersionId", () => input.policyVersionId!, "{policyVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3226,28 +2479,13 @@ export const se_DeleteProvisioningTemplateCommand = async ( input: DeleteProvisioningTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates/{templateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); + b.bp("/provisioning-templates/{templateName}"); + b.p("templateName", () => input.templateName!, "{templateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3257,37 +2495,14 @@ export const se_DeleteProvisioningTemplateVersionCommand = async ( input: DeleteProvisioningTemplateVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioning-templates/{templateName}/versions/{versionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "versionId", - () => input.versionId!.toString(), - "{versionId}", - false - ); + b.bp("/provisioning-templates/{templateName}/versions/{versionId}"); + b.p("templateName", () => input.templateName!, "{templateName}", false); + b.p("versionId", () => input.versionId!.toString(), "{versionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3297,22 +2512,15 @@ export const se_DeleteRegistrationCodeCommand = async ( input: DeleteRegistrationCodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/registrationcode"; + b.bp("/registrationcode"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3322,21 +2530,13 @@ export const se_DeleteRoleAliasCommand = async ( input: DeleteRoleAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "roleAlias", () => input.roleAlias!, "{roleAlias}", false); + b.bp("/role-aliases/{roleAlias}"); + b.p("roleAlias", () => input.roleAlias!, "{roleAlias}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3346,29 +2546,13 @@ export const se_DeleteScheduledAuditCommand = async ( input: DeleteScheduledAuditCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/audit/scheduledaudits/{scheduledAuditName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "scheduledAuditName", - () => input.scheduledAuditName!, - "{scheduledAuditName}", - false - ); + b.bp("/audit/scheduledaudits/{scheduledAuditName}"); + b.p("scheduledAuditName", () => input.scheduledAuditName!, "{scheduledAuditName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3378,32 +2562,16 @@ export const se_DeleteSecurityProfileCommand = async ( input: DeleteSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "securityProfileName", - () => input.securityProfileName!, - "{securityProfileName}", - false - ); + b.bp("/security-profiles/{securityProfileName}"); + b.p("securityProfileName", () => input.securityProfileName!, "{securityProfileName}", false); const query: any = map({ - expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion!.toString()], + [_eV]: [() => input.expectedVersion !== void 0, () => input[_eV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3413,20 +2581,13 @@ export const se_DeleteStreamCommand = async ( input: DeleteStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "streamId", () => input.streamId!, "{streamId}", false); + b.bp("/streams/{streamId}"); + b.p("streamId", () => input.streamId!, "{streamId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3436,24 +2597,16 @@ export const se_DeleteThingCommand = async ( input: DeleteThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion!.toString()], + [_eV]: [() => input.expectedVersion !== void 0, () => input[_eV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3463,32 +2616,16 @@ export const se_DeleteThingGroupCommand = async ( input: DeleteThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/thing-groups/{thingGroupName}"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); const query: any = map({ - expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion!.toString()], + [_eV]: [() => input.expectedVersion !== void 0, () => input[_eV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3498,28 +2635,13 @@ export const se_DeleteThingTypeCommand = async ( input: DeleteThingTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingTypeName", - () => input.thingTypeName!, - "{thingTypeName}", - false - ); + b.bp("/thing-types/{thingTypeName}"); + b.p("thingTypeName", () => input.thingTypeName!, "{thingTypeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3529,20 +2651,13 @@ export const se_DeleteTopicRuleCommand = async ( input: DeleteTopicRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/rules/{ruleName}"); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3552,20 +2667,13 @@ export const se_DeleteTopicRuleDestinationCommand = async ( input: DeleteTopicRuleDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{arn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn+}", true); + b.bp("/destinations/{arn+}"); + b.p("arn", () => input.arn!, "{arn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3575,24 +2683,16 @@ export const se_DeleteV2LoggingLevelCommand = async ( input: DeleteV2LoggingLevelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel"; + b.bp("/v2LoggingLevel"); const query: any = map({ - targetType: [, __expectNonNull(input.targetType!, `targetType`)], - targetName: [, __expectNonNull(input.targetName!, `targetName`)], + [_tT]: [, __expectNonNull(input[_tT]!, `targetType`)], + [_tN]: [, __expectNonNull(input[_tN]!, `targetName`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3602,35 +2702,20 @@ export const se_DeprecateThingTypeCommand = async ( input: DeprecateThingTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}/deprecate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingTypeName", - () => input.thingTypeName!, - "{thingTypeName}", - false - ); + b.bp("/thing-types/{thingTypeName}/deprecate"); + b.p("thingTypeName", () => input.thingTypeName!, "{thingTypeName}", false); let body: any; body = JSON.stringify( take(input, { undoDeprecate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3640,22 +2725,15 @@ export const se_DescribeAccountAuditConfigurationCommand = async ( input: DescribeAccountAuditConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration"; + b.bp("/audit/configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3665,21 +2743,13 @@ export const se_DescribeAuditFindingCommand = async ( input: DescribeAuditFindingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/findings/{findingId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "findingId", () => input.findingId!, "{findingId}", false); + b.bp("/audit/findings/{findingId}"); + b.p("findingId", () => input.findingId!, "{findingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3689,21 +2759,13 @@ export const se_DescribeAuditMitigationActionsTaskCommand = async ( input: DescribeAuditMitigationActionsTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/tasks/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/audit/mitigationactions/tasks/{taskId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3713,12 +2775,11 @@ export const se_DescribeAuditSuppressionCommand = async ( input: DescribeAuditSuppressionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/describe"; + b.bp("/audit/suppressions/describe"); let body: any; body = JSON.stringify( take(input, { @@ -3726,15 +2787,8 @@ export const se_DescribeAuditSuppressionCommand = async ( resourceIdentifier: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3744,20 +2798,13 @@ export const se_DescribeAuditTaskCommand = async ( input: DescribeAuditTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/audit/tasks/{taskId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3767,28 +2814,13 @@ export const se_DescribeAuthorizerCommand = async ( input: DescribeAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerName", - () => input.authorizerName!, - "{authorizerName}", - false - ); + b.bp("/authorizer/{authorizerName}"); + b.p("authorizerName", () => input.authorizerName!, "{authorizerName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3798,28 +2830,13 @@ export const se_DescribeBillingGroupCommand = async ( input: DescribeBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "billingGroupName", - () => input.billingGroupName!, - "{billingGroupName}", - false - ); + b.bp("/billing-groups/{billingGroupName}"); + b.p("billingGroupName", () => input.billingGroupName!, "{billingGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3829,28 +2846,13 @@ export const se_DescribeCACertificateCommand = async ( input: DescribeCACertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/cacertificate/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3860,28 +2862,13 @@ export const se_DescribeCertificateCommand = async ( input: DescribeCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/certificates/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3891,29 +2878,13 @@ export const se_DescribeCertificateProviderCommand = async ( input: DescribeCertificateProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/certificate-providers/{certificateProviderName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateProviderName", - () => input.certificateProviderName!, - "{certificateProviderName}", - false - ); + b.bp("/certificate-providers/{certificateProviderName}"); + b.p("certificateProviderName", () => input.certificateProviderName!, "{certificateProviderName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3923,21 +2894,13 @@ export const se_DescribeCustomMetricCommand = async ( input: DescribeCustomMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/custom-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3947,22 +2910,15 @@ export const se_DescribeDefaultAuthorizerCommand = async ( input: DescribeDefaultAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer"; + b.bp("/default-authorizer"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3972,21 +2928,13 @@ export const se_DescribeDetectMitigationActionsTaskCommand = async ( input: DescribeDetectMitigationActionsTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/tasks/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/detect/mitigationactions/tasks/{taskId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3996,20 +2944,13 @@ export const se_DescribeDimensionCommand = async ( input: DescribeDimensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/dimensions/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4019,29 +2960,13 @@ export const se_DescribeDomainConfigurationCommand = async ( input: DescribeDomainConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainConfigurations/{domainConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainConfigurationName", - () => input.domainConfigurationName!, - "{domainConfigurationName}", - false - ); + b.bp("/domainConfigurations/{domainConfigurationName}"); + b.p("domainConfigurationName", () => input.domainConfigurationName!, "{domainConfigurationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4051,23 +2976,15 @@ export const se_DescribeEndpointCommand = async ( input: DescribeEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint"; + b.bp("/endpoint"); const query: any = map({ - endpointType: [, input.endpointType!], + [_eT]: [, input[_eT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4077,22 +2994,15 @@ export const se_DescribeEventConfigurationsCommand = async ( input: DescribeEventConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations"; + b.bp("/event-configurations"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4102,21 +3012,13 @@ export const se_DescribeFleetMetricCommand = async ( input: DescribeFleetMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/fleet-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4126,20 +3028,13 @@ export const se_DescribeIndexCommand = async ( input: DescribeIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/{indexName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "indexName", () => input.indexName!, "{indexName}", false); + b.bp("/indices/{indexName}"); + b.p("indexName", () => input.indexName!, "{indexName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4149,20 +3044,13 @@ export const se_DescribeJobCommand = async ( input: DescribeJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4172,26 +3060,17 @@ export const se_DescribeJobExecutionCommand = async ( input: DescribeJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - executionNumber: [() => input.executionNumber !== void 0, () => input.executionNumber!.toString()], + [_eN]: [() => input.executionNumber !== void 0, () => input[_eN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4201,28 +3080,13 @@ export const se_DescribeJobTemplateCommand = async ( input: DescribeJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates/{jobTemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "jobTemplateId", - () => input.jobTemplateId!, - "{jobTemplateId}", - false - ); + b.bp("/job-templates/{jobTemplateId}"); + b.p("jobTemplateId", () => input.jobTemplateId!, "{jobTemplateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4232,32 +3096,16 @@ export const se_DescribeManagedJobTemplateCommand = async ( input: DescribeManagedJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates/{templateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); + b.bp("/managed-job-templates/{templateName}"); + b.p("templateName", () => input.templateName!, "{templateName}", false); const query: any = map({ - templateVersion: [, input.templateVersion!], + [_tV]: [, input[_tV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4267,21 +3115,13 @@ export const se_DescribeMitigationActionCommand = async ( input: DescribeMitigationActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "actionName", () => input.actionName!, "{actionName}", false); + b.bp("/mitigationactions/actions/{actionName}"); + b.p("actionName", () => input.actionName!, "{actionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4291,28 +3131,13 @@ export const se_DescribeProvisioningTemplateCommand = async ( input: DescribeProvisioningTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates/{templateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); + b.bp("/provisioning-templates/{templateName}"); + b.p("templateName", () => input.templateName!, "{templateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4322,37 +3147,14 @@ export const se_DescribeProvisioningTemplateVersionCommand = async ( input: DescribeProvisioningTemplateVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioning-templates/{templateName}/versions/{versionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "versionId", - () => input.versionId!.toString(), - "{versionId}", - false - ); + b.bp("/provisioning-templates/{templateName}/versions/{versionId}"); + b.p("templateName", () => input.templateName!, "{templateName}", false); + b.p("versionId", () => input.versionId!.toString(), "{versionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4362,21 +3164,13 @@ export const se_DescribeRoleAliasCommand = async ( input: DescribeRoleAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "roleAlias", () => input.roleAlias!, "{roleAlias}", false); + b.bp("/role-aliases/{roleAlias}"); + b.p("roleAlias", () => input.roleAlias!, "{roleAlias}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4386,29 +3180,13 @@ export const se_DescribeScheduledAuditCommand = async ( input: DescribeScheduledAuditCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/audit/scheduledaudits/{scheduledAuditName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "scheduledAuditName", - () => input.scheduledAuditName!, - "{scheduledAuditName}", - false - ); + b.bp("/audit/scheduledaudits/{scheduledAuditName}"); + b.p("scheduledAuditName", () => input.scheduledAuditName!, "{scheduledAuditName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4418,28 +3196,13 @@ export const se_DescribeSecurityProfileCommand = async ( input: DescribeSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "securityProfileName", - () => input.securityProfileName!, - "{securityProfileName}", - false - ); + b.bp("/security-profiles/{securityProfileName}"); + b.p("securityProfileName", () => input.securityProfileName!, "{securityProfileName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4449,20 +3212,13 @@ export const se_DescribeStreamCommand = async ( input: DescribeStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "streamId", () => input.streamId!, "{streamId}", false); + b.bp("/streams/{streamId}"); + b.p("streamId", () => input.streamId!, "{streamId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4472,20 +3228,13 @@ export const se_DescribeThingCommand = async ( input: DescribeThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4495,28 +3244,13 @@ export const se_DescribeThingGroupCommand = async ( input: DescribeThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/thing-groups/{thingGroupName}"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4526,21 +3260,13 @@ export const se_DescribeThingRegistrationTaskCommand = async ( input: DescribeThingRegistrationTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/thing-registration-tasks/{taskId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4550,28 +3276,13 @@ export const se_DescribeThingTypeCommand = async ( input: DescribeThingTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types/{thingTypeName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingTypeName", - () => input.thingTypeName!, - "{thingTypeName}", - false - ); + b.bp("/thing-types/{thingTypeName}"); + b.p("thingTypeName", () => input.thingTypeName!, "{thingTypeName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4581,28 +3292,20 @@ export const se_DetachPolicyCommand = async ( input: DetachPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/target-policies/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/target-policies/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; body = JSON.stringify( take(input, { target: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4612,23 +3315,15 @@ export const se_DetachPrincipalPolicyCommand = async ( input: DetachPrincipalPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-iot-principal": input.principal!, + [_xaip]: input[_p]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principal-policies/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/principal-policies/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -4638,33 +3333,16 @@ export const se_DetachSecurityProfileCommand = async ( input: DetachSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles/{securityProfileName}/targets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "securityProfileName", - () => input.securityProfileName!, - "{securityProfileName}", - false - ); + b.bp("/security-profiles/{securityProfileName}/targets"); + b.p("securityProfileName", () => input.securityProfileName!, "{securityProfileName}", false); const query: any = map({ - securityProfileTargetArn: [, __expectNonNull(input.securityProfileTargetArn!, `securityProfileTargetArn`)], + [_sPTA]: [, __expectNonNull(input[_sPTA]!, `securityProfileTargetArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4674,23 +3352,15 @@ export const se_DetachThingPrincipalCommand = async ( input: DetachThingPrincipalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-principal": input.principal!, + [_xap]: input[_p]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/principals"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/principals"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -4700,21 +3370,13 @@ export const se_DisableTopicRuleCommand = async ( input: DisableTopicRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}/disable"; - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/rules/{ruleName}/disable"); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4724,20 +3386,13 @@ export const se_EnableTopicRuleCommand = async ( input: EnableTopicRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}/enable"; - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/rules/{ruleName}/enable"); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4747,26 +3402,17 @@ export const se_GetBehaviorModelTrainingSummariesCommand = async ( input: GetBehaviorModelTrainingSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/behavior-model-training/summaries"; + b.bp("/behavior-model-training/summaries"); const query: any = map({ - securityProfileName: [, input.securityProfileName!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sPN]: [, input[_sPN]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4776,11 +3422,11 @@ export const se_GetBucketsAggregationCommand = async ( input: GetBucketsAggregationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/buckets"; + b.bp("/indices/buckets"); let body: any; body = JSON.stringify( take(input, { @@ -4791,15 +3437,8 @@ export const se_GetBucketsAggregationCommand = async ( queryVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4809,11 +3448,11 @@ export const se_GetCardinalityCommand = async ( input: GetCardinalityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/cardinality"; + b.bp("/indices/cardinality"); let body: any; body = JSON.stringify( take(input, { @@ -4823,15 +3462,8 @@ export const se_GetCardinalityCommand = async ( queryVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4841,13 +3473,13 @@ export const se_GetEffectivePoliciesCommand = async ( input: GetEffectivePoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/effective-policies"; + b.bp("/effective-policies"); const query: any = map({ - thingName: [, input.thingName!], + [_tNh]: [, input[_tNh]!], }); let body: any; body = JSON.stringify( @@ -4856,16 +3488,8 @@ export const se_GetEffectivePoliciesCommand = async ( principal: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4875,22 +3499,15 @@ export const se_GetIndexingConfigurationCommand = async ( input: GetIndexingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indexing/config"; + b.bp("/indexing/config"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4900,21 +3517,13 @@ export const se_GetJobDocumentCommand = async ( input: GetJobDocumentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/job-document"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}/job-document"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4924,22 +3533,15 @@ export const se_GetLoggingOptionsCommand = async ( input: GetLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loggingOptions"; + b.bp("/loggingOptions"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4949,21 +3551,13 @@ export const se_GetOTAUpdateCommand = async ( input: GetOTAUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates/{otaUpdateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "otaUpdateId", () => input.otaUpdateId!, "{otaUpdateId}", false); + b.bp("/otaUpdates/{otaUpdateId}"); + b.p("otaUpdateId", () => input.otaUpdateId!, "{otaUpdateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4973,20 +3567,13 @@ export const se_GetPackageCommand = async ( input: GetPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); + b.bp("/packages/{packageName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4996,22 +3583,15 @@ export const se_GetPackageConfigurationCommand = async ( input: GetPackageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/package-configuration"; + b.bp("/package-configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5021,23 +3601,14 @@ export const se_GetPackageVersionCommand = async ( input: GetPackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/packages/{packageName}/versions/{versionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + b.bp("/packages/{packageName}/versions/{versionName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); + b.p("versionName", () => input.versionName!, "{versionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5047,11 +3618,11 @@ export const se_GetPercentilesCommand = async ( input: GetPercentilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/percentiles"; + b.bp("/indices/percentiles"); let body: any; body = JSON.stringify( take(input, { @@ -5062,15 +3633,8 @@ export const se_GetPercentilesCommand = async ( queryVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5080,20 +3644,13 @@ export const se_GetPolicyCommand = async ( input: GetPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/policies/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5103,30 +3660,14 @@ export const se_GetPolicyVersionCommand = async ( input: GetPolicyVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/policies/{policyName}/version/{policyVersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "policyVersionId", - () => input.policyVersionId!, - "{policyVersionId}", - false - ); + b.bp("/policies/{policyName}/version/{policyVersionId}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); + b.p("policyVersionId", () => input.policyVersionId!, "{policyVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5136,22 +3677,15 @@ export const se_GetRegistrationCodeCommand = async ( input: GetRegistrationCodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/registrationcode"; + b.bp("/registrationcode"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5161,11 +3695,11 @@ export const se_GetStatisticsCommand = async ( input: GetStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/statistics"; + b.bp("/indices/statistics"); let body: any; body = JSON.stringify( take(input, { @@ -5175,15 +3709,8 @@ export const se_GetStatisticsCommand = async ( queryVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5193,20 +3720,13 @@ export const se_GetTopicRuleCommand = async ( input: GetTopicRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/rules/{ruleName}"); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5216,20 +3736,13 @@ export const se_GetTopicRuleDestinationCommand = async ( input: GetTopicRuleDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{arn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn!, "{arn+}", true); + b.bp("/destinations/{arn+}"); + b.p("arn", () => input.arn!, "{arn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5239,22 +3752,15 @@ export const se_GetV2LoggingOptionsCommand = async ( input: GetV2LoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingOptions"; + b.bp("/v2LoggingOptions"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5264,29 +3770,21 @@ export const se_ListActiveViolationsCommand = async ( input: ListActiveViolationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/active-violations"; + b.bp("/active-violations"); const query: any = map({ - thingName: [, input.thingName!], - securityProfileName: [, input.securityProfileName!], - behaviorCriteriaType: [, input.behaviorCriteriaType!], - listSuppressedAlerts: [() => input.listSuppressedAlerts !== void 0, () => input.listSuppressedAlerts!.toString()], - verificationState: [, input.verificationState!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_tNh]: [, input[_tNh]!], + [_sPN]: [, input[_sPN]!], + [_bCT]: [, input[_bCT]!], + [_lSA]: [() => input.listSuppressedAlerts !== void 0, () => input[_lSA]!.toString()], + [_vS]: [, input[_vS]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5296,27 +3794,18 @@ export const se_ListAttachedPoliciesCommand = async ( input: ListAttachedPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attached-policies/{target}"; - resolvedPath = __resolvedPath(resolvedPath, input, "target", () => input.target!, "{target}", false); + b.bp("/attached-policies/{target}"); + b.p("target", () => input.target!, "{target}", false); const query: any = map({ - recursive: [() => input.recursive !== void 0, () => input.recursive!.toString()], - marker: [, input.marker!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], + [_r]: [() => input.recursive !== void 0, () => input[_r]!.toString()], + [_m]: [, input[_m]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5326,11 +3815,11 @@ export const se_ListAuditFindingsCommand = async ( input: ListAuditFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/findings"; + b.bp("/audit/findings"); let body: any; body = JSON.stringify( take(input, { @@ -5344,15 +3833,8 @@ export const se_ListAuditFindingsCommand = async ( taskId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5362,28 +3844,19 @@ export const se_ListAuditMitigationActionsExecutionsCommand = async ( input: ListAuditMitigationActionsExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/executions"; + b.bp("/audit/mitigationactions/executions"); const query: any = map({ - taskId: [, __expectNonNull(input.taskId!, `taskId`)], - actionStatus: [, input.actionStatus!], - findingId: [, __expectNonNull(input.findingId!, `findingId`)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_tI]: [, __expectNonNull(input[_tI]!, `taskId`)], + [_aS]: [, input[_aS]!], + [_fI]: [, __expectNonNull(input[_fI]!, `findingId`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5393,36 +3866,27 @@ export const se_ListAuditMitigationActionsTasksCommand = async ( input: ListAuditMitigationActionsTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/tasks"; + b.bp("/audit/mitigationactions/tasks"); const query: any = map({ - auditTaskId: [, input.auditTaskId!], - findingId: [, input.findingId!], - taskStatus: [, input.taskStatus!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - startTime: [ + [_aTI]: [, input[_aTI]!], + [_fI]: [, input[_fI]!], + [_tS]: [, input[_tS]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eTn]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eTn]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5432,12 +3896,11 @@ export const se_ListAuditSuppressionsCommand = async ( input: ListAuditSuppressionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/list"; + b.bp("/audit/suppressions/list"); let body: any; body = JSON.stringify( take(input, { @@ -5448,15 +3911,8 @@ export const se_ListAuditSuppressionsCommand = async ( resourceIdentifier: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5466,34 +3922,26 @@ export const se_ListAuditTasksCommand = async ( input: ListAuditTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks"; + b.bp("/audit/tasks"); const query: any = map({ - startTime: [ + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eTn]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eTn]!.toISOString().split(".")[0] + "Z").toString(), ], - taskType: [, input.taskType!], - taskStatus: [, input.taskStatus!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_tTa]: [, input[_tTa]!], + [_tS]: [, input[_tS]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5503,26 +3951,18 @@ export const se_ListAuthorizersCommand = async ( input: ListAuthorizersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizers"; + b.bp("/authorizers"); const query: any = map({ - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - marker: [, input.marker!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], - status: [, input.status!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_m]: [, input[_m]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], + [_s]: [, input[_s]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5532,25 +3972,17 @@ export const se_ListBillingGroupsCommand = async ( input: ListBillingGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups"; + b.bp("/billing-groups"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - namePrefixFilter: [, input.namePrefixFilter!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nPF]: [, input[_nPF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5560,26 +3992,18 @@ export const se_ListCACertificatesCommand = async ( input: ListCACertificatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificates"; + b.bp("/cacertificates"); const query: any = map({ - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - marker: [, input.marker!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], - templateName: [, input.templateName!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_m]: [, input[_m]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], + [_tNe]: [, input[_tNe]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5589,24 +4013,16 @@ export const se_ListCertificateProvidersCommand = async ( input: ListCertificateProvidersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificate-providers"; + b.bp("/certificate-providers"); const query: any = map({ - nextToken: [, input.nextToken!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_nT]: [, input[_nT]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5616,25 +4032,17 @@ export const se_ListCertificatesCommand = async ( input: ListCertificatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates"; + b.bp("/certificates"); const query: any = map({ - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - marker: [, input.marker!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_m]: [, input[_m]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5644,34 +4052,18 @@ export const se_ListCertificatesByCACommand = async ( input: ListCertificatesByCACommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates-by-ca/{caCertificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "caCertificateId", - () => input.caCertificateId!, - "{caCertificateId}", - false - ); + b.bp("/certificates-by-ca/{caCertificateId}"); + b.p("caCertificateId", () => input.caCertificateId!, "{caCertificateId}", false); const query: any = map({ - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - marker: [, input.marker!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_m]: [, input[_m]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5681,24 +4073,16 @@ export const se_ListCustomMetricsCommand = async ( input: ListCustomMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metrics"; + b.bp("/custom-metrics"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5708,33 +4092,21 @@ export const se_ListDetectMitigationActionsExecutionsCommand = async ( input: ListDetectMitigationActionsExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/executions"; + b.bp("/detect/mitigationactions/executions"); const query: any = map({ - taskId: [, input.taskId!], - violationId: [, input.violationId!], - thingName: [, input.thingName!], - startTime: [ - () => input.startTime !== void 0, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), - ], - endTime: [() => input.endTime !== void 0, () => (input.endTime!.toISOString().split(".")[0] + "Z").toString()], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_tI]: [, input[_tI]!], + [_vI]: [, input[_vI]!], + [_tNh]: [, input[_tNh]!], + [_sT]: [() => input.startTime !== void 0, () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString()], + [_eTn]: [() => input.endTime !== void 0, () => (input[_eTn]!.toISOString().split(".")[0] + "Z").toString()], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5744,33 +4116,24 @@ export const se_ListDetectMitigationActionsTasksCommand = async ( input: ListDetectMitigationActionsTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/tasks"; + b.bp("/detect/mitigationactions/tasks"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - startTime: [ + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eTn]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eTn]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5780,24 +4143,16 @@ export const se_ListDimensionsCommand = async ( input: ListDimensionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions"; + b.bp("/dimensions"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5807,25 +4162,17 @@ export const se_ListDomainConfigurationsCommand = async ( input: ListDomainConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domainConfigurations"; + b.bp("/domainConfigurations"); const query: any = map({ - marker: [, input.marker!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - serviceType: [, input.serviceType!], + [_m]: [, input[_m]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_sTe]: [, input[_sTe]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5835,24 +4182,16 @@ export const se_ListFleetMetricsCommand = async ( input: ListFleetMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metrics"; + b.bp("/fleet-metrics"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5862,24 +4201,16 @@ export const se_ListIndicesCommand = async ( input: ListIndicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices"; + b.bp("/indices"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5889,26 +4220,18 @@ export const se_ListJobExecutionsForJobCommand = async ( input: ListJobExecutionsForJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/things"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}/things"); + b.p("jobId", () => input.jobId!, "{jobId}", false); const query: any = map({ - status: [, input.status!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5918,28 +4241,20 @@ export const se_ListJobExecutionsForThingCommand = async ( input: ListJobExecutionsForThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/jobs"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - status: [, input.status!], - namespaceId: [, input.namespaceId!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - jobId: [, input.jobId!], + [_s]: [, input[_s]!], + [_nI]: [, input[_nI]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_jI]: [, input[_jI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5949,29 +4264,21 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); const query: any = map({ - status: [, input.status!], - targetSelection: [, input.targetSelection!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - thingGroupName: [, input.thingGroupName!], - thingGroupId: [, input.thingGroupId!], - namespaceId: [, input.namespaceId!], + [_s]: [, input[_s]!], + [_tSa]: [, input[_tSa]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_tGN]: [, input[_tGN]!], + [_tGI]: [, input[_tGI]!], + [_nI]: [, input[_nI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5981,24 +4288,16 @@ export const se_ListJobTemplatesCommand = async ( input: ListJobTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job-templates"; + b.bp("/job-templates"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6008,25 +4307,17 @@ export const se_ListManagedJobTemplatesCommand = async ( input: ListManagedJobTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates"; + b.bp("/managed-job-templates"); const query: any = map({ - templateName: [, input.templateName!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_tNe]: [, input[_tNe]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6036,36 +4327,28 @@ export const se_ListMetricValuesCommand = async ( input: ListMetricValuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metric-values"; + b.bp("/metric-values"); const query: any = map({ - thingName: [, __expectNonNull(input.thingName!, `thingName`)], - metricName: [, __expectNonNull(input.metricName!, `metricName`)], - dimensionName: [, input.dimensionName!], - dimensionValueOperator: [, input.dimensionValueOperator!], - startTime: [ + [_tNh]: [, __expectNonNull(input[_tNh]!, `thingName`)], + [_mN]: [, __expectNonNull(input[_mN]!, `metricName`)], + [_dN]: [, input[_dN]!], + [_dVO]: [, input[_dVO]!], + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eTn]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eTn]!.toISOString().split(".")[0] + "Z").toString(), ], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6075,26 +4358,17 @@ export const se_ListMitigationActionsCommand = async ( input: ListMitigationActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions"; + b.bp("/mitigationactions/actions"); const query: any = map({ - actionType: [, input.actionType!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_aT]: [, input[_aT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6104,25 +4378,17 @@ export const se_ListOTAUpdatesCommand = async ( input: ListOTAUpdatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/otaUpdates"; + b.bp("/otaUpdates"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - otaUpdateStatus: [, input.otaUpdateStatus!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_oUS]: [, input[_oUS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6132,26 +4398,17 @@ export const se_ListOutgoingCertificatesCommand = async ( input: ListOutgoingCertificatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates-out-going"; + b.bp("/certificates-out-going"); const query: any = map({ - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - marker: [, input.marker!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_m]: [, input[_m]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6161,24 +4418,16 @@ export const se_ListPackagesCommand = async ( input: ListPackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages"; + b.bp("/packages"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6188,27 +4437,18 @@ export const se_ListPackageVersionsCommand = async ( input: ListPackageVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); + b.bp("/packages/{packageName}/versions"); + b.p("packageName", () => input.packageName!, "{packageName}", false); const query: any = map({ - status: [, input.status!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6218,25 +4458,17 @@ export const se_ListPoliciesCommand = async ( input: ListPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies"; + b.bp("/policies"); const query: any = map({ - marker: [, input.marker!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_m]: [, input[_m]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6246,27 +4478,19 @@ export const se_ListPolicyPrincipalsCommand = async ( input: ListPolicyPrincipalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-iot-policy": input.policyName!, + [_xaip_]: input[_pN]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy-principals"; + b.bp("/policy-principals"); const query: any = map({ - marker: [, input.marker!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_m]: [, input[_m]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6276,21 +4500,13 @@ export const se_ListPolicyVersionsCommand = async ( input: ListPolicyVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policies/{policyName}/version"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/policies/{policyName}/version"); + b.p("policyName", () => input.policyName!, "{policyName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -6300,27 +4516,19 @@ export const se_ListPrincipalPoliciesCommand = async ( input: ListPrincipalPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-iot-principal": input.principal!, + [_xaip]: input[_p]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principal-policies"; + b.bp("/principal-policies"); const query: any = map({ - marker: [, input.marker!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_m]: [, input[_m]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6330,26 +4538,18 @@ export const se_ListPrincipalThingsCommand = async ( input: ListPrincipalThingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-principal": input.principal!, + [_xap]: input[_p]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/principals/things"; + b.bp("/principals/things"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6359,25 +4559,16 @@ export const se_ListProvisioningTemplatesCommand = async ( input: ListProvisioningTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates"; + b.bp("/provisioning-templates"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6387,34 +4578,17 @@ export const se_ListProvisioningTemplateVersionsCommand = async ( input: ListProvisioningTemplateVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/provisioning-templates/{templateName}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); + b.bp("/provisioning-templates/{templateName}/versions"); + b.p("templateName", () => input.templateName!, "{templateName}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6424,26 +4598,17 @@ export const se_ListRelatedResourcesForAuditFindingCommand = async ( input: ListRelatedResourcesForAuditFindingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/relatedResources"; + b.bp("/audit/relatedResources"); const query: any = map({ - findingId: [, __expectNonNull(input.findingId!, `findingId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_fI]: [, __expectNonNull(input[_fI]!, `findingId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6453,25 +4618,17 @@ export const se_ListRoleAliasesCommand = async ( input: ListRoleAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases"; + b.bp("/role-aliases"); const query: any = map({ - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], - marker: [, input.marker!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], + [_m]: [, input[_m]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6481,24 +4638,16 @@ export const se_ListScheduledAuditsCommand = async ( input: ListScheduledAuditsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/scheduledaudits"; + b.bp("/audit/scheduledaudits"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6508,26 +4657,18 @@ export const se_ListSecurityProfilesCommand = async ( input: ListSecurityProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles"; + b.bp("/security-profiles"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - dimensionName: [, input.dimensionName!], - metricName: [, input.metricName!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_dN]: [, input[_dN]!], + [_mN]: [, input[_mN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6537,27 +4678,18 @@ export const se_ListSecurityProfilesForTargetCommand = async ( input: ListSecurityProfilesForTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles-for-target"; + b.bp("/security-profiles-for-target"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - recursive: [() => input.recursive !== void 0, () => input.recursive!.toString()], - securityProfileTargetArn: [, __expectNonNull(input.securityProfileTargetArn!, `securityProfileTargetArn`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_r]: [() => input.recursive !== void 0, () => input[_r]!.toString()], + [_sPTA]: [, __expectNonNull(input[_sPTA]!, `securityProfileTargetArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6567,25 +4699,17 @@ export const se_ListStreamsCommand = async ( input: ListStreamsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams"; + b.bp("/streams"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder!.toString()], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_iAO]: [() => input.ascendingOrder !== void 0, () => input[_aO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6595,24 +4719,16 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], - nextToken: [, input.nextToken!], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6622,26 +4738,17 @@ export const se_ListTargetsForPolicyCommand = async ( input: ListTargetsForPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy-targets/{policyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); + b.bp("/policy-targets/{policyName}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); const query: any = map({ - marker: [, input.marker!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], + [_m]: [, input[_m]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6651,34 +4758,17 @@ export const se_ListTargetsForSecurityProfileCommand = async ( input: ListTargetsForSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/security-profiles/{securityProfileName}/targets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "securityProfileName", - () => input.securityProfileName!, - "{securityProfileName}", - false - ); + b.bp("/security-profiles/{securityProfileName}/targets"); + b.p("securityProfileName", () => input.securityProfileName!, "{securityProfileName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6688,27 +4778,19 @@ export const se_ListThingGroupsCommand = async ( input: ListThingGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups"; + b.bp("/thing-groups"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - parentGroup: [, input.parentGroup!], - namePrefixFilter: [, input.namePrefixFilter!], - recursive: [() => input.recursive !== void 0, () => input.recursive!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_pG]: [, input[_pG]!], + [_nPF]: [, input[_nPF]!], + [_r]: [() => input.recursive !== void 0, () => input[_r]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6718,26 +4800,17 @@ export const se_ListThingGroupsForThingCommand = async ( input: ListThingGroupsForThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/thing-groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/thing-groups"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6747,26 +4820,17 @@ export const se_ListThingPrincipalsCommand = async ( input: ListThingPrincipalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/principals"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}/principals"); + b.p("thingName", () => input.thingName!, "{thingName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6776,28 +4840,18 @@ export const se_ListThingRegistrationTaskReportsCommand = async ( input: ListThingRegistrationTaskReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/thing-registration-tasks/{taskId}/reports"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/thing-registration-tasks/{taskId}/reports"); + b.p("taskId", () => input.taskId!, "{taskId}", false); const query: any = map({ - reportType: [, __expectNonNull(input.reportType!, `reportType`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_rT]: [, __expectNonNull(input[_rT]!, `reportType`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6807,26 +4861,17 @@ export const se_ListThingRegistrationTasksCommand = async ( input: ListThingRegistrationTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks"; + b.bp("/thing-registration-tasks"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - status: [, input.status!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_s]: [, input[_s]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6836,31 +4881,20 @@ export const se_ListThingsCommand = async ( input: ListThingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things"; + b.bp("/things"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - attributeName: [, input.attributeName!], - attributeValue: [, input.attributeValue!], - thingTypeName: [, input.thingTypeName!], - usePrefixAttributeValue: [ - () => input.usePrefixAttributeValue !== void 0, - () => input.usePrefixAttributeValue!.toString(), - ], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_aN]: [, input[_aN]!], + [_aV]: [, input[_aV]!], + [_tTN]: [, input[_tTN]!], + [_uPAV]: [() => input.usePrefixAttributeValue !== void 0, () => input[_uPAV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6870,33 +4904,17 @@ export const se_ListThingsInBillingGroupCommand = async ( input: ListThingsInBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}/things"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "billingGroupName", - () => input.billingGroupName!, - "{billingGroupName}", - false - ); + b.bp("/billing-groups/{billingGroupName}/things"); + b.p("billingGroupName", () => input.billingGroupName!, "{billingGroupName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6906,34 +4924,18 @@ export const se_ListThingsInThingGroupCommand = async ( input: ListThingsInThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}/things"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/thing-groups/{thingGroupName}/things"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); const query: any = map({ - recursive: [() => input.recursive !== void 0, () => input.recursive!.toString()], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_r]: [() => input.recursive !== void 0, () => input[_r]!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6943,25 +4945,17 @@ export const se_ListThingTypesCommand = async ( input: ListThingTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-types"; + b.bp("/thing-types"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - thingTypeName: [, input.thingTypeName!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_tTN]: [, input[_tTN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6971,24 +4965,16 @@ export const se_ListTopicRuleDestinationsCommand = async ( input: ListTopicRuleDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations"; + b.bp("/destinations"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6998,26 +4984,18 @@ export const se_ListTopicRulesCommand = async ( input: ListTopicRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules"; + b.bp("/rules"); const query: any = map({ - topic: [, input.topic!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - ruleDisabled: [() => input.ruleDisabled !== void 0, () => input.ruleDisabled!.toString()], + [_to]: [, input[_to]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_rD]: [() => input.ruleDisabled !== void 0, () => input[_rD]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7027,25 +5005,17 @@ export const se_ListV2LoggingLevelsCommand = async ( input: ListV2LoggingLevelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel"; + b.bp("/v2LoggingLevel"); const query: any = map({ - targetType: [, input.targetType!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_tT]: [, input[_tT]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7055,37 +5025,29 @@ export const se_ListViolationEventsCommand = async ( input: ListViolationEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/violation-events"; + b.bp("/violation-events"); const query: any = map({ - startTime: [ + [_sT]: [ __expectNonNull(input.startTime, `startTime`) != null, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - endTime: [ + [_eTn]: [ __expectNonNull(input.endTime, `endTime`) != null, - () => (input.endTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eTn]!.toISOString().split(".")[0] + "Z").toString(), ], - thingName: [, input.thingName!], - securityProfileName: [, input.securityProfileName!], - behaviorCriteriaType: [, input.behaviorCriteriaType!], - listSuppressedAlerts: [() => input.listSuppressedAlerts !== void 0, () => input.listSuppressedAlerts!.toString()], - verificationState: [, input.verificationState!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_tNh]: [, input[_tNh]!], + [_sPN]: [, input[_sPN]!], + [_bCT]: [, input[_bCT]!], + [_lSA]: [() => input.listSuppressedAlerts !== void 0, () => input[_lSA]!.toString()], + [_vS]: [, input[_vS]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7095,14 +5057,12 @@ export const se_PutVerificationStateOnViolationCommand = async ( input: PutVerificationStateOnViolationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/violations/verification-state/{violationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "violationId", () => input.violationId!, "{violationId}", false); + b.bp("/violations/verification-state/{violationId}"); + b.p("violationId", () => input.violationId!, "{violationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7110,15 +5070,8 @@ export const se_PutVerificationStateOnViolationCommand = async ( verificationStateDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7128,17 +5081,14 @@ export const se_RegisterCACertificateCommand = async ( input: RegisterCACertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate"; + b.bp("/cacertificate"); const query: any = map({ - setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive!.toString()], - allowAutoRegistration: [ - () => input.allowAutoRegistration !== void 0, - () => input.allowAutoRegistration!.toString(), - ], + [_sAA]: [() => input.setAsActive !== void 0, () => input[_sAA]!.toString()], + [_aAR]: [() => input.allowAutoRegistration !== void 0, () => input[_aAR]!.toString()], }); let body: any; body = JSON.stringify( @@ -7150,16 +5100,8 @@ export const se_RegisterCACertificateCommand = async ( verificationCertificate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7169,13 +5111,13 @@ export const se_RegisterCertificateCommand = async ( input: RegisterCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificate/register"; + b.bp("/certificate/register"); const query: any = map({ - setAsActive: [() => input.setAsActive !== void 0, () => input.setAsActive!.toString()], + [_sAA]: [() => input.setAsActive !== void 0, () => input[_sAA]!.toString()], }); let body: any; body = JSON.stringify( @@ -7185,16 +5127,8 @@ export const se_RegisterCertificateCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7204,12 +5138,11 @@ export const se_RegisterCertificateWithoutCACommand = async ( input: RegisterCertificateWithoutCACommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificate/register-no-ca"; + b.bp("/certificate/register-no-ca"); let body: any; body = JSON.stringify( take(input, { @@ -7217,15 +5150,8 @@ export const se_RegisterCertificateWithoutCACommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7235,11 +5161,11 @@ export const se_RegisterThingCommand = async ( input: RegisterThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things"; + b.bp("/things"); let body: any; body = JSON.stringify( take(input, { @@ -7247,15 +5173,8 @@ export const se_RegisterThingCommand = async ( templateBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7265,36 +5184,20 @@ export const se_RejectCertificateTransferCommand = async ( input: RejectCertificateTransferCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/reject-certificate-transfer/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/reject-certificate-transfer/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); let body: any; body = JSON.stringify( take(input, { rejectReason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7304,13 +5207,11 @@ export const se_RemoveThingFromBillingGroupCommand = async ( input: RemoveThingFromBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/billing-groups/removeThingFromBillingGroup"; + b.bp("/billing-groups/removeThingFromBillingGroup"); let body: any; body = JSON.stringify( take(input, { @@ -7320,15 +5221,8 @@ export const se_RemoveThingFromBillingGroupCommand = async ( thingName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7338,12 +5232,11 @@ export const se_RemoveThingFromThingGroupCommand = async ( input: RemoveThingFromThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/removeThingFromThingGroup"; + b.bp("/thing-groups/removeThingFromThingGroup"); let body: any; body = JSON.stringify( take(input, { @@ -7353,15 +5246,8 @@ export const se_RemoveThingFromThingGroupCommand = async ( thingName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7371,12 +5257,12 @@ export const se_ReplaceTopicRuleCommand = async ( input: ReplaceTopicRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{ruleName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName!, "{ruleName}", false); + b.bp("/rules/{ruleName}"); + b.p("ruleName", () => input.ruleName!, "{ruleName}", false); let body: any; if (input.topicRulePayload !== undefined) { body = _json(input.topicRulePayload); @@ -7385,15 +5271,8 @@ export const se_ReplaceTopicRuleCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7403,11 +5282,11 @@ export const se_SearchIndexCommand = async ( input: SearchIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indices/search"; + b.bp("/indices/search"); let body: any; body = JSON.stringify( take(input, { @@ -7418,15 +5297,8 @@ export const se_SearchIndexCommand = async ( queryVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7436,26 +5308,19 @@ export const se_SetDefaultAuthorizerCommand = async ( input: SetDefaultAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer"; + b.bp("/default-authorizer"); let body: any; body = JSON.stringify( take(input, { authorizerName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7465,30 +5330,14 @@ export const se_SetDefaultPolicyVersionCommand = async ( input: SetDefaultPolicyVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/policies/{policyName}/version/{policyVersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "policyName", () => input.policyName!, "{policyName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "policyVersionId", - () => input.policyVersionId!, - "{policyVersionId}", - false - ); + b.bp("/policies/{policyName}/version/{policyVersionId}"); + b.p("policyName", () => input.policyName!, "{policyName}", false); + b.p("policyVersionId", () => input.policyVersionId!, "{policyVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7498,11 +5347,11 @@ export const se_SetLoggingOptionsCommand = async ( input: SetLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loggingOptions"; + b.bp("/loggingOptions"); let body: any; if (input.loggingOptionsPayload !== undefined) { body = _json(input.loggingOptionsPayload); @@ -7511,15 +5360,8 @@ export const se_SetLoggingOptionsCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7529,11 +5371,11 @@ export const se_SetV2LoggingLevelCommand = async ( input: SetV2LoggingLevelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel"; + b.bp("/v2LoggingLevel"); let body: any; body = JSON.stringify( take(input, { @@ -7541,15 +5383,8 @@ export const se_SetV2LoggingLevelCommand = async ( logTarget: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7559,11 +5394,11 @@ export const se_SetV2LoggingOptionsCommand = async ( input: SetV2LoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingOptions"; + b.bp("/v2LoggingOptions"); let body: any; body = JSON.stringify( take(input, { @@ -7572,15 +5407,8 @@ export const se_SetV2LoggingOptionsCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7590,13 +5418,12 @@ export const se_StartAuditMitigationActionsTaskCommand = async ( input: StartAuditMitigationActionsTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/mitigationactions/tasks/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/audit/mitigationactions/tasks/{taskId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7605,15 +5432,8 @@ export const se_StartAuditMitigationActionsTaskCommand = async ( target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7623,13 +5443,12 @@ export const se_StartDetectMitigationActionsTaskCommand = async ( input: StartDetectMitigationActionsTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detect/mitigationactions/tasks/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/detect/mitigationactions/tasks/{taskId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7641,15 +5460,8 @@ export const se_StartDetectMitigationActionsTaskCommand = async ( violationEventOccurrenceRange: (_) => se_ViolationEventOccurrenceRange(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7659,26 +5471,19 @@ export const se_StartOnDemandAuditTaskCommand = async ( input: StartOnDemandAuditTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks"; + b.bp("/audit/tasks"); let body: any; body = JSON.stringify( take(input, { targetCheckNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7688,12 +5493,11 @@ export const se_StartThingRegistrationTaskCommand = async ( input: StartThingRegistrationTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks"; + b.bp("/thing-registration-tasks"); let body: any; body = JSON.stringify( take(input, { @@ -7703,15 +5507,8 @@ export const se_StartThingRegistrationTaskCommand = async ( templateBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7721,21 +5518,13 @@ export const se_StopThingRegistrationTaskCommand = async ( input: StopThingRegistrationTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks/{taskId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/thing-registration-tasks/{taskId}/cancel"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7745,11 +5534,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); let body: any; body = JSON.stringify( take(input, { @@ -7757,15 +5546,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7775,13 +5557,13 @@ export const se_TestAuthorizationCommand = async ( input: TestAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/test-authorization"; + b.bp("/test-authorization"); const query: any = map({ - clientId: [, input.clientId!], + [_cI]: [, input[_cI]!], }); let body: any; body = JSON.stringify( @@ -7793,16 +5575,8 @@ export const se_TestAuthorizationCommand = async ( principal: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7812,20 +5586,12 @@ export const se_TestInvokeAuthorizerCommand = async ( input: TestInvokeAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}/test"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerName", - () => input.authorizerName!, - "{authorizerName}", - false - ); + b.bp("/authorizer/{authorizerName}/test"); + b.p("authorizerName", () => input.authorizerName!, "{authorizerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -7836,15 +5602,8 @@ export const se_TestInvokeAuthorizerCommand = async ( tokenSignature: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7854,22 +5613,14 @@ export const se_TransferCertificateCommand = async ( input: TransferCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transfer-certificate/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/transfer-certificate/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); const query: any = map({ - targetAwsAccount: [, __expectNonNull(input.targetAwsAccount!, `targetAwsAccount`)], + [_tAA]: [, __expectNonNull(input[_tAA]!, `targetAwsAccount`)], }); let body: any; body = JSON.stringify( @@ -7877,16 +5628,8 @@ export const se_TransferCertificateCommand = async ( transferMessage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -7896,11 +5639,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untag"; + b.bp("/untag"); let body: any; body = JSON.stringify( take(input, { @@ -7908,15 +5651,8 @@ export const se_UntagResourceCommand = async ( tagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7926,11 +5662,11 @@ export const se_UpdateAccountAuditConfigurationCommand = async ( input: UpdateAccountAuditConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration"; + b.bp("/audit/configuration"); let body: any; body = JSON.stringify( take(input, { @@ -7939,15 +5675,8 @@ export const se_UpdateAccountAuditConfigurationCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7957,12 +5686,11 @@ export const se_UpdateAuditSuppressionCommand = async ( input: UpdateAuditSuppressionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/update"; + b.bp("/audit/suppressions/update"); let body: any; body = JSON.stringify( take(input, { @@ -7973,15 +5701,8 @@ export const se_UpdateAuditSuppressionCommand = async ( suppressIndefinitely: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -7991,20 +5712,12 @@ export const se_UpdateAuthorizerCommand = async ( input: UpdateAuthorizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authorizer/{authorizerName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "authorizerName", - () => input.authorizerName!, - "{authorizerName}", - false - ); + b.bp("/authorizer/{authorizerName}"); + b.p("authorizerName", () => input.authorizerName!, "{authorizerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8015,15 +5728,8 @@ export const se_UpdateAuthorizerCommand = async ( tokenSigningPublicKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8033,20 +5739,12 @@ export const se_UpdateBillingGroupCommand = async ( input: UpdateBillingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/{billingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "billingGroupName", - () => input.billingGroupName!, - "{billingGroupName}", - false - ); + b.bp("/billing-groups/{billingGroupName}"); + b.p("billingGroupName", () => input.billingGroupName!, "{billingGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8054,15 +5752,8 @@ export const se_UpdateBillingGroupCommand = async ( expectedVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8072,23 +5763,15 @@ export const se_UpdateCACertificateCommand = async ( input: UpdateCACertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cacertificate/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/cacertificate/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); const query: any = map({ - newStatus: [, input.newStatus!], - newAutoRegistrationStatus: [, input.newAutoRegistrationStatus!], + [_nS]: [, input[_nS]!], + [_nARS]: [, input[_nARS]!], }); let body: any; body = JSON.stringify( @@ -8097,16 +5780,8 @@ export const se_UpdateCACertificateCommand = async ( removeAutoRegistration: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -8116,32 +5791,16 @@ export const se_UpdateCertificateCommand = async ( input: UpdateCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificates/{certificateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateId", - () => input.certificateId!, - "{certificateId}", - false - ); + b.bp("/certificates/{certificateId}"); + b.p("certificateId", () => input.certificateId!, "{certificateId}", false); const query: any = map({ - newStatus: [, __expectNonNull(input.newStatus!, `newStatus`)], + [_nS]: [, __expectNonNull(input[_nS]!, `newStatus`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -8151,21 +5810,12 @@ export const se_UpdateCertificateProviderCommand = async ( input: UpdateCertificateProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/certificate-providers/{certificateProviderName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "certificateProviderName", - () => input.certificateProviderName!, - "{certificateProviderName}", - false - ); + b.bp("/certificate-providers/{certificateProviderName}"); + b.p("certificateProviderName", () => input.certificateProviderName!, "{certificateProviderName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8173,15 +5823,8 @@ export const se_UpdateCertificateProviderCommand = async ( lambdaFunctionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8191,28 +5834,20 @@ export const se_UpdateCustomMetricCommand = async ( input: UpdateCustomMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/custom-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); let body: any; body = JSON.stringify( take(input, { displayName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8222,27 +5857,20 @@ export const se_UpdateDimensionCommand = async ( input: UpdateDimensionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dimensions/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/dimensions/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { stringValues: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8252,21 +5880,12 @@ export const se_UpdateDomainConfigurationCommand = async ( input: UpdateDomainConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/domainConfigurations/{domainConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "domainConfigurationName", - () => input.domainConfigurationName!, - "{domainConfigurationName}", - false - ); + b.bp("/domainConfigurations/{domainConfigurationName}"); + b.p("domainConfigurationName", () => input.domainConfigurationName!, "{domainConfigurationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8276,15 +5895,8 @@ export const se_UpdateDomainConfigurationCommand = async ( tlsConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8294,20 +5906,12 @@ export const se_UpdateDynamicThingGroupCommand = async ( input: UpdateDynamicThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dynamic-thing-groups/{thingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/dynamic-thing-groups/{thingGroupName}"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8318,15 +5922,8 @@ export const se_UpdateDynamicThingGroupCommand = async ( thingGroupProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8336,26 +5933,19 @@ export const se_UpdateEventConfigurationsCommand = async ( input: UpdateEventConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations"; + b.bp("/event-configurations"); let body: any; body = JSON.stringify( take(input, { eventConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8365,13 +5955,12 @@ export const se_UpdateFleetMetricCommand = async ( input: UpdateFleetMetricCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fleet-metric/{metricName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName!, "{metricName}", false); + b.bp("/fleet-metric/{metricName}"); + b.p("metricName", () => input.metricName!, "{metricName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8386,15 +5975,8 @@ export const se_UpdateFleetMetricCommand = async ( unit: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8404,11 +5986,11 @@ export const se_UpdateIndexingConfigurationCommand = async ( input: UpdateIndexingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/indexing/config"; + b.bp("/indexing/config"); let body: any; body = JSON.stringify( take(input, { @@ -8416,15 +5998,8 @@ export const se_UpdateIndexingConfigurationCommand = async ( thingIndexingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -8434,14 +6009,14 @@ export const se_UpdateJobCommand = async ( input: UpdateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); const query: any = map({ - namespaceId: [, input.namespaceId!], + [_nI]: [, input[_nI]!], }); let body: any; body = JSON.stringify( @@ -8454,16 +6029,8 @@ export const se_UpdateJobCommand = async ( timeoutConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -8473,13 +6040,12 @@ export const se_UpdateMitigationActionCommand = async ( input: UpdateMitigationActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mitigationactions/actions/{actionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "actionName", () => input.actionName!, "{actionName}", false); + b.bp("/mitigationactions/actions/{actionName}"); + b.p("actionName", () => input.actionName!, "{actionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8487,15 +6053,8 @@ export const se_UpdateMitigationActionCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8505,14 +6064,14 @@ export const se_UpdatePackageCommand = async ( input: UpdatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); + b.bp("/packages/{packageName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; body = JSON.stringify( @@ -8522,16 +6081,8 @@ export const se_UpdatePackageCommand = async ( unsetDefaultVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -8541,13 +6092,13 @@ export const se_UpdatePackageConfigurationCommand = async ( input: UpdatePackageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/package-configuration"; + b.bp("/package-configuration"); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; body = JSON.stringify( @@ -8555,16 +6106,8 @@ export const se_UpdatePackageConfigurationCommand = async ( versionUpdateByJobsConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -8574,17 +6117,15 @@ export const se_UpdatePackageVersionCommand = async ( input: UpdatePackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/packages/{packageName}/versions/{versionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName!, "{packageName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + b.bp("/packages/{packageName}/versions/{versionName}"); + b.p("packageName", () => input.packageName!, "{packageName}", false); + b.p("versionName", () => input.versionName!, "{versionName}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; body = JSON.stringify( @@ -8594,16 +6135,8 @@ export const se_UpdatePackageVersionCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -8613,20 +6146,12 @@ export const se_UpdateProvisioningTemplateCommand = async ( input: UpdateProvisioningTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates/{templateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "templateName", - () => input.templateName!, - "{templateName}", - false - ); + b.bp("/provisioning-templates/{templateName}"); + b.p("templateName", () => input.templateName!, "{templateName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8638,15 +6163,8 @@ export const se_UpdateProvisioningTemplateCommand = async ( removePreProvisioningHook: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8656,13 +6174,12 @@ export const se_UpdateRoleAliasCommand = async ( input: UpdateRoleAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/role-aliases/{roleAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "roleAlias", () => input.roleAlias!, "{roleAlias}", false); + b.bp("/role-aliases/{roleAlias}"); + b.p("roleAlias", () => input.roleAlias!, "{roleAlias}", false); let body: any; body = JSON.stringify( take(input, { @@ -8670,15 +6187,8 @@ export const se_UpdateRoleAliasCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8688,21 +6198,12 @@ export const se_UpdateScheduledAuditCommand = async ( input: UpdateScheduledAuditCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/audit/scheduledaudits/{scheduledAuditName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "scheduledAuditName", - () => input.scheduledAuditName!, - "{scheduledAuditName}", - false - ); + b.bp("/audit/scheduledaudits/{scheduledAuditName}"); + b.p("scheduledAuditName", () => input.scheduledAuditName!, "{scheduledAuditName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8712,15 +6213,8 @@ export const se_UpdateScheduledAuditCommand = async ( targetCheckNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8730,22 +6224,14 @@ export const se_UpdateSecurityProfileCommand = async ( input: UpdateSecurityProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{securityProfileName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "securityProfileName", - () => input.securityProfileName!, - "{securityProfileName}", - false - ); + b.bp("/security-profiles/{securityProfileName}"); + b.p("securityProfileName", () => input.securityProfileName!, "{securityProfileName}", false); const query: any = map({ - expectedVersion: [() => input.expectedVersion !== void 0, () => input.expectedVersion!.toString()], + [_eV]: [() => input.expectedVersion !== void 0, () => input[_eV]!.toString()], }); let body: any; body = JSON.stringify( @@ -8762,16 +6248,8 @@ export const se_UpdateSecurityProfileCommand = async ( securityProfileDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -8781,12 +6259,12 @@ export const se_UpdateStreamCommand = async ( input: UpdateStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/streams/{streamId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "streamId", () => input.streamId!, "{streamId}", false); + b.bp("/streams/{streamId}"); + b.p("streamId", () => input.streamId!, "{streamId}", false); let body: any; body = JSON.stringify( take(input, { @@ -8795,15 +6273,8 @@ export const se_UpdateStreamCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8813,12 +6284,12 @@ export const se_UpdateThingCommand = async ( input: UpdateThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "thingName", () => input.thingName!, "{thingName}", false); + b.bp("/things/{thingName}"); + b.p("thingName", () => input.thingName!, "{thingName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8828,15 +6299,8 @@ export const se_UpdateThingCommand = async ( thingTypeName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8846,20 +6310,12 @@ export const se_UpdateThingGroupCommand = async ( input: UpdateThingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/{thingGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "thingGroupName", - () => input.thingGroupName!, - "{thingGroupName}", - false - ); + b.bp("/thing-groups/{thingGroupName}"); + b.p("thingGroupName", () => input.thingGroupName!, "{thingGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -8867,15 +6323,8 @@ export const se_UpdateThingGroupCommand = async ( thingGroupProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8885,12 +6334,11 @@ export const se_UpdateThingGroupsForThingCommand = async ( input: UpdateThingGroupsForThingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/updateThingGroupsForThing"; + b.bp("/thing-groups/updateThingGroupsForThing"); let body: any; body = JSON.stringify( take(input, { @@ -8900,15 +6348,8 @@ export const se_UpdateThingGroupsForThingCommand = async ( thingName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8918,11 +6359,11 @@ export const se_UpdateTopicRuleDestinationCommand = async ( input: UpdateTopicRuleDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations"; + b.bp("/destinations"); let body: any; body = JSON.stringify( take(input, { @@ -8930,15 +6371,8 @@ export const se_UpdateTopicRuleDestinationCommand = async ( status: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8948,27 +6382,19 @@ export const se_ValidateSecurityProfileBehaviorsCommand = async ( input: ValidateSecurityProfileBehaviorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profile-behaviors/validate"; + b.bp("/security-profile-behaviors/validate"); let body: any; body = JSON.stringify( take(input, { behaviors: (_) => se_Behaviors(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -27060,6 +24486,78 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aAR = "allowAutoRegistration"; +const _aN = "attributeName"; +const _aO = "ascendingOrder"; +const _aS = "actionStatus"; +const _aT = "actionType"; +const _aTI = "auditTaskId"; +const _aV = "attributeValue"; +const _bCT = "behaviorCriteriaType"; +const _cI = "clientId"; +const _cT = "clientToken"; +const _dN = "dimensionName"; +const _dS = "deleteStream"; +const _dSA = "deleteScheduledAudits"; +const _dVO = "dimensionValueOperator"; +const _eN = "executionNumber"; +const _eT = "endpointType"; +const _eTn = "endTime"; +const _eV = "expectedVersion"; +const _f = "force"; +const _fD = "forceDelete"; +const _fDAWSJ = "forceDeleteAWSJob"; +const _fI = "findingId"; +const _iAO = "isAscendingOrder"; +const _jI = "jobId"; +const _lSA = "listSuppressedAlerts"; +const _m = "marker"; +const _mN = "metricName"; +const _mR = "maxResults"; +const _nARS = "newAutoRegistrationStatus"; +const _nI = "namespaceId"; +const _nPF = "namePrefixFilter"; +const _nS = "newStatus"; +const _nT = "nextToken"; +const _oUS = "otaUpdateStatus"; +const _p = "principal"; +const _pG = "parentGroup"; +const _pN = "policyName"; +const _pS = "pageSize"; +const _r = "recursive"; +const _rA = "resourceArn"; +const _rD = "ruleDisabled"; +const _rT = "reportType"; +const _s = "status"; +const _sAA = "setAsActive"; +const _sAD = "setAsDefault"; +const _sPN = "securityProfileName"; +const _sPTA = "securityProfileTargetArn"; +const _sT = "startTime"; +const _sTe = "serviceType"; +const _t = "tags"; +const _tAA = "targetAwsAccount"; +const _tGI = "thingGroupId"; +const _tGN = "thingGroupName"; +const _tI = "taskId"; +const _tN = "targetName"; +const _tNe = "templateName"; +const _tNh = "thingName"; +const _tS = "taskStatus"; +const _tSa = "targetSelection"; +const _tT = "targetType"; +const _tTN = "thingTypeName"; +const _tTa = "taskType"; +const _tV = "templateVersion"; +const _to = "topic"; +const _uPAV = "usePrefixAttributeValue"; +const _vI = "violationId"; +const _vS = "verificationState"; +const _xaip = "x-amzn-iot-principal"; +const _xaip_ = "x-amzn-iot-policy"; +const _xap = "x-amzn-principal"; +const _xat = "x-amz-tagging"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iotanalytics/package.json b/clients/client-iotanalytics/package.json index 19ad28a34b09..c45b53f2865b 100644 --- a/clients/client-iotanalytics/package.json +++ b/clients/client-iotanalytics/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts index cb108c3f9980..2d56e4ab0a9e 100644 --- a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -167,11 +168,11 @@ export const se_BatchPutMessageCommand = async ( input: BatchPutMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/messages/batch"; + b.bp("/messages/batch"); let body: any; body = JSON.stringify( take(input, { @@ -179,15 +180,8 @@ export const se_BatchPutMessageCommand = async ( messages: (_) => se_Messages(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -197,37 +191,14 @@ export const se_CancelPipelineReprocessingCommand = async ( input: CancelPipelineReprocessingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/pipelines/{pipelineName}/reprocessing/{reprocessingId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "pipelineName", - () => input.pipelineName!, - "{pipelineName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "reprocessingId", - () => input.reprocessingId!, - "{reprocessingId}", - false - ); + b.bp("/pipelines/{pipelineName}/reprocessing/{reprocessingId}"); + b.p("pipelineName", () => input.pipelineName!, "{pipelineName}", false); + b.p("reprocessingId", () => input.reprocessingId!, "{reprocessingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -237,11 +208,11 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); let body: any; body = JSON.stringify( take(input, { @@ -251,15 +222,8 @@ export const se_CreateChannelCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -269,11 +233,11 @@ export const se_CreateDatasetCommand = async ( input: CreateDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets"; + b.bp("/datasets"); let body: any; body = JSON.stringify( take(input, { @@ -287,15 +251,8 @@ export const se_CreateDatasetCommand = async ( versioningConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -305,28 +262,20 @@ export const se_CreateDatasetContentCommand = async ( input: CreateDatasetContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetName}/content"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetName", () => input.datasetName!, "{datasetName}", false); + b.bp("/datasets/{datasetName}/content"); + b.p("datasetName", () => input.datasetName!, "{datasetName}", false); let body: any; body = JSON.stringify( take(input, { versionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -336,11 +285,11 @@ export const se_CreateDatastoreCommand = async ( input: CreateDatastoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastores"; + b.bp("/datastores"); let body: any; body = JSON.stringify( take(input, { @@ -352,15 +301,8 @@ export const se_CreateDatastoreCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -370,11 +312,11 @@ export const se_CreatePipelineCommand = async ( input: CreatePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pipelines"; + b.bp("/pipelines"); let body: any; body = JSON.stringify( take(input, { @@ -383,15 +325,8 @@ export const se_CreatePipelineCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -401,20 +336,13 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{channelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "channelName", () => input.channelName!, "{channelName}", false); + b.bp("/channels/{channelName}"); + b.p("channelName", () => input.channelName!, "{channelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -424,20 +352,13 @@ export const se_DeleteDatasetCommand = async ( input: DeleteDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetName", () => input.datasetName!, "{datasetName}", false); + b.bp("/datasets/{datasetName}"); + b.p("datasetName", () => input.datasetName!, "{datasetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -447,25 +368,16 @@ export const se_DeleteDatasetContentCommand = async ( input: DeleteDatasetContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetName}/content"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetName", () => input.datasetName!, "{datasetName}", false); + b.bp("/datasets/{datasetName}/content"); + b.p("datasetName", () => input.datasetName!, "{datasetName}", false); const query: any = map({ - versionId: [, input.versionId!], + [_vI]: [, input[_vI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -475,28 +387,13 @@ export const se_DeleteDatastoreCommand = async ( input: DeleteDatastoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastores/{datastoreName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "datastoreName", - () => input.datastoreName!, - "{datastoreName}", - false - ); + b.bp("/datastores/{datastoreName}"); + b.p("datastoreName", () => input.datastoreName!, "{datastoreName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -506,28 +403,13 @@ export const se_DeletePipelineCommand = async ( input: DeletePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pipelines/{pipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "pipelineName", - () => input.pipelineName!, - "{pipelineName}", - false - ); + b.bp("/pipelines/{pipelineName}"); + b.p("pipelineName", () => input.pipelineName!, "{pipelineName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -537,24 +419,16 @@ export const se_DescribeChannelCommand = async ( input: DescribeChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{channelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "channelName", () => input.channelName!, "{channelName}", false); + b.bp("/channels/{channelName}"); + b.p("channelName", () => input.channelName!, "{channelName}", false); const query: any = map({ - includeStatistics: [() => input.includeStatistics !== void 0, () => input.includeStatistics!.toString()], + [_iS]: [() => input.includeStatistics !== void 0, () => input[_iS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -564,20 +438,13 @@ export const se_DescribeDatasetCommand = async ( input: DescribeDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetName", () => input.datasetName!, "{datasetName}", false); + b.bp("/datasets/{datasetName}"); + b.p("datasetName", () => input.datasetName!, "{datasetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -587,32 +454,16 @@ export const se_DescribeDatastoreCommand = async ( input: DescribeDatastoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastores/{datastoreName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "datastoreName", - () => input.datastoreName!, - "{datastoreName}", - false - ); + b.bp("/datastores/{datastoreName}"); + b.p("datastoreName", () => input.datastoreName!, "{datastoreName}", false); const query: any = map({ - includeStatistics: [() => input.includeStatistics !== void 0, () => input.includeStatistics!.toString()], + [_iS]: [() => input.includeStatistics !== void 0, () => input[_iS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -622,22 +473,15 @@ export const se_DescribeLoggingOptionsCommand = async ( input: DescribeLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging"; + b.bp("/logging"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -647,28 +491,13 @@ export const se_DescribePipelineCommand = async ( input: DescribePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pipelines/{pipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "pipelineName", - () => input.pipelineName!, - "{pipelineName}", - false - ); + b.bp("/pipelines/{pipelineName}"); + b.p("pipelineName", () => input.pipelineName!, "{pipelineName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -678,25 +507,16 @@ export const se_GetDatasetContentCommand = async ( input: GetDatasetContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetName}/content"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetName", () => input.datasetName!, "{datasetName}", false); + b.bp("/datasets/{datasetName}/content"); + b.p("datasetName", () => input.datasetName!, "{datasetName}", false); const query: any = map({ - versionId: [, input.versionId!], + [_vI]: [, input[_vI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -706,24 +526,16 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -733,34 +545,22 @@ export const se_ListDatasetContentsCommand = async ( input: ListDatasetContentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetName}/contents"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetName", () => input.datasetName!, "{datasetName}", false); + b.bp("/datasets/{datasetName}/contents"); + b.p("datasetName", () => input.datasetName!, "{datasetName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - scheduledOnOrAfter: [ + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_sOOA]: [ () => input.scheduledOnOrAfter !== void 0, - () => (input.scheduledOnOrAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - scheduledBefore: [ - () => input.scheduledBefore !== void 0, - () => (input.scheduledBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sOOA]!.toISOString().split(".")[0] + "Z").toString(), ], + [_sB]: [() => input.scheduledBefore !== void 0, () => (input[_sB]!.toISOString().split(".")[0] + "Z").toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -770,24 +570,16 @@ export const se_ListDatasetsCommand = async ( input: ListDatasetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets"; + b.bp("/datasets"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -797,24 +589,16 @@ export const se_ListDatastoresCommand = async ( input: ListDatastoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastores"; + b.bp("/datastores"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -824,24 +608,16 @@ export const se_ListPipelinesCommand = async ( input: ListPipelinesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pipelines"; + b.bp("/pipelines"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -851,23 +627,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -877,26 +645,19 @@ export const se_PutLoggingOptionsCommand = async ( input: PutLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging"; + b.bp("/logging"); let body: any; body = JSON.stringify( take(input, { loggingOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -906,12 +667,11 @@ export const se_RunPipelineActivityCommand = async ( input: RunPipelineActivityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pipelineactivities/run"; + b.bp("/pipelineactivities/run"); let body: any; body = JSON.stringify( take(input, { @@ -919,15 +679,8 @@ export const se_RunPipelineActivityCommand = async ( pipelineActivity: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -937,30 +690,18 @@ export const se_SampleChannelDataCommand = async ( input: SampleChannelDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{channelName}/sample"; - resolvedPath = __resolvedPath(resolvedPath, input, "channelName", () => input.channelName!, "{channelName}", false); + b.bp("/channels/{channelName}/sample"); + b.p("channelName", () => input.channelName!, "{channelName}", false); const query: any = map({ - maxMessages: [() => input.maxMessages !== void 0, () => input.maxMessages!.toString()], - startTime: [ - () => input.startTime !== void 0, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), - ], - endTime: [() => input.endTime !== void 0, () => (input.endTime!.toISOString().split(".")[0] + "Z").toString()], + [_mM]: [() => input.maxMessages !== void 0, () => input[_mM]!.toString()], + [_sT]: [() => input.startTime !== void 0, () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString()], + [_eT]: [() => input.endTime !== void 0, () => (input[_eT]!.toISOString().split(".")[0] + "Z").toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -970,20 +711,12 @@ export const se_StartPipelineReprocessingCommand = async ( input: StartPipelineReprocessingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pipelines/{pipelineName}/reprocessing"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "pipelineName", - () => input.pipelineName!, - "{pipelineName}", - false - ); + b.bp("/pipelines/{pipelineName}/reprocessing"); + b.p("pipelineName", () => input.pipelineName!, "{pipelineName}", false); let body: any; body = JSON.stringify( take(input, { @@ -992,15 +725,8 @@ export const se_StartPipelineReprocessingCommand = async ( startTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1010,13 +736,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -1024,16 +750,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1043,27 +761,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], - tagKeys: [ + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1073,12 +783,12 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{channelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "channelName", () => input.channelName!, "{channelName}", false); + b.bp("/channels/{channelName}"); + b.p("channelName", () => input.channelName!, "{channelName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1086,15 +796,8 @@ export const se_UpdateChannelCommand = async ( retentionPeriod: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1104,12 +807,12 @@ export const se_UpdateDatasetCommand = async ( input: UpdateDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datasetName", () => input.datasetName!, "{datasetName}", false); + b.bp("/datasets/{datasetName}"); + b.p("datasetName", () => input.datasetName!, "{datasetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1121,15 +824,8 @@ export const se_UpdateDatasetCommand = async ( versioningConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1139,20 +835,12 @@ export const se_UpdateDatastoreCommand = async ( input: UpdateDatastoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastores/{datastoreName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "datastoreName", - () => input.datastoreName!, - "{datastoreName}", - false - ); + b.bp("/datastores/{datastoreName}"); + b.p("datastoreName", () => input.datastoreName!, "{datastoreName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1161,15 +849,8 @@ export const se_UpdateDatastoreCommand = async ( retentionPeriod: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1179,35 +860,20 @@ export const se_UpdatePipelineCommand = async ( input: UpdatePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pipelines/{pipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "pipelineName", - () => input.pipelineName!, - "{pipelineName}", - false - ); + b.bp("/pipelines/{pipelineName}"); + b.p("pipelineName", () => input.pipelineName!, "{pipelineName}", false); let body: any; body = JSON.stringify( take(input, { pipelineActivities: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4028,6 +3694,18 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _eT = "endTime"; +const _iS = "includeStatistics"; +const _mM = "maxMessages"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rA = "resourceArn"; +const _sB = "scheduledBefore"; +const _sOOA = "scheduledOnOrAfter"; +const _sT = "startTime"; +const _tK = "tagKeys"; +const _vI = "versionId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iotdeviceadvisor/package.json b/clients/client-iotdeviceadvisor/package.json index 74041da24a67..9bb571ed6bb7 100644 --- a/clients/client-iotdeviceadvisor/package.json +++ b/clients/client-iotdeviceadvisor/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts b/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts index 4c6aa0e5f60a..7b7bbbf35b6b 100644 --- a/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -75,11 +76,11 @@ export const se_CreateSuiteDefinitionCommand = async ( input: CreateSuiteDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions"; + b.bp("/suiteDefinitions"); let body: any; body = JSON.stringify( take(input, { @@ -87,15 +88,8 @@ export const se_CreateSuiteDefinitionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -105,28 +99,13 @@ export const se_DeleteSuiteDefinitionCommand = async ( input: DeleteSuiteDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "suiteDefinitionId", - () => input.suiteDefinitionId!, - "{suiteDefinitionId}", - false - ); + b.bp("/suiteDefinitions/{suiteDefinitionId}"); + b.p("suiteDefinitionId", () => input.suiteDefinitionId!, "{suiteDefinitionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -136,26 +115,18 @@ export const se_GetEndpointCommand = async ( input: GetEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint"; + b.bp("/endpoint"); const query: any = map({ - thingArn: [, input.thingArn!], - certificateArn: [, input.certificateArn!], - deviceRoleArn: [, input.deviceRoleArn!], - authenticationMethod: [, input.authenticationMethod!], + [_tA]: [, input[_tA]!], + [_cA]: [, input[_cA]!], + [_dRA]: [, input[_dRA]!], + [_aM]: [, input[_aM]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -165,32 +136,16 @@ export const se_GetSuiteDefinitionCommand = async ( input: GetSuiteDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "suiteDefinitionId", - () => input.suiteDefinitionId!, - "{suiteDefinitionId}", - false - ); + b.bp("/suiteDefinitions/{suiteDefinitionId}"); + b.p("suiteDefinitionId", () => input.suiteDefinitionId!, "{suiteDefinitionId}", false); const query: any = map({ - suiteDefinitionVersion: [, input.suiteDefinitionVersion!], + [_sDV]: [, input[_sDV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -200,30 +155,14 @@ export const se_GetSuiteRunCommand = async ( input: GetSuiteRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "suiteDefinitionId", - () => input.suiteDefinitionId!, - "{suiteDefinitionId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", () => input.suiteRunId!, "{suiteRunId}", false); + b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}"); + b.p("suiteDefinitionId", () => input.suiteDefinitionId!, "{suiteDefinitionId}", false); + b.p("suiteRunId", () => input.suiteRunId!, "{suiteRunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -233,30 +172,14 @@ export const se_GetSuiteRunReportCommand = async ( input: GetSuiteRunReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "suiteDefinitionId", - () => input.suiteDefinitionId!, - "{suiteDefinitionId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", () => input.suiteRunId!, "{suiteRunId}", false); + b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report"); + b.p("suiteDefinitionId", () => input.suiteDefinitionId!, "{suiteDefinitionId}", false); + b.p("suiteRunId", () => input.suiteRunId!, "{suiteRunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -266,24 +189,16 @@ export const se_ListSuiteDefinitionsCommand = async ( input: ListSuiteDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions"; + b.bp("/suiteDefinitions"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -293,26 +208,18 @@ export const se_ListSuiteRunsCommand = async ( input: ListSuiteRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteRuns"; + b.bp("/suiteRuns"); const query: any = map({ - suiteDefinitionId: [, input.suiteDefinitionId!], - suiteDefinitionVersion: [, input.suiteDefinitionVersion!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sDI]: [, input[_sDI]!], + [_sDV]: [, input[_sDV]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -322,20 +229,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -345,21 +245,12 @@ export const se_StartSuiteRunCommand = async ( input: StartSuiteRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/suiteDefinitions/{suiteDefinitionId}/suiteRuns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "suiteDefinitionId", - () => input.suiteDefinitionId!, - "{suiteDefinitionId}", - false - ); + b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns"); + b.p("suiteDefinitionId", () => input.suiteDefinitionId!, "{suiteDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -368,15 +259,8 @@ export const se_StartSuiteRunCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -386,30 +270,14 @@ export const se_StopSuiteRunCommand = async ( input: StopSuiteRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "suiteDefinitionId", - () => input.suiteDefinitionId!, - "{suiteDefinitionId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", () => input.suiteRunId!, "{suiteRunId}", false); + b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop"); + b.p("suiteDefinitionId", () => input.suiteDefinitionId!, "{suiteDefinitionId}", false); + b.p("suiteRunId", () => input.suiteRunId!, "{suiteRunId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -419,27 +287,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -449,27 +310,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -479,35 +332,20 @@ export const se_UpdateSuiteDefinitionCommand = async ( input: UpdateSuiteDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "suiteDefinitionId", - () => input.suiteDefinitionId!, - "{suiteDefinitionId}", - false - ); + b.bp("/suiteDefinitions/{suiteDefinitionId}"); + b.p("suiteDefinitionId", () => input.suiteDefinitionId!, "{suiteDefinitionId}", false); let body: any; body = JSON.stringify( take(input, { suiteDefinitionConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1492,6 +1330,16 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aM = "authenticationMethod"; +const _cA = "certificateArn"; +const _dRA = "deviceRoleArn"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _sDI = "suiteDefinitionId"; +const _sDV = "suiteDefinitionVersion"; +const _tA = "thingArn"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iotfleethub/package.json b/clients/client-iotfleethub/package.json index 6ea3b97f8bb2..4f37597d6024 100644 --- a/clients/client-iotfleethub/package.json +++ b/clients/client-iotfleethub/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts index 000ba74d7014..c55f6d4073c3 100644 --- a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -52,11 +53,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -67,15 +68,8 @@ export const se_CreateApplicationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -85,32 +79,16 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -120,28 +98,13 @@ export const se_DescribeApplicationCommand = async ( input: DescribeApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -151,23 +114,15 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -177,20 +132,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -200,27 +148,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -230,27 +171,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -260,20 +193,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -282,15 +207,8 @@ export const se_UpdateApplicationCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -871,6 +789,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cT = "clientToken"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iotsitewise/package.json b/clients/client-iotsitewise/package.json index c87c1076971b..64d175c43acd 100644 --- a/clients/client-iotsitewise/package.json +++ b/clients/client-iotsitewise/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iotsitewise/src/models/models_1.ts b/clients/client-iotsitewise/src/models/models_1.ts index c3f026e7afad..d411ee854c67 100644 --- a/clients/client-iotsitewise/src/models/models_1.ts +++ b/clients/client-iotsitewise/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { IoTSiteWiseServiceException as __BaseException } from "./IoTSiteWiseServiceException"; + import { Alarms, AssetModelCompositeModel, diff --git a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts index 725d61cd565d..ef264e19e8a3 100644 --- a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -323,13 +324,12 @@ export const se_AssociateAssetsCommand = async ( input: AssociateAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/associate"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}/associate"); + b.p("assetId", () => input.assetId!, "{assetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -345,15 +345,9 @@ export const se_AssociateAssetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -363,15 +357,15 @@ export const se_AssociateTimeSeriesToAssetPropertyCommand = async ( input: AssociateTimeSeriesToAssetPropertyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/associate"; + b.bp("/timeseries/associate"); const query: any = map({ - alias: [, __expectNonNull(input.alias!, `alias`)], - assetId: [, __expectNonNull(input.assetId!, `assetId`)], - propertyId: [, __expectNonNull(input.propertyId!, `propertyId`)], + [_a]: [, __expectNonNull(input[_a]!, `alias`)], + [_aI]: [, __expectNonNull(input[_aI]!, `assetId`)], + [_pI]: [, __expectNonNull(input[_pI]!, `propertyId`)], }); let body: any; body = JSON.stringify( @@ -386,16 +380,9 @@ export const se_AssociateTimeSeriesToAssetPropertyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -405,13 +392,12 @@ export const se_BatchAssociateProjectAssetsCommand = async ( input: BatchAssociateProjectAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/associate"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/projects/{projectId}/assets/associate"); + b.p("projectId", () => input.projectId!, "{projectId}", false); let body: any; body = JSON.stringify( take(input, { @@ -426,15 +412,9 @@ export const se_BatchAssociateProjectAssetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -444,13 +424,12 @@ export const se_BatchDisassociateProjectAssetsCommand = async ( input: BatchDisassociateProjectAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/disassociate"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/projects/{projectId}/assets/disassociate"); + b.p("projectId", () => input.projectId!, "{projectId}", false); let body: any; body = JSON.stringify( take(input, { @@ -465,15 +444,9 @@ export const se_BatchDisassociateProjectAssetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -483,12 +456,11 @@ export const se_BatchGetAssetPropertyAggregatesCommand = async ( input: BatchGetAssetPropertyAggregatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates"; + b.bp("/properties/batch/aggregates"); let body: any; body = JSON.stringify( take(input, { @@ -504,15 +476,9 @@ export const se_BatchGetAssetPropertyAggregatesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -522,12 +488,11 @@ export const se_BatchGetAssetPropertyValueCommand = async ( input: BatchGetAssetPropertyValueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest"; + b.bp("/properties/batch/latest"); let body: any; body = JSON.stringify( take(input, { @@ -542,15 +507,9 @@ export const se_BatchGetAssetPropertyValueCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -560,12 +519,11 @@ export const se_BatchGetAssetPropertyValueHistoryCommand = async ( input: BatchGetAssetPropertyValueHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history"; + b.bp("/properties/batch/history"); let body: any; body = JSON.stringify( take(input, { @@ -581,15 +539,9 @@ export const se_BatchGetAssetPropertyValueHistoryCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -599,11 +551,11 @@ export const se_BatchPutAssetPropertyValueCommand = async ( input: BatchPutAssetPropertyValueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties"; + b.bp("/properties"); let body: any; body = JSON.stringify( take(input, { @@ -617,15 +569,9 @@ export const se_BatchPutAssetPropertyValueCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -635,11 +581,11 @@ export const se_CreateAccessPolicyCommand = async ( input: CreateAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies"; + b.bp("/access-policies"); let body: any; body = JSON.stringify( take(input, { @@ -657,15 +603,9 @@ export const se_CreateAccessPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -675,11 +615,11 @@ export const se_CreateAssetCommand = async ( input: CreateAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets"; + b.bp("/assets"); let body: any; body = JSON.stringify( take(input, { @@ -699,15 +639,9 @@ export const se_CreateAssetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -717,11 +651,11 @@ export const se_CreateAssetModelCommand = async ( input: CreateAssetModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models"; + b.bp("/asset-models"); let body: any; body = JSON.stringify( take(input, { @@ -744,15 +678,9 @@ export const se_CreateAssetModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -762,21 +690,12 @@ export const se_CreateAssetModelCompositeModelCommand = async ( input: CreateAssetModelCompositeModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/asset-models/{assetModelId}/composite-models"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); + b.bp("/asset-models/{assetModelId}/composite-models"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -798,15 +717,9 @@ export const se_CreateAssetModelCompositeModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -816,11 +729,11 @@ export const se_CreateBulkImportJobCommand = async ( input: CreateBulkImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); let body: any; body = JSON.stringify( take(input, { @@ -840,15 +753,9 @@ export const se_CreateBulkImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -858,11 +765,11 @@ export const se_CreateDashboardCommand = async ( input: CreateDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards"; + b.bp("/dashboards"); let body: any; body = JSON.stringify( take(input, { @@ -881,15 +788,9 @@ export const se_CreateDashboardCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -899,11 +800,11 @@ export const se_CreateGatewayCommand = async ( input: CreateGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways"; + b.bp("/20200301/gateways"); let body: any; body = JSON.stringify( take(input, { @@ -919,15 +820,9 @@ export const se_CreateGatewayCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -937,11 +832,11 @@ export const se_CreatePortalCommand = async ( input: CreatePortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals"; + b.bp("/portals"); let body: any; body = JSON.stringify( take(input, { @@ -964,15 +859,9 @@ export const se_CreatePortalCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -982,11 +871,11 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); let body: any; body = JSON.stringify( take(input, { @@ -1004,15 +893,9 @@ export const se_CreateProjectCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1022,20 +905,12 @@ export const se_DeleteAccessPolicyCommand = async ( input: DeleteAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "accessPolicyId", - () => input.accessPolicyId!, - "{accessPolicyId}", - false - ); + b.bp("/access-policies/{accessPolicyId}"); + b.p("accessPolicyId", () => input.accessPolicyId!, "{accessPolicyId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1045,16 +920,9 @@ export const se_DeleteAccessPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1064,12 +932,12 @@ export const se_DeleteAssetCommand = async ( input: DeleteAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}"); + b.p("assetId", () => input.assetId!, "{assetId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1079,16 +947,9 @@ export const se_DeleteAssetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1098,20 +959,12 @@ export const se_DeleteAssetModelCommand = async ( input: DeleteAssetModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); + b.bp("/asset-models/{assetModelId}"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1121,16 +974,9 @@ export const se_DeleteAssetModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1140,29 +986,13 @@ export const se_DeleteAssetModelCompositeModelCommand = async ( input: DeleteAssetModelCompositeModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelCompositeModelId", - () => input.assetModelCompositeModelId!, - "{assetModelCompositeModelId}", - false - ); + b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); + b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId!, "{assetModelCompositeModelId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1172,16 +1002,9 @@ export const se_DeleteAssetModelCompositeModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1191,13 +1014,12 @@ export const se_DeleteDashboardCommand = async ( input: DeleteDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "dashboardId", () => input.dashboardId!, "{dashboardId}", false); + b.bp("/dashboards/{dashboardId}"); + b.p("dashboardId", () => input.dashboardId!, "{dashboardId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1207,16 +1029,9 @@ export const se_DeleteDashboardCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1226,11 +1041,10 @@ export const se_DeleteGatewayCommand = async ( input: DeleteGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId!, "{gatewayId}", false); + b.bp("/20200301/gateways/{gatewayId}"); + b.p("gatewayId", () => input.gatewayId!, "{gatewayId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1239,15 +1053,9 @@ export const se_DeleteGatewayCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1257,12 +1065,12 @@ export const se_DeletePortalCommand = async ( input: DeletePortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalId", () => input.portalId!, "{portalId}", false); + b.bp("/portals/{portalId}"); + b.p("portalId", () => input.portalId!, "{portalId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1272,16 +1080,9 @@ export const se_DeletePortalCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1291,12 +1092,12 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/projects/{projectId}"); + b.p("projectId", () => input.projectId!, "{projectId}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1306,16 +1107,9 @@ export const se_DeleteProjectCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1325,15 +1119,15 @@ export const se_DeleteTimeSeriesCommand = async ( input: DeleteTimeSeriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/delete"; + b.bp("/timeseries/delete"); const query: any = map({ - alias: [, input.alias!], - assetId: [, input.assetId!], - propertyId: [, input.propertyId!], + [_a]: [, input[_a]!], + [_aI]: [, input[_aI]!], + [_pI]: [, input[_pI]!], }); let body: any; body = JSON.stringify( @@ -1348,16 +1142,9 @@ export const se_DeleteTimeSeriesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1367,18 +1154,10 @@ export const se_DescribeAccessPolicyCommand = async ( input: DescribeAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "accessPolicyId", - () => input.accessPolicyId!, - "{accessPolicyId}", - false - ); + b.bp("/access-policies/{accessPolicyId}"); + b.p("accessPolicyId", () => input.accessPolicyId!, "{accessPolicyId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1387,15 +1166,9 @@ export const se_DescribeAccessPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1405,10 +1178,10 @@ export const se_DescribeActionCommand = async ( input: DescribeActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{actionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "actionId", () => input.actionId!, "{actionId}", false); + b.bp("/actions/{actionId}"); + b.p("actionId", () => input.actionId!, "{actionId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1417,15 +1190,9 @@ export const se_DescribeActionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1435,12 +1202,12 @@ export const se_DescribeAssetCommand = async ( input: DescribeAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}"); + b.p("assetId", () => input.assetId!, "{assetId}", false); const query: any = map({ - excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties!.toString()], + [_eP]: [() => input.excludeProperties !== void 0, () => input[_eP]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1450,16 +1217,9 @@ export const se_DescribeAssetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1469,20 +1229,11 @@ export const se_DescribeAssetCompositeModelCommand = async ( input: DescribeAssetCompositeModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assets/{assetId}/composite-models/{assetCompositeModelId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetCompositeModelId", - () => input.assetCompositeModelId!, - "{assetCompositeModelId}", - false - ); + b.bp("/assets/{assetId}/composite-models/{assetCompositeModelId}"); + b.p("assetId", () => input.assetId!, "{assetId}", false); + b.p("assetCompositeModelId", () => input.assetCompositeModelId!, "{assetCompositeModelId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1491,15 +1242,9 @@ export const se_DescribeAssetCompositeModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1509,20 +1254,12 @@ export const se_DescribeAssetModelCommand = async ( input: DescribeAssetModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); + b.bp("/asset-models/{assetModelId}"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); const query: any = map({ - excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties!.toString()], + [_eP]: [() => input.excludeProperties !== void 0, () => input[_eP]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1532,16 +1269,9 @@ export const se_DescribeAssetModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1551,27 +1281,11 @@ export const se_DescribeAssetModelCompositeModelCommand = async ( input: DescribeAssetModelCompositeModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelCompositeModelId", - () => input.assetModelCompositeModelId!, - "{assetModelCompositeModelId}", - false - ); + b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); + b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId!, "{assetModelCompositeModelId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1580,15 +1294,9 @@ export const se_DescribeAssetModelCompositeModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1598,12 +1306,11 @@ export const se_DescribeAssetPropertyCommand = async ( input: DescribeAssetPropertyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "propertyId", () => input.propertyId!, "{propertyId}", false); + b.bp("/assets/{assetId}/properties/{propertyId}"); + b.p("assetId", () => input.assetId!, "{assetId}", false); + b.p("propertyId", () => input.propertyId!, "{propertyId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1612,15 +1319,9 @@ export const se_DescribeAssetPropertyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1630,10 +1331,10 @@ export const se_DescribeBulkImportJobCommand = async ( input: DescribeBulkImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1642,15 +1343,9 @@ export const se_DescribeBulkImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1660,11 +1355,10 @@ export const se_DescribeDashboardCommand = async ( input: DescribeDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "dashboardId", () => input.dashboardId!, "{dashboardId}", false); + b.bp("/dashboards/{dashboardId}"); + b.p("dashboardId", () => input.dashboardId!, "{dashboardId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1673,15 +1367,9 @@ export const se_DescribeDashboardCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1691,12 +1379,11 @@ export const se_DescribeDefaultEncryptionConfigurationCommand = async ( input: DescribeDefaultEncryptionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption"; + b.bp("/configuration/account/encryption"); let body: any; body = ""; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1706,15 +1393,9 @@ export const se_DescribeDefaultEncryptionConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1724,11 +1405,10 @@ export const se_DescribeGatewayCommand = async ( input: DescribeGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId!, "{gatewayId}", false); + b.bp("/20200301/gateways/{gatewayId}"); + b.p("gatewayId", () => input.gatewayId!, "{gatewayId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1737,15 +1417,9 @@ export const se_DescribeGatewayCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1755,20 +1429,11 @@ export const se_DescribeGatewayCapabilityConfigurationCommand = async ( input: DescribeGatewayCapabilityConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}"; - resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId!, "{gatewayId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "capabilityNamespace", - () => input.capabilityNamespace!, - "{capabilityNamespace}", - false - ); + b.bp("/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}"); + b.p("gatewayId", () => input.gatewayId!, "{gatewayId}", false); + b.p("capabilityNamespace", () => input.capabilityNamespace!, "{capabilityNamespace}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1777,15 +1442,9 @@ export const se_DescribeGatewayCapabilityConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1795,11 +1454,11 @@ export const se_DescribeLoggingOptionsCommand = async ( input: DescribeLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging"; + b.bp("/logging"); let body: any; body = ""; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1809,15 +1468,9 @@ export const se_DescribeLoggingOptionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1827,10 +1480,10 @@ export const se_DescribePortalCommand = async ( input: DescribePortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalId", () => input.portalId!, "{portalId}", false); + b.bp("/portals/{portalId}"); + b.p("portalId", () => input.portalId!, "{portalId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1839,15 +1492,9 @@ export const se_DescribePortalCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1857,10 +1504,10 @@ export const se_DescribeProjectCommand = async ( input: DescribeProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/projects/{projectId}"); + b.p("projectId", () => input.projectId!, "{projectId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1869,15 +1516,9 @@ export const se_DescribeProjectCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1887,12 +1528,11 @@ export const se_DescribeStorageConfigurationCommand = async ( input: DescribeStorageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage"; + b.bp("/configuration/account/storage"); let body: any; body = ""; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1902,15 +1542,9 @@ export const se_DescribeStorageConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1920,13 +1554,13 @@ export const se_DescribeTimeSeriesCommand = async ( input: DescribeTimeSeriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/describe"; + b.bp("/timeseries/describe"); const query: any = map({ - alias: [, input.alias!], - assetId: [, input.assetId!], - propertyId: [, input.propertyId!], + [_a]: [, input[_a]!], + [_aI]: [, input[_aI]!], + [_pI]: [, input[_pI]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1936,16 +1570,9 @@ export const se_DescribeTimeSeriesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1955,13 +1582,12 @@ export const se_DisassociateAssetsCommand = async ( input: DisassociateAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/disassociate"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}/disassociate"); + b.p("assetId", () => input.assetId!, "{assetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1977,15 +1603,9 @@ export const se_DisassociateAssetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1995,16 +1615,15 @@ export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async ( input: DisassociateTimeSeriesFromAssetPropertyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/disassociate"; + b.bp("/timeseries/disassociate"); const query: any = map({ - alias: [, __expectNonNull(input.alias!, `alias`)], - assetId: [, __expectNonNull(input.assetId!, `assetId`)], - propertyId: [, __expectNonNull(input.propertyId!, `propertyId`)], + [_a]: [, __expectNonNull(input[_a]!, `alias`)], + [_aI]: [, __expectNonNull(input[_aI]!, `assetId`)], + [_pI]: [, __expectNonNull(input[_pI]!, `propertyId`)], }); let body: any; body = JSON.stringify( @@ -2019,16 +1638,9 @@ export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2038,11 +1650,11 @@ export const se_ExecuteActionCommand = async ( input: ExecuteActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions"; + b.bp("/actions"); let body: any; body = JSON.stringify( take(input, { @@ -2059,15 +1671,9 @@ export const se_ExecuteActionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2077,11 +1683,11 @@ export const se_ExecuteQueryCommand = async ( input: ExecuteQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution"; + b.bp("/queries/execution"); let body: any; body = JSON.stringify( take(input, { @@ -2097,15 +1703,9 @@ export const se_ExecuteQueryCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2115,30 +1715,30 @@ export const se_GetAssetPropertyAggregatesCommand = async ( input: GetAssetPropertyAggregatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/aggregates"; + b.bp("/properties/aggregates"); const query: any = map({ - assetId: [, input.assetId!], - propertyId: [, input.propertyId!], - propertyAlias: [, input.propertyAlias!], - aggregateTypes: [ + [_aI]: [, input[_aI]!], + [_pI]: [, input[_pI]!], + [_pA]: [, input[_pA]!], + [_aT]: [ __expectNonNull(input.aggregateTypes, `aggregateTypes`) != null, - () => (input.aggregateTypes! || []).map((_entry) => _entry as any), + () => (input[_aT]! || []).map((_entry) => _entry as any), ], - resolution: [, __expectNonNull(input.resolution!, `resolution`)], - qualities: [() => input.qualities !== void 0, () => (input.qualities! || []).map((_entry) => _entry as any)], - startDate: [ + [_r]: [, __expectNonNull(input[_r]!, `resolution`)], + [_q]: [() => input.qualities !== void 0, () => (input[_q]! || []).map((_entry) => _entry as any)], + [_sD]: [ __expectNonNull(input.startDate, `startDate`) != null, - () => (input.startDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sD]!.toISOString().split(".")[0] + "Z").toString(), ], - endDate: [ + [_eD]: [ __expectNonNull(input.endDate, `endDate`) != null, - () => (input.endDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_eD]!.toISOString().split(".")[0] + "Z").toString(), ], - timeOrdering: [, input.timeOrdering!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_tO]: [, input[_tO]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2148,16 +1748,9 @@ export const se_GetAssetPropertyAggregatesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2167,13 +1760,13 @@ export const se_GetAssetPropertyValueCommand = async ( input: GetAssetPropertyValueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/latest"; + b.bp("/properties/latest"); const query: any = map({ - assetId: [, input.assetId!], - propertyId: [, input.propertyId!], - propertyAlias: [, input.propertyAlias!], + [_aI]: [, input[_aI]!], + [_pI]: [, input[_pI]!], + [_pA]: [, input[_pA]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2183,16 +1776,9 @@ export const se_GetAssetPropertyValueCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2202,22 +1788,19 @@ export const se_GetAssetPropertyValueHistoryCommand = async ( input: GetAssetPropertyValueHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/history"; + b.bp("/properties/history"); const query: any = map({ - assetId: [, input.assetId!], - propertyId: [, input.propertyId!], - propertyAlias: [, input.propertyAlias!], - startDate: [ - () => input.startDate !== void 0, - () => (input.startDate!.toISOString().split(".")[0] + "Z").toString(), - ], - endDate: [() => input.endDate !== void 0, () => (input.endDate!.toISOString().split(".")[0] + "Z").toString()], - qualities: [() => input.qualities !== void 0, () => (input.qualities! || []).map((_entry) => _entry as any)], - timeOrdering: [, input.timeOrdering!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_aI]: [, input[_aI]!], + [_pI]: [, input[_pI]!], + [_pA]: [, input[_pA]!], + [_sD]: [() => input.startDate !== void 0, () => (input[_sD]!.toISOString().split(".")[0] + "Z").toString()], + [_eD]: [() => input.endDate !== void 0, () => (input[_eD]!.toISOString().split(".")[0] + "Z").toString()], + [_q]: [() => input.qualities !== void 0, () => (input[_q]! || []).map((_entry) => _entry as any)], + [_tO]: [, input[_tO]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2227,16 +1810,9 @@ export const se_GetAssetPropertyValueHistoryCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2246,39 +1822,23 @@ export const se_GetInterpolatedAssetPropertyValuesCommand = async ( input: GetInterpolatedAssetPropertyValuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/interpolated"; + b.bp("/properties/interpolated"); const query: any = map({ - assetId: [, input.assetId!], - propertyId: [, input.propertyId!], - propertyAlias: [, input.propertyAlias!], - startTimeInSeconds: [ - __expectNonNull(input.startTimeInSeconds, `startTimeInSeconds`) != null, - () => input.startTimeInSeconds!.toString(), - ], - startTimeOffsetInNanos: [ - () => input.startTimeOffsetInNanos !== void 0, - () => input.startTimeOffsetInNanos!.toString(), - ], - endTimeInSeconds: [ - __expectNonNull(input.endTimeInSeconds, `endTimeInSeconds`) != null, - () => input.endTimeInSeconds!.toString(), - ], - endTimeOffsetInNanos: [() => input.endTimeOffsetInNanos !== void 0, () => input.endTimeOffsetInNanos!.toString()], - quality: [, __expectNonNull(input.quality!, `quality`)], - intervalInSeconds: [ - __expectNonNull(input.intervalInSeconds, `intervalInSeconds`) != null, - () => input.intervalInSeconds!.toString(), - ], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - type: [, __expectNonNull(input.type!, `type`)], - intervalWindowInSeconds: [ - () => input.intervalWindowInSeconds !== void 0, - () => input.intervalWindowInSeconds!.toString(), - ], + [_aI]: [, input[_aI]!], + [_pI]: [, input[_pI]!], + [_pA]: [, input[_pA]!], + [_sTIS]: [__expectNonNull(input.startTimeInSeconds, `startTimeInSeconds`) != null, () => input[_sTIS]!.toString()], + [_sTOIN]: [() => input.startTimeOffsetInNanos !== void 0, () => input[_sTOIN]!.toString()], + [_eTIS]: [__expectNonNull(input.endTimeInSeconds, `endTimeInSeconds`) != null, () => input[_eTIS]!.toString()], + [_eTOIN]: [() => input.endTimeOffsetInNanos !== void 0, () => input[_eTOIN]!.toString()], + [_qu]: [, __expectNonNull(input[_qu]!, `quality`)], + [_iIS]: [__expectNonNull(input.intervalInSeconds, `intervalInSeconds`) != null, () => input[_iIS]!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_t]: [, __expectNonNull(input[_t]!, `type`)], + [_iWIS]: [() => input.intervalWindowInSeconds !== void 0, () => input[_iWIS]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2288,16 +1848,9 @@ export const se_GetInterpolatedAssetPropertyValuesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2307,17 +1860,17 @@ export const se_ListAccessPoliciesCommand = async ( input: ListAccessPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies"; + b.bp("/access-policies"); const query: any = map({ - identityType: [, input.identityType!], - identityId: [, input.identityId!], - resourceType: [, input.resourceType!], - resourceId: [, input.resourceId!], - iamArn: [, input.iamArn!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_iT]: [, input[_iT]!], + [_iI]: [, input[_iI]!], + [_rT]: [, input[_rT]!], + [_rI]: [, input[_rI]!], + [_iA]: [, input[_iA]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2327,16 +1880,9 @@ export const se_ListAccessPoliciesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2346,14 +1892,14 @@ export const se_ListActionsCommand = async ( input: ListActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions"; + b.bp("/actions"); const query: any = map({ - targetResourceType: [, __expectNonNull(input.targetResourceType!, `targetResourceType`)], - targetResourceId: [, __expectNonNull(input.targetResourceId!, `targetResourceId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_tRT]: [, __expectNonNull(input[_tRT]!, `targetResourceType`)], + [_tRI]: [, __expectNonNull(input[_tRI]!, `targetResourceId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2363,16 +1909,9 @@ export const se_ListActionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2382,22 +1921,13 @@ export const se_ListAssetModelCompositeModelsCommand = async ( input: ListAssetModelCompositeModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/asset-models/{assetModelId}/composite-models"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); + b.bp("/asset-models/{assetModelId}/composite-models"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2407,16 +1937,9 @@ export const se_ListAssetModelCompositeModelsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2426,22 +1949,14 @@ export const se_ListAssetModelPropertiesCommand = async ( input: ListAssetModelPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}/properties"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); + b.bp("/asset-models/{assetModelId}/properties"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - filter: [, input.filter!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_f]: [, input[_f]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2451,16 +1966,9 @@ export const se_ListAssetModelPropertiesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2470,16 +1978,13 @@ export const se_ListAssetModelsCommand = async ( input: ListAssetModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models"; + b.bp("/asset-models"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - assetModelTypes: [ - () => input.assetModelTypes !== void 0, - () => (input.assetModelTypes! || []).map((_entry) => _entry as any), - ], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_aMT]: [() => input.assetModelTypes !== void 0, () => (input[_aMT]! || []).map((_entry) => _entry as any)], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2489,16 +1994,9 @@ export const se_ListAssetModelsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2508,15 +2006,14 @@ export const se_ListAssetPropertiesCommand = async ( input: ListAssetPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}/properties"); + b.p("assetId", () => input.assetId!, "{assetId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - filter: [, input.filter!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_f]: [, input[_f]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2526,16 +2023,9 @@ export const se_ListAssetPropertiesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2545,15 +2035,14 @@ export const se_ListAssetRelationshipsCommand = async ( input: ListAssetRelationshipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/assetRelationships"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}/assetRelationships"); + b.p("assetId", () => input.assetId!, "{assetId}", false); const query: any = map({ - traversalType: [, __expectNonNull(input.traversalType!, `traversalType`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_tT]: [, __expectNonNull(input[_tT]!, `traversalType`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2563,16 +2052,9 @@ export const se_ListAssetRelationshipsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2582,14 +2064,14 @@ export const se_ListAssetsCommand = async ( input: ListAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets"; + b.bp("/assets"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - assetModelId: [, input.assetModelId!], - filter: [, input.filter!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_aMI]: [, input[_aMI]!], + [_f]: [, input[_f]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2599,16 +2081,9 @@ export const se_ListAssetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2618,16 +2093,15 @@ export const se_ListAssociatedAssetsCommand = async ( input: ListAssociatedAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/hierarchies"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}/hierarchies"); + b.p("assetId", () => input.assetId!, "{assetId}", false); const query: any = map({ - hierarchyId: [, input.hierarchyId!], - traversalDirection: [, input.traversalDirection!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_hI]: [, input[_hI]!], + [_tD]: [, input[_tD]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2637,16 +2111,9 @@ export const se_ListAssociatedAssetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2656,13 +2123,13 @@ export const se_ListBulkImportJobsCommand = async ( input: ListBulkImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - filter: [, input.filter!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_f]: [, input[_f]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2672,16 +2139,9 @@ export const se_ListBulkImportJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2691,22 +2151,13 @@ export const se_ListCompositionRelationshipsCommand = async ( input: ListCompositionRelationshipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/asset-models/{assetModelId}/composition-relationships"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); + b.bp("/asset-models/{assetModelId}/composition-relationships"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2716,16 +2167,9 @@ export const se_ListCompositionRelationshipsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2735,13 +2179,13 @@ export const se_ListDashboardsCommand = async ( input: ListDashboardsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards"; + b.bp("/dashboards"); const query: any = map({ - projectId: [, __expectNonNull(input.projectId!, `projectId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_pIr]: [, __expectNonNull(input[_pIr]!, `projectId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2751,16 +2195,9 @@ export const se_ListDashboardsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2770,12 +2207,12 @@ export const se_ListGatewaysCommand = async ( input: ListGatewaysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways"; + b.bp("/20200301/gateways"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2785,16 +2222,9 @@ export const se_ListGatewaysCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2804,12 +2234,12 @@ export const se_ListPortalsCommand = async ( input: ListPortalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals"; + b.bp("/portals"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2819,16 +2249,9 @@ export const se_ListPortalsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2838,14 +2261,13 @@ export const se_ListProjectAssetsCommand = async ( input: ListProjectAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/projects/{projectId}/assets"); + b.p("projectId", () => input.projectId!, "{projectId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2855,16 +2277,9 @@ export const se_ListProjectAssetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2874,13 +2289,13 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); const query: any = map({ - portalId: [, __expectNonNull(input.portalId!, `portalId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_pIo]: [, __expectNonNull(input[_pIo]!, `portalId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2890,16 +2305,9 @@ export const se_ListProjectsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2909,11 +2317,11 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2923,16 +2331,9 @@ export const se_ListTagsForResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2942,15 +2343,15 @@ export const se_ListTimeSeriesCommand = async ( input: ListTimeSeriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries"; + b.bp("/timeseries"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - assetId: [, input.assetId!], - aliasPrefix: [, input.aliasPrefix!], - timeSeriesType: [, input.timeSeriesType!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_aI]: [, input[_aI]!], + [_aP]: [, input[_aP]!], + [_tST]: [, input[_tST]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2960,16 +2361,9 @@ export const se_ListTimeSeriesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2979,12 +2373,11 @@ export const se_PutDefaultEncryptionConfigurationCommand = async ( input: PutDefaultEncryptionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption"; + b.bp("/configuration/account/encryption"); let body: any; body = JSON.stringify( take(input, { @@ -2999,15 +2392,9 @@ export const se_PutDefaultEncryptionConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3017,11 +2404,11 @@ export const se_PutLoggingOptionsCommand = async ( input: PutLoggingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging"; + b.bp("/logging"); let body: any; body = JSON.stringify( take(input, { @@ -3035,15 +2422,9 @@ export const se_PutLoggingOptionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3053,12 +2434,11 @@ export const se_PutStorageConfigurationCommand = async ( input: PutStorageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage"; + b.bp("/configuration/account/storage"); let body: any; body = JSON.stringify( take(input, { @@ -3077,15 +2457,9 @@ export const se_PutStorageConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3095,13 +2469,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -3116,16 +2490,9 @@ export const se_TagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3135,14 +2502,14 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], - tagKeys: [ + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -3153,16 +2520,9 @@ export const se_UntagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3172,20 +2532,12 @@ export const se_UpdateAccessPolicyCommand = async ( input: UpdateAccessPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "accessPolicyId", - () => input.accessPolicyId!, - "{accessPolicyId}", - false - ); + b.bp("/access-policies/{accessPolicyId}"); + b.p("accessPolicyId", () => input.accessPolicyId!, "{accessPolicyId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3202,15 +2554,9 @@ export const se_UpdateAccessPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3220,12 +2566,12 @@ export const se_UpdateAssetCommand = async ( input: UpdateAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); + b.bp("/assets/{assetId}"); + b.p("assetId", () => input.assetId!, "{assetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3242,15 +2588,9 @@ export const se_UpdateAssetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3260,20 +2600,12 @@ export const se_UpdateAssetModelCommand = async ( input: UpdateAssetModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); + b.bp("/asset-models/{assetModelId}"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3293,15 +2625,9 @@ export const se_UpdateAssetModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3311,29 +2637,13 @@ export const se_UpdateAssetModelCompositeModelCommand = async ( input: UpdateAssetModelCompositeModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelId", - () => input.assetModelId!, - "{assetModelId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assetModelCompositeModelId", - () => input.assetModelCompositeModelId!, - "{assetModelCompositeModelId}", - false - ); + b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}"); + b.p("assetModelId", () => input.assetModelId!, "{assetModelId}", false); + b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId!, "{assetModelCompositeModelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3351,15 +2661,9 @@ export const se_UpdateAssetModelCompositeModelCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3369,14 +2673,13 @@ export const se_UpdateAssetPropertyCommand = async ( input: UpdateAssetPropertyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId!, "{assetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "propertyId", () => input.propertyId!, "{propertyId}", false); + b.bp("/assets/{assetId}/properties/{propertyId}"); + b.p("assetId", () => input.assetId!, "{assetId}", false); + b.p("propertyId", () => input.propertyId!, "{propertyId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3393,15 +2696,9 @@ export const se_UpdateAssetPropertyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3411,13 +2708,12 @@ export const se_UpdateDashboardCommand = async ( input: UpdateDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "dashboardId", () => input.dashboardId!, "{dashboardId}", false); + b.bp("/dashboards/{dashboardId}"); + b.p("dashboardId", () => input.dashboardId!, "{dashboardId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3434,15 +2730,9 @@ export const se_UpdateDashboardCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3452,13 +2742,12 @@ export const se_UpdateGatewayCommand = async ( input: UpdateGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId!, "{gatewayId}", false); + b.bp("/20200301/gateways/{gatewayId}"); + b.p("gatewayId", () => input.gatewayId!, "{gatewayId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3472,15 +2761,9 @@ export const se_UpdateGatewayCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3490,13 +2773,12 @@ export const se_UpdateGatewayCapabilityConfigurationCommand = async ( input: UpdateGatewayCapabilityConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}/capability"; - resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId!, "{gatewayId}", false); + b.bp("/20200301/gateways/{gatewayId}/capability"); + b.p("gatewayId", () => input.gatewayId!, "{gatewayId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3511,15 +2793,9 @@ export const se_UpdateGatewayCapabilityConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3529,12 +2805,12 @@ export const se_UpdatePortalCommand = async ( input: UpdatePortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalId", () => input.portalId!, "{portalId}", false); + b.bp("/portals/{portalId}"); + b.p("portalId", () => input.portalId!, "{portalId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3555,15 +2831,9 @@ export const se_UpdatePortalCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3573,12 +2843,12 @@ export const se_UpdateProjectCommand = async ( input: UpdateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/projects/{projectId}"); + b.p("projectId", () => input.projectId!, "{projectId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3594,15 +2864,9 @@ export const se_UpdateProjectCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -10021,6 +9285,48 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "alias"; +const _aI = "assetId"; +const _aMI = "assetModelId"; +const _aMT = "assetModelTypes"; +const _aP = "aliasPrefix"; +const _aT = "aggregateTypes"; +const _cT = "clientToken"; +const _eD = "endDate"; +const _eP = "excludeProperties"; +const _eTIS = "endTimeInSeconds"; +const _eTOIN = "endTimeOffsetInNanos"; +const _f = "filter"; +const _hI = "hierarchyId"; +const _iA = "iamArn"; +const _iI = "identityId"; +const _iIS = "intervalInSeconds"; +const _iT = "identityType"; +const _iWIS = "intervalWindowInSeconds"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pA = "propertyAlias"; +const _pI = "propertyId"; +const _pIo = "portalId"; +const _pIr = "projectId"; +const _q = "qualities"; +const _qu = "quality"; +const _r = "resolution"; +const _rA = "resourceArn"; +const _rI = "resourceId"; +const _rT = "resourceType"; +const _sD = "startDate"; +const _sTIS = "startTimeInSeconds"; +const _sTOIN = "startTimeOffsetInNanos"; +const _t = "type"; +const _tD = "traversalDirection"; +const _tK = "tagKeys"; +const _tO = "timeOrdering"; +const _tRI = "targetResourceId"; +const _tRT = "targetResourceType"; +const _tST = "timeSeriesType"; +const _tT = "traversalType"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-iottwinmaker/package.json b/clients/client-iottwinmaker/package.json index d18e6247e86b..f37f3e81fb7d 100644 --- a/clients/client-iottwinmaker/package.json +++ b/clients/client-iottwinmaker/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-iottwinmaker/src/models/models_0.ts b/clients/client-iottwinmaker/src/models/models_0.ts index 61abdd763c5d..dfa5f69a39f1 100644 --- a/clients/client-iottwinmaker/src/models/models_0.ts +++ b/clients/client-iottwinmaker/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { IoTTwinMakerServiceException as __BaseException } from "./IoTTwinMakerServiceException"; diff --git a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts index 93f3d64f16cc..88468174e118 100644 --- a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -181,14 +182,12 @@ export const se_BatchPutPropertyValuesCommand = async ( input: BatchPutPropertyValuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/entity-properties"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/entity-properties"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -202,15 +201,9 @@ export const se_BatchPutPropertyValuesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -220,19 +213,10 @@ export const se_CancelMetadataTransferJobCommand = async ( input: CancelMetadataTransferJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/metadata-transfer-jobs/{metadataTransferJobId}/cancel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "metadataTransferJobId", - () => input.metadataTransferJobId!, - "{metadataTransferJobId}", - false - ); + b.bp("/metadata-transfer-jobs/{metadataTransferJobId}/cancel"); + b.p("metadataTransferJobId", () => input.metadataTransferJobId!, "{metadataTransferJobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -241,15 +225,9 @@ export const se_CancelMetadataTransferJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -259,22 +237,13 @@ export const se_CreateComponentTypeCommand = async ( input: CreateComponentTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/component-types/{componentTypeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "componentTypeId", - () => input.componentTypeId!, - "{componentTypeId}", - false - ); + b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("componentTypeId", () => input.componentTypeId!, "{componentTypeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -296,15 +265,9 @@ export const se_CreateComponentTypeCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -314,13 +277,12 @@ export const se_CreateEntityCommand = async ( input: CreateEntityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/entities"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/entities"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -340,15 +302,9 @@ export const se_CreateEntityCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -358,12 +314,11 @@ export const se_CreateMetadataTransferJobCommand = async ( input: CreateMetadataTransferJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata-transfer-jobs"; + b.bp("/metadata-transfer-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -380,15 +335,9 @@ export const se_CreateMetadataTransferJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -398,13 +347,12 @@ export const se_CreateSceneCommand = async ( input: CreateSceneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/scenes"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/scenes"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -423,15 +371,9 @@ export const se_CreateSceneCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -441,15 +383,13 @@ export const se_CreateSyncJobCommand = async ( input: CreateSyncJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/sync-jobs/{syncSource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "syncSource", () => input.syncSource!, "{syncSource}", false); + b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("syncSource", () => input.syncSource!, "{syncSource}", false); let body: any; body = JSON.stringify( take(input, { @@ -464,15 +404,9 @@ export const se_CreateSyncJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -482,13 +416,12 @@ export const se_CreateWorkspaceCommand = async ( input: CreateWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -505,15 +438,9 @@ export const se_CreateWorkspaceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -523,20 +450,11 @@ export const se_DeleteComponentTypeCommand = async ( input: DeleteComponentTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/component-types/{componentTypeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "componentTypeId", - () => input.componentTypeId!, - "{componentTypeId}", - false - ); + b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("componentTypeId", () => input.componentTypeId!, "{componentTypeId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -545,15 +463,9 @@ export const se_DeleteComponentTypeCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -563,15 +475,13 @@ export const se_DeleteEntityCommand = async ( input: DeleteEntityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/entities/{entityId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "entityId", () => input.entityId!, "{entityId}", false); + b.bp("/workspaces/{workspaceId}/entities/{entityId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("entityId", () => input.entityId!, "{entityId}", false); const query: any = map({ - isRecursive: [() => input.isRecursive !== void 0, () => input.isRecursive!.toString()], + [_iR]: [() => input.isRecursive !== void 0, () => input[_iR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -581,16 +491,9 @@ export const se_DeleteEntityCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -600,13 +503,11 @@ export const se_DeleteSceneCommand = async ( input: DeleteSceneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/scenes/{sceneId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sceneId", () => input.sceneId!, "{sceneId}", false); + b.bp("/workspaces/{workspaceId}/scenes/{sceneId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("sceneId", () => input.sceneId!, "{sceneId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -615,15 +516,9 @@ export const se_DeleteSceneCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -633,13 +528,11 @@ export const se_DeleteSyncJobCommand = async ( input: DeleteSyncJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/sync-jobs/{syncSource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "syncSource", () => input.syncSource!, "{syncSource}", false); + b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("syncSource", () => input.syncSource!, "{syncSource}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -648,15 +541,9 @@ export const se_DeleteSyncJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -666,11 +553,10 @@ export const se_DeleteWorkspaceCommand = async ( input: DeleteWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -679,15 +565,9 @@ export const se_DeleteWorkspaceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -697,11 +577,11 @@ export const se_ExecuteQueryCommand = async ( input: ExecuteQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution"; + b.bp("/queries/execution"); let body: any; body = JSON.stringify( take(input, { @@ -718,15 +598,9 @@ export const se_ExecuteQueryCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -736,20 +610,11 @@ export const se_GetComponentTypeCommand = async ( input: GetComponentTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/component-types/{componentTypeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "componentTypeId", - () => input.componentTypeId!, - "{componentTypeId}", - false - ); + b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("componentTypeId", () => input.componentTypeId!, "{componentTypeId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -758,15 +623,9 @@ export const se_GetComponentTypeCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -776,13 +635,11 @@ export const se_GetEntityCommand = async ( input: GetEntityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/entities/{entityId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "entityId", () => input.entityId!, "{entityId}", false); + b.bp("/workspaces/{workspaceId}/entities/{entityId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("entityId", () => input.entityId!, "{entityId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -791,15 +648,9 @@ export const se_GetEntityCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -809,19 +660,10 @@ export const se_GetMetadataTransferJobCommand = async ( input: GetMetadataTransferJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/metadata-transfer-jobs/{metadataTransferJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "metadataTransferJobId", - () => input.metadataTransferJobId!, - "{metadataTransferJobId}", - false - ); + b.bp("/metadata-transfer-jobs/{metadataTransferJobId}"); + b.p("metadataTransferJobId", () => input.metadataTransferJobId!, "{metadataTransferJobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -830,15 +672,9 @@ export const se_GetMetadataTransferJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -848,11 +684,11 @@ export const se_GetPricingPlanCommand = async ( input: GetPricingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan"; + b.bp("/pricingplan"); let body: any; body = ""; let { hostname: resolvedHostname } = await context.endpoint(); @@ -862,15 +698,9 @@ export const se_GetPricingPlanCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -880,14 +710,12 @@ export const se_GetPropertyValueCommand = async ( input: GetPropertyValueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/entity-properties/value"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/entity-properties/value"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -909,15 +737,9 @@ export const se_GetPropertyValueCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -927,14 +749,12 @@ export const se_GetPropertyValueHistoryCommand = async ( input: GetPropertyValueHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/entity-properties/history"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/entity-properties/history"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -961,15 +781,9 @@ export const se_GetPropertyValueHistoryCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -979,13 +793,11 @@ export const se_GetSceneCommand = async ( input: GetSceneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/scenes/{sceneId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sceneId", () => input.sceneId!, "{sceneId}", false); + b.bp("/workspaces/{workspaceId}/scenes/{sceneId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("sceneId", () => input.sceneId!, "{sceneId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -994,15 +806,9 @@ export const se_GetSceneCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1012,12 +818,12 @@ export const se_GetSyncJobCommand = async ( input: GetSyncJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sync-jobs/{syncSource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "syncSource", () => input.syncSource!, "{syncSource}", false); + b.bp("/sync-jobs/{syncSource}"); + b.p("syncSource", () => input.syncSource!, "{syncSource}", false); const query: any = map({ - workspace: [, input.workspaceId!], + [_w]: [, input[_wI]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1027,16 +833,9 @@ export const se_GetSyncJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1046,11 +845,10 @@ export const se_GetWorkspaceCommand = async ( input: GetWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1059,15 +857,9 @@ export const se_GetWorkspaceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1077,15 +869,13 @@ export const se_ListComponentsCommand = async ( input: ListComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/entities/{entityId}/components-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "entityId", () => input.entityId!, "{entityId}", false); + b.bp("/workspaces/{workspaceId}/entities/{entityId}/components-list"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("entityId", () => input.entityId!, "{entityId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1101,15 +891,9 @@ export const se_ListComponentsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1119,14 +903,12 @@ export const se_ListComponentTypesCommand = async ( input: ListComponentTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/component-types-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/component-types-list"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1142,15 +924,9 @@ export const se_ListComponentTypesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1160,13 +936,12 @@ export const se_ListEntitiesCommand = async ( input: ListEntitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/entities-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/entities-list"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1182,15 +957,9 @@ export const se_ListEntitiesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1200,12 +969,11 @@ export const se_ListMetadataTransferJobsCommand = async ( input: ListMetadataTransferJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata-transfer-jobs-list"; + b.bp("/metadata-transfer-jobs-list"); let body: any; body = JSON.stringify( take(input, { @@ -1223,15 +991,9 @@ export const se_ListMetadataTransferJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1241,13 +1003,12 @@ export const se_ListPropertiesCommand = async ( input: ListPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/properties-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/properties-list"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1265,15 +1026,9 @@ export const se_ListPropertiesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1283,13 +1038,12 @@ export const se_ListScenesCommand = async ( input: ListScenesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/scenes-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/scenes-list"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1304,15 +1058,9 @@ export const se_ListScenesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1322,13 +1070,12 @@ export const se_ListSyncJobsCommand = async ( input: ListSyncJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/sync-jobs-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}/sync-jobs-list"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1343,15 +1090,9 @@ export const se_ListSyncJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1361,15 +1102,13 @@ export const se_ListSyncResourcesCommand = async ( input: ListSyncResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/sync-jobs/{syncSource}/resources-list"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "syncSource", () => input.syncSource!, "{syncSource}", false); + b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}/resources-list"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("syncSource", () => input.syncSource!, "{syncSource}", false); let body: any; body = JSON.stringify( take(input, { @@ -1385,15 +1124,9 @@ export const se_ListSyncResourcesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1403,11 +1136,11 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags-list"; + b.bp("/tags-list"); let body: any; body = JSON.stringify( take(input, { @@ -1423,15 +1156,9 @@ export const se_ListTagsForResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1441,11 +1168,11 @@ export const se_ListWorkspacesCommand = async ( input: ListWorkspacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces-list"; + b.bp("/workspaces-list"); let body: any; body = JSON.stringify( take(input, { @@ -1460,15 +1187,9 @@ export const se_ListWorkspacesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1478,11 +1199,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); let body: any; body = JSON.stringify( take(input, { @@ -1497,15 +1218,9 @@ export const se_TagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1515,14 +1230,14 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags"; + b.bp("/tags"); const query: any = map({ - resourceARN: [, __expectNonNull(input.resourceARN!, `resourceARN`)], - tagKeys: [ + [_rARN]: [, __expectNonNull(input[_rARN]!, `resourceARN`)], + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -1533,16 +1248,9 @@ export const se_UntagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1552,22 +1260,13 @@ export const se_UpdateComponentTypeCommand = async ( input: UpdateComponentTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/component-types/{componentTypeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "componentTypeId", - () => input.componentTypeId!, - "{componentTypeId}", - false - ); + b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("componentTypeId", () => input.componentTypeId!, "{componentTypeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1588,15 +1287,9 @@ export const se_UpdateComponentTypeCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1606,15 +1299,13 @@ export const se_UpdateEntityCommand = async ( input: UpdateEntityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/entities/{entityId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "entityId", () => input.entityId!, "{entityId}", false); + b.bp("/workspaces/{workspaceId}/entities/{entityId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("entityId", () => input.entityId!, "{entityId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1632,15 +1323,9 @@ export const se_UpdateEntityCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1650,11 +1335,11 @@ export const se_UpdatePricingPlanCommand = async ( input: UpdatePricingPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan"; + b.bp("/pricingplan"); let body: any; body = JSON.stringify( take(input, { @@ -1669,15 +1354,9 @@ export const se_UpdatePricingPlanCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1687,15 +1366,13 @@ export const se_UpdateSceneCommand = async ( input: UpdateSceneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workspaces/{workspaceId}/scenes/{sceneId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sceneId", () => input.sceneId!, "{sceneId}", false); + b.bp("/workspaces/{workspaceId}/scenes/{sceneId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.p("sceneId", () => input.sceneId!, "{sceneId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1712,15 +1389,9 @@ export const se_UpdateSceneCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1730,13 +1401,12 @@ export const se_UpdateWorkspaceCommand = async ( input: UpdateWorkspaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId!, "{workspaceId}", false); + b.bp("/workspaces/{workspaceId}"); + b.p("workspaceId", () => input.workspaceId!, "{workspaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1752,15 +1422,9 @@ export const se_UpdateWorkspaceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5533,6 +5197,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _iR = "isRecursive"; +const _rARN = "resourceARN"; +const _tK = "tagKeys"; +const _w = "workspace"; +const _wI = "workspaceId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ivs-realtime/package.json b/clients/client-ivs-realtime/package.json index ddc1115ef0a5..9c00dc3b8aa2 100644 --- a/clients/client-ivs-realtime/package.json +++ b/clients/client-ivs-realtime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-ivs-realtime/src/protocols/Aws_restJson1.ts b/clients/client-ivs-realtime/src/protocols/Aws_restJson1.ts index e4a64ba6926e..ca391622245f 100644 --- a/clients/client-ivs-realtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivs-realtime/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -127,12 +128,11 @@ export const se_CreateEncoderConfigurationCommand = async ( input: CreateEncoderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateEncoderConfiguration"; + b.bp("/CreateEncoderConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -141,15 +141,8 @@ export const se_CreateEncoderConfigurationCommand = async ( video: (_) => se_Video(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -159,12 +152,11 @@ export const se_CreateParticipantTokenCommand = async ( input: CreateParticipantTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateParticipantToken"; + b.bp("/CreateParticipantToken"); let body: any; body = JSON.stringify( take(input, { @@ -175,15 +167,8 @@ export const se_CreateParticipantTokenCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -193,11 +178,11 @@ export const se_CreateStageCommand = async ( input: CreateStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStage"; + b.bp("/CreateStage"); let body: any; body = JSON.stringify( take(input, { @@ -206,15 +191,8 @@ export const se_CreateStageCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -224,12 +202,11 @@ export const se_CreateStorageConfigurationCommand = async ( input: CreateStorageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStorageConfiguration"; + b.bp("/CreateStorageConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -238,15 +215,8 @@ export const se_CreateStorageConfigurationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -256,27 +226,19 @@ export const se_DeleteEncoderConfigurationCommand = async ( input: DeleteEncoderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteEncoderConfiguration"; + b.bp("/DeleteEncoderConfiguration"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -286,26 +248,19 @@ export const se_DeleteStageCommand = async ( input: DeleteStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStage"; + b.bp("/DeleteStage"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -315,27 +270,19 @@ export const se_DeleteStorageConfigurationCommand = async ( input: DeleteStorageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStorageConfiguration"; + b.bp("/DeleteStorageConfiguration"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -345,11 +292,11 @@ export const se_DisconnectParticipantCommand = async ( input: DisconnectParticipantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectParticipant"; + b.bp("/DisconnectParticipant"); let body: any; body = JSON.stringify( take(input, { @@ -358,15 +305,8 @@ export const se_DisconnectParticipantCommand = async ( stageArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -376,26 +316,19 @@ export const se_GetCompositionCommand = async ( input: GetCompositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComposition"; + b.bp("/GetComposition"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -405,27 +338,19 @@ export const se_GetEncoderConfigurationCommand = async ( input: GetEncoderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetEncoderConfiguration"; + b.bp("/GetEncoderConfiguration"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -435,11 +360,11 @@ export const se_GetParticipantCommand = async ( input: GetParticipantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetParticipant"; + b.bp("/GetParticipant"); let body: any; body = JSON.stringify( take(input, { @@ -448,15 +373,8 @@ export const se_GetParticipantCommand = async ( stageArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -466,26 +384,19 @@ export const se_GetStageCommand = async ( input: GetStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStage"; + b.bp("/GetStage"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -495,11 +406,11 @@ export const se_GetStageSessionCommand = async ( input: GetStageSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStageSession"; + b.bp("/GetStageSession"); let body: any; body = JSON.stringify( take(input, { @@ -507,15 +418,8 @@ export const se_GetStageSessionCommand = async ( stageArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -525,27 +429,19 @@ export const se_GetStorageConfigurationCommand = async ( input: GetStorageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStorageConfiguration"; + b.bp("/GetStorageConfiguration"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -555,11 +451,11 @@ export const se_ListCompositionsCommand = async ( input: ListCompositionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListCompositions"; + b.bp("/ListCompositions"); let body: any; body = JSON.stringify( take(input, { @@ -569,15 +465,8 @@ export const se_ListCompositionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -587,12 +476,11 @@ export const se_ListEncoderConfigurationsCommand = async ( input: ListEncoderConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListEncoderConfigurations"; + b.bp("/ListEncoderConfigurations"); let body: any; body = JSON.stringify( take(input, { @@ -600,15 +488,8 @@ export const se_ListEncoderConfigurationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -618,11 +499,11 @@ export const se_ListParticipantEventsCommand = async ( input: ListParticipantEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListParticipantEvents"; + b.bp("/ListParticipantEvents"); let body: any; body = JSON.stringify( take(input, { @@ -633,15 +514,8 @@ export const se_ListParticipantEventsCommand = async ( stageArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -651,11 +525,11 @@ export const se_ListParticipantsCommand = async ( input: ListParticipantsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListParticipants"; + b.bp("/ListParticipants"); let body: any; body = JSON.stringify( take(input, { @@ -668,15 +542,8 @@ export const se_ListParticipantsCommand = async ( stageArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -686,11 +553,11 @@ export const se_ListStagesCommand = async ( input: ListStagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStages"; + b.bp("/ListStages"); let body: any; body = JSON.stringify( take(input, { @@ -698,15 +565,8 @@ export const se_ListStagesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -716,11 +576,11 @@ export const se_ListStageSessionsCommand = async ( input: ListStageSessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStageSessions"; + b.bp("/ListStageSessions"); let body: any; body = JSON.stringify( take(input, { @@ -729,15 +589,8 @@ export const se_ListStageSessionsCommand = async ( stageArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -747,12 +600,11 @@ export const se_ListStorageConfigurationsCommand = async ( input: ListStorageConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStorageConfigurations"; + b.bp("/ListStorageConfigurations"); let body: any; body = JSON.stringify( take(input, { @@ -760,15 +612,8 @@ export const se_ListStorageConfigurationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -778,20 +623,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -801,11 +639,11 @@ export const se_StartCompositionCommand = async ( input: StartCompositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartComposition"; + b.bp("/StartComposition"); let body: any; body = JSON.stringify( take(input, { @@ -816,15 +654,8 @@ export const se_StartCompositionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -834,26 +665,19 @@ export const se_StopCompositionCommand = async ( input: StopCompositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopComposition"; + b.bp("/StopComposition"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -863,27 +687,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -893,27 +710,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -923,11 +732,11 @@ export const se_UpdateStageCommand = async ( input: UpdateStageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateStage"; + b.bp("/UpdateStage"); let body: any; body = JSON.stringify( take(input, { @@ -935,15 +744,8 @@ export const se_UpdateStageCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2963,6 +2765,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ivs/package.json b/clients/client-ivs/package.json index b06d25604d3a..3ea0e2041a69 100644 --- a/clients/client-ivs/package.json +++ b/clients/client-ivs/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-ivs/src/protocols/Aws_restJson1.ts b/clients/client-ivs/src/protocols/Aws_restJson1.ts index 4031b963cb73..b29737c16b0f 100644 --- a/clients/client-ivs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivs/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -116,26 +117,19 @@ export const se_BatchGetChannelCommand = async ( input: BatchGetChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetChannel"; + b.bp("/BatchGetChannel"); let body: any; body = JSON.stringify( take(input, { arns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -145,26 +139,19 @@ export const se_BatchGetStreamKeyCommand = async ( input: BatchGetStreamKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetStreamKey"; + b.bp("/BatchGetStreamKey"); let body: any; body = JSON.stringify( take(input, { arns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -174,27 +161,19 @@ export const se_BatchStartViewerSessionRevocationCommand = async ( input: BatchStartViewerSessionRevocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchStartViewerSessionRevocation"; + b.bp("/BatchStartViewerSessionRevocation"); let body: any; body = JSON.stringify( take(input, { viewerSessions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -204,11 +183,11 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChannel"; + b.bp("/CreateChannel"); let body: any; body = JSON.stringify( take(input, { @@ -222,15 +201,8 @@ export const se_CreateChannelCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -240,12 +212,11 @@ export const se_CreateRecordingConfigurationCommand = async ( input: CreateRecordingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRecordingConfiguration"; + b.bp("/CreateRecordingConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -257,15 +228,8 @@ export const se_CreateRecordingConfigurationCommand = async ( thumbnailConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -275,11 +239,11 @@ export const se_CreateStreamKeyCommand = async ( input: CreateStreamKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStreamKey"; + b.bp("/CreateStreamKey"); let body: any; body = JSON.stringify( take(input, { @@ -287,15 +251,8 @@ export const se_CreateStreamKeyCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -305,26 +262,19 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteChannel"; + b.bp("/DeleteChannel"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -334,26 +284,19 @@ export const se_DeletePlaybackKeyPairCommand = async ( input: DeletePlaybackKeyPairCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeletePlaybackKeyPair"; + b.bp("/DeletePlaybackKeyPair"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -363,27 +306,19 @@ export const se_DeleteRecordingConfigurationCommand = async ( input: DeleteRecordingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecordingConfiguration"; + b.bp("/DeleteRecordingConfiguration"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -393,26 +328,19 @@ export const se_DeleteStreamKeyCommand = async ( input: DeleteStreamKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStreamKey"; + b.bp("/DeleteStreamKey"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -422,26 +350,19 @@ export const se_GetChannelCommand = async ( input: GetChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetChannel"; + b.bp("/GetChannel"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -451,26 +372,19 @@ export const se_GetPlaybackKeyPairCommand = async ( input: GetPlaybackKeyPairCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetPlaybackKeyPair"; + b.bp("/GetPlaybackKeyPair"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -480,27 +394,19 @@ export const se_GetRecordingConfigurationCommand = async ( input: GetRecordingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetRecordingConfiguration"; + b.bp("/GetRecordingConfiguration"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -510,26 +416,19 @@ export const se_GetStreamCommand = async ( input: GetStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStream"; + b.bp("/GetStream"); let body: any; body = JSON.stringify( take(input, { channelArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -539,26 +438,19 @@ export const se_GetStreamKeyCommand = async ( input: GetStreamKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamKey"; + b.bp("/GetStreamKey"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -568,11 +460,11 @@ export const se_GetStreamSessionCommand = async ( input: GetStreamSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamSession"; + b.bp("/GetStreamSession"); let body: any; body = JSON.stringify( take(input, { @@ -580,15 +472,8 @@ export const se_GetStreamSessionCommand = async ( streamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -598,11 +483,11 @@ export const se_ImportPlaybackKeyPairCommand = async ( input: ImportPlaybackKeyPairCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportPlaybackKeyPair"; + b.bp("/ImportPlaybackKeyPair"); let body: any; body = JSON.stringify( take(input, { @@ -611,15 +496,8 @@ export const se_ImportPlaybackKeyPairCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -629,11 +507,11 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListChannels"; + b.bp("/ListChannels"); let body: any; body = JSON.stringify( take(input, { @@ -643,15 +521,8 @@ export const se_ListChannelsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -661,11 +532,11 @@ export const se_ListPlaybackKeyPairsCommand = async ( input: ListPlaybackKeyPairsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListPlaybackKeyPairs"; + b.bp("/ListPlaybackKeyPairs"); let body: any; body = JSON.stringify( take(input, { @@ -673,15 +544,8 @@ export const se_ListPlaybackKeyPairsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -691,12 +555,11 @@ export const se_ListRecordingConfigurationsCommand = async ( input: ListRecordingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListRecordingConfigurations"; + b.bp("/ListRecordingConfigurations"); let body: any; body = JSON.stringify( take(input, { @@ -704,15 +567,8 @@ export const se_ListRecordingConfigurationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -722,11 +578,11 @@ export const se_ListStreamKeysCommand = async ( input: ListStreamKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamKeys"; + b.bp("/ListStreamKeys"); let body: any; body = JSON.stringify( take(input, { @@ -735,15 +591,8 @@ export const se_ListStreamKeysCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -753,11 +602,11 @@ export const se_ListStreamsCommand = async ( input: ListStreamsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreams"; + b.bp("/ListStreams"); let body: any; body = JSON.stringify( take(input, { @@ -766,15 +615,8 @@ export const se_ListStreamsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -784,11 +626,11 @@ export const se_ListStreamSessionsCommand = async ( input: ListStreamSessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamSessions"; + b.bp("/ListStreamSessions"); let body: any; body = JSON.stringify( take(input, { @@ -797,15 +639,8 @@ export const se_ListStreamSessionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -815,20 +650,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -838,11 +666,11 @@ export const se_PutMetadataCommand = async ( input: PutMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutMetadata"; + b.bp("/PutMetadata"); let body: any; body = JSON.stringify( take(input, { @@ -850,15 +678,8 @@ export const se_PutMetadataCommand = async ( metadata: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -868,12 +689,11 @@ export const se_StartViewerSessionRevocationCommand = async ( input: StartViewerSessionRevocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartViewerSessionRevocation"; + b.bp("/StartViewerSessionRevocation"); let body: any; body = JSON.stringify( take(input, { @@ -882,15 +702,8 @@ export const se_StartViewerSessionRevocationCommand = async ( viewerSessionVersionsLessThanOrEqualTo: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -900,26 +713,19 @@ export const se_StopStreamCommand = async ( input: StopStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopStream"; + b.bp("/StopStream"); let body: any; body = JSON.stringify( take(input, { channelArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -929,27 +735,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -959,27 +758,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -989,11 +780,11 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateChannel"; + b.bp("/UpdateChannel"); let body: any; body = JSON.stringify( take(input, { @@ -1007,15 +798,8 @@ export const se_UpdateChannelCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3020,6 +2804,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ivschat/package.json b/clients/client-ivschat/package.json index 0886e5556894..30cea645870c 100644 --- a/clients/client-ivschat/package.json +++ b/clients/client-ivschat/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-ivschat/src/protocols/Aws_restJson1.ts b/clients/client-ivschat/src/protocols/Aws_restJson1.ts index 3000eac8d8b7..906b9ce6213b 100644 --- a/clients/client-ivschat/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivschat/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -84,11 +85,11 @@ export const se_CreateChatTokenCommand = async ( input: CreateChatTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChatToken"; + b.bp("/CreateChatToken"); let body: any; body = JSON.stringify( take(input, { @@ -99,15 +100,8 @@ export const se_CreateChatTokenCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -117,12 +111,11 @@ export const se_CreateLoggingConfigurationCommand = async ( input: CreateLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLoggingConfiguration"; + b.bp("/CreateLoggingConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -131,15 +124,8 @@ export const se_CreateLoggingConfigurationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -149,11 +135,11 @@ export const se_CreateRoomCommand = async ( input: CreateRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRoom"; + b.bp("/CreateRoom"); let body: any; body = JSON.stringify( take(input, { @@ -165,15 +151,8 @@ export const se_CreateRoomCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -183,27 +162,19 @@ export const se_DeleteLoggingConfigurationCommand = async ( input: DeleteLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLoggingConfiguration"; + b.bp("/DeleteLoggingConfiguration"); let body: any; body = JSON.stringify( take(input, { identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -213,11 +184,11 @@ export const se_DeleteMessageCommand = async ( input: DeleteMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteMessage"; + b.bp("/DeleteMessage"); let body: any; body = JSON.stringify( take(input, { @@ -226,15 +197,8 @@ export const se_DeleteMessageCommand = async ( roomIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -244,26 +208,19 @@ export const se_DeleteRoomCommand = async ( input: DeleteRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRoom"; + b.bp("/DeleteRoom"); let body: any; body = JSON.stringify( take(input, { identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -273,11 +230,11 @@ export const se_DisconnectUserCommand = async ( input: DisconnectUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectUser"; + b.bp("/DisconnectUser"); let body: any; body = JSON.stringify( take(input, { @@ -286,15 +243,8 @@ export const se_DisconnectUserCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -304,27 +254,19 @@ export const se_GetLoggingConfigurationCommand = async ( input: GetLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLoggingConfiguration"; + b.bp("/GetLoggingConfiguration"); let body: any; body = JSON.stringify( take(input, { identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -334,26 +276,19 @@ export const se_GetRoomCommand = async ( input: GetRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetRoom"; + b.bp("/GetRoom"); let body: any; body = JSON.stringify( take(input, { identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -363,12 +298,11 @@ export const se_ListLoggingConfigurationsCommand = async ( input: ListLoggingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLoggingConfigurations"; + b.bp("/ListLoggingConfigurations"); let body: any; body = JSON.stringify( take(input, { @@ -376,15 +310,8 @@ export const se_ListLoggingConfigurationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -394,11 +321,11 @@ export const se_ListRoomsCommand = async ( input: ListRoomsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListRooms"; + b.bp("/ListRooms"); let body: any; body = JSON.stringify( take(input, { @@ -409,15 +336,8 @@ export const se_ListRoomsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -427,20 +347,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -450,11 +363,11 @@ export const se_SendEventCommand = async ( input: SendEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendEvent"; + b.bp("/SendEvent"); let body: any; body = JSON.stringify( take(input, { @@ -463,15 +376,8 @@ export const se_SendEventCommand = async ( roomIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -481,27 +387,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -511,27 +410,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -541,12 +432,11 @@ export const se_UpdateLoggingConfigurationCommand = async ( input: UpdateLoggingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLoggingConfiguration"; + b.bp("/UpdateLoggingConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -555,15 +445,8 @@ export const se_UpdateLoggingConfigurationCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -573,11 +456,11 @@ export const se_UpdateRoomCommand = async ( input: UpdateRoomCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateRoom"; + b.bp("/UpdateRoom"); let body: any; body = JSON.stringify( take(input, { @@ -589,15 +472,8 @@ export const se_UpdateRoomCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1861,6 +1737,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-kafka/package.json b/clients/client-kafka/package.json index 433ef14fc5e4..b0c3ea68f5de 100644 --- a/clients/client-kafka/package.json +++ b/clients/client-kafka/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-kafka/src/protocols/Aws_restJson1.ts b/clients/client-kafka/src/protocols/Aws_restJson1.ts index e94be84ab6cb..390accdf05bb 100644 --- a/clients/client-kafka/src/protocols/Aws_restJson1.ts +++ b/clients/client-kafka/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -253,28 +254,20 @@ export const se_BatchAssociateScramSecretCommand = async ( input: BatchAssociateScramSecretCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/scram-secrets"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/scram-secrets"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { secretArnList: [, (_) => _json(_), `SecretArnList`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -284,28 +277,20 @@ export const se_BatchDisassociateScramSecretCommand = async ( input: BatchDisassociateScramSecretCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/scram-secrets"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/scram-secrets"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { secretArnList: [, (_) => _json(_), `SecretArnList`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -315,11 +300,11 @@ export const se_CreateClusterCommand = async ( input: CreateClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters"; + b.bp("/v1/clusters"); let body: any; body = JSON.stringify( take(input, { @@ -337,15 +322,8 @@ export const se_CreateClusterCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -355,11 +333,11 @@ export const se_CreateClusterV2Command = async ( input: CreateClusterV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters"; + b.bp("/api/v2/clusters"); let body: any; body = JSON.stringify( take(input, { @@ -369,15 +347,8 @@ export const se_CreateClusterV2Command = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -387,11 +358,11 @@ export const se_CreateConfigurationCommand = async ( input: CreateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations"; + b.bp("/v1/configurations"); let body: any; body = JSON.stringify( take(input, { @@ -401,15 +372,8 @@ export const se_CreateConfigurationCommand = async ( serverProperties: [, (_) => context.base64Encoder(_), `ServerProperties`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -419,12 +383,11 @@ export const se_CreateReplicatorCommand = async ( input: CreateReplicatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/replication/v1/replicators"; + b.bp("/replication/v1/replicators"); let body: any; body = JSON.stringify( take(input, { @@ -436,15 +399,8 @@ export const se_CreateReplicatorCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -454,11 +410,11 @@ export const se_CreateVpcConnectionCommand = async ( input: CreateVpcConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connection"; + b.bp("/v1/vpc-connection"); let body: any; body = JSON.stringify( take(input, { @@ -470,15 +426,8 @@ export const se_CreateVpcConnectionCommand = async ( vpcId: [, , `VpcId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -488,25 +437,16 @@ export const se_DeleteClusterCommand = async ( input: DeleteClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); const query: any = map({ - currentVersion: [, input.CurrentVersion!], + [_cV]: [, input[_CV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -516,21 +456,13 @@ export const se_DeleteClusterPolicyCommand = async ( input: DeleteClusterPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/policy"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -540,20 +472,13 @@ export const se_DeleteConfigurationCommand = async ( input: DeleteConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/v1/configurations/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -563,33 +488,16 @@ export const se_DeleteReplicatorCommand = async ( input: DeleteReplicatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/replication/v1/replicators/{ReplicatorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReplicatorArn", - () => input.ReplicatorArn!, - "{ReplicatorArn}", - false - ); + b.bp("/replication/v1/replicators/{ReplicatorArn}"); + b.p("ReplicatorArn", () => input.ReplicatorArn!, "{ReplicatorArn}", false); const query: any = map({ - currentVersion: [, input.CurrentVersion!], + [_cV]: [, input[_CV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -599,20 +507,13 @@ export const se_DeleteVpcConnectionCommand = async ( input: DeleteVpcConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connection/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/v1/vpc-connection/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -622,21 +523,13 @@ export const se_DescribeClusterCommand = async ( input: DescribeClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -646,28 +539,13 @@ export const se_DescribeClusterOperationCommand = async ( input: DescribeClusterOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/operations/{ClusterOperationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ClusterOperationArn", - () => input.ClusterOperationArn!, - "{ClusterOperationArn}", - false - ); + b.bp("/v1/operations/{ClusterOperationArn}"); + b.p("ClusterOperationArn", () => input.ClusterOperationArn!, "{ClusterOperationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -677,28 +555,13 @@ export const se_DescribeClusterOperationV2Command = async ( input: DescribeClusterOperationV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/operations/{ClusterOperationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ClusterOperationArn", - () => input.ClusterOperationArn!, - "{ClusterOperationArn}", - false - ); + b.bp("/api/v2/operations/{ClusterOperationArn}"); + b.p("ClusterOperationArn", () => input.ClusterOperationArn!, "{ClusterOperationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -708,21 +571,13 @@ export const se_DescribeClusterV2Command = async ( input: DescribeClusterV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters/{ClusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/api/v2/clusters/{ClusterArn}"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -732,20 +587,13 @@ export const se_DescribeConfigurationCommand = async ( input: DescribeConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/v1/configurations/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -755,23 +603,14 @@ export const se_DescribeConfigurationRevisionCommand = async ( input: DescribeConfigurationRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/configurations/{Arn}/revisions/{Revision}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Revision", () => input.Revision!.toString(), "{Revision}", false); + b.bp("/v1/configurations/{Arn}/revisions/{Revision}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); + b.p("Revision", () => input.Revision!.toString(), "{Revision}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -781,29 +620,13 @@ export const se_DescribeReplicatorCommand = async ( input: DescribeReplicatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/replication/v1/replicators/{ReplicatorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReplicatorArn", - () => input.ReplicatorArn!, - "{ReplicatorArn}", - false - ); + b.bp("/replication/v1/replicators/{ReplicatorArn}"); + b.p("ReplicatorArn", () => input.ReplicatorArn!, "{ReplicatorArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -813,20 +636,13 @@ export const se_DescribeVpcConnectionCommand = async ( input: DescribeVpcConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connection/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/v1/vpc-connection/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -836,22 +652,13 @@ export const se_GetBootstrapBrokersCommand = async ( input: GetBootstrapBrokersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/clusters/{ClusterArn}/bootstrap-brokers"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/bootstrap-brokers"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -861,21 +668,13 @@ export const se_GetClusterPolicyCommand = async ( input: GetClusterPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/policy"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -885,24 +684,15 @@ export const se_GetCompatibleKafkaVersionsCommand = async ( input: GetCompatibleKafkaVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/compatible-kafka-versions"; + b.bp("/v1/compatible-kafka-versions"); const query: any = map({ - clusterArn: [, input.ClusterArn!], + [_cA]: [, input[_CA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -912,27 +702,17 @@ export const se_ListClientVpcConnectionsCommand = async ( input: ListClientVpcConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/clusters/{ClusterArn}/client-vpc-connections"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/client-vpc-connections"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -942,26 +722,17 @@ export const se_ListClusterOperationsCommand = async ( input: ListClusterOperationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/operations"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/operations"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -971,26 +742,17 @@ export const se_ListClusterOperationsV2Command = async ( input: ListClusterOperationsV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters/{ClusterArn}/operations"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/api/v2/clusters/{ClusterArn}/operations"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1000,25 +762,17 @@ export const se_ListClustersCommand = async ( input: ListClustersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters"; + b.bp("/v1/clusters"); const query: any = map({ - clusterNameFilter: [, input.ClusterNameFilter!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNF]: [, input[_CNF]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1028,26 +782,18 @@ export const se_ListClustersV2Command = async ( input: ListClustersV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters"; + b.bp("/api/v2/clusters"); const query: any = map({ - clusterNameFilter: [, input.ClusterNameFilter!], - clusterTypeFilter: [, input.ClusterTypeFilter!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNF]: [, input[_CNF]!], + [_cTF]: [, input[_CTF]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1057,26 +803,17 @@ export const se_ListConfigurationRevisionsCommand = async ( input: ListConfigurationRevisionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{Arn}/revisions"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/v1/configurations/{Arn}/revisions"); + b.p("Arn", () => input.Arn!, "{Arn}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1086,24 +823,16 @@ export const se_ListConfigurationsCommand = async ( input: ListConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations"; + b.bp("/v1/configurations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1113,24 +842,16 @@ export const se_ListKafkaVersionsCommand = async ( input: ListKafkaVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/kafka-versions"; + b.bp("/v1/kafka-versions"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1140,26 +861,17 @@ export const se_ListNodesCommand = async ( input: ListNodesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/nodes"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/nodes"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1169,26 +881,17 @@ export const se_ListReplicatorsCommand = async ( input: ListReplicatorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/replication/v1/replicators"; + b.bp("/replication/v1/replicators"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - replicatorNameFilter: [, input.ReplicatorNameFilter!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_rNF]: [, input[_RNF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1198,26 +901,17 @@ export const se_ListScramSecretsCommand = async ( input: ListScramSecretsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/scram-secrets"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/scram-secrets"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1227,20 +921,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1250,24 +937,16 @@ export const se_ListVpcConnectionsCommand = async ( input: ListVpcConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connections"; + b.bp("/v1/vpc-connections"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1277,13 +956,12 @@ export const se_PutClusterPolicyCommand = async ( input: PutClusterPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/policy"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1291,15 +969,8 @@ export const se_PutClusterPolicyCommand = async ( policy: [, , `Policy`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1309,28 +980,20 @@ export const se_RebootBrokerCommand = async ( input: RebootBrokerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/reboot-broker"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/reboot-broker"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { brokerIds: [, (_) => _json(_), `BrokerIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1340,29 +1003,20 @@ export const se_RejectClientVpcConnectionCommand = async ( input: RejectClientVpcConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/clusters/{ClusterArn}/client-vpc-connection"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/client-vpc-connection"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { vpcConnectionArn: [, , `VpcConnectionArn`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1372,27 +1026,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1402,27 +1049,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1432,13 +1071,12 @@ export const se_UpdateBrokerCountCommand = async ( input: UpdateBrokerCountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/nodes/count"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/nodes/count"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1446,15 +1084,8 @@ export const se_UpdateBrokerCountCommand = async ( targetNumberOfBrokerNodes: [, , `TargetNumberOfBrokerNodes`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1464,13 +1095,12 @@ export const se_UpdateBrokerStorageCommand = async ( input: UpdateBrokerStorageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/nodes/storage"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/nodes/storage"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1478,15 +1108,8 @@ export const se_UpdateBrokerStorageCommand = async ( targetBrokerEBSVolumeInfo: [, (_) => se___listOfBrokerEBSVolumeInfo(_, context), `TargetBrokerEBSVolumeInfo`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1496,13 +1119,12 @@ export const se_UpdateBrokerTypeCommand = async ( input: UpdateBrokerTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/nodes/type"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/nodes/type"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1510,15 +1132,8 @@ export const se_UpdateBrokerTypeCommand = async ( targetInstanceType: [, , `TargetInstanceType`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1528,13 +1143,12 @@ export const se_UpdateClusterConfigurationCommand = async ( input: UpdateClusterConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/configuration"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1542,15 +1156,8 @@ export const se_UpdateClusterConfigurationCommand = async ( currentVersion: [, , `CurrentVersion`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1560,13 +1167,12 @@ export const se_UpdateClusterKafkaVersionCommand = async ( input: UpdateClusterKafkaVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/version"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/version"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1575,15 +1181,8 @@ export const se_UpdateClusterKafkaVersionCommand = async ( targetKafkaVersion: [, , `TargetKafkaVersion`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1593,12 +1192,12 @@ export const se_UpdateConfigurationCommand = async ( input: UpdateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/v1/configurations/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1606,15 +1205,8 @@ export const se_UpdateConfigurationCommand = async ( serverProperties: [, (_) => context.base64Encoder(_), `ServerProperties`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1624,13 +1216,12 @@ export const se_UpdateConnectivityCommand = async ( input: UpdateConnectivityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/connectivity"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/connectivity"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1638,15 +1229,8 @@ export const se_UpdateConnectivityCommand = async ( currentVersion: [, , `CurrentVersion`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1656,13 +1240,12 @@ export const se_UpdateMonitoringCommand = async ( input: UpdateMonitoringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/monitoring"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/monitoring"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1672,15 +1255,8 @@ export const se_UpdateMonitoringCommand = async ( openMonitoring: [, (_) => se_OpenMonitoringInfo(_, context), `OpenMonitoring`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1690,21 +1266,12 @@ export const se_UpdateReplicationInfoCommand = async ( input: UpdateReplicationInfoCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/replication/v1/replicators/{ReplicatorArn}/replication-info"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReplicatorArn", - () => input.ReplicatorArn!, - "{ReplicatorArn}", - false - ); + b.bp("/replication/v1/replicators/{ReplicatorArn}/replication-info"); + b.p("ReplicatorArn", () => input.ReplicatorArn!, "{ReplicatorArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1715,15 +1282,8 @@ export const se_UpdateReplicationInfoCommand = async ( topicReplication: [, (_) => se_TopicReplicationUpdate(_, context), `TopicReplication`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1733,13 +1293,12 @@ export const se_UpdateSecurityCommand = async ( input: UpdateSecurityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/security"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/security"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1748,15 +1307,8 @@ export const se_UpdateSecurityCommand = async ( encryptionInfo: [, (_) => se_EncryptionInfo(_, context), `EncryptionInfo`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1766,13 +1318,12 @@ export const se_UpdateStorageCommand = async ( input: UpdateStorageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/storage"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/v1/clusters/{ClusterArn}/storage"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1782,15 +1333,8 @@ export const se_UpdateStorageCommand = async ( volumeSizeGB: [, , `VolumeSizeGB`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6844,6 +6388,23 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CA = "ClusterArn"; +const _CNF = "ClusterNameFilter"; +const _CTF = "ClusterTypeFilter"; +const _CV = "CurrentVersion"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RNF = "ReplicatorNameFilter"; +const _TK = "TagKeys"; +const _cA = "clusterArn"; +const _cNF = "clusterNameFilter"; +const _cTF = "clusterTypeFilter"; +const _cV = "currentVersion"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rNF = "replicatorNameFilter"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-kafkaconnect/package.json b/clients/client-kafkaconnect/package.json index 12fb34654e5e..14dbad76920f 100644 --- a/clients/client-kafkaconnect/package.json +++ b/clients/client-kafkaconnect/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts b/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts index 1e5c908b10d5..2b69a054bf5a 100644 --- a/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts +++ b/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -95,11 +96,11 @@ export const se_CreateConnectorCommand = async ( input: CreateConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors"; + b.bp("/v1/connectors"); let body: any; body = JSON.stringify( take(input, { @@ -117,15 +118,8 @@ export const se_CreateConnectorCommand = async ( workerConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -135,11 +129,11 @@ export const se_CreateCustomPluginCommand = async ( input: CreateCustomPluginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins"; + b.bp("/v1/custom-plugins"); let body: any; body = JSON.stringify( take(input, { @@ -149,15 +143,8 @@ export const se_CreateCustomPluginCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -167,12 +154,11 @@ export const se_CreateWorkerConfigurationCommand = async ( input: CreateWorkerConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations"; + b.bp("/v1/worker-configurations"); let body: any; body = JSON.stringify( take(input, { @@ -181,15 +167,8 @@ export const se_CreateWorkerConfigurationCommand = async ( propertiesFileContent: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -199,32 +178,16 @@ export const se_DeleteConnectorCommand = async ( input: DeleteConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors/{connectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectorArn", - () => input.connectorArn!, - "{connectorArn}", - false - ); + b.bp("/v1/connectors/{connectorArn}"); + b.p("connectorArn", () => input.connectorArn!, "{connectorArn}", false); const query: any = map({ - currentVersion: [, input.currentVersion!], + [_cV]: [, input[_cV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -234,28 +197,13 @@ export const se_DeleteCustomPluginCommand = async ( input: DeleteCustomPluginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins/{customPluginArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "customPluginArn", - () => input.customPluginArn!, - "{customPluginArn}", - false - ); + b.bp("/v1/custom-plugins/{customPluginArn}"); + b.p("customPluginArn", () => input.customPluginArn!, "{customPluginArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -265,28 +213,13 @@ export const se_DescribeConnectorCommand = async ( input: DescribeConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors/{connectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectorArn", - () => input.connectorArn!, - "{connectorArn}", - false - ); + b.bp("/v1/connectors/{connectorArn}"); + b.p("connectorArn", () => input.connectorArn!, "{connectorArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -296,28 +229,13 @@ export const se_DescribeCustomPluginCommand = async ( input: DescribeCustomPluginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins/{customPluginArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "customPluginArn", - () => input.customPluginArn!, - "{customPluginArn}", - false - ); + b.bp("/v1/custom-plugins/{customPluginArn}"); + b.p("customPluginArn", () => input.customPluginArn!, "{customPluginArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -327,29 +245,13 @@ export const se_DescribeWorkerConfigurationCommand = async ( input: DescribeWorkerConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/worker-configurations/{workerConfigurationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "workerConfigurationArn", - () => input.workerConfigurationArn!, - "{workerConfigurationArn}", - false - ); + b.bp("/v1/worker-configurations/{workerConfigurationArn}"); + b.p("workerConfigurationArn", () => input.workerConfigurationArn!, "{workerConfigurationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -359,25 +261,17 @@ export const se_ListConnectorsCommand = async ( input: ListConnectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors"; + b.bp("/v1/connectors"); const query: any = map({ - connectorNamePrefix: [, input.connectorNamePrefix!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_cNP]: [, input[_cNP]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -387,24 +281,16 @@ export const se_ListCustomPluginsCommand = async ( input: ListCustomPluginsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins"; + b.bp("/v1/custom-plugins"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -414,25 +300,16 @@ export const se_ListWorkerConfigurationsCommand = async ( input: ListWorkerConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations"; + b.bp("/v1/worker-configurations"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -442,22 +319,14 @@ export const se_UpdateConnectorCommand = async ( input: UpdateConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors/{connectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "connectorArn", - () => input.connectorArn!, - "{connectorArn}", - false - ); + b.bp("/v1/connectors/{connectorArn}"); + b.p("connectorArn", () => input.connectorArn!, "{connectorArn}", false); const query: any = map({ - currentVersion: [, __expectNonNull(input.currentVersion!, `currentVersion`)], + [_cV]: [, __expectNonNull(input[_cV]!, `currentVersion`)], }); let body: any; body = JSON.stringify( @@ -465,16 +334,8 @@ export const se_UpdateConnectorCommand = async ( capacity: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1709,6 +1570,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cNP = "connectorNamePrefix"; +const _cV = "currentVersion"; +const _mR = "maxResults"; +const _nT = "nextToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-kendra/src/models/models_0.ts b/clients/client-kendra/src/models/models_0.ts index fdc6b79b7d52..142082e526c2 100644 --- a/clients/client-kendra/src/models/models_0.ts +++ b/clients/client-kendra/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { KendraServiceException as __BaseException } from "./KendraServiceException"; diff --git a/clients/client-kendra/src/models/models_1.ts b/clients/client-kendra/src/models/models_1.ts index f7f17e5a8f08..58f00c254692 100644 --- a/clients/client-kendra/src/models/models_1.ts +++ b/clients/client-kendra/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { KendraServiceException as __BaseException } from "./KendraServiceException"; + import { AdditionalResultAttribute, AttributeSuggestionsUpdateConfig, diff --git a/clients/client-kinesis-video-archived-media/package.json b/clients/client-kinesis-video-archived-media/package.json index c7259ddad441..486e0b64417d 100644 --- a/clients/client-kinesis-video-archived-media/package.json +++ b/clients/client-kinesis-video-archived-media/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-kinesis-video-archived-media/src/models/models_0.ts b/clients/client-kinesis-video-archived-media/src/models/models_0.ts index 99d1021848b9..eb87a0c419dc 100644 --- a/clients/client-kinesis-video-archived-media/src/models/models_0.ts +++ b/clients/client-kinesis-video-archived-media/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { KinesisVideoArchivedMediaServiceException as __BaseException } from "./KinesisVideoArchivedMediaServiceException"; diff --git a/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts index 6453f9317cce..48a582d5019b 100644 --- a/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -67,11 +68,11 @@ export const se_GetClipCommand = async ( input: GetClipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getClip"; + b.bp("/getClip"); let body: any; body = JSON.stringify( take(input, { @@ -80,15 +81,8 @@ export const se_GetClipCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -98,12 +92,11 @@ export const se_GetDASHStreamingSessionURLCommand = async ( input: GetDASHStreamingSessionURLCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getDASHStreamingSessionURL"; + b.bp("/getDASHStreamingSessionURL"); let body: any; body = JSON.stringify( take(input, { @@ -117,15 +110,8 @@ export const se_GetDASHStreamingSessionURLCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -135,12 +121,11 @@ export const se_GetHLSStreamingSessionURLCommand = async ( input: GetHLSStreamingSessionURLCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getHLSStreamingSessionURL"; + b.bp("/getHLSStreamingSessionURL"); let body: any; body = JSON.stringify( take(input, { @@ -155,15 +140,8 @@ export const se_GetHLSStreamingSessionURLCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -173,11 +151,11 @@ export const se_GetImagesCommand = async ( input: GetImagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getImages"; + b.bp("/getImages"); let body: any; body = JSON.stringify( take(input, { @@ -195,15 +173,8 @@ export const se_GetImagesCommand = async ( WidthPixels: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -213,12 +184,11 @@ export const se_GetMediaForFragmentListCommand = async ( input: GetMediaForFragmentListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getMediaForFragmentList"; + b.bp("/getMediaForFragmentList"); let body: any; body = JSON.stringify( take(input, { @@ -227,15 +197,8 @@ export const se_GetMediaForFragmentListCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -245,11 +208,11 @@ export const se_ListFragmentsCommand = async ( input: ListFragmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listFragments"; + b.bp("/listFragments"); let body: any; body = JSON.stringify( take(input, { @@ -260,15 +223,8 @@ export const se_ListFragmentsCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -283,7 +239,7 @@ export const de_GetClipCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], + [_CT]: [, output.headers[_ct]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -546,7 +502,7 @@ export const de_GetMediaForFragmentListCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], + [_CT]: [, output.headers[_ct]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -978,6 +934,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ContentType"; +const _ct = "content-type"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-kinesis-video-media/package.json b/clients/client-kinesis-video-media/package.json index c052b4261b31..ee1e4eab9ffd 100644 --- a/clients/client-kinesis-video-media/package.json +++ b/clients/client-kinesis-video-media/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-kinesis-video-media/src/models/models_0.ts b/clients/client-kinesis-video-media/src/models/models_0.ts index d8c3feeb60e9..5f83ffc43d2b 100644 --- a/clients/client-kinesis-video-media/src/models/models_0.ts +++ b/clients/client-kinesis-video-media/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { KinesisVideoMediaServiceException as __BaseException } from "./KinesisVideoMediaServiceException"; diff --git a/clients/client-kinesis-video-media/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-media/src/protocols/Aws_restJson1.ts index f0cbc41d9976..b1f4a2ed8442 100644 --- a/clients/client-kinesis-video-media/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-media/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -35,11 +36,11 @@ export const se_GetMediaCommand = async ( input: GetMediaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getMedia"; + b.bp("/getMedia"); let body: any; body = JSON.stringify( take(input, { @@ -48,15 +49,8 @@ export const se_GetMediaCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -71,7 +65,7 @@ export const de_GetMediaCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], + [_CT]: [, output.headers[_ct]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -272,6 +266,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ContentType"; +const _ct = "content-type"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-kinesis-video-signaling/package.json b/clients/client-kinesis-video-signaling/package.json index 563f57256dd6..36055870fddd 100644 --- a/clients/client-kinesis-video-signaling/package.json +++ b/clients/client-kinesis-video-signaling/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts index 414ebf910732..5e4a47f368e2 100644 --- a/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-signaling/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -39,12 +40,11 @@ export const se_GetIceServerConfigCommand = async ( input: GetIceServerConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/get-ice-server-config"; + b.bp("/v1/get-ice-server-config"); let body: any; body = JSON.stringify( take(input, { @@ -54,15 +54,8 @@ export const se_GetIceServerConfigCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -72,12 +65,11 @@ export const se_SendAlexaOfferToMasterCommand = async ( input: SendAlexaOfferToMasterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/send-alexa-offer-to-master"; + b.bp("/v1/send-alexa-offer-to-master"); let body: any; body = JSON.stringify( take(input, { @@ -86,15 +78,8 @@ export const se_SendAlexaOfferToMasterCommand = async ( SenderClientId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-kinesis-video-webrtc-storage/package.json b/clients/client-kinesis-video-webrtc-storage/package.json index 2938e4217111..9af028021241 100644 --- a/clients/client-kinesis-video-webrtc-storage/package.json +++ b/clients/client-kinesis-video-webrtc-storage/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-kinesis-video-webrtc-storage/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-webrtc-storage/src/protocols/Aws_restJson1.ts index d5c0f446116e..39ef17fc8d2e 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -31,26 +32,19 @@ export const se_JoinStorageSessionCommand = async ( input: JoinStorageSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/joinStorageSession"; + b.bp("/joinStorageSession"); let body: any; body = JSON.stringify( take(input, { channelArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-kinesis-video/package.json b/clients/client-kinesis-video/package.json index 7f0db78bcc92..6f9c4be52ee8 100644 --- a/clients/client-kinesis-video/package.json +++ b/clients/client-kinesis-video/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts index cbfcc0a3ad9c..2b30aa302ef3 100644 --- a/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -158,12 +159,11 @@ export const se_CreateSignalingChannelCommand = async ( input: CreateSignalingChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createSignalingChannel"; + b.bp("/createSignalingChannel"); let body: any; body = JSON.stringify( take(input, { @@ -173,15 +173,8 @@ export const se_CreateSignalingChannelCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -191,11 +184,11 @@ export const se_CreateStreamCommand = async ( input: CreateStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createStream"; + b.bp("/createStream"); let body: any; body = JSON.stringify( take(input, { @@ -207,15 +200,8 @@ export const se_CreateStreamCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -225,12 +211,11 @@ export const se_DeleteEdgeConfigurationCommand = async ( input: DeleteEdgeConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteEdgeConfiguration"; + b.bp("/deleteEdgeConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -238,15 +223,8 @@ export const se_DeleteEdgeConfigurationCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -256,12 +234,11 @@ export const se_DeleteSignalingChannelCommand = async ( input: DeleteSignalingChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteSignalingChannel"; + b.bp("/deleteSignalingChannel"); let body: any; body = JSON.stringify( take(input, { @@ -269,15 +246,8 @@ export const se_DeleteSignalingChannelCommand = async ( CurrentVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,11 +257,11 @@ export const se_DeleteStreamCommand = async ( input: DeleteStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteStream"; + b.bp("/deleteStream"); let body: any; body = JSON.stringify( take(input, { @@ -299,15 +269,8 @@ export const se_DeleteStreamCommand = async ( StreamARN: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,12 +280,11 @@ export const se_DescribeEdgeConfigurationCommand = async ( input: DescribeEdgeConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeEdgeConfiguration"; + b.bp("/describeEdgeConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -330,15 +292,8 @@ export const se_DescribeEdgeConfigurationCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -348,12 +303,11 @@ export const se_DescribeImageGenerationConfigurationCommand = async ( input: DescribeImageGenerationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeImageGenerationConfiguration"; + b.bp("/describeImageGenerationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -361,15 +315,8 @@ export const se_DescribeImageGenerationConfigurationCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -379,12 +326,11 @@ export const se_DescribeMappedResourceConfigurationCommand = async ( input: DescribeMappedResourceConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeMappedResourceConfiguration"; + b.bp("/describeMappedResourceConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -394,15 +340,8 @@ export const se_DescribeMappedResourceConfigurationCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -412,12 +351,11 @@ export const se_DescribeMediaStorageConfigurationCommand = async ( input: DescribeMediaStorageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeMediaStorageConfiguration"; + b.bp("/describeMediaStorageConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -425,15 +363,8 @@ export const se_DescribeMediaStorageConfigurationCommand = async ( ChannelName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -443,12 +374,11 @@ export const se_DescribeNotificationConfigurationCommand = async ( input: DescribeNotificationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeNotificationConfiguration"; + b.bp("/describeNotificationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -456,15 +386,8 @@ export const se_DescribeNotificationConfigurationCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -474,12 +397,11 @@ export const se_DescribeSignalingChannelCommand = async ( input: DescribeSignalingChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeSignalingChannel"; + b.bp("/describeSignalingChannel"); let body: any; body = JSON.stringify( take(input, { @@ -487,15 +409,8 @@ export const se_DescribeSignalingChannelCommand = async ( ChannelName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -505,11 +420,11 @@ export const se_DescribeStreamCommand = async ( input: DescribeStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeStream"; + b.bp("/describeStream"); let body: any; body = JSON.stringify( take(input, { @@ -517,15 +432,8 @@ export const se_DescribeStreamCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -535,11 +443,11 @@ export const se_GetDataEndpointCommand = async ( input: GetDataEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getDataEndpoint"; + b.bp("/getDataEndpoint"); let body: any; body = JSON.stringify( take(input, { @@ -548,15 +456,8 @@ export const se_GetDataEndpointCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -566,12 +467,11 @@ export const se_GetSignalingChannelEndpointCommand = async ( input: GetSignalingChannelEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getSignalingChannelEndpoint"; + b.bp("/getSignalingChannelEndpoint"); let body: any; body = JSON.stringify( take(input, { @@ -579,15 +479,8 @@ export const se_GetSignalingChannelEndpointCommand = async ( SingleMasterChannelEndpointConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -597,12 +490,11 @@ export const se_ListEdgeAgentConfigurationsCommand = async ( input: ListEdgeAgentConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listEdgeAgentConfigurations"; + b.bp("/listEdgeAgentConfigurations"); let body: any; body = JSON.stringify( take(input, { @@ -611,15 +503,8 @@ export const se_ListEdgeAgentConfigurationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -629,11 +514,11 @@ export const se_ListSignalingChannelsCommand = async ( input: ListSignalingChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listSignalingChannels"; + b.bp("/listSignalingChannels"); let body: any; body = JSON.stringify( take(input, { @@ -642,15 +527,8 @@ export const se_ListSignalingChannelsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -660,11 +538,11 @@ export const se_ListStreamsCommand = async ( input: ListStreamsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listStreams"; + b.bp("/listStreams"); let body: any; body = JSON.stringify( take(input, { @@ -673,15 +551,8 @@ export const se_ListStreamsCommand = async ( StreamNameCondition: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -691,11 +562,11 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource"; + b.bp("/ListTagsForResource"); let body: any; body = JSON.stringify( take(input, { @@ -703,15 +574,8 @@ export const se_ListTagsForResourceCommand = async ( ResourceARN: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -721,11 +585,11 @@ export const se_ListTagsForStreamCommand = async ( input: ListTagsForStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTagsForStream"; + b.bp("/listTagsForStream"); let body: any; body = JSON.stringify( take(input, { @@ -734,15 +598,8 @@ export const se_ListTagsForStreamCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -752,12 +609,11 @@ export const se_StartEdgeConfigurationUpdateCommand = async ( input: StartEdgeConfigurationUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startEdgeConfigurationUpdate"; + b.bp("/startEdgeConfigurationUpdate"); let body: any; body = JSON.stringify( take(input, { @@ -766,15 +622,8 @@ export const se_StartEdgeConfigurationUpdateCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -784,11 +633,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource"; + b.bp("/TagResource"); let body: any; body = JSON.stringify( take(input, { @@ -796,15 +645,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -814,11 +656,11 @@ export const se_TagStreamCommand = async ( input: TagStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tagStream"; + b.bp("/tagStream"); let body: any; body = JSON.stringify( take(input, { @@ -827,15 +669,8 @@ export const se_TagStreamCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -845,11 +680,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource"; + b.bp("/UntagResource"); let body: any; body = JSON.stringify( take(input, { @@ -857,15 +692,8 @@ export const se_UntagResourceCommand = async ( TagKeyList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -875,11 +703,11 @@ export const se_UntagStreamCommand = async ( input: UntagStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untagStream"; + b.bp("/untagStream"); let body: any; body = JSON.stringify( take(input, { @@ -888,15 +716,8 @@ export const se_UntagStreamCommand = async ( TagKeyList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -906,11 +727,11 @@ export const se_UpdateDataRetentionCommand = async ( input: UpdateDataRetentionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDataRetention"; + b.bp("/updateDataRetention"); let body: any; body = JSON.stringify( take(input, { @@ -921,15 +742,8 @@ export const se_UpdateDataRetentionCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -939,12 +753,11 @@ export const se_UpdateImageGenerationConfigurationCommand = async ( input: UpdateImageGenerationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateImageGenerationConfiguration"; + b.bp("/updateImageGenerationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -953,15 +766,8 @@ export const se_UpdateImageGenerationConfigurationCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -971,12 +777,11 @@ export const se_UpdateMediaStorageConfigurationCommand = async ( input: UpdateMediaStorageConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateMediaStorageConfiguration"; + b.bp("/updateMediaStorageConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -984,15 +789,8 @@ export const se_UpdateMediaStorageConfigurationCommand = async ( MediaStorageConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1002,12 +800,11 @@ export const se_UpdateNotificationConfigurationCommand = async ( input: UpdateNotificationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateNotificationConfiguration"; + b.bp("/updateNotificationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1016,15 +813,8 @@ export const se_UpdateNotificationConfigurationCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1034,12 +824,11 @@ export const se_UpdateSignalingChannelCommand = async ( input: UpdateSignalingChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateSignalingChannel"; + b.bp("/updateSignalingChannel"); let body: any; body = JSON.stringify( take(input, { @@ -1048,15 +837,8 @@ export const se_UpdateSignalingChannelCommand = async ( SingleMasterConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1066,11 +848,11 @@ export const se_UpdateStreamCommand = async ( input: UpdateStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateStream"; + b.bp("/updateStream"); let body: any; body = JSON.stringify( take(input, { @@ -1081,15 +863,8 @@ export const se_UpdateStreamCommand = async ( StreamName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-lakeformation/package.json b/clients/client-lakeformation/package.json index baa581f66511..eb0f85ac3eca 100644 --- a/clients/client-lakeformation/package.json +++ b/clients/client-lakeformation/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-lakeformation/src/models/models_0.ts b/clients/client-lakeformation/src/models/models_0.ts index 208518c87959..6850795adc53 100644 --- a/clients/client-lakeformation/src/models/models_0.ts +++ b/clients/client-lakeformation/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { LakeFormationServiceException as __BaseException } from "./LakeFormationServiceException"; diff --git a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts index 630ef3f8cc2d..d7c5b548685e 100644 --- a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts +++ b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -226,11 +227,11 @@ export const se_AddLFTagsToResourceCommand = async ( input: AddLFTagsToResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AddLFTagsToResource"; + b.bp("/AddLFTagsToResource"); let body: any; body = JSON.stringify( take(input, { @@ -239,15 +240,8 @@ export const se_AddLFTagsToResourceCommand = async ( Resource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -257,12 +251,11 @@ export const se_AssumeDecoratedRoleWithSAMLCommand = async ( input: AssumeDecoratedRoleWithSAMLCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssumeDecoratedRoleWithSAML"; + b.bp("/AssumeDecoratedRoleWithSAML"); let body: any; body = JSON.stringify( take(input, { @@ -272,15 +265,8 @@ export const se_AssumeDecoratedRoleWithSAMLCommand = async ( SAMLAssertion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -290,11 +276,11 @@ export const se_BatchGrantPermissionsCommand = async ( input: BatchGrantPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGrantPermissions"; + b.bp("/BatchGrantPermissions"); let body: any; body = JSON.stringify( take(input, { @@ -302,15 +288,8 @@ export const se_BatchGrantPermissionsCommand = async ( Entries: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -320,12 +299,11 @@ export const se_BatchRevokePermissionsCommand = async ( input: BatchRevokePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchRevokePermissions"; + b.bp("/BatchRevokePermissions"); let body: any; body = JSON.stringify( take(input, { @@ -333,15 +311,8 @@ export const se_BatchRevokePermissionsCommand = async ( Entries: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -351,26 +322,19 @@ export const se_CancelTransactionCommand = async ( input: CancelTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelTransaction"; + b.bp("/CancelTransaction"); let body: any; body = JSON.stringify( take(input, { TransactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -380,26 +344,19 @@ export const se_CommitTransactionCommand = async ( input: CommitTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CommitTransaction"; + b.bp("/CommitTransaction"); let body: any; body = JSON.stringify( take(input, { TransactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -409,26 +366,19 @@ export const se_CreateDataCellsFilterCommand = async ( input: CreateDataCellsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDataCellsFilter"; + b.bp("/CreateDataCellsFilter"); let body: any; body = JSON.stringify( take(input, { TableData: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -438,13 +388,11 @@ export const se_CreateLakeFormationIdentityCenterConfigurationCommand = async ( input: CreateLakeFormationIdentityCenterConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/CreateLakeFormationIdentityCenterConfiguration"; + b.bp("/CreateLakeFormationIdentityCenterConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -453,15 +401,8 @@ export const se_CreateLakeFormationIdentityCenterConfigurationCommand = async ( InstanceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -471,12 +412,11 @@ export const se_CreateLakeFormationOptInCommand = async ( input: CreateLakeFormationOptInCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLakeFormationOptIn"; + b.bp("/CreateLakeFormationOptIn"); let body: any; body = JSON.stringify( take(input, { @@ -484,15 +424,8 @@ export const se_CreateLakeFormationOptInCommand = async ( Resource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -502,11 +435,11 @@ export const se_CreateLFTagCommand = async ( input: CreateLFTagCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLFTag"; + b.bp("/CreateLFTag"); let body: any; body = JSON.stringify( take(input, { @@ -515,15 +448,8 @@ export const se_CreateLFTagCommand = async ( TagValues: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -533,11 +459,11 @@ export const se_DeleteDataCellsFilterCommand = async ( input: DeleteDataCellsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteDataCellsFilter"; + b.bp("/DeleteDataCellsFilter"); let body: any; body = JSON.stringify( take(input, { @@ -547,15 +473,8 @@ export const se_DeleteDataCellsFilterCommand = async ( TableName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -565,28 +484,19 @@ export const se_DeleteLakeFormationIdentityCenterConfigurationCommand = async ( input: DeleteLakeFormationIdentityCenterConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/DeleteLakeFormationIdentityCenterConfiguration"; + b.bp("/DeleteLakeFormationIdentityCenterConfiguration"); let body: any; body = JSON.stringify( take(input, { CatalogId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -596,12 +506,11 @@ export const se_DeleteLakeFormationOptInCommand = async ( input: DeleteLakeFormationOptInCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLakeFormationOptIn"; + b.bp("/DeleteLakeFormationOptIn"); let body: any; body = JSON.stringify( take(input, { @@ -609,15 +518,8 @@ export const se_DeleteLakeFormationOptInCommand = async ( Resource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -627,11 +529,11 @@ export const se_DeleteLFTagCommand = async ( input: DeleteLFTagCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLFTag"; + b.bp("/DeleteLFTag"); let body: any; body = JSON.stringify( take(input, { @@ -639,15 +541,8 @@ export const se_DeleteLFTagCommand = async ( TagKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -657,11 +552,11 @@ export const se_DeleteObjectsOnCancelCommand = async ( input: DeleteObjectsOnCancelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteObjectsOnCancel"; + b.bp("/DeleteObjectsOnCancel"); let body: any; body = JSON.stringify( take(input, { @@ -672,15 +567,8 @@ export const se_DeleteObjectsOnCancelCommand = async ( TransactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -690,26 +578,19 @@ export const se_DeregisterResourceCommand = async ( input: DeregisterResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeregisterResource"; + b.bp("/DeregisterResource"); let body: any; body = JSON.stringify( take(input, { ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -719,28 +600,19 @@ export const se_DescribeLakeFormationIdentityCenterConfigurationCommand = async input: DescribeLakeFormationIdentityCenterConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/DescribeLakeFormationIdentityCenterConfiguration"; + b.bp("/DescribeLakeFormationIdentityCenterConfiguration"); let body: any; body = JSON.stringify( take(input, { CatalogId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -750,26 +622,19 @@ export const se_DescribeResourceCommand = async ( input: DescribeResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeResource"; + b.bp("/DescribeResource"); let body: any; body = JSON.stringify( take(input, { ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -779,26 +644,19 @@ export const se_DescribeTransactionCommand = async ( input: DescribeTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeTransaction"; + b.bp("/DescribeTransaction"); let body: any; body = JSON.stringify( take(input, { TransactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -808,26 +666,19 @@ export const se_ExtendTransactionCommand = async ( input: ExtendTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ExtendTransaction"; + b.bp("/ExtendTransaction"); let body: any; body = JSON.stringify( take(input, { TransactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -837,11 +688,11 @@ export const se_GetDataCellsFilterCommand = async ( input: GetDataCellsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataCellsFilter"; + b.bp("/GetDataCellsFilter"); let body: any; body = JSON.stringify( take(input, { @@ -851,15 +702,8 @@ export const se_GetDataCellsFilterCommand = async ( TableName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -869,26 +713,19 @@ export const se_GetDataLakeSettingsCommand = async ( input: GetDataLakeSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataLakeSettings"; + b.bp("/GetDataLakeSettings"); let body: any; body = JSON.stringify( take(input, { CatalogId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -898,12 +735,11 @@ export const se_GetEffectivePermissionsForPathCommand = async ( input: GetEffectivePermissionsForPathCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetEffectivePermissionsForPath"; + b.bp("/GetEffectivePermissionsForPath"); let body: any; body = JSON.stringify( take(input, { @@ -913,15 +749,8 @@ export const se_GetEffectivePermissionsForPathCommand = async ( ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -931,11 +760,11 @@ export const se_GetLFTagCommand = async ( input: GetLFTagCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLFTag"; + b.bp("/GetLFTag"); let body: any; body = JSON.stringify( take(input, { @@ -943,15 +772,8 @@ export const se_GetLFTagCommand = async ( TagKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -961,11 +783,11 @@ export const se_GetQueryStateCommand = async ( input: GetQueryStateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryState"; + b.bp("/GetQueryState"); let body: any; body = JSON.stringify( take(input, { @@ -979,15 +801,9 @@ export const se_GetQueryStateCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -997,11 +813,11 @@ export const se_GetQueryStatisticsCommand = async ( input: GetQueryStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetQueryStatistics"; + b.bp("/GetQueryStatistics"); let body: any; body = JSON.stringify( take(input, { @@ -1015,15 +831,9 @@ export const se_GetQueryStatisticsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1033,11 +843,11 @@ export const se_GetResourceLFTagsCommand = async ( input: GetResourceLFTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetResourceLFTags"; + b.bp("/GetResourceLFTags"); let body: any; body = JSON.stringify( take(input, { @@ -1046,15 +856,8 @@ export const se_GetResourceLFTagsCommand = async ( ShowAssignedLFTags: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1064,11 +867,11 @@ export const se_GetTableObjectsCommand = async ( input: GetTableObjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTableObjects"; + b.bp("/GetTableObjects"); let body: any; body = JSON.stringify( take(input, { @@ -1082,15 +885,8 @@ export const se_GetTableObjectsCommand = async ( TransactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1100,12 +896,11 @@ export const se_GetTemporaryGluePartitionCredentialsCommand = async ( input: GetTemporaryGluePartitionCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGluePartitionCredentials"; + b.bp("/GetTemporaryGluePartitionCredentials"); let body: any; body = JSON.stringify( take(input, { @@ -1117,15 +912,8 @@ export const se_GetTemporaryGluePartitionCredentialsCommand = async ( TableArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1135,12 +923,11 @@ export const se_GetTemporaryGlueTableCredentialsCommand = async ( input: GetTemporaryGlueTableCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGlueTableCredentials"; + b.bp("/GetTemporaryGlueTableCredentials"); let body: any; body = JSON.stringify( take(input, { @@ -1151,15 +938,8 @@ export const se_GetTemporaryGlueTableCredentialsCommand = async ( TableArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1169,11 +949,11 @@ export const se_GetWorkUnitResultsCommand = async ( input: GetWorkUnitResultsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnitResults"; + b.bp("/GetWorkUnitResults"); let body: any; body = JSON.stringify( take(input, { @@ -1189,15 +969,9 @@ export const se_GetWorkUnitResultsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1207,11 +981,11 @@ export const se_GetWorkUnitsCommand = async ( input: GetWorkUnitsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkUnits"; + b.bp("/GetWorkUnits"); let body: any; body = JSON.stringify( take(input, { @@ -1227,15 +1001,9 @@ export const se_GetWorkUnitsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1245,11 +1013,11 @@ export const se_GrantPermissionsCommand = async ( input: GrantPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GrantPermissions"; + b.bp("/GrantPermissions"); let body: any; body = JSON.stringify( take(input, { @@ -1260,15 +1028,8 @@ export const se_GrantPermissionsCommand = async ( Resource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1278,11 +1039,11 @@ export const se_ListDataCellsFilterCommand = async ( input: ListDataCellsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListDataCellsFilter"; + b.bp("/ListDataCellsFilter"); let body: any; body = JSON.stringify( take(input, { @@ -1291,15 +1052,8 @@ export const se_ListDataCellsFilterCommand = async ( Table: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1309,12 +1063,11 @@ export const se_ListLakeFormationOptInsCommand = async ( input: ListLakeFormationOptInsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLakeFormationOptIns"; + b.bp("/ListLakeFormationOptIns"); let body: any; body = JSON.stringify( take(input, { @@ -1324,15 +1077,8 @@ export const se_ListLakeFormationOptInsCommand = async ( Resource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1342,11 +1088,11 @@ export const se_ListLFTagsCommand = async ( input: ListLFTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLFTags"; + b.bp("/ListLFTags"); let body: any; body = JSON.stringify( take(input, { @@ -1356,15 +1102,8 @@ export const se_ListLFTagsCommand = async ( ResourceShareType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1374,11 +1113,11 @@ export const se_ListPermissionsCommand = async ( input: ListPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListPermissions"; + b.bp("/ListPermissions"); let body: any; body = JSON.stringify( take(input, { @@ -1391,15 +1130,8 @@ export const se_ListPermissionsCommand = async ( ResourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1409,11 +1141,11 @@ export const se_ListResourcesCommand = async ( input: ListResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListResources"; + b.bp("/ListResources"); let body: any; body = JSON.stringify( take(input, { @@ -1422,15 +1154,8 @@ export const se_ListResourcesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1440,12 +1165,11 @@ export const se_ListTableStorageOptimizersCommand = async ( input: ListTableStorageOptimizersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTableStorageOptimizers"; + b.bp("/ListTableStorageOptimizers"); let body: any; body = JSON.stringify( take(input, { @@ -1457,15 +1181,8 @@ export const se_ListTableStorageOptimizersCommand = async ( TableName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1475,11 +1192,11 @@ export const se_ListTransactionsCommand = async ( input: ListTransactionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTransactions"; + b.bp("/ListTransactions"); let body: any; body = JSON.stringify( take(input, { @@ -1489,15 +1206,8 @@ export const se_ListTransactionsCommand = async ( StatusFilter: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1507,11 +1217,11 @@ export const se_PutDataLakeSettingsCommand = async ( input: PutDataLakeSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutDataLakeSettings"; + b.bp("/PutDataLakeSettings"); let body: any; body = JSON.stringify( take(input, { @@ -1519,15 +1229,8 @@ export const se_PutDataLakeSettingsCommand = async ( DataLakeSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1537,11 +1240,11 @@ export const se_RegisterResourceCommand = async ( input: RegisterResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RegisterResource"; + b.bp("/RegisterResource"); let body: any; body = JSON.stringify( take(input, { @@ -1552,15 +1255,8 @@ export const se_RegisterResourceCommand = async ( WithFederation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1570,12 +1266,11 @@ export const se_RemoveLFTagsFromResourceCommand = async ( input: RemoveLFTagsFromResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveLFTagsFromResource"; + b.bp("/RemoveLFTagsFromResource"); let body: any; body = JSON.stringify( take(input, { @@ -1584,15 +1279,8 @@ export const se_RemoveLFTagsFromResourceCommand = async ( Resource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1602,11 +1290,11 @@ export const se_RevokePermissionsCommand = async ( input: RevokePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RevokePermissions"; + b.bp("/RevokePermissions"); let body: any; body = JSON.stringify( take(input, { @@ -1617,15 +1305,8 @@ export const se_RevokePermissionsCommand = async ( Resource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1635,12 +1316,11 @@ export const se_SearchDatabasesByLFTagsCommand = async ( input: SearchDatabasesByLFTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SearchDatabasesByLFTags"; + b.bp("/SearchDatabasesByLFTags"); let body: any; body = JSON.stringify( take(input, { @@ -1650,15 +1330,8 @@ export const se_SearchDatabasesByLFTagsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1668,11 +1341,11 @@ export const se_SearchTablesByLFTagsCommand = async ( input: SearchTablesByLFTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SearchTablesByLFTags"; + b.bp("/SearchTablesByLFTags"); let body: any; body = JSON.stringify( take(input, { @@ -1682,15 +1355,8 @@ export const se_SearchTablesByLFTagsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1700,11 +1366,11 @@ export const se_StartQueryPlanningCommand = async ( input: StartQueryPlanningCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartQueryPlanning"; + b.bp("/StartQueryPlanning"); let body: any; body = JSON.stringify( take(input, { @@ -1719,15 +1385,9 @@ export const se_StartQueryPlanningCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1737,26 +1397,19 @@ export const se_StartTransactionCommand = async ( input: StartTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartTransaction"; + b.bp("/StartTransaction"); let body: any; body = JSON.stringify( take(input, { TransactionType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1766,26 +1419,19 @@ export const se_UpdateDataCellsFilterCommand = async ( input: UpdateDataCellsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateDataCellsFilter"; + b.bp("/UpdateDataCellsFilter"); let body: any; body = JSON.stringify( take(input, { TableData: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1795,13 +1441,11 @@ export const se_UpdateLakeFormationIdentityCenterConfigurationCommand = async ( input: UpdateLakeFormationIdentityCenterConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/UpdateLakeFormationIdentityCenterConfiguration"; + b.bp("/UpdateLakeFormationIdentityCenterConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1810,15 +1454,8 @@ export const se_UpdateLakeFormationIdentityCenterConfigurationCommand = async ( ExternalFiltering: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1828,11 +1465,11 @@ export const se_UpdateLFTagCommand = async ( input: UpdateLFTagCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLFTag"; + b.bp("/UpdateLFTag"); let body: any; body = JSON.stringify( take(input, { @@ -1842,15 +1479,8 @@ export const se_UpdateLFTagCommand = async ( TagValuesToDelete: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1860,11 +1490,11 @@ export const se_UpdateResourceCommand = async ( input: UpdateResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateResource"; + b.bp("/UpdateResource"); let body: any; body = JSON.stringify( take(input, { @@ -1874,15 +1504,8 @@ export const se_UpdateResourceCommand = async ( WithFederation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1892,11 +1515,11 @@ export const se_UpdateTableObjectsCommand = async ( input: UpdateTableObjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableObjects"; + b.bp("/UpdateTableObjects"); let body: any; body = JSON.stringify( take(input, { @@ -1907,15 +1530,8 @@ export const se_UpdateTableObjectsCommand = async ( WriteOperations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1925,12 +1541,11 @@ export const se_UpdateTableStorageOptimizerCommand = async ( input: UpdateTableStorageOptimizerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateTableStorageOptimizer"; + b.bp("/UpdateTableStorageOptimizer"); let body: any; body = JSON.stringify( take(input, { @@ -1940,15 +1555,8 @@ export const se_UpdateTableStorageOptimizerCommand = async ( TableName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-lambda/package.json b/clients/client-lambda/package.json index 8d4d88c14283..b4fffde34e9a 100644 --- a/clients/client-lambda/package.json +++ b/clients/client-lambda/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-lambda/src/models/models_0.ts b/clients/client-lambda/src/models/models_0.ts index 80e8104d2d01..6b25e7acd8f2 100644 --- a/clients/client-lambda/src/models/models_0.ts +++ b/clients/client-lambda/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { LambdaServiceException as __BaseException } from "./LambdaServiceException"; diff --git a/clients/client-lambda/src/protocols/Aws_restJson1.ts b/clients/client-lambda/src/protocols/Aws_restJson1.ts index 8791205ee9f6..6bf27a9bd509 100644 --- a/clients/client-lambda/src/protocols/Aws_restJson1.ts +++ b/clients/client-lambda/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -304,24 +305,15 @@ export const se_AddLayerVersionPermissionCommand = async ( input: AddLayerVersionPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "LayerName", () => input.LayerName!, "{LayerName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false - ); + b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy"); + b.p("LayerName", () => input.LayerName!, "{LayerName}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); const query: any = map({ - RevisionId: [, input.RevisionId!], + [_RI]: [, input[_RI]!], }); let body: any; body = JSON.stringify( @@ -332,16 +324,8 @@ export const se_AddLayerVersionPermissionCommand = async ( StatementId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -351,23 +335,14 @@ export const se_AddPermissionCommand = async ( input: AddPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/policy"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; body = JSON.stringify( @@ -383,16 +358,8 @@ export const se_AddPermissionCommand = async ( StatementId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -402,21 +369,12 @@ export const se_CreateAliasCommand = async ( input: CreateAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/aliases"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/aliases"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -426,15 +384,8 @@ export const se_CreateAliasCommand = async ( RoutingConfig: (_) => se_AliasRoutingConfiguration(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -444,12 +395,11 @@ export const se_CreateCodeSigningConfigCommand = async ( input: CreateCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-04-22/code-signing-configs"; + b.bp("/2020-04-22/code-signing-configs"); let body: any; body = JSON.stringify( take(input, { @@ -458,15 +408,8 @@ export const se_CreateCodeSigningConfigCommand = async ( Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -476,12 +419,11 @@ export const se_CreateEventSourceMappingCommand = async ( input: CreateEventSourceMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings"; + b.bp("/2015-03-31/event-source-mappings"); let body: any; body = JSON.stringify( take(input, { @@ -510,15 +452,8 @@ export const se_CreateEventSourceMappingCommand = async ( TumblingWindowInSeconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -528,11 +463,11 @@ export const se_CreateFunctionCommand = async ( input: CreateFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions"; + b.bp("/2015-03-31/functions"); let body: any; body = JSON.stringify( take(input, { @@ -562,15 +497,8 @@ export const se_CreateFunctionCommand = async ( VpcConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -580,22 +508,14 @@ export const se_CreateFunctionUrlConfigCommand = async ( input: CreateFunctionUrlConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2021-10-31/functions/{FunctionName}/url"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; body = JSON.stringify( @@ -605,16 +525,8 @@ export const se_CreateFunctionUrlConfigCommand = async ( InvokeMode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -624,30 +536,14 @@ export const se_DeleteAliasCommand = async ( input: DeleteAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/aliases/{Name}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -657,29 +553,13 @@ export const se_DeleteCodeSigningConfigCommand = async ( input: DeleteCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeSigningConfigArn", - () => input.CodeSigningConfigArn!, - "{CodeSigningConfigArn}", - false - ); + b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}"); + b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn!, "{CodeSigningConfigArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -689,21 +569,13 @@ export const se_DeleteEventSourceMappingCommand = async ( input: DeleteEventSourceMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings/{UUID}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UUID", () => input.UUID!, "{UUID}", false); + b.bp("/2015-03-31/event-source-mappings/{UUID}"); + b.p("UUID", () => input.UUID!, "{UUID}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -713,32 +585,16 @@ export const se_DeleteFunctionCommand = async ( input: DeleteFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions/{FunctionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -748,29 +604,13 @@ export const se_DeleteFunctionCodeSigningConfigCommand = async ( input: DeleteFunctionCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-06-30/functions/{FunctionName}/code-signing-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -780,29 +620,13 @@ export const se_DeleteFunctionConcurrencyCommand = async ( input: DeleteFunctionConcurrencyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2017-10-31/functions/{FunctionName}/concurrency"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2017-10-31/functions/{FunctionName}/concurrency"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -812,33 +636,16 @@ export const se_DeleteFunctionEventInvokeConfigCommand = async ( input: DeleteFunctionEventInvokeConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-25/functions/{FunctionName}/event-invoke-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -848,32 +655,16 @@ export const se_DeleteFunctionUrlConfigCommand = async ( input: DeleteFunctionUrlConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2021-10-31/functions/{FunctionName}/url"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -883,30 +674,14 @@ export const se_DeleteLayerVersionCommand = async ( input: DeleteLayerVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LayerName", () => input.LayerName!, "{LayerName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false - ); + b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}"); + b.p("LayerName", () => input.LayerName!, "{LayerName}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -916,33 +691,16 @@ export const se_DeleteProvisionedConcurrencyConfigCommand = async ( input: DeleteProvisionedConcurrencyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-30/functions/{FunctionName}/provisioned-concurrency"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, __expectNonNull(input.Qualifier!, `Qualifier`)], + [_Q]: [, __expectNonNull(input[_Q]!, `Qualifier`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -952,23 +710,15 @@ export const se_GetAccountSettingsCommand = async ( input: GetAccountSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2016-08-19/account-settings"; + b.bp("/2016-08-19/account-settings"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -978,30 +728,14 @@ export const se_GetAliasCommand = async ( input: GetAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/aliases/{Name}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1011,29 +745,13 @@ export const se_GetCodeSigningConfigCommand = async ( input: GetCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeSigningConfigArn", - () => input.CodeSigningConfigArn!, - "{CodeSigningConfigArn}", - false - ); + b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}"); + b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn!, "{CodeSigningConfigArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1043,21 +761,13 @@ export const se_GetEventSourceMappingCommand = async ( input: GetEventSourceMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings/{UUID}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UUID", () => input.UUID!, "{UUID}", false); + b.bp("/2015-03-31/event-source-mappings/{UUID}"); + b.p("UUID", () => input.UUID!, "{UUID}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1067,32 +777,16 @@ export const se_GetFunctionCommand = async ( input: GetFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions/{FunctionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1102,29 +796,13 @@ export const se_GetFunctionCodeSigningConfigCommand = async ( input: GetFunctionCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-06-30/functions/{FunctionName}/code-signing-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1134,29 +812,13 @@ export const se_GetFunctionConcurrencyCommand = async ( input: GetFunctionConcurrencyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-30/functions/{FunctionName}/concurrency"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-30/functions/{FunctionName}/concurrency"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1166,33 +828,16 @@ export const se_GetFunctionConfigurationCommand = async ( input: GetFunctionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/configuration"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1202,33 +847,16 @@ export const se_GetFunctionEventInvokeConfigCommand = async ( input: GetFunctionEventInvokeConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-25/functions/{FunctionName}/event-invoke-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1238,32 +866,16 @@ export const se_GetFunctionUrlConfigCommand = async ( input: GetFunctionUrlConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2021-10-31/functions/{FunctionName}/url"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1273,30 +885,14 @@ export const se_GetLayerVersionCommand = async ( input: GetLayerVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LayerName", () => input.LayerName!, "{LayerName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false - ); + b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}"); + b.p("LayerName", () => input.LayerName!, "{LayerName}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1306,24 +902,16 @@ export const se_GetLayerVersionByArnCommand = async ( input: GetLayerVersionByArnCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers"; + b.bp("/2018-10-31/layers"); const query: any = map({ - find: [, "LayerVersion"], - Arn: [, __expectNonNull(input.Arn!, `Arn`)], + [_f]: [, "LayerVersion"], + [_A]: [, __expectNonNull(input[_A]!, `Arn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1333,30 +921,14 @@ export const se_GetLayerVersionPolicyCommand = async ( input: GetLayerVersionPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "LayerName", () => input.LayerName!, "{LayerName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false - ); + b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy"); + b.p("LayerName", () => input.LayerName!, "{LayerName}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1366,33 +938,16 @@ export const se_GetPolicyCommand = async ( input: GetPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/policy"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1402,33 +957,16 @@ export const se_GetProvisionedConcurrencyConfigCommand = async ( input: GetProvisionedConcurrencyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-30/functions/{FunctionName}/provisioned-concurrency"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, __expectNonNull(input.Qualifier!, `Qualifier`)], + [_Q]: [, __expectNonNull(input[_Q]!, `Qualifier`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1438,74 +976,40 @@ export const se_GetRuntimeManagementConfigCommand = async ( input: GetRuntimeManagementConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-07-20/functions/{FunctionName}/runtime-management-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** * serializeAws_restJson1InvokeCommand */ export const se_InvokeCommand = async (input: InvokeCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-amz-invocation-type": input.InvocationType!, - "x-amz-log-type": input.LogType!, - "x-amz-client-context": input.ClientContext!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/invocations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + [_xait]: input[_IT]!, + [_xalt]: input[_LT]!, + [_xacc]: input[_CC]!, + }); + b.bp("/2015-03-31/functions/{FunctionName}/invocations"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; if (input.Payload !== undefined) { body = input.Payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1515,34 +1019,18 @@ export const se_InvokeAsyncCommand = async ( input: InvokeAsyncCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2014-11-13/functions/{FunctionName}/invoke-async"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2014-11-13/functions/{FunctionName}/invoke-async"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; if (input.InvokeArgs !== undefined) { body = input.InvokeArgs; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1552,41 +1040,24 @@ export const se_InvokeWithResponseStreamCommand = async ( input: InvokeWithResponseStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-amz-invocation-type": input.InvocationType!, - "x-amz-log-type": input.LogType!, - "x-amz-client-context": input.ClientContext!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-11-15/functions/{FunctionName}/response-streaming-invocations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + [_xait]: input[_IT]!, + [_xalt]: input[_LT]!, + [_xacc]: input[_CC]!, + }); + b.bp("/2021-11-15/functions/{FunctionName}/response-streaming-invocations"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; if (input.Payload !== undefined) { body = input.Payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1596,35 +1067,18 @@ export const se_ListAliasesCommand = async ( input: ListAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/aliases"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/aliases"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - FunctionVersion: [, input.FunctionVersion!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_FV]: [, input[_FV]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1634,25 +1088,16 @@ export const se_ListCodeSigningConfigsCommand = async ( input: ListCodeSigningConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-04-22/code-signing-configs"; + b.bp("/2020-04-22/code-signing-configs"); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1662,27 +1107,18 @@ export const se_ListEventSourceMappingsCommand = async ( input: ListEventSourceMappingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings"; + b.bp("/2015-03-31/event-source-mappings"); const query: any = map({ - EventSourceArn: [, input.EventSourceArn!], - FunctionName: [, input.FunctionName!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_ESA]: [, input[_ESA]!], + [_FN]: [, input[_FN]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1692,34 +1128,17 @@ export const se_ListFunctionEventInvokeConfigsCommand = async ( input: ListFunctionEventInvokeConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-25/functions/{FunctionName}/event-invoke-config/list"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config/list"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1729,26 +1148,18 @@ export const se_ListFunctionsCommand = async ( input: ListFunctionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions"; + b.bp("/2015-03-31/functions"); const query: any = map({ - MasterRegion: [, input.MasterRegion!], - FunctionVersion: [, input.FunctionVersion!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_MR]: [, input[_MR]!], + [_FV]: [, input[_FV]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1758,34 +1169,17 @@ export const se_ListFunctionsByCodeSigningConfigCommand = async ( input: ListFunctionsByCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeSigningConfigArn", - () => input.CodeSigningConfigArn!, - "{CodeSigningConfigArn}", - false - ); + b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions"); + b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn!, "{CodeSigningConfigArn}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1795,33 +1189,17 @@ export const se_ListFunctionUrlConfigsCommand = async ( input: ListFunctionUrlConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/urls"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2021-10-31/functions/{FunctionName}/urls"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1831,26 +1209,18 @@ export const se_ListLayersCommand = async ( input: ListLayersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers"; + b.bp("/2018-10-31/layers"); const query: any = map({ - CompatibleRuntime: [, input.CompatibleRuntime!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - CompatibleArchitecture: [, input.CompatibleArchitecture!], + [_CR]: [, input[_CR]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_CA]: [, input[_CA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1860,28 +1230,19 @@ export const se_ListLayerVersionsCommand = async ( input: ListLayerVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers/{LayerName}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "LayerName", () => input.LayerName!, "{LayerName}", false); + b.bp("/2018-10-31/layers/{LayerName}/versions"); + b.p("LayerName", () => input.LayerName!, "{LayerName}", false); const query: any = map({ - CompatibleRuntime: [, input.CompatibleRuntime!], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - CompatibleArchitecture: [, input.CompatibleArchitecture!], + [_CR]: [, input[_CR]!], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_CA]: [, input[_CA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1891,35 +1252,18 @@ export const se_ListProvisionedConcurrencyConfigsCommand = async ( input: ListProvisionedConcurrencyConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-30/functions/{FunctionName}/provisioned-concurrency"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - List: [, "ALL"], - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_L]: [, "ALL"], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1929,21 +1273,13 @@ export const se_ListTagsCommand = async ( input: ListTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-03-31/tags/{Resource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Resource", () => input.Resource!, "{Resource}", false); + b.bp("/2017-03-31/tags/{Resource}"); + b.p("Resource", () => input.Resource!, "{Resource}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1953,34 +1289,17 @@ export const se_ListVersionsByFunctionCommand = async ( input: ListVersionsByFunctionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/versions"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Marker: [, input.Marker!], - MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_M]: [, input[_M]!], + [_MI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1990,13 +1309,12 @@ export const se_PublishLayerVersionCommand = async ( input: PublishLayerVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers/{LayerName}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "LayerName", () => input.LayerName!, "{LayerName}", false); + b.bp("/2018-10-31/layers/{LayerName}/versions"); + b.p("LayerName", () => input.LayerName!, "{LayerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2007,15 +1325,8 @@ export const se_PublishLayerVersionCommand = async ( LicenseInfo: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2025,21 +1336,12 @@ export const se_PublishVersionCommand = async ( input: PublishVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/versions"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2048,15 +1350,8 @@ export const se_PublishVersionCommand = async ( RevisionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2066,36 +1361,20 @@ export const se_PutFunctionCodeSigningConfigCommand = async ( input: PutFunctionCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-06-30/functions/{FunctionName}/code-signing-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; body = JSON.stringify( take(input, { CodeSigningConfigArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2105,36 +1384,20 @@ export const se_PutFunctionConcurrencyCommand = async ( input: PutFunctionConcurrencyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2017-10-31/functions/{FunctionName}/concurrency"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2017-10-31/functions/{FunctionName}/concurrency"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; body = JSON.stringify( take(input, { ReservedConcurrentExecutions: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2144,23 +1407,14 @@ export const se_PutFunctionEventInvokeConfigCommand = async ( input: PutFunctionEventInvokeConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-25/functions/{FunctionName}/event-invoke-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; body = JSON.stringify( @@ -2170,16 +1424,8 @@ export const se_PutFunctionEventInvokeConfigCommand = async ( MaximumRetryAttempts: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2189,23 +1435,14 @@ export const se_PutProvisionedConcurrencyConfigCommand = async ( input: PutProvisionedConcurrencyConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-30/functions/{FunctionName}/provisioned-concurrency"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, __expectNonNull(input.Qualifier!, `Qualifier`)], + [_Q]: [, __expectNonNull(input[_Q]!, `Qualifier`)], }); let body: any; body = JSON.stringify( @@ -2213,16 +1450,8 @@ export const se_PutProvisionedConcurrencyConfigCommand = async ( ProvisionedConcurrentExecutions: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2232,23 +1461,14 @@ export const se_PutRuntimeManagementConfigCommand = async ( input: PutRuntimeManagementConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-07-20/functions/{FunctionName}/runtime-management-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; body = JSON.stringify( @@ -2257,16 +1477,8 @@ export const se_PutRuntimeManagementConfigCommand = async ( UpdateRuntimeOn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2276,35 +1488,18 @@ export const se_RemoveLayerVersionPermissionCommand = async ( input: RemoveLayerVersionPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LayerName", () => input.LayerName!, "{LayerName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "StatementId", () => input.StatementId!, "{StatementId}", false); + b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}"); + b.p("LayerName", () => input.LayerName!, "{LayerName}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); + b.p("StatementId", () => input.StatementId!, "{StatementId}", false); const query: any = map({ - RevisionId: [, input.RevisionId!], + [_RI]: [, input[_RI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2314,35 +1509,18 @@ export const se_RemovePermissionCommand = async ( input: RemovePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/policy/{StatementId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "StatementId", () => input.StatementId!, "{StatementId}", false); + b.bp("/2015-03-31/functions/{FunctionName}/policy/{StatementId}"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); + b.p("StatementId", () => input.StatementId!, "{StatementId}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], - RevisionId: [, input.RevisionId!], + [_Q]: [, input[_Q]!], + [_RI]: [, input[_RI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2352,28 +1530,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-03-31/tags/{Resource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Resource", () => input.Resource!, "{Resource}", false); + b.bp("/2017-03-31/tags/{Resource}"); + b.p("Resource", () => input.Resource!, "{Resource}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2383,28 +1553,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-03-31/tags/{Resource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Resource", () => input.Resource!, "{Resource}", false); + b.bp("/2017-03-31/tags/{Resource}"); + b.p("Resource", () => input.Resource!, "{Resource}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2414,22 +1575,13 @@ export const se_UpdateAliasCommand = async ( input: UpdateAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/aliases/{Name}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -2439,15 +1591,8 @@ export const se_UpdateAliasCommand = async ( RoutingConfig: (_) => se_AliasRoutingConfiguration(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2457,21 +1602,12 @@ export const se_UpdateCodeSigningConfigCommand = async ( input: UpdateCodeSigningConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CodeSigningConfigArn", - () => input.CodeSigningConfigArn!, - "{CodeSigningConfigArn}", - false - ); + b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}"); + b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn!, "{CodeSigningConfigArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -2480,15 +1616,8 @@ export const se_UpdateCodeSigningConfigCommand = async ( Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2498,13 +1627,12 @@ export const se_UpdateEventSourceMappingCommand = async ( input: UpdateEventSourceMappingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/event-source-mappings/{UUID}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UUID", () => input.UUID!, "{UUID}", false); + b.bp("/2015-03-31/event-source-mappings/{UUID}"); + b.p("UUID", () => input.UUID!, "{UUID}", false); let body: any; body = JSON.stringify( take(input, { @@ -2525,15 +1653,8 @@ export const se_UpdateEventSourceMappingCommand = async ( TumblingWindowInSeconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2543,20 +1664,12 @@ export const se_UpdateFunctionCodeCommand = async ( input: UpdateFunctionCodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-03-31/functions/{FunctionName}/code"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/code"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2571,15 +1684,8 @@ export const se_UpdateFunctionCodeCommand = async ( ZipFile: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2589,21 +1695,12 @@ export const se_UpdateFunctionConfigurationCommand = async ( input: UpdateFunctionConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2015-03-31/functions/{FunctionName}/configuration"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2015-03-31/functions/{FunctionName}/configuration"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2627,15 +1724,8 @@ export const se_UpdateFunctionConfigurationCommand = async ( VpcConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2645,23 +1735,14 @@ export const se_UpdateFunctionEventInvokeConfigCommand = async ( input: UpdateFunctionEventInvokeConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2019-09-25/functions/{FunctionName}/event-invoke-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; body = JSON.stringify( @@ -2671,16 +1752,8 @@ export const se_UpdateFunctionEventInvokeConfigCommand = async ( MaximumRetryAttempts: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2690,22 +1763,14 @@ export const se_UpdateFunctionUrlConfigCommand = async ( input: UpdateFunctionUrlConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-10-31/functions/{FunctionName}/url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FunctionName", - () => input.FunctionName!, - "{FunctionName}", - false - ); + b.bp("/2021-10-31/functions/{FunctionName}/url"); + b.p("FunctionName", () => input.FunctionName!, "{FunctionName}", false); const query: any = map({ - Qualifier: [, input.Qualifier!], + [_Q]: [, input[_Q]!], }); let body: any; body = JSON.stringify( @@ -2715,16 +1780,8 @@ export const se_UpdateFunctionUrlConfigCommand = async ( InvokeMode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4803,9 +3860,9 @@ export const de_InvokeCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - FunctionError: [, output.headers["x-amz-function-error"]], - LogResult: [, output.headers["x-amz-log-result"]], - ExecutedVersion: [, output.headers["x-amz-executed-version"]], + [_FE]: [, output.headers[_xafe]], + [_LR]: [, output.headers[_xalr]], + [_EV]: [, output.headers[_xaev]], }); const data: any = await collectBody(output.body, context); contents.Payload = data; @@ -4995,8 +4052,8 @@ export const de_InvokeWithResponseStreamCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ExecutedVersion: [, output.headers["x-amz-executed-version"]], - ResponseStreamContentType: [, output.headers["content-type"]], + [_EV]: [, output.headers[_xaev]], + [_RSCT]: [, output.headers[_ct]], }); const data: any = output.body; contents.EventStream = de_InvokeWithResponseStreamResponseEvent(data, context); @@ -7792,7 +6849,7 @@ const de_TooManyRequestsExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -8279,6 +7336,38 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Arn"; +const _CA = "CompatibleArchitecture"; +const _CC = "ClientContext"; +const _CR = "CompatibleRuntime"; +const _ESA = "EventSourceArn"; +const _EV = "ExecutedVersion"; +const _FE = "FunctionError"; +const _FN = "FunctionName"; +const _FV = "FunctionVersion"; +const _IT = "InvocationType"; +const _L = "List"; +const _LR = "LogResult"; +const _LT = "LogType"; +const _M = "Marker"; +const _MI = "MaxItems"; +const _MR = "MasterRegion"; +const _Q = "Qualifier"; +const _RI = "RevisionId"; +const _RSCT = "ResponseStreamContentType"; +const _TK = "TagKeys"; +const _ct = "content-type"; +const _f = "find"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; +const _xacc = "x-amz-client-context"; +const _xaev = "x-amz-executed-version"; +const _xafe = "x-amz-function-error"; +const _xait = "x-amz-invocation-type"; +const _xalr = "x-amz-log-result"; +const _xalt = "x-amz-log-type"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-launch-wizard/package.json b/clients/client-launch-wizard/package.json index 4312f20158df..86bd28f5f89c 100644 --- a/clients/client-launch-wizard/package.json +++ b/clients/client-launch-wizard/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-launch-wizard/src/protocols/Aws_restJson1.ts b/clients/client-launch-wizard/src/protocols/Aws_restJson1.ts index c2f8c76bfc1c..89dfe8e49a59 100644 --- a/clients/client-launch-wizard/src/protocols/Aws_restJson1.ts +++ b/clients/client-launch-wizard/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -52,11 +53,11 @@ export const se_CreateDeploymentCommand = async ( input: CreateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createDeployment"; + b.bp("/createDeployment"); let body: any; body = JSON.stringify( take(input, { @@ -67,15 +68,8 @@ export const se_CreateDeploymentCommand = async ( workloadName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -85,26 +79,19 @@ export const se_DeleteDeploymentCommand = async ( input: DeleteDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteDeployment"; + b.bp("/deleteDeployment"); let body: any; body = JSON.stringify( take(input, { deploymentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -114,26 +101,19 @@ export const se_GetDeploymentCommand = async ( input: GetDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getDeployment"; + b.bp("/getDeployment"); let body: any; body = JSON.stringify( take(input, { deploymentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -143,26 +123,19 @@ export const se_GetWorkloadCommand = async ( input: GetWorkloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getWorkload"; + b.bp("/getWorkload"); let body: any; body = JSON.stringify( take(input, { workloadName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -172,11 +145,11 @@ export const se_ListDeploymentEventsCommand = async ( input: ListDeploymentEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDeploymentEvents"; + b.bp("/listDeploymentEvents"); let body: any; body = JSON.stringify( take(input, { @@ -185,15 +158,8 @@ export const se_ListDeploymentEventsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,11 +169,11 @@ export const se_ListDeploymentsCommand = async ( input: ListDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDeployments"; + b.bp("/listDeployments"); let body: any; body = JSON.stringify( take(input, { @@ -216,15 +182,8 @@ export const se_ListDeploymentsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -234,12 +193,11 @@ export const se_ListWorkloadDeploymentPatternsCommand = async ( input: ListWorkloadDeploymentPatternsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkloadDeploymentPatterns"; + b.bp("/listWorkloadDeploymentPatterns"); let body: any; body = JSON.stringify( take(input, { @@ -248,15 +206,8 @@ export const se_ListWorkloadDeploymentPatternsCommand = async ( workloadName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -266,11 +217,11 @@ export const se_ListWorkloadsCommand = async ( input: ListWorkloadsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorkloads"; + b.bp("/listWorkloads"); let body: any; body = JSON.stringify( take(input, { @@ -278,15 +229,8 @@ export const se_ListWorkloadsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-lex-model-building-service/package.json b/clients/client-lex-model-building-service/package.json index 5d1db0142772..a45f57f66330 100644 --- a/clients/client-lex-model-building-service/package.json +++ b/clients/client-lex-model-building-service/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts b/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts index 177647c10385..3cf68b567008 100644 --- a/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -143,27 +144,20 @@ export const se_CreateBotVersionCommand = async ( input: CreateBotVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/bots/{name}/versions"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { checksum: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -173,27 +167,20 @@ export const se_CreateIntentVersionCommand = async ( input: CreateIntentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/intents/{name}/versions"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { checksum: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,28 +190,20 @@ export const se_CreateSlotTypeVersionCommand = async ( input: CreateSlotTypeVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/slottypes/{name}/versions"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { checksum: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -234,20 +213,13 @@ export const se_DeleteBotCommand = async ( input: DeleteBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/bots/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -257,22 +229,14 @@ export const se_DeleteBotAliasCommand = async ( input: DeleteBotAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); + b.bp("/bots/{botName}/aliases/{name}"); + b.p("name", () => input.name!, "{name}", false); + b.p("botName", () => input.botName!, "{botName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -282,24 +246,15 @@ export const se_DeleteBotChannelAssociationCommand = async ( input: DeleteBotChannelAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botName}/aliases/{botAlias}/channels/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); + b.bp("/bots/{botName}/aliases/{botAlias}/channels/{name}"); + b.p("name", () => input.name!, "{name}", false); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -309,22 +264,14 @@ export const se_DeleteBotVersionCommand = async ( input: DeleteBotVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions/{version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "version", () => input.version!, "{version}", false); + b.bp("/bots/{name}/versions/{version}"); + b.p("name", () => input.name!, "{name}", false); + b.p("version", () => input.version!, "{version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -334,20 +281,13 @@ export const se_DeleteIntentCommand = async ( input: DeleteIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/intents/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -357,22 +297,14 @@ export const se_DeleteIntentVersionCommand = async ( input: DeleteIntentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions/{version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "version", () => input.version!, "{version}", false); + b.bp("/intents/{name}/versions/{version}"); + b.p("name", () => input.name!, "{name}", false); + b.p("version", () => input.version!, "{version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -382,20 +314,13 @@ export const se_DeleteSlotTypeCommand = async ( input: DeleteSlotTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/slottypes/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -405,22 +330,14 @@ export const se_DeleteSlotTypeVersionCommand = async ( input: DeleteSlotTypeVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/version/{version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "version", () => input.version!, "{version}", false); + b.bp("/slottypes/{name}/version/{version}"); + b.p("name", () => input.name!, "{name}", false); + b.p("version", () => input.version!, "{version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -430,51 +347,28 @@ export const se_DeleteUtterancesCommand = async ( input: DeleteUtterancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/utterances/{userId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/bots/{botName}/utterances/{userId}"); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetBotCommand */ export const se_GetBotCommand = async (input: GetBotCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions/{versionOrAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "versionOrAlias", - () => input.versionOrAlias!, - "{versionOrAlias}", - false - ); + b.bp("/bots/{name}/versions/{versionOrAlias}"); + b.p("name", () => input.name!, "{name}", false); + b.p("versionOrAlias", () => input.versionOrAlias!, "{versionOrAlias}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -484,22 +378,14 @@ export const se_GetBotAliasCommand = async ( input: GetBotAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); + b.bp("/bots/{botName}/aliases/{name}"); + b.p("name", () => input.name!, "{name}", false); + b.p("botName", () => input.botName!, "{botName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -509,26 +395,18 @@ export const se_GetBotAliasesCommand = async ( input: GetBotAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); + b.bp("/bots/{botName}/aliases"); + b.p("botName", () => input.botName!, "{botName}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nameContains: [, input.nameContains!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nC]: [, input[_nC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -538,24 +416,15 @@ export const se_GetBotChannelAssociationCommand = async ( input: GetBotChannelAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botName}/aliases/{botAlias}/channels/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); + b.bp("/bots/{botName}/aliases/{botAlias}/channels/{name}"); + b.p("name", () => input.name!, "{name}", false); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -565,29 +434,19 @@ export const se_GetBotChannelAssociationsCommand = async ( input: GetBotChannelAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botName}/aliases/{botAlias}/channels"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); + b.bp("/bots/{botName}/aliases/{botAlias}/channels"); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nameContains: [, input.nameContains!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nC]: [, input[_nC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -597,25 +456,17 @@ export const se_GetBotsCommand = async ( input: GetBotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots"; + b.bp("/bots"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nameContains: [, input.nameContains!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nC]: [, input[_nC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -625,25 +476,17 @@ export const se_GetBotVersionsCommand = async ( input: GetBotVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/bots/{name}/versions"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -653,21 +496,13 @@ export const se_GetBuiltinIntentCommand = async ( input: GetBuiltinIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/intents/{signature}"; - resolvedPath = __resolvedPath(resolvedPath, input, "signature", () => input.signature!, "{signature}", false); + b.bp("/builtins/intents/{signature}"); + b.p("signature", () => input.signature!, "{signature}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -677,26 +512,18 @@ export const se_GetBuiltinIntentsCommand = async ( input: GetBuiltinIntentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/intents"; + b.bp("/builtins/intents"); const query: any = map({ - locale: [, input.locale!], - signatureContains: [, input.signatureContains!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_l]: [, input[_l]!], + [_sC]: [, input[_sC]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -706,26 +533,18 @@ export const se_GetBuiltinSlotTypesCommand = async ( input: GetBuiltinSlotTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/slottypes"; + b.bp("/builtins/slottypes"); const query: any = map({ - locale: [, input.locale!], - signatureContains: [, input.signatureContains!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_l]: [, input[_l]!], + [_sC]: [, input[_sC]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -735,26 +554,18 @@ export const se_GetExportCommand = async ( input: GetExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports"; + b.bp("/exports"); const query: any = map({ - name: [, __expectNonNull(input.name!, `name`)], - version: [, __expectNonNull(input.version!, `version`)], - resourceType: [, __expectNonNull(input.resourceType!, `resourceType`)], - exportType: [, __expectNonNull(input.exportType!, `exportType`)], + [_n]: [, __expectNonNull(input[_n]!, `name`)], + [_v]: [, __expectNonNull(input[_v]!, `version`)], + [_rT]: [, __expectNonNull(input[_rT]!, `resourceType`)], + [_eT]: [, __expectNonNull(input[_eT]!, `exportType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -764,20 +575,13 @@ export const se_GetImportCommand = async ( input: GetImportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "importId", () => input.importId!, "{importId}", false); + b.bp("/imports/{importId}"); + b.p("importId", () => input.importId!, "{importId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -787,22 +591,14 @@ export const se_GetIntentCommand = async ( input: GetIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions/{version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "version", () => input.version!, "{version}", false); + b.bp("/intents/{name}/versions/{version}"); + b.p("name", () => input.name!, "{name}", false); + b.p("version", () => input.version!, "{version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -812,25 +608,17 @@ export const se_GetIntentsCommand = async ( input: GetIntentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents"; + b.bp("/intents"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nameContains: [, input.nameContains!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nC]: [, input[_nC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -840,25 +628,17 @@ export const se_GetIntentVersionsCommand = async ( input: GetIntentVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/intents/{name}/versions"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -868,21 +648,13 @@ export const se_GetMigrationCommand = async ( input: GetMigrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrations/{migrationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "migrationId", () => input.migrationId!, "{migrationId}", false); + b.bp("/migrations/{migrationId}"); + b.p("migrationId", () => input.migrationId!, "{migrationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -892,28 +664,20 @@ export const se_GetMigrationsCommand = async ( input: GetMigrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrations"; + b.bp("/migrations"); const query: any = map({ - sortByAttribute: [, input.sortByAttribute!], - sortByOrder: [, input.sortByOrder!], - v1BotNameContains: [, input.v1BotNameContains!], - migrationStatusEquals: [, input.migrationStatusEquals!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sBA]: [, input[_sBA]!], + [_sBO]: [, input[_sBO]!], + [_vBNC]: [, input[_vBNC]!], + [_mSE]: [, input[_mSE]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -923,22 +687,14 @@ export const se_GetSlotTypeCommand = async ( input: GetSlotTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions/{version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "version", () => input.version!, "{version}", false); + b.bp("/slottypes/{name}/versions/{version}"); + b.p("name", () => input.name!, "{name}", false); + b.p("version", () => input.version!, "{version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -948,25 +704,17 @@ export const se_GetSlotTypesCommand = async ( input: GetSlotTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes"; + b.bp("/slottypes"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nameContains: [, input.nameContains!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nC]: [, input[_nC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -976,26 +724,17 @@ export const se_GetSlotTypeVersionsCommand = async ( input: GetSlotTypeVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/slottypes/{name}/versions"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1005,30 +744,21 @@ export const se_GetUtterancesViewCommand = async ( input: GetUtterancesViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/utterances"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); + b.bp("/bots/{botName}/utterances"); + b.p("botName", () => input.botName!, "{botName}", false); const query: any = map({ - view: [, "aggregation"], - bot_versions: [ + [_vi]: [, "aggregation"], + [_bv]: [ __expectNonNull(input.botVersions, `botVersions`) != null, - () => (input.botVersions! || []).map((_entry) => _entry as any), + () => (input[_bV]! || []).map((_entry) => _entry as any), ], - status_type: [, __expectNonNull(input.statusType!, `statusType`)], + [_st]: [, __expectNonNull(input[_sT]!, `statusType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1038,33 +768,25 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1PutBotCommand */ export const se_PutBotCommand = async (input: PutBotCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions/$LATEST"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/bots/{name}/versions/$LATEST"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1085,15 +807,8 @@ export const se_PutBotCommand = async (input: PutBotCommandInput, context: __Ser voiceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1103,14 +818,13 @@ export const se_PutBotAliasCommand = async ( input: PutBotAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); + b.bp("/bots/{botName}/aliases/{name}"); + b.p("name", () => input.name!, "{name}", false); + b.p("botName", () => input.botName!, "{botName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1121,15 +835,8 @@ export const se_PutBotAliasCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1139,13 +846,12 @@ export const se_PutIntentCommand = async ( input: PutIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions/$LATEST"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/intents/{name}/versions/$LATEST"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1166,15 +872,8 @@ export const se_PutIntentCommand = async ( slots: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1184,13 +883,12 @@ export const se_PutSlotTypeCommand = async ( input: PutSlotTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions/$LATEST"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/slottypes/{name}/versions/$LATEST"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1203,15 +901,8 @@ export const se_PutSlotTypeCommand = async ( valueSelectionStrategy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1221,11 +912,11 @@ export const se_StartImportCommand = async ( input: StartImportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports"; + b.bp("/imports"); let body: any; body = JSON.stringify( take(input, { @@ -1235,15 +926,8 @@ export const se_StartImportCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1253,11 +937,11 @@ export const se_StartMigrationCommand = async ( input: StartMigrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrations"; + b.bp("/migrations"); let body: any; body = JSON.stringify( take(input, { @@ -1268,15 +952,8 @@ export const se_StartMigrationCommand = async ( v2BotRole: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1286,27 +963,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1316,27 +986,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3990,7 +3652,7 @@ const de_LimitExceededExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -4446,6 +4108,28 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _bV = "botVersions"; +const _bv = "bot_versions"; +const _eT = "exportType"; +const _l = "locale"; +const _mR = "maxResults"; +const _mSE = "migrationStatusEquals"; +const _n = "name"; +const _nC = "nameContains"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _rT = "resourceType"; +const _ra = "retry-after"; +const _sBA = "sortByAttribute"; +const _sBO = "sortByOrder"; +const _sC = "signatureContains"; +const _sT = "statusType"; +const _st = "status_type"; +const _tK = "tagKeys"; +const _v = "version"; +const _vBNC = "v1BotNameContains"; +const _vi = "view"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-lex-models-v2/package.json b/clients/client-lex-models-v2/package.json index b9cf09d3d5e3..bd61bb3b6f82 100644 --- a/clients/client-lex-models-v2/package.json +++ b/clients/client-lex-models-v2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts index dc4cbd81c6e9..b37d8dbb4a50 100644 --- a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -452,31 +453,22 @@ export const se_BatchCreateCustomVocabularyItemCommand = async ( input: BatchCreateCustomVocabularyItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchcreate"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchcreate"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { customVocabularyItemList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -486,31 +478,22 @@ export const se_BatchDeleteCustomVocabularyItemCommand = async ( input: BatchDeleteCustomVocabularyItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchdelete"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchdelete"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { customVocabularyItemList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -520,31 +503,22 @@ export const se_BatchUpdateCustomVocabularyItemCommand = async ( input: BatchUpdateCustomVocabularyItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchupdate"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchupdate"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { customVocabularyItemList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -554,24 +528,15 @@ export const se_BuildBotLocaleCommand = async ( input: BuildBotLocaleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -581,11 +546,11 @@ export const se_CreateBotCommand = async ( input: CreateBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots"; + b.bp("/bots"); let body: any; body = JSON.stringify( take(input, { @@ -600,15 +565,8 @@ export const se_CreateBotCommand = async ( testBotAliasTags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -618,12 +576,12 @@ export const se_CreateBotAliasCommand = async ( input: CreateBotAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/botaliases"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -636,15 +594,8 @@ export const se_CreateBotAliasCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -654,15 +605,13 @@ export const se_CreateBotLocaleCommand = async ( input: CreateBotLocaleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -673,15 +622,8 @@ export const se_CreateBotLocaleCommand = async ( voiceSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -691,13 +633,12 @@ export const se_CreateBotVersionCommand = async ( input: CreateBotVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/botversions"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -705,15 +646,8 @@ export const se_CreateBotVersionCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -723,11 +657,11 @@ export const se_CreateExportCommand = async ( input: CreateExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports"; + b.bp("/exports"); let body: any; body = JSON.stringify( take(input, { @@ -736,15 +670,8 @@ export const se_CreateExportCommand = async ( resourceSpecification: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -754,16 +681,14 @@ export const se_CreateIntentCommand = async ( input: CreateIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -781,15 +706,8 @@ export const se_CreateIntentCommand = async ( sampleUtterances: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -799,27 +717,20 @@ export const se_CreateResourcePolicyCommand = async ( input: CreateResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/policy/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -829,15 +740,14 @@ export const se_CreateResourcePolicyStatementCommand = async ( input: CreateResourcePolicyStatementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}/statements"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/policy/{resourceArn}/statements"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - expectedRevisionId: [, input.expectedRevisionId!], + [_eRI]: [, input[_eRI]!], }); let body: any; body = JSON.stringify( @@ -849,16 +759,8 @@ export const se_CreateResourcePolicyStatementCommand = async ( statementId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -868,17 +770,15 @@ export const se_CreateSlotCommand = async ( input: CreateSlotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("intentId", () => input.intentId!, "{intentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -891,15 +791,8 @@ export const se_CreateSlotCommand = async ( valueElicitationSetting: (_) => se_SlotValueElicitationSetting(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -909,16 +802,14 @@ export const se_CreateSlotTypeCommand = async ( input: CreateSlotTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -931,15 +822,8 @@ export const se_CreateSlotTypeCommand = async ( valueSelectionSetting: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -949,28 +833,20 @@ export const se_CreateTestSetDiscrepancyReportCommand = async ( input: CreateTestSetDiscrepancyReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/testsetdiscrepancy"; - resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId!, "{testSetId}", false); + b.bp("/testsets/{testSetId}/testsetdiscrepancy"); + b.p("testSetId", () => input.testSetId!, "{testSetId}", false); let body: any; body = JSON.stringify( take(input, { target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -980,22 +856,15 @@ export const se_CreateUploadUrlCommand = async ( input: CreateUploadUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createuploadurl"; + b.bp("/createuploadurl"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1005,27 +874,16 @@ export const se_DeleteBotCommand = async ( input: DeleteBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}"); + b.p("botId", () => input.botId!, "{botId}", false); const query: any = map({ - skipResourceInUseCheck: [ - () => input.skipResourceInUseCheck !== void 0, - () => input.skipResourceInUseCheck!.toString(), - ], + [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1035,29 +893,17 @@ export const se_DeleteBotAliasCommand = async ( input: DeleteBotAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/botaliases/{botAliasId}"); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("botId", () => input.botId!, "{botId}", false); const query: any = map({ - skipResourceInUseCheck: [ - () => input.skipResourceInUseCheck !== void 0, - () => input.skipResourceInUseCheck!.toString(), - ], + [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1067,24 +913,15 @@ export const se_DeleteBotLocaleCommand = async ( input: DeleteBotLocaleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1094,29 +931,17 @@ export const se_DeleteBotVersionCommand = async ( input: DeleteBotVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions/{botVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); + b.bp("/bots/{botId}/botversions/{botVersion}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); const query: any = map({ - skipResourceInUseCheck: [ - () => input.skipResourceInUseCheck !== void 0, - () => input.skipResourceInUseCheck!.toString(), - ], + [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1126,24 +951,15 @@ export const se_DeleteCustomVocabularyCommand = async ( input: DeleteCustomVocabularyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1153,20 +969,13 @@ export const se_DeleteExportCommand = async ( input: DeleteExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "exportId", () => input.exportId!, "{exportId}", false); + b.bp("/exports/{exportId}"); + b.p("exportId", () => input.exportId!, "{exportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1176,20 +985,13 @@ export const se_DeleteImportCommand = async ( input: DeleteImportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "importId", () => input.importId!, "{importId}", false); + b.bp("/imports/{importId}"); + b.p("importId", () => input.importId!, "{importId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1199,25 +1001,16 @@ export const se_DeleteIntentCommand = async ( input: DeleteIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}"); + b.p("intentId", () => input.intentId!, "{intentId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1227,24 +1020,16 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/policy/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - expectedRevisionId: [, input.expectedRevisionId!], + [_eRI]: [, input[_eRI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1254,27 +1039,17 @@ export const se_DeleteResourcePolicyStatementCommand = async ( input: DeleteResourcePolicyStatementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/policy/{resourceArn}/statements/{statementId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statementId", () => input.statementId!, "{statementId}", false); + b.bp("/policy/{resourceArn}/statements/{statementId}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.p("statementId", () => input.statementId!, "{statementId}", false); const query: any = map({ - expectedRevisionId: [, input.expectedRevisionId!], + [_eRI]: [, input[_eRI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1284,26 +1059,17 @@ export const se_DeleteSlotCommand = async ( input: DeleteSlotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "slotId", () => input.slotId!, "{slotId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}"); + b.p("slotId", () => input.slotId!, "{slotId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("intentId", () => input.intentId!, "{intentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1313,32 +1079,19 @@ export const se_DeleteSlotTypeCommand = async ( input: DeleteSlotTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "slotTypeId", () => input.slotTypeId!, "{slotTypeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}"); + b.p("slotTypeId", () => input.slotTypeId!, "{slotTypeId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); const query: any = map({ - skipResourceInUseCheck: [ - () => input.skipResourceInUseCheck !== void 0, - () => input.skipResourceInUseCheck!.toString(), - ], + [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1348,20 +1101,13 @@ export const se_DeleteTestSetCommand = async ( input: DeleteTestSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId!, "{testSetId}", false); + b.bp("/testsets/{testSetId}"); + b.p("testSetId", () => input.testSetId!, "{testSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1371,25 +1117,17 @@ export const se_DeleteUtterancesCommand = async ( input: DeleteUtterancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/utterances"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/utterances"); + b.p("botId", () => input.botId!, "{botId}", false); const query: any = map({ - localeId: [, input.localeId!], - sessionId: [, input.sessionId!], + [_lI]: [, input[_lI]!], + [_sI]: [, input[_sI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1399,20 +1137,13 @@ export const se_DescribeBotCommand = async ( input: DescribeBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1422,22 +1153,14 @@ export const se_DescribeBotAliasCommand = async ( input: DescribeBotAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/botaliases/{botAliasId}"); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1447,24 +1170,15 @@ export const se_DescribeBotLocaleCommand = async ( input: DescribeBotLocaleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1474,32 +1188,16 @@ export const se_DescribeBotRecommendationCommand = async ( input: DescribeBotRecommendationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "botRecommendationId", - () => input.botRecommendationId!, - "{botRecommendationId}", - false - ); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("botRecommendationId", () => input.botRecommendationId!, "{botRecommendationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1509,32 +1207,16 @@ export const se_DescribeBotResourceGenerationCommand = async ( input: DescribeBotResourceGenerationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations/{generationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "generationId", - () => input.generationId!, - "{generationId}", - false - ); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations/{generationId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("generationId", () => input.generationId!, "{generationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1544,22 +1226,14 @@ export const se_DescribeBotVersionCommand = async ( input: DescribeBotVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions/{botVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); + b.bp("/bots/{botId}/botversions/{botVersion}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1569,24 +1243,15 @@ export const se_DescribeCustomVocabularyMetadataCommand = async ( input: DescribeCustomVocabularyMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1596,20 +1261,13 @@ export const se_DescribeExportCommand = async ( input: DescribeExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "exportId", () => input.exportId!, "{exportId}", false); + b.bp("/exports/{exportId}"); + b.p("exportId", () => input.exportId!, "{exportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1619,20 +1277,13 @@ export const se_DescribeImportCommand = async ( input: DescribeImportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "importId", () => input.importId!, "{importId}", false); + b.bp("/imports/{importId}"); + b.p("importId", () => input.importId!, "{importId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1642,25 +1293,16 @@ export const se_DescribeIntentCommand = async ( input: DescribeIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}"); + b.p("intentId", () => input.intentId!, "{intentId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1670,20 +1312,13 @@ export const se_DescribeResourcePolicyCommand = async ( input: DescribeResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/policy/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1693,26 +1328,17 @@ export const se_DescribeSlotCommand = async ( input: DescribeSlotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "slotId", () => input.slotId!, "{slotId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}"); + b.p("slotId", () => input.slotId!, "{slotId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("intentId", () => input.intentId!, "{intentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1722,25 +1348,16 @@ export const se_DescribeSlotTypeCommand = async ( input: DescribeSlotTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "slotTypeId", () => input.slotTypeId!, "{slotTypeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}"); + b.p("slotTypeId", () => input.slotTypeId!, "{slotTypeId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1750,28 +1367,13 @@ export const se_DescribeTestExecutionCommand = async ( input: DescribeTestExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions/{testExecutionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "testExecutionId", - () => input.testExecutionId!, - "{testExecutionId}", - false - ); + b.bp("/testexecutions/{testExecutionId}"); + b.p("testExecutionId", () => input.testExecutionId!, "{testExecutionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1781,20 +1383,13 @@ export const se_DescribeTestSetCommand = async ( input: DescribeTestSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId!, "{testSetId}", false); + b.bp("/testsets/{testSetId}"); + b.p("testSetId", () => input.testSetId!, "{testSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1804,29 +1399,13 @@ export const se_DescribeTestSetDiscrepancyReportCommand = async ( input: DescribeTestSetDiscrepancyReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/testsetdiscrepancy/{testSetDiscrepancyReportId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "testSetDiscrepancyReportId", - () => input.testSetDiscrepancyReportId!, - "{testSetDiscrepancyReportId}", - false - ); + b.bp("/testsetdiscrepancy/{testSetDiscrepancyReportId}"); + b.p("testSetDiscrepancyReportId", () => input.testSetDiscrepancyReportId!, "{testSetDiscrepancyReportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1836,28 +1415,13 @@ export const se_DescribeTestSetGenerationCommand = async ( input: DescribeTestSetGenerationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsetgenerations/{testSetGenerationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "testSetGenerationId", - () => input.testSetGenerationId!, - "{testSetGenerationId}", - false - ); + b.bp("/testsetgenerations/{testSetGenerationId}"); + b.p("testSetGenerationId", () => input.testSetGenerationId!, "{testSetGenerationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1867,31 +1431,22 @@ export const se_GenerateBotElementCommand = async ( input: GenerateBotElementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { intentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1901,29 +1456,13 @@ export const se_GetTestExecutionArtifactsUrlCommand = async ( input: GetTestExecutionArtifactsUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/testexecutions/{testExecutionId}/artifacturl"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "testExecutionId", - () => input.testExecutionId!, - "{testExecutionId}", - false - ); + b.bp("/testexecutions/{testExecutionId}/artifacturl"); + b.p("testExecutionId", () => input.testExecutionId!, "{testExecutionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1933,13 +1472,12 @@ export const se_ListAggregatedUtterancesCommand = async ( input: ListAggregatedUtterancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/aggregatedutterances"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/aggregatedutterances"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1953,15 +1491,8 @@ export const se_ListAggregatedUtterancesCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1971,12 +1502,12 @@ export const se_ListBotAliasesCommand = async ( input: ListBotAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/botaliases"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1984,15 +1515,8 @@ export const se_ListBotAliasesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2002,15 +1526,13 @@ export const se_ListBotLocalesCommand = async ( input: ListBotLocalesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -2020,15 +1542,8 @@ export const se_ListBotLocalesCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2038,16 +1553,14 @@ export const se_ListBotRecommendationsCommand = async ( input: ListBotRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2055,15 +1568,8 @@ export const se_ListBotRecommendationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2073,16 +1579,14 @@ export const se_ListBotResourceGenerationsCommand = async ( input: ListBotResourceGenerationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2091,15 +1595,8 @@ export const se_ListBotResourceGenerationsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2109,11 +1606,11 @@ export const se_ListBotsCommand = async ( input: ListBotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots"; + b.bp("/bots"); let body: any; body = JSON.stringify( take(input, { @@ -2123,15 +1620,8 @@ export const se_ListBotsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2141,13 +1631,12 @@ export const se_ListBotVersionsCommand = async ( input: ListBotVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botversions"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/botversions"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2156,15 +1645,8 @@ export const se_ListBotVersionsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2174,13 +1656,12 @@ export const se_ListBuiltInIntentsCommand = async ( input: ListBuiltInIntentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/locales/{localeId}/intents"; - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/builtins/locales/{localeId}/intents"); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2189,15 +1670,8 @@ export const se_ListBuiltInIntentsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2207,13 +1681,12 @@ export const se_ListBuiltInSlotTypesCommand = async ( input: ListBuiltInSlotTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/locales/{localeId}/slottypes"; - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/builtins/locales/{localeId}/slottypes"); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2222,15 +1695,8 @@ export const se_ListBuiltInSlotTypesCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2240,16 +1706,14 @@ export const se_ListCustomVocabularyItemsCommand = async ( input: ListCustomVocabularyItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/list"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/list"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2257,15 +1721,8 @@ export const se_ListCustomVocabularyItemsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2275,11 +1732,11 @@ export const se_ListExportsCommand = async ( input: ListExportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports"; + b.bp("/exports"); let body: any; body = JSON.stringify( take(input, { @@ -2292,15 +1749,8 @@ export const se_ListExportsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2310,11 +1760,11 @@ export const se_ListImportsCommand = async ( input: ListImportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports"; + b.bp("/imports"); let body: any; body = JSON.stringify( take(input, { @@ -2327,15 +1777,8 @@ export const se_ListImportsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2345,13 +1788,12 @@ export const se_ListIntentMetricsCommand = async ( input: ListIntentMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/intentmetrics"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/analytics/intentmetrics"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2365,15 +1807,8 @@ export const se_ListIntentMetricsCommand = async ( startDateTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2383,13 +1818,12 @@ export const se_ListIntentPathsCommand = async ( input: ListIntentPathsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/intentpaths"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/analytics/intentpaths"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2399,15 +1833,8 @@ export const se_ListIntentPathsCommand = async ( startDateTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2417,16 +1844,14 @@ export const se_ListIntentsCommand = async ( input: ListIntentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2436,15 +1861,8 @@ export const se_ListIntentsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2454,14 +1872,12 @@ export const se_ListIntentStageMetricsCommand = async ( input: ListIntentStageMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/analytics/intentstagemetrics"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/analytics/intentstagemetrics"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2475,15 +1891,8 @@ export const se_ListIntentStageMetricsCommand = async ( startDateTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2493,24 +1902,15 @@ export const se_ListRecommendedIntentsCommand = async ( input: ListRecommendedIntentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "botRecommendationId", - () => input.botRecommendationId!, - "{botRecommendationId}", - false - ); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("botRecommendationId", () => input.botRecommendationId!, "{botRecommendationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2518,15 +1918,8 @@ export const se_ListRecommendedIntentsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2536,13 +1929,12 @@ export const se_ListSessionAnalyticsDataCommand = async ( input: ListSessionAnalyticsDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/sessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/analytics/sessions"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2554,15 +1946,8 @@ export const se_ListSessionAnalyticsDataCommand = async ( startDateTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2572,13 +1957,12 @@ export const se_ListSessionMetricsCommand = async ( input: ListSessionMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/sessionmetrics"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/analytics/sessionmetrics"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2592,15 +1976,8 @@ export const se_ListSessionMetricsCommand = async ( startDateTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2610,17 +1987,15 @@ export const se_ListSlotsCommand = async ( input: ListSlotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("intentId", () => input.intentId!, "{intentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2630,15 +2005,8 @@ export const se_ListSlotsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2648,16 +2016,14 @@ export const se_ListSlotTypesCommand = async ( input: ListSlotTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2667,15 +2033,8 @@ export const se_ListSlotTypesCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2685,20 +2044,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceARN", () => input.resourceARN!, "{resourceARN}", false); + b.bp("/tags/{resourceARN}"); + b.p("resourceARN", () => input.resourceARN!, "{resourceARN}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2708,20 +2060,12 @@ export const se_ListTestExecutionResultItemsCommand = async ( input: ListTestExecutionResultItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions/{testExecutionId}/results"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "testExecutionId", - () => input.testExecutionId!, - "{testExecutionId}", - false - ); + b.bp("/testexecutions/{testExecutionId}/results"); + b.p("testExecutionId", () => input.testExecutionId!, "{testExecutionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2730,15 +2074,8 @@ export const se_ListTestExecutionResultItemsCommand = async ( resultFilterBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2748,11 +2085,11 @@ export const se_ListTestExecutionsCommand = async ( input: ListTestExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions"; + b.bp("/testexecutions"); let body: any; body = JSON.stringify( take(input, { @@ -2761,15 +2098,8 @@ export const se_ListTestExecutionsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2779,13 +2109,12 @@ export const se_ListTestSetRecordsCommand = async ( input: ListTestSetRecordsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/records"; - resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId!, "{testSetId}", false); + b.bp("/testsets/{testSetId}/records"); + b.p("testSetId", () => input.testSetId!, "{testSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2793,15 +2122,8 @@ export const se_ListTestSetRecordsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2811,11 +2133,11 @@ export const se_ListTestSetsCommand = async ( input: ListTestSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets"; + b.bp("/testsets"); let body: any; body = JSON.stringify( take(input, { @@ -2824,15 +2146,8 @@ export const se_ListTestSetsCommand = async ( sortBy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2842,13 +2157,12 @@ export const se_ListUtteranceAnalyticsDataCommand = async ( input: ListUtteranceAnalyticsDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/utterances"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/analytics/utterances"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2860,15 +2174,8 @@ export const se_ListUtteranceAnalyticsDataCommand = async ( startDateTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2878,13 +2185,12 @@ export const se_ListUtteranceMetricsCommand = async ( input: ListUtteranceMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/analytics/utterancemetrics"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/analytics/utterancemetrics"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2899,15 +2205,8 @@ export const se_ListUtteranceMetricsCommand = async ( startDateTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2917,24 +2216,17 @@ export const se_SearchAssociatedTranscriptsCommand = async ( input: SearchAssociatedTranscriptsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "botRecommendationId", - () => input.botRecommendationId!, - "{botRecommendationId}", - false + b.bp( + "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts" ); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("botRecommendationId", () => input.botRecommendationId!, "{botRecommendationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2944,15 +2236,8 @@ export const se_SearchAssociatedTranscriptsCommand = async ( searchOrder: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2962,16 +2247,14 @@ export const se_StartBotRecommendationCommand = async ( input: StartBotRecommendationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2979,15 +2262,8 @@ export const se_StartBotRecommendationCommand = async ( transcriptSourceSetting: (_) => se_TranscriptSourceSetting(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2997,31 +2273,22 @@ export const se_StartBotResourceGenerationCommand = async ( input: StartBotResourceGenerationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/startgeneration"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/startgeneration"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { generationInputPrompt: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3031,11 +2298,11 @@ export const se_StartImportCommand = async ( input: StartImportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports"; + b.bp("/imports"); let body: any; body = JSON.stringify( take(input, { @@ -3045,15 +2312,8 @@ export const se_StartImportCommand = async ( resourceSpecification: (_) => se_ImportResourceSpecification(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3063,13 +2323,12 @@ export const se_StartTestExecutionCommand = async ( input: StartTestExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/testexecutions"; - resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId!, "{testSetId}", false); + b.bp("/testsets/{testSetId}/testexecutions"); + b.p("testSetId", () => input.testSetId!, "{testSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3078,15 +2337,8 @@ export const se_StartTestExecutionCommand = async ( testExecutionModality: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3096,11 +2348,11 @@ export const se_StartTestSetGenerationCommand = async ( input: StartTestSetGenerationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsetgenerations"; + b.bp("/testsetgenerations"); let body: any; body = JSON.stringify( take(input, { @@ -3112,15 +2364,8 @@ export const se_StartTestSetGenerationCommand = async ( testSetTags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3130,32 +2375,18 @@ export const se_StopBotRecommendationCommand = async ( input: StopBotRecommendationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "botRecommendationId", - () => input.botRecommendationId!, - "{botRecommendationId}", - false + b.bp( + "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation" ); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("botRecommendationId", () => input.botRecommendationId!, "{botRecommendationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3165,27 +2396,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceARN", () => input.resourceARN!, "{resourceARN}", false); + b.bp("/tags/{resourceARN}"); + b.p("resourceARN", () => input.resourceARN!, "{resourceARN}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3195,27 +2419,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceARN}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceARN", () => input.resourceARN!, "{resourceARN}", false); + b.bp("/tags/{resourceARN}"); + b.p("resourceARN", () => input.resourceARN!, "{resourceARN}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3225,12 +2441,12 @@ export const se_UpdateBotCommand = async ( input: UpdateBotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}"); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3243,15 +2459,8 @@ export const se_UpdateBotCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3261,14 +2470,13 @@ export const se_UpdateBotAliasCommand = async ( input: UpdateBotAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botId}/botaliases/{botAliasId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); + b.bp("/bots/{botId}/botaliases/{botAliasId}"); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("botId", () => input.botId!, "{botId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3280,15 +2488,8 @@ export const se_UpdateBotAliasCommand = async ( sentimentAnalysisSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3298,16 +2499,14 @@ export const se_UpdateBotLocaleCommand = async ( input: UpdateBotLocaleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3317,15 +2516,8 @@ export const se_UpdateBotLocaleCommand = async ( voiceSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3335,39 +2527,23 @@ export const se_UpdateBotRecommendationCommand = async ( input: UpdateBotRecommendationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "botRecommendationId", - () => input.botRecommendationId!, - "{botRecommendationId}", - false - ); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("botRecommendationId", () => input.botRecommendationId!, "{botRecommendationId}", false); let body: any; body = JSON.stringify( take(input, { encryptionSetting: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3377,27 +2553,20 @@ export const se_UpdateExportCommand = async ( input: UpdateExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{exportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "exportId", () => input.exportId!, "{exportId}", false); + b.bp("/exports/{exportId}"); + b.p("exportId", () => input.exportId!, "{exportId}", false); let body: any; body = JSON.stringify( take(input, { filePassword: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3407,17 +2576,15 @@ export const se_UpdateIntentCommand = async ( input: UpdateIntentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}"); + b.p("intentId", () => input.intentId!, "{intentId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3436,15 +2603,8 @@ export const se_UpdateIntentCommand = async ( slotPriorities: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3454,14 +2614,14 @@ export const se_UpdateResourcePolicyCommand = async ( input: UpdateResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/policy/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - expectedRevisionId: [, input.expectedRevisionId!], + [_eRI]: [, input[_eRI]!], }); let body: any; body = JSON.stringify( @@ -3469,16 +2629,8 @@ export const se_UpdateResourcePolicyCommand = async ( policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3488,18 +2640,16 @@ export const se_UpdateSlotCommand = async ( input: UpdateSlotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "slotId", () => input.slotId!, "{slotId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "intentId", () => input.intentId!, "{intentId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}"); + b.p("slotId", () => input.slotId!, "{slotId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("intentId", () => input.intentId!, "{intentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3512,15 +2662,8 @@ export const se_UpdateSlotCommand = async ( valueElicitationSetting: (_) => se_SlotValueElicitationSetting(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3530,17 +2673,15 @@ export const se_UpdateSlotTypeCommand = async ( input: UpdateSlotTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "slotTypeId", () => input.slotTypeId!, "{slotTypeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", () => input.botVersion!, "{botVersion}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); + b.bp("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}"); + b.p("slotTypeId", () => input.slotTypeId!, "{slotTypeId}", false); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botVersion", () => input.botVersion!, "{botVersion}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3553,15 +2694,8 @@ export const se_UpdateSlotTypeCommand = async ( valueSelectionSetting: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3571,12 +2705,12 @@ export const se_UpdateTestSetCommand = async ( input: UpdateTestSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "testSetId", () => input.testSetId!, "{testSetId}", false); + b.bp("/testsets/{testSetId}"); + b.p("testSetId", () => input.testSetId!, "{testSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3584,15 +2718,8 @@ export const se_UpdateTestSetCommand = async ( testSetName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -9875,10 +9002,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -12355,6 +11479,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _eRI = "expectedRevisionId"; +const _lI = "localeId"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _sI = "sessionId"; +const _sRIUC = "skipResourceInUseCheck"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-lex-runtime-service/package.json b/clients/client-lex-runtime-service/package.json index e7721cf36a2b..db980fd5f614 100644 --- a/clients/client-lex-runtime-service/package.json +++ b/clients/client-lex-runtime-service/package.json @@ -36,6 +36,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-lex-runtime-service/src/models/models_0.ts b/clients/client-lex-runtime-service/src/models/models_0.ts index 5a0dfa0d9ea0..bf53328b6b46 100644 --- a/clients/client-lex-runtime-service/src/models/models_0.ts +++ b/clients/client-lex-runtime-service/src/models/models_0.ts @@ -4,6 +4,7 @@ import { LazyJsonString as __LazyJsonString, SENSITIVE_STRING, } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException"; diff --git a/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts index 397161f34fd8..38d1be8e3baa 100644 --- a/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -55,24 +56,15 @@ export const se_DeleteSessionCommand = async ( input: DeleteSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bot/{botName}/alias/{botAlias}/user/{userId}/session"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/bot/{botName}/alias/{botAlias}/user/{userId}/session"); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -82,28 +74,18 @@ export const se_GetSessionCommand = async ( input: GetSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bot/{botName}/alias/{botAlias}/user/{userId}/session"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/bot/{botName}/alias/{botAlias}/user/{userId}/session"); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); + b.p("userId", () => input.userId!, "{userId}", false); const query: any = map({ - checkpointLabelFilter: [, input.checkpointLabelFilter!], + [_cLF]: [, input[_cLF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -113,43 +95,34 @@ export const se_PostContentCommand = async ( input: PostContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", - "content-type": input.contentType! || "application/octet-stream", - "x-amz-lex-session-attributes": [ - () => isSerializableHeaderValue(input.sessionAttributes), - () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.sessionAttributes!))), + [_ct]: input[_cT]! || "application/octet-stream", + [_xalsa]: [ + () => isSerializableHeaderValue(input[_sA]), + () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input[_sA]!))), ], - "x-amz-lex-request-attributes": [ - () => isSerializableHeaderValue(input.requestAttributes), - () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.requestAttributes!))), + [_xalra]: [ + () => isSerializableHeaderValue(input[_rA]), + () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input[_rA]!))), ], - accept: input.accept!, - "x-amz-lex-active-contexts": [ - () => isSerializableHeaderValue(input.activeContexts), - () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.activeContexts!))), + [_a]: input[_a]!, + [_xalac]: [ + () => isSerializableHeaderValue(input[_aC]), + () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input[_aC]!))), ], }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bot/{botName}/alias/{botAlias}/user/{userId}/content"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/bot/{botName}/alias/{botAlias}/user/{userId}/content"); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; if (input.inputStream !== undefined) { body = input.inputStream; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -159,16 +132,14 @@ export const se_PostTextCommand = async ( input: PostTextCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bot/{botName}/alias/{botAlias}/user/{userId}/text"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/bot/{botName}/alias/{botAlias}/user/{userId}/text"); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { @@ -178,15 +149,8 @@ export const se_PostTextCommand = async ( sessionAttributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -196,17 +160,15 @@ export const se_PutSessionCommand = async ( input: PutSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - accept: input.accept!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bot/{botName}/alias/{botAlias}/user/{userId}/session"; - resolvedPath = __resolvedPath(resolvedPath, input, "botName", () => input.botName!, "{botName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAlias", () => input.botAlias!, "{botAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + [_a]: input[_a]!, + }); + b.bp("/bot/{botName}/alias/{botAlias}/user/{userId}/session"); + b.p("botName", () => input.botName!, "{botName}", false); + b.p("botAlias", () => input.botAlias!, "{botAlias}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { @@ -216,15 +178,8 @@ export const se_PutSessionCommand = async ( sessionAttributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -361,50 +316,37 @@ export const de_PostContentCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], - intentName: [, output.headers["x-amz-lex-intent-name"]], - nluIntentConfidence: [ - () => void 0 !== output.headers["x-amz-lex-nlu-intent-confidence"], - () => - new __LazyJsonString( - Buffer.from(context.base64Decoder(output.headers["x-amz-lex-nlu-intent-confidence"])).toString("utf8") - ), + [_cT]: [, output.headers[_ct]], + [_iN]: [, output.headers[_xalin]], + [_nIC]: [ + () => void 0 !== output.headers[_xalnic], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xalnic])).toString("utf8")), ], - alternativeIntents: [ - () => void 0 !== output.headers["x-amz-lex-alternative-intents"], - () => - new __LazyJsonString( - Buffer.from(context.base64Decoder(output.headers["x-amz-lex-alternative-intents"])).toString("utf8") - ), + [_aI]: [ + () => void 0 !== output.headers[_xalai], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xalai])).toString("utf8")), ], - slots: [ - () => void 0 !== output.headers["x-amz-lex-slots"], - () => - new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers["x-amz-lex-slots"])).toString("utf8")), + [_s]: [ + () => void 0 !== output.headers[_xals], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xals])).toString("utf8")), ], - sessionAttributes: [ - () => void 0 !== output.headers["x-amz-lex-session-attributes"], - () => - new __LazyJsonString( - Buffer.from(context.base64Decoder(output.headers["x-amz-lex-session-attributes"])).toString("utf8") - ), + [_sA]: [ + () => void 0 !== output.headers[_xalsa], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xalsa])).toString("utf8")), ], - sentimentResponse: [, output.headers["x-amz-lex-sentiment"]], - message: [, output.headers["x-amz-lex-message"]], - encodedMessage: [, output.headers["x-amz-lex-encoded-message"]], - messageFormat: [, output.headers["x-amz-lex-message-format"]], - dialogState: [, output.headers["x-amz-lex-dialog-state"]], - slotToElicit: [, output.headers["x-amz-lex-slot-to-elicit"]], - inputTranscript: [, output.headers["x-amz-lex-input-transcript"]], - encodedInputTranscript: [, output.headers["x-amz-lex-encoded-input-transcript"]], - botVersion: [, output.headers["x-amz-lex-bot-version"]], - sessionId: [, output.headers["x-amz-lex-session-id"]], - activeContexts: [ - () => void 0 !== output.headers["x-amz-lex-active-contexts"], - () => - new __LazyJsonString( - Buffer.from(context.base64Decoder(output.headers["x-amz-lex-active-contexts"])).toString("utf8") - ), + [_sR]: [, output.headers[_xals_]], + [_m]: [, output.headers[_xalm]], + [_eM]: [, output.headers[_xalem]], + [_mF]: [, output.headers[_xalmf]], + [_dS]: [, output.headers[_xalds]], + [_sTE]: [, output.headers[_xalste]], + [_iT]: [, output.headers[_xalit]], + [_eIT]: [, output.headers[_xaleit]], + [_bV]: [, output.headers[_xalbv]], + [_sI]: [, output.headers[_xalsi]], + [_aC]: [ + () => void 0 !== output.headers[_xalac], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xalac])).toString("utf8")), ], }); const data: any = output.body; @@ -562,32 +504,25 @@ export const de_PutSessionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], - intentName: [, output.headers["x-amz-lex-intent-name"]], - slots: [ - () => void 0 !== output.headers["x-amz-lex-slots"], - () => - new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers["x-amz-lex-slots"])).toString("utf8")), + [_cT]: [, output.headers[_ct]], + [_iN]: [, output.headers[_xalin]], + [_s]: [ + () => void 0 !== output.headers[_xals], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xals])).toString("utf8")), ], - sessionAttributes: [ - () => void 0 !== output.headers["x-amz-lex-session-attributes"], - () => - new __LazyJsonString( - Buffer.from(context.base64Decoder(output.headers["x-amz-lex-session-attributes"])).toString("utf8") - ), + [_sA]: [ + () => void 0 !== output.headers[_xalsa], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xalsa])).toString("utf8")), ], - message: [, output.headers["x-amz-lex-message"]], - encodedMessage: [, output.headers["x-amz-lex-encoded-message"]], - messageFormat: [, output.headers["x-amz-lex-message-format"]], - dialogState: [, output.headers["x-amz-lex-dialog-state"]], - slotToElicit: [, output.headers["x-amz-lex-slot-to-elicit"]], - sessionId: [, output.headers["x-amz-lex-session-id"]], - activeContexts: [ - () => void 0 !== output.headers["x-amz-lex-active-contexts"], - () => - new __LazyJsonString( - Buffer.from(context.base64Decoder(output.headers["x-amz-lex-active-contexts"])).toString("utf8") - ), + [_m]: [, output.headers[_xalm]], + [_eM]: [, output.headers[_xalem]], + [_mF]: [, output.headers[_xalmf]], + [_dS]: [, output.headers[_xalds]], + [_sTE]: [, output.headers[_xalste]], + [_sI]: [, output.headers[_xalsi]], + [_aC]: [ + () => void 0 !== output.headers[_xalac], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xalac])).toString("utf8")), ], }); const data: any = output.body; @@ -743,7 +678,7 @@ const de_LimitExceededExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -949,6 +884,47 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "accept"; +const _aC = "activeContexts"; +const _aI = "alternativeIntents"; +const _bV = "botVersion"; +const _cLF = "checkpointLabelFilter"; +const _cT = "contentType"; +const _ct = "content-type"; +const _dS = "dialogState"; +const _eIT = "encodedInputTranscript"; +const _eM = "encodedMessage"; +const _iN = "intentName"; +const _iT = "inputTranscript"; +const _m = "message"; +const _mF = "messageFormat"; +const _nIC = "nluIntentConfidence"; +const _rA = "requestAttributes"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _s = "slots"; +const _sA = "sessionAttributes"; +const _sI = "sessionId"; +const _sR = "sentimentResponse"; +const _sTE = "slotToElicit"; +const _xalac = "x-amz-lex-active-contexts"; +const _xalai = "x-amz-lex-alternative-intents"; +const _xalbv = "x-amz-lex-bot-version"; +const _xalds = "x-amz-lex-dialog-state"; +const _xaleit = "x-amz-lex-encoded-input-transcript"; +const _xalem = "x-amz-lex-encoded-message"; +const _xalin = "x-amz-lex-intent-name"; +const _xalit = "x-amz-lex-input-transcript"; +const _xalm = "x-amz-lex-message"; +const _xalmf = "x-amz-lex-message-format"; +const _xalnic = "x-amz-lex-nlu-intent-confidence"; +const _xalra = "x-amz-lex-request-attributes"; +const _xals = "x-amz-lex-slots"; +const _xals_ = "x-amz-lex-sentiment"; +const _xalsa = "x-amz-lex-session-attributes"; +const _xalsi = "x-amz-lex-session-id"; +const _xalste = "x-amz-lex-slot-to-elicit"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-lex-runtime-v2/package.json b/clients/client-lex-runtime-v2/package.json index ee9488a19d89..c32a53cfcc7f 100644 --- a/clients/client-lex-runtime-v2/package.json +++ b/clients/client-lex-runtime-v2/package.json @@ -36,6 +36,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-lex-runtime-v2/src/models/models_0.ts b/clients/client-lex-runtime-v2/src/models/models_0.ts index 71c66e1aca8d..53e3d5009109 100644 --- a/clients/client-lex-runtime-v2/src/models/models_0.ts +++ b/clients/client-lex-runtime-v2/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException"; diff --git a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts index 90894fc19043..792de9298c17 100644 --- a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -80,25 +81,16 @@ export const se_DeleteSessionCommand = async ( input: DeleteSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -108,25 +100,16 @@ export const se_GetSessionCommand = async ( input: GetSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -136,18 +119,16 @@ export const se_PutSessionCommand = async ( input: PutSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - responsecontenttype: input.responseContentType!, + [_r]: input[_rCT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -156,15 +137,8 @@ export const se_PutSessionCommand = async ( sessionState: (_) => se_SessionState(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -174,17 +148,15 @@ export const se_RecognizeTextCommand = async ( input: RecognizeTextCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -193,15 +165,8 @@ export const se_RecognizeTextCommand = async ( text: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -211,34 +176,25 @@ export const se_RecognizeUtteranceCommand = async ( input: RecognizeUtteranceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", - "content-type": input.requestContentType! || "application/octet-stream", - "x-amz-lex-session-state": input.sessionState!, - "x-amz-lex-request-attributes": input.requestAttributes!, - "response-content-type": input.responseContentType!, + [_ct]: input[_rCTe]! || "application/octet-stream", + [_xalss]: input[_sS]!, + [_xalra]: input[_rA]!, + [_rct]: input[_rCT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; if (input.inputStream !== undefined) { body = input.inputStream; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -248,30 +204,21 @@ export const se_StartConversationCommand = async ( input: StartConversationCommandInput, context: __SerdeContext & __EventStreamSerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-lex-conversation-mode": input.conversationMode!, + [_xalcm]: input[_cM]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation"; - resolvedPath = __resolvedPath(resolvedPath, input, "botId", () => input.botId!, "{botId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "botAliasId", () => input.botAliasId!, "{botAliasId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "localeId", () => input.localeId!, "{localeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation"); + b.p("botId", () => input.botId!, "{botId}", false); + b.p("botAliasId", () => input.botAliasId!, "{botAliasId}", false); + b.p("localeId", () => input.localeId!, "{localeId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; if (input.requestEventStream !== undefined) { body = se_StartConversationRequestEventStream(input.requestEventStream, context); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -413,11 +360,11 @@ export const de_PutSessionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], - messages: [, output.headers["x-amz-lex-messages"]], - sessionState: [, output.headers["x-amz-lex-session-state"]], - requestAttributes: [, output.headers["x-amz-lex-request-attributes"]], - sessionId: [, output.headers["x-amz-lex-session-id"]], + [_cT]: [, output.headers[_ct]], + [_m]: [, output.headers[_xalm]], + [_sS]: [, output.headers[_xalss]], + [_rA]: [, output.headers[_xalra]], + [_sI]: [, output.headers[_xalsi]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -557,15 +504,15 @@ export const de_RecognizeUtteranceCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - inputMode: [, output.headers["x-amz-lex-input-mode"]], - contentType: [, output.headers["content-type"]], - messages: [, output.headers["x-amz-lex-messages"]], - interpretations: [, output.headers["x-amz-lex-interpretations"]], - sessionState: [, output.headers["x-amz-lex-session-state"]], - requestAttributes: [, output.headers["x-amz-lex-request-attributes"]], - sessionId: [, output.headers["x-amz-lex-session-id"]], - inputTranscript: [, output.headers["x-amz-lex-input-transcript"]], - recognizedBotMember: [, output.headers["x-amz-lex-recognized-bot-member"]], + [_iM]: [, output.headers[_xalim]], + [_cT]: [, output.headers[_ct]], + [_m]: [, output.headers[_xalm]], + [_i]: [, output.headers[_xali]], + [_sS]: [, output.headers[_xalss]], + [_rA]: [, output.headers[_xalra]], + [_sI]: [, output.headers[_xalsi]], + [_iT]: [, output.headers[_xalit]], + [_rBM]: [, output.headers[_xalrbm]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -1570,6 +1517,31 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cM = "conversationMode"; +const _cT = "contentType"; +const _ct = "content-type"; +const _i = "interpretations"; +const _iM = "inputMode"; +const _iT = "inputTranscript"; +const _m = "messages"; +const _r = "responsecontenttype"; +const _rA = "requestAttributes"; +const _rBM = "recognizedBotMember"; +const _rCT = "responseContentType"; +const _rCTe = "requestContentType"; +const _rct = "response-content-type"; +const _sI = "sessionId"; +const _sS = "sessionState"; +const _xalcm = "x-amz-lex-conversation-mode"; +const _xali = "x-amz-lex-interpretations"; +const _xalim = "x-amz-lex-input-mode"; +const _xalit = "x-amz-lex-input-transcript"; +const _xalm = "x-amz-lex-messages"; +const _xalra = "x-amz-lex-request-attributes"; +const _xalrbm = "x-amz-lex-recognized-bot-member"; +const _xalsi = "x-amz-lex-session-id"; +const _xalss = "x-amz-lex-session-state"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-license-manager-linux-subscriptions/package.json b/clients/client-license-manager-linux-subscriptions/package.json index 19c5026c91f9..d9e1982bfa41 100644 --- a/clients/client-license-manager-linux-subscriptions/package.json +++ b/clients/client-license-manager-linux-subscriptions/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts b/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts index 7abdad40fd81..626945b43c78 100644 --- a/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts +++ b/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -46,23 +47,15 @@ export const se_GetServiceSettingsCommand = async ( input: GetServiceSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subscription/GetServiceSettings"; + b.bp("/subscription/GetServiceSettings"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -72,13 +65,11 @@ export const se_ListLinuxSubscriptionInstancesCommand = async ( input: ListLinuxSubscriptionInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/subscription/ListLinuxSubscriptionInstances"; + b.bp("/subscription/ListLinuxSubscriptionInstances"); let body: any; body = JSON.stringify( take(input, { @@ -87,15 +78,8 @@ export const se_ListLinuxSubscriptionInstancesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -105,12 +89,11 @@ export const se_ListLinuxSubscriptionsCommand = async ( input: ListLinuxSubscriptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subscription/ListLinuxSubscriptions"; + b.bp("/subscription/ListLinuxSubscriptions"); let body: any; body = JSON.stringify( take(input, { @@ -119,15 +102,8 @@ export const se_ListLinuxSubscriptionsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -137,12 +113,11 @@ export const se_UpdateServiceSettingsCommand = async ( input: UpdateServiceSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subscription/UpdateServiceSettings"; + b.bp("/subscription/UpdateServiceSettings"); let body: any; body = JSON.stringify( take(input, { @@ -151,15 +126,8 @@ export const se_UpdateServiceSettingsCommand = async ( LinuxSubscriptionsDiscoverySettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-license-manager-user-subscriptions/package.json b/clients/client-license-manager-user-subscriptions/package.json index c9fb4aa45a75..89961220e0f7 100644 --- a/clients/client-license-manager-user-subscriptions/package.json +++ b/clients/client-license-manager-user-subscriptions/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-license-manager-user-subscriptions/src/protocols/Aws_restJson1.ts b/clients/client-license-manager-user-subscriptions/src/protocols/Aws_restJson1.ts index 4cefdf04d5f7..fb5aa16e87a8 100644 --- a/clients/client-license-manager-user-subscriptions/src/protocols/Aws_restJson1.ts +++ b/clients/client-license-manager-user-subscriptions/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -75,11 +76,11 @@ export const se_AssociateUserCommand = async ( input: AssociateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/AssociateUser"; + b.bp("/user/AssociateUser"); let body: any; body = JSON.stringify( take(input, { @@ -89,15 +90,8 @@ export const se_AssociateUserCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -107,13 +101,11 @@ export const se_DeregisterIdentityProviderCommand = async ( input: DeregisterIdentityProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identity-provider/DeregisterIdentityProvider"; + b.bp("/identity-provider/DeregisterIdentityProvider"); let body: any; body = JSON.stringify( take(input, { @@ -121,15 +113,8 @@ export const se_DeregisterIdentityProviderCommand = async ( Product: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -139,11 +124,11 @@ export const se_DisassociateUserCommand = async ( input: DisassociateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/DisassociateUser"; + b.bp("/user/DisassociateUser"); let body: any; body = JSON.stringify( take(input, { @@ -153,15 +138,8 @@ export const se_DisassociateUserCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -171,12 +149,11 @@ export const se_ListIdentityProvidersCommand = async ( input: ListIdentityProvidersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identity-provider/ListIdentityProviders"; + b.bp("/identity-provider/ListIdentityProviders"); let body: any; body = JSON.stringify( take(input, { @@ -184,15 +161,8 @@ export const se_ListIdentityProvidersCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -202,12 +172,11 @@ export const se_ListInstancesCommand = async ( input: ListInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/ListInstances"; + b.bp("/instance/ListInstances"); let body: any; body = JSON.stringify( take(input, { @@ -216,15 +185,8 @@ export const se_ListInstancesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -234,12 +196,11 @@ export const se_ListProductSubscriptionsCommand = async ( input: ListProductSubscriptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListProductSubscriptions"; + b.bp("/user/ListProductSubscriptions"); let body: any; body = JSON.stringify( take(input, { @@ -250,15 +211,8 @@ export const se_ListProductSubscriptionsCommand = async ( Product: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -268,12 +222,11 @@ export const se_ListUserAssociationsCommand = async ( input: ListUserAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListUserAssociations"; + b.bp("/user/ListUserAssociations"); let body: any; body = JSON.stringify( take(input, { @@ -284,15 +237,8 @@ export const se_ListUserAssociationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -302,13 +248,11 @@ export const se_RegisterIdentityProviderCommand = async ( input: RegisterIdentityProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identity-provider/RegisterIdentityProvider"; + b.bp("/identity-provider/RegisterIdentityProvider"); let body: any; body = JSON.stringify( take(input, { @@ -317,15 +261,8 @@ export const se_RegisterIdentityProviderCommand = async ( Settings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -335,12 +272,11 @@ export const se_StartProductSubscriptionCommand = async ( input: StartProductSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StartProductSubscription"; + b.bp("/user/StartProductSubscription"); let body: any; body = JSON.stringify( take(input, { @@ -350,15 +286,8 @@ export const se_StartProductSubscriptionCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -368,12 +297,11 @@ export const se_StopProductSubscriptionCommand = async ( input: StopProductSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StopProductSubscription"; + b.bp("/user/StopProductSubscription"); let body: any; body = JSON.stringify( take(input, { @@ -383,15 +311,8 @@ export const se_StopProductSubscriptionCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -401,13 +322,11 @@ export const se_UpdateIdentityProviderSettingsCommand = async ( input: UpdateIdentityProviderSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/identity-provider/UpdateIdentityProviderSettings"; + b.bp("/identity-provider/UpdateIdentityProviderSettings"); let body: any; body = JSON.stringify( take(input, { @@ -416,15 +335,8 @@ export const se_UpdateIdentityProviderSettingsCommand = async ( UpdateSettings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-location/package.json b/clients/client-location/package.json index 0ecffb6937ad..85fc49e171fb 100644 --- a/clients/client-location/package.json +++ b/clients/client-location/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-location/src/protocols/Aws_restJson1.ts b/clients/client-location/src/protocols/Aws_restJson1.ts index 565db35a014f..f2b350043b57 100644 --- a/clients/client-location/src/protocols/Aws_restJson1.ts +++ b/clients/client-location/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -222,14 +223,12 @@ export const se_AssociateTrackerConsumerCommand = async ( input: AssociateTrackerConsumerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/consumers"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/consumers"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -243,15 +242,9 @@ export const se_AssociateTrackerConsumerCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -261,14 +254,12 @@ export const se_BatchDeleteDevicePositionHistoryCommand = async ( input: BatchDeleteDevicePositionHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/delete-positions"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/delete-positions"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -282,15 +273,9 @@ export const se_BatchDeleteDevicePositionHistoryCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -300,21 +285,12 @@ export const se_BatchDeleteGeofenceCommand = async ( input: BatchDeleteGeofenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}/delete-geofences"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); + b.bp("/geofencing/v0/collections/{CollectionName}/delete-geofences"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -328,15 +304,9 @@ export const se_BatchDeleteGeofenceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -346,21 +316,12 @@ export const se_BatchEvaluateGeofencesCommand = async ( input: BatchEvaluateGeofencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}/positions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); + b.bp("/geofencing/v0/collections/{CollectionName}/positions"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -374,15 +335,9 @@ export const se_BatchEvaluateGeofencesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -392,14 +347,12 @@ export const se_BatchGetDevicePositionCommand = async ( input: BatchGetDevicePositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/get-positions"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/get-positions"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -413,15 +366,9 @@ export const se_BatchGetDevicePositionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -431,21 +378,12 @@ export const se_BatchPutGeofenceCommand = async ( input: BatchPutGeofenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}/put-geofences"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); + b.bp("/geofencing/v0/collections/{CollectionName}/put-geofences"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -459,15 +397,9 @@ export const se_BatchPutGeofenceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -477,14 +409,12 @@ export const se_BatchUpdateDevicePositionCommand = async ( input: BatchUpdateDevicePositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/positions"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/positions"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -498,15 +428,9 @@ export const se_BatchUpdateDevicePositionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -516,23 +440,14 @@ export const se_CalculateRouteCommand = async ( input: CalculateRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routes/v0/calculators/{CalculatorName}/calculate/route"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatorName", - () => input.CalculatorName!, - "{CalculatorName}", - false - ); + b.bp("/routes/v0/calculators/{CalculatorName}/calculate/route"); + b.p("CalculatorName", () => input.CalculatorName!, "{CalculatorName}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; body = JSON.stringify( @@ -558,16 +473,9 @@ export const se_CalculateRouteCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -577,23 +485,14 @@ export const se_CalculateRouteMatrixCommand = async ( input: CalculateRouteMatrixCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routes/v0/calculators/{CalculatorName}/calculate/route-matrix"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatorName", - () => input.CalculatorName!, - "{CalculatorName}", - false - ); + b.bp("/routes/v0/calculators/{CalculatorName}/calculate/route-matrix"); + b.p("CalculatorName", () => input.CalculatorName!, "{CalculatorName}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; body = JSON.stringify( @@ -615,16 +514,9 @@ export const se_CalculateRouteMatrixCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -634,12 +526,11 @@ export const se_CreateGeofenceCollectionCommand = async ( input: CreateGeofenceCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/collections"; + b.bp("/geofencing/v0/collections"); let body: any; body = JSON.stringify( take(input, { @@ -658,15 +549,9 @@ export const se_CreateGeofenceCollectionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -676,11 +561,11 @@ export const se_CreateKeyCommand = async ( input: CreateKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys"; + b.bp("/metadata/v0/keys"); let body: any; body = JSON.stringify( take(input, { @@ -699,15 +584,9 @@ export const se_CreateKeyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -717,11 +596,11 @@ export const se_CreateMapCommand = async ( input: CreateMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps"; + b.bp("/maps/v0/maps"); let body: any; body = JSON.stringify( take(input, { @@ -739,15 +618,9 @@ export const se_CreateMapCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -757,11 +630,11 @@ export const se_CreatePlaceIndexCommand = async ( input: CreatePlaceIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes"; + b.bp("/places/v0/indexes"); let body: any; body = JSON.stringify( take(input, { @@ -780,15 +653,9 @@ export const se_CreatePlaceIndexCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -798,11 +665,11 @@ export const se_CreateRouteCalculatorCommand = async ( input: CreateRouteCalculatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators"; + b.bp("/routes/v0/calculators"); let body: any; body = JSON.stringify( take(input, { @@ -820,15 +687,9 @@ export const se_CreateRouteCalculatorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -838,11 +699,11 @@ export const se_CreateTrackerCommand = async ( input: CreateTrackerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers"; + b.bp("/tracking/v0/trackers"); let body: any; body = JSON.stringify( take(input, { @@ -864,15 +725,9 @@ export const se_CreateTrackerCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -882,19 +737,10 @@ export const se_DeleteGeofenceCollectionCommand = async ( input: DeleteGeofenceCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); + b.bp("/geofencing/v0/collections/{CollectionName}"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -903,15 +749,9 @@ export const se_DeleteGeofenceCollectionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -921,11 +761,10 @@ export const se_DeleteKeyCommand = async ( input: DeleteKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys/{KeyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "KeyName", () => input.KeyName!, "{KeyName}", false); + b.bp("/metadata/v0/keys/{KeyName}"); + b.p("KeyName", () => input.KeyName!, "{KeyName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -934,15 +773,9 @@ export const se_DeleteKeyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -952,10 +785,10 @@ export const se_DeleteMapCommand = async ( input: DeleteMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName!, "{MapName}", false); + b.bp("/maps/v0/maps/{MapName}"); + b.p("MapName", () => input.MapName!, "{MapName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -964,15 +797,9 @@ export const se_DeleteMapCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -982,11 +809,10 @@ export const se_DeletePlaceIndexCommand = async ( input: DeletePlaceIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName!, "{IndexName}", false); + b.bp("/places/v0/indexes/{IndexName}"); + b.p("IndexName", () => input.IndexName!, "{IndexName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -995,15 +821,9 @@ export const se_DeletePlaceIndexCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1013,18 +833,10 @@ export const se_DeleteRouteCalculatorCommand = async ( input: DeleteRouteCalculatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatorName", - () => input.CalculatorName!, - "{CalculatorName}", - false - ); + b.bp("/routes/v0/calculators/{CalculatorName}"); + b.p("CalculatorName", () => input.CalculatorName!, "{CalculatorName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1033,15 +845,9 @@ export const se_DeleteRouteCalculatorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1051,11 +857,10 @@ export const se_DeleteTrackerCommand = async ( input: DeleteTrackerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1064,15 +869,9 @@ export const se_DeleteTrackerCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1082,19 +881,10 @@ export const se_DescribeGeofenceCollectionCommand = async ( input: DescribeGeofenceCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); + b.bp("/geofencing/v0/collections/{CollectionName}"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1103,15 +893,9 @@ export const se_DescribeGeofenceCollectionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1121,11 +905,10 @@ export const se_DescribeKeyCommand = async ( input: DescribeKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys/{KeyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "KeyName", () => input.KeyName!, "{KeyName}", false); + b.bp("/metadata/v0/keys/{KeyName}"); + b.p("KeyName", () => input.KeyName!, "{KeyName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1134,15 +917,9 @@ export const se_DescribeKeyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1152,10 +929,10 @@ export const se_DescribeMapCommand = async ( input: DescribeMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName!, "{MapName}", false); + b.bp("/maps/v0/maps/{MapName}"); + b.p("MapName", () => input.MapName!, "{MapName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1164,15 +941,9 @@ export const se_DescribeMapCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1182,11 +953,10 @@ export const se_DescribePlaceIndexCommand = async ( input: DescribePlaceIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName!, "{IndexName}", false); + b.bp("/places/v0/indexes/{IndexName}"); + b.p("IndexName", () => input.IndexName!, "{IndexName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1195,15 +965,9 @@ export const se_DescribePlaceIndexCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1213,18 +977,10 @@ export const se_DescribeRouteCalculatorCommand = async ( input: DescribeRouteCalculatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatorName", - () => input.CalculatorName!, - "{CalculatorName}", - false - ); + b.bp("/routes/v0/calculators/{CalculatorName}"); + b.p("CalculatorName", () => input.CalculatorName!, "{CalculatorName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1233,15 +989,9 @@ export const se_DescribeRouteCalculatorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1251,11 +1001,10 @@ export const se_DescribeTrackerCommand = async ( input: DescribeTrackerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1264,15 +1013,9 @@ export const se_DescribeTrackerCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1282,13 +1025,11 @@ export const se_DisassociateTrackerConsumerCommand = async ( input: DisassociateTrackerConsumerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ConsumerArn", () => input.ConsumerArn!, "{ConsumerArn}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.p("ConsumerArn", () => input.ConsumerArn!, "{ConsumerArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1297,15 +1038,9 @@ export const se_DisassociateTrackerConsumerCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1315,13 +1050,11 @@ export const se_GetDevicePositionCommand = async ( input: GetDevicePositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1330,15 +1063,9 @@ export const se_GetDevicePositionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1348,15 +1075,13 @@ export const se_GetDevicePositionHistoryCommand = async ( input: GetDevicePositionHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1373,15 +1098,9 @@ export const se_GetDevicePositionHistoryCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1391,20 +1110,11 @@ export const se_GetGeofenceCommand = async ( input: GetGeofenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "GeofenceId", () => input.GeofenceId!, "{GeofenceId}", false); + b.bp("/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); + b.p("GeofenceId", () => input.GeofenceId!, "{GeofenceId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1413,15 +1123,9 @@ export const se_GetGeofenceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1431,23 +1135,14 @@ export const se_GetMapGlyphsCommand = async ( input: GetMapGlyphsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName!, "{MapName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "FontStack", () => input.FontStack!, "{FontStack}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FontUnicodeRange", - () => input.FontUnicodeRange!, - "{FontUnicodeRange}", - false - ); + b.bp("/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}"); + b.p("MapName", () => input.MapName!, "{MapName}", false); + b.p("FontStack", () => input.FontStack!, "{FontStack}", false); + b.p("FontUnicodeRange", () => input.FontUnicodeRange!, "{FontUnicodeRange}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1457,16 +1152,9 @@ export const se_GetMapGlyphsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1476,15 +1164,13 @@ export const se_GetMapSpritesCommand = async ( input: GetMapSpritesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/maps/v0/maps/{MapName}/sprites/{FileName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName!, "{MapName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "FileName", () => input.FileName!, "{FileName}", false); + b.bp("/maps/v0/maps/{MapName}/sprites/{FileName}"); + b.p("MapName", () => input.MapName!, "{MapName}", false); + b.p("FileName", () => input.FileName!, "{FileName}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1494,16 +1180,9 @@ export const se_GetMapSpritesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1513,13 +1192,12 @@ export const se_GetMapStyleDescriptorCommand = async ( input: GetMapStyleDescriptorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}/style-descriptor"; - resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName!, "{MapName}", false); + b.bp("/maps/v0/maps/{MapName}/style-descriptor"); + b.p("MapName", () => input.MapName!, "{MapName}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1529,16 +1207,9 @@ export const se_GetMapStyleDescriptorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1548,16 +1219,15 @@ export const se_GetMapTileCommand = async ( input: GetMapTileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName!, "{MapName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Z", () => input.Z!, "{Z}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "X", () => input.X!, "{X}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Y", () => input.Y!, "{Y}", false); + b.bp("/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}"); + b.p("MapName", () => input.MapName!, "{MapName}", false); + b.p("Z", () => input.Z!, "{Z}", false); + b.p("X", () => input.X!, "{X}", false); + b.p("Y", () => input.Y!, "{Y}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1567,16 +1237,9 @@ export const se_GetMapTileCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1586,16 +1249,14 @@ export const se_GetPlaceCommand = async ( input: GetPlaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/places/v0/indexes/{IndexName}/places/{PlaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName!, "{IndexName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "PlaceId", () => input.PlaceId!, "{PlaceId}", false); + b.bp("/places/v0/indexes/{IndexName}/places/{PlaceId}"); + b.p("IndexName", () => input.IndexName!, "{IndexName}", false); + b.p("PlaceId", () => input.PlaceId!, "{PlaceId}", false); const query: any = map({ - language: [, input.Language!], - key: [, input.Key!], + [_l]: [, input[_L]!], + [_k]: [, input[_K]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1605,16 +1266,9 @@ export const se_GetPlaceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1624,14 +1278,12 @@ export const se_ListDevicePositionsCommand = async ( input: ListDevicePositionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/list-positions"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/list-positions"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1647,15 +1299,9 @@ export const se_ListDevicePositionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1665,12 +1311,11 @@ export const se_ListGeofenceCollectionsCommand = async ( input: ListGeofenceCollectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/list-collections"; + b.bp("/geofencing/v0/list-collections"); let body: any; body = JSON.stringify( take(input, { @@ -1685,15 +1330,9 @@ export const se_ListGeofenceCollectionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1703,21 +1342,12 @@ export const se_ListGeofencesCommand = async ( input: ListGeofencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}/list-geofences"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); + b.bp("/geofencing/v0/collections/{CollectionName}/list-geofences"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1732,15 +1362,9 @@ export const se_ListGeofencesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1750,11 +1374,11 @@ export const se_ListKeysCommand = async ( input: ListKeysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/list-keys"; + b.bp("/metadata/v0/list-keys"); let body: any; body = JSON.stringify( take(input, { @@ -1770,15 +1394,9 @@ export const se_ListKeysCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1788,11 +1406,11 @@ export const se_ListMapsCommand = async ( input: ListMapsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/list-maps"; + b.bp("/maps/v0/list-maps"); let body: any; body = JSON.stringify( take(input, { @@ -1807,15 +1425,9 @@ export const se_ListMapsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1825,12 +1437,11 @@ export const se_ListPlaceIndexesCommand = async ( input: ListPlaceIndexesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/list-indexes"; + b.bp("/places/v0/list-indexes"); let body: any; body = JSON.stringify( take(input, { @@ -1845,15 +1456,9 @@ export const se_ListPlaceIndexesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1863,12 +1468,11 @@ export const se_ListRouteCalculatorsCommand = async ( input: ListRouteCalculatorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/list-calculators"; + b.bp("/routes/v0/list-calculators"); let body: any; body = JSON.stringify( take(input, { @@ -1883,15 +1487,9 @@ export const se_ListRouteCalculatorsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1901,10 +1499,10 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1913,15 +1511,9 @@ export const se_ListTagsForResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1931,14 +1523,12 @@ export const se_ListTrackerConsumersCommand = async ( input: ListTrackerConsumersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/tracking/v0/trackers/{TrackerName}/list-consumers"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}/list-consumers"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1953,15 +1543,9 @@ export const se_ListTrackerConsumersCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1971,12 +1555,11 @@ export const se_ListTrackersCommand = async ( input: ListTrackersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/list-trackers"; + b.bp("/tracking/v0/list-trackers"); let body: any; body = JSON.stringify( take(input, { @@ -1991,15 +1574,9 @@ export const se_ListTrackersCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2009,22 +1586,13 @@ export const se_PutGeofenceCommand = async ( input: PutGeofenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "GeofenceId", () => input.GeofenceId!, "{GeofenceId}", false); + b.bp("/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); + b.p("GeofenceId", () => input.GeofenceId!, "{GeofenceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2039,15 +1607,9 @@ export const se_PutGeofenceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2057,16 +1619,14 @@ export const se_SearchPlaceIndexForPositionCommand = async ( input: SearchPlaceIndexForPositionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/places/v0/indexes/{IndexName}/search/position"; - resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName!, "{IndexName}", false); + b.bp("/places/v0/indexes/{IndexName}/search/position"); + b.p("IndexName", () => input.IndexName!, "{IndexName}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; body = JSON.stringify( @@ -2083,16 +1643,9 @@ export const se_SearchPlaceIndexForPositionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2102,16 +1655,14 @@ export const se_SearchPlaceIndexForSuggestionsCommand = async ( input: SearchPlaceIndexForSuggestionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/places/v0/indexes/{IndexName}/search/suggestions"; - resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName!, "{IndexName}", false); + b.bp("/places/v0/indexes/{IndexName}/search/suggestions"); + b.p("IndexName", () => input.IndexName!, "{IndexName}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; body = JSON.stringify( @@ -2132,16 +1683,9 @@ export const se_SearchPlaceIndexForSuggestionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2151,16 +1695,14 @@ export const se_SearchPlaceIndexForTextCommand = async ( input: SearchPlaceIndexForTextCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/places/v0/indexes/{IndexName}/search/text"; - resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName!, "{IndexName}", false); + b.bp("/places/v0/indexes/{IndexName}/search/text"); + b.p("IndexName", () => input.IndexName!, "{IndexName}", false); const query: any = map({ - key: [, input.Key!], + [_k]: [, input[_K]!], }); let body: any; body = JSON.stringify( @@ -2181,16 +1723,9 @@ export const se_SearchPlaceIndexForTextCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2200,12 +1735,12 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -2219,15 +1754,9 @@ export const se_TagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2237,14 +1766,14 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -2255,16 +1784,9 @@ export const se_UntagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2274,21 +1796,12 @@ export const se_UpdateGeofenceCollectionCommand = async ( input: UpdateGeofenceCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/geofencing/v0/collections/{CollectionName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionName", - () => input.CollectionName!, - "{CollectionName}", - false - ); + b.bp("/geofencing/v0/collections/{CollectionName}"); + b.p("CollectionName", () => input.CollectionName!, "{CollectionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2304,15 +1817,9 @@ export const se_UpdateGeofenceCollectionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2322,13 +1829,12 @@ export const se_UpdateKeyCommand = async ( input: UpdateKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys/{KeyName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "KeyName", () => input.KeyName!, "{KeyName}", false); + b.bp("/metadata/v0/keys/{KeyName}"); + b.p("KeyName", () => input.KeyName!, "{KeyName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2346,15 +1852,9 @@ export const se_UpdateKeyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2364,12 +1864,12 @@ export const se_UpdateMapCommand = async ( input: UpdateMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName!, "{MapName}", false); + b.bp("/maps/v0/maps/{MapName}"); + b.p("MapName", () => input.MapName!, "{MapName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2385,15 +1885,9 @@ export const se_UpdateMapCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2403,13 +1897,12 @@ export const se_UpdatePlaceIndexCommand = async ( input: UpdatePlaceIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName!, "{IndexName}", false); + b.bp("/places/v0/indexes/{IndexName}"); + b.p("IndexName", () => input.IndexName!, "{IndexName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2425,15 +1918,9 @@ export const se_UpdatePlaceIndexCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2443,20 +1930,12 @@ export const se_UpdateRouteCalculatorCommand = async ( input: UpdateRouteCalculatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CalculatorName", - () => input.CalculatorName!, - "{CalculatorName}", - false - ); + b.bp("/routes/v0/calculators/{CalculatorName}"); + b.p("CalculatorName", () => input.CalculatorName!, "{CalculatorName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2471,15 +1950,9 @@ export const se_UpdateRouteCalculatorCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2489,13 +1962,12 @@ export const se_UpdateTrackerCommand = async ( input: UpdateTrackerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName!, "{TrackerName}", false); + b.bp("/tracking/v0/trackers/{TrackerName}"); + b.p("TrackerName", () => input.TrackerName!, "{TrackerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2514,15 +1986,9 @@ export const se_UpdateTrackerCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4439,8 +3905,8 @@ export const de_GetMapGlyphsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], - CacheControl: [, output.headers["cache-control"]], + [_CT]: [, output.headers[_ct]], + [_CC]: [, output.headers[_cc]], }); const data: any = await collectBody(output.body, context); contents.Blob = data; @@ -4497,8 +3963,8 @@ export const de_GetMapSpritesCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], - CacheControl: [, output.headers["cache-control"]], + [_CT]: [, output.headers[_ct]], + [_CC]: [, output.headers[_cc]], }); const data: any = await collectBody(output.body, context); contents.Blob = data; @@ -4555,8 +4021,8 @@ export const de_GetMapStyleDescriptorCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], - CacheControl: [, output.headers["cache-control"]], + [_CT]: [, output.headers[_ct]], + [_CC]: [, output.headers[_cc]], }); const data: any = await collectBody(output.body, context); contents.Blob = data; @@ -4613,8 +4079,8 @@ export const de_GetMapTileCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], - CacheControl: [, output.headers["cache-control"]], + [_CT]: [, output.headers[_ct]], + [_CC]: [, output.headers[_cc]], }); const data: any = await collectBody(output.body, context); contents.Blob = data; @@ -7126,6 +6592,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CC = "CacheControl"; +const _CT = "ContentType"; +const _K = "Key"; +const _L = "Language"; +const _TK = "TagKeys"; +const _cc = "cache-control"; +const _ct = "content-type"; +const _k = "key"; +const _l = "language"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-lookoutmetrics/package.json b/clients/client-lookoutmetrics/package.json index 04a9c7929a2e..2270d8598962 100644 --- a/clients/client-lookoutmetrics/package.json +++ b/clients/client-lookoutmetrics/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts b/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts index 8624000253b8..58f20d46646a 100644 --- a/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts +++ b/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -158,27 +159,19 @@ export const se_ActivateAnomalyDetectorCommand = async ( input: ActivateAnomalyDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ActivateAnomalyDetector"; + b.bp("/ActivateAnomalyDetector"); let body: any; body = JSON.stringify( take(input, { AnomalyDetectorArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -188,27 +181,19 @@ export const se_BackTestAnomalyDetectorCommand = async ( input: BackTestAnomalyDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BackTestAnomalyDetector"; + b.bp("/BackTestAnomalyDetector"); let body: any; body = JSON.stringify( take(input, { AnomalyDetectorArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -218,11 +203,11 @@ export const se_CreateAlertCommand = async ( input: CreateAlertCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateAlert"; + b.bp("/CreateAlert"); let body: any; body = JSON.stringify( take(input, { @@ -235,15 +220,8 @@ export const se_CreateAlertCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -253,11 +231,11 @@ export const se_CreateAnomalyDetectorCommand = async ( input: CreateAnomalyDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateAnomalyDetector"; + b.bp("/CreateAnomalyDetector"); let body: any; body = JSON.stringify( take(input, { @@ -268,15 +246,8 @@ export const se_CreateAnomalyDetectorCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -286,11 +257,11 @@ export const se_CreateMetricSetCommand = async ( input: CreateMetricSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateMetricSet"; + b.bp("/CreateMetricSet"); let body: any; body = JSON.stringify( take(input, { @@ -308,15 +279,8 @@ export const se_CreateMetricSetCommand = async ( Timezone: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -326,27 +290,19 @@ export const se_DeactivateAnomalyDetectorCommand = async ( input: DeactivateAnomalyDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeactivateAnomalyDetector"; + b.bp("/DeactivateAnomalyDetector"); let body: any; body = JSON.stringify( take(input, { AnomalyDetectorArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -356,26 +312,19 @@ export const se_DeleteAlertCommand = async ( input: DeleteAlertCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteAlert"; + b.bp("/DeleteAlert"); let body: any; body = JSON.stringify( take(input, { AlertArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -385,26 +334,19 @@ export const se_DeleteAnomalyDetectorCommand = async ( input: DeleteAnomalyDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteAnomalyDetector"; + b.bp("/DeleteAnomalyDetector"); let body: any; body = JSON.stringify( take(input, { AnomalyDetectorArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -414,26 +356,19 @@ export const se_DescribeAlertCommand = async ( input: DescribeAlertCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeAlert"; + b.bp("/DescribeAlert"); let body: any; body = JSON.stringify( take(input, { AlertArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -443,12 +378,11 @@ export const se_DescribeAnomalyDetectionExecutionsCommand = async ( input: DescribeAnomalyDetectionExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeAnomalyDetectionExecutions"; + b.bp("/DescribeAnomalyDetectionExecutions"); let body: any; body = JSON.stringify( take(input, { @@ -458,15 +392,8 @@ export const se_DescribeAnomalyDetectionExecutionsCommand = async ( Timestamp: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -476,27 +403,19 @@ export const se_DescribeAnomalyDetectorCommand = async ( input: DescribeAnomalyDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeAnomalyDetector"; + b.bp("/DescribeAnomalyDetector"); let body: any; body = JSON.stringify( take(input, { AnomalyDetectorArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -506,26 +425,19 @@ export const se_DescribeMetricSetCommand = async ( input: DescribeMetricSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeMetricSet"; + b.bp("/DescribeMetricSet"); let body: any; body = JSON.stringify( take(input, { MetricSetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -535,11 +447,11 @@ export const se_DetectMetricSetConfigCommand = async ( input: DetectMetricSetConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DetectMetricSetConfig"; + b.bp("/DetectMetricSetConfig"); let body: any; body = JSON.stringify( take(input, { @@ -547,15 +459,8 @@ export const se_DetectMetricSetConfigCommand = async ( AutoDetectionMetricSource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -565,11 +470,11 @@ export const se_GetAnomalyGroupCommand = async ( input: GetAnomalyGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetAnomalyGroup"; + b.bp("/GetAnomalyGroup"); let body: any; body = JSON.stringify( take(input, { @@ -577,15 +482,8 @@ export const se_GetAnomalyGroupCommand = async ( AnomalyGroupId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -595,11 +493,11 @@ export const se_GetDataQualityMetricsCommand = async ( input: GetDataQualityMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDataQualityMetrics"; + b.bp("/GetDataQualityMetrics"); let body: any; body = JSON.stringify( take(input, { @@ -607,15 +505,8 @@ export const se_GetDataQualityMetricsCommand = async ( MetricSetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -625,11 +516,11 @@ export const se_GetFeedbackCommand = async ( input: GetFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetFeedback"; + b.bp("/GetFeedback"); let body: any; body = JSON.stringify( take(input, { @@ -639,15 +530,8 @@ export const se_GetFeedbackCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -657,26 +541,19 @@ export const se_GetSampleDataCommand = async ( input: GetSampleDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetSampleData"; + b.bp("/GetSampleData"); let body: any; body = JSON.stringify( take(input, { S3SourceConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -686,11 +563,11 @@ export const se_ListAlertsCommand = async ( input: ListAlertsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListAlerts"; + b.bp("/ListAlerts"); let body: any; body = JSON.stringify( take(input, { @@ -699,15 +576,8 @@ export const se_ListAlertsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -717,11 +587,11 @@ export const se_ListAnomalyDetectorsCommand = async ( input: ListAnomalyDetectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListAnomalyDetectors"; + b.bp("/ListAnomalyDetectors"); let body: any; body = JSON.stringify( take(input, { @@ -729,15 +599,8 @@ export const se_ListAnomalyDetectorsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -747,12 +610,11 @@ export const se_ListAnomalyGroupRelatedMetricsCommand = async ( input: ListAnomalyGroupRelatedMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListAnomalyGroupRelatedMetrics"; + b.bp("/ListAnomalyGroupRelatedMetrics"); let body: any; body = JSON.stringify( take(input, { @@ -763,15 +625,8 @@ export const se_ListAnomalyGroupRelatedMetricsCommand = async ( RelationshipTypeFilter: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -781,12 +636,11 @@ export const se_ListAnomalyGroupSummariesCommand = async ( input: ListAnomalyGroupSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListAnomalyGroupSummaries"; + b.bp("/ListAnomalyGroupSummaries"); let body: any; body = JSON.stringify( take(input, { @@ -796,15 +650,8 @@ export const se_ListAnomalyGroupSummariesCommand = async ( SensitivityThreshold: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -814,12 +661,11 @@ export const se_ListAnomalyGroupTimeSeriesCommand = async ( input: ListAnomalyGroupTimeSeriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListAnomalyGroupTimeSeries"; + b.bp("/ListAnomalyGroupTimeSeries"); let body: any; body = JSON.stringify( take(input, { @@ -830,15 +676,8 @@ export const se_ListAnomalyGroupTimeSeriesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -848,11 +687,11 @@ export const se_ListMetricSetsCommand = async ( input: ListMetricSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListMetricSets"; + b.bp("/ListMetricSets"); let body: any; body = JSON.stringify( take(input, { @@ -861,15 +700,8 @@ export const se_ListMetricSetsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -879,20 +711,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -902,11 +727,11 @@ export const se_PutFeedbackCommand = async ( input: PutFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutFeedback"; + b.bp("/PutFeedback"); let body: any; body = JSON.stringify( take(input, { @@ -914,15 +739,8 @@ export const se_PutFeedbackCommand = async ( AnomalyGroupTimeSeriesFeedback: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -932,27 +750,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -962,27 +773,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -992,11 +795,11 @@ export const se_UpdateAlertCommand = async ( input: UpdateAlertCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateAlert"; + b.bp("/UpdateAlert"); let body: any; body = JSON.stringify( take(input, { @@ -1007,15 +810,8 @@ export const se_UpdateAlertCommand = async ( AlertSensitivityThreshold: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1025,11 +821,11 @@ export const se_UpdateAnomalyDetectorCommand = async ( input: UpdateAnomalyDetectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateAnomalyDetector"; + b.bp("/UpdateAnomalyDetector"); let body: any; body = JSON.stringify( take(input, { @@ -1039,15 +835,8 @@ export const se_UpdateAnomalyDetectorCommand = async ( KmsKeyArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1057,11 +846,11 @@ export const se_UpdateMetricSetCommand = async ( input: UpdateMetricSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateMetricSet"; + b.bp("/UpdateMetricSet"); let body: any; body = JSON.stringify( take(input, { @@ -1076,15 +865,8 @@ export const se_UpdateMetricSetCommand = async ( TimestampColumn: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3585,6 +3367,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-lookoutvision/package.json b/clients/client-lookoutvision/package.json index fac8f4df1dee..86215f1235c7 100644 --- a/clients/client-lookoutvision/package.json +++ b/clients/client-lookoutvision/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-lookoutvision/src/models/models_0.ts b/clients/client-lookoutvision/src/models/models_0.ts index 437bb9b13cb9..100175ee2d91 100644 --- a/clients/client-lookoutvision/src/models/models_0.ts +++ b/clients/client-lookoutvision/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { LookoutVisionServiceException as __BaseException } from "./LookoutVisionServiceException"; diff --git a/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts b/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts index 6c08eb376deb..b121bbdaa520 100644 --- a/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts +++ b/clients/client-lookoutvision/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -102,15 +103,13 @@ export const se_CreateDatasetCommand = async ( input: CreateDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/datasets"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.bp("/2020-11-20/projects/{ProjectName}/datasets"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); let body: any; body = JSON.stringify( take(input, { @@ -118,15 +117,8 @@ export const se_CreateDatasetCommand = async ( DatasetType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -136,14 +128,13 @@ export const se_CreateModelCommand = async ( input: CreateModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/projects/{ProjectName}/models"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.bp("/2020-11-20/projects/{ProjectName}/models"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); let body: any; body = JSON.stringify( take(input, { @@ -153,15 +144,8 @@ export const se_CreateModelCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -171,27 +155,20 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/projects"; + b.bp("/2020-11-20/projects"); let body: any; body = JSON.stringify( take(input, { ProjectName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -201,25 +178,16 @@ export const se_DeleteDatasetCommand = async ( input: DeleteDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetType", () => input.DatasetType!, "{DatasetType}", false); + b.bp("/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("DatasetType", () => input.DatasetType!, "{DatasetType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -229,32 +197,16 @@ export const se_DeleteModelCommand = async ( input: DeleteModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-client-token": input.ClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/models/{ModelVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ModelVersion", - () => input.ModelVersion!, - "{ModelVersion}", - false - ); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_xact]: input[_CT]!, }); + b.bp("/2020-11-20/projects/{ProjectName}/models/{ModelVersion}"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("ModelVersion", () => input.ModelVersion!, "{ModelVersion}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -264,23 +216,15 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/projects/{ProjectName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.bp("/2020-11-20/projects/{ProjectName}"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -290,23 +234,14 @@ export const se_DescribeDatasetCommand = async ( input: DescribeDatasetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetType", () => input.DatasetType!, "{DatasetType}", false); + b.bp("/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("DatasetType", () => input.DatasetType!, "{DatasetType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -316,30 +251,14 @@ export const se_DescribeModelCommand = async ( input: DescribeModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/models/{ModelVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ModelVersion", - () => input.ModelVersion!, - "{ModelVersion}", - false - ); + b.bp("/2020-11-20/projects/{ProjectName}/models/{ModelVersion}"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("ModelVersion", () => input.ModelVersion!, "{ModelVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -349,23 +268,14 @@ export const se_DescribeModelPackagingJobCommand = async ( input: DescribeModelPackagingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/modelpackagingjobs/{JobName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "JobName", () => input.JobName!, "{JobName}", false); + b.bp("/2020-11-20/projects/{ProjectName}/modelpackagingjobs/{JobName}"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("JobName", () => input.JobName!, "{JobName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -375,21 +285,13 @@ export const se_DescribeProjectCommand = async ( input: DescribeProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/projects/{ProjectName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.bp("/2020-11-20/projects/{ProjectName}"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -399,35 +301,19 @@ export const se_DetectAnomaliesCommand = async ( input: DetectAnomaliesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.ContentType! || "application/octet-stream", - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/models/{ModelVersion}/detect"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ModelVersion", - () => input.ModelVersion!, - "{ModelVersion}", - false - ); + [_ct]: input[_CTo]! || "application/octet-stream", + }); + b.bp("/2020-11-20/projects/{ProjectName}/models/{ModelVersion}/detect"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("ModelVersion", () => input.ModelVersion!, "{ModelVersion}", false); let body: any; if (input.Body !== undefined) { body = input.Body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -437,39 +323,29 @@ export const se_ListDatasetEntriesCommand = async ( input: ListDatasetEntriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}/entries"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetType", () => input.DatasetType!, "{DatasetType}", false); + b.bp("/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}/entries"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("DatasetType", () => input.DatasetType!, "{DatasetType}", false); const query: any = map({ - labeled: [() => input.Labeled !== void 0, () => input.Labeled!.toString()], - anomalyClass: [, input.AnomalyClass!], - createdBefore: [ + [_l]: [() => input.Labeled !== void 0, () => input[_L]!.toString()], + [_aC]: [, input[_AC]!], + [_cB]: [ () => input.BeforeCreationDate !== void 0, - () => (input.BeforeCreationDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_BCD]!.toISOString().split(".")[0] + "Z").toString(), ], - createdAfter: [ + [_cA]: [ () => input.AfterCreationDate !== void 0, - () => (input.AfterCreationDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_ACD]!.toISOString().split(".")[0] + "Z").toString(), ], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - sourceRefContains: [, input.SourceRefContains!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_sRC]: [, input[_SRC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -479,27 +355,17 @@ export const se_ListModelPackagingJobsCommand = async ( input: ListModelPackagingJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/modelpackagingjobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.bp("/2020-11-20/projects/{ProjectName}/modelpackagingjobs"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -509,26 +375,17 @@ export const se_ListModelsCommand = async ( input: ListModelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/projects/{ProjectName}/models"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.bp("/2020-11-20/projects/{ProjectName}/models"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -538,24 +395,16 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/projects"; + b.bp("/2020-11-20/projects"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -565,21 +414,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/2020-11-20/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -589,23 +430,14 @@ export const se_StartModelCommand = async ( input: StartModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/models/{ModelVersion}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ModelVersion", - () => input.ModelVersion!, - "{ModelVersion}", - false - ); + [_xact]: input[_CT]!, + }); + b.bp("/2020-11-20/projects/{ProjectName}/models/{ModelVersion}/start"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("ModelVersion", () => input.ModelVersion!, "{ModelVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -613,15 +445,8 @@ export const se_StartModelCommand = async ( MinInferenceUnits: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -631,15 +456,13 @@ export const se_StartModelPackagingJobCommand = async ( input: StartModelPackagingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/modelpackagingjobs"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.bp("/2020-11-20/projects/{ProjectName}/modelpackagingjobs"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); let body: any; body = JSON.stringify( take(input, { @@ -649,15 +472,8 @@ export const se_StartModelPackagingJobCommand = async ( ModelVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -667,32 +483,16 @@ export const se_StopModelCommand = async ( input: StopModelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-client-token": input.ClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/models/{ModelVersion}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ModelVersion", - () => input.ModelVersion!, - "{ModelVersion}", - false - ); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, + [_xact]: input[_CT]!, }); + b.bp("/2020-11-20/projects/{ProjectName}/models/{ModelVersion}/stop"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("ModelVersion", () => input.ModelVersion!, "{ModelVersion}", false); + let body: any; + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -702,28 +502,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/2020-11-20/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -733,28 +525,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-11-20/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/2020-11-20/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -764,31 +547,22 @@ export const se_UpdateDatasetEntriesCommand = async ( input: UpdateDatasetEntriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}/entries"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProjectName", () => input.ProjectName!, "{ProjectName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetType", () => input.DatasetType!, "{DatasetType}", false); + b.bp("/2020-11-20/projects/{ProjectName}/datasets/{DatasetType}/entries"); + b.p("ProjectName", () => input.ProjectName!, "{ProjectName}", false); + b.p("DatasetType", () => input.DatasetType!, "{DatasetType}", false); let body: any; body = JSON.stringify( take(input, { Changes: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2207,10 +1981,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2275,10 +2046,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2603,6 +2371,29 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AC = "AnomalyClass"; +const _ACD = "AfterCreationDate"; +const _BCD = "BeforeCreationDate"; +const _CT = "ClientToken"; +const _CTo = "ContentType"; +const _L = "Labeled"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RAS = "RetryAfterSeconds"; +const _SRC = "SourceRefContains"; +const _TK = "TagKeys"; +const _aC = "anomalyClass"; +const _cA = "createdAfter"; +const _cB = "createdBefore"; +const _ct = "content-type"; +const _l = "labeled"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _ra = "retry-after"; +const _sRC = "sourceRefContains"; +const _tK = "tagKeys"; +const _xact = "x-amzn-client-token"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-m2/package.json b/clients/client-m2/package.json index 0e6394e64baa..44f70262f847 100644 --- a/clients/client-m2/package.json +++ b/clients/client-m2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-m2/src/protocols/Aws_restJson1.ts b/clients/client-m2/src/protocols/Aws_restJson1.ts index 604aa6019c07..93e92860e149 100644 --- a/clients/client-m2/src/protocols/Aws_restJson1.ts +++ b/clients/client-m2/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -146,30 +147,14 @@ export const se_CancelBatchJobExecutionCommand = async ( input: CancelBatchJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/batch-job-executions/{executionId}/cancel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "executionId", () => input.executionId!, "{executionId}", false); + b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/cancel"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("executionId", () => input.executionId!, "{executionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -179,11 +164,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -197,15 +182,8 @@ export const se_CreateApplicationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -215,21 +193,12 @@ export const se_CreateDataSetImportTaskCommand = async ( input: CreateDataSetImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/dataset-import-task"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/dataset-import-task"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -237,15 +206,8 @@ export const se_CreateDataSetImportTaskCommand = async ( importConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -255,20 +217,12 @@ export const se_CreateDeploymentCommand = async ( input: CreateDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/deployments"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -277,15 +231,8 @@ export const se_CreateDeploymentCommand = async ( environmentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -295,11 +242,11 @@ export const se_CreateEnvironmentCommand = async ( input: CreateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments"; + b.bp("/environments"); let body: any; body = JSON.stringify( take(input, { @@ -319,15 +266,8 @@ export const se_CreateEnvironmentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -337,28 +277,13 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -368,37 +293,14 @@ export const se_DeleteApplicationFromEnvironmentCommand = async ( input: DeleteApplicationFromEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/environment/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/applications/{applicationId}/environment/{environmentId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -408,28 +310,13 @@ export const se_DeleteEnvironmentCommand = async ( input: DeleteEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/environments/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -439,28 +326,13 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -470,37 +342,14 @@ export const se_GetApplicationVersionCommand = async ( input: GetApplicationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/versions/{applicationVersion}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationVersion", - () => input.applicationVersion!.toString(), - "{applicationVersion}", - false - ); + b.bp("/applications/{applicationId}/versions/{applicationVersion}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("applicationVersion", () => input.applicationVersion!.toString(), "{applicationVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -510,30 +359,14 @@ export const se_GetBatchJobExecutionCommand = async ( input: GetBatchJobExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/batch-job-executions/{executionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "executionId", () => input.executionId!, "{executionId}", false); + b.bp("/applications/{applicationId}/batch-job-executions/{executionId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("executionId", () => input.executionId!, "{executionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -543,30 +376,14 @@ export const se_GetDataSetDetailsCommand = async ( input: GetDataSetDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/datasets/{dataSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "dataSetName", () => input.dataSetName!, "{dataSetName}", false); + b.bp("/applications/{applicationId}/datasets/{dataSetName}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("dataSetName", () => input.dataSetName!, "{dataSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -576,30 +393,14 @@ export const se_GetDataSetImportTaskCommand = async ( input: GetDataSetImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/dataset-import-tasks/{taskId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/applications/{applicationId}/dataset-import-tasks/{taskId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -609,37 +410,14 @@ export const se_GetDeploymentCommand = async ( input: GetDeploymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/deployments/{deploymentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deploymentId", - () => input.deploymentId!, - "{deploymentId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/deployments/{deploymentId}"); + b.p("deploymentId", () => input.deploymentId!, "{deploymentId}", false); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -649,28 +427,13 @@ export const se_GetEnvironmentCommand = async ( input: GetEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/environments/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -680,22 +443,15 @@ export const se_GetSignedBluinsightsUrlCommand = async ( input: GetSignedBluinsightsUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signed-bi-url"; + b.bp("/signed-bi-url"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -705,26 +461,18 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - names: [() => input.names !== void 0, () => (input.names! || []).map((_entry) => _entry as any)], - environmentId: [, input.environmentId!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_n]: [() => input.names !== void 0, () => (input[_n]! || []).map((_entry) => _entry as any)], + [_eI]: [, input[_eI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -734,33 +482,17 @@ export const se_ListApplicationVersionsCommand = async ( input: ListApplicationVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/versions"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -770,35 +502,18 @@ export const se_ListBatchJobDefinitionsCommand = async ( input: ListBatchJobDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/batch-job-definitions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/batch-job-definitions"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - prefix: [, input.prefix!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_p]: [, input[_p]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -808,48 +523,22 @@ export const se_ListBatchJobExecutionsCommand = async ( input: ListBatchJobExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/batch-job-executions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/batch-job-executions"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - executionIds: [ - () => input.executionIds !== void 0, - () => (input.executionIds! || []).map((_entry) => _entry as any), - ], - jobName: [, input.jobName!], - status: [, input.status!], - startedAfter: [ - () => input.startedAfter !== void 0, - () => (input.startedAfter!.toISOString().split(".")[0] + "Z").toString(), - ], - startedBefore: [ - () => input.startedBefore !== void 0, - () => (input.startedBefore!.toISOString().split(".")[0] + "Z").toString(), - ], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_eIx]: [() => input.executionIds !== void 0, () => (input[_eIx]! || []).map((_entry) => _entry as any)], + [_jN]: [, input[_jN]!], + [_s]: [, input[_s]!], + [_sA]: [() => input.startedAfter !== void 0, () => (input[_sA]!.toISOString().split(".")[0] + "Z").toString()], + [_sB]: [() => input.startedBefore !== void 0, () => (input[_sB]!.toISOString().split(".")[0] + "Z").toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -859,34 +548,17 @@ export const se_ListDataSetImportHistoryCommand = async ( input: ListDataSetImportHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/dataset-import-tasks"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/dataset-import-tasks"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -896,35 +568,19 @@ export const se_ListDataSetsCommand = async ( input: ListDataSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/datasets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/datasets"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - prefix: [, input.prefix!], - nameFilter: [, input.nameFilter!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_p]: [, input[_p]!], + [_nF]: [, input[_nF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -934,33 +590,17 @@ export const se_ListDeploymentsCommand = async ( input: ListDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/deployments"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -970,25 +610,17 @@ export const se_ListEngineVersionsCommand = async ( input: ListEngineVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/engine-versions"; + b.bp("/engine-versions"); const query: any = map({ - engineType: [, input.engineType!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_eT]: [, input[_eT]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -998,26 +630,18 @@ export const se_ListEnvironmentsCommand = async ( input: ListEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments"; + b.bp("/environments"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - names: [() => input.names !== void 0, () => (input.names! || []).map((_entry) => _entry as any)], - engineType: [, input.engineType!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_n]: [() => input.names !== void 0, () => (input[_n]! || []).map((_entry) => _entry as any)], + [_eT]: [, input[_eT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1027,20 +651,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1050,28 +667,13 @@ export const se_StartApplicationCommand = async ( input: StartApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/start"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1081,20 +683,12 @@ export const se_StartBatchJobCommand = async ( input: StartBatchJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/batch-job"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/batch-job"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1102,15 +696,8 @@ export const se_StartBatchJobCommand = async ( jobParams: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1120,35 +707,20 @@ export const se_StopApplicationCommand = async ( input: StopApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/stop"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { forceStop: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1158,27 +730,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1188,27 +753,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1218,20 +775,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1240,15 +789,8 @@ export const se_UpdateApplicationCommand = async ( description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1258,20 +800,12 @@ export const se_UpdateEnvironmentCommand = async ( input: UpdateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "environmentId", - () => input.environmentId!, - "{environmentId}", - false - ); + b.bp("/environments/{environmentId}"); + b.p("environmentId", () => input.environmentId!, "{environmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1283,15 +817,8 @@ export const se_UpdateEnvironmentCommand = async ( preferredMaintenanceWindow: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3409,10 +2936,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3497,10 +3021,7 @@ const de_ServiceUnavailableExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3947,6 +3468,22 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _eI = "environmentId"; +const _eIx = "executionIds"; +const _eT = "engineType"; +const _jN = "jobName"; +const _mR = "maxResults"; +const _n = "names"; +const _nF = "nameFilter"; +const _nT = "nextToken"; +const _p = "prefix"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _s = "status"; +const _sA = "startedAfter"; +const _sB = "startedBefore"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-macie2/package.json b/clients/client-macie2/package.json index 6a7a7df52c59..975c596a7073 100644 --- a/clients/client-macie2/package.json +++ b/clients/client-macie2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-macie2/src/protocols/Aws_restJson1.ts b/clients/client-macie2/src/protocols/Aws_restJson1.ts index 98a3349bbdb2..285b4514a704 100644 --- a/clients/client-macie2/src/protocols/Aws_restJson1.ts +++ b/clients/client-macie2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -412,11 +413,11 @@ export const se_AcceptInvitationCommand = async ( input: AcceptInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/accept"; + b.bp("/invitations/accept"); let body: any; body = JSON.stringify( take(input, { @@ -425,15 +426,8 @@ export const se_AcceptInvitationCommand = async ( masterAccount: [, , `masterAccount`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -443,27 +437,19 @@ export const se_BatchGetCustomDataIdentifiersCommand = async ( input: BatchGetCustomDataIdentifiersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/get"; + b.bp("/custom-data-identifiers/get"); let body: any; body = JSON.stringify( take(input, { ids: [, (_) => _json(_), `ids`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -473,11 +459,11 @@ export const se_CreateAllowListCommand = async ( input: CreateAllowListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists"; + b.bp("/allow-lists"); let body: any; body = JSON.stringify( take(input, { @@ -488,15 +474,8 @@ export const se_CreateAllowListCommand = async ( tags: [, (_) => _json(_), `tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -506,11 +485,11 @@ export const se_CreateClassificationJobCommand = async ( input: CreateClassificationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); let body: any; body = JSON.stringify( take(input, { @@ -529,15 +508,8 @@ export const se_CreateClassificationJobCommand = async ( tags: [, (_) => _json(_), `tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -547,12 +519,11 @@ export const se_CreateCustomDataIdentifierCommand = async ( input: CreateCustomDataIdentifierCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers"; + b.bp("/custom-data-identifiers"); let body: any; body = JSON.stringify( take(input, { @@ -567,15 +538,8 @@ export const se_CreateCustomDataIdentifierCommand = async ( tags: [, (_) => _json(_), `tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -585,11 +549,11 @@ export const se_CreateFindingsFilterCommand = async ( input: CreateFindingsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters"; + b.bp("/findingsfilters"); let body: any; body = JSON.stringify( take(input, { @@ -602,15 +566,8 @@ export const se_CreateFindingsFilterCommand = async ( tags: [, (_) => _json(_), `tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -620,11 +577,11 @@ export const se_CreateInvitationsCommand = async ( input: CreateInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations"; + b.bp("/invitations"); let body: any; body = JSON.stringify( take(input, { @@ -633,15 +590,8 @@ export const se_CreateInvitationsCommand = async ( message: [, , `message`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -651,11 +601,11 @@ export const se_CreateMemberCommand = async ( input: CreateMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members"; + b.bp("/members"); let body: any; body = JSON.stringify( take(input, { @@ -663,15 +613,8 @@ export const se_CreateMemberCommand = async ( tags: [, (_) => _json(_), `tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -681,26 +624,19 @@ export const se_CreateSampleFindingsCommand = async ( input: CreateSampleFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/sample"; + b.bp("/findings/sample"); let body: any; body = JSON.stringify( take(input, { findingTypes: [, (_) => _json(_), `findingTypes`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -710,26 +646,19 @@ export const se_DeclineInvitationsCommand = async ( input: DeclineInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/decline"; + b.bp("/invitations/decline"); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `accountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -739,24 +668,16 @@ export const se_DeleteAllowListCommand = async ( input: DeleteAllowListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/allow-lists/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - ignoreJobChecks: [, input.ignoreJobChecks!], + [_iJC]: [, input[_iJC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -766,21 +687,13 @@ export const se_DeleteCustomDataIdentifierCommand = async ( input: DeleteCustomDataIdentifierCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/custom-data-identifiers/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -790,20 +703,13 @@ export const se_DeleteFindingsFilterCommand = async ( input: DeleteFindingsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/findingsfilters/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -813,26 +719,19 @@ export const se_DeleteInvitationsCommand = async ( input: DeleteInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/delete"; + b.bp("/invitations/delete"); let body: any; body = JSON.stringify( take(input, { accountIds: [, (_) => _json(_), `accountIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -842,20 +741,13 @@ export const se_DeleteMemberCommand = async ( input: DeleteMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/members/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -865,11 +757,11 @@ export const se_DescribeBucketsCommand = async ( input: DescribeBucketsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasources/s3"; + b.bp("/datasources/s3"); let body: any; body = JSON.stringify( take(input, { @@ -879,15 +771,8 @@ export const se_DescribeBucketsCommand = async ( sortCriteria: [, (_) => se_BucketSortCriteria(_, context), `sortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -897,20 +782,13 @@ export const se_DescribeClassificationJobCommand = async ( input: DescribeClassificationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -920,22 +798,15 @@ export const se_DescribeOrganizationConfigurationCommand = async ( input: DescribeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin/configuration"; + b.bp("/admin/configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -945,22 +816,15 @@ export const se_DisableMacieCommand = async ( input: DisableMacieCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/macie"; + b.bp("/macie"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -970,23 +834,15 @@ export const se_DisableOrganizationAdminAccountCommand = async ( input: DisableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin"; + b.bp("/admin"); const query: any = map({ - adminAccountId: [, __expectNonNull(input.adminAccountId!, `adminAccountId`)], + [_aAI]: [, __expectNonNull(input[_aAI]!, `adminAccountId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -996,23 +852,15 @@ export const se_DisassociateFromAdministratorAccountCommand = async ( input: DisassociateFromAdministratorAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator/disassociate"; + b.bp("/administrator/disassociate"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1022,22 +870,15 @@ export const se_DisassociateFromMasterAccountCommand = async ( input: DisassociateFromMasterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master/disassociate"; + b.bp("/master/disassociate"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1047,21 +888,13 @@ export const se_DisassociateMemberCommand = async ( input: DisassociateMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/members/disassociate/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1071,11 +904,11 @@ export const se_EnableMacieCommand = async ( input: EnableMacieCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/macie"; + b.bp("/macie"); let body: any; body = JSON.stringify( take(input, { @@ -1084,15 +917,8 @@ export const se_EnableMacieCommand = async ( status: [, , `status`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1102,11 +928,11 @@ export const se_EnableOrganizationAdminAccountCommand = async ( input: EnableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin"; + b.bp("/admin"); let body: any; body = JSON.stringify( take(input, { @@ -1114,15 +940,8 @@ export const se_EnableOrganizationAdminAccountCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `clientToken`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1132,22 +951,15 @@ export const se_GetAdministratorAccountCommand = async ( input: GetAdministratorAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator"; + b.bp("/administrator"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1157,20 +969,13 @@ export const se_GetAllowListCommand = async ( input: GetAllowListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/allow-lists/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1180,23 +985,15 @@ export const se_GetAutomatedDiscoveryConfigurationCommand = async ( input: GetAutomatedDiscoveryConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration"; + b.bp("/automated-discovery/configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1206,27 +1003,19 @@ export const se_GetBucketStatisticsCommand = async ( input: GetBucketStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasources/s3/statistics"; + b.bp("/datasources/s3/statistics"); let body: any; body = JSON.stringify( take(input, { accountId: [, , `accountId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1236,23 +1025,15 @@ export const se_GetClassificationExportConfigurationCommand = async ( input: GetClassificationExportConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-export-configuration"; + b.bp("/classification-export-configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1262,21 +1043,13 @@ export const se_GetClassificationScopeCommand = async ( input: GetClassificationScopeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/classification-scopes/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1286,21 +1059,13 @@ export const se_GetCustomDataIdentifierCommand = async ( input: GetCustomDataIdentifierCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/custom-data-identifiers/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1310,11 +1075,11 @@ export const se_GetFindingsCommand = async ( input: GetFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/describe"; + b.bp("/findings/describe"); let body: any; body = JSON.stringify( take(input, { @@ -1322,15 +1087,8 @@ export const se_GetFindingsCommand = async ( sortCriteria: [, (_) => se_SortCriteria(_, context), `sortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1340,20 +1098,13 @@ export const se_GetFindingsFilterCommand = async ( input: GetFindingsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/findingsfilters/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1363,23 +1114,15 @@ export const se_GetFindingsPublicationConfigurationCommand = async ( input: GetFindingsPublicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings-publication-configuration"; + b.bp("/findings-publication-configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1389,11 +1132,11 @@ export const se_GetFindingStatisticsCommand = async ( input: GetFindingStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/statistics"; + b.bp("/findings/statistics"); let body: any; body = JSON.stringify( take(input, { @@ -1403,15 +1146,8 @@ export const se_GetFindingStatisticsCommand = async ( sortCriteria: [, (_) => se_FindingStatisticsSortCriteria(_, context), `sortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1421,22 +1157,15 @@ export const se_GetInvitationsCountCommand = async ( input: GetInvitationsCountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/count"; + b.bp("/invitations/count"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1446,22 +1175,15 @@ export const se_GetMacieSessionCommand = async ( input: GetMacieSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/macie"; + b.bp("/macie"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1471,22 +1193,15 @@ export const se_GetMasterAccountCommand = async ( input: GetMasterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master"; + b.bp("/master"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1496,20 +1211,13 @@ export const se_GetMemberCommand = async ( input: GetMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/members/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1519,23 +1227,15 @@ export const se_GetResourceProfileCommand = async ( input: GetResourceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles"; + b.bp("/resource-profiles"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1545,22 +1245,15 @@ export const se_GetRevealConfigurationCommand = async ( input: GetRevealConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reveal-configuration"; + b.bp("/reveal-configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1570,21 +1263,13 @@ export const se_GetSensitiveDataOccurrencesCommand = async ( input: GetSensitiveDataOccurrencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/{findingId}/reveal"; - resolvedPath = __resolvedPath(resolvedPath, input, "findingId", () => input.findingId!, "{findingId}", false); + b.bp("/findings/{findingId}/reveal"); + b.p("findingId", () => input.findingId!, "{findingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1594,21 +1279,13 @@ export const se_GetSensitiveDataOccurrencesAvailabilityCommand = async ( input: GetSensitiveDataOccurrencesAvailabilityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/{findingId}/reveal/availability"; - resolvedPath = __resolvedPath(resolvedPath, input, "findingId", () => input.findingId!, "{findingId}", false); + b.bp("/findings/{findingId}/reveal/availability"); + b.p("findingId", () => input.findingId!, "{findingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1618,21 +1295,13 @@ export const se_GetSensitivityInspectionTemplateCommand = async ( input: GetSensitivityInspectionTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/templates/sensitivity-inspections/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1642,11 +1311,11 @@ export const se_GetUsageStatisticsCommand = async ( input: GetUsageStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usage/statistics"; + b.bp("/usage/statistics"); let body: any; body = JSON.stringify( take(input, { @@ -1657,15 +1326,8 @@ export const se_GetUsageStatisticsCommand = async ( timeRange: [, , `timeRange`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1675,23 +1337,15 @@ export const se_GetUsageTotalsCommand = async ( input: GetUsageTotalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usage"; + b.bp("/usage"); const query: any = map({ - timeRange: [, input.timeRange!], + [_tR]: [, input[_tR]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1701,24 +1355,16 @@ export const se_ListAllowListsCommand = async ( input: ListAllowListsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists"; + b.bp("/allow-lists"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1728,11 +1374,11 @@ export const se_ListClassificationJobsCommand = async ( input: ListClassificationJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/list"; + b.bp("/jobs/list"); let body: any; body = JSON.stringify( take(input, { @@ -1742,15 +1388,8 @@ export const se_ListClassificationJobsCommand = async ( sortCriteria: [, (_) => se_ListJobsSortCriteria(_, context), `sortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1760,24 +1399,16 @@ export const se_ListClassificationScopesCommand = async ( input: ListClassificationScopesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes"; + b.bp("/classification-scopes"); const query: any = map({ - name: [, input.name!], - nextToken: [, input.nextToken!], + [_n]: [, input[_n]!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1787,12 +1418,11 @@ export const se_ListCustomDataIdentifiersCommand = async ( input: ListCustomDataIdentifiersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/list"; + b.bp("/custom-data-identifiers/list"); let body: any; body = JSON.stringify( take(input, { @@ -1800,15 +1430,8 @@ export const se_ListCustomDataIdentifiersCommand = async ( nextToken: [, , `nextToken`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1818,11 +1441,11 @@ export const se_ListFindingsCommand = async ( input: ListFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings"; + b.bp("/findings"); let body: any; body = JSON.stringify( take(input, { @@ -1832,15 +1455,8 @@ export const se_ListFindingsCommand = async ( sortCriteria: [, (_) => se_SortCriteria(_, context), `sortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1850,24 +1466,16 @@ export const se_ListFindingsFiltersCommand = async ( input: ListFindingsFiltersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters"; + b.bp("/findingsfilters"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1877,24 +1485,16 @@ export const se_ListInvitationsCommand = async ( input: ListInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations"; + b.bp("/invitations"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1904,27 +1504,19 @@ export const se_ListManagedDataIdentifiersCommand = async ( input: ListManagedDataIdentifiersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-data-identifiers/list"; + b.bp("/managed-data-identifiers/list"); let body: any; body = JSON.stringify( take(input, { nextToken: [, , `nextToken`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1934,25 +1526,17 @@ export const se_ListMembersCommand = async ( input: ListMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members"; + b.bp("/members"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - onlyAssociated: [, input.onlyAssociated!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_oA]: [, input[_oA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1962,24 +1546,16 @@ export const se_ListOrganizationAdminAccountsCommand = async ( input: ListOrganizationAdminAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin"; + b.bp("/admin"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1989,25 +1565,16 @@ export const se_ListResourceProfileArtifactsCommand = async ( input: ListResourceProfileArtifactsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/artifacts"; + b.bp("/resource-profiles/artifacts"); const query: any = map({ - nextToken: [, input.nextToken!], - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_nT]: [, input[_nT]!], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2017,26 +1584,17 @@ export const se_ListResourceProfileDetectionsCommand = async ( input: ListResourceProfileDetectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections"; + b.bp("/resource-profiles/detections"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2046,25 +1604,16 @@ export const se_ListSensitivityInspectionTemplatesCommand = async ( input: ListSensitivityInspectionTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections"; + b.bp("/templates/sensitivity-inspections"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2074,20 +1623,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2097,27 +1639,19 @@ export const se_PutClassificationExportConfigurationCommand = async ( input: PutClassificationExportConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-export-configuration"; + b.bp("/classification-export-configuration"); let body: any; body = JSON.stringify( take(input, { configuration: [, (_) => se_ClassificationExportConfiguration(_, context), `configuration`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2127,12 +1661,11 @@ export const se_PutFindingsPublicationConfigurationCommand = async ( input: PutFindingsPublicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings-publication-configuration"; + b.bp("/findings-publication-configuration"); let body: any; body = JSON.stringify( take(input, { @@ -2140,15 +1673,8 @@ export const se_PutFindingsPublicationConfigurationCommand = async ( securityHubConfiguration: [, (_) => se_SecurityHubConfiguration(_, context), `securityHubConfiguration`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2158,12 +1684,11 @@ export const se_SearchResourcesCommand = async ( input: SearchResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasources/search-resources"; + b.bp("/datasources/search-resources"); let body: any; body = JSON.stringify( take(input, { @@ -2173,15 +1698,8 @@ export const se_SearchResourcesCommand = async ( sortCriteria: [, (_) => se_SearchResourcesSortCriteria(_, context), `sortCriteria`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2191,27 +1709,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2221,12 +1732,11 @@ export const se_TestCustomDataIdentifierCommand = async ( input: TestCustomDataIdentifierCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/test"; + b.bp("/custom-data-identifiers/test"); let body: any; body = JSON.stringify( take(input, { @@ -2237,15 +1747,8 @@ export const se_TestCustomDataIdentifierCommand = async ( sampleText: [, , `sampleText`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2255,27 +1758,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2285,12 +1780,12 @@ export const se_UpdateAllowListCommand = async ( input: UpdateAllowListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/allow-lists/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -2299,15 +1794,8 @@ export const se_UpdateAllowListCommand = async ( name: [, , `name`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2317,27 +1805,19 @@ export const se_UpdateAutomatedDiscoveryConfigurationCommand = async ( input: UpdateAutomatedDiscoveryConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration"; + b.bp("/automated-discovery/configuration"); let body: any; body = JSON.stringify( take(input, { status: [, , `status`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2347,27 +1827,20 @@ export const se_UpdateClassificationJobCommand = async ( input: UpdateClassificationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; body = JSON.stringify( take(input, { jobStatus: [, , `jobStatus`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2377,28 +1850,20 @@ export const se_UpdateClassificationScopeCommand = async ( input: UpdateClassificationScopeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/classification-scopes/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { s3: [, (_) => se_S3ClassificationScopeUpdate(_, context), `s3`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2408,12 +1873,12 @@ export const se_UpdateFindingsFilterCommand = async ( input: UpdateFindingsFilterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/findingsfilters/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -2425,15 +1890,8 @@ export const se_UpdateFindingsFilterCommand = async ( position: [, , `position`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2443,11 +1901,11 @@ export const se_UpdateMacieSessionCommand = async ( input: UpdateMacieSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/macie"; + b.bp("/macie"); let body: any; body = JSON.stringify( take(input, { @@ -2455,15 +1913,8 @@ export const se_UpdateMacieSessionCommand = async ( status: [, , `status`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2473,27 +1924,20 @@ export const se_UpdateMemberSessionCommand = async ( input: UpdateMemberSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/macie/members/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/macie/members/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { status: [, , `status`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2503,26 +1947,19 @@ export const se_UpdateOrganizationConfigurationCommand = async ( input: UpdateOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin/configuration"; + b.bp("/admin/configuration"); let body: any; body = JSON.stringify( take(input, { autoEnable: [, , `autoEnable`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2532,13 +1969,13 @@ export const se_UpdateResourceProfileCommand = async ( input: UpdateResourceProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles"; + b.bp("/resource-profiles"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -2546,16 +1983,8 @@ export const se_UpdateResourceProfileCommand = async ( sensitivityScoreOverride: [, , `sensitivityScoreOverride`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2565,14 +1994,13 @@ export const se_UpdateResourceProfileDetectionsCommand = async ( input: UpdateResourceProfileDetectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections"; + b.bp("/resource-profiles/detections"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -2580,16 +2008,8 @@ export const se_UpdateResourceProfileDetectionsCommand = async ( suppressDataIdentifiers: [, (_) => se___listOfSuppressDataIdentifier(_, context), `suppressDataIdentifiers`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2599,11 +2019,11 @@ export const se_UpdateRevealConfigurationCommand = async ( input: UpdateRevealConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reveal-configuration"; + b.bp("/reveal-configuration"); let body: any; body = JSON.stringify( take(input, { @@ -2611,15 +2031,8 @@ export const se_UpdateRevealConfigurationCommand = async ( retrievalConfiguration: [, (_) => se_UpdateRetrievalConfiguration(_, context), `retrievalConfiguration`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2629,13 +2042,12 @@ export const se_UpdateSensitivityInspectionTemplateCommand = async ( input: UpdateSensitivityInspectionTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/templates/sensitivity-inspections/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -2644,15 +2056,8 @@ export const se_UpdateSensitivityInspectionTemplateCommand = async ( includes: [, (_) => se_SensitivityInspectionTemplateIncludes(_, context), `includes`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -10344,6 +9749,16 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aAI = "adminAccountId"; +const _iJC = "ignoreJobChecks"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _oA = "onlyAssociated"; +const _rA = "resourceArn"; +const _tK = "tagKeys"; +const _tR = "timeRange"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-managedblockchain-query/package.json b/clients/client-managedblockchain-query/package.json index 7c1bb5355cdb..ff87862173a9 100644 --- a/clients/client-managedblockchain-query/package.json +++ b/clients/client-managedblockchain-query/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-managedblockchain-query/src/protocols/Aws_restJson1.ts b/clients/client-managedblockchain-query/src/protocols/Aws_restJson1.ts index b233d1aa6da5..a7bf75b35075 100644 --- a/clients/client-managedblockchain-query/src/protocols/Aws_restJson1.ts +++ b/clients/client-managedblockchain-query/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -67,27 +68,19 @@ export const se_BatchGetTokenBalanceCommand = async ( input: BatchGetTokenBalanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batch-get-token-balance"; + b.bp("/batch-get-token-balance"); let body: any; body = JSON.stringify( take(input, { getTokenBalanceInputs: (_) => se_GetTokenBalanceInputList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -97,26 +90,19 @@ export const se_GetAssetContractCommand = async ( input: GetAssetContractCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-asset-contract"; + b.bp("/get-asset-contract"); let body: any; body = JSON.stringify( take(input, { contractIdentifier: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -126,11 +112,11 @@ export const se_GetTokenBalanceCommand = async ( input: GetTokenBalanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-token-balance"; + b.bp("/get-token-balance"); let body: any; body = JSON.stringify( take(input, { @@ -139,15 +125,8 @@ export const se_GetTokenBalanceCommand = async ( tokenIdentifier: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -157,11 +136,11 @@ export const se_GetTransactionCommand = async ( input: GetTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-transaction"; + b.bp("/get-transaction"); let body: any; body = JSON.stringify( take(input, { @@ -169,15 +148,8 @@ export const se_GetTransactionCommand = async ( transactionHash: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -187,11 +159,11 @@ export const se_ListAssetContractsCommand = async ( input: ListAssetContractsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-asset-contracts"; + b.bp("/list-asset-contracts"); let body: any; body = JSON.stringify( take(input, { @@ -200,15 +172,8 @@ export const se_ListAssetContractsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -218,11 +183,11 @@ export const se_ListTokenBalancesCommand = async ( input: ListTokenBalancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-token-balances"; + b.bp("/list-token-balances"); let body: any; body = JSON.stringify( take(input, { @@ -232,15 +197,8 @@ export const se_ListTokenBalancesCommand = async ( tokenFilter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -250,12 +208,11 @@ export const se_ListTransactionEventsCommand = async ( input: ListTransactionEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-transaction-events"; + b.bp("/list-transaction-events"); let body: any; body = JSON.stringify( take(input, { @@ -265,15 +222,8 @@ export const se_ListTransactionEventsCommand = async ( transactionHash: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -283,11 +233,11 @@ export const se_ListTransactionsCommand = async ( input: ListTransactionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-transactions"; + b.bp("/list-transactions"); let body: any; body = JSON.stringify( take(input, { @@ -300,15 +250,8 @@ export const se_ListTransactionsCommand = async ( toBlockchainInstant: (_) => se_BlockchainInstant(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -836,10 +779,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -904,10 +844,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1161,6 +1098,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-managedblockchain/package.json b/clients/client-managedblockchain/package.json index fe0816c6d175..1d237f7ad5d9 100644 --- a/clients/client-managedblockchain/package.json +++ b/clients/client-managedblockchain/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts index ff2bf28a7078..40cae4ee6d9d 100644 --- a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts +++ b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -102,11 +103,11 @@ export const se_CreateAccessorCommand = async ( input: CreateAccessorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors"; + b.bp("/accessors"); let body: any; body = JSON.stringify( take(input, { @@ -116,15 +117,8 @@ export const se_CreateAccessorCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -134,13 +128,12 @@ export const se_CreateMemberCommand = async ( input: CreateMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/members"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.bp("/networks/{NetworkId}/members"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -149,15 +142,8 @@ export const se_CreateMemberCommand = async ( MemberConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -167,11 +153,11 @@ export const se_CreateNetworkCommand = async ( input: CreateNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks"; + b.bp("/networks"); let body: any; body = JSON.stringify( take(input, { @@ -186,15 +172,8 @@ export const se_CreateNetworkCommand = async ( VotingPolicy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -204,13 +183,12 @@ export const se_CreateNodeCommand = async ( input: CreateNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/nodes"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.bp("/networks/{NetworkId}/nodes"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -220,15 +198,8 @@ export const se_CreateNodeCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -238,13 +209,12 @@ export const se_CreateProposalCommand = async ( input: CreateProposalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/proposals"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.bp("/networks/{NetworkId}/proposals"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -255,15 +225,8 @@ export const se_CreateProposalCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -273,20 +236,13 @@ export const se_DeleteAccessorCommand = async ( input: DeleteAccessorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors/{AccessorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccessorId", () => input.AccessorId!, "{AccessorId}", false); + b.bp("/accessors/{AccessorId}"); + b.p("AccessorId", () => input.AccessorId!, "{AccessorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -296,22 +252,14 @@ export const se_DeleteMemberCommand = async ( input: DeleteMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/members/{MemberId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberId", () => input.MemberId!, "{MemberId}", false); + b.bp("/networks/{NetworkId}/members/{MemberId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("MemberId", () => input.MemberId!, "{MemberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -321,26 +269,17 @@ export const se_DeleteNodeCommand = async ( input: DeleteNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/nodes/{NodeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "NodeId", () => input.NodeId!, "{NodeId}", false); + b.bp("/networks/{NetworkId}/nodes/{NodeId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("NodeId", () => input.NodeId!, "{NodeId}", false); const query: any = map({ - memberId: [, input.MemberId!], + [_mI]: [, input[_MI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -350,20 +289,13 @@ export const se_GetAccessorCommand = async ( input: GetAccessorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors/{AccessorId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "AccessorId", () => input.AccessorId!, "{AccessorId}", false); + b.bp("/accessors/{AccessorId}"); + b.p("AccessorId", () => input.AccessorId!, "{AccessorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -373,22 +305,14 @@ export const se_GetMemberCommand = async ( input: GetMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/members/{MemberId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberId", () => input.MemberId!, "{MemberId}", false); + b.bp("/networks/{NetworkId}/members/{MemberId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("MemberId", () => input.MemberId!, "{MemberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -398,20 +322,13 @@ export const se_GetNetworkCommand = async ( input: GetNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.bp("/networks/{NetworkId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -421,26 +338,17 @@ export const se_GetNodeCommand = async ( input: GetNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/nodes/{NodeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "NodeId", () => input.NodeId!, "{NodeId}", false); + b.bp("/networks/{NetworkId}/nodes/{NodeId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("NodeId", () => input.NodeId!, "{NodeId}", false); const query: any = map({ - memberId: [, input.MemberId!], + [_mI]: [, input[_MI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -450,23 +358,14 @@ export const se_GetProposalCommand = async ( input: GetProposalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/networks/{NetworkId}/proposals/{ProposalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProposalId", () => input.ProposalId!, "{ProposalId}", false); + b.bp("/networks/{NetworkId}/proposals/{ProposalId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("ProposalId", () => input.ProposalId!, "{ProposalId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -476,25 +375,17 @@ export const se_ListAccessorsCommand = async ( input: ListAccessorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors"; + b.bp("/accessors"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - networkType: [, input.NetworkType!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_nTe]: [, input[_NTe]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -504,24 +395,16 @@ export const se_ListInvitationsCommand = async ( input: ListInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations"; + b.bp("/invitations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -531,29 +414,20 @@ export const se_ListMembersCommand = async ( input: ListMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/members"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.bp("/networks/{NetworkId}/members"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); const query: any = map({ - name: [, input.Name!], - status: [, input.Status!], - isOwned: [() => input.IsOwned !== void 0, () => input.IsOwned!.toString()], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_n]: [, input[_N]!], + [_s]: [, input[_S]!], + [_iO]: [() => input.IsOwned !== void 0, () => input[_IO]!.toString()], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -563,27 +437,19 @@ export const se_ListNetworksCommand = async ( input: ListNetworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks"; + b.bp("/networks"); const query: any = map({ - name: [, input.Name!], - framework: [, input.Framework!], - status: [, input.Status!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_n]: [, input[_N]!], + [_f]: [, input[_F]!], + [_s]: [, input[_S]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -593,28 +459,19 @@ export const se_ListNodesCommand = async ( input: ListNodesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/nodes"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.bp("/networks/{NetworkId}/nodes"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); const query: any = map({ - memberId: [, input.MemberId!], - status: [, input.Status!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mI]: [, input[_MI]!], + [_s]: [, input[_S]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -624,26 +481,17 @@ export const se_ListProposalsCommand = async ( input: ListProposalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/proposals"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.bp("/networks/{NetworkId}/proposals"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -653,28 +501,18 @@ export const se_ListProposalVotesCommand = async ( input: ListProposalVotesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/networks/{NetworkId}/proposals/{ProposalId}/votes"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProposalId", () => input.ProposalId!, "{ProposalId}", false); + b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("ProposalId", () => input.ProposalId!, "{ProposalId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -684,20 +522,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -707,28 +538,13 @@ export const se_RejectInvitationCommand = async ( input: RejectInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/{InvitationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InvitationId", - () => input.InvitationId!, - "{InvitationId}", - false - ); + b.bp("/invitations/{InvitationId}"); + b.p("InvitationId", () => input.InvitationId!, "{InvitationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -738,27 +554,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -768,27 +577,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -798,29 +599,21 @@ export const se_UpdateMemberCommand = async ( input: UpdateMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/members/{MemberId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberId", () => input.MemberId!, "{MemberId}", false); + b.bp("/networks/{NetworkId}/members/{MemberId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("MemberId", () => input.MemberId!, "{MemberId}", false); let body: any; body = JSON.stringify( take(input, { LogPublishingConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -830,14 +623,13 @@ export const se_UpdateNodeCommand = async ( input: UpdateNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks/{NetworkId}/nodes/{NodeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "NodeId", () => input.NodeId!, "{NodeId}", false); + b.bp("/networks/{NetworkId}/nodes/{NodeId}"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("NodeId", () => input.NodeId!, "{NodeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -845,15 +637,8 @@ export const se_UpdateNodeCommand = async ( MemberId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -863,15 +648,13 @@ export const se_VoteOnProposalCommand = async ( input: VoteOnProposalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/networks/{NetworkId}/proposals/{ProposalId}/votes"; - resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId!, "{NetworkId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProposalId", () => input.ProposalId!, "{ProposalId}", false); + b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes"); + b.p("NetworkId", () => input.NetworkId!, "{NetworkId}", false); + b.p("ProposalId", () => input.ProposalId!, "{ProposalId}", false); let body: any; body = JSON.stringify( take(input, { @@ -879,15 +662,8 @@ export const se_VoteOnProposalCommand = async ( VoterMemberId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3055,6 +2831,25 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _F = "Framework"; +const _IO = "IsOwned"; +const _MI = "MemberId"; +const _MR = "MaxResults"; +const _N = "Name"; +const _NT = "NextToken"; +const _NTe = "NetworkType"; +const _S = "Status"; +const _TK = "TagKeys"; +const _f = "framework"; +const _iO = "isOwned"; +const _mI = "memberId"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _nTe = "networkType"; +const _s = "status"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-marketplace-catalog/package.json b/clients/client-marketplace-catalog/package.json index fc5142d13026..68d46a4ac836 100644 --- a/clients/client-marketplace-catalog/package.json +++ b/clients/client-marketplace-catalog/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-marketplace-catalog/src/models/models_0.ts b/clients/client-marketplace-catalog/src/models/models_0.ts index 7587cb6acb87..ffa8f16f59f7 100644 --- a/clients/client-marketplace-catalog/src/models/models_0.ts +++ b/clients/client-marketplace-catalog/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { MarketplaceCatalogServiceException as __BaseException } from "./MarketplaceCatalogServiceException"; diff --git a/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts b/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts index 84fbddc98e63..4f9732b1b003 100644 --- a/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts +++ b/clients/client-marketplace-catalog/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -132,24 +133,16 @@ export const se_CancelChangeSetCommand = async ( input: CancelChangeSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelChangeSet"; + b.bp("/CancelChangeSet"); const query: any = map({ - catalog: [, __expectNonNull(input.Catalog!, `Catalog`)], - changeSetId: [, __expectNonNull(input.ChangeSetId!, `ChangeSetId`)], + [_c]: [, __expectNonNull(input[_C]!, `Catalog`)], + [_cSI]: [, __expectNonNull(input[_CSI]!, `ChangeSetId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PATCH").h(headers).q(query).b(body); + return b.build(); }; /** @@ -159,23 +152,15 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteResourcePolicy"; + b.bp("/DeleteResourcePolicy"); const query: any = map({ - resourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], + [_rA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -185,24 +170,16 @@ export const se_DescribeChangeSetCommand = async ( input: DescribeChangeSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeChangeSet"; + b.bp("/DescribeChangeSet"); const query: any = map({ - catalog: [, __expectNonNull(input.Catalog!, `Catalog`)], - changeSetId: [, __expectNonNull(input.ChangeSetId!, `ChangeSetId`)], + [_c]: [, __expectNonNull(input[_C]!, `Catalog`)], + [_cSI]: [, __expectNonNull(input[_CSI]!, `ChangeSetId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -212,24 +189,16 @@ export const se_DescribeEntityCommand = async ( input: DescribeEntityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeEntity"; + b.bp("/DescribeEntity"); const query: any = map({ - catalog: [, __expectNonNull(input.Catalog!, `Catalog`)], - entityId: [, __expectNonNull(input.EntityId!, `EntityId`)], + [_c]: [, __expectNonNull(input[_C]!, `Catalog`)], + [_eI]: [, __expectNonNull(input[_EI]!, `EntityId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -239,23 +208,15 @@ export const se_GetResourcePolicyCommand = async ( input: GetResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetResourcePolicy"; + b.bp("/GetResourcePolicy"); const query: any = map({ - resourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], + [_rA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -265,11 +226,11 @@ export const se_ListChangeSetsCommand = async ( input: ListChangeSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListChangeSets"; + b.bp("/ListChangeSets"); let body: any; body = JSON.stringify( take(input, { @@ -280,15 +241,8 @@ export const se_ListChangeSetsCommand = async ( Sort: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -298,11 +252,11 @@ export const se_ListEntitiesCommand = async ( input: ListEntitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListEntities"; + b.bp("/ListEntities"); let body: any; body = JSON.stringify( take(input, { @@ -317,15 +271,8 @@ export const se_ListEntitiesCommand = async ( Sort: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -335,26 +282,19 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource"; + b.bp("/ListTagsForResource"); let body: any; body = JSON.stringify( take(input, { ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -364,11 +304,11 @@ export const se_PutResourcePolicyCommand = async ( input: PutResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutResourcePolicy"; + b.bp("/PutResourcePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -376,15 +316,8 @@ export const se_PutResourcePolicyCommand = async ( ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -394,11 +327,11 @@ export const se_StartChangeSetCommand = async ( input: StartChangeSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartChangeSet"; + b.bp("/StartChangeSet"); let body: any; body = JSON.stringify( take(input, { @@ -409,15 +342,8 @@ export const se_StartChangeSetCommand = async ( ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -427,11 +353,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource"; + b.bp("/TagResource"); let body: any; body = JSON.stringify( take(input, { @@ -439,15 +365,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -457,11 +376,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource"; + b.bp("/UntagResource"); let body: any; body = JSON.stringify( take(input, { @@ -469,15 +388,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1672,6 +1584,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _C = "Catalog"; +const _CSI = "ChangeSetId"; +const _EI = "EntityId"; +const _RA = "ResourceArn"; +const _c = "catalog"; +const _cSI = "changeSetId"; +const _eI = "entityId"; +const _rA = "resourceArn"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-marketplace-deployment/package.json b/clients/client-marketplace-deployment/package.json index 9a5317265c72..0a6e368e01f1 100644 --- a/clients/client-marketplace-deployment/package.json +++ b/clients/client-marketplace-deployment/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-marketplace-deployment/src/protocols/Aws_restJson1.ts b/clients/client-marketplace-deployment/src/protocols/Aws_restJson1.ts index 96509836d116..242074ea8061 100644 --- a/clients/client-marketplace-deployment/src/protocols/Aws_restJson1.ts +++ b/clients/client-marketplace-deployment/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -49,20 +50,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -72,15 +66,13 @@ export const se_PutDeploymentParameterCommand = async ( input: PutDeploymentParameterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/catalogs/{catalog}/products/{productId}/deployment-parameters"; - resolvedPath = __resolvedPath(resolvedPath, input, "catalog", () => input.catalog!, "{catalog}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "productId", () => input.productId!, "{productId}", false); + b.bp("/catalogs/{catalog}/products/{productId}/deployment-parameters"); + b.p("catalog", () => input.catalog!, "{catalog}", false); + b.p("productId", () => input.productId!, "{productId}", false); let body: any; body = JSON.stringify( take(input, { @@ -91,15 +83,8 @@ export const se_PutDeploymentParameterCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -109,27 +94,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -139,27 +117,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -568,6 +538,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mediaconnect/package.json b/clients/client-mediaconnect/package.json index baaa4861fa97..346377ad4b64 100644 --- a/clients/client-mediaconnect/package.json +++ b/clients/client-mediaconnect/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts b/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts index 61763a23f3d2..3a2387b36bee 100644 --- a/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -211,28 +212,20 @@ export const se_AddBridgeOutputsCommand = async ( input: AddBridgeOutputsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/outputs"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.bp("/v1/bridges/{BridgeArn}/outputs"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); let body: any; body = JSON.stringify( take(input, { outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -242,28 +235,20 @@ export const se_AddBridgeSourcesCommand = async ( input: AddBridgeSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/sources"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.bp("/v1/bridges/{BridgeArn}/sources"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); let body: any; body = JSON.stringify( take(input, { sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -273,28 +258,20 @@ export const se_AddFlowMediaStreamsCommand = async ( input: AddFlowMediaStreamsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/mediaStreams"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}/mediaStreams"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; body = JSON.stringify( take(input, { mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -304,28 +281,20 @@ export const se_AddFlowOutputsCommand = async ( input: AddFlowOutputsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}/outputs"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; body = JSON.stringify( take(input, { outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -335,28 +304,20 @@ export const se_AddFlowSourcesCommand = async ( input: AddFlowSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}/source"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; body = JSON.stringify( take(input, { sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -366,28 +327,20 @@ export const se_AddFlowVpcInterfacesCommand = async ( input: AddFlowVpcInterfacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/vpcInterfaces"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}/vpcInterfaces"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; body = JSON.stringify( take(input, { vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -397,11 +350,11 @@ export const se_CreateBridgeCommand = async ( input: CreateBridgeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges"; + b.bp("/v1/bridges"); let body: any; body = JSON.stringify( take(input, { @@ -414,15 +367,8 @@ export const se_CreateBridgeCommand = async ( sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -432,11 +378,11 @@ export const se_CreateFlowCommand = async ( input: CreateFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows"; + b.bp("/v1/flows"); let body: any; body = JSON.stringify( take(input, { @@ -452,15 +398,8 @@ export const se_CreateFlowCommand = async ( vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -470,11 +409,11 @@ export const se_CreateGatewayCommand = async ( input: CreateGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways"; + b.bp("/v1/gateways"); let body: any; body = JSON.stringify( take(input, { @@ -483,15 +422,8 @@ export const se_CreateGatewayCommand = async ( networks: [, (_) => se___listOfGatewayNetwork(_, context), `Networks`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -501,20 +433,13 @@ export const se_DeleteBridgeCommand = async ( input: DeleteBridgeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.bp("/v1/bridges/{BridgeArn}"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -524,20 +449,13 @@ export const se_DeleteFlowCommand = async ( input: DeleteFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -547,21 +465,13 @@ export const se_DeleteGatewayCommand = async ( input: DeleteGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GatewayArn", () => input.GatewayArn!, "{GatewayArn}", false); + b.bp("/v1/gateways/{GatewayArn}"); + b.p("GatewayArn", () => input.GatewayArn!, "{GatewayArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -571,33 +481,16 @@ export const se_DeregisterGatewayInstanceCommand = async ( input: DeregisterGatewayInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/gateway-instances/{GatewayInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GatewayInstanceArn", - () => input.GatewayInstanceArn!, - "{GatewayInstanceArn}", - false - ); + b.bp("/v1/gateway-instances/{GatewayInstanceArn}"); + b.p("GatewayInstanceArn", () => input.GatewayInstanceArn!, "{GatewayInstanceArn}", false); const query: any = map({ - force: [() => input.Force !== void 0, () => input.Force!.toString()], + [_f]: [() => input.Force !== void 0, () => input[_F]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -607,20 +500,13 @@ export const se_DescribeBridgeCommand = async ( input: DescribeBridgeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.bp("/v1/bridges/{BridgeArn}"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -630,20 +516,13 @@ export const se_DescribeFlowCommand = async ( input: DescribeFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -653,21 +532,13 @@ export const se_DescribeGatewayCommand = async ( input: DescribeGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GatewayArn", () => input.GatewayArn!, "{GatewayArn}", false); + b.bp("/v1/gateways/{GatewayArn}"); + b.p("GatewayArn", () => input.GatewayArn!, "{GatewayArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -677,29 +548,13 @@ export const se_DescribeGatewayInstanceCommand = async ( input: DescribeGatewayInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/gateway-instances/{GatewayInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GatewayInstanceArn", - () => input.GatewayInstanceArn!, - "{GatewayInstanceArn}", - false - ); + b.bp("/v1/gateway-instances/{GatewayInstanceArn}"); + b.p("GatewayInstanceArn", () => input.GatewayInstanceArn!, "{GatewayInstanceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -709,21 +564,13 @@ export const se_DescribeOfferingCommand = async ( input: DescribeOfferingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings/{OfferingArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "OfferingArn", () => input.OfferingArn!, "{OfferingArn}", false); + b.bp("/v1/offerings/{OfferingArn}"); + b.p("OfferingArn", () => input.OfferingArn!, "{OfferingArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -733,28 +580,13 @@ export const se_DescribeReservationCommand = async ( input: DescribeReservationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/reservations/{ReservationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReservationArn", - () => input.ReservationArn!, - "{ReservationArn}", - false - ); + b.bp("/v1/reservations/{ReservationArn}"); + b.p("ReservationArn", () => input.ReservationArn!, "{ReservationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -764,28 +596,20 @@ export const se_GrantFlowEntitlementsCommand = async ( input: GrantFlowEntitlementsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/entitlements"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}/entitlements"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; body = JSON.stringify( take(input, { entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -795,25 +619,17 @@ export const se_ListBridgesCommand = async ( input: ListBridgesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges"; + b.bp("/v1/bridges"); const query: any = map({ - filterArn: [, input.FilterArn!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_fA]: [, input[_FA]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -823,24 +639,16 @@ export const se_ListEntitlementsCommand = async ( input: ListEntitlementsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/entitlements"; + b.bp("/v1/entitlements"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -850,24 +658,16 @@ export const se_ListFlowsCommand = async ( input: ListFlowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows"; + b.bp("/v1/flows"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -877,25 +677,17 @@ export const se_ListGatewayInstancesCommand = async ( input: ListGatewayInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateway-instances"; + b.bp("/v1/gateway-instances"); const query: any = map({ - filterArn: [, input.FilterArn!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_fA]: [, input[_FA]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -905,24 +697,16 @@ export const se_ListGatewaysCommand = async ( input: ListGatewaysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways"; + b.bp("/v1/gateways"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -932,24 +716,16 @@ export const se_ListOfferingsCommand = async ( input: ListOfferingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings"; + b.bp("/v1/offerings"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -959,24 +735,16 @@ export const se_ListReservationsCommand = async ( input: ListReservationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/reservations"; + b.bp("/v1/reservations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -986,20 +754,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1009,13 +770,12 @@ export const se_PurchaseOfferingCommand = async ( input: PurchaseOfferingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings/{OfferingArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "OfferingArn", () => input.OfferingArn!, "{OfferingArn}", false); + b.bp("/v1/offerings/{OfferingArn}"); + b.p("OfferingArn", () => input.OfferingArn!, "{OfferingArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1023,15 +783,8 @@ export const se_PurchaseOfferingCommand = async ( start: [, , `Start`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1041,23 +794,14 @@ export const se_RemoveBridgeOutputCommand = async ( input: RemoveBridgeOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/bridges/{BridgeArn}/outputs/{OutputName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "OutputName", () => input.OutputName!, "{OutputName}", false); + b.bp("/v1/bridges/{BridgeArn}/outputs/{OutputName}"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.p("OutputName", () => input.OutputName!, "{OutputName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1067,23 +811,14 @@ export const se_RemoveBridgeSourceCommand = async ( input: RemoveBridgeSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/bridges/{BridgeArn}/sources/{SourceName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "SourceName", () => input.SourceName!, "{SourceName}", false); + b.bp("/v1/bridges/{BridgeArn}/sources/{SourceName}"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.p("SourceName", () => input.SourceName!, "{SourceName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1093,30 +828,14 @@ export const se_RemoveFlowMediaStreamCommand = async ( input: RemoveFlowMediaStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaStreamName", - () => input.MediaStreamName!, - "{MediaStreamName}", - false - ); + b.bp("/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.p("MediaStreamName", () => input.MediaStreamName!, "{MediaStreamName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1126,22 +845,14 @@ export const se_RemoveFlowOutputCommand = async ( input: RemoveFlowOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs/{OutputArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "OutputArn", () => input.OutputArn!, "{OutputArn}", false); + b.bp("/v1/flows/{FlowArn}/outputs/{OutputArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.p("OutputArn", () => input.OutputArn!, "{OutputArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1151,22 +862,14 @@ export const se_RemoveFlowSourceCommand = async ( input: RemoveFlowSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source/{SourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "SourceArn", () => input.SourceArn!, "{SourceArn}", false); + b.bp("/v1/flows/{FlowArn}/source/{SourceArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.p("SourceArn", () => input.SourceArn!, "{SourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1176,30 +879,14 @@ export const se_RemoveFlowVpcInterfaceCommand = async ( input: RemoveFlowVpcInterfaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/flows/{FlowArn}/vpcInterfaces/{VpcInterfaceName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VpcInterfaceName", - () => input.VpcInterfaceName!, - "{VpcInterfaceName}", - false - ); + b.bp("/v1/flows/{FlowArn}/vpcInterfaces/{VpcInterfaceName}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.p("VpcInterfaceName", () => input.VpcInterfaceName!, "{VpcInterfaceName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1209,30 +896,14 @@ export const se_RevokeFlowEntitlementCommand = async ( input: RevokeFlowEntitlementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/flows/{FlowArn}/entitlements/{EntitlementArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EntitlementArn", - () => input.EntitlementArn!, - "{EntitlementArn}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}/entitlements/{EntitlementArn}"); + b.p("EntitlementArn", () => input.EntitlementArn!, "{EntitlementArn}", false); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1242,21 +913,13 @@ export const se_StartFlowCommand = async ( input: StartFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/start/{FlowArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/start/{FlowArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1266,20 +929,13 @@ export const se_StopFlowCommand = async ( input: StopFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/stop/{FlowArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/stop/{FlowArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1289,27 +945,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1319,27 +968,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1349,12 +990,12 @@ export const se_UpdateBridgeCommand = async ( input: UpdateBridgeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.bp("/v1/bridges/{BridgeArn}"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1363,15 +1004,8 @@ export const se_UpdateBridgeCommand = async ( sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1381,30 +1015,21 @@ export const se_UpdateBridgeOutputCommand = async ( input: UpdateBridgeOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/bridges/{BridgeArn}/outputs/{OutputName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "OutputName", () => input.OutputName!, "{OutputName}", false); + b.bp("/v1/bridges/{BridgeArn}/outputs/{OutputName}"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.p("OutputName", () => input.OutputName!, "{OutputName}", false); let body: any; body = JSON.stringify( take(input, { networkOutput: [, (_) => se_UpdateBridgeNetworkOutputRequest(_, context), `NetworkOutput`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1414,15 +1039,13 @@ export const se_UpdateBridgeSourceCommand = async ( input: UpdateBridgeSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/bridges/{BridgeArn}/sources/{SourceName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "SourceName", () => input.SourceName!, "{SourceName}", false); + b.bp("/v1/bridges/{BridgeArn}/sources/{SourceName}"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.p("SourceName", () => input.SourceName!, "{SourceName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1430,15 +1053,8 @@ export const se_UpdateBridgeSourceCommand = async ( networkSource: [, (_) => se_UpdateBridgeNetworkSourceRequest(_, context), `NetworkSource`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1448,28 +1064,20 @@ export const se_UpdateBridgeStateCommand = async ( input: UpdateBridgeStateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/state"; - resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); + b.bp("/v1/bridges/{BridgeArn}/state"); + b.p("BridgeArn", () => input.BridgeArn!, "{BridgeArn}", false); let body: any; body = JSON.stringify( take(input, { desiredState: [, , `DesiredState`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1479,12 +1087,12 @@ export const se_UpdateFlowCommand = async ( input: UpdateFlowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1492,15 +1100,8 @@ export const se_UpdateFlowCommand = async ( sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1510,22 +1111,13 @@ export const se_UpdateFlowEntitlementCommand = async ( input: UpdateFlowEntitlementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/flows/{FlowArn}/entitlements/{EntitlementArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EntitlementArn", - () => input.EntitlementArn!, - "{EntitlementArn}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.bp("/v1/flows/{FlowArn}/entitlements/{EntitlementArn}"); + b.p("EntitlementArn", () => input.EntitlementArn!, "{EntitlementArn}", false); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1535,15 +1127,8 @@ export const se_UpdateFlowEntitlementCommand = async ( subscribers: [, (_) => _json(_), `Subscribers`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1553,22 +1138,13 @@ export const se_UpdateFlowMediaStreamCommand = async ( input: UpdateFlowMediaStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MediaStreamName", - () => input.MediaStreamName!, - "{MediaStreamName}", - false - ); + b.bp("/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.p("MediaStreamName", () => input.MediaStreamName!, "{MediaStreamName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1579,15 +1155,8 @@ export const se_UpdateFlowMediaStreamCommand = async ( videoFormat: [, , `VideoFormat`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1597,14 +1166,13 @@ export const se_UpdateFlowOutputCommand = async ( input: UpdateFlowOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs/{OutputArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "OutputArn", () => input.OutputArn!, "{OutputArn}", false); + b.bp("/v1/flows/{FlowArn}/outputs/{OutputArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.p("OutputArn", () => input.OutputArn!, "{OutputArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1629,15 +1197,8 @@ export const se_UpdateFlowOutputCommand = async ( vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1647,14 +1208,13 @@ export const se_UpdateFlowSourceCommand = async ( input: UpdateFlowSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source/{SourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn!, "{FlowArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "SourceArn", () => input.SourceArn!, "{SourceArn}", false); + b.bp("/v1/flows/{FlowArn}/source/{SourceArn}"); + b.p("FlowArn", () => input.FlowArn!, "{FlowArn}", false); + b.p("SourceArn", () => input.SourceArn!, "{SourceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -1682,15 +1242,8 @@ export const se_UpdateFlowSourceCommand = async ( whitelistCidr: [, , `WhitelistCidr`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1700,36 +1253,20 @@ export const se_UpdateGatewayInstanceCommand = async ( input: UpdateGatewayInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/gateway-instances/{GatewayInstanceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GatewayInstanceArn", - () => input.GatewayInstanceArn!, - "{GatewayInstanceArn}", - false - ); + b.bp("/v1/gateway-instances/{GatewayInstanceArn}"); + b.p("GatewayInstanceArn", () => input.GatewayInstanceArn!, "{GatewayInstanceArn}", false); let body: any; body = JSON.stringify( take(input, { bridgePlacement: [, , `BridgePlacement`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6536,6 +6073,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _F = "Force"; +const _FA = "FilterArn"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _f = "force"; +const _fA = "filterArn"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mediaconvert/package.json b/clients/client-mediaconvert/package.json index 1eccda0f015e..5c0fdeb335e3 100644 --- a/clients/client-mediaconvert/package.json +++ b/clients/client-mediaconvert/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mediaconvert/src/models/models_1.ts b/clients/client-mediaconvert/src/models/models_1.ts index 2c7b9a6e940e..0e26fd348bb2 100644 --- a/clients/client-mediaconvert/src/models/models_1.ts +++ b/clients/client-mediaconvert/src/models/models_1.ts @@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { MediaConvertServiceException as __BaseException } from "./MediaConvertServiceException"; + import { AccelerationSettings, AccelerationStatus, diff --git a/clients/client-mediaconvert/src/models/models_2.ts b/clients/client-mediaconvert/src/models/models_2.ts index b042e2cc4eea..35d72429de22 100644 --- a/clients/client-mediaconvert/src/models/models_2.ts +++ b/clients/client-mediaconvert/src/models/models_2.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { AccelerationSettings, Endpoint, HopDestination } from "./models_0"; + import { Job, JobStatus, diff --git a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts index a0fdf4affd41..2f989127f821 100644 --- a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -262,27 +263,19 @@ export const se_AssociateCertificateCommand = async ( input: AssociateCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/certificates"; + b.bp("/2017-08-29/certificates"); let body: any; body = JSON.stringify( take(input, { arn: [, , `Arn`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -292,20 +285,13 @@ export const se_CancelJobCommand = async ( input: CancelJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2017-08-29/jobs/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -315,11 +301,11 @@ export const se_CreateJobCommand = async ( input: CreateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs"; + b.bp("/2017-08-29/jobs"); let body: any; body = JSON.stringify( take(input, { @@ -338,15 +324,8 @@ export const se_CreateJobCommand = async ( userMetadata: [, (_) => _json(_), `UserMetadata`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -356,12 +335,11 @@ export const se_CreateJobTemplateCommand = async ( input: CreateJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates"; + b.bp("/2017-08-29/jobTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -377,15 +355,8 @@ export const se_CreateJobTemplateCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -395,11 +366,11 @@ export const se_CreatePresetCommand = async ( input: CreatePresetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets"; + b.bp("/2017-08-29/presets"); let body: any; body = JSON.stringify( take(input, { @@ -410,15 +381,8 @@ export const se_CreatePresetCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -428,11 +392,11 @@ export const se_CreateQueueCommand = async ( input: CreateQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues"; + b.bp("/2017-08-29/queues"); let body: any; body = JSON.stringify( take(input, { @@ -444,15 +408,8 @@ export const se_CreateQueueCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -462,21 +419,13 @@ export const se_DeleteJobTemplateCommand = async ( input: DeleteJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/jobTemplates/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -486,22 +435,15 @@ export const se_DeletePolicyCommand = async ( input: DeletePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy"; + b.bp("/2017-08-29/policy"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -511,21 +453,13 @@ export const se_DeletePresetCommand = async ( input: DeletePresetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/presets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -535,21 +469,13 @@ export const se_DeleteQueueCommand = async ( input: DeleteQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/queues/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -559,11 +485,11 @@ export const se_DescribeEndpointsCommand = async ( input: DescribeEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/endpoints"; + b.bp("/2017-08-29/endpoints"); let body: any; body = JSON.stringify( take(input, { @@ -572,15 +498,8 @@ export const se_DescribeEndpointsCommand = async ( nextToken: [, , `NextToken`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -590,41 +509,26 @@ export const se_DisassociateCertificateCommand = async ( input: DisassociateCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/certificates/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/2017-08-29/certificates/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetJobCommand */ export const se_GetJobCommand = async (input: GetJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2017-08-29/jobs/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -634,21 +538,13 @@ export const se_GetJobTemplateCommand = async ( input: GetJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/jobTemplates/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -658,22 +554,15 @@ export const se_GetPolicyCommand = async ( input: GetPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy"; + b.bp("/2017-08-29/policy"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -683,21 +572,13 @@ export const se_GetPresetCommand = async ( input: GetPresetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/presets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -707,21 +588,13 @@ export const se_GetQueueCommand = async ( input: GetQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/queues/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -731,27 +604,19 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobs"; + b.bp("/2017-08-29/jobs"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - order: [, input.Order!], - queue: [, input.Queue!], - status: [, input.Status!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_o]: [, input[_O]!], + [_q]: [, input[_Q]!], + [_s]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -761,28 +626,19 @@ export const se_ListJobTemplatesCommand = async ( input: ListJobTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates"; + b.bp("/2017-08-29/jobTemplates"); const query: any = map({ - category: [, input.Category!], - listBy: [, input.ListBy!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - order: [, input.Order!], + [_c]: [, input[_C]!], + [_lB]: [, input[_LB]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_o]: [, input[_O]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -792,27 +648,19 @@ export const se_ListPresetsCommand = async ( input: ListPresetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets"; + b.bp("/2017-08-29/presets"); const query: any = map({ - category: [, input.Category!], - listBy: [, input.ListBy!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - order: [, input.Order!], + [_c]: [, input[_C]!], + [_lB]: [, input[_LB]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_o]: [, input[_O]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -822,26 +670,18 @@ export const se_ListQueuesCommand = async ( input: ListQueuesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues"; + b.bp("/2017-08-29/queues"); const query: any = map({ - listBy: [, input.ListBy!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - order: [, input.Order!], + [_lB]: [, input[_LB]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_o]: [, input[_O]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -851,20 +691,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/tags/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/2017-08-29/tags/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -874,26 +707,19 @@ export const se_PutPolicyCommand = async ( input: PutPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/policy"; + b.bp("/2017-08-29/policy"); let body: any; body = JSON.stringify( take(input, { policy: [, (_) => se_Policy(_, context), `Policy`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -903,11 +729,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/tags"; + b.bp("/2017-08-29/tags"); let body: any; body = JSON.stringify( take(input, { @@ -915,15 +741,8 @@ export const se_TagResourceCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -933,27 +752,20 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/tags/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/2017-08-29/tags/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; body = JSON.stringify( take(input, { tagKeys: [, (_) => _json(_), `TagKeys`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -963,13 +775,12 @@ export const se_UpdateJobTemplateCommand = async ( input: UpdateJobTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/jobTemplates/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/jobTemplates/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -983,15 +794,8 @@ export const se_UpdateJobTemplateCommand = async ( statusUpdateInterval: [, , `StatusUpdateInterval`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1001,13 +805,12 @@ export const se_UpdatePresetCommand = async ( input: UpdatePresetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/presets/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/presets/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1016,15 +819,8 @@ export const se_UpdatePresetCommand = async ( settings: [, (_) => se_PresetSettings(_, context), `Settings`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1034,13 +830,12 @@ export const se_UpdateQueueCommand = async ( input: UpdateQueueCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-08-29/queues/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2017-08-29/queues/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1049,15 +844,8 @@ export const se_UpdateQueueCommand = async ( status: [, , `Status`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -8780,6 +8568,21 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _C = "Category"; +const _LB = "ListBy"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _O = "Order"; +const _Q = "Queue"; +const _S = "Status"; +const _c = "category"; +const _lB = "listBy"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _o = "order"; +const _q = "queue"; +const _s = "status"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-medialive/package.json b/clients/client-medialive/package.json index deb4141f100f..05d1c6a21b3c 100644 --- a/clients/client-medialive/package.json +++ b/clients/client-medialive/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-medialive/src/models/models_1.ts b/clients/client-medialive/src/models/models_1.ts index 7a4474644d8a..4454bcf36042 100644 --- a/clients/client-medialive/src/models/models_1.ts +++ b/clients/client-medialive/src/models/models_1.ts @@ -1,8 +1,10 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { MediaLiveServiceException as __BaseException } from "./MediaLiveServiceException"; + import { ArchiveGroupSettings, AudioDescription, diff --git a/clients/client-medialive/src/models/models_2.ts b/clients/client-medialive/src/models/models_2.ts index 3eac4018efbf..a0102b6ff4f2 100644 --- a/clients/client-medialive/src/models/models_2.ts +++ b/clients/client-medialive/src/models/models_2.ts @@ -32,6 +32,7 @@ import { OutputDestination, VpcOutputSettingsDescription, } from "./models_0"; + import { AccountConfiguration, Channel, diff --git a/clients/client-medialive/src/protocols/Aws_restJson1.ts b/clients/client-medialive/src/protocols/Aws_restJson1.ts index f4b2b2fecb40..573dc2b4306e 100644 --- a/clients/client-medialive/src/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -433,28 +434,13 @@ export const se_AcceptInputDeviceTransferCommand = async ( input: AcceptInputDeviceTransferCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/accept"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/accept"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -464,11 +450,11 @@ export const se_BatchDeleteCommand = async ( input: BatchDeleteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/delete"; + b.bp("/prod/batch/delete"); let body: any; body = JSON.stringify( take(input, { @@ -478,15 +464,8 @@ export const se_BatchDeleteCommand = async ( multiplexIds: [, (_) => _json(_), `MultiplexIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -496,11 +475,11 @@ export const se_BatchStartCommand = async ( input: BatchStartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/start"; + b.bp("/prod/batch/start"); let body: any; body = JSON.stringify( take(input, { @@ -508,15 +487,8 @@ export const se_BatchStartCommand = async ( multiplexIds: [, (_) => _json(_), `MultiplexIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -526,11 +498,11 @@ export const se_BatchStopCommand = async ( input: BatchStopCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/stop"; + b.bp("/prod/batch/stop"); let body: any; body = JSON.stringify( take(input, { @@ -538,15 +510,8 @@ export const se_BatchStopCommand = async ( multiplexIds: [, (_) => _json(_), `MultiplexIds`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -556,13 +521,12 @@ export const se_BatchUpdateScheduleCommand = async ( input: BatchUpdateScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}/schedule"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -570,15 +534,8 @@ export const se_BatchUpdateScheduleCommand = async ( deletes: [, (_) => se_BatchScheduleActionDeleteRequest(_, context), `Deletes`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -588,28 +545,13 @@ export const se_CancelInputDeviceTransferCommand = async ( input: CancelInputDeviceTransferCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/cancel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/cancel"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -619,26 +561,19 @@ export const se_ClaimDeviceCommand = async ( input: ClaimDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/claimDevice"; + b.bp("/prod/claimDevice"); let body: any; body = JSON.stringify( take(input, { id: [, , `Id`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -648,11 +583,11 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels"; + b.bp("/prod/channels"); let body: any; body = JSON.stringify( take(input, { @@ -672,15 +607,8 @@ export const se_CreateChannelCommand = async ( vpc: [, (_) => se_VpcOutputSettings(_, context), `Vpc`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -690,11 +618,11 @@ export const se_CreateInputCommand = async ( input: CreateInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs"; + b.bp("/prod/inputs"); let body: any; body = JSON.stringify( take(input, { @@ -711,15 +639,8 @@ export const se_CreateInputCommand = async ( vpc: [, (_) => se_InputVpcRequest(_, context), `Vpc`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -729,12 +650,11 @@ export const se_CreateInputSecurityGroupCommand = async ( input: CreateInputSecurityGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups"; + b.bp("/prod/inputSecurityGroups"); let body: any; body = JSON.stringify( take(input, { @@ -742,15 +662,8 @@ export const se_CreateInputSecurityGroupCommand = async ( whitelistRules: [, (_) => se___listOfInputWhitelistRuleCidr(_, context), `WhitelistRules`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -760,11 +673,11 @@ export const se_CreateMultiplexCommand = async ( input: CreateMultiplexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes"; + b.bp("/prod/multiplexes"); let body: any; body = JSON.stringify( take(input, { @@ -775,15 +688,8 @@ export const se_CreateMultiplexCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -793,13 +699,12 @@ export const se_CreateMultiplexProgramCommand = async ( input: CreateMultiplexProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.bp("/prod/multiplexes/{MultiplexId}/programs"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); let body: any; body = JSON.stringify( take(input, { @@ -808,15 +713,8 @@ export const se_CreateMultiplexProgramCommand = async ( requestId: [true, (_) => _ ?? generateIdempotencyToken(), `RequestId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -826,13 +724,12 @@ export const se_CreatePartnerInputCommand = async ( input: CreatePartnerInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}/partners"; - resolvedPath = __resolvedPath(resolvedPath, input, "InputId", () => input.InputId!, "{InputId}", false); + b.bp("/prod/inputs/{InputId}/partners"); + b.p("InputId", () => input.InputId!, "{InputId}", false); let body: any; body = JSON.stringify( take(input, { @@ -840,15 +737,8 @@ export const se_CreatePartnerInputCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -858,27 +748,20 @@ export const se_CreateTagsCommand = async ( input: CreateTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/prod/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -888,21 +771,13 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -912,20 +787,13 @@ export const se_DeleteInputCommand = async ( input: DeleteInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InputId", () => input.InputId!, "{InputId}", false); + b.bp("/prod/inputs/{InputId}"); + b.p("InputId", () => input.InputId!, "{InputId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -935,29 +803,13 @@ export const se_DeleteInputSecurityGroupCommand = async ( input: DeleteInputSecurityGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/inputSecurityGroups/{InputSecurityGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputSecurityGroupId", - () => input.InputSecurityGroupId!, - "{InputSecurityGroupId}", - false - ); + b.bp("/prod/inputSecurityGroups/{InputSecurityGroupId}"); + b.p("InputSecurityGroupId", () => input.InputSecurityGroupId!, "{InputSecurityGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -967,21 +819,13 @@ export const se_DeleteMultiplexCommand = async ( input: DeleteMultiplexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.bp("/prod/multiplexes/{MultiplexId}"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -991,23 +835,14 @@ export const se_DeleteMultiplexProgramCommand = async ( input: DeleteMultiplexProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName!, "{ProgramName}", false); + b.bp("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.p("ProgramName", () => input.ProgramName!, "{ProgramName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1017,28 +852,13 @@ export const se_DeleteReservationCommand = async ( input: DeleteReservationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReservationId", - () => input.ReservationId!, - "{ReservationId}", - false - ); + b.bp("/prod/reservations/{ReservationId}"); + b.p("ReservationId", () => input.ReservationId!, "{ReservationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1048,21 +868,13 @@ export const se_DeleteScheduleCommand = async ( input: DeleteScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}/schedule"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1072,27 +884,19 @@ export const se_DeleteTagsCommand = async ( input: DeleteTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/prod/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1102,23 +906,15 @@ export const se_DescribeAccountConfigurationCommand = async ( input: DescribeAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/accountConfiguration"; + b.bp("/prod/accountConfiguration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1128,21 +924,13 @@ export const se_DescribeChannelCommand = async ( input: DescribeChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1152,20 +940,13 @@ export const se_DescribeInputCommand = async ( input: DescribeInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InputId", () => input.InputId!, "{InputId}", false); + b.bp("/prod/inputs/{InputId}"); + b.p("InputId", () => input.InputId!, "{InputId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1175,28 +956,13 @@ export const se_DescribeInputDeviceCommand = async ( input: DescribeInputDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1206,31 +972,15 @@ export const se_DescribeInputDeviceThumbnailCommand = async ( input: DescribeInputDeviceThumbnailCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - accept: input.Accept!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/inputDevices/{InputDeviceId}/thumbnailData"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, + [_a]: input[_A]!, }); + b.bp("/prod/inputDevices/{InputDeviceId}/thumbnailData"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1240,29 +990,13 @@ export const se_DescribeInputSecurityGroupCommand = async ( input: DescribeInputSecurityGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/inputSecurityGroups/{InputSecurityGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputSecurityGroupId", - () => input.InputSecurityGroupId!, - "{InputSecurityGroupId}", - false - ); + b.bp("/prod/inputSecurityGroups/{InputSecurityGroupId}"); + b.p("InputSecurityGroupId", () => input.InputSecurityGroupId!, "{InputSecurityGroupId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1272,21 +1006,13 @@ export const se_DescribeMultiplexCommand = async ( input: DescribeMultiplexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.bp("/prod/multiplexes/{MultiplexId}"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1296,23 +1022,14 @@ export const se_DescribeMultiplexProgramCommand = async ( input: DescribeMultiplexProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName!, "{ProgramName}", false); + b.bp("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.p("ProgramName", () => input.ProgramName!, "{ProgramName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1322,21 +1039,13 @@ export const se_DescribeOfferingCommand = async ( input: DescribeOfferingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "OfferingId", () => input.OfferingId!, "{OfferingId}", false); + b.bp("/prod/offerings/{OfferingId}"); + b.p("OfferingId", () => input.OfferingId!, "{OfferingId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1346,28 +1055,13 @@ export const se_DescribeReservationCommand = async ( input: DescribeReservationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReservationId", - () => input.ReservationId!, - "{ReservationId}", - false - ); + b.bp("/prod/reservations/{ReservationId}"); + b.p("ReservationId", () => input.ReservationId!, "{ReservationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1377,26 +1071,17 @@ export const se_DescribeScheduleCommand = async ( input: DescribeScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}/schedule"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1406,26 +1091,17 @@ export const se_DescribeThumbnailsCommand = async ( input: DescribeThumbnailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/thumbnails"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}/thumbnails"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); const query: any = map({ - pipelineId: [, __expectNonNull(input.PipelineId!, `PipelineId`)], - thumbnailType: [, __expectNonNull(input.ThumbnailType!, `ThumbnailType`)], + [_pI]: [, __expectNonNull(input[_PI]!, `PipelineId`)], + [_tT]: [, __expectNonNull(input[_TT]!, `ThumbnailType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1435,24 +1111,16 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels"; + b.bp("/prod/channels"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1462,24 +1130,16 @@ export const se_ListInputDevicesCommand = async ( input: ListInputDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices"; + b.bp("/prod/inputDevices"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1489,26 +1149,17 @@ export const se_ListInputDeviceTransfersCommand = async ( input: ListInputDeviceTransfersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDeviceTransfers"; + b.bp("/prod/inputDeviceTransfers"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - transferType: [, __expectNonNull(input.TransferType!, `TransferType`)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_tTr]: [, __expectNonNull(input[_TTr]!, `TransferType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1518,24 +1169,16 @@ export const se_ListInputsCommand = async ( input: ListInputsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs"; + b.bp("/prod/inputs"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1545,25 +1188,16 @@ export const se_ListInputSecurityGroupsCommand = async ( input: ListInputSecurityGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups"; + b.bp("/prod/inputSecurityGroups"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1573,24 +1207,16 @@ export const se_ListMultiplexesCommand = async ( input: ListMultiplexesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes"; + b.bp("/prod/multiplexes"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1600,26 +1226,17 @@ export const se_ListMultiplexProgramsCommand = async ( input: ListMultiplexProgramsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.bp("/prod/multiplexes/{MultiplexId}/programs"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1629,34 +1246,26 @@ export const se_ListOfferingsCommand = async ( input: ListOfferingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings"; + b.bp("/prod/offerings"); const query: any = map({ - channelClass: [, input.ChannelClass!], - channelConfiguration: [, input.ChannelConfiguration!], - codec: [, input.Codec!], - duration: [, input.Duration!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - maximumBitrate: [, input.MaximumBitrate!], - maximumFramerate: [, input.MaximumFramerate!], - nextToken: [, input.NextToken!], - resolution: [, input.Resolution!], - resourceType: [, input.ResourceType!], - specialFeature: [, input.SpecialFeature!], - videoQuality: [, input.VideoQuality!], + [_cC]: [, input[_CC]!], + [_cCh]: [, input[_CCh]!], + [_c]: [, input[_C]!], + [_d]: [, input[_D]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_mB]: [, input[_MB]!], + [_mF]: [, input[_MF]!], + [_nT]: [, input[_NT]!], + [_r]: [, input[_R]!], + [_rT]: [, input[_RT]!], + [_sF]: [, input[_SF]!], + [_vQ]: [, input[_VQ]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1666,32 +1275,24 @@ export const se_ListReservationsCommand = async ( input: ListReservationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations"; + b.bp("/prod/reservations"); const query: any = map({ - channelClass: [, input.ChannelClass!], - codec: [, input.Codec!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - maximumBitrate: [, input.MaximumBitrate!], - maximumFramerate: [, input.MaximumFramerate!], - nextToken: [, input.NextToken!], - resolution: [, input.Resolution!], - resourceType: [, input.ResourceType!], - specialFeature: [, input.SpecialFeature!], - videoQuality: [, input.VideoQuality!], + [_cC]: [, input[_CC]!], + [_c]: [, input[_C]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_mB]: [, input[_MB]!], + [_mF]: [, input[_MF]!], + [_nT]: [, input[_NT]!], + [_r]: [, input[_R]!], + [_rT]: [, input[_RT]!], + [_sF]: [, input[_SF]!], + [_vQ]: [, input[_VQ]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1701,20 +1302,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/prod/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1724,13 +1318,12 @@ export const se_PurchaseOfferingCommand = async ( input: PurchaseOfferingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}/purchase"; - resolvedPath = __resolvedPath(resolvedPath, input, "OfferingId", () => input.OfferingId!, "{OfferingId}", false); + b.bp("/prod/offerings/{OfferingId}/purchase"); + b.p("OfferingId", () => input.OfferingId!, "{OfferingId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1742,15 +1335,8 @@ export const se_PurchaseOfferingCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1760,35 +1346,20 @@ export const se_RebootInputDeviceCommand = async ( input: RebootInputDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reboot"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/reboot"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; body = JSON.stringify( take(input, { force: [, , `Force`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1798,28 +1369,13 @@ export const se_RejectInputDeviceTransferCommand = async ( input: RejectInputDeviceTransferCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reject"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/reject"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1829,21 +1385,13 @@ export const se_StartChannelCommand = async ( input: StartChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}/start"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1853,28 +1401,13 @@ export const se_StartInputDeviceCommand = async ( input: StartInputDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/start"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/start"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1884,29 +1417,13 @@ export const se_StartInputDeviceMaintenanceWindowCommand = async ( input: StartInputDeviceMaintenanceWindowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/inputDevices/{InputDeviceId}/startInputDeviceMaintenanceWindow"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/startInputDeviceMaintenanceWindow"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1916,21 +1433,13 @@ export const se_StartMultiplexCommand = async ( input: StartMultiplexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.bp("/prod/multiplexes/{MultiplexId}/start"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1940,21 +1449,13 @@ export const se_StopChannelCommand = async ( input: StopChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}/stop"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1964,28 +1465,13 @@ export const se_StopInputDeviceCommand = async ( input: StopInputDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/stop"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1995,21 +1481,13 @@ export const se_StopMultiplexCommand = async ( input: StopMultiplexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.bp("/prod/multiplexes/{MultiplexId}/stop"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2019,21 +1497,12 @@ export const se_TransferInputDeviceCommand = async ( input: TransferInputDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/inputDevices/{InputDeviceId}/transfer"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}/transfer"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2042,15 +1511,8 @@ export const se_TransferInputDeviceCommand = async ( transferMessage: [, , `TransferMessage`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2060,27 +1522,19 @@ export const se_UpdateAccountConfigurationCommand = async ( input: UpdateAccountConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/accountConfiguration"; + b.bp("/prod/accountConfiguration"); let body: any; body = JSON.stringify( take(input, { accountConfiguration: [, (_) => se_AccountConfiguration(_, context), `AccountConfiguration`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2090,13 +1544,12 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2111,15 +1564,8 @@ export const se_UpdateChannelCommand = async ( roleArn: [, , `RoleArn`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2129,13 +1575,12 @@ export const se_UpdateChannelClassCommand = async ( input: UpdateChannelClassCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/channelClass"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelId", () => input.ChannelId!, "{ChannelId}", false); + b.bp("/prod/channels/{ChannelId}/channelClass"); + b.p("ChannelId", () => input.ChannelId!, "{ChannelId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2143,15 +1588,8 @@ export const se_UpdateChannelClassCommand = async ( destinations: [, (_) => se___listOfOutputDestination(_, context), `Destinations`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2161,12 +1599,12 @@ export const se_UpdateInputCommand = async ( input: UpdateInputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InputId", () => input.InputId!, "{InputId}", false); + b.bp("/prod/inputs/{InputId}"); + b.p("InputId", () => input.InputId!, "{InputId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2179,15 +1617,8 @@ export const se_UpdateInputCommand = async ( sources: [, (_) => se___listOfInputSourceRequest(_, context), `Sources`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2197,20 +1628,12 @@ export const se_UpdateInputDeviceCommand = async ( input: UpdateInputDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputDeviceId", - () => input.InputDeviceId!, - "{InputDeviceId}", - false - ); + b.bp("/prod/inputDevices/{InputDeviceId}"); + b.p("InputDeviceId", () => input.InputDeviceId!, "{InputDeviceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2220,15 +1643,8 @@ export const se_UpdateInputDeviceCommand = async ( uhdDeviceSettings: [, (_) => se_InputDeviceConfigurableSettings(_, context), `UhdDeviceSettings`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2238,21 +1654,12 @@ export const se_UpdateInputSecurityGroupCommand = async ( input: UpdateInputSecurityGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/inputSecurityGroups/{InputSecurityGroupId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InputSecurityGroupId", - () => input.InputSecurityGroupId!, - "{InputSecurityGroupId}", - false - ); + b.bp("/prod/inputSecurityGroups/{InputSecurityGroupId}"); + b.p("InputSecurityGroupId", () => input.InputSecurityGroupId!, "{InputSecurityGroupId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2260,15 +1667,8 @@ export const se_UpdateInputSecurityGroupCommand = async ( whitelistRules: [, (_) => se___listOfInputWhitelistRuleCidr(_, context), `WhitelistRules`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2278,13 +1678,12 @@ export const se_UpdateMultiplexCommand = async ( input: UpdateMultiplexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.bp("/prod/multiplexes/{MultiplexId}"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2292,15 +1691,8 @@ export const se_UpdateMultiplexCommand = async ( name: [, , `Name`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2310,30 +1702,21 @@ export const se_UpdateMultiplexProgramCommand = async ( input: UpdateMultiplexProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName!, "{ProgramName}", false); + b.bp("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}"); + b.p("MultiplexId", () => input.MultiplexId!, "{MultiplexId}", false); + b.p("ProgramName", () => input.ProgramName!, "{ProgramName}", false); let body: any; body = JSON.stringify( take(input, { multiplexProgramSettings: [, (_) => se_MultiplexProgramSettings(_, context), `MultiplexProgramSettings`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2343,20 +1726,12 @@ export const se_UpdateReservationCommand = async ( input: UpdateReservationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReservationId", - () => input.ReservationId!, - "{ReservationId}", - false - ); + b.bp("/prod/reservations/{ReservationId}"); + b.p("ReservationId", () => input.ReservationId!, "{ReservationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2364,15 +1739,8 @@ export const se_UpdateReservationCommand = async ( renewalSettings: [, (_) => se_RenewalSettings(_, context), `RenewalSettings`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4165,16 +3533,10 @@ export const de_DescribeInputDeviceThumbnailCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], - ContentLength: [ - () => void 0 !== output.headers["content-length"], - () => __strictParseLong(output.headers["content-length"]), - ], - ETag: [, output.headers["etag"]], - LastModified: [ - () => void 0 !== output.headers["last-modified"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["last-modified"])), - ], + [_CT]: [, output.headers[_ct]], + [_CL]: [() => void 0 !== output.headers[_cl], () => __strictParseLong(output.headers[_cl])], + [_ET]: [, output.headers[_e]], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -13198,6 +12560,49 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Accept"; +const _C = "Codec"; +const _CC = "ChannelClass"; +const _CCh = "ChannelConfiguration"; +const _CL = "ContentLength"; +const _CT = "ContentType"; +const _D = "Duration"; +const _ET = "ETag"; +const _LM = "LastModified"; +const _MB = "MaximumBitrate"; +const _MF = "MaximumFramerate"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _PI = "PipelineId"; +const _R = "Resolution"; +const _RT = "ResourceType"; +const _SF = "SpecialFeature"; +const _TK = "TagKeys"; +const _TT = "ThumbnailType"; +const _TTr = "TransferType"; +const _VQ = "VideoQuality"; +const _a = "accept"; +const _c = "codec"; +const _cC = "channelClass"; +const _cCh = "channelConfiguration"; +const _cl = "content-length"; +const _ct = "content-type"; +const _d = "duration"; +const _e = "etag"; +const _lm = "last-modified"; +const _mB = "maximumBitrate"; +const _mF = "maximumFramerate"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pI = "pipelineId"; +const _r = "resolution"; +const _rT = "resourceType"; +const _sF = "specialFeature"; +const _tK = "tagKeys"; +const _tT = "thumbnailType"; +const _tTr = "transferType"; +const _vQ = "videoQuality"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mediapackage-vod/package.json b/clients/client-mediapackage-vod/package.json index 7ec6059bbcce..d8de629c2a3c 100644 --- a/clients/client-mediapackage-vod/package.json +++ b/clients/client-mediapackage-vod/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts b/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts index d268b5eda07b..8f23664dc17b 100644 --- a/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -106,28 +107,20 @@ export const se_ConfigureLogsCommand = async ( input: ConfigureLogsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}/configure_logs"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/packaging_groups/{Id}/configure_logs"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -137,11 +130,11 @@ export const se_CreateAssetCommand = async ( input: CreateAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets"; + b.bp("/assets"); let body: any; body = JSON.stringify( take(input, { @@ -153,15 +146,8 @@ export const se_CreateAssetCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -171,12 +157,11 @@ export const se_CreatePackagingConfigurationCommand = async ( input: CreatePackagingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations"; + b.bp("/packaging_configurations"); let body: any; body = JSON.stringify( take(input, { @@ -189,15 +174,8 @@ export const se_CreatePackagingConfigurationCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -207,11 +185,11 @@ export const se_CreatePackagingGroupCommand = async ( input: CreatePackagingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups"; + b.bp("/packaging_groups"); let body: any; body = JSON.stringify( take(input, { @@ -221,15 +199,8 @@ export const se_CreatePackagingGroupCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -239,20 +210,13 @@ export const se_DeleteAssetCommand = async ( input: DeleteAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/assets/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -262,21 +226,13 @@ export const se_DeletePackagingConfigurationCommand = async ( input: DeletePackagingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/packaging_configurations/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -286,20 +242,13 @@ export const se_DeletePackagingGroupCommand = async ( input: DeletePackagingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/packaging_groups/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -309,20 +258,13 @@ export const se_DescribeAssetCommand = async ( input: DescribeAssetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/assets/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -332,21 +274,13 @@ export const se_DescribePackagingConfigurationCommand = async ( input: DescribePackagingConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/packaging_configurations/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -356,20 +290,13 @@ export const se_DescribePackagingGroupCommand = async ( input: DescribePackagingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/packaging_groups/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -379,25 +306,17 @@ export const se_ListAssetsCommand = async ( input: ListAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets"; + b.bp("/assets"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - packagingGroupId: [, input.PackagingGroupId!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_pGI]: [, input[_PGI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -407,26 +326,17 @@ export const se_ListPackagingConfigurationsCommand = async ( input: ListPackagingConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations"; + b.bp("/packaging_configurations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - packagingGroupId: [, input.PackagingGroupId!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_pGI]: [, input[_PGI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -436,24 +346,16 @@ export const se_ListPackagingGroupsCommand = async ( input: ListPackagingGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups"; + b.bp("/packaging_groups"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -463,20 +365,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -486,27 +381,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -516,27 +404,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -546,27 +426,20 @@ export const se_UpdatePackagingGroupCommand = async ( input: UpdatePackagingGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/packaging_groups/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { authorization: [, (_) => se_Authorization(_, context), `Authorization`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2296,6 +2169,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _PGI = "PackagingGroupId"; +const _TK = "TagKeys"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _pGI = "packagingGroupId"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mediapackage/package.json b/clients/client-mediapackage/package.json index 66953141d707..b1224fb5f10b 100644 --- a/clients/client-mediapackage/package.json +++ b/clients/client-mediapackage/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mediapackage/src/protocols/Aws_restJson1.ts b/clients/client-mediapackage/src/protocols/Aws_restJson1.ts index e1d8b2376165..ca5578242b3c 100644 --- a/clients/client-mediapackage/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -106,13 +107,12 @@ export const se_ConfigureLogsCommand = async ( input: ConfigureLogsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}/configure_logs"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/channels/{Id}/configure_logs"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -120,15 +120,8 @@ export const se_ConfigureLogsCommand = async ( ingressAccessLogs: [, (_) => se_IngressAccessLogs(_, context), `IngressAccessLogs`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -138,11 +131,11 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); let body: any; body = JSON.stringify( take(input, { @@ -151,15 +144,8 @@ export const se_CreateChannelCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -169,11 +155,11 @@ export const se_CreateHarvestJobCommand = async ( input: CreateHarvestJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/harvest_jobs"; + b.bp("/harvest_jobs"); let body: any; body = JSON.stringify( take(input, { @@ -184,15 +170,8 @@ export const se_CreateHarvestJobCommand = async ( startTime: [, , `StartTime`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -202,11 +181,11 @@ export const se_CreateOriginEndpointCommand = async ( input: CreateOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints"; + b.bp("/origin_endpoints"); let body: any; body = JSON.stringify( take(input, { @@ -226,15 +205,8 @@ export const se_CreateOriginEndpointCommand = async ( whitelist: [, (_) => _json(_), `Whitelist`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -244,20 +216,13 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/channels/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -267,20 +232,13 @@ export const se_DeleteOriginEndpointCommand = async ( input: DeleteOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/origin_endpoints/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -290,20 +248,13 @@ export const se_DescribeChannelCommand = async ( input: DescribeChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/channels/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -313,20 +264,13 @@ export const se_DescribeHarvestJobCommand = async ( input: DescribeHarvestJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/harvest_jobs/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/harvest_jobs/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -336,20 +280,13 @@ export const se_DescribeOriginEndpointCommand = async ( input: DescribeOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/origin_endpoints/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -359,24 +296,16 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -386,26 +315,18 @@ export const se_ListHarvestJobsCommand = async ( input: ListHarvestJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/harvest_jobs"; + b.bp("/harvest_jobs"); const query: any = map({ - includeChannelId: [, input.IncludeChannelId!], - includeStatus: [, input.IncludeStatus!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_iCI]: [, input[_ICI]!], + [_iS]: [, input[_IS]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -415,25 +336,17 @@ export const se_ListOriginEndpointsCommand = async ( input: ListOriginEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints"; + b.bp("/origin_endpoints"); const query: any = map({ - channelId: [, input.ChannelId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cI]: [, input[_CI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -443,20 +356,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -466,21 +372,13 @@ export const se_RotateChannelCredentialsCommand = async ( input: RotateChannelCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}/credentials"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/channels/{Id}/credentials"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -490,30 +388,14 @@ export const se_RotateIngestEndpointCredentialsCommand = async ( input: RotateIngestEndpointCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IngestEndpointId", - () => input.IngestEndpointId!, - "{IngestEndpointId}", - false - ); + b.bp("/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials"); + b.p("Id", () => input.Id!, "{Id}", false); + b.p("IngestEndpointId", () => input.IngestEndpointId!, "{IngestEndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -523,27 +405,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -553,27 +428,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -583,27 +450,20 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/channels/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { description: [, , `Description`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -613,12 +473,12 @@ export const se_UpdateOriginEndpointCommand = async ( input: UpdateOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/origin_endpoints/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/origin_endpoints/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -635,15 +495,8 @@ export const se_UpdateOriginEndpointCommand = async ( whitelist: [, (_) => _json(_), `Whitelist`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2584,6 +2437,19 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CI = "ChannelId"; +const _ICI = "IncludeChannelId"; +const _IS = "IncludeStatus"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _cI = "channelId"; +const _iCI = "includeChannelId"; +const _iS = "includeStatus"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mediapackagev2/package.json b/clients/client-mediapackagev2/package.json index b93e0db0173f..ff5ce97e2ea1 100644 --- a/clients/client-mediapackagev2/package.json +++ b/clients/client-mediapackagev2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts b/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts index 65591c2e7b40..9389ffb0d06d 100644 --- a/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackagev2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -109,21 +110,13 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channelGroup/{ChannelGroupName}/channel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); + [_xact]: input[_CT]!, + }); + b.bp("/channelGroup/{ChannelGroupName}/channel"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -132,15 +125,8 @@ export const se_CreateChannelCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -150,12 +136,12 @@ export const se_CreateChannelGroupCommand = async ( input: CreateChannelGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, + [_xact]: input[_CT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channelGroup"; + b.bp("/channelGroup"); let body: any; body = JSON.stringify( take(input, { @@ -164,15 +150,8 @@ export const se_CreateChannelGroupCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -182,23 +161,14 @@ export const se_CreateOriginEndpointCommand = async ( input: CreateOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amzn-client-token": input.ClientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + [_xact]: input[_CT]!, + }); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; body = JSON.stringify( take(input, { @@ -212,15 +182,8 @@ export const se_CreateOriginEndpointCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -230,30 +193,14 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -263,28 +210,13 @@ export const se_DeleteChannelGroupCommand = async ( input: DeleteChannelGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channelGroup/{ChannelGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -294,30 +226,14 @@ export const se_DeleteChannelPolicyCommand = async ( input: DeleteChannelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -327,38 +243,15 @@ export const se_DeleteOriginEndpointCommand = async ( input: DeleteOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OriginEndpointName", - () => input.OriginEndpointName!, - "{OriginEndpointName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("OriginEndpointName", () => input.OriginEndpointName!, "{OriginEndpointName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -368,38 +261,15 @@ export const se_DeleteOriginEndpointPolicyCommand = async ( input: DeleteOriginEndpointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OriginEndpointName", - () => input.OriginEndpointName!, - "{OriginEndpointName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("OriginEndpointName", () => input.OriginEndpointName!, "{OriginEndpointName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -409,30 +279,14 @@ export const se_GetChannelCommand = async ( input: GetChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -442,28 +296,13 @@ export const se_GetChannelGroupCommand = async ( input: GetChannelGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channelGroup/{ChannelGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -473,30 +312,14 @@ export const se_GetChannelPolicyCommand = async ( input: GetChannelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -506,38 +329,15 @@ export const se_GetOriginEndpointCommand = async ( input: GetOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OriginEndpointName", - () => input.OriginEndpointName!, - "{OriginEndpointName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("OriginEndpointName", () => input.OriginEndpointName!, "{OriginEndpointName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -547,38 +347,15 @@ export const se_GetOriginEndpointPolicyCommand = async ( input: GetOriginEndpointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OriginEndpointName", - () => input.OriginEndpointName!, - "{OriginEndpointName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("OriginEndpointName", () => input.OriginEndpointName!, "{OriginEndpointName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -588,24 +365,16 @@ export const se_ListChannelGroupsCommand = async ( input: ListChannelGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channelGroup"; + b.bp("/channelGroup"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -615,33 +384,17 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channelGroup/{ChannelGroupName}/channel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}/channel"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -651,35 +404,18 @@ export const se_ListOriginEndpointsCommand = async ( input: ListOriginEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -689,20 +425,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -712,37 +441,21 @@ export const se_PutChannelPolicyCommand = async ( input: PutChannelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; body = JSON.stringify( take(input, { Policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -752,45 +465,22 @@ export const se_PutOriginEndpointPolicyCommand = async ( input: PutOriginEndpointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OriginEndpointName", - () => input.OriginEndpointName!, - "{OriginEndpointName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("OriginEndpointName", () => input.OriginEndpointName!, "{OriginEndpointName}", false); let body: any; body = JSON.stringify( take(input, { Policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -800,27 +490,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -830,27 +513,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -860,37 +535,21 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -900,35 +559,20 @@ export const se_UpdateChannelGroupCommand = async ( input: UpdateChannelGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channelGroup/{ChannelGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -938,30 +582,14 @@ export const se_UpdateOriginEndpointCommand = async ( input: UpdateOriginEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ChannelGroupName", - () => input.ChannelGroupName!, - "{ChannelGroupName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OriginEndpointName", - () => input.OriginEndpointName!, - "{OriginEndpointName}", - false - ); + b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}"); + b.p("ChannelGroupName", () => input.ChannelGroupName!, "{ChannelGroupName}", false); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("OriginEndpointName", () => input.OriginEndpointName!, "{OriginEndpointName}", false); let body: any; body = JSON.stringify( take(input, { @@ -973,15 +601,8 @@ export const se_UpdateOriginEndpointCommand = async ( StartoverWindowSeconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2868,6 +2489,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ClientToken"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; +const _xact = "x-amzn-client-token"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mediastore-data/package.json b/clients/client-mediastore-data/package.json index 7ab83ddc8ddb..0e5874ae5cee 100644 --- a/clients/client-mediastore-data/package.json +++ b/clients/client-mediastore-data/package.json @@ -36,6 +36,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mediastore-data/src/models/models_0.ts b/clients/client-mediastore-data/src/models/models_0.ts index 1c6a3b76f8dc..0687306944f6 100644 --- a/clients/client-mediastore-data/src/models/models_0.ts +++ b/clients/client-mediastore-data/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { MediaStoreDataServiceException as __BaseException } from "./MediaStoreDataServiceException"; diff --git a/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts b/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts index 38061923206c..8fcda1d6ad1e 100644 --- a/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediastore-data/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -46,20 +47,13 @@ export const se_DeleteObjectCommand = async ( input: DeleteObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Path", () => input.Path!, "{Path+}", true); + b.bp("/{Path+}"); + b.p("Path", () => input.Path!, "{Path+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -69,20 +63,13 @@ export const se_DescribeObjectCommand = async ( input: DescribeObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Path", () => input.Path!, "{Path+}", true); + b.bp("/{Path+}"); + b.p("Path", () => input.Path!, "{Path+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "HEAD", - headers, - path: resolvedPath, - body, - }); + b.m("HEAD").h(headers).b(body); + return b.build(); }; /** @@ -92,22 +79,15 @@ export const se_GetObjectCommand = async ( input: GetObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - range: input.Range!, + [_r]: input[_R]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Path", () => input.Path!, "{Path+}", true); + b.bp("/{Path+}"); + b.p("Path", () => input.Path!, "{Path+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -117,25 +97,17 @@ export const se_ListItemsCommand = async ( input: ListItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; + b.bp("/"); const query: any = map({ - Path: [, input.Path!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_P]: [, input[_P]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -145,29 +117,22 @@ export const se_PutObjectCommand = async ( input: PutObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", - "content-type": input.ContentType! || "application/octet-stream", - "cache-control": input.CacheControl!, - "x-amz-storage-class": input.StorageClass!, - "x-amz-upload-availability": input.UploadAvailability!, + [_ct]: input[_CT]! || "application/octet-stream", + [_cc]: input[_CC]!, + [_xasc]: input[_SC]!, + [_xaua]: input[_UA]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Path+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Path", () => input.Path!, "{Path+}", true); + b.bp("/{Path+}"); + b.p("Path", () => input.Path!, "{Path+}", true); let body: any; if (input.Body !== undefined) { body = input.Body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -231,17 +196,11 @@ export const de_DescribeObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ETag: [, output.headers["etag"]], - ContentType: [, output.headers["content-type"]], - ContentLength: [ - () => void 0 !== output.headers["content-length"], - () => __strictParseLong(output.headers["content-length"]), - ], - CacheControl: [, output.headers["cache-control"]], - LastModified: [ - () => void 0 !== output.headers["last-modified"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["last-modified"])), - ], + [_ET]: [, output.headers[_e]], + [_CT]: [, output.headers[_ct]], + [_CL]: [() => void 0 !== output.headers[_cl], () => __strictParseLong(output.headers[_cl])], + [_CC]: [, output.headers[_cc]], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], }); await collectBody(output.body, context); return contents; @@ -291,18 +250,12 @@ export const de_GetObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - CacheControl: [, output.headers["cache-control"]], - ContentRange: [, output.headers["content-range"]], - ContentLength: [ - () => void 0 !== output.headers["content-length"], - () => __strictParseLong(output.headers["content-length"]), - ], - ContentType: [, output.headers["content-type"]], - ETag: [, output.headers["etag"]], - LastModified: [ - () => void 0 !== output.headers["last-modified"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["last-modified"])), - ], + [_CC]: [, output.headers[_cc]], + [_CR]: [, output.headers[_cr]], + [_CL]: [() => void 0 !== output.headers[_cl], () => __strictParseLong(output.headers[_cl])], + [_CT]: [, output.headers[_ct]], + [_ET]: [, output.headers[_e]], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -574,6 +527,28 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CC = "CacheControl"; +const _CL = "ContentLength"; +const _CR = "ContentRange"; +const _CT = "ContentType"; +const _ET = "ETag"; +const _LM = "LastModified"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _P = "Path"; +const _R = "Range"; +const _SC = "StorageClass"; +const _UA = "UploadAvailability"; +const _cc = "cache-control"; +const _cl = "content-length"; +const _cr = "content-range"; +const _ct = "content-type"; +const _e = "etag"; +const _lm = "last-modified"; +const _r = "range"; +const _xasc = "x-amz-storage-class"; +const _xaua = "x-amz-upload-availability"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mediatailor/package.json b/clients/client-mediatailor/package.json index 3450c367a0d4..bb8d00a882b5 100644 --- a/clients/client-mediatailor/package.json +++ b/clients/client-mediatailor/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts index 00a403c5e6b3..c79dc0fd6f95 100644 --- a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -171,11 +172,11 @@ export const se_ConfigureLogsForChannelCommand = async ( input: ConfigureLogsForChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/channel"; + b.bp("/configureLogs/channel"); let body: any; body = JSON.stringify( take(input, { @@ -183,15 +184,8 @@ export const se_ConfigureLogsForChannelCommand = async ( LogTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -201,12 +195,11 @@ export const se_ConfigureLogsForPlaybackConfigurationCommand = async ( input: ConfigureLogsForPlaybackConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration"; + b.bp("/configureLogs/playbackConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -214,15 +207,8 @@ export const se_ConfigureLogsForPlaybackConfigurationCommand = async ( PlaybackConfigurationName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -232,12 +218,12 @@ export const se_CreateChannelCommand = async ( input: CreateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; body = JSON.stringify( take(input, { @@ -248,15 +234,8 @@ export const se_CreateChannelCommand = async ( Tier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -266,29 +245,13 @@ export const se_CreateLiveSourceCommand = async ( input: CreateLiveSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LiveSourceName", - () => input.LiveSourceName!, - "{LiveSourceName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"); + b.p("LiveSourceName", () => input.LiveSourceName!, "{LiveSourceName}", false); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -296,15 +259,8 @@ export const se_CreateLiveSourceCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -314,22 +270,13 @@ export const se_CreatePrefetchScheduleCommand = async ( input: CreatePrefetchScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prefetchSchedule/{PlaybackConfigurationName}/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PlaybackConfigurationName", - () => input.PlaybackConfigurationName!, - "{PlaybackConfigurationName}", - false - ); + b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); + b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName!, "{PlaybackConfigurationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -338,15 +285,8 @@ export const se_CreatePrefetchScheduleCommand = async ( StreamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -356,15 +296,13 @@ export const se_CreateProgramCommand = async ( input: CreateProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channel/{ChannelName}/program/{ProgramName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName!, "{ProgramName}", false); + b.bp("/channel/{ChannelName}/program/{ProgramName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("ProgramName", () => input.ProgramName!, "{ProgramName}", false); let body: any; body = JSON.stringify( take(input, { @@ -375,15 +313,8 @@ export const se_CreateProgramCommand = async ( VodSourceName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -393,20 +324,12 @@ export const se_CreateSourceLocationCommand = async ( input: CreateSourceLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -417,15 +340,8 @@ export const se_CreateSourceLocationCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -435,29 +351,13 @@ export const se_CreateVodSourceCommand = async ( input: CreateVodSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VodSourceName", - () => input.VodSourceName!, - "{VodSourceName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); + b.p("VodSourceName", () => input.VodSourceName!, "{VodSourceName}", false); let body: any; body = JSON.stringify( take(input, { @@ -465,15 +365,8 @@ export const se_CreateVodSourceCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -483,20 +376,13 @@ export const se_DeleteChannelCommand = async ( input: DeleteChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -506,21 +392,13 @@ export const se_DeleteChannelPolicyCommand = async ( input: DeleteChannelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}/policy"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -530,37 +408,14 @@ export const se_DeleteLiveSourceCommand = async ( input: DeleteLiveSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LiveSourceName", - () => input.LiveSourceName!, - "{LiveSourceName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"); + b.p("LiveSourceName", () => input.LiveSourceName!, "{LiveSourceName}", false); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -570,21 +425,13 @@ export const se_DeletePlaybackConfigurationCommand = async ( input: DeletePlaybackConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/playbackConfiguration/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -594,30 +441,14 @@ export const se_DeletePrefetchScheduleCommand = async ( input: DeletePrefetchScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prefetchSchedule/{PlaybackConfigurationName}/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PlaybackConfigurationName", - () => input.PlaybackConfigurationName!, - "{PlaybackConfigurationName}", - false - ); + b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); + b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName!, "{PlaybackConfigurationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -627,23 +458,14 @@ export const se_DeleteProgramCommand = async ( input: DeleteProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channel/{ChannelName}/program/{ProgramName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName!, "{ProgramName}", false); + b.bp("/channel/{ChannelName}/program/{ProgramName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("ProgramName", () => input.ProgramName!, "{ProgramName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -653,28 +475,13 @@ export const se_DeleteSourceLocationCommand = async ( input: DeleteSourceLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -684,37 +491,14 @@ export const se_DeleteVodSourceCommand = async ( input: DeleteVodSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VodSourceName", - () => input.VodSourceName!, - "{VodSourceName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); + b.p("VodSourceName", () => input.VodSourceName!, "{VodSourceName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -724,20 +508,13 @@ export const se_DescribeChannelCommand = async ( input: DescribeChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -747,37 +524,14 @@ export const se_DescribeLiveSourceCommand = async ( input: DescribeLiveSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LiveSourceName", - () => input.LiveSourceName!, - "{LiveSourceName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"); + b.p("LiveSourceName", () => input.LiveSourceName!, "{LiveSourceName}", false); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -787,23 +541,14 @@ export const se_DescribeProgramCommand = async ( input: DescribeProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channel/{ChannelName}/program/{ProgramName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName!, "{ProgramName}", false); + b.bp("/channel/{ChannelName}/program/{ProgramName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("ProgramName", () => input.ProgramName!, "{ProgramName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -813,28 +558,13 @@ export const se_DescribeSourceLocationCommand = async ( input: DescribeSourceLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -844,37 +574,14 @@ export const se_DescribeVodSourceCommand = async ( input: DescribeVodSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VodSourceName", - () => input.VodSourceName!, - "{VodSourceName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); + b.p("VodSourceName", () => input.VodSourceName!, "{VodSourceName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -884,21 +591,13 @@ export const se_GetChannelPolicyCommand = async ( input: GetChannelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}/policy"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -908,27 +607,18 @@ export const se_GetChannelScheduleCommand = async ( input: GetChannelScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/schedule"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}/schedule"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); const query: any = map({ - durationMinutes: [, input.DurationMinutes!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_dM]: [, input[_DM]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -938,21 +628,13 @@ export const se_GetPlaybackConfigurationCommand = async ( input: GetPlaybackConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/playbackConfiguration/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -962,30 +644,14 @@ export const se_GetPrefetchScheduleCommand = async ( input: GetPrefetchScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prefetchSchedule/{PlaybackConfigurationName}/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PlaybackConfigurationName", - () => input.PlaybackConfigurationName!, - "{PlaybackConfigurationName}", - false - ); + b.bp("/prefetchSchedule/{PlaybackConfigurationName}/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); + b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName!, "{PlaybackConfigurationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -995,25 +661,17 @@ export const se_ListAlertsCommand = async ( input: ListAlertsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alerts"; + b.bp("/alerts"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - resourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_rA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1023,24 +681,16 @@ export const se_ListChannelsCommand = async ( input: ListChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels"; + b.bp("/channels"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1050,34 +700,17 @@ export const se_ListLiveSourcesCommand = async ( input: ListLiveSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/liveSources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/liveSources"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1087,25 +720,16 @@ export const se_ListPlaybackConfigurationsCommand = async ( input: ListPlaybackConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations"; + b.bp("/playbackConfigurations"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1115,21 +739,12 @@ export const se_ListPrefetchSchedulesCommand = async ( input: ListPrefetchSchedulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/prefetchSchedule/{PlaybackConfigurationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PlaybackConfigurationName", - () => input.PlaybackConfigurationName!, - "{PlaybackConfigurationName}", - false - ); + b.bp("/prefetchSchedule/{PlaybackConfigurationName}"); + b.p("PlaybackConfigurationName", () => input.PlaybackConfigurationName!, "{PlaybackConfigurationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1138,15 +753,8 @@ export const se_ListPrefetchSchedulesCommand = async ( StreamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1156,24 +764,16 @@ export const se_ListSourceLocationsCommand = async ( input: ListSourceLocationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations"; + b.bp("/sourceLocations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1183,20 +783,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1206,34 +799,17 @@ export const se_ListVodSourcesCommand = async ( input: ListVodSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/vodSources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/vodSources"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1243,28 +819,20 @@ export const se_PutChannelPolicyCommand = async ( input: PutChannelPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}/policy"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; body = JSON.stringify( take(input, { Policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1274,11 +842,11 @@ export const se_PutPlaybackConfigurationCommand = async ( input: PutPlaybackConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration"; + b.bp("/playbackConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1298,15 +866,8 @@ export const se_PutPlaybackConfigurationCommand = async ( VideoContentSourceUrl: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1316,21 +877,13 @@ export const se_StartChannelCommand = async ( input: StartChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}/start"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1340,21 +893,13 @@ export const se_StopChannelCommand = async ( input: StopChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}/stop"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1364,27 +909,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1394,27 +932,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1424,12 +954,12 @@ export const se_UpdateChannelCommand = async ( input: UpdateChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.bp("/channel/{ChannelName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1437,15 +967,8 @@ export const se_UpdateChannelCommand = async ( Outputs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1455,44 +978,21 @@ export const se_UpdateLiveSourceCommand = async ( input: UpdateLiveSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "LiveSourceName", - () => input.LiveSourceName!, - "{LiveSourceName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}"); + b.p("LiveSourceName", () => input.LiveSourceName!, "{LiveSourceName}", false); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; body = JSON.stringify( take(input, { HttpPackageConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1502,15 +1002,13 @@ export const se_UpdateProgramCommand = async ( input: UpdateProgramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/channel/{ChannelName}/program/{ProgramName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ChannelName", () => input.ChannelName!, "{ChannelName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProgramName", () => input.ProgramName!, "{ProgramName}", false); + b.bp("/channel/{ChannelName}/program/{ProgramName}"); + b.p("ChannelName", () => input.ChannelName!, "{ChannelName}", false); + b.p("ProgramName", () => input.ProgramName!, "{ProgramName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1518,15 +1016,8 @@ export const se_UpdateProgramCommand = async ( ScheduleConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1536,20 +1027,12 @@ export const se_UpdateSourceLocationCommand = async ( input: UpdateSourceLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1559,15 +1042,8 @@ export const se_UpdateSourceLocationCommand = async ( SegmentDeliveryConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1577,44 +1053,21 @@ export const se_UpdateVodSourceCommand = async ( input: UpdateVodSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SourceLocationName", - () => input.SourceLocationName!, - "{SourceLocationName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VodSourceName", - () => input.VodSourceName!, - "{VodSourceName}", - false - ); + b.bp("/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}"); + b.p("SourceLocationName", () => input.SourceLocationName!, "{SourceLocationName}", false); + b.p("VodSourceName", () => input.VodSourceName!, "{VodSourceName}", false); let body: any; body = JSON.stringify( take(input, { HttpPackageConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4062,6 +3515,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DM = "DurationMinutes"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RA = "ResourceArn"; +const _TK = "TagKeys"; +const _dM = "durationMinutes"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rA = "resourceArn"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-medical-imaging/package.json b/clients/client-medical-imaging/package.json index 8d2b000e2f60..1d852996e006 100644 --- a/clients/client-medical-imaging/package.json +++ b/clients/client-medical-imaging/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-medical-imaging/src/models/models_0.ts b/clients/client-medical-imaging/src/models/models_0.ts index 55662526757c..a65f5e494832 100644 --- a/clients/client-medical-imaging/src/models/models_0.ts +++ b/clients/client-medical-imaging/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { MedicalImagingServiceException as __BaseException } from "./MedicalImagingServiceException"; diff --git a/clients/client-medical-imaging/src/protocols/Aws_restJson1.ts b/clients/client-medical-imaging/src/protocols/Aws_restJson1.ts index 807f73e573bc..2292bfa170c5 100644 --- a/clients/client-medical-imaging/src/protocols/Aws_restJson1.ts +++ b/clients/client-medical-imaging/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -100,22 +101,13 @@ export const se_CopyImageSetCommand = async ( input: CopyImageSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datastore/{datastoreId}/imageSet/{sourceImageSetId}/copyImageSet"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sourceImageSetId", - () => input.sourceImageSetId!, - "{sourceImageSetId}", - false - ); + b.bp("/datastore/{datastoreId}/imageSet/{sourceImageSetId}/copyImageSet"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("sourceImageSetId", () => input.sourceImageSetId!, "{sourceImageSetId}", false); let body: any; if (input.copyImageSetInformation !== undefined) { body = _json(input.copyImageSetInformation); @@ -131,15 +123,9 @@ export const se_CopyImageSetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -149,11 +135,11 @@ export const se_CreateDatastoreCommand = async ( input: CreateDatastoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore"; + b.bp("/datastore"); let body: any; body = JSON.stringify( take(input, { @@ -163,15 +149,8 @@ export const se_CreateDatastoreCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -181,20 +160,13 @@ export const se_DeleteDatastoreCommand = async ( input: DeleteDatastoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore/{datastoreId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.bp("/datastore/{datastoreId}"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -204,13 +176,11 @@ export const se_DeleteImageSetCommand = async ( input: DeleteImageSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datastore/{datastoreId}/imageSet/{imageSetId}/deleteImageSet"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId!, "{imageSetId}", false); + b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/deleteImageSet"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("imageSetId", () => input.imageSetId!, "{imageSetId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -219,15 +189,9 @@ export const se_DeleteImageSetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -237,20 +201,13 @@ export const se_GetDatastoreCommand = async ( input: GetDatastoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore/{datastoreId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.bp("/datastore/{datastoreId}"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -260,23 +217,14 @@ export const se_GetDICOMImportJobCommand = async ( input: GetDICOMImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/getDICOMImportJob/datastore/{datastoreId}/job/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/getDICOMImportJob/datastore/{datastoreId}/job/{jobId}"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -286,15 +234,13 @@ export const se_GetImageFrameCommand = async ( input: GetImageFrameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datastore/{datastoreId}/imageSet/{imageSetId}/getImageFrame"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId!, "{imageSetId}", false); + b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageFrame"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("imageSetId", () => input.imageSetId!, "{imageSetId}", false); let body: any; if (input.imageFrameInformation !== undefined) { body = _json(input.imageFrameInformation); @@ -310,15 +256,9 @@ export const se_GetImageFrameCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -328,15 +268,13 @@ export const se_GetImageSetCommand = async ( input: GetImageSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSet"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId!, "{imageSetId}", false); + b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSet"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("imageSetId", () => input.imageSetId!, "{imageSetId}", false); const query: any = map({ - version: [, input.versionId!], + [_v]: [, input[_vI]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -346,16 +284,9 @@ export const se_GetImageSetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -365,15 +296,13 @@ export const se_GetImageSetMetadataCommand = async ( input: GetImageSetMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSetMetadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId!, "{imageSetId}", false); + b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSetMetadata"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("imageSetId", () => input.imageSetId!, "{imageSetId}", false); const query: any = map({ - version: [, input.versionId!], + [_v]: [, input[_vI]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -383,16 +312,9 @@ export const se_GetImageSetMetadataCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -402,25 +324,17 @@ export const se_ListDatastoresCommand = async ( input: ListDatastoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore"; + b.bp("/datastore"); const query: any = map({ - datastoreStatus: [, input.datastoreStatus!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_dS]: [, input[_dS]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -430,28 +344,18 @@ export const se_ListDICOMImportJobsCommand = async ( input: ListDICOMImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/listDICOMImportJobs/datastore/{datastoreId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.bp("/listDICOMImportJobs/datastore/{datastoreId}"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); const query: any = map({ - jobStatus: [, input.jobStatus!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_jS]: [, input[_jS]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -461,16 +365,14 @@ export const se_ListImageSetVersionsCommand = async ( input: ListImageSetVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datastore/{datastoreId}/imageSet/{imageSetId}/listImageSetVersions"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId!, "{imageSetId}", false); + b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/listImageSetVersions"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("imageSetId", () => input.imageSetId!, "{imageSetId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -480,16 +382,9 @@ export const se_ListImageSetVersionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -499,20 +394,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -522,16 +410,15 @@ export const se_SearchImageSetsCommand = async ( input: SearchImageSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore/{datastoreId}/searchImageSets"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.bp("/datastore/{datastoreId}/searchImageSets"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; if (input.searchCriteria !== undefined) { @@ -548,16 +435,9 @@ export const se_SearchImageSetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -567,14 +447,12 @@ export const se_StartDICOMImportJobCommand = async ( input: StartDICOMImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/startDICOMImportJob/datastore/{datastoreId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.bp("/startDICOMImportJob/datastore/{datastoreId}"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); let body: any; body = JSON.stringify( take(input, { @@ -585,15 +463,8 @@ export const se_StartDICOMImportJobCommand = async ( outputS3Uri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -603,27 +474,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -633,27 +497,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -663,17 +519,15 @@ export const se_UpdateImageSetMetadataCommand = async ( input: UpdateImageSetMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/datastore/{datastoreId}/imageSet/{imageSetId}/updateImageSetMetadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId!, "{datastoreId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId!, "{imageSetId}", false); + b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/updateImageSetMetadata"); + b.p("datastoreId", () => input.datastoreId!, "{datastoreId}", false); + b.p("imageSetId", () => input.imageSetId!, "{imageSetId}", false); const query: any = map({ - latestVersion: [, __expectNonNull(input.latestVersionId!, `latestVersionId`)], + [_lV]: [, __expectNonNull(input[_lVI]!, `latestVersionId`)], }); let body: any; if (input.updateImageSetMetadataUpdates !== undefined) { @@ -690,16 +544,9 @@ export const se_UpdateImageSetMetadataCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1093,7 +940,7 @@ export const de_GetImageFrameCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -1225,8 +1072,8 @@ export const de_GetImageSetMetadataCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], - contentEncoding: [, output.headers["content-encoding"]], + [_cT]: [, output.headers[_ct]], + [_cE]: [, output.headers[_ce]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -2246,6 +2093,20 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cE = "contentEncoding"; +const _cT = "contentType"; +const _ce = "content-encoding"; +const _ct = "content-type"; +const _dS = "datastoreStatus"; +const _jS = "jobStatus"; +const _lV = "latestVersion"; +const _lVI = "latestVersionId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; +const _v = "version"; +const _vI = "versionId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mgn/package.json b/clients/client-mgn/package.json index 90855c986ff9..cd7c89975278 100644 --- a/clients/client-mgn/package.json +++ b/clients/client-mgn/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mgn/src/protocols/Aws_restJson1.ts b/clients/client-mgn/src/protocols/Aws_restJson1.ts index 10fd1edb2fef..3cffba2ef163 100644 --- a/clients/client-mgn/src/protocols/Aws_restJson1.ts +++ b/clients/client-mgn/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -238,11 +239,11 @@ export const se_ArchiveApplicationCommand = async ( input: ArchiveApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveApplication"; + b.bp("/ArchiveApplication"); let body: any; body = JSON.stringify( take(input, { @@ -250,15 +251,8 @@ export const se_ArchiveApplicationCommand = async ( applicationID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -268,11 +262,11 @@ export const se_ArchiveWaveCommand = async ( input: ArchiveWaveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveWave"; + b.bp("/ArchiveWave"); let body: any; body = JSON.stringify( take(input, { @@ -280,15 +274,8 @@ export const se_ArchiveWaveCommand = async ( waveID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -298,11 +285,11 @@ export const se_AssociateApplicationsCommand = async ( input: AssociateApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateApplications"; + b.bp("/AssociateApplications"); let body: any; body = JSON.stringify( take(input, { @@ -311,15 +298,8 @@ export const se_AssociateApplicationsCommand = async ( waveID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -329,12 +309,11 @@ export const se_AssociateSourceServersCommand = async ( input: AssociateSourceServersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateSourceServers"; + b.bp("/AssociateSourceServers"); let body: any; body = JSON.stringify( take(input, { @@ -343,15 +322,8 @@ export const se_AssociateSourceServersCommand = async ( sourceServerIDs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -361,12 +333,11 @@ export const se_ChangeServerLifeCycleStateCommand = async ( input: ChangeServerLifeCycleStateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ChangeServerLifeCycleState"; + b.bp("/ChangeServerLifeCycleState"); let body: any; body = JSON.stringify( take(input, { @@ -375,15 +346,8 @@ export const se_ChangeServerLifeCycleStateCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -393,11 +357,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateApplication"; + b.bp("/CreateApplication"); let body: any; body = JSON.stringify( take(input, { @@ -407,15 +371,8 @@ export const se_CreateApplicationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -425,11 +382,11 @@ export const se_CreateConnectorCommand = async ( input: CreateConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateConnector"; + b.bp("/CreateConnector"); let body: any; body = JSON.stringify( take(input, { @@ -439,15 +396,8 @@ export const se_CreateConnectorCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -457,12 +407,11 @@ export const se_CreateLaunchConfigurationTemplateCommand = async ( input: CreateLaunchConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLaunchConfigurationTemplate"; + b.bp("/CreateLaunchConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -482,15 +431,8 @@ export const se_CreateLaunchConfigurationTemplateCommand = async ( targetInstanceTypeRightSizingMethod: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -500,12 +442,11 @@ export const se_CreateReplicationConfigurationTemplateCommand = async ( input: CreateReplicationConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateReplicationConfigurationTemplate"; + b.bp("/CreateReplicationConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -525,15 +466,8 @@ export const se_CreateReplicationConfigurationTemplateCommand = async ( useFipsEndpoint: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -543,11 +477,11 @@ export const se_CreateWaveCommand = async ( input: CreateWaveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateWave"; + b.bp("/CreateWave"); let body: any; body = JSON.stringify( take(input, { @@ -557,15 +491,8 @@ export const se_CreateWaveCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -575,11 +502,11 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteApplication"; + b.bp("/DeleteApplication"); let body: any; body = JSON.stringify( take(input, { @@ -587,15 +514,8 @@ export const se_DeleteApplicationCommand = async ( applicationID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -605,26 +525,19 @@ export const se_DeleteConnectorCommand = async ( input: DeleteConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteConnector"; + b.bp("/DeleteConnector"); let body: any; body = JSON.stringify( take(input, { connectorID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -634,11 +547,11 @@ export const se_DeleteJobCommand = async ( input: DeleteJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob"; + b.bp("/DeleteJob"); let body: any; body = JSON.stringify( take(input, { @@ -646,15 +559,8 @@ export const se_DeleteJobCommand = async ( jobID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -664,27 +570,19 @@ export const se_DeleteLaunchConfigurationTemplateCommand = async ( input: DeleteLaunchConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchConfigurationTemplate"; + b.bp("/DeleteLaunchConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { launchConfigurationTemplateID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -694,27 +592,19 @@ export const se_DeleteReplicationConfigurationTemplateCommand = async ( input: DeleteReplicationConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteReplicationConfigurationTemplate"; + b.bp("/DeleteReplicationConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { replicationConfigurationTemplateID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -724,11 +614,11 @@ export const se_DeleteSourceServerCommand = async ( input: DeleteSourceServerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer"; + b.bp("/DeleteSourceServer"); let body: any; body = JSON.stringify( take(input, { @@ -736,15 +626,8 @@ export const se_DeleteSourceServerCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -754,26 +637,19 @@ export const se_DeleteVcenterClientCommand = async ( input: DeleteVcenterClientCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteVcenterClient"; + b.bp("/DeleteVcenterClient"); let body: any; body = JSON.stringify( take(input, { vcenterClientID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -783,11 +659,11 @@ export const se_DeleteWaveCommand = async ( input: DeleteWaveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteWave"; + b.bp("/DeleteWave"); let body: any; body = JSON.stringify( take(input, { @@ -795,15 +671,8 @@ export const se_DeleteWaveCommand = async ( waveID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -813,11 +682,11 @@ export const se_DescribeJobLogItemsCommand = async ( input: DescribeJobLogItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems"; + b.bp("/DescribeJobLogItems"); let body: any; body = JSON.stringify( take(input, { @@ -827,15 +696,8 @@ export const se_DescribeJobLogItemsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -845,11 +707,11 @@ export const se_DescribeJobsCommand = async ( input: DescribeJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs"; + b.bp("/DescribeJobs"); let body: any; body = JSON.stringify( take(input, { @@ -859,15 +721,8 @@ export const se_DescribeJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -877,12 +732,11 @@ export const se_DescribeLaunchConfigurationTemplatesCommand = async ( input: DescribeLaunchConfigurationTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeLaunchConfigurationTemplates"; + b.bp("/DescribeLaunchConfigurationTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -891,15 +745,8 @@ export const se_DescribeLaunchConfigurationTemplatesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -909,13 +756,11 @@ export const se_DescribeReplicationConfigurationTemplatesCommand = async ( input: DescribeReplicationConfigurationTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/DescribeReplicationConfigurationTemplates"; + b.bp("/DescribeReplicationConfigurationTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -924,15 +769,8 @@ export const se_DescribeReplicationConfigurationTemplatesCommand = async ( replicationConfigurationTemplateIDs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -942,11 +780,11 @@ export const se_DescribeSourceServersCommand = async ( input: DescribeSourceServersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers"; + b.bp("/DescribeSourceServers"); let body: any; body = JSON.stringify( take(input, { @@ -956,15 +794,8 @@ export const se_DescribeSourceServersCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -974,25 +805,16 @@ export const se_DescribeVcenterClientsCommand = async ( input: DescribeVcenterClientsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeVcenterClients"; + b.bp("/DescribeVcenterClients"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1002,12 +824,11 @@ export const se_DisassociateApplicationsCommand = async ( input: DisassociateApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateApplications"; + b.bp("/DisassociateApplications"); let body: any; body = JSON.stringify( take(input, { @@ -1016,15 +837,8 @@ export const se_DisassociateApplicationsCommand = async ( waveID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1034,12 +848,11 @@ export const se_DisassociateSourceServersCommand = async ( input: DisassociateSourceServersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateSourceServers"; + b.bp("/DisassociateSourceServers"); let body: any; body = JSON.stringify( take(input, { @@ -1048,15 +861,8 @@ export const se_DisassociateSourceServersCommand = async ( sourceServerIDs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1066,11 +872,11 @@ export const se_DisconnectFromServiceCommand = async ( input: DisconnectFromServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectFromService"; + b.bp("/DisconnectFromService"); let body: any; body = JSON.stringify( take(input, { @@ -1078,15 +884,8 @@ export const se_DisconnectFromServiceCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1096,11 +895,11 @@ export const se_FinalizeCutoverCommand = async ( input: FinalizeCutoverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FinalizeCutover"; + b.bp("/FinalizeCutover"); let body: any; body = JSON.stringify( take(input, { @@ -1108,15 +907,8 @@ export const se_FinalizeCutoverCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1126,12 +918,11 @@ export const se_GetLaunchConfigurationCommand = async ( input: GetLaunchConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration"; + b.bp("/GetLaunchConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1139,15 +930,8 @@ export const se_GetLaunchConfigurationCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1157,12 +941,11 @@ export const se_GetReplicationConfigurationCommand = async ( input: GetReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration"; + b.bp("/GetReplicationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1170,15 +953,8 @@ export const se_GetReplicationConfigurationCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1188,22 +964,15 @@ export const se_InitializeServiceCommand = async ( input: InitializeServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InitializeService"; + b.bp("/InitializeService"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1213,11 +982,11 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListApplications"; + b.bp("/ListApplications"); let body: any; body = JSON.stringify( take(input, { @@ -1227,15 +996,8 @@ export const se_ListApplicationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1245,11 +1007,11 @@ export const se_ListConnectorsCommand = async ( input: ListConnectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListConnectors"; + b.bp("/ListConnectors"); let body: any; body = JSON.stringify( take(input, { @@ -1258,15 +1020,8 @@ export const se_ListConnectorsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1276,11 +1031,11 @@ export const se_ListExportErrorsCommand = async ( input: ListExportErrorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExportErrors"; + b.bp("/ListExportErrors"); let body: any; body = JSON.stringify( take(input, { @@ -1289,15 +1044,8 @@ export const se_ListExportErrorsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1307,11 +1055,11 @@ export const se_ListExportsCommand = async ( input: ListExportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExports"; + b.bp("/ListExports"); let body: any; body = JSON.stringify( take(input, { @@ -1320,15 +1068,8 @@ export const se_ListExportsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1338,11 +1079,11 @@ export const se_ListImportErrorsCommand = async ( input: ListImportErrorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImportErrors"; + b.bp("/ListImportErrors"); let body: any; body = JSON.stringify( take(input, { @@ -1351,15 +1092,8 @@ export const se_ListImportErrorsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1369,11 +1103,11 @@ export const se_ListImportsCommand = async ( input: ListImportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImports"; + b.bp("/ListImports"); let body: any; body = JSON.stringify( take(input, { @@ -1382,15 +1116,8 @@ export const se_ListImportsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1400,11 +1127,11 @@ export const se_ListManagedAccountsCommand = async ( input: ListManagedAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListManagedAccounts"; + b.bp("/ListManagedAccounts"); let body: any; body = JSON.stringify( take(input, { @@ -1412,15 +1139,8 @@ export const se_ListManagedAccountsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1430,12 +1150,11 @@ export const se_ListSourceServerActionsCommand = async ( input: ListSourceServerActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSourceServerActions"; + b.bp("/ListSourceServerActions"); let body: any; body = JSON.stringify( take(input, { @@ -1446,15 +1165,8 @@ export const se_ListSourceServerActionsCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1464,20 +1176,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1487,11 +1192,11 @@ export const se_ListTemplateActionsCommand = async ( input: ListTemplateActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTemplateActions"; + b.bp("/ListTemplateActions"); let body: any; body = JSON.stringify( take(input, { @@ -1501,15 +1206,8 @@ export const se_ListTemplateActionsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1519,11 +1217,11 @@ export const se_ListWavesCommand = async ( input: ListWavesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWaves"; + b.bp("/ListWaves"); let body: any; body = JSON.stringify( take(input, { @@ -1533,15 +1231,8 @@ export const se_ListWavesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1551,11 +1242,11 @@ export const se_MarkAsArchivedCommand = async ( input: MarkAsArchivedCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MarkAsArchived"; + b.bp("/MarkAsArchived"); let body: any; body = JSON.stringify( take(input, { @@ -1563,15 +1254,8 @@ export const se_MarkAsArchivedCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1581,11 +1265,11 @@ export const se_PauseReplicationCommand = async ( input: PauseReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PauseReplication"; + b.bp("/PauseReplication"); let body: any; body = JSON.stringify( take(input, { @@ -1593,15 +1277,8 @@ export const se_PauseReplicationCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1611,11 +1288,11 @@ export const se_PutSourceServerActionCommand = async ( input: PutSourceServerActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutSourceServerAction"; + b.bp("/PutSourceServerAction"); let body: any; body = JSON.stringify( take(input, { @@ -1635,15 +1312,8 @@ export const se_PutSourceServerActionCommand = async ( timeoutSeconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1653,11 +1323,11 @@ export const se_PutTemplateActionCommand = async ( input: PutTemplateActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutTemplateAction"; + b.bp("/PutTemplateAction"); let body: any; body = JSON.stringify( take(input, { @@ -1677,15 +1347,8 @@ export const se_PutTemplateActionCommand = async ( timeoutSeconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1695,12 +1358,11 @@ export const se_RemoveSourceServerActionCommand = async ( input: RemoveSourceServerActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveSourceServerAction"; + b.bp("/RemoveSourceServerAction"); let body: any; body = JSON.stringify( take(input, { @@ -1709,15 +1371,8 @@ export const se_RemoveSourceServerActionCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1727,11 +1382,11 @@ export const se_RemoveTemplateActionCommand = async ( input: RemoveTemplateActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveTemplateAction"; + b.bp("/RemoveTemplateAction"); let body: any; body = JSON.stringify( take(input, { @@ -1739,15 +1394,8 @@ export const se_RemoveTemplateActionCommand = async ( launchConfigurationTemplateID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1757,11 +1405,11 @@ export const se_ResumeReplicationCommand = async ( input: ResumeReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ResumeReplication"; + b.bp("/ResumeReplication"); let body: any; body = JSON.stringify( take(input, { @@ -1769,15 +1417,8 @@ export const se_ResumeReplicationCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1787,11 +1428,11 @@ export const se_RetryDataReplicationCommand = async ( input: RetryDataReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication"; + b.bp("/RetryDataReplication"); let body: any; body = JSON.stringify( take(input, { @@ -1799,15 +1440,8 @@ export const se_RetryDataReplicationCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1817,11 +1451,11 @@ export const se_StartCutoverCommand = async ( input: StartCutoverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartCutover"; + b.bp("/StartCutover"); let body: any; body = JSON.stringify( take(input, { @@ -1830,15 +1464,8 @@ export const se_StartCutoverCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1848,11 +1475,11 @@ export const se_StartExportCommand = async ( input: StartExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartExport"; + b.bp("/StartExport"); let body: any; body = JSON.stringify( take(input, { @@ -1861,15 +1488,8 @@ export const se_StartExportCommand = async ( s3Key: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1879,11 +1499,11 @@ export const se_StartImportCommand = async ( input: StartImportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartImport"; + b.bp("/StartImport"); let body: any; body = JSON.stringify( take(input, { @@ -1891,15 +1511,8 @@ export const se_StartImportCommand = async ( s3BucketSource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1909,11 +1522,11 @@ export const se_StartReplicationCommand = async ( input: StartReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication"; + b.bp("/StartReplication"); let body: any; body = JSON.stringify( take(input, { @@ -1921,15 +1534,8 @@ export const se_StartReplicationCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1939,11 +1545,11 @@ export const se_StartTestCommand = async ( input: StartTestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartTest"; + b.bp("/StartTest"); let body: any; body = JSON.stringify( take(input, { @@ -1952,15 +1558,8 @@ export const se_StartTestCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1970,11 +1569,11 @@ export const se_StopReplicationCommand = async ( input: StopReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopReplication"; + b.bp("/StopReplication"); let body: any; body = JSON.stringify( take(input, { @@ -1982,15 +1581,8 @@ export const se_StopReplicationCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2000,27 +1592,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2030,12 +1615,11 @@ export const se_TerminateTargetInstancesCommand = async ( input: TerminateTargetInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateTargetInstances"; + b.bp("/TerminateTargetInstances"); let body: any; body = JSON.stringify( take(input, { @@ -2044,15 +1628,8 @@ export const se_TerminateTargetInstancesCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2062,11 +1639,11 @@ export const se_UnarchiveApplicationCommand = async ( input: UnarchiveApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveApplication"; + b.bp("/UnarchiveApplication"); let body: any; body = JSON.stringify( take(input, { @@ -2074,15 +1651,8 @@ export const se_UnarchiveApplicationCommand = async ( applicationID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2092,11 +1662,11 @@ export const se_UnarchiveWaveCommand = async ( input: UnarchiveWaveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveWave"; + b.bp("/UnarchiveWave"); let body: any; body = JSON.stringify( take(input, { @@ -2104,15 +1674,8 @@ export const se_UnarchiveWaveCommand = async ( waveID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2122,27 +1685,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2152,11 +1707,11 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateApplication"; + b.bp("/UpdateApplication"); let body: any; body = JSON.stringify( take(input, { @@ -2166,15 +1721,8 @@ export const se_UpdateApplicationCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2184,11 +1732,11 @@ export const se_UpdateConnectorCommand = async ( input: UpdateConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateConnector"; + b.bp("/UpdateConnector"); let body: any; body = JSON.stringify( take(input, { @@ -2197,15 +1745,8 @@ export const se_UpdateConnectorCommand = async ( ssmCommandConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2215,12 +1756,11 @@ export const se_UpdateLaunchConfigurationCommand = async ( input: UpdateLaunchConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration"; + b.bp("/UpdateLaunchConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -2238,15 +1778,8 @@ export const se_UpdateLaunchConfigurationCommand = async ( targetInstanceTypeRightSizingMethod: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2256,12 +1789,11 @@ export const se_UpdateLaunchConfigurationTemplateCommand = async ( input: UpdateLaunchConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfigurationTemplate"; + b.bp("/UpdateLaunchConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -2281,15 +1813,8 @@ export const se_UpdateLaunchConfigurationTemplateCommand = async ( targetInstanceTypeRightSizingMethod: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2299,12 +1824,11 @@ export const se_UpdateReplicationConfigurationCommand = async ( input: UpdateReplicationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration"; + b.bp("/UpdateReplicationConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -2327,15 +1851,8 @@ export const se_UpdateReplicationConfigurationCommand = async ( useFipsEndpoint: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2345,12 +1862,11 @@ export const se_UpdateReplicationConfigurationTemplateCommand = async ( input: UpdateReplicationConfigurationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfigurationTemplate"; + b.bp("/UpdateReplicationConfigurationTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -2371,15 +1887,8 @@ export const se_UpdateReplicationConfigurationTemplateCommand = async ( useFipsEndpoint: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2389,11 +1898,11 @@ export const se_UpdateSourceServerCommand = async ( input: UpdateSourceServerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServer"; + b.bp("/UpdateSourceServer"); let body: any; body = JSON.stringify( take(input, { @@ -2402,15 +1911,8 @@ export const se_UpdateSourceServerCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2420,12 +1922,11 @@ export const se_UpdateSourceServerReplicationTypeCommand = async ( input: UpdateSourceServerReplicationTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServerReplicationType"; + b.bp("/UpdateSourceServerReplicationType"); let body: any; body = JSON.stringify( take(input, { @@ -2434,15 +1935,8 @@ export const se_UpdateSourceServerReplicationTypeCommand = async ( sourceServerID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2452,11 +1946,11 @@ export const se_UpdateWaveCommand = async ( input: UpdateWaveCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateWave"; + b.bp("/UpdateWave"); let body: any; body = JSON.stringify( take(input, { @@ -2466,15 +1960,8 @@ export const se_UpdateWaveCommand = async ( waveID: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6574,10 +6061,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseLong(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseLong(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -6645,7 +6129,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -7061,6 +6545,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-migration-hub-refactor-spaces/package.json b/clients/client-migration-hub-refactor-spaces/package.json index d6358d9157c6..ed2878f6d141 100644 --- a/clients/client-migration-hub-refactor-spaces/package.json +++ b/clients/client-migration-hub-refactor-spaces/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts index 333a4095736e..7756ed80e4de 100644 --- a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts +++ b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -87,21 +88,12 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -113,15 +105,8 @@ export const se_CreateApplicationCommand = async ( VpcId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -131,11 +116,11 @@ export const se_CreateEnvironmentCommand = async ( input: CreateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments"; + b.bp("/environments"); let body: any; body = JSON.stringify( take(input, { @@ -146,15 +131,8 @@ export const se_CreateEnvironmentCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -164,29 +142,13 @@ export const se_CreateRouteCommand = async ( input: CreateRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -198,15 +160,8 @@ export const se_CreateRouteCommand = async ( UriPathRoute: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -216,29 +171,13 @@ export const se_CreateServiceCommand = async ( input: CreateServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -252,15 +191,8 @@ export const se_CreateServiceCommand = async ( VpcId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -270,37 +202,14 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -310,28 +219,13 @@ export const se_DeleteEnvironmentCommand = async ( input: DeleteEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -341,21 +235,13 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/resourcepolicy/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -365,45 +251,15 @@ export const se_DeleteRouteCommand = async ( input: DeleteRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RouteIdentifier", - () => input.RouteIdentifier!, - "{RouteIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); + b.p("RouteIdentifier", () => input.RouteIdentifier!, "{RouteIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -413,45 +269,15 @@ export const se_DeleteServiceCommand = async ( input: DeleteServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ServiceIdentifier", - () => input.ServiceIdentifier!, - "{ServiceIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); + b.p("ServiceIdentifier", () => input.ServiceIdentifier!, "{ServiceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -461,37 +287,14 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -501,28 +304,13 @@ export const se_GetEnvironmentCommand = async ( input: GetEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -532,21 +320,13 @@ export const se_GetResourcePolicyCommand = async ( input: GetResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/resourcepolicy/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -556,45 +336,15 @@ export const se_GetRouteCommand = async ( input: GetRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RouteIdentifier", - () => input.RouteIdentifier!, - "{RouteIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); + b.p("RouteIdentifier", () => input.RouteIdentifier!, "{RouteIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -604,45 +354,15 @@ export const se_GetServiceCommand = async ( input: GetServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ServiceIdentifier", - () => input.ServiceIdentifier!, - "{ServiceIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); + b.p("ServiceIdentifier", () => input.ServiceIdentifier!, "{ServiceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -652,34 +372,17 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -689,24 +392,16 @@ export const se_ListEnvironmentsCommand = async ( input: ListEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments"; + b.bp("/environments"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -716,34 +411,17 @@ export const se_ListEnvironmentVpcsCommand = async ( input: ListEnvironmentVpcsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/vpcs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/vpcs"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -753,42 +431,18 @@ export const se_ListRoutesCommand = async ( input: ListRoutesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -798,42 +452,18 @@ export const se_ListServicesCommand = async ( input: ListServicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -843,20 +473,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -866,11 +489,11 @@ export const se_PutResourcePolicyCommand = async ( input: PutResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy"; + b.bp("/resourcepolicy"); let body: any; body = JSON.stringify( take(input, { @@ -878,15 +501,8 @@ export const se_PutResourcePolicyCommand = async ( ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -896,27 +512,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -926,27 +535,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -956,52 +557,22 @@ export const se_UpdateRouteCommand = async ( input: UpdateRouteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentIdentifier", - () => input.EnvironmentIdentifier!, - "{EnvironmentIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationIdentifier", - () => input.ApplicationIdentifier!, - "{ApplicationIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RouteIdentifier", - () => input.RouteIdentifier!, - "{RouteIdentifier}", - false - ); + b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}"); + b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier!, "{EnvironmentIdentifier}", false); + b.p("ApplicationIdentifier", () => input.ApplicationIdentifier!, "{ApplicationIdentifier}", false); + b.p("RouteIdentifier", () => input.RouteIdentifier!, "{RouteIdentifier}", false); let body: any; body = JSON.stringify( take(input, { ActivationState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2708,10 +2279,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2977,6 +2545,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RAS = "RetryAfterSeconds"; +const _TK = "TagKeys"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-migrationhuborchestrator/package.json b/clients/client-migrationhuborchestrator/package.json index ed194e195931..86fb4e82c19f 100644 --- a/clients/client-migrationhuborchestrator/package.json +++ b/clients/client-migrationhuborchestrator/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-migrationhuborchestrator/src/protocols/Aws_restJson1.ts b/clients/client-migrationhuborchestrator/src/protocols/Aws_restJson1.ts index cc06c3fcbe1b..9b231a130d6b 100644 --- a/clients/client-migrationhuborchestrator/src/protocols/Aws_restJson1.ts +++ b/clients/client-migrationhuborchestrator/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -97,11 +98,11 @@ export const se_CreateWorkflowCommand = async ( input: CreateWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow"; + b.bp("/migrationworkflow"); let body: any; body = JSON.stringify( take(input, { @@ -114,15 +115,8 @@ export const se_CreateWorkflowCommand = async ( templateId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -132,11 +126,11 @@ export const se_CreateWorkflowStepCommand = async ( input: CreateWorkflowStepCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep"; + b.bp("/workflowstep"); let body: any; body = JSON.stringify( take(input, { @@ -152,15 +146,8 @@ export const se_CreateWorkflowStepCommand = async ( workflowStepAutomationConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -170,11 +157,11 @@ export const se_CreateWorkflowStepGroupCommand = async ( input: CreateWorkflowStepGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroups"; + b.bp("/workflowstepgroups"); let body: any; body = JSON.stringify( take(input, { @@ -185,15 +172,8 @@ export const se_CreateWorkflowStepGroupCommand = async ( workflowId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -203,20 +183,13 @@ export const se_DeleteWorkflowCommand = async ( input: DeleteWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/migrationworkflow/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -226,25 +199,17 @@ export const se_DeleteWorkflowStepCommand = async ( input: DeleteWorkflowStepCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflowstep/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - stepGroupId: [, __expectNonNull(input.stepGroupId!, `stepGroupId`)], - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], + [_sGI]: [, __expectNonNull(input[_sGI]!, `stepGroupId`)], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -254,24 +219,16 @@ export const se_DeleteWorkflowStepGroupCommand = async ( input: DeleteWorkflowStepGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflowstepgroup/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -281,21 +238,13 @@ export const se_GetTemplateCommand = async ( input: GetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplate/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/migrationworkflowtemplate/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -305,25 +254,17 @@ export const se_GetTemplateStepCommand = async ( input: GetTemplateStepCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestep/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/templatestep/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - templateId: [, __expectNonNull(input.templateId!, `templateId`)], - stepGroupId: [, __expectNonNull(input.stepGroupId!, `stepGroupId`)], + [_tI]: [, __expectNonNull(input[_tI]!, `templateId`)], + [_sGI]: [, __expectNonNull(input[_sGI]!, `stepGroupId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -333,22 +274,14 @@ export const se_GetTemplateStepGroupCommand = async ( input: GetTemplateStepGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{templateId}/stepgroups/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "templateId", () => input.templateId!, "{templateId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/templates/{templateId}/stepgroups/{id}"); + b.p("templateId", () => input.templateId!, "{templateId}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -358,20 +291,13 @@ export const se_GetWorkflowCommand = async ( input: GetWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/migrationworkflow/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -381,25 +307,17 @@ export const se_GetWorkflowStepCommand = async ( input: GetWorkflowStepCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflowstep/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], - stepGroupId: [, __expectNonNull(input.stepGroupId!, `stepGroupId`)], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], + [_sGI]: [, __expectNonNull(input[_sGI]!, `stepGroupId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -409,24 +327,16 @@ export const se_GetWorkflowStepGroupCommand = async ( input: GetWorkflowStepGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflowstepgroup/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -436,24 +346,16 @@ export const se_ListPluginsCommand = async ( input: ListPluginsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/plugins"; + b.bp("/plugins"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -463,20 +365,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -486,26 +381,17 @@ export const se_ListTemplatesCommand = async ( input: ListTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplates"; + b.bp("/migrationworkflowtemplates"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - name: [, input.name!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_n]: [, input[_n]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -515,26 +401,17 @@ export const se_ListTemplateStepGroupsCommand = async ( input: ListTemplateStepGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestepgroups/{templateId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "templateId", () => input.templateId!, "{templateId}", false); + b.bp("/templatestepgroups/{templateId}"); + b.p("templateId", () => input.templateId!, "{templateId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -544,26 +421,18 @@ export const se_ListTemplateStepsCommand = async ( input: ListTemplateStepsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatesteps"; + b.bp("/templatesteps"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - templateId: [, __expectNonNull(input.templateId!, `templateId`)], - stepGroupId: [, __expectNonNull(input.stepGroupId!, `stepGroupId`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_tI]: [, __expectNonNull(input[_tI]!, `templateId`)], + [_sGI]: [, __expectNonNull(input[_sGI]!, `stepGroupId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -573,28 +442,20 @@ export const se_ListWorkflowsCommand = async ( input: ListWorkflowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflows"; + b.bp("/migrationworkflows"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - templateId: [, input.templateId!], - adsApplicationConfigurationName: [, input.adsApplicationConfigurationName!], - status: [, input.status!], - name: [, input.name!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_tI]: [, input[_tI]!], + [_aACN]: [, input[_aACN]!], + [_s]: [, input[_s]!], + [_n]: [, input[_n]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -604,25 +465,17 @@ export const se_ListWorkflowStepGroupsCommand = async ( input: ListWorkflowStepGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroups"; + b.bp("/workflowstepgroups"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -632,28 +485,18 @@ export const se_ListWorkflowStepsCommand = async ( input: ListWorkflowStepsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps"; - resolvedPath = __resolvedPath(resolvedPath, input, "workflowId", () => input.workflowId!, "{workflowId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "stepGroupId", () => input.stepGroupId!, "{stepGroupId}", false); + b.bp("/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps"); + b.p("workflowId", () => input.workflowId!, "{workflowId}", false); + b.p("stepGroupId", () => input.stepGroupId!, "{stepGroupId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -663,25 +506,17 @@ export const se_RetryWorkflowStepCommand = async ( input: RetryWorkflowStepCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/retryworkflowstep/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/retryworkflowstep/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], - stepGroupId: [, __expectNonNull(input.stepGroupId!, `stepGroupId`)], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], + [_sGI]: [, __expectNonNull(input[_sGI]!, `stepGroupId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -691,21 +526,13 @@ export const se_StartWorkflowCommand = async ( input: StartWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/migrationworkflow/{id}/start"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -715,21 +542,13 @@ export const se_StopWorkflowCommand = async ( input: StopWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/migrationworkflow/{id}/stop"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -739,27 +558,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -769,27 +581,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -799,12 +603,12 @@ export const se_UpdateWorkflowCommand = async ( input: UpdateWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/migrationworkflow/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -814,15 +618,8 @@ export const se_UpdateWorkflowCommand = async ( stepTargets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -832,12 +629,12 @@ export const se_UpdateWorkflowStepCommand = async ( input: UpdateWorkflowStepCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflowstep/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -854,15 +651,8 @@ export const se_UpdateWorkflowStepCommand = async ( workflowStepAutomationConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -872,14 +662,14 @@ export const se_UpdateWorkflowStepGroupCommand = async ( input: UpdateWorkflowStepGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflowstepgroup/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - workflowId: [, __expectNonNull(input.workflowId!, `workflowId`)], + [_wI]: [, __expectNonNull(input[_wI]!, `workflowId`)], }); let body: any; body = JSON.stringify( @@ -890,16 +680,8 @@ export const se_UpdateWorkflowStepGroupCommand = async ( previous: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2834,6 +2616,16 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aACN = "adsApplicationConfigurationName"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _s = "status"; +const _sGI = "stepGroupId"; +const _tI = "templateId"; +const _tK = "tagKeys"; +const _wI = "workflowId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-migrationhubstrategy/package.json b/clients/client-migrationhubstrategy/package.json index 8b2400827ba9..5b771c718b4a 100644 --- a/clients/client-migrationhubstrategy/package.json +++ b/clients/client-migrationhubstrategy/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts index 1fbe50c0ea88..4eaa00eb263f 100644 --- a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts +++ b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -132,29 +133,13 @@ export const se_GetApplicationComponentDetailsCommand = async ( input: GetApplicationComponentDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/get-applicationcomponent-details/{applicationComponentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationComponentId", - () => input.applicationComponentId!, - "{applicationComponentId}", - false - ); + b.bp("/get-applicationcomponent-details/{applicationComponentId}"); + b.p("applicationComponentId", () => input.applicationComponentId!, "{applicationComponentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -164,29 +149,13 @@ export const se_GetApplicationComponentStrategiesCommand = async ( input: GetApplicationComponentStrategiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/get-applicationcomponent-strategies/{applicationComponentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationComponentId", - () => input.applicationComponentId!, - "{applicationComponentId}", - false - ); + b.bp("/get-applicationcomponent-strategies/{applicationComponentId}"); + b.p("applicationComponentId", () => input.applicationComponentId!, "{applicationComponentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -196,20 +165,13 @@ export const se_GetAssessmentCommand = async ( input: GetAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-assessment/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/get-assessment/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -219,21 +181,13 @@ export const se_GetImportFileTaskCommand = async ( input: GetImportFileTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-import-file-task/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/get-import-file-task/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -243,23 +197,15 @@ export const se_GetLatestAssessmentIdCommand = async ( input: GetLatestAssessmentIdCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-latest-assessment-id"; + b.bp("/get-latest-assessment-id"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -269,23 +215,15 @@ export const se_GetPortfolioPreferencesCommand = async ( input: GetPortfolioPreferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-portfolio-preferences"; + b.bp("/get-portfolio-preferences"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -295,22 +233,15 @@ export const se_GetPortfolioSummaryCommand = async ( input: GetPortfolioSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-portfolio-summary"; + b.bp("/get-portfolio-summary"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -320,21 +251,13 @@ export const se_GetRecommendationReportDetailsCommand = async ( input: GetRecommendationReportDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-recommendation-report-details/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/get-recommendation-report-details/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -344,26 +267,17 @@ export const se_GetServerDetailsCommand = async ( input: GetServerDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-server-details/{serverId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "serverId", () => input.serverId!, "{serverId}", false); + b.bp("/get-server-details/{serverId}"); + b.p("serverId", () => input.serverId!, "{serverId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -373,21 +287,13 @@ export const se_GetServerStrategiesCommand = async ( input: GetServerStrategiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-server-strategies/{serverId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "serverId", () => input.serverId!, "{serverId}", false); + b.bp("/get-server-strategies/{serverId}"); + b.p("serverId", () => input.serverId!, "{serverId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -397,12 +303,11 @@ export const se_ListAnalyzableServersCommand = async ( input: ListAnalyzableServersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-analyzable-servers"; + b.bp("/list-analyzable-servers"); let body: any; body = JSON.stringify( take(input, { @@ -411,15 +316,8 @@ export const se_ListAnalyzableServersCommand = async ( sort: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -429,12 +327,11 @@ export const se_ListApplicationComponentsCommand = async ( input: ListApplicationComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-applicationcomponents"; + b.bp("/list-applicationcomponents"); let body: any; body = JSON.stringify( take(input, { @@ -446,15 +343,8 @@ export const se_ListApplicationComponentsCommand = async ( sort: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -464,24 +354,16 @@ export const se_ListCollectorsCommand = async ( input: ListCollectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-collectors"; + b.bp("/list-collectors"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -491,24 +373,16 @@ export const se_ListImportFileTaskCommand = async ( input: ListImportFileTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-import-file-task"; + b.bp("/list-import-file-task"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -518,11 +392,11 @@ export const se_ListServersCommand = async ( input: ListServersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-servers"; + b.bp("/list-servers"); let body: any; body = JSON.stringify( take(input, { @@ -534,15 +408,8 @@ export const se_ListServersCommand = async ( sort: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -552,12 +419,11 @@ export const se_PutPortfolioPreferencesCommand = async ( input: PutPortfolioPreferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences"; + b.bp("/put-portfolio-preferences"); let body: any; body = JSON.stringify( take(input, { @@ -567,15 +433,8 @@ export const se_PutPortfolioPreferencesCommand = async ( prioritizeBusinessGoals: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -585,11 +444,11 @@ export const se_StartAssessmentCommand = async ( input: StartAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment"; + b.bp("/start-assessment"); let body: any; body = JSON.stringify( take(input, { @@ -599,15 +458,8 @@ export const se_StartAssessmentCommand = async ( s3bucketForReportData: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -617,12 +469,11 @@ export const se_StartImportFileTaskCommand = async ( input: StartImportFileTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-import-file-task"; + b.bp("/start-import-file-task"); let body: any; body = JSON.stringify( take(input, { @@ -634,15 +485,8 @@ export const se_StartImportFileTaskCommand = async ( s3key: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -652,12 +496,11 @@ export const se_StartRecommendationReportGenerationCommand = async ( input: StartRecommendationReportGenerationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-recommendation-report-generation"; + b.bp("/start-recommendation-report-generation"); let body: any; body = JSON.stringify( take(input, { @@ -665,15 +508,8 @@ export const se_StartRecommendationReportGenerationCommand = async ( outputFormat: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -683,26 +519,19 @@ export const se_StopAssessmentCommand = async ( input: StopAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stop-assessment"; + b.bp("/stop-assessment"); let body: any; body = JSON.stringify( take(input, { assessmentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -712,12 +541,11 @@ export const se_UpdateApplicationComponentConfigCommand = async ( input: UpdateApplicationComponentConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config"; + b.bp("/update-applicationcomponent-config"); let body: any; body = JSON.stringify( take(input, { @@ -730,15 +558,8 @@ export const se_UpdateApplicationComponentConfigCommand = async ( strategyOption: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -748,11 +569,11 @@ export const se_UpdateServerConfigCommand = async ( input: UpdateServerConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-server-config"; + b.bp("/update-server-config"); let body: any; body = JSON.stringify( take(input, { @@ -760,15 +581,8 @@ export const se_UpdateServerConfigCommand = async ( strategyOption: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2568,6 +2382,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mobile/package.json b/clients/client-mobile/package.json index a3f5ea938f7d..49393d7fbaa0 100644 --- a/clients/client-mobile/package.json +++ b/clients/client-mobile/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mobile/src/protocols/Aws_restJson1.ts b/clients/client-mobile/src/protocols/Aws_restJson1.ts index 826d3c80a610..4dcff5c38e84 100644 --- a/clients/client-mobile/src/protocols/Aws_restJson1.ts +++ b/clients/client-mobile/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -50,30 +51,22 @@ export const se_CreateProjectCommand = async ( input: CreateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); const query: any = map({ - name: [, input.name!], - region: [, input.region!], - snapshotId: [, input.snapshotId!], + [_n]: [, input[_n]!], + [_r]: [, input[_r]!], + [_sI]: [, input[_sI]!], }); let body: any; if (input.contents !== undefined) { body = input.contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -83,20 +76,13 @@ export const se_DeleteProjectCommand = async ( input: DeleteProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/projects/{projectId}"); + b.p("projectId", () => input.projectId!, "{projectId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -106,20 +92,13 @@ export const se_DescribeBundleCommand = async ( input: DescribeBundleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bundles/{bundleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "bundleId", () => input.bundleId!, "{bundleId}", false); + b.bp("/bundles/{bundleId}"); + b.p("bundleId", () => input.bundleId!, "{bundleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -129,24 +108,16 @@ export const se_DescribeProjectCommand = async ( input: DescribeProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/project"; + b.bp("/project"); const query: any = map({ - projectId: [, __expectNonNull(input.projectId!, `projectId`)], - syncFromResources: [() => input.syncFromResources !== void 0, () => input.syncFromResources!.toString()], + [_pI]: [, __expectNonNull(input[_pI]!, `projectId`)], + [_sFR]: [() => input.syncFromResources !== void 0, () => input[_sFR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -156,25 +127,17 @@ export const se_ExportBundleCommand = async ( input: ExportBundleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bundles/{bundleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "bundleId", () => input.bundleId!, "{bundleId}", false); + b.bp("/bundles/{bundleId}"); + b.p("bundleId", () => input.bundleId!, "{bundleId}", false); const query: any = map({ - projectId: [, input.projectId!], - platform: [, input.platform!], + [_pI]: [, input[_pI]!], + [_p]: [, input[_p]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -184,20 +147,13 @@ export const se_ExportProjectCommand = async ( input: ExportProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports/{projectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId!, "{projectId}", false); + b.bp("/exports/{projectId}"); + b.p("projectId", () => input.projectId!, "{projectId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -207,24 +163,16 @@ export const se_ListBundlesCommand = async ( input: ListBundlesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bundles"; + b.bp("/bundles"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -234,24 +182,16 @@ export const se_ListProjectsCommand = async ( input: ListProjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects"; + b.bp("/projects"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -261,28 +201,20 @@ export const se_UpdateProjectCommand = async ( input: UpdateProjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/octet-stream", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update"; + b.bp("/update"); const query: any = map({ - projectId: [, __expectNonNull(input.projectId!, `projectId`)], + [_pI]: [, __expectNonNull(input[_pI]!, `projectId`)], }); let body: any; if (input.contents !== undefined) { body = input.contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -914,7 +846,7 @@ const de_LimitExceededExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -953,7 +885,7 @@ const de_ServiceUnavailableExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -975,7 +907,7 @@ const de_TooManyRequestsExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [, parsedOutput.headers["retry-after"]], + [_rAS]: [, parsedOutput.headers[_ra]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1060,6 +992,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _p = "platform"; +const _pI = "projectId"; +const _r = "region"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _sFR = "syncFromResources"; +const _sI = "snapshotId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mq/package.json b/clients/client-mq/package.json index 349bc70bf6cb..3c65dde87c08 100644 --- a/clients/client-mq/package.json +++ b/clients/client-mq/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mq/src/protocols/Aws_restJson1.ts b/clients/client-mq/src/protocols/Aws_restJson1.ts index dc35b99407ec..48181b333c28 100644 --- a/clients/client-mq/src/protocols/Aws_restJson1.ts +++ b/clients/client-mq/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -108,11 +109,11 @@ export const se_CreateBrokerCommand = async ( input: CreateBrokerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers"; + b.bp("/v1/brokers"); let body: any; body = JSON.stringify( take(input, { @@ -139,15 +140,8 @@ export const se_CreateBrokerCommand = async ( users: [, (_) => se___listOfUser(_, context), `Users`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -157,11 +151,11 @@ export const se_CreateConfigurationCommand = async ( input: CreateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations"; + b.bp("/v1/configurations"); let body: any; body = JSON.stringify( take(input, { @@ -172,15 +166,8 @@ export const se_CreateConfigurationCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -190,27 +177,20 @@ export const se_CreateTagsCommand = async ( input: CreateTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -220,14 +200,13 @@ export const se_CreateUserCommand = async ( input: CreateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users/{Username}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Username", () => input.Username!, "{Username}", false); + b.bp("/v1/brokers/{BrokerId}/users/{Username}"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.p("Username", () => input.Username!, "{Username}", false); let body: any; body = JSON.stringify( take(input, { @@ -237,15 +216,8 @@ export const se_CreateUserCommand = async ( replicationUser: [, , `ReplicationUser`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -255,20 +227,13 @@ export const se_DeleteBrokerCommand = async ( input: DeleteBrokerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.bp("/v1/brokers/{BrokerId}"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -278,27 +243,19 @@ export const se_DeleteTagsCommand = async ( input: DeleteTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -308,22 +265,14 @@ export const se_DeleteUserCommand = async ( input: DeleteUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users/{Username}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Username", () => input.Username!, "{Username}", false); + b.bp("/v1/brokers/{BrokerId}/users/{Username}"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.p("Username", () => input.Username!, "{Username}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -333,20 +282,13 @@ export const se_DescribeBrokerCommand = async ( input: DescribeBrokerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.bp("/v1/brokers/{BrokerId}"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -356,26 +298,17 @@ export const se_DescribeBrokerEngineTypesCommand = async ( input: DescribeBrokerEngineTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/broker-engine-types"; + b.bp("/v1/broker-engine-types"); const query: any = map({ - engineType: [, input.EngineType!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_eT]: [, input[_ET]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -385,28 +318,19 @@ export const se_DescribeBrokerInstanceOptionsCommand = async ( input: DescribeBrokerInstanceOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/broker-instance-options"; + b.bp("/v1/broker-instance-options"); const query: any = map({ - engineType: [, input.EngineType!], - hostInstanceType: [, input.HostInstanceType!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - storageType: [, input.StorageType!], + [_eT]: [, input[_ET]!], + [_hIT]: [, input[_HIT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_sT]: [, input[_ST]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -416,28 +340,13 @@ export const se_DescribeConfigurationCommand = async ( input: DescribeConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{ConfigurationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationId", - () => input.ConfigurationId!, - "{ConfigurationId}", - false - ); + b.bp("/v1/configurations/{ConfigurationId}"); + b.p("ConfigurationId", () => input.ConfigurationId!, "{ConfigurationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -447,37 +356,14 @@ export const se_DescribeConfigurationRevisionCommand = async ( input: DescribeConfigurationRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationId", - () => input.ConfigurationId!, - "{ConfigurationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationRevision", - () => input.ConfigurationRevision!, - "{ConfigurationRevision}", - false - ); + b.bp("/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}"); + b.p("ConfigurationId", () => input.ConfigurationId!, "{ConfigurationId}", false); + b.p("ConfigurationRevision", () => input.ConfigurationRevision!, "{ConfigurationRevision}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -487,22 +373,14 @@ export const se_DescribeUserCommand = async ( input: DescribeUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users/{Username}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Username", () => input.Username!, "{Username}", false); + b.bp("/v1/brokers/{BrokerId}/users/{Username}"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.p("Username", () => input.Username!, "{Username}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -512,24 +390,16 @@ export const se_ListBrokersCommand = async ( input: ListBrokersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers"; + b.bp("/v1/brokers"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -539,34 +409,17 @@ export const se_ListConfigurationRevisionsCommand = async ( input: ListConfigurationRevisionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/configurations/{ConfigurationId}/revisions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationId", - () => input.ConfigurationId!, - "{ConfigurationId}", - false - ); + b.bp("/v1/configurations/{ConfigurationId}/revisions"); + b.p("ConfigurationId", () => input.ConfigurationId!, "{ConfigurationId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -576,24 +429,16 @@ export const se_ListConfigurationsCommand = async ( input: ListConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations"; + b.bp("/v1/configurations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -603,20 +448,13 @@ export const se_ListTagsCommand = async ( input: ListTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -626,26 +464,17 @@ export const se_ListUsersCommand = async ( input: ListUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.bp("/v1/brokers/{BrokerId}/users"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -655,28 +484,20 @@ export const se_PromoteCommand = async ( input: PromoteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/promote"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.bp("/v1/brokers/{BrokerId}/promote"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); let body: any; body = JSON.stringify( take(input, { mode: [, , `Mode`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -686,21 +507,13 @@ export const se_RebootBrokerCommand = async ( input: RebootBrokerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/reboot"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.bp("/v1/brokers/{BrokerId}/reboot"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -710,12 +523,12 @@ export const se_UpdateBrokerCommand = async ( input: UpdateBrokerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.bp("/v1/brokers/{BrokerId}"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); let body: any; body = JSON.stringify( take(input, { @@ -731,15 +544,8 @@ export const se_UpdateBrokerCommand = async ( securityGroups: [, (_) => _json(_), `SecurityGroups`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -749,20 +555,12 @@ export const se_UpdateConfigurationCommand = async ( input: UpdateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{ConfigurationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationId", - () => input.ConfigurationId!, - "{ConfigurationId}", - false - ); + b.bp("/v1/configurations/{ConfigurationId}"); + b.p("ConfigurationId", () => input.ConfigurationId!, "{ConfigurationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -770,15 +568,8 @@ export const se_UpdateConfigurationCommand = async ( description: [, , `Description`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -788,14 +579,13 @@ export const se_UpdateUserCommand = async ( input: UpdateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users/{Username}"; - resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", () => input.BrokerId!, "{BrokerId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Username", () => input.Username!, "{Username}", false); + b.bp("/v1/brokers/{BrokerId}/users/{Username}"); + b.p("BrokerId", () => input.BrokerId!, "{BrokerId}", false); + b.p("Username", () => input.Username!, "{Username}", false); let body: any; body = JSON.stringify( take(input, { @@ -805,15 +595,8 @@ export const se_UpdateUserCommand = async ( replicationUser: [, , `ReplicationUser`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2802,6 +2585,19 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _ET = "EngineType"; +const _HIT = "HostInstanceType"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _ST = "StorageType"; +const _TK = "TagKeys"; +const _eT = "engineType"; +const _hIT = "hostInstanceType"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _sT = "storageType"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-mwaa/package.json b/clients/client-mwaa/package.json index 54162b36ddc6..132058b588c2 100644 --- a/clients/client-mwaa/package.json +++ b/clients/client-mwaa/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-mwaa/src/protocols/Aws_restJson1.ts b/clients/client-mwaa/src/protocols/Aws_restJson1.ts index f7e257562d3b..d83e328e9d9e 100644 --- a/clients/client-mwaa/src/protocols/Aws_restJson1.ts +++ b/clients/client-mwaa/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -68,10 +69,10 @@ export const se_CreateCliTokenCommand = async ( input: CreateCliTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clitoken/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/clitoken/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -80,15 +81,9 @@ export const se_CreateCliTokenCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -98,12 +93,12 @@ export const se_CreateEnvironmentCommand = async ( input: CreateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/environments/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -138,15 +133,9 @@ export const se_CreateEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -156,10 +145,10 @@ export const se_CreateWebLoginTokenCommand = async ( input: CreateWebLoginTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webtoken/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/webtoken/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -168,15 +157,9 @@ export const se_CreateWebLoginTokenCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -186,10 +169,10 @@ export const se_DeleteEnvironmentCommand = async ( input: DeleteEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/environments/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -198,15 +181,9 @@ export const se_DeleteEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -216,10 +193,10 @@ export const se_GetEnvironmentCommand = async ( input: GetEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/environments/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -228,15 +205,9 @@ export const se_GetEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -246,12 +217,12 @@ export const se_ListEnvironmentsCommand = async ( input: ListEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments"; + b.bp("/environments"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -261,16 +232,9 @@ export const se_ListEnvironmentsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -280,10 +244,10 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -292,15 +256,9 @@ export const se_ListTagsForResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -310,20 +268,12 @@ export const se_PublishMetricsCommand = async ( input: PublishMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/environments/{EnvironmentName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EnvironmentName", - () => input.EnvironmentName!, - "{EnvironmentName}", - false - ); + b.bp("/metrics/environments/{EnvironmentName}"); + b.p("EnvironmentName", () => input.EnvironmentName!, "{EnvironmentName}", false); let body: any; body = JSON.stringify( take(input, { @@ -337,15 +287,9 @@ export const se_PublishMetricsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -355,12 +299,12 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -374,15 +318,9 @@ export const se_TagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -392,14 +330,14 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -410,16 +348,9 @@ export const se_UntagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -429,12 +360,12 @@ export const se_UpdateEnvironmentCommand = async ( input: UpdateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/environments/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -466,15 +397,9 @@ export const se_UpdateEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1259,6 +1184,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-neptune-graph/package.json b/clients/client-neptune-graph/package.json index c6c0cf7432ea..06c459bed10a 100644 --- a/clients/client-neptune-graph/package.json +++ b/clients/client-neptune-graph/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts b/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts index d43b2c559243..6f6c4b73dab3 100644 --- a/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts +++ b/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -96,28 +97,13 @@ export const se_CancelImportTaskCommand = async ( input: CancelImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks/{taskIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "taskIdentifier", - () => input.taskIdentifier!, - "{taskIdentifier}", - false - ); + b.bp("/importtasks/{taskIdentifier}"); + b.p("taskIdentifier", () => input.taskIdentifier!, "{taskIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -127,11 +113,11 @@ export const se_CreateGraphCommand = async ( input: CreateGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs"; + b.bp("/graphs"); let body: any; body = JSON.stringify( take(input, { @@ -145,15 +131,8 @@ export const se_CreateGraphCommand = async ( vectorSearchConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -163,11 +142,11 @@ export const se_CreateGraphSnapshotCommand = async ( input: CreateGraphSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots"; + b.bp("/snapshots"); let body: any; body = JSON.stringify( take(input, { @@ -176,15 +155,8 @@ export const se_CreateGraphSnapshotCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -194,11 +166,11 @@ export const se_CreateGraphUsingImportTaskCommand = async ( input: CreateGraphUsingImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks"; + b.bp("/importtasks"); let body: any; body = JSON.stringify( take(input, { @@ -218,15 +190,8 @@ export const se_CreateGraphUsingImportTaskCommand = async ( vectorSearchConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -236,20 +201,12 @@ export const se_CreatePrivateGraphEndpointCommand = async ( input: CreatePrivateGraphEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}/endpoints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); + b.bp("/graphs/{graphIdentifier}/endpoints"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -258,15 +215,8 @@ export const se_CreatePrivateGraphEndpointCommand = async ( vpcSecurityGroupIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -276,32 +226,16 @@ export const se_DeleteGraphCommand = async ( input: DeleteGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); + b.bp("/graphs/{graphIdentifier}"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); const query: any = map({ - skipSnapshot: [__expectNonNull(input.skipSnapshot, `skipSnapshot`) != null, () => input.skipSnapshot!.toString()], + [_sS]: [__expectNonNull(input.skipSnapshot, `skipSnapshot`) != null, () => input[_sS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -311,28 +245,13 @@ export const se_DeleteGraphSnapshotCommand = async ( input: DeleteGraphSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/{snapshotIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "snapshotIdentifier", - () => input.snapshotIdentifier!, - "{snapshotIdentifier}", - false - ); + b.bp("/snapshots/{snapshotIdentifier}"); + b.p("snapshotIdentifier", () => input.snapshotIdentifier!, "{snapshotIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -342,30 +261,14 @@ export const se_DeletePrivateGraphEndpointCommand = async ( input: DeletePrivateGraphEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/graphs/{graphIdentifier}/endpoints/{vpcId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "vpcId", () => input.vpcId!, "{vpcId}", false); + b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); + b.p("vpcId", () => input.vpcId!, "{vpcId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -375,28 +278,13 @@ export const se_GetGraphCommand = async ( input: GetGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); + b.bp("/graphs/{graphIdentifier}"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -406,28 +294,13 @@ export const se_GetGraphSnapshotCommand = async ( input: GetGraphSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/{snapshotIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "snapshotIdentifier", - () => input.snapshotIdentifier!, - "{snapshotIdentifier}", - false - ); + b.bp("/snapshots/{snapshotIdentifier}"); + b.p("snapshotIdentifier", () => input.snapshotIdentifier!, "{snapshotIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -437,28 +310,13 @@ export const se_GetImportTaskCommand = async ( input: GetImportTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks/{taskIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "taskIdentifier", - () => input.taskIdentifier!, - "{taskIdentifier}", - false - ); + b.bp("/importtasks/{taskIdentifier}"); + b.p("taskIdentifier", () => input.taskIdentifier!, "{taskIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -468,30 +326,14 @@ export const se_GetPrivateGraphEndpointCommand = async ( input: GetPrivateGraphEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/graphs/{graphIdentifier}/endpoints/{vpcId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "vpcId", () => input.vpcId!, "{vpcId}", false); + b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); + b.p("vpcId", () => input.vpcId!, "{vpcId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -501,24 +343,16 @@ export const se_ListGraphsCommand = async ( input: ListGraphsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs"; + b.bp("/graphs"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -528,25 +362,17 @@ export const se_ListGraphSnapshotsCommand = async ( input: ListGraphSnapshotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots"; + b.bp("/snapshots"); const query: any = map({ - graphIdentifier: [, input.graphIdentifier!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_gI]: [, input[_gI]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -556,24 +382,16 @@ export const se_ListImportTasksCommand = async ( input: ListImportTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks"; + b.bp("/importtasks"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -583,33 +401,17 @@ export const se_ListPrivateGraphEndpointsCommand = async ( input: ListPrivateGraphEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}/endpoints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); + b.bp("/graphs/{graphIdentifier}/endpoints"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -619,20 +421,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -642,35 +437,20 @@ export const se_ResetGraphCommand = async ( input: ResetGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); + b.bp("/graphs/{graphIdentifier}"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); let body: any; body = JSON.stringify( take(input, { skipSnapshot: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -680,20 +460,12 @@ export const se_RestoreGraphFromSnapshotCommand = async ( input: RestoreGraphFromSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/{snapshotIdentifier}/restore"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "snapshotIdentifier", - () => input.snapshotIdentifier!, - "{snapshotIdentifier}", - false - ); + b.bp("/snapshots/{snapshotIdentifier}/restore"); + b.p("snapshotIdentifier", () => input.snapshotIdentifier!, "{snapshotIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -705,15 +477,8 @@ export const se_RestoreGraphFromSnapshotCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -723,27 +488,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -753,27 +511,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -783,20 +533,12 @@ export const se_UpdateGraphCommand = async ( input: UpdateGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "graphIdentifier", - () => input.graphIdentifier!, - "{graphIdentifier}", - false - ); + b.bp("/graphs/{graphIdentifier}"); + b.p("graphIdentifier", () => input.graphIdentifier!, "{graphIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -805,15 +547,8 @@ export const se_UpdateGraphCommand = async ( publicConnectivity: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2428,6 +2163,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _gI = "graphIdentifier"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _sS = "skipSnapshot"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-neptune/src/protocols/Aws_query.ts b/clients/client-neptune/src/protocols/Aws_query.ts index 012f973d64d6..53627ab9aab4 100644 --- a/clients/client-neptune/src/protocols/Aws_query.ts +++ b/clients/client-neptune/src/protocols/Aws_query.ts @@ -515,8 +515,8 @@ export const se_AddRoleToDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddRoleToDBClusterMessage(input, context), - Action: "AddRoleToDBCluster", - Version: "2014-10-31", + [_A]: _ARTDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -532,8 +532,8 @@ export const se_AddSourceIdentifierToSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddSourceIdentifierToSubscriptionMessage(input, context), - Action: "AddSourceIdentifierToSubscription", - Version: "2014-10-31", + [_A]: _ASITS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -549,8 +549,8 @@ export const se_AddTagsToResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddTagsToResourceMessage(input, context), - Action: "AddTagsToResource", - Version: "2014-10-31", + [_A]: _ATTR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -566,8 +566,8 @@ export const se_ApplyPendingMaintenanceActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ApplyPendingMaintenanceActionMessage(input, context), - Action: "ApplyPendingMaintenanceAction", - Version: "2014-10-31", + [_A]: _APMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -583,8 +583,8 @@ export const se_CopyDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBClusterParameterGroupMessage(input, context), - Action: "CopyDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _CDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -600,8 +600,8 @@ export const se_CopyDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBClusterSnapshotMessage(input, context), - Action: "CopyDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _CDBCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -617,8 +617,8 @@ export const se_CopyDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBParameterGroupMessage(input, context), - Action: "CopyDBParameterGroup", - Version: "2014-10-31", + [_A]: _CDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -634,8 +634,8 @@ export const se_CreateDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterMessage(input, context), - Action: "CreateDBCluster", - Version: "2014-10-31", + [_A]: _CDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -651,8 +651,8 @@ export const se_CreateDBClusterEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterEndpointMessage(input, context), - Action: "CreateDBClusterEndpoint", - Version: "2014-10-31", + [_A]: _CDBCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -668,8 +668,8 @@ export const se_CreateDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterParameterGroupMessage(input, context), - Action: "CreateDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _CDBCPGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -685,8 +685,8 @@ export const se_CreateDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterSnapshotMessage(input, context), - Action: "CreateDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _CDBCSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -702,8 +702,8 @@ export const se_CreateDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBInstanceMessage(input, context), - Action: "CreateDBInstance", - Version: "2014-10-31", + [_A]: _CDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -719,8 +719,8 @@ export const se_CreateDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBParameterGroupMessage(input, context), - Action: "CreateDBParameterGroup", - Version: "2014-10-31", + [_A]: _CDBPGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -736,8 +736,8 @@ export const se_CreateDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBSubnetGroupMessage(input, context), - Action: "CreateDBSubnetGroup", - Version: "2014-10-31", + [_A]: _CDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -753,8 +753,8 @@ export const se_CreateEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateEventSubscriptionMessage(input, context), - Action: "CreateEventSubscription", - Version: "2014-10-31", + [_A]: _CES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -770,8 +770,8 @@ export const se_CreateGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateGlobalClusterMessage(input, context), - Action: "CreateGlobalCluster", - Version: "2014-10-31", + [_A]: _CGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -787,8 +787,8 @@ export const se_DeleteDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterMessage(input, context), - Action: "DeleteDBCluster", - Version: "2014-10-31", + [_A]: _DDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -804,8 +804,8 @@ export const se_DeleteDBClusterEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterEndpointMessage(input, context), - Action: "DeleteDBClusterEndpoint", - Version: "2014-10-31", + [_A]: _DDBCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -821,8 +821,8 @@ export const se_DeleteDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterParameterGroupMessage(input, context), - Action: "DeleteDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _DDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -838,8 +838,8 @@ export const se_DeleteDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterSnapshotMessage(input, context), - Action: "DeleteDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _DDBCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -855,8 +855,8 @@ export const se_DeleteDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBInstanceMessage(input, context), - Action: "DeleteDBInstance", - Version: "2014-10-31", + [_A]: _DDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -872,8 +872,8 @@ export const se_DeleteDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBParameterGroupMessage(input, context), - Action: "DeleteDBParameterGroup", - Version: "2014-10-31", + [_A]: _DDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -889,8 +889,8 @@ export const se_DeleteDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBSubnetGroupMessage(input, context), - Action: "DeleteDBSubnetGroup", - Version: "2014-10-31", + [_A]: _DDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -906,8 +906,8 @@ export const se_DeleteEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEventSubscriptionMessage(input, context), - Action: "DeleteEventSubscription", - Version: "2014-10-31", + [_A]: _DES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -923,8 +923,8 @@ export const se_DeleteGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteGlobalClusterMessage(input, context), - Action: "DeleteGlobalCluster", - Version: "2014-10-31", + [_A]: _DGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -940,8 +940,8 @@ export const se_DescribeDBClusterEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterEndpointsMessage(input, context), - Action: "DescribeDBClusterEndpoints", - Version: "2014-10-31", + [_A]: _DDBCEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -957,8 +957,8 @@ export const se_DescribeDBClusterParameterGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterParameterGroupsMessage(input, context), - Action: "DescribeDBClusterParameterGroups", - Version: "2014-10-31", + [_A]: _DDBCPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -974,8 +974,8 @@ export const se_DescribeDBClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterParametersMessage(input, context), - Action: "DescribeDBClusterParameters", - Version: "2014-10-31", + [_A]: _DDBCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -991,8 +991,8 @@ export const se_DescribeDBClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClustersMessage(input, context), - Action: "DescribeDBClusters", - Version: "2014-10-31", + [_A]: _DDBCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1008,8 +1008,8 @@ export const se_DescribeDBClusterSnapshotAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterSnapshotAttributesMessage(input, context), - Action: "DescribeDBClusterSnapshotAttributes", - Version: "2014-10-31", + [_A]: _DDBCSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1025,8 +1025,8 @@ export const se_DescribeDBClusterSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterSnapshotsMessage(input, context), - Action: "DescribeDBClusterSnapshots", - Version: "2014-10-31", + [_A]: _DDBCSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1042,8 +1042,8 @@ export const se_DescribeDBEngineVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBEngineVersionsMessage(input, context), - Action: "DescribeDBEngineVersions", - Version: "2014-10-31", + [_A]: _DDBEV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1059,8 +1059,8 @@ export const se_DescribeDBInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBInstancesMessage(input, context), - Action: "DescribeDBInstances", - Version: "2014-10-31", + [_A]: _DDBIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1076,8 +1076,8 @@ export const se_DescribeDBParameterGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBParameterGroupsMessage(input, context), - Action: "DescribeDBParameterGroups", - Version: "2014-10-31", + [_A]: _DDBPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1093,8 +1093,8 @@ export const se_DescribeDBParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBParametersMessage(input, context), - Action: "DescribeDBParameters", - Version: "2014-10-31", + [_A]: _DDBP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1110,8 +1110,8 @@ export const se_DescribeDBSubnetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBSubnetGroupsMessage(input, context), - Action: "DescribeDBSubnetGroups", - Version: "2014-10-31", + [_A]: _DDBSGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1127,8 +1127,8 @@ export const se_DescribeEngineDefaultClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEngineDefaultClusterParametersMessage(input, context), - Action: "DescribeEngineDefaultClusterParameters", - Version: "2014-10-31", + [_A]: _DEDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1144,8 +1144,8 @@ export const se_DescribeEngineDefaultParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEngineDefaultParametersMessage(input, context), - Action: "DescribeEngineDefaultParameters", - Version: "2014-10-31", + [_A]: _DEDP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1161,8 +1161,8 @@ export const se_DescribeEventCategoriesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventCategoriesMessage(input, context), - Action: "DescribeEventCategories", - Version: "2014-10-31", + [_A]: _DEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1178,8 +1178,8 @@ export const se_DescribeEventsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventsMessage(input, context), - Action: "DescribeEvents", - Version: "2014-10-31", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1195,8 +1195,8 @@ export const se_DescribeEventSubscriptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventSubscriptionsMessage(input, context), - Action: "DescribeEventSubscriptions", - Version: "2014-10-31", + [_A]: _DESe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1212,8 +1212,8 @@ export const se_DescribeGlobalClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeGlobalClustersMessage(input, context), - Action: "DescribeGlobalClusters", - Version: "2014-10-31", + [_A]: _DGCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1229,8 +1229,8 @@ export const se_DescribeOrderableDBInstanceOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeOrderableDBInstanceOptionsMessage(input, context), - Action: "DescribeOrderableDBInstanceOptions", - Version: "2014-10-31", + [_A]: _DODBIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1246,8 +1246,8 @@ export const se_DescribePendingMaintenanceActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePendingMaintenanceActionsMessage(input, context), - Action: "DescribePendingMaintenanceActions", - Version: "2014-10-31", + [_A]: _DPMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1263,8 +1263,8 @@ export const se_DescribeValidDBInstanceModificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeValidDBInstanceModificationsMessage(input, context), - Action: "DescribeValidDBInstanceModifications", - Version: "2014-10-31", + [_A]: _DVDBIM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1280,8 +1280,8 @@ export const se_FailoverDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_FailoverDBClusterMessage(input, context), - Action: "FailoverDBCluster", - Version: "2014-10-31", + [_A]: _FDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1297,8 +1297,8 @@ export const se_FailoverGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_FailoverGlobalClusterMessage(input, context), - Action: "FailoverGlobalCluster", - Version: "2014-10-31", + [_A]: _FGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1314,8 +1314,8 @@ export const se_ListTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTagsForResourceMessage(input, context), - Action: "ListTagsForResource", - Version: "2014-10-31", + [_A]: _LTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1331,8 +1331,8 @@ export const se_ModifyDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterMessage(input, context), - Action: "ModifyDBCluster", - Version: "2014-10-31", + [_A]: _MDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1348,8 +1348,8 @@ export const se_ModifyDBClusterEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterEndpointMessage(input, context), - Action: "ModifyDBClusterEndpoint", - Version: "2014-10-31", + [_A]: _MDBCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1365,8 +1365,8 @@ export const se_ModifyDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterParameterGroupMessage(input, context), - Action: "ModifyDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _MDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1382,8 +1382,8 @@ export const se_ModifyDBClusterSnapshotAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterSnapshotAttributeMessage(input, context), - Action: "ModifyDBClusterSnapshotAttribute", - Version: "2014-10-31", + [_A]: _MDBCSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1399,8 +1399,8 @@ export const se_ModifyDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBInstanceMessage(input, context), - Action: "ModifyDBInstance", - Version: "2014-10-31", + [_A]: _MDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1416,8 +1416,8 @@ export const se_ModifyDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBParameterGroupMessage(input, context), - Action: "ModifyDBParameterGroup", - Version: "2014-10-31", + [_A]: _MDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1433,8 +1433,8 @@ export const se_ModifyDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBSubnetGroupMessage(input, context), - Action: "ModifyDBSubnetGroup", - Version: "2014-10-31", + [_A]: _MDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1450,8 +1450,8 @@ export const se_ModifyEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyEventSubscriptionMessage(input, context), - Action: "ModifyEventSubscription", - Version: "2014-10-31", + [_A]: _MES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1467,8 +1467,8 @@ export const se_ModifyGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyGlobalClusterMessage(input, context), - Action: "ModifyGlobalCluster", - Version: "2014-10-31", + [_A]: _MGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1484,8 +1484,8 @@ export const se_PromoteReadReplicaDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PromoteReadReplicaDBClusterMessage(input, context), - Action: "PromoteReadReplicaDBCluster", - Version: "2014-10-31", + [_A]: _PRRDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1501,8 +1501,8 @@ export const se_RebootDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebootDBInstanceMessage(input, context), - Action: "RebootDBInstance", - Version: "2014-10-31", + [_A]: _RDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1518,8 +1518,8 @@ export const se_RemoveFromGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveFromGlobalClusterMessage(input, context), - Action: "RemoveFromGlobalCluster", - Version: "2014-10-31", + [_A]: _RFGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1535,8 +1535,8 @@ export const se_RemoveRoleFromDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveRoleFromDBClusterMessage(input, context), - Action: "RemoveRoleFromDBCluster", - Version: "2014-10-31", + [_A]: _RRFDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1552,8 +1552,8 @@ export const se_RemoveSourceIdentifierFromSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveSourceIdentifierFromSubscriptionMessage(input, context), - Action: "RemoveSourceIdentifierFromSubscription", - Version: "2014-10-31", + [_A]: _RSIFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1569,8 +1569,8 @@ export const se_RemoveTagsFromResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveTagsFromResourceMessage(input, context), - Action: "RemoveTagsFromResource", - Version: "2014-10-31", + [_A]: _RTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1586,8 +1586,8 @@ export const se_ResetDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetDBClusterParameterGroupMessage(input, context), - Action: "ResetDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _RDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1603,8 +1603,8 @@ export const se_ResetDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetDBParameterGroupMessage(input, context), - Action: "ResetDBParameterGroup", - Version: "2014-10-31", + [_A]: _RDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1620,8 +1620,8 @@ export const se_RestoreDBClusterFromSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBClusterFromSnapshotMessage(input, context), - Action: "RestoreDBClusterFromSnapshot", - Version: "2014-10-31", + [_A]: _RDBCFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1637,8 +1637,8 @@ export const se_RestoreDBClusterToPointInTimeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBClusterToPointInTimeMessage(input, context), - Action: "RestoreDBClusterToPointInTime", - Version: "2014-10-31", + [_A]: _RDBCTPIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1654,8 +1654,8 @@ export const se_StartDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartDBClusterMessage(input, context), - Action: "StartDBCluster", - Version: "2014-10-31", + [_A]: _SDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1671,8 +1671,8 @@ export const se_StopDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopDBClusterMessage(input, context), - Action: "StopDBCluster", - Version: "2014-10-31", + [_A]: _SDBCt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -6423,14 +6423,14 @@ const de_SubscriptionNotFoundFaultRes = async ( */ const se_AddRoleToDBClusterMessage = (input: AddRoleToDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.FeatureName != null) { - entries["FeatureName"] = input.FeatureName; + if (input[_FN] != null) { + entries[_FN] = input[_FN]; } return entries; }; @@ -6443,11 +6443,11 @@ const se_AddSourceIdentifierToSubscriptionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } return entries; }; @@ -6457,12 +6457,12 @@ const se_AddSourceIdentifierToSubscriptionMessage = ( */ const se_AddTagsToResourceMessage = (input: AddTagsToResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6481,14 +6481,14 @@ const se_ApplyPendingMaintenanceActionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ResourceIdentifier != null) { - entries["ResourceIdentifier"] = input.ResourceIdentifier; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.ApplyAction != null) { - entries["ApplyAction"] = input.ApplyAction; + if (input[_AA] != null) { + entries[_AA] = input[_AA]; } - if (input.OptInType != null) { - entries["OptInType"] = input.OptInType; + if (input[_OIT] != null) { + entries[_OIT] = input[_OIT]; } return entries; }; @@ -6533,9 +6533,9 @@ const se_CloudwatchLogsExportConfiguration = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnableLogTypes != null) { - const memberEntries = se_LogTypeList(input.EnableLogTypes, context); - if (input.EnableLogTypes?.length === 0) { + if (input[_ELT] != null) { + const memberEntries = se_LogTypeList(input[_ELT], context); + if (input[_ELT]?.length === 0) { entries.EnableLogTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6543,9 +6543,9 @@ const se_CloudwatchLogsExportConfiguration = ( entries[loc] = value; }); } - if (input.DisableLogTypes != null) { - const memberEntries = se_LogTypeList(input.DisableLogTypes, context); - if (input.DisableLogTypes?.length === 0) { + if (input[_DLT] != null) { + const memberEntries = se_LogTypeList(input[_DLT], context); + if (input[_DLT]?.length === 0) { entries.DisableLogTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6564,18 +6564,18 @@ const se_CopyDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SourceDBClusterParameterGroupIdentifier != null) { - entries["SourceDBClusterParameterGroupIdentifier"] = input.SourceDBClusterParameterGroupIdentifier; + if (input[_SDBCPGI] != null) { + entries[_SDBCPGI] = input[_SDBCPGI]; } - if (input.TargetDBClusterParameterGroupIdentifier != null) { - entries["TargetDBClusterParameterGroupIdentifier"] = input.TargetDBClusterParameterGroupIdentifier; + if (input[_TDBCPGI] != null) { + entries[_TDBCPGI] = input[_TDBCPGI]; } - if (input.TargetDBClusterParameterGroupDescription != null) { - entries["TargetDBClusterParameterGroupDescription"] = input.TargetDBClusterParameterGroupDescription; + if (input[_TDBCPGD] != null) { + entries[_TDBCPGD] = input[_TDBCPGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6591,24 +6591,24 @@ const se_CopyDBClusterParameterGroupMessage = ( */ const se_CopyDBClusterSnapshotMessage = (input: CopyDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceDBClusterSnapshotIdentifier != null) { - entries["SourceDBClusterSnapshotIdentifier"] = input.SourceDBClusterSnapshotIdentifier; + if (input[_SDBCSI] != null) { + entries[_SDBCSI] = input[_SDBCSI]; } - if (input.TargetDBClusterSnapshotIdentifier != null) { - entries["TargetDBClusterSnapshotIdentifier"] = input.TargetDBClusterSnapshotIdentifier; + if (input[_TDBCSI] != null) { + entries[_TDBCSI] = input[_TDBCSI]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.CopyTags != null) { - entries["CopyTags"] = input.CopyTags; + if (input[_CT] != null) { + entries[_CT] = input[_CT]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6624,18 +6624,18 @@ const se_CopyDBClusterSnapshotMessage = (input: CopyDBClusterSnapshotMessage, co */ const se_CopyDBParameterGroupMessage = (input: CopyDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceDBParameterGroupIdentifier != null) { - entries["SourceDBParameterGroupIdentifier"] = input.SourceDBParameterGroupIdentifier; + if (input[_SDBPGI] != null) { + entries[_SDBPGI] = input[_SDBPGI]; } - if (input.TargetDBParameterGroupIdentifier != null) { - entries["TargetDBParameterGroupIdentifier"] = input.TargetDBParameterGroupIdentifier; + if (input[_TDBPGI] != null) { + entries[_TDBPGI] = input[_TDBPGI]; } - if (input.TargetDBParameterGroupDescription != null) { - entries["TargetDBParameterGroupDescription"] = input.TargetDBParameterGroupDescription; + if (input[_TDBPGD] != null) { + entries[_TDBPGD] = input[_TDBPGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6651,18 +6651,18 @@ const se_CopyDBParameterGroupMessage = (input: CopyDBParameterGroupMessage, cont */ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } - if (input.EndpointType != null) { - entries["EndpointType"] = input.EndpointType; + if (input[_ET] != null) { + entries[_ET] = input[_ET]; } - if (input.StaticMembers != null) { - const memberEntries = se_StringList(input.StaticMembers, context); - if (input.StaticMembers?.length === 0) { + if (input[_SM] != null) { + const memberEntries = se_StringList(input[_SM], context); + if (input[_SM]?.length === 0) { entries.StaticMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6670,9 +6670,9 @@ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage entries[loc] = value; }); } - if (input.ExcludedMembers != null) { - const memberEntries = se_StringList(input.ExcludedMembers, context); - if (input.ExcludedMembers?.length === 0) { + if (input[_EM] != null) { + const memberEntries = se_StringList(input[_EM], context); + if (input[_EM]?.length === 0) { entries.ExcludedMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6680,9 +6680,9 @@ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6698,9 +6698,9 @@ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage */ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6708,27 +6708,27 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.CharacterSetName != null) { - entries["CharacterSetName"] = input.CharacterSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6736,39 +6736,39 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.ReplicationSourceIdentifier != null) { - entries["ReplicationSourceIdentifier"] = input.ReplicationSourceIdentifier; + if (input[_RSI] != null) { + entries[_RSI] = input[_RSI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6776,21 +6776,21 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6798,21 +6798,21 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -6825,18 +6825,18 @@ const se_CreateDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6852,15 +6852,15 @@ const se_CreateDBClusterParameterGroupMessage = ( */ const se_CreateDBClusterSnapshotMessage = (input: CreateDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6876,30 +6876,30 @@ const se_CreateDBClusterSnapshotMessage = (input: CreateDBClusterSnapshotMessage */ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBName != null) { - entries["DBName"] = input.DBName; + if (input[_DBN] != null) { + entries[_DBN] = input[_DBN]; } - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.DBSecurityGroups != null) { - const memberEntries = se_DBSecurityGroupNameList(input.DBSecurityGroups, context); - if (input.DBSecurityGroups?.length === 0) { + if (input[_DBSG] != null) { + const memberEntries = se_DBSecurityGroupNameList(input[_DBSG], context); + if (input[_DBSG]?.length === 0) { entries.DBSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6907,9 +6907,9 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6917,54 +6917,54 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZv] != null) { + entries[_AZv] = input[_AZv]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.CharacterSetName != null) { - entries["CharacterSetName"] = input.CharacterSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6972,57 +6972,57 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.TdeCredentialArn != null) { - entries["TdeCredentialArn"] = input.TdeCredentialArn; + if (input[_TCA] != null) { + entries[_TCA] = input[_TCA]; } - if (input.TdeCredentialPassword != null) { - entries["TdeCredentialPassword"] = input.TdeCredentialPassword; + if (input[_TCP] != null) { + entries[_TCP] = input[_TCP]; } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.PromotionTier != null) { - entries["PromotionTier"] = input.PromotionTier; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } - if (input.Timezone != null) { - entries["Timezone"] = input.Timezone; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7030,8 +7030,8 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } return entries; }; @@ -7041,18 +7041,18 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S */ const se_CreateDBParameterGroupMessage = (input: CreateDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7068,15 +7068,15 @@ const se_CreateDBParameterGroupMessage = (input: CreateDBParameterGroupMessage, */ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.DBSubnetGroupDescription != null) { - entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription; + if (input[_DBSGD] != null) { + entries[_DBSGD] = input[_DBSGD]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7084,9 +7084,9 @@ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, contex entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7102,18 +7102,18 @@ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, contex */ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7121,9 +7121,9 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.SourceIds != null) { - const memberEntries = se_SourceIdsList(input.SourceIds, context); - if (input.SourceIds?.length === 0) { + if (input[_SIo] != null) { + const memberEntries = se_SourceIdsList(input[_SIo], context); + if (input[_SIo]?.length === 0) { entries.SourceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7131,12 +7131,12 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7152,23 +7152,23 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage */ const se_CreateGlobalClusterMessage = (input: CreateGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.SourceDBClusterIdentifier != null) { - entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier; + if (input[_SDBCI] != null) { + entries[_SDBCI] = input[_SDBCI]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } return entries; }; @@ -7194,8 +7194,8 @@ const se_DBSecurityGroupNameList = (input: string[], context: __SerdeContext): a */ const se_DeleteDBClusterEndpointMessage = (input: DeleteDBClusterEndpointMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } return entries; }; @@ -7205,14 +7205,14 @@ const se_DeleteDBClusterEndpointMessage = (input: DeleteDBClusterEndpointMessage */ const se_DeleteDBClusterMessage = (input: DeleteDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.SkipFinalSnapshot != null) { - entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot; + if (input[_SFS] != null) { + entries[_SFS] = input[_SFS]; } - if (input.FinalDBSnapshotIdentifier != null) { - entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier; + if (input[_FDBSI] != null) { + entries[_FDBSI] = input[_FDBSI]; } return entries; }; @@ -7225,8 +7225,8 @@ const se_DeleteDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } return entries; }; @@ -7236,8 +7236,8 @@ const se_DeleteDBClusterParameterGroupMessage = ( */ const se_DeleteDBClusterSnapshotMessage = (input: DeleteDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } return entries; }; @@ -7247,14 +7247,14 @@ const se_DeleteDBClusterSnapshotMessage = (input: DeleteDBClusterSnapshotMessage */ const se_DeleteDBInstanceMessage = (input: DeleteDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.SkipFinalSnapshot != null) { - entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot; + if (input[_SFS] != null) { + entries[_SFS] = input[_SFS]; } - if (input.FinalDBSnapshotIdentifier != null) { - entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier; + if (input[_FDBSI] != null) { + entries[_FDBSI] = input[_FDBSI]; } return entries; }; @@ -7264,8 +7264,8 @@ const se_DeleteDBInstanceMessage = (input: DeleteDBInstanceMessage, context: __S */ const se_DeleteDBParameterGroupMessage = (input: DeleteDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } return entries; }; @@ -7275,8 +7275,8 @@ const se_DeleteDBParameterGroupMessage = (input: DeleteDBParameterGroupMessage, */ const se_DeleteDBSubnetGroupMessage = (input: DeleteDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } return entries; }; @@ -7286,8 +7286,8 @@ const se_DeleteDBSubnetGroupMessage = (input: DeleteDBSubnetGroupMessage, contex */ const se_DeleteEventSubscriptionMessage = (input: DeleteEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -7297,8 +7297,8 @@ const se_DeleteEventSubscriptionMessage = (input: DeleteEventSubscriptionMessage */ const se_DeleteGlobalClusterMessage = (input: DeleteGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } return entries; }; @@ -7311,15 +7311,15 @@ const se_DescribeDBClusterEndpointsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7327,11 +7327,11 @@ const se_DescribeDBClusterEndpointsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7344,12 +7344,12 @@ const se_DescribeDBClusterParameterGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7357,11 +7357,11 @@ const se_DescribeDBClusterParameterGroupsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7374,15 +7374,15 @@ const se_DescribeDBClusterParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7390,11 +7390,11 @@ const se_DescribeDBClusterParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7404,12 +7404,12 @@ const se_DescribeDBClusterParametersMessage = ( */ const se_DescribeDBClustersMessage = (input: DescribeDBClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7417,11 +7417,11 @@ const se_DescribeDBClustersMessage = (input: DescribeDBClustersMessage, context: entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7434,8 +7434,8 @@ const se_DescribeDBClusterSnapshotAttributesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } return entries; }; @@ -7448,18 +7448,18 @@ const se_DescribeDBClusterSnapshotsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.SnapshotType != null) { - entries["SnapshotType"] = input.SnapshotType; + if (input[_STn] != null) { + entries[_STn] = input[_STn]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7467,17 +7467,17 @@ const se_DescribeDBClusterSnapshotsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.IncludeShared != null) { - entries["IncludeShared"] = input.IncludeShared; + if (input[_IS] != null) { + entries[_IS] = input[_IS]; } - if (input.IncludePublic != null) { - entries["IncludePublic"] = input.IncludePublic; + if (input[_IP] != null) { + entries[_IP] = input[_IP]; } return entries; }; @@ -7487,18 +7487,18 @@ const se_DescribeDBClusterSnapshotsMessage = ( */ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7506,20 +7506,20 @@ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessa entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.DefaultOnly != null) { - entries["DefaultOnly"] = input.DefaultOnly; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } - if (input.ListSupportedCharacterSets != null) { - entries["ListSupportedCharacterSets"] = input.ListSupportedCharacterSets; + if (input[_LSCS] != null) { + entries[_LSCS] = input[_LSCS]; } - if (input.ListSupportedTimezones != null) { - entries["ListSupportedTimezones"] = input.ListSupportedTimezones; + if (input[_LST] != null) { + entries[_LST] = input[_LST]; } return entries; }; @@ -7529,12 +7529,12 @@ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessa */ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7542,11 +7542,11 @@ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, contex entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7556,12 +7556,12 @@ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, contex */ const se_DescribeDBParameterGroupsMessage = (input: DescribeDBParameterGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7569,11 +7569,11 @@ const se_DescribeDBParameterGroupsMessage = (input: DescribeDBParameterGroupsMes entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7583,15 +7583,15 @@ const se_DescribeDBParameterGroupsMessage = (input: DescribeDBParameterGroupsMes */ const se_DescribeDBParametersMessage = (input: DescribeDBParametersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7599,11 +7599,11 @@ const se_DescribeDBParametersMessage = (input: DescribeDBParametersMessage, cont entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7613,12 +7613,12 @@ const se_DescribeDBParametersMessage = (input: DescribeDBParametersMessage, cont */ const se_DescribeDBSubnetGroupsMessage = (input: DescribeDBSubnetGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7626,11 +7626,11 @@ const se_DescribeDBSubnetGroupsMessage = (input: DescribeDBSubnetGroupsMessage, entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7643,12 +7643,12 @@ const se_DescribeEngineDefaultClusterParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7656,11 +7656,11 @@ const se_DescribeEngineDefaultClusterParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7673,12 +7673,12 @@ const se_DescribeEngineDefaultParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7686,11 +7686,11 @@ const se_DescribeEngineDefaultParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7700,12 +7700,12 @@ const se_DescribeEngineDefaultParametersMessage = ( */ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7721,24 +7721,24 @@ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage */ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ETn] != null) { + entries[_ETn] = input[_ETn].toISOString().split(".")[0] + "Z"; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7746,9 +7746,9 @@ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __Serde entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7756,11 +7756,11 @@ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __Serde entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7773,12 +7773,12 @@ const se_DescribeEventSubscriptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7786,11 +7786,11 @@ const se_DescribeEventSubscriptionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7800,14 +7800,14 @@ const se_DescribeEventSubscriptionsMessage = ( */ const se_DescribeGlobalClustersMessage = (input: DescribeGlobalClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7820,24 +7820,24 @@ const se_DescribeOrderableDBInstanceOptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.Vpc != null) { - entries["Vpc"] = input.Vpc; + if (input[_Vp] != null) { + entries[_Vp] = input[_Vp]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7845,11 +7845,11 @@ const se_DescribeOrderableDBInstanceOptionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -7862,12 +7862,12 @@ const se_DescribePendingMaintenanceActionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ResourceIdentifier != null) { - entries["ResourceIdentifier"] = input.ResourceIdentifier; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7875,11 +7875,11 @@ const se_DescribePendingMaintenanceActionsMessage = ( entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -7892,8 +7892,8 @@ const se_DescribeValidDBInstanceModificationsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } return entries; }; @@ -7919,11 +7919,11 @@ const se_EventCategoriesList = (input: string[], context: __SerdeContext): any = */ const se_FailoverDBClusterMessage = (input: FailoverDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.TargetDBInstanceIdentifier != null) { - entries["TargetDBInstanceIdentifier"] = input.TargetDBInstanceIdentifier; + if (input[_TDBII] != null) { + entries[_TDBII] = input[_TDBII]; } return entries; }; @@ -7933,11 +7933,11 @@ const se_FailoverDBClusterMessage = (input: FailoverDBClusterMessage, context: _ */ const se_FailoverGlobalClusterMessage = (input: FailoverGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.TargetDbClusterIdentifier != null) { - entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier; + if (input[_TDCI] != null) { + entries[_TDCI] = input[_TDCI]; } return entries; }; @@ -7947,12 +7947,12 @@ const se_FailoverGlobalClusterMessage = (input: FailoverGlobalClusterMessage, co */ const se_Filter = (input: Filter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - const memberEntries = se_FilterValueList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_FilterValueList(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8019,12 +8019,12 @@ const se_KeyList = (input: string[], context: __SerdeContext): any => { */ const se_ListTagsForResourceMessage = (input: ListTagsForResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_F] != null) { + const memberEntries = se_FilterList(input[_F], context); + if (input[_F]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8056,15 +8056,15 @@ const se_LogTypeList = (input: string[], context: __SerdeContext): any => { */ const se_ModifyDBClusterEndpointMessage = (input: ModifyDBClusterEndpointMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } - if (input.EndpointType != null) { - entries["EndpointType"] = input.EndpointType; + if (input[_ET] != null) { + entries[_ET] = input[_ET]; } - if (input.StaticMembers != null) { - const memberEntries = se_StringList(input.StaticMembers, context); - if (input.StaticMembers?.length === 0) { + if (input[_SM] != null) { + const memberEntries = se_StringList(input[_SM], context); + if (input[_SM]?.length === 0) { entries.StaticMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8072,9 +8072,9 @@ const se_ModifyDBClusterEndpointMessage = (input: ModifyDBClusterEndpointMessage entries[loc] = value; }); } - if (input.ExcludedMembers != null) { - const memberEntries = se_StringList(input.ExcludedMembers, context); - if (input.ExcludedMembers?.length === 0) { + if (input[_EM] != null) { + const memberEntries = se_StringList(input[_EM], context); + if (input[_EM]?.length === 0) { entries.ExcludedMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8090,24 +8090,24 @@ const se_ModifyDBClusterEndpointMessage = (input: ModifyDBClusterEndpointMessage */ const se_ModifyDBClusterMessage = (input: ModifyDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.NewDBClusterIdentifier != null) { - entries["NewDBClusterIdentifier"] = input.NewDBClusterIdentifier; + if (input[_NDBCI] != null) { + entries[_NDBCI] = input[_NDBCI]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8115,55 +8115,55 @@ const se_ModifyDBClusterMessage = (input: ModifyDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.CloudwatchLogsExportConfiguration != null) { - const memberEntries = se_CloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context); + if (input[_CLEC] != null) { + const memberEntries = se_CloudwatchLogsExportConfiguration(input[_CLEC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudwatchLogsExportConfiguration.${key}`; entries[loc] = value; }); } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AllowMajorVersionUpgrade != null) { - entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade; + if (input[_AMVUl] != null) { + entries[_AMVUl] = input[_AMVUl]; } - if (input.DBInstanceParameterGroupName != null) { - entries["DBInstanceParameterGroupName"] = input.DBInstanceParameterGroupName; + if (input[_DBIPGN] != null) { + entries[_DBIPGN] = input[_DBIPGN]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -8176,12 +8176,12 @@ const se_ModifyDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8200,15 +8200,15 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.AttributeName != null) { - entries["AttributeName"] = input.AttributeName; + if (input[_AN] != null) { + entries[_AN] = input[_AN]; } - if (input.ValuesToAdd != null) { - const memberEntries = se_AttributeValueList(input.ValuesToAdd, context); - if (input.ValuesToAdd?.length === 0) { + if (input[_VTA] != null) { + const memberEntries = se_AttributeValueList(input[_VTA], context); + if (input[_VTA]?.length === 0) { entries.ValuesToAdd = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8216,9 +8216,9 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( entries[loc] = value; }); } - if (input.ValuesToRemove != null) { - const memberEntries = se_AttributeValueList(input.ValuesToRemove, context); - if (input.ValuesToRemove?.length === 0) { + if (input[_VTR] != null) { + const memberEntries = se_AttributeValueList(input[_VTR], context); + if (input[_VTR]?.length === 0) { entries.ValuesToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8234,21 +8234,21 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( */ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.DBSecurityGroups != null) { - const memberEntries = se_DBSecurityGroupNameList(input.DBSecurityGroups, context); - if (input.DBSecurityGroups?.length === 0) { + if (input[_DBSG] != null) { + const memberEntries = se_DBSecurityGroupNameList(input[_DBSG], context); + if (input[_DBSG]?.length === 0) { entries.DBSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8256,9 +8256,9 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8266,102 +8266,102 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AllowMajorVersionUpgrade != null) { - entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade; + if (input[_AMVUl] != null) { + entries[_AMVUl] = input[_AMVUl]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.NewDBInstanceIdentifier != null) { - entries["NewDBInstanceIdentifier"] = input.NewDBInstanceIdentifier; + if (input[_NDBII] != null) { + entries[_NDBII] = input[_NDBII]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.TdeCredentialArn != null) { - entries["TdeCredentialArn"] = input.TdeCredentialArn; + if (input[_TCA] != null) { + entries[_TCA] = input[_TCA]; } - if (input.TdeCredentialPassword != null) { - entries["TdeCredentialPassword"] = input.TdeCredentialPassword; + if (input[_TCP] != null) { + entries[_TCP] = input[_TCP]; } - if (input.CACertificateIdentifier != null) { - entries["CACertificateIdentifier"] = input.CACertificateIdentifier; + if (input[_CACI] != null) { + entries[_CACI] = input[_CACI]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.DBPortNumber != null) { - entries["DBPortNumber"] = input.DBPortNumber; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.PromotionTier != null) { - entries["PromotionTier"] = input.PromotionTier; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.CloudwatchLogsExportConfiguration != null) { - const memberEntries = se_CloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context); + if (input[_CLEC] != null) { + const memberEntries = se_CloudwatchLogsExportConfiguration(input[_CLEC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudwatchLogsExportConfiguration.${key}`; entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } return entries; }; @@ -8371,12 +8371,12 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S */ const se_ModifyDBParameterGroupMessage = (input: ModifyDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8392,15 +8392,15 @@ const se_ModifyDBParameterGroupMessage = (input: ModifyDBParameterGroupMessage, */ const se_ModifyDBSubnetGroupMessage = (input: ModifyDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.DBSubnetGroupDescription != null) { - entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription; + if (input[_DBSGD] != null) { + entries[_DBSGD] = input[_DBSGD]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8416,18 +8416,18 @@ const se_ModifyDBSubnetGroupMessage = (input: ModifyDBSubnetGroupMessage, contex */ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8435,8 +8435,8 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -8446,20 +8446,20 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage */ const se_ModifyGlobalClusterMessage = (input: ModifyGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.NewGlobalClusterIdentifier != null) { - entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier; + if (input[_NGCI] != null) { + entries[_NGCI] = input[_NGCI]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AllowMajorVersionUpgrade != null) { - entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade; + if (input[_AMVUl] != null) { + entries[_AMVUl] = input[_AMVUl]; } return entries; }; @@ -8469,35 +8469,35 @@ const se_ModifyGlobalClusterMessage = (input: ModifyGlobalClusterMessage, contex */ const se_Parameter = (input: Parameter, context: __SerdeContext): any => { const entries: any = {}; - if (input.ParameterName != null) { - entries["ParameterName"] = input.ParameterName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.ParameterValue != null) { - entries["ParameterValue"] = input.ParameterValue; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.ApplyType != null) { - entries["ApplyType"] = input.ApplyType; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.DataType != null) { - entries["DataType"] = input.DataType; + if (input[_DT] != null) { + entries[_DT] = input[_DT]; } - if (input.AllowedValues != null) { - entries["AllowedValues"] = input.AllowedValues; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } - if (input.IsModifiable != null) { - entries["IsModifiable"] = input.IsModifiable; + if (input[_IM] != null) { + entries[_IM] = input[_IM]; } - if (input.MinimumEngineVersion != null) { - entries["MinimumEngineVersion"] = input.MinimumEngineVersion; + if (input[_MEV] != null) { + entries[_MEV] = input[_MEV]; } - if (input.ApplyMethod != null) { - entries["ApplyMethod"] = input.ApplyMethod; + if (input[_AM] != null) { + entries[_AM] = input[_AM]; } return entries; }; @@ -8529,8 +8529,8 @@ const se_PromoteReadReplicaDBClusterMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -8540,11 +8540,11 @@ const se_PromoteReadReplicaDBClusterMessage = ( */ const se_RebootDBInstanceMessage = (input: RebootDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.ForceFailover != null) { - entries["ForceFailover"] = input.ForceFailover; + if (input[_FF] != null) { + entries[_FF] = input[_FF]; } return entries; }; @@ -8554,11 +8554,11 @@ const se_RebootDBInstanceMessage = (input: RebootDBInstanceMessage, context: __S */ const se_RemoveFromGlobalClusterMessage = (input: RemoveFromGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.DbClusterIdentifier != null) { - entries["DbClusterIdentifier"] = input.DbClusterIdentifier; + if (input[_DCI] != null) { + entries[_DCI] = input[_DCI]; } return entries; }; @@ -8568,14 +8568,14 @@ const se_RemoveFromGlobalClusterMessage = (input: RemoveFromGlobalClusterMessage */ const se_RemoveRoleFromDBClusterMessage = (input: RemoveRoleFromDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.FeatureName != null) { - entries["FeatureName"] = input.FeatureName; + if (input[_FN] != null) { + entries[_FN] = input[_FN]; } return entries; }; @@ -8588,11 +8588,11 @@ const se_RemoveSourceIdentifierFromSubscriptionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } return entries; }; @@ -8602,12 +8602,12 @@ const se_RemoveSourceIdentifierFromSubscriptionMessage = ( */ const se_RemoveTagsFromResourceMessage = (input: RemoveTagsFromResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.TagKeys != null) { - const memberEntries = se_KeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_KeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8626,15 +8626,15 @@ const se_ResetDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.ResetAllParameters != null) { - entries["ResetAllParameters"] = input.ResetAllParameters; + if (input[_RAP] != null) { + entries[_RAP] = input[_RAP]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8650,15 +8650,15 @@ const se_ResetDBClusterParameterGroupMessage = ( */ const se_ResetDBParameterGroupMessage = (input: ResetDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.ResetAllParameters != null) { - entries["ResetAllParameters"] = input.ResetAllParameters; + if (input[_RAP] != null) { + entries[_RAP] = input[_RAP]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8677,9 +8677,9 @@ const se_RestoreDBClusterFromSnapshotMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8687,33 +8687,33 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8721,9 +8721,9 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8731,15 +8731,15 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8747,24 +8747,24 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -8777,33 +8777,33 @@ const se_RestoreDBClusterToPointInTimeMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.RestoreType != null) { - entries["RestoreType"] = input.RestoreType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.SourceDBClusterIdentifier != null) { - entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier; + if (input[_SDBCI] != null) { + entries[_SDBCI] = input[_SDBCI]; } - if (input.RestoreToTime != null) { - entries["RestoreToTime"] = input.RestoreToTime.toISOString().split(".")[0] + "Z"; + if (input[_RTT] != null) { + entries[_RTT] = input[_RTT].toISOString().split(".")[0] + "Z"; } - if (input.UseLatestRestorableTime != null) { - entries["UseLatestRestorableTime"] = input.UseLatestRestorableTime; + if (input[_ULRT] != null) { + entries[_ULRT] = input[_ULRT]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8811,9 +8811,9 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8821,15 +8821,15 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -8837,21 +8837,21 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -8861,11 +8861,11 @@ const se_RestoreDBClusterToPointInTimeMessage = ( */ const se_ServerlessV2ScalingConfiguration = (input: ServerlessV2ScalingConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.MinCapacity != null) { - entries["MinCapacity"] = __serializeFloat(input.MinCapacity); + if (input[_MC] != null) { + entries[_MC] = __serializeFloat(input[_MC]); } - if (input.MaxCapacity != null) { - entries["MaxCapacity"] = __serializeFloat(input.MaxCapacity); + if (input[_MCa] != null) { + entries[_MCa] = __serializeFloat(input[_MCa]); } return entries; }; @@ -8891,8 +8891,8 @@ const se_SourceIdsList = (input: string[], context: __SerdeContext): any => { */ const se_StartDBClusterMessage = (input: StartDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -8902,8 +8902,8 @@ const se_StartDBClusterMessage = (input: StartDBClusterMessage, context: __Serde */ const se_StopDBClusterMessage = (input: StopDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -8945,11 +8945,11 @@ const se_SubnetIdentifierList = (input: string[], context: __SerdeContext): any */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -8997,8 +8997,8 @@ const de_AddSourceIdentifierToSubscriptionResult = ( context: __SerdeContext ): AddSourceIdentifierToSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -9011,11 +9011,8 @@ const de_ApplyPendingMaintenanceActionResult = ( context: __SerdeContext ): ApplyPendingMaintenanceActionResult => { const contents: any = {}; - if (output["ResourcePendingMaintenanceActions"] !== undefined) { - contents.ResourcePendingMaintenanceActions = de_ResourcePendingMaintenanceActions( - output["ResourcePendingMaintenanceActions"], - context - ); + if (output[_RPMA] != null) { + contents[_RPMA] = de_ResourcePendingMaintenanceActions(output[_RPMA], context); } return contents; }; @@ -9036,8 +9033,8 @@ const de_AttributeValueList = (output: any, context: __SerdeContext): string[] = */ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): AuthorizationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9047,8 +9044,8 @@ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): Au */ const de_AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -9080,8 +9077,8 @@ const de_AvailabilityZones = (output: any, context: __SerdeContext): string[] => */ const de_CertificateNotFoundFault = (output: any, context: __SerdeContext): CertificateNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9091,11 +9088,11 @@ const de_CertificateNotFoundFault = (output: any, context: __SerdeContext): Cert */ const de_CharacterSet = (output: any, context: __SerdeContext): CharacterSet => { const contents: any = {}; - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["CharacterSetDescription"] !== undefined) { - contents.CharacterSetDescription = __expectString(output["CharacterSetDescription"]); + if (output[_CSD] != null) { + contents[_CSD] = __expectString(output[_CSD]); } return contents; }; @@ -9105,32 +9102,29 @@ const de_CharacterSet = (output: any, context: __SerdeContext): CharacterSet => */ const de_ClusterPendingModifiedValues = (output: any, context: __SerdeContext): ClusterPendingModifiedValues => { const contents: any = {}; - if (output["PendingCloudwatchLogsExports"] !== undefined) { - contents.PendingCloudwatchLogsExports = de_PendingCloudwatchLogsExports( - output["PendingCloudwatchLogsExports"], - context - ); + if (output[_PCLE] != null) { + contents[_PCLE] = de_PendingCloudwatchLogsExports(output[_PCLE], context); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } return contents; }; @@ -9143,8 +9137,8 @@ const de_CopyDBClusterParameterGroupResult = ( context: __SerdeContext ): CopyDBClusterParameterGroupResult => { const contents: any = {}; - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = de_DBClusterParameterGroup(output["DBClusterParameterGroup"], context); + if (output[_DBCPG] != null) { + contents[_DBCPG] = de_DBClusterParameterGroup(output[_DBCPG], context); } return contents; }; @@ -9154,8 +9148,8 @@ const de_CopyDBClusterParameterGroupResult = ( */ const de_CopyDBClusterSnapshotResult = (output: any, context: __SerdeContext): CopyDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -9165,8 +9159,8 @@ const de_CopyDBClusterSnapshotResult = (output: any, context: __SerdeContext): C */ const de_CopyDBParameterGroupResult = (output: any, context: __SerdeContext): CopyDBParameterGroupResult => { const contents: any = {}; - if (output["DBParameterGroup"] !== undefined) { - contents.DBParameterGroup = de_DBParameterGroup(output["DBParameterGroup"], context); + if (output[_DBPG] != null) { + contents[_DBPG] = de_DBParameterGroup(output[_DBPG], context); } return contents; }; @@ -9176,39 +9170,39 @@ const de_CopyDBParameterGroupResult = (output: any, context: __SerdeContext): Co */ const de_CreateDBClusterEndpointOutput = (output: any, context: __SerdeContext): CreateDBClusterEndpointOutput => { const contents: any = {}; - if (output["DBClusterEndpointIdentifier"] !== undefined) { - contents.DBClusterEndpointIdentifier = __expectString(output["DBClusterEndpointIdentifier"]); + if (output[_DBCEI] != null) { + contents[_DBCEI] = __expectString(output[_DBCEI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterEndpointResourceIdentifier"] !== undefined) { - contents.DBClusterEndpointResourceIdentifier = __expectString(output["DBClusterEndpointResourceIdentifier"]); + if (output[_DBCERI] != null) { + contents[_DBCERI] = __expectString(output[_DBCERI]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EndpointType"] !== undefined) { - contents.EndpointType = __expectString(output["EndpointType"]); + if (output[_ET] != null) { + contents[_ET] = __expectString(output[_ET]); } - if (output["CustomEndpointType"] !== undefined) { - contents.CustomEndpointType = __expectString(output["CustomEndpointType"]); + if (output[_CET] != null) { + contents[_CET] = __expectString(output[_CET]); } if (output.StaticMembers === "") { - contents.StaticMembers = []; - } else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) { - contents.StaticMembers = de_StringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context); + contents[_SM] = []; + } else if (output[_SM] != null && output[_SM][_me] != null) { + contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } if (output.ExcludedMembers === "") { - contents.ExcludedMembers = []; - } else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) { - contents.ExcludedMembers = de_StringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context); + contents[_EM] = []; + } else if (output[_EM] != null && output[_EM][_me] != null) { + contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); } - if (output["DBClusterEndpointArn"] !== undefined) { - contents.DBClusterEndpointArn = __expectString(output["DBClusterEndpointArn"]); + if (output[_DBCEA] != null) { + contents[_DBCEA] = __expectString(output[_DBCEA]); } return contents; }; @@ -9221,8 +9215,8 @@ const de_CreateDBClusterParameterGroupResult = ( context: __SerdeContext ): CreateDBClusterParameterGroupResult => { const contents: any = {}; - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = de_DBClusterParameterGroup(output["DBClusterParameterGroup"], context); + if (output[_DBCPG] != null) { + contents[_DBCPG] = de_DBClusterParameterGroup(output[_DBCPG], context); } return contents; }; @@ -9232,8 +9226,8 @@ const de_CreateDBClusterParameterGroupResult = ( */ const de_CreateDBClusterResult = (output: any, context: __SerdeContext): CreateDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -9243,8 +9237,8 @@ const de_CreateDBClusterResult = (output: any, context: __SerdeContext): CreateD */ const de_CreateDBClusterSnapshotResult = (output: any, context: __SerdeContext): CreateDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -9254,8 +9248,8 @@ const de_CreateDBClusterSnapshotResult = (output: any, context: __SerdeContext): */ const de_CreateDBInstanceResult = (output: any, context: __SerdeContext): CreateDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -9265,8 +9259,8 @@ const de_CreateDBInstanceResult = (output: any, context: __SerdeContext): Create */ const de_CreateDBParameterGroupResult = (output: any, context: __SerdeContext): CreateDBParameterGroupResult => { const contents: any = {}; - if (output["DBParameterGroup"] !== undefined) { - contents.DBParameterGroup = de_DBParameterGroup(output["DBParameterGroup"], context); + if (output[_DBPG] != null) { + contents[_DBPG] = de_DBParameterGroup(output[_DBPG], context); } return contents; }; @@ -9276,8 +9270,8 @@ const de_CreateDBParameterGroupResult = (output: any, context: __SerdeContext): */ const de_CreateDBSubnetGroupResult = (output: any, context: __SerdeContext): CreateDBSubnetGroupResult => { const contents: any = {}; - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSGu] != null) { + contents[_DBSGu] = de_DBSubnetGroup(output[_DBSGu], context); } return contents; }; @@ -9287,8 +9281,8 @@ const de_CreateDBSubnetGroupResult = (output: any, context: __SerdeContext): Cre */ const de_CreateEventSubscriptionResult = (output: any, context: __SerdeContext): CreateEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -9298,8 +9292,8 @@ const de_CreateEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_CreateGlobalClusterResult = (output: any, context: __SerdeContext): CreateGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -9309,197 +9303,154 @@ const de_CreateGlobalClusterResult = (output: any, context: __SerdeContext): Cre */ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { const contents: any = {}; - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["DatabaseName"] !== undefined) { - contents.DatabaseName = __expectString(output["DatabaseName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = __expectString(output["DBClusterParameterGroup"]); + if (output[_DBCPG] != null) { + contents[_DBCPG] = __expectString(output[_DBCPG]); } - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = __expectString(output["DBSubnetGroup"]); + if (output[_DBSGu] != null) { + contents[_DBSGu] = __expectString(output[_DBSGu]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __expectString(output["PercentProgress"]); + if (output[_PP] != null) { + contents[_PP] = __expectString(output[_PP]); } - if (output["EarliestRestorableTime"] !== undefined) { - contents.EarliestRestorableTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["EarliestRestorableTime"]) - ); + if (output[_ERT] != null) { + contents[_ERT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ERT])); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["ReaderEndpoint"] !== undefined) { - contents.ReaderEndpoint = __expectString(output["ReaderEndpoint"]); + if (output[_RE] != null) { + contents[_RE] = __expectString(output[_RE]); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LatestRestorableTime"] !== undefined) { - contents.LatestRestorableTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LatestRestorableTime"])); + if (output[_LRT] != null) { + contents[_LRT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LRT])); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } if (output.DBClusterOptionGroupMemberships === "") { - contents.DBClusterOptionGroupMemberships = []; - } else if ( - output["DBClusterOptionGroupMemberships"] !== undefined && - output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"] !== undefined - ) { - contents.DBClusterOptionGroupMemberships = de_DBClusterOptionGroupMemberships( - __getArrayIfSingleItem(output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"]), - context - ); + contents[_DBCOGM] = []; + } else if (output[_DBCOGM] != null && output[_DBCOGM][_DBCOG] != null) { + contents[_DBCOGM] = de_DBClusterOptionGroupMemberships(__getArrayIfSingleItem(output[_DBCOGM][_DBCOG]), context); } - if (output["PreferredBackupWindow"] !== undefined) { - contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); + if (output[_PBW] != null) { + contents[_PBW] = __expectString(output[_PBW]); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["ReplicationSourceIdentifier"] !== undefined) { - contents.ReplicationSourceIdentifier = __expectString(output["ReplicationSourceIdentifier"]); + if (output[_RSI] != null) { + contents[_RSI] = __expectString(output[_RSI]); } if (output.ReadReplicaIdentifiers === "") { - contents.ReadReplicaIdentifiers = []; - } else if ( - output["ReadReplicaIdentifiers"] !== undefined && - output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"] !== undefined - ) { - contents.ReadReplicaIdentifiers = de_ReadReplicaIdentifierList( - __getArrayIfSingleItem(output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"]), - context - ); + contents[_RRI] = []; + } else if (output[_RRI] != null && output[_RRI][_RRIe] != null) { + contents[_RRI] = de_ReadReplicaIdentifierList(__getArrayIfSingleItem(output[_RRI][_RRIe]), context); } if (output.DBClusterMembers === "") { - contents.DBClusterMembers = []; - } else if (output["DBClusterMembers"] !== undefined && output["DBClusterMembers"]["DBClusterMember"] !== undefined) { - contents.DBClusterMembers = de_DBClusterMemberList( - __getArrayIfSingleItem(output["DBClusterMembers"]["DBClusterMember"]), - context - ); + contents[_DBCM] = []; + } else if (output[_DBCM] != null && output[_DBCM][_DBCMl] != null) { + contents[_DBCM] = de_DBClusterMemberList(__getArrayIfSingleItem(output[_DBCM][_DBCMl]), context); } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DbClusterResourceId"] !== undefined) { - contents.DbClusterResourceId = __expectString(output["DbClusterResourceId"]); + if (output[_DCRI] != null) { + contents[_DCRI] = __expectString(output[_DCRI]); } - if (output["DBClusterArn"] !== undefined) { - contents.DBClusterArn = __expectString(output["DBClusterArn"]); + if (output[_DBCA] != null) { + contents[_DBCA] = __expectString(output[_DBCA]); } if (output.AssociatedRoles === "") { - contents.AssociatedRoles = []; - } else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) { - contents.AssociatedRoles = de_DBClusterRoles( - __getArrayIfSingleItem(output["AssociatedRoles"]["DBClusterRole"]), - context - ); + contents[_AR] = []; + } else if (output[_AR] != null && output[_AR][_DBCR] != null) { + contents[_AR] = de_DBClusterRoles(__getArrayIfSingleItem(output[_AR][_DBCR]), context); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["CloneGroupId"] !== undefined) { - contents.CloneGroupId = __expectString(output["CloneGroupId"]); + if (output[_CGI] != null) { + contents[_CGI] = __expectString(output[_CGI]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["CopyTagsToSnapshot"] !== undefined) { - contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]); + if (output[_CTTS] != null) { + contents[_CTTS] = __parseBoolean(output[_CTTS]); } if (output.EnabledCloudwatchLogsExports === "") { - contents.EnabledCloudwatchLogsExports = []; - } else if ( - output["EnabledCloudwatchLogsExports"] !== undefined && - output["EnabledCloudwatchLogsExports"]["member"] !== undefined - ) { - contents.EnabledCloudwatchLogsExports = de_LogTypeList( - __getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), - context - ); + contents[_ECLEn] = []; + } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { + contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_ClusterPendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_ClusterPendingModifiedValues(output[_PMV], context); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } - if (output["CrossAccountClone"] !== undefined) { - contents.CrossAccountClone = __parseBoolean(output["CrossAccountClone"]); + if (output[_CAC] != null) { + contents[_CAC] = __parseBoolean(output[_CAC]); } - if (output["AutomaticRestartTime"] !== undefined) { - contents.AutomaticRestartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AutomaticRestartTime"])); + if (output[_ART] != null) { + contents[_ART] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ART])); } - if (output["ServerlessV2ScalingConfiguration"] !== undefined) { - contents.ServerlessV2ScalingConfiguration = de_ServerlessV2ScalingConfigurationInfo( - output["ServerlessV2ScalingConfiguration"], - context - ); + if (output[_SVSC] != null) { + contents[_SVSC] = de_ServerlessV2ScalingConfigurationInfo(output[_SVSC], context); } - if (output["GlobalClusterIdentifier"] !== undefined) { - contents.GlobalClusterIdentifier = __expectString(output["GlobalClusterIdentifier"]); + if (output[_GCI] != null) { + contents[_GCI] = __expectString(output[_GCI]); } - if (output["IOOptimizedNextAllowedModificationTime"] !== undefined) { - contents.IOOptimizedNextAllowedModificationTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["IOOptimizedNextAllowedModificationTime"]) - ); + if (output[_IOONAMT] != null) { + contents[_IOONAMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_IOONAMT])); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } return contents; }; @@ -9509,8 +9460,8 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { */ const de_DBClusterAlreadyExistsFault = (output: any, context: __SerdeContext): DBClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9520,39 +9471,39 @@ const de_DBClusterAlreadyExistsFault = (output: any, context: __SerdeContext): D */ const de_DBClusterEndpoint = (output: any, context: __SerdeContext): DBClusterEndpoint => { const contents: any = {}; - if (output["DBClusterEndpointIdentifier"] !== undefined) { - contents.DBClusterEndpointIdentifier = __expectString(output["DBClusterEndpointIdentifier"]); + if (output[_DBCEI] != null) { + contents[_DBCEI] = __expectString(output[_DBCEI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterEndpointResourceIdentifier"] !== undefined) { - contents.DBClusterEndpointResourceIdentifier = __expectString(output["DBClusterEndpointResourceIdentifier"]); + if (output[_DBCERI] != null) { + contents[_DBCERI] = __expectString(output[_DBCERI]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EndpointType"] !== undefined) { - contents.EndpointType = __expectString(output["EndpointType"]); + if (output[_ET] != null) { + contents[_ET] = __expectString(output[_ET]); } - if (output["CustomEndpointType"] !== undefined) { - contents.CustomEndpointType = __expectString(output["CustomEndpointType"]); + if (output[_CET] != null) { + contents[_CET] = __expectString(output[_CET]); } if (output.StaticMembers === "") { - contents.StaticMembers = []; - } else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) { - contents.StaticMembers = de_StringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context); + contents[_SM] = []; + } else if (output[_SM] != null && output[_SM][_me] != null) { + contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } if (output.ExcludedMembers === "") { - contents.ExcludedMembers = []; - } else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) { - contents.ExcludedMembers = de_StringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context); + contents[_EM] = []; + } else if (output[_EM] != null && output[_EM][_me] != null) { + contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); } - if (output["DBClusterEndpointArn"] !== undefined) { - contents.DBClusterEndpointArn = __expectString(output["DBClusterEndpointArn"]); + if (output[_DBCEA] != null) { + contents[_DBCEA] = __expectString(output[_DBCEA]); } return contents; }; @@ -9565,8 +9516,8 @@ const de_DBClusterEndpointAlreadyExistsFault = ( context: __SerdeContext ): DBClusterEndpointAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9587,19 +9538,13 @@ const de_DBClusterEndpointList = (output: any, context: __SerdeContext): DBClust */ const de_DBClusterEndpointMessage = (output: any, context: __SerdeContext): DBClusterEndpointMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBClusterEndpoints === "") { - contents.DBClusterEndpoints = []; - } else if ( - output["DBClusterEndpoints"] !== undefined && - output["DBClusterEndpoints"]["DBClusterEndpointList"] !== undefined - ) { - contents.DBClusterEndpoints = de_DBClusterEndpointList( - __getArrayIfSingleItem(output["DBClusterEndpoints"]["DBClusterEndpointList"]), - context - ); + contents[_DBCE] = []; + } else if (output[_DBCE] != null && output[_DBCE][_DBCEL] != null) { + contents[_DBCE] = de_DBClusterEndpointList(__getArrayIfSingleItem(output[_DBCE][_DBCEL]), context); } return contents; }; @@ -9609,8 +9554,8 @@ const de_DBClusterEndpointMessage = (output: any, context: __SerdeContext): DBCl */ const de_DBClusterEndpointNotFoundFault = (output: any, context: __SerdeContext): DBClusterEndpointNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9623,8 +9568,8 @@ const de_DBClusterEndpointQuotaExceededFault = ( context: __SerdeContext ): DBClusterEndpointQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9645,17 +9590,17 @@ const de_DBClusterList = (output: any, context: __SerdeContext): DBCluster[] => */ const de_DBClusterMember = (output: any, context: __SerdeContext): DBClusterMember => { const contents: any = {}; - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["IsClusterWriter"] !== undefined) { - contents.IsClusterWriter = __parseBoolean(output["IsClusterWriter"]); + if (output[_ICW] != null) { + contents[_ICW] = __parseBoolean(output[_ICW]); } - if (output["DBClusterParameterGroupStatus"] !== undefined) { - contents.DBClusterParameterGroupStatus = __expectString(output["DBClusterParameterGroupStatus"]); + if (output[_DBCPGS] != null) { + contents[_DBCPGS] = __expectString(output[_DBCPGS]); } - if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; + if (output[_PT] != null) { + contents[_PT] = __strictParseInt32(output[_PT]) as number; } return contents; }; @@ -9676,13 +9621,13 @@ const de_DBClusterMemberList = (output: any, context: __SerdeContext): DBCluster */ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBClusters === "") { - contents.DBClusters = []; - } else if (output["DBClusters"] !== undefined && output["DBClusters"]["DBCluster"] !== undefined) { - contents.DBClusters = de_DBClusterList(__getArrayIfSingleItem(output["DBClusters"]["DBCluster"]), context); + contents[_DBCl] = []; + } else if (output[_DBCl] != null && output[_DBCl][_DBC] != null) { + contents[_DBCl] = de_DBClusterList(__getArrayIfSingleItem(output[_DBCl][_DBC]), context); } return contents; }; @@ -9692,8 +9637,8 @@ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMes */ const de_DBClusterNotFoundFault = (output: any, context: __SerdeContext): DBClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9714,11 +9659,11 @@ const de_DBClusterOptionGroupMemberships = (output: any, context: __SerdeContext */ const de_DBClusterOptionGroupStatus = (output: any, context: __SerdeContext): DBClusterOptionGroupStatus => { const contents: any = {}; - if (output["DBClusterOptionGroupName"] !== undefined) { - contents.DBClusterOptionGroupName = __expectString(output["DBClusterOptionGroupName"]); + if (output[_DBCOGN] != null) { + contents[_DBCOGN] = __expectString(output[_DBCOGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -9728,17 +9673,17 @@ const de_DBClusterOptionGroupStatus = (output: any, context: __SerdeContext): DB */ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClusterParameterGroup => { const contents: any = {}; - if (output["DBClusterParameterGroupName"] !== undefined) { - contents.DBClusterParameterGroupName = __expectString(output["DBClusterParameterGroupName"]); + if (output[_DBCPGN] != null) { + contents[_DBCPGN] = __expectString(output[_DBCPGN]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DBClusterParameterGroupArn"] !== undefined) { - contents.DBClusterParameterGroupArn = __expectString(output["DBClusterParameterGroupArn"]); + if (output[_DBCPGA] != null) { + contents[_DBCPGA] = __expectString(output[_DBCPGA]); } return contents; }; @@ -9749,12 +9694,12 @@ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClu const de_DBClusterParameterGroupDetails = (output: any, context: __SerdeContext): DBClusterParameterGroupDetails => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -9778,8 +9723,8 @@ const de_DBClusterParameterGroupNameMessage = ( context: __SerdeContext ): DBClusterParameterGroupNameMessage => { const contents: any = {}; - if (output["DBClusterParameterGroupName"] !== undefined) { - contents.DBClusterParameterGroupName = __expectString(output["DBClusterParameterGroupName"]); + if (output[_DBCPGN] != null) { + contents[_DBCPGN] = __expectString(output[_DBCPGN]); } return contents; }; @@ -9792,8 +9737,8 @@ const de_DBClusterParameterGroupNotFoundFault = ( context: __SerdeContext ): DBClusterParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9803,19 +9748,13 @@ const de_DBClusterParameterGroupNotFoundFault = ( */ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext): DBClusterParameterGroupsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBClusterParameterGroups === "") { - contents.DBClusterParameterGroups = []; - } else if ( - output["DBClusterParameterGroups"] !== undefined && - output["DBClusterParameterGroups"]["DBClusterParameterGroup"] !== undefined - ) { - contents.DBClusterParameterGroups = de_DBClusterParameterGroupList( - __getArrayIfSingleItem(output["DBClusterParameterGroups"]["DBClusterParameterGroup"]), - context - ); + contents[_DBCPGl] = []; + } else if (output[_DBCPGl] != null && output[_DBCPGl][_DBCPG] != null) { + contents[_DBCPGl] = de_DBClusterParameterGroupList(__getArrayIfSingleItem(output[_DBCPGl][_DBCPG]), context); } return contents; }; @@ -9825,8 +9764,8 @@ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext */ const de_DBClusterQuotaExceededFault = (output: any, context: __SerdeContext): DBClusterQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9836,14 +9775,14 @@ const de_DBClusterQuotaExceededFault = (output: any, context: __SerdeContext): D */ const de_DBClusterRole = (output: any, context: __SerdeContext): DBClusterRole => { const contents: any = {}; - if (output["RoleArn"] !== undefined) { - contents.RoleArn = __expectString(output["RoleArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["FeatureName"] !== undefined) { - contents.FeatureName = __expectString(output["FeatureName"]); + if (output[_FN] != null) { + contents[_FN] = __expectString(output[_FN]); } return contents; }; @@ -9853,8 +9792,8 @@ const de_DBClusterRole = (output: any, context: __SerdeContext): DBClusterRole = */ const de_DBClusterRoleAlreadyExistsFault = (output: any, context: __SerdeContext): DBClusterRoleAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9864,8 +9803,8 @@ const de_DBClusterRoleAlreadyExistsFault = (output: any, context: __SerdeContext */ const de_DBClusterRoleNotFoundFault = (output: any, context: __SerdeContext): DBClusterRoleNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9875,8 +9814,8 @@ const de_DBClusterRoleNotFoundFault = (output: any, context: __SerdeContext): DB */ const de_DBClusterRoleQuotaExceededFault = (output: any, context: __SerdeContext): DBClusterRoleQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9898,75 +9837,69 @@ const de_DBClusterRoles = (output: any, context: __SerdeContext): DBClusterRole[ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSnapshot => { const contents: any = {}; if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["DBClusterSnapshotIdentifier"] !== undefined) { - contents.DBClusterSnapshotIdentifier = __expectString(output["DBClusterSnapshotIdentifier"]); + if (output[_DBCSI] != null) { + contents[_DBCSI] = __expectString(output[_DBCSI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["SnapshotCreateTime"] !== undefined) { - contents.SnapshotCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotCreateTime"])); + if (output[_SCT] != null) { + contents[_SCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCT])); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["SnapshotType"] !== undefined) { - contents.SnapshotType = __expectString(output["SnapshotType"]); + if (output[_STn] != null) { + contents[_STn] = __expectString(output[_STn]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; + if (output[_PP] != null) { + contents[_PP] = __strictParseInt32(output[_PP]) as number; } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DBClusterSnapshotArn"] !== undefined) { - contents.DBClusterSnapshotArn = __expectString(output["DBClusterSnapshotArn"]); + if (output[_DBCSA] != null) { + contents[_DBCSA] = __expectString(output[_DBCSA]); } - if (output["SourceDBClusterSnapshotArn"] !== undefined) { - contents.SourceDBClusterSnapshotArn = __expectString(output["SourceDBClusterSnapshotArn"]); + if (output[_SDBCSA] != null) { + contents[_SDBCSA] = __expectString(output[_SDBCSA]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } return contents; }; @@ -9979,8 +9912,8 @@ const de_DBClusterSnapshotAlreadyExistsFault = ( context: __SerdeContext ): DBClusterSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9990,16 +9923,13 @@ const de_DBClusterSnapshotAlreadyExistsFault = ( */ const de_DBClusterSnapshotAttribute = (output: any, context: __SerdeContext): DBClusterSnapshotAttribute => { const contents: any = {}; - if (output["AttributeName"] !== undefined) { - contents.AttributeName = __expectString(output["AttributeName"]); + if (output[_AN] != null) { + contents[_AN] = __expectString(output[_AN]); } if (output.AttributeValues === "") { - contents.AttributeValues = []; - } else if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) { - contents.AttributeValues = de_AttributeValueList( - __getArrayIfSingleItem(output["AttributeValues"]["AttributeValue"]), - context - ); + contents[_AVt] = []; + } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { + contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); } return contents; }; @@ -10023,19 +9953,13 @@ const de_DBClusterSnapshotAttributesResult = ( context: __SerdeContext ): DBClusterSnapshotAttributesResult => { const contents: any = {}; - if (output["DBClusterSnapshotIdentifier"] !== undefined) { - contents.DBClusterSnapshotIdentifier = __expectString(output["DBClusterSnapshotIdentifier"]); + if (output[_DBCSI] != null) { + contents[_DBCSI] = __expectString(output[_DBCSI]); } if (output.DBClusterSnapshotAttributes === "") { - contents.DBClusterSnapshotAttributes = []; - } else if ( - output["DBClusterSnapshotAttributes"] !== undefined && - output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"] !== undefined - ) { - contents.DBClusterSnapshotAttributes = de_DBClusterSnapshotAttributeList( - __getArrayIfSingleItem(output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"]), - context - ); + contents[_DBCSAl] = []; + } else if (output[_DBCSAl] != null && output[_DBCSAl][_DBCSAlu] != null) { + contents[_DBCSAl] = de_DBClusterSnapshotAttributeList(__getArrayIfSingleItem(output[_DBCSAl][_DBCSAlu]), context); } return contents; }; @@ -10056,19 +9980,13 @@ const de_DBClusterSnapshotList = (output: any, context: __SerdeContext): DBClust */ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBClusterSnapshotMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBClusterSnapshots === "") { - contents.DBClusterSnapshots = []; - } else if ( - output["DBClusterSnapshots"] !== undefined && - output["DBClusterSnapshots"]["DBClusterSnapshot"] !== undefined - ) { - contents.DBClusterSnapshots = de_DBClusterSnapshotList( - __getArrayIfSingleItem(output["DBClusterSnapshots"]["DBClusterSnapshot"]), - context - ); + contents[_DBCSl] = []; + } else if (output[_DBCSl] != null && output[_DBCSl][_DBCS] != null) { + contents[_DBCSl] = de_DBClusterSnapshotList(__getArrayIfSingleItem(output[_DBCSl][_DBCS]), context); } return contents; }; @@ -10078,8 +9996,8 @@ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBCl */ const de_DBClusterSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBClusterSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10089,70 +10007,52 @@ const de_DBClusterSnapshotNotFoundFault = (output: any, context: __SerdeContext) */ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersion => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["DBEngineDescription"] !== undefined) { - contents.DBEngineDescription = __expectString(output["DBEngineDescription"]); + if (output[_DBED] != null) { + contents[_DBED] = __expectString(output[_DBED]); } - if (output["DBEngineVersionDescription"] !== undefined) { - contents.DBEngineVersionDescription = __expectString(output["DBEngineVersionDescription"]); + if (output[_DBEVD] != null) { + contents[_DBEVD] = __expectString(output[_DBEVD]); } - if (output["DefaultCharacterSet"] !== undefined) { - contents.DefaultCharacterSet = de_CharacterSet(output["DefaultCharacterSet"], context); + if (output[_DCS] != null) { + contents[_DCS] = de_CharacterSet(output[_DCS], context); } if (output.SupportedCharacterSets === "") { - contents.SupportedCharacterSets = []; - } else if ( - output["SupportedCharacterSets"] !== undefined && - output["SupportedCharacterSets"]["CharacterSet"] !== undefined - ) { - contents.SupportedCharacterSets = de_SupportedCharacterSetsList( - __getArrayIfSingleItem(output["SupportedCharacterSets"]["CharacterSet"]), - context - ); + contents[_SCS] = []; + } else if (output[_SCS] != null && output[_SCS][_CS] != null) { + contents[_SCS] = de_SupportedCharacterSetsList(__getArrayIfSingleItem(output[_SCS][_CS]), context); } if (output.ValidUpgradeTarget === "") { - contents.ValidUpgradeTarget = []; - } else if ( - output["ValidUpgradeTarget"] !== undefined && - output["ValidUpgradeTarget"]["UpgradeTarget"] !== undefined - ) { - contents.ValidUpgradeTarget = de_ValidUpgradeTargetList( - __getArrayIfSingleItem(output["ValidUpgradeTarget"]["UpgradeTarget"]), - context - ); + contents[_VUT] = []; + } else if (output[_VUT] != null && output[_VUT][_UT] != null) { + contents[_VUT] = de_ValidUpgradeTargetList(__getArrayIfSingleItem(output[_VUT][_UT]), context); } if (output.SupportedTimezones === "") { - contents.SupportedTimezones = []; - } else if (output["SupportedTimezones"] !== undefined && output["SupportedTimezones"]["Timezone"] !== undefined) { - contents.SupportedTimezones = de_SupportedTimezonesList( - __getArrayIfSingleItem(output["SupportedTimezones"]["Timezone"]), - context - ); + contents[_STu] = []; + } else if (output[_STu] != null && output[_STu][_Ti] != null) { + contents[_STu] = de_SupportedTimezonesList(__getArrayIfSingleItem(output[_STu][_Ti]), context); } if (output.ExportableLogTypes === "") { - contents.ExportableLogTypes = []; - } else if (output["ExportableLogTypes"] !== undefined && output["ExportableLogTypes"]["member"] !== undefined) { - contents.ExportableLogTypes = de_LogTypeList( - __getArrayIfSingleItem(output["ExportableLogTypes"]["member"]), - context - ); + contents[_ELTx] = []; + } else if (output[_ELTx] != null && output[_ELTx][_me] != null) { + contents[_ELTx] = de_LogTypeList(__getArrayIfSingleItem(output[_ELTx][_me]), context); } - if (output["SupportsLogExportsToCloudwatchLogs"] !== undefined) { - contents.SupportsLogExportsToCloudwatchLogs = __parseBoolean(output["SupportsLogExportsToCloudwatchLogs"]); + if (output[_SLETCL] != null) { + contents[_SLETCL] = __parseBoolean(output[_SLETCL]); } - if (output["SupportsReadReplica"] !== undefined) { - contents.SupportsReadReplica = __parseBoolean(output["SupportsReadReplica"]); + if (output[_SRR] != null) { + contents[_SRR] = __parseBoolean(output[_SRR]); } - if (output["SupportsGlobalDatabases"] !== undefined) { - contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]); + if (output[_SGD] != null) { + contents[_SGD] = __parseBoolean(output[_SGD]); } return contents; }; @@ -10173,16 +10073,13 @@ const de_DBEngineVersionList = (output: any, context: __SerdeContext): DBEngineV */ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngineVersionMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBEngineVersions === "") { - contents.DBEngineVersions = []; - } else if (output["DBEngineVersions"] !== undefined && output["DBEngineVersions"]["DBEngineVersion"] !== undefined) { - contents.DBEngineVersions = de_DBEngineVersionList( - __getArrayIfSingleItem(output["DBEngineVersions"]["DBEngineVersion"]), - context - ); + contents[_DBEV] = []; + } else if (output[_DBEV] != null && output[_DBEV][_DBEVn] != null) { + contents[_DBEV] = de_DBEngineVersionList(__getArrayIfSingleItem(output[_DBEV][_DBEVn]), context); } return contents; }; @@ -10192,230 +10089,188 @@ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngi */ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { const contents: any = {}; - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["DBInstanceStatus"] !== undefined) { - contents.DBInstanceStatus = __expectString(output["DBInstanceStatus"]); + if (output[_DBIS] != null) { + contents[_DBIS] = __expectString(output[_DBIS]); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["DBName"] !== undefined) { - contents.DBName = __expectString(output["DBName"]); + if (output[_DBN] != null) { + contents[_DBN] = __expectString(output[_DBN]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = de_Endpoint(output["Endpoint"], context); + if (output[_End] != null) { + contents[_End] = de_Endpoint(output[_End], context); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["InstanceCreateTime"] !== undefined) { - contents.InstanceCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["InstanceCreateTime"])); + if (output[_ICT] != null) { + contents[_ICT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ICT])); } - if (output["PreferredBackupWindow"] !== undefined) { - contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); + if (output[_PBW] != null) { + contents[_PBW] = __expectString(output[_PBW]); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } if (output.DBSecurityGroups === "") { - contents.DBSecurityGroups = []; - } else if (output["DBSecurityGroups"] !== undefined && output["DBSecurityGroups"]["DBSecurityGroup"] !== undefined) { - contents.DBSecurityGroups = de_DBSecurityGroupMembershipList( - __getArrayIfSingleItem(output["DBSecurityGroups"]["DBSecurityGroup"]), - context - ); + contents[_DBSG] = []; + } else if (output[_DBSG] != null && output[_DBSG][_DBSGe] != null) { + contents[_DBSG] = de_DBSecurityGroupMembershipList(__getArrayIfSingleItem(output[_DBSG][_DBSGe]), context); } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); } if (output.DBParameterGroups === "") { - contents.DBParameterGroups = []; - } else if ( - output["DBParameterGroups"] !== undefined && - output["DBParameterGroups"]["DBParameterGroup"] !== undefined - ) { - contents.DBParameterGroups = de_DBParameterGroupStatusList( - __getArrayIfSingleItem(output["DBParameterGroups"]["DBParameterGroup"]), - context - ); + contents[_DBPGa] = []; + } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { + contents[_DBPGa] = de_DBParameterGroupStatusList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZv] != null) { + contents[_AZv] = __expectString(output[_AZv]); } - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSGu] != null) { + contents[_DBSGu] = de_DBSubnetGroup(output[_DBSGu], context); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_PendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_PendingModifiedValues(output[_PMV], context); } - if (output["LatestRestorableTime"] !== undefined) { - contents.LatestRestorableTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LatestRestorableTime"])); + if (output[_LRT] != null) { + contents[_LRT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LRT])); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["AutoMinorVersionUpgrade"] !== undefined) { - contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); + if (output[_AMVU] != null) { + contents[_AMVU] = __parseBoolean(output[_AMVU]); } - if (output["ReadReplicaSourceDBInstanceIdentifier"] !== undefined) { - contents.ReadReplicaSourceDBInstanceIdentifier = __expectString(output["ReadReplicaSourceDBInstanceIdentifier"]); + if (output[_RRSDBII] != null) { + contents[_RRSDBII] = __expectString(output[_RRSDBII]); } if (output.ReadReplicaDBInstanceIdentifiers === "") { - contents.ReadReplicaDBInstanceIdentifiers = []; - } else if ( - output["ReadReplicaDBInstanceIdentifiers"] !== undefined && - output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"] !== undefined - ) { - contents.ReadReplicaDBInstanceIdentifiers = de_ReadReplicaDBInstanceIdentifierList( - __getArrayIfSingleItem(output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"]), + contents[_RRDBII] = []; + } else if (output[_RRDBII] != null && output[_RRDBII][_RRDBIIe] != null) { + contents[_RRDBII] = de_ReadReplicaDBInstanceIdentifierList( + __getArrayIfSingleItem(output[_RRDBII][_RRDBIIe]), context ); } if (output.ReadReplicaDBClusterIdentifiers === "") { - contents.ReadReplicaDBClusterIdentifiers = []; - } else if ( - output["ReadReplicaDBClusterIdentifiers"] !== undefined && - output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"] !== undefined - ) { - contents.ReadReplicaDBClusterIdentifiers = de_ReadReplicaDBClusterIdentifierList( - __getArrayIfSingleItem(output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"]), + contents[_RRDBCI] = []; + } else if (output[_RRDBCI] != null && output[_RRDBCI][_RRDBCIe] != null) { + contents[_RRDBCI] = de_ReadReplicaDBClusterIdentifierList( + __getArrayIfSingleItem(output[_RRDBCI][_RRDBCIe]), context ); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } if (output.OptionGroupMemberships === "") { - contents.OptionGroupMemberships = []; - } else if ( - output["OptionGroupMemberships"] !== undefined && - output["OptionGroupMemberships"]["OptionGroupMembership"] !== undefined - ) { - contents.OptionGroupMemberships = de_OptionGroupMembershipList( - __getArrayIfSingleItem(output["OptionGroupMemberships"]["OptionGroupMembership"]), - context - ); + contents[_OGM] = []; + } else if (output[_OGM] != null && output[_OGM][_OGMp] != null) { + contents[_OGM] = de_OptionGroupMembershipList(__getArrayIfSingleItem(output[_OGM][_OGMp]), context); } - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["SecondaryAvailabilityZone"] !== undefined) { - contents.SecondaryAvailabilityZone = __expectString(output["SecondaryAvailabilityZone"]); + if (output[_SAZ] != null) { + contents[_SAZ] = __expectString(output[_SAZ]); } - if (output["PubliclyAccessible"] !== undefined) { - contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]); + if (output[_PA] != null) { + contents[_PA] = __parseBoolean(output[_PA]); } if (output.StatusInfos === "") { - contents.StatusInfos = []; - } else if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBInstanceStatusInfo"] !== undefined) { - contents.StatusInfos = de_DBInstanceStatusInfoList( - __getArrayIfSingleItem(output["StatusInfos"]["DBInstanceStatusInfo"]), - context - ); + contents[_SIt] = []; + } else if (output[_SIt] != null && output[_SIt][_DBISI] != null) { + contents[_SIt] = de_DBInstanceStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBISI]), context); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["TdeCredentialArn"] !== undefined) { - contents.TdeCredentialArn = __expectString(output["TdeCredentialArn"]); + if (output[_TCA] != null) { + contents[_TCA] = __expectString(output[_TCA]); } - if (output["DbInstancePort"] !== undefined) { - contents.DbInstancePort = __strictParseInt32(output["DbInstancePort"]) as number; + if (output[_DIP] != null) { + contents[_DIP] = __strictParseInt32(output[_DIP]) as number; } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DbiResourceId"] !== undefined) { - contents.DbiResourceId = __expectString(output["DbiResourceId"]); + if (output[_DRI] != null) { + contents[_DRI] = __expectString(output[_DRI]); } - if (output["CACertificateIdentifier"] !== undefined) { - contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]); + if (output[_CACI] != null) { + contents[_CACI] = __expectString(output[_CACI]); } if (output.DomainMemberships === "") { - contents.DomainMemberships = []; - } else if ( - output["DomainMemberships"] !== undefined && - output["DomainMemberships"]["DomainMembership"] !== undefined - ) { - contents.DomainMemberships = de_DomainMembershipList( - __getArrayIfSingleItem(output["DomainMemberships"]["DomainMembership"]), - context - ); + contents[_DM] = []; + } else if (output[_DM] != null && output[_DM][_DMo] != null) { + contents[_DM] = de_DomainMembershipList(__getArrayIfSingleItem(output[_DM][_DMo]), context); } - if (output["CopyTagsToSnapshot"] !== undefined) { - contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]); + if (output[_CTTS] != null) { + contents[_CTTS] = __parseBoolean(output[_CTTS]); } - if (output["MonitoringInterval"] !== undefined) { - contents.MonitoringInterval = __strictParseInt32(output["MonitoringInterval"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["EnhancedMonitoringResourceArn"] !== undefined) { - contents.EnhancedMonitoringResourceArn = __expectString(output["EnhancedMonitoringResourceArn"]); + if (output[_EMRA] != null) { + contents[_EMRA] = __expectString(output[_EMRA]); } - if (output["MonitoringRoleArn"] !== undefined) { - contents.MonitoringRoleArn = __expectString(output["MonitoringRoleArn"]); + if (output[_MRA] != null) { + contents[_MRA] = __expectString(output[_MRA]); } - if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; + if (output[_PT] != null) { + contents[_PT] = __strictParseInt32(output[_PT]) as number; } - if (output["DBInstanceArn"] !== undefined) { - contents.DBInstanceArn = __expectString(output["DBInstanceArn"]); + if (output[_DBIA] != null) { + contents[_DBIA] = __expectString(output[_DBIA]); } - if (output["Timezone"] !== undefined) { - contents.Timezone = __expectString(output["Timezone"]); + if (output[_Ti] != null) { + contents[_Ti] = __expectString(output[_Ti]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["PerformanceInsightsEnabled"] !== undefined) { - contents.PerformanceInsightsEnabled = __parseBoolean(output["PerformanceInsightsEnabled"]); + if (output[_PIE] != null) { + contents[_PIE] = __parseBoolean(output[_PIE]); } - if (output["PerformanceInsightsKMSKeyId"] !== undefined) { - contents.PerformanceInsightsKMSKeyId = __expectString(output["PerformanceInsightsKMSKeyId"]); + if (output[_PIKMSKI] != null) { + contents[_PIKMSKI] = __expectString(output[_PIKMSKI]); } if (output.EnabledCloudwatchLogsExports === "") { - contents.EnabledCloudwatchLogsExports = []; - } else if ( - output["EnabledCloudwatchLogsExports"] !== undefined && - output["EnabledCloudwatchLogsExports"]["member"] !== undefined - ) { - contents.EnabledCloudwatchLogsExports = de_LogTypeList( - __getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), - context - ); + contents[_ECLEn] = []; + } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { + contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } return contents; }; @@ -10425,8 +10280,8 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { */ const de_DBInstanceAlreadyExistsFault = (output: any, context: __SerdeContext): DBInstanceAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10447,13 +10302,13 @@ const de_DBInstanceList = (output: any, context: __SerdeContext): DBInstance[] = */ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBInstances === "") { - contents.DBInstances = []; - } else if (output["DBInstances"] !== undefined && output["DBInstances"]["DBInstance"] !== undefined) { - contents.DBInstances = de_DBInstanceList(__getArrayIfSingleItem(output["DBInstances"]["DBInstance"]), context); + contents[_DBIn] = []; + } else if (output[_DBIn] != null && output[_DBIn][_DBI] != null) { + contents[_DBIn] = de_DBInstanceList(__getArrayIfSingleItem(output[_DBIn][_DBI]), context); } return contents; }; @@ -10463,8 +10318,8 @@ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceM */ const de_DBInstanceNotFoundFault = (output: any, context: __SerdeContext): DBInstanceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10474,17 +10329,17 @@ const de_DBInstanceNotFoundFault = (output: any, context: __SerdeContext): DBIns */ const de_DBInstanceStatusInfo = (output: any, context: __SerdeContext): DBInstanceStatusInfo => { const contents: any = {}; - if (output["StatusType"] !== undefined) { - contents.StatusType = __expectString(output["StatusType"]); + if (output[_STta] != null) { + contents[_STta] = __expectString(output[_STta]); } - if (output["Normal"] !== undefined) { - contents.Normal = __parseBoolean(output["Normal"]); + if (output[_No] != null) { + contents[_No] = __parseBoolean(output[_No]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -10505,17 +10360,17 @@ const de_DBInstanceStatusInfoList = (output: any, context: __SerdeContext): DBIn */ const de_DBParameterGroup = (output: any, context: __SerdeContext): DBParameterGroup => { const contents: any = {}; - if (output["DBParameterGroupName"] !== undefined) { - contents.DBParameterGroupName = __expectString(output["DBParameterGroupName"]); + if (output[_DBPGN] != null) { + contents[_DBPGN] = __expectString(output[_DBPGN]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DBParameterGroupArn"] !== undefined) { - contents.DBParameterGroupArn = __expectString(output["DBParameterGroupArn"]); + if (output[_DBPGA] != null) { + contents[_DBPGA] = __expectString(output[_DBPGA]); } return contents; }; @@ -10528,8 +10383,8 @@ const de_DBParameterGroupAlreadyExistsFault = ( context: __SerdeContext ): DBParameterGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10540,12 +10395,12 @@ const de_DBParameterGroupAlreadyExistsFault = ( const de_DBParameterGroupDetails = (output: any, context: __SerdeContext): DBParameterGroupDetails => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -10566,8 +10421,8 @@ const de_DBParameterGroupList = (output: any, context: __SerdeContext): DBParame */ const de_DBParameterGroupNameMessage = (output: any, context: __SerdeContext): DBParameterGroupNameMessage => { const contents: any = {}; - if (output["DBParameterGroupName"] !== undefined) { - contents.DBParameterGroupName = __expectString(output["DBParameterGroupName"]); + if (output[_DBPGN] != null) { + contents[_DBPGN] = __expectString(output[_DBPGN]); } return contents; }; @@ -10577,8 +10432,8 @@ const de_DBParameterGroupNameMessage = (output: any, context: __SerdeContext): D */ const de_DBParameterGroupNotFoundFault = (output: any, context: __SerdeContext): DBParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10591,8 +10446,8 @@ const de_DBParameterGroupQuotaExceededFault = ( context: __SerdeContext ): DBParameterGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10602,19 +10457,13 @@ const de_DBParameterGroupQuotaExceededFault = ( */ const de_DBParameterGroupsMessage = (output: any, context: __SerdeContext): DBParameterGroupsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBParameterGroups === "") { - contents.DBParameterGroups = []; - } else if ( - output["DBParameterGroups"] !== undefined && - output["DBParameterGroups"]["DBParameterGroup"] !== undefined - ) { - contents.DBParameterGroups = de_DBParameterGroupList( - __getArrayIfSingleItem(output["DBParameterGroups"]["DBParameterGroup"]), - context - ); + contents[_DBPGa] = []; + } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { + contents[_DBPGa] = de_DBParameterGroupList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); } return contents; }; @@ -10624,11 +10473,11 @@ const de_DBParameterGroupsMessage = (output: any, context: __SerdeContext): DBPa */ const de_DBParameterGroupStatus = (output: any, context: __SerdeContext): DBParameterGroupStatus => { const contents: any = {}; - if (output["DBParameterGroupName"] !== undefined) { - contents.DBParameterGroupName = __expectString(output["DBParameterGroupName"]); + if (output[_DBPGN] != null) { + contents[_DBPGN] = __expectString(output[_DBPGN]); } - if (output["ParameterApplyStatus"] !== undefined) { - contents.ParameterApplyStatus = __expectString(output["ParameterApplyStatus"]); + if (output[_PAS] != null) { + contents[_PAS] = __expectString(output[_PAS]); } return contents; }; @@ -10649,11 +10498,11 @@ const de_DBParameterGroupStatusList = (output: any, context: __SerdeContext): DB */ const de_DBSecurityGroupMembership = (output: any, context: __SerdeContext): DBSecurityGroupMembership => { const contents: any = {}; - if (output["DBSecurityGroupName"] !== undefined) { - contents.DBSecurityGroupName = __expectString(output["DBSecurityGroupName"]); + if (output[_DBSGNe] != null) { + contents[_DBSGNe] = __expectString(output[_DBSGNe]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -10674,8 +10523,8 @@ const de_DBSecurityGroupMembershipList = (output: any, context: __SerdeContext): */ const de_DBSecurityGroupNotFoundFault = (output: any, context: __SerdeContext): DBSecurityGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10685,8 +10534,8 @@ const de_DBSecurityGroupNotFoundFault = (output: any, context: __SerdeContext): */ const de_DBSnapshotAlreadyExistsFault = (output: any, context: __SerdeContext): DBSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10696,8 +10545,8 @@ const de_DBSnapshotAlreadyExistsFault = (output: any, context: __SerdeContext): */ const de_DBSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10707,25 +10556,25 @@ const de_DBSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBSna */ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup => { const contents: any = {}; - if (output["DBSubnetGroupName"] !== undefined) { - contents.DBSubnetGroupName = __expectString(output["DBSubnetGroupName"]); + if (output[_DBSGN] != null) { + contents[_DBSGN] = __expectString(output[_DBSGN]); } - if (output["DBSubnetGroupDescription"] !== undefined) { - contents.DBSubnetGroupDescription = __expectString(output["DBSubnetGroupDescription"]); + if (output[_DBSGD] != null) { + contents[_DBSGD] = __expectString(output[_DBSGD]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["SubnetGroupStatus"] !== undefined) { - contents.SubnetGroupStatus = __expectString(output["SubnetGroupStatus"]); + if (output[_SGS] != null) { + contents[_SGS] = __expectString(output[_SGS]); } if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) { - contents.Subnets = de_SubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_Sub] != null) { + contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); } - if (output["DBSubnetGroupArn"] !== undefined) { - contents.DBSubnetGroupArn = __expectString(output["DBSubnetGroupArn"]); + if (output[_DBSGA] != null) { + contents[_DBSGA] = __expectString(output[_DBSGA]); } return contents; }; @@ -10735,8 +10584,8 @@ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup = */ const de_DBSubnetGroupAlreadyExistsFault = (output: any, context: __SerdeContext): DBSubnetGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10749,8 +10598,8 @@ const de_DBSubnetGroupDoesNotCoverEnoughAZs = ( context: __SerdeContext ): DBSubnetGroupDoesNotCoverEnoughAZs => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10760,16 +10609,13 @@ const de_DBSubnetGroupDoesNotCoverEnoughAZs = ( */ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnetGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.DBSubnetGroups === "") { - contents.DBSubnetGroups = []; - } else if (output["DBSubnetGroups"] !== undefined && output["DBSubnetGroups"]["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroups = de_DBSubnetGroups( - __getArrayIfSingleItem(output["DBSubnetGroups"]["DBSubnetGroup"]), - context - ); + contents[_DBSGub] = []; + } else if (output[_DBSGub] != null && output[_DBSGub][_DBSGu] != null) { + contents[_DBSGub] = de_DBSubnetGroups(__getArrayIfSingleItem(output[_DBSGub][_DBSGu]), context); } return contents; }; @@ -10779,8 +10625,8 @@ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnet */ const de_DBSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): DBSubnetGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10790,8 +10636,8 @@ const de_DBSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): DB */ const de_DBSubnetGroupQuotaExceededFault = (output: any, context: __SerdeContext): DBSubnetGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10812,8 +10658,8 @@ const de_DBSubnetGroups = (output: any, context: __SerdeContext): DBSubnetGroup[ */ const de_DBSubnetQuotaExceededFault = (output: any, context: __SerdeContext): DBSubnetQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10823,8 +10669,8 @@ const de_DBSubnetQuotaExceededFault = (output: any, context: __SerdeContext): DB */ const de_DBUpgradeDependencyFailureFault = (output: any, context: __SerdeContext): DBUpgradeDependencyFailureFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -10834,39 +10680,39 @@ const de_DBUpgradeDependencyFailureFault = (output: any, context: __SerdeContext */ const de_DeleteDBClusterEndpointOutput = (output: any, context: __SerdeContext): DeleteDBClusterEndpointOutput => { const contents: any = {}; - if (output["DBClusterEndpointIdentifier"] !== undefined) { - contents.DBClusterEndpointIdentifier = __expectString(output["DBClusterEndpointIdentifier"]); + if (output[_DBCEI] != null) { + contents[_DBCEI] = __expectString(output[_DBCEI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterEndpointResourceIdentifier"] !== undefined) { - contents.DBClusterEndpointResourceIdentifier = __expectString(output["DBClusterEndpointResourceIdentifier"]); + if (output[_DBCERI] != null) { + contents[_DBCERI] = __expectString(output[_DBCERI]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EndpointType"] !== undefined) { - contents.EndpointType = __expectString(output["EndpointType"]); + if (output[_ET] != null) { + contents[_ET] = __expectString(output[_ET]); } - if (output["CustomEndpointType"] !== undefined) { - contents.CustomEndpointType = __expectString(output["CustomEndpointType"]); + if (output[_CET] != null) { + contents[_CET] = __expectString(output[_CET]); } if (output.StaticMembers === "") { - contents.StaticMembers = []; - } else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) { - contents.StaticMembers = de_StringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context); + contents[_SM] = []; + } else if (output[_SM] != null && output[_SM][_me] != null) { + contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } if (output.ExcludedMembers === "") { - contents.ExcludedMembers = []; - } else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) { - contents.ExcludedMembers = de_StringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context); + contents[_EM] = []; + } else if (output[_EM] != null && output[_EM][_me] != null) { + contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); } - if (output["DBClusterEndpointArn"] !== undefined) { - contents.DBClusterEndpointArn = __expectString(output["DBClusterEndpointArn"]); + if (output[_DBCEA] != null) { + contents[_DBCEA] = __expectString(output[_DBCEA]); } return contents; }; @@ -10876,8 +10722,8 @@ const de_DeleteDBClusterEndpointOutput = (output: any, context: __SerdeContext): */ const de_DeleteDBClusterResult = (output: any, context: __SerdeContext): DeleteDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -10887,8 +10733,8 @@ const de_DeleteDBClusterResult = (output: any, context: __SerdeContext): DeleteD */ const de_DeleteDBClusterSnapshotResult = (output: any, context: __SerdeContext): DeleteDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -10898,8 +10744,8 @@ const de_DeleteDBClusterSnapshotResult = (output: any, context: __SerdeContext): */ const de_DeleteDBInstanceResult = (output: any, context: __SerdeContext): DeleteDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -10909,8 +10755,8 @@ const de_DeleteDBInstanceResult = (output: any, context: __SerdeContext): Delete */ const de_DeleteEventSubscriptionResult = (output: any, context: __SerdeContext): DeleteEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -10920,8 +10766,8 @@ const de_DeleteEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_DeleteGlobalClusterResult = (output: any, context: __SerdeContext): DeleteGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -10934,11 +10780,8 @@ const de_DescribeDBClusterSnapshotAttributesResult = ( context: __SerdeContext ): DescribeDBClusterSnapshotAttributesResult => { const contents: any = {}; - if (output["DBClusterSnapshotAttributesResult"] !== undefined) { - contents.DBClusterSnapshotAttributesResult = de_DBClusterSnapshotAttributesResult( - output["DBClusterSnapshotAttributesResult"], - context - ); + if (output[_DBCSAR] != null) { + contents[_DBCSAR] = de_DBClusterSnapshotAttributesResult(output[_DBCSAR], context); } return contents; }; @@ -10951,8 +10794,8 @@ const de_DescribeEngineDefaultClusterParametersResult = ( context: __SerdeContext ): DescribeEngineDefaultClusterParametersResult => { const contents: any = {}; - if (output["EngineDefaults"] !== undefined) { - contents.EngineDefaults = de_EngineDefaults(output["EngineDefaults"], context); + if (output[_ED] != null) { + contents[_ED] = de_EngineDefaults(output[_ED], context); } return contents; }; @@ -10965,8 +10808,8 @@ const de_DescribeEngineDefaultParametersResult = ( context: __SerdeContext ): DescribeEngineDefaultParametersResult => { const contents: any = {}; - if (output["EngineDefaults"] !== undefined) { - contents.EngineDefaults = de_EngineDefaults(output["EngineDefaults"], context); + if (output[_ED] != null) { + contents[_ED] = de_EngineDefaults(output[_ED], context); } return contents; }; @@ -10979,11 +10822,8 @@ const de_DescribeValidDBInstanceModificationsResult = ( context: __SerdeContext ): DescribeValidDBInstanceModificationsResult => { const contents: any = {}; - if (output["ValidDBInstanceModificationsMessage"] !== undefined) { - contents.ValidDBInstanceModificationsMessage = de_ValidDBInstanceModificationsMessage( - output["ValidDBInstanceModificationsMessage"], - context - ); + if (output[_VDBIMM] != null) { + contents[_VDBIMM] = de_ValidDBInstanceModificationsMessage(output[_VDBIMM], context); } return contents; }; @@ -10993,17 +10833,17 @@ const de_DescribeValidDBInstanceModificationsResult = ( */ const de_DomainMembership = (output: any, context: __SerdeContext): DomainMembership => { const contents: any = {}; - if (output["Domain"] !== undefined) { - contents.Domain = __expectString(output["Domain"]); + if (output[_Do] != null) { + contents[_Do] = __expectString(output[_Do]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["FQDN"] !== undefined) { - contents.FQDN = __expectString(output["FQDN"]); + if (output[_FQDN] != null) { + contents[_FQDN] = __expectString(output[_FQDN]); } - if (output["IAMRoleName"] !== undefined) { - contents.IAMRoleName = __expectString(output["IAMRoleName"]); + if (output[_IAMRN] != null) { + contents[_IAMRN] = __expectString(output[_IAMRN]); } return contents; }; @@ -11024,8 +10864,8 @@ const de_DomainMembershipList = (output: any, context: __SerdeContext): DomainMe */ const de_DomainNotFoundFault = (output: any, context: __SerdeContext): DomainNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11035,11 +10875,11 @@ const de_DomainNotFoundFault = (output: any, context: __SerdeContext): DomainNot */ const de_DoubleRange = (output: any, context: __SerdeContext): DoubleRange => { const contents: any = {}; - if (output["From"] !== undefined) { - contents.From = __strictParseFloat(output["From"]) as number; + if (output[_Fr] != null) { + contents[_Fr] = __strictParseFloat(output[_Fr]) as number; } - if (output["To"] !== undefined) { - contents.To = __strictParseFloat(output["To"]) as number; + if (output[_To] != null) { + contents[_To] = __strictParseFloat(output[_To]) as number; } return contents; }; @@ -11060,14 +10900,14 @@ const de_DoubleRangeList = (output: any, context: __SerdeContext): DoubleRange[] */ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { const contents: any = {}; - if (output["Address"] !== undefined) { - contents.Address = __expectString(output["Address"]); + if (output[_Ad] != null) { + contents[_Ad] = __expectString(output[_Ad]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } return contents; }; @@ -11077,16 +10917,16 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { */ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults => { const contents: any = {}; - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } return contents; }; @@ -11096,28 +10936,25 @@ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults */ const de_Event = (output: any, context: __SerdeContext): Event => { const contents: any = {}; - if (output["SourceIdentifier"] !== undefined) { - contents.SourceIdentifier = __expectString(output["SourceIdentifier"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Da] != null) { + contents[_Da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Da])); } - if (output["SourceArn"] !== undefined) { - contents.SourceArn = __expectString(output["SourceArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } return contents; }; @@ -11138,16 +10975,13 @@ const de_EventCategoriesList = (output: any, context: __SerdeContext): string[] */ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCategoriesMap => { const contents: any = {}; - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } return contents; }; @@ -11169,15 +11003,9 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; if (output.EventCategoriesMapList === "") { - contents.EventCategoriesMapList = []; - } else if ( - output["EventCategoriesMapList"] !== undefined && - output["EventCategoriesMapList"]["EventCategoriesMap"] !== undefined - ) { - contents.EventCategoriesMapList = de_EventCategoriesMapList( - __getArrayIfSingleItem(output["EventCategoriesMapList"]["EventCategoriesMap"]), - context - ); + contents[_ECML] = []; + } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { + contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); } return contents; }; @@ -11198,13 +11026,13 @@ const de_EventList = (output: any, context: __SerdeContext): Event[] => { */ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Events === "") { - contents.Events = []; - } else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Events"]["Event"]), context); + contents[_Ev] = []; + } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { + contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); } return contents; }; @@ -11214,45 +11042,39 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = */ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscription => { const contents: any = {}; - if (output["CustomerAwsId"] !== undefined) { - contents.CustomerAwsId = __expectString(output["CustomerAwsId"]); + if (output[_CAI] != null) { + contents[_CAI] = __expectString(output[_CAI]); } - if (output["CustSubscriptionId"] !== undefined) { - contents.CustSubscriptionId = __expectString(output["CustSubscriptionId"]); + if (output[_CSI] != null) { + contents[_CSI] = __expectString(output[_CSI]); } - if (output["SnsTopicArn"] !== undefined) { - contents.SnsTopicArn = __expectString(output["SnsTopicArn"]); + if (output[_STA] != null) { + contents[_STA] = __expectString(output[_STA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["SubscriptionCreationTime"] !== undefined) { - contents.SubscriptionCreationTime = __expectString(output["SubscriptionCreationTime"]); + if (output[_SCTu] != null) { + contents[_SCTu] = __expectString(output[_SCTu]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } if (output.SourceIdsList === "") { - contents.SourceIdsList = []; - } else if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) { - contents.SourceIdsList = de_SourceIdsList(__getArrayIfSingleItem(output["SourceIdsList"]["SourceId"]), context); + contents[_SIL] = []; + } else if (output[_SIL] != null && output[_SIL][_SIou] != null) { + contents[_SIL] = de_SourceIdsList(__getArrayIfSingleItem(output[_SIL][_SIou]), context); } if (output.EventCategoriesList === "") { - contents.EventCategoriesList = []; - } else if ( - output["EventCategoriesList"] !== undefined && - output["EventCategoriesList"]["EventCategory"] !== undefined - ) { - contents.EventCategoriesList = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategoriesList"]["EventCategory"]), - context - ); + contents[_ECL] = []; + } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { + contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_En] != null) { + contents[_En] = __parseBoolean(output[_En]); } - if (output["EventSubscriptionArn"] !== undefined) { - contents.EventSubscriptionArn = __expectString(output["EventSubscriptionArn"]); + if (output[_ESA] != null) { + contents[_ESA] = __expectString(output[_ESA]); } return contents; }; @@ -11265,8 +11087,8 @@ const de_EventSubscriptionQuotaExceededFault = ( context: __SerdeContext ): EventSubscriptionQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11287,19 +11109,13 @@ const de_EventSubscriptionsList = (output: any, context: __SerdeContext): EventS */ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): EventSubscriptionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.EventSubscriptionsList === "") { - contents.EventSubscriptionsList = []; - } else if ( - output["EventSubscriptionsList"] !== undefined && - output["EventSubscriptionsList"]["EventSubscription"] !== undefined - ) { - contents.EventSubscriptionsList = de_EventSubscriptionsList( - __getArrayIfSingleItem(output["EventSubscriptionsList"]["EventSubscription"]), - context - ); + contents[_ESL] = []; + } else if (output[_ESL] != null && output[_ESL][_ES] != null) { + contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); } return contents; }; @@ -11309,8 +11125,8 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve */ const de_FailoverDBClusterResult = (output: any, context: __SerdeContext): FailoverDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -11320,8 +11136,8 @@ const de_FailoverDBClusterResult = (output: any, context: __SerdeContext): Failo */ const de_FailoverGlobalClusterResult = (output: any, context: __SerdeContext): FailoverGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -11331,40 +11147,34 @@ const de_FailoverGlobalClusterResult = (output: any, context: __SerdeContext): F */ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster => { const contents: any = {}; - if (output["GlobalClusterIdentifier"] !== undefined) { - contents.GlobalClusterIdentifier = __expectString(output["GlobalClusterIdentifier"]); + if (output[_GCI] != null) { + contents[_GCI] = __expectString(output[_GCI]); } - if (output["GlobalClusterResourceId"] !== undefined) { - contents.GlobalClusterResourceId = __expectString(output["GlobalClusterResourceId"]); + if (output[_GCRI] != null) { + contents[_GCRI] = __expectString(output[_GCRI]); } - if (output["GlobalClusterArn"] !== undefined) { - contents.GlobalClusterArn = __expectString(output["GlobalClusterArn"]); + if (output[_GCA] != null) { + contents[_GCA] = __expectString(output[_GCA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } if (output.GlobalClusterMembers === "") { - contents.GlobalClusterMembers = []; - } else if ( - output["GlobalClusterMembers"] !== undefined && - output["GlobalClusterMembers"]["GlobalClusterMember"] !== undefined - ) { - contents.GlobalClusterMembers = de_GlobalClusterMemberList( - __getArrayIfSingleItem(output["GlobalClusterMembers"]["GlobalClusterMember"]), - context - ); + contents[_GCM] = []; + } else if (output[_GCM] != null && output[_GCM][_GCMl] != null) { + contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context); } return contents; }; @@ -11374,8 +11184,8 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = */ const de_GlobalClusterAlreadyExistsFault = (output: any, context: __SerdeContext): GlobalClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11396,16 +11206,16 @@ const de_GlobalClusterList = (output: any, context: __SerdeContext): GlobalClust */ const de_GlobalClusterMember = (output: any, context: __SerdeContext): GlobalClusterMember => { const contents: any = {}; - if (output["DBClusterArn"] !== undefined) { - contents.DBClusterArn = __expectString(output["DBClusterArn"]); + if (output[_DBCA] != null) { + contents[_DBCA] = __expectString(output[_DBCA]); } if (output.Readers === "") { - contents.Readers = []; - } else if (output["Readers"] !== undefined && output["Readers"]["member"] !== undefined) { - contents.Readers = de_ReadersArnList(__getArrayIfSingleItem(output["Readers"]["member"]), context); + contents[_R] = []; + } else if (output[_R] != null && output[_R][_me] != null) { + contents[_R] = de_ReadersArnList(__getArrayIfSingleItem(output[_R][_me]), context); } - if (output["IsWriter"] !== undefined) { - contents.IsWriter = __parseBoolean(output["IsWriter"]); + if (output[_IW] != null) { + contents[_IW] = __parseBoolean(output[_IW]); } return contents; }; @@ -11426,8 +11236,8 @@ const de_GlobalClusterMemberList = (output: any, context: __SerdeContext): Globa */ const de_GlobalClusterNotFoundFault = (output: any, context: __SerdeContext): GlobalClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11437,8 +11247,8 @@ const de_GlobalClusterNotFoundFault = (output: any, context: __SerdeContext): Gl */ const de_GlobalClusterQuotaExceededFault = (output: any, context: __SerdeContext): GlobalClusterQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11448,16 +11258,13 @@ const de_GlobalClusterQuotaExceededFault = (output: any, context: __SerdeContext */ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalClustersMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.GlobalClusters === "") { - contents.GlobalClusters = []; - } else if (output["GlobalClusters"] !== undefined && output["GlobalClusters"]["GlobalClusterMember"] !== undefined) { - contents.GlobalClusters = de_GlobalClusterList( - __getArrayIfSingleItem(output["GlobalClusters"]["GlobalClusterMember"]), - context - ); + contents[_GCl] = []; + } else if (output[_GCl] != null && output[_GCl][_GCMl] != null) { + contents[_GCl] = de_GlobalClusterList(__getArrayIfSingleItem(output[_GCl][_GCMl]), context); } return contents; }; @@ -11467,8 +11274,8 @@ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalC */ const de_InstanceQuotaExceededFault = (output: any, context: __SerdeContext): InstanceQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11481,8 +11288,8 @@ const de_InsufficientDBClusterCapacityFault = ( context: __SerdeContext ): InsufficientDBClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11495,8 +11302,8 @@ const de_InsufficientDBInstanceCapacityFault = ( context: __SerdeContext ): InsufficientDBInstanceCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11509,8 +11316,8 @@ const de_InsufficientStorageClusterCapacityFault = ( context: __SerdeContext ): InsufficientStorageClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11523,8 +11330,8 @@ const de_InvalidDBClusterEndpointStateFault = ( context: __SerdeContext ): InvalidDBClusterEndpointStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11537,8 +11344,8 @@ const de_InvalidDBClusterSnapshotStateFault = ( context: __SerdeContext ): InvalidDBClusterSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11548,8 +11355,8 @@ const de_InvalidDBClusterSnapshotStateFault = ( */ const de_InvalidDBClusterStateFault = (output: any, context: __SerdeContext): InvalidDBClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11559,8 +11366,8 @@ const de_InvalidDBClusterStateFault = (output: any, context: __SerdeContext): In */ const de_InvalidDBInstanceStateFault = (output: any, context: __SerdeContext): InvalidDBInstanceStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11573,8 +11380,8 @@ const de_InvalidDBParameterGroupStateFault = ( context: __SerdeContext ): InvalidDBParameterGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11587,8 +11394,8 @@ const de_InvalidDBSecurityGroupStateFault = ( context: __SerdeContext ): InvalidDBSecurityGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11598,8 +11405,8 @@ const de_InvalidDBSecurityGroupStateFault = ( */ const de_InvalidDBSnapshotStateFault = (output: any, context: __SerdeContext): InvalidDBSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11609,8 +11416,8 @@ const de_InvalidDBSnapshotStateFault = (output: any, context: __SerdeContext): I */ const de_InvalidDBSubnetGroupStateFault = (output: any, context: __SerdeContext): InvalidDBSubnetGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11620,8 +11427,8 @@ const de_InvalidDBSubnetGroupStateFault = (output: any, context: __SerdeContext) */ const de_InvalidDBSubnetStateFault = (output: any, context: __SerdeContext): InvalidDBSubnetStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11634,8 +11441,8 @@ const de_InvalidEventSubscriptionStateFault = ( context: __SerdeContext ): InvalidEventSubscriptionStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11645,8 +11452,8 @@ const de_InvalidEventSubscriptionStateFault = ( */ const de_InvalidGlobalClusterStateFault = (output: any, context: __SerdeContext): InvalidGlobalClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11656,8 +11463,8 @@ const de_InvalidGlobalClusterStateFault = (output: any, context: __SerdeContext) */ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRestoreFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11667,8 +11474,8 @@ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRe */ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11678,8 +11485,8 @@ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet = */ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): InvalidVPCNetworkStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11689,8 +11496,8 @@ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): I */ const de_KMSKeyNotAccessibleFault = (output: any, context: __SerdeContext): KMSKeyNotAccessibleFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11711,39 +11518,39 @@ const de_LogTypeList = (output: any, context: __SerdeContext): string[] => { */ const de_ModifyDBClusterEndpointOutput = (output: any, context: __SerdeContext): ModifyDBClusterEndpointOutput => { const contents: any = {}; - if (output["DBClusterEndpointIdentifier"] !== undefined) { - contents.DBClusterEndpointIdentifier = __expectString(output["DBClusterEndpointIdentifier"]); + if (output[_DBCEI] != null) { + contents[_DBCEI] = __expectString(output[_DBCEI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterEndpointResourceIdentifier"] !== undefined) { - contents.DBClusterEndpointResourceIdentifier = __expectString(output["DBClusterEndpointResourceIdentifier"]); + if (output[_DBCERI] != null) { + contents[_DBCERI] = __expectString(output[_DBCERI]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EndpointType"] !== undefined) { - contents.EndpointType = __expectString(output["EndpointType"]); + if (output[_ET] != null) { + contents[_ET] = __expectString(output[_ET]); } - if (output["CustomEndpointType"] !== undefined) { - contents.CustomEndpointType = __expectString(output["CustomEndpointType"]); + if (output[_CET] != null) { + contents[_CET] = __expectString(output[_CET]); } if (output.StaticMembers === "") { - contents.StaticMembers = []; - } else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) { - contents.StaticMembers = de_StringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context); + contents[_SM] = []; + } else if (output[_SM] != null && output[_SM][_me] != null) { + contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } if (output.ExcludedMembers === "") { - contents.ExcludedMembers = []; - } else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) { - contents.ExcludedMembers = de_StringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context); + contents[_EM] = []; + } else if (output[_EM] != null && output[_EM][_me] != null) { + contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); } - if (output["DBClusterEndpointArn"] !== undefined) { - contents.DBClusterEndpointArn = __expectString(output["DBClusterEndpointArn"]); + if (output[_DBCEA] != null) { + contents[_DBCEA] = __expectString(output[_DBCEA]); } return contents; }; @@ -11753,8 +11560,8 @@ const de_ModifyDBClusterEndpointOutput = (output: any, context: __SerdeContext): */ const de_ModifyDBClusterResult = (output: any, context: __SerdeContext): ModifyDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -11767,11 +11574,8 @@ const de_ModifyDBClusterSnapshotAttributeResult = ( context: __SerdeContext ): ModifyDBClusterSnapshotAttributeResult => { const contents: any = {}; - if (output["DBClusterSnapshotAttributesResult"] !== undefined) { - contents.DBClusterSnapshotAttributesResult = de_DBClusterSnapshotAttributesResult( - output["DBClusterSnapshotAttributesResult"], - context - ); + if (output[_DBCSAR] != null) { + contents[_DBCSAR] = de_DBClusterSnapshotAttributesResult(output[_DBCSAR], context); } return contents; }; @@ -11781,8 +11585,8 @@ const de_ModifyDBClusterSnapshotAttributeResult = ( */ const de_ModifyDBInstanceResult = (output: any, context: __SerdeContext): ModifyDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -11792,8 +11596,8 @@ const de_ModifyDBInstanceResult = (output: any, context: __SerdeContext): Modify */ const de_ModifyDBSubnetGroupResult = (output: any, context: __SerdeContext): ModifyDBSubnetGroupResult => { const contents: any = {}; - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSGu] != null) { + contents[_DBSGu] = de_DBSubnetGroup(output[_DBSGu], context); } return contents; }; @@ -11803,8 +11607,8 @@ const de_ModifyDBSubnetGroupResult = (output: any, context: __SerdeContext): Mod */ const de_ModifyEventSubscriptionResult = (output: any, context: __SerdeContext): ModifyEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -11814,8 +11618,8 @@ const de_ModifyEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_ModifyGlobalClusterResult = (output: any, context: __SerdeContext): ModifyGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -11825,11 +11629,11 @@ const de_ModifyGlobalClusterResult = (output: any, context: __SerdeContext): Mod */ const de_OptionGroupMembership = (output: any, context: __SerdeContext): OptionGroupMembership => { const contents: any = {}; - if (output["OptionGroupName"] !== undefined) { - contents.OptionGroupName = __expectString(output["OptionGroupName"]); + if (output[_OGN] != null) { + contents[_OGN] = __expectString(output[_OGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -11850,8 +11654,8 @@ const de_OptionGroupMembershipList = (output: any, context: __SerdeContext): Opt */ const de_OptionGroupNotFoundFault = (output: any, context: __SerdeContext): OptionGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -11861,76 +11665,70 @@ const de_OptionGroupNotFoundFault = (output: any, context: __SerdeContext): Opti */ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): OrderableDBInstanceOption => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZoneList( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["MultiAZCapable"] !== undefined) { - contents.MultiAZCapable = __parseBoolean(output["MultiAZCapable"]); + if (output[_MAZC] != null) { + contents[_MAZC] = __parseBoolean(output[_MAZC]); } - if (output["ReadReplicaCapable"] !== undefined) { - contents.ReadReplicaCapable = __parseBoolean(output["ReadReplicaCapable"]); + if (output[_RRC] != null) { + contents[_RRC] = __parseBoolean(output[_RRC]); } - if (output["Vpc"] !== undefined) { - contents.Vpc = __parseBoolean(output["Vpc"]); + if (output[_Vp] != null) { + contents[_Vp] = __parseBoolean(output[_Vp]); } - if (output["SupportsStorageEncryption"] !== undefined) { - contents.SupportsStorageEncryption = __parseBoolean(output["SupportsStorageEncryption"]); + if (output[_SSE] != null) { + contents[_SSE] = __parseBoolean(output[_SSE]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["SupportsIops"] !== undefined) { - contents.SupportsIops = __parseBoolean(output["SupportsIops"]); + if (output[_SIup] != null) { + contents[_SIup] = __parseBoolean(output[_SIup]); } - if (output["SupportsEnhancedMonitoring"] !== undefined) { - contents.SupportsEnhancedMonitoring = __parseBoolean(output["SupportsEnhancedMonitoring"]); + if (output[_SEM] != null) { + contents[_SEM] = __parseBoolean(output[_SEM]); } - if (output["SupportsIAMDatabaseAuthentication"] !== undefined) { - contents.SupportsIAMDatabaseAuthentication = __parseBoolean(output["SupportsIAMDatabaseAuthentication"]); + if (output[_SIAMDA] != null) { + contents[_SIAMDA] = __parseBoolean(output[_SIAMDA]); } - if (output["SupportsPerformanceInsights"] !== undefined) { - contents.SupportsPerformanceInsights = __parseBoolean(output["SupportsPerformanceInsights"]); + if (output[_SPI] != null) { + contents[_SPI] = __parseBoolean(output[_SPI]); } - if (output["MinStorageSize"] !== undefined) { - contents.MinStorageSize = __strictParseInt32(output["MinStorageSize"]) as number; + if (output[_MSS] != null) { + contents[_MSS] = __strictParseInt32(output[_MSS]) as number; } - if (output["MaxStorageSize"] !== undefined) { - contents.MaxStorageSize = __strictParseInt32(output["MaxStorageSize"]) as number; + if (output[_MSSa] != null) { + contents[_MSSa] = __strictParseInt32(output[_MSSa]) as number; } - if (output["MinIopsPerDbInstance"] !== undefined) { - contents.MinIopsPerDbInstance = __strictParseInt32(output["MinIopsPerDbInstance"]) as number; + if (output[_MIPDI] != null) { + contents[_MIPDI] = __strictParseInt32(output[_MIPDI]) as number; } - if (output["MaxIopsPerDbInstance"] !== undefined) { - contents.MaxIopsPerDbInstance = __strictParseInt32(output["MaxIopsPerDbInstance"]) as number; + if (output[_MIPDIa] != null) { + contents[_MIPDIa] = __strictParseInt32(output[_MIPDIa]) as number; } - if (output["MinIopsPerGib"] !== undefined) { - contents.MinIopsPerGib = __strictParseFloat(output["MinIopsPerGib"]) as number; + if (output[_MIPG] != null) { + contents[_MIPG] = __strictParseFloat(output[_MIPG]) as number; } - if (output["MaxIopsPerGib"] !== undefined) { - contents.MaxIopsPerGib = __strictParseFloat(output["MaxIopsPerGib"]) as number; + if (output[_MIPGa] != null) { + contents[_MIPGa] = __strictParseFloat(output[_MIPGa]) as number; } - if (output["SupportsGlobalDatabases"] !== undefined) { - contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]); + if (output[_SGD] != null) { + contents[_SGD] = __parseBoolean(output[_SGD]); } return contents; }; @@ -11955,18 +11753,12 @@ const de_OrderableDBInstanceOptionsMessage = ( ): OrderableDBInstanceOptionsMessage => { const contents: any = {}; if (output.OrderableDBInstanceOptions === "") { - contents.OrderableDBInstanceOptions = []; - } else if ( - output["OrderableDBInstanceOptions"] !== undefined && - output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"] !== undefined - ) { - contents.OrderableDBInstanceOptions = de_OrderableDBInstanceOptionsList( - __getArrayIfSingleItem(output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"]), - context - ); + contents[_ODBIO] = []; + } else if (output[_ODBIO] != null && output[_ODBIO][_ODBIOr] != null) { + contents[_ODBIO] = de_OrderableDBInstanceOptionsList(__getArrayIfSingleItem(output[_ODBIO][_ODBIOr]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -11976,35 +11768,35 @@ const de_OrderableDBInstanceOptionsMessage = ( */ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { const contents: any = {}; - if (output["ParameterName"] !== undefined) { - contents.ParameterName = __expectString(output["ParameterName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["ParameterValue"] !== undefined) { - contents.ParameterValue = __expectString(output["ParameterValue"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Source"] !== undefined) { - contents.Source = __expectString(output["Source"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["ApplyType"] !== undefined) { - contents.ApplyType = __expectString(output["ApplyType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["DataType"] !== undefined) { - contents.DataType = __expectString(output["DataType"]); + if (output[_DT] != null) { + contents[_DT] = __expectString(output[_DT]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } - if (output["ApplyMethod"] !== undefined) { - contents.ApplyMethod = __expectString(output["ApplyMethod"]); + if (output[_AM] != null) { + contents[_AM] = __expectString(output[_AM]); } return contents; }; @@ -12026,14 +11818,14 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): PendingCloudwatchLogsExports => { const contents: any = {}; if (output.LogTypesToEnable === "") { - contents.LogTypesToEnable = []; - } else if (output["LogTypesToEnable"] !== undefined && output["LogTypesToEnable"]["member"] !== undefined) { - contents.LogTypesToEnable = de_LogTypeList(__getArrayIfSingleItem(output["LogTypesToEnable"]["member"]), context); + contents[_LTTE] = []; + } else if (output[_LTTE] != null && output[_LTTE][_me] != null) { + contents[_LTTE] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTE][_me]), context); } if (output.LogTypesToDisable === "") { - contents.LogTypesToDisable = []; - } else if (output["LogTypesToDisable"] !== undefined && output["LogTypesToDisable"]["member"] !== undefined) { - contents.LogTypesToDisable = de_LogTypeList(__getArrayIfSingleItem(output["LogTypesToDisable"]["member"]), context); + contents[_LTTD] = []; + } else if (output[_LTTD] != null && output[_LTTD][_me] != null) { + contents[_LTTD] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTD][_me]), context); } return contents; }; @@ -12043,23 +11835,23 @@ const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): */ const de_PendingMaintenanceAction = (output: any, context: __SerdeContext): PendingMaintenanceAction => { const contents: any = {}; - if (output["Action"] !== undefined) { - contents.Action = __expectString(output["Action"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["AutoAppliedAfterDate"] !== undefined) { - contents.AutoAppliedAfterDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AutoAppliedAfterDate"])); + if (output[_AAAD] != null) { + contents[_AAAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_AAAD])); } - if (output["ForcedApplyDate"] !== undefined) { - contents.ForcedApplyDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ForcedApplyDate"])); + if (output[_FAD] != null) { + contents[_FAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_FAD])); } - if (output["OptInStatus"] !== undefined) { - contents.OptInStatus = __expectString(output["OptInStatus"]); + if (output[_OIS] != null) { + contents[_OIS] = __expectString(output[_OIS]); } - if (output["CurrentApplyDate"] !== undefined) { - contents.CurrentApplyDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CurrentApplyDate"])); + if (output[_CAD] != null) { + contents[_CAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CAD])); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -12095,18 +11887,12 @@ const de_PendingMaintenanceActionsMessage = ( ): PendingMaintenanceActionsMessage => { const contents: any = {}; if (output.PendingMaintenanceActions === "") { - contents.PendingMaintenanceActions = []; - } else if ( - output["PendingMaintenanceActions"] !== undefined && - output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"] !== undefined - ) { - contents.PendingMaintenanceActions = de_PendingMaintenanceActions( - __getArrayIfSingleItem(output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"]), - context - ); + contents[_PMA] = []; + } else if (output[_PMA] != null && output[_PMA][_RPMA] != null) { + contents[_PMA] = de_PendingMaintenanceActions(__getArrayIfSingleItem(output[_PMA][_RPMA]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -12116,50 +11902,47 @@ const de_PendingMaintenanceActionsMessage = ( */ const de_PendingModifiedValues = (output: any, context: __SerdeContext): PendingModifiedValues => { const contents: any = {}; - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["MasterUserPassword"] !== undefined) { - contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); + if (output[_MUP] != null) { + contents[_MUP] = __expectString(output[_MUP]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["CACertificateIdentifier"] !== undefined) { - contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]); + if (output[_CACI] != null) { + contents[_CACI] = __expectString(output[_CACI]); } - if (output["DBSubnetGroupName"] !== undefined) { - contents.DBSubnetGroupName = __expectString(output["DBSubnetGroupName"]); + if (output[_DBSGN] != null) { + contents[_DBSGN] = __expectString(output[_DBSGN]); } - if (output["PendingCloudwatchLogsExports"] !== undefined) { - contents.PendingCloudwatchLogsExports = de_PendingCloudwatchLogsExports( - output["PendingCloudwatchLogsExports"], - context - ); + if (output[_PCLE] != null) { + contents[_PCLE] = de_PendingCloudwatchLogsExports(output[_PCLE], context); } return contents; }; @@ -12172,8 +11955,8 @@ const de_PromoteReadReplicaDBClusterResult = ( context: __SerdeContext ): PromoteReadReplicaDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -12186,8 +11969,8 @@ const de_ProvisionedIopsNotAvailableInAZFault = ( context: __SerdeContext ): ProvisionedIopsNotAvailableInAZFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12197,14 +11980,14 @@ const de_ProvisionedIopsNotAvailableInAZFault = ( */ const de_Range = (output: any, context: __SerdeContext): Range => { const contents: any = {}; - if (output["From"] !== undefined) { - contents.From = __strictParseInt32(output["From"]) as number; + if (output[_Fr] != null) { + contents[_Fr] = __strictParseInt32(output[_Fr]) as number; } - if (output["To"] !== undefined) { - contents.To = __strictParseInt32(output["To"]) as number; + if (output[_To] != null) { + contents[_To] = __strictParseInt32(output[_To]) as number; } - if (output["Step"] !== undefined) { - contents.Step = __strictParseInt32(output["Step"]) as number; + if (output[_Ste] != null) { + contents[_Ste] = __strictParseInt32(output[_Ste]) as number; } return contents; }; @@ -12269,8 +12052,8 @@ const de_ReadReplicaIdentifierList = (output: any, context: __SerdeContext): str */ const de_RebootDBInstanceResult = (output: any, context: __SerdeContext): RebootDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -12280,8 +12063,8 @@ const de_RebootDBInstanceResult = (output: any, context: __SerdeContext): Reboot */ const de_RemoveFromGlobalClusterResult = (output: any, context: __SerdeContext): RemoveFromGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -12294,8 +12077,8 @@ const de_RemoveSourceIdentifierFromSubscriptionResult = ( context: __SerdeContext ): RemoveSourceIdentifierFromSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -12305,8 +12088,8 @@ const de_RemoveSourceIdentifierFromSubscriptionResult = ( */ const de_ResourceNotFoundFault = (output: any, context: __SerdeContext): ResourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12319,19 +12102,13 @@ const de_ResourcePendingMaintenanceActions = ( context: __SerdeContext ): ResourcePendingMaintenanceActions => { const contents: any = {}; - if (output["ResourceIdentifier"] !== undefined) { - contents.ResourceIdentifier = __expectString(output["ResourceIdentifier"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } if (output.PendingMaintenanceActionDetails === "") { - contents.PendingMaintenanceActionDetails = []; - } else if ( - output["PendingMaintenanceActionDetails"] !== undefined && - output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"] !== undefined - ) { - contents.PendingMaintenanceActionDetails = de_PendingMaintenanceActionDetails( - __getArrayIfSingleItem(output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"]), - context - ); + contents[_PMAD] = []; + } else if (output[_PMAD] != null && output[_PMAD][_PMAe] != null) { + contents[_PMAD] = de_PendingMaintenanceActionDetails(__getArrayIfSingleItem(output[_PMAD][_PMAe]), context); } return contents; }; @@ -12344,8 +12121,8 @@ const de_RestoreDBClusterFromSnapshotResult = ( context: __SerdeContext ): RestoreDBClusterFromSnapshotResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -12358,8 +12135,8 @@ const de_RestoreDBClusterToPointInTimeResult = ( context: __SerdeContext ): RestoreDBClusterToPointInTimeResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -12372,11 +12149,11 @@ const de_ServerlessV2ScalingConfigurationInfo = ( context: __SerdeContext ): ServerlessV2ScalingConfigurationInfo => { const contents: any = {}; - if (output["MinCapacity"] !== undefined) { - contents.MinCapacity = __strictParseFloat(output["MinCapacity"]) as number; + if (output[_MC] != null) { + contents[_MC] = __strictParseFloat(output[_MC]) as number; } - if (output["MaxCapacity"] !== undefined) { - contents.MaxCapacity = __strictParseFloat(output["MaxCapacity"]) as number; + if (output[_MCa] != null) { + contents[_MCa] = __strictParseFloat(output[_MCa]) as number; } return contents; }; @@ -12389,8 +12166,8 @@ const de_SharedSnapshotQuotaExceededFault = ( context: __SerdeContext ): SharedSnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12400,8 +12177,8 @@ const de_SharedSnapshotQuotaExceededFault = ( */ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): SnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12411,8 +12188,8 @@ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): Sn */ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInvalidTopicFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12422,8 +12199,8 @@ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInval */ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNoAuthorizationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12433,8 +12210,8 @@ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNo */ const de_SNSTopicArnNotFoundFault = (output: any, context: __SerdeContext): SNSTopicArnNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12455,8 +12232,8 @@ const de_SourceIdsList = (output: any, context: __SerdeContext): string[] => { */ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12466,8 +12243,8 @@ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNot */ const de_StartDBClusterResult = (output: any, context: __SerdeContext): StartDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -12477,8 +12254,8 @@ const de_StartDBClusterResult = (output: any, context: __SerdeContext): StartDBC */ const de_StopDBClusterResult = (output: any, context: __SerdeContext): StopDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -12488,8 +12265,8 @@ const de_StopDBClusterResult = (output: any, context: __SerdeContext): StopDBClu */ const de_StorageQuotaExceededFault = (output: any, context: __SerdeContext): StorageQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12499,8 +12276,8 @@ const de_StorageQuotaExceededFault = (output: any, context: __SerdeContext): Sto */ const de_StorageTypeNotSupportedFault = (output: any, context: __SerdeContext): StorageTypeNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12521,14 +12298,14 @@ const de_StringList = (output: any, context: __SerdeContext): string[] => { */ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { const contents: any = {}; - if (output["SubnetIdentifier"] !== undefined) { - contents.SubnetIdentifier = __expectString(output["SubnetIdentifier"]); + if (output[_SIub] != null) { + contents[_SIub] = __expectString(output[_SIub]); } - if (output["SubnetAvailabilityZone"] !== undefined) { - contents.SubnetAvailabilityZone = de_AvailabilityZone(output["SubnetAvailabilityZone"], context); + if (output[_SAZu] != null) { + contents[_SAZu] = de_AvailabilityZone(output[_SAZu], context); } - if (output["SubnetStatus"] !== undefined) { - contents.SubnetStatus = __expectString(output["SubnetStatus"]); + if (output[_SS] != null) { + contents[_SS] = __expectString(output[_SS]); } return contents; }; @@ -12538,8 +12315,8 @@ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { */ const de_SubnetAlreadyInUse = (output: any, context: __SerdeContext): SubnetAlreadyInUse => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12560,8 +12337,8 @@ const de_SubnetList = (output: any, context: __SerdeContext): Subnet[] => { */ const de_SubscriptionAlreadyExistFault = (output: any, context: __SerdeContext): SubscriptionAlreadyExistFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12574,8 +12351,8 @@ const de_SubscriptionCategoryNotFoundFault = ( context: __SerdeContext ): SubscriptionCategoryNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12585,8 +12362,8 @@ const de_SubscriptionCategoryNotFoundFault = ( */ const de_SubscriptionNotFoundFault = (output: any, context: __SerdeContext): SubscriptionNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -12618,11 +12395,11 @@ const de_SupportedTimezonesList = (output: any, context: __SerdeContext): Timezo */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -12644,9 +12421,9 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Ta] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Ta]), context); } return contents; }; @@ -12656,8 +12433,8 @@ const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage */ const de_Timezone = (output: any, context: __SerdeContext): Timezone => { const contents: any = {}; - if (output["TimezoneName"] !== undefined) { - contents.TimezoneName = __expectString(output["TimezoneName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } return contents; }; @@ -12667,23 +12444,23 @@ const de_Timezone = (output: any, context: __SerdeContext): Timezone => { */ const de_UpgradeTarget = (output: any, context: __SerdeContext): UpgradeTarget => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["AutoUpgrade"] !== undefined) { - contents.AutoUpgrade = __parseBoolean(output["AutoUpgrade"]); + if (output[_AU] != null) { + contents[_AU] = __parseBoolean(output[_AU]); } - if (output["IsMajorVersionUpgrade"] !== undefined) { - contents.IsMajorVersionUpgrade = __parseBoolean(output["IsMajorVersionUpgrade"]); + if (output[_IMVU] != null) { + contents[_IMVU] = __parseBoolean(output[_IMVU]); } - if (output["SupportsGlobalDatabases"] !== undefined) { - contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]); + if (output[_SGD] != null) { + contents[_SGD] = __parseBoolean(output[_SGD]); } return contents; }; @@ -12697,12 +12474,9 @@ const de_ValidDBInstanceModificationsMessage = ( ): ValidDBInstanceModificationsMessage => { const contents: any = {}; if (output.Storage === "") { - contents.Storage = []; - } else if (output["Storage"] !== undefined && output["Storage"]["ValidStorageOptions"] !== undefined) { - contents.Storage = de_ValidStorageOptionsList( - __getArrayIfSingleItem(output["Storage"]["ValidStorageOptions"]), - context - ); + contents[_Sto] = []; + } else if (output[_Sto] != null && output[_Sto][_VSO] != null) { + contents[_Sto] = de_ValidStorageOptionsList(__getArrayIfSingleItem(output[_Sto][_VSO]), context); } return contents; }; @@ -12712,26 +12486,23 @@ const de_ValidDBInstanceModificationsMessage = ( */ const de_ValidStorageOptions = (output: any, context: __SerdeContext): ValidStorageOptions => { const contents: any = {}; - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } if (output.StorageSize === "") { - contents.StorageSize = []; - } else if (output["StorageSize"] !== undefined && output["StorageSize"]["Range"] !== undefined) { - contents.StorageSize = de_RangeList(__getArrayIfSingleItem(output["StorageSize"]["Range"]), context); + contents[_SSt] = []; + } else if (output[_SSt] != null && output[_SSt][_Ra] != null) { + contents[_SSt] = de_RangeList(__getArrayIfSingleItem(output[_SSt][_Ra]), context); } if (output.ProvisionedIops === "") { - contents.ProvisionedIops = []; - } else if (output["ProvisionedIops"] !== undefined && output["ProvisionedIops"]["Range"] !== undefined) { - contents.ProvisionedIops = de_RangeList(__getArrayIfSingleItem(output["ProvisionedIops"]["Range"]), context); + contents[_PI] = []; + } else if (output[_PI] != null && output[_PI][_Ra] != null) { + contents[_PI] = de_RangeList(__getArrayIfSingleItem(output[_PI][_Ra]), context); } if (output.IopsToStorageRatio === "") { - contents.IopsToStorageRatio = []; - } else if (output["IopsToStorageRatio"] !== undefined && output["IopsToStorageRatio"]["DoubleRange"] !== undefined) { - contents.IopsToStorageRatio = de_DoubleRangeList( - __getArrayIfSingleItem(output["IopsToStorageRatio"]["DoubleRange"]), - context - ); + contents[_ITSR] = []; + } else if (output[_ITSR] != null && output[_ITSR][_DR] != null) { + contents[_ITSR] = de_DoubleRangeList(__getArrayIfSingleItem(output[_ITSR][_DR]), context); } return contents; }; @@ -12763,11 +12534,11 @@ const de_ValidUpgradeTargetList = (output: any, context: __SerdeContext): Upgrad */ const de_VpcSecurityGroupMembership = (output: any, context: __SerdeContext): VpcSecurityGroupMembership => { const contents: any = {}; - if (output["VpcSecurityGroupId"] !== undefined) { - contents.VpcSecurityGroupId = __expectString(output["VpcSecurityGroupId"]); + if (output[_VSGIp] != null) { + contents[_VSGIp] = __expectString(output[_VSGIp]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -12824,6 +12595,395 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2014-10-31"; +const _A = "Action"; +const _AA = "ApplyAction"; +const _AAAD = "AutoAppliedAfterDate"; +const _AI = "ApplyImmediately"; +const _AM = "ApplyMethod"; +const _AMVU = "AutoMinorVersionUpgrade"; +const _AMVUl = "AllowMajorVersionUpgrade"; +const _AN = "AttributeName"; +const _APMA = "ApplyPendingMaintenanceAction"; +const _AR = "AssociatedRoles"; +const _ART = "AutomaticRestartTime"; +const _ARTDBC = "AddRoleToDBCluster"; +const _AS = "AllocatedStorage"; +const _ASITS = "AddSourceIdentifierToSubscription"; +const _AT = "ApplyType"; +const _ATTR = "AddTagsToResource"; +const _AU = "AutoUpgrade"; +const _AV = "AllowedValues"; +const _AVt = "AttributeValues"; +const _AVtt = "AttributeValue"; +const _AZ = "AvailabilityZones"; +const _AZv = "AvailabilityZone"; +const _Ad = "Address"; +const _BRP = "BackupRetentionPeriod"; +const _CAC = "CrossAccountClone"; +const _CACI = "CACertificateIdentifier"; +const _CAD = "CurrentApplyDate"; +const _CAI = "CustomerAwsId"; +const _CCT = "ClusterCreateTime"; +const _CDBC = "CreateDBCluster"; +const _CDBCE = "CreateDBClusterEndpoint"; +const _CDBCPG = "CopyDBClusterParameterGroup"; +const _CDBCPGr = "CreateDBClusterParameterGroup"; +const _CDBCS = "CopyDBClusterSnapshot"; +const _CDBCSr = "CreateDBClusterSnapshot"; +const _CDBI = "CreateDBInstance"; +const _CDBPG = "CopyDBParameterGroup"; +const _CDBPGr = "CreateDBParameterGroup"; +const _CDBSG = "CreateDBSubnetGroup"; +const _CES = "CreateEventSubscription"; +const _CET = "CustomEndpointType"; +const _CGC = "CreateGlobalCluster"; +const _CGI = "CloneGroupId"; +const _CLEC = "CloudwatchLogsExportConfiguration"; +const _CS = "CharacterSet"; +const _CSD = "CharacterSetDescription"; +const _CSI = "CustSubscriptionId"; +const _CSN = "CharacterSetName"; +const _CT = "CopyTags"; +const _CTTS = "CopyTagsToSnapshot"; +const _D = "Description"; +const _DBC = "DBCluster"; +const _DBCA = "DBClusterArn"; +const _DBCE = "DBClusterEndpoints"; +const _DBCEA = "DBClusterEndpointArn"; +const _DBCEI = "DBClusterEndpointIdentifier"; +const _DBCEL = "DBClusterEndpointList"; +const _DBCERI = "DBClusterEndpointResourceIdentifier"; +const _DBCI = "DBClusterIdentifier"; +const _DBCM = "DBClusterMembers"; +const _DBCMl = "DBClusterMember"; +const _DBCOG = "DBClusterOptionGroup"; +const _DBCOGM = "DBClusterOptionGroupMemberships"; +const _DBCOGN = "DBClusterOptionGroupName"; +const _DBCPG = "DBClusterParameterGroup"; +const _DBCPGA = "DBClusterParameterGroupArn"; +const _DBCPGN = "DBClusterParameterGroupName"; +const _DBCPGS = "DBClusterParameterGroupStatus"; +const _DBCPGl = "DBClusterParameterGroups"; +const _DBCR = "DBClusterRole"; +const _DBCS = "DBClusterSnapshot"; +const _DBCSA = "DBClusterSnapshotArn"; +const _DBCSAR = "DBClusterSnapshotAttributesResult"; +const _DBCSAl = "DBClusterSnapshotAttributes"; +const _DBCSAlu = "DBClusterSnapshotAttribute"; +const _DBCSI = "DBClusterSnapshotIdentifier"; +const _DBCSl = "DBClusterSnapshots"; +const _DBCl = "DBClusters"; +const _DBED = "DBEngineDescription"; +const _DBEV = "DBEngineVersions"; +const _DBEVD = "DBEngineVersionDescription"; +const _DBEVn = "DBEngineVersion"; +const _DBI = "DBInstance"; +const _DBIA = "DBInstanceArn"; +const _DBIC = "DBInstanceClass"; +const _DBII = "DBInstanceIdentifier"; +const _DBIPGN = "DBInstanceParameterGroupName"; +const _DBIS = "DBInstanceStatus"; +const _DBISI = "DBInstanceStatusInfo"; +const _DBIn = "DBInstances"; +const _DBN = "DBName"; +const _DBPG = "DBParameterGroup"; +const _DBPGA = "DBParameterGroupArn"; +const _DBPGF = "DBParameterGroupFamily"; +const _DBPGN = "DBParameterGroupName"; +const _DBPGa = "DBParameterGroups"; +const _DBPN = "DBPortNumber"; +const _DBSG = "DBSecurityGroups"; +const _DBSGA = "DBSubnetGroupArn"; +const _DBSGD = "DBSubnetGroupDescription"; +const _DBSGN = "DBSubnetGroupName"; +const _DBSGNe = "DBSecurityGroupName"; +const _DBSGe = "DBSecurityGroup"; +const _DBSGu = "DBSubnetGroup"; +const _DBSGub = "DBSubnetGroups"; +const _DCI = "DbClusterIdentifier"; +const _DCRI = "DbClusterResourceId"; +const _DCS = "DefaultCharacterSet"; +const _DDBC = "DeleteDBCluster"; +const _DDBCE = "DeleteDBClusterEndpoint"; +const _DDBCEe = "DescribeDBClusterEndpoints"; +const _DDBCP = "DescribeDBClusterParameters"; +const _DDBCPG = "DeleteDBClusterParameterGroup"; +const _DDBCPGe = "DescribeDBClusterParameterGroups"; +const _DDBCS = "DeleteDBClusterSnapshot"; +const _DDBCSA = "DescribeDBClusterSnapshotAttributes"; +const _DDBCSe = "DescribeDBClusterSnapshots"; +const _DDBCe = "DescribeDBClusters"; +const _DDBEV = "DescribeDBEngineVersions"; +const _DDBI = "DeleteDBInstance"; +const _DDBIe = "DescribeDBInstances"; +const _DDBP = "DescribeDBParameters"; +const _DDBPG = "DeleteDBParameterGroup"; +const _DDBPGe = "DescribeDBParameterGroups"; +const _DDBSG = "DeleteDBSubnetGroup"; +const _DDBSGe = "DescribeDBSubnetGroups"; +const _DE = "DescribeEvents"; +const _DEC = "DescribeEventCategories"; +const _DEDCP = "DescribeEngineDefaultClusterParameters"; +const _DEDP = "DescribeEngineDefaultParameters"; +const _DES = "DeleteEventSubscription"; +const _DESe = "DescribeEventSubscriptions"; +const _DGC = "DeleteGlobalCluster"; +const _DGCe = "DescribeGlobalClusters"; +const _DIAMRN = "DomainIAMRoleName"; +const _DIP = "DbInstancePort"; +const _DLT = "DisableLogTypes"; +const _DM = "DomainMemberships"; +const _DMo = "DomainMembership"; +const _DN = "DatabaseName"; +const _DO = "DefaultOnly"; +const _DODBIO = "DescribeOrderableDBInstanceOptions"; +const _DP = "DeletionProtection"; +const _DPMA = "DescribePendingMaintenanceActions"; +const _DR = "DoubleRange"; +const _DRI = "DbiResourceId"; +const _DT = "DataType"; +const _DVDBIM = "DescribeValidDBInstanceModifications"; +const _Da = "Date"; +const _Do = "Domain"; +const _Du = "Duration"; +const _E = "Engine"; +const _EC = "EventCategories"; +const _ECL = "EventCategoriesList"; +const _ECLE = "EnableCloudwatchLogsExports"; +const _ECLEn = "EnabledCloudwatchLogsExports"; +const _ECM = "EventCategoriesMap"; +const _ECML = "EventCategoriesMapList"; +const _ECv = "EventCategory"; +const _ED = "EngineDefaults"; +const _EIAMDA = "EnableIAMDatabaseAuthentication"; +const _ELT = "EnableLogTypes"; +const _ELTx = "ExportableLogTypes"; +const _EM = "ExcludedMembers"; +const _EMRA = "EnhancedMonitoringResourceArn"; +const _EPI = "EnablePerformanceInsights"; +const _ERT = "EarliestRestorableTime"; +const _ES = "EventSubscription"; +const _ESA = "EventSubscriptionArn"; +const _ESL = "EventSubscriptionsList"; +const _ET = "EndpointType"; +const _ETn = "EndTime"; +const _EV = "EngineVersion"; +const _En = "Enabled"; +const _End = "Endpoint"; +const _Ev = "Events"; +const _Eve = "Event"; +const _F = "Filters"; +const _FAD = "ForcedApplyDate"; +const _FDBC = "FailoverDBCluster"; +const _FDBSI = "FinalDBSnapshotIdentifier"; +const _FF = "ForceFailover"; +const _FGC = "FailoverGlobalCluster"; +const _FN = "FeatureName"; +const _FQDN = "FQDN"; +const _Fr = "From"; +const _GC = "GlobalCluster"; +const _GCA = "GlobalClusterArn"; +const _GCI = "GlobalClusterIdentifier"; +const _GCM = "GlobalClusterMembers"; +const _GCMl = "GlobalClusterMember"; +const _GCRI = "GlobalClusterResourceId"; +const _GCl = "GlobalClusters"; +const _HZI = "HostedZoneId"; +const _I = "Iops"; +const _IAMDAE = "IAMDatabaseAuthenticationEnabled"; +const _IAMRN = "IAMRoleName"; +const _ICT = "InstanceCreateTime"; +const _ICW = "IsClusterWriter"; +const _IM = "IsModifiable"; +const _IMVU = "IsMajorVersionUpgrade"; +const _IOONAMT = "IOOptimizedNextAllowedModificationTime"; +const _IP = "IncludePublic"; +const _IS = "IncludeShared"; +const _ITSR = "IopsToStorageRatio"; +const _IW = "IsWriter"; +const _K = "Key"; +const _KKI = "KmsKeyId"; +const _LM = "LicenseModel"; +const _LRT = "LatestRestorableTime"; +const _LSCS = "ListSupportedCharacterSets"; +const _LST = "ListSupportedTimezones"; +const _LTFR = "ListTagsForResource"; +const _LTTD = "LogTypesToDisable"; +const _LTTE = "LogTypesToEnable"; +const _M = "Marker"; +const _MAZ = "MultiAZ"; +const _MAZC = "MultiAZCapable"; +const _MC = "MinCapacity"; +const _MCa = "MaxCapacity"; +const _MDBC = "ModifyDBCluster"; +const _MDBCE = "ModifyDBClusterEndpoint"; +const _MDBCPG = "ModifyDBClusterParameterGroup"; +const _MDBCSA = "ModifyDBClusterSnapshotAttribute"; +const _MDBI = "ModifyDBInstance"; +const _MDBPG = "ModifyDBParameterGroup"; +const _MDBSG = "ModifyDBSubnetGroup"; +const _MES = "ModifyEventSubscription"; +const _MEV = "MinimumEngineVersion"; +const _MGC = "ModifyGlobalCluster"; +const _MI = "MonitoringInterval"; +const _MIPDI = "MinIopsPerDbInstance"; +const _MIPDIa = "MaxIopsPerDbInstance"; +const _MIPG = "MinIopsPerGib"; +const _MIPGa = "MaxIopsPerGib"; +const _MR = "MaxRecords"; +const _MRA = "MonitoringRoleArn"; +const _MSS = "MinStorageSize"; +const _MSSa = "MaxStorageSize"; +const _MU = "MasterUsername"; +const _MUP = "MasterUserPassword"; +const _Me = "Message"; +const _N = "Name"; +const _NDBCI = "NewDBClusterIdentifier"; +const _NDBII = "NewDBInstanceIdentifier"; +const _NGCI = "NewGlobalClusterIdentifier"; +const _No = "Normal"; +const _ODBIO = "OrderableDBInstanceOptions"; +const _ODBIOr = "OrderableDBInstanceOption"; +const _OGM = "OptionGroupMemberships"; +const _OGMp = "OptionGroupMembership"; +const _OGN = "OptionGroupName"; +const _OIS = "OptInStatus"; +const _OIT = "OptInType"; +const _P = "Port"; +const _PA = "PubliclyAccessible"; +const _PAS = "ParameterApplyStatus"; +const _PBW = "PreferredBackupWindow"; +const _PCLE = "PendingCloudwatchLogsExports"; +const _PI = "ProvisionedIops"; +const _PIE = "PerformanceInsightsEnabled"; +const _PIKMSKI = "PerformanceInsightsKMSKeyId"; +const _PMA = "PendingMaintenanceActions"; +const _PMAD = "PendingMaintenanceActionDetails"; +const _PMAe = "PendingMaintenanceAction"; +const _PMV = "PendingModifiedValues"; +const _PMW = "PreferredMaintenanceWindow"; +const _PN = "ParameterName"; +const _PP = "PercentProgress"; +const _PRRDBC = "PromoteReadReplicaDBCluster"; +const _PSU = "PreSignedUrl"; +const _PT = "PromotionTier"; +const _PV = "ParameterValue"; +const _Pa = "Parameters"; +const _Par = "Parameter"; +const _R = "Readers"; +const _RA = "RoleArn"; +const _RAP = "ResetAllParameters"; +const _RDBCFS = "RestoreDBClusterFromSnapshot"; +const _RDBCPG = "ResetDBClusterParameterGroup"; +const _RDBCTPIT = "RestoreDBClusterToPointInTime"; +const _RDBI = "RebootDBInstance"; +const _RDBPG = "ResetDBParameterGroup"; +const _RE = "ReaderEndpoint"; +const _RFGC = "RemoveFromGlobalCluster"; +const _RI = "ResourceIdentifier"; +const _RN = "ResourceName"; +const _RPMA = "ResourcePendingMaintenanceActions"; +const _RRC = "ReadReplicaCapable"; +const _RRDBCI = "ReadReplicaDBClusterIdentifiers"; +const _RRDBCIe = "ReadReplicaDBClusterIdentifier"; +const _RRDBII = "ReadReplicaDBInstanceIdentifiers"; +const _RRDBIIe = "ReadReplicaDBInstanceIdentifier"; +const _RRFDBC = "RemoveRoleFromDBCluster"; +const _RRI = "ReadReplicaIdentifiers"; +const _RRIe = "ReadReplicaIdentifier"; +const _RRSDBII = "ReadReplicaSourceDBInstanceIdentifier"; +const _RSI = "ReplicationSourceIdentifier"; +const _RSIFS = "RemoveSourceIdentifierFromSubscription"; +const _RT = "RestoreType"; +const _RTFR = "RemoveTagsFromResource"; +const _RTT = "RestoreToTime"; +const _Ra = "Range"; +const _S = "Source"; +const _SA = "SourceArn"; +const _SAZ = "SecondaryAvailabilityZone"; +const _SAZu = "SubnetAvailabilityZone"; +const _SCS = "SupportedCharacterSets"; +const _SCT = "SnapshotCreateTime"; +const _SCTu = "SubscriptionCreationTime"; +const _SDBC = "StartDBCluster"; +const _SDBCI = "SourceDBClusterIdentifier"; +const _SDBCPGI = "SourceDBClusterParameterGroupIdentifier"; +const _SDBCSA = "SourceDBClusterSnapshotArn"; +const _SDBCSI = "SourceDBClusterSnapshotIdentifier"; +const _SDBCt = "StopDBCluster"; +const _SDBPGI = "SourceDBParameterGroupIdentifier"; +const _SE = "StorageEncrypted"; +const _SEM = "SupportsEnhancedMonitoring"; +const _SFS = "SkipFinalSnapshot"; +const _SGD = "SupportsGlobalDatabases"; +const _SGS = "SubnetGroupStatus"; +const _SI = "SourceIdentifier"; +const _SIAMDA = "SupportsIAMDatabaseAuthentication"; +const _SIL = "SourceIdsList"; +const _SIn = "SnapshotIdentifier"; +const _SIo = "SourceIds"; +const _SIou = "SourceId"; +const _SIt = "StatusInfos"; +const _SIu = "SubnetIds"; +const _SIub = "SubnetIdentifier"; +const _SIup = "SupportsIops"; +const _SLETCL = "SupportsLogExportsToCloudwatchLogs"; +const _SM = "StaticMembers"; +const _SN = "SubscriptionName"; +const _SPI = "SupportsPerformanceInsights"; +const _SRR = "SupportsReadReplica"; +const _SS = "SubnetStatus"; +const _SSE = "SupportsStorageEncryption"; +const _SSt = "StorageSize"; +const _ST = "StorageType"; +const _STA = "SnsTopicArn"; +const _STn = "SnapshotType"; +const _STo = "SourceType"; +const _STt = "StartTime"; +const _STta = "StatusType"; +const _STu = "SupportedTimezones"; +const _SVSC = "ServerlessV2ScalingConfiguration"; +const _St = "Status"; +const _Ste = "Step"; +const _Sto = "Storage"; +const _Su = "Subnets"; +const _Sub = "Subnet"; +const _T = "Tags"; +const _TCA = "TdeCredentialArn"; +const _TCP = "TdeCredentialPassword"; +const _TDBCPGD = "TargetDBClusterParameterGroupDescription"; +const _TDBCPGI = "TargetDBClusterParameterGroupIdentifier"; +const _TDBCSI = "TargetDBClusterSnapshotIdentifier"; +const _TDBII = "TargetDBInstanceIdentifier"; +const _TDBPGD = "TargetDBParameterGroupDescription"; +const _TDBPGI = "TargetDBParameterGroupIdentifier"; +const _TDCI = "TargetDbClusterIdentifier"; +const _TK = "TagKeys"; +const _TL = "TagList"; +const _TN = "TimezoneName"; +const _Ta = "Tag"; +const _Ti = "Timezone"; +const _To = "To"; +const _ULRT = "UseLatestRestorableTime"; +const _UT = "UpgradeTarget"; +const _V = "Version"; +const _VDBIMM = "ValidDBInstanceModificationsMessage"; +const _VI = "VpcId"; +const _VSG = "VpcSecurityGroups"; +const _VSGI = "VpcSecurityGroupIds"; +const _VSGIp = "VpcSecurityGroupId"; +const _VSGM = "VpcSecurityGroupMembership"; +const _VSO = "ValidStorageOptions"; +const _VTA = "ValuesToAdd"; +const _VTR = "ValuesToRemove"; +const _VUT = "ValidUpgradeTarget"; +const _Va = "Values"; +const _Val = "Value"; +const _Vp = "Vpc"; +const _m = "message"; +const _me = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-neptunedata/package.json b/clients/client-neptunedata/package.json index f7ebc619e810..5a75b7f2a5f1 100644 --- a/clients/client-neptunedata/package.json +++ b/clients/client-neptunedata/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-neptunedata/src/models/models_0.ts b/clients/client-neptunedata/src/models/models_0.ts index bb0d52e42f60..7f873bf38456 100644 --- a/clients/client-neptunedata/src/models/models_0.ts +++ b/clients/client-neptunedata/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { NeptunedataServiceException as __BaseException } from "./NeptunedataServiceException"; diff --git a/clients/client-neptunedata/src/protocols/Aws_restJson1.ts b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts index a237fdd363e1..8a0a4385ec3a 100644 --- a/clients/client-neptunedata/src/protocols/Aws_restJson1.ts +++ b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -210,21 +211,13 @@ export const se_CancelGremlinQueryCommand = async ( input: CancelGremlinQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/status/{queryId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + b.bp("/gremlin/status/{queryId}"); + b.p("queryId", () => input.queryId!, "{queryId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -234,20 +227,13 @@ export const se_CancelLoaderJobCommand = async ( input: CancelLoaderJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader/{loadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "loadId", () => input.loadId!, "{loadId}", false); + b.bp("/loader/{loadId}"); + b.p("loadId", () => input.loadId!, "{loadId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -257,25 +243,17 @@ export const se_CancelMLDataProcessingJobCommand = async ( input: CancelMLDataProcessingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/dataprocessing/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], - clean: [() => input.clean !== void 0, () => input.clean!.toString()], + [_nIRA]: [, input[_nIRA]!], + [_c]: [() => input.clean !== void 0, () => input[_c]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -285,25 +263,17 @@ export const se_CancelMLModelTrainingJobCommand = async ( input: CancelMLModelTrainingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/modeltraining/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], - clean: [() => input.clean !== void 0, () => input.clean!.toString()], + [_nIRA]: [, input[_nIRA]!], + [_c]: [() => input.clean !== void 0, () => input[_c]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -313,25 +283,17 @@ export const se_CancelMLModelTransformJobCommand = async ( input: CancelMLModelTransformJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/modeltransform/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], - clean: [() => input.clean !== void 0, () => input.clean!.toString()], + [_nIRA]: [, input[_nIRA]!], + [_c]: [() => input.clean !== void 0, () => input[_c]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -341,25 +303,16 @@ export const se_CancelOpenCypherQueryCommand = async ( input: CancelOpenCypherQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/status/{queryId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + b.bp("/opencypher/status/{queryId}"); + b.p("queryId", () => input.queryId!, "{queryId}", false); const query: any = map({ - silent: [() => input.silent !== void 0, () => input.silent!.toString()], + [_s]: [() => input.silent !== void 0, () => input[_s]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -369,11 +322,11 @@ export const se_CreateMLEndpointCommand = async ( input: CreateMLEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints"; + b.bp("/ml/endpoints"); let body: any; body = JSON.stringify( take(input, { @@ -388,15 +341,8 @@ export const se_CreateMLEndpointCommand = async ( volumeEncryptionKMSKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -406,25 +352,17 @@ export const se_DeleteMLEndpointCommand = async ( input: DeleteMLEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/endpoints/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], - clean: [() => input.clean !== void 0, () => input.clean!.toString()], + [_nIRA]: [, input[_nIRA]!], + [_c]: [() => input.clean !== void 0, () => input[_c]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -434,23 +372,15 @@ export const se_DeletePropertygraphStatisticsCommand = async ( input: DeletePropertygraphStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics"; + b.bp("/propertygraph/statistics"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -460,22 +390,15 @@ export const se_DeleteSparqlStatisticsCommand = async ( input: DeleteSparqlStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/statistics"; + b.bp("/sparql/statistics"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -485,11 +408,11 @@ export const se_ExecuteFastResetCommand = async ( input: ExecuteFastResetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/system"; + b.bp("/system"); let body: any; body = JSON.stringify( take(input, { @@ -497,15 +420,8 @@ export const se_ExecuteFastResetCommand = async ( token: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -515,26 +431,19 @@ export const se_ExecuteGremlinExplainQueryCommand = async ( input: ExecuteGremlinExplainQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/explain"; + b.bp("/gremlin/explain"); let body: any; body = JSON.stringify( take(input, { gremlin: [, , `gremlinQuery`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -544,11 +453,11 @@ export const se_ExecuteGremlinProfileQueryCommand = async ( input: ExecuteGremlinProfileQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/profile"; + b.bp("/gremlin/profile"); let body: any; body = JSON.stringify( take(input, { @@ -559,15 +468,8 @@ export const se_ExecuteGremlinProfileQueryCommand = async ( "profile.serializer": [, , `serializer`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -577,27 +479,20 @@ export const se_ExecuteGremlinQueryCommand = async ( input: ExecuteGremlinQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - accept: input.serializer!, + [_a]: input[_se]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin"; + b.bp("/gremlin"); let body: any; body = JSON.stringify( take(input, { gremlin: [, , `gremlinQuery`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -607,11 +502,11 @@ export const se_ExecuteOpenCypherExplainQueryCommand = async ( input: ExecuteOpenCypherExplainQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/explain"; + b.bp("/opencypher/explain"); let body: any; body = JSON.stringify( take(input, { @@ -620,15 +515,8 @@ export const se_ExecuteOpenCypherExplainQueryCommand = async ( parameters: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -638,11 +526,11 @@ export const se_ExecuteOpenCypherQueryCommand = async ( input: ExecuteOpenCypherQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher"; + b.bp("/opencypher"); let body: any; body = JSON.stringify( take(input, { @@ -650,15 +538,8 @@ export const se_ExecuteOpenCypherQueryCommand = async ( parameters: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -668,22 +549,15 @@ export const se_GetEngineStatusCommand = async ( input: GetEngineStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/status"; + b.bp("/status"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -693,21 +567,13 @@ export const se_GetGremlinQueryStatusCommand = async ( input: GetGremlinQueryStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/status/{queryId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + b.bp("/gremlin/status/{queryId}"); + b.p("queryId", () => input.queryId!, "{queryId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -717,27 +583,19 @@ export const se_GetLoaderJobStatusCommand = async ( input: GetLoaderJobStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader/{loadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "loadId", () => input.loadId!, "{loadId}", false); + b.bp("/loader/{loadId}"); + b.p("loadId", () => input.loadId!, "{loadId}", false); const query: any = map({ - details: [() => input.details !== void 0, () => input.details!.toString()], - errors: [() => input.errors !== void 0, () => input.errors!.toString()], - page: [() => input.page !== void 0, () => input.page!.toString()], - errorsPerPage: [() => input.errorsPerPage !== void 0, () => input.errorsPerPage!.toString()], + [_d]: [() => input.details !== void 0, () => input[_d]!.toString()], + [_e]: [() => input.errors !== void 0, () => input[_e]!.toString()], + [_p]: [() => input.page !== void 0, () => input[_p]!.toString()], + [_ePP]: [() => input.errorsPerPage !== void 0, () => input[_ePP]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -747,24 +605,16 @@ export const se_GetMLDataProcessingJobCommand = async ( input: GetMLDataProcessingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/dataprocessing/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -774,24 +624,16 @@ export const se_GetMLEndpointCommand = async ( input: GetMLEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/endpoints/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -801,24 +643,16 @@ export const se_GetMLModelTrainingJobCommand = async ( input: GetMLModelTrainingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/modeltraining/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -828,24 +662,16 @@ export const se_GetMLModelTransformJobCommand = async ( input: GetMLModelTransformJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/ml/modeltransform/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -855,21 +681,13 @@ export const se_GetOpenCypherQueryStatusCommand = async ( input: GetOpenCypherQueryStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/status/{queryId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + b.bp("/opencypher/status/{queryId}"); + b.p("queryId", () => input.queryId!, "{queryId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -879,23 +697,15 @@ export const se_GetPropertygraphStatisticsCommand = async ( input: GetPropertygraphStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics"; + b.bp("/propertygraph/statistics"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -905,28 +715,20 @@ export const se_GetPropertygraphStreamCommand = async ( input: GetPropertygraphStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "accept-encoding": input.encoding!, + [_ae]: input[_en]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/stream"; + b.bp("/propertygraph/stream"); const query: any = map({ - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - iteratorType: [, input.iteratorType!], - commitNum: [() => input.commitNum !== void 0, () => input.commitNum!.toString()], - opNum: [() => input.opNum !== void 0, () => input.opNum!.toString()], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_iT]: [, input[_iT]!], + [_cN]: [() => input.commitNum !== void 0, () => input[_cN]!.toString()], + [_oN]: [() => input.opNum !== void 0, () => input[_oN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -936,24 +738,15 @@ export const se_GetPropertygraphSummaryCommand = async ( input: GetPropertygraphSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics/summary"; + b.bp("/propertygraph/statistics/summary"); const query: any = map({ - mode: [, input.mode!], + [_m]: [, input[_m]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -963,24 +756,15 @@ export const se_GetRDFGraphSummaryCommand = async ( input: GetRDFGraphSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rdf/statistics/summary"; + b.bp("/rdf/statistics/summary"); const query: any = map({ - mode: [, input.mode!], + [_m]: [, input[_m]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -990,22 +774,15 @@ export const se_GetSparqlStatisticsCommand = async ( input: GetSparqlStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/statistics"; + b.bp("/sparql/statistics"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1015,28 +792,20 @@ export const se_GetSparqlStreamCommand = async ( input: GetSparqlStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "accept-encoding": input.encoding!, + [_ae]: input[_en]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/stream"; + b.bp("/sparql/stream"); const query: any = map({ - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - iteratorType: [, input.iteratorType!], - commitNum: [() => input.commitNum !== void 0, () => input.commitNum!.toString()], - opNum: [() => input.opNum !== void 0, () => input.opNum!.toString()], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_iT]: [, input[_iT]!], + [_cN]: [() => input.commitNum !== void 0, () => input[_cN]!.toString()], + [_oN]: [() => input.opNum !== void 0, () => input[_oN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1046,23 +815,15 @@ export const se_ListGremlinQueriesCommand = async ( input: ListGremlinQueriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/status"; + b.bp("/gremlin/status"); const query: any = map({ - includeWaiting: [() => input.includeWaiting !== void 0, () => input.includeWaiting!.toString()], + [_iW]: [() => input.includeWaiting !== void 0, () => input[_iW]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1072,24 +833,16 @@ export const se_ListLoaderJobsCommand = async ( input: ListLoaderJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader"; + b.bp("/loader"); const query: any = map({ - limit: [() => input.limit !== void 0, () => input.limit!.toString()], - includeQueuedLoads: [() => input.includeQueuedLoads !== void 0, () => input.includeQueuedLoads!.toString()], + [_l]: [() => input.limit !== void 0, () => input[_l]!.toString()], + [_iQL]: [() => input.includeQueuedLoads !== void 0, () => input[_iQL]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1099,24 +852,16 @@ export const se_ListMLDataProcessingJobsCommand = async ( input: ListMLDataProcessingJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing"; + b.bp("/ml/dataprocessing"); const query: any = map({ - maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_mI]: [() => input.maxItems !== void 0, () => input[_mI]!.toString()], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1126,24 +871,16 @@ export const se_ListMLEndpointsCommand = async ( input: ListMLEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints"; + b.bp("/ml/endpoints"); const query: any = map({ - maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_mI]: [() => input.maxItems !== void 0, () => input[_mI]!.toString()], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1153,24 +890,16 @@ export const se_ListMLModelTrainingJobsCommand = async ( input: ListMLModelTrainingJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining"; + b.bp("/ml/modeltraining"); const query: any = map({ - maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_mI]: [() => input.maxItems !== void 0, () => input[_mI]!.toString()], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1180,24 +909,16 @@ export const se_ListMLModelTransformJobsCommand = async ( input: ListMLModelTransformJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform"; + b.bp("/ml/modeltransform"); const query: any = map({ - maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], - neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + [_mI]: [() => input.maxItems !== void 0, () => input[_mI]!.toString()], + [_nIRA]: [, input[_nIRA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1207,23 +928,15 @@ export const se_ListOpenCypherQueriesCommand = async ( input: ListOpenCypherQueriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/status"; + b.bp("/opencypher/status"); const query: any = map({ - includeWaiting: [() => input.includeWaiting !== void 0, () => input.includeWaiting!.toString()], + [_iW]: [() => input.includeWaiting !== void 0, () => input[_iW]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1233,27 +946,19 @@ export const se_ManagePropertygraphStatisticsCommand = async ( input: ManagePropertygraphStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics"; + b.bp("/propertygraph/statistics"); let body: any; body = JSON.stringify( take(input, { mode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1263,26 +968,19 @@ export const se_ManageSparqlStatisticsCommand = async ( input: ManageSparqlStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/statistics"; + b.bp("/sparql/statistics"); let body: any; body = JSON.stringify( take(input, { mode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1292,11 +990,11 @@ export const se_StartLoaderJobCommand = async ( input: StartLoaderJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader"; + b.bp("/loader"); let body: any; body = JSON.stringify( take(input, { @@ -1314,15 +1012,8 @@ export const se_StartLoaderJobCommand = async ( userProvidedEdgeIds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1332,11 +1023,11 @@ export const se_StartMLDataProcessingJobCommand = async ( input: StartMLDataProcessingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing"; + b.bp("/ml/dataprocessing"); let body: any; body = JSON.stringify( take(input, { @@ -1357,15 +1048,8 @@ export const se_StartMLDataProcessingJobCommand = async ( volumeEncryptionKMSKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1375,11 +1059,11 @@ export const se_StartMLModelTrainingJobCommand = async ( input: StartMLModelTrainingJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining"; + b.bp("/ml/modeltraining"); let body: any; body = JSON.stringify( take(input, { @@ -1403,15 +1087,8 @@ export const se_StartMLModelTrainingJobCommand = async ( volumeEncryptionKMSKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1421,11 +1098,11 @@ export const se_StartMLModelTransformJobCommand = async ( input: StartMLModelTransformJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform"; + b.bp("/ml/modeltransform"); let body: any; body = JSON.stringify( take(input, { @@ -1445,15 +1122,8 @@ export const se_StartMLModelTransformJobCommand = async ( volumeEncryptionKMSKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6136,6 +5806,26 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "accept"; +const _ae = "accept-encoding"; +const _c = "clean"; +const _cN = "commitNum"; +const _d = "details"; +const _e = "errors"; +const _ePP = "errorsPerPage"; +const _en = "encoding"; +const _iQL = "includeQueuedLoads"; +const _iT = "iteratorType"; +const _iW = "includeWaiting"; +const _l = "limit"; +const _m = "mode"; +const _mI = "maxItems"; +const _nIRA = "neptuneIamRoleArn"; +const _oN = "opNum"; +const _p = "page"; +const _s = "silent"; +const _se = "serializer"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-networkmanager/package.json b/clients/client-networkmanager/package.json index 4f71c9b7c3e9..cc1c865bee87 100644 --- a/clients/client-networkmanager/package.json +++ b/clients/client-networkmanager/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts index 3c3e9372c808..9cc2a1c46ee7 100644 --- a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -296,28 +297,13 @@ export const se_AcceptAttachmentCommand = async ( input: AcceptAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}/accept"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/attachments/{AttachmentId}/accept"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -327,21 +313,12 @@ export const se_AssociateConnectPeerCommand = async ( input: AssociateConnectPeerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/connect-peer-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -350,15 +327,8 @@ export const se_AssociateConnectPeerCommand = async ( LinkId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -368,21 +338,12 @@ export const se_AssociateCustomerGatewayCommand = async ( input: AssociateCustomerGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/customer-gateway-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -391,15 +352,8 @@ export const se_AssociateCustomerGatewayCommand = async ( LinkId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -409,21 +363,12 @@ export const se_AssociateLinkCommand = async ( input: AssociateLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/link-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/link-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -431,15 +376,8 @@ export const se_AssociateLinkCommand = async ( LinkId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -449,21 +387,12 @@ export const se_AssociateTransitGatewayConnectPeerCommand = async ( input: AssociateTransitGatewayConnectPeerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -472,15 +401,8 @@ export const se_AssociateTransitGatewayConnectPeerCommand = async ( TransitGatewayConnectPeerArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -490,11 +412,11 @@ export const se_CreateConnectAttachmentCommand = async ( input: CreateConnectAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-attachments"; + b.bp("/connect-attachments"); let body: any; body = JSON.stringify( take(input, { @@ -506,15 +428,8 @@ export const se_CreateConnectAttachmentCommand = async ( TransportAttachmentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -524,21 +439,12 @@ export const se_CreateConnectionCommand = async ( input: CreateConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/connections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/connections"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -550,15 +456,8 @@ export const se_CreateConnectionCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -568,11 +467,11 @@ export const se_CreateConnectPeerCommand = async ( input: CreateConnectPeerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers"; + b.bp("/connect-peers"); let body: any; body = JSON.stringify( take(input, { @@ -586,15 +485,8 @@ export const se_CreateConnectPeerCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -604,11 +496,11 @@ export const se_CreateCoreNetworkCommand = async ( input: CreateCoreNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks"; + b.bp("/core-networks"); let body: any; body = JSON.stringify( take(input, { @@ -619,15 +511,8 @@ export const se_CreateCoreNetworkCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -637,21 +522,12 @@ export const se_CreateDeviceCommand = async ( input: CreateDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/devices"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/devices"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -666,15 +542,8 @@ export const se_CreateDeviceCommand = async ( Vendor: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -684,11 +553,11 @@ export const se_CreateGlobalNetworkCommand = async ( input: CreateGlobalNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks"; + b.bp("/global-networks"); let body: any; body = JSON.stringify( take(input, { @@ -696,15 +565,8 @@ export const se_CreateGlobalNetworkCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -714,20 +576,12 @@ export const se_CreateLinkCommand = async ( input: CreateLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/links"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/links"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -739,15 +593,8 @@ export const se_CreateLinkCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -757,20 +604,12 @@ export const se_CreateSiteCommand = async ( input: CreateSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/sites"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/sites"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -779,15 +618,8 @@ export const se_CreateSiteCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -797,12 +629,11 @@ export const se_CreateSiteToSiteVpnAttachmentCommand = async ( input: CreateSiteToSiteVpnAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/site-to-site-vpn-attachments"; + b.bp("/site-to-site-vpn-attachments"); let body: any; body = JSON.stringify( take(input, { @@ -812,15 +643,8 @@ export const se_CreateSiteToSiteVpnAttachmentCommand = async ( VpnConnectionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -830,12 +654,11 @@ export const se_CreateTransitGatewayPeeringCommand = async ( input: CreateTransitGatewayPeeringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings"; + b.bp("/transit-gateway-peerings"); let body: any; body = JSON.stringify( take(input, { @@ -845,15 +668,8 @@ export const se_CreateTransitGatewayPeeringCommand = async ( TransitGatewayArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -863,12 +679,11 @@ export const se_CreateTransitGatewayRouteTableAttachmentCommand = async ( input: CreateTransitGatewayRouteTableAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-route-table-attachments"; + b.bp("/transit-gateway-route-table-attachments"); let body: any; body = JSON.stringify( take(input, { @@ -878,15 +693,8 @@ export const se_CreateTransitGatewayRouteTableAttachmentCommand = async ( TransitGatewayRouteTableArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -896,11 +704,11 @@ export const se_CreateVpcAttachmentCommand = async ( input: CreateVpcAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments"; + b.bp("/vpc-attachments"); let body: any; body = JSON.stringify( take(input, { @@ -912,15 +720,8 @@ export const se_CreateVpcAttachmentCommand = async ( VpcArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -930,28 +731,13 @@ export const se_DeleteAttachmentCommand = async ( input: DeleteAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/attachments/{AttachmentId}"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -961,37 +747,14 @@ export const se_DeleteConnectionCommand = async ( input: DeleteConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/connections/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/connections/{ConnectionId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1001,28 +764,13 @@ export const se_DeleteConnectPeerCommand = async ( input: DeleteConnectPeerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers/{ConnectPeerId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectPeerId", - () => input.ConnectPeerId!, - "{ConnectPeerId}", - false - ); + b.bp("/connect-peers/{ConnectPeerId}"); + b.p("ConnectPeerId", () => input.ConnectPeerId!, "{ConnectPeerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1032,28 +780,13 @@ export const se_DeleteCoreNetworkCommand = async ( input: DeleteCoreNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1063,37 +796,14 @@ export const se_DeleteCoreNetworkPolicyVersionCommand = async ( input: DeleteCoreNetworkPolicyVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PolicyVersionId", - () => input.PolicyVersionId!.toString(), - "{PolicyVersionId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); + b.p("PolicyVersionId", () => input.PolicyVersionId!.toString(), "{PolicyVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1103,30 +813,14 @@ export const se_DeleteDeviceCommand = async ( input: DeleteDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/devices/{DeviceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/global-networks/{GlobalNetworkId}/devices/{DeviceId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1136,28 +830,13 @@ export const se_DeleteGlobalNetworkCommand = async ( input: DeleteGlobalNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1167,30 +846,14 @@ export const se_DeleteLinkCommand = async ( input: DeleteLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/links/{LinkId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "LinkId", () => input.LinkId!, "{LinkId}", false); + b.bp("/global-networks/{GlobalNetworkId}/links/{LinkId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("LinkId", () => input.LinkId!, "{LinkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1200,20 +863,13 @@ export const se_DeletePeeringCommand = async ( input: DeletePeeringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/peerings/{PeeringId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PeeringId", () => input.PeeringId!, "{PeeringId}", false); + b.bp("/peerings/{PeeringId}"); + b.p("PeeringId", () => input.PeeringId!, "{PeeringId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1223,21 +879,13 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resource-policy/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1247,30 +895,14 @@ export const se_DeleteSiteCommand = async ( input: DeleteSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/sites/{SiteId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/global-networks/{GlobalNetworkId}/sites/{SiteId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1280,37 +912,14 @@ export const se_DeregisterTransitGatewayCommand = async ( input: DeregisterTransitGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/transit-gateway-registrations/{TransitGatewayArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TransitGatewayArn", - () => input.TransitGatewayArn!, - "{TransitGatewayArn}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations/{TransitGatewayArn}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("TransitGatewayArn", () => input.TransitGatewayArn!, "{TransitGatewayArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1320,28 +929,17 @@ export const se_DescribeGlobalNetworksCommand = async ( input: DescribeGlobalNetworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks"; + b.bp("/global-networks"); const query: any = map({ - globalNetworkIds: [ - () => input.GlobalNetworkIds !== void 0, - () => (input.GlobalNetworkIds! || []).map((_entry) => _entry as any), - ], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_gNI]: [() => input.GlobalNetworkIds !== void 0, () => (input[_GNI]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1351,37 +949,14 @@ export const se_DisassociateConnectPeerCommand = async ( input: DisassociateConnectPeerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/connect-peer-associations/{ConnectPeerId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectPeerId", - () => input.ConnectPeerId!, - "{ConnectPeerId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations/{ConnectPeerId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("ConnectPeerId", () => input.ConnectPeerId!, "{ConnectPeerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1391,37 +966,14 @@ export const se_DisassociateCustomerGatewayCommand = async ( input: DisassociateCustomerGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/customer-gateway-associations/{CustomerGatewayArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CustomerGatewayArn", - () => input.CustomerGatewayArn!, - "{CustomerGatewayArn}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations/{CustomerGatewayArn}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("CustomerGatewayArn", () => input.CustomerGatewayArn!, "{CustomerGatewayArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1431,34 +983,17 @@ export const se_DisassociateLinkCommand = async ( input: DisassociateLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/link-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/link-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - deviceId: [, __expectNonNull(input.DeviceId!, `DeviceId`)], - linkId: [, __expectNonNull(input.LinkId!, `LinkId`)], + [_dI]: [, __expectNonNull(input[_DI]!, `DeviceId`)], + [_lI]: [, __expectNonNull(input[_LI]!, `LinkId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1468,37 +1003,19 @@ export const se_DisassociateTransitGatewayConnectPeerCommand = async ( input: DisassociateTransitGatewayConnectPeerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations/{TransitGatewayConnectPeerArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations/{TransitGatewayConnectPeerArn}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p( "TransitGatewayConnectPeerArn", () => input.TransitGatewayConnectPeerArn!, "{TransitGatewayConnectPeerArn}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1508,37 +1025,14 @@ export const se_ExecuteCoreNetworkChangeSetCommand = async ( input: ExecuteCoreNetworkChangeSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}/execute"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PolicyVersionId", - () => input.PolicyVersionId!.toString(), - "{PolicyVersionId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}/execute"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); + b.p("PolicyVersionId", () => input.PolicyVersionId!.toString(), "{PolicyVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1548,28 +1042,13 @@ export const se_GetConnectAttachmentCommand = async ( input: GetConnectAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-attachments/{AttachmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/connect-attachments/{AttachmentId}"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1579,39 +1058,19 @@ export const se_GetConnectionsCommand = async ( input: GetConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/connections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/connections"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - connectionIds: [ - () => input.ConnectionIds !== void 0, - () => (input.ConnectionIds! || []).map((_entry) => _entry as any), - ], - deviceId: [, input.DeviceId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cI]: [() => input.ConnectionIds !== void 0, () => (input[_CI]! || []).map((_entry) => _entry as any)], + [_dI]: [, input[_DI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1621,28 +1080,13 @@ export const se_GetConnectPeerCommand = async ( input: GetConnectPeerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers/{ConnectPeerId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectPeerId", - () => input.ConnectPeerId!, - "{ConnectPeerId}", - false - ); + b.bp("/connect-peers/{ConnectPeerId}"); + b.p("ConnectPeerId", () => input.ConnectPeerId!, "{ConnectPeerId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1652,38 +1096,18 @@ export const se_GetConnectPeerAssociationsCommand = async ( input: GetConnectPeerAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/connect-peer-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - connectPeerIds: [ - () => input.ConnectPeerIds !== void 0, - () => (input.ConnectPeerIds! || []).map((_entry) => _entry as any), - ], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cPI]: [() => input.ConnectPeerIds !== void 0, () => (input[_CPI]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1693,28 +1117,13 @@ export const se_GetCoreNetworkCommand = async ( input: GetCoreNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1724,42 +1133,18 @@ export const se_GetCoreNetworkChangeEventsCommand = async ( input: GetCoreNetworkChangeEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-change-events/{PolicyVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PolicyVersionId", - () => input.PolicyVersionId!.toString(), - "{PolicyVersionId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-change-events/{PolicyVersionId}"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); + b.p("PolicyVersionId", () => input.PolicyVersionId!.toString(), "{PolicyVersionId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1769,42 +1154,18 @@ export const se_GetCoreNetworkChangeSetCommand = async ( input: GetCoreNetworkChangeSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PolicyVersionId", - () => input.PolicyVersionId!.toString(), - "{PolicyVersionId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); + b.p("PolicyVersionId", () => input.PolicyVersionId!.toString(), "{PolicyVersionId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1814,34 +1175,17 @@ export const se_GetCoreNetworkPolicyCommand = async ( input: GetCoreNetworkPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-policy"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); const query: any = map({ - policyVersionId: [() => input.PolicyVersionId !== void 0, () => input.PolicyVersionId!.toString()], - alias: [, input.Alias!], + [_pVI]: [() => input.PolicyVersionId !== void 0, () => input[_PVI]!.toString()], + [_a]: [, input[_A]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1851,38 +1195,18 @@ export const se_GetCustomerGatewayAssociationsCommand = async ( input: GetCustomerGatewayAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/customer-gateway-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - customerGatewayArns: [ - () => input.CustomerGatewayArns !== void 0, - () => (input.CustomerGatewayArns! || []).map((_entry) => _entry as any), - ], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cGA]: [() => input.CustomerGatewayArns !== void 0, () => (input[_CGA]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1892,36 +1216,19 @@ export const se_GetDevicesCommand = async ( input: GetDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/devices"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/devices"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - deviceIds: [() => input.DeviceIds !== void 0, () => (input.DeviceIds! || []).map((_entry) => _entry as any)], - siteId: [, input.SiteId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_dIe]: [() => input.DeviceIds !== void 0, () => (input[_DIe]! || []).map((_entry) => _entry as any)], + [_sI]: [, input[_SI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1931,36 +1238,19 @@ export const se_GetLinkAssociationsCommand = async ( input: GetLinkAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/link-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/link-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - deviceId: [, input.DeviceId!], - linkId: [, input.LinkId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_dI]: [, input[_DI]!], + [_lI]: [, input[_LI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1970,37 +1260,21 @@ export const se_GetLinksCommand = async ( input: GetLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/links"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/links"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - linkIds: [() => input.LinkIds !== void 0, () => (input.LinkIds! || []).map((_entry) => _entry as any)], - siteId: [, input.SiteId!], - type: [, input.Type!], - provider: [, input.Provider!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_lIi]: [() => input.LinkIds !== void 0, () => (input[_LIi]! || []).map((_entry) => _entry as any)], + [_sI]: [, input[_SI]!], + [_t]: [, input[_T]!], + [_p]: [, input[_P]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2010,35 +1284,18 @@ export const se_GetNetworkResourceCountsCommand = async ( input: GetNetworkResourceCountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/network-resource-count"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/network-resource-count"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - resourceType: [, input.ResourceType!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_rT]: [, input[_RT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2048,40 +1305,23 @@ export const se_GetNetworkResourceRelationshipsCommand = async ( input: GetNetworkResourceRelationshipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/network-resource-relationships"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/network-resource-relationships"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - coreNetworkId: [, input.CoreNetworkId!], - registeredGatewayArn: [, input.RegisteredGatewayArn!], - awsRegion: [, input.AwsRegion!], - accountId: [, input.AccountId!], - resourceType: [, input.ResourceType!], - resourceArn: [, input.ResourceArn!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNI]: [, input[_CNI]!], + [_rGA]: [, input[_RGA]!], + [_aR]: [, input[_AR]!], + [_aI]: [, input[_AI]!], + [_rT]: [, input[_RT]!], + [_rA]: [, input[_RA]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2091,40 +1331,23 @@ export const se_GetNetworkResourcesCommand = async ( input: GetNetworkResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/network-resources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/network-resources"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - coreNetworkId: [, input.CoreNetworkId!], - registeredGatewayArn: [, input.RegisteredGatewayArn!], - awsRegion: [, input.AwsRegion!], - accountId: [, input.AccountId!], - resourceType: [, input.ResourceType!], - resourceArn: [, input.ResourceArn!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNI]: [, input[_CNI]!], + [_rGA]: [, input[_RGA]!], + [_aR]: [, input[_AR]!], + [_aI]: [, input[_AI]!], + [_rT]: [, input[_RT]!], + [_rA]: [, input[_RA]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2134,21 +1357,12 @@ export const se_GetNetworkRoutesCommand = async ( input: GetNetworkRoutesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/network-routes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/network-routes"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2163,15 +1377,8 @@ export const se_GetNetworkRoutesCommand = async ( Types: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2181,40 +1388,23 @@ export const se_GetNetworkTelemetryCommand = async ( input: GetNetworkTelemetryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/network-telemetry"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/network-telemetry"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - coreNetworkId: [, input.CoreNetworkId!], - registeredGatewayArn: [, input.RegisteredGatewayArn!], - awsRegion: [, input.AwsRegion!], - accountId: [, input.AccountId!], - resourceType: [, input.ResourceType!], - resourceArn: [, input.ResourceArn!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNI]: [, input[_CNI]!], + [_rGA]: [, input[_RGA]!], + [_aR]: [, input[_AR]!], + [_aI]: [, input[_AI]!], + [_rT]: [, input[_RT]!], + [_rA]: [, input[_RA]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2224,21 +1414,13 @@ export const se_GetResourcePolicyCommand = async ( input: GetResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resource-policy/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2248,37 +1430,14 @@ export const se_GetRouteAnalysisCommand = async ( input: GetRouteAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/route-analyses/{RouteAnalysisId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RouteAnalysisId", - () => input.RouteAnalysisId!, - "{RouteAnalysisId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/route-analyses/{RouteAnalysisId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("RouteAnalysisId", () => input.RouteAnalysisId!, "{RouteAnalysisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2288,34 +1447,18 @@ export const se_GetSitesCommand = async ( input: GetSitesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/sites"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/sites"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - siteIds: [() => input.SiteIds !== void 0, () => (input.SiteIds! || []).map((_entry) => _entry as any)], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_sIi]: [() => input.SiteIds !== void 0, () => (input[_SIi]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2325,29 +1468,13 @@ export const se_GetSiteToSiteVpnAttachmentCommand = async ( input: GetSiteToSiteVpnAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/site-to-site-vpn-attachments/{AttachmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/site-to-site-vpn-attachments/{AttachmentId}"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2357,38 +1484,21 @@ export const se_GetTransitGatewayConnectPeerAssociationsCommand = async ( input: GetTransitGatewayConnectPeerAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - transitGatewayConnectPeerArns: [ + [_tGCPA]: [ () => input.TransitGatewayConnectPeerArns !== void 0, - () => (input.TransitGatewayConnectPeerArns! || []).map((_entry) => _entry as any), + () => (input[_TGCPA]! || []).map((_entry) => _entry as any), ], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2398,21 +1508,13 @@ export const se_GetTransitGatewayPeeringCommand = async ( input: GetTransitGatewayPeeringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings/{PeeringId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PeeringId", () => input.PeeringId!, "{PeeringId}", false); + b.bp("/transit-gateway-peerings/{PeeringId}"); + b.p("PeeringId", () => input.PeeringId!, "{PeeringId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2422,38 +1524,18 @@ export const se_GetTransitGatewayRegistrationsCommand = async ( input: GetTransitGatewayRegistrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/transit-gateway-registrations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); const query: any = map({ - transitGatewayArns: [ - () => input.TransitGatewayArns !== void 0, - () => (input.TransitGatewayArns! || []).map((_entry) => _entry as any), - ], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_tGA]: [() => input.TransitGatewayArns !== void 0, () => (input[_TGA]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2463,29 +1545,13 @@ export const se_GetTransitGatewayRouteTableAttachmentCommand = async ( input: GetTransitGatewayRouteTableAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/transit-gateway-route-table-attachments/{AttachmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/transit-gateway-route-table-attachments/{AttachmentId}"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2495,28 +1561,13 @@ export const se_GetVpcAttachmentCommand = async ( input: GetVpcAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments/{AttachmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/vpc-attachments/{AttachmentId}"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2526,28 +1577,20 @@ export const se_ListAttachmentsCommand = async ( input: ListAttachmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments"; + b.bp("/attachments"); const query: any = map({ - coreNetworkId: [, input.CoreNetworkId!], - attachmentType: [, input.AttachmentType!], - edgeLocation: [, input.EdgeLocation!], - state: [, input.State!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNI]: [, input[_CNI]!], + [_aT]: [, input[_AT]!], + [_eL]: [, input[_EL]!], + [_s]: [, input[_S]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2557,26 +1600,18 @@ export const se_ListConnectPeersCommand = async ( input: ListConnectPeersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers"; + b.bp("/connect-peers"); const query: any = map({ - coreNetworkId: [, input.CoreNetworkId!], - connectAttachmentId: [, input.ConnectAttachmentId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNI]: [, input[_CNI]!], + [_cAI]: [, input[_CAI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2586,34 +1621,17 @@ export const se_ListCoreNetworkPolicyVersionsCommand = async ( input: ListCoreNetworkPolicyVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-policy-versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2623,24 +1641,16 @@ export const se_ListCoreNetworksCommand = async ( input: ListCoreNetworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks"; + b.bp("/core-networks"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2650,25 +1660,16 @@ export const se_ListOrganizationServiceAccessStatusCommand = async ( input: ListOrganizationServiceAccessStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access"; + b.bp("/organizations/service-access"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2678,28 +1679,20 @@ export const se_ListPeeringsCommand = async ( input: ListPeeringsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/peerings"; + b.bp("/peerings"); const query: any = map({ - coreNetworkId: [, input.CoreNetworkId!], - peeringType: [, input.PeeringType!], - edgeLocation: [, input.EdgeLocation!], - state: [, input.State!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_cNI]: [, input[_CNI]!], + [_pT]: [, input[_PT]!], + [_eL]: [, input[_EL]!], + [_s]: [, input[_S]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2709,20 +1702,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2732,21 +1718,12 @@ export const se_PutCoreNetworkPolicyCommand = async ( input: PutCoreNetworkPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-policy"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2756,15 +1733,8 @@ export const se_PutCoreNetworkPolicyCommand = async ( PolicyDocument: (_) => __LazyJsonString.fromObject(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2774,28 +1744,20 @@ export const se_PutResourcePolicyCommand = async ( input: PutResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resource-policy/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { PolicyDocument: (_) => __LazyJsonString.fromObject(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2805,36 +1767,20 @@ export const se_RegisterTransitGatewayCommand = async ( input: RegisterTransitGatewayCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/transit-gateway-registrations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { TransitGatewayArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2844,28 +1790,13 @@ export const se_RejectAttachmentCommand = async ( input: RejectAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}/reject"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/attachments/{AttachmentId}/reject"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2875,37 +1806,14 @@ export const se_RestoreCoreNetworkPolicyVersionCommand = async ( input: RestoreCoreNetworkPolicyVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}/restore"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PolicyVersionId", - () => input.PolicyVersionId!.toString(), - "{PolicyVersionId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}/restore"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); + b.p("PolicyVersionId", () => input.PolicyVersionId!.toString(), "{PolicyVersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2915,27 +1823,19 @@ export const se_StartOrganizationServiceAccessUpdateCommand = async ( input: StartOrganizationServiceAccessUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access"; + b.bp("/organizations/service-access"); let body: any; body = JSON.stringify( take(input, { Action: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2945,21 +1845,12 @@ export const se_StartRouteAnalysisCommand = async ( input: StartRouteAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/route-analyses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/route-analyses"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2969,15 +1860,8 @@ export const se_StartRouteAnalysisCommand = async ( UseMiddleboxes: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2987,27 +1871,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3017,27 +1894,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3047,29 +1916,13 @@ export const se_UpdateConnectionCommand = async ( input: UpdateConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/connections/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}/connections/{ConnectionId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3078,15 +1931,8 @@ export const se_UpdateConnectionCommand = async ( LinkId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3096,35 +1942,20 @@ export const se_UpdateCoreNetworkCommand = async ( input: UpdateCoreNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CoreNetworkId", - () => input.CoreNetworkId!, - "{CoreNetworkId}", - false - ); + b.bp("/core-networks/{CoreNetworkId}"); + b.p("CoreNetworkId", () => input.CoreNetworkId!, "{CoreNetworkId}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3134,22 +1965,13 @@ export const se_UpdateDeviceCommand = async ( input: UpdateDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/devices/{DeviceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/global-networks/{GlobalNetworkId}/devices/{DeviceId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3163,15 +1985,8 @@ export const se_UpdateDeviceCommand = async ( Vendor: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3181,35 +1996,20 @@ export const se_UpdateGlobalNetworkCommand = async ( input: UpdateGlobalNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); + b.bp("/global-networks/{GlobalNetworkId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3219,22 +2019,13 @@ export const se_UpdateLinkCommand = async ( input: UpdateLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/links/{LinkId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "LinkId", () => input.LinkId!, "{LinkId}", false); + b.bp("/global-networks/{GlobalNetworkId}/links/{LinkId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("LinkId", () => input.LinkId!, "{LinkId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3244,15 +2035,8 @@ export const se_UpdateLinkCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3262,37 +2046,21 @@ export const se_UpdateNetworkResourceMetadataCommand = async ( input: UpdateNetworkResourceMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/network-resources/{ResourceArn}/metadata"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/global-networks/{GlobalNetworkId}/network-resources/{ResourceArn}/metadata"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Metadata: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3302,22 +2070,13 @@ export const se_UpdateSiteCommand = async ( input: UpdateSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/global-networks/{GlobalNetworkId}/sites/{SiteId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GlobalNetworkId", - () => input.GlobalNetworkId!, - "{GlobalNetworkId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/global-networks/{GlobalNetworkId}/sites/{SiteId}"); + b.p("GlobalNetworkId", () => input.GlobalNetworkId!, "{GlobalNetworkId}", false); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3325,15 +2084,8 @@ export const se_UpdateSiteCommand = async ( Location: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3343,20 +2095,12 @@ export const se_UpdateVpcAttachmentCommand = async ( input: UpdateVpcAttachmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments/{AttachmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttachmentId", - () => input.AttachmentId!, - "{AttachmentId}", - false - ); + b.bp("/vpc-attachments/{AttachmentId}"); + b.p("AttachmentId", () => input.AttachmentId!, "{AttachmentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3365,15 +2109,8 @@ export const se_UpdateVpcAttachmentCommand = async ( RemoveSubnetArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -8623,10 +7360,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -8692,10 +7426,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -9394,6 +8125,69 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Alias"; +const _AI = "AccountId"; +const _AR = "AwsRegion"; +const _AT = "AttachmentType"; +const _CAI = "ConnectAttachmentId"; +const _CGA = "CustomerGatewayArns"; +const _CI = "ConnectionIds"; +const _CNI = "CoreNetworkId"; +const _CPI = "ConnectPeerIds"; +const _DI = "DeviceId"; +const _DIe = "DeviceIds"; +const _EL = "EdgeLocation"; +const _GNI = "GlobalNetworkIds"; +const _LI = "LinkId"; +const _LIi = "LinkIds"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _P = "Provider"; +const _PT = "PeeringType"; +const _PVI = "PolicyVersionId"; +const _RA = "ResourceArn"; +const _RAS = "RetryAfterSeconds"; +const _RGA = "RegisteredGatewayArn"; +const _RT = "ResourceType"; +const _S = "State"; +const _SI = "SiteId"; +const _SIi = "SiteIds"; +const _T = "Type"; +const _TGA = "TransitGatewayArns"; +const _TGCPA = "TransitGatewayConnectPeerArns"; +const _TK = "TagKeys"; +const _a = "alias"; +const _aI = "accountId"; +const _aR = "awsRegion"; +const _aT = "attachmentType"; +const _cAI = "connectAttachmentId"; +const _cGA = "customerGatewayArns"; +const _cI = "connectionIds"; +const _cNI = "coreNetworkId"; +const _cPI = "connectPeerIds"; +const _dI = "deviceId"; +const _dIe = "deviceIds"; +const _eL = "edgeLocation"; +const _gNI = "globalNetworkIds"; +const _lI = "linkId"; +const _lIi = "linkIds"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _p = "provider"; +const _pT = "peeringType"; +const _pVI = "policyVersionId"; +const _rA = "resourceArn"; +const _rGA = "registeredGatewayArn"; +const _rT = "resourceType"; +const _ra = "retry-after"; +const _s = "state"; +const _sI = "siteId"; +const _sIi = "siteIds"; +const _t = "type"; +const _tGA = "transitGatewayArns"; +const _tGCPA = "transitGatewayConnectPeerArns"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-nimble/package.json b/clients/client-nimble/package.json index 91fb948cf53f..e126e935af7e 100644 --- a/clients/client-nimble/package.json +++ b/clients/client-nimble/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-nimble/src/protocols/Aws_restJson1.ts b/clients/client-nimble/src/protocols/Aws_restJson1.ts index 52bc7bbfad60..2c8e0a208b4b 100644 --- a/clients/client-nimble/src/protocols/Aws_restJson1.ts +++ b/clients/client-nimble/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -209,30 +210,21 @@ export const se_AcceptEulasCommand = async ( input: AcceptEulasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/eula-acceptances"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/eula-acceptances"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { eulaIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -242,15 +234,13 @@ export const se_CreateLaunchProfileCommand = async ( input: CreateLaunchProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -263,15 +253,8 @@ export const se_CreateLaunchProfileCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -281,15 +264,13 @@ export const se_CreateStreamingImageCommand = async ( input: CreateStreamingImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-images"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-images"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -299,15 +280,8 @@ export const se_CreateStreamingImageCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,15 +291,13 @@ export const se_CreateStreamingSessionCommand = async ( input: CreateStreamingSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -336,15 +308,8 @@ export const se_CreateStreamingSessionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -354,31 +319,22 @@ export const se_CreateStreamingSessionStreamCommand = async ( input: CreateStreamingSessionStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/streams"; - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/streams"); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { expirationInSeconds: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -388,12 +344,12 @@ export const se_CreateStudioCommand = async ( input: CreateStudioCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/studios"; + b.bp("/2020-08-01/studios"); let body: any; body = JSON.stringify( take(input, { @@ -405,15 +361,8 @@ export const se_CreateStudioCommand = async ( userRoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -423,15 +372,13 @@ export const se_CreateStudioComponentCommand = async ( input: CreateStudioComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/studio-components"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/studio-components"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -448,15 +395,8 @@ export const se_CreateStudioComponentCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -466,32 +406,16 @@ export const se_DeleteLaunchProfileCommand = async ( input: DeleteLaunchProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_xact]: input[_cT]!, }); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -501,33 +425,17 @@ export const se_DeleteLaunchProfileMemberCommand = async ( input: DeleteLaunchProfileMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership/{principalId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "principalId", () => input.principalId!, "{principalId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_xact]: input[_cT]!, }); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership/{principalId}"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("principalId", () => input.principalId!, "{principalId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -537,32 +445,16 @@ export const se_DeleteStreamingImageCommand = async ( input: DeleteStreamingImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-images/{streamingImageId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "streamingImageId", - () => input.streamingImageId!, - "{streamingImageId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_xact]: input[_cT]!, }); + b.bp("/2020-08-01/studios/{studioId}/streaming-images/{streamingImageId}"); + b.p("streamingImageId", () => input.streamingImageId!, "{streamingImageId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -572,25 +464,16 @@ export const se_DeleteStreamingSessionCommand = async ( input: DeleteStreamingSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}"); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -600,23 +483,15 @@ export const se_DeleteStudioCommand = async ( input: DeleteStudioCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/studios/{studioId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -626,32 +501,16 @@ export const se_DeleteStudioComponentCommand = async ( input: DeleteStudioComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/studio-components/{studioComponentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "studioComponentId", - () => input.studioComponentId!, - "{studioComponentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_xact]: input[_cT]!, }); + b.bp("/2020-08-01/studios/{studioId}/studio-components/{studioComponentId}"); + b.p("studioComponentId", () => input.studioComponentId!, "{studioComponentId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -661,25 +520,16 @@ export const se_DeleteStudioMemberCommand = async ( input: DeleteStudioMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/membership/{principalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "principalId", () => input.principalId!, "{principalId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/membership/{principalId}"); + b.p("principalId", () => input.principalId!, "{principalId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -689,21 +539,13 @@ export const se_GetEulaCommand = async ( input: GetEulaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/eulas/{eulaId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "eulaId", () => input.eulaId!, "{eulaId}", false); + b.bp("/2020-08-01/eulas/{eulaId}"); + b.p("eulaId", () => input.eulaId!, "{eulaId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -713,30 +555,14 @@ export const se_GetLaunchProfileCommand = async ( input: GetLaunchProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -746,30 +572,14 @@ export const se_GetLaunchProfileDetailsCommand = async ( input: GetLaunchProfileDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/details"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/details"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -779,39 +589,22 @@ export const se_GetLaunchProfileInitializationCommand = async ( input: GetLaunchProfileInitializationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/init"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/init"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - launchProfileProtocolVersions: [ + [_lPPV]: [ __expectNonNull(input.launchProfileProtocolVersions, `launchProfileProtocolVersions`) != null, - () => (input.launchProfileProtocolVersions! || []).map((_entry) => _entry as any), + () => (input[_lPPV]! || []).map((_entry) => _entry as any), ], - launchPurpose: [, __expectNonNull(input.launchPurpose!, `launchPurpose`)], - platform: [, __expectNonNull(input.platform!, `platform`)], + [_lP]: [, __expectNonNull(input[_lP]!, `launchPurpose`)], + [_p]: [, __expectNonNull(input[_p]!, `platform`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -821,31 +614,15 @@ export const se_GetLaunchProfileMemberCommand = async ( input: GetLaunchProfileMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership/{principalId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "principalId", () => input.principalId!, "{principalId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership/{principalId}"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("principalId", () => input.principalId!, "{principalId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -855,30 +632,14 @@ export const se_GetStreamingImageCommand = async ( input: GetStreamingImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-images/{streamingImageId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "streamingImageId", - () => input.streamingImageId!, - "{streamingImageId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-images/{streamingImageId}"); + b.p("streamingImageId", () => input.streamingImageId!, "{streamingImageId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -888,23 +649,14 @@ export const se_GetStreamingSessionCommand = async ( input: GetStreamingSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}"); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -914,23 +666,14 @@ export const se_GetStreamingSessionBackupCommand = async ( input: GetStreamingSessionBackupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-session-backups/{backupId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "backupId", () => input.backupId!, "{backupId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-session-backups/{backupId}"); + b.p("backupId", () => input.backupId!, "{backupId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -940,24 +683,15 @@ export const se_GetStreamingSessionStreamCommand = async ( input: GetStreamingSessionStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/streams/{streamId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "streamId", () => input.streamId!, "{streamId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/streams/{streamId}"); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); + b.p("streamId", () => input.streamId!, "{streamId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -967,21 +701,13 @@ export const se_GetStudioCommand = async ( input: GetStudioCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/studios/{studioId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -991,30 +717,14 @@ export const se_GetStudioComponentCommand = async ( input: GetStudioComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/studio-components/{studioComponentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "studioComponentId", - () => input.studioComponentId!, - "{studioComponentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/studio-components/{studioComponentId}"); + b.p("studioComponentId", () => input.studioComponentId!, "{studioComponentId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1024,23 +734,14 @@ export const se_GetStudioMemberCommand = async ( input: GetStudioMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/membership/{principalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "principalId", () => input.principalId!, "{principalId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/membership/{principalId}"); + b.p("principalId", () => input.principalId!, "{principalId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1050,27 +751,17 @@ export const se_ListEulaAcceptancesCommand = async ( input: ListEulaAcceptancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/eula-acceptances"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/eula-acceptances"); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - eulaIds: [() => input.eulaIds !== void 0, () => (input.eulaIds! || []).map((_entry) => _entry as any)], - nextToken: [, input.nextToken!], + [_eI]: [() => input.eulaIds !== void 0, () => (input[_eI]! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1080,24 +771,16 @@ export const se_ListEulasCommand = async ( input: ListEulasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/eulas"; + b.bp("/2020-08-01/eulas"); const query: any = map({ - eulaIds: [() => input.eulaIds !== void 0, () => (input.eulaIds! || []).map((_entry) => _entry as any)], - nextToken: [, input.nextToken!], + [_eI]: [() => input.eulaIds !== void 0, () => (input[_eI]! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1107,35 +790,18 @@ export const se_ListLaunchProfileMembersCommand = async ( input: ListLaunchProfileMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1145,29 +811,19 @@ export const se_ListLaunchProfilesCommand = async ( input: ListLaunchProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles"); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - principalId: [, input.principalId!], - states: [() => input.states !== void 0, () => (input.states! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_pI]: [, input[_pI]!], + [_s]: [() => input.states !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1177,27 +833,17 @@ export const se_ListStreamingImagesCommand = async ( input: ListStreamingImagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-images"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-images"); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - owner: [, input.owner!], + [_nT]: [, input[_nT]!], + [_o]: [, input[_o]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1207,27 +853,17 @@ export const se_ListStreamingSessionBackupsCommand = async ( input: ListStreamingSessionBackupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-session-backups"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-session-backups"); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - ownedBy: [, input.ownedBy!], + [_nT]: [, input[_nT]!], + [_oB]: [, input[_oB]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1237,29 +873,19 @@ export const se_ListStreamingSessionsCommand = async ( input: ListStreamingSessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions"); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - createdBy: [, input.createdBy!], - nextToken: [, input.nextToken!], - ownedBy: [, input.ownedBy!], - sessionIds: [, input.sessionIds!], + [_cB]: [, input[_cB]!], + [_nT]: [, input[_nT]!], + [_oB]: [, input[_oB]!], + [_sI]: [, input[_sI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1269,29 +895,19 @@ export const se_ListStudioComponentsCommand = async ( input: ListStudioComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/studio-components"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/studio-components"); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - states: [() => input.states !== void 0, () => (input.states! || []).map((_entry) => _entry as any)], - types: [() => input.types !== void 0, () => (input.types! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_s]: [() => input.states !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], + [_t]: [() => input.types !== void 0, () => (input[_t]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1301,26 +917,17 @@ export const se_ListStudioMembersCommand = async ( input: ListStudioMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/studios/{studioId}/membership"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/membership"); + b.p("studioId", () => input.studioId!, "{studioId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1330,23 +937,15 @@ export const se_ListStudiosCommand = async ( input: ListStudiosCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/studios"; + b.bp("/2020-08-01/studios"); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1356,21 +955,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/2020-08-01/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1380,23 +971,14 @@ export const se_PutLaunchProfileMembersCommand = async ( input: PutLaunchProfileMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + [_xact]: input[_cT]!, + }); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1404,15 +986,8 @@ export const se_PutLaunchProfileMembersCommand = async ( members: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1422,14 +997,13 @@ export const se_PutStudioMembersCommand = async ( input: PutStudioMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/studios/{studioId}/membership"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/membership"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1437,15 +1011,8 @@ export const se_PutStudioMembersCommand = async ( members: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1455,31 +1022,22 @@ export const se_StartStreamingSessionCommand = async ( input: StartStreamingSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/start"); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { backupId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1489,24 +1047,15 @@ export const se_StartStudioSSOConfigurationRepairCommand = async ( input: StartStudioSSOConfigurationRepairCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/sso-configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/sso-configuration"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1516,31 +1065,22 @@ export const se_StopStreamingSessionCommand = async ( input: StopStreamingSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}/streaming-sessions/{sessionId}/stop"); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { volumeRetentionMode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1550,28 +1090,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/2020-08-01/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1581,28 +1113,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/2020-08-01/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1612,23 +1135,14 @@ export const se_UpdateLaunchProfileCommand = async ( input: UpdateLaunchProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + [_xact]: input[_cT]!, + }); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1639,15 +1153,8 @@ export const se_UpdateLaunchProfileCommand = async ( studioComponentIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1657,39 +1164,23 @@ export const se_UpdateLaunchProfileMemberCommand = async ( input: UpdateLaunchProfileMemberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership/{principalId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "launchProfileId", - () => input.launchProfileId!, - "{launchProfileId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "principalId", () => input.principalId!, "{principalId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + [_xact]: input[_cT]!, + }); + b.bp("/2020-08-01/studios/{studioId}/launch-profiles/{launchProfileId}/membership/{principalId}"); + b.p("launchProfileId", () => input.launchProfileId!, "{launchProfileId}", false); + b.p("principalId", () => input.principalId!, "{principalId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { persona: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1699,23 +1190,14 @@ export const se_UpdateStreamingImageCommand = async ( input: UpdateStreamingImageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/streaming-images/{streamingImageId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "streamingImageId", - () => input.streamingImageId!, - "{streamingImageId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + [_xact]: input[_cT]!, + }); + b.bp("/2020-08-01/studios/{studioId}/streaming-images/{streamingImageId}"); + b.p("streamingImageId", () => input.streamingImageId!, "{streamingImageId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1723,15 +1205,8 @@ export const se_UpdateStreamingImageCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1741,14 +1216,13 @@ export const se_UpdateStudioCommand = async ( input: UpdateStudioCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, + [_xact]: input[_cT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-08-01/studios/{studioId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + b.bp("/2020-08-01/studios/{studioId}"); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1757,15 +1231,8 @@ export const se_UpdateStudioCommand = async ( userRoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1775,23 +1242,14 @@ export const se_UpdateStudioComponentCommand = async ( input: UpdateStudioComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-client-token": input.clientToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2020-08-01/studios/{studioId}/studio-components/{studioComponentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "studioComponentId", - () => input.studioComponentId!, - "{studioComponentId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "studioId", () => input.studioId!, "{studioId}", false); + [_xact]: input[_cT]!, + }); + b.bp("/2020-08-01/studios/{studioId}/studio-components/{studioComponentId}"); + b.p("studioComponentId", () => input.studioComponentId!, "{studioComponentId}", false); + b.p("studioId", () => input.studioId!, "{studioId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1807,15 +1265,8 @@ export const se_UpdateStudioComponentCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -5579,6 +5030,23 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cB = "createdBy"; +const _cT = "clientToken"; +const _eI = "eulaIds"; +const _lP = "launchPurpose"; +const _lPPV = "launchProfileProtocolVersions"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _o = "owner"; +const _oB = "ownedBy"; +const _p = "platform"; +const _pI = "principalId"; +const _s = "states"; +const _sI = "sessionIds"; +const _t = "types"; +const _tK = "tagKeys"; +const _xact = "x-amz-client-token"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-oam/package.json b/clients/client-oam/package.json index 519b69a241b7..eec82cb20e18 100644 --- a/clients/client-oam/package.json +++ b/clients/client-oam/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-oam/src/protocols/Aws_restJson1.ts b/clients/client-oam/src/protocols/Aws_restJson1.ts index 45a886b79b02..f95ac5c5b5d5 100644 --- a/clients/client-oam/src/protocols/Aws_restJson1.ts +++ b/clients/client-oam/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -57,11 +58,11 @@ export const se_CreateLinkCommand = async ( input: CreateLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLink"; + b.bp("/CreateLink"); let body: any; body = JSON.stringify( take(input, { @@ -71,15 +72,8 @@ export const se_CreateLinkCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -89,11 +83,11 @@ export const se_CreateSinkCommand = async ( input: CreateSinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSink"; + b.bp("/CreateSink"); let body: any; body = JSON.stringify( take(input, { @@ -101,15 +95,8 @@ export const se_CreateSinkCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -119,26 +106,19 @@ export const se_DeleteLinkCommand = async ( input: DeleteLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLink"; + b.bp("/DeleteLink"); let body: any; body = JSON.stringify( take(input, { Identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -148,26 +128,19 @@ export const se_DeleteSinkCommand = async ( input: DeleteSinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSink"; + b.bp("/DeleteSink"); let body: any; body = JSON.stringify( take(input, { Identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -177,26 +150,19 @@ export const se_GetLinkCommand = async ( input: GetLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLink"; + b.bp("/GetLink"); let body: any; body = JSON.stringify( take(input, { Identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -206,26 +172,19 @@ export const se_GetSinkCommand = async ( input: GetSinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetSink"; + b.bp("/GetSink"); let body: any; body = JSON.stringify( take(input, { Identifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -235,26 +194,19 @@ export const se_GetSinkPolicyCommand = async ( input: GetSinkPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetSinkPolicy"; + b.bp("/GetSinkPolicy"); let body: any; body = JSON.stringify( take(input, { SinkIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -264,11 +216,11 @@ export const se_ListAttachedLinksCommand = async ( input: ListAttachedLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListAttachedLinks"; + b.bp("/ListAttachedLinks"); let body: any; body = JSON.stringify( take(input, { @@ -277,15 +229,8 @@ export const se_ListAttachedLinksCommand = async ( SinkIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -295,11 +240,11 @@ export const se_ListLinksCommand = async ( input: ListLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLinks"; + b.bp("/ListLinks"); let body: any; body = JSON.stringify( take(input, { @@ -307,15 +252,8 @@ export const se_ListLinksCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -325,11 +263,11 @@ export const se_ListSinksCommand = async ( input: ListSinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSinks"; + b.bp("/ListSinks"); let body: any; body = JSON.stringify( take(input, { @@ -337,15 +275,8 @@ export const se_ListSinksCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -355,20 +286,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -378,11 +302,11 @@ export const se_PutSinkPolicyCommand = async ( input: PutSinkPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutSinkPolicy"; + b.bp("/PutSinkPolicy"); let body: any; body = JSON.stringify( take(input, { @@ -390,15 +314,8 @@ export const se_PutSinkPolicyCommand = async ( SinkIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -408,27 +325,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -438,27 +348,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -468,11 +370,11 @@ export const se_UpdateLinkCommand = async ( input: UpdateLinkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLink"; + b.bp("/UpdateLink"); let body: any; body = JSON.stringify( take(input, { @@ -480,15 +382,8 @@ export const se_UpdateLinkCommand = async ( ResourceTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1340,7 +1235,7 @@ const throwDefaultError = withBaseException(__BaseException); */ const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_aET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1362,7 +1257,7 @@ const de_InternalServiceFaultRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_aET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1384,7 +1279,7 @@ const de_InvalidParameterExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_aET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1406,7 +1301,7 @@ const de_MissingRequiredParameterExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_aET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1428,7 +1323,7 @@ const de_ResourceNotFoundExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_aET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1450,7 +1345,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - amznErrorType: [, parsedOutput.headers["x-amzn-errortype"]], + [_aET]: [, parsedOutput.headers[_xae]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1540,6 +1435,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _TK = "TagKeys"; +const _aET = "amznErrorType"; +const _tK = "tagKeys"; +const _xae = "x-amzn-errortype"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-omics/package.json b/clients/client-omics/package.json index 909750a0622a..1143e4521b3e 100644 --- a/clients/client-omics/package.json +++ b/clients/client-omics/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-omics/src/models/models_0.ts b/clients/client-omics/src/models/models_0.ts index 5c1853305fbe..493ab3a3b479 100644 --- a/clients/client-omics/src/models/models_0.ts +++ b/clients/client-omics/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types"; import { OmicsServiceException as __BaseException } from "./OmicsServiceException"; diff --git a/clients/client-omics/src/protocols/Aws_restJson1.ts b/clients/client-omics/src/protocols/Aws_restJson1.ts index d336a44e0a48..cb3b6af8c559 100644 --- a/clients/client-omics/src/protocols/Aws_restJson1.ts +++ b/clients/client-omics/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -314,20 +315,11 @@ export const se_AbortMultipartReadSetUploadCommand = async ( input: AbortMultipartReadSetUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/upload/{uploadId}/abort"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); + b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/abort"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -336,15 +328,9 @@ export const se_AbortMultipartReadSetUploadCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -354,10 +340,10 @@ export const se_AcceptShareCommand = async ( input: AcceptShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "shareId", () => input.shareId!, "{shareId}", false); + b.bp("/share/{shareId}"); + b.p("shareId", () => input.shareId!, "{shareId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -366,15 +352,9 @@ export const se_AcceptShareCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -384,21 +364,12 @@ export const se_BatchDeleteReadSetCommand = async ( input: BatchDeleteReadSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/readset/batch/delete"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/readset/batch/delete"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; body = JSON.stringify( take(input, { @@ -412,15 +383,9 @@ export const se_BatchDeleteReadSetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -430,11 +395,10 @@ export const se_CancelAnnotationImportJobCommand = async ( input: CancelAnnotationImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/import/annotation/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -443,15 +407,9 @@ export const se_CancelAnnotationImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -461,10 +419,10 @@ export const se_CancelRunCommand = async ( input: CancelRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/run/{id}/cancel"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -473,15 +431,9 @@ export const se_CancelRunCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -491,10 +443,10 @@ export const se_CancelVariantImportJobCommand = async ( input: CancelVariantImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/import/variant/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -503,15 +455,9 @@ export const se_CancelVariantImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -521,22 +467,13 @@ export const se_CompleteMultipartReadSetUploadCommand = async ( input: CompleteMultipartReadSetUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/upload/{uploadId}/complete"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); + b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/complete"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); let body: any; body = JSON.stringify( take(input, { @@ -550,15 +487,9 @@ export const se_CompleteMultipartReadSetUploadCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -568,11 +499,11 @@ export const se_CreateAnnotationStoreCommand = async ( input: CreateAnnotationStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore"; + b.bp("/annotationStore"); let body: any; body = JSON.stringify( take(input, { @@ -593,15 +524,9 @@ export const se_CreateAnnotationStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -611,13 +536,12 @@ export const se_CreateAnnotationStoreVersionCommand = async ( input: CreateAnnotationStoreVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/version"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/annotationStore/{name}/version"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -634,15 +558,9 @@ export const se_CreateAnnotationStoreVersionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -652,20 +570,12 @@ export const se_CreateMultipartReadSetUploadCommand = async ( input: CreateMultipartReadSetUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{sequenceStoreId}/upload"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/upload"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; body = JSON.stringify( take(input, { @@ -687,15 +597,9 @@ export const se_CreateMultipartReadSetUploadCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -705,11 +609,11 @@ export const se_CreateReferenceStoreCommand = async ( input: CreateReferenceStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore"; + b.bp("/referencestore"); let body: any; body = JSON.stringify( take(input, { @@ -727,15 +631,9 @@ export const se_CreateReferenceStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -745,11 +643,11 @@ export const se_CreateRunGroupCommand = async ( input: CreateRunGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup"; + b.bp("/runGroup"); let body: any; body = JSON.stringify( take(input, { @@ -769,15 +667,9 @@ export const se_CreateRunGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -787,11 +679,11 @@ export const se_CreateSequenceStoreCommand = async ( input: CreateSequenceStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore"; + b.bp("/sequencestore"); let body: any; body = JSON.stringify( take(input, { @@ -810,15 +702,9 @@ export const se_CreateSequenceStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -828,11 +714,11 @@ export const se_CreateShareCommand = async ( input: CreateShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share"; + b.bp("/share"); let body: any; body = JSON.stringify( take(input, { @@ -848,15 +734,9 @@ export const se_CreateShareCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -866,11 +746,11 @@ export const se_CreateVariantStoreCommand = async ( input: CreateVariantStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore"; + b.bp("/variantStore"); let body: any; body = JSON.stringify( take(input, { @@ -888,15 +768,9 @@ export const se_CreateVariantStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -906,11 +780,11 @@ export const se_CreateWorkflowCommand = async ( input: CreateWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow"; + b.bp("/workflow"); let body: any; body = JSON.stringify( take(input, { @@ -934,15 +808,9 @@ export const se_CreateWorkflowCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -952,12 +820,12 @@ export const se_DeleteAnnotationStoreCommand = async ( input: DeleteAnnotationStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/annotationStore/{name}"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - force: [() => input.force !== void 0, () => input.force!.toString()], + [_f]: [() => input.force !== void 0, () => input[_f]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -967,16 +835,9 @@ export const se_DeleteAnnotationStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -986,15 +847,14 @@ export const se_DeleteAnnotationStoreVersionsCommand = async ( input: DeleteAnnotationStoreVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions/delete"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/annotationStore/{name}/versions/delete"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - force: [() => input.force !== void 0, () => input.force!.toString()], + [_f]: [() => input.force !== void 0, () => input[_f]!.toString()], }); let body: any; body = JSON.stringify( @@ -1009,16 +869,9 @@ export const se_DeleteAnnotationStoreVersionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1028,20 +881,11 @@ export const se_DeleteReferenceCommand = async ( input: DeleteReferenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/referencestore/{referenceStoreId}/reference/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "referenceStoreId", - () => input.referenceStoreId!, - "{referenceStoreId}", - false - ); + b.bp("/referencestore/{referenceStoreId}/reference/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("referenceStoreId", () => input.referenceStoreId!, "{referenceStoreId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1050,15 +894,9 @@ export const se_DeleteReferenceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1068,10 +906,10 @@ export const se_DeleteReferenceStoreCommand = async ( input: DeleteReferenceStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/referencestore/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1080,15 +918,9 @@ export const se_DeleteReferenceStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1098,10 +930,10 @@ export const se_DeleteRunCommand = async ( input: DeleteRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/run/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1110,15 +942,9 @@ export const se_DeleteRunCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1128,10 +954,10 @@ export const se_DeleteRunGroupCommand = async ( input: DeleteRunGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/runGroup/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1140,15 +966,9 @@ export const se_DeleteRunGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1158,10 +978,10 @@ export const se_DeleteSequenceStoreCommand = async ( input: DeleteSequenceStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/sequencestore/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1170,15 +990,9 @@ export const se_DeleteSequenceStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1188,10 +1002,10 @@ export const se_DeleteShareCommand = async ( input: DeleteShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "shareId", () => input.shareId!, "{shareId}", false); + b.bp("/share/{shareId}"); + b.p("shareId", () => input.shareId!, "{shareId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1200,15 +1014,9 @@ export const se_DeleteShareCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1218,12 +1026,12 @@ export const se_DeleteVariantStoreCommand = async ( input: DeleteVariantStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/variantStore/{name}"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - force: [() => input.force !== void 0, () => input.force!.toString()], + [_f]: [() => input.force !== void 0, () => input[_f]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1233,16 +1041,9 @@ export const se_DeleteVariantStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1252,10 +1053,10 @@ export const se_DeleteWorkflowCommand = async ( input: DeleteWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflow/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1264,15 +1065,9 @@ export const se_DeleteWorkflowCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1282,11 +1077,10 @@ export const se_GetAnnotationImportJobCommand = async ( input: GetAnnotationImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/import/annotation/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1295,15 +1089,9 @@ export const se_GetAnnotationImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1313,10 +1101,10 @@ export const se_GetAnnotationStoreCommand = async ( input: GetAnnotationStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/annotationStore/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1325,15 +1113,9 @@ export const se_GetAnnotationStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1343,13 +1125,11 @@ export const se_GetAnnotationStoreVersionCommand = async ( input: GetAnnotationStoreVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/annotationStore/{name}/version/{versionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + b.bp("/annotationStore/{name}/version/{versionName}"); + b.p("name", () => input.name!, "{name}", false); + b.p("versionName", () => input.versionName!, "{versionName}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1358,15 +1138,9 @@ export const se_GetAnnotationStoreVersionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1376,23 +1150,14 @@ export const se_GetReadSetCommand = async ( input: GetReadSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/readset/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/readset/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); const query: any = map({ - file: [, input.file!], - partNumber: [__expectNonNull(input.partNumber, `partNumber`) != null, () => input.partNumber!.toString()], + [_fi]: [, input[_fi]!], + [_pN]: [__expectNonNull(input.partNumber, `partNumber`) != null, () => input[_pN]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1402,16 +1167,9 @@ export const se_GetReadSetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1421,20 +1179,11 @@ export const se_GetReadSetActivationJobCommand = async ( input: GetReadSetActivationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/activationjob/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/activationjob/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1443,15 +1192,9 @@ export const se_GetReadSetActivationJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1461,20 +1204,11 @@ export const se_GetReadSetExportJobCommand = async ( input: GetReadSetExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/exportjob/{id}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/sequencestore/{sequenceStoreId}/exportjob/{id}"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1483,15 +1217,9 @@ export const se_GetReadSetExportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1501,20 +1229,11 @@ export const se_GetReadSetImportJobCommand = async ( input: GetReadSetImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/importjob/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/importjob/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1523,15 +1242,9 @@ export const se_GetReadSetImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1541,20 +1254,11 @@ export const se_GetReadSetMetadataCommand = async ( input: GetReadSetMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/readset/{id}/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/readset/{id}/metadata"); + b.p("id", () => input.id!, "{id}", false); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1563,15 +1267,9 @@ export const se_GetReadSetMetadataCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1581,25 +1279,16 @@ export const se_GetReferenceCommand = async ( input: GetReferenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - range: input.range!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/referencestore/{referenceStoreId}/reference/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "referenceStoreId", - () => input.referenceStoreId!, - "{referenceStoreId}", - false - ); + [_r]: input[_r]!, + }); + b.bp("/referencestore/{referenceStoreId}/reference/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("referenceStoreId", () => input.referenceStoreId!, "{referenceStoreId}", false); const query: any = map({ - partNumber: [__expectNonNull(input.partNumber, `partNumber`) != null, () => input.partNumber!.toString()], - file: [, input.file!], + [_pN]: [__expectNonNull(input.partNumber, `partNumber`) != null, () => input[_pN]!.toString()], + [_fi]: [, input[_fi]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1609,16 +1298,9 @@ export const se_GetReferenceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1628,20 +1310,11 @@ export const se_GetReferenceImportJobCommand = async ( input: GetReferenceImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/referencestore/{referenceStoreId}/importjob/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "referenceStoreId", - () => input.referenceStoreId!, - "{referenceStoreId}", - false - ); + b.bp("/referencestore/{referenceStoreId}/importjob/{id}"); + b.p("id", () => input.id!, "{id}", false); + b.p("referenceStoreId", () => input.referenceStoreId!, "{referenceStoreId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1650,15 +1323,9 @@ export const se_GetReferenceImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1668,20 +1335,11 @@ export const se_GetReferenceMetadataCommand = async ( input: GetReferenceMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/referencestore/{referenceStoreId}/reference/{id}/metadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "referenceStoreId", - () => input.referenceStoreId!, - "{referenceStoreId}", - false - ); + b.bp("/referencestore/{referenceStoreId}/reference/{id}/metadata"); + b.p("id", () => input.id!, "{id}", false); + b.p("referenceStoreId", () => input.referenceStoreId!, "{referenceStoreId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1690,15 +1348,9 @@ export const se_GetReferenceMetadataCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1708,10 +1360,10 @@ export const se_GetReferenceStoreCommand = async ( input: GetReferenceStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/referencestore/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1720,27 +1372,21 @@ export const se_GetReferenceStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetRunCommand */ export const se_GetRunCommand = async (input: GetRunCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/run/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - export: [() => input.export !== void 0, () => (input.export! || []).map((_entry) => _entry as any)], + [_e]: [() => input.export !== void 0, () => (input[_e]! || []).map((_entry) => _entry as any)], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1750,16 +1396,9 @@ export const se_GetRunCommand = async (input: GetRunCommandInput, context: __Ser throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1769,10 +1408,10 @@ export const se_GetRunGroupCommand = async ( input: GetRunGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/runGroup/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1781,15 +1420,9 @@ export const se_GetRunGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1799,11 +1432,11 @@ export const se_GetRunTaskCommand = async ( input: GetRunTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}/task/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/run/{id}/task/{taskId}"); + b.p("id", () => input.id!, "{id}", false); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1812,15 +1445,9 @@ export const se_GetRunTaskCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1830,10 +1457,10 @@ export const se_GetSequenceStoreCommand = async ( input: GetSequenceStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/sequencestore/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1842,15 +1469,9 @@ export const se_GetSequenceStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1860,10 +1481,10 @@ export const se_GetShareCommand = async ( input: GetShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "shareId", () => input.shareId!, "{shareId}", false); + b.bp("/share/{shareId}"); + b.p("shareId", () => input.shareId!, "{shareId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1872,15 +1493,9 @@ export const se_GetShareCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1890,10 +1505,10 @@ export const se_GetVariantImportJobCommand = async ( input: GetVariantImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/import/variant/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1902,15 +1517,9 @@ export const se_GetVariantImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1920,10 +1529,10 @@ export const se_GetVariantStoreCommand = async ( input: GetVariantStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/variantStore/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1932,15 +1541,9 @@ export const se_GetVariantStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1950,13 +1553,13 @@ export const se_GetWorkflowCommand = async ( input: GetWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflow/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - type: [, input.type!], - export: [() => input.export !== void 0, () => (input.export! || []).map((_entry) => _entry as any)], + [_t]: [, input[_t]!], + [_e]: [() => input.export !== void 0, () => (input[_e]! || []).map((_entry) => _entry as any)], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -1966,16 +1569,9 @@ export const se_GetWorkflowCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1985,14 +1581,14 @@ export const se_ListAnnotationImportJobsCommand = async ( input: ListAnnotationImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotations"; + b.bp("/import/annotations"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2008,16 +1604,9 @@ export const se_ListAnnotationImportJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2027,14 +1616,14 @@ export const se_ListAnnotationStoresCommand = async ( input: ListAnnotationStoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStores"; + b.bp("/annotationStores"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2050,16 +1639,9 @@ export const se_ListAnnotationStoresCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2069,16 +1651,15 @@ export const se_ListAnnotationStoreVersionsCommand = async ( input: ListAnnotationStoreVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/annotationStore/{name}/versions"); + b.p("name", () => input.name!, "{name}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2093,16 +1674,9 @@ export const se_ListAnnotationStoreVersionsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2112,21 +1686,13 @@ export const se_ListMultipartReadSetUploadsCommand = async ( input: ListMultipartReadSetUploadsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{sequenceStoreId}/uploads"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/uploads"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2136,16 +1702,9 @@ export const se_ListMultipartReadSetUploadsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2155,24 +1714,15 @@ export const se_ListReadSetActivationJobsCommand = async ( input: ListReadSetActivationJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/activationjobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/activationjobs"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2187,16 +1737,9 @@ export const se_ListReadSetActivationJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2206,24 +1749,15 @@ export const se_ListReadSetExportJobsCommand = async ( input: ListReadSetExportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/exportjobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/exportjobs"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2238,16 +1772,9 @@ export const se_ListReadSetExportJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2257,24 +1784,15 @@ export const se_ListReadSetImportJobsCommand = async ( input: ListReadSetImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/importjobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/importjobs"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2289,16 +1807,9 @@ export const se_ListReadSetImportJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2308,23 +1819,15 @@ export const se_ListReadSetsCommand = async ( input: ListReadSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{sequenceStoreId}/readsets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/readsets"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2339,16 +1842,9 @@ export const se_ListReadSetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2358,25 +1854,16 @@ export const se_ListReadSetUploadPartsCommand = async ( input: ListReadSetUploadPartsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/upload/{uploadId}/parts"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); + b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/parts"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2392,16 +1879,9 @@ export const se_ListReadSetUploadPartsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2411,24 +1891,15 @@ export const se_ListReferenceImportJobsCommand = async ( input: ListReferenceImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/referencestore/{referenceStoreId}/importjobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "referenceStoreId", - () => input.referenceStoreId!, - "{referenceStoreId}", - false - ); + b.bp("/referencestore/{referenceStoreId}/importjobs"); + b.p("referenceStoreId", () => input.referenceStoreId!, "{referenceStoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2443,16 +1914,9 @@ export const se_ListReferenceImportJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2462,24 +1926,15 @@ export const se_ListReferencesCommand = async ( input: ListReferencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/referencestore/{referenceStoreId}/references"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "referenceStoreId", - () => input.referenceStoreId!, - "{referenceStoreId}", - false - ); + b.bp("/referencestore/{referenceStoreId}/references"); + b.p("referenceStoreId", () => input.referenceStoreId!, "{referenceStoreId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2494,16 +1949,9 @@ export const se_ListReferencesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2513,14 +1961,14 @@ export const se_ListReferenceStoresCommand = async ( input: ListReferenceStoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestores"; + b.bp("/referencestores"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2535,16 +1983,9 @@ export const se_ListReferenceStoresCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2554,13 +1995,13 @@ export const se_ListRunGroupsCommand = async ( input: ListRunGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup"; + b.bp("/runGroup"); const query: any = map({ - name: [, input.name!], - startingToken: [, input.startingToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_n]: [, input[_n]!], + [_sT]: [, input[_sT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2570,16 +2011,9 @@ export const se_ListRunGroupsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2589,15 +2023,15 @@ export const se_ListRunsCommand = async ( input: ListRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run"; + b.bp("/run"); const query: any = map({ - name: [, input.name!], - runGroupId: [, input.runGroupId!], - startingToken: [, input.startingToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - status: [, input.status!], + [_n]: [, input[_n]!], + [_rGI]: [, input[_rGI]!], + [_sT]: [, input[_sT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_s]: [, input[_s]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2607,16 +2041,9 @@ export const se_ListRunsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2626,14 +2053,14 @@ export const se_ListRunTasksCommand = async ( input: ListRunTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}/task"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/run/{id}/task"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - status: [, input.status!], - startingToken: [, input.startingToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_s]: [, input[_s]!], + [_sT]: [, input[_sT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2643,16 +2070,9 @@ export const se_ListRunTasksCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2662,14 +2082,14 @@ export const se_ListSequenceStoresCommand = async ( input: ListSequenceStoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestores"; + b.bp("/sequencestores"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2684,16 +2104,9 @@ export const se_ListSequenceStoresCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2703,14 +2116,14 @@ export const se_ListSharesCommand = async ( input: ListSharesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shares"; + b.bp("/shares"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -2726,16 +2139,9 @@ export const se_ListSharesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2745,10 +2151,10 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2757,15 +2163,9 @@ export const se_ListTagsForResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2775,14 +2175,14 @@ export const se_ListVariantImportJobsCommand = async ( input: ListVariantImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variants"; + b.bp("/import/variants"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2798,16 +2198,9 @@ export const se_ListVariantImportJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2817,14 +2210,14 @@ export const se_ListVariantStoresCommand = async ( input: ListVariantStoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStores"; + b.bp("/variantStores"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -2840,16 +2233,9 @@ export const se_ListVariantStoresCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2859,14 +2245,14 @@ export const se_ListWorkflowsCommand = async ( input: ListWorkflowsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow"; + b.bp("/workflow"); const query: any = map({ - type: [, input.type!], - name: [, input.name!], - startingToken: [, input.startingToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_t]: [, input[_t]!], + [_n]: [, input[_n]!], + [_sT]: [, input[_sT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2876,16 +2262,9 @@ export const se_ListWorkflowsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2895,11 +2274,11 @@ export const se_StartAnnotationImportJobCommand = async ( input: StartAnnotationImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation"; + b.bp("/import/annotation"); let body: any; body = JSON.stringify( take(input, { @@ -2919,15 +2298,9 @@ export const se_StartAnnotationImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2937,21 +2310,12 @@ export const se_StartReadSetActivationJobCommand = async ( input: StartReadSetActivationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/activationjob"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/activationjob"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2966,15 +2330,9 @@ export const se_StartReadSetActivationJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2984,21 +2342,12 @@ export const se_StartReadSetExportJobCommand = async ( input: StartReadSetExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/exportjob"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/exportjob"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3015,15 +2364,9 @@ export const se_StartReadSetExportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3033,21 +2376,12 @@ export const se_StartReadSetImportJobCommand = async ( input: StartReadSetImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/importjob"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); + b.bp("/sequencestore/{sequenceStoreId}/importjob"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3063,15 +2397,9 @@ export const se_StartReadSetImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3081,21 +2409,12 @@ export const se_StartReferenceImportJobCommand = async ( input: StartReferenceImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/referencestore/{referenceStoreId}/importjob"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "referenceStoreId", - () => input.referenceStoreId!, - "{referenceStoreId}", - false - ); + b.bp("/referencestore/{referenceStoreId}/importjob"); + b.p("referenceStoreId", () => input.referenceStoreId!, "{referenceStoreId}", false); let body: any; body = JSON.stringify( take(input, { @@ -3111,15 +2430,9 @@ export const se_StartReferenceImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3129,11 +2442,11 @@ export const se_StartRunCommand = async ( input: StartRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run"; + b.bp("/run"); let body: any; body = JSON.stringify( take(input, { @@ -3160,15 +2473,9 @@ export const se_StartRunCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3178,11 +2485,11 @@ export const se_StartVariantImportJobCommand = async ( input: StartVariantImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant"; + b.bp("/import/variant"); let body: any; body = JSON.stringify( take(input, { @@ -3200,15 +2507,9 @@ export const se_StartVariantImportJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3218,12 +2519,12 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -3237,15 +2538,9 @@ export const se_TagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3255,14 +2550,14 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -3273,16 +2568,9 @@ export const se_UntagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3292,12 +2580,12 @@ export const se_UpdateAnnotationStoreCommand = async ( input: UpdateAnnotationStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/annotationStore/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -3311,15 +2599,9 @@ export const se_UpdateAnnotationStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3329,15 +2611,13 @@ export const se_UpdateAnnotationStoreVersionCommand = async ( input: UpdateAnnotationStoreVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/annotationStore/{name}/version/{versionName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName!, "{versionName}", false); + b.bp("/annotationStore/{name}/version/{versionName}"); + b.p("name", () => input.name!, "{name}", false); + b.p("versionName", () => input.versionName!, "{versionName}", false); let body: any; body = JSON.stringify( take(input, { @@ -3351,15 +2631,9 @@ export const se_UpdateAnnotationStoreVersionCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3369,12 +2643,12 @@ export const se_UpdateRunGroupCommand = async ( input: UpdateRunGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/runGroup/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3392,15 +2666,9 @@ export const se_UpdateRunGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3410,12 +2678,12 @@ export const se_UpdateVariantStoreCommand = async ( input: UpdateVariantStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name!, "{name}", false); + b.bp("/variantStore/{name}"); + b.p("name", () => input.name!, "{name}", false); let body: any; body = JSON.stringify( take(input, { @@ -3429,15 +2697,9 @@ export const se_UpdateVariantStoreCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3447,12 +2709,12 @@ export const se_UpdateWorkflowCommand = async ( input: UpdateWorkflowCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/workflow/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -3467,15 +2729,9 @@ export const se_UpdateWorkflowCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3485,26 +2741,17 @@ export const se_UploadReadSetPartCommand = async ( input: UploadReadSetPartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sequencestore/{sequenceStoreId}/upload/{uploadId}/part"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "sequenceStoreId", - () => input.sequenceStoreId!, - "{sequenceStoreId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "uploadId", () => input.uploadId!, "{uploadId}", false); + b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/part"); + b.p("sequenceStoreId", () => input.sequenceStoreId!, "{sequenceStoreId}", false); + b.p("uploadId", () => input.uploadId!, "{uploadId}", false); const query: any = map({ - partSource: [, __expectNonNull(input.partSource!, `partSource`)], - partNumber: [__expectNonNull(input.partNumber, `partNumber`) != null, () => input.partNumber!.toString()], + [_pS]: [, __expectNonNull(input[_pS]!, `partSource`)], + [_pN]: [__expectNonNull(input.partNumber, `partNumber`) != null, () => input[_pN]!.toString()], }); let body: any; if (input.payload !== undefined) { @@ -3517,16 +2764,9 @@ export const se_UploadReadSetPartCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -10075,6 +9315,21 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _e = "export"; +const _f = "force"; +const _fi = "file"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _pN = "partNumber"; +const _pS = "partSource"; +const _r = "range"; +const _rGI = "runGroupId"; +const _s = "status"; +const _sT = "startingToken"; +const _t = "type"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-opensearch/package.json b/clients/client-opensearch/package.json index ce3cd737b2e5..dfa252bef4af 100644 --- a/clients/client-opensearch/package.json +++ b/clients/client-opensearch/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-opensearch/src/protocols/Aws_restJson1.ts b/clients/client-opensearch/src/protocols/Aws_restJson1.ts index 4570142cfee4..df07cce9f5d9 100644 --- a/clients/client-opensearch/src/protocols/Aws_restJson1.ts +++ b/clients/client-opensearch/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -285,29 +286,13 @@ export const se_AcceptInboundConnectionCommand = async ( input: AcceptInboundConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/accept"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/accept"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -317,14 +302,12 @@ export const se_AddDataSourceCommand = async ( input: AddDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/dataSource"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -333,15 +316,8 @@ export const se_AddDataSourceCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -351,11 +327,11 @@ export const se_AddTagsCommand = async ( input: AddTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/tags"; + b.bp("/2021-01-01/tags"); let body: any; body = JSON.stringify( take(input, { @@ -363,15 +339,8 @@ export const se_AddTagsCommand = async ( TagList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -381,23 +350,14 @@ export const se_AssociatePackageCommand = async ( input: AssociatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/packages/associate/{PackageID}/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/packages/associate/{PackageID}/{DomainName}"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -407,29 +367,20 @@ export const se_AuthorizeVpcEndpointAccessCommand = async ( input: AuthorizeVpcEndpointAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/authorizeVpcEndpointAccess"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/authorizeVpcEndpointAccess"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { Account: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -439,28 +390,19 @@ export const se_CancelServiceSoftwareUpdateCommand = async ( input: CancelServiceSoftwareUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/serviceSoftwareUpdate/cancel"; + b.bp("/2021-01-01/opensearch/serviceSoftwareUpdate/cancel"); let body: any; body = JSON.stringify( take(input, { DomainName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -470,12 +412,11 @@ export const se_CreateDomainCommand = async ( input: CreateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/domain"; + b.bp("/2021-01-01/opensearch/domain"); let body: any; body = JSON.stringify( take(input, { @@ -500,15 +441,8 @@ export const se_CreateDomainCommand = async ( VPCOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -518,13 +452,11 @@ export const se_CreateOutboundConnectionCommand = async ( input: CreateOutboundConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/cc/outboundConnection"; + b.bp("/2021-01-01/opensearch/cc/outboundConnection"); let body: any; body = JSON.stringify( take(input, { @@ -535,15 +467,8 @@ export const se_CreateOutboundConnectionCommand = async ( RemoteDomainInfo: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -553,11 +478,11 @@ export const se_CreatePackageCommand = async ( input: CreatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages"; + b.bp("/2021-01-01/packages"); let body: any; body = JSON.stringify( take(input, { @@ -567,15 +492,8 @@ export const se_CreatePackageCommand = async ( PackageType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -585,12 +503,11 @@ export const se_CreateVpcEndpointCommand = async ( input: CreateVpcEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/vpcEndpoints"; + b.bp("/2021-01-01/opensearch/vpcEndpoints"); let body: any; body = JSON.stringify( take(input, { @@ -599,15 +516,8 @@ export const se_CreateVpcEndpointCommand = async ( VpcOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -617,23 +527,14 @@ export const se_DeleteDataSourceCommand = async ( input: DeleteDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -643,22 +544,13 @@ export const se_DeleteDomainCommand = async ( input: DeleteDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -668,29 +560,13 @@ export const se_DeleteInboundConnectionCommand = async ( input: DeleteInboundConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -700,29 +576,13 @@ export const se_DeleteOutboundConnectionCommand = async ( input: DeleteOutboundConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/cc/outboundConnection/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/2021-01-01/opensearch/cc/outboundConnection/{ConnectionId}"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -732,21 +592,13 @@ export const se_DeletePackageCommand = async ( input: DeletePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages/{PackageID}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); + b.bp("/2021-01-01/packages/{PackageID}"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -756,29 +608,13 @@ export const se_DeleteVpcEndpointCommand = async ( input: DeleteVpcEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/vpcEndpoints/{VpcEndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VpcEndpointId", - () => input.VpcEndpointId!, - "{VpcEndpointId}", - false - ); + b.bp("/2021-01-01/opensearch/vpcEndpoints/{VpcEndpointId}"); + b.p("VpcEndpointId", () => input.VpcEndpointId!, "{VpcEndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -788,22 +624,13 @@ export const se_DescribeDomainCommand = async ( input: DescribeDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -813,14 +640,12 @@ export const se_DescribeDomainAutoTunesCommand = async ( input: DescribeDomainAutoTunesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/autoTunes"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/autoTunes"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -828,15 +653,8 @@ export const se_DescribeDomainAutoTunesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -846,26 +664,16 @@ export const se_DescribeDomainChangeProgressCommand = async ( input: DescribeDomainChangeProgressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/progress"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/progress"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - changeid: [, input.ChangeId!], + [_c]: [, input[_CI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -875,22 +683,13 @@ export const se_DescribeDomainConfigCommand = async ( input: DescribeDomainConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/config"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -900,22 +699,13 @@ export const se_DescribeDomainHealthCommand = async ( input: DescribeDomainHealthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/health"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/health"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -925,22 +715,13 @@ export const se_DescribeDomainNodesCommand = async ( input: DescribeDomainNodesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/nodes"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/nodes"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -950,27 +731,19 @@ export const se_DescribeDomainsCommand = async ( input: DescribeDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/domain-info"; + b.bp("/2021-01-01/opensearch/domain-info"); let body: any; body = JSON.stringify( take(input, { DomainNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -980,27 +753,17 @@ export const se_DescribeDryRunProgressCommand = async ( input: DescribeDryRunProgressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/dryRun"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/dryRun"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - dryRunId: [, input.DryRunId!], - loadDryRunConfig: [() => input.LoadDryRunConfig !== void 0, () => input.LoadDryRunConfig!.toString()], + [_dRI]: [, input[_DRI]!], + [_lDRC]: [() => input.LoadDryRunConfig !== void 0, () => input[_LDRC]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1010,13 +773,11 @@ export const se_DescribeInboundConnectionsCommand = async ( input: DescribeInboundConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/cc/inboundConnection/search"; + b.bp("/2021-01-01/opensearch/cc/inboundConnection/search"); let body: any; body = JSON.stringify( take(input, { @@ -1025,15 +786,8 @@ export const se_DescribeInboundConnectionsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1043,41 +797,17 @@ export const se_DescribeInstanceTypeLimitsCommand = async ( input: DescribeInstanceTypeLimitsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/instanceTypeLimits/{EngineVersion}/{InstanceType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "InstanceType", - () => input.InstanceType!, - "{InstanceType}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EngineVersion", - () => input.EngineVersion!, - "{EngineVersion}", - false - ); + b.bp("/2021-01-01/opensearch/instanceTypeLimits/{EngineVersion}/{InstanceType}"); + b.p("InstanceType", () => input.InstanceType!, "{InstanceType}", false); + b.p("EngineVersion", () => input.EngineVersion!, "{EngineVersion}", false); const query: any = map({ - domainName: [, input.DomainName!], + [_dN]: [, input[_DN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1087,13 +817,11 @@ export const se_DescribeOutboundConnectionsCommand = async ( input: DescribeOutboundConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/cc/outboundConnection/search"; + b.bp("/2021-01-01/opensearch/cc/outboundConnection/search"); let body: any; body = JSON.stringify( take(input, { @@ -1102,15 +830,8 @@ export const se_DescribeOutboundConnectionsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1120,12 +841,11 @@ export const se_DescribePackagesCommand = async ( input: DescribePackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages/describe"; + b.bp("/2021-01-01/packages/describe"); let body: any; body = JSON.stringify( take(input, { @@ -1134,15 +854,8 @@ export const se_DescribePackagesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1152,27 +865,17 @@ export const se_DescribeReservedInstanceOfferingsCommand = async ( input: DescribeReservedInstanceOfferingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/reservedInstanceOfferings"; + b.bp("/2021-01-01/opensearch/reservedInstanceOfferings"); const query: any = map({ - offeringId: [, input.ReservedInstanceOfferingId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_oI]: [, input[_RIOI]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1182,26 +885,17 @@ export const se_DescribeReservedInstancesCommand = async ( input: DescribeReservedInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/reservedInstances"; + b.bp("/2021-01-01/opensearch/reservedInstances"); const query: any = map({ - reservationId: [, input.ReservedInstanceId!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_rI]: [, input[_RII]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1211,28 +905,19 @@ export const se_DescribeVpcEndpointsCommand = async ( input: DescribeVpcEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/vpcEndpoints/describe"; + b.bp("/2021-01-01/opensearch/vpcEndpoints/describe"); let body: any; body = JSON.stringify( take(input, { VpcEndpointIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1242,23 +927,14 @@ export const se_DissociatePackageCommand = async ( input: DissociatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/packages/dissociate/{PackageID}/{DomainName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/packages/dissociate/{PackageID}/{DomainName}"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1268,24 +944,15 @@ export const se_GetCompatibleVersionsCommand = async ( input: GetCompatibleVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/compatibleVersions"; + b.bp("/2021-01-01/opensearch/compatibleVersions"); const query: any = map({ - domainName: [, input.DomainName!], + [_dN]: [, input[_DN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1295,23 +962,14 @@ export const se_GetDataSourceCommand = async ( input: GetDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1321,26 +979,16 @@ export const se_GetDomainMaintenanceStatusCommand = async ( input: GetDomainMaintenanceStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - maintenanceId: [, __expectNonNull(input.MaintenanceId!, `MaintenanceId`)], + [_mI]: [, __expectNonNull(input[_MI]!, `MaintenanceId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1350,26 +998,17 @@ export const se_GetPackageVersionHistoryCommand = async ( input: GetPackageVersionHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages/{PackageID}/history"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); + b.bp("/2021-01-01/packages/{PackageID}/history"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1379,27 +1018,17 @@ export const se_GetUpgradeHistoryCommand = async ( input: GetUpgradeHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/upgradeDomain/{DomainName}/history"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/upgradeDomain/{DomainName}/history"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1409,22 +1038,13 @@ export const se_GetUpgradeStatusCommand = async ( input: GetUpgradeStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/upgradeDomain/{DomainName}/status"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/upgradeDomain/{DomainName}/status"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1434,22 +1054,13 @@ export const se_ListDataSourcesCommand = async ( input: ListDataSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/dataSource"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1459,29 +1070,19 @@ export const se_ListDomainMaintenancesCommand = async ( input: ListDomainMaintenancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/domainMaintenances"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/domainMaintenances"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - action: [, input.Action!], - status: [, input.Status!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_a]: [, input[_A]!], + [_s]: [, input[_S]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1491,23 +1092,15 @@ export const se_ListDomainNamesCommand = async ( input: ListDomainNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/domain"; + b.bp("/2021-01-01/domain"); const query: any = map({ - engineType: [, input.EngineType!], + [_eT]: [, input[_ET]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1517,26 +1110,17 @@ export const se_ListDomainsForPackageCommand = async ( input: ListDomainsForPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages/{PackageID}/domains"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", () => input.PackageID!, "{PackageID}", false); + b.bp("/2021-01-01/packages/{PackageID}/domains"); + b.p("PackageID", () => input.PackageID!, "{PackageID}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1546,37 +1130,20 @@ export const se_ListInstanceTypeDetailsCommand = async ( input: ListInstanceTypeDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/instanceTypeDetails/{EngineVersion}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EngineVersion", - () => input.EngineVersion!, - "{EngineVersion}", - false - ); + b.bp("/2021-01-01/opensearch/instanceTypeDetails/{EngineVersion}"); + b.p("EngineVersion", () => input.EngineVersion!, "{EngineVersion}", false); const query: any = map({ - domainName: [, input.DomainName!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - retrieveAZs: [() => input.RetrieveAZs !== void 0, () => input.RetrieveAZs!.toString()], - instanceType: [, input.InstanceType!], + [_dN]: [, input[_DN]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_rAZ]: [() => input.RetrieveAZs !== void 0, () => input[_RAZ]!.toString()], + [_iT]: [, input[_IT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1586,26 +1153,17 @@ export const se_ListPackagesForDomainCommand = async ( input: ListPackagesForDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/domain/{DomainName}/packages"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/domain/{DomainName}/packages"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1615,27 +1173,17 @@ export const se_ListScheduledActionsCommand = async ( input: ListScheduledActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/scheduledActions"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/scheduledActions"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1645,23 +1193,15 @@ export const se_ListTagsCommand = async ( input: ListTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/tags"; + b.bp("/2021-01-01/tags"); const query: any = map({ - arn: [, __expectNonNull(input.ARN!, `ARN`)], + [_ar]: [, __expectNonNull(input[_ARN]!, `ARN`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1671,25 +1211,16 @@ export const se_ListVersionsCommand = async ( input: ListVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/versions"; + b.bp("/2021-01-01/opensearch/versions"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1699,26 +1230,16 @@ export const se_ListVpcEndpointAccessCommand = async ( input: ListVpcEndpointAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/listVpcEndpointAccess"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/listVpcEndpointAccess"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1728,24 +1249,15 @@ export const se_ListVpcEndpointsCommand = async ( input: ListVpcEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/vpcEndpoints"; + b.bp("/2021-01-01/opensearch/vpcEndpoints"); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1755,26 +1267,16 @@ export const se_ListVpcEndpointsForDomainCommand = async ( input: ListVpcEndpointsForDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/vpcEndpoints"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/vpcEndpoints"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1784,13 +1286,11 @@ export const se_PurchaseReservedInstanceOfferingCommand = async ( input: PurchaseReservedInstanceOfferingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/purchaseReservedInstanceOffering"; + b.bp("/2021-01-01/opensearch/purchaseReservedInstanceOffering"); let body: any; body = JSON.stringify( take(input, { @@ -1799,15 +1299,8 @@ export const se_PurchaseReservedInstanceOfferingCommand = async ( ReservedInstanceOfferingId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1817,29 +1310,13 @@ export const se_RejectInboundConnectionCommand = async ( input: RejectInboundConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/reject"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/reject"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1849,12 +1326,11 @@ export const se_RemoveTagsCommand = async ( input: RemoveTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/tags-removal"; + b.bp("/2021-01-01/tags-removal"); let body: any; body = JSON.stringify( take(input, { @@ -1862,15 +1338,8 @@ export const se_RemoveTagsCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1880,29 +1349,20 @@ export const se_RevokeVpcEndpointAccessCommand = async ( input: RevokeVpcEndpointAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/revokeVpcEndpointAccess"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/revokeVpcEndpointAccess"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { Account: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1912,14 +1372,12 @@ export const se_StartDomainMaintenanceCommand = async ( input: StartDomainMaintenanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1927,15 +1385,8 @@ export const se_StartDomainMaintenanceCommand = async ( NodeId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1945,13 +1396,11 @@ export const se_StartServiceSoftwareUpdateCommand = async ( input: StartServiceSoftwareUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/serviceSoftwareUpdate/start"; + b.bp("/2021-01-01/opensearch/serviceSoftwareUpdate/start"); let body: any; body = JSON.stringify( take(input, { @@ -1960,15 +1409,8 @@ export const se_StartServiceSoftwareUpdateCommand = async ( ScheduleAt: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1978,15 +1420,13 @@ export const se_UpdateDataSourceCommand = async ( input: UpdateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -1994,15 +1434,8 @@ export const se_UpdateDataSourceCommand = async ( Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2012,14 +1445,12 @@ export const se_UpdateDomainConfigCommand = async ( input: UpdateDomainConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/config"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/config"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2043,15 +1474,8 @@ export const se_UpdateDomainConfigCommand = async ( VPCOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2061,12 +1485,11 @@ export const se_UpdatePackageCommand = async ( input: UpdatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/packages/update"; + b.bp("/2021-01-01/packages/update"); let body: any; body = JSON.stringify( take(input, { @@ -2076,15 +1499,8 @@ export const se_UpdatePackageCommand = async ( PackageSource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2094,14 +1510,12 @@ export const se_UpdateScheduledActionCommand = async ( input: UpdateScheduledActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/domain/{DomainName}/scheduledAction/update"; - resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false); + b.bp("/2021-01-01/opensearch/domain/{DomainName}/scheduledAction/update"); + b.p("DomainName", () => input.DomainName!, "{DomainName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2111,15 +1525,8 @@ export const se_UpdateScheduledActionCommand = async ( ScheduleAt: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2129,13 +1536,11 @@ export const se_UpdateVpcEndpointCommand = async ( input: UpdateVpcEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2021-01-01/opensearch/vpcEndpoints/update"; + b.bp("/2021-01-01/opensearch/vpcEndpoints/update"); let body: any; body = JSON.stringify( take(input, { @@ -2143,15 +1548,8 @@ export const se_UpdateVpcEndpointCommand = async ( VpcOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2161,12 +1559,11 @@ export const se_UpgradeDomainCommand = async ( input: UpgradeDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/upgradeDomain"; + b.bp("/2021-01-01/opensearch/upgradeDomain"); let body: any; body = JSON.stringify( take(input, { @@ -2176,15 +1573,8 @@ export const se_UpgradeDomainCommand = async ( TargetVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7056,6 +6446,37 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Action"; +const _ARN = "ARN"; +const _CI = "ChangeId"; +const _DN = "DomainName"; +const _DRI = "DryRunId"; +const _ET = "EngineType"; +const _IT = "InstanceType"; +const _LDRC = "LoadDryRunConfig"; +const _MI = "MaintenanceId"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RAZ = "RetrieveAZs"; +const _RII = "ReservedInstanceId"; +const _RIOI = "ReservedInstanceOfferingId"; +const _S = "Status"; +const _a = "action"; +const _ar = "arn"; +const _c = "changeid"; +const _dN = "domainName"; +const _dRI = "dryRunId"; +const _eT = "engineType"; +const _iT = "instanceType"; +const _lDRC = "loadDryRunConfig"; +const _mI = "maintenanceId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _oI = "offeringId"; +const _rAZ = "retrieveAZs"; +const _rI = "reservationId"; +const _s = "status"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-opensearchserverless/src/models/models_0.ts b/clients/client-opensearchserverless/src/models/models_0.ts index a0f192f7fce4..83bf55bf7e44 100644 --- a/clients/client-opensearchserverless/src/models/models_0.ts +++ b/clients/client-opensearchserverless/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { OpenSearchServerlessServiceException as __BaseException } from "./OpenSearchServerlessServiceException"; diff --git a/clients/client-osis/package.json b/clients/client-osis/package.json index cfe9fc253f62..0e37b525e49a 100644 --- a/clients/client-osis/package.json +++ b/clients/client-osis/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-osis/src/protocols/Aws_restJson1.ts b/clients/client-osis/src/protocols/Aws_restJson1.ts index 23ef977e837b..98535f40a0f0 100644 --- a/clients/client-osis/src/protocols/Aws_restJson1.ts +++ b/clients/client-osis/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -78,12 +79,11 @@ export const se_CreatePipelineCommand = async ( input: CreatePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/createPipeline"; + b.bp("/2022-01-01/osis/createPipeline"); let body: any; body = JSON.stringify( take(input, { @@ -98,15 +98,8 @@ export const se_CreatePipelineCommand = async ( VpcOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -116,29 +109,13 @@ export const se_DeletePipelineCommand = async ( input: DeletePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2022-01-01/osis/deletePipeline/{PipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PipelineName", - () => input.PipelineName!, - "{PipelineName}", - false - ); + b.bp("/2022-01-01/osis/deletePipeline/{PipelineName}"); + b.p("PipelineName", () => input.PipelineName!, "{PipelineName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -148,29 +125,13 @@ export const se_GetPipelineCommand = async ( input: GetPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2022-01-01/osis/getPipeline/{PipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PipelineName", - () => input.PipelineName!, - "{PipelineName}", - false - ); + b.bp("/2022-01-01/osis/getPipeline/{PipelineName}"); + b.p("PipelineName", () => input.PipelineName!, "{PipelineName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -180,29 +141,13 @@ export const se_GetPipelineBlueprintCommand = async ( input: GetPipelineBlueprintCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2022-01-01/osis/getPipelineBlueprint/{BlueprintName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "BlueprintName", - () => input.BlueprintName!, - "{BlueprintName}", - false - ); + b.bp("/2022-01-01/osis/getPipelineBlueprint/{BlueprintName}"); + b.p("BlueprintName", () => input.BlueprintName!, "{BlueprintName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -212,29 +157,13 @@ export const se_GetPipelineChangeProgressCommand = async ( input: GetPipelineChangeProgressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2022-01-01/osis/getPipelineChangeProgress/{PipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PipelineName", - () => input.PipelineName!, - "{PipelineName}", - false - ); + b.bp("/2022-01-01/osis/getPipelineChangeProgress/{PipelineName}"); + b.p("PipelineName", () => input.PipelineName!, "{PipelineName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -244,23 +173,15 @@ export const se_ListPipelineBlueprintsCommand = async ( input: ListPipelineBlueprintsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listPipelineBlueprints"; + b.bp("/2022-01-01/osis/listPipelineBlueprints"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -270,25 +191,16 @@ export const se_ListPipelinesCommand = async ( input: ListPipelinesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listPipelines"; + b.bp("/2022-01-01/osis/listPipelines"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -298,24 +210,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/listTagsForResource"; + b.bp("/2022-01-01/osis/listTagsForResource"); const query: any = map({ - arn: [, __expectNonNull(input.Arn!, `Arn`)], + [_a]: [, __expectNonNull(input[_A]!, `Arn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -325,29 +228,13 @@ export const se_StartPipelineCommand = async ( input: StartPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2022-01-01/osis/startPipeline/{PipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PipelineName", - () => input.PipelineName!, - "{PipelineName}", - false - ); + b.bp("/2022-01-01/osis/startPipeline/{PipelineName}"); + b.p("PipelineName", () => input.PipelineName!, "{PipelineName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -357,29 +244,13 @@ export const se_StopPipelineCommand = async ( input: StopPipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2022-01-01/osis/stopPipeline/{PipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PipelineName", - () => input.PipelineName!, - "{PipelineName}", - false - ); + b.bp("/2022-01-01/osis/stopPipeline/{PipelineName}"); + b.p("PipelineName", () => input.PipelineName!, "{PipelineName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -389,14 +260,13 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/tagResource"; + b.bp("/2022-01-01/osis/tagResource"); const query: any = map({ - arn: [, __expectNonNull(input.Arn!, `Arn`)], + [_a]: [, __expectNonNull(input[_A]!, `Arn`)], }); let body: any; body = JSON.stringify( @@ -404,16 +274,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -423,14 +285,13 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/untagResource"; + b.bp("/2022-01-01/osis/untagResource"); const query: any = map({ - arn: [, __expectNonNull(input.Arn!, `Arn`)], + [_a]: [, __expectNonNull(input[_A]!, `Arn`)], }); let body: any; body = JSON.stringify( @@ -438,16 +299,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -457,21 +310,12 @@ export const se_UpdatePipelineCommand = async ( input: UpdatePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2022-01-01/osis/updatePipeline/{PipelineName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PipelineName", - () => input.PipelineName!, - "{PipelineName}", - false - ); + b.bp("/2022-01-01/osis/updatePipeline/{PipelineName}"); + b.p("PipelineName", () => input.PipelineName!, "{PipelineName}", false); let body: any; body = JSON.stringify( take(input, { @@ -483,15 +327,8 @@ export const se_UpdatePipelineCommand = async ( PipelineConfigurationBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -501,27 +338,19 @@ export const se_ValidatePipelineCommand = async ( input: ValidatePipelineCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2022-01-01/osis/validatePipeline"; + b.bp("/2022-01-01/osis/validatePipeline"); let body: any; body = JSON.stringify( take(input, { PipelineConfigurationBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1648,6 +1477,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Arn"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _a = "arn"; +const _mR = "maxResults"; +const _nT = "nextToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-outposts/package.json b/clients/client-outposts/package.json index fba66f736fb0..03593eb7d32b 100644 --- a/clients/client-outposts/package.json +++ b/clients/client-outposts/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-outposts/src/protocols/Aws_restJson1.ts b/clients/client-outposts/src/protocols/Aws_restJson1.ts index b6deac683fd3..2fbe9a59ecdb 100644 --- a/clients/client-outposts/src/protocols/Aws_restJson1.ts +++ b/clients/client-outposts/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -83,20 +84,13 @@ export const se_CancelOrderCommand = async ( input: CancelOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "OrderId", () => input.OrderId!, "{OrderId}", false); + b.bp("/orders/{OrderId}/cancel"); + b.p("OrderId", () => input.OrderId!, "{OrderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -106,11 +100,11 @@ export const se_CreateOrderCommand = async ( input: CreateOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders"; + b.bp("/orders"); let body: any; body = JSON.stringify( take(input, { @@ -120,15 +114,8 @@ export const se_CreateOrderCommand = async ( PaymentTerm: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -138,11 +125,11 @@ export const se_CreateOutpostCommand = async ( input: CreateOutpostCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts"; + b.bp("/outposts"); let body: any; body = JSON.stringify( take(input, { @@ -155,15 +142,8 @@ export const se_CreateOutpostCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -173,11 +153,11 @@ export const se_CreateSiteCommand = async ( input: CreateSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites"; + b.bp("/sites"); let body: any; body = JSON.stringify( take(input, { @@ -190,15 +170,8 @@ export const se_CreateSiteCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -208,20 +181,13 @@ export const se_DeleteOutpostCommand = async ( input: DeleteOutpostCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId!, "{OutpostId}", false); + b.bp("/outposts/{OutpostId}"); + b.p("OutpostId", () => input.OutpostId!, "{OutpostId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -231,20 +197,13 @@ export const se_DeleteSiteCommand = async ( input: DeleteSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/sites/{SiteId}"); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -254,28 +213,13 @@ export const se_GetCatalogItemCommand = async ( input: GetCatalogItemCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/item/{CatalogItemId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CatalogItemId", - () => input.CatalogItemId!, - "{CatalogItemId}", - false - ); + b.bp("/catalog/item/{CatalogItemId}"); + b.p("CatalogItemId", () => input.CatalogItemId!, "{CatalogItemId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -285,28 +229,13 @@ export const se_GetConnectionCommand = async ( input: GetConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections/{ConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectionId", - () => input.ConnectionId!, - "{ConnectionId}", - false - ); + b.bp("/connections/{ConnectionId}"); + b.p("ConnectionId", () => input.ConnectionId!, "{ConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -316,20 +245,13 @@ export const se_GetOrderCommand = async ( input: GetOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "OrderId", () => input.OrderId!, "{OrderId}", false); + b.bp("/orders/{OrderId}"); + b.p("OrderId", () => input.OrderId!, "{OrderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -339,20 +261,13 @@ export const se_GetOutpostCommand = async ( input: GetOutpostCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId!, "{OutpostId}", false); + b.bp("/outposts/{OutpostId}"); + b.p("OutpostId", () => input.OutpostId!, "{OutpostId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -362,26 +277,17 @@ export const se_GetOutpostInstanceTypesCommand = async ( input: GetOutpostInstanceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}/instanceTypes"; - resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId!, "{OutpostId}", false); + b.bp("/outposts/{OutpostId}/instanceTypes"); + b.p("OutpostId", () => input.OutpostId!, "{OutpostId}", false); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -391,20 +297,13 @@ export const se_GetSiteCommand = async ( input: GetSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/sites/{SiteId}"); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -414,24 +313,16 @@ export const se_GetSiteAddressCommand = async ( input: GetSiteAddressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address"; - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/sites/{SiteId}/address"); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); const query: any = map({ - AddressType: [, __expectNonNull(input.AddressType!, `AddressType`)], + [_AT]: [, __expectNonNull(input[_AT]!, `AddressType`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -441,41 +332,19 @@ export const se_ListAssetsCommand = async ( input: ListAssetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostIdentifier}/assets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OutpostIdentifier", - () => input.OutpostIdentifier!, - "{OutpostIdentifier}", - false - ); + b.bp("/outposts/{OutpostIdentifier}/assets"); + b.p("OutpostIdentifier", () => input.OutpostIdentifier!, "{OutpostIdentifier}", false); const query: any = map({ - HostIdFilter: [ - () => input.HostIdFilter !== void 0, - () => (input.HostIdFilter! || []).map((_entry) => _entry as any), - ], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], - StatusFilter: [ - () => input.StatusFilter !== void 0, - () => (input.StatusFilter! || []).map((_entry) => _entry as any), - ], + [_HIF]: [() => input.HostIdFilter !== void 0, () => (input[_HIF]! || []).map((_entry) => _entry as any)], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], + [_SF]: [() => input.StatusFilter !== void 0, () => (input[_SF]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -485,36 +354,19 @@ export const se_ListCatalogItemsCommand = async ( input: ListCatalogItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/items"; + b.bp("/catalog/items"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - ItemClassFilter: [ - () => input.ItemClassFilter !== void 0, - () => (input.ItemClassFilter! || []).map((_entry) => _entry as any), - ], - SupportedStorageFilter: [ - () => input.SupportedStorageFilter !== void 0, - () => (input.SupportedStorageFilter! || []).map((_entry) => _entry as any), - ], - EC2FamilyFilter: [ - () => input.EC2FamilyFilter !== void 0, - () => (input.EC2FamilyFilter! || []).map((_entry) => _entry as any), - ], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_ICF]: [() => input.ItemClassFilter !== void 0, () => (input[_ICF]! || []).map((_entry) => _entry as any)], + [_SSF]: [() => input.SupportedStorageFilter !== void 0, () => (input[_SSF]! || []).map((_entry) => _entry as any)], + [_ECFF]: [() => input.EC2FamilyFilter !== void 0, () => (input[_ECFF]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -524,25 +376,17 @@ export const se_ListOrdersCommand = async ( input: ListOrdersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-orders"; + b.bp("/list-orders"); const query: any = map({ - OutpostIdentifierFilter: [, input.OutpostIdentifierFilter!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_OIF]: [, input[_OIF]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -552,36 +396,22 @@ export const se_ListOutpostsCommand = async ( input: ListOutpostsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts"; + b.bp("/outposts"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - LifeCycleStatusFilter: [ - () => input.LifeCycleStatusFilter !== void 0, - () => (input.LifeCycleStatusFilter! || []).map((_entry) => _entry as any), - ], - AvailabilityZoneFilter: [ - () => input.AvailabilityZoneFilter !== void 0, - () => (input.AvailabilityZoneFilter! || []).map((_entry) => _entry as any), - ], - AvailabilityZoneIdFilter: [ + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_LCSF]: [() => input.LifeCycleStatusFilter !== void 0, () => (input[_LCSF]! || []).map((_entry) => _entry as any)], + [_AZF]: [() => input.AvailabilityZoneFilter !== void 0, () => (input[_AZF]! || []).map((_entry) => _entry as any)], + [_AZIF]: [ () => input.AvailabilityZoneIdFilter !== void 0, - () => (input.AvailabilityZoneIdFilter! || []).map((_entry) => _entry as any), + () => (input[_AZIF]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -591,36 +421,28 @@ export const se_ListSitesCommand = async ( input: ListSitesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites"; + b.bp("/sites"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - OperatingAddressCountryCodeFilter: [ + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_OACCF]: [ () => input.OperatingAddressCountryCodeFilter !== void 0, - () => (input.OperatingAddressCountryCodeFilter! || []).map((_entry) => _entry as any), + () => (input[_OACCF]! || []).map((_entry) => _entry as any), ], - OperatingAddressStateOrRegionFilter: [ + [_OASORF]: [ () => input.OperatingAddressStateOrRegionFilter !== void 0, - () => (input.OperatingAddressStateOrRegionFilter! || []).map((_entry) => _entry as any), + () => (input[_OASORF]! || []).map((_entry) => _entry as any), ], - OperatingAddressCityFilter: [ + [_OACF]: [ () => input.OperatingAddressCityFilter !== void 0, - () => (input.OperatingAddressCityFilter! || []).map((_entry) => _entry as any), + () => (input[_OACF]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -630,20 +452,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -653,11 +468,11 @@ export const se_StartConnectionCommand = async ( input: StartConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections"; + b.bp("/connections"); let body: any; body = JSON.stringify( take(input, { @@ -667,15 +482,8 @@ export const se_StartConnectionCommand = async ( NetworkInterfaceDeviceIndex: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -685,27 +493,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -715,27 +516,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -745,12 +538,12 @@ export const se_UpdateOutpostCommand = async ( input: UpdateOutpostCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId!, "{OutpostId}", false); + b.bp("/outposts/{OutpostId}"); + b.p("OutpostId", () => input.OutpostId!, "{OutpostId}", false); let body: any; body = JSON.stringify( take(input, { @@ -759,15 +552,8 @@ export const se_UpdateOutpostCommand = async ( SupportedHardwareType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -777,12 +563,12 @@ export const se_UpdateSiteCommand = async ( input: UpdateSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/sites/{SiteId}"); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); let body: any; body = JSON.stringify( take(input, { @@ -791,15 +577,8 @@ export const se_UpdateSiteCommand = async ( Notes: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -809,12 +588,12 @@ export const se_UpdateSiteAddressCommand = async ( input: UpdateSiteAddressCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address"; - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/sites/{SiteId}/address"); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); let body: any; body = JSON.stringify( take(input, { @@ -822,15 +601,8 @@ export const se_UpdateSiteAddressCommand = async ( AddressType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -840,13 +612,12 @@ export const se_UpdateSiteRackPhysicalPropertiesCommand = async ( input: UpdateSiteRackPhysicalPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/rackPhysicalProperties"; - resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId!, "{SiteId}", false); + b.bp("/sites/{SiteId}/rackPhysicalProperties"); + b.p("SiteId", () => input.SiteId!, "{SiteId}", false); let body: any; body = JSON.stringify( take(input, { @@ -861,15 +632,8 @@ export const se_UpdateSiteRackPhysicalPropertiesCommand = async ( UplinkGbps: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2629,6 +2393,24 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AT = "AddressType"; +const _AZF = "AvailabilityZoneFilter"; +const _AZIF = "AvailabilityZoneIdFilter"; +const _ECFF = "EC2FamilyFilter"; +const _HIF = "HostIdFilter"; +const _ICF = "ItemClassFilter"; +const _LCSF = "LifeCycleStatusFilter"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _OACCF = "OperatingAddressCountryCodeFilter"; +const _OACF = "OperatingAddressCityFilter"; +const _OASORF = "OperatingAddressStateOrRegionFilter"; +const _OIF = "OutpostIdentifierFilter"; +const _SF = "StatusFilter"; +const _SSF = "SupportedStorageFilter"; +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-panorama/package.json b/clients/client-panorama/package.json index b9828c1fadf5..67a63ca6a7d5 100644 --- a/clients/client-panorama/package.json +++ b/clients/client-panorama/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-panorama/src/protocols/Aws_restJson1.ts b/clients/client-panorama/src/protocols/Aws_restJson1.ts index 6052e09d0190..9b6fdad5c995 100644 --- a/clients/client-panorama/src/protocols/Aws_restJson1.ts +++ b/clients/client-panorama/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -159,11 +160,11 @@ export const se_CreateApplicationInstanceCommand = async ( input: CreateApplicationInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/application-instances"; + b.bp("/application-instances"); let body: any; body = JSON.stringify( take(input, { @@ -177,15 +178,8 @@ export const se_CreateApplicationInstanceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -195,11 +189,11 @@ export const se_CreateJobForDevicesCommand = async ( input: CreateJobForDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); let body: any; body = JSON.stringify( take(input, { @@ -208,15 +202,8 @@ export const se_CreateJobForDevicesCommand = async ( JobType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -226,11 +213,11 @@ export const se_CreateNodeFromTemplateJobCommand = async ( input: CreateNodeFromTemplateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/template-job"; + b.bp("/packages/template-job"); let body: any; body = JSON.stringify( take(input, { @@ -243,15 +230,8 @@ export const se_CreateNodeFromTemplateJobCommand = async ( TemplateType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -261,11 +241,11 @@ export const se_CreatePackageCommand = async ( input: CreatePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages"; + b.bp("/packages"); let body: any; body = JSON.stringify( take(input, { @@ -273,15 +253,8 @@ export const se_CreatePackageCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -291,11 +264,11 @@ export const se_CreatePackageImportJobCommand = async ( input: CreatePackageImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/import-jobs"; + b.bp("/packages/import-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -306,15 +279,8 @@ export const se_CreatePackageImportJobCommand = async ( OutputConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -324,20 +290,13 @@ export const se_DeleteDeviceCommand = async ( input: DeleteDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -347,24 +306,16 @@ export const se_DeletePackageCommand = async ( input: DeletePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{PackageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageId", () => input.PackageId!, "{PackageId}", false); + b.bp("/packages/{PackageId}"); + b.p("PackageId", () => input.PackageId!, "{PackageId}", false); const query: any = map({ - ForceDelete: [() => input.ForceDelete !== void 0, () => input.ForceDelete!.toString()], + [_FD]: [() => input.ForceDelete !== void 0, () => input[_FD]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -374,43 +325,19 @@ export const se_DeregisterPackageVersionCommand = async ( input: DeregisterPackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/packages/{PackageId}/versions/{PackageVersion}/patch/{PatchVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageId", () => input.PackageId!, "{PackageId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PackageVersion", - () => input.PackageVersion!, - "{PackageVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PatchVersion", - () => input.PatchVersion!, - "{PatchVersion}", - false - ); + b.bp("/packages/{PackageId}/versions/{PackageVersion}/patch/{PatchVersion}"); + b.p("PackageId", () => input.PackageId!, "{PackageId}", false); + b.p("PackageVersion", () => input.PackageVersion!, "{PackageVersion}", false); + b.p("PatchVersion", () => input.PatchVersion!, "{PatchVersion}", false); const query: any = map({ - OwnerAccount: [, input.OwnerAccount!], - UpdatedLatestPatchVersion: [, input.UpdatedLatestPatchVersion!], + [_OA]: [, input[_OA]!], + [_ULPV]: [, input[_ULPV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -420,29 +347,13 @@ export const se_DescribeApplicationInstanceCommand = async ( input: DescribeApplicationInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/application-instances/{ApplicationInstanceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationInstanceId", - () => input.ApplicationInstanceId!, - "{ApplicationInstanceId}", - false - ); + b.bp("/application-instances/{ApplicationInstanceId}"); + b.p("ApplicationInstanceId", () => input.ApplicationInstanceId!, "{ApplicationInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -452,29 +363,13 @@ export const se_DescribeApplicationInstanceDetailsCommand = async ( input: DescribeApplicationInstanceDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/application-instances/{ApplicationInstanceId}/details"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationInstanceId", - () => input.ApplicationInstanceId!, - "{ApplicationInstanceId}", - false - ); + b.bp("/application-instances/{ApplicationInstanceId}/details"); + b.p("ApplicationInstanceId", () => input.ApplicationInstanceId!, "{ApplicationInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -484,20 +379,13 @@ export const se_DescribeDeviceCommand = async ( input: DescribeDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -507,20 +395,13 @@ export const se_DescribeDeviceJobCommand = async ( input: DescribeDeviceJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -530,24 +411,16 @@ export const se_DescribeNodeCommand = async ( input: DescribeNodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/nodes/{NodeId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "NodeId", () => input.NodeId!, "{NodeId}", false); + b.bp("/nodes/{NodeId}"); + b.p("NodeId", () => input.NodeId!, "{NodeId}", false); const query: any = map({ - OwnerAccount: [, input.OwnerAccount!], + [_OA]: [, input[_OA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -557,21 +430,13 @@ export const se_DescribeNodeFromTemplateJobCommand = async ( input: DescribeNodeFromTemplateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/template-job/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/packages/template-job/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -581,21 +446,13 @@ export const se_DescribePackageCommand = async ( input: DescribePackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/metadata/{PackageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageId", () => input.PackageId!, "{PackageId}", false); + b.bp("/packages/metadata/{PackageId}"); + b.p("PackageId", () => input.PackageId!, "{PackageId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -605,21 +462,13 @@ export const se_DescribePackageImportJobCommand = async ( input: DescribePackageImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/import-jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/packages/import-jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -629,35 +478,18 @@ export const se_DescribePackageVersionCommand = async ( input: DescribePackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/packages/metadata/{PackageId}/versions/{PackageVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageId", () => input.PackageId!, "{PackageId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PackageVersion", - () => input.PackageVersion!, - "{PackageVersion}", - false - ); + b.bp("/packages/metadata/{PackageId}/versions/{PackageVersion}"); + b.p("PackageId", () => input.PackageId!, "{PackageId}", false); + b.p("PackageVersion", () => input.PackageVersion!, "{PackageVersion}", false); const query: any = map({ - OwnerAccount: [, input.OwnerAccount!], - PatchVersion: [, input.PatchVersion!], + [_OA]: [, input[_OA]!], + [_PV]: [, input[_PV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -667,34 +499,17 @@ export const se_ListApplicationInstanceDependenciesCommand = async ( input: ListApplicationInstanceDependenciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/application-instances/{ApplicationInstanceId}/package-dependencies"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationInstanceId", - () => input.ApplicationInstanceId!, - "{ApplicationInstanceId}", - false - ); + b.bp("/application-instances/{ApplicationInstanceId}/package-dependencies"); + b.p("ApplicationInstanceId", () => input.ApplicationInstanceId!, "{ApplicationInstanceId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -704,34 +519,17 @@ export const se_ListApplicationInstanceNodeInstancesCommand = async ( input: ListApplicationInstanceNodeInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/application-instances/{ApplicationInstanceId}/node-instances"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationInstanceId", - () => input.ApplicationInstanceId!, - "{ApplicationInstanceId}", - false - ); + b.bp("/application-instances/{ApplicationInstanceId}/node-instances"); + b.p("ApplicationInstanceId", () => input.ApplicationInstanceId!, "{ApplicationInstanceId}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -741,26 +539,18 @@ export const se_ListApplicationInstancesCommand = async ( input: ListApplicationInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/application-instances"; + b.bp("/application-instances"); const query: any = map({ - deviceId: [, input.DeviceId!], - statusFilter: [, input.StatusFilter!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_dI]: [, input[_DI]!], + [_sF]: [, input[_SF]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -770,28 +560,20 @@ export const se_ListDevicesCommand = async ( input: ListDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices"; + b.bp("/devices"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - SortBy: [, input.SortBy!], - SortOrder: [, input.SortOrder!], - NameFilter: [, input.NameFilter!], - DeviceAggregatedStatusFilter: [, input.DeviceAggregatedStatusFilter!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_SB]: [, input[_SB]!], + [_SO]: [, input[_SO]!], + [_NF]: [, input[_NF]!], + [_DASF]: [, input[_DASF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -801,25 +583,17 @@ export const se_ListDevicesJobsCommand = async ( input: ListDevicesJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs"; + b.bp("/jobs"); const query: any = map({ - DeviceId: [, input.DeviceId!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_DI]: [, input[_DI]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -829,24 +603,16 @@ export const se_ListNodeFromTemplateJobsCommand = async ( input: ListNodeFromTemplateJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/template-job"; + b.bp("/packages/template-job"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -856,29 +622,21 @@ export const se_ListNodesCommand = async ( input: ListNodesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/nodes"; + b.bp("/nodes"); const query: any = map({ - category: [, input.Category!], - ownerAccount: [, input.OwnerAccount!], - packageName: [, input.PackageName!], - packageVersion: [, input.PackageVersion!], - patchVersion: [, input.PatchVersion!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_c]: [, input[_C]!], + [_oA]: [, input[_OA]!], + [_pN]: [, input[_PN]!], + [_pV]: [, input[_PVa]!], + [_pVa]: [, input[_PV]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -888,24 +646,16 @@ export const se_ListPackageImportJobsCommand = async ( input: ListPackageImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/import-jobs"; + b.bp("/packages/import-jobs"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -915,24 +665,16 @@ export const se_ListPackagesCommand = async ( input: ListPackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages"; + b.bp("/packages"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -942,20 +684,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -965,11 +700,11 @@ export const se_ProvisionDeviceCommand = async ( input: ProvisionDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices"; + b.bp("/devices"); let body: any; body = JSON.stringify( take(input, { @@ -979,15 +714,8 @@ export const se_ProvisionDeviceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -997,30 +725,14 @@ export const se_RegisterPackageVersionCommand = async ( input: RegisterPackageVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/packages/{PackageId}/versions/{PackageVersion}/patch/{PatchVersion}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PackageId", () => input.PackageId!, "{PackageId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PackageVersion", - () => input.PackageVersion!, - "{PackageVersion}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "PatchVersion", - () => input.PatchVersion!, - "{PatchVersion}", - false - ); + b.bp("/packages/{PackageId}/versions/{PackageVersion}/patch/{PatchVersion}"); + b.p("PackageId", () => input.PackageId!, "{PackageId}", false); + b.p("PackageVersion", () => input.PackageVersion!, "{PackageVersion}", false); + b.p("PatchVersion", () => input.PatchVersion!, "{PatchVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -1028,15 +740,8 @@ export const se_RegisterPackageVersionCommand = async ( OwnerAccount: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1046,29 +751,13 @@ export const se_RemoveApplicationInstanceCommand = async ( input: RemoveApplicationInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/application-instances/{ApplicationInstanceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationInstanceId", - () => input.ApplicationInstanceId!, - "{ApplicationInstanceId}", - false - ); + b.bp("/application-instances/{ApplicationInstanceId}"); + b.p("ApplicationInstanceId", () => input.ApplicationInstanceId!, "{ApplicationInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1078,36 +767,20 @@ export const se_SignalApplicationInstanceNodeInstancesCommand = async ( input: SignalApplicationInstanceNodeInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/application-instances/{ApplicationInstanceId}/node-signals"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationInstanceId", - () => input.ApplicationInstanceId!, - "{ApplicationInstanceId}", - false - ); + b.bp("/application-instances/{ApplicationInstanceId}/node-signals"); + b.p("ApplicationInstanceId", () => input.ApplicationInstanceId!, "{ApplicationInstanceId}", false); let body: any; body = JSON.stringify( take(input, { NodeSignals: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1117,27 +790,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1147,27 +813,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1177,27 +835,20 @@ export const se_UpdateDeviceMetadataCommand = async ( input: UpdateDeviceMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{DeviceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId!, "{DeviceId}", false); + b.bp("/devices/{DeviceId}"); + b.p("DeviceId", () => input.DeviceId!, "{DeviceId}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3258,10 +2909,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - RetryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3725,6 +3373,35 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _C = "Category"; +const _DASF = "DeviceAggregatedStatusFilter"; +const _DI = "DeviceId"; +const _FD = "ForceDelete"; +const _MR = "MaxResults"; +const _NF = "NameFilter"; +const _NT = "NextToken"; +const _OA = "OwnerAccount"; +const _PN = "PackageName"; +const _PV = "PatchVersion"; +const _PVa = "PackageVersion"; +const _RAS = "RetryAfterSeconds"; +const _SB = "SortBy"; +const _SF = "StatusFilter"; +const _SO = "SortOrder"; +const _TK = "TagKeys"; +const _ULPV = "UpdatedLatestPatchVersion"; +const _c = "category"; +const _dI = "deviceId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _oA = "ownerAccount"; +const _pN = "packageName"; +const _pV = "packageVersion"; +const _pVa = "patchVersion"; +const _ra = "retry-after"; +const _sF = "statusFilter"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-payment-cryptography-data/package.json b/clients/client-payment-cryptography-data/package.json index 883045327be3..4fdef9277e23 100644 --- a/clients/client-payment-cryptography-data/package.json +++ b/clients/client-payment-cryptography-data/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-payment-cryptography-data/src/protocols/Aws_restJson1.ts b/clients/client-payment-cryptography-data/src/protocols/Aws_restJson1.ts index 58c5252bf6bb..9e9fa4bb9d4c 100644 --- a/clients/client-payment-cryptography-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-payment-cryptography-data/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -99,20 +100,12 @@ export const se_DecryptDataCommand = async ( input: DecryptDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/keys/{KeyIdentifier}/decrypt"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "KeyIdentifier", - () => input.KeyIdentifier!, - "{KeyIdentifier}", - false - ); + b.bp("/keys/{KeyIdentifier}/decrypt"); + b.p("KeyIdentifier", () => input.KeyIdentifier!, "{KeyIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -120,15 +113,8 @@ export const se_DecryptDataCommand = async ( DecryptionAttributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -138,20 +124,12 @@ export const se_EncryptDataCommand = async ( input: EncryptDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/keys/{KeyIdentifier}/encrypt"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "KeyIdentifier", - () => input.KeyIdentifier!, - "{KeyIdentifier}", - false - ); + b.bp("/keys/{KeyIdentifier}/encrypt"); + b.p("KeyIdentifier", () => input.KeyIdentifier!, "{KeyIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -159,15 +137,8 @@ export const se_EncryptDataCommand = async ( PlainText: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -177,12 +148,11 @@ export const se_GenerateCardValidationDataCommand = async ( input: GenerateCardValidationDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cardvalidationdata/generate"; + b.bp("/cardvalidationdata/generate"); let body: any; body = JSON.stringify( take(input, { @@ -192,15 +162,8 @@ export const se_GenerateCardValidationDataCommand = async ( ValidationDataLength: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -210,11 +173,11 @@ export const se_GenerateMacCommand = async ( input: GenerateMacCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mac/generate"; + b.bp("/mac/generate"); let body: any; body = JSON.stringify( take(input, { @@ -224,15 +187,8 @@ export const se_GenerateMacCommand = async ( MessageData: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -242,11 +198,11 @@ export const se_GeneratePinDataCommand = async ( input: GeneratePinDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pindata/generate"; + b.bp("/pindata/generate"); let body: any; body = JSON.stringify( take(input, { @@ -258,15 +214,8 @@ export const se_GeneratePinDataCommand = async ( PrimaryAccountNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -276,20 +225,12 @@ export const se_ReEncryptDataCommand = async ( input: ReEncryptDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/keys/{IncomingKeyIdentifier}/reencrypt"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "IncomingKeyIdentifier", - () => input.IncomingKeyIdentifier!, - "{IncomingKeyIdentifier}", - false - ); + b.bp("/keys/{IncomingKeyIdentifier}/reencrypt"); + b.p("IncomingKeyIdentifier", () => input.IncomingKeyIdentifier!, "{IncomingKeyIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -299,15 +240,8 @@ export const se_ReEncryptDataCommand = async ( OutgoingKeyIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,11 +251,11 @@ export const se_TranslatePinDataCommand = async ( input: TranslatePinDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pindata/translate"; + b.bp("/pindata/translate"); let body: any; body = JSON.stringify( take(input, { @@ -334,15 +268,8 @@ export const se_TranslatePinDataCommand = async ( OutgoingTranslationAttributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -352,11 +279,11 @@ export const se_VerifyAuthRequestCryptogramCommand = async ( input: VerifyAuthRequestCryptogramCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cryptogram/verify"; + b.bp("/cryptogram/verify"); let body: any; body = JSON.stringify( take(input, { @@ -368,15 +295,8 @@ export const se_VerifyAuthRequestCryptogramCommand = async ( TransactionData: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -386,12 +306,11 @@ export const se_VerifyCardValidationDataCommand = async ( input: VerifyCardValidationDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cardvalidationdata/verify"; + b.bp("/cardvalidationdata/verify"); let body: any; body = JSON.stringify( take(input, { @@ -401,15 +320,8 @@ export const se_VerifyCardValidationDataCommand = async ( VerificationAttributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -419,11 +331,11 @@ export const se_VerifyMacCommand = async ( input: VerifyMacCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/mac/verify"; + b.bp("/mac/verify"); let body: any; body = JSON.stringify( take(input, { @@ -434,15 +346,8 @@ export const se_VerifyMacCommand = async ( VerificationAttributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -452,11 +357,11 @@ export const se_VerifyPinDataCommand = async ( input: VerifyPinDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pindata/verify"; + b.bp("/pindata/verify"); let body: any; body = JSON.stringify( take(input, { @@ -470,15 +375,8 @@ export const se_VerifyPinDataCommand = async ( VerificationKeyIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-pca-connector-ad/package.json b/clients/client-pca-connector-ad/package.json index 895425fecad5..cb75fcbc6089 100644 --- a/clients/client-pca-connector-ad/package.json +++ b/clients/client-pca-connector-ad/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-pca-connector-ad/src/protocols/Aws_restJson1.ts b/clients/client-pca-connector-ad/src/protocols/Aws_restJson1.ts index 3a4435df651c..243eb416e95c 100644 --- a/clients/client-pca-connector-ad/src/protocols/Aws_restJson1.ts +++ b/clients/client-pca-connector-ad/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -151,11 +152,11 @@ export const se_CreateConnectorCommand = async ( input: CreateConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connectors"; + b.bp("/connectors"); let body: any; body = JSON.stringify( take(input, { @@ -166,15 +167,8 @@ export const se_CreateConnectorCommand = async ( VpcInformation: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -184,12 +178,11 @@ export const se_CreateDirectoryRegistrationCommand = async ( input: CreateDirectoryRegistrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/directoryRegistrations"; + b.bp("/directoryRegistrations"); let body: any; body = JSON.stringify( take(input, { @@ -198,15 +191,8 @@ export const se_CreateDirectoryRegistrationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -216,44 +202,21 @@ export const se_CreateServicePrincipalNameCommand = async ( input: CreateServicePrincipalNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DirectoryRegistrationArn", - () => input.DirectoryRegistrationArn!, - "{DirectoryRegistrationArn}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorArn", - () => input.ConnectorArn!, - "{ConnectorArn}", - false - ); + b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}"); + b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn!, "{DirectoryRegistrationArn}", false); + b.p("ConnectorArn", () => input.ConnectorArn!, "{ConnectorArn}", false); let body: any; body = JSON.stringify( take(input, { ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -263,11 +226,11 @@ export const se_CreateTemplateCommand = async ( input: CreateTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates"; + b.bp("/templates"); let body: any; body = JSON.stringify( take(input, { @@ -278,15 +241,8 @@ export const se_CreateTemplateCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -296,14 +252,12 @@ export const se_CreateTemplateGroupAccessControlEntryCommand = async ( input: CreateTemplateGroupAccessControlEntryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/templates/{TemplateArn}/accessControlEntries"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/{TemplateArn}/accessControlEntries"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -313,15 +267,8 @@ export const se_CreateTemplateGroupAccessControlEntryCommand = async ( GroupSecurityIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -331,28 +278,13 @@ export const se_DeleteConnectorCommand = async ( input: DeleteConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connectors/{ConnectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorArn", - () => input.ConnectorArn!, - "{ConnectorArn}", - false - ); + b.bp("/connectors/{ConnectorArn}"); + b.p("ConnectorArn", () => input.ConnectorArn!, "{ConnectorArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -362,29 +294,13 @@ export const se_DeleteDirectoryRegistrationCommand = async ( input: DeleteDirectoryRegistrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/directoryRegistrations/{DirectoryRegistrationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DirectoryRegistrationArn", - () => input.DirectoryRegistrationArn!, - "{DirectoryRegistrationArn}", - false - ); + b.bp("/directoryRegistrations/{DirectoryRegistrationArn}"); + b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn!, "{DirectoryRegistrationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -394,37 +310,14 @@ export const se_DeleteServicePrincipalNameCommand = async ( input: DeleteServicePrincipalNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DirectoryRegistrationArn", - () => input.DirectoryRegistrationArn!, - "{DirectoryRegistrationArn}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorArn", - () => input.ConnectorArn!, - "{ConnectorArn}", - false - ); + b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}"); + b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn!, "{DirectoryRegistrationArn}", false); + b.p("ConnectorArn", () => input.ConnectorArn!, "{ConnectorArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -434,20 +327,13 @@ export const se_DeleteTemplateCommand = async ( input: DeleteTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -457,30 +343,14 @@ export const se_DeleteTemplateGroupAccessControlEntryCommand = async ( input: DeleteTemplateGroupAccessControlEntryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupSecurityIdentifier", - () => input.GroupSecurityIdentifier!, - "{GroupSecurityIdentifier}", - false - ); + b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier!, "{GroupSecurityIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -490,28 +360,13 @@ export const se_GetConnectorCommand = async ( input: GetConnectorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connectors/{ConnectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorArn", - () => input.ConnectorArn!, - "{ConnectorArn}", - false - ); + b.bp("/connectors/{ConnectorArn}"); + b.p("ConnectorArn", () => input.ConnectorArn!, "{ConnectorArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -521,29 +376,13 @@ export const se_GetDirectoryRegistrationCommand = async ( input: GetDirectoryRegistrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/directoryRegistrations/{DirectoryRegistrationArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DirectoryRegistrationArn", - () => input.DirectoryRegistrationArn!, - "{DirectoryRegistrationArn}", - false - ); + b.bp("/directoryRegistrations/{DirectoryRegistrationArn}"); + b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn!, "{DirectoryRegistrationArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -553,37 +392,14 @@ export const se_GetServicePrincipalNameCommand = async ( input: GetServicePrincipalNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DirectoryRegistrationArn", - () => input.DirectoryRegistrationArn!, - "{DirectoryRegistrationArn}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConnectorArn", - () => input.ConnectorArn!, - "{ConnectorArn}", - false - ); + b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}"); + b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn!, "{DirectoryRegistrationArn}", false); + b.p("ConnectorArn", () => input.ConnectorArn!, "{ConnectorArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -593,20 +409,13 @@ export const se_GetTemplateCommand = async ( input: GetTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -616,30 +425,14 @@ export const se_GetTemplateGroupAccessControlEntryCommand = async ( input: GetTemplateGroupAccessControlEntryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupSecurityIdentifier", - () => input.GroupSecurityIdentifier!, - "{GroupSecurityIdentifier}", - false - ); + b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier!, "{GroupSecurityIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -649,24 +442,16 @@ export const se_ListConnectorsCommand = async ( input: ListConnectorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connectors"; + b.bp("/connectors"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -676,25 +461,16 @@ export const se_ListDirectoryRegistrationsCommand = async ( input: ListDirectoryRegistrationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/directoryRegistrations"; + b.bp("/directoryRegistrations"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -704,34 +480,17 @@ export const se_ListServicePrincipalNamesCommand = async ( input: ListServicePrincipalNamesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DirectoryRegistrationArn", - () => input.DirectoryRegistrationArn!, - "{DirectoryRegistrationArn}", - false - ); + b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames"); + b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn!, "{DirectoryRegistrationArn}", false); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -741,20 +500,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -764,27 +516,17 @@ export const se_ListTemplateGroupAccessControlEntriesCommand = async ( input: ListTemplateGroupAccessControlEntriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/templates/{TemplateArn}/accessControlEntries"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/{TemplateArn}/accessControlEntries"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -794,25 +536,17 @@ export const se_ListTemplatesCommand = async ( input: ListTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates"; + b.bp("/templates"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], - ConnectorArn: [, __expectNonNull(input.ConnectorArn!, `ConnectorArn`)], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], + [_CA]: [, __expectNonNull(input[_CA]!, `ConnectorArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -822,27 +556,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -852,27 +579,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -882,12 +601,12 @@ export const se_UpdateTemplateCommand = async ( input: UpdateTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -895,15 +614,8 @@ export const se_UpdateTemplateCommand = async ( ReenrollAllCertificateHolders: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -913,22 +625,13 @@ export const se_UpdateTemplateGroupAccessControlEntryCommand = async ( input: UpdateTemplateGroupAccessControlEntryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupSecurityIdentifier", - () => input.GroupSecurityIdentifier!, - "{GroupSecurityIdentifier}", - false - ); + b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier!, "{GroupSecurityIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -936,15 +639,8 @@ export const se_UpdateTemplateGroupAccessControlEntryCommand = async ( GroupDisplayName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2942,6 +2638,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CA = "ConnectorArn"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-personalize-events/package.json b/clients/client-personalize-events/package.json index 1f60f4f0c5d7..4e048063657b 100644 --- a/clients/client-personalize-events/package.json +++ b/clients/client-personalize-events/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-personalize-events/src/protocols/Aws_restJson1.ts b/clients/client-personalize-events/src/protocols/Aws_restJson1.ts index adfef242e8d7..92c13ac99b3d 100644 --- a/clients/client-personalize-events/src/protocols/Aws_restJson1.ts +++ b/clients/client-personalize-events/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -45,11 +46,11 @@ export const se_PutActionInteractionsCommand = async ( input: PutActionInteractionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/action-interactions"; + b.bp("/action-interactions"); let body: any; body = JSON.stringify( take(input, { @@ -57,15 +58,8 @@ export const se_PutActionInteractionsCommand = async ( trackingId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -75,11 +69,11 @@ export const se_PutActionsCommand = async ( input: PutActionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions"; + b.bp("/actions"); let body: any; body = JSON.stringify( take(input, { @@ -87,15 +81,8 @@ export const se_PutActionsCommand = async ( datasetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -105,11 +92,11 @@ export const se_PutEventsCommand = async ( input: PutEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/events"; + b.bp("/events"); let body: any; body = JSON.stringify( take(input, { @@ -119,15 +106,8 @@ export const se_PutEventsCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -137,11 +117,11 @@ export const se_PutItemsCommand = async ( input: PutItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/items"; + b.bp("/items"); let body: any; body = JSON.stringify( take(input, { @@ -149,15 +129,8 @@ export const se_PutItemsCommand = async ( items: (_) => se_ItemList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -167,11 +140,11 @@ export const se_PutUsersCommand = async ( input: PutUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users"; + b.bp("/users"); let body: any; body = JSON.stringify( take(input, { @@ -179,15 +152,8 @@ export const se_PutUsersCommand = async ( users: (_) => se_UserList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-personalize-runtime/package.json b/clients/client-personalize-runtime/package.json index 930377a272fb..c73cb13aa75e 100644 --- a/clients/client-personalize-runtime/package.json +++ b/clients/client-personalize-runtime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts b/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts index 1ba7b8d8ed70..8efb1787e601 100644 --- a/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -43,12 +44,11 @@ export const se_GetActionRecommendationsCommand = async ( input: GetActionRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/action-recommendations"; + b.bp("/action-recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -59,15 +59,8 @@ export const se_GetActionRecommendationsCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -77,11 +70,11 @@ export const se_GetPersonalizedRankingCommand = async ( input: GetPersonalizedRankingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/personalize-ranking"; + b.bp("/personalize-ranking"); let body: any; body = JSON.stringify( take(input, { @@ -94,15 +87,8 @@ export const se_GetPersonalizedRankingCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -112,11 +98,11 @@ export const se_GetRecommendationsCommand = async ( input: GetRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recommendations"; + b.bp("/recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -132,15 +118,8 @@ export const se_GetRecommendationsCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-pinpoint-email/package.json b/clients/client-pinpoint-email/package.json index b18c772f5151..ff659172a8fb 100644 --- a/clients/client-pinpoint-email/package.json +++ b/clients/client-pinpoint-email/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts index 394901c813f3..e788fcce61d9 100644 --- a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -223,12 +224,11 @@ export const se_CreateConfigurationSetCommand = async ( input: CreateConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/configuration-sets"; + b.bp("/v1/email/configuration-sets"); let body: any; body = JSON.stringify( take(input, { @@ -240,15 +240,8 @@ export const se_CreateConfigurationSetCommand = async ( TrackingOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -258,21 +251,12 @@ export const se_CreateConfigurationSetEventDestinationCommand = async ( input: CreateConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -280,15 +264,8 @@ export const se_CreateConfigurationSetEventDestinationCommand = async ( EventDestinationName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -298,12 +275,11 @@ export const se_CreateDedicatedIpPoolCommand = async ( input: CreateDedicatedIpPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools"; + b.bp("/v1/email/dedicated-ip-pools"); let body: any; body = JSON.stringify( take(input, { @@ -311,15 +287,8 @@ export const se_CreateDedicatedIpPoolCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -329,12 +298,11 @@ export const se_CreateDeliverabilityTestReportCommand = async ( input: CreateDeliverabilityTestReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard/test"; + b.bp("/v1/email/deliverability-dashboard/test"); let body: any; body = JSON.stringify( take(input, { @@ -344,15 +312,8 @@ export const se_CreateDeliverabilityTestReportCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -362,11 +323,11 @@ export const se_CreateEmailIdentityCommand = async ( input: CreateEmailIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities"; + b.bp("/v1/email/identities"); let body: any; body = JSON.stringify( take(input, { @@ -374,15 +335,8 @@ export const se_CreateEmailIdentityCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -392,29 +346,13 @@ export const se_DeleteConfigurationSetCommand = async ( input: DeleteConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -424,37 +362,14 @@ export const se_DeleteConfigurationSetEventDestinationCommand = async ( input: DeleteConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventDestinationName", - () => input.EventDestinationName!, - "{EventDestinationName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); + b.p("EventDestinationName", () => input.EventDestinationName!, "{EventDestinationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -464,21 +379,13 @@ export const se_DeleteDedicatedIpPoolCommand = async ( input: DeleteDedicatedIpPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools/{PoolName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PoolName", () => input.PoolName!, "{PoolName}", false); + b.bp("/v1/email/dedicated-ip-pools/{PoolName}"); + b.p("PoolName", () => input.PoolName!, "{PoolName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -488,28 +395,13 @@ export const se_DeleteEmailIdentityCommand = async ( input: DeleteEmailIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities/{EmailIdentity}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v1/email/identities/{EmailIdentity}"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -519,22 +411,15 @@ export const se_GetAccountCommand = async ( input: GetAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account"; + b.bp("/v1/email/account"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -544,28 +429,18 @@ export const se_GetBlacklistReportsCommand = async ( input: GetBlacklistReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/deliverability-dashboard/blacklist-report"; + b.bp("/v1/email/deliverability-dashboard/blacklist-report"); const query: any = map({ - BlacklistItemNames: [ + [_BIN]: [ __expectNonNull(input.BlacklistItemNames, `BlacklistItemNames`) != null, - () => (input.BlacklistItemNames! || []).map((_entry) => _entry as any), + () => (input[_BIN]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -575,29 +450,13 @@ export const se_GetConfigurationSetCommand = async ( input: GetConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -607,29 +466,13 @@ export const se_GetConfigurationSetEventDestinationsCommand = async ( input: GetConfigurationSetEventDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -639,21 +482,13 @@ export const se_GetDedicatedIpCommand = async ( input: GetDedicatedIpCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip!, "{Ip}", false); + b.bp("/v1/email/dedicated-ips/{Ip}"); + b.p("Ip", () => input.Ip!, "{Ip}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -663,26 +498,17 @@ export const se_GetDedicatedIpsCommand = async ( input: GetDedicatedIpsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips"; + b.bp("/v1/email/dedicated-ips"); const query: any = map({ - PoolName: [, input.PoolName!], - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_PN]: [, input[_PN]!], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -692,23 +518,15 @@ export const se_GetDeliverabilityDashboardOptionsCommand = async ( input: GetDeliverabilityDashboardOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard"; + b.bp("/v1/email/deliverability-dashboard"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -718,22 +536,13 @@ export const se_GetDeliverabilityTestReportCommand = async ( input: GetDeliverabilityTestReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/deliverability-dashboard/test-reports/{ReportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ReportId", () => input.ReportId!, "{ReportId}", false); + b.bp("/v1/email/deliverability-dashboard/test-reports/{ReportId}"); + b.p("ReportId", () => input.ReportId!, "{ReportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -743,22 +552,13 @@ export const se_GetDomainDeliverabilityCampaignCommand = async ( input: GetDomainDeliverabilityCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/deliverability-dashboard/campaigns/{CampaignId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.bp("/v1/email/deliverability-dashboard/campaigns/{CampaignId}"); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -768,33 +568,23 @@ export const se_GetDomainStatisticsReportCommand = async ( input: GetDomainStatisticsReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/deliverability-dashboard/statistics-report/{Domain}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Domain", () => input.Domain!, "{Domain}", false); + b.bp("/v1/email/deliverability-dashboard/statistics-report/{Domain}"); + b.p("Domain", () => input.Domain!, "{Domain}", false); const query: any = map({ - StartDate: [ + [_SD]: [ __expectNonNull(input.StartDate, `StartDate`) != null, - () => (input.StartDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_SD]!.toISOString().split(".")[0] + "Z").toString(), ], - EndDate: [ + [_ED]: [ __expectNonNull(input.EndDate, `EndDate`) != null, - () => (input.EndDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_ED]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -804,28 +594,13 @@ export const se_GetEmailIdentityCommand = async ( input: GetEmailIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities/{EmailIdentity}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v1/email/identities/{EmailIdentity}"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -835,25 +610,16 @@ export const se_ListConfigurationSetsCommand = async ( input: ListConfigurationSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/configuration-sets"; + b.bp("/v1/email/configuration-sets"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -863,25 +629,16 @@ export const se_ListDedicatedIpPoolsCommand = async ( input: ListDedicatedIpPoolsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ip-pools"; + b.bp("/v1/email/dedicated-ip-pools"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -891,26 +648,16 @@ export const se_ListDeliverabilityTestReportsCommand = async ( input: ListDeliverabilityTestReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/deliverability-dashboard/test-reports"; + b.bp("/v1/email/deliverability-dashboard/test-reports"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -920,42 +667,25 @@ export const se_ListDomainDeliverabilityCampaignsCommand = async ( input: ListDomainDeliverabilityCampaignsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscribedDomain", - () => input.SubscribedDomain!, - "{SubscribedDomain}", - false - ); + b.bp("/v1/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns"); + b.p("SubscribedDomain", () => input.SubscribedDomain!, "{SubscribedDomain}", false); const query: any = map({ - StartDate: [ + [_SD]: [ __expectNonNull(input.StartDate, `StartDate`) != null, - () => (input.StartDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_SD]!.toISOString().split(".")[0] + "Z").toString(), ], - EndDate: [ + [_ED]: [ __expectNonNull(input.EndDate, `EndDate`) != null, - () => (input.EndDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_ED]!.toISOString().split(".")[0] + "Z").toString(), ], - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -965,24 +695,16 @@ export const se_ListEmailIdentitiesCommand = async ( input: ListEmailIdentitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities"; + b.bp("/v1/email/identities"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -992,23 +714,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags"; + b.bp("/v1/email/tags"); const query: any = map({ - ResourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], + [_RA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1018,27 +732,19 @@ export const se_PutAccountDedicatedIpWarmupAttributesCommand = async ( input: PutAccountDedicatedIpWarmupAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/dedicated-ips/warmup"; + b.bp("/v1/email/account/dedicated-ips/warmup"); let body: any; body = JSON.stringify( take(input, { AutoWarmupEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1048,27 +754,19 @@ export const se_PutAccountSendingAttributesCommand = async ( input: PutAccountSendingAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/account/sending"; + b.bp("/v1/email/account/sending"); let body: any; body = JSON.stringify( take(input, { SendingEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1078,21 +776,12 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async ( input: PutConfigurationSetDeliveryOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/delivery-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/delivery-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1100,15 +789,8 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async ( TlsPolicy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1118,36 +800,20 @@ export const se_PutConfigurationSetReputationOptionsCommand = async ( input: PutConfigurationSetReputationOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/reputation-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/reputation-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { ReputationMetricsEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1157,36 +823,20 @@ export const se_PutConfigurationSetSendingOptionsCommand = async ( input: PutConfigurationSetSendingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/sending"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/sending"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { SendingEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1196,36 +846,20 @@ export const se_PutConfigurationSetTrackingOptionsCommand = async ( input: PutConfigurationSetTrackingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/tracking-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/tracking-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { CustomRedirectDomain: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1235,28 +869,20 @@ export const se_PutDedicatedIpInPoolCommand = async ( input: PutDedicatedIpInPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}/pool"; - resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip!, "{Ip}", false); + b.bp("/v1/email/dedicated-ips/{Ip}/pool"); + b.p("Ip", () => input.Ip!, "{Ip}", false); let body: any; body = JSON.stringify( take(input, { DestinationPoolName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1266,28 +892,20 @@ export const se_PutDedicatedIpWarmupAttributesCommand = async ( input: PutDedicatedIpWarmupAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/dedicated-ips/{Ip}/warmup"; - resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip!, "{Ip}", false); + b.bp("/v1/email/dedicated-ips/{Ip}/warmup"); + b.p("Ip", () => input.Ip!, "{Ip}", false); let body: any; body = JSON.stringify( take(input, { WarmupPercentage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1297,12 +915,11 @@ export const se_PutDeliverabilityDashboardOptionCommand = async ( input: PutDeliverabilityDashboardOptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/deliverability-dashboard"; + b.bp("/v1/email/deliverability-dashboard"); let body: any; body = JSON.stringify( take(input, { @@ -1310,15 +927,8 @@ export const se_PutDeliverabilityDashboardOptionCommand = async ( SubscribedDomains: (_) => se_DomainDeliverabilityTrackingOptions(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1328,35 +938,20 @@ export const se_PutEmailIdentityDkimAttributesCommand = async ( input: PutEmailIdentityDkimAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/identities/{EmailIdentity}/dkim"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v1/email/identities/{EmailIdentity}/dkim"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { SigningEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1366,36 +961,20 @@ export const se_PutEmailIdentityFeedbackAttributesCommand = async ( input: PutEmailIdentityFeedbackAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/identities/{EmailIdentity}/feedback"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v1/email/identities/{EmailIdentity}/feedback"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { EmailForwardingEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1405,21 +984,12 @@ export const se_PutEmailIdentityMailFromAttributesCommand = async ( input: PutEmailIdentityMailFromAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/identities/{EmailIdentity}/mail-from"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v1/email/identities/{EmailIdentity}/mail-from"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { @@ -1427,15 +997,8 @@ export const se_PutEmailIdentityMailFromAttributesCommand = async ( MailFromDomain: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1445,12 +1008,11 @@ export const se_SendEmailCommand = async ( input: SendEmailCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/outbound-emails"; + b.bp("/v1/email/outbound-emails"); let body: any; body = JSON.stringify( take(input, { @@ -1463,15 +1025,8 @@ export const se_SendEmailCommand = async ( ReplyToAddresses: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1481,11 +1036,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags"; + b.bp("/v1/email/tags"); let body: any; body = JSON.stringify( take(input, { @@ -1493,15 +1048,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1511,27 +1059,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags"; + b.bp("/v1/email/tags"); const query: any = map({ - ResourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], - TagKeys: [ + [_RA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], + [_TK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1541,44 +1081,21 @@ export const se_UpdateConfigurationSetEventDestinationCommand = async ( input: UpdateConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventDestinationName", - () => input.EventDestinationName!, - "{EventDestinationName}", - false - ); + b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); + b.p("EventDestinationName", () => input.EventDestinationName!, "{EventDestinationName}", false); let body: any; body = JSON.stringify( take(input, { EventDestination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4422,6 +3939,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _BIN = "BlacklistItemNames"; +const _ED = "EndDate"; +const _NT = "NextToken"; +const _PN = "PoolName"; +const _PS = "PageSize"; +const _RA = "ResourceArn"; +const _SD = "StartDate"; +const _TK = "TagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-pinpoint-sms-voice/package.json b/clients/client-pinpoint-sms-voice/package.json index a0ca69a5754b..3b471ccb68f7 100644 --- a/clients/client-pinpoint-sms-voice/package.json +++ b/clients/client-pinpoint-sms-voice/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts index 8f2cd3749ee0..697e681008f2 100644 --- a/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-sms-voice/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -74,27 +75,19 @@ export const se_CreateConfigurationSetCommand = async ( input: CreateConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/sms-voice/configuration-sets"; + b.bp("/v1/sms-voice/configuration-sets"); let body: any; body = JSON.stringify( take(input, { ConfigurationSetName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -104,21 +97,12 @@ export const se_CreateConfigurationSetEventDestinationCommand = async ( input: CreateConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -126,15 +110,8 @@ export const se_CreateConfigurationSetEventDestinationCommand = async ( EventDestinationName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -144,29 +121,13 @@ export const se_DeleteConfigurationSetCommand = async ( input: DeleteConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/sms-voice/configuration-sets/{ConfigurationSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -176,37 +137,14 @@ export const se_DeleteConfigurationSetEventDestinationCommand = async ( input: DeleteConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventDestinationName", - () => input.EventDestinationName!, - "{EventDestinationName}", - false - ); + b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); + b.p("EventDestinationName", () => input.EventDestinationName!, "{EventDestinationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -216,29 +154,13 @@ export const se_GetConfigurationSetEventDestinationsCommand = async ( input: GetConfigurationSetEventDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -248,25 +170,16 @@ export const se_ListConfigurationSetsCommand = async ( input: ListConfigurationSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/sms-voice/configuration-sets"; + b.bp("/v1/sms-voice/configuration-sets"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [, input.PageSize!], + [_NT]: [, input[_NT]!], + [_PS]: [, input[_PS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -276,12 +189,11 @@ export const se_SendVoiceMessageCommand = async ( input: SendVoiceMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/sms-voice/voice/message"; + b.bp("/v1/sms-voice/voice/message"); let body: any; body = JSON.stringify( take(input, { @@ -292,15 +204,8 @@ export const se_SendVoiceMessageCommand = async ( OriginationPhoneNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -310,44 +215,21 @@ export const se_UpdateConfigurationSetEventDestinationCommand = async ( input: UpdateConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventDestinationName", - () => input.EventDestinationName!, - "{EventDestinationName}", - false - ); + b.bp("/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); + b.p("EventDestinationName", () => input.EventDestinationName!, "{EventDestinationName}", false); let body: any; body = JSON.stringify( take(input, { EventDestination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -948,6 +830,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _NT = "NextToken"; +const _PS = "PageSize"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-pinpoint/package.json b/clients/client-pinpoint/package.json index c1d18832bdce..578ef00c217c 100644 --- a/clients/client-pinpoint/package.json +++ b/clients/client-pinpoint/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-pinpoint/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint/src/protocols/Aws_restJson1.ts index b5c8efadf64f..eaeb89ce1a4c 100644 --- a/clients/client-pinpoint/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -449,11 +450,11 @@ export const se_CreateAppCommand = async ( input: CreateAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps"; + b.bp("/v1/apps"); let body: any; if (input.CreateApplicationRequest !== undefined) { body = se_CreateApplicationRequest(input.CreateApplicationRequest, context); @@ -462,15 +463,8 @@ export const se_CreateAppCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -480,20 +474,12 @@ export const se_CreateCampaignCommand = async ( input: CreateCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/campaigns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/campaigns"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.WriteCampaignRequest !== undefined) { body = se_WriteCampaignRequest(input.WriteCampaignRequest, context); @@ -502,15 +488,8 @@ export const se_CreateCampaignCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -520,20 +499,12 @@ export const se_CreateEmailTemplateCommand = async ( input: CreateEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/email"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; if (input.EmailTemplateRequest !== undefined) { body = se_EmailTemplateRequest(input.EmailTemplateRequest, context); @@ -542,15 +513,8 @@ export const se_CreateEmailTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -560,20 +524,12 @@ export const se_CreateExportJobCommand = async ( input: CreateExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/export"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/jobs/export"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.ExportJobRequest !== undefined) { body = _json(input.ExportJobRequest); @@ -582,15 +538,8 @@ export const se_CreateExportJobCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -600,20 +549,12 @@ export const se_CreateImportJobCommand = async ( input: CreateImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/import"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/jobs/import"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.ImportJobRequest !== undefined) { body = _json(input.ImportJobRequest); @@ -622,15 +563,8 @@ export const se_CreateImportJobCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -640,20 +574,12 @@ export const se_CreateInAppTemplateCommand = async ( input: CreateInAppTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/inapp"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; if (input.InAppTemplateRequest !== undefined) { body = se_InAppTemplateRequest(input.InAppTemplateRequest, context); @@ -662,15 +588,8 @@ export const se_CreateInAppTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -680,20 +599,12 @@ export const se_CreateJourneyCommand = async ( input: CreateJourneyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/journeys"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/journeys"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.WriteJourneyRequest !== undefined) { body = se_WriteJourneyRequest(input.WriteJourneyRequest, context); @@ -702,15 +613,8 @@ export const se_CreateJourneyCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -720,20 +624,12 @@ export const se_CreatePushTemplateCommand = async ( input: CreatePushTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/push"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; if (input.PushNotificationTemplateRequest !== undefined) { body = se_PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context); @@ -742,15 +638,8 @@ export const se_CreatePushTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -760,11 +649,11 @@ export const se_CreateRecommenderConfigurationCommand = async ( input: CreateRecommenderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders"; + b.bp("/v1/recommenders"); let body: any; if (input.CreateRecommenderConfiguration !== undefined) { body = _json(input.CreateRecommenderConfiguration); @@ -773,15 +662,8 @@ export const se_CreateRecommenderConfigurationCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -791,20 +673,12 @@ export const se_CreateSegmentCommand = async ( input: CreateSegmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/segments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/segments"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.WriteSegmentRequest !== undefined) { body = se_WriteSegmentRequest(input.WriteSegmentRequest, context); @@ -813,15 +687,8 @@ export const se_CreateSegmentCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -831,20 +698,12 @@ export const se_CreateSmsTemplateCommand = async ( input: CreateSmsTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/sms"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; if (input.SMSTemplateRequest !== undefined) { body = se_SMSTemplateRequest(input.SMSTemplateRequest, context); @@ -853,15 +712,8 @@ export const se_CreateSmsTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -871,20 +723,12 @@ export const se_CreateVoiceTemplateCommand = async ( input: CreateVoiceTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/voice"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; if (input.VoiceTemplateRequest !== undefined) { body = se_VoiceTemplateRequest(input.VoiceTemplateRequest, context); @@ -893,15 +737,8 @@ export const se_CreateVoiceTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -911,28 +748,13 @@ export const se_DeleteAdmChannelCommand = async ( input: DeleteAdmChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/adm"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/adm"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -942,28 +764,13 @@ export const se_DeleteApnsChannelCommand = async ( input: DeleteApnsChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/apns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -973,29 +780,13 @@ export const se_DeleteApnsSandboxChannelCommand = async ( input: DeleteApnsSandboxChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_sandbox"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_sandbox"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1005,29 +796,13 @@ export const se_DeleteApnsVoipChannelCommand = async ( input: DeleteApnsVoipChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_voip"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_voip"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1037,29 +812,13 @@ export const se_DeleteApnsVoipSandboxChannelCommand = async ( input: DeleteApnsVoipSandboxChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1069,27 +828,13 @@ export const se_DeleteAppCommand = async ( input: DeleteAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1099,28 +844,13 @@ export const se_DeleteBaiduChannelCommand = async ( input: DeleteBaiduChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/baidu"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/baidu"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1130,30 +860,14 @@ export const se_DeleteCampaignCommand = async ( input: DeleteCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/campaigns/{CampaignId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1163,28 +877,13 @@ export const se_DeleteEmailChannelCommand = async ( input: DeleteEmailChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/email"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/email"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1194,32 +893,16 @@ export const se_DeleteEmailTemplateCommand = async ( input: DeleteEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/email"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1229,30 +912,14 @@ export const se_DeleteEndpointCommand = async ( input: DeleteEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/endpoints/{EndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId!, "{EndpointId}", false); + b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EndpointId", () => input.EndpointId!, "{EndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1262,28 +929,13 @@ export const se_DeleteEventStreamCommand = async ( input: DeleteEventStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/eventstream"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/eventstream"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1293,28 +945,13 @@ export const se_DeleteGcmChannelCommand = async ( input: DeleteGcmChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/gcm"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/gcm"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1324,32 +961,16 @@ export const se_DeleteInAppTemplateCommand = async ( input: DeleteInAppTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/inapp"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1359,30 +980,14 @@ export const se_DeleteJourneyCommand = async ( input: DeleteJourneyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1392,32 +997,16 @@ export const se_DeletePushTemplateCommand = async ( input: DeletePushTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/push"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1427,28 +1016,13 @@ export const se_DeleteRecommenderConfigurationCommand = async ( input: DeleteRecommenderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders/{RecommenderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecommenderId", - () => input.RecommenderId!, - "{RecommenderId}", - false - ); + b.bp("/v1/recommenders/{RecommenderId}"); + b.p("RecommenderId", () => input.RecommenderId!, "{RecommenderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1458,30 +1032,14 @@ export const se_DeleteSegmentCommand = async ( input: DeleteSegmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/segments/{SegmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SegmentId", () => input.SegmentId!, "{SegmentId}", false); + b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SegmentId", () => input.SegmentId!, "{SegmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1491,28 +1049,13 @@ export const se_DeleteSmsChannelCommand = async ( input: DeleteSmsChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/sms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/sms"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1522,32 +1065,16 @@ export const se_DeleteSmsTemplateCommand = async ( input: DeleteSmsTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/sms"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1557,29 +1084,14 @@ export const se_DeleteUserEndpointsCommand = async ( input: DeleteUserEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/users/{UserId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/v1/apps/{ApplicationId}/users/{UserId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1589,28 +1101,13 @@ export const se_DeleteVoiceChannelCommand = async ( input: DeleteVoiceChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/voice"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/voice"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1620,32 +1117,16 @@ export const se_DeleteVoiceTemplateCommand = async ( input: DeleteVoiceTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/voice"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1655,28 +1136,13 @@ export const se_GetAdmChannelCommand = async ( input: GetAdmChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/adm"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/adm"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1686,28 +1152,13 @@ export const se_GetApnsChannelCommand = async ( input: GetApnsChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/apns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1717,29 +1168,13 @@ export const se_GetApnsSandboxChannelCommand = async ( input: GetApnsSandboxChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_sandbox"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_sandbox"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1749,29 +1184,13 @@ export const se_GetApnsVoipChannelCommand = async ( input: GetApnsVoipChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_voip"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_voip"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1781,56 +1200,26 @@ export const se_GetApnsVoipSandboxChannelCommand = async ( input: GetApnsVoipSandboxChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetAppCommand */ export const se_GetAppCommand = async (input: GetAppCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1840,40 +1229,20 @@ export const se_GetApplicationDateRangeKpiCommand = async ( input: GetApplicationDateRangeKpiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "KpiName", () => input.KpiName!, "{KpiName}", false); + b.bp("/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("KpiName", () => input.KpiName!, "{KpiName}", false); const query: any = map({ - "end-time": [() => input.EndTime !== void 0, () => (input.EndTime!.toISOString().split(".")[0] + "Z").toString()], - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], - "start-time": [ - () => input.StartTime !== void 0, - () => (input.StartTime!.toISOString().split(".")[0] + "Z").toString(), - ], + [_et]: [() => input.EndTime !== void 0, () => (input[_ET]!.toISOString().split(".")[0] + "Z").toString()], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], + [_st]: [() => input.StartTime !== void 0, () => (input[_ST]!.toISOString().split(".")[0] + "Z").toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1883,28 +1252,13 @@ export const se_GetApplicationSettingsCommand = async ( input: GetApplicationSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/settings"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1914,24 +1268,16 @@ export const se_GetAppsCommand = async ( input: GetAppsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps"; + b.bp("/v1/apps"); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1941,28 +1287,13 @@ export const se_GetBaiduChannelCommand = async ( input: GetBaiduChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/baidu"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/baidu"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1972,30 +1303,14 @@ export const se_GetCampaignCommand = async ( input: GetCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/campaigns/{CampaignId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2005,35 +1320,18 @@ export const se_GetCampaignActivitiesCommand = async ( input: GetCampaignActivitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2043,41 +1341,21 @@ export const se_GetCampaignDateRangeKpiCommand = async ( input: GetCampaignDateRangeKpiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "KpiName", () => input.KpiName!, "{KpiName}", false); + b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.p("KpiName", () => input.KpiName!, "{KpiName}", false); const query: any = map({ - "end-time": [() => input.EndTime !== void 0, () => (input.EndTime!.toISOString().split(".")[0] + "Z").toString()], - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], - "start-time": [ - () => input.StartTime !== void 0, - () => (input.StartTime!.toISOString().split(".")[0] + "Z").toString(), - ], + [_et]: [() => input.EndTime !== void 0, () => (input[_ET]!.toISOString().split(".")[0] + "Z").toString()], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], + [_st]: [() => input.StartTime !== void 0, () => (input[_ST]!.toISOString().split(".")[0] + "Z").toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2087,33 +1365,17 @@ export const se_GetCampaignsCommand = async ( input: GetCampaignsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/campaigns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/campaigns"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2123,31 +1385,15 @@ export const se_GetCampaignVersionCommand = async ( input: GetCampaignVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Version", () => input.Version!, "{Version}", false); + b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.p("Version", () => input.Version!, "{Version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2157,35 +1403,18 @@ export const se_GetCampaignVersionsCommand = async ( input: GetCampaignVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2195,28 +1424,13 @@ export const se_GetChannelsCommand = async ( input: GetChannelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2226,28 +1440,13 @@ export const se_GetEmailChannelCommand = async ( input: GetEmailChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/email"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/email"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2257,32 +1456,16 @@ export const se_GetEmailTemplateCommand = async ( input: GetEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/email"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2292,30 +1475,14 @@ export const se_GetEndpointCommand = async ( input: GetEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/endpoints/{EndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId!, "{EndpointId}", false); + b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EndpointId", () => input.EndpointId!, "{EndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2325,28 +1492,13 @@ export const se_GetEventStreamCommand = async ( input: GetEventStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/eventstream"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/eventstream"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2356,30 +1508,14 @@ export const se_GetExportJobCommand = async ( input: GetExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/jobs/export/{JobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v1/apps/{ApplicationId}/jobs/export/{JobId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2389,33 +1525,17 @@ export const se_GetExportJobsCommand = async ( input: GetExportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/export"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/jobs/export"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2425,28 +1545,13 @@ export const se_GetGcmChannelCommand = async ( input: GetGcmChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/gcm"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/gcm"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2456,30 +1561,14 @@ export const se_GetImportJobCommand = async ( input: GetImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/jobs/import/{JobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v1/apps/{ApplicationId}/jobs/import/{JobId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2489,33 +1578,17 @@ export const se_GetImportJobsCommand = async ( input: GetImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/jobs/import"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/jobs/import"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2525,30 +1598,14 @@ export const se_GetInAppMessagesCommand = async ( input: GetInAppMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/endpoints/{EndpointId}/inappmessages"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId!, "{EndpointId}", false); + b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}/inappmessages"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EndpointId", () => input.EndpointId!, "{EndpointId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2558,32 +1615,16 @@ export const se_GetInAppTemplateCommand = async ( input: GetInAppTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/inapp"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2593,30 +1634,14 @@ export const se_GetJourneyCommand = async ( input: GetJourneyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2626,41 +1651,21 @@ export const se_GetJourneyDateRangeKpiCommand = async ( input: GetJourneyDateRangeKpiCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "KpiName", () => input.KpiName!, "{KpiName}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.p("KpiName", () => input.KpiName!, "{KpiName}", false); const query: any = map({ - "end-time": [() => input.EndTime !== void 0, () => (input.EndTime!.toISOString().split(".")[0] + "Z").toString()], - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], - "start-time": [ - () => input.StartTime !== void 0, - () => (input.StartTime!.toISOString().split(".")[0] + "Z").toString(), - ], + [_et]: [() => input.EndTime !== void 0, () => (input[_ET]!.toISOString().split(".")[0] + "Z").toString()], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], + [_st]: [() => input.StartTime !== void 0, () => (input[_ST]!.toISOString().split(".")[0] + "Z").toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2670,43 +1675,19 @@ export const se_GetJourneyExecutionActivityMetricsCommand = async ( input: GetJourneyExecutionActivityMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "JourneyActivityId", - () => input.JourneyActivityId!, - "{JourneyActivityId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyActivityId", () => input.JourneyActivityId!, "{JourneyActivityId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2716,35 +1697,18 @@ export const se_GetJourneyExecutionMetricsCommand = async ( input: GetJourneyExecutionMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2754,44 +1718,20 @@ export const se_GetJourneyRunExecutionActivityMetricsCommand = async ( input: GetJourneyRunExecutionActivityMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/activities/{JourneyActivityId}/execution-metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "JourneyActivityId", - () => input.JourneyActivityId!, - "{JourneyActivityId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RunId", () => input.RunId!, "{RunId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/activities/{JourneyActivityId}/execution-metrics"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyActivityId", () => input.JourneyActivityId!, "{JourneyActivityId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.p("RunId", () => input.RunId!, "{RunId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2801,36 +1741,19 @@ export const se_GetJourneyRunExecutionMetricsCommand = async ( input: GetJourneyRunExecutionMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/execution-metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RunId", () => input.RunId!, "{RunId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/execution-metrics"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.p("RunId", () => input.RunId!, "{RunId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2840,35 +1763,18 @@ export const se_GetJourneyRunsCommand = async ( input: GetJourneyRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2878,32 +1784,16 @@ export const se_GetPushTemplateCommand = async ( input: GetPushTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/push"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2913,28 +1803,13 @@ export const se_GetRecommenderConfigurationCommand = async ( input: GetRecommenderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders/{RecommenderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecommenderId", - () => input.RecommenderId!, - "{RecommenderId}", - false - ); + b.bp("/v1/recommenders/{RecommenderId}"); + b.p("RecommenderId", () => input.RecommenderId!, "{RecommenderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2944,24 +1819,16 @@ export const se_GetRecommenderConfigurationsCommand = async ( input: GetRecommenderConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders"; + b.bp("/v1/recommenders"); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2971,30 +1838,14 @@ export const se_GetSegmentCommand = async ( input: GetSegmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/segments/{SegmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SegmentId", () => input.SegmentId!, "{SegmentId}", false); + b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SegmentId", () => input.SegmentId!, "{SegmentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3004,35 +1855,18 @@ export const se_GetSegmentExportJobsCommand = async ( input: GetSegmentExportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SegmentId", () => input.SegmentId!, "{SegmentId}", false); + b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SegmentId", () => input.SegmentId!, "{SegmentId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3042,35 +1876,18 @@ export const se_GetSegmentImportJobsCommand = async ( input: GetSegmentImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SegmentId", () => input.SegmentId!, "{SegmentId}", false); + b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SegmentId", () => input.SegmentId!, "{SegmentId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3080,33 +1897,17 @@ export const se_GetSegmentsCommand = async ( input: GetSegmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/segments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/segments"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3116,31 +1917,15 @@ export const se_GetSegmentVersionCommand = async ( input: GetSegmentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SegmentId", () => input.SegmentId!, "{SegmentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Version", () => input.Version!, "{Version}", false); + b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SegmentId", () => input.SegmentId!, "{SegmentId}", false); + b.p("Version", () => input.Version!, "{Version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3150,35 +1935,18 @@ export const se_GetSegmentVersionsCommand = async ( input: GetSegmentVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SegmentId", () => input.SegmentId!, "{SegmentId}", false); + b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/versions"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SegmentId", () => input.SegmentId!, "{SegmentId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3188,28 +1956,13 @@ export const se_GetSmsChannelCommand = async ( input: GetSmsChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/sms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/sms"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3219,32 +1972,16 @@ export const se_GetSmsTemplateCommand = async ( input: GetSmsTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/sms"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3254,29 +1991,14 @@ export const se_GetUserEndpointsCommand = async ( input: GetUserEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/users/{UserId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/v1/apps/{ApplicationId}/users/{UserId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3286,28 +2008,13 @@ export const se_GetVoiceChannelCommand = async ( input: GetVoiceChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/voice"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/voice"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3317,32 +2024,16 @@ export const se_GetVoiceTemplateCommand = async ( input: GetVoiceTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/voice"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - version: [, input.Version!], + [_v]: [, input[_V]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3352,33 +2043,17 @@ export const se_ListJourneysCommand = async ( input: ListJourneysCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/journeys"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/journeys"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - "page-size": [, input.PageSize!], - token: [, input.Token!], + [_ps]: [, input[_PS]!], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3388,20 +2063,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3411,26 +2079,18 @@ export const se_ListTemplatesCommand = async ( input: ListTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates"; + b.bp("/v1/templates"); const query: any = map({ - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], - prefix: [, input.Prefix!], - "template-type": [, input.TemplateType!], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], + [_p]: [, input[_P]!], + [_tt]: [, input[_TT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3440,42 +2100,18 @@ export const se_ListTemplateVersionsCommand = async ( input: ListTemplateVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/templates/{TemplateName}/{TemplateType}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateType", - () => input.TemplateType!, - "{TemplateType}", - false - ); + b.bp("/v1/templates/{TemplateName}/{TemplateType}/versions"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); + b.p("TemplateType", () => input.TemplateType!, "{TemplateType}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "page-size": [, input.PageSize!], + [_nt]: [, input[_NT]!], + [_ps]: [, input[_PS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3485,12 +2121,11 @@ export const se_PhoneNumberValidateCommand = async ( input: PhoneNumberValidateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/phone/number/validate"; + b.bp("/v1/phone/number/validate"); let body: any; if (input.NumberValidateRequest !== undefined) { body = _json(input.NumberValidateRequest); @@ -3499,15 +2134,8 @@ export const se_PhoneNumberValidateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3517,20 +2145,12 @@ export const se_PutEventsCommand = async ( input: PutEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/events"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/events"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.EventsRequest !== undefined) { body = se_EventsRequest(input.EventsRequest, context); @@ -3539,15 +2159,8 @@ export const se_PutEventsCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3557,20 +2170,12 @@ export const se_PutEventStreamCommand = async ( input: PutEventStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/eventstream"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/eventstream"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.WriteEventStream !== undefined) { body = _json(input.WriteEventStream); @@ -3579,15 +2184,8 @@ export const se_PutEventStreamCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3597,29 +2195,13 @@ export const se_RemoveAttributesCommand = async ( input: RemoveAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/attributes/{AttributeType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AttributeType", - () => input.AttributeType!, - "{AttributeType}", - false - ); + b.bp("/v1/apps/{ApplicationId}/attributes/{AttributeType}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("AttributeType", () => input.AttributeType!, "{AttributeType}", false); let body: any; if (input.UpdateAttributesRequest !== undefined) { body = _json(input.UpdateAttributesRequest); @@ -3628,15 +2210,8 @@ export const se_RemoveAttributesCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3646,20 +2221,12 @@ export const se_SendMessagesCommand = async ( input: SendMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/messages"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/messages"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.MessageRequest !== undefined) { body = se_MessageRequest(input.MessageRequest, context); @@ -3668,15 +2235,8 @@ export const se_SendMessagesCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3686,20 +2246,12 @@ export const se_SendOTPMessageCommand = async ( input: SendOTPMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/otp"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/otp"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.SendOTPMessageRequestParameters !== undefined) { body = _json(input.SendOTPMessageRequestParameters); @@ -3708,15 +2260,8 @@ export const se_SendOTPMessageCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3726,20 +2271,12 @@ export const se_SendUsersMessagesCommand = async ( input: SendUsersMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/users-messages"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/users-messages"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.SendUsersMessageRequest !== undefined) { body = se_SendUsersMessageRequest(input.SendUsersMessageRequest, context); @@ -3748,15 +2285,8 @@ export const se_SendUsersMessagesCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3766,12 +2296,12 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; if (input.TagsModel !== undefined) { body = se_TagsModel(input.TagsModel, context); @@ -3780,15 +2310,8 @@ export const se_TagResourceCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3798,27 +2321,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/v1/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3828,20 +2343,12 @@ export const se_UpdateAdmChannelCommand = async ( input: UpdateAdmChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/adm"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/adm"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.ADMChannelRequest !== undefined) { body = _json(input.ADMChannelRequest); @@ -3850,15 +2357,8 @@ export const se_UpdateAdmChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3868,20 +2368,12 @@ export const se_UpdateApnsChannelCommand = async ( input: UpdateApnsChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/apns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.APNSChannelRequest !== undefined) { body = _json(input.APNSChannelRequest); @@ -3890,15 +2382,8 @@ export const se_UpdateApnsChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3908,21 +2393,12 @@ export const se_UpdateApnsSandboxChannelCommand = async ( input: UpdateApnsSandboxChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_sandbox"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_sandbox"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.APNSSandboxChannelRequest !== undefined) { body = _json(input.APNSSandboxChannelRequest); @@ -3931,15 +2407,8 @@ export const se_UpdateApnsSandboxChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3949,21 +2418,12 @@ export const se_UpdateApnsVoipChannelCommand = async ( input: UpdateApnsVoipChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_voip"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_voip"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.APNSVoipChannelRequest !== undefined) { body = _json(input.APNSVoipChannelRequest); @@ -3972,15 +2432,8 @@ export const se_UpdateApnsVoipChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3990,21 +2443,12 @@ export const se_UpdateApnsVoipSandboxChannelCommand = async ( input: UpdateApnsVoipSandboxChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/apns_voip_sandbox"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.APNSVoipSandboxChannelRequest !== undefined) { body = _json(input.APNSVoipSandboxChannelRequest); @@ -4013,15 +2457,8 @@ export const se_UpdateApnsVoipSandboxChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4031,20 +2468,12 @@ export const se_UpdateApplicationSettingsCommand = async ( input: UpdateApplicationSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/settings"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.WriteApplicationSettingsRequest !== undefined) { body = _json(input.WriteApplicationSettingsRequest); @@ -4053,15 +2482,8 @@ export const se_UpdateApplicationSettingsCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4071,20 +2493,12 @@ export const se_UpdateBaiduChannelCommand = async ( input: UpdateBaiduChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/baidu"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/baidu"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.BaiduChannelRequest !== undefined) { body = _json(input.BaiduChannelRequest); @@ -4093,15 +2507,8 @@ export const se_UpdateBaiduChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4111,22 +2518,13 @@ export const se_UpdateCampaignCommand = async ( input: UpdateCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/campaigns/{CampaignId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); let body: any; if (input.WriteCampaignRequest !== undefined) { body = se_WriteCampaignRequest(input.WriteCampaignRequest, context); @@ -4135,15 +2533,8 @@ export const se_UpdateCampaignCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4153,20 +2544,12 @@ export const se_UpdateEmailChannelCommand = async ( input: UpdateEmailChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/email"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/email"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.EmailChannelRequest !== undefined) { body = _json(input.EmailChannelRequest); @@ -4175,15 +2558,8 @@ export const se_UpdateEmailChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4193,23 +2569,15 @@ export const se_UpdateEmailTemplateCommand = async ( input: UpdateEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/email"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/email"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - "create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion!.toString()], - version: [, input.Version!], + [_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV]!.toString()], + [_v]: [, input[_V]!], }); let body: any; if (input.EmailTemplateRequest !== undefined) { @@ -4219,16 +2587,8 @@ export const se_UpdateEmailTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4238,22 +2598,13 @@ export const se_UpdateEndpointCommand = async ( input: UpdateEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/endpoints/{EndpointId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "EndpointId", () => input.EndpointId!, "{EndpointId}", false); + b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("EndpointId", () => input.EndpointId!, "{EndpointId}", false); let body: any; if (input.EndpointRequest !== undefined) { body = se_EndpointRequest(input.EndpointRequest, context); @@ -4262,15 +2613,8 @@ export const se_UpdateEndpointCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4280,20 +2624,12 @@ export const se_UpdateEndpointsBatchCommand = async ( input: UpdateEndpointsBatchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/endpoints"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/endpoints"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.EndpointBatchRequest !== undefined) { body = se_EndpointBatchRequest(input.EndpointBatchRequest, context); @@ -4302,15 +2638,8 @@ export const se_UpdateEndpointsBatchCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4320,20 +2649,12 @@ export const se_UpdateGcmChannelCommand = async ( input: UpdateGcmChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/gcm"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/gcm"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.GCMChannelRequest !== undefined) { body = _json(input.GCMChannelRequest); @@ -4342,15 +2663,8 @@ export const se_UpdateGcmChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4360,23 +2674,15 @@ export const se_UpdateInAppTemplateCommand = async ( input: UpdateInAppTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/inapp"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/inapp"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - "create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion!.toString()], - version: [, input.Version!], + [_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV]!.toString()], + [_v]: [, input[_V]!], }); let body: any; if (input.InAppTemplateRequest !== undefined) { @@ -4386,16 +2692,8 @@ export const se_UpdateInAppTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4405,22 +2703,13 @@ export const se_UpdateJourneyCommand = async ( input: UpdateJourneyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); let body: any; if (input.WriteJourneyRequest !== undefined) { body = se_WriteJourneyRequest(input.WriteJourneyRequest, context); @@ -4429,15 +2718,8 @@ export const se_UpdateJourneyCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4447,22 +2729,13 @@ export const se_UpdateJourneyStateCommand = async ( input: UpdateJourneyStateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/journeys/{JourneyId}/state"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId!, "{JourneyId}", false); + b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/state"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("JourneyId", () => input.JourneyId!, "{JourneyId}", false); let body: any; if (input.JourneyStateRequest !== undefined) { body = _json(input.JourneyStateRequest); @@ -4471,15 +2744,8 @@ export const se_UpdateJourneyStateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4489,23 +2755,15 @@ export const se_UpdatePushTemplateCommand = async ( input: UpdatePushTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/push"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/push"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - "create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion!.toString()], - version: [, input.Version!], + [_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV]!.toString()], + [_v]: [, input[_V]!], }); let body: any; if (input.PushNotificationTemplateRequest !== undefined) { @@ -4515,16 +2773,8 @@ export const se_UpdatePushTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4534,20 +2784,12 @@ export const se_UpdateRecommenderConfigurationCommand = async ( input: UpdateRecommenderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommenders/{RecommenderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecommenderId", - () => input.RecommenderId!, - "{RecommenderId}", - false - ); + b.bp("/v1/recommenders/{RecommenderId}"); + b.p("RecommenderId", () => input.RecommenderId!, "{RecommenderId}", false); let body: any; if (input.UpdateRecommenderConfiguration !== undefined) { body = _json(input.UpdateRecommenderConfiguration); @@ -4556,15 +2798,8 @@ export const se_UpdateRecommenderConfigurationCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4574,22 +2809,13 @@ export const se_UpdateSegmentCommand = async ( input: UpdateSegmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/apps/{ApplicationId}/segments/{SegmentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SegmentId", () => input.SegmentId!, "{SegmentId}", false); + b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SegmentId", () => input.SegmentId!, "{SegmentId}", false); let body: any; if (input.WriteSegmentRequest !== undefined) { body = se_WriteSegmentRequest(input.WriteSegmentRequest, context); @@ -4598,15 +2824,8 @@ export const se_UpdateSegmentCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4616,20 +2835,12 @@ export const se_UpdateSmsChannelCommand = async ( input: UpdateSmsChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/sms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/sms"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.SMSChannelRequest !== undefined) { body = _json(input.SMSChannelRequest); @@ -4638,15 +2849,8 @@ export const se_UpdateSmsChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4656,23 +2860,15 @@ export const se_UpdateSmsTemplateCommand = async ( input: UpdateSmsTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/sms"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/sms"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - "create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion!.toString()], - version: [, input.Version!], + [_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV]!.toString()], + [_v]: [, input[_V]!], }); let body: any; if (input.SMSTemplateRequest !== undefined) { @@ -4682,16 +2878,8 @@ export const se_UpdateSmsTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4701,29 +2889,13 @@ export const se_UpdateTemplateActiveVersionCommand = async ( input: UpdateTemplateActiveVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/templates/{TemplateName}/{TemplateType}/active-version"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateType", - () => input.TemplateType!, - "{TemplateType}", - false - ); + b.bp("/v1/templates/{TemplateName}/{TemplateType}/active-version"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); + b.p("TemplateType", () => input.TemplateType!, "{TemplateType}", false); let body: any; if (input.TemplateActiveVersionRequest !== undefined) { body = _json(input.TemplateActiveVersionRequest); @@ -4732,15 +2904,8 @@ export const se_UpdateTemplateActiveVersionCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4750,20 +2915,12 @@ export const se_UpdateVoiceChannelCommand = async ( input: UpdateVoiceChannelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/channels/voice"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/channels/voice"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.VoiceChannelRequest !== undefined) { body = _json(input.VoiceChannelRequest); @@ -4772,15 +2929,8 @@ export const se_UpdateVoiceChannelCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4790,23 +2940,15 @@ export const se_UpdateVoiceTemplateCommand = async ( input: UpdateVoiceTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/templates/{TemplateName}/voice"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v1/templates/{TemplateName}/voice"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); const query: any = map({ - "create-new-version": [() => input.CreateNewVersion !== void 0, () => input.CreateNewVersion!.toString()], - version: [, input.Version!], + [_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV]!.toString()], + [_v]: [, input[_V]!], }); let body: any; if (input.VoiceTemplateRequest !== undefined) { @@ -4816,16 +2958,8 @@ export const se_UpdateVoiceTemplateCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4835,20 +2969,12 @@ export const se_VerifyOTPMessageCommand = async ( input: VerifyOTPMessageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apps/{ApplicationId}/verify-otp"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/v1/apps/{ApplicationId}/verify-otp"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; if (input.VerifyOTPMessageRequestParameters !== undefined) { body = _json(input.VerifyOTPMessageRequestParameters); @@ -4857,15 +2983,8 @@ export const se_VerifyOTPMessageCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -14526,6 +12645,27 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CNV = "CreateNewVersion"; +const _ET = "EndTime"; +const _NT = "NextToken"; +const _P = "Prefix"; +const _PS = "PageSize"; +const _ST = "StartTime"; +const _T = "Token"; +const _TK = "TagKeys"; +const _TT = "TemplateType"; +const _V = "Version"; +const _cnv = "create-new-version"; +const _et = "end-time"; +const _nt = "next-token"; +const _p = "prefix"; +const _ps = "page-size"; +const _st = "start-time"; +const _t = "token"; +const _tK = "tagKeys"; +const _tt = "template-type"; +const _v = "version"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-pipes/package.json b/clients/client-pipes/package.json index 88f5704f188d..27c0ec8b419f 100644 --- a/clients/client-pipes/package.json +++ b/clients/client-pipes/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-pipes/src/protocols/Aws_restJson1.ts b/clients/client-pipes/src/protocols/Aws_restJson1.ts index c1874f3cbde4..78e482bcd3a4 100644 --- a/clients/client-pipes/src/protocols/Aws_restJson1.ts +++ b/clients/client-pipes/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -116,12 +117,12 @@ export const se_CreatePipeCommand = async ( input: CreatePipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/pipes/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -138,15 +139,8 @@ export const se_CreatePipeCommand = async ( TargetParameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -156,20 +150,13 @@ export const se_DeletePipeCommand = async ( input: DeletePipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/pipes/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -179,20 +166,13 @@ export const se_DescribePipeCommand = async ( input: DescribePipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/pipes/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -202,29 +182,21 @@ export const se_ListPipesCommand = async ( input: ListPipesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes"; + b.bp("/v1/pipes"); const query: any = map({ - NamePrefix: [, input.NamePrefix!], - DesiredState: [, input.DesiredState!], - CurrentState: [, input.CurrentState!], - SourcePrefix: [, input.SourcePrefix!], - TargetPrefix: [, input.TargetPrefix!], - NextToken: [, input.NextToken!], - Limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], + [_NP]: [, input[_NP]!], + [_DS]: [, input[_DS]!], + [_CS]: [, input[_CS]!], + [_SP]: [, input[_SP]!], + [_TP]: [, input[_TP]!], + [_NT]: [, input[_NT]!], + [_L]: [() => input.Limit !== void 0, () => input[_L]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -234,20 +206,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -257,20 +222,13 @@ export const se_StartPipeCommand = async ( input: StartPipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/pipes/{Name}/start"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -280,20 +238,13 @@ export const se_StopPipeCommand = async ( input: StopPipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/pipes/{Name}/stop"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -303,27 +254,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -333,27 +277,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -363,12 +299,12 @@ export const se_UpdatePipeCommand = async ( input: UpdatePipeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/pipes/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -383,15 +319,8 @@ export const se_UpdatePipeCommand = async ( TargetParameters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1019,10 +948,7 @@ const de_ConflictExceptionRes = async (parsedOutput: any, context: __SerdeContex */ const de_InternalExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1082,10 +1008,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1576,6 +1499,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CS = "CurrentState"; +const _DS = "DesiredState"; +const _L = "Limit"; +const _NP = "NamePrefix"; +const _NT = "NextToken"; +const _SP = "SourcePrefix"; +const _TP = "TargetPrefix"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-polly/package.json b/clients/client-polly/package.json index 5c3a552594d1..660764492ed2 100644 --- a/clients/client-polly/package.json +++ b/clients/client-polly/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-polly/src/models/models_0.ts b/clients/client-polly/src/models/models_0.ts index 2379f5a963ea..3c9fa43ffc62 100644 --- a/clients/client-polly/src/models/models_0.ts +++ b/clients/client-polly/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { PollyServiceException as __BaseException } from "./PollyServiceException"; diff --git a/clients/client-polly/src/protocols/Aws_restJson1.ts b/clients/client-polly/src/protocols/Aws_restJson1.ts index c318424ad841..4727fb1c6a21 100644 --- a/clients/client-polly/src/protocols/Aws_restJson1.ts +++ b/clients/client-polly/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -78,20 +79,13 @@ export const se_DeleteLexiconCommand = async ( input: DeleteLexiconCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/lexicons/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/lexicons/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -101,29 +95,18 @@ export const se_DescribeVoicesCommand = async ( input: DescribeVoicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/voices"; + b.bp("/v1/voices"); const query: any = map({ - Engine: [, input.Engine!], - LanguageCode: [, input.LanguageCode!], - IncludeAdditionalLanguageCodes: [ - () => input.IncludeAdditionalLanguageCodes !== void 0, - () => input.IncludeAdditionalLanguageCodes!.toString(), - ], - NextToken: [, input.NextToken!], + [_E]: [, input[_E]!], + [_LC]: [, input[_LC]!], + [_IALC]: [() => input.IncludeAdditionalLanguageCodes !== void 0, () => input[_IALC]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -133,20 +116,13 @@ export const se_GetLexiconCommand = async ( input: GetLexiconCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/lexicons/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/lexicons/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -156,21 +132,13 @@ export const se_GetSpeechSynthesisTaskCommand = async ( input: GetSpeechSynthesisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/synthesisTasks/{TaskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TaskId", () => input.TaskId!, "{TaskId}", false); + b.bp("/v1/synthesisTasks/{TaskId}"); + b.p("TaskId", () => input.TaskId!, "{TaskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -180,23 +148,15 @@ export const se_ListLexiconsCommand = async ( input: ListLexiconsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/lexicons"; + b.bp("/v1/lexicons"); const query: any = map({ - NextToken: [, input.NextToken!], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -206,25 +166,17 @@ export const se_ListSpeechSynthesisTasksCommand = async ( input: ListSpeechSynthesisTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/synthesisTasks"; + b.bp("/v1/synthesisTasks"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], - Status: [, input.Status!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], + [_S]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -234,27 +186,20 @@ export const se_PutLexiconCommand = async ( input: PutLexiconCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/lexicons/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v1/lexicons/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { Content: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -264,11 +209,11 @@ export const se_StartSpeechSynthesisTaskCommand = async ( input: StartSpeechSynthesisTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/synthesisTasks"; + b.bp("/v1/synthesisTasks"); let body: any; body = JSON.stringify( take(input, { @@ -286,15 +231,8 @@ export const se_StartSpeechSynthesisTaskCommand = async ( VoiceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -304,11 +242,11 @@ export const se_SynthesizeSpeechCommand = async ( input: SynthesizeSpeechCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/speech"; + b.bp("/v1/speech"); let body: any; body = JSON.stringify( take(input, { @@ -323,15 +261,8 @@ export const se_SynthesizeSpeechCommand = async ( VoiceId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -790,11 +721,8 @@ export const de_SynthesizeSpeechCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], - RequestCharacters: [ - () => void 0 !== output.headers["x-amzn-requestcharacters"], - () => __strictParseInt32(output.headers["x-amzn-requestcharacters"]), - ], + [_CT]: [, output.headers[_ct]], + [_RC]: [() => void 0 !== output.headers[_xar], () => __strictParseInt32(output.headers[_xar])], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -1381,6 +1309,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ContentType"; +const _E = "Engine"; +const _IALC = "IncludeAdditionalLanguageCodes"; +const _LC = "LanguageCode"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RC = "RequestCharacters"; +const _S = "Status"; +const _ct = "content-type"; +const _xar = "x-amzn-requestcharacters"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-privatenetworks/package.json b/clients/client-privatenetworks/package.json index 563c64a39de3..f1f38fa0b04e 100644 --- a/clients/client-privatenetworks/package.json +++ b/clients/client-privatenetworks/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts b/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts index 38a9b61edea2..0101ba967b68 100644 --- a/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts +++ b/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -116,26 +117,19 @@ export const se_AcknowledgeOrderReceiptCommand = async ( input: AcknowledgeOrderReceiptCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/orders/acknowledge"; + b.bp("/v1/orders/acknowledge"); let body: any; body = JSON.stringify( take(input, { orderArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -145,12 +139,11 @@ export const se_ActivateDeviceIdentifierCommand = async ( input: ActivateDeviceIdentifierCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/device-identifiers/activate"; + b.bp("/v1/device-identifiers/activate"); let body: any; body = JSON.stringify( take(input, { @@ -158,15 +151,8 @@ export const se_ActivateDeviceIdentifierCommand = async ( deviceIdentifierArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -176,12 +162,11 @@ export const se_ActivateNetworkSiteCommand = async ( input: ActivateNetworkSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-sites/activate"; + b.bp("/v1/network-sites/activate"); let body: any; body = JSON.stringify( take(input, { @@ -191,15 +176,8 @@ export const se_ActivateNetworkSiteCommand = async ( shippingAddress: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -209,12 +187,11 @@ export const se_ConfigureAccessPointCommand = async ( input: ConfigureAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-resources/configure"; + b.bp("/v1/network-resources/configure"); let body: any; body = JSON.stringify( take(input, { @@ -226,15 +203,8 @@ export const se_ConfigureAccessPointCommand = async ( position: (_) => se_Position(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -244,11 +214,11 @@ export const se_CreateNetworkCommand = async ( input: CreateNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/networks"; + b.bp("/v1/networks"); let body: any; body = JSON.stringify( take(input, { @@ -258,15 +228,8 @@ export const se_CreateNetworkCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -276,11 +239,11 @@ export const se_CreateNetworkSiteCommand = async ( input: CreateNetworkSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-sites"; + b.bp("/v1/network-sites"); let body: any; body = JSON.stringify( take(input, { @@ -294,15 +257,8 @@ export const se_CreateNetworkSiteCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -312,12 +268,11 @@ export const se_DeactivateDeviceIdentifierCommand = async ( input: DeactivateDeviceIdentifierCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/device-identifiers/deactivate"; + b.bp("/v1/device-identifiers/deactivate"); let body: any; body = JSON.stringify( take(input, { @@ -325,15 +280,8 @@ export const se_DeactivateDeviceIdentifierCommand = async ( deviceIdentifierArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -343,25 +291,16 @@ export const se_DeleteNetworkCommand = async ( input: DeleteNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/networks/{networkArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "networkArn", () => input.networkArn!, "{networkArn}", false); + b.bp("/v1/networks/{networkArn}"); + b.p("networkArn", () => input.networkArn!, "{networkArn}", false); const query: any = map({ - clientToken: [, input.clientToken!], + [_cT]: [, input[_cT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -371,32 +310,16 @@ export const se_DeleteNetworkSiteCommand = async ( input: DeleteNetworkSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-sites/{networkSiteArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "networkSiteArn", - () => input.networkSiteArn!, - "{networkSiteArn}", - false - ); + b.bp("/v1/network-sites/{networkSiteArn}"); + b.p("networkSiteArn", () => input.networkSiteArn!, "{networkSiteArn}", false); const query: any = map({ - clientToken: [, input.clientToken!], + [_cT]: [, input[_cT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -406,29 +329,13 @@ export const se_GetDeviceIdentifierCommand = async ( input: GetDeviceIdentifierCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/device-identifiers/{deviceIdentifierArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "deviceIdentifierArn", - () => input.deviceIdentifierArn!, - "{deviceIdentifierArn}", - false - ); + b.bp("/v1/device-identifiers/{deviceIdentifierArn}"); + b.p("deviceIdentifierArn", () => input.deviceIdentifierArn!, "{deviceIdentifierArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -438,21 +345,13 @@ export const se_GetNetworkCommand = async ( input: GetNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/networks/{networkArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "networkArn", () => input.networkArn!, "{networkArn}", false); + b.bp("/v1/networks/{networkArn}"); + b.p("networkArn", () => input.networkArn!, "{networkArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -462,29 +361,13 @@ export const se_GetNetworkResourceCommand = async ( input: GetNetworkResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/network-resources/{networkResourceArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "networkResourceArn", - () => input.networkResourceArn!, - "{networkResourceArn}", - false - ); + b.bp("/v1/network-resources/{networkResourceArn}"); + b.p("networkResourceArn", () => input.networkResourceArn!, "{networkResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -494,28 +377,13 @@ export const se_GetNetworkSiteCommand = async ( input: GetNetworkSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-sites/{networkSiteArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "networkSiteArn", - () => input.networkSiteArn!, - "{networkSiteArn}", - false - ); + b.bp("/v1/network-sites/{networkSiteArn}"); + b.p("networkSiteArn", () => input.networkSiteArn!, "{networkSiteArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -525,20 +393,13 @@ export const se_GetOrderCommand = async ( input: GetOrderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/orders/{orderArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "orderArn", () => input.orderArn!, "{orderArn}", false); + b.bp("/v1/orders/{orderArn}"); + b.p("orderArn", () => input.orderArn!, "{orderArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -548,12 +409,11 @@ export const se_ListDeviceIdentifiersCommand = async ( input: ListDeviceIdentifiersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/device-identifiers/list"; + b.bp("/v1/device-identifiers/list"); let body: any; body = JSON.stringify( take(input, { @@ -563,15 +423,8 @@ export const se_ListDeviceIdentifiersCommand = async ( startToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -581,11 +434,11 @@ export const se_ListNetworkResourcesCommand = async ( input: ListNetworkResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-resources"; + b.bp("/v1/network-resources"); let body: any; body = JSON.stringify( take(input, { @@ -595,15 +448,8 @@ export const se_ListNetworkResourcesCommand = async ( startToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -613,11 +459,11 @@ export const se_ListNetworksCommand = async ( input: ListNetworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/networks/list"; + b.bp("/v1/networks/list"); let body: any; body = JSON.stringify( take(input, { @@ -626,15 +472,8 @@ export const se_ListNetworksCommand = async ( startToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -644,11 +483,11 @@ export const se_ListNetworkSitesCommand = async ( input: ListNetworkSitesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-sites/list"; + b.bp("/v1/network-sites/list"); let body: any; body = JSON.stringify( take(input, { @@ -658,15 +497,8 @@ export const se_ListNetworkSitesCommand = async ( startToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -676,11 +508,11 @@ export const se_ListOrdersCommand = async ( input: ListOrdersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/orders/list"; + b.bp("/v1/orders/list"); let body: any; body = JSON.stringify( take(input, { @@ -690,15 +522,8 @@ export const se_ListOrdersCommand = async ( startToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -708,42 +533,28 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1PingCommand */ export const se_PingCommand = async (input: PingCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ping"; + b.bp("/ping"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -753,12 +564,11 @@ export const se_StartNetworkResourceUpdateCommand = async ( input: StartNetworkResourceUpdateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-resources/update"; + b.bp("/v1/network-resources/update"); let body: any; body = JSON.stringify( take(input, { @@ -769,15 +579,8 @@ export const se_StartNetworkResourceUpdateCommand = async ( updateType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -787,27 +590,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -817,27 +613,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -847,11 +635,11 @@ export const se_UpdateNetworkSiteCommand = async ( input: UpdateNetworkSiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-sites/site"; + b.bp("/v1/network-sites/site"); let body: any; body = JSON.stringify( take(input, { @@ -860,15 +648,8 @@ export const se_UpdateNetworkSiteCommand = async ( networkSiteArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -878,11 +659,11 @@ export const se_UpdateNetworkSitePlanCommand = async ( input: UpdateNetworkSitePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/network-sites/plan"; + b.bp("/v1/network-sites/plan"); let body: any; body = JSON.stringify( take(input, { @@ -891,15 +672,8 @@ export const se_UpdateNetworkSitePlanCommand = async ( pendingPlan: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2328,10 +2102,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -2698,6 +2469,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cT = "clientToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-qbusiness/package.json b/clients/client-qbusiness/package.json index 5dec6a3a10b2..d1e0c4cc8013 100644 --- a/clients/client-qbusiness/package.json +++ b/clients/client-qbusiness/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-qbusiness/src/models/models_0.ts b/clients/client-qbusiness/src/models/models_0.ts index a8826cbdddde..fad134e4f9ee 100644 --- a/clients/client-qbusiness/src/models/models_0.ts +++ b/clients/client-qbusiness/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { QBusinessServiceException as __BaseException } from "./QBusinessServiceException"; diff --git a/clients/client-qbusiness/src/protocols/Aws_restJson1.ts b/clients/client-qbusiness/src/protocols/Aws_restJson1.ts index 6210a41d34bb..ee288df099a2 100644 --- a/clients/client-qbusiness/src/protocols/Aws_restJson1.ts +++ b/clients/client-qbusiness/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -195,22 +196,13 @@ export const se_BatchDeleteDocumentCommand = async ( input: BatchDeleteDocumentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/documents/delete"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/documents/delete"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; body = JSON.stringify( take(input, { @@ -218,15 +210,8 @@ export const se_BatchDeleteDocumentCommand = async ( documents: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -236,22 +221,13 @@ export const se_BatchPutDocumentCommand = async ( input: BatchPutDocumentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/documents"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/documents"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; body = JSON.stringify( take(input, { @@ -260,15 +236,8 @@ export const se_BatchPutDocumentCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -278,25 +247,16 @@ export const se_ChatSyncCommand = async ( input: ChatSyncCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/conversations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/conversations"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - sync: [, ""], - userId: [, __expectNonNull(input.userId!, `userId`)], - userGroups: [() => input.userGroups !== void 0, () => (input.userGroups! || []).map((_entry) => _entry as any)], + [_s]: [, ""], + [_uI]: [, __expectNonNull(input[_uI]!, `userId`)], + [_uG]: [() => input.userGroups !== void 0, () => (input[_uG]! || []).map((_entry) => _entry as any)], }); let body: any; body = JSON.stringify( @@ -310,16 +270,8 @@ export const se_ChatSyncCommand = async ( userMessage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -329,11 +281,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -346,15 +298,8 @@ export const se_CreateApplicationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -364,22 +309,13 @@ export const se_CreateDataSourceCommand = async ( input: CreateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; body = JSON.stringify( take(input, { @@ -394,15 +330,8 @@ export const se_CreateDataSourceCommand = async ( vpcConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -412,20 +341,12 @@ export const se_CreateIndexCommand = async ( input: CreateIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/indices"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/indices"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -436,15 +357,8 @@ export const se_CreateIndexCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -454,20 +368,12 @@ export const se_CreatePluginCommand = async ( input: CreatePluginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/plugins"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/plugins"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -479,15 +385,8 @@ export const se_CreatePluginCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -497,20 +396,12 @@ export const se_CreateRetrieverCommand = async ( input: CreateRetrieverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/retrievers"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/retrievers"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -522,15 +413,8 @@ export const se_CreateRetrieverCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -540,20 +424,12 @@ export const se_CreateUserCommand = async ( input: CreateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/users"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/users"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -562,15 +438,8 @@ export const se_CreateUserCommand = async ( userId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -580,20 +449,12 @@ export const se_CreateWebExperienceCommand = async ( input: CreateWebExperienceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/experiences"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/experiences"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -605,15 +466,8 @@ export const se_CreateWebExperienceCommand = async ( welcomeMessage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -623,28 +477,13 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -654,29 +493,13 @@ export const se_DeleteChatControlsConfigurationCommand = async ( input: DeleteChatControlsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/chatcontrols"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/chatcontrols"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -686,41 +509,17 @@ export const se_DeleteConversationCommand = async ( input: DeleteConversationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/conversations/{conversationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "conversationId", - () => input.conversationId!, - "{conversationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/conversations/{conversationId}"); + b.p("conversationId", () => input.conversationId!, "{conversationId}", false); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - userId: [, __expectNonNull(input.userId!, `userId`)], + [_uI]: [, __expectNonNull(input[_uI]!, `userId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -730,38 +529,15 @@ export const se_DeleteDataSourceCommand = async ( input: DeleteDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -771,35 +547,18 @@ export const se_DeleteGroupCommand = async ( input: DeleteGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/groups/{groupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "groupName", () => input.groupName!, "{groupName}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/groups/{groupName}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); + b.p("groupName", () => input.groupName!, "{groupName}", false); const query: any = map({ - dataSourceId: [, input.dataSourceId!], + [_dSI]: [, input[_dSI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -809,30 +568,14 @@ export const se_DeleteIndexCommand = async ( input: DeleteIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -842,30 +585,14 @@ export const se_DeletePluginCommand = async ( input: DeletePluginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/plugins/{pluginId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "pluginId", () => input.pluginId!, "{pluginId}", false); + b.bp("/applications/{applicationId}/plugins/{pluginId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("pluginId", () => input.pluginId!, "{pluginId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -875,30 +602,14 @@ export const se_DeleteRetrieverCommand = async ( input: DeleteRetrieverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/retrievers/{retrieverId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "retrieverId", () => input.retrieverId!, "{retrieverId}", false); + b.bp("/applications/{applicationId}/retrievers/{retrieverId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("retrieverId", () => input.retrieverId!, "{retrieverId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -908,30 +619,14 @@ export const se_DeleteUserCommand = async ( input: DeleteUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/users/{userId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/applications/{applicationId}/users/{userId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -941,37 +636,14 @@ export const se_DeleteWebExperienceCommand = async ( input: DeleteWebExperienceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/experiences/{webExperienceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "webExperienceId", - () => input.webExperienceId!, - "{webExperienceId}", - false - ); + b.bp("/applications/{applicationId}/experiences/{webExperienceId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("webExperienceId", () => input.webExperienceId!, "{webExperienceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -981,28 +653,13 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1012,34 +669,17 @@ export const se_GetChatControlsConfigurationCommand = async ( input: GetChatControlsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/chatcontrols"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/chatcontrols"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1049,38 +689,15 @@ export const se_GetDataSourceCommand = async ( input: GetDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1090,35 +707,18 @@ export const se_GetGroupCommand = async ( input: GetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/groups/{groupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "groupName", () => input.groupName!, "{groupName}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/groups/{groupName}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); + b.p("groupName", () => input.groupName!, "{groupName}", false); const query: any = map({ - dataSourceId: [, input.dataSourceId!], + [_dSI]: [, input[_dSI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1128,30 +728,14 @@ export const se_GetIndexCommand = async ( input: GetIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1161,30 +745,14 @@ export const se_GetPluginCommand = async ( input: GetPluginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/plugins/{pluginId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "pluginId", () => input.pluginId!, "{pluginId}", false); + b.bp("/applications/{applicationId}/plugins/{pluginId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("pluginId", () => input.pluginId!, "{pluginId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1194,30 +762,14 @@ export const se_GetRetrieverCommand = async ( input: GetRetrieverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/retrievers/{retrieverId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "retrieverId", () => input.retrieverId!, "{retrieverId}", false); + b.bp("/applications/{applicationId}/retrievers/{retrieverId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("retrieverId", () => input.retrieverId!, "{retrieverId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1227,30 +779,14 @@ export const se_GetUserCommand = async ( input: GetUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/users/{userId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/applications/{applicationId}/users/{userId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1260,37 +796,14 @@ export const se_GetWebExperienceCommand = async ( input: GetWebExperienceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/experiences/{webExperienceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "webExperienceId", - () => input.webExperienceId!, - "{webExperienceId}", - false - ); + b.bp("/applications/{applicationId}/experiences/{webExperienceId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("webExperienceId", () => input.webExperienceId!, "{webExperienceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1300,24 +813,16 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1327,35 +832,18 @@ export const se_ListConversationsCommand = async ( input: ListConversationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/conversations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/conversations"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - userId: [, __expectNonNull(input.userId!, `userId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_uI]: [, __expectNonNull(input[_uI]!, `userId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1365,35 +853,18 @@ export const se_ListDataSourcesCommand = async ( input: ListDataSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1403,49 +874,22 @@ export const se_ListDataSourceSyncJobsCommand = async ( input: ListDataSourceSyncJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/syncjobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/syncjobs"); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - startTime: [ - () => input.startTime !== void 0, - () => (input.startTime!.toISOString().split(".")[0] + "Z").toString(), - ], - endTime: [() => input.endTime !== void 0, () => (input.endTime!.toISOString().split(".")[0] + "Z").toString()], - syncStatus: [, input.statusFilter!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_sT]: [() => input.startTime !== void 0, () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString()], + [_eT]: [() => input.endTime !== void 0, () => (input[_eT]!.toISOString().split(".")[0] + "Z").toString()], + [_sS]: [, input[_sF]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1455,39 +899,19 @@ export const se_ListDocumentsCommand = async ( input: ListDocumentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/index/{indexId}/documents"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/index/{indexId}/documents"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); const query: any = map({ - dataSourceIds: [ - () => input.dataSourceIds !== void 0, - () => (input.dataSourceIds! || []).map((_entry) => _entry as any), - ], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_dSIa]: [() => input.dataSourceIds !== void 0, () => (input[_dSIa]! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1497,40 +921,23 @@ export const se_ListGroupsCommand = async ( input: ListGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/groups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/groups"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); const query: any = map({ - updatedEarlierThan: [ + [_uET]: [ __expectNonNull(input.updatedEarlierThan, `updatedEarlierThan`) != null, - () => (input.updatedEarlierThan!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_uET]!.toISOString().split(".")[0] + "Z").toString(), ], - dataSourceId: [, input.dataSourceId!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_dSI]: [, input[_dSI]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1540,33 +947,17 @@ export const se_ListIndicesCommand = async ( input: ListIndicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/indices"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/indices"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1576,43 +967,19 @@ export const se_ListMessagesCommand = async ( input: ListMessagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/conversations/{conversationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "conversationId", - () => input.conversationId!, - "{conversationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/conversations/{conversationId}"); + b.p("conversationId", () => input.conversationId!, "{conversationId}", false); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - userId: [, __expectNonNull(input.userId!, `userId`)], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_uI]: [, __expectNonNull(input[_uI]!, `userId`)], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1622,33 +989,17 @@ export const se_ListPluginsCommand = async ( input: ListPluginsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/plugins"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/plugins"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1658,33 +1009,17 @@ export const se_ListRetrieversCommand = async ( input: ListRetrieversCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/retrievers"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/retrievers"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1694,20 +1029,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceARN}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceARN", () => input.resourceARN!, "{resourceARN}", false); + b.bp("/v1/tags/{resourceARN}"); + b.p("resourceARN", () => input.resourceARN!, "{resourceARN}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1717,33 +1045,17 @@ export const se_ListWebExperiencesCommand = async ( input: ListWebExperiencesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/experiences"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/experiences"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1753,32 +1065,16 @@ export const se_PutFeedbackCommand = async ( input: PutFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/conversations/{conversationId}/messages/{messageId}/feedback"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "conversationId", - () => input.conversationId!, - "{conversationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "messageId", () => input.messageId!, "{messageId}", false); + b.bp("/applications/{applicationId}/conversations/{conversationId}/messages/{messageId}/feedback"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("conversationId", () => input.conversationId!, "{conversationId}", false); + b.p("messageId", () => input.messageId!, "{messageId}", false); const query: any = map({ - userId: [, __expectNonNull(input.userId!, `userId`)], + [_uI]: [, __expectNonNull(input[_uI]!, `userId`)], }); let body: any; body = JSON.stringify( @@ -1787,16 +1083,8 @@ export const se_PutFeedbackCommand = async ( messageUsefulness: (_) => se_MessageUsefulnessFeedback(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1806,22 +1094,13 @@ export const se_PutGroupCommand = async ( input: PutGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/groups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/groups"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1831,15 +1110,8 @@ export const se_PutGroupCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1849,38 +1121,15 @@ export const se_StartDataSourceSyncJobCommand = async ( input: StartDataSourceSyncJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/startsync"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/startsync"); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1890,38 +1139,15 @@ export const se_StopDataSourceSyncJobCommand = async ( input: StopDataSourceSyncJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/stopsync"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/stopsync"); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1931,27 +1157,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceARN}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceARN", () => input.resourceARN!, "{resourceARN}", false); + b.bp("/v1/tags/{resourceARN}"); + b.p("resourceARN", () => input.resourceARN!, "{resourceARN}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1961,27 +1180,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceARN}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceARN", () => input.resourceARN!, "{resourceARN}", false); + b.bp("/v1/tags/{resourceARN}"); + b.p("resourceARN", () => input.resourceARN!, "{resourceARN}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1991,20 +1202,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2014,15 +1217,8 @@ export const se_UpdateApplicationCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2032,21 +1228,12 @@ export const se_UpdateChatControlsConfigurationCommand = async ( input: UpdateChatControlsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/chatcontrols"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); + b.bp("/applications/{applicationId}/chatcontrols"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2057,15 +1244,8 @@ export const se_UpdateChatControlsConfigurationCommand = async ( topicConfigurationsToDelete: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2075,30 +1255,14 @@ export const se_UpdateDataSourceCommand = async ( input: UpdateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "dataSourceId", - () => input.dataSourceId!, - "{dataSourceId}", - false - ); + b.bp("/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); + b.p("dataSourceId", () => input.dataSourceId!, "{dataSourceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2111,15 +1275,8 @@ export const se_UpdateDataSourceCommand = async ( vpcConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2129,22 +1286,13 @@ export const se_UpdateIndexCommand = async ( input: UpdateIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/indices/{indexId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "indexId", () => input.indexId!, "{indexId}", false); + b.bp("/applications/{applicationId}/indices/{indexId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("indexId", () => input.indexId!, "{indexId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2154,15 +1302,8 @@ export const se_UpdateIndexCommand = async ( documentAttributeConfigurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2172,22 +1313,13 @@ export const se_UpdatePluginCommand = async ( input: UpdatePluginCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/plugins/{pluginId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "pluginId", () => input.pluginId!, "{pluginId}", false); + b.bp("/applications/{applicationId}/plugins/{pluginId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("pluginId", () => input.pluginId!, "{pluginId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2197,15 +1329,8 @@ export const se_UpdatePluginCommand = async ( state: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2215,22 +1340,13 @@ export const se_UpdateRetrieverCommand = async ( input: UpdateRetrieverCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/retrievers/{retrieverId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "retrieverId", () => input.retrieverId!, "{retrieverId}", false); + b.bp("/applications/{applicationId}/retrievers/{retrieverId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("retrieverId", () => input.retrieverId!, "{retrieverId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2239,15 +1355,8 @@ export const se_UpdateRetrieverCommand = async ( roleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2257,22 +1366,13 @@ export const se_UpdateUserCommand = async ( input: UpdateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/users/{userId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId!, "{userId}", false); + b.bp("/applications/{applicationId}/users/{userId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("userId", () => input.userId!, "{userId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2280,15 +1380,8 @@ export const se_UpdateUserCommand = async ( userAliasesToUpdate: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2298,29 +1391,13 @@ export const se_UpdateWebExperienceCommand = async ( input: UpdateWebExperienceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{applicationId}/experiences/{webExperienceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "applicationId", - () => input.applicationId!, - "{applicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "webExperienceId", - () => input.webExperienceId!, - "{webExperienceId}", - false - ); + b.bp("/applications/{applicationId}/experiences/{webExperienceId}"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("webExperienceId", () => input.webExperienceId!, "{webExperienceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2331,15 +1408,8 @@ export const se_UpdateWebExperienceCommand = async ( welcomeMessage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6876,6 +5946,20 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _dSI = "dataSourceId"; +const _dSIa = "dataSourceIds"; +const _eT = "endTime"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _s = "sync"; +const _sF = "statusFilter"; +const _sS = "syncStatus"; +const _sT = "startTime"; +const _tK = "tagKeys"; +const _uET = "updatedEarlierThan"; +const _uG = "userGroups"; +const _uI = "userId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-qconnect/package.json b/clients/client-qconnect/package.json index da37906641b7..2de42cdccf62 100644 --- a/clients/client-qconnect/package.json +++ b/clients/client-qconnect/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-qconnect/src/protocols/Aws_restJson1.ts b/clients/client-qconnect/src/protocols/Aws_restJson1.ts index 8f28b60fda14..0173c674020f 100644 --- a/clients/client-qconnect/src/protocols/Aws_restJson1.ts +++ b/clients/client-qconnect/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -163,11 +164,11 @@ export const se_CreateAssistantCommand = async ( input: CreateAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants"; + b.bp("/assistants"); let body: any; body = JSON.stringify( take(input, { @@ -179,15 +180,8 @@ export const se_CreateAssistantCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -197,13 +191,12 @@ export const se_CreateAssistantAssociationCommand = async ( input: CreateAssistantAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; body = JSON.stringify( take(input, { @@ -213,15 +206,8 @@ export const se_CreateAssistantAssociationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -231,21 +217,12 @@ export const se_CreateContentCommand = async ( input: CreateContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -258,15 +235,8 @@ export const se_CreateContentCommand = async ( uploadId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -276,11 +246,11 @@ export const se_CreateKnowledgeBaseCommand = async ( input: CreateKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases"; + b.bp("/knowledgeBases"); let body: any; body = JSON.stringify( take(input, { @@ -294,15 +264,8 @@ export const se_CreateKnowledgeBaseCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -312,21 +275,12 @@ export const se_CreateQuickResponseCommand = async ( input: CreateQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -343,15 +297,8 @@ export const se_CreateQuickResponseCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -361,13 +308,12 @@ export const se_CreateSessionCommand = async ( input: CreateSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/sessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/sessions"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; body = JSON.stringify( take(input, { @@ -377,15 +323,8 @@ export const se_CreateSessionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -395,21 +334,13 @@ export const se_DeleteAssistantCommand = async ( input: DeleteAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -419,30 +350,14 @@ export const se_DeleteAssistantAssociationCommand = async ( input: DeleteAssistantAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/associations/{assistantAssociationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assistantAssociationId", - () => input.assistantAssociationId!, - "{assistantAssociationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}"); + b.p("assistantAssociationId", () => input.assistantAssociationId!, "{assistantAssociationId}", false); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -452,30 +367,14 @@ export const se_DeleteContentCommand = async ( input: DeleteContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("contentId", () => input.contentId!, "{contentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -485,30 +384,14 @@ export const se_DeleteImportJobCommand = async ( input: DeleteImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "importJobId", () => input.importJobId!, "{importJobId}", false); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("importJobId", () => input.importJobId!, "{importJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -518,28 +401,13 @@ export const se_DeleteKnowledgeBaseCommand = async ( input: DeleteKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -549,37 +417,14 @@ export const se_DeleteQuickResponseCommand = async ( input: DeleteQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quickResponseId", - () => input.quickResponseId!, - "{quickResponseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("quickResponseId", () => input.quickResponseId!, "{quickResponseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -589,21 +434,13 @@ export const se_GetAssistantCommand = async ( input: GetAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -613,30 +450,14 @@ export const se_GetAssistantAssociationCommand = async ( input: GetAssistantAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/associations/{assistantAssociationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assistantAssociationId", - () => input.assistantAssociationId!, - "{assistantAssociationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}"); + b.p("assistantAssociationId", () => input.assistantAssociationId!, "{assistantAssociationId}", false); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -646,30 +467,14 @@ export const se_GetContentCommand = async ( input: GetContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"); + b.p("contentId", () => input.contentId!, "{contentId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -679,30 +484,14 @@ export const se_GetContentSummaryCommand = async ( input: GetContentSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary"; - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary"); + b.p("contentId", () => input.contentId!, "{contentId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -712,30 +501,14 @@ export const se_GetImportJobCommand = async ( input: GetImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "importJobId", () => input.importJobId!, "{importJobId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"); + b.p("importJobId", () => input.importJobId!, "{importJobId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -745,28 +518,13 @@ export const se_GetKnowledgeBaseCommand = async ( input: GetKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -776,37 +534,14 @@ export const se_GetQuickResponseCommand = async ( input: GetQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quickResponseId", - () => input.quickResponseId!, - "{quickResponseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"); + b.p("quickResponseId", () => input.quickResponseId!, "{quickResponseId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -816,28 +551,18 @@ export const se_GetRecommendationsCommand = async ( input: GetRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/sessions/{sessionId}/recommendations"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - waitTimeSeconds: [() => input.waitTimeSeconds !== void 0, () => input.waitTimeSeconds!.toString()], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_wTS]: [() => input.waitTimeSeconds !== void 0, () => input[_wTS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -847,23 +572,14 @@ export const se_GetSessionCommand = async ( input: GetSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/sessions/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/assistants/{assistantId}/sessions/{sessionId}"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -873,26 +589,17 @@ export const se_ListAssistantAssociationsCommand = async ( input: ListAssistantAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -902,24 +609,16 @@ export const se_ListAssistantsCommand = async ( input: ListAssistantsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants"; + b.bp("/assistants"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -929,34 +628,17 @@ export const se_ListContentsCommand = async ( input: ListContentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -966,34 +648,17 @@ export const se_ListImportJobsCommand = async ( input: ListImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1003,24 +668,16 @@ export const se_ListKnowledgeBasesCommand = async ( input: ListKnowledgeBasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases"; + b.bp("/knowledgeBases"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1030,34 +687,17 @@ export const se_ListQuickResponsesCommand = async ( input: ListQuickResponsesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1067,20 +707,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1090,30 +723,21 @@ export const se_NotifyRecommendationsReceivedCommand = async ( input: NotifyRecommendationsReceivedCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; body = JSON.stringify( take(input, { recommendationIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1123,13 +747,12 @@ export const se_PutFeedbackCommand = async ( input: PutFeedbackCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/feedback"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/feedback"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1138,15 +761,8 @@ export const se_PutFeedbackCommand = async ( targetType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1156,13 +772,12 @@ export const se_QueryAssistantCommand = async ( input: QueryAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/query"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/query"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1173,15 +788,8 @@ export const se_QueryAssistantCommand = async ( sessionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1191,29 +799,13 @@ export const se_RemoveKnowledgeBaseTemplateUriCommand = async ( input: RemoveKnowledgeBaseTemplateUriCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/templateUri"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1223,23 +815,15 @@ export const se_SearchContentCommand = async ( input: SearchContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}/search"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/search"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1247,16 +831,8 @@ export const se_SearchContentCommand = async ( searchExpression: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1266,24 +842,15 @@ export const se_SearchQuickResponsesCommand = async ( input: SearchQuickResponsesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/search/quickResponses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/search/quickResponses"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1292,16 +859,8 @@ export const se_SearchQuickResponsesCommand = async ( searchExpression: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1311,16 +870,15 @@ export const se_SearchSessionsCommand = async ( input: SearchSessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/searchSessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/searchSessions"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1328,16 +886,8 @@ export const se_SearchSessionsCommand = async ( searchExpression: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1347,20 +897,12 @@ export const se_StartContentUploadCommand = async ( input: StartContentUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}/upload"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/upload"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1368,15 +910,8 @@ export const se_StartContentUploadCommand = async ( presignedUrlTimeToLive: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1386,21 +921,12 @@ export const se_StartImportJobCommand = async ( input: StartImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1411,15 +937,8 @@ export const se_StartImportJobCommand = async ( uploadId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1429,27 +948,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1459,27 +971,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1489,22 +993,13 @@ export const se_UpdateContentCommand = async ( input: UpdateContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("contentId", () => input.contentId!, "{contentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1516,15 +1011,8 @@ export const se_UpdateContentCommand = async ( uploadId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1534,36 +1022,20 @@ export const se_UpdateKnowledgeBaseTemplateUriCommand = async ( input: UpdateKnowledgeBaseTemplateUriCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/templateUri"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { templateUri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1573,29 +1045,13 @@ export const se_UpdateQuickResponseCommand = async ( input: UpdateQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quickResponseId", - () => input.quickResponseId!, - "{quickResponseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("quickResponseId", () => input.quickResponseId!, "{quickResponseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1613,15 +1069,8 @@ export const se_UpdateQuickResponseCommand = async ( shortcutKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4536,6 +3985,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; +const _wTS = "waitTimeSeconds"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-qldb/package.json b/clients/client-qldb/package.json index eb77aef230af..39c2940b43ff 100644 --- a/clients/client-qldb/package.json +++ b/clients/client-qldb/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-qldb/src/protocols/Aws_restJson1.ts b/clients/client-qldb/src/protocols/Aws_restJson1.ts index b68d30f2d66a..6b3b97580dda 100644 --- a/clients/client-qldb/src/protocols/Aws_restJson1.ts +++ b/clients/client-qldb/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -94,23 +95,14 @@ export const se_CancelJournalKinesisStreamCommand = async ( input: CancelJournalKinesisStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/ledgers/{LedgerName}/journal-kinesis-streams/{StreamId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LedgerName", () => input.LedgerName!, "{LedgerName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StreamId", () => input.StreamId!, "{StreamId}", false); + b.bp("/ledgers/{LedgerName}/journal-kinesis-streams/{StreamId}"); + b.p("LedgerName", () => input.LedgerName!, "{LedgerName}", false); + b.p("StreamId", () => input.StreamId!, "{StreamId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -120,11 +112,11 @@ export const se_CreateLedgerCommand = async ( input: CreateLedgerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers"; + b.bp("/ledgers"); let body: any; body = JSON.stringify( take(input, { @@ -135,15 +127,8 @@ export const se_CreateLedgerCommand = async ( Tags: (_) => se_Tags(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -153,20 +138,13 @@ export const se_DeleteLedgerCommand = async ( input: DeleteLedgerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -176,23 +154,14 @@ export const se_DescribeJournalKinesisStreamCommand = async ( input: DescribeJournalKinesisStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/ledgers/{LedgerName}/journal-kinesis-streams/{StreamId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LedgerName", () => input.LedgerName!, "{LedgerName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "StreamId", () => input.StreamId!, "{StreamId}", false); + b.bp("/ledgers/{LedgerName}/journal-kinesis-streams/{StreamId}"); + b.p("LedgerName", () => input.LedgerName!, "{LedgerName}", false); + b.p("StreamId", () => input.StreamId!, "{StreamId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -202,23 +171,14 @@ export const se_DescribeJournalS3ExportCommand = async ( input: DescribeJournalS3ExportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/ledgers/{Name}/journal-s3-exports/{ExportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ExportId", () => input.ExportId!, "{ExportId}", false); + b.bp("/ledgers/{Name}/journal-s3-exports/{ExportId}"); + b.p("Name", () => input.Name!, "{Name}", false); + b.p("ExportId", () => input.ExportId!, "{ExportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -228,20 +188,13 @@ export const se_DescribeLedgerCommand = async ( input: DescribeLedgerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -251,13 +204,12 @@ export const se_ExportJournalToS3Command = async ( input: ExportJournalToS3CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}/journal-s3-exports"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}/journal-s3-exports"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -268,15 +220,8 @@ export const se_ExportJournalToS3Command = async ( S3ExportConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -286,12 +231,12 @@ export const se_GetBlockCommand = async ( input: GetBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}/block"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}/block"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -299,15 +244,8 @@ export const se_GetBlockCommand = async ( DigestTipAddress: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,20 +255,13 @@ export const se_GetDigestCommand = async ( input: GetDigestCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}/digest"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}/digest"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -340,12 +271,12 @@ export const se_GetRevisionCommand = async ( input: GetRevisionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}/revision"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}/revision"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -354,15 +285,8 @@ export const se_GetRevisionCommand = async ( DocumentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -372,27 +296,17 @@ export const se_ListJournalKinesisStreamsForLedgerCommand = async ( input: ListJournalKinesisStreamsForLedgerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/ledgers/{LedgerName}/journal-kinesis-streams"; - resolvedPath = __resolvedPath(resolvedPath, input, "LedgerName", () => input.LedgerName!, "{LedgerName}", false); + b.bp("/ledgers/{LedgerName}/journal-kinesis-streams"); + b.p("LedgerName", () => input.LedgerName!, "{LedgerName}", false); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -402,24 +316,16 @@ export const se_ListJournalS3ExportsCommand = async ( input: ListJournalS3ExportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/journal-s3-exports"; + b.bp("/journal-s3-exports"); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -429,26 +335,17 @@ export const se_ListJournalS3ExportsForLedgerCommand = async ( input: ListJournalS3ExportsForLedgerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}/journal-s3-exports"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}/journal-s3-exports"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -458,24 +355,16 @@ export const se_ListLedgersCommand = async ( input: ListLedgersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers"; + b.bp("/ledgers"); const query: any = map({ - max_results: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - next_token: [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -485,20 +374,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -508,14 +390,12 @@ export const se_StreamJournalToKinesisCommand = async ( input: StreamJournalToKinesisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/ledgers/{LedgerName}/journal-kinesis-streams"; - resolvedPath = __resolvedPath(resolvedPath, input, "LedgerName", () => input.LedgerName!, "{LedgerName}", false); + b.bp("/ledgers/{LedgerName}/journal-kinesis-streams"); + b.p("LedgerName", () => input.LedgerName!, "{LedgerName}", false); let body: any; body = JSON.stringify( take(input, { @@ -527,15 +407,8 @@ export const se_StreamJournalToKinesisCommand = async ( Tags: (_) => se_Tags(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -545,27 +418,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => se_Tags(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -575,27 +441,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -605,12 +463,12 @@ export const se_UpdateLedgerCommand = async ( input: UpdateLedgerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -618,15 +476,8 @@ export const se_UpdateLedgerCommand = async ( KmsKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -636,28 +487,20 @@ export const se_UpdateLedgerPermissionsModeCommand = async ( input: UpdateLedgerPermissionsModeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ledgers/{Name}/permissions-mode"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/ledgers/{Name}/permissions-mode"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { PermissionsMode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1968,6 +1811,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _mr = "max_results"; +const _nt = "next_token"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-quicksight/package.json b/clients/client-quicksight/package.json index 6d62b3221561..d8d52398844f 100644 --- a/clients/client-quicksight/package.json +++ b/clients/client-quicksight/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-quicksight/src/models/models_2.ts b/clients/client-quicksight/src/models/models_2.ts index 67b10ce49602..97cb35fc2c94 100644 --- a/clients/client-quicksight/src/models/models_2.ts +++ b/clients/client-quicksight/src/models/models_2.ts @@ -22,6 +22,7 @@ import { ResourceStatus, TimeGranularity, } from "./models_0"; + import { AnalysisDefinition, AnalysisSourceEntity, @@ -29,6 +30,7 @@ import { DataSetReference, SheetDefinition, } from "./models_1"; + import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException"; /** diff --git a/clients/client-quicksight/src/models/models_3.ts b/clients/client-quicksight/src/models/models_3.ts index af2c5d355ccd..369ae7b336c6 100644 --- a/clients/client-quicksight/src/models/models_3.ts +++ b/clients/client-quicksight/src/models/models_3.ts @@ -12,7 +12,9 @@ import { ResourceStatus, Sheet, } from "./models_0"; + import { AnalysisDefinition, AnalysisSummary, FilterOperator } from "./models_1"; + import { _Parameters, _ParametersFilterSensitiveLog, @@ -91,6 +93,7 @@ import { TopicTimeGranularity, VpcConnectionProperties, } from "./models_2"; + import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException"; /** diff --git a/clients/client-quicksight/src/models/models_4.ts b/clients/client-quicksight/src/models/models_4.ts index 6fa5a0c9305f..f7e72025f0d2 100644 --- a/clients/client-quicksight/src/models/models_4.ts +++ b/clients/client-quicksight/src/models/models_4.ts @@ -2,7 +2,9 @@ import { SENSITIVE_STRING } from "@smithy/smithy-client"; import { AccountCustomization, ResourceStatus } from "./models_0"; + import { AnalysisDefinition, AnalysisSearchFilter, AnalysisSourceEntity, AnalysisSummary } from "./models_1"; + import { _Parameters, _ParametersFilterSensitiveLog, @@ -50,6 +52,7 @@ import { ValidationStrategy, VpcConnectionProperties, } from "./models_2"; + import { DashboardSearchFilter, DashboardSummary, diff --git a/clients/client-quicksight/src/protocols/Aws_restJson1.ts b/clients/client-quicksight/src/protocols/Aws_restJson1.ts index 96961a042b39..756ee098bfc0 100644 --- a/clients/client-quicksight/src/protocols/Aws_restJson1.ts +++ b/clients/client-quicksight/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -1241,31 +1242,15 @@ export const se_CancelIngestionCommand = async ( input: CancelIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "IngestionId", () => input.IngestionId!, "{IngestionId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("IngestionId", () => input.IngestionId!, "{IngestionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1275,22 +1260,14 @@ export const se_CreateAccountCustomizationCommand = async ( input: CreateAccountCustomizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/customizations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/customizations"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - namespace: [, input.Namespace!], + [_n]: [, input[_N]!], }); let body: any; body = JSON.stringify( @@ -1299,16 +1276,8 @@ export const se_CreateAccountCustomizationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1318,19 +1287,12 @@ export const se_CreateAccountSubscriptionCommand = async ( input: CreateAccountSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/{AwsAccountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/account/{AwsAccountId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1350,15 +1312,8 @@ export const se_CreateAccountSubscriptionCommand = async ( Realm: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1368,22 +1323,13 @@ export const se_CreateAnalysisCommand = async ( input: CreateAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/analyses/{AnalysisId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/analyses/{AnalysisId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1398,15 +1344,8 @@ export const se_CreateAnalysisCommand = async ( ValidationStrategy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1416,22 +1355,13 @@ export const se_CreateDashboardCommand = async ( input: CreateDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1450,15 +1380,8 @@ export const se_CreateDashboardCommand = async ( VersionDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1468,20 +1391,12 @@ export const se_CreateDataSetCommand = async ( input: CreateDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/data-sets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sets"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1502,15 +1417,8 @@ export const se_CreateDataSetCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1520,20 +1428,12 @@ export const se_CreateDataSourceCommand = async ( input: CreateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/data-sources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sources"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1549,15 +1449,8 @@ export const se_CreateDataSourceCommand = async ( VpcConnectionProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1567,22 +1460,13 @@ export const se_CreateFolderCommand = async ( input: CreateFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1594,15 +1478,8 @@ export const se_CreateFolderCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1612,32 +1489,16 @@ export const se_CreateFolderMembershipCommand = async ( input: CreateFolderMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberId", () => input.MemberId!, "{MemberId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberType", () => input.MemberType!, "{MemberType}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); + b.p("MemberId", () => input.MemberId!, "{MemberId}", false); + b.p("MemberType", () => input.MemberType!, "{MemberType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1647,22 +1508,13 @@ export const se_CreateGroupCommand = async ( input: CreateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; body = JSON.stringify( take(input, { @@ -1670,15 +1522,8 @@ export const se_CreateGroupCommand = async ( GroupName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1688,32 +1533,16 @@ export const se_CreateGroupMembershipCommand = async ( input: CreateGroupMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MemberName", () => input.MemberName!, "{MemberName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "GroupName", () => input.GroupName!, "{GroupName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"); + b.p("MemberName", () => input.MemberName!, "{MemberName}", false); + b.p("GroupName", () => input.GroupName!, "{GroupName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1723,22 +1552,13 @@ export const se_CreateIAMPolicyAssignmentCommand = async ( input: CreateIAMPolicyAssignmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; body = JSON.stringify( take(input, { @@ -1748,15 +1568,8 @@ export const se_CreateIAMPolicyAssignmentCommand = async ( PolicyArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1766,38 +1579,22 @@ export const se_CreateIngestionCommand = async ( input: CreateIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "IngestionId", () => input.IngestionId!, "{IngestionId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("IngestionId", () => input.IngestionId!, "{IngestionId}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { IngestionType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1807,19 +1604,12 @@ export const se_CreateNamespaceCommand = async ( input: CreateNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1828,15 +1618,8 @@ export const se_CreateNamespaceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1846,37 +1629,21 @@ export const se_CreateRefreshScheduleCommand = async ( input: CreateRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { Schedule: (_) => se_RefreshSchedule(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1886,32 +1653,16 @@ export const se_CreateRoleMembershipCommand = async ( input: CreateRoleMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MemberName", () => input.MemberName!, "{MemberName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role!, "{Role}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}"); + b.p("MemberName", () => input.MemberName!, "{MemberName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); + b.p("Role", () => input.Role!, "{Role}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1921,22 +1672,13 @@ export const se_CreateTemplateCommand = async ( input: CreateTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1949,15 +1691,8 @@ export const se_CreateTemplateCommand = async ( VersionDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1967,38 +1702,22 @@ export const se_CreateTemplateAliasCommand = async ( input: CreateTemplateAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; body = JSON.stringify( take(input, { TemplateVersionNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2008,21 +1727,13 @@ export const se_CreateThemeCommand = async ( input: CreateThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/themes/{ThemeId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2034,15 +1745,8 @@ export const se_CreateThemeCommand = async ( VersionDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2052,38 +1756,22 @@ export const se_CreateThemeAliasCommand = async ( input: CreateThemeAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; body = JSON.stringify( take(input, { ThemeVersionNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2093,20 +1781,12 @@ export const se_CreateTopicCommand = async ( input: CreateTopicCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/topics"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2115,15 +1795,8 @@ export const se_CreateTopicCommand = async ( TopicId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2133,22 +1806,13 @@ export const se_CreateTopicRefreshScheduleCommand = async ( input: CreateTopicRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/schedules"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/schedules"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2157,15 +1821,8 @@ export const se_CreateTopicRefreshScheduleCommand = async ( RefreshSchedule: (_) => se_TopicRefreshSchedule(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2175,20 +1832,12 @@ export const se_CreateVPCConnectionCommand = async ( input: CreateVPCConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/vpc-connections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/vpc-connections"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2201,15 +1850,8 @@ export const se_CreateVPCConnectionCommand = async ( VPCConnectionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2219,32 +1861,16 @@ export const se_DeleteAccountCustomizationCommand = async ( input: DeleteAccountCustomizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/customizations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/customizations"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - namespace: [, input.Namespace!], + [_n]: [, input[_N]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2254,27 +1880,13 @@ export const se_DeleteAccountSubscriptionCommand = async ( input: DeleteAccountSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/{AwsAccountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/account/{AwsAccountId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2284,41 +1896,18 @@ export const se_DeleteAnalysisCommand = async ( input: DeleteAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/analyses/{AnalysisId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/analyses/{AnalysisId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); const query: any = map({ - "recovery-window-in-days": [ - () => input.RecoveryWindowInDays !== void 0, - () => input.RecoveryWindowInDays!.toString(), - ], - "force-delete-without-recovery": [ - () => input.ForceDeleteWithoutRecovery !== void 0, - () => input.ForceDeleteWithoutRecovery!.toString(), - ], + [_rwid]: [() => input.RecoveryWindowInDays !== void 0, () => input[_RWID]!.toString()], + [_fdwr]: [() => input.ForceDeleteWithoutRecovery !== void 0, () => input[_FDWR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2328,34 +1917,17 @@ export const se_DeleteDashboardCommand = async ( input: DeleteDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2365,30 +1937,14 @@ export const se_DeleteDataSetCommand = async ( input: DeleteDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2398,30 +1954,14 @@ export const se_DeleteDataSetRefreshPropertiesCommand = async ( input: DeleteDataSetRefreshPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2431,37 +1971,14 @@ export const se_DeleteDataSourceCommand = async ( input: DeleteDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DataSourceId", - () => input.DataSourceId!, - "{DataSourceId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sources/{DataSourceId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSourceId", () => input.DataSourceId!, "{DataSourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2471,30 +1988,14 @@ export const se_DeleteFolderCommand = async ( input: DeleteFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2504,32 +2005,16 @@ export const se_DeleteFolderMembershipCommand = async ( input: DeleteFolderMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberId", () => input.MemberId!, "{MemberId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "MemberType", () => input.MemberType!, "{MemberType}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); + b.p("MemberId", () => input.MemberId!, "{MemberId}", false); + b.p("MemberType", () => input.MemberType!, "{MemberType}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2539,31 +2024,15 @@ export const se_DeleteGroupCommand = async ( input: DeleteGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupName", () => input.GroupName!, "{GroupName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"); + b.p("GroupName", () => input.GroupName!, "{GroupName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2573,32 +2042,16 @@ export const se_DeleteGroupMembershipCommand = async ( input: DeleteGroupMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MemberName", () => input.MemberName!, "{MemberName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "GroupName", () => input.GroupName!, "{GroupName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"); + b.p("MemberName", () => input.MemberName!, "{MemberName}", false); + b.p("GroupName", () => input.GroupName!, "{GroupName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2608,38 +2061,15 @@ export const se_DeleteIAMPolicyAssignmentCommand = async ( input: DeleteIAMPolicyAssignmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespace/{Namespace}/iam-policy-assignments/{AssignmentName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssignmentName", - () => input.AssignmentName!, - "{AssignmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespace/{Namespace}/iam-policy-assignments/{AssignmentName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AssignmentName", () => input.AssignmentName!, "{AssignmentName}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2649,30 +2079,14 @@ export const se_DeleteIdentityPropagationConfigCommand = async ( input: DeleteIdentityPropagationConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/identity-propagation-config/{Service}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Service", () => input.Service!, "{Service}", false); + b.bp("/accounts/{AwsAccountId}/identity-propagation-config/{Service}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Service", () => input.Service!, "{Service}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2682,30 +2096,14 @@ export const se_DeleteNamespaceCommand = async ( input: DeleteNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2715,31 +2113,15 @@ export const se_DeleteRefreshScheduleCommand = async ( input: DeleteRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ScheduleId", () => input.ScheduleId!, "{ScheduleId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ScheduleId", () => input.ScheduleId!, "{ScheduleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2749,31 +2131,15 @@ export const se_DeleteRoleCustomPermissionCommand = async ( input: DeleteRoleCustomPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"; - resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role!, "{Role}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"); + b.p("Role", () => input.Role!, "{Role}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2783,32 +2149,16 @@ export const se_DeleteRoleMembershipCommand = async ( input: DeleteRoleMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MemberName", () => input.MemberName!, "{MemberName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role!, "{Role}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}"); + b.p("MemberName", () => input.MemberName!, "{MemberName}", false); + b.p("Role", () => input.Role!, "{Role}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2818,34 +2168,17 @@ export const se_DeleteTemplateCommand = async ( input: DeleteTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2855,31 +2188,15 @@ export const se_DeleteTemplateAliasCommand = async ( input: DeleteTemplateAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2889,33 +2206,17 @@ export const se_DeleteThemeCommand = async ( input: DeleteThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/themes/{ThemeId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2925,31 +2226,15 @@ export const se_DeleteThemeAliasCommand = async ( input: DeleteThemeAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2959,29 +2244,14 @@ export const se_DeleteTopicCommand = async ( input: DeleteTopicCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics/{TopicId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -2991,31 +2261,15 @@ export const se_DeleteTopicRefreshScheduleCommand = async ( input: DeleteTopicRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetId", () => input.DatasetId!, "{DatasetId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); + b.p("DatasetId", () => input.DatasetId!, "{DatasetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3025,31 +2279,15 @@ export const se_DeleteUserCommand = async ( input: DeleteUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"); + b.p("UserName", () => input.UserName!, "{UserName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3059,31 +2297,15 @@ export const se_DeleteUserByPrincipalIdCommand = async ( input: DeleteUserByPrincipalIdCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PrincipalId", () => input.PrincipalId!, "{PrincipalId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}"); + b.p("PrincipalId", () => input.PrincipalId!, "{PrincipalId}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3093,37 +2315,14 @@ export const se_DeleteVPCConnectionCommand = async ( input: DeleteVPCConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VPCConnectionId", - () => input.VPCConnectionId!, - "{VPCConnectionId}", - false - ); + b.bp("/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("VPCConnectionId", () => input.VPCConnectionId!, "{VPCConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -3133,33 +2332,17 @@ export const se_DescribeAccountCustomizationCommand = async ( input: DescribeAccountCustomizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/customizations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/customizations"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - namespace: [, input.Namespace!], - resolved: [() => input.Resolved !== void 0, () => input.Resolved!.toString()], + [_n]: [, input[_N]!], + [_r]: [() => input.Resolved !== void 0, () => input[_R]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3169,28 +2352,13 @@ export const se_DescribeAccountSettingsCommand = async ( input: DescribeAccountSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/settings"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3200,27 +2368,13 @@ export const se_DescribeAccountSubscriptionCommand = async ( input: DescribeAccountSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/{AwsAccountId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/account/{AwsAccountId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3230,30 +2384,14 @@ export const se_DescribeAnalysisCommand = async ( input: DescribeAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/analyses/{AnalysisId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/analyses/{AnalysisId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3263,30 +2401,14 @@ export const se_DescribeAnalysisDefinitionCommand = async ( input: DescribeAnalysisDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/analyses/{AnalysisId}/definition"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/analyses/{AnalysisId}/definition"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3296,30 +2418,14 @@ export const se_DescribeAnalysisPermissionsCommand = async ( input: DescribeAnalysisPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3329,37 +2435,14 @@ export const se_DescribeAssetBundleExportJobCommand = async ( input: DescribeAssetBundleExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/asset-bundle-export-jobs/{AssetBundleExportJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssetBundleExportJobId", - () => input.AssetBundleExportJobId!, - "{AssetBundleExportJobId}", - false - ); + b.bp("/accounts/{AwsAccountId}/asset-bundle-export-jobs/{AssetBundleExportJobId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AssetBundleExportJobId", () => input.AssetBundleExportJobId!, "{AssetBundleExportJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3369,37 +2452,14 @@ export const se_DescribeAssetBundleImportJobCommand = async ( input: DescribeAssetBundleImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/asset-bundle-import-jobs/{AssetBundleImportJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssetBundleImportJobId", - () => input.AssetBundleImportJobId!, - "{AssetBundleImportJobId}", - false - ); + b.bp("/accounts/{AwsAccountId}/asset-bundle-import-jobs/{AssetBundleImportJobId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AssetBundleImportJobId", () => input.AssetBundleImportJobId!, "{AssetBundleImportJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3409,35 +2469,18 @@ export const se_DescribeDashboardCommand = async ( input: DescribeDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], - "alias-name": [, input.AliasName!], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], + [_an]: [, input[_AN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3447,35 +2490,18 @@ export const se_DescribeDashboardDefinitionCommand = async ( input: DescribeDashboardDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/definition"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/definition"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], - "alias-name": [, input.AliasName!], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], + [_an]: [, input[_AN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3485,30 +2511,14 @@ export const se_DescribeDashboardPermissionsCommand = async ( input: DescribeDashboardPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3518,38 +2528,15 @@ export const se_DescribeDashboardSnapshotJobCommand = async ( input: DescribeDashboardSnapshotJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SnapshotJobId", - () => input.SnapshotJobId!, - "{SnapshotJobId}", - false - ); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.p("SnapshotJobId", () => input.SnapshotJobId!, "{SnapshotJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3559,38 +2546,15 @@ export const se_DescribeDashboardSnapshotJobResultCommand = async ( input: DescribeDashboardSnapshotJobResultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}/result"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SnapshotJobId", - () => input.SnapshotJobId!, - "{SnapshotJobId}", - false - ); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}/result"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.p("SnapshotJobId", () => input.SnapshotJobId!, "{SnapshotJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3600,30 +2564,14 @@ export const se_DescribeDataSetCommand = async ( input: DescribeDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3633,30 +2581,14 @@ export const se_DescribeDataSetPermissionsCommand = async ( input: DescribeDataSetPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3666,30 +2598,14 @@ export const se_DescribeDataSetRefreshPropertiesCommand = async ( input: DescribeDataSetRefreshPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3699,37 +2615,14 @@ export const se_DescribeDataSourceCommand = async ( input: DescribeDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DataSourceId", - () => input.DataSourceId!, - "{DataSourceId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sources/{DataSourceId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSourceId", () => input.DataSourceId!, "{DataSourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3739,37 +2632,14 @@ export const se_DescribeDataSourcePermissionsCommand = async ( input: DescribeDataSourcePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DataSourceId", - () => input.DataSourceId!, - "{DataSourceId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSourceId", () => input.DataSourceId!, "{DataSourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3779,30 +2649,14 @@ export const se_DescribeFolderCommand = async ( input: DescribeFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3812,36 +2666,19 @@ export const se_DescribeFolderPermissionsCommand = async ( input: DescribeFolderPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); const query: any = map({ - namespace: [, input.Namespace!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_n]: [, input[_N]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3851,36 +2688,19 @@ export const se_DescribeFolderResolvedPermissionsCommand = async ( input: DescribeFolderResolvedPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}/resolved-permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}/resolved-permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); const query: any = map({ - namespace: [, input.Namespace!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_n]: [, input[_N]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3890,31 +2710,15 @@ export const se_DescribeGroupCommand = async ( input: DescribeGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupName", () => input.GroupName!, "{GroupName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"); + b.p("GroupName", () => input.GroupName!, "{GroupName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3924,32 +2728,16 @@ export const se_DescribeGroupMembershipCommand = async ( input: DescribeGroupMembershipCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MemberName", () => input.MemberName!, "{MemberName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "GroupName", () => input.GroupName!, "{GroupName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"); + b.p("MemberName", () => input.MemberName!, "{MemberName}", false); + b.p("GroupName", () => input.GroupName!, "{GroupName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3959,38 +2747,15 @@ export const se_DescribeIAMPolicyAssignmentCommand = async ( input: DescribeIAMPolicyAssignmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssignmentName", - () => input.AssignmentName!, - "{AssignmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AssignmentName", () => input.AssignmentName!, "{AssignmentName}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4000,31 +2765,15 @@ export const se_DescribeIngestionCommand = async ( input: DescribeIngestionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "IngestionId", () => input.IngestionId!, "{IngestionId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("IngestionId", () => input.IngestionId!, "{IngestionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4034,28 +2783,13 @@ export const se_DescribeIpRestrictionCommand = async ( input: DescribeIpRestrictionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/ip-restriction"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/ip-restriction"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4065,30 +2799,14 @@ export const se_DescribeNamespaceCommand = async ( input: DescribeNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4098,31 +2816,15 @@ export const se_DescribeRefreshScheduleCommand = async ( input: DescribeRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ScheduleId", () => input.ScheduleId!, "{ScheduleId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("ScheduleId", () => input.ScheduleId!, "{ScheduleId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4132,31 +2834,15 @@ export const se_DescribeRoleCustomPermissionCommand = async ( input: DescribeRoleCustomPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"; - resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role!, "{Role}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"); + b.p("Role", () => input.Role!, "{Role}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4166,35 +2852,18 @@ export const se_DescribeTemplateCommand = async ( input: DescribeTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], - "alias-name": [, input.AliasName!], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], + [_an]: [, input[_AN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4204,31 +2873,15 @@ export const se_DescribeTemplateAliasCommand = async ( input: DescribeTemplateAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4238,35 +2891,18 @@ export const se_DescribeTemplateDefinitionCommand = async ( input: DescribeTemplateDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/definition"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/definition"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], - "alias-name": [, input.AliasName!], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], + [_an]: [, input[_AN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4276,30 +2912,14 @@ export const se_DescribeTemplatePermissionsCommand = async ( input: DescribeTemplatePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4309,34 +2929,18 @@ export const se_DescribeThemeCommand = async ( input: DescribeThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/themes/{ThemeId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); const query: any = map({ - "version-number": [() => input.VersionNumber !== void 0, () => input.VersionNumber!.toString()], - "alias-name": [, input.AliasName!], + [_vn]: [() => input.VersionNumber !== void 0, () => input[_VN]!.toString()], + [_an]: [, input[_AN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4346,31 +2950,15 @@ export const se_DescribeThemeAliasCommand = async ( input: DescribeThemeAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4380,30 +2968,14 @@ export const se_DescribeThemePermissionsCommand = async ( input: DescribeThemePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4413,29 +2985,14 @@ export const se_DescribeTopicCommand = async ( input: DescribeTopicCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics/{TopicId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4445,30 +3002,14 @@ export const se_DescribeTopicPermissionsCommand = async ( input: DescribeTopicPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4478,31 +3019,15 @@ export const se_DescribeTopicRefreshCommand = async ( input: DescribeTopicRefreshCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/refresh/{RefreshId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "RefreshId", () => input.RefreshId!, "{RefreshId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/refresh/{RefreshId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); + b.p("RefreshId", () => input.RefreshId!, "{RefreshId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4512,31 +3037,15 @@ export const se_DescribeTopicRefreshScheduleCommand = async ( input: DescribeTopicRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetId", () => input.DatasetId!, "{DatasetId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); + b.p("DatasetId", () => input.DatasetId!, "{DatasetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4546,31 +3055,15 @@ export const se_DescribeUserCommand = async ( input: DescribeUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"); + b.p("UserName", () => input.UserName!, "{UserName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4580,37 +3073,14 @@ export const se_DescribeVPCConnectionCommand = async ( input: DescribeVPCConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VPCConnectionId", - () => input.VPCConnectionId!, - "{VPCConnectionId}", - false - ); + b.bp("/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("VPCConnectionId", () => input.VPCConnectionId!, "{VPCConnectionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -4620,21 +3090,12 @@ export const se_GenerateEmbedUrlForAnonymousUserCommand = async ( input: GenerateEmbedUrlForAnonymousUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/embed-url/anonymous-user"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/embed-url/anonymous-user"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -4646,15 +3107,8 @@ export const se_GenerateEmbedUrlForAnonymousUserCommand = async ( SessionTags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4664,21 +3118,12 @@ export const se_GenerateEmbedUrlForRegisteredUserCommand = async ( input: GenerateEmbedUrlForRegisteredUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/embed-url/registered-user"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/embed-url/registered-user"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -4688,15 +3133,8 @@ export const se_GenerateEmbedUrlForRegisteredUserCommand = async ( UserArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4706,50 +3144,24 @@ export const se_GetDashboardEmbedUrlCommand = async ( input: GetDashboardEmbedUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); const query: any = map({ - "creds-type": [, __expectNonNull(input.IdentityType!, `IdentityType`)], - "session-lifetime": [ - () => input.SessionLifetimeInMinutes !== void 0, - () => input.SessionLifetimeInMinutes!.toString(), - ], - "undo-redo-disabled": [() => input.UndoRedoDisabled !== void 0, () => input.UndoRedoDisabled!.toString()], - "reset-disabled": [() => input.ResetDisabled !== void 0, () => input.ResetDisabled!.toString()], - "state-persistence-enabled": [ - () => input.StatePersistenceEnabled !== void 0, - () => input.StatePersistenceEnabled!.toString(), - ], - "user-arn": [, input.UserArn!], - namespace: [, input.Namespace!], - "additional-dashboard-ids": [ - () => input.AdditionalDashboardIds !== void 0, - () => (input.AdditionalDashboardIds! || []).map((_entry) => _entry as any), - ], + [_ct]: [, __expectNonNull(input[_IT]!, `IdentityType`)], + [_sl]: [() => input.SessionLifetimeInMinutes !== void 0, () => input[_SLIM]!.toString()], + [_urd]: [() => input.UndoRedoDisabled !== void 0, () => input[_URD]!.toString()], + [_rd]: [() => input.ResetDisabled !== void 0, () => input[_RD]!.toString()], + [_spe]: [() => input.StatePersistenceEnabled !== void 0, () => input[_SPE]!.toString()], + [_ua]: [, input[_UA]!], + [_n]: [, input[_N]!], + [_adi]: [() => input.AdditionalDashboardIds !== void 0, () => (input[_ADI]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4759,38 +3171,18 @@ export const se_GetSessionEmbedUrlCommand = async ( input: GetSessionEmbedUrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/session-embed-url"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/session-embed-url"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "entry-point": [, input.EntryPoint!], - "session-lifetime": [ - () => input.SessionLifetimeInMinutes !== void 0, - () => input.SessionLifetimeInMinutes!.toString(), - ], - "user-arn": [, input.UserArn!], + [_ep]: [, input[_EP]!], + [_sl]: [() => input.SessionLifetimeInMinutes !== void 0, () => input[_SLIM]!.toString()], + [_ua]: [, input[_UA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4800,33 +3192,17 @@ export const se_ListAnalysesCommand = async ( input: ListAnalysesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/analyses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/analyses"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4836,34 +3212,17 @@ export const se_ListAssetBundleExportJobsCommand = async ( input: ListAssetBundleExportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/asset-bundle-export-jobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/asset-bundle-export-jobs"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4873,34 +3232,17 @@ export const se_ListAssetBundleImportJobsCommand = async ( input: ListAssetBundleImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/asset-bundle-import-jobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/asset-bundle-import-jobs"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4910,33 +3252,17 @@ export const se_ListDashboardsCommand = async ( input: ListDashboardsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/dashboards"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/dashboards"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4946,35 +3272,18 @@ export const se_ListDashboardVersionsCommand = async ( input: ListDashboardVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4984,33 +3293,17 @@ export const se_ListDataSetsCommand = async ( input: ListDataSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/data-sets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sets"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5020,33 +3313,17 @@ export const se_ListDataSourcesCommand = async ( input: ListDataSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/data-sources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sources"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5056,35 +3333,18 @@ export const se_ListFolderMembersCommand = async ( input: ListFolderMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}/members"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}/members"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5094,33 +3354,17 @@ export const se_ListFoldersCommand = async ( input: ListFoldersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/folders"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/folders"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5130,36 +3374,19 @@ export const se_ListGroupMembershipsCommand = async ( input: ListGroupMembershipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupName", () => input.GroupName!, "{GroupName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members"); + b.p("GroupName", () => input.GroupName!, "{GroupName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5169,35 +3396,18 @@ export const se_ListGroupsCommand = async ( input: ListGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5207,36 +3417,19 @@ export const se_ListIAMPolicyAssignmentsCommand = async ( input: ListIAMPolicyAssignmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/v2/iam-policy-assignments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/v2/iam-policy-assignments"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "assignment-status": [, input.AssignmentStatus!], - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_as]: [, input[_AS]!], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5246,36 +3439,19 @@ export const se_ListIAMPolicyAssignmentsForUserCommand = async ( input: ListIAMPolicyAssignmentsForUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/iam-policy-assignments"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/iam-policy-assignments"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("UserName", () => input.UserName!, "{UserName}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5285,34 +3461,17 @@ export const se_ListIdentityPropagationConfigsCommand = async ( input: ListIdentityPropagationConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/identity-propagation-config"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/identity-propagation-config"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - "next-token": [, input.NextToken!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nt]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5322,35 +3481,18 @@ export const se_ListIngestionsCommand = async ( input: ListIngestionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5360,33 +3502,17 @@ export const se_ListNamespacesCommand = async ( input: ListNamespacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/namespaces"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/namespaces"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5396,30 +3522,14 @@ export const se_ListRefreshSchedulesCommand = async ( input: ListRefreshSchedulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5429,36 +3539,19 @@ export const se_ListRoleMembershipsCommand = async ( input: ListRoleMembershipsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members"; - resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role!, "{Role}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members"); + b.p("Role", () => input.Role!, "{Role}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5468,21 +3561,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resources/{ResourceArn}/tags"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5492,35 +3577,18 @@ export const se_ListTemplateAliasesCommand = async ( input: ListTemplateAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-result": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr_]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5530,33 +3598,17 @@ export const se_ListTemplatesCommand = async ( input: ListTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/templates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/templates"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-result": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr_]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5566,35 +3618,18 @@ export const se_ListTemplateVersionsCommand = async ( input: ListTemplateVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/versions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5604,35 +3639,18 @@ export const se_ListThemeAliasesCommand = async ( input: ListThemeAliasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-result": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr_]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5642,34 +3660,18 @@ export const se_ListThemesCommand = async ( input: ListThemesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/themes"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/themes"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - type: [, input.Type!], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_t]: [, input[_T]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5679,35 +3681,18 @@ export const se_ListThemeVersionsCommand = async ( input: ListThemeVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/versions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5717,30 +3702,14 @@ export const se_ListTopicRefreshSchedulesCommand = async ( input: ListTopicRefreshSchedulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/schedules"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/schedules"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -5750,33 +3719,17 @@ export const se_ListTopicsCommand = async ( input: ListTopicsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/topics"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5786,36 +3739,19 @@ export const se_ListUserGroupsCommand = async ( input: ListUserGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups"); + b.p("UserName", () => input.UserName!, "{UserName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5825,35 +3761,18 @@ export const se_ListUsersCommand = async ( input: ListUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5863,33 +3782,17 @@ export const se_ListVPCConnectionsCommand = async ( input: ListVPCConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/vpc-connections"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/vpc-connections"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -5899,37 +3802,21 @@ export const se_PutDataSetRefreshPropertiesCommand = async ( input: PutDataSetRefreshPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; body = JSON.stringify( take(input, { DataSetRefreshProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -5939,22 +3826,13 @@ export const se_RegisterUserCommand = async ( input: RegisterUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; body = JSON.stringify( take(input, { @@ -5971,15 +3849,8 @@ export const se_RegisterUserCommand = async ( UserRole: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -5989,30 +3860,14 @@ export const se_RestoreAnalysisCommand = async ( input: RestoreAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/restore/analyses/{AnalysisId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/restore/analyses/{AnalysisId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6022,20 +3877,12 @@ export const se_SearchAnalysesCommand = async ( input: SearchAnalysesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/search/analyses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/search/analyses"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6044,15 +3891,8 @@ export const se_SearchAnalysesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6062,21 +3902,12 @@ export const se_SearchDashboardsCommand = async ( input: SearchDashboardsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/search/dashboards"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/search/dashboards"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6085,15 +3916,8 @@ export const se_SearchDashboardsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6103,20 +3927,12 @@ export const se_SearchDataSetsCommand = async ( input: SearchDataSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/search/data-sets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/search/data-sets"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6125,15 +3941,8 @@ export const se_SearchDataSetsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6143,21 +3952,12 @@ export const se_SearchDataSourcesCommand = async ( input: SearchDataSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/search/data-sources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/search/data-sources"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6166,15 +3966,8 @@ export const se_SearchDataSourcesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6184,20 +3977,12 @@ export const se_SearchFoldersCommand = async ( input: SearchFoldersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/search/folders"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/search/folders"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6206,15 +3991,8 @@ export const se_SearchFoldersCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6224,25 +4002,16 @@ export const se_SearchGroupsCommand = async ( input: SearchGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups-search"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups-search"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nt]: [, input[_NT]!], + [_mr]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; body = JSON.stringify( @@ -6250,16 +4019,8 @@ export const se_SearchGroupsCommand = async ( Filters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6269,21 +4030,12 @@ export const se_StartAssetBundleExportJobCommand = async ( input: StartAssetBundleExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/asset-bundle-export-jobs/export"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/asset-bundle-export-jobs/export"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6297,15 +4049,8 @@ export const se_StartAssetBundleExportJobCommand = async ( ValidationStrategy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6315,21 +4060,12 @@ export const se_StartAssetBundleImportJobCommand = async ( input: StartAssetBundleImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/asset-bundle-import-jobs/import"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/asset-bundle-import-jobs/import"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6342,15 +4078,8 @@ export const se_StartAssetBundleImportJobCommand = async ( OverrideValidationStrategy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6360,22 +4089,13 @@ export const se_StartDashboardSnapshotJobCommand = async ( input: StartDashboardSnapshotJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6384,15 +4104,8 @@ export const se_StartDashboardSnapshotJobCommand = async ( UserConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6402,28 +4115,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resources/{ResourceArn}/tags"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6433,28 +4138,16 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resources/{ResourceArn}/tags"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - keys: [ - __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), - ], + [_k]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => (input[_TK]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6464,22 +4157,14 @@ export const se_UpdateAccountCustomizationCommand = async ( input: UpdateAccountCustomizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/customizations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/customizations"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); const query: any = map({ - namespace: [, input.Namespace!], + [_n]: [, input[_N]!], }); let body: any; body = JSON.stringify( @@ -6487,16 +4172,8 @@ export const se_UpdateAccountCustomizationCommand = async ( AccountCustomization: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -6506,20 +4183,12 @@ export const se_UpdateAccountSettingsCommand = async ( input: UpdateAccountSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/settings"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6528,15 +4197,8 @@ export const se_UpdateAccountSettingsCommand = async ( TerminationProtectionEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6546,22 +4208,13 @@ export const se_UpdateAnalysisCommand = async ( input: UpdateAnalysisCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/analyses/{AnalysisId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/analyses/{AnalysisId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6573,15 +4226,8 @@ export const se_UpdateAnalysisCommand = async ( ValidationStrategy: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6591,22 +4237,13 @@ export const se_UpdateAnalysisPermissionsCommand = async ( input: UpdateAnalysisPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); + b.bp("/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AnalysisId", () => input.AnalysisId!, "{AnalysisId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6614,15 +4251,8 @@ export const se_UpdateAnalysisPermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6632,22 +4262,13 @@ export const se_UpdateDashboardCommand = async ( input: UpdateDashboardCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6661,15 +4282,8 @@ export const se_UpdateDashboardCommand = async ( VersionDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6679,37 +4293,21 @@ export const se_UpdateDashboardLinksCommand = async ( input: UpdateDashboardLinksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/linked-entities"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/linked-entities"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); let body: any; body = JSON.stringify( take(input, { LinkEntities: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6719,22 +4317,13 @@ export const se_UpdateDashboardPermissionsCommand = async ( input: UpdateDashboardPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6744,15 +4333,8 @@ export const se_UpdateDashboardPermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6762,38 +4344,15 @@ export const se_UpdateDashboardPublishedVersionCommand = async ( input: UpdateDashboardPublishedVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions/{VersionNumber}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DashboardId", () => input.DashboardId!, "{DashboardId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VersionNumber", - () => input.VersionNumber!.toString(), - "{VersionNumber}", - false - ); + b.bp("/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions/{VersionNumber}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DashboardId", () => input.DashboardId!, "{DashboardId}", false); + b.p("VersionNumber", () => input.VersionNumber!.toString(), "{VersionNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6803,22 +4362,13 @@ export const se_UpdateDataSetCommand = async ( input: UpdateDataSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6835,15 +4385,8 @@ export const se_UpdateDataSetCommand = async ( RowLevelPermissionTagConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6853,22 +4396,13 @@ export const se_UpdateDataSetPermissionsCommand = async ( input: UpdateDataSetPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6876,15 +4410,8 @@ export const se_UpdateDataSetPermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6894,29 +4421,13 @@ export const se_UpdateDataSourceCommand = async ( input: UpdateDataSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DataSourceId", - () => input.DataSourceId!, - "{DataSourceId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sources/{DataSourceId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSourceId", () => input.DataSourceId!, "{DataSourceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6927,15 +4438,8 @@ export const se_UpdateDataSourceCommand = async ( VpcConnectionProperties: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -6945,29 +4449,13 @@ export const se_UpdateDataSourcePermissionsCommand = async ( input: UpdateDataSourcePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DataSourceId", - () => input.DataSourceId!, - "{DataSourceId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("DataSourceId", () => input.DataSourceId!, "{DataSourceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -6975,15 +4463,8 @@ export const se_UpdateDataSourcePermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6993,37 +4474,21 @@ export const se_UpdateFolderCommand = async ( input: UpdateFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; body = JSON.stringify( take(input, { Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7033,22 +4498,13 @@ export const se_UpdateFolderPermissionsCommand = async ( input: UpdateFolderPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/folders/{FolderId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/accounts/{AwsAccountId}/folders/{FolderId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7056,15 +4512,8 @@ export const se_UpdateFolderPermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7074,38 +4523,22 @@ export const se_UpdateGroupCommand = async ( input: UpdateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "GroupName", () => input.GroupName!, "{GroupName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"); + b.p("GroupName", () => input.GroupName!, "{GroupName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7115,30 +4548,14 @@ export const se_UpdateIAMPolicyAssignmentCommand = async ( input: UpdateIAMPolicyAssignmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AssignmentName", - () => input.AssignmentName!, - "{AssignmentName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("AssignmentName", () => input.AssignmentName!, "{AssignmentName}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; body = JSON.stringify( take(input, { @@ -7147,15 +4564,8 @@ export const se_UpdateIAMPolicyAssignmentCommand = async ( PolicyArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7165,37 +4575,21 @@ export const se_UpdateIdentityPropagationConfigCommand = async ( input: UpdateIdentityPropagationConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/identity-propagation-config/{Service}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Service", () => input.Service!, "{Service}", false); + b.bp("/accounts/{AwsAccountId}/identity-propagation-config/{Service}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Service", () => input.Service!, "{Service}", false); let body: any; body = JSON.stringify( take(input, { AuthorizedTargets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7205,20 +4599,12 @@ export const se_UpdateIpRestrictionCommand = async ( input: UpdateIpRestrictionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/ip-restriction"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/ip-restriction"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7226,15 +4612,8 @@ export const se_UpdateIpRestrictionCommand = async ( IpRestrictionRuleMap: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -7244,36 +4623,20 @@ export const se_UpdatePublicSharingSettingsCommand = async ( input: UpdatePublicSharingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/public-sharing-settings"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/public-sharing-settings"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { PublicSharingEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7283,37 +4646,21 @@ export const se_UpdateRefreshScheduleCommand = async ( input: UpdateRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"; - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); + b.bp("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"); + b.p("DataSetId", () => input.DataSetId!, "{DataSetId}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); let body: any; body = JSON.stringify( take(input, { Schedule: (_) => se_RefreshSchedule(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7323,38 +4670,22 @@ export const se_UpdateRoleCustomPermissionCommand = async ( input: UpdateRoleCustomPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"; - resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role!, "{Role}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"); + b.p("Role", () => input.Role!, "{Role}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; body = JSON.stringify( take(input, { CustomPermissionsName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7364,22 +4695,13 @@ export const se_UpdateTemplateCommand = async ( input: UpdateTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7390,15 +4712,8 @@ export const se_UpdateTemplateCommand = async ( VersionDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7408,38 +4723,22 @@ export const se_UpdateTemplateAliasCommand = async ( input: UpdateTemplateAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; body = JSON.stringify( take(input, { TemplateVersionNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7449,22 +4748,13 @@ export const se_UpdateTemplatePermissionsCommand = async ( input: UpdateTemplatePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7472,15 +4762,8 @@ export const se_UpdateTemplatePermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7490,21 +4773,13 @@ export const se_UpdateThemeCommand = async ( input: UpdateThemeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/themes/{ThemeId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7514,15 +4789,8 @@ export const se_UpdateThemeCommand = async ( VersionDescription: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7532,38 +4800,22 @@ export const se_UpdateThemeAliasCommand = async ( input: UpdateThemeAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "AliasName", () => input.AliasName!, "{AliasName}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.p("AliasName", () => input.AliasName!, "{AliasName}", false); let body: any; body = JSON.stringify( take(input, { ThemeVersionNumber: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7573,22 +4825,13 @@ export const se_UpdateThemePermissionsCommand = async ( input: UpdateThemePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ThemeId", () => input.ThemeId!, "{ThemeId}", false); + b.bp("/accounts/{AwsAccountId}/themes/{ThemeId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("ThemeId", () => input.ThemeId!, "{ThemeId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7596,15 +4839,8 @@ export const se_UpdateThemePermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7614,36 +4850,21 @@ export const se_UpdateTopicCommand = async ( input: UpdateTopicCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics/{TopicId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; body = JSON.stringify( take(input, { Topic: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7653,22 +4874,13 @@ export const se_UpdateTopicPermissionsCommand = async ( input: UpdateTopicPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/permissions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/permissions"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7676,15 +4888,8 @@ export const se_UpdateTopicPermissionsCommand = async ( RevokePermissions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7694,38 +4899,22 @@ export const se_UpdateTopicRefreshScheduleCommand = async ( input: UpdateTopicRefreshScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "DatasetId", () => input.DatasetId!, "{DatasetId}", false); + b.bp("/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("TopicId", () => input.TopicId!, "{TopicId}", false); + b.p("DatasetId", () => input.DatasetId!, "{DatasetId}", false); let body: any; body = JSON.stringify( take(input, { RefreshSchedule: (_) => se_TopicRefreshSchedule(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7735,23 +4924,14 @@ export const se_UpdateUserCommand = async ( input: UpdateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"); + b.p("UserName", () => input.UserName!, "{UserName}", false); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("Namespace", () => input.Namespace!, "{Namespace}", false); let body: any; body = JSON.stringify( take(input, { @@ -7764,15 +4944,8 @@ export const se_UpdateUserCommand = async ( UnapplyCustomPermissions: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7782,29 +4955,13 @@ export const se_UpdateVPCConnectionCommand = async ( input: UpdateVPCConnectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AwsAccountId", - () => input.AwsAccountId!, - "{AwsAccountId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "VPCConnectionId", - () => input.VPCConnectionId!, - "{VPCConnectionId}", - false - ); + b.bp("/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"); + b.p("AwsAccountId", () => input.AwsAccountId!, "{AwsAccountId}", false); + b.p("VPCConnectionId", () => input.VPCConnectionId!, "{VPCConnectionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -7815,15 +4972,8 @@ export const se_UpdateVPCConnectionCommand = async ( SubnetIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -30391,6 +27541,46 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _ADI = "AdditionalDashboardIds"; +const _AN = "AliasName"; +const _AS = "AssignmentStatus"; +const _EP = "EntryPoint"; +const _FDWR = "ForceDeleteWithoutRecovery"; +const _IT = "IdentityType"; +const _MR = "MaxResults"; +const _N = "Namespace"; +const _NT = "NextToken"; +const _R = "Resolved"; +const _RD = "ResetDisabled"; +const _RWID = "RecoveryWindowInDays"; +const _SLIM = "SessionLifetimeInMinutes"; +const _SPE = "StatePersistenceEnabled"; +const _T = "Type"; +const _TK = "TagKeys"; +const _UA = "UserArn"; +const _URD = "UndoRedoDisabled"; +const _VN = "VersionNumber"; +const _adi = "additional-dashboard-ids"; +const _an = "alias-name"; +const _as = "assignment-status"; +const _ct = "creds-type"; +const _ep = "entry-point"; +const _fdwr = "force-delete-without-recovery"; +const _k = "keys"; +const _mr = "max-results"; +const _mr_ = "max-result"; +const _n = "namespace"; +const _nt = "next-token"; +const _r = "resolved"; +const _rd = "reset-disabled"; +const _rwid = "recovery-window-in-days"; +const _sl = "session-lifetime"; +const _spe = "state-persistence-enabled"; +const _t = "type"; +const _ua = "user-arn"; +const _urd = "undo-redo-disabled"; +const _vn = "version-number"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ram/package.json b/clients/client-ram/package.json index c14adbffb1b6..2f01e2b78c2d 100644 --- a/clients/client-ram/package.json +++ b/clients/client-ram/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-ram/src/protocols/Aws_restJson1.ts b/clients/client-ram/src/protocols/Aws_restJson1.ts index a50a16e07012..15f2126ae09a 100644 --- a/clients/client-ram/src/protocols/Aws_restJson1.ts +++ b/clients/client-ram/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -177,12 +178,11 @@ export const se_AcceptResourceShareInvitationCommand = async ( input: AcceptResourceShareInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/acceptresourceshareinvitation"; + b.bp("/acceptresourceshareinvitation"); let body: any; body = JSON.stringify( take(input, { @@ -190,15 +190,8 @@ export const se_AcceptResourceShareInvitationCommand = async ( resourceShareInvitationArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -208,12 +201,11 @@ export const se_AssociateResourceShareCommand = async ( input: AssociateResourceShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associateresourceshare"; + b.bp("/associateresourceshare"); let body: any; body = JSON.stringify( take(input, { @@ -224,15 +216,8 @@ export const se_AssociateResourceShareCommand = async ( sources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -242,12 +227,11 @@ export const se_AssociateResourceSharePermissionCommand = async ( input: AssociateResourceSharePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associateresourcesharepermission"; + b.bp("/associateresourcesharepermission"); let body: any; body = JSON.stringify( take(input, { @@ -258,15 +242,8 @@ export const se_AssociateResourceSharePermissionCommand = async ( resourceShareArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -276,11 +253,11 @@ export const se_CreatePermissionCommand = async ( input: CreatePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createpermission"; + b.bp("/createpermission"); let body: any; body = JSON.stringify( take(input, { @@ -291,15 +268,8 @@ export const se_CreatePermissionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -309,12 +279,11 @@ export const se_CreatePermissionVersionCommand = async ( input: CreatePermissionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createpermissionversion"; + b.bp("/createpermissionversion"); let body: any; body = JSON.stringify( take(input, { @@ -323,15 +292,8 @@ export const se_CreatePermissionVersionCommand = async ( policyTemplate: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -341,11 +303,11 @@ export const se_CreateResourceShareCommand = async ( input: CreateResourceShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createresourceshare"; + b.bp("/createresourceshare"); let body: any; body = JSON.stringify( take(input, { @@ -359,15 +321,8 @@ export const se_CreateResourceShareCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -377,24 +332,16 @@ export const se_DeletePermissionCommand = async ( input: DeletePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deletepermission"; + b.bp("/deletepermission"); const query: any = map({ - permissionArn: [, __expectNonNull(input.permissionArn!, `permissionArn`)], - clientToken: [, input.clientToken!], + [_pA]: [, __expectNonNull(input[_pA]!, `permissionArn`)], + [_cT]: [, input[_cT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -404,29 +351,17 @@ export const se_DeletePermissionVersionCommand = async ( input: DeletePermissionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deletepermissionversion"; + b.bp("/deletepermissionversion"); const query: any = map({ - permissionArn: [, __expectNonNull(input.permissionArn!, `permissionArn`)], - permissionVersion: [ - __expectNonNull(input.permissionVersion, `permissionVersion`) != null, - () => input.permissionVersion!.toString(), - ], - clientToken: [, input.clientToken!], + [_pA]: [, __expectNonNull(input[_pA]!, `permissionArn`)], + [_pV]: [__expectNonNull(input.permissionVersion, `permissionVersion`) != null, () => input[_pV]!.toString()], + [_cT]: [, input[_cT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -436,24 +371,16 @@ export const se_DeleteResourceShareCommand = async ( input: DeleteResourceShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteresourceshare"; + b.bp("/deleteresourceshare"); const query: any = map({ - resourceShareArn: [, __expectNonNull(input.resourceShareArn!, `resourceShareArn`)], - clientToken: [, input.clientToken!], + [_rSA]: [, __expectNonNull(input[_rSA]!, `resourceShareArn`)], + [_cT]: [, input[_cT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -463,12 +390,11 @@ export const se_DisassociateResourceShareCommand = async ( input: DisassociateResourceShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociateresourceshare"; + b.bp("/disassociateresourceshare"); let body: any; body = JSON.stringify( take(input, { @@ -479,15 +405,8 @@ export const se_DisassociateResourceShareCommand = async ( sources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -497,12 +416,11 @@ export const se_DisassociateResourceSharePermissionCommand = async ( input: DisassociateResourceSharePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociateresourcesharepermission"; + b.bp("/disassociateresourcesharepermission"); let body: any; body = JSON.stringify( take(input, { @@ -511,15 +429,8 @@ export const se_DisassociateResourceSharePermissionCommand = async ( resourceShareArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -529,23 +440,15 @@ export const se_EnableSharingWithAwsOrganizationCommand = async ( input: EnableSharingWithAwsOrganizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enablesharingwithawsorganization"; + b.bp("/enablesharingwithawsorganization"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -555,11 +458,11 @@ export const se_GetPermissionCommand = async ( input: GetPermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getpermission"; + b.bp("/getpermission"); let body: any; body = JSON.stringify( take(input, { @@ -567,15 +470,8 @@ export const se_GetPermissionCommand = async ( permissionVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -585,11 +481,11 @@ export const se_GetResourcePoliciesCommand = async ( input: GetResourcePoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getresourcepolicies"; + b.bp("/getresourcepolicies"); let body: any; body = JSON.stringify( take(input, { @@ -599,15 +495,8 @@ export const se_GetResourcePoliciesCommand = async ( resourceArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -617,12 +506,11 @@ export const se_GetResourceShareAssociationsCommand = async ( input: GetResourceShareAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getresourceshareassociations"; + b.bp("/getresourceshareassociations"); let body: any; body = JSON.stringify( take(input, { @@ -635,15 +523,8 @@ export const se_GetResourceShareAssociationsCommand = async ( resourceShareArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -653,12 +534,11 @@ export const se_GetResourceShareInvitationsCommand = async ( input: GetResourceShareInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getresourceshareinvitations"; + b.bp("/getresourceshareinvitations"); let body: any; body = JSON.stringify( take(input, { @@ -668,15 +548,8 @@ export const se_GetResourceShareInvitationsCommand = async ( resourceShareInvitationArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -686,11 +559,11 @@ export const se_GetResourceSharesCommand = async ( input: GetResourceSharesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getresourceshares"; + b.bp("/getresourceshares"); let body: any; body = JSON.stringify( take(input, { @@ -705,15 +578,8 @@ export const se_GetResourceSharesCommand = async ( tagFilters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -723,12 +589,11 @@ export const se_ListPendingInvitationResourcesCommand = async ( input: ListPendingInvitationResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listpendinginvitationresources"; + b.bp("/listpendinginvitationresources"); let body: any; body = JSON.stringify( take(input, { @@ -738,15 +603,8 @@ export const se_ListPendingInvitationResourcesCommand = async ( resourceShareInvitationArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -756,12 +614,11 @@ export const se_ListPermissionAssociationsCommand = async ( input: ListPermissionAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listpermissionassociations"; + b.bp("/listpermissionassociations"); let body: any; body = JSON.stringify( take(input, { @@ -775,15 +632,8 @@ export const se_ListPermissionAssociationsCommand = async ( resourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -793,11 +643,11 @@ export const se_ListPermissionsCommand = async ( input: ListPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listpermissions"; + b.bp("/listpermissions"); let body: any; body = JSON.stringify( take(input, { @@ -807,15 +657,8 @@ export const se_ListPermissionsCommand = async ( resourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -825,12 +668,11 @@ export const se_ListPermissionVersionsCommand = async ( input: ListPermissionVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listpermissionversions"; + b.bp("/listpermissionversions"); let body: any; body = JSON.stringify( take(input, { @@ -839,15 +681,8 @@ export const se_ListPermissionVersionsCommand = async ( permissionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -857,11 +692,11 @@ export const se_ListPrincipalsCommand = async ( input: ListPrincipalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listprincipals"; + b.bp("/listprincipals"); let body: any; body = JSON.stringify( take(input, { @@ -874,15 +709,8 @@ export const se_ListPrincipalsCommand = async ( resourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -892,12 +720,11 @@ export const se_ListReplacePermissionAssociationsWorkCommand = async ( input: ListReplacePermissionAssociationsWorkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listreplacepermissionassociationswork"; + b.bp("/listreplacepermissionassociationswork"); let body: any; body = JSON.stringify( take(input, { @@ -907,15 +734,8 @@ export const se_ListReplacePermissionAssociationsWorkCommand = async ( workIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -925,11 +745,11 @@ export const se_ListResourcesCommand = async ( input: ListResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listresources"; + b.bp("/listresources"); let body: any; body = JSON.stringify( take(input, { @@ -943,15 +763,8 @@ export const se_ListResourcesCommand = async ( resourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -961,12 +774,11 @@ export const se_ListResourceSharePermissionsCommand = async ( input: ListResourceSharePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listresourcesharepermissions"; + b.bp("/listresourcesharepermissions"); let body: any; body = JSON.stringify( take(input, { @@ -975,15 +787,8 @@ export const se_ListResourceSharePermissionsCommand = async ( resourceShareArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -993,11 +798,11 @@ export const se_ListResourceTypesCommand = async ( input: ListResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listresourcetypes"; + b.bp("/listresourcetypes"); let body: any; body = JSON.stringify( take(input, { @@ -1006,15 +811,8 @@ export const se_ListResourceTypesCommand = async ( resourceRegionScope: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1024,12 +822,11 @@ export const se_PromotePermissionCreatedFromPolicyCommand = async ( input: PromotePermissionCreatedFromPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/promotepermissioncreatedfrompolicy"; + b.bp("/promotepermissioncreatedfrompolicy"); let body: any; body = JSON.stringify( take(input, { @@ -1038,15 +835,8 @@ export const se_PromotePermissionCreatedFromPolicyCommand = async ( permissionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1056,24 +846,15 @@ export const se_PromoteResourceShareCreatedFromPolicyCommand = async ( input: PromoteResourceShareCreatedFromPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/promoteresourcesharecreatedfrompolicy"; + b.bp("/promoteresourcesharecreatedfrompolicy"); const query: any = map({ - resourceShareArn: [, __expectNonNull(input.resourceShareArn!, `resourceShareArn`)], + [_rSA]: [, __expectNonNull(input[_rSA]!, `resourceShareArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1083,12 +864,11 @@ export const se_RejectResourceShareInvitationCommand = async ( input: RejectResourceShareInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rejectresourceshareinvitation"; + b.bp("/rejectresourceshareinvitation"); let body: any; body = JSON.stringify( take(input, { @@ -1096,15 +876,8 @@ export const se_RejectResourceShareInvitationCommand = async ( resourceShareInvitationArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1114,12 +887,11 @@ export const se_ReplacePermissionAssociationsCommand = async ( input: ReplacePermissionAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/replacepermissionassociations"; + b.bp("/replacepermissionassociations"); let body: any; body = JSON.stringify( take(input, { @@ -1129,15 +901,8 @@ export const se_ReplacePermissionAssociationsCommand = async ( toPermissionArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1147,12 +912,11 @@ export const se_SetDefaultPermissionVersionCommand = async ( input: SetDefaultPermissionVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/setdefaultpermissionversion"; + b.bp("/setdefaultpermissionversion"); let body: any; body = JSON.stringify( take(input, { @@ -1161,15 +925,8 @@ export const se_SetDefaultPermissionVersionCommand = async ( permissionVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1179,11 +936,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tagresource"; + b.bp("/tagresource"); let body: any; body = JSON.stringify( take(input, { @@ -1192,15 +949,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1210,11 +960,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untagresource"; + b.bp("/untagresource"); let body: any; body = JSON.stringify( take(input, { @@ -1223,15 +973,8 @@ export const se_UntagResourceCommand = async ( tagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1241,11 +984,11 @@ export const se_UpdateResourceShareCommand = async ( input: UpdateResourceShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateresourceshare"; + b.bp("/updateresourceshare"); let body: any; body = JSON.stringify( take(input, { @@ -1255,15 +998,8 @@ export const se_UpdateResourceShareCommand = async ( resourceShareArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4424,6 +4160,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cT = "clientToken"; +const _pA = "permissionArn"; +const _pV = "permissionVersion"; +const _rSA = "resourceShareArn"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-rbin/package.json b/clients/client-rbin/package.json index 7755b88fae1d..394fb27e2863 100644 --- a/clients/client-rbin/package.json +++ b/clients/client-rbin/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-rbin/src/protocols/Aws_restJson1.ts b/clients/client-rbin/src/protocols/Aws_restJson1.ts index 34b5b84f3f33..982d6e669f42 100644 --- a/clients/client-rbin/src/protocols/Aws_restJson1.ts +++ b/clients/client-rbin/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -55,11 +56,11 @@ export const se_CreateRuleCommand = async ( input: CreateRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules"; + b.bp("/rules"); let body: any; body = JSON.stringify( take(input, { @@ -71,15 +72,8 @@ export const se_CreateRuleCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -89,20 +83,13 @@ export const se_DeleteRuleCommand = async ( input: DeleteRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/rules/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -112,20 +99,13 @@ export const se_GetRuleCommand = async ( input: GetRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/rules/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -135,11 +115,11 @@ export const se_ListRulesCommand = async ( input: ListRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-rules"; + b.bp("/list-rules"); let body: any; body = JSON.stringify( take(input, { @@ -150,15 +130,8 @@ export const se_ListRulesCommand = async ( ResourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -168,20 +141,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -191,27 +157,20 @@ export const se_LockRuleCommand = async ( input: LockRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/lock"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/rules/{Identifier}/lock"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; body = JSON.stringify( take(input, { LockConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -221,27 +180,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -251,21 +203,13 @@ export const se_UnlockRuleCommand = async ( input: UnlockRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/unlock"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/rules/{Identifier}/unlock"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -275,27 +219,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -305,12 +241,12 @@ export const se_UpdateRuleCommand = async ( input: UpdateRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/rules/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -320,15 +256,8 @@ export const se_UpdateRuleCommand = async ( RetentionPeriod: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1058,6 +987,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-rds-data/package.json b/clients/client-rds-data/package.json index 176862240f97..d2ec5631981e 100644 --- a/clients/client-rds-data/package.json +++ b/clients/client-rds-data/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-rds-data/src/protocols/Aws_restJson1.ts b/clients/client-rds-data/src/protocols/Aws_restJson1.ts index 628a1a19c099..639eefebfd1f 100644 --- a/clients/client-rds-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-rds-data/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -64,11 +65,11 @@ export const se_BatchExecuteStatementCommand = async ( input: BatchExecuteStatementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchExecute"; + b.bp("/BatchExecute"); let body: any; body = JSON.stringify( take(input, { @@ -81,15 +82,8 @@ export const se_BatchExecuteStatementCommand = async ( transactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -99,11 +93,11 @@ export const se_BeginTransactionCommand = async ( input: BeginTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BeginTransaction"; + b.bp("/BeginTransaction"); let body: any; body = JSON.stringify( take(input, { @@ -113,15 +107,8 @@ export const se_BeginTransactionCommand = async ( secretArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -131,11 +118,11 @@ export const se_CommitTransactionCommand = async ( input: CommitTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CommitTransaction"; + b.bp("/CommitTransaction"); let body: any; body = JSON.stringify( take(input, { @@ -144,15 +131,8 @@ export const se_CommitTransactionCommand = async ( transactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -162,11 +142,11 @@ export const se_ExecuteSqlCommand = async ( input: ExecuteSqlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ExecuteSql"; + b.bp("/ExecuteSql"); let body: any; body = JSON.stringify( take(input, { @@ -177,15 +157,8 @@ export const se_ExecuteSqlCommand = async ( sqlStatements: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -195,11 +168,11 @@ export const se_ExecuteStatementCommand = async ( input: ExecuteStatementCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Execute"; + b.bp("/Execute"); let body: any; body = JSON.stringify( take(input, { @@ -216,15 +189,8 @@ export const se_ExecuteStatementCommand = async ( transactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -234,11 +200,11 @@ export const se_RollbackTransactionCommand = async ( input: RollbackTransactionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RollbackTransaction"; + b.bp("/RollbackTransaction"); let body: any; body = JSON.stringify( take(input, { @@ -247,15 +213,8 @@ export const se_RollbackTransactionCommand = async ( transactionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-rds/src/models/models_1.ts b/clients/client-rds/src/models/models_1.ts index 9d7dd5da0b1f..c0709c6da63d 100644 --- a/clients/client-rds/src/models/models_1.ts +++ b/clients/client-rds/src/models/models_1.ts @@ -43,6 +43,7 @@ import { TenantDatabaseFilterSensitiveLog, UserAuthConfig, } from "./models_0"; + import { RDSServiceException as __BaseException } from "./RDSServiceException"; /** diff --git a/clients/client-rds/src/protocols/Aws_query.ts b/clients/client-rds/src/protocols/Aws_query.ts index 312b6a322d1c..cf3142109329 100644 --- a/clients/client-rds/src/protocols/Aws_query.ts +++ b/clients/client-rds/src/protocols/Aws_query.ts @@ -1056,8 +1056,8 @@ export const se_AddRoleToDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddRoleToDBClusterMessage(input, context), - Action: "AddRoleToDBCluster", - Version: "2014-10-31", + [_A]: _ARTDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1073,8 +1073,8 @@ export const se_AddRoleToDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddRoleToDBInstanceMessage(input, context), - Action: "AddRoleToDBInstance", - Version: "2014-10-31", + [_A]: _ARTDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1090,8 +1090,8 @@ export const se_AddSourceIdentifierToSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddSourceIdentifierToSubscriptionMessage(input, context), - Action: "AddSourceIdentifierToSubscription", - Version: "2014-10-31", + [_A]: _ASITS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1107,8 +1107,8 @@ export const se_AddTagsToResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddTagsToResourceMessage(input, context), - Action: "AddTagsToResource", - Version: "2014-10-31", + [_A]: _ATTR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1124,8 +1124,8 @@ export const se_ApplyPendingMaintenanceActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ApplyPendingMaintenanceActionMessage(input, context), - Action: "ApplyPendingMaintenanceAction", - Version: "2014-10-31", + [_A]: _APMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1141,8 +1141,8 @@ export const se_AuthorizeDBSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeDBSecurityGroupIngressMessage(input, context), - Action: "AuthorizeDBSecurityGroupIngress", - Version: "2014-10-31", + [_A]: _ADBSGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1158,8 +1158,8 @@ export const se_BacktrackDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BacktrackDBClusterMessage(input, context), - Action: "BacktrackDBCluster", - Version: "2014-10-31", + [_A]: _BDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1175,8 +1175,8 @@ export const se_CancelExportTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelExportTaskMessage(input, context), - Action: "CancelExportTask", - Version: "2014-10-31", + [_A]: _CET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1192,8 +1192,8 @@ export const se_CopyDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBClusterParameterGroupMessage(input, context), - Action: "CopyDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _CDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1209,8 +1209,8 @@ export const se_CopyDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBClusterSnapshotMessage(input, context), - Action: "CopyDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _CDBCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1226,8 +1226,8 @@ export const se_CopyDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBParameterGroupMessage(input, context), - Action: "CopyDBParameterGroup", - Version: "2014-10-31", + [_A]: _CDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1243,8 +1243,8 @@ export const se_CopyDBSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyDBSnapshotMessage(input, context), - Action: "CopyDBSnapshot", - Version: "2014-10-31", + [_A]: _CDBS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1260,8 +1260,8 @@ export const se_CopyOptionGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyOptionGroupMessage(input, context), - Action: "CopyOptionGroup", - Version: "2014-10-31", + [_A]: _COG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1277,8 +1277,8 @@ export const se_CreateBlueGreenDeploymentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateBlueGreenDeploymentRequest(input, context), - Action: "CreateBlueGreenDeployment", - Version: "2014-10-31", + [_A]: _CBGD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1294,8 +1294,8 @@ export const se_CreateCustomDBEngineVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCustomDBEngineVersionMessage(input, context), - Action: "CreateCustomDBEngineVersion", - Version: "2014-10-31", + [_A]: _CCDBEV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1311,8 +1311,8 @@ export const se_CreateDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterMessage(input, context), - Action: "CreateDBCluster", - Version: "2014-10-31", + [_A]: _CDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1328,8 +1328,8 @@ export const se_CreateDBClusterEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterEndpointMessage(input, context), - Action: "CreateDBClusterEndpoint", - Version: "2014-10-31", + [_A]: _CDBCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1345,8 +1345,8 @@ export const se_CreateDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterParameterGroupMessage(input, context), - Action: "CreateDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _CDBCPGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1362,8 +1362,8 @@ export const se_CreateDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBClusterSnapshotMessage(input, context), - Action: "CreateDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _CDBCSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1379,8 +1379,8 @@ export const se_CreateDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBInstanceMessage(input, context), - Action: "CreateDBInstance", - Version: "2014-10-31", + [_A]: _CDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1396,8 +1396,8 @@ export const se_CreateDBInstanceReadReplicaCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBInstanceReadReplicaMessage(input, context), - Action: "CreateDBInstanceReadReplica", - Version: "2014-10-31", + [_A]: _CDBIRR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1413,8 +1413,8 @@ export const se_CreateDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBParameterGroupMessage(input, context), - Action: "CreateDBParameterGroup", - Version: "2014-10-31", + [_A]: _CDBPGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1430,8 +1430,8 @@ export const se_CreateDBProxyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBProxyRequest(input, context), - Action: "CreateDBProxy", - Version: "2014-10-31", + [_A]: _CDBP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1447,8 +1447,8 @@ export const se_CreateDBProxyEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBProxyEndpointRequest(input, context), - Action: "CreateDBProxyEndpoint", - Version: "2014-10-31", + [_A]: _CDBPE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1464,8 +1464,8 @@ export const se_CreateDBSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBSecurityGroupMessage(input, context), - Action: "CreateDBSecurityGroup", - Version: "2014-10-31", + [_A]: _CDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1481,8 +1481,8 @@ export const se_CreateDBSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBSnapshotMessage(input, context), - Action: "CreateDBSnapshot", - Version: "2014-10-31", + [_A]: _CDBSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1498,8 +1498,8 @@ export const se_CreateDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateDBSubnetGroupMessage(input, context), - Action: "CreateDBSubnetGroup", - Version: "2014-10-31", + [_A]: _CDBSGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1515,8 +1515,8 @@ export const se_CreateEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateEventSubscriptionMessage(input, context), - Action: "CreateEventSubscription", - Version: "2014-10-31", + [_A]: _CES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1532,8 +1532,8 @@ export const se_CreateGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateGlobalClusterMessage(input, context), - Action: "CreateGlobalCluster", - Version: "2014-10-31", + [_A]: _CGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1549,8 +1549,8 @@ export const se_CreateIntegrationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateIntegrationMessage(input, context), - Action: "CreateIntegration", - Version: "2014-10-31", + [_A]: _CI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1566,8 +1566,8 @@ export const se_CreateOptionGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateOptionGroupMessage(input, context), - Action: "CreateOptionGroup", - Version: "2014-10-31", + [_A]: _COGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1583,8 +1583,8 @@ export const se_CreateTenantDatabaseCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTenantDatabaseMessage(input, context), - Action: "CreateTenantDatabase", - Version: "2014-10-31", + [_A]: _CTD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1600,8 +1600,8 @@ export const se_DeleteBlueGreenDeploymentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteBlueGreenDeploymentRequest(input, context), - Action: "DeleteBlueGreenDeployment", - Version: "2014-10-31", + [_A]: _DBGD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1617,8 +1617,8 @@ export const se_DeleteCustomDBEngineVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCustomDBEngineVersionMessage(input, context), - Action: "DeleteCustomDBEngineVersion", - Version: "2014-10-31", + [_A]: _DCDBEV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1634,8 +1634,8 @@ export const se_DeleteDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterMessage(input, context), - Action: "DeleteDBCluster", - Version: "2014-10-31", + [_A]: _DDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1651,8 +1651,8 @@ export const se_DeleteDBClusterAutomatedBackupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterAutomatedBackupMessage(input, context), - Action: "DeleteDBClusterAutomatedBackup", - Version: "2014-10-31", + [_A]: _DDBCAB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1668,8 +1668,8 @@ export const se_DeleteDBClusterEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterEndpointMessage(input, context), - Action: "DeleteDBClusterEndpoint", - Version: "2014-10-31", + [_A]: _DDBCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1685,8 +1685,8 @@ export const se_DeleteDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterParameterGroupMessage(input, context), - Action: "DeleteDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _DDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1702,8 +1702,8 @@ export const se_DeleteDBClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBClusterSnapshotMessage(input, context), - Action: "DeleteDBClusterSnapshot", - Version: "2014-10-31", + [_A]: _DDBCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1719,8 +1719,8 @@ export const se_DeleteDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBInstanceMessage(input, context), - Action: "DeleteDBInstance", - Version: "2014-10-31", + [_A]: _DDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1736,8 +1736,8 @@ export const se_DeleteDBInstanceAutomatedBackupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBInstanceAutomatedBackupMessage(input, context), - Action: "DeleteDBInstanceAutomatedBackup", - Version: "2014-10-31", + [_A]: _DDBIAB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1753,8 +1753,8 @@ export const se_DeleteDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBParameterGroupMessage(input, context), - Action: "DeleteDBParameterGroup", - Version: "2014-10-31", + [_A]: _DDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1770,8 +1770,8 @@ export const se_DeleteDBProxyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBProxyRequest(input, context), - Action: "DeleteDBProxy", - Version: "2014-10-31", + [_A]: _DDBP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1787,8 +1787,8 @@ export const se_DeleteDBProxyEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBProxyEndpointRequest(input, context), - Action: "DeleteDBProxyEndpoint", - Version: "2014-10-31", + [_A]: _DDBPE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1804,8 +1804,8 @@ export const se_DeleteDBSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBSecurityGroupMessage(input, context), - Action: "DeleteDBSecurityGroup", - Version: "2014-10-31", + [_A]: _DDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1821,8 +1821,8 @@ export const se_DeleteDBSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBSnapshotMessage(input, context), - Action: "DeleteDBSnapshot", - Version: "2014-10-31", + [_A]: _DDBS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1838,8 +1838,8 @@ export const se_DeleteDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteDBSubnetGroupMessage(input, context), - Action: "DeleteDBSubnetGroup", - Version: "2014-10-31", + [_A]: _DDBSGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1855,8 +1855,8 @@ export const se_DeleteEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEventSubscriptionMessage(input, context), - Action: "DeleteEventSubscription", - Version: "2014-10-31", + [_A]: _DES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1872,8 +1872,8 @@ export const se_DeleteGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteGlobalClusterMessage(input, context), - Action: "DeleteGlobalCluster", - Version: "2014-10-31", + [_A]: _DGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1889,8 +1889,8 @@ export const se_DeleteIntegrationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIntegrationMessage(input, context), - Action: "DeleteIntegration", - Version: "2014-10-31", + [_A]: _DI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1906,8 +1906,8 @@ export const se_DeleteOptionGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteOptionGroupMessage(input, context), - Action: "DeleteOptionGroup", - Version: "2014-10-31", + [_A]: _DOG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1923,8 +1923,8 @@ export const se_DeleteTenantDatabaseCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTenantDatabaseMessage(input, context), - Action: "DeleteTenantDatabase", - Version: "2014-10-31", + [_A]: _DTD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1940,8 +1940,8 @@ export const se_DeregisterDBProxyTargetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeregisterDBProxyTargetsRequest(input, context), - Action: "DeregisterDBProxyTargets", - Version: "2014-10-31", + [_A]: _DDBPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1957,8 +1957,8 @@ export const se_DescribeAccountAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAccountAttributesMessage(input, context), - Action: "DescribeAccountAttributes", - Version: "2014-10-31", + [_A]: _DAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1974,8 +1974,8 @@ export const se_DescribeBlueGreenDeploymentsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeBlueGreenDeploymentsRequest(input, context), - Action: "DescribeBlueGreenDeployments", - Version: "2014-10-31", + [_A]: _DBGDe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1991,8 +1991,8 @@ export const se_DescribeCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCertificatesMessage(input, context), - Action: "DescribeCertificates", - Version: "2014-10-31", + [_A]: _DC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2008,8 +2008,8 @@ export const se_DescribeDBClusterAutomatedBackupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterAutomatedBackupsMessage(input, context), - Action: "DescribeDBClusterAutomatedBackups", - Version: "2014-10-31", + [_A]: _DDBCABe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2025,8 +2025,8 @@ export const se_DescribeDBClusterBacktracksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterBacktracksMessage(input, context), - Action: "DescribeDBClusterBacktracks", - Version: "2014-10-31", + [_A]: _DDBCB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2042,8 +2042,8 @@ export const se_DescribeDBClusterEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterEndpointsMessage(input, context), - Action: "DescribeDBClusterEndpoints", - Version: "2014-10-31", + [_A]: _DDBCEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2059,8 +2059,8 @@ export const se_DescribeDBClusterParameterGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterParameterGroupsMessage(input, context), - Action: "DescribeDBClusterParameterGroups", - Version: "2014-10-31", + [_A]: _DDBCPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2076,8 +2076,8 @@ export const se_DescribeDBClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterParametersMessage(input, context), - Action: "DescribeDBClusterParameters", - Version: "2014-10-31", + [_A]: _DDBCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2093,8 +2093,8 @@ export const se_DescribeDBClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClustersMessage(input, context), - Action: "DescribeDBClusters", - Version: "2014-10-31", + [_A]: _DDBCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2110,8 +2110,8 @@ export const se_DescribeDBClusterSnapshotAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterSnapshotAttributesMessage(input, context), - Action: "DescribeDBClusterSnapshotAttributes", - Version: "2014-10-31", + [_A]: _DDBCSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2127,8 +2127,8 @@ export const se_DescribeDBClusterSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBClusterSnapshotsMessage(input, context), - Action: "DescribeDBClusterSnapshots", - Version: "2014-10-31", + [_A]: _DDBCSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2144,8 +2144,8 @@ export const se_DescribeDBEngineVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBEngineVersionsMessage(input, context), - Action: "DescribeDBEngineVersions", - Version: "2014-10-31", + [_A]: _DDBEV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2161,8 +2161,8 @@ export const se_DescribeDBInstanceAutomatedBackupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBInstanceAutomatedBackupsMessage(input, context), - Action: "DescribeDBInstanceAutomatedBackups", - Version: "2014-10-31", + [_A]: _DDBIABe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2178,8 +2178,8 @@ export const se_DescribeDBInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBInstancesMessage(input, context), - Action: "DescribeDBInstances", - Version: "2014-10-31", + [_A]: _DDBIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2195,8 +2195,8 @@ export const se_DescribeDBLogFilesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBLogFilesMessage(input, context), - Action: "DescribeDBLogFiles", - Version: "2014-10-31", + [_A]: _DDBLF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2212,8 +2212,8 @@ export const se_DescribeDBParameterGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBParameterGroupsMessage(input, context), - Action: "DescribeDBParameterGroups", - Version: "2014-10-31", + [_A]: _DDBPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2229,8 +2229,8 @@ export const se_DescribeDBParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBParametersMessage(input, context), - Action: "DescribeDBParameters", - Version: "2014-10-31", + [_A]: _DDBPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2246,8 +2246,8 @@ export const se_DescribeDBProxiesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBProxiesRequest(input, context), - Action: "DescribeDBProxies", - Version: "2014-10-31", + [_A]: _DDBPes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2263,8 +2263,8 @@ export const se_DescribeDBProxyEndpointsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBProxyEndpointsRequest(input, context), - Action: "DescribeDBProxyEndpoints", - Version: "2014-10-31", + [_A]: _DDBPEe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2280,8 +2280,8 @@ export const se_DescribeDBProxyTargetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBProxyTargetGroupsRequest(input, context), - Action: "DescribeDBProxyTargetGroups", - Version: "2014-10-31", + [_A]: _DDBPTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2297,8 +2297,8 @@ export const se_DescribeDBProxyTargetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBProxyTargetsRequest(input, context), - Action: "DescribeDBProxyTargets", - Version: "2014-10-31", + [_A]: _DDBPTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2314,8 +2314,8 @@ export const se_DescribeDBSecurityGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBSecurityGroupsMessage(input, context), - Action: "DescribeDBSecurityGroups", - Version: "2014-10-31", + [_A]: _DDBSGes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2331,8 +2331,8 @@ export const se_DescribeDBSnapshotAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBSnapshotAttributesMessage(input, context), - Action: "DescribeDBSnapshotAttributes", - Version: "2014-10-31", + [_A]: _DDBSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2348,8 +2348,8 @@ export const se_DescribeDBSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBSnapshotsMessage(input, context), - Action: "DescribeDBSnapshots", - Version: "2014-10-31", + [_A]: _DDBSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2365,8 +2365,8 @@ export const se_DescribeDBSnapshotTenantDatabasesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBSnapshotTenantDatabasesMessage(input, context), - Action: "DescribeDBSnapshotTenantDatabases", - Version: "2014-10-31", + [_A]: _DDBSTD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2382,8 +2382,8 @@ export const se_DescribeDBSubnetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDBSubnetGroupsMessage(input, context), - Action: "DescribeDBSubnetGroups", - Version: "2014-10-31", + [_A]: _DDBSGesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2399,8 +2399,8 @@ export const se_DescribeEngineDefaultClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEngineDefaultClusterParametersMessage(input, context), - Action: "DescribeEngineDefaultClusterParameters", - Version: "2014-10-31", + [_A]: _DEDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2416,8 +2416,8 @@ export const se_DescribeEngineDefaultParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEngineDefaultParametersMessage(input, context), - Action: "DescribeEngineDefaultParameters", - Version: "2014-10-31", + [_A]: _DEDP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2433,8 +2433,8 @@ export const se_DescribeEventCategoriesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventCategoriesMessage(input, context), - Action: "DescribeEventCategories", - Version: "2014-10-31", + [_A]: _DEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2450,8 +2450,8 @@ export const se_DescribeEventsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventsMessage(input, context), - Action: "DescribeEvents", - Version: "2014-10-31", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2467,8 +2467,8 @@ export const se_DescribeEventSubscriptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventSubscriptionsMessage(input, context), - Action: "DescribeEventSubscriptions", - Version: "2014-10-31", + [_A]: _DESe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2484,8 +2484,8 @@ export const se_DescribeExportTasksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeExportTasksMessage(input, context), - Action: "DescribeExportTasks", - Version: "2014-10-31", + [_A]: _DET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2501,8 +2501,8 @@ export const se_DescribeGlobalClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeGlobalClustersMessage(input, context), - Action: "DescribeGlobalClusters", - Version: "2014-10-31", + [_A]: _DGCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2518,8 +2518,8 @@ export const se_DescribeIntegrationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeIntegrationsMessage(input, context), - Action: "DescribeIntegrations", - Version: "2014-10-31", + [_A]: _DIe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2535,8 +2535,8 @@ export const se_DescribeOptionGroupOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeOptionGroupOptionsMessage(input, context), - Action: "DescribeOptionGroupOptions", - Version: "2014-10-31", + [_A]: _DOGO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2552,8 +2552,8 @@ export const se_DescribeOptionGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeOptionGroupsMessage(input, context), - Action: "DescribeOptionGroups", - Version: "2014-10-31", + [_A]: _DOGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2569,8 +2569,8 @@ export const se_DescribeOrderableDBInstanceOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeOrderableDBInstanceOptionsMessage(input, context), - Action: "DescribeOrderableDBInstanceOptions", - Version: "2014-10-31", + [_A]: _DODBIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2586,8 +2586,8 @@ export const se_DescribePendingMaintenanceActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePendingMaintenanceActionsMessage(input, context), - Action: "DescribePendingMaintenanceActions", - Version: "2014-10-31", + [_A]: _DPMA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2603,8 +2603,8 @@ export const se_DescribeReservedDBInstancesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedDBInstancesMessage(input, context), - Action: "DescribeReservedDBInstances", - Version: "2014-10-31", + [_A]: _DRDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2620,8 +2620,8 @@ export const se_DescribeReservedDBInstancesOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedDBInstancesOfferingsMessage(input, context), - Action: "DescribeReservedDBInstancesOfferings", - Version: "2014-10-31", + [_A]: _DRDBIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2637,8 +2637,8 @@ export const se_DescribeSourceRegionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSourceRegionsMessage(input, context), - Action: "DescribeSourceRegions", - Version: "2014-10-31", + [_A]: _DSR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2654,8 +2654,8 @@ export const se_DescribeTenantDatabasesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTenantDatabasesMessage(input, context), - Action: "DescribeTenantDatabases", - Version: "2014-10-31", + [_A]: _DTDe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2671,8 +2671,8 @@ export const se_DescribeValidDBInstanceModificationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeValidDBInstanceModificationsMessage(input, context), - Action: "DescribeValidDBInstanceModifications", - Version: "2014-10-31", + [_A]: _DVDBIM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2688,8 +2688,8 @@ export const se_DownloadDBLogFilePortionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DownloadDBLogFilePortionMessage(input, context), - Action: "DownloadDBLogFilePortion", - Version: "2014-10-31", + [_A]: _DDBLFP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2705,8 +2705,8 @@ export const se_FailoverDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_FailoverDBClusterMessage(input, context), - Action: "FailoverDBCluster", - Version: "2014-10-31", + [_A]: _FDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2722,8 +2722,8 @@ export const se_FailoverGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_FailoverGlobalClusterMessage(input, context), - Action: "FailoverGlobalCluster", - Version: "2014-10-31", + [_A]: _FGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2739,8 +2739,8 @@ export const se_ListTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTagsForResourceMessage(input, context), - Action: "ListTagsForResource", - Version: "2014-10-31", + [_A]: _LTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2756,8 +2756,8 @@ export const se_ModifyActivityStreamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyActivityStreamRequest(input, context), - Action: "ModifyActivityStream", - Version: "2014-10-31", + [_A]: _MAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2773,8 +2773,8 @@ export const se_ModifyCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCertificatesMessage(input, context), - Action: "ModifyCertificates", - Version: "2014-10-31", + [_A]: _MC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2790,8 +2790,8 @@ export const se_ModifyCurrentDBClusterCapacityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCurrentDBClusterCapacityMessage(input, context), - Action: "ModifyCurrentDBClusterCapacity", - Version: "2014-10-31", + [_A]: _MCDBCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2807,8 +2807,8 @@ export const se_ModifyCustomDBEngineVersionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCustomDBEngineVersionMessage(input, context), - Action: "ModifyCustomDBEngineVersion", - Version: "2014-10-31", + [_A]: _MCDBEV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2824,8 +2824,8 @@ export const se_ModifyDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterMessage(input, context), - Action: "ModifyDBCluster", - Version: "2014-10-31", + [_A]: _MDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2841,8 +2841,8 @@ export const se_ModifyDBClusterEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterEndpointMessage(input, context), - Action: "ModifyDBClusterEndpoint", - Version: "2014-10-31", + [_A]: _MDBCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2858,8 +2858,8 @@ export const se_ModifyDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterParameterGroupMessage(input, context), - Action: "ModifyDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _MDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2875,8 +2875,8 @@ export const se_ModifyDBClusterSnapshotAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBClusterSnapshotAttributeMessage(input, context), - Action: "ModifyDBClusterSnapshotAttribute", - Version: "2014-10-31", + [_A]: _MDBCSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2892,8 +2892,8 @@ export const se_ModifyDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBInstanceMessage(input, context), - Action: "ModifyDBInstance", - Version: "2014-10-31", + [_A]: _MDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2909,8 +2909,8 @@ export const se_ModifyDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBParameterGroupMessage(input, context), - Action: "ModifyDBParameterGroup", - Version: "2014-10-31", + [_A]: _MDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2926,8 +2926,8 @@ export const se_ModifyDBProxyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBProxyRequest(input, context), - Action: "ModifyDBProxy", - Version: "2014-10-31", + [_A]: _MDBP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2943,8 +2943,8 @@ export const se_ModifyDBProxyEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBProxyEndpointRequest(input, context), - Action: "ModifyDBProxyEndpoint", - Version: "2014-10-31", + [_A]: _MDBPE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2960,8 +2960,8 @@ export const se_ModifyDBProxyTargetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBProxyTargetGroupRequest(input, context), - Action: "ModifyDBProxyTargetGroup", - Version: "2014-10-31", + [_A]: _MDBPTG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2977,8 +2977,8 @@ export const se_ModifyDBSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBSnapshotMessage(input, context), - Action: "ModifyDBSnapshot", - Version: "2014-10-31", + [_A]: _MDBS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2994,8 +2994,8 @@ export const se_ModifyDBSnapshotAttributeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBSnapshotAttributeMessage(input, context), - Action: "ModifyDBSnapshotAttribute", - Version: "2014-10-31", + [_A]: _MDBSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3011,8 +3011,8 @@ export const se_ModifyDBSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyDBSubnetGroupMessage(input, context), - Action: "ModifyDBSubnetGroup", - Version: "2014-10-31", + [_A]: _MDBSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3028,8 +3028,8 @@ export const se_ModifyEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyEventSubscriptionMessage(input, context), - Action: "ModifyEventSubscription", - Version: "2014-10-31", + [_A]: _MES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3045,8 +3045,8 @@ export const se_ModifyGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyGlobalClusterMessage(input, context), - Action: "ModifyGlobalCluster", - Version: "2014-10-31", + [_A]: _MGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3062,8 +3062,8 @@ export const se_ModifyOptionGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyOptionGroupMessage(input, context), - Action: "ModifyOptionGroup", - Version: "2014-10-31", + [_A]: _MOG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3079,8 +3079,8 @@ export const se_ModifyTenantDatabaseCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyTenantDatabaseMessage(input, context), - Action: "ModifyTenantDatabase", - Version: "2014-10-31", + [_A]: _MTD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3096,8 +3096,8 @@ export const se_PromoteReadReplicaCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PromoteReadReplicaMessage(input, context), - Action: "PromoteReadReplica", - Version: "2014-10-31", + [_A]: _PRR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3113,8 +3113,8 @@ export const se_PromoteReadReplicaDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PromoteReadReplicaDBClusterMessage(input, context), - Action: "PromoteReadReplicaDBCluster", - Version: "2014-10-31", + [_A]: _PRRDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3130,8 +3130,8 @@ export const se_PurchaseReservedDBInstancesOfferingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PurchaseReservedDBInstancesOfferingMessage(input, context), - Action: "PurchaseReservedDBInstancesOffering", - Version: "2014-10-31", + [_A]: _PRDBIO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3147,8 +3147,8 @@ export const se_RebootDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebootDBClusterMessage(input, context), - Action: "RebootDBCluster", - Version: "2014-10-31", + [_A]: _RDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3164,8 +3164,8 @@ export const se_RebootDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebootDBInstanceMessage(input, context), - Action: "RebootDBInstance", - Version: "2014-10-31", + [_A]: _RDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3181,8 +3181,8 @@ export const se_RegisterDBProxyTargetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RegisterDBProxyTargetsRequest(input, context), - Action: "RegisterDBProxyTargets", - Version: "2014-10-31", + [_A]: _RDBPT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3198,8 +3198,8 @@ export const se_RemoveFromGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveFromGlobalClusterMessage(input, context), - Action: "RemoveFromGlobalCluster", - Version: "2014-10-31", + [_A]: _RFGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3215,8 +3215,8 @@ export const se_RemoveRoleFromDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveRoleFromDBClusterMessage(input, context), - Action: "RemoveRoleFromDBCluster", - Version: "2014-10-31", + [_A]: _RRFDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3232,8 +3232,8 @@ export const se_RemoveRoleFromDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveRoleFromDBInstanceMessage(input, context), - Action: "RemoveRoleFromDBInstance", - Version: "2014-10-31", + [_A]: _RRFDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3249,8 +3249,8 @@ export const se_RemoveSourceIdentifierFromSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveSourceIdentifierFromSubscriptionMessage(input, context), - Action: "RemoveSourceIdentifierFromSubscription", - Version: "2014-10-31", + [_A]: _RSIFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3266,8 +3266,8 @@ export const se_RemoveTagsFromResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemoveTagsFromResourceMessage(input, context), - Action: "RemoveTagsFromResource", - Version: "2014-10-31", + [_A]: _RTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3283,8 +3283,8 @@ export const se_ResetDBClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetDBClusterParameterGroupMessage(input, context), - Action: "ResetDBClusterParameterGroup", - Version: "2014-10-31", + [_A]: _RDBCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3300,8 +3300,8 @@ export const se_ResetDBParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetDBParameterGroupMessage(input, context), - Action: "ResetDBParameterGroup", - Version: "2014-10-31", + [_A]: _RDBPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3317,8 +3317,8 @@ export const se_RestoreDBClusterFromS3Command = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBClusterFromS3Message(input, context), - Action: "RestoreDBClusterFromS3", - Version: "2014-10-31", + [_A]: _RDBCFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3334,8 +3334,8 @@ export const se_RestoreDBClusterFromSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBClusterFromSnapshotMessage(input, context), - Action: "RestoreDBClusterFromSnapshot", - Version: "2014-10-31", + [_A]: _RDBCFSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3351,8 +3351,8 @@ export const se_RestoreDBClusterToPointInTimeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBClusterToPointInTimeMessage(input, context), - Action: "RestoreDBClusterToPointInTime", - Version: "2014-10-31", + [_A]: _RDBCTPIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3368,8 +3368,8 @@ export const se_RestoreDBInstanceFromDBSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBInstanceFromDBSnapshotMessage(input, context), - Action: "RestoreDBInstanceFromDBSnapshot", - Version: "2014-10-31", + [_A]: _RDBIFDBS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3385,8 +3385,8 @@ export const se_RestoreDBInstanceFromS3Command = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBInstanceFromS3Message(input, context), - Action: "RestoreDBInstanceFromS3", - Version: "2014-10-31", + [_A]: _RDBIFS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3402,8 +3402,8 @@ export const se_RestoreDBInstanceToPointInTimeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreDBInstanceToPointInTimeMessage(input, context), - Action: "RestoreDBInstanceToPointInTime", - Version: "2014-10-31", + [_A]: _RDBITPIT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3419,8 +3419,8 @@ export const se_RevokeDBSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeDBSecurityGroupIngressMessage(input, context), - Action: "RevokeDBSecurityGroupIngress", - Version: "2014-10-31", + [_A]: _RDBSGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3436,8 +3436,8 @@ export const se_StartActivityStreamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartActivityStreamRequest(input, context), - Action: "StartActivityStream", - Version: "2014-10-31", + [_A]: _SAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3453,8 +3453,8 @@ export const se_StartDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartDBClusterMessage(input, context), - Action: "StartDBCluster", - Version: "2014-10-31", + [_A]: _SDBC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3470,8 +3470,8 @@ export const se_StartDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartDBInstanceMessage(input, context), - Action: "StartDBInstance", - Version: "2014-10-31", + [_A]: _SDBI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3487,8 +3487,8 @@ export const se_StartDBInstanceAutomatedBackupsReplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartDBInstanceAutomatedBackupsReplicationMessage(input, context), - Action: "StartDBInstanceAutomatedBackupsReplication", - Version: "2014-10-31", + [_A]: _SDBIABR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3504,8 +3504,8 @@ export const se_StartExportTaskCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StartExportTaskMessage(input, context), - Action: "StartExportTask", - Version: "2014-10-31", + [_A]: _SET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3521,8 +3521,8 @@ export const se_StopActivityStreamCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopActivityStreamRequest(input, context), - Action: "StopActivityStream", - Version: "2014-10-31", + [_A]: _SASt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3538,8 +3538,8 @@ export const se_StopDBClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopDBClusterMessage(input, context), - Action: "StopDBCluster", - Version: "2014-10-31", + [_A]: _SDBCt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3555,8 +3555,8 @@ export const se_StopDBInstanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopDBInstanceMessage(input, context), - Action: "StopDBInstance", - Version: "2014-10-31", + [_A]: _SDBIt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3572,8 +3572,8 @@ export const se_StopDBInstanceAutomatedBackupsReplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_StopDBInstanceAutomatedBackupsReplicationMessage(input, context), - Action: "StopDBInstanceAutomatedBackupsReplication", - Version: "2014-10-31", + [_A]: _SDBIABRt, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3589,8 +3589,8 @@ export const se_SwitchoverBlueGreenDeploymentCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SwitchoverBlueGreenDeploymentRequest(input, context), - Action: "SwitchoverBlueGreenDeployment", - Version: "2014-10-31", + [_A]: _SBGD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3606,8 +3606,8 @@ export const se_SwitchoverGlobalClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SwitchoverGlobalClusterMessage(input, context), - Action: "SwitchoverGlobalCluster", - Version: "2014-10-31", + [_A]: _SGC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3623,8 +3623,8 @@ export const se_SwitchoverReadReplicaCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SwitchoverReadReplicaMessage(input, context), - Action: "SwitchoverReadReplica", - Version: "2014-10-31", + [_A]: _SRR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -14181,14 +14181,14 @@ const de_TenantDatabaseQuotaExceededFaultRes = async ( */ const se_AddRoleToDBClusterMessage = (input: AddRoleToDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.FeatureName != null) { - entries["FeatureName"] = input.FeatureName; + if (input[_FN] != null) { + entries[_FN] = input[_FN]; } return entries; }; @@ -14198,14 +14198,14 @@ const se_AddRoleToDBClusterMessage = (input: AddRoleToDBClusterMessage, context: */ const se_AddRoleToDBInstanceMessage = (input: AddRoleToDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.FeatureName != null) { - entries["FeatureName"] = input.FeatureName; + if (input[_FN] != null) { + entries[_FN] = input[_FN]; } return entries; }; @@ -14218,11 +14218,11 @@ const se_AddSourceIdentifierToSubscriptionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } return entries; }; @@ -14232,12 +14232,12 @@ const se_AddSourceIdentifierToSubscriptionMessage = ( */ const se_AddTagsToResourceMessage = (input: AddTagsToResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14256,14 +14256,14 @@ const se_ApplyPendingMaintenanceActionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ResourceIdentifier != null) { - entries["ResourceIdentifier"] = input.ResourceIdentifier; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.ApplyAction != null) { - entries["ApplyAction"] = input.ApplyAction; + if (input[_AA] != null) { + entries[_AA] = input[_AA]; } - if (input.OptInType != null) { - entries["OptInType"] = input.OptInType; + if (input[_OIT] != null) { + entries[_OIT] = input[_OIT]; } return entries; }; @@ -14292,20 +14292,20 @@ const se_AuthorizeDBSecurityGroupIngressMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBSecurityGroupName != null) { - entries["DBSecurityGroupName"] = input.DBSecurityGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.CIDRIP != null) { - entries["CIDRIP"] = input.CIDRIP; + if (input[_CIDRIP] != null) { + entries[_CIDRIP] = input[_CIDRIP]; } - if (input.EC2SecurityGroupName != null) { - entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName; + if (input[_ECSGN] != null) { + entries[_ECSGN] = input[_ECSGN]; } - if (input.EC2SecurityGroupId != null) { - entries["EC2SecurityGroupId"] = input.EC2SecurityGroupId; + if (input[_ECSGI] != null) { + entries[_ECSGI] = input[_ECSGI]; } - if (input.EC2SecurityGroupOwnerId != null) { - entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId; + if (input[_ECSGOI] != null) { + entries[_ECSGOI] = input[_ECSGOI]; } return entries; }; @@ -14331,17 +14331,17 @@ const se_AvailabilityZones = (input: string[], context: __SerdeContext): any => */ const se_BacktrackDBClusterMessage = (input: BacktrackDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.BacktrackTo != null) { - entries["BacktrackTo"] = input.BacktrackTo.toISOString().split(".")[0] + "Z"; + if (input[_BT] != null) { + entries[_BT] = input[_BT].toISOString().split(".")[0] + "Z"; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } - if (input.UseEarliestTimeOnPointInTimeUnavailable != null) { - entries["UseEarliestTimeOnPointInTimeUnavailable"] = input.UseEarliestTimeOnPointInTimeUnavailable; + if (input[_UETOPITU] != null) { + entries[_UETOPITU] = input[_UETOPITU]; } return entries; }; @@ -14351,8 +14351,8 @@ const se_BacktrackDBClusterMessage = (input: BacktrackDBClusterMessage, context: */ const se_CancelExportTaskMessage = (input: CancelExportTaskMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExportTaskIdentifier != null) { - entries["ExportTaskIdentifier"] = input.ExportTaskIdentifier; + if (input[_ETI] != null) { + entries[_ETI] = input[_ETI]; } return entries; }; @@ -14365,9 +14365,9 @@ const se_CloudwatchLogsExportConfiguration = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EnableLogTypes != null) { - const memberEntries = se_LogTypeList(input.EnableLogTypes, context); - if (input.EnableLogTypes?.length === 0) { + if (input[_ELT] != null) { + const memberEntries = se_LogTypeList(input[_ELT], context); + if (input[_ELT]?.length === 0) { entries.EnableLogTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14375,9 +14375,9 @@ const se_CloudwatchLogsExportConfiguration = ( entries[loc] = value; }); } - if (input.DisableLogTypes != null) { - const memberEntries = se_LogTypeList(input.DisableLogTypes, context); - if (input.DisableLogTypes?.length === 0) { + if (input[_DLT] != null) { + const memberEntries = se_LogTypeList(input[_DLT], context); + if (input[_DLT]?.length === 0) { entries.DisableLogTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14393,18 +14393,18 @@ const se_CloudwatchLogsExportConfiguration = ( */ const se_ConnectionPoolConfiguration = (input: ConnectionPoolConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.MaxConnectionsPercent != null) { - entries["MaxConnectionsPercent"] = input.MaxConnectionsPercent; + if (input[_MCP] != null) { + entries[_MCP] = input[_MCP]; } - if (input.MaxIdleConnectionsPercent != null) { - entries["MaxIdleConnectionsPercent"] = input.MaxIdleConnectionsPercent; + if (input[_MICP] != null) { + entries[_MICP] = input[_MICP]; } - if (input.ConnectionBorrowTimeout != null) { - entries["ConnectionBorrowTimeout"] = input.ConnectionBorrowTimeout; + if (input[_CBT] != null) { + entries[_CBT] = input[_CBT]; } - if (input.SessionPinningFilters != null) { - const memberEntries = se_StringList(input.SessionPinningFilters, context); - if (input.SessionPinningFilters?.length === 0) { + if (input[_SPF] != null) { + const memberEntries = se_StringList(input[_SPF], context); + if (input[_SPF]?.length === 0) { entries.SessionPinningFilters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14412,8 +14412,8 @@ const se_ConnectionPoolConfiguration = (input: ConnectionPoolConfiguration, cont entries[loc] = value; }); } - if (input.InitQuery != null) { - entries["InitQuery"] = input.InitQuery; + if (input[_IQ] != null) { + entries[_IQ] = input[_IQ]; } return entries; }; @@ -14426,18 +14426,18 @@ const se_CopyDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SourceDBClusterParameterGroupIdentifier != null) { - entries["SourceDBClusterParameterGroupIdentifier"] = input.SourceDBClusterParameterGroupIdentifier; + if (input[_SDBCPGI] != null) { + entries[_SDBCPGI] = input[_SDBCPGI]; } - if (input.TargetDBClusterParameterGroupIdentifier != null) { - entries["TargetDBClusterParameterGroupIdentifier"] = input.TargetDBClusterParameterGroupIdentifier; + if (input[_TDBCPGI] != null) { + entries[_TDBCPGI] = input[_TDBCPGI]; } - if (input.TargetDBClusterParameterGroupDescription != null) { - entries["TargetDBClusterParameterGroupDescription"] = input.TargetDBClusterParameterGroupDescription; + if (input[_TDBCPGD] != null) { + entries[_TDBCPGD] = input[_TDBCPGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14453,24 +14453,24 @@ const se_CopyDBClusterParameterGroupMessage = ( */ const se_CopyDBClusterSnapshotMessage = (input: CopyDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceDBClusterSnapshotIdentifier != null) { - entries["SourceDBClusterSnapshotIdentifier"] = input.SourceDBClusterSnapshotIdentifier; + if (input[_SDBCSI] != null) { + entries[_SDBCSI] = input[_SDBCSI]; } - if (input.TargetDBClusterSnapshotIdentifier != null) { - entries["TargetDBClusterSnapshotIdentifier"] = input.TargetDBClusterSnapshotIdentifier; + if (input[_TDBCSI] != null) { + entries[_TDBCSI] = input[_TDBCSI]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.CopyTags != null) { - entries["CopyTags"] = input.CopyTags; + if (input[_CT] != null) { + entries[_CT] = input[_CT]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14486,18 +14486,18 @@ const se_CopyDBClusterSnapshotMessage = (input: CopyDBClusterSnapshotMessage, co */ const se_CopyDBParameterGroupMessage = (input: CopyDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceDBParameterGroupIdentifier != null) { - entries["SourceDBParameterGroupIdentifier"] = input.SourceDBParameterGroupIdentifier; + if (input[_SDBPGI] != null) { + entries[_SDBPGI] = input[_SDBPGI]; } - if (input.TargetDBParameterGroupIdentifier != null) { - entries["TargetDBParameterGroupIdentifier"] = input.TargetDBParameterGroupIdentifier; + if (input[_TDBPGI] != null) { + entries[_TDBPGI] = input[_TDBPGI]; } - if (input.TargetDBParameterGroupDescription != null) { - entries["TargetDBParameterGroupDescription"] = input.TargetDBParameterGroupDescription; + if (input[_TDBPGD] != null) { + entries[_TDBPGD] = input[_TDBPGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14513,18 +14513,18 @@ const se_CopyDBParameterGroupMessage = (input: CopyDBParameterGroupMessage, cont */ const se_CopyDBSnapshotMessage = (input: CopyDBSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceDBSnapshotIdentifier != null) { - entries["SourceDBSnapshotIdentifier"] = input.SourceDBSnapshotIdentifier; + if (input[_SDBSI] != null) { + entries[_SDBSI] = input[_SDBSI]; } - if (input.TargetDBSnapshotIdentifier != null) { - entries["TargetDBSnapshotIdentifier"] = input.TargetDBSnapshotIdentifier; + if (input[_TDBSI] != null) { + entries[_TDBSI] = input[_TDBSI]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14532,20 +14532,20 @@ const se_CopyDBSnapshotMessage = (input: CopyDBSnapshotMessage, context: __Serde entries[loc] = value; }); } - if (input.CopyTags != null) { - entries["CopyTags"] = input.CopyTags; + if (input[_CT] != null) { + entries[_CT] = input[_CT]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.TargetCustomAvailabilityZone != null) { - entries["TargetCustomAvailabilityZone"] = input.TargetCustomAvailabilityZone; + if (input[_TCAZ] != null) { + entries[_TCAZ] = input[_TCAZ]; } - if (input.CopyOptionGroup != null) { - entries["CopyOptionGroup"] = input.CopyOptionGroup; + if (input[_COG] != null) { + entries[_COG] = input[_COG]; } return entries; }; @@ -14555,18 +14555,18 @@ const se_CopyDBSnapshotMessage = (input: CopyDBSnapshotMessage, context: __Serde */ const se_CopyOptionGroupMessage = (input: CopyOptionGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceOptionGroupIdentifier != null) { - entries["SourceOptionGroupIdentifier"] = input.SourceOptionGroupIdentifier; + if (input[_SOGI] != null) { + entries[_SOGI] = input[_SOGI]; } - if (input.TargetOptionGroupIdentifier != null) { - entries["TargetOptionGroupIdentifier"] = input.TargetOptionGroupIdentifier; + if (input[_TOGI] != null) { + entries[_TOGI] = input[_TOGI]; } - if (input.TargetOptionGroupDescription != null) { - entries["TargetOptionGroupDescription"] = input.TargetOptionGroupDescription; + if (input[_TOGD] != null) { + entries[_TOGD] = input[_TOGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14582,24 +14582,24 @@ const se_CopyOptionGroupMessage = (input: CopyOptionGroupMessage, context: __Ser */ const se_CreateBlueGreenDeploymentRequest = (input: CreateBlueGreenDeploymentRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BlueGreenDeploymentName != null) { - entries["BlueGreenDeploymentName"] = input.BlueGreenDeploymentName; + if (input[_BGDN] != null) { + entries[_BGDN] = input[_BGDN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.TargetEngineVersion != null) { - entries["TargetEngineVersion"] = input.TargetEngineVersion; + if (input[_TEV] != null) { + entries[_TEV] = input[_TEV]; } - if (input.TargetDBParameterGroupName != null) { - entries["TargetDBParameterGroupName"] = input.TargetDBParameterGroupName; + if (input[_TDBPGN] != null) { + entries[_TDBPGN] = input[_TDBPGN]; } - if (input.TargetDBClusterParameterGroupName != null) { - entries["TargetDBClusterParameterGroupName"] = input.TargetDBClusterParameterGroupName; + if (input[_TDBCPGN] != null) { + entries[_TDBCPGN] = input[_TDBCPGN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14607,11 +14607,11 @@ const se_CreateBlueGreenDeploymentRequest = (input: CreateBlueGreenDeploymentReq entries[loc] = value; }); } - if (input.TargetDBInstanceClass != null) { - entries["TargetDBInstanceClass"] = input.TargetDBInstanceClass; + if (input[_TDBIC] != null) { + entries[_TDBIC] = input[_TDBIC]; } - if (input.UpgradeTargetStorageConfig != null) { - entries["UpgradeTargetStorageConfig"] = input.UpgradeTargetStorageConfig; + if (input[_UTSC] != null) { + entries[_UTSC] = input[_UTSC]; } return entries; }; @@ -14624,33 +14624,33 @@ const se_CreateCustomDBEngineVersionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DatabaseInstallationFilesS3BucketName != null) { - entries["DatabaseInstallationFilesS3BucketName"] = input.DatabaseInstallationFilesS3BucketName; + if (input[_DIFSBN] != null) { + entries[_DIFSBN] = input[_DIFSBN]; } - if (input.DatabaseInstallationFilesS3Prefix != null) { - entries["DatabaseInstallationFilesS3Prefix"] = input.DatabaseInstallationFilesS3Prefix; + if (input[_DIFSP] != null) { + entries[_DIFSP] = input[_DIFSP]; } - if (input.ImageId != null) { - entries["ImageId"] = input.ImageId; + if (input[_II] != null) { + entries[_II] = input[_II]; } - if (input.KMSKeyId != null) { - entries["KMSKeyId"] = input.KMSKeyId; + if (input[_KMSKI] != null) { + entries[_KMSKI] = input[_KMSKI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Manifest != null) { - entries["Manifest"] = input.Manifest; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14658,11 +14658,11 @@ const se_CreateCustomDBEngineVersionMessage = ( entries[loc] = value; }); } - if (input.SourceCustomDbEngineVersionIdentifier != null) { - entries["SourceCustomDbEngineVersionIdentifier"] = input.SourceCustomDbEngineVersionIdentifier; + if (input[_SCDEVI] != null) { + entries[_SCDEVI] = input[_SCDEVI]; } - if (input.UseAwsProvidedLatestImage != null) { - entries["UseAwsProvidedLatestImage"] = input.UseAwsProvidedLatestImage; + if (input[_UAPLI] != null) { + entries[_UAPLI] = input[_UAPLI]; } return entries; }; @@ -14672,18 +14672,18 @@ const se_CreateCustomDBEngineVersionMessage = ( */ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } - if (input.EndpointType != null) { - entries["EndpointType"] = input.EndpointType; + if (input[_ET] != null) { + entries[_ET] = input[_ET]; } - if (input.StaticMembers != null) { - const memberEntries = se_StringList(input.StaticMembers, context); - if (input.StaticMembers?.length === 0) { + if (input[_SM] != null) { + const memberEntries = se_StringList(input[_SM], context); + if (input[_SM]?.length === 0) { entries.StaticMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14691,9 +14691,9 @@ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage entries[loc] = value; }); } - if (input.ExcludedMembers != null) { - const memberEntries = se_StringList(input.ExcludedMembers, context); - if (input.ExcludedMembers?.length === 0) { + if (input[_EM] != null) { + const memberEntries = se_StringList(input[_EM], context); + if (input[_EM]?.length === 0) { entries.ExcludedMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14701,9 +14701,9 @@ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14719,9 +14719,9 @@ const se_CreateDBClusterEndpointMessage = (input: CreateDBClusterEndpointMessage */ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14729,24 +14729,24 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.CharacterSetName != null) { - entries["CharacterSetName"] = input.CharacterSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14754,39 +14754,39 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.ReplicationSourceIdentifier != null) { - entries["ReplicationSourceIdentifier"] = input.ReplicationSourceIdentifier; + if (input[_RSI] != null) { + entries[_RSI] = input[_RSI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14794,24 +14794,24 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.BacktrackWindow != null) { - entries["BacktrackWindow"] = input.BacktrackWindow; + if (input[_BW] != null) { + entries[_BW] = input[_BW]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14819,98 +14819,98 @@ const se_CreateDBClusterMessage = (input: CreateDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.EngineMode != null) { - entries["EngineMode"] = input.EngineMode; + if (input[_EMn] != null) { + entries[_EMn] = input[_EMn]; } - if (input.ScalingConfiguration != null) { - const memberEntries = se_ScalingConfiguration(input.ScalingConfiguration, context); + if (input[_SC] != null) { + const memberEntries = se_ScalingConfiguration(input[_SC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.RdsCustomClusterConfiguration != null) { - const memberEntries = se_RdsCustomClusterConfiguration(input.RdsCustomClusterConfiguration, context); + if (input[_RCCC] != null) { + const memberEntries = se_RdsCustomClusterConfiguration(input[_RCCC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RdsCustomClusterConfiguration.${key}`; entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.EnableHttpEndpoint != null) { - entries["EnableHttpEndpoint"] = input.EnableHttpEndpoint; + if (input[_EHE] != null) { + entries[_EHE] = input[_EHE]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.EnableGlobalWriteForwarding != null) { - entries["EnableGlobalWriteForwarding"] = input.EnableGlobalWriteForwarding; + if (input[_EGWF] != null) { + entries[_EGWF] = input[_EGWF]; } - if (input.DBClusterInstanceClass != null) { - entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass; + if (input[_DBCIC] != null) { + entries[_DBCIC] = input[_DBCIC]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.PerformanceInsightsRetentionPeriod != null) { - entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod; + if (input[_PIRP] != null) { + entries[_PIRP] = input[_PIRP]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.DBSystemId != null) { - entries["DBSystemId"] = input.DBSystemId; + if (input[_DBSI] != null) { + entries[_DBSI] = input[_DBSI]; } - if (input.ManageMasterUserPassword != null) { - entries["ManageMasterUserPassword"] = input.ManageMasterUserPassword; + if (input[_MMUP] != null) { + entries[_MMUP] = input[_MMUP]; } - if (input.MasterUserSecretKmsKeyId != null) { - entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId; + if (input[_MUSKKI] != null) { + entries[_MUSKKI] = input[_MUSKKI]; } - if (input.EnableLocalWriteForwarding != null) { - entries["EnableLocalWriteForwarding"] = input.EnableLocalWriteForwarding; + if (input[_ELWF] != null) { + entries[_ELWF] = input[_ELWF]; } return entries; }; @@ -14923,18 +14923,18 @@ const se_CreateDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14950,15 +14950,15 @@ const se_CreateDBClusterParameterGroupMessage = ( */ const se_CreateDBClusterSnapshotMessage = (input: CreateDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14974,30 +14974,30 @@ const se_CreateDBClusterSnapshotMessage = (input: CreateDBClusterSnapshotMessage */ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBName != null) { - entries["DBName"] = input.DBName; + if (input[_DBN] != null) { + entries[_DBN] = input[_DBN]; } - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.DBSecurityGroups != null) { - const memberEntries = se_DBSecurityGroupNameList(input.DBSecurityGroups, context); - if (input.DBSecurityGroups?.length === 0) { + if (input[_DBSG] != null) { + const memberEntries = se_DBSecurityGroupNameList(input[_DBSG], context); + if (input[_DBSG]?.length === 0) { entries.DBSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15005,9 +15005,9 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15015,57 +15015,57 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZv] != null) { + entries[_AZv] = input[_AZv]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.CharacterSetName != null) { - entries["CharacterSetName"] = input.CharacterSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.NcharCharacterSetName != null) { - entries["NcharCharacterSetName"] = input.NcharCharacterSetName; + if (input[_NCSN] != null) { + entries[_NCSN] = input[_NCSN]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15073,39 +15073,39 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.TdeCredentialArn != null) { - entries["TdeCredentialArn"] = input.TdeCredentialArn; + if (input[_TCA] != null) { + entries[_TCA] = input[_TCA]; } - if (input.TdeCredentialPassword != null) { - entries["TdeCredentialPassword"] = input.TdeCredentialPassword; + if (input[_TCP] != null) { + entries[_TCP] = input[_TCP]; } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainFqdn != null) { - entries["DomainFqdn"] = input.DomainFqdn; + if (input[_DF] != null) { + entries[_DF] = input[_DF]; } - if (input.DomainOu != null) { - entries["DomainOu"] = input.DomainOu; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } - if (input.DomainAuthSecretArn != null) { - entries["DomainAuthSecretArn"] = input.DomainAuthSecretArn; + if (input[_DASA] != null) { + entries[_DASA] = input[_DASA]; } - if (input.DomainDnsIps != null) { - const memberEntries = se_StringList(input.DomainDnsIps, context); - if (input.DomainDnsIps?.length === 0) { + if (input[_DDI] != null) { + const memberEntries = se_StringList(input[_DDI], context); + if (input[_DDI]?.length === 0) { entries.DomainDnsIps = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15113,39 +15113,39 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.PromotionTier != null) { - entries["PromotionTier"] = input.PromotionTier; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } - if (input.Timezone != null) { - entries["Timezone"] = input.Timezone; + if (input[_Ti] != null) { + entries[_Ti] = input[_Ti]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.PerformanceInsightsRetentionPeriod != null) { - entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod; + if (input[_PIRP] != null) { + entries[_PIRP] = input[_PIRP]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15153,9 +15153,9 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.ProcessorFeatures != null) { - const memberEntries = se_ProcessorFeatureList(input.ProcessorFeatures, context); - if (input.ProcessorFeatures?.length === 0) { + if (input[_PF] != null) { + const memberEntries = se_ProcessorFeatureList(input[_PF], context); + if (input[_PF]?.length === 0) { entries.ProcessorFeatures = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15163,44 +15163,44 @@ const se_CreateDBInstanceMessage = (input: CreateDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.MaxAllocatedStorage != null) { - entries["MaxAllocatedStorage"] = input.MaxAllocatedStorage; + if (input[_MASa] != null) { + entries[_MASa] = input[_MASa]; } - if (input.EnableCustomerOwnedIp != null) { - entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp; + if (input[_ECOI] != null) { + entries[_ECOI] = input[_ECOI]; } - if (input.CustomIamInstanceProfile != null) { - entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile; + if (input[_CIIP] != null) { + entries[_CIIP] = input[_CIIP]; } - if (input.BackupTarget != null) { - entries["BackupTarget"] = input.BackupTarget; + if (input[_BTa] != null) { + entries[_BTa] = input[_BTa]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.StorageThroughput != null) { - entries["StorageThroughput"] = input.StorageThroughput; + if (input[_STt] != null) { + entries[_STt] = input[_STt]; } - if (input.ManageMasterUserPassword != null) { - entries["ManageMasterUserPassword"] = input.ManageMasterUserPassword; + if (input[_MMUP] != null) { + entries[_MMUP] = input[_MMUP]; } - if (input.MasterUserSecretKmsKeyId != null) { - entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId; + if (input[_MUSKKI] != null) { + entries[_MUSKKI] = input[_MUSKKI]; } - if (input.CACertificateIdentifier != null) { - entries["CACertificateIdentifier"] = input.CACertificateIdentifier; + if (input[_CACI] != null) { + entries[_CACI] = input[_CACI]; } - if (input.DBSystemId != null) { - entries["DBSystemId"] = input.DBSystemId; + if (input[_DBSI] != null) { + entries[_DBSI] = input[_DBSI]; } - if (input.DedicatedLogVolume != null) { - entries["DedicatedLogVolume"] = input.DedicatedLogVolume; + if (input[_DLV] != null) { + entries[_DLV] = input[_DLV]; } - if (input.MultiTenant != null) { - entries["MultiTenant"] = input.MultiTenant; + if (input[_MT] != null) { + entries[_MT] = input[_MT]; } return entries; }; @@ -15213,42 +15213,42 @@ const se_CreateDBInstanceReadReplicaMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.SourceDBInstanceIdentifier != null) { - entries["SourceDBInstanceIdentifier"] = input.SourceDBInstanceIdentifier; + if (input[_SDBII] != null) { + entries[_SDBII] = input[_SDBII]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZv] != null) { + entries[_AZv] = input[_AZv]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15256,12 +15256,12 @@ const se_CreateDBInstanceReadReplicaMessage = ( entries[loc] = value; }); } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15269,39 +15269,39 @@ const se_CreateDBInstanceReadReplicaMessage = ( entries[loc] = value; }); } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.PerformanceInsightsRetentionPeriod != null) { - entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod; + if (input[_PIRP] != null) { + entries[_PIRP] = input[_PIRP]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15309,9 +15309,9 @@ const se_CreateDBInstanceReadReplicaMessage = ( entries[loc] = value; }); } - if (input.ProcessorFeatures != null) { - const memberEntries = se_ProcessorFeatureList(input.ProcessorFeatures, context); - if (input.ProcessorFeatures?.length === 0) { + if (input[_PF] != null) { + const memberEntries = se_ProcessorFeatureList(input[_PF], context); + if (input[_PF]?.length === 0) { entries.ProcessorFeatures = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15319,30 +15319,30 @@ const se_CreateDBInstanceReadReplicaMessage = ( entries[loc] = value; }); } - if (input.UseDefaultProcessorFeatures != null) { - entries["UseDefaultProcessorFeatures"] = input.UseDefaultProcessorFeatures; + if (input[_UDPF] != null) { + entries[_UDPF] = input[_UDPF]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.DomainFqdn != null) { - entries["DomainFqdn"] = input.DomainFqdn; + if (input[_DF] != null) { + entries[_DF] = input[_DF]; } - if (input.DomainOu != null) { - entries["DomainOu"] = input.DomainOu; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } - if (input.DomainAuthSecretArn != null) { - entries["DomainAuthSecretArn"] = input.DomainAuthSecretArn; + if (input[_DASA] != null) { + entries[_DASA] = input[_DASA]; } - if (input.DomainDnsIps != null) { - const memberEntries = se_StringList(input.DomainDnsIps, context); - if (input.DomainDnsIps?.length === 0) { + if (input[_DDI] != null) { + const memberEntries = se_StringList(input[_DDI], context); + if (input[_DDI]?.length === 0) { entries.DomainDnsIps = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15350,35 +15350,35 @@ const se_CreateDBInstanceReadReplicaMessage = ( entries[loc] = value; }); } - if (input.ReplicaMode != null) { - entries["ReplicaMode"] = input.ReplicaMode; + if (input[_RM] != null) { + entries[_RM] = input[_RM]; } - if (input.MaxAllocatedStorage != null) { - entries["MaxAllocatedStorage"] = input.MaxAllocatedStorage; + if (input[_MASa] != null) { + entries[_MASa] = input[_MASa]; } - if (input.CustomIamInstanceProfile != null) { - entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile; + if (input[_CIIP] != null) { + entries[_CIIP] = input[_CIIP]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.StorageThroughput != null) { - entries["StorageThroughput"] = input.StorageThroughput; + if (input[_STt] != null) { + entries[_STt] = input[_STt]; } - if (input.EnableCustomerOwnedIp != null) { - entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp; + if (input[_ECOI] != null) { + entries[_ECOI] = input[_ECOI]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.SourceDBClusterIdentifier != null) { - entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier; + if (input[_SDBCI] != null) { + entries[_SDBCI] = input[_SDBCI]; } - if (input.DedicatedLogVolume != null) { - entries["DedicatedLogVolume"] = input.DedicatedLogVolume; + if (input[_DLV] != null) { + entries[_DLV] = input[_DLV]; } - if (input.UpgradeStorageConfig != null) { - entries["UpgradeStorageConfig"] = input.UpgradeStorageConfig; + if (input[_USC] != null) { + entries[_USC] = input[_USC]; } return entries; }; @@ -15388,18 +15388,18 @@ const se_CreateDBInstanceReadReplicaMessage = ( */ const se_CreateDBParameterGroupMessage = (input: CreateDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15415,15 +15415,15 @@ const se_CreateDBParameterGroupMessage = (input: CreateDBParameterGroupMessage, */ const se_CreateDBProxyEndpointRequest = (input: CreateDBProxyEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.DBProxyEndpointName != null) { - entries["DBProxyEndpointName"] = input.DBProxyEndpointName; + if (input[_DBPEN] != null) { + entries[_DBPEN] = input[_DBPEN]; } - if (input.VpcSubnetIds != null) { - const memberEntries = se_StringList(input.VpcSubnetIds, context); - if (input.VpcSubnetIds?.length === 0) { + if (input[_VSI] != null) { + const memberEntries = se_StringList(input[_VSI], context); + if (input[_VSI]?.length === 0) { entries.VpcSubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15431,9 +15431,9 @@ const se_CreateDBProxyEndpointRequest = (input: CreateDBProxyEndpointRequest, co entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_StringList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_StringList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15441,12 +15441,12 @@ const se_CreateDBProxyEndpointRequest = (input: CreateDBProxyEndpointRequest, co entries[loc] = value; }); } - if (input.TargetRole != null) { - entries["TargetRole"] = input.TargetRole; + if (input[_TR] != null) { + entries[_TR] = input[_TR]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15462,15 +15462,15 @@ const se_CreateDBProxyEndpointRequest = (input: CreateDBProxyEndpointRequest, co */ const se_CreateDBProxyRequest = (input: CreateDBProxyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.EngineFamily != null) { - entries["EngineFamily"] = input.EngineFamily; + if (input[_EF] != null) { + entries[_EF] = input[_EF]; } - if (input.Auth != null) { - const memberEntries = se_UserAuthConfigList(input.Auth, context); - if (input.Auth?.length === 0) { + if (input[_Au] != null) { + const memberEntries = se_UserAuthConfigList(input[_Au], context); + if (input[_Au]?.length === 0) { entries.Auth = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15478,12 +15478,12 @@ const se_CreateDBProxyRequest = (input: CreateDBProxyRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.VpcSubnetIds != null) { - const memberEntries = se_StringList(input.VpcSubnetIds, context); - if (input.VpcSubnetIds?.length === 0) { + if (input[_VSI] != null) { + const memberEntries = se_StringList(input[_VSI], context); + if (input[_VSI]?.length === 0) { entries.VpcSubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15491,9 +15491,9 @@ const se_CreateDBProxyRequest = (input: CreateDBProxyRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_StringList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_StringList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15501,18 +15501,18 @@ const se_CreateDBProxyRequest = (input: CreateDBProxyRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.RequireTLS != null) { - entries["RequireTLS"] = input.RequireTLS; + if (input[_RTLS] != null) { + entries[_RTLS] = input[_RTLS]; } - if (input.IdleClientTimeout != null) { - entries["IdleClientTimeout"] = input.IdleClientTimeout; + if (input[_ICT] != null) { + entries[_ICT] = input[_ICT]; } - if (input.DebugLogging != null) { - entries["DebugLogging"] = input.DebugLogging; + if (input[_DL] != null) { + entries[_DL] = input[_DL]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15528,15 +15528,15 @@ const se_CreateDBProxyRequest = (input: CreateDBProxyRequest, context: __SerdeCo */ const se_CreateDBSecurityGroupMessage = (input: CreateDBSecurityGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSecurityGroupName != null) { - entries["DBSecurityGroupName"] = input.DBSecurityGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.DBSecurityGroupDescription != null) { - entries["DBSecurityGroupDescription"] = input.DBSecurityGroupDescription; + if (input[_DBSGD] != null) { + entries[_DBSGD] = input[_DBSGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15552,15 +15552,15 @@ const se_CreateDBSecurityGroupMessage = (input: CreateDBSecurityGroupMessage, co */ const se_CreateDBSnapshotMessage = (input: CreateDBSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15576,15 +15576,15 @@ const se_CreateDBSnapshotMessage = (input: CreateDBSnapshotMessage, context: __S */ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.DBSubnetGroupDescription != null) { - entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription; + if (input[_DBSGDu] != null) { + entries[_DBSGDu] = input[_DBSGDu]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15592,9 +15592,9 @@ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, contex entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15610,18 +15610,18 @@ const se_CreateDBSubnetGroupMessage = (input: CreateDBSubnetGroupMessage, contex */ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15629,9 +15629,9 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.SourceIds != null) { - const memberEntries = se_SourceIdsList(input.SourceIds, context); - if (input.SourceIds?.length === 0) { + if (input[_SIo] != null) { + const memberEntries = se_SourceIdsList(input[_SIo], context); + if (input[_SIo]?.length === 0) { entries.SourceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15639,12 +15639,12 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15660,26 +15660,26 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage */ const se_CreateGlobalClusterMessage = (input: CreateGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.SourceDBClusterIdentifier != null) { - entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier; + if (input[_SDBCI] != null) { + entries[_SDBCI] = input[_SDBCI]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } return entries; }; @@ -15689,28 +15689,28 @@ const se_CreateGlobalClusterMessage = (input: CreateGlobalClusterMessage, contex */ const se_CreateIntegrationMessage = (input: CreateIntegrationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceArn != null) { - entries["SourceArn"] = input.SourceArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.TargetArn != null) { - entries["TargetArn"] = input.TargetArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.IntegrationName != null) { - entries["IntegrationName"] = input.IntegrationName; + if (input[_IN] != null) { + entries[_IN] = input[_IN]; } - if (input.KMSKeyId != null) { - entries["KMSKeyId"] = input.KMSKeyId; + if (input[_KMSKI] != null) { + entries[_KMSKI] = input[_KMSKI]; } - if (input.AdditionalEncryptionContext != null) { - const memberEntries = se_EncryptionContextMap(input.AdditionalEncryptionContext, context); + if (input[_AEC] != null) { + const memberEntries = se_EncryptionContextMap(input[_AEC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AdditionalEncryptionContext.${key}`; entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15726,21 +15726,21 @@ const se_CreateIntegrationMessage = (input: CreateIntegrationMessage, context: _ */ const se_CreateOptionGroupMessage = (input: CreateOptionGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.EngineName != null) { - entries["EngineName"] = input.EngineName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.MajorEngineVersion != null) { - entries["MajorEngineVersion"] = input.MajorEngineVersion; + if (input[_MEV] != null) { + entries[_MEV] = input[_MEV]; } - if (input.OptionGroupDescription != null) { - entries["OptionGroupDescription"] = input.OptionGroupDescription; + if (input[_OGD] != null) { + entries[_OGD] = input[_OGD]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15756,27 +15756,27 @@ const se_CreateOptionGroupMessage = (input: CreateOptionGroupMessage, context: _ */ const se_CreateTenantDatabaseMessage = (input: CreateTenantDatabaseMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.TenantDBName != null) { - entries["TenantDBName"] = input.TenantDBName; + if (input[_TDBN] != null) { + entries[_TDBN] = input[_TDBN]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.CharacterSetName != null) { - entries["CharacterSetName"] = input.CharacterSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.NcharCharacterSetName != null) { - entries["NcharCharacterSetName"] = input.NcharCharacterSetName; + if (input[_NCSN] != null) { + entries[_NCSN] = input[_NCSN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15808,11 +15808,11 @@ const se_DBSecurityGroupNameList = (input: string[], context: __SerdeContext): a */ const se_DeleteBlueGreenDeploymentRequest = (input: DeleteBlueGreenDeploymentRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.BlueGreenDeploymentIdentifier != null) { - entries["BlueGreenDeploymentIdentifier"] = input.BlueGreenDeploymentIdentifier; + if (input[_BGDI] != null) { + entries[_BGDI] = input[_BGDI]; } - if (input.DeleteTarget != null) { - entries["DeleteTarget"] = input.DeleteTarget; + if (input[_DT] != null) { + entries[_DT] = input[_DT]; } return entries; }; @@ -15825,11 +15825,11 @@ const se_DeleteCustomDBEngineVersionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } return entries; }; @@ -15842,8 +15842,8 @@ const se_DeleteDBClusterAutomatedBackupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DbClusterResourceId != null) { - entries["DbClusterResourceId"] = input.DbClusterResourceId; + if (input[_DCRI] != null) { + entries[_DCRI] = input[_DCRI]; } return entries; }; @@ -15853,8 +15853,8 @@ const se_DeleteDBClusterAutomatedBackupMessage = ( */ const se_DeleteDBClusterEndpointMessage = (input: DeleteDBClusterEndpointMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } return entries; }; @@ -15864,17 +15864,17 @@ const se_DeleteDBClusterEndpointMessage = (input: DeleteDBClusterEndpointMessage */ const se_DeleteDBClusterMessage = (input: DeleteDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.SkipFinalSnapshot != null) { - entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot; + if (input[_SFS] != null) { + entries[_SFS] = input[_SFS]; } - if (input.FinalDBSnapshotIdentifier != null) { - entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier; + if (input[_FDBSI] != null) { + entries[_FDBSI] = input[_FDBSI]; } - if (input.DeleteAutomatedBackups != null) { - entries["DeleteAutomatedBackups"] = input.DeleteAutomatedBackups; + if (input[_DAB] != null) { + entries[_DAB] = input[_DAB]; } return entries; }; @@ -15887,8 +15887,8 @@ const se_DeleteDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } return entries; }; @@ -15898,8 +15898,8 @@ const se_DeleteDBClusterParameterGroupMessage = ( */ const se_DeleteDBClusterSnapshotMessage = (input: DeleteDBClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } return entries; }; @@ -15912,11 +15912,11 @@ const se_DeleteDBInstanceAutomatedBackupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DbiResourceId != null) { - entries["DbiResourceId"] = input.DbiResourceId; + if (input[_DRI] != null) { + entries[_DRI] = input[_DRI]; } - if (input.DBInstanceAutomatedBackupsArn != null) { - entries["DBInstanceAutomatedBackupsArn"] = input.DBInstanceAutomatedBackupsArn; + if (input[_DBIABA] != null) { + entries[_DBIABA] = input[_DBIABA]; } return entries; }; @@ -15926,17 +15926,17 @@ const se_DeleteDBInstanceAutomatedBackupMessage = ( */ const se_DeleteDBInstanceMessage = (input: DeleteDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.SkipFinalSnapshot != null) { - entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot; + if (input[_SFS] != null) { + entries[_SFS] = input[_SFS]; } - if (input.FinalDBSnapshotIdentifier != null) { - entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier; + if (input[_FDBSI] != null) { + entries[_FDBSI] = input[_FDBSI]; } - if (input.DeleteAutomatedBackups != null) { - entries["DeleteAutomatedBackups"] = input.DeleteAutomatedBackups; + if (input[_DAB] != null) { + entries[_DAB] = input[_DAB]; } return entries; }; @@ -15946,8 +15946,8 @@ const se_DeleteDBInstanceMessage = (input: DeleteDBInstanceMessage, context: __S */ const se_DeleteDBParameterGroupMessage = (input: DeleteDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } return entries; }; @@ -15957,8 +15957,8 @@ const se_DeleteDBParameterGroupMessage = (input: DeleteDBParameterGroupMessage, */ const se_DeleteDBProxyEndpointRequest = (input: DeleteDBProxyEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyEndpointName != null) { - entries["DBProxyEndpointName"] = input.DBProxyEndpointName; + if (input[_DBPEN] != null) { + entries[_DBPEN] = input[_DBPEN]; } return entries; }; @@ -15968,8 +15968,8 @@ const se_DeleteDBProxyEndpointRequest = (input: DeleteDBProxyEndpointRequest, co */ const se_DeleteDBProxyRequest = (input: DeleteDBProxyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } return entries; }; @@ -15979,8 +15979,8 @@ const se_DeleteDBProxyRequest = (input: DeleteDBProxyRequest, context: __SerdeCo */ const se_DeleteDBSecurityGroupMessage = (input: DeleteDBSecurityGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSecurityGroupName != null) { - entries["DBSecurityGroupName"] = input.DBSecurityGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } return entries; }; @@ -15990,8 +15990,8 @@ const se_DeleteDBSecurityGroupMessage = (input: DeleteDBSecurityGroupMessage, co */ const se_DeleteDBSnapshotMessage = (input: DeleteDBSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } return entries; }; @@ -16001,8 +16001,8 @@ const se_DeleteDBSnapshotMessage = (input: DeleteDBSnapshotMessage, context: __S */ const se_DeleteDBSubnetGroupMessage = (input: DeleteDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } return entries; }; @@ -16012,8 +16012,8 @@ const se_DeleteDBSubnetGroupMessage = (input: DeleteDBSubnetGroupMessage, contex */ const se_DeleteEventSubscriptionMessage = (input: DeleteEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -16023,8 +16023,8 @@ const se_DeleteEventSubscriptionMessage = (input: DeleteEventSubscriptionMessage */ const se_DeleteGlobalClusterMessage = (input: DeleteGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } return entries; }; @@ -16034,8 +16034,8 @@ const se_DeleteGlobalClusterMessage = (input: DeleteGlobalClusterMessage, contex */ const se_DeleteIntegrationMessage = (input: DeleteIntegrationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.IntegrationIdentifier != null) { - entries["IntegrationIdentifier"] = input.IntegrationIdentifier; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } return entries; }; @@ -16045,8 +16045,8 @@ const se_DeleteIntegrationMessage = (input: DeleteIntegrationMessage, context: _ */ const se_DeleteOptionGroupMessage = (input: DeleteOptionGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } return entries; }; @@ -16056,17 +16056,17 @@ const se_DeleteOptionGroupMessage = (input: DeleteOptionGroupMessage, context: _ */ const se_DeleteTenantDatabaseMessage = (input: DeleteTenantDatabaseMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.TenantDBName != null) { - entries["TenantDBName"] = input.TenantDBName; + if (input[_TDBN] != null) { + entries[_TDBN] = input[_TDBN]; } - if (input.SkipFinalSnapshot != null) { - entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot; + if (input[_SFS] != null) { + entries[_SFS] = input[_SFS]; } - if (input.FinalDBSnapshotIdentifier != null) { - entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier; + if (input[_FDBSI] != null) { + entries[_FDBSI] = input[_FDBSI]; } return entries; }; @@ -16076,15 +16076,15 @@ const se_DeleteTenantDatabaseMessage = (input: DeleteTenantDatabaseMessage, cont */ const se_DeregisterDBProxyTargetsRequest = (input: DeregisterDBProxyTargetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.TargetGroupName != null) { - entries["TargetGroupName"] = input.TargetGroupName; + if (input[_TGN] != null) { + entries[_TGN] = input[_TGN]; } - if (input.DBInstanceIdentifiers != null) { - const memberEntries = se_StringList(input.DBInstanceIdentifiers, context); - if (input.DBInstanceIdentifiers?.length === 0) { + if (input[_DBIIn] != null) { + const memberEntries = se_StringList(input[_DBIIn], context); + if (input[_DBIIn]?.length === 0) { entries.DBInstanceIdentifiers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16092,9 +16092,9 @@ const se_DeregisterDBProxyTargetsRequest = (input: DeregisterDBProxyTargetsReque entries[loc] = value; }); } - if (input.DBClusterIdentifiers != null) { - const memberEntries = se_StringList(input.DBClusterIdentifiers, context); - if (input.DBClusterIdentifiers?.length === 0) { + if (input[_DBCIl] != null) { + const memberEntries = se_StringList(input[_DBCIl], context); + if (input[_DBCIl]?.length === 0) { entries.DBClusterIdentifiers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16121,12 +16121,12 @@ const se_DescribeBlueGreenDeploymentsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.BlueGreenDeploymentIdentifier != null) { - entries["BlueGreenDeploymentIdentifier"] = input.BlueGreenDeploymentIdentifier; + if (input[_BGDI] != null) { + entries[_BGDI] = input[_BGDI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16134,11 +16134,11 @@ const se_DescribeBlueGreenDeploymentsRequest = ( entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -16148,12 +16148,12 @@ const se_DescribeBlueGreenDeploymentsRequest = ( */ const se_DescribeCertificatesMessage = (input: DescribeCertificatesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CertificateIdentifier != null) { - entries["CertificateIdentifier"] = input.CertificateIdentifier; + if (input[_CIe] != null) { + entries[_CIe] = input[_CIe]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16161,11 +16161,11 @@ const se_DescribeCertificatesMessage = (input: DescribeCertificatesMessage, cont entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16178,15 +16178,15 @@ const se_DescribeDBClusterAutomatedBackupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DbClusterResourceId != null) { - entries["DbClusterResourceId"] = input.DbClusterResourceId; + if (input[_DCRI] != null) { + entries[_DCRI] = input[_DCRI]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16194,11 +16194,11 @@ const se_DescribeDBClusterAutomatedBackupsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16211,15 +16211,15 @@ const se_DescribeDBClusterBacktracksMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.BacktrackIdentifier != null) { - entries["BacktrackIdentifier"] = input.BacktrackIdentifier; + if (input[_BI] != null) { + entries[_BI] = input[_BI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16227,11 +16227,11 @@ const se_DescribeDBClusterBacktracksMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16244,15 +16244,15 @@ const se_DescribeDBClusterEndpointsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16260,11 +16260,11 @@ const se_DescribeDBClusterEndpointsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16277,12 +16277,12 @@ const se_DescribeDBClusterParameterGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16290,11 +16290,11 @@ const se_DescribeDBClusterParameterGroupsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16307,15 +16307,15 @@ const se_DescribeDBClusterParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16323,11 +16323,11 @@ const se_DescribeDBClusterParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16337,12 +16337,12 @@ const se_DescribeDBClusterParametersMessage = ( */ const se_DescribeDBClustersMessage = (input: DescribeDBClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16350,14 +16350,14 @@ const se_DescribeDBClustersMessage = (input: DescribeDBClustersMessage, context: entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.IncludeShared != null) { - entries["IncludeShared"] = input.IncludeShared; + if (input[_IS] != null) { + entries[_IS] = input[_IS]; } return entries; }; @@ -16370,8 +16370,8 @@ const se_DescribeDBClusterSnapshotAttributesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } return entries; }; @@ -16384,18 +16384,18 @@ const se_DescribeDBClusterSnapshotsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.SnapshotType != null) { - entries["SnapshotType"] = input.SnapshotType; + if (input[_STn] != null) { + entries[_STn] = input[_STn]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16403,20 +16403,20 @@ const se_DescribeDBClusterSnapshotsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.IncludeShared != null) { - entries["IncludeShared"] = input.IncludeShared; + if (input[_IS] != null) { + entries[_IS] = input[_IS]; } - if (input.IncludePublic != null) { - entries["IncludePublic"] = input.IncludePublic; + if (input[_IP] != null) { + entries[_IP] = input[_IP]; } - if (input.DbClusterResourceId != null) { - entries["DbClusterResourceId"] = input.DbClusterResourceId; + if (input[_DCRI] != null) { + entries[_DCRI] = input[_DCRI]; } return entries; }; @@ -16426,18 +16426,18 @@ const se_DescribeDBClusterSnapshotsMessage = ( */ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16445,23 +16445,23 @@ const se_DescribeDBEngineVersionsMessage = (input: DescribeDBEngineVersionsMessa entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.DefaultOnly != null) { - entries["DefaultOnly"] = input.DefaultOnly; + if (input[_DOe] != null) { + entries[_DOe] = input[_DOe]; } - if (input.ListSupportedCharacterSets != null) { - entries["ListSupportedCharacterSets"] = input.ListSupportedCharacterSets; + if (input[_LSCS] != null) { + entries[_LSCS] = input[_LSCS]; } - if (input.ListSupportedTimezones != null) { - entries["ListSupportedTimezones"] = input.ListSupportedTimezones; + if (input[_LST] != null) { + entries[_LST] = input[_LST]; } - if (input.IncludeAll != null) { - entries["IncludeAll"] = input.IncludeAll; + if (input[_IA] != null) { + entries[_IA] = input[_IA]; } return entries; }; @@ -16474,15 +16474,15 @@ const se_DescribeDBInstanceAutomatedBackupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DbiResourceId != null) { - entries["DbiResourceId"] = input.DbiResourceId; + if (input[_DRI] != null) { + entries[_DRI] = input[_DRI]; } - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16490,14 +16490,14 @@ const se_DescribeDBInstanceAutomatedBackupsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.DBInstanceAutomatedBackupsArn != null) { - entries["DBInstanceAutomatedBackupsArn"] = input.DBInstanceAutomatedBackupsArn; + if (input[_DBIABA] != null) { + entries[_DBIABA] = input[_DBIABA]; } return entries; }; @@ -16507,12 +16507,12 @@ const se_DescribeDBInstanceAutomatedBackupsMessage = ( */ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16520,11 +16520,11 @@ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, contex entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16534,21 +16534,21 @@ const se_DescribeDBInstancesMessage = (input: DescribeDBInstancesMessage, contex */ const se_DescribeDBLogFilesMessage = (input: DescribeDBLogFilesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.FilenameContains != null) { - entries["FilenameContains"] = input.FilenameContains; + if (input[_FC] != null) { + entries[_FC] = input[_FC]; } - if (input.FileLastWritten != null) { - entries["FileLastWritten"] = input.FileLastWritten; + if (input[_FLW] != null) { + entries[_FLW] = input[_FLW]; } - if (input.FileSize != null) { - entries["FileSize"] = input.FileSize; + if (input[_FS] != null) { + entries[_FS] = input[_FS]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16556,11 +16556,11 @@ const se_DescribeDBLogFilesMessage = (input: DescribeDBLogFilesMessage, context: entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16570,12 +16570,12 @@ const se_DescribeDBLogFilesMessage = (input: DescribeDBLogFilesMessage, context: */ const se_DescribeDBParameterGroupsMessage = (input: DescribeDBParameterGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16583,11 +16583,11 @@ const se_DescribeDBParameterGroupsMessage = (input: DescribeDBParameterGroupsMes entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16597,15 +16597,15 @@ const se_DescribeDBParameterGroupsMessage = (input: DescribeDBParameterGroupsMes */ const se_DescribeDBParametersMessage = (input: DescribeDBParametersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16613,11 +16613,11 @@ const se_DescribeDBParametersMessage = (input: DescribeDBParametersMessage, cont entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16627,12 +16627,12 @@ const se_DescribeDBParametersMessage = (input: DescribeDBParametersMessage, cont */ const se_DescribeDBProxiesRequest = (input: DescribeDBProxiesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16640,11 +16640,11 @@ const se_DescribeDBProxiesRequest = (input: DescribeDBProxiesRequest, context: _ entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -16654,15 +16654,15 @@ const se_DescribeDBProxiesRequest = (input: DescribeDBProxiesRequest, context: _ */ const se_DescribeDBProxyEndpointsRequest = (input: DescribeDBProxyEndpointsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.DBProxyEndpointName != null) { - entries["DBProxyEndpointName"] = input.DBProxyEndpointName; + if (input[_DBPEN] != null) { + entries[_DBPEN] = input[_DBPEN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16670,11 +16670,11 @@ const se_DescribeDBProxyEndpointsRequest = (input: DescribeDBProxyEndpointsReque entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -16687,15 +16687,15 @@ const se_DescribeDBProxyTargetGroupsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.TargetGroupName != null) { - entries["TargetGroupName"] = input.TargetGroupName; + if (input[_TGN] != null) { + entries[_TGN] = input[_TGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16703,11 +16703,11 @@ const se_DescribeDBProxyTargetGroupsRequest = ( entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -16717,15 +16717,15 @@ const se_DescribeDBProxyTargetGroupsRequest = ( */ const se_DescribeDBProxyTargetsRequest = (input: DescribeDBProxyTargetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.TargetGroupName != null) { - entries["TargetGroupName"] = input.TargetGroupName; + if (input[_TGN] != null) { + entries[_TGN] = input[_TGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16733,11 +16733,11 @@ const se_DescribeDBProxyTargetsRequest = (input: DescribeDBProxyTargetsRequest, entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -16747,12 +16747,12 @@ const se_DescribeDBProxyTargetsRequest = (input: DescribeDBProxyTargetsRequest, */ const se_DescribeDBSecurityGroupsMessage = (input: DescribeDBSecurityGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSecurityGroupName != null) { - entries["DBSecurityGroupName"] = input.DBSecurityGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16760,11 +16760,11 @@ const se_DescribeDBSecurityGroupsMessage = (input: DescribeDBSecurityGroupsMessa entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16777,8 +16777,8 @@ const se_DescribeDBSnapshotAttributesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } return entries; }; @@ -16788,18 +16788,18 @@ const se_DescribeDBSnapshotAttributesMessage = ( */ const se_DescribeDBSnapshotsMessage = (input: DescribeDBSnapshotsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } - if (input.SnapshotType != null) { - entries["SnapshotType"] = input.SnapshotType; + if (input[_STn] != null) { + entries[_STn] = input[_STn]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16807,20 +16807,20 @@ const se_DescribeDBSnapshotsMessage = (input: DescribeDBSnapshotsMessage, contex entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.IncludeShared != null) { - entries["IncludeShared"] = input.IncludeShared; + if (input[_IS] != null) { + entries[_IS] = input[_IS]; } - if (input.IncludePublic != null) { - entries["IncludePublic"] = input.IncludePublic; + if (input[_IP] != null) { + entries[_IP] = input[_IP]; } - if (input.DbiResourceId != null) { - entries["DbiResourceId"] = input.DbiResourceId; + if (input[_DRI] != null) { + entries[_DRI] = input[_DRI]; } return entries; }; @@ -16833,18 +16833,18 @@ const se_DescribeDBSnapshotTenantDatabasesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } - if (input.SnapshotType != null) { - entries["SnapshotType"] = input.SnapshotType; + if (input[_STn] != null) { + entries[_STn] = input[_STn]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16852,14 +16852,14 @@ const se_DescribeDBSnapshotTenantDatabasesMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.DbiResourceId != null) { - entries["DbiResourceId"] = input.DbiResourceId; + if (input[_DRI] != null) { + entries[_DRI] = input[_DRI]; } return entries; }; @@ -16869,12 +16869,12 @@ const se_DescribeDBSnapshotTenantDatabasesMessage = ( */ const se_DescribeDBSubnetGroupsMessage = (input: DescribeDBSubnetGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16882,11 +16882,11 @@ const se_DescribeDBSubnetGroupsMessage = (input: DescribeDBSubnetGroupsMessage, entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16899,12 +16899,12 @@ const se_DescribeEngineDefaultClusterParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16912,11 +16912,11 @@ const se_DescribeEngineDefaultClusterParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16929,12 +16929,12 @@ const se_DescribeEngineDefaultParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBParameterGroupFamily != null) { - entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily; + if (input[_DBPGF] != null) { + entries[_DBPGF] = input[_DBPGF]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16942,11 +16942,11 @@ const se_DescribeEngineDefaultParametersMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -16956,12 +16956,12 @@ const se_DescribeEngineDefaultParametersMessage = ( */ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16977,24 +16977,24 @@ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage */ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STta] != null) { + entries[_STta] = input[_STta].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ETn] != null) { + entries[_ETn] = input[_ETn].toISOString().split(".")[0] + "Z"; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17002,9 +17002,9 @@ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __Serde entries[loc] = value; }); } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17012,11 +17012,11 @@ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __Serde entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17029,12 +17029,12 @@ const se_DescribeEventSubscriptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17042,11 +17042,11 @@ const se_DescribeEventSubscriptionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17056,15 +17056,15 @@ const se_DescribeEventSubscriptionsMessage = ( */ const se_DescribeExportTasksMessage = (input: DescribeExportTasksMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExportTaskIdentifier != null) { - entries["ExportTaskIdentifier"] = input.ExportTaskIdentifier; + if (input[_ETI] != null) { + entries[_ETI] = input[_ETI]; } - if (input.SourceArn != null) { - entries["SourceArn"] = input.SourceArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17072,14 +17072,14 @@ const se_DescribeExportTasksMessage = (input: DescribeExportTasksMessage, contex entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } return entries; }; @@ -17089,12 +17089,12 @@ const se_DescribeExportTasksMessage = (input: DescribeExportTasksMessage, contex */ const se_DescribeGlobalClustersMessage = (input: DescribeGlobalClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17102,11 +17102,11 @@ const se_DescribeGlobalClustersMessage = (input: DescribeGlobalClustersMessage, entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17116,12 +17116,12 @@ const se_DescribeGlobalClustersMessage = (input: DescribeGlobalClustersMessage, */ const se_DescribeIntegrationsMessage = (input: DescribeIntegrationsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.IntegrationIdentifier != null) { - entries["IntegrationIdentifier"] = input.IntegrationIdentifier; + if (input[_IIn] != null) { + entries[_IIn] = input[_IIn]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17129,11 +17129,11 @@ const se_DescribeIntegrationsMessage = (input: DescribeIntegrationsMessage, cont entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17146,15 +17146,15 @@ const se_DescribeOptionGroupOptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EngineName != null) { - entries["EngineName"] = input.EngineName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.MajorEngineVersion != null) { - entries["MajorEngineVersion"] = input.MajorEngineVersion; + if (input[_MEV] != null) { + entries[_MEV] = input[_MEV]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17162,11 +17162,11 @@ const se_DescribeOptionGroupOptionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17176,12 +17176,12 @@ const se_DescribeOptionGroupOptionsMessage = ( */ const se_DescribeOptionGroupsMessage = (input: DescribeOptionGroupsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17189,17 +17189,17 @@ const se_DescribeOptionGroupsMessage = (input: DescribeOptionGroupsMessage, cont entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.EngineName != null) { - entries["EngineName"] = input.EngineName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.MajorEngineVersion != null) { - entries["MajorEngineVersion"] = input.MajorEngineVersion; + if (input[_MEV] != null) { + entries[_MEV] = input[_MEV]; } return entries; }; @@ -17212,27 +17212,27 @@ const se_DescribeOrderableDBInstanceOptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.AvailabilityZoneGroup != null) { - entries["AvailabilityZoneGroup"] = input.AvailabilityZoneGroup; + if (input[_AZG] != null) { + entries[_AZG] = input[_AZG]; } - if (input.Vpc != null) { - entries["Vpc"] = input.Vpc; + if (input[_Vp] != null) { + entries[_Vp] = input[_Vp]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17240,11 +17240,11 @@ const se_DescribeOrderableDBInstanceOptionsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17257,12 +17257,12 @@ const se_DescribePendingMaintenanceActionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ResourceIdentifier != null) { - entries["ResourceIdentifier"] = input.ResourceIdentifier; + if (input[_RI] != null) { + entries[_RI] = input[_RI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17270,11 +17270,11 @@ const se_DescribePendingMaintenanceActionsMessage = ( entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -17287,33 +17287,33 @@ const se_DescribeReservedDBInstancesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedDBInstanceId != null) { - entries["ReservedDBInstanceId"] = input.ReservedDBInstanceId; + if (input[_RDBII] != null) { + entries[_RDBII] = input[_RDBII]; } - if (input.ReservedDBInstancesOfferingId != null) { - entries["ReservedDBInstancesOfferingId"] = input.ReservedDBInstancesOfferingId; + if (input[_RDBIOI] != null) { + entries[_RDBIOI] = input[_RDBIOI]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.ProductDescription != null) { - entries["ProductDescription"] = input.ProductDescription; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.OfferingType != null) { - entries["OfferingType"] = input.OfferingType; + if (input[_OT] != null) { + entries[_OT] = input[_OT]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.LeaseId != null) { - entries["LeaseId"] = input.LeaseId; + if (input[_LI] != null) { + entries[_LI] = input[_LI]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17321,11 +17321,11 @@ const se_DescribeReservedDBInstancesMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17338,27 +17338,27 @@ const se_DescribeReservedDBInstancesOfferingsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedDBInstancesOfferingId != null) { - entries["ReservedDBInstancesOfferingId"] = input.ReservedDBInstancesOfferingId; + if (input[_RDBIOI] != null) { + entries[_RDBIOI] = input[_RDBIOI]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.ProductDescription != null) { - entries["ProductDescription"] = input.ProductDescription; + if (input[_PD] != null) { + entries[_PD] = input[_PD]; } - if (input.OfferingType != null) { - entries["OfferingType"] = input.OfferingType; + if (input[_OT] != null) { + entries[_OT] = input[_OT]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17366,11 +17366,11 @@ const se_DescribeReservedDBInstancesOfferingsMessage = ( entries[loc] = value; }); } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -17380,18 +17380,18 @@ const se_DescribeReservedDBInstancesOfferingsMessage = ( */ const se_DescribeSourceRegionsMessage = (input: DescribeSourceRegionsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.RegionName != null) { - entries["RegionName"] = input.RegionName; + if (input[_RNe] != null) { + entries[_RNe] = input[_RNe]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17407,15 +17407,15 @@ const se_DescribeSourceRegionsMessage = (input: DescribeSourceRegionsMessage, co */ const se_DescribeTenantDatabasesMessage = (input: DescribeTenantDatabasesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.TenantDBName != null) { - entries["TenantDBName"] = input.TenantDBName; + if (input[_TDBN] != null) { + entries[_TDBN] = input[_TDBN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17423,11 +17423,11 @@ const se_DescribeTenantDatabasesMessage = (input: DescribeTenantDatabasesMessage entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -17440,8 +17440,8 @@ const se_DescribeValidDBInstanceModificationsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } return entries; }; @@ -17451,17 +17451,17 @@ const se_DescribeValidDBInstanceModificationsMessage = ( */ const se_DownloadDBLogFilePortionMessage = (input: DownloadDBLogFilePortionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.LogFileName != null) { - entries["LogFileName"] = input.LogFileName; + if (input[_LFN] != null) { + entries[_LFN] = input[_LFN]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } - if (input.NumberOfLines != null) { - entries["NumberOfLines"] = input.NumberOfLines; + if (input[_NOL] != null) { + entries[_NOL] = input[_NOL]; } return entries; }; @@ -17519,11 +17519,11 @@ const se_EventCategoriesList = (input: string[], context: __SerdeContext): any = */ const se_FailoverDBClusterMessage = (input: FailoverDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.TargetDBInstanceIdentifier != null) { - entries["TargetDBInstanceIdentifier"] = input.TargetDBInstanceIdentifier; + if (input[_TDBII] != null) { + entries[_TDBII] = input[_TDBII]; } return entries; }; @@ -17533,17 +17533,17 @@ const se_FailoverDBClusterMessage = (input: FailoverDBClusterMessage, context: _ */ const se_FailoverGlobalClusterMessage = (input: FailoverGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.TargetDbClusterIdentifier != null) { - entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier; + if (input[_TDCI] != null) { + entries[_TDCI] = input[_TDCI]; } - if (input.AllowDataLoss != null) { - entries["AllowDataLoss"] = input.AllowDataLoss; + if (input[_ADL] != null) { + entries[_ADL] = input[_ADL]; } - if (input.Switchover != null) { - entries["Switchover"] = input.Switchover; + if (input[_Sw] != null) { + entries[_Sw] = input[_Sw]; } return entries; }; @@ -17553,12 +17553,12 @@ const se_FailoverGlobalClusterMessage = (input: FailoverGlobalClusterMessage, co */ const se_Filter = (input: Filter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - const memberEntries = se_FilterValueList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_FilterValueList(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17625,12 +17625,12 @@ const se_KeyList = (input: string[], context: __SerdeContext): any => { */ const se_ListTagsForResourceMessage = (input: ListTagsForResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Filters != null) { - const memberEntries = se_FilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_FilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17662,11 +17662,11 @@ const se_LogTypeList = (input: string[], context: __SerdeContext): any => { */ const se_ModifyActivityStreamRequest = (input: ModifyActivityStreamRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RAe] != null) { + entries[_RAe] = input[_RAe]; } - if (input.AuditPolicyState != null) { - entries["AuditPolicyState"] = input.AuditPolicyState; + if (input[_APS] != null) { + entries[_APS] = input[_APS]; } return entries; }; @@ -17676,11 +17676,11 @@ const se_ModifyActivityStreamRequest = (input: ModifyActivityStreamRequest, cont */ const se_ModifyCertificatesMessage = (input: ModifyCertificatesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.CertificateIdentifier != null) { - entries["CertificateIdentifier"] = input.CertificateIdentifier; + if (input[_CIe] != null) { + entries[_CIe] = input[_CIe]; } - if (input.RemoveCustomerOverride != null) { - entries["RemoveCustomerOverride"] = input.RemoveCustomerOverride; + if (input[_RCO] != null) { + entries[_RCO] = input[_RCO]; } return entries; }; @@ -17693,17 +17693,17 @@ const se_ModifyCurrentDBClusterCapacityMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.Capacity != null) { - entries["Capacity"] = input.Capacity; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.SecondsBeforeTimeout != null) { - entries["SecondsBeforeTimeout"] = input.SecondsBeforeTimeout; + if (input[_SBT] != null) { + entries[_SBT] = input[_SBT]; } - if (input.TimeoutAction != null) { - entries["TimeoutAction"] = input.TimeoutAction; + if (input[_TAi] != null) { + entries[_TAi] = input[_TAi]; } return entries; }; @@ -17716,17 +17716,17 @@ const se_ModifyCustomDBEngineVersionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } return entries; }; @@ -17736,15 +17736,15 @@ const se_ModifyCustomDBEngineVersionMessage = ( */ const se_ModifyDBClusterEndpointMessage = (input: ModifyDBClusterEndpointMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterEndpointIdentifier != null) { - entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier; + if (input[_DBCEI] != null) { + entries[_DBCEI] = input[_DBCEI]; } - if (input.EndpointType != null) { - entries["EndpointType"] = input.EndpointType; + if (input[_ET] != null) { + entries[_ET] = input[_ET]; } - if (input.StaticMembers != null) { - const memberEntries = se_StringList(input.StaticMembers, context); - if (input.StaticMembers?.length === 0) { + if (input[_SM] != null) { + const memberEntries = se_StringList(input[_SM], context); + if (input[_SM]?.length === 0) { entries.StaticMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17752,9 +17752,9 @@ const se_ModifyDBClusterEndpointMessage = (input: ModifyDBClusterEndpointMessage entries[loc] = value; }); } - if (input.ExcludedMembers != null) { - const memberEntries = se_StringList(input.ExcludedMembers, context); - if (input.ExcludedMembers?.length === 0) { + if (input[_EM] != null) { + const memberEntries = se_StringList(input[_EM], context); + if (input[_EM]?.length === 0) { entries.ExcludedMembers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17770,24 +17770,24 @@ const se_ModifyDBClusterEndpointMessage = (input: ModifyDBClusterEndpointMessage */ const se_ModifyDBClusterMessage = (input: ModifyDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.NewDBClusterIdentifier != null) { - entries["NewDBClusterIdentifier"] = input.NewDBClusterIdentifier; + if (input[_NDBCI] != null) { + entries[_NDBCI] = input[_NDBCI]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17795,128 +17795,128 @@ const se_ModifyDBClusterMessage = (input: ModifyDBClusterMessage, context: __Ser entries[loc] = value; }); } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.BacktrackWindow != null) { - entries["BacktrackWindow"] = input.BacktrackWindow; + if (input[_BW] != null) { + entries[_BW] = input[_BW]; } - if (input.CloudwatchLogsExportConfiguration != null) { - const memberEntries = se_CloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context); + if (input[_CLEC] != null) { + const memberEntries = se_CloudwatchLogsExportConfiguration(input[_CLEC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudwatchLogsExportConfiguration.${key}`; entries[loc] = value; }); } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AllowMajorVersionUpgrade != null) { - entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade; + if (input[_AMVUl] != null) { + entries[_AMVUl] = input[_AMVUl]; } - if (input.DBInstanceParameterGroupName != null) { - entries["DBInstanceParameterGroupName"] = input.DBInstanceParameterGroupName; + if (input[_DBIPGN] != null) { + entries[_DBIPGN] = input[_DBIPGN]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.ScalingConfiguration != null) { - const memberEntries = se_ScalingConfiguration(input.ScalingConfiguration, context); + if (input[_SC] != null) { + const memberEntries = se_ScalingConfiguration(input[_SC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.EnableHttpEndpoint != null) { - entries["EnableHttpEndpoint"] = input.EnableHttpEndpoint; + if (input[_EHE] != null) { + entries[_EHE] = input[_EHE]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.EnableGlobalWriteForwarding != null) { - entries["EnableGlobalWriteForwarding"] = input.EnableGlobalWriteForwarding; + if (input[_EGWF] != null) { + entries[_EGWF] = input[_EGWF]; } - if (input.DBClusterInstanceClass != null) { - entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass; + if (input[_DBCIC] != null) { + entries[_DBCIC] = input[_DBCIC]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.PerformanceInsightsRetentionPeriod != null) { - entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod; + if (input[_PIRP] != null) { + entries[_PIRP] = input[_PIRP]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.ManageMasterUserPassword != null) { - entries["ManageMasterUserPassword"] = input.ManageMasterUserPassword; + if (input[_MMUP] != null) { + entries[_MMUP] = input[_MMUP]; } - if (input.RotateMasterUserPassword != null) { - entries["RotateMasterUserPassword"] = input.RotateMasterUserPassword; + if (input[_RMUP] != null) { + entries[_RMUP] = input[_RMUP]; } - if (input.MasterUserSecretKmsKeyId != null) { - entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId; + if (input[_MUSKKI] != null) { + entries[_MUSKKI] = input[_MUSKKI]; } - if (input.EngineMode != null) { - entries["EngineMode"] = input.EngineMode; + if (input[_EMn] != null) { + entries[_EMn] = input[_EMn]; } - if (input.AllowEngineModeChange != null) { - entries["AllowEngineModeChange"] = input.AllowEngineModeChange; + if (input[_AEMC] != null) { + entries[_AEMC] = input[_AEMC]; } - if (input.EnableLocalWriteForwarding != null) { - entries["EnableLocalWriteForwarding"] = input.EnableLocalWriteForwarding; + if (input[_ELWF] != null) { + entries[_ELWF] = input[_ELWF]; } - if (input.AwsBackupRecoveryPointArn != null) { - entries["AwsBackupRecoveryPointArn"] = input.AwsBackupRecoveryPointArn; + if (input[_ABRPA] != null) { + entries[_ABRPA] = input[_ABRPA]; } return entries; }; @@ -17929,12 +17929,12 @@ const se_ModifyDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17953,15 +17953,15 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.AttributeName != null) { - entries["AttributeName"] = input.AttributeName; + if (input[_AN] != null) { + entries[_AN] = input[_AN]; } - if (input.ValuesToAdd != null) { - const memberEntries = se_AttributeValueList(input.ValuesToAdd, context); - if (input.ValuesToAdd?.length === 0) { + if (input[_VTA] != null) { + const memberEntries = se_AttributeValueList(input[_VTA], context); + if (input[_VTA]?.length === 0) { entries.ValuesToAdd = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17969,9 +17969,9 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( entries[loc] = value; }); } - if (input.ValuesToRemove != null) { - const memberEntries = se_AttributeValueList(input.ValuesToRemove, context); - if (input.ValuesToRemove?.length === 0) { + if (input[_VTR] != null) { + const memberEntries = se_AttributeValueList(input[_VTR], context); + if (input[_VTR]?.length === 0) { entries.ValuesToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -17987,21 +17987,21 @@ const se_ModifyDBClusterSnapshotAttributeMessage = ( */ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.DBSecurityGroups != null) { - const memberEntries = se_DBSecurityGroupNameList(input.DBSecurityGroups, context); - if (input.DBSecurityGroups?.length === 0) { + if (input[_DBSG] != null) { + const memberEntries = se_DBSecurityGroupNameList(input[_DBSG], context); + if (input[_DBSG]?.length === 0) { entries.DBSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18009,9 +18009,9 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18019,75 +18019,75 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AllowMajorVersionUpgrade != null) { - entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade; + if (input[_AMVUl] != null) { + entries[_AMVUl] = input[_AMVUl]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.NewDBInstanceIdentifier != null) { - entries["NewDBInstanceIdentifier"] = input.NewDBInstanceIdentifier; + if (input[_NDBII] != null) { + entries[_NDBII] = input[_NDBII]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.TdeCredentialArn != null) { - entries["TdeCredentialArn"] = input.TdeCredentialArn; + if (input[_TCA] != null) { + entries[_TCA] = input[_TCA]; } - if (input.TdeCredentialPassword != null) { - entries["TdeCredentialPassword"] = input.TdeCredentialPassword; + if (input[_TCP] != null) { + entries[_TCP] = input[_TCP]; } - if (input.CACertificateIdentifier != null) { - entries["CACertificateIdentifier"] = input.CACertificateIdentifier; + if (input[_CACI] != null) { + entries[_CACI] = input[_CACI]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainFqdn != null) { - entries["DomainFqdn"] = input.DomainFqdn; + if (input[_DF] != null) { + entries[_DF] = input[_DF]; } - if (input.DomainOu != null) { - entries["DomainOu"] = input.DomainOu; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } - if (input.DomainAuthSecretArn != null) { - entries["DomainAuthSecretArn"] = input.DomainAuthSecretArn; + if (input[_DASA] != null) { + entries[_DASA] = input[_DASA]; } - if (input.DomainDnsIps != null) { - const memberEntries = se_StringList(input.DomainDnsIps, context); - if (input.DomainDnsIps?.length === 0) { + if (input[_DDI] != null) { + const memberEntries = se_StringList(input[_DDI], context); + if (input[_DDI]?.length === 0) { entries.DomainDnsIps = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18095,52 +18095,52 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.DBPortNumber != null) { - entries["DBPortNumber"] = input.DBPortNumber; + if (input[_DBPNo] != null) { + entries[_DBPNo] = input[_DBPNo]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.DisableDomain != null) { - entries["DisableDomain"] = input.DisableDomain; + if (input[_DD] != null) { + entries[_DD] = input[_DD]; } - if (input.PromotionTier != null) { - entries["PromotionTier"] = input.PromotionTier; + if (input[_PT] != null) { + entries[_PT] = input[_PT]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.PerformanceInsightsRetentionPeriod != null) { - entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod; + if (input[_PIRP] != null) { + entries[_PIRP] = input[_PIRP]; } - if (input.CloudwatchLogsExportConfiguration != null) { - const memberEntries = se_CloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context); + if (input[_CLEC] != null) { + const memberEntries = se_CloudwatchLogsExportConfiguration(input[_CLEC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudwatchLogsExportConfiguration.${key}`; entries[loc] = value; }); } - if (input.ProcessorFeatures != null) { - const memberEntries = se_ProcessorFeatureList(input.ProcessorFeatures, context); - if (input.ProcessorFeatures?.length === 0) { + if (input[_PF] != null) { + const memberEntries = se_ProcessorFeatureList(input[_PF], context); + if (input[_PF]?.length === 0) { entries.ProcessorFeatures = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18148,56 +18148,56 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S entries[loc] = value; }); } - if (input.UseDefaultProcessorFeatures != null) { - entries["UseDefaultProcessorFeatures"] = input.UseDefaultProcessorFeatures; + if (input[_UDPF] != null) { + entries[_UDPF] = input[_UDPF]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.MaxAllocatedStorage != null) { - entries["MaxAllocatedStorage"] = input.MaxAllocatedStorage; + if (input[_MASa] != null) { + entries[_MASa] = input[_MASa]; } - if (input.CertificateRotationRestart != null) { - entries["CertificateRotationRestart"] = input.CertificateRotationRestart; + if (input[_CRR] != null) { + entries[_CRR] = input[_CRR]; } - if (input.ReplicaMode != null) { - entries["ReplicaMode"] = input.ReplicaMode; + if (input[_RM] != null) { + entries[_RM] = input[_RM]; } - if (input.EnableCustomerOwnedIp != null) { - entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp; + if (input[_ECOI] != null) { + entries[_ECOI] = input[_ECOI]; } - if (input.AwsBackupRecoveryPointArn != null) { - entries["AwsBackupRecoveryPointArn"] = input.AwsBackupRecoveryPointArn; + if (input[_ABRPA] != null) { + entries[_ABRPA] = input[_ABRPA]; } - if (input.AutomationMode != null) { - entries["AutomationMode"] = input.AutomationMode; + if (input[_AM] != null) { + entries[_AM] = input[_AM]; } - if (input.ResumeFullAutomationModeMinutes != null) { - entries["ResumeFullAutomationModeMinutes"] = input.ResumeFullAutomationModeMinutes; + if (input[_RFAMM] != null) { + entries[_RFAMM] = input[_RFAMM]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.StorageThroughput != null) { - entries["StorageThroughput"] = input.StorageThroughput; + if (input[_STt] != null) { + entries[_STt] = input[_STt]; } - if (input.ManageMasterUserPassword != null) { - entries["ManageMasterUserPassword"] = input.ManageMasterUserPassword; + if (input[_MMUP] != null) { + entries[_MMUP] = input[_MMUP]; } - if (input.RotateMasterUserPassword != null) { - entries["RotateMasterUserPassword"] = input.RotateMasterUserPassword; + if (input[_RMUP] != null) { + entries[_RMUP] = input[_RMUP]; } - if (input.MasterUserSecretKmsKeyId != null) { - entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId; + if (input[_MUSKKI] != null) { + entries[_MUSKKI] = input[_MUSKKI]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.DedicatedLogVolume != null) { - entries["DedicatedLogVolume"] = input.DedicatedLogVolume; + if (input[_DLV] != null) { + entries[_DLV] = input[_DLV]; } - if (input.MultiTenant != null) { - entries["MultiTenant"] = input.MultiTenant; + if (input[_MT] != null) { + entries[_MT] = input[_MT]; } return entries; }; @@ -18207,12 +18207,12 @@ const se_ModifyDBInstanceMessage = (input: ModifyDBInstanceMessage, context: __S */ const se_ModifyDBParameterGroupMessage = (input: ModifyDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18228,15 +18228,15 @@ const se_ModifyDBParameterGroupMessage = (input: ModifyDBParameterGroupMessage, */ const se_ModifyDBProxyEndpointRequest = (input: ModifyDBProxyEndpointRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyEndpointName != null) { - entries["DBProxyEndpointName"] = input.DBProxyEndpointName; + if (input[_DBPEN] != null) { + entries[_DBPEN] = input[_DBPEN]; } - if (input.NewDBProxyEndpointName != null) { - entries["NewDBProxyEndpointName"] = input.NewDBProxyEndpointName; + if (input[_NDBPEN] != null) { + entries[_NDBPEN] = input[_NDBPEN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_StringList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_StringList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18252,15 +18252,15 @@ const se_ModifyDBProxyEndpointRequest = (input: ModifyDBProxyEndpointRequest, co */ const se_ModifyDBProxyRequest = (input: ModifyDBProxyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.NewDBProxyName != null) { - entries["NewDBProxyName"] = input.NewDBProxyName; + if (input[_NDBPN] != null) { + entries[_NDBPN] = input[_NDBPN]; } - if (input.Auth != null) { - const memberEntries = se_UserAuthConfigList(input.Auth, context); - if (input.Auth?.length === 0) { + if (input[_Au] != null) { + const memberEntries = se_UserAuthConfigList(input[_Au], context); + if (input[_Au]?.length === 0) { entries.Auth = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18268,21 +18268,21 @@ const se_ModifyDBProxyRequest = (input: ModifyDBProxyRequest, context: __SerdeCo entries[loc] = value; }); } - if (input.RequireTLS != null) { - entries["RequireTLS"] = input.RequireTLS; + if (input[_RTLS] != null) { + entries[_RTLS] = input[_RTLS]; } - if (input.IdleClientTimeout != null) { - entries["IdleClientTimeout"] = input.IdleClientTimeout; + if (input[_ICT] != null) { + entries[_ICT] = input[_ICT]; } - if (input.DebugLogging != null) { - entries["DebugLogging"] = input.DebugLogging; + if (input[_DL] != null) { + entries[_DL] = input[_DL]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.SecurityGroups != null) { - const memberEntries = se_StringList(input.SecurityGroups, context); - if (input.SecurityGroups?.length === 0) { + if (input[_SG] != null) { + const memberEntries = se_StringList(input[_SG], context); + if (input[_SG]?.length === 0) { entries.SecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18298,21 +18298,21 @@ const se_ModifyDBProxyRequest = (input: ModifyDBProxyRequest, context: __SerdeCo */ const se_ModifyDBProxyTargetGroupRequest = (input: ModifyDBProxyTargetGroupRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TargetGroupName != null) { - entries["TargetGroupName"] = input.TargetGroupName; + if (input[_TGN] != null) { + entries[_TGN] = input[_TGN]; } - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.ConnectionPoolConfig != null) { - const memberEntries = se_ConnectionPoolConfiguration(input.ConnectionPoolConfig, context); + if (input[_CPC] != null) { + const memberEntries = se_ConnectionPoolConfiguration(input[_CPC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConnectionPoolConfig.${key}`; entries[loc] = value; }); } - if (input.NewName != null) { - entries["NewName"] = input.NewName; + if (input[_NN] != null) { + entries[_NN] = input[_NN]; } return entries; }; @@ -18322,15 +18322,15 @@ const se_ModifyDBProxyTargetGroupRequest = (input: ModifyDBProxyTargetGroupReque */ const se_ModifyDBSnapshotAttributeMessage = (input: ModifyDBSnapshotAttributeMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } - if (input.AttributeName != null) { - entries["AttributeName"] = input.AttributeName; + if (input[_AN] != null) { + entries[_AN] = input[_AN]; } - if (input.ValuesToAdd != null) { - const memberEntries = se_AttributeValueList(input.ValuesToAdd, context); - if (input.ValuesToAdd?.length === 0) { + if (input[_VTA] != null) { + const memberEntries = se_AttributeValueList(input[_VTA], context); + if (input[_VTA]?.length === 0) { entries.ValuesToAdd = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18338,9 +18338,9 @@ const se_ModifyDBSnapshotAttributeMessage = (input: ModifyDBSnapshotAttributeMes entries[loc] = value; }); } - if (input.ValuesToRemove != null) { - const memberEntries = se_AttributeValueList(input.ValuesToRemove, context); - if (input.ValuesToRemove?.length === 0) { + if (input[_VTR] != null) { + const memberEntries = se_AttributeValueList(input[_VTR], context); + if (input[_VTR]?.length === 0) { entries.ValuesToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18356,14 +18356,14 @@ const se_ModifyDBSnapshotAttributeMessage = (input: ModifyDBSnapshotAttributeMes */ const se_ModifyDBSnapshotMessage = (input: ModifyDBSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } return entries; }; @@ -18373,15 +18373,15 @@ const se_ModifyDBSnapshotMessage = (input: ModifyDBSnapshotMessage, context: __S */ const se_ModifyDBSubnetGroupMessage = (input: ModifyDBSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.DBSubnetGroupDescription != null) { - entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription; + if (input[_DBSGDu] != null) { + entries[_DBSGDu] = input[_DBSGDu]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18397,18 +18397,18 @@ const se_ModifyDBSubnetGroupMessage = (input: ModifyDBSubnetGroupMessage, contex */ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_STo] != null) { + entries[_STo] = input[_STo]; } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18416,8 +18416,8 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage entries[loc] = value; }); } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -18427,20 +18427,20 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage */ const se_ModifyGlobalClusterMessage = (input: ModifyGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.NewGlobalClusterIdentifier != null) { - entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier; + if (input[_NGCI] != null) { + entries[_NGCI] = input[_NGCI]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AllowMajorVersionUpgrade != null) { - entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade; + if (input[_AMVUl] != null) { + entries[_AMVUl] = input[_AMVUl]; } return entries; }; @@ -18450,12 +18450,12 @@ const se_ModifyGlobalClusterMessage = (input: ModifyGlobalClusterMessage, contex */ const se_ModifyOptionGroupMessage = (input: ModifyOptionGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.OptionsToInclude != null) { - const memberEntries = se_OptionConfigurationList(input.OptionsToInclude, context); - if (input.OptionsToInclude?.length === 0) { + if (input[_OTI] != null) { + const memberEntries = se_OptionConfigurationList(input[_OTI], context); + if (input[_OTI]?.length === 0) { entries.OptionsToInclude = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18463,9 +18463,9 @@ const se_ModifyOptionGroupMessage = (input: ModifyOptionGroupMessage, context: _ entries[loc] = value; }); } - if (input.OptionsToRemove != null) { - const memberEntries = se_OptionNamesList(input.OptionsToRemove, context); - if (input.OptionsToRemove?.length === 0) { + if (input[_OTR] != null) { + const memberEntries = se_OptionNamesList(input[_OTR], context); + if (input[_OTR]?.length === 0) { entries.OptionsToRemove = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18473,8 +18473,8 @@ const se_ModifyOptionGroupMessage = (input: ModifyOptionGroupMessage, context: _ entries[loc] = value; }); } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -18484,17 +18484,17 @@ const se_ModifyOptionGroupMessage = (input: ModifyOptionGroupMessage, context: _ */ const se_ModifyTenantDatabaseMessage = (input: ModifyTenantDatabaseMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.TenantDBName != null) { - entries["TenantDBName"] = input.TenantDBName; + if (input[_TDBN] != null) { + entries[_TDBN] = input[_TDBN]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.NewTenantDBName != null) { - entries["NewTenantDBName"] = input.NewTenantDBName; + if (input[_NTDBN] != null) { + entries[_NTDBN] = input[_NTDBN]; } return entries; }; @@ -18504,18 +18504,18 @@ const se_ModifyTenantDatabaseMessage = (input: ModifyTenantDatabaseMessage, cont */ const se_OptionConfiguration = (input: OptionConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.OptionName != null) { - entries["OptionName"] = input.OptionName; + if (input[_ON] != null) { + entries[_ON] = input[_ON]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.OptionVersion != null) { - entries["OptionVersion"] = input.OptionVersion; + if (input[_OV] != null) { + entries[_OV] = input[_OV]; } - if (input.DBSecurityGroupMemberships != null) { - const memberEntries = se_DBSecurityGroupNameList(input.DBSecurityGroupMemberships, context); - if (input.DBSecurityGroupMemberships?.length === 0) { + if (input[_DBSGM] != null) { + const memberEntries = se_DBSecurityGroupNameList(input[_DBSGM], context); + if (input[_DBSGM]?.length === 0) { entries.DBSecurityGroupMemberships = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18523,9 +18523,9 @@ const se_OptionConfiguration = (input: OptionConfiguration, context: __SerdeCont entries[loc] = value; }); } - if (input.VpcSecurityGroupMemberships != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupMemberships, context); - if (input.VpcSecurityGroupMemberships?.length === 0) { + if (input[_VSGM] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGM], context); + if (input[_VSGM]?.length === 0) { entries.VpcSecurityGroupMemberships = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18533,9 +18533,9 @@ const se_OptionConfiguration = (input: OptionConfiguration, context: __SerdeCont entries[loc] = value; }); } - if (input.OptionSettings != null) { - const memberEntries = se_OptionSettingsList(input.OptionSettings, context); - if (input.OptionSettings?.length === 0) { + if (input[_OS] != null) { + const memberEntries = se_OptionSettingsList(input[_OS], context); + if (input[_OS]?.length === 0) { entries.OptionSettings = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18586,32 +18586,32 @@ const se_OptionNamesList = (input: string[], context: __SerdeContext): any => { */ const se_OptionSetting = (input: OptionSetting, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } - if (input.DefaultValue != null) { - entries["DefaultValue"] = input.DefaultValue; + if (input[_DV] != null) { + entries[_DV] = input[_DV]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.ApplyType != null) { - entries["ApplyType"] = input.ApplyType; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.DataType != null) { - entries["DataType"] = input.DataType; + if (input[_DTa] != null) { + entries[_DTa] = input[_DTa]; } - if (input.AllowedValues != null) { - entries["AllowedValues"] = input.AllowedValues; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } - if (input.IsModifiable != null) { - entries["IsModifiable"] = input.IsModifiable; + if (input[_IM] != null) { + entries[_IM] = input[_IM]; } - if (input.IsCollection != null) { - entries["IsCollection"] = input.IsCollection; + if (input[_IC] != null) { + entries[_IC] = input[_IC]; } return entries; }; @@ -18640,39 +18640,39 @@ const se_OptionSettingsList = (input: OptionSetting[], context: __SerdeContext): */ const se_Parameter = (input: Parameter, context: __SerdeContext): any => { const entries: any = {}; - if (input.ParameterName != null) { - entries["ParameterName"] = input.ParameterName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.ParameterValue != null) { - entries["ParameterValue"] = input.ParameterValue; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.ApplyType != null) { - entries["ApplyType"] = input.ApplyType; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.DataType != null) { - entries["DataType"] = input.DataType; + if (input[_DTa] != null) { + entries[_DTa] = input[_DTa]; } - if (input.AllowedValues != null) { - entries["AllowedValues"] = input.AllowedValues; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } - if (input.IsModifiable != null) { - entries["IsModifiable"] = input.IsModifiable; + if (input[_IM] != null) { + entries[_IM] = input[_IM]; } - if (input.MinimumEngineVersion != null) { - entries["MinimumEngineVersion"] = input.MinimumEngineVersion; + if (input[_MEVi] != null) { + entries[_MEVi] = input[_MEVi]; } - if (input.ApplyMethod != null) { - entries["ApplyMethod"] = input.ApplyMethod; + if (input[_AMp] != null) { + entries[_AMp] = input[_AMp]; } - if (input.SupportedEngineModes != null) { - const memberEntries = se_EngineModeList(input.SupportedEngineModes, context); - if (input.SupportedEngineModes?.length === 0) { + if (input[_SEM] != null) { + const memberEntries = se_EngineModeList(input[_SEM], context); + if (input[_SEM]?.length === 0) { entries.SupportedEngineModes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18707,11 +18707,11 @@ const se_ParametersList = (input: Parameter[], context: __SerdeContext): any => */ const se_ProcessorFeature = (input: ProcessorFeature, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -18743,8 +18743,8 @@ const se_PromoteReadReplicaDBClusterMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -18754,14 +18754,14 @@ const se_PromoteReadReplicaDBClusterMessage = ( */ const se_PromoteReadReplicaMessage = (input: PromoteReadReplicaMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } return entries; }; @@ -18774,18 +18774,18 @@ const se_PurchaseReservedDBInstancesOfferingMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedDBInstancesOfferingId != null) { - entries["ReservedDBInstancesOfferingId"] = input.ReservedDBInstancesOfferingId; + if (input[_RDBIOI] != null) { + entries[_RDBIOI] = input[_RDBIOI]; } - if (input.ReservedDBInstanceId != null) { - entries["ReservedDBInstanceId"] = input.ReservedDBInstanceId; + if (input[_RDBII] != null) { + entries[_RDBII] = input[_RDBII]; } - if (input.DBInstanceCount != null) { - entries["DBInstanceCount"] = input.DBInstanceCount; + if (input[_DBICn] != null) { + entries[_DBICn] = input[_DBICn]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18801,14 +18801,14 @@ const se_PurchaseReservedDBInstancesOfferingMessage = ( */ const se_RdsCustomClusterConfiguration = (input: RdsCustomClusterConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.InterconnectSubnetId != null) { - entries["InterconnectSubnetId"] = input.InterconnectSubnetId; + if (input[_ISI] != null) { + entries[_ISI] = input[_ISI]; } - if (input.TransitGatewayMulticastDomainId != null) { - entries["TransitGatewayMulticastDomainId"] = input.TransitGatewayMulticastDomainId; + if (input[_TGMDI] != null) { + entries[_TGMDI] = input[_TGMDI]; } - if (input.ReplicaMode != null) { - entries["ReplicaMode"] = input.ReplicaMode; + if (input[_RM] != null) { + entries[_RM] = input[_RM]; } return entries; }; @@ -18818,8 +18818,8 @@ const se_RdsCustomClusterConfiguration = (input: RdsCustomClusterConfiguration, */ const se_RebootDBClusterMessage = (input: RebootDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -18829,11 +18829,11 @@ const se_RebootDBClusterMessage = (input: RebootDBClusterMessage, context: __Ser */ const se_RebootDBInstanceMessage = (input: RebootDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.ForceFailover != null) { - entries["ForceFailover"] = input.ForceFailover; + if (input[_FF] != null) { + entries[_FF] = input[_FF]; } return entries; }; @@ -18843,15 +18843,15 @@ const se_RebootDBInstanceMessage = (input: RebootDBInstanceMessage, context: __S */ const se_RegisterDBProxyTargetsRequest = (input: RegisterDBProxyTargetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBProxyName != null) { - entries["DBProxyName"] = input.DBProxyName; + if (input[_DBPN] != null) { + entries[_DBPN] = input[_DBPN]; } - if (input.TargetGroupName != null) { - entries["TargetGroupName"] = input.TargetGroupName; + if (input[_TGN] != null) { + entries[_TGN] = input[_TGN]; } - if (input.DBInstanceIdentifiers != null) { - const memberEntries = se_StringList(input.DBInstanceIdentifiers, context); - if (input.DBInstanceIdentifiers?.length === 0) { + if (input[_DBIIn] != null) { + const memberEntries = se_StringList(input[_DBIIn], context); + if (input[_DBIIn]?.length === 0) { entries.DBInstanceIdentifiers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18859,9 +18859,9 @@ const se_RegisterDBProxyTargetsRequest = (input: RegisterDBProxyTargetsRequest, entries[loc] = value; }); } - if (input.DBClusterIdentifiers != null) { - const memberEntries = se_StringList(input.DBClusterIdentifiers, context); - if (input.DBClusterIdentifiers?.length === 0) { + if (input[_DBCIl] != null) { + const memberEntries = se_StringList(input[_DBCIl], context); + if (input[_DBCIl]?.length === 0) { entries.DBClusterIdentifiers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18877,11 +18877,11 @@ const se_RegisterDBProxyTargetsRequest = (input: RegisterDBProxyTargetsRequest, */ const se_RemoveFromGlobalClusterMessage = (input: RemoveFromGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.DbClusterIdentifier != null) { - entries["DbClusterIdentifier"] = input.DbClusterIdentifier; + if (input[_DCI] != null) { + entries[_DCI] = input[_DCI]; } return entries; }; @@ -18891,14 +18891,14 @@ const se_RemoveFromGlobalClusterMessage = (input: RemoveFromGlobalClusterMessage */ const se_RemoveRoleFromDBClusterMessage = (input: RemoveRoleFromDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.FeatureName != null) { - entries["FeatureName"] = input.FeatureName; + if (input[_FN] != null) { + entries[_FN] = input[_FN]; } return entries; }; @@ -18908,14 +18908,14 @@ const se_RemoveRoleFromDBClusterMessage = (input: RemoveRoleFromDBClusterMessage */ const se_RemoveRoleFromDBInstanceMessage = (input: RemoveRoleFromDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.FeatureName != null) { - entries["FeatureName"] = input.FeatureName; + if (input[_FN] != null) { + entries[_FN] = input[_FN]; } return entries; }; @@ -18928,11 +18928,11 @@ const se_RemoveSourceIdentifierFromSubscriptionMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } return entries; }; @@ -18942,12 +18942,12 @@ const se_RemoveSourceIdentifierFromSubscriptionMessage = ( */ const se_RemoveTagsFromResourceMessage = (input: RemoveTagsFromResourceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.TagKeys != null) { - const memberEntries = se_KeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_KeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18966,15 +18966,15 @@ const se_ResetDBClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.ResetAllParameters != null) { - entries["ResetAllParameters"] = input.ResetAllParameters; + if (input[_RAP] != null) { + entries[_RAP] = input[_RAP]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -18990,15 +18990,15 @@ const se_ResetDBClusterParameterGroupMessage = ( */ const se_ResetDBParameterGroupMessage = (input: ResetDBParameterGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.ResetAllParameters != null) { - entries["ResetAllParameters"] = input.ResetAllParameters; + if (input[_RAP] != null) { + entries[_RAP] = input[_RAP]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19014,9 +19014,9 @@ const se_ResetDBParameterGroupMessage = (input: ResetDBParameterGroupMessage, co */ const se_RestoreDBClusterFromS3Message = (input: RestoreDBClusterFromS3Message, context: __SerdeContext): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19024,24 +19024,24 @@ const se_RestoreDBClusterFromS3Message = (input: RestoreDBClusterFromS3Message, entries[loc] = value; }); } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.CharacterSetName != null) { - entries["CharacterSetName"] = input.CharacterSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19049,36 +19049,36 @@ const se_RestoreDBClusterFromS3Message = (input: RestoreDBClusterFromS3Message, entries[loc] = value; }); } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19086,36 +19086,36 @@ const se_RestoreDBClusterFromS3Message = (input: RestoreDBClusterFromS3Message, entries[loc] = value; }); } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.SourceEngine != null) { - entries["SourceEngine"] = input.SourceEngine; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } - if (input.SourceEngineVersion != null) { - entries["SourceEngineVersion"] = input.SourceEngineVersion; + if (input[_SEV] != null) { + entries[_SEV] = input[_SEV]; } - if (input.S3BucketName != null) { - entries["S3BucketName"] = input.S3BucketName; + if (input[_SBN] != null) { + entries[_SBN] = input[_SBN]; } - if (input.S3Prefix != null) { - entries["S3Prefix"] = input.S3Prefix; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } - if (input.S3IngestionRoleArn != null) { - entries["S3IngestionRoleArn"] = input.S3IngestionRoleArn; + if (input[_SIRA] != null) { + entries[_SIRA] = input[_SIRA]; } - if (input.BacktrackWindow != null) { - entries["BacktrackWindow"] = input.BacktrackWindow; + if (input[_BW] != null) { + entries[_BW] = input[_BW]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19123,36 +19123,36 @@ const se_RestoreDBClusterFromS3Message = (input: RestoreDBClusterFromS3Message, entries[loc] = value; }); } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.ManageMasterUserPassword != null) { - entries["ManageMasterUserPassword"] = input.ManageMasterUserPassword; + if (input[_MMUP] != null) { + entries[_MMUP] = input[_MMUP]; } - if (input.MasterUserSecretKmsKeyId != null) { - entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId; + if (input[_MUSKKI] != null) { + entries[_MUSKKI] = input[_MUSKKI]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -19165,9 +19165,9 @@ const se_RestoreDBClusterFromSnapshotMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AvailabilityZones != null) { - const memberEntries = se_AvailabilityZones(input.AvailabilityZones, context); - if (input.AvailabilityZones?.length === 0) { + if (input[_AZ] != null) { + const memberEntries = se_AvailabilityZones(input[_AZ], context); + if (input[_AZ]?.length === 0) { entries.AvailabilityZones = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19175,33 +19175,33 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SIn] != null) { + entries[_SIn] = input[_SIn]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19209,9 +19209,9 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19219,18 +19219,18 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.BacktrackWindow != null) { - entries["BacktrackWindow"] = input.BacktrackWindow; + if (input[_BW] != null) { + entries[_BW] = input[_BW]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19238,55 +19238,55 @@ const se_RestoreDBClusterFromSnapshotMessage = ( entries[loc] = value; }); } - if (input.EngineMode != null) { - entries["EngineMode"] = input.EngineMode; + if (input[_EMn] != null) { + entries[_EMn] = input[_EMn]; } - if (input.ScalingConfiguration != null) { - const memberEntries = se_ScalingConfiguration(input.ScalingConfiguration, context); + if (input[_SC] != null) { + const memberEntries = se_ScalingConfiguration(input[_SC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.DBClusterInstanceClass != null) { - entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass; + if (input[_DBCIC] != null) { + entries[_DBCIC] = input[_DBCIC]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.RdsCustomClusterConfiguration != null) { - const memberEntries = se_RdsCustomClusterConfiguration(input.RdsCustomClusterConfiguration, context); + if (input[_RCCC] != null) { + const memberEntries = se_RdsCustomClusterConfiguration(input[_RCCC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RdsCustomClusterConfiguration.${key}`; entries[loc] = value; @@ -19303,33 +19303,33 @@ const se_RestoreDBClusterToPointInTimeMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } - if (input.RestoreType != null) { - entries["RestoreType"] = input.RestoreType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.SourceDBClusterIdentifier != null) { - entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier; + if (input[_SDBCI] != null) { + entries[_SDBCI] = input[_SDBCI]; } - if (input.RestoreToTime != null) { - entries["RestoreToTime"] = input.RestoreToTime.toISOString().split(".")[0] + "Z"; + if (input[_RTT] != null) { + entries[_RTT] = input[_RTT].toISOString().split(".")[0] + "Z"; } - if (input.UseLatestRestorableTime != null) { - entries["UseLatestRestorableTime"] = input.UseLatestRestorableTime; + if (input[_ULRT] != null) { + entries[_ULRT] = input[_ULRT]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19337,9 +19337,9 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19347,18 +19347,18 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.BacktrackWindow != null) { - entries["BacktrackWindow"] = input.BacktrackWindow; + if (input[_BW] != null) { + entries[_BW] = input[_BW]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19366,58 +19366,58 @@ const se_RestoreDBClusterToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.DBClusterParameterGroupName != null) { - entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName; + if (input[_DBCPGN] != null) { + entries[_DBCPGN] = input[_DBCPGN]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.ScalingConfiguration != null) { - const memberEntries = se_ScalingConfiguration(input.ScalingConfiguration, context); + if (input[_SC] != null) { + const memberEntries = se_ScalingConfiguration(input[_SC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.EngineMode != null) { - entries["EngineMode"] = input.EngineMode; + if (input[_EMn] != null) { + entries[_EMn] = input[_EMn]; } - if (input.DBClusterInstanceClass != null) { - entries["DBClusterInstanceClass"] = input.DBClusterInstanceClass; + if (input[_DBCIC] != null) { + entries[_DBCIC] = input[_DBCIC]; } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.ServerlessV2ScalingConfiguration != null) { - const memberEntries = se_ServerlessV2ScalingConfiguration(input.ServerlessV2ScalingConfiguration, context); + if (input[_SVSC] != null) { + const memberEntries = se_ServerlessV2ScalingConfiguration(input[_SVSC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ServerlessV2ScalingConfiguration.${key}`; entries[loc] = value; }); } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.SourceDbClusterResourceId != null) { - entries["SourceDbClusterResourceId"] = input.SourceDbClusterResourceId; + if (input[_SDCRI] != null) { + entries[_SDCRI] = input[_SDCRI]; } - if (input.RdsCustomClusterConfiguration != null) { - const memberEntries = se_RdsCustomClusterConfiguration(input.RdsCustomClusterConfiguration, context); + if (input[_RCCC] != null) { + const memberEntries = se_RdsCustomClusterConfiguration(input[_RCCC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RdsCustomClusterConfiguration.${key}`; entries[loc] = value; @@ -19434,51 +19434,51 @@ const se_RestoreDBInstanceFromDBSnapshotMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZv] != null) { + entries[_AZv] = input[_AZv]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.DBName != null) { - entries["DBName"] = input.DBName; + if (input[_DBN] != null) { + entries[_DBN] = input[_DBN]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19486,18 +19486,18 @@ const se_RestoreDBInstanceFromDBSnapshotMessage = ( entries[loc] = value; }); } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.TdeCredentialArn != null) { - entries["TdeCredentialArn"] = input.TdeCredentialArn; + if (input[_TCA] != null) { + entries[_TCA] = input[_TCA]; } - if (input.TdeCredentialPassword != null) { - entries["TdeCredentialPassword"] = input.TdeCredentialPassword; + if (input[_TCP] != null) { + entries[_TCP] = input[_TCP]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19505,21 +19505,21 @@ const se_RestoreDBInstanceFromDBSnapshotMessage = ( entries[loc] = value; }); } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainFqdn != null) { - entries["DomainFqdn"] = input.DomainFqdn; + if (input[_DF] != null) { + entries[_DF] = input[_DF]; } - if (input.DomainOu != null) { - entries["DomainOu"] = input.DomainOu; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } - if (input.DomainAuthSecretArn != null) { - entries["DomainAuthSecretArn"] = input.DomainAuthSecretArn; + if (input[_DASA] != null) { + entries[_DASA] = input[_DASA]; } - if (input.DomainDnsIps != null) { - const memberEntries = se_StringList(input.DomainDnsIps, context); - if (input.DomainDnsIps?.length === 0) { + if (input[_DDI] != null) { + const memberEntries = se_StringList(input[_DDI], context); + if (input[_DDI]?.length === 0) { entries.DomainDnsIps = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19527,18 +19527,18 @@ const se_RestoreDBInstanceFromDBSnapshotMessage = ( entries[loc] = value; }); } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19546,9 +19546,9 @@ const se_RestoreDBInstanceFromDBSnapshotMessage = ( entries[loc] = value; }); } - if (input.ProcessorFeatures != null) { - const memberEntries = se_ProcessorFeatureList(input.ProcessorFeatures, context); - if (input.ProcessorFeatures?.length === 0) { + if (input[_PF] != null) { + const memberEntries = se_ProcessorFeatureList(input[_PF], context); + if (input[_PF]?.length === 0) { entries.ProcessorFeatures = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19556,38 +19556,38 @@ const se_RestoreDBInstanceFromDBSnapshotMessage = ( entries[loc] = value; }); } - if (input.UseDefaultProcessorFeatures != null) { - entries["UseDefaultProcessorFeatures"] = input.UseDefaultProcessorFeatures; + if (input[_UDPF] != null) { + entries[_UDPF] = input[_UDPF]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.EnableCustomerOwnedIp != null) { - entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp; + if (input[_ECOI] != null) { + entries[_ECOI] = input[_ECOI]; } - if (input.CustomIamInstanceProfile != null) { - entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile; + if (input[_CIIP] != null) { + entries[_CIIP] = input[_CIIP]; } - if (input.BackupTarget != null) { - entries["BackupTarget"] = input.BackupTarget; + if (input[_BTa] != null) { + entries[_BTa] = input[_BTa]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.StorageThroughput != null) { - entries["StorageThroughput"] = input.StorageThroughput; + if (input[_STt] != null) { + entries[_STt] = input[_STt]; } - if (input.DBClusterSnapshotIdentifier != null) { - entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier; + if (input[_DBCSI] != null) { + entries[_DBCSI] = input[_DBCSI]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.DedicatedLogVolume != null) { - entries["DedicatedLogVolume"] = input.DedicatedLogVolume; + if (input[_DLV] != null) { + entries[_DLV] = input[_DLV]; } return entries; }; @@ -19597,30 +19597,30 @@ const se_RestoreDBInstanceFromDBSnapshotMessage = ( */ const se_RestoreDBInstanceFromS3Message = (input: RestoreDBInstanceFromS3Message, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBName != null) { - entries["DBName"] = input.DBName; + if (input[_DBN] != null) { + entries[_DBN] = input[_DBN]; } - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.DBSecurityGroups != null) { - const memberEntries = se_DBSecurityGroupNameList(input.DBSecurityGroups, context); - if (input.DBSecurityGroups?.length === 0) { + if (input[_DBSG] != null) { + const memberEntries = se_DBSecurityGroupNameList(input[_DBSG], context); + if (input[_DBSG]?.length === 0) { entries.DBSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19628,9 +19628,9 @@ const se_RestoreDBInstanceFromS3Message = (input: RestoreDBInstanceFromS3Message entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19638,51 +19638,51 @@ const se_RestoreDBInstanceFromS3Message = (input: RestoreDBInstanceFromS3Message entries[loc] = value; }); } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZv] != null) { + entries[_AZv] = input[_AZv]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.PreferredBackupWindow != null) { - entries["PreferredBackupWindow"] = input.PreferredBackupWindow; + if (input[_PBW] != null) { + entries[_PBW] = input[_PBW]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.EngineVersion != null) { - entries["EngineVersion"] = input.EngineVersion; + if (input[_EV] != null) { + entries[_EV] = input[_EV]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19690,54 +19690,54 @@ const se_RestoreDBInstanceFromS3Message = (input: RestoreDBInstanceFromS3Message entries[loc] = value; }); } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.StorageEncrypted != null) { - entries["StorageEncrypted"] = input.StorageEncrypted; + if (input[_SE] != null) { + entries[_SE] = input[_SE]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.MonitoringInterval != null) { - entries["MonitoringInterval"] = input.MonitoringInterval; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } - if (input.MonitoringRoleArn != null) { - entries["MonitoringRoleArn"] = input.MonitoringRoleArn; + if (input[_MRA] != null) { + entries[_MRA] = input[_MRA]; } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.SourceEngine != null) { - entries["SourceEngine"] = input.SourceEngine; + if (input[_SEo] != null) { + entries[_SEo] = input[_SEo]; } - if (input.SourceEngineVersion != null) { - entries["SourceEngineVersion"] = input.SourceEngineVersion; + if (input[_SEV] != null) { + entries[_SEV] = input[_SEV]; } - if (input.S3BucketName != null) { - entries["S3BucketName"] = input.S3BucketName; + if (input[_SBN] != null) { + entries[_SBN] = input[_SBN]; } - if (input.S3Prefix != null) { - entries["S3Prefix"] = input.S3Prefix; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } - if (input.S3IngestionRoleArn != null) { - entries["S3IngestionRoleArn"] = input.S3IngestionRoleArn; + if (input[_SIRA] != null) { + entries[_SIRA] = input[_SIRA]; } - if (input.EnablePerformanceInsights != null) { - entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights; + if (input[_EPI] != null) { + entries[_EPI] = input[_EPI]; } - if (input.PerformanceInsightsKMSKeyId != null) { - entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId; + if (input[_PIKMSKI] != null) { + entries[_PIKMSKI] = input[_PIKMSKI]; } - if (input.PerformanceInsightsRetentionPeriod != null) { - entries["PerformanceInsightsRetentionPeriod"] = input.PerformanceInsightsRetentionPeriod; + if (input[_PIRP] != null) { + entries[_PIRP] = input[_PIRP]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19745,9 +19745,9 @@ const se_RestoreDBInstanceFromS3Message = (input: RestoreDBInstanceFromS3Message entries[loc] = value; }); } - if (input.ProcessorFeatures != null) { - const memberEntries = se_ProcessorFeatureList(input.ProcessorFeatures, context); - if (input.ProcessorFeatures?.length === 0) { + if (input[_PF] != null) { + const memberEntries = se_ProcessorFeatureList(input[_PF], context); + if (input[_PF]?.length === 0) { entries.ProcessorFeatures = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19755,29 +19755,29 @@ const se_RestoreDBInstanceFromS3Message = (input: RestoreDBInstanceFromS3Message entries[loc] = value; }); } - if (input.UseDefaultProcessorFeatures != null) { - entries["UseDefaultProcessorFeatures"] = input.UseDefaultProcessorFeatures; + if (input[_UDPF] != null) { + entries[_UDPF] = input[_UDPF]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.MaxAllocatedStorage != null) { - entries["MaxAllocatedStorage"] = input.MaxAllocatedStorage; + if (input[_MASa] != null) { + entries[_MASa] = input[_MASa]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.StorageThroughput != null) { - entries["StorageThroughput"] = input.StorageThroughput; + if (input[_STt] != null) { + entries[_STt] = input[_STt]; } - if (input.ManageMasterUserPassword != null) { - entries["ManageMasterUserPassword"] = input.ManageMasterUserPassword; + if (input[_MMUP] != null) { + entries[_MMUP] = input[_MMUP]; } - if (input.MasterUserSecretKmsKeyId != null) { - entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId; + if (input[_MUSKKI] != null) { + entries[_MUSKKI] = input[_MUSKKI]; } - if (input.DedicatedLogVolume != null) { - entries["DedicatedLogVolume"] = input.DedicatedLogVolume; + if (input[_DLV] != null) { + entries[_DLV] = input[_DLV]; } return entries; }; @@ -19790,60 +19790,60 @@ const se_RestoreDBInstanceToPointInTimeMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SourceDBInstanceIdentifier != null) { - entries["SourceDBInstanceIdentifier"] = input.SourceDBInstanceIdentifier; + if (input[_SDBII] != null) { + entries[_SDBII] = input[_SDBII]; } - if (input.TargetDBInstanceIdentifier != null) { - entries["TargetDBInstanceIdentifier"] = input.TargetDBInstanceIdentifier; + if (input[_TDBII] != null) { + entries[_TDBII] = input[_TDBII]; } - if (input.RestoreTime != null) { - entries["RestoreTime"] = input.RestoreTime.toISOString().split(".")[0] + "Z"; + if (input[_RTe] != null) { + entries[_RTe] = input[_RTe].toISOString().split(".")[0] + "Z"; } - if (input.UseLatestRestorableTime != null) { - entries["UseLatestRestorableTime"] = input.UseLatestRestorableTime; + if (input[_ULRT] != null) { + entries[_ULRT] = input[_ULRT]; } - if (input.DBInstanceClass != null) { - entries["DBInstanceClass"] = input.DBInstanceClass; + if (input[_DBIC] != null) { + entries[_DBIC] = input[_DBIC]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZv] != null) { + entries[_AZv] = input[_AZv]; } - if (input.DBSubnetGroupName != null) { - entries["DBSubnetGroupName"] = input.DBSubnetGroupName; + if (input[_DBSGNu] != null) { + entries[_DBSGNu] = input[_DBSGNu]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.AutoMinorVersionUpgrade != null) { - entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade; + if (input[_AMVU] != null) { + entries[_AMVU] = input[_AMVU]; } - if (input.LicenseModel != null) { - entries["LicenseModel"] = input.LicenseModel; + if (input[_LM] != null) { + entries[_LM] = input[_LM]; } - if (input.DBName != null) { - entries["DBName"] = input.DBName; + if (input[_DBN] != null) { + entries[_DBN] = input[_DBN]; } - if (input.Engine != null) { - entries["Engine"] = input.Engine; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.Iops != null) { - entries["Iops"] = input.Iops; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.OptionGroupName != null) { - entries["OptionGroupName"] = input.OptionGroupName; + if (input[_OGN] != null) { + entries[_OGN] = input[_OGN]; } - if (input.CopyTagsToSnapshot != null) { - entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot; + if (input[_CTTS] != null) { + entries[_CTTS] = input[_CTTS]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19851,18 +19851,18 @@ const se_RestoreDBInstanceToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.StorageType != null) { - entries["StorageType"] = input.StorageType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.TdeCredentialArn != null) { - entries["TdeCredentialArn"] = input.TdeCredentialArn; + if (input[_TCA] != null) { + entries[_TCA] = input[_TCA]; } - if (input.TdeCredentialPassword != null) { - entries["TdeCredentialPassword"] = input.TdeCredentialPassword; + if (input[_TCP] != null) { + entries[_TCP] = input[_TCP]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19870,24 +19870,24 @@ const se_RestoreDBInstanceToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } - if (input.DomainIAMRoleName != null) { - entries["DomainIAMRoleName"] = input.DomainIAMRoleName; + if (input[_DIAMRN] != null) { + entries[_DIAMRN] = input[_DIAMRN]; } - if (input.DomainFqdn != null) { - entries["DomainFqdn"] = input.DomainFqdn; + if (input[_DF] != null) { + entries[_DF] = input[_DF]; } - if (input.DomainOu != null) { - entries["DomainOu"] = input.DomainOu; + if (input[_DO] != null) { + entries[_DO] = input[_DO]; } - if (input.DomainAuthSecretArn != null) { - entries["DomainAuthSecretArn"] = input.DomainAuthSecretArn; + if (input[_DASA] != null) { + entries[_DASA] = input[_DASA]; } - if (input.DomainDnsIps != null) { - const memberEntries = se_StringList(input.DomainDnsIps, context); - if (input.DomainDnsIps?.length === 0) { + if (input[_DDI] != null) { + const memberEntries = se_StringList(input[_DDI], context); + if (input[_DDI]?.length === 0) { entries.DomainDnsIps = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19895,12 +19895,12 @@ const se_RestoreDBInstanceToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.EnableIAMDatabaseAuthentication != null) { - entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication; + if (input[_EIAMDA] != null) { + entries[_EIAMDA] = input[_EIAMDA]; } - if (input.EnableCloudwatchLogsExports != null) { - const memberEntries = se_LogTypeList(input.EnableCloudwatchLogsExports, context); - if (input.EnableCloudwatchLogsExports?.length === 0) { + if (input[_ECLE] != null) { + const memberEntries = se_LogTypeList(input[_ECLE], context); + if (input[_ECLE]?.length === 0) { entries.EnableCloudwatchLogsExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19908,9 +19908,9 @@ const se_RestoreDBInstanceToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.ProcessorFeatures != null) { - const memberEntries = se_ProcessorFeatureList(input.ProcessorFeatures, context); - if (input.ProcessorFeatures?.length === 0) { + if (input[_PF] != null) { + const memberEntries = se_ProcessorFeatureList(input[_PF], context); + if (input[_PF]?.length === 0) { entries.ProcessorFeatures = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -19918,44 +19918,44 @@ const se_RestoreDBInstanceToPointInTimeMessage = ( entries[loc] = value; }); } - if (input.UseDefaultProcessorFeatures != null) { - entries["UseDefaultProcessorFeatures"] = input.UseDefaultProcessorFeatures; + if (input[_UDPF] != null) { + entries[_UDPF] = input[_UDPF]; } - if (input.DBParameterGroupName != null) { - entries["DBParameterGroupName"] = input.DBParameterGroupName; + if (input[_DBPGN] != null) { + entries[_DBPGN] = input[_DBPGN]; } - if (input.DeletionProtection != null) { - entries["DeletionProtection"] = input.DeletionProtection; + if (input[_DP] != null) { + entries[_DP] = input[_DP]; } - if (input.SourceDbiResourceId != null) { - entries["SourceDbiResourceId"] = input.SourceDbiResourceId; + if (input[_SDRI] != null) { + entries[_SDRI] = input[_SDRI]; } - if (input.MaxAllocatedStorage != null) { - entries["MaxAllocatedStorage"] = input.MaxAllocatedStorage; + if (input[_MASa] != null) { + entries[_MASa] = input[_MASa]; } - if (input.SourceDBInstanceAutomatedBackupsArn != null) { - entries["SourceDBInstanceAutomatedBackupsArn"] = input.SourceDBInstanceAutomatedBackupsArn; + if (input[_SDBIABA] != null) { + entries[_SDBIABA] = input[_SDBIABA]; } - if (input.EnableCustomerOwnedIp != null) { - entries["EnableCustomerOwnedIp"] = input.EnableCustomerOwnedIp; + if (input[_ECOI] != null) { + entries[_ECOI] = input[_ECOI]; } - if (input.CustomIamInstanceProfile != null) { - entries["CustomIamInstanceProfile"] = input.CustomIamInstanceProfile; + if (input[_CIIP] != null) { + entries[_CIIP] = input[_CIIP]; } - if (input.BackupTarget != null) { - entries["BackupTarget"] = input.BackupTarget; + if (input[_BTa] != null) { + entries[_BTa] = input[_BTa]; } - if (input.NetworkType != null) { - entries["NetworkType"] = input.NetworkType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.StorageThroughput != null) { - entries["StorageThroughput"] = input.StorageThroughput; + if (input[_STt] != null) { + entries[_STt] = input[_STt]; } - if (input.AllocatedStorage != null) { - entries["AllocatedStorage"] = input.AllocatedStorage; + if (input[_AS] != null) { + entries[_AS] = input[_AS]; } - if (input.DedicatedLogVolume != null) { - entries["DedicatedLogVolume"] = input.DedicatedLogVolume; + if (input[_DLV] != null) { + entries[_DLV] = input[_DLV]; } return entries; }; @@ -19968,20 +19968,20 @@ const se_RevokeDBSecurityGroupIngressMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DBSecurityGroupName != null) { - entries["DBSecurityGroupName"] = input.DBSecurityGroupName; + if (input[_DBSGN] != null) { + entries[_DBSGN] = input[_DBSGN]; } - if (input.CIDRIP != null) { - entries["CIDRIP"] = input.CIDRIP; + if (input[_CIDRIP] != null) { + entries[_CIDRIP] = input[_CIDRIP]; } - if (input.EC2SecurityGroupName != null) { - entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName; + if (input[_ECSGN] != null) { + entries[_ECSGN] = input[_ECSGN]; } - if (input.EC2SecurityGroupId != null) { - entries["EC2SecurityGroupId"] = input.EC2SecurityGroupId; + if (input[_ECSGI] != null) { + entries[_ECSGI] = input[_ECSGI]; } - if (input.EC2SecurityGroupOwnerId != null) { - entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId; + if (input[_ECSGOI] != null) { + entries[_ECSGOI] = input[_ECSGOI]; } return entries; }; @@ -19991,23 +19991,23 @@ const se_RevokeDBSecurityGroupIngressMessage = ( */ const se_ScalingConfiguration = (input: ScalingConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.MinCapacity != null) { - entries["MinCapacity"] = input.MinCapacity; + if (input[_MCi] != null) { + entries[_MCi] = input[_MCi]; } - if (input.MaxCapacity != null) { - entries["MaxCapacity"] = input.MaxCapacity; + if (input[_MCa] != null) { + entries[_MCa] = input[_MCa]; } - if (input.AutoPause != null) { - entries["AutoPause"] = input.AutoPause; + if (input[_AP] != null) { + entries[_AP] = input[_AP]; } - if (input.SecondsUntilAutoPause != null) { - entries["SecondsUntilAutoPause"] = input.SecondsUntilAutoPause; + if (input[_SUAP] != null) { + entries[_SUAP] = input[_SUAP]; } - if (input.TimeoutAction != null) { - entries["TimeoutAction"] = input.TimeoutAction; + if (input[_TAi] != null) { + entries[_TAi] = input[_TAi]; } - if (input.SecondsBeforeTimeout != null) { - entries["SecondsBeforeTimeout"] = input.SecondsBeforeTimeout; + if (input[_SBT] != null) { + entries[_SBT] = input[_SBT]; } return entries; }; @@ -20017,11 +20017,11 @@ const se_ScalingConfiguration = (input: ScalingConfiguration, context: __SerdeCo */ const se_ServerlessV2ScalingConfiguration = (input: ServerlessV2ScalingConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.MinCapacity != null) { - entries["MinCapacity"] = __serializeFloat(input.MinCapacity); + if (input[_MCi] != null) { + entries[_MCi] = __serializeFloat(input[_MCi]); } - if (input.MaxCapacity != null) { - entries["MaxCapacity"] = __serializeFloat(input.MaxCapacity); + if (input[_MCa] != null) { + entries[_MCa] = __serializeFloat(input[_MCa]); } return entries; }; @@ -20047,20 +20047,20 @@ const se_SourceIdsList = (input: string[], context: __SerdeContext): any => { */ const se_StartActivityStreamRequest = (input: StartActivityStreamRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RAe] != null) { + entries[_RAe] = input[_RAe]; } - if (input.Mode != null) { - entries["Mode"] = input.Mode; + if (input[_Mo] != null) { + entries[_Mo] = input[_Mo]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.EngineNativeAuditFieldsIncluded != null) { - entries["EngineNativeAuditFieldsIncluded"] = input.EngineNativeAuditFieldsIncluded; + if (input[_ENAFI] != null) { + entries[_ENAFI] = input[_ENAFI]; } return entries; }; @@ -20070,8 +20070,8 @@ const se_StartActivityStreamRequest = (input: StartActivityStreamRequest, contex */ const se_StartDBClusterMessage = (input: StartDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -20084,17 +20084,17 @@ const se_StartDBInstanceAutomatedBackupsReplicationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SourceDBInstanceArn != null) { - entries["SourceDBInstanceArn"] = input.SourceDBInstanceArn; + if (input[_SDBIA] != null) { + entries[_SDBIA] = input[_SDBIA]; } - if (input.BackupRetentionPeriod != null) { - entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod; + if (input[_BRP] != null) { + entries[_BRP] = input[_BRP]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.PreSignedUrl != null) { - entries["PreSignedUrl"] = input.PreSignedUrl; + if (input[_PSU] != null) { + entries[_PSU] = input[_PSU]; } return entries; }; @@ -20104,8 +20104,8 @@ const se_StartDBInstanceAutomatedBackupsReplicationMessage = ( */ const se_StartDBInstanceMessage = (input: StartDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } return entries; }; @@ -20115,27 +20115,27 @@ const se_StartDBInstanceMessage = (input: StartDBInstanceMessage, context: __Ser */ const se_StartExportTaskMessage = (input: StartExportTaskMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ExportTaskIdentifier != null) { - entries["ExportTaskIdentifier"] = input.ExportTaskIdentifier; + if (input[_ETI] != null) { + entries[_ETI] = input[_ETI]; } - if (input.SourceArn != null) { - entries["SourceArn"] = input.SourceArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.S3BucketName != null) { - entries["S3BucketName"] = input.S3BucketName; + if (input[_SBN] != null) { + entries[_SBN] = input[_SBN]; } - if (input.IamRoleArn != null) { - entries["IamRoleArn"] = input.IamRoleArn; + if (input[_IRA] != null) { + entries[_IRA] = input[_IRA]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.S3Prefix != null) { - entries["S3Prefix"] = input.S3Prefix; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } - if (input.ExportOnly != null) { - const memberEntries = se_StringList(input.ExportOnly, context); - if (input.ExportOnly?.length === 0) { + if (input[_EO] != null) { + const memberEntries = se_StringList(input[_EO], context); + if (input[_EO]?.length === 0) { entries.ExportOnly = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -20151,11 +20151,11 @@ const se_StartExportTaskMessage = (input: StartExportTaskMessage, context: __Ser */ const se_StopActivityStreamRequest = (input: StopActivityStreamRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RAe] != null) { + entries[_RAe] = input[_RAe]; } - if (input.ApplyImmediately != null) { - entries["ApplyImmediately"] = input.ApplyImmediately; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } return entries; }; @@ -20165,8 +20165,8 @@ const se_StopActivityStreamRequest = (input: StopActivityStreamRequest, context: */ const se_StopDBClusterMessage = (input: StopDBClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBClusterIdentifier != null) { - entries["DBClusterIdentifier"] = input.DBClusterIdentifier; + if (input[_DBCI] != null) { + entries[_DBCI] = input[_DBCI]; } return entries; }; @@ -20179,8 +20179,8 @@ const se_StopDBInstanceAutomatedBackupsReplicationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SourceDBInstanceArn != null) { - entries["SourceDBInstanceArn"] = input.SourceDBInstanceArn; + if (input[_SDBIA] != null) { + entries[_SDBIA] = input[_SDBIA]; } return entries; }; @@ -20190,11 +20190,11 @@ const se_StopDBInstanceAutomatedBackupsReplicationMessage = ( */ const se_StopDBInstanceMessage = (input: StopDBInstanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } - if (input.DBSnapshotIdentifier != null) { - entries["DBSnapshotIdentifier"] = input.DBSnapshotIdentifier; + if (input[_DBSIn] != null) { + entries[_DBSIn] = input[_DBSIn]; } return entries; }; @@ -20239,11 +20239,11 @@ const se_SwitchoverBlueGreenDeploymentRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.BlueGreenDeploymentIdentifier != null) { - entries["BlueGreenDeploymentIdentifier"] = input.BlueGreenDeploymentIdentifier; + if (input[_BGDI] != null) { + entries[_BGDI] = input[_BGDI]; } - if (input.SwitchoverTimeout != null) { - entries["SwitchoverTimeout"] = input.SwitchoverTimeout; + if (input[_STw] != null) { + entries[_STw] = input[_STw]; } return entries; }; @@ -20253,11 +20253,11 @@ const se_SwitchoverBlueGreenDeploymentRequest = ( */ const se_SwitchoverGlobalClusterMessage = (input: SwitchoverGlobalClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.GlobalClusterIdentifier != null) { - entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier; + if (input[_GCI] != null) { + entries[_GCI] = input[_GCI]; } - if (input.TargetDbClusterIdentifier != null) { - entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier; + if (input[_TDCI] != null) { + entries[_TDCI] = input[_TDCI]; } return entries; }; @@ -20267,8 +20267,8 @@ const se_SwitchoverGlobalClusterMessage = (input: SwitchoverGlobalClusterMessage */ const se_SwitchoverReadReplicaMessage = (input: SwitchoverReadReplicaMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBInstanceIdentifier != null) { - entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier; + if (input[_DBII] != null) { + entries[_DBII] = input[_DBII]; } return entries; }; @@ -20278,11 +20278,11 @@ const se_SwitchoverReadReplicaMessage = (input: SwitchoverReadReplicaMessage, co */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -20311,23 +20311,23 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { */ const se_UserAuthConfig = (input: UserAuthConfig, context: __SerdeContext): any => { const entries: any = {}; - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.UserName != null) { - entries["UserName"] = input.UserName; + if (input[_UN] != null) { + entries[_UN] = input[_UN]; } - if (input.AuthScheme != null) { - entries["AuthScheme"] = input.AuthScheme; + if (input[_ASu] != null) { + entries[_ASu] = input[_ASu]; } - if (input.SecretArn != null) { - entries["SecretArn"] = input.SecretArn; + if (input[_SAe] != null) { + entries[_SAe] = input[_SAe]; } - if (input.IAMAuth != null) { - entries["IAMAuth"] = input.IAMAuth; + if (input[_IAMA] != null) { + entries[_IAMA] = input[_IAMA]; } - if (input.ClientPasswordAuthType != null) { - entries["ClientPasswordAuthType"] = input.ClientPasswordAuthType; + if (input[_CPAT] != null) { + entries[_CPAT] = input[_CPAT]; } return entries; }; @@ -20373,12 +20373,9 @@ const se_VpcSecurityGroupIdList = (input: string[], context: __SerdeContext): an const de_AccountAttributesMessage = (output: any, context: __SerdeContext): AccountAttributesMessage => { const contents: any = {}; if (output.AccountQuotas === "") { - contents.AccountQuotas = []; - } else if (output["AccountQuotas"] !== undefined && output["AccountQuotas"]["AccountQuota"] !== undefined) { - contents.AccountQuotas = de_AccountQuotaList( - __getArrayIfSingleItem(output["AccountQuotas"]["AccountQuota"]), - context - ); + contents[_AQ] = []; + } else if (output[_AQ] != null && output[_AQ][_AQc] != null) { + contents[_AQ] = de_AccountQuotaList(__getArrayIfSingleItem(output[_AQ][_AQc]), context); } return contents; }; @@ -20388,14 +20385,14 @@ const de_AccountAttributesMessage = (output: any, context: __SerdeContext): Acco */ const de_AccountQuota = (output: any, context: __SerdeContext): AccountQuota => { const contents: any = {}; - if (output["AccountQuotaName"] !== undefined) { - contents.AccountQuotaName = __expectString(output["AccountQuotaName"]); + if (output[_AQN] != null) { + contents[_AQN] = __expectString(output[_AQN]); } - if (output["Used"] !== undefined) { - contents.Used = __strictParseLong(output["Used"]) as number; + if (output[_U] != null) { + contents[_U] = __strictParseLong(output[_U]) as number; } - if (output["Max"] !== undefined) { - contents.Max = __strictParseLong(output["Max"]) as number; + if (output[_Max] != null) { + contents[_Max] = __strictParseLong(output[_Max]) as number; } return contents; }; @@ -20430,8 +20427,8 @@ const de_AddSourceIdentifierToSubscriptionResult = ( context: __SerdeContext ): AddSourceIdentifierToSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -20444,11 +20441,8 @@ const de_ApplyPendingMaintenanceActionResult = ( context: __SerdeContext ): ApplyPendingMaintenanceActionResult => { const contents: any = {}; - if (output["ResourcePendingMaintenanceActions"] !== undefined) { - contents.ResourcePendingMaintenanceActions = de_ResourcePendingMaintenanceActions( - output["ResourcePendingMaintenanceActions"], - context - ); + if (output[_RPMA] != null) { + contents[_RPMA] = de_ResourcePendingMaintenanceActions(output[_RPMA], context); } return contents; }; @@ -20469,8 +20463,8 @@ const de_AttributeValueList = (output: any, context: __SerdeContext): string[] = */ const de_AuthorizationAlreadyExistsFault = (output: any, context: __SerdeContext): AuthorizationAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20480,8 +20474,8 @@ const de_AuthorizationAlreadyExistsFault = (output: any, context: __SerdeContext */ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): AuthorizationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20491,8 +20485,8 @@ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): Au */ const de_AuthorizationQuotaExceededFault = (output: any, context: __SerdeContext): AuthorizationQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20505,8 +20499,8 @@ const de_AuthorizeDBSecurityGroupIngressResult = ( context: __SerdeContext ): AuthorizeDBSecurityGroupIngressResult => { const contents: any = {}; - if (output["DBSecurityGroup"] !== undefined) { - contents.DBSecurityGroup = de_DBSecurityGroup(output["DBSecurityGroup"], context); + if (output[_DBSGe] != null) { + contents[_DBSGe] = de_DBSecurityGroup(output[_DBSGe], context); } return contents; }; @@ -20516,8 +20510,8 @@ const de_AuthorizeDBSecurityGroupIngressResult = ( */ const de_AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -20549,14 +20543,14 @@ const de_AvailabilityZones = (output: any, context: __SerdeContext): string[] => */ const de_AvailableProcessorFeature = (output: any, context: __SerdeContext): AvailableProcessorFeature => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } return contents; }; @@ -20577,8 +20571,8 @@ const de_AvailableProcessorFeatureList = (output: any, context: __SerdeContext): */ const de_BackupPolicyNotFoundFault = (output: any, context: __SerdeContext): BackupPolicyNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20588,47 +20582,44 @@ const de_BackupPolicyNotFoundFault = (output: any, context: __SerdeContext): Bac */ const de_BlueGreenDeployment = (output: any, context: __SerdeContext): BlueGreenDeployment => { const contents: any = {}; - if (output["BlueGreenDeploymentIdentifier"] !== undefined) { - contents.BlueGreenDeploymentIdentifier = __expectString(output["BlueGreenDeploymentIdentifier"]); + if (output[_BGDI] != null) { + contents[_BGDI] = __expectString(output[_BGDI]); } - if (output["BlueGreenDeploymentName"] !== undefined) { - contents.BlueGreenDeploymentName = __expectString(output["BlueGreenDeploymentName"]); + if (output[_BGDN] != null) { + contents[_BGDN] = __expectString(output[_BGDN]); } - if (output["Source"] !== undefined) { - contents.Source = __expectString(output["Source"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Target"] !== undefined) { - contents.Target = __expectString(output["Target"]); + if (output[_Ta] != null) { + contents[_Ta] = __expectString(output[_Ta]); } if (output.SwitchoverDetails === "") { - contents.SwitchoverDetails = []; - } else if (output["SwitchoverDetails"] !== undefined && output["SwitchoverDetails"]["member"] !== undefined) { - contents.SwitchoverDetails = de_SwitchoverDetailList( - __getArrayIfSingleItem(output["SwitchoverDetails"]["member"]), - context - ); + contents[_SD] = []; + } else if (output[_SD] != null && output[_SD][_me] != null) { + contents[_SD] = de_SwitchoverDetailList(__getArrayIfSingleItem(output[_SD][_me]), context); } if (output.Tasks === "") { - contents.Tasks = []; - } else if (output["Tasks"] !== undefined && output["Tasks"]["member"] !== undefined) { - contents.Tasks = de_BlueGreenDeploymentTaskList(__getArrayIfSingleItem(output["Tasks"]["member"]), context); + contents[_Tas] = []; + } else if (output[_Tas] != null && output[_Tas][_me] != null) { + contents[_Tas] = de_BlueGreenDeploymentTaskList(__getArrayIfSingleItem(output[_Tas][_me]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["StatusDetails"] !== undefined) { - contents.StatusDetails = __expectString(output["StatusDetails"]); + if (output[_SDt] != null) { + contents[_SDt] = __expectString(output[_SDt]); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["DeleteTime"] !== undefined) { - contents.DeleteTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["DeleteTime"])); + if (output[_DTe] != null) { + contents[_DTe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DTe])); } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } return contents; }; @@ -20641,8 +20632,8 @@ const de_BlueGreenDeploymentAlreadyExistsFault = ( context: __SerdeContext ): BlueGreenDeploymentAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20666,8 +20657,8 @@ const de_BlueGreenDeploymentNotFoundFault = ( context: __SerdeContext ): BlueGreenDeploymentNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20677,11 +20668,11 @@ const de_BlueGreenDeploymentNotFoundFault = ( */ const de_BlueGreenDeploymentTask = (output: any, context: __SerdeContext): BlueGreenDeploymentTask => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -20713,31 +20704,29 @@ const de_CACertificateIdentifiersList = (output: any, context: __SerdeContext): */ const de_Certificate = (output: any, context: __SerdeContext): Certificate => { const contents: any = {}; - if (output["CertificateIdentifier"] !== undefined) { - contents.CertificateIdentifier = __expectString(output["CertificateIdentifier"]); + if (output[_CIe] != null) { + contents[_CIe] = __expectString(output[_CIe]); } - if (output["CertificateType"] !== undefined) { - contents.CertificateType = __expectString(output["CertificateType"]); + if (output[_CTe] != null) { + contents[_CTe] = __expectString(output[_CTe]); } - if (output["Thumbprint"] !== undefined) { - contents.Thumbprint = __expectString(output["Thumbprint"]); + if (output[_Th] != null) { + contents[_Th] = __expectString(output[_Th]); } - if (output["ValidFrom"] !== undefined) { - contents.ValidFrom = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidFrom"])); + if (output[_VF] != null) { + contents[_VF] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VF])); } - if (output["ValidTill"] !== undefined) { - contents.ValidTill = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidTill"])); + if (output[_VT] != null) { + contents[_VT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VT])); } - if (output["CertificateArn"] !== undefined) { - contents.CertificateArn = __expectString(output["CertificateArn"]); + if (output[_CA] != null) { + contents[_CA] = __expectString(output[_CA]); } - if (output["CustomerOverride"] !== undefined) { - contents.CustomerOverride = __parseBoolean(output["CustomerOverride"]); + if (output[_CO] != null) { + contents[_CO] = __parseBoolean(output[_CO]); } - if (output["CustomerOverrideValidTill"] !== undefined) { - contents.CustomerOverrideValidTill = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["CustomerOverrideValidTill"]) - ); + if (output[_COVT] != null) { + contents[_COVT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_COVT])); } return contents; }; @@ -20747,11 +20736,11 @@ const de_Certificate = (output: any, context: __SerdeContext): Certificate => { */ const de_CertificateDetails = (output: any, context: __SerdeContext): CertificateDetails => { const contents: any = {}; - if (output["CAIdentifier"] !== undefined) { - contents.CAIdentifier = __expectString(output["CAIdentifier"]); + if (output[_CAI] != null) { + contents[_CAI] = __expectString(output[_CAI]); } - if (output["ValidTill"] !== undefined) { - contents.ValidTill = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ValidTill"])); + if (output[_VT] != null) { + contents[_VT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VT])); } return contents; }; @@ -20772,16 +20761,16 @@ const de_CertificateList = (output: any, context: __SerdeContext): Certificate[] */ const de_CertificateMessage = (output: any, context: __SerdeContext): CertificateMessage => { const contents: any = {}; - if (output["DefaultCertificateForNewLaunches"] !== undefined) { - contents.DefaultCertificateForNewLaunches = __expectString(output["DefaultCertificateForNewLaunches"]); + if (output[_DCFNL] != null) { + contents[_DCFNL] = __expectString(output[_DCFNL]); } if (output.Certificates === "") { - contents.Certificates = []; - } else if (output["Certificates"] !== undefined && output["Certificates"]["Certificate"] !== undefined) { - contents.Certificates = de_CertificateList(__getArrayIfSingleItem(output["Certificates"]["Certificate"]), context); + contents[_Ce] = []; + } else if (output[_Ce] != null && output[_Ce][_Cer] != null) { + contents[_Ce] = de_CertificateList(__getArrayIfSingleItem(output[_Ce][_Cer]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -20791,8 +20780,8 @@ const de_CertificateMessage = (output: any, context: __SerdeContext): Certificat */ const de_CertificateNotFoundFault = (output: any, context: __SerdeContext): CertificateNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20802,11 +20791,11 @@ const de_CertificateNotFoundFault = (output: any, context: __SerdeContext): Cert */ const de_CharacterSet = (output: any, context: __SerdeContext): CharacterSet => { const contents: any = {}; - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["CharacterSetDescription"] !== undefined) { - contents.CharacterSetDescription = __expectString(output["CharacterSetDescription"]); + if (output[_CSD] != null) { + contents[_CSD] = __expectString(output[_CSD]); } return contents; }; @@ -20816,41 +20805,35 @@ const de_CharacterSet = (output: any, context: __SerdeContext): CharacterSet => */ const de_ClusterPendingModifiedValues = (output: any, context: __SerdeContext): ClusterPendingModifiedValues => { const contents: any = {}; - if (output["PendingCloudwatchLogsExports"] !== undefined) { - contents.PendingCloudwatchLogsExports = de_PendingCloudwatchLogsExports( - output["PendingCloudwatchLogsExports"], - context - ); + if (output[_PCLE] != null) { + contents[_PCLE] = de_PendingCloudwatchLogsExports(output[_PCLE], context); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["MasterUserPassword"] !== undefined) { - contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); + if (output[_MUP] != null) { + contents[_MUP] = __expectString(output[_MUP]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["RdsCustomClusterConfiguration"] !== undefined) { - contents.RdsCustomClusterConfiguration = de_RdsCustomClusterConfiguration( - output["RdsCustomClusterConfiguration"], - context - ); + if (output[_RCCC] != null) { + contents[_RCCC] = de_RdsCustomClusterConfiguration(output[_RCCC], context); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } return contents; }; @@ -20860,25 +20843,22 @@ const de_ClusterPendingModifiedValues = (output: any, context: __SerdeContext): */ const de_ConnectionPoolConfigurationInfo = (output: any, context: __SerdeContext): ConnectionPoolConfigurationInfo => { const contents: any = {}; - if (output["MaxConnectionsPercent"] !== undefined) { - contents.MaxConnectionsPercent = __strictParseInt32(output["MaxConnectionsPercent"]) as number; + if (output[_MCP] != null) { + contents[_MCP] = __strictParseInt32(output[_MCP]) as number; } - if (output["MaxIdleConnectionsPercent"] !== undefined) { - contents.MaxIdleConnectionsPercent = __strictParseInt32(output["MaxIdleConnectionsPercent"]) as number; + if (output[_MICP] != null) { + contents[_MICP] = __strictParseInt32(output[_MICP]) as number; } - if (output["ConnectionBorrowTimeout"] !== undefined) { - contents.ConnectionBorrowTimeout = __strictParseInt32(output["ConnectionBorrowTimeout"]) as number; + if (output[_CBT] != null) { + contents[_CBT] = __strictParseInt32(output[_CBT]) as number; } if (output.SessionPinningFilters === "") { - contents.SessionPinningFilters = []; - } else if (output["SessionPinningFilters"] !== undefined && output["SessionPinningFilters"]["member"] !== undefined) { - contents.SessionPinningFilters = de_StringList( - __getArrayIfSingleItem(output["SessionPinningFilters"]["member"]), - context - ); + contents[_SPF] = []; + } else if (output[_SPF] != null && output[_SPF][_me] != null) { + contents[_SPF] = de_StringList(__getArrayIfSingleItem(output[_SPF][_me]), context); } - if (output["InitQuery"] !== undefined) { - contents.InitQuery = __expectString(output["InitQuery"]); + if (output[_IQ] != null) { + contents[_IQ] = __expectString(output[_IQ]); } return contents; }; @@ -20891,8 +20871,8 @@ const de_CopyDBClusterParameterGroupResult = ( context: __SerdeContext ): CopyDBClusterParameterGroupResult => { const contents: any = {}; - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = de_DBClusterParameterGroup(output["DBClusterParameterGroup"], context); + if (output[_DBCPG] != null) { + contents[_DBCPG] = de_DBClusterParameterGroup(output[_DBCPG], context); } return contents; }; @@ -20902,8 +20882,8 @@ const de_CopyDBClusterParameterGroupResult = ( */ const de_CopyDBClusterSnapshotResult = (output: any, context: __SerdeContext): CopyDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -20913,8 +20893,8 @@ const de_CopyDBClusterSnapshotResult = (output: any, context: __SerdeContext): C */ const de_CopyDBParameterGroupResult = (output: any, context: __SerdeContext): CopyDBParameterGroupResult => { const contents: any = {}; - if (output["DBParameterGroup"] !== undefined) { - contents.DBParameterGroup = de_DBParameterGroup(output["DBParameterGroup"], context); + if (output[_DBPG] != null) { + contents[_DBPG] = de_DBParameterGroup(output[_DBPG], context); } return contents; }; @@ -20924,8 +20904,8 @@ const de_CopyDBParameterGroupResult = (output: any, context: __SerdeContext): Co */ const de_CopyDBSnapshotResult = (output: any, context: __SerdeContext): CopyDBSnapshotResult => { const contents: any = {}; - if (output["DBSnapshot"] !== undefined) { - contents.DBSnapshot = de_DBSnapshot(output["DBSnapshot"], context); + if (output[_DBS] != null) { + contents[_DBS] = de_DBSnapshot(output[_DBS], context); } return contents; }; @@ -20935,8 +20915,8 @@ const de_CopyDBSnapshotResult = (output: any, context: __SerdeContext): CopyDBSn */ const de_CopyOptionGroupResult = (output: any, context: __SerdeContext): CopyOptionGroupResult => { const contents: any = {}; - if (output["OptionGroup"] !== undefined) { - contents.OptionGroup = de_OptionGroup(output["OptionGroup"], context); + if (output[_OG] != null) { + contents[_OG] = de_OptionGroup(output[_OG], context); } return contents; }; @@ -20949,8 +20929,8 @@ const de_CreateBlueGreenDeploymentResponse = ( context: __SerdeContext ): CreateBlueGreenDeploymentResponse => { const contents: any = {}; - if (output["BlueGreenDeployment"] !== undefined) { - contents.BlueGreenDeployment = de_BlueGreenDeployment(output["BlueGreenDeployment"], context); + if (output[_BGD] != null) { + contents[_BGD] = de_BlueGreenDeployment(output[_BGD], context); } return contents; }; @@ -20963,8 +20943,8 @@ const de_CreateCustomDBEngineVersionFault = ( context: __SerdeContext ): CreateCustomDBEngineVersionFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20977,8 +20957,8 @@ const de_CreateDBClusterParameterGroupResult = ( context: __SerdeContext ): CreateDBClusterParameterGroupResult => { const contents: any = {}; - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = de_DBClusterParameterGroup(output["DBClusterParameterGroup"], context); + if (output[_DBCPG] != null) { + contents[_DBCPG] = de_DBClusterParameterGroup(output[_DBCPG], context); } return contents; }; @@ -20988,8 +20968,8 @@ const de_CreateDBClusterParameterGroupResult = ( */ const de_CreateDBClusterResult = (output: any, context: __SerdeContext): CreateDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -20999,8 +20979,8 @@ const de_CreateDBClusterResult = (output: any, context: __SerdeContext): CreateD */ const de_CreateDBClusterSnapshotResult = (output: any, context: __SerdeContext): CreateDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -21013,8 +20993,8 @@ const de_CreateDBInstanceReadReplicaResult = ( context: __SerdeContext ): CreateDBInstanceReadReplicaResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -21024,8 +21004,8 @@ const de_CreateDBInstanceReadReplicaResult = ( */ const de_CreateDBInstanceResult = (output: any, context: __SerdeContext): CreateDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -21035,8 +21015,8 @@ const de_CreateDBInstanceResult = (output: any, context: __SerdeContext): Create */ const de_CreateDBParameterGroupResult = (output: any, context: __SerdeContext): CreateDBParameterGroupResult => { const contents: any = {}; - if (output["DBParameterGroup"] !== undefined) { - contents.DBParameterGroup = de_DBParameterGroup(output["DBParameterGroup"], context); + if (output[_DBPG] != null) { + contents[_DBPG] = de_DBParameterGroup(output[_DBPG], context); } return contents; }; @@ -21046,8 +21026,8 @@ const de_CreateDBParameterGroupResult = (output: any, context: __SerdeContext): */ const de_CreateDBProxyEndpointResponse = (output: any, context: __SerdeContext): CreateDBProxyEndpointResponse => { const contents: any = {}; - if (output["DBProxyEndpoint"] !== undefined) { - contents.DBProxyEndpoint = de_DBProxyEndpoint(output["DBProxyEndpoint"], context); + if (output[_DBPE] != null) { + contents[_DBPE] = de_DBProxyEndpoint(output[_DBPE], context); } return contents; }; @@ -21057,8 +21037,8 @@ const de_CreateDBProxyEndpointResponse = (output: any, context: __SerdeContext): */ const de_CreateDBProxyResponse = (output: any, context: __SerdeContext): CreateDBProxyResponse => { const contents: any = {}; - if (output["DBProxy"] !== undefined) { - contents.DBProxy = de_DBProxy(output["DBProxy"], context); + if (output[_DBP] != null) { + contents[_DBP] = de_DBProxy(output[_DBP], context); } return contents; }; @@ -21068,8 +21048,8 @@ const de_CreateDBProxyResponse = (output: any, context: __SerdeContext): CreateD */ const de_CreateDBSecurityGroupResult = (output: any, context: __SerdeContext): CreateDBSecurityGroupResult => { const contents: any = {}; - if (output["DBSecurityGroup"] !== undefined) { - contents.DBSecurityGroup = de_DBSecurityGroup(output["DBSecurityGroup"], context); + if (output[_DBSGe] != null) { + contents[_DBSGe] = de_DBSecurityGroup(output[_DBSGe], context); } return contents; }; @@ -21079,8 +21059,8 @@ const de_CreateDBSecurityGroupResult = (output: any, context: __SerdeContext): C */ const de_CreateDBSnapshotResult = (output: any, context: __SerdeContext): CreateDBSnapshotResult => { const contents: any = {}; - if (output["DBSnapshot"] !== undefined) { - contents.DBSnapshot = de_DBSnapshot(output["DBSnapshot"], context); + if (output[_DBS] != null) { + contents[_DBS] = de_DBSnapshot(output[_DBS], context); } return contents; }; @@ -21090,8 +21070,8 @@ const de_CreateDBSnapshotResult = (output: any, context: __SerdeContext): Create */ const de_CreateDBSubnetGroupResult = (output: any, context: __SerdeContext): CreateDBSubnetGroupResult => { const contents: any = {}; - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSGu] != null) { + contents[_DBSGu] = de_DBSubnetGroup(output[_DBSGu], context); } return contents; }; @@ -21101,8 +21081,8 @@ const de_CreateDBSubnetGroupResult = (output: any, context: __SerdeContext): Cre */ const de_CreateEventSubscriptionResult = (output: any, context: __SerdeContext): CreateEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -21112,8 +21092,8 @@ const de_CreateEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_CreateGlobalClusterResult = (output: any, context: __SerdeContext): CreateGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -21123,8 +21103,8 @@ const de_CreateGlobalClusterResult = (output: any, context: __SerdeContext): Cre */ const de_CreateOptionGroupResult = (output: any, context: __SerdeContext): CreateOptionGroupResult => { const contents: any = {}; - if (output["OptionGroup"] !== undefined) { - contents.OptionGroup = de_OptionGroup(output["OptionGroup"], context); + if (output[_OG] != null) { + contents[_OG] = de_OptionGroup(output[_OG], context); } return contents; }; @@ -21134,8 +21114,8 @@ const de_CreateOptionGroupResult = (output: any, context: __SerdeContext): Creat */ const de_CreateTenantDatabaseResult = (output: any, context: __SerdeContext): CreateTenantDatabaseResult => { const contents: any = {}; - if (output["TenantDatabase"] !== undefined) { - contents.TenantDatabase = de_TenantDatabase(output["TenantDatabase"], context); + if (output[_TD] != null) { + contents[_TD] = de_TenantDatabase(output[_TD], context); } return contents; }; @@ -21148,8 +21128,8 @@ const de_CustomAvailabilityZoneNotFoundFault = ( context: __SerdeContext ): CustomAvailabilityZoneNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21162,8 +21142,8 @@ const de_CustomDBEngineVersionAlreadyExistsFault = ( context: __SerdeContext ): CustomDBEngineVersionAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21173,11 +21153,11 @@ const de_CustomDBEngineVersionAlreadyExistsFault = ( */ const de_CustomDBEngineVersionAMI = (output: any, context: __SerdeContext): CustomDBEngineVersionAMI => { const contents: any = {}; - if (output["ImageId"] !== undefined) { - contents.ImageId = __expectString(output["ImageId"]); + if (output[_II] != null) { + contents[_II] = __expectString(output[_II]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -21190,8 +21170,8 @@ const de_CustomDBEngineVersionNotFoundFault = ( context: __SerdeContext ): CustomDBEngineVersionNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21204,8 +21184,8 @@ const de_CustomDBEngineVersionQuotaExceededFault = ( context: __SerdeContext ): CustomDBEngineVersionQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21215,312 +21195,255 @@ const de_CustomDBEngineVersionQuotaExceededFault = ( */ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { const contents: any = {}; - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["DatabaseName"] !== undefined) { - contents.DatabaseName = __expectString(output["DatabaseName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterParameterGroup"] !== undefined) { - contents.DBClusterParameterGroup = __expectString(output["DBClusterParameterGroup"]); + if (output[_DBCPG] != null) { + contents[_DBCPG] = __expectString(output[_DBCPG]); } - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = __expectString(output["DBSubnetGroup"]); + if (output[_DBSGu] != null) { + contents[_DBSGu] = __expectString(output[_DBSGu]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["AutomaticRestartTime"] !== undefined) { - contents.AutomaticRestartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AutomaticRestartTime"])); + if (output[_ART] != null) { + contents[_ART] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ART])); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __expectString(output["PercentProgress"]); + if (output[_PP] != null) { + contents[_PP] = __expectString(output[_PP]); } - if (output["EarliestRestorableTime"] !== undefined) { - contents.EarliestRestorableTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["EarliestRestorableTime"]) - ); + if (output[_ERT] != null) { + contents[_ERT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ERT])); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["ReaderEndpoint"] !== undefined) { - contents.ReaderEndpoint = __expectString(output["ReaderEndpoint"]); + if (output[_RE] != null) { + contents[_RE] = __expectString(output[_RE]); } if (output.CustomEndpoints === "") { - contents.CustomEndpoints = []; - } else if (output["CustomEndpoints"] !== undefined && output["CustomEndpoints"]["member"] !== undefined) { - contents.CustomEndpoints = de_StringList(__getArrayIfSingleItem(output["CustomEndpoints"]["member"]), context); + contents[_CE] = []; + } else if (output[_CE] != null && output[_CE][_me] != null) { + contents[_CE] = de_StringList(__getArrayIfSingleItem(output[_CE][_me]), context); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LatestRestorableTime"] !== undefined) { - contents.LatestRestorableTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LatestRestorableTime"])); + if (output[_LRT] != null) { + contents[_LRT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LRT])); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } if (output.DBClusterOptionGroupMemberships === "") { - contents.DBClusterOptionGroupMemberships = []; - } else if ( - output["DBClusterOptionGroupMemberships"] !== undefined && - output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"] !== undefined - ) { - contents.DBClusterOptionGroupMemberships = de_DBClusterOptionGroupMemberships( - __getArrayIfSingleItem(output["DBClusterOptionGroupMemberships"]["DBClusterOptionGroup"]), - context - ); + contents[_DBCOGM] = []; + } else if (output[_DBCOGM] != null && output[_DBCOGM][_DBCOG] != null) { + contents[_DBCOGM] = de_DBClusterOptionGroupMemberships(__getArrayIfSingleItem(output[_DBCOGM][_DBCOG]), context); } - if (output["PreferredBackupWindow"] !== undefined) { - contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); + if (output[_PBW] != null) { + contents[_PBW] = __expectString(output[_PBW]); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["ReplicationSourceIdentifier"] !== undefined) { - contents.ReplicationSourceIdentifier = __expectString(output["ReplicationSourceIdentifier"]); + if (output[_RSI] != null) { + contents[_RSI] = __expectString(output[_RSI]); } if (output.ReadReplicaIdentifiers === "") { - contents.ReadReplicaIdentifiers = []; - } else if ( - output["ReadReplicaIdentifiers"] !== undefined && - output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"] !== undefined - ) { - contents.ReadReplicaIdentifiers = de_ReadReplicaIdentifierList( - __getArrayIfSingleItem(output["ReadReplicaIdentifiers"]["ReadReplicaIdentifier"]), - context - ); + contents[_RRI] = []; + } else if (output[_RRI] != null && output[_RRI][_RRIe] != null) { + contents[_RRI] = de_ReadReplicaIdentifierList(__getArrayIfSingleItem(output[_RRI][_RRIe]), context); } if (output.StatusInfos === "") { - contents.StatusInfos = []; - } else if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBClusterStatusInfo"] !== undefined) { - contents.StatusInfos = de_DBClusterStatusInfoList( - __getArrayIfSingleItem(output["StatusInfos"]["DBClusterStatusInfo"]), - context - ); + contents[_SIt] = []; + } else if (output[_SIt] != null && output[_SIt][_DBCSIl] != null) { + contents[_SIt] = de_DBClusterStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBCSIl]), context); } if (output.DBClusterMembers === "") { - contents.DBClusterMembers = []; - } else if (output["DBClusterMembers"] !== undefined && output["DBClusterMembers"]["DBClusterMember"] !== undefined) { - contents.DBClusterMembers = de_DBClusterMemberList( - __getArrayIfSingleItem(output["DBClusterMembers"]["DBClusterMember"]), - context - ); + contents[_DBCM] = []; + } else if (output[_DBCM] != null && output[_DBCM][_DBCMl] != null) { + contents[_DBCM] = de_DBClusterMemberList(__getArrayIfSingleItem(output[_DBCM][_DBCMl]), context); } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGMp] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGMp]), context); } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DbClusterResourceId"] !== undefined) { - contents.DbClusterResourceId = __expectString(output["DbClusterResourceId"]); + if (output[_DCRI] != null) { + contents[_DCRI] = __expectString(output[_DCRI]); } - if (output["DBClusterArn"] !== undefined) { - contents.DBClusterArn = __expectString(output["DBClusterArn"]); + if (output[_DBCA] != null) { + contents[_DBCA] = __expectString(output[_DBCA]); } if (output.AssociatedRoles === "") { - contents.AssociatedRoles = []; - } else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBClusterRole"] !== undefined) { - contents.AssociatedRoles = de_DBClusterRoles( - __getArrayIfSingleItem(output["AssociatedRoles"]["DBClusterRole"]), - context - ); + contents[_AR] = []; + } else if (output[_AR] != null && output[_AR][_DBCR] != null) { + contents[_AR] = de_DBClusterRoles(__getArrayIfSingleItem(output[_AR][_DBCR]), context); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["CloneGroupId"] !== undefined) { - contents.CloneGroupId = __expectString(output["CloneGroupId"]); + if (output[_CGI] != null) { + contents[_CGI] = __expectString(output[_CGI]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["EarliestBacktrackTime"] !== undefined) { - contents.EarliestBacktrackTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EarliestBacktrackTime"])); + if (output[_EBT] != null) { + contents[_EBT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_EBT])); } - if (output["BacktrackWindow"] !== undefined) { - contents.BacktrackWindow = __strictParseLong(output["BacktrackWindow"]) as number; + if (output[_BW] != null) { + contents[_BW] = __strictParseLong(output[_BW]) as number; } - if (output["BacktrackConsumedChangeRecords"] !== undefined) { - contents.BacktrackConsumedChangeRecords = __strictParseLong(output["BacktrackConsumedChangeRecords"]) as number; + if (output[_BCCR] != null) { + contents[_BCCR] = __strictParseLong(output[_BCCR]) as number; } if (output.EnabledCloudwatchLogsExports === "") { - contents.EnabledCloudwatchLogsExports = []; - } else if ( - output["EnabledCloudwatchLogsExports"] !== undefined && - output["EnabledCloudwatchLogsExports"]["member"] !== undefined - ) { - contents.EnabledCloudwatchLogsExports = de_LogTypeList( - __getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), - context - ); + contents[_ECLEn] = []; + } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { + contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); } - if (output["Capacity"] !== undefined) { - contents.Capacity = __strictParseInt32(output["Capacity"]) as number; + if (output[_C] != null) { + contents[_C] = __strictParseInt32(output[_C]) as number; } - if (output["EngineMode"] !== undefined) { - contents.EngineMode = __expectString(output["EngineMode"]); + if (output[_EMn] != null) { + contents[_EMn] = __expectString(output[_EMn]); } - if (output["ScalingConfigurationInfo"] !== undefined) { - contents.ScalingConfigurationInfo = de_ScalingConfigurationInfo(output["ScalingConfigurationInfo"], context); + if (output[_SCI] != null) { + contents[_SCI] = de_ScalingConfigurationInfo(output[_SCI], context); } - if (output["RdsCustomClusterConfiguration"] !== undefined) { - contents.RdsCustomClusterConfiguration = de_RdsCustomClusterConfiguration( - output["RdsCustomClusterConfiguration"], - context - ); + if (output[_RCCC] != null) { + contents[_RCCC] = de_RdsCustomClusterConfiguration(output[_RCCC], context); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } - if (output["HttpEndpointEnabled"] !== undefined) { - contents.HttpEndpointEnabled = __parseBoolean(output["HttpEndpointEnabled"]); + if (output[_HEE] != null) { + contents[_HEE] = __parseBoolean(output[_HEE]); } - if (output["ActivityStreamMode"] !== undefined) { - contents.ActivityStreamMode = __expectString(output["ActivityStreamMode"]); + if (output[_ASM] != null) { + contents[_ASM] = __expectString(output[_ASM]); } - if (output["ActivityStreamStatus"] !== undefined) { - contents.ActivityStreamStatus = __expectString(output["ActivityStreamStatus"]); + if (output[_ASS] != null) { + contents[_ASS] = __expectString(output[_ASS]); } - if (output["ActivityStreamKmsKeyId"] !== undefined) { - contents.ActivityStreamKmsKeyId = __expectString(output["ActivityStreamKmsKeyId"]); + if (output[_ASKKI] != null) { + contents[_ASKKI] = __expectString(output[_ASKKI]); } - if (output["ActivityStreamKinesisStreamName"] !== undefined) { - contents.ActivityStreamKinesisStreamName = __expectString(output["ActivityStreamKinesisStreamName"]); + if (output[_ASKSN] != null) { + contents[_ASKSN] = __expectString(output[_ASKSN]); } - if (output["CopyTagsToSnapshot"] !== undefined) { - contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]); + if (output[_CTTS] != null) { + contents[_CTTS] = __parseBoolean(output[_CTTS]); } - if (output["CrossAccountClone"] !== undefined) { - contents.CrossAccountClone = __parseBoolean(output["CrossAccountClone"]); + if (output[_CAC] != null) { + contents[_CAC] = __parseBoolean(output[_CAC]); } if (output.DomainMemberships === "") { - contents.DomainMemberships = []; - } else if ( - output["DomainMemberships"] !== undefined && - output["DomainMemberships"]["DomainMembership"] !== undefined - ) { - contents.DomainMemberships = de_DomainMembershipList( - __getArrayIfSingleItem(output["DomainMemberships"]["DomainMembership"]), - context - ); + contents[_DM] = []; + } else if (output[_DM] != null && output[_DM][_DMo] != null) { + contents[_DM] = de_DomainMembershipList(__getArrayIfSingleItem(output[_DM][_DMo]), context); } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } - if (output["GlobalWriteForwardingStatus"] !== undefined) { - contents.GlobalWriteForwardingStatus = __expectString(output["GlobalWriteForwardingStatus"]); + if (output[_GWFS] != null) { + contents[_GWFS] = __expectString(output[_GWFS]); } - if (output["GlobalWriteForwardingRequested"] !== undefined) { - contents.GlobalWriteForwardingRequested = __parseBoolean(output["GlobalWriteForwardingRequested"]); + if (output[_GWFR] != null) { + contents[_GWFR] = __parseBoolean(output[_GWFR]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_ClusterPendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_ClusterPendingModifiedValues(output[_PMV], context); } - if (output["DBClusterInstanceClass"] !== undefined) { - contents.DBClusterInstanceClass = __expectString(output["DBClusterInstanceClass"]); + if (output[_DBCIC] != null) { + contents[_DBCIC] = __expectString(output[_DBCIC]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["PubliclyAccessible"] !== undefined) { - contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]); + if (output[_PA] != null) { + contents[_PA] = __parseBoolean(output[_PA]); } - if (output["AutoMinorVersionUpgrade"] !== undefined) { - contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); + if (output[_AMVU] != null) { + contents[_AMVU] = __parseBoolean(output[_AMVU]); } - if (output["MonitoringInterval"] !== undefined) { - contents.MonitoringInterval = __strictParseInt32(output["MonitoringInterval"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["MonitoringRoleArn"] !== undefined) { - contents.MonitoringRoleArn = __expectString(output["MonitoringRoleArn"]); + if (output[_MRA] != null) { + contents[_MRA] = __expectString(output[_MRA]); } - if (output["PerformanceInsightsEnabled"] !== undefined) { - contents.PerformanceInsightsEnabled = __parseBoolean(output["PerformanceInsightsEnabled"]); + if (output[_PIE] != null) { + contents[_PIE] = __parseBoolean(output[_PIE]); } - if (output["PerformanceInsightsKMSKeyId"] !== undefined) { - contents.PerformanceInsightsKMSKeyId = __expectString(output["PerformanceInsightsKMSKeyId"]); + if (output[_PIKMSKI] != null) { + contents[_PIKMSKI] = __expectString(output[_PIKMSKI]); } - if (output["PerformanceInsightsRetentionPeriod"] !== undefined) { - contents.PerformanceInsightsRetentionPeriod = __strictParseInt32( - output["PerformanceInsightsRetentionPeriod"] - ) as number; + if (output[_PIRP] != null) { + contents[_PIRP] = __strictParseInt32(output[_PIRP]) as number; } - if (output["ServerlessV2ScalingConfiguration"] !== undefined) { - contents.ServerlessV2ScalingConfiguration = de_ServerlessV2ScalingConfigurationInfo( - output["ServerlessV2ScalingConfiguration"], - context - ); + if (output[_SVSC] != null) { + contents[_SVSC] = de_ServerlessV2ScalingConfigurationInfo(output[_SVSC], context); } - if (output["NetworkType"] !== undefined) { - contents.NetworkType = __expectString(output["NetworkType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["DBSystemId"] !== undefined) { - contents.DBSystemId = __expectString(output["DBSystemId"]); + if (output[_DBSI] != null) { + contents[_DBSI] = __expectString(output[_DBSI]); } - if (output["MasterUserSecret"] !== undefined) { - contents.MasterUserSecret = de_MasterUserSecret(output["MasterUserSecret"], context); + if (output[_MUS] != null) { + contents[_MUS] = de_MasterUserSecret(output[_MUS], context); } - if (output["IOOptimizedNextAllowedModificationTime"] !== undefined) { - contents.IOOptimizedNextAllowedModificationTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["IOOptimizedNextAllowedModificationTime"]) - ); + if (output[_IOONAMT] != null) { + contents[_IOONAMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_IOONAMT])); } - if (output["LocalWriteForwardingStatus"] !== undefined) { - contents.LocalWriteForwardingStatus = __expectString(output["LocalWriteForwardingStatus"]); + if (output[_LWFS] != null) { + contents[_LWFS] = __expectString(output[_LWFS]); } - if (output["AwsBackupRecoveryPointArn"] !== undefined) { - contents.AwsBackupRecoveryPointArn = __expectString(output["AwsBackupRecoveryPointArn"]); + if (output[_ABRPA] != null) { + contents[_ABRPA] = __expectString(output[_ABRPA]); } return contents; }; @@ -21530,8 +21453,8 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { */ const de_DBClusterAlreadyExistsFault = (output: any, context: __SerdeContext): DBClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21541,85 +21464,79 @@ const de_DBClusterAlreadyExistsFault = (output: any, context: __SerdeContext): D */ const de_DBClusterAutomatedBackup = (output: any, context: __SerdeContext): DBClusterAutomatedBackup => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["DBClusterAutomatedBackupsArn"] !== undefined) { - contents.DBClusterAutomatedBackupsArn = __expectString(output["DBClusterAutomatedBackupsArn"]); + if (output[_DBCABA] != null) { + contents[_DBCABA] = __expectString(output[_DBCABA]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["RestoreWindow"] !== undefined) { - contents.RestoreWindow = de_RestoreWindow(output["RestoreWindow"], context); + if (output[_RW] != null) { + contents[_RW] = de_RestoreWindow(output[_RW], context); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["DbClusterResourceId"] !== undefined) { - contents.DbClusterResourceId = __expectString(output["DbClusterResourceId"]); + if (output[_DCRI] != null) { + contents[_DCRI] = __expectString(output[_DCRI]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DBClusterArn"] !== undefined) { - contents.DBClusterArn = __expectString(output["DBClusterArn"]); + if (output[_DBCA] != null) { + contents[_DBCA] = __expectString(output[_DBCA]); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["EngineMode"] !== undefined) { - contents.EngineMode = __expectString(output["EngineMode"]); + if (output[_EMn] != null) { + contents[_EMn] = __expectString(output[_EMn]); } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["AwsBackupRecoveryPointArn"] !== undefined) { - contents.AwsBackupRecoveryPointArn = __expectString(output["AwsBackupRecoveryPointArn"]); + if (output[_ABRPA] != null) { + contents[_ABRPA] = __expectString(output[_ABRPA]); } return contents; }; @@ -21640,19 +21557,13 @@ const de_DBClusterAutomatedBackupList = (output: any, context: __SerdeContext): */ const de_DBClusterAutomatedBackupMessage = (output: any, context: __SerdeContext): DBClusterAutomatedBackupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBClusterAutomatedBackups === "") { - contents.DBClusterAutomatedBackups = []; - } else if ( - output["DBClusterAutomatedBackups"] !== undefined && - output["DBClusterAutomatedBackups"]["DBClusterAutomatedBackup"] !== undefined - ) { - contents.DBClusterAutomatedBackups = de_DBClusterAutomatedBackupList( - __getArrayIfSingleItem(output["DBClusterAutomatedBackups"]["DBClusterAutomatedBackup"]), - context - ); + contents[_DBCAB] = []; + } else if (output[_DBCAB] != null && output[_DBCAB][_DBCABl] != null) { + contents[_DBCAB] = de_DBClusterAutomatedBackupList(__getArrayIfSingleItem(output[_DBCAB][_DBCABl]), context); } return contents; }; @@ -21665,8 +21576,8 @@ const de_DBClusterAutomatedBackupNotFoundFault = ( context: __SerdeContext ): DBClusterAutomatedBackupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21679,8 +21590,8 @@ const de_DBClusterAutomatedBackupQuotaExceededFault = ( context: __SerdeContext ): DBClusterAutomatedBackupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21690,25 +21601,23 @@ const de_DBClusterAutomatedBackupQuotaExceededFault = ( */ const de_DBClusterBacktrack = (output: any, context: __SerdeContext): DBClusterBacktrack => { const contents: any = {}; - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["BacktrackIdentifier"] !== undefined) { - contents.BacktrackIdentifier = __expectString(output["BacktrackIdentifier"]); + if (output[_BI] != null) { + contents[_BI] = __expectString(output[_BI]); } - if (output["BacktrackTo"] !== undefined) { - contents.BacktrackTo = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["BacktrackTo"])); + if (output[_BT] != null) { + contents[_BT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_BT])); } - if (output["BacktrackedFrom"] !== undefined) { - contents.BacktrackedFrom = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["BacktrackedFrom"])); + if (output[_BF] != null) { + contents[_BF] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_BF])); } - if (output["BacktrackRequestCreationTime"] !== undefined) { - contents.BacktrackRequestCreationTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["BacktrackRequestCreationTime"]) - ); + if (output[_BRCT] != null) { + contents[_BRCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_BRCT])); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -21729,19 +21638,13 @@ const de_DBClusterBacktrackList = (output: any, context: __SerdeContext): DBClus */ const de_DBClusterBacktrackMessage = (output: any, context: __SerdeContext): DBClusterBacktrackMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBClusterBacktracks === "") { - contents.DBClusterBacktracks = []; - } else if ( - output["DBClusterBacktracks"] !== undefined && - output["DBClusterBacktracks"]["DBClusterBacktrack"] !== undefined - ) { - contents.DBClusterBacktracks = de_DBClusterBacktrackList( - __getArrayIfSingleItem(output["DBClusterBacktracks"]["DBClusterBacktrack"]), - context - ); + contents[_DBCB] = []; + } else if (output[_DBCB] != null && output[_DBCB][_DBCBl] != null) { + contents[_DBCB] = de_DBClusterBacktrackList(__getArrayIfSingleItem(output[_DBCB][_DBCBl]), context); } return contents; }; @@ -21751,8 +21654,8 @@ const de_DBClusterBacktrackMessage = (output: any, context: __SerdeContext): DBC */ const de_DBClusterBacktrackNotFoundFault = (output: any, context: __SerdeContext): DBClusterBacktrackNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21762,20 +21665,20 @@ const de_DBClusterBacktrackNotFoundFault = (output: any, context: __SerdeContext */ const de_DBClusterCapacityInfo = (output: any, context: __SerdeContext): DBClusterCapacityInfo => { const contents: any = {}; - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["PendingCapacity"] !== undefined) { - contents.PendingCapacity = __strictParseInt32(output["PendingCapacity"]) as number; + if (output[_PC] != null) { + contents[_PC] = __strictParseInt32(output[_PC]) as number; } - if (output["CurrentCapacity"] !== undefined) { - contents.CurrentCapacity = __strictParseInt32(output["CurrentCapacity"]) as number; + if (output[_CC] != null) { + contents[_CC] = __strictParseInt32(output[_CC]) as number; } - if (output["SecondsBeforeTimeout"] !== undefined) { - contents.SecondsBeforeTimeout = __strictParseInt32(output["SecondsBeforeTimeout"]) as number; + if (output[_SBT] != null) { + contents[_SBT] = __strictParseInt32(output[_SBT]) as number; } - if (output["TimeoutAction"] !== undefined) { - contents.TimeoutAction = __expectString(output["TimeoutAction"]); + if (output[_TAi] != null) { + contents[_TAi] = __expectString(output[_TAi]); } return contents; }; @@ -21785,39 +21688,39 @@ const de_DBClusterCapacityInfo = (output: any, context: __SerdeContext): DBClust */ const de_DBClusterEndpoint = (output: any, context: __SerdeContext): DBClusterEndpoint => { const contents: any = {}; - if (output["DBClusterEndpointIdentifier"] !== undefined) { - contents.DBClusterEndpointIdentifier = __expectString(output["DBClusterEndpointIdentifier"]); + if (output[_DBCEI] != null) { + contents[_DBCEI] = __expectString(output[_DBCEI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["DBClusterEndpointResourceIdentifier"] !== undefined) { - contents.DBClusterEndpointResourceIdentifier = __expectString(output["DBClusterEndpointResourceIdentifier"]); + if (output[_DBCERI] != null) { + contents[_DBCERI] = __expectString(output[_DBCERI]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EndpointType"] !== undefined) { - contents.EndpointType = __expectString(output["EndpointType"]); + if (output[_ET] != null) { + contents[_ET] = __expectString(output[_ET]); } - if (output["CustomEndpointType"] !== undefined) { - contents.CustomEndpointType = __expectString(output["CustomEndpointType"]); + if (output[_CETu] != null) { + contents[_CETu] = __expectString(output[_CETu]); } if (output.StaticMembers === "") { - contents.StaticMembers = []; - } else if (output["StaticMembers"] !== undefined && output["StaticMembers"]["member"] !== undefined) { - contents.StaticMembers = de_StringList(__getArrayIfSingleItem(output["StaticMembers"]["member"]), context); + contents[_SM] = []; + } else if (output[_SM] != null && output[_SM][_me] != null) { + contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } if (output.ExcludedMembers === "") { - contents.ExcludedMembers = []; - } else if (output["ExcludedMembers"] !== undefined && output["ExcludedMembers"]["member"] !== undefined) { - contents.ExcludedMembers = de_StringList(__getArrayIfSingleItem(output["ExcludedMembers"]["member"]), context); + contents[_EM] = []; + } else if (output[_EM] != null && output[_EM][_me] != null) { + contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); } - if (output["DBClusterEndpointArn"] !== undefined) { - contents.DBClusterEndpointArn = __expectString(output["DBClusterEndpointArn"]); + if (output[_DBCEA] != null) { + contents[_DBCEA] = __expectString(output[_DBCEA]); } return contents; }; @@ -21830,8 +21733,8 @@ const de_DBClusterEndpointAlreadyExistsFault = ( context: __SerdeContext ): DBClusterEndpointAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21852,19 +21755,13 @@ const de_DBClusterEndpointList = (output: any, context: __SerdeContext): DBClust */ const de_DBClusterEndpointMessage = (output: any, context: __SerdeContext): DBClusterEndpointMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBClusterEndpoints === "") { - contents.DBClusterEndpoints = []; - } else if ( - output["DBClusterEndpoints"] !== undefined && - output["DBClusterEndpoints"]["DBClusterEndpointList"] !== undefined - ) { - contents.DBClusterEndpoints = de_DBClusterEndpointList( - __getArrayIfSingleItem(output["DBClusterEndpoints"]["DBClusterEndpointList"]), - context - ); + contents[_DBCE] = []; + } else if (output[_DBCE] != null && output[_DBCE][_DBCEL] != null) { + contents[_DBCE] = de_DBClusterEndpointList(__getArrayIfSingleItem(output[_DBCE][_DBCEL]), context); } return contents; }; @@ -21874,8 +21771,8 @@ const de_DBClusterEndpointMessage = (output: any, context: __SerdeContext): DBCl */ const de_DBClusterEndpointNotFoundFault = (output: any, context: __SerdeContext): DBClusterEndpointNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21888,8 +21785,8 @@ const de_DBClusterEndpointQuotaExceededFault = ( context: __SerdeContext ): DBClusterEndpointQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21910,17 +21807,17 @@ const de_DBClusterList = (output: any, context: __SerdeContext): DBCluster[] => */ const de_DBClusterMember = (output: any, context: __SerdeContext): DBClusterMember => { const contents: any = {}; - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["IsClusterWriter"] !== undefined) { - contents.IsClusterWriter = __parseBoolean(output["IsClusterWriter"]); + if (output[_ICW] != null) { + contents[_ICW] = __parseBoolean(output[_ICW]); } - if (output["DBClusterParameterGroupStatus"] !== undefined) { - contents.DBClusterParameterGroupStatus = __expectString(output["DBClusterParameterGroupStatus"]); + if (output[_DBCPGS] != null) { + contents[_DBCPGS] = __expectString(output[_DBCPGS]); } - if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; + if (output[_PT] != null) { + contents[_PT] = __strictParseInt32(output[_PT]) as number; } return contents; }; @@ -21941,13 +21838,13 @@ const de_DBClusterMemberList = (output: any, context: __SerdeContext): DBCluster */ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBClusters === "") { - contents.DBClusters = []; - } else if (output["DBClusters"] !== undefined && output["DBClusters"]["DBCluster"] !== undefined) { - contents.DBClusters = de_DBClusterList(__getArrayIfSingleItem(output["DBClusters"]["DBCluster"]), context); + contents[_DBCl] = []; + } else if (output[_DBCl] != null && output[_DBCl][_DBC] != null) { + contents[_DBCl] = de_DBClusterList(__getArrayIfSingleItem(output[_DBCl][_DBC]), context); } return contents; }; @@ -21957,8 +21854,8 @@ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMes */ const de_DBClusterNotFoundFault = (output: any, context: __SerdeContext): DBClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21979,11 +21876,11 @@ const de_DBClusterOptionGroupMemberships = (output: any, context: __SerdeContext */ const de_DBClusterOptionGroupStatus = (output: any, context: __SerdeContext): DBClusterOptionGroupStatus => { const contents: any = {}; - if (output["DBClusterOptionGroupName"] !== undefined) { - contents.DBClusterOptionGroupName = __expectString(output["DBClusterOptionGroupName"]); + if (output[_DBCOGN] != null) { + contents[_DBCOGN] = __expectString(output[_DBCOGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -21993,17 +21890,17 @@ const de_DBClusterOptionGroupStatus = (output: any, context: __SerdeContext): DB */ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClusterParameterGroup => { const contents: any = {}; - if (output["DBClusterParameterGroupName"] !== undefined) { - contents.DBClusterParameterGroupName = __expectString(output["DBClusterParameterGroupName"]); + if (output[_DBCPGN] != null) { + contents[_DBCPGN] = __expectString(output[_DBCPGN]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DBClusterParameterGroupArn"] !== undefined) { - contents.DBClusterParameterGroupArn = __expectString(output["DBClusterParameterGroupArn"]); + if (output[_DBCPGA] != null) { + contents[_DBCPGA] = __expectString(output[_DBCPGA]); } return contents; }; @@ -22014,12 +21911,12 @@ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClu const de_DBClusterParameterGroupDetails = (output: any, context: __SerdeContext): DBClusterParameterGroupDetails => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -22043,8 +21940,8 @@ const de_DBClusterParameterGroupNameMessage = ( context: __SerdeContext ): DBClusterParameterGroupNameMessage => { const contents: any = {}; - if (output["DBClusterParameterGroupName"] !== undefined) { - contents.DBClusterParameterGroupName = __expectString(output["DBClusterParameterGroupName"]); + if (output[_DBCPGN] != null) { + contents[_DBCPGN] = __expectString(output[_DBCPGN]); } return contents; }; @@ -22057,8 +21954,8 @@ const de_DBClusterParameterGroupNotFoundFault = ( context: __SerdeContext ): DBClusterParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22068,19 +21965,13 @@ const de_DBClusterParameterGroupNotFoundFault = ( */ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext): DBClusterParameterGroupsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBClusterParameterGroups === "") { - contents.DBClusterParameterGroups = []; - } else if ( - output["DBClusterParameterGroups"] !== undefined && - output["DBClusterParameterGroups"]["DBClusterParameterGroup"] !== undefined - ) { - contents.DBClusterParameterGroups = de_DBClusterParameterGroupList( - __getArrayIfSingleItem(output["DBClusterParameterGroups"]["DBClusterParameterGroup"]), - context - ); + contents[_DBCPGl] = []; + } else if (output[_DBCPGl] != null && output[_DBCPGl][_DBCPG] != null) { + contents[_DBCPGl] = de_DBClusterParameterGroupList(__getArrayIfSingleItem(output[_DBCPGl][_DBCPG]), context); } return contents; }; @@ -22090,8 +21981,8 @@ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext */ const de_DBClusterQuotaExceededFault = (output: any, context: __SerdeContext): DBClusterQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22101,14 +21992,14 @@ const de_DBClusterQuotaExceededFault = (output: any, context: __SerdeContext): D */ const de_DBClusterRole = (output: any, context: __SerdeContext): DBClusterRole => { const contents: any = {}; - if (output["RoleArn"] !== undefined) { - contents.RoleArn = __expectString(output["RoleArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["FeatureName"] !== undefined) { - contents.FeatureName = __expectString(output["FeatureName"]); + if (output[_FN] != null) { + contents[_FN] = __expectString(output[_FN]); } return contents; }; @@ -22118,8 +22009,8 @@ const de_DBClusterRole = (output: any, context: __SerdeContext): DBClusterRole = */ const de_DBClusterRoleAlreadyExistsFault = (output: any, context: __SerdeContext): DBClusterRoleAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22129,8 +22020,8 @@ const de_DBClusterRoleAlreadyExistsFault = (output: any, context: __SerdeContext */ const de_DBClusterRoleNotFoundFault = (output: any, context: __SerdeContext): DBClusterRoleNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22140,8 +22031,8 @@ const de_DBClusterRoleNotFoundFault = (output: any, context: __SerdeContext): DB */ const de_DBClusterRoleQuotaExceededFault = (output: any, context: __SerdeContext): DBClusterRoleQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22163,89 +22054,83 @@ const de_DBClusterRoles = (output: any, context: __SerdeContext): DBClusterRole[ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSnapshot => { const contents: any = {}; if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZones( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["DBClusterSnapshotIdentifier"] !== undefined) { - contents.DBClusterSnapshotIdentifier = __expectString(output["DBClusterSnapshotIdentifier"]); + if (output[_DBCSI] != null) { + contents[_DBCSI] = __expectString(output[_DBCSI]); } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["SnapshotCreateTime"] !== undefined) { - contents.SnapshotCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotCreateTime"])); + if (output[_SCT] != null) { + contents[_SCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCT])); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineMode"] !== undefined) { - contents.EngineMode = __expectString(output["EngineMode"]); + if (output[_EMn] != null) { + contents[_EMn] = __expectString(output[_EMn]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["SnapshotType"] !== undefined) { - contents.SnapshotType = __expectString(output["SnapshotType"]); + if (output[_STn] != null) { + contents[_STn] = __expectString(output[_STn]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; + if (output[_PP] != null) { + contents[_PP] = __strictParseInt32(output[_PP]) as number; } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DBClusterSnapshotArn"] !== undefined) { - contents.DBClusterSnapshotArn = __expectString(output["DBClusterSnapshotArn"]); + if (output[_DBCSA] != null) { + contents[_DBCSA] = __expectString(output[_DBCSA]); } - if (output["SourceDBClusterSnapshotArn"] !== undefined) { - contents.SourceDBClusterSnapshotArn = __expectString(output["SourceDBClusterSnapshotArn"]); + if (output[_SDBCSA] != null) { + contents[_SDBCSA] = __expectString(output[_SDBCSA]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } - if (output["DBSystemId"] !== undefined) { - contents.DBSystemId = __expectString(output["DBSystemId"]); + if (output[_DBSI] != null) { + contents[_DBSI] = __expectString(output[_DBSI]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["DbClusterResourceId"] !== undefined) { - contents.DbClusterResourceId = __expectString(output["DbClusterResourceId"]); + if (output[_DCRI] != null) { + contents[_DCRI] = __expectString(output[_DCRI]); } return contents; }; @@ -22258,8 +22143,8 @@ const de_DBClusterSnapshotAlreadyExistsFault = ( context: __SerdeContext ): DBClusterSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22269,16 +22154,13 @@ const de_DBClusterSnapshotAlreadyExistsFault = ( */ const de_DBClusterSnapshotAttribute = (output: any, context: __SerdeContext): DBClusterSnapshotAttribute => { const contents: any = {}; - if (output["AttributeName"] !== undefined) { - contents.AttributeName = __expectString(output["AttributeName"]); + if (output[_AN] != null) { + contents[_AN] = __expectString(output[_AN]); } if (output.AttributeValues === "") { - contents.AttributeValues = []; - } else if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) { - contents.AttributeValues = de_AttributeValueList( - __getArrayIfSingleItem(output["AttributeValues"]["AttributeValue"]), - context - ); + contents[_AVt] = []; + } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { + contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); } return contents; }; @@ -22302,19 +22184,13 @@ const de_DBClusterSnapshotAttributesResult = ( context: __SerdeContext ): DBClusterSnapshotAttributesResult => { const contents: any = {}; - if (output["DBClusterSnapshotIdentifier"] !== undefined) { - contents.DBClusterSnapshotIdentifier = __expectString(output["DBClusterSnapshotIdentifier"]); + if (output[_DBCSI] != null) { + contents[_DBCSI] = __expectString(output[_DBCSI]); } if (output.DBClusterSnapshotAttributes === "") { - contents.DBClusterSnapshotAttributes = []; - } else if ( - output["DBClusterSnapshotAttributes"] !== undefined && - output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"] !== undefined - ) { - contents.DBClusterSnapshotAttributes = de_DBClusterSnapshotAttributeList( - __getArrayIfSingleItem(output["DBClusterSnapshotAttributes"]["DBClusterSnapshotAttribute"]), - context - ); + contents[_DBCSAl] = []; + } else if (output[_DBCSAl] != null && output[_DBCSAl][_DBCSAlu] != null) { + contents[_DBCSAl] = de_DBClusterSnapshotAttributeList(__getArrayIfSingleItem(output[_DBCSAl][_DBCSAlu]), context); } return contents; }; @@ -22335,19 +22211,13 @@ const de_DBClusterSnapshotList = (output: any, context: __SerdeContext): DBClust */ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBClusterSnapshotMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBClusterSnapshots === "") { - contents.DBClusterSnapshots = []; - } else if ( - output["DBClusterSnapshots"] !== undefined && - output["DBClusterSnapshots"]["DBClusterSnapshot"] !== undefined - ) { - contents.DBClusterSnapshots = de_DBClusterSnapshotList( - __getArrayIfSingleItem(output["DBClusterSnapshots"]["DBClusterSnapshot"]), - context - ); + contents[_DBCSl] = []; + } else if (output[_DBCSl] != null && output[_DBCSl][_DBCS] != null) { + contents[_DBCSl] = de_DBClusterSnapshotList(__getArrayIfSingleItem(output[_DBCSl][_DBCS]), context); } return contents; }; @@ -22357,8 +22227,8 @@ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBCl */ const de_DBClusterSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBClusterSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22368,17 +22238,17 @@ const de_DBClusterSnapshotNotFoundFault = (output: any, context: __SerdeContext) */ const de_DBClusterStatusInfo = (output: any, context: __SerdeContext): DBClusterStatusInfo => { const contents: any = {}; - if (output["StatusType"] !== undefined) { - contents.StatusType = __expectString(output["StatusType"]); + if (output[_STtat] != null) { + contents[_STtat] = __expectString(output[_STtat]); } - if (output["Normal"] !== undefined) { - contents.Normal = __parseBoolean(output["Normal"]); + if (output[_No] != null) { + contents[_No] = __parseBoolean(output[_No]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -22399,160 +22269,122 @@ const de_DBClusterStatusInfoList = (output: any, context: __SerdeContext): DBClu */ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersion => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["DBEngineDescription"] !== undefined) { - contents.DBEngineDescription = __expectString(output["DBEngineDescription"]); + if (output[_DBED] != null) { + contents[_DBED] = __expectString(output[_DBED]); } - if (output["DBEngineVersionDescription"] !== undefined) { - contents.DBEngineVersionDescription = __expectString(output["DBEngineVersionDescription"]); + if (output[_DBEVD] != null) { + contents[_DBEVD] = __expectString(output[_DBEVD]); } - if (output["DefaultCharacterSet"] !== undefined) { - contents.DefaultCharacterSet = de_CharacterSet(output["DefaultCharacterSet"], context); + if (output[_DCS] != null) { + contents[_DCS] = de_CharacterSet(output[_DCS], context); } - if (output["Image"] !== undefined) { - contents.Image = de_CustomDBEngineVersionAMI(output["Image"], context); + if (output[_Im] != null) { + contents[_Im] = de_CustomDBEngineVersionAMI(output[_Im], context); } - if (output["DBEngineMediaType"] !== undefined) { - contents.DBEngineMediaType = __expectString(output["DBEngineMediaType"]); + if (output[_DBEMT] != null) { + contents[_DBEMT] = __expectString(output[_DBEMT]); } if (output.SupportedCharacterSets === "") { - contents.SupportedCharacterSets = []; - } else if ( - output["SupportedCharacterSets"] !== undefined && - output["SupportedCharacterSets"]["CharacterSet"] !== undefined - ) { - contents.SupportedCharacterSets = de_SupportedCharacterSetsList( - __getArrayIfSingleItem(output["SupportedCharacterSets"]["CharacterSet"]), - context - ); + contents[_SCS] = []; + } else if (output[_SCS] != null && output[_SCS][_CS] != null) { + contents[_SCS] = de_SupportedCharacterSetsList(__getArrayIfSingleItem(output[_SCS][_CS]), context); } if (output.SupportedNcharCharacterSets === "") { - contents.SupportedNcharCharacterSets = []; - } else if ( - output["SupportedNcharCharacterSets"] !== undefined && - output["SupportedNcharCharacterSets"]["CharacterSet"] !== undefined - ) { - contents.SupportedNcharCharacterSets = de_SupportedCharacterSetsList( - __getArrayIfSingleItem(output["SupportedNcharCharacterSets"]["CharacterSet"]), - context - ); + contents[_SNCS] = []; + } else if (output[_SNCS] != null && output[_SNCS][_CS] != null) { + contents[_SNCS] = de_SupportedCharacterSetsList(__getArrayIfSingleItem(output[_SNCS][_CS]), context); } if (output.ValidUpgradeTarget === "") { - contents.ValidUpgradeTarget = []; - } else if ( - output["ValidUpgradeTarget"] !== undefined && - output["ValidUpgradeTarget"]["UpgradeTarget"] !== undefined - ) { - contents.ValidUpgradeTarget = de_ValidUpgradeTargetList( - __getArrayIfSingleItem(output["ValidUpgradeTarget"]["UpgradeTarget"]), - context - ); + contents[_VUT] = []; + } else if (output[_VUT] != null && output[_VUT][_UT] != null) { + contents[_VUT] = de_ValidUpgradeTargetList(__getArrayIfSingleItem(output[_VUT][_UT]), context); } if (output.SupportedTimezones === "") { - contents.SupportedTimezones = []; - } else if (output["SupportedTimezones"] !== undefined && output["SupportedTimezones"]["Timezone"] !== undefined) { - contents.SupportedTimezones = de_SupportedTimezonesList( - __getArrayIfSingleItem(output["SupportedTimezones"]["Timezone"]), - context - ); + contents[_STu] = []; + } else if (output[_STu] != null && output[_STu][_Ti] != null) { + contents[_STu] = de_SupportedTimezonesList(__getArrayIfSingleItem(output[_STu][_Ti]), context); } if (output.ExportableLogTypes === "") { - contents.ExportableLogTypes = []; - } else if (output["ExportableLogTypes"] !== undefined && output["ExportableLogTypes"]["member"] !== undefined) { - contents.ExportableLogTypes = de_LogTypeList( - __getArrayIfSingleItem(output["ExportableLogTypes"]["member"]), - context - ); + contents[_ELTx] = []; + } else if (output[_ELTx] != null && output[_ELTx][_me] != null) { + contents[_ELTx] = de_LogTypeList(__getArrayIfSingleItem(output[_ELTx][_me]), context); } - if (output["SupportsLogExportsToCloudwatchLogs"] !== undefined) { - contents.SupportsLogExportsToCloudwatchLogs = __parseBoolean(output["SupportsLogExportsToCloudwatchLogs"]); + if (output[_SLETCL] != null) { + contents[_SLETCL] = __parseBoolean(output[_SLETCL]); } - if (output["SupportsReadReplica"] !== undefined) { - contents.SupportsReadReplica = __parseBoolean(output["SupportsReadReplica"]); + if (output[_SRRu] != null) { + contents[_SRRu] = __parseBoolean(output[_SRRu]); } if (output.SupportedEngineModes === "") { - contents.SupportedEngineModes = []; - } else if (output["SupportedEngineModes"] !== undefined && output["SupportedEngineModes"]["member"] !== undefined) { - contents.SupportedEngineModes = de_EngineModeList( - __getArrayIfSingleItem(output["SupportedEngineModes"]["member"]), - context - ); + contents[_SEM] = []; + } else if (output[_SEM] != null && output[_SEM][_me] != null) { + contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); } if (output.SupportedFeatureNames === "") { - contents.SupportedFeatureNames = []; - } else if (output["SupportedFeatureNames"] !== undefined && output["SupportedFeatureNames"]["member"] !== undefined) { - contents.SupportedFeatureNames = de_FeatureNameList( - __getArrayIfSingleItem(output["SupportedFeatureNames"]["member"]), - context - ); + contents[_SFN] = []; + } else if (output[_SFN] != null && output[_SFN][_me] != null) { + contents[_SFN] = de_FeatureNameList(__getArrayIfSingleItem(output[_SFN][_me]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["SupportsParallelQuery"] !== undefined) { - contents.SupportsParallelQuery = __parseBoolean(output["SupportsParallelQuery"]); + if (output[_SPQ] != null) { + contents[_SPQ] = __parseBoolean(output[_SPQ]); } - if (output["SupportsGlobalDatabases"] !== undefined) { - contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]); + if (output[_SGD] != null) { + contents[_SGD] = __parseBoolean(output[_SGD]); } - if (output["MajorEngineVersion"] !== undefined) { - contents.MajorEngineVersion = __expectString(output["MajorEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } - if (output["DatabaseInstallationFilesS3BucketName"] !== undefined) { - contents.DatabaseInstallationFilesS3BucketName = __expectString(output["DatabaseInstallationFilesS3BucketName"]); + if (output[_DIFSBN] != null) { + contents[_DIFSBN] = __expectString(output[_DIFSBN]); } - if (output["DatabaseInstallationFilesS3Prefix"] !== undefined) { - contents.DatabaseInstallationFilesS3Prefix = __expectString(output["DatabaseInstallationFilesS3Prefix"]); + if (output[_DIFSP] != null) { + contents[_DIFSP] = __expectString(output[_DIFSP]); } - if (output["DBEngineVersionArn"] !== undefined) { - contents.DBEngineVersionArn = __expectString(output["DBEngineVersionArn"]); + if (output[_DBEVA] != null) { + contents[_DBEVA] = __expectString(output[_DBEVA]); } - if (output["KMSKeyId"] !== undefined) { - contents.KMSKeyId = __expectString(output["KMSKeyId"]); + if (output[_KMSKI] != null) { + contents[_KMSKI] = __expectString(output[_KMSKI]); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } - if (output["SupportsBabelfish"] !== undefined) { - contents.SupportsBabelfish = __parseBoolean(output["SupportsBabelfish"]); + if (output[_SB] != null) { + contents[_SB] = __parseBoolean(output[_SB]); } - if (output["CustomDBEngineVersionManifest"] !== undefined) { - contents.CustomDBEngineVersionManifest = __expectString(output["CustomDBEngineVersionManifest"]); + if (output[_CDBEVM] != null) { + contents[_CDBEVM] = __expectString(output[_CDBEVM]); } - if (output["SupportsCertificateRotationWithoutRestart"] !== undefined) { - contents.SupportsCertificateRotationWithoutRestart = __parseBoolean( - output["SupportsCertificateRotationWithoutRestart"] - ); + if (output[_SCRWR] != null) { + contents[_SCRWR] = __parseBoolean(output[_SCRWR]); } if (output.SupportedCACertificateIdentifiers === "") { - contents.SupportedCACertificateIdentifiers = []; - } else if ( - output["SupportedCACertificateIdentifiers"] !== undefined && - output["SupportedCACertificateIdentifiers"]["member"] !== undefined - ) { - contents.SupportedCACertificateIdentifiers = de_CACertificateIdentifiersList( - __getArrayIfSingleItem(output["SupportedCACertificateIdentifiers"]["member"]), - context - ); + contents[_SCACI] = []; + } else if (output[_SCACI] != null && output[_SCACI][_me] != null) { + contents[_SCACI] = de_CACertificateIdentifiersList(__getArrayIfSingleItem(output[_SCACI][_me]), context); } - if (output["SupportsLocalWriteForwarding"] !== undefined) { - contents.SupportsLocalWriteForwarding = __parseBoolean(output["SupportsLocalWriteForwarding"]); + if (output[_SLWF] != null) { + contents[_SLWF] = __parseBoolean(output[_SLWF]); } - if (output["SupportsIntegrations"] !== undefined) { - contents.SupportsIntegrations = __parseBoolean(output["SupportsIntegrations"]); + if (output[_SIup] != null) { + contents[_SIup] = __parseBoolean(output[_SIup]); } return contents; }; @@ -22573,16 +22405,13 @@ const de_DBEngineVersionList = (output: any, context: __SerdeContext): DBEngineV */ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngineVersionMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBEngineVersions === "") { - contents.DBEngineVersions = []; - } else if (output["DBEngineVersions"] !== undefined && output["DBEngineVersions"]["DBEngineVersion"] !== undefined) { - contents.DBEngineVersions = de_DBEngineVersionList( - __getArrayIfSingleItem(output["DBEngineVersions"]["DBEngineVersion"]), - context - ); + contents[_DBEV] = []; + } else if (output[_DBEV] != null && output[_DBEV][_DBEVn] != null) { + contents[_DBEV] = de_DBEngineVersionList(__getArrayIfSingleItem(output[_DBEV][_DBEVn]), context); } return contents; }; @@ -22592,355 +22421,295 @@ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngi */ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { const contents: any = {}; - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["DBInstanceStatus"] !== undefined) { - contents.DBInstanceStatus = __expectString(output["DBInstanceStatus"]); + if (output[_DBIS] != null) { + contents[_DBIS] = __expectString(output[_DBIS]); } - if (output["AutomaticRestartTime"] !== undefined) { - contents.AutomaticRestartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AutomaticRestartTime"])); + if (output[_ART] != null) { + contents[_ART] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ART])); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["DBName"] !== undefined) { - contents.DBName = __expectString(output["DBName"]); + if (output[_DBN] != null) { + contents[_DBN] = __expectString(output[_DBN]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = de_Endpoint(output["Endpoint"], context); + if (output[_End] != null) { + contents[_End] = de_Endpoint(output[_End], context); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["InstanceCreateTime"] !== undefined) { - contents.InstanceCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["InstanceCreateTime"])); + if (output[_ICTn] != null) { + contents[_ICTn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ICTn])); } - if (output["PreferredBackupWindow"] !== undefined) { - contents.PreferredBackupWindow = __expectString(output["PreferredBackupWindow"]); + if (output[_PBW] != null) { + contents[_PBW] = __expectString(output[_PBW]); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } if (output.DBSecurityGroups === "") { - contents.DBSecurityGroups = []; - } else if (output["DBSecurityGroups"] !== undefined && output["DBSecurityGroups"]["DBSecurityGroup"] !== undefined) { - contents.DBSecurityGroups = de_DBSecurityGroupMembershipList( - __getArrayIfSingleItem(output["DBSecurityGroups"]["DBSecurityGroup"]), - context - ); + contents[_DBSG] = []; + } else if (output[_DBSG] != null && output[_DBSG][_DBSGe] != null) { + contents[_DBSG] = de_DBSecurityGroupMembershipList(__getArrayIfSingleItem(output[_DBSG][_DBSGe]), context); } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroupMembership"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroupMembership"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGMp] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGMp]), context); } if (output.DBParameterGroups === "") { - contents.DBParameterGroups = []; - } else if ( - output["DBParameterGroups"] !== undefined && - output["DBParameterGroups"]["DBParameterGroup"] !== undefined - ) { - contents.DBParameterGroups = de_DBParameterGroupStatusList( - __getArrayIfSingleItem(output["DBParameterGroups"]["DBParameterGroup"]), - context - ); + contents[_DBPGa] = []; + } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { + contents[_DBPGa] = de_DBParameterGroupStatusList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZv] != null) { + contents[_AZv] = __expectString(output[_AZv]); } - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSGu] != null) { + contents[_DBSGu] = de_DBSubnetGroup(output[_DBSGu], context); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_PendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_PendingModifiedValues(output[_PMV], context); } - if (output["LatestRestorableTime"] !== undefined) { - contents.LatestRestorableTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LatestRestorableTime"])); + if (output[_LRT] != null) { + contents[_LRT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LRT])); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["AutoMinorVersionUpgrade"] !== undefined) { - contents.AutoMinorVersionUpgrade = __parseBoolean(output["AutoMinorVersionUpgrade"]); + if (output[_AMVU] != null) { + contents[_AMVU] = __parseBoolean(output[_AMVU]); } - if (output["ReadReplicaSourceDBInstanceIdentifier"] !== undefined) { - contents.ReadReplicaSourceDBInstanceIdentifier = __expectString(output["ReadReplicaSourceDBInstanceIdentifier"]); + if (output[_RRSDBII] != null) { + contents[_RRSDBII] = __expectString(output[_RRSDBII]); } if (output.ReadReplicaDBInstanceIdentifiers === "") { - contents.ReadReplicaDBInstanceIdentifiers = []; - } else if ( - output["ReadReplicaDBInstanceIdentifiers"] !== undefined && - output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"] !== undefined - ) { - contents.ReadReplicaDBInstanceIdentifiers = de_ReadReplicaDBInstanceIdentifierList( - __getArrayIfSingleItem(output["ReadReplicaDBInstanceIdentifiers"]["ReadReplicaDBInstanceIdentifier"]), + contents[_RRDBII] = []; + } else if (output[_RRDBII] != null && output[_RRDBII][_RRDBIIe] != null) { + contents[_RRDBII] = de_ReadReplicaDBInstanceIdentifierList( + __getArrayIfSingleItem(output[_RRDBII][_RRDBIIe]), context ); } if (output.ReadReplicaDBClusterIdentifiers === "") { - contents.ReadReplicaDBClusterIdentifiers = []; - } else if ( - output["ReadReplicaDBClusterIdentifiers"] !== undefined && - output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"] !== undefined - ) { - contents.ReadReplicaDBClusterIdentifiers = de_ReadReplicaDBClusterIdentifierList( - __getArrayIfSingleItem(output["ReadReplicaDBClusterIdentifiers"]["ReadReplicaDBClusterIdentifier"]), + contents[_RRDBCI] = []; + } else if (output[_RRDBCI] != null && output[_RRDBCI][_RRDBCIe] != null) { + contents[_RRDBCI] = de_ReadReplicaDBClusterIdentifierList( + __getArrayIfSingleItem(output[_RRDBCI][_RRDBCIe]), context ); } - if (output["ReplicaMode"] !== undefined) { - contents.ReplicaMode = __expectString(output["ReplicaMode"]); + if (output[_RM] != null) { + contents[_RM] = __expectString(output[_RM]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } if (output.OptionGroupMemberships === "") { - contents.OptionGroupMemberships = []; - } else if ( - output["OptionGroupMemberships"] !== undefined && - output["OptionGroupMemberships"]["OptionGroupMembership"] !== undefined - ) { - contents.OptionGroupMemberships = de_OptionGroupMembershipList( - __getArrayIfSingleItem(output["OptionGroupMemberships"]["OptionGroupMembership"]), - context - ); + contents[_OGM] = []; + } else if (output[_OGM] != null && output[_OGM][_OGMp] != null) { + contents[_OGM] = de_OptionGroupMembershipList(__getArrayIfSingleItem(output[_OGM][_OGMp]), context); } - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["NcharCharacterSetName"] !== undefined) { - contents.NcharCharacterSetName = __expectString(output["NcharCharacterSetName"]); + if (output[_NCSN] != null) { + contents[_NCSN] = __expectString(output[_NCSN]); } - if (output["SecondaryAvailabilityZone"] !== undefined) { - contents.SecondaryAvailabilityZone = __expectString(output["SecondaryAvailabilityZone"]); + if (output[_SAZ] != null) { + contents[_SAZ] = __expectString(output[_SAZ]); } - if (output["PubliclyAccessible"] !== undefined) { - contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]); + if (output[_PA] != null) { + contents[_PA] = __parseBoolean(output[_PA]); } if (output.StatusInfos === "") { - contents.StatusInfos = []; - } else if (output["StatusInfos"] !== undefined && output["StatusInfos"]["DBInstanceStatusInfo"] !== undefined) { - contents.StatusInfos = de_DBInstanceStatusInfoList( - __getArrayIfSingleItem(output["StatusInfos"]["DBInstanceStatusInfo"]), - context - ); + contents[_SIt] = []; + } else if (output[_SIt] != null && output[_SIt][_DBISI] != null) { + contents[_SIt] = de_DBInstanceStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBISI]), context); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["TdeCredentialArn"] !== undefined) { - contents.TdeCredentialArn = __expectString(output["TdeCredentialArn"]); + if (output[_TCA] != null) { + contents[_TCA] = __expectString(output[_TCA]); } - if (output["DbInstancePort"] !== undefined) { - contents.DbInstancePort = __strictParseInt32(output["DbInstancePort"]) as number; + if (output[_DIP] != null) { + contents[_DIP] = __strictParseInt32(output[_DIP]) as number; } - if (output["DBClusterIdentifier"] !== undefined) { - contents.DBClusterIdentifier = __expectString(output["DBClusterIdentifier"]); + if (output[_DBCI] != null) { + contents[_DBCI] = __expectString(output[_DBCI]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DbiResourceId"] !== undefined) { - contents.DbiResourceId = __expectString(output["DbiResourceId"]); + if (output[_DRI] != null) { + contents[_DRI] = __expectString(output[_DRI]); } - if (output["CACertificateIdentifier"] !== undefined) { - contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]); + if (output[_CACI] != null) { + contents[_CACI] = __expectString(output[_CACI]); } if (output.DomainMemberships === "") { - contents.DomainMemberships = []; - } else if ( - output["DomainMemberships"] !== undefined && - output["DomainMemberships"]["DomainMembership"] !== undefined - ) { - contents.DomainMemberships = de_DomainMembershipList( - __getArrayIfSingleItem(output["DomainMemberships"]["DomainMembership"]), - context - ); + contents[_DM] = []; + } else if (output[_DM] != null && output[_DM][_DMo] != null) { + contents[_DM] = de_DomainMembershipList(__getArrayIfSingleItem(output[_DM][_DMo]), context); } - if (output["CopyTagsToSnapshot"] !== undefined) { - contents.CopyTagsToSnapshot = __parseBoolean(output["CopyTagsToSnapshot"]); + if (output[_CTTS] != null) { + contents[_CTTS] = __parseBoolean(output[_CTTS]); } - if (output["MonitoringInterval"] !== undefined) { - contents.MonitoringInterval = __strictParseInt32(output["MonitoringInterval"]) as number; + if (output[_MI] != null) { + contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output["EnhancedMonitoringResourceArn"] !== undefined) { - contents.EnhancedMonitoringResourceArn = __expectString(output["EnhancedMonitoringResourceArn"]); + if (output[_EMRA] != null) { + contents[_EMRA] = __expectString(output[_EMRA]); } - if (output["MonitoringRoleArn"] !== undefined) { - contents.MonitoringRoleArn = __expectString(output["MonitoringRoleArn"]); + if (output[_MRA] != null) { + contents[_MRA] = __expectString(output[_MRA]); } - if (output["PromotionTier"] !== undefined) { - contents.PromotionTier = __strictParseInt32(output["PromotionTier"]) as number; + if (output[_PT] != null) { + contents[_PT] = __strictParseInt32(output[_PT]) as number; } - if (output["DBInstanceArn"] !== undefined) { - contents.DBInstanceArn = __expectString(output["DBInstanceArn"]); + if (output[_DBIA] != null) { + contents[_DBIA] = __expectString(output[_DBIA]); } - if (output["Timezone"] !== undefined) { - contents.Timezone = __expectString(output["Timezone"]); + if (output[_Ti] != null) { + contents[_Ti] = __expectString(output[_Ti]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["PerformanceInsightsEnabled"] !== undefined) { - contents.PerformanceInsightsEnabled = __parseBoolean(output["PerformanceInsightsEnabled"]); + if (output[_PIE] != null) { + contents[_PIE] = __parseBoolean(output[_PIE]); } - if (output["PerformanceInsightsKMSKeyId"] !== undefined) { - contents.PerformanceInsightsKMSKeyId = __expectString(output["PerformanceInsightsKMSKeyId"]); + if (output[_PIKMSKI] != null) { + contents[_PIKMSKI] = __expectString(output[_PIKMSKI]); } - if (output["PerformanceInsightsRetentionPeriod"] !== undefined) { - contents.PerformanceInsightsRetentionPeriod = __strictParseInt32( - output["PerformanceInsightsRetentionPeriod"] - ) as number; + if (output[_PIRP] != null) { + contents[_PIRP] = __strictParseInt32(output[_PIRP]) as number; } if (output.EnabledCloudwatchLogsExports === "") { - contents.EnabledCloudwatchLogsExports = []; - } else if ( - output["EnabledCloudwatchLogsExports"] !== undefined && - output["EnabledCloudwatchLogsExports"]["member"] !== undefined - ) { - contents.EnabledCloudwatchLogsExports = de_LogTypeList( - __getArrayIfSingleItem(output["EnabledCloudwatchLogsExports"]["member"]), - context - ); + contents[_ECLEn] = []; + } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { + contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); } if (output.ProcessorFeatures === "") { - contents.ProcessorFeatures = []; - } else if ( - output["ProcessorFeatures"] !== undefined && - output["ProcessorFeatures"]["ProcessorFeature"] !== undefined - ) { - contents.ProcessorFeatures = de_ProcessorFeatureList( - __getArrayIfSingleItem(output["ProcessorFeatures"]["ProcessorFeature"]), - context - ); + contents[_PF] = []; + } else if (output[_PF] != null && output[_PF][_PFr] != null) { + contents[_PF] = de_ProcessorFeatureList(__getArrayIfSingleItem(output[_PF][_PFr]), context); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } if (output.AssociatedRoles === "") { - contents.AssociatedRoles = []; - } else if (output["AssociatedRoles"] !== undefined && output["AssociatedRoles"]["DBInstanceRole"] !== undefined) { - contents.AssociatedRoles = de_DBInstanceRoles( - __getArrayIfSingleItem(output["AssociatedRoles"]["DBInstanceRole"]), - context - ); + contents[_AR] = []; + } else if (output[_AR] != null && output[_AR][_DBIR] != null) { + contents[_AR] = de_DBInstanceRoles(__getArrayIfSingleItem(output[_AR][_DBIR]), context); } - if (output["ListenerEndpoint"] !== undefined) { - contents.ListenerEndpoint = de_Endpoint(output["ListenerEndpoint"], context); + if (output[_LE] != null) { + contents[_LE] = de_Endpoint(output[_LE], context); } - if (output["MaxAllocatedStorage"] !== undefined) { - contents.MaxAllocatedStorage = __strictParseInt32(output["MaxAllocatedStorage"]) as number; + if (output[_MASa] != null) { + contents[_MASa] = __strictParseInt32(output[_MASa]) as number; } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } if (output.DBInstanceAutomatedBackupsReplications === "") { - contents.DBInstanceAutomatedBackupsReplications = []; - } else if ( - output["DBInstanceAutomatedBackupsReplications"] !== undefined && - output["DBInstanceAutomatedBackupsReplications"]["DBInstanceAutomatedBackupsReplication"] !== undefined - ) { - contents.DBInstanceAutomatedBackupsReplications = de_DBInstanceAutomatedBackupsReplicationList( - __getArrayIfSingleItem(output["DBInstanceAutomatedBackupsReplications"]["DBInstanceAutomatedBackupsReplication"]), + contents[_DBIABR] = []; + } else if (output[_DBIABR] != null && output[_DBIABR][_DBIABRn] != null) { + contents[_DBIABR] = de_DBInstanceAutomatedBackupsReplicationList( + __getArrayIfSingleItem(output[_DBIABR][_DBIABRn]), context ); } - if (output["CustomerOwnedIpEnabled"] !== undefined) { - contents.CustomerOwnedIpEnabled = __parseBoolean(output["CustomerOwnedIpEnabled"]); + if (output[_COIE] != null) { + contents[_COIE] = __parseBoolean(output[_COIE]); } - if (output["AwsBackupRecoveryPointArn"] !== undefined) { - contents.AwsBackupRecoveryPointArn = __expectString(output["AwsBackupRecoveryPointArn"]); + if (output[_ABRPA] != null) { + contents[_ABRPA] = __expectString(output[_ABRPA]); } - if (output["ActivityStreamStatus"] !== undefined) { - contents.ActivityStreamStatus = __expectString(output["ActivityStreamStatus"]); + if (output[_ASS] != null) { + contents[_ASS] = __expectString(output[_ASS]); } - if (output["ActivityStreamKmsKeyId"] !== undefined) { - contents.ActivityStreamKmsKeyId = __expectString(output["ActivityStreamKmsKeyId"]); + if (output[_ASKKI] != null) { + contents[_ASKKI] = __expectString(output[_ASKKI]); } - if (output["ActivityStreamKinesisStreamName"] !== undefined) { - contents.ActivityStreamKinesisStreamName = __expectString(output["ActivityStreamKinesisStreamName"]); + if (output[_ASKSN] != null) { + contents[_ASKSN] = __expectString(output[_ASKSN]); } - if (output["ActivityStreamMode"] !== undefined) { - contents.ActivityStreamMode = __expectString(output["ActivityStreamMode"]); + if (output[_ASM] != null) { + contents[_ASM] = __expectString(output[_ASM]); } - if (output["ActivityStreamEngineNativeAuditFieldsIncluded"] !== undefined) { - contents.ActivityStreamEngineNativeAuditFieldsIncluded = __parseBoolean( - output["ActivityStreamEngineNativeAuditFieldsIncluded"] - ); + if (output[_ASENAFI] != null) { + contents[_ASENAFI] = __parseBoolean(output[_ASENAFI]); } - if (output["AutomationMode"] !== undefined) { - contents.AutomationMode = __expectString(output["AutomationMode"]); + if (output[_AM] != null) { + contents[_AM] = __expectString(output[_AM]); } - if (output["ResumeFullAutomationModeTime"] !== undefined) { - contents.ResumeFullAutomationModeTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ResumeFullAutomationModeTime"]) - ); + if (output[_RFAMT] != null) { + contents[_RFAMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RFAMT])); } - if (output["CustomIamInstanceProfile"] !== undefined) { - contents.CustomIamInstanceProfile = __expectString(output["CustomIamInstanceProfile"]); + if (output[_CIIP] != null) { + contents[_CIIP] = __expectString(output[_CIIP]); } - if (output["BackupTarget"] !== undefined) { - contents.BackupTarget = __expectString(output["BackupTarget"]); + if (output[_BTa] != null) { + contents[_BTa] = __expectString(output[_BTa]); } - if (output["NetworkType"] !== undefined) { - contents.NetworkType = __expectString(output["NetworkType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["ActivityStreamPolicyStatus"] !== undefined) { - contents.ActivityStreamPolicyStatus = __expectString(output["ActivityStreamPolicyStatus"]); + if (output[_ASPS] != null) { + contents[_ASPS] = __expectString(output[_ASPS]); } - if (output["StorageThroughput"] !== undefined) { - contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]) as number; + if (output[_STt] != null) { + contents[_STt] = __strictParseInt32(output[_STt]) as number; } - if (output["DBSystemId"] !== undefined) { - contents.DBSystemId = __expectString(output["DBSystemId"]); + if (output[_DBSI] != null) { + contents[_DBSI] = __expectString(output[_DBSI]); } - if (output["MasterUserSecret"] !== undefined) { - contents.MasterUserSecret = de_MasterUserSecret(output["MasterUserSecret"], context); + if (output[_MUS] != null) { + contents[_MUS] = de_MasterUserSecret(output[_MUS], context); } - if (output["CertificateDetails"] !== undefined) { - contents.CertificateDetails = de_CertificateDetails(output["CertificateDetails"], context); + if (output[_CD] != null) { + contents[_CD] = de_CertificateDetails(output[_CD], context); } - if (output["ReadReplicaSourceDBClusterIdentifier"] !== undefined) { - contents.ReadReplicaSourceDBClusterIdentifier = __expectString(output["ReadReplicaSourceDBClusterIdentifier"]); + if (output[_RRSDBCI] != null) { + contents[_RRSDBCI] = __expectString(output[_RRSDBCI]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __expectString(output["PercentProgress"]); + if (output[_PP] != null) { + contents[_PP] = __expectString(output[_PP]); } - if (output["DedicatedLogVolume"] !== undefined) { - contents.DedicatedLogVolume = __parseBoolean(output["DedicatedLogVolume"]); + if (output[_DLV] != null) { + contents[_DLV] = __parseBoolean(output[_DLV]); } - if (output["IsStorageConfigUpgradeAvailable"] !== undefined) { - contents.IsStorageConfigUpgradeAvailable = __parseBoolean(output["IsStorageConfigUpgradeAvailable"]); + if (output[_ISCUA] != null) { + contents[_ISCUA] = __parseBoolean(output[_ISCUA]); } - if (output["MultiTenant"] !== undefined) { - contents.MultiTenant = __parseBoolean(output["MultiTenant"]); + if (output[_MT] != null) { + contents[_MT] = __parseBoolean(output[_MT]); } return contents; }; @@ -22950,8 +22719,8 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { */ const de_DBInstanceAlreadyExistsFault = (output: any, context: __SerdeContext): DBInstanceAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22961,106 +22730,103 @@ const de_DBInstanceAlreadyExistsFault = (output: any, context: __SerdeContext): */ const de_DBInstanceAutomatedBackup = (output: any, context: __SerdeContext): DBInstanceAutomatedBackup => { const contents: any = {}; - if (output["DBInstanceArn"] !== undefined) { - contents.DBInstanceArn = __expectString(output["DBInstanceArn"]); + if (output[_DBIA] != null) { + contents[_DBIA] = __expectString(output[_DBIA]); } - if (output["DbiResourceId"] !== undefined) { - contents.DbiResourceId = __expectString(output["DbiResourceId"]); + if (output[_DRI] != null) { + contents[_DRI] = __expectString(output[_DRI]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["RestoreWindow"] !== undefined) { - contents.RestoreWindow = de_RestoreWindow(output["RestoreWindow"], context); + if (output[_RW] != null) { + contents[_RW] = de_RestoreWindow(output[_RW], context); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZv] != null) { + contents[_AZv] = __expectString(output[_AZv]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["InstanceCreateTime"] !== undefined) { - contents.InstanceCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["InstanceCreateTime"])); + if (output[_ICTn] != null) { + contents[_ICTn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ICTn])); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["OptionGroupName"] !== undefined) { - contents.OptionGroupName = __expectString(output["OptionGroupName"]); + if (output[_OGN] != null) { + contents[_OGN] = __expectString(output[_OGN]); } - if (output["TdeCredentialArn"] !== undefined) { - contents.TdeCredentialArn = __expectString(output["TdeCredentialArn"]); + if (output[_TCA] != null) { + contents[_TCA] = __expectString(output[_TCA]); } - if (output["Encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["Encrypted"]); + if (output[_Enc] != null) { + contents[_Enc] = __parseBoolean(output[_Enc]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["Timezone"] !== undefined) { - contents.Timezone = __expectString(output["Timezone"]); + if (output[_Ti] != null) { + contents[_Ti] = __expectString(output[_Ti]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["DBInstanceAutomatedBackupsArn"] !== undefined) { - contents.DBInstanceAutomatedBackupsArn = __expectString(output["DBInstanceAutomatedBackupsArn"]); + if (output[_DBIABA] != null) { + contents[_DBIABA] = __expectString(output[_DBIABA]); } if (output.DBInstanceAutomatedBackupsReplications === "") { - contents.DBInstanceAutomatedBackupsReplications = []; - } else if ( - output["DBInstanceAutomatedBackupsReplications"] !== undefined && - output["DBInstanceAutomatedBackupsReplications"]["DBInstanceAutomatedBackupsReplication"] !== undefined - ) { - contents.DBInstanceAutomatedBackupsReplications = de_DBInstanceAutomatedBackupsReplicationList( - __getArrayIfSingleItem(output["DBInstanceAutomatedBackupsReplications"]["DBInstanceAutomatedBackupsReplication"]), + contents[_DBIABR] = []; + } else if (output[_DBIABR] != null && output[_DBIABR][_DBIABRn] != null) { + contents[_DBIABR] = de_DBInstanceAutomatedBackupsReplicationList( + __getArrayIfSingleItem(output[_DBIABR][_DBIABRn]), context ); } - if (output["BackupTarget"] !== undefined) { - contents.BackupTarget = __expectString(output["BackupTarget"]); + if (output[_BTa] != null) { + contents[_BTa] = __expectString(output[_BTa]); } - if (output["StorageThroughput"] !== undefined) { - contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]) as number; + if (output[_STt] != null) { + contents[_STt] = __strictParseInt32(output[_STt]) as number; } - if (output["AwsBackupRecoveryPointArn"] !== undefined) { - contents.AwsBackupRecoveryPointArn = __expectString(output["AwsBackupRecoveryPointArn"]); + if (output[_ABRPA] != null) { + contents[_ABRPA] = __expectString(output[_ABRPA]); } - if (output["DedicatedLogVolume"] !== undefined) { - contents.DedicatedLogVolume = __parseBoolean(output["DedicatedLogVolume"]); + if (output[_DLV] != null) { + contents[_DLV] = __parseBoolean(output[_DLV]); } - if (output["MultiTenant"] !== undefined) { - contents.MultiTenant = __parseBoolean(output["MultiTenant"]); + if (output[_MT] != null) { + contents[_MT] = __parseBoolean(output[_MT]); } return contents; }; @@ -23084,19 +22850,13 @@ const de_DBInstanceAutomatedBackupMessage = ( context: __SerdeContext ): DBInstanceAutomatedBackupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBInstanceAutomatedBackups === "") { - contents.DBInstanceAutomatedBackups = []; - } else if ( - output["DBInstanceAutomatedBackups"] !== undefined && - output["DBInstanceAutomatedBackups"]["DBInstanceAutomatedBackup"] !== undefined - ) { - contents.DBInstanceAutomatedBackups = de_DBInstanceAutomatedBackupList( - __getArrayIfSingleItem(output["DBInstanceAutomatedBackups"]["DBInstanceAutomatedBackup"]), - context - ); + contents[_DBIAB] = []; + } else if (output[_DBIAB] != null && output[_DBIAB][_DBIABn] != null) { + contents[_DBIAB] = de_DBInstanceAutomatedBackupList(__getArrayIfSingleItem(output[_DBIAB][_DBIABn]), context); } return contents; }; @@ -23109,8 +22869,8 @@ const de_DBInstanceAutomatedBackupNotFoundFault = ( context: __SerdeContext ): DBInstanceAutomatedBackupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23123,8 +22883,8 @@ const de_DBInstanceAutomatedBackupQuotaExceededFault = ( context: __SerdeContext ): DBInstanceAutomatedBackupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23137,8 +22897,8 @@ const de_DBInstanceAutomatedBackupsReplication = ( context: __SerdeContext ): DBInstanceAutomatedBackupsReplication => { const contents: any = {}; - if (output["DBInstanceAutomatedBackupsArn"] !== undefined) { - contents.DBInstanceAutomatedBackupsArn = __expectString(output["DBInstanceAutomatedBackupsArn"]); + if (output[_DBIABA] != null) { + contents[_DBIABA] = __expectString(output[_DBIABA]); } return contents; }; @@ -23173,13 +22933,13 @@ const de_DBInstanceList = (output: any, context: __SerdeContext): DBInstance[] = */ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBInstances === "") { - contents.DBInstances = []; - } else if (output["DBInstances"] !== undefined && output["DBInstances"]["DBInstance"] !== undefined) { - contents.DBInstances = de_DBInstanceList(__getArrayIfSingleItem(output["DBInstances"]["DBInstance"]), context); + contents[_DBIn] = []; + } else if (output[_DBIn] != null && output[_DBIn][_DBI] != null) { + contents[_DBIn] = de_DBInstanceList(__getArrayIfSingleItem(output[_DBIn][_DBI]), context); } return contents; }; @@ -23189,8 +22949,8 @@ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceM */ const de_DBInstanceNotFoundFault = (output: any, context: __SerdeContext): DBInstanceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23200,14 +22960,14 @@ const de_DBInstanceNotFoundFault = (output: any, context: __SerdeContext): DBIns */ const de_DBInstanceRole = (output: any, context: __SerdeContext): DBInstanceRole => { const contents: any = {}; - if (output["RoleArn"] !== undefined) { - contents.RoleArn = __expectString(output["RoleArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } - if (output["FeatureName"] !== undefined) { - contents.FeatureName = __expectString(output["FeatureName"]); + if (output[_FN] != null) { + contents[_FN] = __expectString(output[_FN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -23220,8 +22980,8 @@ const de_DBInstanceRoleAlreadyExistsFault = ( context: __SerdeContext ): DBInstanceRoleAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23231,8 +22991,8 @@ const de_DBInstanceRoleAlreadyExistsFault = ( */ const de_DBInstanceRoleNotFoundFault = (output: any, context: __SerdeContext): DBInstanceRoleNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23245,8 +23005,8 @@ const de_DBInstanceRoleQuotaExceededFault = ( context: __SerdeContext ): DBInstanceRoleQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23267,17 +23027,17 @@ const de_DBInstanceRoles = (output: any, context: __SerdeContext): DBInstanceRol */ const de_DBInstanceStatusInfo = (output: any, context: __SerdeContext): DBInstanceStatusInfo => { const contents: any = {}; - if (output["StatusType"] !== undefined) { - contents.StatusType = __expectString(output["StatusType"]); + if (output[_STtat] != null) { + contents[_STtat] = __expectString(output[_STtat]); } - if (output["Normal"] !== undefined) { - contents.Normal = __parseBoolean(output["Normal"]); + if (output[_No] != null) { + contents[_No] = __parseBoolean(output[_No]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } return contents; }; @@ -23298,8 +23058,8 @@ const de_DBInstanceStatusInfoList = (output: any, context: __SerdeContext): DBIn */ const de_DBLogFileNotFoundFault = (output: any, context: __SerdeContext): DBLogFileNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23309,17 +23069,17 @@ const de_DBLogFileNotFoundFault = (output: any, context: __SerdeContext): DBLogF */ const de_DBParameterGroup = (output: any, context: __SerdeContext): DBParameterGroup => { const contents: any = {}; - if (output["DBParameterGroupName"] !== undefined) { - contents.DBParameterGroupName = __expectString(output["DBParameterGroupName"]); + if (output[_DBPGN] != null) { + contents[_DBPGN] = __expectString(output[_DBPGN]); } - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DBParameterGroupArn"] !== undefined) { - contents.DBParameterGroupArn = __expectString(output["DBParameterGroupArn"]); + if (output[_DBPGA] != null) { + contents[_DBPGA] = __expectString(output[_DBPGA]); } return contents; }; @@ -23332,8 +23092,8 @@ const de_DBParameterGroupAlreadyExistsFault = ( context: __SerdeContext ): DBParameterGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23344,12 +23104,12 @@ const de_DBParameterGroupAlreadyExistsFault = ( const de_DBParameterGroupDetails = (output: any, context: __SerdeContext): DBParameterGroupDetails => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -23370,8 +23130,8 @@ const de_DBParameterGroupList = (output: any, context: __SerdeContext): DBParame */ const de_DBParameterGroupNameMessage = (output: any, context: __SerdeContext): DBParameterGroupNameMessage => { const contents: any = {}; - if (output["DBParameterGroupName"] !== undefined) { - contents.DBParameterGroupName = __expectString(output["DBParameterGroupName"]); + if (output[_DBPGN] != null) { + contents[_DBPGN] = __expectString(output[_DBPGN]); } return contents; }; @@ -23381,8 +23141,8 @@ const de_DBParameterGroupNameMessage = (output: any, context: __SerdeContext): D */ const de_DBParameterGroupNotFoundFault = (output: any, context: __SerdeContext): DBParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23395,8 +23155,8 @@ const de_DBParameterGroupQuotaExceededFault = ( context: __SerdeContext ): DBParameterGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23406,19 +23166,13 @@ const de_DBParameterGroupQuotaExceededFault = ( */ const de_DBParameterGroupsMessage = (output: any, context: __SerdeContext): DBParameterGroupsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBParameterGroups === "") { - contents.DBParameterGroups = []; - } else if ( - output["DBParameterGroups"] !== undefined && - output["DBParameterGroups"]["DBParameterGroup"] !== undefined - ) { - contents.DBParameterGroups = de_DBParameterGroupList( - __getArrayIfSingleItem(output["DBParameterGroups"]["DBParameterGroup"]), - context - ); + contents[_DBPGa] = []; + } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { + contents[_DBPGa] = de_DBParameterGroupList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); } return contents; }; @@ -23428,11 +23182,11 @@ const de_DBParameterGroupsMessage = (output: any, context: __SerdeContext): DBPa */ const de_DBParameterGroupStatus = (output: any, context: __SerdeContext): DBParameterGroupStatus => { const contents: any = {}; - if (output["DBParameterGroupName"] !== undefined) { - contents.DBParameterGroupName = __expectString(output["DBParameterGroupName"]); + if (output[_DBPGN] != null) { + contents[_DBPGN] = __expectString(output[_DBPGN]); } - if (output["ParameterApplyStatus"] !== undefined) { - contents.ParameterApplyStatus = __expectString(output["ParameterApplyStatus"]); + if (output[_PAS] != null) { + contents[_PAS] = __expectString(output[_PAS]); } return contents; }; @@ -23453,59 +23207,56 @@ const de_DBParameterGroupStatusList = (output: any, context: __SerdeContext): DB */ const de_DBProxy = (output: any, context: __SerdeContext): DBProxy => { const contents: any = {}; - if (output["DBProxyName"] !== undefined) { - contents.DBProxyName = __expectString(output["DBProxyName"]); + if (output[_DBPN] != null) { + contents[_DBPN] = __expectString(output[_DBPN]); } - if (output["DBProxyArn"] !== undefined) { - contents.DBProxyArn = __expectString(output["DBProxyArn"]); + if (output[_DBPA] != null) { + contents[_DBPA] = __expectString(output[_DBPA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EngineFamily"] !== undefined) { - contents.EngineFamily = __expectString(output["EngineFamily"]); + if (output[_EF] != null) { + contents[_EF] = __expectString(output[_EF]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } if (output.VpcSecurityGroupIds === "") { - contents.VpcSecurityGroupIds = []; - } else if (output["VpcSecurityGroupIds"] !== undefined && output["VpcSecurityGroupIds"]["member"] !== undefined) { - contents.VpcSecurityGroupIds = de_StringList( - __getArrayIfSingleItem(output["VpcSecurityGroupIds"]["member"]), - context - ); + contents[_VSGI] = []; + } else if (output[_VSGI] != null && output[_VSGI][_me] != null) { + contents[_VSGI] = de_StringList(__getArrayIfSingleItem(output[_VSGI][_me]), context); } if (output.VpcSubnetIds === "") { - contents.VpcSubnetIds = []; - } else if (output["VpcSubnetIds"] !== undefined && output["VpcSubnetIds"]["member"] !== undefined) { - contents.VpcSubnetIds = de_StringList(__getArrayIfSingleItem(output["VpcSubnetIds"]["member"]), context); + contents[_VSI] = []; + } else if (output[_VSI] != null && output[_VSI][_me] != null) { + contents[_VSI] = de_StringList(__getArrayIfSingleItem(output[_VSI][_me]), context); } if (output.Auth === "") { - contents.Auth = []; - } else if (output["Auth"] !== undefined && output["Auth"]["member"] !== undefined) { - contents.Auth = de_UserAuthConfigInfoList(__getArrayIfSingleItem(output["Auth"]["member"]), context); + contents[_Au] = []; + } else if (output[_Au] != null && output[_Au][_me] != null) { + contents[_Au] = de_UserAuthConfigInfoList(__getArrayIfSingleItem(output[_Au][_me]), context); } - if (output["RoleArn"] !== undefined) { - contents.RoleArn = __expectString(output["RoleArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["RequireTLS"] !== undefined) { - contents.RequireTLS = __parseBoolean(output["RequireTLS"]); + if (output[_RTLS] != null) { + contents[_RTLS] = __parseBoolean(output[_RTLS]); } - if (output["IdleClientTimeout"] !== undefined) { - contents.IdleClientTimeout = __strictParseInt32(output["IdleClientTimeout"]) as number; + if (output[_ICT] != null) { + contents[_ICT] = __strictParseInt32(output[_ICT]) as number; } - if (output["DebugLogging"] !== undefined) { - contents.DebugLogging = __parseBoolean(output["DebugLogging"]); + if (output[_DL] != null) { + contents[_DL] = __parseBoolean(output[_DL]); } - if (output["CreatedDate"] !== undefined) { - contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedDate"])); + if (output[_CDr] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr])); } - if (output["UpdatedDate"] !== undefined) { - contents.UpdatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdatedDate"])); + if (output[_UD] != null) { + contents[_UD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UD])); } return contents; }; @@ -23515,8 +23266,8 @@ const de_DBProxy = (output: any, context: __SerdeContext): DBProxy => { */ const de_DBProxyAlreadyExistsFault = (output: any, context: __SerdeContext): DBProxyAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23526,45 +23277,42 @@ const de_DBProxyAlreadyExistsFault = (output: any, context: __SerdeContext): DBP */ const de_DBProxyEndpoint = (output: any, context: __SerdeContext): DBProxyEndpoint => { const contents: any = {}; - if (output["DBProxyEndpointName"] !== undefined) { - contents.DBProxyEndpointName = __expectString(output["DBProxyEndpointName"]); + if (output[_DBPEN] != null) { + contents[_DBPEN] = __expectString(output[_DBPEN]); } - if (output["DBProxyEndpointArn"] !== undefined) { - contents.DBProxyEndpointArn = __expectString(output["DBProxyEndpointArn"]); + if (output[_DBPEA] != null) { + contents[_DBPEA] = __expectString(output[_DBPEA]); } - if (output["DBProxyName"] !== undefined) { - contents.DBProxyName = __expectString(output["DBProxyName"]); + if (output[_DBPN] != null) { + contents[_DBPN] = __expectString(output[_DBPN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } if (output.VpcSecurityGroupIds === "") { - contents.VpcSecurityGroupIds = []; - } else if (output["VpcSecurityGroupIds"] !== undefined && output["VpcSecurityGroupIds"]["member"] !== undefined) { - contents.VpcSecurityGroupIds = de_StringList( - __getArrayIfSingleItem(output["VpcSecurityGroupIds"]["member"]), - context - ); + contents[_VSGI] = []; + } else if (output[_VSGI] != null && output[_VSGI][_me] != null) { + contents[_VSGI] = de_StringList(__getArrayIfSingleItem(output[_VSGI][_me]), context); } if (output.VpcSubnetIds === "") { - contents.VpcSubnetIds = []; - } else if (output["VpcSubnetIds"] !== undefined && output["VpcSubnetIds"]["member"] !== undefined) { - contents.VpcSubnetIds = de_StringList(__getArrayIfSingleItem(output["VpcSubnetIds"]["member"]), context); + contents[_VSI] = []; + } else if (output[_VSI] != null && output[_VSI][_me] != null) { + contents[_VSI] = de_StringList(__getArrayIfSingleItem(output[_VSI][_me]), context); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["CreatedDate"] !== undefined) { - contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedDate"])); + if (output[_CDr] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr])); } - if (output["TargetRole"] !== undefined) { - contents.TargetRole = __expectString(output["TargetRole"]); + if (output[_TR] != null) { + contents[_TR] = __expectString(output[_TR]); } - if (output["IsDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["IsDefault"]); + if (output[_ID] != null) { + contents[_ID] = __parseBoolean(output[_ID]); } return contents; }; @@ -23577,8 +23325,8 @@ const de_DBProxyEndpointAlreadyExistsFault = ( context: __SerdeContext ): DBProxyEndpointAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23599,8 +23347,8 @@ const de_DBProxyEndpointList = (output: any, context: __SerdeContext): DBProxyEn */ const de_DBProxyEndpointNotFoundFault = (output: any, context: __SerdeContext): DBProxyEndpointNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23613,8 +23361,8 @@ const de_DBProxyEndpointQuotaExceededFault = ( context: __SerdeContext ): DBProxyEndpointQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23635,8 +23383,8 @@ const de_DBProxyList = (output: any, context: __SerdeContext): DBProxy[] => { */ const de_DBProxyNotFoundFault = (output: any, context: __SerdeContext): DBProxyNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23646,8 +23394,8 @@ const de_DBProxyNotFoundFault = (output: any, context: __SerdeContext): DBProxyN */ const de_DBProxyQuotaExceededFault = (output: any, context: __SerdeContext): DBProxyQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23657,29 +23405,29 @@ const de_DBProxyQuotaExceededFault = (output: any, context: __SerdeContext): DBP */ const de_DBProxyTarget = (output: any, context: __SerdeContext): DBProxyTarget => { const contents: any = {}; - if (output["TargetArn"] !== undefined) { - contents.TargetArn = __expectString(output["TargetArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["TrackedClusterId"] !== undefined) { - contents.TrackedClusterId = __expectString(output["TrackedClusterId"]); + if (output[_TCI] != null) { + contents[_TCI] = __expectString(output[_TCI]); } - if (output["RdsResourceId"] !== undefined) { - contents.RdsResourceId = __expectString(output["RdsResourceId"]); + if (output[_RRId] != null) { + contents[_RRId] = __expectString(output[_RRId]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_Ty] != null) { + contents[_Ty] = __expectString(output[_Ty]); } - if (output["Role"] !== undefined) { - contents.Role = __expectString(output["Role"]); + if (output[_Ro] != null) { + contents[_Ro] = __expectString(output[_Ro]); } - if (output["TargetHealth"] !== undefined) { - contents.TargetHealth = de_TargetHealth(output["TargetHealth"], context); + if (output[_TH] != null) { + contents[_TH] = de_TargetHealth(output[_TH], context); } return contents; }; @@ -23692,8 +23440,8 @@ const de_DBProxyTargetAlreadyRegisteredFault = ( context: __SerdeContext ): DBProxyTargetAlreadyRegisteredFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23703,29 +23451,29 @@ const de_DBProxyTargetAlreadyRegisteredFault = ( */ const de_DBProxyTargetGroup = (output: any, context: __SerdeContext): DBProxyTargetGroup => { const contents: any = {}; - if (output["DBProxyName"] !== undefined) { - contents.DBProxyName = __expectString(output["DBProxyName"]); + if (output[_DBPN] != null) { + contents[_DBPN] = __expectString(output[_DBPN]); } - if (output["TargetGroupName"] !== undefined) { - contents.TargetGroupName = __expectString(output["TargetGroupName"]); + if (output[_TGN] != null) { + contents[_TGN] = __expectString(output[_TGN]); } - if (output["TargetGroupArn"] !== undefined) { - contents.TargetGroupArn = __expectString(output["TargetGroupArn"]); + if (output[_TGA] != null) { + contents[_TGA] = __expectString(output[_TGA]); } - if (output["IsDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["IsDefault"]); + if (output[_ID] != null) { + contents[_ID] = __parseBoolean(output[_ID]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["ConnectionPoolConfig"] !== undefined) { - contents.ConnectionPoolConfig = de_ConnectionPoolConfigurationInfo(output["ConnectionPoolConfig"], context); + if (output[_CPC] != null) { + contents[_CPC] = de_ConnectionPoolConfigurationInfo(output[_CPC], context); } - if (output["CreatedDate"] !== undefined) { - contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedDate"])); + if (output[_CDr] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr])); } - if (output["UpdatedDate"] !== undefined) { - contents.UpdatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdatedDate"])); + if (output[_UD] != null) { + contents[_UD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UD])); } return contents; }; @@ -23735,8 +23483,8 @@ const de_DBProxyTargetGroup = (output: any, context: __SerdeContext): DBProxyTar */ const de_DBProxyTargetGroupNotFoundFault = (output: any, context: __SerdeContext): DBProxyTargetGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23746,8 +23494,8 @@ const de_DBProxyTargetGroupNotFoundFault = (output: any, context: __SerdeContext */ const de_DBProxyTargetNotFoundFault = (output: any, context: __SerdeContext): DBProxyTargetNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23757,36 +23505,30 @@ const de_DBProxyTargetNotFoundFault = (output: any, context: __SerdeContext): DB */ const de_DBSecurityGroup = (output: any, context: __SerdeContext): DBSecurityGroup => { const contents: any = {}; - if (output["OwnerId"] !== undefined) { - contents.OwnerId = __expectString(output["OwnerId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } - if (output["DBSecurityGroupName"] !== undefined) { - contents.DBSecurityGroupName = __expectString(output["DBSecurityGroupName"]); + if (output[_DBSGN] != null) { + contents[_DBSGN] = __expectString(output[_DBSGN]); } - if (output["DBSecurityGroupDescription"] !== undefined) { - contents.DBSecurityGroupDescription = __expectString(output["DBSecurityGroupDescription"]); + if (output[_DBSGD] != null) { + contents[_DBSGD] = __expectString(output[_DBSGD]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } if (output.EC2SecurityGroups === "") { - contents.EC2SecurityGroups = []; - } else if ( - output["EC2SecurityGroups"] !== undefined && - output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined - ) { - contents.EC2SecurityGroups = de_EC2SecurityGroupList( - __getArrayIfSingleItem(output["EC2SecurityGroups"]["EC2SecurityGroup"]), - context - ); + contents[_ECSG] = []; + } else if (output[_ECSG] != null && output[_ECSG][_ECSGe] != null) { + contents[_ECSG] = de_EC2SecurityGroupList(__getArrayIfSingleItem(output[_ECSG][_ECSGe]), context); } if (output.IPRanges === "") { - contents.IPRanges = []; - } else if (output["IPRanges"] !== undefined && output["IPRanges"]["IPRange"] !== undefined) { - contents.IPRanges = de_IPRangeList(__getArrayIfSingleItem(output["IPRanges"]["IPRange"]), context); + contents[_IPR] = []; + } else if (output[_IPR] != null && output[_IPR][_IPRa] != null) { + contents[_IPR] = de_IPRangeList(__getArrayIfSingleItem(output[_IPR][_IPRa]), context); } - if (output["DBSecurityGroupArn"] !== undefined) { - contents.DBSecurityGroupArn = __expectString(output["DBSecurityGroupArn"]); + if (output[_DBSGA] != null) { + contents[_DBSGA] = __expectString(output[_DBSGA]); } return contents; }; @@ -23799,8 +23541,8 @@ const de_DBSecurityGroupAlreadyExistsFault = ( context: __SerdeContext ): DBSecurityGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23810,11 +23552,11 @@ const de_DBSecurityGroupAlreadyExistsFault = ( */ const de_DBSecurityGroupMembership = (output: any, context: __SerdeContext): DBSecurityGroupMembership => { const contents: any = {}; - if (output["DBSecurityGroupName"] !== undefined) { - contents.DBSecurityGroupName = __expectString(output["DBSecurityGroupName"]); + if (output[_DBSGN] != null) { + contents[_DBSGN] = __expectString(output[_DBSGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -23835,16 +23577,13 @@ const de_DBSecurityGroupMembershipList = (output: any, context: __SerdeContext): */ const de_DBSecurityGroupMessage = (output: any, context: __SerdeContext): DBSecurityGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBSecurityGroups === "") { - contents.DBSecurityGroups = []; - } else if (output["DBSecurityGroups"] !== undefined && output["DBSecurityGroups"]["DBSecurityGroup"] !== undefined) { - contents.DBSecurityGroups = de_DBSecurityGroups( - __getArrayIfSingleItem(output["DBSecurityGroups"]["DBSecurityGroup"]), - context - ); + contents[_DBSG] = []; + } else if (output[_DBSG] != null && output[_DBSG][_DBSGe] != null) { + contents[_DBSG] = de_DBSecurityGroups(__getArrayIfSingleItem(output[_DBSG][_DBSGe]), context); } return contents; }; @@ -23854,8 +23593,8 @@ const de_DBSecurityGroupMessage = (output: any, context: __SerdeContext): DBSecu */ const de_DBSecurityGroupNotFoundFault = (output: any, context: __SerdeContext): DBSecurityGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23868,8 +23607,8 @@ const de_DBSecurityGroupNotSupportedFault = ( context: __SerdeContext ): DBSecurityGroupNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23882,8 +23621,8 @@ const de_DBSecurityGroupQuotaExceededFault = ( context: __SerdeContext ): DBSecurityGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -23904,125 +23643,117 @@ const de_DBSecurityGroups = (output: any, context: __SerdeContext): DBSecurityGr */ const de_DBSnapshot = (output: any, context: __SerdeContext): DBSnapshot => { const contents: any = {}; - if (output["DBSnapshotIdentifier"] !== undefined) { - contents.DBSnapshotIdentifier = __expectString(output["DBSnapshotIdentifier"]); + if (output[_DBSIn] != null) { + contents[_DBSIn] = __expectString(output[_DBSIn]); } - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["SnapshotCreateTime"] !== undefined) { - contents.SnapshotCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotCreateTime"])); + if (output[_SCT] != null) { + contents[_SCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCT])); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZv] != null) { + contents[_AZv] = __expectString(output[_AZv]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["InstanceCreateTime"] !== undefined) { - contents.InstanceCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["InstanceCreateTime"])); + if (output[_ICTn] != null) { + contents[_ICTn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ICTn])); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["SnapshotType"] !== undefined) { - contents.SnapshotType = __expectString(output["SnapshotType"]); + if (output[_STn] != null) { + contents[_STn] = __expectString(output[_STn]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["OptionGroupName"] !== undefined) { - contents.OptionGroupName = __expectString(output["OptionGroupName"]); + if (output[_OGN] != null) { + contents[_OGN] = __expectString(output[_OGN]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; + if (output[_PP] != null) { + contents[_PP] = __strictParseInt32(output[_PP]) as number; } - if (output["SourceRegion"] !== undefined) { - contents.SourceRegion = __expectString(output["SourceRegion"]); + if (output[_SR] != null) { + contents[_SR] = __expectString(output[_SR]); } - if (output["SourceDBSnapshotIdentifier"] !== undefined) { - contents.SourceDBSnapshotIdentifier = __expectString(output["SourceDBSnapshotIdentifier"]); + if (output[_SDBSI] != null) { + contents[_SDBSI] = __expectString(output[_SDBSI]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["TdeCredentialArn"] !== undefined) { - contents.TdeCredentialArn = __expectString(output["TdeCredentialArn"]); + if (output[_TCA] != null) { + contents[_TCA] = __expectString(output[_TCA]); } - if (output["Encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["Encrypted"]); + if (output[_Enc] != null) { + contents[_Enc] = __parseBoolean(output[_Enc]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["DBSnapshotArn"] !== undefined) { - contents.DBSnapshotArn = __expectString(output["DBSnapshotArn"]); + if (output[_DBSA] != null) { + contents[_DBSA] = __expectString(output[_DBSA]); } - if (output["Timezone"] !== undefined) { - contents.Timezone = __expectString(output["Timezone"]); + if (output[_Ti] != null) { + contents[_Ti] = __expectString(output[_Ti]); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } if (output.ProcessorFeatures === "") { - contents.ProcessorFeatures = []; - } else if ( - output["ProcessorFeatures"] !== undefined && - output["ProcessorFeatures"]["ProcessorFeature"] !== undefined - ) { - contents.ProcessorFeatures = de_ProcessorFeatureList( - __getArrayIfSingleItem(output["ProcessorFeatures"]["ProcessorFeature"]), - context - ); + contents[_PF] = []; + } else if (output[_PF] != null && output[_PF][_PFr] != null) { + contents[_PF] = de_ProcessorFeatureList(__getArrayIfSingleItem(output[_PF][_PFr]), context); } - if (output["DbiResourceId"] !== undefined) { - contents.DbiResourceId = __expectString(output["DbiResourceId"]); + if (output[_DRI] != null) { + contents[_DRI] = __expectString(output[_DRI]); } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } - if (output["OriginalSnapshotCreateTime"] !== undefined) { - contents.OriginalSnapshotCreateTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["OriginalSnapshotCreateTime"]) - ); + if (output[_OSCT] != null) { + contents[_OSCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_OSCT])); } - if (output["SnapshotDatabaseTime"] !== undefined) { - contents.SnapshotDatabaseTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotDatabaseTime"])); + if (output[_SDT] != null) { + contents[_SDT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SDT])); } - if (output["SnapshotTarget"] !== undefined) { - contents.SnapshotTarget = __expectString(output["SnapshotTarget"]); + if (output[_STna] != null) { + contents[_STna] = __expectString(output[_STna]); } - if (output["StorageThroughput"] !== undefined) { - contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]) as number; + if (output[_STt] != null) { + contents[_STt] = __strictParseInt32(output[_STt]) as number; } - if (output["DBSystemId"] !== undefined) { - contents.DBSystemId = __expectString(output["DBSystemId"]); + if (output[_DBSI] != null) { + contents[_DBSI] = __expectString(output[_DBSI]); } - if (output["DedicatedLogVolume"] !== undefined) { - contents.DedicatedLogVolume = __parseBoolean(output["DedicatedLogVolume"]); + if (output[_DLV] != null) { + contents[_DLV] = __parseBoolean(output[_DLV]); } - if (output["MultiTenant"] !== undefined) { - contents.MultiTenant = __parseBoolean(output["MultiTenant"]); + if (output[_MT] != null) { + contents[_MT] = __parseBoolean(output[_MT]); } return contents; }; @@ -24032,8 +23763,8 @@ const de_DBSnapshot = (output: any, context: __SerdeContext): DBSnapshot => { */ const de_DBSnapshotAlreadyExistsFault = (output: any, context: __SerdeContext): DBSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24043,16 +23774,13 @@ const de_DBSnapshotAlreadyExistsFault = (output: any, context: __SerdeContext): */ const de_DBSnapshotAttribute = (output: any, context: __SerdeContext): DBSnapshotAttribute => { const contents: any = {}; - if (output["AttributeName"] !== undefined) { - contents.AttributeName = __expectString(output["AttributeName"]); + if (output[_AN] != null) { + contents[_AN] = __expectString(output[_AN]); } if (output.AttributeValues === "") { - contents.AttributeValues = []; - } else if (output["AttributeValues"] !== undefined && output["AttributeValues"]["AttributeValue"] !== undefined) { - contents.AttributeValues = de_AttributeValueList( - __getArrayIfSingleItem(output["AttributeValues"]["AttributeValue"]), - context - ); + contents[_AVt] = []; + } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { + contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); } return contents; }; @@ -24073,19 +23801,13 @@ const de_DBSnapshotAttributeList = (output: any, context: __SerdeContext): DBSna */ const de_DBSnapshotAttributesResult = (output: any, context: __SerdeContext): DBSnapshotAttributesResult => { const contents: any = {}; - if (output["DBSnapshotIdentifier"] !== undefined) { - contents.DBSnapshotIdentifier = __expectString(output["DBSnapshotIdentifier"]); + if (output[_DBSIn] != null) { + contents[_DBSIn] = __expectString(output[_DBSIn]); } if (output.DBSnapshotAttributes === "") { - contents.DBSnapshotAttributes = []; - } else if ( - output["DBSnapshotAttributes"] !== undefined && - output["DBSnapshotAttributes"]["DBSnapshotAttribute"] !== undefined - ) { - contents.DBSnapshotAttributes = de_DBSnapshotAttributeList( - __getArrayIfSingleItem(output["DBSnapshotAttributes"]["DBSnapshotAttribute"]), - context - ); + contents[_DBSAn] = []; + } else if (output[_DBSAn] != null && output[_DBSAn][_DBSAna] != null) { + contents[_DBSAn] = de_DBSnapshotAttributeList(__getArrayIfSingleItem(output[_DBSAn][_DBSAna]), context); } return contents; }; @@ -24106,13 +23828,13 @@ const de_DBSnapshotList = (output: any, context: __SerdeContext): DBSnapshot[] = */ const de_DBSnapshotMessage = (output: any, context: __SerdeContext): DBSnapshotMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBSnapshots === "") { - contents.DBSnapshots = []; - } else if (output["DBSnapshots"] !== undefined && output["DBSnapshots"]["DBSnapshot"] !== undefined) { - contents.DBSnapshots = de_DBSnapshotList(__getArrayIfSingleItem(output["DBSnapshots"]["DBSnapshot"]), context); + contents[_DBSn] = []; + } else if (output[_DBSn] != null && output[_DBSn][_DBS] != null) { + contents[_DBSn] = de_DBSnapshotList(__getArrayIfSingleItem(output[_DBSn][_DBS]), context); } return contents; }; @@ -24122,8 +23844,8 @@ const de_DBSnapshotMessage = (output: any, context: __SerdeContext): DBSnapshotM */ const de_DBSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24133,48 +23855,46 @@ const de_DBSnapshotNotFoundFault = (output: any, context: __SerdeContext): DBSna */ const de_DBSnapshotTenantDatabase = (output: any, context: __SerdeContext): DBSnapshotTenantDatabase => { const contents: any = {}; - if (output["DBSnapshotIdentifier"] !== undefined) { - contents.DBSnapshotIdentifier = __expectString(output["DBSnapshotIdentifier"]); + if (output[_DBSIn] != null) { + contents[_DBSIn] = __expectString(output[_DBSIn]); } - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["DbiResourceId"] !== undefined) { - contents.DbiResourceId = __expectString(output["DbiResourceId"]); + if (output[_DRI] != null) { + contents[_DRI] = __expectString(output[_DRI]); } - if (output["EngineName"] !== undefined) { - contents.EngineName = __expectString(output["EngineName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["SnapshotType"] !== undefined) { - contents.SnapshotType = __expectString(output["SnapshotType"]); + if (output[_STn] != null) { + contents[_STn] = __expectString(output[_STn]); } - if (output["TenantDatabaseCreateTime"] !== undefined) { - contents.TenantDatabaseCreateTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["TenantDatabaseCreateTime"]) - ); + if (output[_TDCT] != null) { + contents[_TDCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TDCT])); } - if (output["TenantDBName"] !== undefined) { - contents.TenantDBName = __expectString(output["TenantDBName"]); + if (output[_TDBN] != null) { + contents[_TDBN] = __expectString(output[_TDBN]); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["TenantDatabaseResourceId"] !== undefined) { - contents.TenantDatabaseResourceId = __expectString(output["TenantDatabaseResourceId"]); + if (output[_TDRI] != null) { + contents[_TDRI] = __expectString(output[_TDRI]); } - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["DBSnapshotTenantDatabaseARN"] !== undefined) { - contents.DBSnapshotTenantDatabaseARN = __expectString(output["DBSnapshotTenantDatabaseARN"]); + if (output[_DBSTDARN] != null) { + contents[_DBSTDARN] = __expectString(output[_DBSTDARN]); } - if (output["NcharCharacterSetName"] !== undefined) { - contents.NcharCharacterSetName = __expectString(output["NcharCharacterSetName"]); + if (output[_NCSN] != null) { + contents[_NCSN] = __expectString(output[_NCSN]); } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } return contents; }; @@ -24187,8 +23907,8 @@ const de_DBSnapshotTenantDatabaseNotFoundFault = ( context: __SerdeContext ): DBSnapshotTenantDatabaseNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24212,19 +23932,13 @@ const de_DBSnapshotTenantDatabasesMessage = ( context: __SerdeContext ): DBSnapshotTenantDatabasesMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBSnapshotTenantDatabases === "") { - contents.DBSnapshotTenantDatabases = []; - } else if ( - output["DBSnapshotTenantDatabases"] !== undefined && - output["DBSnapshotTenantDatabases"]["DBSnapshotTenantDatabase"] !== undefined - ) { - contents.DBSnapshotTenantDatabases = de_DBSnapshotTenantDatabasesList( - __getArrayIfSingleItem(output["DBSnapshotTenantDatabases"]["DBSnapshotTenantDatabase"]), - context - ); + contents[_DBSTD] = []; + } else if (output[_DBSTD] != null && output[_DBSTD][_DBSTDn] != null) { + contents[_DBSTD] = de_DBSnapshotTenantDatabasesList(__getArrayIfSingleItem(output[_DBSTD][_DBSTDn]), context); } return contents; }; @@ -24234,33 +23948,30 @@ const de_DBSnapshotTenantDatabasesMessage = ( */ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup => { const contents: any = {}; - if (output["DBSubnetGroupName"] !== undefined) { - contents.DBSubnetGroupName = __expectString(output["DBSubnetGroupName"]); + if (output[_DBSGNu] != null) { + contents[_DBSGNu] = __expectString(output[_DBSGNu]); } - if (output["DBSubnetGroupDescription"] !== undefined) { - contents.DBSubnetGroupDescription = __expectString(output["DBSubnetGroupDescription"]); + if (output[_DBSGDu] != null) { + contents[_DBSGDu] = __expectString(output[_DBSGDu]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["SubnetGroupStatus"] !== undefined) { - contents.SubnetGroupStatus = __expectString(output["SubnetGroupStatus"]); + if (output[_SGS] != null) { + contents[_SGS] = __expectString(output[_SGS]); } if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) { - contents.Subnets = de_SubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_Sub] != null) { + contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); } - if (output["DBSubnetGroupArn"] !== undefined) { - contents.DBSubnetGroupArn = __expectString(output["DBSubnetGroupArn"]); + if (output[_DBSGAu] != null) { + contents[_DBSGAu] = __expectString(output[_DBSGAu]); } if (output.SupportedNetworkTypes === "") { - contents.SupportedNetworkTypes = []; - } else if (output["SupportedNetworkTypes"] !== undefined && output["SupportedNetworkTypes"]["member"] !== undefined) { - contents.SupportedNetworkTypes = de_StringList( - __getArrayIfSingleItem(output["SupportedNetworkTypes"]["member"]), - context - ); + contents[_SNT] = []; + } else if (output[_SNT] != null && output[_SNT][_me] != null) { + contents[_SNT] = de_StringList(__getArrayIfSingleItem(output[_SNT][_me]), context); } return contents; }; @@ -24270,8 +23981,8 @@ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup = */ const de_DBSubnetGroupAlreadyExistsFault = (output: any, context: __SerdeContext): DBSubnetGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24284,8 +23995,8 @@ const de_DBSubnetGroupDoesNotCoverEnoughAZs = ( context: __SerdeContext ): DBSubnetGroupDoesNotCoverEnoughAZs => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24295,16 +24006,13 @@ const de_DBSubnetGroupDoesNotCoverEnoughAZs = ( */ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnetGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.DBSubnetGroups === "") { - contents.DBSubnetGroups = []; - } else if (output["DBSubnetGroups"] !== undefined && output["DBSubnetGroups"]["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroups = de_DBSubnetGroups( - __getArrayIfSingleItem(output["DBSubnetGroups"]["DBSubnetGroup"]), - context - ); + contents[_DBSGub] = []; + } else if (output[_DBSGub] != null && output[_DBSGub][_DBSGu] != null) { + contents[_DBSGub] = de_DBSubnetGroups(__getArrayIfSingleItem(output[_DBSGub][_DBSGu]), context); } return contents; }; @@ -24314,8 +24022,8 @@ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnet */ const de_DBSubnetGroupNotAllowedFault = (output: any, context: __SerdeContext): DBSubnetGroupNotAllowedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24325,8 +24033,8 @@ const de_DBSubnetGroupNotAllowedFault = (output: any, context: __SerdeContext): */ const de_DBSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): DBSubnetGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24336,8 +24044,8 @@ const de_DBSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): DB */ const de_DBSubnetGroupQuotaExceededFault = (output: any, context: __SerdeContext): DBSubnetGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24358,8 +24066,8 @@ const de_DBSubnetGroups = (output: any, context: __SerdeContext): DBSubnetGroup[ */ const de_DBSubnetQuotaExceededFault = (output: any, context: __SerdeContext): DBSubnetQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24369,8 +24077,8 @@ const de_DBSubnetQuotaExceededFault = (output: any, context: __SerdeContext): DB */ const de_DBUpgradeDependencyFailureFault = (output: any, context: __SerdeContext): DBUpgradeDependencyFailureFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24383,8 +24091,8 @@ const de_DeleteBlueGreenDeploymentResponse = ( context: __SerdeContext ): DeleteBlueGreenDeploymentResponse => { const contents: any = {}; - if (output["BlueGreenDeployment"] !== undefined) { - contents.BlueGreenDeployment = de_BlueGreenDeployment(output["BlueGreenDeployment"], context); + if (output[_BGD] != null) { + contents[_BGD] = de_BlueGreenDeployment(output[_BGD], context); } return contents; }; @@ -24397,8 +24105,8 @@ const de_DeleteDBClusterAutomatedBackupResult = ( context: __SerdeContext ): DeleteDBClusterAutomatedBackupResult => { const contents: any = {}; - if (output["DBClusterAutomatedBackup"] !== undefined) { - contents.DBClusterAutomatedBackup = de_DBClusterAutomatedBackup(output["DBClusterAutomatedBackup"], context); + if (output[_DBCABl] != null) { + contents[_DBCABl] = de_DBClusterAutomatedBackup(output[_DBCABl], context); } return contents; }; @@ -24408,8 +24116,8 @@ const de_DeleteDBClusterAutomatedBackupResult = ( */ const de_DeleteDBClusterResult = (output: any, context: __SerdeContext): DeleteDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -24419,8 +24127,8 @@ const de_DeleteDBClusterResult = (output: any, context: __SerdeContext): DeleteD */ const de_DeleteDBClusterSnapshotResult = (output: any, context: __SerdeContext): DeleteDBClusterSnapshotResult => { const contents: any = {}; - if (output["DBClusterSnapshot"] !== undefined) { - contents.DBClusterSnapshot = de_DBClusterSnapshot(output["DBClusterSnapshot"], context); + if (output[_DBCS] != null) { + contents[_DBCS] = de_DBClusterSnapshot(output[_DBCS], context); } return contents; }; @@ -24433,8 +24141,8 @@ const de_DeleteDBInstanceAutomatedBackupResult = ( context: __SerdeContext ): DeleteDBInstanceAutomatedBackupResult => { const contents: any = {}; - if (output["DBInstanceAutomatedBackup"] !== undefined) { - contents.DBInstanceAutomatedBackup = de_DBInstanceAutomatedBackup(output["DBInstanceAutomatedBackup"], context); + if (output[_DBIABn] != null) { + contents[_DBIABn] = de_DBInstanceAutomatedBackup(output[_DBIABn], context); } return contents; }; @@ -24444,8 +24152,8 @@ const de_DeleteDBInstanceAutomatedBackupResult = ( */ const de_DeleteDBInstanceResult = (output: any, context: __SerdeContext): DeleteDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -24455,8 +24163,8 @@ const de_DeleteDBInstanceResult = (output: any, context: __SerdeContext): Delete */ const de_DeleteDBProxyEndpointResponse = (output: any, context: __SerdeContext): DeleteDBProxyEndpointResponse => { const contents: any = {}; - if (output["DBProxyEndpoint"] !== undefined) { - contents.DBProxyEndpoint = de_DBProxyEndpoint(output["DBProxyEndpoint"], context); + if (output[_DBPE] != null) { + contents[_DBPE] = de_DBProxyEndpoint(output[_DBPE], context); } return contents; }; @@ -24466,8 +24174,8 @@ const de_DeleteDBProxyEndpointResponse = (output: any, context: __SerdeContext): */ const de_DeleteDBProxyResponse = (output: any, context: __SerdeContext): DeleteDBProxyResponse => { const contents: any = {}; - if (output["DBProxy"] !== undefined) { - contents.DBProxy = de_DBProxy(output["DBProxy"], context); + if (output[_DBP] != null) { + contents[_DBP] = de_DBProxy(output[_DBP], context); } return contents; }; @@ -24477,8 +24185,8 @@ const de_DeleteDBProxyResponse = (output: any, context: __SerdeContext): DeleteD */ const de_DeleteDBSnapshotResult = (output: any, context: __SerdeContext): DeleteDBSnapshotResult => { const contents: any = {}; - if (output["DBSnapshot"] !== undefined) { - contents.DBSnapshot = de_DBSnapshot(output["DBSnapshot"], context); + if (output[_DBS] != null) { + contents[_DBS] = de_DBSnapshot(output[_DBS], context); } return contents; }; @@ -24488,8 +24196,8 @@ const de_DeleteDBSnapshotResult = (output: any, context: __SerdeContext): Delete */ const de_DeleteEventSubscriptionResult = (output: any, context: __SerdeContext): DeleteEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -24499,8 +24207,8 @@ const de_DeleteEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_DeleteGlobalClusterResult = (output: any, context: __SerdeContext): DeleteGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -24510,8 +24218,8 @@ const de_DeleteGlobalClusterResult = (output: any, context: __SerdeContext): Del */ const de_DeleteTenantDatabaseResult = (output: any, context: __SerdeContext): DeleteTenantDatabaseResult => { const contents: any = {}; - if (output["TenantDatabase"] !== undefined) { - contents.TenantDatabase = de_TenantDatabase(output["TenantDatabase"], context); + if (output[_TD] != null) { + contents[_TD] = de_TenantDatabase(output[_TD], context); } return contents; }; @@ -24536,15 +24244,12 @@ const de_DescribeBlueGreenDeploymentsResponse = ( ): DescribeBlueGreenDeploymentsResponse => { const contents: any = {}; if (output.BlueGreenDeployments === "") { - contents.BlueGreenDeployments = []; - } else if (output["BlueGreenDeployments"] !== undefined && output["BlueGreenDeployments"]["member"] !== undefined) { - contents.BlueGreenDeployments = de_BlueGreenDeploymentList( - __getArrayIfSingleItem(output["BlueGreenDeployments"]["member"]), - context - ); + contents[_BGDl] = []; + } else if (output[_BGDl] != null && output[_BGDl][_me] != null) { + contents[_BGDl] = de_BlueGreenDeploymentList(__getArrayIfSingleItem(output[_BGDl][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -24557,11 +24262,8 @@ const de_DescribeDBClusterSnapshotAttributesResult = ( context: __SerdeContext ): DescribeDBClusterSnapshotAttributesResult => { const contents: any = {}; - if (output["DBClusterSnapshotAttributesResult"] !== undefined) { - contents.DBClusterSnapshotAttributesResult = de_DBClusterSnapshotAttributesResult( - output["DBClusterSnapshotAttributesResult"], - context - ); + if (output[_DBCSAR] != null) { + contents[_DBCSAR] = de_DBClusterSnapshotAttributesResult(output[_DBCSAR], context); } return contents; }; @@ -24571,14 +24273,14 @@ const de_DescribeDBClusterSnapshotAttributesResult = ( */ const de_DescribeDBLogFilesDetails = (output: any, context: __SerdeContext): DescribeDBLogFilesDetails => { const contents: any = {}; - if (output["LogFileName"] !== undefined) { - contents.LogFileName = __expectString(output["LogFileName"]); + if (output[_LFN] != null) { + contents[_LFN] = __expectString(output[_LFN]); } - if (output["LastWritten"] !== undefined) { - contents.LastWritten = __strictParseLong(output["LastWritten"]) as number; + if (output[_LW] != null) { + contents[_LW] = __strictParseLong(output[_LW]) as number; } - if (output["Size"] !== undefined) { - contents.Size = __strictParseLong(output["Size"]) as number; + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; } return contents; }; @@ -24600,18 +24302,12 @@ const de_DescribeDBLogFilesList = (output: any, context: __SerdeContext): Descri const de_DescribeDBLogFilesResponse = (output: any, context: __SerdeContext): DescribeDBLogFilesResponse => { const contents: any = {}; if (output.DescribeDBLogFiles === "") { - contents.DescribeDBLogFiles = []; - } else if ( - output["DescribeDBLogFiles"] !== undefined && - output["DescribeDBLogFiles"]["DescribeDBLogFilesDetails"] !== undefined - ) { - contents.DescribeDBLogFiles = de_DescribeDBLogFilesList( - __getArrayIfSingleItem(output["DescribeDBLogFiles"]["DescribeDBLogFilesDetails"]), - context - ); + contents[_DDBLF] = []; + } else if (output[_DDBLF] != null && output[_DDBLF][_DDBLFD] != null) { + contents[_DDBLF] = de_DescribeDBLogFilesList(__getArrayIfSingleItem(output[_DDBLF][_DDBLFD]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -24622,12 +24318,12 @@ const de_DescribeDBLogFilesResponse = (output: any, context: __SerdeContext): De const de_DescribeDBProxiesResponse = (output: any, context: __SerdeContext): DescribeDBProxiesResponse => { const contents: any = {}; if (output.DBProxies === "") { - contents.DBProxies = []; - } else if (output["DBProxies"] !== undefined && output["DBProxies"]["member"] !== undefined) { - contents.DBProxies = de_DBProxyList(__getArrayIfSingleItem(output["DBProxies"]["member"]), context); + contents[_DBPr] = []; + } else if (output[_DBPr] != null && output[_DBPr][_me] != null) { + contents[_DBPr] = de_DBProxyList(__getArrayIfSingleItem(output[_DBPr][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -24641,15 +24337,12 @@ const de_DescribeDBProxyEndpointsResponse = ( ): DescribeDBProxyEndpointsResponse => { const contents: any = {}; if (output.DBProxyEndpoints === "") { - contents.DBProxyEndpoints = []; - } else if (output["DBProxyEndpoints"] !== undefined && output["DBProxyEndpoints"]["member"] !== undefined) { - contents.DBProxyEndpoints = de_DBProxyEndpointList( - __getArrayIfSingleItem(output["DBProxyEndpoints"]["member"]), - context - ); + contents[_DBPEr] = []; + } else if (output[_DBPEr] != null && output[_DBPEr][_me] != null) { + contents[_DBPEr] = de_DBProxyEndpointList(__getArrayIfSingleItem(output[_DBPEr][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -24663,12 +24356,12 @@ const de_DescribeDBProxyTargetGroupsResponse = ( ): DescribeDBProxyTargetGroupsResponse => { const contents: any = {}; if (output.TargetGroups === "") { - contents.TargetGroups = []; - } else if (output["TargetGroups"] !== undefined && output["TargetGroups"]["member"] !== undefined) { - contents.TargetGroups = de_TargetGroupList(__getArrayIfSingleItem(output["TargetGroups"]["member"]), context); + contents[_TG] = []; + } else if (output[_TG] != null && output[_TG][_me] != null) { + contents[_TG] = de_TargetGroupList(__getArrayIfSingleItem(output[_TG][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -24679,12 +24372,12 @@ const de_DescribeDBProxyTargetGroupsResponse = ( const de_DescribeDBProxyTargetsResponse = (output: any, context: __SerdeContext): DescribeDBProxyTargetsResponse => { const contents: any = {}; if (output.Targets === "") { - contents.Targets = []; - } else if (output["Targets"] !== undefined && output["Targets"]["member"] !== undefined) { - contents.Targets = de_TargetList(__getArrayIfSingleItem(output["Targets"]["member"]), context); + contents[_Tar] = []; + } else if (output[_Tar] != null && output[_Tar][_me] != null) { + contents[_Tar] = de_TargetList(__getArrayIfSingleItem(output[_Tar][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -24697,8 +24390,8 @@ const de_DescribeDBSnapshotAttributesResult = ( context: __SerdeContext ): DescribeDBSnapshotAttributesResult => { const contents: any = {}; - if (output["DBSnapshotAttributesResult"] !== undefined) { - contents.DBSnapshotAttributesResult = de_DBSnapshotAttributesResult(output["DBSnapshotAttributesResult"], context); + if (output[_DBSAR] != null) { + contents[_DBSAR] = de_DBSnapshotAttributesResult(output[_DBSAR], context); } return contents; }; @@ -24711,8 +24404,8 @@ const de_DescribeEngineDefaultClusterParametersResult = ( context: __SerdeContext ): DescribeEngineDefaultClusterParametersResult => { const contents: any = {}; - if (output["EngineDefaults"] !== undefined) { - contents.EngineDefaults = de_EngineDefaults(output["EngineDefaults"], context); + if (output[_ED] != null) { + contents[_ED] = de_EngineDefaults(output[_ED], context); } return contents; }; @@ -24725,8 +24418,8 @@ const de_DescribeEngineDefaultParametersResult = ( context: __SerdeContext ): DescribeEngineDefaultParametersResult => { const contents: any = {}; - if (output["EngineDefaults"] !== undefined) { - contents.EngineDefaults = de_EngineDefaults(output["EngineDefaults"], context); + if (output[_ED] != null) { + contents[_ED] = de_EngineDefaults(output[_ED], context); } return contents; }; @@ -24736,13 +24429,13 @@ const de_DescribeEngineDefaultParametersResult = ( */ const de_DescribeIntegrationsResponse = (output: any, context: __SerdeContext): DescribeIntegrationsResponse => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.Integrations === "") { - contents.Integrations = []; - } else if (output["Integrations"] !== undefined && output["Integrations"]["Integration"] !== undefined) { - contents.Integrations = de_IntegrationList(__getArrayIfSingleItem(output["Integrations"]["Integration"]), context); + contents[_In] = []; + } else if (output[_In] != null && output[_In][_Int] != null) { + contents[_In] = de_IntegrationList(__getArrayIfSingleItem(output[_In][_Int]), context); } return contents; }; @@ -24755,11 +24448,8 @@ const de_DescribeValidDBInstanceModificationsResult = ( context: __SerdeContext ): DescribeValidDBInstanceModificationsResult => { const contents: any = {}; - if (output["ValidDBInstanceModificationsMessage"] !== undefined) { - contents.ValidDBInstanceModificationsMessage = de_ValidDBInstanceModificationsMessage( - output["ValidDBInstanceModificationsMessage"], - context - ); + if (output[_VDBIMM] != null) { + contents[_VDBIMM] = de_ValidDBInstanceModificationsMessage(output[_VDBIMM], context); } return contents; }; @@ -24769,28 +24459,28 @@ const de_DescribeValidDBInstanceModificationsResult = ( */ const de_DomainMembership = (output: any, context: __SerdeContext): DomainMembership => { const contents: any = {}; - if (output["Domain"] !== undefined) { - contents.Domain = __expectString(output["Domain"]); + if (output[_Do] != null) { + contents[_Do] = __expectString(output[_Do]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["FQDN"] !== undefined) { - contents.FQDN = __expectString(output["FQDN"]); + if (output[_FQDN] != null) { + contents[_FQDN] = __expectString(output[_FQDN]); } - if (output["IAMRoleName"] !== undefined) { - contents.IAMRoleName = __expectString(output["IAMRoleName"]); + if (output[_IAMRN] != null) { + contents[_IAMRN] = __expectString(output[_IAMRN]); } - if (output["OU"] !== undefined) { - contents.OU = __expectString(output["OU"]); + if (output[_OU] != null) { + contents[_OU] = __expectString(output[_OU]); } - if (output["AuthSecretArn"] !== undefined) { - contents.AuthSecretArn = __expectString(output["AuthSecretArn"]); + if (output[_ASA] != null) { + contents[_ASA] = __expectString(output[_ASA]); } if (output.DnsIps === "") { - contents.DnsIps = []; - } else if (output["DnsIps"] !== undefined && output["DnsIps"]["member"] !== undefined) { - contents.DnsIps = de_StringList(__getArrayIfSingleItem(output["DnsIps"]["member"]), context); + contents[_DIn] = []; + } else if (output[_DIn] != null && output[_DIn][_me] != null) { + contents[_DIn] = de_StringList(__getArrayIfSingleItem(output[_DIn][_me]), context); } return contents; }; @@ -24811,8 +24501,8 @@ const de_DomainMembershipList = (output: any, context: __SerdeContext): DomainMe */ const de_DomainNotFoundFault = (output: any, context: __SerdeContext): DomainNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24822,11 +24512,11 @@ const de_DomainNotFoundFault = (output: any, context: __SerdeContext): DomainNot */ const de_DoubleRange = (output: any, context: __SerdeContext): DoubleRange => { const contents: any = {}; - if (output["From"] !== undefined) { - contents.From = __strictParseFloat(output["From"]) as number; + if (output[_Fr] != null) { + contents[_Fr] = __strictParseFloat(output[_Fr]) as number; } - if (output["To"] !== undefined) { - contents.To = __strictParseFloat(output["To"]) as number; + if (output[_To] != null) { + contents[_To] = __strictParseFloat(output[_To]) as number; } return contents; }; @@ -24847,14 +24537,14 @@ const de_DoubleRangeList = (output: any, context: __SerdeContext): DoubleRange[] */ const de_DownloadDBLogFilePortionDetails = (output: any, context: __SerdeContext): DownloadDBLogFilePortionDetails => { const contents: any = {}; - if (output["LogFileData"] !== undefined) { - contents.LogFileData = __expectString(output["LogFileData"]); + if (output[_LFD] != null) { + contents[_LFD] = __expectString(output[_LFD]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } - if (output["AdditionalDataPending"] !== undefined) { - contents.AdditionalDataPending = __parseBoolean(output["AdditionalDataPending"]); + if (output[_ADP] != null) { + contents[_ADP] = __parseBoolean(output[_ADP]); } return contents; }; @@ -24867,8 +24557,8 @@ const de_Ec2ImagePropertiesNotSupportedFault = ( context: __SerdeContext ): Ec2ImagePropertiesNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -24878,17 +24568,17 @@ const de_Ec2ImagePropertiesNotSupportedFault = ( */ const de_EC2SecurityGroup = (output: any, context: __SerdeContext): EC2SecurityGroup => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EC2SecurityGroupName"] !== undefined) { - contents.EC2SecurityGroupName = __expectString(output["EC2SecurityGroupName"]); + if (output[_ECSGN] != null) { + contents[_ECSGN] = __expectString(output[_ECSGN]); } - if (output["EC2SecurityGroupId"] !== undefined) { - contents.EC2SecurityGroupId = __expectString(output["EC2SecurityGroupId"]); + if (output[_ECSGI] != null) { + contents[_ECSGI] = __expectString(output[_ECSGI]); } - if (output["EC2SecurityGroupOwnerId"] !== undefined) { - contents.EC2SecurityGroupOwnerId = __expectString(output["EC2SecurityGroupOwnerId"]); + if (output[_ECSGOI] != null) { + contents[_ECSGOI] = __expectString(output[_ECSGOI]); } return contents; }; @@ -24922,14 +24612,14 @@ const de_EncryptionContextMap = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["Address"] !== undefined) { - contents.Address = __expectString(output["Address"]); + if (output[_Ad] != null) { + contents[_Ad] = __expectString(output[_Ad]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } return contents; }; @@ -24939,16 +24629,16 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { */ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults => { const contents: any = {}; - if (output["DBParameterGroupFamily"] !== undefined) { - contents.DBParameterGroupFamily = __expectString(output["DBParameterGroupFamily"]); + if (output[_DBPGF] != null) { + contents[_DBPGF] = __expectString(output[_DBPGF]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } return contents; }; @@ -24969,28 +24659,25 @@ const de_EngineModeList = (output: any, context: __SerdeContext): string[] => { */ const de_Event = (output: any, context: __SerdeContext): Event => { const contents: any = {}; - if (output["SourceIdentifier"] !== undefined) { - contents.SourceIdentifier = __expectString(output["SourceIdentifier"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Da] != null) { + contents[_Da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Da])); } - if (output["SourceArn"] !== undefined) { - contents.SourceArn = __expectString(output["SourceArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } return contents; }; @@ -25011,16 +24698,13 @@ const de_EventCategoriesList = (output: any, context: __SerdeContext): string[] */ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCategoriesMap => { const contents: any = {}; - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } return contents; }; @@ -25042,15 +24726,9 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; if (output.EventCategoriesMapList === "") { - contents.EventCategoriesMapList = []; - } else if ( - output["EventCategoriesMapList"] !== undefined && - output["EventCategoriesMapList"]["EventCategoriesMap"] !== undefined - ) { - contents.EventCategoriesMapList = de_EventCategoriesMapList( - __getArrayIfSingleItem(output["EventCategoriesMapList"]["EventCategoriesMap"]), - context - ); + contents[_ECML] = []; + } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { + contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); } return contents; }; @@ -25071,13 +24749,13 @@ const de_EventList = (output: any, context: __SerdeContext): Event[] => { */ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.Events === "") { - contents.Events = []; - } else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Events"]["Event"]), context); + contents[_Ev] = []; + } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { + contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); } return contents; }; @@ -25087,45 +24765,39 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = */ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscription => { const contents: any = {}; - if (output["CustomerAwsId"] !== undefined) { - contents.CustomerAwsId = __expectString(output["CustomerAwsId"]); + if (output[_CAIu] != null) { + contents[_CAIu] = __expectString(output[_CAIu]); } - if (output["CustSubscriptionId"] !== undefined) { - contents.CustSubscriptionId = __expectString(output["CustSubscriptionId"]); + if (output[_CSI] != null) { + contents[_CSI] = __expectString(output[_CSI]); } - if (output["SnsTopicArn"] !== undefined) { - contents.SnsTopicArn = __expectString(output["SnsTopicArn"]); + if (output[_STA] != null) { + contents[_STA] = __expectString(output[_STA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["SubscriptionCreationTime"] !== undefined) { - contents.SubscriptionCreationTime = __expectString(output["SubscriptionCreationTime"]); + if (output[_SCTu] != null) { + contents[_SCTu] = __expectString(output[_SCTu]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } if (output.SourceIdsList === "") { - contents.SourceIdsList = []; - } else if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) { - contents.SourceIdsList = de_SourceIdsList(__getArrayIfSingleItem(output["SourceIdsList"]["SourceId"]), context); + contents[_SIL] = []; + } else if (output[_SIL] != null && output[_SIL][_SIou] != null) { + contents[_SIL] = de_SourceIdsList(__getArrayIfSingleItem(output[_SIL][_SIou]), context); } if (output.EventCategoriesList === "") { - contents.EventCategoriesList = []; - } else if ( - output["EventCategoriesList"] !== undefined && - output["EventCategoriesList"]["EventCategory"] !== undefined - ) { - contents.EventCategoriesList = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategoriesList"]["EventCategory"]), - context - ); + contents[_ECL] = []; + } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { + contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_En] != null) { + contents[_En] = __parseBoolean(output[_En]); } - if (output["EventSubscriptionArn"] !== undefined) { - contents.EventSubscriptionArn = __expectString(output["EventSubscriptionArn"]); + if (output[_ESA] != null) { + contents[_ESA] = __expectString(output[_ESA]); } return contents; }; @@ -25138,8 +24810,8 @@ const de_EventSubscriptionQuotaExceededFault = ( context: __SerdeContext ): EventSubscriptionQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25160,19 +24832,13 @@ const de_EventSubscriptionsList = (output: any, context: __SerdeContext): EventS */ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): EventSubscriptionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.EventSubscriptionsList === "") { - contents.EventSubscriptionsList = []; - } else if ( - output["EventSubscriptionsList"] !== undefined && - output["EventSubscriptionsList"]["EventSubscription"] !== undefined - ) { - contents.EventSubscriptionsList = de_EventSubscriptionsList( - __getArrayIfSingleItem(output["EventSubscriptionsList"]["EventSubscription"]), - context - ); + contents[_ESL] = []; + } else if (output[_ESL] != null && output[_ESL][_ES] != null) { + contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); } return contents; }; @@ -25182,55 +24848,55 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve */ const de_ExportTask = (output: any, context: __SerdeContext): ExportTask => { const contents: any = {}; - if (output["ExportTaskIdentifier"] !== undefined) { - contents.ExportTaskIdentifier = __expectString(output["ExportTaskIdentifier"]); + if (output[_ETI] != null) { + contents[_ETI] = __expectString(output[_ETI]); } - if (output["SourceArn"] !== undefined) { - contents.SourceArn = __expectString(output["SourceArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } if (output.ExportOnly === "") { - contents.ExportOnly = []; - } else if (output["ExportOnly"] !== undefined && output["ExportOnly"]["member"] !== undefined) { - contents.ExportOnly = de_StringList(__getArrayIfSingleItem(output["ExportOnly"]["member"]), context); + contents[_EO] = []; + } else if (output[_EO] != null && output[_EO][_me] != null) { + contents[_EO] = de_StringList(__getArrayIfSingleItem(output[_EO][_me]), context); } - if (output["SnapshotTime"] !== undefined) { - contents.SnapshotTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotTime"])); + if (output[_STnap] != null) { + contents[_STnap] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STnap])); } - if (output["TaskStartTime"] !== undefined) { - contents.TaskStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["TaskStartTime"])); + if (output[_TST] != null) { + contents[_TST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TST])); } - if (output["TaskEndTime"] !== undefined) { - contents.TaskEndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["TaskEndTime"])); + if (output[_TET] != null) { + contents[_TET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TET])); } - if (output["S3Bucket"] !== undefined) { - contents.S3Bucket = __expectString(output["S3Bucket"]); + if (output[_SBu] != null) { + contents[_SBu] = __expectString(output[_SBu]); } - if (output["S3Prefix"] !== undefined) { - contents.S3Prefix = __expectString(output["S3Prefix"]); + if (output[_SP] != null) { + contents[_SP] = __expectString(output[_SP]); } - if (output["IamRoleArn"] !== undefined) { - contents.IamRoleArn = __expectString(output["IamRoleArn"]); + if (output[_IRA] != null) { + contents[_IRA] = __expectString(output[_IRA]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["PercentProgress"] !== undefined) { - contents.PercentProgress = __strictParseInt32(output["PercentProgress"]) as number; + if (output[_PP] != null) { + contents[_PP] = __strictParseInt32(output[_PP]) as number; } - if (output["TotalExtractedDataInGB"] !== undefined) { - contents.TotalExtractedDataInGB = __strictParseInt32(output["TotalExtractedDataInGB"]) as number; + if (output[_TEDIGB] != null) { + contents[_TEDIGB] = __strictParseInt32(output[_TEDIGB]) as number; } - if (output["FailureCause"] !== undefined) { - contents.FailureCause = __expectString(output["FailureCause"]); + if (output[_FCa] != null) { + contents[_FCa] = __expectString(output[_FCa]); } - if (output["WarningMessage"] !== undefined) { - contents.WarningMessage = __expectString(output["WarningMessage"]); + if (output[_WM] != null) { + contents[_WM] = __expectString(output[_WM]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_STo] != null) { + contents[_STo] = __expectString(output[_STo]); } return contents; }; @@ -25240,8 +24906,8 @@ const de_ExportTask = (output: any, context: __SerdeContext): ExportTask => { */ const de_ExportTaskAlreadyExistsFault = (output: any, context: __SerdeContext): ExportTaskAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25251,8 +24917,8 @@ const de_ExportTaskAlreadyExistsFault = (output: any, context: __SerdeContext): */ const de_ExportTaskNotFoundFault = (output: any, context: __SerdeContext): ExportTaskNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25273,13 +24939,13 @@ const de_ExportTasksList = (output: any, context: __SerdeContext): ExportTask[] */ const de_ExportTasksMessage = (output: any, context: __SerdeContext): ExportTasksMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.ExportTasks === "") { - contents.ExportTasks = []; - } else if (output["ExportTasks"] !== undefined && output["ExportTasks"]["ExportTask"] !== undefined) { - contents.ExportTasks = de_ExportTasksList(__getArrayIfSingleItem(output["ExportTasks"]["ExportTask"]), context); + contents[_ETx] = []; + } else if (output[_ETx] != null && output[_ETx][_ETxp] != null) { + contents[_ETx] = de_ExportTasksList(__getArrayIfSingleItem(output[_ETx][_ETxp]), context); } return contents; }; @@ -25289,8 +24955,8 @@ const de_ExportTasksMessage = (output: any, context: __SerdeContext): ExportTask */ const de_FailoverDBClusterResult = (output: any, context: __SerdeContext): FailoverDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -25300,8 +24966,8 @@ const de_FailoverDBClusterResult = (output: any, context: __SerdeContext): Failo */ const de_FailoverGlobalClusterResult = (output: any, context: __SerdeContext): FailoverGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -25311,17 +24977,17 @@ const de_FailoverGlobalClusterResult = (output: any, context: __SerdeContext): F */ const de_FailoverState = (output: any, context: __SerdeContext): FailoverState => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["FromDbClusterArn"] !== undefined) { - contents.FromDbClusterArn = __expectString(output["FromDbClusterArn"]); + if (output[_FDCA] != null) { + contents[_FDCA] = __expectString(output[_FDCA]); } - if (output["ToDbClusterArn"] !== undefined) { - contents.ToDbClusterArn = __expectString(output["ToDbClusterArn"]); + if (output[_TDCA] != null) { + contents[_TDCA] = __expectString(output[_TDCA]); } - if (output["IsDataLossAllowed"] !== undefined) { - contents.IsDataLossAllowed = __parseBoolean(output["IsDataLossAllowed"]); + if (output[_IDLA] != null) { + contents[_IDLA] = __parseBoolean(output[_IDLA]); } return contents; }; @@ -25342,46 +25008,40 @@ const de_FeatureNameList = (output: any, context: __SerdeContext): string[] => { */ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster => { const contents: any = {}; - if (output["GlobalClusterIdentifier"] !== undefined) { - contents.GlobalClusterIdentifier = __expectString(output["GlobalClusterIdentifier"]); + if (output[_GCI] != null) { + contents[_GCI] = __expectString(output[_GCI]); } - if (output["GlobalClusterResourceId"] !== undefined) { - contents.GlobalClusterResourceId = __expectString(output["GlobalClusterResourceId"]); + if (output[_GCRI] != null) { + contents[_GCRI] = __expectString(output[_GCRI]); } - if (output["GlobalClusterArn"] !== undefined) { - contents.GlobalClusterArn = __expectString(output["GlobalClusterArn"]); + if (output[_GCA] != null) { + contents[_GCA] = __expectString(output[_GCA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DatabaseName"] !== undefined) { - contents.DatabaseName = __expectString(output["DatabaseName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["StorageEncrypted"] !== undefined) { - contents.StorageEncrypted = __parseBoolean(output["StorageEncrypted"]); + if (output[_SE] != null) { + contents[_SE] = __parseBoolean(output[_SE]); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } if (output.GlobalClusterMembers === "") { - contents.GlobalClusterMembers = []; - } else if ( - output["GlobalClusterMembers"] !== undefined && - output["GlobalClusterMembers"]["GlobalClusterMember"] !== undefined - ) { - contents.GlobalClusterMembers = de_GlobalClusterMemberList( - __getArrayIfSingleItem(output["GlobalClusterMembers"]["GlobalClusterMember"]), - context - ); + contents[_GCM] = []; + } else if (output[_GCM] != null && output[_GCM][_GCMl] != null) { + contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context); } - if (output["FailoverState"] !== undefined) { - contents.FailoverState = de_FailoverState(output["FailoverState"], context); + if (output[_FSa] != null) { + contents[_FSa] = de_FailoverState(output[_FSa], context); } return contents; }; @@ -25391,8 +25051,8 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = */ const de_GlobalClusterAlreadyExistsFault = (output: any, context: __SerdeContext): GlobalClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25413,22 +25073,22 @@ const de_GlobalClusterList = (output: any, context: __SerdeContext): GlobalClust */ const de_GlobalClusterMember = (output: any, context: __SerdeContext): GlobalClusterMember => { const contents: any = {}; - if (output["DBClusterArn"] !== undefined) { - contents.DBClusterArn = __expectString(output["DBClusterArn"]); + if (output[_DBCA] != null) { + contents[_DBCA] = __expectString(output[_DBCA]); } if (output.Readers === "") { - contents.Readers = []; - } else if (output["Readers"] !== undefined && output["Readers"]["member"] !== undefined) { - contents.Readers = de_ReadersArnList(__getArrayIfSingleItem(output["Readers"]["member"]), context); + contents[_Re] = []; + } else if (output[_Re] != null && output[_Re][_me] != null) { + contents[_Re] = de_ReadersArnList(__getArrayIfSingleItem(output[_Re][_me]), context); } - if (output["IsWriter"] !== undefined) { - contents.IsWriter = __parseBoolean(output["IsWriter"]); + if (output[_IW] != null) { + contents[_IW] = __parseBoolean(output[_IW]); } - if (output["GlobalWriteForwardingStatus"] !== undefined) { - contents.GlobalWriteForwardingStatus = __expectString(output["GlobalWriteForwardingStatus"]); + if (output[_GWFS] != null) { + contents[_GWFS] = __expectString(output[_GWFS]); } - if (output["SynchronizationStatus"] !== undefined) { - contents.SynchronizationStatus = __expectString(output["SynchronizationStatus"]); + if (output[_SS] != null) { + contents[_SS] = __expectString(output[_SS]); } return contents; }; @@ -25449,8 +25109,8 @@ const de_GlobalClusterMemberList = (output: any, context: __SerdeContext): Globa */ const de_GlobalClusterNotFoundFault = (output: any, context: __SerdeContext): GlobalClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25460,8 +25120,8 @@ const de_GlobalClusterNotFoundFault = (output: any, context: __SerdeContext): Gl */ const de_GlobalClusterQuotaExceededFault = (output: any, context: __SerdeContext): GlobalClusterQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25471,16 +25131,13 @@ const de_GlobalClusterQuotaExceededFault = (output: any, context: __SerdeContext */ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalClustersMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.GlobalClusters === "") { - contents.GlobalClusters = []; - } else if (output["GlobalClusters"] !== undefined && output["GlobalClusters"]["GlobalClusterMember"] !== undefined) { - contents.GlobalClusters = de_GlobalClusterList( - __getArrayIfSingleItem(output["GlobalClusters"]["GlobalClusterMember"]), - context - ); + contents[_GCl] = []; + } else if (output[_GCl] != null && output[_GCl][_GCMl] != null) { + contents[_GCl] = de_GlobalClusterList(__getArrayIfSingleItem(output[_GCl][_GCMl]), context); } return contents; }; @@ -25490,8 +25147,8 @@ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalC */ const de_IamRoleMissingPermissionsFault = (output: any, context: __SerdeContext): IamRoleMissingPermissionsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25501,8 +25158,8 @@ const de_IamRoleMissingPermissionsFault = (output: any, context: __SerdeContext) */ const de_IamRoleNotFoundFault = (output: any, context: __SerdeContext): IamRoleNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25512,8 +25169,8 @@ const de_IamRoleNotFoundFault = (output: any, context: __SerdeContext): IamRoleN */ const de_InstanceQuotaExceededFault = (output: any, context: __SerdeContext): InstanceQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25526,8 +25183,8 @@ const de_InsufficientAvailableIPsInSubnetFault = ( context: __SerdeContext ): InsufficientAvailableIPsInSubnetFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25540,8 +25197,8 @@ const de_InsufficientDBClusterCapacityFault = ( context: __SerdeContext ): InsufficientDBClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25554,8 +25211,8 @@ const de_InsufficientDBInstanceCapacityFault = ( context: __SerdeContext ): InsufficientDBInstanceCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25568,8 +25225,8 @@ const de_InsufficientStorageClusterCapacityFault = ( context: __SerdeContext ): InsufficientStorageClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25579,47 +25236,41 @@ const de_InsufficientStorageClusterCapacityFault = ( */ const de_Integration = (output: any, context: __SerdeContext): Integration => { const contents: any = {}; - if (output["SourceArn"] !== undefined) { - contents.SourceArn = __expectString(output["SourceArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } - if (output["TargetArn"] !== undefined) { - contents.TargetArn = __expectString(output["TargetArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["IntegrationName"] !== undefined) { - contents.IntegrationName = __expectString(output["IntegrationName"]); + if (output[_IN] != null) { + contents[_IN] = __expectString(output[_IN]); } - if (output["IntegrationArn"] !== undefined) { - contents.IntegrationArn = __expectString(output["IntegrationArn"]); + if (output[_IAn] != null) { + contents[_IAn] = __expectString(output[_IAn]); } - if (output["KMSKeyId"] !== undefined) { - contents.KMSKeyId = __expectString(output["KMSKeyId"]); + if (output[_KMSKI] != null) { + contents[_KMSKI] = __expectString(output[_KMSKI]); } if (output.AdditionalEncryptionContext === "") { - contents.AdditionalEncryptionContext = {}; - } else if ( - output["AdditionalEncryptionContext"] !== undefined && - output["AdditionalEncryptionContext"]["entry"] !== undefined - ) { - contents.AdditionalEncryptionContext = de_EncryptionContextMap( - __getArrayIfSingleItem(output["AdditionalEncryptionContext"]["entry"]), - context - ); + contents[_AEC] = {}; + } else if (output[_AEC] != null && output[_AEC][_e] != null) { + contents[_AEC] = de_EncryptionContextMap(__getArrayIfSingleItem(output[_AEC][_e]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Tag] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Tag]), context); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } if (output.Errors === "") { - contents.Errors = []; - } else if (output["Errors"] !== undefined && output["Errors"]["IntegrationError"] !== undefined) { - contents.Errors = de_IntegrationErrorList(__getArrayIfSingleItem(output["Errors"]["IntegrationError"]), context); + contents[_Er] = []; + } else if (output[_Er] != null && output[_Er][_IE] != null) { + contents[_Er] = de_IntegrationErrorList(__getArrayIfSingleItem(output[_Er][_IE]), context); } return contents; }; @@ -25629,8 +25280,8 @@ const de_Integration = (output: any, context: __SerdeContext): Integration => { */ const de_IntegrationAlreadyExistsFault = (output: any, context: __SerdeContext): IntegrationAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25643,8 +25294,8 @@ const de_IntegrationConflictOperationFault = ( context: __SerdeContext ): IntegrationConflictOperationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25654,11 +25305,11 @@ const de_IntegrationConflictOperationFault = ( */ const de_IntegrationError = (output: any, context: __SerdeContext): IntegrationError => { const contents: any = {}; - if (output["ErrorCode"] !== undefined) { - contents.ErrorCode = __expectString(output["ErrorCode"]); + if (output[_ECr] != null) { + contents[_ECr] = __expectString(output[_ECr]); } - if (output["ErrorMessage"] !== undefined) { - contents.ErrorMessage = __expectString(output["ErrorMessage"]); + if (output[_EMr] != null) { + contents[_EMr] = __expectString(output[_EMr]); } return contents; }; @@ -25690,8 +25341,8 @@ const de_IntegrationList = (output: any, context: __SerdeContext): Integration[] */ const de_IntegrationNotFoundFault = (output: any, context: __SerdeContext): IntegrationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25701,8 +25352,8 @@ const de_IntegrationNotFoundFault = (output: any, context: __SerdeContext): Inte */ const de_IntegrationQuotaExceededFault = (output: any, context: __SerdeContext): IntegrationQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25715,8 +25366,8 @@ const de_InvalidBlueGreenDeploymentStateFault = ( context: __SerdeContext ): InvalidBlueGreenDeploymentStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25729,8 +25380,8 @@ const de_InvalidCustomDBEngineVersionStateFault = ( context: __SerdeContext ): InvalidCustomDBEngineVersionStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25743,8 +25394,8 @@ const de_InvalidDBClusterAutomatedBackupStateFault = ( context: __SerdeContext ): InvalidDBClusterAutomatedBackupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25754,8 +25405,8 @@ const de_InvalidDBClusterAutomatedBackupStateFault = ( */ const de_InvalidDBClusterCapacityFault = (output: any, context: __SerdeContext): InvalidDBClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25768,8 +25419,8 @@ const de_InvalidDBClusterEndpointStateFault = ( context: __SerdeContext ): InvalidDBClusterEndpointStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25782,8 +25433,8 @@ const de_InvalidDBClusterSnapshotStateFault = ( context: __SerdeContext ): InvalidDBClusterSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25793,8 +25444,8 @@ const de_InvalidDBClusterSnapshotStateFault = ( */ const de_InvalidDBClusterStateFault = (output: any, context: __SerdeContext): InvalidDBClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25807,8 +25458,8 @@ const de_InvalidDBInstanceAutomatedBackupStateFault = ( context: __SerdeContext ): InvalidDBInstanceAutomatedBackupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25818,8 +25469,8 @@ const de_InvalidDBInstanceAutomatedBackupStateFault = ( */ const de_InvalidDBInstanceStateFault = (output: any, context: __SerdeContext): InvalidDBInstanceStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25832,8 +25483,8 @@ const de_InvalidDBParameterGroupStateFault = ( context: __SerdeContext ): InvalidDBParameterGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25846,8 +25497,8 @@ const de_InvalidDBProxyEndpointStateFault = ( context: __SerdeContext ): InvalidDBProxyEndpointStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25857,8 +25508,8 @@ const de_InvalidDBProxyEndpointStateFault = ( */ const de_InvalidDBProxyStateFault = (output: any, context: __SerdeContext): InvalidDBProxyStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25871,8 +25522,8 @@ const de_InvalidDBSecurityGroupStateFault = ( context: __SerdeContext ): InvalidDBSecurityGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25882,8 +25533,8 @@ const de_InvalidDBSecurityGroupStateFault = ( */ const de_InvalidDBSnapshotStateFault = (output: any, context: __SerdeContext): InvalidDBSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25893,8 +25544,8 @@ const de_InvalidDBSnapshotStateFault = (output: any, context: __SerdeContext): I */ const de_InvalidDBSubnetGroupFault = (output: any, context: __SerdeContext): InvalidDBSubnetGroupFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25904,8 +25555,8 @@ const de_InvalidDBSubnetGroupFault = (output: any, context: __SerdeContext): Inv */ const de_InvalidDBSubnetGroupStateFault = (output: any, context: __SerdeContext): InvalidDBSubnetGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25915,8 +25566,8 @@ const de_InvalidDBSubnetGroupStateFault = (output: any, context: __SerdeContext) */ const de_InvalidDBSubnetStateFault = (output: any, context: __SerdeContext): InvalidDBSubnetStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25929,8 +25580,8 @@ const de_InvalidEventSubscriptionStateFault = ( context: __SerdeContext ): InvalidEventSubscriptionStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25940,8 +25591,8 @@ const de_InvalidEventSubscriptionStateFault = ( */ const de_InvalidExportOnlyFault = (output: any, context: __SerdeContext): InvalidExportOnlyFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25951,8 +25602,8 @@ const de_InvalidExportOnlyFault = (output: any, context: __SerdeContext): Invali */ const de_InvalidExportSourceStateFault = (output: any, context: __SerdeContext): InvalidExportSourceStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25962,8 +25613,8 @@ const de_InvalidExportSourceStateFault = (output: any, context: __SerdeContext): */ const de_InvalidExportTaskStateFault = (output: any, context: __SerdeContext): InvalidExportTaskStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25973,8 +25624,8 @@ const de_InvalidExportTaskStateFault = (output: any, context: __SerdeContext): I */ const de_InvalidGlobalClusterStateFault = (output: any, context: __SerdeContext): InvalidGlobalClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25984,8 +25635,8 @@ const de_InvalidGlobalClusterStateFault = (output: any, context: __SerdeContext) */ const de_InvalidIntegrationStateFault = (output: any, context: __SerdeContext): InvalidIntegrationStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -25995,8 +25646,8 @@ const de_InvalidIntegrationStateFault = (output: any, context: __SerdeContext): */ const de_InvalidOptionGroupStateFault = (output: any, context: __SerdeContext): InvalidOptionGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26006,8 +25657,8 @@ const de_InvalidOptionGroupStateFault = (output: any, context: __SerdeContext): */ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRestoreFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26017,8 +25668,8 @@ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRe */ const de_InvalidS3BucketFault = (output: any, context: __SerdeContext): InvalidS3BucketFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26028,8 +25679,8 @@ const de_InvalidS3BucketFault = (output: any, context: __SerdeContext): InvalidS */ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26039,8 +25690,8 @@ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet = */ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): InvalidVPCNetworkStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26050,11 +25701,11 @@ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): I */ const de_IPRange = (output: any, context: __SerdeContext): IPRange => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CIDRIP"] !== undefined) { - contents.CIDRIP = __expectString(output["CIDRIP"]); + if (output[_CIDRIP] != null) { + contents[_CIDRIP] = __expectString(output[_CIDRIP]); } return contents; }; @@ -26075,8 +25726,8 @@ const de_IPRangeList = (output: any, context: __SerdeContext): IPRange[] => { */ const de_KMSKeyNotAccessibleFault = (output: any, context: __SerdeContext): KMSKeyNotAccessibleFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26097,14 +25748,14 @@ const de_LogTypeList = (output: any, context: __SerdeContext): string[] => { */ const de_MasterUserSecret = (output: any, context: __SerdeContext): MasterUserSecret => { const contents: any = {}; - if (output["SecretArn"] !== undefined) { - contents.SecretArn = __expectString(output["SecretArn"]); + if (output[_SAe] != null) { + contents[_SAe] = __expectString(output[_SAe]); } - if (output["SecretStatus"] !== undefined) { - contents.SecretStatus = __expectString(output["SecretStatus"]); + if (output[_SSe] != null) { + contents[_SSe] = __expectString(output[_SSe]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } return contents; }; @@ -26117,11 +25768,11 @@ const de_MinimumEngineVersionPerAllowedValue = ( context: __SerdeContext ): MinimumEngineVersionPerAllowedValue => { const contents: any = {}; - if (output["AllowedValue"] !== undefined) { - contents.AllowedValue = __expectString(output["AllowedValue"]); + if (output[_AVl] != null) { + contents[_AVl] = __expectString(output[_AVl]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEVi] != null) { + contents[_MEVi] = __expectString(output[_MEVi]); } return contents; }; @@ -26145,23 +25796,23 @@ const de_MinimumEngineVersionPerAllowedValueList = ( */ const de_ModifyActivityStreamResponse = (output: any, context: __SerdeContext): ModifyActivityStreamResponse => { const contents: any = {}; - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["KinesisStreamName"] !== undefined) { - contents.KinesisStreamName = __expectString(output["KinesisStreamName"]); + if (output[_KSN] != null) { + contents[_KSN] = __expectString(output[_KSN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } - if (output["EngineNativeAuditFieldsIncluded"] !== undefined) { - contents.EngineNativeAuditFieldsIncluded = __parseBoolean(output["EngineNativeAuditFieldsIncluded"]); + if (output[_ENAFI] != null) { + contents[_ENAFI] = __parseBoolean(output[_ENAFI]); } - if (output["PolicyStatus"] !== undefined) { - contents.PolicyStatus = __expectString(output["PolicyStatus"]); + if (output[_PS] != null) { + contents[_PS] = __expectString(output[_PS]); } return contents; }; @@ -26171,8 +25822,8 @@ const de_ModifyActivityStreamResponse = (output: any, context: __SerdeContext): */ const de_ModifyCertificatesResult = (output: any, context: __SerdeContext): ModifyCertificatesResult => { const contents: any = {}; - if (output["Certificate"] !== undefined) { - contents.Certificate = de_Certificate(output["Certificate"], context); + if (output[_Cer] != null) { + contents[_Cer] = de_Certificate(output[_Cer], context); } return contents; }; @@ -26182,8 +25833,8 @@ const de_ModifyCertificatesResult = (output: any, context: __SerdeContext): Modi */ const de_ModifyDBClusterResult = (output: any, context: __SerdeContext): ModifyDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -26196,11 +25847,8 @@ const de_ModifyDBClusterSnapshotAttributeResult = ( context: __SerdeContext ): ModifyDBClusterSnapshotAttributeResult => { const contents: any = {}; - if (output["DBClusterSnapshotAttributesResult"] !== undefined) { - contents.DBClusterSnapshotAttributesResult = de_DBClusterSnapshotAttributesResult( - output["DBClusterSnapshotAttributesResult"], - context - ); + if (output[_DBCSAR] != null) { + contents[_DBCSAR] = de_DBClusterSnapshotAttributesResult(output[_DBCSAR], context); } return contents; }; @@ -26210,8 +25858,8 @@ const de_ModifyDBClusterSnapshotAttributeResult = ( */ const de_ModifyDBInstanceResult = (output: any, context: __SerdeContext): ModifyDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -26221,8 +25869,8 @@ const de_ModifyDBInstanceResult = (output: any, context: __SerdeContext): Modify */ const de_ModifyDBProxyEndpointResponse = (output: any, context: __SerdeContext): ModifyDBProxyEndpointResponse => { const contents: any = {}; - if (output["DBProxyEndpoint"] !== undefined) { - contents.DBProxyEndpoint = de_DBProxyEndpoint(output["DBProxyEndpoint"], context); + if (output[_DBPE] != null) { + contents[_DBPE] = de_DBProxyEndpoint(output[_DBPE], context); } return contents; }; @@ -26232,8 +25880,8 @@ const de_ModifyDBProxyEndpointResponse = (output: any, context: __SerdeContext): */ const de_ModifyDBProxyResponse = (output: any, context: __SerdeContext): ModifyDBProxyResponse => { const contents: any = {}; - if (output["DBProxy"] !== undefined) { - contents.DBProxy = de_DBProxy(output["DBProxy"], context); + if (output[_DBP] != null) { + contents[_DBP] = de_DBProxy(output[_DBP], context); } return contents; }; @@ -26246,8 +25894,8 @@ const de_ModifyDBProxyTargetGroupResponse = ( context: __SerdeContext ): ModifyDBProxyTargetGroupResponse => { const contents: any = {}; - if (output["DBProxyTargetGroup"] !== undefined) { - contents.DBProxyTargetGroup = de_DBProxyTargetGroup(output["DBProxyTargetGroup"], context); + if (output[_DBPTG] != null) { + contents[_DBPTG] = de_DBProxyTargetGroup(output[_DBPTG], context); } return contents; }; @@ -26257,8 +25905,8 @@ const de_ModifyDBProxyTargetGroupResponse = ( */ const de_ModifyDBSnapshotAttributeResult = (output: any, context: __SerdeContext): ModifyDBSnapshotAttributeResult => { const contents: any = {}; - if (output["DBSnapshotAttributesResult"] !== undefined) { - contents.DBSnapshotAttributesResult = de_DBSnapshotAttributesResult(output["DBSnapshotAttributesResult"], context); + if (output[_DBSAR] != null) { + contents[_DBSAR] = de_DBSnapshotAttributesResult(output[_DBSAR], context); } return contents; }; @@ -26268,8 +25916,8 @@ const de_ModifyDBSnapshotAttributeResult = (output: any, context: __SerdeContext */ const de_ModifyDBSnapshotResult = (output: any, context: __SerdeContext): ModifyDBSnapshotResult => { const contents: any = {}; - if (output["DBSnapshot"] !== undefined) { - contents.DBSnapshot = de_DBSnapshot(output["DBSnapshot"], context); + if (output[_DBS] != null) { + contents[_DBS] = de_DBSnapshot(output[_DBS], context); } return contents; }; @@ -26279,8 +25927,8 @@ const de_ModifyDBSnapshotResult = (output: any, context: __SerdeContext): Modify */ const de_ModifyDBSubnetGroupResult = (output: any, context: __SerdeContext): ModifyDBSubnetGroupResult => { const contents: any = {}; - if (output["DBSubnetGroup"] !== undefined) { - contents.DBSubnetGroup = de_DBSubnetGroup(output["DBSubnetGroup"], context); + if (output[_DBSGu] != null) { + contents[_DBSGu] = de_DBSubnetGroup(output[_DBSGu], context); } return contents; }; @@ -26290,8 +25938,8 @@ const de_ModifyDBSubnetGroupResult = (output: any, context: __SerdeContext): Mod */ const de_ModifyEventSubscriptionResult = (output: any, context: __SerdeContext): ModifyEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -26301,8 +25949,8 @@ const de_ModifyEventSubscriptionResult = (output: any, context: __SerdeContext): */ const de_ModifyGlobalClusterResult = (output: any, context: __SerdeContext): ModifyGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -26312,8 +25960,8 @@ const de_ModifyGlobalClusterResult = (output: any, context: __SerdeContext): Mod */ const de_ModifyOptionGroupResult = (output: any, context: __SerdeContext): ModifyOptionGroupResult => { const contents: any = {}; - if (output["OptionGroup"] !== undefined) { - contents.OptionGroup = de_OptionGroup(output["OptionGroup"], context); + if (output[_OG] != null) { + contents[_OG] = de_OptionGroup(output[_OG], context); } return contents; }; @@ -26323,8 +25971,8 @@ const de_ModifyOptionGroupResult = (output: any, context: __SerdeContext): Modif */ const de_ModifyTenantDatabaseResult = (output: any, context: __SerdeContext): ModifyTenantDatabaseResult => { const contents: any = {}; - if (output["TenantDatabase"] !== undefined) { - contents.TenantDatabase = de_TenantDatabase(output["TenantDatabase"], context); + if (output[_TD] != null) { + contents[_TD] = de_TenantDatabase(output[_TD], context); } return contents; }; @@ -26334,8 +25982,8 @@ const de_ModifyTenantDatabaseResult = (output: any, context: __SerdeContext): Mo */ const de_NetworkTypeNotSupported = (output: any, context: __SerdeContext): NetworkTypeNotSupported => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26345,53 +25993,38 @@ const de_NetworkTypeNotSupported = (output: any, context: __SerdeContext): Netwo */ const de_Option = (output: any, context: __SerdeContext): Option => { const contents: any = {}; - if (output["OptionName"] !== undefined) { - contents.OptionName = __expectString(output["OptionName"]); + if (output[_ON] != null) { + contents[_ON] = __expectString(output[_ON]); } - if (output["OptionDescription"] !== undefined) { - contents.OptionDescription = __expectString(output["OptionDescription"]); + if (output[_OD] != null) { + contents[_OD] = __expectString(output[_OD]); } - if (output["Persistent"] !== undefined) { - contents.Persistent = __parseBoolean(output["Persistent"]); + if (output[_Pe] != null) { + contents[_Pe] = __parseBoolean(output[_Pe]); } - if (output["Permanent"] !== undefined) { - contents.Permanent = __parseBoolean(output["Permanent"]); + if (output[_Per] != null) { + contents[_Per] = __parseBoolean(output[_Per]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["OptionVersion"] !== undefined) { - contents.OptionVersion = __expectString(output["OptionVersion"]); + if (output[_OV] != null) { + contents[_OV] = __expectString(output[_OV]); } if (output.OptionSettings === "") { - contents.OptionSettings = []; - } else if (output["OptionSettings"] !== undefined && output["OptionSettings"]["OptionSetting"] !== undefined) { - contents.OptionSettings = de_OptionSettingConfigurationList( - __getArrayIfSingleItem(output["OptionSettings"]["OptionSetting"]), - context - ); + contents[_OS] = []; + } else if (output[_OS] != null && output[_OS][_OSp] != null) { + contents[_OS] = de_OptionSettingConfigurationList(__getArrayIfSingleItem(output[_OS][_OSp]), context); } if (output.DBSecurityGroupMemberships === "") { - contents.DBSecurityGroupMemberships = []; - } else if ( - output["DBSecurityGroupMemberships"] !== undefined && - output["DBSecurityGroupMemberships"]["DBSecurityGroup"] !== undefined - ) { - contents.DBSecurityGroupMemberships = de_DBSecurityGroupMembershipList( - __getArrayIfSingleItem(output["DBSecurityGroupMemberships"]["DBSecurityGroup"]), - context - ); + contents[_DBSGM] = []; + } else if (output[_DBSGM] != null && output[_DBSGM][_DBSGe] != null) { + contents[_DBSGM] = de_DBSecurityGroupMembershipList(__getArrayIfSingleItem(output[_DBSGM][_DBSGe]), context); } if (output.VpcSecurityGroupMemberships === "") { - contents.VpcSecurityGroupMemberships = []; - } else if ( - output["VpcSecurityGroupMemberships"] !== undefined && - output["VpcSecurityGroupMemberships"]["VpcSecurityGroupMembership"] !== undefined - ) { - contents.VpcSecurityGroupMemberships = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroupMemberships"]["VpcSecurityGroupMembership"]), - context - ); + contents[_VSGM] = []; + } else if (output[_VSGM] != null && output[_VSGM][_VSGMp] != null) { + contents[_VSGM] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSGM][_VSGMp]), context); } return contents; }; @@ -26401,40 +26034,40 @@ const de_Option = (output: any, context: __SerdeContext): Option => { */ const de_OptionGroup = (output: any, context: __SerdeContext): OptionGroup => { const contents: any = {}; - if (output["OptionGroupName"] !== undefined) { - contents.OptionGroupName = __expectString(output["OptionGroupName"]); + if (output[_OGN] != null) { + contents[_OGN] = __expectString(output[_OGN]); } - if (output["OptionGroupDescription"] !== undefined) { - contents.OptionGroupDescription = __expectString(output["OptionGroupDescription"]); + if (output[_OGD] != null) { + contents[_OGD] = __expectString(output[_OGD]); } - if (output["EngineName"] !== undefined) { - contents.EngineName = __expectString(output["EngineName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["MajorEngineVersion"] !== undefined) { - contents.MajorEngineVersion = __expectString(output["MajorEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } if (output.Options === "") { - contents.Options = []; - } else if (output["Options"] !== undefined && output["Options"]["Option"] !== undefined) { - contents.Options = de_OptionsList(__getArrayIfSingleItem(output["Options"]["Option"]), context); + contents[_O] = []; + } else if (output[_O] != null && output[_O][_Op] != null) { + contents[_O] = de_OptionsList(__getArrayIfSingleItem(output[_O][_Op]), context); } - if (output["AllowsVpcAndNonVpcInstanceMemberships"] !== undefined) { - contents.AllowsVpcAndNonVpcInstanceMemberships = __parseBoolean(output["AllowsVpcAndNonVpcInstanceMemberships"]); + if (output[_AVANVIM] != null) { + contents[_AVANVIM] = __parseBoolean(output[_AVANVIM]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["OptionGroupArn"] !== undefined) { - contents.OptionGroupArn = __expectString(output["OptionGroupArn"]); + if (output[_OGA] != null) { + contents[_OGA] = __expectString(output[_OGA]); } - if (output["SourceOptionGroup"] !== undefined) { - contents.SourceOptionGroup = __expectString(output["SourceOptionGroup"]); + if (output[_SOG] != null) { + contents[_SOG] = __expectString(output[_SOG]); } - if (output["SourceAccountId"] !== undefined) { - contents.SourceAccountId = __expectString(output["SourceAccountId"]); + if (output[_SAI] != null) { + contents[_SAI] = __expectString(output[_SAI]); } - if (output["CopyTimestamp"] !== undefined) { - contents.CopyTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CopyTimestamp"])); + if (output[_CTo] != null) { + contents[_CTo] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTo])); } return contents; }; @@ -26444,8 +26077,8 @@ const de_OptionGroup = (output: any, context: __SerdeContext): OptionGroup => { */ const de_OptionGroupAlreadyExistsFault = (output: any, context: __SerdeContext): OptionGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26455,11 +26088,11 @@ const de_OptionGroupAlreadyExistsFault = (output: any, context: __SerdeContext): */ const de_OptionGroupMembership = (output: any, context: __SerdeContext): OptionGroupMembership => { const contents: any = {}; - if (output["OptionGroupName"] !== undefined) { - contents.OptionGroupName = __expectString(output["OptionGroupName"]); + if (output[_OGN] != null) { + contents[_OGN] = __expectString(output[_OGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -26480,8 +26113,8 @@ const de_OptionGroupMembershipList = (output: any, context: __SerdeContext): Opt */ const de_OptionGroupNotFoundFault = (output: any, context: __SerdeContext): OptionGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26491,85 +26124,64 @@ const de_OptionGroupNotFoundFault = (output: any, context: __SerdeContext): Opti */ const de_OptionGroupOption = (output: any, context: __SerdeContext): OptionGroupOption => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["EngineName"] !== undefined) { - contents.EngineName = __expectString(output["EngineName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["MajorEngineVersion"] !== undefined) { - contents.MajorEngineVersion = __expectString(output["MajorEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } - if (output["MinimumRequiredMinorEngineVersion"] !== undefined) { - contents.MinimumRequiredMinorEngineVersion = __expectString(output["MinimumRequiredMinorEngineVersion"]); + if (output[_MRMEV] != null) { + contents[_MRMEV] = __expectString(output[_MRMEV]); } - if (output["PortRequired"] !== undefined) { - contents.PortRequired = __parseBoolean(output["PortRequired"]); + if (output[_PR] != null) { + contents[_PR] = __parseBoolean(output[_PR]); } - if (output["DefaultPort"] !== undefined) { - contents.DefaultPort = __strictParseInt32(output["DefaultPort"]) as number; + if (output[_DPe] != null) { + contents[_DPe] = __strictParseInt32(output[_DPe]) as number; } if (output.OptionsDependedOn === "") { - contents.OptionsDependedOn = []; - } else if (output["OptionsDependedOn"] !== undefined && output["OptionsDependedOn"]["OptionName"] !== undefined) { - contents.OptionsDependedOn = de_OptionsDependedOn( - __getArrayIfSingleItem(output["OptionsDependedOn"]["OptionName"]), - context - ); + contents[_ODO] = []; + } else if (output[_ODO] != null && output[_ODO][_ON] != null) { + contents[_ODO] = de_OptionsDependedOn(__getArrayIfSingleItem(output[_ODO][_ON]), context); } if (output.OptionsConflictsWith === "") { - contents.OptionsConflictsWith = []; - } else if ( - output["OptionsConflictsWith"] !== undefined && - output["OptionsConflictsWith"]["OptionConflictName"] !== undefined - ) { - contents.OptionsConflictsWith = de_OptionsConflictsWith( - __getArrayIfSingleItem(output["OptionsConflictsWith"]["OptionConflictName"]), - context - ); + contents[_OCW] = []; + } else if (output[_OCW] != null && output[_OCW][_OCN] != null) { + contents[_OCW] = de_OptionsConflictsWith(__getArrayIfSingleItem(output[_OCW][_OCN]), context); } - if (output["Persistent"] !== undefined) { - contents.Persistent = __parseBoolean(output["Persistent"]); + if (output[_Pe] != null) { + contents[_Pe] = __parseBoolean(output[_Pe]); } - if (output["Permanent"] !== undefined) { - contents.Permanent = __parseBoolean(output["Permanent"]); + if (output[_Per] != null) { + contents[_Per] = __parseBoolean(output[_Per]); } - if (output["RequiresAutoMinorEngineVersionUpgrade"] !== undefined) { - contents.RequiresAutoMinorEngineVersionUpgrade = __parseBoolean(output["RequiresAutoMinorEngineVersionUpgrade"]); + if (output[_RAMEVU] != null) { + contents[_RAMEVU] = __parseBoolean(output[_RAMEVU]); } - if (output["VpcOnly"] !== undefined) { - contents.VpcOnly = __parseBoolean(output["VpcOnly"]); + if (output[_VO] != null) { + contents[_VO] = __parseBoolean(output[_VO]); } - if (output["SupportsOptionVersionDowngrade"] !== undefined) { - contents.SupportsOptionVersionDowngrade = __parseBoolean(output["SupportsOptionVersionDowngrade"]); + if (output[_SOVD] != null) { + contents[_SOVD] = __parseBoolean(output[_SOVD]); } if (output.OptionGroupOptionSettings === "") { - contents.OptionGroupOptionSettings = []; - } else if ( - output["OptionGroupOptionSettings"] !== undefined && - output["OptionGroupOptionSettings"]["OptionGroupOptionSetting"] !== undefined - ) { - contents.OptionGroupOptionSettings = de_OptionGroupOptionSettingsList( - __getArrayIfSingleItem(output["OptionGroupOptionSettings"]["OptionGroupOptionSetting"]), - context - ); + contents[_OGOS] = []; + } else if (output[_OGOS] != null && output[_OGOS][_OGOSp] != null) { + contents[_OGOS] = de_OptionGroupOptionSettingsList(__getArrayIfSingleItem(output[_OGOS][_OGOSp]), context); } if (output.OptionGroupOptionVersions === "") { - contents.OptionGroupOptionVersions = []; - } else if ( - output["OptionGroupOptionVersions"] !== undefined && - output["OptionGroupOptionVersions"]["OptionVersion"] !== undefined - ) { - contents.OptionGroupOptionVersions = de_OptionGroupOptionVersionsList( - __getArrayIfSingleItem(output["OptionGroupOptionVersions"]["OptionVersion"]), - context - ); + contents[_OGOV] = []; + } else if (output[_OGOV] != null && output[_OGOV][_OV] != null) { + contents[_OGOV] = de_OptionGroupOptionVersionsList(__getArrayIfSingleItem(output[_OGOV][_OV]), context); } - if (output["CopyableCrossAccount"] !== undefined) { - contents.CopyableCrossAccount = __parseBoolean(output["CopyableCrossAccount"]); + if (output[_CCA] != null) { + contents[_CCA] = __parseBoolean(output[_CCA]); } return contents; }; @@ -26579,35 +26191,32 @@ const de_OptionGroupOption = (output: any, context: __SerdeContext): OptionGroup */ const de_OptionGroupOptionSetting = (output: any, context: __SerdeContext): OptionGroupOptionSetting => { const contents: any = {}; - if (output["SettingName"] !== undefined) { - contents.SettingName = __expectString(output["SettingName"]); + if (output[_SNe] != null) { + contents[_SNe] = __expectString(output[_SNe]); } - if (output["SettingDescription"] !== undefined) { - contents.SettingDescription = __expectString(output["SettingDescription"]); + if (output[_SDe] != null) { + contents[_SDe] = __expectString(output[_SDe]); } - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["ApplyType"] !== undefined) { - contents.ApplyType = __expectString(output["ApplyType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["IsRequired"] !== undefined) { - contents.IsRequired = __parseBoolean(output["IsRequired"]); + if (output[_IR] != null) { + contents[_IR] = __parseBoolean(output[_IR]); } if (output.MinimumEngineVersionPerAllowedValue === "") { - contents.MinimumEngineVersionPerAllowedValue = []; - } else if ( - output["MinimumEngineVersionPerAllowedValue"] !== undefined && - output["MinimumEngineVersionPerAllowedValue"]["MinimumEngineVersionPerAllowedValue"] !== undefined - ) { - contents.MinimumEngineVersionPerAllowedValue = de_MinimumEngineVersionPerAllowedValueList( - __getArrayIfSingleItem(output["MinimumEngineVersionPerAllowedValue"]["MinimumEngineVersionPerAllowedValue"]), + contents[_MEVPAV] = []; + } else if (output[_MEVPAV] != null && output[_MEVPAV][_MEVPAV] != null) { + contents[_MEVPAV] = de_MinimumEngineVersionPerAllowedValueList( + __getArrayIfSingleItem(output[_MEVPAV][_MEVPAV]), context ); } @@ -26642,18 +26251,12 @@ const de_OptionGroupOptionsList = (output: any, context: __SerdeContext): Option const de_OptionGroupOptionsMessage = (output: any, context: __SerdeContext): OptionGroupOptionsMessage => { const contents: any = {}; if (output.OptionGroupOptions === "") { - contents.OptionGroupOptions = []; - } else if ( - output["OptionGroupOptions"] !== undefined && - output["OptionGroupOptions"]["OptionGroupOption"] !== undefined - ) { - contents.OptionGroupOptions = de_OptionGroupOptionsList( - __getArrayIfSingleItem(output["OptionGroupOptions"]["OptionGroupOption"]), - context - ); + contents[_OGO] = []; + } else if (output[_OGO] != null && output[_OGO][_OGOp] != null) { + contents[_OGO] = de_OptionGroupOptionsList(__getArrayIfSingleItem(output[_OGO][_OGOp]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -26674,8 +26277,8 @@ const de_OptionGroupOptionVersionsList = (output: any, context: __SerdeContext): */ const de_OptionGroupQuotaExceededFault = (output: any, context: __SerdeContext): OptionGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -26686,15 +26289,12 @@ const de_OptionGroupQuotaExceededFault = (output: any, context: __SerdeContext): const de_OptionGroups = (output: any, context: __SerdeContext): OptionGroups => { const contents: any = {}; if (output.OptionGroupsList === "") { - contents.OptionGroupsList = []; - } else if (output["OptionGroupsList"] !== undefined && output["OptionGroupsList"]["OptionGroup"] !== undefined) { - contents.OptionGroupsList = de_OptionGroupsList( - __getArrayIfSingleItem(output["OptionGroupsList"]["OptionGroup"]), - context - ); + contents[_OGL] = []; + } else if (output[_OGL] != null && output[_OGL][_OG] != null) { + contents[_OGL] = de_OptionGroupsList(__getArrayIfSingleItem(output[_OGL][_OG]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -26737,32 +26337,32 @@ const de_OptionsDependedOn = (output: any, context: __SerdeContext): string[] => */ const de_OptionSetting = (output: any, context: __SerdeContext): OptionSetting => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } - if (output["DefaultValue"] !== undefined) { - contents.DefaultValue = __expectString(output["DefaultValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["ApplyType"] !== undefined) { - contents.ApplyType = __expectString(output["ApplyType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["DataType"] !== undefined) { - contents.DataType = __expectString(output["DataType"]); + if (output[_DTa] != null) { + contents[_DTa] = __expectString(output[_DTa]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["IsCollection"] !== undefined) { - contents.IsCollection = __parseBoolean(output["IsCollection"]); + if (output[_IC] != null) { + contents[_IC] = __parseBoolean(output[_IC]); } return contents; }; @@ -26794,11 +26394,11 @@ const de_OptionsList = (output: any, context: __SerdeContext): Option[] => { */ const de_OptionVersion = (output: any, context: __SerdeContext): OptionVersion => { const contents: any = {}; - if (output["Version"] !== undefined) { - contents.Version = __expectString(output["Version"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } - if (output["IsDefault"] !== undefined) { - contents.IsDefault = __parseBoolean(output["IsDefault"]); + if (output[_ID] != null) { + contents[_ID] = __parseBoolean(output[_ID]); } return contents; }; @@ -26808,151 +26408,123 @@ const de_OptionVersion = (output: any, context: __SerdeContext): OptionVersion = */ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): OrderableDBInstanceOption => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["AvailabilityZoneGroup"] !== undefined) { - contents.AvailabilityZoneGroup = __expectString(output["AvailabilityZoneGroup"]); + if (output[_AZG] != null) { + contents[_AZG] = __expectString(output[_AZG]); } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZoneList( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZ] = []; + } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { + contents[_AZ] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZ][_AZv]), context); } - if (output["MultiAZCapable"] !== undefined) { - contents.MultiAZCapable = __parseBoolean(output["MultiAZCapable"]); + if (output[_MAZC] != null) { + contents[_MAZC] = __parseBoolean(output[_MAZC]); } - if (output["ReadReplicaCapable"] !== undefined) { - contents.ReadReplicaCapable = __parseBoolean(output["ReadReplicaCapable"]); + if (output[_RRC] != null) { + contents[_RRC] = __parseBoolean(output[_RRC]); } - if (output["Vpc"] !== undefined) { - contents.Vpc = __parseBoolean(output["Vpc"]); + if (output[_Vp] != null) { + contents[_Vp] = __parseBoolean(output[_Vp]); } - if (output["SupportsStorageEncryption"] !== undefined) { - contents.SupportsStorageEncryption = __parseBoolean(output["SupportsStorageEncryption"]); + if (output[_SSE] != null) { + contents[_SSE] = __parseBoolean(output[_SSE]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["SupportsIops"] !== undefined) { - contents.SupportsIops = __parseBoolean(output["SupportsIops"]); + if (output[_SIupp] != null) { + contents[_SIupp] = __parseBoolean(output[_SIupp]); } - if (output["SupportsEnhancedMonitoring"] !== undefined) { - contents.SupportsEnhancedMonitoring = __parseBoolean(output["SupportsEnhancedMonitoring"]); + if (output[_SEMu] != null) { + contents[_SEMu] = __parseBoolean(output[_SEMu]); } - if (output["SupportsIAMDatabaseAuthentication"] !== undefined) { - contents.SupportsIAMDatabaseAuthentication = __parseBoolean(output["SupportsIAMDatabaseAuthentication"]); + if (output[_SIAMDA] != null) { + contents[_SIAMDA] = __parseBoolean(output[_SIAMDA]); } - if (output["SupportsPerformanceInsights"] !== undefined) { - contents.SupportsPerformanceInsights = __parseBoolean(output["SupportsPerformanceInsights"]); + if (output[_SPI] != null) { + contents[_SPI] = __parseBoolean(output[_SPI]); } - if (output["MinStorageSize"] !== undefined) { - contents.MinStorageSize = __strictParseInt32(output["MinStorageSize"]) as number; + if (output[_MSS] != null) { + contents[_MSS] = __strictParseInt32(output[_MSS]) as number; } - if (output["MaxStorageSize"] !== undefined) { - contents.MaxStorageSize = __strictParseInt32(output["MaxStorageSize"]) as number; + if (output[_MSSa] != null) { + contents[_MSSa] = __strictParseInt32(output[_MSSa]) as number; } - if (output["MinIopsPerDbInstance"] !== undefined) { - contents.MinIopsPerDbInstance = __strictParseInt32(output["MinIopsPerDbInstance"]) as number; + if (output[_MIPDI] != null) { + contents[_MIPDI] = __strictParseInt32(output[_MIPDI]) as number; } - if (output["MaxIopsPerDbInstance"] !== undefined) { - contents.MaxIopsPerDbInstance = __strictParseInt32(output["MaxIopsPerDbInstance"]) as number; + if (output[_MIPDIa] != null) { + contents[_MIPDIa] = __strictParseInt32(output[_MIPDIa]) as number; } - if (output["MinIopsPerGib"] !== undefined) { - contents.MinIopsPerGib = __strictParseFloat(output["MinIopsPerGib"]) as number; + if (output[_MIPG] != null) { + contents[_MIPG] = __strictParseFloat(output[_MIPG]) as number; } - if (output["MaxIopsPerGib"] !== undefined) { - contents.MaxIopsPerGib = __strictParseFloat(output["MaxIopsPerGib"]) as number; + if (output[_MIPGa] != null) { + contents[_MIPGa] = __strictParseFloat(output[_MIPGa]) as number; } if (output.AvailableProcessorFeatures === "") { - contents.AvailableProcessorFeatures = []; - } else if ( - output["AvailableProcessorFeatures"] !== undefined && - output["AvailableProcessorFeatures"]["AvailableProcessorFeature"] !== undefined - ) { - contents.AvailableProcessorFeatures = de_AvailableProcessorFeatureList( - __getArrayIfSingleItem(output["AvailableProcessorFeatures"]["AvailableProcessorFeature"]), - context - ); + contents[_APF] = []; + } else if (output[_APF] != null && output[_APF][_APFv] != null) { + contents[_APF] = de_AvailableProcessorFeatureList(__getArrayIfSingleItem(output[_APF][_APFv]), context); } if (output.SupportedEngineModes === "") { - contents.SupportedEngineModes = []; - } else if (output["SupportedEngineModes"] !== undefined && output["SupportedEngineModes"]["member"] !== undefined) { - contents.SupportedEngineModes = de_EngineModeList( - __getArrayIfSingleItem(output["SupportedEngineModes"]["member"]), - context - ); + contents[_SEM] = []; + } else if (output[_SEM] != null && output[_SEM][_me] != null) { + contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); } - if (output["SupportsStorageAutoscaling"] !== undefined) { - contents.SupportsStorageAutoscaling = __parseBoolean(output["SupportsStorageAutoscaling"]); + if (output[_SSA] != null) { + contents[_SSA] = __parseBoolean(output[_SSA]); } - if (output["SupportsKerberosAuthentication"] !== undefined) { - contents.SupportsKerberosAuthentication = __parseBoolean(output["SupportsKerberosAuthentication"]); + if (output[_SKA] != null) { + contents[_SKA] = __parseBoolean(output[_SKA]); } - if (output["OutpostCapable"] !== undefined) { - contents.OutpostCapable = __parseBoolean(output["OutpostCapable"]); + if (output[_OC] != null) { + contents[_OC] = __parseBoolean(output[_OC]); } if (output.SupportedActivityStreamModes === "") { - contents.SupportedActivityStreamModes = []; - } else if ( - output["SupportedActivityStreamModes"] !== undefined && - output["SupportedActivityStreamModes"]["member"] !== undefined - ) { - contents.SupportedActivityStreamModes = de_ActivityStreamModeList( - __getArrayIfSingleItem(output["SupportedActivityStreamModes"]["member"]), - context - ); + contents[_SASM] = []; + } else if (output[_SASM] != null && output[_SASM][_me] != null) { + contents[_SASM] = de_ActivityStreamModeList(__getArrayIfSingleItem(output[_SASM][_me]), context); } - if (output["SupportsGlobalDatabases"] !== undefined) { - contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]); + if (output[_SGD] != null) { + contents[_SGD] = __parseBoolean(output[_SGD]); } - if (output["SupportsClusters"] !== undefined) { - contents.SupportsClusters = __parseBoolean(output["SupportsClusters"]); + if (output[_SCu] != null) { + contents[_SCu] = __parseBoolean(output[_SCu]); } if (output.SupportedNetworkTypes === "") { - contents.SupportedNetworkTypes = []; - } else if (output["SupportedNetworkTypes"] !== undefined && output["SupportedNetworkTypes"]["member"] !== undefined) { - contents.SupportedNetworkTypes = de_StringList( - __getArrayIfSingleItem(output["SupportedNetworkTypes"]["member"]), - context - ); + contents[_SNT] = []; + } else if (output[_SNT] != null && output[_SNT][_me] != null) { + contents[_SNT] = de_StringList(__getArrayIfSingleItem(output[_SNT][_me]), context); } - if (output["SupportsStorageThroughput"] !== undefined) { - contents.SupportsStorageThroughput = __parseBoolean(output["SupportsStorageThroughput"]); + if (output[_SST] != null) { + contents[_SST] = __parseBoolean(output[_SST]); } - if (output["MinStorageThroughputPerDbInstance"] !== undefined) { - contents.MinStorageThroughputPerDbInstance = __strictParseInt32( - output["MinStorageThroughputPerDbInstance"] - ) as number; + if (output[_MSTPDI] != null) { + contents[_MSTPDI] = __strictParseInt32(output[_MSTPDI]) as number; } - if (output["MaxStorageThroughputPerDbInstance"] !== undefined) { - contents.MaxStorageThroughputPerDbInstance = __strictParseInt32( - output["MaxStorageThroughputPerDbInstance"] - ) as number; + if (output[_MSTPDIa] != null) { + contents[_MSTPDIa] = __strictParseInt32(output[_MSTPDIa]) as number; } - if (output["MinStorageThroughputPerIops"] !== undefined) { - contents.MinStorageThroughputPerIops = __strictParseFloat(output["MinStorageThroughputPerIops"]) as number; + if (output[_MSTPI] != null) { + contents[_MSTPI] = __strictParseFloat(output[_MSTPI]) as number; } - if (output["MaxStorageThroughputPerIops"] !== undefined) { - contents.MaxStorageThroughputPerIops = __strictParseFloat(output["MaxStorageThroughputPerIops"]) as number; + if (output[_MSTPIa] != null) { + contents[_MSTPIa] = __strictParseFloat(output[_MSTPIa]) as number; } - if (output["SupportsDedicatedLogVolume"] !== undefined) { - contents.SupportsDedicatedLogVolume = __parseBoolean(output["SupportsDedicatedLogVolume"]); + if (output[_SDLV] != null) { + contents[_SDLV] = __parseBoolean(output[_SDLV]); } return contents; }; @@ -26977,18 +26549,12 @@ const de_OrderableDBInstanceOptionsMessage = ( ): OrderableDBInstanceOptionsMessage => { const contents: any = {}; if (output.OrderableDBInstanceOptions === "") { - contents.OrderableDBInstanceOptions = []; - } else if ( - output["OrderableDBInstanceOptions"] !== undefined && - output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"] !== undefined - ) { - contents.OrderableDBInstanceOptions = de_OrderableDBInstanceOptionsList( - __getArrayIfSingleItem(output["OrderableDBInstanceOptions"]["OrderableDBInstanceOption"]), - context - ); + contents[_ODBIO] = []; + } else if (output[_ODBIO] != null && output[_ODBIO][_ODBIOr] != null) { + contents[_ODBIO] = de_OrderableDBInstanceOptionsList(__getArrayIfSingleItem(output[_ODBIO][_ODBIOr]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -26998,8 +26564,8 @@ const de_OrderableDBInstanceOptionsMessage = ( */ const de_Outpost = (output: any, context: __SerdeContext): Outpost => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -27009,43 +26575,40 @@ const de_Outpost = (output: any, context: __SerdeContext): Outpost => { */ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { const contents: any = {}; - if (output["ParameterName"] !== undefined) { - contents.ParameterName = __expectString(output["ParameterName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["ParameterValue"] !== undefined) { - contents.ParameterValue = __expectString(output["ParameterValue"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Source"] !== undefined) { - contents.Source = __expectString(output["Source"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["ApplyType"] !== undefined) { - contents.ApplyType = __expectString(output["ApplyType"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } - if (output["DataType"] !== undefined) { - contents.DataType = __expectString(output["DataType"]); + if (output[_DTa] != null) { + contents[_DTa] = __expectString(output[_DTa]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEVi] != null) { + contents[_MEVi] = __expectString(output[_MEVi]); } - if (output["ApplyMethod"] !== undefined) { - contents.ApplyMethod = __expectString(output["ApplyMethod"]); + if (output[_AMp] != null) { + contents[_AMp] = __expectString(output[_AMp]); } if (output.SupportedEngineModes === "") { - contents.SupportedEngineModes = []; - } else if (output["SupportedEngineModes"] !== undefined && output["SupportedEngineModes"]["member"] !== undefined) { - contents.SupportedEngineModes = de_EngineModeList( - __getArrayIfSingleItem(output["SupportedEngineModes"]["member"]), - context - ); + contents[_SEM] = []; + } else if (output[_SEM] != null && output[_SEM][_me] != null) { + contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); } return contents; }; @@ -27067,14 +26630,14 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): PendingCloudwatchLogsExports => { const contents: any = {}; if (output.LogTypesToEnable === "") { - contents.LogTypesToEnable = []; - } else if (output["LogTypesToEnable"] !== undefined && output["LogTypesToEnable"]["member"] !== undefined) { - contents.LogTypesToEnable = de_LogTypeList(__getArrayIfSingleItem(output["LogTypesToEnable"]["member"]), context); + contents[_LTTE] = []; + } else if (output[_LTTE] != null && output[_LTTE][_me] != null) { + contents[_LTTE] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTE][_me]), context); } if (output.LogTypesToDisable === "") { - contents.LogTypesToDisable = []; - } else if (output["LogTypesToDisable"] !== undefined && output["LogTypesToDisable"]["member"] !== undefined) { - contents.LogTypesToDisable = de_LogTypeList(__getArrayIfSingleItem(output["LogTypesToDisable"]["member"]), context); + contents[_LTTD] = []; + } else if (output[_LTTD] != null && output[_LTTD][_me] != null) { + contents[_LTTD] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTD][_me]), context); } return contents; }; @@ -27084,23 +26647,23 @@ const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): */ const de_PendingMaintenanceAction = (output: any, context: __SerdeContext): PendingMaintenanceAction => { const contents: any = {}; - if (output["Action"] !== undefined) { - contents.Action = __expectString(output["Action"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["AutoAppliedAfterDate"] !== undefined) { - contents.AutoAppliedAfterDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AutoAppliedAfterDate"])); + if (output[_AAAD] != null) { + contents[_AAAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_AAAD])); } - if (output["ForcedApplyDate"] !== undefined) { - contents.ForcedApplyDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ForcedApplyDate"])); + if (output[_FAD] != null) { + contents[_FAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_FAD])); } - if (output["OptInStatus"] !== undefined) { - contents.OptInStatus = __expectString(output["OptInStatus"]); + if (output[_OIS] != null) { + contents[_OIS] = __expectString(output[_OIS]); } - if (output["CurrentApplyDate"] !== undefined) { - contents.CurrentApplyDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CurrentApplyDate"])); + if (output[_CAD] != null) { + contents[_CAD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CAD])); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -27136,18 +26699,12 @@ const de_PendingMaintenanceActionsMessage = ( ): PendingMaintenanceActionsMessage => { const contents: any = {}; if (output.PendingMaintenanceActions === "") { - contents.PendingMaintenanceActions = []; - } else if ( - output["PendingMaintenanceActions"] !== undefined && - output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"] !== undefined - ) { - contents.PendingMaintenanceActions = de_PendingMaintenanceActions( - __getArrayIfSingleItem(output["PendingMaintenanceActions"]["ResourcePendingMaintenanceActions"]), - context - ); + contents[_PMA] = []; + } else if (output[_PMA] != null && output[_PMA][_RPMA] != null) { + contents[_PMA] = de_PendingMaintenanceActions(__getArrayIfSingleItem(output[_PMA][_RPMA]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } return contents; }; @@ -27157,84 +26714,73 @@ const de_PendingMaintenanceActionsMessage = ( */ const de_PendingModifiedValues = (output: any, context: __SerdeContext): PendingModifiedValues => { const contents: any = {}; - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["AllocatedStorage"] !== undefined) { - contents.AllocatedStorage = __strictParseInt32(output["AllocatedStorage"]) as number; + if (output[_AS] != null) { + contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output["MasterUserPassword"] !== undefined) { - contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); + if (output[_MUP] != null) { + contents[_MUP] = __expectString(output[_MUP]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["BackupRetentionPeriod"] !== undefined) { - contents.BackupRetentionPeriod = __strictParseInt32(output["BackupRetentionPeriod"]) as number; + if (output[_BRP] != null) { + contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["LicenseModel"] !== undefined) { - contents.LicenseModel = __expectString(output["LicenseModel"]); + if (output[_LM] != null) { + contents[_LM] = __expectString(output[_LM]); } - if (output["Iops"] !== undefined) { - contents.Iops = __strictParseInt32(output["Iops"]) as number; + if (output[_I] != null) { + contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["CACertificateIdentifier"] !== undefined) { - contents.CACertificateIdentifier = __expectString(output["CACertificateIdentifier"]); + if (output[_CACI] != null) { + contents[_CACI] = __expectString(output[_CACI]); } - if (output["DBSubnetGroupName"] !== undefined) { - contents.DBSubnetGroupName = __expectString(output["DBSubnetGroupName"]); + if (output[_DBSGNu] != null) { + contents[_DBSGNu] = __expectString(output[_DBSGNu]); } - if (output["PendingCloudwatchLogsExports"] !== undefined) { - contents.PendingCloudwatchLogsExports = de_PendingCloudwatchLogsExports( - output["PendingCloudwatchLogsExports"], - context - ); + if (output[_PCLE] != null) { + contents[_PCLE] = de_PendingCloudwatchLogsExports(output[_PCLE], context); } if (output.ProcessorFeatures === "") { - contents.ProcessorFeatures = []; - } else if ( - output["ProcessorFeatures"] !== undefined && - output["ProcessorFeatures"]["ProcessorFeature"] !== undefined - ) { - contents.ProcessorFeatures = de_ProcessorFeatureList( - __getArrayIfSingleItem(output["ProcessorFeatures"]["ProcessorFeature"]), - context - ); + contents[_PF] = []; + } else if (output[_PF] != null && output[_PF][_PFr] != null) { + contents[_PF] = de_ProcessorFeatureList(__getArrayIfSingleItem(output[_PF][_PFr]), context); } - if (output["IAMDatabaseAuthenticationEnabled"] !== undefined) { - contents.IAMDatabaseAuthenticationEnabled = __parseBoolean(output["IAMDatabaseAuthenticationEnabled"]); + if (output[_IAMDAE] != null) { + contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output["AutomationMode"] !== undefined) { - contents.AutomationMode = __expectString(output["AutomationMode"]); + if (output[_AM] != null) { + contents[_AM] = __expectString(output[_AM]); } - if (output["ResumeFullAutomationModeTime"] !== undefined) { - contents.ResumeFullAutomationModeTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ResumeFullAutomationModeTime"]) - ); + if (output[_RFAMT] != null) { + contents[_RFAMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RFAMT])); } - if (output["StorageThroughput"] !== undefined) { - contents.StorageThroughput = __strictParseInt32(output["StorageThroughput"]) as number; + if (output[_STt] != null) { + contents[_STt] = __strictParseInt32(output[_STt]) as number; } - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["DedicatedLogVolume"] !== undefined) { - contents.DedicatedLogVolume = __parseBoolean(output["DedicatedLogVolume"]); + if (output[_DLV] != null) { + contents[_DLV] = __parseBoolean(output[_DLV]); } - if (output["MultiTenant"] !== undefined) { - contents.MultiTenant = __parseBoolean(output["MultiTenant"]); + if (output[_MT] != null) { + contents[_MT] = __parseBoolean(output[_MT]); } return contents; }; @@ -27247,8 +26793,8 @@ const de_PointInTimeRestoreNotEnabledFault = ( context: __SerdeContext ): PointInTimeRestoreNotEnabledFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27258,11 +26804,11 @@ const de_PointInTimeRestoreNotEnabledFault = ( */ const de_ProcessorFeature = (output: any, context: __SerdeContext): ProcessorFeature => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -27286,8 +26832,8 @@ const de_PromoteReadReplicaDBClusterResult = ( context: __SerdeContext ): PromoteReadReplicaDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -27297,8 +26843,8 @@ const de_PromoteReadReplicaDBClusterResult = ( */ const de_PromoteReadReplicaResult = (output: any, context: __SerdeContext): PromoteReadReplicaResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -27311,8 +26857,8 @@ const de_ProvisionedIopsNotAvailableInAZFault = ( context: __SerdeContext ): ProvisionedIopsNotAvailableInAZFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27325,8 +26871,8 @@ const de_PurchaseReservedDBInstancesOfferingResult = ( context: __SerdeContext ): PurchaseReservedDBInstancesOfferingResult => { const contents: any = {}; - if (output["ReservedDBInstance"] !== undefined) { - contents.ReservedDBInstance = de_ReservedDBInstance(output["ReservedDBInstance"], context); + if (output[_RDBIe] != null) { + contents[_RDBIe] = de_ReservedDBInstance(output[_RDBIe], context); } return contents; }; @@ -27336,14 +26882,14 @@ const de_PurchaseReservedDBInstancesOfferingResult = ( */ const de_Range = (output: any, context: __SerdeContext): Range => { const contents: any = {}; - if (output["From"] !== undefined) { - contents.From = __strictParseInt32(output["From"]) as number; + if (output[_Fr] != null) { + contents[_Fr] = __strictParseInt32(output[_Fr]) as number; } - if (output["To"] !== undefined) { - contents.To = __strictParseInt32(output["To"]) as number; + if (output[_To] != null) { + contents[_To] = __strictParseInt32(output[_To]) as number; } - if (output["Step"] !== undefined) { - contents.Step = __strictParseInt32(output["Step"]) as number; + if (output[_Ste] != null) { + contents[_Ste] = __strictParseInt32(output[_Ste]) as number; } return contents; }; @@ -27364,14 +26910,14 @@ const de_RangeList = (output: any, context: __SerdeContext): Range[] => { */ const de_RdsCustomClusterConfiguration = (output: any, context: __SerdeContext): RdsCustomClusterConfiguration => { const contents: any = {}; - if (output["InterconnectSubnetId"] !== undefined) { - contents.InterconnectSubnetId = __expectString(output["InterconnectSubnetId"]); + if (output[_ISI] != null) { + contents[_ISI] = __expectString(output[_ISI]); } - if (output["TransitGatewayMulticastDomainId"] !== undefined) { - contents.TransitGatewayMulticastDomainId = __expectString(output["TransitGatewayMulticastDomainId"]); + if (output[_TGMDI] != null) { + contents[_TGMDI] = __expectString(output[_TGMDI]); } - if (output["ReplicaMode"] !== undefined) { - contents.ReplicaMode = __expectString(output["ReplicaMode"]); + if (output[_RM] != null) { + contents[_RM] = __expectString(output[_RM]); } return contents; }; @@ -27425,8 +26971,8 @@ const de_ReadReplicaIdentifierList = (output: any, context: __SerdeContext): str */ const de_RebootDBClusterResult = (output: any, context: __SerdeContext): RebootDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -27436,8 +26982,8 @@ const de_RebootDBClusterResult = (output: any, context: __SerdeContext): RebootD */ const de_RebootDBInstanceResult = (output: any, context: __SerdeContext): RebootDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -27447,11 +26993,11 @@ const de_RebootDBInstanceResult = (output: any, context: __SerdeContext): Reboot */ const de_RecurringCharge = (output: any, context: __SerdeContext): RecurringCharge => { const contents: any = {}; - if (output["RecurringChargeAmount"] !== undefined) { - contents.RecurringChargeAmount = __strictParseFloat(output["RecurringChargeAmount"]) as number; + if (output[_RCA] != null) { + contents[_RCA] = __strictParseFloat(output[_RCA]) as number; } - if (output["RecurringChargeFrequency"] !== undefined) { - contents.RecurringChargeFrequency = __expectString(output["RecurringChargeFrequency"]); + if (output[_RCF] != null) { + contents[_RCF] = __expectString(output[_RCF]); } return contents; }; @@ -27473,9 +27019,9 @@ const de_RecurringChargeList = (output: any, context: __SerdeContext): Recurring const de_RegisterDBProxyTargetsResponse = (output: any, context: __SerdeContext): RegisterDBProxyTargetsResponse => { const contents: any = {}; if (output.DBProxyTargets === "") { - contents.DBProxyTargets = []; - } else if (output["DBProxyTargets"] !== undefined && output["DBProxyTargets"]["member"] !== undefined) { - contents.DBProxyTargets = de_TargetList(__getArrayIfSingleItem(output["DBProxyTargets"]["member"]), context); + contents[_DBPT] = []; + } else if (output[_DBPT] != null && output[_DBPT][_me] != null) { + contents[_DBPT] = de_TargetList(__getArrayIfSingleItem(output[_DBPT][_me]), context); } return contents; }; @@ -27485,8 +27031,8 @@ const de_RegisterDBProxyTargetsResponse = (output: any, context: __SerdeContext) */ const de_RemoveFromGlobalClusterResult = (output: any, context: __SerdeContext): RemoveFromGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -27499,8 +27045,8 @@ const de_RemoveSourceIdentifierFromSubscriptionResult = ( context: __SerdeContext ): RemoveSourceIdentifierFromSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -27510,58 +27056,55 @@ const de_RemoveSourceIdentifierFromSubscriptionResult = ( */ const de_ReservedDBInstance = (output: any, context: __SerdeContext): ReservedDBInstance => { const contents: any = {}; - if (output["ReservedDBInstanceId"] !== undefined) { - contents.ReservedDBInstanceId = __expectString(output["ReservedDBInstanceId"]); + if (output[_RDBII] != null) { + contents[_RDBII] = __expectString(output[_RDBII]); } - if (output["ReservedDBInstancesOfferingId"] !== undefined) { - contents.ReservedDBInstancesOfferingId = __expectString(output["ReservedDBInstancesOfferingId"]); + if (output[_RDBIOI] != null) { + contents[_RDBIOI] = __expectString(output[_RDBIOI]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_STta] != null) { + contents[_STta] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STta])); } - if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["Duration"]) as number; + if (output[_Du] != null) { + contents[_Du] = __strictParseInt32(output[_Du]) as number; } - if (output["FixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; + if (output[_FP] != null) { + contents[_FP] = __strictParseFloat(output[_FP]) as number; } - if (output["UsagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["UsagePrice"]) as number; + if (output[_UP] != null) { + contents[_UP] = __strictParseFloat(output[_UP]) as number; } - if (output["CurrencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["CurrencyCode"]); + if (output[_CCu] != null) { + contents[_CCu] = __expectString(output[_CCu]); } - if (output["DBInstanceCount"] !== undefined) { - contents.DBInstanceCount = __strictParseInt32(output["DBInstanceCount"]) as number; + if (output[_DBICn] != null) { + contents[_DBICn] = __strictParseInt32(output[_DBICn]) as number; } - if (output["ProductDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["ProductDescription"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } - if (output["OfferingType"] !== undefined) { - contents.OfferingType = __expectString(output["OfferingType"]); + if (output[_OT] != null) { + contents[_OT] = __expectString(output[_OT]); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } if (output.RecurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) { - contents.RecurringCharges = de_RecurringChargeList( - __getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), - context - ); + contents[_RC] = []; + } else if (output[_RC] != null && output[_RC][_RCe] != null) { + contents[_RC] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RC][_RCe]), context); } - if (output["ReservedDBInstanceArn"] !== undefined) { - contents.ReservedDBInstanceArn = __expectString(output["ReservedDBInstanceArn"]); + if (output[_RDBIA] != null) { + contents[_RDBIA] = __expectString(output[_RDBIA]); } - if (output["LeaseId"] !== undefined) { - contents.LeaseId = __expectString(output["LeaseId"]); + if (output[_LI] != null) { + contents[_LI] = __expectString(output[_LI]); } return contents; }; @@ -27574,8 +27117,8 @@ const de_ReservedDBInstanceAlreadyExistsFault = ( context: __SerdeContext ): ReservedDBInstanceAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27596,19 +27139,13 @@ const de_ReservedDBInstanceList = (output: any, context: __SerdeContext): Reserv */ const de_ReservedDBInstanceMessage = (output: any, context: __SerdeContext): ReservedDBInstanceMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.ReservedDBInstances === "") { - contents.ReservedDBInstances = []; - } else if ( - output["ReservedDBInstances"] !== undefined && - output["ReservedDBInstances"]["ReservedDBInstance"] !== undefined - ) { - contents.ReservedDBInstances = de_ReservedDBInstanceList( - __getArrayIfSingleItem(output["ReservedDBInstances"]["ReservedDBInstance"]), - context - ); + contents[_RDBIes] = []; + } else if (output[_RDBIes] != null && output[_RDBIes][_RDBIe] != null) { + contents[_RDBIes] = de_ReservedDBInstanceList(__getArrayIfSingleItem(output[_RDBIes][_RDBIe]), context); } return contents; }; @@ -27618,8 +27155,8 @@ const de_ReservedDBInstanceMessage = (output: any, context: __SerdeContext): Res */ const de_ReservedDBInstanceNotFoundFault = (output: any, context: __SerdeContext): ReservedDBInstanceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27632,8 +27169,8 @@ const de_ReservedDBInstanceQuotaExceededFault = ( context: __SerdeContext ): ReservedDBInstanceQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27643,40 +27180,37 @@ const de_ReservedDBInstanceQuotaExceededFault = ( */ const de_ReservedDBInstancesOffering = (output: any, context: __SerdeContext): ReservedDBInstancesOffering => { const contents: any = {}; - if (output["ReservedDBInstancesOfferingId"] !== undefined) { - contents.ReservedDBInstancesOfferingId = __expectString(output["ReservedDBInstancesOfferingId"]); + if (output[_RDBIOI] != null) { + contents[_RDBIOI] = __expectString(output[_RDBIOI]); } - if (output["DBInstanceClass"] !== undefined) { - contents.DBInstanceClass = __expectString(output["DBInstanceClass"]); + if (output[_DBIC] != null) { + contents[_DBIC] = __expectString(output[_DBIC]); } - if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["Duration"]) as number; + if (output[_Du] != null) { + contents[_Du] = __strictParseInt32(output[_Du]) as number; } - if (output["FixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; + if (output[_FP] != null) { + contents[_FP] = __strictParseFloat(output[_FP]) as number; } - if (output["UsagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["UsagePrice"]) as number; + if (output[_UP] != null) { + contents[_UP] = __strictParseFloat(output[_UP]) as number; } - if (output["CurrencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["CurrencyCode"]); + if (output[_CCu] != null) { + contents[_CCu] = __expectString(output[_CCu]); } - if (output["ProductDescription"] !== undefined) { - contents.ProductDescription = __expectString(output["ProductDescription"]); + if (output[_PD] != null) { + contents[_PD] = __expectString(output[_PD]); } - if (output["OfferingType"] !== undefined) { - contents.OfferingType = __expectString(output["OfferingType"]); + if (output[_OT] != null) { + contents[_OT] = __expectString(output[_OT]); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __parseBoolean(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __parseBoolean(output[_MAZ]); } if (output.RecurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) { - contents.RecurringCharges = de_RecurringChargeList( - __getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), - context - ); + contents[_RC] = []; + } else if (output[_RC] != null && output[_RC][_RCe] != null) { + contents[_RC] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RC][_RCe]), context); } return contents; }; @@ -27700,19 +27234,13 @@ const de_ReservedDBInstancesOfferingMessage = ( context: __SerdeContext ): ReservedDBInstancesOfferingMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.ReservedDBInstancesOfferings === "") { - contents.ReservedDBInstancesOfferings = []; - } else if ( - output["ReservedDBInstancesOfferings"] !== undefined && - output["ReservedDBInstancesOfferings"]["ReservedDBInstancesOffering"] !== undefined - ) { - contents.ReservedDBInstancesOfferings = de_ReservedDBInstancesOfferingList( - __getArrayIfSingleItem(output["ReservedDBInstancesOfferings"]["ReservedDBInstancesOffering"]), - context - ); + contents[_RDBIO] = []; + } else if (output[_RDBIO] != null && output[_RDBIO][_RDBIOe] != null) { + contents[_RDBIO] = de_ReservedDBInstancesOfferingList(__getArrayIfSingleItem(output[_RDBIO][_RDBIOe]), context); } return contents; }; @@ -27725,8 +27253,8 @@ const de_ReservedDBInstancesOfferingNotFoundFault = ( context: __SerdeContext ): ReservedDBInstancesOfferingNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27736,8 +27264,8 @@ const de_ReservedDBInstancesOfferingNotFoundFault = ( */ const de_ResourceNotFoundFault = (output: any, context: __SerdeContext): ResourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27750,19 +27278,13 @@ const de_ResourcePendingMaintenanceActions = ( context: __SerdeContext ): ResourcePendingMaintenanceActions => { const contents: any = {}; - if (output["ResourceIdentifier"] !== undefined) { - contents.ResourceIdentifier = __expectString(output["ResourceIdentifier"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } if (output.PendingMaintenanceActionDetails === "") { - contents.PendingMaintenanceActionDetails = []; - } else if ( - output["PendingMaintenanceActionDetails"] !== undefined && - output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"] !== undefined - ) { - contents.PendingMaintenanceActionDetails = de_PendingMaintenanceActionDetails( - __getArrayIfSingleItem(output["PendingMaintenanceActionDetails"]["PendingMaintenanceAction"]), - context - ); + contents[_PMAD] = []; + } else if (output[_PMAD] != null && output[_PMAD][_PMAe] != null) { + contents[_PMAD] = de_PendingMaintenanceActionDetails(__getArrayIfSingleItem(output[_PMAD][_PMAe]), context); } return contents; }; @@ -27772,8 +27294,8 @@ const de_ResourcePendingMaintenanceActions = ( */ const de_RestoreDBClusterFromS3Result = (output: any, context: __SerdeContext): RestoreDBClusterFromS3Result => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -27786,8 +27308,8 @@ const de_RestoreDBClusterFromSnapshotResult = ( context: __SerdeContext ): RestoreDBClusterFromSnapshotResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -27800,8 +27322,8 @@ const de_RestoreDBClusterToPointInTimeResult = ( context: __SerdeContext ): RestoreDBClusterToPointInTimeResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -27814,8 +27336,8 @@ const de_RestoreDBInstanceFromDBSnapshotResult = ( context: __SerdeContext ): RestoreDBInstanceFromDBSnapshotResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -27825,8 +27347,8 @@ const de_RestoreDBInstanceFromDBSnapshotResult = ( */ const de_RestoreDBInstanceFromS3Result = (output: any, context: __SerdeContext): RestoreDBInstanceFromS3Result => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -27839,8 +27361,8 @@ const de_RestoreDBInstanceToPointInTimeResult = ( context: __SerdeContext ): RestoreDBInstanceToPointInTimeResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -27850,11 +27372,11 @@ const de_RestoreDBInstanceToPointInTimeResult = ( */ const de_RestoreWindow = (output: any, context: __SerdeContext): RestoreWindow => { const contents: any = {}; - if (output["EarliestTime"] !== undefined) { - contents.EarliestTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EarliestTime"])); + if (output[_ETa] != null) { + contents[_ETa] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ETa])); } - if (output["LatestTime"] !== undefined) { - contents.LatestTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LatestTime"])); + if (output[_LT] != null) { + contents[_LT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LT])); } return contents; }; @@ -27867,8 +27389,8 @@ const de_RevokeDBSecurityGroupIngressResult = ( context: __SerdeContext ): RevokeDBSecurityGroupIngressResult => { const contents: any = {}; - if (output["DBSecurityGroup"] !== undefined) { - contents.DBSecurityGroup = de_DBSecurityGroup(output["DBSecurityGroup"], context); + if (output[_DBSGe] != null) { + contents[_DBSGe] = de_DBSecurityGroup(output[_DBSGe], context); } return contents; }; @@ -27878,23 +27400,23 @@ const de_RevokeDBSecurityGroupIngressResult = ( */ const de_ScalingConfigurationInfo = (output: any, context: __SerdeContext): ScalingConfigurationInfo => { const contents: any = {}; - if (output["MinCapacity"] !== undefined) { - contents.MinCapacity = __strictParseInt32(output["MinCapacity"]) as number; + if (output[_MCi] != null) { + contents[_MCi] = __strictParseInt32(output[_MCi]) as number; } - if (output["MaxCapacity"] !== undefined) { - contents.MaxCapacity = __strictParseInt32(output["MaxCapacity"]) as number; + if (output[_MCa] != null) { + contents[_MCa] = __strictParseInt32(output[_MCa]) as number; } - if (output["AutoPause"] !== undefined) { - contents.AutoPause = __parseBoolean(output["AutoPause"]); + if (output[_AP] != null) { + contents[_AP] = __parseBoolean(output[_AP]); } - if (output["SecondsUntilAutoPause"] !== undefined) { - contents.SecondsUntilAutoPause = __strictParseInt32(output["SecondsUntilAutoPause"]) as number; + if (output[_SUAP] != null) { + contents[_SUAP] = __strictParseInt32(output[_SUAP]) as number; } - if (output["TimeoutAction"] !== undefined) { - contents.TimeoutAction = __expectString(output["TimeoutAction"]); + if (output[_TAi] != null) { + contents[_TAi] = __expectString(output[_TAi]); } - if (output["SecondsBeforeTimeout"] !== undefined) { - contents.SecondsBeforeTimeout = __strictParseInt32(output["SecondsBeforeTimeout"]) as number; + if (output[_SBT] != null) { + contents[_SBT] = __strictParseInt32(output[_SBT]) as number; } return contents; }; @@ -27907,11 +27429,11 @@ const de_ServerlessV2ScalingConfigurationInfo = ( context: __SerdeContext ): ServerlessV2ScalingConfigurationInfo => { const contents: any = {}; - if (output["MinCapacity"] !== undefined) { - contents.MinCapacity = __strictParseFloat(output["MinCapacity"]) as number; + if (output[_MCi] != null) { + contents[_MCi] = __strictParseFloat(output[_MCi]) as number; } - if (output["MaxCapacity"] !== undefined) { - contents.MaxCapacity = __strictParseFloat(output["MaxCapacity"]) as number; + if (output[_MCa] != null) { + contents[_MCa] = __strictParseFloat(output[_MCa]) as number; } return contents; }; @@ -27924,8 +27446,8 @@ const de_SharedSnapshotQuotaExceededFault = ( context: __SerdeContext ): SharedSnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27935,8 +27457,8 @@ const de_SharedSnapshotQuotaExceededFault = ( */ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): SnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27946,8 +27468,8 @@ const de_SnapshotQuotaExceededFault = (output: any, context: __SerdeContext): Sn */ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInvalidTopicFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27957,8 +27479,8 @@ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInval */ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNoAuthorizationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27968,8 +27490,8 @@ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNo */ const de_SNSTopicArnNotFoundFault = (output: any, context: __SerdeContext): SNSTopicArnNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27979,8 +27501,8 @@ const de_SNSTopicArnNotFoundFault = (output: any, context: __SerdeContext): SNST */ const de_SourceClusterNotSupportedFault = (output: any, context: __SerdeContext): SourceClusterNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -27990,8 +27512,8 @@ const de_SourceClusterNotSupportedFault = (output: any, context: __SerdeContext) */ const de_SourceDatabaseNotSupportedFault = (output: any, context: __SerdeContext): SourceDatabaseNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28012,8 +27534,8 @@ const de_SourceIdsList = (output: any, context: __SerdeContext): string[] => { */ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28023,19 +27545,17 @@ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNot */ const de_SourceRegion = (output: any, context: __SerdeContext): SourceRegion => { const contents: any = {}; - if (output["RegionName"] !== undefined) { - contents.RegionName = __expectString(output["RegionName"]); + if (output[_RNe] != null) { + contents[_RNe] = __expectString(output[_RNe]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_End] != null) { + contents[_End] = __expectString(output[_End]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["SupportsDBInstanceAutomatedBackupsReplication"] !== undefined) { - contents.SupportsDBInstanceAutomatedBackupsReplication = __parseBoolean( - output["SupportsDBInstanceAutomatedBackupsReplication"] - ); + if (output[_SDBIABRu] != null) { + contents[_SDBIABRu] = __parseBoolean(output[_SDBIABRu]); } return contents; }; @@ -28056,16 +27576,13 @@ const de_SourceRegionList = (output: any, context: __SerdeContext): SourceRegion */ const de_SourceRegionMessage = (output: any, context: __SerdeContext): SourceRegionMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.SourceRegions === "") { - contents.SourceRegions = []; - } else if (output["SourceRegions"] !== undefined && output["SourceRegions"]["SourceRegion"] !== undefined) { - contents.SourceRegions = de_SourceRegionList( - __getArrayIfSingleItem(output["SourceRegions"]["SourceRegion"]), - context - ); + contents[_SRo] = []; + } else if (output[_SRo] != null && output[_SRo][_SR] != null) { + contents[_SRo] = de_SourceRegionList(__getArrayIfSingleItem(output[_SRo][_SR]), context); } return contents; }; @@ -28075,23 +27592,23 @@ const de_SourceRegionMessage = (output: any, context: __SerdeContext): SourceReg */ const de_StartActivityStreamResponse = (output: any, context: __SerdeContext): StartActivityStreamResponse => { const contents: any = {}; - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["KinesisStreamName"] !== undefined) { - contents.KinesisStreamName = __expectString(output["KinesisStreamName"]); + if (output[_KSN] != null) { + contents[_KSN] = __expectString(output[_KSN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } - if (output["ApplyImmediately"] !== undefined) { - contents.ApplyImmediately = __parseBoolean(output["ApplyImmediately"]); + if (output[_AI] != null) { + contents[_AI] = __parseBoolean(output[_AI]); } - if (output["EngineNativeAuditFieldsIncluded"] !== undefined) { - contents.EngineNativeAuditFieldsIncluded = __parseBoolean(output["EngineNativeAuditFieldsIncluded"]); + if (output[_ENAFI] != null) { + contents[_ENAFI] = __parseBoolean(output[_ENAFI]); } return contents; }; @@ -28101,8 +27618,8 @@ const de_StartActivityStreamResponse = (output: any, context: __SerdeContext): S */ const de_StartDBClusterResult = (output: any, context: __SerdeContext): StartDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -28115,8 +27632,8 @@ const de_StartDBInstanceAutomatedBackupsReplicationResult = ( context: __SerdeContext ): StartDBInstanceAutomatedBackupsReplicationResult => { const contents: any = {}; - if (output["DBInstanceAutomatedBackup"] !== undefined) { - contents.DBInstanceAutomatedBackup = de_DBInstanceAutomatedBackup(output["DBInstanceAutomatedBackup"], context); + if (output[_DBIABn] != null) { + contents[_DBIABn] = de_DBInstanceAutomatedBackup(output[_DBIABn], context); } return contents; }; @@ -28126,8 +27643,8 @@ const de_StartDBInstanceAutomatedBackupsReplicationResult = ( */ const de_StartDBInstanceResult = (output: any, context: __SerdeContext): StartDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -28137,14 +27654,14 @@ const de_StartDBInstanceResult = (output: any, context: __SerdeContext): StartDB */ const de_StopActivityStreamResponse = (output: any, context: __SerdeContext): StopActivityStreamResponse => { const contents: any = {}; - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["KinesisStreamName"] !== undefined) { - contents.KinesisStreamName = __expectString(output["KinesisStreamName"]); + if (output[_KSN] != null) { + contents[_KSN] = __expectString(output[_KSN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -28154,8 +27671,8 @@ const de_StopActivityStreamResponse = (output: any, context: __SerdeContext): St */ const de_StopDBClusterResult = (output: any, context: __SerdeContext): StopDBClusterResult => { const contents: any = {}; - if (output["DBCluster"] !== undefined) { - contents.DBCluster = de_DBCluster(output["DBCluster"], context); + if (output[_DBC] != null) { + contents[_DBC] = de_DBCluster(output[_DBC], context); } return contents; }; @@ -28168,8 +27685,8 @@ const de_StopDBInstanceAutomatedBackupsReplicationResult = ( context: __SerdeContext ): StopDBInstanceAutomatedBackupsReplicationResult => { const contents: any = {}; - if (output["DBInstanceAutomatedBackup"] !== undefined) { - contents.DBInstanceAutomatedBackup = de_DBInstanceAutomatedBackup(output["DBInstanceAutomatedBackup"], context); + if (output[_DBIABn] != null) { + contents[_DBIABn] = de_DBInstanceAutomatedBackup(output[_DBIABn], context); } return contents; }; @@ -28179,8 +27696,8 @@ const de_StopDBInstanceAutomatedBackupsReplicationResult = ( */ const de_StopDBInstanceResult = (output: any, context: __SerdeContext): StopDBInstanceResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -28190,8 +27707,8 @@ const de_StopDBInstanceResult = (output: any, context: __SerdeContext): StopDBIn */ const de_StorageQuotaExceededFault = (output: any, context: __SerdeContext): StorageQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28201,8 +27718,8 @@ const de_StorageQuotaExceededFault = (output: any, context: __SerdeContext): Sto */ const de_StorageTypeNotAvailableFault = (output: any, context: __SerdeContext): StorageTypeNotAvailableFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28212,8 +27729,8 @@ const de_StorageTypeNotAvailableFault = (output: any, context: __SerdeContext): */ const de_StorageTypeNotSupportedFault = (output: any, context: __SerdeContext): StorageTypeNotSupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28234,17 +27751,17 @@ const de_StringList = (output: any, context: __SerdeContext): string[] => { */ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { const contents: any = {}; - if (output["SubnetIdentifier"] !== undefined) { - contents.SubnetIdentifier = __expectString(output["SubnetIdentifier"]); + if (output[_SIub] != null) { + contents[_SIub] = __expectString(output[_SIub]); } - if (output["SubnetAvailabilityZone"] !== undefined) { - contents.SubnetAvailabilityZone = de_AvailabilityZone(output["SubnetAvailabilityZone"], context); + if (output[_SAZu] != null) { + contents[_SAZu] = de_AvailabilityZone(output[_SAZu], context); } - if (output["SubnetOutpost"] !== undefined) { - contents.SubnetOutpost = de_Outpost(output["SubnetOutpost"], context); + if (output[_SO] != null) { + contents[_SO] = de_Outpost(output[_SO], context); } - if (output["SubnetStatus"] !== undefined) { - contents.SubnetStatus = __expectString(output["SubnetStatus"]); + if (output[_SSu] != null) { + contents[_SSu] = __expectString(output[_SSu]); } return contents; }; @@ -28254,8 +27771,8 @@ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { */ const de_SubnetAlreadyInUse = (output: any, context: __SerdeContext): SubnetAlreadyInUse => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28276,8 +27793,8 @@ const de_SubnetList = (output: any, context: __SerdeContext): Subnet[] => { */ const de_SubscriptionAlreadyExistFault = (output: any, context: __SerdeContext): SubscriptionAlreadyExistFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28290,8 +27807,8 @@ const de_SubscriptionCategoryNotFoundFault = ( context: __SerdeContext ): SubscriptionCategoryNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28301,8 +27818,8 @@ const de_SubscriptionCategoryNotFoundFault = ( */ const de_SubscriptionNotFoundFault = (output: any, context: __SerdeContext): SubscriptionNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28337,8 +27854,8 @@ const de_SwitchoverBlueGreenDeploymentResponse = ( context: __SerdeContext ): SwitchoverBlueGreenDeploymentResponse => { const contents: any = {}; - if (output["BlueGreenDeployment"] !== undefined) { - contents.BlueGreenDeployment = de_BlueGreenDeployment(output["BlueGreenDeployment"], context); + if (output[_BGD] != null) { + contents[_BGD] = de_BlueGreenDeployment(output[_BGD], context); } return contents; }; @@ -28348,14 +27865,14 @@ const de_SwitchoverBlueGreenDeploymentResponse = ( */ const de_SwitchoverDetail = (output: any, context: __SerdeContext): SwitchoverDetail => { const contents: any = {}; - if (output["SourceMember"] !== undefined) { - contents.SourceMember = __expectString(output["SourceMember"]); + if (output[_SMo] != null) { + contents[_SMo] = __expectString(output[_SMo]); } - if (output["TargetMember"] !== undefined) { - contents.TargetMember = __expectString(output["TargetMember"]); + if (output[_TM] != null) { + contents[_TM] = __expectString(output[_TM]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -28376,8 +27893,8 @@ const de_SwitchoverDetailList = (output: any, context: __SerdeContext): Switchov */ const de_SwitchoverGlobalClusterResult = (output: any, context: __SerdeContext): SwitchoverGlobalClusterResult => { const contents: any = {}; - if (output["GlobalCluster"] !== undefined) { - contents.GlobalCluster = de_GlobalCluster(output["GlobalCluster"], context); + if (output[_GC] != null) { + contents[_GC] = de_GlobalCluster(output[_GC], context); } return contents; }; @@ -28387,8 +27904,8 @@ const de_SwitchoverGlobalClusterResult = (output: any, context: __SerdeContext): */ const de_SwitchoverReadReplicaResult = (output: any, context: __SerdeContext): SwitchoverReadReplicaResult => { const contents: any = {}; - if (output["DBInstance"] !== undefined) { - contents.DBInstance = de_DBInstance(output["DBInstance"], context); + if (output[_DBI] != null) { + contents[_DBI] = de_DBInstance(output[_DBI], context); } return contents; }; @@ -28398,11 +27915,11 @@ const de_SwitchoverReadReplicaResult = (output: any, context: __SerdeContext): S */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -28424,9 +27941,9 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } return contents; }; @@ -28447,14 +27964,14 @@ const de_TargetGroupList = (output: any, context: __SerdeContext): DBProxyTarget */ const de_TargetHealth = (output: any, context: __SerdeContext): TargetHealth => { const contents: any = {}; - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["Reason"] !== undefined) { - contents.Reason = __expectString(output["Reason"]); + if (output[_Rea] != null) { + contents[_Rea] = __expectString(output[_Rea]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -28475,48 +27992,46 @@ const de_TargetList = (output: any, context: __SerdeContext): DBProxyTarget[] => */ const de_TenantDatabase = (output: any, context: __SerdeContext): TenantDatabase => { const contents: any = {}; - if (output["TenantDatabaseCreateTime"] !== undefined) { - contents.TenantDatabaseCreateTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["TenantDatabaseCreateTime"]) - ); + if (output[_TDCT] != null) { + contents[_TDCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TDCT])); } - if (output["DBInstanceIdentifier"] !== undefined) { - contents.DBInstanceIdentifier = __expectString(output["DBInstanceIdentifier"]); + if (output[_DBII] != null) { + contents[_DBII] = __expectString(output[_DBII]); } - if (output["TenantDBName"] !== undefined) { - contents.TenantDBName = __expectString(output["TenantDBName"]); + if (output[_TDBN] != null) { + contents[_TDBN] = __expectString(output[_TDBN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["DbiResourceId"] !== undefined) { - contents.DbiResourceId = __expectString(output["DbiResourceId"]); + if (output[_DRI] != null) { + contents[_DRI] = __expectString(output[_DRI]); } - if (output["TenantDatabaseResourceId"] !== undefined) { - contents.TenantDatabaseResourceId = __expectString(output["TenantDatabaseResourceId"]); + if (output[_TDRI] != null) { + contents[_TDRI] = __expectString(output[_TDRI]); } - if (output["TenantDatabaseARN"] !== undefined) { - contents.TenantDatabaseARN = __expectString(output["TenantDatabaseARN"]); + if (output[_TDARN] != null) { + contents[_TDARN] = __expectString(output[_TDARN]); } - if (output["CharacterSetName"] !== undefined) { - contents.CharacterSetName = __expectString(output["CharacterSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["NcharCharacterSetName"] !== undefined) { - contents.NcharCharacterSetName = __expectString(output["NcharCharacterSetName"]); + if (output[_NCSN] != null) { + contents[_NCSN] = __expectString(output[_NCSN]); } - if (output["DeletionProtection"] !== undefined) { - contents.DeletionProtection = __parseBoolean(output["DeletionProtection"]); + if (output[_DP] != null) { + contents[_DP] = __parseBoolean(output[_DP]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_TenantDatabasePendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_TenantDatabasePendingModifiedValues(output[_PMV], context); } if (output.TagList === "") { - contents.TagList = []; - } else if (output["TagList"] !== undefined && output["TagList"]["Tag"] !== undefined) { - contents.TagList = de_TagList(__getArrayIfSingleItem(output["TagList"]["Tag"]), context); + contents[_TL] = []; + } else if (output[_TL] != null && output[_TL][_Tag] != null) { + contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } return contents; }; @@ -28529,8 +28044,8 @@ const de_TenantDatabaseAlreadyExistsFault = ( context: __SerdeContext ): TenantDatabaseAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28540,8 +28055,8 @@ const de_TenantDatabaseAlreadyExistsFault = ( */ const de_TenantDatabaseNotFoundFault = (output: any, context: __SerdeContext): TenantDatabaseNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28554,11 +28069,11 @@ const de_TenantDatabasePendingModifiedValues = ( context: __SerdeContext ): TenantDatabasePendingModifiedValues => { const contents: any = {}; - if (output["MasterUserPassword"] !== undefined) { - contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); + if (output[_MUP] != null) { + contents[_MUP] = __expectString(output[_MUP]); } - if (output["TenantDBName"] !== undefined) { - contents.TenantDBName = __expectString(output["TenantDBName"]); + if (output[_TDBN] != null) { + contents[_TDBN] = __expectString(output[_TDBN]); } return contents; }; @@ -28571,8 +28086,8 @@ const de_TenantDatabaseQuotaExceededFault = ( context: __SerdeContext ): TenantDatabaseQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -28593,16 +28108,13 @@ const de_TenantDatabasesList = (output: any, context: __SerdeContext): TenantDat */ const de_TenantDatabasesMessage = (output: any, context: __SerdeContext): TenantDatabasesMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_Ma] != null) { + contents[_Ma] = __expectString(output[_Ma]); } if (output.TenantDatabases === "") { - contents.TenantDatabases = []; - } else if (output["TenantDatabases"] !== undefined && output["TenantDatabases"]["TenantDatabase"] !== undefined) { - contents.TenantDatabases = de_TenantDatabasesList( - __getArrayIfSingleItem(output["TenantDatabases"]["TenantDatabase"]), - context - ); + contents[_TDe] = []; + } else if (output[_TDe] != null && output[_TDe][_TD] != null) { + contents[_TDe] = de_TenantDatabasesList(__getArrayIfSingleItem(output[_TDe][_TD]), context); } return contents; }; @@ -28612,8 +28124,8 @@ const de_TenantDatabasesMessage = (output: any, context: __SerdeContext): Tenant */ const de_Timezone = (output: any, context: __SerdeContext): Timezone => { const contents: any = {}; - if (output["TimezoneName"] !== undefined) { - contents.TimezoneName = __expectString(output["TimezoneName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } return contents; }; @@ -28623,43 +28135,40 @@ const de_Timezone = (output: any, context: __SerdeContext): Timezone => { */ const de_UpgradeTarget = (output: any, context: __SerdeContext): UpgradeTarget => { const contents: any = {}; - if (output["Engine"] !== undefined) { - contents.Engine = __expectString(output["Engine"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["EngineVersion"] !== undefined) { - contents.EngineVersion = __expectString(output["EngineVersion"]); + if (output[_EV] != null) { + contents[_EV] = __expectString(output[_EV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["AutoUpgrade"] !== undefined) { - contents.AutoUpgrade = __parseBoolean(output["AutoUpgrade"]); + if (output[_AU] != null) { + contents[_AU] = __parseBoolean(output[_AU]); } - if (output["IsMajorVersionUpgrade"] !== undefined) { - contents.IsMajorVersionUpgrade = __parseBoolean(output["IsMajorVersionUpgrade"]); + if (output[_IMVU] != null) { + contents[_IMVU] = __parseBoolean(output[_IMVU]); } if (output.SupportedEngineModes === "") { - contents.SupportedEngineModes = []; - } else if (output["SupportedEngineModes"] !== undefined && output["SupportedEngineModes"]["member"] !== undefined) { - contents.SupportedEngineModes = de_EngineModeList( - __getArrayIfSingleItem(output["SupportedEngineModes"]["member"]), - context - ); + contents[_SEM] = []; + } else if (output[_SEM] != null && output[_SEM][_me] != null) { + contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); } - if (output["SupportsParallelQuery"] !== undefined) { - contents.SupportsParallelQuery = __parseBoolean(output["SupportsParallelQuery"]); + if (output[_SPQ] != null) { + contents[_SPQ] = __parseBoolean(output[_SPQ]); } - if (output["SupportsGlobalDatabases"] !== undefined) { - contents.SupportsGlobalDatabases = __parseBoolean(output["SupportsGlobalDatabases"]); + if (output[_SGD] != null) { + contents[_SGD] = __parseBoolean(output[_SGD]); } - if (output["SupportsBabelfish"] !== undefined) { - contents.SupportsBabelfish = __parseBoolean(output["SupportsBabelfish"]); + if (output[_SB] != null) { + contents[_SB] = __parseBoolean(output[_SB]); } - if (output["SupportsLocalWriteForwarding"] !== undefined) { - contents.SupportsLocalWriteForwarding = __parseBoolean(output["SupportsLocalWriteForwarding"]); + if (output[_SLWF] != null) { + contents[_SLWF] = __parseBoolean(output[_SLWF]); } - if (output["SupportsIntegrations"] !== undefined) { - contents.SupportsIntegrations = __parseBoolean(output["SupportsIntegrations"]); + if (output[_SIup] != null) { + contents[_SIup] = __parseBoolean(output[_SIup]); } return contents; }; @@ -28669,23 +28178,23 @@ const de_UpgradeTarget = (output: any, context: __SerdeContext): UpgradeTarget = */ const de_UserAuthConfigInfo = (output: any, context: __SerdeContext): UserAuthConfigInfo => { const contents: any = {}; - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["UserName"] !== undefined) { - contents.UserName = __expectString(output["UserName"]); + if (output[_UN] != null) { + contents[_UN] = __expectString(output[_UN]); } - if (output["AuthScheme"] !== undefined) { - contents.AuthScheme = __expectString(output["AuthScheme"]); + if (output[_ASu] != null) { + contents[_ASu] = __expectString(output[_ASu]); } - if (output["SecretArn"] !== undefined) { - contents.SecretArn = __expectString(output["SecretArn"]); + if (output[_SAe] != null) { + contents[_SAe] = __expectString(output[_SAe]); } - if (output["IAMAuth"] !== undefined) { - contents.IAMAuth = __expectString(output["IAMAuth"]); + if (output[_IAMA] != null) { + contents[_IAMA] = __expectString(output[_IAMA]); } - if (output["ClientPasswordAuthType"] !== undefined) { - contents.ClientPasswordAuthType = __expectString(output["ClientPasswordAuthType"]); + if (output[_CPAT] != null) { + contents[_CPAT] = __expectString(output[_CPAT]); } return contents; }; @@ -28710,26 +28219,17 @@ const de_ValidDBInstanceModificationsMessage = ( ): ValidDBInstanceModificationsMessage => { const contents: any = {}; if (output.Storage === "") { - contents.Storage = []; - } else if (output["Storage"] !== undefined && output["Storage"]["ValidStorageOptions"] !== undefined) { - contents.Storage = de_ValidStorageOptionsList( - __getArrayIfSingleItem(output["Storage"]["ValidStorageOptions"]), - context - ); + contents[_Sto] = []; + } else if (output[_Sto] != null && output[_Sto][_VSO] != null) { + contents[_Sto] = de_ValidStorageOptionsList(__getArrayIfSingleItem(output[_Sto][_VSO]), context); } if (output.ValidProcessorFeatures === "") { - contents.ValidProcessorFeatures = []; - } else if ( - output["ValidProcessorFeatures"] !== undefined && - output["ValidProcessorFeatures"]["AvailableProcessorFeature"] !== undefined - ) { - contents.ValidProcessorFeatures = de_AvailableProcessorFeatureList( - __getArrayIfSingleItem(output["ValidProcessorFeatures"]["AvailableProcessorFeature"]), - context - ); + contents[_VPF] = []; + } else if (output[_VPF] != null && output[_VPF][_APFv] != null) { + contents[_VPF] = de_AvailableProcessorFeatureList(__getArrayIfSingleItem(output[_VPF][_APFv]), context); } - if (output["SupportsDedicatedLogVolume"] !== undefined) { - contents.SupportsDedicatedLogVolume = __parseBoolean(output["SupportsDedicatedLogVolume"]); + if (output[_SDLV] != null) { + contents[_SDLV] = __parseBoolean(output[_SDLV]); } return contents; }; @@ -28739,51 +28239,36 @@ const de_ValidDBInstanceModificationsMessage = ( */ const de_ValidStorageOptions = (output: any, context: __SerdeContext): ValidStorageOptions => { const contents: any = {}; - if (output["StorageType"] !== undefined) { - contents.StorageType = __expectString(output["StorageType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } if (output.StorageSize === "") { - contents.StorageSize = []; - } else if (output["StorageSize"] !== undefined && output["StorageSize"]["Range"] !== undefined) { - contents.StorageSize = de_RangeList(__getArrayIfSingleItem(output["StorageSize"]["Range"]), context); + contents[_SSt] = []; + } else if (output[_SSt] != null && output[_SSt][_Ra] != null) { + contents[_SSt] = de_RangeList(__getArrayIfSingleItem(output[_SSt][_Ra]), context); } if (output.ProvisionedIops === "") { - contents.ProvisionedIops = []; - } else if (output["ProvisionedIops"] !== undefined && output["ProvisionedIops"]["Range"] !== undefined) { - contents.ProvisionedIops = de_RangeList(__getArrayIfSingleItem(output["ProvisionedIops"]["Range"]), context); + contents[_PI] = []; + } else if (output[_PI] != null && output[_PI][_Ra] != null) { + contents[_PI] = de_RangeList(__getArrayIfSingleItem(output[_PI][_Ra]), context); } if (output.IopsToStorageRatio === "") { - contents.IopsToStorageRatio = []; - } else if (output["IopsToStorageRatio"] !== undefined && output["IopsToStorageRatio"]["DoubleRange"] !== undefined) { - contents.IopsToStorageRatio = de_DoubleRangeList( - __getArrayIfSingleItem(output["IopsToStorageRatio"]["DoubleRange"]), - context - ); + contents[_ITSR] = []; + } else if (output[_ITSR] != null && output[_ITSR][_DR] != null) { + contents[_ITSR] = de_DoubleRangeList(__getArrayIfSingleItem(output[_ITSR][_DR]), context); } - if (output["SupportsStorageAutoscaling"] !== undefined) { - contents.SupportsStorageAutoscaling = __parseBoolean(output["SupportsStorageAutoscaling"]); + if (output[_SSA] != null) { + contents[_SSA] = __parseBoolean(output[_SSA]); } if (output.ProvisionedStorageThroughput === "") { - contents.ProvisionedStorageThroughput = []; - } else if ( - output["ProvisionedStorageThroughput"] !== undefined && - output["ProvisionedStorageThroughput"]["Range"] !== undefined - ) { - contents.ProvisionedStorageThroughput = de_RangeList( - __getArrayIfSingleItem(output["ProvisionedStorageThroughput"]["Range"]), - context - ); + contents[_PST] = []; + } else if (output[_PST] != null && output[_PST][_Ra] != null) { + contents[_PST] = de_RangeList(__getArrayIfSingleItem(output[_PST][_Ra]), context); } if (output.StorageThroughputToIopsRatio === "") { - contents.StorageThroughputToIopsRatio = []; - } else if ( - output["StorageThroughputToIopsRatio"] !== undefined && - output["StorageThroughputToIopsRatio"]["DoubleRange"] !== undefined - ) { - contents.StorageThroughputToIopsRatio = de_DoubleRangeList( - __getArrayIfSingleItem(output["StorageThroughputToIopsRatio"]["DoubleRange"]), - context - ); + contents[_STTIR] = []; + } else if (output[_STTIR] != null && output[_STTIR][_DR] != null) { + contents[_STTIR] = de_DoubleRangeList(__getArrayIfSingleItem(output[_STTIR][_DR]), context); } return contents; }; @@ -28815,11 +28300,11 @@ const de_ValidUpgradeTargetList = (output: any, context: __SerdeContext): Upgrad */ const de_VpcSecurityGroupMembership = (output: any, context: __SerdeContext): VpcSecurityGroupMembership => { const contents: any = {}; - if (output["VpcSecurityGroupId"] !== undefined) { - contents.VpcSecurityGroupId = __expectString(output["VpcSecurityGroupId"]); + if (output[_VSGIp] != null) { + contents[_VSGIp] = __expectString(output[_VSGIp]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -28876,6 +28361,861 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2014-10-31"; +const _A = "Action"; +const _AA = "ApplyAction"; +const _AAAD = "AutoAppliedAfterDate"; +const _ABRPA = "AwsBackupRecoveryPointArn"; +const _ADBSGI = "AuthorizeDBSecurityGroupIngress"; +const _ADL = "AllowDataLoss"; +const _ADP = "AdditionalDataPending"; +const _AEC = "AdditionalEncryptionContext"; +const _AEMC = "AllowEngineModeChange"; +const _AI = "ApplyImmediately"; +const _AM = "AutomationMode"; +const _AMVU = "AutoMinorVersionUpgrade"; +const _AMVUl = "AllowMajorVersionUpgrade"; +const _AMp = "ApplyMethod"; +const _AN = "AttributeName"; +const _AP = "AutoPause"; +const _APF = "AvailableProcessorFeatures"; +const _APFv = "AvailableProcessorFeature"; +const _APMA = "ApplyPendingMaintenanceAction"; +const _APS = "AuditPolicyState"; +const _AQ = "AccountQuotas"; +const _AQN = "AccountQuotaName"; +const _AQc = "AccountQuota"; +const _AR = "AssociatedRoles"; +const _ART = "AutomaticRestartTime"; +const _ARTDBC = "AddRoleToDBCluster"; +const _ARTDBI = "AddRoleToDBInstance"; +const _AS = "AllocatedStorage"; +const _ASA = "AuthSecretArn"; +const _ASENAFI = "ActivityStreamEngineNativeAuditFieldsIncluded"; +const _ASITS = "AddSourceIdentifierToSubscription"; +const _ASKKI = "ActivityStreamKmsKeyId"; +const _ASKSN = "ActivityStreamKinesisStreamName"; +const _ASM = "ActivityStreamMode"; +const _ASPS = "ActivityStreamPolicyStatus"; +const _ASS = "ActivityStreamStatus"; +const _ASu = "AuthScheme"; +const _AT = "ApplyType"; +const _ATTR = "AddTagsToResource"; +const _AU = "AutoUpgrade"; +const _AV = "AllowedValues"; +const _AVANVIM = "AllowsVpcAndNonVpcInstanceMemberships"; +const _AVl = "AllowedValue"; +const _AVt = "AttributeValues"; +const _AVtt = "AttributeValue"; +const _AZ = "AvailabilityZones"; +const _AZG = "AvailabilityZoneGroup"; +const _AZv = "AvailabilityZone"; +const _Ad = "Address"; +const _Ar = "Arn"; +const _Au = "Auth"; +const _BCCR = "BacktrackConsumedChangeRecords"; +const _BDBC = "BacktrackDBCluster"; +const _BF = "BacktrackedFrom"; +const _BGD = "BlueGreenDeployment"; +const _BGDI = "BlueGreenDeploymentIdentifier"; +const _BGDN = "BlueGreenDeploymentName"; +const _BGDl = "BlueGreenDeployments"; +const _BI = "BacktrackIdentifier"; +const _BRCT = "BacktrackRequestCreationTime"; +const _BRP = "BackupRetentionPeriod"; +const _BT = "BacktrackTo"; +const _BTa = "BackupTarget"; +const _BW = "BacktrackWindow"; +const _C = "Capacity"; +const _CA = "CertificateArn"; +const _CAC = "CrossAccountClone"; +const _CACI = "CACertificateIdentifier"; +const _CAD = "CurrentApplyDate"; +const _CAI = "CAIdentifier"; +const _CAIu = "CustomerAwsId"; +const _CBGD = "CreateBlueGreenDeployment"; +const _CBT = "ConnectionBorrowTimeout"; +const _CC = "CurrentCapacity"; +const _CCA = "CopyableCrossAccount"; +const _CCDBEV = "CreateCustomDBEngineVersion"; +const _CCT = "ClusterCreateTime"; +const _CCu = "CurrencyCode"; +const _CD = "CertificateDetails"; +const _CDBC = "CreateDBCluster"; +const _CDBCE = "CreateDBClusterEndpoint"; +const _CDBCPG = "CopyDBClusterParameterGroup"; +const _CDBCPGr = "CreateDBClusterParameterGroup"; +const _CDBCS = "CopyDBClusterSnapshot"; +const _CDBCSr = "CreateDBClusterSnapshot"; +const _CDBEVM = "CustomDBEngineVersionManifest"; +const _CDBI = "CreateDBInstance"; +const _CDBIRR = "CreateDBInstanceReadReplica"; +const _CDBP = "CreateDBProxy"; +const _CDBPE = "CreateDBProxyEndpoint"; +const _CDBPG = "CopyDBParameterGroup"; +const _CDBPGr = "CreateDBParameterGroup"; +const _CDBS = "CopyDBSnapshot"; +const _CDBSG = "CreateDBSecurityGroup"; +const _CDBSGr = "CreateDBSubnetGroup"; +const _CDBSr = "CreateDBSnapshot"; +const _CDr = "CreatedDate"; +const _CE = "CustomEndpoints"; +const _CES = "CreateEventSubscription"; +const _CET = "CancelExportTask"; +const _CETu = "CustomEndpointType"; +const _CGC = "CreateGlobalCluster"; +const _CGI = "CloneGroupId"; +const _CI = "CreateIntegration"; +const _CIDRIP = "CIDRIP"; +const _CIIP = "CustomIamInstanceProfile"; +const _CIe = "CertificateIdentifier"; +const _CLEC = "CloudwatchLogsExportConfiguration"; +const _CO = "CustomerOverride"; +const _COG = "CopyOptionGroup"; +const _COGr = "CreateOptionGroup"; +const _COIE = "CustomerOwnedIpEnabled"; +const _COVT = "CustomerOverrideValidTill"; +const _CPAT = "ClientPasswordAuthType"; +const _CPC = "ConnectionPoolConfig"; +const _CRR = "CertificateRotationRestart"; +const _CS = "CharacterSet"; +const _CSD = "CharacterSetDescription"; +const _CSI = "CustSubscriptionId"; +const _CSN = "CharacterSetName"; +const _CT = "CopyTags"; +const _CTD = "CreateTenantDatabase"; +const _CTTS = "CopyTagsToSnapshot"; +const _CTe = "CertificateType"; +const _CTo = "CopyTimestamp"; +const _CTr = "CreateTime"; +const _Ce = "Certificates"; +const _Cer = "Certificate"; +const _D = "Description"; +const _DAA = "DescribeAccountAttributes"; +const _DAB = "DeleteAutomatedBackups"; +const _DASA = "DomainAuthSecretArn"; +const _DBC = "DBCluster"; +const _DBCA = "DBClusterArn"; +const _DBCAB = "DBClusterAutomatedBackups"; +const _DBCABA = "DBClusterAutomatedBackupsArn"; +const _DBCABl = "DBClusterAutomatedBackup"; +const _DBCB = "DBClusterBacktracks"; +const _DBCBl = "DBClusterBacktrack"; +const _DBCE = "DBClusterEndpoints"; +const _DBCEA = "DBClusterEndpointArn"; +const _DBCEI = "DBClusterEndpointIdentifier"; +const _DBCEL = "DBClusterEndpointList"; +const _DBCERI = "DBClusterEndpointResourceIdentifier"; +const _DBCI = "DBClusterIdentifier"; +const _DBCIC = "DBClusterInstanceClass"; +const _DBCIl = "DBClusterIdentifiers"; +const _DBCM = "DBClusterMembers"; +const _DBCMl = "DBClusterMember"; +const _DBCOG = "DBClusterOptionGroup"; +const _DBCOGM = "DBClusterOptionGroupMemberships"; +const _DBCOGN = "DBClusterOptionGroupName"; +const _DBCPG = "DBClusterParameterGroup"; +const _DBCPGA = "DBClusterParameterGroupArn"; +const _DBCPGN = "DBClusterParameterGroupName"; +const _DBCPGS = "DBClusterParameterGroupStatus"; +const _DBCPGl = "DBClusterParameterGroups"; +const _DBCR = "DBClusterRole"; +const _DBCS = "DBClusterSnapshot"; +const _DBCSA = "DBClusterSnapshotArn"; +const _DBCSAR = "DBClusterSnapshotAttributesResult"; +const _DBCSAl = "DBClusterSnapshotAttributes"; +const _DBCSAlu = "DBClusterSnapshotAttribute"; +const _DBCSI = "DBClusterSnapshotIdentifier"; +const _DBCSIl = "DBClusterStatusInfo"; +const _DBCSl = "DBClusterSnapshots"; +const _DBCl = "DBClusters"; +const _DBED = "DBEngineDescription"; +const _DBEMT = "DBEngineMediaType"; +const _DBEV = "DBEngineVersions"; +const _DBEVA = "DBEngineVersionArn"; +const _DBEVD = "DBEngineVersionDescription"; +const _DBEVn = "DBEngineVersion"; +const _DBGD = "DeleteBlueGreenDeployment"; +const _DBGDe = "DescribeBlueGreenDeployments"; +const _DBI = "DBInstance"; +const _DBIA = "DBInstanceArn"; +const _DBIAB = "DBInstanceAutomatedBackups"; +const _DBIABA = "DBInstanceAutomatedBackupsArn"; +const _DBIABR = "DBInstanceAutomatedBackupsReplications"; +const _DBIABRn = "DBInstanceAutomatedBackupsReplication"; +const _DBIABn = "DBInstanceAutomatedBackup"; +const _DBIC = "DBInstanceClass"; +const _DBICn = "DBInstanceCount"; +const _DBII = "DBInstanceIdentifier"; +const _DBIIn = "DBInstanceIdentifiers"; +const _DBIPGN = "DBInstanceParameterGroupName"; +const _DBIR = "DBInstanceRole"; +const _DBIS = "DBInstanceStatus"; +const _DBISI = "DBInstanceStatusInfo"; +const _DBIn = "DBInstances"; +const _DBN = "DBName"; +const _DBP = "DBProxy"; +const _DBPA = "DBProxyArn"; +const _DBPE = "DBProxyEndpoint"; +const _DBPEA = "DBProxyEndpointArn"; +const _DBPEN = "DBProxyEndpointName"; +const _DBPEr = "DBProxyEndpoints"; +const _DBPG = "DBParameterGroup"; +const _DBPGA = "DBParameterGroupArn"; +const _DBPGF = "DBParameterGroupFamily"; +const _DBPGN = "DBParameterGroupName"; +const _DBPGa = "DBParameterGroups"; +const _DBPN = "DBProxyName"; +const _DBPNo = "DBPortNumber"; +const _DBPT = "DBProxyTargets"; +const _DBPTG = "DBProxyTargetGroup"; +const _DBPr = "DBProxies"; +const _DBS = "DBSnapshot"; +const _DBSA = "DBSnapshotArn"; +const _DBSAR = "DBSnapshotAttributesResult"; +const _DBSAn = "DBSnapshotAttributes"; +const _DBSAna = "DBSnapshotAttribute"; +const _DBSG = "DBSecurityGroups"; +const _DBSGA = "DBSecurityGroupArn"; +const _DBSGAu = "DBSubnetGroupArn"; +const _DBSGD = "DBSecurityGroupDescription"; +const _DBSGDu = "DBSubnetGroupDescription"; +const _DBSGM = "DBSecurityGroupMemberships"; +const _DBSGN = "DBSecurityGroupName"; +const _DBSGNu = "DBSubnetGroupName"; +const _DBSGe = "DBSecurityGroup"; +const _DBSGu = "DBSubnetGroup"; +const _DBSGub = "DBSubnetGroups"; +const _DBSI = "DBSystemId"; +const _DBSIn = "DBSnapshotIdentifier"; +const _DBSTD = "DBSnapshotTenantDatabases"; +const _DBSTDARN = "DBSnapshotTenantDatabaseARN"; +const _DBSTDn = "DBSnapshotTenantDatabase"; +const _DBSn = "DBSnapshots"; +const _DC = "DescribeCertificates"; +const _DCDBEV = "DeleteCustomDBEngineVersion"; +const _DCFNL = "DefaultCertificateForNewLaunches"; +const _DCI = "DbClusterIdentifier"; +const _DCRI = "DbClusterResourceId"; +const _DCS = "DefaultCharacterSet"; +const _DD = "DisableDomain"; +const _DDBC = "DeleteDBCluster"; +const _DDBCAB = "DeleteDBClusterAutomatedBackup"; +const _DDBCABe = "DescribeDBClusterAutomatedBackups"; +const _DDBCB = "DescribeDBClusterBacktracks"; +const _DDBCE = "DeleteDBClusterEndpoint"; +const _DDBCEe = "DescribeDBClusterEndpoints"; +const _DDBCP = "DescribeDBClusterParameters"; +const _DDBCPG = "DeleteDBClusterParameterGroup"; +const _DDBCPGe = "DescribeDBClusterParameterGroups"; +const _DDBCS = "DeleteDBClusterSnapshot"; +const _DDBCSA = "DescribeDBClusterSnapshotAttributes"; +const _DDBCSe = "DescribeDBClusterSnapshots"; +const _DDBCe = "DescribeDBClusters"; +const _DDBEV = "DescribeDBEngineVersions"; +const _DDBI = "DeleteDBInstance"; +const _DDBIAB = "DeleteDBInstanceAutomatedBackup"; +const _DDBIABe = "DescribeDBInstanceAutomatedBackups"; +const _DDBIe = "DescribeDBInstances"; +const _DDBLF = "DescribeDBLogFiles"; +const _DDBLFD = "DescribeDBLogFilesDetails"; +const _DDBLFP = "DownloadDBLogFilePortion"; +const _DDBP = "DeleteDBProxy"; +const _DDBPE = "DeleteDBProxyEndpoint"; +const _DDBPEe = "DescribeDBProxyEndpoints"; +const _DDBPG = "DeleteDBParameterGroup"; +const _DDBPGe = "DescribeDBParameterGroups"; +const _DDBPT = "DeregisterDBProxyTargets"; +const _DDBPTG = "DescribeDBProxyTargetGroups"; +const _DDBPTe = "DescribeDBProxyTargets"; +const _DDBPe = "DescribeDBParameters"; +const _DDBPes = "DescribeDBProxies"; +const _DDBS = "DeleteDBSnapshot"; +const _DDBSA = "DescribeDBSnapshotAttributes"; +const _DDBSG = "DeleteDBSecurityGroup"; +const _DDBSGe = "DeleteDBSubnetGroup"; +const _DDBSGes = "DescribeDBSecurityGroups"; +const _DDBSGesc = "DescribeDBSubnetGroups"; +const _DDBSTD = "DescribeDBSnapshotTenantDatabases"; +const _DDBSe = "DescribeDBSnapshots"; +const _DDI = "DomainDnsIps"; +const _DE = "DescribeEvents"; +const _DEC = "DescribeEventCategories"; +const _DEDCP = "DescribeEngineDefaultClusterParameters"; +const _DEDP = "DescribeEngineDefaultParameters"; +const _DES = "DeleteEventSubscription"; +const _DESe = "DescribeEventSubscriptions"; +const _DET = "DescribeExportTasks"; +const _DF = "DomainFqdn"; +const _DGC = "DeleteGlobalCluster"; +const _DGCe = "DescribeGlobalClusters"; +const _DI = "DeleteIntegration"; +const _DIAMRN = "DomainIAMRoleName"; +const _DIFSBN = "DatabaseInstallationFilesS3BucketName"; +const _DIFSP = "DatabaseInstallationFilesS3Prefix"; +const _DIP = "DbInstancePort"; +const _DIe = "DescribeIntegrations"; +const _DIn = "DnsIps"; +const _DL = "DebugLogging"; +const _DLT = "DisableLogTypes"; +const _DLV = "DedicatedLogVolume"; +const _DM = "DomainMemberships"; +const _DMo = "DomainMembership"; +const _DN = "DatabaseName"; +const _DO = "DomainOu"; +const _DODBIO = "DescribeOrderableDBInstanceOptions"; +const _DOG = "DeleteOptionGroup"; +const _DOGO = "DescribeOptionGroupOptions"; +const _DOGe = "DescribeOptionGroups"; +const _DOe = "DefaultOnly"; +const _DP = "DeletionProtection"; +const _DPMA = "DescribePendingMaintenanceActions"; +const _DPe = "DefaultPort"; +const _DR = "DoubleRange"; +const _DRDBI = "DescribeReservedDBInstances"; +const _DRDBIO = "DescribeReservedDBInstancesOfferings"; +const _DRI = "DbiResourceId"; +const _DSR = "DescribeSourceRegions"; +const _DT = "DeleteTarget"; +const _DTD = "DeleteTenantDatabase"; +const _DTDe = "DescribeTenantDatabases"; +const _DTa = "DataType"; +const _DTe = "DeleteTime"; +const _DV = "DefaultValue"; +const _DVDBIM = "DescribeValidDBInstanceModifications"; +const _Da = "Date"; +const _Do = "Domain"; +const _Du = "Duration"; +const _E = "Engine"; +const _EBT = "EarliestBacktrackTime"; +const _EC = "EventCategories"; +const _ECL = "EventCategoriesList"; +const _ECLE = "EnableCloudwatchLogsExports"; +const _ECLEn = "EnabledCloudwatchLogsExports"; +const _ECM = "EventCategoriesMap"; +const _ECML = "EventCategoriesMapList"; +const _ECOI = "EnableCustomerOwnedIp"; +const _ECSG = "EC2SecurityGroups"; +const _ECSGI = "EC2SecurityGroupId"; +const _ECSGN = "EC2SecurityGroupName"; +const _ECSGOI = "EC2SecurityGroupOwnerId"; +const _ECSGe = "EC2SecurityGroup"; +const _ECr = "ErrorCode"; +const _ECv = "EventCategory"; +const _ED = "EngineDefaults"; +const _EF = "EngineFamily"; +const _EGWF = "EnableGlobalWriteForwarding"; +const _EHE = "EnableHttpEndpoint"; +const _EIAMDA = "EnableIAMDatabaseAuthentication"; +const _ELT = "EnableLogTypes"; +const _ELTx = "ExportableLogTypes"; +const _ELWF = "EnableLocalWriteForwarding"; +const _EM = "ExcludedMembers"; +const _EMRA = "EnhancedMonitoringResourceArn"; +const _EMn = "EngineMode"; +const _EMr = "ErrorMessage"; +const _EN = "EngineName"; +const _ENAFI = "EngineNativeAuditFieldsIncluded"; +const _EO = "ExportOnly"; +const _EPI = "EnablePerformanceInsights"; +const _ERT = "EarliestRestorableTime"; +const _ES = "EventSubscription"; +const _ESA = "EventSubscriptionArn"; +const _ESL = "EventSubscriptionsList"; +const _ET = "EndpointType"; +const _ETI = "ExportTaskIdentifier"; +const _ETa = "EarliestTime"; +const _ETn = "EndTime"; +const _ETx = "ExportTasks"; +const _ETxp = "ExportTask"; +const _EV = "EngineVersion"; +const _En = "Enabled"; +const _Enc = "Encrypted"; +const _End = "Endpoint"; +const _Er = "Errors"; +const _Ev = "Events"; +const _Eve = "Event"; +const _F = "Force"; +const _FAD = "ForcedApplyDate"; +const _FC = "FilenameContains"; +const _FCa = "FailureCause"; +const _FDBC = "FailoverDBCluster"; +const _FDBSI = "FinalDBSnapshotIdentifier"; +const _FDCA = "FromDbClusterArn"; +const _FF = "ForceFailover"; +const _FGC = "FailoverGlobalCluster"; +const _FLW = "FileLastWritten"; +const _FN = "FeatureName"; +const _FP = "FixedPrice"; +const _FQDN = "FQDN"; +const _FS = "FileSize"; +const _FSa = "FailoverState"; +const _Fi = "Filters"; +const _Fr = "From"; +const _GC = "GlobalCluster"; +const _GCA = "GlobalClusterArn"; +const _GCI = "GlobalClusterIdentifier"; +const _GCM = "GlobalClusterMembers"; +const _GCMl = "GlobalClusterMember"; +const _GCRI = "GlobalClusterResourceId"; +const _GCl = "GlobalClusters"; +const _GWFR = "GlobalWriteForwardingRequested"; +const _GWFS = "GlobalWriteForwardingStatus"; +const _HEE = "HttpEndpointEnabled"; +const _HZI = "HostedZoneId"; +const _I = "Iops"; +const _IA = "IncludeAll"; +const _IAMA = "IAMAuth"; +const _IAMDAE = "IAMDatabaseAuthenticationEnabled"; +const _IAMRN = "IAMRoleName"; +const _IAn = "IntegrationArn"; +const _IC = "IsCollection"; +const _ICT = "IdleClientTimeout"; +const _ICTn = "InstanceCreateTime"; +const _ICW = "IsClusterWriter"; +const _ID = "IsDefault"; +const _IDLA = "IsDataLossAllowed"; +const _IE = "IntegrationError"; +const _II = "ImageId"; +const _IIn = "IntegrationIdentifier"; +const _IM = "IsModifiable"; +const _IMVU = "IsMajorVersionUpgrade"; +const _IN = "IntegrationName"; +const _IOONAMT = "IOOptimizedNextAllowedModificationTime"; +const _IP = "IncludePublic"; +const _IPR = "IPRanges"; +const _IPRa = "IPRange"; +const _IQ = "InitQuery"; +const _IR = "IsRequired"; +const _IRA = "IamRoleArn"; +const _IS = "IncludeShared"; +const _ISCUA = "IsStorageConfigUpgradeAvailable"; +const _ISI = "InterconnectSubnetId"; +const _ITSR = "IopsToStorageRatio"; +const _IW = "IsWriter"; +const _Im = "Image"; +const _In = "Integrations"; +const _Int = "Integration"; +const _K = "Key"; +const _KKI = "KmsKeyId"; +const _KMSKI = "KMSKeyId"; +const _KSN = "KinesisStreamName"; +const _LE = "ListenerEndpoint"; +const _LFD = "LogFileData"; +const _LFN = "LogFileName"; +const _LI = "LeaseId"; +const _LM = "LicenseModel"; +const _LRT = "LatestRestorableTime"; +const _LSCS = "ListSupportedCharacterSets"; +const _LST = "ListSupportedTimezones"; +const _LT = "LatestTime"; +const _LTFR = "ListTagsForResource"; +const _LTTD = "LogTypesToDisable"; +const _LTTE = "LogTypesToEnable"; +const _LW = "LastWritten"; +const _LWFS = "LocalWriteForwardingStatus"; +const _M = "Manifest"; +const _MAS = "ModifyActivityStream"; +const _MASa = "MaxAllocatedStorage"; +const _MAZ = "MultiAZ"; +const _MAZC = "MultiAZCapable"; +const _MC = "ModifyCertificates"; +const _MCDBCC = "ModifyCurrentDBClusterCapacity"; +const _MCDBEV = "ModifyCustomDBEngineVersion"; +const _MCP = "MaxConnectionsPercent"; +const _MCa = "MaxCapacity"; +const _MCi = "MinCapacity"; +const _MDBC = "ModifyDBCluster"; +const _MDBCE = "ModifyDBClusterEndpoint"; +const _MDBCPG = "ModifyDBClusterParameterGroup"; +const _MDBCSA = "ModifyDBClusterSnapshotAttribute"; +const _MDBI = "ModifyDBInstance"; +const _MDBP = "ModifyDBProxy"; +const _MDBPE = "ModifyDBProxyEndpoint"; +const _MDBPG = "ModifyDBParameterGroup"; +const _MDBPTG = "ModifyDBProxyTargetGroup"; +const _MDBS = "ModifyDBSnapshot"; +const _MDBSA = "ModifyDBSnapshotAttribute"; +const _MDBSG = "ModifyDBSubnetGroup"; +const _MES = "ModifyEventSubscription"; +const _MEV = "MajorEngineVersion"; +const _MEVPAV = "MinimumEngineVersionPerAllowedValue"; +const _MEVi = "MinimumEngineVersion"; +const _MGC = "ModifyGlobalCluster"; +const _MI = "MonitoringInterval"; +const _MICP = "MaxIdleConnectionsPercent"; +const _MIPDI = "MinIopsPerDbInstance"; +const _MIPDIa = "MaxIopsPerDbInstance"; +const _MIPG = "MinIopsPerGib"; +const _MIPGa = "MaxIopsPerGib"; +const _MMUP = "ManageMasterUserPassword"; +const _MOG = "ModifyOptionGroup"; +const _MR = "MaxRecords"; +const _MRA = "MonitoringRoleArn"; +const _MRMEV = "MinimumRequiredMinorEngineVersion"; +const _MSS = "MinStorageSize"; +const _MSSa = "MaxStorageSize"; +const _MSTPDI = "MinStorageThroughputPerDbInstance"; +const _MSTPDIa = "MaxStorageThroughputPerDbInstance"; +const _MSTPI = "MinStorageThroughputPerIops"; +const _MSTPIa = "MaxStorageThroughputPerIops"; +const _MT = "MultiTenant"; +const _MTD = "ModifyTenantDatabase"; +const _MU = "MasterUsername"; +const _MUP = "MasterUserPassword"; +const _MUS = "MasterUserSecret"; +const _MUSKKI = "MasterUserSecretKmsKeyId"; +const _Ma = "Marker"; +const _Max = "Max"; +const _Me = "Message"; +const _Mo = "Mode"; +const _N = "Name"; +const _NCSN = "NcharCharacterSetName"; +const _NDBCI = "NewDBClusterIdentifier"; +const _NDBII = "NewDBInstanceIdentifier"; +const _NDBPEN = "NewDBProxyEndpointName"; +const _NDBPN = "NewDBProxyName"; +const _NGCI = "NewGlobalClusterIdentifier"; +const _NN = "NewName"; +const _NOL = "NumberOfLines"; +const _NT = "NetworkType"; +const _NTDBN = "NewTenantDBName"; +const _No = "Normal"; +const _O = "Options"; +const _OC = "OutpostCapable"; +const _OCN = "OptionConflictName"; +const _OCW = "OptionsConflictsWith"; +const _OD = "OptionDescription"; +const _ODBIO = "OrderableDBInstanceOptions"; +const _ODBIOr = "OrderableDBInstanceOption"; +const _ODO = "OptionsDependedOn"; +const _OG = "OptionGroup"; +const _OGA = "OptionGroupArn"; +const _OGD = "OptionGroupDescription"; +const _OGL = "OptionGroupsList"; +const _OGM = "OptionGroupMemberships"; +const _OGMp = "OptionGroupMembership"; +const _OGN = "OptionGroupName"; +const _OGO = "OptionGroupOptions"; +const _OGOS = "OptionGroupOptionSettings"; +const _OGOSp = "OptionGroupOptionSetting"; +const _OGOV = "OptionGroupOptionVersions"; +const _OGOp = "OptionGroupOption"; +const _OI = "OwnerId"; +const _OIS = "OptInStatus"; +const _OIT = "OptInType"; +const _ON = "OptionName"; +const _OS = "OptionSettings"; +const _OSCT = "OriginalSnapshotCreateTime"; +const _OSp = "OptionSetting"; +const _OT = "OfferingType"; +const _OTI = "OptionsToInclude"; +const _OTR = "OptionsToRemove"; +const _OU = "OU"; +const _OV = "OptionVersion"; +const _Op = "Option"; +const _P = "Port"; +const _PA = "PubliclyAccessible"; +const _PAS = "ParameterApplyStatus"; +const _PBW = "PreferredBackupWindow"; +const _PC = "PendingCapacity"; +const _PCLE = "PendingCloudwatchLogsExports"; +const _PD = "ProductDescription"; +const _PF = "ProcessorFeatures"; +const _PFr = "ProcessorFeature"; +const _PI = "ProvisionedIops"; +const _PIE = "PerformanceInsightsEnabled"; +const _PIKMSKI = "PerformanceInsightsKMSKeyId"; +const _PIRP = "PerformanceInsightsRetentionPeriod"; +const _PMA = "PendingMaintenanceActions"; +const _PMAD = "PendingMaintenanceActionDetails"; +const _PMAe = "PendingMaintenanceAction"; +const _PMV = "PendingModifiedValues"; +const _PMW = "PreferredMaintenanceWindow"; +const _PN = "ParameterName"; +const _PP = "PercentProgress"; +const _PR = "PortRequired"; +const _PRDBIO = "PurchaseReservedDBInstancesOffering"; +const _PRR = "PromoteReadReplica"; +const _PRRDBC = "PromoteReadReplicaDBCluster"; +const _PS = "PolicyStatus"; +const _PST = "ProvisionedStorageThroughput"; +const _PSU = "PreSignedUrl"; +const _PT = "PromotionTier"; +const _PV = "ParameterValue"; +const _Pa = "Parameters"; +const _Par = "Parameter"; +const _Pe = "Persistent"; +const _Per = "Permanent"; +const _R = "Region"; +const _RA = "RoleArn"; +const _RAMEVU = "RequiresAutoMinorEngineVersionUpgrade"; +const _RAP = "ResetAllParameters"; +const _RAe = "ResourceArn"; +const _RC = "RecurringCharges"; +const _RCA = "RecurringChargeAmount"; +const _RCCC = "RdsCustomClusterConfiguration"; +const _RCF = "RecurringChargeFrequency"; +const _RCO = "RemoveCustomerOverride"; +const _RCe = "RecurringCharge"; +const _RDBC = "RebootDBCluster"; +const _RDBCFS = "RestoreDBClusterFromS3"; +const _RDBCFSe = "RestoreDBClusterFromSnapshot"; +const _RDBCPG = "ResetDBClusterParameterGroup"; +const _RDBCTPIT = "RestoreDBClusterToPointInTime"; +const _RDBI = "RebootDBInstance"; +const _RDBIA = "ReservedDBInstanceArn"; +const _RDBIFDBS = "RestoreDBInstanceFromDBSnapshot"; +const _RDBIFS = "RestoreDBInstanceFromS3"; +const _RDBII = "ReservedDBInstanceId"; +const _RDBIO = "ReservedDBInstancesOfferings"; +const _RDBIOI = "ReservedDBInstancesOfferingId"; +const _RDBIOe = "ReservedDBInstancesOffering"; +const _RDBITPIT = "RestoreDBInstanceToPointInTime"; +const _RDBIe = "ReservedDBInstance"; +const _RDBIes = "ReservedDBInstances"; +const _RDBPG = "ResetDBParameterGroup"; +const _RDBPT = "RegisterDBProxyTargets"; +const _RDBSGI = "RevokeDBSecurityGroupIngress"; +const _RE = "ReaderEndpoint"; +const _RFAMM = "ResumeFullAutomationModeMinutes"; +const _RFAMT = "ResumeFullAutomationModeTime"; +const _RFGC = "RemoveFromGlobalCluster"; +const _RI = "ResourceIdentifier"; +const _RM = "ReplicaMode"; +const _RMUP = "RotateMasterUserPassword"; +const _RN = "ResourceName"; +const _RNe = "RegionName"; +const _RPMA = "ResourcePendingMaintenanceActions"; +const _RRC = "ReadReplicaCapable"; +const _RRDBCI = "ReadReplicaDBClusterIdentifiers"; +const _RRDBCIe = "ReadReplicaDBClusterIdentifier"; +const _RRDBII = "ReadReplicaDBInstanceIdentifiers"; +const _RRDBIIe = "ReadReplicaDBInstanceIdentifier"; +const _RRFDBC = "RemoveRoleFromDBCluster"; +const _RRFDBI = "RemoveRoleFromDBInstance"; +const _RRI = "ReadReplicaIdentifiers"; +const _RRId = "RdsResourceId"; +const _RRIe = "ReadReplicaIdentifier"; +const _RRSDBCI = "ReadReplicaSourceDBClusterIdentifier"; +const _RRSDBII = "ReadReplicaSourceDBInstanceIdentifier"; +const _RSI = "ReplicationSourceIdentifier"; +const _RSIFS = "RemoveSourceIdentifierFromSubscription"; +const _RT = "RestoreType"; +const _RTFR = "RemoveTagsFromResource"; +const _RTLS = "RequireTLS"; +const _RTT = "RestoreToTime"; +const _RTe = "RestoreTime"; +const _RW = "RestoreWindow"; +const _Ra = "Range"; +const _Re = "Readers"; +const _Rea = "Reason"; +const _Ro = "Role"; +const _S = "Source"; +const _SA = "SourceArn"; +const _SAI = "SourceAccountId"; +const _SAS = "StartActivityStream"; +const _SASM = "SupportedActivityStreamModes"; +const _SASt = "StopActivityStream"; +const _SAZ = "SecondaryAvailabilityZone"; +const _SAZu = "SubnetAvailabilityZone"; +const _SAe = "SecretArn"; +const _SB = "SupportsBabelfish"; +const _SBGD = "SwitchoverBlueGreenDeployment"; +const _SBN = "S3BucketName"; +const _SBT = "SecondsBeforeTimeout"; +const _SBu = "S3Bucket"; +const _SC = "ScalingConfiguration"; +const _SCACI = "SupportedCACertificateIdentifiers"; +const _SCDEVI = "SourceCustomDbEngineVersionIdentifier"; +const _SCI = "ScalingConfigurationInfo"; +const _SCRWR = "SupportsCertificateRotationWithoutRestart"; +const _SCS = "SupportedCharacterSets"; +const _SCT = "SnapshotCreateTime"; +const _SCTu = "SubscriptionCreationTime"; +const _SCu = "SupportsClusters"; +const _SD = "SwitchoverDetails"; +const _SDBC = "StartDBCluster"; +const _SDBCI = "SourceDBClusterIdentifier"; +const _SDBCPGI = "SourceDBClusterParameterGroupIdentifier"; +const _SDBCSA = "SourceDBClusterSnapshotArn"; +const _SDBCSI = "SourceDBClusterSnapshotIdentifier"; +const _SDBCt = "StopDBCluster"; +const _SDBI = "StartDBInstance"; +const _SDBIA = "SourceDBInstanceArn"; +const _SDBIABA = "SourceDBInstanceAutomatedBackupsArn"; +const _SDBIABR = "StartDBInstanceAutomatedBackupsReplication"; +const _SDBIABRt = "StopDBInstanceAutomatedBackupsReplication"; +const _SDBIABRu = "SupportsDBInstanceAutomatedBackupsReplication"; +const _SDBII = "SourceDBInstanceIdentifier"; +const _SDBIt = "StopDBInstance"; +const _SDBPGI = "SourceDBParameterGroupIdentifier"; +const _SDBSI = "SourceDBSnapshotIdentifier"; +const _SDCRI = "SourceDbClusterResourceId"; +const _SDLV = "SupportsDedicatedLogVolume"; +const _SDRI = "SourceDbiResourceId"; +const _SDT = "SnapshotDatabaseTime"; +const _SDe = "SettingDescription"; +const _SDt = "StatusDetails"; +const _SE = "StorageEncrypted"; +const _SEM = "SupportedEngineModes"; +const _SEMu = "SupportsEnhancedMonitoring"; +const _SET = "StartExportTask"; +const _SEV = "SourceEngineVersion"; +const _SEo = "SourceEngine"; +const _SFN = "SupportedFeatureNames"; +const _SFS = "SkipFinalSnapshot"; +const _SG = "SecurityGroups"; +const _SGC = "SwitchoverGlobalCluster"; +const _SGD = "SupportsGlobalDatabases"; +const _SGS = "SubnetGroupStatus"; +const _SI = "SourceIdentifier"; +const _SIAMDA = "SupportsIAMDatabaseAuthentication"; +const _SIL = "SourceIdsList"; +const _SIRA = "S3IngestionRoleArn"; +const _SIn = "SnapshotIdentifier"; +const _SIo = "SourceIds"; +const _SIou = "SourceId"; +const _SIt = "StatusInfos"; +const _SIu = "SubnetIds"; +const _SIub = "SubnetIdentifier"; +const _SIup = "SupportsIntegrations"; +const _SIupp = "SupportsIops"; +const _SKA = "SupportsKerberosAuthentication"; +const _SLETCL = "SupportsLogExportsToCloudwatchLogs"; +const _SLWF = "SupportsLocalWriteForwarding"; +const _SM = "StaticMembers"; +const _SMo = "SourceMember"; +const _SN = "SubscriptionName"; +const _SNCS = "SupportedNcharCharacterSets"; +const _SNT = "SupportedNetworkTypes"; +const _SNe = "SettingName"; +const _SO = "SubnetOutpost"; +const _SOG = "SourceOptionGroup"; +const _SOGI = "SourceOptionGroupIdentifier"; +const _SOVD = "SupportsOptionVersionDowngrade"; +const _SP = "S3Prefix"; +const _SPF = "SessionPinningFilters"; +const _SPI = "SupportsPerformanceInsights"; +const _SPQ = "SupportsParallelQuery"; +const _SR = "SourceRegion"; +const _SRR = "SwitchoverReadReplica"; +const _SRRu = "SupportsReadReplica"; +const _SRo = "SourceRegions"; +const _SS = "SynchronizationStatus"; +const _SSA = "SupportsStorageAutoscaling"; +const _SSE = "SupportsStorageEncryption"; +const _SST = "SupportsStorageThroughput"; +const _SSe = "SecretStatus"; +const _SSt = "StorageSize"; +const _SSu = "SubnetStatus"; +const _ST = "StorageType"; +const _STA = "SnsTopicArn"; +const _STTIR = "StorageThroughputToIopsRatio"; +const _STn = "SnapshotType"; +const _STna = "SnapshotTarget"; +const _STnap = "SnapshotTime"; +const _STo = "SourceType"; +const _STt = "StorageThroughput"; +const _STta = "StartTime"; +const _STtat = "StatusType"; +const _STu = "SupportedTimezones"; +const _STw = "SwitchoverTimeout"; +const _SUAP = "SecondsUntilAutoPause"; +const _SVSC = "ServerlessV2ScalingConfiguration"; +const _Si = "Size"; +const _St = "Status"; +const _Sta = "State"; +const _Ste = "Step"; +const _Sto = "Storage"; +const _Su = "Subnets"; +const _Sub = "Subnet"; +const _Sw = "Switchover"; +const _T = "Tags"; +const _TA = "TargetArn"; +const _TAi = "TimeoutAction"; +const _TCA = "TdeCredentialArn"; +const _TCAZ = "TargetCustomAvailabilityZone"; +const _TCI = "TrackedClusterId"; +const _TCP = "TdeCredentialPassword"; +const _TD = "TenantDatabase"; +const _TDARN = "TenantDatabaseARN"; +const _TDBCPGD = "TargetDBClusterParameterGroupDescription"; +const _TDBCPGI = "TargetDBClusterParameterGroupIdentifier"; +const _TDBCPGN = "TargetDBClusterParameterGroupName"; +const _TDBCSI = "TargetDBClusterSnapshotIdentifier"; +const _TDBIC = "TargetDBInstanceClass"; +const _TDBII = "TargetDBInstanceIdentifier"; +const _TDBN = "TenantDBName"; +const _TDBPGD = "TargetDBParameterGroupDescription"; +const _TDBPGI = "TargetDBParameterGroupIdentifier"; +const _TDBPGN = "TargetDBParameterGroupName"; +const _TDBSI = "TargetDBSnapshotIdentifier"; +const _TDCA = "ToDbClusterArn"; +const _TDCI = "TargetDbClusterIdentifier"; +const _TDCT = "TenantDatabaseCreateTime"; +const _TDRI = "TenantDatabaseResourceId"; +const _TDe = "TenantDatabases"; +const _TEDIGB = "TotalExtractedDataInGB"; +const _TET = "TaskEndTime"; +const _TEV = "TargetEngineVersion"; +const _TG = "TargetGroups"; +const _TGA = "TargetGroupArn"; +const _TGMDI = "TransitGatewayMulticastDomainId"; +const _TGN = "TargetGroupName"; +const _TH = "TargetHealth"; +const _TK = "TagKeys"; +const _TL = "TagList"; +const _TM = "TargetMember"; +const _TN = "TimezoneName"; +const _TOGD = "TargetOptionGroupDescription"; +const _TOGI = "TargetOptionGroupIdentifier"; +const _TR = "TargetRole"; +const _TST = "TaskStartTime"; +const _Ta = "Target"; +const _Tag = "Tag"; +const _Tar = "Targets"; +const _Tas = "Tasks"; +const _Th = "Thumbprint"; +const _Ti = "Timezone"; +const _To = "To"; +const _Ty = "Type"; +const _U = "Used"; +const _UAPLI = "UseAwsProvidedLatestImage"; +const _UD = "UpdatedDate"; +const _UDPF = "UseDefaultProcessorFeatures"; +const _UETOPITU = "UseEarliestTimeOnPointInTimeUnavailable"; +const _ULRT = "UseLatestRestorableTime"; +const _UN = "UserName"; +const _UP = "UsagePrice"; +const _USC = "UpgradeStorageConfig"; +const _UT = "UpgradeTarget"; +const _UTSC = "UpgradeTargetStorageConfig"; +const _V = "Version"; +const _VDBIMM = "ValidDBInstanceModificationsMessage"; +const _VF = "ValidFrom"; +const _VI = "VpcId"; +const _VO = "VpcOnly"; +const _VPF = "ValidProcessorFeatures"; +const _VSG = "VpcSecurityGroups"; +const _VSGI = "VpcSecurityGroupIds"; +const _VSGIp = "VpcSecurityGroupId"; +const _VSGM = "VpcSecurityGroupMemberships"; +const _VSGMp = "VpcSecurityGroupMembership"; +const _VSI = "VpcSubnetIds"; +const _VSO = "ValidStorageOptions"; +const _VT = "ValidTill"; +const _VTA = "ValuesToAdd"; +const _VTR = "ValuesToRemove"; +const _VUT = "ValidUpgradeTarget"; +const _Va = "Values"; +const _Val = "Value"; +const _Vp = "Vpc"; +const _WM = "WarningMessage"; +const _e = "entry"; +const _m = "message"; +const _me = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-redshift/src/models/models_1.ts b/clients/client-redshift/src/models/models_1.ts index 1fcfff8ae441..ea89544ebc1d 100644 --- a/clients/client-redshift/src/models/models_1.ts +++ b/clients/client-redshift/src/models/models_1.ts @@ -37,6 +37,7 @@ import { UsageLimitBreachAction, UsageLimitFeatureType, } from "./models_0"; + import { RedshiftServiceException as __BaseException } from "./RedshiftServiceException"; /** diff --git a/clients/client-redshift/src/protocols/Aws_query.ts b/clients/client-redshift/src/protocols/Aws_query.ts index 90e30bb181f5..2385f8565dea 100644 --- a/clients/client-redshift/src/protocols/Aws_query.ts +++ b/clients/client-redshift/src/protocols/Aws_query.ts @@ -924,8 +924,8 @@ export const se_AcceptReservedNodeExchangeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AcceptReservedNodeExchangeInputMessage(input, context), - Action: "AcceptReservedNodeExchange", - Version: "2012-12-01", + [_A]: _ARNE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -941,8 +941,8 @@ export const se_AddPartnerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PartnerIntegrationInputMessage(input, context), - Action: "AddPartner", - Version: "2012-12-01", + [_A]: _AP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -958,8 +958,8 @@ export const se_AssociateDataShareConsumerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssociateDataShareConsumerMessage(input, context), - Action: "AssociateDataShareConsumer", - Version: "2012-12-01", + [_A]: _ADSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -975,8 +975,8 @@ export const se_AuthorizeClusterSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeClusterSecurityGroupIngressMessage(input, context), - Action: "AuthorizeClusterSecurityGroupIngress", - Version: "2012-12-01", + [_A]: _ACSGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -992,8 +992,8 @@ export const se_AuthorizeDataShareCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeDataShareMessage(input, context), - Action: "AuthorizeDataShare", - Version: "2012-12-01", + [_A]: _ADS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1009,8 +1009,8 @@ export const se_AuthorizeEndpointAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeEndpointAccessMessage(input, context), - Action: "AuthorizeEndpointAccess", - Version: "2012-12-01", + [_A]: _AEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1026,8 +1026,8 @@ export const se_AuthorizeSnapshotAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AuthorizeSnapshotAccessMessage(input, context), - Action: "AuthorizeSnapshotAccess", - Version: "2012-12-01", + [_A]: _ASA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1043,8 +1043,8 @@ export const se_BatchDeleteClusterSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BatchDeleteClusterSnapshotsRequest(input, context), - Action: "BatchDeleteClusterSnapshots", - Version: "2012-12-01", + [_A]: _BDCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1060,8 +1060,8 @@ export const se_BatchModifyClusterSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_BatchModifyClusterSnapshotsMessage(input, context), - Action: "BatchModifyClusterSnapshots", - Version: "2012-12-01", + [_A]: _BMCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1077,8 +1077,8 @@ export const se_CancelResizeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CancelResizeMessage(input, context), - Action: "CancelResize", - Version: "2012-12-01", + [_A]: _CR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1094,8 +1094,8 @@ export const se_CopyClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CopyClusterSnapshotMessage(input, context), - Action: "CopyClusterSnapshot", - Version: "2012-12-01", + [_A]: _CCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1111,8 +1111,8 @@ export const se_CreateAuthenticationProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateAuthenticationProfileMessage(input, context), - Action: "CreateAuthenticationProfile", - Version: "2012-12-01", + [_A]: _CAP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1128,8 +1128,8 @@ export const se_CreateClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateClusterMessage(input, context), - Action: "CreateCluster", - Version: "2012-12-01", + [_A]: _CC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1145,8 +1145,8 @@ export const se_CreateClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateClusterParameterGroupMessage(input, context), - Action: "CreateClusterParameterGroup", - Version: "2012-12-01", + [_A]: _CCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1162,8 +1162,8 @@ export const se_CreateClusterSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateClusterSecurityGroupMessage(input, context), - Action: "CreateClusterSecurityGroup", - Version: "2012-12-01", + [_A]: _CCSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1179,8 +1179,8 @@ export const se_CreateClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateClusterSnapshotMessage(input, context), - Action: "CreateClusterSnapshot", - Version: "2012-12-01", + [_A]: _CCSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1196,8 +1196,8 @@ export const se_CreateClusterSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateClusterSubnetGroupMessage(input, context), - Action: "CreateClusterSubnetGroup", - Version: "2012-12-01", + [_A]: _CCSGr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1213,8 +1213,8 @@ export const se_CreateCustomDomainAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCustomDomainAssociationMessage(input, context), - Action: "CreateCustomDomainAssociation", - Version: "2012-12-01", + [_A]: _CCDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1230,8 +1230,8 @@ export const se_CreateEndpointAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateEndpointAccessMessage(input, context), - Action: "CreateEndpointAccess", - Version: "2012-12-01", + [_A]: _CEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1247,8 +1247,8 @@ export const se_CreateEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateEventSubscriptionMessage(input, context), - Action: "CreateEventSubscription", - Version: "2012-12-01", + [_A]: _CES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1264,8 +1264,8 @@ export const se_CreateHsmClientCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateHsmClientCertificateMessage(input, context), - Action: "CreateHsmClientCertificate", - Version: "2012-12-01", + [_A]: _CHCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1281,8 +1281,8 @@ export const se_CreateHsmConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateHsmConfigurationMessage(input, context), - Action: "CreateHsmConfiguration", - Version: "2012-12-01", + [_A]: _CHC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1298,8 +1298,8 @@ export const se_CreateRedshiftIdcApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateRedshiftIdcApplicationMessage(input, context), - Action: "CreateRedshiftIdcApplication", - Version: "2012-12-01", + [_A]: _CRIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1315,8 +1315,8 @@ export const se_CreateScheduledActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateScheduledActionMessage(input, context), - Action: "CreateScheduledAction", - Version: "2012-12-01", + [_A]: _CSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1332,8 +1332,8 @@ export const se_CreateSnapshotCopyGrantCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSnapshotCopyGrantMessage(input, context), - Action: "CreateSnapshotCopyGrant", - Version: "2012-12-01", + [_A]: _CSCG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1349,8 +1349,8 @@ export const se_CreateSnapshotScheduleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSnapshotScheduleMessage(input, context), - Action: "CreateSnapshotSchedule", - Version: "2012-12-01", + [_A]: _CSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1366,8 +1366,8 @@ export const se_CreateTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTagsMessage(input, context), - Action: "CreateTags", - Version: "2012-12-01", + [_A]: _CT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1383,8 +1383,8 @@ export const se_CreateUsageLimitCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateUsageLimitMessage(input, context), - Action: "CreateUsageLimit", - Version: "2012-12-01", + [_A]: _CUL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1400,8 +1400,8 @@ export const se_DeauthorizeDataShareCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeauthorizeDataShareMessage(input, context), - Action: "DeauthorizeDataShare", - Version: "2012-12-01", + [_A]: _DDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1417,8 +1417,8 @@ export const se_DeleteAuthenticationProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteAuthenticationProfileMessage(input, context), - Action: "DeleteAuthenticationProfile", - Version: "2012-12-01", + [_A]: _DAP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1434,8 +1434,8 @@ export const se_DeleteClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteClusterMessage(input, context), - Action: "DeleteCluster", - Version: "2012-12-01", + [_A]: _DC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1451,8 +1451,8 @@ export const se_DeleteClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteClusterParameterGroupMessage(input, context), - Action: "DeleteClusterParameterGroup", - Version: "2012-12-01", + [_A]: _DCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1468,8 +1468,8 @@ export const se_DeleteClusterSecurityGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteClusterSecurityGroupMessage(input, context), - Action: "DeleteClusterSecurityGroup", - Version: "2012-12-01", + [_A]: _DCSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1485,8 +1485,8 @@ export const se_DeleteClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteClusterSnapshotMessage(input, context), - Action: "DeleteClusterSnapshot", - Version: "2012-12-01", + [_A]: _DCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1502,8 +1502,8 @@ export const se_DeleteClusterSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteClusterSubnetGroupMessage(input, context), - Action: "DeleteClusterSubnetGroup", - Version: "2012-12-01", + [_A]: _DCSGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1519,8 +1519,8 @@ export const se_DeleteCustomDomainAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCustomDomainAssociationMessage(input, context), - Action: "DeleteCustomDomainAssociation", - Version: "2012-12-01", + [_A]: _DCDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1536,8 +1536,8 @@ export const se_DeleteEndpointAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEndpointAccessMessage(input, context), - Action: "DeleteEndpointAccess", - Version: "2012-12-01", + [_A]: _DEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1553,8 +1553,8 @@ export const se_DeleteEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEventSubscriptionMessage(input, context), - Action: "DeleteEventSubscription", - Version: "2012-12-01", + [_A]: _DES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1570,8 +1570,8 @@ export const se_DeleteHsmClientCertificateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteHsmClientCertificateMessage(input, context), - Action: "DeleteHsmClientCertificate", - Version: "2012-12-01", + [_A]: _DHCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1587,8 +1587,8 @@ export const se_DeleteHsmConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteHsmConfigurationMessage(input, context), - Action: "DeleteHsmConfiguration", - Version: "2012-12-01", + [_A]: _DHC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1604,8 +1604,8 @@ export const se_DeletePartnerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PartnerIntegrationInputMessage(input, context), - Action: "DeletePartner", - Version: "2012-12-01", + [_A]: _DP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1621,8 +1621,8 @@ export const se_DeleteRedshiftIdcApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteRedshiftIdcApplicationMessage(input, context), - Action: "DeleteRedshiftIdcApplication", - Version: "2012-12-01", + [_A]: _DRIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1638,8 +1638,8 @@ export const se_DeleteResourcePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteResourcePolicyMessage(input, context), - Action: "DeleteResourcePolicy", - Version: "2012-12-01", + [_A]: _DRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1655,8 +1655,8 @@ export const se_DeleteScheduledActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteScheduledActionMessage(input, context), - Action: "DeleteScheduledAction", - Version: "2012-12-01", + [_A]: _DSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1672,8 +1672,8 @@ export const se_DeleteSnapshotCopyGrantCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSnapshotCopyGrantMessage(input, context), - Action: "DeleteSnapshotCopyGrant", - Version: "2012-12-01", + [_A]: _DSCG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1689,8 +1689,8 @@ export const se_DeleteSnapshotScheduleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSnapshotScheduleMessage(input, context), - Action: "DeleteSnapshotSchedule", - Version: "2012-12-01", + [_A]: _DSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1706,8 +1706,8 @@ export const se_DeleteTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTagsMessage(input, context), - Action: "DeleteTags", - Version: "2012-12-01", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1723,8 +1723,8 @@ export const se_DeleteUsageLimitCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteUsageLimitMessage(input, context), - Action: "DeleteUsageLimit", - Version: "2012-12-01", + [_A]: _DUL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1740,8 +1740,8 @@ export const se_DescribeAccountAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAccountAttributesMessage(input, context), - Action: "DescribeAccountAttributes", - Version: "2012-12-01", + [_A]: _DAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1757,8 +1757,8 @@ export const se_DescribeAuthenticationProfilesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeAuthenticationProfilesMessage(input, context), - Action: "DescribeAuthenticationProfiles", - Version: "2012-12-01", + [_A]: _DAPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1774,8 +1774,8 @@ export const se_DescribeClusterDbRevisionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterDbRevisionsMessage(input, context), - Action: "DescribeClusterDbRevisions", - Version: "2012-12-01", + [_A]: _DCDR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1791,8 +1791,8 @@ export const se_DescribeClusterParameterGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterParameterGroupsMessage(input, context), - Action: "DescribeClusterParameterGroups", - Version: "2012-12-01", + [_A]: _DCPGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1808,8 +1808,8 @@ export const se_DescribeClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterParametersMessage(input, context), - Action: "DescribeClusterParameters", - Version: "2012-12-01", + [_A]: _DCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1825,8 +1825,8 @@ export const se_DescribeClustersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClustersMessage(input, context), - Action: "DescribeClusters", - Version: "2012-12-01", + [_A]: _DCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1842,8 +1842,8 @@ export const se_DescribeClusterSecurityGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterSecurityGroupsMessage(input, context), - Action: "DescribeClusterSecurityGroups", - Version: "2012-12-01", + [_A]: _DCSGes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1859,8 +1859,8 @@ export const se_DescribeClusterSnapshotsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterSnapshotsMessage(input, context), - Action: "DescribeClusterSnapshots", - Version: "2012-12-01", + [_A]: _DCSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1876,8 +1876,8 @@ export const se_DescribeClusterSubnetGroupsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterSubnetGroupsMessage(input, context), - Action: "DescribeClusterSubnetGroups", - Version: "2012-12-01", + [_A]: _DCSGesc, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1893,8 +1893,8 @@ export const se_DescribeClusterTracksCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterTracksMessage(input, context), - Action: "DescribeClusterTracks", - Version: "2012-12-01", + [_A]: _DCT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1910,8 +1910,8 @@ export const se_DescribeClusterVersionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeClusterVersionsMessage(input, context), - Action: "DescribeClusterVersions", - Version: "2012-12-01", + [_A]: _DCV, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1927,8 +1927,8 @@ export const se_DescribeCustomDomainAssociationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeCustomDomainAssociationsMessage(input, context), - Action: "DescribeCustomDomainAssociations", - Version: "2012-12-01", + [_A]: _DCDAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1944,8 +1944,8 @@ export const se_DescribeDataSharesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDataSharesMessage(input, context), - Action: "DescribeDataShares", - Version: "2012-12-01", + [_A]: _DDSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1961,8 +1961,8 @@ export const se_DescribeDataSharesForConsumerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDataSharesForConsumerMessage(input, context), - Action: "DescribeDataSharesForConsumer", - Version: "2012-12-01", + [_A]: _DDSFC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1978,8 +1978,8 @@ export const se_DescribeDataSharesForProducerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDataSharesForProducerMessage(input, context), - Action: "DescribeDataSharesForProducer", - Version: "2012-12-01", + [_A]: _DDSFP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1995,8 +1995,8 @@ export const se_DescribeDefaultClusterParametersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeDefaultClusterParametersMessage(input, context), - Action: "DescribeDefaultClusterParameters", - Version: "2012-12-01", + [_A]: _DDCP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2012,8 +2012,8 @@ export const se_DescribeEndpointAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEndpointAccessMessage(input, context), - Action: "DescribeEndpointAccess", - Version: "2012-12-01", + [_A]: _DEAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2029,8 +2029,8 @@ export const se_DescribeEndpointAuthorizationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEndpointAuthorizationMessage(input, context), - Action: "DescribeEndpointAuthorization", - Version: "2012-12-01", + [_A]: _DEAes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2046,8 +2046,8 @@ export const se_DescribeEventCategoriesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventCategoriesMessage(input, context), - Action: "DescribeEventCategories", - Version: "2012-12-01", + [_A]: _DEC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2063,8 +2063,8 @@ export const se_DescribeEventsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventsMessage(input, context), - Action: "DescribeEvents", - Version: "2012-12-01", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2080,8 +2080,8 @@ export const se_DescribeEventSubscriptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeEventSubscriptionsMessage(input, context), - Action: "DescribeEventSubscriptions", - Version: "2012-12-01", + [_A]: _DESe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2097,8 +2097,8 @@ export const se_DescribeHsmClientCertificatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeHsmClientCertificatesMessage(input, context), - Action: "DescribeHsmClientCertificates", - Version: "2012-12-01", + [_A]: _DHCCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2114,8 +2114,8 @@ export const se_DescribeHsmConfigurationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeHsmConfigurationsMessage(input, context), - Action: "DescribeHsmConfigurations", - Version: "2012-12-01", + [_A]: _DHCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2131,8 +2131,8 @@ export const se_DescribeInboundIntegrationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeInboundIntegrationsMessage(input, context), - Action: "DescribeInboundIntegrations", - Version: "2012-12-01", + [_A]: _DII, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2148,8 +2148,8 @@ export const se_DescribeLoggingStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeLoggingStatusMessage(input, context), - Action: "DescribeLoggingStatus", - Version: "2012-12-01", + [_A]: _DLS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2165,8 +2165,8 @@ export const se_DescribeNodeConfigurationOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeNodeConfigurationOptionsMessage(input, context), - Action: "DescribeNodeConfigurationOptions", - Version: "2012-12-01", + [_A]: _DNCO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2182,8 +2182,8 @@ export const se_DescribeOrderableClusterOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeOrderableClusterOptionsMessage(input, context), - Action: "DescribeOrderableClusterOptions", - Version: "2012-12-01", + [_A]: _DOCO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2199,8 +2199,8 @@ export const se_DescribePartnersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribePartnersInputMessage(input, context), - Action: "DescribePartners", - Version: "2012-12-01", + [_A]: _DPe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2216,8 +2216,8 @@ export const se_DescribeRedshiftIdcApplicationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeRedshiftIdcApplicationsMessage(input, context), - Action: "DescribeRedshiftIdcApplications", - Version: "2012-12-01", + [_A]: _DRIAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2233,8 +2233,8 @@ export const se_DescribeReservedNodeExchangeStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedNodeExchangeStatusInputMessage(input, context), - Action: "DescribeReservedNodeExchangeStatus", - Version: "2012-12-01", + [_A]: _DRNES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2250,8 +2250,8 @@ export const se_DescribeReservedNodeOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedNodeOfferingsMessage(input, context), - Action: "DescribeReservedNodeOfferings", - Version: "2012-12-01", + [_A]: _DRNO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2267,8 +2267,8 @@ export const se_DescribeReservedNodesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReservedNodesMessage(input, context), - Action: "DescribeReservedNodes", - Version: "2012-12-01", + [_A]: _DRN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2284,8 +2284,8 @@ export const se_DescribeResizeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeResizeMessage(input, context), - Action: "DescribeResize", - Version: "2012-12-01", + [_A]: _DR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2301,8 +2301,8 @@ export const se_DescribeScheduledActionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeScheduledActionsMessage(input, context), - Action: "DescribeScheduledActions", - Version: "2012-12-01", + [_A]: _DSAe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2318,8 +2318,8 @@ export const se_DescribeSnapshotCopyGrantsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSnapshotCopyGrantsMessage(input, context), - Action: "DescribeSnapshotCopyGrants", - Version: "2012-12-01", + [_A]: _DSCGe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2335,8 +2335,8 @@ export const se_DescribeSnapshotSchedulesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeSnapshotSchedulesMessage(input, context), - Action: "DescribeSnapshotSchedules", - Version: "2012-12-01", + [_A]: _DSSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2350,8 +2350,8 @@ export const se_DescribeStorageCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DescribeStorage", - Version: "2012-12-01", + [_A]: _DS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2367,8 +2367,8 @@ export const se_DescribeTableRestoreStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTableRestoreStatusMessage(input, context), - Action: "DescribeTableRestoreStatus", - Version: "2012-12-01", + [_A]: _DTRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2384,8 +2384,8 @@ export const se_DescribeTagsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeTagsMessage(input, context), - Action: "DescribeTags", - Version: "2012-12-01", + [_A]: _DTe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2401,8 +2401,8 @@ export const se_DescribeUsageLimitsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeUsageLimitsMessage(input, context), - Action: "DescribeUsageLimits", - Version: "2012-12-01", + [_A]: _DULe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2418,8 +2418,8 @@ export const se_DisableLoggingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableLoggingMessage(input, context), - Action: "DisableLogging", - Version: "2012-12-01", + [_A]: _DL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2435,8 +2435,8 @@ export const se_DisableSnapshotCopyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisableSnapshotCopyMessage(input, context), - Action: "DisableSnapshotCopy", - Version: "2012-12-01", + [_A]: _DSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2452,8 +2452,8 @@ export const se_DisassociateDataShareConsumerCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DisassociateDataShareConsumerMessage(input, context), - Action: "DisassociateDataShareConsumer", - Version: "2012-12-01", + [_A]: _DDSC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2469,8 +2469,8 @@ export const se_EnableLoggingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableLoggingMessage(input, context), - Action: "EnableLogging", - Version: "2012-12-01", + [_A]: _EL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2486,8 +2486,8 @@ export const se_EnableSnapshotCopyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EnableSnapshotCopyMessage(input, context), - Action: "EnableSnapshotCopy", - Version: "2012-12-01", + [_A]: _ESC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2503,8 +2503,8 @@ export const se_FailoverPrimaryComputeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_FailoverPrimaryComputeInputMessage(input, context), - Action: "FailoverPrimaryCompute", - Version: "2012-12-01", + [_A]: _FPC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2520,8 +2520,8 @@ export const se_GetClusterCredentialsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetClusterCredentialsMessage(input, context), - Action: "GetClusterCredentials", - Version: "2012-12-01", + [_A]: _GCC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2537,8 +2537,8 @@ export const se_GetClusterCredentialsWithIAMCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetClusterCredentialsWithIAMMessage(input, context), - Action: "GetClusterCredentialsWithIAM", - Version: "2012-12-01", + [_A]: _GCCWIAM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2554,8 +2554,8 @@ export const se_GetReservedNodeExchangeConfigurationOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetReservedNodeExchangeConfigurationOptionsInputMessage(input, context), - Action: "GetReservedNodeExchangeConfigurationOptions", - Version: "2012-12-01", + [_A]: _GRNECO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2571,8 +2571,8 @@ export const se_GetReservedNodeExchangeOfferingsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetReservedNodeExchangeOfferingsInputMessage(input, context), - Action: "GetReservedNodeExchangeOfferings", - Version: "2012-12-01", + [_A]: _GRNEO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2588,8 +2588,8 @@ export const se_GetResourcePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetResourcePolicyMessage(input, context), - Action: "GetResourcePolicy", - Version: "2012-12-01", + [_A]: _GRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2605,8 +2605,8 @@ export const se_ModifyAquaConfigurationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyAquaInputMessage(input, context), - Action: "ModifyAquaConfiguration", - Version: "2012-12-01", + [_A]: _MAC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2622,8 +2622,8 @@ export const se_ModifyAuthenticationProfileCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyAuthenticationProfileMessage(input, context), - Action: "ModifyAuthenticationProfile", - Version: "2012-12-01", + [_A]: _MAP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2639,8 +2639,8 @@ export const se_ModifyClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterMessage(input, context), - Action: "ModifyCluster", - Version: "2012-12-01", + [_A]: _MC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2656,8 +2656,8 @@ export const se_ModifyClusterDbRevisionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterDbRevisionMessage(input, context), - Action: "ModifyClusterDbRevision", - Version: "2012-12-01", + [_A]: _MCDR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2673,8 +2673,8 @@ export const se_ModifyClusterIamRolesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterIamRolesMessage(input, context), - Action: "ModifyClusterIamRoles", - Version: "2012-12-01", + [_A]: _MCIR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2690,8 +2690,8 @@ export const se_ModifyClusterMaintenanceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterMaintenanceMessage(input, context), - Action: "ModifyClusterMaintenance", - Version: "2012-12-01", + [_A]: _MCM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2707,8 +2707,8 @@ export const se_ModifyClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterParameterGroupMessage(input, context), - Action: "ModifyClusterParameterGroup", - Version: "2012-12-01", + [_A]: _MCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2724,8 +2724,8 @@ export const se_ModifyClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterSnapshotMessage(input, context), - Action: "ModifyClusterSnapshot", - Version: "2012-12-01", + [_A]: _MCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2741,8 +2741,8 @@ export const se_ModifyClusterSnapshotScheduleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterSnapshotScheduleMessage(input, context), - Action: "ModifyClusterSnapshotSchedule", - Version: "2012-12-01", + [_A]: _MCSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2758,8 +2758,8 @@ export const se_ModifyClusterSubnetGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyClusterSubnetGroupMessage(input, context), - Action: "ModifyClusterSubnetGroup", - Version: "2012-12-01", + [_A]: _MCSG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2775,8 +2775,8 @@ export const se_ModifyCustomDomainAssociationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyCustomDomainAssociationMessage(input, context), - Action: "ModifyCustomDomainAssociation", - Version: "2012-12-01", + [_A]: _MCDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2792,8 +2792,8 @@ export const se_ModifyEndpointAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyEndpointAccessMessage(input, context), - Action: "ModifyEndpointAccess", - Version: "2012-12-01", + [_A]: _MEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2809,8 +2809,8 @@ export const se_ModifyEventSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyEventSubscriptionMessage(input, context), - Action: "ModifyEventSubscription", - Version: "2012-12-01", + [_A]: _MES, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2826,8 +2826,8 @@ export const se_ModifyRedshiftIdcApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyRedshiftIdcApplicationMessage(input, context), - Action: "ModifyRedshiftIdcApplication", - Version: "2012-12-01", + [_A]: _MRIA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2843,8 +2843,8 @@ export const se_ModifyScheduledActionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyScheduledActionMessage(input, context), - Action: "ModifyScheduledAction", - Version: "2012-12-01", + [_A]: _MSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2860,8 +2860,8 @@ export const se_ModifySnapshotCopyRetentionPeriodCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifySnapshotCopyRetentionPeriodMessage(input, context), - Action: "ModifySnapshotCopyRetentionPeriod", - Version: "2012-12-01", + [_A]: _MSCRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2877,8 +2877,8 @@ export const se_ModifySnapshotScheduleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifySnapshotScheduleMessage(input, context), - Action: "ModifySnapshotSchedule", - Version: "2012-12-01", + [_A]: _MSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2894,8 +2894,8 @@ export const se_ModifyUsageLimitCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ModifyUsageLimitMessage(input, context), - Action: "ModifyUsageLimit", - Version: "2012-12-01", + [_A]: _MUL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2911,8 +2911,8 @@ export const se_PauseClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PauseClusterMessage(input, context), - Action: "PauseCluster", - Version: "2012-12-01", + [_A]: _PC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2928,8 +2928,8 @@ export const se_PurchaseReservedNodeOfferingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PurchaseReservedNodeOfferingMessage(input, context), - Action: "PurchaseReservedNodeOffering", - Version: "2012-12-01", + [_A]: _PRNO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2945,8 +2945,8 @@ export const se_PutResourcePolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutResourcePolicyMessage(input, context), - Action: "PutResourcePolicy", - Version: "2012-12-01", + [_A]: _PRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2962,8 +2962,8 @@ export const se_RebootClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RebootClusterMessage(input, context), - Action: "RebootCluster", - Version: "2012-12-01", + [_A]: _RC, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2979,8 +2979,8 @@ export const se_RejectDataShareCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RejectDataShareMessage(input, context), - Action: "RejectDataShare", - Version: "2012-12-01", + [_A]: _RDS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2996,8 +2996,8 @@ export const se_ResetClusterParameterGroupCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResetClusterParameterGroupMessage(input, context), - Action: "ResetClusterParameterGroup", - Version: "2012-12-01", + [_A]: _RCPG, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3013,8 +3013,8 @@ export const se_ResizeClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResizeClusterMessage(input, context), - Action: "ResizeCluster", - Version: "2012-12-01", + [_A]: _RCe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3030,8 +3030,8 @@ export const se_RestoreFromClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreFromClusterSnapshotMessage(input, context), - Action: "RestoreFromClusterSnapshot", - Version: "2012-12-01", + [_A]: _RFCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3047,8 +3047,8 @@ export const se_RestoreTableFromClusterSnapshotCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RestoreTableFromClusterSnapshotMessage(input, context), - Action: "RestoreTableFromClusterSnapshot", - Version: "2012-12-01", + [_A]: _RTFCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3064,8 +3064,8 @@ export const se_ResumeClusterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ResumeClusterMessage(input, context), - Action: "ResumeCluster", - Version: "2012-12-01", + [_A]: _RCes, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3081,8 +3081,8 @@ export const se_RevokeClusterSecurityGroupIngressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeClusterSecurityGroupIngressMessage(input, context), - Action: "RevokeClusterSecurityGroupIngress", - Version: "2012-12-01", + [_A]: _RCSGI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3098,8 +3098,8 @@ export const se_RevokeEndpointAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeEndpointAccessMessage(input, context), - Action: "RevokeEndpointAccess", - Version: "2012-12-01", + [_A]: _REA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3115,8 +3115,8 @@ export const se_RevokeSnapshotAccessCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RevokeSnapshotAccessMessage(input, context), - Action: "RevokeSnapshotAccess", - Version: "2012-12-01", + [_A]: _RSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3132,8 +3132,8 @@ export const se_RotateEncryptionKeyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RotateEncryptionKeyMessage(input, context), - Action: "RotateEncryptionKey", - Version: "2012-12-01", + [_A]: _REK, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3149,8 +3149,8 @@ export const se_UpdatePartnerStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdatePartnerStatusInputMessage(input, context), - Action: "UpdatePartnerStatus", - Version: "2012-12-01", + [_A]: _UPS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -12506,11 +12506,11 @@ const se_AcceptReservedNodeExchangeInputMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedNodeId != null) { - entries["ReservedNodeId"] = input.ReservedNodeId; + if (input[_RNI] != null) { + entries[_RNI] = input[_RNI]; } - if (input.TargetReservedNodeOfferingId != null) { - entries["TargetReservedNodeOfferingId"] = input.TargetReservedNodeOfferingId; + if (input[_TRNOI] != null) { + entries[_TRNOI] = input[_TRNOI]; } return entries; }; @@ -12523,20 +12523,20 @@ const se_AssociateDataShareConsumerMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DataShareArn != null) { - entries["DataShareArn"] = input.DataShareArn; + if (input[_DSAa] != null) { + entries[_DSAa] = input[_DSAa]; } - if (input.AssociateEntireAccount != null) { - entries["AssociateEntireAccount"] = input.AssociateEntireAccount; + if (input[_AEAs] != null) { + entries[_AEAs] = input[_AEAs]; } - if (input.ConsumerArn != null) { - entries["ConsumerArn"] = input.ConsumerArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.ConsumerRegion != null) { - entries["ConsumerRegion"] = input.ConsumerRegion; + if (input[_CRo] != null) { + entries[_CRo] = input[_CRo]; } - if (input.AllowWrites != null) { - entries["AllowWrites"] = input.AllowWrites; + if (input[_AW] != null) { + entries[_AW] = input[_AW]; } return entries; }; @@ -12565,17 +12565,17 @@ const se_AuthorizeClusterSecurityGroupIngressMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterSecurityGroupName != null) { - entries["ClusterSecurityGroupName"] = input.ClusterSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.CIDRIP != null) { - entries["CIDRIP"] = input.CIDRIP; + if (input[_CIDRIP] != null) { + entries[_CIDRIP] = input[_CIDRIP]; } - if (input.EC2SecurityGroupName != null) { - entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName; + if (input[_ECSGN] != null) { + entries[_ECSGN] = input[_ECSGN]; } - if (input.EC2SecurityGroupOwnerId != null) { - entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId; + if (input[_ECSGOI] != null) { + entries[_ECSGOI] = input[_ECSGOI]; } return entries; }; @@ -12585,14 +12585,14 @@ const se_AuthorizeClusterSecurityGroupIngressMessage = ( */ const se_AuthorizeDataShareMessage = (input: AuthorizeDataShareMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DataShareArn != null) { - entries["DataShareArn"] = input.DataShareArn; + if (input[_DSAa] != null) { + entries[_DSAa] = input[_DSAa]; } - if (input.ConsumerIdentifier != null) { - entries["ConsumerIdentifier"] = input.ConsumerIdentifier; + if (input[_CI] != null) { + entries[_CI] = input[_CI]; } - if (input.AllowWrites != null) { - entries["AllowWrites"] = input.AllowWrites; + if (input[_AW] != null) { + entries[_AW] = input[_AW]; } return entries; }; @@ -12618,12 +12618,12 @@ const se_AuthorizedAudienceList = (input: string[], context: __SerdeContext): an */ const se_AuthorizedTokenIssuer = (input: AuthorizedTokenIssuer, context: __SerdeContext): any => { const entries: any = {}; - if (input.TrustedTokenIssuerArn != null) { - entries["TrustedTokenIssuerArn"] = input.TrustedTokenIssuerArn; + if (input[_TTIA] != null) { + entries[_TTIA] = input[_TTIA]; } - if (input.AuthorizedAudiencesList != null) { - const memberEntries = se_AuthorizedAudienceList(input.AuthorizedAudiencesList, context); - if (input.AuthorizedAudiencesList?.length === 0) { + if (input[_AAL] != null) { + const memberEntries = se_AuthorizedAudienceList(input[_AAL], context); + if (input[_AAL]?.length === 0) { entries.AuthorizedAudiencesList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12658,15 +12658,15 @@ const se_AuthorizedTokenIssuerList = (input: AuthorizedTokenIssuer[], context: _ */ const se_AuthorizeEndpointAccessMessage = (input: AuthorizeEndpointAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.Account != null) { - entries["Account"] = input.Account; + if (input[_Ac] != null) { + entries[_Ac] = input[_Ac]; } - if (input.VpcIds != null) { - const memberEntries = se_VpcIdentifierList(input.VpcIds, context); - if (input.VpcIds?.length === 0) { + if (input[_VI] != null) { + const memberEntries = se_VpcIdentifierList(input[_VI], context); + if (input[_VI]?.length === 0) { entries.VpcIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12682,17 +12682,17 @@ const se_AuthorizeEndpointAccessMessage = (input: AuthorizeEndpointAccessMessage */ const se_AuthorizeSnapshotAccessMessage = (input: AuthorizeSnapshotAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SnapshotArn != null) { - entries["SnapshotArn"] = input.SnapshotArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.SnapshotClusterIdentifier != null) { - entries["SnapshotClusterIdentifier"] = input.SnapshotClusterIdentifier; + if (input[_SCI] != null) { + entries[_SCI] = input[_SCI]; } - if (input.AccountWithRestoreAccess != null) { - entries["AccountWithRestoreAccess"] = input.AccountWithRestoreAccess; + if (input[_AWRA] != null) { + entries[_AWRA] = input[_AWRA]; } return entries; }; @@ -12705,9 +12705,9 @@ const se_BatchDeleteClusterSnapshotsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Identifiers != null) { - const memberEntries = se_DeleteClusterSnapshotMessageList(input.Identifiers, context); - if (input.Identifiers?.length === 0) { + if (input[_I] != null) { + const memberEntries = se_DeleteClusterSnapshotMessageList(input[_I], context); + if (input[_I]?.length === 0) { entries.Identifiers = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12726,9 +12726,9 @@ const se_BatchModifyClusterSnapshotsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SnapshotIdentifierList != null) { - const memberEntries = se_SnapshotIdentifierList(input.SnapshotIdentifierList, context); - if (input.SnapshotIdentifierList?.length === 0) { + if (input[_SIL] != null) { + const memberEntries = se_SnapshotIdentifierList(input[_SIL], context); + if (input[_SIL]?.length === 0) { entries.SnapshotIdentifierList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12736,11 +12736,11 @@ const se_BatchModifyClusterSnapshotsMessage = ( entries[loc] = value; }); } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } return entries; }; @@ -12750,8 +12750,8 @@ const se_BatchModifyClusterSnapshotsMessage = ( */ const se_CancelResizeMessage = (input: CancelResizeMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -12777,17 +12777,17 @@ const se_ClusterSecurityGroupNameList = (input: string[], context: __SerdeContex */ const se_CopyClusterSnapshotMessage = (input: CopyClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceSnapshotIdentifier != null) { - entries["SourceSnapshotIdentifier"] = input.SourceSnapshotIdentifier; + if (input[_SSI] != null) { + entries[_SSI] = input[_SSI]; } - if (input.SourceSnapshotClusterIdentifier != null) { - entries["SourceSnapshotClusterIdentifier"] = input.SourceSnapshotClusterIdentifier; + if (input[_SSCI] != null) { + entries[_SSCI] = input[_SSCI]; } - if (input.TargetSnapshotIdentifier != null) { - entries["TargetSnapshotIdentifier"] = input.TargetSnapshotIdentifier; + if (input[_TSI] != null) { + entries[_TSI] = input[_TSI]; } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } return entries; }; @@ -12800,11 +12800,11 @@ const se_CreateAuthenticationProfileMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AuthenticationProfileName != null) { - entries["AuthenticationProfileName"] = input.AuthenticationProfileName; + if (input[_APN] != null) { + entries[_APN] = input[_APN]; } - if (input.AuthenticationProfileContent != null) { - entries["AuthenticationProfileContent"] = input.AuthenticationProfileContent; + if (input[_APC] != null) { + entries[_APC] = input[_APC]; } return entries; }; @@ -12814,27 +12814,27 @@ const se_CreateAuthenticationProfileMessage = ( */ const se_CreateClusterMessage = (input: CreateClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DBName != null) { - entries["DBName"] = input.DBName; + if (input[_DBN] != null) { + entries[_DBN] = input[_DBN]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ClusterType != null) { - entries["ClusterType"] = input.ClusterType; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.NodeType != null) { - entries["NodeType"] = input.NodeType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MasterUsername != null) { - entries["MasterUsername"] = input.MasterUsername; + if (input[_MU] != null) { + entries[_MU] = input[_MU]; } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.ClusterSecurityGroups != null) { - const memberEntries = se_ClusterSecurityGroupNameList(input.ClusterSecurityGroups, context); - if (input.ClusterSecurityGroups?.length === 0) { + if (input[_CSG] != null) { + const memberEntries = se_ClusterSecurityGroupNameList(input[_CSG], context); + if (input[_CSG]?.length === 0) { entries.ClusterSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12842,9 +12842,9 @@ const se_CreateClusterMessage = (input: CreateClusterMessage, context: __SerdeCo entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12852,54 +12852,54 @@ const se_CreateClusterMessage = (input: CreateClusterMessage, context: __SerdeCo entries[loc] = value; }); } - if (input.ClusterSubnetGroupName != null) { - entries["ClusterSubnetGroupName"] = input.ClusterSubnetGroupName; + if (input[_CSGNl] != null) { + entries[_CSGNl] = input[_CSGNl]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.ClusterParameterGroupName != null) { - entries["ClusterParameterGroupName"] = input.ClusterParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.AutomatedSnapshotRetentionPeriod != null) { - entries["AutomatedSnapshotRetentionPeriod"] = input.AutomatedSnapshotRetentionPeriod; + if (input[_ASRP] != null) { + entries[_ASRP] = input[_ASRP]; } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.ClusterVersion != null) { - entries["ClusterVersion"] = input.ClusterVersion; + if (input[_CV] != null) { + entries[_CV] = input[_CV]; } - if (input.AllowVersionUpgrade != null) { - entries["AllowVersionUpgrade"] = input.AllowVersionUpgrade; + if (input[_AVU] != null) { + entries[_AVU] = input[_AVU]; } - if (input.NumberOfNodes != null) { - entries["NumberOfNodes"] = input.NumberOfNodes; + if (input[_NON] != null) { + entries[_NON] = input[_NON]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.HsmClientCertificateIdentifier != null) { - entries["HsmClientCertificateIdentifier"] = input.HsmClientCertificateIdentifier; + if (input[_HCCI] != null) { + entries[_HCCI] = input[_HCCI]; } - if (input.HsmConfigurationIdentifier != null) { - entries["HsmConfigurationIdentifier"] = input.HsmConfigurationIdentifier; + if (input[_HCI] != null) { + entries[_HCI] = input[_HCI]; } - if (input.ElasticIp != null) { - entries["ElasticIp"] = input.ElasticIp; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12907,18 +12907,18 @@ const se_CreateClusterMessage = (input: CreateClusterMessage, context: __SerdeCo entries[loc] = value; }); } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.EnhancedVpcRouting != null) { - entries["EnhancedVpcRouting"] = input.EnhancedVpcRouting; + if (input[_EVR] != null) { + entries[_EVR] = input[_EVR]; } - if (input.AdditionalInfo != null) { - entries["AdditionalInfo"] = input.AdditionalInfo; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.IamRoles != null) { - const memberEntries = se_IamRoleArnList(input.IamRoles, context); - if (input.IamRoles?.length === 0) { + if (input[_IR] != null) { + const memberEntries = se_IamRoleArnList(input[_IR], context); + if (input[_IR]?.length === 0) { entries.IamRoles = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -12926,38 +12926,38 @@ const se_CreateClusterMessage = (input: CreateClusterMessage, context: __SerdeCo entries[loc] = value; }); } - if (input.MaintenanceTrackName != null) { - entries["MaintenanceTrackName"] = input.MaintenanceTrackName; + if (input[_MTN] != null) { + entries[_MTN] = input[_MTN]; } - if (input.SnapshotScheduleIdentifier != null) { - entries["SnapshotScheduleIdentifier"] = input.SnapshotScheduleIdentifier; + if (input[_SSIn] != null) { + entries[_SSIn] = input[_SSIn]; } - if (input.AvailabilityZoneRelocation != null) { - entries["AvailabilityZoneRelocation"] = input.AvailabilityZoneRelocation; + if (input[_AZR] != null) { + entries[_AZR] = input[_AZR]; } - if (input.AquaConfigurationStatus != null) { - entries["AquaConfigurationStatus"] = input.AquaConfigurationStatus; + if (input[_ACS] != null) { + entries[_ACS] = input[_ACS]; } - if (input.DefaultIamRoleArn != null) { - entries["DefaultIamRoleArn"] = input.DefaultIamRoleArn; + if (input[_DIRA] != null) { + entries[_DIRA] = input[_DIRA]; } - if (input.LoadSampleData != null) { - entries["LoadSampleData"] = input.LoadSampleData; + if (input[_LSD] != null) { + entries[_LSD] = input[_LSD]; } - if (input.ManageMasterPassword != null) { - entries["ManageMasterPassword"] = input.ManageMasterPassword; + if (input[_MMP] != null) { + entries[_MMP] = input[_MMP]; } - if (input.MasterPasswordSecretKmsKeyId != null) { - entries["MasterPasswordSecretKmsKeyId"] = input.MasterPasswordSecretKmsKeyId; + if (input[_MPSKKI] != null) { + entries[_MPSKKI] = input[_MPSKKI]; } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } - if (input.RedshiftIdcApplicationArn != null) { - entries["RedshiftIdcApplicationArn"] = input.RedshiftIdcApplicationArn; + if (input[_RIAA] != null) { + entries[_RIAA] = input[_RIAA]; } return entries; }; @@ -12970,18 +12970,18 @@ const se_CreateClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ParameterGroupName != null) { - entries["ParameterGroupName"] = input.ParameterGroupName; + if (input[_PGN] != null) { + entries[_PGN] = input[_PGN]; } - if (input.ParameterGroupFamily != null) { - entries["ParameterGroupFamily"] = input.ParameterGroupFamily; + if (input[_PGF] != null) { + entries[_PGF] = input[_PGF]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13000,15 +13000,15 @@ const se_CreateClusterSecurityGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterSecurityGroupName != null) { - entries["ClusterSecurityGroupName"] = input.ClusterSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13024,18 +13024,18 @@ const se_CreateClusterSecurityGroupMessage = ( */ const se_CreateClusterSnapshotMessage = (input: CreateClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13051,15 +13051,15 @@ const se_CreateClusterSnapshotMessage = (input: CreateClusterSnapshotMessage, co */ const se_CreateClusterSubnetGroupMessage = (input: CreateClusterSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterSubnetGroupName != null) { - entries["ClusterSubnetGroupName"] = input.ClusterSubnetGroupName; + if (input[_CSGNl] != null) { + entries[_CSGNl] = input[_CSGNl]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13067,9 +13067,9 @@ const se_CreateClusterSubnetGroupMessage = (input: CreateClusterSubnetGroupMessa entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13088,14 +13088,14 @@ const se_CreateCustomDomainAssociationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CustomDomainName != null) { - entries["CustomDomainName"] = input.CustomDomainName; + if (input[_CDN] != null) { + entries[_CDN] = input[_CDN]; } - if (input.CustomDomainCertificateArn != null) { - entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn; + if (input[_CDCA] != null) { + entries[_CDCA] = input[_CDCA]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -13105,21 +13105,21 @@ const se_CreateCustomDomainAssociationMessage = ( */ const se_CreateEndpointAccessMessage = (input: CreateEndpointAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ResourceOwner != null) { - entries["ResourceOwner"] = input.ResourceOwner; + if (input[_RO] != null) { + entries[_RO] = input[_RO]; } - if (input.EndpointName != null) { - entries["EndpointName"] = input.EndpointName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.SubnetGroupName != null) { - entries["SubnetGroupName"] = input.SubnetGroupName; + if (input[_SGN] != null) { + entries[_SGN] = input[_SGN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13135,18 +13135,18 @@ const se_CreateEndpointAccessMessage = (input: CreateEndpointAccessMessage, cont */ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.SourceIds != null) { - const memberEntries = se_SourceIdsList(input.SourceIds, context); - if (input.SourceIds?.length === 0) { + if (input[_SIo] != null) { + const memberEntries = se_SourceIdsList(input[_SIo], context); + if (input[_SIo]?.length === 0) { entries.SourceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13154,9 +13154,9 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13164,15 +13164,15 @@ const se_CreateEventSubscriptionMessage = (input: CreateEventSubscriptionMessage entries[loc] = value; }); } - if (input.Severity != null) { - entries["Severity"] = input.Severity; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13191,12 +13191,12 @@ const se_CreateHsmClientCertificateMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.HsmClientCertificateIdentifier != null) { - entries["HsmClientCertificateIdentifier"] = input.HsmClientCertificateIdentifier; + if (input[_HCCI] != null) { + entries[_HCCI] = input[_HCCI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13212,27 +13212,27 @@ const se_CreateHsmClientCertificateMessage = ( */ const se_CreateHsmConfigurationMessage = (input: CreateHsmConfigurationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.HsmConfigurationIdentifier != null) { - entries["HsmConfigurationIdentifier"] = input.HsmConfigurationIdentifier; + if (input[_HCI] != null) { + entries[_HCI] = input[_HCI]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.HsmIpAddress != null) { - entries["HsmIpAddress"] = input.HsmIpAddress; + if (input[_HIA] != null) { + entries[_HIA] = input[_HIA]; } - if (input.HsmPartitionName != null) { - entries["HsmPartitionName"] = input.HsmPartitionName; + if (input[_HPN] != null) { + entries[_HPN] = input[_HPN]; } - if (input.HsmPartitionPassword != null) { - entries["HsmPartitionPassword"] = input.HsmPartitionPassword; + if (input[_HPP] != null) { + entries[_HPP] = input[_HPP]; } - if (input.HsmServerPublicCertificate != null) { - entries["HsmServerPublicCertificate"] = input.HsmServerPublicCertificate; + if (input[_HSPC] != null) { + entries[_HSPC] = input[_HSPC]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13251,24 +13251,24 @@ const se_CreateRedshiftIdcApplicationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.IdcInstanceArn != null) { - entries["IdcInstanceArn"] = input.IdcInstanceArn; + if (input[_IIA] != null) { + entries[_IIA] = input[_IIA]; } - if (input.RedshiftIdcApplicationName != null) { - entries["RedshiftIdcApplicationName"] = input.RedshiftIdcApplicationName; + if (input[_RIAN] != null) { + entries[_RIAN] = input[_RIAN]; } - if (input.IdentityNamespace != null) { - entries["IdentityNamespace"] = input.IdentityNamespace; + if (input[_IN] != null) { + entries[_IN] = input[_IN]; } - if (input.IdcDisplayName != null) { - entries["IdcDisplayName"] = input.IdcDisplayName; + if (input[_IDN] != null) { + entries[_IDN] = input[_IDN]; } - if (input.IamRoleArn != null) { - entries["IamRoleArn"] = input.IamRoleArn; + if (input[_IRA] != null) { + entries[_IRA] = input[_IRA]; } - if (input.AuthorizedTokenIssuerList != null) { - const memberEntries = se_AuthorizedTokenIssuerList(input.AuthorizedTokenIssuerList, context); - if (input.AuthorizedTokenIssuerList?.length === 0) { + if (input[_ATIL] != null) { + const memberEntries = se_AuthorizedTokenIssuerList(input[_ATIL], context); + if (input[_ATIL]?.length === 0) { entries.AuthorizedTokenIssuerList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13276,9 +13276,9 @@ const se_CreateRedshiftIdcApplicationMessage = ( entries[loc] = value; }); } - if (input.ServiceIntegrations != null) { - const memberEntries = se_ServiceIntegrationList(input.ServiceIntegrations, context); - if (input.ServiceIntegrations?.length === 0) { + if (input[_SIe] != null) { + const memberEntries = se_ServiceIntegrationList(input[_SIe], context); + if (input[_SIe]?.length === 0) { entries.ServiceIntegrations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13294,33 +13294,33 @@ const se_CreateRedshiftIdcApplicationMessage = ( */ const se_CreateScheduledActionMessage = (input: CreateScheduledActionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ScheduledActionName != null) { - entries["ScheduledActionName"] = input.ScheduledActionName; + if (input[_SAN] != null) { + entries[_SAN] = input[_SAN]; } - if (input.TargetAction != null) { - const memberEntries = se_ScheduledActionType(input.TargetAction, context); + if (input[_TA] != null) { + const memberEntries = se_ScheduledActionType(input[_TA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TargetAction.${key}`; entries[loc] = value; }); } - if (input.Schedule != null) { - entries["Schedule"] = input.Schedule; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } - if (input.IamRole != null) { - entries["IamRole"] = input.IamRole; + if (input[_IRa] != null) { + entries[_IRa] = input[_IRa]; } - if (input.ScheduledActionDescription != null) { - entries["ScheduledActionDescription"] = input.ScheduledActionDescription; + if (input[_SAD] != null) { + entries[_SAD] = input[_SAD]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Enable != null) { - entries["Enable"] = input.Enable; + if (input[_Ena] != null) { + entries[_Ena] = input[_Ena]; } return entries; }; @@ -13330,15 +13330,15 @@ const se_CreateScheduledActionMessage = (input: CreateScheduledActionMessage, co */ const se_CreateSnapshotCopyGrantMessage = (input: CreateSnapshotCopyGrantMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotCopyGrantName != null) { - entries["SnapshotCopyGrantName"] = input.SnapshotCopyGrantName; + if (input[_SCGN] != null) { + entries[_SCGN] = input[_SCGN]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13354,9 +13354,9 @@ const se_CreateSnapshotCopyGrantMessage = (input: CreateSnapshotCopyGrantMessage */ const se_CreateSnapshotScheduleMessage = (input: CreateSnapshotScheduleMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ScheduleDefinitions != null) { - const memberEntries = se_ScheduleDefinitionList(input.ScheduleDefinitions, context); - if (input.ScheduleDefinitions?.length === 0) { + if (input[_SD] != null) { + const memberEntries = se_ScheduleDefinitionList(input[_SD], context); + if (input[_SD]?.length === 0) { entries.ScheduleDefinitions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13364,15 +13364,15 @@ const se_CreateSnapshotScheduleMessage = (input: CreateSnapshotScheduleMessage, entries[loc] = value; }); } - if (input.ScheduleIdentifier != null) { - entries["ScheduleIdentifier"] = input.ScheduleIdentifier; + if (input[_SIc] != null) { + entries[_SIc] = input[_SIc]; } - if (input.ScheduleDescription != null) { - entries["ScheduleDescription"] = input.ScheduleDescription; + if (input[_SDc] != null) { + entries[_SDc] = input[_SDc]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13380,11 +13380,11 @@ const se_CreateSnapshotScheduleMessage = (input: CreateSnapshotScheduleMessage, entries[loc] = value; }); } - if (input.DryRun != null) { - entries["DryRun"] = input.DryRun; + if (input[_DRr] != null) { + entries[_DRr] = input[_DRr]; } - if (input.NextInvocations != null) { - entries["NextInvocations"] = input.NextInvocations; + if (input[_NI] != null) { + entries[_NI] = input[_NI]; } return entries; }; @@ -13394,12 +13394,12 @@ const se_CreateSnapshotScheduleMessage = (input: CreateSnapshotScheduleMessage, */ const se_CreateTagsMessage = (input: CreateTagsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13415,27 +13415,27 @@ const se_CreateTagsMessage = (input: CreateTagsMessage, context: __SerdeContext) */ const se_CreateUsageLimitMessage = (input: CreateUsageLimitMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.FeatureType != null) { - entries["FeatureType"] = input.FeatureType; + if (input[_FT] != null) { + entries[_FT] = input[_FT]; } - if (input.LimitType != null) { - entries["LimitType"] = input.LimitType; + if (input[_LT] != null) { + entries[_LT] = input[_LT]; } - if (input.Amount != null) { - entries["Amount"] = input.Amount; + if (input[_Am] != null) { + entries[_Am] = input[_Am]; } - if (input.Period != null) { - entries["Period"] = input.Period; + if (input[_Pe] != null) { + entries[_Pe] = input[_Pe]; } - if (input.BreachAction != null) { - entries["BreachAction"] = input.BreachAction; + if (input[_BA] != null) { + entries[_BA] = input[_BA]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_TagList(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13467,11 +13467,11 @@ const se_DbGroupList = (input: string[], context: __SerdeContext): any => { */ const se_DeauthorizeDataShareMessage = (input: DeauthorizeDataShareMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DataShareArn != null) { - entries["DataShareArn"] = input.DataShareArn; + if (input[_DSAa] != null) { + entries[_DSAa] = input[_DSAa]; } - if (input.ConsumerIdentifier != null) { - entries["ConsumerIdentifier"] = input.ConsumerIdentifier; + if (input[_CI] != null) { + entries[_CI] = input[_CI]; } return entries; }; @@ -13484,8 +13484,8 @@ const se_DeleteAuthenticationProfileMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AuthenticationProfileName != null) { - entries["AuthenticationProfileName"] = input.AuthenticationProfileName; + if (input[_APN] != null) { + entries[_APN] = input[_APN]; } return entries; }; @@ -13495,17 +13495,17 @@ const se_DeleteAuthenticationProfileMessage = ( */ const se_DeleteClusterMessage = (input: DeleteClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.SkipFinalClusterSnapshot != null) { - entries["SkipFinalClusterSnapshot"] = input.SkipFinalClusterSnapshot; + if (input[_SFCS] != null) { + entries[_SFCS] = input[_SFCS]; } - if (input.FinalClusterSnapshotIdentifier != null) { - entries["FinalClusterSnapshotIdentifier"] = input.FinalClusterSnapshotIdentifier; + if (input[_FCSI] != null) { + entries[_FCSI] = input[_FCSI]; } - if (input.FinalClusterSnapshotRetentionPeriod != null) { - entries["FinalClusterSnapshotRetentionPeriod"] = input.FinalClusterSnapshotRetentionPeriod; + if (input[_FCSRP] != null) { + entries[_FCSRP] = input[_FCSRP]; } return entries; }; @@ -13518,8 +13518,8 @@ const se_DeleteClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ParameterGroupName != null) { - entries["ParameterGroupName"] = input.ParameterGroupName; + if (input[_PGN] != null) { + entries[_PGN] = input[_PGN]; } return entries; }; @@ -13532,8 +13532,8 @@ const se_DeleteClusterSecurityGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterSecurityGroupName != null) { - entries["ClusterSecurityGroupName"] = input.ClusterSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } return entries; }; @@ -13543,11 +13543,11 @@ const se_DeleteClusterSecurityGroupMessage = ( */ const se_DeleteClusterSnapshotMessage = (input: DeleteClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SnapshotClusterIdentifier != null) { - entries["SnapshotClusterIdentifier"] = input.SnapshotClusterIdentifier; + if (input[_SCI] != null) { + entries[_SCI] = input[_SCI]; } return entries; }; @@ -13576,8 +13576,8 @@ const se_DeleteClusterSnapshotMessageList = (input: DeleteClusterSnapshotMessage */ const se_DeleteClusterSubnetGroupMessage = (input: DeleteClusterSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterSubnetGroupName != null) { - entries["ClusterSubnetGroupName"] = input.ClusterSubnetGroupName; + if (input[_CSGNl] != null) { + entries[_CSGNl] = input[_CSGNl]; } return entries; }; @@ -13590,11 +13590,11 @@ const se_DeleteCustomDomainAssociationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.CustomDomainName != null) { - entries["CustomDomainName"] = input.CustomDomainName; + if (input[_CDN] != null) { + entries[_CDN] = input[_CDN]; } return entries; }; @@ -13604,8 +13604,8 @@ const se_DeleteCustomDomainAssociationMessage = ( */ const se_DeleteEndpointAccessMessage = (input: DeleteEndpointAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EndpointName != null) { - entries["EndpointName"] = input.EndpointName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } return entries; }; @@ -13615,8 +13615,8 @@ const se_DeleteEndpointAccessMessage = (input: DeleteEndpointAccessMessage, cont */ const se_DeleteEventSubscriptionMessage = (input: DeleteEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } return entries; }; @@ -13629,8 +13629,8 @@ const se_DeleteHsmClientCertificateMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.HsmClientCertificateIdentifier != null) { - entries["HsmClientCertificateIdentifier"] = input.HsmClientCertificateIdentifier; + if (input[_HCCI] != null) { + entries[_HCCI] = input[_HCCI]; } return entries; }; @@ -13640,8 +13640,8 @@ const se_DeleteHsmClientCertificateMessage = ( */ const se_DeleteHsmConfigurationMessage = (input: DeleteHsmConfigurationMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.HsmConfigurationIdentifier != null) { - entries["HsmConfigurationIdentifier"] = input.HsmConfigurationIdentifier; + if (input[_HCI] != null) { + entries[_HCI] = input[_HCI]; } return entries; }; @@ -13654,8 +13654,8 @@ const se_DeleteRedshiftIdcApplicationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.RedshiftIdcApplicationArn != null) { - entries["RedshiftIdcApplicationArn"] = input.RedshiftIdcApplicationArn; + if (input[_RIAA] != null) { + entries[_RIAA] = input[_RIAA]; } return entries; }; @@ -13665,8 +13665,8 @@ const se_DeleteRedshiftIdcApplicationMessage = ( */ const se_DeleteResourcePolicyMessage = (input: DeleteResourcePolicyMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } return entries; }; @@ -13676,8 +13676,8 @@ const se_DeleteResourcePolicyMessage = (input: DeleteResourcePolicyMessage, cont */ const se_DeleteScheduledActionMessage = (input: DeleteScheduledActionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ScheduledActionName != null) { - entries["ScheduledActionName"] = input.ScheduledActionName; + if (input[_SAN] != null) { + entries[_SAN] = input[_SAN]; } return entries; }; @@ -13687,8 +13687,8 @@ const se_DeleteScheduledActionMessage = (input: DeleteScheduledActionMessage, co */ const se_DeleteSnapshotCopyGrantMessage = (input: DeleteSnapshotCopyGrantMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotCopyGrantName != null) { - entries["SnapshotCopyGrantName"] = input.SnapshotCopyGrantName; + if (input[_SCGN] != null) { + entries[_SCGN] = input[_SCGN]; } return entries; }; @@ -13698,8 +13698,8 @@ const se_DeleteSnapshotCopyGrantMessage = (input: DeleteSnapshotCopyGrantMessage */ const se_DeleteSnapshotScheduleMessage = (input: DeleteSnapshotScheduleMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ScheduleIdentifier != null) { - entries["ScheduleIdentifier"] = input.ScheduleIdentifier; + if (input[_SIc] != null) { + entries[_SIc] = input[_SIc]; } return entries; }; @@ -13709,12 +13709,12 @@ const se_DeleteSnapshotScheduleMessage = (input: DeleteSnapshotScheduleMessage, */ const se_DeleteTagsMessage = (input: DeleteTagsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13730,8 +13730,8 @@ const se_DeleteTagsMessage = (input: DeleteTagsMessage, context: __SerdeContext) */ const se_DeleteUsageLimitMessage = (input: DeleteUsageLimitMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UsageLimitId != null) { - entries["UsageLimitId"] = input.UsageLimitId; + if (input[_ULI] != null) { + entries[_ULI] = input[_ULI]; } return entries; }; @@ -13741,9 +13741,9 @@ const se_DeleteUsageLimitMessage = (input: DeleteUsageLimitMessage, context: __S */ const se_DescribeAccountAttributesMessage = (input: DescribeAccountAttributesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AttributeNames != null) { - const memberEntries = se_AttributeNameList(input.AttributeNames, context); - if (input.AttributeNames?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_AttributeNameList(input[_AN], context); + if (input[_AN]?.length === 0) { entries.AttributeNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13762,8 +13762,8 @@ const se_DescribeAuthenticationProfilesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AuthenticationProfileName != null) { - entries["AuthenticationProfileName"] = input.AuthenticationProfileName; + if (input[_APN] != null) { + entries[_APN] = input[_APN]; } return entries; }; @@ -13776,14 +13776,14 @@ const se_DescribeClusterDbRevisionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -13796,18 +13796,18 @@ const se_DescribeClusterParameterGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ParameterGroupName != null) { - entries["ParameterGroupName"] = input.ParameterGroupName; + if (input[_PGN] != null) { + entries[_PGN] = input[_PGN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13815,9 +13815,9 @@ const se_DescribeClusterParameterGroupsMessage = ( entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13833,17 +13833,17 @@ const se_DescribeClusterParameterGroupsMessage = ( */ const se_DescribeClusterParametersMessage = (input: DescribeClusterParametersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ParameterGroupName != null) { - entries["ParameterGroupName"] = input.ParameterGroupName; + if (input[_PGN] != null) { + entries[_PGN] = input[_PGN]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_So] != null) { + entries[_So] = input[_So]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -13856,18 +13856,18 @@ const se_DescribeClusterSecurityGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterSecurityGroupName != null) { - entries["ClusterSecurityGroupName"] = input.ClusterSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13875,9 +13875,9 @@ const se_DescribeClusterSecurityGroupsMessage = ( entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13893,18 +13893,18 @@ const se_DescribeClusterSecurityGroupsMessage = ( */ const se_DescribeClustersMessage = (input: DescribeClustersMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13912,9 +13912,9 @@ const se_DescribeClustersMessage = (input: DescribeClustersMessage, context: __S entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13930,36 +13930,36 @@ const se_DescribeClustersMessage = (input: DescribeClustersMessage, context: __S */ const se_DescribeClusterSnapshotsMessage = (input: DescribeClusterSnapshotsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SnapshotArn != null) { - entries["SnapshotArn"] = input.SnapshotArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.SnapshotType != null) { - entries["SnapshotType"] = input.SnapshotType; + if (input[_STn] != null) { + entries[_STn] = input[_STn]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.OwnerAccount != null) { - entries["OwnerAccount"] = input.OwnerAccount; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13967,9 +13967,9 @@ const se_DescribeClusterSnapshotsMessage = (input: DescribeClusterSnapshotsMessa entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -13977,12 +13977,12 @@ const se_DescribeClusterSnapshotsMessage = (input: DescribeClusterSnapshotsMessa entries[loc] = value; }); } - if (input.ClusterExists != null) { - entries["ClusterExists"] = input.ClusterExists; + if (input[_CE] != null) { + entries[_CE] = input[_CE]; } - if (input.SortingEntities != null) { - const memberEntries = se_SnapshotSortingEntityList(input.SortingEntities, context); - if (input.SortingEntities?.length === 0) { + if (input[_SE] != null) { + const memberEntries = se_SnapshotSortingEntityList(input[_SE], context); + if (input[_SE]?.length === 0) { entries.SortingEntities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14001,18 +14001,18 @@ const se_DescribeClusterSubnetGroupsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterSubnetGroupName != null) { - entries["ClusterSubnetGroupName"] = input.ClusterSubnetGroupName; + if (input[_CSGNl] != null) { + entries[_CSGNl] = input[_CSGNl]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14020,9 +14020,9 @@ const se_DescribeClusterSubnetGroupsMessage = ( entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14038,14 +14038,14 @@ const se_DescribeClusterSubnetGroupsMessage = ( */ const se_DescribeClusterTracksMessage = (input: DescribeClusterTracksMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.MaintenanceTrackName != null) { - entries["MaintenanceTrackName"] = input.MaintenanceTrackName; + if (input[_MTN] != null) { + entries[_MTN] = input[_MTN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14055,17 +14055,17 @@ const se_DescribeClusterTracksMessage = (input: DescribeClusterTracksMessage, co */ const se_DescribeClusterVersionsMessage = (input: DescribeClusterVersionsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterVersion != null) { - entries["ClusterVersion"] = input.ClusterVersion; + if (input[_CV] != null) { + entries[_CV] = input[_CV]; } - if (input.ClusterParameterGroupFamily != null) { - entries["ClusterParameterGroupFamily"] = input.ClusterParameterGroupFamily; + if (input[_CPGF] != null) { + entries[_CPGF] = input[_CPGF]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14078,17 +14078,17 @@ const se_DescribeCustomDomainAssociationsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CustomDomainName != null) { - entries["CustomDomainName"] = input.CustomDomainName; + if (input[_CDN] != null) { + entries[_CDN] = input[_CDN]; } - if (input.CustomDomainCertificateArn != null) { - entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn; + if (input[_CDCA] != null) { + entries[_CDCA] = input[_CDCA]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14101,17 +14101,17 @@ const se_DescribeDataSharesForConsumerMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConsumerArn != null) { - entries["ConsumerArn"] = input.ConsumerArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14124,17 +14124,17 @@ const se_DescribeDataSharesForProducerMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ProducerArn != null) { - entries["ProducerArn"] = input.ProducerArn; + if (input[_PAr] != null) { + entries[_PAr] = input[_PAr]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14144,14 +14144,14 @@ const se_DescribeDataSharesForProducerMessage = ( */ const se_DescribeDataSharesMessage = (input: DescribeDataSharesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DataShareArn != null) { - entries["DataShareArn"] = input.DataShareArn; + if (input[_DSAa] != null) { + entries[_DSAa] = input[_DSAa]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14164,14 +14164,14 @@ const se_DescribeDefaultClusterParametersMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ParameterGroupFamily != null) { - entries["ParameterGroupFamily"] = input.ParameterGroupFamily; + if (input[_PGF] != null) { + entries[_PGF] = input[_PGF]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14181,23 +14181,23 @@ const se_DescribeDefaultClusterParametersMessage = ( */ const se_DescribeEndpointAccessMessage = (input: DescribeEndpointAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ResourceOwner != null) { - entries["ResourceOwner"] = input.ResourceOwner; + if (input[_RO] != null) { + entries[_RO] = input[_RO]; } - if (input.EndpointName != null) { - entries["EndpointName"] = input.EndpointName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.VpcId != null) { - entries["VpcId"] = input.VpcId; + if (input[_VIp] != null) { + entries[_VIp] = input[_VIp]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14210,20 +14210,20 @@ const se_DescribeEndpointAuthorizationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.Account != null) { - entries["Account"] = input.Account; + if (input[_Ac] != null) { + entries[_Ac] = input[_Ac]; } - if (input.Grantee != null) { - entries["Grantee"] = input.Grantee; + if (input[_G] != null) { + entries[_G] = input[_G]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14233,8 +14233,8 @@ const se_DescribeEndpointAuthorizationMessage = ( */ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -14244,26 +14244,26 @@ const se_DescribeEventCategoriesMessage = (input: DescribeEventCategoriesMessage */ const se_DescribeEventsMessage = (input: DescribeEventsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SourceIdentifier != null) { - entries["SourceIdentifier"] = input.SourceIdentifier; + if (input[_SIou] != null) { + entries[_SIou] = input[_SIou]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Duration != null) { - entries["Duration"] = input.Duration; + if (input[_Du] != null) { + entries[_Du] = input[_Du]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14276,18 +14276,18 @@ const se_DescribeEventSubscriptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14295,9 +14295,9 @@ const se_DescribeEventSubscriptionsMessage = ( entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14316,18 +14316,18 @@ const se_DescribeHsmClientCertificatesMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.HsmClientCertificateIdentifier != null) { - entries["HsmClientCertificateIdentifier"] = input.HsmClientCertificateIdentifier; + if (input[_HCCI] != null) { + entries[_HCCI] = input[_HCCI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14335,9 +14335,9 @@ const se_DescribeHsmClientCertificatesMessage = ( entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14353,18 +14353,18 @@ const se_DescribeHsmClientCertificatesMessage = ( */ const se_DescribeHsmConfigurationsMessage = (input: DescribeHsmConfigurationsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.HsmConfigurationIdentifier != null) { - entries["HsmConfigurationIdentifier"] = input.HsmConfigurationIdentifier; + if (input[_HCI] != null) { + entries[_HCI] = input[_HCI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14372,9 +14372,9 @@ const se_DescribeHsmConfigurationsMessage = (input: DescribeHsmConfigurationsMes entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14393,17 +14393,17 @@ const se_DescribeInboundIntegrationsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.IntegrationArn != null) { - entries["IntegrationArn"] = input.IntegrationArn; + if (input[_IA] != null) { + entries[_IA] = input[_IA]; } - if (input.TargetArn != null) { - entries["TargetArn"] = input.TargetArn; + if (input[_TAa] != null) { + entries[_TAa] = input[_TAa]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14413,8 +14413,8 @@ const se_DescribeInboundIntegrationsMessage = ( */ const se_DescribeLoggingStatusMessage = (input: DescribeLoggingStatusMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -14427,24 +14427,24 @@ const se_DescribeNodeConfigurationOptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ActionType != null) { - entries["ActionType"] = input.ActionType; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SnapshotArn != null) { - entries["SnapshotArn"] = input.SnapshotArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.OwnerAccount != null) { - entries["OwnerAccount"] = input.OwnerAccount; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.Filters != null) { - const memberEntries = se_NodeConfigurationOptionsFilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_NodeConfigurationOptionsFilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filter = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14452,11 +14452,11 @@ const se_DescribeNodeConfigurationOptionsMessage = ( entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -14469,17 +14469,17 @@ const se_DescribeOrderableClusterOptionsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterVersion != null) { - entries["ClusterVersion"] = input.ClusterVersion; + if (input[_CV] != null) { + entries[_CV] = input[_CV]; } - if (input.NodeType != null) { - entries["NodeType"] = input.NodeType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14489,17 +14489,17 @@ const se_DescribeOrderableClusterOptionsMessage = ( */ const se_DescribePartnersInputMessage = (input: DescribePartnersInputMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AccountId != null) { - entries["AccountId"] = input.AccountId; + if (input[_AIc] != null) { + entries[_AIc] = input[_AIc]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.PartnerName != null) { - entries["PartnerName"] = input.PartnerName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -14512,14 +14512,14 @@ const se_DescribeRedshiftIdcApplicationsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.RedshiftIdcApplicationArn != null) { - entries["RedshiftIdcApplicationArn"] = input.RedshiftIdcApplicationArn; + if (input[_RIAA] != null) { + entries[_RIAA] = input[_RIAA]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14532,17 +14532,17 @@ const se_DescribeReservedNodeExchangeStatusInputMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedNodeId != null) { - entries["ReservedNodeId"] = input.ReservedNodeId; + if (input[_RNI] != null) { + entries[_RNI] = input[_RNI]; } - if (input.ReservedNodeExchangeRequestId != null) { - entries["ReservedNodeExchangeRequestId"] = input.ReservedNodeExchangeRequestId; + if (input[_RNERI] != null) { + entries[_RNERI] = input[_RNERI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14555,14 +14555,14 @@ const se_DescribeReservedNodeOfferingsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedNodeOfferingId != null) { - entries["ReservedNodeOfferingId"] = input.ReservedNodeOfferingId; + if (input[_RNOI] != null) { + entries[_RNOI] = input[_RNOI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14572,14 +14572,14 @@ const se_DescribeReservedNodeOfferingsMessage = ( */ const se_DescribeReservedNodesMessage = (input: DescribeReservedNodesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReservedNodeId != null) { - entries["ReservedNodeId"] = input.ReservedNodeId; + if (input[_RNI] != null) { + entries[_RNI] = input[_RNI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14589,8 +14589,8 @@ const se_DescribeReservedNodesMessage = (input: DescribeReservedNodesMessage, co */ const se_DescribeResizeMessage = (input: DescribeResizeMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -14600,24 +14600,24 @@ const se_DescribeResizeMessage = (input: DescribeResizeMessage, context: __Serde */ const se_DescribeScheduledActionsMessage = (input: DescribeScheduledActionsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ScheduledActionName != null) { - entries["ScheduledActionName"] = input.ScheduledActionName; + if (input[_SAN] != null) { + entries[_SAN] = input[_SAN]; } - if (input.TargetActionType != null) { - entries["TargetActionType"] = input.TargetActionType; + if (input[_TAT] != null) { + entries[_TAT] = input[_TAT]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Active != null) { - entries["Active"] = input.Active; + if (input[_Act] != null) { + entries[_Act] = input[_Act]; } - if (input.Filters != null) { - const memberEntries = se_ScheduledActionFilterList(input.Filters, context); - if (input.Filters?.length === 0) { + if (input[_Fi] != null) { + const memberEntries = se_ScheduledActionFilterList(input[_Fi], context); + if (input[_Fi]?.length === 0) { entries.Filters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14625,11 +14625,11 @@ const se_DescribeScheduledActionsMessage = (input: DescribeScheduledActionsMessa entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -14642,18 +14642,18 @@ const se_DescribeSnapshotCopyGrantsMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.SnapshotCopyGrantName != null) { - entries["SnapshotCopyGrantName"] = input.SnapshotCopyGrantName; + if (input[_SCGN] != null) { + entries[_SCGN] = input[_SCGN]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14661,9 +14661,9 @@ const se_DescribeSnapshotCopyGrantsMessage = ( entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14679,15 +14679,15 @@ const se_DescribeSnapshotCopyGrantsMessage = ( */ const se_DescribeSnapshotSchedulesMessage = (input: DescribeSnapshotSchedulesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ScheduleIdentifier != null) { - entries["ScheduleIdentifier"] = input.ScheduleIdentifier; + if (input[_SIc] != null) { + entries[_SIc] = input[_SIc]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14695,9 +14695,9 @@ const se_DescribeSnapshotSchedulesMessage = (input: DescribeSnapshotSchedulesMes entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14705,11 +14705,11 @@ const se_DescribeSnapshotSchedulesMessage = (input: DescribeSnapshotSchedulesMes entries[loc] = value; }); } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -14722,17 +14722,17 @@ const se_DescribeTableRestoreStatusMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.TableRestoreRequestId != null) { - entries["TableRestoreRequestId"] = input.TableRestoreRequestId; + if (input[_TRRI] != null) { + entries[_TRRI] = input[_TRRI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -14742,21 +14742,21 @@ const se_DescribeTableRestoreStatusMessage = ( */ const se_DescribeTagsMessage = (input: DescribeTagsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceName != null) { - entries["ResourceName"] = input.ResourceName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.ResourceType != null) { - entries["ResourceType"] = input.ResourceType; + if (input[_RT] != null) { + entries[_RT] = input[_RT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14764,9 +14764,9 @@ const se_DescribeTagsMessage = (input: DescribeTagsMessage, context: __SerdeCont entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14782,24 +14782,24 @@ const se_DescribeTagsMessage = (input: DescribeTagsMessage, context: __SerdeCont */ const se_DescribeUsageLimitsMessage = (input: DescribeUsageLimitsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UsageLimitId != null) { - entries["UsageLimitId"] = input.UsageLimitId; + if (input[_ULI] != null) { + entries[_ULI] = input[_ULI]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.FeatureType != null) { - entries["FeatureType"] = input.FeatureType; + if (input[_FT] != null) { + entries[_FT] = input[_FT]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14807,9 +14807,9 @@ const se_DescribeUsageLimitsMessage = (input: DescribeUsageLimitsMessage, contex entries[loc] = value; }); } - if (input.TagValues != null) { - const memberEntries = se_TagValueList(input.TagValues, context); - if (input.TagValues?.length === 0) { + if (input[_TV] != null) { + const memberEntries = se_TagValueList(input[_TV], context); + if (input[_TV]?.length === 0) { entries.TagValues = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14825,8 +14825,8 @@ const se_DescribeUsageLimitsMessage = (input: DescribeUsageLimitsMessage, contex */ const se_DisableLoggingMessage = (input: DisableLoggingMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -14836,8 +14836,8 @@ const se_DisableLoggingMessage = (input: DisableLoggingMessage, context: __Serde */ const se_DisableSnapshotCopyMessage = (input: DisableSnapshotCopyMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -14850,17 +14850,17 @@ const se_DisassociateDataShareConsumerMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DataShareArn != null) { - entries["DataShareArn"] = input.DataShareArn; + if (input[_DSAa] != null) { + entries[_DSAa] = input[_DSAa]; } - if (input.DisassociateEntireAccount != null) { - entries["DisassociateEntireAccount"] = input.DisassociateEntireAccount; + if (input[_DEAi] != null) { + entries[_DEAi] = input[_DEAi]; } - if (input.ConsumerArn != null) { - entries["ConsumerArn"] = input.ConsumerArn; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } - if (input.ConsumerRegion != null) { - entries["ConsumerRegion"] = input.ConsumerRegion; + if (input[_CRo] != null) { + entries[_CRo] = input[_CRo]; } return entries; }; @@ -14870,21 +14870,21 @@ const se_DisassociateDataShareConsumerMessage = ( */ const se_EnableLoggingMessage = (input: EnableLoggingMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.BucketName != null) { - entries["BucketName"] = input.BucketName; + if (input[_BN] != null) { + entries[_BN] = input[_BN]; } - if (input.S3KeyPrefix != null) { - entries["S3KeyPrefix"] = input.S3KeyPrefix; + if (input[_SKP] != null) { + entries[_SKP] = input[_SKP]; } - if (input.LogDestinationType != null) { - entries["LogDestinationType"] = input.LogDestinationType; + if (input[_LDT] != null) { + entries[_LDT] = input[_LDT]; } - if (input.LogExports != null) { - const memberEntries = se_LogTypeList(input.LogExports, context); - if (input.LogExports?.length === 0) { + if (input[_LE] != null) { + const memberEntries = se_LogTypeList(input[_LE], context); + if (input[_LE]?.length === 0) { entries.LogExports = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14900,20 +14900,20 @@ const se_EnableLoggingMessage = (input: EnableLoggingMessage, context: __SerdeCo */ const se_EnableSnapshotCopyMessage = (input: EnableSnapshotCopyMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.DestinationRegion != null) { - entries["DestinationRegion"] = input.DestinationRegion; + if (input[_DRe] != null) { + entries[_DRe] = input[_DRe]; } - if (input.RetentionPeriod != null) { - entries["RetentionPeriod"] = input.RetentionPeriod; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.SnapshotCopyGrantName != null) { - entries["SnapshotCopyGrantName"] = input.SnapshotCopyGrantName; + if (input[_SCGN] != null) { + entries[_SCGN] = input[_SCGN]; } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } return entries; }; @@ -14942,8 +14942,8 @@ const se_FailoverPrimaryComputeInputMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -14953,24 +14953,24 @@ const se_FailoverPrimaryComputeInputMessage = ( */ const se_GetClusterCredentialsMessage = (input: GetClusterCredentialsMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DbUser != null) { - entries["DbUser"] = input.DbUser; + if (input[_DU] != null) { + entries[_DU] = input[_DU]; } - if (input.DbName != null) { - entries["DbName"] = input.DbName; + if (input[_DNb] != null) { + entries[_DNb] = input[_DNb]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DSu] != null) { + entries[_DSu] = input[_DSu]; } - if (input.AutoCreate != null) { - entries["AutoCreate"] = input.AutoCreate; + if (input[_AC] != null) { + entries[_AC] = input[_AC]; } - if (input.DbGroups != null) { - const memberEntries = se_DbGroupList(input.DbGroups, context); - if (input.DbGroups?.length === 0) { + if (input[_DG] != null) { + const memberEntries = se_DbGroupList(input[_DG], context); + if (input[_DG]?.length === 0) { entries.DbGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -14978,8 +14978,8 @@ const se_GetClusterCredentialsMessage = (input: GetClusterCredentialsMessage, co entries[loc] = value; }); } - if (input.CustomDomainName != null) { - entries["CustomDomainName"] = input.CustomDomainName; + if (input[_CDN] != null) { + entries[_CDN] = input[_CDN]; } return entries; }; @@ -14992,17 +14992,17 @@ const se_GetClusterCredentialsWithIAMMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.DbName != null) { - entries["DbName"] = input.DbName; + if (input[_DNb] != null) { + entries[_DNb] = input[_DNb]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DSu] != null) { + entries[_DSu] = input[_DSu]; } - if (input.CustomDomainName != null) { - entries["CustomDomainName"] = input.CustomDomainName; + if (input[_CDN] != null) { + entries[_CDN] = input[_CDN]; } return entries; }; @@ -15015,20 +15015,20 @@ const se_GetReservedNodeExchangeConfigurationOptionsInputMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ActionType != null) { - entries["ActionType"] = input.ActionType; + if (input[_AT] != null) { + entries[_AT] = input[_AT]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -15041,14 +15041,14 @@ const se_GetReservedNodeExchangeOfferingsInputMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedNodeId != null) { - entries["ReservedNodeId"] = input.ReservedNodeId; + if (input[_RNI] != null) { + entries[_RNI] = input[_RNI]; } - if (input.MaxRecords != null) { - entries["MaxRecords"] = input.MaxRecords; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } - if (input.Marker != null) { - entries["Marker"] = input.Marker; + if (input[_M] != null) { + entries[_M] = input[_M]; } return entries; }; @@ -15058,8 +15058,8 @@ const se_GetReservedNodeExchangeOfferingsInputMessage = ( */ const se_GetResourcePolicyMessage = (input: GetResourcePolicyMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } return entries; }; @@ -15085,8 +15085,8 @@ const se_IamRoleArnList = (input: string[], context: __SerdeContext): any => { */ const se_LakeFormationQuery = (input: LakeFormationQuery, context: __SerdeContext): any => { const entries: any = {}; - if (input.Authorization != null) { - entries["Authorization"] = input.Authorization; + if (input[_Au] != null) { + entries[_Au] = input[_Au]; } return entries; }; @@ -15151,11 +15151,11 @@ const se_LogTypeList = (input: string[], context: __SerdeContext): any => { */ const se_ModifyAquaInputMessage = (input: ModifyAquaInputMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.AquaConfigurationStatus != null) { - entries["AquaConfigurationStatus"] = input.AquaConfigurationStatus; + if (input[_ACS] != null) { + entries[_ACS] = input[_ACS]; } return entries; }; @@ -15168,11 +15168,11 @@ const se_ModifyAuthenticationProfileMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.AuthenticationProfileName != null) { - entries["AuthenticationProfileName"] = input.AuthenticationProfileName; + if (input[_APN] != null) { + entries[_APN] = input[_APN]; } - if (input.AuthenticationProfileContent != null) { - entries["AuthenticationProfileContent"] = input.AuthenticationProfileContent; + if (input[_APC] != null) { + entries[_APC] = input[_APC]; } return entries; }; @@ -15182,11 +15182,11 @@ const se_ModifyAuthenticationProfileMessage = ( */ const se_ModifyClusterDbRevisionMessage = (input: ModifyClusterDbRevisionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.RevisionTarget != null) { - entries["RevisionTarget"] = input.RevisionTarget; + if (input[_RTe] != null) { + entries[_RTe] = input[_RTe]; } return entries; }; @@ -15196,12 +15196,12 @@ const se_ModifyClusterDbRevisionMessage = (input: ModifyClusterDbRevisionMessage */ const se_ModifyClusterIamRolesMessage = (input: ModifyClusterIamRolesMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.AddIamRoles != null) { - const memberEntries = se_IamRoleArnList(input.AddIamRoles, context); - if (input.AddIamRoles?.length === 0) { + if (input[_AIR] != null) { + const memberEntries = se_IamRoleArnList(input[_AIR], context); + if (input[_AIR]?.length === 0) { entries.AddIamRoles = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15209,9 +15209,9 @@ const se_ModifyClusterIamRolesMessage = (input: ModifyClusterIamRolesMessage, co entries[loc] = value; }); } - if (input.RemoveIamRoles != null) { - const memberEntries = se_IamRoleArnList(input.RemoveIamRoles, context); - if (input.RemoveIamRoles?.length === 0) { + if (input[_RIR] != null) { + const memberEntries = se_IamRoleArnList(input[_RIR], context); + if (input[_RIR]?.length === 0) { entries.RemoveIamRoles = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15219,8 +15219,8 @@ const se_ModifyClusterIamRolesMessage = (input: ModifyClusterIamRolesMessage, co entries[loc] = value; }); } - if (input.DefaultIamRoleArn != null) { - entries["DefaultIamRoleArn"] = input.DefaultIamRoleArn; + if (input[_DIRA] != null) { + entries[_DIRA] = input[_DIRA]; } return entries; }; @@ -15230,23 +15230,23 @@ const se_ModifyClusterIamRolesMessage = (input: ModifyClusterIamRolesMessage, co */ const se_ModifyClusterMaintenanceMessage = (input: ModifyClusterMaintenanceMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.DeferMaintenance != null) { - entries["DeferMaintenance"] = input.DeferMaintenance; + if (input[_DM] != null) { + entries[_DM] = input[_DM]; } - if (input.DeferMaintenanceIdentifier != null) { - entries["DeferMaintenanceIdentifier"] = input.DeferMaintenanceIdentifier; + if (input[_DMI] != null) { + entries[_DMI] = input[_DMI]; } - if (input.DeferMaintenanceStartTime != null) { - entries["DeferMaintenanceStartTime"] = input.DeferMaintenanceStartTime.toISOString().split(".")[0] + "Z"; + if (input[_DMST] != null) { + entries[_DMST] = input[_DMST].toISOString().split(".")[0] + "Z"; } - if (input.DeferMaintenanceEndTime != null) { - entries["DeferMaintenanceEndTime"] = input.DeferMaintenanceEndTime.toISOString().split(".")[0] + "Z"; + if (input[_DMET] != null) { + entries[_DMET] = input[_DMET].toISOString().split(".")[0] + "Z"; } - if (input.DeferMaintenanceDuration != null) { - entries["DeferMaintenanceDuration"] = input.DeferMaintenanceDuration; + if (input[_DMD] != null) { + entries[_DMD] = input[_DMD]; } return entries; }; @@ -15256,21 +15256,21 @@ const se_ModifyClusterMaintenanceMessage = (input: ModifyClusterMaintenanceMessa */ const se_ModifyClusterMessage = (input: ModifyClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ClusterType != null) { - entries["ClusterType"] = input.ClusterType; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.NodeType != null) { - entries["NodeType"] = input.NodeType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.NumberOfNodes != null) { - entries["NumberOfNodes"] = input.NumberOfNodes; + if (input[_NON] != null) { + entries[_NON] = input[_NON]; } - if (input.ClusterSecurityGroups != null) { - const memberEntries = se_ClusterSecurityGroupNameList(input.ClusterSecurityGroups, context); - if (input.ClusterSecurityGroups?.length === 0) { + if (input[_CSG] != null) { + const memberEntries = se_ClusterSecurityGroupNameList(input[_CSG], context); + if (input[_CSG]?.length === 0) { entries.ClusterSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15278,9 +15278,9 @@ const se_ModifyClusterMessage = (input: ModifyClusterMessage, context: __SerdeCo entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15288,74 +15288,74 @@ const se_ModifyClusterMessage = (input: ModifyClusterMessage, context: __SerdeCo entries[loc] = value; }); } - if (input.MasterUserPassword != null) { - entries["MasterUserPassword"] = input.MasterUserPassword; + if (input[_MUP] != null) { + entries[_MUP] = input[_MUP]; } - if (input.ClusterParameterGroupName != null) { - entries["ClusterParameterGroupName"] = input.ClusterParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.AutomatedSnapshotRetentionPeriod != null) { - entries["AutomatedSnapshotRetentionPeriod"] = input.AutomatedSnapshotRetentionPeriod; + if (input[_ASRP] != null) { + entries[_ASRP] = input[_ASRP]; } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.ClusterVersion != null) { - entries["ClusterVersion"] = input.ClusterVersion; + if (input[_CV] != null) { + entries[_CV] = input[_CV]; } - if (input.AllowVersionUpgrade != null) { - entries["AllowVersionUpgrade"] = input.AllowVersionUpgrade; + if (input[_AVU] != null) { + entries[_AVU] = input[_AVU]; } - if (input.HsmClientCertificateIdentifier != null) { - entries["HsmClientCertificateIdentifier"] = input.HsmClientCertificateIdentifier; + if (input[_HCCI] != null) { + entries[_HCCI] = input[_HCCI]; } - if (input.HsmConfigurationIdentifier != null) { - entries["HsmConfigurationIdentifier"] = input.HsmConfigurationIdentifier; + if (input[_HCI] != null) { + entries[_HCI] = input[_HCI]; } - if (input.NewClusterIdentifier != null) { - entries["NewClusterIdentifier"] = input.NewClusterIdentifier; + if (input[_NCI] != null) { + entries[_NCI] = input[_NCI]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.ElasticIp != null) { - entries["ElasticIp"] = input.ElasticIp; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.EnhancedVpcRouting != null) { - entries["EnhancedVpcRouting"] = input.EnhancedVpcRouting; + if (input[_EVR] != null) { + entries[_EVR] = input[_EVR]; } - if (input.MaintenanceTrackName != null) { - entries["MaintenanceTrackName"] = input.MaintenanceTrackName; + if (input[_MTN] != null) { + entries[_MTN] = input[_MTN]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.AvailabilityZoneRelocation != null) { - entries["AvailabilityZoneRelocation"] = input.AvailabilityZoneRelocation; + if (input[_AZR] != null) { + entries[_AZR] = input[_AZR]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.ManageMasterPassword != null) { - entries["ManageMasterPassword"] = input.ManageMasterPassword; + if (input[_MMP] != null) { + entries[_MMP] = input[_MMP]; } - if (input.MasterPasswordSecretKmsKeyId != null) { - entries["MasterPasswordSecretKmsKeyId"] = input.MasterPasswordSecretKmsKeyId; + if (input[_MPSKKI] != null) { + entries[_MPSKKI] = input[_MPSKKI]; } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } return entries; }; @@ -15368,12 +15368,12 @@ const se_ModifyClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ParameterGroupName != null) { - entries["ParameterGroupName"] = input.ParameterGroupName; + if (input[_PGN] != null) { + entries[_PGN] = input[_PGN]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15389,14 +15389,14 @@ const se_ModifyClusterParameterGroupMessage = ( */ const se_ModifyClusterSnapshotMessage = (input: ModifyClusterSnapshotMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } return entries; }; @@ -15409,14 +15409,14 @@ const se_ModifyClusterSnapshotScheduleMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ScheduleIdentifier != null) { - entries["ScheduleIdentifier"] = input.ScheduleIdentifier; + if (input[_SIc] != null) { + entries[_SIc] = input[_SIc]; } - if (input.DisassociateSchedule != null) { - entries["DisassociateSchedule"] = input.DisassociateSchedule; + if (input[_DSi] != null) { + entries[_DSi] = input[_DSi]; } return entries; }; @@ -15426,15 +15426,15 @@ const se_ModifyClusterSnapshotScheduleMessage = ( */ const se_ModifyClusterSubnetGroupMessage = (input: ModifyClusterSubnetGroupMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterSubnetGroupName != null) { - entries["ClusterSubnetGroupName"] = input.ClusterSubnetGroupName; + if (input[_CSGNl] != null) { + entries[_CSGNl] = input[_CSGNl]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.SubnetIds != null) { - const memberEntries = se_SubnetIdentifierList(input.SubnetIds, context); - if (input.SubnetIds?.length === 0) { + if (input[_SIu] != null) { + const memberEntries = se_SubnetIdentifierList(input[_SIu], context); + if (input[_SIu]?.length === 0) { entries.SubnetIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15453,14 +15453,14 @@ const se_ModifyCustomDomainAssociationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.CustomDomainName != null) { - entries["CustomDomainName"] = input.CustomDomainName; + if (input[_CDN] != null) { + entries[_CDN] = input[_CDN]; } - if (input.CustomDomainCertificateArn != null) { - entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn; + if (input[_CDCA] != null) { + entries[_CDCA] = input[_CDCA]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -15470,12 +15470,12 @@ const se_ModifyCustomDomainAssociationMessage = ( */ const se_ModifyEndpointAccessMessage = (input: ModifyEndpointAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.EndpointName != null) { - entries["EndpointName"] = input.EndpointName; + if (input[_EN] != null) { + entries[_EN] = input[_EN]; } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15491,18 +15491,18 @@ const se_ModifyEndpointAccessMessage = (input: ModifyEndpointAccessMessage, cont */ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionName != null) { - entries["SubscriptionName"] = input.SubscriptionName; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.SnsTopicArn != null) { - entries["SnsTopicArn"] = input.SnsTopicArn; + if (input[_STA] != null) { + entries[_STA] = input[_STA]; } - if (input.SourceType != null) { - entries["SourceType"] = input.SourceType; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } - if (input.SourceIds != null) { - const memberEntries = se_SourceIdsList(input.SourceIds, context); - if (input.SourceIds?.length === 0) { + if (input[_SIo] != null) { + const memberEntries = se_SourceIdsList(input[_SIo], context); + if (input[_SIo]?.length === 0) { entries.SourceIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15510,9 +15510,9 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage entries[loc] = value; }); } - if (input.EventCategories != null) { - const memberEntries = se_EventCategoriesList(input.EventCategories, context); - if (input.EventCategories?.length === 0) { + if (input[_EC] != null) { + const memberEntries = se_EventCategoriesList(input[_EC], context); + if (input[_EC]?.length === 0) { entries.EventCategories = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15520,11 +15520,11 @@ const se_ModifyEventSubscriptionMessage = (input: ModifyEventSubscriptionMessage entries[loc] = value; }); } - if (input.Severity != null) { - entries["Severity"] = input.Severity; + if (input[_S] != null) { + entries[_S] = input[_S]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -15537,21 +15537,21 @@ const se_ModifyRedshiftIdcApplicationMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.RedshiftIdcApplicationArn != null) { - entries["RedshiftIdcApplicationArn"] = input.RedshiftIdcApplicationArn; + if (input[_RIAA] != null) { + entries[_RIAA] = input[_RIAA]; } - if (input.IdentityNamespace != null) { - entries["IdentityNamespace"] = input.IdentityNamespace; + if (input[_IN] != null) { + entries[_IN] = input[_IN]; } - if (input.IamRoleArn != null) { - entries["IamRoleArn"] = input.IamRoleArn; + if (input[_IRA] != null) { + entries[_IRA] = input[_IRA]; } - if (input.IdcDisplayName != null) { - entries["IdcDisplayName"] = input.IdcDisplayName; + if (input[_IDN] != null) { + entries[_IDN] = input[_IDN]; } - if (input.AuthorizedTokenIssuerList != null) { - const memberEntries = se_AuthorizedTokenIssuerList(input.AuthorizedTokenIssuerList, context); - if (input.AuthorizedTokenIssuerList?.length === 0) { + if (input[_ATIL] != null) { + const memberEntries = se_AuthorizedTokenIssuerList(input[_ATIL], context); + if (input[_ATIL]?.length === 0) { entries.AuthorizedTokenIssuerList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15559,9 +15559,9 @@ const se_ModifyRedshiftIdcApplicationMessage = ( entries[loc] = value; }); } - if (input.ServiceIntegrations != null) { - const memberEntries = se_ServiceIntegrationList(input.ServiceIntegrations, context); - if (input.ServiceIntegrations?.length === 0) { + if (input[_SIe] != null) { + const memberEntries = se_ServiceIntegrationList(input[_SIe], context); + if (input[_SIe]?.length === 0) { entries.ServiceIntegrations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15577,33 +15577,33 @@ const se_ModifyRedshiftIdcApplicationMessage = ( */ const se_ModifyScheduledActionMessage = (input: ModifyScheduledActionMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ScheduledActionName != null) { - entries["ScheduledActionName"] = input.ScheduledActionName; + if (input[_SAN] != null) { + entries[_SAN] = input[_SAN]; } - if (input.TargetAction != null) { - const memberEntries = se_ScheduledActionType(input.TargetAction, context); + if (input[_TA] != null) { + const memberEntries = se_ScheduledActionType(input[_TA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TargetAction.${key}`; entries[loc] = value; }); } - if (input.Schedule != null) { - entries["Schedule"] = input.Schedule; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } - if (input.IamRole != null) { - entries["IamRole"] = input.IamRole; + if (input[_IRa] != null) { + entries[_IRa] = input[_IRa]; } - if (input.ScheduledActionDescription != null) { - entries["ScheduledActionDescription"] = input.ScheduledActionDescription; + if (input[_SAD] != null) { + entries[_SAD] = input[_SAD]; } - if (input.StartTime != null) { - entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z"; + if (input[_STt] != null) { + entries[_STt] = input[_STt].toISOString().split(".")[0] + "Z"; } - if (input.EndTime != null) { - entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z"; + if (input[_ET] != null) { + entries[_ET] = input[_ET].toISOString().split(".")[0] + "Z"; } - if (input.Enable != null) { - entries["Enable"] = input.Enable; + if (input[_Ena] != null) { + entries[_Ena] = input[_Ena]; } return entries; }; @@ -15616,14 +15616,14 @@ const se_ModifySnapshotCopyRetentionPeriodMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.RetentionPeriod != null) { - entries["RetentionPeriod"] = input.RetentionPeriod; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.Manual != null) { - entries["Manual"] = input.Manual; + if (input[_Ma] != null) { + entries[_Ma] = input[_Ma]; } return entries; }; @@ -15633,12 +15633,12 @@ const se_ModifySnapshotCopyRetentionPeriodMessage = ( */ const se_ModifySnapshotScheduleMessage = (input: ModifySnapshotScheduleMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ScheduleIdentifier != null) { - entries["ScheduleIdentifier"] = input.ScheduleIdentifier; + if (input[_SIc] != null) { + entries[_SIc] = input[_SIc]; } - if (input.ScheduleDefinitions != null) { - const memberEntries = se_ScheduleDefinitionList(input.ScheduleDefinitions, context); - if (input.ScheduleDefinitions?.length === 0) { + if (input[_SD] != null) { + const memberEntries = se_ScheduleDefinitionList(input[_SD], context); + if (input[_SD]?.length === 0) { entries.ScheduleDefinitions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15654,14 +15654,14 @@ const se_ModifySnapshotScheduleMessage = (input: ModifySnapshotScheduleMessage, */ const se_ModifyUsageLimitMessage = (input: ModifyUsageLimitMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.UsageLimitId != null) { - entries["UsageLimitId"] = input.UsageLimitId; + if (input[_ULI] != null) { + entries[_ULI] = input[_ULI]; } - if (input.Amount != null) { - entries["Amount"] = input.Amount; + if (input[_Am] != null) { + entries[_Am] = input[_Am]; } - if (input.BreachAction != null) { - entries["BreachAction"] = input.BreachAction; + if (input[_BA] != null) { + entries[_BA] = input[_BA]; } return entries; }; @@ -15671,15 +15671,15 @@ const se_ModifyUsageLimitMessage = (input: ModifyUsageLimitMessage, context: __S */ const se_NodeConfigurationOptionsFilter = (input: NodeConfigurationOptionsFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Operator != null) { - entries["Operator"] = input.Operator; + if (input[_O] != null) { + entries[_O] = input[_O]; } - if (input.Values != null) { - const memberEntries = se_ValueStringList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ValueStringList(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Value = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15717,32 +15717,32 @@ const se_NodeConfigurationOptionsFilterList = ( */ const se_Parameter = (input: Parameter, context: __SerdeContext): any => { const entries: any = {}; - if (input.ParameterName != null) { - entries["ParameterName"] = input.ParameterName; + if (input[_PNa] != null) { + entries[_PNa] = input[_PNa]; } - if (input.ParameterValue != null) { - entries["ParameterValue"] = input.ParameterValue; + if (input[_PV] != null) { + entries[_PV] = input[_PV]; } - if (input.Description != null) { - entries["Description"] = input.Description; + if (input[_D] != null) { + entries[_D] = input[_D]; } - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_So] != null) { + entries[_So] = input[_So]; } - if (input.DataType != null) { - entries["DataType"] = input.DataType; + if (input[_DTa] != null) { + entries[_DTa] = input[_DTa]; } - if (input.AllowedValues != null) { - entries["AllowedValues"] = input.AllowedValues; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } - if (input.ApplyType != null) { - entries["ApplyType"] = input.ApplyType; + if (input[_ATp] != null) { + entries[_ATp] = input[_ATp]; } - if (input.IsModifiable != null) { - entries["IsModifiable"] = input.IsModifiable; + if (input[_IM] != null) { + entries[_IM] = input[_IM]; } - if (input.MinimumEngineVersion != null) { - entries["MinimumEngineVersion"] = input.MinimumEngineVersion; + if (input[_MEV] != null) { + entries[_MEV] = input[_MEV]; } return entries; }; @@ -15771,17 +15771,17 @@ const se_ParametersList = (input: Parameter[], context: __SerdeContext): any => */ const se_PartnerIntegrationInputMessage = (input: PartnerIntegrationInputMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AccountId != null) { - entries["AccountId"] = input.AccountId; + if (input[_AIc] != null) { + entries[_AIc] = input[_AIc]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.PartnerName != null) { - entries["PartnerName"] = input.PartnerName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -15791,8 +15791,8 @@ const se_PartnerIntegrationInputMessage = (input: PartnerIntegrationInputMessage */ const se_PauseClusterMessage = (input: PauseClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -15805,11 +15805,11 @@ const se_PurchaseReservedNodeOfferingMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ReservedNodeOfferingId != null) { - entries["ReservedNodeOfferingId"] = input.ReservedNodeOfferingId; + if (input[_RNOI] != null) { + entries[_RNOI] = input[_RNOI]; } - if (input.NodeCount != null) { - entries["NodeCount"] = input.NodeCount; + if (input[_NC] != null) { + entries[_NC] = input[_NC]; } return entries; }; @@ -15819,11 +15819,11 @@ const se_PurchaseReservedNodeOfferingMessage = ( */ const se_PutResourcePolicyMessage = (input: PutResourcePolicyMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input[_Po] != null) { + entries[_Po] = input[_Po]; } return entries; }; @@ -15833,8 +15833,8 @@ const se_PutResourcePolicyMessage = (input: PutResourcePolicyMessage, context: _ */ const se_RebootClusterMessage = (input: RebootClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -15844,8 +15844,8 @@ const se_RebootClusterMessage = (input: RebootClusterMessage, context: __SerdeCo */ const se_RejectDataShareMessage = (input: RejectDataShareMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.DataShareArn != null) { - entries["DataShareArn"] = input.DataShareArn; + if (input[_DSAa] != null) { + entries[_DSAa] = input[_DSAa]; } return entries; }; @@ -15858,15 +15858,15 @@ const se_ResetClusterParameterGroupMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ParameterGroupName != null) { - entries["ParameterGroupName"] = input.ParameterGroupName; + if (input[_PGN] != null) { + entries[_PGN] = input[_PGN]; } - if (input.ResetAllParameters != null) { - entries["ResetAllParameters"] = input.ResetAllParameters; + if (input[_RAP] != null) { + entries[_RAP] = input[_RAP]; } - if (input.Parameters != null) { - const memberEntries = se_ParametersList(input.Parameters, context); - if (input.Parameters?.length === 0) { + if (input[_Pa] != null) { + const memberEntries = se_ParametersList(input[_Pa], context); + if (input[_Pa]?.length === 0) { entries.Parameters = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15882,26 +15882,26 @@ const se_ResetClusterParameterGroupMessage = ( */ const se_ResizeClusterMessage = (input: ResizeClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.ClusterType != null) { - entries["ClusterType"] = input.ClusterType; + if (input[_CTl] != null) { + entries[_CTl] = input[_CTl]; } - if (input.NodeType != null) { - entries["NodeType"] = input.NodeType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.NumberOfNodes != null) { - entries["NumberOfNodes"] = input.NumberOfNodes; + if (input[_NON] != null) { + entries[_NON] = input[_NON]; } - if (input.Classic != null) { - entries["Classic"] = input.Classic; + if (input[_C] != null) { + entries[_C] = input[_C]; } - if (input.ReservedNodeId != null) { - entries["ReservedNodeId"] = input.ReservedNodeId; + if (input[_RNI] != null) { + entries[_RNI] = input[_RNI]; } - if (input.TargetReservedNodeOfferingId != null) { - entries["TargetReservedNodeOfferingId"] = input.TargetReservedNodeOfferingId; + if (input[_TRNOI] != null) { + entries[_TRNOI] = input[_TRNOI]; } return entries; }; @@ -15914,51 +15914,51 @@ const se_RestoreFromClusterSnapshotMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SnapshotArn != null) { - entries["SnapshotArn"] = input.SnapshotArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.SnapshotClusterIdentifier != null) { - entries["SnapshotClusterIdentifier"] = input.SnapshotClusterIdentifier; + if (input[_SCI] != null) { + entries[_SCI] = input[_SCI]; } - if (input.Port != null) { - entries["Port"] = input.Port; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.AvailabilityZone != null) { - entries["AvailabilityZone"] = input.AvailabilityZone; + if (input[_AZ] != null) { + entries[_AZ] = input[_AZ]; } - if (input.AllowVersionUpgrade != null) { - entries["AllowVersionUpgrade"] = input.AllowVersionUpgrade; + if (input[_AVU] != null) { + entries[_AVU] = input[_AVU]; } - if (input.ClusterSubnetGroupName != null) { - entries["ClusterSubnetGroupName"] = input.ClusterSubnetGroupName; + if (input[_CSGNl] != null) { + entries[_CSGNl] = input[_CSGNl]; } - if (input.PubliclyAccessible != null) { - entries["PubliclyAccessible"] = input.PubliclyAccessible; + if (input[_PA] != null) { + entries[_PA] = input[_PA]; } - if (input.OwnerAccount != null) { - entries["OwnerAccount"] = input.OwnerAccount; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.HsmClientCertificateIdentifier != null) { - entries["HsmClientCertificateIdentifier"] = input.HsmClientCertificateIdentifier; + if (input[_HCCI] != null) { + entries[_HCCI] = input[_HCCI]; } - if (input.HsmConfigurationIdentifier != null) { - entries["HsmConfigurationIdentifier"] = input.HsmConfigurationIdentifier; + if (input[_HCI] != null) { + entries[_HCI] = input[_HCI]; } - if (input.ElasticIp != null) { - entries["ElasticIp"] = input.ElasticIp; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.ClusterParameterGroupName != null) { - entries["ClusterParameterGroupName"] = input.ClusterParameterGroupName; + if (input[_CPGN] != null) { + entries[_CPGN] = input[_CPGN]; } - if (input.ClusterSecurityGroups != null) { - const memberEntries = se_ClusterSecurityGroupNameList(input.ClusterSecurityGroups, context); - if (input.ClusterSecurityGroups?.length === 0) { + if (input[_CSG] != null) { + const memberEntries = se_ClusterSecurityGroupNameList(input[_CSG], context); + if (input[_CSG]?.length === 0) { entries.ClusterSecurityGroups = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15966,9 +15966,9 @@ const se_RestoreFromClusterSnapshotMessage = ( entries[loc] = value; }); } - if (input.VpcSecurityGroupIds != null) { - const memberEntries = se_VpcSecurityGroupIdList(input.VpcSecurityGroupIds, context); - if (input.VpcSecurityGroupIds?.length === 0) { + if (input[_VSGI] != null) { + const memberEntries = se_VpcSecurityGroupIdList(input[_VSGI], context); + if (input[_VSGI]?.length === 0) { entries.VpcSecurityGroupIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -15976,30 +15976,30 @@ const se_RestoreFromClusterSnapshotMessage = ( entries[loc] = value; }); } - if (input.PreferredMaintenanceWindow != null) { - entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow; + if (input[_PMW] != null) { + entries[_PMW] = input[_PMW]; } - if (input.AutomatedSnapshotRetentionPeriod != null) { - entries["AutomatedSnapshotRetentionPeriod"] = input.AutomatedSnapshotRetentionPeriod; + if (input[_ASRP] != null) { + entries[_ASRP] = input[_ASRP]; } - if (input.ManualSnapshotRetentionPeriod != null) { - entries["ManualSnapshotRetentionPeriod"] = input.ManualSnapshotRetentionPeriod; + if (input[_MSRP] != null) { + entries[_MSRP] = input[_MSRP]; } - if (input.KmsKeyId != null) { - entries["KmsKeyId"] = input.KmsKeyId; + if (input[_KKI] != null) { + entries[_KKI] = input[_KKI]; } - if (input.NodeType != null) { - entries["NodeType"] = input.NodeType; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.EnhancedVpcRouting != null) { - entries["EnhancedVpcRouting"] = input.EnhancedVpcRouting; + if (input[_EVR] != null) { + entries[_EVR] = input[_EVR]; } - if (input.AdditionalInfo != null) { - entries["AdditionalInfo"] = input.AdditionalInfo; + if (input[_AI] != null) { + entries[_AI] = input[_AI]; } - if (input.IamRoles != null) { - const memberEntries = se_IamRoleArnList(input.IamRoles, context); - if (input.IamRoles?.length === 0) { + if (input[_IR] != null) { + const memberEntries = se_IamRoleArnList(input[_IR], context); + if (input[_IR]?.length === 0) { entries.IamRoles = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16007,44 +16007,44 @@ const se_RestoreFromClusterSnapshotMessage = ( entries[loc] = value; }); } - if (input.MaintenanceTrackName != null) { - entries["MaintenanceTrackName"] = input.MaintenanceTrackName; + if (input[_MTN] != null) { + entries[_MTN] = input[_MTN]; } - if (input.SnapshotScheduleIdentifier != null) { - entries["SnapshotScheduleIdentifier"] = input.SnapshotScheduleIdentifier; + if (input[_SSIn] != null) { + entries[_SSIn] = input[_SSIn]; } - if (input.NumberOfNodes != null) { - entries["NumberOfNodes"] = input.NumberOfNodes; + if (input[_NON] != null) { + entries[_NON] = input[_NON]; } - if (input.AvailabilityZoneRelocation != null) { - entries["AvailabilityZoneRelocation"] = input.AvailabilityZoneRelocation; + if (input[_AZR] != null) { + entries[_AZR] = input[_AZR]; } - if (input.AquaConfigurationStatus != null) { - entries["AquaConfigurationStatus"] = input.AquaConfigurationStatus; + if (input[_ACS] != null) { + entries[_ACS] = input[_ACS]; } - if (input.DefaultIamRoleArn != null) { - entries["DefaultIamRoleArn"] = input.DefaultIamRoleArn; + if (input[_DIRA] != null) { + entries[_DIRA] = input[_DIRA]; } - if (input.ReservedNodeId != null) { - entries["ReservedNodeId"] = input.ReservedNodeId; + if (input[_RNI] != null) { + entries[_RNI] = input[_RNI]; } - if (input.TargetReservedNodeOfferingId != null) { - entries["TargetReservedNodeOfferingId"] = input.TargetReservedNodeOfferingId; + if (input[_TRNOI] != null) { + entries[_TRNOI] = input[_TRNOI]; } - if (input.Encrypted != null) { - entries["Encrypted"] = input.Encrypted; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.ManageMasterPassword != null) { - entries["ManageMasterPassword"] = input.ManageMasterPassword; + if (input[_MMP] != null) { + entries[_MMP] = input[_MMP]; } - if (input.MasterPasswordSecretKmsKeyId != null) { - entries["MasterPasswordSecretKmsKeyId"] = input.MasterPasswordSecretKmsKeyId; + if (input[_MPSKKI] != null) { + entries[_MPSKKI] = input[_MPSKKI]; } - if (input.IpAddressType != null) { - entries["IpAddressType"] = input.IpAddressType; + if (input[_IAT] != null) { + entries[_IAT] = input[_IAT]; } - if (input.MultiAZ != null) { - entries["MultiAZ"] = input.MultiAZ; + if (input[_MAZ] != null) { + entries[_MAZ] = input[_MAZ]; } return entries; }; @@ -16057,32 +16057,32 @@ const se_RestoreTableFromClusterSnapshotMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SourceDatabaseName != null) { - entries["SourceDatabaseName"] = input.SourceDatabaseName; + if (input[_SDN] != null) { + entries[_SDN] = input[_SDN]; } - if (input.SourceSchemaName != null) { - entries["SourceSchemaName"] = input.SourceSchemaName; + if (input[_SSN] != null) { + entries[_SSN] = input[_SSN]; } - if (input.SourceTableName != null) { - entries["SourceTableName"] = input.SourceTableName; + if (input[_STN] != null) { + entries[_STN] = input[_STN]; } - if (input.TargetDatabaseName != null) { - entries["TargetDatabaseName"] = input.TargetDatabaseName; + if (input[_TDN] != null) { + entries[_TDN] = input[_TDN]; } - if (input.TargetSchemaName != null) { - entries["TargetSchemaName"] = input.TargetSchemaName; + if (input[_TSN] != null) { + entries[_TSN] = input[_TSN]; } - if (input.NewTableName != null) { - entries["NewTableName"] = input.NewTableName; + if (input[_NTN] != null) { + entries[_NTN] = input[_NTN]; } - if (input.EnableCaseSensitiveIdentifier != null) { - entries["EnableCaseSensitiveIdentifier"] = input.EnableCaseSensitiveIdentifier; + if (input[_ECSI] != null) { + entries[_ECSI] = input[_ECSI]; } return entries; }; @@ -16092,8 +16092,8 @@ const se_RestoreTableFromClusterSnapshotMessage = ( */ const se_ResumeClusterMessage = (input: ResumeClusterMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -16106,17 +16106,17 @@ const se_RevokeClusterSecurityGroupIngressMessage = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ClusterSecurityGroupName != null) { - entries["ClusterSecurityGroupName"] = input.ClusterSecurityGroupName; + if (input[_CSGN] != null) { + entries[_CSGN] = input[_CSGN]; } - if (input.CIDRIP != null) { - entries["CIDRIP"] = input.CIDRIP; + if (input[_CIDRIP] != null) { + entries[_CIDRIP] = input[_CIDRIP]; } - if (input.EC2SecurityGroupName != null) { - entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName; + if (input[_ECSGN] != null) { + entries[_ECSGN] = input[_ECSGN]; } - if (input.EC2SecurityGroupOwnerId != null) { - entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId; + if (input[_ECSGOI] != null) { + entries[_ECSGOI] = input[_ECSGOI]; } return entries; }; @@ -16126,15 +16126,15 @@ const se_RevokeClusterSecurityGroupIngressMessage = ( */ const se_RevokeEndpointAccessMessage = (input: RevokeEndpointAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.Account != null) { - entries["Account"] = input.Account; + if (input[_Ac] != null) { + entries[_Ac] = input[_Ac]; } - if (input.VpcIds != null) { - const memberEntries = se_VpcIdentifierList(input.VpcIds, context); - if (input.VpcIds?.length === 0) { + if (input[_VI] != null) { + const memberEntries = se_VpcIdentifierList(input[_VI], context); + if (input[_VI]?.length === 0) { entries.VpcIds = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16142,8 +16142,8 @@ const se_RevokeEndpointAccessMessage = (input: RevokeEndpointAccessMessage, cont entries[loc] = value; }); } - if (input.Force != null) { - entries["Force"] = input.Force; + if (input[_F] != null) { + entries[_F] = input[_F]; } return entries; }; @@ -16153,17 +16153,17 @@ const se_RevokeEndpointAccessMessage = (input: RevokeEndpointAccessMessage, cont */ const se_RevokeSnapshotAccessMessage = (input: RevokeSnapshotAccessMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.SnapshotIdentifier != null) { - entries["SnapshotIdentifier"] = input.SnapshotIdentifier; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.SnapshotArn != null) { - entries["SnapshotArn"] = input.SnapshotArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.SnapshotClusterIdentifier != null) { - entries["SnapshotClusterIdentifier"] = input.SnapshotClusterIdentifier; + if (input[_SCI] != null) { + entries[_SCI] = input[_SCI]; } - if (input.AccountWithRestoreAccess != null) { - entries["AccountWithRestoreAccess"] = input.AccountWithRestoreAccess; + if (input[_AWRA] != null) { + entries[_AWRA] = input[_AWRA]; } return entries; }; @@ -16173,8 +16173,8 @@ const se_RevokeSnapshotAccessMessage = (input: RevokeSnapshotAccessMessage, cont */ const se_RotateEncryptionKeyMessage = (input: RotateEncryptionKeyMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } return entries; }; @@ -16184,12 +16184,12 @@ const se_RotateEncryptionKeyMessage = (input: RotateEncryptionKeyMessage, contex */ const se_ScheduledActionFilter = (input: ScheduledActionFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Values != null) { - const memberEntries = se_ValueStringList(input.Values, context); - if (input.Values?.length === 0) { + if (input[_Va] != null) { + const memberEntries = se_ValueStringList(input[_Va], context); + if (input[_Va]?.length === 0) { entries.Values = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -16224,22 +16224,22 @@ const se_ScheduledActionFilterList = (input: ScheduledActionFilter[], context: _ */ const se_ScheduledActionType = (input: ScheduledActionType, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResizeCluster != null) { - const memberEntries = se_ResizeClusterMessage(input.ResizeCluster, context); + if (input[_RCe] != null) { + const memberEntries = se_ResizeClusterMessage(input[_RCe], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResizeCluster.${key}`; entries[loc] = value; }); } - if (input.PauseCluster != null) { - const memberEntries = se_PauseClusterMessage(input.PauseCluster, context); + if (input[_PC] != null) { + const memberEntries = se_PauseClusterMessage(input[_PC], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `PauseCluster.${key}`; entries[loc] = value; }); } - if (input.ResumeCluster != null) { - const memberEntries = se_ResumeClusterMessage(input.ResumeCluster, context); + if (input[_RCes] != null) { + const memberEntries = se_ResumeClusterMessage(input[_RCes], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ResumeCluster.${key}`; entries[loc] = value; @@ -16327,11 +16327,11 @@ const se_SnapshotIdentifierList = (input: string[], context: __SerdeContext): an */ const se_SnapshotSortingEntity = (input: SnapshotSortingEntity, context: __SerdeContext): any => { const entries: any = {}; - if (input.Attribute != null) { - entries["Attribute"] = input.Attribute; + if (input[_At] != null) { + entries[_At] = input[_At]; } - if (input.SortOrder != null) { - entries["SortOrder"] = input.SortOrder; + if (input[_SO] != null) { + entries[_SO] = input[_SO]; } return entries; }; @@ -16392,11 +16392,11 @@ const se_SubnetIdentifierList = (input: string[], context: __SerdeContext): any */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Val] != null) { + entries[_Val] = input[_Val]; } return entries; }; @@ -16457,23 +16457,23 @@ const se_TagValueList = (input: string[], context: __SerdeContext): any => { */ const se_UpdatePartnerStatusInputMessage = (input: UpdatePartnerStatusInputMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.AccountId != null) { - entries["AccountId"] = input.AccountId; + if (input[_AIc] != null) { + entries[_AIc] = input[_AIc]; } - if (input.ClusterIdentifier != null) { - entries["ClusterIdentifier"] = input.ClusterIdentifier; + if (input[_CIl] != null) { + entries[_CIl] = input[_CIl]; } - if (input.DatabaseName != null) { - entries["DatabaseName"] = input.DatabaseName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.PartnerName != null) { - entries["PartnerName"] = input.PartnerName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.StatusMessage != null) { - entries["StatusMessage"] = input.StatusMessage; + if (input[_SM] != null) { + entries[_SM] = input[_SM]; } return entries; }; @@ -16534,8 +16534,8 @@ const de_AcceptReservedNodeExchangeOutputMessage = ( context: __SerdeContext ): AcceptReservedNodeExchangeOutputMessage => { const contents: any = {}; - if (output["ExchangedReservedNode"] !== undefined) { - contents.ExchangedReservedNode = de_ReservedNode(output["ExchangedReservedNode"], context); + if (output[_ERN] != null) { + contents[_ERN] = de_ReservedNode(output[_ERN], context); } return contents; }; @@ -16545,8 +16545,8 @@ const de_AcceptReservedNodeExchangeOutputMessage = ( */ const de_AccessToClusterDeniedFault = (output: any, context: __SerdeContext): AccessToClusterDeniedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16556,8 +16556,8 @@ const de_AccessToClusterDeniedFault = (output: any, context: __SerdeContext): Ac */ const de_AccessToSnapshotDeniedFault = (output: any, context: __SerdeContext): AccessToSnapshotDeniedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16567,19 +16567,13 @@ const de_AccessToSnapshotDeniedFault = (output: any, context: __SerdeContext): A */ const de_AccountAttribute = (output: any, context: __SerdeContext): AccountAttribute => { const contents: any = {}; - if (output["AttributeName"] !== undefined) { - contents.AttributeName = __expectString(output["AttributeName"]); + if (output[_ANt] != null) { + contents[_ANt] = __expectString(output[_ANt]); } if (output.AttributeValues === "") { - contents.AttributeValues = []; - } else if ( - output["AttributeValues"] !== undefined && - output["AttributeValues"]["AttributeValueTarget"] !== undefined - ) { - contents.AttributeValues = de_AttributeValueList( - __getArrayIfSingleItem(output["AttributeValues"]["AttributeValueTarget"]), - context - ); + contents[_AVt] = []; + } else if (output[_AVt] != null && output[_AVt][_AVT] != null) { + contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVT]), context); } return contents; }; @@ -16590,15 +16584,9 @@ const de_AccountAttribute = (output: any, context: __SerdeContext): AccountAttri const de_AccountAttributeList = (output: any, context: __SerdeContext): AccountAttributeList => { const contents: any = {}; if (output.AccountAttributes === "") { - contents.AccountAttributes = []; - } else if ( - output["AccountAttributes"] !== undefined && - output["AccountAttributes"]["AccountAttribute"] !== undefined - ) { - contents.AccountAttributes = de_AttributeList( - __getArrayIfSingleItem(output["AccountAttributes"]["AccountAttribute"]), - context - ); + contents[_AA] = []; + } else if (output[_AA] != null && output[_AA][_AAc] != null) { + contents[_AA] = de_AttributeList(__getArrayIfSingleItem(output[_AA][_AAc]), context); } return contents; }; @@ -16619,11 +16607,11 @@ const de_AccountsWithRestoreAccessList = (output: any, context: __SerdeContext): */ const de_AccountWithRestoreAccess = (output: any, context: __SerdeContext): AccountWithRestoreAccess => { const contents: any = {}; - if (output["AccountId"] !== undefined) { - contents.AccountId = __expectString(output["AccountId"]); + if (output[_AIc] != null) { + contents[_AIc] = __expectString(output[_AIc]); } - if (output["AccountAlias"] !== undefined) { - contents.AccountAlias = __expectString(output["AccountAlias"]); + if (output[_AAcc] != null) { + contents[_AAcc] = __expectString(output[_AAcc]); } return contents; }; @@ -16633,11 +16621,11 @@ const de_AccountWithRestoreAccess = (output: any, context: __SerdeContext): Acco */ const de_AquaConfiguration = (output: any, context: __SerdeContext): AquaConfiguration => { const contents: any = {}; - if (output["AquaStatus"] !== undefined) { - contents.AquaStatus = __expectString(output["AquaStatus"]); + if (output[_AS] != null) { + contents[_AS] = __expectString(output[_AS]); } - if (output["AquaConfigurationStatus"] !== undefined) { - contents.AquaConfigurationStatus = __expectString(output["AquaConfigurationStatus"]); + if (output[_ACS] != null) { + contents[_ACS] = __expectString(output[_ACS]); } return contents; }; @@ -16658,24 +16646,16 @@ const de_AssociatedClusterList = (output: any, context: __SerdeContext): Cluster */ const de_Association = (output: any, context: __SerdeContext): Association => { const contents: any = {}; - if (output["CustomDomainCertificateArn"] !== undefined) { - contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]); + if (output[_CDCA] != null) { + contents[_CDCA] = __expectString(output[_CDCA]); } - if (output["CustomDomainCertificateExpiryDate"] !== undefined) { - contents.CustomDomainCertificateExpiryDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["CustomDomainCertificateExpiryDate"]) - ); + if (output[_CDCED] != null) { + contents[_CDCED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDCED])); } if (output.CertificateAssociations === "") { - contents.CertificateAssociations = []; - } else if ( - output["CertificateAssociations"] !== undefined && - output["CertificateAssociations"]["CertificateAssociation"] !== undefined - ) { - contents.CertificateAssociations = de_CertificateAssociationList( - __getArrayIfSingleItem(output["CertificateAssociations"]["CertificateAssociation"]), - context - ); + contents[_CAe] = []; + } else if (output[_CAe] != null && output[_CAe][_CAer] != null) { + contents[_CAe] = de_CertificateAssociationList(__getArrayIfSingleItem(output[_CAe][_CAer]), context); } return contents; }; @@ -16718,8 +16698,8 @@ const de_AttributeValueList = (output: any, context: __SerdeContext): AttributeV */ const de_AttributeValueTarget = (output: any, context: __SerdeContext): AttributeValueTarget => { const contents: any = {}; - if (output["AttributeValue"] !== undefined) { - contents.AttributeValue = __expectString(output["AttributeValue"]); + if (output[_AVtt] != null) { + contents[_AVtt] = __expectString(output[_AVtt]); } return contents; }; @@ -16729,11 +16709,11 @@ const de_AttributeValueTarget = (output: any, context: __SerdeContext): Attribut */ const de_AuthenticationProfile = (output: any, context: __SerdeContext): AuthenticationProfile => { const contents: any = {}; - if (output["AuthenticationProfileName"] !== undefined) { - contents.AuthenticationProfileName = __expectString(output["AuthenticationProfileName"]); + if (output[_APN] != null) { + contents[_APN] = __expectString(output[_APN]); } - if (output["AuthenticationProfileContent"] !== undefined) { - contents.AuthenticationProfileContent = __expectString(output["AuthenticationProfileContent"]); + if (output[_APC] != null) { + contents[_APC] = __expectString(output[_APC]); } return contents; }; @@ -16746,8 +16726,8 @@ const de_AuthenticationProfileAlreadyExistsFault = ( context: __SerdeContext ): AuthenticationProfileAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16771,8 +16751,8 @@ const de_AuthenticationProfileNotFoundFault = ( context: __SerdeContext ): AuthenticationProfileNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16785,8 +16765,8 @@ const de_AuthenticationProfileQuotaExceededFault = ( context: __SerdeContext ): AuthenticationProfileQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16796,8 +16776,8 @@ const de_AuthenticationProfileQuotaExceededFault = ( */ const de_AuthorizationAlreadyExistsFault = (output: any, context: __SerdeContext): AuthorizationAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16807,8 +16787,8 @@ const de_AuthorizationAlreadyExistsFault = (output: any, context: __SerdeContext */ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): AuthorizationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16818,8 +16798,8 @@ const de_AuthorizationNotFoundFault = (output: any, context: __SerdeContext): Au */ const de_AuthorizationQuotaExceededFault = (output: any, context: __SerdeContext): AuthorizationQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16832,8 +16812,8 @@ const de_AuthorizeClusterSecurityGroupIngressResult = ( context: __SerdeContext ): AuthorizeClusterSecurityGroupIngressResult => { const contents: any = {}; - if (output["ClusterSecurityGroup"] !== undefined) { - contents.ClusterSecurityGroup = de_ClusterSecurityGroup(output["ClusterSecurityGroup"], context); + if (output[_CSGl] != null) { + contents[_CSGl] = de_ClusterSecurityGroup(output[_CSGl], context); } return contents; }; @@ -16854,19 +16834,13 @@ const de_AuthorizedAudienceList = (output: any, context: __SerdeContext): string */ const de_AuthorizedTokenIssuer = (output: any, context: __SerdeContext): AuthorizedTokenIssuer => { const contents: any = {}; - if (output["TrustedTokenIssuerArn"] !== undefined) { - contents.TrustedTokenIssuerArn = __expectString(output["TrustedTokenIssuerArn"]); + if (output[_TTIA] != null) { + contents[_TTIA] = __expectString(output[_TTIA]); } if (output.AuthorizedAudiencesList === "") { - contents.AuthorizedAudiencesList = []; - } else if ( - output["AuthorizedAudiencesList"] !== undefined && - output["AuthorizedAudiencesList"]["member"] !== undefined - ) { - contents.AuthorizedAudiencesList = de_AuthorizedAudienceList( - __getArrayIfSingleItem(output["AuthorizedAudiencesList"]["member"]), - context - ); + contents[_AAL] = []; + } else if (output[_AAL] != null && output[_AAL][_me] != null) { + contents[_AAL] = de_AuthorizedAudienceList(__getArrayIfSingleItem(output[_AAL][_me]), context); } return contents; }; @@ -16887,8 +16861,8 @@ const de_AuthorizedTokenIssuerList = (output: any, context: __SerdeContext): Aut */ const de_AuthorizeSnapshotAccessResult = (output: any, context: __SerdeContext): AuthorizeSnapshotAccessResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -16898,19 +16872,13 @@ const de_AuthorizeSnapshotAccessResult = (output: any, context: __SerdeContext): */ const de_AvailabilityZone = (output: any, context: __SerdeContext): AvailabilityZone => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } if (output.SupportedPlatforms === "") { - contents.SupportedPlatforms = []; - } else if ( - output["SupportedPlatforms"] !== undefined && - output["SupportedPlatforms"]["SupportedPlatform"] !== undefined - ) { - contents.SupportedPlatforms = de_SupportedPlatformsList( - __getArrayIfSingleItem(output["SupportedPlatforms"]["SupportedPlatform"]), - context - ); + contents[_SP] = []; + } else if (output[_SP] != null && output[_SP][_SPu] != null) { + contents[_SP] = de_SupportedPlatformsList(__getArrayIfSingleItem(output[_SP][_SPu]), context); } return contents; }; @@ -16935,17 +16903,14 @@ const de_BatchDeleteClusterSnapshotsResult = ( ): BatchDeleteClusterSnapshotsResult => { const contents: any = {}; if (output.Resources === "") { - contents.Resources = []; - } else if (output["Resources"] !== undefined && output["Resources"]["String"] !== undefined) { - contents.Resources = de_SnapshotIdentifierList(__getArrayIfSingleItem(output["Resources"]["String"]), context); + contents[_R] = []; + } else if (output[_R] != null && output[_R][_Str] != null) { + contents[_R] = de_SnapshotIdentifierList(__getArrayIfSingleItem(output[_R][_Str]), context); } if (output.Errors === "") { - contents.Errors = []; - } else if (output["Errors"] !== undefined && output["Errors"]["SnapshotErrorMessage"] !== undefined) { - contents.Errors = de_BatchSnapshotOperationErrorList( - __getArrayIfSingleItem(output["Errors"]["SnapshotErrorMessage"]), - context - ); + contents[_Er] = []; + } else if (output[_Er] != null && output[_Er][_SEM] != null) { + contents[_Er] = de_BatchSnapshotOperationErrorList(__getArrayIfSingleItem(output[_Er][_SEM]), context); } return contents; }; @@ -16958,8 +16923,8 @@ const de_BatchDeleteRequestSizeExceededFault = ( context: __SerdeContext ): BatchDeleteRequestSizeExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16972,8 +16937,8 @@ const de_BatchModifyClusterSnapshotsLimitExceededFault = ( context: __SerdeContext ): BatchModifyClusterSnapshotsLimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -16987,17 +16952,14 @@ const de_BatchModifyClusterSnapshotsOutputMessage = ( ): BatchModifyClusterSnapshotsOutputMessage => { const contents: any = {}; if (output.Resources === "") { - contents.Resources = []; - } else if (output["Resources"] !== undefined && output["Resources"]["String"] !== undefined) { - contents.Resources = de_SnapshotIdentifierList(__getArrayIfSingleItem(output["Resources"]["String"]), context); + contents[_R] = []; + } else if (output[_R] != null && output[_R][_Str] != null) { + contents[_R] = de_SnapshotIdentifierList(__getArrayIfSingleItem(output[_R][_Str]), context); } if (output.Errors === "") { - contents.Errors = []; - } else if (output["Errors"] !== undefined && output["Errors"]["SnapshotErrorMessage"] !== undefined) { - contents.Errors = de_BatchSnapshotOperationErrors( - __getArrayIfSingleItem(output["Errors"]["SnapshotErrorMessage"]), - context - ); + contents[_Er] = []; + } else if (output[_Er] != null && output[_Er][_SEM] != null) { + contents[_Er] = de_BatchSnapshotOperationErrors(__getArrayIfSingleItem(output[_Er][_SEM]), context); } return contents; }; @@ -17029,8 +16991,8 @@ const de_BatchSnapshotOperationErrors = (output: any, context: __SerdeContext): */ const de_BucketNotFoundFault = (output: any, context: __SerdeContext): BucketNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17040,11 +17002,11 @@ const de_BucketNotFoundFault = (output: any, context: __SerdeContext): BucketNot */ const de_CertificateAssociation = (output: any, context: __SerdeContext): CertificateAssociation => { const contents: any = {}; - if (output["CustomDomainName"] !== undefined) { - contents.CustomDomainName = __expectString(output["CustomDomainName"]); + if (output[_CDN] != null) { + contents[_CDN] = __expectString(output[_CDN]); } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } return contents; }; @@ -17065,236 +17027,201 @@ const de_CertificateAssociationList = (output: any, context: __SerdeContext): Ce */ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { const contents: any = {}; - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["ClusterStatus"] !== undefined) { - contents.ClusterStatus = __expectString(output["ClusterStatus"]); + if (output[_CS] != null) { + contents[_CS] = __expectString(output[_CS]); } - if (output["ClusterAvailabilityStatus"] !== undefined) { - contents.ClusterAvailabilityStatus = __expectString(output["ClusterAvailabilityStatus"]); + if (output[_CAS] != null) { + contents[_CAS] = __expectString(output[_CAS]); } - if (output["ModifyStatus"] !== undefined) { - contents.ModifyStatus = __expectString(output["ModifyStatus"]); + if (output[_MS] != null) { + contents[_MS] = __expectString(output[_MS]); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["DBName"] !== undefined) { - contents.DBName = __expectString(output["DBName"]); + if (output[_DBN] != null) { + contents[_DBN] = __expectString(output[_DBN]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = de_Endpoint(output["Endpoint"], context); + if (output[_End] != null) { + contents[_End] = de_Endpoint(output[_End], context); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["AutomatedSnapshotRetentionPeriod"] !== undefined) { - contents.AutomatedSnapshotRetentionPeriod = __strictParseInt32( - output["AutomatedSnapshotRetentionPeriod"] - ) as number; + if (output[_ASRP] != null) { + contents[_ASRP] = __strictParseInt32(output[_ASRP]) as number; } - if (output["ManualSnapshotRetentionPeriod"] !== undefined) { - contents.ManualSnapshotRetentionPeriod = __strictParseInt32(output["ManualSnapshotRetentionPeriod"]) as number; + if (output[_MSRP] != null) { + contents[_MSRP] = __strictParseInt32(output[_MSRP]) as number; } if (output.ClusterSecurityGroups === "") { - contents.ClusterSecurityGroups = []; - } else if ( - output["ClusterSecurityGroups"] !== undefined && - output["ClusterSecurityGroups"]["ClusterSecurityGroup"] !== undefined - ) { - contents.ClusterSecurityGroups = de_ClusterSecurityGroupMembershipList( - __getArrayIfSingleItem(output["ClusterSecurityGroups"]["ClusterSecurityGroup"]), - context - ); + contents[_CSG] = []; + } else if (output[_CSG] != null && output[_CSG][_CSGl] != null) { + contents[_CSG] = de_ClusterSecurityGroupMembershipList(__getArrayIfSingleItem(output[_CSG][_CSGl]), context); } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroup"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroup"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGp] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGp]), context); } if (output.ClusterParameterGroups === "") { - contents.ClusterParameterGroups = []; - } else if ( - output["ClusterParameterGroups"] !== undefined && - output["ClusterParameterGroups"]["ClusterParameterGroup"] !== undefined - ) { - contents.ClusterParameterGroups = de_ClusterParameterGroupStatusList( - __getArrayIfSingleItem(output["ClusterParameterGroups"]["ClusterParameterGroup"]), - context - ); + contents[_CPG] = []; + } else if (output[_CPG] != null && output[_CPG][_CPGl] != null) { + contents[_CPG] = de_ClusterParameterGroupStatusList(__getArrayIfSingleItem(output[_CPG][_CPGl]), context); } - if (output["ClusterSubnetGroupName"] !== undefined) { - contents.ClusterSubnetGroupName = __expectString(output["ClusterSubnetGroupName"]); + if (output[_CSGNl] != null) { + contents[_CSGNl] = __expectString(output[_CSGNl]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VIp] != null) { + contents[_VIp] = __expectString(output[_VIp]); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZ] != null) { + contents[_AZ] = __expectString(output[_AZ]); } - if (output["PreferredMaintenanceWindow"] !== undefined) { - contents.PreferredMaintenanceWindow = __expectString(output["PreferredMaintenanceWindow"]); + if (output[_PMW] != null) { + contents[_PMW] = __expectString(output[_PMW]); } - if (output["PendingModifiedValues"] !== undefined) { - contents.PendingModifiedValues = de_PendingModifiedValues(output["PendingModifiedValues"], context); + if (output[_PMV] != null) { + contents[_PMV] = de_PendingModifiedValues(output[_PMV], context); } - if (output["ClusterVersion"] !== undefined) { - contents.ClusterVersion = __expectString(output["ClusterVersion"]); + if (output[_CV] != null) { + contents[_CV] = __expectString(output[_CV]); } - if (output["AllowVersionUpgrade"] !== undefined) { - contents.AllowVersionUpgrade = __parseBoolean(output["AllowVersionUpgrade"]); + if (output[_AVU] != null) { + contents[_AVU] = __parseBoolean(output[_AVU]); } - if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; + if (output[_NON] != null) { + contents[_NON] = __strictParseInt32(output[_NON]) as number; } - if (output["PubliclyAccessible"] !== undefined) { - contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]); + if (output[_PA] != null) { + contents[_PA] = __parseBoolean(output[_PA]); } - if (output["Encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["Encrypted"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["RestoreStatus"] !== undefined) { - contents.RestoreStatus = de_RestoreStatus(output["RestoreStatus"], context); + if (output[_RS] != null) { + contents[_RS] = de_RestoreStatus(output[_RS], context); } - if (output["DataTransferProgress"] !== undefined) { - contents.DataTransferProgress = de_DataTransferProgress(output["DataTransferProgress"], context); + if (output[_DTP] != null) { + contents[_DTP] = de_DataTransferProgress(output[_DTP], context); } - if (output["HsmStatus"] !== undefined) { - contents.HsmStatus = de_HsmStatus(output["HsmStatus"], context); + if (output[_HS] != null) { + contents[_HS] = de_HsmStatus(output[_HS], context); } - if (output["ClusterSnapshotCopyStatus"] !== undefined) { - contents.ClusterSnapshotCopyStatus = de_ClusterSnapshotCopyStatus(output["ClusterSnapshotCopyStatus"], context); + if (output[_CSCS] != null) { + contents[_CSCS] = de_ClusterSnapshotCopyStatus(output[_CSCS], context); } - if (output["ClusterPublicKey"] !== undefined) { - contents.ClusterPublicKey = __expectString(output["ClusterPublicKey"]); + if (output[_CPK] != null) { + contents[_CPK] = __expectString(output[_CPK]); } if (output.ClusterNodes === "") { - contents.ClusterNodes = []; - } else if (output["ClusterNodes"] !== undefined && output["ClusterNodes"]["member"] !== undefined) { - contents.ClusterNodes = de_ClusterNodesList(__getArrayIfSingleItem(output["ClusterNodes"]["member"]), context); + contents[_CN] = []; + } else if (output[_CN] != null && output[_CN][_me] != null) { + contents[_CN] = de_ClusterNodesList(__getArrayIfSingleItem(output[_CN][_me]), context); } - if (output["ElasticIpStatus"] !== undefined) { - contents.ElasticIpStatus = de_ElasticIpStatus(output["ElasticIpStatus"], context); + if (output[_EIS] != null) { + contents[_EIS] = de_ElasticIpStatus(output[_EIS], context); } - if (output["ClusterRevisionNumber"] !== undefined) { - contents.ClusterRevisionNumber = __expectString(output["ClusterRevisionNumber"]); + if (output[_CRN] != null) { + contents[_CRN] = __expectString(output[_CRN]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["EnhancedVpcRouting"] !== undefined) { - contents.EnhancedVpcRouting = __parseBoolean(output["EnhancedVpcRouting"]); + if (output[_EVR] != null) { + contents[_EVR] = __parseBoolean(output[_EVR]); } if (output.IamRoles === "") { - contents.IamRoles = []; - } else if (output["IamRoles"] !== undefined && output["IamRoles"]["ClusterIamRole"] !== undefined) { - contents.IamRoles = de_ClusterIamRoleList(__getArrayIfSingleItem(output["IamRoles"]["ClusterIamRole"]), context); + contents[_IR] = []; + } else if (output[_IR] != null && output[_IR][_CIR] != null) { + contents[_IR] = de_ClusterIamRoleList(__getArrayIfSingleItem(output[_IR][_CIR]), context); } if (output.PendingActions === "") { - contents.PendingActions = []; - } else if (output["PendingActions"] !== undefined && output["PendingActions"]["member"] !== undefined) { - contents.PendingActions = de_PendingActionsList( - __getArrayIfSingleItem(output["PendingActions"]["member"]), - context - ); + contents[_PAe] = []; + } else if (output[_PAe] != null && output[_PAe][_me] != null) { + contents[_PAe] = de_PendingActionsList(__getArrayIfSingleItem(output[_PAe][_me]), context); } - if (output["MaintenanceTrackName"] !== undefined) { - contents.MaintenanceTrackName = __expectString(output["MaintenanceTrackName"]); + if (output[_MTN] != null) { + contents[_MTN] = __expectString(output[_MTN]); } - if (output["ElasticResizeNumberOfNodeOptions"] !== undefined) { - contents.ElasticResizeNumberOfNodeOptions = __expectString(output["ElasticResizeNumberOfNodeOptions"]); + if (output[_ERNONO] != null) { + contents[_ERNONO] = __expectString(output[_ERNONO]); } if (output.DeferredMaintenanceWindows === "") { - contents.DeferredMaintenanceWindows = []; - } else if ( - output["DeferredMaintenanceWindows"] !== undefined && - output["DeferredMaintenanceWindows"]["DeferredMaintenanceWindow"] !== undefined - ) { - contents.DeferredMaintenanceWindows = de_DeferredMaintenanceWindowsList( - __getArrayIfSingleItem(output["DeferredMaintenanceWindows"]["DeferredMaintenanceWindow"]), - context - ); + contents[_DMW] = []; + } else if (output[_DMW] != null && output[_DMW][_DMWe] != null) { + contents[_DMW] = de_DeferredMaintenanceWindowsList(__getArrayIfSingleItem(output[_DMW][_DMWe]), context); } - if (output["SnapshotScheduleIdentifier"] !== undefined) { - contents.SnapshotScheduleIdentifier = __expectString(output["SnapshotScheduleIdentifier"]); + if (output[_SSIn] != null) { + contents[_SSIn] = __expectString(output[_SSIn]); } - if (output["SnapshotScheduleState"] !== undefined) { - contents.SnapshotScheduleState = __expectString(output["SnapshotScheduleState"]); + if (output[_SSS] != null) { + contents[_SSS] = __expectString(output[_SSS]); } - if (output["ExpectedNextSnapshotScheduleTime"] !== undefined) { - contents.ExpectedNextSnapshotScheduleTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ExpectedNextSnapshotScheduleTime"]) - ); + if (output[_ENSST] != null) { + contents[_ENSST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ENSST])); } - if (output["ExpectedNextSnapshotScheduleTimeStatus"] !== undefined) { - contents.ExpectedNextSnapshotScheduleTimeStatus = __expectString(output["ExpectedNextSnapshotScheduleTimeStatus"]); + if (output[_ENSSTS] != null) { + contents[_ENSSTS] = __expectString(output[_ENSSTS]); } - if (output["NextMaintenanceWindowStartTime"] !== undefined) { - contents.NextMaintenanceWindowStartTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["NextMaintenanceWindowStartTime"]) - ); + if (output[_NMWST] != null) { + contents[_NMWST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NMWST])); } - if (output["ResizeInfo"] !== undefined) { - contents.ResizeInfo = de_ResizeInfo(output["ResizeInfo"], context); + if (output[_RI] != null) { + contents[_RI] = de_ResizeInfo(output[_RI], context); } - if (output["AvailabilityZoneRelocationStatus"] !== undefined) { - contents.AvailabilityZoneRelocationStatus = __expectString(output["AvailabilityZoneRelocationStatus"]); + if (output[_AZRS] != null) { + contents[_AZRS] = __expectString(output[_AZRS]); } - if (output["ClusterNamespaceArn"] !== undefined) { - contents.ClusterNamespaceArn = __expectString(output["ClusterNamespaceArn"]); + if (output[_CNA] != null) { + contents[_CNA] = __expectString(output[_CNA]); } - if (output["TotalStorageCapacityInMegaBytes"] !== undefined) { - contents.TotalStorageCapacityInMegaBytes = __strictParseLong(output["TotalStorageCapacityInMegaBytes"]) as number; + if (output[_TSCIMB] != null) { + contents[_TSCIMB] = __strictParseLong(output[_TSCIMB]) as number; } - if (output["AquaConfiguration"] !== undefined) { - contents.AquaConfiguration = de_AquaConfiguration(output["AquaConfiguration"], context); + if (output[_ACq] != null) { + contents[_ACq] = de_AquaConfiguration(output[_ACq], context); } - if (output["DefaultIamRoleArn"] !== undefined) { - contents.DefaultIamRoleArn = __expectString(output["DefaultIamRoleArn"]); + if (output[_DIRA] != null) { + contents[_DIRA] = __expectString(output[_DIRA]); } - if (output["ReservedNodeExchangeStatus"] !== undefined) { - contents.ReservedNodeExchangeStatus = de_ReservedNodeExchangeStatus(output["ReservedNodeExchangeStatus"], context); + if (output[_RNES] != null) { + contents[_RNES] = de_ReservedNodeExchangeStatus(output[_RNES], context); } - if (output["CustomDomainName"] !== undefined) { - contents.CustomDomainName = __expectString(output["CustomDomainName"]); + if (output[_CDN] != null) { + contents[_CDN] = __expectString(output[_CDN]); } - if (output["CustomDomainCertificateArn"] !== undefined) { - contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]); + if (output[_CDCA] != null) { + contents[_CDCA] = __expectString(output[_CDCA]); } - if (output["CustomDomainCertificateExpiryDate"] !== undefined) { - contents.CustomDomainCertificateExpiryDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["CustomDomainCertificateExpiryDate"]) - ); + if (output[_CDCED] != null) { + contents[_CDCED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDCED])); } - if (output["MasterPasswordSecretArn"] !== undefined) { - contents.MasterPasswordSecretArn = __expectString(output["MasterPasswordSecretArn"]); + if (output[_MPSA] != null) { + contents[_MPSA] = __expectString(output[_MPSA]); } - if (output["MasterPasswordSecretKmsKeyId"] !== undefined) { - contents.MasterPasswordSecretKmsKeyId = __expectString(output["MasterPasswordSecretKmsKeyId"]); + if (output[_MPSKKI] != null) { + contents[_MPSKKI] = __expectString(output[_MPSKKI]); } - if (output["IpAddressType"] !== undefined) { - contents.IpAddressType = __expectString(output["IpAddressType"]); + if (output[_IAT] != null) { + contents[_IAT] = __expectString(output[_IAT]); } - if (output["MultiAZ"] !== undefined) { - contents.MultiAZ = __expectString(output["MultiAZ"]); + if (output[_MAZ] != null) { + contents[_MAZ] = __expectString(output[_MAZ]); } - if (output["MultiAZSecondary"] !== undefined) { - contents.MultiAZSecondary = de_SecondaryClusterInfo(output["MultiAZSecondary"], context); + if (output[_MAZS] != null) { + contents[_MAZS] = de_SecondaryClusterInfo(output[_MAZS], context); } return contents; }; @@ -17304,8 +17231,8 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { */ const de_ClusterAlreadyExistsFault = (output: any, context: __SerdeContext): ClusterAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17315,11 +17242,11 @@ const de_ClusterAlreadyExistsFault = (output: any, context: __SerdeContext): Clu */ const de_ClusterAssociatedToSchedule = (output: any, context: __SerdeContext): ClusterAssociatedToSchedule => { const contents: any = {}; - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["ScheduleAssociationState"] !== undefined) { - contents.ScheduleAssociationState = __expectString(output["ScheduleAssociationState"]); + if (output[_SAS] != null) { + contents[_SAS] = __expectString(output[_SAS]); } return contents; }; @@ -17329,14 +17256,14 @@ const de_ClusterAssociatedToSchedule = (output: any, context: __SerdeContext): C */ const de_ClusterCredentials = (output: any, context: __SerdeContext): ClusterCredentials => { const contents: any = {}; - if (output["DbUser"] !== undefined) { - contents.DbUser = __expectString(output["DbUser"]); + if (output[_DU] != null) { + contents[_DU] = __expectString(output[_DU]); } - if (output["DbPassword"] !== undefined) { - contents.DbPassword = __expectString(output["DbPassword"]); + if (output[_DPb] != null) { + contents[_DPb] = __expectString(output[_DPb]); } - if (output["Expiration"] !== undefined) { - contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"])); + if (output[_Ex] != null) { + contents[_Ex] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ex])); } return contents; }; @@ -17346,24 +17273,19 @@ const de_ClusterCredentials = (output: any, context: __SerdeContext): ClusterCre */ const de_ClusterDbRevision = (output: any, context: __SerdeContext): ClusterDbRevision => { const contents: any = {}; - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["CurrentDatabaseRevision"] !== undefined) { - contents.CurrentDatabaseRevision = __expectString(output["CurrentDatabaseRevision"]); + if (output[_CDR] != null) { + contents[_CDR] = __expectString(output[_CDR]); } - if (output["DatabaseRevisionReleaseDate"] !== undefined) { - contents.DatabaseRevisionReleaseDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["DatabaseRevisionReleaseDate"]) - ); + if (output[_DRRD] != null) { + contents[_DRRD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DRRD])); } if (output.RevisionTargets === "") { - contents.RevisionTargets = []; - } else if (output["RevisionTargets"] !== undefined && output["RevisionTargets"]["RevisionTarget"] !== undefined) { - contents.RevisionTargets = de_RevisionTargetsList( - __getArrayIfSingleItem(output["RevisionTargets"]["RevisionTarget"]), - context - ); + contents[_RTev] = []; + } else if (output[_RTev] != null && output[_RTev][_RTe] != null) { + contents[_RTev] = de_RevisionTargetsList(__getArrayIfSingleItem(output[_RTev][_RTe]), context); } return contents; }; @@ -17384,19 +17306,13 @@ const de_ClusterDbRevisionsList = (output: any, context: __SerdeContext): Cluste */ const de_ClusterDbRevisionsMessage = (output: any, context: __SerdeContext): ClusterDbRevisionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ClusterDbRevisions === "") { - contents.ClusterDbRevisions = []; - } else if ( - output["ClusterDbRevisions"] !== undefined && - output["ClusterDbRevisions"]["ClusterDbRevision"] !== undefined - ) { - contents.ClusterDbRevisions = de_ClusterDbRevisionsList( - __getArrayIfSingleItem(output["ClusterDbRevisions"]["ClusterDbRevision"]), - context - ); + contents[_CDRl] = []; + } else if (output[_CDRl] != null && output[_CDRl][_CDRlu] != null) { + contents[_CDRl] = de_ClusterDbRevisionsList(__getArrayIfSingleItem(output[_CDRl][_CDRlu]), context); } return contents; }; @@ -17406,17 +17322,17 @@ const de_ClusterDbRevisionsMessage = (output: any, context: __SerdeContext): Clu */ const de_ClusterExtendedCredentials = (output: any, context: __SerdeContext): ClusterExtendedCredentials => { const contents: any = {}; - if (output["DbUser"] !== undefined) { - contents.DbUser = __expectString(output["DbUser"]); + if (output[_DU] != null) { + contents[_DU] = __expectString(output[_DU]); } - if (output["DbPassword"] !== undefined) { - contents.DbPassword = __expectString(output["DbPassword"]); + if (output[_DPb] != null) { + contents[_DPb] = __expectString(output[_DPb]); } - if (output["Expiration"] !== undefined) { - contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"])); + if (output[_Ex] != null) { + contents[_Ex] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ex])); } - if (output["NextRefreshTime"] !== undefined) { - contents.NextRefreshTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["NextRefreshTime"])); + if (output[_NRT] != null) { + contents[_NRT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_NRT])); } return contents; }; @@ -17426,11 +17342,11 @@ const de_ClusterExtendedCredentials = (output: any, context: __SerdeContext): Cl */ const de_ClusterIamRole = (output: any, context: __SerdeContext): ClusterIamRole => { const contents: any = {}; - if (output["IamRoleArn"] !== undefined) { - contents.IamRoleArn = __expectString(output["IamRoleArn"]); + if (output[_IRA] != null) { + contents[_IRA] = __expectString(output[_IRA]); } - if (output["ApplyStatus"] !== undefined) { - contents.ApplyStatus = __expectString(output["ApplyStatus"]); + if (output[_ASp] != null) { + contents[_ASp] = __expectString(output[_ASp]); } return contents; }; @@ -17462,14 +17378,14 @@ const de_ClusterList = (output: any, context: __SerdeContext): Cluster[] => { */ const de_ClusterNode = (output: any, context: __SerdeContext): ClusterNode => { const contents: any = {}; - if (output["NodeRole"] !== undefined) { - contents.NodeRole = __expectString(output["NodeRole"]); + if (output[_NR] != null) { + contents[_NR] = __expectString(output[_NR]); } - if (output["PrivateIPAddress"] !== undefined) { - contents.PrivateIPAddress = __expectString(output["PrivateIPAddress"]); + if (output[_PIPA] != null) { + contents[_PIPA] = __expectString(output[_PIPA]); } - if (output["PublicIPAddress"] !== undefined) { - contents.PublicIPAddress = __expectString(output["PublicIPAddress"]); + if (output[_PIPAu] != null) { + contents[_PIPAu] = __expectString(output[_PIPAu]); } return contents; }; @@ -17490,8 +17406,8 @@ const de_ClusterNodesList = (output: any, context: __SerdeContext): ClusterNode[ */ const de_ClusterNotFoundFault = (output: any, context: __SerdeContext): ClusterNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17501,8 +17417,8 @@ const de_ClusterNotFoundFault = (output: any, context: __SerdeContext): ClusterN */ const de_ClusterOnLatestRevisionFault = (output: any, context: __SerdeContext): ClusterOnLatestRevisionFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17512,19 +17428,19 @@ const de_ClusterOnLatestRevisionFault = (output: any, context: __SerdeContext): */ const de_ClusterParameterGroup = (output: any, context: __SerdeContext): ClusterParameterGroup => { const contents: any = {}; - if (output["ParameterGroupName"] !== undefined) { - contents.ParameterGroupName = __expectString(output["ParameterGroupName"]); + if (output[_PGN] != null) { + contents[_PGN] = __expectString(output[_PGN]); } - if (output["ParameterGroupFamily"] !== undefined) { - contents.ParameterGroupFamily = __expectString(output["ParameterGroupFamily"]); + if (output[_PGF] != null) { + contents[_PGF] = __expectString(output[_PGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -17537,8 +17453,8 @@ const de_ClusterParameterGroupAlreadyExistsFault = ( context: __SerdeContext ): ClusterParameterGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17549,12 +17465,12 @@ const de_ClusterParameterGroupAlreadyExistsFault = ( const de_ClusterParameterGroupDetails = (output: any, context: __SerdeContext): ClusterParameterGroupDetails => { const contents: any = {}; if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -17567,11 +17483,11 @@ const de_ClusterParameterGroupNameMessage = ( context: __SerdeContext ): ClusterParameterGroupNameMessage => { const contents: any = {}; - if (output["ParameterGroupName"] !== undefined) { - contents.ParameterGroupName = __expectString(output["ParameterGroupName"]); + if (output[_PGN] != null) { + contents[_PGN] = __expectString(output[_PGN]); } - if (output["ParameterGroupStatus"] !== undefined) { - contents.ParameterGroupStatus = __expectString(output["ParameterGroupStatus"]); + if (output[_PGS] != null) { + contents[_PGS] = __expectString(output[_PGS]); } return contents; }; @@ -17584,8 +17500,8 @@ const de_ClusterParameterGroupNotFoundFault = ( context: __SerdeContext ): ClusterParameterGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17598,8 +17514,8 @@ const de_ClusterParameterGroupQuotaExceededFault = ( context: __SerdeContext ): ClusterParameterGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17609,19 +17525,13 @@ const de_ClusterParameterGroupQuotaExceededFault = ( */ const de_ClusterParameterGroupsMessage = (output: any, context: __SerdeContext): ClusterParameterGroupsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ParameterGroups === "") { - contents.ParameterGroups = []; - } else if ( - output["ParameterGroups"] !== undefined && - output["ParameterGroups"]["ClusterParameterGroup"] !== undefined - ) { - contents.ParameterGroups = de_ParameterGroupList( - __getArrayIfSingleItem(output["ParameterGroups"]["ClusterParameterGroup"]), - context - ); + contents[_PG] = []; + } else if (output[_PG] != null && output[_PG][_CPGl] != null) { + contents[_PG] = de_ParameterGroupList(__getArrayIfSingleItem(output[_PG][_CPGl]), context); } return contents; }; @@ -17631,22 +17541,16 @@ const de_ClusterParameterGroupsMessage = (output: any, context: __SerdeContext): */ const de_ClusterParameterGroupStatus = (output: any, context: __SerdeContext): ClusterParameterGroupStatus => { const contents: any = {}; - if (output["ParameterGroupName"] !== undefined) { - contents.ParameterGroupName = __expectString(output["ParameterGroupName"]); + if (output[_PGN] != null) { + contents[_PGN] = __expectString(output[_PGN]); } - if (output["ParameterApplyStatus"] !== undefined) { - contents.ParameterApplyStatus = __expectString(output["ParameterApplyStatus"]); + if (output[_PAS] != null) { + contents[_PAS] = __expectString(output[_PAS]); } if (output.ClusterParameterStatusList === "") { - contents.ClusterParameterStatusList = []; - } else if ( - output["ClusterParameterStatusList"] !== undefined && - output["ClusterParameterStatusList"]["member"] !== undefined - ) { - contents.ClusterParameterStatusList = de_ClusterParameterStatusList( - __getArrayIfSingleItem(output["ClusterParameterStatusList"]["member"]), - context - ); + contents[_CPSL] = []; + } else if (output[_CPSL] != null && output[_CPSL][_me] != null) { + contents[_CPSL] = de_ClusterParameterStatusList(__getArrayIfSingleItem(output[_CPSL][_me]), context); } return contents; }; @@ -17667,14 +17571,14 @@ const de_ClusterParameterGroupStatusList = (output: any, context: __SerdeContext */ const de_ClusterParameterStatus = (output: any, context: __SerdeContext): ClusterParameterStatus => { const contents: any = {}; - if (output["ParameterName"] !== undefined) { - contents.ParameterName = __expectString(output["ParameterName"]); + if (output[_PNa] != null) { + contents[_PNa] = __expectString(output[_PNa]); } - if (output["ParameterApplyStatus"] !== undefined) { - contents.ParameterApplyStatus = __expectString(output["ParameterApplyStatus"]); + if (output[_PAS] != null) { + contents[_PAS] = __expectString(output[_PAS]); } - if (output["ParameterApplyErrorDescription"] !== undefined) { - contents.ParameterApplyErrorDescription = __expectString(output["ParameterApplyErrorDescription"]); + if (output[_PAED] != null) { + contents[_PAED] = __expectString(output[_PAED]); } return contents; }; @@ -17695,8 +17599,8 @@ const de_ClusterParameterStatusList = (output: any, context: __SerdeContext): Cl */ const de_ClusterQuotaExceededFault = (output: any, context: __SerdeContext): ClusterQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17706,32 +17610,26 @@ const de_ClusterQuotaExceededFault = (output: any, context: __SerdeContext): Clu */ const de_ClusterSecurityGroup = (output: any, context: __SerdeContext): ClusterSecurityGroup => { const contents: any = {}; - if (output["ClusterSecurityGroupName"] !== undefined) { - contents.ClusterSecurityGroupName = __expectString(output["ClusterSecurityGroupName"]); + if (output[_CSGN] != null) { + contents[_CSGN] = __expectString(output[_CSGN]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } if (output.EC2SecurityGroups === "") { - contents.EC2SecurityGroups = []; - } else if ( - output["EC2SecurityGroups"] !== undefined && - output["EC2SecurityGroups"]["EC2SecurityGroup"] !== undefined - ) { - contents.EC2SecurityGroups = de_EC2SecurityGroupList( - __getArrayIfSingleItem(output["EC2SecurityGroups"]["EC2SecurityGroup"]), - context - ); + contents[_ECSG] = []; + } else if (output[_ECSG] != null && output[_ECSG][_ECSGe] != null) { + contents[_ECSG] = de_EC2SecurityGroupList(__getArrayIfSingleItem(output[_ECSG][_ECSGe]), context); } if (output.IPRanges === "") { - contents.IPRanges = []; - } else if (output["IPRanges"] !== undefined && output["IPRanges"]["IPRange"] !== undefined) { - contents.IPRanges = de_IPRangeList(__getArrayIfSingleItem(output["IPRanges"]["IPRange"]), context); + contents[_IPR] = []; + } else if (output[_IPR] != null && output[_IPR][_IPRa] != null) { + contents[_IPR] = de_IPRangeList(__getArrayIfSingleItem(output[_IPR][_IPRa]), context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -17744,8 +17642,8 @@ const de_ClusterSecurityGroupAlreadyExistsFault = ( context: __SerdeContext ): ClusterSecurityGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17755,11 +17653,11 @@ const de_ClusterSecurityGroupAlreadyExistsFault = ( */ const de_ClusterSecurityGroupMembership = (output: any, context: __SerdeContext): ClusterSecurityGroupMembership => { const contents: any = {}; - if (output["ClusterSecurityGroupName"] !== undefined) { - contents.ClusterSecurityGroupName = __expectString(output["ClusterSecurityGroupName"]); + if (output[_CSGN] != null) { + contents[_CSGN] = __expectString(output[_CSGN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -17783,19 +17681,13 @@ const de_ClusterSecurityGroupMembershipList = ( */ const de_ClusterSecurityGroupMessage = (output: any, context: __SerdeContext): ClusterSecurityGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ClusterSecurityGroups === "") { - contents.ClusterSecurityGroups = []; - } else if ( - output["ClusterSecurityGroups"] !== undefined && - output["ClusterSecurityGroups"]["ClusterSecurityGroup"] !== undefined - ) { - contents.ClusterSecurityGroups = de_ClusterSecurityGroups( - __getArrayIfSingleItem(output["ClusterSecurityGroups"]["ClusterSecurityGroup"]), - context - ); + contents[_CSG] = []; + } else if (output[_CSG] != null && output[_CSG][_CSGl] != null) { + contents[_CSG] = de_ClusterSecurityGroups(__getArrayIfSingleItem(output[_CSG][_CSGl]), context); } return contents; }; @@ -17808,8 +17700,8 @@ const de_ClusterSecurityGroupNotFoundFault = ( context: __SerdeContext ): ClusterSecurityGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17822,8 +17714,8 @@ const de_ClusterSecurityGroupQuotaExceededFault = ( context: __SerdeContext ): ClusterSecurityGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17844,13 +17736,13 @@ const de_ClusterSecurityGroups = (output: any, context: __SerdeContext): Cluster */ const de_ClustersMessage = (output: any, context: __SerdeContext): ClustersMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Clusters === "") { - contents.Clusters = []; - } else if (output["Clusters"] !== undefined && output["Clusters"]["Cluster"] !== undefined) { - contents.Clusters = de_ClusterList(__getArrayIfSingleItem(output["Clusters"]["Cluster"]), context); + contents[_Cl] = []; + } else if (output[_Cl] != null && output[_Cl][_Clu] != null) { + contents[_Cl] = de_ClusterList(__getArrayIfSingleItem(output[_Cl][_Clu]), context); } return contents; }; @@ -17863,8 +17755,8 @@ const de_ClusterSnapshotAlreadyExistsFault = ( context: __SerdeContext ): ClusterSnapshotAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17874,17 +17766,17 @@ const de_ClusterSnapshotAlreadyExistsFault = ( */ const de_ClusterSnapshotCopyStatus = (output: any, context: __SerdeContext): ClusterSnapshotCopyStatus => { const contents: any = {}; - if (output["DestinationRegion"] !== undefined) { - contents.DestinationRegion = __expectString(output["DestinationRegion"]); + if (output[_DRe] != null) { + contents[_DRe] = __expectString(output[_DRe]); } - if (output["RetentionPeriod"] !== undefined) { - contents.RetentionPeriod = __strictParseLong(output["RetentionPeriod"]) as number; + if (output[_RP] != null) { + contents[_RP] = __strictParseLong(output[_RP]) as number; } - if (output["ManualSnapshotRetentionPeriod"] !== undefined) { - contents.ManualSnapshotRetentionPeriod = __strictParseInt32(output["ManualSnapshotRetentionPeriod"]) as number; + if (output[_MSRP] != null) { + contents[_MSRP] = __strictParseInt32(output[_MSRP]) as number; } - if (output["SnapshotCopyGrantName"] !== undefined) { - contents.SnapshotCopyGrantName = __expectString(output["SnapshotCopyGrantName"]); + if (output[_SCGN] != null) { + contents[_SCGN] = __expectString(output[_SCGN]); } return contents; }; @@ -17894,8 +17786,8 @@ const de_ClusterSnapshotCopyStatus = (output: any, context: __SerdeContext): Clu */ const de_ClusterSnapshotNotFoundFault = (output: any, context: __SerdeContext): ClusterSnapshotNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17908,8 +17800,8 @@ const de_ClusterSnapshotQuotaExceededFault = ( context: __SerdeContext ): ClusterSnapshotQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17919,38 +17811,32 @@ const de_ClusterSnapshotQuotaExceededFault = ( */ const de_ClusterSubnetGroup = (output: any, context: __SerdeContext): ClusterSubnetGroup => { const contents: any = {}; - if (output["ClusterSubnetGroupName"] !== undefined) { - contents.ClusterSubnetGroupName = __expectString(output["ClusterSubnetGroupName"]); + if (output[_CSGNl] != null) { + contents[_CSGNl] = __expectString(output[_CSGNl]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VIp] != null) { + contents[_VIp] = __expectString(output[_VIp]); } - if (output["SubnetGroupStatus"] !== undefined) { - contents.SubnetGroupStatus = __expectString(output["SubnetGroupStatus"]); + if (output[_SGS] != null) { + contents[_SGS] = __expectString(output[_SGS]); } if (output.Subnets === "") { - contents.Subnets = []; - } else if (output["Subnets"] !== undefined && output["Subnets"]["Subnet"] !== undefined) { - contents.Subnets = de_SubnetList(__getArrayIfSingleItem(output["Subnets"]["Subnet"]), context); + contents[_Su] = []; + } else if (output[_Su] != null && output[_Su][_Sub] != null) { + contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } if (output.SupportedClusterIpAddressTypes === "") { - contents.SupportedClusterIpAddressTypes = []; - } else if ( - output["SupportedClusterIpAddressTypes"] !== undefined && - output["SupportedClusterIpAddressTypes"]["item"] !== undefined - ) { - contents.SupportedClusterIpAddressTypes = de_ValueStringList( - __getArrayIfSingleItem(output["SupportedClusterIpAddressTypes"]["item"]), - context - ); + contents[_SCIAT] = []; + } else if (output[_SCIAT] != null && output[_SCIAT][_i] != null) { + contents[_SCIAT] = de_ValueStringList(__getArrayIfSingleItem(output[_SCIAT][_i]), context); } return contents; }; @@ -17963,8 +17849,8 @@ const de_ClusterSubnetGroupAlreadyExistsFault = ( context: __SerdeContext ): ClusterSubnetGroupAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -17974,19 +17860,13 @@ const de_ClusterSubnetGroupAlreadyExistsFault = ( */ const de_ClusterSubnetGroupMessage = (output: any, context: __SerdeContext): ClusterSubnetGroupMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ClusterSubnetGroups === "") { - contents.ClusterSubnetGroups = []; - } else if ( - output["ClusterSubnetGroups"] !== undefined && - output["ClusterSubnetGroups"]["ClusterSubnetGroup"] !== undefined - ) { - contents.ClusterSubnetGroups = de_ClusterSubnetGroups( - __getArrayIfSingleItem(output["ClusterSubnetGroups"]["ClusterSubnetGroup"]), - context - ); + contents[_CSGlu] = []; + } else if (output[_CSGlu] != null && output[_CSGlu][_CSGlus] != null) { + contents[_CSGlu] = de_ClusterSubnetGroups(__getArrayIfSingleItem(output[_CSGlu][_CSGlus]), context); } return contents; }; @@ -17996,8 +17876,8 @@ const de_ClusterSubnetGroupMessage = (output: any, context: __SerdeContext): Clu */ const de_ClusterSubnetGroupNotFoundFault = (output: any, context: __SerdeContext): ClusterSubnetGroupNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18010,8 +17890,8 @@ const de_ClusterSubnetGroupQuotaExceededFault = ( context: __SerdeContext ): ClusterSubnetGroupQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18032,8 +17912,8 @@ const de_ClusterSubnetGroups = (output: any, context: __SerdeContext): ClusterSu */ const de_ClusterSubnetQuotaExceededFault = (output: any, context: __SerdeContext): ClusterSubnetQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18043,14 +17923,14 @@ const de_ClusterSubnetQuotaExceededFault = (output: any, context: __SerdeContext */ const de_ClusterVersion = (output: any, context: __SerdeContext): ClusterVersion => { const contents: any = {}; - if (output["ClusterVersion"] !== undefined) { - contents.ClusterVersion = __expectString(output["ClusterVersion"]); + if (output[_CV] != null) { + contents[_CV] = __expectString(output[_CV]); } - if (output["ClusterParameterGroupFamily"] !== undefined) { - contents.ClusterParameterGroupFamily = __expectString(output["ClusterParameterGroupFamily"]); + if (output[_CPGF] != null) { + contents[_CPGF] = __expectString(output[_CPGF]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } return contents; }; @@ -18071,16 +17951,13 @@ const de_ClusterVersionList = (output: any, context: __SerdeContext): ClusterVer */ const de_ClusterVersionsMessage = (output: any, context: __SerdeContext): ClusterVersionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ClusterVersions === "") { - contents.ClusterVersions = []; - } else if (output["ClusterVersions"] !== undefined && output["ClusterVersions"]["ClusterVersion"] !== undefined) { - contents.ClusterVersions = de_ClusterVersionList( - __getArrayIfSingleItem(output["ClusterVersions"]["ClusterVersion"]), - context - ); + contents[_CVl] = []; + } else if (output[_CVl] != null && output[_CVl][_CV] != null) { + contents[_CVl] = de_ClusterVersionList(__getArrayIfSingleItem(output[_CVl][_CV]), context); } return contents; }; @@ -18090,8 +17967,8 @@ const de_ClusterVersionsMessage = (output: any, context: __SerdeContext): Cluste */ const de_ConflictPolicyUpdateFault = (output: any, context: __SerdeContext): ConflictPolicyUpdateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18101,8 +17978,8 @@ const de_ConflictPolicyUpdateFault = (output: any, context: __SerdeContext): Con */ const de_CopyClusterSnapshotResult = (output: any, context: __SerdeContext): CopyClusterSnapshotResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -18112,8 +17989,8 @@ const de_CopyClusterSnapshotResult = (output: any, context: __SerdeContext): Cop */ const de_CopyToRegionDisabledFault = (output: any, context: __SerdeContext): CopyToRegionDisabledFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18126,11 +18003,11 @@ const de_CreateAuthenticationProfileResult = ( context: __SerdeContext ): CreateAuthenticationProfileResult => { const contents: any = {}; - if (output["AuthenticationProfileName"] !== undefined) { - contents.AuthenticationProfileName = __expectString(output["AuthenticationProfileName"]); + if (output[_APN] != null) { + contents[_APN] = __expectString(output[_APN]); } - if (output["AuthenticationProfileContent"] !== undefined) { - contents.AuthenticationProfileContent = __expectString(output["AuthenticationProfileContent"]); + if (output[_APC] != null) { + contents[_APC] = __expectString(output[_APC]); } return contents; }; @@ -18143,8 +18020,8 @@ const de_CreateClusterParameterGroupResult = ( context: __SerdeContext ): CreateClusterParameterGroupResult => { const contents: any = {}; - if (output["ClusterParameterGroup"] !== undefined) { - contents.ClusterParameterGroup = de_ClusterParameterGroup(output["ClusterParameterGroup"], context); + if (output[_CPGl] != null) { + contents[_CPGl] = de_ClusterParameterGroup(output[_CPGl], context); } return contents; }; @@ -18154,8 +18031,8 @@ const de_CreateClusterParameterGroupResult = ( */ const de_CreateClusterResult = (output: any, context: __SerdeContext): CreateClusterResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -18168,8 +18045,8 @@ const de_CreateClusterSecurityGroupResult = ( context: __SerdeContext ): CreateClusterSecurityGroupResult => { const contents: any = {}; - if (output["ClusterSecurityGroup"] !== undefined) { - contents.ClusterSecurityGroup = de_ClusterSecurityGroup(output["ClusterSecurityGroup"], context); + if (output[_CSGl] != null) { + contents[_CSGl] = de_ClusterSecurityGroup(output[_CSGl], context); } return contents; }; @@ -18179,8 +18056,8 @@ const de_CreateClusterSecurityGroupResult = ( */ const de_CreateClusterSnapshotResult = (output: any, context: __SerdeContext): CreateClusterSnapshotResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -18190,8 +18067,8 @@ const de_CreateClusterSnapshotResult = (output: any, context: __SerdeContext): C */ const de_CreateClusterSubnetGroupResult = (output: any, context: __SerdeContext): CreateClusterSubnetGroupResult => { const contents: any = {}; - if (output["ClusterSubnetGroup"] !== undefined) { - contents.ClusterSubnetGroup = de_ClusterSubnetGroup(output["ClusterSubnetGroup"], context); + if (output[_CSGlus] != null) { + contents[_CSGlus] = de_ClusterSubnetGroup(output[_CSGlus], context); } return contents; }; @@ -18204,17 +18081,17 @@ const de_CreateCustomDomainAssociationResult = ( context: __SerdeContext ): CreateCustomDomainAssociationResult => { const contents: any = {}; - if (output["CustomDomainName"] !== undefined) { - contents.CustomDomainName = __expectString(output["CustomDomainName"]); + if (output[_CDN] != null) { + contents[_CDN] = __expectString(output[_CDN]); } - if (output["CustomDomainCertificateArn"] !== undefined) { - contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]); + if (output[_CDCA] != null) { + contents[_CDCA] = __expectString(output[_CDCA]); } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["CustomDomainCertExpiryTime"] !== undefined) { - contents.CustomDomainCertExpiryTime = __expectString(output["CustomDomainCertExpiryTime"]); + if (output[_CDCET] != null) { + contents[_CDCET] = __expectString(output[_CDCET]); } return contents; }; @@ -18224,8 +18101,8 @@ const de_CreateCustomDomainAssociationResult = ( */ const de_CreateEventSubscriptionResult = (output: any, context: __SerdeContext): CreateEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -18238,8 +18115,8 @@ const de_CreateHsmClientCertificateResult = ( context: __SerdeContext ): CreateHsmClientCertificateResult => { const contents: any = {}; - if (output["HsmClientCertificate"] !== undefined) { - contents.HsmClientCertificate = de_HsmClientCertificate(output["HsmClientCertificate"], context); + if (output[_HCC] != null) { + contents[_HCC] = de_HsmClientCertificate(output[_HCC], context); } return contents; }; @@ -18249,8 +18126,8 @@ const de_CreateHsmClientCertificateResult = ( */ const de_CreateHsmConfigurationResult = (output: any, context: __SerdeContext): CreateHsmConfigurationResult => { const contents: any = {}; - if (output["HsmConfiguration"] !== undefined) { - contents.HsmConfiguration = de_HsmConfiguration(output["HsmConfiguration"], context); + if (output[_HC] != null) { + contents[_HC] = de_HsmConfiguration(output[_HC], context); } return contents; }; @@ -18263,8 +18140,8 @@ const de_CreateRedshiftIdcApplicationResult = ( context: __SerdeContext ): CreateRedshiftIdcApplicationResult => { const contents: any = {}; - if (output["RedshiftIdcApplication"] !== undefined) { - contents.RedshiftIdcApplication = de_RedshiftIdcApplication(output["RedshiftIdcApplication"], context); + if (output[_RIA] != null) { + contents[_RIA] = de_RedshiftIdcApplication(output[_RIA], context); } return contents; }; @@ -18274,8 +18151,8 @@ const de_CreateRedshiftIdcApplicationResult = ( */ const de_CreateSnapshotCopyGrantResult = (output: any, context: __SerdeContext): CreateSnapshotCopyGrantResult => { const contents: any = {}; - if (output["SnapshotCopyGrant"] !== undefined) { - contents.SnapshotCopyGrant = de_SnapshotCopyGrant(output["SnapshotCopyGrant"], context); + if (output[_SCG] != null) { + contents[_SCG] = de_SnapshotCopyGrant(output[_SCG], context); } return contents; }; @@ -18285,8 +18162,8 @@ const de_CreateSnapshotCopyGrantResult = (output: any, context: __SerdeContext): */ const de_CustomCnameAssociationFault = (output: any, context: __SerdeContext): CustomCnameAssociationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18299,8 +18176,8 @@ const de_CustomDomainAssociationNotFoundFault = ( context: __SerdeContext ): CustomDomainAssociationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18310,13 +18187,13 @@ const de_CustomDomainAssociationNotFoundFault = ( */ const de_CustomDomainAssociationsMessage = (output: any, context: __SerdeContext): CustomDomainAssociationsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Associations === "") { - contents.Associations = []; - } else if (output["Associations"] !== undefined && output["Associations"]["Association"] !== undefined) { - contents.Associations = de_AssociationList(__getArrayIfSingleItem(output["Associations"]["Association"]), context); + contents[_As] = []; + } else if (output[_As] != null && output[_As][_Ass] != null) { + contents[_As] = de_AssociationList(__getArrayIfSingleItem(output[_As][_Ass]), context); } return contents; }; @@ -18326,13 +18203,11 @@ const de_CustomDomainAssociationsMessage = (output: any, context: __SerdeContext */ const de_CustomerStorageMessage = (output: any, context: __SerdeContext): CustomerStorageMessage => { const contents: any = {}; - if (output["TotalBackupSizeInMegaBytes"] !== undefined) { - contents.TotalBackupSizeInMegaBytes = __strictParseFloat(output["TotalBackupSizeInMegaBytes"]) as number; + if (output[_TBSIMB] != null) { + contents[_TBSIMB] = __strictParseFloat(output[_TBSIMB]) as number; } - if (output["TotalProvisionedStorageInMegaBytes"] !== undefined) { - contents.TotalProvisionedStorageInMegaBytes = __strictParseFloat( - output["TotalProvisionedStorageInMegaBytes"] - ) as number; + if (output[_TPSIMB] != null) { + contents[_TPSIMB] = __strictParseFloat(output[_TPSIMB]) as number; } return contents; }; @@ -18342,25 +18217,22 @@ const de_CustomerStorageMessage = (output: any, context: __SerdeContext): Custom */ const de_DataShare = (output: any, context: __SerdeContext): DataShare => { const contents: any = {}; - if (output["DataShareArn"] !== undefined) { - contents.DataShareArn = __expectString(output["DataShareArn"]); + if (output[_DSAa] != null) { + contents[_DSAa] = __expectString(output[_DSAa]); } - if (output["ProducerArn"] !== undefined) { - contents.ProducerArn = __expectString(output["ProducerArn"]); + if (output[_PAr] != null) { + contents[_PAr] = __expectString(output[_PAr]); } - if (output["AllowPubliclyAccessibleConsumers"] !== undefined) { - contents.AllowPubliclyAccessibleConsumers = __parseBoolean(output["AllowPubliclyAccessibleConsumers"]); + if (output[_APAC] != null) { + contents[_APAC] = __parseBoolean(output[_APAC]); } if (output.DataShareAssociations === "") { - contents.DataShareAssociations = []; - } else if (output["DataShareAssociations"] !== undefined && output["DataShareAssociations"]["member"] !== undefined) { - contents.DataShareAssociations = de_DataShareAssociationList( - __getArrayIfSingleItem(output["DataShareAssociations"]["member"]), - context - ); + contents[_DSAat] = []; + } else if (output[_DSAat] != null && output[_DSAat][_me] != null) { + contents[_DSAat] = de_DataShareAssociationList(__getArrayIfSingleItem(output[_DSAat][_me]), context); } - if (output["ManagedBy"] !== undefined) { - contents.ManagedBy = __expectString(output["ManagedBy"]); + if (output[_MB] != null) { + contents[_MB] = __expectString(output[_MB]); } return contents; }; @@ -18370,26 +18242,26 @@ const de_DataShare = (output: any, context: __SerdeContext): DataShare => { */ const de_DataShareAssociation = (output: any, context: __SerdeContext): DataShareAssociation => { const contents: any = {}; - if (output["ConsumerIdentifier"] !== undefined) { - contents.ConsumerIdentifier = __expectString(output["ConsumerIdentifier"]); + if (output[_CI] != null) { + contents[_CI] = __expectString(output[_CI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["ConsumerRegion"] !== undefined) { - contents.ConsumerRegion = __expectString(output["ConsumerRegion"]); + if (output[_CRo] != null) { + contents[_CRo] = __expectString(output[_CRo]); } - if (output["CreatedDate"] !== undefined) { - contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["StatusChangeDate"] !== undefined) { - contents.StatusChangeDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StatusChangeDate"])); + if (output[_SCD] != null) { + contents[_SCD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCD])); } - if (output["ProducerAllowedWrites"] !== undefined) { - contents.ProducerAllowedWrites = __parseBoolean(output["ProducerAllowedWrites"]); + if (output[_PAW] != null) { + contents[_PAW] = __parseBoolean(output[_PAW]); } - if (output["ConsumerAcceptedWrites"] !== undefined) { - contents.ConsumerAcceptedWrites = __parseBoolean(output["ConsumerAcceptedWrites"]); + if (output[_CAW] != null) { + contents[_CAW] = __parseBoolean(output[_CAW]); } return contents; }; @@ -18421,25 +18293,23 @@ const de_DataShareList = (output: any, context: __SerdeContext): DataShare[] => */ const de_DataTransferProgress = (output: any, context: __SerdeContext): DataTransferProgress => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CurrentRateInMegaBytesPerSecond"] !== undefined) { - contents.CurrentRateInMegaBytesPerSecond = __strictParseFloat(output["CurrentRateInMegaBytesPerSecond"]) as number; + if (output[_CRIMBPS] != null) { + contents[_CRIMBPS] = __strictParseFloat(output[_CRIMBPS]) as number; } - if (output["TotalDataInMegaBytes"] !== undefined) { - contents.TotalDataInMegaBytes = __strictParseLong(output["TotalDataInMegaBytes"]) as number; + if (output[_TDIMB] != null) { + contents[_TDIMB] = __strictParseLong(output[_TDIMB]) as number; } - if (output["DataTransferredInMegaBytes"] !== undefined) { - contents.DataTransferredInMegaBytes = __strictParseLong(output["DataTransferredInMegaBytes"]) as number; + if (output[_DTIMB] != null) { + contents[_DTIMB] = __strictParseLong(output[_DTIMB]) as number; } - if (output["EstimatedTimeToCompletionInSeconds"] !== undefined) { - contents.EstimatedTimeToCompletionInSeconds = __strictParseLong( - output["EstimatedTimeToCompletionInSeconds"] - ) as number; + if (output[_ETTCIS] != null) { + contents[_ETTCIS] = __strictParseLong(output[_ETTCIS]) as number; } - if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; + if (output[_ETIS] != null) { + contents[_ETIS] = __strictParseLong(output[_ETIS]) as number; } return contents; }; @@ -18449,16 +18319,16 @@ const de_DataTransferProgress = (output: any, context: __SerdeContext): DataTran */ const de_DefaultClusterParameters = (output: any, context: __SerdeContext): DefaultClusterParameters => { const contents: any = {}; - if (output["ParameterGroupFamily"] !== undefined) { - contents.ParameterGroupFamily = __expectString(output["ParameterGroupFamily"]); + if (output[_PGF] != null) { + contents[_PGF] = __expectString(output[_PGF]); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Parameters === "") { - contents.Parameters = []; - } else if (output["Parameters"] !== undefined && output["Parameters"]["Parameter"] !== undefined) { - contents.Parameters = de_ParametersList(__getArrayIfSingleItem(output["Parameters"]["Parameter"]), context); + contents[_Pa] = []; + } else if (output[_Pa] != null && output[_Pa][_Par] != null) { + contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } return contents; }; @@ -18468,18 +18338,14 @@ const de_DefaultClusterParameters = (output: any, context: __SerdeContext): Defa */ const de_DeferredMaintenanceWindow = (output: any, context: __SerdeContext): DeferredMaintenanceWindow => { const contents: any = {}; - if (output["DeferMaintenanceIdentifier"] !== undefined) { - contents.DeferMaintenanceIdentifier = __expectString(output["DeferMaintenanceIdentifier"]); + if (output[_DMI] != null) { + contents[_DMI] = __expectString(output[_DMI]); } - if (output["DeferMaintenanceStartTime"] !== undefined) { - contents.DeferMaintenanceStartTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["DeferMaintenanceStartTime"]) - ); + if (output[_DMST] != null) { + contents[_DMST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DMST])); } - if (output["DeferMaintenanceEndTime"] !== undefined) { - contents.DeferMaintenanceEndTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["DeferMaintenanceEndTime"]) - ); + if (output[_DMET] != null) { + contents[_DMET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DMET])); } return contents; }; @@ -18503,8 +18369,8 @@ const de_DeleteAuthenticationProfileResult = ( context: __SerdeContext ): DeleteAuthenticationProfileResult => { const contents: any = {}; - if (output["AuthenticationProfileName"] !== undefined) { - contents.AuthenticationProfileName = __expectString(output["AuthenticationProfileName"]); + if (output[_APN] != null) { + contents[_APN] = __expectString(output[_APN]); } return contents; }; @@ -18514,8 +18380,8 @@ const de_DeleteAuthenticationProfileResult = ( */ const de_DeleteClusterResult = (output: any, context: __SerdeContext): DeleteClusterResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -18525,8 +18391,8 @@ const de_DeleteClusterResult = (output: any, context: __SerdeContext): DeleteClu */ const de_DeleteClusterSnapshotResult = (output: any, context: __SerdeContext): DeleteClusterSnapshotResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -18539,8 +18405,8 @@ const de_DependentServiceAccessDeniedFault = ( context: __SerdeContext ): DependentServiceAccessDeniedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18553,8 +18419,8 @@ const de_DependentServiceRequestThrottlingFault = ( context: __SerdeContext ): DependentServiceRequestThrottlingFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18567,8 +18433,8 @@ const de_DependentServiceUnavailableFault = ( context: __SerdeContext ): DependentServiceUnavailableFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18582,15 +18448,9 @@ const de_DescribeAuthenticationProfilesResult = ( ): DescribeAuthenticationProfilesResult => { const contents: any = {}; if (output.AuthenticationProfiles === "") { - contents.AuthenticationProfiles = []; - } else if ( - output["AuthenticationProfiles"] !== undefined && - output["AuthenticationProfiles"]["member"] !== undefined - ) { - contents.AuthenticationProfiles = de_AuthenticationProfileList( - __getArrayIfSingleItem(output["AuthenticationProfiles"]["member"]), - context - ); + contents[_APu] = []; + } else if (output[_APu] != null && output[_APu][_me] != null) { + contents[_APu] = de_AuthenticationProfileList(__getArrayIfSingleItem(output[_APu][_me]), context); } return contents; }; @@ -18604,12 +18464,12 @@ const de_DescribeDataSharesForConsumerResult = ( ): DescribeDataSharesForConsumerResult => { const contents: any = {}; if (output.DataShares === "") { - contents.DataShares = []; - } else if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) { - contents.DataShares = de_DataShareList(__getArrayIfSingleItem(output["DataShares"]["member"]), context); + contents[_DSa] = []; + } else if (output[_DSa] != null && output[_DSa][_me] != null) { + contents[_DSa] = de_DataShareList(__getArrayIfSingleItem(output[_DSa][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18623,12 +18483,12 @@ const de_DescribeDataSharesForProducerResult = ( ): DescribeDataSharesForProducerResult => { const contents: any = {}; if (output.DataShares === "") { - contents.DataShares = []; - } else if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) { - contents.DataShares = de_DataShareList(__getArrayIfSingleItem(output["DataShares"]["member"]), context); + contents[_DSa] = []; + } else if (output[_DSa] != null && output[_DSa][_me] != null) { + contents[_DSa] = de_DataShareList(__getArrayIfSingleItem(output[_DSa][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18639,12 +18499,12 @@ const de_DescribeDataSharesForProducerResult = ( const de_DescribeDataSharesResult = (output: any, context: __SerdeContext): DescribeDataSharesResult => { const contents: any = {}; if (output.DataShares === "") { - contents.DataShares = []; - } else if (output["DataShares"] !== undefined && output["DataShares"]["member"] !== undefined) { - contents.DataShares = de_DataShareList(__getArrayIfSingleItem(output["DataShares"]["member"]), context); + contents[_DSa] = []; + } else if (output[_DSa] != null && output[_DSa][_me] != null) { + contents[_DSa] = de_DataShareList(__getArrayIfSingleItem(output[_DSa][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18657,8 +18517,8 @@ const de_DescribeDefaultClusterParametersResult = ( context: __SerdeContext ): DescribeDefaultClusterParametersResult => { const contents: any = {}; - if (output["DefaultClusterParameters"] !== undefined) { - contents.DefaultClusterParameters = de_DefaultClusterParameters(output["DefaultClusterParameters"], context); + if (output[_DCPe] != null) { + contents[_DCPe] = de_DefaultClusterParameters(output[_DCPe], context); } return contents; }; @@ -18669,15 +18529,9 @@ const de_DescribeDefaultClusterParametersResult = ( const de_DescribePartnersOutputMessage = (output: any, context: __SerdeContext): DescribePartnersOutputMessage => { const contents: any = {}; if (output.PartnerIntegrationInfoList === "") { - contents.PartnerIntegrationInfoList = []; - } else if ( - output["PartnerIntegrationInfoList"] !== undefined && - output["PartnerIntegrationInfoList"]["PartnerIntegrationInfo"] !== undefined - ) { - contents.PartnerIntegrationInfoList = de_PartnerIntegrationInfoList( - __getArrayIfSingleItem(output["PartnerIntegrationInfoList"]["PartnerIntegrationInfo"]), - context - ); + contents[_PIIL] = []; + } else if (output[_PIIL] != null && output[_PIIL][_PII] != null) { + contents[_PIIL] = de_PartnerIntegrationInfoList(__getArrayIfSingleItem(output[_PIIL][_PII]), context); } return contents; }; @@ -18691,18 +18545,12 @@ const de_DescribeRedshiftIdcApplicationsResult = ( ): DescribeRedshiftIdcApplicationsResult => { const contents: any = {}; if (output.RedshiftIdcApplications === "") { - contents.RedshiftIdcApplications = []; - } else if ( - output["RedshiftIdcApplications"] !== undefined && - output["RedshiftIdcApplications"]["member"] !== undefined - ) { - contents.RedshiftIdcApplications = de_RedshiftIdcApplicationList( - __getArrayIfSingleItem(output["RedshiftIdcApplications"]["member"]), - context - ); + contents[_RIAe] = []; + } else if (output[_RIAe] != null && output[_RIAe][_me] != null) { + contents[_RIAe] = de_RedshiftIdcApplicationList(__getArrayIfSingleItem(output[_RIAe][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18716,18 +18564,12 @@ const de_DescribeReservedNodeExchangeStatusOutputMessage = ( ): DescribeReservedNodeExchangeStatusOutputMessage => { const contents: any = {}; if (output.ReservedNodeExchangeStatusDetails === "") { - contents.ReservedNodeExchangeStatusDetails = []; - } else if ( - output["ReservedNodeExchangeStatusDetails"] !== undefined && - output["ReservedNodeExchangeStatusDetails"]["ReservedNodeExchangeStatus"] !== undefined - ) { - contents.ReservedNodeExchangeStatusDetails = de_ReservedNodeExchangeStatusList( - __getArrayIfSingleItem(output["ReservedNodeExchangeStatusDetails"]["ReservedNodeExchangeStatus"]), - context - ); + contents[_RNESD] = []; + } else if (output[_RNESD] != null && output[_RNESD][_RNES] != null) { + contents[_RNESD] = de_ReservedNodeExchangeStatusList(__getArrayIfSingleItem(output[_RNESD][_RNES]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18741,18 +18583,12 @@ const de_DescribeSnapshotSchedulesOutputMessage = ( ): DescribeSnapshotSchedulesOutputMessage => { const contents: any = {}; if (output.SnapshotSchedules === "") { - contents.SnapshotSchedules = []; - } else if ( - output["SnapshotSchedules"] !== undefined && - output["SnapshotSchedules"]["SnapshotSchedule"] !== undefined - ) { - contents.SnapshotSchedules = de_SnapshotScheduleList( - __getArrayIfSingleItem(output["SnapshotSchedules"]["SnapshotSchedule"]), - context - ); + contents[_SS] = []; + } else if (output[_SS] != null && output[_SS][_SSn] != null) { + contents[_SS] = de_SnapshotScheduleList(__getArrayIfSingleItem(output[_SS][_SSn]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18762,8 +18598,8 @@ const de_DescribeSnapshotSchedulesOutputMessage = ( */ const de_DisableSnapshotCopyResult = (output: any, context: __SerdeContext): DisableSnapshotCopyResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -18773,19 +18609,19 @@ const de_DisableSnapshotCopyResult = (output: any, context: __SerdeContext): Dis */ const de_EC2SecurityGroup = (output: any, context: __SerdeContext): EC2SecurityGroup => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["EC2SecurityGroupName"] !== undefined) { - contents.EC2SecurityGroupName = __expectString(output["EC2SecurityGroupName"]); + if (output[_ECSGN] != null) { + contents[_ECSGN] = __expectString(output[_ECSGN]); } - if (output["EC2SecurityGroupOwnerId"] !== undefined) { - contents.EC2SecurityGroupOwnerId = __expectString(output["EC2SecurityGroupOwnerId"]); + if (output[_ECSGOI] != null) { + contents[_ECSGOI] = __expectString(output[_ECSGOI]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -18806,11 +18642,11 @@ const de_EC2SecurityGroupList = (output: any, context: __SerdeContext): EC2Secur */ const de_ElasticIpStatus = (output: any, context: __SerdeContext): ElasticIpStatus => { const contents: any = {}; - if (output["ElasticIp"] !== undefined) { - contents.ElasticIp = __expectString(output["ElasticIp"]); + if (output[_EI] != null) { + contents[_EI] = __expectString(output[_EI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -18831,8 +18667,8 @@ const de_EligibleTracksToUpdateList = (output: any, context: __SerdeContext): Up */ const de_EnableSnapshotCopyResult = (output: any, context: __SerdeContext): EnableSnapshotCopyResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -18842,16 +18678,16 @@ const de_EnableSnapshotCopyResult = (output: any, context: __SerdeContext): Enab */ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { const contents: any = {}; - if (output["Address"] !== undefined) { - contents.Address = __expectString(output["Address"]); + if (output[_Ad] != null) { + contents[_Ad] = __expectString(output[_Ad]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } if (output.VpcEndpoints === "") { - contents.VpcEndpoints = []; - } else if (output["VpcEndpoints"] !== undefined && output["VpcEndpoints"]["VpcEndpoint"] !== undefined) { - contents.VpcEndpoints = de_VpcEndpointsList(__getArrayIfSingleItem(output["VpcEndpoints"]["VpcEndpoint"]), context); + contents[_VE] = []; + } else if (output[_VE] != null && output[_VE][_VEp] != null) { + contents[_VE] = de_VpcEndpointsList(__getArrayIfSingleItem(output[_VE][_VEp]), context); } return contents; }; @@ -18861,43 +18697,37 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { */ const de_EndpointAccess = (output: any, context: __SerdeContext): EndpointAccess => { const contents: any = {}; - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["ResourceOwner"] !== undefined) { - contents.ResourceOwner = __expectString(output["ResourceOwner"]); + if (output[_RO] != null) { + contents[_RO] = __expectString(output[_RO]); } - if (output["SubnetGroupName"] !== undefined) { - contents.SubnetGroupName = __expectString(output["SubnetGroupName"]); + if (output[_SGN] != null) { + contents[_SGN] = __expectString(output[_SGN]); } - if (output["EndpointStatus"] !== undefined) { - contents.EndpointStatus = __expectString(output["EndpointStatus"]); + if (output[_ESn] != null) { + contents[_ESn] = __expectString(output[_ESn]); } - if (output["EndpointName"] !== undefined) { - contents.EndpointName = __expectString(output["EndpointName"]); + if (output[_EN] != null) { + contents[_EN] = __expectString(output[_EN]); } - if (output["EndpointCreateTime"] !== undefined) { - contents.EndpointCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndpointCreateTime"])); + if (output[_ECT] != null) { + contents[_ECT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ECT])); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["Address"] !== undefined) { - contents.Address = __expectString(output["Address"]); + if (output[_Ad] != null) { + contents[_Ad] = __expectString(output[_Ad]); } if (output.VpcSecurityGroups === "") { - contents.VpcSecurityGroups = []; - } else if ( - output["VpcSecurityGroups"] !== undefined && - output["VpcSecurityGroups"]["VpcSecurityGroup"] !== undefined - ) { - contents.VpcSecurityGroups = de_VpcSecurityGroupMembershipList( - __getArrayIfSingleItem(output["VpcSecurityGroups"]["VpcSecurityGroup"]), - context - ); + contents[_VSG] = []; + } else if (output[_VSG] != null && output[_VSG][_VSGp] != null) { + contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGp]), context); } - if (output["VpcEndpoint"] !== undefined) { - contents.VpcEndpoint = de_VpcEndpoint(output["VpcEndpoint"], context); + if (output[_VEp] != null) { + contents[_VEp] = de_VpcEndpoint(output[_VEp], context); } return contents; }; @@ -18919,15 +18749,12 @@ const de_EndpointAccesses = (output: any, context: __SerdeContext): EndpointAcce const de_EndpointAccessList = (output: any, context: __SerdeContext): EndpointAccessList => { const contents: any = {}; if (output.EndpointAccessList === "") { - contents.EndpointAccessList = []; - } else if (output["EndpointAccessList"] !== undefined && output["EndpointAccessList"]["member"] !== undefined) { - contents.EndpointAccessList = de_EndpointAccesses( - __getArrayIfSingleItem(output["EndpointAccessList"]["member"]), - context - ); + contents[_EAL] = []; + } else if (output[_EAL] != null && output[_EAL][_me] != null) { + contents[_EAL] = de_EndpointAccesses(__getArrayIfSingleItem(output[_EAL][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -18937,8 +18764,8 @@ const de_EndpointAccessList = (output: any, context: __SerdeContext): EndpointAc */ const de_EndpointAlreadyExistsFault = (output: any, context: __SerdeContext): EndpointAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -18948,37 +18775,34 @@ const de_EndpointAlreadyExistsFault = (output: any, context: __SerdeContext): En */ const de_EndpointAuthorization = (output: any, context: __SerdeContext): EndpointAuthorization => { const contents: any = {}; - if (output["Grantor"] !== undefined) { - contents.Grantor = __expectString(output["Grantor"]); + if (output[_Gr] != null) { + contents[_Gr] = __expectString(output[_Gr]); } - if (output["Grantee"] !== undefined) { - contents.Grantee = __expectString(output["Grantee"]); + if (output[_G] != null) { + contents[_G] = __expectString(output[_G]); } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["AuthorizeTime"] !== undefined) { - contents.AuthorizeTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["AuthorizeTime"])); + if (output[_ATu] != null) { + contents[_ATu] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ATu])); } - if (output["ClusterStatus"] !== undefined) { - contents.ClusterStatus = __expectString(output["ClusterStatus"]); + if (output[_CS] != null) { + contents[_CS] = __expectString(output[_CS]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["AllowedAllVPCs"] !== undefined) { - contents.AllowedAllVPCs = __parseBoolean(output["AllowedAllVPCs"]); + if (output[_AAVPC] != null) { + contents[_AAVPC] = __parseBoolean(output[_AAVPC]); } if (output.AllowedVPCs === "") { - contents.AllowedVPCs = []; - } else if (output["AllowedVPCs"] !== undefined && output["AllowedVPCs"]["VpcIdentifier"] !== undefined) { - contents.AllowedVPCs = de_VpcIdentifierList( - __getArrayIfSingleItem(output["AllowedVPCs"]["VpcIdentifier"]), - context - ); + contents[_AVPC] = []; + } else if (output[_AVPC] != null && output[_AVPC][_VIpc] != null) { + contents[_AVPC] = de_VpcIdentifierList(__getArrayIfSingleItem(output[_AVPC][_VIpc]), context); } - if (output["EndpointCount"] !== undefined) { - contents.EndpointCount = __strictParseInt32(output["EndpointCount"]) as number; + if (output[_ECn] != null) { + contents[_ECn] = __strictParseInt32(output[_ECn]) as number; } return contents; }; @@ -18991,8 +18815,8 @@ const de_EndpointAuthorizationAlreadyExistsFault = ( context: __SerdeContext ): EndpointAuthorizationAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19003,18 +18827,12 @@ const de_EndpointAuthorizationAlreadyExistsFault = ( const de_EndpointAuthorizationList = (output: any, context: __SerdeContext): EndpointAuthorizationList => { const contents: any = {}; if (output.EndpointAuthorizationList === "") { - contents.EndpointAuthorizationList = []; - } else if ( - output["EndpointAuthorizationList"] !== undefined && - output["EndpointAuthorizationList"]["member"] !== undefined - ) { - contents.EndpointAuthorizationList = de_EndpointAuthorizations( - __getArrayIfSingleItem(output["EndpointAuthorizationList"]["member"]), - context - ); + contents[_EALn] = []; + } else if (output[_EALn] != null && output[_EALn][_me] != null) { + contents[_EALn] = de_EndpointAuthorizations(__getArrayIfSingleItem(output[_EALn][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -19027,8 +18845,8 @@ const de_EndpointAuthorizationNotFoundFault = ( context: __SerdeContext ): EndpointAuthorizationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19052,8 +18870,8 @@ const de_EndpointAuthorizationsPerClusterLimitExceededFault = ( context: __SerdeContext ): EndpointAuthorizationsPerClusterLimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19063,8 +18881,8 @@ const de_EndpointAuthorizationsPerClusterLimitExceededFault = ( */ const de_EndpointNotFoundFault = (output: any, context: __SerdeContext): EndpointNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19077,8 +18895,8 @@ const de_EndpointsPerAuthorizationLimitExceededFault = ( context: __SerdeContext ): EndpointsPerAuthorizationLimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19091,8 +18909,8 @@ const de_EndpointsPerClusterLimitExceededFault = ( context: __SerdeContext ): EndpointsPerClusterLimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19102,31 +18920,28 @@ const de_EndpointsPerClusterLimitExceededFault = ( */ const de_Event = (output: any, context: __SerdeContext): Event => { const contents: any = {}; - if (output["SourceIdentifier"] !== undefined) { - contents.SourceIdentifier = __expectString(output["SourceIdentifier"]); + if (output[_SIou] != null) { + contents[_SIou] = __expectString(output[_SIou]); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } - if (output["Severity"] !== undefined) { - contents.Severity = __expectString(output["Severity"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Da] != null) { + contents[_Da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Da])); } - if (output["EventId"] !== undefined) { - contents.EventId = __expectString(output["EventId"]); + if (output[_EIv] != null) { + contents[_EIv] = __expectString(output[_EIv]); } return contents; }; @@ -19147,13 +18962,13 @@ const de_EventCategoriesList = (output: any, context: __SerdeContext): string[] */ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCategoriesMap => { const contents: any = {}; - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } if (output.Events === "") { - contents.Events = []; - } else if (output["Events"] !== undefined && output["Events"]["EventInfoMap"] !== undefined) { - contents.Events = de_EventInfoMapList(__getArrayIfSingleItem(output["Events"]["EventInfoMap"]), context); + contents[_Ev] = []; + } else if (output[_Ev] != null && output[_Ev][_EIM] != null) { + contents[_Ev] = de_EventInfoMapList(__getArrayIfSingleItem(output[_Ev][_EIM]), context); } return contents; }; @@ -19175,15 +18990,9 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; if (output.EventCategoriesMapList === "") { - contents.EventCategoriesMapList = []; - } else if ( - output["EventCategoriesMapList"] !== undefined && - output["EventCategoriesMapList"]["EventCategoriesMap"] !== undefined - ) { - contents.EventCategoriesMapList = de_EventCategoriesMapList( - __getArrayIfSingleItem(output["EventCategoriesMapList"]["EventCategoriesMap"]), - context - ); + contents[_ECML] = []; + } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { + contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); } return contents; }; @@ -19193,22 +19002,19 @@ const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventC */ const de_EventInfoMap = (output: any, context: __SerdeContext): EventInfoMap => { const contents: any = {}; - if (output["EventId"] !== undefined) { - contents.EventId = __expectString(output["EventId"]); + if (output[_EIv] != null) { + contents[_EIv] = __expectString(output[_EIv]); } if (output.EventCategories === "") { - contents.EventCategories = []; - } else if (output["EventCategories"] !== undefined && output["EventCategories"]["EventCategory"] !== undefined) { - contents.EventCategories = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategories"]["EventCategory"]), - context - ); + contents[_EC] = []; + } else if (output[_EC] != null && output[_EC][_ECv] != null) { + contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); } - if (output["EventDescription"] !== undefined) { - contents.EventDescription = __expectString(output["EventDescription"]); + if (output[_ED] != null) { + contents[_ED] = __expectString(output[_ED]); } - if (output["Severity"] !== undefined) { - contents.Severity = __expectString(output["Severity"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -19240,13 +19046,13 @@ const de_EventList = (output: any, context: __SerdeContext): Event[] => { */ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Events === "") { - contents.Events = []; - } else if (output["Events"] !== undefined && output["Events"]["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Events"]["Event"]), context); + contents[_Ev] = []; + } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { + contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); } return contents; }; @@ -19256,52 +19062,44 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = */ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscription => { const contents: any = {}; - if (output["CustomerAwsId"] !== undefined) { - contents.CustomerAwsId = __expectString(output["CustomerAwsId"]); + if (output[_CAI] != null) { + contents[_CAI] = __expectString(output[_CAI]); } - if (output["CustSubscriptionId"] !== undefined) { - contents.CustSubscriptionId = __expectString(output["CustSubscriptionId"]); + if (output[_CSI] != null) { + contents[_CSI] = __expectString(output[_CSI]); } - if (output["SnsTopicArn"] !== undefined) { - contents.SnsTopicArn = __expectString(output["SnsTopicArn"]); + if (output[_STA] != null) { + contents[_STA] = __expectString(output[_STA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["SubscriptionCreationTime"] !== undefined) { - contents.SubscriptionCreationTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["SubscriptionCreationTime"]) - ); + if (output[_SCT] != null) { + contents[_SCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCT])); } - if (output["SourceType"] !== undefined) { - contents.SourceType = __expectString(output["SourceType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } if (output.SourceIdsList === "") { - contents.SourceIdsList = []; - } else if (output["SourceIdsList"] !== undefined && output["SourceIdsList"]["SourceId"] !== undefined) { - contents.SourceIdsList = de_SourceIdsList(__getArrayIfSingleItem(output["SourceIdsList"]["SourceId"]), context); + contents[_SILo] = []; + } else if (output[_SILo] != null && output[_SILo][_SIour] != null) { + contents[_SILo] = de_SourceIdsList(__getArrayIfSingleItem(output[_SILo][_SIour]), context); } if (output.EventCategoriesList === "") { - contents.EventCategoriesList = []; - } else if ( - output["EventCategoriesList"] !== undefined && - output["EventCategoriesList"]["EventCategory"] !== undefined - ) { - contents.EventCategoriesList = de_EventCategoriesList( - __getArrayIfSingleItem(output["EventCategoriesList"]["EventCategory"]), - context - ); - } - if (output["Severity"] !== undefined) { - contents.Severity = __expectString(output["Severity"]); - } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + contents[_ECL] = []; + } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { + contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); + } + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); + } + if (output[_En] != null) { + contents[_En] = __parseBoolean(output[_En]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -19314,8 +19112,8 @@ const de_EventSubscriptionQuotaExceededFault = ( context: __SerdeContext ): EventSubscriptionQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19336,19 +19134,13 @@ const de_EventSubscriptionsList = (output: any, context: __SerdeContext): EventS */ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): EventSubscriptionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.EventSubscriptionsList === "") { - contents.EventSubscriptionsList = []; - } else if ( - output["EventSubscriptionsList"] !== undefined && - output["EventSubscriptionsList"]["EventSubscription"] !== undefined - ) { - contents.EventSubscriptionsList = de_EventSubscriptionsList( - __getArrayIfSingleItem(output["EventSubscriptionsList"]["EventSubscription"]), - context - ); + contents[_ESL] = []; + } else if (output[_ESL] != null && output[_ESL][_ES] != null) { + contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); } return contents; }; @@ -19358,8 +19150,8 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve */ const de_FailoverPrimaryComputeResult = (output: any, context: __SerdeContext): FailoverPrimaryComputeResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -19372,19 +19164,13 @@ const de_GetReservedNodeExchangeConfigurationOptionsOutputMessage = ( context: __SerdeContext ): GetReservedNodeExchangeConfigurationOptionsOutputMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ReservedNodeConfigurationOptionList === "") { - contents.ReservedNodeConfigurationOptionList = []; - } else if ( - output["ReservedNodeConfigurationOptionList"] !== undefined && - output["ReservedNodeConfigurationOptionList"]["ReservedNodeConfigurationOption"] !== undefined - ) { - contents.ReservedNodeConfigurationOptionList = de_ReservedNodeConfigurationOptionList( - __getArrayIfSingleItem(output["ReservedNodeConfigurationOptionList"]["ReservedNodeConfigurationOption"]), - context - ); + contents[_RNCOL] = []; + } else if (output[_RNCOL] != null && output[_RNCOL][_RNCO] != null) { + contents[_RNCOL] = de_ReservedNodeConfigurationOptionList(__getArrayIfSingleItem(output[_RNCOL][_RNCO]), context); } return contents; }; @@ -19397,19 +19183,13 @@ const de_GetReservedNodeExchangeOfferingsOutputMessage = ( context: __SerdeContext ): GetReservedNodeExchangeOfferingsOutputMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ReservedNodeOfferings === "") { - contents.ReservedNodeOfferings = []; - } else if ( - output["ReservedNodeOfferings"] !== undefined && - output["ReservedNodeOfferings"]["ReservedNodeOffering"] !== undefined - ) { - contents.ReservedNodeOfferings = de_ReservedNodeOfferingList( - __getArrayIfSingleItem(output["ReservedNodeOfferings"]["ReservedNodeOffering"]), - context - ); + contents[_RNO] = []; + } else if (output[_RNO] != null && output[_RNO][_RNOe] != null) { + contents[_RNO] = de_ReservedNodeOfferingList(__getArrayIfSingleItem(output[_RNO][_RNOe]), context); } return contents; }; @@ -19419,8 +19199,8 @@ const de_GetReservedNodeExchangeOfferingsOutputMessage = ( */ const de_GetResourcePolicyResult = (output: any, context: __SerdeContext): GetResourcePolicyResult => { const contents: any = {}; - if (output["ResourcePolicy"] !== undefined) { - contents.ResourcePolicy = de_ResourcePolicy(output["ResourcePolicy"], context); + if (output[_RPe] != null) { + contents[_RPe] = de_ResourcePolicy(output[_RPe], context); } return contents; }; @@ -19430,16 +19210,16 @@ const de_GetResourcePolicyResult = (output: any, context: __SerdeContext): GetRe */ const de_HsmClientCertificate = (output: any, context: __SerdeContext): HsmClientCertificate => { const contents: any = {}; - if (output["HsmClientCertificateIdentifier"] !== undefined) { - contents.HsmClientCertificateIdentifier = __expectString(output["HsmClientCertificateIdentifier"]); + if (output[_HCCI] != null) { + contents[_HCCI] = __expectString(output[_HCCI]); } - if (output["HsmClientCertificatePublicKey"] !== undefined) { - contents.HsmClientCertificatePublicKey = __expectString(output["HsmClientCertificatePublicKey"]); + if (output[_HCCPK] != null) { + contents[_HCCPK] = __expectString(output[_HCCPK]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -19452,8 +19232,8 @@ const de_HsmClientCertificateAlreadyExistsFault = ( context: __SerdeContext ): HsmClientCertificateAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19474,19 +19254,13 @@ const de_HsmClientCertificateList = (output: any, context: __SerdeContext): HsmC */ const de_HsmClientCertificateMessage = (output: any, context: __SerdeContext): HsmClientCertificateMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.HsmClientCertificates === "") { - contents.HsmClientCertificates = []; - } else if ( - output["HsmClientCertificates"] !== undefined && - output["HsmClientCertificates"]["HsmClientCertificate"] !== undefined - ) { - contents.HsmClientCertificates = de_HsmClientCertificateList( - __getArrayIfSingleItem(output["HsmClientCertificates"]["HsmClientCertificate"]), - context - ); + contents[_HCCs] = []; + } else if (output[_HCCs] != null && output[_HCCs][_HCC] != null) { + contents[_HCCs] = de_HsmClientCertificateList(__getArrayIfSingleItem(output[_HCCs][_HCC]), context); } return contents; }; @@ -19499,8 +19273,8 @@ const de_HsmClientCertificateNotFoundFault = ( context: __SerdeContext ): HsmClientCertificateNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19513,8 +19287,8 @@ const de_HsmClientCertificateQuotaExceededFault = ( context: __SerdeContext ): HsmClientCertificateQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19524,22 +19298,22 @@ const de_HsmClientCertificateQuotaExceededFault = ( */ const de_HsmConfiguration = (output: any, context: __SerdeContext): HsmConfiguration => { const contents: any = {}; - if (output["HsmConfigurationIdentifier"] !== undefined) { - contents.HsmConfigurationIdentifier = __expectString(output["HsmConfigurationIdentifier"]); + if (output[_HCI] != null) { + contents[_HCI] = __expectString(output[_HCI]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["HsmIpAddress"] !== undefined) { - contents.HsmIpAddress = __expectString(output["HsmIpAddress"]); + if (output[_HIA] != null) { + contents[_HIA] = __expectString(output[_HIA]); } - if (output["HsmPartitionName"] !== undefined) { - contents.HsmPartitionName = __expectString(output["HsmPartitionName"]); + if (output[_HPN] != null) { + contents[_HPN] = __expectString(output[_HPN]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -19552,8 +19326,8 @@ const de_HsmConfigurationAlreadyExistsFault = ( context: __SerdeContext ): HsmConfigurationAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19574,19 +19348,13 @@ const de_HsmConfigurationList = (output: any, context: __SerdeContext): HsmConfi */ const de_HsmConfigurationMessage = (output: any, context: __SerdeContext): HsmConfigurationMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.HsmConfigurations === "") { - contents.HsmConfigurations = []; - } else if ( - output["HsmConfigurations"] !== undefined && - output["HsmConfigurations"]["HsmConfiguration"] !== undefined - ) { - contents.HsmConfigurations = de_HsmConfigurationList( - __getArrayIfSingleItem(output["HsmConfigurations"]["HsmConfiguration"]), - context - ); + contents[_HCs] = []; + } else if (output[_HCs] != null && output[_HCs][_HC] != null) { + contents[_HCs] = de_HsmConfigurationList(__getArrayIfSingleItem(output[_HCs][_HC]), context); } return contents; }; @@ -19596,8 +19364,8 @@ const de_HsmConfigurationMessage = (output: any, context: __SerdeContext): HsmCo */ const de_HsmConfigurationNotFoundFault = (output: any, context: __SerdeContext): HsmConfigurationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19610,8 +19378,8 @@ const de_HsmConfigurationQuotaExceededFault = ( context: __SerdeContext ): HsmConfigurationQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19621,14 +19389,14 @@ const de_HsmConfigurationQuotaExceededFault = ( */ const de_HsmStatus = (output: any, context: __SerdeContext): HsmStatus => { const contents: any = {}; - if (output["HsmClientCertificateIdentifier"] !== undefined) { - contents.HsmClientCertificateIdentifier = __expectString(output["HsmClientCertificateIdentifier"]); + if (output[_HCCI] != null) { + contents[_HCCI] = __expectString(output[_HCCI]); } - if (output["HsmConfigurationIdentifier"] !== undefined) { - contents.HsmConfigurationIdentifier = __expectString(output["HsmConfigurationIdentifier"]); + if (output[_HCI] != null) { + contents[_HCI] = __expectString(output[_HCI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -19671,25 +19439,25 @@ const de_ImportTablesNotStarted = (output: any, context: __SerdeContext): string */ const de_InboundIntegration = (output: any, context: __SerdeContext): InboundIntegration => { const contents: any = {}; - if (output["IntegrationArn"] !== undefined) { - contents.IntegrationArn = __expectString(output["IntegrationArn"]); + if (output[_IA] != null) { + contents[_IA] = __expectString(output[_IA]); } - if (output["SourceArn"] !== undefined) { - contents.SourceArn = __expectString(output["SourceArn"]); + if (output[_SAo] != null) { + contents[_SAo] = __expectString(output[_SAo]); } - if (output["TargetArn"] !== undefined) { - contents.TargetArn = __expectString(output["TargetArn"]); + if (output[_TAa] != null) { + contents[_TAa] = __expectString(output[_TAa]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } if (output.Errors === "") { - contents.Errors = []; - } else if (output["Errors"] !== undefined && output["Errors"]["IntegrationError"] !== undefined) { - contents.Errors = de_IntegrationErrorList(__getArrayIfSingleItem(output["Errors"]["IntegrationError"]), context); + contents[_Er] = []; + } else if (output[_Er] != null && output[_Er][_IE] != null) { + contents[_Er] = de_IntegrationErrorList(__getArrayIfSingleItem(output[_Er][_IE]), context); } - if (output["CreateTime"] !== undefined) { - contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } return contents; }; @@ -19710,19 +19478,13 @@ const de_InboundIntegrationList = (output: any, context: __SerdeContext): Inboun */ const de_InboundIntegrationsMessage = (output: any, context: __SerdeContext): InboundIntegrationsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.InboundIntegrations === "") { - contents.InboundIntegrations = []; - } else if ( - output["InboundIntegrations"] !== undefined && - output["InboundIntegrations"]["InboundIntegration"] !== undefined - ) { - contents.InboundIntegrations = de_InboundIntegrationList( - __getArrayIfSingleItem(output["InboundIntegrations"]["InboundIntegration"]), - context - ); + contents[_II] = []; + } else if (output[_II] != null && output[_II][_IIn] != null) { + contents[_II] = de_InboundIntegrationList(__getArrayIfSingleItem(output[_II][_IIn]), context); } return contents; }; @@ -19732,8 +19494,8 @@ const de_InboundIntegrationsMessage = (output: any, context: __SerdeContext): In */ const de_IncompatibleOrderableOptions = (output: any, context: __SerdeContext): IncompatibleOrderableOptions => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19746,8 +19508,8 @@ const de_InProgressTableRestoreQuotaExceededFault = ( context: __SerdeContext ): InProgressTableRestoreQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19760,8 +19522,8 @@ const de_InsufficientClusterCapacityFault = ( context: __SerdeContext ): InsufficientClusterCapacityFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19771,8 +19533,8 @@ const de_InsufficientClusterCapacityFault = ( */ const de_InsufficientS3BucketPolicyFault = (output: any, context: __SerdeContext): InsufficientS3BucketPolicyFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19782,11 +19544,11 @@ const de_InsufficientS3BucketPolicyFault = (output: any, context: __SerdeContext */ const de_IntegrationError = (output: any, context: __SerdeContext): IntegrationError => { const contents: any = {}; - if (output["ErrorCode"] !== undefined) { - contents.ErrorCode = __expectString(output["ErrorCode"]); + if (output[_ECr] != null) { + contents[_ECr] = __expectString(output[_ECr]); } - if (output["ErrorMessage"] !== undefined) { - contents.ErrorMessage = __expectString(output["ErrorMessage"]); + if (output[_EM] != null) { + contents[_EM] = __expectString(output[_EM]); } return contents; }; @@ -19807,8 +19569,8 @@ const de_IntegrationErrorList = (output: any, context: __SerdeContext): Integrat */ const de_IntegrationNotFoundFault = (output: any, context: __SerdeContext): IntegrationNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19821,8 +19583,8 @@ const de_InvalidAuthenticationProfileRequestFault = ( context: __SerdeContext ): InvalidAuthenticationProfileRequestFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19832,8 +19594,8 @@ const de_InvalidAuthenticationProfileRequestFault = ( */ const de_InvalidAuthorizationStateFault = (output: any, context: __SerdeContext): InvalidAuthorizationStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19846,8 +19608,8 @@ const de_InvalidClusterParameterGroupStateFault = ( context: __SerdeContext ): InvalidClusterParameterGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19860,8 +19622,8 @@ const de_InvalidClusterSecurityGroupStateFault = ( context: __SerdeContext ): InvalidClusterSecurityGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19874,8 +19636,8 @@ const de_InvalidClusterSnapshotScheduleStateFault = ( context: __SerdeContext ): InvalidClusterSnapshotScheduleStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19888,8 +19650,8 @@ const de_InvalidClusterSnapshotStateFault = ( context: __SerdeContext ): InvalidClusterSnapshotStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19899,8 +19661,8 @@ const de_InvalidClusterSnapshotStateFault = ( */ const de_InvalidClusterStateFault = (output: any, context: __SerdeContext): InvalidClusterStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19913,8 +19675,8 @@ const de_InvalidClusterSubnetGroupStateFault = ( context: __SerdeContext ): InvalidClusterSubnetGroupStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19924,8 +19686,8 @@ const de_InvalidClusterSubnetGroupStateFault = ( */ const de_InvalidClusterSubnetStateFault = (output: any, context: __SerdeContext): InvalidClusterSubnetStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19935,8 +19697,8 @@ const de_InvalidClusterSubnetStateFault = (output: any, context: __SerdeContext) */ const de_InvalidClusterTrackFault = (output: any, context: __SerdeContext): InvalidClusterTrackFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19946,8 +19708,8 @@ const de_InvalidClusterTrackFault = (output: any, context: __SerdeContext): Inva */ const de_InvalidDataShareFault = (output: any, context: __SerdeContext): InvalidDataShareFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19957,8 +19719,8 @@ const de_InvalidDataShareFault = (output: any, context: __SerdeContext): Invalid */ const de_InvalidElasticIpFault = (output: any, context: __SerdeContext): InvalidElasticIpFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19968,8 +19730,8 @@ const de_InvalidElasticIpFault = (output: any, context: __SerdeContext): Invalid */ const de_InvalidEndpointStateFault = (output: any, context: __SerdeContext): InvalidEndpointStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19982,8 +19744,8 @@ const de_InvalidHsmClientCertificateStateFault = ( context: __SerdeContext ): InvalidHsmClientCertificateStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -19996,8 +19758,8 @@ const de_InvalidHsmConfigurationStateFault = ( context: __SerdeContext ): InvalidHsmConfigurationStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20007,8 +19769,8 @@ const de_InvalidHsmConfigurationStateFault = ( */ const de_InvalidNamespaceFault = (output: any, context: __SerdeContext): InvalidNamespaceFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20018,8 +19780,8 @@ const de_InvalidNamespaceFault = (output: any, context: __SerdeContext): Invalid */ const de_InvalidPolicyFault = (output: any, context: __SerdeContext): InvalidPolicyFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20029,8 +19791,8 @@ const de_InvalidPolicyFault = (output: any, context: __SerdeContext): InvalidPol */ const de_InvalidReservedNodeStateFault = (output: any, context: __SerdeContext): InvalidReservedNodeStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20040,8 +19802,8 @@ const de_InvalidReservedNodeStateFault = (output: any, context: __SerdeContext): */ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRestoreFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20051,8 +19813,8 @@ const de_InvalidRestoreFault = (output: any, context: __SerdeContext): InvalidRe */ const de_InvalidRetentionPeriodFault = (output: any, context: __SerdeContext): InvalidRetentionPeriodFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20062,8 +19824,8 @@ const de_InvalidRetentionPeriodFault = (output: any, context: __SerdeContext): I */ const de_InvalidS3BucketNameFault = (output: any, context: __SerdeContext): InvalidS3BucketNameFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20073,8 +19835,8 @@ const de_InvalidS3BucketNameFault = (output: any, context: __SerdeContext): Inva */ const de_InvalidS3KeyPrefixFault = (output: any, context: __SerdeContext): InvalidS3KeyPrefixFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20084,8 +19846,8 @@ const de_InvalidS3KeyPrefixFault = (output: any, context: __SerdeContext): Inval */ const de_InvalidScheduledActionFault = (output: any, context: __SerdeContext): InvalidScheduledActionFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20095,8 +19857,8 @@ const de_InvalidScheduledActionFault = (output: any, context: __SerdeContext): I */ const de_InvalidScheduleFault = (output: any, context: __SerdeContext): InvalidScheduleFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20109,8 +19871,8 @@ const de_InvalidSnapshotCopyGrantStateFault = ( context: __SerdeContext ): InvalidSnapshotCopyGrantStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20120,8 +19882,8 @@ const de_InvalidSnapshotCopyGrantStateFault = ( */ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20131,8 +19893,8 @@ const de_InvalidSubnet = (output: any, context: __SerdeContext): InvalidSubnet = */ const de_InvalidSubscriptionStateFault = (output: any, context: __SerdeContext): InvalidSubscriptionStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20145,8 +19907,8 @@ const de_InvalidTableRestoreArgumentFault = ( context: __SerdeContext ): InvalidTableRestoreArgumentFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20156,8 +19918,8 @@ const de_InvalidTableRestoreArgumentFault = ( */ const de_InvalidTagFault = (output: any, context: __SerdeContext): InvalidTagFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20167,8 +19929,8 @@ const de_InvalidTagFault = (output: any, context: __SerdeContext): InvalidTagFau */ const de_InvalidUsageLimitFault = (output: any, context: __SerdeContext): InvalidUsageLimitFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20178,8 +19940,8 @@ const de_InvalidUsageLimitFault = (output: any, context: __SerdeContext): Invali */ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): InvalidVPCNetworkStateFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20189,16 +19951,16 @@ const de_InvalidVPCNetworkStateFault = (output: any, context: __SerdeContext): I */ const de_IPRange = (output: any, context: __SerdeContext): IPRange => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CIDRIP"] !== undefined) { - contents.CIDRIP = __expectString(output["CIDRIP"]); + if (output[_CIDRIP] != null) { + contents[_CIDRIP] = __expectString(output[_CIDRIP]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -20219,8 +19981,8 @@ const de_IPRangeList = (output: any, context: __SerdeContext): IPRange[] => { */ const de_Ipv6CidrBlockNotFoundFault = (output: any, context: __SerdeContext): Ipv6CidrBlockNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20230,8 +19992,8 @@ const de_Ipv6CidrBlockNotFoundFault = (output: any, context: __SerdeContext): Ip */ const de_LakeFormationQuery = (output: any, context: __SerdeContext): LakeFormationQuery => { const contents: any = {}; - if (output["Authorization"] !== undefined) { - contents.Authorization = __expectString(output["Authorization"]); + if (output[_Au] != null) { + contents[_Au] = __expectString(output[_Au]); } return contents; }; @@ -20240,9 +20002,9 @@ const de_LakeFormationQuery = (output: any, context: __SerdeContext): LakeFormat * deserializeAws_queryLakeFormationScopeUnion */ const de_LakeFormationScopeUnion = (output: any, context: __SerdeContext): LakeFormationScopeUnion => { - if (output["LakeFormationQuery"] !== undefined) { + if (output[_LFQ] != null) { return { - LakeFormationQuery: de_LakeFormationQuery(output["LakeFormationQuery"], context), + LakeFormationQuery: de_LakeFormationQuery(output[_LFQ], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -20264,8 +20026,8 @@ const de_LakeFormationServiceIntegrations = (output: any, context: __SerdeContex */ const de_LimitExceededFault = (output: any, context: __SerdeContext): LimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20275,33 +20037,31 @@ const de_LimitExceededFault = (output: any, context: __SerdeContext): LimitExcee */ const de_LoggingStatus = (output: any, context: __SerdeContext): LoggingStatus => { const contents: any = {}; - if (output["LoggingEnabled"] !== undefined) { - contents.LoggingEnabled = __parseBoolean(output["LoggingEnabled"]); + if (output[_LEo] != null) { + contents[_LEo] = __parseBoolean(output[_LEo]); } - if (output["BucketName"] !== undefined) { - contents.BucketName = __expectString(output["BucketName"]); + if (output[_BN] != null) { + contents[_BN] = __expectString(output[_BN]); } - if (output["S3KeyPrefix"] !== undefined) { - contents.S3KeyPrefix = __expectString(output["S3KeyPrefix"]); + if (output[_SKP] != null) { + contents[_SKP] = __expectString(output[_SKP]); } - if (output["LastSuccessfulDeliveryTime"] !== undefined) { - contents.LastSuccessfulDeliveryTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["LastSuccessfulDeliveryTime"]) - ); + if (output[_LSDT] != null) { + contents[_LSDT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LSDT])); } - if (output["LastFailureTime"] !== undefined) { - contents.LastFailureTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastFailureTime"])); + if (output[_LFT] != null) { + contents[_LFT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LFT])); } - if (output["LastFailureMessage"] !== undefined) { - contents.LastFailureMessage = __expectString(output["LastFailureMessage"]); + if (output[_LFM] != null) { + contents[_LFM] = __expectString(output[_LFM]); } - if (output["LogDestinationType"] !== undefined) { - contents.LogDestinationType = __expectString(output["LogDestinationType"]); + if (output[_LDT] != null) { + contents[_LDT] = __expectString(output[_LDT]); } if (output.LogExports === "") { - contents.LogExports = []; - } else if (output["LogExports"] !== undefined && output["LogExports"]["member"] !== undefined) { - contents.LogExports = de_LogTypeList(__getArrayIfSingleItem(output["LogExports"]["member"]), context); + contents[_LE] = []; + } else if (output[_LE] != null && output[_LE][_me] != null) { + contents[_LE] = de_LogTypeList(__getArrayIfSingleItem(output[_LE][_me]), context); } return contents; }; @@ -20322,19 +20082,16 @@ const de_LogTypeList = (output: any, context: __SerdeContext): string[] => { */ const de_MaintenanceTrack = (output: any, context: __SerdeContext): MaintenanceTrack => { const contents: any = {}; - if (output["MaintenanceTrackName"] !== undefined) { - contents.MaintenanceTrackName = __expectString(output["MaintenanceTrackName"]); + if (output[_MTN] != null) { + contents[_MTN] = __expectString(output[_MTN]); } - if (output["DatabaseVersion"] !== undefined) { - contents.DatabaseVersion = __expectString(output["DatabaseVersion"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } if (output.UpdateTargets === "") { - contents.UpdateTargets = []; - } else if (output["UpdateTargets"] !== undefined && output["UpdateTargets"]["UpdateTarget"] !== undefined) { - contents.UpdateTargets = de_EligibleTracksToUpdateList( - __getArrayIfSingleItem(output["UpdateTargets"]["UpdateTarget"]), - context - ); + contents[_UT] = []; + } else if (output[_UT] != null && output[_UT][_UTp] != null) { + contents[_UT] = de_EligibleTracksToUpdateList(__getArrayIfSingleItem(output[_UT][_UTp]), context); } return contents; }; @@ -20344,8 +20101,8 @@ const de_MaintenanceTrack = (output: any, context: __SerdeContext): MaintenanceT */ const de_ModifyAquaOutputMessage = (output: any, context: __SerdeContext): ModifyAquaOutputMessage => { const contents: any = {}; - if (output["AquaConfiguration"] !== undefined) { - contents.AquaConfiguration = de_AquaConfiguration(output["AquaConfiguration"], context); + if (output[_ACq] != null) { + contents[_ACq] = de_AquaConfiguration(output[_ACq], context); } return contents; }; @@ -20358,11 +20115,11 @@ const de_ModifyAuthenticationProfileResult = ( context: __SerdeContext ): ModifyAuthenticationProfileResult => { const contents: any = {}; - if (output["AuthenticationProfileName"] !== undefined) { - contents.AuthenticationProfileName = __expectString(output["AuthenticationProfileName"]); + if (output[_APN] != null) { + contents[_APN] = __expectString(output[_APN]); } - if (output["AuthenticationProfileContent"] !== undefined) { - contents.AuthenticationProfileContent = __expectString(output["AuthenticationProfileContent"]); + if (output[_APC] != null) { + contents[_APC] = __expectString(output[_APC]); } return contents; }; @@ -20372,8 +20129,8 @@ const de_ModifyAuthenticationProfileResult = ( */ const de_ModifyClusterDbRevisionResult = (output: any, context: __SerdeContext): ModifyClusterDbRevisionResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -20383,8 +20140,8 @@ const de_ModifyClusterDbRevisionResult = (output: any, context: __SerdeContext): */ const de_ModifyClusterIamRolesResult = (output: any, context: __SerdeContext): ModifyClusterIamRolesResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -20394,8 +20151,8 @@ const de_ModifyClusterIamRolesResult = (output: any, context: __SerdeContext): M */ const de_ModifyClusterMaintenanceResult = (output: any, context: __SerdeContext): ModifyClusterMaintenanceResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -20405,8 +20162,8 @@ const de_ModifyClusterMaintenanceResult = (output: any, context: __SerdeContext) */ const de_ModifyClusterResult = (output: any, context: __SerdeContext): ModifyClusterResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -20416,8 +20173,8 @@ const de_ModifyClusterResult = (output: any, context: __SerdeContext): ModifyClu */ const de_ModifyClusterSnapshotResult = (output: any, context: __SerdeContext): ModifyClusterSnapshotResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -20427,8 +20184,8 @@ const de_ModifyClusterSnapshotResult = (output: any, context: __SerdeContext): M */ const de_ModifyClusterSubnetGroupResult = (output: any, context: __SerdeContext): ModifyClusterSubnetGroupResult => { const contents: any = {}; - if (output["ClusterSubnetGroup"] !== undefined) { - contents.ClusterSubnetGroup = de_ClusterSubnetGroup(output["ClusterSubnetGroup"], context); + if (output[_CSGlus] != null) { + contents[_CSGlus] = de_ClusterSubnetGroup(output[_CSGlus], context); } return contents; }; @@ -20441,17 +20198,17 @@ const de_ModifyCustomDomainAssociationResult = ( context: __SerdeContext ): ModifyCustomDomainAssociationResult => { const contents: any = {}; - if (output["CustomDomainName"] !== undefined) { - contents.CustomDomainName = __expectString(output["CustomDomainName"]); + if (output[_CDN] != null) { + contents[_CDN] = __expectString(output[_CDN]); } - if (output["CustomDomainCertificateArn"] !== undefined) { - contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]); + if (output[_CDCA] != null) { + contents[_CDCA] = __expectString(output[_CDCA]); } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["CustomDomainCertExpiryTime"] !== undefined) { - contents.CustomDomainCertExpiryTime = __expectString(output["CustomDomainCertExpiryTime"]); + if (output[_CDCET] != null) { + contents[_CDCET] = __expectString(output[_CDCET]); } return contents; }; @@ -20461,8 +20218,8 @@ const de_ModifyCustomDomainAssociationResult = ( */ const de_ModifyEventSubscriptionResult = (output: any, context: __SerdeContext): ModifyEventSubscriptionResult => { const contents: any = {}; - if (output["EventSubscription"] !== undefined) { - contents.EventSubscription = de_EventSubscription(output["EventSubscription"], context); + if (output[_ES] != null) { + contents[_ES] = de_EventSubscription(output[_ES], context); } return contents; }; @@ -20475,8 +20232,8 @@ const de_ModifyRedshiftIdcApplicationResult = ( context: __SerdeContext ): ModifyRedshiftIdcApplicationResult => { const contents: any = {}; - if (output["RedshiftIdcApplication"] !== undefined) { - contents.RedshiftIdcApplication = de_RedshiftIdcApplication(output["RedshiftIdcApplication"], context); + if (output[_RIA] != null) { + contents[_RIA] = de_RedshiftIdcApplication(output[_RIA], context); } return contents; }; @@ -20489,8 +20246,8 @@ const de_ModifySnapshotCopyRetentionPeriodResult = ( context: __SerdeContext ): ModifySnapshotCopyRetentionPeriodResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -20500,20 +20257,20 @@ const de_ModifySnapshotCopyRetentionPeriodResult = ( */ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInterface => { const contents: any = {}; - if (output["NetworkInterfaceId"] !== undefined) { - contents.NetworkInterfaceId = __expectString(output["NetworkInterfaceId"]); + if (output[_NII] != null) { + contents[_NII] = __expectString(output[_NII]); } - if (output["SubnetId"] !== undefined) { - contents.SubnetId = __expectString(output["SubnetId"]); + if (output[_SIub] != null) { + contents[_SIub] = __expectString(output[_SIub]); } - if (output["PrivateIpAddress"] !== undefined) { - contents.PrivateIpAddress = __expectString(output["PrivateIpAddress"]); + if (output[_PIA] != null) { + contents[_PIA] = __expectString(output[_PIA]); } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZ] != null) { + contents[_AZ] = __expectString(output[_AZ]); } - if (output["Ipv6Address"] !== undefined) { - contents.Ipv6Address = __expectString(output["Ipv6Address"]); + if (output[_IAp] != null) { + contents[_IAp] = __expectString(output[_IAp]); } return contents; }; @@ -20534,17 +20291,17 @@ const de_NetworkInterfaceList = (output: any, context: __SerdeContext): NetworkI */ const de_NodeConfigurationOption = (output: any, context: __SerdeContext): NodeConfigurationOption => { const contents: any = {}; - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; + if (output[_NON] != null) { + contents[_NON] = __strictParseInt32(output[_NON]) as number; } - if (output["EstimatedDiskUtilizationPercent"] !== undefined) { - contents.EstimatedDiskUtilizationPercent = __strictParseFloat(output["EstimatedDiskUtilizationPercent"]) as number; + if (output[_EDUP] != null) { + contents[_EDUP] = __strictParseFloat(output[_EDUP]) as number; } - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } return contents; }; @@ -20566,18 +20323,12 @@ const de_NodeConfigurationOptionList = (output: any, context: __SerdeContext): N const de_NodeConfigurationOptionsMessage = (output: any, context: __SerdeContext): NodeConfigurationOptionsMessage => { const contents: any = {}; if (output.NodeConfigurationOptionList === "") { - contents.NodeConfigurationOptionList = []; - } else if ( - output["NodeConfigurationOptionList"] !== undefined && - output["NodeConfigurationOptionList"]["NodeConfigurationOption"] !== undefined - ) { - contents.NodeConfigurationOptionList = de_NodeConfigurationOptionList( - __getArrayIfSingleItem(output["NodeConfigurationOptionList"]["NodeConfigurationOption"]), - context - ); + contents[_NCOL] = []; + } else if (output[_NCOL] != null && output[_NCOL][_NCO] != null) { + contents[_NCOL] = de_NodeConfigurationOptionList(__getArrayIfSingleItem(output[_NCOL][_NCO]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -20590,8 +20341,8 @@ const de_NumberOfNodesPerClusterLimitExceededFault = ( context: __SerdeContext ): NumberOfNodesPerClusterLimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20601,8 +20352,8 @@ const de_NumberOfNodesPerClusterLimitExceededFault = ( */ const de_NumberOfNodesQuotaExceededFault = (output: any, context: __SerdeContext): NumberOfNodesQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20612,25 +20363,19 @@ const de_NumberOfNodesQuotaExceededFault = (output: any, context: __SerdeContext */ const de_OrderableClusterOption = (output: any, context: __SerdeContext): OrderableClusterOption => { const contents: any = {}; - if (output["ClusterVersion"] !== undefined) { - contents.ClusterVersion = __expectString(output["ClusterVersion"]); + if (output[_CV] != null) { + contents[_CV] = __expectString(output[_CV]); } - if (output["ClusterType"] !== undefined) { - contents.ClusterType = __expectString(output["ClusterType"]); + if (output[_CTl] != null) { + contents[_CTl] = __expectString(output[_CTl]); } - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } if (output.AvailabilityZones === "") { - contents.AvailabilityZones = []; - } else if ( - output["AvailabilityZones"] !== undefined && - output["AvailabilityZones"]["AvailabilityZone"] !== undefined - ) { - contents.AvailabilityZones = de_AvailabilityZoneList( - __getArrayIfSingleItem(output["AvailabilityZones"]["AvailabilityZone"]), - context - ); + contents[_AZv] = []; + } else if (output[_AZv] != null && output[_AZv][_AZ] != null) { + contents[_AZv] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZv][_AZ]), context); } return contents; }; @@ -20652,18 +20397,12 @@ const de_OrderableClusterOptionsList = (output: any, context: __SerdeContext): O const de_OrderableClusterOptionsMessage = (output: any, context: __SerdeContext): OrderableClusterOptionsMessage => { const contents: any = {}; if (output.OrderableClusterOptions === "") { - contents.OrderableClusterOptions = []; - } else if ( - output["OrderableClusterOptions"] !== undefined && - output["OrderableClusterOptions"]["OrderableClusterOption"] !== undefined - ) { - contents.OrderableClusterOptions = de_OrderableClusterOptionsList( - __getArrayIfSingleItem(output["OrderableClusterOptions"]["OrderableClusterOption"]), - context - ); + contents[_OCO] = []; + } else if (output[_OCO] != null && output[_OCO][_OCOr] != null) { + contents[_OCO] = de_OrderableClusterOptionsList(__getArrayIfSingleItem(output[_OCO][_OCOr]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -20673,32 +20412,32 @@ const de_OrderableClusterOptionsMessage = (output: any, context: __SerdeContext) */ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { const contents: any = {}; - if (output["ParameterName"] !== undefined) { - contents.ParameterName = __expectString(output["ParameterName"]); + if (output[_PNa] != null) { + contents[_PNa] = __expectString(output[_PNa]); } - if (output["ParameterValue"] !== undefined) { - contents.ParameterValue = __expectString(output["ParameterValue"]); + if (output[_PV] != null) { + contents[_PV] = __expectString(output[_PV]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Source"] !== undefined) { - contents.Source = __expectString(output["Source"]); + if (output[_So] != null) { + contents[_So] = __expectString(output[_So]); } - if (output["DataType"] !== undefined) { - contents.DataType = __expectString(output["DataType"]); + if (output[_DTa] != null) { + contents[_DTa] = __expectString(output[_DTa]); } - if (output["AllowedValues"] !== undefined) { - contents.AllowedValues = __expectString(output["AllowedValues"]); + if (output[_AV] != null) { + contents[_AV] = __expectString(output[_AV]); } - if (output["ApplyType"] !== undefined) { - contents.ApplyType = __expectString(output["ApplyType"]); + if (output[_ATp] != null) { + contents[_ATp] = __expectString(output[_ATp]); } - if (output["IsModifiable"] !== undefined) { - contents.IsModifiable = __parseBoolean(output["IsModifiable"]); + if (output[_IM] != null) { + contents[_IM] = __parseBoolean(output[_IM]); } - if (output["MinimumEngineVersion"] !== undefined) { - contents.MinimumEngineVersion = __expectString(output["MinimumEngineVersion"]); + if (output[_MEV] != null) { + contents[_MEV] = __expectString(output[_MEV]); } return contents; }; @@ -20730,23 +20469,23 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => */ const de_PartnerIntegrationInfo = (output: any, context: __SerdeContext): PartnerIntegrationInfo => { const contents: any = {}; - if (output["DatabaseName"] !== undefined) { - contents.DatabaseName = __expectString(output["DatabaseName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["PartnerName"] !== undefined) { - contents.PartnerName = __expectString(output["PartnerName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["StatusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["StatusMessage"]); + if (output[_SM] != null) { + contents[_SM] = __expectString(output[_SM]); } - if (output["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAt"])); + if (output[_CAr] != null) { + contents[_CAr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CAr])); } - if (output["UpdatedAt"] !== undefined) { - contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["UpdatedAt"])); + if (output[_UA] != null) { + contents[_UA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UA])); } return contents; }; @@ -20767,11 +20506,11 @@ const de_PartnerIntegrationInfoList = (output: any, context: __SerdeContext): Pa */ const de_PartnerIntegrationOutputMessage = (output: any, context: __SerdeContext): PartnerIntegrationOutputMessage => { const contents: any = {}; - if (output["DatabaseName"] !== undefined) { - contents.DatabaseName = __expectString(output["DatabaseName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["PartnerName"] !== undefined) { - contents.PartnerName = __expectString(output["PartnerName"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } return contents; }; @@ -20781,8 +20520,8 @@ const de_PartnerIntegrationOutputMessage = (output: any, context: __SerdeContext */ const de_PartnerNotFoundFault = (output: any, context: __SerdeContext): PartnerNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -20792,8 +20531,8 @@ const de_PartnerNotFoundFault = (output: any, context: __SerdeContext): PartnerN */ const de_PauseClusterMessage = (output: any, context: __SerdeContext): PauseClusterMessage => { const contents: any = {}; - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } return contents; }; @@ -20803,8 +20542,8 @@ const de_PauseClusterMessage = (output: any, context: __SerdeContext): PauseClus */ const de_PauseClusterResult = (output: any, context: __SerdeContext): PauseClusterResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -20825,40 +20564,38 @@ const de_PendingActionsList = (output: any, context: __SerdeContext): string[] = */ const de_PendingModifiedValues = (output: any, context: __SerdeContext): PendingModifiedValues => { const contents: any = {}; - if (output["MasterUserPassword"] !== undefined) { - contents.MasterUserPassword = __expectString(output["MasterUserPassword"]); + if (output[_MUP] != null) { + contents[_MUP] = __expectString(output[_MUP]); } - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; + if (output[_NON] != null) { + contents[_NON] = __strictParseInt32(output[_NON]) as number; } - if (output["ClusterType"] !== undefined) { - contents.ClusterType = __expectString(output["ClusterType"]); + if (output[_CTl] != null) { + contents[_CTl] = __expectString(output[_CTl]); } - if (output["ClusterVersion"] !== undefined) { - contents.ClusterVersion = __expectString(output["ClusterVersion"]); + if (output[_CV] != null) { + contents[_CV] = __expectString(output[_CV]); } - if (output["AutomatedSnapshotRetentionPeriod"] !== undefined) { - contents.AutomatedSnapshotRetentionPeriod = __strictParseInt32( - output["AutomatedSnapshotRetentionPeriod"] - ) as number; + if (output[_ASRP] != null) { + contents[_ASRP] = __strictParseInt32(output[_ASRP]) as number; } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["PubliclyAccessible"] !== undefined) { - contents.PubliclyAccessible = __parseBoolean(output["PubliclyAccessible"]); + if (output[_PA] != null) { + contents[_PA] = __parseBoolean(output[_PA]); } - if (output["EnhancedVpcRouting"] !== undefined) { - contents.EnhancedVpcRouting = __parseBoolean(output["EnhancedVpcRouting"]); + if (output[_EVR] != null) { + contents[_EVR] = __parseBoolean(output[_EVR]); } - if (output["MaintenanceTrackName"] !== undefined) { - contents.MaintenanceTrackName = __expectString(output["MaintenanceTrackName"]); + if (output[_MTN] != null) { + contents[_MTN] = __expectString(output[_MTN]); } - if (output["EncryptionType"] !== undefined) { - contents.EncryptionType = __expectString(output["EncryptionType"]); + if (output[_ETn] != null) { + contents[_ETn] = __expectString(output[_ETn]); } return contents; }; @@ -20871,8 +20608,8 @@ const de_PurchaseReservedNodeOfferingResult = ( context: __SerdeContext ): PurchaseReservedNodeOfferingResult => { const contents: any = {}; - if (output["ReservedNode"] !== undefined) { - contents.ReservedNode = de_ReservedNode(output["ReservedNode"], context); + if (output[_RNe] != null) { + contents[_RNe] = de_ReservedNode(output[_RNe], context); } return contents; }; @@ -20882,8 +20619,8 @@ const de_PurchaseReservedNodeOfferingResult = ( */ const de_PutResourcePolicyResult = (output: any, context: __SerdeContext): PutResourcePolicyResult => { const contents: any = {}; - if (output["ResourcePolicy"] !== undefined) { - contents.ResourcePolicy = de_ResourcePolicy(output["ResourcePolicy"], context); + if (output[_RPe] != null) { + contents[_RPe] = de_ResourcePolicy(output[_RPe], context); } return contents; }; @@ -20893,8 +20630,8 @@ const de_PutResourcePolicyResult = (output: any, context: __SerdeContext): PutRe */ const de_RebootClusterResult = (output: any, context: __SerdeContext): RebootClusterResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -20904,11 +20641,11 @@ const de_RebootClusterResult = (output: any, context: __SerdeContext): RebootClu */ const de_RecurringCharge = (output: any, context: __SerdeContext): RecurringCharge => { const contents: any = {}; - if (output["RecurringChargeAmount"] !== undefined) { - contents.RecurringChargeAmount = __strictParseFloat(output["RecurringChargeAmount"]) as number; + if (output[_RCA] != null) { + contents[_RCA] = __strictParseFloat(output[_RCA]) as number; } - if (output["RecurringChargeFrequency"] !== undefined) { - contents.RecurringChargeFrequency = __expectString(output["RecurringChargeFrequency"]); + if (output[_RCF] != null) { + contents[_RCF] = __expectString(output[_RCF]); } return contents; }; @@ -20929,48 +20666,39 @@ const de_RecurringChargeList = (output: any, context: __SerdeContext): Recurring */ const de_RedshiftIdcApplication = (output: any, context: __SerdeContext): RedshiftIdcApplication => { const contents: any = {}; - if (output["IdcInstanceArn"] !== undefined) { - contents.IdcInstanceArn = __expectString(output["IdcInstanceArn"]); + if (output[_IIA] != null) { + contents[_IIA] = __expectString(output[_IIA]); } - if (output["RedshiftIdcApplicationName"] !== undefined) { - contents.RedshiftIdcApplicationName = __expectString(output["RedshiftIdcApplicationName"]); + if (output[_RIAN] != null) { + contents[_RIAN] = __expectString(output[_RIAN]); } - if (output["RedshiftIdcApplicationArn"] !== undefined) { - contents.RedshiftIdcApplicationArn = __expectString(output["RedshiftIdcApplicationArn"]); + if (output[_RIAA] != null) { + contents[_RIAA] = __expectString(output[_RIAA]); } - if (output["IdentityNamespace"] !== undefined) { - contents.IdentityNamespace = __expectString(output["IdentityNamespace"]); + if (output[_IN] != null) { + contents[_IN] = __expectString(output[_IN]); } - if (output["IdcDisplayName"] !== undefined) { - contents.IdcDisplayName = __expectString(output["IdcDisplayName"]); + if (output[_IDN] != null) { + contents[_IDN] = __expectString(output[_IDN]); } - if (output["IamRoleArn"] !== undefined) { - contents.IamRoleArn = __expectString(output["IamRoleArn"]); + if (output[_IRA] != null) { + contents[_IRA] = __expectString(output[_IRA]); } - if (output["IdcManagedApplicationArn"] !== undefined) { - contents.IdcManagedApplicationArn = __expectString(output["IdcManagedApplicationArn"]); + if (output[_IMAA] != null) { + contents[_IMAA] = __expectString(output[_IMAA]); } - if (output["IdcOnboardStatus"] !== undefined) { - contents.IdcOnboardStatus = __expectString(output["IdcOnboardStatus"]); + if (output[_IOS] != null) { + contents[_IOS] = __expectString(output[_IOS]); } if (output.AuthorizedTokenIssuerList === "") { - contents.AuthorizedTokenIssuerList = []; - } else if ( - output["AuthorizedTokenIssuerList"] !== undefined && - output["AuthorizedTokenIssuerList"]["member"] !== undefined - ) { - contents.AuthorizedTokenIssuerList = de_AuthorizedTokenIssuerList( - __getArrayIfSingleItem(output["AuthorizedTokenIssuerList"]["member"]), - context - ); + contents[_ATIL] = []; + } else if (output[_ATIL] != null && output[_ATIL][_me] != null) { + contents[_ATIL] = de_AuthorizedTokenIssuerList(__getArrayIfSingleItem(output[_ATIL][_me]), context); } if (output.ServiceIntegrations === "") { - contents.ServiceIntegrations = []; - } else if (output["ServiceIntegrations"] !== undefined && output["ServiceIntegrations"]["member"] !== undefined) { - contents.ServiceIntegrations = de_ServiceIntegrationList( - __getArrayIfSingleItem(output["ServiceIntegrations"]["member"]), - context - ); + contents[_SIe] = []; + } else if (output[_SIe] != null && output[_SIe][_me] != null) { + contents[_SIe] = de_ServiceIntegrationList(__getArrayIfSingleItem(output[_SIe][_me]), context); } return contents; }; @@ -20983,8 +20711,8 @@ const de_RedshiftIdcApplicationAlreadyExistsFault = ( context: __SerdeContext ): RedshiftIdcApplicationAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21008,8 +20736,8 @@ const de_RedshiftIdcApplicationNotExistsFault = ( context: __SerdeContext ): RedshiftIdcApplicationNotExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21022,8 +20750,8 @@ const de_RedshiftIdcApplicationQuotaExceededFault = ( context: __SerdeContext ): RedshiftIdcApplicationQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21033,49 +20761,46 @@ const de_RedshiftIdcApplicationQuotaExceededFault = ( */ const de_ReservedNode = (output: any, context: __SerdeContext): ReservedNode => { const contents: any = {}; - if (output["ReservedNodeId"] !== undefined) { - contents.ReservedNodeId = __expectString(output["ReservedNodeId"]); + if (output[_RNI] != null) { + contents[_RNI] = __expectString(output[_RNI]); } - if (output["ReservedNodeOfferingId"] !== undefined) { - contents.ReservedNodeOfferingId = __expectString(output["ReservedNodeOfferingId"]); + if (output[_RNOI] != null) { + contents[_RNOI] = __expectString(output[_RNOI]); } - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_STt] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STt])); } - if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["Duration"]) as number; + if (output[_Du] != null) { + contents[_Du] = __strictParseInt32(output[_Du]) as number; } - if (output["FixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; + if (output[_FP] != null) { + contents[_FP] = __strictParseFloat(output[_FP]) as number; } - if (output["UsagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["UsagePrice"]) as number; + if (output[_UP] != null) { + contents[_UP] = __strictParseFloat(output[_UP]) as number; } - if (output["CurrencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["CurrencyCode"]); + if (output[_CCu] != null) { + contents[_CCu] = __expectString(output[_CCu]); } - if (output["NodeCount"] !== undefined) { - contents.NodeCount = __strictParseInt32(output["NodeCount"]) as number; + if (output[_NC] != null) { + contents[_NC] = __strictParseInt32(output[_NC]) as number; } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["OfferingType"] !== undefined) { - contents.OfferingType = __expectString(output["OfferingType"]); + if (output[_OT] != null) { + contents[_OT] = __expectString(output[_OT]); } if (output.RecurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) { - contents.RecurringCharges = de_RecurringChargeList( - __getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), - context - ); + contents[_RCec] = []; + } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { + contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); } - if (output["ReservedNodeOfferingType"] !== undefined) { - contents.ReservedNodeOfferingType = __expectString(output["ReservedNodeOfferingType"]); + if (output[_RNOT] != null) { + contents[_RNOT] = __expectString(output[_RNOT]); } return contents; }; @@ -21085,8 +20810,8 @@ const de_ReservedNode = (output: any, context: __SerdeContext): ReservedNode => */ const de_ReservedNodeAlreadyExistsFault = (output: any, context: __SerdeContext): ReservedNodeAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21099,8 +20824,8 @@ const de_ReservedNodeAlreadyMigratedFault = ( context: __SerdeContext ): ReservedNodeAlreadyMigratedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21110,14 +20835,14 @@ const de_ReservedNodeAlreadyMigratedFault = ( */ const de_ReservedNodeConfigurationOption = (output: any, context: __SerdeContext): ReservedNodeConfigurationOption => { const contents: any = {}; - if (output["SourceReservedNode"] !== undefined) { - contents.SourceReservedNode = de_ReservedNode(output["SourceReservedNode"], context); + if (output[_SRN] != null) { + contents[_SRN] = de_ReservedNode(output[_SRN], context); } - if (output["TargetReservedNodeCount"] !== undefined) { - contents.TargetReservedNodeCount = __strictParseInt32(output["TargetReservedNodeCount"]) as number; + if (output[_TRNC] != null) { + contents[_TRNC] = __strictParseInt32(output[_TRNC]) as number; } - if (output["TargetReservedNodeOffering"] !== undefined) { - contents.TargetReservedNodeOffering = de_ReservedNodeOffering(output["TargetReservedNodeOffering"], context); + if (output[_TRNO] != null) { + contents[_TRNO] = de_ReservedNodeOffering(output[_TRNO], context); } return contents; }; @@ -21144,8 +20869,8 @@ const de_ReservedNodeExchangeNotFoundFault = ( context: __SerdeContext ): ReservedNodeExchangeNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21155,32 +20880,32 @@ const de_ReservedNodeExchangeNotFoundFault = ( */ const de_ReservedNodeExchangeStatus = (output: any, context: __SerdeContext): ReservedNodeExchangeStatus => { const contents: any = {}; - if (output["ReservedNodeExchangeRequestId"] !== undefined) { - contents.ReservedNodeExchangeRequestId = __expectString(output["ReservedNodeExchangeRequestId"]); + if (output[_RNERI] != null) { + contents[_RNERI] = __expectString(output[_RNERI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["RequestTime"] !== undefined) { - contents.RequestTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RequestTime"])); + if (output[_RTeq] != null) { + contents[_RTeq] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RTeq])); } - if (output["SourceReservedNodeId"] !== undefined) { - contents.SourceReservedNodeId = __expectString(output["SourceReservedNodeId"]); + if (output[_SRNI] != null) { + contents[_SRNI] = __expectString(output[_SRNI]); } - if (output["SourceReservedNodeType"] !== undefined) { - contents.SourceReservedNodeType = __expectString(output["SourceReservedNodeType"]); + if (output[_SRNT] != null) { + contents[_SRNT] = __expectString(output[_SRNT]); } - if (output["SourceReservedNodeCount"] !== undefined) { - contents.SourceReservedNodeCount = __strictParseInt32(output["SourceReservedNodeCount"]) as number; + if (output[_SRNC] != null) { + contents[_SRNC] = __strictParseInt32(output[_SRNC]) as number; } - if (output["TargetReservedNodeOfferingId"] !== undefined) { - contents.TargetReservedNodeOfferingId = __expectString(output["TargetReservedNodeOfferingId"]); + if (output[_TRNOI] != null) { + contents[_TRNOI] = __expectString(output[_TRNOI]); } - if (output["TargetReservedNodeType"] !== undefined) { - contents.TargetReservedNodeType = __expectString(output["TargetReservedNodeType"]); + if (output[_TRNT] != null) { + contents[_TRNT] = __expectString(output[_TRNT]); } - if (output["TargetReservedNodeCount"] !== undefined) { - contents.TargetReservedNodeCount = __strictParseInt32(output["TargetReservedNodeCount"]) as number; + if (output[_TRNC] != null) { + contents[_TRNC] = __strictParseInt32(output[_TRNC]) as number; } return contents; }; @@ -21212,8 +20937,8 @@ const de_ReservedNodeList = (output: any, context: __SerdeContext): ReservedNode */ const de_ReservedNodeNotFoundFault = (output: any, context: __SerdeContext): ReservedNodeNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21223,37 +20948,34 @@ const de_ReservedNodeNotFoundFault = (output: any, context: __SerdeContext): Res */ const de_ReservedNodeOffering = (output: any, context: __SerdeContext): ReservedNodeOffering => { const contents: any = {}; - if (output["ReservedNodeOfferingId"] !== undefined) { - contents.ReservedNodeOfferingId = __expectString(output["ReservedNodeOfferingId"]); + if (output[_RNOI] != null) { + contents[_RNOI] = __expectString(output[_RNOI]); } - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["Duration"] !== undefined) { - contents.Duration = __strictParseInt32(output["Duration"]) as number; + if (output[_Du] != null) { + contents[_Du] = __strictParseInt32(output[_Du]) as number; } - if (output["FixedPrice"] !== undefined) { - contents.FixedPrice = __strictParseFloat(output["FixedPrice"]) as number; + if (output[_FP] != null) { + contents[_FP] = __strictParseFloat(output[_FP]) as number; } - if (output["UsagePrice"] !== undefined) { - contents.UsagePrice = __strictParseFloat(output["UsagePrice"]) as number; + if (output[_UP] != null) { + contents[_UP] = __strictParseFloat(output[_UP]) as number; } - if (output["CurrencyCode"] !== undefined) { - contents.CurrencyCode = __expectString(output["CurrencyCode"]); + if (output[_CCu] != null) { + contents[_CCu] = __expectString(output[_CCu]); } - if (output["OfferingType"] !== undefined) { - contents.OfferingType = __expectString(output["OfferingType"]); + if (output[_OT] != null) { + contents[_OT] = __expectString(output[_OT]); } if (output.RecurringCharges === "") { - contents.RecurringCharges = []; - } else if (output["RecurringCharges"] !== undefined && output["RecurringCharges"]["RecurringCharge"] !== undefined) { - contents.RecurringCharges = de_RecurringChargeList( - __getArrayIfSingleItem(output["RecurringCharges"]["RecurringCharge"]), - context - ); + contents[_RCec] = []; + } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { + contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); } - if (output["ReservedNodeOfferingType"] !== undefined) { - contents.ReservedNodeOfferingType = __expectString(output["ReservedNodeOfferingType"]); + if (output[_RNOT] != null) { + contents[_RNOT] = __expectString(output[_RNOT]); } return contents; }; @@ -21277,8 +20999,8 @@ const de_ReservedNodeOfferingNotFoundFault = ( context: __SerdeContext ): ReservedNodeOfferingNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21288,19 +21010,13 @@ const de_ReservedNodeOfferingNotFoundFault = ( */ const de_ReservedNodeOfferingsMessage = (output: any, context: __SerdeContext): ReservedNodeOfferingsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ReservedNodeOfferings === "") { - contents.ReservedNodeOfferings = []; - } else if ( - output["ReservedNodeOfferings"] !== undefined && - output["ReservedNodeOfferings"]["ReservedNodeOffering"] !== undefined - ) { - contents.ReservedNodeOfferings = de_ReservedNodeOfferingList( - __getArrayIfSingleItem(output["ReservedNodeOfferings"]["ReservedNodeOffering"]), - context - ); + contents[_RNO] = []; + } else if (output[_RNO] != null && output[_RNO][_RNOe] != null) { + contents[_RNO] = de_ReservedNodeOfferingList(__getArrayIfSingleItem(output[_RNO][_RNOe]), context); } return contents; }; @@ -21310,8 +21026,8 @@ const de_ReservedNodeOfferingsMessage = (output: any, context: __SerdeContext): */ const de_ReservedNodeQuotaExceededFault = (output: any, context: __SerdeContext): ReservedNodeQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21321,16 +21037,13 @@ const de_ReservedNodeQuotaExceededFault = (output: any, context: __SerdeContext) */ const de_ReservedNodesMessage = (output: any, context: __SerdeContext): ReservedNodesMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ReservedNodes === "") { - contents.ReservedNodes = []; - } else if (output["ReservedNodes"] !== undefined && output["ReservedNodes"]["ReservedNode"] !== undefined) { - contents.ReservedNodes = de_ReservedNodeList( - __getArrayIfSingleItem(output["ReservedNodes"]["ReservedNode"]), - context - ); + contents[_RNes] = []; + } else if (output[_RNes] != null && output[_RNes][_RNe] != null) { + contents[_RNes] = de_ReservedNodeList(__getArrayIfSingleItem(output[_RNes][_RNe]), context); } return contents; }; @@ -21340,26 +21053,26 @@ const de_ReservedNodesMessage = (output: any, context: __SerdeContext): Reserved */ const de_ResizeClusterMessage = (output: any, context: __SerdeContext): ResizeClusterMessage => { const contents: any = {}; - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["ClusterType"] !== undefined) { - contents.ClusterType = __expectString(output["ClusterType"]); + if (output[_CTl] != null) { + contents[_CTl] = __expectString(output[_CTl]); } - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; + if (output[_NON] != null) { + contents[_NON] = __strictParseInt32(output[_NON]) as number; } - if (output["Classic"] !== undefined) { - contents.Classic = __parseBoolean(output["Classic"]); + if (output[_C] != null) { + contents[_C] = __parseBoolean(output[_C]); } - if (output["ReservedNodeId"] !== undefined) { - contents.ReservedNodeId = __expectString(output["ReservedNodeId"]); + if (output[_RNI] != null) { + contents[_RNI] = __expectString(output[_RNI]); } - if (output["TargetReservedNodeOfferingId"] !== undefined) { - contents.TargetReservedNodeOfferingId = __expectString(output["TargetReservedNodeOfferingId"]); + if (output[_TRNOI] != null) { + contents[_TRNOI] = __expectString(output[_TRNOI]); } return contents; }; @@ -21369,8 +21082,8 @@ const de_ResizeClusterMessage = (output: any, context: __SerdeContext): ResizeCl */ const de_ResizeClusterResult = (output: any, context: __SerdeContext): ResizeClusterResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -21380,11 +21093,11 @@ const de_ResizeClusterResult = (output: any, context: __SerdeContext): ResizeClu */ const de_ResizeInfo = (output: any, context: __SerdeContext): ResizeInfo => { const contents: any = {}; - if (output["ResizeType"] !== undefined) { - contents.ResizeType = __expectString(output["ResizeType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["AllowCancelResize"] !== undefined) { - contents.AllowCancelResize = __parseBoolean(output["AllowCancelResize"]); + if (output[_ACR] != null) { + contents[_ACR] = __parseBoolean(output[_ACR]); } return contents; }; @@ -21394,8 +21107,8 @@ const de_ResizeInfo = (output: any, context: __SerdeContext): ResizeInfo => { */ const de_ResizeNotFoundFault = (output: any, context: __SerdeContext): ResizeNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21405,78 +21118,59 @@ const de_ResizeNotFoundFault = (output: any, context: __SerdeContext): ResizeNot */ const de_ResizeProgressMessage = (output: any, context: __SerdeContext): ResizeProgressMessage => { const contents: any = {}; - if (output["TargetNodeType"] !== undefined) { - contents.TargetNodeType = __expectString(output["TargetNodeType"]); + if (output[_TNT] != null) { + contents[_TNT] = __expectString(output[_TNT]); } - if (output["TargetNumberOfNodes"] !== undefined) { - contents.TargetNumberOfNodes = __strictParseInt32(output["TargetNumberOfNodes"]) as number; + if (output[_TNON] != null) { + contents[_TNON] = __strictParseInt32(output[_TNON]) as number; } - if (output["TargetClusterType"] !== undefined) { - contents.TargetClusterType = __expectString(output["TargetClusterType"]); + if (output[_TCT] != null) { + contents[_TCT] = __expectString(output[_TCT]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } if (output.ImportTablesCompleted === "") { - contents.ImportTablesCompleted = []; - } else if (output["ImportTablesCompleted"] !== undefined && output["ImportTablesCompleted"]["member"] !== undefined) { - contents.ImportTablesCompleted = de_ImportTablesCompleted( - __getArrayIfSingleItem(output["ImportTablesCompleted"]["member"]), - context - ); + contents[_ITC] = []; + } else if (output[_ITC] != null && output[_ITC][_me] != null) { + contents[_ITC] = de_ImportTablesCompleted(__getArrayIfSingleItem(output[_ITC][_me]), context); } if (output.ImportTablesInProgress === "") { - contents.ImportTablesInProgress = []; - } else if ( - output["ImportTablesInProgress"] !== undefined && - output["ImportTablesInProgress"]["member"] !== undefined - ) { - contents.ImportTablesInProgress = de_ImportTablesInProgress( - __getArrayIfSingleItem(output["ImportTablesInProgress"]["member"]), - context - ); + contents[_ITIP] = []; + } else if (output[_ITIP] != null && output[_ITIP][_me] != null) { + contents[_ITIP] = de_ImportTablesInProgress(__getArrayIfSingleItem(output[_ITIP][_me]), context); } if (output.ImportTablesNotStarted === "") { - contents.ImportTablesNotStarted = []; - } else if ( - output["ImportTablesNotStarted"] !== undefined && - output["ImportTablesNotStarted"]["member"] !== undefined - ) { - contents.ImportTablesNotStarted = de_ImportTablesNotStarted( - __getArrayIfSingleItem(output["ImportTablesNotStarted"]["member"]), - context - ); + contents[_ITNS] = []; + } else if (output[_ITNS] != null && output[_ITNS][_me] != null) { + contents[_ITNS] = de_ImportTablesNotStarted(__getArrayIfSingleItem(output[_ITNS][_me]), context); } - if (output["AvgResizeRateInMegaBytesPerSecond"] !== undefined) { - contents.AvgResizeRateInMegaBytesPerSecond = __strictParseFloat( - output["AvgResizeRateInMegaBytesPerSecond"] - ) as number; + if (output[_ARRIMBPS] != null) { + contents[_ARRIMBPS] = __strictParseFloat(output[_ARRIMBPS]) as number; } - if (output["TotalResizeDataInMegaBytes"] !== undefined) { - contents.TotalResizeDataInMegaBytes = __strictParseLong(output["TotalResizeDataInMegaBytes"]) as number; + if (output[_TRDIMB] != null) { + contents[_TRDIMB] = __strictParseLong(output[_TRDIMB]) as number; } - if (output["ProgressInMegaBytes"] !== undefined) { - contents.ProgressInMegaBytes = __strictParseLong(output["ProgressInMegaBytes"]) as number; + if (output[_PIMB] != null) { + contents[_PIMB] = __strictParseLong(output[_PIMB]) as number; } - if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; + if (output[_ETIS] != null) { + contents[_ETIS] = __strictParseLong(output[_ETIS]) as number; } - if (output["EstimatedTimeToCompletionInSeconds"] !== undefined) { - contents.EstimatedTimeToCompletionInSeconds = __strictParseLong( - output["EstimatedTimeToCompletionInSeconds"] - ) as number; + if (output[_ETTCIS] != null) { + contents[_ETTCIS] = __strictParseLong(output[_ETTCIS]) as number; } - if (output["ResizeType"] !== undefined) { - contents.ResizeType = __expectString(output["ResizeType"]); + if (output[_RTes] != null) { + contents[_RTes] = __expectString(output[_RTes]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["TargetEncryptionType"] !== undefined) { - contents.TargetEncryptionType = __expectString(output["TargetEncryptionType"]); + if (output[_TET] != null) { + contents[_TET] = __expectString(output[_TET]); } - if (output["DataTransferProgressPercent"] !== undefined) { - contents.DataTransferProgressPercent = __strictParseFloat(output["DataTransferProgressPercent"]) as number; + if (output[_DTPP] != null) { + contents[_DTPP] = __strictParseFloat(output[_DTPP]) as number; } return contents; }; @@ -21486,8 +21180,8 @@ const de_ResizeProgressMessage = (output: any, context: __SerdeContext): ResizeP */ const de_ResourceNotFoundFault = (output: any, context: __SerdeContext): ResourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21497,11 +21191,11 @@ const de_ResourceNotFoundFault = (output: any, context: __SerdeContext): Resourc */ const de_ResourcePolicy = (output: any, context: __SerdeContext): ResourcePolicy => { const contents: any = {}; - if (output["ResourceArn"] !== undefined) { - contents.ResourceArn = __expectString(output["ResourceArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } - if (output["Policy"] !== undefined) { - contents.Policy = __expectString(output["Policy"]); + if (output[_Po] != null) { + contents[_Po] = __expectString(output[_Po]); } return contents; }; @@ -21525,8 +21219,8 @@ const de_RestoreFromClusterSnapshotResult = ( context: __SerdeContext ): RestoreFromClusterSnapshotResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -21536,27 +21230,23 @@ const de_RestoreFromClusterSnapshotResult = ( */ const de_RestoreStatus = (output: any, context: __SerdeContext): RestoreStatus => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["CurrentRestoreRateInMegaBytesPerSecond"] !== undefined) { - contents.CurrentRestoreRateInMegaBytesPerSecond = __strictParseFloat( - output["CurrentRestoreRateInMegaBytesPerSecond"] - ) as number; + if (output[_CRRIMBPS] != null) { + contents[_CRRIMBPS] = __strictParseFloat(output[_CRRIMBPS]) as number; } - if (output["SnapshotSizeInMegaBytes"] !== undefined) { - contents.SnapshotSizeInMegaBytes = __strictParseLong(output["SnapshotSizeInMegaBytes"]) as number; + if (output[_SSIMB] != null) { + contents[_SSIMB] = __strictParseLong(output[_SSIMB]) as number; } - if (output["ProgressInMegaBytes"] !== undefined) { - contents.ProgressInMegaBytes = __strictParseLong(output["ProgressInMegaBytes"]) as number; + if (output[_PIMB] != null) { + contents[_PIMB] = __strictParseLong(output[_PIMB]) as number; } - if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; + if (output[_ETIS] != null) { + contents[_ETIS] = __strictParseLong(output[_ETIS]) as number; } - if (output["EstimatedTimeToCompletionInSeconds"] !== undefined) { - contents.EstimatedTimeToCompletionInSeconds = __strictParseLong( - output["EstimatedTimeToCompletionInSeconds"] - ) as number; + if (output[_ETTCIS] != null) { + contents[_ETTCIS] = __strictParseLong(output[_ETTCIS]) as number; } return contents; }; @@ -21569,8 +21259,8 @@ const de_RestoreTableFromClusterSnapshotResult = ( context: __SerdeContext ): RestoreTableFromClusterSnapshotResult => { const contents: any = {}; - if (output["TableRestoreStatus"] !== undefined) { - contents.TableRestoreStatus = de_TableRestoreStatus(output["TableRestoreStatus"], context); + if (output[_TRS] != null) { + contents[_TRS] = de_TableRestoreStatus(output[_TRS], context); } return contents; }; @@ -21580,8 +21270,8 @@ const de_RestoreTableFromClusterSnapshotResult = ( */ const de_ResumeClusterMessage = (output: any, context: __SerdeContext): ResumeClusterMessage => { const contents: any = {}; - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } return contents; }; @@ -21591,8 +21281,8 @@ const de_ResumeClusterMessage = (output: any, context: __SerdeContext): ResumeCl */ const de_ResumeClusterResult = (output: any, context: __SerdeContext): ResumeClusterResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -21602,16 +21292,14 @@ const de_ResumeClusterResult = (output: any, context: __SerdeContext): ResumeClu */ const de_RevisionTarget = (output: any, context: __SerdeContext): RevisionTarget => { const contents: any = {}; - if (output["DatabaseRevision"] !== undefined) { - contents.DatabaseRevision = __expectString(output["DatabaseRevision"]); + if (output[_DRa] != null) { + contents[_DRa] = __expectString(output[_DRa]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["DatabaseRevisionReleaseDate"] !== undefined) { - contents.DatabaseRevisionReleaseDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["DatabaseRevisionReleaseDate"]) - ); + if (output[_DRRD] != null) { + contents[_DRRD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DRRD])); } return contents; }; @@ -21635,8 +21323,8 @@ const de_RevokeClusterSecurityGroupIngressResult = ( context: __SerdeContext ): RevokeClusterSecurityGroupIngressResult => { const contents: any = {}; - if (output["ClusterSecurityGroup"] !== undefined) { - contents.ClusterSecurityGroup = de_ClusterSecurityGroup(output["ClusterSecurityGroup"], context); + if (output[_CSGl] != null) { + contents[_CSGl] = de_ClusterSecurityGroup(output[_CSGl], context); } return contents; }; @@ -21646,8 +21334,8 @@ const de_RevokeClusterSecurityGroupIngressResult = ( */ const de_RevokeSnapshotAccessResult = (output: any, context: __SerdeContext): RevokeSnapshotAccessResult => { const contents: any = {}; - if (output["Snapshot"] !== undefined) { - contents.Snapshot = de_Snapshot(output["Snapshot"], context); + if (output[_Sn] != null) { + contents[_Sn] = de_Snapshot(output[_Sn], context); } return contents; }; @@ -21657,8 +21345,8 @@ const de_RevokeSnapshotAccessResult = (output: any, context: __SerdeContext): Re */ const de_RotateEncryptionKeyResult = (output: any, context: __SerdeContext): RotateEncryptionKeyResult => { const contents: any = {}; - if (output["Cluster"] !== undefined) { - contents.Cluster = de_Cluster(output["Cluster"], context); + if (output[_Clu] != null) { + contents[_Clu] = de_Cluster(output[_Clu], context); } return contents; }; @@ -21668,40 +21356,34 @@ const de_RotateEncryptionKeyResult = (output: any, context: __SerdeContext): Rot */ const de_ScheduledAction = (output: any, context: __SerdeContext): ScheduledAction => { const contents: any = {}; - if (output["ScheduledActionName"] !== undefined) { - contents.ScheduledActionName = __expectString(output["ScheduledActionName"]); + if (output[_SAN] != null) { + contents[_SAN] = __expectString(output[_SAN]); } - if (output["TargetAction"] !== undefined) { - contents.TargetAction = de_ScheduledActionType(output["TargetAction"], context); + if (output[_TA] != null) { + contents[_TA] = de_ScheduledActionType(output[_TA], context); } - if (output["Schedule"] !== undefined) { - contents.Schedule = __expectString(output["Schedule"]); + if (output[_Sc] != null) { + contents[_Sc] = __expectString(output[_Sc]); } - if (output["IamRole"] !== undefined) { - contents.IamRole = __expectString(output["IamRole"]); + if (output[_IRa] != null) { + contents[_IRa] = __expectString(output[_IRa]); } - if (output["ScheduledActionDescription"] !== undefined) { - contents.ScheduledActionDescription = __expectString(output["ScheduledActionDescription"]); + if (output[_SAD] != null) { + contents[_SAD] = __expectString(output[_SAD]); } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } if (output.NextInvocations === "") { - contents.NextInvocations = []; - } else if ( - output["NextInvocations"] !== undefined && - output["NextInvocations"]["ScheduledActionTime"] !== undefined - ) { - contents.NextInvocations = de_ScheduledActionTimeList( - __getArrayIfSingleItem(output["NextInvocations"]["ScheduledActionTime"]), - context - ); + contents[_NI] = []; + } else if (output[_NI] != null && output[_NI][_SAT] != null) { + contents[_NI] = de_ScheduledActionTimeList(__getArrayIfSingleItem(output[_NI][_SAT]), context); } - if (output["StartTime"] !== undefined) { - contents.StartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StartTime"])); + if (output[_STt] != null) { + contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STt])); } - if (output["EndTime"] !== undefined) { - contents.EndTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EndTime"])); + if (output[_ET] != null) { + contents[_ET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ET])); } return contents; }; @@ -21714,8 +21396,8 @@ const de_ScheduledActionAlreadyExistsFault = ( context: __SerdeContext ): ScheduledActionAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21736,8 +21418,8 @@ const de_ScheduledActionList = (output: any, context: __SerdeContext): Scheduled */ const de_ScheduledActionNotFoundFault = (output: any, context: __SerdeContext): ScheduledActionNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21750,8 +21432,8 @@ const de_ScheduledActionQuotaExceededFault = ( context: __SerdeContext ): ScheduledActionQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21761,16 +21443,13 @@ const de_ScheduledActionQuotaExceededFault = ( */ const de_ScheduledActionsMessage = (output: any, context: __SerdeContext): ScheduledActionsMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.ScheduledActions === "") { - contents.ScheduledActions = []; - } else if (output["ScheduledActions"] !== undefined && output["ScheduledActions"]["ScheduledAction"] !== undefined) { - contents.ScheduledActions = de_ScheduledActionList( - __getArrayIfSingleItem(output["ScheduledActions"]["ScheduledAction"]), - context - ); + contents[_SAc] = []; + } else if (output[_SAc] != null && output[_SAc][_SAch] != null) { + contents[_SAc] = de_ScheduledActionList(__getArrayIfSingleItem(output[_SAc][_SAch]), context); } return contents; }; @@ -21791,14 +21470,14 @@ const de_ScheduledActionTimeList = (output: any, context: __SerdeContext): Date[ */ const de_ScheduledActionType = (output: any, context: __SerdeContext): ScheduledActionType => { const contents: any = {}; - if (output["ResizeCluster"] !== undefined) { - contents.ResizeCluster = de_ResizeClusterMessage(output["ResizeCluster"], context); + if (output[_RCe] != null) { + contents[_RCe] = de_ResizeClusterMessage(output[_RCe], context); } - if (output["PauseCluster"] !== undefined) { - contents.PauseCluster = de_PauseClusterMessage(output["PauseCluster"], context); + if (output[_PC] != null) { + contents[_PC] = de_PauseClusterMessage(output[_PC], context); } - if (output["ResumeCluster"] !== undefined) { - contents.ResumeCluster = de_ResumeClusterMessage(output["ResumeCluster"], context); + if (output[_RCes] != null) { + contents[_RCes] = de_ResumeClusterMessage(output[_RCes], context); } return contents; }; @@ -21811,8 +21490,8 @@ const de_ScheduledActionTypeUnsupportedFault = ( context: __SerdeContext ): ScheduledActionTypeUnsupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21836,8 +21515,8 @@ const de_ScheduleDefinitionTypeUnsupportedFault = ( context: __SerdeContext ): ScheduleDefinitionTypeUnsupportedFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -21858,13 +21537,13 @@ const de_ScheduledSnapshotTimeList = (output: any, context: __SerdeContext): Dat */ const de_SecondaryClusterInfo = (output: any, context: __SerdeContext): SecondaryClusterInfo => { const contents: any = {}; - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZ] != null) { + contents[_AZ] = __expectString(output[_AZ]); } if (output.ClusterNodes === "") { - contents.ClusterNodes = []; - } else if (output["ClusterNodes"] !== undefined && output["ClusterNodes"]["member"] !== undefined) { - contents.ClusterNodes = de_ClusterNodesList(__getArrayIfSingleItem(output["ClusterNodes"]["member"]), context); + contents[_CN] = []; + } else if (output[_CN] != null && output[_CN][_me] != null) { + contents[_CN] = de_ClusterNodesList(__getArrayIfSingleItem(output[_CN][_me]), context); } return contents; }; @@ -21886,14 +21565,11 @@ const de_ServiceIntegrationList = (output: any, context: __SerdeContext): Servic const de_ServiceIntegrationsUnion = (output: any, context: __SerdeContext): ServiceIntegrationsUnion => { if (output.LakeFormation === "") { return { - LakeFormation: [], + [_LF]: [], }; - } else if (output["LakeFormation"] !== undefined && output["LakeFormation"]["member"] !== undefined) { + } else if (output[_LF] != null && output[_LF][_me] != null) { return { - LakeFormation: de_LakeFormationServiceIntegrations( - __getArrayIfSingleItem(output["LakeFormation"]["member"]), - context - ), + LakeFormation: de_LakeFormationServiceIntegrations(__getArrayIfSingleItem(output[_LF][_me]), context), }; } return { $unknown: Object.entries(output)[0] }; @@ -21904,134 +21580,119 @@ const de_ServiceIntegrationsUnion = (output: any, context: __SerdeContext): Serv */ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { const contents: any = {}; - if (output["SnapshotIdentifier"] !== undefined) { - contents.SnapshotIdentifier = __expectString(output["SnapshotIdentifier"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["SnapshotCreateTime"] !== undefined) { - contents.SnapshotCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SnapshotCreateTime"])); + if (output[_SCTn] != null) { + contents[_SCTn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SCTn])); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["AvailabilityZone"] !== undefined) { - contents.AvailabilityZone = __expectString(output["AvailabilityZone"]); + if (output[_AZ] != null) { + contents[_AZ] = __expectString(output[_AZ]); } - if (output["ClusterCreateTime"] !== undefined) { - contents.ClusterCreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["ClusterCreateTime"])); + if (output[_CCT] != null) { + contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output["MasterUsername"] !== undefined) { - contents.MasterUsername = __expectString(output["MasterUsername"]); + if (output[_MU] != null) { + contents[_MU] = __expectString(output[_MU]); } - if (output["ClusterVersion"] !== undefined) { - contents.ClusterVersion = __expectString(output["ClusterVersion"]); + if (output[_CV] != null) { + contents[_CV] = __expectString(output[_CV]); } - if (output["EngineFullVersion"] !== undefined) { - contents.EngineFullVersion = __expectString(output["EngineFullVersion"]); + if (output[_EFV] != null) { + contents[_EFV] = __expectString(output[_EFV]); } - if (output["SnapshotType"] !== undefined) { - contents.SnapshotType = __expectString(output["SnapshotType"]); + if (output[_STn] != null) { + contents[_STn] = __expectString(output[_STn]); } - if (output["NodeType"] !== undefined) { - contents.NodeType = __expectString(output["NodeType"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } - if (output["NumberOfNodes"] !== undefined) { - contents.NumberOfNodes = __strictParseInt32(output["NumberOfNodes"]) as number; + if (output[_NON] != null) { + contents[_NON] = __strictParseInt32(output[_NON]) as number; } - if (output["DBName"] !== undefined) { - contents.DBName = __expectString(output["DBName"]); + if (output[_DBN] != null) { + contents[_DBN] = __expectString(output[_DBN]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VIp] != null) { + contents[_VIp] = __expectString(output[_VIp]); } - if (output["Encrypted"] !== undefined) { - contents.Encrypted = __parseBoolean(output["Encrypted"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } - if (output["EncryptedWithHSM"] !== undefined) { - contents.EncryptedWithHSM = __parseBoolean(output["EncryptedWithHSM"]); + if (output[_EWHSM] != null) { + contents[_EWHSM] = __parseBoolean(output[_EWHSM]); } if (output.AccountsWithRestoreAccess === "") { - contents.AccountsWithRestoreAccess = []; - } else if ( - output["AccountsWithRestoreAccess"] !== undefined && - output["AccountsWithRestoreAccess"]["AccountWithRestoreAccess"] !== undefined - ) { - contents.AccountsWithRestoreAccess = de_AccountsWithRestoreAccessList( - __getArrayIfSingleItem(output["AccountsWithRestoreAccess"]["AccountWithRestoreAccess"]), - context - ); + contents[_AWRAc] = []; + } else if (output[_AWRAc] != null && output[_AWRAc][_AWRA] != null) { + contents[_AWRAc] = de_AccountsWithRestoreAccessList(__getArrayIfSingleItem(output[_AWRAc][_AWRA]), context); } - if (output["OwnerAccount"] !== undefined) { - contents.OwnerAccount = __expectString(output["OwnerAccount"]); + if (output[_OA] != null) { + contents[_OA] = __expectString(output[_OA]); } - if (output["TotalBackupSizeInMegaBytes"] !== undefined) { - contents.TotalBackupSizeInMegaBytes = __strictParseFloat(output["TotalBackupSizeInMegaBytes"]) as number; + if (output[_TBSIMB] != null) { + contents[_TBSIMB] = __strictParseFloat(output[_TBSIMB]) as number; } - if (output["ActualIncrementalBackupSizeInMegaBytes"] !== undefined) { - contents.ActualIncrementalBackupSizeInMegaBytes = __strictParseFloat( - output["ActualIncrementalBackupSizeInMegaBytes"] - ) as number; + if (output[_AIBSIMB] != null) { + contents[_AIBSIMB] = __strictParseFloat(output[_AIBSIMB]) as number; } - if (output["BackupProgressInMegaBytes"] !== undefined) { - contents.BackupProgressInMegaBytes = __strictParseFloat(output["BackupProgressInMegaBytes"]) as number; + if (output[_BPIMB] != null) { + contents[_BPIMB] = __strictParseFloat(output[_BPIMB]) as number; } - if (output["CurrentBackupRateInMegaBytesPerSecond"] !== undefined) { - contents.CurrentBackupRateInMegaBytesPerSecond = __strictParseFloat( - output["CurrentBackupRateInMegaBytesPerSecond"] - ) as number; + if (output[_CBRIMBPS] != null) { + contents[_CBRIMBPS] = __strictParseFloat(output[_CBRIMBPS]) as number; } - if (output["EstimatedSecondsToCompletion"] !== undefined) { - contents.EstimatedSecondsToCompletion = __strictParseLong(output["EstimatedSecondsToCompletion"]) as number; + if (output[_ESTC] != null) { + contents[_ESTC] = __strictParseLong(output[_ESTC]) as number; } - if (output["ElapsedTimeInSeconds"] !== undefined) { - contents.ElapsedTimeInSeconds = __strictParseLong(output["ElapsedTimeInSeconds"]) as number; + if (output[_ETIS] != null) { + contents[_ETIS] = __strictParseLong(output[_ETIS]) as number; } - if (output["SourceRegion"] !== undefined) { - contents.SourceRegion = __expectString(output["SourceRegion"]); + if (output[_SR] != null) { + contents[_SR] = __expectString(output[_SR]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } if (output.RestorableNodeTypes === "") { - contents.RestorableNodeTypes = []; - } else if (output["RestorableNodeTypes"] !== undefined && output["RestorableNodeTypes"]["NodeType"] !== undefined) { - contents.RestorableNodeTypes = de_RestorableNodeTypeList( - __getArrayIfSingleItem(output["RestorableNodeTypes"]["NodeType"]), - context - ); + contents[_RNT] = []; + } else if (output[_RNT] != null && output[_RNT][_NT] != null) { + contents[_RNT] = de_RestorableNodeTypeList(__getArrayIfSingleItem(output[_RNT][_NT]), context); } - if (output["EnhancedVpcRouting"] !== undefined) { - contents.EnhancedVpcRouting = __parseBoolean(output["EnhancedVpcRouting"]); + if (output[_EVR] != null) { + contents[_EVR] = __parseBoolean(output[_EVR]); } - if (output["MaintenanceTrackName"] !== undefined) { - contents.MaintenanceTrackName = __expectString(output["MaintenanceTrackName"]); + if (output[_MTN] != null) { + contents[_MTN] = __expectString(output[_MTN]); } - if (output["ManualSnapshotRetentionPeriod"] !== undefined) { - contents.ManualSnapshotRetentionPeriod = __strictParseInt32(output["ManualSnapshotRetentionPeriod"]) as number; + if (output[_MSRP] != null) { + contents[_MSRP] = __strictParseInt32(output[_MSRP]) as number; } - if (output["ManualSnapshotRemainingDays"] !== undefined) { - contents.ManualSnapshotRemainingDays = __strictParseInt32(output["ManualSnapshotRemainingDays"]) as number; + if (output[_MSRD] != null) { + contents[_MSRD] = __strictParseInt32(output[_MSRD]) as number; } - if (output["SnapshotRetentionStartTime"] !== undefined) { - contents.SnapshotRetentionStartTime = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["SnapshotRetentionStartTime"]) - ); + if (output[_SRST] != null) { + contents[_SRST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SRST])); } - if (output["MasterPasswordSecretArn"] !== undefined) { - contents.MasterPasswordSecretArn = __expectString(output["MasterPasswordSecretArn"]); + if (output[_MPSA] != null) { + contents[_MPSA] = __expectString(output[_MPSA]); } - if (output["MasterPasswordSecretKmsKeyId"] !== undefined) { - contents.MasterPasswordSecretKmsKeyId = __expectString(output["MasterPasswordSecretKmsKeyId"]); + if (output[_MPSKKI] != null) { + contents[_MPSKKI] = __expectString(output[_MPSKKI]); } return contents; }; @@ -22044,8 +21705,8 @@ const de_SnapshotCopyAlreadyDisabledFault = ( context: __SerdeContext ): SnapshotCopyAlreadyDisabledFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22055,8 +21716,8 @@ const de_SnapshotCopyAlreadyDisabledFault = ( */ const de_SnapshotCopyAlreadyEnabledFault = (output: any, context: __SerdeContext): SnapshotCopyAlreadyEnabledFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22066,8 +21727,8 @@ const de_SnapshotCopyAlreadyEnabledFault = (output: any, context: __SerdeContext */ const de_SnapshotCopyDisabledFault = (output: any, context: __SerdeContext): SnapshotCopyDisabledFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22077,16 +21738,16 @@ const de_SnapshotCopyDisabledFault = (output: any, context: __SerdeContext): Sna */ const de_SnapshotCopyGrant = (output: any, context: __SerdeContext): SnapshotCopyGrant => { const contents: any = {}; - if (output["SnapshotCopyGrantName"] !== undefined) { - contents.SnapshotCopyGrantName = __expectString(output["SnapshotCopyGrantName"]); + if (output[_SCGN] != null) { + contents[_SCGN] = __expectString(output[_SCGN]); } - if (output["KmsKeyId"] !== undefined) { - contents.KmsKeyId = __expectString(output["KmsKeyId"]); + if (output[_KKI] != null) { + contents[_KKI] = __expectString(output[_KKI]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -22099,8 +21760,8 @@ const de_SnapshotCopyGrantAlreadyExistsFault = ( context: __SerdeContext ): SnapshotCopyGrantAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22121,19 +21782,13 @@ const de_SnapshotCopyGrantList = (output: any, context: __SerdeContext): Snapsho */ const de_SnapshotCopyGrantMessage = (output: any, context: __SerdeContext): SnapshotCopyGrantMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.SnapshotCopyGrants === "") { - contents.SnapshotCopyGrants = []; - } else if ( - output["SnapshotCopyGrants"] !== undefined && - output["SnapshotCopyGrants"]["SnapshotCopyGrant"] !== undefined - ) { - contents.SnapshotCopyGrants = de_SnapshotCopyGrantList( - __getArrayIfSingleItem(output["SnapshotCopyGrants"]["SnapshotCopyGrant"]), - context - ); + contents[_SCGn] = []; + } else if (output[_SCGn] != null && output[_SCGn][_SCG] != null) { + contents[_SCGn] = de_SnapshotCopyGrantList(__getArrayIfSingleItem(output[_SCGn][_SCG]), context); } return contents; }; @@ -22143,8 +21798,8 @@ const de_SnapshotCopyGrantMessage = (output: any, context: __SerdeContext): Snap */ const de_SnapshotCopyGrantNotFoundFault = (output: any, context: __SerdeContext): SnapshotCopyGrantNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22157,8 +21812,8 @@ const de_SnapshotCopyGrantQuotaExceededFault = ( context: __SerdeContext ): SnapshotCopyGrantQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22168,17 +21823,17 @@ const de_SnapshotCopyGrantQuotaExceededFault = ( */ const de_SnapshotErrorMessage = (output: any, context: __SerdeContext): SnapshotErrorMessage => { const contents: any = {}; - if (output["SnapshotIdentifier"] !== undefined) { - contents.SnapshotIdentifier = __expectString(output["SnapshotIdentifier"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["SnapshotClusterIdentifier"] !== undefined) { - contents.SnapshotClusterIdentifier = __expectString(output["SnapshotClusterIdentifier"]); + if (output[_SCI] != null) { + contents[_SCI] = __expectString(output[_SCI]); } - if (output["FailureCode"] !== undefined) { - contents.FailureCode = __expectString(output["FailureCode"]); + if (output[_FC] != null) { + contents[_FC] = __expectString(output[_FC]); } - if (output["FailureReason"] !== undefined) { - contents.FailureReason = __expectString(output["FailureReason"]); + if (output[_FR] != null) { + contents[_FR] = __expectString(output[_FR]); } return contents; }; @@ -22210,13 +21865,13 @@ const de_SnapshotList = (output: any, context: __SerdeContext): Snapshot[] => { */ const de_SnapshotMessage = (output: any, context: __SerdeContext): SnapshotMessage => { const contents: any = {}; - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } if (output.Snapshots === "") { - contents.Snapshots = []; - } else if (output["Snapshots"] !== undefined && output["Snapshots"]["Snapshot"] !== undefined) { - contents.Snapshots = de_SnapshotList(__getArrayIfSingleItem(output["Snapshots"]["Snapshot"]), context); + contents[_Sna] = []; + } else if (output[_Sna] != null && output[_Sna][_Sn] != null) { + contents[_Sna] = de_SnapshotList(__getArrayIfSingleItem(output[_Sna][_Sn]), context); } return contents; }; @@ -22227,48 +21882,33 @@ const de_SnapshotMessage = (output: any, context: __SerdeContext): SnapshotMessa const de_SnapshotSchedule = (output: any, context: __SerdeContext): SnapshotSchedule => { const contents: any = {}; if (output.ScheduleDefinitions === "") { - contents.ScheduleDefinitions = []; - } else if ( - output["ScheduleDefinitions"] !== undefined && - output["ScheduleDefinitions"]["ScheduleDefinition"] !== undefined - ) { - contents.ScheduleDefinitions = de_ScheduleDefinitionList( - __getArrayIfSingleItem(output["ScheduleDefinitions"]["ScheduleDefinition"]), - context - ); - } - if (output["ScheduleIdentifier"] !== undefined) { - contents.ScheduleIdentifier = __expectString(output["ScheduleIdentifier"]); - } - if (output["ScheduleDescription"] !== undefined) { - contents.ScheduleDescription = __expectString(output["ScheduleDescription"]); + contents[_SD] = []; + } else if (output[_SD] != null && output[_SD][_SDch] != null) { + contents[_SD] = de_ScheduleDefinitionList(__getArrayIfSingleItem(output[_SD][_SDch]), context); + } + if (output[_SIc] != null) { + contents[_SIc] = __expectString(output[_SIc]); + } + if (output[_SDc] != null) { + contents[_SDc] = __expectString(output[_SDc]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } if (output.NextInvocations === "") { - contents.NextInvocations = []; - } else if (output["NextInvocations"] !== undefined && output["NextInvocations"]["SnapshotTime"] !== undefined) { - contents.NextInvocations = de_ScheduledSnapshotTimeList( - __getArrayIfSingleItem(output["NextInvocations"]["SnapshotTime"]), - context - ); + contents[_NI] = []; + } else if (output[_NI] != null && output[_NI][_STna] != null) { + contents[_NI] = de_ScheduledSnapshotTimeList(__getArrayIfSingleItem(output[_NI][_STna]), context); } - if (output["AssociatedClusterCount"] !== undefined) { - contents.AssociatedClusterCount = __strictParseInt32(output["AssociatedClusterCount"]) as number; + if (output[_ACC] != null) { + contents[_ACC] = __strictParseInt32(output[_ACC]) as number; } if (output.AssociatedClusters === "") { - contents.AssociatedClusters = []; - } else if ( - output["AssociatedClusters"] !== undefined && - output["AssociatedClusters"]["ClusterAssociatedToSchedule"] !== undefined - ) { - contents.AssociatedClusters = de_AssociatedClusterList( - __getArrayIfSingleItem(output["AssociatedClusters"]["ClusterAssociatedToSchedule"]), - context - ); + contents[_ACs] = []; + } else if (output[_ACs] != null && output[_ACs][_CATS] != null) { + contents[_ACs] = de_AssociatedClusterList(__getArrayIfSingleItem(output[_ACs][_CATS]), context); } return contents; }; @@ -22281,8 +21921,8 @@ const de_SnapshotScheduleAlreadyExistsFault = ( context: __SerdeContext ): SnapshotScheduleAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22303,8 +21943,8 @@ const de_SnapshotScheduleList = (output: any, context: __SerdeContext): Snapshot */ const de_SnapshotScheduleNotFoundFault = (output: any, context: __SerdeContext): SnapshotScheduleNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22317,8 +21957,8 @@ const de_SnapshotScheduleQuotaExceededFault = ( context: __SerdeContext ): SnapshotScheduleQuotaExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22331,8 +21971,8 @@ const de_SnapshotScheduleUpdateInProgressFault = ( context: __SerdeContext ): SnapshotScheduleUpdateInProgressFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22342,8 +21982,8 @@ const de_SnapshotScheduleUpdateInProgressFault = ( */ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInvalidTopicFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22353,8 +21993,8 @@ const de_SNSInvalidTopicFault = (output: any, context: __SerdeContext): SNSInval */ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNoAuthorizationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22364,8 +22004,8 @@ const de_SNSNoAuthorizationFault = (output: any, context: __SerdeContext): SNSNo */ const de_SNSTopicArnNotFoundFault = (output: any, context: __SerdeContext): SNSTopicArnNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22386,8 +22026,8 @@ const de_SourceIdsList = (output: any, context: __SerdeContext): string[] => { */ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22397,14 +22037,14 @@ const de_SourceNotFoundFault = (output: any, context: __SerdeContext): SourceNot */ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { const contents: any = {}; - if (output["SubnetIdentifier"] !== undefined) { - contents.SubnetIdentifier = __expectString(output["SubnetIdentifier"]); + if (output[_SIubn] != null) { + contents[_SIubn] = __expectString(output[_SIubn]); } - if (output["SubnetAvailabilityZone"] !== undefined) { - contents.SubnetAvailabilityZone = de_AvailabilityZone(output["SubnetAvailabilityZone"], context); + if (output[_SAZ] != null) { + contents[_SAZ] = de_AvailabilityZone(output[_SAZ], context); } - if (output["SubnetStatus"] !== undefined) { - contents.SubnetStatus = __expectString(output["SubnetStatus"]); + if (output[_SSu] != null) { + contents[_SSu] = __expectString(output[_SSu]); } return contents; }; @@ -22414,8 +22054,8 @@ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { */ const de_SubnetAlreadyInUse = (output: any, context: __SerdeContext): SubnetAlreadyInUse => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22436,8 +22076,8 @@ const de_SubnetList = (output: any, context: __SerdeContext): Subnet[] => { */ const de_SubscriptionAlreadyExistFault = (output: any, context: __SerdeContext): SubscriptionAlreadyExistFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22450,8 +22090,8 @@ const de_SubscriptionCategoryNotFoundFault = ( context: __SerdeContext ): SubscriptionCategoryNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22464,8 +22104,8 @@ const de_SubscriptionEventIdNotFoundFault = ( context: __SerdeContext ): SubscriptionEventIdNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22475,8 +22115,8 @@ const de_SubscriptionEventIdNotFoundFault = ( */ const de_SubscriptionNotFoundFault = (output: any, context: __SerdeContext): SubscriptionNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22489,8 +22129,8 @@ const de_SubscriptionSeverityNotFoundFault = ( context: __SerdeContext ): SubscriptionSeverityNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22500,8 +22140,8 @@ const de_SubscriptionSeverityNotFoundFault = ( */ const de_SupportedOperation = (output: any, context: __SerdeContext): SupportedOperation => { const contents: any = {}; - if (output["OperationName"] !== undefined) { - contents.OperationName = __expectString(output["OperationName"]); + if (output[_ON] != null) { + contents[_ON] = __expectString(output[_ON]); } return contents; }; @@ -22522,8 +22162,8 @@ const de_SupportedOperationList = (output: any, context: __SerdeContext): Suppor */ const de_SupportedPlatform = (output: any, context: __SerdeContext): SupportedPlatform => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -22544,8 +22184,8 @@ const de_SupportedPlatformsList = (output: any, context: __SerdeContext): Suppor */ const de_TableLimitExceededFault = (output: any, context: __SerdeContext): TableLimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22555,8 +22195,8 @@ const de_TableLimitExceededFault = (output: any, context: __SerdeContext): Table */ const de_TableRestoreNotFoundFault = (output: any, context: __SerdeContext): TableRestoreNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22566,47 +22206,47 @@ const de_TableRestoreNotFoundFault = (output: any, context: __SerdeContext): Tab */ const de_TableRestoreStatus = (output: any, context: __SerdeContext): TableRestoreStatus => { const contents: any = {}; - if (output["TableRestoreRequestId"] !== undefined) { - contents.TableRestoreRequestId = __expectString(output["TableRestoreRequestId"]); + if (output[_TRRI] != null) { + contents[_TRRI] = __expectString(output[_TRRI]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["RequestTime"] !== undefined) { - contents.RequestTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RequestTime"])); + if (output[_RTeq] != null) { + contents[_RTeq] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RTeq])); } - if (output["ProgressInMegaBytes"] !== undefined) { - contents.ProgressInMegaBytes = __strictParseLong(output["ProgressInMegaBytes"]) as number; + if (output[_PIMB] != null) { + contents[_PIMB] = __strictParseLong(output[_PIMB]) as number; } - if (output["TotalDataInMegaBytes"] !== undefined) { - contents.TotalDataInMegaBytes = __strictParseLong(output["TotalDataInMegaBytes"]) as number; + if (output[_TDIMB] != null) { + contents[_TDIMB] = __strictParseLong(output[_TDIMB]) as number; } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["SnapshotIdentifier"] !== undefined) { - contents.SnapshotIdentifier = __expectString(output["SnapshotIdentifier"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["SourceDatabaseName"] !== undefined) { - contents.SourceDatabaseName = __expectString(output["SourceDatabaseName"]); + if (output[_SDN] != null) { + contents[_SDN] = __expectString(output[_SDN]); } - if (output["SourceSchemaName"] !== undefined) { - contents.SourceSchemaName = __expectString(output["SourceSchemaName"]); + if (output[_SSN] != null) { + contents[_SSN] = __expectString(output[_SSN]); } - if (output["SourceTableName"] !== undefined) { - contents.SourceTableName = __expectString(output["SourceTableName"]); + if (output[_STN] != null) { + contents[_STN] = __expectString(output[_STN]); } - if (output["TargetDatabaseName"] !== undefined) { - contents.TargetDatabaseName = __expectString(output["TargetDatabaseName"]); + if (output[_TDN] != null) { + contents[_TDN] = __expectString(output[_TDN]); } - if (output["TargetSchemaName"] !== undefined) { - contents.TargetSchemaName = __expectString(output["TargetSchemaName"]); + if (output[_TSN] != null) { + contents[_TSN] = __expectString(output[_TSN]); } - if (output["NewTableName"] !== undefined) { - contents.NewTableName = __expectString(output["NewTableName"]); + if (output[_NTN] != null) { + contents[_NTN] = __expectString(output[_NTN]); } return contents; }; @@ -22628,18 +22268,12 @@ const de_TableRestoreStatusList = (output: any, context: __SerdeContext): TableR const de_TableRestoreStatusMessage = (output: any, context: __SerdeContext): TableRestoreStatusMessage => { const contents: any = {}; if (output.TableRestoreStatusDetails === "") { - contents.TableRestoreStatusDetails = []; - } else if ( - output["TableRestoreStatusDetails"] !== undefined && - output["TableRestoreStatusDetails"]["TableRestoreStatus"] !== undefined - ) { - contents.TableRestoreStatusDetails = de_TableRestoreStatusList( - __getArrayIfSingleItem(output["TableRestoreStatusDetails"]["TableRestoreStatus"]), - context - ); + contents[_TRSD] = []; + } else if (output[_TRSD] != null && output[_TRSD][_TRS] != null) { + contents[_TRSD] = de_TableRestoreStatusList(__getArrayIfSingleItem(output[_TRSD][_TRS]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -22649,11 +22283,11 @@ const de_TableRestoreStatusMessage = (output: any, context: __SerdeContext): Tab */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Val] != null) { + contents[_Val] = __expectString(output[_Val]); } return contents; }; @@ -22663,14 +22297,14 @@ const de_Tag = (output: any, context: __SerdeContext): Tag => { */ const de_TaggedResource = (output: any, context: __SerdeContext): TaggedResource => { const contents: any = {}; - if (output["Tag"] !== undefined) { - contents.Tag = de_Tag(output["Tag"], context); + if (output[_Ta] != null) { + contents[_Ta] = de_Tag(output[_Ta], context); } - if (output["ResourceName"] !== undefined) { - contents.ResourceName = __expectString(output["ResourceName"]); + if (output[_RN] != null) { + contents[_RN] = __expectString(output[_RN]); } - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RT] != null) { + contents[_RT] = __expectString(output[_RT]); } return contents; }; @@ -22692,15 +22326,12 @@ const de_TaggedResourceList = (output: any, context: __SerdeContext): TaggedReso const de_TaggedResourceListMessage = (output: any, context: __SerdeContext): TaggedResourceListMessage => { const contents: any = {}; if (output.TaggedResources === "") { - contents.TaggedResources = []; - } else if (output["TaggedResources"] !== undefined && output["TaggedResources"]["TaggedResource"] !== undefined) { - contents.TaggedResources = de_TaggedResourceList( - __getArrayIfSingleItem(output["TaggedResources"]["TaggedResource"]), - context - ); + contents[_TR] = []; + } else if (output[_TR] != null && output[_TR][_TRa] != null) { + contents[_TR] = de_TaggedResourceList(__getArrayIfSingleItem(output[_TR][_TRa]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -22710,8 +22341,8 @@ const de_TaggedResourceListMessage = (output: any, context: __SerdeContext): Tag */ const de_TagLimitExceededFault = (output: any, context: __SerdeContext): TagLimitExceededFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22744,18 +22375,12 @@ const de_TrackList = (output: any, context: __SerdeContext): MaintenanceTrack[] const de_TrackListMessage = (output: any, context: __SerdeContext): TrackListMessage => { const contents: any = {}; if (output.MaintenanceTracks === "") { - contents.MaintenanceTracks = []; - } else if ( - output["MaintenanceTracks"] !== undefined && - output["MaintenanceTracks"]["MaintenanceTrack"] !== undefined - ) { - contents.MaintenanceTracks = de_TrackList( - __getArrayIfSingleItem(output["MaintenanceTracks"]["MaintenanceTrack"]), - context - ); + contents[_MT] = []; + } else if (output[_MT] != null && output[_MT][_MTa] != null) { + contents[_MT] = de_TrackList(__getArrayIfSingleItem(output[_MT][_MTa]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -22765,8 +22390,8 @@ const de_TrackListMessage = (output: any, context: __SerdeContext): TrackListMes */ const de_UnauthorizedOperation = (output: any, context: __SerdeContext): UnauthorizedOperation => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22779,8 +22404,8 @@ const de_UnauthorizedPartnerIntegrationFault = ( context: __SerdeContext ): UnauthorizedPartnerIntegrationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22790,8 +22415,8 @@ const de_UnauthorizedPartnerIntegrationFault = ( */ const de_UnknownSnapshotCopyRegionFault = (output: any, context: __SerdeContext): UnknownSnapshotCopyRegionFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22801,8 +22426,8 @@ const de_UnknownSnapshotCopyRegionFault = (output: any, context: __SerdeContext) */ const de_UnsupportedOperationFault = (output: any, context: __SerdeContext): UnsupportedOperationFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22812,8 +22437,8 @@ const de_UnsupportedOperationFault = (output: any, context: __SerdeContext): Uns */ const de_UnsupportedOptionFault = (output: any, context: __SerdeContext): UnsupportedOptionFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22823,22 +22448,16 @@ const de_UnsupportedOptionFault = (output: any, context: __SerdeContext): Unsupp */ const de_UpdateTarget = (output: any, context: __SerdeContext): UpdateTarget => { const contents: any = {}; - if (output["MaintenanceTrackName"] !== undefined) { - contents.MaintenanceTrackName = __expectString(output["MaintenanceTrackName"]); + if (output[_MTN] != null) { + contents[_MTN] = __expectString(output[_MTN]); } - if (output["DatabaseVersion"] !== undefined) { - contents.DatabaseVersion = __expectString(output["DatabaseVersion"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } if (output.SupportedOperations === "") { - contents.SupportedOperations = []; - } else if ( - output["SupportedOperations"] !== undefined && - output["SupportedOperations"]["SupportedOperation"] !== undefined - ) { - contents.SupportedOperations = de_SupportedOperationList( - __getArrayIfSingleItem(output["SupportedOperations"]["SupportedOperation"]), - context - ); + contents[_SOu] = []; + } else if (output[_SOu] != null && output[_SOu][_SOup] != null) { + contents[_SOu] = de_SupportedOperationList(__getArrayIfSingleItem(output[_SOu][_SOup]), context); } return contents; }; @@ -22848,31 +22467,31 @@ const de_UpdateTarget = (output: any, context: __SerdeContext): UpdateTarget => */ const de_UsageLimit = (output: any, context: __SerdeContext): UsageLimit => { const contents: any = {}; - if (output["UsageLimitId"] !== undefined) { - contents.UsageLimitId = __expectString(output["UsageLimitId"]); + if (output[_ULI] != null) { + contents[_ULI] = __expectString(output[_ULI]); } - if (output["ClusterIdentifier"] !== undefined) { - contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]); + if (output[_CIl] != null) { + contents[_CIl] = __expectString(output[_CIl]); } - if (output["FeatureType"] !== undefined) { - contents.FeatureType = __expectString(output["FeatureType"]); + if (output[_FT] != null) { + contents[_FT] = __expectString(output[_FT]); } - if (output["LimitType"] !== undefined) { - contents.LimitType = __expectString(output["LimitType"]); + if (output[_LT] != null) { + contents[_LT] = __expectString(output[_LT]); } - if (output["Amount"] !== undefined) { - contents.Amount = __strictParseLong(output["Amount"]) as number; + if (output[_Am] != null) { + contents[_Am] = __strictParseLong(output[_Am]) as number; } - if (output["Period"] !== undefined) { - contents.Period = __expectString(output["Period"]); + if (output[_Pe] != null) { + contents[_Pe] = __expectString(output[_Pe]); } - if (output["BreachAction"] !== undefined) { - contents.BreachAction = __expectString(output["BreachAction"]); + if (output[_BA] != null) { + contents[_BA] = __expectString(output[_BA]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_Ta] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } return contents; }; @@ -22882,8 +22501,8 @@ const de_UsageLimit = (output: any, context: __SerdeContext): UsageLimit => { */ const de_UsageLimitAlreadyExistsFault = (output: any, context: __SerdeContext): UsageLimitAlreadyExistsFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22894,12 +22513,12 @@ const de_UsageLimitAlreadyExistsFault = (output: any, context: __SerdeContext): const de_UsageLimitList = (output: any, context: __SerdeContext): UsageLimitList => { const contents: any = {}; if (output.UsageLimits === "") { - contents.UsageLimits = []; - } else if (output["UsageLimits"] !== undefined && output["UsageLimits"]["member"] !== undefined) { - contents.UsageLimits = de_UsageLimits(__getArrayIfSingleItem(output["UsageLimits"]["member"]), context); + contents[_UL] = []; + } else if (output[_UL] != null && output[_UL][_me] != null) { + contents[_UL] = de_UsageLimits(__getArrayIfSingleItem(output[_UL][_me]), context); } - if (output["Marker"] !== undefined) { - contents.Marker = __expectString(output["Marker"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -22909,8 +22528,8 @@ const de_UsageLimitList = (output: any, context: __SerdeContext): UsageLimitList */ const de_UsageLimitNotFoundFault = (output: any, context: __SerdeContext): UsageLimitNotFoundFault => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -22942,22 +22561,16 @@ const de_ValueStringList = (output: any, context: __SerdeContext): string[] => { */ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { const contents: any = {}; - if (output["VpcEndpointId"] !== undefined) { - contents.VpcEndpointId = __expectString(output["VpcEndpointId"]); + if (output[_VEI] != null) { + contents[_VEI] = __expectString(output[_VEI]); } - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VIp] != null) { + contents[_VIp] = __expectString(output[_VIp]); } if (output.NetworkInterfaces === "") { - contents.NetworkInterfaces = []; - } else if ( - output["NetworkInterfaces"] !== undefined && - output["NetworkInterfaces"]["NetworkInterface"] !== undefined - ) { - contents.NetworkInterfaces = de_NetworkInterfaceList( - __getArrayIfSingleItem(output["NetworkInterfaces"]["NetworkInterface"]), - context - ); + contents[_NIe] = []; + } else if (output[_NIe] != null && output[_NIe][_NIet] != null) { + contents[_NIe] = de_NetworkInterfaceList(__getArrayIfSingleItem(output[_NIe][_NIet]), context); } return contents; }; @@ -22989,11 +22602,11 @@ const de_VpcIdentifierList = (output: any, context: __SerdeContext): string[] => */ const de_VpcSecurityGroupMembership = (output: any, context: __SerdeContext): VpcSecurityGroupMembership => { const contents: any = {}; - if (output["VpcSecurityGroupId"] !== undefined) { - contents.VpcSecurityGroupId = __expectString(output["VpcSecurityGroupId"]); + if (output[_VSGIp] != null) { + contents[_VSGIp] = __expectString(output[_VSGIp]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -23050,6 +22663,611 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2012-12-01"; +const _A = "Action"; +const _AA = "AccountAttributes"; +const _AAL = "AuthorizedAudiencesList"; +const _AAVPC = "AllowedAllVPCs"; +const _AAc = "AccountAttribute"; +const _AAcc = "AccountAlias"; +const _AC = "AutoCreate"; +const _ACC = "AssociatedClusterCount"; +const _ACR = "AllowCancelResize"; +const _ACS = "AquaConfigurationStatus"; +const _ACSGI = "AuthorizeClusterSecurityGroupIngress"; +const _ACq = "AquaConfiguration"; +const _ACs = "AssociatedClusters"; +const _ADS = "AuthorizeDataShare"; +const _ADSC = "AssociateDataShareConsumer"; +const _AEA = "AuthorizeEndpointAccess"; +const _AEAs = "AssociateEntireAccount"; +const _AI = "AdditionalInfo"; +const _AIBSIMB = "ActualIncrementalBackupSizeInMegaBytes"; +const _AIR = "AddIamRoles"; +const _AIc = "AccountId"; +const _AN = "AttributeNames"; +const _ANt = "AttributeName"; +const _AP = "AddPartner"; +const _APAC = "AllowPubliclyAccessibleConsumers"; +const _APC = "AuthenticationProfileContent"; +const _APN = "AuthenticationProfileName"; +const _APu = "AuthenticationProfiles"; +const _ARNE = "AcceptReservedNodeExchange"; +const _ARRIMBPS = "AvgResizeRateInMegaBytesPerSecond"; +const _AS = "AquaStatus"; +const _ASA = "AuthorizeSnapshotAccess"; +const _ASRP = "AutomatedSnapshotRetentionPeriod"; +const _ASp = "ApplyStatus"; +const _AT = "ActionType"; +const _ATIL = "AuthorizedTokenIssuerList"; +const _ATp = "ApplyType"; +const _ATu = "AuthorizeTime"; +const _AV = "AllowedValues"; +const _AVPC = "AllowedVPCs"; +const _AVT = "AttributeValueTarget"; +const _AVU = "AllowVersionUpgrade"; +const _AVt = "AttributeValues"; +const _AVtt = "AttributeValue"; +const _AW = "AllowWrites"; +const _AWRA = "AccountWithRestoreAccess"; +const _AWRAc = "AccountsWithRestoreAccess"; +const _AZ = "AvailabilityZone"; +const _AZR = "AvailabilityZoneRelocation"; +const _AZRS = "AvailabilityZoneRelocationStatus"; +const _AZv = "AvailabilityZones"; +const _Ac = "Account"; +const _Act = "Active"; +const _Ad = "Address"; +const _Am = "Amount"; +const _As = "Associations"; +const _Ass = "Association"; +const _At = "Attribute"; +const _Au = "Authorization"; +const _BA = "BreachAction"; +const _BDCS = "BatchDeleteClusterSnapshots"; +const _BMCS = "BatchModifyClusterSnapshots"; +const _BN = "BucketName"; +const _BPIMB = "BackupProgressInMegaBytes"; +const _C = "Classic"; +const _CA = "ConsumerArn"; +const _CAI = "CustomerAwsId"; +const _CAP = "CreateAuthenticationProfile"; +const _CAS = "ClusterAvailabilityStatus"; +const _CATS = "ClusterAssociatedToSchedule"; +const _CAW = "ConsumerAcceptedWrites"; +const _CAe = "CertificateAssociations"; +const _CAer = "CertificateAssociation"; +const _CAr = "CreatedAt"; +const _CBRIMBPS = "CurrentBackupRateInMegaBytesPerSecond"; +const _CC = "CreateCluster"; +const _CCDA = "CreateCustomDomainAssociation"; +const _CCPG = "CreateClusterParameterGroup"; +const _CCS = "CopyClusterSnapshot"; +const _CCSG = "CreateClusterSecurityGroup"; +const _CCSGr = "CreateClusterSubnetGroup"; +const _CCSr = "CreateClusterSnapshot"; +const _CCT = "ClusterCreateTime"; +const _CCu = "CurrencyCode"; +const _CD = "CreatedDate"; +const _CDCA = "CustomDomainCertificateArn"; +const _CDCED = "CustomDomainCertificateExpiryDate"; +const _CDCET = "CustomDomainCertExpiryTime"; +const _CDN = "CustomDomainName"; +const _CDR = "CurrentDatabaseRevision"; +const _CDRl = "ClusterDbRevisions"; +const _CDRlu = "ClusterDbRevision"; +const _CE = "ClusterExists"; +const _CEA = "CreateEndpointAccess"; +const _CES = "CreateEventSubscription"; +const _CHC = "CreateHsmConfiguration"; +const _CHCC = "CreateHsmClientCertificate"; +const _CI = "ConsumerIdentifier"; +const _CIDRIP = "CIDRIP"; +const _CIR = "ClusterIamRole"; +const _CIl = "ClusterIdentifier"; +const _CN = "ClusterNodes"; +const _CNA = "ClusterNamespaceArn"; +const _CPG = "ClusterParameterGroups"; +const _CPGF = "ClusterParameterGroupFamily"; +const _CPGN = "ClusterParameterGroupName"; +const _CPGl = "ClusterParameterGroup"; +const _CPK = "ClusterPublicKey"; +const _CPSL = "ClusterParameterStatusList"; +const _CR = "CancelResize"; +const _CRIA = "CreateRedshiftIdcApplication"; +const _CRIMBPS = "CurrentRateInMegaBytesPerSecond"; +const _CRN = "ClusterRevisionNumber"; +const _CRRIMBPS = "CurrentRestoreRateInMegaBytesPerSecond"; +const _CRo = "ConsumerRegion"; +const _CS = "ClusterStatus"; +const _CSA = "CreateScheduledAction"; +const _CSCG = "CreateSnapshotCopyGrant"; +const _CSCS = "ClusterSnapshotCopyStatus"; +const _CSG = "ClusterSecurityGroups"; +const _CSGN = "ClusterSecurityGroupName"; +const _CSGNl = "ClusterSubnetGroupName"; +const _CSGl = "ClusterSecurityGroup"; +const _CSGlu = "ClusterSubnetGroups"; +const _CSGlus = "ClusterSubnetGroup"; +const _CSI = "CustSubscriptionId"; +const _CSS = "CreateSnapshotSchedule"; +const _CT = "CreateTags"; +const _CTl = "ClusterType"; +const _CTr = "CreateTime"; +const _CUL = "CreateUsageLimit"; +const _CV = "ClusterVersion"; +const _CVl = "ClusterVersions"; +const _Cl = "Clusters"; +const _Clu = "Cluster"; +const _D = "Description"; +const _DAA = "DescribeAccountAttributes"; +const _DAP = "DeleteAuthenticationProfile"; +const _DAPe = "DescribeAuthenticationProfiles"; +const _DBN = "DBName"; +const _DC = "DeleteCluster"; +const _DCDA = "DeleteCustomDomainAssociation"; +const _DCDAe = "DescribeCustomDomainAssociations"; +const _DCDR = "DescribeClusterDbRevisions"; +const _DCP = "DescribeClusterParameters"; +const _DCPG = "DeleteClusterParameterGroup"; +const _DCPGe = "DescribeClusterParameterGroups"; +const _DCPe = "DefaultClusterParameters"; +const _DCS = "DeleteClusterSnapshot"; +const _DCSG = "DeleteClusterSecurityGroup"; +const _DCSGe = "DeleteClusterSubnetGroup"; +const _DCSGes = "DescribeClusterSecurityGroups"; +const _DCSGesc = "DescribeClusterSubnetGroups"; +const _DCSe = "DescribeClusterSnapshots"; +const _DCT = "DescribeClusterTracks"; +const _DCV = "DescribeClusterVersions"; +const _DCe = "DescribeClusters"; +const _DDCP = "DescribeDefaultClusterParameters"; +const _DDS = "DeauthorizeDataShare"; +const _DDSC = "DisassociateDataShareConsumer"; +const _DDSFC = "DescribeDataSharesForConsumer"; +const _DDSFP = "DescribeDataSharesForProducer"; +const _DDSe = "DescribeDataShares"; +const _DE = "DescribeEvents"; +const _DEA = "DeleteEndpointAccess"; +const _DEAe = "DescribeEndpointAccess"; +const _DEAes = "DescribeEndpointAuthorization"; +const _DEAi = "DisassociateEntireAccount"; +const _DEC = "DescribeEventCategories"; +const _DES = "DeleteEventSubscription"; +const _DESe = "DescribeEventSubscriptions"; +const _DG = "DbGroups"; +const _DHC = "DeleteHsmConfiguration"; +const _DHCC = "DeleteHsmClientCertificate"; +const _DHCCe = "DescribeHsmClientCertificates"; +const _DHCe = "DescribeHsmConfigurations"; +const _DII = "DescribeInboundIntegrations"; +const _DIRA = "DefaultIamRoleArn"; +const _DL = "DisableLogging"; +const _DLS = "DescribeLoggingStatus"; +const _DM = "DeferMaintenance"; +const _DMD = "DeferMaintenanceDuration"; +const _DMET = "DeferMaintenanceEndTime"; +const _DMI = "DeferMaintenanceIdentifier"; +const _DMST = "DeferMaintenanceStartTime"; +const _DMW = "DeferredMaintenanceWindows"; +const _DMWe = "DeferredMaintenanceWindow"; +const _DN = "DatabaseName"; +const _DNCO = "DescribeNodeConfigurationOptions"; +const _DNb = "DbName"; +const _DOCO = "DescribeOrderableClusterOptions"; +const _DP = "DeletePartner"; +const _DPb = "DbPassword"; +const _DPe = "DescribePartners"; +const _DR = "DescribeResize"; +const _DRIA = "DeleteRedshiftIdcApplication"; +const _DRIAe = "DescribeRedshiftIdcApplications"; +const _DRN = "DescribeReservedNodes"; +const _DRNES = "DescribeReservedNodeExchangeStatus"; +const _DRNO = "DescribeReservedNodeOfferings"; +const _DRP = "DeleteResourcePolicy"; +const _DRRD = "DatabaseRevisionReleaseDate"; +const _DRa = "DatabaseRevision"; +const _DRe = "DestinationRegion"; +const _DRr = "DryRun"; +const _DS = "DescribeStorage"; +const _DSA = "DeleteScheduledAction"; +const _DSAa = "DataShareArn"; +const _DSAat = "DataShareAssociations"; +const _DSAe = "DescribeScheduledActions"; +const _DSC = "DisableSnapshotCopy"; +const _DSCG = "DeleteSnapshotCopyGrant"; +const _DSCGe = "DescribeSnapshotCopyGrants"; +const _DSS = "DeleteSnapshotSchedule"; +const _DSSe = "DescribeSnapshotSchedules"; +const _DSa = "DataShares"; +const _DSi = "DisassociateSchedule"; +const _DSu = "DurationSeconds"; +const _DT = "DeleteTags"; +const _DTIMB = "DataTransferredInMegaBytes"; +const _DTP = "DataTransferProgress"; +const _DTPP = "DataTransferProgressPercent"; +const _DTRS = "DescribeTableRestoreStatus"; +const _DTa = "DataType"; +const _DTe = "DescribeTags"; +const _DU = "DbUser"; +const _DUL = "DeleteUsageLimit"; +const _DULe = "DescribeUsageLimits"; +const _DV = "DatabaseVersion"; +const _Da = "Date"; +const _Du = "Duration"; +const _E = "Encrypted"; +const _EAL = "EndpointAccessList"; +const _EALn = "EndpointAuthorizationList"; +const _EC = "EventCategories"; +const _ECL = "EventCategoriesList"; +const _ECM = "EventCategoriesMap"; +const _ECML = "EventCategoriesMapList"; +const _ECSG = "EC2SecurityGroups"; +const _ECSGN = "EC2SecurityGroupName"; +const _ECSGOI = "EC2SecurityGroupOwnerId"; +const _ECSGe = "EC2SecurityGroup"; +const _ECSI = "EnableCaseSensitiveIdentifier"; +const _ECT = "EndpointCreateTime"; +const _ECn = "EndpointCount"; +const _ECr = "ErrorCode"; +const _ECv = "EventCategory"; +const _ED = "EventDescription"; +const _EDUP = "EstimatedDiskUtilizationPercent"; +const _EFV = "EngineFullVersion"; +const _EI = "ElasticIp"; +const _EIM = "EventInfoMap"; +const _EIS = "ElasticIpStatus"; +const _EIv = "EventId"; +const _EL = "EnableLogging"; +const _EM = "ErrorMessage"; +const _EN = "EndpointName"; +const _ENSST = "ExpectedNextSnapshotScheduleTime"; +const _ENSSTS = "ExpectedNextSnapshotScheduleTimeStatus"; +const _ERN = "ExchangedReservedNode"; +const _ERNONO = "ElasticResizeNumberOfNodeOptions"; +const _ES = "EventSubscription"; +const _ESC = "EnableSnapshotCopy"; +const _ESL = "EventSubscriptionsList"; +const _ESTC = "EstimatedSecondsToCompletion"; +const _ESn = "EndpointStatus"; +const _ET = "EndTime"; +const _ETIS = "ElapsedTimeInSeconds"; +const _ETTCIS = "EstimatedTimeToCompletionInSeconds"; +const _ETn = "EncryptionType"; +const _EVR = "EnhancedVpcRouting"; +const _EWHSM = "EncryptedWithHSM"; +const _En = "Enabled"; +const _Ena = "Enable"; +const _End = "Endpoint"; +const _Er = "Errors"; +const _Ev = "Events"; +const _Eve = "Event"; +const _Ex = "Expiration"; +const _F = "Force"; +const _FC = "FailureCode"; +const _FCSI = "FinalClusterSnapshotIdentifier"; +const _FCSRP = "FinalClusterSnapshotRetentionPeriod"; +const _FP = "FixedPrice"; +const _FPC = "FailoverPrimaryCompute"; +const _FR = "FailureReason"; +const _FT = "FeatureType"; +const _Fi = "Filters"; +const _G = "Grantee"; +const _GCC = "GetClusterCredentials"; +const _GCCWIAM = "GetClusterCredentialsWithIAM"; +const _GRNECO = "GetReservedNodeExchangeConfigurationOptions"; +const _GRNEO = "GetReservedNodeExchangeOfferings"; +const _GRP = "GetResourcePolicy"; +const _Gr = "Grantor"; +const _HC = "HsmConfiguration"; +const _HCC = "HsmClientCertificate"; +const _HCCI = "HsmClientCertificateIdentifier"; +const _HCCPK = "HsmClientCertificatePublicKey"; +const _HCCs = "HsmClientCertificates"; +const _HCI = "HsmConfigurationIdentifier"; +const _HCs = "HsmConfigurations"; +const _HIA = "HsmIpAddress"; +const _HPN = "HsmPartitionName"; +const _HPP = "HsmPartitionPassword"; +const _HS = "HsmStatus"; +const _HSPC = "HsmServerPublicCertificate"; +const _I = "Identifiers"; +const _IA = "IntegrationArn"; +const _IAT = "IpAddressType"; +const _IAp = "Ipv6Address"; +const _IDN = "IdcDisplayName"; +const _IE = "IntegrationError"; +const _II = "InboundIntegrations"; +const _IIA = "IdcInstanceArn"; +const _IIn = "InboundIntegration"; +const _IM = "IsModifiable"; +const _IMAA = "IdcManagedApplicationArn"; +const _IN = "IdentityNamespace"; +const _IOS = "IdcOnboardStatus"; +const _IPR = "IPRanges"; +const _IPRa = "IPRange"; +const _IR = "IamRoles"; +const _IRA = "IamRoleArn"; +const _IRa = "IamRole"; +const _ITC = "ImportTablesCompleted"; +const _ITIP = "ImportTablesInProgress"; +const _ITNS = "ImportTablesNotStarted"; +const _K = "Key"; +const _KKI = "KmsKeyId"; +const _LDT = "LogDestinationType"; +const _LE = "LogExports"; +const _LEo = "LoggingEnabled"; +const _LF = "LakeFormation"; +const _LFM = "LastFailureMessage"; +const _LFQ = "LakeFormationQuery"; +const _LFT = "LastFailureTime"; +const _LSD = "LoadSampleData"; +const _LSDT = "LastSuccessfulDeliveryTime"; +const _LT = "LimitType"; +const _M = "Marker"; +const _MAC = "ModifyAquaConfiguration"; +const _MAP = "ModifyAuthenticationProfile"; +const _MAZ = "MultiAZ"; +const _MAZS = "MultiAZSecondary"; +const _MB = "ManagedBy"; +const _MC = "ModifyCluster"; +const _MCDA = "ModifyCustomDomainAssociation"; +const _MCDR = "ModifyClusterDbRevision"; +const _MCIR = "ModifyClusterIamRoles"; +const _MCM = "ModifyClusterMaintenance"; +const _MCPG = "ModifyClusterParameterGroup"; +const _MCS = "ModifyClusterSnapshot"; +const _MCSG = "ModifyClusterSubnetGroup"; +const _MCSS = "ModifyClusterSnapshotSchedule"; +const _MEA = "ModifyEndpointAccess"; +const _MES = "ModifyEventSubscription"; +const _MEV = "MinimumEngineVersion"; +const _MMP = "ManageMasterPassword"; +const _MPSA = "MasterPasswordSecretArn"; +const _MPSKKI = "MasterPasswordSecretKmsKeyId"; +const _MR = "MaxRecords"; +const _MRIA = "ModifyRedshiftIdcApplication"; +const _MS = "ModifyStatus"; +const _MSA = "ModifyScheduledAction"; +const _MSCRP = "ModifySnapshotCopyRetentionPeriod"; +const _MSRD = "ManualSnapshotRemainingDays"; +const _MSRP = "ManualSnapshotRetentionPeriod"; +const _MSS = "ModifySnapshotSchedule"; +const _MT = "MaintenanceTracks"; +const _MTN = "MaintenanceTrackName"; +const _MTa = "MaintenanceTrack"; +const _MU = "MasterUsername"; +const _MUL = "ModifyUsageLimit"; +const _MUP = "MasterUserPassword"; +const _Ma = "Manual"; +const _Me = "Message"; +const _Mo = "Mode"; +const _N = "Name"; +const _NC = "NodeCount"; +const _NCI = "NewClusterIdentifier"; +const _NCO = "NodeConfigurationOption"; +const _NCOL = "NodeConfigurationOptionList"; +const _NI = "NextInvocations"; +const _NII = "NetworkInterfaceId"; +const _NIe = "NetworkInterfaces"; +const _NIet = "NetworkInterface"; +const _NMWST = "NextMaintenanceWindowStartTime"; +const _NON = "NumberOfNodes"; +const _NR = "NodeRole"; +const _NRT = "NextRefreshTime"; +const _NT = "NodeType"; +const _NTN = "NewTableName"; +const _O = "Operator"; +const _OA = "OwnerAccount"; +const _OCO = "OrderableClusterOptions"; +const _OCOr = "OrderableClusterOption"; +const _ON = "OperationName"; +const _OT = "OfferingType"; +const _P = "Port"; +const _PA = "PubliclyAccessible"; +const _PAED = "ParameterApplyErrorDescription"; +const _PAS = "ParameterApplyStatus"; +const _PAW = "ProducerAllowedWrites"; +const _PAe = "PendingActions"; +const _PAr = "ProducerArn"; +const _PC = "PauseCluster"; +const _PG = "ParameterGroups"; +const _PGF = "ParameterGroupFamily"; +const _PGN = "ParameterGroupName"; +const _PGS = "ParameterGroupStatus"; +const _PIA = "PrivateIpAddress"; +const _PII = "PartnerIntegrationInfo"; +const _PIIL = "PartnerIntegrationInfoList"; +const _PIMB = "ProgressInMegaBytes"; +const _PIPA = "PrivateIPAddress"; +const _PIPAu = "PublicIPAddress"; +const _PMV = "PendingModifiedValues"; +const _PMW = "PreferredMaintenanceWindow"; +const _PN = "PartnerName"; +const _PNa = "ParameterName"; +const _PRNO = "PurchaseReservedNodeOffering"; +const _PRP = "PutResourcePolicy"; +const _PV = "ParameterValue"; +const _Pa = "Parameters"; +const _Par = "Parameter"; +const _Pe = "Period"; +const _Po = "Policy"; +const _R = "Resources"; +const _RA = "ResourceArn"; +const _RAP = "ResetAllParameters"; +const _RC = "RebootCluster"; +const _RCA = "RecurringChargeAmount"; +const _RCF = "RecurringChargeFrequency"; +const _RCPG = "ResetClusterParameterGroup"; +const _RCSGI = "RevokeClusterSecurityGroupIngress"; +const _RCe = "ResizeCluster"; +const _RCec = "RecurringCharges"; +const _RCecu = "RecurringCharge"; +const _RCes = "ResumeCluster"; +const _RDS = "RejectDataShare"; +const _REA = "RevokeEndpointAccess"; +const _REK = "RotateEncryptionKey"; +const _RFCS = "RestoreFromClusterSnapshot"; +const _RI = "ResizeInfo"; +const _RIA = "RedshiftIdcApplication"; +const _RIAA = "RedshiftIdcApplicationArn"; +const _RIAN = "RedshiftIdcApplicationName"; +const _RIAe = "RedshiftIdcApplications"; +const _RIR = "RemoveIamRoles"; +const _RN = "ResourceName"; +const _RNCO = "ReservedNodeConfigurationOption"; +const _RNCOL = "ReservedNodeConfigurationOptionList"; +const _RNERI = "ReservedNodeExchangeRequestId"; +const _RNES = "ReservedNodeExchangeStatus"; +const _RNESD = "ReservedNodeExchangeStatusDetails"; +const _RNI = "ReservedNodeId"; +const _RNO = "ReservedNodeOfferings"; +const _RNOI = "ReservedNodeOfferingId"; +const _RNOT = "ReservedNodeOfferingType"; +const _RNOe = "ReservedNodeOffering"; +const _RNT = "RestorableNodeTypes"; +const _RNe = "ReservedNode"; +const _RNes = "ReservedNodes"; +const _RO = "ResourceOwner"; +const _RP = "RetentionPeriod"; +const _RPe = "ResourcePolicy"; +const _RS = "RestoreStatus"; +const _RSA = "RevokeSnapshotAccess"; +const _RT = "ResourceType"; +const _RTFCS = "RestoreTableFromClusterSnapshot"; +const _RTe = "RevisionTarget"; +const _RTeq = "RequestTime"; +const _RTes = "ResizeType"; +const _RTev = "RevisionTargets"; +const _S = "Severity"; +const _SA = "SnapshotArn"; +const _SAD = "ScheduledActionDescription"; +const _SAN = "ScheduledActionName"; +const _SAS = "ScheduleAssociationState"; +const _SAT = "ScheduledActionTime"; +const _SAZ = "SubnetAvailabilityZone"; +const _SAc = "ScheduledActions"; +const _SAch = "ScheduledAction"; +const _SAo = "SourceArn"; +const _SCD = "StatusChangeDate"; +const _SCG = "SnapshotCopyGrant"; +const _SCGN = "SnapshotCopyGrantName"; +const _SCGn = "SnapshotCopyGrants"; +const _SCI = "SnapshotClusterIdentifier"; +const _SCIAT = "SupportedClusterIpAddressTypes"; +const _SCT = "SubscriptionCreationTime"; +const _SCTn = "SnapshotCreateTime"; +const _SD = "ScheduleDefinitions"; +const _SDN = "SourceDatabaseName"; +const _SDc = "ScheduleDescription"; +const _SDch = "ScheduleDefinition"; +const _SE = "SortingEntities"; +const _SEM = "SnapshotErrorMessage"; +const _SFCS = "SkipFinalClusterSnapshot"; +const _SGN = "SubnetGroupName"; +const _SGS = "SubnetGroupStatus"; +const _SI = "SnapshotIdentifier"; +const _SIL = "SnapshotIdentifierList"; +const _SILo = "SourceIdsList"; +const _SIc = "ScheduleIdentifier"; +const _SIe = "ServiceIntegrations"; +const _SIo = "SourceIds"; +const _SIou = "SourceIdentifier"; +const _SIour = "SourceId"; +const _SIu = "SubnetIds"; +const _SIub = "SubnetId"; +const _SIubn = "SubnetIdentifier"; +const _SKP = "S3KeyPrefix"; +const _SM = "StatusMessage"; +const _SN = "SubscriptionName"; +const _SO = "SortOrder"; +const _SOu = "SupportedOperations"; +const _SOup = "SupportedOperation"; +const _SP = "SupportedPlatforms"; +const _SPu = "SupportedPlatform"; +const _SR = "SourceRegion"; +const _SRN = "SourceReservedNode"; +const _SRNC = "SourceReservedNodeCount"; +const _SRNI = "SourceReservedNodeId"; +const _SRNT = "SourceReservedNodeType"; +const _SRST = "SnapshotRetentionStartTime"; +const _SS = "SnapshotSchedules"; +const _SSCI = "SourceSnapshotClusterIdentifier"; +const _SSI = "SourceSnapshotIdentifier"; +const _SSIMB = "SnapshotSizeInMegaBytes"; +const _SSIn = "SnapshotScheduleIdentifier"; +const _SSN = "SourceSchemaName"; +const _SSS = "SnapshotScheduleState"; +const _SSn = "SnapshotSchedule"; +const _SSu = "SubnetStatus"; +const _ST = "SourceType"; +const _STA = "SnsTopicArn"; +const _STN = "SourceTableName"; +const _STn = "SnapshotType"; +const _STna = "SnapshotTime"; +const _STt = "StartTime"; +const _Sc = "Schedule"; +const _Sn = "Snapshot"; +const _Sna = "Snapshots"; +const _So = "Source"; +const _St = "Status"; +const _Sta = "State"; +const _Str = "String"; +const _Su = "Subnets"; +const _Sub = "Subnet"; +const _T = "Tags"; +const _TA = "TargetAction"; +const _TAT = "TargetActionType"; +const _TAa = "TargetArn"; +const _TBSIMB = "TotalBackupSizeInMegaBytes"; +const _TCT = "TargetClusterType"; +const _TDIMB = "TotalDataInMegaBytes"; +const _TDN = "TargetDatabaseName"; +const _TET = "TargetEncryptionType"; +const _TK = "TagKeys"; +const _TNON = "TargetNumberOfNodes"; +const _TNT = "TargetNodeType"; +const _TPSIMB = "TotalProvisionedStorageInMegaBytes"; +const _TR = "TaggedResources"; +const _TRDIMB = "TotalResizeDataInMegaBytes"; +const _TRNC = "TargetReservedNodeCount"; +const _TRNO = "TargetReservedNodeOffering"; +const _TRNOI = "TargetReservedNodeOfferingId"; +const _TRNT = "TargetReservedNodeType"; +const _TRRI = "TableRestoreRequestId"; +const _TRS = "TableRestoreStatus"; +const _TRSD = "TableRestoreStatusDetails"; +const _TRa = "TaggedResource"; +const _TSCIMB = "TotalStorageCapacityInMegaBytes"; +const _TSI = "TargetSnapshotIdentifier"; +const _TSN = "TargetSchemaName"; +const _TTIA = "TrustedTokenIssuerArn"; +const _TV = "TagValues"; +const _Ta = "Tag"; +const _UA = "UpdatedAt"; +const _UL = "UsageLimits"; +const _ULI = "UsageLimitId"; +const _UP = "UsagePrice"; +const _UPS = "UpdatePartnerStatus"; +const _UT = "UpdateTargets"; +const _UTp = "UpdateTarget"; +const _V = "Version"; +const _VE = "VpcEndpoints"; +const _VEI = "VpcEndpointId"; +const _VEp = "VpcEndpoint"; +const _VI = "VpcIds"; +const _VIp = "VpcId"; +const _VIpc = "VpcIdentifier"; +const _VSG = "VpcSecurityGroups"; +const _VSGI = "VpcSecurityGroupIds"; +const _VSGIp = "VpcSecurityGroupId"; +const _VSGp = "VpcSecurityGroup"; +const _Va = "Values"; +const _Val = "Value"; +const _i = "item"; +const _m = "message"; +const _me = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-rekognition/src/models/models_1.ts b/clients/client-rekognition/src/models/models_1.ts index 98de87d64322..fdcfc8df7592 100644 --- a/clients/client-rekognition/src/models/models_1.ts +++ b/clients/client-rekognition/src/models/models_1.ts @@ -29,6 +29,7 @@ import { StreamProcessorDataSharingPreference, Video, } from "./models_0"; + import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException"; /** diff --git a/clients/client-rekognitionstreaming/package.json b/clients/client-rekognitionstreaming/package.json index 50e4e4c3d141..dca1e07dae80 100644 --- a/clients/client-rekognitionstreaming/package.json +++ b/clients/client-rekognitionstreaming/package.json @@ -37,6 +37,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts b/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts index 8030bf15ba41..8f1e1bd9449b 100644 --- a/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -63,28 +64,20 @@ export const se_StartFaceLivenessSessionCommand = async ( input: StartFaceLivenessSessionCommandInput, context: __SerdeContext & __EventStreamSerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-rekognition-streaming-liveness-session-id": input.SessionId!, - "x-amz-rekognition-streaming-liveness-video-width": input.VideoWidth!, - "x-amz-rekognition-streaming-liveness-video-height": input.VideoHeight!, - "x-amz-rekognition-streaming-liveness-challenge-versions": input.ChallengeVersions!, + [_xarslsi]: input[_SI]!, + [_xarslvw]: input[_VW]!, + [_xarslvh]: input[_VH]!, + [_xarslcv]: input[_CV]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-face-liveness-session"; + b.bp("/start-face-liveness-session"); let body: any; if (input.LivenessRequestStream !== undefined) { body = se_LivenessRequestStream(input.LivenessRequestStream, context); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -99,7 +92,7 @@ export const de_StartFaceLivenessSessionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - SessionId: [, output.headers["x-amz-rekognition-streaming-liveness-session-id"]], + [_SI]: [, output.headers[_xarslsi]], }); const data: any = output.body; contents.LivenessResponseStream = de_LivenessResponseStream(data, context); @@ -657,6 +650,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CV = "ChallengeVersions"; +const _SI = "SessionId"; +const _VH = "VideoHeight"; +const _VW = "VideoWidth"; +const _xarslcv = "x-amz-rekognition-streaming-liveness-challenge-versions"; +const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id"; +const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height"; +const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-repostspace/package.json b/clients/client-repostspace/package.json index 848fbac9e911..2303d1507595 100644 --- a/clients/client-repostspace/package.json +++ b/clients/client-repostspace/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-repostspace/src/protocols/Aws_restJson1.ts b/clients/client-repostspace/src/protocols/Aws_restJson1.ts index 552b87bc9368..52986adc57df 100644 --- a/clients/client-repostspace/src/protocols/Aws_restJson1.ts +++ b/clients/client-repostspace/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -56,11 +57,11 @@ export const se_CreateSpaceCommand = async ( input: CreateSpaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces"; + b.bp("/spaces"); let body: any; body = JSON.stringify( take(input, { @@ -73,15 +74,8 @@ export const se_CreateSpaceCommand = async ( userKMSKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -91,20 +85,13 @@ export const se_DeleteSpaceCommand = async ( input: DeleteSpaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces/{spaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceId", () => input.spaceId!, "{spaceId}", false); + b.bp("/spaces/{spaceId}"); + b.p("spaceId", () => input.spaceId!, "{spaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -114,22 +101,14 @@ export const se_DeregisterAdminCommand = async ( input: DeregisterAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces/{spaceId}/admins/{adminId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceId", () => input.spaceId!, "{spaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "adminId", () => input.adminId!, "{adminId}", false); + b.bp("/spaces/{spaceId}/admins/{adminId}"); + b.p("spaceId", () => input.spaceId!, "{spaceId}", false); + b.p("adminId", () => input.adminId!, "{adminId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -139,20 +118,13 @@ export const se_GetSpaceCommand = async ( input: GetSpaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces/{spaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceId", () => input.spaceId!, "{spaceId}", false); + b.bp("/spaces/{spaceId}"); + b.p("spaceId", () => input.spaceId!, "{spaceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -162,24 +134,16 @@ export const se_ListSpacesCommand = async ( input: ListSpacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces"; + b.bp("/spaces"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -189,20 +153,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -212,22 +169,14 @@ export const se_RegisterAdminCommand = async ( input: RegisterAdminCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces/{spaceId}/admins/{adminId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceId", () => input.spaceId!, "{spaceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "adminId", () => input.adminId!, "{adminId}", false); + b.bp("/spaces/{spaceId}/admins/{adminId}"); + b.p("spaceId", () => input.spaceId!, "{spaceId}", false); + b.p("adminId", () => input.adminId!, "{adminId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -237,12 +186,12 @@ export const se_SendInvitesCommand = async ( input: SendInvitesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces/{spaceId}/invite"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceId", () => input.spaceId!, "{spaceId}", false); + b.bp("/spaces/{spaceId}/invite"); + b.p("spaceId", () => input.spaceId!, "{spaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -251,15 +200,8 @@ export const se_SendInvitesCommand = async ( title: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -269,27 +211,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -299,27 +234,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -329,12 +256,12 @@ export const se_UpdateSpaceCommand = async ( input: UpdateSpaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/spaces/{spaceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "spaceId", () => input.spaceId!, "{spaceId}", false); + b.bp("/spaces/{spaceId}"); + b.p("spaceId", () => input.spaceId!, "{spaceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -343,15 +270,8 @@ export const se_UpdateSpaceCommand = async ( tier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1049,10 +969,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1117,10 +1034,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1224,6 +1138,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-resiliencehub/package.json b/clients/client-resiliencehub/package.json index 33ec30c52000..c2a0b42931b0 100644 --- a/clients/client-resiliencehub/package.json +++ b/clients/client-resiliencehub/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts index 2bc770e46983..1f400b683a61 100644 --- a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts +++ b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -248,12 +249,11 @@ export const se_AddDraftAppVersionResourceMappingsCommand = async ( input: AddDraftAppVersionResourceMappingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/add-draft-app-version-resource-mappings"; + b.bp("/add-draft-app-version-resource-mappings"); let body: any; body = JSON.stringify( take(input, { @@ -261,15 +261,8 @@ export const se_AddDraftAppVersionResourceMappingsCommand = async ( resourceMappings: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -279,12 +272,11 @@ export const se_BatchUpdateRecommendationStatusCommand = async ( input: BatchUpdateRecommendationStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batch-update-recommendation-status"; + b.bp("/batch-update-recommendation-status"); let body: any; body = JSON.stringify( take(input, { @@ -292,15 +284,8 @@ export const se_BatchUpdateRecommendationStatusCommand = async ( requestEntries: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -310,11 +295,11 @@ export const se_CreateAppCommand = async ( input: CreateAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app"; + b.bp("/create-app"); let body: any; body = JSON.stringify( take(input, { @@ -328,15 +313,8 @@ export const se_CreateAppCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -346,12 +324,11 @@ export const se_CreateAppVersionAppComponentCommand = async ( input: CreateAppVersionAppComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-app-component"; + b.bp("/create-app-version-app-component"); let body: any; body = JSON.stringify( take(input, { @@ -363,15 +340,8 @@ export const se_CreateAppVersionAppComponentCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -381,12 +351,11 @@ export const se_CreateAppVersionResourceCommand = async ( input: CreateAppVersionResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-resource"; + b.bp("/create-app-version-resource"); let body: any; body = JSON.stringify( take(input, { @@ -402,15 +371,8 @@ export const se_CreateAppVersionResourceCommand = async ( resourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -420,12 +382,11 @@ export const se_CreateRecommendationTemplateCommand = async ( input: CreateRecommendationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-recommendation-template"; + b.bp("/create-recommendation-template"); let body: any; body = JSON.stringify( take(input, { @@ -439,15 +400,8 @@ export const se_CreateRecommendationTemplateCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -457,12 +411,11 @@ export const se_CreateResiliencyPolicyCommand = async ( input: CreateResiliencyPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-resiliency-policy"; + b.bp("/create-resiliency-policy"); let body: any; body = JSON.stringify( take(input, { @@ -475,15 +428,8 @@ export const se_CreateResiliencyPolicyCommand = async ( tier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -493,11 +439,11 @@ export const se_DeleteAppCommand = async ( input: DeleteAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app"; + b.bp("/delete-app"); let body: any; body = JSON.stringify( take(input, { @@ -506,15 +452,8 @@ export const se_DeleteAppCommand = async ( forceDelete: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -524,11 +463,11 @@ export const se_DeleteAppAssessmentCommand = async ( input: DeleteAppAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-assessment"; + b.bp("/delete-app-assessment"); let body: any; body = JSON.stringify( take(input, { @@ -536,15 +475,8 @@ export const se_DeleteAppAssessmentCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -554,12 +486,11 @@ export const se_DeleteAppInputSourceCommand = async ( input: DeleteAppInputSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-input-source"; + b.bp("/delete-app-input-source"); let body: any; body = JSON.stringify( take(input, { @@ -570,15 +501,8 @@ export const se_DeleteAppInputSourceCommand = async ( terraformSource: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -588,12 +512,11 @@ export const se_DeleteAppVersionAppComponentCommand = async ( input: DeleteAppVersionAppComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-app-component"; + b.bp("/delete-app-version-app-component"); let body: any; body = JSON.stringify( take(input, { @@ -602,15 +525,8 @@ export const se_DeleteAppVersionAppComponentCommand = async ( id: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -620,12 +536,11 @@ export const se_DeleteAppVersionResourceCommand = async ( input: DeleteAppVersionResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-resource"; + b.bp("/delete-app-version-resource"); let body: any; body = JSON.stringify( take(input, { @@ -638,15 +553,8 @@ export const se_DeleteAppVersionResourceCommand = async ( resourceName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -656,12 +564,11 @@ export const se_DeleteRecommendationTemplateCommand = async ( input: DeleteRecommendationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-recommendation-template"; + b.bp("/delete-recommendation-template"); let body: any; body = JSON.stringify( take(input, { @@ -669,15 +576,8 @@ export const se_DeleteRecommendationTemplateCommand = async ( recommendationTemplateArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -687,12 +587,11 @@ export const se_DeleteResiliencyPolicyCommand = async ( input: DeleteResiliencyPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-resiliency-policy"; + b.bp("/delete-resiliency-policy"); let body: any; body = JSON.stringify( take(input, { @@ -700,15 +599,8 @@ export const se_DeleteResiliencyPolicyCommand = async ( policyArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -718,26 +610,19 @@ export const se_DescribeAppCommand = async ( input: DescribeAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app"; + b.bp("/describe-app"); let body: any; body = JSON.stringify( take(input, { appArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -747,27 +632,19 @@ export const se_DescribeAppAssessmentCommand = async ( input: DescribeAppAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-assessment"; + b.bp("/describe-app-assessment"); let body: any; body = JSON.stringify( take(input, { assessmentArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -777,11 +654,11 @@ export const se_DescribeAppVersionCommand = async ( input: DescribeAppVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version"; + b.bp("/describe-app-version"); let body: any; body = JSON.stringify( take(input, { @@ -789,15 +666,8 @@ export const se_DescribeAppVersionCommand = async ( appVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -807,12 +677,11 @@ export const se_DescribeAppVersionAppComponentCommand = async ( input: DescribeAppVersionAppComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-app-component"; + b.bp("/describe-app-version-app-component"); let body: any; body = JSON.stringify( take(input, { @@ -821,15 +690,8 @@ export const se_DescribeAppVersionAppComponentCommand = async ( id: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -839,12 +701,11 @@ export const se_DescribeAppVersionResourceCommand = async ( input: DescribeAppVersionResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-resource"; + b.bp("/describe-app-version-resource"); let body: any; body = JSON.stringify( take(input, { @@ -857,15 +718,8 @@ export const se_DescribeAppVersionResourceCommand = async ( resourceName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -875,13 +729,11 @@ export const se_DescribeAppVersionResourcesResolutionStatusCommand = async ( input: DescribeAppVersionResourcesResolutionStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/describe-app-version-resources-resolution-status"; + b.bp("/describe-app-version-resources-resolution-status"); let body: any; body = JSON.stringify( take(input, { @@ -890,15 +742,8 @@ export const se_DescribeAppVersionResourcesResolutionStatusCommand = async ( resolutionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -908,12 +753,11 @@ export const se_DescribeAppVersionTemplateCommand = async ( input: DescribeAppVersionTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-template"; + b.bp("/describe-app-version-template"); let body: any; body = JSON.stringify( take(input, { @@ -921,15 +765,8 @@ export const se_DescribeAppVersionTemplateCommand = async ( appVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -939,28 +776,19 @@ export const se_DescribeDraftAppVersionResourcesImportStatusCommand = async ( input: DescribeDraftAppVersionResourcesImportStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/describe-draft-app-version-resources-import-status"; + b.bp("/describe-draft-app-version-resources-import-status"); let body: any; body = JSON.stringify( take(input, { appArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -970,27 +798,19 @@ export const se_DescribeResiliencyPolicyCommand = async ( input: DescribeResiliencyPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-resiliency-policy"; + b.bp("/describe-resiliency-policy"); let body: any; body = JSON.stringify( take(input, { policyArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1000,12 +820,11 @@ export const se_ImportResourcesToDraftAppVersionCommand = async ( input: ImportResourcesToDraftAppVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import-resources-to-draft-app-version"; + b.bp("/import-resources-to-draft-app-version"); let body: any; body = JSON.stringify( take(input, { @@ -1016,15 +835,8 @@ export const se_ImportResourcesToDraftAppVersionCommand = async ( terraformSources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1034,12 +846,11 @@ export const se_ListAlarmRecommendationsCommand = async ( input: ListAlarmRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-alarm-recommendations"; + b.bp("/list-alarm-recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -1048,15 +859,8 @@ export const se_ListAlarmRecommendationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1066,12 +870,11 @@ export const se_ListAppAssessmentComplianceDriftsCommand = async ( input: ListAppAssessmentComplianceDriftsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessment-compliance-drifts"; + b.bp("/list-app-assessment-compliance-drifts"); let body: any; body = JSON.stringify( take(input, { @@ -1080,15 +883,8 @@ export const se_ListAppAssessmentComplianceDriftsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1098,33 +894,22 @@ export const se_ListAppAssessmentsCommand = async ( input: ListAppAssessmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessments"; + b.bp("/list-app-assessments"); const query: any = map({ - appArn: [, input.appArn!], - assessmentName: [, input.assessmentName!], - assessmentStatus: [ - () => input.assessmentStatus !== void 0, - () => (input.assessmentStatus! || []).map((_entry) => _entry as any), - ], - complianceStatus: [, input.complianceStatus!], - invoker: [, input.invoker!], - reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder!.toString()], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_aA]: [, input[_aA]!], + [_aN]: [, input[_aN]!], + [_aS]: [() => input.assessmentStatus !== void 0, () => (input[_aS]! || []).map((_entry) => _entry as any)], + [_cS]: [, input[_cS]!], + [_i]: [, input[_i]!], + [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO]!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1134,12 +919,11 @@ export const se_ListAppComponentCompliancesCommand = async ( input: ListAppComponentCompliancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-component-compliances"; + b.bp("/list-app-component-compliances"); let body: any; body = JSON.stringify( take(input, { @@ -1148,15 +932,8 @@ export const se_ListAppComponentCompliancesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1166,12 +943,11 @@ export const se_ListAppComponentRecommendationsCommand = async ( input: ListAppComponentRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-component-recommendations"; + b.bp("/list-app-component-recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -1180,15 +956,8 @@ export const se_ListAppComponentRecommendationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1198,12 +967,11 @@ export const se_ListAppInputSourcesCommand = async ( input: ListAppInputSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-input-sources"; + b.bp("/list-app-input-sources"); let body: any; body = JSON.stringify( take(input, { @@ -1213,15 +981,8 @@ export const se_ListAppInputSourcesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1231,35 +992,27 @@ export const se_ListAppsCommand = async ( input: ListAppsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-apps"; + b.bp("/list-apps"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - name: [, input.name!], - appArn: [, input.appArn!], - fromLastAssessmentTime: [ + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_n]: [, input[_n]!], + [_aA]: [, input[_aA]!], + [_fLAT]: [ () => input.fromLastAssessmentTime !== void 0, - () => (input.fromLastAssessmentTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_fLAT]!.toISOString().split(".")[0] + "Z").toString(), ], - toLastAssessmentTime: [ + [_tLAT]: [ () => input.toLastAssessmentTime !== void 0, - () => (input.toLastAssessmentTime!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_tLAT]!.toISOString().split(".")[0] + "Z").toString(), ], - reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder!.toString()], + [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1269,12 +1022,11 @@ export const se_ListAppVersionAppComponentsCommand = async ( input: ListAppVersionAppComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-app-components"; + b.bp("/list-app-version-app-components"); let body: any; body = JSON.stringify( take(input, { @@ -1284,15 +1036,8 @@ export const se_ListAppVersionAppComponentsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1302,12 +1047,11 @@ export const se_ListAppVersionResourceMappingsCommand = async ( input: ListAppVersionResourceMappingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-resource-mappings"; + b.bp("/list-app-version-resource-mappings"); let body: any; body = JSON.stringify( take(input, { @@ -1317,15 +1061,8 @@ export const se_ListAppVersionResourceMappingsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1335,12 +1072,11 @@ export const se_ListAppVersionResourcesCommand = async ( input: ListAppVersionResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-resources"; + b.bp("/list-app-version-resources"); let body: any; body = JSON.stringify( take(input, { @@ -1351,15 +1087,8 @@ export const se_ListAppVersionResourcesCommand = async ( resolutionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1369,11 +1098,11 @@ export const se_ListAppVersionsCommand = async ( input: ListAppVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-versions"; + b.bp("/list-app-versions"); let body: any; body = JSON.stringify( take(input, { @@ -1384,15 +1113,8 @@ export const se_ListAppVersionsCommand = async ( startTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1402,30 +1124,21 @@ export const se_ListRecommendationTemplatesCommand = async ( input: ListRecommendationTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-recommendation-templates"; + b.bp("/list-recommendation-templates"); const query: any = map({ - assessmentArn: [, __expectNonNull(input.assessmentArn!, `assessmentArn`)], - reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder!.toString()], - status: [() => input.status !== void 0, () => (input.status! || []).map((_entry) => _entry as any)], - recommendationTemplateArn: [, input.recommendationTemplateArn!], - name: [, input.name!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_aAs]: [, __expectNonNull(input[_aAs]!, `assessmentArn`)], + [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO]!.toString()], + [_s]: [() => input.status !== void 0, () => (input[_s]! || []).map((_entry) => _entry as any)], + [_rTA]: [, input[_rTA]!], + [_n]: [, input[_n]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1435,26 +1148,17 @@ export const se_ListResiliencyPoliciesCommand = async ( input: ListResiliencyPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-resiliency-policies"; + b.bp("/list-resiliency-policies"); const query: any = map({ - policyName: [, input.policyName!], - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_pN]: [, input[_pN]!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1464,12 +1168,11 @@ export const se_ListSopRecommendationsCommand = async ( input: ListSopRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-sop-recommendations"; + b.bp("/list-sop-recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -1478,15 +1181,8 @@ export const se_ListSopRecommendationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1496,25 +1192,16 @@ export const se_ListSuggestedResiliencyPoliciesCommand = async ( input: ListSuggestedResiliencyPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-suggested-resiliency-policies"; + b.bp("/list-suggested-resiliency-policies"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1524,20 +1211,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1547,12 +1227,11 @@ export const se_ListTestRecommendationsCommand = async ( input: ListTestRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-test-recommendations"; + b.bp("/list-test-recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -1561,15 +1240,8 @@ export const se_ListTestRecommendationsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1579,12 +1251,11 @@ export const se_ListUnsupportedAppVersionResourcesCommand = async ( input: ListUnsupportedAppVersionResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-unsupported-app-version-resources"; + b.bp("/list-unsupported-app-version-resources"); let body: any; body = JSON.stringify( take(input, { @@ -1595,15 +1266,8 @@ export const se_ListUnsupportedAppVersionResourcesCommand = async ( resolutionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1613,11 +1277,11 @@ export const se_PublishAppVersionCommand = async ( input: PublishAppVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/publish-app-version"; + b.bp("/publish-app-version"); let body: any; body = JSON.stringify( take(input, { @@ -1625,15 +1289,8 @@ export const se_PublishAppVersionCommand = async ( versionName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1643,12 +1300,11 @@ export const se_PutDraftAppVersionTemplateCommand = async ( input: PutDraftAppVersionTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-draft-app-version-template"; + b.bp("/put-draft-app-version-template"); let body: any; body = JSON.stringify( take(input, { @@ -1656,15 +1312,8 @@ export const se_PutDraftAppVersionTemplateCommand = async ( appTemplateBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1674,13 +1323,11 @@ export const se_RemoveDraftAppVersionResourceMappingsCommand = async ( input: RemoveDraftAppVersionResourceMappingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/remove-draft-app-version-resource-mappings"; + b.bp("/remove-draft-app-version-resource-mappings"); let body: any; body = JSON.stringify( take(input, { @@ -1693,15 +1340,8 @@ export const se_RemoveDraftAppVersionResourceMappingsCommand = async ( terraformSourceNames: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1711,12 +1351,11 @@ export const se_ResolveAppVersionResourcesCommand = async ( input: ResolveAppVersionResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resolve-app-version-resources"; + b.bp("/resolve-app-version-resources"); let body: any; body = JSON.stringify( take(input, { @@ -1724,15 +1363,8 @@ export const se_ResolveAppVersionResourcesCommand = async ( appVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1742,11 +1374,11 @@ export const se_StartAppAssessmentCommand = async ( input: StartAppAssessmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-app-assessment"; + b.bp("/start-app-assessment"); let body: any; body = JSON.stringify( take(input, { @@ -1757,15 +1389,8 @@ export const se_StartAppAssessmentCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1775,27 +1400,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1805,27 +1423,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1835,11 +1445,11 @@ export const se_UpdateAppCommand = async ( input: UpdateAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app"; + b.bp("/update-app"); let body: any; body = JSON.stringify( take(input, { @@ -1852,15 +1462,8 @@ export const se_UpdateAppCommand = async ( policyArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1870,11 +1473,11 @@ export const se_UpdateAppVersionCommand = async ( input: UpdateAppVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version"; + b.bp("/update-app-version"); let body: any; body = JSON.stringify( take(input, { @@ -1882,15 +1485,8 @@ export const se_UpdateAppVersionCommand = async ( appArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1900,12 +1496,11 @@ export const se_UpdateAppVersionAppComponentCommand = async ( input: UpdateAppVersionAppComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-app-component"; + b.bp("/update-app-version-app-component"); let body: any; body = JSON.stringify( take(input, { @@ -1916,15 +1511,8 @@ export const se_UpdateAppVersionAppComponentCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1934,12 +1522,11 @@ export const se_UpdateAppVersionResourceCommand = async ( input: UpdateAppVersionResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-resource"; + b.bp("/update-app-version-resource"); let body: any; body = JSON.stringify( take(input, { @@ -1955,15 +1542,8 @@ export const se_UpdateAppVersionResourceCommand = async ( resourceType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1973,12 +1553,11 @@ export const se_UpdateResiliencyPolicyCommand = async ( input: UpdateResiliencyPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-resiliency-policy"; + b.bp("/update-resiliency-policy"); let body: any; body = JSON.stringify( take(input, { @@ -1990,15 +1569,8 @@ export const se_UpdateResiliencyPolicyCommand = async ( tier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6023,6 +5595,23 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aA = "appArn"; +const _aAs = "assessmentArn"; +const _aN = "assessmentName"; +const _aS = "assessmentStatus"; +const _cS = "complianceStatus"; +const _fLAT = "fromLastAssessmentTime"; +const _i = "invoker"; +const _mR = "maxResults"; +const _n = "name"; +const _nT = "nextToken"; +const _pN = "policyName"; +const _rO = "reverseOrder"; +const _rTA = "recommendationTemplateArn"; +const _s = "status"; +const _tK = "tagKeys"; +const _tLAT = "toLastAssessmentTime"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-resource-explorer-2/package.json b/clients/client-resource-explorer-2/package.json index 7e72dea72f3e..e5488439ec5f 100644 --- a/clients/client-resource-explorer-2/package.json +++ b/clients/client-resource-explorer-2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-resource-explorer-2/src/models/models_0.ts b/clients/client-resource-explorer-2/src/models/models_0.ts index ba9f94036c7c..bdacc0c96d50 100644 --- a/clients/client-resource-explorer-2/src/models/models_0.ts +++ b/clients/client-resource-explorer-2/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { ResourceExplorer2ServiceException as __BaseException } from "./ResourceExplorer2ServiceException"; diff --git a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts index 801fcf5363b8..5b0798e31e3c 100644 --- a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -85,26 +86,19 @@ export const se_AssociateDefaultViewCommand = async ( input: AssociateDefaultViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateDefaultView"; + b.bp("/AssociateDefaultView"); let body: any; body = JSON.stringify( take(input, { ViewArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -114,26 +108,19 @@ export const se_BatchGetViewCommand = async ( input: BatchGetViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetView"; + b.bp("/BatchGetView"); let body: any; body = JSON.stringify( take(input, { ViewArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -143,11 +130,11 @@ export const se_CreateIndexCommand = async ( input: CreateIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateIndex"; + b.bp("/CreateIndex"); let body: any; body = JSON.stringify( take(input, { @@ -155,15 +142,8 @@ export const se_CreateIndexCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -173,11 +153,11 @@ export const se_CreateViewCommand = async ( input: CreateViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateView"; + b.bp("/CreateView"); let body: any; body = JSON.stringify( take(input, { @@ -189,15 +169,8 @@ export const se_CreateViewCommand = async ( ViewName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -207,26 +180,19 @@ export const se_DeleteIndexCommand = async ( input: DeleteIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteIndex"; + b.bp("/DeleteIndex"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -236,26 +202,19 @@ export const se_DeleteViewCommand = async ( input: DeleteViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteView"; + b.bp("/DeleteView"); let body: any; body = JSON.stringify( take(input, { ViewArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -265,23 +224,15 @@ export const se_DisassociateDefaultViewCommand = async ( input: DisassociateDefaultViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateDefaultView"; + b.bp("/DisassociateDefaultView"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -291,23 +242,15 @@ export const se_GetAccountLevelServiceConfigurationCommand = async ( input: GetAccountLevelServiceConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetAccountLevelServiceConfiguration"; + b.bp("/GetAccountLevelServiceConfiguration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,22 +260,15 @@ export const se_GetDefaultViewCommand = async ( input: GetDefaultViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDefaultView"; + b.bp("/GetDefaultView"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -342,22 +278,15 @@ export const se_GetIndexCommand = async ( input: GetIndexCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetIndex"; + b.bp("/GetIndex"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -367,26 +296,19 @@ export const se_GetViewCommand = async ( input: GetViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetView"; + b.bp("/GetView"); let body: any; body = JSON.stringify( take(input, { ViewArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -396,11 +318,11 @@ export const se_ListIndexesCommand = async ( input: ListIndexesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexes"; + b.bp("/ListIndexes"); let body: any; body = JSON.stringify( take(input, { @@ -410,15 +332,8 @@ export const se_ListIndexesCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -428,11 +343,11 @@ export const se_ListIndexesForMembersCommand = async ( input: ListIndexesForMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexesForMembers"; + b.bp("/ListIndexesForMembers"); let body: any; body = JSON.stringify( take(input, { @@ -441,15 +356,8 @@ export const se_ListIndexesForMembersCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -459,12 +367,11 @@ export const se_ListSupportedResourceTypesCommand = async ( input: ListSupportedResourceTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSupportedResourceTypes"; + b.bp("/ListSupportedResourceTypes"); let body: any; body = JSON.stringify( take(input, { @@ -472,15 +379,8 @@ export const se_ListSupportedResourceTypesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -490,20 +390,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -513,11 +406,11 @@ export const se_ListViewsCommand = async ( input: ListViewsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListViews"; + b.bp("/ListViews"); let body: any; body = JSON.stringify( take(input, { @@ -525,26 +418,19 @@ export const se_ListViewsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1SearchCommand */ export const se_SearchCommand = async (input: SearchCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Search"; + b.bp("/Search"); let body: any; body = JSON.stringify( take(input, { @@ -554,15 +440,8 @@ export const se_SearchCommand = async (input: SearchCommandInput, context: __Ser ViewArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -572,27 +451,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -602,27 +474,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -632,11 +496,11 @@ export const se_UpdateIndexTypeCommand = async ( input: UpdateIndexTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateIndexType"; + b.bp("/UpdateIndexType"); let body: any; body = JSON.stringify( take(input, { @@ -644,15 +508,8 @@ export const se_UpdateIndexTypeCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -662,11 +519,11 @@ export const se_UpdateViewCommand = async ( input: UpdateViewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateView"; + b.bp("/UpdateView"); let body: any; body = JSON.stringify( take(input, { @@ -675,15 +532,8 @@ export const se_UpdateViewCommand = async ( ViewArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2258,6 +2108,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-resource-groups/package.json b/clients/client-resource-groups/package.json index f34cf185f9e9..1f5559f760c1 100644 --- a/clients/client-resource-groups/package.json +++ b/clients/client-resource-groups/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts index 3a62b14af44b..7d21da55f85c 100644 --- a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -69,11 +70,11 @@ export const se_CreateGroupCommand = async ( input: CreateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groups"; + b.bp("/groups"); let body: any; body = JSON.stringify( take(input, { @@ -84,15 +85,8 @@ export const se_CreateGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -102,11 +96,11 @@ export const se_DeleteGroupCommand = async ( input: DeleteGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-group"; + b.bp("/delete-group"); let body: any; body = JSON.stringify( take(input, { @@ -114,15 +108,8 @@ export const se_DeleteGroupCommand = async ( GroupName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -132,22 +119,15 @@ export const se_GetAccountSettingsCommand = async ( input: GetAccountSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-account-settings"; + b.bp("/get-account-settings"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -157,11 +137,11 @@ export const se_GetGroupCommand = async ( input: GetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-group"; + b.bp("/get-group"); let body: any; body = JSON.stringify( take(input, { @@ -169,15 +149,8 @@ export const se_GetGroupCommand = async ( GroupName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -187,27 +160,19 @@ export const se_GetGroupConfigurationCommand = async ( input: GetGroupConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-group-configuration"; + b.bp("/get-group-configuration"); let body: any; body = JSON.stringify( take(input, { Group: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -217,11 +182,11 @@ export const se_GetGroupQueryCommand = async ( input: GetGroupQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-group-query"; + b.bp("/get-group-query"); let body: any; body = JSON.stringify( take(input, { @@ -229,15 +194,8 @@ export const se_GetGroupQueryCommand = async ( GroupName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -247,20 +205,13 @@ export const se_GetTagsCommand = async ( input: GetTagsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{Arn}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/resources/{Arn}/tags"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -270,11 +221,11 @@ export const se_GroupResourcesCommand = async ( input: GroupResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group-resources"; + b.bp("/group-resources"); let body: any; body = JSON.stringify( take(input, { @@ -282,15 +233,8 @@ export const se_GroupResourcesCommand = async ( ResourceArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -300,11 +244,11 @@ export const se_ListGroupResourcesCommand = async ( input: ListGroupResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-group-resources"; + b.bp("/list-group-resources"); let body: any; body = JSON.stringify( take(input, { @@ -315,15 +259,8 @@ export const se_ListGroupResourcesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -333,14 +270,14 @@ export const se_ListGroupsCommand = async ( input: ListGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groups-list"; + b.bp("/groups-list"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; body = JSON.stringify( @@ -348,16 +285,8 @@ export const se_ListGroupsCommand = async ( Filters: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -367,12 +296,11 @@ export const se_PutGroupConfigurationCommand = async ( input: PutGroupConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-group-configuration"; + b.bp("/put-group-configuration"); let body: any; body = JSON.stringify( take(input, { @@ -380,15 +308,8 @@ export const se_PutGroupConfigurationCommand = async ( Group: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -398,11 +319,11 @@ export const se_SearchResourcesCommand = async ( input: SearchResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/search"; + b.bp("/resources/search"); let body: any; body = JSON.stringify( take(input, { @@ -411,42 +332,28 @@ export const se_SearchResourcesCommand = async ( ResourceQuery: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1TagCommand */ export const se_TagCommand = async (input: TagCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{Arn}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/resources/{Arn}/tags"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -456,11 +363,11 @@ export const se_UngroupResourcesCommand = async ( input: UngroupResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ungroup-resources"; + b.bp("/ungroup-resources"); let body: any; body = JSON.stringify( take(input, { @@ -468,42 +375,28 @@ export const se_UngroupResourcesCommand = async ( ResourceArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1UntagCommand */ export const se_UntagCommand = async (input: UntagCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{Arn}/tags"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/resources/{Arn}/tags"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; body = JSON.stringify( take(input, { Keys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -513,27 +406,19 @@ export const se_UpdateAccountSettingsCommand = async ( input: UpdateAccountSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-account-settings"; + b.bp("/update-account-settings"); let body: any; body = JSON.stringify( take(input, { GroupLifecycleEventsDesiredStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -543,11 +428,11 @@ export const se_UpdateGroupCommand = async ( input: UpdateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-group"; + b.bp("/update-group"); let body: any; body = JSON.stringify( take(input, { @@ -556,15 +441,8 @@ export const se_UpdateGroupCommand = async ( GroupName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -574,11 +452,11 @@ export const se_UpdateGroupQueryCommand = async ( input: UpdateGroupQueryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-group-query"; + b.bp("/update-group-query"); let body: any; body = JSON.stringify( take(input, { @@ -587,15 +465,8 @@ export const se_UpdateGroupQueryCommand = async ( ResourceQuery: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1941,6 +1812,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _mR = "maxResults"; +const _nT = "nextToken"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-robomaker/package.json b/clients/client-robomaker/package.json index 325b1f428473..2385b4602f32 100644 --- a/clients/client-robomaker/package.json +++ b/clients/client-robomaker/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-robomaker/src/protocols/Aws_restJson1.ts b/clients/client-robomaker/src/protocols/Aws_restJson1.ts index 1d10a9933956..881dbdff986a 100644 --- a/clients/client-robomaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-robomaker/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -258,26 +259,19 @@ export const se_BatchDeleteWorldsCommand = async ( input: BatchDeleteWorldsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batchDeleteWorlds"; + b.bp("/batchDeleteWorlds"); let body: any; body = JSON.stringify( take(input, { worlds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,27 +281,19 @@ export const se_BatchDescribeSimulationJobCommand = async ( input: BatchDescribeSimulationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batchDescribeSimulationJob"; + b.bp("/batchDescribeSimulationJob"); let body: any; body = JSON.stringify( take(input, { jobs: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,26 +303,19 @@ export const se_CancelDeploymentJobCommand = async ( input: CancelDeploymentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancelDeploymentJob"; + b.bp("/cancelDeploymentJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -346,26 +325,19 @@ export const se_CancelSimulationJobCommand = async ( input: CancelSimulationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancelSimulationJob"; + b.bp("/cancelSimulationJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -375,27 +347,19 @@ export const se_CancelSimulationJobBatchCommand = async ( input: CancelSimulationJobBatchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancelSimulationJobBatch"; + b.bp("/cancelSimulationJobBatch"); let body: any; body = JSON.stringify( take(input, { batch: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -405,26 +369,19 @@ export const se_CancelWorldExportJobCommand = async ( input: CancelWorldExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancelWorldExportJob"; + b.bp("/cancelWorldExportJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -434,27 +391,19 @@ export const se_CancelWorldGenerationJobCommand = async ( input: CancelWorldGenerationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cancelWorldGenerationJob"; + b.bp("/cancelWorldGenerationJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -464,11 +413,11 @@ export const se_CreateDeploymentJobCommand = async ( input: CreateDeploymentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createDeploymentJob"; + b.bp("/createDeploymentJob"); let body: any; body = JSON.stringify( take(input, { @@ -479,15 +428,8 @@ export const se_CreateDeploymentJobCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -497,11 +439,11 @@ export const se_CreateFleetCommand = async ( input: CreateFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createFleet"; + b.bp("/createFleet"); let body: any; body = JSON.stringify( take(input, { @@ -509,15 +451,8 @@ export const se_CreateFleetCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -527,11 +462,11 @@ export const se_CreateRobotCommand = async ( input: CreateRobotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createRobot"; + b.bp("/createRobot"); let body: any; body = JSON.stringify( take(input, { @@ -541,15 +476,8 @@ export const se_CreateRobotCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -559,12 +487,11 @@ export const se_CreateRobotApplicationCommand = async ( input: CreateRobotApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createRobotApplication"; + b.bp("/createRobotApplication"); let body: any; body = JSON.stringify( take(input, { @@ -575,15 +502,8 @@ export const se_CreateRobotApplicationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -593,12 +513,11 @@ export const se_CreateRobotApplicationVersionCommand = async ( input: CreateRobotApplicationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createRobotApplicationVersion"; + b.bp("/createRobotApplicationVersion"); let body: any; body = JSON.stringify( take(input, { @@ -608,15 +527,8 @@ export const se_CreateRobotApplicationVersionCommand = async ( s3Etags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -626,12 +538,11 @@ export const se_CreateSimulationApplicationCommand = async ( input: CreateSimulationApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createSimulationApplication"; + b.bp("/createSimulationApplication"); let body: any; body = JSON.stringify( take(input, { @@ -644,15 +555,8 @@ export const se_CreateSimulationApplicationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -662,12 +566,11 @@ export const se_CreateSimulationApplicationVersionCommand = async ( input: CreateSimulationApplicationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createSimulationApplicationVersion"; + b.bp("/createSimulationApplicationVersion"); let body: any; body = JSON.stringify( take(input, { @@ -677,15 +580,8 @@ export const se_CreateSimulationApplicationVersionCommand = async ( s3Etags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -695,11 +591,11 @@ export const se_CreateSimulationJobCommand = async ( input: CreateSimulationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createSimulationJob"; + b.bp("/createSimulationJob"); let body: any; body = JSON.stringify( take(input, { @@ -717,15 +613,8 @@ export const se_CreateSimulationJobCommand = async ( vpcConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -735,11 +624,11 @@ export const se_CreateWorldExportJobCommand = async ( input: CreateWorldExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createWorldExportJob"; + b.bp("/createWorldExportJob"); let body: any; body = JSON.stringify( take(input, { @@ -750,15 +639,8 @@ export const se_CreateWorldExportJobCommand = async ( worlds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -768,12 +650,11 @@ export const se_CreateWorldGenerationJobCommand = async ( input: CreateWorldGenerationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createWorldGenerationJob"; + b.bp("/createWorldGenerationJob"); let body: any; body = JSON.stringify( take(input, { @@ -784,15 +665,8 @@ export const se_CreateWorldGenerationJobCommand = async ( worldTags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -802,11 +676,11 @@ export const se_CreateWorldTemplateCommand = async ( input: CreateWorldTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createWorldTemplate"; + b.bp("/createWorldTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -817,15 +691,8 @@ export const se_CreateWorldTemplateCommand = async ( templateLocation: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -835,26 +702,19 @@ export const se_DeleteFleetCommand = async ( input: DeleteFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteFleet"; + b.bp("/deleteFleet"); let body: any; body = JSON.stringify( take(input, { fleet: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -864,26 +724,19 @@ export const se_DeleteRobotCommand = async ( input: DeleteRobotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteRobot"; + b.bp("/deleteRobot"); let body: any; body = JSON.stringify( take(input, { robot: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -893,12 +746,11 @@ export const se_DeleteRobotApplicationCommand = async ( input: DeleteRobotApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteRobotApplication"; + b.bp("/deleteRobotApplication"); let body: any; body = JSON.stringify( take(input, { @@ -906,15 +758,8 @@ export const se_DeleteRobotApplicationCommand = async ( applicationVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -924,12 +769,11 @@ export const se_DeleteSimulationApplicationCommand = async ( input: DeleteSimulationApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteSimulationApplication"; + b.bp("/deleteSimulationApplication"); let body: any; body = JSON.stringify( take(input, { @@ -937,15 +781,8 @@ export const se_DeleteSimulationApplicationCommand = async ( applicationVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -955,26 +792,19 @@ export const se_DeleteWorldTemplateCommand = async ( input: DeleteWorldTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteWorldTemplate"; + b.bp("/deleteWorldTemplate"); let body: any; body = JSON.stringify( take(input, { template: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -984,11 +814,11 @@ export const se_DeregisterRobotCommand = async ( input: DeregisterRobotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deregisterRobot"; + b.bp("/deregisterRobot"); let body: any; body = JSON.stringify( take(input, { @@ -996,15 +826,8 @@ export const se_DeregisterRobotCommand = async ( robot: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1014,26 +837,19 @@ export const se_DescribeDeploymentJobCommand = async ( input: DescribeDeploymentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeDeploymentJob"; + b.bp("/describeDeploymentJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1043,26 +859,19 @@ export const se_DescribeFleetCommand = async ( input: DescribeFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeFleet"; + b.bp("/describeFleet"); let body: any; body = JSON.stringify( take(input, { fleet: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1072,26 +881,19 @@ export const se_DescribeRobotCommand = async ( input: DescribeRobotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeRobot"; + b.bp("/describeRobot"); let body: any; body = JSON.stringify( take(input, { robot: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1101,12 +903,11 @@ export const se_DescribeRobotApplicationCommand = async ( input: DescribeRobotApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeRobotApplication"; + b.bp("/describeRobotApplication"); let body: any; body = JSON.stringify( take(input, { @@ -1114,15 +915,8 @@ export const se_DescribeRobotApplicationCommand = async ( applicationVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1132,12 +926,11 @@ export const se_DescribeSimulationApplicationCommand = async ( input: DescribeSimulationApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeSimulationApplication"; + b.bp("/describeSimulationApplication"); let body: any; body = JSON.stringify( take(input, { @@ -1145,15 +938,8 @@ export const se_DescribeSimulationApplicationCommand = async ( applicationVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1163,26 +949,19 @@ export const se_DescribeSimulationJobCommand = async ( input: DescribeSimulationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeSimulationJob"; + b.bp("/describeSimulationJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1192,27 +971,19 @@ export const se_DescribeSimulationJobBatchCommand = async ( input: DescribeSimulationJobBatchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeSimulationJobBatch"; + b.bp("/describeSimulationJobBatch"); let body: any; body = JSON.stringify( take(input, { batch: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1222,26 +993,19 @@ export const se_DescribeWorldCommand = async ( input: DescribeWorldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeWorld"; + b.bp("/describeWorld"); let body: any; body = JSON.stringify( take(input, { world: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1251,27 +1015,19 @@ export const se_DescribeWorldExportJobCommand = async ( input: DescribeWorldExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeWorldExportJob"; + b.bp("/describeWorldExportJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1281,27 +1037,19 @@ export const se_DescribeWorldGenerationJobCommand = async ( input: DescribeWorldGenerationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeWorldGenerationJob"; + b.bp("/describeWorldGenerationJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1311,26 +1059,19 @@ export const se_DescribeWorldTemplateCommand = async ( input: DescribeWorldTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeWorldTemplate"; + b.bp("/describeWorldTemplate"); let body: any; body = JSON.stringify( take(input, { template: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1340,11 +1081,11 @@ export const se_GetWorldTemplateBodyCommand = async ( input: GetWorldTemplateBodyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getWorldTemplateBody"; + b.bp("/getWorldTemplateBody"); let body: any; body = JSON.stringify( take(input, { @@ -1352,15 +1093,8 @@ export const se_GetWorldTemplateBodyCommand = async ( template: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1370,11 +1104,11 @@ export const se_ListDeploymentJobsCommand = async ( input: ListDeploymentJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDeploymentJobs"; + b.bp("/listDeploymentJobs"); let body: any; body = JSON.stringify( take(input, { @@ -1383,15 +1117,8 @@ export const se_ListDeploymentJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1401,11 +1128,11 @@ export const se_ListFleetsCommand = async ( input: ListFleetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listFleets"; + b.bp("/listFleets"); let body: any; body = JSON.stringify( take(input, { @@ -1414,15 +1141,8 @@ export const se_ListFleetsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1432,11 +1152,11 @@ export const se_ListRobotApplicationsCommand = async ( input: ListRobotApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRobotApplications"; + b.bp("/listRobotApplications"); let body: any; body = JSON.stringify( take(input, { @@ -1446,15 +1166,8 @@ export const se_ListRobotApplicationsCommand = async ( versionQualifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1464,11 +1177,11 @@ export const se_ListRobotsCommand = async ( input: ListRobotsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRobots"; + b.bp("/listRobots"); let body: any; body = JSON.stringify( take(input, { @@ -1477,15 +1190,8 @@ export const se_ListRobotsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1495,12 +1201,11 @@ export const se_ListSimulationApplicationsCommand = async ( input: ListSimulationApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listSimulationApplications"; + b.bp("/listSimulationApplications"); let body: any; body = JSON.stringify( take(input, { @@ -1510,15 +1215,8 @@ export const se_ListSimulationApplicationsCommand = async ( versionQualifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1528,12 +1226,11 @@ export const se_ListSimulationJobBatchesCommand = async ( input: ListSimulationJobBatchesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listSimulationJobBatches"; + b.bp("/listSimulationJobBatches"); let body: any; body = JSON.stringify( take(input, { @@ -1542,15 +1239,8 @@ export const se_ListSimulationJobBatchesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1560,11 +1250,11 @@ export const se_ListSimulationJobsCommand = async ( input: ListSimulationJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listSimulationJobs"; + b.bp("/listSimulationJobs"); let body: any; body = JSON.stringify( take(input, { @@ -1573,15 +1263,8 @@ export const se_ListSimulationJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1591,20 +1274,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1614,11 +1290,11 @@ export const se_ListWorldExportJobsCommand = async ( input: ListWorldExportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorldExportJobs"; + b.bp("/listWorldExportJobs"); let body: any; body = JSON.stringify( take(input, { @@ -1627,15 +1303,8 @@ export const se_ListWorldExportJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1645,12 +1314,11 @@ export const se_ListWorldGenerationJobsCommand = async ( input: ListWorldGenerationJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorldGenerationJobs"; + b.bp("/listWorldGenerationJobs"); let body: any; body = JSON.stringify( take(input, { @@ -1659,15 +1327,8 @@ export const se_ListWorldGenerationJobsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1677,11 +1338,11 @@ export const se_ListWorldsCommand = async ( input: ListWorldsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorlds"; + b.bp("/listWorlds"); let body: any; body = JSON.stringify( take(input, { @@ -1690,15 +1351,8 @@ export const se_ListWorldsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1708,11 +1362,11 @@ export const se_ListWorldTemplatesCommand = async ( input: ListWorldTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWorldTemplates"; + b.bp("/listWorldTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -1720,15 +1374,8 @@ export const se_ListWorldTemplatesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1738,11 +1385,11 @@ export const se_RegisterRobotCommand = async ( input: RegisterRobotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/registerRobot"; + b.bp("/registerRobot"); let body: any; body = JSON.stringify( take(input, { @@ -1750,15 +1397,8 @@ export const se_RegisterRobotCommand = async ( robot: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1768,26 +1408,19 @@ export const se_RestartSimulationJobCommand = async ( input: RestartSimulationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restartSimulationJob"; + b.bp("/restartSimulationJob"); let body: any; body = JSON.stringify( take(input, { job: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1797,12 +1430,11 @@ export const se_StartSimulationJobBatchCommand = async ( input: StartSimulationJobBatchCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startSimulationJobBatch"; + b.bp("/startSimulationJobBatch"); let body: any; body = JSON.stringify( take(input, { @@ -1812,15 +1444,8 @@ export const se_StartSimulationJobBatchCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1830,11 +1455,11 @@ export const se_SyncDeploymentJobCommand = async ( input: SyncDeploymentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/syncDeploymentJob"; + b.bp("/syncDeploymentJob"); let body: any; body = JSON.stringify( take(input, { @@ -1842,15 +1467,8 @@ export const se_SyncDeploymentJobCommand = async ( fleet: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1860,27 +1478,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1890,27 +1501,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1920,12 +1523,11 @@ export const se_UpdateRobotApplicationCommand = async ( input: UpdateRobotApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateRobotApplication"; + b.bp("/updateRobotApplication"); let body: any; body = JSON.stringify( take(input, { @@ -1936,15 +1538,8 @@ export const se_UpdateRobotApplicationCommand = async ( sources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1954,12 +1549,11 @@ export const se_UpdateSimulationApplicationCommand = async ( input: UpdateSimulationApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateSimulationApplication"; + b.bp("/updateSimulationApplication"); let body: any; body = JSON.stringify( take(input, { @@ -1972,15 +1566,8 @@ export const se_UpdateSimulationApplicationCommand = async ( sources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1990,11 +1577,11 @@ export const se_UpdateWorldTemplateCommand = async ( input: UpdateWorldTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateWorldTemplate"; + b.bp("/updateWorldTemplate"); let body: any; body = JSON.stringify( take(input, { @@ -2004,15 +1591,8 @@ export const se_UpdateWorldTemplateCommand = async ( templateLocation: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -6239,6 +5819,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-rolesanywhere/package.json b/clients/client-rolesanywhere/package.json index 5cfe1b96f7cc..c55b90b99cf0 100644 --- a/clients/client-rolesanywhere/package.json +++ b/clients/client-rolesanywhere/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts b/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts index e9af4c9976b5..06dfc526ff17 100644 --- a/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts +++ b/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -86,11 +87,11 @@ export const se_CreateProfileCommand = async ( input: CreateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles"; + b.bp("/profiles"); let body: any; body = JSON.stringify( take(input, { @@ -104,15 +105,8 @@ export const se_CreateProfileCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -122,11 +116,11 @@ export const se_CreateTrustAnchorCommand = async ( input: CreateTrustAnchorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors"; + b.bp("/trustanchors"); let body: any; body = JSON.stringify( take(input, { @@ -137,15 +131,8 @@ export const se_CreateTrustAnchorCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -155,20 +142,13 @@ export const se_DeleteCrlCommand = async ( input: DeleteCrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "crlId", () => input.crlId!, "{crlId}", false); + b.bp("/crl/{crlId}"); + b.p("crlId", () => input.crlId!, "{crlId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -178,20 +158,13 @@ export const se_DeleteProfileCommand = async ( input: DeleteProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileId", () => input.profileId!, "{profileId}", false); + b.bp("/profile/{profileId}"); + b.p("profileId", () => input.profileId!, "{profileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -201,28 +174,13 @@ export const se_DeleteTrustAnchorCommand = async ( input: DeleteTrustAnchorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustAnchorId", - () => input.trustAnchorId!, - "{trustAnchorId}", - false - ); + b.bp("/trustanchor/{trustAnchorId}"); + b.p("trustAnchorId", () => input.trustAnchorId!, "{trustAnchorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -232,20 +190,13 @@ export const se_DisableCrlCommand = async ( input: DisableCrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/disable"; - resolvedPath = __resolvedPath(resolvedPath, input, "crlId", () => input.crlId!, "{crlId}", false); + b.bp("/crl/{crlId}/disable"); + b.p("crlId", () => input.crlId!, "{crlId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -255,21 +206,13 @@ export const se_DisableProfileCommand = async ( input: DisableProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/disable"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileId", () => input.profileId!, "{profileId}", false); + b.bp("/profile/{profileId}/disable"); + b.p("profileId", () => input.profileId!, "{profileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -279,28 +222,13 @@ export const se_DisableTrustAnchorCommand = async ( input: DisableTrustAnchorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/disable"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustAnchorId", - () => input.trustAnchorId!, - "{trustAnchorId}", - false - ); + b.bp("/trustanchor/{trustAnchorId}/disable"); + b.p("trustAnchorId", () => input.trustAnchorId!, "{trustAnchorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -310,20 +238,13 @@ export const se_EnableCrlCommand = async ( input: EnableCrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}/enable"; - resolvedPath = __resolvedPath(resolvedPath, input, "crlId", () => input.crlId!, "{crlId}", false); + b.bp("/crl/{crlId}/enable"); + b.p("crlId", () => input.crlId!, "{crlId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -333,21 +254,13 @@ export const se_EnableProfileCommand = async ( input: EnableProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}/enable"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileId", () => input.profileId!, "{profileId}", false); + b.bp("/profile/{profileId}/enable"); + b.p("profileId", () => input.profileId!, "{profileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -357,48 +270,26 @@ export const se_EnableTrustAnchorCommand = async ( input: EnableTrustAnchorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}/enable"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustAnchorId", - () => input.trustAnchorId!, - "{trustAnchorId}", - false - ); + b.bp("/trustanchor/{trustAnchorId}/enable"); + b.p("trustAnchorId", () => input.trustAnchorId!, "{trustAnchorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1GetCrlCommand */ export const se_GetCrlCommand = async (input: GetCrlCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "crlId", () => input.crlId!, "{crlId}", false); + b.bp("/crl/{crlId}"); + b.p("crlId", () => input.crlId!, "{crlId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -408,20 +299,13 @@ export const se_GetProfileCommand = async ( input: GetProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileId", () => input.profileId!, "{profileId}", false); + b.bp("/profile/{profileId}"); + b.p("profileId", () => input.profileId!, "{profileId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -431,20 +315,13 @@ export const se_GetSubjectCommand = async ( input: GetSubjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subject/{subjectId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "subjectId", () => input.subjectId!, "{subjectId}", false); + b.bp("/subject/{subjectId}"); + b.p("subjectId", () => input.subjectId!, "{subjectId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -454,28 +331,13 @@ export const se_GetTrustAnchorCommand = async ( input: GetTrustAnchorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustAnchorId", - () => input.trustAnchorId!, - "{trustAnchorId}", - false - ); + b.bp("/trustanchor/{trustAnchorId}"); + b.p("trustAnchorId", () => input.trustAnchorId!, "{trustAnchorId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -485,11 +347,11 @@ export const se_ImportCrlCommand = async ( input: ImportCrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls"; + b.bp("/crls"); let body: any; body = JSON.stringify( take(input, { @@ -500,15 +362,8 @@ export const se_ImportCrlCommand = async ( trustAnchorArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -518,24 +373,16 @@ export const se_ListCrlsCommand = async ( input: ListCrlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls"; + b.bp("/crls"); const query: any = map({ - nextToken: [, input.nextToken!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], + [_nT]: [, input[_nT]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -545,24 +392,16 @@ export const se_ListProfilesCommand = async ( input: ListProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles"; + b.bp("/profiles"); const query: any = map({ - nextToken: [, input.nextToken!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], + [_nT]: [, input[_nT]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -572,24 +411,16 @@ export const se_ListSubjectsCommand = async ( input: ListSubjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subjects"; + b.bp("/subjects"); const query: any = map({ - nextToken: [, input.nextToken!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], + [_nT]: [, input[_nT]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -599,23 +430,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource"; + b.bp("/ListTagsForResource"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -625,24 +448,16 @@ export const se_ListTrustAnchorsCommand = async ( input: ListTrustAnchorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors"; + b.bp("/trustanchors"); const query: any = map({ - nextToken: [, input.nextToken!], - pageSize: [() => input.pageSize !== void 0, () => input.pageSize!.toString()], + [_nT]: [, input[_nT]!], + [_pS]: [() => input.pageSize !== void 0, () => input[_pS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -652,12 +467,11 @@ export const se_PutNotificationSettingsCommand = async ( input: PutNotificationSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-notifications-settings"; + b.bp("/put-notifications-settings"); let body: any; body = JSON.stringify( take(input, { @@ -665,15 +479,8 @@ export const se_PutNotificationSettingsCommand = async ( trustAnchorId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -683,12 +490,11 @@ export const se_ResetNotificationSettingsCommand = async ( input: ResetNotificationSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-notifications-settings"; + b.bp("/reset-notifications-settings"); let body: any; body = JSON.stringify( take(input, { @@ -696,15 +502,8 @@ export const se_ResetNotificationSettingsCommand = async ( trustAnchorId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -714,11 +513,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource"; + b.bp("/TagResource"); let body: any; body = JSON.stringify( take(input, { @@ -726,15 +525,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -744,11 +536,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource"; + b.bp("/UntagResource"); let body: any; body = JSON.stringify( take(input, { @@ -756,15 +548,8 @@ export const se_UntagResourceCommand = async ( tagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -774,12 +559,12 @@ export const se_UpdateCrlCommand = async ( input: UpdateCrlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "crlId", () => input.crlId!, "{crlId}", false); + b.bp("/crl/{crlId}"); + b.p("crlId", () => input.crlId!, "{crlId}", false); let body: any; body = JSON.stringify( take(input, { @@ -787,15 +572,8 @@ export const se_UpdateCrlCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -805,12 +583,12 @@ export const se_UpdateProfileCommand = async ( input: UpdateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileId", () => input.profileId!, "{profileId}", false); + b.bp("/profile/{profileId}"); + b.p("profileId", () => input.profileId!, "{profileId}", false); let body: any; body = JSON.stringify( take(input, { @@ -821,15 +599,8 @@ export const se_UpdateProfileCommand = async ( sessionPolicy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -839,20 +610,12 @@ export const se_UpdateTrustAnchorCommand = async ( input: UpdateTrustAnchorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustAnchorId", - () => input.trustAnchorId!, - "{trustAnchorId}", - false - ); + b.bp("/trustanchor/{trustAnchorId}"); + b.p("trustAnchorId", () => input.trustAnchorId!, "{trustAnchorId}", false); let body: any; body = JSON.stringify( take(input, { @@ -860,15 +623,8 @@ export const se_UpdateTrustAnchorCommand = async ( source: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2609,6 +2365,10 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _nT = "nextToken"; +const _pS = "pageSize"; +const _rA = "resourceArn"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-route-53/package.json b/clients/client-route-53/package.json index b0b179e5ce48..bc40d0842b54 100644 --- a/clients/client-route-53/package.json +++ b/clients/client-route-53/package.json @@ -36,6 +36,7 @@ "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-route-53/src/protocols/Aws_restXml.ts b/clients/client-route-53/src/protocols/Aws_restXml.ts index a9e5b9d4af24..cbadd46101c6 100644 --- a/clients/client-route-53/src/protocols/Aws_restXml.ts +++ b/clients/client-route-53/src/protocols/Aws_restXml.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { collectBody, @@ -364,30 +365,14 @@ export const se_ActivateKeySigningKeyCommand = async ( input: ActivateKeySigningKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -397,43 +382,25 @@ export const se_AssociateVPCWithHostedZoneCommand = async ( input: AssociateVPCWithHostedZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("AssociateVPCWithHostedZoneRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("AssociateVPCComment", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_AVPCWHZR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_AVPCC, input[_C]).n(_C)); } - if (input.VPC !== undefined) { - const node = se_VPC(input.VPC, context).withName("VPC"); - bodyNode.addChildNode(node); + if (input[_VPC] != null) { + bn.c(se_VPC(input[_VPC], context).n(_VPC)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -443,39 +410,23 @@ export const se_ChangeCidrCollectionCommand = async ( input: ChangeCidrCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/cidrcollection/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("ChangeCidrCollectionRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.Changes !== undefined) { - const nodes = se_CidrCollectionChanges(input.Changes, context); - const containerNode = new __XmlNode("Changes"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.CollectionVersion !== undefined) { - const node = __XmlNode.of("CollectionVersion", String(input.CollectionVersion)).withName("CollectionVersion"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CCCR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + bn.lc(input, "Changes", "Changes", () => se_CidrCollectionChanges(input[_Ch]!, context)); + if (input[_CV] != null) { + bn.c(__XmlNode.of(_CV, String(input[_CV])).n(_CV)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -485,39 +436,22 @@ export const se_ChangeResourceRecordSetsCommand = async ( input: ChangeResourceRecordSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/rrset"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("ChangeResourceRecordSetsRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.ChangeBatch !== undefined) { - const node = se_ChangeBatch(input.ChangeBatch, context).withName("ChangeBatch"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CRRSR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_CB] != null) { + bn.c(se_ChangeBatch(input[_CB], context).n(_CB)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -527,52 +461,22 @@ export const se_ChangeTagsForResourceCommand = async ( input: ChangeTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/tags/{ResourceType}/{ResourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceType", - () => input.ResourceType!, - "{ResourceType}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"); + b.p("ResourceType", () => input.ResourceType!, "{ResourceType}", false); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("ChangeTagsForResourceRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.AddTags !== undefined) { - const nodes = se_TagList(input.AddTags, context); - const containerNode = new __XmlNode("AddTags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.RemoveTagKeys !== undefined) { - const nodes = se_TagKeyList(input.RemoveTagKeys, context); - const containerNode = new __XmlNode("RemoveTagKeys"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_CTFRR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + bn.lc(input, "AddTags", "AddTags", () => se_TagList(input[_AT]!, context)); + bn.lc(input, "RemoveTagKeys", "RemoveTagKeys", () => se_TagKeyList(input[_RTK]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -582,34 +486,24 @@ export const se_CreateCidrCollectionCommand = async ( input: CreateCidrCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection"; + b.bp("/2013-04-01/cidrcollection"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateCidrCollectionRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.CallerReference !== undefined) { - const node = __XmlNode.of("CidrNonce", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CCCRr); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_CN, input[_CR]).n(_CR)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("CollectionName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_CNo, input[_N]).n(_N)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -619,34 +513,24 @@ export const se_CreateHealthCheckCommand = async ( input: CreateHealthCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/healthcheck"; + b.bp("/2013-04-01/healthcheck"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateHealthCheckRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.CallerReference !== undefined) { - const node = __XmlNode.of("HealthCheckNonce", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CHCR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_HCN, input[_CR]).n(_CR)); } - if (input.HealthCheckConfig !== undefined) { - const node = se_HealthCheckConfig(input.HealthCheckConfig, context).withName("HealthCheckConfig"); - bodyNode.addChildNode(node); + if (input[_HCC] != null) { + bn.c(se_HealthCheckConfig(input[_HCC], context).n(_HCC)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -656,45 +540,33 @@ export const se_CreateHostedZoneCommand = async ( input: CreateHostedZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzone"; + b.bp("/2013-04-01/hostedzone"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateHostedZoneRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.CallerReference !== undefined) { - const node = __XmlNode.of("Nonce", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CHZR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_No, input[_CR]).n(_CR)); } - if (input.DelegationSetId !== undefined) { - const node = __XmlNode.of("ResourceId", input.DelegationSetId).withName("DelegationSetId"); - bodyNode.addChildNode(node); + if (input[_DSI] != null) { + bn.c(__XmlNode.of(_RI, input[_DSI]).n(_DSI)); } - if (input.HostedZoneConfig !== undefined) { - const node = se_HostedZoneConfig(input.HostedZoneConfig, context).withName("HostedZoneConfig"); - bodyNode.addChildNode(node); + if (input[_HZC] != null) { + bn.c(se_HostedZoneConfig(input[_HZC], context).n(_HZC)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("DNSName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_DNSN, input[_N]).n(_N)); } - if (input.VPC !== undefined) { - const node = se_VPC(input.VPC, context).withName("VPC"); - bodyNode.addChildNode(node); + if (input[_VPC] != null) { + bn.c(se_VPC(input[_VPC], context).n(_VPC)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -704,46 +576,33 @@ export const se_CreateKeySigningKeyCommand = async ( input: CreateKeySigningKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/keysigningkey"; + b.bp("/2013-04-01/keysigningkey"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateKeySigningKeyRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.CallerReference !== undefined) { - const node = __XmlNode.of("Nonce", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CKSKR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_No, input[_CR]).n(_CR)); } - if (input.HostedZoneId !== undefined) { - const node = __XmlNode.of("ResourceId", input.HostedZoneId).withName("HostedZoneId"); - bodyNode.addChildNode(node); + if (input[_HZI] != null) { + bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI)); } - if (input.KeyManagementServiceArn !== undefined) { - const node = __XmlNode.of("SigningKeyString", input.KeyManagementServiceArn).withName("KeyManagementServiceArn"); - bodyNode.addChildNode(node); + if (input[_KMSA] != null) { + bn.c(__XmlNode.of(_SKS, input[_KMSA]).n(_KMSA)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("SigningKeyName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_SKN, input[_N]).n(_N)); } - if (input.Status !== undefined) { - const node = __XmlNode.of("SigningKeyStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + if (input[_S] != null) { + bn.c(__XmlNode.of(_SKSi, input[_S]).n(_S)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -753,36 +612,22 @@ export const se_CreateQueryLoggingConfigCommand = async ( input: CreateQueryLoggingConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/queryloggingconfig"; + b.bp("/2013-04-01/queryloggingconfig"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateQueryLoggingConfigRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.CloudWatchLogsLogGroupArn !== undefined) { - const node = __XmlNode - .of("CloudWatchLogsLogGroupArn", input.CloudWatchLogsLogGroupArn) - .withName("CloudWatchLogsLogGroupArn"); - bodyNode.addChildNode(node); - } - if (input.HostedZoneId !== undefined) { - const node = __XmlNode.of("ResourceId", input.HostedZoneId).withName("HostedZoneId"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CQLCR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + bn.cc(input, _CWLLGA); + if (input[_HZI] != null) { + bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -792,34 +637,24 @@ export const se_CreateReusableDelegationSetCommand = async ( input: CreateReusableDelegationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/delegationset"; + b.bp("/2013-04-01/delegationset"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateReusableDelegationSetRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.CallerReference !== undefined) { - const node = __XmlNode.of("Nonce", input.CallerReference).withName("CallerReference"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CRDSR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_CR] != null) { + bn.c(__XmlNode.of(_No, input[_CR]).n(_CR)); } - if (input.HostedZoneId !== undefined) { - const node = __XmlNode.of("ResourceId", input.HostedZoneId).withName("HostedZoneId"); - bodyNode.addChildNode(node); + if (input[_HZI] != null) { + bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -829,38 +664,27 @@ export const se_CreateTrafficPolicyCommand = async ( input: CreateTrafficPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicy"; + b.bp("/2013-04-01/trafficpolicy"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateTrafficPolicyRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("TrafficPolicyComment", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CTPR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_TPC, input[_C]).n(_C)); } - if (input.Document !== undefined) { - const node = __XmlNode.of("TrafficPolicyDocument", input.Document).withName("Document"); - bodyNode.addChildNode(node); + if (input[_D] != null) { + bn.c(__XmlNode.of(_TPD, input[_D]).n(_D)); } - if (input.Name !== undefined) { - const node = __XmlNode.of("TrafficPolicyName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_TPN, input[_N]).n(_N)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -870,48 +694,31 @@ export const se_CreateTrafficPolicyInstanceCommand = async ( input: CreateTrafficPolicyInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicyinstance"; + b.bp("/2013-04-01/trafficpolicyinstance"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateTrafficPolicyInstanceRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.HostedZoneId !== undefined) { - const node = __XmlNode.of("ResourceId", input.HostedZoneId).withName("HostedZoneId"); - bodyNode.addChildNode(node); - } - if (input.Name !== undefined) { - const node = __XmlNode.of("DNSName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CTPIR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_HZI] != null) { + bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI)); } - if (input.TTL !== undefined) { - const node = __XmlNode.of("TTL", String(input.TTL)).withName("TTL"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_DNSN, input[_N]).n(_N)); } - if (input.TrafficPolicyId !== undefined) { - const node = __XmlNode.of("TrafficPolicyId", input.TrafficPolicyId).withName("TrafficPolicyId"); - bodyNode.addChildNode(node); + if (input[_TTL] != null) { + bn.c(__XmlNode.of(_TTL, String(input[_TTL])).n(_TTL)); } - if (input.TrafficPolicyVersion !== undefined) { - const node = __XmlNode - .of("TrafficPolicyVersion", String(input.TrafficPolicyVersion)) - .withName("TrafficPolicyVersion"); - bodyNode.addChildNode(node); + bn.cc(input, _TPI); + if (input[_TPV] != null) { + bn.c(__XmlNode.of(_TPV, String(input[_TPV])).n(_TPV)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -921,35 +728,25 @@ export const se_CreateTrafficPolicyVersionCommand = async ( input: CreateTrafficPolicyVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicy/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/trafficpolicy/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateTrafficPolicyVersionRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("TrafficPolicyComment", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CTPVR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_TPC, input[_C]).n(_C)); } - if (input.Document !== undefined) { - const node = __XmlNode.of("TrafficPolicyDocument", input.Document).withName("Document"); - bodyNode.addChildNode(node); + if (input[_D] != null) { + bn.c(__XmlNode.of(_TPD, input[_D]).n(_D)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -959,39 +756,22 @@ export const se_CreateVPCAssociationAuthorizationCommand = async ( input: CreateVPCAssociationAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateVPCAssociationAuthorizationRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.VPC !== undefined) { - const node = se_VPC(input.VPC, context).withName("VPC"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CVPCAAR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_VPC] != null) { + bn.c(se_VPC(input[_VPC], context).n(_VPC)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1001,30 +781,14 @@ export const se_DeactivateKeySigningKeyCommand = async ( input: DeactivateKeySigningKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1034,21 +798,13 @@ export const se_DeleteCidrCollectionCommand = async ( input: DeleteCidrCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/cidrcollection/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1058,28 +814,13 @@ export const se_DeleteHealthCheckCommand = async ( input: DeleteHealthCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/healthcheck/{HealthCheckId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HealthCheckId", - () => input.HealthCheckId!, - "{HealthCheckId}", - false - ); + b.bp("/2013-04-01/healthcheck/{HealthCheckId}"); + b.p("HealthCheckId", () => input.HealthCheckId!, "{HealthCheckId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1089,21 +830,13 @@ export const se_DeleteHostedZoneCommand = async ( input: DeleteHostedZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzone/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/hostedzone/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1113,30 +846,14 @@ export const se_DeleteKeySigningKeyCommand = async ( input: DeleteKeySigningKeyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1146,21 +863,13 @@ export const se_DeleteQueryLoggingConfigCommand = async ( input: DeleteQueryLoggingConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/queryloggingconfig/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/queryloggingconfig/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1170,21 +879,13 @@ export const se_DeleteReusableDelegationSetCommand = async ( input: DeleteReusableDelegationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/delegationset/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/delegationset/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1194,22 +895,14 @@ export const se_DeleteTrafficPolicyCommand = async ( input: DeleteTrafficPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicy/{Id}/{Version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Version", () => input.Version!.toString(), "{Version}", false); + b.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"); + b.p("Id", () => input.Id!, "{Id}", false); + b.p("Version", () => input.Version!.toString(), "{Version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1219,21 +912,13 @@ export const se_DeleteTrafficPolicyInstanceCommand = async ( input: DeleteTrafficPolicyInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicyinstance/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/trafficpolicyinstance/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1243,39 +928,22 @@ export const se_DeleteVPCAssociationAuthorizationCommand = async ( input: DeleteVPCAssociationAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("DeleteVPCAssociationAuthorizationRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.VPC !== undefined) { - const node = se_VPC(input.VPC, context).withName("VPC"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_DVPCAAR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_VPC] != null) { + bn.c(se_VPC(input[_VPC], context).n(_VPC)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1285,29 +953,13 @@ export const se_DisableHostedZoneDNSSECCommand = async ( input: DisableHostedZoneDNSSECCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1317,43 +969,25 @@ export const se_DisassociateVPCFromHostedZoneCommand = async ( input: DisassociateVPCFromHostedZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("DisassociateVPCFromHostedZoneRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("DisassociateVPCComment", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_DVPCFHZR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_DVPCC, input[_C]).n(_C)); } - if (input.VPC !== undefined) { - const node = se_VPC(input.VPC, context).withName("VPC"); - bodyNode.addChildNode(node); + if (input[_VPC] != null) { + bn.c(se_VPC(input[_VPC], context).n(_VPC)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1363,29 +997,13 @@ export const se_EnableHostedZoneDNSSECCommand = async ( input: EnableHostedZoneDNSSECCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1395,21 +1013,13 @@ export const se_GetAccountLimitCommand = async ( input: GetAccountLimitCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/accountlimit/{Type}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Type", () => input.Type!, "{Type}", false); + b.bp("/2013-04-01/accountlimit/{Type}"); + b.p("Type", () => input.Type!, "{Type}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1419,20 +1029,13 @@ export const se_GetChangeCommand = async ( input: GetChangeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/change/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/change/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1442,23 +1045,15 @@ export const se_GetCheckerIpRangesCommand = async ( input: GetCheckerIpRangesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/checkeripranges"; + b.bp("/2013-04-01/checkeripranges"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1468,29 +1063,13 @@ export const se_GetDNSSECCommand = async ( input: GetDNSSECCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/dnssec"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1500,26 +1079,17 @@ export const se_GetGeoLocationCommand = async ( input: GetGeoLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/geolocation"; + b.bp("/2013-04-01/geolocation"); const query: any = map({ - continentcode: [, input.ContinentCode!], - countrycode: [, input.CountryCode!], - subdivisioncode: [, input.SubdivisionCode!], + [_c]: [, input[_CC]!], + [_co]: [, input[_CCo]!], + [_s]: [, input[_SC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1529,28 +1099,13 @@ export const se_GetHealthCheckCommand = async ( input: GetHealthCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/healthcheck/{HealthCheckId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HealthCheckId", - () => input.HealthCheckId!, - "{HealthCheckId}", - false - ); + b.bp("/2013-04-01/healthcheck/{HealthCheckId}"); + b.p("HealthCheckId", () => input.HealthCheckId!, "{HealthCheckId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1560,23 +1115,15 @@ export const se_GetHealthCheckCountCommand = async ( input: GetHealthCheckCountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/healthcheckcount"; + b.bp("/2013-04-01/healthcheckcount"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1586,29 +1133,13 @@ export const se_GetHealthCheckLastFailureReasonCommand = async ( input: GetHealthCheckLastFailureReasonCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HealthCheckId", - () => input.HealthCheckId!, - "{HealthCheckId}", - false - ); + b.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"); + b.p("HealthCheckId", () => input.HealthCheckId!, "{HealthCheckId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1618,29 +1149,13 @@ export const se_GetHealthCheckStatusCommand = async ( input: GetHealthCheckStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/healthcheck/{HealthCheckId}/status"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HealthCheckId", - () => input.HealthCheckId!, - "{HealthCheckId}", - false - ); + b.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"); + b.p("HealthCheckId", () => input.HealthCheckId!, "{HealthCheckId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1650,21 +1165,13 @@ export const se_GetHostedZoneCommand = async ( input: GetHostedZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzone/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/hostedzone/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1674,23 +1181,15 @@ export const se_GetHostedZoneCountCommand = async ( input: GetHostedZoneCountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzonecount"; + b.bp("/2013-04-01/hostedzonecount"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1700,30 +1199,14 @@ export const se_GetHostedZoneLimitCommand = async ( input: GetHostedZoneLimitCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Type", () => input.Type!, "{Type}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"); + b.p("Type", () => input.Type!, "{Type}", false); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1733,21 +1216,13 @@ export const se_GetQueryLoggingConfigCommand = async ( input: GetQueryLoggingConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/queryloggingconfig/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/queryloggingconfig/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1757,21 +1232,13 @@ export const se_GetReusableDelegationSetCommand = async ( input: GetReusableDelegationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/delegationset/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/delegationset/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1781,30 +1248,14 @@ export const se_GetReusableDelegationSetLimitCommand = async ( input: GetReusableDelegationSetLimitCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Type", () => input.Type!, "{Type}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DelegationSetId", - () => input.DelegationSetId!, - "{DelegationSetId}", - false - ); + b.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"); + b.p("Type", () => input.Type!, "{Type}", false); + b.p("DelegationSetId", () => input.DelegationSetId!, "{DelegationSetId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1814,22 +1265,14 @@ export const se_GetTrafficPolicyCommand = async ( input: GetTrafficPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicy/{Id}/{Version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Version", () => input.Version!.toString(), "{Version}", false); + b.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"); + b.p("Id", () => input.Id!, "{Id}", false); + b.p("Version", () => input.Version!.toString(), "{Version}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1839,21 +1282,13 @@ export const se_GetTrafficPolicyInstanceCommand = async ( input: GetTrafficPolicyInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicyinstance/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/trafficpolicyinstance/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1863,23 +1298,15 @@ export const se_GetTrafficPolicyInstanceCountCommand = async ( input: GetTrafficPolicyInstanceCountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicyinstancecount"; + b.bp("/2013-04-01/trafficpolicyinstancecount"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1889,35 +1316,18 @@ export const se_ListCidrBlocksCommand = async ( input: ListCidrBlocksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionId", - () => input.CollectionId!, - "{CollectionId}", - false - ); + b.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"); + b.p("CollectionId", () => input.CollectionId!, "{CollectionId}", false); const query: any = map({ - location: [, input.LocationName!], - nexttoken: [, input.NextToken!], - maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_l]: [, input[_LN]!], + [_n]: [, input[_NT]!], + [_m]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1927,25 +1337,16 @@ export const se_ListCidrCollectionsCommand = async ( input: ListCidrCollectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection"; + b.bp("/2013-04-01/cidrcollection"); const query: any = map({ - nexttoken: [, input.NextToken!], - maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_n]: [, input[_NT]!], + [_m]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1955,33 +1356,17 @@ export const se_ListCidrLocationsCommand = async ( input: ListCidrLocationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection/{CollectionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CollectionId", - () => input.CollectionId!, - "{CollectionId}", - false - ); + b.bp("/2013-04-01/cidrcollection/{CollectionId}"); + b.p("CollectionId", () => input.CollectionId!, "{CollectionId}", false); const query: any = map({ - nexttoken: [, input.NextToken!], - maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_n]: [, input[_NT]!], + [_m]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1991,27 +1376,18 @@ export const se_ListGeoLocationsCommand = async ( input: ListGeoLocationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/geolocations"; + b.bp("/2013-04-01/geolocations"); const query: any = map({ - startcontinentcode: [, input.StartContinentCode!], - startcountrycode: [, input.StartCountryCode!], - startsubdivisioncode: [, input.StartSubdivisionCode!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_st]: [, input[_SCC]!], + [_sta]: [, input[_SCCt]!], + [_star]: [, input[_SSC]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2021,25 +1397,16 @@ export const se_ListHealthChecksCommand = async ( input: ListHealthChecksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/healthcheck"; + b.bp("/2013-04-01/healthcheck"); const query: any = map({ - marker: [, input.Marker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_mar]: [, input[_M]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2049,26 +1416,18 @@ export const se_ListHostedZonesCommand = async ( input: ListHostedZonesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzone"; + b.bp("/2013-04-01/hostedzone"); const query: any = map({ - marker: [, input.Marker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - delegationsetid: [, input.DelegationSetId!], - hostedzonetype: [, input.HostedZoneType!], + [_mar]: [, input[_M]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_d]: [, input[_DSI]!], + [_h]: [, input[_HZT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2078,26 +1437,17 @@ export const se_ListHostedZonesByNameCommand = async ( input: ListHostedZonesByNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzonesbyname"; + b.bp("/2013-04-01/hostedzonesbyname"); const query: any = map({ - dnsname: [, input.DNSName!], - hostedzoneid: [, input.HostedZoneId!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_dn]: [, input[_DNSN]!], + [_ho]: [, input[_HZI]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2107,27 +1457,18 @@ export const se_ListHostedZonesByVPCCommand = async ( input: ListHostedZonesByVPCCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzonesbyvpc"; + b.bp("/2013-04-01/hostedzonesbyvpc"); const query: any = map({ - vpcid: [, __expectNonNull(input.VPCId!, `VPCId`)], - vpcregion: [, __expectNonNull(input.VPCRegion!, `VPCRegion`)], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - nexttoken: [, input.NextToken!], + [_v]: [, __expectNonNull(input[_VPCI]!, `VPCId`)], + [_vp]: [, __expectNonNull(input[_VPCR]!, `VPCRegion`)], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_n]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2137,26 +1478,17 @@ export const se_ListQueryLoggingConfigsCommand = async ( input: ListQueryLoggingConfigsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/queryloggingconfig"; + b.bp("/2013-04-01/queryloggingconfig"); const query: any = map({ - hostedzoneid: [, input.HostedZoneId!], - nexttoken: [, input.NextToken!], - maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_ho]: [, input[_HZI]!], + [_n]: [, input[_NT]!], + [_m]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2166,36 +1498,19 @@ export const se_ListResourceRecordSetsCommand = async ( input: ListResourceRecordSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/rrset"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); const query: any = map({ - name: [, input.StartRecordName!], - type: [, input.StartRecordType!], - identifier: [, input.StartRecordIdentifier!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_na]: [, input[_SRN]!], + [_t]: [, input[_SRT]!], + [_i]: [, input[_SRI]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2205,25 +1520,16 @@ export const se_ListReusableDelegationSetsCommand = async ( input: ListReusableDelegationSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/delegationset"; + b.bp("/2013-04-01/delegationset"); const query: any = map({ - marker: [, input.Marker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_mar]: [, input[_M]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2233,30 +1539,14 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/tags/{ResourceType}/{ResourceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceType", - () => input.ResourceType!, - "{ResourceType}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"); + b.p("ResourceType", () => input.ResourceType!, "{ResourceType}", false); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2266,42 +1556,20 @@ export const se_ListTagsForResourcesCommand = async ( input: ListTagsForResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/tags/{ResourceType}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceType", - () => input.ResourceType!, - "{ResourceType}", - false - ); + b.bp("/2013-04-01/tags/{ResourceType}"); + b.p("ResourceType", () => input.ResourceType!, "{ResourceType}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("ListTagsForResourcesRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.ResourceIds !== undefined) { - const nodes = se_TagResourceIdList(input.ResourceIds, context); - const containerNode = new __XmlNode("ResourceIds"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_LTFRR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + bn.lc(input, "ResourceIds", "ResourceIds", () => se_TagResourceIdList(input[_RIe]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2311,25 +1579,16 @@ export const se_ListTrafficPoliciesCommand = async ( input: ListTrafficPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicies"; + b.bp("/2013-04-01/trafficpolicies"); const query: any = map({ - trafficpolicyid: [, input.TrafficPolicyIdMarker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_tr]: [, input[_TPIM]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2339,27 +1598,18 @@ export const se_ListTrafficPolicyInstancesCommand = async ( input: ListTrafficPolicyInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicyinstances"; + b.bp("/2013-04-01/trafficpolicyinstances"); const query: any = map({ - hostedzoneid: [, input.HostedZoneIdMarker!], - trafficpolicyinstancename: [, input.TrafficPolicyInstanceNameMarker!], - trafficpolicyinstancetype: [, input.TrafficPolicyInstanceTypeMarker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_ho]: [, input[_HZIM]!], + [_tra]: [, input[_TPINM]!], + [_traf]: [, input[_TPITM]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2369,28 +1619,18 @@ export const se_ListTrafficPolicyInstancesByHostedZoneCommand = async ( input: ListTrafficPolicyInstancesByHostedZoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/trafficpolicyinstances/hostedzone"; + b.bp("/2013-04-01/trafficpolicyinstances/hostedzone"); const query: any = map({ - id: [, __expectNonNull(input.HostedZoneId!, `HostedZoneId`)], - trafficpolicyinstancename: [, input.TrafficPolicyInstanceNameMarker!], - trafficpolicyinstancetype: [, input.TrafficPolicyInstanceTypeMarker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_id]: [, __expectNonNull(input[_HZI]!, `HostedZoneId`)], + [_tra]: [, input[_TPINM]!], + [_traf]: [, input[_TPITM]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2400,33 +1640,23 @@ export const se_ListTrafficPolicyInstancesByPolicyCommand = async ( input: ListTrafficPolicyInstancesByPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/trafficpolicyinstances/trafficpolicy"; + b.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy"); const query: any = map({ - id: [, __expectNonNull(input.TrafficPolicyId!, `TrafficPolicyId`)], - version: [ + [_id]: [, __expectNonNull(input[_TPI]!, `TrafficPolicyId`)], + [_ver]: [ __expectNonNull(input.TrafficPolicyVersion, `TrafficPolicyVersion`) != null, - () => input.TrafficPolicyVersion!.toString(), + () => input[_TPV]!.toString(), ], - hostedzoneid: [, input.HostedZoneIdMarker!], - trafficpolicyinstancename: [, input.TrafficPolicyInstanceNameMarker!], - trafficpolicyinstancetype: [, input.TrafficPolicyInstanceTypeMarker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_ho]: [, input[_HZIM]!], + [_tra]: [, input[_TPINM]!], + [_traf]: [, input[_TPITM]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2436,26 +1666,17 @@ export const se_ListTrafficPolicyVersionsCommand = async ( input: ListTrafficPolicyVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicies/{Id}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/trafficpolicies/{Id}/versions"); + b.p("Id", () => input.Id!, "{Id}", false); const query: any = map({ - trafficpolicyversion: [, input.TrafficPolicyVersionMarker!], - maxitems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], + [_traff]: [, input[_TPVM]!], + [_ma]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2465,34 +1686,17 @@ export const se_ListVPCAssociationAuthorizationsCommand = async ( input: ListVPCAssociationAuthorizationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HostedZoneId", - () => input.HostedZoneId!, - "{HostedZoneId}", - false - ); + b.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"); + b.p("HostedZoneId", () => input.HostedZoneId!, "{HostedZoneId}", false); const query: any = map({ - nexttoken: [, input.NextToken!], - maxresults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_n]: [, input[_NT]!], + [_m]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2502,29 +1706,20 @@ export const se_TestDNSAnswerCommand = async ( input: TestDNSAnswerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/testdnsanswer"; + b.bp("/2013-04-01/testdnsanswer"); const query: any = map({ - hostedzoneid: [, __expectNonNull(input.HostedZoneId!, `HostedZoneId`)], - recordname: [, __expectNonNull(input.RecordName!, `RecordName`)], - recordtype: [, __expectNonNull(input.RecordType!, `RecordType`)], - resolverip: [, input.ResolverIP!], - edns0clientsubnetip: [, input.EDNS0ClientSubnetIP!], - edns0clientsubnetmask: [, input.EDNS0ClientSubnetMask!], + [_ho]: [, __expectNonNull(input[_HZI]!, `HostedZoneId`)], + [_r]: [, __expectNonNull(input[_RN]!, `RecordName`)], + [_re]: [, __expectNonNull(input[_RT]!, `RecordType`)], + [_res]: [, input[_RIP]!], + [_e]: [, input[_EDNSCSIP]!], + [_ed]: [, input[_EDNSCSM]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2534,114 +1729,51 @@ export const se_UpdateHealthCheckCommand = async ( input: UpdateHealthCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/healthcheck/{HealthCheckId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HealthCheckId", - () => input.HealthCheckId!, - "{HealthCheckId}", - false - ); + b.bp("/2013-04-01/healthcheck/{HealthCheckId}"); + b.p("HealthCheckId", () => input.HealthCheckId!, "{HealthCheckId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateHealthCheckRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.AlarmIdentifier !== undefined) { - const node = se_AlarmIdentifier(input.AlarmIdentifier, context).withName("AlarmIdentifier"); - bodyNode.addChildNode(node); - } - if (input.ChildHealthChecks !== undefined) { - const nodes = se_ChildHealthCheckList(input.ChildHealthChecks, context); - const containerNode = new __XmlNode("ChildHealthChecks"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.Disabled !== undefined) { - const node = __XmlNode.of("Disabled", String(input.Disabled)).withName("Disabled"); - bodyNode.addChildNode(node); - } - if (input.EnableSNI !== undefined) { - const node = __XmlNode.of("EnableSNI", String(input.EnableSNI)).withName("EnableSNI"); - bodyNode.addChildNode(node); - } - if (input.FailureThreshold !== undefined) { - const node = __XmlNode.of("FailureThreshold", String(input.FailureThreshold)).withName("FailureThreshold"); - bodyNode.addChildNode(node); - } - if (input.FullyQualifiedDomainName !== undefined) { - const node = __XmlNode - .of("FullyQualifiedDomainName", input.FullyQualifiedDomainName) - .withName("FullyQualifiedDomainName"); - bodyNode.addChildNode(node); - } - if (input.HealthCheckVersion !== undefined) { - const node = __XmlNode.of("HealthCheckVersion", String(input.HealthCheckVersion)).withName("HealthCheckVersion"); - bodyNode.addChildNode(node); - } - if (input.HealthThreshold !== undefined) { - const node = __XmlNode.of("HealthThreshold", String(input.HealthThreshold)).withName("HealthThreshold"); - bodyNode.addChildNode(node); - } - if (input.IPAddress !== undefined) { - const node = __XmlNode.of("IPAddress", input.IPAddress).withName("IPAddress"); - bodyNode.addChildNode(node); - } - if (input.InsufficientDataHealthStatus !== undefined) { - const node = __XmlNode - .of("InsufficientDataHealthStatus", input.InsufficientDataHealthStatus) - .withName("InsufficientDataHealthStatus"); - bodyNode.addChildNode(node); - } - if (input.Inverted !== undefined) { - const node = __XmlNode.of("Inverted", String(input.Inverted)).withName("Inverted"); - bodyNode.addChildNode(node); - } - if (input.Port !== undefined) { - const node = __XmlNode.of("Port", String(input.Port)).withName("Port"); - bodyNode.addChildNode(node); - } - if (input.Regions !== undefined) { - const nodes = se_HealthCheckRegionList(input.Regions, context); - const containerNode = new __XmlNode("Regions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + body = _ve; + const bn = new __XmlNode(_UHCR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_AI] != null) { + bn.c(se_AlarmIdentifier(input[_AI], context).n(_AI)); } - if (input.ResetElements !== undefined) { - const nodes = se_ResettableElementNameList(input.ResetElements, context); - const containerNode = new __XmlNode("ResetElements"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + bn.lc(input, "ChildHealthChecks", "ChildHealthChecks", () => se_ChildHealthCheckList(input[_CHC]!, context)); + if (input[_Di] != null) { + bn.c(__XmlNode.of(_Di, String(input[_Di])).n(_Di)); } - if (input.ResourcePath !== undefined) { - const node = __XmlNode.of("ResourcePath", input.ResourcePath).withName("ResourcePath"); - bodyNode.addChildNode(node); + if (input[_ESNI] != null) { + bn.c(__XmlNode.of(_ESNI, String(input[_ESNI])).n(_ESNI)); } - if (input.SearchString !== undefined) { - const node = __XmlNode.of("SearchString", input.SearchString).withName("SearchString"); - bodyNode.addChildNode(node); + if (input[_FT] != null) { + bn.c(__XmlNode.of(_FT, String(input[_FT])).n(_FT)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + bn.cc(input, _FQDN); + if (input[_HCV] != null) { + bn.c(__XmlNode.of(_HCV, String(input[_HCV])).n(_HCV)); + } + if (input[_HT] != null) { + bn.c(__XmlNode.of(_HT, String(input[_HT])).n(_HT)); + } + bn.cc(input, _IPA); + bn.cc(input, _IDHS); + if (input[_I] != null) { + bn.c(__XmlNode.of(_I, String(input[_I])).n(_I)); + } + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, String(input[_P])).n(_P)); + } + bn.lc(input, "Regions", "Regions", () => se_HealthCheckRegionList(input[_R]!, context)); + bn.lc(input, "ResetElements", "ResetElements", () => se_ResettableElementNameList(input[_RE]!, context)); + bn.cc(input, _RP); + bn.cc(input, _SS); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2651,31 +1783,22 @@ export const se_UpdateHostedZoneCommentCommand = async ( input: UpdateHostedZoneCommentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/hostedzone/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/hostedzone/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateHostedZoneCommentRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("ResourceDescription", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_UHZCR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_RD, input[_C]).n(_C)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2685,32 +1808,23 @@ export const se_UpdateTrafficPolicyCommentCommand = async ( input: UpdateTrafficPolicyCommentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicy/{Id}/{Version}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Version", () => input.Version!.toString(), "{Version}", false); + b.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"); + b.p("Id", () => input.Id!, "{Id}", false); + b.p("Version", () => input.Version!.toString(), "{Version}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateTrafficPolicyCommentRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.Comment !== undefined) { - const node = __XmlNode.of("TrafficPolicyComment", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_UTPCR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_C] != null) { + bn.c(__XmlNode.of(_TPC, input[_C]).n(_C)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2720,41 +1834,26 @@ export const se_UpdateTrafficPolicyInstanceCommand = async ( input: UpdateTrafficPolicyInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/trafficpolicyinstance/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/2013-04-01/trafficpolicyinstance/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateTrafficPolicyInstanceRequest"); - bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); - if (input.TTL !== undefined) { - const node = __XmlNode.of("TTL", String(input.TTL)).withName("TTL"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_UTPIR); + bn.a("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/"); + if (input[_TTL] != null) { + bn.c(__XmlNode.of(_TTL, String(input[_TTL])).n(_TTL)); } - if (input.TrafficPolicyId !== undefined) { - const node = __XmlNode.of("TrafficPolicyId", input.TrafficPolicyId).withName("TrafficPolicyId"); - bodyNode.addChildNode(node); + bn.cc(input, _TPI); + if (input[_TPV] != null) { + bn.c(__XmlNode.of(_TPV, String(input[_TPV])).n(_TPV)); } - if (input.TrafficPolicyVersion !== undefined) { - const node = __XmlNode - .of("TrafficPolicyVersion", String(input.TrafficPolicyVersion)) - .withName("TrafficPolicyVersion"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2771,8 +1870,8 @@ export const de_ActivateKeySigningKeyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -2832,8 +1931,8 @@ export const de_AssociateVPCWithHostedZoneCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -2899,8 +1998,8 @@ export const de_ChangeCidrCollectionCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Id"] !== undefined) { - contents.Id = __expectString(data["Id"]); + if (data[_Id] != null) { + contents[_Id] = __expectString(data[_Id]); } return contents; }; @@ -2960,8 +2059,8 @@ export const de_ChangeResourceRecordSetsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -3071,11 +2170,11 @@ export const de_CreateCidrCollectionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Collection"] !== undefined) { - contents.Collection = de_CidrCollection(data["Collection"], context); + if (data[_Co] != null) { + contents[_Co] = de_CidrCollection(data[_Co], context); } return contents; }; @@ -3127,11 +2226,11 @@ export const de_CreateHealthCheckCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HealthCheck"] !== undefined) { - contents.HealthCheck = de_HealthCheck(data["HealthCheck"], context); + if (data[_HC] != null) { + contents[_HC] = de_HealthCheck(data[_HC], context); } return contents; }; @@ -3180,20 +2279,20 @@ export const de_CreateHostedZoneCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } - if (data["DelegationSet"] !== undefined) { - contents.DelegationSet = de_DelegationSet(data["DelegationSet"], context); + if (data[_DS] != null) { + contents[_DS] = de_DelegationSet(data[_DS], context); } - if (data["HostedZone"] !== undefined) { - contents.HostedZone = de_HostedZone(data["HostedZone"], context); + if (data[_HZ] != null) { + contents[_HZ] = de_HostedZone(data[_HZ], context); } - if (data["VPC"] !== undefined) { - contents.VPC = de_VPC(data["VPC"], context); + if (data[_VPC] != null) { + contents[_VPC] = de_VPC(data[_VPC], context); } return contents; }; @@ -3260,14 +2359,14 @@ export const de_CreateKeySigningKeyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } - if (data["KeySigningKey"] !== undefined) { - contents.KeySigningKey = de_KeySigningKey(data["KeySigningKey"], context); + if (data[_KSK] != null) { + contents[_KSK] = de_KeySigningKey(data[_KSK], context); } return contents; }; @@ -3337,11 +2436,11 @@ export const de_CreateQueryLoggingConfigCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["QueryLoggingConfig"] !== undefined) { - contents.QueryLoggingConfig = de_QueryLoggingConfig(data["QueryLoggingConfig"], context); + if (data[_QLC] != null) { + contents[_QLC] = de_QueryLoggingConfig(data[_QLC], context); } return contents; }; @@ -3399,11 +2498,11 @@ export const de_CreateReusableDelegationSetCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["DelegationSet"] !== undefined) { - contents.DelegationSet = de_DelegationSet(data["DelegationSet"], context); + if (data[_DS] != null) { + contents[_DS] = de_DelegationSet(data[_DS], context); } return contents; }; @@ -3464,11 +2563,11 @@ export const de_CreateTrafficPolicyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicy"] !== undefined) { - contents.TrafficPolicy = de_TrafficPolicy(data["TrafficPolicy"], context); + if (data[_TP] != null) { + contents[_TP] = de_TrafficPolicy(data[_TP], context); } return contents; }; @@ -3520,11 +2619,11 @@ export const de_CreateTrafficPolicyInstanceCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicyInstance"] !== undefined) { - contents.TrafficPolicyInstance = de_TrafficPolicyInstance(data["TrafficPolicyInstance"], context); + if (data[_TPIr] != null) { + contents[_TPIr] = de_TrafficPolicyInstance(data[_TPIr], context); } return contents; }; @@ -3579,11 +2678,11 @@ export const de_CreateTrafficPolicyVersionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_l]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicy"] !== undefined) { - contents.TrafficPolicy = de_TrafficPolicy(data["TrafficPolicy"], context); + if (data[_TP] != null) { + contents[_TP] = de_TrafficPolicy(data[_TP], context); } return contents; }; @@ -3640,11 +2739,11 @@ export const de_CreateVPCAssociationAuthorizationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(data["HostedZoneId"]); + if (data[_HZI] != null) { + contents[_HZI] = __expectString(data[_HZI]); } - if (data["VPC"] !== undefined) { - contents.VPC = de_VPC(data["VPC"], context); + if (data[_VPC] != null) { + contents[_VPC] = de_VPC(data[_VPC], context); } return contents; }; @@ -3701,8 +2800,8 @@ export const de_DeactivateKeySigningKeyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -3866,8 +2965,8 @@ export const de_DeleteHostedZoneCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -3924,8 +3023,8 @@ export const de_DeleteKeySigningKeyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -4242,8 +3341,8 @@ export const de_DisableHostedZoneDNSSECCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -4309,8 +3408,8 @@ export const de_DisassociateVPCFromHostedZoneCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -4367,8 +3466,8 @@ export const de_EnableHostedZoneDNSSECCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -4437,11 +3536,11 @@ export const de_GetAccountLimitCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Count"] !== undefined) { - contents.Count = __strictParseLong(data["Count"]) as number; + if (data[_Cou] != null) { + contents[_Cou] = __strictParseLong(data[_Cou]) as number; } - if (data["Limit"] !== undefined) { - contents.Limit = de_AccountLimit(data["Limit"], context); + if (data[_Li] != null) { + contents[_Li] = de_AccountLimit(data[_Li], context); } return contents; }; @@ -4486,8 +3585,8 @@ export const de_GetChangeCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ChangeInfo"] !== undefined) { - contents.ChangeInfo = de_ChangeInfo(data["ChangeInfo"], context); + if (data[_CI] != null) { + contents[_CI] = de_ChangeInfo(data[_CI], context); } return contents; }; @@ -4536,9 +3635,9 @@ export const de_GetCheckerIpRangesCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CheckerIpRanges === "") { - contents.CheckerIpRanges = []; - } else if (data["CheckerIpRanges"] !== undefined && data["CheckerIpRanges"]["member"] !== undefined) { - contents.CheckerIpRanges = de_CheckerIpRanges(__getArrayIfSingleItem(data["CheckerIpRanges"]["member"]), context); + contents[_CIR] = []; + } else if (data[_CIR] != null && data[_CIR][_me] != null) { + contents[_CIR] = de_CheckerIpRanges(__getArrayIfSingleItem(data[_CIR][_me]), context); } return contents; }; @@ -4578,12 +3677,12 @@ export const de_GetDNSSECCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.KeySigningKeys === "") { - contents.KeySigningKeys = []; - } else if (data["KeySigningKeys"] !== undefined && data["KeySigningKeys"]["member"] !== undefined) { - contents.KeySigningKeys = de_KeySigningKeys(__getArrayIfSingleItem(data["KeySigningKeys"]["member"]), context); + contents[_KSKe] = []; + } else if (data[_KSKe] != null && data[_KSKe][_me] != null) { + contents[_KSKe] = de_KeySigningKeys(__getArrayIfSingleItem(data[_KSKe][_me]), context); } - if (data["Status"] !== undefined) { - contents.Status = de_DNSSECStatus(data["Status"], context); + if (data[_S] != null) { + contents[_S] = de_DNSSECStatus(data[_S], context); } return contents; }; @@ -4634,8 +3733,8 @@ export const de_GetGeoLocationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["GeoLocationDetails"] !== undefined) { - contents.GeoLocationDetails = de_GeoLocationDetails(data["GeoLocationDetails"], context); + if (data[_GLD] != null) { + contents[_GLD] = de_GeoLocationDetails(data[_GLD], context); } return contents; }; @@ -4683,8 +3782,8 @@ export const de_GetHealthCheckCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HealthCheck"] !== undefined) { - contents.HealthCheck = de_HealthCheck(data["HealthCheck"], context); + if (data[_HC] != null) { + contents[_HC] = de_HealthCheck(data[_HC], context); } return contents; }; @@ -4735,8 +3834,8 @@ export const de_GetHealthCheckCountCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HealthCheckCount"] !== undefined) { - contents.HealthCheckCount = __strictParseLong(data["HealthCheckCount"]) as number; + if (data[_HCCe] != null) { + contents[_HCCe] = __strictParseLong(data[_HCCe]) as number; } return contents; }; @@ -4776,15 +3875,9 @@ export const de_GetHealthCheckLastFailureReasonCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.HealthCheckObservations === "") { - contents.HealthCheckObservations = []; - } else if ( - data["HealthCheckObservations"] !== undefined && - data["HealthCheckObservations"]["HealthCheckObservation"] !== undefined - ) { - contents.HealthCheckObservations = de_HealthCheckObservations( - __getArrayIfSingleItem(data["HealthCheckObservations"]["HealthCheckObservation"]), - context - ); + contents[_HCO] = []; + } else if (data[_HCO] != null && data[_HCO][_HCOe] != null) { + contents[_HCO] = de_HealthCheckObservations(__getArrayIfSingleItem(data[_HCO][_HCOe]), context); } return contents; }; @@ -4833,15 +3926,9 @@ export const de_GetHealthCheckStatusCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.HealthCheckObservations === "") { - contents.HealthCheckObservations = []; - } else if ( - data["HealthCheckObservations"] !== undefined && - data["HealthCheckObservations"]["HealthCheckObservation"] !== undefined - ) { - contents.HealthCheckObservations = de_HealthCheckObservations( - __getArrayIfSingleItem(data["HealthCheckObservations"]["HealthCheckObservation"]), - context - ); + contents[_HCO] = []; + } else if (data[_HCO] != null && data[_HCO][_HCOe] != null) { + contents[_HCO] = de_HealthCheckObservations(__getArrayIfSingleItem(data[_HCO][_HCOe]), context); } return contents; }; @@ -4889,16 +3976,16 @@ export const de_GetHostedZoneCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["DelegationSet"] !== undefined) { - contents.DelegationSet = de_DelegationSet(data["DelegationSet"], context); + if (data[_DS] != null) { + contents[_DS] = de_DelegationSet(data[_DS], context); } - if (data["HostedZone"] !== undefined) { - contents.HostedZone = de_HostedZone(data["HostedZone"], context); + if (data[_HZ] != null) { + contents[_HZ] = de_HostedZone(data[_HZ], context); } if (data.VPCs === "") { - contents.VPCs = []; - } else if (data["VPCs"] !== undefined && data["VPCs"]["VPC"] !== undefined) { - contents.VPCs = de_VPCs(__getArrayIfSingleItem(data["VPCs"]["VPC"]), context); + contents[_VPCs] = []; + } else if (data[_VPCs] != null && data[_VPCs][_VPC] != null) { + contents[_VPCs] = de_VPCs(__getArrayIfSingleItem(data[_VPCs][_VPC]), context); } return contents; }; @@ -4946,8 +4033,8 @@ export const de_GetHostedZoneCountCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HostedZoneCount"] !== undefined) { - contents.HostedZoneCount = __strictParseLong(data["HostedZoneCount"]) as number; + if (data[_HZCo] != null) { + contents[_HZCo] = __strictParseLong(data[_HZCo]) as number; } return contents; }; @@ -4992,11 +4079,11 @@ export const de_GetHostedZoneLimitCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Count"] !== undefined) { - contents.Count = __strictParseLong(data["Count"]) as number; + if (data[_Cou] != null) { + contents[_Cou] = __strictParseLong(data[_Cou]) as number; } - if (data["Limit"] !== undefined) { - contents.Limit = de_HostedZoneLimit(data["Limit"], context); + if (data[_Li] != null) { + contents[_Li] = de_HostedZoneLimit(data[_Li], context); } return contents; }; @@ -5047,8 +4134,8 @@ export const de_GetQueryLoggingConfigCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["QueryLoggingConfig"] !== undefined) { - contents.QueryLoggingConfig = de_QueryLoggingConfig(data["QueryLoggingConfig"], context); + if (data[_QLC] != null) { + contents[_QLC] = de_QueryLoggingConfig(data[_QLC], context); } return contents; }; @@ -5096,8 +4183,8 @@ export const de_GetReusableDelegationSetCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["DelegationSet"] !== undefined) { - contents.DelegationSet = de_DelegationSet(data["DelegationSet"], context); + if (data[_DS] != null) { + contents[_DS] = de_DelegationSet(data[_DS], context); } return contents; }; @@ -5148,11 +4235,11 @@ export const de_GetReusableDelegationSetLimitCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Count"] !== undefined) { - contents.Count = __strictParseLong(data["Count"]) as number; + if (data[_Cou] != null) { + contents[_Cou] = __strictParseLong(data[_Cou]) as number; } - if (data["Limit"] !== undefined) { - contents.Limit = de_ReusableDelegationSetLimit(data["Limit"], context); + if (data[_Li] != null) { + contents[_Li] = de_ReusableDelegationSetLimit(data[_Li], context); } return contents; }; @@ -5200,8 +4287,8 @@ export const de_GetTrafficPolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicy"] !== undefined) { - contents.TrafficPolicy = de_TrafficPolicy(data["TrafficPolicy"], context); + if (data[_TP] != null) { + contents[_TP] = de_TrafficPolicy(data[_TP], context); } return contents; }; @@ -5249,8 +4336,8 @@ export const de_GetTrafficPolicyInstanceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicyInstance"] !== undefined) { - contents.TrafficPolicyInstance = de_TrafficPolicyInstance(data["TrafficPolicyInstance"], context); + if (data[_TPIr] != null) { + contents[_TPIr] = de_TrafficPolicyInstance(data[_TPIr], context); } return contents; }; @@ -5298,8 +4385,8 @@ export const de_GetTrafficPolicyInstanceCountCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicyInstanceCount"] !== undefined) { - contents.TrafficPolicyInstanceCount = __strictParseInt32(data["TrafficPolicyInstanceCount"]) as number; + if (data[_TPIC] != null) { + contents[_TPIC] = __strictParseInt32(data[_TPIC]) as number; } return contents; }; @@ -5339,12 +4426,12 @@ export const de_ListCidrBlocksCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CidrBlocks === "") { - contents.CidrBlocks = []; - } else if (data["CidrBlocks"] !== undefined && data["CidrBlocks"]["member"] !== undefined) { - contents.CidrBlocks = de_CidrBlockSummaries(__getArrayIfSingleItem(data["CidrBlocks"]["member"]), context); + contents[_CBi] = []; + } else if (data[_CBi] != null && data[_CBi][_me] != null) { + contents[_CBi] = de_CidrBlockSummaries(__getArrayIfSingleItem(data[_CBi][_me]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -5396,15 +4483,12 @@ export const de_ListCidrCollectionsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CidrCollections === "") { - contents.CidrCollections = []; - } else if (data["CidrCollections"] !== undefined && data["CidrCollections"]["member"] !== undefined) { - contents.CidrCollections = de_CollectionSummaries( - __getArrayIfSingleItem(data["CidrCollections"]["member"]), - context - ); + contents[_CCi] = []; + } else if (data[_CCi] != null && data[_CCi][_me] != null) { + contents[_CCi] = de_CollectionSummaries(__getArrayIfSingleItem(data[_CCi][_me]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -5450,12 +4534,12 @@ export const de_ListCidrLocationsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CidrLocations === "") { - contents.CidrLocations = []; - } else if (data["CidrLocations"] !== undefined && data["CidrLocations"]["member"] !== undefined) { - contents.CidrLocations = de_LocationSummaries(__getArrayIfSingleItem(data["CidrLocations"]["member"]), context); + contents[_CL] = []; + } else if (data[_CL] != null && data[_CL][_me] != null) { + contents[_CL] = de_LocationSummaries(__getArrayIfSingleItem(data[_CL][_me]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -5504,30 +4588,24 @@ export const de_ListGeoLocationsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.GeoLocationDetailsList === "") { - contents.GeoLocationDetailsList = []; - } else if ( - data["GeoLocationDetailsList"] !== undefined && - data["GeoLocationDetailsList"]["GeoLocationDetails"] !== undefined - ) { - contents.GeoLocationDetailsList = de_GeoLocationDetailsList( - __getArrayIfSingleItem(data["GeoLocationDetailsList"]["GeoLocationDetails"]), - context - ); + contents[_GLDL] = []; + } else if (data[_GLDL] != null && data[_GLDL][_GLD] != null) { + contents[_GLDL] = de_GeoLocationDetailsList(__getArrayIfSingleItem(data[_GLDL][_GLD]), context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["NextContinentCode"] !== undefined) { - contents.NextContinentCode = __expectString(data["NextContinentCode"]); + if (data[_NCC] != null) { + contents[_NCC] = __expectString(data[_NCC]); } - if (data["NextCountryCode"] !== undefined) { - contents.NextCountryCode = __expectString(data["NextCountryCode"]); + if (data[_NCCe] != null) { + contents[_NCCe] = __expectString(data[_NCCe]); } - if (data["NextSubdivisionCode"] !== undefined) { - contents.NextSubdivisionCode = __expectString(data["NextSubdivisionCode"]); + if (data[_NSC] != null) { + contents[_NSC] = __expectString(data[_NSC]); } return contents; }; @@ -5573,21 +4651,21 @@ export const de_ListHealthChecksCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.HealthChecks === "") { - contents.HealthChecks = []; - } else if (data["HealthChecks"] !== undefined && data["HealthChecks"]["HealthCheck"] !== undefined) { - contents.HealthChecks = de_HealthChecks(__getArrayIfSingleItem(data["HealthChecks"]["HealthCheck"]), context); + contents[_HCe] = []; + } else if (data[_HCe] != null && data[_HCe][_HC] != null) { + contents[_HCe] = de_HealthChecks(__getArrayIfSingleItem(data[_HCe][_HC]), context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["Marker"] !== undefined) { - contents.Marker = __expectString(data["Marker"]); + if (data[_M] != null) { + contents[_M] = __expectString(data[_M]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(data["NextMarker"]); + if (data[_NM] != null) { + contents[_NM] = __expectString(data[_NM]); } return contents; }; @@ -5636,21 +4714,21 @@ export const de_ListHostedZonesCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.HostedZones === "") { - contents.HostedZones = []; - } else if (data["HostedZones"] !== undefined && data["HostedZones"]["HostedZone"] !== undefined) { - contents.HostedZones = de_HostedZones(__getArrayIfSingleItem(data["HostedZones"]["HostedZone"]), context); + contents[_HZo] = []; + } else if (data[_HZo] != null && data[_HZo][_HZ] != null) { + contents[_HZo] = de_HostedZones(__getArrayIfSingleItem(data[_HZo][_HZ]), context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["Marker"] !== undefined) { - contents.Marker = __expectString(data["Marker"]); + if (data[_M] != null) { + contents[_M] = __expectString(data[_M]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(data["NextMarker"]); + if (data[_NM] != null) { + contents[_NM] = __expectString(data[_NM]); } return contents; }; @@ -5701,28 +4779,28 @@ export const de_ListHostedZonesByNameCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["DNSName"] !== undefined) { - contents.DNSName = __expectString(data["DNSName"]); + if (data[_DNSN] != null) { + contents[_DNSN] = __expectString(data[_DNSN]); } - if (data["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(data["HostedZoneId"]); + if (data[_HZI] != null) { + contents[_HZI] = __expectString(data[_HZI]); } if (data.HostedZones === "") { - contents.HostedZones = []; - } else if (data["HostedZones"] !== undefined && data["HostedZones"]["HostedZone"] !== undefined) { - contents.HostedZones = de_HostedZones(__getArrayIfSingleItem(data["HostedZones"]["HostedZone"]), context); + contents[_HZo] = []; + } else if (data[_HZo] != null && data[_HZo][_HZ] != null) { + contents[_HZo] = de_HostedZones(__getArrayIfSingleItem(data[_HZo][_HZ]), context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["NextDNSName"] !== undefined) { - contents.NextDNSName = __expectString(data["NextDNSName"]); + if (data[_NDNSN] != null) { + contents[_NDNSN] = __expectString(data[_NDNSN]); } - if (data["NextHostedZoneId"] !== undefined) { - contents.NextHostedZoneId = __expectString(data["NextHostedZoneId"]); + if (data[_NHZI] != null) { + contents[_NHZI] = __expectString(data[_NHZI]); } return contents; }; @@ -5771,21 +4849,15 @@ export const de_ListHostedZonesByVPCCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.HostedZoneSummaries === "") { - contents.HostedZoneSummaries = []; - } else if ( - data["HostedZoneSummaries"] !== undefined && - data["HostedZoneSummaries"]["HostedZoneSummary"] !== undefined - ) { - contents.HostedZoneSummaries = de_HostedZoneSummaries( - __getArrayIfSingleItem(data["HostedZoneSummaries"]["HostedZoneSummary"]), - context - ); - } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; - } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + contents[_HZS] = []; + } else if (data[_HZS] != null && data[_HZS][_HZSo] != null) { + contents[_HZS] = de_HostedZoneSummaries(__getArrayIfSingleItem(data[_HZS][_HZSo]), context); + } + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; + } + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -5833,19 +4905,13 @@ export const de_ListQueryLoggingConfigsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } if (data.QueryLoggingConfigs === "") { - contents.QueryLoggingConfigs = []; - } else if ( - data["QueryLoggingConfigs"] !== undefined && - data["QueryLoggingConfigs"]["QueryLoggingConfig"] !== undefined - ) { - contents.QueryLoggingConfigs = de_QueryLoggingConfigs( - __getArrayIfSingleItem(data["QueryLoggingConfigs"]["QueryLoggingConfig"]), - context - ); + contents[_QLCu] = []; + } else if (data[_QLCu] != null && data[_QLCu][_QLC] != null) { + contents[_QLCu] = de_QueryLoggingConfigs(__getArrayIfSingleItem(data[_QLCu][_QLC]), context); } return contents; }; @@ -5896,31 +4962,25 @@ export const de_ListResourceRecordSetsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["NextRecordIdentifier"] !== undefined) { - contents.NextRecordIdentifier = __expectString(data["NextRecordIdentifier"]); + if (data[_NRI] != null) { + contents[_NRI] = __expectString(data[_NRI]); } - if (data["NextRecordName"] !== undefined) { - contents.NextRecordName = __expectString(data["NextRecordName"]); + if (data[_NRN] != null) { + contents[_NRN] = __expectString(data[_NRN]); } - if (data["NextRecordType"] !== undefined) { - contents.NextRecordType = __expectString(data["NextRecordType"]); + if (data[_NRT] != null) { + contents[_NRT] = __expectString(data[_NRT]); } if (data.ResourceRecordSets === "") { - contents.ResourceRecordSets = []; - } else if ( - data["ResourceRecordSets"] !== undefined && - data["ResourceRecordSets"]["ResourceRecordSet"] !== undefined - ) { - contents.ResourceRecordSets = de_ResourceRecordSets( - __getArrayIfSingleItem(data["ResourceRecordSets"]["ResourceRecordSet"]), - context - ); + contents[_RRS] = []; + } else if (data[_RRS] != null && data[_RRS][_RRSe] != null) { + contents[_RRS] = de_ResourceRecordSets(__getArrayIfSingleItem(data[_RRS][_RRSe]), context); } return contents; }; @@ -5969,24 +5029,21 @@ export const de_ListReusableDelegationSetsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.DelegationSets === "") { - contents.DelegationSets = []; - } else if (data["DelegationSets"] !== undefined && data["DelegationSets"]["DelegationSet"] !== undefined) { - contents.DelegationSets = de_DelegationSets( - __getArrayIfSingleItem(data["DelegationSets"]["DelegationSet"]), - context - ); + contents[_DSe] = []; + } else if (data[_DSe] != null && data[_DSe][_DS] != null) { + contents[_DSe] = de_DelegationSets(__getArrayIfSingleItem(data[_DSe][_DS]), context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["Marker"] !== undefined) { - contents.Marker = __expectString(data["Marker"]); + if (data[_M] != null) { + contents[_M] = __expectString(data[_M]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(data["NextMarker"]); + if (data[_NM] != null) { + contents[_NM] = __expectString(data[_NM]); } return contents; }; @@ -6031,8 +5088,8 @@ export const de_ListTagsForResourceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ResourceTagSet"] !== undefined) { - contents.ResourceTagSet = de_ResourceTagSet(data["ResourceTagSet"], context); + if (data[_RTS] != null) { + contents[_RTS] = de_ResourceTagSet(data[_RTS], context); } return contents; }; @@ -6090,12 +5147,9 @@ export const de_ListTagsForResourcesCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.ResourceTagSets === "") { - contents.ResourceTagSets = []; - } else if (data["ResourceTagSets"] !== undefined && data["ResourceTagSets"]["ResourceTagSet"] !== undefined) { - contents.ResourceTagSets = de_ResourceTagSetList( - __getArrayIfSingleItem(data["ResourceTagSets"]["ResourceTagSet"]), - context - ); + contents[_RTSe] = []; + } else if (data[_RTSe] != null && data[_RTSe][_RTS] != null) { + contents[_RTSe] = de_ResourceTagSetList(__getArrayIfSingleItem(data[_RTSe][_RTS]), context); } return contents; }; @@ -6152,25 +5206,19 @@ export const de_ListTrafficPoliciesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["TrafficPolicyIdMarker"] !== undefined) { - contents.TrafficPolicyIdMarker = __expectString(data["TrafficPolicyIdMarker"]); + if (data[_TPIM] != null) { + contents[_TPIM] = __expectString(data[_TPIM]); } if (data.TrafficPolicySummaries === "") { - contents.TrafficPolicySummaries = []; - } else if ( - data["TrafficPolicySummaries"] !== undefined && - data["TrafficPolicySummaries"]["TrafficPolicySummary"] !== undefined - ) { - contents.TrafficPolicySummaries = de_TrafficPolicySummaries( - __getArrayIfSingleItem(data["TrafficPolicySummaries"]["TrafficPolicySummary"]), - context - ); + contents[_TPS] = []; + } else if (data[_TPS] != null && data[_TPS][_TPSr] != null) { + contents[_TPS] = de_TrafficPolicySummaries(__getArrayIfSingleItem(data[_TPS][_TPSr]), context); } return contents; }; @@ -6215,31 +5263,25 @@ export const de_ListTrafficPolicyInstancesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HostedZoneIdMarker"] !== undefined) { - contents.HostedZoneIdMarker = __expectString(data["HostedZoneIdMarker"]); + if (data[_HZIM] != null) { + contents[_HZIM] = __expectString(data[_HZIM]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["TrafficPolicyInstanceNameMarker"] !== undefined) { - contents.TrafficPolicyInstanceNameMarker = __expectString(data["TrafficPolicyInstanceNameMarker"]); + if (data[_TPINM] != null) { + contents[_TPINM] = __expectString(data[_TPINM]); } - if (data["TrafficPolicyInstanceTypeMarker"] !== undefined) { - contents.TrafficPolicyInstanceTypeMarker = __expectString(data["TrafficPolicyInstanceTypeMarker"]); + if (data[_TPITM] != null) { + contents[_TPITM] = __expectString(data[_TPITM]); } if (data.TrafficPolicyInstances === "") { - contents.TrafficPolicyInstances = []; - } else if ( - data["TrafficPolicyInstances"] !== undefined && - data["TrafficPolicyInstances"]["TrafficPolicyInstance"] !== undefined - ) { - contents.TrafficPolicyInstances = de_TrafficPolicyInstances( - __getArrayIfSingleItem(data["TrafficPolicyInstances"]["TrafficPolicyInstance"]), - context - ); + contents[_TPIra] = []; + } else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) { + contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context); } return contents; }; @@ -6287,28 +5329,22 @@ export const de_ListTrafficPolicyInstancesByHostedZoneCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["TrafficPolicyInstanceNameMarker"] !== undefined) { - contents.TrafficPolicyInstanceNameMarker = __expectString(data["TrafficPolicyInstanceNameMarker"]); + if (data[_TPINM] != null) { + contents[_TPINM] = __expectString(data[_TPINM]); } - if (data["TrafficPolicyInstanceTypeMarker"] !== undefined) { - contents.TrafficPolicyInstanceTypeMarker = __expectString(data["TrafficPolicyInstanceTypeMarker"]); + if (data[_TPITM] != null) { + contents[_TPITM] = __expectString(data[_TPITM]); } if (data.TrafficPolicyInstances === "") { - contents.TrafficPolicyInstances = []; - } else if ( - data["TrafficPolicyInstances"] !== undefined && - data["TrafficPolicyInstances"]["TrafficPolicyInstance"] !== undefined - ) { - contents.TrafficPolicyInstances = de_TrafficPolicyInstances( - __getArrayIfSingleItem(data["TrafficPolicyInstances"]["TrafficPolicyInstance"]), - context - ); + contents[_TPIra] = []; + } else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) { + contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context); } return contents; }; @@ -6359,31 +5395,25 @@ export const de_ListTrafficPolicyInstancesByPolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HostedZoneIdMarker"] !== undefined) { - contents.HostedZoneIdMarker = __expectString(data["HostedZoneIdMarker"]); + if (data[_HZIM] != null) { + contents[_HZIM] = __expectString(data[_HZIM]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data["TrafficPolicyInstanceNameMarker"] !== undefined) { - contents.TrafficPolicyInstanceNameMarker = __expectString(data["TrafficPolicyInstanceNameMarker"]); + if (data[_TPINM] != null) { + contents[_TPINM] = __expectString(data[_TPINM]); } - if (data["TrafficPolicyInstanceTypeMarker"] !== undefined) { - contents.TrafficPolicyInstanceTypeMarker = __expectString(data["TrafficPolicyInstanceTypeMarker"]); + if (data[_TPITM] != null) { + contents[_TPITM] = __expectString(data[_TPITM]); } if (data.TrafficPolicyInstances === "") { - contents.TrafficPolicyInstances = []; - } else if ( - data["TrafficPolicyInstances"] !== undefined && - data["TrafficPolicyInstances"]["TrafficPolicyInstance"] !== undefined - ) { - contents.TrafficPolicyInstances = de_TrafficPolicyInstances( - __getArrayIfSingleItem(data["TrafficPolicyInstances"]["TrafficPolicyInstance"]), - context - ); + contents[_TPIra] = []; + } else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) { + contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context); } return contents; }; @@ -6434,22 +5464,19 @@ export const de_ListTrafficPolicyVersionsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["MaxItems"] !== undefined) { - contents.MaxItems = __strictParseInt32(data["MaxItems"]) as number; + if (data[_MI] != null) { + contents[_MI] = __strictParseInt32(data[_MI]) as number; } if (data.TrafficPolicies === "") { - contents.TrafficPolicies = []; - } else if (data["TrafficPolicies"] !== undefined && data["TrafficPolicies"]["TrafficPolicy"] !== undefined) { - contents.TrafficPolicies = de_TrafficPolicies( - __getArrayIfSingleItem(data["TrafficPolicies"]["TrafficPolicy"]), - context - ); + contents[_TPr] = []; + } else if (data[_TPr] != null && data[_TPr][_TP] != null) { + contents[_TPr] = de_TrafficPolicies(__getArrayIfSingleItem(data[_TPr][_TP]), context); } - if (data["TrafficPolicyVersionMarker"] !== undefined) { - contents.TrafficPolicyVersionMarker = __expectString(data["TrafficPolicyVersionMarker"]); + if (data[_TPVM] != null) { + contents[_TPVM] = __expectString(data[_TPVM]); } return contents; }; @@ -6497,16 +5524,16 @@ export const de_ListVPCAssociationAuthorizationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(data["HostedZoneId"]); + if (data[_HZI] != null) { + contents[_HZI] = __expectString(data[_HZI]); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } if (data.VPCs === "") { - contents.VPCs = []; - } else if (data["VPCs"] !== undefined && data["VPCs"]["VPC"] !== undefined) { - contents.VPCs = de_VPCs(__getArrayIfSingleItem(data["VPCs"]["VPC"]), context); + contents[_VPCs] = []; + } else if (data[_VPCs] != null && data[_VPCs][_VPC] != null) { + contents[_VPCs] = de_VPCs(__getArrayIfSingleItem(data[_VPCs][_VPC]), context); } return contents; }; @@ -6557,25 +5584,25 @@ export const de_TestDNSAnswerCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Nameserver"] !== undefined) { - contents.Nameserver = __expectString(data["Nameserver"]); + if (data[_Na] != null) { + contents[_Na] = __expectString(data[_Na]); } - if (data["Protocol"] !== undefined) { - contents.Protocol = __expectString(data["Protocol"]); + if (data[_Pr] != null) { + contents[_Pr] = __expectString(data[_Pr]); } if (data.RecordData === "") { - contents.RecordData = []; - } else if (data["RecordData"] !== undefined && data["RecordData"]["RecordDataEntry"] !== undefined) { - contents.RecordData = de_RecordData(__getArrayIfSingleItem(data["RecordData"]["RecordDataEntry"]), context); + contents[_RDe] = []; + } else if (data[_RDe] != null && data[_RDe][_RDE] != null) { + contents[_RDe] = de_RecordData(__getArrayIfSingleItem(data[_RDe][_RDE]), context); } - if (data["RecordName"] !== undefined) { - contents.RecordName = __expectString(data["RecordName"]); + if (data[_RN] != null) { + contents[_RN] = __expectString(data[_RN]); } - if (data["RecordType"] !== undefined) { - contents.RecordType = __expectString(data["RecordType"]); + if (data[_RT] != null) { + contents[_RT] = __expectString(data[_RT]); } - if (data["ResponseCode"] !== undefined) { - contents.ResponseCode = __expectString(data["ResponseCode"]); + if (data[_RC] != null) { + contents[_RC] = __expectString(data[_RC]); } return contents; }; @@ -6623,8 +5650,8 @@ export const de_UpdateHealthCheckCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HealthCheck"] !== undefined) { - contents.HealthCheck = de_HealthCheck(data["HealthCheck"], context); + if (data[_HC] != null) { + contents[_HC] = de_HealthCheck(data[_HC], context); } return contents; }; @@ -6675,8 +5702,8 @@ export const de_UpdateHostedZoneCommentCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["HostedZone"] !== undefined) { - contents.HostedZone = de_HostedZone(data["HostedZone"], context); + if (data[_HZ] != null) { + contents[_HZ] = de_HostedZone(data[_HZ], context); } return contents; }; @@ -6727,8 +5754,8 @@ export const de_UpdateTrafficPolicyCommentCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicy"] !== undefined) { - contents.TrafficPolicy = de_TrafficPolicy(data["TrafficPolicy"], context); + if (data[_TP] != null) { + contents[_TP] = de_TrafficPolicy(data[_TP], context); } return contents; }; @@ -6779,8 +5806,8 @@ export const de_UpdateTrafficPolicyInstanceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["TrafficPolicyInstance"] !== undefined) { - contents.TrafficPolicyInstance = de_TrafficPolicyInstance(data["TrafficPolicyInstance"], context); + if (data[_TPIr] != null) { + contents[_TPIr] = de_TrafficPolicyInstance(data[_TPIr], context); } return contents; }; @@ -6833,8 +5860,8 @@ const de_CidrBlockInUseExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CidrBlockInUseException({ $metadata: deserializeMetadata(parsedOutput), @@ -6852,8 +5879,8 @@ const de_CidrCollectionAlreadyExistsExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CidrCollectionAlreadyExistsException({ $metadata: deserializeMetadata(parsedOutput), @@ -6871,8 +5898,8 @@ const de_CidrCollectionInUseExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CidrCollectionInUseException({ $metadata: deserializeMetadata(parsedOutput), @@ -6890,8 +5917,8 @@ const de_CidrCollectionVersionMismatchExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new CidrCollectionVersionMismatchException({ $metadata: deserializeMetadata(parsedOutput), @@ -6909,8 +5936,8 @@ const de_ConcurrentModificationRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new ConcurrentModification({ $metadata: deserializeMetadata(parsedOutput), @@ -6928,8 +5955,8 @@ const de_ConflictingDomainExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new ConflictingDomainExists({ $metadata: deserializeMetadata(parsedOutput), @@ -6944,8 +5971,8 @@ const de_ConflictingDomainExistsRes = async ( const de_ConflictingTypesRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new ConflictingTypes({ $metadata: deserializeMetadata(parsedOutput), @@ -6963,8 +5990,8 @@ const de_DelegationSetAlreadyCreatedRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new DelegationSetAlreadyCreated({ $metadata: deserializeMetadata(parsedOutput), @@ -6982,8 +6009,8 @@ const de_DelegationSetAlreadyReusableRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new DelegationSetAlreadyReusable({ $metadata: deserializeMetadata(parsedOutput), @@ -6998,8 +6025,8 @@ const de_DelegationSetAlreadyReusableRes = async ( const de_DelegationSetInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new DelegationSetInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -7017,8 +6044,8 @@ const de_DelegationSetNotAvailableRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new DelegationSetNotAvailable({ $metadata: deserializeMetadata(parsedOutput), @@ -7036,8 +6063,8 @@ const de_DelegationSetNotReusableRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new DelegationSetNotReusable({ $metadata: deserializeMetadata(parsedOutput), @@ -7052,8 +6079,8 @@ const de_DelegationSetNotReusableRes = async ( const de_DNSSECNotFoundRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new DNSSECNotFound({ $metadata: deserializeMetadata(parsedOutput), @@ -7071,8 +6098,8 @@ const de_HealthCheckAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HealthCheckAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -7087,8 +6114,8 @@ const de_HealthCheckAlreadyExistsRes = async ( const de_HealthCheckInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HealthCheckInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -7106,8 +6133,8 @@ const de_HealthCheckVersionMismatchRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HealthCheckVersionMismatch({ $metadata: deserializeMetadata(parsedOutput), @@ -7125,8 +6152,8 @@ const de_HostedZoneAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HostedZoneAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -7141,8 +6168,8 @@ const de_HostedZoneAlreadyExistsRes = async ( const de_HostedZoneNotEmptyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HostedZoneNotEmpty({ $metadata: deserializeMetadata(parsedOutput), @@ -7157,8 +6184,8 @@ const de_HostedZoneNotEmptyRes = async (parsedOutput: any, context: __SerdeConte const de_HostedZoneNotFoundRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HostedZoneNotFound({ $metadata: deserializeMetadata(parsedOutput), @@ -7176,8 +6203,8 @@ const de_HostedZoneNotPrivateRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HostedZoneNotPrivate({ $metadata: deserializeMetadata(parsedOutput), @@ -7195,8 +6222,8 @@ const de_HostedZonePartiallyDelegatedRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new HostedZonePartiallyDelegated({ $metadata: deserializeMetadata(parsedOutput), @@ -7211,8 +6238,8 @@ const de_HostedZonePartiallyDelegatedRes = async ( const de_IncompatibleVersionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new IncompatibleVersion({ $metadata: deserializeMetadata(parsedOutput), @@ -7230,8 +6257,8 @@ const de_InsufficientCloudWatchLogsResourcePolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InsufficientCloudWatchLogsResourcePolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -7246,8 +6273,8 @@ const de_InsufficientCloudWatchLogsResourcePolicyRes = async ( const de_InvalidArgumentRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidArgument({ $metadata: deserializeMetadata(parsedOutput), @@ -7262,13 +6289,13 @@ const de_InvalidArgumentRes = async (parsedOutput: any, context: __SerdeContext) const de_InvalidChangeBatchRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } if (data.messages === "") { - contents.messages = []; - } else if (data["messages"] !== undefined && data["messages"]["Message"] !== undefined) { - contents.messages = de_ErrorMessages(__getArrayIfSingleItem(data["messages"]["Message"]), context); + contents[_mess] = []; + } else if (data[_mess] != null && data[_mess][_Me] != null) { + contents[_mess] = de_ErrorMessages(__getArrayIfSingleItem(data[_mess][_Me]), context); } const exception = new InvalidChangeBatch({ $metadata: deserializeMetadata(parsedOutput), @@ -7283,8 +6310,8 @@ const de_InvalidChangeBatchRes = async (parsedOutput: any, context: __SerdeConte const de_InvalidDomainNameRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidDomainName({ $metadata: deserializeMetadata(parsedOutput), @@ -7299,8 +6326,8 @@ const de_InvalidDomainNameRes = async (parsedOutput: any, context: __SerdeContex const de_InvalidInputRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidInput({ $metadata: deserializeMetadata(parsedOutput), @@ -7318,8 +6345,8 @@ const de_InvalidKeySigningKeyNameRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidKeySigningKeyName({ $metadata: deserializeMetadata(parsedOutput), @@ -7337,8 +6364,8 @@ const de_InvalidKeySigningKeyStatusRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidKeySigningKeyStatus({ $metadata: deserializeMetadata(parsedOutput), @@ -7353,8 +6380,8 @@ const de_InvalidKeySigningKeyStatusRes = async ( const de_InvalidKMSArnRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidKMSArn({ $metadata: deserializeMetadata(parsedOutput), @@ -7372,8 +6399,8 @@ const de_InvalidPaginationTokenRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidPaginationToken({ $metadata: deserializeMetadata(parsedOutput), @@ -7391,8 +6418,8 @@ const de_InvalidSigningStatusRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidSigningStatus({ $metadata: deserializeMetadata(parsedOutput), @@ -7410,8 +6437,8 @@ const de_InvalidTrafficPolicyDocumentRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidTrafficPolicyDocument({ $metadata: deserializeMetadata(parsedOutput), @@ -7426,8 +6453,8 @@ const de_InvalidTrafficPolicyDocumentRes = async ( const de_InvalidVPCIdRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new InvalidVPCId({ $metadata: deserializeMetadata(parsedOutput), @@ -7445,8 +6472,8 @@ const de_KeySigningKeyAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new KeySigningKeyAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -7464,8 +6491,8 @@ const de_KeySigningKeyInParentDSRecordRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new KeySigningKeyInParentDSRecord({ $metadata: deserializeMetadata(parsedOutput), @@ -7480,8 +6507,8 @@ const de_KeySigningKeyInParentDSRecordRes = async ( const de_KeySigningKeyInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new KeySigningKeyInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -7499,8 +6526,8 @@ const de_KeySigningKeyWithActiveStatusNotFoundRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new KeySigningKeyWithActiveStatusNotFound({ $metadata: deserializeMetadata(parsedOutput), @@ -7515,8 +6542,8 @@ const de_KeySigningKeyWithActiveStatusNotFoundRes = async ( const de_LastVPCAssociationRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new LastVPCAssociation({ $metadata: deserializeMetadata(parsedOutput), @@ -7531,8 +6558,8 @@ const de_LastVPCAssociationRes = async (parsedOutput: any, context: __SerdeConte const de_LimitsExceededRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new LimitsExceeded({ $metadata: deserializeMetadata(parsedOutput), @@ -7547,8 +6574,8 @@ const de_LimitsExceededRes = async (parsedOutput: any, context: __SerdeContext): const de_NoSuchChangeRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchChange({ $metadata: deserializeMetadata(parsedOutput), @@ -7566,8 +6593,8 @@ const de_NoSuchCidrCollectionExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchCidrCollectionException({ $metadata: deserializeMetadata(parsedOutput), @@ -7585,8 +6612,8 @@ const de_NoSuchCidrLocationExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchCidrLocationException({ $metadata: deserializeMetadata(parsedOutput), @@ -7604,8 +6631,8 @@ const de_NoSuchCloudWatchLogsLogGroupRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchCloudWatchLogsLogGroup({ $metadata: deserializeMetadata(parsedOutput), @@ -7620,8 +6647,8 @@ const de_NoSuchCloudWatchLogsLogGroupRes = async ( const de_NoSuchDelegationSetRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchDelegationSet({ $metadata: deserializeMetadata(parsedOutput), @@ -7636,8 +6663,8 @@ const de_NoSuchDelegationSetRes = async (parsedOutput: any, context: __SerdeCont const de_NoSuchGeoLocationRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchGeoLocation({ $metadata: deserializeMetadata(parsedOutput), @@ -7652,8 +6679,8 @@ const de_NoSuchGeoLocationRes = async (parsedOutput: any, context: __SerdeContex const de_NoSuchHealthCheckRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchHealthCheck({ $metadata: deserializeMetadata(parsedOutput), @@ -7668,8 +6695,8 @@ const de_NoSuchHealthCheckRes = async (parsedOutput: any, context: __SerdeContex const de_NoSuchHostedZoneRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchHostedZone({ $metadata: deserializeMetadata(parsedOutput), @@ -7684,8 +6711,8 @@ const de_NoSuchHostedZoneRes = async (parsedOutput: any, context: __SerdeContext const de_NoSuchKeySigningKeyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchKeySigningKey({ $metadata: deserializeMetadata(parsedOutput), @@ -7703,8 +6730,8 @@ const de_NoSuchQueryLoggingConfigRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchQueryLoggingConfig({ $metadata: deserializeMetadata(parsedOutput), @@ -7719,8 +6746,8 @@ const de_NoSuchQueryLoggingConfigRes = async ( const de_NoSuchTrafficPolicyRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchTrafficPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -7738,8 +6765,8 @@ const de_NoSuchTrafficPolicyInstanceRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NoSuchTrafficPolicyInstance({ $metadata: deserializeMetadata(parsedOutput), @@ -7757,8 +6784,8 @@ const de_NotAuthorizedExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new NotAuthorizedException({ $metadata: deserializeMetadata(parsedOutput), @@ -7776,8 +6803,8 @@ const de_PriorRequestNotCompleteRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new PriorRequestNotComplete({ $metadata: deserializeMetadata(parsedOutput), @@ -7795,8 +6822,8 @@ const de_PublicZoneVPCAssociationRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new PublicZoneVPCAssociation({ $metadata: deserializeMetadata(parsedOutput), @@ -7814,8 +6841,8 @@ const de_QueryLoggingConfigAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new QueryLoggingConfigAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -7830,8 +6857,8 @@ const de_QueryLoggingConfigAlreadyExistsRes = async ( const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), @@ -7846,8 +6873,8 @@ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeCont const de_TooManyHealthChecksRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TooManyHealthChecks({ $metadata: deserializeMetadata(parsedOutput), @@ -7862,8 +6889,8 @@ const de_TooManyHealthChecksRes = async (parsedOutput: any, context: __SerdeCont const de_TooManyHostedZonesRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TooManyHostedZones({ $metadata: deserializeMetadata(parsedOutput), @@ -7881,8 +6908,8 @@ const de_TooManyKeySigningKeysRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TooManyKeySigningKeys({ $metadata: deserializeMetadata(parsedOutput), @@ -7900,8 +6927,8 @@ const de_TooManyTrafficPoliciesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TooManyTrafficPolicies({ $metadata: deserializeMetadata(parsedOutput), @@ -7919,8 +6946,8 @@ const de_TooManyTrafficPolicyInstancesRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TooManyTrafficPolicyInstances({ $metadata: deserializeMetadata(parsedOutput), @@ -7938,8 +6965,8 @@ const de_TooManyTrafficPolicyVersionsForCurrentPolicyRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TooManyTrafficPolicyVersionsForCurrentPolicy({ $metadata: deserializeMetadata(parsedOutput), @@ -7957,8 +6984,8 @@ const de_TooManyVPCAssociationAuthorizationsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TooManyVPCAssociationAuthorizations({ $metadata: deserializeMetadata(parsedOutput), @@ -7976,8 +7003,8 @@ const de_TrafficPolicyAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TrafficPolicyAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -7995,8 +7022,8 @@ const de_TrafficPolicyInstanceAlreadyExistsRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TrafficPolicyInstanceAlreadyExists({ $metadata: deserializeMetadata(parsedOutput), @@ -8011,8 +7038,8 @@ const de_TrafficPolicyInstanceAlreadyExistsRes = async ( const de_TrafficPolicyInUseRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new TrafficPolicyInUse({ $metadata: deserializeMetadata(parsedOutput), @@ -8030,8 +7057,8 @@ const de_VPCAssociationAuthorizationNotFoundRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new VPCAssociationAuthorizationNotFound({ $metadata: deserializeMetadata(parsedOutput), @@ -8049,8 +7076,8 @@ const de_VPCAssociationNotFoundRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["message"] !== undefined) { - contents.message = __expectString(data["message"]); + if (data[_mes] != null) { + contents[_mes] = __expectString(data[_mes]); } const exception = new VPCAssociationNotFound({ $metadata: deserializeMetadata(parsedOutput), @@ -8063,74 +7090,55 @@ const de_VPCAssociationNotFoundRes = async ( * serializeAws_restXmlAlarmIdentifier */ const se_AlarmIdentifier = (input: AlarmIdentifier, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AlarmIdentifier"); - if (input.Region != null) { - const node = __XmlNode.of("CloudWatchRegion", input.Region).withName("Region"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AI); + if (input[_Re] != null) { + bn.c(__XmlNode.of(_CWR, input[_Re]).n(_Re)); } - if (input.Name != null) { - const node = __XmlNode.of("AlarmName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_AN, input[_N]).n(_N)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAliasTarget */ const se_AliasTarget = (input: AliasTarget, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AliasTarget"); - if (input.HostedZoneId != null) { - const node = __XmlNode.of("ResourceId", input.HostedZoneId).withName("HostedZoneId"); - bodyNode.addChildNode(node); - } - if (input.DNSName != null) { - const node = __XmlNode.of("DNSName", input.DNSName).withName("DNSName"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ATl); + if (input[_HZI] != null) { + bn.c(__XmlNode.of(_RI, input[_HZI]).n(_HZI)); } - if (input.EvaluateTargetHealth != null) { - const node = __XmlNode - .of("AliasHealthEnabled", String(input.EvaluateTargetHealth)) - .withName("EvaluateTargetHealth"); - bodyNode.addChildNode(node); + bn.cc(input, _DNSN); + if (input[_ETH] != null) { + bn.c(__XmlNode.of(_AHE, String(input[_ETH])).n(_ETH)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlChange */ const se_Change = (input: Change, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Change"); - if (input.Action != null) { - const node = __XmlNode.of("ChangeAction", input.Action).withName("Action"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Cha); + if (input[_A] != null) { + bn.c(__XmlNode.of(_CA, input[_A]).n(_A)); } - if (input.ResourceRecordSet != null) { - const node = se_ResourceRecordSet(input.ResourceRecordSet, context).withName("ResourceRecordSet"); - bodyNode.addChildNode(node); + if (input[_RRSe] != null) { + bn.c(se_ResourceRecordSet(input[_RRSe], context).n(_RRSe)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlChangeBatch */ const se_ChangeBatch = (input: ChangeBatch, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ChangeBatch"); - if (input.Comment != null) { - const node = __XmlNode.of("ResourceDescription", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); - } - if (input.Changes != null) { - const nodes = se_Changes(input.Changes, context); - const containerNode = new __XmlNode("Changes"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CB); + if (input[_C] != null) { + bn.c(__XmlNode.of(_RD, input[_C]).n(_C)); } - return bodyNode; + bn.lc(input, "Changes", "Changes", () => se_Changes(input[_Ch]!, context)); + return bn; }; /** @@ -8140,8 +7148,8 @@ const se_Changes = (input: Change[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Change(entry, context); - return node.withName("Change"); + const n = se_Change(entry, context); + return n.n(_Cha); }); }; @@ -8152,8 +7160,8 @@ const se_ChildHealthCheckList = (input: string[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("HealthCheckId", entry); - return node.withName("ChildHealthCheck"); + const n = __XmlNode.of(_HCI, entry); + return n.n(_CHCh); }); }; @@ -8161,24 +7169,15 @@ const se_ChildHealthCheckList = (input: string[], context: __SerdeContext): any * serializeAws_restXmlCidrCollectionChange */ const se_CidrCollectionChange = (input: CidrCollectionChange, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CidrCollectionChange"); - if (input.LocationName != null) { - const node = __XmlNode.of("CidrLocationNameDefaultNotAllowed", input.LocationName).withName("LocationName"); - bodyNode.addChildNode(node); - } - if (input.Action != null) { - const node = __XmlNode.of("CidrCollectionChangeAction", input.Action).withName("Action"); - bodyNode.addChildNode(node); - } - if (input.CidrList != null) { - const nodes = se_CidrList(input.CidrList, context); - const containerNode = new __XmlNode("CidrList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CCC); + if (input[_LN] != null) { + bn.c(__XmlNode.of(_CLNDNA, input[_LN]).n(_LN)); } - return bodyNode; + if (input[_A] != null) { + bn.c(__XmlNode.of(_CCCA, input[_A]).n(_A)); + } + bn.lc(input, "CidrList", "CidrList", () => se_CidrList(input[_CLi]!, context)); + return bn; }; /** @@ -8188,8 +7187,8 @@ const se_CidrCollectionChanges = (input: CidrCollectionChange[], context: __Serd return input .filter((e: any) => e != null) .map((entry) => { - const node = se_CidrCollectionChange(entry, context); - return node.withName("member"); + const n = se_CidrCollectionChange(entry, context); + return n.n(_me); }); }; @@ -8200,8 +7199,8 @@ const se_CidrList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Cidr", entry); - return node.withName("Cidr"); + const n = __XmlNode.of(_Ci, entry); + return n.n(_Ci); }); }; @@ -8209,128 +7208,77 @@ const se_CidrList = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlCidrRoutingConfig */ const se_CidrRoutingConfig = (input: CidrRoutingConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CidrRoutingConfig"); - if (input.CollectionId != null) { - const node = __XmlNode.of("UUID", input.CollectionId).withName("CollectionId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CRC); + if (input[_CIo] != null) { + bn.c(__XmlNode.of(_UUID, input[_CIo]).n(_CIo)); } - if (input.LocationName != null) { - const node = __XmlNode.of("CidrLocationNameDefaultAllowed", input.LocationName).withName("LocationName"); - bodyNode.addChildNode(node); + if (input[_LN] != null) { + bn.c(__XmlNode.of(_CLNDA, input[_LN]).n(_LN)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlGeoLocation */ const se_GeoLocation = (input: GeoLocation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("GeoLocation"); - if (input.ContinentCode != null) { - const node = __XmlNode.of("GeoLocationContinentCode", input.ContinentCode).withName("ContinentCode"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_GL); + if (input[_CC] != null) { + bn.c(__XmlNode.of(_GLCC, input[_CC]).n(_CC)); } - if (input.CountryCode != null) { - const node = __XmlNode.of("GeoLocationCountryCode", input.CountryCode).withName("CountryCode"); - bodyNode.addChildNode(node); + if (input[_CCo] != null) { + bn.c(__XmlNode.of(_GLCCe, input[_CCo]).n(_CCo)); } - if (input.SubdivisionCode != null) { - const node = __XmlNode.of("GeoLocationSubdivisionCode", input.SubdivisionCode).withName("SubdivisionCode"); - bodyNode.addChildNode(node); + if (input[_SC] != null) { + bn.c(__XmlNode.of(_GLSC, input[_SC]).n(_SC)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlHealthCheckConfig */ const se_HealthCheckConfig = (input: HealthCheckConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("HealthCheckConfig"); - if (input.IPAddress != null) { - const node = __XmlNode.of("IPAddress", input.IPAddress).withName("IPAddress"); - bodyNode.addChildNode(node); - } - if (input.Port != null) { - const node = __XmlNode.of("Port", String(input.Port)).withName("Port"); - bodyNode.addChildNode(node); - } - if (input.Type != null) { - const node = __XmlNode.of("HealthCheckType", input.Type).withName("Type"); - bodyNode.addChildNode(node); - } - if (input.ResourcePath != null) { - const node = __XmlNode.of("ResourcePath", input.ResourcePath).withName("ResourcePath"); - bodyNode.addChildNode(node); - } - if (input.FullyQualifiedDomainName != null) { - const node = __XmlNode - .of("FullyQualifiedDomainName", input.FullyQualifiedDomainName) - .withName("FullyQualifiedDomainName"); - bodyNode.addChildNode(node); - } - if (input.SearchString != null) { - const node = __XmlNode.of("SearchString", input.SearchString).withName("SearchString"); - bodyNode.addChildNode(node); - } - if (input.RequestInterval != null) { - const node = __XmlNode.of("RequestInterval", String(input.RequestInterval)).withName("RequestInterval"); - bodyNode.addChildNode(node); - } - if (input.FailureThreshold != null) { - const node = __XmlNode.of("FailureThreshold", String(input.FailureThreshold)).withName("FailureThreshold"); - bodyNode.addChildNode(node); - } - if (input.MeasureLatency != null) { - const node = __XmlNode.of("MeasureLatency", String(input.MeasureLatency)).withName("MeasureLatency"); - bodyNode.addChildNode(node); - } - if (input.Inverted != null) { - const node = __XmlNode.of("Inverted", String(input.Inverted)).withName("Inverted"); - bodyNode.addChildNode(node); - } - if (input.Disabled != null) { - const node = __XmlNode.of("Disabled", String(input.Disabled)).withName("Disabled"); - bodyNode.addChildNode(node); - } - if (input.HealthThreshold != null) { - const node = __XmlNode.of("HealthThreshold", String(input.HealthThreshold)).withName("HealthThreshold"); - bodyNode.addChildNode(node); - } - if (input.ChildHealthChecks != null) { - const nodes = se_ChildHealthCheckList(input.ChildHealthChecks, context); - const containerNode = new __XmlNode("ChildHealthChecks"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_HCC); + bn.cc(input, _IPA); + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, String(input[_P])).n(_P)); } - if (input.EnableSNI != null) { - const node = __XmlNode.of("EnableSNI", String(input.EnableSNI)).withName("EnableSNI"); - bodyNode.addChildNode(node); + if (input[_T] != null) { + bn.c(__XmlNode.of(_HCT, input[_T]).n(_T)); } - if (input.Regions != null) { - const nodes = se_HealthCheckRegionList(input.Regions, context); - const containerNode = new __XmlNode("Regions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + bn.cc(input, _RP); + bn.cc(input, _FQDN); + bn.cc(input, _SS); + if (input[_RIeq] != null) { + bn.c(__XmlNode.of(_RIeq, String(input[_RIeq])).n(_RIeq)); + } + if (input[_FT] != null) { + bn.c(__XmlNode.of(_FT, String(input[_FT])).n(_FT)); + } + if (input[_ML] != null) { + bn.c(__XmlNode.of(_ML, String(input[_ML])).n(_ML)); } - if (input.AlarmIdentifier != null) { - const node = se_AlarmIdentifier(input.AlarmIdentifier, context).withName("AlarmIdentifier"); - bodyNode.addChildNode(node); + if (input[_I] != null) { + bn.c(__XmlNode.of(_I, String(input[_I])).n(_I)); } - if (input.InsufficientDataHealthStatus != null) { - const node = __XmlNode - .of("InsufficientDataHealthStatus", input.InsufficientDataHealthStatus) - .withName("InsufficientDataHealthStatus"); - bodyNode.addChildNode(node); + if (input[_Di] != null) { + bn.c(__XmlNode.of(_Di, String(input[_Di])).n(_Di)); } - if (input.RoutingControlArn != null) { - const node = __XmlNode.of("RoutingControlArn", input.RoutingControlArn).withName("RoutingControlArn"); - bodyNode.addChildNode(node); + if (input[_HT] != null) { + bn.c(__XmlNode.of(_HT, String(input[_HT])).n(_HT)); } - return bodyNode; + bn.lc(input, "ChildHealthChecks", "ChildHealthChecks", () => se_ChildHealthCheckList(input[_CHC]!, context)); + if (input[_ESNI] != null) { + bn.c(__XmlNode.of(_ESNI, String(input[_ESNI])).n(_ESNI)); + } + bn.lc(input, "Regions", "Regions", () => se_HealthCheckRegionList(input[_R]!, context)); + if (input[_AI] != null) { + bn.c(se_AlarmIdentifier(input[_AI], context).n(_AI)); + } + bn.cc(input, _IDHS); + bn.cc(input, _RCA); + return bn; }; /** @@ -8340,8 +7288,8 @@ const se_HealthCheckRegionList = (input: HealthCheckRegion[], context: __SerdeCo return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("HealthCheckRegion", entry); - return node.withName("Region"); + const n = __XmlNode.of(_HCR, entry); + return n.n(_Re); }); }; @@ -8349,16 +7297,14 @@ const se_HealthCheckRegionList = (input: HealthCheckRegion[], context: __SerdeCo * serializeAws_restXmlHostedZoneConfig */ const se_HostedZoneConfig = (input: HostedZoneConfig, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("HostedZoneConfig"); - if (input.Comment != null) { - const node = __XmlNode.of("ResourceDescription", input.Comment).withName("Comment"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_HZC); + if (input[_C] != null) { + bn.c(__XmlNode.of(_RD, input[_C]).n(_C)); } - if (input.PrivateZone != null) { - const node = __XmlNode.of("IsPrivateZone", String(input.PrivateZone)).withName("PrivateZone"); - bodyNode.addChildNode(node); + if (input[_PZ] != null) { + bn.c(__XmlNode.of(_IPZ, String(input[_PZ])).n(_PZ)); } - return bodyNode; + return bn; }; /** @@ -8368,8 +7314,8 @@ const se_ResettableElementNameList = (input: ResettableElementName[], context: _ return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("ResettableElementName", entry); - return node.withName("ResettableElementName"); + const n = __XmlNode.of(_REN, entry); + return n.n(_REN); }); }; @@ -8377,12 +7323,11 @@ const se_ResettableElementNameList = (input: ResettableElementName[], context: _ * serializeAws_restXmlResourceRecord */ const se_ResourceRecord = (input: ResourceRecord, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ResourceRecord"); - if (input.Value != null) { - const node = __XmlNode.of("RData", input.Value).withName("Value"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RR); + if (input[_V] != null) { + bn.c(__XmlNode.of(_RDa, input[_V]).n(_V)); } - return bodyNode; + return bn; }; /** @@ -8392,8 +7337,8 @@ const se_ResourceRecords = (input: ResourceRecord[], context: __SerdeContext): a return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ResourceRecord(entry, context); - return node.withName("ResourceRecord"); + const n = se_ResourceRecord(entry, context); + return n.n(_RR); }); }; @@ -8401,88 +7346,58 @@ const se_ResourceRecords = (input: ResourceRecord[], context: __SerdeContext): a * serializeAws_restXmlResourceRecordSet */ const se_ResourceRecordSet = (input: ResourceRecordSet, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ResourceRecordSet"); - if (input.Name != null) { - const node = __XmlNode.of("DNSName", input.Name).withName("Name"); - bodyNode.addChildNode(node); - } - if (input.Type != null) { - const node = __XmlNode.of("RRType", input.Type).withName("Type"); - bodyNode.addChildNode(node); - } - if (input.SetIdentifier != null) { - const node = __XmlNode.of("ResourceRecordSetIdentifier", input.SetIdentifier).withName("SetIdentifier"); - bodyNode.addChildNode(node); - } - if (input.Weight != null) { - const node = __XmlNode.of("ResourceRecordSetWeight", String(input.Weight)).withName("Weight"); - bodyNode.addChildNode(node); - } - if (input.Region != null) { - const node = __XmlNode.of("ResourceRecordSetRegion", input.Region).withName("Region"); - bodyNode.addChildNode(node); - } - if (input.GeoLocation != null) { - const node = se_GeoLocation(input.GeoLocation, context).withName("GeoLocation"); - bodyNode.addChildNode(node); - } - if (input.Failover != null) { - const node = __XmlNode.of("ResourceRecordSetFailover", input.Failover).withName("Failover"); - bodyNode.addChildNode(node); - } - if (input.MultiValueAnswer != null) { - const node = __XmlNode - .of("ResourceRecordSetMultiValueAnswer", String(input.MultiValueAnswer)) - .withName("MultiValueAnswer"); - bodyNode.addChildNode(node); - } - if (input.TTL != null) { - const node = __XmlNode.of("TTL", String(input.TTL)).withName("TTL"); - bodyNode.addChildNode(node); - } - if (input.ResourceRecords != null) { - const nodes = se_ResourceRecords(input.ResourceRecords, context); - const containerNode = new __XmlNode("ResourceRecords"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_RRSe); + if (input[_N] != null) { + bn.c(__XmlNode.of(_DNSN, input[_N]).n(_N)); + } + if (input[_T] != null) { + bn.c(__XmlNode.of(_RRT, input[_T]).n(_T)); + } + if (input[_SI] != null) { + bn.c(__XmlNode.of(_RRSI, input[_SI]).n(_SI)); + } + if (input[_W] != null) { + bn.c(__XmlNode.of(_RRSW, String(input[_W])).n(_W)); + } + if (input[_Re] != null) { + bn.c(__XmlNode.of(_RRSR, input[_Re]).n(_Re)); } - if (input.AliasTarget != null) { - const node = se_AliasTarget(input.AliasTarget, context).withName("AliasTarget"); - bodyNode.addChildNode(node); + if (input[_GL] != null) { + bn.c(se_GeoLocation(input[_GL], context).n(_GL)); } - if (input.HealthCheckId != null) { - const node = __XmlNode.of("HealthCheckId", input.HealthCheckId).withName("HealthCheckId"); - bodyNode.addChildNode(node); + if (input[_F] != null) { + bn.c(__XmlNode.of(_RRSF, input[_F]).n(_F)); } - if (input.TrafficPolicyInstanceId != null) { - const node = __XmlNode - .of("TrafficPolicyInstanceId", input.TrafficPolicyInstanceId) - .withName("TrafficPolicyInstanceId"); - bodyNode.addChildNode(node); + if (input[_MVA] != null) { + bn.c(__XmlNode.of(_RRSMVA, String(input[_MVA])).n(_MVA)); } - if (input.CidrRoutingConfig != null) { - const node = se_CidrRoutingConfig(input.CidrRoutingConfig, context).withName("CidrRoutingConfig"); - bodyNode.addChildNode(node); + if (input[_TTL] != null) { + bn.c(__XmlNode.of(_TTL, String(input[_TTL])).n(_TTL)); } - return bodyNode; + bn.lc(input, "ResourceRecords", "ResourceRecords", () => se_ResourceRecords(input[_RRe]!, context)); + if (input[_ATl] != null) { + bn.c(se_AliasTarget(input[_ATl], context).n(_ATl)); + } + bn.cc(input, _HCI); + bn.cc(input, _TPII); + if (input[_CRC] != null) { + bn.c(se_CidrRoutingConfig(input[_CRC], context).n(_CRC)); + } + return bn; }; /** * serializeAws_restXmlTag */ const se_Tag = (input: Tag, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tag"); - if (input.Key != null) { - const node = __XmlNode.of("TagKey", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Ta); + if (input[_K] != null) { + bn.c(__XmlNode.of(_TK, input[_K]).n(_K)); } - if (input.Value != null) { - const node = __XmlNode.of("TagValue", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_V] != null) { + bn.c(__XmlNode.of(_TV, input[_V]).n(_V)); } - return bodyNode; + return bn; }; /** @@ -8492,8 +7407,8 @@ const se_TagKeyList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("TagKey", entry); - return node.withName("Key"); + const n = __XmlNode.of(_TK, entry); + return n.n(_K); }); }; @@ -8504,8 +7419,8 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Tag(entry, context); - return node.withName("Tag"); + const n = se_Tag(entry, context); + return n.n(_Ta); }); }; @@ -8516,8 +7431,8 @@ const se_TagResourceIdList = (input: string[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("TagResourceId", entry); - return node.withName("ResourceId"); + const n = __XmlNode.of(_TRI, entry); + return n.n(_RI); }); }; @@ -8525,16 +7440,10 @@ const se_TagResourceIdList = (input: string[], context: __SerdeContext): any => * serializeAws_restXmlVPC */ const se_VPC = (input: VPC, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("VPC"); - if (input.VPCRegion != null) { - const node = __XmlNode.of("VPCRegion", input.VPCRegion).withName("VPCRegion"); - bodyNode.addChildNode(node); - } - if (input.VPCId != null) { - const node = __XmlNode.of("VPCId", input.VPCId).withName("VPCId"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_VPC); + bn.cc(input, _VPCR); + bn.cc(input, _VPCI); + return bn; }; /** @@ -8542,11 +7451,11 @@ const se_VPC = (input: VPC, context: __SerdeContext): any => { */ const de_AccountLimit = (output: any, context: __SerdeContext): AccountLimit => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["Value"] !== undefined) { - contents.Value = __strictParseLong(output["Value"]) as number; + if (output[_V] != null) { + contents[_V] = __strictParseLong(output[_V]) as number; } return contents; }; @@ -8556,11 +7465,11 @@ const de_AccountLimit = (output: any, context: __SerdeContext): AccountLimit => */ const de_AlarmIdentifier = (output: any, context: __SerdeContext): AlarmIdentifier => { const contents: any = {}; - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -8570,14 +7479,14 @@ const de_AlarmIdentifier = (output: any, context: __SerdeContext): AlarmIdentifi */ const de_AliasTarget = (output: any, context: __SerdeContext): AliasTarget => { const contents: any = {}; - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } - if (output["DNSName"] !== undefined) { - contents.DNSName = __expectString(output["DNSName"]); + if (output[_DNSN] != null) { + contents[_DNSN] = __expectString(output[_DNSN]); } - if (output["EvaluateTargetHealth"] !== undefined) { - contents.EvaluateTargetHealth = __parseBoolean(output["EvaluateTargetHealth"]); + if (output[_ETH] != null) { + contents[_ETH] = __parseBoolean(output[_ETH]); } return contents; }; @@ -8587,17 +7496,17 @@ const de_AliasTarget = (output: any, context: __SerdeContext): AliasTarget => { */ const de_ChangeInfo = (output: any, context: __SerdeContext): ChangeInfo => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["SubmittedAt"] !== undefined) { - contents.SubmittedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SubmittedAt"])); + if (output[_SA] != null) { + contents[_SA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SA])); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -8640,11 +7549,11 @@ const de_CidrBlockSummaries = (output: any, context: __SerdeContext): CidrBlockS */ const de_CidrBlockSummary = (output: any, context: __SerdeContext): CidrBlockSummary => { const contents: any = {}; - if (output["CidrBlock"] !== undefined) { - contents.CidrBlock = __expectString(output["CidrBlock"]); + if (output[_CBid] != null) { + contents[_CBid] = __expectString(output[_CBid]); } - if (output["LocationName"] !== undefined) { - contents.LocationName = __expectString(output["LocationName"]); + if (output[_LN] != null) { + contents[_LN] = __expectString(output[_LN]); } return contents; }; @@ -8654,17 +7563,17 @@ const de_CidrBlockSummary = (output: any, context: __SerdeContext): CidrBlockSum */ const de_CidrCollection = (output: any, context: __SerdeContext): CidrCollection => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Version"] !== undefined) { - contents.Version = __strictParseLong(output["Version"]) as number; + if (output[_Ve] != null) { + contents[_Ve] = __strictParseLong(output[_Ve]) as number; } return contents; }; @@ -8674,11 +7583,11 @@ const de_CidrCollection = (output: any, context: __SerdeContext): CidrCollection */ const de_CidrRoutingConfig = (output: any, context: __SerdeContext): CidrRoutingConfig => { const contents: any = {}; - if (output["CollectionId"] !== undefined) { - contents.CollectionId = __expectString(output["CollectionId"]); + if (output[_CIo] != null) { + contents[_CIo] = __expectString(output[_CIo]); } - if (output["LocationName"] !== undefined) { - contents.LocationName = __expectString(output["LocationName"]); + if (output[_LN] != null) { + contents[_LN] = __expectString(output[_LN]); } return contents; }; @@ -8688,31 +7597,31 @@ const de_CidrRoutingConfig = (output: any, context: __SerdeContext): CidrRouting */ const de_CloudWatchAlarmConfiguration = (output: any, context: __SerdeContext): CloudWatchAlarmConfiguration => { const contents: any = {}; - if (output["EvaluationPeriods"] !== undefined) { - contents.EvaluationPeriods = __strictParseInt32(output["EvaluationPeriods"]) as number; + if (output[_EP] != null) { + contents[_EP] = __strictParseInt32(output[_EP]) as number; } - if (output["Threshold"] !== undefined) { - contents.Threshold = __strictParseFloat(output["Threshold"]) as number; + if (output[_Th] != null) { + contents[_Th] = __strictParseFloat(output[_Th]) as number; } - if (output["ComparisonOperator"] !== undefined) { - contents.ComparisonOperator = __expectString(output["ComparisonOperator"]); + if (output[_CO] != null) { + contents[_CO] = __expectString(output[_CO]); } - if (output["Period"] !== undefined) { - contents.Period = __strictParseInt32(output["Period"]) as number; + if (output[_Pe] != null) { + contents[_Pe] = __strictParseInt32(output[_Pe]) as number; } - if (output["MetricName"] !== undefined) { - contents.MetricName = __expectString(output["MetricName"]); + if (output[_MN] != null) { + contents[_MN] = __expectString(output[_MN]); } - if (output["Namespace"] !== undefined) { - contents.Namespace = __expectString(output["Namespace"]); + if (output[_Nam] != null) { + contents[_Nam] = __expectString(output[_Nam]); } - if (output["Statistic"] !== undefined) { - contents.Statistic = __expectString(output["Statistic"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } if (output.Dimensions === "") { - contents.Dimensions = []; - } else if (output["Dimensions"] !== undefined && output["Dimensions"]["Dimension"] !== undefined) { - contents.Dimensions = de_DimensionList(__getArrayIfSingleItem(output["Dimensions"]["Dimension"]), context); + contents[_Dim] = []; + } else if (output[_Dim] != null && output[_Dim][_Dime] != null) { + contents[_Dim] = de_DimensionList(__getArrayIfSingleItem(output[_Dim][_Dime]), context); } return contents; }; @@ -8733,17 +7642,17 @@ const de_CollectionSummaries = (output: any, context: __SerdeContext): Collectio */ const de_CollectionSummary = (output: any, context: __SerdeContext): CollectionSummary => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Version"] !== undefined) { - contents.Version = __strictParseLong(output["Version"]) as number; + if (output[_Ve] != null) { + contents[_Ve] = __strictParseLong(output[_Ve]) as number; } return contents; }; @@ -8753,19 +7662,16 @@ const de_CollectionSummary = (output: any, context: __SerdeContext): CollectionS */ const de_DelegationSet = (output: any, context: __SerdeContext): DelegationSet => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } if (output.NameServers === "") { - contents.NameServers = []; - } else if (output["NameServers"] !== undefined && output["NameServers"]["NameServer"] !== undefined) { - contents.NameServers = de_DelegationSetNameServers( - __getArrayIfSingleItem(output["NameServers"]["NameServer"]), - context - ); + contents[_NS] = []; + } else if (output[_NS] != null && output[_NS][_NSa] != null) { + contents[_NS] = de_DelegationSetNameServers(__getArrayIfSingleItem(output[_NS][_NSa]), context); } return contents; }; @@ -8797,11 +7703,11 @@ const de_DelegationSets = (output: any, context: __SerdeContext): DelegationSet[ */ const de_Dimension = (output: any, context: __SerdeContext): Dimension => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -8822,11 +7728,11 @@ const de_DimensionList = (output: any, context: __SerdeContext): Dimension[] => */ const de_DNSSECStatus = (output: any, context: __SerdeContext): DNSSECStatus => { const contents: any = {}; - if (output["ServeSignature"] !== undefined) { - contents.ServeSignature = __expectString(output["ServeSignature"]); + if (output[_SSe] != null) { + contents[_SSe] = __expectString(output[_SSe]); } - if (output["StatusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["StatusMessage"]); + if (output[_SM] != null) { + contents[_SM] = __expectString(output[_SM]); } return contents; }; @@ -8847,14 +7753,14 @@ const de_ErrorMessages = (output: any, context: __SerdeContext): string[] => { */ const de_GeoLocation = (output: any, context: __SerdeContext): GeoLocation => { const contents: any = {}; - if (output["ContinentCode"] !== undefined) { - contents.ContinentCode = __expectString(output["ContinentCode"]); + if (output[_CC] != null) { + contents[_CC] = __expectString(output[_CC]); } - if (output["CountryCode"] !== undefined) { - contents.CountryCode = __expectString(output["CountryCode"]); + if (output[_CCo] != null) { + contents[_CCo] = __expectString(output[_CCo]); } - if (output["SubdivisionCode"] !== undefined) { - contents.SubdivisionCode = __expectString(output["SubdivisionCode"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } return contents; }; @@ -8864,23 +7770,23 @@ const de_GeoLocation = (output: any, context: __SerdeContext): GeoLocation => { */ const de_GeoLocationDetails = (output: any, context: __SerdeContext): GeoLocationDetails => { const contents: any = {}; - if (output["ContinentCode"] !== undefined) { - contents.ContinentCode = __expectString(output["ContinentCode"]); + if (output[_CC] != null) { + contents[_CC] = __expectString(output[_CC]); } - if (output["ContinentName"] !== undefined) { - contents.ContinentName = __expectString(output["ContinentName"]); + if (output[_CNon] != null) { + contents[_CNon] = __expectString(output[_CNon]); } - if (output["CountryCode"] !== undefined) { - contents.CountryCode = __expectString(output["CountryCode"]); + if (output[_CCo] != null) { + contents[_CCo] = __expectString(output[_CCo]); } - if (output["CountryName"] !== undefined) { - contents.CountryName = __expectString(output["CountryName"]); + if (output[_CNou] != null) { + contents[_CNou] = __expectString(output[_CNou]); } - if (output["SubdivisionCode"] !== undefined) { - contents.SubdivisionCode = __expectString(output["SubdivisionCode"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["SubdivisionName"] !== undefined) { - contents.SubdivisionName = __expectString(output["SubdivisionName"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } return contents; }; @@ -8901,26 +7807,23 @@ const de_GeoLocationDetailsList = (output: any, context: __SerdeContext): GeoLoc */ const de_HealthCheck = (output: any, context: __SerdeContext): HealthCheck => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["LinkedService"] !== undefined) { - contents.LinkedService = de_LinkedService(output["LinkedService"], context); + if (output[_LS] != null) { + contents[_LS] = de_LinkedService(output[_LS], context); } - if (output["HealthCheckConfig"] !== undefined) { - contents.HealthCheckConfig = de_HealthCheckConfig(output["HealthCheckConfig"], context); + if (output[_HCC] != null) { + contents[_HCC] = de_HealthCheckConfig(output[_HCC], context); } - if (output["HealthCheckVersion"] !== undefined) { - contents.HealthCheckVersion = __strictParseLong(output["HealthCheckVersion"]) as number; + if (output[_HCV] != null) { + contents[_HCV] = __strictParseLong(output[_HCV]) as number; } - if (output["CloudWatchAlarmConfiguration"] !== undefined) { - contents.CloudWatchAlarmConfiguration = de_CloudWatchAlarmConfiguration( - output["CloudWatchAlarmConfiguration"], - context - ); + if (output[_CWAC] != null) { + contents[_CWAC] = de_CloudWatchAlarmConfiguration(output[_CWAC], context); } return contents; }; @@ -8930,69 +7833,63 @@ const de_HealthCheck = (output: any, context: __SerdeContext): HealthCheck => { */ const de_HealthCheckConfig = (output: any, context: __SerdeContext): HealthCheckConfig => { const contents: any = {}; - if (output["IPAddress"] !== undefined) { - contents.IPAddress = __expectString(output["IPAddress"]); + if (output[_IPA] != null) { + contents[_IPA] = __expectString(output[_IPA]); } - if (output["Port"] !== undefined) { - contents.Port = __strictParseInt32(output["Port"]) as number; + if (output[_P] != null) { + contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["ResourcePath"] !== undefined) { - contents.ResourcePath = __expectString(output["ResourcePath"]); + if (output[_RP] != null) { + contents[_RP] = __expectString(output[_RP]); } - if (output["FullyQualifiedDomainName"] !== undefined) { - contents.FullyQualifiedDomainName = __expectString(output["FullyQualifiedDomainName"]); + if (output[_FQDN] != null) { + contents[_FQDN] = __expectString(output[_FQDN]); } - if (output["SearchString"] !== undefined) { - contents.SearchString = __expectString(output["SearchString"]); + if (output[_SS] != null) { + contents[_SS] = __expectString(output[_SS]); } - if (output["RequestInterval"] !== undefined) { - contents.RequestInterval = __strictParseInt32(output["RequestInterval"]) as number; + if (output[_RIeq] != null) { + contents[_RIeq] = __strictParseInt32(output[_RIeq]) as number; } - if (output["FailureThreshold"] !== undefined) { - contents.FailureThreshold = __strictParseInt32(output["FailureThreshold"]) as number; + if (output[_FT] != null) { + contents[_FT] = __strictParseInt32(output[_FT]) as number; } - if (output["MeasureLatency"] !== undefined) { - contents.MeasureLatency = __parseBoolean(output["MeasureLatency"]); + if (output[_ML] != null) { + contents[_ML] = __parseBoolean(output[_ML]); } - if (output["Inverted"] !== undefined) { - contents.Inverted = __parseBoolean(output["Inverted"]); + if (output[_I] != null) { + contents[_I] = __parseBoolean(output[_I]); } - if (output["Disabled"] !== undefined) { - contents.Disabled = __parseBoolean(output["Disabled"]); + if (output[_Di] != null) { + contents[_Di] = __parseBoolean(output[_Di]); } - if (output["HealthThreshold"] !== undefined) { - contents.HealthThreshold = __strictParseInt32(output["HealthThreshold"]) as number; + if (output[_HT] != null) { + contents[_HT] = __strictParseInt32(output[_HT]) as number; } if (output.ChildHealthChecks === "") { - contents.ChildHealthChecks = []; - } else if ( - output["ChildHealthChecks"] !== undefined && - output["ChildHealthChecks"]["ChildHealthCheck"] !== undefined - ) { - contents.ChildHealthChecks = de_ChildHealthCheckList( - __getArrayIfSingleItem(output["ChildHealthChecks"]["ChildHealthCheck"]), - context - ); - } - if (output["EnableSNI"] !== undefined) { - contents.EnableSNI = __parseBoolean(output["EnableSNI"]); + contents[_CHC] = []; + } else if (output[_CHC] != null && output[_CHC][_CHCh] != null) { + contents[_CHC] = de_ChildHealthCheckList(__getArrayIfSingleItem(output[_CHC][_CHCh]), context); + } + if (output[_ESNI] != null) { + contents[_ESNI] = __parseBoolean(output[_ESNI]); } if (output.Regions === "") { - contents.Regions = []; - } else if (output["Regions"] !== undefined && output["Regions"]["Region"] !== undefined) { - contents.Regions = de_HealthCheckRegionList(__getArrayIfSingleItem(output["Regions"]["Region"]), context); + contents[_R] = []; + } else if (output[_R] != null && output[_R][_Re] != null) { + contents[_R] = de_HealthCheckRegionList(__getArrayIfSingleItem(output[_R][_Re]), context); } - if (output["AlarmIdentifier"] !== undefined) { - contents.AlarmIdentifier = de_AlarmIdentifier(output["AlarmIdentifier"], context); + if (output[_AI] != null) { + contents[_AI] = de_AlarmIdentifier(output[_AI], context); } - if (output["InsufficientDataHealthStatus"] !== undefined) { - contents.InsufficientDataHealthStatus = __expectString(output["InsufficientDataHealthStatus"]); + if (output[_IDHS] != null) { + contents[_IDHS] = __expectString(output[_IDHS]); } - if (output["RoutingControlArn"] !== undefined) { - contents.RoutingControlArn = __expectString(output["RoutingControlArn"]); + if (output[_RCA] != null) { + contents[_RCA] = __expectString(output[_RCA]); } return contents; }; @@ -9002,14 +7899,14 @@ const de_HealthCheckConfig = (output: any, context: __SerdeContext): HealthCheck */ const de_HealthCheckObservation = (output: any, context: __SerdeContext): HealthCheckObservation => { const contents: any = {}; - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } - if (output["IPAddress"] !== undefined) { - contents.IPAddress = __expectString(output["IPAddress"]); + if (output[_IPA] != null) { + contents[_IPA] = __expectString(output[_IPA]); } - if (output["StatusReport"] !== undefined) { - contents.StatusReport = de_StatusReport(output["StatusReport"], context); + if (output[_SR] != null) { + contents[_SR] = de_StatusReport(output[_SR], context); } return contents; }; @@ -9052,23 +7949,23 @@ const de_HealthChecks = (output: any, context: __SerdeContext): HealthCheck[] => */ const de_HostedZone = (output: any, context: __SerdeContext): HostedZone => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["CallerReference"] !== undefined) { - contents.CallerReference = __expectString(output["CallerReference"]); + if (output[_CR] != null) { + contents[_CR] = __expectString(output[_CR]); } - if (output["Config"] !== undefined) { - contents.Config = de_HostedZoneConfig(output["Config"], context); + if (output[_Con] != null) { + contents[_Con] = de_HostedZoneConfig(output[_Con], context); } - if (output["ResourceRecordSetCount"] !== undefined) { - contents.ResourceRecordSetCount = __strictParseLong(output["ResourceRecordSetCount"]) as number; + if (output[_RRSC] != null) { + contents[_RRSC] = __strictParseLong(output[_RRSC]) as number; } - if (output["LinkedService"] !== undefined) { - contents.LinkedService = de_LinkedService(output["LinkedService"], context); + if (output[_LS] != null) { + contents[_LS] = de_LinkedService(output[_LS], context); } return contents; }; @@ -9078,11 +7975,11 @@ const de_HostedZone = (output: any, context: __SerdeContext): HostedZone => { */ const de_HostedZoneConfig = (output: any, context: __SerdeContext): HostedZoneConfig => { const contents: any = {}; - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["PrivateZone"] !== undefined) { - contents.PrivateZone = __parseBoolean(output["PrivateZone"]); + if (output[_PZ] != null) { + contents[_PZ] = __parseBoolean(output[_PZ]); } return contents; }; @@ -9092,11 +7989,11 @@ const de_HostedZoneConfig = (output: any, context: __SerdeContext): HostedZoneCo */ const de_HostedZoneLimit = (output: any, context: __SerdeContext): HostedZoneLimit => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["Value"] !== undefined) { - contents.Value = __strictParseLong(output["Value"]) as number; + if (output[_V] != null) { + contents[_V] = __strictParseLong(output[_V]) as number; } return contents; }; @@ -9106,11 +8003,11 @@ const de_HostedZoneLimit = (output: any, context: __SerdeContext): HostedZoneLim */ const de_HostedZoneOwner = (output: any, context: __SerdeContext): HostedZoneOwner => { const contents: any = {}; - if (output["OwningAccount"] !== undefined) { - contents.OwningAccount = __expectString(output["OwningAccount"]); + if (output[_OA] != null) { + contents[_OA] = __expectString(output[_OA]); } - if (output["OwningService"] !== undefined) { - contents.OwningService = __expectString(output["OwningService"]); + if (output[_OS] != null) { + contents[_OS] = __expectString(output[_OS]); } return contents; }; @@ -9142,14 +8039,14 @@ const de_HostedZoneSummaries = (output: any, context: __SerdeContext): HostedZon */ const de_HostedZoneSummary = (output: any, context: __SerdeContext): HostedZoneSummary => { const contents: any = {}; - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Owner"] !== undefined) { - contents.Owner = de_HostedZoneOwner(output["Owner"], context); + if (output[_O] != null) { + contents[_O] = de_HostedZoneOwner(output[_O], context); } return contents; }; @@ -9159,53 +8056,53 @@ const de_HostedZoneSummary = (output: any, context: __SerdeContext): HostedZoneS */ const de_KeySigningKey = (output: any, context: __SerdeContext): KeySigningKey => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["KmsArn"] !== undefined) { - contents.KmsArn = __expectString(output["KmsArn"]); + if (output[_KA] != null) { + contents[_KA] = __expectString(output[_KA]); } - if (output["Flag"] !== undefined) { - contents.Flag = __strictParseInt32(output["Flag"]) as number; + if (output[_Fl] != null) { + contents[_Fl] = __strictParseInt32(output[_Fl]) as number; } - if (output["SigningAlgorithmMnemonic"] !== undefined) { - contents.SigningAlgorithmMnemonic = __expectString(output["SigningAlgorithmMnemonic"]); + if (output[_SAM] != null) { + contents[_SAM] = __expectString(output[_SAM]); } - if (output["SigningAlgorithmType"] !== undefined) { - contents.SigningAlgorithmType = __strictParseInt32(output["SigningAlgorithmType"]) as number; + if (output[_SAT] != null) { + contents[_SAT] = __strictParseInt32(output[_SAT]) as number; } - if (output["DigestAlgorithmMnemonic"] !== undefined) { - contents.DigestAlgorithmMnemonic = __expectString(output["DigestAlgorithmMnemonic"]); + if (output[_DAM] != null) { + contents[_DAM] = __expectString(output[_DAM]); } - if (output["DigestAlgorithmType"] !== undefined) { - contents.DigestAlgorithmType = __strictParseInt32(output["DigestAlgorithmType"]) as number; + if (output[_DAT] != null) { + contents[_DAT] = __strictParseInt32(output[_DAT]) as number; } - if (output["KeyTag"] !== undefined) { - contents.KeyTag = __strictParseInt32(output["KeyTag"]) as number; + if (output[_KT] != null) { + contents[_KT] = __strictParseInt32(output[_KT]) as number; } - if (output["DigestValue"] !== undefined) { - contents.DigestValue = __expectString(output["DigestValue"]); + if (output[_DV] != null) { + contents[_DV] = __expectString(output[_DV]); } - if (output["PublicKey"] !== undefined) { - contents.PublicKey = __expectString(output["PublicKey"]); + if (output[_PK] != null) { + contents[_PK] = __expectString(output[_PK]); } - if (output["DSRecord"] !== undefined) { - contents.DSRecord = __expectString(output["DSRecord"]); + if (output[_DSR] != null) { + contents[_DSR] = __expectString(output[_DSR]); } - if (output["DNSKEYRecord"] !== undefined) { - contents.DNSKEYRecord = __expectString(output["DNSKEYRecord"]); + if (output[_DNSKEYR] != null) { + contents[_DNSKEYR] = __expectString(output[_DNSKEYR]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["StatusMessage"] !== undefined) { - contents.StatusMessage = __expectString(output["StatusMessage"]); + if (output[_SM] != null) { + contents[_SM] = __expectString(output[_SM]); } - if (output["CreatedDate"] !== undefined) { - contents.CreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["LastModifiedDate"] !== undefined) { - contents.LastModifiedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModifiedDate"])); + if (output[_LMD] != null) { + contents[_LMD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMD])); } return contents; }; @@ -9226,11 +8123,11 @@ const de_KeySigningKeys = (output: any, context: __SerdeContext): KeySigningKey[ */ const de_LinkedService = (output: any, context: __SerdeContext): LinkedService => { const contents: any = {}; - if (output["ServicePrincipal"] !== undefined) { - contents.ServicePrincipal = __expectString(output["ServicePrincipal"]); + if (output[_SP] != null) { + contents[_SP] = __expectString(output[_SP]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_De] != null) { + contents[_De] = __expectString(output[_De]); } return contents; }; @@ -9251,8 +8148,8 @@ const de_LocationSummaries = (output: any, context: __SerdeContext): LocationSum */ const de_LocationSummary = (output: any, context: __SerdeContext): LocationSummary => { const contents: any = {}; - if (output["LocationName"] !== undefined) { - contents.LocationName = __expectString(output["LocationName"]); + if (output[_LN] != null) { + contents[_LN] = __expectString(output[_LN]); } return contents; }; @@ -9262,14 +8159,14 @@ const de_LocationSummary = (output: any, context: __SerdeContext): LocationSumma */ const de_QueryLoggingConfig = (output: any, context: __SerdeContext): QueryLoggingConfig => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } - if (output["CloudWatchLogsLogGroupArn"] !== undefined) { - contents.CloudWatchLogsLogGroupArn = __expectString(output["CloudWatchLogsLogGroupArn"]); + if (output[_CWLLGA] != null) { + contents[_CWLLGA] = __expectString(output[_CWLLGA]); } return contents; }; @@ -9301,8 +8198,8 @@ const de_RecordData = (output: any, context: __SerdeContext): string[] => { */ const de_ResourceRecord = (output: any, context: __SerdeContext): ResourceRecord => { const contents: any = {}; - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -9323,52 +8220,49 @@ const de_ResourceRecords = (output: any, context: __SerdeContext): ResourceRecor */ const de_ResourceRecordSet = (output: any, context: __SerdeContext): ResourceRecordSet => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["SetIdentifier"] !== undefined) { - contents.SetIdentifier = __expectString(output["SetIdentifier"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } - if (output["Weight"] !== undefined) { - contents.Weight = __strictParseLong(output["Weight"]) as number; + if (output[_W] != null) { + contents[_W] = __strictParseLong(output[_W]) as number; } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } - if (output["GeoLocation"] !== undefined) { - contents.GeoLocation = de_GeoLocation(output["GeoLocation"], context); + if (output[_GL] != null) { + contents[_GL] = de_GeoLocation(output[_GL], context); } - if (output["Failover"] !== undefined) { - contents.Failover = __expectString(output["Failover"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } - if (output["MultiValueAnswer"] !== undefined) { - contents.MultiValueAnswer = __parseBoolean(output["MultiValueAnswer"]); + if (output[_MVA] != null) { + contents[_MVA] = __parseBoolean(output[_MVA]); } - if (output["TTL"] !== undefined) { - contents.TTL = __strictParseLong(output["TTL"]) as number; + if (output[_TTL] != null) { + contents[_TTL] = __strictParseLong(output[_TTL]) as number; } if (output.ResourceRecords === "") { - contents.ResourceRecords = []; - } else if (output["ResourceRecords"] !== undefined && output["ResourceRecords"]["ResourceRecord"] !== undefined) { - contents.ResourceRecords = de_ResourceRecords( - __getArrayIfSingleItem(output["ResourceRecords"]["ResourceRecord"]), - context - ); + contents[_RRe] = []; + } else if (output[_RRe] != null && output[_RRe][_RR] != null) { + contents[_RRe] = de_ResourceRecords(__getArrayIfSingleItem(output[_RRe][_RR]), context); } - if (output["AliasTarget"] !== undefined) { - contents.AliasTarget = de_AliasTarget(output["AliasTarget"], context); + if (output[_ATl] != null) { + contents[_ATl] = de_AliasTarget(output[_ATl], context); } - if (output["HealthCheckId"] !== undefined) { - contents.HealthCheckId = __expectString(output["HealthCheckId"]); + if (output[_HCI] != null) { + contents[_HCI] = __expectString(output[_HCI]); } - if (output["TrafficPolicyInstanceId"] !== undefined) { - contents.TrafficPolicyInstanceId = __expectString(output["TrafficPolicyInstanceId"]); + if (output[_TPII] != null) { + contents[_TPII] = __expectString(output[_TPII]); } - if (output["CidrRoutingConfig"] !== undefined) { - contents.CidrRoutingConfig = de_CidrRoutingConfig(output["CidrRoutingConfig"], context); + if (output[_CRC] != null) { + contents[_CRC] = de_CidrRoutingConfig(output[_CRC], context); } return contents; }; @@ -9389,16 +8283,16 @@ const de_ResourceRecordSets = (output: any, context: __SerdeContext): ResourceRe */ const de_ResourceTagSet = (output: any, context: __SerdeContext): ResourceTagSet => { const contents: any = {}; - if (output["ResourceType"] !== undefined) { - contents.ResourceType = __expectString(output["ResourceType"]); + if (output[_RTe] != null) { + contents[_RTe] = __expectString(output[_RTe]); } - if (output["ResourceId"] !== undefined) { - contents.ResourceId = __expectString(output["ResourceId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["Tag"]), context); + contents[_Tag] = []; + } else if (output[_Tag] != null && output[_Tag][_Ta] != null) { + contents[_Tag] = de_TagList(__getArrayIfSingleItem(output[_Tag][_Ta]), context); } return contents; }; @@ -9419,11 +8313,11 @@ const de_ResourceTagSetList = (output: any, context: __SerdeContext): ResourceTa */ const de_ReusableDelegationSetLimit = (output: any, context: __SerdeContext): ReusableDelegationSetLimit => { const contents: any = {}; - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["Value"] !== undefined) { - contents.Value = __strictParseLong(output["Value"]) as number; + if (output[_V] != null) { + contents[_V] = __strictParseLong(output[_V]) as number; } return contents; }; @@ -9433,11 +8327,11 @@ const de_ReusableDelegationSetLimit = (output: any, context: __SerdeContext): Re */ const de_StatusReport = (output: any, context: __SerdeContext): StatusReport => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["CheckedTime"] !== undefined) { - contents.CheckedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CheckedTime"])); + if (output[_CT] != null) { + contents[_CT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CT])); } return contents; }; @@ -9447,11 +8341,11 @@ const de_StatusReport = (output: any, context: __SerdeContext): StatusReport => */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -9483,23 +8377,23 @@ const de_TrafficPolicies = (output: any, context: __SerdeContext): TrafficPolicy */ const de_TrafficPolicy = (output: any, context: __SerdeContext): TrafficPolicy => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Version"] !== undefined) { - contents.Version = __strictParseInt32(output["Version"]) as number; + if (output[_Ve] != null) { + contents[_Ve] = __strictParseInt32(output[_Ve]) as number; } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["Document"] !== undefined) { - contents.Document = __expectString(output["Document"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Comment"] !== undefined) { - contents.Comment = __expectString(output["Comment"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } return contents; }; @@ -9509,32 +8403,32 @@ const de_TrafficPolicy = (output: any, context: __SerdeContext): TrafficPolicy = */ const de_TrafficPolicyInstance = (output: any, context: __SerdeContext): TrafficPolicyInstance => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["HostedZoneId"] !== undefined) { - contents.HostedZoneId = __expectString(output["HostedZoneId"]); + if (output[_HZI] != null) { + contents[_HZI] = __expectString(output[_HZI]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["TTL"] !== undefined) { - contents.TTL = __strictParseLong(output["TTL"]) as number; + if (output[_TTL] != null) { + contents[_TTL] = __strictParseLong(output[_TTL]) as number; } - if (output["State"] !== undefined) { - contents.State = __expectString(output["State"]); + if (output[_Sta] != null) { + contents[_Sta] = __expectString(output[_Sta]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["TrafficPolicyId"] !== undefined) { - contents.TrafficPolicyId = __expectString(output["TrafficPolicyId"]); + if (output[_TPI] != null) { + contents[_TPI] = __expectString(output[_TPI]); } - if (output["TrafficPolicyVersion"] !== undefined) { - contents.TrafficPolicyVersion = __strictParseInt32(output["TrafficPolicyVersion"]) as number; + if (output[_TPV] != null) { + contents[_TPV] = __strictParseInt32(output[_TPV]) as number; } - if (output["TrafficPolicyType"] !== undefined) { - contents.TrafficPolicyType = __expectString(output["TrafficPolicyType"]); + if (output[_TPT] != null) { + contents[_TPT] = __expectString(output[_TPT]); } return contents; }; @@ -9566,20 +8460,20 @@ const de_TrafficPolicySummaries = (output: any, context: __SerdeContext): Traffi */ const de_TrafficPolicySummary = (output: any, context: __SerdeContext): TrafficPolicySummary => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Type"] !== undefined) { - contents.Type = __expectString(output["Type"]); + if (output[_T] != null) { + contents[_T] = __expectString(output[_T]); } - if (output["LatestVersion"] !== undefined) { - contents.LatestVersion = __strictParseInt32(output["LatestVersion"]) as number; + if (output[_LV] != null) { + contents[_LV] = __strictParseInt32(output[_LV]) as number; } - if (output["TrafficPolicyCount"] !== undefined) { - contents.TrafficPolicyCount = __strictParseInt32(output["TrafficPolicyCount"]) as number; + if (output[_TPCr] != null) { + contents[_TPCr] = __strictParseInt32(output[_TPCr]) as number; } return contents; }; @@ -9589,11 +8483,11 @@ const de_TrafficPolicySummary = (output: any, context: __SerdeContext): TrafficP */ const de_VPC = (output: any, context: __SerdeContext): VPC => { const contents: any = {}; - if (output["VPCRegion"] !== undefined) { - contents.VPCRegion = __expectString(output["VPCRegion"]); + if (output[_VPCR] != null) { + contents[_VPCR] = __expectString(output[_VPCR]); } - if (output["VPCId"] !== undefined) { - contents.VPCId = __expectString(output["VPCId"]); + if (output[_VPCI] != null) { + contents[_VPCI] = __expectString(output[_VPCI]); } return contents; }; @@ -9628,6 +8522,301 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Action"; +const _AHE = "AliasHealthEnabled"; +const _AI = "AlarmIdentifier"; +const _AN = "AlarmName"; +const _AT = "AddTags"; +const _ATl = "AliasTarget"; +const _AVPCC = "AssociateVPCComment"; +const _AVPCWHZR = "AssociateVPCWithHostedZoneRequest"; +const _Ar = "Arn"; +const _C = "Comment"; +const _CA = "ChangeAction"; +const _CB = "ChangeBatch"; +const _CBi = "CidrBlocks"; +const _CBid = "CidrBlock"; +const _CC = "ContinentCode"; +const _CCC = "CidrCollectionChange"; +const _CCCA = "CidrCollectionChangeAction"; +const _CCCR = "ChangeCidrCollectionRequest"; +const _CCCRr = "CreateCidrCollectionRequest"; +const _CCi = "CidrCollections"; +const _CCo = "CountryCode"; +const _CD = "CreatedDate"; +const _CHC = "ChildHealthChecks"; +const _CHCR = "CreateHealthCheckRequest"; +const _CHCh = "ChildHealthCheck"; +const _CHZR = "CreateHostedZoneRequest"; +const _CI = "ChangeInfo"; +const _CIR = "CheckerIpRanges"; +const _CIo = "CollectionId"; +const _CKSKR = "CreateKeySigningKeyRequest"; +const _CL = "CidrLocations"; +const _CLNDA = "CidrLocationNameDefaultAllowed"; +const _CLNDNA = "CidrLocationNameDefaultNotAllowed"; +const _CLi = "CidrList"; +const _CN = "CidrNonce"; +const _CNo = "CollectionName"; +const _CNon = "ContinentName"; +const _CNou = "CountryName"; +const _CO = "ComparisonOperator"; +const _CQLCR = "CreateQueryLoggingConfigRequest"; +const _CR = "CallerReference"; +const _CRC = "CidrRoutingConfig"; +const _CRDSR = "CreateReusableDelegationSetRequest"; +const _CRRSR = "ChangeResourceRecordSetsRequest"; +const _CT = "CheckedTime"; +const _CTFRR = "ChangeTagsForResourceRequest"; +const _CTPIR = "CreateTrafficPolicyInstanceRequest"; +const _CTPR = "CreateTrafficPolicyRequest"; +const _CTPVR = "CreateTrafficPolicyVersionRequest"; +const _CV = "CollectionVersion"; +const _CVPCAAR = "CreateVPCAssociationAuthorizationRequest"; +const _CWAC = "CloudWatchAlarmConfiguration"; +const _CWLLGA = "CloudWatchLogsLogGroupArn"; +const _CWR = "CloudWatchRegion"; +const _Ch = "Changes"; +const _Cha = "Change"; +const _Ci = "Cidr"; +const _Co = "Collection"; +const _Con = "Config"; +const _Cou = "Count"; +const _D = "Document"; +const _DAM = "DigestAlgorithmMnemonic"; +const _DAT = "DigestAlgorithmType"; +const _DNSKEYR = "DNSKEYRecord"; +const _DNSN = "DNSName"; +const _DS = "DelegationSet"; +const _DSI = "DelegationSetId"; +const _DSR = "DSRecord"; +const _DSe = "DelegationSets"; +const _DV = "DigestValue"; +const _DVPCAAR = "DeleteVPCAssociationAuthorizationRequest"; +const _DVPCC = "DisassociateVPCComment"; +const _DVPCFHZR = "DisassociateVPCFromHostedZoneRequest"; +const _De = "Description"; +const _Di = "Disabled"; +const _Dim = "Dimensions"; +const _Dime = "Dimension"; +const _EDNSCSIP = "EDNS0ClientSubnetIP"; +const _EDNSCSM = "EDNS0ClientSubnetMask"; +const _EP = "EvaluationPeriods"; +const _ESNI = "EnableSNI"; +const _ETH = "EvaluateTargetHealth"; +const _F = "Failover"; +const _FQDN = "FullyQualifiedDomainName"; +const _FT = "FailureThreshold"; +const _Fl = "Flag"; +const _GL = "GeoLocation"; +const _GLCC = "GeoLocationContinentCode"; +const _GLCCe = "GeoLocationCountryCode"; +const _GLD = "GeoLocationDetails"; +const _GLDL = "GeoLocationDetailsList"; +const _GLSC = "GeoLocationSubdivisionCode"; +const _HC = "HealthCheck"; +const _HCC = "HealthCheckConfig"; +const _HCCe = "HealthCheckCount"; +const _HCI = "HealthCheckId"; +const _HCN = "HealthCheckNonce"; +const _HCO = "HealthCheckObservations"; +const _HCOe = "HealthCheckObservation"; +const _HCR = "HealthCheckRegion"; +const _HCT = "HealthCheckType"; +const _HCV = "HealthCheckVersion"; +const _HCe = "HealthChecks"; +const _HT = "HealthThreshold"; +const _HZ = "HostedZone"; +const _HZC = "HostedZoneConfig"; +const _HZCo = "HostedZoneCount"; +const _HZI = "HostedZoneId"; +const _HZIM = "HostedZoneIdMarker"; +const _HZS = "HostedZoneSummaries"; +const _HZSo = "HostedZoneSummary"; +const _HZT = "HostedZoneType"; +const _HZo = "HostedZones"; +const _I = "Inverted"; +const _IDHS = "InsufficientDataHealthStatus"; +const _IPA = "IPAddress"; +const _IPZ = "IsPrivateZone"; +const _IT = "IsTruncated"; +const _Id = "Id"; +const _K = "Key"; +const _KA = "KmsArn"; +const _KMSA = "KeyManagementServiceArn"; +const _KSK = "KeySigningKey"; +const _KSKe = "KeySigningKeys"; +const _KT = "KeyTag"; +const _L = "Location"; +const _LMD = "LastModifiedDate"; +const _LN = "LocationName"; +const _LS = "LinkedService"; +const _LTFRR = "ListTagsForResourcesRequest"; +const _LV = "LatestVersion"; +const _Li = "Limit"; +const _M = "Marker"; +const _MI = "MaxItems"; +const _ML = "MeasureLatency"; +const _MN = "MetricName"; +const _MR = "MaxResults"; +const _MVA = "MultiValueAnswer"; +const _Me = "Message"; +const _N = "Name"; +const _NCC = "NextContinentCode"; +const _NCCe = "NextCountryCode"; +const _NDNSN = "NextDNSName"; +const _NHZI = "NextHostedZoneId"; +const _NM = "NextMarker"; +const _NRI = "NextRecordIdentifier"; +const _NRN = "NextRecordName"; +const _NRT = "NextRecordType"; +const _NS = "NameServers"; +const _NSC = "NextSubdivisionCode"; +const _NSa = "NameServer"; +const _NT = "NextToken"; +const _Na = "Nameserver"; +const _Nam = "Namespace"; +const _No = "Nonce"; +const _O = "Owner"; +const _OA = "OwningAccount"; +const _OS = "OwningService"; +const _P = "Port"; +const _PK = "PublicKey"; +const _PZ = "PrivateZone"; +const _Pe = "Period"; +const _Pr = "Protocol"; +const _QLC = "QueryLoggingConfig"; +const _QLCu = "QueryLoggingConfigs"; +const _R = "Regions"; +const _RC = "ResponseCode"; +const _RCA = "RoutingControlArn"; +const _RD = "ResourceDescription"; +const _RDE = "RecordDataEntry"; +const _RDa = "RData"; +const _RDe = "RecordData"; +const _RE = "ResetElements"; +const _REN = "ResettableElementName"; +const _RI = "ResourceId"; +const _RIP = "ResolverIP"; +const _RIe = "ResourceIds"; +const _RIeq = "RequestInterval"; +const _RN = "RecordName"; +const _RP = "ResourcePath"; +const _RR = "ResourceRecord"; +const _RRS = "ResourceRecordSets"; +const _RRSC = "ResourceRecordSetCount"; +const _RRSF = "ResourceRecordSetFailover"; +const _RRSI = "ResourceRecordSetIdentifier"; +const _RRSMVA = "ResourceRecordSetMultiValueAnswer"; +const _RRSR = "ResourceRecordSetRegion"; +const _RRSW = "ResourceRecordSetWeight"; +const _RRSe = "ResourceRecordSet"; +const _RRT = "RRType"; +const _RRe = "ResourceRecords"; +const _RT = "RecordType"; +const _RTK = "RemoveTagKeys"; +const _RTS = "ResourceTagSet"; +const _RTSe = "ResourceTagSets"; +const _RTe = "ResourceType"; +const _Re = "Region"; +const _S = "Status"; +const _SA = "SubmittedAt"; +const _SAM = "SigningAlgorithmMnemonic"; +const _SAT = "SigningAlgorithmType"; +const _SC = "SubdivisionCode"; +const _SCC = "StartContinentCode"; +const _SCCt = "StartCountryCode"; +const _SI = "SetIdentifier"; +const _SKN = "SigningKeyName"; +const _SKS = "SigningKeyString"; +const _SKSi = "SigningKeyStatus"; +const _SM = "StatusMessage"; +const _SN = "SubdivisionName"; +const _SP = "ServicePrincipal"; +const _SR = "StatusReport"; +const _SRI = "StartRecordIdentifier"; +const _SRN = "StartRecordName"; +const _SRT = "StartRecordType"; +const _SS = "SearchString"; +const _SSC = "StartSubdivisionCode"; +const _SSe = "ServeSignature"; +const _St = "Statistic"; +const _Sta = "State"; +const _T = "Type"; +const _TK = "TagKey"; +const _TP = "TrafficPolicy"; +const _TPC = "TrafficPolicyComment"; +const _TPCr = "TrafficPolicyCount"; +const _TPD = "TrafficPolicyDocument"; +const _TPI = "TrafficPolicyId"; +const _TPIC = "TrafficPolicyInstanceCount"; +const _TPII = "TrafficPolicyInstanceId"; +const _TPIM = "TrafficPolicyIdMarker"; +const _TPINM = "TrafficPolicyInstanceNameMarker"; +const _TPITM = "TrafficPolicyInstanceTypeMarker"; +const _TPIr = "TrafficPolicyInstance"; +const _TPIra = "TrafficPolicyInstances"; +const _TPN = "TrafficPolicyName"; +const _TPS = "TrafficPolicySummaries"; +const _TPSr = "TrafficPolicySummary"; +const _TPT = "TrafficPolicyType"; +const _TPV = "TrafficPolicyVersion"; +const _TPVM = "TrafficPolicyVersionMarker"; +const _TPr = "TrafficPolicies"; +const _TRI = "TagResourceId"; +const _TTL = "TTL"; +const _TV = "TagValue"; +const _Ta = "Tag"; +const _Tag = "Tags"; +const _Th = "Threshold"; +const _UHCR = "UpdateHealthCheckRequest"; +const _UHZCR = "UpdateHostedZoneCommentRequest"; +const _UTPCR = "UpdateTrafficPolicyCommentRequest"; +const _UTPIR = "UpdateTrafficPolicyInstanceRequest"; +const _UUID = "UUID"; +const _V = "Value"; +const _VPC = "VPC"; +const _VPCI = "VPCId"; +const _VPCR = "VPCRegion"; +const _VPCs = "VPCs"; +const _Ve = "Version"; +const _W = "Weight"; +const _c = "continentcode"; +const _co = "countrycode"; +const _d = "delegationsetid"; +const _dn = "dnsname"; +const _e = "edns0clientsubnetip"; +const _ed = "edns0clientsubnetmask"; +const _h = "hostedzonetype"; +const _ho = "hostedzoneid"; +const _i = "identifier"; +const _id = "id"; +const _l = "location"; +const _m = "maxresults"; +const _ma = "maxitems"; +const _mar = "marker"; +const _me = "member"; +const _mes = "message"; +const _mess = "messages"; +const _n = "nexttoken"; +const _na = "name"; +const _r = "recordname"; +const _re = "recordtype"; +const _res = "resolverip"; +const _s = "subdivisioncode"; +const _st = "startcontinentcode"; +const _sta = "startcountrycode"; +const _star = "startsubdivisioncode"; +const _t = "type"; +const _tr = "trafficpolicyid"; +const _tra = "trafficpolicyinstancename"; +const _traf = "trafficpolicyinstancetype"; +const _traff = "trafficpolicyversion"; +const _v = "vpcid"; +const _ve = ''; +const _ver = "version"; +const _vp = "vpcregion"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-route53-recovery-control-config/package.json b/clients/client-route53-recovery-control-config/package.json index e5e2efac7156..f614ea5e9679 100644 --- a/clients/client-route53-recovery-control-config/package.json +++ b/clients/client-route53-recovery-control-config/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts index 3d939501a1d0..7e4fc0344e27 100644 --- a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -91,11 +92,11 @@ export const se_CreateClusterCommand = async ( input: CreateClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster"; + b.bp("/cluster"); let body: any; body = JSON.stringify( take(input, { @@ -104,15 +105,8 @@ export const se_CreateClusterCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -122,11 +116,11 @@ export const se_CreateControlPanelCommand = async ( input: CreateControlPanelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel"; + b.bp("/controlpanel"); let body: any; body = JSON.stringify( take(input, { @@ -136,15 +130,8 @@ export const se_CreateControlPanelCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -154,11 +141,11 @@ export const se_CreateRoutingControlCommand = async ( input: CreateRoutingControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol"; + b.bp("/routingcontrol"); let body: any; body = JSON.stringify( take(input, { @@ -168,15 +155,8 @@ export const se_CreateRoutingControlCommand = async ( RoutingControlName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -186,11 +166,11 @@ export const se_CreateSafetyRuleCommand = async ( input: CreateSafetyRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule"; + b.bp("/safetyrule"); let body: any; body = JSON.stringify( take(input, { @@ -200,15 +180,8 @@ export const se_CreateSafetyRuleCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -218,20 +191,13 @@ export const se_DeleteClusterCommand = async ( input: DeleteClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{ClusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/cluster/{ClusterArn}"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -241,28 +207,13 @@ export const se_DeleteControlPanelCommand = async ( input: DeleteControlPanelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel/{ControlPanelArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ControlPanelArn", - () => input.ControlPanelArn!, - "{ControlPanelArn}", - false - ); + b.bp("/controlpanel/{ControlPanelArn}"); + b.p("ControlPanelArn", () => input.ControlPanelArn!, "{ControlPanelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -272,28 +223,13 @@ export const se_DeleteRoutingControlCommand = async ( input: DeleteRoutingControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol/{RoutingControlArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingControlArn", - () => input.RoutingControlArn!, - "{RoutingControlArn}", - false - ); + b.bp("/routingcontrol/{RoutingControlArn}"); + b.p("RoutingControlArn", () => input.RoutingControlArn!, "{RoutingControlArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -303,28 +239,13 @@ export const se_DeleteSafetyRuleCommand = async ( input: DeleteSafetyRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule/{SafetyRuleArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SafetyRuleArn", - () => input.SafetyRuleArn!, - "{SafetyRuleArn}", - false - ); + b.bp("/safetyrule/{SafetyRuleArn}"); + b.p("SafetyRuleArn", () => input.SafetyRuleArn!, "{SafetyRuleArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -334,20 +255,13 @@ export const se_DescribeClusterCommand = async ( input: DescribeClusterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{ClusterArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); + b.bp("/cluster/{ClusterArn}"); + b.p("ClusterArn", () => input.ClusterArn!, "{ClusterArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -357,28 +271,13 @@ export const se_DescribeControlPanelCommand = async ( input: DescribeControlPanelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel/{ControlPanelArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ControlPanelArn", - () => input.ControlPanelArn!, - "{ControlPanelArn}", - false - ); + b.bp("/controlpanel/{ControlPanelArn}"); + b.p("ControlPanelArn", () => input.ControlPanelArn!, "{ControlPanelArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -388,28 +287,13 @@ export const se_DescribeRoutingControlCommand = async ( input: DescribeRoutingControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol/{RoutingControlArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingControlArn", - () => input.RoutingControlArn!, - "{RoutingControlArn}", - false - ); + b.bp("/routingcontrol/{RoutingControlArn}"); + b.p("RoutingControlArn", () => input.RoutingControlArn!, "{RoutingControlArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -419,28 +303,13 @@ export const se_DescribeSafetyRuleCommand = async ( input: DescribeSafetyRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule/{SafetyRuleArn}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SafetyRuleArn", - () => input.SafetyRuleArn!, - "{SafetyRuleArn}", - false - ); + b.bp("/safetyrule/{SafetyRuleArn}"); + b.p("SafetyRuleArn", () => input.SafetyRuleArn!, "{SafetyRuleArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -450,21 +319,13 @@ export const se_GetResourcePolicyCommand = async ( input: GetResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcePolicy/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resourcePolicy/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -474,34 +335,17 @@ export const se_ListAssociatedRoute53HealthChecksCommand = async ( input: ListAssociatedRoute53HealthChecksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RoutingControlArn", - () => input.RoutingControlArn!, - "{RoutingControlArn}", - false - ); + b.bp("/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks"); + b.p("RoutingControlArn", () => input.RoutingControlArn!, "{RoutingControlArn}", false); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -511,24 +355,16 @@ export const se_ListClustersCommand = async ( input: ListClustersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster"; + b.bp("/cluster"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -538,25 +374,17 @@ export const se_ListControlPanelsCommand = async ( input: ListControlPanelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanels"; + b.bp("/controlpanels"); const query: any = map({ - ClusterArn: [, input.ClusterArn!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_CA]: [, input[_CA]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -566,34 +394,17 @@ export const se_ListRoutingControlsCommand = async ( input: ListRoutingControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/controlpanel/{ControlPanelArn}/routingcontrols"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ControlPanelArn", - () => input.ControlPanelArn!, - "{ControlPanelArn}", - false - ); + b.bp("/controlpanel/{ControlPanelArn}/routingcontrols"); + b.p("ControlPanelArn", () => input.ControlPanelArn!, "{ControlPanelArn}", false); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -603,34 +414,17 @@ export const se_ListSafetyRulesCommand = async ( input: ListSafetyRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/controlpanel/{ControlPanelArn}/safetyrules"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ControlPanelArn", - () => input.ControlPanelArn!, - "{ControlPanelArn}", - false - ); + b.bp("/controlpanel/{ControlPanelArn}/safetyrules"); + b.p("ControlPanelArn", () => input.ControlPanelArn!, "{ControlPanelArn}", false); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -640,20 +434,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -663,27 +450,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -693,27 +473,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - TagKeys: [ + [_TK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -723,11 +495,11 @@ export const se_UpdateControlPanelCommand = async ( input: UpdateControlPanelCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel"; + b.bp("/controlpanel"); let body: any; body = JSON.stringify( take(input, { @@ -735,15 +507,8 @@ export const se_UpdateControlPanelCommand = async ( ControlPanelName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -753,11 +518,11 @@ export const se_UpdateRoutingControlCommand = async ( input: UpdateRoutingControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol"; + b.bp("/routingcontrol"); let body: any; body = JSON.stringify( take(input, { @@ -765,15 +530,8 @@ export const se_UpdateRoutingControlCommand = async ( RoutingControlName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -783,11 +541,11 @@ export const se_UpdateSafetyRuleCommand = async ( input: UpdateSafetyRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule"; + b.bp("/safetyrule"); let body: any; body = JSON.stringify( take(input, { @@ -795,15 +553,8 @@ export const se_UpdateSafetyRuleCommand = async ( GatingRuleUpdate: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2382,6 +2133,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CA = "ClusterArn"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-route53-recovery-readiness/package.json b/clients/client-route53-recovery-readiness/package.json index 3d2d6df66055..4726aae6e9be 100644 --- a/clients/client-route53-recovery-readiness/package.json +++ b/clients/client-route53-recovery-readiness/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts index 777a12dd6617..5841dbdc60ab 100644 --- a/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -132,11 +133,11 @@ export const se_CreateCellCommand = async ( input: CreateCellCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells"; + b.bp("/cells"); let body: any; body = JSON.stringify( take(input, { @@ -145,15 +146,8 @@ export const se_CreateCellCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -163,27 +157,19 @@ export const se_CreateCrossAccountAuthorizationCommand = async ( input: CreateCrossAccountAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crossaccountauthorizations"; + b.bp("/crossaccountauthorizations"); let body: any; body = JSON.stringify( take(input, { crossAccountAuthorization: [, , `CrossAccountAuthorization`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -193,11 +179,11 @@ export const se_CreateReadinessCheckCommand = async ( input: CreateReadinessCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks"; + b.bp("/readinesschecks"); let body: any; body = JSON.stringify( take(input, { @@ -206,15 +192,8 @@ export const se_CreateReadinessCheckCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -224,11 +203,11 @@ export const se_CreateRecoveryGroupCommand = async ( input: CreateRecoveryGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups"; + b.bp("/recoverygroups"); let body: any; body = JSON.stringify( take(input, { @@ -237,15 +216,8 @@ export const se_CreateRecoveryGroupCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -255,11 +227,11 @@ export const se_CreateResourceSetCommand = async ( input: CreateResourceSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets"; + b.bp("/resourcesets"); let body: any; body = JSON.stringify( take(input, { @@ -269,15 +241,8 @@ export const se_CreateResourceSetCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,20 +252,13 @@ export const se_DeleteCellCommand = async ( input: DeleteCellCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells/{CellName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "CellName", () => input.CellName!, "{CellName}", false); + b.bp("/cells/{CellName}"); + b.p("CellName", () => input.CellName!, "{CellName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -310,29 +268,13 @@ export const se_DeleteCrossAccountAuthorizationCommand = async ( input: DeleteCrossAccountAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/crossaccountauthorizations/{CrossAccountAuthorization}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "CrossAccountAuthorization", - () => input.CrossAccountAuthorization!, - "{CrossAccountAuthorization}", - false - ); + b.bp("/crossaccountauthorizations/{CrossAccountAuthorization}"); + b.p("CrossAccountAuthorization", () => input.CrossAccountAuthorization!, "{CrossAccountAuthorization}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -342,28 +284,13 @@ export const se_DeleteReadinessCheckCommand = async ( input: DeleteReadinessCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks/{ReadinessCheckName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReadinessCheckName", - () => input.ReadinessCheckName!, - "{ReadinessCheckName}", - false - ); + b.bp("/readinesschecks/{ReadinessCheckName}"); + b.p("ReadinessCheckName", () => input.ReadinessCheckName!, "{ReadinessCheckName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -373,28 +300,13 @@ export const se_DeleteRecoveryGroupCommand = async ( input: DeleteRecoveryGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups/{RecoveryGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryGroupName", - () => input.RecoveryGroupName!, - "{RecoveryGroupName}", - false - ); + b.bp("/recoverygroups/{RecoveryGroupName}"); + b.p("RecoveryGroupName", () => input.RecoveryGroupName!, "{RecoveryGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -404,28 +316,13 @@ export const se_DeleteResourceSetCommand = async ( input: DeleteResourceSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets/{ResourceSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceSetName", - () => input.ResourceSetName!, - "{ResourceSetName}", - false - ); + b.bp("/resourcesets/{ResourceSetName}"); + b.p("ResourceSetName", () => input.ResourceSetName!, "{ResourceSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -435,34 +332,17 @@ export const se_GetArchitectureRecommendationsCommand = async ( input: GetArchitectureRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/recoverygroups/{RecoveryGroupName}/architectureRecommendations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryGroupName", - () => input.RecoveryGroupName!, - "{RecoveryGroupName}", - false - ); + b.bp("/recoverygroups/{RecoveryGroupName}/architectureRecommendations"); + b.p("RecoveryGroupName", () => input.RecoveryGroupName!, "{RecoveryGroupName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -472,20 +352,13 @@ export const se_GetCellCommand = async ( input: GetCellCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells/{CellName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "CellName", () => input.CellName!, "{CellName}", false); + b.bp("/cells/{CellName}"); + b.p("CellName", () => input.CellName!, "{CellName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -495,26 +368,17 @@ export const se_GetCellReadinessSummaryCommand = async ( input: GetCellReadinessSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cellreadiness/{CellName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "CellName", () => input.CellName!, "{CellName}", false); + b.bp("/cellreadiness/{CellName}"); + b.p("CellName", () => input.CellName!, "{CellName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -524,28 +388,13 @@ export const se_GetReadinessCheckCommand = async ( input: GetReadinessCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks/{ReadinessCheckName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReadinessCheckName", - () => input.ReadinessCheckName!, - "{ReadinessCheckName}", - false - ); + b.bp("/readinesschecks/{ReadinessCheckName}"); + b.p("ReadinessCheckName", () => input.ReadinessCheckName!, "{ReadinessCheckName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -555,42 +404,18 @@ export const se_GetReadinessCheckResourceStatusCommand = async ( input: GetReadinessCheckResourceStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReadinessCheckName", - () => input.ReadinessCheckName!, - "{ReadinessCheckName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceIdentifier", - () => input.ResourceIdentifier!, - "{ResourceIdentifier}", - false - ); + b.bp("/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status"); + b.p("ReadinessCheckName", () => input.ReadinessCheckName!, "{ReadinessCheckName}", false); + b.p("ResourceIdentifier", () => input.ResourceIdentifier!, "{ResourceIdentifier}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -600,34 +425,17 @@ export const se_GetReadinessCheckStatusCommand = async ( input: GetReadinessCheckStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/readinesschecks/{ReadinessCheckName}/status"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReadinessCheckName", - () => input.ReadinessCheckName!, - "{ReadinessCheckName}", - false - ); + b.bp("/readinesschecks/{ReadinessCheckName}/status"); + b.p("ReadinessCheckName", () => input.ReadinessCheckName!, "{ReadinessCheckName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -637,28 +445,13 @@ export const se_GetRecoveryGroupCommand = async ( input: GetRecoveryGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups/{RecoveryGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryGroupName", - () => input.RecoveryGroupName!, - "{RecoveryGroupName}", - false - ); + b.bp("/recoverygroups/{RecoveryGroupName}"); + b.p("RecoveryGroupName", () => input.RecoveryGroupName!, "{RecoveryGroupName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -668,34 +461,17 @@ export const se_GetRecoveryGroupReadinessSummaryCommand = async ( input: GetRecoveryGroupReadinessSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/recoverygroupreadiness/{RecoveryGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryGroupName", - () => input.RecoveryGroupName!, - "{RecoveryGroupName}", - false - ); + b.bp("/recoverygroupreadiness/{RecoveryGroupName}"); + b.p("RecoveryGroupName", () => input.RecoveryGroupName!, "{RecoveryGroupName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -705,28 +481,13 @@ export const se_GetResourceSetCommand = async ( input: GetResourceSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets/{ResourceSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceSetName", - () => input.ResourceSetName!, - "{ResourceSetName}", - false - ); + b.bp("/resourcesets/{ResourceSetName}"); + b.p("ResourceSetName", () => input.ResourceSetName!, "{ResourceSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -736,24 +497,16 @@ export const se_ListCellsCommand = async ( input: ListCellsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells"; + b.bp("/cells"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -763,25 +516,16 @@ export const se_ListCrossAccountAuthorizationsCommand = async ( input: ListCrossAccountAuthorizationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crossaccountauthorizations"; + b.bp("/crossaccountauthorizations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -791,24 +535,16 @@ export const se_ListReadinessChecksCommand = async ( input: ListReadinessChecksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks"; + b.bp("/readinesschecks"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -818,24 +554,16 @@ export const se_ListRecoveryGroupsCommand = async ( input: ListRecoveryGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups"; + b.bp("/recoverygroups"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -845,24 +573,16 @@ export const se_ListResourceSetsCommand = async ( input: ListResourceSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets"; + b.bp("/resourcesets"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -872,25 +592,17 @@ export const se_ListRulesCommand = async ( input: ListRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules"; + b.bp("/rules"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], - resourceType: [, input.ResourceType!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], + [_rT]: [, input[_RT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -900,20 +612,13 @@ export const se_ListTagsForResourcesCommand = async ( input: ListTagsForResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -923,27 +628,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -953,27 +651,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -983,27 +673,20 @@ export const se_UpdateCellCommand = async ( input: UpdateCellCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells/{CellName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "CellName", () => input.CellName!, "{CellName}", false); + b.bp("/cells/{CellName}"); + b.p("CellName", () => input.CellName!, "{CellName}", false); let body: any; body = JSON.stringify( take(input, { cells: [, (_) => _json(_), `Cells`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1013,35 +696,20 @@ export const se_UpdateReadinessCheckCommand = async ( input: UpdateReadinessCheckCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks/{ReadinessCheckName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ReadinessCheckName", - () => input.ReadinessCheckName!, - "{ReadinessCheckName}", - false - ); + b.bp("/readinesschecks/{ReadinessCheckName}"); + b.p("ReadinessCheckName", () => input.ReadinessCheckName!, "{ReadinessCheckName}", false); let body: any; body = JSON.stringify( take(input, { resourceSetName: [, , `ResourceSetName`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1051,35 +719,20 @@ export const se_UpdateRecoveryGroupCommand = async ( input: UpdateRecoveryGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups/{RecoveryGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RecoveryGroupName", - () => input.RecoveryGroupName!, - "{RecoveryGroupName}", - false - ); + b.bp("/recoverygroups/{RecoveryGroupName}"); + b.p("RecoveryGroupName", () => input.RecoveryGroupName!, "{RecoveryGroupName}", false); let body: any; body = JSON.stringify( take(input, { cells: [, (_) => _json(_), `Cells`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1089,20 +742,12 @@ export const se_UpdateResourceSetCommand = async ( input: UpdateResourceSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets/{ResourceSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ResourceSetName", - () => input.ResourceSetName!, - "{ResourceSetName}", - false - ); + b.bp("/resourcesets/{ResourceSetName}"); + b.p("ResourceSetName", () => input.ResourceSetName!, "{ResourceSetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1110,15 +755,8 @@ export const se_UpdateResourceSetCommand = async ( resources: [, (_) => se___listOfResource(_, context), `Resources`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3506,6 +3144,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _RT = "ResourceType"; +const _TK = "TagKeys"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rT = "resourceType"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-rum/package.json b/clients/client-rum/package.json index 69bbba153a27..43f41c553256 100644 --- a/clients/client-rum/package.json +++ b/clients/client-rum/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-rum/src/protocols/Aws_restJson1.ts b/clients/client-rum/src/protocols/Aws_restJson1.ts index d0c9d29e032c..451acbb418ee 100644 --- a/clients/client-rum/src/protocols/Aws_restJson1.ts +++ b/clients/client-rum/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -97,20 +98,12 @@ export const se_BatchCreateRumMetricDefinitionsCommand = async ( input: BatchCreateRumMetricDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppMonitorName", - () => input.AppMonitorName!, - "{AppMonitorName}", - false - ); + b.bp("/rummetrics/{AppMonitorName}/metrics"); + b.p("AppMonitorName", () => input.AppMonitorName!, "{AppMonitorName}", false); let body: any; body = JSON.stringify( take(input, { @@ -119,15 +112,8 @@ export const se_BatchCreateRumMetricDefinitionsCommand = async ( MetricDefinitions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -137,37 +123,21 @@ export const se_BatchDeleteRumMetricDefinitionsCommand = async ( input: BatchDeleteRumMetricDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppMonitorName", - () => input.AppMonitorName!, - "{AppMonitorName}", - false - ); + b.bp("/rummetrics/{AppMonitorName}/metrics"); + b.p("AppMonitorName", () => input.AppMonitorName!, "{AppMonitorName}", false); const query: any = map({ - destination: [, __expectNonNull(input.Destination!, `Destination`)], - destinationArn: [, input.DestinationArn!], - metricDefinitionIds: [ + [_d]: [, __expectNonNull(input[_D]!, `Destination`)], + [_dA]: [, input[_DA]!], + [_mDI]: [ __expectNonNull(input.MetricDefinitionIds, `MetricDefinitionIds`) != null, - () => (input.MetricDefinitionIds! || []).map((_entry) => _entry as any), + () => (input[_MDI]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -177,35 +147,19 @@ export const se_BatchGetRumMetricDefinitionsCommand = async ( input: BatchGetRumMetricDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppMonitorName", - () => input.AppMonitorName!, - "{AppMonitorName}", - false - ); + b.bp("/rummetrics/{AppMonitorName}/metrics"); + b.p("AppMonitorName", () => input.AppMonitorName!, "{AppMonitorName}", false); const query: any = map({ - destination: [, __expectNonNull(input.Destination!, `Destination`)], - destinationArn: [, input.DestinationArn!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_d]: [, __expectNonNull(input[_D]!, `Destination`)], + [_dA]: [, input[_DA]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -215,11 +169,11 @@ export const se_CreateAppMonitorCommand = async ( input: CreateAppMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor"; + b.bp("/appmonitor"); let body: any; body = JSON.stringify( take(input, { @@ -231,15 +185,8 @@ export const se_CreateAppMonitorCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -249,20 +196,13 @@ export const se_DeleteAppMonitorCommand = async ( input: DeleteAppMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/appmonitor/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -272,34 +212,17 @@ export const se_DeleteRumMetricsDestinationCommand = async ( input: DeleteRumMetricsDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/rummetrics/{AppMonitorName}/metricsdestination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppMonitorName", - () => input.AppMonitorName!, - "{AppMonitorName}", - false - ); + b.bp("/rummetrics/{AppMonitorName}/metricsdestination"); + b.p("AppMonitorName", () => input.AppMonitorName!, "{AppMonitorName}", false); const query: any = map({ - destination: [, __expectNonNull(input.Destination!, `Destination`)], - destinationArn: [, input.DestinationArn!], + [_d]: [, __expectNonNull(input[_D]!, `Destination`)], + [_dA]: [, input[_DA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -309,20 +232,13 @@ export const se_GetAppMonitorCommand = async ( input: GetAppMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/appmonitor/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -332,12 +248,12 @@ export const se_GetAppMonitorDataCommand = async ( input: GetAppMonitorDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}/data"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/appmonitor/{Name}/data"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -347,15 +263,8 @@ export const se_GetAppMonitorDataCommand = async ( TimeRange: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -365,24 +274,16 @@ export const se_ListAppMonitorsCommand = async ( input: ListAppMonitorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitors"; + b.bp("/appmonitors"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -392,34 +293,17 @@ export const se_ListRumMetricsDestinationsCommand = async ( input: ListRumMetricsDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/rummetrics/{AppMonitorName}/metricsdestination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppMonitorName", - () => input.AppMonitorName!, - "{AppMonitorName}", - false - ); + b.bp("/rummetrics/{AppMonitorName}/metricsdestination"); + b.p("AppMonitorName", () => input.AppMonitorName!, "{AppMonitorName}", false); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -429,20 +313,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -452,12 +329,12 @@ export const se_PutRumEventsCommand = async ( input: PutRumEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitors/{Id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id!, "{Id}", false); + b.bp("/appmonitors/{Id}"); + b.p("Id", () => input.Id!, "{Id}", false); let body: any; body = JSON.stringify( take(input, { @@ -474,15 +351,9 @@ export const se_PutRumEventsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -492,21 +363,12 @@ export const se_PutRumMetricsDestinationCommand = async ( input: PutRumMetricsDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/rummetrics/{AppMonitorName}/metricsdestination"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppMonitorName", - () => input.AppMonitorName!, - "{AppMonitorName}", - false - ); + b.bp("/rummetrics/{AppMonitorName}/metricsdestination"); + b.p("AppMonitorName", () => input.AppMonitorName!, "{AppMonitorName}", false); let body: any; body = JSON.stringify( take(input, { @@ -515,15 +377,8 @@ export const se_PutRumMetricsDestinationCommand = async ( IamRoleArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -533,27 +388,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -563,27 +411,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -593,12 +433,12 @@ export const se_UpdateAppMonitorCommand = async ( input: UpdateAppMonitorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appmonitor/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/appmonitor/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -608,15 +448,8 @@ export const se_UpdateAppMonitorCommand = async ( Domain: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -626,20 +459,12 @@ export const se_UpdateRumMetricDefinitionCommand = async ( input: UpdateRumMetricDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rummetrics/{AppMonitorName}/metrics"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AppMonitorName", - () => input.AppMonitorName!, - "{AppMonitorName}", - false - ); + b.bp("/rummetrics/{AppMonitorName}/metrics"); + b.p("AppMonitorName", () => input.AppMonitorName!, "{AppMonitorName}", false); let body: any; body = JSON.stringify( take(input, { @@ -649,15 +474,8 @@ export const se_UpdateRumMetricDefinitionCommand = async ( MetricDefinitionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1692,10 +1510,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1756,10 +1571,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1957,6 +1769,21 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _D = "Destination"; +const _DA = "DestinationArn"; +const _MDI = "MetricDefinitionIds"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _TK = "TagKeys"; +const _d = "destination"; +const _dA = "destinationArn"; +const _mDI = "metricDefinitionIds"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-s3-control/package.json b/clients/client-s3-control/package.json index dd01a62b4de3..681fe68187ef 100644 --- a/clients/client-s3-control/package.json +++ b/clients/client-s3-control/package.json @@ -38,6 +38,7 @@ "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-blob-browser": "^2.0.16", "@smithy/hash-node": "^2.0.17", diff --git a/clients/client-s3-control/src/models/models_1.ts b/clients/client-s3-control/src/models/models_1.ts index c3d2c740b65d..076e00d33113 100644 --- a/clients/client-s3-control/src/models/models_1.ts +++ b/clients/client-s3-control/src/models/models_1.ts @@ -16,6 +16,7 @@ import { StorageLensTag, Tag, } from "./models_0"; + import { S3ControlServiceException as __BaseException } from "./S3ControlServiceException"; /** diff --git a/clients/client-s3-control/src/protocols/Aws_restXml.ts b/clients/client-s3-control/src/protocols/Aws_restXml.ts index 6927afebe0cd..3b1761be9205 100644 --- a/clients/client-s3-control/src/protocols/Aws_restXml.ts +++ b/clients/client-s3-control/src/protocols/Aws_restXml.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -477,23 +478,18 @@ export const se_AssociateAccessGrantsIdentityCenterCommand = async ( input: AssociateAccessGrantsIdentityCenterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/identitycenter"; + b.bp("/v20180820/accessgrantsinstance/identitycenter"); let body: any; - body = ''; - const bodyNode = new __XmlNode("AssociateAccessGrantsIdentityCenterRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.IdentityCenterArn !== undefined) { - const node = __XmlNode.of("IdentityCenterArn", input.IdentityCenterArn).withName("IdentityCenterArn"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_AAGICR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.cc(input, _ICA); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -505,15 +501,9 @@ export const se_AssociateAccessGrantsIdentityCenterCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -523,54 +513,30 @@ export const se_CreateAccessGrantCommand = async ( input: CreateAccessGrantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/grant"; + b.bp("/v20180820/accessgrantsinstance/grant"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateAccessGrantRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.AccessGrantsLocationConfiguration !== undefined) { - const node = se_AccessGrantsLocationConfiguration(input.AccessGrantsLocationConfiguration, context).withName( - "AccessGrantsLocationConfiguration" - ); - bodyNode.addChildNode(node); - } - if (input.AccessGrantsLocationId !== undefined) { - const node = __XmlNode - .of("AccessGrantsLocationId", input.AccessGrantsLocationId) - .withName("AccessGrantsLocationId"); - bodyNode.addChildNode(node); - } - if (input.ApplicationArn !== undefined) { - const node = __XmlNode.of("IdentityCenterApplicationArn", input.ApplicationArn).withName("ApplicationArn"); - bodyNode.addChildNode(node); - } - if (input.Grantee !== undefined) { - const node = se_Grantee(input.Grantee, context).withName("Grantee"); - bodyNode.addChildNode(node); - } - if (input.Permission !== undefined) { - const node = __XmlNode.of("Permission", input.Permission).withName("Permission"); - bodyNode.addChildNode(node); - } - if (input.S3PrefixType !== undefined) { - const node = __XmlNode.of("S3PrefixType", input.S3PrefixType).withName("S3PrefixType"); - bodyNode.addChildNode(node); - } - if (input.Tags !== undefined) { - const nodes = se_TagList(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_CAGR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_AGLC] != null) { + bn.c(se_AccessGrantsLocationConfiguration(input[_AGLC], context).n(_AGLC)); + } + bn.cc(input, _AGLI); + if (input[_AA] != null) { + bn.c(__XmlNode.of(_ICAA, input[_AA]).n(_AA)); + } + if (input[_G] != null) { + bn.c(se_Grantee(input[_G], context).n(_G)); + } + bn.cc(input, _P); + bn.cc(input, _SPT); + bn.lc(input, "Tags", "Tags", () => se_TagList(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -582,15 +548,9 @@ export const se_CreateAccessGrantCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -600,30 +560,19 @@ export const se_CreateAccessGrantsInstanceCommand = async ( input: CreateAccessGrantsInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance"; + b.bp("/v20180820/accessgrantsinstance"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateAccessGrantsInstanceRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.IdentityCenterArn !== undefined) { - const node = __XmlNode.of("IdentityCenterArn", input.IdentityCenterArn).withName("IdentityCenterArn"); - bodyNode.addChildNode(node); - } - if (input.Tags !== undefined) { - const nodes = se_TagList(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_CAGIR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.cc(input, _ICA); + bn.lc(input, "Tags", "Tags", () => se_TagList(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -635,15 +584,9 @@ export const se_CreateAccessGrantsInstanceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -653,34 +596,22 @@ export const se_CreateAccessGrantsLocationCommand = async ( input: CreateAccessGrantsLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/location"; + b.bp("/v20180820/accessgrantsinstance/location"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateAccessGrantsLocationRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.IAMRoleArn !== undefined) { - const node = __XmlNode.of("IAMRoleArn", input.IAMRoleArn).withName("IAMRoleArn"); - bodyNode.addChildNode(node); - } - if (input.LocationScope !== undefined) { - const node = __XmlNode.of("S3Prefix", input.LocationScope).withName("LocationScope"); - bodyNode.addChildNode(node); - } - if (input.Tags !== undefined) { - const nodes = se_TagList(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_CAGLR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.cc(input, _IAMRA); + if (input[_LS] != null) { + bn.c(__XmlNode.of(_SP, input[_LS]).n(_LS)); + } + bn.lc(input, "Tags", "Tags", () => se_TagList(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -692,15 +623,9 @@ export const se_CreateAccessGrantsLocationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -710,37 +635,30 @@ export const se_CreateAccessPointCommand = async ( input: CreateAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspoint/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateAccessPointRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Bucket !== undefined) { - const node = __XmlNode.of("BucketName", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_CAPR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); } - if (input.BucketAccountId !== undefined) { - const node = __XmlNode.of("AccountId", input.BucketAccountId).withName("BucketAccountId"); - bodyNode.addChildNode(node); + if (input[_BAI] != null) { + bn.c(__XmlNode.of(_AI, input[_BAI]).n(_BAI)); } - if (input.PublicAccessBlockConfiguration !== undefined) { - const node = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context).withName( - "PublicAccessBlockConfiguration" - ); - bodyNode.addChildNode(node); + if (input[_PABC] != null) { + bn.c(se_PublicAccessBlockConfiguration(input[_PABC], context).n(_PABC)); } - if (input.VpcConfiguration !== undefined) { - const node = se_VpcConfiguration(input.VpcConfiguration, context).withName("VpcConfiguration"); - bodyNode.addChildNode(node); + if (input[_VC] != null) { + bn.c(se_VpcConfiguration(input[_VC], context).n(_VC)); } - body += bodyNode.toString(); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -752,15 +670,9 @@ export const se_CreateAccessPointCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -770,24 +682,21 @@ export const se_CreateAccessPointForObjectLambdaCommand = async ( input: CreateAccessPointForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateAccessPointForObjectLambdaRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Configuration !== undefined) { - const node = se_ObjectLambdaConfiguration(input.Configuration, context).withName("Configuration"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_CAPFOLR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_C] != null) { + bn.c(se_ObjectLambdaConfiguration(input[_C], context).n(_C)); + } + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -799,15 +708,9 @@ export const se_CreateAccessPointForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -817,41 +720,30 @@ export const se_CreateBucketCommand = async ( input: CreateBucketCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-acl": input.ACL!, - "x-amz-grant-full-control": input.GrantFullControl!, - "x-amz-grant-read": input.GrantRead!, - "x-amz-grant-read-acp": input.GrantReadACP!, - "x-amz-grant-write": input.GrantWrite!, - "x-amz-grant-write-acp": input.GrantWriteACP!, - "x-amz-bucket-object-lock-enabled": [ - () => isSerializableHeaderValue(input.ObjectLockEnabledForBucket), - () => input.ObjectLockEnabledForBucket!.toString(), - ], - "x-amz-outpost-id": input.OutpostId!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + [_xaa]: input[_ACL]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagw]: input[_GW]!, + [_xagwa]: input[_GWACP]!, + [_xabole]: [() => isSerializableHeaderValue(input[_OLEFB]), () => input[_OLEFB]!.toString()], + [_xaoi]: input[_OI]!, + }); + b.bp("/v20180820/bucket/{Bucket}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let contents: any; if (input.CreateBucketConfiguration !== undefined) { contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + body = _ve; + contents.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -861,66 +753,48 @@ export const se_CreateJobCommand = async ( input: CreateJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs"; + b.bp("/v20180820/jobs"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateJobRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.ClientRequestToken === undefined) { - input.ClientRequestToken = generateIdempotencyToken(); - } - if (input.ClientRequestToken !== undefined) { - const node = __XmlNode.of("NonEmptyMaxLength64String", input.ClientRequestToken).withName("ClientRequestToken"); - bodyNode.addChildNode(node); - } - if (input.ConfirmationRequired !== undefined) { - const node = __XmlNode - .of("ConfirmationRequired", String(input.ConfirmationRequired)) - .withName("ConfirmationRequired"); - bodyNode.addChildNode(node); - } - if (input.Description !== undefined) { - const node = __XmlNode.of("NonEmptyMaxLength256String", input.Description).withName("Description"); - bodyNode.addChildNode(node); - } - if (input.Manifest !== undefined) { - const node = se_JobManifest(input.Manifest, context).withName("Manifest"); - bodyNode.addChildNode(node); - } - if (input.ManifestGenerator !== undefined) { - const node = se_JobManifestGenerator(input.ManifestGenerator, context).withName("ManifestGenerator"); - bodyNode.addChildNode(node); - } - if (input.Operation !== undefined) { - const node = se_JobOperation(input.Operation, context).withName("Operation"); - bodyNode.addChildNode(node); - } - if (input.Priority !== undefined) { - const node = __XmlNode.of("JobPriority", String(input.Priority)).withName("Priority"); - bodyNode.addChildNode(node); - } - if (input.Report !== undefined) { - const node = se_JobReport(input.Report, context).withName("Report"); - bodyNode.addChildNode(node); - } - if (input.RoleArn !== undefined) { - const node = __XmlNode.of("IAMRoleArn", input.RoleArn).withName("RoleArn"); - bodyNode.addChildNode(node); - } - if (input.Tags !== undefined) { - const nodes = se_S3TagSet(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + body = _ve; + const bn = new __XmlNode(_CJR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_CRT] === undefined) { + input[_CRT] = generateIdempotencyToken(); + } + if (input[_CRT] != null) { + bn.c(__XmlNode.of(_NEMLS, input[_CRT]).n(_CRT)); + } + if (input[_CR] != null) { + bn.c(__XmlNode.of(_CR, String(input[_CR])).n(_CR)); } - body += bodyNode.toString(); + if (input[_D] != null) { + bn.c(__XmlNode.of(_NEMLSo, input[_D]).n(_D)); + } + if (input[_M] != null) { + bn.c(se_JobManifest(input[_M], context).n(_M)); + } + if (input[_MG] != null) { + bn.c(se_JobManifestGenerator(input[_MG], context).n(_MG)); + } + if (input[_O] != null) { + bn.c(se_JobOperation(input[_O], context).n(_O)); + } + if (input[_Pr] != null) { + bn.c(__XmlNode.of(_JP, String(input[_Pr])).n(_Pr)); + } + if (input[_R] != null) { + bn.c(se_JobReport(input[_R], context).n(_R)); + } + if (input[_RA] != null) { + bn.c(__XmlNode.of(_IAMRA, input[_RA]).n(_RA)); + } + bn.lc(input, "Tags", "Tags", () => se_S3TagSet(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -932,15 +806,9 @@ export const se_CreateJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -950,29 +818,26 @@ export const se_CreateMultiRegionAccessPointCommand = async ( input: CreateMultiRegionAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/async-requests/mrap/create"; + b.bp("/v20180820/async-requests/mrap/create"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateMultiRegionAccessPointRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + body = _ve; + const bn = new __XmlNode(_CMRAPR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_CT] === undefined) { + input[_CT] = generateIdempotencyToken(); } - if (input.ClientToken !== undefined) { - const node = __XmlNode.of("MultiRegionAccessPointClientToken", input.ClientToken).withName("ClientToken"); - bodyNode.addChildNode(node); + if (input[_CT] != null) { + bn.c(__XmlNode.of(_MRAPCT, input[_CT]).n(_CT)); } - if (input.Details !== undefined) { - const node = se_CreateMultiRegionAccessPointInput(input.Details, context).withName("Details"); - bodyNode.addChildNode(node); + if (input[_De] != null) { + bn.c(se_CreateMultiRegionAccessPointInput(input[_De], context).n(_De)); } - body += bodyNode.toString(); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -984,15 +849,9 @@ export const se_CreateMultiRegionAccessPointCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1002,30 +861,21 @@ export const se_CreateStorageLensGroupCommand = async ( input: CreateStorageLensGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup"; + b.bp("/v20180820/storagelensgroup"); let body: any; - body = ''; - const bodyNode = new __XmlNode("CreateStorageLensGroupRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.StorageLensGroup !== undefined) { - const node = se_StorageLensGroup(input.StorageLensGroup, context).withName("StorageLensGroup"); - bodyNode.addChildNode(node); - } - if (input.Tags !== undefined) { - const nodes = se_TagList(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_CSLGR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_SLG] != null) { + bn.c(se_StorageLensGroup(input[_SLG], context).n(_SLG)); + } + bn.lc(input, "Tags", "Tags", () => se_TagList(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -1037,15 +887,9 @@ export const se_CreateStorageLensGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1055,21 +899,12 @@ export const se_DeleteAccessGrantCommand = async ( input: DeleteAccessGrantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/grant/{AccessGrantId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AccessGrantId", - () => input.AccessGrantId!, - "{AccessGrantId}", - false - ); + [_xaai]: input[_AI]!, + }); + b.bp("/v20180820/accessgrantsinstance/grant/{AccessGrantId}"); + b.p("AccessGrantId", () => input.AccessGrantId!, "{AccessGrantId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1082,15 +917,9 @@ export const se_DeleteAccessGrantCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1100,12 +929,11 @@ export const se_DeleteAccessGrantsInstanceCommand = async ( input: DeleteAccessGrantsInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance"; + b.bp("/v20180820/accessgrantsinstance"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1118,15 +946,9 @@ export const se_DeleteAccessGrantsInstanceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1136,13 +958,11 @@ export const se_DeleteAccessGrantsInstanceResourcePolicyCommand = async ( input: DeleteAccessGrantsInstanceResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/resourcepolicy"; + b.bp("/v20180820/accessgrantsinstance/resourcepolicy"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1155,15 +975,9 @@ export const se_DeleteAccessGrantsInstanceResourcePolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1173,21 +987,12 @@ export const se_DeleteAccessGrantsLocationCommand = async ( input: DeleteAccessGrantsLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AccessGrantsLocationId", - () => input.AccessGrantsLocationId!, - "{AccessGrantsLocationId}", - false - ); + [_xaai]: input[_AI]!, + }); + b.bp("/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}"); + b.p("AccessGrantsLocationId", () => input.AccessGrantsLocationId!, "{AccessGrantsLocationId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1200,15 +1005,9 @@ export const se_DeleteAccessGrantsLocationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1218,13 +1017,12 @@ export const se_DeleteAccessPointCommand = async ( input: DeleteAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspoint/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1237,15 +1035,9 @@ export const se_DeleteAccessPointCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1255,14 +1047,12 @@ export const se_DeleteAccessPointForObjectLambdaCommand = async ( input: DeleteAccessPointForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1275,15 +1065,9 @@ export const se_DeleteAccessPointForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1293,13 +1077,12 @@ export const se_DeleteAccessPointPolicyCommand = async ( input: DeleteAccessPointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspoint/{Name}/policy"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1312,15 +1095,9 @@ export const se_DeleteAccessPointPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1330,14 +1107,12 @@ export const se_DeleteAccessPointPolicyForObjectLambdaCommand = async ( input: DeleteAccessPointPolicyForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}/policy"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1350,15 +1125,9 @@ export const se_DeleteAccessPointPolicyForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1368,13 +1137,12 @@ export const se_DeleteBucketCommand = async ( input: DeleteBucketCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1387,15 +1155,9 @@ export const se_DeleteBucketCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1405,14 +1167,12 @@ export const se_DeleteBucketLifecycleConfigurationCommand = async ( input: DeleteBucketLifecycleConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/bucket/{Bucket}/lifecycleconfiguration"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/lifecycleconfiguration"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1425,15 +1185,9 @@ export const se_DeleteBucketLifecycleConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1443,13 +1197,12 @@ export const se_DeleteBucketPolicyCommand = async ( input: DeleteBucketPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/policy"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1462,15 +1215,9 @@ export const se_DeleteBucketPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1480,13 +1227,12 @@ export const se_DeleteBucketReplicationCommand = async ( input: DeleteBucketReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/replication"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/replication"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1499,15 +1245,9 @@ export const se_DeleteBucketReplicationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1517,13 +1257,12 @@ export const se_DeleteBucketTaggingCommand = async ( input: DeleteBucketTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/tagging"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1536,15 +1275,9 @@ export const se_DeleteBucketTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1554,13 +1287,12 @@ export const se_DeleteJobTaggingCommand = async ( input: DeleteJobTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v20180820/jobs/{JobId}/tagging"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1573,15 +1305,9 @@ export const se_DeleteJobTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1591,29 +1317,26 @@ export const se_DeleteMultiRegionAccessPointCommand = async ( input: DeleteMultiRegionAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/async-requests/mrap/delete"; + b.bp("/v20180820/async-requests/mrap/delete"); let body: any; - body = ''; - const bodyNode = new __XmlNode("DeleteMultiRegionAccessPointRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + body = _ve; + const bn = new __XmlNode(_DMRAPR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_CT] === undefined) { + input[_CT] = generateIdempotencyToken(); } - if (input.ClientToken !== undefined) { - const node = __XmlNode.of("MultiRegionAccessPointClientToken", input.ClientToken).withName("ClientToken"); - bodyNode.addChildNode(node); + if (input[_CT] != null) { + bn.c(__XmlNode.of(_MRAPCT, input[_CT]).n(_CT)); } - if (input.Details !== undefined) { - const node = se_DeleteMultiRegionAccessPointInput(input.Details, context).withName("Details"); - bodyNode.addChildNode(node); + if (input[_De] != null) { + bn.c(se_DeleteMultiRegionAccessPointInput(input[_De], context).n(_De)); } - body += bodyNode.toString(); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -1625,15 +1348,9 @@ export const se_DeleteMultiRegionAccessPointCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1643,13 +1360,11 @@ export const se_DeletePublicAccessBlockCommand = async ( input: DeletePublicAccessBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/configuration/publicAccessBlock"; + b.bp("/v20180820/configuration/publicAccessBlock"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1662,15 +1377,9 @@ export const se_DeletePublicAccessBlockCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1680,13 +1389,12 @@ export const se_DeleteStorageLensConfigurationCommand = async ( input: DeleteStorageLensConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ConfigId", () => input.ConfigId!, "{ConfigId}", false); + b.bp("/v20180820/storagelens/{ConfigId}"); + b.p("ConfigId", () => input.ConfigId!, "{ConfigId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1699,15 +1407,9 @@ export const se_DeleteStorageLensConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1717,13 +1419,12 @@ export const se_DeleteStorageLensConfigurationTaggingCommand = async ( input: DeleteStorageLensConfigurationTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "ConfigId", () => input.ConfigId!, "{ConfigId}", false); + b.bp("/v20180820/storagelens/{ConfigId}/tagging"); + b.p("ConfigId", () => input.ConfigId!, "{ConfigId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1736,15 +1437,9 @@ export const se_DeleteStorageLensConfigurationTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1754,13 +1449,12 @@ export const se_DeleteStorageLensGroupCommand = async ( input: DeleteStorageLensGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/storagelensgroup/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1773,15 +1467,9 @@ export const se_DeleteStorageLensGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1791,12 +1479,12 @@ export const se_DescribeJobCommand = async ( input: DescribeJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v20180820/jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1809,15 +1497,9 @@ export const se_DescribeJobCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1827,21 +1509,12 @@ export const se_DescribeMultiRegionAccessPointOperationCommand = async ( input: DescribeMultiRegionAccessPointOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/async-requests/mrap/{RequestTokenARN+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RequestTokenARN", - () => input.RequestTokenARN!, - "{RequestTokenARN+}", - true - ); + [_xaai]: input[_AI]!, + }); + b.bp("/v20180820/async-requests/mrap/{RequestTokenARN+}"); + b.p("RequestTokenARN", () => input.RequestTokenARN!, "{RequestTokenARN+}", true); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1854,15 +1527,9 @@ export const se_DescribeMultiRegionAccessPointOperationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1872,13 +1539,11 @@ export const se_DissociateAccessGrantsIdentityCenterCommand = async ( input: DissociateAccessGrantsIdentityCenterCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/identitycenter"; + b.bp("/v20180820/accessgrantsinstance/identitycenter"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1891,15 +1556,9 @@ export const se_DissociateAccessGrantsIdentityCenterCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1909,21 +1568,12 @@ export const se_GetAccessGrantCommand = async ( input: GetAccessGrantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/grant/{AccessGrantId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AccessGrantId", - () => input.AccessGrantId!, - "{AccessGrantId}", - false - ); + [_xaai]: input[_AI]!, + }); + b.bp("/v20180820/accessgrantsinstance/grant/{AccessGrantId}"); + b.p("AccessGrantId", () => input.AccessGrantId!, "{AccessGrantId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1936,15 +1586,9 @@ export const se_GetAccessGrantCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1954,12 +1598,11 @@ export const se_GetAccessGrantsInstanceCommand = async ( input: GetAccessGrantsInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance"; + b.bp("/v20180820/accessgrantsinstance"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -1972,15 +1615,9 @@ export const se_GetAccessGrantsInstanceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1990,14 +1627,13 @@ export const se_GetAccessGrantsInstanceForPrefixCommand = async ( input: GetAccessGrantsInstanceForPrefixCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/prefix"; + b.bp("/v20180820/accessgrantsinstance/prefix"); const query: any = map({ - s3prefix: [, __expectNonNull(input.S3Prefix!, `S3Prefix`)], + [_s]: [, __expectNonNull(input[_SP]!, `S3Prefix`)], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2011,16 +1647,9 @@ export const se_GetAccessGrantsInstanceForPrefixCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2030,13 +1659,11 @@ export const se_GetAccessGrantsInstanceResourcePolicyCommand = async ( input: GetAccessGrantsInstanceResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/resourcepolicy"; + b.bp("/v20180820/accessgrantsinstance/resourcepolicy"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2049,15 +1676,9 @@ export const se_GetAccessGrantsInstanceResourcePolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2067,21 +1688,12 @@ export const se_GetAccessGrantsLocationCommand = async ( input: GetAccessGrantsLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AccessGrantsLocationId", - () => input.AccessGrantsLocationId!, - "{AccessGrantsLocationId}", - false - ); + [_xaai]: input[_AI]!, + }); + b.bp("/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}"); + b.p("AccessGrantsLocationId", () => input.AccessGrantsLocationId!, "{AccessGrantsLocationId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2094,15 +1706,9 @@ export const se_GetAccessGrantsLocationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2112,13 +1718,12 @@ export const se_GetAccessPointCommand = async ( input: GetAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspoint/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2131,15 +1736,9 @@ export const se_GetAccessPointCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2149,14 +1748,12 @@ export const se_GetAccessPointConfigurationForObjectLambdaCommand = async ( input: GetAccessPointConfigurationForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}/configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}/configuration"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2169,15 +1766,9 @@ export const se_GetAccessPointConfigurationForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2187,14 +1778,12 @@ export const se_GetAccessPointForObjectLambdaCommand = async ( input: GetAccessPointForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2207,15 +1796,9 @@ export const se_GetAccessPointForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2225,13 +1808,12 @@ export const se_GetAccessPointPolicyCommand = async ( input: GetAccessPointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspoint/{Name}/policy"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2244,15 +1826,9 @@ export const se_GetAccessPointPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2262,14 +1838,12 @@ export const se_GetAccessPointPolicyForObjectLambdaCommand = async ( input: GetAccessPointPolicyForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}/policy"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2282,15 +1856,9 @@ export const se_GetAccessPointPolicyForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2300,14 +1868,12 @@ export const se_GetAccessPointPolicyStatusCommand = async ( input: GetAccessPointPolicyStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspoint/{Name}/policyStatus"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspoint/{Name}/policyStatus"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2320,15 +1886,9 @@ export const se_GetAccessPointPolicyStatusCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2338,14 +1898,12 @@ export const se_GetAccessPointPolicyStatusForObjectLambdaCommand = async ( input: GetAccessPointPolicyStatusForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}/policyStatus"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}/policyStatus"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2358,15 +1916,9 @@ export const se_GetAccessPointPolicyStatusForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2376,13 +1928,12 @@ export const se_GetBucketCommand = async ( input: GetBucketCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2395,15 +1946,9 @@ export const se_GetBucketCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2413,14 +1958,12 @@ export const se_GetBucketLifecycleConfigurationCommand = async ( input: GetBucketLifecycleConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/bucket/{Bucket}/lifecycleconfiguration"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/lifecycleconfiguration"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2433,15 +1976,9 @@ export const se_GetBucketLifecycleConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2451,13 +1988,12 @@ export const se_GetBucketPolicyCommand = async ( input: GetBucketPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/policy"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2470,15 +2006,9 @@ export const se_GetBucketPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2488,13 +2018,12 @@ export const se_GetBucketReplicationCommand = async ( input: GetBucketReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/replication"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/replication"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2507,15 +2036,9 @@ export const se_GetBucketReplicationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2525,13 +2048,12 @@ export const se_GetBucketTaggingCommand = async ( input: GetBucketTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/tagging"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2544,15 +2066,9 @@ export const se_GetBucketTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2562,13 +2078,12 @@ export const se_GetBucketVersioningCommand = async ( input: GetBucketVersioningCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/versioning"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/versioning"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2581,15 +2096,9 @@ export const se_GetBucketVersioningCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2599,19 +2108,17 @@ export const se_GetDataAccessCommand = async ( input: GetDataAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/dataaccess"; + b.bp("/v20180820/accessgrantsinstance/dataaccess"); const query: any = map({ - target: [, __expectNonNull(input.Target!, `Target`)], - permission: [, __expectNonNull(input.Permission!, `Permission`)], - durationSeconds: [() => input.DurationSeconds !== void 0, () => input.DurationSeconds!.toString()], - privilege: [, input.Privilege!], - targetType: [, input.TargetType!], + [_t]: [, __expectNonNull(input[_Ta]!, `Target`)], + [_p]: [, __expectNonNull(input[_P]!, `Permission`)], + [_dS]: [() => input.DurationSeconds !== void 0, () => input[_DS]!.toString()], + [_pr]: [, input[_Pri]!], + [_tT]: [, input[_TT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -2625,16 +2132,9 @@ export const se_GetDataAccessCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2644,13 +2144,12 @@ export const se_GetJobTaggingCommand = async ( input: GetJobTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v20180820/jobs/{JobId}/tagging"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2663,15 +2162,9 @@ export const se_GetJobTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2681,13 +2174,12 @@ export const se_GetMultiRegionAccessPointCommand = async ( input: GetMultiRegionAccessPointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name+}", true); + b.bp("/v20180820/mrap/instances/{Name+}"); + b.p("Name", () => input.Name!, "{Name+}", true); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2700,15 +2192,9 @@ export const se_GetMultiRegionAccessPointCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2718,13 +2204,12 @@ export const se_GetMultiRegionAccessPointPolicyCommand = async ( input: GetMultiRegionAccessPointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Name+}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name+}", true); + b.bp("/v20180820/mrap/instances/{Name+}/policy"); + b.p("Name", () => input.Name!, "{Name+}", true); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2737,15 +2222,9 @@ export const se_GetMultiRegionAccessPointPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2755,14 +2234,12 @@ export const se_GetMultiRegionAccessPointPolicyStatusCommand = async ( input: GetMultiRegionAccessPointPolicyStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/mrap/instances/{Name+}/policystatus"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name+}", true); + b.bp("/v20180820/mrap/instances/{Name+}/policystatus"); + b.p("Name", () => input.Name!, "{Name+}", true); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2775,15 +2252,9 @@ export const se_GetMultiRegionAccessPointPolicyStatusCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2793,13 +2264,12 @@ export const se_GetMultiRegionAccessPointRoutesCommand = async ( input: GetMultiRegionAccessPointRoutesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes"; - resolvedPath = __resolvedPath(resolvedPath, input, "Mrap", () => input.Mrap!, "{Mrap+}", true); + b.bp("/v20180820/mrap/instances/{Mrap+}/routes"); + b.p("Mrap", () => input.Mrap!, "{Mrap+}", true); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2812,15 +2282,9 @@ export const se_GetMultiRegionAccessPointRoutesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2830,13 +2294,11 @@ export const se_GetPublicAccessBlockCommand = async ( input: GetPublicAccessBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/configuration/publicAccessBlock"; + b.bp("/v20180820/configuration/publicAccessBlock"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2849,15 +2311,9 @@ export const se_GetPublicAccessBlockCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2867,13 +2323,12 @@ export const se_GetStorageLensConfigurationCommand = async ( input: GetStorageLensConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ConfigId", () => input.ConfigId!, "{ConfigId}", false); + b.bp("/v20180820/storagelens/{ConfigId}"); + b.p("ConfigId", () => input.ConfigId!, "{ConfigId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2886,15 +2341,9 @@ export const se_GetStorageLensConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2904,13 +2353,12 @@ export const se_GetStorageLensConfigurationTaggingCommand = async ( input: GetStorageLensConfigurationTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "ConfigId", () => input.ConfigId!, "{ConfigId}", false); + b.bp("/v20180820/storagelens/{ConfigId}/tagging"); + b.p("ConfigId", () => input.ConfigId!, "{ConfigId}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2923,15 +2371,9 @@ export const se_GetStorageLensConfigurationTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2941,13 +2383,12 @@ export const se_GetStorageLensGroupCommand = async ( input: GetStorageLensGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/storagelensgroup/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -2960,15 +2401,9 @@ export const se_GetStorageLensGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2978,20 +2413,19 @@ export const se_ListAccessGrantsCommand = async ( input: ListAccessGrantsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/grants"; + b.bp("/v20180820/accessgrantsinstance/grants"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - granteetype: [, input.GranteeType!], - granteeidentifier: [, input.GranteeIdentifier!], - permission: [, input.Permission!], - grantscope: [, input.GrantScope!], - application_arn: [, input.ApplicationArn!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_g]: [, input[_GT]!], + [_gr]: [, input[_GI]!], + [_p]: [, input[_P]!], + [_gra]: [, input[_GS]!], + [_aa]: [, input[_AA]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3005,16 +2439,9 @@ export const se_ListAccessGrantsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3024,15 +2451,14 @@ export const se_ListAccessGrantsInstancesCommand = async ( input: ListAccessGrantsInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstances"; + b.bp("/v20180820/accessgrantsinstances"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3046,16 +2472,9 @@ export const se_ListAccessGrantsInstancesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3065,16 +2484,15 @@ export const se_ListAccessGrantsLocationsCommand = async ( input: ListAccessGrantsLocationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accessgrantsinstance/locations"; + b.bp("/v20180820/accessgrantsinstance/locations"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - locationscope: [, input.LocationScope!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_l]: [, input[_LS]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3088,16 +2506,9 @@ export const se_ListAccessGrantsLocationsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3107,15 +2518,15 @@ export const se_ListAccessPointsCommand = async ( input: ListAccessPointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint"; + b.bp("/v20180820/accesspoint"); const query: any = map({ - bucket: [, input.Bucket!], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_b]: [, input[_B]!], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3129,16 +2540,9 @@ export const se_ListAccessPointsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3148,15 +2552,14 @@ export const se_ListAccessPointsForObjectLambdaCommand = async ( input: ListAccessPointsForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspointforobjectlambda"; + b.bp("/v20180820/accesspointforobjectlambda"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3170,16 +2573,9 @@ export const se_ListAccessPointsForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3189,15 +2585,15 @@ export const se_ListJobsCommand = async ( input: ListJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs"; + b.bp("/v20180820/jobs"); const query: any = map({ - jobStatuses: [() => input.JobStatuses !== void 0, () => (input.JobStatuses! || []).map((_entry) => _entry as any)], - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_jS]: [() => input.JobStatuses !== void 0, () => (input[_JS]! || []).map((_entry) => _entry as any)], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3211,16 +2607,9 @@ export const se_ListJobsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3230,15 +2619,14 @@ export const se_ListMultiRegionAccessPointsCommand = async ( input: ListMultiRegionAccessPointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances"; + b.bp("/v20180820/mrap/instances"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3252,16 +2640,9 @@ export const se_ListMultiRegionAccessPointsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3271,15 +2652,15 @@ export const se_ListRegionalBucketsCommand = async ( input: ListRegionalBucketsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, - "x-amz-outpost-id": input.OutpostId!, + [_xaai]: input[_AI]!, + [_xaoi]: input[_OI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket"; + b.bp("/v20180820/bucket"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3293,16 +2674,9 @@ export const se_ListRegionalBucketsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3312,13 +2686,13 @@ export const se_ListStorageLensConfigurationsCommand = async ( input: ListStorageLensConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens"; + b.bp("/v20180820/storagelens"); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3332,16 +2706,9 @@ export const se_ListStorageLensConfigurationsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3351,14 +2718,13 @@ export const se_ListStorageLensGroupsCommand = async ( input: ListStorageLensGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup"; + b.bp("/v20180820/storagelensgroup"); const query: any = map({ - nextToken: [, input.NextToken!], + [_nT]: [, input[_NT]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -3372,16 +2738,9 @@ export const se_ListStorageLensGroupsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3391,13 +2750,12 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/tags/{ResourceArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn+}", true); + b.bp("/v20180820/tags/{ResourceArn+}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn+}", true); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -3410,15 +2768,9 @@ export const se_ListTagsForResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3428,27 +2780,21 @@ export const se_PutAccessGrantsInstanceResourcePolicyCommand = async ( input: PutAccessGrantsInstanceResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/resourcepolicy"; + b.bp("/v20180820/accessgrantsinstance/resourcepolicy"); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutAccessGrantsInstanceResourcePolicyRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Organization !== undefined) { - const node = __XmlNode.of("Organization", input.Organization).withName("Organization"); - bodyNode.addChildNode(node); - } - if (input.Policy !== undefined) { - const node = __XmlNode.of("PolicyDocument", input.Policy).withName("Policy"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PAGIRPR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.cc(input, _Or); + if (input[_Po] != null) { + bn.c(__XmlNode.of(_PD, input[_Po]).n(_Po)); + } + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -3460,15 +2806,9 @@ export const se_PutAccessGrantsInstanceResourcePolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3478,24 +2818,21 @@ export const se_PutAccessPointConfigurationForObjectLambdaCommand = async ( input: PutAccessPointConfigurationForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}/configuration"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}/configuration"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutAccessPointConfigurationForObjectLambdaRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Configuration !== undefined) { - const node = se_ObjectLambdaConfiguration(input.Configuration, context).withName("Configuration"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PAPCFOLR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_C] != null) { + bn.c(se_ObjectLambdaConfiguration(input[_C], context).n(_C)); + } + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -3507,15 +2844,9 @@ export const se_PutAccessPointConfigurationForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3525,23 +2856,19 @@ export const se_PutAccessPointPolicyCommand = async ( input: PutAccessPointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/accesspoint/{Name}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspoint/{Name}/policy"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutAccessPointPolicyRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Policy !== undefined) { - const node = __XmlNode.of("Policy", input.Policy).withName("Policy"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PAPPR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.cc(input, _Po); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -3553,15 +2880,9 @@ export const se_PutAccessPointPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3571,24 +2892,21 @@ export const se_PutAccessPointPolicyForObjectLambdaCommand = async ( input: PutAccessPointPolicyForObjectLambdaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accesspointforobjectlambda/{Name}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/accesspointforobjectlambda/{Name}/policy"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutAccessPointPolicyForObjectLambdaRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Policy !== undefined) { - const node = __XmlNode.of("ObjectLambdaPolicy", input.Policy).withName("Policy"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PAPPFOLR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_Po] != null) { + bn.c(__XmlNode.of(_OLP, input[_Po]).n(_Po)); + } + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -3600,15 +2918,9 @@ export const se_PutAccessPointPolicyForObjectLambdaCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3618,21 +2930,19 @@ export const se_PutBucketLifecycleConfigurationCommand = async ( input: PutBucketLifecycleConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/bucket/{Bucket}/lifecycleconfiguration"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/lifecycleconfiguration"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let contents: any; if (input.LifecycleConfiguration !== undefined) { contents = se_LifecycleConfiguration(input.LifecycleConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + body = _ve; + contents.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); body += contents.toString(); } let { hostname: resolvedHostname } = await context.endpoint(); @@ -3646,15 +2956,9 @@ export const se_PutBucketLifecycleConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3664,27 +2968,20 @@ export const se_PutBucketPolicyCommand = async ( input: PutBucketPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, - "x-amz-confirm-remove-self-bucket-access": [ - () => isSerializableHeaderValue(input.ConfirmRemoveSelfBucketAccess), - () => input.ConfirmRemoveSelfBucketAccess!.toString(), - ], + [_xaai]: input[_AI]!, + [_xacrsba]: [() => isSerializableHeaderValue(input[_CRSBA]), () => input[_CRSBA]!.toString()], }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/policy"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/policy"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutBucketPolicyRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Policy !== undefined) { - const node = __XmlNode.of("Policy", input.Policy).withName("Policy"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PBPR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.cc(input, _Po); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -3696,15 +2993,9 @@ export const se_PutBucketPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3714,20 +3005,19 @@ export const se_PutBucketReplicationCommand = async ( input: PutBucketReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/replication"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/replication"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let contents: any; if (input.ReplicationConfiguration !== undefined) { contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + body = _ve; + contents.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); body += contents.toString(); } let { hostname: resolvedHostname } = await context.endpoint(); @@ -3741,15 +3031,9 @@ export const se_PutBucketReplicationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3759,20 +3043,19 @@ export const se_PutBucketTaggingCommand = async ( input: PutBucketTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/tagging"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let contents: any; if (input.Tagging !== undefined) { contents = se_Tagging(input.Tagging, context); - body = ''; - contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + body = _ve; + contents.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); body += contents.toString(); } let { hostname: resolvedHostname } = await context.endpoint(); @@ -3786,15 +3069,9 @@ export const se_PutBucketTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3804,21 +3081,20 @@ export const se_PutBucketVersioningCommand = async ( input: PutBucketVersioningCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, - "x-amz-mfa": input.MFA!, + [_xaai]: input[_AI]!, + [_xam]: input[_MFA]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/bucket/{Bucket}/versioning"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/v20180820/bucket/{Bucket}/versioning"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let contents: any; if (input.VersioningConfiguration !== undefined) { contents = se_VersioningConfiguration(input.VersioningConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + body = _ve; + contents.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); body += contents.toString(); } let { hostname: resolvedHostname } = await context.endpoint(); @@ -3832,15 +3108,9 @@ export const se_PutBucketVersioningCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3850,27 +3120,19 @@ export const se_PutJobTaggingCommand = async ( input: PutJobTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v20180820/jobs/{JobId}/tagging"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutJobTaggingRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Tags !== undefined) { - const nodes = se_S3TagSet(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PJTR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.lc(input, "Tags", "Tags", () => se_S3TagSet(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -3882,15 +3144,9 @@ export const se_PutJobTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3900,29 +3156,26 @@ export const se_PutMultiRegionAccessPointPolicyCommand = async ( input: PutMultiRegionAccessPointPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/async-requests/mrap/put-policy"; + b.bp("/v20180820/async-requests/mrap/put-policy"); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutMultiRegionAccessPointPolicyRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.ClientToken === undefined) { - input.ClientToken = generateIdempotencyToken(); + body = _ve; + const bn = new __XmlNode(_PMRAPPR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_CT] === undefined) { + input[_CT] = generateIdempotencyToken(); } - if (input.ClientToken !== undefined) { - const node = __XmlNode.of("MultiRegionAccessPointClientToken", input.ClientToken).withName("ClientToken"); - bodyNode.addChildNode(node); + if (input[_CT] != null) { + bn.c(__XmlNode.of(_MRAPCT, input[_CT]).n(_CT)); } - if (input.Details !== undefined) { - const node = se_PutMultiRegionAccessPointPolicyInput(input.Details, context).withName("Details"); - bodyNode.addChildNode(node); + if (input[_De] != null) { + bn.c(se_PutMultiRegionAccessPointPolicyInput(input[_De], context).n(_De)); } - body += bodyNode.toString(); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -3934,15 +3187,9 @@ export const se_PutMultiRegionAccessPointPolicyCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3952,20 +3199,18 @@ export const se_PutPublicAccessBlockCommand = async ( input: PutPublicAccessBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/configuration/publicAccessBlock"; + b.bp("/v20180820/configuration/publicAccessBlock"); let body: any; let contents: any; if (input.PublicAccessBlockConfiguration !== undefined) { contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + body = _ve; + contents.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); body += contents.toString(); } let { hostname: resolvedHostname } = await context.endpoint(); @@ -3979,15 +3224,9 @@ export const se_PutPublicAccessBlockCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3997,33 +3236,22 @@ export const se_PutStorageLensConfigurationCommand = async ( input: PutStorageLensConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ConfigId", () => input.ConfigId!, "{ConfigId}", false); + b.bp("/v20180820/storagelens/{ConfigId}"); + b.p("ConfigId", () => input.ConfigId!, "{ConfigId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutStorageLensConfigurationRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.StorageLensConfiguration !== undefined) { - const node = se_StorageLensConfiguration(input.StorageLensConfiguration, context).withName( - "StorageLensConfiguration" - ); - bodyNode.addChildNode(node); - } - if (input.Tags !== undefined) { - const nodes = se_StorageLensTags(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PSLCR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_SLC] != null) { + bn.c(se_StorageLensConfiguration(input[_SLC], context).n(_SLC)); + } + bn.lc(input, "Tags", "Tags", () => se_StorageLensTags(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -4035,15 +3263,9 @@ export const se_PutStorageLensConfigurationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4053,27 +3275,19 @@ export const se_PutStorageLensConfigurationTaggingCommand = async ( input: PutStorageLensConfigurationTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelens/{ConfigId}/tagging"; - resolvedPath = __resolvedPath(resolvedPath, input, "ConfigId", () => input.ConfigId!, "{ConfigId}", false); + b.bp("/v20180820/storagelens/{ConfigId}/tagging"); + b.p("ConfigId", () => input.ConfigId!, "{ConfigId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutStorageLensConfigurationTaggingRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Tags !== undefined) { - const nodes = se_StorageLensTags(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_PSLCTR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.lc(input, "Tags", "Tags", () => se_StorageLensTags(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -4085,15 +3299,9 @@ export const se_PutStorageLensConfigurationTaggingCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4103,27 +3311,19 @@ export const se_SubmitMultiRegionAccessPointRoutesCommand = async ( input: SubmitMultiRegionAccessPointRoutesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/mrap/instances/{Mrap+}/routes"; - resolvedPath = __resolvedPath(resolvedPath, input, "Mrap", () => input.Mrap!, "{Mrap+}", true); + b.bp("/v20180820/mrap/instances/{Mrap+}/routes"); + b.p("Mrap", () => input.Mrap!, "{Mrap+}", true); let body: any; - body = ''; - const bodyNode = new __XmlNode("SubmitMultiRegionAccessPointRoutesRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.RouteUpdates !== undefined) { - const nodes = se_RouteList(input.RouteUpdates, context); - const containerNode = new __XmlNode("RouteUpdates"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_SMRAPRR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.lc(input, "RouteUpdates", "RouteUpdates", () => se_RouteList(input[_RU]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -4135,15 +3335,9 @@ export const se_SubmitMultiRegionAccessPointRoutesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -4153,27 +3347,19 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/tags/{ResourceArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn+}", true); + b.bp("/v20180820/tags/{ResourceArn+}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn+}", true); let body: any; - body = ''; - const bodyNode = new __XmlNode("TagResourceRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.Tags !== undefined) { - const nodes = se_TagList(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_TRR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.lc(input, "Tags", "Tags", () => se_TagList(input[_T]!, context)); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -4185,15 +3371,9 @@ export const se_TagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4203,17 +3383,16 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/tags/{ResourceArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn+}", true); + b.bp("/v20180820/tags/{ResourceArn+}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn+}", true); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -4228,16 +3407,9 @@ export const se_UntagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4247,31 +3419,19 @@ export const se_UpdateAccessGrantsLocationCommand = async ( input: UpdateAccessGrantsLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "AccessGrantsLocationId", - () => input.AccessGrantsLocationId!, - "{AccessGrantsLocationId}", - false - ); + [_xaai]: input[_AI]!, + }); + b.bp("/v20180820/accessgrantsinstance/location/{AccessGrantsLocationId}"); + b.p("AccessGrantsLocationId", () => input.AccessGrantsLocationId!, "{AccessGrantsLocationId}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateAccessGrantsLocationRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.IAMRoleArn !== undefined) { - const node = __XmlNode.of("IAMRoleArn", input.IAMRoleArn).withName("IAMRoleArn"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_UAGLR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + bn.cc(input, _IAMRA); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -4283,15 +3443,9 @@ export const se_UpdateAccessGrantsLocationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4301,15 +3455,14 @@ export const se_UpdateJobPriorityCommand = async ( input: UpdateJobPriorityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/priority"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v20180820/jobs/{JobId}/priority"); + b.p("JobId", () => input.JobId!, "{JobId}", false); const query: any = map({ - priority: [__expectNonNull(input.Priority, `Priority`) != null, () => input.Priority!.toString()], + [_pri]: [__expectNonNull(input.Priority, `Priority`) != null, () => input[_Pr]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4323,16 +3476,9 @@ export const se_UpdateJobPriorityCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4342,16 +3488,15 @@ export const se_UpdateJobStatusCommand = async ( input: UpdateJobStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/jobs/{JobId}/status"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v20180820/jobs/{JobId}/status"); + b.p("JobId", () => input.JobId!, "{JobId}", false); const query: any = map({ - requestedJobStatus: [, __expectNonNull(input.RequestedJobStatus!, `RequestedJobStatus`)], - statusUpdateReason: [, input.StatusUpdateReason!], + [_rJS]: [, __expectNonNull(input[_RJS]!, `RequestedJobStatus`)], + [_sUR]: [, input[_SUR]!], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -4365,16 +3510,9 @@ export const se_UpdateJobStatusCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -4384,23 +3522,21 @@ export const se_UpdateStorageLensGroupCommand = async ( input: UpdateStorageLensGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-account-id": input.AccountId!, + [_xaai]: input[_AI]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/v20180820/storagelensgroup/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - body = ''; - const bodyNode = new __XmlNode("UpdateStorageLensGroupRequest"); - bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); - if (input.StorageLensGroup !== undefined) { - const node = se_StorageLensGroup(input.StorageLensGroup, context).withName("StorageLensGroup"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); + body = _ve; + const bn = new __XmlNode(_USLGR); + bn.a("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/"); + if (input[_SLG] != null) { + bn.c(se_StorageLensGroup(input[_SLG], context).n(_SLG)); + } + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "{AccountId}." + resolvedHostname; @@ -4412,15 +3548,9 @@ export const se_UpdateStorageLensGroupCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -4474,35 +3604,32 @@ export const de_CreateAccessGrantCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantArn"] !== undefined) { - contents.AccessGrantArn = __expectString(data["AccessGrantArn"]); + if (data[_AGA] != null) { + contents[_AGA] = __expectString(data[_AGA]); } - if (data["AccessGrantId"] !== undefined) { - contents.AccessGrantId = __expectString(data["AccessGrantId"]); + if (data[_AGI] != null) { + contents[_AGI] = __expectString(data[_AGI]); } - if (data["AccessGrantsLocationConfiguration"] !== undefined) { - contents.AccessGrantsLocationConfiguration = de_AccessGrantsLocationConfiguration( - data["AccessGrantsLocationConfiguration"], - context - ); + if (data[_AGLC] != null) { + contents[_AGLC] = de_AccessGrantsLocationConfiguration(data[_AGLC], context); } - if (data["AccessGrantsLocationId"] !== undefined) { - contents.AccessGrantsLocationId = __expectString(data["AccessGrantsLocationId"]); + if (data[_AGLI] != null) { + contents[_AGLI] = __expectString(data[_AGLI]); } - if (data["ApplicationArn"] !== undefined) { - contents.ApplicationArn = __expectString(data["ApplicationArn"]); + if (data[_AA] != null) { + contents[_AA] = __expectString(data[_AA]); } - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["GrantScope"] !== undefined) { - contents.GrantScope = __expectString(data["GrantScope"]); + if (data[_GS] != null) { + contents[_GS] = __expectString(data[_GS]); } - if (data["Grantee"] !== undefined) { - contents.Grantee = de_Grantee(data["Grantee"], context); + if (data[_G] != null) { + contents[_G] = de_Grantee(data[_G], context); } - if (data["Permission"] !== undefined) { - contents.Permission = __expectString(data["Permission"]); + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); } return contents; }; @@ -4541,17 +3668,17 @@ export const de_CreateAccessGrantsInstanceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantsInstanceArn"] !== undefined) { - contents.AccessGrantsInstanceArn = __expectString(data["AccessGrantsInstanceArn"]); + if (data[_AGIA] != null) { + contents[_AGIA] = __expectString(data[_AGIA]); } - if (data["AccessGrantsInstanceId"] !== undefined) { - contents.AccessGrantsInstanceId = __expectString(data["AccessGrantsInstanceId"]); + if (data[_AGII] != null) { + contents[_AGII] = __expectString(data[_AGII]); } - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["IdentityCenterArn"] !== undefined) { - contents.IdentityCenterArn = __expectString(data["IdentityCenterArn"]); + if (data[_ICA] != null) { + contents[_ICA] = __expectString(data[_ICA]); } return contents; }; @@ -4590,20 +3717,20 @@ export const de_CreateAccessGrantsLocationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantsLocationArn"] !== undefined) { - contents.AccessGrantsLocationArn = __expectString(data["AccessGrantsLocationArn"]); + if (data[_AGLA] != null) { + contents[_AGLA] = __expectString(data[_AGLA]); } - if (data["AccessGrantsLocationId"] !== undefined) { - contents.AccessGrantsLocationId = __expectString(data["AccessGrantsLocationId"]); + if (data[_AGLI] != null) { + contents[_AGLI] = __expectString(data[_AGLI]); } - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["IAMRoleArn"] !== undefined) { - contents.IAMRoleArn = __expectString(data["IAMRoleArn"]); + if (data[_IAMRA] != null) { + contents[_IAMRA] = __expectString(data[_IAMRA]); } - if (data["LocationScope"] !== undefined) { - contents.LocationScope = __expectString(data["LocationScope"]); + if (data[_LS] != null) { + contents[_LS] = __expectString(data[_LS]); } return contents; }; @@ -4642,11 +3769,11 @@ export const de_CreateAccessPointCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessPointArn"] !== undefined) { - contents.AccessPointArn = __expectString(data["AccessPointArn"]); + if (data[_APA] != null) { + contents[_APA] = __expectString(data[_APA]); } - if (data["Alias"] !== undefined) { - contents.Alias = __expectString(data["Alias"]); + if (data[_A] != null) { + contents[_A] = __expectString(data[_A]); } return contents; }; @@ -4685,11 +3812,11 @@ export const de_CreateAccessPointForObjectLambdaCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Alias"] !== undefined) { - contents.Alias = de_ObjectLambdaAccessPointAlias(data["Alias"], context); + if (data[_A] != null) { + contents[_A] = de_ObjectLambdaAccessPointAlias(data[_A], context); } - if (data["ObjectLambdaAccessPointArn"] !== undefined) { - contents.ObjectLambdaAccessPointArn = __expectString(data["ObjectLambdaAccessPointArn"]); + if (data[_OLAPA] != null) { + contents[_OLAPA] = __expectString(data[_OLAPA]); } return contents; }; @@ -4726,11 +3853,11 @@ export const de_CreateBucketCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_lo]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["BucketArn"] !== undefined) { - contents.BucketArn = __expectString(data["BucketArn"]); + if (data[_BA] != null) { + contents[_BA] = __expectString(data[_BA]); } return contents; }; @@ -4778,8 +3905,8 @@ export const de_CreateJobCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["JobId"] !== undefined) { - contents.JobId = __expectString(data["JobId"]); + if (data[_JI] != null) { + contents[_JI] = __expectString(data[_JI]); } return contents; }; @@ -4833,8 +3960,8 @@ export const de_CreateMultiRegionAccessPointCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["RequestTokenARN"] !== undefined) { - contents.RequestTokenARN = __expectString(data["RequestTokenARN"]); + if (data[_RTARN] != null) { + contents[_RTARN] = __expectString(data[_RTARN]); } return contents; }; @@ -5440,8 +4567,8 @@ export const de_DeleteMultiRegionAccessPointCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["RequestTokenARN"] !== undefined) { - contents.RequestTokenARN = __expectString(data["RequestTokenARN"]); + if (data[_RTARN] != null) { + contents[_RTARN] = __expectString(data[_RTARN]); } return contents; }; @@ -5628,8 +4755,8 @@ export const de_DescribeJobCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Job"] !== undefined) { - contents.Job = de_JobDescriptor(data["Job"], context); + if (data[_J] != null) { + contents[_J] = de_JobDescriptor(data[_J], context); } return contents; }; @@ -5683,8 +4810,8 @@ export const de_DescribeMultiRegionAccessPointOperationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AsyncOperation"] !== undefined) { - contents.AsyncOperation = de_AsyncOperation(data["AsyncOperation"], context); + if (data[_AO] != null) { + contents[_AO] = de_AsyncOperation(data[_AO], context); } return contents; }; @@ -5760,35 +4887,32 @@ export const de_GetAccessGrantCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantArn"] !== undefined) { - contents.AccessGrantArn = __expectString(data["AccessGrantArn"]); + if (data[_AGA] != null) { + contents[_AGA] = __expectString(data[_AGA]); } - if (data["AccessGrantId"] !== undefined) { - contents.AccessGrantId = __expectString(data["AccessGrantId"]); + if (data[_AGI] != null) { + contents[_AGI] = __expectString(data[_AGI]); } - if (data["AccessGrantsLocationConfiguration"] !== undefined) { - contents.AccessGrantsLocationConfiguration = de_AccessGrantsLocationConfiguration( - data["AccessGrantsLocationConfiguration"], - context - ); + if (data[_AGLC] != null) { + contents[_AGLC] = de_AccessGrantsLocationConfiguration(data[_AGLC], context); } - if (data["AccessGrantsLocationId"] !== undefined) { - contents.AccessGrantsLocationId = __expectString(data["AccessGrantsLocationId"]); + if (data[_AGLI] != null) { + contents[_AGLI] = __expectString(data[_AGLI]); } - if (data["ApplicationArn"] !== undefined) { - contents.ApplicationArn = __expectString(data["ApplicationArn"]); + if (data[_AA] != null) { + contents[_AA] = __expectString(data[_AA]); } - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["GrantScope"] !== undefined) { - contents.GrantScope = __expectString(data["GrantScope"]); + if (data[_GS] != null) { + contents[_GS] = __expectString(data[_GS]); } - if (data["Grantee"] !== undefined) { - contents.Grantee = de_Grantee(data["Grantee"], context); + if (data[_G] != null) { + contents[_G] = de_Grantee(data[_G], context); } - if (data["Permission"] !== undefined) { - contents.Permission = __expectString(data["Permission"]); + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); } return contents; }; @@ -5827,17 +4951,17 @@ export const de_GetAccessGrantsInstanceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantsInstanceArn"] !== undefined) { - contents.AccessGrantsInstanceArn = __expectString(data["AccessGrantsInstanceArn"]); + if (data[_AGIA] != null) { + contents[_AGIA] = __expectString(data[_AGIA]); } - if (data["AccessGrantsInstanceId"] !== undefined) { - contents.AccessGrantsInstanceId = __expectString(data["AccessGrantsInstanceId"]); + if (data[_AGII] != null) { + contents[_AGII] = __expectString(data[_AGII]); } - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["IdentityCenterArn"] !== undefined) { - contents.IdentityCenterArn = __expectString(data["IdentityCenterArn"]); + if (data[_ICA] != null) { + contents[_ICA] = __expectString(data[_ICA]); } return contents; }; @@ -5876,11 +5000,11 @@ export const de_GetAccessGrantsInstanceForPrefixCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantsInstanceArn"] !== undefined) { - contents.AccessGrantsInstanceArn = __expectString(data["AccessGrantsInstanceArn"]); + if (data[_AGIA] != null) { + contents[_AGIA] = __expectString(data[_AGIA]); } - if (data["AccessGrantsInstanceId"] !== undefined) { - contents.AccessGrantsInstanceId = __expectString(data["AccessGrantsInstanceId"]); + if (data[_AGII] != null) { + contents[_AGII] = __expectString(data[_AGII]); } return contents; }; @@ -5919,14 +5043,14 @@ export const de_GetAccessGrantsInstanceResourcePolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["Organization"] !== undefined) { - contents.Organization = __expectString(data["Organization"]); + if (data[_Or] != null) { + contents[_Or] = __expectString(data[_Or]); } - if (data["Policy"] !== undefined) { - contents.Policy = __expectString(data["Policy"]); + if (data[_Po] != null) { + contents[_Po] = __expectString(data[_Po]); } return contents; }; @@ -5965,20 +5089,20 @@ export const de_GetAccessGrantsLocationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantsLocationArn"] !== undefined) { - contents.AccessGrantsLocationArn = __expectString(data["AccessGrantsLocationArn"]); + if (data[_AGLA] != null) { + contents[_AGLA] = __expectString(data[_AGLA]); } - if (data["AccessGrantsLocationId"] !== undefined) { - contents.AccessGrantsLocationId = __expectString(data["AccessGrantsLocationId"]); + if (data[_AGLI] != null) { + contents[_AGLI] = __expectString(data[_AGLI]); } - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["IAMRoleArn"] !== undefined) { - contents.IAMRoleArn = __expectString(data["IAMRoleArn"]); + if (data[_IAMRA] != null) { + contents[_IAMRA] = __expectString(data[_IAMRA]); } - if (data["LocationScope"] !== undefined) { - contents.LocationScope = __expectString(data["LocationScope"]); + if (data[_LS] != null) { + contents[_LS] = __expectString(data[_LS]); } return contents; }; @@ -6017,40 +5141,37 @@ export const de_GetAccessPointCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessPointArn"] !== undefined) { - contents.AccessPointArn = __expectString(data["AccessPointArn"]); + if (data[_APA] != null) { + contents[_APA] = __expectString(data[_APA]); } - if (data["Alias"] !== undefined) { - contents.Alias = __expectString(data["Alias"]); + if (data[_A] != null) { + contents[_A] = __expectString(data[_A]); } - if (data["Bucket"] !== undefined) { - contents.Bucket = __expectString(data["Bucket"]); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); } - if (data["BucketAccountId"] !== undefined) { - contents.BucketAccountId = __expectString(data["BucketAccountId"]); + if (data[_BAI] != null) { + contents[_BAI] = __expectString(data[_BAI]); } - if (data["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreationDate"])); + if (data[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CD])); } if (data.Endpoints === "") { - contents.Endpoints = {}; - } else if (data["Endpoints"] !== undefined && data["Endpoints"]["entry"] !== undefined) { - contents.Endpoints = de_Endpoints(__getArrayIfSingleItem(data["Endpoints"]["entry"]), context); + contents[_E] = {}; + } else if (data[_E] != null && data[_E][_e] != null) { + contents[_E] = de_Endpoints(__getArrayIfSingleItem(data[_E][_e]), context); } - if (data["Name"] !== undefined) { - contents.Name = __expectString(data["Name"]); + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); } - if (data["NetworkOrigin"] !== undefined) { - contents.NetworkOrigin = __expectString(data["NetworkOrigin"]); + if (data[_NO] != null) { + contents[_NO] = __expectString(data[_NO]); } - if (data["PublicAccessBlockConfiguration"] !== undefined) { - contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration( - data["PublicAccessBlockConfiguration"], - context - ); + if (data[_PABC] != null) { + contents[_PABC] = de_PublicAccessBlockConfiguration(data[_PABC], context); } - if (data["VpcConfiguration"] !== undefined) { - contents.VpcConfiguration = de_VpcConfiguration(data["VpcConfiguration"], context); + if (data[_VC] != null) { + contents[_VC] = de_VpcConfiguration(data[_VC], context); } return contents; }; @@ -6089,8 +5210,8 @@ export const de_GetAccessPointConfigurationForObjectLambdaCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Configuration"] !== undefined) { - contents.Configuration = de_ObjectLambdaConfiguration(data["Configuration"], context); + if (data[_C] != null) { + contents[_C] = de_ObjectLambdaConfiguration(data[_C], context); } return contents; }; @@ -6129,20 +5250,17 @@ export const de_GetAccessPointForObjectLambdaCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Alias"] !== undefined) { - contents.Alias = de_ObjectLambdaAccessPointAlias(data["Alias"], context); + if (data[_A] != null) { + contents[_A] = de_ObjectLambdaAccessPointAlias(data[_A], context); } - if (data["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreationDate"])); + if (data[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CD])); } - if (data["Name"] !== undefined) { - contents.Name = __expectString(data["Name"]); + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); } - if (data["PublicAccessBlockConfiguration"] !== undefined) { - contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration( - data["PublicAccessBlockConfiguration"], - context - ); + if (data[_PABC] != null) { + contents[_PABC] = de_PublicAccessBlockConfiguration(data[_PABC], context); } return contents; }; @@ -6181,8 +5299,8 @@ export const de_GetAccessPointPolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Policy"] !== undefined) { - contents.Policy = __expectString(data["Policy"]); + if (data[_Po] != null) { + contents[_Po] = __expectString(data[_Po]); } return contents; }; @@ -6221,8 +5339,8 @@ export const de_GetAccessPointPolicyForObjectLambdaCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Policy"] !== undefined) { - contents.Policy = __expectString(data["Policy"]); + if (data[_Po] != null) { + contents[_Po] = __expectString(data[_Po]); } return contents; }; @@ -6261,8 +5379,8 @@ export const de_GetAccessPointPolicyStatusCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["PolicyStatus"] !== undefined) { - contents.PolicyStatus = de_PolicyStatus(data["PolicyStatus"], context); + if (data[_PS] != null) { + contents[_PS] = de_PolicyStatus(data[_PS], context); } return contents; }; @@ -6301,8 +5419,8 @@ export const de_GetAccessPointPolicyStatusForObjectLambdaCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["PolicyStatus"] !== undefined) { - contents.PolicyStatus = de_PolicyStatus(data["PolicyStatus"], context); + if (data[_PS] != null) { + contents[_PS] = de_PolicyStatus(data[_PS], context); } return contents; }; @@ -6341,14 +5459,14 @@ export const de_GetBucketCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Bucket"] !== undefined) { - contents.Bucket = __expectString(data["Bucket"]); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); } - if (data["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreationDate"])); + if (data[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CD])); } - if (data["PublicAccessBlockEnabled"] !== undefined) { - contents.PublicAccessBlockEnabled = __parseBoolean(data["PublicAccessBlockEnabled"]); + if (data[_PABE] != null) { + contents[_PABE] = __parseBoolean(data[_PABE]); } return contents; }; @@ -6388,9 +5506,9 @@ export const de_GetBucketLifecycleConfigurationCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Rules === "") { - contents.Rules = []; - } else if (data["Rules"] !== undefined && data["Rules"]["Rule"] !== undefined) { - contents.Rules = de_LifecycleRules(__getArrayIfSingleItem(data["Rules"]["Rule"]), context); + contents[_Ru] = []; + } else if (data[_Ru] != null && data[_Ru][_Rul] != null) { + contents[_Ru] = de_LifecycleRules(__getArrayIfSingleItem(data[_Ru][_Rul]), context); } return contents; }; @@ -6429,8 +5547,8 @@ export const de_GetBucketPolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Policy"] !== undefined) { - contents.Policy = __expectString(data["Policy"]); + if (data[_Po] != null) { + contents[_Po] = __expectString(data[_Po]); } return contents; }; @@ -6469,8 +5587,8 @@ export const de_GetBucketReplicationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ReplicationConfiguration"] !== undefined) { - contents.ReplicationConfiguration = de_ReplicationConfiguration(data["ReplicationConfiguration"], context); + if (data[_RC] != null) { + contents[_RC] = de_ReplicationConfiguration(data[_RC], context); } return contents; }; @@ -6510,9 +5628,9 @@ export const de_GetBucketTaggingCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.TagSet === "") { - contents.TagSet = []; - } else if (data["TagSet"] !== undefined && data["TagSet"]["member"] !== undefined) { - contents.TagSet = de_S3TagSet(__getArrayIfSingleItem(data["TagSet"]["member"]), context); + contents[_TS] = []; + } else if (data[_TS] != null && data[_TS][_m] != null) { + contents[_TS] = de_S3TagSet(__getArrayIfSingleItem(data[_TS][_m]), context); } return contents; }; @@ -6551,11 +5669,11 @@ export const de_GetBucketVersioningCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["MfaDelete"] !== undefined) { - contents.MFADelete = __expectString(data["MfaDelete"]); + if (data[_MD] != null) { + contents[_MFAD] = __expectString(data[_MD]); } - if (data["Status"] !== undefined) { - contents.Status = __expectString(data["Status"]); + if (data[_S] != null) { + contents[_S] = __expectString(data[_S]); } return contents; }; @@ -6594,11 +5712,11 @@ export const de_GetDataAccessCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(data["Credentials"], context); + if (data[_Cr] != null) { + contents[_Cr] = de_Credentials(data[_Cr], context); } - if (data["MatchedGrantTarget"] !== undefined) { - contents.MatchedGrantTarget = __expectString(data["MatchedGrantTarget"]); + if (data[_MGT] != null) { + contents[_MGT] = __expectString(data[_MGT]); } return contents; }; @@ -6638,9 +5756,9 @@ export const de_GetJobTaggingCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Tags === "") { - contents.Tags = []; - } else if (data["Tags"] !== undefined && data["Tags"]["member"] !== undefined) { - contents.Tags = de_S3TagSet(__getArrayIfSingleItem(data["Tags"]["member"]), context); + contents[_T] = []; + } else if (data[_T] != null && data[_T][_m] != null) { + contents[_T] = de_S3TagSet(__getArrayIfSingleItem(data[_T][_m]), context); } return contents; }; @@ -6691,8 +5809,8 @@ export const de_GetMultiRegionAccessPointCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessPoint"] !== undefined) { - contents.AccessPoint = de_MultiRegionAccessPointReport(data["AccessPoint"], context); + if (data[_AP] != null) { + contents[_AP] = de_MultiRegionAccessPointReport(data[_AP], context); } return contents; }; @@ -6731,8 +5849,8 @@ export const de_GetMultiRegionAccessPointPolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Policy"] !== undefined) { - contents.Policy = de_MultiRegionAccessPointPolicyDocument(data["Policy"], context); + if (data[_Po] != null) { + contents[_Po] = de_MultiRegionAccessPointPolicyDocument(data[_Po], context); } return contents; }; @@ -6771,8 +5889,8 @@ export const de_GetMultiRegionAccessPointPolicyStatusCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Established"] !== undefined) { - contents.Established = de_PolicyStatus(data["Established"], context); + if (data[_Es] != null) { + contents[_Es] = de_PolicyStatus(data[_Es], context); } return contents; }; @@ -6811,13 +5929,13 @@ export const de_GetMultiRegionAccessPointRoutesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Mrap"] !== undefined) { - contents.Mrap = __expectString(data["Mrap"]); + if (data[_Mr] != null) { + contents[_Mr] = __expectString(data[_Mr]); } if (data.Routes === "") { - contents.Routes = []; - } else if (data["Routes"] !== undefined && data["Routes"]["Route"] !== undefined) { - contents.Routes = de_RouteList(__getArrayIfSingleItem(data["Routes"]["Route"]), context); + contents[_Ro] = []; + } else if (data[_Ro] != null && data[_Ro][_Rou] != null) { + contents[_Ro] = de_RouteList(__getArrayIfSingleItem(data[_Ro][_Rou]), context); } return contents; }; @@ -6939,9 +6057,9 @@ export const de_GetStorageLensConfigurationTaggingCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Tags === "") { - contents.Tags = []; - } else if (data["Tags"] !== undefined && data["Tags"]["Tag"] !== undefined) { - contents.Tags = de_StorageLensTags(__getArrayIfSingleItem(data["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (data[_T] != null && data[_T][_Tag] != null) { + contents[_T] = de_StorageLensTags(__getArrayIfSingleItem(data[_T][_Tag]), context); } return contents; }; @@ -7019,15 +6137,12 @@ export const de_ListAccessGrantsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AccessGrantsList === "") { - contents.AccessGrantsList = []; - } else if (data["AccessGrantsList"] !== undefined && data["AccessGrantsList"]["AccessGrant"] !== undefined) { - contents.AccessGrantsList = de_AccessGrantsList( - __getArrayIfSingleItem(data["AccessGrantsList"]["AccessGrant"]), - context - ); + contents[_AGL] = []; + } else if (data[_AGL] != null && data[_AGL][_AG] != null) { + contents[_AGL] = de_AccessGrantsList(__getArrayIfSingleItem(data[_AGL][_AG]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -7067,18 +6182,12 @@ export const de_ListAccessGrantsInstancesCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AccessGrantsInstancesList === "") { - contents.AccessGrantsInstancesList = []; - } else if ( - data["AccessGrantsInstancesList"] !== undefined && - data["AccessGrantsInstancesList"]["AccessGrantsInstance"] !== undefined - ) { - contents.AccessGrantsInstancesList = de_AccessGrantsInstancesList( - __getArrayIfSingleItem(data["AccessGrantsInstancesList"]["AccessGrantsInstance"]), - context - ); + contents[_AGIL] = []; + } else if (data[_AGIL] != null && data[_AGIL][_AGIc] != null) { + contents[_AGIL] = de_AccessGrantsInstancesList(__getArrayIfSingleItem(data[_AGIL][_AGIc]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -7118,18 +6227,12 @@ export const de_ListAccessGrantsLocationsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AccessGrantsLocationsList === "") { - contents.AccessGrantsLocationsList = []; - } else if ( - data["AccessGrantsLocationsList"] !== undefined && - data["AccessGrantsLocationsList"]["AccessGrantsLocation"] !== undefined - ) { - contents.AccessGrantsLocationsList = de_AccessGrantsLocationsList( - __getArrayIfSingleItem(data["AccessGrantsLocationsList"]["AccessGrantsLocation"]), - context - ); + contents[_AGLL] = []; + } else if (data[_AGLL] != null && data[_AGLL][_AGLc] != null) { + contents[_AGLL] = de_AccessGrantsLocationsList(__getArrayIfSingleItem(data[_AGLL][_AGLc]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -7169,15 +6272,12 @@ export const de_ListAccessPointsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AccessPointList === "") { - contents.AccessPointList = []; - } else if (data["AccessPointList"] !== undefined && data["AccessPointList"]["AccessPoint"] !== undefined) { - contents.AccessPointList = de_AccessPointList( - __getArrayIfSingleItem(data["AccessPointList"]["AccessPoint"]), - context - ); + contents[_APL] = []; + } else if (data[_APL] != null && data[_APL][_AP] != null) { + contents[_APL] = de_AccessPointList(__getArrayIfSingleItem(data[_APL][_AP]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -7216,19 +6316,13 @@ export const de_ListAccessPointsForObjectLambdaCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } if (data.ObjectLambdaAccessPointList === "") { - contents.ObjectLambdaAccessPointList = []; - } else if ( - data["ObjectLambdaAccessPointList"] !== undefined && - data["ObjectLambdaAccessPointList"]["ObjectLambdaAccessPoint"] !== undefined - ) { - contents.ObjectLambdaAccessPointList = de_ObjectLambdaAccessPointList( - __getArrayIfSingleItem(data["ObjectLambdaAccessPointList"]["ObjectLambdaAccessPoint"]), - context - ); + contents[_OLAPL] = []; + } else if (data[_OLAPL] != null && data[_OLAPL][_OLAP] != null) { + contents[_OLAPL] = de_ObjectLambdaAccessPointList(__getArrayIfSingleItem(data[_OLAPL][_OLAP]), context); } return contents; }; @@ -7268,12 +6362,12 @@ export const de_ListJobsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Jobs === "") { - contents.Jobs = []; - } else if (data["Jobs"] !== undefined && data["Jobs"]["member"] !== undefined) { - contents.Jobs = de_JobListDescriptorList(__getArrayIfSingleItem(data["Jobs"]["member"]), context); + contents[_Jo] = []; + } else if (data[_Jo] != null && data[_Jo][_m] != null) { + contents[_Jo] = de_JobListDescriptorList(__getArrayIfSingleItem(data[_Jo][_m]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -7325,15 +6419,12 @@ export const de_ListMultiRegionAccessPointsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AccessPoints === "") { - contents.AccessPoints = []; - } else if (data["AccessPoints"] !== undefined && data["AccessPoints"]["AccessPoint"] !== undefined) { - contents.AccessPoints = de_MultiRegionAccessPointReportList( - __getArrayIfSingleItem(data["AccessPoints"]["AccessPoint"]), - context - ); + contents[_APc] = []; + } else if (data[_APc] != null && data[_APc][_AP] != null) { + contents[_APc] = de_MultiRegionAccessPointReportList(__getArrayIfSingleItem(data[_APc][_AP]), context); } - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } return contents; }; @@ -7372,16 +6463,13 @@ export const de_ListRegionalBucketsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } if (data.RegionalBucketList === "") { - contents.RegionalBucketList = []; - } else if (data["RegionalBucketList"] !== undefined && data["RegionalBucketList"]["RegionalBucket"] !== undefined) { - contents.RegionalBucketList = de_RegionalBucketList( - __getArrayIfSingleItem(data["RegionalBucketList"]["RegionalBucket"]), - context - ); + contents[_RBL] = []; + } else if (data[_RBL] != null && data[_RBL][_RB] != null) { + contents[_RBL] = de_RegionalBucketList(__getArrayIfSingleItem(data[_RBL][_RB]), context); } return contents; }; @@ -7420,16 +6508,13 @@ export const de_ListStorageLensConfigurationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } if (data.StorageLensConfigurationList === "") { - contents.StorageLensConfigurationList = []; - } else if (data["StorageLensConfigurationList"] !== undefined) { - contents.StorageLensConfigurationList = de_StorageLensConfigurationList( - __getArrayIfSingleItem(data["StorageLensConfigurationList"]), - context - ); + contents[_SLCL] = []; + } else if (data[_SLCL] != null) { + contents[_SLCL] = de_StorageLensConfigurationList(__getArrayIfSingleItem(data[_SLCL]), context); } return contents; }; @@ -7468,16 +6553,13 @@ export const de_ListStorageLensGroupsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["NextToken"] !== undefined) { - contents.NextToken = __expectString(data["NextToken"]); + if (data[_NT] != null) { + contents[_NT] = __expectString(data[_NT]); } if (data.StorageLensGroupList === "") { - contents.StorageLensGroupList = []; - } else if (data["StorageLensGroupList"] !== undefined) { - contents.StorageLensGroupList = de_StorageLensGroupList( - __getArrayIfSingleItem(data["StorageLensGroupList"]), - context - ); + contents[_SLGL] = []; + } else if (data[_SLGL] != null) { + contents[_SLGL] = de_StorageLensGroupList(__getArrayIfSingleItem(data[_SLGL]), context); } return contents; }; @@ -7517,9 +6599,9 @@ export const de_ListTagsForResourceCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Tags === "") { - contents.Tags = []; - } else if (data["Tags"] !== undefined && data["Tags"]["Tag"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(data["Tags"]["Tag"]), context); + contents[_T] = []; + } else if (data[_T] != null && data[_T][_Tag] != null) { + contents[_T] = de_TagList(__getArrayIfSingleItem(data[_T][_Tag]), context); } return contents; }; @@ -7558,14 +6640,14 @@ export const de_PutAccessGrantsInstanceResourcePolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["Organization"] !== undefined) { - contents.Organization = __expectString(data["Organization"]); + if (data[_Or] != null) { + contents[_Or] = __expectString(data[_Or]); } - if (data["Policy"] !== undefined) { - contents.Policy = __expectString(data["Policy"]); + if (data[_Po] != null) { + contents[_Po] = __expectString(data[_Po]); } return contents; }; @@ -7952,8 +7034,8 @@ export const de_PutMultiRegionAccessPointPolicyCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["RequestTokenARN"] !== undefined) { - contents.RequestTokenARN = __expectString(data["RequestTokenARN"]); + if (data[_RTARN] != null) { + contents[_RTARN] = __expectString(data[_RTARN]); } return contents; }; @@ -8214,20 +7296,20 @@ export const de_UpdateAccessGrantsLocationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["AccessGrantsLocationArn"] !== undefined) { - contents.AccessGrantsLocationArn = __expectString(data["AccessGrantsLocationArn"]); + if (data[_AGLA] != null) { + contents[_AGLA] = __expectString(data[_AGLA]); } - if (data["AccessGrantsLocationId"] !== undefined) { - contents.AccessGrantsLocationId = __expectString(data["AccessGrantsLocationId"]); + if (data[_AGLI] != null) { + contents[_AGLI] = __expectString(data[_AGLI]); } - if (data["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["CreatedAt"])); + if (data[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA])); } - if (data["IAMRoleArn"] !== undefined) { - contents.IAMRoleArn = __expectString(data["IAMRoleArn"]); + if (data[_IAMRA] != null) { + contents[_IAMRA] = __expectString(data[_IAMRA]); } - if (data["LocationScope"] !== undefined) { - contents.LocationScope = __expectString(data["LocationScope"]); + if (data[_LS] != null) { + contents[_LS] = __expectString(data[_LS]); } return contents; }; @@ -8266,11 +7348,11 @@ export const de_UpdateJobPriorityCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["JobId"] !== undefined) { - contents.JobId = __expectString(data["JobId"]); + if (data[_JI] != null) { + contents[_JI] = __expectString(data[_JI]); } - if (data["Priority"] !== undefined) { - contents.Priority = __strictParseInt32(data["Priority"]) as number; + if (data[_Pr] != null) { + contents[_Pr] = __strictParseInt32(data[_Pr]) as number; } return contents; }; @@ -8324,14 +7406,14 @@ export const de_UpdateJobStatusCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["JobId"] !== undefined) { - contents.JobId = __expectString(data["JobId"]); + if (data[_JI] != null) { + contents[_JI] = __expectString(data[_JI]); } - if (data["Status"] !== undefined) { - contents.Status = __expectString(data["Status"]); + if (data[_S] != null) { + contents[_S] = __expectString(data[_S]); } - if (data["StatusUpdateReason"] !== undefined) { - contents.StatusUpdateReason = __expectString(data["StatusUpdateReason"]); + if (data[_SUR] != null) { + contents[_SUR] = __expectString(data[_SUR]); } return contents; }; @@ -8418,8 +7500,8 @@ const throwDefaultError = withBaseException(__BaseException); const de_BadRequestExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new BadRequestException({ $metadata: deserializeMetadata(parsedOutput), @@ -8466,8 +7548,8 @@ const de_IdempotencyExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new IdempotencyException({ $metadata: deserializeMetadata(parsedOutput), @@ -8485,8 +7567,8 @@ const de_InternalServiceExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InternalServiceException({ $metadata: deserializeMetadata(parsedOutput), @@ -8504,8 +7586,8 @@ const de_InvalidNextTokenExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidNextTokenException({ $metadata: deserializeMetadata(parsedOutput), @@ -8523,8 +7605,8 @@ const de_InvalidRequestExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new InvalidRequestException({ $metadata: deserializeMetadata(parsedOutput), @@ -8539,8 +7621,8 @@ const de_InvalidRequestExceptionRes = async ( const de_JobStatusExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new JobStatusException({ $metadata: deserializeMetadata(parsedOutput), @@ -8558,8 +7640,8 @@ const de_NoSuchPublicAccessBlockConfigurationRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NoSuchPublicAccessBlockConfiguration({ $metadata: deserializeMetadata(parsedOutput), @@ -8574,8 +7656,8 @@ const de_NoSuchPublicAccessBlockConfigurationRes = async ( const de_NotFoundExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new NotFoundException({ $metadata: deserializeMetadata(parsedOutput), @@ -8593,8 +7675,8 @@ const de_TooManyRequestsExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyRequestsException({ $metadata: deserializeMetadata(parsedOutput), @@ -8612,8 +7694,8 @@ const de_TooManyTagsExceptionRes = async ( ): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_Me] != null) { + contents[_Me] = __expectString(data[_Me]); } const exception = new TooManyTagsException({ $metadata: deserializeMetadata(parsedOutput), @@ -8626,24 +7708,22 @@ const de_TooManyTagsExceptionRes = async ( * serializeAws_restXmlAbortIncompleteMultipartUpload */ const se_AbortIncompleteMultipartUpload = (input: AbortIncompleteMultipartUpload, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AbortIncompleteMultipartUpload"); - if (input.DaysAfterInitiation != null) { - const node = __XmlNode.of("DaysAfterInitiation", String(input.DaysAfterInitiation)).withName("DaysAfterInitiation"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AIMU); + if (input[_DAI] != null) { + bn.c(__XmlNode.of(_DAI, String(input[_DAI])).n(_DAI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAccessControlTranslation */ const se_AccessControlTranslation = (input: AccessControlTranslation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AccessControlTranslation"); - if (input.Owner != null) { - const node = __XmlNode.of("OwnerOverride", input.Owner).withName("Owner"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ACT); + if (input[_Ow] != null) { + bn.c(__XmlNode.of(_OO, input[_Ow]).n(_Ow)); } - return bodyNode; + return bn; }; /** @@ -8653,136 +7733,107 @@ const se_AccessGrantsLocationConfiguration = ( input: AccessGrantsLocationConfiguration, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("AccessGrantsLocationConfiguration"); - if (input.S3SubPrefix != null) { - const node = __XmlNode.of("S3Prefix", input.S3SubPrefix).withName("S3SubPrefix"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AGLC); + if (input[_SSP] != null) { + bn.c(__XmlNode.of(_SP, input[_SSP]).n(_SSP)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAccountLevel */ const se_AccountLevel = (input: AccountLevel, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AccountLevel"); - if (input.ActivityMetrics != null) { - const node = se_ActivityMetrics(input.ActivityMetrics, context).withName("ActivityMetrics"); - bodyNode.addChildNode(node); - } - if (input.BucketLevel != null) { - const node = se_BucketLevel(input.BucketLevel, context).withName("BucketLevel"); - bodyNode.addChildNode(node); - } - if (input.AdvancedCostOptimizationMetrics != null) { - const node = se_AdvancedCostOptimizationMetrics(input.AdvancedCostOptimizationMetrics, context).withName( - "AdvancedCostOptimizationMetrics" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AL); + if (input[_AM] != null) { + bn.c(se_ActivityMetrics(input[_AM], context).n(_AM)); } - if (input.AdvancedDataProtectionMetrics != null) { - const node = se_AdvancedDataProtectionMetrics(input.AdvancedDataProtectionMetrics, context).withName( - "AdvancedDataProtectionMetrics" - ); - bodyNode.addChildNode(node); + if (input[_BL] != null) { + bn.c(se_BucketLevel(input[_BL], context).n(_BL)); } - if (input.DetailedStatusCodesMetrics != null) { - const node = se_DetailedStatusCodesMetrics(input.DetailedStatusCodesMetrics, context).withName( - "DetailedStatusCodesMetrics" - ); - bodyNode.addChildNode(node); + if (input[_ACOM] != null) { + bn.c(se_AdvancedCostOptimizationMetrics(input[_ACOM], context).n(_ACOM)); + } + if (input[_ADPM] != null) { + bn.c(se_AdvancedDataProtectionMetrics(input[_ADPM], context).n(_ADPM)); } - if (input.StorageLensGroupLevel != null) { - const node = se_StorageLensGroupLevel(input.StorageLensGroupLevel, context).withName("StorageLensGroupLevel"); - bodyNode.addChildNode(node); + if (input[_DSCM] != null) { + bn.c(se_DetailedStatusCodesMetrics(input[_DSCM], context).n(_DSCM)); } - return bodyNode; + if (input[_SLGLt] != null) { + bn.c(se_StorageLensGroupLevel(input[_SLGLt], context).n(_SLGLt)); + } + return bn; }; /** * serializeAws_restXmlActivityMetrics */ const se_ActivityMetrics = (input: ActivityMetrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ActivityMetrics"); - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AM); + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAdvancedCostOptimizationMetrics */ const se_AdvancedCostOptimizationMetrics = (input: AdvancedCostOptimizationMetrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AdvancedCostOptimizationMetrics"); - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ACOM); + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAdvancedDataProtectionMetrics */ const se_AdvancedDataProtectionMetrics = (input: AdvancedDataProtectionMetrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AdvancedDataProtectionMetrics"); - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ADPM); + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAwsLambdaTransformation */ const se_AwsLambdaTransformation = (input: AwsLambdaTransformation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AwsLambdaTransformation"); - if (input.FunctionArn != null) { - const node = __XmlNode.of("FunctionArnString", input.FunctionArn).withName("FunctionArn"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ALT); + if (input[_FA] != null) { + bn.c(__XmlNode.of(_FAS, input[_FA]).n(_FA)); } - if (input.FunctionPayload != null) { - const node = __XmlNode.of("AwsLambdaTransformationPayload", input.FunctionPayload).withName("FunctionPayload"); - bodyNode.addChildNode(node); + if (input[_FP] != null) { + bn.c(__XmlNode.of(_ALTP, input[_FP]).n(_FP)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlBucketLevel */ const se_BucketLevel = (input: BucketLevel, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("BucketLevel"); - if (input.ActivityMetrics != null) { - const node = se_ActivityMetrics(input.ActivityMetrics, context).withName("ActivityMetrics"); - bodyNode.addChildNode(node); - } - if (input.PrefixLevel != null) { - const node = se_PrefixLevel(input.PrefixLevel, context).withName("PrefixLevel"); - bodyNode.addChildNode(node); - } - if (input.AdvancedCostOptimizationMetrics != null) { - const node = se_AdvancedCostOptimizationMetrics(input.AdvancedCostOptimizationMetrics, context).withName( - "AdvancedCostOptimizationMetrics" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_BL); + if (input[_AM] != null) { + bn.c(se_ActivityMetrics(input[_AM], context).n(_AM)); } - if (input.AdvancedDataProtectionMetrics != null) { - const node = se_AdvancedDataProtectionMetrics(input.AdvancedDataProtectionMetrics, context).withName( - "AdvancedDataProtectionMetrics" - ); - bodyNode.addChildNode(node); + if (input[_PL] != null) { + bn.c(se_PrefixLevel(input[_PL], context).n(_PL)); } - if (input.DetailedStatusCodesMetrics != null) { - const node = se_DetailedStatusCodesMetrics(input.DetailedStatusCodesMetrics, context).withName( - "DetailedStatusCodesMetrics" - ); - bodyNode.addChildNode(node); + if (input[_ACOM] != null) { + bn.c(se_AdvancedCostOptimizationMetrics(input[_ACOM], context).n(_ACOM)); + } + if (input[_ADPM] != null) { + bn.c(se_AdvancedDataProtectionMetrics(input[_ADPM], context).n(_ADPM)); + } + if (input[_DSCM] != null) { + bn.c(se_DetailedStatusCodesMetrics(input[_DSCM], context).n(_DSCM)); } - return bodyNode; + return bn; }; /** @@ -8792,8 +7843,8 @@ const se_Buckets = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("S3BucketArnString", entry); - return node.withName("Arn"); + const n = __XmlNode.of(_SBAS, entry); + return n.n(_Ar); }); }; @@ -8801,24 +7852,22 @@ const se_Buckets = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlCloudWatchMetrics */ const se_CloudWatchMetrics = (input: CloudWatchMetrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CloudWatchMetrics"); - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CWM); + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCreateBucketConfiguration */ const se_CreateBucketConfiguration = (input: CreateBucketConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CreateBucketConfiguration"); - if (input.LocationConstraint != null) { - const node = __XmlNode.of("BucketLocationConstraint", input.LocationConstraint).withName("LocationConstraint"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CBC); + if (input[_LC] != null) { + bn.c(__XmlNode.of(_BLC, input[_LC]).n(_LC)); } - return bodyNode; + return bn; }; /** @@ -8828,36 +7877,26 @@ const se_CreateMultiRegionAccessPointInput = ( input: CreateMultiRegionAccessPointInput, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("CreateMultiRegionAccessPointInput"); - if (input.Name != null) { - const node = __XmlNode.of("MultiRegionAccessPointName", input.Name).withName("Name"); - bodyNode.addChildNode(node); - } - if (input.PublicAccessBlock != null) { - const node = se_PublicAccessBlockConfiguration(input.PublicAccessBlock, context).withName("PublicAccessBlock"); - bodyNode.addChildNode(node); - } - if (input.Regions != null) { - const nodes = se_RegionCreationList(input.Regions, context); - const containerNode = new __XmlNode("Regions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_CMRAPI); + if (input[_N] != null) { + bn.c(__XmlNode.of(_MRAPN, input[_N]).n(_N)); + } + if (input[_PAB] != null) { + bn.c(se_PublicAccessBlockConfiguration(input[_PAB], context).n(_PAB)); } - return bodyNode; + bn.lc(input, "Regions", "Regions", () => se_RegionCreationList(input[_Re]!, context)); + return bn; }; /** * serializeAws_restXmlDeleteMarkerReplication */ const se_DeleteMarkerReplication = (input: DeleteMarkerReplication, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("DeleteMarkerReplication"); - if (input.Status != null) { - const node = __XmlNode.of("DeleteMarkerReplicationStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DMR); + if (input[_S] != null) { + bn.c(__XmlNode.of(_DMRS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** @@ -8867,182 +7906,129 @@ const se_DeleteMultiRegionAccessPointInput = ( input: DeleteMultiRegionAccessPointInput, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("DeleteMultiRegionAccessPointInput"); - if (input.Name != null) { - const node = __XmlNode.of("MultiRegionAccessPointName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DMRAPI); + if (input[_N] != null) { + bn.c(__XmlNode.of(_MRAPN, input[_N]).n(_N)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlDestination */ const se_Destination = (input: Destination, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Destination"); - if (input.Account != null) { - const node = __XmlNode.of("AccountId", input.Account).withName("Account"); - bodyNode.addChildNode(node); - } - if (input.Bucket != null) { - const node = __XmlNode.of("BucketIdentifierString", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); - } - if (input.ReplicationTime != null) { - const node = se_ReplicationTime(input.ReplicationTime, context).withName("ReplicationTime"); - bodyNode.addChildNode(node); - } - if (input.AccessControlTranslation != null) { - const node = se_AccessControlTranslation(input.AccessControlTranslation, context).withName( - "AccessControlTranslation" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Des); + if (input[_Ac] != null) { + bn.c(__XmlNode.of(_AI, input[_Ac]).n(_Ac)); + } + if (input[_B] != null) { + bn.c(__XmlNode.of(_BIS, input[_B]).n(_B)); + } + if (input[_RT] != null) { + bn.c(se_ReplicationTime(input[_RT], context).n(_RT)); } - if (input.EncryptionConfiguration != null) { - const node = se_EncryptionConfiguration(input.EncryptionConfiguration, context).withName("EncryptionConfiguration"); - bodyNode.addChildNode(node); + if (input[_ACT] != null) { + bn.c(se_AccessControlTranslation(input[_ACT], context).n(_ACT)); } - if (input.Metrics != null) { - const node = se_Metrics(input.Metrics, context).withName("Metrics"); - bodyNode.addChildNode(node); + if (input[_EC] != null) { + bn.c(se_EncryptionConfiguration(input[_EC], context).n(_EC)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("ReplicationStorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + if (input[_Met] != null) { + bn.c(se_Metrics(input[_Met], context).n(_Met)); } - return bodyNode; + if (input[_SC] != null) { + bn.c(__XmlNode.of(_RSC, input[_SC]).n(_SC)); + } + return bn; }; /** * serializeAws_restXmlDetailedStatusCodesMetrics */ const se_DetailedStatusCodesMetrics = (input: DetailedStatusCodesMetrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("DetailedStatusCodesMetrics"); - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DSCM); + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlEncryptionConfiguration */ const se_EncryptionConfiguration = (input: EncryptionConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("EncryptionConfiguration"); - if (input.ReplicaKmsKeyID != null) { - const node = __XmlNode.of("ReplicaKmsKeyID", input.ReplicaKmsKeyID).withName("ReplicaKmsKeyID"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_EC); + bn.cc(input, _RKKID); + return bn; }; /** * serializeAws_restXml_Exclude */ const se__Exclude = (input: _Exclude, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Exclude"); - if (input.Buckets != null) { - const nodes = se_Buckets(input.Buckets, context); - const containerNode = new __XmlNode("Buckets"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.Regions != null) { - const nodes = se_Regions(input.Regions, context); - const containerNode = new __XmlNode("Regions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_Ex); + bn.lc(input, "Buckets", "Buckets", () => se_Buckets(input[_Bu]!, context)); + bn.lc(input, "Regions", "Regions", () => se_Regions(input[_Re]!, context)); + return bn; }; /** * serializeAws_restXmlExistingObjectReplication */ const se_ExistingObjectReplication = (input: ExistingObjectReplication, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ExistingObjectReplication"); - if (input.Status != null) { - const node = __XmlNode.of("ExistingObjectReplicationStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_EOR); + if (input[_S] != null) { + bn.c(__XmlNode.of(_EORS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlGeneratedManifestEncryption */ const se_GeneratedManifestEncryption = (input: GeneratedManifestEncryption, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("GeneratedManifestEncryption"); - if (input.SSES3 != null) { - const node = se_SSES3Encryption(input.SSES3, context).withName("SSE-S3"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_GME); + if (input[_SSES] != null) { + bn.c(se_SSES3Encryption(input[_SSES], context).n(_SS)); } - if (input.SSEKMS != null) { - const node = se_SSEKMSEncryption(input.SSEKMS, context).withName("SSE-KMS"); - bodyNode.addChildNode(node); + if (input[_SSEKMS] != null) { + bn.c(se_SSEKMSEncryption(input[_SSEKMS], context).n(_SK)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlGrantee */ const se_Grantee = (input: Grantee, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Grantee"); - if (input.GranteeType != null) { - const node = __XmlNode.of("GranteeType", input.GranteeType).withName("GranteeType"); - bodyNode.addChildNode(node); - } - if (input.GranteeIdentifier != null) { - const node = __XmlNode.of("GranteeIdentifier", input.GranteeIdentifier).withName("GranteeIdentifier"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_G); + bn.cc(input, _GT); + bn.cc(input, _GI); + return bn; }; /** * serializeAws_restXmlInclude */ const se_Include = (input: Include, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Include"); - if (input.Buckets != null) { - const nodes = se_Buckets(input.Buckets, context); - const containerNode = new __XmlNode("Buckets"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.Regions != null) { - const nodes = se_Regions(input.Regions, context); - const containerNode = new __XmlNode("Regions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_I); + bn.lc(input, "Buckets", "Buckets", () => se_Buckets(input[_Bu]!, context)); + bn.lc(input, "Regions", "Regions", () => se_Regions(input[_Re]!, context)); + return bn; }; /** * serializeAws_restXmlJobManifest */ const se_JobManifest = (input: JobManifest, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JobManifest"); - if (input.Spec != null) { - const node = se_JobManifestSpec(input.Spec, context).withName("Spec"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_JM); + if (input[_Sp] != null) { + bn.c(se_JobManifestSpec(input[_Sp], context).n(_Sp)); } - if (input.Location != null) { - const node = se_JobManifestLocation(input.Location, context).withName("Location"); - bodyNode.addChildNode(node); + if (input[_L] != null) { + bn.c(se_JobManifestLocation(input[_L], context).n(_L)); } - return bodyNode; + return bn; }; /** @@ -9052,8 +8038,8 @@ const se_JobManifestFieldList = (input: JobManifestFieldName[], context: __Serde return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("JobManifestFieldName", entry); - return node.withName("member"); + const n = __XmlNode.of(_JMFN, entry); + return n.n(_m); }); }; @@ -9061,404 +8047,257 @@ const se_JobManifestFieldList = (input: JobManifestFieldName[], context: __Serde * serializeAws_restXmlJobManifestGenerator */ const se_JobManifestGenerator = (input: JobManifestGenerator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JobManifestGenerator"); + const bn = new __XmlNode(_JMG); JobManifestGenerator.visit(input, { S3JobManifestGenerator: (value) => { - const node = se_S3JobManifestGenerator(value, context).withName("S3JobManifestGenerator"); - bodyNode.addChildNode(node); + if (input[_SJMG] != null) { + bn.c(se_S3JobManifestGenerator(value, context).n(_SJMG)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** * serializeAws_restXmlJobManifestGeneratorFilter */ const se_JobManifestGeneratorFilter = (input: JobManifestGeneratorFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JobManifestGeneratorFilter"); - if (input.EligibleForReplication != null) { - const node = __XmlNode.of("Boolean", String(input.EligibleForReplication)).withName("EligibleForReplication"); - bodyNode.addChildNode(node); - } - if (input.CreatedAfter != null) { - const node = __XmlNode - .of("ObjectCreationTime", input.CreatedAfter.toISOString().split(".")[0] + "Z") - .withName("CreatedAfter"); - bodyNode.addChildNode(node); - } - if (input.CreatedBefore != null) { - const node = __XmlNode - .of("ObjectCreationTime", input.CreatedBefore.toISOString().split(".")[0] + "Z") - .withName("CreatedBefore"); - bodyNode.addChildNode(node); - } - if (input.ObjectReplicationStatuses != null) { - const nodes = se_ReplicationStatusFilterList(input.ObjectReplicationStatuses, context); - const containerNode = new __XmlNode("ObjectReplicationStatuses"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.KeyNameConstraint != null) { - const node = se_KeyNameConstraint(input.KeyNameConstraint, context).withName("KeyNameConstraint"); - bodyNode.addChildNode(node); - } - if (input.ObjectSizeGreaterThanBytes != null) { - const node = __XmlNode - .of("ObjectSizeGreaterThanBytes", String(input.ObjectSizeGreaterThanBytes)) - .withName("ObjectSizeGreaterThanBytes"); - bodyNode.addChildNode(node); - } - if (input.ObjectSizeLessThanBytes != null) { - const node = __XmlNode - .of("ObjectSizeLessThanBytes", String(input.ObjectSizeLessThanBytes)) - .withName("ObjectSizeLessThanBytes"); - bodyNode.addChildNode(node); - } - if (input.MatchAnyStorageClass != null) { - const nodes = se_StorageClassList(input.MatchAnyStorageClass, context); - const containerNode = new __XmlNode("MatchAnyStorageClass"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_JMGF); + if (input[_EFR] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_EFR])).n(_EFR)); + } + if (input[_CAr] != null) { + bn.c(__XmlNode.of(_OCT, input[_CAr].toISOString().split(".")[0] + "Z").n(_CAr)); + } + if (input[_CB] != null) { + bn.c(__XmlNode.of(_OCT, input[_CB].toISOString().split(".")[0] + "Z").n(_CB)); } - return bodyNode; + bn.lc(input, "ObjectReplicationStatuses", "ObjectReplicationStatuses", () => + se_ReplicationStatusFilterList(input[_ORS]!, context) + ); + if (input[_KNC] != null) { + bn.c(se_KeyNameConstraint(input[_KNC], context).n(_KNC)); + } + if (input[_OSGTB] != null) { + bn.c(__XmlNode.of(_OSGTB, String(input[_OSGTB])).n(_OSGTB)); + } + if (input[_OSLTB] != null) { + bn.c(__XmlNode.of(_OSLTB, String(input[_OSLTB])).n(_OSLTB)); + } + bn.lc(input, "MatchAnyStorageClass", "MatchAnyStorageClass", () => se_StorageClassList(input[_MASC]!, context)); + return bn; }; /** * serializeAws_restXmlJobManifestLocation */ const se_JobManifestLocation = (input: JobManifestLocation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JobManifestLocation"); - if (input.ObjectArn != null) { - const node = __XmlNode.of("S3KeyArnString", input.ObjectArn).withName("ObjectArn"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_JML); + if (input[_OA] != null) { + bn.c(__XmlNode.of(_SKAS, input[_OA]).n(_OA)); } - if (input.ObjectVersionId != null) { - const node = __XmlNode.of("S3ObjectVersionId", input.ObjectVersionId).withName("ObjectVersionId"); - bodyNode.addChildNode(node); + if (input[_OVI] != null) { + bn.c(__XmlNode.of(_SOVI, input[_OVI]).n(_OVI)); } - if (input.ETag != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.ETag).withName("ETag"); - bodyNode.addChildNode(node); + if (input[_ET] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_ET]).n(_ET)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlJobManifestSpec */ const se_JobManifestSpec = (input: JobManifestSpec, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JobManifestSpec"); - if (input.Format != null) { - const node = __XmlNode.of("JobManifestFormat", input.Format).withName("Format"); - bodyNode.addChildNode(node); - } - if (input.Fields != null) { - const nodes = se_JobManifestFieldList(input.Fields, context); - const containerNode = new __XmlNode("Fields"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_JMS); + if (input[_F] != null) { + bn.c(__XmlNode.of(_JMF, input[_F]).n(_F)); } - return bodyNode; + bn.lc(input, "Fields", "Fields", () => se_JobManifestFieldList(input[_Fi]!, context)); + return bn; }; /** * serializeAws_restXmlJobOperation */ const se_JobOperation = (input: JobOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JobOperation"); - if (input.LambdaInvoke != null) { - const node = se_LambdaInvokeOperation(input.LambdaInvoke, context).withName("LambdaInvoke"); - bodyNode.addChildNode(node); - } - if (input.S3PutObjectCopy != null) { - const node = se_S3CopyObjectOperation(input.S3PutObjectCopy, context).withName("S3PutObjectCopy"); - bodyNode.addChildNode(node); - } - if (input.S3PutObjectAcl != null) { - const node = se_S3SetObjectAclOperation(input.S3PutObjectAcl, context).withName("S3PutObjectAcl"); - bodyNode.addChildNode(node); - } - if (input.S3PutObjectTagging != null) { - const node = se_S3SetObjectTaggingOperation(input.S3PutObjectTagging, context).withName("S3PutObjectTagging"); - bodyNode.addChildNode(node); - } - if (input.S3DeleteObjectTagging != null) { - const node = se_S3DeleteObjectTaggingOperation(input.S3DeleteObjectTagging, context).withName( - "S3DeleteObjectTagging" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_JO); + if (input[_LI] != null) { + bn.c(se_LambdaInvokeOperation(input[_LI], context).n(_LI)); } - if (input.S3InitiateRestoreObject != null) { - const node = se_S3InitiateRestoreObjectOperation(input.S3InitiateRestoreObject, context).withName( - "S3InitiateRestoreObject" - ); - bodyNode.addChildNode(node); + if (input[_SPOC] != null) { + bn.c(se_S3CopyObjectOperation(input[_SPOC], context).n(_SPOC)); + } + if (input[_SPOA] != null) { + bn.c(se_S3SetObjectAclOperation(input[_SPOA], context).n(_SPOA)); + } + if (input[_SPOT] != null) { + bn.c(se_S3SetObjectTaggingOperation(input[_SPOT], context).n(_SPOT)); + } + if (input[_SDOT] != null) { + bn.c(se_S3DeleteObjectTaggingOperation(input[_SDOT], context).n(_SDOT)); + } + if (input[_SIRO] != null) { + bn.c(se_S3InitiateRestoreObjectOperation(input[_SIRO], context).n(_SIRO)); } - if (input.S3PutObjectLegalHold != null) { - const node = se_S3SetObjectLegalHoldOperation(input.S3PutObjectLegalHold, context).withName("S3PutObjectLegalHold"); - bodyNode.addChildNode(node); + if (input[_SPOLH] != null) { + bn.c(se_S3SetObjectLegalHoldOperation(input[_SPOLH], context).n(_SPOLH)); } - if (input.S3PutObjectRetention != null) { - const node = se_S3SetObjectRetentionOperation(input.S3PutObjectRetention, context).withName("S3PutObjectRetention"); - bodyNode.addChildNode(node); + if (input[_SPOR] != null) { + bn.c(se_S3SetObjectRetentionOperation(input[_SPOR], context).n(_SPOR)); } - if (input.S3ReplicateObject != null) { - const node = se_S3ReplicateObjectOperation(input.S3ReplicateObject, context).withName("S3ReplicateObject"); - bodyNode.addChildNode(node); + if (input[_SRO] != null) { + bn.c(se_S3ReplicateObjectOperation(input[_SRO], context).n(_SRO)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlJobReport */ const se_JobReport = (input: JobReport, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JobReport"); - if (input.Bucket != null) { - const node = __XmlNode.of("S3BucketArnString", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_JR); + if (input[_B] != null) { + bn.c(__XmlNode.of(_SBAS, input[_B]).n(_B)); } - if (input.Format != null) { - const node = __XmlNode.of("JobReportFormat", input.Format).withName("Format"); - bodyNode.addChildNode(node); + if (input[_F] != null) { + bn.c(__XmlNode.of(_JRF, input[_F]).n(_F)); } - if (input.Enabled != null) { - const node = __XmlNode.of("Boolean", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + if (input[_En] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_En])).n(_En)); } - if (input.Prefix != null) { - const node = __XmlNode.of("ReportPrefixString", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_Pre] != null) { + bn.c(__XmlNode.of(_RPS, input[_Pre]).n(_Pre)); } - if (input.ReportScope != null) { - const node = __XmlNode.of("JobReportScope", input.ReportScope).withName("ReportScope"); - bodyNode.addChildNode(node); + if (input[_RS] != null) { + bn.c(__XmlNode.of(_JRS, input[_RS]).n(_RS)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlKeyNameConstraint */ const se_KeyNameConstraint = (input: KeyNameConstraint, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("KeyNameConstraint"); - if (input.MatchAnyPrefix != null) { - const nodes = se_NonEmptyMaxLength1024StringList(input.MatchAnyPrefix, context); - const containerNode = new __XmlNode("MatchAnyPrefix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchAnySuffix != null) { - const nodes = se_NonEmptyMaxLength1024StringList(input.MatchAnySuffix, context); - const containerNode = new __XmlNode("MatchAnySuffix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchAnySubstring != null) { - const nodes = se_NonEmptyMaxLength1024StringList(input.MatchAnySubstring, context); - const containerNode = new __XmlNode("MatchAnySubstring"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_KNC); + bn.lc(input, "MatchAnyPrefix", "MatchAnyPrefix", () => se_NonEmptyMaxLength1024StringList(input[_MAP]!, context)); + bn.lc(input, "MatchAnySuffix", "MatchAnySuffix", () => se_NonEmptyMaxLength1024StringList(input[_MAS]!, context)); + bn.lc(input, "MatchAnySubstring", "MatchAnySubstring", () => + se_NonEmptyMaxLength1024StringList(input[_MASa]!, context) + ); + return bn; }; /** * serializeAws_restXmlLambdaInvokeOperation */ const se_LambdaInvokeOperation = (input: LambdaInvokeOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LambdaInvokeOperation"); - if (input.FunctionArn != null) { - const node = __XmlNode.of("FunctionArnString", input.FunctionArn).withName("FunctionArn"); - bodyNode.addChildNode(node); - } - if (input.InvocationSchemaVersion != null) { - const node = __XmlNode - .of("NonEmptyMaxLength64String", input.InvocationSchemaVersion) - .withName("InvocationSchemaVersion"); - bodyNode.addChildNode(node); - } - if (input.UserArguments != null) { - const nodes = se_UserArguments(input.UserArguments, context); - const containerNode = new __XmlNode("UserArguments"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_LIO); + if (input[_FA] != null) { + bn.c(__XmlNode.of(_FAS, input[_FA]).n(_FA)); } - return bodyNode; + if (input[_ISV] != null) { + bn.c(__XmlNode.of(_NEMLS, input[_ISV]).n(_ISV)); + } + bn.lc(input, "UserArguments", "UserArguments", () => se_UserArguments(input[_UA]!, context)); + return bn; }; /** * serializeAws_restXmlLifecycleConfiguration */ const se_LifecycleConfiguration = (input: LifecycleConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleConfiguration"); - if (input.Rules != null) { - const nodes = se_LifecycleRules(input.Rules, context); - const containerNode = new __XmlNode("Rules"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_LCi); + bn.lc(input, "Rules", "Rules", () => se_LifecycleRules(input[_Ru]!, context)); + return bn; }; /** * serializeAws_restXmlLifecycleExpiration */ const se_LifecycleExpiration = (input: LifecycleExpiration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleExpiration"); - if (input.Date != null) { - const node = __XmlNode.of("Date", input.Date.toISOString().split(".")[0] + "Z").withName("Date"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LE); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, input[_Da].toISOString().split(".")[0] + "Z").n(_Da)); } - if (input.Days != null) { - const node = __XmlNode.of("Days", String(input.Days)).withName("Days"); - bodyNode.addChildNode(node); + if (input[_Day] != null) { + bn.c(__XmlNode.of(_Day, String(input[_Day])).n(_Day)); } - if (input.ExpiredObjectDeleteMarker != null) { - const node = __XmlNode - .of("ExpiredObjectDeleteMarker", String(input.ExpiredObjectDeleteMarker)) - .withName("ExpiredObjectDeleteMarker"); - bodyNode.addChildNode(node); + if (input[_EODM] != null) { + bn.c(__XmlNode.of(_EODM, String(input[_EODM])).n(_EODM)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlLifecycleRule */ const se_LifecycleRule = (input: LifecycleRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleRule"); - if (input.Expiration != null) { - const node = se_LifecycleExpiration(input.Expiration, context).withName("Expiration"); - bodyNode.addChildNode(node); - } - if (input.ID != null) { - const node = __XmlNode.of("ID", input.ID).withName("ID"); - bodyNode.addChildNode(node); - } - if (input.Filter != null) { - const node = se_LifecycleRuleFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); - } - if (input.Status != null) { - const node = __XmlNode.of("ExpirationStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); - } - if (input.Transitions != null) { - const nodes = se_TransitionList(input.Transitions, context); - const containerNode = new __XmlNode("Transitions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_LR); + if (input[_Exp] != null) { + bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp)); } - if (input.NoncurrentVersionTransitions != null) { - const nodes = se_NoncurrentVersionTransitionList(input.NoncurrentVersionTransitions, context); - const containerNode = new __XmlNode("NoncurrentVersionTransitions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + bn.cc(input, _ID); + if (input[_Fil] != null) { + bn.c(se_LifecycleRuleFilter(input[_Fil], context).n(_Fil)); } - if (input.NoncurrentVersionExpiration != null) { - const node = se_NoncurrentVersionExpiration(input.NoncurrentVersionExpiration, context).withName( - "NoncurrentVersionExpiration" - ); - bodyNode.addChildNode(node); + if (input[_S] != null) { + bn.c(__XmlNode.of(_ES, input[_S]).n(_S)); } - if (input.AbortIncompleteMultipartUpload != null) { - const node = se_AbortIncompleteMultipartUpload(input.AbortIncompleteMultipartUpload, context).withName( - "AbortIncompleteMultipartUpload" - ); - bodyNode.addChildNode(node); + bn.lc(input, "Transitions", "Transitions", () => se_TransitionList(input[_Tr]!, context)); + bn.lc(input, "NoncurrentVersionTransitions", "NoncurrentVersionTransitions", () => + se_NoncurrentVersionTransitionList(input[_NVT]!, context) + ); + if (input[_NVE] != null) { + bn.c(se_NoncurrentVersionExpiration(input[_NVE], context).n(_NVE)); } - return bodyNode; + if (input[_AIMU] != null) { + bn.c(se_AbortIncompleteMultipartUpload(input[_AIMU], context).n(_AIMU)); + } + return bn; }; /** * serializeAws_restXmlLifecycleRuleAndOperator */ const se_LifecycleRuleAndOperator = (input: LifecycleRuleAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleRuleAndOperator"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tags != null) { - const nodes = se_S3TagSet(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.ObjectSizeGreaterThan != null) { - const node = __XmlNode - .of("ObjectSizeGreaterThanBytes", String(input.ObjectSizeGreaterThan)) - .withName("ObjectSizeGreaterThan"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LRAO); + bn.cc(input, _Pre); + bn.lc(input, "Tags", "Tags", () => se_S3TagSet(input[_T]!, context)); + if (input[_OSGT] != null) { + bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); } - if (input.ObjectSizeLessThan != null) { - const node = __XmlNode - .of("ObjectSizeLessThanBytes", String(input.ObjectSizeLessThan)) - .withName("ObjectSizeLessThan"); - bodyNode.addChildNode(node); + if (input[_OSLT] != null) { + bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlLifecycleRuleFilter */ const se_LifecycleRuleFilter = (input: LifecycleRuleFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleRuleFilter"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LRF); + bn.cc(input, _Pre); + if (input[_Tag] != null) { + bn.c(se_S3Tag(input[_Tag], context).n(_Tag)); } - if (input.Tag != null) { - const node = se_S3Tag(input.Tag, context).withName("Tag"); - bodyNode.addChildNode(node); + if (input[_An] != null) { + bn.c(se_LifecycleRuleAndOperator(input[_An], context).n(_An)); } - if (input.And != null) { - const node = se_LifecycleRuleAndOperator(input.And, context).withName("And"); - bodyNode.addChildNode(node); + if (input[_OSGT] != null) { + bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); } - if (input.ObjectSizeGreaterThan != null) { - const node = __XmlNode - .of("ObjectSizeGreaterThanBytes", String(input.ObjectSizeGreaterThan)) - .withName("ObjectSizeGreaterThan"); - bodyNode.addChildNode(node); + if (input[_OSLT] != null) { + bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); } - if (input.ObjectSizeLessThan != null) { - const node = __XmlNode - .of("ObjectSizeLessThanBytes", String(input.ObjectSizeLessThan)) - .withName("ObjectSizeLessThan"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** @@ -9468,8 +8307,8 @@ const se_LifecycleRules = (input: LifecycleRule[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = se_LifecycleRule(entry, context); - return node.withName("Rule"); + const n = se_LifecycleRule(entry, context); + return n.n(_Rul); }); }; @@ -9480,8 +8319,8 @@ const se_MatchAnyPrefix = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Prefix", entry); - return node.withName("Prefix"); + const n = __XmlNode.of(_Pre, entry); + return n.n(_Pre); }); }; @@ -9492,8 +8331,8 @@ const se_MatchAnySuffix = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Suffix", entry); - return node.withName("Suffix"); + const n = __XmlNode.of(_Su, entry); + return n.n(_Su); }); }; @@ -9504,8 +8343,8 @@ const se_MatchAnyTag = (input: S3Tag[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_S3Tag(entry, context); - return node.withName("Tag"); + const n = se_S3Tag(entry, context); + return n.n(_Tag); }); }; @@ -9513,104 +8352,87 @@ const se_MatchAnyTag = (input: S3Tag[], context: __SerdeContext): any => { * serializeAws_restXmlMatchObjectAge */ const se_MatchObjectAge = (input: MatchObjectAge, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MatchObjectAge"); - if (input.DaysGreaterThan != null) { - const node = __XmlNode.of("ObjectAgeValue", String(input.DaysGreaterThan)).withName("DaysGreaterThan"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_MOA); + if (input[_DGT] != null) { + bn.c(__XmlNode.of(_OAV, String(input[_DGT])).n(_DGT)); } - if (input.DaysLessThan != null) { - const node = __XmlNode.of("ObjectAgeValue", String(input.DaysLessThan)).withName("DaysLessThan"); - bodyNode.addChildNode(node); + if (input[_DLT] != null) { + bn.c(__XmlNode.of(_OAV, String(input[_DLT])).n(_DLT)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlMatchObjectSize */ const se_MatchObjectSize = (input: MatchObjectSize, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MatchObjectSize"); - if (input.BytesGreaterThan != null) { - const node = __XmlNode.of("ObjectSizeValue", String(input.BytesGreaterThan)).withName("BytesGreaterThan"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_MOS); + if (input[_BGT] != null) { + bn.c(__XmlNode.of(_OSV, String(input[_BGT])).n(_BGT)); } - if (input.BytesLessThan != null) { - const node = __XmlNode.of("ObjectSizeValue", String(input.BytesLessThan)).withName("BytesLessThan"); - bodyNode.addChildNode(node); + if (input[_BLT] != null) { + bn.c(__XmlNode.of(_OSV, String(input[_BLT])).n(_BLT)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlMetrics */ const se_Metrics = (input: Metrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Metrics"); - if (input.Status != null) { - const node = __XmlNode.of("MetricsStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Met); + if (input[_S] != null) { + bn.c(__XmlNode.of(_MS, input[_S]).n(_S)); } - if (input.EventThreshold != null) { - const node = se_ReplicationTimeValue(input.EventThreshold, context).withName("EventThreshold"); - bodyNode.addChildNode(node); + if (input[_ETv] != null) { + bn.c(se_ReplicationTimeValue(input[_ETv], context).n(_ETv)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlMultiRegionAccessPointRoute */ const se_MultiRegionAccessPointRoute = (input: MultiRegionAccessPointRoute, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MultiRegionAccessPointRoute"); - if (input.Bucket != null) { - const node = __XmlNode.of("BucketName", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_MRAPR); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); } - if (input.Region != null) { - const node = __XmlNode.of("RegionName", input.Region).withName("Region"); - bodyNode.addChildNode(node); + if (input[_Reg] != null) { + bn.c(__XmlNode.of(_RN, input[_Reg]).n(_Reg)); } - if (input.TrafficDialPercentage != null) { - const node = __XmlNode - .of("TrafficDialPercentage", String(input.TrafficDialPercentage)) - .withName("TrafficDialPercentage"); - bodyNode.addChildNode(node); + if (input[_TDP] != null) { + bn.c(__XmlNode.of(_TDP, String(input[_TDP])).n(_TDP)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlNoncurrentVersionExpiration */ const se_NoncurrentVersionExpiration = (input: NoncurrentVersionExpiration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("NoncurrentVersionExpiration"); - if (input.NoncurrentDays != null) { - const node = __XmlNode.of("Days", String(input.NoncurrentDays)).withName("NoncurrentDays"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_NVE); + if (input[_ND] != null) { + bn.c(__XmlNode.of(_Day, String(input[_ND])).n(_ND)); } - if (input.NewerNoncurrentVersions != null) { - const node = __XmlNode - .of("NoncurrentVersionCount", String(input.NewerNoncurrentVersions)) - .withName("NewerNoncurrentVersions"); - bodyNode.addChildNode(node); + if (input[_NNV] != null) { + bn.c(__XmlNode.of(_NVC, String(input[_NNV])).n(_NNV)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlNoncurrentVersionTransition */ const se_NoncurrentVersionTransition = (input: NoncurrentVersionTransition, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("NoncurrentVersionTransition"); - if (input.NoncurrentDays != null) { - const node = __XmlNode.of("Days", String(input.NoncurrentDays)).withName("NoncurrentDays"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_NVTo); + if (input[_ND] != null) { + bn.c(__XmlNode.of(_Day, String(input[_ND])).n(_ND)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("TransitionStorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + if (input[_SC] != null) { + bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); } - return bodyNode; + return bn; }; /** @@ -9620,8 +8442,8 @@ const se_NoncurrentVersionTransitionList = (input: NoncurrentVersionTransition[] return input .filter((e: any) => e != null) .map((entry) => { - const node = se_NoncurrentVersionTransition(entry, context); - return node.withName("NoncurrentVersionTransition"); + const n = se_NoncurrentVersionTransition(entry, context); + return n.n(_NVTo); }); }; @@ -9632,8 +8454,8 @@ const se_NonEmptyMaxLength1024StringList = (input: string[], context: __SerdeCon return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("NonEmptyMaxLength1024String", entry); - return node.withName("member"); + const n = __XmlNode.of(_NEMLSon, entry); + return n.n(_m); }); }; @@ -9644,8 +8466,8 @@ const se_ObjectLambdaAllowedFeaturesList = (input: ObjectLambdaAllowedFeature[], return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("ObjectLambdaAllowedFeature", entry); - return node.withName("AllowedFeature"); + const n = __XmlNode.of(_OLAF, entry); + return n.n(_AF); }); }; @@ -9653,34 +8475,18 @@ const se_ObjectLambdaAllowedFeaturesList = (input: ObjectLambdaAllowedFeature[], * serializeAws_restXmlObjectLambdaConfiguration */ const se_ObjectLambdaConfiguration = (input: ObjectLambdaConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ObjectLambdaConfiguration"); - if (input.SupportingAccessPoint != null) { - const node = __XmlNode - .of("ObjectLambdaSupportingAccessPointArn", input.SupportingAccessPoint) - .withName("SupportingAccessPoint"); - bodyNode.addChildNode(node); - } - if (input.CloudWatchMetricsEnabled != null) { - const node = __XmlNode.of("Boolean", String(input.CloudWatchMetricsEnabled)).withName("CloudWatchMetricsEnabled"); - bodyNode.addChildNode(node); - } - if (input.AllowedFeatures != null) { - const nodes = se_ObjectLambdaAllowedFeaturesList(input.AllowedFeatures, context); - const containerNode = new __XmlNode("AllowedFeatures"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_OLC); + if (input[_SAP] != null) { + bn.c(__XmlNode.of(_OLSAPA, input[_SAP]).n(_SAP)); } - if (input.TransformationConfigurations != null) { - const nodes = se_ObjectLambdaTransformationConfigurationsList(input.TransformationConfigurations, context); - const containerNode = new __XmlNode("TransformationConfigurations"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + if (input[_CWME] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_CWME])).n(_CWME)); } - return bodyNode; + bn.lc(input, "AllowedFeatures", "AllowedFeatures", () => se_ObjectLambdaAllowedFeaturesList(input[_AFl]!, context)); + bn.lc(input, "TransformationConfigurations", "TransformationConfigurations", () => + se_ObjectLambdaTransformationConfigurationsList(input[_TC]!, context) + ); + return bn; }; /** @@ -9690,20 +8496,21 @@ const se_ObjectLambdaContentTransformation = ( input: ObjectLambdaContentTransformation, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ObjectLambdaContentTransformation"); + const bn = new __XmlNode(_OLCT); ObjectLambdaContentTransformation.visit(input, { AwsLambda: (value) => { - const node = se_AwsLambdaTransformation(value, context).withName("AwsLambda"); - bodyNode.addChildNode(node); + if (input[_ALw] != null) { + bn.c(se_AwsLambdaTransformation(value, context).n(_ALw)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** @@ -9713,22 +8520,14 @@ const se_ObjectLambdaTransformationConfiguration = ( input: ObjectLambdaTransformationConfiguration, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ObjectLambdaTransformationConfiguration"); - if (input.Actions != null) { - const nodes = se_ObjectLambdaTransformationConfigurationActionsList(input.Actions, context); - const containerNode = new __XmlNode("Actions"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.ContentTransformation != null) { - const node = se_ObjectLambdaContentTransformation(input.ContentTransformation, context).withName( - "ContentTransformation" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OLTC); + bn.lc(input, "Actions", "Actions", () => + se_ObjectLambdaTransformationConfigurationActionsList(input[_Act]!, context) + ); + if (input[_CTo] != null) { + bn.c(se_ObjectLambdaContentTransformation(input[_CTo], context).n(_CTo)); } - return bodyNode; + return bn; }; /** @@ -9741,8 +8540,8 @@ const se_ObjectLambdaTransformationConfigurationActionsList = ( return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("ObjectLambdaTransformationConfigurationAction", entry); - return node.withName("Action"); + const n = __XmlNode.of(_OLTCA, entry); + return n.n(_Acti); }); }; @@ -9756,8 +8555,8 @@ const se_ObjectLambdaTransformationConfigurationsList = ( return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ObjectLambdaTransformationConfiguration(entry, context); - return node.withName("TransformationConfiguration"); + const n = se_ObjectLambdaTransformationConfiguration(entry, context); + return n.n(_TCr); }); }; @@ -9765,52 +8564,45 @@ const se_ObjectLambdaTransformationConfigurationsList = ( * serializeAws_restXmlPrefixLevel */ const se_PrefixLevel = (input: PrefixLevel, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PrefixLevel"); - if (input.StorageMetrics != null) { - const node = se_PrefixLevelStorageMetrics(input.StorageMetrics, context).withName("StorageMetrics"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PL); + if (input[_SM] != null) { + bn.c(se_PrefixLevelStorageMetrics(input[_SM], context).n(_SM)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlPrefixLevelStorageMetrics */ const se_PrefixLevelStorageMetrics = (input: PrefixLevelStorageMetrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PrefixLevelStorageMetrics"); - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PLSM); + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); } - if (input.SelectionCriteria != null) { - const node = se_SelectionCriteria(input.SelectionCriteria, context).withName("SelectionCriteria"); - bodyNode.addChildNode(node); + if (input[_SCe] != null) { + bn.c(se_SelectionCriteria(input[_SCe], context).n(_SCe)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlPublicAccessBlockConfiguration */ const se_PublicAccessBlockConfiguration = (input: PublicAccessBlockConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PublicAccessBlockConfiguration"); - if (input.BlockPublicAcls != null) { - const node = __XmlNode.of("Setting", String(input.BlockPublicAcls)).withName("BlockPublicAcls"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PABC); + if (input[_BPA] != null) { + bn.c(__XmlNode.of(_Se, String(input[_BPA])).n(_BPA)); } - if (input.IgnorePublicAcls != null) { - const node = __XmlNode.of("Setting", String(input.IgnorePublicAcls)).withName("IgnorePublicAcls"); - bodyNode.addChildNode(node); + if (input[_IPA] != null) { + bn.c(__XmlNode.of(_Se, String(input[_IPA])).n(_IPA)); } - if (input.BlockPublicPolicy != null) { - const node = __XmlNode.of("Setting", String(input.BlockPublicPolicy)).withName("BlockPublicPolicy"); - bodyNode.addChildNode(node); + if (input[_BPP] != null) { + bn.c(__XmlNode.of(_Se, String(input[_BPP])).n(_BPP)); } - if (input.RestrictPublicBuckets != null) { - const node = __XmlNode.of("Setting", String(input.RestrictPublicBuckets)).withName("RestrictPublicBuckets"); - bodyNode.addChildNode(node); + if (input[_RPB] != null) { + bn.c(__XmlNode.of(_Se, String(input[_RPB])).n(_RPB)); } - return bodyNode; + return bn; }; /** @@ -9820,32 +8612,26 @@ const se_PutMultiRegionAccessPointPolicyInput = ( input: PutMultiRegionAccessPointPolicyInput, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("PutMultiRegionAccessPointPolicyInput"); - if (input.Name != null) { - const node = __XmlNode.of("MultiRegionAccessPointName", input.Name).withName("Name"); - bodyNode.addChildNode(node); - } - if (input.Policy != null) { - const node = __XmlNode.of("Policy", input.Policy).withName("Policy"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PMRAPPI); + if (input[_N] != null) { + bn.c(__XmlNode.of(_MRAPN, input[_N]).n(_N)); } - return bodyNode; + bn.cc(input, _Po); + return bn; }; /** * serializeAws_restXmlRegion */ const se_Region = (input: Region, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Region"); - if (input.Bucket != null) { - const node = __XmlNode.of("BucketName", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Reg); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); } - if (input.BucketAccountId != null) { - const node = __XmlNode.of("AccountId", input.BucketAccountId).withName("BucketAccountId"); - bodyNode.addChildNode(node); + if (input[_BAI] != null) { + bn.c(__XmlNode.of(_AI, input[_BAI]).n(_BAI)); } - return bodyNode; + return bn; }; /** @@ -9855,8 +8641,8 @@ const se_RegionCreationList = (input: Region[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Region(entry, context); - return node.withName("Region"); + const n = se_Region(entry, context); + return n.n(_Reg); }); }; @@ -9867,8 +8653,8 @@ const se_Regions = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("S3AWSRegion", entry); - return node.withName("Region"); + const n = __XmlNode.of(_SAWSR, entry); + return n.n(_Reg); }); }; @@ -9876,122 +8662,80 @@ const se_Regions = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlReplicaModifications */ const se_ReplicaModifications = (input: ReplicaModifications, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicaModifications"); - if (input.Status != null) { - const node = __XmlNode.of("ReplicaModificationsStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RM); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RMS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlReplicationConfiguration */ const se_ReplicationConfiguration = (input: ReplicationConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationConfiguration"); - if (input.Role != null) { - const node = __XmlNode.of("Role", input.Role).withName("Role"); - bodyNode.addChildNode(node); - } - if (input.Rules != null) { - const nodes = se_ReplicationRules(input.Rules, context); - const containerNode = new __XmlNode("Rules"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_RC); + bn.cc(input, _Rol); + bn.lc(input, "Rules", "Rules", () => se_ReplicationRules(input[_Ru]!, context)); + return bn; }; /** * serializeAws_restXmlReplicationRule */ const se_ReplicationRule = (input: ReplicationRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationRule"); - if (input.ID != null) { - const node = __XmlNode.of("ID", input.ID).withName("ID"); - bodyNode.addChildNode(node); - } - if (input.Priority != null) { - const node = __XmlNode.of("Priority", String(input.Priority)).withName("Priority"); - bodyNode.addChildNode(node); - } - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Filter != null) { - const node = se_ReplicationRuleFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); - } - if (input.Status != null) { - const node = __XmlNode.of("ReplicationRuleStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); - } - if (input.SourceSelectionCriteria != null) { - const node = se_SourceSelectionCriteria(input.SourceSelectionCriteria, context).withName("SourceSelectionCriteria"); - bodyNode.addChildNode(node); - } - if (input.ExistingObjectReplication != null) { - const node = se_ExistingObjectReplication(input.ExistingObjectReplication, context).withName( - "ExistingObjectReplication" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RR); + bn.cc(input, _ID); + if (input[_Pr] != null) { + bn.c(__XmlNode.of(_Pr, String(input[_Pr])).n(_Pr)); + } + bn.cc(input, _Pre); + if (input[_Fil] != null) { + bn.c(se_ReplicationRuleFilter(input[_Fil], context).n(_Fil)); } - if (input.Destination != null) { - const node = se_Destination(input.Destination, context).withName("Destination"); - bodyNode.addChildNode(node); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RRS, input[_S]).n(_S)); } - if (input.DeleteMarkerReplication != null) { - const node = se_DeleteMarkerReplication(input.DeleteMarkerReplication, context).withName("DeleteMarkerReplication"); - bodyNode.addChildNode(node); + if (input[_SSC] != null) { + bn.c(se_SourceSelectionCriteria(input[_SSC], context).n(_SSC)); } - if (input.Bucket != null) { - const node = __XmlNode.of("BucketIdentifierString", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + if (input[_EOR] != null) { + bn.c(se_ExistingObjectReplication(input[_EOR], context).n(_EOR)); } - return bodyNode; + if (input[_Des] != null) { + bn.c(se_Destination(input[_Des], context).n(_Des)); + } + if (input[_DMR] != null) { + bn.c(se_DeleteMarkerReplication(input[_DMR], context).n(_DMR)); + } + if (input[_B] != null) { + bn.c(__XmlNode.of(_BIS, input[_B]).n(_B)); + } + return bn; }; /** * serializeAws_restXmlReplicationRuleAndOperator */ const se_ReplicationRuleAndOperator = (input: ReplicationRuleAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationRuleAndOperator"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tags != null) { - const nodes = se_S3TagSet(input.Tags, context); - const containerNode = new __XmlNode("Tags"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_RRAO); + bn.cc(input, _Pre); + bn.lc(input, "Tags", "Tags", () => se_S3TagSet(input[_T]!, context)); + return bn; }; /** * serializeAws_restXmlReplicationRuleFilter */ const se_ReplicationRuleFilter = (input: ReplicationRuleFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationRuleFilter"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RRF); + bn.cc(input, _Pre); + if (input[_Tag] != null) { + bn.c(se_S3Tag(input[_Tag], context).n(_Tag)); } - if (input.Tag != null) { - const node = se_S3Tag(input.Tag, context).withName("Tag"); - bodyNode.addChildNode(node); + if (input[_An] != null) { + bn.c(se_ReplicationRuleAndOperator(input[_An], context).n(_An)); } - if (input.And != null) { - const node = se_ReplicationRuleAndOperator(input.And, context).withName("And"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** @@ -10001,8 +8745,8 @@ const se_ReplicationRules = (input: ReplicationRule[], context: __SerdeContext): return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ReplicationRule(entry, context); - return node.withName("Rule"); + const n = se_ReplicationRule(entry, context); + return n.n(_Rul); }); }; @@ -10013,8 +8757,8 @@ const se_ReplicationStatusFilterList = (input: ReplicationStatus[], context: __S return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("ReplicationStatus", entry); - return node.withName("member"); + const n = __XmlNode.of(_RSe, entry); + return n.n(_m); }); }; @@ -10022,28 +8766,25 @@ const se_ReplicationStatusFilterList = (input: ReplicationStatus[], context: __S * serializeAws_restXmlReplicationTime */ const se_ReplicationTime = (input: ReplicationTime, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationTime"); - if (input.Status != null) { - const node = __XmlNode.of("ReplicationTimeStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RT); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RTS, input[_S]).n(_S)); } - if (input.Time != null) { - const node = se_ReplicationTimeValue(input.Time, context).withName("Time"); - bodyNode.addChildNode(node); + if (input[_Ti] != null) { + bn.c(se_ReplicationTimeValue(input[_Ti], context).n(_Ti)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlReplicationTimeValue */ const se_ReplicationTimeValue = (input: ReplicationTimeValue, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationTimeValue"); - if (input.Minutes != null) { - const node = __XmlNode.of("Minutes", String(input.Minutes)).withName("Minutes"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RTV); + if (input[_Mi] != null) { + bn.c(__XmlNode.of(_Mi, String(input[_Mi])).n(_Mi)); } - return bodyNode; + return bn; }; /** @@ -10053,8 +8794,8 @@ const se_RouteList = (input: MultiRegionAccessPointRoute[], context: __SerdeCont return input .filter((e: any) => e != null) .map((entry) => { - const node = se_MultiRegionAccessPointRoute(entry, context); - return node.withName("Route"); + const n = se_MultiRegionAccessPointRoute(entry, context); + return n.n(_Rou); }); }; @@ -10062,212 +8803,141 @@ const se_RouteList = (input: MultiRegionAccessPointRoute[], context: __SerdeCont * serializeAws_restXmlS3AccessControlList */ const se_S3AccessControlList = (input: S3AccessControlList, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3AccessControlList"); - if (input.Owner != null) { - const node = se_S3ObjectOwner(input.Owner, context).withName("Owner"); - bodyNode.addChildNode(node); - } - if (input.Grants != null) { - const nodes = se_S3GrantList(input.Grants, context); - const containerNode = new __XmlNode("Grants"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_SACL); + if (input[_Ow] != null) { + bn.c(se_S3ObjectOwner(input[_Ow], context).n(_Ow)); } - return bodyNode; + bn.lc(input, "Grants", "Grants", () => se_S3GrantList(input[_Gr]!, context)); + return bn; }; /** * serializeAws_restXmlS3AccessControlPolicy */ const se_S3AccessControlPolicy = (input: S3AccessControlPolicy, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3AccessControlPolicy"); - if (input.AccessControlList != null) { - const node = se_S3AccessControlList(input.AccessControlList, context).withName("AccessControlList"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SACP); + if (input[_ACLc] != null) { + bn.c(se_S3AccessControlList(input[_ACLc], context).n(_ACLc)); } - if (input.CannedAccessControlList != null) { - const node = __XmlNode - .of("S3CannedAccessControlList", input.CannedAccessControlList) - .withName("CannedAccessControlList"); - bodyNode.addChildNode(node); + if (input[_CACL] != null) { + bn.c(__XmlNode.of(_SCACL, input[_CACL]).n(_CACL)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3BucketDestination */ const se_S3BucketDestination = (input: S3BucketDestination, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3BucketDestination"); - if (input.Format != null) { - const node = __XmlNode.of("Format", input.Format).withName("Format"); - bodyNode.addChildNode(node); - } - if (input.OutputSchemaVersion != null) { - const node = __XmlNode.of("OutputSchemaVersion", input.OutputSchemaVersion).withName("OutputSchemaVersion"); - bodyNode.addChildNode(node); - } - if (input.AccountId != null) { - const node = __XmlNode.of("AccountId", input.AccountId).withName("AccountId"); - bodyNode.addChildNode(node); - } - if (input.Arn != null) { - const node = __XmlNode.of("S3BucketArnString", input.Arn).withName("Arn"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SBD); + bn.cc(input, _F); + bn.cc(input, _OSVu); + bn.cc(input, _AI); + if (input[_Ar] != null) { + bn.c(__XmlNode.of(_SBAS, input[_Ar]).n(_Ar)); } - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + bn.cc(input, _Pre); + if (input[_Enc] != null) { + bn.c(se_StorageLensDataExportEncryption(input[_Enc], context).n(_Enc)); } - if (input.Encryption != null) { - const node = se_StorageLensDataExportEncryption(input.Encryption, context).withName("Encryption"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3CopyObjectOperation */ const se_S3CopyObjectOperation = (input: S3CopyObjectOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3CopyObjectOperation"); - if (input.TargetResource != null) { - const node = __XmlNode.of("S3RegionalOrS3ExpressBucketArnString", input.TargetResource).withName("TargetResource"); - bodyNode.addChildNode(node); - } - if (input.CannedAccessControlList != null) { - const node = __XmlNode - .of("S3CannedAccessControlList", input.CannedAccessControlList) - .withName("CannedAccessControlList"); - bodyNode.addChildNode(node); - } - if (input.AccessControlGrants != null) { - const nodes = se_S3GrantList(input.AccessControlGrants, context); - const containerNode = new __XmlNode("AccessControlGrants"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MetadataDirective != null) { - const node = __XmlNode.of("S3MetadataDirective", input.MetadataDirective).withName("MetadataDirective"); - bodyNode.addChildNode(node); - } - if (input.ModifiedSinceConstraint != null) { - const node = __XmlNode - .of("TimeStamp", input.ModifiedSinceConstraint.toISOString().split(".")[0] + "Z") - .withName("ModifiedSinceConstraint"); - bodyNode.addChildNode(node); - } - if (input.NewObjectMetadata != null) { - const node = se_S3ObjectMetadata(input.NewObjectMetadata, context).withName("NewObjectMetadata"); - bodyNode.addChildNode(node); - } - if (input.NewObjectTagging != null) { - const nodes = se_S3TagSet(input.NewObjectTagging, context); - const containerNode = new __XmlNode("NewObjectTagging"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_SCOO); + if (input[_TR] != null) { + bn.c(__XmlNode.of(_SROSEBAS, input[_TR]).n(_TR)); + } + if (input[_CACL] != null) { + bn.c(__XmlNode.of(_SCACL, input[_CACL]).n(_CACL)); + } + bn.lc(input, "AccessControlGrants", "AccessControlGrants", () => se_S3GrantList(input[_ACG]!, context)); + if (input[_MDe] != null) { + bn.c(__XmlNode.of(_SMD, input[_MDe]).n(_MDe)); } - if (input.RedirectLocation != null) { - const node = __XmlNode.of("NonEmptyMaxLength2048String", input.RedirectLocation).withName("RedirectLocation"); - bodyNode.addChildNode(node); + if (input[_MSC] != null) { + bn.c(__XmlNode.of(_TSi, input[_MSC].toISOString().split(".")[0] + "Z").n(_MSC)); } - if (input.RequesterPays != null) { - const node = __XmlNode.of("Boolean", String(input.RequesterPays)).withName("RequesterPays"); - bodyNode.addChildNode(node); + if (input[_NOM] != null) { + bn.c(se_S3ObjectMetadata(input[_NOM], context).n(_NOM)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("S3StorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + bn.lc(input, "NewObjectTagging", "NewObjectTagging", () => se_S3TagSet(input[_NOT]!, context)); + if (input[_RL] != null) { + bn.c(__XmlNode.of(_NEMLSonm, input[_RL]).n(_RL)); } - if (input.UnModifiedSinceConstraint != null) { - const node = __XmlNode - .of("TimeStamp", input.UnModifiedSinceConstraint.toISOString().split(".")[0] + "Z") - .withName("UnModifiedSinceConstraint"); - bodyNode.addChildNode(node); + if (input[_RP] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_RP])).n(_RP)); } - if (input.SSEAwsKmsKeyId != null) { - const node = __XmlNode.of("KmsKeyArnString", input.SSEAwsKmsKeyId).withName("SSEAwsKmsKeyId"); - bodyNode.addChildNode(node); + if (input[_SC] != null) { + bn.c(__XmlNode.of(_SSCt, input[_SC]).n(_SC)); } - if (input.TargetKeyPrefix != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.TargetKeyPrefix).withName("TargetKeyPrefix"); - bodyNode.addChildNode(node); + if (input[_UMSC] != null) { + bn.c(__XmlNode.of(_TSi, input[_UMSC].toISOString().split(".")[0] + "Z").n(_UMSC)); } - if (input.ObjectLockLegalHoldStatus != null) { - const node = __XmlNode - .of("S3ObjectLockLegalHoldStatus", input.ObjectLockLegalHoldStatus) - .withName("ObjectLockLegalHoldStatus"); - bodyNode.addChildNode(node); + if (input[_SSEAKKI] != null) { + bn.c(__XmlNode.of(_KKAS, input[_SSEAKKI]).n(_SSEAKKI)); } - if (input.ObjectLockMode != null) { - const node = __XmlNode.of("S3ObjectLockMode", input.ObjectLockMode).withName("ObjectLockMode"); - bodyNode.addChildNode(node); + if (input[_TKP] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_TKP]).n(_TKP)); } - if (input.ObjectLockRetainUntilDate != null) { - const node = __XmlNode - .of("TimeStamp", input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z") - .withName("ObjectLockRetainUntilDate"); - bodyNode.addChildNode(node); + if (input[_OLLHS] != null) { + bn.c(__XmlNode.of(_SOLLHS, input[_OLLHS]).n(_OLLHS)); } - if (input.BucketKeyEnabled != null) { - const node = __XmlNode.of("Boolean", String(input.BucketKeyEnabled)).withName("BucketKeyEnabled"); - bodyNode.addChildNode(node); + if (input[_OLM] != null) { + bn.c(__XmlNode.of(_SOLM, input[_OLM]).n(_OLM)); } - if (input.ChecksumAlgorithm != null) { - const node = __XmlNode.of("S3ChecksumAlgorithm", input.ChecksumAlgorithm).withName("ChecksumAlgorithm"); - bodyNode.addChildNode(node); + if (input[_OLRUD] != null) { + bn.c(__XmlNode.of(_TSi, input[_OLRUD].toISOString().split(".")[0] + "Z").n(_OLRUD)); } - return bodyNode; + if (input[_BKE] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_BKE])).n(_BKE)); + } + if (input[_CAh] != null) { + bn.c(__XmlNode.of(_SCA, input[_CAh]).n(_CAh)); + } + return bn; }; /** * serializeAws_restXmlS3DeleteObjectTaggingOperation */ const se_S3DeleteObjectTaggingOperation = (input: S3DeleteObjectTaggingOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3DeleteObjectTaggingOperation"); - return bodyNode; + const bn = new __XmlNode(_SDOTO); + return bn; }; /** * serializeAws_restXmlS3Grant */ const se_S3Grant = (input: S3Grant, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3Grant"); - if (input.Grantee != null) { - const node = se_S3Grantee(input.Grantee, context).withName("Grantee"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SG); + if (input[_G] != null) { + bn.c(se_S3Grantee(input[_G], context).n(_G)); } - if (input.Permission != null) { - const node = __XmlNode.of("S3Permission", input.Permission).withName("Permission"); - bodyNode.addChildNode(node); + if (input[_P] != null) { + bn.c(__XmlNode.of(_SPe, input[_P]).n(_P)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3Grantee */ const se_S3Grantee = (input: S3Grantee, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3Grantee"); - if (input.TypeIdentifier != null) { - const node = __XmlNode.of("S3GranteeTypeIdentifier", input.TypeIdentifier).withName("TypeIdentifier"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SGr); + if (input[_TI] != null) { + bn.c(__XmlNode.of(_SGTI, input[_TI]).n(_TI)); } - if (input.Identifier != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.Identifier).withName("Identifier"); - bodyNode.addChildNode(node); + if (input[_Id] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_Id]).n(_Id)); } - if (input.DisplayName != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.DisplayName).withName("DisplayName"); - bodyNode.addChildNode(node); + if (input[_DN] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_DN]).n(_DN)); } - return bodyNode; + return bn; }; /** @@ -10277,8 +8947,8 @@ const se_S3GrantList = (input: S3Grant[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_S3Grant(entry, context); - return node.withName("member"); + const n = se_S3Grant(entry, context); + return n.n(_m); }); }; @@ -10286,256 +8956,205 @@ const se_S3GrantList = (input: S3Grant[], context: __SerdeContext): any => { * serializeAws_restXmlS3InitiateRestoreObjectOperation */ const se_S3InitiateRestoreObjectOperation = (input: S3InitiateRestoreObjectOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3InitiateRestoreObjectOperation"); - if (input.ExpirationInDays != null) { - const node = __XmlNode.of("S3ExpirationInDays", String(input.ExpirationInDays)).withName("ExpirationInDays"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SIROO); + if (input[_EID] != null) { + bn.c(__XmlNode.of(_SEID, String(input[_EID])).n(_EID)); } - if (input.GlacierJobTier != null) { - const node = __XmlNode.of("S3GlacierJobTier", input.GlacierJobTier).withName("GlacierJobTier"); - bodyNode.addChildNode(node); + if (input[_GJT] != null) { + bn.c(__XmlNode.of(_SGJT, input[_GJT]).n(_GJT)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3JobManifestGenerator */ const se_S3JobManifestGenerator = (input: S3JobManifestGenerator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3JobManifestGenerator"); - if (input.ExpectedBucketOwner != null) { - const node = __XmlNode.of("AccountId", input.ExpectedBucketOwner).withName("ExpectedBucketOwner"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SJMG); + if (input[_EBO] != null) { + bn.c(__XmlNode.of(_AI, input[_EBO]).n(_EBO)); } - if (input.SourceBucket != null) { - const node = __XmlNode.of("S3BucketArnString", input.SourceBucket).withName("SourceBucket"); - bodyNode.addChildNode(node); + if (input[_SB] != null) { + bn.c(__XmlNode.of(_SBAS, input[_SB]).n(_SB)); } - if (input.ManifestOutputLocation != null) { - const node = se_S3ManifestOutputLocation(input.ManifestOutputLocation, context).withName("ManifestOutputLocation"); - bodyNode.addChildNode(node); + if (input[_MOL] != null) { + bn.c(se_S3ManifestOutputLocation(input[_MOL], context).n(_MOL)); } - if (input.Filter != null) { - const node = se_JobManifestGeneratorFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + if (input[_Fil] != null) { + bn.c(se_JobManifestGeneratorFilter(input[_Fil], context).n(_Fil)); } - if (input.EnableManifestOutput != null) { - const node = __XmlNode.of("Boolean", String(input.EnableManifestOutput)).withName("EnableManifestOutput"); - bodyNode.addChildNode(node); + if (input[_EMO] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_EMO])).n(_EMO)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3ManifestOutputLocation */ const se_S3ManifestOutputLocation = (input: S3ManifestOutputLocation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3ManifestOutputLocation"); - if (input.ExpectedManifestBucketOwner != null) { - const node = __XmlNode.of("AccountId", input.ExpectedManifestBucketOwner).withName("ExpectedManifestBucketOwner"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SMOL); + if (input[_EMBO] != null) { + bn.c(__XmlNode.of(_AI, input[_EMBO]).n(_EMBO)); } - if (input.Bucket != null) { - const node = __XmlNode.of("S3BucketArnString", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + if (input[_B] != null) { + bn.c(__XmlNode.of(_SBAS, input[_B]).n(_B)); } - if (input.ManifestPrefix != null) { - const node = __XmlNode.of("ManifestPrefixString", input.ManifestPrefix).withName("ManifestPrefix"); - bodyNode.addChildNode(node); + if (input[_MP] != null) { + bn.c(__XmlNode.of(_MPS, input[_MP]).n(_MP)); } - if (input.ManifestEncryption != null) { - const node = se_GeneratedManifestEncryption(input.ManifestEncryption, context).withName("ManifestEncryption"); - bodyNode.addChildNode(node); + if (input[_ME] != null) { + bn.c(se_GeneratedManifestEncryption(input[_ME], context).n(_ME)); } - if (input.ManifestFormat != null) { - const node = __XmlNode.of("GeneratedManifestFormat", input.ManifestFormat).withName("ManifestFormat"); - bodyNode.addChildNode(node); + if (input[_MF] != null) { + bn.c(__XmlNode.of(_GMF, input[_MF]).n(_MF)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3ObjectLockLegalHold */ const se_S3ObjectLockLegalHold = (input: S3ObjectLockLegalHold, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3ObjectLockLegalHold"); - if (input.Status != null) { - const node = __XmlNode.of("S3ObjectLockLegalHoldStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SOLLH); + if (input[_S] != null) { + bn.c(__XmlNode.of(_SOLLHS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3ObjectMetadata */ const se_S3ObjectMetadata = (input: S3ObjectMetadata, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3ObjectMetadata"); - if (input.CacheControl != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.CacheControl).withName("CacheControl"); - bodyNode.addChildNode(node); - } - if (input.ContentDisposition != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.ContentDisposition).withName("ContentDisposition"); - bodyNode.addChildNode(node); - } - if (input.ContentEncoding != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.ContentEncoding).withName("ContentEncoding"); - bodyNode.addChildNode(node); - } - if (input.ContentLanguage != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.ContentLanguage).withName("ContentLanguage"); - bodyNode.addChildNode(node); - } - if (input.UserMetadata != null) { - const nodes = se_S3UserMetadata(input.UserMetadata, context); - const containerNode = new __XmlNode("UserMetadata"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_SOM); + if (input[_CC] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_CC]).n(_CC)); + } + if (input[_CDo] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_CDo]).n(_CDo)); + } + if (input[_CE] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_CE]).n(_CE)); + } + if (input[_CL] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_CL]).n(_CL)); } - if (input.ContentLength != null) { - const node = __XmlNode.of("S3ContentLength", String(input.ContentLength)).withName("ContentLength"); - bodyNode.addChildNode(node); + bn.lc(input, "UserMetadata", "UserMetadata", () => se_S3UserMetadata(input[_UM]!, context)); + if (input[_CLo] != null) { + bn.c(__XmlNode.of(_SCL, String(input[_CLo])).n(_CLo)); } - if (input.ContentMD5 != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.ContentMD5).withName("ContentMD5"); - bodyNode.addChildNode(node); + if (input[_CMD] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_CMD]).n(_CMD)); } - if (input.ContentType != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.ContentType).withName("ContentType"); - bodyNode.addChildNode(node); + if (input[_CTon] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_CTon]).n(_CTon)); } - if (input.HttpExpiresDate != null) { - const node = __XmlNode - .of("TimeStamp", input.HttpExpiresDate.toISOString().split(".")[0] + "Z") - .withName("HttpExpiresDate"); - bodyNode.addChildNode(node); + if (input[_HED] != null) { + bn.c(__XmlNode.of(_TSi, input[_HED].toISOString().split(".")[0] + "Z").n(_HED)); } - if (input.RequesterCharged != null) { - const node = __XmlNode.of("Boolean", String(input.RequesterCharged)).withName("RequesterCharged"); - bodyNode.addChildNode(node); + if (input[_RCe] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_RCe])).n(_RCe)); } - if (input.SSEAlgorithm != null) { - const node = __XmlNode.of("S3SSEAlgorithm", input.SSEAlgorithm).withName("SSEAlgorithm"); - bodyNode.addChildNode(node); + if (input[_SSEA] != null) { + bn.c(__XmlNode.of(_SSSEA, input[_SSEA]).n(_SSEA)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3ObjectOwner */ const se_S3ObjectOwner = (input: S3ObjectOwner, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3ObjectOwner"); - if (input.ID != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.ID).withName("ID"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SOO); + if (input[_ID] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_ID]).n(_ID)); } - if (input.DisplayName != null) { - const node = __XmlNode.of("NonEmptyMaxLength1024String", input.DisplayName).withName("DisplayName"); - bodyNode.addChildNode(node); + if (input[_DN] != null) { + bn.c(__XmlNode.of(_NEMLSon, input[_DN]).n(_DN)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3ReplicateObjectOperation */ const se_S3ReplicateObjectOperation = (input: S3ReplicateObjectOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3ReplicateObjectOperation"); - return bodyNode; + const bn = new __XmlNode(_SROO); + return bn; }; /** * serializeAws_restXmlS3Retention */ const se_S3Retention = (input: S3Retention, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3Retention"); - if (input.RetainUntilDate != null) { - const node = __XmlNode - .of("TimeStamp", input.RetainUntilDate.toISOString().split(".")[0] + "Z") - .withName("RetainUntilDate"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SR); + if (input[_RUD] != null) { + bn.c(__XmlNode.of(_TSi, input[_RUD].toISOString().split(".")[0] + "Z").n(_RUD)); } - if (input.Mode != null) { - const node = __XmlNode.of("S3ObjectLockRetentionMode", input.Mode).withName("Mode"); - bodyNode.addChildNode(node); + if (input[_Mo] != null) { + bn.c(__XmlNode.of(_SOLRM, input[_Mo]).n(_Mo)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3SetObjectAclOperation */ const se_S3SetObjectAclOperation = (input: S3SetObjectAclOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3SetObjectAclOperation"); - if (input.AccessControlPolicy != null) { - const node = se_S3AccessControlPolicy(input.AccessControlPolicy, context).withName("AccessControlPolicy"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSOAO); + if (input[_ACP] != null) { + bn.c(se_S3AccessControlPolicy(input[_ACP], context).n(_ACP)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3SetObjectLegalHoldOperation */ const se_S3SetObjectLegalHoldOperation = (input: S3SetObjectLegalHoldOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3SetObjectLegalHoldOperation"); - if (input.LegalHold != null) { - const node = se_S3ObjectLockLegalHold(input.LegalHold, context).withName("LegalHold"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSOLHO); + if (input[_LH] != null) { + bn.c(se_S3ObjectLockLegalHold(input[_LH], context).n(_LH)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3SetObjectRetentionOperation */ const se_S3SetObjectRetentionOperation = (input: S3SetObjectRetentionOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3SetObjectRetentionOperation"); - if (input.BypassGovernanceRetention != null) { - const node = __XmlNode.of("Boolean", String(input.BypassGovernanceRetention)).withName("BypassGovernanceRetention"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSORO); + if (input[_BGR] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_BGR])).n(_BGR)); } - if (input.Retention != null) { - const node = se_S3Retention(input.Retention, context).withName("Retention"); - bodyNode.addChildNode(node); + if (input[_Ret] != null) { + bn.c(se_S3Retention(input[_Ret], context).n(_Ret)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlS3SetObjectTaggingOperation */ const se_S3SetObjectTaggingOperation = (input: S3SetObjectTaggingOperation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3SetObjectTaggingOperation"); - if (input.TagSet != null) { - const nodes = se_S3TagSet(input.TagSet, context); - const containerNode = new __XmlNode("TagSet"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_SSOTO); + bn.lc(input, "TagSet", "TagSet", () => se_S3TagSet(input[_TS]!, context)); + return bn; }; /** * serializeAws_restXmlS3Tag */ const se_S3Tag = (input: S3Tag, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3Tag"); - if (input.Key != null) { - const node = __XmlNode.of("TagKeyString", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ST); + if (input[_K] != null) { + bn.c(__XmlNode.of(_TKS, input[_K]).n(_K)); } - if (input.Value != null) { - const node = __XmlNode.of("TagValueString", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_V] != null) { + bn.c(__XmlNode.of(_TVS, input[_V]).n(_V)); } - return bodyNode; + return bn; }; /** @@ -10545,8 +9164,8 @@ const se_S3TagSet = (input: S3Tag[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_S3Tag(entry, context); - return node.withName("member"); + const n = se_S3Tag(entry, context); + return n.n(_m); }); }; @@ -10558,11 +9177,11 @@ const se_S3UserMetadata = (input: Record, context: __SerdeContex .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("NonEmptyMaxLength1024String", key).withName("key"); - entryNode.addChildNode(keyNode); - let node; - node = __XmlNode.of("MaxLength1024String", input[key as keyof typeof input]!); - entryNode.addChildNode(node.withName("value")); + const keyNode = __XmlNode.of(_NEMLSon, key).n("key"); + entryNode.c(keyNode); + let n; + n = __XmlNode.of(_MLS, input[key as keyof typeof input]!); + entryNode.c(n.n(_v)); return entryNode; }); }; @@ -10571,90 +9190,80 @@ const se_S3UserMetadata = (input: Record, context: __SerdeContex * serializeAws_restXmlSelectionCriteria */ const se_SelectionCriteria = (input: SelectionCriteria, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SelectionCriteria"); - if (input.Delimiter != null) { - const node = __XmlNode.of("StorageLensPrefixLevelDelimiter", input.Delimiter).withName("Delimiter"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SCe); + if (input[_Del] != null) { + bn.c(__XmlNode.of(_SLPLD, input[_Del]).n(_Del)); } - if (input.MaxDepth != null) { - const node = __XmlNode.of("StorageLensPrefixLevelMaxDepth", String(input.MaxDepth)).withName("MaxDepth"); - bodyNode.addChildNode(node); + if (input[_MDa] != null) { + bn.c(__XmlNode.of(_SLPLMD, String(input[_MDa])).n(_MDa)); } - if (input.MinStorageBytesPercentage != null) { - const node = __XmlNode - .of("MinStorageBytesPercentage", String(input.MinStorageBytesPercentage)) - .withName("MinStorageBytesPercentage"); - bodyNode.addChildNode(node); + if (input[_MSBP] != null) { + bn.c(__XmlNode.of(_MSBP, String(input[_MSBP])).n(_MSBP)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSourceSelectionCriteria */ const se_SourceSelectionCriteria = (input: SourceSelectionCriteria, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SourceSelectionCriteria"); - if (input.SseKmsEncryptedObjects != null) { - const node = se_SseKmsEncryptedObjects(input.SseKmsEncryptedObjects, context).withName("SseKmsEncryptedObjects"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSC); + if (input[_SKEO] != null) { + bn.c(se_SseKmsEncryptedObjects(input[_SKEO], context).n(_SKEO)); } - if (input.ReplicaModifications != null) { - const node = se_ReplicaModifications(input.ReplicaModifications, context).withName("ReplicaModifications"); - bodyNode.addChildNode(node); + if (input[_RM] != null) { + bn.c(se_ReplicaModifications(input[_RM], context).n(_RM)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSSEKMS */ const se_SSEKMS = (input: SSEKMS, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SSE-KMS"); - if (input.KeyId != null) { - const node = __XmlNode.of("SSEKMSKeyId", input.KeyId).withName("KeyId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SK); + if (input[_KI] != null) { + bn.c(__XmlNode.of(_SSEKMSKI, input[_KI]).n(_KI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSseKmsEncryptedObjects */ const se_SseKmsEncryptedObjects = (input: SseKmsEncryptedObjects, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SseKmsEncryptedObjects"); - if (input.Status != null) { - const node = __XmlNode.of("SseKmsEncryptedObjectsStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SKEO); + if (input[_S] != null) { + bn.c(__XmlNode.of(_SKEOS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSSEKMSEncryption */ const se_SSEKMSEncryption = (input: SSEKMSEncryption, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SSE-KMS"); - if (input.KeyId != null) { - const node = __XmlNode.of("KmsKeyArnString", input.KeyId).withName("KeyId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SK); + if (input[_KI] != null) { + bn.c(__XmlNode.of(_KKAS, input[_KI]).n(_KI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSSES3 */ const se_SSES3 = (input: SSES3, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SSE-S3"); - return bodyNode; + const bn = new __XmlNode(_SS); + return bn; }; /** * serializeAws_restXmlSSES3Encryption */ const se_SSES3Encryption = (input: SSES3Encryption, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SSE-S3"); - return bodyNode; + const bn = new __XmlNode(_SS); + return bn; }; /** @@ -10664,8 +9273,8 @@ const se_StorageClassList = (input: S3StorageClass[], context: __SerdeContext): return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("S3StorageClass", entry); - return node.withName("member"); + const n = __XmlNode.of(_SSCt, entry); + return n.n(_m); }); }; @@ -10673,206 +9282,135 @@ const se_StorageClassList = (input: S3StorageClass[], context: __SerdeContext): * serializeAws_restXmlStorageLensAwsOrg */ const se_StorageLensAwsOrg = (input: StorageLensAwsOrg, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensAwsOrg"); - if (input.Arn != null) { - const node = __XmlNode.of("AwsOrgArn", input.Arn).withName("Arn"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLAO); + if (input[_Ar] != null) { + bn.c(__XmlNode.of(_AOA, input[_Ar]).n(_Ar)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStorageLensConfiguration */ const se_StorageLensConfiguration = (input: StorageLensConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensConfiguration"); - if (input.Id != null) { - const node = __XmlNode.of("ConfigId", input.Id).withName("Id"); - bodyNode.addChildNode(node); - } - if (input.AccountLevel != null) { - const node = se_AccountLevel(input.AccountLevel, context).withName("AccountLevel"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLC); + if (input[_Id_] != null) { + bn.c(__XmlNode.of(_CI, input[_Id_]).n(_Id_)); } - if (input.Include != null) { - const node = se_Include(input.Include, context).withName("Include"); - bodyNode.addChildNode(node); + if (input[_AL] != null) { + bn.c(se_AccountLevel(input[_AL], context).n(_AL)); } - if (input.Exclude != null) { - const node = se__Exclude(input.Exclude, context).withName("Exclude"); - bodyNode.addChildNode(node); + if (input[_I] != null) { + bn.c(se_Include(input[_I], context).n(_I)); } - if (input.DataExport != null) { - const node = se_StorageLensDataExport(input.DataExport, context).withName("DataExport"); - bodyNode.addChildNode(node); + if (input[_Ex] != null) { + bn.c(se__Exclude(input[_Ex], context).n(_Ex)); } - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); + if (input[_DE] != null) { + bn.c(se_StorageLensDataExport(input[_DE], context).n(_DE)); } - if (input.AwsOrg != null) { - const node = se_StorageLensAwsOrg(input.AwsOrg, context).withName("AwsOrg"); - bodyNode.addChildNode(node); + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); } - if (input.StorageLensArn != null) { - const node = __XmlNode.of("StorageLensArn", input.StorageLensArn).withName("StorageLensArn"); - bodyNode.addChildNode(node); + if (input[_AOw] != null) { + bn.c(se_StorageLensAwsOrg(input[_AOw], context).n(_AOw)); } - return bodyNode; + bn.cc(input, _SLA); + return bn; }; /** * serializeAws_restXmlStorageLensDataExport */ const se_StorageLensDataExport = (input: StorageLensDataExport, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensDataExport"); - if (input.S3BucketDestination != null) { - const node = se_S3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLDE); + if (input[_SBD] != null) { + bn.c(se_S3BucketDestination(input[_SBD], context).n(_SBD)); } - if (input.CloudWatchMetrics != null) { - const node = se_CloudWatchMetrics(input.CloudWatchMetrics, context).withName("CloudWatchMetrics"); - bodyNode.addChildNode(node); + if (input[_CWM] != null) { + bn.c(se_CloudWatchMetrics(input[_CWM], context).n(_CWM)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStorageLensDataExportEncryption */ const se_StorageLensDataExportEncryption = (input: StorageLensDataExportEncryption, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensDataExportEncryption"); - if (input.SSES3 != null) { - const node = se_SSES3(input.SSES3, context).withName("SSE-S3"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLDEE); + if (input[_SSES] != null) { + bn.c(se_SSES3(input[_SSES], context).n(_SS)); } - if (input.SSEKMS != null) { - const node = se_SSEKMS(input.SSEKMS, context).withName("SSE-KMS"); - bodyNode.addChildNode(node); + if (input[_SSEKMS] != null) { + bn.c(se_SSEKMS(input[_SSEKMS], context).n(_SK)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStorageLensGroup */ const se_StorageLensGroup = (input: StorageLensGroup, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensGroup"); - if (input.Name != null) { - const node = __XmlNode.of("StorageLensGroupName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLG); + if (input[_N] != null) { + bn.c(__XmlNode.of(_SLGN, input[_N]).n(_N)); } - if (input.Filter != null) { - const node = se_StorageLensGroupFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + if (input[_Fil] != null) { + bn.c(se_StorageLensGroupFilter(input[_Fil], context).n(_Fil)); } - if (input.StorageLensGroupArn != null) { - const node = __XmlNode.of("StorageLensGroupArn", input.StorageLensGroupArn).withName("StorageLensGroupArn"); - bodyNode.addChildNode(node); - } - return bodyNode; + bn.cc(input, _SLGA); + return bn; }; /** * serializeAws_restXmlStorageLensGroupAndOperator */ const se_StorageLensGroupAndOperator = (input: StorageLensGroupAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensGroupAndOperator"); - if (input.MatchAnyPrefix != null) { - const nodes = se_MatchAnyPrefix(input.MatchAnyPrefix, context); - const containerNode = new __XmlNode("MatchAnyPrefix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_SLGAO); + bn.lc(input, "MatchAnyPrefix", "MatchAnyPrefix", () => se_MatchAnyPrefix(input[_MAP]!, context)); + bn.lc(input, "MatchAnySuffix", "MatchAnySuffix", () => se_MatchAnySuffix(input[_MAS]!, context)); + bn.lc(input, "MatchAnyTag", "MatchAnyTag", () => se_MatchAnyTag(input[_MAT]!, context)); + if (input[_MOA] != null) { + bn.c(se_MatchObjectAge(input[_MOA], context).n(_MOA)); } - if (input.MatchAnySuffix != null) { - const nodes = se_MatchAnySuffix(input.MatchAnySuffix, context); - const containerNode = new __XmlNode("MatchAnySuffix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchAnyTag != null) { - const nodes = se_MatchAnyTag(input.MatchAnyTag, context); - const containerNode = new __XmlNode("MatchAnyTag"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + if (input[_MOS] != null) { + bn.c(se_MatchObjectSize(input[_MOS], context).n(_MOS)); } - if (input.MatchObjectAge != null) { - const node = se_MatchObjectAge(input.MatchObjectAge, context).withName("MatchObjectAge"); - bodyNode.addChildNode(node); - } - if (input.MatchObjectSize != null) { - const node = se_MatchObjectSize(input.MatchObjectSize, context).withName("MatchObjectSize"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStorageLensGroupFilter */ const se_StorageLensGroupFilter = (input: StorageLensGroupFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensGroupFilter"); - if (input.MatchAnyPrefix != null) { - const nodes = se_MatchAnyPrefix(input.MatchAnyPrefix, context); - const containerNode = new __XmlNode("MatchAnyPrefix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchAnySuffix != null) { - const nodes = se_MatchAnySuffix(input.MatchAnySuffix, context); - const containerNode = new __XmlNode("MatchAnySuffix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchAnyTag != null) { - const nodes = se_MatchAnyTag(input.MatchAnyTag, context); - const containerNode = new __XmlNode("MatchAnyTag"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchObjectAge != null) { - const node = se_MatchObjectAge(input.MatchObjectAge, context).withName("MatchObjectAge"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLGF); + bn.lc(input, "MatchAnyPrefix", "MatchAnyPrefix", () => se_MatchAnyPrefix(input[_MAP]!, context)); + bn.lc(input, "MatchAnySuffix", "MatchAnySuffix", () => se_MatchAnySuffix(input[_MAS]!, context)); + bn.lc(input, "MatchAnyTag", "MatchAnyTag", () => se_MatchAnyTag(input[_MAT]!, context)); + if (input[_MOA] != null) { + bn.c(se_MatchObjectAge(input[_MOA], context).n(_MOA)); } - if (input.MatchObjectSize != null) { - const node = se_MatchObjectSize(input.MatchObjectSize, context).withName("MatchObjectSize"); - bodyNode.addChildNode(node); + if (input[_MOS] != null) { + bn.c(se_MatchObjectSize(input[_MOS], context).n(_MOS)); } - if (input.And != null) { - const node = se_StorageLensGroupAndOperator(input.And, context).withName("And"); - bodyNode.addChildNode(node); + if (input[_An] != null) { + bn.c(se_StorageLensGroupAndOperator(input[_An], context).n(_An)); } - if (input.Or != null) { - const node = se_StorageLensGroupOrOperator(input.Or, context).withName("Or"); - bodyNode.addChildNode(node); + if (input[_Or_] != null) { + bn.c(se_StorageLensGroupOrOperator(input[_Or_], context).n(_Or_)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStorageLensGroupLevel */ const se_StorageLensGroupLevel = (input: StorageLensGroupLevel, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensGroupLevel"); - if (input.SelectionCriteria != null) { - const node = se_StorageLensGroupLevelSelectionCriteria(input.SelectionCriteria, context).withName( - "SelectionCriteria" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLGLt); + if (input[_SCe] != null) { + bn.c(se_StorageLensGroupLevelSelectionCriteria(input[_SCe], context).n(_SCe)); } - return bodyNode; + return bn; }; /** @@ -10882,8 +9420,8 @@ const se_StorageLensGroupLevelExclude = (input: string[], context: __SerdeContex return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("StorageLensGroupArn", entry); - return node.withName("Arn"); + const n = __XmlNode.of(_SLGA, entry); + return n.n(_Ar); }); }; @@ -10894,8 +9432,8 @@ const se_StorageLensGroupLevelInclude = (input: string[], context: __SerdeContex return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("StorageLensGroupArn", entry); - return node.withName("Arn"); + const n = __XmlNode.of(_SLGA, entry); + return n.n(_Ar); }); }; @@ -10906,80 +9444,41 @@ const se_StorageLensGroupLevelSelectionCriteria = ( input: StorageLensGroupLevelSelectionCriteria, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("StorageLensGroupLevelSelectionCriteria"); - if (input.Include != null) { - const nodes = se_StorageLensGroupLevelInclude(input.Include, context); - const containerNode = new __XmlNode("Include"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.Exclude != null) { - const nodes = se_StorageLensGroupLevelExclude(input.Exclude, context); - const containerNode = new __XmlNode("Exclude"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_SLGLSC); + bn.lc(input, "Include", "Include", () => se_StorageLensGroupLevelInclude(input[_I]!, context)); + bn.lc(input, "Exclude", "Exclude", () => se_StorageLensGroupLevelExclude(input[_Ex]!, context)); + return bn; }; /** * serializeAws_restXmlStorageLensGroupOrOperator */ const se_StorageLensGroupOrOperator = (input: StorageLensGroupOrOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensGroupOrOperator"); - if (input.MatchAnyPrefix != null) { - const nodes = se_MatchAnyPrefix(input.MatchAnyPrefix, context); - const containerNode = new __XmlNode("MatchAnyPrefix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchAnySuffix != null) { - const nodes = se_MatchAnySuffix(input.MatchAnySuffix, context); - const containerNode = new __XmlNode("MatchAnySuffix"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchAnyTag != null) { - const nodes = se_MatchAnyTag(input.MatchAnyTag, context); - const containerNode = new __XmlNode("MatchAnyTag"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.MatchObjectAge != null) { - const node = se_MatchObjectAge(input.MatchObjectAge, context).withName("MatchObjectAge"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLGOO); + bn.lc(input, "MatchAnyPrefix", "MatchAnyPrefix", () => se_MatchAnyPrefix(input[_MAP]!, context)); + bn.lc(input, "MatchAnySuffix", "MatchAnySuffix", () => se_MatchAnySuffix(input[_MAS]!, context)); + bn.lc(input, "MatchAnyTag", "MatchAnyTag", () => se_MatchAnyTag(input[_MAT]!, context)); + if (input[_MOA] != null) { + bn.c(se_MatchObjectAge(input[_MOA], context).n(_MOA)); } - if (input.MatchObjectSize != null) { - const node = se_MatchObjectSize(input.MatchObjectSize, context).withName("MatchObjectSize"); - bodyNode.addChildNode(node); + if (input[_MOS] != null) { + bn.c(se_MatchObjectSize(input[_MOS], context).n(_MOS)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStorageLensTag */ const se_StorageLensTag = (input: StorageLensTag, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageLensTag"); - if (input.Key != null) { - const node = __XmlNode.of("TagKeyString", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLT); + if (input[_K] != null) { + bn.c(__XmlNode.of(_TKS, input[_K]).n(_K)); } - if (input.Value != null) { - const node = __XmlNode.of("TagValueString", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_V] != null) { + bn.c(__XmlNode.of(_TVS, input[_V]).n(_V)); } - return bodyNode; + return bn; }; /** @@ -10989,8 +9488,8 @@ const se_StorageLensTags = (input: StorageLensTag[], context: __SerdeContext): a return input .filter((e: any) => e != null) .map((entry) => { - const node = se_StorageLensTag(entry, context); - return node.withName("Tag"); + const n = se_StorageLensTag(entry, context); + return n.n(_Tag); }); }; @@ -10998,32 +9497,23 @@ const se_StorageLensTags = (input: StorageLensTag[], context: __SerdeContext): a * serializeAws_restXmlTag */ const se_Tag = (input: Tag, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tag"); - if (input.Key != null) { - const node = __XmlNode.of("TagKeyString", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Tag); + if (input[_K] != null) { + bn.c(__XmlNode.of(_TKS, input[_K]).n(_K)); } - if (input.Value != null) { - const node = __XmlNode.of("TagValueString", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_V] != null) { + bn.c(__XmlNode.of(_TVS, input[_V]).n(_V)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlTagging */ const se_Tagging = (input: Tagging, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tagging"); - if (input.TagSet != null) { - const nodes = se_S3TagSet(input.TagSet, context); - const containerNode = new __XmlNode("TagSet"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_Tagg); + bn.lc(input, "TagSet", "TagSet", () => se_S3TagSet(input[_TS]!, context)); + return bn; }; /** @@ -11033,8 +9523,8 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Tag(entry, context); - return node.withName("Tag"); + const n = se_Tag(entry, context); + return n.n(_Tag); }); }; @@ -11042,20 +9532,17 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { * serializeAws_restXmlTransition */ const se_Transition = (input: Transition, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Transition"); - if (input.Date != null) { - const node = __XmlNode.of("Date", input.Date.toISOString().split(".")[0] + "Z").withName("Date"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Tra); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, input[_Da].toISOString().split(".")[0] + "Z").n(_Da)); } - if (input.Days != null) { - const node = __XmlNode.of("Days", String(input.Days)).withName("Days"); - bodyNode.addChildNode(node); + if (input[_Day] != null) { + bn.c(__XmlNode.of(_Day, String(input[_Day])).n(_Day)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("TransitionStorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + if (input[_SC] != null) { + bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); } - return bodyNode; + return bn; }; /** @@ -11065,8 +9552,8 @@ const se_TransitionList = (input: Transition[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Transition(entry, context); - return node.withName("Transition"); + const n = se_Transition(entry, context); + return n.n(_Tra); }); }; @@ -11078,11 +9565,11 @@ const se_UserArguments = (input: Record, context: __SerdeContext .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("NonEmptyMaxLength64String", key).withName("key"); - entryNode.addChildNode(keyNode); - let node; - node = __XmlNode.of("MaxLength1024String", input[key as keyof typeof input]!); - entryNode.addChildNode(node.withName("value")); + const keyNode = __XmlNode.of(_NEMLS, key).n("key"); + entryNode.c(keyNode); + let n; + n = __XmlNode.of(_MLS, input[key as keyof typeof input]!); + entryNode.c(n.n(_v)); return entryNode; }); }; @@ -11091,28 +9578,23 @@ const se_UserArguments = (input: Record, context: __SerdeContext * serializeAws_restXmlVersioningConfiguration */ const se_VersioningConfiguration = (input: VersioningConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("VersioningConfiguration"); - if (input.MFADelete != null) { - const node = __XmlNode.of("MFADelete", input.MFADelete).withName("MfaDelete"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_VCe); + if (input[_MFAD] != null) { + bn.c(__XmlNode.of(_MFAD, input[_MFAD]).n(_MD)); } - if (input.Status != null) { - const node = __XmlNode.of("BucketVersioningStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + if (input[_S] != null) { + bn.c(__XmlNode.of(_BVS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlVpcConfiguration */ const se_VpcConfiguration = (input: VpcConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("VpcConfiguration"); - if (input.VpcId != null) { - const node = __XmlNode.of("VpcId", input.VpcId).withName("VpcId"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_VC); + bn.cc(input, _VI); + return bn; }; /** @@ -11120,8 +9602,8 @@ const se_VpcConfiguration = (input: VpcConfiguration, context: __SerdeContext): */ const de_AbortIncompleteMultipartUpload = (output: any, context: __SerdeContext): AbortIncompleteMultipartUpload => { const contents: any = {}; - if (output["DaysAfterInitiation"] !== undefined) { - contents.DaysAfterInitiation = __strictParseInt32(output["DaysAfterInitiation"]) as number; + if (output[_DAI] != null) { + contents[_DAI] = __strictParseInt32(output[_DAI]) as number; } return contents; }; @@ -11131,8 +9613,8 @@ const de_AbortIncompleteMultipartUpload = (output: any, context: __SerdeContext) */ const de_AccessControlTranslation = (output: any, context: __SerdeContext): AccessControlTranslation => { const contents: any = {}; - if (output["Owner"] !== undefined) { - contents.Owner = __expectString(output["Owner"]); + if (output[_Ow] != null) { + contents[_Ow] = __expectString(output[_Ow]); } return contents; }; @@ -11167,8 +9649,8 @@ const de_AccessGrantsLocationConfiguration = ( context: __SerdeContext ): AccessGrantsLocationConfiguration => { const contents: any = {}; - if (output["S3SubPrefix"] !== undefined) { - contents.S3SubPrefix = __expectString(output["S3SubPrefix"]); + if (output[_SSP] != null) { + contents[_SSP] = __expectString(output[_SSP]); } return contents; }; @@ -11189,26 +9671,26 @@ const de_AccessGrantsLocationsList = (output: any, context: __SerdeContext): Lis */ const de_AccessPoint = (output: any, context: __SerdeContext): AccessPoint => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["NetworkOrigin"] !== undefined) { - contents.NetworkOrigin = __expectString(output["NetworkOrigin"]); + if (output[_NO] != null) { + contents[_NO] = __expectString(output[_NO]); } - if (output["VpcConfiguration"] !== undefined) { - contents.VpcConfiguration = de_VpcConfiguration(output["VpcConfiguration"], context); + if (output[_VC] != null) { + contents[_VC] = de_VpcConfiguration(output[_VC], context); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["AccessPointArn"] !== undefined) { - contents.AccessPointArn = __expectString(output["AccessPointArn"]); + if (output[_APA] != null) { + contents[_APA] = __expectString(output[_APA]); } - if (output["Alias"] !== undefined) { - contents.Alias = __expectString(output["Alias"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["BucketAccountId"] !== undefined) { - contents.BucketAccountId = __expectString(output["BucketAccountId"]); + if (output[_BAI] != null) { + contents[_BAI] = __expectString(output[_BAI]); } return contents; }; @@ -11229,29 +9711,23 @@ const de_AccessPointList = (output: any, context: __SerdeContext): AccessPoint[] */ const de_AccountLevel = (output: any, context: __SerdeContext): AccountLevel => { const contents: any = {}; - if (output["ActivityMetrics"] !== undefined) { - contents.ActivityMetrics = de_ActivityMetrics(output["ActivityMetrics"], context); + if (output[_AM] != null) { + contents[_AM] = de_ActivityMetrics(output[_AM], context); } - if (output["BucketLevel"] !== undefined) { - contents.BucketLevel = de_BucketLevel(output["BucketLevel"], context); + if (output[_BL] != null) { + contents[_BL] = de_BucketLevel(output[_BL], context); } - if (output["AdvancedCostOptimizationMetrics"] !== undefined) { - contents.AdvancedCostOptimizationMetrics = de_AdvancedCostOptimizationMetrics( - output["AdvancedCostOptimizationMetrics"], - context - ); + if (output[_ACOM] != null) { + contents[_ACOM] = de_AdvancedCostOptimizationMetrics(output[_ACOM], context); } - if (output["AdvancedDataProtectionMetrics"] !== undefined) { - contents.AdvancedDataProtectionMetrics = de_AdvancedDataProtectionMetrics( - output["AdvancedDataProtectionMetrics"], - context - ); + if (output[_ADPM] != null) { + contents[_ADPM] = de_AdvancedDataProtectionMetrics(output[_ADPM], context); } - if (output["DetailedStatusCodesMetrics"] !== undefined) { - contents.DetailedStatusCodesMetrics = de_DetailedStatusCodesMetrics(output["DetailedStatusCodesMetrics"], context); + if (output[_DSCM] != null) { + contents[_DSCM] = de_DetailedStatusCodesMetrics(output[_DSCM], context); } - if (output["StorageLensGroupLevel"] !== undefined) { - contents.StorageLensGroupLevel = de_StorageLensGroupLevel(output["StorageLensGroupLevel"], context); + if (output[_SLGLt] != null) { + contents[_SLGLt] = de_StorageLensGroupLevel(output[_SLGLt], context); } return contents; }; @@ -11261,8 +9737,8 @@ const de_AccountLevel = (output: any, context: __SerdeContext): AccountLevel => */ const de_ActivityMetrics = (output: any, context: __SerdeContext): ActivityMetrics => { const contents: any = {}; - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } return contents; }; @@ -11272,8 +9748,8 @@ const de_ActivityMetrics = (output: any, context: __SerdeContext): ActivityMetri */ const de_AdvancedCostOptimizationMetrics = (output: any, context: __SerdeContext): AdvancedCostOptimizationMetrics => { const contents: any = {}; - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } return contents; }; @@ -11283,8 +9759,8 @@ const de_AdvancedCostOptimizationMetrics = (output: any, context: __SerdeContext */ const de_AdvancedDataProtectionMetrics = (output: any, context: __SerdeContext): AdvancedDataProtectionMetrics => { const contents: any = {}; - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } return contents; }; @@ -11294,17 +9770,17 @@ const de_AdvancedDataProtectionMetrics = (output: any, context: __SerdeContext): */ const de_AsyncErrorDetails = (output: any, context: __SerdeContext): AsyncErrorDetails => { const contents: any = {}; - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_Co] != null) { + contents[_Co] = __expectString(output[_Co]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Me] != null) { + contents[_Me] = __expectString(output[_Me]); } - if (output["Resource"] !== undefined) { - contents.Resource = __expectString(output["Resource"]); + if (output[_Res] != null) { + contents[_Res] = __expectString(output[_Res]); } - if (output["RequestId"] !== undefined) { - contents.RequestId = __expectString(output["RequestId"]); + if (output[_RI] != null) { + contents[_RI] = __expectString(output[_RI]); } return contents; }; @@ -11314,23 +9790,23 @@ const de_AsyncErrorDetails = (output: any, context: __SerdeContext): AsyncErrorD */ const de_AsyncOperation = (output: any, context: __SerdeContext): AsyncOperation => { const contents: any = {}; - if (output["CreationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["Operation"] !== undefined) { - contents.Operation = __expectString(output["Operation"]); + if (output[_O] != null) { + contents[_O] = __expectString(output[_O]); } - if (output["RequestTokenARN"] !== undefined) { - contents.RequestTokenARN = __expectString(output["RequestTokenARN"]); + if (output[_RTARN] != null) { + contents[_RTARN] = __expectString(output[_RTARN]); } - if (output["RequestParameters"] !== undefined) { - contents.RequestParameters = de_AsyncRequestParameters(output["RequestParameters"], context); + if (output[_RPe] != null) { + contents[_RPe] = de_AsyncRequestParameters(output[_RPe], context); } - if (output["RequestStatus"] !== undefined) { - contents.RequestStatus = __expectString(output["RequestStatus"]); + if (output[_RSeq] != null) { + contents[_RSeq] = __expectString(output[_RSeq]); } - if (output["ResponseDetails"] !== undefined) { - contents.ResponseDetails = de_AsyncResponseDetails(output["ResponseDetails"], context); + if (output[_RD] != null) { + contents[_RD] = de_AsyncResponseDetails(output[_RD], context); } return contents; }; @@ -11340,23 +9816,14 @@ const de_AsyncOperation = (output: any, context: __SerdeContext): AsyncOperation */ const de_AsyncRequestParameters = (output: any, context: __SerdeContext): AsyncRequestParameters => { const contents: any = {}; - if (output["CreateMultiRegionAccessPointRequest"] !== undefined) { - contents.CreateMultiRegionAccessPointRequest = de_CreateMultiRegionAccessPointInput( - output["CreateMultiRegionAccessPointRequest"], - context - ); + if (output[_CMRAPR] != null) { + contents[_CMRAPR] = de_CreateMultiRegionAccessPointInput(output[_CMRAPR], context); } - if (output["DeleteMultiRegionAccessPointRequest"] !== undefined) { - contents.DeleteMultiRegionAccessPointRequest = de_DeleteMultiRegionAccessPointInput( - output["DeleteMultiRegionAccessPointRequest"], - context - ); + if (output[_DMRAPR] != null) { + contents[_DMRAPR] = de_DeleteMultiRegionAccessPointInput(output[_DMRAPR], context); } - if (output["PutMultiRegionAccessPointPolicyRequest"] !== undefined) { - contents.PutMultiRegionAccessPointPolicyRequest = de_PutMultiRegionAccessPointPolicyInput( - output["PutMultiRegionAccessPointPolicyRequest"], - context - ); + if (output[_PMRAPPR] != null) { + contents[_PMRAPPR] = de_PutMultiRegionAccessPointPolicyInput(output[_PMRAPPR], context); } return contents; }; @@ -11366,14 +9833,11 @@ const de_AsyncRequestParameters = (output: any, context: __SerdeContext): AsyncR */ const de_AsyncResponseDetails = (output: any, context: __SerdeContext): AsyncResponseDetails => { const contents: any = {}; - if (output["MultiRegionAccessPointDetails"] !== undefined) { - contents.MultiRegionAccessPointDetails = de_MultiRegionAccessPointsAsyncResponse( - output["MultiRegionAccessPointDetails"], - context - ); + if (output[_MRAPD] != null) { + contents[_MRAPD] = de_MultiRegionAccessPointsAsyncResponse(output[_MRAPD], context); } - if (output["ErrorDetails"] !== undefined) { - contents.ErrorDetails = de_AsyncErrorDetails(output["ErrorDetails"], context); + if (output[_ED] != null) { + contents[_ED] = de_AsyncErrorDetails(output[_ED], context); } return contents; }; @@ -11383,11 +9847,11 @@ const de_AsyncResponseDetails = (output: any, context: __SerdeContext): AsyncRes */ const de_AwsLambdaTransformation = (output: any, context: __SerdeContext): AwsLambdaTransformation => { const contents: any = {}; - if (output["FunctionArn"] !== undefined) { - contents.FunctionArn = __expectString(output["FunctionArn"]); + if (output[_FA] != null) { + contents[_FA] = __expectString(output[_FA]); } - if (output["FunctionPayload"] !== undefined) { - contents.FunctionPayload = __expectString(output["FunctionPayload"]); + if (output[_FP] != null) { + contents[_FP] = __expectString(output[_FP]); } return contents; }; @@ -11397,26 +9861,20 @@ const de_AwsLambdaTransformation = (output: any, context: __SerdeContext): AwsLa */ const de_BucketLevel = (output: any, context: __SerdeContext): BucketLevel => { const contents: any = {}; - if (output["ActivityMetrics"] !== undefined) { - contents.ActivityMetrics = de_ActivityMetrics(output["ActivityMetrics"], context); + if (output[_AM] != null) { + contents[_AM] = de_ActivityMetrics(output[_AM], context); } - if (output["PrefixLevel"] !== undefined) { - contents.PrefixLevel = de_PrefixLevel(output["PrefixLevel"], context); + if (output[_PL] != null) { + contents[_PL] = de_PrefixLevel(output[_PL], context); } - if (output["AdvancedCostOptimizationMetrics"] !== undefined) { - contents.AdvancedCostOptimizationMetrics = de_AdvancedCostOptimizationMetrics( - output["AdvancedCostOptimizationMetrics"], - context - ); + if (output[_ACOM] != null) { + contents[_ACOM] = de_AdvancedCostOptimizationMetrics(output[_ACOM], context); } - if (output["AdvancedDataProtectionMetrics"] !== undefined) { - contents.AdvancedDataProtectionMetrics = de_AdvancedDataProtectionMetrics( - output["AdvancedDataProtectionMetrics"], - context - ); + if (output[_ADPM] != null) { + contents[_ADPM] = de_AdvancedDataProtectionMetrics(output[_ADPM], context); } - if (output["DetailedStatusCodesMetrics"] !== undefined) { - contents.DetailedStatusCodesMetrics = de_DetailedStatusCodesMetrics(output["DetailedStatusCodesMetrics"], context); + if (output[_DSCM] != null) { + contents[_DSCM] = de_DetailedStatusCodesMetrics(output[_DSCM], context); } return contents; }; @@ -11437,8 +9895,8 @@ const de_Buckets = (output: any, context: __SerdeContext): string[] => { */ const de_CloudWatchMetrics = (output: any, context: __SerdeContext): CloudWatchMetrics => { const contents: any = {}; - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } return contents; }; @@ -11451,16 +9909,16 @@ const de_CreateMultiRegionAccessPointInput = ( context: __SerdeContext ): CreateMultiRegionAccessPointInput => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["PublicAccessBlock"] !== undefined) { - contents.PublicAccessBlock = de_PublicAccessBlockConfiguration(output["PublicAccessBlock"], context); + if (output[_PAB] != null) { + contents[_PAB] = de_PublicAccessBlockConfiguration(output[_PAB], context); } if (output.Regions === "") { - contents.Regions = []; - } else if (output["Regions"] !== undefined && output["Regions"]["Region"] !== undefined) { - contents.Regions = de_RegionCreationList(__getArrayIfSingleItem(output["Regions"]["Region"]), context); + contents[_Re] = []; + } else if (output[_Re] != null && output[_Re][_Reg] != null) { + contents[_Re] = de_RegionCreationList(__getArrayIfSingleItem(output[_Re][_Reg]), context); } return contents; }; @@ -11470,17 +9928,17 @@ const de_CreateMultiRegionAccessPointInput = ( */ const de_Credentials = (output: any, context: __SerdeContext): Credentials => { const contents: any = {}; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = __expectString(output["AccessKeyId"]); + if (output[_AKI] != null) { + contents[_AKI] = __expectString(output[_AKI]); } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = __expectString(output["SecretAccessKey"]); + if (output[_SAK] != null) { + contents[_SAK] = __expectString(output[_SAK]); } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = __expectString(output["SessionToken"]); + if (output[_STe] != null) { + contents[_STe] = __expectString(output[_STe]); } - if (output["Expiration"] !== undefined) { - contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"])); + if (output[_Exp] != null) { + contents[_Exp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Exp])); } return contents; }; @@ -11490,8 +9948,8 @@ const de_Credentials = (output: any, context: __SerdeContext): Credentials => { */ const de_DeleteMarkerReplication = (output: any, context: __SerdeContext): DeleteMarkerReplication => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -11504,8 +9962,8 @@ const de_DeleteMultiRegionAccessPointInput = ( context: __SerdeContext ): DeleteMultiRegionAccessPointInput => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -11515,26 +9973,26 @@ const de_DeleteMultiRegionAccessPointInput = ( */ const de_Destination = (output: any, context: __SerdeContext): Destination => { const contents: any = {}; - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); + if (output[_Ac] != null) { + contents[_Ac] = __expectString(output[_Ac]); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["ReplicationTime"] !== undefined) { - contents.ReplicationTime = de_ReplicationTime(output["ReplicationTime"], context); + if (output[_RT] != null) { + contents[_RT] = de_ReplicationTime(output[_RT], context); } - if (output["AccessControlTranslation"] !== undefined) { - contents.AccessControlTranslation = de_AccessControlTranslation(output["AccessControlTranslation"], context); + if (output[_ACT] != null) { + contents[_ACT] = de_AccessControlTranslation(output[_ACT], context); } - if (output["EncryptionConfiguration"] !== undefined) { - contents.EncryptionConfiguration = de_EncryptionConfiguration(output["EncryptionConfiguration"], context); + if (output[_EC] != null) { + contents[_EC] = de_EncryptionConfiguration(output[_EC], context); } - if (output["Metrics"] !== undefined) { - contents.Metrics = de_Metrics(output["Metrics"], context); + if (output[_Met] != null) { + contents[_Met] = de_Metrics(output[_Met], context); } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } return contents; }; @@ -11544,8 +10002,8 @@ const de_Destination = (output: any, context: __SerdeContext): Destination => { */ const de_DetailedStatusCodesMetrics = (output: any, context: __SerdeContext): DetailedStatusCodesMetrics => { const contents: any = {}; - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } return contents; }; @@ -11555,8 +10013,8 @@ const de_DetailedStatusCodesMetrics = (output: any, context: __SerdeContext): De */ const de_EncryptionConfiguration = (output: any, context: __SerdeContext): EncryptionConfiguration => { const contents: any = {}; - if (output["ReplicaKmsKeyID"] !== undefined) { - contents.ReplicaKmsKeyID = __expectString(output["ReplicaKmsKeyID"]); + if (output[_RKKID] != null) { + contents[_RKKID] = __expectString(output[_RKKID]); } return contents; }; @@ -11582,8 +10040,8 @@ const de_EstablishedMultiRegionAccessPointPolicy = ( context: __SerdeContext ): EstablishedMultiRegionAccessPointPolicy => { const contents: any = {}; - if (output["Policy"] !== undefined) { - contents.Policy = __expectString(output["Policy"]); + if (output[_Po] != null) { + contents[_Po] = __expectString(output[_Po]); } return contents; }; @@ -11594,14 +10052,14 @@ const de_EstablishedMultiRegionAccessPointPolicy = ( const de__Exclude = (output: any, context: __SerdeContext): _Exclude => { const contents: any = {}; if (output.Buckets === "") { - contents.Buckets = []; - } else if (output["Buckets"] !== undefined && output["Buckets"]["Arn"] !== undefined) { - contents.Buckets = de_Buckets(__getArrayIfSingleItem(output["Buckets"]["Arn"]), context); + contents[_Bu] = []; + } else if (output[_Bu] != null && output[_Bu][_Ar] != null) { + contents[_Bu] = de_Buckets(__getArrayIfSingleItem(output[_Bu][_Ar]), context); } if (output.Regions === "") { - contents.Regions = []; - } else if (output["Regions"] !== undefined && output["Regions"]["Region"] !== undefined) { - contents.Regions = de_Regions(__getArrayIfSingleItem(output["Regions"]["Region"]), context); + contents[_Re] = []; + } else if (output[_Re] != null && output[_Re][_Reg] != null) { + contents[_Re] = de_Regions(__getArrayIfSingleItem(output[_Re][_Reg]), context); } return contents; }; @@ -11611,8 +10069,8 @@ const de__Exclude = (output: any, context: __SerdeContext): _Exclude => { */ const de_ExistingObjectReplication = (output: any, context: __SerdeContext): ExistingObjectReplication => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -11622,11 +10080,11 @@ const de_ExistingObjectReplication = (output: any, context: __SerdeContext): Exi */ const de_GeneratedManifestEncryption = (output: any, context: __SerdeContext): GeneratedManifestEncryption => { const contents: any = {}; - if (output["SSE-S3"] !== undefined) { - contents.SSES3 = de_SSES3Encryption(output["SSE-S3"], context); + if (output[_SS] != null) { + contents[_SSES] = de_SSES3Encryption(output[_SS], context); } - if (output["SSE-KMS"] !== undefined) { - contents.SSEKMS = de_SSEKMSEncryption(output["SSE-KMS"], context); + if (output[_SK] != null) { + contents[_SSEKMS] = de_SSEKMSEncryption(output[_SK], context); } return contents; }; @@ -11636,11 +10094,11 @@ const de_GeneratedManifestEncryption = (output: any, context: __SerdeContext): G */ const de_Grantee = (output: any, context: __SerdeContext): Grantee => { const contents: any = {}; - if (output["GranteeType"] !== undefined) { - contents.GranteeType = __expectString(output["GranteeType"]); + if (output[_GT] != null) { + contents[_GT] = __expectString(output[_GT]); } - if (output["GranteeIdentifier"] !== undefined) { - contents.GranteeIdentifier = __expectString(output["GranteeIdentifier"]); + if (output[_GI] != null) { + contents[_GI] = __expectString(output[_GI]); } return contents; }; @@ -11651,14 +10109,14 @@ const de_Grantee = (output: any, context: __SerdeContext): Grantee => { const de_Include = (output: any, context: __SerdeContext): Include => { const contents: any = {}; if (output.Buckets === "") { - contents.Buckets = []; - } else if (output["Buckets"] !== undefined && output["Buckets"]["Arn"] !== undefined) { - contents.Buckets = de_Buckets(__getArrayIfSingleItem(output["Buckets"]["Arn"]), context); + contents[_Bu] = []; + } else if (output[_Bu] != null && output[_Bu][_Ar] != null) { + contents[_Bu] = de_Buckets(__getArrayIfSingleItem(output[_Bu][_Ar]), context); } if (output.Regions === "") { - contents.Regions = []; - } else if (output["Regions"] !== undefined && output["Regions"]["Region"] !== undefined) { - contents.Regions = de_Regions(__getArrayIfSingleItem(output["Regions"]["Region"]), context); + contents[_Re] = []; + } else if (output[_Re] != null && output[_Re][_Reg] != null) { + contents[_Re] = de_Regions(__getArrayIfSingleItem(output[_Re][_Reg]), context); } return contents; }; @@ -11668,69 +10126,66 @@ const de_Include = (output: any, context: __SerdeContext): Include => { */ const de_JobDescriptor = (output: any, context: __SerdeContext): JobDescriptor => { const contents: any = {}; - if (output["JobId"] !== undefined) { - contents.JobId = __expectString(output["JobId"]); + if (output[_JI] != null) { + contents[_JI] = __expectString(output[_JI]); } - if (output["ConfirmationRequired"] !== undefined) { - contents.ConfirmationRequired = __parseBoolean(output["ConfirmationRequired"]); + if (output[_CR] != null) { + contents[_CR] = __parseBoolean(output[_CR]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["JobArn"] !== undefined) { - contents.JobArn = __expectString(output["JobArn"]); + if (output[_JA] != null) { + contents[_JA] = __expectString(output[_JA]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Manifest"] !== undefined) { - contents.Manifest = de_JobManifest(output["Manifest"], context); + if (output[_M] != null) { + contents[_M] = de_JobManifest(output[_M], context); } - if (output["Operation"] !== undefined) { - contents.Operation = de_JobOperation(output["Operation"], context); + if (output[_O] != null) { + contents[_O] = de_JobOperation(output[_O], context); } - if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt32(output["Priority"]) as number; + if (output[_Pr] != null) { + contents[_Pr] = __strictParseInt32(output[_Pr]) as number; } - if (output["ProgressSummary"] !== undefined) { - contents.ProgressSummary = de_JobProgressSummary(output["ProgressSummary"], context); + if (output[_PSr] != null) { + contents[_PSr] = de_JobProgressSummary(output[_PSr], context); } - if (output["StatusUpdateReason"] !== undefined) { - contents.StatusUpdateReason = __expectString(output["StatusUpdateReason"]); + if (output[_SUR] != null) { + contents[_SUR] = __expectString(output[_SUR]); } if (output.FailureReasons === "") { - contents.FailureReasons = []; - } else if (output["FailureReasons"] !== undefined && output["FailureReasons"]["member"] !== undefined) { - contents.FailureReasons = de_JobFailureList(__getArrayIfSingleItem(output["FailureReasons"]["member"]), context); + contents[_FR] = []; + } else if (output[_FR] != null && output[_FR][_m] != null) { + contents[_FR] = de_JobFailureList(__getArrayIfSingleItem(output[_FR][_m]), context); } - if (output["Report"] !== undefined) { - contents.Report = de_JobReport(output["Report"], context); + if (output[_R] != null) { + contents[_R] = de_JobReport(output[_R], context); } - if (output["CreationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["TerminationDate"] !== undefined) { - contents.TerminationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["TerminationDate"])); + if (output[_TD] != null) { + contents[_TD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TD])); } - if (output["RoleArn"] !== undefined) { - contents.RoleArn = __expectString(output["RoleArn"]); + if (output[_RA] != null) { + contents[_RA] = __expectString(output[_RA]); } - if (output["SuspendedDate"] !== undefined) { - contents.SuspendedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["SuspendedDate"])); + if (output[_SD] != null) { + contents[_SD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_SD])); } - if (output["SuspendedCause"] !== undefined) { - contents.SuspendedCause = __expectString(output["SuspendedCause"]); + if (output[_SCu] != null) { + contents[_SCu] = __expectString(output[_SCu]); } if (output.ManifestGenerator === "") { // Pass empty tags. - } else if (output["ManifestGenerator"] !== undefined) { - contents.ManifestGenerator = de_JobManifestGenerator(__expectUnion(output["ManifestGenerator"]), context); + } else if (output[_MG] != null) { + contents[_MG] = de_JobManifestGenerator(__expectUnion(output[_MG]), context); } - if (output["GeneratedManifestDescriptor"] !== undefined) { - contents.GeneratedManifestDescriptor = de_S3GeneratedManifestDescriptor( - output["GeneratedManifestDescriptor"], - context - ); + if (output[_GMD] != null) { + contents[_GMD] = de_S3GeneratedManifestDescriptor(output[_GMD], context); } return contents; }; @@ -11740,11 +10195,11 @@ const de_JobDescriptor = (output: any, context: __SerdeContext): JobDescriptor = */ const de_JobFailure = (output: any, context: __SerdeContext): JobFailure => { const contents: any = {}; - if (output["FailureCode"] !== undefined) { - contents.FailureCode = __expectString(output["FailureCode"]); + if (output[_FC] != null) { + contents[_FC] = __expectString(output[_FC]); } - if (output["FailureReason"] !== undefined) { - contents.FailureReason = __expectString(output["FailureReason"]); + if (output[_FRa] != null) { + contents[_FRa] = __expectString(output[_FRa]); } return contents; }; @@ -11765,29 +10220,29 @@ const de_JobFailureList = (output: any, context: __SerdeContext): JobFailure[] = */ const de_JobListDescriptor = (output: any, context: __SerdeContext): JobListDescriptor => { const contents: any = {}; - if (output["JobId"] !== undefined) { - contents.JobId = __expectString(output["JobId"]); + if (output[_JI] != null) { + contents[_JI] = __expectString(output[_JI]); } - if (output["Description"] !== undefined) { - contents.Description = __expectString(output["Description"]); + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); } - if (output["Operation"] !== undefined) { - contents.Operation = __expectString(output["Operation"]); + if (output[_O] != null) { + contents[_O] = __expectString(output[_O]); } - if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt32(output["Priority"]) as number; + if (output[_Pr] != null) { + contents[_Pr] = __strictParseInt32(output[_Pr]) as number; } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["CreationTime"] !== undefined) { - contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationTime"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output["TerminationDate"] !== undefined) { - contents.TerminationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["TerminationDate"])); + if (output[_TD] != null) { + contents[_TD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TD])); } - if (output["ProgressSummary"] !== undefined) { - contents.ProgressSummary = de_JobProgressSummary(output["ProgressSummary"], context); + if (output[_PSr] != null) { + contents[_PSr] = de_JobProgressSummary(output[_PSr], context); } return contents; }; @@ -11808,11 +10263,11 @@ const de_JobListDescriptorList = (output: any, context: __SerdeContext): JobList */ const de_JobManifest = (output: any, context: __SerdeContext): JobManifest => { const contents: any = {}; - if (output["Spec"] !== undefined) { - contents.Spec = de_JobManifestSpec(output["Spec"], context); + if (output[_Sp] != null) { + contents[_Sp] = de_JobManifestSpec(output[_Sp], context); } - if (output["Location"] !== undefined) { - contents.Location = de_JobManifestLocation(output["Location"], context); + if (output[_L] != null) { + contents[_L] = de_JobManifestLocation(output[_L], context); } return contents; }; @@ -11832,9 +10287,9 @@ const de_JobManifestFieldList = (output: any, context: __SerdeContext): JobManif * deserializeAws_restXmlJobManifestGenerator */ const de_JobManifestGenerator = (output: any, context: __SerdeContext): JobManifestGenerator => { - if (output["S3JobManifestGenerator"] !== undefined) { + if (output[_SJMG] != null) { return { - S3JobManifestGenerator: de_S3JobManifestGenerator(output["S3JobManifestGenerator"], context), + S3JobManifestGenerator: de_S3JobManifestGenerator(output[_SJMG], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -11845,42 +10300,33 @@ const de_JobManifestGenerator = (output: any, context: __SerdeContext): JobManif */ const de_JobManifestGeneratorFilter = (output: any, context: __SerdeContext): JobManifestGeneratorFilter => { const contents: any = {}; - if (output["EligibleForReplication"] !== undefined) { - contents.EligibleForReplication = __parseBoolean(output["EligibleForReplication"]); + if (output[_EFR] != null) { + contents[_EFR] = __parseBoolean(output[_EFR]); } - if (output["CreatedAfter"] !== undefined) { - contents.CreatedAfter = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAfter"])); + if (output[_CAr] != null) { + contents[_CAr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CAr])); } - if (output["CreatedBefore"] !== undefined) { - contents.CreatedBefore = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedBefore"])); + if (output[_CB] != null) { + contents[_CB] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CB])); } if (output.ObjectReplicationStatuses === "") { - contents.ObjectReplicationStatuses = []; - } else if ( - output["ObjectReplicationStatuses"] !== undefined && - output["ObjectReplicationStatuses"]["member"] !== undefined - ) { - contents.ObjectReplicationStatuses = de_ReplicationStatusFilterList( - __getArrayIfSingleItem(output["ObjectReplicationStatuses"]["member"]), - context - ); + contents[_ORS] = []; + } else if (output[_ORS] != null && output[_ORS][_m] != null) { + contents[_ORS] = de_ReplicationStatusFilterList(__getArrayIfSingleItem(output[_ORS][_m]), context); } - if (output["KeyNameConstraint"] !== undefined) { - contents.KeyNameConstraint = de_KeyNameConstraint(output["KeyNameConstraint"], context); + if (output[_KNC] != null) { + contents[_KNC] = de_KeyNameConstraint(output[_KNC], context); } - if (output["ObjectSizeGreaterThanBytes"] !== undefined) { - contents.ObjectSizeGreaterThanBytes = __strictParseLong(output["ObjectSizeGreaterThanBytes"]) as number; + if (output[_OSGTB] != null) { + contents[_OSGTB] = __strictParseLong(output[_OSGTB]) as number; } - if (output["ObjectSizeLessThanBytes"] !== undefined) { - contents.ObjectSizeLessThanBytes = __strictParseLong(output["ObjectSizeLessThanBytes"]) as number; + if (output[_OSLTB] != null) { + contents[_OSLTB] = __strictParseLong(output[_OSLTB]) as number; } if (output.MatchAnyStorageClass === "") { - contents.MatchAnyStorageClass = []; - } else if (output["MatchAnyStorageClass"] !== undefined && output["MatchAnyStorageClass"]["member"] !== undefined) { - contents.MatchAnyStorageClass = de_StorageClassList( - __getArrayIfSingleItem(output["MatchAnyStorageClass"]["member"]), - context - ); + contents[_MASC] = []; + } else if (output[_MASC] != null && output[_MASC][_m] != null) { + contents[_MASC] = de_StorageClassList(__getArrayIfSingleItem(output[_MASC][_m]), context); } return contents; }; @@ -11890,14 +10336,14 @@ const de_JobManifestGeneratorFilter = (output: any, context: __SerdeContext): Jo */ const de_JobManifestLocation = (output: any, context: __SerdeContext): JobManifestLocation => { const contents: any = {}; - if (output["ObjectArn"] !== undefined) { - contents.ObjectArn = __expectString(output["ObjectArn"]); + if (output[_OA] != null) { + contents[_OA] = __expectString(output[_OA]); } - if (output["ObjectVersionId"] !== undefined) { - contents.ObjectVersionId = __expectString(output["ObjectVersionId"]); + if (output[_OVI] != null) { + contents[_OVI] = __expectString(output[_OVI]); } - if (output["ETag"] !== undefined) { - contents.ETag = __expectString(output["ETag"]); + if (output[_ET] != null) { + contents[_ET] = __expectString(output[_ET]); } return contents; }; @@ -11907,13 +10353,13 @@ const de_JobManifestLocation = (output: any, context: __SerdeContext): JobManife */ const de_JobManifestSpec = (output: any, context: __SerdeContext): JobManifestSpec => { const contents: any = {}; - if (output["Format"] !== undefined) { - contents.Format = __expectString(output["Format"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } if (output.Fields === "") { - contents.Fields = []; - } else if (output["Fields"] !== undefined && output["Fields"]["member"] !== undefined) { - contents.Fields = de_JobManifestFieldList(__getArrayIfSingleItem(output["Fields"]["member"]), context); + contents[_Fi] = []; + } else if (output[_Fi] != null && output[_Fi][_m] != null) { + contents[_Fi] = de_JobManifestFieldList(__getArrayIfSingleItem(output[_Fi][_m]), context); } return contents; }; @@ -11923,32 +10369,32 @@ const de_JobManifestSpec = (output: any, context: __SerdeContext): JobManifestSp */ const de_JobOperation = (output: any, context: __SerdeContext): JobOperation => { const contents: any = {}; - if (output["LambdaInvoke"] !== undefined) { - contents.LambdaInvoke = de_LambdaInvokeOperation(output["LambdaInvoke"], context); + if (output[_LI] != null) { + contents[_LI] = de_LambdaInvokeOperation(output[_LI], context); } - if (output["S3PutObjectCopy"] !== undefined) { - contents.S3PutObjectCopy = de_S3CopyObjectOperation(output["S3PutObjectCopy"], context); + if (output[_SPOC] != null) { + contents[_SPOC] = de_S3CopyObjectOperation(output[_SPOC], context); } - if (output["S3PutObjectAcl"] !== undefined) { - contents.S3PutObjectAcl = de_S3SetObjectAclOperation(output["S3PutObjectAcl"], context); + if (output[_SPOA] != null) { + contents[_SPOA] = de_S3SetObjectAclOperation(output[_SPOA], context); } - if (output["S3PutObjectTagging"] !== undefined) { - contents.S3PutObjectTagging = de_S3SetObjectTaggingOperation(output["S3PutObjectTagging"], context); + if (output[_SPOT] != null) { + contents[_SPOT] = de_S3SetObjectTaggingOperation(output[_SPOT], context); } - if (output["S3DeleteObjectTagging"] !== undefined) { - contents.S3DeleteObjectTagging = de_S3DeleteObjectTaggingOperation(output["S3DeleteObjectTagging"], context); + if (output[_SDOT] != null) { + contents[_SDOT] = de_S3DeleteObjectTaggingOperation(output[_SDOT], context); } - if (output["S3InitiateRestoreObject"] !== undefined) { - contents.S3InitiateRestoreObject = de_S3InitiateRestoreObjectOperation(output["S3InitiateRestoreObject"], context); + if (output[_SIRO] != null) { + contents[_SIRO] = de_S3InitiateRestoreObjectOperation(output[_SIRO], context); } - if (output["S3PutObjectLegalHold"] !== undefined) { - contents.S3PutObjectLegalHold = de_S3SetObjectLegalHoldOperation(output["S3PutObjectLegalHold"], context); + if (output[_SPOLH] != null) { + contents[_SPOLH] = de_S3SetObjectLegalHoldOperation(output[_SPOLH], context); } - if (output["S3PutObjectRetention"] !== undefined) { - contents.S3PutObjectRetention = de_S3SetObjectRetentionOperation(output["S3PutObjectRetention"], context); + if (output[_SPOR] != null) { + contents[_SPOR] = de_S3SetObjectRetentionOperation(output[_SPOR], context); } - if (output["S3ReplicateObject"] !== undefined) { - contents.S3ReplicateObject = de_S3ReplicateObjectOperation(output["S3ReplicateObject"], context); + if (output[_SRO] != null) { + contents[_SRO] = de_S3ReplicateObjectOperation(output[_SRO], context); } return contents; }; @@ -11958,17 +10404,17 @@ const de_JobOperation = (output: any, context: __SerdeContext): JobOperation => */ const de_JobProgressSummary = (output: any, context: __SerdeContext): JobProgressSummary => { const contents: any = {}; - if (output["TotalNumberOfTasks"] !== undefined) { - contents.TotalNumberOfTasks = __strictParseLong(output["TotalNumberOfTasks"]) as number; + if (output[_TNOT] != null) { + contents[_TNOT] = __strictParseLong(output[_TNOT]) as number; } - if (output["NumberOfTasksSucceeded"] !== undefined) { - contents.NumberOfTasksSucceeded = __strictParseLong(output["NumberOfTasksSucceeded"]) as number; + if (output[_NOTS] != null) { + contents[_NOTS] = __strictParseLong(output[_NOTS]) as number; } - if (output["NumberOfTasksFailed"] !== undefined) { - contents.NumberOfTasksFailed = __strictParseLong(output["NumberOfTasksFailed"]) as number; + if (output[_NOTF] != null) { + contents[_NOTF] = __strictParseLong(output[_NOTF]) as number; } - if (output["Timers"] !== undefined) { - contents.Timers = de_JobTimers(output["Timers"], context); + if (output[_Tim] != null) { + contents[_Tim] = de_JobTimers(output[_Tim], context); } return contents; }; @@ -11978,20 +10424,20 @@ const de_JobProgressSummary = (output: any, context: __SerdeContext): JobProgres */ const de_JobReport = (output: any, context: __SerdeContext): JobReport => { const contents: any = {}; - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Format"] !== undefined) { - contents.Format = __expectString(output["Format"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_En] != null) { + contents[_En] = __parseBoolean(output[_En]); } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pre] != null) { + contents[_Pre] = __expectString(output[_Pre]); } - if (output["ReportScope"] !== undefined) { - contents.ReportScope = __expectString(output["ReportScope"]); + if (output[_RS] != null) { + contents[_RS] = __expectString(output[_RS]); } return contents; }; @@ -12001,8 +10447,8 @@ const de_JobReport = (output: any, context: __SerdeContext): JobReport => { */ const de_JobTimers = (output: any, context: __SerdeContext): JobTimers => { const contents: any = {}; - if (output["ElapsedTimeInActiveSeconds"] !== undefined) { - contents.ElapsedTimeInActiveSeconds = __strictParseLong(output["ElapsedTimeInActiveSeconds"]) as number; + if (output[_ETIAS] != null) { + contents[_ETIAS] = __strictParseLong(output[_ETIAS]) as number; } return contents; }; @@ -12013,28 +10459,19 @@ const de_JobTimers = (output: any, context: __SerdeContext): JobTimers => { const de_KeyNameConstraint = (output: any, context: __SerdeContext): KeyNameConstraint => { const contents: any = {}; if (output.MatchAnyPrefix === "") { - contents.MatchAnyPrefix = []; - } else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["member"] !== undefined) { - contents.MatchAnyPrefix = de_NonEmptyMaxLength1024StringList( - __getArrayIfSingleItem(output["MatchAnyPrefix"]["member"]), - context - ); + contents[_MAP] = []; + } else if (output[_MAP] != null && output[_MAP][_m] != null) { + contents[_MAP] = de_NonEmptyMaxLength1024StringList(__getArrayIfSingleItem(output[_MAP][_m]), context); } if (output.MatchAnySuffix === "") { - contents.MatchAnySuffix = []; - } else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["member"] !== undefined) { - contents.MatchAnySuffix = de_NonEmptyMaxLength1024StringList( - __getArrayIfSingleItem(output["MatchAnySuffix"]["member"]), - context - ); + contents[_MAS] = []; + } else if (output[_MAS] != null && output[_MAS][_m] != null) { + contents[_MAS] = de_NonEmptyMaxLength1024StringList(__getArrayIfSingleItem(output[_MAS][_m]), context); } if (output.MatchAnySubstring === "") { - contents.MatchAnySubstring = []; - } else if (output["MatchAnySubstring"] !== undefined && output["MatchAnySubstring"]["member"] !== undefined) { - contents.MatchAnySubstring = de_NonEmptyMaxLength1024StringList( - __getArrayIfSingleItem(output["MatchAnySubstring"]["member"]), - context - ); + contents[_MASa] = []; + } else if (output[_MASa] != null && output[_MASa][_m] != null) { + contents[_MASa] = de_NonEmptyMaxLength1024StringList(__getArrayIfSingleItem(output[_MASa][_m]), context); } return contents; }; @@ -12044,16 +10481,16 @@ const de_KeyNameConstraint = (output: any, context: __SerdeContext): KeyNameCons */ const de_LambdaInvokeOperation = (output: any, context: __SerdeContext): LambdaInvokeOperation => { const contents: any = {}; - if (output["FunctionArn"] !== undefined) { - contents.FunctionArn = __expectString(output["FunctionArn"]); + if (output[_FA] != null) { + contents[_FA] = __expectString(output[_FA]); } - if (output["InvocationSchemaVersion"] !== undefined) { - contents.InvocationSchemaVersion = __expectString(output["InvocationSchemaVersion"]); + if (output[_ISV] != null) { + contents[_ISV] = __expectString(output[_ISV]); } if (output.UserArguments === "") { - contents.UserArguments = {}; - } else if (output["UserArguments"] !== undefined && output["UserArguments"]["entry"] !== undefined) { - contents.UserArguments = de_UserArguments(__getArrayIfSingleItem(output["UserArguments"]["entry"]), context); + contents[_UA] = {}; + } else if (output[_UA] != null && output[_UA][_e] != null) { + contents[_UA] = de_UserArguments(__getArrayIfSingleItem(output[_UA][_e]), context); } return contents; }; @@ -12063,14 +10500,14 @@ const de_LambdaInvokeOperation = (output: any, context: __SerdeContext): LambdaI */ const de_LifecycleExpiration = (output: any, context: __SerdeContext): LifecycleExpiration => { const contents: any = {}; - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Da] != null) { + contents[_Da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Da])); } - if (output["Days"] !== undefined) { - contents.Days = __strictParseInt32(output["Days"]) as number; + if (output[_Day] != null) { + contents[_Day] = __strictParseInt32(output[_Day]) as number; } - if (output["ExpiredObjectDeleteMarker"] !== undefined) { - contents.ExpiredObjectDeleteMarker = __parseBoolean(output["ExpiredObjectDeleteMarker"]); + if (output[_EODM] != null) { + contents[_EODM] = __parseBoolean(output[_EODM]); } return contents; }; @@ -12080,45 +10517,33 @@ const de_LifecycleExpiration = (output: any, context: __SerdeContext): Lifecycle */ const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule => { const contents: any = {}; - if (output["Expiration"] !== undefined) { - contents.Expiration = de_LifecycleExpiration(output["Expiration"], context); + if (output[_Exp] != null) { + contents[_Exp] = de_LifecycleExpiration(output[_Exp], context); } - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID] != null) { + contents[_ID] = __expectString(output[_ID]); } - if (output["Filter"] !== undefined) { - contents.Filter = de_LifecycleRuleFilter(output["Filter"], context); + if (output[_Fil] != null) { + contents[_Fil] = de_LifecycleRuleFilter(output[_Fil], context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } if (output.Transitions === "") { - contents.Transitions = []; - } else if (output["Transitions"] !== undefined && output["Transitions"]["Transition"] !== undefined) { - contents.Transitions = de_TransitionList(__getArrayIfSingleItem(output["Transitions"]["Transition"]), context); + contents[_Tr] = []; + } else if (output[_Tr] != null && output[_Tr][_Tra] != null) { + contents[_Tr] = de_TransitionList(__getArrayIfSingleItem(output[_Tr][_Tra]), context); } if (output.NoncurrentVersionTransitions === "") { - contents.NoncurrentVersionTransitions = []; - } else if ( - output["NoncurrentVersionTransitions"] !== undefined && - output["NoncurrentVersionTransitions"]["NoncurrentVersionTransition"] !== undefined - ) { - contents.NoncurrentVersionTransitions = de_NoncurrentVersionTransitionList( - __getArrayIfSingleItem(output["NoncurrentVersionTransitions"]["NoncurrentVersionTransition"]), - context - ); + contents[_NVT] = []; + } else if (output[_NVT] != null && output[_NVT][_NVTo] != null) { + contents[_NVT] = de_NoncurrentVersionTransitionList(__getArrayIfSingleItem(output[_NVT][_NVTo]), context); } - if (output["NoncurrentVersionExpiration"] !== undefined) { - contents.NoncurrentVersionExpiration = de_NoncurrentVersionExpiration( - output["NoncurrentVersionExpiration"], - context - ); + if (output[_NVE] != null) { + contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context); } - if (output["AbortIncompleteMultipartUpload"] !== undefined) { - contents.AbortIncompleteMultipartUpload = de_AbortIncompleteMultipartUpload( - output["AbortIncompleteMultipartUpload"], - context - ); + if (output[_AIMU] != null) { + contents[_AIMU] = de_AbortIncompleteMultipartUpload(output[_AIMU], context); } return contents; }; @@ -12128,19 +10553,19 @@ const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule = */ const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): LifecycleRuleAndOperator => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pre] != null) { + contents[_Pre] = __expectString(output[_Pre]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_S3TagSet(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_m] != null) { + contents[_T] = de_S3TagSet(__getArrayIfSingleItem(output[_T][_m]), context); } - if (output["ObjectSizeGreaterThan"] !== undefined) { - contents.ObjectSizeGreaterThan = __strictParseLong(output["ObjectSizeGreaterThan"]) as number; + if (output[_OSGT] != null) { + contents[_OSGT] = __strictParseLong(output[_OSGT]) as number; } - if (output["ObjectSizeLessThan"] !== undefined) { - contents.ObjectSizeLessThan = __strictParseLong(output["ObjectSizeLessThan"]) as number; + if (output[_OSLT] != null) { + contents[_OSLT] = __strictParseLong(output[_OSLT]) as number; } return contents; }; @@ -12150,20 +10575,20 @@ const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): Life */ const de_LifecycleRuleFilter = (output: any, context: __SerdeContext): LifecycleRuleFilter => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pre] != null) { + contents[_Pre] = __expectString(output[_Pre]); } - if (output["Tag"] !== undefined) { - contents.Tag = de_S3Tag(output["Tag"], context); + if (output[_Tag] != null) { + contents[_Tag] = de_S3Tag(output[_Tag], context); } - if (output["And"] !== undefined) { - contents.And = de_LifecycleRuleAndOperator(output["And"], context); + if (output[_An] != null) { + contents[_An] = de_LifecycleRuleAndOperator(output[_An], context); } - if (output["ObjectSizeGreaterThan"] !== undefined) { - contents.ObjectSizeGreaterThan = __strictParseLong(output["ObjectSizeGreaterThan"]) as number; + if (output[_OSGT] != null) { + contents[_OSGT] = __strictParseLong(output[_OSGT]) as number; } - if (output["ObjectSizeLessThan"] !== undefined) { - contents.ObjectSizeLessThan = __strictParseLong(output["ObjectSizeLessThan"]) as number; + if (output[_OSLT] != null) { + contents[_OSLT] = __strictParseLong(output[_OSLT]) as number; } return contents; }; @@ -12184,35 +10609,32 @@ const de_LifecycleRules = (output: any, context: __SerdeContext): LifecycleRule[ */ const de_ListAccessGrantEntry = (output: any, context: __SerdeContext): ListAccessGrantEntry => { const contents: any = {}; - if (output["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAt"])); + if (output[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CA])); } - if (output["AccessGrantId"] !== undefined) { - contents.AccessGrantId = __expectString(output["AccessGrantId"]); + if (output[_AGI] != null) { + contents[_AGI] = __expectString(output[_AGI]); } - if (output["AccessGrantArn"] !== undefined) { - contents.AccessGrantArn = __expectString(output["AccessGrantArn"]); + if (output[_AGA] != null) { + contents[_AGA] = __expectString(output[_AGA]); } - if (output["Grantee"] !== undefined) { - contents.Grantee = de_Grantee(output["Grantee"], context); + if (output[_G] != null) { + contents[_G] = de_Grantee(output[_G], context); } - if (output["Permission"] !== undefined) { - contents.Permission = __expectString(output["Permission"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["AccessGrantsLocationId"] !== undefined) { - contents.AccessGrantsLocationId = __expectString(output["AccessGrantsLocationId"]); + if (output[_AGLI] != null) { + contents[_AGLI] = __expectString(output[_AGLI]); } - if (output["AccessGrantsLocationConfiguration"] !== undefined) { - contents.AccessGrantsLocationConfiguration = de_AccessGrantsLocationConfiguration( - output["AccessGrantsLocationConfiguration"], - context - ); + if (output[_AGLC] != null) { + contents[_AGLC] = de_AccessGrantsLocationConfiguration(output[_AGLC], context); } - if (output["GrantScope"] !== undefined) { - contents.GrantScope = __expectString(output["GrantScope"]); + if (output[_GS] != null) { + contents[_GS] = __expectString(output[_GS]); } - if (output["ApplicationArn"] !== undefined) { - contents.ApplicationArn = __expectString(output["ApplicationArn"]); + if (output[_AA] != null) { + contents[_AA] = __expectString(output[_AA]); } return contents; }; @@ -12222,17 +10644,17 @@ const de_ListAccessGrantEntry = (output: any, context: __SerdeContext): ListAcce */ const de_ListAccessGrantsInstanceEntry = (output: any, context: __SerdeContext): ListAccessGrantsInstanceEntry => { const contents: any = {}; - if (output["AccessGrantsInstanceId"] !== undefined) { - contents.AccessGrantsInstanceId = __expectString(output["AccessGrantsInstanceId"]); + if (output[_AGII] != null) { + contents[_AGII] = __expectString(output[_AGII]); } - if (output["AccessGrantsInstanceArn"] !== undefined) { - contents.AccessGrantsInstanceArn = __expectString(output["AccessGrantsInstanceArn"]); + if (output[_AGIA] != null) { + contents[_AGIA] = __expectString(output[_AGIA]); } - if (output["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAt"])); + if (output[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CA])); } - if (output["IdentityCenterArn"] !== undefined) { - contents.IdentityCenterArn = __expectString(output["IdentityCenterArn"]); + if (output[_ICA] != null) { + contents[_ICA] = __expectString(output[_ICA]); } return contents; }; @@ -12242,20 +10664,20 @@ const de_ListAccessGrantsInstanceEntry = (output: any, context: __SerdeContext): */ const de_ListAccessGrantsLocationsEntry = (output: any, context: __SerdeContext): ListAccessGrantsLocationsEntry => { const contents: any = {}; - if (output["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAt"])); + if (output[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CA])); } - if (output["AccessGrantsLocationId"] !== undefined) { - contents.AccessGrantsLocationId = __expectString(output["AccessGrantsLocationId"]); + if (output[_AGLI] != null) { + contents[_AGLI] = __expectString(output[_AGLI]); } - if (output["AccessGrantsLocationArn"] !== undefined) { - contents.AccessGrantsLocationArn = __expectString(output["AccessGrantsLocationArn"]); + if (output[_AGLA] != null) { + contents[_AGLA] = __expectString(output[_AGLA]); } - if (output["LocationScope"] !== undefined) { - contents.LocationScope = __expectString(output["LocationScope"]); + if (output[_LS] != null) { + contents[_LS] = __expectString(output[_LS]); } - if (output["IAMRoleArn"] !== undefined) { - contents.IAMRoleArn = __expectString(output["IAMRoleArn"]); + if (output[_IAMRA] != null) { + contents[_IAMRA] = __expectString(output[_IAMRA]); } return contents; }; @@ -12268,17 +10690,17 @@ const de_ListStorageLensConfigurationEntry = ( context: __SerdeContext ): ListStorageLensConfigurationEntry => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id_] != null) { + contents[_Id_] = __expectString(output[_Id_]); } - if (output["StorageLensArn"] !== undefined) { - contents.StorageLensArn = __expectString(output["StorageLensArn"]); + if (output[_SLA] != null) { + contents[_SLA] = __expectString(output[_SLA]); } - if (output["HomeRegion"] !== undefined) { - contents.HomeRegion = __expectString(output["HomeRegion"]); + if (output[_HR] != null) { + contents[_HR] = __expectString(output[_HR]); } - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } return contents; }; @@ -12288,14 +10710,14 @@ const de_ListStorageLensConfigurationEntry = ( */ const de_ListStorageLensGroupEntry = (output: any, context: __SerdeContext): ListStorageLensGroupEntry => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["StorageLensGroupArn"] !== undefined) { - contents.StorageLensGroupArn = __expectString(output["StorageLensGroupArn"]); + if (output[_SLGA] != null) { + contents[_SLGA] = __expectString(output[_SLGA]); } - if (output["HomeRegion"] !== undefined) { - contents.HomeRegion = __expectString(output["HomeRegion"]); + if (output[_HR] != null) { + contents[_HR] = __expectString(output[_HR]); } return contents; }; @@ -12338,11 +10760,11 @@ const de_MatchAnyTag = (output: any, context: __SerdeContext): S3Tag[] => { */ const de_MatchObjectAge = (output: any, context: __SerdeContext): MatchObjectAge => { const contents: any = {}; - if (output["DaysGreaterThan"] !== undefined) { - contents.DaysGreaterThan = __strictParseInt32(output["DaysGreaterThan"]) as number; + if (output[_DGT] != null) { + contents[_DGT] = __strictParseInt32(output[_DGT]) as number; } - if (output["DaysLessThan"] !== undefined) { - contents.DaysLessThan = __strictParseInt32(output["DaysLessThan"]) as number; + if (output[_DLT] != null) { + contents[_DLT] = __strictParseInt32(output[_DLT]) as number; } return contents; }; @@ -12352,11 +10774,11 @@ const de_MatchObjectAge = (output: any, context: __SerdeContext): MatchObjectAge */ const de_MatchObjectSize = (output: any, context: __SerdeContext): MatchObjectSize => { const contents: any = {}; - if (output["BytesGreaterThan"] !== undefined) { - contents.BytesGreaterThan = __strictParseLong(output["BytesGreaterThan"]) as number; + if (output[_BGT] != null) { + contents[_BGT] = __strictParseLong(output[_BGT]) as number; } - if (output["BytesLessThan"] !== undefined) { - contents.BytesLessThan = __strictParseLong(output["BytesLessThan"]) as number; + if (output[_BLT] != null) { + contents[_BLT] = __strictParseLong(output[_BLT]) as number; } return contents; }; @@ -12366,11 +10788,11 @@ const de_MatchObjectSize = (output: any, context: __SerdeContext): MatchObjectSi */ const de_Metrics = (output: any, context: __SerdeContext): Metrics => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["EventThreshold"] !== undefined) { - contents.EventThreshold = de_ReplicationTimeValue(output["EventThreshold"], context); + if (output[_ETv] != null) { + contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context); } return contents; }; @@ -12383,11 +10805,11 @@ const de_MultiRegionAccessPointPolicyDocument = ( context: __SerdeContext ): MultiRegionAccessPointPolicyDocument => { const contents: any = {}; - if (output["Established"] !== undefined) { - contents.Established = de_EstablishedMultiRegionAccessPointPolicy(output["Established"], context); + if (output[_Es] != null) { + contents[_Es] = de_EstablishedMultiRegionAccessPointPolicy(output[_Es], context); } - if (output["Proposed"] !== undefined) { - contents.Proposed = de_ProposedMultiRegionAccessPointPolicy(output["Proposed"], context); + if (output[_Pro] != null) { + contents[_Pro] = de_ProposedMultiRegionAccessPointPolicy(output[_Pro], context); } return contents; }; @@ -12400,11 +10822,11 @@ const de_MultiRegionAccessPointRegionalResponse = ( context: __SerdeContext ): MultiRegionAccessPointRegionalResponse => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["RequestStatus"] !== undefined) { - contents.RequestStatus = __expectString(output["RequestStatus"]); + if (output[_RSeq] != null) { + contents[_RSeq] = __expectString(output[_RSeq]); } return contents; }; @@ -12428,25 +10850,25 @@ const de_MultiRegionAccessPointRegionalResponseList = ( */ const de_MultiRegionAccessPointReport = (output: any, context: __SerdeContext): MultiRegionAccessPointReport => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Alias"] !== undefined) { - contents.Alias = __expectString(output["Alias"]); + if (output[_A] != null) { + contents[_A] = __expectString(output[_A]); } - if (output["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAt"])); + if (output[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CA])); } - if (output["PublicAccessBlock"] !== undefined) { - contents.PublicAccessBlock = de_PublicAccessBlockConfiguration(output["PublicAccessBlock"], context); + if (output[_PAB] != null) { + contents[_PAB] = de_PublicAccessBlockConfiguration(output[_PAB], context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } if (output.Regions === "") { - contents.Regions = []; - } else if (output["Regions"] !== undefined && output["Regions"]["Region"] !== undefined) { - contents.Regions = de_RegionReportList(__getArrayIfSingleItem(output["Regions"]["Region"]), context); + contents[_Re] = []; + } else if (output[_Re] != null && output[_Re][_Reg] != null) { + contents[_Re] = de_RegionReportList(__getArrayIfSingleItem(output[_Re][_Reg]), context); } return contents; }; @@ -12467,14 +10889,14 @@ const de_MultiRegionAccessPointReportList = (output: any, context: __SerdeContex */ const de_MultiRegionAccessPointRoute = (output: any, context: __SerdeContext): MultiRegionAccessPointRoute => { const contents: any = {}; - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Reg] != null) { + contents[_Reg] = __expectString(output[_Reg]); } - if (output["TrafficDialPercentage"] !== undefined) { - contents.TrafficDialPercentage = __strictParseInt32(output["TrafficDialPercentage"]) as number; + if (output[_TDP] != null) { + contents[_TDP] = __strictParseInt32(output[_TDP]) as number; } return contents; }; @@ -12488,12 +10910,9 @@ const de_MultiRegionAccessPointsAsyncResponse = ( ): MultiRegionAccessPointsAsyncResponse => { const contents: any = {}; if (output.Regions === "") { - contents.Regions = []; - } else if (output["Regions"] !== undefined && output["Regions"]["Region"] !== undefined) { - contents.Regions = de_MultiRegionAccessPointRegionalResponseList( - __getArrayIfSingleItem(output["Regions"]["Region"]), - context - ); + contents[_Re] = []; + } else if (output[_Re] != null && output[_Re][_Reg] != null) { + contents[_Re] = de_MultiRegionAccessPointRegionalResponseList(__getArrayIfSingleItem(output[_Re][_Reg]), context); } return contents; }; @@ -12503,11 +10922,11 @@ const de_MultiRegionAccessPointsAsyncResponse = ( */ const de_NoncurrentVersionExpiration = (output: any, context: __SerdeContext): NoncurrentVersionExpiration => { const contents: any = {}; - if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; + if (output[_ND] != null) { + contents[_ND] = __strictParseInt32(output[_ND]) as number; } - if (output["NewerNoncurrentVersions"] !== undefined) { - contents.NewerNoncurrentVersions = __strictParseInt32(output["NewerNoncurrentVersions"]) as number; + if (output[_NNV] != null) { + contents[_NNV] = __strictParseInt32(output[_NNV]) as number; } return contents; }; @@ -12517,11 +10936,11 @@ const de_NoncurrentVersionExpiration = (output: any, context: __SerdeContext): N */ const de_NoncurrentVersionTransition = (output: any, context: __SerdeContext): NoncurrentVersionTransition => { const contents: any = {}; - if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; + if (output[_ND] != null) { + contents[_ND] = __strictParseInt32(output[_ND]) as number; } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } return contents; }; @@ -12553,14 +10972,14 @@ const de_NonEmptyMaxLength1024StringList = (output: any, context: __SerdeContext */ const de_ObjectLambdaAccessPoint = (output: any, context: __SerdeContext): ObjectLambdaAccessPoint => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["ObjectLambdaAccessPointArn"] !== undefined) { - contents.ObjectLambdaAccessPointArn = __expectString(output["ObjectLambdaAccessPointArn"]); + if (output[_OLAPA] != null) { + contents[_OLAPA] = __expectString(output[_OLAPA]); } - if (output["Alias"] !== undefined) { - contents.Alias = de_ObjectLambdaAccessPointAlias(output["Alias"], context); + if (output[_A] != null) { + contents[_A] = de_ObjectLambdaAccessPointAlias(output[_A], context); } return contents; }; @@ -12570,11 +10989,11 @@ const de_ObjectLambdaAccessPoint = (output: any, context: __SerdeContext): Objec */ const de_ObjectLambdaAccessPointAlias = (output: any, context: __SerdeContext): ObjectLambdaAccessPointAlias => { const contents: any = {}; - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -12606,30 +11025,21 @@ const de_ObjectLambdaAllowedFeaturesList = (output: any, context: __SerdeContext */ const de_ObjectLambdaConfiguration = (output: any, context: __SerdeContext): ObjectLambdaConfiguration => { const contents: any = {}; - if (output["SupportingAccessPoint"] !== undefined) { - contents.SupportingAccessPoint = __expectString(output["SupportingAccessPoint"]); + if (output[_SAP] != null) { + contents[_SAP] = __expectString(output[_SAP]); } - if (output["CloudWatchMetricsEnabled"] !== undefined) { - contents.CloudWatchMetricsEnabled = __parseBoolean(output["CloudWatchMetricsEnabled"]); + if (output[_CWME] != null) { + contents[_CWME] = __parseBoolean(output[_CWME]); } if (output.AllowedFeatures === "") { - contents.AllowedFeatures = []; - } else if (output["AllowedFeatures"] !== undefined && output["AllowedFeatures"]["AllowedFeature"] !== undefined) { - contents.AllowedFeatures = de_ObjectLambdaAllowedFeaturesList( - __getArrayIfSingleItem(output["AllowedFeatures"]["AllowedFeature"]), - context - ); + contents[_AFl] = []; + } else if (output[_AFl] != null && output[_AFl][_AF] != null) { + contents[_AFl] = de_ObjectLambdaAllowedFeaturesList(__getArrayIfSingleItem(output[_AFl][_AF]), context); } if (output.TransformationConfigurations === "") { - contents.TransformationConfigurations = []; - } else if ( - output["TransformationConfigurations"] !== undefined && - output["TransformationConfigurations"]["TransformationConfiguration"] !== undefined - ) { - contents.TransformationConfigurations = de_ObjectLambdaTransformationConfigurationsList( - __getArrayIfSingleItem(output["TransformationConfigurations"]["TransformationConfiguration"]), - context - ); + contents[_TC] = []; + } else if (output[_TC] != null && output[_TC][_TCr] != null) { + contents[_TC] = de_ObjectLambdaTransformationConfigurationsList(__getArrayIfSingleItem(output[_TC][_TCr]), context); } return contents; }; @@ -12641,9 +11051,9 @@ const de_ObjectLambdaContentTransformation = ( output: any, context: __SerdeContext ): ObjectLambdaContentTransformation => { - if (output["AwsLambda"] !== undefined) { + if (output[_ALw] != null) { return { - AwsLambda: de_AwsLambdaTransformation(output["AwsLambda"], context), + AwsLambda: de_AwsLambdaTransformation(output[_ALw], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -12658,20 +11068,17 @@ const de_ObjectLambdaTransformationConfiguration = ( ): ObjectLambdaTransformationConfiguration => { const contents: any = {}; if (output.Actions === "") { - contents.Actions = []; - } else if (output["Actions"] !== undefined && output["Actions"]["Action"] !== undefined) { - contents.Actions = de_ObjectLambdaTransformationConfigurationActionsList( - __getArrayIfSingleItem(output["Actions"]["Action"]), + contents[_Act] = []; + } else if (output[_Act] != null && output[_Act][_Acti] != null) { + contents[_Act] = de_ObjectLambdaTransformationConfigurationActionsList( + __getArrayIfSingleItem(output[_Act][_Acti]), context ); } if (output.ContentTransformation === "") { // Pass empty tags. - } else if (output["ContentTransformation"] !== undefined) { - contents.ContentTransformation = de_ObjectLambdaContentTransformation( - __expectUnion(output["ContentTransformation"]), - context - ); + } else if (output[_CTo] != null) { + contents[_CTo] = de_ObjectLambdaContentTransformation(__expectUnion(output[_CTo]), context); } return contents; }; @@ -12709,8 +11116,8 @@ const de_ObjectLambdaTransformationConfigurationsList = ( */ const de_PolicyStatus = (output: any, context: __SerdeContext): PolicyStatus => { const contents: any = {}; - if (output["IsPublic"] !== undefined) { - contents.IsPublic = __parseBoolean(output["IsPublic"]); + if (output[_IP] != null) { + contents[_IP] = __parseBoolean(output[_IP]); } return contents; }; @@ -12720,8 +11127,8 @@ const de_PolicyStatus = (output: any, context: __SerdeContext): PolicyStatus => */ const de_PrefixLevel = (output: any, context: __SerdeContext): PrefixLevel => { const contents: any = {}; - if (output["StorageMetrics"] !== undefined) { - contents.StorageMetrics = de_PrefixLevelStorageMetrics(output["StorageMetrics"], context); + if (output[_SM] != null) { + contents[_SM] = de_PrefixLevelStorageMetrics(output[_SM], context); } return contents; }; @@ -12731,11 +11138,11 @@ const de_PrefixLevel = (output: any, context: __SerdeContext): PrefixLevel => { */ const de_PrefixLevelStorageMetrics = (output: any, context: __SerdeContext): PrefixLevelStorageMetrics => { const contents: any = {}; - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } - if (output["SelectionCriteria"] !== undefined) { - contents.SelectionCriteria = de_SelectionCriteria(output["SelectionCriteria"], context); + if (output[_SCe] != null) { + contents[_SCe] = de_SelectionCriteria(output[_SCe], context); } return contents; }; @@ -12748,8 +11155,8 @@ const de_ProposedMultiRegionAccessPointPolicy = ( context: __SerdeContext ): ProposedMultiRegionAccessPointPolicy => { const contents: any = {}; - if (output["Policy"] !== undefined) { - contents.Policy = __expectString(output["Policy"]); + if (output[_Po] != null) { + contents[_Po] = __expectString(output[_Po]); } return contents; }; @@ -12759,17 +11166,17 @@ const de_ProposedMultiRegionAccessPointPolicy = ( */ const de_PublicAccessBlockConfiguration = (output: any, context: __SerdeContext): PublicAccessBlockConfiguration => { const contents: any = {}; - if (output["BlockPublicAcls"] !== undefined) { - contents.BlockPublicAcls = __parseBoolean(output["BlockPublicAcls"]); + if (output[_BPA] != null) { + contents[_BPA] = __parseBoolean(output[_BPA]); } - if (output["IgnorePublicAcls"] !== undefined) { - contents.IgnorePublicAcls = __parseBoolean(output["IgnorePublicAcls"]); + if (output[_IPA] != null) { + contents[_IPA] = __parseBoolean(output[_IPA]); } - if (output["BlockPublicPolicy"] !== undefined) { - contents.BlockPublicPolicy = __parseBoolean(output["BlockPublicPolicy"]); + if (output[_BPP] != null) { + contents[_BPP] = __parseBoolean(output[_BPP]); } - if (output["RestrictPublicBuckets"] !== undefined) { - contents.RestrictPublicBuckets = __parseBoolean(output["RestrictPublicBuckets"]); + if (output[_RPB] != null) { + contents[_RPB] = __parseBoolean(output[_RPB]); } return contents; }; @@ -12782,11 +11189,11 @@ const de_PutMultiRegionAccessPointPolicyInput = ( context: __SerdeContext ): PutMultiRegionAccessPointPolicyInput => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Policy"] !== undefined) { - contents.Policy = __expectString(output["Policy"]); + if (output[_Po] != null) { + contents[_Po] = __expectString(output[_Po]); } return contents; }; @@ -12796,11 +11203,11 @@ const de_PutMultiRegionAccessPointPolicyInput = ( */ const de_Region = (output: any, context: __SerdeContext): Region => { const contents: any = {}; - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["BucketAccountId"] !== undefined) { - contents.BucketAccountId = __expectString(output["BucketAccountId"]); + if (output[_BAI] != null) { + contents[_BAI] = __expectString(output[_BAI]); } return contents; }; @@ -12810,20 +11217,20 @@ const de_Region = (output: any, context: __SerdeContext): Region => { */ const de_RegionalBucket = (output: any, context: __SerdeContext): RegionalBucket => { const contents: any = {}; - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["BucketArn"] !== undefined) { - contents.BucketArn = __expectString(output["BucketArn"]); + if (output[_BA] != null) { + contents[_BA] = __expectString(output[_BA]); } - if (output["PublicAccessBlockEnabled"] !== undefined) { - contents.PublicAccessBlockEnabled = __parseBoolean(output["PublicAccessBlockEnabled"]); + if (output[_PABE] != null) { + contents[_PABE] = __parseBoolean(output[_PABE]); } - if (output["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"])); + if (output[_CD] != null) { + contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output["OutpostId"] !== undefined) { - contents.OutpostId = __expectString(output["OutpostId"]); + if (output[_OI] != null) { + contents[_OI] = __expectString(output[_OI]); } return contents; }; @@ -12855,14 +11262,14 @@ const de_RegionCreationList = (output: any, context: __SerdeContext): Region[] = */ const de_RegionReport = (output: any, context: __SerdeContext): RegionReport => { const contents: any = {}; - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Region"] !== undefined) { - contents.Region = __expectString(output["Region"]); + if (output[_Reg] != null) { + contents[_Reg] = __expectString(output[_Reg]); } - if (output["BucketAccountId"] !== undefined) { - contents.BucketAccountId = __expectString(output["BucketAccountId"]); + if (output[_BAI] != null) { + contents[_BAI] = __expectString(output[_BAI]); } return contents; }; @@ -12894,8 +11301,8 @@ const de_Regions = (output: any, context: __SerdeContext): string[] => { */ const de_ReplicaModifications = (output: any, context: __SerdeContext): ReplicaModifications => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -12905,13 +11312,13 @@ const de_ReplicaModifications = (output: any, context: __SerdeContext): ReplicaM */ const de_ReplicationConfiguration = (output: any, context: __SerdeContext): ReplicationConfiguration => { const contents: any = {}; - if (output["Role"] !== undefined) { - contents.Role = __expectString(output["Role"]); + if (output[_Rol] != null) { + contents[_Rol] = __expectString(output[_Rol]); } if (output.Rules === "") { - contents.Rules = []; - } else if (output["Rules"] !== undefined && output["Rules"]["Rule"] !== undefined) { - contents.Rules = de_ReplicationRules(__getArrayIfSingleItem(output["Rules"]["Rule"]), context); + contents[_Ru] = []; + } else if (output[_Ru] != null && output[_Ru][_Rul] != null) { + contents[_Ru] = de_ReplicationRules(__getArrayIfSingleItem(output[_Ru][_Rul]), context); } return contents; }; @@ -12921,35 +11328,35 @@ const de_ReplicationConfiguration = (output: any, context: __SerdeContext): Repl */ const de_ReplicationRule = (output: any, context: __SerdeContext): ReplicationRule => { const contents: any = {}; - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID] != null) { + contents[_ID] = __expectString(output[_ID]); } - if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt32(output["Priority"]) as number; + if (output[_Pr] != null) { + contents[_Pr] = __strictParseInt32(output[_Pr]) as number; } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pre] != null) { + contents[_Pre] = __expectString(output[_Pre]); } - if (output["Filter"] !== undefined) { - contents.Filter = de_ReplicationRuleFilter(output["Filter"], context); + if (output[_Fil] != null) { + contents[_Fil] = de_ReplicationRuleFilter(output[_Fil], context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["SourceSelectionCriteria"] !== undefined) { - contents.SourceSelectionCriteria = de_SourceSelectionCriteria(output["SourceSelectionCriteria"], context); + if (output[_SSC] != null) { + contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context); } - if (output["ExistingObjectReplication"] !== undefined) { - contents.ExistingObjectReplication = de_ExistingObjectReplication(output["ExistingObjectReplication"], context); + if (output[_EOR] != null) { + contents[_EOR] = de_ExistingObjectReplication(output[_EOR], context); } - if (output["Destination"] !== undefined) { - contents.Destination = de_Destination(output["Destination"], context); + if (output[_Des] != null) { + contents[_Des] = de_Destination(output[_Des], context); } - if (output["DeleteMarkerReplication"] !== undefined) { - contents.DeleteMarkerReplication = de_DeleteMarkerReplication(output["DeleteMarkerReplication"], context); + if (output[_DMR] != null) { + contents[_DMR] = de_DeleteMarkerReplication(output[_DMR], context); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } return contents; }; @@ -12959,13 +11366,13 @@ const de_ReplicationRule = (output: any, context: __SerdeContext): ReplicationRu */ const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): ReplicationRuleAndOperator => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pre] != null) { + contents[_Pre] = __expectString(output[_Pre]); } if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_S3TagSet(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_T] = []; + } else if (output[_T] != null && output[_T][_m] != null) { + contents[_T] = de_S3TagSet(__getArrayIfSingleItem(output[_T][_m]), context); } return contents; }; @@ -12975,14 +11382,14 @@ const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): Re */ const de_ReplicationRuleFilter = (output: any, context: __SerdeContext): ReplicationRuleFilter => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pre] != null) { + contents[_Pre] = __expectString(output[_Pre]); } - if (output["Tag"] !== undefined) { - contents.Tag = de_S3Tag(output["Tag"], context); + if (output[_Tag] != null) { + contents[_Tag] = de_S3Tag(output[_Tag], context); } - if (output["And"] !== undefined) { - contents.And = de_ReplicationRuleAndOperator(output["And"], context); + if (output[_An] != null) { + contents[_An] = de_ReplicationRuleAndOperator(output[_An], context); } return contents; }; @@ -13014,11 +11421,11 @@ const de_ReplicationStatusFilterList = (output: any, context: __SerdeContext): R */ const de_ReplicationTime = (output: any, context: __SerdeContext): ReplicationTime => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Time"] !== undefined) { - contents.Time = de_ReplicationTimeValue(output["Time"], context); + if (output[_Ti] != null) { + contents[_Ti] = de_ReplicationTimeValue(output[_Ti], context); } return contents; }; @@ -13028,8 +11435,8 @@ const de_ReplicationTime = (output: any, context: __SerdeContext): ReplicationTi */ const de_ReplicationTimeValue = (output: any, context: __SerdeContext): ReplicationTimeValue => { const contents: any = {}; - if (output["Minutes"] !== undefined) { - contents.Minutes = __strictParseInt32(output["Minutes"]) as number; + if (output[_Mi] != null) { + contents[_Mi] = __strictParseInt32(output[_Mi]) as number; } return contents; }; @@ -13050,13 +11457,13 @@ const de_RouteList = (output: any, context: __SerdeContext): MultiRegionAccessPo */ const de_S3AccessControlList = (output: any, context: __SerdeContext): S3AccessControlList => { const contents: any = {}; - if (output["Owner"] !== undefined) { - contents.Owner = de_S3ObjectOwner(output["Owner"], context); + if (output[_Ow] != null) { + contents[_Ow] = de_S3ObjectOwner(output[_Ow], context); } if (output.Grants === "") { - contents.Grants = []; - } else if (output["Grants"] !== undefined && output["Grants"]["member"] !== undefined) { - contents.Grants = de_S3GrantList(__getArrayIfSingleItem(output["Grants"]["member"]), context); + contents[_Gr] = []; + } else if (output[_Gr] != null && output[_Gr][_m] != null) { + contents[_Gr] = de_S3GrantList(__getArrayIfSingleItem(output[_Gr][_m]), context); } return contents; }; @@ -13066,11 +11473,11 @@ const de_S3AccessControlList = (output: any, context: __SerdeContext): S3AccessC */ const de_S3AccessControlPolicy = (output: any, context: __SerdeContext): S3AccessControlPolicy => { const contents: any = {}; - if (output["AccessControlList"] !== undefined) { - contents.AccessControlList = de_S3AccessControlList(output["AccessControlList"], context); + if (output[_ACLc] != null) { + contents[_ACLc] = de_S3AccessControlList(output[_ACLc], context); } - if (output["CannedAccessControlList"] !== undefined) { - contents.CannedAccessControlList = __expectString(output["CannedAccessControlList"]); + if (output[_CACL] != null) { + contents[_CACL] = __expectString(output[_CACL]); } return contents; }; @@ -13080,23 +11487,23 @@ const de_S3AccessControlPolicy = (output: any, context: __SerdeContext): S3Acces */ const de_S3BucketDestination = (output: any, context: __SerdeContext): S3BucketDestination => { const contents: any = {}; - if (output["Format"] !== undefined) { - contents.Format = __expectString(output["Format"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } - if (output["OutputSchemaVersion"] !== undefined) { - contents.OutputSchemaVersion = __expectString(output["OutputSchemaVersion"]); + if (output[_OSVu] != null) { + contents[_OSVu] = __expectString(output[_OSVu]); } - if (output["AccountId"] !== undefined) { - contents.AccountId = __expectString(output["AccountId"]); + if (output[_AI] != null) { + contents[_AI] = __expectString(output[_AI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_Pre] != null) { + contents[_Pre] = __expectString(output[_Pre]); } - if (output["Encryption"] !== undefined) { - contents.Encryption = de_StorageLensDataExportEncryption(output["Encryption"], context); + if (output[_Enc] != null) { + contents[_Enc] = de_StorageLensDataExportEncryption(output[_Enc], context); } return contents; }; @@ -13106,72 +11513,63 @@ const de_S3BucketDestination = (output: any, context: __SerdeContext): S3BucketD */ const de_S3CopyObjectOperation = (output: any, context: __SerdeContext): S3CopyObjectOperation => { const contents: any = {}; - if (output["TargetResource"] !== undefined) { - contents.TargetResource = __expectString(output["TargetResource"]); + if (output[_TR] != null) { + contents[_TR] = __expectString(output[_TR]); } - if (output["CannedAccessControlList"] !== undefined) { - contents.CannedAccessControlList = __expectString(output["CannedAccessControlList"]); + if (output[_CACL] != null) { + contents[_CACL] = __expectString(output[_CACL]); } if (output.AccessControlGrants === "") { - contents.AccessControlGrants = []; - } else if (output["AccessControlGrants"] !== undefined && output["AccessControlGrants"]["member"] !== undefined) { - contents.AccessControlGrants = de_S3GrantList( - __getArrayIfSingleItem(output["AccessControlGrants"]["member"]), - context - ); + contents[_ACG] = []; + } else if (output[_ACG] != null && output[_ACG][_m] != null) { + contents[_ACG] = de_S3GrantList(__getArrayIfSingleItem(output[_ACG][_m]), context); } - if (output["MetadataDirective"] !== undefined) { - contents.MetadataDirective = __expectString(output["MetadataDirective"]); + if (output[_MDe] != null) { + contents[_MDe] = __expectString(output[_MDe]); } - if (output["ModifiedSinceConstraint"] !== undefined) { - contents.ModifiedSinceConstraint = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ModifiedSinceConstraint"]) - ); + if (output[_MSC] != null) { + contents[_MSC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_MSC])); } - if (output["NewObjectMetadata"] !== undefined) { - contents.NewObjectMetadata = de_S3ObjectMetadata(output["NewObjectMetadata"], context); + if (output[_NOM] != null) { + contents[_NOM] = de_S3ObjectMetadata(output[_NOM], context); } if (output.NewObjectTagging === "") { - contents.NewObjectTagging = []; - } else if (output["NewObjectTagging"] !== undefined && output["NewObjectTagging"]["member"] !== undefined) { - contents.NewObjectTagging = de_S3TagSet(__getArrayIfSingleItem(output["NewObjectTagging"]["member"]), context); + contents[_NOT] = []; + } else if (output[_NOT] != null && output[_NOT][_m] != null) { + contents[_NOT] = de_S3TagSet(__getArrayIfSingleItem(output[_NOT][_m]), context); } - if (output["RedirectLocation"] !== undefined) { - contents.RedirectLocation = __expectString(output["RedirectLocation"]); + if (output[_RL] != null) { + contents[_RL] = __expectString(output[_RL]); } - if (output["RequesterPays"] !== undefined) { - contents.RequesterPays = __parseBoolean(output["RequesterPays"]); + if (output[_RP] != null) { + contents[_RP] = __parseBoolean(output[_RP]); } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["UnModifiedSinceConstraint"] !== undefined) { - contents.UnModifiedSinceConstraint = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["UnModifiedSinceConstraint"]) - ); + if (output[_UMSC] != null) { + contents[_UMSC] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UMSC])); } - if (output["SSEAwsKmsKeyId"] !== undefined) { - contents.SSEAwsKmsKeyId = __expectString(output["SSEAwsKmsKeyId"]); + if (output[_SSEAKKI] != null) { + contents[_SSEAKKI] = __expectString(output[_SSEAKKI]); } - if (output["TargetKeyPrefix"] !== undefined) { - contents.TargetKeyPrefix = __expectString(output["TargetKeyPrefix"]); + if (output[_TKP] != null) { + contents[_TKP] = __expectString(output[_TKP]); } - if (output["ObjectLockLegalHoldStatus"] !== undefined) { - contents.ObjectLockLegalHoldStatus = __expectString(output["ObjectLockLegalHoldStatus"]); + if (output[_OLLHS] != null) { + contents[_OLLHS] = __expectString(output[_OLLHS]); } - if (output["ObjectLockMode"] !== undefined) { - contents.ObjectLockMode = __expectString(output["ObjectLockMode"]); + if (output[_OLM] != null) { + contents[_OLM] = __expectString(output[_OLM]); } - if (output["ObjectLockRetainUntilDate"] !== undefined) { - contents.ObjectLockRetainUntilDate = __expectNonNull( - __parseRfc3339DateTimeWithOffset(output["ObjectLockRetainUntilDate"]) - ); + if (output[_OLRUD] != null) { + contents[_OLRUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_OLRUD])); } - if (output["BucketKeyEnabled"] !== undefined) { - contents.BucketKeyEnabled = __parseBoolean(output["BucketKeyEnabled"]); + if (output[_BKE] != null) { + contents[_BKE] = __parseBoolean(output[_BKE]); } - if (output["ChecksumAlgorithm"] !== undefined) { - contents.ChecksumAlgorithm = __expectString(output["ChecksumAlgorithm"]); + if (output[_CAh] != null) { + contents[_CAh] = __expectString(output[_CAh]); } return contents; }; @@ -13189,11 +11587,11 @@ const de_S3DeleteObjectTaggingOperation = (output: any, context: __SerdeContext) */ const de_S3GeneratedManifestDescriptor = (output: any, context: __SerdeContext): S3GeneratedManifestDescriptor => { const contents: any = {}; - if (output["Format"] !== undefined) { - contents.Format = __expectString(output["Format"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } - if (output["Location"] !== undefined) { - contents.Location = de_JobManifestLocation(output["Location"], context); + if (output[_L] != null) { + contents[_L] = de_JobManifestLocation(output[_L], context); } return contents; }; @@ -13203,11 +11601,11 @@ const de_S3GeneratedManifestDescriptor = (output: any, context: __SerdeContext): */ const de_S3Grant = (output: any, context: __SerdeContext): S3Grant => { const contents: any = {}; - if (output["Grantee"] !== undefined) { - contents.Grantee = de_S3Grantee(output["Grantee"], context); + if (output[_G] != null) { + contents[_G] = de_S3Grantee(output[_G], context); } - if (output["Permission"] !== undefined) { - contents.Permission = __expectString(output["Permission"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } return contents; }; @@ -13217,14 +11615,14 @@ const de_S3Grant = (output: any, context: __SerdeContext): S3Grant => { */ const de_S3Grantee = (output: any, context: __SerdeContext): S3Grantee => { const contents: any = {}; - if (output["TypeIdentifier"] !== undefined) { - contents.TypeIdentifier = __expectString(output["TypeIdentifier"]); + if (output[_TI] != null) { + contents[_TI] = __expectString(output[_TI]); } - if (output["Identifier"] !== undefined) { - contents.Identifier = __expectString(output["Identifier"]); + if (output[_Id] != null) { + contents[_Id] = __expectString(output[_Id]); } - if (output["DisplayName"] !== undefined) { - contents.DisplayName = __expectString(output["DisplayName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } return contents; }; @@ -13248,11 +11646,11 @@ const de_S3InitiateRestoreObjectOperation = ( context: __SerdeContext ): S3InitiateRestoreObjectOperation => { const contents: any = {}; - if (output["ExpirationInDays"] !== undefined) { - contents.ExpirationInDays = __strictParseInt32(output["ExpirationInDays"]) as number; + if (output[_EID] != null) { + contents[_EID] = __strictParseInt32(output[_EID]) as number; } - if (output["GlacierJobTier"] !== undefined) { - contents.GlacierJobTier = __expectString(output["GlacierJobTier"]); + if (output[_GJT] != null) { + contents[_GJT] = __expectString(output[_GJT]); } return contents; }; @@ -13262,20 +11660,20 @@ const de_S3InitiateRestoreObjectOperation = ( */ const de_S3JobManifestGenerator = (output: any, context: __SerdeContext): S3JobManifestGenerator => { const contents: any = {}; - if (output["ExpectedBucketOwner"] !== undefined) { - contents.ExpectedBucketOwner = __expectString(output["ExpectedBucketOwner"]); + if (output[_EBO] != null) { + contents[_EBO] = __expectString(output[_EBO]); } - if (output["SourceBucket"] !== undefined) { - contents.SourceBucket = __expectString(output["SourceBucket"]); + if (output[_SB] != null) { + contents[_SB] = __expectString(output[_SB]); } - if (output["ManifestOutputLocation"] !== undefined) { - contents.ManifestOutputLocation = de_S3ManifestOutputLocation(output["ManifestOutputLocation"], context); + if (output[_MOL] != null) { + contents[_MOL] = de_S3ManifestOutputLocation(output[_MOL], context); } - if (output["Filter"] !== undefined) { - contents.Filter = de_JobManifestGeneratorFilter(output["Filter"], context); + if (output[_Fil] != null) { + contents[_Fil] = de_JobManifestGeneratorFilter(output[_Fil], context); } - if (output["EnableManifestOutput"] !== undefined) { - contents.EnableManifestOutput = __parseBoolean(output["EnableManifestOutput"]); + if (output[_EMO] != null) { + contents[_EMO] = __parseBoolean(output[_EMO]); } return contents; }; @@ -13285,20 +11683,20 @@ const de_S3JobManifestGenerator = (output: any, context: __SerdeContext): S3JobM */ const de_S3ManifestOutputLocation = (output: any, context: __SerdeContext): S3ManifestOutputLocation => { const contents: any = {}; - if (output["ExpectedManifestBucketOwner"] !== undefined) { - contents.ExpectedManifestBucketOwner = __expectString(output["ExpectedManifestBucketOwner"]); + if (output[_EMBO] != null) { + contents[_EMBO] = __expectString(output[_EMBO]); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["ManifestPrefix"] !== undefined) { - contents.ManifestPrefix = __expectString(output["ManifestPrefix"]); + if (output[_MP] != null) { + contents[_MP] = __expectString(output[_MP]); } - if (output["ManifestEncryption"] !== undefined) { - contents.ManifestEncryption = de_GeneratedManifestEncryption(output["ManifestEncryption"], context); + if (output[_ME] != null) { + contents[_ME] = de_GeneratedManifestEncryption(output[_ME], context); } - if (output["ManifestFormat"] !== undefined) { - contents.ManifestFormat = __expectString(output["ManifestFormat"]); + if (output[_MF] != null) { + contents[_MF] = __expectString(output[_MF]); } return contents; }; @@ -13308,8 +11706,8 @@ const de_S3ManifestOutputLocation = (output: any, context: __SerdeContext): S3Ma */ const de_S3ObjectLockLegalHold = (output: any, context: __SerdeContext): S3ObjectLockLegalHold => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -13319,40 +11717,40 @@ const de_S3ObjectLockLegalHold = (output: any, context: __SerdeContext): S3Objec */ const de_S3ObjectMetadata = (output: any, context: __SerdeContext): S3ObjectMetadata => { const contents: any = {}; - if (output["CacheControl"] !== undefined) { - contents.CacheControl = __expectString(output["CacheControl"]); + if (output[_CC] != null) { + contents[_CC] = __expectString(output[_CC]); } - if (output["ContentDisposition"] !== undefined) { - contents.ContentDisposition = __expectString(output["ContentDisposition"]); + if (output[_CDo] != null) { + contents[_CDo] = __expectString(output[_CDo]); } - if (output["ContentEncoding"] !== undefined) { - contents.ContentEncoding = __expectString(output["ContentEncoding"]); + if (output[_CE] != null) { + contents[_CE] = __expectString(output[_CE]); } - if (output["ContentLanguage"] !== undefined) { - contents.ContentLanguage = __expectString(output["ContentLanguage"]); + if (output[_CL] != null) { + contents[_CL] = __expectString(output[_CL]); } if (output.UserMetadata === "") { - contents.UserMetadata = {}; - } else if (output["UserMetadata"] !== undefined && output["UserMetadata"]["entry"] !== undefined) { - contents.UserMetadata = de_S3UserMetadata(__getArrayIfSingleItem(output["UserMetadata"]["entry"]), context); + contents[_UM] = {}; + } else if (output[_UM] != null && output[_UM][_e] != null) { + contents[_UM] = de_S3UserMetadata(__getArrayIfSingleItem(output[_UM][_e]), context); } - if (output["ContentLength"] !== undefined) { - contents.ContentLength = __strictParseLong(output["ContentLength"]) as number; + if (output[_CLo] != null) { + contents[_CLo] = __strictParseLong(output[_CLo]) as number; } - if (output["ContentMD5"] !== undefined) { - contents.ContentMD5 = __expectString(output["ContentMD5"]); + if (output[_CMD] != null) { + contents[_CMD] = __expectString(output[_CMD]); } - if (output["ContentType"] !== undefined) { - contents.ContentType = __expectString(output["ContentType"]); + if (output[_CTon] != null) { + contents[_CTon] = __expectString(output[_CTon]); } - if (output["HttpExpiresDate"] !== undefined) { - contents.HttpExpiresDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["HttpExpiresDate"])); + if (output[_HED] != null) { + contents[_HED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_HED])); } - if (output["RequesterCharged"] !== undefined) { - contents.RequesterCharged = __parseBoolean(output["RequesterCharged"]); + if (output[_RCe] != null) { + contents[_RCe] = __parseBoolean(output[_RCe]); } - if (output["SSEAlgorithm"] !== undefined) { - contents.SSEAlgorithm = __expectString(output["SSEAlgorithm"]); + if (output[_SSEA] != null) { + contents[_SSEA] = __expectString(output[_SSEA]); } return contents; }; @@ -13362,11 +11760,11 @@ const de_S3ObjectMetadata = (output: any, context: __SerdeContext): S3ObjectMeta */ const de_S3ObjectOwner = (output: any, context: __SerdeContext): S3ObjectOwner => { const contents: any = {}; - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID] != null) { + contents[_ID] = __expectString(output[_ID]); } - if (output["DisplayName"] !== undefined) { - contents.DisplayName = __expectString(output["DisplayName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } return contents; }; @@ -13384,11 +11782,11 @@ const de_S3ReplicateObjectOperation = (output: any, context: __SerdeContext): S3 */ const de_S3Retention = (output: any, context: __SerdeContext): S3Retention => { const contents: any = {}; - if (output["RetainUntilDate"] !== undefined) { - contents.RetainUntilDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RetainUntilDate"])); + if (output[_RUD] != null) { + contents[_RUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RUD])); } - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } return contents; }; @@ -13398,8 +11796,8 @@ const de_S3Retention = (output: any, context: __SerdeContext): S3Retention => { */ const de_S3SetObjectAclOperation = (output: any, context: __SerdeContext): S3SetObjectAclOperation => { const contents: any = {}; - if (output["AccessControlPolicy"] !== undefined) { - contents.AccessControlPolicy = de_S3AccessControlPolicy(output["AccessControlPolicy"], context); + if (output[_ACP] != null) { + contents[_ACP] = de_S3AccessControlPolicy(output[_ACP], context); } return contents; }; @@ -13409,8 +11807,8 @@ const de_S3SetObjectAclOperation = (output: any, context: __SerdeContext): S3Set */ const de_S3SetObjectLegalHoldOperation = (output: any, context: __SerdeContext): S3SetObjectLegalHoldOperation => { const contents: any = {}; - if (output["LegalHold"] !== undefined) { - contents.LegalHold = de_S3ObjectLockLegalHold(output["LegalHold"], context); + if (output[_LH] != null) { + contents[_LH] = de_S3ObjectLockLegalHold(output[_LH], context); } return contents; }; @@ -13420,11 +11818,11 @@ const de_S3SetObjectLegalHoldOperation = (output: any, context: __SerdeContext): */ const de_S3SetObjectRetentionOperation = (output: any, context: __SerdeContext): S3SetObjectRetentionOperation => { const contents: any = {}; - if (output["BypassGovernanceRetention"] !== undefined) { - contents.BypassGovernanceRetention = __parseBoolean(output["BypassGovernanceRetention"]); + if (output[_BGR] != null) { + contents[_BGR] = __parseBoolean(output[_BGR]); } - if (output["Retention"] !== undefined) { - contents.Retention = de_S3Retention(output["Retention"], context); + if (output[_Ret] != null) { + contents[_Ret] = de_S3Retention(output[_Ret], context); } return contents; }; @@ -13435,9 +11833,9 @@ const de_S3SetObjectRetentionOperation = (output: any, context: __SerdeContext): const de_S3SetObjectTaggingOperation = (output: any, context: __SerdeContext): S3SetObjectTaggingOperation => { const contents: any = {}; if (output.TagSet === "") { - contents.TagSet = []; - } else if (output["TagSet"] !== undefined && output["TagSet"]["member"] !== undefined) { - contents.TagSet = de_S3TagSet(__getArrayIfSingleItem(output["TagSet"]["member"]), context); + contents[_TS] = []; + } else if (output[_TS] != null && output[_TS][_m] != null) { + contents[_TS] = de_S3TagSet(__getArrayIfSingleItem(output[_TS][_m]), context); } return contents; }; @@ -13447,11 +11845,11 @@ const de_S3SetObjectTaggingOperation = (output: any, context: __SerdeContext): S */ const de_S3Tag = (output: any, context: __SerdeContext): S3Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -13485,14 +11883,14 @@ const de_S3UserMetadata = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["Delimiter"] !== undefined) { - contents.Delimiter = __expectString(output["Delimiter"]); + if (output[_Del] != null) { + contents[_Del] = __expectString(output[_Del]); } - if (output["MaxDepth"] !== undefined) { - contents.MaxDepth = __strictParseInt32(output["MaxDepth"]) as number; + if (output[_MDa] != null) { + contents[_MDa] = __strictParseInt32(output[_MDa]) as number; } - if (output["MinStorageBytesPercentage"] !== undefined) { - contents.MinStorageBytesPercentage = __strictParseFloat(output["MinStorageBytesPercentage"]) as number; + if (output[_MSBP] != null) { + contents[_MSBP] = __strictParseFloat(output[_MSBP]) as number; } return contents; }; @@ -13502,11 +11900,11 @@ const de_SelectionCriteria = (output: any, context: __SerdeContext): SelectionCr */ const de_SourceSelectionCriteria = (output: any, context: __SerdeContext): SourceSelectionCriteria => { const contents: any = {}; - if (output["SseKmsEncryptedObjects"] !== undefined) { - contents.SseKmsEncryptedObjects = de_SseKmsEncryptedObjects(output["SseKmsEncryptedObjects"], context); + if (output[_SKEO] != null) { + contents[_SKEO] = de_SseKmsEncryptedObjects(output[_SKEO], context); } - if (output["ReplicaModifications"] !== undefined) { - contents.ReplicaModifications = de_ReplicaModifications(output["ReplicaModifications"], context); + if (output[_RM] != null) { + contents[_RM] = de_ReplicaModifications(output[_RM], context); } return contents; }; @@ -13516,8 +11914,8 @@ const de_SourceSelectionCriteria = (output: any, context: __SerdeContext): Sourc */ const de_SSEKMS = (output: any, context: __SerdeContext): SSEKMS => { const contents: any = {}; - if (output["KeyId"] !== undefined) { - contents.KeyId = __expectString(output["KeyId"]); + if (output[_KI] != null) { + contents[_KI] = __expectString(output[_KI]); } return contents; }; @@ -13527,8 +11925,8 @@ const de_SSEKMS = (output: any, context: __SerdeContext): SSEKMS => { */ const de_SseKmsEncryptedObjects = (output: any, context: __SerdeContext): SseKmsEncryptedObjects => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -13538,8 +11936,8 @@ const de_SseKmsEncryptedObjects = (output: any, context: __SerdeContext): SseKms */ const de_SSEKMSEncryption = (output: any, context: __SerdeContext): SSEKMSEncryption => { const contents: any = {}; - if (output["KeyId"] !== undefined) { - contents.KeyId = __expectString(output["KeyId"]); + if (output[_KI] != null) { + contents[_KI] = __expectString(output[_KI]); } return contents; }; @@ -13576,8 +11974,8 @@ const de_StorageClassList = (output: any, context: __SerdeContext): S3StorageCla */ const de_StorageLensAwsOrg = (output: any, context: __SerdeContext): StorageLensAwsOrg => { const contents: any = {}; - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -13587,29 +11985,29 @@ const de_StorageLensAwsOrg = (output: any, context: __SerdeContext): StorageLens */ const de_StorageLensConfiguration = (output: any, context: __SerdeContext): StorageLensConfiguration => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_Id_] != null) { + contents[_Id_] = __expectString(output[_Id_]); } - if (output["AccountLevel"] !== undefined) { - contents.AccountLevel = de_AccountLevel(output["AccountLevel"], context); + if (output[_AL] != null) { + contents[_AL] = de_AccountLevel(output[_AL], context); } - if (output["Include"] !== undefined) { - contents.Include = de_Include(output["Include"], context); + if (output[_I] != null) { + contents[_I] = de_Include(output[_I], context); } - if (output["Exclude"] !== undefined) { - contents.Exclude = de__Exclude(output["Exclude"], context); + if (output[_Ex] != null) { + contents[_Ex] = de__Exclude(output[_Ex], context); } - if (output["DataExport"] !== undefined) { - contents.DataExport = de_StorageLensDataExport(output["DataExport"], context); + if (output[_DE] != null) { + contents[_DE] = de_StorageLensDataExport(output[_DE], context); } - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } - if (output["AwsOrg"] !== undefined) { - contents.AwsOrg = de_StorageLensAwsOrg(output["AwsOrg"], context); + if (output[_AOw] != null) { + contents[_AOw] = de_StorageLensAwsOrg(output[_AOw], context); } - if (output["StorageLensArn"] !== undefined) { - contents.StorageLensArn = __expectString(output["StorageLensArn"]); + if (output[_SLA] != null) { + contents[_SLA] = __expectString(output[_SLA]); } return contents; }; @@ -13630,11 +12028,11 @@ const de_StorageLensConfigurationList = (output: any, context: __SerdeContext): */ const de_StorageLensDataExport = (output: any, context: __SerdeContext): StorageLensDataExport => { const contents: any = {}; - if (output["S3BucketDestination"] !== undefined) { - contents.S3BucketDestination = de_S3BucketDestination(output["S3BucketDestination"], context); + if (output[_SBD] != null) { + contents[_SBD] = de_S3BucketDestination(output[_SBD], context); } - if (output["CloudWatchMetrics"] !== undefined) { - contents.CloudWatchMetrics = de_CloudWatchMetrics(output["CloudWatchMetrics"], context); + if (output[_CWM] != null) { + contents[_CWM] = de_CloudWatchMetrics(output[_CWM], context); } return contents; }; @@ -13644,11 +12042,11 @@ const de_StorageLensDataExport = (output: any, context: __SerdeContext): Storage */ const de_StorageLensDataExportEncryption = (output: any, context: __SerdeContext): StorageLensDataExportEncryption => { const contents: any = {}; - if (output["SSE-S3"] !== undefined) { - contents.SSES3 = de_SSES3(output["SSE-S3"], context); + if (output[_SS] != null) { + contents[_SSES] = de_SSES3(output[_SS], context); } - if (output["SSE-KMS"] !== undefined) { - contents.SSEKMS = de_SSEKMS(output["SSE-KMS"], context); + if (output[_SK] != null) { + contents[_SSEKMS] = de_SSEKMS(output[_SK], context); } return contents; }; @@ -13658,14 +12056,14 @@ const de_StorageLensDataExportEncryption = (output: any, context: __SerdeContext */ const de_StorageLensGroup = (output: any, context: __SerdeContext): StorageLensGroup => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Filter"] !== undefined) { - contents.Filter = de_StorageLensGroupFilter(output["Filter"], context); + if (output[_Fil] != null) { + contents[_Fil] = de_StorageLensGroupFilter(output[_Fil], context); } - if (output["StorageLensGroupArn"] !== undefined) { - contents.StorageLensGroupArn = __expectString(output["StorageLensGroupArn"]); + if (output[_SLGA] != null) { + contents[_SLGA] = __expectString(output[_SLGA]); } return contents; }; @@ -13676,25 +12074,25 @@ const de_StorageLensGroup = (output: any, context: __SerdeContext): StorageLensG const de_StorageLensGroupAndOperator = (output: any, context: __SerdeContext): StorageLensGroupAndOperator => { const contents: any = {}; if (output.MatchAnyPrefix === "") { - contents.MatchAnyPrefix = []; - } else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["Prefix"] !== undefined) { - contents.MatchAnyPrefix = de_MatchAnyPrefix(__getArrayIfSingleItem(output["MatchAnyPrefix"]["Prefix"]), context); + contents[_MAP] = []; + } else if (output[_MAP] != null && output[_MAP][_Pre] != null) { + contents[_MAP] = de_MatchAnyPrefix(__getArrayIfSingleItem(output[_MAP][_Pre]), context); } if (output.MatchAnySuffix === "") { - contents.MatchAnySuffix = []; - } else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["Suffix"] !== undefined) { - contents.MatchAnySuffix = de_MatchAnySuffix(__getArrayIfSingleItem(output["MatchAnySuffix"]["Suffix"]), context); + contents[_MAS] = []; + } else if (output[_MAS] != null && output[_MAS][_Su] != null) { + contents[_MAS] = de_MatchAnySuffix(__getArrayIfSingleItem(output[_MAS][_Su]), context); } if (output.MatchAnyTag === "") { - contents.MatchAnyTag = []; - } else if (output["MatchAnyTag"] !== undefined && output["MatchAnyTag"]["Tag"] !== undefined) { - contents.MatchAnyTag = de_MatchAnyTag(__getArrayIfSingleItem(output["MatchAnyTag"]["Tag"]), context); + contents[_MAT] = []; + } else if (output[_MAT] != null && output[_MAT][_Tag] != null) { + contents[_MAT] = de_MatchAnyTag(__getArrayIfSingleItem(output[_MAT][_Tag]), context); } - if (output["MatchObjectAge"] !== undefined) { - contents.MatchObjectAge = de_MatchObjectAge(output["MatchObjectAge"], context); + if (output[_MOA] != null) { + contents[_MOA] = de_MatchObjectAge(output[_MOA], context); } - if (output["MatchObjectSize"] !== undefined) { - contents.MatchObjectSize = de_MatchObjectSize(output["MatchObjectSize"], context); + if (output[_MOS] != null) { + contents[_MOS] = de_MatchObjectSize(output[_MOS], context); } return contents; }; @@ -13705,31 +12103,31 @@ const de_StorageLensGroupAndOperator = (output: any, context: __SerdeContext): S const de_StorageLensGroupFilter = (output: any, context: __SerdeContext): StorageLensGroupFilter => { const contents: any = {}; if (output.MatchAnyPrefix === "") { - contents.MatchAnyPrefix = []; - } else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["Prefix"] !== undefined) { - contents.MatchAnyPrefix = de_MatchAnyPrefix(__getArrayIfSingleItem(output["MatchAnyPrefix"]["Prefix"]), context); + contents[_MAP] = []; + } else if (output[_MAP] != null && output[_MAP][_Pre] != null) { + contents[_MAP] = de_MatchAnyPrefix(__getArrayIfSingleItem(output[_MAP][_Pre]), context); } if (output.MatchAnySuffix === "") { - contents.MatchAnySuffix = []; - } else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["Suffix"] !== undefined) { - contents.MatchAnySuffix = de_MatchAnySuffix(__getArrayIfSingleItem(output["MatchAnySuffix"]["Suffix"]), context); + contents[_MAS] = []; + } else if (output[_MAS] != null && output[_MAS][_Su] != null) { + contents[_MAS] = de_MatchAnySuffix(__getArrayIfSingleItem(output[_MAS][_Su]), context); } if (output.MatchAnyTag === "") { - contents.MatchAnyTag = []; - } else if (output["MatchAnyTag"] !== undefined && output["MatchAnyTag"]["Tag"] !== undefined) { - contents.MatchAnyTag = de_MatchAnyTag(__getArrayIfSingleItem(output["MatchAnyTag"]["Tag"]), context); + contents[_MAT] = []; + } else if (output[_MAT] != null && output[_MAT][_Tag] != null) { + contents[_MAT] = de_MatchAnyTag(__getArrayIfSingleItem(output[_MAT][_Tag]), context); } - if (output["MatchObjectAge"] !== undefined) { - contents.MatchObjectAge = de_MatchObjectAge(output["MatchObjectAge"], context); + if (output[_MOA] != null) { + contents[_MOA] = de_MatchObjectAge(output[_MOA], context); } - if (output["MatchObjectSize"] !== undefined) { - contents.MatchObjectSize = de_MatchObjectSize(output["MatchObjectSize"], context); + if (output[_MOS] != null) { + contents[_MOS] = de_MatchObjectSize(output[_MOS], context); } - if (output["And"] !== undefined) { - contents.And = de_StorageLensGroupAndOperator(output["And"], context); + if (output[_An] != null) { + contents[_An] = de_StorageLensGroupAndOperator(output[_An], context); } - if (output["Or"] !== undefined) { - contents.Or = de_StorageLensGroupOrOperator(output["Or"], context); + if (output[_Or_] != null) { + contents[_Or_] = de_StorageLensGroupOrOperator(output[_Or_], context); } return contents; }; @@ -13739,8 +12137,8 @@ const de_StorageLensGroupFilter = (output: any, context: __SerdeContext): Storag */ const de_StorageLensGroupLevel = (output: any, context: __SerdeContext): StorageLensGroupLevel => { const contents: any = {}; - if (output["SelectionCriteria"] !== undefined) { - contents.SelectionCriteria = de_StorageLensGroupLevelSelectionCriteria(output["SelectionCriteria"], context); + if (output[_SCe] != null) { + contents[_SCe] = de_StorageLensGroupLevelSelectionCriteria(output[_SCe], context); } return contents; }; @@ -13776,14 +12174,14 @@ const de_StorageLensGroupLevelSelectionCriteria = ( ): StorageLensGroupLevelSelectionCriteria => { const contents: any = {}; if (output.Include === "") { - contents.Include = []; - } else if (output["Include"] !== undefined && output["Include"]["Arn"] !== undefined) { - contents.Include = de_StorageLensGroupLevelInclude(__getArrayIfSingleItem(output["Include"]["Arn"]), context); + contents[_I] = []; + } else if (output[_I] != null && output[_I][_Ar] != null) { + contents[_I] = de_StorageLensGroupLevelInclude(__getArrayIfSingleItem(output[_I][_Ar]), context); } if (output.Exclude === "") { - contents.Exclude = []; - } else if (output["Exclude"] !== undefined && output["Exclude"]["Arn"] !== undefined) { - contents.Exclude = de_StorageLensGroupLevelExclude(__getArrayIfSingleItem(output["Exclude"]["Arn"]), context); + contents[_Ex] = []; + } else if (output[_Ex] != null && output[_Ex][_Ar] != null) { + contents[_Ex] = de_StorageLensGroupLevelExclude(__getArrayIfSingleItem(output[_Ex][_Ar]), context); } return contents; }; @@ -13805,25 +12203,25 @@ const de_StorageLensGroupList = (output: any, context: __SerdeContext): ListStor const de_StorageLensGroupOrOperator = (output: any, context: __SerdeContext): StorageLensGroupOrOperator => { const contents: any = {}; if (output.MatchAnyPrefix === "") { - contents.MatchAnyPrefix = []; - } else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["Prefix"] !== undefined) { - contents.MatchAnyPrefix = de_MatchAnyPrefix(__getArrayIfSingleItem(output["MatchAnyPrefix"]["Prefix"]), context); + contents[_MAP] = []; + } else if (output[_MAP] != null && output[_MAP][_Pre] != null) { + contents[_MAP] = de_MatchAnyPrefix(__getArrayIfSingleItem(output[_MAP][_Pre]), context); } if (output.MatchAnySuffix === "") { - contents.MatchAnySuffix = []; - } else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["Suffix"] !== undefined) { - contents.MatchAnySuffix = de_MatchAnySuffix(__getArrayIfSingleItem(output["MatchAnySuffix"]["Suffix"]), context); + contents[_MAS] = []; + } else if (output[_MAS] != null && output[_MAS][_Su] != null) { + contents[_MAS] = de_MatchAnySuffix(__getArrayIfSingleItem(output[_MAS][_Su]), context); } if (output.MatchAnyTag === "") { - contents.MatchAnyTag = []; - } else if (output["MatchAnyTag"] !== undefined && output["MatchAnyTag"]["Tag"] !== undefined) { - contents.MatchAnyTag = de_MatchAnyTag(__getArrayIfSingleItem(output["MatchAnyTag"]["Tag"]), context); + contents[_MAT] = []; + } else if (output[_MAT] != null && output[_MAT][_Tag] != null) { + contents[_MAT] = de_MatchAnyTag(__getArrayIfSingleItem(output[_MAT][_Tag]), context); } - if (output["MatchObjectAge"] !== undefined) { - contents.MatchObjectAge = de_MatchObjectAge(output["MatchObjectAge"], context); + if (output[_MOA] != null) { + contents[_MOA] = de_MatchObjectAge(output[_MOA], context); } - if (output["MatchObjectSize"] !== undefined) { - contents.MatchObjectSize = de_MatchObjectSize(output["MatchObjectSize"], context); + if (output[_MOS] != null) { + contents[_MOS] = de_MatchObjectSize(output[_MOS], context); } return contents; }; @@ -13833,11 +12231,11 @@ const de_StorageLensGroupOrOperator = (output: any, context: __SerdeContext): St */ const de_StorageLensTag = (output: any, context: __SerdeContext): StorageLensTag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -13858,11 +12256,11 @@ const de_StorageLensTags = (output: any, context: __SerdeContext): StorageLensTa */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_V] != null) { + contents[_V] = __expectString(output[_V]); } return contents; }; @@ -13883,14 +12281,14 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_Transition = (output: any, context: __SerdeContext): Transition => { const contents: any = {}; - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Da] != null) { + contents[_Da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Da])); } - if (output["Days"] !== undefined) { - contents.Days = __strictParseInt32(output["Days"]) as number; + if (output[_Day] != null) { + contents[_Day] = __strictParseInt32(output[_Day]) as number; } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } return contents; }; @@ -13924,8 +12322,8 @@ const de_UserArguments = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["VpcId"] !== undefined) { - contents.VpcId = __expectString(output["VpcId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } return contents; }; @@ -13949,6 +12347,515 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Alias"; +const _AA = "ApplicationArn"; +const _AAGICR = "AssociateAccessGrantsIdentityCenterRequest"; +const _ACG = "AccessControlGrants"; +const _ACL = "ACL"; +const _ACLc = "AccessControlList"; +const _ACOM = "AdvancedCostOptimizationMetrics"; +const _ACP = "AccessControlPolicy"; +const _ACT = "AccessControlTranslation"; +const _ADPM = "AdvancedDataProtectionMetrics"; +const _AF = "AllowedFeature"; +const _AFl = "AllowedFeatures"; +const _AG = "AccessGrant"; +const _AGA = "AccessGrantArn"; +const _AGI = "AccessGrantId"; +const _AGIA = "AccessGrantsInstanceArn"; +const _AGII = "AccessGrantsInstanceId"; +const _AGIL = "AccessGrantsInstancesList"; +const _AGIc = "AccessGrantsInstance"; +const _AGL = "AccessGrantsList"; +const _AGLA = "AccessGrantsLocationArn"; +const _AGLC = "AccessGrantsLocationConfiguration"; +const _AGLI = "AccessGrantsLocationId"; +const _AGLL = "AccessGrantsLocationsList"; +const _AGLc = "AccessGrantsLocation"; +const _AI = "AccountId"; +const _AIMU = "AbortIncompleteMultipartUpload"; +const _AKI = "AccessKeyId"; +const _AL = "AccountLevel"; +const _ALT = "AwsLambdaTransformation"; +const _ALTP = "AwsLambdaTransformationPayload"; +const _ALw = "AwsLambda"; +const _AM = "ActivityMetrics"; +const _AO = "AsyncOperation"; +const _AOA = "AwsOrgArn"; +const _AOw = "AwsOrg"; +const _AP = "AccessPoint"; +const _APA = "AccessPointArn"; +const _APL = "AccessPointList"; +const _APc = "AccessPoints"; +const _Ac = "Account"; +const _Act = "Actions"; +const _Acti = "Action"; +const _An = "And"; +const _Ar = "Arn"; +const _B = "Bucket"; +const _BA = "BucketArn"; +const _BAI = "BucketAccountId"; +const _BGR = "BypassGovernanceRetention"; +const _BGT = "BytesGreaterThan"; +const _BIS = "BucketIdentifierString"; +const _BKE = "BucketKeyEnabled"; +const _BL = "BucketLevel"; +const _BLC = "BucketLocationConstraint"; +const _BLT = "BytesLessThan"; +const _BN = "BucketName"; +const _BPA = "BlockPublicAcls"; +const _BPP = "BlockPublicPolicy"; +const _BVS = "BucketVersioningStatus"; +const _Bo = "Boolean"; +const _Bu = "Buckets"; +const _C = "Configuration"; +const _CA = "CreatedAt"; +const _CACL = "CannedAccessControlList"; +const _CAGIR = "CreateAccessGrantsInstanceRequest"; +const _CAGLR = "CreateAccessGrantsLocationRequest"; +const _CAGR = "CreateAccessGrantRequest"; +const _CAPFOLR = "CreateAccessPointForObjectLambdaRequest"; +const _CAPR = "CreateAccessPointRequest"; +const _CAh = "ChecksumAlgorithm"; +const _CAr = "CreatedAfter"; +const _CB = "CreatedBefore"; +const _CBC = "CreateBucketConfiguration"; +const _CC = "CacheControl"; +const _CD = "CreationDate"; +const _CDo = "ContentDisposition"; +const _CE = "ContentEncoding"; +const _CI = "ConfigId"; +const _CJR = "CreateJobRequest"; +const _CL = "ContentLanguage"; +const _CLo = "ContentLength"; +const _CMD = "ContentMD5"; +const _CMRAPI = "CreateMultiRegionAccessPointInput"; +const _CMRAPR = "CreateMultiRegionAccessPointRequest"; +const _CR = "ConfirmationRequired"; +const _CRSBA = "ConfirmRemoveSelfBucketAccess"; +const _CRT = "ClientRequestToken"; +const _CSLGR = "CreateStorageLensGroupRequest"; +const _CT = "ClientToken"; +const _CTo = "ContentTransformation"; +const _CTon = "ContentType"; +const _CTr = "CreationTime"; +const _CWM = "CloudWatchMetrics"; +const _CWME = "CloudWatchMetricsEnabled"; +const _Co = "Code"; +const _Cr = "Credentials"; +const _D = "Description"; +const _DAI = "DaysAfterInitiation"; +const _DE = "DataExport"; +const _DGT = "DaysGreaterThan"; +const _DLT = "DaysLessThan"; +const _DMR = "DeleteMarkerReplication"; +const _DMRAPI = "DeleteMultiRegionAccessPointInput"; +const _DMRAPR = "DeleteMultiRegionAccessPointRequest"; +const _DMRS = "DeleteMarkerReplicationStatus"; +const _DN = "DisplayName"; +const _DS = "DurationSeconds"; +const _DSCM = "DetailedStatusCodesMetrics"; +const _Da = "Date"; +const _Day = "Days"; +const _De = "Details"; +const _Del = "Delimiter"; +const _Des = "Destination"; +const _E = "Endpoints"; +const _EBO = "ExpectedBucketOwner"; +const _EC = "EncryptionConfiguration"; +const _ED = "ErrorDetails"; +const _EFR = "EligibleForReplication"; +const _EID = "ExpirationInDays"; +const _EMBO = "ExpectedManifestBucketOwner"; +const _EMO = "EnableManifestOutput"; +const _EODM = "ExpiredObjectDeleteMarker"; +const _EOR = "ExistingObjectReplication"; +const _EORS = "ExistingObjectReplicationStatus"; +const _ES = "ExpirationStatus"; +const _ET = "ETag"; +const _ETIAS = "ElapsedTimeInActiveSeconds"; +const _ETv = "EventThreshold"; +const _En = "Enabled"; +const _Enc = "Encryption"; +const _Es = "Established"; +const _Ex = "Exclude"; +const _Exp = "Expiration"; +const _F = "Format"; +const _FA = "FunctionArn"; +const _FAS = "FunctionArnString"; +const _FC = "FailureCode"; +const _FP = "FunctionPayload"; +const _FR = "FailureReasons"; +const _FRa = "FailureReason"; +const _Fi = "Fields"; +const _Fil = "Filter"; +const _G = "Grantee"; +const _GFC = "GrantFullControl"; +const _GI = "GranteeIdentifier"; +const _GJT = "GlacierJobTier"; +const _GMD = "GeneratedManifestDescriptor"; +const _GME = "GeneratedManifestEncryption"; +const _GMF = "GeneratedManifestFormat"; +const _GR = "GrantRead"; +const _GRACP = "GrantReadACP"; +const _GS = "GrantScope"; +const _GT = "GranteeType"; +const _GW = "GrantWrite"; +const _GWACP = "GrantWriteACP"; +const _Gr = "Grants"; +const _HED = "HttpExpiresDate"; +const _HR = "HomeRegion"; +const _I = "Include"; +const _IAMRA = "IAMRoleArn"; +const _ICA = "IdentityCenterArn"; +const _ICAA = "IdentityCenterApplicationArn"; +const _ID = "ID"; +const _IE = "IsEnabled"; +const _IP = "IsPublic"; +const _IPA = "IgnorePublicAcls"; +const _ISV = "InvocationSchemaVersion"; +const _Id = "Identifier"; +const _Id_ = "Id"; +const _J = "Job"; +const _JA = "JobArn"; +const _JI = "JobId"; +const _JM = "JobManifest"; +const _JMF = "JobManifestFormat"; +const _JMFN = "JobManifestFieldName"; +const _JMG = "JobManifestGenerator"; +const _JMGF = "JobManifestGeneratorFilter"; +const _JML = "JobManifestLocation"; +const _JMS = "JobManifestSpec"; +const _JO = "JobOperation"; +const _JP = "JobPriority"; +const _JR = "JobReport"; +const _JRF = "JobReportFormat"; +const _JRS = "JobReportScope"; +const _JS = "JobStatuses"; +const _Jo = "Jobs"; +const _K = "Key"; +const _KI = "KeyId"; +const _KKAS = "KmsKeyArnString"; +const _KNC = "KeyNameConstraint"; +const _L = "Location"; +const _LC = "LocationConstraint"; +const _LCi = "LifecycleConfiguration"; +const _LE = "LifecycleExpiration"; +const _LH = "LegalHold"; +const _LI = "LambdaInvoke"; +const _LIO = "LambdaInvokeOperation"; +const _LR = "LifecycleRule"; +const _LRAO = "LifecycleRuleAndOperator"; +const _LRF = "LifecycleRuleFilter"; +const _LS = "LocationScope"; +const _M = "Manifest"; +const _MAP = "MatchAnyPrefix"; +const _MAS = "MatchAnySuffix"; +const _MASC = "MatchAnyStorageClass"; +const _MASa = "MatchAnySubstring"; +const _MAT = "MatchAnyTag"; +const _MD = "MfaDelete"; +const _MDa = "MaxDepth"; +const _MDe = "MetadataDirective"; +const _ME = "ManifestEncryption"; +const _MF = "ManifestFormat"; +const _MFA = "MFA"; +const _MFAD = "MFADelete"; +const _MG = "ManifestGenerator"; +const _MGT = "MatchedGrantTarget"; +const _MLS = "MaxLength1024String"; +const _MOA = "MatchObjectAge"; +const _MOL = "ManifestOutputLocation"; +const _MOS = "MatchObjectSize"; +const _MP = "ManifestPrefix"; +const _MPS = "ManifestPrefixString"; +const _MR = "MaxResults"; +const _MRAPCT = "MultiRegionAccessPointClientToken"; +const _MRAPD = "MultiRegionAccessPointDetails"; +const _MRAPN = "MultiRegionAccessPointName"; +const _MRAPR = "MultiRegionAccessPointRoute"; +const _MS = "MetricsStatus"; +const _MSBP = "MinStorageBytesPercentage"; +const _MSC = "ModifiedSinceConstraint"; +const _Me = "Message"; +const _Met = "Metrics"; +const _Mi = "Minutes"; +const _Mo = "Mode"; +const _Mr = "Mrap"; +const _N = "Name"; +const _ND = "NoncurrentDays"; +const _NEMLS = "NonEmptyMaxLength64String"; +const _NEMLSo = "NonEmptyMaxLength256String"; +const _NEMLSon = "NonEmptyMaxLength1024String"; +const _NEMLSonm = "NonEmptyMaxLength2048String"; +const _NNV = "NewerNoncurrentVersions"; +const _NO = "NetworkOrigin"; +const _NOM = "NewObjectMetadata"; +const _NOT = "NewObjectTagging"; +const _NOTF = "NumberOfTasksFailed"; +const _NOTS = "NumberOfTasksSucceeded"; +const _NT = "NextToken"; +const _NVC = "NoncurrentVersionCount"; +const _NVE = "NoncurrentVersionExpiration"; +const _NVT = "NoncurrentVersionTransitions"; +const _NVTo = "NoncurrentVersionTransition"; +const _O = "Operation"; +const _OA = "ObjectArn"; +const _OAV = "ObjectAgeValue"; +const _OCT = "ObjectCreationTime"; +const _OI = "OutpostId"; +const _OLAF = "ObjectLambdaAllowedFeature"; +const _OLAP = "ObjectLambdaAccessPoint"; +const _OLAPA = "ObjectLambdaAccessPointArn"; +const _OLAPL = "ObjectLambdaAccessPointList"; +const _OLC = "ObjectLambdaConfiguration"; +const _OLCT = "ObjectLambdaContentTransformation"; +const _OLEFB = "ObjectLockEnabledForBucket"; +const _OLLHS = "ObjectLockLegalHoldStatus"; +const _OLM = "ObjectLockMode"; +const _OLP = "ObjectLambdaPolicy"; +const _OLRUD = "ObjectLockRetainUntilDate"; +const _OLSAPA = "ObjectLambdaSupportingAccessPointArn"; +const _OLTC = "ObjectLambdaTransformationConfiguration"; +const _OLTCA = "ObjectLambdaTransformationConfigurationAction"; +const _OO = "OwnerOverride"; +const _ORS = "ObjectReplicationStatuses"; +const _OSGT = "ObjectSizeGreaterThan"; +const _OSGTB = "ObjectSizeGreaterThanBytes"; +const _OSLT = "ObjectSizeLessThan"; +const _OSLTB = "ObjectSizeLessThanBytes"; +const _OSV = "ObjectSizeValue"; +const _OSVu = "OutputSchemaVersion"; +const _OVI = "ObjectVersionId"; +const _Or = "Organization"; +const _Or_ = "Or"; +const _Ow = "Owner"; +const _P = "Permission"; +const _PAB = "PublicAccessBlock"; +const _PABC = "PublicAccessBlockConfiguration"; +const _PABE = "PublicAccessBlockEnabled"; +const _PAGIRPR = "PutAccessGrantsInstanceResourcePolicyRequest"; +const _PAPCFOLR = "PutAccessPointConfigurationForObjectLambdaRequest"; +const _PAPPFOLR = "PutAccessPointPolicyForObjectLambdaRequest"; +const _PAPPR = "PutAccessPointPolicyRequest"; +const _PBPR = "PutBucketPolicyRequest"; +const _PD = "PolicyDocument"; +const _PJTR = "PutJobTaggingRequest"; +const _PL = "PrefixLevel"; +const _PLSM = "PrefixLevelStorageMetrics"; +const _PMRAPPI = "PutMultiRegionAccessPointPolicyInput"; +const _PMRAPPR = "PutMultiRegionAccessPointPolicyRequest"; +const _PS = "PolicyStatus"; +const _PSLCR = "PutStorageLensConfigurationRequest"; +const _PSLCTR = "PutStorageLensConfigurationTaggingRequest"; +const _PSr = "ProgressSummary"; +const _Po = "Policy"; +const _Pr = "Priority"; +const _Pre = "Prefix"; +const _Pri = "Privilege"; +const _Pro = "Proposed"; +const _R = "Report"; +const _RA = "RoleArn"; +const _RB = "RegionalBucket"; +const _RBL = "RegionalBucketList"; +const _RC = "ReplicationConfiguration"; +const _RCe = "RequesterCharged"; +const _RD = "ResponseDetails"; +const _RI = "RequestId"; +const _RJS = "RequestedJobStatus"; +const _RKKID = "ReplicaKmsKeyID"; +const _RL = "RedirectLocation"; +const _RM = "ReplicaModifications"; +const _RMS = "ReplicaModificationsStatus"; +const _RN = "RegionName"; +const _RP = "RequesterPays"; +const _RPB = "RestrictPublicBuckets"; +const _RPS = "ReportPrefixString"; +const _RPe = "RequestParameters"; +const _RR = "ReplicationRule"; +const _RRAO = "ReplicationRuleAndOperator"; +const _RRF = "ReplicationRuleFilter"; +const _RRS = "ReplicationRuleStatus"; +const _RS = "ReportScope"; +const _RSC = "ReplicationStorageClass"; +const _RSe = "ReplicationStatus"; +const _RSeq = "RequestStatus"; +const _RT = "ReplicationTime"; +const _RTARN = "RequestTokenARN"; +const _RTS = "ReplicationTimeStatus"; +const _RTV = "ReplicationTimeValue"; +const _RU = "RouteUpdates"; +const _RUD = "RetainUntilDate"; +const _Re = "Regions"; +const _Reg = "Region"; +const _Res = "Resource"; +const _Ret = "Retention"; +const _Ro = "Routes"; +const _Rol = "Role"; +const _Rou = "Route"; +const _Ru = "Rules"; +const _Rul = "Rule"; +const _S = "Status"; +const _SACL = "S3AccessControlList"; +const _SACP = "S3AccessControlPolicy"; +const _SAK = "SecretAccessKey"; +const _SAP = "SupportingAccessPoint"; +const _SAWSR = "S3AWSRegion"; +const _SB = "SourceBucket"; +const _SBAS = "S3BucketArnString"; +const _SBD = "S3BucketDestination"; +const _SC = "StorageClass"; +const _SCA = "S3ChecksumAlgorithm"; +const _SCACL = "S3CannedAccessControlList"; +const _SCL = "S3ContentLength"; +const _SCOO = "S3CopyObjectOperation"; +const _SCe = "SelectionCriteria"; +const _SCu = "SuspendedCause"; +const _SD = "SuspendedDate"; +const _SDOT = "S3DeleteObjectTagging"; +const _SDOTO = "S3DeleteObjectTaggingOperation"; +const _SEID = "S3ExpirationInDays"; +const _SG = "S3Grant"; +const _SGJT = "S3GlacierJobTier"; +const _SGTI = "S3GranteeTypeIdentifier"; +const _SGr = "S3Grantee"; +const _SIRO = "S3InitiateRestoreObject"; +const _SIROO = "S3InitiateRestoreObjectOperation"; +const _SJMG = "S3JobManifestGenerator"; +const _SK = "SSE-KMS"; +const _SKAS = "S3KeyArnString"; +const _SKEO = "SseKmsEncryptedObjects"; +const _SKEOS = "SseKmsEncryptedObjectsStatus"; +const _SLA = "StorageLensArn"; +const _SLAO = "StorageLensAwsOrg"; +const _SLC = "StorageLensConfiguration"; +const _SLCL = "StorageLensConfigurationList"; +const _SLDE = "StorageLensDataExport"; +const _SLDEE = "StorageLensDataExportEncryption"; +const _SLG = "StorageLensGroup"; +const _SLGA = "StorageLensGroupArn"; +const _SLGAO = "StorageLensGroupAndOperator"; +const _SLGF = "StorageLensGroupFilter"; +const _SLGL = "StorageLensGroupList"; +const _SLGLSC = "StorageLensGroupLevelSelectionCriteria"; +const _SLGLt = "StorageLensGroupLevel"; +const _SLGN = "StorageLensGroupName"; +const _SLGOO = "StorageLensGroupOrOperator"; +const _SLPLD = "StorageLensPrefixLevelDelimiter"; +const _SLPLMD = "StorageLensPrefixLevelMaxDepth"; +const _SLT = "StorageLensTag"; +const _SM = "StorageMetrics"; +const _SMD = "S3MetadataDirective"; +const _SMOL = "S3ManifestOutputLocation"; +const _SMRAPRR = "SubmitMultiRegionAccessPointRoutesRequest"; +const _SOLLH = "S3ObjectLockLegalHold"; +const _SOLLHS = "S3ObjectLockLegalHoldStatus"; +const _SOLM = "S3ObjectLockMode"; +const _SOLRM = "S3ObjectLockRetentionMode"; +const _SOM = "S3ObjectMetadata"; +const _SOO = "S3ObjectOwner"; +const _SOVI = "S3ObjectVersionId"; +const _SP = "S3Prefix"; +const _SPOA = "S3PutObjectAcl"; +const _SPOC = "S3PutObjectCopy"; +const _SPOLH = "S3PutObjectLegalHold"; +const _SPOR = "S3PutObjectRetention"; +const _SPOT = "S3PutObjectTagging"; +const _SPT = "S3PrefixType"; +const _SPe = "S3Permission"; +const _SR = "S3Retention"; +const _SRO = "S3ReplicateObject"; +const _SROO = "S3ReplicateObjectOperation"; +const _SROSEBAS = "S3RegionalOrS3ExpressBucketArnString"; +const _SS = "SSE-S3"; +const _SSC = "SourceSelectionCriteria"; +const _SSCt = "S3StorageClass"; +const _SSEA = "SSEAlgorithm"; +const _SSEAKKI = "SSEAwsKmsKeyId"; +const _SSEKMS = "SSEKMS"; +const _SSEKMSKI = "SSEKMSKeyId"; +const _SSES = "SSES3"; +const _SSOAO = "S3SetObjectAclOperation"; +const _SSOLHO = "S3SetObjectLegalHoldOperation"; +const _SSORO = "S3SetObjectRetentionOperation"; +const _SSOTO = "S3SetObjectTaggingOperation"; +const _SSP = "S3SubPrefix"; +const _SSSEA = "S3SSEAlgorithm"; +const _ST = "S3Tag"; +const _STe = "SessionToken"; +const _SUR = "StatusUpdateReason"; +const _Se = "Setting"; +const _Sp = "Spec"; +const _Su = "Suffix"; +const _T = "Tags"; +const _TC = "TransformationConfigurations"; +const _TCr = "TransformationConfiguration"; +const _TD = "TerminationDate"; +const _TDP = "TrafficDialPercentage"; +const _TI = "TypeIdentifier"; +const _TK = "TagKeys"; +const _TKP = "TargetKeyPrefix"; +const _TKS = "TagKeyString"; +const _TNOT = "TotalNumberOfTasks"; +const _TR = "TargetResource"; +const _TRR = "TagResourceRequest"; +const _TS = "TagSet"; +const _TSC = "TransitionStorageClass"; +const _TSi = "TimeStamp"; +const _TT = "TargetType"; +const _TVS = "TagValueString"; +const _Ta = "Target"; +const _Tag = "Tag"; +const _Tagg = "Tagging"; +const _Ti = "Time"; +const _Tim = "Timers"; +const _Tr = "Transitions"; +const _Tra = "Transition"; +const _UA = "UserArguments"; +const _UAGLR = "UpdateAccessGrantsLocationRequest"; +const _UM = "UserMetadata"; +const _UMSC = "UnModifiedSinceConstraint"; +const _USLGR = "UpdateStorageLensGroupRequest"; +const _V = "Value"; +const _VC = "VpcConfiguration"; +const _VCe = "VersioningConfiguration"; +const _VI = "VpcId"; +const _aa = "application_arn"; +const _b = "bucket"; +const _dS = "durationSeconds"; +const _e = "entry"; +const _g = "granteetype"; +const _gr = "granteeidentifier"; +const _gra = "grantscope"; +const _jS = "jobStatuses"; +const _l = "locationscope"; +const _lo = "location"; +const _m = "member"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _p = "permission"; +const _pr = "privilege"; +const _pri = "priority"; +const _rJS = "requestedJobStatus"; +const _s = "s3prefix"; +const _sUR = "statusUpdateReason"; +const _t = "target"; +const _tK = "tagKeys"; +const _tT = "targetType"; +const _v = "value"; +const _ve = ''; +const _xaa = "x-amz-acl"; +const _xaai = "x-amz-account-id"; +const _xabole = "x-amz-bucket-object-lock-enabled"; +const _xacrsba = "x-amz-confirm-remove-self-bucket-access"; +const _xagfc = "x-amz-grant-full-control"; +const _xagr = "x-amz-grant-read"; +const _xagra = "x-amz-grant-read-acp"; +const _xagw = "x-amz-grant-write"; +const _xagwa = "x-amz-grant-write-acp"; +const _xam = "x-amz-mfa"; +const _xaoi = "x-amz-outpost-id"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index 1bdf6cc49d5e..f65829733674 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -48,6 +48,7 @@ "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-s3/src/models/models_0.ts b/clients/client-s3/src/models/models_0.ts index e3f58c82d9d9..87b1afa64a05 100644 --- a/clients/client-s3/src/models/models_0.ts +++ b/clients/client-s3/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { S3ServiceException as __BaseException } from "./S3ServiceException"; diff --git a/clients/client-s3/src/models/models_1.ts b/clients/client-s3/src/models/models_1.ts index 4e7bd09a2305..dc79c2b1ad48 100644 --- a/clients/client-s3/src/models/models_1.ts +++ b/clients/client-s3/src/models/models_1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { @@ -27,6 +28,7 @@ import { StorageClass, Tag, } from "./models_0"; + import { S3ServiceException as __BaseException } from "./S3ServiceException"; /** diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts index 7abe9099806d..86fbd3624689 100644 --- a/clients/client-s3/src/protocols/Aws_restXml.ts +++ b/clients/client-s3/src/protocols/Aws_restXml.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -451,29 +452,21 @@ export const se_AbortMultipartUploadCommand = async ( input: AbortMultipartUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "AbortMultipartUpload"], - uploadId: [, __expectNonNull(input.UploadId!, `UploadId`)], + [_xi]: [, "AbortMultipartUpload"], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -483,45 +476,37 @@ export const se_CompleteMultipartUploadCommand = async ( input: CompleteMultipartUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-checksum-crc32": input.ChecksumCRC32!, - "x-amz-checksum-crc32c": input.ChecksumCRC32C!, - "x-amz-checksum-sha1": input.ChecksumSHA1!, - "x-amz-checksum-sha256": input.ChecksumSHA256!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xacc]: input[_CCRC]!, + [_xacc_]: input[_CCRCC]!, + [_xacs]: input[_CSHA]!, + [_xacs_]: input[_CSHAh]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "CompleteMultipartUpload"], - uploadId: [, __expectNonNull(input.UploadId!, `UploadId`)], + [_xi]: [, "CompleteMultipartUpload"], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], }); let body: any; let contents: any; if (input.MultipartUpload !== undefined) { contents = se_CompletedMultipartUpload(input.MultipartUpload, context); - contents = contents.withName("CompleteMultipartUpload"); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + contents = contents.n("CompleteMultipartUpload"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -531,81 +516,64 @@ export const se_CopyObjectCommand = async ( input: CopyObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-acl": input.ACL!, - "cache-control": input.CacheControl!, - "x-amz-checksum-algorithm": input.ChecksumAlgorithm!, - "content-disposition": input.ContentDisposition!, - "content-encoding": input.ContentEncoding!, - "content-language": input.ContentLanguage!, - "content-type": input.ContentType!, - "x-amz-copy-source": input.CopySource!, - "x-amz-copy-source-if-match": input.CopySourceIfMatch!, - "x-amz-copy-source-if-modified-since": [ - () => isSerializableHeaderValue(input.CopySourceIfModifiedSince), - () => __dateToUtcString(input.CopySourceIfModifiedSince!).toString(), - ], - "x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch!, - "x-amz-copy-source-if-unmodified-since": [ - () => isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince), - () => __dateToUtcString(input.CopySourceIfUnmodifiedSince!).toString(), - ], - expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires!).toString()], - "x-amz-grant-full-control": input.GrantFullControl!, - "x-amz-grant-read": input.GrantRead!, - "x-amz-grant-read-acp": input.GrantReadACP!, - "x-amz-grant-write-acp": input.GrantWriteACP!, - "x-amz-metadata-directive": input.MetadataDirective!, - "x-amz-tagging-directive": input.TaggingDirective!, - "x-amz-server-side-encryption": input.ServerSideEncryption!, - "x-amz-storage-class": input.StorageClass!, - "x-amz-website-redirect-location": input.WebsiteRedirectLocation!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-server-side-encryption-aws-kms-key-id": input.SSEKMSKeyId!, - "x-amz-server-side-encryption-context": input.SSEKMSEncryptionContext!, - "x-amz-server-side-encryption-bucket-key-enabled": [ - () => isSerializableHeaderValue(input.BucketKeyEnabled), - () => input.BucketKeyEnabled!.toString(), - ], - "x-amz-copy-source-server-side-encryption-customer-algorithm": input.CopySourceSSECustomerAlgorithm!, - "x-amz-copy-source-server-side-encryption-customer-key": input.CopySourceSSECustomerKey!, - "x-amz-copy-source-server-side-encryption-customer-key-md5": input.CopySourceSSECustomerKeyMD5!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-tagging": input.Tagging!, - "x-amz-object-lock-mode": input.ObjectLockMode!, - "x-amz-object-lock-retain-until-date": [ - () => isSerializableHeaderValue(input.ObjectLockRetainUntilDate), - () => (input.ObjectLockRetainUntilDate!.toISOString().split(".")[0] + "Z").toString(), + [_xaa]: input[_ACL]!, + [_cc]: input[_CC]!, + [_xaca]: input[_CA]!, + [_cd]: input[_CD]!, + [_ce]: input[_CE]!, + [_cl]: input[_CL]!, + [_ct]: input[_CT]!, + [_xacs__]: input[_CS]!, + [_xacsim]: input[_CSIM]!, + [_xacsims]: [() => isSerializableHeaderValue(input[_CSIMS]), () => __dateToUtcString(input[_CSIMS]!).toString()], + [_xacsinm]: input[_CSINM]!, + [_xacsius]: [() => isSerializableHeaderValue(input[_CSIUS]), () => __dateToUtcString(input[_CSIUS]!).toString()], + [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagwa]: input[_GWACP]!, + [_xamd]: input[_MD]!, + [_xatd]: input[_TD]!, + [_xasse]: input[_SSE]!, + [_xasc]: input[_SC]!, + [_xawrl]: input[_WRL]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xasseakki]: input[_SSEKMSKI]!, + [_xassec]: input[_SSEKMSEC]!, + [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + [_xacssseca]: input[_CSSSECA]!, + [_xacssseck]: input[_CSSSECK]!, + [_xacssseckm]: input[_CSSSECKMD]!, + [_xarp]: input[_RP]!, + [_xat]: input[_T]!, + [_xaolm]: input[_OLM]!, + [_xaolrud]: [ + () => isSerializableHeaderValue(input[_OLRUD]), + () => (input[_OLRUD]!.toISOString().split(".")[0] + "Z").toString(), ], - "x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-source-expected-bucket-owner": input.ExpectedSourceBucketOwner!, + [_xaollh]: input[_OLLHS]!, + [_xaebo]: input[_EBO]!, + [_xasebo]: input[_ESBO]!, ...(input.Metadata !== undefined && Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; return acc; }, {})), }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "CopyObject"], + [_xi]: [, "CopyObject"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -615,40 +583,30 @@ export const se_CreateBucketCommand = async ( input: CreateBucketCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-acl": input.ACL!, - "x-amz-grant-full-control": input.GrantFullControl!, - "x-amz-grant-read": input.GrantRead!, - "x-amz-grant-read-acp": input.GrantReadACP!, - "x-amz-grant-write": input.GrantWrite!, - "x-amz-grant-write-acp": input.GrantWriteACP!, - "x-amz-bucket-object-lock-enabled": [ - () => isSerializableHeaderValue(input.ObjectLockEnabledForBucket), - () => input.ObjectLockEnabledForBucket!.toString(), - ], - "x-amz-object-ownership": input.ObjectOwnership!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + [_xaa]: input[_ACL]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagw]: input[_GW]!, + [_xagwa]: input[_GWACP]!, + [_xabole]: [() => isSerializableHeaderValue(input[_OLEFB]), () => input[_OLEFB]!.toString()], + [_xaoo]: input[_OO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; let contents: any; if (input.CreateBucketConfiguration !== undefined) { contents = se_CreateBucketConfiguration(input.CreateBucketConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -658,65 +616,54 @@ export const se_CreateMultipartUploadCommand = async ( input: CreateMultipartUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-acl": input.ACL!, - "cache-control": input.CacheControl!, - "content-disposition": input.ContentDisposition!, - "content-encoding": input.ContentEncoding!, - "content-language": input.ContentLanguage!, - "content-type": input.ContentType!, - expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires!).toString()], - "x-amz-grant-full-control": input.GrantFullControl!, - "x-amz-grant-read": input.GrantRead!, - "x-amz-grant-read-acp": input.GrantReadACP!, - "x-amz-grant-write-acp": input.GrantWriteACP!, - "x-amz-server-side-encryption": input.ServerSideEncryption!, - "x-amz-storage-class": input.StorageClass!, - "x-amz-website-redirect-location": input.WebsiteRedirectLocation!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-server-side-encryption-aws-kms-key-id": input.SSEKMSKeyId!, - "x-amz-server-side-encryption-context": input.SSEKMSEncryptionContext!, - "x-amz-server-side-encryption-bucket-key-enabled": [ - () => isSerializableHeaderValue(input.BucketKeyEnabled), - () => input.BucketKeyEnabled!.toString(), - ], - "x-amz-request-payer": input.RequestPayer!, - "x-amz-tagging": input.Tagging!, - "x-amz-object-lock-mode": input.ObjectLockMode!, - "x-amz-object-lock-retain-until-date": [ - () => isSerializableHeaderValue(input.ObjectLockRetainUntilDate), - () => (input.ObjectLockRetainUntilDate!.toISOString().split(".")[0] + "Z").toString(), + [_xaa]: input[_ACL]!, + [_cc]: input[_CC]!, + [_cd]: input[_CD]!, + [_ce]: input[_CE]!, + [_cl]: input[_CL]!, + [_ct]: input[_CT]!, + [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagwa]: input[_GWACP]!, + [_xasse]: input[_SSE]!, + [_xasc]: input[_SC]!, + [_xawrl]: input[_WRL]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xasseakki]: input[_SSEKMSKI]!, + [_xassec]: input[_SSEKMSEC]!, + [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + [_xarp]: input[_RP]!, + [_xat]: input[_T]!, + [_xaolm]: input[_OLM]!, + [_xaolrud]: [ + () => isSerializableHeaderValue(input[_OLRUD]), + () => (input[_OLRUD]!.toISOString().split(".")[0] + "Z").toString(), ], - "x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-checksum-algorithm": input.ChecksumAlgorithm!, + [_xaollh]: input[_OLLHS]!, + [_xaebo]: input[_EBO]!, + [_xaca]: input[_CA]!, ...(input.Metadata !== undefined && Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; return acc; }, {})), }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - uploads: [, ""], - "x-id": [, "CreateMultipartUpload"], + [_u]: [, ""], + [_xi]: [, "CreateMultipartUpload"], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -726,26 +673,18 @@ export const se_CreateSessionCommand = async ( input: CreateSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-create-session-mode": input.SessionMode!, + [_xacsm]: input[_SM]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - session: [, ""], + [_s]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -755,22 +694,15 @@ export const se_DeleteBucketCommand = async ( input: DeleteBucketCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -780,27 +712,19 @@ export const se_DeleteBucketAnalyticsConfigurationCommand = async ( input: DeleteBucketAnalyticsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - analytics: [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_a]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -810,26 +734,18 @@ export const se_DeleteBucketCorsCommand = async ( input: DeleteBucketCorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - cors: [, ""], + [_c]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -839,26 +755,18 @@ export const se_DeleteBucketEncryptionCommand = async ( input: DeleteBucketEncryptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - encryption: [, ""], + [_en]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -868,25 +776,17 @@ export const se_DeleteBucketIntelligentTieringConfigurationCommand = async ( input: DeleteBucketIntelligentTieringConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - "intelligent-tiering": [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_it]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -896,27 +796,19 @@ export const se_DeleteBucketInventoryConfigurationCommand = async ( input: DeleteBucketInventoryConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - inventory: [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_in]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -926,26 +818,18 @@ export const se_DeleteBucketLifecycleCommand = async ( input: DeleteBucketLifecycleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - lifecycle: [, ""], + [_l]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -955,27 +839,19 @@ export const se_DeleteBucketMetricsConfigurationCommand = async ( input: DeleteBucketMetricsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - metrics: [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_m]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -985,26 +861,18 @@ export const se_DeleteBucketOwnershipControlsCommand = async ( input: DeleteBucketOwnershipControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - ownershipControls: [, ""], + [_oC]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1014,26 +882,18 @@ export const se_DeleteBucketPolicyCommand = async ( input: DeleteBucketPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - policy: [, ""], + [_p]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1043,26 +903,18 @@ export const se_DeleteBucketReplicationCommand = async ( input: DeleteBucketReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - replication: [, ""], + [_r]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1072,26 +924,18 @@ export const se_DeleteBucketTaggingCommand = async ( input: DeleteBucketTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - tagging: [, ""], + [_t]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1101,26 +945,18 @@ export const se_DeleteBucketWebsiteCommand = async ( input: DeleteBucketWebsiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - website: [, ""], + [_w]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1130,34 +966,23 @@ export const se_DeleteObjectCommand = async ( input: DeleteObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-mfa": input.MFA!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-bypass-governance-retention": [ - () => isSerializableHeaderValue(input.BypassGovernanceRetention), - () => input.BypassGovernanceRetention!.toString(), - ], - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xam]: input[_MFA]!, + [_xarp]: input[_RP]!, + [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "DeleteObject"], - versionId: [, input.VersionId!], + [_xi]: [, "DeleteObject"], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1167,42 +992,31 @@ export const se_DeleteObjectsCommand = async ( input: DeleteObjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-mfa": input.MFA!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-bypass-governance-retention": [ - () => isSerializableHeaderValue(input.BypassGovernanceRetention), - () => input.BypassGovernanceRetention!.toString(), - ], - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + [_xam]: input[_MFA]!, + [_xarp]: input[_RP]!, + [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], + [_xaebo]: input[_EBO]!, + [_xasca]: input[_CA]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - delete: [, ""], - "x-id": [, "DeleteObjects"], + [_d]: [, ""], + [_xi]: [, "DeleteObjects"], }); let body: any; let contents: any; if (input.Delete !== undefined) { contents = se_Delete(input.Delete, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1212,28 +1026,20 @@ export const se_DeleteObjectTaggingCommand = async ( input: DeleteObjectTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - tagging: [, ""], - versionId: [, input.VersionId!], + [_t]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1243,26 +1049,18 @@ export const se_DeletePublicAccessBlockCommand = async ( input: DeletePublicAccessBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - publicAccessBlock: [, ""], + [_pAB]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1272,27 +1070,19 @@ export const se_GetBucketAccelerateConfigurationCommand = async ( input: GetBucketAccelerateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-request-payer": input.RequestPayer!, + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - accelerate: [, ""], + [_ac]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1302,26 +1092,18 @@ export const se_GetBucketAclCommand = async ( input: GetBucketAclCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - acl: [, ""], + [_acl]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1331,28 +1113,20 @@ export const se_GetBucketAnalyticsConfigurationCommand = async ( input: GetBucketAnalyticsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - analytics: [, ""], - "x-id": [, "GetBucketAnalyticsConfiguration"], - id: [, __expectNonNull(input.Id!, `Id`)], + [_a]: [, ""], + [_xi]: [, "GetBucketAnalyticsConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1362,26 +1136,18 @@ export const se_GetBucketCorsCommand = async ( input: GetBucketCorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - cors: [, ""], + [_c]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1391,26 +1157,18 @@ export const se_GetBucketEncryptionCommand = async ( input: GetBucketEncryptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - encryption: [, ""], + [_en]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1420,26 +1178,18 @@ export const se_GetBucketIntelligentTieringConfigurationCommand = async ( input: GetBucketIntelligentTieringConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - "intelligent-tiering": [, ""], - "x-id": [, "GetBucketIntelligentTieringConfiguration"], - id: [, __expectNonNull(input.Id!, `Id`)], + [_it]: [, ""], + [_xi]: [, "GetBucketIntelligentTieringConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1449,28 +1199,20 @@ export const se_GetBucketInventoryConfigurationCommand = async ( input: GetBucketInventoryConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - inventory: [, ""], - "x-id": [, "GetBucketInventoryConfiguration"], - id: [, __expectNonNull(input.Id!, `Id`)], + [_in]: [, ""], + [_xi]: [, "GetBucketInventoryConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1480,26 +1222,18 @@ export const se_GetBucketLifecycleConfigurationCommand = async ( input: GetBucketLifecycleConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - lifecycle: [, ""], + [_l]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1509,26 +1243,18 @@ export const se_GetBucketLocationCommand = async ( input: GetBucketLocationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - location: [, ""], + [_lo]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1538,26 +1264,18 @@ export const se_GetBucketLoggingCommand = async ( input: GetBucketLoggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - logging: [, ""], + [_log]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1567,28 +1285,20 @@ export const se_GetBucketMetricsConfigurationCommand = async ( input: GetBucketMetricsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - metrics: [, ""], - "x-id": [, "GetBucketMetricsConfiguration"], - id: [, __expectNonNull(input.Id!, `Id`)], + [_m]: [, ""], + [_xi]: [, "GetBucketMetricsConfiguration"], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1598,26 +1308,18 @@ export const se_GetBucketNotificationConfigurationCommand = async ( input: GetBucketNotificationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - notification: [, ""], + [_n]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1627,26 +1329,18 @@ export const se_GetBucketOwnershipControlsCommand = async ( input: GetBucketOwnershipControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - ownershipControls: [, ""], + [_oC]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1656,26 +1350,18 @@ export const se_GetBucketPolicyCommand = async ( input: GetBucketPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - policy: [, ""], + [_p]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1685,26 +1371,18 @@ export const se_GetBucketPolicyStatusCommand = async ( input: GetBucketPolicyStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - policyStatus: [, ""], + [_pS]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1714,26 +1392,18 @@ export const se_GetBucketReplicationCommand = async ( input: GetBucketReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - replication: [, ""], + [_r]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1743,26 +1413,18 @@ export const se_GetBucketRequestPaymentCommand = async ( input: GetBucketRequestPaymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - requestPayment: [, ""], + [_rP]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1772,26 +1434,18 @@ export const se_GetBucketTaggingCommand = async ( input: GetBucketTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - tagging: [, ""], + [_t]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1801,26 +1455,18 @@ export const se_GetBucketVersioningCommand = async ( input: GetBucketVersioningCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - versioning: [, ""], + [_v]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1830,26 +1476,18 @@ export const se_GetBucketWebsiteCommand = async ( input: GetBucketWebsiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - website: [, ""], + [_w]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1859,54 +1497,37 @@ export const se_GetObjectCommand = async ( input: GetObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, - "if-modified-since": [ - () => isSerializableHeaderValue(input.IfModifiedSince), - () => __dateToUtcString(input.IfModifiedSince!).toString(), - ], - "if-none-match": input.IfNoneMatch!, - "if-unmodified-since": [ - () => isSerializableHeaderValue(input.IfUnmodifiedSince), - () => __dateToUtcString(input.IfUnmodifiedSince!).toString(), - ], - range: input.Range!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-checksum-mode": input.ChecksumMode!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_im]: input[_IM]!, + [_ims]: [() => isSerializableHeaderValue(input[_IMS]), () => __dateToUtcString(input[_IMS]!).toString()], + [_inm]: input[_INM]!, + [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]!).toString()], + [_ra]: input[_R]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xacm]: input[_CM]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "GetObject"], - "response-cache-control": [, input.ResponseCacheControl!], - "response-content-disposition": [, input.ResponseContentDisposition!], - "response-content-encoding": [, input.ResponseContentEncoding!], - "response-content-language": [, input.ResponseContentLanguage!], - "response-content-type": [, input.ResponseContentType!], - "response-expires": [ - () => input.ResponseExpires !== void 0, - () => __dateToUtcString(input.ResponseExpires!).toString(), - ], - versionId: [, input.VersionId!], - partNumber: [() => input.PartNumber !== void 0, () => input.PartNumber!.toString()], + [_xi]: [, "GetObject"], + [_rcc]: [, input[_RCC]!], + [_rcd]: [, input[_RCD]!], + [_rce]: [, input[_RCE]!], + [_rcl]: [, input[_RCL]!], + [_rct]: [, input[_RCT]!], + [_re]: [() => input.ResponseExpires !== void 0, () => __dateToUtcString(input[_RE]!).toString()], + [_vI]: [, input[_VI]!], + [_pN]: [() => input.PartNumber !== void 0, () => input[_PN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1916,29 +1537,21 @@ export const se_GetObjectAclCommand = async ( input: GetObjectAclCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - acl: [, ""], - versionId: [, input.VersionId!], + [_acl]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1948,38 +1561,30 @@ export const se_GetObjectAttributesCommand = async ( input: GetObjectAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-max-parts": [() => isSerializableHeaderValue(input.MaxParts), () => input.MaxParts!.toString()], - "x-amz-part-number-marker": input.PartNumberMarker!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-object-attributes": [ - () => isSerializableHeaderValue(input.ObjectAttributes), - () => (input.ObjectAttributes! || []).map((_entry) => _entry as any).join(", "), + [_xamp]: [() => isSerializableHeaderValue(input[_MP]), () => input[_MP]!.toString()], + [_xapnm]: input[_PNM]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xaoa]: [ + () => isSerializableHeaderValue(input[_OA]), + () => (input[_OA]! || []).map((_entry) => _entry as any).join(", "), ], }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - attributes: [, ""], - versionId: [, input.VersionId!], + [_at]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1989,29 +1594,21 @@ export const se_GetObjectLegalHoldCommand = async ( input: GetObjectLegalHoldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "legal-hold": [, ""], - versionId: [, input.VersionId!], + [_lh]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2021,26 +1618,18 @@ export const se_GetObjectLockConfigurationCommand = async ( input: GetObjectLockConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - "object-lock": [, ""], + [_ol]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2050,29 +1639,21 @@ export const se_GetObjectRetentionCommand = async ( input: GetObjectRetentionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - retention: [, ""], - versionId: [, input.VersionId!], + [_ret]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2082,29 +1663,21 @@ export const se_GetObjectTaggingCommand = async ( input: GetObjectTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-request-payer": input.RequestPayer!, + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - tagging: [, ""], - versionId: [, input.VersionId!], + [_t]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2114,28 +1687,20 @@ export const se_GetObjectTorrentCommand = async ( input: GetObjectTorrentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - torrent: [, ""], + [_to]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2145,26 +1710,18 @@ export const se_GetPublicAccessBlockCommand = async ( input: GetPublicAccessBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - publicAccessBlock: [, ""], + [_pAB]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2174,22 +1731,15 @@ export const se_HeadBucketCommand = async ( input: HeadBucketCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "HEAD", - headers, - path: resolvedPath, - body, - }); + b.m("HEAD").h(headers).b(body); + return b.build(); }; /** @@ -2199,44 +1749,30 @@ export const se_HeadObjectCommand = async ( input: HeadObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "if-match": input.IfMatch!, - "if-modified-since": [ - () => isSerializableHeaderValue(input.IfModifiedSince), - () => __dateToUtcString(input.IfModifiedSince!).toString(), - ], - "if-none-match": input.IfNoneMatch!, - "if-unmodified-since": [ - () => isSerializableHeaderValue(input.IfUnmodifiedSince), - () => __dateToUtcString(input.IfUnmodifiedSince!).toString(), - ], - range: input.Range!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-checksum-mode": input.ChecksumMode!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_im]: input[_IM]!, + [_ims]: [() => isSerializableHeaderValue(input[_IMS]), () => __dateToUtcString(input[_IMS]!).toString()], + [_inm]: input[_INM]!, + [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]!).toString()], + [_ra]: input[_R]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xacm]: input[_CM]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - versionId: [, input.VersionId!], - partNumber: [() => input.PartNumber !== void 0, () => input.PartNumber!.toString()], + [_vI]: [, input[_VI]!], + [_pN]: [() => input.PartNumber !== void 0, () => input[_PN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "HEAD", - headers, - path: resolvedPath, - query, - body, - }); + b.m("HEAD").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2246,28 +1782,20 @@ export const se_ListBucketAnalyticsConfigurationsCommand = async ( input: ListBucketAnalyticsConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - analytics: [, ""], - "x-id": [, "ListBucketAnalyticsConfigurations"], - "continuation-token": [, input.ContinuationToken!], + [_a]: [, ""], + [_xi]: [, "ListBucketAnalyticsConfigurations"], + [_ct_]: [, input[_CTo]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2277,26 +1805,18 @@ export const se_ListBucketIntelligentTieringConfigurationsCommand = async ( input: ListBucketIntelligentTieringConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - "intelligent-tiering": [, ""], - "x-id": [, "ListBucketIntelligentTieringConfigurations"], - "continuation-token": [, input.ContinuationToken!], + [_it]: [, ""], + [_xi]: [, "ListBucketIntelligentTieringConfigurations"], + [_ct_]: [, input[_CTo]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2306,28 +1826,20 @@ export const se_ListBucketInventoryConfigurationsCommand = async ( input: ListBucketInventoryConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - inventory: [, ""], - "x-id": [, "ListBucketInventoryConfigurations"], - "continuation-token": [, input.ContinuationToken!], + [_in]: [, ""], + [_xi]: [, "ListBucketInventoryConfigurations"], + [_ct_]: [, input[_CTo]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2337,28 +1849,20 @@ export const se_ListBucketMetricsConfigurationsCommand = async ( input: ListBucketMetricsConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - metrics: [, ""], - "x-id": [, "ListBucketMetricsConfigurations"], - "continuation-token": [, input.ContinuationToken!], + [_m]: [, ""], + [_xi]: [, "ListBucketMetricsConfigurations"], + [_ct_]: [, input[_CTo]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2368,26 +1872,18 @@ export const se_ListBucketsCommand = async ( input: ListBucketsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; + b.bp("/"); const query: any = map({ - "x-id": [, "ListBuckets"], + [_xi]: [, "ListBuckets"], }); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2397,25 +1893,17 @@ export const se_ListDirectoryBucketsCommand = async ( input: ListDirectoryBucketsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; + b.bp("/"); const query: any = map({ - "x-id": [, "ListDirectoryBuckets"], - "continuation-token": [, input.ContinuationToken!], - "max-directory-buckets": [() => input.MaxDirectoryBuckets !== void 0, () => input.MaxDirectoryBuckets!.toString()], + [_xi]: [, "ListDirectoryBuckets"], + [_ct_]: [, input[_CTo]!], + [_mdb]: [() => input.MaxDirectoryBuckets !== void 0, () => input[_MDB]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2425,33 +1913,25 @@ export const se_ListMultipartUploadsCommand = async ( input: ListMultipartUploadsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-request-payer": input.RequestPayer!, + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - uploads: [, ""], - delimiter: [, input.Delimiter!], - "encoding-type": [, input.EncodingType!], - "key-marker": [, input.KeyMarker!], - "max-uploads": [() => input.MaxUploads !== void 0, () => input.MaxUploads!.toString()], - prefix: [, input.Prefix!], - "upload-id-marker": [, input.UploadIdMarker!], + [_u]: [, ""], + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_km]: [, input[_KM]!], + [_mu]: [() => input.MaxUploads !== void 0, () => input[_MU]!.toString()], + [_pr]: [, input[_P]!], + [_uim]: [, input[_UIM]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2461,35 +1941,27 @@ export const se_ListObjectsCommand = async ( input: ListObjectsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-optional-object-attributes": [ - () => isSerializableHeaderValue(input.OptionalObjectAttributes), - () => (input.OptionalObjectAttributes! || []).map((_entry) => _entry as any).join(", "), + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xaooa]: [ + () => isSerializableHeaderValue(input[_OOA]), + () => (input[_OOA]! || []).map((_entry) => _entry as any).join(", "), ], }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - delimiter: [, input.Delimiter!], - "encoding-type": [, input.EncodingType!], - marker: [, input.Marker!], - "max-keys": [() => input.MaxKeys !== void 0, () => input.MaxKeys!.toString()], - prefix: [, input.Prefix!], + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_ma]: [, input[_M]!], + [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], + [_pr]: [, input[_P]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2499,38 +1971,30 @@ export const se_ListObjectsV2Command = async ( input: ListObjectsV2CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-optional-object-attributes": [ - () => isSerializableHeaderValue(input.OptionalObjectAttributes), - () => (input.OptionalObjectAttributes! || []).map((_entry) => _entry as any).join(", "), + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xaooa]: [ + () => isSerializableHeaderValue(input[_OOA]), + () => (input[_OOA]! || []).map((_entry) => _entry as any).join(", "), ], }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - "list-type": [, "2"], - delimiter: [, input.Delimiter!], - "encoding-type": [, input.EncodingType!], - "max-keys": [() => input.MaxKeys !== void 0, () => input.MaxKeys!.toString()], - prefix: [, input.Prefix!], - "continuation-token": [, input.ContinuationToken!], - "fetch-owner": [() => input.FetchOwner !== void 0, () => input.FetchOwner!.toString()], - "start-after": [, input.StartAfter!], + [_lt]: [, "2"], + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], + [_pr]: [, input[_P]!], + [_ct_]: [, input[_CTo]!], + [_fo]: [() => input.FetchOwner !== void 0, () => input[_FO]!.toString()], + [_sa]: [, input[_SA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2540,37 +2004,29 @@ export const se_ListObjectVersionsCommand = async ( input: ListObjectVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-optional-object-attributes": [ - () => isSerializableHeaderValue(input.OptionalObjectAttributes), - () => (input.OptionalObjectAttributes! || []).map((_entry) => _entry as any).join(", "), + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, + [_xaooa]: [ + () => isSerializableHeaderValue(input[_OOA]), + () => (input[_OOA]! || []).map((_entry) => _entry as any).join(", "), ], }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - versions: [, ""], - delimiter: [, input.Delimiter!], - "encoding-type": [, input.EncodingType!], - "key-marker": [, input.KeyMarker!], - "max-keys": [() => input.MaxKeys !== void 0, () => input.MaxKeys!.toString()], - prefix: [, input.Prefix!], - "version-id-marker": [, input.VersionIdMarker!], + [_ver]: [, ""], + [_de]: [, input[_D]!], + [_et]: [, input[_ET]!], + [_km]: [, input[_KM]!], + [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK]!.toString()], + [_pr]: [, input[_P]!], + [_vim]: [, input[_VIM]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2580,34 +2036,26 @@ export const se_ListPartsCommand = async ( input: ListPartsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "ListParts"], - "max-parts": [() => input.MaxParts !== void 0, () => input.MaxParts!.toString()], - "part-number-marker": [, input.PartNumberMarker!], - uploadId: [, __expectNonNull(input.UploadId!, `UploadId`)], + [_xi]: [, "ListParts"], + [_mp]: [() => input.MaxParts !== void 0, () => input[_MP]!.toString()], + [_pnm]: [, input[_PNM]!], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2617,35 +2065,27 @@ export const se_PutBucketAccelerateConfigurationCommand = async ( input: PutBucketAccelerateConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, + [_xaebo]: input[_EBO]!, + [_xasca]: input[_CA]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - accelerate: [, ""], + [_ac]: [, ""], }); let body: any; let contents: any; if (input.AccelerateConfiguration !== undefined) { contents = se_AccelerateConfiguration(input.AccelerateConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2655,42 +2095,34 @@ export const se_PutBucketAclCommand = async ( input: PutBucketAclCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-acl": input.ACL!, - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-grant-full-control": input.GrantFullControl!, - "x-amz-grant-read": input.GrantRead!, - "x-amz-grant-read-acp": input.GrantReadACP!, - "x-amz-grant-write": input.GrantWrite!, - "x-amz-grant-write-acp": input.GrantWriteACP!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + [_xaa]: input[_ACL]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagw]: input[_GW]!, + [_xagwa]: input[_GWACP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - acl: [, ""], + [_acl]: [, ""], }); let body: any; let contents: any; if (input.AccessControlPolicy !== undefined) { contents = se_AccessControlPolicy(input.AccessControlPolicy, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2700,35 +2132,27 @@ export const se_PutBucketAnalyticsConfigurationCommand = async ( input: PutBucketAnalyticsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - analytics: [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_a]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; let contents: any; if (input.AnalyticsConfiguration !== undefined) { contents = se_AnalyticsConfiguration(input.AnalyticsConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2738,36 +2162,28 @@ export const se_PutBucketCorsCommand = async ( input: PutBucketCorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - cors: [, ""], + [_c]: [, ""], }); let body: any; let contents: any; if (input.CORSConfiguration !== undefined) { contents = se_CORSConfiguration(input.CORSConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2777,36 +2193,28 @@ export const se_PutBucketEncryptionCommand = async ( input: PutBucketEncryptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - encryption: [, ""], + [_en]: [, ""], }); let body: any; let contents: any; if (input.ServerSideEncryptionConfiguration !== undefined) { contents = se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2816,34 +2224,26 @@ export const se_PutBucketIntelligentTieringConfigurationCommand = async ( input: PutBucketIntelligentTieringConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - "intelligent-tiering": [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_it]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; let contents: any; if (input.IntelligentTieringConfiguration !== undefined) { contents = se_IntelligentTieringConfiguration(input.IntelligentTieringConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2853,35 +2253,27 @@ export const se_PutBucketInventoryConfigurationCommand = async ( input: PutBucketInventoryConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - inventory: [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_in]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; let contents: any; if (input.InventoryConfiguration !== undefined) { contents = se_InventoryConfiguration(input.InventoryConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2891,36 +2283,28 @@ export const se_PutBucketLifecycleConfigurationCommand = async ( input: PutBucketLifecycleConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - lifecycle: [, ""], + [_l]: [, ""], }); let body: any; let contents: any; if (input.LifecycleConfiguration !== undefined) { contents = se_BucketLifecycleConfiguration(input.LifecycleConfiguration, context); - contents = contents.withName("LifecycleConfiguration"); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + contents = contents.n("LifecycleConfiguration"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2930,36 +2314,28 @@ export const se_PutBucketLoggingCommand = async ( input: PutBucketLoggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - logging: [, ""], + [_log]: [, ""], }); let body: any; let contents: any; if (input.BucketLoggingStatus !== undefined) { contents = se_BucketLoggingStatus(input.BucketLoggingStatus, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2969,35 +2345,27 @@ export const se_PutBucketMetricsConfigurationCommand = async ( input: PutBucketMetricsConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - metrics: [, ""], - id: [, __expectNonNull(input.Id!, `Id`)], + [_m]: [, ""], + [_i]: [, __expectNonNull(input[_I]!, `Id`)], }); let body: any; let contents: any; if (input.MetricsConfiguration !== undefined) { contents = se_MetricsConfiguration(input.MetricsConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3007,38 +2375,27 @@ export const se_PutBucketNotificationConfigurationCommand = async ( input: PutBucketNotificationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-skip-destination-validation": [ - () => isSerializableHeaderValue(input.SkipDestinationValidation), - () => input.SkipDestinationValidation!.toString(), - ], + [_xaebo]: input[_EBO]!, + [_xasdv]: [() => isSerializableHeaderValue(input[_SDV]), () => input[_SDV]!.toString()], }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - notification: [, ""], + [_n]: [, ""], }); let body: any; let contents: any; if (input.NotificationConfiguration !== undefined) { contents = se_NotificationConfiguration(input.NotificationConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3048,35 +2405,27 @@ export const se_PutBucketOwnershipControlsCommand = async ( input: PutBucketOwnershipControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - ownershipControls: [, ""], + [_oC]: [, ""], }); let body: any; let contents: any; if (input.OwnershipControls !== undefined) { contents = se_OwnershipControls(input.OwnershipControls, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3086,21 +2435,18 @@ export const se_PutBucketPolicyCommand = async ( input: PutBucketPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "text/plain", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-confirm-remove-self-bucket-access": [ - () => isSerializableHeaderValue(input.ConfirmRemoveSelfBucketAccess), - () => input.ConfirmRemoveSelfBucketAccess!.toString(), - ], - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xacrsba]: [() => isSerializableHeaderValue(input[_CRSBA]), () => input[_CRSBA]!.toString()], + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - policy: [, ""], + [_p]: [, ""], }); let body: any; let contents: any; @@ -3108,16 +2454,8 @@ export const se_PutBucketPolicyCommand = async ( contents = input.Policy; body = contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3127,37 +2465,29 @@ export const se_PutBucketReplicationCommand = async ( input: PutBucketReplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-bucket-object-lock-token": input.Token!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xabolt]: input[_To]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - replication: [, ""], + [_r]: [, ""], }); let body: any; let contents: any; if (input.ReplicationConfiguration !== undefined) { contents = se_ReplicationConfiguration(input.ReplicationConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3167,36 +2497,28 @@ export const se_PutBucketRequestPaymentCommand = async ( input: PutBucketRequestPaymentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - requestPayment: [, ""], + [_rP]: [, ""], }); let body: any; let contents: any; if (input.RequestPaymentConfiguration !== undefined) { contents = se_RequestPaymentConfiguration(input.RequestPaymentConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3206,36 +2528,28 @@ export const se_PutBucketTaggingCommand = async ( input: PutBucketTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - tagging: [, ""], + [_t]: [, ""], }); let body: any; let contents: any; if (input.Tagging !== undefined) { contents = se_Tagging(input.Tagging, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3245,37 +2559,29 @@ export const se_PutBucketVersioningCommand = async ( input: PutBucketVersioningCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-mfa": input.MFA!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xam]: input[_MFA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - versioning: [, ""], + [_v]: [, ""], }); let body: any; let contents: any; if (input.VersioningConfiguration !== undefined) { contents = se_VersioningConfiguration(input.VersioningConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3285,36 +2591,28 @@ export const se_PutBucketWebsiteCommand = async ( input: PutBucketWebsiteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - website: [, ""], + [_w]: [, ""], }); let body: any; let contents: any; if (input.WebsiteConfiguration !== undefined) { contents = se_WebsiteConfiguration(input.WebsiteConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3324,58 +2622,55 @@ export const se_PutObjectCommand = async ( input: PutObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.ContentType! || "application/octet-stream", - "x-amz-acl": input.ACL!, - "cache-control": input.CacheControl!, - "content-disposition": input.ContentDisposition!, - "content-encoding": input.ContentEncoding!, - "content-language": input.ContentLanguage!, - "content-length": [() => isSerializableHeaderValue(input.ContentLength), () => input.ContentLength!.toString()], - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-checksum-crc32": input.ChecksumCRC32!, - "x-amz-checksum-crc32c": input.ChecksumCRC32C!, - "x-amz-checksum-sha1": input.ChecksumSHA1!, - "x-amz-checksum-sha256": input.ChecksumSHA256!, - expires: [() => isSerializableHeaderValue(input.Expires), () => __dateToUtcString(input.Expires!).toString()], - "x-amz-grant-full-control": input.GrantFullControl!, - "x-amz-grant-read": input.GrantRead!, - "x-amz-grant-read-acp": input.GrantReadACP!, - "x-amz-grant-write-acp": input.GrantWriteACP!, - "x-amz-server-side-encryption": input.ServerSideEncryption!, - "x-amz-storage-class": input.StorageClass!, - "x-amz-website-redirect-location": input.WebsiteRedirectLocation!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-server-side-encryption-aws-kms-key-id": input.SSEKMSKeyId!, - "x-amz-server-side-encryption-context": input.SSEKMSEncryptionContext!, - "x-amz-server-side-encryption-bucket-key-enabled": [ - () => isSerializableHeaderValue(input.BucketKeyEnabled), - () => input.BucketKeyEnabled!.toString(), + [_ct]: input[_CT]! || "application/octet-stream", + [_xaa]: input[_ACL]!, + [_cc]: input[_CC]!, + [_cd]: input[_CD]!, + [_ce]: input[_CE]!, + [_cl]: input[_CL]!, + [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xacc]: input[_CCRC]!, + [_xacc_]: input[_CCRCC]!, + [_xacs]: input[_CSHA]!, + [_xacs_]: input[_CSHAh]!, + [_e]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagwa]: input[_GWACP]!, + [_xasse]: input[_SSE]!, + [_xasc]: input[_SC]!, + [_xawrl]: input[_WRL]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xasseakki]: input[_SSEKMSKI]!, + [_xassec]: input[_SSEKMSEC]!, + [_xassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], + [_xarp]: input[_RP]!, + [_xat]: input[_T]!, + [_xaolm]: input[_OLM]!, + [_xaolrud]: [ + () => isSerializableHeaderValue(input[_OLRUD]), + () => (input[_OLRUD]!.toISOString().split(".")[0] + "Z").toString(), ], - "x-amz-request-payer": input.RequestPayer!, - "x-amz-tagging": input.Tagging!, - "x-amz-object-lock-mode": input.ObjectLockMode!, - "x-amz-object-lock-retain-until-date": [ - () => isSerializableHeaderValue(input.ObjectLockRetainUntilDate), - () => (input.ObjectLockRetainUntilDate!.toISOString().split(".")[0] + "Z").toString(), - ], - "x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xaollh]: input[_OLLHS]!, + [_xaebo]: input[_EBO]!, ...(input.Metadata !== undefined && Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; return acc; }, {})), }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "PutObject"], + [_xi]: [, "PutObject"], }); let body: any; let contents: any; @@ -3383,16 +2678,8 @@ export const se_PutObjectCommand = async ( contents = input.Body; body = contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3402,45 +2689,37 @@ export const se_PutObjectAclCommand = async ( input: PutObjectAclCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-acl": input.ACL!, - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-grant-full-control": input.GrantFullControl!, - "x-amz-grant-read": input.GrantRead!, - "x-amz-grant-read-acp": input.GrantReadACP!, - "x-amz-grant-write": input.GrantWrite!, - "x-amz-grant-write-acp": input.GrantWriteACP!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xaa]: input[_ACL]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xagfc]: input[_GFC]!, + [_xagr]: input[_GR]!, + [_xagra]: input[_GRACP]!, + [_xagw]: input[_GW]!, + [_xagwa]: input[_GWACP]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - acl: [, ""], - versionId: [, input.VersionId!], + [_acl]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; let contents: any; if (input.AccessControlPolicy !== undefined) { contents = se_AccessControlPolicy(input.AccessControlPolicy, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3450,40 +2729,32 @@ export const se_PutObjectLegalHoldCommand = async ( input: PutObjectLegalHoldCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-request-payer": input.RequestPayer!, - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xarp]: input[_RP]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "legal-hold": [, ""], - versionId: [, input.VersionId!], + [_lh]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; let contents: any; if (input.LegalHold !== undefined) { contents = se_ObjectLockLegalHold(input.LegalHold, context); - contents = contents.withName("LegalHold"); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + contents = contents.n("LegalHold"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3493,38 +2764,30 @@ export const se_PutObjectLockConfigurationCommand = async ( input: PutObjectLockConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-request-payer": input.RequestPayer!, - "x-amz-bucket-object-lock-token": input.Token!, - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + [_xarp]: input[_RP]!, + [_xabolt]: input[_To]!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - "object-lock": [, ""], + [_ol]: [, ""], }); let body: any; let contents: any; if (input.ObjectLockConfiguration !== undefined) { contents = se_ObjectLockConfiguration(input.ObjectLockConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3534,44 +2797,33 @@ export const se_PutObjectRetentionCommand = async ( input: PutObjectRetentionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-request-payer": input.RequestPayer!, - "x-amz-bypass-governance-retention": [ - () => isSerializableHeaderValue(input.BypassGovernanceRetention), - () => input.BypassGovernanceRetention!.toString(), - ], - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xarp]: input[_RP]!, + [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR]!.toString()], + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - retention: [, ""], - versionId: [, input.VersionId!], + [_ret]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; let contents: any; if (input.Retention !== undefined) { contents = se_ObjectLockRetention(input.Retention, context); - contents = contents.withName("Retention"); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + contents = contents.n("Retention"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3581,39 +2833,31 @@ export const se_PutObjectTaggingCommand = async ( input: PutObjectTaggingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-request-payer": input.RequestPayer!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, + [_xarp]: input[_RP]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - tagging: [, ""], - versionId: [, input.VersionId!], + [_t]: [, ""], + [_vI]: [, input[_VI]!], }); let body: any; let contents: any; if (input.Tagging !== undefined) { contents = se_Tagging(input.Tagging, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3623,36 +2867,28 @@ export const se_PutPublicAccessBlockCommand = async ( input: PutPublicAccessBlockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); const query: any = map({ - publicAccessBlock: [, ""], + [_pAB]: [, ""], }); let body: any; let contents: any; if (input.PublicAccessBlockConfiguration !== undefined) { contents = se_PublicAccessBlockConfiguration(input.PublicAccessBlockConfiguration, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3662,39 +2898,31 @@ export const se_RestoreObjectCommand = async ( input: RestoreObjectCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-request-payer": input.RequestPayer!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, + [_xarp]: input[_RP]!, + [_xasca]: input[_CA]!, + [_xaebo]: input[_EBO]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - restore: [, ""], - "x-id": [, "RestoreObject"], - versionId: [, input.VersionId!], + [_res]: [, ""], + [_xi]: [, "RestoreObject"], + [_vI]: [, input[_VI]!], }); let body: any; let contents: any; if (input.RestoreRequest !== undefined) { contents = se_RestoreRequest(input.RestoreRequest, context); - body = ''; - contents.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + body = _ve; + contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3704,61 +2932,43 @@ export const se_SelectObjectContentCommand = async ( input: SelectObjectContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - select: [, ""], - "select-type": [, "2"], - "x-id": [, "SelectObjectContent"], + [_se]: [, ""], + [_st]: [, "2"], + [_xi]: [, "SelectObjectContent"], }); let body: any; - body = ''; - const bodyNode = new __XmlNode("SelectObjectContentRequest"); - bodyNode.addAttribute("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); - if (input.Expression !== undefined) { - const node = __XmlNode.of("Expression", input.Expression).withName("Expression"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_SOCR); + bn.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + bn.cc(input, _Ex); + bn.cc(input, _ETx); + if (input[_IS] != null) { + bn.c(se_InputSerialization(input[_IS], context).n(_IS)); } - if (input.ExpressionType !== undefined) { - const node = __XmlNode.of("ExpressionType", input.ExpressionType).withName("ExpressionType"); - bodyNode.addChildNode(node); + if (input[_OS] != null) { + bn.c(se_OutputSerialization(input[_OS], context).n(_OS)); } - if (input.InputSerialization !== undefined) { - const node = se_InputSerialization(input.InputSerialization, context).withName("InputSerialization"); - bodyNode.addChildNode(node); + if (input[_RPe] != null) { + bn.c(se_RequestProgress(input[_RPe], context).n(_RPe)); } - if (input.OutputSerialization !== undefined) { - const node = se_OutputSerialization(input.OutputSerialization, context).withName("OutputSerialization"); - bodyNode.addChildNode(node); + if (input[_SR] != null) { + bn.c(se_ScanRange(input[_SR], context).n(_SR)); } - if (input.RequestProgress !== undefined) { - const node = se_RequestProgress(input.RequestProgress, context).withName("RequestProgress"); - bodyNode.addChildNode(node); - } - if (input.ScanRange !== undefined) { - const node = se_ScanRange(input.ScanRange, context).withName("ScanRange"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3768,29 +2978,29 @@ export const se_UploadPartCommand = async ( input: UploadPartCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "content-length": [() => isSerializableHeaderValue(input.ContentLength), () => input.ContentLength!.toString()], - "content-md5": input.ContentMD5!, - "x-amz-sdk-checksum-algorithm": input.ChecksumAlgorithm!, - "x-amz-checksum-crc32": input.ChecksumCRC32!, - "x-amz-checksum-crc32c": input.ChecksumCRC32C!, - "x-amz-checksum-sha1": input.ChecksumSHA1!, - "x-amz-checksum-sha256": input.ChecksumSHA256!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], + [_cm]: input[_CMD]!, + [_xasca]: input[_CA]!, + [_xacc]: input[_CCRC]!, + [_xacc_]: input[_CCRCC]!, + [_xacs]: input[_CSHA]!, + [_xacs_]: input[_CSHAh]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "UploadPart"], - partNumber: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input.PartNumber!.toString()], - uploadId: [, __expectNonNull(input.UploadId!, `UploadId`)], + [_xi]: [, "UploadPart"], + [_pN]: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input[_PN]!.toString()], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], }); let body: any; let contents: any; @@ -3798,16 +3008,8 @@ export const se_UploadPartCommand = async ( contents = input.Body; body = contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3817,49 +3019,35 @@ export const se_UploadPartCopyCommand = async ( input: UploadPartCopyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-copy-source": input.CopySource!, - "x-amz-copy-source-if-match": input.CopySourceIfMatch!, - "x-amz-copy-source-if-modified-since": [ - () => isSerializableHeaderValue(input.CopySourceIfModifiedSince), - () => __dateToUtcString(input.CopySourceIfModifiedSince!).toString(), - ], - "x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch!, - "x-amz-copy-source-if-unmodified-since": [ - () => isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince), - () => __dateToUtcString(input.CopySourceIfUnmodifiedSince!).toString(), - ], - "x-amz-copy-source-range": input.CopySourceRange!, - "x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-server-side-encryption-customer-key": input.SSECustomerKey!, - "x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-copy-source-server-side-encryption-customer-algorithm": input.CopySourceSSECustomerAlgorithm!, - "x-amz-copy-source-server-side-encryption-customer-key": input.CopySourceSSECustomerKey!, - "x-amz-copy-source-server-side-encryption-customer-key-md5": input.CopySourceSSECustomerKeyMD5!, - "x-amz-request-payer": input.RequestPayer!, - "x-amz-expected-bucket-owner": input.ExpectedBucketOwner!, - "x-amz-source-expected-bucket-owner": input.ExpectedSourceBucketOwner!, - }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{Key+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket!, "{Bucket}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key!, "{Key+}", true); + [_xacs__]: input[_CS]!, + [_xacsim]: input[_CSIM]!, + [_xacsims]: [() => isSerializableHeaderValue(input[_CSIMS]), () => __dateToUtcString(input[_CSIMS]!).toString()], + [_xacsinm]: input[_CSINM]!, + [_xacsius]: [() => isSerializableHeaderValue(input[_CSIUS]), () => __dateToUtcString(input[_CSIUS]!).toString()], + [_xacsr]: input[_CSR]!, + [_xasseca]: input[_SSECA]!, + [_xasseck]: input[_SSECK]!, + [_xasseckm]: input[_SSECKMD]!, + [_xacssseca]: input[_CSSSECA]!, + [_xacssseck]: input[_CSSSECK]!, + [_xacssseckm]: input[_CSSSECKMD]!, + [_xarp]: input[_RP]!, + [_xaebo]: input[_EBO]!, + [_xasebo]: input[_ESBO]!, + }); + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket!, "{Bucket}", false); + b.p("Key", () => input.Key!, "{Key+}", true); const query: any = map({ - "x-id": [, "UploadPartCopy"], - partNumber: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input.PartNumber!.toString()], - uploadId: [, __expectNonNull(input.UploadId!, `UploadId`)], + [_xi]: [, "UploadPartCopy"], + [_pN]: [__expectNonNull(input.PartNumber, `PartNumber`) != null, () => input[_PN]!.toString()], + [_uI]: [, __expectNonNull(input[_UI]!, `UploadId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3869,82 +3057,60 @@ export const se_WriteGetObjectResponseCommand = async ( input: WriteGetObjectResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", - "x-amz-request-route": input.RequestRoute!, - "x-amz-request-token": input.RequestToken!, - "x-amz-fwd-status": [() => isSerializableHeaderValue(input.StatusCode), () => input.StatusCode!.toString()], - "x-amz-fwd-error-code": input.ErrorCode!, - "x-amz-fwd-error-message": input.ErrorMessage!, - "x-amz-fwd-header-accept-ranges": input.AcceptRanges!, - "x-amz-fwd-header-cache-control": input.CacheControl!, - "x-amz-fwd-header-content-disposition": input.ContentDisposition!, - "x-amz-fwd-header-content-encoding": input.ContentEncoding!, - "x-amz-fwd-header-content-language": input.ContentLanguage!, - "content-length": [() => isSerializableHeaderValue(input.ContentLength), () => input.ContentLength!.toString()], - "x-amz-fwd-header-content-range": input.ContentRange!, - "x-amz-fwd-header-content-type": input.ContentType!, - "x-amz-fwd-header-x-amz-checksum-crc32": input.ChecksumCRC32!, - "x-amz-fwd-header-x-amz-checksum-crc32c": input.ChecksumCRC32C!, - "x-amz-fwd-header-x-amz-checksum-sha1": input.ChecksumSHA1!, - "x-amz-fwd-header-x-amz-checksum-sha256": input.ChecksumSHA256!, - "x-amz-fwd-header-x-amz-delete-marker": [ - () => isSerializableHeaderValue(input.DeleteMarker), - () => input.DeleteMarker!.toString(), - ], - "x-amz-fwd-header-etag": input.ETag!, - "x-amz-fwd-header-expires": [ - () => isSerializableHeaderValue(input.Expires), - () => __dateToUtcString(input.Expires!).toString(), - ], - "x-amz-fwd-header-x-amz-expiration": input.Expiration!, - "x-amz-fwd-header-last-modified": [ - () => isSerializableHeaderValue(input.LastModified), - () => __dateToUtcString(input.LastModified!).toString(), - ], - "x-amz-fwd-header-x-amz-missing-meta": [ - () => isSerializableHeaderValue(input.MissingMeta), - () => input.MissingMeta!.toString(), - ], - "x-amz-fwd-header-x-amz-object-lock-mode": input.ObjectLockMode!, - "x-amz-fwd-header-x-amz-object-lock-legal-hold": input.ObjectLockLegalHoldStatus!, - "x-amz-fwd-header-x-amz-object-lock-retain-until-date": [ - () => isSerializableHeaderValue(input.ObjectLockRetainUntilDate), - () => (input.ObjectLockRetainUntilDate!.toISOString().split(".")[0] + "Z").toString(), - ], - "x-amz-fwd-header-x-amz-mp-parts-count": [ - () => isSerializableHeaderValue(input.PartsCount), - () => input.PartsCount!.toString(), - ], - "x-amz-fwd-header-x-amz-replication-status": input.ReplicationStatus!, - "x-amz-fwd-header-x-amz-request-charged": input.RequestCharged!, - "x-amz-fwd-header-x-amz-restore": input.Restore!, - "x-amz-fwd-header-x-amz-server-side-encryption": input.ServerSideEncryption!, - "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm": input.SSECustomerAlgorithm!, - "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id": input.SSEKMSKeyId!, - "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5": input.SSECustomerKeyMD5!, - "x-amz-fwd-header-x-amz-storage-class": input.StorageClass!, - "x-amz-fwd-header-x-amz-tagging-count": [ - () => isSerializableHeaderValue(input.TagCount), - () => input.TagCount!.toString(), - ], - "x-amz-fwd-header-x-amz-version-id": input.VersionId!, - "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled": [ - () => isSerializableHeaderValue(input.BucketKeyEnabled), - () => input.BucketKeyEnabled!.toString(), + [_xarr]: input[_RR]!, + [_xart]: input[_RT]!, + [_xafs]: [() => isSerializableHeaderValue(input[_SCt]), () => input[_SCt]!.toString()], + [_xafec]: input[_EC]!, + [_xafem]: input[_EM]!, + [_xafhar]: input[_AR]!, + [_xafhcc]: input[_CC]!, + [_xafhcd]: input[_CD]!, + [_xafhce]: input[_CE]!, + [_xafhcl]: input[_CL]!, + [_cl_]: [() => isSerializableHeaderValue(input[_CLo]), () => input[_CLo]!.toString()], + [_xafhcr]: input[_CR]!, + [_xafhct]: input[_CT]!, + [_xafhxacc]: input[_CCRC]!, + [_xafhxacc_]: input[_CCRCC]!, + [_xafhxacs]: input[_CSHA]!, + [_xafhxacs_]: input[_CSHAh]!, + [_xafhxadm]: [() => isSerializableHeaderValue(input[_DM]), () => input[_DM]!.toString()], + [_xafhe]: input[_ETa]!, + [_xafhe_]: [() => isSerializableHeaderValue(input[_E]), () => __dateToUtcString(input[_E]!).toString()], + [_xafhxae]: input[_Exp]!, + [_xafhlm]: [() => isSerializableHeaderValue(input[_LM]), () => __dateToUtcString(input[_LM]!).toString()], + [_xafhxamm]: [() => isSerializableHeaderValue(input[_MM]), () => input[_MM]!.toString()], + [_xafhxaolm]: input[_OLM]!, + [_xafhxaollh]: input[_OLLHS]!, + [_xafhxaolrud]: [ + () => isSerializableHeaderValue(input[_OLRUD]), + () => (input[_OLRUD]!.toISOString().split(".")[0] + "Z").toString(), ], + [_xafhxampc]: [() => isSerializableHeaderValue(input[_PC]), () => input[_PC]!.toString()], + [_xafhxars]: input[_RS]!, + [_xafhxarc]: input[_RC]!, + [_xafhxar]: input[_Re]!, + [_xafhxasse]: input[_SSE]!, + [_xafhxasseca]: input[_SSECA]!, + [_xafhxasseakki]: input[_SSEKMSKI]!, + [_xafhxasseckm]: input[_SSECKMD]!, + [_xafhxasc]: input[_SC]!, + [_xafhxatc]: [() => isSerializableHeaderValue(input[_TC]), () => input[_TC]!.toString()], + [_xafhxavi]: input[_VI]!, + [_xafhxassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()], ...(input.Metadata !== undefined && Object.keys(input.Metadata).reduce((acc: any, suffix: string) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix]; return acc; }, {})), }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/WriteGetObjectResponse"; + b.bp("/WriteGetObjectResponse"); const query: any = map({ - "x-id": [, "WriteGetObjectResponse"], + [_xi]: [, "WriteGetObjectResponse"], }); let body: any; let contents: any; @@ -3963,16 +3129,9 @@ export const se_WriteGetObjectResponseCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3987,7 +3146,7 @@ export const de_AbortMultipartUploadCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -4031,40 +3190,37 @@ export const de_CompleteMultipartUploadCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Expiration: [, output.headers["x-amz-expiration"]], - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - VersionId: [, output.headers["x-amz-version-id"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), - ], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_Exp]: [, output.headers[_xae]], + [_SSE]: [, output.headers[_xasse]], + [_VI]: [, output.headers[_xavi]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Bucket"] !== undefined) { - contents.Bucket = __expectString(data["Bucket"]); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); } - if (data["ChecksumCRC32"] !== undefined) { - contents.ChecksumCRC32 = __expectString(data["ChecksumCRC32"]); + if (data[_CCRC] != null) { + contents[_CCRC] = __expectString(data[_CCRC]); } - if (data["ChecksumCRC32C"] !== undefined) { - contents.ChecksumCRC32C = __expectString(data["ChecksumCRC32C"]); + if (data[_CCRCC] != null) { + contents[_CCRCC] = __expectString(data[_CCRCC]); } - if (data["ChecksumSHA1"] !== undefined) { - contents.ChecksumSHA1 = __expectString(data["ChecksumSHA1"]); + if (data[_CSHA] != null) { + contents[_CSHA] = __expectString(data[_CSHA]); } - if (data["ChecksumSHA256"] !== undefined) { - contents.ChecksumSHA256 = __expectString(data["ChecksumSHA256"]); + if (data[_CSHAh] != null) { + contents[_CSHAh] = __expectString(data[_CSHAh]); } - if (data["ETag"] !== undefined) { - contents.ETag = __expectString(data["ETag"]); + if (data[_ETa] != null) { + contents[_ETa] = __expectString(data[_ETa]); } - if (data["Key"] !== undefined) { - contents.Key = __expectString(data["Key"]); + if (data[_K] != null) { + contents[_K] = __expectString(data[_K]); } - if (data["Location"] !== undefined) { - contents.Location = __expectString(data["Location"]); + if (data[_L] != null) { + contents[_L] = __expectString(data[_L]); } return contents; }; @@ -4101,19 +3257,16 @@ export const de_CopyObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Expiration: [, output.headers["x-amz-expiration"]], - CopySourceVersionId: [, output.headers["x-amz-copy-source-version-id"]], - VersionId: [, output.headers["x-amz-version-id"]], - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - SSECustomerAlgorithm: [, output.headers["x-amz-server-side-encryption-customer-algorithm"]], - SSECustomerKeyMD5: [, output.headers["x-amz-server-side-encryption-customer-key-md5"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - SSEKMSEncryptionContext: [, output.headers["x-amz-server-side-encryption-context"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), - ], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_Exp]: [, output.headers[_xae]], + [_CSVI]: [, output.headers[_xacsvi]], + [_VI]: [, output.headers[_xavi]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_SSEKMSEC]: [, output.headers[_xassec]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CopyObjectResult = de_CopyObjectResult(data, context); @@ -4158,7 +3311,7 @@ export const de_CreateBucketCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Location: [, output.headers["location"]], + [_L]: [, output.headers[_lo]], }); await collectBody(output.body, context); return contents; @@ -4205,32 +3358,29 @@ export const de_CreateMultipartUploadCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - AbortDate: [ - () => void 0 !== output.headers["x-amz-abort-date"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-amz-abort-date"])), - ], - AbortRuleId: [, output.headers["x-amz-abort-rule-id"]], - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - SSECustomerAlgorithm: [, output.headers["x-amz-server-side-encryption-customer-algorithm"]], - SSECustomerKeyMD5: [, output.headers["x-amz-server-side-encryption-customer-key-md5"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - SSEKMSEncryptionContext: [, output.headers["x-amz-server-side-encryption-context"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), + [_AD]: [ + () => void 0 !== output.headers[_xaad], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xaad])), ], - RequestCharged: [, output.headers["x-amz-request-charged"]], - ChecksumAlgorithm: [, output.headers["x-amz-checksum-algorithm"]], + [_ARI]: [, output.headers[_xaari]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_SSEKMSEC]: [, output.headers[_xassec]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], + [_CA]: [, output.headers[_xaca]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Bucket"] !== undefined) { - contents.Bucket = __expectString(data["Bucket"]); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); } - if (data["Key"] !== undefined) { - contents.Key = __expectString(data["Key"]); + if (data[_K] != null) { + contents[_K] = __expectString(data[_K]); } - if (data["UploadId"] !== undefined) { - contents.UploadId = __expectString(data["UploadId"]); + if (data[_UI] != null) { + contents[_UI] = __expectString(data[_UI]); } return contents; }; @@ -4269,8 +3419,8 @@ export const de_CreateSessionCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Credentials"] !== undefined) { - contents.Credentials = de_SessionCredentials(data["Credentials"], context); + if (data[_C] != null) { + contents[_C] = de_SessionCredentials(data[_C], context); } return contents; }; @@ -4794,12 +3944,9 @@ export const de_DeleteObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - DeleteMarker: [ - () => void 0 !== output.headers["x-amz-delete-marker"], - () => __parseBoolean(output.headers["x-amz-delete-marker"]), - ], - VersionId: [, output.headers["x-amz-version-id"]], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_VI]: [, output.headers[_xavi]], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -4837,18 +3984,18 @@ export const de_DeleteObjectsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Deleted === "") { - contents.Deleted = []; - } else if (data["Deleted"] !== undefined) { - contents.Deleted = de_DeletedObjects(__getArrayIfSingleItem(data["Deleted"]), context); + contents[_De] = []; + } else if (data[_De] != null) { + contents[_De] = de_DeletedObjects(__getArrayIfSingleItem(data[_De]), context); } if (data.Error === "") { - contents.Errors = []; - } else if (data["Error"] !== undefined) { - contents.Errors = de_Errors(__getArrayIfSingleItem(data["Error"]), context); + contents[_Err] = []; + } else if (data[_Er] != null) { + contents[_Err] = de_Errors(__getArrayIfSingleItem(data[_Er]), context); } return contents; }; @@ -4885,7 +4032,7 @@ export const de_DeleteObjectTaggingCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - VersionId: [, output.headers["x-amz-version-id"]], + [_VI]: [, output.headers[_xavi]], }); await collectBody(output.body, context); return contents; @@ -4960,11 +4107,11 @@ export const de_GetBucketAccelerateConfigurationCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Status"] !== undefined) { - contents.Status = __expectString(data["Status"]); + if (data[_S] != null) { + contents[_S] = __expectString(data[_S]); } return contents; }; @@ -5004,12 +4151,12 @@ export const de_GetBucketAclCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AccessControlList === "") { - contents.Grants = []; - } else if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) { - contents.Grants = de_Grants(__getArrayIfSingleItem(data["AccessControlList"]["Grant"]), context); + contents[_Gr] = []; + } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { + contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); } - if (data["Owner"] !== undefined) { - contents.Owner = de_Owner(data["Owner"], context); + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); } return contents; }; @@ -5087,9 +4234,9 @@ export const de_GetBucketCorsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CORSRule === "") { - contents.CORSRules = []; - } else if (data["CORSRule"] !== undefined) { - contents.CORSRules = de_CORSRules(__getArrayIfSingleItem(data["CORSRule"]), context); + contents[_CORSRu] = []; + } else if (data[_CORSR] != null) { + contents[_CORSRu] = de_CORSRules(__getArrayIfSingleItem(data[_CORSR]), context); } return contents; }; @@ -5243,9 +4390,9 @@ export const de_GetBucketLifecycleConfigurationCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Rule === "") { - contents.Rules = []; - } else if (data["Rule"] !== undefined) { - contents.Rules = de_LifecycleRules(__getArrayIfSingleItem(data["Rule"]), context); + contents[_Rul] = []; + } else if (data[_Ru] != null) { + contents[_Rul] = de_LifecycleRules(__getArrayIfSingleItem(data[_Ru]), context); } return contents; }; @@ -5284,8 +4431,8 @@ export const de_GetBucketLocationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["LocationConstraint"] !== undefined) { - contents.LocationConstraint = __expectString(data["LocationConstraint"]); + if (data[_LC] != null) { + contents[_LC] = __expectString(data[_LC]); } return contents; }; @@ -5324,8 +4471,8 @@ export const de_GetBucketLoggingCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["LoggingEnabled"] !== undefined) { - contents.LoggingEnabled = de_LoggingEnabled(data["LoggingEnabled"], context); + if (data[_LE] != null) { + contents[_LE] = de_LoggingEnabled(data[_LE], context); } return contents; }; @@ -5402,32 +4549,23 @@ export const de_GetBucketNotificationConfigurationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["EventBridgeConfiguration"] !== undefined) { - contents.EventBridgeConfiguration = de_EventBridgeConfiguration(data["EventBridgeConfiguration"], context); + if (data[_EBC] != null) { + contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context); } if (data.CloudFunctionConfiguration === "") { - contents.LambdaFunctionConfigurations = []; - } else if (data["CloudFunctionConfiguration"] !== undefined) { - contents.LambdaFunctionConfigurations = de_LambdaFunctionConfigurationList( - __getArrayIfSingleItem(data["CloudFunctionConfiguration"]), - context - ); + contents[_LFC] = []; + } else if (data[_CFC] != null) { + contents[_LFC] = de_LambdaFunctionConfigurationList(__getArrayIfSingleItem(data[_CFC]), context); } if (data.QueueConfiguration === "") { - contents.QueueConfigurations = []; - } else if (data["QueueConfiguration"] !== undefined) { - contents.QueueConfigurations = de_QueueConfigurationList( - __getArrayIfSingleItem(data["QueueConfiguration"]), - context - ); + contents[_QCu] = []; + } else if (data[_QC] != null) { + contents[_QCu] = de_QueueConfigurationList(__getArrayIfSingleItem(data[_QC]), context); } if (data.TopicConfiguration === "") { - contents.TopicConfigurations = []; - } else if (data["TopicConfiguration"] !== undefined) { - contents.TopicConfigurations = de_TopicConfigurationList( - __getArrayIfSingleItem(data["TopicConfiguration"]), - context - ); + contents[_TCop] = []; + } else if (data[_TCo] != null) { + contents[_TCop] = de_TopicConfigurationList(__getArrayIfSingleItem(data[_TCo]), context); } return contents; }; @@ -5618,8 +4756,8 @@ export const de_GetBucketRequestPaymentCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Payer"] !== undefined) { - contents.Payer = __expectString(data["Payer"]); + if (data[_Pa] != null) { + contents[_Pa] = __expectString(data[_Pa]); } return contents; }; @@ -5659,9 +4797,9 @@ export const de_GetBucketTaggingCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.TagSet === "") { - contents.TagSet = []; - } else if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) { - contents.TagSet = de_TagSet(__getArrayIfSingleItem(data["TagSet"]["Tag"]), context); + contents[_TS] = []; + } else if (data[_TS] != null && data[_TS][_Ta] != null) { + contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); } return contents; }; @@ -5700,11 +4838,11 @@ export const de_GetBucketVersioningCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["MfaDelete"] !== undefined) { - contents.MFADelete = __expectString(data["MfaDelete"]); + if (data[_MDf] != null) { + contents[_MFAD] = __expectString(data[_MDf]); } - if (data["Status"] !== undefined) { - contents.Status = __expectString(data["Status"]); + if (data[_S] != null) { + contents[_S] = __expectString(data[_S]); } return contents; }; @@ -5743,19 +4881,19 @@ export const de_GetBucketWebsiteCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ErrorDocument"] !== undefined) { - contents.ErrorDocument = de_ErrorDocument(data["ErrorDocument"], context); + if (data[_ED] != null) { + contents[_ED] = de_ErrorDocument(data[_ED], context); } - if (data["IndexDocument"] !== undefined) { - contents.IndexDocument = de_IndexDocument(data["IndexDocument"], context); + if (data[_ID] != null) { + contents[_ID] = de_IndexDocument(data[_ID], context); } - if (data["RedirectAllRequestsTo"] !== undefined) { - contents.RedirectAllRequestsTo = de_RedirectAllRequestsTo(data["RedirectAllRequestsTo"], context); + if (data[_RART] != null) { + contents[_RART] = de_RedirectAllRequestsTo(data[_RART], context); } if (data.RoutingRules === "") { - contents.RoutingRules = []; - } else if (data["RoutingRules"] !== undefined && data["RoutingRules"]["RoutingRule"] !== undefined) { - contents.RoutingRules = de_RoutingRules(__getArrayIfSingleItem(data["RoutingRules"]["RoutingRule"]), context); + contents[_RRo] = []; + } else if (data[_RRo] != null && data[_RRo][_RRou] != null) { + contents[_RRo] = de_RoutingRules(__getArrayIfSingleItem(data[_RRo][_RRou]), context); } return contents; }; @@ -5792,67 +4930,43 @@ export const de_GetObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - DeleteMarker: [ - () => void 0 !== output.headers["x-amz-delete-marker"], - () => __parseBoolean(output.headers["x-amz-delete-marker"]), - ], - AcceptRanges: [, output.headers["accept-ranges"]], - Expiration: [, output.headers["x-amz-expiration"]], - Restore: [, output.headers["x-amz-restore"]], - LastModified: [ - () => void 0 !== output.headers["last-modified"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["last-modified"])), - ], - ContentLength: [ - () => void 0 !== output.headers["content-length"], - () => __strictParseLong(output.headers["content-length"]), - ], - ETag: [, output.headers["etag"]], - ChecksumCRC32: [, output.headers["x-amz-checksum-crc32"]], - ChecksumCRC32C: [, output.headers["x-amz-checksum-crc32c"]], - ChecksumSHA1: [, output.headers["x-amz-checksum-sha1"]], - ChecksumSHA256: [, output.headers["x-amz-checksum-sha256"]], - MissingMeta: [ - () => void 0 !== output.headers["x-amz-missing-meta"], - () => __strictParseInt32(output.headers["x-amz-missing-meta"]), - ], - VersionId: [, output.headers["x-amz-version-id"]], - CacheControl: [, output.headers["cache-control"]], - ContentDisposition: [, output.headers["content-disposition"]], - ContentEncoding: [, output.headers["content-encoding"]], - ContentLanguage: [, output.headers["content-language"]], - ContentRange: [, output.headers["content-range"]], - ContentType: [, output.headers["content-type"]], - Expires: [ - () => void 0 !== output.headers["expires"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["expires"])), - ], - WebsiteRedirectLocation: [, output.headers["x-amz-website-redirect-location"]], - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - SSECustomerAlgorithm: [, output.headers["x-amz-server-side-encryption-customer-algorithm"]], - SSECustomerKeyMD5: [, output.headers["x-amz-server-side-encryption-customer-key-md5"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), - ], - StorageClass: [, output.headers["x-amz-storage-class"]], - RequestCharged: [, output.headers["x-amz-request-charged"]], - ReplicationStatus: [, output.headers["x-amz-replication-status"]], - PartsCount: [ - () => void 0 !== output.headers["x-amz-mp-parts-count"], - () => __strictParseInt32(output.headers["x-amz-mp-parts-count"]), - ], - TagCount: [ - () => void 0 !== output.headers["x-amz-tagging-count"], - () => __strictParseInt32(output.headers["x-amz-tagging-count"]), - ], - ObjectLockMode: [, output.headers["x-amz-object-lock-mode"]], - ObjectLockRetainUntilDate: [ - () => void 0 !== output.headers["x-amz-object-lock-retain-until-date"], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers["x-amz-object-lock-retain-until-date"])), + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], + [_Exp]: [, output.headers[_xae]], + [_Re]: [, output.headers[_xar]], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => __strictParseLong(output.headers[_cl_])], + [_ETa]: [, output.headers[_eta]], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_MM]: [() => void 0 !== output.headers[_xamm], () => __strictParseInt32(output.headers[_xamm])], + [_VI]: [, output.headers[_xavi]], + [_CC]: [, output.headers[_cc]], + [_CD]: [, output.headers[_cd]], + [_CE]: [, output.headers[_ce]], + [_CL]: [, output.headers[_cl]], + [_CR]: [, output.headers[_cr]], + [_CT]: [, output.headers[_ct]], + [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))], + [_WRL]: [, output.headers[_xawrl]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_SC]: [, output.headers[_xasc]], + [_RC]: [, output.headers[_xarc]], + [_RS]: [, output.headers[_xars]], + [_PC]: [() => void 0 !== output.headers[_xampc], () => __strictParseInt32(output.headers[_xampc])], + [_TC]: [() => void 0 !== output.headers[_xatc], () => __strictParseInt32(output.headers[_xatc])], + [_OLM]: [, output.headers[_xaolm]], + [_OLRUD]: [ + () => void 0 !== output.headers[_xaolrud], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xaolrud])), ], - ObjectLockLegalHoldStatus: [, output.headers["x-amz-object-lock-legal-hold"]], + [_OLLHS]: [, output.headers[_xaollh]], Metadata: [ , Object.keys(output.headers) @@ -5910,16 +5024,16 @@ export const de_GetObjectAclCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AccessControlList === "") { - contents.Grants = []; - } else if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) { - contents.Grants = de_Grants(__getArrayIfSingleItem(data["AccessControlList"]["Grant"]), context); + contents[_Gr] = []; + } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { + contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); } - if (data["Owner"] !== undefined) { - contents.Owner = de_Owner(data["Owner"], context); + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); } return contents; }; @@ -5962,32 +5076,26 @@ export const de_GetObjectAttributesCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - DeleteMarker: [ - () => void 0 !== output.headers["x-amz-delete-marker"], - () => __parseBoolean(output.headers["x-amz-delete-marker"]), - ], - LastModified: [ - () => void 0 !== output.headers["last-modified"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["last-modified"])), - ], - VersionId: [, output.headers["x-amz-version-id"]], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], + [_VI]: [, output.headers[_xavi]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Checksum"] !== undefined) { - contents.Checksum = de_Checksum(data["Checksum"], context); + if (data[_Ch] != null) { + contents[_Ch] = de_Checksum(data[_Ch], context); } - if (data["ETag"] !== undefined) { - contents.ETag = __expectString(data["ETag"]); + if (data[_ETa] != null) { + contents[_ETa] = __expectString(data[_ETa]); } - if (data["ObjectParts"] !== undefined) { - contents.ObjectParts = de_GetObjectAttributesParts(data["ObjectParts"], context); + if (data[_OP] != null) { + contents[_OP] = de_GetObjectAttributesParts(data[_OP], context); } - if (data["ObjectSize"] !== undefined) { - contents.ObjectSize = __strictParseLong(data["ObjectSize"]) as number; + if (data[_OSb] != null) { + contents[_OSb] = __strictParseLong(data[_OSb]) as number; } - if (data["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(data["StorageClass"]); + if (data[_SC] != null) { + contents[_SC] = __expectString(data[_SC]); } return contents; }; @@ -6144,13 +5252,13 @@ export const de_GetObjectTaggingCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - VersionId: [, output.headers["x-amz-version-id"]], + [_VI]: [, output.headers[_xavi]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.TagSet === "") { - contents.TagSet = []; - } else if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) { - contents.TagSet = de_TagSet(__getArrayIfSingleItem(data["TagSet"]["Tag"]), context); + contents[_TS] = []; + } else if (data[_TS] != null && data[_TS][_Ta] != null) { + contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); } return contents; }; @@ -6187,7 +5295,7 @@ export const de_GetObjectTorrentCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -6265,13 +5373,10 @@ export const de_HeadBucketCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - BucketLocationType: [, output.headers["x-amz-bucket-location-type"]], - BucketLocationName: [, output.headers["x-amz-bucket-location-name"]], - BucketRegion: [, output.headers["x-amz-bucket-region"]], - AccessPointAlias: [ - () => void 0 !== output.headers["x-amz-access-point-alias"], - () => __parseBoolean(output.headers["x-amz-access-point-alias"]), - ], + [_BLT]: [, output.headers[_xablt]], + [_BLN]: [, output.headers[_xabln]], + [_BR]: [, output.headers[_xabr]], + [_APA]: [() => void 0 !== output.headers[_xaapa], () => __parseBoolean(output.headers[_xaapa])], }); await collectBody(output.body, context); return contents; @@ -6315,63 +5420,42 @@ export const de_HeadObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - DeleteMarker: [ - () => void 0 !== output.headers["x-amz-delete-marker"], - () => __parseBoolean(output.headers["x-amz-delete-marker"]), - ], - AcceptRanges: [, output.headers["accept-ranges"]], - Expiration: [, output.headers["x-amz-expiration"]], - Restore: [, output.headers["x-amz-restore"]], - ArchiveStatus: [, output.headers["x-amz-archive-status"]], - LastModified: [ - () => void 0 !== output.headers["last-modified"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["last-modified"])), - ], - ContentLength: [ - () => void 0 !== output.headers["content-length"], - () => __strictParseLong(output.headers["content-length"]), - ], - ChecksumCRC32: [, output.headers["x-amz-checksum-crc32"]], - ChecksumCRC32C: [, output.headers["x-amz-checksum-crc32c"]], - ChecksumSHA1: [, output.headers["x-amz-checksum-sha1"]], - ChecksumSHA256: [, output.headers["x-amz-checksum-sha256"]], - ETag: [, output.headers["etag"]], - MissingMeta: [ - () => void 0 !== output.headers["x-amz-missing-meta"], - () => __strictParseInt32(output.headers["x-amz-missing-meta"]), - ], - VersionId: [, output.headers["x-amz-version-id"]], - CacheControl: [, output.headers["cache-control"]], - ContentDisposition: [, output.headers["content-disposition"]], - ContentEncoding: [, output.headers["content-encoding"]], - ContentLanguage: [, output.headers["content-language"]], - ContentType: [, output.headers["content-type"]], - Expires: [ - () => void 0 !== output.headers["expires"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["expires"])), - ], - WebsiteRedirectLocation: [, output.headers["x-amz-website-redirect-location"]], - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - SSECustomerAlgorithm: [, output.headers["x-amz-server-side-encryption-customer-algorithm"]], - SSECustomerKeyMD5: [, output.headers["x-amz-server-side-encryption-customer-key-md5"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), - ], - StorageClass: [, output.headers["x-amz-storage-class"]], - RequestCharged: [, output.headers["x-amz-request-charged"]], - ReplicationStatus: [, output.headers["x-amz-replication-status"]], - PartsCount: [ - () => void 0 !== output.headers["x-amz-mp-parts-count"], - () => __strictParseInt32(output.headers["x-amz-mp-parts-count"]), + [_DM]: [() => void 0 !== output.headers[_xadm], () => __parseBoolean(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], + [_Exp]: [, output.headers[_xae]], + [_Re]: [, output.headers[_xar]], + [_AS]: [, output.headers[_xaas]], + [_LM]: [() => void 0 !== output.headers[_lm], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => __strictParseLong(output.headers[_cl_])], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_ETa]: [, output.headers[_eta]], + [_MM]: [() => void 0 !== output.headers[_xamm], () => __strictParseInt32(output.headers[_xamm])], + [_VI]: [, output.headers[_xavi]], + [_CC]: [, output.headers[_cc]], + [_CD]: [, output.headers[_cd]], + [_CE]: [, output.headers[_ce]], + [_CL]: [, output.headers[_cl]], + [_CT]: [, output.headers[_ct]], + [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))], + [_WRL]: [, output.headers[_xawrl]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_SC]: [, output.headers[_xasc]], + [_RC]: [, output.headers[_xarc]], + [_RS]: [, output.headers[_xars]], + [_PC]: [() => void 0 !== output.headers[_xampc], () => __strictParseInt32(output.headers[_xampc])], + [_OLM]: [, output.headers[_xaolm]], + [_OLRUD]: [ + () => void 0 !== output.headers[_xaolrud], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xaolrud])), ], - ObjectLockMode: [, output.headers["x-amz-object-lock-mode"]], - ObjectLockRetainUntilDate: [ - () => void 0 !== output.headers["x-amz-object-lock-retain-until-date"], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers["x-amz-object-lock-retain-until-date"])), - ], - ObjectLockLegalHoldStatus: [, output.headers["x-amz-object-lock-legal-hold"]], + [_OLLHS]: [, output.headers[_xaollh]], Metadata: [ , Object.keys(output.headers) @@ -6427,21 +5511,18 @@ export const de_ListBucketAnalyticsConfigurationsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.AnalyticsConfiguration === "") { - contents.AnalyticsConfigurationList = []; - } else if (data["AnalyticsConfiguration"] !== undefined) { - contents.AnalyticsConfigurationList = de_AnalyticsConfigurationList( - __getArrayIfSingleItem(data["AnalyticsConfiguration"]), - context - ); + contents[_ACLn] = []; + } else if (data[_AC] != null) { + contents[_ACLn] = de_AnalyticsConfigurationList(__getArrayIfSingleItem(data[_AC]), context); } - if (data["ContinuationToken"] !== undefined) { - contents.ContinuationToken = __expectString(data["ContinuationToken"]); + if (data[_CTo] != null) { + contents[_CTo] = __expectString(data[_CTo]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["NextContinuationToken"] !== undefined) { - contents.NextContinuationToken = __expectString(data["NextContinuationToken"]); + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); } return contents; }; @@ -6480,22 +5561,19 @@ export const de_ListBucketIntelligentTieringConfigurationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ContinuationToken"] !== undefined) { - contents.ContinuationToken = __expectString(data["ContinuationToken"]); + if (data[_CTo] != null) { + contents[_CTo] = __expectString(data[_CTo]); } if (data.IntelligentTieringConfiguration === "") { - contents.IntelligentTieringConfigurationList = []; - } else if (data["IntelligentTieringConfiguration"] !== undefined) { - contents.IntelligentTieringConfigurationList = de_IntelligentTieringConfigurationList( - __getArrayIfSingleItem(data["IntelligentTieringConfiguration"]), - context - ); + contents[_ITCL] = []; + } else if (data[_ITC] != null) { + contents[_ITCL] = de_IntelligentTieringConfigurationList(__getArrayIfSingleItem(data[_ITC]), context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["NextContinuationToken"] !== undefined) { - contents.NextContinuationToken = __expectString(data["NextContinuationToken"]); + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); } return contents; }; @@ -6534,22 +5612,19 @@ export const de_ListBucketInventoryConfigurationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ContinuationToken"] !== undefined) { - contents.ContinuationToken = __expectString(data["ContinuationToken"]); + if (data[_CTo] != null) { + contents[_CTo] = __expectString(data[_CTo]); } if (data.InventoryConfiguration === "") { - contents.InventoryConfigurationList = []; - } else if (data["InventoryConfiguration"] !== undefined) { - contents.InventoryConfigurationList = de_InventoryConfigurationList( - __getArrayIfSingleItem(data["InventoryConfiguration"]), - context - ); + contents[_ICL] = []; + } else if (data[_IC] != null) { + contents[_ICL] = de_InventoryConfigurationList(__getArrayIfSingleItem(data[_IC]), context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["NextContinuationToken"] !== undefined) { - contents.NextContinuationToken = __expectString(data["NextContinuationToken"]); + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); } return contents; }; @@ -6588,22 +5663,19 @@ export const de_ListBucketMetricsConfigurationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["ContinuationToken"] !== undefined) { - contents.ContinuationToken = __expectString(data["ContinuationToken"]); + if (data[_CTo] != null) { + contents[_CTo] = __expectString(data[_CTo]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } if (data.MetricsConfiguration === "") { - contents.MetricsConfigurationList = []; - } else if (data["MetricsConfiguration"] !== undefined) { - contents.MetricsConfigurationList = de_MetricsConfigurationList( - __getArrayIfSingleItem(data["MetricsConfiguration"]), - context - ); + contents[_MCL] = []; + } else if (data[_MC] != null) { + contents[_MCL] = de_MetricsConfigurationList(__getArrayIfSingleItem(data[_MC]), context); } - if (data["NextContinuationToken"] !== undefined) { - contents.NextContinuationToken = __expectString(data["NextContinuationToken"]); + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); } return contents; }; @@ -6643,12 +5715,12 @@ export const de_ListBucketsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Buckets === "") { - contents.Buckets = []; - } else if (data["Buckets"] !== undefined && data["Buckets"]["Bucket"] !== undefined) { - contents.Buckets = de_Buckets(__getArrayIfSingleItem(data["Buckets"]["Bucket"]), context); + contents[_Bu] = []; + } else if (data[_Bu] != null && data[_Bu][_B] != null) { + contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); } - if (data["Owner"] !== undefined) { - contents.Owner = de_Owner(data["Owner"], context); + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); } return contents; }; @@ -6688,12 +5760,12 @@ export const de_ListDirectoryBucketsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.Buckets === "") { - contents.Buckets = []; - } else if (data["Buckets"] !== undefined && data["Buckets"]["Bucket"] !== undefined) { - contents.Buckets = de_Buckets(__getArrayIfSingleItem(data["Buckets"]["Bucket"]), context); + contents[_Bu] = []; + } else if (data[_Bu] != null && data[_Bu][_B] != null) { + contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); } - if (data["ContinuationToken"] !== undefined) { - contents.ContinuationToken = __expectString(data["ContinuationToken"]); + if (data[_CTo] != null) { + contents[_CTo] = __expectString(data[_CTo]); } return contents; }; @@ -6730,48 +5802,48 @@ export const de_ListMultipartUploadsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Bucket"] !== undefined) { - contents.Bucket = __expectString(data["Bucket"]); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); } if (data.CommonPrefixes === "") { - contents.CommonPrefixes = []; - } else if (data["CommonPrefixes"] !== undefined) { - contents.CommonPrefixes = de_CommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context); + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); } - if (data["Delimiter"] !== undefined) { - contents.Delimiter = __expectString(data["Delimiter"]); + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); } - if (data["EncodingType"] !== undefined) { - contents.EncodingType = __expectString(data["EncodingType"]); + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["KeyMarker"] !== undefined) { - contents.KeyMarker = __expectString(data["KeyMarker"]); + if (data[_KM] != null) { + contents[_KM] = __expectString(data[_KM]); } - if (data["MaxUploads"] !== undefined) { - contents.MaxUploads = __strictParseInt32(data["MaxUploads"]) as number; + if (data[_MU] != null) { + contents[_MU] = __strictParseInt32(data[_MU]) as number; } - if (data["NextKeyMarker"] !== undefined) { - contents.NextKeyMarker = __expectString(data["NextKeyMarker"]); + if (data[_NKM] != null) { + contents[_NKM] = __expectString(data[_NKM]); } - if (data["NextUploadIdMarker"] !== undefined) { - contents.NextUploadIdMarker = __expectString(data["NextUploadIdMarker"]); + if (data[_NUIM] != null) { + contents[_NUIM] = __expectString(data[_NUIM]); } - if (data["Prefix"] !== undefined) { - contents.Prefix = __expectString(data["Prefix"]); + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); } - if (data["UploadIdMarker"] !== undefined) { - contents.UploadIdMarker = __expectString(data["UploadIdMarker"]); + if (data[_UIM] != null) { + contents[_UIM] = __expectString(data[_UIM]); } if (data.Upload === "") { - contents.Uploads = []; - } else if (data["Upload"] !== undefined) { - contents.Uploads = de_MultipartUploadList(__getArrayIfSingleItem(data["Upload"]), context); + contents[_Up] = []; + } else if (data[_U] != null) { + contents[_Up] = de_MultipartUploadList(__getArrayIfSingleItem(data[_U]), context); } return contents; }; @@ -6808,42 +5880,42 @@ export const de_ListObjectsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CommonPrefixes === "") { - contents.CommonPrefixes = []; - } else if (data["CommonPrefixes"] !== undefined) { - contents.CommonPrefixes = de_CommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context); + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); } if (data.Contents === "") { - contents.Contents = []; - } else if (data["Contents"] !== undefined) { - contents.Contents = de_ObjectList(__getArrayIfSingleItem(data["Contents"]), context); + contents[_Co] = []; + } else if (data[_Co] != null) { + contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); } - if (data["Delimiter"] !== undefined) { - contents.Delimiter = __expectString(data["Delimiter"]); + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); } - if (data["EncodingType"] !== undefined) { - contents.EncodingType = __expectString(data["EncodingType"]); + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["Marker"] !== undefined) { - contents.Marker = __expectString(data["Marker"]); + if (data[_M] != null) { + contents[_M] = __expectString(data[_M]); } - if (data["MaxKeys"] !== undefined) { - contents.MaxKeys = __strictParseInt32(data["MaxKeys"]) as number; + if (data[_MK] != null) { + contents[_MK] = __strictParseInt32(data[_MK]) as number; } - if (data["Name"] !== undefined) { - contents.Name = __expectString(data["Name"]); + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); } - if (data["NextMarker"] !== undefined) { - contents.NextMarker = __expectString(data["NextMarker"]); + if (data[_NM] != null) { + contents[_NM] = __expectString(data[_NM]); } - if (data["Prefix"] !== undefined) { - contents.Prefix = __expectString(data["Prefix"]); + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); } return contents; }; @@ -6886,48 +5958,48 @@ export const de_ListObjectsV2Command = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CommonPrefixes === "") { - contents.CommonPrefixes = []; - } else if (data["CommonPrefixes"] !== undefined) { - contents.CommonPrefixes = de_CommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context); + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); } if (data.Contents === "") { - contents.Contents = []; - } else if (data["Contents"] !== undefined) { - contents.Contents = de_ObjectList(__getArrayIfSingleItem(data["Contents"]), context); + contents[_Co] = []; + } else if (data[_Co] != null) { + contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); } - if (data["ContinuationToken"] !== undefined) { - contents.ContinuationToken = __expectString(data["ContinuationToken"]); + if (data[_CTo] != null) { + contents[_CTo] = __expectString(data[_CTo]); } - if (data["Delimiter"] !== undefined) { - contents.Delimiter = __expectString(data["Delimiter"]); + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); } - if (data["EncodingType"] !== undefined) { - contents.EncodingType = __expectString(data["EncodingType"]); + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["KeyCount"] !== undefined) { - contents.KeyCount = __strictParseInt32(data["KeyCount"]) as number; + if (data[_KC] != null) { + contents[_KC] = __strictParseInt32(data[_KC]) as number; } - if (data["MaxKeys"] !== undefined) { - contents.MaxKeys = __strictParseInt32(data["MaxKeys"]) as number; + if (data[_MK] != null) { + contents[_MK] = __strictParseInt32(data[_MK]) as number; } - if (data["Name"] !== undefined) { - contents.Name = __expectString(data["Name"]); + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); } - if (data["NextContinuationToken"] !== undefined) { - contents.NextContinuationToken = __expectString(data["NextContinuationToken"]); + if (data[_NCT] != null) { + contents[_NCT] = __expectString(data[_NCT]); } - if (data["Prefix"] !== undefined) { - contents.Prefix = __expectString(data["Prefix"]); + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); } - if (data["StartAfter"] !== undefined) { - contents.StartAfter = __expectString(data["StartAfter"]); + if (data[_SA] != null) { + contents[_SA] = __expectString(data[_SA]); } return contents; }; @@ -6970,53 +6042,53 @@ export const de_ListObjectVersionsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CommonPrefixes === "") { - contents.CommonPrefixes = []; - } else if (data["CommonPrefixes"] !== undefined) { - contents.CommonPrefixes = de_CommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context); + contents[_CP] = []; + } else if (data[_CP] != null) { + contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); } if (data.DeleteMarker === "") { - contents.DeleteMarkers = []; - } else if (data["DeleteMarker"] !== undefined) { - contents.DeleteMarkers = de_DeleteMarkers(__getArrayIfSingleItem(data["DeleteMarker"]), context); + contents[_DMe] = []; + } else if (data[_DM] != null) { + contents[_DMe] = de_DeleteMarkers(__getArrayIfSingleItem(data[_DM]), context); } - if (data["Delimiter"] !== undefined) { - contents.Delimiter = __expectString(data["Delimiter"]); + if (data[_D] != null) { + contents[_D] = __expectString(data[_D]); } - if (data["EncodingType"] !== undefined) { - contents.EncodingType = __expectString(data["EncodingType"]); + if (data[_ET] != null) { + contents[_ET] = __expectString(data[_ET]); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["KeyMarker"] !== undefined) { - contents.KeyMarker = __expectString(data["KeyMarker"]); + if (data[_KM] != null) { + contents[_KM] = __expectString(data[_KM]); } - if (data["MaxKeys"] !== undefined) { - contents.MaxKeys = __strictParseInt32(data["MaxKeys"]) as number; + if (data[_MK] != null) { + contents[_MK] = __strictParseInt32(data[_MK]) as number; } - if (data["Name"] !== undefined) { - contents.Name = __expectString(data["Name"]); + if (data[_N] != null) { + contents[_N] = __expectString(data[_N]); } - if (data["NextKeyMarker"] !== undefined) { - contents.NextKeyMarker = __expectString(data["NextKeyMarker"]); + if (data[_NKM] != null) { + contents[_NKM] = __expectString(data[_NKM]); } - if (data["NextVersionIdMarker"] !== undefined) { - contents.NextVersionIdMarker = __expectString(data["NextVersionIdMarker"]); + if (data[_NVIM] != null) { + contents[_NVIM] = __expectString(data[_NVIM]); } - if (data["Prefix"] !== undefined) { - contents.Prefix = __expectString(data["Prefix"]); + if (data[_P] != null) { + contents[_P] = __expectString(data[_P]); } - if (data["VersionIdMarker"] !== undefined) { - contents.VersionIdMarker = __expectString(data["VersionIdMarker"]); + if (data[_VIM] != null) { + contents[_VIM] = __expectString(data[_VIM]); } if (data.Version === "") { - contents.Versions = []; - } else if (data["Version"] !== undefined) { - contents.Versions = de_ObjectVersionList(__getArrayIfSingleItem(data["Version"]), context); + contents[_Ve] = []; + } else if (data[_V] != null) { + contents[_Ve] = de_ObjectVersionList(__getArrayIfSingleItem(data[_V]), context); } return contents; }; @@ -7053,51 +6125,51 @@ export const de_ListPartsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - AbortDate: [ - () => void 0 !== output.headers["x-amz-abort-date"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-amz-abort-date"])), + [_AD]: [ + () => void 0 !== output.headers[_xaad], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xaad])), ], - AbortRuleId: [, output.headers["x-amz-abort-rule-id"]], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_ARI]: [, output.headers[_xaari]], + [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["Bucket"] !== undefined) { - contents.Bucket = __expectString(data["Bucket"]); + if (data[_B] != null) { + contents[_B] = __expectString(data[_B]); } - if (data["ChecksumAlgorithm"] !== undefined) { - contents.ChecksumAlgorithm = __expectString(data["ChecksumAlgorithm"]); + if (data[_CA] != null) { + contents[_CA] = __expectString(data[_CA]); } - if (data["Initiator"] !== undefined) { - contents.Initiator = de_Initiator(data["Initiator"], context); + if (data[_In] != null) { + contents[_In] = de_Initiator(data[_In], context); } - if (data["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(data["IsTruncated"]); + if (data[_IT] != null) { + contents[_IT] = __parseBoolean(data[_IT]); } - if (data["Key"] !== undefined) { - contents.Key = __expectString(data["Key"]); + if (data[_K] != null) { + contents[_K] = __expectString(data[_K]); } - if (data["MaxParts"] !== undefined) { - contents.MaxParts = __strictParseInt32(data["MaxParts"]) as number; + if (data[_MP] != null) { + contents[_MP] = __strictParseInt32(data[_MP]) as number; } - if (data["NextPartNumberMarker"] !== undefined) { - contents.NextPartNumberMarker = __expectString(data["NextPartNumberMarker"]); + if (data[_NPNM] != null) { + contents[_NPNM] = __expectString(data[_NPNM]); } - if (data["Owner"] !== undefined) { - contents.Owner = de_Owner(data["Owner"], context); + if (data[_O] != null) { + contents[_O] = de_Owner(data[_O], context); } - if (data["PartNumberMarker"] !== undefined) { - contents.PartNumberMarker = __expectString(data["PartNumberMarker"]); + if (data[_PNM] != null) { + contents[_PNM] = __expectString(data[_PNM]); } if (data.Part === "") { - contents.Parts = []; - } else if (data["Part"] !== undefined) { - contents.Parts = de_Parts(__getArrayIfSingleItem(data["Part"]), context); + contents[_Part] = []; + } else if (data[_Par] != null) { + contents[_Part] = de_Parts(__getArrayIfSingleItem(data[_Par]), context); } - if (data["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(data["StorageClass"]); + if (data[_SC] != null) { + contents[_SC] = __expectString(data[_SC]); } - if (data["UploadId"] !== undefined) { - contents.UploadId = __expectString(data["UploadId"]); + if (data[_UI] != null) { + contents[_UI] = __expectString(data[_UI]); } return contents; }; @@ -7800,23 +6872,20 @@ export const de_PutObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - Expiration: [, output.headers["x-amz-expiration"]], - ETag: [, output.headers["etag"]], - ChecksumCRC32: [, output.headers["x-amz-checksum-crc32"]], - ChecksumCRC32C: [, output.headers["x-amz-checksum-crc32c"]], - ChecksumSHA1: [, output.headers["x-amz-checksum-sha1"]], - ChecksumSHA256: [, output.headers["x-amz-checksum-sha256"]], - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - VersionId: [, output.headers["x-amz-version-id"]], - SSECustomerAlgorithm: [, output.headers["x-amz-server-side-encryption-customer-algorithm"]], - SSECustomerKeyMD5: [, output.headers["x-amz-server-side-encryption-customer-key-md5"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - SSEKMSEncryptionContext: [, output.headers["x-amz-server-side-encryption-context"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), - ], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_Exp]: [, output.headers[_xae]], + [_ETa]: [, output.headers[_eta]], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_SSE]: [, output.headers[_xasse]], + [_VI]: [, output.headers[_xavi]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_SSEKMSEC]: [, output.headers[_xassec]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -7854,7 +6923,7 @@ export const de_PutObjectAclCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -7898,7 +6967,7 @@ export const de_PutObjectLegalHoldCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -7936,7 +7005,7 @@ export const de_PutObjectLockConfigurationCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -7974,7 +7043,7 @@ export const de_PutObjectRetentionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -8012,7 +7081,7 @@ export const de_PutObjectTaggingCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - VersionId: [, output.headers["x-amz-version-id"]], + [_VI]: [, output.headers[_xavi]], }); await collectBody(output.body, context); return contents; @@ -8087,8 +7156,8 @@ export const de_RestoreObjectCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestCharged: [, output.headers["x-amz-request-charged"]], - RestoreOutputPath: [, output.headers["x-amz-restore-output-path"]], + [_RC]: [, output.headers[_xarc]], + [_ROP]: [, output.headers[_xarop]], }); await collectBody(output.body, context); return contents; @@ -8170,20 +7239,17 @@ export const de_UploadPartCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - ETag: [, output.headers["etag"]], - ChecksumCRC32: [, output.headers["x-amz-checksum-crc32"]], - ChecksumCRC32C: [, output.headers["x-amz-checksum-crc32c"]], - ChecksumSHA1: [, output.headers["x-amz-checksum-sha1"]], - ChecksumSHA256: [, output.headers["x-amz-checksum-sha256"]], - SSECustomerAlgorithm: [, output.headers["x-amz-server-side-encryption-customer-algorithm"]], - SSECustomerKeyMD5: [, output.headers["x-amz-server-side-encryption-customer-key-md5"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), - ], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_SSE]: [, output.headers[_xasse]], + [_ETa]: [, output.headers[_eta]], + [_CCRC]: [, output.headers[_xacc]], + [_CCRCC]: [, output.headers[_xacc_]], + [_CSHA]: [, output.headers[_xacs]], + [_CSHAh]: [, output.headers[_xacs_]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], }); await collectBody(output.body, context); return contents; @@ -8221,16 +7287,13 @@ export const de_UploadPartCopyCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - CopySourceVersionId: [, output.headers["x-amz-copy-source-version-id"]], - ServerSideEncryption: [, output.headers["x-amz-server-side-encryption"]], - SSECustomerAlgorithm: [, output.headers["x-amz-server-side-encryption-customer-algorithm"]], - SSECustomerKeyMD5: [, output.headers["x-amz-server-side-encryption-customer-key-md5"]], - SSEKMSKeyId: [, output.headers["x-amz-server-side-encryption-aws-kms-key-id"]], - BucketKeyEnabled: [ - () => void 0 !== output.headers["x-amz-server-side-encryption-bucket-key-enabled"], - () => __parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]), - ], - RequestCharged: [, output.headers["x-amz-request-charged"]], + [_CSVI]: [, output.headers[_xacsvi]], + [_SSE]: [, output.headers[_xasse]], + [_SSECA]: [, output.headers[_xasseca]], + [_SSECKMD]: [, output.headers[_xasseckm]], + [_SSEKMSKI]: [, output.headers[_xasseakki]], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])], + [_RC]: [, output.headers[_xarc]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CopyPartResult = de_CopyPartResult(data, context); @@ -8330,11 +7393,11 @@ const de_BucketAlreadyOwnedByYouRes = async ( const de_InvalidObjectStateRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body; - if (data["AccessTier"] !== undefined) { - contents.AccessTier = __expectString(data["AccessTier"]); + if (data[_AT] != null) { + contents[_AT] = __expectString(data[_AT]); } - if (data["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(data["StorageClass"]); + if (data[_SC] != null) { + contents[_SC] = __expectString(data[_SC]); } const exception = new InvalidObjectState({ $metadata: deserializeMetadata(parsedOutput), @@ -8496,56 +7559,45 @@ const de_StatsEvent_event = async (output: any, context: __SerdeContext): Promis * serializeAws_restXmlAbortIncompleteMultipartUpload */ const se_AbortIncompleteMultipartUpload = (input: AbortIncompleteMultipartUpload, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AbortIncompleteMultipartUpload"); - if (input.DaysAfterInitiation != null) { - const node = __XmlNode.of("DaysAfterInitiation", String(input.DaysAfterInitiation)).withName("DaysAfterInitiation"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AIMU); + if (input[_DAI] != null) { + bn.c(__XmlNode.of(_DAI, String(input[_DAI])).n(_DAI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAccelerateConfiguration */ const se_AccelerateConfiguration = (input: AccelerateConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AccelerateConfiguration"); - if (input.Status != null) { - const node = __XmlNode.of("BucketAccelerateStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ACc); + if (input[_S] != null) { + bn.c(__XmlNode.of(_BAS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAccessControlPolicy */ const se_AccessControlPolicy = (input: AccessControlPolicy, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AccessControlPolicy"); - if (input.Grants != null) { - const nodes = se_Grants(input.Grants, context); - const containerNode = new __XmlNode("AccessControlList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_ACP); + bn.lc(input, "Grants", "AccessControlList", () => se_Grants(input[_Gr]!, context)); + if (input[_O] != null) { + bn.c(se_Owner(input[_O], context).n(_O)); } - if (input.Owner != null) { - const node = se_Owner(input.Owner, context).withName("Owner"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAccessControlTranslation */ const se_AccessControlTranslation = (input: AccessControlTranslation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AccessControlTranslation"); - if (input.Owner != null) { - const node = __XmlNode.of("OwnerOverride", input.Owner).withName("Owner"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ACT); + if (input[_O] != null) { + bn.c(__XmlNode.of(_OOw, input[_O]).n(_O)); } - return bodyNode; + return bn; }; /** @@ -8555,8 +7607,8 @@ const se_AllowedHeaders = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("AllowedHeader", entry); - return node.withName("member"); + const n = __XmlNode.of(_AH, entry); + return n.n(_me); }); }; @@ -8567,8 +7619,8 @@ const se_AllowedMethods = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("AllowedMethod", entry); - return node.withName("member"); + const n = __XmlNode.of(_AM, entry); + return n.n(_me); }); }; @@ -8579,8 +7631,8 @@ const se_AllowedOrigins = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("AllowedOrigin", entry); - return node.withName("member"); + const n = __XmlNode.of(_AO, entry); + return n.n(_me); }); }; @@ -8588,193 +7640,144 @@ const se_AllowedOrigins = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlAnalyticsAndOperator */ const se_AnalyticsAndOperator = (input: AnalyticsAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AnalyticsAndOperator"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tags != null) { - const nodes = se_TagSet(input.Tags, context); - nodes.map((node: any) => { - node = node.withName("Tag"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_AAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + return bn; }; /** * serializeAws_restXmlAnalyticsConfiguration */ const se_AnalyticsConfiguration = (input: AnalyticsConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AnalyticsConfiguration"); - if (input.Id != null) { - const node = __XmlNode.of("AnalyticsId", input.Id).withName("Id"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_AI, input[_I]).n(_I)); } - if (input.Filter != null) { - const node = se_AnalyticsFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + if (input[_F] != null) { + bn.c(se_AnalyticsFilter(input[_F], context).n(_F)); } - if (input.StorageClassAnalysis != null) { - const node = se_StorageClassAnalysis(input.StorageClassAnalysis, context).withName("StorageClassAnalysis"); - bodyNode.addChildNode(node); + if (input[_SCA] != null) { + bn.c(se_StorageClassAnalysis(input[_SCA], context).n(_SCA)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAnalyticsExportDestination */ const se_AnalyticsExportDestination = (input: AnalyticsExportDestination, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AnalyticsExportDestination"); - if (input.S3BucketDestination != null) { - const node = se_AnalyticsS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_AED); + if (input[_SBD] != null) { + bn.c(se_AnalyticsS3BucketDestination(input[_SBD], context).n(_SBD)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlAnalyticsFilter */ const se_AnalyticsFilter = (input: AnalyticsFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AnalyticsFilter"); + const bn = new __XmlNode(_AF); AnalyticsFilter.visit(input, { Prefix: (value) => { - const node = __XmlNode.of("Prefix", value).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, value).n(_P)); + } }, Tag: (value) => { - const node = se_Tag(value, context).withName("Tag"); - bodyNode.addChildNode(node); + if (input[_Ta] != null) { + bn.c(se_Tag(value, context).n(_Ta)); + } }, And: (value) => { - const node = se_AnalyticsAndOperator(value, context).withName("And"); - bodyNode.addChildNode(node); + if (input[_A] != null) { + bn.c(se_AnalyticsAndOperator(value, context).n(_A)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** * serializeAws_restXmlAnalyticsS3BucketDestination */ const se_AnalyticsS3BucketDestination = (input: AnalyticsS3BucketDestination, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("AnalyticsS3BucketDestination"); - if (input.Format != null) { - const node = __XmlNode.of("AnalyticsS3ExportFileFormat", input.Format).withName("Format"); - bodyNode.addChildNode(node); - } - if (input.BucketAccountId != null) { - const node = __XmlNode.of("AccountId", input.BucketAccountId).withName("BucketAccountId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ASBD); + if (input[_Fo] != null) { + bn.c(__XmlNode.of(_ASEFF, input[_Fo]).n(_Fo)); } - if (input.Bucket != null) { - const node = __XmlNode.of("BucketName", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + if (input[_BAI] != null) { + bn.c(__XmlNode.of(_AIc, input[_BAI]).n(_BAI)); } - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); } - return bodyNode; + bn.cc(input, _P); + return bn; }; /** * serializeAws_restXmlBucketInfo */ const se_BucketInfo = (input: BucketInfo, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("BucketInfo"); - if (input.DataRedundancy != null) { - const node = __XmlNode.of("DataRedundancy", input.DataRedundancy).withName("DataRedundancy"); - bodyNode.addChildNode(node); - } - if (input.Type != null) { - const node = __XmlNode.of("BucketType", input.Type).withName("Type"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_BI); + bn.cc(input, _DR); + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_BT, input[_Ty]).n(_Ty)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlBucketLifecycleConfiguration */ const se_BucketLifecycleConfiguration = (input: BucketLifecycleConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("BucketLifecycleConfiguration"); - if (input.Rules != null) { - const nodes = se_LifecycleRules(input.Rules, context); - nodes.map((node: any) => { - node = node.withName("Rule"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_BLC); + bn.l(input, "Rules", "Rule", () => se_LifecycleRules(input[_Rul]!, context)); + return bn; }; /** * serializeAws_restXmlBucketLoggingStatus */ const se_BucketLoggingStatus = (input: BucketLoggingStatus, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("BucketLoggingStatus"); - if (input.LoggingEnabled != null) { - const node = se_LoggingEnabled(input.LoggingEnabled, context).withName("LoggingEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_BLS); + if (input[_LE] != null) { + bn.c(se_LoggingEnabled(input[_LE], context).n(_LE)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCompletedMultipartUpload */ const se_CompletedMultipartUpload = (input: CompletedMultipartUpload, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CompletedMultipartUpload"); - if (input.Parts != null) { - const nodes = se_CompletedPartList(input.Parts, context); - nodes.map((node: any) => { - node = node.withName("Part"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_CMU); + bn.l(input, "Parts", "Part", () => se_CompletedPartList(input[_Part]!, context)); + return bn; }; /** * serializeAws_restXmlCompletedPart */ const se_CompletedPart = (input: CompletedPart, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CompletedPart"); - if (input.ETag != null) { - const node = __XmlNode.of("ETag", input.ETag).withName("ETag"); - bodyNode.addChildNode(node); - } - if (input.ChecksumCRC32 != null) { - const node = __XmlNode.of("ChecksumCRC32", input.ChecksumCRC32).withName("ChecksumCRC32"); - bodyNode.addChildNode(node); - } - if (input.ChecksumCRC32C != null) { - const node = __XmlNode.of("ChecksumCRC32C", input.ChecksumCRC32C).withName("ChecksumCRC32C"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CPo); + bn.cc(input, _ETa); + bn.cc(input, _CCRC); + bn.cc(input, _CCRCC); + bn.cc(input, _CSHA); + bn.cc(input, _CSHAh); + if (input[_PN] != null) { + bn.c(__XmlNode.of(_PN, String(input[_PN])).n(_PN)); } - if (input.ChecksumSHA1 != null) { - const node = __XmlNode.of("ChecksumSHA1", input.ChecksumSHA1).withName("ChecksumSHA1"); - bodyNode.addChildNode(node); - } - if (input.ChecksumSHA256 != null) { - const node = __XmlNode.of("ChecksumSHA256", input.ChecksumSHA256).withName("ChecksumSHA256"); - bodyNode.addChildNode(node); - } - if (input.PartNumber != null) { - const node = __XmlNode.of("PartNumber", String(input.PartNumber)).withName("PartNumber"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** @@ -8784,8 +7787,8 @@ const se_CompletedPartList = (input: CompletedPart[], context: __SerdeContext): return input .filter((e: any) => e != null) .map((entry) => { - const node = se_CompletedPart(entry, context); - return node.withName("member"); + const n = se_CompletedPart(entry, context); + return n.n(_me); }); }; @@ -8793,77 +7796,35 @@ const se_CompletedPartList = (input: CompletedPart[], context: __SerdeContext): * serializeAws_restXmlCondition */ const se_Condition = (input: Condition, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Condition"); - if (input.HttpErrorCodeReturnedEquals != null) { - const node = __XmlNode - .of("HttpErrorCodeReturnedEquals", input.HttpErrorCodeReturnedEquals) - .withName("HttpErrorCodeReturnedEquals"); - bodyNode.addChildNode(node); - } - if (input.KeyPrefixEquals != null) { - const node = __XmlNode.of("KeyPrefixEquals", input.KeyPrefixEquals).withName("KeyPrefixEquals"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_Con); + bn.cc(input, _HECRE); + bn.cc(input, _KPE); + return bn; }; /** * serializeAws_restXmlCORSConfiguration */ const se_CORSConfiguration = (input: CORSConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CORSConfiguration"); - if (input.CORSRules != null) { - const nodes = se_CORSRules(input.CORSRules, context); - nodes.map((node: any) => { - node = node.withName("CORSRule"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_CORSC); + bn.l(input, "CORSRules", "CORSRule", () => se_CORSRules(input[_CORSRu]!, context)); + return bn; }; /** * serializeAws_restXmlCORSRule */ const se_CORSRule = (input: CORSRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CORSRule"); - if (input.ID != null) { - const node = __XmlNode.of("ID", input.ID).withName("ID"); - bodyNode.addChildNode(node); - } - if (input.AllowedHeaders != null) { - const nodes = se_AllowedHeaders(input.AllowedHeaders, context); - nodes.map((node: any) => { - node = node.withName("AllowedHeader"); - bodyNode.addChildNode(node); - }); - } - if (input.AllowedMethods != null) { - const nodes = se_AllowedMethods(input.AllowedMethods, context); - nodes.map((node: any) => { - node = node.withName("AllowedMethod"); - bodyNode.addChildNode(node); - }); - } - if (input.AllowedOrigins != null) { - const nodes = se_AllowedOrigins(input.AllowedOrigins, context); - nodes.map((node: any) => { - node = node.withName("AllowedOrigin"); - bodyNode.addChildNode(node); - }); - } - if (input.ExposeHeaders != null) { - const nodes = se_ExposeHeaders(input.ExposeHeaders, context); - nodes.map((node: any) => { - node = node.withName("ExposeHeader"); - bodyNode.addChildNode(node); - }); + const bn = new __XmlNode(_CORSR); + bn.cc(input, _ID_); + bn.l(input, "AllowedHeaders", "AllowedHeader", () => se_AllowedHeaders(input[_AHl]!, context)); + bn.l(input, "AllowedMethods", "AllowedMethod", () => se_AllowedMethods(input[_AMl]!, context)); + bn.l(input, "AllowedOrigins", "AllowedOrigin", () => se_AllowedOrigins(input[_AOl]!, context)); + bn.l(input, "ExposeHeaders", "ExposeHeader", () => se_ExposeHeaders(input[_EH]!, context)); + if (input[_MAS] != null) { + bn.c(__XmlNode.of(_MAS, String(input[_MAS])).n(_MAS)); } - if (input.MaxAgeSeconds != null) { - const node = __XmlNode.of("MaxAgeSeconds", String(input.MaxAgeSeconds)).withName("MaxAgeSeconds"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** @@ -8873,8 +7834,8 @@ const se_CORSRules = (input: CORSRule[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_CORSRule(entry, context); - return node.withName("member"); + const n = se_CORSRule(entry, context); + return n.n(_me); }); }; @@ -8882,227 +7843,157 @@ const se_CORSRules = (input: CORSRule[], context: __SerdeContext): any => { * serializeAws_restXmlCreateBucketConfiguration */ const se_CreateBucketConfiguration = (input: CreateBucketConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CreateBucketConfiguration"); - if (input.LocationConstraint != null) { - const node = __XmlNode.of("BucketLocationConstraint", input.LocationConstraint).withName("LocationConstraint"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CBC); + if (input[_LC] != null) { + bn.c(__XmlNode.of(_BLCu, input[_LC]).n(_LC)); } - if (input.Location != null) { - const node = se_LocationInfo(input.Location, context).withName("Location"); - bodyNode.addChildNode(node); + if (input[_L] != null) { + bn.c(se_LocationInfo(input[_L], context).n(_L)); } - if (input.Bucket != null) { - const node = se_BucketInfo(input.Bucket, context).withName("Bucket"); - bodyNode.addChildNode(node); + if (input[_B] != null) { + bn.c(se_BucketInfo(input[_B], context).n(_B)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCSVInput */ const se_CSVInput = (input: CSVInput, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CSVInput"); - if (input.FileHeaderInfo != null) { - const node = __XmlNode.of("FileHeaderInfo", input.FileHeaderInfo).withName("FileHeaderInfo"); - bodyNode.addChildNode(node); - } - if (input.Comments != null) { - const node = __XmlNode.of("Comments", input.Comments).withName("Comments"); - bodyNode.addChildNode(node); - } - if (input.QuoteEscapeCharacter != null) { - const node = __XmlNode.of("QuoteEscapeCharacter", input.QuoteEscapeCharacter).withName("QuoteEscapeCharacter"); - bodyNode.addChildNode(node); - } - if (input.RecordDelimiter != null) { - const node = __XmlNode.of("RecordDelimiter", input.RecordDelimiter).withName("RecordDelimiter"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_CSVIn); + bn.cc(input, _FHI); + bn.cc(input, _Com); + bn.cc(input, _QEC); + bn.cc(input, _RD); + bn.cc(input, _FD); + bn.cc(input, _QCuo); + if (input[_AQRD] != null) { + bn.c(__XmlNode.of(_AQRD, String(input[_AQRD])).n(_AQRD)); } - if (input.FieldDelimiter != null) { - const node = __XmlNode.of("FieldDelimiter", input.FieldDelimiter).withName("FieldDelimiter"); - bodyNode.addChildNode(node); - } - if (input.QuoteCharacter != null) { - const node = __XmlNode.of("QuoteCharacter", input.QuoteCharacter).withName("QuoteCharacter"); - bodyNode.addChildNode(node); - } - if (input.AllowQuotedRecordDelimiter != null) { - const node = __XmlNode - .of("AllowQuotedRecordDelimiter", String(input.AllowQuotedRecordDelimiter)) - .withName("AllowQuotedRecordDelimiter"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlCSVOutput */ const se_CSVOutput = (input: CSVOutput, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("CSVOutput"); - if (input.QuoteFields != null) { - const node = __XmlNode.of("QuoteFields", input.QuoteFields).withName("QuoteFields"); - bodyNode.addChildNode(node); - } - if (input.QuoteEscapeCharacter != null) { - const node = __XmlNode.of("QuoteEscapeCharacter", input.QuoteEscapeCharacter).withName("QuoteEscapeCharacter"); - bodyNode.addChildNode(node); - } - if (input.RecordDelimiter != null) { - const node = __XmlNode.of("RecordDelimiter", input.RecordDelimiter).withName("RecordDelimiter"); - bodyNode.addChildNode(node); - } - if (input.FieldDelimiter != null) { - const node = __XmlNode.of("FieldDelimiter", input.FieldDelimiter).withName("FieldDelimiter"); - bodyNode.addChildNode(node); - } - if (input.QuoteCharacter != null) { - const node = __XmlNode.of("QuoteCharacter", input.QuoteCharacter).withName("QuoteCharacter"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_CSVO); + bn.cc(input, _QF); + bn.cc(input, _QEC); + bn.cc(input, _RD); + bn.cc(input, _FD); + bn.cc(input, _QCuo); + return bn; }; /** * serializeAws_restXmlDefaultRetention */ const se_DefaultRetention = (input: DefaultRetention, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("DefaultRetention"); - if (input.Mode != null) { - const node = __XmlNode.of("ObjectLockRetentionMode", input.Mode).withName("Mode"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DRe); + if (input[_Mo] != null) { + bn.c(__XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); } - if (input.Days != null) { - const node = __XmlNode.of("Days", String(input.Days)).withName("Days"); - bodyNode.addChildNode(node); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); } - if (input.Years != null) { - const node = __XmlNode.of("Years", String(input.Years)).withName("Years"); - bodyNode.addChildNode(node); + if (input[_Y] != null) { + bn.c(__XmlNode.of(_Y, String(input[_Y])).n(_Y)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlDelete */ const se_Delete = (input: Delete, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Delete"); - if (input.Objects != null) { - const nodes = se_ObjectIdentifierList(input.Objects, context); - nodes.map((node: any) => { - node = node.withName("Object"); - bodyNode.addChildNode(node); - }); - } - if (input.Quiet != null) { - const node = __XmlNode.of("Quiet", String(input.Quiet)).withName("Quiet"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Del); + bn.l(input, "Objects", "Object", () => se_ObjectIdentifierList(input[_Ob]!, context)); + if (input[_Q] != null) { + bn.c(__XmlNode.of(_Q, String(input[_Q])).n(_Q)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlDeleteMarkerReplication */ const se_DeleteMarkerReplication = (input: DeleteMarkerReplication, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("DeleteMarkerReplication"); - if (input.Status != null) { - const node = __XmlNode.of("DeleteMarkerReplicationStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_DMR); + if (input[_S] != null) { + bn.c(__XmlNode.of(_DMRS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlDestination */ const se_Destination = (input: Destination, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Destination"); - if (input.Bucket != null) { - const node = __XmlNode.of("BucketName", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Des); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); } - if (input.Account != null) { - const node = __XmlNode.of("AccountId", input.Account).withName("Account"); - bodyNode.addChildNode(node); + if (input[_Ac] != null) { + bn.c(__XmlNode.of(_AIc, input[_Ac]).n(_Ac)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("StorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + bn.cc(input, _SC); + if (input[_ACT] != null) { + bn.c(se_AccessControlTranslation(input[_ACT], context).n(_ACT)); } - if (input.AccessControlTranslation != null) { - const node = se_AccessControlTranslation(input.AccessControlTranslation, context).withName( - "AccessControlTranslation" - ); - bodyNode.addChildNode(node); + if (input[_ECn] != null) { + bn.c(se_EncryptionConfiguration(input[_ECn], context).n(_ECn)); } - if (input.EncryptionConfiguration != null) { - const node = se_EncryptionConfiguration(input.EncryptionConfiguration, context).withName("EncryptionConfiguration"); - bodyNode.addChildNode(node); + if (input[_RTe] != null) { + bn.c(se_ReplicationTime(input[_RTe], context).n(_RTe)); } - if (input.ReplicationTime != null) { - const node = se_ReplicationTime(input.ReplicationTime, context).withName("ReplicationTime"); - bodyNode.addChildNode(node); + if (input[_Me] != null) { + bn.c(se_Metrics(input[_Me], context).n(_Me)); } - if (input.Metrics != null) { - const node = se_Metrics(input.Metrics, context).withName("Metrics"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlEncryption */ const se_Encryption = (input: Encryption, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Encryption"); - if (input.EncryptionType != null) { - const node = __XmlNode.of("ServerSideEncryption", input.EncryptionType).withName("EncryptionType"); - bodyNode.addChildNode(node); - } - if (input.KMSKeyId != null) { - const node = __XmlNode.of("SSEKMSKeyId", input.KMSKeyId).withName("KMSKeyId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_En); + if (input[_ETn] != null) { + bn.c(__XmlNode.of(_SSE, input[_ETn]).n(_ETn)); } - if (input.KMSContext != null) { - const node = __XmlNode.of("KMSContext", input.KMSContext).withName("KMSContext"); - bodyNode.addChildNode(node); + if (input[_KMSKI] != null) { + bn.c(__XmlNode.of(_SSEKMSKI, input[_KMSKI]).n(_KMSKI)); } - return bodyNode; + bn.cc(input, _KMSC); + return bn; }; /** * serializeAws_restXmlEncryptionConfiguration */ const se_EncryptionConfiguration = (input: EncryptionConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("EncryptionConfiguration"); - if (input.ReplicaKmsKeyID != null) { - const node = __XmlNode.of("ReplicaKmsKeyID", input.ReplicaKmsKeyID).withName("ReplicaKmsKeyID"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_ECn); + bn.cc(input, _RKKID); + return bn; }; /** * serializeAws_restXmlErrorDocument */ const se_ErrorDocument = (input: ErrorDocument, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ErrorDocument"); - if (input.Key != null) { - const node = __XmlNode.of("ObjectKey", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ED); + if (input[_K] != null) { + bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlEventBridgeConfiguration */ const se_EventBridgeConfiguration = (input: EventBridgeConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("EventBridgeConfiguration"); - return bodyNode; + const bn = new __XmlNode(_EBC); + return bn; }; /** @@ -9112,8 +8003,8 @@ const se_EventList = (input: Event[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Event", entry); - return node.withName("member"); + const n = __XmlNode.of(_Ev, entry); + return n.n(_me); }); }; @@ -9121,12 +8012,11 @@ const se_EventList = (input: Event[], context: __SerdeContext): any => { * serializeAws_restXmlExistingObjectReplication */ const se_ExistingObjectReplication = (input: ExistingObjectReplication, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ExistingObjectReplication"); - if (input.Status != null) { - const node = __XmlNode.of("ExistingObjectReplicationStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_EOR); + if (input[_S] != null) { + bn.c(__XmlNode.of(_EORS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** @@ -9136,8 +8026,8 @@ const se_ExposeHeaders = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("ExposeHeader", entry); - return node.withName("member"); + const n = __XmlNode.of(_EHx, entry); + return n.n(_me); }); }; @@ -9145,16 +8035,14 @@ const se_ExposeHeaders = (input: string[], context: __SerdeContext): any => { * serializeAws_restXmlFilterRule */ const se_FilterRule = (input: FilterRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("FilterRule"); - if (input.Name != null) { - const node = __XmlNode.of("FilterRuleName", input.Name).withName("Name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_FR); + if (input[_N] != null) { + bn.c(__XmlNode.of(_FRN, input[_N]).n(_N)); } - if (input.Value != null) { - const node = __XmlNode.of("FilterRuleValue", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_Va] != null) { + bn.c(__XmlNode.of(_FRV, input[_Va]).n(_Va)); } - return bodyNode; + return bn; }; /** @@ -9164,8 +8052,8 @@ const se_FilterRuleList = (input: FilterRule[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = se_FilterRule(entry, context); - return node.withName("member"); + const n = se_FilterRule(entry, context); + return n.n(_me); }); }; @@ -9173,56 +8061,36 @@ const se_FilterRuleList = (input: FilterRule[], context: __SerdeContext): any => * serializeAws_restXmlGlacierJobParameters */ const se_GlacierJobParameters = (input: GlacierJobParameters, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("GlacierJobParameters"); - if (input.Tier != null) { - const node = __XmlNode.of("Tier", input.Tier).withName("Tier"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_GJP); + bn.cc(input, _Ti); + return bn; }; /** * serializeAws_restXmlGrant */ const se_Grant = (input: Grant, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Grant"); - if (input.Grantee != null) { - const node = se_Grantee(input.Grantee, context).withName("Grantee"); - node.addAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bodyNode.addChildNode(node); - } - if (input.Permission != null) { - const node = __XmlNode.of("Permission", input.Permission).withName("Permission"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_G); + if (input[_Gra] != null) { + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); } - return bodyNode; + bn.cc(input, _Pe); + return bn; }; /** * serializeAws_restXmlGrantee */ const se_Grantee = (input: Grantee, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Grantee"); - if (input.DisplayName != null) { - const node = __XmlNode.of("DisplayName", input.DisplayName).withName("DisplayName"); - bodyNode.addChildNode(node); - } - if (input.EmailAddress != null) { - const node = __XmlNode.of("EmailAddress", input.EmailAddress).withName("EmailAddress"); - bodyNode.addChildNode(node); - } - if (input.ID != null) { - const node = __XmlNode.of("ID", input.ID).withName("ID"); - bodyNode.addChildNode(node); - } - if (input.URI != null) { - const node = __XmlNode.of("URI", input.URI).withName("URI"); - bodyNode.addChildNode(node); - } - if (input.Type != null) { - bodyNode.addAttribute("xsi:type", input.Type); - } - return bodyNode; + const bn = new __XmlNode(_Gra); + bn.cc(input, _DN); + bn.cc(input, _EA); + bn.cc(input, _ID_); + bn.cc(input, _URI); + bn.a("xsi:type", input[_Ty]); + return bn; }; /** @@ -9232,8 +8100,8 @@ const se_Grants = (input: Grant[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Grant(entry, context); - return node.withName("Grant"); + const n = se_Grant(entry, context); + return n.n(_G); }); }; @@ -9241,184 +8109,131 @@ const se_Grants = (input: Grant[], context: __SerdeContext): any => { * serializeAws_restXmlIndexDocument */ const se_IndexDocument = (input: IndexDocument, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("IndexDocument"); - if (input.Suffix != null) { - const node = __XmlNode.of("Suffix", input.Suffix).withName("Suffix"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_ID); + bn.cc(input, _Su); + return bn; }; /** * serializeAws_restXmlInputSerialization */ const se_InputSerialization = (input: InputSerialization, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InputSerialization"); - if (input.CSV != null) { - const node = se_CSVInput(input.CSV, context).withName("CSV"); - bodyNode.addChildNode(node); - } - if (input.CompressionType != null) { - const node = __XmlNode.of("CompressionType", input.CompressionType).withName("CompressionType"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_IS); + if (input[_CSV] != null) { + bn.c(se_CSVInput(input[_CSV], context).n(_CSV)); } - if (input.JSON != null) { - const node = se_JSONInput(input.JSON, context).withName("JSON"); - bodyNode.addChildNode(node); + bn.cc(input, _CTom); + if (input[_JSON] != null) { + bn.c(se_JSONInput(input[_JSON], context).n(_JSON)); } - if (input.Parquet != null) { - const node = se_ParquetInput(input.Parquet, context).withName("Parquet"); - bodyNode.addChildNode(node); + if (input[_Parq] != null) { + bn.c(se_ParquetInput(input[_Parq], context).n(_Parq)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlIntelligentTieringAndOperator */ const se_IntelligentTieringAndOperator = (input: IntelligentTieringAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("IntelligentTieringAndOperator"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tags != null) { - const nodes = se_TagSet(input.Tags, context); - nodes.map((node: any) => { - node = node.withName("Tag"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_ITAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + return bn; }; /** * serializeAws_restXmlIntelligentTieringConfiguration */ const se_IntelligentTieringConfiguration = (input: IntelligentTieringConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("IntelligentTieringConfiguration"); - if (input.Id != null) { - const node = __XmlNode.of("IntelligentTieringId", input.Id).withName("Id"); - bodyNode.addChildNode(node); - } - if (input.Filter != null) { - const node = se_IntelligentTieringFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); - } - if (input.Status != null) { - const node = __XmlNode.of("IntelligentTieringStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); - } - if (input.Tierings != null) { - const nodes = se_TieringList(input.Tierings, context); - nodes.map((node: any) => { - node = node.withName("Tiering"); - bodyNode.addChildNode(node); - }); + const bn = new __XmlNode(_ITC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_ITI, input[_I]).n(_I)); + } + if (input[_F] != null) { + bn.c(se_IntelligentTieringFilter(input[_F], context).n(_F)); } - return bodyNode; + if (input[_S] != null) { + bn.c(__XmlNode.of(_ITS, input[_S]).n(_S)); + } + bn.l(input, "Tierings", "Tiering", () => se_TieringList(input[_Tie]!, context)); + return bn; }; /** * serializeAws_restXmlIntelligentTieringFilter */ const se_IntelligentTieringFilter = (input: IntelligentTieringFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("IntelligentTieringFilter"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tag != null) { - const node = se_Tag(input.Tag, context).withName("Tag"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ITF); + bn.cc(input, _P); + if (input[_Ta] != null) { + bn.c(se_Tag(input[_Ta], context).n(_Ta)); } - if (input.And != null) { - const node = se_IntelligentTieringAndOperator(input.And, context).withName("And"); - bodyNode.addChildNode(node); + if (input[_A] != null) { + bn.c(se_IntelligentTieringAndOperator(input[_A], context).n(_A)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlInventoryConfiguration */ const se_InventoryConfiguration = (input: InventoryConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InventoryConfiguration"); - if (input.Destination != null) { - const node = se_InventoryDestination(input.Destination, context).withName("Destination"); - bodyNode.addChildNode(node); - } - if (input.IsEnabled != null) { - const node = __XmlNode.of("IsEnabled", String(input.IsEnabled)).withName("IsEnabled"); - bodyNode.addChildNode(node); - } - if (input.Filter != null) { - const node = se_InventoryFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); - } - if (input.Id != null) { - const node = __XmlNode.of("InventoryId", input.Id).withName("Id"); - bodyNode.addChildNode(node); - } - if (input.IncludedObjectVersions != null) { - const node = __XmlNode - .of("InventoryIncludedObjectVersions", input.IncludedObjectVersions) - .withName("IncludedObjectVersions"); - bodyNode.addChildNode(node); - } - if (input.OptionalFields != null) { - const nodes = se_InventoryOptionalFields(input.OptionalFields, context); - const containerNode = new __XmlNode("OptionalFields"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_IC); + if (input[_Des] != null) { + bn.c(se_InventoryDestination(input[_Des], context).n(_Des)); + } + if (input[_IE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_IE])).n(_IE)); + } + if (input[_F] != null) { + bn.c(se_InventoryFilter(input[_F], context).n(_F)); + } + if (input[_I] != null) { + bn.c(__XmlNode.of(_II, input[_I]).n(_I)); + } + if (input[_IOV] != null) { + bn.c(__XmlNode.of(_IIOV, input[_IOV]).n(_IOV)); } - if (input.Schedule != null) { - const node = se_InventorySchedule(input.Schedule, context).withName("Schedule"); - bodyNode.addChildNode(node); + bn.lc(input, "OptionalFields", "OptionalFields", () => se_InventoryOptionalFields(input[_OF]!, context)); + if (input[_Sc] != null) { + bn.c(se_InventorySchedule(input[_Sc], context).n(_Sc)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlInventoryDestination */ const se_InventoryDestination = (input: InventoryDestination, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InventoryDestination"); - if (input.S3BucketDestination != null) { - const node = se_InventoryS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_IDn); + if (input[_SBD] != null) { + bn.c(se_InventoryS3BucketDestination(input[_SBD], context).n(_SBD)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlInventoryEncryption */ const se_InventoryEncryption = (input: InventoryEncryption, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InventoryEncryption"); - if (input.SSES3 != null) { - const node = se_SSES3(input.SSES3, context).withName("SSE-S3"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_IEn); + if (input[_SSES] != null) { + bn.c(se_SSES3(input[_SSES], context).n(_SS)); } - if (input.SSEKMS != null) { - const node = se_SSEKMS(input.SSEKMS, context).withName("SSE-KMS"); - bodyNode.addChildNode(node); + if (input[_SSEKMS] != null) { + bn.c(se_SSEKMS(input[_SSEKMS], context).n(_SK)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlInventoryFilter */ const se_InventoryFilter = (input: InventoryFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InventoryFilter"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_IF); + bn.cc(input, _P); + return bn; }; /** @@ -9428,8 +8243,8 @@ const se_InventoryOptionalFields = (input: InventoryOptionalField[], context: __ return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("InventoryOptionalField", entry); - return node.withName("Field"); + const n = __XmlNode.of(_IOF, entry); + return n.n(_Fi); }); }; @@ -9437,91 +8252,68 @@ const se_InventoryOptionalFields = (input: InventoryOptionalField[], context: __ * serializeAws_restXmlInventoryS3BucketDestination */ const se_InventoryS3BucketDestination = (input: InventoryS3BucketDestination, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InventoryS3BucketDestination"); - if (input.AccountId != null) { - const node = __XmlNode.of("AccountId", input.AccountId).withName("AccountId"); - bodyNode.addChildNode(node); - } - if (input.Bucket != null) { - const node = __XmlNode.of("BucketName", input.Bucket).withName("Bucket"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ISBD); + bn.cc(input, _AIc); + if (input[_B] != null) { + bn.c(__XmlNode.of(_BN, input[_B]).n(_B)); } - if (input.Format != null) { - const node = __XmlNode.of("InventoryFormat", input.Format).withName("Format"); - bodyNode.addChildNode(node); + if (input[_Fo] != null) { + bn.c(__XmlNode.of(_IFn, input[_Fo]).n(_Fo)); } - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + bn.cc(input, _P); + if (input[_En] != null) { + bn.c(se_InventoryEncryption(input[_En], context).n(_En)); } - if (input.Encryption != null) { - const node = se_InventoryEncryption(input.Encryption, context).withName("Encryption"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlInventorySchedule */ const se_InventorySchedule = (input: InventorySchedule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("InventorySchedule"); - if (input.Frequency != null) { - const node = __XmlNode.of("InventoryFrequency", input.Frequency).withName("Frequency"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ISn); + if (input[_Fr] != null) { + bn.c(__XmlNode.of(_IFnv, input[_Fr]).n(_Fr)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlJSONInput */ const se_JSONInput = (input: JSONInput, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JSONInput"); - if (input.Type != null) { - const node = __XmlNode.of("JSONType", input.Type).withName("Type"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_JSONI); + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_JSONT, input[_Ty]).n(_Ty)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlJSONOutput */ const se_JSONOutput = (input: JSONOutput, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("JSONOutput"); - if (input.RecordDelimiter != null) { - const node = __XmlNode.of("RecordDelimiter", input.RecordDelimiter).withName("RecordDelimiter"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_JSONO); + bn.cc(input, _RD); + return bn; }; /** * serializeAws_restXmlLambdaFunctionConfiguration */ const se_LambdaFunctionConfiguration = (input: LambdaFunctionConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LambdaFunctionConfiguration"); - if (input.Id != null) { - const node = __XmlNode.of("NotificationId", input.Id).withName("Id"); - bodyNode.addChildNode(node); - } - if (input.LambdaFunctionArn != null) { - const node = __XmlNode.of("LambdaFunctionArn", input.LambdaFunctionArn).withName("CloudFunction"); - bodyNode.addChildNode(node); - } - if (input.Events != null) { - const nodes = se_EventList(input.Events, context); - nodes.map((node: any) => { - node = node.withName("Event"); - bodyNode.addChildNode(node); - }); + const bn = new __XmlNode(_LFCa); + if (input[_I] != null) { + bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); + } + if (input[_LFA] != null) { + bn.c(__XmlNode.of(_LFA, input[_LFA]).n(_CF)); } - if (input.Filter != null) { - const node = se_NotificationConfigurationFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); + if (input[_F] != null) { + bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); } - return bodyNode; + return bn; }; /** @@ -9531,8 +8323,8 @@ const se_LambdaFunctionConfigurationList = (input: LambdaFunctionConfiguration[] return input .filter((e: any) => e != null) .map((entry) => { - const node = se_LambdaFunctionConfiguration(entry, context); - return node.withName("member"); + const n = se_LambdaFunctionConfiguration(entry, context); + return n.n(_me); }); }; @@ -9540,143 +8332,103 @@ const se_LambdaFunctionConfigurationList = (input: LambdaFunctionConfiguration[] * serializeAws_restXmlLifecycleExpiration */ const se_LifecycleExpiration = (input: LifecycleExpiration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleExpiration"); - if (input.Date != null) { - const node = __XmlNode.of("Date", (input.Date.toISOString().split(".")[0] + "Z").toString()).withName("Date"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LEi); + if (input[_Dat] != null) { + bn.c(__XmlNode.of(_Dat, (input[_Dat].toISOString().split(".")[0] + "Z").toString()).n(_Dat)); } - if (input.Days != null) { - const node = __XmlNode.of("Days", String(input.Days)).withName("Days"); - bodyNode.addChildNode(node); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); } - if (input.ExpiredObjectDeleteMarker != null) { - const node = __XmlNode - .of("ExpiredObjectDeleteMarker", String(input.ExpiredObjectDeleteMarker)) - .withName("ExpiredObjectDeleteMarker"); - bodyNode.addChildNode(node); + if (input[_EODM] != null) { + bn.c(__XmlNode.of(_EODM, String(input[_EODM])).n(_EODM)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlLifecycleRule */ const se_LifecycleRule = (input: LifecycleRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleRule"); - if (input.Expiration != null) { - const node = se_LifecycleExpiration(input.Expiration, context).withName("Expiration"); - bodyNode.addChildNode(node); - } - if (input.ID != null) { - const node = __XmlNode.of("ID", input.ID).withName("ID"); - bodyNode.addChildNode(node); - } - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Filter != null) { - const node = se_LifecycleRuleFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); - } - if (input.Status != null) { - const node = __XmlNode.of("ExpirationStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); - } - if (input.Transitions != null) { - const nodes = se_TransitionList(input.Transitions, context); - nodes.map((node: any) => { - node = node.withName("Transition"); - bodyNode.addChildNode(node); - }); + const bn = new __XmlNode(_LR); + if (input[_Exp] != null) { + bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp)); } - if (input.NoncurrentVersionTransitions != null) { - const nodes = se_NoncurrentVersionTransitionList(input.NoncurrentVersionTransitions, context); - nodes.map((node: any) => { - node = node.withName("NoncurrentVersionTransition"); - bodyNode.addChildNode(node); - }); + bn.cc(input, _ID_); + bn.cc(input, _P); + if (input[_F] != null) { + bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F)); + } + if (input[_S] != null) { + bn.c(__XmlNode.of(_ES, input[_S]).n(_S)); } - if (input.NoncurrentVersionExpiration != null) { - const node = se_NoncurrentVersionExpiration(input.NoncurrentVersionExpiration, context).withName( - "NoncurrentVersionExpiration" - ); - bodyNode.addChildNode(node); + bn.l(input, "Transitions", "Transition", () => se_TransitionList(input[_Tr]!, context)); + bn.l(input, "NoncurrentVersionTransitions", "NoncurrentVersionTransition", () => + se_NoncurrentVersionTransitionList(input[_NVT]!, context) + ); + if (input[_NVE] != null) { + bn.c(se_NoncurrentVersionExpiration(input[_NVE], context).n(_NVE)); } - if (input.AbortIncompleteMultipartUpload != null) { - const node = se_AbortIncompleteMultipartUpload(input.AbortIncompleteMultipartUpload, context).withName( - "AbortIncompleteMultipartUpload" - ); - bodyNode.addChildNode(node); + if (input[_AIMU] != null) { + bn.c(se_AbortIncompleteMultipartUpload(input[_AIMU], context).n(_AIMU)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlLifecycleRuleAndOperator */ const se_LifecycleRuleAndOperator = (input: LifecycleRuleAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleRuleAndOperator"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tags != null) { - const nodes = se_TagSet(input.Tags, context); - nodes.map((node: any) => { - node = node.withName("Tag"); - bodyNode.addChildNode(node); - }); - } - if (input.ObjectSizeGreaterThan != null) { - const node = __XmlNode - .of("ObjectSizeGreaterThanBytes", String(input.ObjectSizeGreaterThan)) - .withName("ObjectSizeGreaterThan"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LRAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + if (input[_OSGT] != null) { + bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); } - if (input.ObjectSizeLessThan != null) { - const node = __XmlNode - .of("ObjectSizeLessThanBytes", String(input.ObjectSizeLessThan)) - .withName("ObjectSizeLessThan"); - bodyNode.addChildNode(node); + if (input[_OSLT] != null) { + bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlLifecycleRuleFilter */ const se_LifecycleRuleFilter = (input: LifecycleRuleFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LifecycleRuleFilter"); + const bn = new __XmlNode(_LRF); LifecycleRuleFilter.visit(input, { Prefix: (value) => { - const node = __XmlNode.of("Prefix", value).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, value).n(_P)); + } }, Tag: (value) => { - const node = se_Tag(value, context).withName("Tag"); - bodyNode.addChildNode(node); + if (input[_Ta] != null) { + bn.c(se_Tag(value, context).n(_Ta)); + } }, ObjectSizeGreaterThan: (value) => { - const node = __XmlNode.of("ObjectSizeGreaterThanBytes", String(value)).withName("ObjectSizeGreaterThan"); - bodyNode.addChildNode(node); + if (input[_OSGT] != null) { + bn.c(__XmlNode.of(_OSGTB, String(value)).n(_OSGT)); + } }, ObjectSizeLessThan: (value) => { - const node = __XmlNode.of("ObjectSizeLessThanBytes", String(value)).withName("ObjectSizeLessThan"); - bodyNode.addChildNode(node); + if (input[_OSLT] != null) { + bn.c(__XmlNode.of(_OSLTB, String(value)).n(_OSLT)); + } }, And: (value) => { - const node = se_LifecycleRuleAndOperator(value, context).withName("And"); - bodyNode.addChildNode(node); + if (input[_A] != null) { + bn.c(se_LifecycleRuleAndOperator(value, context).n(_A)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** @@ -9686,8 +8438,8 @@ const se_LifecycleRules = (input: LifecycleRule[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = se_LifecycleRule(entry, context); - return node.withName("member"); + const n = se_LifecycleRule(entry, context); + return n.n(_me); }); }; @@ -9695,187 +8447,148 @@ const se_LifecycleRules = (input: LifecycleRule[], context: __SerdeContext): any * serializeAws_restXmlLocationInfo */ const se_LocationInfo = (input: LocationInfo, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LocationInfo"); - if (input.Type != null) { - const node = __XmlNode.of("LocationType", input.Type).withName("Type"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LI); + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_LT, input[_Ty]).n(_Ty)); } - if (input.Name != null) { - const node = __XmlNode.of("LocationNameAsString", input.Name).withName("Name"); - bodyNode.addChildNode(node); + if (input[_N] != null) { + bn.c(__XmlNode.of(_LNAS, input[_N]).n(_N)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlLoggingEnabled */ const se_LoggingEnabled = (input: LoggingEnabled, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("LoggingEnabled"); - if (input.TargetBucket != null) { - const node = __XmlNode.of("TargetBucket", input.TargetBucket).withName("TargetBucket"); - bodyNode.addChildNode(node); - } - if (input.TargetGrants != null) { - const nodes = se_TargetGrants(input.TargetGrants, context); - const containerNode = new __XmlNode("TargetGrants"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.TargetPrefix != null) { - const node = __XmlNode.of("TargetPrefix", input.TargetPrefix).withName("TargetPrefix"); - bodyNode.addChildNode(node); - } - if (input.TargetObjectKeyFormat != null) { - const node = se_TargetObjectKeyFormat(input.TargetObjectKeyFormat, context).withName("TargetObjectKeyFormat"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_LE); + bn.cc(input, _TB); + bn.lc(input, "TargetGrants", "TargetGrants", () => se_TargetGrants(input[_TG]!, context)); + bn.cc(input, _TP); + if (input[_TOKF] != null) { + bn.c(se_TargetObjectKeyFormat(input[_TOKF], context).n(_TOKF)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlMetadataEntry */ const se_MetadataEntry = (input: MetadataEntry, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MetadataEntry"); - if (input.Name != null) { - const node = __XmlNode.of("MetadataKey", input.Name).withName("Name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_ME); + if (input[_N] != null) { + bn.c(__XmlNode.of(_MKe, input[_N]).n(_N)); } - if (input.Value != null) { - const node = __XmlNode.of("MetadataValue", input.Value).withName("Value"); - bodyNode.addChildNode(node); + if (input[_Va] != null) { + bn.c(__XmlNode.of(_MV, input[_Va]).n(_Va)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlMetrics */ const se_Metrics = (input: Metrics, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Metrics"); - if (input.Status != null) { - const node = __XmlNode.of("MetricsStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Me); + if (input[_S] != null) { + bn.c(__XmlNode.of(_MS, input[_S]).n(_S)); } - if (input.EventThreshold != null) { - const node = se_ReplicationTimeValue(input.EventThreshold, context).withName("EventThreshold"); - bodyNode.addChildNode(node); + if (input[_ETv] != null) { + bn.c(se_ReplicationTimeValue(input[_ETv], context).n(_ETv)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlMetricsAndOperator */ const se_MetricsAndOperator = (input: MetricsAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MetricsAndOperator"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tags != null) { - const nodes = se_TagSet(input.Tags, context); - nodes.map((node: any) => { - node = node.withName("Tag"); - bodyNode.addChildNode(node); - }); - } - if (input.AccessPointArn != null) { - const node = __XmlNode.of("AccessPointArn", input.AccessPointArn).withName("AccessPointArn"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_MAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + bn.cc(input, _APAc); + return bn; }; /** * serializeAws_restXmlMetricsConfiguration */ const se_MetricsConfiguration = (input: MetricsConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MetricsConfiguration"); - if (input.Id != null) { - const node = __XmlNode.of("MetricsId", input.Id).withName("Id"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_MC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_MI, input[_I]).n(_I)); } - if (input.Filter != null) { - const node = se_MetricsFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + if (input[_F] != null) { + bn.c(se_MetricsFilter(input[_F], context).n(_F)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlMetricsFilter */ const se_MetricsFilter = (input: MetricsFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("MetricsFilter"); + const bn = new __XmlNode(_MF); MetricsFilter.visit(input, { Prefix: (value) => { - const node = __XmlNode.of("Prefix", value).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, value).n(_P)); + } }, Tag: (value) => { - const node = se_Tag(value, context).withName("Tag"); - bodyNode.addChildNode(node); + if (input[_Ta] != null) { + bn.c(se_Tag(value, context).n(_Ta)); + } }, AccessPointArn: (value) => { - const node = __XmlNode.of("AccessPointArn", value).withName("AccessPointArn"); - bodyNode.addChildNode(node); + if (input[_APAc] != null) { + bn.c(__XmlNode.of(_APAc, value).n(_APAc)); + } }, And: (value) => { - const node = se_MetricsAndOperator(value, context).withName("And"); - bodyNode.addChildNode(node); + if (input[_A] != null) { + bn.c(se_MetricsAndOperator(value, context).n(_A)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** * serializeAws_restXmlNoncurrentVersionExpiration */ const se_NoncurrentVersionExpiration = (input: NoncurrentVersionExpiration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("NoncurrentVersionExpiration"); - if (input.NoncurrentDays != null) { - const node = __XmlNode.of("Days", String(input.NoncurrentDays)).withName("NoncurrentDays"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_NVE); + if (input[_ND] != null) { + bn.c(__XmlNode.of(_Da, String(input[_ND])).n(_ND)); } - if (input.NewerNoncurrentVersions != null) { - const node = __XmlNode - .of("VersionCount", String(input.NewerNoncurrentVersions)) - .withName("NewerNoncurrentVersions"); - bodyNode.addChildNode(node); + if (input[_NNV] != null) { + bn.c(__XmlNode.of(_VC, String(input[_NNV])).n(_NNV)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlNoncurrentVersionTransition */ const se_NoncurrentVersionTransition = (input: NoncurrentVersionTransition, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("NoncurrentVersionTransition"); - if (input.NoncurrentDays != null) { - const node = __XmlNode.of("Days", String(input.NoncurrentDays)).withName("NoncurrentDays"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_NVTo); + if (input[_ND] != null) { + bn.c(__XmlNode.of(_Da, String(input[_ND])).n(_ND)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("TransitionStorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + if (input[_SC] != null) { + bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); } - if (input.NewerNoncurrentVersions != null) { - const node = __XmlNode - .of("VersionCount", String(input.NewerNoncurrentVersions)) - .withName("NewerNoncurrentVersions"); - bodyNode.addChildNode(node); + if (input[_NNV] != null) { + bn.c(__XmlNode.of(_VC, String(input[_NNV])).n(_NNV)); } - return bodyNode; + return bn; }; /** @@ -9885,8 +8598,8 @@ const se_NoncurrentVersionTransitionList = (input: NoncurrentVersionTransition[] return input .filter((e: any) => e != null) .map((entry) => { - const node = se_NoncurrentVersionTransition(entry, context); - return node.withName("member"); + const n = se_NoncurrentVersionTransition(entry, context); + return n.n(_me); }); }; @@ -9894,63 +8607,41 @@ const se_NoncurrentVersionTransitionList = (input: NoncurrentVersionTransition[] * serializeAws_restXmlNotificationConfiguration */ const se_NotificationConfiguration = (input: NotificationConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("NotificationConfiguration"); - if (input.TopicConfigurations != null) { - const nodes = se_TopicConfigurationList(input.TopicConfigurations, context); - nodes.map((node: any) => { - node = node.withName("TopicConfiguration"); - bodyNode.addChildNode(node); - }); - } - if (input.QueueConfigurations != null) { - const nodes = se_QueueConfigurationList(input.QueueConfigurations, context); - nodes.map((node: any) => { - node = node.withName("QueueConfiguration"); - bodyNode.addChildNode(node); - }); - } - if (input.LambdaFunctionConfigurations != null) { - const nodes = se_LambdaFunctionConfigurationList(input.LambdaFunctionConfigurations, context); - nodes.map((node: any) => { - node = node.withName("CloudFunctionConfiguration"); - bodyNode.addChildNode(node); - }); - } - if (input.EventBridgeConfiguration != null) { - const node = se_EventBridgeConfiguration(input.EventBridgeConfiguration, context).withName( - "EventBridgeConfiguration" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_NC); + bn.l(input, "TopicConfigurations", "TopicConfiguration", () => se_TopicConfigurationList(input[_TCop]!, context)); + bn.l(input, "QueueConfigurations", "QueueConfiguration", () => se_QueueConfigurationList(input[_QCu]!, context)); + bn.l(input, "LambdaFunctionConfigurations", "CloudFunctionConfiguration", () => + se_LambdaFunctionConfigurationList(input[_LFC]!, context) + ); + if (input[_EBC] != null) { + bn.c(se_EventBridgeConfiguration(input[_EBC], context).n(_EBC)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlNotificationConfigurationFilter */ const se_NotificationConfigurationFilter = (input: NotificationConfigurationFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("NotificationConfigurationFilter"); - if (input.Key != null) { - const node = se_S3KeyFilter(input.Key, context).withName("S3Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_NCF); + if (input[_K] != null) { + bn.c(se_S3KeyFilter(input[_K], context).n(_SKe)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlObjectIdentifier */ const se_ObjectIdentifier = (input: ObjectIdentifier, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ObjectIdentifier"); - if (input.Key != null) { - const node = __XmlNode.of("ObjectKey", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OI); + if (input[_K] != null) { + bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); } - if (input.VersionId != null) { - const node = __XmlNode.of("ObjectVersionId", input.VersionId).withName("VersionId"); - bodyNode.addChildNode(node); + if (input[_VI] != null) { + bn.c(__XmlNode.of(_OVI, input[_VI]).n(_VI)); } - return bodyNode; + return bn; }; /** @@ -9960,8 +8651,8 @@ const se_ObjectIdentifierList = (input: ObjectIdentifier[], context: __SerdeCont return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ObjectIdentifier(entry, context); - return node.withName("member"); + const n = se_ObjectIdentifier(entry, context); + return n.n(_me); }); }; @@ -9969,129 +8660,101 @@ const se_ObjectIdentifierList = (input: ObjectIdentifier[], context: __SerdeCont * serializeAws_restXmlObjectLockConfiguration */ const se_ObjectLockConfiguration = (input: ObjectLockConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ObjectLockConfiguration"); - if (input.ObjectLockEnabled != null) { - const node = __XmlNode.of("ObjectLockEnabled", input.ObjectLockEnabled).withName("ObjectLockEnabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OLC); + bn.cc(input, _OLE); + if (input[_Ru] != null) { + bn.c(se_ObjectLockRule(input[_Ru], context).n(_Ru)); } - if (input.Rule != null) { - const node = se_ObjectLockRule(input.Rule, context).withName("Rule"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlObjectLockLegalHold */ const se_ObjectLockLegalHold = (input: ObjectLockLegalHold, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ObjectLockLegalHold"); - if (input.Status != null) { - const node = __XmlNode.of("ObjectLockLegalHoldStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OLLH); + if (input[_S] != null) { + bn.c(__XmlNode.of(_OLLHS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlObjectLockRetention */ const se_ObjectLockRetention = (input: ObjectLockRetention, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ObjectLockRetention"); - if (input.Mode != null) { - const node = __XmlNode.of("ObjectLockRetentionMode", input.Mode).withName("Mode"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OLR); + if (input[_Mo] != null) { + bn.c(__XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); } - if (input.RetainUntilDate != null) { - const node = __XmlNode - .of("Date", (input.RetainUntilDate.toISOString().split(".")[0] + "Z").toString()) - .withName("RetainUntilDate"); - bodyNode.addChildNode(node); + if (input[_RUD] != null) { + bn.c(__XmlNode.of(_Dat, (input[_RUD].toISOString().split(".")[0] + "Z").toString()).n(_RUD)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlObjectLockRule */ const se_ObjectLockRule = (input: ObjectLockRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ObjectLockRule"); - if (input.DefaultRetention != null) { - const node = se_DefaultRetention(input.DefaultRetention, context).withName("DefaultRetention"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OLRb); + if (input[_DRe] != null) { + bn.c(se_DefaultRetention(input[_DRe], context).n(_DRe)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOutputLocation */ const se_OutputLocation = (input: OutputLocation, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OutputLocation"); - if (input.S3 != null) { - const node = se_S3Location(input.S3, context).withName("S3"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OL); + if (input[_S_] != null) { + bn.c(se_S3Location(input[_S_], context).n(_S_)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOutputSerialization */ const se_OutputSerialization = (input: OutputSerialization, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OutputSerialization"); - if (input.CSV != null) { - const node = se_CSVOutput(input.CSV, context).withName("CSV"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_OS); + if (input[_CSV] != null) { + bn.c(se_CSVOutput(input[_CSV], context).n(_CSV)); } - if (input.JSON != null) { - const node = se_JSONOutput(input.JSON, context).withName("JSON"); - bodyNode.addChildNode(node); + if (input[_JSON] != null) { + bn.c(se_JSONOutput(input[_JSON], context).n(_JSON)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlOwner */ const se_Owner = (input: Owner, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Owner"); - if (input.DisplayName != null) { - const node = __XmlNode.of("DisplayName", input.DisplayName).withName("DisplayName"); - bodyNode.addChildNode(node); - } - if (input.ID != null) { - const node = __XmlNode.of("ID", input.ID).withName("ID"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_O); + bn.cc(input, _DN); + bn.cc(input, _ID_); + return bn; }; /** * serializeAws_restXmlOwnershipControls */ const se_OwnershipControls = (input: OwnershipControls, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OwnershipControls"); - if (input.Rules != null) { - const nodes = se_OwnershipControlsRules(input.Rules, context); - nodes.map((node: any) => { - node = node.withName("Rule"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_OC); + bn.l(input, "Rules", "Rule", () => se_OwnershipControlsRules(input[_Rul]!, context)); + return bn; }; /** * serializeAws_restXmlOwnershipControlsRule */ const se_OwnershipControlsRule = (input: OwnershipControlsRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("OwnershipControlsRule"); - if (input.ObjectOwnership != null) { - const node = __XmlNode.of("ObjectOwnership", input.ObjectOwnership).withName("ObjectOwnership"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_OCR); + bn.cc(input, _OO); + return bn; }; /** @@ -10101,8 +8764,8 @@ const se_OwnershipControlsRules = (input: OwnershipControlsRule[], context: __Se return input .filter((e: any) => e != null) .map((entry) => { - const node = se_OwnershipControlsRule(entry, context); - return node.withName("member"); + const n = se_OwnershipControlsRule(entry, context); + return n.n(_me); }); }; @@ -10110,71 +8773,55 @@ const se_OwnershipControlsRules = (input: OwnershipControlsRule[], context: __Se * serializeAws_restXmlParquetInput */ const se_ParquetInput = (input: ParquetInput, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ParquetInput"); - return bodyNode; + const bn = new __XmlNode(_PI); + return bn; }; /** * serializeAws_restXmlPartitionedPrefix */ const se_PartitionedPrefix = (input: PartitionedPrefix, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PartitionedPrefix"); - if (input.PartitionDateSource != null) { - const node = __XmlNode.of("PartitionDateSource", input.PartitionDateSource).withName("PartitionDateSource"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_PP); + bn.cc(input, _PDS); + return bn; }; /** * serializeAws_restXmlPublicAccessBlockConfiguration */ const se_PublicAccessBlockConfiguration = (input: PublicAccessBlockConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PublicAccessBlockConfiguration"); - if (input.BlockPublicAcls != null) { - const node = __XmlNode.of("Setting", String(input.BlockPublicAcls)).withName("BlockPublicAcls"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PABC); + if (input[_BPA] != null) { + bn.c(__XmlNode.of(_Se, String(input[_BPA])).n(_BPA)); } - if (input.IgnorePublicAcls != null) { - const node = __XmlNode.of("Setting", String(input.IgnorePublicAcls)).withName("IgnorePublicAcls"); - bodyNode.addChildNode(node); + if (input[_IPA] != null) { + bn.c(__XmlNode.of(_Se, String(input[_IPA])).n(_IPA)); } - if (input.BlockPublicPolicy != null) { - const node = __XmlNode.of("Setting", String(input.BlockPublicPolicy)).withName("BlockPublicPolicy"); - bodyNode.addChildNode(node); + if (input[_BPP] != null) { + bn.c(__XmlNode.of(_Se, String(input[_BPP])).n(_BPP)); } - if (input.RestrictPublicBuckets != null) { - const node = __XmlNode.of("Setting", String(input.RestrictPublicBuckets)).withName("RestrictPublicBuckets"); - bodyNode.addChildNode(node); + if (input[_RPB] != null) { + bn.c(__XmlNode.of(_Se, String(input[_RPB])).n(_RPB)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlQueueConfiguration */ const se_QueueConfiguration = (input: QueueConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("QueueConfiguration"); - if (input.Id != null) { - const node = __XmlNode.of("NotificationId", input.Id).withName("Id"); - bodyNode.addChildNode(node); - } - if (input.QueueArn != null) { - const node = __XmlNode.of("QueueArn", input.QueueArn).withName("Queue"); - bodyNode.addChildNode(node); - } - if (input.Events != null) { - const nodes = se_EventList(input.Events, context); - nodes.map((node: any) => { - node = node.withName("Event"); - bodyNode.addChildNode(node); - }); + const bn = new __XmlNode(_QC); + if (input[_I] != null) { + bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); + } + if (input[_QA] != null) { + bn.c(__XmlNode.of(_QA, input[_QA]).n(_Qu)); } - if (input.Filter != null) { - const node = se_NotificationConfigurationFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); + if (input[_F] != null) { + bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); } - return bodyNode; + return bn; }; /** @@ -10184,8 +8831,8 @@ const se_QueueConfigurationList = (input: QueueConfiguration[], context: __Serde return input .filter((e: any) => e != null) .map((entry) => { - const node = se_QueueConfiguration(entry, context); - return node.withName("member"); + const n = se_QueueConfiguration(entry, context); + return n.n(_me); }); }; @@ -10193,168 +8840,116 @@ const se_QueueConfigurationList = (input: QueueConfiguration[], context: __Serde * serializeAws_restXmlRedirect */ const se_Redirect = (input: Redirect, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Redirect"); - if (input.HostName != null) { - const node = __XmlNode.of("HostName", input.HostName).withName("HostName"); - bodyNode.addChildNode(node); - } - if (input.HttpRedirectCode != null) { - const node = __XmlNode.of("HttpRedirectCode", input.HttpRedirectCode).withName("HttpRedirectCode"); - bodyNode.addChildNode(node); - } - if (input.Protocol != null) { - const node = __XmlNode.of("Protocol", input.Protocol).withName("Protocol"); - bodyNode.addChildNode(node); - } - if (input.ReplaceKeyPrefixWith != null) { - const node = __XmlNode.of("ReplaceKeyPrefixWith", input.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith"); - bodyNode.addChildNode(node); - } - if (input.ReplaceKeyWith != null) { - const node = __XmlNode.of("ReplaceKeyWith", input.ReplaceKeyWith).withName("ReplaceKeyWith"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_Red); + bn.cc(input, _HN); + bn.cc(input, _HRC); + bn.cc(input, _Pr); + bn.cc(input, _RKPW); + bn.cc(input, _RKW); + return bn; }; /** * serializeAws_restXmlRedirectAllRequestsTo */ const se_RedirectAllRequestsTo = (input: RedirectAllRequestsTo, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("RedirectAllRequestsTo"); - if (input.HostName != null) { - const node = __XmlNode.of("HostName", input.HostName).withName("HostName"); - bodyNode.addChildNode(node); - } - if (input.Protocol != null) { - const node = __XmlNode.of("Protocol", input.Protocol).withName("Protocol"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_RART); + bn.cc(input, _HN); + bn.cc(input, _Pr); + return bn; }; /** * serializeAws_restXmlReplicaModifications */ const se_ReplicaModifications = (input: ReplicaModifications, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicaModifications"); - if (input.Status != null) { - const node = __XmlNode.of("ReplicaModificationsStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RM); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RMS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlReplicationConfiguration */ const se_ReplicationConfiguration = (input: ReplicationConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationConfiguration"); - if (input.Role != null) { - const node = __XmlNode.of("Role", input.Role).withName("Role"); - bodyNode.addChildNode(node); - } - if (input.Rules != null) { - const nodes = se_ReplicationRules(input.Rules, context); - nodes.map((node: any) => { - node = node.withName("Rule"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_RCe); + bn.cc(input, _Ro); + bn.l(input, "Rules", "Rule", () => se_ReplicationRules(input[_Rul]!, context)); + return bn; }; /** * serializeAws_restXmlReplicationRule */ const se_ReplicationRule = (input: ReplicationRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationRule"); - if (input.ID != null) { - const node = __XmlNode.of("ID", input.ID).withName("ID"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RRe); + bn.cc(input, _ID_); + if (input[_Pri] != null) { + bn.c(__XmlNode.of(_Pri, String(input[_Pri])).n(_Pri)); } - if (input.Priority != null) { - const node = __XmlNode.of("Priority", String(input.Priority)).withName("Priority"); - bodyNode.addChildNode(node); + bn.cc(input, _P); + if (input[_F] != null) { + bn.c(se_ReplicationRuleFilter(input[_F], context).n(_F)); } - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RRS, input[_S]).n(_S)); } - if (input.Filter != null) { - const node = se_ReplicationRuleFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + if (input[_SSC] != null) { + bn.c(se_SourceSelectionCriteria(input[_SSC], context).n(_SSC)); } - if (input.Status != null) { - const node = __XmlNode.of("ReplicationRuleStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + if (input[_EOR] != null) { + bn.c(se_ExistingObjectReplication(input[_EOR], context).n(_EOR)); } - if (input.SourceSelectionCriteria != null) { - const node = se_SourceSelectionCriteria(input.SourceSelectionCriteria, context).withName("SourceSelectionCriteria"); - bodyNode.addChildNode(node); + if (input[_Des] != null) { + bn.c(se_Destination(input[_Des], context).n(_Des)); } - if (input.ExistingObjectReplication != null) { - const node = se_ExistingObjectReplication(input.ExistingObjectReplication, context).withName( - "ExistingObjectReplication" - ); - bodyNode.addChildNode(node); + if (input[_DMR] != null) { + bn.c(se_DeleteMarkerReplication(input[_DMR], context).n(_DMR)); } - if (input.Destination != null) { - const node = se_Destination(input.Destination, context).withName("Destination"); - bodyNode.addChildNode(node); - } - if (input.DeleteMarkerReplication != null) { - const node = se_DeleteMarkerReplication(input.DeleteMarkerReplication, context).withName("DeleteMarkerReplication"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlReplicationRuleAndOperator */ const se_ReplicationRuleAndOperator = (input: ReplicationRuleAndOperator, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationRuleAndOperator"); - if (input.Prefix != null) { - const node = __XmlNode.of("Prefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Tags != null) { - const nodes = se_TagSet(input.Tags, context); - nodes.map((node: any) => { - node = node.withName("Tag"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_RRAO); + bn.cc(input, _P); + bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag]!, context)); + return bn; }; /** * serializeAws_restXmlReplicationRuleFilter */ const se_ReplicationRuleFilter = (input: ReplicationRuleFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationRuleFilter"); + const bn = new __XmlNode(_RRF); ReplicationRuleFilter.visit(input, { Prefix: (value) => { - const node = __XmlNode.of("Prefix", value).withName("Prefix"); - bodyNode.addChildNode(node); + if (input[_P] != null) { + bn.c(__XmlNode.of(_P, value).n(_P)); + } }, Tag: (value) => { - const node = se_Tag(value, context).withName("Tag"); - bodyNode.addChildNode(node); + if (input[_Ta] != null) { + bn.c(se_Tag(value, context).n(_Ta)); + } }, And: (value) => { - const node = se_ReplicationRuleAndOperator(value, context).withName("And"); - bodyNode.addChildNode(node); + if (input[_A] != null) { + bn.c(se_ReplicationRuleAndOperator(value, context).n(_A)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** @@ -10364,8 +8959,8 @@ const se_ReplicationRules = (input: ReplicationRule[], context: __SerdeContext): return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ReplicationRule(entry, context); - return node.withName("member"); + const n = se_ReplicationRule(entry, context); + return n.n(_me); }); }; @@ -10373,104 +8968,84 @@ const se_ReplicationRules = (input: ReplicationRule[], context: __SerdeContext): * serializeAws_restXmlReplicationTime */ const se_ReplicationTime = (input: ReplicationTime, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationTime"); - if (input.Status != null) { - const node = __XmlNode.of("ReplicationTimeStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RTe); + if (input[_S] != null) { + bn.c(__XmlNode.of(_RTS, input[_S]).n(_S)); } - if (input.Time != null) { - const node = se_ReplicationTimeValue(input.Time, context).withName("Time"); - bodyNode.addChildNode(node); + if (input[_Tim] != null) { + bn.c(se_ReplicationTimeValue(input[_Tim], context).n(_Tim)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlReplicationTimeValue */ const se_ReplicationTimeValue = (input: ReplicationTimeValue, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ReplicationTimeValue"); - if (input.Minutes != null) { - const node = __XmlNode.of("Minutes", String(input.Minutes)).withName("Minutes"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RTV); + if (input[_Mi] != null) { + bn.c(__XmlNode.of(_Mi, String(input[_Mi])).n(_Mi)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlRequestPaymentConfiguration */ const se_RequestPaymentConfiguration = (input: RequestPaymentConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("RequestPaymentConfiguration"); - if (input.Payer != null) { - const node = __XmlNode.of("Payer", input.Payer).withName("Payer"); - bodyNode.addChildNode(node); - } - return bodyNode; + const bn = new __XmlNode(_RPC); + bn.cc(input, _Pa); + return bn; }; /** * serializeAws_restXmlRequestProgress */ const se_RequestProgress = (input: RequestProgress, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("RequestProgress"); - if (input.Enabled != null) { - const node = __XmlNode.of("EnableRequestProgress", String(input.Enabled)).withName("Enabled"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RPe); + if (input[_Ena] != null) { + bn.c(__XmlNode.of(_ERP, String(input[_Ena])).n(_Ena)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlRestoreRequest */ const se_RestoreRequest = (input: RestoreRequest, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("RestoreRequest"); - if (input.Days != null) { - const node = __XmlNode.of("Days", String(input.Days)).withName("Days"); - bodyNode.addChildNode(node); - } - if (input.GlacierJobParameters != null) { - const node = se_GlacierJobParameters(input.GlacierJobParameters, context).withName("GlacierJobParameters"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RRes); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); } - if (input.Type != null) { - const node = __XmlNode.of("RestoreRequestType", input.Type).withName("Type"); - bodyNode.addChildNode(node); + if (input[_GJP] != null) { + bn.c(se_GlacierJobParameters(input[_GJP], context).n(_GJP)); } - if (input.Tier != null) { - const node = __XmlNode.of("Tier", input.Tier).withName("Tier"); - bodyNode.addChildNode(node); + if (input[_Ty] != null) { + bn.c(__XmlNode.of(_RRT, input[_Ty]).n(_Ty)); } - if (input.Description != null) { - const node = __XmlNode.of("Description", input.Description).withName("Description"); - bodyNode.addChildNode(node); + bn.cc(input, _Ti); + bn.cc(input, _Desc); + if (input[_SP] != null) { + bn.c(se_SelectParameters(input[_SP], context).n(_SP)); } - if (input.SelectParameters != null) { - const node = se_SelectParameters(input.SelectParameters, context).withName("SelectParameters"); - bodyNode.addChildNode(node); + if (input[_OL] != null) { + bn.c(se_OutputLocation(input[_OL], context).n(_OL)); } - if (input.OutputLocation != null) { - const node = se_OutputLocation(input.OutputLocation, context).withName("OutputLocation"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlRoutingRule */ const se_RoutingRule = (input: RoutingRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("RoutingRule"); - if (input.Condition != null) { - const node = se_Condition(input.Condition, context).withName("Condition"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RRou); + if (input[_Con] != null) { + bn.c(se_Condition(input[_Con], context).n(_Con)); } - if (input.Redirect != null) { - const node = se_Redirect(input.Redirect, context).withName("Redirect"); - bodyNode.addChildNode(node); + if (input[_Red] != null) { + bn.c(se_Redirect(input[_Red], context).n(_Red)); } - return bodyNode; + return bn; }; /** @@ -10480,8 +9055,8 @@ const se_RoutingRules = (input: RoutingRule[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = se_RoutingRule(entry, context); - return node.withName("RoutingRule"); + const n = se_RoutingRule(entry, context); + return n.n(_RRou); }); }; @@ -10489,119 +9064,77 @@ const se_RoutingRules = (input: RoutingRule[], context: __SerdeContext): any => * serializeAws_restXmlS3KeyFilter */ const se_S3KeyFilter = (input: S3KeyFilter, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3KeyFilter"); - if (input.FilterRules != null) { - const nodes = se_FilterRuleList(input.FilterRules, context); - nodes.map((node: any) => { - node = node.withName("FilterRule"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_SKF); + bn.l(input, "FilterRules", "FilterRule", () => se_FilterRuleList(input[_FRi]!, context)); + return bn; }; /** * serializeAws_restXmlS3Location */ const se_S3Location = (input: S3Location, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("S3Location"); - if (input.BucketName != null) { - const node = __XmlNode.of("BucketName", input.BucketName).withName("BucketName"); - bodyNode.addChildNode(node); - } - if (input.Prefix != null) { - const node = __XmlNode.of("LocationPrefix", input.Prefix).withName("Prefix"); - bodyNode.addChildNode(node); - } - if (input.Encryption != null) { - const node = se_Encryption(input.Encryption, context).withName("Encryption"); - bodyNode.addChildNode(node); - } - if (input.CannedACL != null) { - const node = __XmlNode.of("ObjectCannedACL", input.CannedACL).withName("CannedACL"); - bodyNode.addChildNode(node); - } - if (input.AccessControlList != null) { - const nodes = se_Grants(input.AccessControlList, context); - const containerNode = new __XmlNode("AccessControlList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_SL); + bn.cc(input, _BN); + if (input[_P] != null) { + bn.c(__XmlNode.of(_LP, input[_P]).n(_P)); } - if (input.Tagging != null) { - const node = se_Tagging(input.Tagging, context).withName("Tagging"); - bodyNode.addChildNode(node); + if (input[_En] != null) { + bn.c(se_Encryption(input[_En], context).n(_En)); } - if (input.UserMetadata != null) { - const nodes = se_UserMetadata(input.UserMetadata, context); - const containerNode = new __XmlNode("UserMetadata"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + if (input[_CACL] != null) { + bn.c(__XmlNode.of(_OCACL, input[_CACL]).n(_CACL)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("StorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + bn.lc(input, "AccessControlList", "AccessControlList", () => se_Grants(input[_ACLc]!, context)); + if (input[_T] != null) { + bn.c(se_Tagging(input[_T], context).n(_T)); } - return bodyNode; + bn.lc(input, "UserMetadata", "UserMetadata", () => se_UserMetadata(input[_UM]!, context)); + bn.cc(input, _SC); + return bn; }; /** * serializeAws_restXmlScanRange */ const se_ScanRange = (input: ScanRange, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ScanRange"); - if (input.Start != null) { - const node = __XmlNode.of("Start", String(input.Start)).withName("Start"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SR); + if (input[_St] != null) { + bn.c(__XmlNode.of(_St, String(input[_St])).n(_St)); } - if (input.End != null) { - const node = __XmlNode.of("End", String(input.End)).withName("End"); - bodyNode.addChildNode(node); + if (input[_End] != null) { + bn.c(__XmlNode.of(_End, String(input[_End])).n(_End)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSelectParameters */ const se_SelectParameters = (input: SelectParameters, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SelectParameters"); - if (input.InputSerialization != null) { - const node = se_InputSerialization(input.InputSerialization, context).withName("InputSerialization"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SP); + if (input[_IS] != null) { + bn.c(se_InputSerialization(input[_IS], context).n(_IS)); } - if (input.ExpressionType != null) { - const node = __XmlNode.of("ExpressionType", input.ExpressionType).withName("ExpressionType"); - bodyNode.addChildNode(node); + bn.cc(input, _ETx); + bn.cc(input, _Ex); + if (input[_OS] != null) { + bn.c(se_OutputSerialization(input[_OS], context).n(_OS)); } - if (input.Expression != null) { - const node = __XmlNode.of("Expression", input.Expression).withName("Expression"); - bodyNode.addChildNode(node); - } - if (input.OutputSerialization != null) { - const node = se_OutputSerialization(input.OutputSerialization, context).withName("OutputSerialization"); - bodyNode.addChildNode(node); - } - return bodyNode; + return bn; }; /** * serializeAws_restXmlServerSideEncryptionByDefault */ const se_ServerSideEncryptionByDefault = (input: ServerSideEncryptionByDefault, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ServerSideEncryptionByDefault"); - if (input.SSEAlgorithm != null) { - const node = __XmlNode.of("ServerSideEncryption", input.SSEAlgorithm).withName("SSEAlgorithm"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSEBD); + if (input[_SSEA] != null) { + bn.c(__XmlNode.of(_SSE, input[_SSEA]).n(_SSEA)); } - if (input.KMSMasterKeyID != null) { - const node = __XmlNode.of("SSEKMSKeyId", input.KMSMasterKeyID).withName("KMSMasterKeyID"); - bodyNode.addChildNode(node); + if (input[_KMSMKID] != null) { + bn.c(__XmlNode.of(_SSEKMSKI, input[_KMSMKID]).n(_KMSMKID)); } - return bodyNode; + return bn; }; /** @@ -10611,33 +9144,23 @@ const se_ServerSideEncryptionConfiguration = ( input: ServerSideEncryptionConfiguration, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("ServerSideEncryptionConfiguration"); - if (input.Rules != null) { - const nodes = se_ServerSideEncryptionRules(input.Rules, context); - nodes.map((node: any) => { - node = node.withName("Rule"); - bodyNode.addChildNode(node); - }); - } - return bodyNode; + const bn = new __XmlNode(_SSEC); + bn.l(input, "Rules", "Rule", () => se_ServerSideEncryptionRules(input[_Rul]!, context)); + return bn; }; /** * serializeAws_restXmlServerSideEncryptionRule */ const se_ServerSideEncryptionRule = (input: ServerSideEncryptionRule, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("ServerSideEncryptionRule"); - if (input.ApplyServerSideEncryptionByDefault != null) { - const node = se_ServerSideEncryptionByDefault(input.ApplyServerSideEncryptionByDefault, context).withName( - "ApplyServerSideEncryptionByDefault" - ); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSER); + if (input[_ASSEBD] != null) { + bn.c(se_ServerSideEncryptionByDefault(input[_ASSEBD], context).n(_ASSEBD)); } - if (input.BucketKeyEnabled != null) { - const node = __XmlNode.of("BucketKeyEnabled", String(input.BucketKeyEnabled)).withName("BucketKeyEnabled"); - bodyNode.addChildNode(node); + if (input[_BKE] != null) { + bn.c(__XmlNode.of(_BKE, String(input[_BKE])).n(_BKE)); } - return bodyNode; + return bn; }; /** @@ -10647,8 +9170,8 @@ const se_ServerSideEncryptionRules = (input: ServerSideEncryptionRule[], context return input .filter((e: any) => e != null) .map((entry) => { - const node = se_ServerSideEncryptionRule(entry, context); - return node.withName("member"); + const n = se_ServerSideEncryptionRule(entry, context); + return n.n(_me); }); }; @@ -10656,118 +9179,98 @@ const se_ServerSideEncryptionRules = (input: ServerSideEncryptionRule[], context * serializeAws_restXmlSimplePrefix */ const se_SimplePrefix = (input: SimplePrefix, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SimplePrefix"); - return bodyNode; + const bn = new __XmlNode(_SPi); + return bn; }; /** * serializeAws_restXmlSourceSelectionCriteria */ const se_SourceSelectionCriteria = (input: SourceSelectionCriteria, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SourceSelectionCriteria"); - if (input.SseKmsEncryptedObjects != null) { - const node = se_SseKmsEncryptedObjects(input.SseKmsEncryptedObjects, context).withName("SseKmsEncryptedObjects"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SSC); + if (input[_SKEO] != null) { + bn.c(se_SseKmsEncryptedObjects(input[_SKEO], context).n(_SKEO)); } - if (input.ReplicaModifications != null) { - const node = se_ReplicaModifications(input.ReplicaModifications, context).withName("ReplicaModifications"); - bodyNode.addChildNode(node); + if (input[_RM] != null) { + bn.c(se_ReplicaModifications(input[_RM], context).n(_RM)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSSEKMS */ const se_SSEKMS = (input: SSEKMS, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SSE-KMS"); - if (input.KeyId != null) { - const node = __XmlNode.of("SSEKMSKeyId", input.KeyId).withName("KeyId"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SK); + if (input[_KI] != null) { + bn.c(__XmlNode.of(_SSEKMSKI, input[_KI]).n(_KI)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSseKmsEncryptedObjects */ const se_SseKmsEncryptedObjects = (input: SseKmsEncryptedObjects, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SseKmsEncryptedObjects"); - if (input.Status != null) { - const node = __XmlNode.of("SseKmsEncryptedObjectsStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SKEO); + if (input[_S] != null) { + bn.c(__XmlNode.of(_SKEOS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlSSES3 */ const se_SSES3 = (input: SSES3, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("SSE-S3"); - return bodyNode; + const bn = new __XmlNode(_SS); + return bn; }; /** * serializeAws_restXmlStorageClassAnalysis */ const se_StorageClassAnalysis = (input: StorageClassAnalysis, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageClassAnalysis"); - if (input.DataExport != null) { - const node = se_StorageClassAnalysisDataExport(input.DataExport, context).withName("DataExport"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SCA); + if (input[_DE] != null) { + bn.c(se_StorageClassAnalysisDataExport(input[_DE], context).n(_DE)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlStorageClassAnalysisDataExport */ const se_StorageClassAnalysisDataExport = (input: StorageClassAnalysisDataExport, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StorageClassAnalysisDataExport"); - if (input.OutputSchemaVersion != null) { - const node = __XmlNode - .of("StorageClassAnalysisSchemaVersion", input.OutputSchemaVersion) - .withName("OutputSchemaVersion"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SCADE); + if (input[_OSV] != null) { + bn.c(__XmlNode.of(_SCASV, input[_OSV]).n(_OSV)); } - if (input.Destination != null) { - const node = se_AnalyticsExportDestination(input.Destination, context).withName("Destination"); - bodyNode.addChildNode(node); + if (input[_Des] != null) { + bn.c(se_AnalyticsExportDestination(input[_Des], context).n(_Des)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlTag */ const se_Tag = (input: Tag, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tag"); - if (input.Key != null) { - const node = __XmlNode.of("ObjectKey", input.Key).withName("Key"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Ta); + if (input[_K] != null) { + bn.c(__XmlNode.of(_OK, input[_K]).n(_K)); } - if (input.Value != null) { - const node = __XmlNode.of("Value", input.Value).withName("Value"); - bodyNode.addChildNode(node); - } - return bodyNode; + bn.cc(input, _Va); + return bn; }; /** * serializeAws_restXmlTagging */ const se_Tagging = (input: Tagging, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tagging"); - if (input.TagSet != null) { - const nodes = se_TagSet(input.TagSet, context); - const containerNode = new __XmlNode("TagSet"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - return bodyNode; + const bn = new __XmlNode(_T); + bn.lc(input, "TagSet", "TagSet", () => se_TagSet(input[_TS]!, context)); + return bn; }; /** @@ -10777,8 +9280,8 @@ const se_TagSet = (input: Tag[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Tag(entry, context); - return node.withName("Tag"); + const n = se_Tag(entry, context); + return n.n(_Ta); }); }; @@ -10786,17 +9289,16 @@ const se_TagSet = (input: Tag[], context: __SerdeContext): any => { * serializeAws_restXmlTargetGrant */ const se_TargetGrant = (input: TargetGrant, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("TargetGrant"); - if (input.Grantee != null) { - const node = se_Grantee(input.Grantee, context).withName("Grantee"); - node.addAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_TGa); + if (input[_Gra] != null) { + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); } - if (input.Permission != null) { - const node = __XmlNode.of("BucketLogsPermission", input.Permission).withName("Permission"); - bodyNode.addChildNode(node); + if (input[_Pe] != null) { + bn.c(__XmlNode.of(_BLP, input[_Pe]).n(_Pe)); } - return bodyNode; + return bn; }; /** @@ -10806,8 +9308,8 @@ const se_TargetGrants = (input: TargetGrant[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = se_TargetGrant(entry, context); - return node.withName("Grant"); + const n = se_TargetGrant(entry, context); + return n.n(_G); }); }; @@ -10815,32 +9317,28 @@ const se_TargetGrants = (input: TargetGrant[], context: __SerdeContext): any => * serializeAws_restXmlTargetObjectKeyFormat */ const se_TargetObjectKeyFormat = (input: TargetObjectKeyFormat, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("TargetObjectKeyFormat"); - if (input.SimplePrefix != null) { - const node = se_SimplePrefix(input.SimplePrefix, context).withName("SimplePrefix"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_TOKF); + if (input[_SPi] != null) { + bn.c(se_SimplePrefix(input[_SPi], context).n(_SPi)); } - if (input.PartitionedPrefix != null) { - const node = se_PartitionedPrefix(input.PartitionedPrefix, context).withName("PartitionedPrefix"); - bodyNode.addChildNode(node); + if (input[_PP] != null) { + bn.c(se_PartitionedPrefix(input[_PP], context).n(_PP)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlTiering */ const se_Tiering = (input: Tiering, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Tiering"); - if (input.Days != null) { - const node = __XmlNode.of("IntelligentTieringDays", String(input.Days)).withName("Days"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Tier); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_ITD, String(input[_Da])).n(_Da)); } - if (input.AccessTier != null) { - const node = __XmlNode.of("IntelligentTieringAccessTier", input.AccessTier).withName("AccessTier"); - bodyNode.addChildNode(node); + if (input[_AT] != null) { + bn.c(__XmlNode.of(_ITAT, input[_AT]).n(_AT)); } - return bodyNode; + return bn; }; /** @@ -10850,8 +9348,8 @@ const se_TieringList = (input: Tiering[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Tiering(entry, context); - return node.withName("member"); + const n = se_Tiering(entry, context); + return n.n(_me); }); }; @@ -10859,27 +9357,18 @@ const se_TieringList = (input: Tiering[], context: __SerdeContext): any => { * serializeAws_restXmlTopicConfiguration */ const se_TopicConfiguration = (input: TopicConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("TopicConfiguration"); - if (input.Id != null) { - const node = __XmlNode.of("NotificationId", input.Id).withName("Id"); - bodyNode.addChildNode(node); - } - if (input.TopicArn != null) { - const node = __XmlNode.of("TopicArn", input.TopicArn).withName("Topic"); - bodyNode.addChildNode(node); - } - if (input.Events != null) { - const nodes = se_EventList(input.Events, context); - nodes.map((node: any) => { - node = node.withName("Event"); - bodyNode.addChildNode(node); - }); + const bn = new __XmlNode(_TCo); + if (input[_I] != null) { + bn.c(__XmlNode.of(_NI, input[_I]).n(_I)); + } + if (input[_TA] != null) { + bn.c(__XmlNode.of(_TA, input[_TA]).n(_Top)); } - if (input.Filter != null) { - const node = se_NotificationConfigurationFilter(input.Filter, context).withName("Filter"); - bodyNode.addChildNode(node); + bn.l(input, "Events", "Event", () => se_EventList(input[_Eve]!, context)); + if (input[_F] != null) { + bn.c(se_NotificationConfigurationFilter(input[_F], context).n(_F)); } - return bodyNode; + return bn; }; /** @@ -10889,8 +9378,8 @@ const se_TopicConfigurationList = (input: TopicConfiguration[], context: __Serde return input .filter((e: any) => e != null) .map((entry) => { - const node = se_TopicConfiguration(entry, context); - return node.withName("member"); + const n = se_TopicConfiguration(entry, context); + return n.n(_me); }); }; @@ -10898,20 +9387,17 @@ const se_TopicConfigurationList = (input: TopicConfiguration[], context: __Serde * serializeAws_restXmlTransition */ const se_Transition = (input: Transition, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Transition"); - if (input.Date != null) { - const node = __XmlNode.of("Date", (input.Date.toISOString().split(".")[0] + "Z").toString()).withName("Date"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_Tra); + if (input[_Dat] != null) { + bn.c(__XmlNode.of(_Dat, (input[_Dat].toISOString().split(".")[0] + "Z").toString()).n(_Dat)); } - if (input.Days != null) { - const node = __XmlNode.of("Days", String(input.Days)).withName("Days"); - bodyNode.addChildNode(node); + if (input[_Da] != null) { + bn.c(__XmlNode.of(_Da, String(input[_Da])).n(_Da)); } - if (input.StorageClass != null) { - const node = __XmlNode.of("TransitionStorageClass", input.StorageClass).withName("StorageClass"); - bodyNode.addChildNode(node); + if (input[_SC] != null) { + bn.c(__XmlNode.of(_TSC, input[_SC]).n(_SC)); } - return bodyNode; + return bn; }; /** @@ -10921,8 +9407,8 @@ const se_TransitionList = (input: Transition[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = se_Transition(entry, context); - return node.withName("member"); + const n = se_Transition(entry, context); + return n.n(_me); }); }; @@ -10933,8 +9419,8 @@ const se_UserMetadata = (input: MetadataEntry[], context: __SerdeContext): any = return input .filter((e: any) => e != null) .map((entry) => { - const node = se_MetadataEntry(entry, context); - return node.withName("MetadataEntry"); + const n = se_MetadataEntry(entry, context); + return n.n(_ME); }); }; @@ -10942,44 +9428,32 @@ const se_UserMetadata = (input: MetadataEntry[], context: __SerdeContext): any = * serializeAws_restXmlVersioningConfiguration */ const se_VersioningConfiguration = (input: VersioningConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("VersioningConfiguration"); - if (input.MFADelete != null) { - const node = __XmlNode.of("MFADelete", input.MFADelete).withName("MfaDelete"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_VCe); + if (input[_MFAD] != null) { + bn.c(__XmlNode.of(_MFAD, input[_MFAD]).n(_MDf)); } - if (input.Status != null) { - const node = __XmlNode.of("BucketVersioningStatus", input.Status).withName("Status"); - bodyNode.addChildNode(node); + if (input[_S] != null) { + bn.c(__XmlNode.of(_BVS, input[_S]).n(_S)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlWebsiteConfiguration */ const se_WebsiteConfiguration = (input: WebsiteConfiguration, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("WebsiteConfiguration"); - if (input.ErrorDocument != null) { - const node = se_ErrorDocument(input.ErrorDocument, context).withName("ErrorDocument"); - bodyNode.addChildNode(node); - } - if (input.IndexDocument != null) { - const node = se_IndexDocument(input.IndexDocument, context).withName("IndexDocument"); - bodyNode.addChildNode(node); - } - if (input.RedirectAllRequestsTo != null) { - const node = se_RedirectAllRequestsTo(input.RedirectAllRequestsTo, context).withName("RedirectAllRequestsTo"); - bodyNode.addChildNode(node); - } - if (input.RoutingRules != null) { - const nodes = se_RoutingRules(input.RoutingRules, context); - const containerNode = new __XmlNode("RoutingRules"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + const bn = new __XmlNode(_WC); + if (input[_ED] != null) { + bn.c(se_ErrorDocument(input[_ED], context).n(_ED)); + } + if (input[_ID] != null) { + bn.c(se_IndexDocument(input[_ID], context).n(_ID)); } - return bodyNode; + if (input[_RART] != null) { + bn.c(se_RedirectAllRequestsTo(input[_RART], context).n(_RART)); + } + bn.lc(input, "RoutingRules", "RoutingRules", () => se_RoutingRules(input[_RRo]!, context)); + return bn; }; /** @@ -10987,8 +9461,8 @@ const se_WebsiteConfiguration = (input: WebsiteConfiguration, context: __SerdeCo */ const de_AbortIncompleteMultipartUpload = (output: any, context: __SerdeContext): AbortIncompleteMultipartUpload => { const contents: any = {}; - if (output["DaysAfterInitiation"] !== undefined) { - contents.DaysAfterInitiation = __strictParseInt32(output["DaysAfterInitiation"]) as number; + if (output[_DAI] != null) { + contents[_DAI] = __strictParseInt32(output[_DAI]) as number; } return contents; }; @@ -10998,8 +9472,8 @@ const de_AbortIncompleteMultipartUpload = (output: any, context: __SerdeContext) */ const de_AccessControlTranslation = (output: any, context: __SerdeContext): AccessControlTranslation => { const contents: any = {}; - if (output["Owner"] !== undefined) { - contents.Owner = __expectString(output["Owner"]); + if (output[_O] != null) { + contents[_O] = __expectString(output[_O]); } return contents; }; @@ -11042,13 +9516,13 @@ const de_AllowedOrigins = (output: any, context: __SerdeContext): string[] => { */ const de_AnalyticsAndOperator = (output: any, context: __SerdeContext): AnalyticsAndOperator => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Tag === "") { - contents.Tags = []; - } else if (output["Tag"] !== undefined) { - contents.Tags = de_TagSet(__getArrayIfSingleItem(output["Tag"]), context); + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); } return contents; }; @@ -11058,16 +9532,16 @@ const de_AnalyticsAndOperator = (output: any, context: __SerdeContext): Analytic */ const de_AnalyticsConfiguration = (output: any, context: __SerdeContext): AnalyticsConfiguration => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } if (output.Filter === "") { // Pass empty tags. - } else if (output["Filter"] !== undefined) { - contents.Filter = de_AnalyticsFilter(__expectUnion(output["Filter"]), context); + } else if (output[_F] != null) { + contents[_F] = de_AnalyticsFilter(__expectUnion(output[_F]), context); } - if (output["StorageClassAnalysis"] !== undefined) { - contents.StorageClassAnalysis = de_StorageClassAnalysis(output["StorageClassAnalysis"], context); + if (output[_SCA] != null) { + contents[_SCA] = de_StorageClassAnalysis(output[_SCA], context); } return contents; }; @@ -11088,8 +9562,8 @@ const de_AnalyticsConfigurationList = (output: any, context: __SerdeContext): An */ const de_AnalyticsExportDestination = (output: any, context: __SerdeContext): AnalyticsExportDestination => { const contents: any = {}; - if (output["S3BucketDestination"] !== undefined) { - contents.S3BucketDestination = de_AnalyticsS3BucketDestination(output["S3BucketDestination"], context); + if (output[_SBD] != null) { + contents[_SBD] = de_AnalyticsS3BucketDestination(output[_SBD], context); } return contents; }; @@ -11098,19 +9572,19 @@ const de_AnalyticsExportDestination = (output: any, context: __SerdeContext): An * deserializeAws_restXmlAnalyticsFilter */ const de_AnalyticsFilter = (output: any, context: __SerdeContext): AnalyticsFilter => { - if (output["Prefix"] !== undefined) { + if (output[_P] != null) { return { - Prefix: __expectString(output["Prefix"]) as any, + Prefix: __expectString(output[_P]) as any, }; } - if (output["Tag"] !== undefined) { + if (output[_Ta] != null) { return { - Tag: de_Tag(output["Tag"], context), + Tag: de_Tag(output[_Ta], context), }; } - if (output["And"] !== undefined) { + if (output[_A] != null) { return { - And: de_AnalyticsAndOperator(output["And"], context), + And: de_AnalyticsAndOperator(output[_A], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -11121,17 +9595,17 @@ const de_AnalyticsFilter = (output: any, context: __SerdeContext): AnalyticsFilt */ const de_AnalyticsS3BucketDestination = (output: any, context: __SerdeContext): AnalyticsS3BucketDestination => { const contents: any = {}; - if (output["Format"] !== undefined) { - contents.Format = __expectString(output["Format"]); + if (output[_Fo] != null) { + contents[_Fo] = __expectString(output[_Fo]); } - if (output["BucketAccountId"] !== undefined) { - contents.BucketAccountId = __expectString(output["BucketAccountId"]); + if (output[_BAI] != null) { + contents[_BAI] = __expectString(output[_BAI]); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } return contents; }; @@ -11141,11 +9615,11 @@ const de_AnalyticsS3BucketDestination = (output: any, context: __SerdeContext): */ const de_Bucket = (output: any, context: __SerdeContext): Bucket => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["CreationDate"] !== undefined) { - contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreationDate"])); + if (output[_CDr] != null) { + contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr])); } return contents; }; @@ -11166,17 +9640,17 @@ const de_Buckets = (output: any, context: __SerdeContext): Bucket[] => { */ const de_Checksum = (output: any, context: __SerdeContext): Checksum => { const contents: any = {}; - if (output["ChecksumCRC32"] !== undefined) { - contents.ChecksumCRC32 = __expectString(output["ChecksumCRC32"]); + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); } - if (output["ChecksumCRC32C"] !== undefined) { - contents.ChecksumCRC32C = __expectString(output["ChecksumCRC32C"]); + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); } - if (output["ChecksumSHA1"] !== undefined) { - contents.ChecksumSHA1 = __expectString(output["ChecksumSHA1"]); + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); } - if (output["ChecksumSHA256"] !== undefined) { - contents.ChecksumSHA256 = __expectString(output["ChecksumSHA256"]); + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); } return contents; }; @@ -11197,8 +9671,8 @@ const de_ChecksumAlgorithmList = (output: any, context: __SerdeContext): Checksu */ const de_CommonPrefix = (output: any, context: __SerdeContext): CommonPrefix => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } return contents; }; @@ -11219,11 +9693,11 @@ const de_CommonPrefixList = (output: any, context: __SerdeContext): CommonPrefix */ const de_Condition = (output: any, context: __SerdeContext): Condition => { const contents: any = {}; - if (output["HttpErrorCodeReturnedEquals"] !== undefined) { - contents.HttpErrorCodeReturnedEquals = __expectString(output["HttpErrorCodeReturnedEquals"]); + if (output[_HECRE] != null) { + contents[_HECRE] = __expectString(output[_HECRE]); } - if (output["KeyPrefixEquals"] !== undefined) { - contents.KeyPrefixEquals = __expectString(output["KeyPrefixEquals"]); + if (output[_KPE] != null) { + contents[_KPE] = __expectString(output[_KPE]); } return contents; }; @@ -11241,23 +9715,23 @@ const de_ContinuationEvent = (output: any, context: __SerdeContext): Continuatio */ const de_CopyObjectResult = (output: any, context: __SerdeContext): CopyObjectResult => { const contents: any = {}; - if (output["ETag"] !== undefined) { - contents.ETag = __expectString(output["ETag"]); + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); } - if (output["LastModified"] !== undefined) { - contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"])); + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); } - if (output["ChecksumCRC32"] !== undefined) { - contents.ChecksumCRC32 = __expectString(output["ChecksumCRC32"]); + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); } - if (output["ChecksumCRC32C"] !== undefined) { - contents.ChecksumCRC32C = __expectString(output["ChecksumCRC32C"]); + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); } - if (output["ChecksumSHA1"] !== undefined) { - contents.ChecksumSHA1 = __expectString(output["ChecksumSHA1"]); + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); } - if (output["ChecksumSHA256"] !== undefined) { - contents.ChecksumSHA256 = __expectString(output["ChecksumSHA256"]); + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); } return contents; }; @@ -11267,23 +9741,23 @@ const de_CopyObjectResult = (output: any, context: __SerdeContext): CopyObjectRe */ const de_CopyPartResult = (output: any, context: __SerdeContext): CopyPartResult => { const contents: any = {}; - if (output["ETag"] !== undefined) { - contents.ETag = __expectString(output["ETag"]); + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); } - if (output["LastModified"] !== undefined) { - contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"])); + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); } - if (output["ChecksumCRC32"] !== undefined) { - contents.ChecksumCRC32 = __expectString(output["ChecksumCRC32"]); + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); } - if (output["ChecksumCRC32C"] !== undefined) { - contents.ChecksumCRC32C = __expectString(output["ChecksumCRC32C"]); + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); } - if (output["ChecksumSHA1"] !== undefined) { - contents.ChecksumSHA1 = __expectString(output["ChecksumSHA1"]); + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); } - if (output["ChecksumSHA256"] !== undefined) { - contents.ChecksumSHA256 = __expectString(output["ChecksumSHA256"]); + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); } return contents; }; @@ -11293,31 +9767,31 @@ const de_CopyPartResult = (output: any, context: __SerdeContext): CopyPartResult */ const de_CORSRule = (output: any, context: __SerdeContext): CORSRule => { const contents: any = {}; - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); } if (output.AllowedHeader === "") { - contents.AllowedHeaders = []; - } else if (output["AllowedHeader"] !== undefined) { - contents.AllowedHeaders = de_AllowedHeaders(__getArrayIfSingleItem(output["AllowedHeader"]), context); + contents[_AHl] = []; + } else if (output[_AH] != null) { + contents[_AHl] = de_AllowedHeaders(__getArrayIfSingleItem(output[_AH]), context); } if (output.AllowedMethod === "") { - contents.AllowedMethods = []; - } else if (output["AllowedMethod"] !== undefined) { - contents.AllowedMethods = de_AllowedMethods(__getArrayIfSingleItem(output["AllowedMethod"]), context); + contents[_AMl] = []; + } else if (output[_AM] != null) { + contents[_AMl] = de_AllowedMethods(__getArrayIfSingleItem(output[_AM]), context); } if (output.AllowedOrigin === "") { - contents.AllowedOrigins = []; - } else if (output["AllowedOrigin"] !== undefined) { - contents.AllowedOrigins = de_AllowedOrigins(__getArrayIfSingleItem(output["AllowedOrigin"]), context); + contents[_AOl] = []; + } else if (output[_AO] != null) { + contents[_AOl] = de_AllowedOrigins(__getArrayIfSingleItem(output[_AO]), context); } if (output.ExposeHeader === "") { - contents.ExposeHeaders = []; - } else if (output["ExposeHeader"] !== undefined) { - contents.ExposeHeaders = de_ExposeHeaders(__getArrayIfSingleItem(output["ExposeHeader"]), context); + contents[_EH] = []; + } else if (output[_EHx] != null) { + contents[_EH] = de_ExposeHeaders(__getArrayIfSingleItem(output[_EHx]), context); } - if (output["MaxAgeSeconds"] !== undefined) { - contents.MaxAgeSeconds = __strictParseInt32(output["MaxAgeSeconds"]) as number; + if (output[_MAS] != null) { + contents[_MAS] = __strictParseInt32(output[_MAS]) as number; } return contents; }; @@ -11338,14 +9812,14 @@ const de_CORSRules = (output: any, context: __SerdeContext): CORSRule[] => { */ const de_DefaultRetention = (output: any, context: __SerdeContext): DefaultRetention => { const contents: any = {}; - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } - if (output["Days"] !== undefined) { - contents.Days = __strictParseInt32(output["Days"]) as number; + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; } - if (output["Years"] !== undefined) { - contents.Years = __strictParseInt32(output["Years"]) as number; + if (output[_Y] != null) { + contents[_Y] = __strictParseInt32(output[_Y]) as number; } return contents; }; @@ -11355,17 +9829,17 @@ const de_DefaultRetention = (output: any, context: __SerdeContext): DefaultReten */ const de_DeletedObject = (output: any, context: __SerdeContext): DeletedObject => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["VersionId"] !== undefined) { - contents.VersionId = __expectString(output["VersionId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["DeleteMarker"] !== undefined) { - contents.DeleteMarker = __parseBoolean(output["DeleteMarker"]); + if (output[_DM] != null) { + contents[_DM] = __parseBoolean(output[_DM]); } - if (output["DeleteMarkerVersionId"] !== undefined) { - contents.DeleteMarkerVersionId = __expectString(output["DeleteMarkerVersionId"]); + if (output[_DMVI] != null) { + contents[_DMVI] = __expectString(output[_DMVI]); } return contents; }; @@ -11386,20 +9860,20 @@ const de_DeletedObjects = (output: any, context: __SerdeContext): DeletedObject[ */ const de_DeleteMarkerEntry = (output: any, context: __SerdeContext): DeleteMarkerEntry => { const contents: any = {}; - if (output["Owner"] !== undefined) { - contents.Owner = de_Owner(output["Owner"], context); + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); } - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["VersionId"] !== undefined) { - contents.VersionId = __expectString(output["VersionId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["IsLatest"] !== undefined) { - contents.IsLatest = __parseBoolean(output["IsLatest"]); + if (output[_IL] != null) { + contents[_IL] = __parseBoolean(output[_IL]); } - if (output["LastModified"] !== undefined) { - contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"])); + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); } return contents; }; @@ -11409,8 +9883,8 @@ const de_DeleteMarkerEntry = (output: any, context: __SerdeContext): DeleteMarke */ const de_DeleteMarkerReplication = (output: any, context: __SerdeContext): DeleteMarkerReplication => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -11431,26 +9905,26 @@ const de_DeleteMarkers = (output: any, context: __SerdeContext): DeleteMarkerEnt */ const de_Destination = (output: any, context: __SerdeContext): Destination => { const contents: any = {}; - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); + if (output[_Ac] != null) { + contents[_Ac] = __expectString(output[_Ac]); } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["AccessControlTranslation"] !== undefined) { - contents.AccessControlTranslation = de_AccessControlTranslation(output["AccessControlTranslation"], context); + if (output[_ACT] != null) { + contents[_ACT] = de_AccessControlTranslation(output[_ACT], context); } - if (output["EncryptionConfiguration"] !== undefined) { - contents.EncryptionConfiguration = de_EncryptionConfiguration(output["EncryptionConfiguration"], context); + if (output[_ECn] != null) { + contents[_ECn] = de_EncryptionConfiguration(output[_ECn], context); } - if (output["ReplicationTime"] !== undefined) { - contents.ReplicationTime = de_ReplicationTime(output["ReplicationTime"], context); + if (output[_RTe] != null) { + contents[_RTe] = de_ReplicationTime(output[_RTe], context); } - if (output["Metrics"] !== undefined) { - contents.Metrics = de_Metrics(output["Metrics"], context); + if (output[_Me] != null) { + contents[_Me] = de_Metrics(output[_Me], context); } return contents; }; @@ -11460,8 +9934,8 @@ const de_Destination = (output: any, context: __SerdeContext): Destination => { */ const de_EncryptionConfiguration = (output: any, context: __SerdeContext): EncryptionConfiguration => { const contents: any = {}; - if (output["ReplicaKmsKeyID"] !== undefined) { - contents.ReplicaKmsKeyID = __expectString(output["ReplicaKmsKeyID"]); + if (output[_RKKID] != null) { + contents[_RKKID] = __expectString(output[_RKKID]); } return contents; }; @@ -11479,17 +9953,17 @@ const de_EndEvent = (output: any, context: __SerdeContext): EndEvent => { */ const de__Error = (output: any, context: __SerdeContext): _Error => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["VersionId"] !== undefined) { - contents.VersionId = __expectString(output["VersionId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_Cod] != null) { + contents[_Cod] = __expectString(output[_Cod]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_Mes] != null) { + contents[_Mes] = __expectString(output[_Mes]); } return contents; }; @@ -11499,8 +9973,8 @@ const de__Error = (output: any, context: __SerdeContext): _Error => { */ const de_ErrorDocument = (output: any, context: __SerdeContext): ErrorDocument => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } return contents; }; @@ -11540,8 +10014,8 @@ const de_EventList = (output: any, context: __SerdeContext): Event[] => { */ const de_ExistingObjectReplication = (output: any, context: __SerdeContext): ExistingObjectReplication => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -11562,11 +10036,11 @@ const de_ExposeHeaders = (output: any, context: __SerdeContext): string[] => { */ const de_FilterRule = (output: any, context: __SerdeContext): FilterRule => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -11587,25 +10061,25 @@ const de_FilterRuleList = (output: any, context: __SerdeContext): FilterRule[] = */ const de_GetObjectAttributesParts = (output: any, context: __SerdeContext): GetObjectAttributesParts => { const contents: any = {}; - if (output["PartsCount"] !== undefined) { - contents.TotalPartsCount = __strictParseInt32(output["PartsCount"]) as number; + if (output[_PC] != null) { + contents[_TPC] = __strictParseInt32(output[_PC]) as number; } - if (output["PartNumberMarker"] !== undefined) { - contents.PartNumberMarker = __expectString(output["PartNumberMarker"]); + if (output[_PNM] != null) { + contents[_PNM] = __expectString(output[_PNM]); } - if (output["NextPartNumberMarker"] !== undefined) { - contents.NextPartNumberMarker = __expectString(output["NextPartNumberMarker"]); + if (output[_NPNM] != null) { + contents[_NPNM] = __expectString(output[_NPNM]); } - if (output["MaxParts"] !== undefined) { - contents.MaxParts = __strictParseInt32(output["MaxParts"]) as number; + if (output[_MP] != null) { + contents[_MP] = __strictParseInt32(output[_MP]) as number; } - if (output["IsTruncated"] !== undefined) { - contents.IsTruncated = __parseBoolean(output["IsTruncated"]); + if (output[_IT] != null) { + contents[_IT] = __parseBoolean(output[_IT]); } if (output.Part === "") { - contents.Parts = []; - } else if (output["Part"] !== undefined) { - contents.Parts = de_PartsList(__getArrayIfSingleItem(output["Part"]), context); + contents[_Part] = []; + } else if (output[_Par] != null) { + contents[_Part] = de_PartsList(__getArrayIfSingleItem(output[_Par]), context); } return contents; }; @@ -11615,11 +10089,11 @@ const de_GetObjectAttributesParts = (output: any, context: __SerdeContext): GetO */ const de_Grant = (output: any, context: __SerdeContext): Grant => { const contents: any = {}; - if (output["Grantee"] !== undefined) { - contents.Grantee = de_Grantee(output["Grantee"], context); + if (output[_Gra] != null) { + contents[_Gra] = de_Grantee(output[_Gra], context); } - if (output["Permission"] !== undefined) { - contents.Permission = __expectString(output["Permission"]); + if (output[_Pe] != null) { + contents[_Pe] = __expectString(output[_Pe]); } return contents; }; @@ -11629,20 +10103,20 @@ const de_Grant = (output: any, context: __SerdeContext): Grant => { */ const de_Grantee = (output: any, context: __SerdeContext): Grantee => { const contents: any = {}; - if (output["DisplayName"] !== undefined) { - contents.DisplayName = __expectString(output["DisplayName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["EmailAddress"] !== undefined) { - contents.EmailAddress = __expectString(output["EmailAddress"]); + if (output[_EA] != null) { + contents[_EA] = __expectString(output[_EA]); } - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); } - if (output["URI"] !== undefined) { - contents.URI = __expectString(output["URI"]); + if (output[_URI] != null) { + contents[_URI] = __expectString(output[_URI]); } - if (output["xsi:type"] !== undefined) { - contents.Type = __expectString(output["xsi:type"]); + if (output[_x] != null) { + contents[_Ty] = __expectString(output[_x]); } return contents; }; @@ -11663,8 +10137,8 @@ const de_Grants = (output: any, context: __SerdeContext): Grant[] => { */ const de_IndexDocument = (output: any, context: __SerdeContext): IndexDocument => { const contents: any = {}; - if (output["Suffix"] !== undefined) { - contents.Suffix = __expectString(output["Suffix"]); + if (output[_Su] != null) { + contents[_Su] = __expectString(output[_Su]); } return contents; }; @@ -11674,11 +10148,11 @@ const de_IndexDocument = (output: any, context: __SerdeContext): IndexDocument = */ const de_Initiator = (output: any, context: __SerdeContext): Initiator => { const contents: any = {}; - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); } - if (output["DisplayName"] !== undefined) { - contents.DisplayName = __expectString(output["DisplayName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } return contents; }; @@ -11688,13 +10162,13 @@ const de_Initiator = (output: any, context: __SerdeContext): Initiator => { */ const de_IntelligentTieringAndOperator = (output: any, context: __SerdeContext): IntelligentTieringAndOperator => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Tag === "") { - contents.Tags = []; - } else if (output["Tag"] !== undefined) { - contents.Tags = de_TagSet(__getArrayIfSingleItem(output["Tag"]), context); + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); } return contents; }; @@ -11704,19 +10178,19 @@ const de_IntelligentTieringAndOperator = (output: any, context: __SerdeContext): */ const de_IntelligentTieringConfiguration = (output: any, context: __SerdeContext): IntelligentTieringConfiguration => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["Filter"] !== undefined) { - contents.Filter = de_IntelligentTieringFilter(output["Filter"], context); + if (output[_F] != null) { + contents[_F] = de_IntelligentTieringFilter(output[_F], context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } if (output.Tiering === "") { - contents.Tierings = []; - } else if (output["Tiering"] !== undefined) { - contents.Tierings = de_TieringList(__getArrayIfSingleItem(output["Tiering"]), context); + contents[_Tie] = []; + } else if (output[_Tier] != null) { + contents[_Tie] = de_TieringList(__getArrayIfSingleItem(output[_Tier]), context); } return contents; }; @@ -11740,14 +10214,14 @@ const de_IntelligentTieringConfigurationList = ( */ const de_IntelligentTieringFilter = (output: any, context: __SerdeContext): IntelligentTieringFilter => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["Tag"] !== undefined) { - contents.Tag = de_Tag(output["Tag"], context); + if (output[_Ta] != null) { + contents[_Ta] = de_Tag(output[_Ta], context); } - if (output["And"] !== undefined) { - contents.And = de_IntelligentTieringAndOperator(output["And"], context); + if (output[_A] != null) { + contents[_A] = de_IntelligentTieringAndOperator(output[_A], context); } return contents; }; @@ -11757,31 +10231,28 @@ const de_IntelligentTieringFilter = (output: any, context: __SerdeContext): Inte */ const de_InventoryConfiguration = (output: any, context: __SerdeContext): InventoryConfiguration => { const contents: any = {}; - if (output["Destination"] !== undefined) { - contents.Destination = de_InventoryDestination(output["Destination"], context); + if (output[_Des] != null) { + contents[_Des] = de_InventoryDestination(output[_Des], context); } - if (output["IsEnabled"] !== undefined) { - contents.IsEnabled = __parseBoolean(output["IsEnabled"]); + if (output[_IE] != null) { + contents[_IE] = __parseBoolean(output[_IE]); } - if (output["Filter"] !== undefined) { - contents.Filter = de_InventoryFilter(output["Filter"], context); + if (output[_F] != null) { + contents[_F] = de_InventoryFilter(output[_F], context); } - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["IncludedObjectVersions"] !== undefined) { - contents.IncludedObjectVersions = __expectString(output["IncludedObjectVersions"]); + if (output[_IOV] != null) { + contents[_IOV] = __expectString(output[_IOV]); } if (output.OptionalFields === "") { - contents.OptionalFields = []; - } else if (output["OptionalFields"] !== undefined && output["OptionalFields"]["Field"] !== undefined) { - contents.OptionalFields = de_InventoryOptionalFields( - __getArrayIfSingleItem(output["OptionalFields"]["Field"]), - context - ); + contents[_OF] = []; + } else if (output[_OF] != null && output[_OF][_Fi] != null) { + contents[_OF] = de_InventoryOptionalFields(__getArrayIfSingleItem(output[_OF][_Fi]), context); } - if (output["Schedule"] !== undefined) { - contents.Schedule = de_InventorySchedule(output["Schedule"], context); + if (output[_Sc] != null) { + contents[_Sc] = de_InventorySchedule(output[_Sc], context); } return contents; }; @@ -11802,8 +10273,8 @@ const de_InventoryConfigurationList = (output: any, context: __SerdeContext): In */ const de_InventoryDestination = (output: any, context: __SerdeContext): InventoryDestination => { const contents: any = {}; - if (output["S3BucketDestination"] !== undefined) { - contents.S3BucketDestination = de_InventoryS3BucketDestination(output["S3BucketDestination"], context); + if (output[_SBD] != null) { + contents[_SBD] = de_InventoryS3BucketDestination(output[_SBD], context); } return contents; }; @@ -11813,11 +10284,11 @@ const de_InventoryDestination = (output: any, context: __SerdeContext): Inventor */ const de_InventoryEncryption = (output: any, context: __SerdeContext): InventoryEncryption => { const contents: any = {}; - if (output["SSE-S3"] !== undefined) { - contents.SSES3 = de_SSES3(output["SSE-S3"], context); + if (output[_SS] != null) { + contents[_SSES] = de_SSES3(output[_SS], context); } - if (output["SSE-KMS"] !== undefined) { - contents.SSEKMS = de_SSEKMS(output["SSE-KMS"], context); + if (output[_SK] != null) { + contents[_SSEKMS] = de_SSEKMS(output[_SK], context); } return contents; }; @@ -11827,8 +10298,8 @@ const de_InventoryEncryption = (output: any, context: __SerdeContext): Inventory */ const de_InventoryFilter = (output: any, context: __SerdeContext): InventoryFilter => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } return contents; }; @@ -11849,20 +10320,20 @@ const de_InventoryOptionalFields = (output: any, context: __SerdeContext): Inven */ const de_InventoryS3BucketDestination = (output: any, context: __SerdeContext): InventoryS3BucketDestination => { const contents: any = {}; - if (output["AccountId"] !== undefined) { - contents.AccountId = __expectString(output["AccountId"]); + if (output[_AIc] != null) { + contents[_AIc] = __expectString(output[_AIc]); } - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_B] != null) { + contents[_B] = __expectString(output[_B]); } - if (output["Format"] !== undefined) { - contents.Format = __expectString(output["Format"]); + if (output[_Fo] != null) { + contents[_Fo] = __expectString(output[_Fo]); } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["Encryption"] !== undefined) { - contents.Encryption = de_InventoryEncryption(output["Encryption"], context); + if (output[_En] != null) { + contents[_En] = de_InventoryEncryption(output[_En], context); } return contents; }; @@ -11872,8 +10343,8 @@ const de_InventoryS3BucketDestination = (output: any, context: __SerdeContext): */ const de_InventorySchedule = (output: any, context: __SerdeContext): InventorySchedule => { const contents: any = {}; - if (output["Frequency"] !== undefined) { - contents.Frequency = __expectString(output["Frequency"]); + if (output[_Fr] != null) { + contents[_Fr] = __expectString(output[_Fr]); } return contents; }; @@ -11883,19 +10354,19 @@ const de_InventorySchedule = (output: any, context: __SerdeContext): InventorySc */ const de_LambdaFunctionConfiguration = (output: any, context: __SerdeContext): LambdaFunctionConfiguration => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["CloudFunction"] !== undefined) { - contents.LambdaFunctionArn = __expectString(output["CloudFunction"]); + if (output[_CF] != null) { + contents[_LFA] = __expectString(output[_CF]); } if (output.Event === "") { - contents.Events = []; - } else if (output["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Event"]), context); + contents[_Eve] = []; + } else if (output[_Ev] != null) { + contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); } - if (output["Filter"] !== undefined) { - contents.Filter = de_NotificationConfigurationFilter(output["Filter"], context); + if (output[_F] != null) { + contents[_F] = de_NotificationConfigurationFilter(output[_F], context); } return contents; }; @@ -11916,14 +10387,14 @@ const de_LambdaFunctionConfigurationList = (output: any, context: __SerdeContext */ const de_LifecycleExpiration = (output: any, context: __SerdeContext): LifecycleExpiration => { const contents: any = {}; - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Dat] != null) { + contents[_Dat] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Dat])); } - if (output["Days"] !== undefined) { - contents.Days = __strictParseInt32(output["Days"]) as number; + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; } - if (output["ExpiredObjectDeleteMarker"] !== undefined) { - contents.ExpiredObjectDeleteMarker = __parseBoolean(output["ExpiredObjectDeleteMarker"]); + if (output[_EODM] != null) { + contents[_EODM] = __parseBoolean(output[_EODM]); } return contents; }; @@ -11933,47 +10404,38 @@ const de_LifecycleExpiration = (output: any, context: __SerdeContext): Lifecycle */ const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule => { const contents: any = {}; - if (output["Expiration"] !== undefined) { - contents.Expiration = de_LifecycleExpiration(output["Expiration"], context); + if (output[_Exp] != null) { + contents[_Exp] = de_LifecycleExpiration(output[_Exp], context); } - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Filter === "") { // Pass empty tags. - } else if (output["Filter"] !== undefined) { - contents.Filter = de_LifecycleRuleFilter(__expectUnion(output["Filter"]), context); + } else if (output[_F] != null) { + contents[_F] = de_LifecycleRuleFilter(__expectUnion(output[_F]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } if (output.Transition === "") { - contents.Transitions = []; - } else if (output["Transition"] !== undefined) { - contents.Transitions = de_TransitionList(__getArrayIfSingleItem(output["Transition"]), context); + contents[_Tr] = []; + } else if (output[_Tra] != null) { + contents[_Tr] = de_TransitionList(__getArrayIfSingleItem(output[_Tra]), context); } if (output.NoncurrentVersionTransition === "") { - contents.NoncurrentVersionTransitions = []; - } else if (output["NoncurrentVersionTransition"] !== undefined) { - contents.NoncurrentVersionTransitions = de_NoncurrentVersionTransitionList( - __getArrayIfSingleItem(output["NoncurrentVersionTransition"]), - context - ); + contents[_NVT] = []; + } else if (output[_NVTo] != null) { + contents[_NVT] = de_NoncurrentVersionTransitionList(__getArrayIfSingleItem(output[_NVTo]), context); } - if (output["NoncurrentVersionExpiration"] !== undefined) { - contents.NoncurrentVersionExpiration = de_NoncurrentVersionExpiration( - output["NoncurrentVersionExpiration"], - context - ); + if (output[_NVE] != null) { + contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context); } - if (output["AbortIncompleteMultipartUpload"] !== undefined) { - contents.AbortIncompleteMultipartUpload = de_AbortIncompleteMultipartUpload( - output["AbortIncompleteMultipartUpload"], - context - ); + if (output[_AIMU] != null) { + contents[_AIMU] = de_AbortIncompleteMultipartUpload(output[_AIMU], context); } return contents; }; @@ -11983,19 +10445,19 @@ const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule = */ const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): LifecycleRuleAndOperator => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Tag === "") { - contents.Tags = []; - } else if (output["Tag"] !== undefined) { - contents.Tags = de_TagSet(__getArrayIfSingleItem(output["Tag"]), context); + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); } - if (output["ObjectSizeGreaterThan"] !== undefined) { - contents.ObjectSizeGreaterThan = __strictParseLong(output["ObjectSizeGreaterThan"]) as number; + if (output[_OSGT] != null) { + contents[_OSGT] = __strictParseLong(output[_OSGT]) as number; } - if (output["ObjectSizeLessThan"] !== undefined) { - contents.ObjectSizeLessThan = __strictParseLong(output["ObjectSizeLessThan"]) as number; + if (output[_OSLT] != null) { + contents[_OSLT] = __strictParseLong(output[_OSLT]) as number; } return contents; }; @@ -12004,29 +10466,29 @@ const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): Life * deserializeAws_restXmlLifecycleRuleFilter */ const de_LifecycleRuleFilter = (output: any, context: __SerdeContext): LifecycleRuleFilter => { - if (output["Prefix"] !== undefined) { + if (output[_P] != null) { return { - Prefix: __expectString(output["Prefix"]) as any, + Prefix: __expectString(output[_P]) as any, }; } - if (output["Tag"] !== undefined) { + if (output[_Ta] != null) { return { - Tag: de_Tag(output["Tag"], context), + Tag: de_Tag(output[_Ta], context), }; } - if (output["ObjectSizeGreaterThan"] !== undefined) { + if (output[_OSGT] != null) { return { - ObjectSizeGreaterThan: __strictParseLong(output["ObjectSizeGreaterThan"]) as number, + ObjectSizeGreaterThan: __strictParseLong(output[_OSGT]) as number, }; } - if (output["ObjectSizeLessThan"] !== undefined) { + if (output[_OSLT] != null) { return { - ObjectSizeLessThan: __strictParseLong(output["ObjectSizeLessThan"]) as number, + ObjectSizeLessThan: __strictParseLong(output[_OSLT]) as number, }; } - if (output["And"] !== undefined) { + if (output[_A] != null) { return { - And: de_LifecycleRuleAndOperator(output["And"], context), + And: de_LifecycleRuleAndOperator(output[_A], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -12048,19 +10510,19 @@ const de_LifecycleRules = (output: any, context: __SerdeContext): LifecycleRule[ */ const de_LoggingEnabled = (output: any, context: __SerdeContext): LoggingEnabled => { const contents: any = {}; - if (output["TargetBucket"] !== undefined) { - contents.TargetBucket = __expectString(output["TargetBucket"]); + if (output[_TB] != null) { + contents[_TB] = __expectString(output[_TB]); } if (output.TargetGrants === "") { - contents.TargetGrants = []; - } else if (output["TargetGrants"] !== undefined && output["TargetGrants"]["Grant"] !== undefined) { - contents.TargetGrants = de_TargetGrants(__getArrayIfSingleItem(output["TargetGrants"]["Grant"]), context); + contents[_TG] = []; + } else if (output[_TG] != null && output[_TG][_G] != null) { + contents[_TG] = de_TargetGrants(__getArrayIfSingleItem(output[_TG][_G]), context); } - if (output["TargetPrefix"] !== undefined) { - contents.TargetPrefix = __expectString(output["TargetPrefix"]); + if (output[_TP] != null) { + contents[_TP] = __expectString(output[_TP]); } - if (output["TargetObjectKeyFormat"] !== undefined) { - contents.TargetObjectKeyFormat = de_TargetObjectKeyFormat(output["TargetObjectKeyFormat"], context); + if (output[_TOKF] != null) { + contents[_TOKF] = de_TargetObjectKeyFormat(output[_TOKF], context); } return contents; }; @@ -12070,11 +10532,11 @@ const de_LoggingEnabled = (output: any, context: __SerdeContext): LoggingEnabled */ const de_Metrics = (output: any, context: __SerdeContext): Metrics => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["EventThreshold"] !== undefined) { - contents.EventThreshold = de_ReplicationTimeValue(output["EventThreshold"], context); + if (output[_ETv] != null) { + contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context); } return contents; }; @@ -12084,16 +10546,16 @@ const de_Metrics = (output: any, context: __SerdeContext): Metrics => { */ const de_MetricsAndOperator = (output: any, context: __SerdeContext): MetricsAndOperator => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Tag === "") { - contents.Tags = []; - } else if (output["Tag"] !== undefined) { - contents.Tags = de_TagSet(__getArrayIfSingleItem(output["Tag"]), context); + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); } - if (output["AccessPointArn"] !== undefined) { - contents.AccessPointArn = __expectString(output["AccessPointArn"]); + if (output[_APAc] != null) { + contents[_APAc] = __expectString(output[_APAc]); } return contents; }; @@ -12103,13 +10565,13 @@ const de_MetricsAndOperator = (output: any, context: __SerdeContext): MetricsAnd */ const de_MetricsConfiguration = (output: any, context: __SerdeContext): MetricsConfiguration => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } if (output.Filter === "") { // Pass empty tags. - } else if (output["Filter"] !== undefined) { - contents.Filter = de_MetricsFilter(__expectUnion(output["Filter"]), context); + } else if (output[_F] != null) { + contents[_F] = de_MetricsFilter(__expectUnion(output[_F]), context); } return contents; }; @@ -12129,24 +10591,24 @@ const de_MetricsConfigurationList = (output: any, context: __SerdeContext): Metr * deserializeAws_restXmlMetricsFilter */ const de_MetricsFilter = (output: any, context: __SerdeContext): MetricsFilter => { - if (output["Prefix"] !== undefined) { + if (output[_P] != null) { return { - Prefix: __expectString(output["Prefix"]) as any, + Prefix: __expectString(output[_P]) as any, }; } - if (output["Tag"] !== undefined) { + if (output[_Ta] != null) { return { - Tag: de_Tag(output["Tag"], context), + Tag: de_Tag(output[_Ta], context), }; } - if (output["AccessPointArn"] !== undefined) { + if (output[_APAc] != null) { return { - AccessPointArn: __expectString(output["AccessPointArn"]) as any, + AccessPointArn: __expectString(output[_APAc]) as any, }; } - if (output["And"] !== undefined) { + if (output[_A] != null) { return { - And: de_MetricsAndOperator(output["And"], context), + And: de_MetricsAndOperator(output[_A], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -12157,26 +10619,26 @@ const de_MetricsFilter = (output: any, context: __SerdeContext): MetricsFilter = */ const de_MultipartUpload = (output: any, context: __SerdeContext): MultipartUpload => { const contents: any = {}; - if (output["UploadId"] !== undefined) { - contents.UploadId = __expectString(output["UploadId"]); + if (output[_UI] != null) { + contents[_UI] = __expectString(output[_UI]); } - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Initiated"] !== undefined) { - contents.Initiated = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Initiated"])); + if (output[_Ini] != null) { + contents[_Ini] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ini])); } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["Owner"] !== undefined) { - contents.Owner = de_Owner(output["Owner"], context); + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); } - if (output["Initiator"] !== undefined) { - contents.Initiator = de_Initiator(output["Initiator"], context); + if (output[_In] != null) { + contents[_In] = de_Initiator(output[_In], context); } - if (output["ChecksumAlgorithm"] !== undefined) { - contents.ChecksumAlgorithm = __expectString(output["ChecksumAlgorithm"]); + if (output[_CA] != null) { + contents[_CA] = __expectString(output[_CA]); } return contents; }; @@ -12197,11 +10659,11 @@ const de_MultipartUploadList = (output: any, context: __SerdeContext): Multipart */ const de_NoncurrentVersionExpiration = (output: any, context: __SerdeContext): NoncurrentVersionExpiration => { const contents: any = {}; - if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; + if (output[_ND] != null) { + contents[_ND] = __strictParseInt32(output[_ND]) as number; } - if (output["NewerNoncurrentVersions"] !== undefined) { - contents.NewerNoncurrentVersions = __strictParseInt32(output["NewerNoncurrentVersions"]) as number; + if (output[_NNV] != null) { + contents[_NNV] = __strictParseInt32(output[_NNV]) as number; } return contents; }; @@ -12211,14 +10673,14 @@ const de_NoncurrentVersionExpiration = (output: any, context: __SerdeContext): N */ const de_NoncurrentVersionTransition = (output: any, context: __SerdeContext): NoncurrentVersionTransition => { const contents: any = {}; - if (output["NoncurrentDays"] !== undefined) { - contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]) as number; + if (output[_ND] != null) { + contents[_ND] = __strictParseInt32(output[_ND]) as number; } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["NewerNoncurrentVersions"] !== undefined) { - contents.NewerNoncurrentVersions = __strictParseInt32(output["NewerNoncurrentVersions"]) as number; + if (output[_NNV] != null) { + contents[_NNV] = __strictParseInt32(output[_NNV]) as number; } return contents; }; @@ -12239,8 +10701,8 @@ const de_NoncurrentVersionTransitionList = (output: any, context: __SerdeContext */ const de_NotificationConfigurationFilter = (output: any, context: __SerdeContext): NotificationConfigurationFilter => { const contents: any = {}; - if (output["S3Key"] !== undefined) { - contents.Key = de_S3KeyFilter(output["S3Key"], context); + if (output[_SKe] != null) { + contents[_K] = de_S3KeyFilter(output[_SKe], context); } return contents; }; @@ -12250,31 +10712,31 @@ const de_NotificationConfigurationFilter = (output: any, context: __SerdeContext */ const de__Object = (output: any, context: __SerdeContext): _Object => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["LastModified"] !== undefined) { - contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"])); + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); } - if (output["ETag"] !== undefined) { - contents.ETag = __expectString(output["ETag"]); + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); } if (output.ChecksumAlgorithm === "") { - contents.ChecksumAlgorithm = []; - } else if (output["ChecksumAlgorithm"] !== undefined) { - contents.ChecksumAlgorithm = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output["ChecksumAlgorithm"]), context); + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); } - if (output["Size"] !== undefined) { - contents.Size = __strictParseLong(output["Size"]) as number; + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["Owner"] !== undefined) { - contents.Owner = de_Owner(output["Owner"], context); + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); } - if (output["RestoreStatus"] !== undefined) { - contents.RestoreStatus = de_RestoreStatus(output["RestoreStatus"], context); + if (output[_RSe] != null) { + contents[_RSe] = de_RestoreStatus(output[_RSe], context); } return contents; }; @@ -12295,11 +10757,11 @@ const de_ObjectList = (output: any, context: __SerdeContext): _Object[] => { */ const de_ObjectLockConfiguration = (output: any, context: __SerdeContext): ObjectLockConfiguration => { const contents: any = {}; - if (output["ObjectLockEnabled"] !== undefined) { - contents.ObjectLockEnabled = __expectString(output["ObjectLockEnabled"]); + if (output[_OLE] != null) { + contents[_OLE] = __expectString(output[_OLE]); } - if (output["Rule"] !== undefined) { - contents.Rule = de_ObjectLockRule(output["Rule"], context); + if (output[_Ru] != null) { + contents[_Ru] = de_ObjectLockRule(output[_Ru], context); } return contents; }; @@ -12309,8 +10771,8 @@ const de_ObjectLockConfiguration = (output: any, context: __SerdeContext): Objec */ const de_ObjectLockLegalHold = (output: any, context: __SerdeContext): ObjectLockLegalHold => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -12320,11 +10782,11 @@ const de_ObjectLockLegalHold = (output: any, context: __SerdeContext): ObjectLoc */ const de_ObjectLockRetention = (output: any, context: __SerdeContext): ObjectLockRetention => { const contents: any = {}; - if (output["Mode"] !== undefined) { - contents.Mode = __expectString(output["Mode"]); + if (output[_Mo] != null) { + contents[_Mo] = __expectString(output[_Mo]); } - if (output["RetainUntilDate"] !== undefined) { - contents.RetainUntilDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RetainUntilDate"])); + if (output[_RUD] != null) { + contents[_RUD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RUD])); } return contents; }; @@ -12334,8 +10796,8 @@ const de_ObjectLockRetention = (output: any, context: __SerdeContext): ObjectLoc */ const de_ObjectLockRule = (output: any, context: __SerdeContext): ObjectLockRule => { const contents: any = {}; - if (output["DefaultRetention"] !== undefined) { - contents.DefaultRetention = de_DefaultRetention(output["DefaultRetention"], context); + if (output[_DRe] != null) { + contents[_DRe] = de_DefaultRetention(output[_DRe], context); } return contents; }; @@ -12345,23 +10807,23 @@ const de_ObjectLockRule = (output: any, context: __SerdeContext): ObjectLockRule */ const de_ObjectPart = (output: any, context: __SerdeContext): ObjectPart => { const contents: any = {}; - if (output["PartNumber"] !== undefined) { - contents.PartNumber = __strictParseInt32(output["PartNumber"]) as number; + if (output[_PN] != null) { + contents[_PN] = __strictParseInt32(output[_PN]) as number; } - if (output["Size"] !== undefined) { - contents.Size = __strictParseLong(output["Size"]) as number; + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; } - if (output["ChecksumCRC32"] !== undefined) { - contents.ChecksumCRC32 = __expectString(output["ChecksumCRC32"]); + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); } - if (output["ChecksumCRC32C"] !== undefined) { - contents.ChecksumCRC32C = __expectString(output["ChecksumCRC32C"]); + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); } - if (output["ChecksumSHA1"] !== undefined) { - contents.ChecksumSHA1 = __expectString(output["ChecksumSHA1"]); + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); } - if (output["ChecksumSHA256"] !== undefined) { - contents.ChecksumSHA256 = __expectString(output["ChecksumSHA256"]); + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); } return contents; }; @@ -12371,37 +10833,37 @@ const de_ObjectPart = (output: any, context: __SerdeContext): ObjectPart => { */ const de_ObjectVersion = (output: any, context: __SerdeContext): ObjectVersion => { const contents: any = {}; - if (output["ETag"] !== undefined) { - contents.ETag = __expectString(output["ETag"]); + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); } if (output.ChecksumAlgorithm === "") { - contents.ChecksumAlgorithm = []; - } else if (output["ChecksumAlgorithm"] !== undefined) { - contents.ChecksumAlgorithm = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output["ChecksumAlgorithm"]), context); + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); } - if (output["Size"] !== undefined) { - contents.Size = __strictParseLong(output["Size"]) as number; + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["VersionId"] !== undefined) { - contents.VersionId = __expectString(output["VersionId"]); + if (output[_VI] != null) { + contents[_VI] = __expectString(output[_VI]); } - if (output["IsLatest"] !== undefined) { - contents.IsLatest = __parseBoolean(output["IsLatest"]); + if (output[_IL] != null) { + contents[_IL] = __parseBoolean(output[_IL]); } - if (output["LastModified"] !== undefined) { - contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"])); + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); } - if (output["Owner"] !== undefined) { - contents.Owner = de_Owner(output["Owner"], context); + if (output[_O] != null) { + contents[_O] = de_Owner(output[_O], context); } - if (output["RestoreStatus"] !== undefined) { - contents.RestoreStatus = de_RestoreStatus(output["RestoreStatus"], context); + if (output[_RSe] != null) { + contents[_RSe] = de_RestoreStatus(output[_RSe], context); } return contents; }; @@ -12422,11 +10884,11 @@ const de_ObjectVersionList = (output: any, context: __SerdeContext): ObjectVersi */ const de_Owner = (output: any, context: __SerdeContext): Owner => { const contents: any = {}; - if (output["DisplayName"] !== undefined) { - contents.DisplayName = __expectString(output["DisplayName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); } return contents; }; @@ -12437,9 +10899,9 @@ const de_Owner = (output: any, context: __SerdeContext): Owner => { const de_OwnershipControls = (output: any, context: __SerdeContext): OwnershipControls => { const contents: any = {}; if (output.Rule === "") { - contents.Rules = []; - } else if (output["Rule"] !== undefined) { - contents.Rules = de_OwnershipControlsRules(__getArrayIfSingleItem(output["Rule"]), context); + contents[_Rul] = []; + } else if (output[_Ru] != null) { + contents[_Rul] = de_OwnershipControlsRules(__getArrayIfSingleItem(output[_Ru]), context); } return contents; }; @@ -12449,8 +10911,8 @@ const de_OwnershipControls = (output: any, context: __SerdeContext): OwnershipCo */ const de_OwnershipControlsRule = (output: any, context: __SerdeContext): OwnershipControlsRule => { const contents: any = {}; - if (output["ObjectOwnership"] !== undefined) { - contents.ObjectOwnership = __expectString(output["ObjectOwnership"]); + if (output[_OO] != null) { + contents[_OO] = __expectString(output[_OO]); } return contents; }; @@ -12471,29 +10933,29 @@ const de_OwnershipControlsRules = (output: any, context: __SerdeContext): Owners */ const de_Part = (output: any, context: __SerdeContext): Part => { const contents: any = {}; - if (output["PartNumber"] !== undefined) { - contents.PartNumber = __strictParseInt32(output["PartNumber"]) as number; + if (output[_PN] != null) { + contents[_PN] = __strictParseInt32(output[_PN]) as number; } - if (output["LastModified"] !== undefined) { - contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastModified"])); + if (output[_LM] != null) { + contents[_LM] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LM])); } - if (output["ETag"] !== undefined) { - contents.ETag = __expectString(output["ETag"]); + if (output[_ETa] != null) { + contents[_ETa] = __expectString(output[_ETa]); } - if (output["Size"] !== undefined) { - contents.Size = __strictParseLong(output["Size"]) as number; + if (output[_Si] != null) { + contents[_Si] = __strictParseLong(output[_Si]) as number; } - if (output["ChecksumCRC32"] !== undefined) { - contents.ChecksumCRC32 = __expectString(output["ChecksumCRC32"]); + if (output[_CCRC] != null) { + contents[_CCRC] = __expectString(output[_CCRC]); } - if (output["ChecksumCRC32C"] !== undefined) { - contents.ChecksumCRC32C = __expectString(output["ChecksumCRC32C"]); + if (output[_CCRCC] != null) { + contents[_CCRCC] = __expectString(output[_CCRCC]); } - if (output["ChecksumSHA1"] !== undefined) { - contents.ChecksumSHA1 = __expectString(output["ChecksumSHA1"]); + if (output[_CSHA] != null) { + contents[_CSHA] = __expectString(output[_CSHA]); } - if (output["ChecksumSHA256"] !== undefined) { - contents.ChecksumSHA256 = __expectString(output["ChecksumSHA256"]); + if (output[_CSHAh] != null) { + contents[_CSHAh] = __expectString(output[_CSHAh]); } return contents; }; @@ -12503,8 +10965,8 @@ const de_Part = (output: any, context: __SerdeContext): Part => { */ const de_PartitionedPrefix = (output: any, context: __SerdeContext): PartitionedPrefix => { const contents: any = {}; - if (output["PartitionDateSource"] !== undefined) { - contents.PartitionDateSource = __expectString(output["PartitionDateSource"]); + if (output[_PDS] != null) { + contents[_PDS] = __expectString(output[_PDS]); } return contents; }; @@ -12536,8 +10998,8 @@ const de_PartsList = (output: any, context: __SerdeContext): ObjectPart[] => { */ const de_PolicyStatus = (output: any, context: __SerdeContext): PolicyStatus => { const contents: any = {}; - if (output["IsPublic"] !== undefined) { - contents.IsPublic = __parseBoolean(output["IsPublic"]); + if (output[_IP] != null) { + contents[_IP] = __parseBoolean(output[_IP]); } return contents; }; @@ -12547,14 +11009,14 @@ const de_PolicyStatus = (output: any, context: __SerdeContext): PolicyStatus => */ const de_Progress = (output: any, context: __SerdeContext): Progress => { const contents: any = {}; - if (output["BytesScanned"] !== undefined) { - contents.BytesScanned = __strictParseLong(output["BytesScanned"]) as number; + if (output[_BS] != null) { + contents[_BS] = __strictParseLong(output[_BS]) as number; } - if (output["BytesProcessed"] !== undefined) { - contents.BytesProcessed = __strictParseLong(output["BytesProcessed"]) as number; + if (output[_BP] != null) { + contents[_BP] = __strictParseLong(output[_BP]) as number; } - if (output["BytesReturned"] !== undefined) { - contents.BytesReturned = __strictParseLong(output["BytesReturned"]) as number; + if (output[_BRy] != null) { + contents[_BRy] = __strictParseLong(output[_BRy]) as number; } return contents; }; @@ -12564,17 +11026,17 @@ const de_Progress = (output: any, context: __SerdeContext): Progress => { */ const de_PublicAccessBlockConfiguration = (output: any, context: __SerdeContext): PublicAccessBlockConfiguration => { const contents: any = {}; - if (output["BlockPublicAcls"] !== undefined) { - contents.BlockPublicAcls = __parseBoolean(output["BlockPublicAcls"]); + if (output[_BPA] != null) { + contents[_BPA] = __parseBoolean(output[_BPA]); } - if (output["IgnorePublicAcls"] !== undefined) { - contents.IgnorePublicAcls = __parseBoolean(output["IgnorePublicAcls"]); + if (output[_IPA] != null) { + contents[_IPA] = __parseBoolean(output[_IPA]); } - if (output["BlockPublicPolicy"] !== undefined) { - contents.BlockPublicPolicy = __parseBoolean(output["BlockPublicPolicy"]); + if (output[_BPP] != null) { + contents[_BPP] = __parseBoolean(output[_BPP]); } - if (output["RestrictPublicBuckets"] !== undefined) { - contents.RestrictPublicBuckets = __parseBoolean(output["RestrictPublicBuckets"]); + if (output[_RPB] != null) { + contents[_RPB] = __parseBoolean(output[_RPB]); } return contents; }; @@ -12584,19 +11046,19 @@ const de_PublicAccessBlockConfiguration = (output: any, context: __SerdeContext) */ const de_QueueConfiguration = (output: any, context: __SerdeContext): QueueConfiguration => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["Queue"] !== undefined) { - contents.QueueArn = __expectString(output["Queue"]); + if (output[_Qu] != null) { + contents[_QA] = __expectString(output[_Qu]); } if (output.Event === "") { - contents.Events = []; - } else if (output["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Event"]), context); + contents[_Eve] = []; + } else if (output[_Ev] != null) { + contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); } - if (output["Filter"] !== undefined) { - contents.Filter = de_NotificationConfigurationFilter(output["Filter"], context); + if (output[_F] != null) { + contents[_F] = de_NotificationConfigurationFilter(output[_F], context); } return contents; }; @@ -12617,20 +11079,20 @@ const de_QueueConfigurationList = (output: any, context: __SerdeContext): QueueC */ const de_Redirect = (output: any, context: __SerdeContext): Redirect => { const contents: any = {}; - if (output["HostName"] !== undefined) { - contents.HostName = __expectString(output["HostName"]); + if (output[_HN] != null) { + contents[_HN] = __expectString(output[_HN]); } - if (output["HttpRedirectCode"] !== undefined) { - contents.HttpRedirectCode = __expectString(output["HttpRedirectCode"]); + if (output[_HRC] != null) { + contents[_HRC] = __expectString(output[_HRC]); } - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); } - if (output["ReplaceKeyPrefixWith"] !== undefined) { - contents.ReplaceKeyPrefixWith = __expectString(output["ReplaceKeyPrefixWith"]); + if (output[_RKPW] != null) { + contents[_RKPW] = __expectString(output[_RKPW]); } - if (output["ReplaceKeyWith"] !== undefined) { - contents.ReplaceKeyWith = __expectString(output["ReplaceKeyWith"]); + if (output[_RKW] != null) { + contents[_RKW] = __expectString(output[_RKW]); } return contents; }; @@ -12640,11 +11102,11 @@ const de_Redirect = (output: any, context: __SerdeContext): Redirect => { */ const de_RedirectAllRequestsTo = (output: any, context: __SerdeContext): RedirectAllRequestsTo => { const contents: any = {}; - if (output["HostName"] !== undefined) { - contents.HostName = __expectString(output["HostName"]); + if (output[_HN] != null) { + contents[_HN] = __expectString(output[_HN]); } - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); } return contents; }; @@ -12654,8 +11116,8 @@ const de_RedirectAllRequestsTo = (output: any, context: __SerdeContext): Redirec */ const de_ReplicaModifications = (output: any, context: __SerdeContext): ReplicaModifications => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -12665,13 +11127,13 @@ const de_ReplicaModifications = (output: any, context: __SerdeContext): ReplicaM */ const de_ReplicationConfiguration = (output: any, context: __SerdeContext): ReplicationConfiguration => { const contents: any = {}; - if (output["Role"] !== undefined) { - contents.Role = __expectString(output["Role"]); + if (output[_Ro] != null) { + contents[_Ro] = __expectString(output[_Ro]); } if (output.Rule === "") { - contents.Rules = []; - } else if (output["Rule"] !== undefined) { - contents.Rules = de_ReplicationRules(__getArrayIfSingleItem(output["Rule"]), context); + contents[_Rul] = []; + } else if (output[_Ru] != null) { + contents[_Rul] = de_ReplicationRules(__getArrayIfSingleItem(output[_Ru]), context); } return contents; }; @@ -12681,34 +11143,34 @@ const de_ReplicationConfiguration = (output: any, context: __SerdeContext): Repl */ const de_ReplicationRule = (output: any, context: __SerdeContext): ReplicationRule => { const contents: any = {}; - if (output["ID"] !== undefined) { - contents.ID = __expectString(output["ID"]); + if (output[_ID_] != null) { + contents[_ID_] = __expectString(output[_ID_]); } - if (output["Priority"] !== undefined) { - contents.Priority = __strictParseInt32(output["Priority"]) as number; + if (output[_Pri] != null) { + contents[_Pri] = __strictParseInt32(output[_Pri]) as number; } - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Filter === "") { // Pass empty tags. - } else if (output["Filter"] !== undefined) { - contents.Filter = de_ReplicationRuleFilter(__expectUnion(output["Filter"]), context); + } else if (output[_F] != null) { + contents[_F] = de_ReplicationRuleFilter(__expectUnion(output[_F]), context); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["SourceSelectionCriteria"] !== undefined) { - contents.SourceSelectionCriteria = de_SourceSelectionCriteria(output["SourceSelectionCriteria"], context); + if (output[_SSC] != null) { + contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context); } - if (output["ExistingObjectReplication"] !== undefined) { - contents.ExistingObjectReplication = de_ExistingObjectReplication(output["ExistingObjectReplication"], context); + if (output[_EOR] != null) { + contents[_EOR] = de_ExistingObjectReplication(output[_EOR], context); } - if (output["Destination"] !== undefined) { - contents.Destination = de_Destination(output["Destination"], context); + if (output[_Des] != null) { + contents[_Des] = de_Destination(output[_Des], context); } - if (output["DeleteMarkerReplication"] !== undefined) { - contents.DeleteMarkerReplication = de_DeleteMarkerReplication(output["DeleteMarkerReplication"], context); + if (output[_DMR] != null) { + contents[_DMR] = de_DeleteMarkerReplication(output[_DMR], context); } return contents; }; @@ -12718,13 +11180,13 @@ const de_ReplicationRule = (output: any, context: __SerdeContext): ReplicationRu */ const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): ReplicationRuleAndOperator => { const contents: any = {}; - if (output["Prefix"] !== undefined) { - contents.Prefix = __expectString(output["Prefix"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } if (output.Tag === "") { - contents.Tags = []; - } else if (output["Tag"] !== undefined) { - contents.Tags = de_TagSet(__getArrayIfSingleItem(output["Tag"]), context); + contents[_Tag] = []; + } else if (output[_Ta] != null) { + contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); } return contents; }; @@ -12733,19 +11195,19 @@ const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): Re * deserializeAws_restXmlReplicationRuleFilter */ const de_ReplicationRuleFilter = (output: any, context: __SerdeContext): ReplicationRuleFilter => { - if (output["Prefix"] !== undefined) { + if (output[_P] != null) { return { - Prefix: __expectString(output["Prefix"]) as any, + Prefix: __expectString(output[_P]) as any, }; } - if (output["Tag"] !== undefined) { + if (output[_Ta] != null) { return { - Tag: de_Tag(output["Tag"], context), + Tag: de_Tag(output[_Ta], context), }; } - if (output["And"] !== undefined) { + if (output[_A] != null) { return { - And: de_ReplicationRuleAndOperator(output["And"], context), + And: de_ReplicationRuleAndOperator(output[_A], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -12767,11 +11229,11 @@ const de_ReplicationRules = (output: any, context: __SerdeContext): ReplicationR */ const de_ReplicationTime = (output: any, context: __SerdeContext): ReplicationTime => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["Time"] !== undefined) { - contents.Time = de_ReplicationTimeValue(output["Time"], context); + if (output[_Tim] != null) { + contents[_Tim] = de_ReplicationTimeValue(output[_Tim], context); } return contents; }; @@ -12781,8 +11243,8 @@ const de_ReplicationTime = (output: any, context: __SerdeContext): ReplicationTi */ const de_ReplicationTimeValue = (output: any, context: __SerdeContext): ReplicationTimeValue => { const contents: any = {}; - if (output["Minutes"] !== undefined) { - contents.Minutes = __strictParseInt32(output["Minutes"]) as number; + if (output[_Mi] != null) { + contents[_Mi] = __strictParseInt32(output[_Mi]) as number; } return contents; }; @@ -12792,11 +11254,11 @@ const de_ReplicationTimeValue = (output: any, context: __SerdeContext): Replicat */ const de_RestoreStatus = (output: any, context: __SerdeContext): RestoreStatus => { const contents: any = {}; - if (output["IsRestoreInProgress"] !== undefined) { - contents.IsRestoreInProgress = __parseBoolean(output["IsRestoreInProgress"]); + if (output[_IRIP] != null) { + contents[_IRIP] = __parseBoolean(output[_IRIP]); } - if (output["RestoreExpiryDate"] !== undefined) { - contents.RestoreExpiryDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RestoreExpiryDate"])); + if (output[_RED] != null) { + contents[_RED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_RED])); } return contents; }; @@ -12806,11 +11268,11 @@ const de_RestoreStatus = (output: any, context: __SerdeContext): RestoreStatus = */ const de_RoutingRule = (output: any, context: __SerdeContext): RoutingRule => { const contents: any = {}; - if (output["Condition"] !== undefined) { - contents.Condition = de_Condition(output["Condition"], context); + if (output[_Con] != null) { + contents[_Con] = de_Condition(output[_Con], context); } - if (output["Redirect"] !== undefined) { - contents.Redirect = de_Redirect(output["Redirect"], context); + if (output[_Red] != null) { + contents[_Red] = de_Redirect(output[_Red], context); } return contents; }; @@ -12832,9 +11294,9 @@ const de_RoutingRules = (output: any, context: __SerdeContext): RoutingRule[] => const de_S3KeyFilter = (output: any, context: __SerdeContext): S3KeyFilter => { const contents: any = {}; if (output.FilterRule === "") { - contents.FilterRules = []; - } else if (output["FilterRule"] !== undefined) { - contents.FilterRules = de_FilterRuleList(__getArrayIfSingleItem(output["FilterRule"]), context); + contents[_FRi] = []; + } else if (output[_FR] != null) { + contents[_FRi] = de_FilterRuleList(__getArrayIfSingleItem(output[_FR]), context); } return contents; }; @@ -12844,11 +11306,11 @@ const de_S3KeyFilter = (output: any, context: __SerdeContext): S3KeyFilter => { */ const de_ServerSideEncryptionByDefault = (output: any, context: __SerdeContext): ServerSideEncryptionByDefault => { const contents: any = {}; - if (output["SSEAlgorithm"] !== undefined) { - contents.SSEAlgorithm = __expectString(output["SSEAlgorithm"]); + if (output[_SSEA] != null) { + contents[_SSEA] = __expectString(output[_SSEA]); } - if (output["KMSMasterKeyID"] !== undefined) { - contents.KMSMasterKeyID = __expectString(output["KMSMasterKeyID"]); + if (output[_KMSMKID] != null) { + contents[_KMSMKID] = __expectString(output[_KMSMKID]); } return contents; }; @@ -12862,9 +11324,9 @@ const de_ServerSideEncryptionConfiguration = ( ): ServerSideEncryptionConfiguration => { const contents: any = {}; if (output.Rule === "") { - contents.Rules = []; - } else if (output["Rule"] !== undefined) { - contents.Rules = de_ServerSideEncryptionRules(__getArrayIfSingleItem(output["Rule"]), context); + contents[_Rul] = []; + } else if (output[_Ru] != null) { + contents[_Rul] = de_ServerSideEncryptionRules(__getArrayIfSingleItem(output[_Ru]), context); } return contents; }; @@ -12874,14 +11336,11 @@ const de_ServerSideEncryptionConfiguration = ( */ const de_ServerSideEncryptionRule = (output: any, context: __SerdeContext): ServerSideEncryptionRule => { const contents: any = {}; - if (output["ApplyServerSideEncryptionByDefault"] !== undefined) { - contents.ApplyServerSideEncryptionByDefault = de_ServerSideEncryptionByDefault( - output["ApplyServerSideEncryptionByDefault"], - context - ); + if (output[_ASSEBD] != null) { + contents[_ASSEBD] = de_ServerSideEncryptionByDefault(output[_ASSEBD], context); } - if (output["BucketKeyEnabled"] !== undefined) { - contents.BucketKeyEnabled = __parseBoolean(output["BucketKeyEnabled"]); + if (output[_BKE] != null) { + contents[_BKE] = __parseBoolean(output[_BKE]); } return contents; }; @@ -12902,17 +11361,17 @@ const de_ServerSideEncryptionRules = (output: any, context: __SerdeContext): Ser */ const de_SessionCredentials = (output: any, context: __SerdeContext): SessionCredentials => { const contents: any = {}; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = __expectString(output["AccessKeyId"]); + if (output[_AKI] != null) { + contents[_AKI] = __expectString(output[_AKI]); } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = __expectString(output["SecretAccessKey"]); + if (output[_SAK] != null) { + contents[_SAK] = __expectString(output[_SAK]); } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = __expectString(output["SessionToken"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["Expiration"] !== undefined) { - contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"])); + if (output[_Exp] != null) { + contents[_Exp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Exp])); } return contents; }; @@ -12930,11 +11389,11 @@ const de_SimplePrefix = (output: any, context: __SerdeContext): SimplePrefix => */ const de_SourceSelectionCriteria = (output: any, context: __SerdeContext): SourceSelectionCriteria => { const contents: any = {}; - if (output["SseKmsEncryptedObjects"] !== undefined) { - contents.SseKmsEncryptedObjects = de_SseKmsEncryptedObjects(output["SseKmsEncryptedObjects"], context); + if (output[_SKEO] != null) { + contents[_SKEO] = de_SseKmsEncryptedObjects(output[_SKEO], context); } - if (output["ReplicaModifications"] !== undefined) { - contents.ReplicaModifications = de_ReplicaModifications(output["ReplicaModifications"], context); + if (output[_RM] != null) { + contents[_RM] = de_ReplicaModifications(output[_RM], context); } return contents; }; @@ -12944,8 +11403,8 @@ const de_SourceSelectionCriteria = (output: any, context: __SerdeContext): Sourc */ const de_SSEKMS = (output: any, context: __SerdeContext): SSEKMS => { const contents: any = {}; - if (output["KeyId"] !== undefined) { - contents.KeyId = __expectString(output["KeyId"]); + if (output[_KI] != null) { + contents[_KI] = __expectString(output[_KI]); } return contents; }; @@ -12955,8 +11414,8 @@ const de_SSEKMS = (output: any, context: __SerdeContext): SSEKMS => { */ const de_SseKmsEncryptedObjects = (output: any, context: __SerdeContext): SseKmsEncryptedObjects => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -12974,14 +11433,14 @@ const de_SSES3 = (output: any, context: __SerdeContext): SSES3 => { */ const de_Stats = (output: any, context: __SerdeContext): Stats => { const contents: any = {}; - if (output["BytesScanned"] !== undefined) { - contents.BytesScanned = __strictParseLong(output["BytesScanned"]) as number; + if (output[_BS] != null) { + contents[_BS] = __strictParseLong(output[_BS]) as number; } - if (output["BytesProcessed"] !== undefined) { - contents.BytesProcessed = __strictParseLong(output["BytesProcessed"]) as number; + if (output[_BP] != null) { + contents[_BP] = __strictParseLong(output[_BP]) as number; } - if (output["BytesReturned"] !== undefined) { - contents.BytesReturned = __strictParseLong(output["BytesReturned"]) as number; + if (output[_BRy] != null) { + contents[_BRy] = __strictParseLong(output[_BRy]) as number; } return contents; }; @@ -12991,8 +11450,8 @@ const de_Stats = (output: any, context: __SerdeContext): Stats => { */ const de_StorageClassAnalysis = (output: any, context: __SerdeContext): StorageClassAnalysis => { const contents: any = {}; - if (output["DataExport"] !== undefined) { - contents.DataExport = de_StorageClassAnalysisDataExport(output["DataExport"], context); + if (output[_DE] != null) { + contents[_DE] = de_StorageClassAnalysisDataExport(output[_DE], context); } return contents; }; @@ -13002,11 +11461,11 @@ const de_StorageClassAnalysis = (output: any, context: __SerdeContext): StorageC */ const de_StorageClassAnalysisDataExport = (output: any, context: __SerdeContext): StorageClassAnalysisDataExport => { const contents: any = {}; - if (output["OutputSchemaVersion"] !== undefined) { - contents.OutputSchemaVersion = __expectString(output["OutputSchemaVersion"]); + if (output[_OSV] != null) { + contents[_OSV] = __expectString(output[_OSV]); } - if (output["Destination"] !== undefined) { - contents.Destination = de_AnalyticsExportDestination(output["Destination"], context); + if (output[_Des] != null) { + contents[_Des] = de_AnalyticsExportDestination(output[_Des], context); } return contents; }; @@ -13016,11 +11475,11 @@ const de_StorageClassAnalysisDataExport = (output: any, context: __SerdeContext) */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -13041,11 +11500,11 @@ const de_TagSet = (output: any, context: __SerdeContext): Tag[] => { */ const de_TargetGrant = (output: any, context: __SerdeContext): TargetGrant => { const contents: any = {}; - if (output["Grantee"] !== undefined) { - contents.Grantee = de_Grantee(output["Grantee"], context); + if (output[_Gra] != null) { + contents[_Gra] = de_Grantee(output[_Gra], context); } - if (output["Permission"] !== undefined) { - contents.Permission = __expectString(output["Permission"]); + if (output[_Pe] != null) { + contents[_Pe] = __expectString(output[_Pe]); } return contents; }; @@ -13066,11 +11525,11 @@ const de_TargetGrants = (output: any, context: __SerdeContext): TargetGrant[] => */ const de_TargetObjectKeyFormat = (output: any, context: __SerdeContext): TargetObjectKeyFormat => { const contents: any = {}; - if (output["SimplePrefix"] !== undefined) { - contents.SimplePrefix = de_SimplePrefix(output["SimplePrefix"], context); + if (output[_SPi] != null) { + contents[_SPi] = de_SimplePrefix(output[_SPi], context); } - if (output["PartitionedPrefix"] !== undefined) { - contents.PartitionedPrefix = de_PartitionedPrefix(output["PartitionedPrefix"], context); + if (output[_PP] != null) { + contents[_PP] = de_PartitionedPrefix(output[_PP], context); } return contents; }; @@ -13080,11 +11539,11 @@ const de_TargetObjectKeyFormat = (output: any, context: __SerdeContext): TargetO */ const de_Tiering = (output: any, context: __SerdeContext): Tiering => { const contents: any = {}; - if (output["Days"] !== undefined) { - contents.Days = __strictParseInt32(output["Days"]) as number; + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; } - if (output["AccessTier"] !== undefined) { - contents.AccessTier = __expectString(output["AccessTier"]); + if (output[_AT] != null) { + contents[_AT] = __expectString(output[_AT]); } return contents; }; @@ -13105,19 +11564,19 @@ const de_TieringList = (output: any, context: __SerdeContext): Tiering[] => { */ const de_TopicConfiguration = (output: any, context: __SerdeContext): TopicConfiguration => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["Topic"] !== undefined) { - contents.TopicArn = __expectString(output["Topic"]); + if (output[_Top] != null) { + contents[_TA] = __expectString(output[_Top]); } if (output.Event === "") { - contents.Events = []; - } else if (output["Event"] !== undefined) { - contents.Events = de_EventList(__getArrayIfSingleItem(output["Event"]), context); + contents[_Eve] = []; + } else if (output[_Ev] != null) { + contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); } - if (output["Filter"] !== undefined) { - contents.Filter = de_NotificationConfigurationFilter(output["Filter"], context); + if (output[_F] != null) { + contents[_F] = de_NotificationConfigurationFilter(output[_F], context); } return contents; }; @@ -13138,14 +11597,14 @@ const de_TopicConfigurationList = (output: any, context: __SerdeContext): TopicC */ const de_Transition = (output: any, context: __SerdeContext): Transition => { const contents: any = {}; - if (output["Date"] !== undefined) { - contents.Date = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Date"])); + if (output[_Dat] != null) { + contents[_Dat] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Dat])); } - if (output["Days"] !== undefined) { - contents.Days = __strictParseInt32(output["Days"]) as number; + if (output[_Da] != null) { + contents[_Da] = __strictParseInt32(output[_Da]) as number; } - if (output["StorageClass"] !== undefined) { - contents.StorageClass = __expectString(output["StorageClass"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } return contents; }; @@ -13180,6 +11639,650 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "And"; +const _AAO = "AnalyticsAndOperator"; +const _AC = "AnalyticsConfiguration"; +const _ACL = "ACL"; +const _ACLc = "AccessControlList"; +const _ACLn = "AnalyticsConfigurationList"; +const _ACP = "AccessControlPolicy"; +const _ACT = "AccessControlTranslation"; +const _ACc = "AccelerateConfiguration"; +const _AD = "AbortDate"; +const _AED = "AnalyticsExportDestination"; +const _AF = "AnalyticsFilter"; +const _AH = "AllowedHeader"; +const _AHl = "AllowedHeaders"; +const _AI = "AnalyticsId"; +const _AIMU = "AbortIncompleteMultipartUpload"; +const _AIc = "AccountId"; +const _AKI = "AccessKeyId"; +const _AM = "AllowedMethod"; +const _AMl = "AllowedMethods"; +const _AO = "AllowedOrigin"; +const _AOl = "AllowedOrigins"; +const _APA = "AccessPointAlias"; +const _APAc = "AccessPointArn"; +const _AQRD = "AllowQuotedRecordDelimiter"; +const _AR = "AcceptRanges"; +const _ARI = "AbortRuleId"; +const _AS = "ArchiveStatus"; +const _ASBD = "AnalyticsS3BucketDestination"; +const _ASEFF = "AnalyticsS3ExportFileFormat"; +const _ASSEBD = "ApplyServerSideEncryptionByDefault"; +const _AT = "AccessTier"; +const _Ac = "Account"; +const _B = "Bucket"; +const _BAI = "BucketAccountId"; +const _BAS = "BucketAccelerateStatus"; +const _BGR = "BypassGovernanceRetention"; +const _BI = "BucketInfo"; +const _BKE = "BucketKeyEnabled"; +const _BLC = "BucketLifecycleConfiguration"; +const _BLCu = "BucketLocationConstraint"; +const _BLN = "BucketLocationName"; +const _BLP = "BucketLogsPermission"; +const _BLS = "BucketLoggingStatus"; +const _BLT = "BucketLocationType"; +const _BN = "BucketName"; +const _BP = "BytesProcessed"; +const _BPA = "BlockPublicAcls"; +const _BPP = "BlockPublicPolicy"; +const _BR = "BucketRegion"; +const _BRy = "BytesReturned"; +const _BS = "BytesScanned"; +const _BT = "BucketType"; +const _BVS = "BucketVersioningStatus"; +const _Bu = "Buckets"; +const _C = "Credentials"; +const _CA = "ChecksumAlgorithm"; +const _CACL = "CannedACL"; +const _CBC = "CreateBucketConfiguration"; +const _CC = "CacheControl"; +const _CCRC = "ChecksumCRC32"; +const _CCRCC = "ChecksumCRC32C"; +const _CD = "ContentDisposition"; +const _CDr = "CreationDate"; +const _CE = "ContentEncoding"; +const _CF = "CloudFunction"; +const _CFC = "CloudFunctionConfiguration"; +const _CL = "ContentLanguage"; +const _CLo = "ContentLength"; +const _CM = "ChecksumMode"; +const _CMD = "ContentMD5"; +const _CMU = "CompletedMultipartUpload"; +const _CORSC = "CORSConfiguration"; +const _CORSR = "CORSRule"; +const _CORSRu = "CORSRules"; +const _CP = "CommonPrefixes"; +const _CPo = "CompletedPart"; +const _CR = "ContentRange"; +const _CRSBA = "ConfirmRemoveSelfBucketAccess"; +const _CS = "CopySource"; +const _CSHA = "ChecksumSHA1"; +const _CSHAh = "ChecksumSHA256"; +const _CSIM = "CopySourceIfMatch"; +const _CSIMS = "CopySourceIfModifiedSince"; +const _CSINM = "CopySourceIfNoneMatch"; +const _CSIUS = "CopySourceIfUnmodifiedSince"; +const _CSR = "CopySourceRange"; +const _CSSSECA = "CopySourceSSECustomerAlgorithm"; +const _CSSSECK = "CopySourceSSECustomerKey"; +const _CSSSECKMD = "CopySourceSSECustomerKeyMD5"; +const _CSV = "CSV"; +const _CSVI = "CopySourceVersionId"; +const _CSVIn = "CSVInput"; +const _CSVO = "CSVOutput"; +const _CT = "ContentType"; +const _CTo = "ContinuationToken"; +const _CTom = "CompressionType"; +const _Ch = "Checksum"; +const _Co = "Contents"; +const _Cod = "Code"; +const _Com = "Comments"; +const _Con = "Condition"; +const _D = "Delimiter"; +const _DAI = "DaysAfterInitiation"; +const _DE = "DataExport"; +const _DM = "DeleteMarker"; +const _DMR = "DeleteMarkerReplication"; +const _DMRS = "DeleteMarkerReplicationStatus"; +const _DMVI = "DeleteMarkerVersionId"; +const _DMe = "DeleteMarkers"; +const _DN = "DisplayName"; +const _DR = "DataRedundancy"; +const _DRe = "DefaultRetention"; +const _Da = "Days"; +const _Dat = "Date"; +const _De = "Deleted"; +const _Del = "Delete"; +const _Des = "Destination"; +const _Desc = "Description"; +const _E = "Expires"; +const _EA = "EmailAddress"; +const _EBC = "EventBridgeConfiguration"; +const _EBO = "ExpectedBucketOwner"; +const _EC = "ErrorCode"; +const _ECn = "EncryptionConfiguration"; +const _ED = "ErrorDocument"; +const _EH = "ExposeHeaders"; +const _EHx = "ExposeHeader"; +const _EM = "ErrorMessage"; +const _EODM = "ExpiredObjectDeleteMarker"; +const _EOR = "ExistingObjectReplication"; +const _EORS = "ExistingObjectReplicationStatus"; +const _ERP = "EnableRequestProgress"; +const _ES = "ExpirationStatus"; +const _ESBO = "ExpectedSourceBucketOwner"; +const _ET = "EncodingType"; +const _ETa = "ETag"; +const _ETn = "EncryptionType"; +const _ETv = "EventThreshold"; +const _ETx = "ExpressionType"; +const _En = "Encryption"; +const _Ena = "Enabled"; +const _End = "End"; +const _Er = "Error"; +const _Err = "Errors"; +const _Ev = "Event"; +const _Eve = "Events"; +const _Ex = "Expression"; +const _Exp = "Expiration"; +const _F = "Filter"; +const _FD = "FieldDelimiter"; +const _FHI = "FileHeaderInfo"; +const _FO = "FetchOwner"; +const _FR = "FilterRule"; +const _FRN = "FilterRuleName"; +const _FRV = "FilterRuleValue"; +const _FRi = "FilterRules"; +const _Fi = "Field"; +const _Fo = "Format"; +const _Fr = "Frequency"; +const _G = "Grant"; +const _GFC = "GrantFullControl"; +const _GJP = "GlacierJobParameters"; +const _GR = "GrantRead"; +const _GRACP = "GrantReadACP"; +const _GW = "GrantWrite"; +const _GWACP = "GrantWriteACP"; +const _Gr = "Grants"; +const _Gra = "Grantee"; +const _HECRE = "HttpErrorCodeReturnedEquals"; +const _HN = "HostName"; +const _HRC = "HttpRedirectCode"; +const _I = "Id"; +const _IC = "InventoryConfiguration"; +const _ICL = "InventoryConfigurationList"; +const _ID = "IndexDocument"; +const _ID_ = "ID"; +const _IDn = "InventoryDestination"; +const _IE = "IsEnabled"; +const _IEn = "InventoryEncryption"; +const _IF = "InventoryFilter"; +const _IFn = "InventoryFormat"; +const _IFnv = "InventoryFrequency"; +const _II = "InventoryId"; +const _IIOV = "InventoryIncludedObjectVersions"; +const _IL = "IsLatest"; +const _IM = "IfMatch"; +const _IMS = "IfModifiedSince"; +const _INM = "IfNoneMatch"; +const _IOF = "InventoryOptionalField"; +const _IOV = "IncludedObjectVersions"; +const _IP = "IsPublic"; +const _IPA = "IgnorePublicAcls"; +const _IRIP = "IsRestoreInProgress"; +const _IS = "InputSerialization"; +const _ISBD = "InventoryS3BucketDestination"; +const _ISn = "InventorySchedule"; +const _IT = "IsTruncated"; +const _ITAO = "IntelligentTieringAndOperator"; +const _ITAT = "IntelligentTieringAccessTier"; +const _ITC = "IntelligentTieringConfiguration"; +const _ITCL = "IntelligentTieringConfigurationList"; +const _ITD = "IntelligentTieringDays"; +const _ITF = "IntelligentTieringFilter"; +const _ITI = "IntelligentTieringId"; +const _ITS = "IntelligentTieringStatus"; +const _IUS = "IfUnmodifiedSince"; +const _In = "Initiator"; +const _Ini = "Initiated"; +const _JSON = "JSON"; +const _JSONI = "JSONInput"; +const _JSONO = "JSONOutput"; +const _JSONT = "JSONType"; +const _K = "Key"; +const _KC = "KeyCount"; +const _KI = "KeyId"; +const _KM = "KeyMarker"; +const _KMSC = "KMSContext"; +const _KMSKI = "KMSKeyId"; +const _KMSMKID = "KMSMasterKeyID"; +const _KPE = "KeyPrefixEquals"; +const _L = "Location"; +const _LC = "LocationConstraint"; +const _LE = "LoggingEnabled"; +const _LEi = "LifecycleExpiration"; +const _LFA = "LambdaFunctionArn"; +const _LFC = "LambdaFunctionConfigurations"; +const _LFCa = "LambdaFunctionConfiguration"; +const _LI = "LocationInfo"; +const _LM = "LastModified"; +const _LNAS = "LocationNameAsString"; +const _LP = "LocationPrefix"; +const _LR = "LifecycleRule"; +const _LRAO = "LifecycleRuleAndOperator"; +const _LRF = "LifecycleRuleFilter"; +const _LT = "LocationType"; +const _M = "Marker"; +const _MAO = "MetricsAndOperator"; +const _MAS = "MaxAgeSeconds"; +const _MC = "MetricsConfiguration"; +const _MCL = "MetricsConfigurationList"; +const _MD = "MetadataDirective"; +const _MDB = "MaxDirectoryBuckets"; +const _MDf = "MfaDelete"; +const _ME = "MetadataEntry"; +const _MF = "MetricsFilter"; +const _MFA = "MFA"; +const _MFAD = "MFADelete"; +const _MI = "MetricsId"; +const _MK = "MaxKeys"; +const _MKe = "MetadataKey"; +const _MM = "MissingMeta"; +const _MP = "MaxParts"; +const _MS = "MetricsStatus"; +const _MU = "MaxUploads"; +const _MV = "MetadataValue"; +const _Me = "Metrics"; +const _Mes = "Message"; +const _Mi = "Minutes"; +const _Mo = "Mode"; +const _N = "Name"; +const _NC = "NotificationConfiguration"; +const _NCF = "NotificationConfigurationFilter"; +const _NCT = "NextContinuationToken"; +const _ND = "NoncurrentDays"; +const _NI = "NotificationId"; +const _NKM = "NextKeyMarker"; +const _NM = "NextMarker"; +const _NNV = "NewerNoncurrentVersions"; +const _NPNM = "NextPartNumberMarker"; +const _NUIM = "NextUploadIdMarker"; +const _NVE = "NoncurrentVersionExpiration"; +const _NVIM = "NextVersionIdMarker"; +const _NVT = "NoncurrentVersionTransitions"; +const _NVTo = "NoncurrentVersionTransition"; +const _O = "Owner"; +const _OA = "ObjectAttributes"; +const _OC = "OwnershipControls"; +const _OCACL = "ObjectCannedACL"; +const _OCR = "OwnershipControlsRule"; +const _OF = "OptionalFields"; +const _OI = "ObjectIdentifier"; +const _OK = "ObjectKey"; +const _OL = "OutputLocation"; +const _OLC = "ObjectLockConfiguration"; +const _OLE = "ObjectLockEnabled"; +const _OLEFB = "ObjectLockEnabledForBucket"; +const _OLLH = "ObjectLockLegalHold"; +const _OLLHS = "ObjectLockLegalHoldStatus"; +const _OLM = "ObjectLockMode"; +const _OLR = "ObjectLockRetention"; +const _OLRM = "ObjectLockRetentionMode"; +const _OLRUD = "ObjectLockRetainUntilDate"; +const _OLRb = "ObjectLockRule"; +const _OO = "ObjectOwnership"; +const _OOA = "OptionalObjectAttributes"; +const _OOw = "OwnerOverride"; +const _OP = "ObjectParts"; +const _OS = "OutputSerialization"; +const _OSGT = "ObjectSizeGreaterThan"; +const _OSGTB = "ObjectSizeGreaterThanBytes"; +const _OSLT = "ObjectSizeLessThan"; +const _OSLTB = "ObjectSizeLessThanBytes"; +const _OSV = "OutputSchemaVersion"; +const _OSb = "ObjectSize"; +const _OVI = "ObjectVersionId"; +const _Ob = "Objects"; +const _P = "Prefix"; +const _PABC = "PublicAccessBlockConfiguration"; +const _PC = "PartsCount"; +const _PDS = "PartitionDateSource"; +const _PI = "ParquetInput"; +const _PN = "PartNumber"; +const _PNM = "PartNumberMarker"; +const _PP = "PartitionedPrefix"; +const _Pa = "Payer"; +const _Par = "Part"; +const _Parq = "Parquet"; +const _Part = "Parts"; +const _Pe = "Permission"; +const _Pr = "Protocol"; +const _Pri = "Priority"; +const _Q = "Quiet"; +const _QA = "QueueArn"; +const _QC = "QueueConfiguration"; +const _QCu = "QueueConfigurations"; +const _QCuo = "QuoteCharacter"; +const _QEC = "QuoteEscapeCharacter"; +const _QF = "QuoteFields"; +const _Qu = "Queue"; +const _R = "Range"; +const _RART = "RedirectAllRequestsTo"; +const _RC = "RequestCharged"; +const _RCC = "ResponseCacheControl"; +const _RCD = "ResponseContentDisposition"; +const _RCE = "ResponseContentEncoding"; +const _RCL = "ResponseContentLanguage"; +const _RCT = "ResponseContentType"; +const _RCe = "ReplicationConfiguration"; +const _RD = "RecordDelimiter"; +const _RE = "ResponseExpires"; +const _RED = "RestoreExpiryDate"; +const _RKKID = "ReplicaKmsKeyID"; +const _RKPW = "ReplaceKeyPrefixWith"; +const _RKW = "ReplaceKeyWith"; +const _RM = "ReplicaModifications"; +const _RMS = "ReplicaModificationsStatus"; +const _ROP = "RestoreOutputPath"; +const _RP = "RequestPayer"; +const _RPB = "RestrictPublicBuckets"; +const _RPC = "RequestPaymentConfiguration"; +const _RPe = "RequestProgress"; +const _RR = "RequestRoute"; +const _RRAO = "ReplicationRuleAndOperator"; +const _RRF = "ReplicationRuleFilter"; +const _RRS = "ReplicationRuleStatus"; +const _RRT = "RestoreRequestType"; +const _RRe = "ReplicationRule"; +const _RRes = "RestoreRequest"; +const _RRo = "RoutingRules"; +const _RRou = "RoutingRule"; +const _RS = "ReplicationStatus"; +const _RSe = "RestoreStatus"; +const _RT = "RequestToken"; +const _RTS = "ReplicationTimeStatus"; +const _RTV = "ReplicationTimeValue"; +const _RTe = "ReplicationTime"; +const _RUD = "RetainUntilDate"; +const _Re = "Restore"; +const _Red = "Redirect"; +const _Ro = "Role"; +const _Ru = "Rule"; +const _Rul = "Rules"; +const _S = "Status"; +const _SA = "StartAfter"; +const _SAK = "SecretAccessKey"; +const _SBD = "S3BucketDestination"; +const _SC = "StorageClass"; +const _SCA = "StorageClassAnalysis"; +const _SCADE = "StorageClassAnalysisDataExport"; +const _SCASV = "StorageClassAnalysisSchemaVersion"; +const _SCt = "StatusCode"; +const _SDV = "SkipDestinationValidation"; +const _SK = "SSE-KMS"; +const _SKEO = "SseKmsEncryptedObjects"; +const _SKEOS = "SseKmsEncryptedObjectsStatus"; +const _SKF = "S3KeyFilter"; +const _SKe = "S3Key"; +const _SL = "S3Location"; +const _SM = "SessionMode"; +const _SOCR = "SelectObjectContentRequest"; +const _SP = "SelectParameters"; +const _SPi = "SimplePrefix"; +const _SR = "ScanRange"; +const _SS = "SSE-S3"; +const _SSC = "SourceSelectionCriteria"; +const _SSE = "ServerSideEncryption"; +const _SSEA = "SSEAlgorithm"; +const _SSEBD = "ServerSideEncryptionByDefault"; +const _SSEC = "ServerSideEncryptionConfiguration"; +const _SSECA = "SSECustomerAlgorithm"; +const _SSECK = "SSECustomerKey"; +const _SSECKMD = "SSECustomerKeyMD5"; +const _SSEKMS = "SSEKMS"; +const _SSEKMSEC = "SSEKMSEncryptionContext"; +const _SSEKMSKI = "SSEKMSKeyId"; +const _SSER = "ServerSideEncryptionRule"; +const _SSES = "SSES3"; +const _ST = "SessionToken"; +const _S_ = "S3"; +const _Sc = "Schedule"; +const _Se = "Setting"; +const _Si = "Size"; +const _St = "Start"; +const _Su = "Suffix"; +const _T = "Tagging"; +const _TA = "TopicArn"; +const _TB = "TargetBucket"; +const _TC = "TagCount"; +const _TCo = "TopicConfiguration"; +const _TCop = "TopicConfigurations"; +const _TD = "TaggingDirective"; +const _TG = "TargetGrants"; +const _TGa = "TargetGrant"; +const _TOKF = "TargetObjectKeyFormat"; +const _TP = "TargetPrefix"; +const _TPC = "TotalPartsCount"; +const _TS = "TagSet"; +const _TSC = "TransitionStorageClass"; +const _Ta = "Tag"; +const _Tag = "Tags"; +const _Ti = "Tier"; +const _Tie = "Tierings"; +const _Tier = "Tiering"; +const _Tim = "Time"; +const _To = "Token"; +const _Top = "Topic"; +const _Tr = "Transitions"; +const _Tra = "Transition"; +const _Ty = "Type"; +const _U = "Upload"; +const _UI = "UploadId"; +const _UIM = "UploadIdMarker"; +const _UM = "UserMetadata"; +const _URI = "URI"; +const _Up = "Uploads"; +const _V = "Version"; +const _VC = "VersionCount"; +const _VCe = "VersioningConfiguration"; +const _VI = "VersionId"; +const _VIM = "VersionIdMarker"; +const _Va = "Value"; +const _Ve = "Versions"; +const _WC = "WebsiteConfiguration"; +const _WRL = "WebsiteRedirectLocation"; +const _Y = "Years"; +const _a = "analytics"; +const _ac = "accelerate"; +const _acl = "acl"; +const _ar = "accept-ranges"; +const _at = "attributes"; +const _c = "cors"; +const _cc = "cache-control"; +const _cd = "content-disposition"; +const _ce = "content-encoding"; +const _cl = "content-language"; +const _cl_ = "content-length"; +const _cm = "content-md5"; +const _cr = "content-range"; +const _ct = "content-type"; +const _ct_ = "continuation-token"; +const _d = "delete"; +const _de = "delimiter"; +const _e = "expires"; +const _en = "encryption"; +const _et = "encoding-type"; +const _eta = "etag"; +const _fo = "fetch-owner"; +const _i = "id"; +const _im = "if-match"; +const _ims = "if-modified-since"; +const _in = "inventory"; +const _inm = "if-none-match"; +const _it = "intelligent-tiering"; +const _ius = "if-unmodified-since"; +const _km = "key-marker"; +const _l = "lifecycle"; +const _lh = "legal-hold"; +const _lm = "last-modified"; +const _lo = "location"; +const _log = "logging"; +const _lt = "list-type"; +const _m = "metrics"; +const _ma = "marker"; +const _mdb = "max-directory-buckets"; +const _me = "member"; +const _mk = "max-keys"; +const _mp = "max-parts"; +const _mu = "max-uploads"; +const _n = "notification"; +const _oC = "ownershipControls"; +const _ol = "object-lock"; +const _p = "policy"; +const _pAB = "publicAccessBlock"; +const _pN = "partNumber"; +const _pS = "policyStatus"; +const _pnm = "part-number-marker"; +const _pr = "prefix"; +const _r = "replication"; +const _rP = "requestPayment"; +const _ra = "range"; +const _rcc = "response-cache-control"; +const _rcd = "response-content-disposition"; +const _rce = "response-content-encoding"; +const _rcl = "response-content-language"; +const _rct = "response-content-type"; +const _re = "response-expires"; +const _res = "restore"; +const _ret = "retention"; +const _s = "session"; +const _sa = "start-after"; +const _se = "select"; +const _st = "select-type"; +const _t = "tagging"; +const _to = "torrent"; +const _u = "uploads"; +const _uI = "uploadId"; +const _uim = "upload-id-marker"; +const _v = "versioning"; +const _vI = "versionId"; +const _ve = ''; +const _ver = "versions"; +const _vim = "version-id-marker"; +const _w = "website"; +const _x = "xsi:type"; +const _xaa = "x-amz-acl"; +const _xaad = "x-amz-abort-date"; +const _xaapa = "x-amz-access-point-alias"; +const _xaari = "x-amz-abort-rule-id"; +const _xaas = "x-amz-archive-status"; +const _xabgr = "x-amz-bypass-governance-retention"; +const _xabln = "x-amz-bucket-location-name"; +const _xablt = "x-amz-bucket-location-type"; +const _xabole = "x-amz-bucket-object-lock-enabled"; +const _xabolt = "x-amz-bucket-object-lock-token"; +const _xabr = "x-amz-bucket-region"; +const _xaca = "x-amz-checksum-algorithm"; +const _xacc = "x-amz-checksum-crc32"; +const _xacc_ = "x-amz-checksum-crc32c"; +const _xacm = "x-amz-checksum-mode"; +const _xacrsba = "x-amz-confirm-remove-self-bucket-access"; +const _xacs = "x-amz-checksum-sha1"; +const _xacs_ = "x-amz-checksum-sha256"; +const _xacs__ = "x-amz-copy-source"; +const _xacsim = "x-amz-copy-source-if-match"; +const _xacsims = "x-amz-copy-source-if-modified-since"; +const _xacsinm = "x-amz-copy-source-if-none-match"; +const _xacsius = "x-amz-copy-source-if-unmodified-since"; +const _xacsm = "x-amz-create-session-mode"; +const _xacsr = "x-amz-copy-source-range"; +const _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm"; +const _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; +const _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5"; +const _xacsvi = "x-amz-copy-source-version-id"; +const _xadm = "x-amz-delete-marker"; +const _xae = "x-amz-expiration"; +const _xaebo = "x-amz-expected-bucket-owner"; +const _xafec = "x-amz-fwd-error-code"; +const _xafem = "x-amz-fwd-error-message"; +const _xafhar = "x-amz-fwd-header-accept-ranges"; +const _xafhcc = "x-amz-fwd-header-cache-control"; +const _xafhcd = "x-amz-fwd-header-content-disposition"; +const _xafhce = "x-amz-fwd-header-content-encoding"; +const _xafhcl = "x-amz-fwd-header-content-language"; +const _xafhcr = "x-amz-fwd-header-content-range"; +const _xafhct = "x-amz-fwd-header-content-type"; +const _xafhe = "x-amz-fwd-header-etag"; +const _xafhe_ = "x-amz-fwd-header-expires"; +const _xafhlm = "x-amz-fwd-header-last-modified"; +const _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; +const _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; +const _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; +const _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; +const _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; +const _xafhxae = "x-amz-fwd-header-x-amz-expiration"; +const _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta"; +const _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count"; +const _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold"; +const _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode"; +const _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date"; +const _xafhxar = "x-amz-fwd-header-x-amz-restore"; +const _xafhxarc = "x-amz-fwd-header-x-amz-request-charged"; +const _xafhxars = "x-amz-fwd-header-x-amz-replication-status"; +const _xafhxasc = "x-amz-fwd-header-x-amz-storage-class"; +const _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption"; +const _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id"; +const _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled"; +const _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm"; +const _xafhxasseckm = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5"; +const _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count"; +const _xafhxavi = "x-amz-fwd-header-x-amz-version-id"; +const _xafs = "x-amz-fwd-status"; +const _xagfc = "x-amz-grant-full-control"; +const _xagr = "x-amz-grant-read"; +const _xagra = "x-amz-grant-read-acp"; +const _xagw = "x-amz-grant-write"; +const _xagwa = "x-amz-grant-write-acp"; +const _xam = "x-amz-mfa"; +const _xamd = "x-amz-metadata-directive"; +const _xamm = "x-amz-missing-meta"; +const _xamp = "x-amz-max-parts"; +const _xampc = "x-amz-mp-parts-count"; +const _xaoa = "x-amz-object-attributes"; +const _xaollh = "x-amz-object-lock-legal-hold"; +const _xaolm = "x-amz-object-lock-mode"; +const _xaolrud = "x-amz-object-lock-retain-until-date"; +const _xaoo = "x-amz-object-ownership"; +const _xaooa = "x-amz-optional-object-attributes"; +const _xapnm = "x-amz-part-number-marker"; +const _xar = "x-amz-restore"; +const _xarc = "x-amz-request-charged"; +const _xarop = "x-amz-restore-output-path"; +const _xarp = "x-amz-request-payer"; +const _xarr = "x-amz-request-route"; +const _xars = "x-amz-replication-status"; +const _xart = "x-amz-request-token"; +const _xasc = "x-amz-storage-class"; +const _xasca = "x-amz-sdk-checksum-algorithm"; +const _xasdv = "x-amz-skip-destination-validation"; +const _xasebo = "x-amz-source-expected-bucket-owner"; +const _xasse = "x-amz-server-side-encryption"; +const _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id"; +const _xassebke = "x-amz-server-side-encryption-bucket-key-enabled"; +const _xassec = "x-amz-server-side-encryption-context"; +const _xasseca = "x-amz-server-side-encryption-customer-algorithm"; +const _xasseck = "x-amz-server-side-encryption-customer-key"; +const _xasseckm = "x-amz-server-side-encryption-customer-key-md5"; +const _xat = "x-amz-tagging"; +const _xatc = "x-amz-tagging-count"; +const _xatd = "x-amz-tagging-directive"; +const _xavi = "x-amz-version-id"; +const _xawrl = "x-amz-website-redirect-location"; +const _xi = "x-id"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-s3outposts/package.json b/clients/client-s3outposts/package.json index adeda76baa7d..f1014f498389 100644 --- a/clients/client-s3outposts/package.json +++ b/clients/client-s3outposts/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-s3outposts/src/protocols/Aws_restJson1.ts b/clients/client-s3outposts/src/protocols/Aws_restJson1.ts index ddcf6e38bf61..b4f5c8a7ec48 100644 --- a/clients/client-s3outposts/src/protocols/Aws_restJson1.ts +++ b/clients/client-s3outposts/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -47,12 +48,11 @@ export const se_CreateEndpointCommand = async ( input: CreateEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/CreateEndpoint"; + b.bp("/S3Outposts/CreateEndpoint"); let body: any; body = JSON.stringify( take(input, { @@ -63,15 +63,8 @@ export const se_CreateEndpointCommand = async ( SubnetId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -81,25 +74,16 @@ export const se_DeleteEndpointCommand = async ( input: DeleteEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/DeleteEndpoint"; + b.bp("/S3Outposts/DeleteEndpoint"); const query: any = map({ - endpointId: [, __expectNonNull(input.EndpointId!, `EndpointId`)], - outpostId: [, __expectNonNull(input.OutpostId!, `OutpostId`)], + [_eI]: [, __expectNonNull(input[_EI]!, `EndpointId`)], + [_oI]: [, __expectNonNull(input[_OI]!, `OutpostId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -109,25 +93,16 @@ export const se_ListEndpointsCommand = async ( input: ListEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListEndpoints"; + b.bp("/S3Outposts/ListEndpoints"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -137,25 +112,16 @@ export const se_ListOutpostsWithS3Command = async ( input: ListOutpostsWithS3CommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListOutpostsWithS3"; + b.bp("/S3Outposts/ListOutpostsWithS3"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -165,26 +131,17 @@ export const se_ListSharedEndpointsCommand = async ( input: ListSharedEndpointsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListSharedEndpoints"; + b.bp("/S3Outposts/ListSharedEndpoints"); const query: any = map({ - nextToken: [, input.NextToken!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - outpostId: [, __expectNonNull(input.OutpostId!, `OutpostId`)], + [_nT]: [, input[_NT]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_oI]: [, __expectNonNull(input[_OI]!, `OutpostId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -680,6 +637,15 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _EI = "EndpointId"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _OI = "OutpostId"; +const _eI = "endpointId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _oI = "outpostId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sagemaker-a2i-runtime/package.json b/clients/client-sagemaker-a2i-runtime/package.json index 732b8601dd2c..c2265d14786d 100644 --- a/clients/client-sagemaker-a2i-runtime/package.json +++ b/clients/client-sagemaker-a2i-runtime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts index 3ce2af18d310..e838bf1ca520 100644 --- a/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -46,28 +47,13 @@ export const se_DeleteHumanLoopCommand = async ( input: DeleteHumanLoopCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/human-loops/{HumanLoopName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HumanLoopName", - () => input.HumanLoopName!, - "{HumanLoopName}", - false - ); + b.bp("/human-loops/{HumanLoopName}"); + b.p("HumanLoopName", () => input.HumanLoopName!, "{HumanLoopName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -77,28 +63,13 @@ export const se_DescribeHumanLoopCommand = async ( input: DescribeHumanLoopCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/human-loops/{HumanLoopName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "HumanLoopName", - () => input.HumanLoopName!, - "{HumanLoopName}", - false - ); + b.bp("/human-loops/{HumanLoopName}"); + b.p("HumanLoopName", () => input.HumanLoopName!, "{HumanLoopName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -108,34 +79,26 @@ export const se_ListHumanLoopsCommand = async ( input: ListHumanLoopsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/human-loops"; + b.bp("/human-loops"); const query: any = map({ - CreationTimeAfter: [ + [_CTA]: [ () => input.CreationTimeAfter !== void 0, - () => (input.CreationTimeAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_CTA]!.toISOString().split(".")[0] + "Z").toString(), ], - CreationTimeBefore: [ + [_CTB]: [ () => input.CreationTimeBefore !== void 0, - () => (input.CreationTimeBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_CTB]!.toISOString().split(".")[0] + "Z").toString(), ], - FlowDefinitionArn: [, __expectNonNull(input.FlowDefinitionArn!, `FlowDefinitionArn`)], - SortOrder: [, input.SortOrder!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_FDA]: [, __expectNonNull(input[_FDA]!, `FlowDefinitionArn`)], + [_SO]: [, input[_SO]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -145,11 +108,11 @@ export const se_StartHumanLoopCommand = async ( input: StartHumanLoopCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/human-loops"; + b.bp("/human-loops"); let body: any; body = JSON.stringify( take(input, { @@ -159,15 +122,8 @@ export const se_StartHumanLoopCommand = async ( HumanLoopName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -177,26 +133,19 @@ export const se_StopHumanLoopCommand = async ( input: StopHumanLoopCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/human-loops/stop"; + b.bp("/human-loops/stop"); let body: any; body = JSON.stringify( take(input, { HumanLoopName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -646,6 +595,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CTA = "CreationTimeAfter"; +const _CTB = "CreationTimeBefore"; +const _FDA = "FlowDefinitionArn"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _SO = "SortOrder"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sagemaker-edge/package.json b/clients/client-sagemaker-edge/package.json index 3a60b83148e5..b97652518828 100644 --- a/clients/client-sagemaker-edge/package.json +++ b/clients/client-sagemaker-edge/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sagemaker-edge/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-edge/src/protocols/Aws_restJson1.ts index f049b8f43e03..dfc9004ec6d3 100644 --- a/clients/client-sagemaker-edge/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-edge/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -34,11 +35,11 @@ export const se_GetDeploymentsCommand = async ( input: GetDeploymentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDeployments"; + b.bp("/GetDeployments"); let body: any; body = JSON.stringify( take(input, { @@ -46,15 +47,8 @@ export const se_GetDeploymentsCommand = async ( DeviceName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -64,11 +58,11 @@ export const se_GetDeviceRegistrationCommand = async ( input: GetDeviceRegistrationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetDeviceRegistration"; + b.bp("/GetDeviceRegistration"); let body: any; body = JSON.stringify( take(input, { @@ -76,15 +70,8 @@ export const se_GetDeviceRegistrationCommand = async ( DeviceName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -94,11 +81,11 @@ export const se_SendHeartbeatCommand = async ( input: SendHeartbeatCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendHeartbeat"; + b.bp("/SendHeartbeat"); let body: any; body = JSON.stringify( take(input, { @@ -110,15 +97,8 @@ export const se_SendHeartbeatCommand = async ( Models: (_) => se_Models(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-sagemaker-featurestore-runtime/package.json b/clients/client-sagemaker-featurestore-runtime/package.json index 2949a8d4b51d..bf4ba6edf5ad 100644 --- a/clients/client-sagemaker-featurestore-runtime/package.json +++ b/clients/client-sagemaker-featurestore-runtime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts index 3531f792c52d..eb2166b44cec 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -43,11 +44,11 @@ export const se_BatchGetRecordCommand = async ( input: BatchGetRecordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetRecord"; + b.bp("/BatchGetRecord"); let body: any; body = JSON.stringify( take(input, { @@ -55,15 +56,8 @@ export const se_BatchGetRecordCommand = async ( Identifiers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -73,41 +67,19 @@ export const se_DeleteRecordCommand = async ( input: DeleteRecordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FeatureGroupName", - () => input.FeatureGroupName!, - "{FeatureGroupName}", - false - ); + b.bp("/FeatureGroup/{FeatureGroupName}"); + b.p("FeatureGroupName", () => input.FeatureGroupName!, "{FeatureGroupName}", false); const query: any = map({ - RecordIdentifierValueAsString: [ - , - __expectNonNull(input.RecordIdentifierValueAsString!, `RecordIdentifierValueAsString`), - ], - EventTime: [, __expectNonNull(input.EventTime!, `EventTime`)], - TargetStores: [ - () => input.TargetStores !== void 0, - () => (input.TargetStores! || []).map((_entry) => _entry as any), - ], - DeletionMode: [, input.DeletionMode!], + [_RIVAS]: [, __expectNonNull(input[_RIVAS]!, `RecordIdentifierValueAsString`)], + [_ET]: [, __expectNonNull(input[_ET]!, `EventTime`)], + [_TS]: [() => input.TargetStores !== void 0, () => (input[_TS]! || []).map((_entry) => _entry as any)], + [_DM]: [, input[_DM]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -117,40 +89,18 @@ export const se_GetRecordCommand = async ( input: GetRecordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FeatureGroupName", - () => input.FeatureGroupName!, - "{FeatureGroupName}", - false - ); + b.bp("/FeatureGroup/{FeatureGroupName}"); + b.p("FeatureGroupName", () => input.FeatureGroupName!, "{FeatureGroupName}", false); const query: any = map({ - RecordIdentifierValueAsString: [ - , - __expectNonNull(input.RecordIdentifierValueAsString!, `RecordIdentifierValueAsString`), - ], - FeatureName: [ - () => input.FeatureNames !== void 0, - () => (input.FeatureNames! || []).map((_entry) => _entry as any), - ], - ExpirationTimeResponse: [, input.ExpirationTimeResponse!], + [_RIVAS]: [, __expectNonNull(input[_RIVAS]!, `RecordIdentifierValueAsString`)], + [_FNe]: [() => input.FeatureNames !== void 0, () => (input[_FN]! || []).map((_entry) => _entry as any)], + [_ETR]: [, input[_ETR]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -160,20 +110,12 @@ export const se_PutRecordCommand = async ( input: PutRecordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FeatureGroupName", - () => input.FeatureGroupName!, - "{FeatureGroupName}", - false - ); + b.bp("/FeatureGroup/{FeatureGroupName}"); + b.p("FeatureGroupName", () => input.FeatureGroupName!, "{FeatureGroupName}", false); let body: any; body = JSON.stringify( take(input, { @@ -182,15 +124,8 @@ export const se_PutRecordCommand = async ( TtlDuration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -560,6 +495,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DM = "DeletionMode"; +const _ET = "EventTime"; +const _ETR = "ExpirationTimeResponse"; +const _FN = "FeatureNames"; +const _FNe = "FeatureName"; +const _RIVAS = "RecordIdentifierValueAsString"; +const _TS = "TargetStores"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sagemaker-geospatial/package.json b/clients/client-sagemaker-geospatial/package.json index 0abc05d56f3a..fff655e36d3b 100644 --- a/clients/client-sagemaker-geospatial/package.json +++ b/clients/client-sagemaker-geospatial/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sagemaker-geospatial/src/models/models_0.ts b/clients/client-sagemaker-geospatial/src/models/models_0.ts index b86372901334..4c3a07c58751 100644 --- a/clients/client-sagemaker-geospatial/src/models/models_0.ts +++ b/clients/client-sagemaker-geospatial/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { SageMakerGeospatialServiceException as __BaseException } from "./SageMakerGeospatialServiceException"; diff --git a/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts index 37ee85b6aee9..471cbaa804f5 100644 --- a/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-geospatial/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -168,21 +169,13 @@ export const se_DeleteEarthObservationJobCommand = async ( input: DeleteEarthObservationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/earth-observation-jobs/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -192,21 +185,13 @@ export const se_DeleteVectorEnrichmentJobCommand = async ( input: DeleteVectorEnrichmentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/vector-enrichment-jobs/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -216,12 +201,11 @@ export const se_ExportEarthObservationJobCommand = async ( input: ExportEarthObservationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-earth-observation-job"; + b.bp("/export-earth-observation-job"); let body: any; body = JSON.stringify( take(input, { @@ -232,15 +216,8 @@ export const se_ExportEarthObservationJobCommand = async ( OutputConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -250,12 +227,11 @@ export const se_ExportVectorEnrichmentJobCommand = async ( input: ExportVectorEnrichmentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/export-vector-enrichment-jobs"; + b.bp("/export-vector-enrichment-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -265,15 +241,8 @@ export const se_ExportVectorEnrichmentJobCommand = async ( OutputConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -283,21 +252,13 @@ export const se_GetEarthObservationJobCommand = async ( input: GetEarthObservationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/earth-observation-jobs/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -307,21 +268,13 @@ export const se_GetRasterDataCollectionCommand = async ( input: GetRasterDataCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/raster-data-collection/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/raster-data-collection/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -331,37 +284,29 @@ export const se_GetTileCommand = async ( input: GetTileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tile/{z}/{x}/{y}"; - resolvedPath = __resolvedPath(resolvedPath, input, "x", () => input.x!.toString(), "{x}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "y", () => input.y!.toString(), "{y}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "z", () => input.z!.toString(), "{z}", false); + b.bp("/tile/{z}/{x}/{y}"); + b.p("x", () => input.x!.toString(), "{x}", false); + b.p("y", () => input.y!.toString(), "{y}", false); + b.p("z", () => input.z!.toString(), "{z}", false); const query: any = map({ - ImageAssets: [ + [_IA]: [ __expectNonNull(input.ImageAssets, `ImageAssets`) != null, - () => (input.ImageAssets! || []).map((_entry) => _entry as any), + () => (input[_IA]! || []).map((_entry) => _entry as any), ], - Target: [, __expectNonNull(input.Target!, `Target`)], - Arn: [, __expectNonNull(input.Arn!, `Arn`)], - ImageMask: [() => input.ImageMask !== void 0, () => input.ImageMask!.toString()], - OutputFormat: [, input.OutputFormat!], - TimeRangeFilter: [, input.TimeRangeFilter!], - PropertyFilters: [, input.PropertyFilters!], - OutputDataType: [, input.OutputDataType!], - ExecutionRoleArn: [, input.ExecutionRoleArn!], + [_T]: [, __expectNonNull(input[_T]!, `Target`)], + [_A]: [, __expectNonNull(input[_A]!, `Arn`)], + [_IM]: [() => input.ImageMask !== void 0, () => input[_IM]!.toString()], + [_OF]: [, input[_OF]!], + [_TRF]: [, input[_TRF]!], + [_PF]: [, input[_PF]!], + [_ODT]: [, input[_ODT]!], + [_ERA]: [, input[_ERA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -371,21 +316,13 @@ export const se_GetVectorEnrichmentJobCommand = async ( input: GetVectorEnrichmentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/{Arn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn!, "{Arn}", false); + b.bp("/vector-enrichment-jobs/{Arn}"); + b.p("Arn", () => input.Arn!, "{Arn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -395,12 +332,11 @@ export const se_ListEarthObservationJobsCommand = async ( input: ListEarthObservationJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-earth-observation-jobs"; + b.bp("/list-earth-observation-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -411,15 +347,8 @@ export const se_ListEarthObservationJobsCommand = async ( StatusEquals: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -429,25 +358,16 @@ export const se_ListRasterDataCollectionsCommand = async ( input: ListRasterDataCollectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/raster-data-collections"; + b.bp("/raster-data-collections"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -457,20 +377,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -480,12 +393,11 @@ export const se_ListVectorEnrichmentJobsCommand = async ( input: ListVectorEnrichmentJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-vector-enrichment-jobs"; + b.bp("/list-vector-enrichment-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -496,15 +408,8 @@ export const se_ListVectorEnrichmentJobsCommand = async ( StatusEquals: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -514,12 +419,11 @@ export const se_SearchRasterDataCollectionCommand = async ( input: SearchRasterDataCollectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-raster-data-collection"; + b.bp("/search-raster-data-collection"); let body: any; body = JSON.stringify( take(input, { @@ -528,15 +432,8 @@ export const se_SearchRasterDataCollectionCommand = async ( RasterDataCollectionQuery: (_) => se_RasterDataCollectionQueryWithBandFilterInput(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -546,12 +443,11 @@ export const se_StartEarthObservationJobCommand = async ( input: StartEarthObservationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs"; + b.bp("/earth-observation-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -564,15 +460,8 @@ export const se_StartEarthObservationJobCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -582,12 +471,11 @@ export const se_StartVectorEnrichmentJobCommand = async ( input: StartVectorEnrichmentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs"; + b.bp("/vector-enrichment-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -600,15 +488,8 @@ export const se_StartVectorEnrichmentJobCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -618,27 +499,19 @@ export const se_StopEarthObservationJobCommand = async ( input: StopEarthObservationJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/earth-observation-jobs/stop"; + b.bp("/earth-observation-jobs/stop"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -648,27 +521,19 @@ export const se_StopVectorEnrichmentJobCommand = async ( input: StopVectorEnrichmentJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vector-enrichment-jobs/stop"; + b.bp("/vector-enrichment-jobs/stop"); let body: any; body = JSON.stringify( take(input, { Arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -678,27 +543,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -708,27 +566,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3002,6 +2852,20 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Arn"; +const _ERA = "ExecutionRoleArn"; +const _IA = "ImageAssets"; +const _IM = "ImageMask"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _ODT = "OutputDataType"; +const _OF = "OutputFormat"; +const _PF = "PropertyFilters"; +const _T = "Target"; +const _TK = "TagKeys"; +const _TRF = "TimeRangeFilter"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sagemaker-metrics/package.json b/clients/client-sagemaker-metrics/package.json index 08078d0c9546..59d3d0dce3cf 100644 --- a/clients/client-sagemaker-metrics/package.json +++ b/clients/client-sagemaker-metrics/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sagemaker-metrics/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-metrics/src/protocols/Aws_restJson1.ts index 4468cc0b7842..df6361a01de7 100644 --- a/clients/client-sagemaker-metrics/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-metrics/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -27,11 +28,11 @@ export const se_BatchPutMetricsCommand = async ( input: BatchPutMetricsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchPutMetrics"; + b.bp("/BatchPutMetrics"); let body: any; body = JSON.stringify( take(input, { @@ -39,15 +40,8 @@ export const se_BatchPutMetricsCommand = async ( TrialComponentName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-sagemaker-runtime/package.json b/clients/client-sagemaker-runtime/package.json index 7eb34b332253..1c78f972c1a7 100644 --- a/clients/client-sagemaker-runtime/package.json +++ b/clients/client-sagemaker-runtime/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-sagemaker-runtime/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-runtime/src/protocols/Aws_restJson1.ts index d1102e06cbe0..a3b6ad10fe07 100644 --- a/clients/client-sagemaker-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-runtime/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -50,41 +51,26 @@ export const se_InvokeEndpointCommand = async ( input: InvokeEndpointCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.ContentType! || "application/octet-stream", - accept: input.Accept!, - "x-amzn-sagemaker-custom-attributes": input.CustomAttributes!, - "x-amzn-sagemaker-target-model": input.TargetModel!, - "x-amzn-sagemaker-target-variant": input.TargetVariant!, - "x-amzn-sagemaker-target-container-hostname": input.TargetContainerHostname!, - "x-amzn-sagemaker-inference-id": input.InferenceId!, - "x-amzn-sagemaker-enable-explanations": input.EnableExplanations!, - "x-amzn-sagemaker-inference-component": input.InferenceComponentName!, + [_ct]: input[_CT]! || "application/octet-stream", + [_a]: input[_A]!, + [_xasca]: input[_CA]!, + [_xastm]: input[_TM]!, + [_xastv]: input[_TV]!, + [_xastch]: input[_TCH]!, + [_xasii]: input[_II]!, + [_xasee]: input[_EE]!, + [_xasic]: input[_ICN]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoints/{EndpointName}/invocations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EndpointName", - () => input.EndpointName!, - "{EndpointName}", - false - ); + b.bp("/endpoints/{EndpointName}/invocations"); + b.p("EndpointName", () => input.EndpointName!, "{EndpointName}", false); let body: any; if (input.Body !== undefined) { body = input.Body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -94,43 +80,21 @@ export const se_InvokeEndpointAsyncCommand = async ( input: InvokeEndpointAsyncCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-sagemaker-content-type": input.ContentType!, - "x-amzn-sagemaker-accept": input.Accept!, - "x-amzn-sagemaker-custom-attributes": input.CustomAttributes!, - "x-amzn-sagemaker-inference-id": input.InferenceId!, - "x-amzn-sagemaker-inputlocation": input.InputLocation!, - "x-amzn-sagemaker-requestttlseconds": [ - () => isSerializableHeaderValue(input.RequestTTLSeconds), - () => input.RequestTTLSeconds!.toString(), - ], - "x-amzn-sagemaker-invocationtimeoutseconds": [ - () => isSerializableHeaderValue(input.InvocationTimeoutSeconds), - () => input.InvocationTimeoutSeconds!.toString(), - ], + [_xasct]: input[_CT]!, + [_xasa]: input[_A]!, + [_xasca]: input[_CA]!, + [_xasii]: input[_II]!, + [_xasi]: input[_IL]!, + [_xasr]: [() => isSerializableHeaderValue(input[_RTTLS]), () => input[_RTTLS]!.toString()], + [_xasi_]: [() => isSerializableHeaderValue(input[_ITS]), () => input[_ITS]!.toString()], }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/endpoints/{EndpointName}/async-invocations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EndpointName", - () => input.EndpointName!, - "{EndpointName}", - false - ); + b.bp("/endpoints/{EndpointName}/async-invocations"); + b.p("EndpointName", () => input.EndpointName!, "{EndpointName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -140,40 +104,24 @@ export const se_InvokeEndpointWithResponseStreamCommand = async ( input: InvokeEndpointWithResponseStreamCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.ContentType! || "application/octet-stream", - "x-amzn-sagemaker-accept": input.Accept!, - "x-amzn-sagemaker-custom-attributes": input.CustomAttributes!, - "x-amzn-sagemaker-target-variant": input.TargetVariant!, - "x-amzn-sagemaker-target-container-hostname": input.TargetContainerHostname!, - "x-amzn-sagemaker-inference-id": input.InferenceId!, - "x-amzn-sagemaker-inference-component": input.InferenceComponentName!, + [_ct]: input[_CT]! || "application/octet-stream", + [_xasa]: input[_A]!, + [_xasca]: input[_CA]!, + [_xastv]: input[_TV]!, + [_xastch]: input[_TCH]!, + [_xasii]: input[_II]!, + [_xasic]: input[_ICN]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/endpoints/{EndpointName}/invocations-response-stream"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EndpointName", - () => input.EndpointName!, - "{EndpointName}", - false - ); + b.bp("/endpoints/{EndpointName}/invocations-response-stream"); + b.p("EndpointName", () => input.EndpointName!, "{EndpointName}", false); let body: any; if (input.Body !== undefined) { body = input.Body; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -188,9 +136,9 @@ export const de_InvokeEndpointCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["content-type"]], - InvokedProductionVariant: [, output.headers["x-amzn-invoked-production-variant"]], - CustomAttributes: [, output.headers["x-amzn-sagemaker-custom-attributes"]], + [_CT]: [, output.headers[_ct]], + [_IPV]: [, output.headers[_xaipv]], + [_CA]: [, output.headers[_xasca]], }); const data: any = await collectBody(output.body, context); contents.Body = data; @@ -250,8 +198,8 @@ export const de_InvokeEndpointAsyncCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - OutputLocation: [, output.headers["x-amzn-sagemaker-outputlocation"]], - FailureLocation: [, output.headers["x-amzn-sagemaker-failurelocation"]], + [_OL]: [, output.headers[_xaso]], + [_FL]: [, output.headers[_xasf]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -305,9 +253,9 @@ export const de_InvokeEndpointWithResponseStreamCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - ContentType: [, output.headers["x-amzn-sagemaker-content-type"]], - InvokedProductionVariant: [, output.headers["x-amzn-invoked-production-variant"]], - CustomAttributes: [, output.headers["x-amzn-sagemaker-custom-attributes"]], + [_CT]: [, output.headers[_xasct]], + [_IPV]: [, output.headers[_xaipv]], + [_CA]: [, output.headers[_xasca]], }); const data: any = output.body; contents.Body = de_ResponseStream(data, context); @@ -569,6 +517,39 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Accept"; +const _CA = "CustomAttributes"; +const _CT = "ContentType"; +const _EE = "EnableExplanations"; +const _FL = "FailureLocation"; +const _ICN = "InferenceComponentName"; +const _II = "InferenceId"; +const _IL = "InputLocation"; +const _IPV = "InvokedProductionVariant"; +const _ITS = "InvocationTimeoutSeconds"; +const _OL = "OutputLocation"; +const _RTTLS = "RequestTTLSeconds"; +const _TCH = "TargetContainerHostname"; +const _TM = "TargetModel"; +const _TV = "TargetVariant"; +const _a = "accept"; +const _ct = "content-type"; +const _xaipv = "x-amzn-invoked-production-variant"; +const _xasa = "x-amzn-sagemaker-accept"; +const _xasca = "x-amzn-sagemaker-custom-attributes"; +const _xasct = "x-amzn-sagemaker-content-type"; +const _xasee = "x-amzn-sagemaker-enable-explanations"; +const _xasf = "x-amzn-sagemaker-failurelocation"; +const _xasi = "x-amzn-sagemaker-inputlocation"; +const _xasi_ = "x-amzn-sagemaker-invocationtimeoutseconds"; +const _xasic = "x-amzn-sagemaker-inference-component"; +const _xasii = "x-amzn-sagemaker-inference-id"; +const _xaso = "x-amzn-sagemaker-outputlocation"; +const _xasr = "x-amzn-sagemaker-requestttlseconds"; +const _xastch = "x-amzn-sagemaker-target-container-hostname"; +const _xastm = "x-amzn-sagemaker-target-model"; +const _xastv = "x-amzn-sagemaker-target-variant"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sagemaker/src/models/models_2.ts b/clients/client-sagemaker/src/models/models_2.ts index 4b9558cec49c..9e25b371d1ff 100644 --- a/clients/client-sagemaker/src/models/models_2.ts +++ b/clients/client-sagemaker/src/models/models_2.ts @@ -74,6 +74,7 @@ import { UserContext, VpcConfig, } from "./models_0"; + import { _InstanceType, DataCaptureConfig, diff --git a/clients/client-sagemaker/src/models/models_3.ts b/clients/client-sagemaker/src/models/models_3.ts index 427a1f98aeec..a1771bd19786 100644 --- a/clients/client-sagemaker/src/models/models_3.ts +++ b/clients/client-sagemaker/src/models/models_3.ts @@ -52,6 +52,7 @@ import { UserContext, VpcConfig, } from "./models_0"; + import { _InstanceType, DebugHookConfig, @@ -80,6 +81,7 @@ import { RetryStrategy, UserSettings, } from "./models_1"; + import { CustomizedMetricSpecification, DataCaptureConfigSummary, diff --git a/clients/client-sagemaker/src/models/models_4.ts b/clients/client-sagemaker/src/models/models_4.ts index d2840274b138..b56079dba9d6 100644 --- a/clients/client-sagemaker/src/models/models_4.ts +++ b/clients/client-sagemaker/src/models/models_4.ts @@ -35,6 +35,7 @@ import { UserContext, VpcConfig, } from "./models_0"; + import { _InstanceType, DebugHookConfig, @@ -86,6 +87,7 @@ import { UserSettings, VendorGuidance, } from "./models_1"; + import { CrossAccountFilterOption, DataProcessing, @@ -123,6 +125,7 @@ import { TrialComponentStatus, WorkforceVpcConfigRequest, } from "./models_2"; + import { DesiredWeightAndCapacity, Device, diff --git a/clients/client-savingsplans/package.json b/clients/client-savingsplans/package.json index e749cb51a200..9cdade925a14 100644 --- a/clients/client-savingsplans/package.json +++ b/clients/client-savingsplans/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts index d7476678a766..0da32f1fbc67 100644 --- a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts +++ b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -70,11 +71,11 @@ export const se_CreateSavingsPlanCommand = async ( input: CreateSavingsPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSavingsPlan"; + b.bp("/CreateSavingsPlan"); let body: any; body = JSON.stringify( take(input, { @@ -86,15 +87,8 @@ export const se_CreateSavingsPlanCommand = async ( upfrontPaymentAmount: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -104,27 +98,19 @@ export const se_DeleteQueuedSavingsPlanCommand = async ( input: DeleteQueuedSavingsPlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteQueuedSavingsPlan"; + b.bp("/DeleteQueuedSavingsPlan"); let body: any; body = JSON.stringify( take(input, { savingsPlanId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -134,12 +120,11 @@ export const se_DescribeSavingsPlanRatesCommand = async ( input: DescribeSavingsPlanRatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlanRates"; + b.bp("/DescribeSavingsPlanRates"); let body: any; body = JSON.stringify( take(input, { @@ -149,15 +134,8 @@ export const se_DescribeSavingsPlanRatesCommand = async ( savingsPlanId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -167,11 +145,11 @@ export const se_DescribeSavingsPlansCommand = async ( input: DescribeSavingsPlansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlans"; + b.bp("/DescribeSavingsPlans"); let body: any; body = JSON.stringify( take(input, { @@ -183,15 +161,8 @@ export const se_DescribeSavingsPlansCommand = async ( states: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -201,12 +172,11 @@ export const se_DescribeSavingsPlansOfferingRatesCommand = async ( input: DescribeSavingsPlansOfferingRatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlansOfferingRates"; + b.bp("/DescribeSavingsPlansOfferingRates"); let body: any; body = JSON.stringify( take(input, { @@ -222,15 +192,8 @@ export const se_DescribeSavingsPlansOfferingRatesCommand = async ( usageTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -240,12 +203,11 @@ export const se_DescribeSavingsPlansOfferingsCommand = async ( input: DescribeSavingsPlansOfferingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlansOfferings"; + b.bp("/DescribeSavingsPlansOfferings"); let body: any; body = JSON.stringify( take(input, { @@ -264,15 +226,8 @@ export const se_DescribeSavingsPlansOfferingsCommand = async ( usageTypes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -282,26 +237,19 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource"; + b.bp("/ListTagsForResource"); let body: any; body = JSON.stringify( take(input, { resourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -311,11 +259,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource"; + b.bp("/TagResource"); let body: any; body = JSON.stringify( take(input, { @@ -323,15 +271,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -341,11 +282,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource"; + b.bp("/UntagResource"); let body: any; body = JSON.stringify( take(input, { @@ -353,15 +294,8 @@ export const se_UntagResourceCommand = async ( tagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-scheduler/package.json b/clients/client-scheduler/package.json index 202b227c4e8a..d09be60c6ad0 100644 --- a/clients/client-scheduler/package.json +++ b/clients/client-scheduler/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-scheduler/src/protocols/Aws_restJson1.ts b/clients/client-scheduler/src/protocols/Aws_restJson1.ts index b1841ff14d07..b11765e03433 100644 --- a/clients/client-scheduler/src/protocols/Aws_restJson1.ts +++ b/clients/client-scheduler/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -78,12 +79,12 @@ export const se_CreateScheduleCommand = async ( input: CreateScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedules/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -101,15 +102,8 @@ export const se_CreateScheduleCommand = async ( Target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -119,12 +113,12 @@ export const se_CreateScheduleGroupCommand = async ( input: CreateScheduleGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedule-groups/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -132,15 +126,8 @@ export const se_CreateScheduleGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -150,25 +137,17 @@ export const se_DeleteScheduleCommand = async ( input: DeleteScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedules/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - groupName: [, input.GroupName!], - clientToken: [, input.ClientToken ?? generateIdempotencyToken()], + [_gN]: [, input[_GN]!], + [_cT]: [, input[_CT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -178,24 +157,16 @@ export const se_DeleteScheduleGroupCommand = async ( input: DeleteScheduleGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedule-groups/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - clientToken: [, input.ClientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_CT] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -205,24 +176,16 @@ export const se_GetScheduleCommand = async ( input: GetScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedules/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - groupName: [, input.GroupName!], + [_gN]: [, input[_GN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -232,20 +195,13 @@ export const se_GetScheduleGroupCommand = async ( input: GetScheduleGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedule-groups/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -255,25 +211,17 @@ export const se_ListScheduleGroupsCommand = async ( input: ListScheduleGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups"; + b.bp("/schedule-groups"); const query: any = map({ - NamePrefix: [, input.NamePrefix!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NP]: [, input[_NP]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -283,27 +231,19 @@ export const se_ListSchedulesCommand = async ( input: ListSchedulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules"; + b.bp("/schedules"); const query: any = map({ - ScheduleGroup: [, input.GroupName!], - NamePrefix: [, input.NamePrefix!], - State: [, input.State!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_SG]: [, input[_GN]!], + [_NP]: [, input[_NP]!], + [_S]: [, input[_S]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -313,20 +253,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -336,27 +269,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -366,27 +292,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - TagKeys: [ + [_TK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -396,12 +314,12 @@ export const se_UpdateScheduleCommand = async ( input: UpdateScheduleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/schedules/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -419,15 +337,8 @@ export const se_UpdateScheduleCommand = async ( Target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1412,6 +1323,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CT = "ClientToken"; +const _GN = "GroupName"; +const _MR = "MaxResults"; +const _NP = "NamePrefix"; +const _NT = "NextToken"; +const _S = "State"; +const _SG = "ScheduleGroup"; +const _TK = "TagKeys"; +const _cT = "clientToken"; +const _gN = "groupName"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-schemas/package.json b/clients/client-schemas/package.json index 63751f7f8ada..fddfc28161fb 100644 --- a/clients/client-schemas/package.json +++ b/clients/client-schemas/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-schemas/src/protocols/Aws_restJson1.ts b/clients/client-schemas/src/protocols/Aws_restJson1.ts index 21a98fe8dcc3..3c42020f7df6 100644 --- a/clients/client-schemas/src/protocols/Aws_restJson1.ts +++ b/clients/client-schemas/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -99,11 +100,11 @@ export const se_CreateDiscovererCommand = async ( input: CreateDiscovererCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers"; + b.bp("/v1/discoverers"); let body: any; body = JSON.stringify( take(input, { @@ -113,15 +114,8 @@ export const se_CreateDiscovererCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -131,20 +125,12 @@ export const se_CreateRegistryCommand = async ( input: CreateRegistryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); + b.bp("/v1/registries/name/{RegistryName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); let body: any; body = JSON.stringify( take(input, { @@ -152,15 +138,8 @@ export const se_CreateRegistryCommand = async ( tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -170,22 +149,13 @@ export const se_CreateSchemaCommand = async ( input: CreateSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); let body: any; body = JSON.stringify( take(input, { @@ -195,15 +165,8 @@ export const se_CreateSchemaCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -213,28 +176,13 @@ export const se_DeleteDiscovererCommand = async ( input: DeleteDiscovererCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DiscovererId", - () => input.DiscovererId!, - "{DiscovererId}", - false - ); + b.bp("/v1/discoverers/id/{DiscovererId}"); + b.p("DiscovererId", () => input.DiscovererId!, "{DiscovererId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -244,28 +192,13 @@ export const se_DeleteRegistryCommand = async ( input: DeleteRegistryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); + b.bp("/v1/registries/name/{RegistryName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -275,23 +208,15 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy"; + b.bp("/v1/policy"); const query: any = map({ - registryName: [, input.RegistryName!], + [_rN]: [, input[_RN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -301,30 +226,14 @@ export const se_DeleteSchemaCommand = async ( input: DeleteSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -334,38 +243,15 @@ export const se_DeleteSchemaVersionCommand = async ( input: DeleteSchemaVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SchemaVersion", - () => input.SchemaVersion!, - "{SchemaVersion}", - false - ); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.p("SchemaVersion", () => input.SchemaVersion!, "{SchemaVersion}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -375,35 +261,18 @@ export const se_DescribeCodeBindingCommand = async ( input: DescribeCodeBindingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Language", () => input.Language!, "{Language}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}"); + b.p("Language", () => input.Language!, "{Language}", false); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); const query: any = map({ - schemaVersion: [, input.SchemaVersion!], + [_sV]: [, input[_SV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -413,28 +282,13 @@ export const se_DescribeDiscovererCommand = async ( input: DescribeDiscovererCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DiscovererId", - () => input.DiscovererId!, - "{DiscovererId}", - false - ); + b.bp("/v1/discoverers/id/{DiscovererId}"); + b.p("DiscovererId", () => input.DiscovererId!, "{DiscovererId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -444,28 +298,13 @@ export const se_DescribeRegistryCommand = async ( input: DescribeRegistryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); + b.bp("/v1/registries/name/{RegistryName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -475,34 +314,17 @@ export const se_DescribeSchemaCommand = async ( input: DescribeSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); const query: any = map({ - schemaVersion: [, input.SchemaVersion!], + [_sV]: [, input[_SV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -512,35 +334,18 @@ export const se_ExportSchemaCommand = async ( input: ExportSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); const query: any = map({ - schemaVersion: [, input.SchemaVersion!], - type: [, __expectNonNull(input.Type!, `Type`)], + [_sV]: [, input[_SV]!], + [_t]: [, __expectNonNull(input[_T]!, `Type`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -550,35 +355,18 @@ export const se_GetCodeBindingSourceCommand = async ( input: GetCodeBindingSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source"; - resolvedPath = __resolvedPath(resolvedPath, input, "Language", () => input.Language!, "{Language}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source"); + b.p("Language", () => input.Language!, "{Language}", false); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); const query: any = map({ - schemaVersion: [, input.SchemaVersion!], + [_sV]: [, input[_SV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -588,11 +376,11 @@ export const se_GetDiscoveredSchemaCommand = async ( input: GetDiscoveredSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discover"; + b.bp("/v1/discover"); let body: any; body = JSON.stringify( take(input, { @@ -600,15 +388,8 @@ export const se_GetDiscoveredSchemaCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -618,23 +399,15 @@ export const se_GetResourcePolicyCommand = async ( input: GetResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy"; + b.bp("/v1/policy"); const query: any = map({ - registryName: [, input.RegistryName!], + [_rN]: [, input[_RN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -644,26 +417,18 @@ export const se_ListDiscoverersCommand = async ( input: ListDiscoverersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers"; + b.bp("/v1/discoverers"); const query: any = map({ - discovererIdPrefix: [, input.DiscovererIdPrefix!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - nextToken: [, input.NextToken!], - sourceArnPrefix: [, input.SourceArnPrefix!], + [_dIP]: [, input[_DIP]!], + [_l]: [() => input.Limit !== void 0, () => input[_L]!.toString()], + [_nT]: [, input[_NT]!], + [_sAP]: [, input[_SAP]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -673,26 +438,18 @@ export const se_ListRegistriesCommand = async ( input: ListRegistriesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries"; + b.bp("/v1/registries"); const query: any = map({ - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - nextToken: [, input.NextToken!], - registryNamePrefix: [, input.RegistryNamePrefix!], - scope: [, input.Scope!], + [_l]: [() => input.Limit !== void 0, () => input[_L]!.toString()], + [_nT]: [, input[_NT]!], + [_rNP]: [, input[_RNP]!], + [_s]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -702,35 +459,18 @@ export const se_ListSchemasCommand = async ( input: ListSchemasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); + b.bp("/v1/registries/name/{RegistryName}/schemas"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); const query: any = map({ - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - nextToken: [, input.NextToken!], - schemaNamePrefix: [, input.SchemaNamePrefix!], + [_l]: [() => input.Limit !== void 0, () => input[_L]!.toString()], + [_nT]: [, input[_NT]!], + [_sNP]: [, input[_SNP]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -740,35 +480,18 @@ export const se_ListSchemaVersionsCommand = async ( input: ListSchemaVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); const query: any = map({ - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - nextToken: [, input.NextToken!], + [_l]: [() => input.Limit !== void 0, () => input[_L]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -778,20 +501,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -801,35 +517,18 @@ export const se_PutCodeBindingCommand = async ( input: PutCodeBindingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Language", () => input.Language!, "{Language}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}"); + b.p("Language", () => input.Language!, "{Language}", false); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); const query: any = map({ - schemaVersion: [, input.SchemaVersion!], + [_sV]: [, input[_SV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -839,13 +538,13 @@ export const se_PutResourcePolicyCommand = async ( input: PutResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy"; + b.bp("/v1/policy"); const query: any = map({ - registryName: [, input.RegistryName!], + [_rN]: [, input[_RN]!], }); let body: any; body = JSON.stringify( @@ -854,16 +553,8 @@ export const se_PutResourcePolicyCommand = async ( RevisionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -873,35 +564,18 @@ export const se_SearchSchemasCommand = async ( input: SearchSchemasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/search"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); + b.bp("/v1/registries/name/{RegistryName}/schemas/search"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); const query: any = map({ - keywords: [, __expectNonNull(input.Keywords!, `Keywords`)], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - nextToken: [, input.NextToken!], + [_k]: [, __expectNonNull(input[_K]!, `Keywords`)], + [_l]: [() => input.Limit !== void 0, () => input[_L]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -911,28 +585,13 @@ export const se_StartDiscovererCommand = async ( input: StartDiscovererCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}/start"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DiscovererId", - () => input.DiscovererId!, - "{DiscovererId}", - false - ); + b.bp("/v1/discoverers/id/{DiscovererId}/start"); + b.p("DiscovererId", () => input.DiscovererId!, "{DiscovererId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -942,28 +601,13 @@ export const se_StopDiscovererCommand = async ( input: StopDiscovererCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}/stop"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DiscovererId", - () => input.DiscovererId!, - "{DiscovererId}", - false - ); + b.bp("/v1/discoverers/id/{DiscovererId}/stop"); + b.p("DiscovererId", () => input.DiscovererId!, "{DiscovererId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -973,27 +617,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: [, (_) => _json(_), `Tags`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1003,27 +640,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1033,20 +662,12 @@ export const se_UpdateDiscovererCommand = async ( input: UpdateDiscovererCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "DiscovererId", - () => input.DiscovererId!, - "{DiscovererId}", - false - ); + b.bp("/v1/discoverers/id/{DiscovererId}"); + b.p("DiscovererId", () => input.DiscovererId!, "{DiscovererId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1054,15 +675,8 @@ export const se_UpdateDiscovererCommand = async ( Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1072,35 +686,20 @@ export const se_UpdateRegistryCommand = async ( input: UpdateRegistryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); + b.bp("/v1/registries/name/{RegistryName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); let body: any; body = JSON.stringify( take(input, { Description: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1110,22 +709,13 @@ export const se_UpdateSchemaCommand = async ( input: UpdateSchemaCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "RegistryName", - () => input.RegistryName!, - "{RegistryName}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName!, "{SchemaName}", false); + b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}"); + b.p("RegistryName", () => input.RegistryName!, "{RegistryName}", false); + b.p("SchemaName", () => input.SchemaName!, "{SchemaName}", false); let body: any; body = JSON.stringify( take(input, { @@ -1135,15 +725,8 @@ export const se_UpdateSchemaCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3418,6 +3001,31 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DIP = "DiscovererIdPrefix"; +const _K = "Keywords"; +const _L = "Limit"; +const _NT = "NextToken"; +const _RN = "RegistryName"; +const _RNP = "RegistryNamePrefix"; +const _S = "Scope"; +const _SAP = "SourceArnPrefix"; +const _SNP = "SchemaNamePrefix"; +const _SV = "SchemaVersion"; +const _T = "Type"; +const _TK = "TagKeys"; +const _dIP = "discovererIdPrefix"; +const _k = "keywords"; +const _l = "limit"; +const _nT = "nextToken"; +const _rN = "registryName"; +const _rNP = "registryNamePrefix"; +const _s = "scope"; +const _sAP = "sourceArnPrefix"; +const _sNP = "schemaNamePrefix"; +const _sV = "schemaVersion"; +const _t = "type"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-securityhub/package.json b/clients/client-securityhub/package.json index b5b6fe9d3dcf..088459e6cfe0 100644 --- a/clients/client-securityhub/package.json +++ b/clients/client-securityhub/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-securityhub/src/models/models_2.ts b/clients/client-securityhub/src/models/models_2.ts index a582ff8fa682..f543cc7d8633 100644 --- a/clients/client-securityhub/src/models/models_2.ts +++ b/clients/client-securityhub/src/models/models_2.ts @@ -71,6 +71,7 @@ import { WorkflowStatus, WorkflowUpdate, } from "./models_0"; + import { AwsEcsTaskDefinitionDetails, AwsEcsTaskDetails, @@ -135,6 +136,7 @@ import { RecordState, Remediation, } from "./models_1"; + import { SecurityHubServiceException as __BaseException } from "./SecurityHubServiceException"; /** diff --git a/clients/client-securityhub/src/protocols/Aws_restJson1.ts b/clients/client-securityhub/src/protocols/Aws_restJson1.ts index 94db27c7a086..17ba1a3f2103 100644 --- a/clients/client-securityhub/src/protocols/Aws_restJson1.ts +++ b/clients/client-securityhub/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -926,11 +927,11 @@ export const se_AcceptAdministratorInvitationCommand = async ( input: AcceptAdministratorInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator"; + b.bp("/administrator"); let body: any; body = JSON.stringify( take(input, { @@ -938,15 +939,8 @@ export const se_AcceptAdministratorInvitationCommand = async ( InvitationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -956,11 +950,11 @@ export const se_AcceptInvitationCommand = async ( input: AcceptInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master"; + b.bp("/master"); let body: any; body = JSON.stringify( take(input, { @@ -968,15 +962,8 @@ export const se_AcceptInvitationCommand = async ( MasterId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -986,27 +973,19 @@ export const se_BatchDeleteAutomationRulesCommand = async ( input: BatchDeleteAutomationRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/delete"; + b.bp("/automationrules/delete"); let body: any; body = JSON.stringify( take(input, { AutomationRulesArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1016,26 +995,19 @@ export const se_BatchDisableStandardsCommand = async ( input: BatchDisableStandardsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/deregister"; + b.bp("/standards/deregister"); let body: any; body = JSON.stringify( take(input, { StandardsSubscriptionArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1045,26 +1017,19 @@ export const se_BatchEnableStandardsCommand = async ( input: BatchEnableStandardsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/register"; + b.bp("/standards/register"); let body: any; body = JSON.stringify( take(input, { StandardsSubscriptionRequests: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1074,26 +1039,19 @@ export const se_BatchGetAutomationRulesCommand = async ( input: BatchGetAutomationRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/get"; + b.bp("/automationrules/get"); let body: any; body = JSON.stringify( take(input, { AutomationRulesArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1103,27 +1061,19 @@ export const se_BatchGetConfigurationPolicyAssociationsCommand = async ( input: BatchGetConfigurationPolicyAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/batchget"; + b.bp("/configurationPolicyAssociation/batchget"); let body: any; body = JSON.stringify( take(input, { ConfigurationPolicyAssociationIdentifiers: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1133,27 +1083,19 @@ export const se_BatchGetSecurityControlsCommand = async ( input: BatchGetSecurityControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControls/batchGet"; + b.bp("/securityControls/batchGet"); let body: any; body = JSON.stringify( take(input, { SecurityControlIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1163,26 +1105,19 @@ export const se_BatchGetStandardsControlAssociationsCommand = async ( input: BatchGetStandardsControlAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/batchGet"; + b.bp("/associations/batchGet"); let body: any; body = JSON.stringify( take(input, { StandardsControlAssociationIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1192,26 +1127,19 @@ export const se_BatchImportFindingsCommand = async ( input: BatchImportFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/import"; + b.bp("/findings/import"); let body: any; body = JSON.stringify( take(input, { Findings: (_) => se_BatchImportFindingsRequestFindingList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1221,27 +1149,19 @@ export const se_BatchUpdateAutomationRulesCommand = async ( input: BatchUpdateAutomationRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/update"; + b.bp("/automationrules/update"); let body: any; body = JSON.stringify( take(input, { UpdateAutomationRulesRequestItems: (_) => se_UpdateAutomationRulesRequestItemsList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1251,11 +1171,11 @@ export const se_BatchUpdateFindingsCommand = async ( input: BatchUpdateFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/batchupdate"; + b.bp("/findings/batchupdate"); let body: any; body = JSON.stringify( take(input, { @@ -1271,15 +1191,8 @@ export const se_BatchUpdateFindingsCommand = async ( Workflow: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1289,26 +1202,19 @@ export const se_BatchUpdateStandardsControlAssociationsCommand = async ( input: BatchUpdateStandardsControlAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations"; + b.bp("/associations"); let body: any; body = JSON.stringify( take(input, { StandardsControlAssociationUpdates: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1318,11 +1224,11 @@ export const se_CreateActionTargetCommand = async ( input: CreateActionTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets"; + b.bp("/actionTargets"); let body: any; body = JSON.stringify( take(input, { @@ -1331,15 +1237,8 @@ export const se_CreateActionTargetCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1349,12 +1248,11 @@ export const se_CreateAutomationRuleCommand = async ( input: CreateAutomationRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/create"; + b.bp("/automationrules/create"); let body: any; body = JSON.stringify( take(input, { @@ -1368,15 +1266,8 @@ export const se_CreateAutomationRuleCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1386,12 +1277,11 @@ export const se_CreateConfigurationPolicyCommand = async ( input: CreateConfigurationPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/create"; + b.bp("/configurationPolicy/create"); let body: any; body = JSON.stringify( take(input, { @@ -1401,15 +1291,8 @@ export const se_CreateConfigurationPolicyCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1419,12 +1302,11 @@ export const se_CreateFindingAggregatorCommand = async ( input: CreateFindingAggregatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingAggregator/create"; + b.bp("/findingAggregator/create"); let body: any; body = JSON.stringify( take(input, { @@ -1432,15 +1314,8 @@ export const se_CreateFindingAggregatorCommand = async ( Regions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1450,11 +1325,11 @@ export const se_CreateInsightCommand = async ( input: CreateInsightCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights"; + b.bp("/insights"); let body: any; body = JSON.stringify( take(input, { @@ -1463,15 +1338,8 @@ export const se_CreateInsightCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1481,26 +1349,19 @@ export const se_CreateMembersCommand = async ( input: CreateMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members"; + b.bp("/members"); let body: any; body = JSON.stringify( take(input, { AccountDetails: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1510,26 +1371,19 @@ export const se_DeclineInvitationsCommand = async ( input: DeclineInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/decline"; + b.bp("/invitations/decline"); let body: any; body = JSON.stringify( take(input, { AccountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1539,28 +1393,13 @@ export const se_DeleteActionTargetCommand = async ( input: DeleteActionTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets/{ActionTargetArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ActionTargetArn", - () => input.ActionTargetArn!, - "{ActionTargetArn+}", - true - ); + b.bp("/actionTargets/{ActionTargetArn+}"); + b.p("ActionTargetArn", () => input.ActionTargetArn!, "{ActionTargetArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1570,21 +1409,13 @@ export const se_DeleteConfigurationPolicyCommand = async ( input: DeleteConfigurationPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/configurationPolicy/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1594,29 +1425,13 @@ export const se_DeleteFindingAggregatorCommand = async ( input: DeleteFindingAggregatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/findingAggregator/delete/{FindingAggregatorArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FindingAggregatorArn", - () => input.FindingAggregatorArn!, - "{FindingAggregatorArn+}", - true - ); + b.bp("/findingAggregator/delete/{FindingAggregatorArn+}"); + b.p("FindingAggregatorArn", () => input.FindingAggregatorArn!, "{FindingAggregatorArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1626,20 +1441,13 @@ export const se_DeleteInsightCommand = async ( input: DeleteInsightCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{InsightArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InsightArn", () => input.InsightArn!, "{InsightArn+}", true); + b.bp("/insights/{InsightArn+}"); + b.p("InsightArn", () => input.InsightArn!, "{InsightArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1649,26 +1457,19 @@ export const se_DeleteInvitationsCommand = async ( input: DeleteInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/delete"; + b.bp("/invitations/delete"); let body: any; body = JSON.stringify( take(input, { AccountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1678,26 +1479,19 @@ export const se_DeleteMembersCommand = async ( input: DeleteMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/delete"; + b.bp("/members/delete"); let body: any; body = JSON.stringify( take(input, { AccountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1707,11 +1501,11 @@ export const se_DescribeActionTargetsCommand = async ( input: DescribeActionTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets/get"; + b.bp("/actionTargets/get"); let body: any; body = JSON.stringify( take(input, { @@ -1720,15 +1514,8 @@ export const se_DescribeActionTargetsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1738,23 +1525,15 @@ export const se_DescribeHubCommand = async ( input: DescribeHubCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts"; + b.bp("/accounts"); const query: any = map({ - HubArn: [, input.HubArn!], + [_HA]: [, input[_HA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1764,23 +1543,15 @@ export const se_DescribeOrganizationConfigurationCommand = async ( input: DescribeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/configuration"; + b.bp("/organization/configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1790,25 +1561,17 @@ export const se_DescribeProductsCommand = async ( input: DescribeProductsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/products"; + b.bp("/products"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - ProductArn: [, input.ProductArn!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_PA]: [, input[_PA]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1818,24 +1581,16 @@ export const se_DescribeStandardsCommand = async ( input: DescribeStandardsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards"; + b.bp("/standards"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1845,34 +1600,17 @@ export const se_DescribeStandardsControlsCommand = async ( input: DescribeStandardsControlsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/standards/controls/{StandardsSubscriptionArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "StandardsSubscriptionArn", - () => input.StandardsSubscriptionArn!, - "{StandardsSubscriptionArn+}", - true - ); + b.bp("/standards/controls/{StandardsSubscriptionArn+}"); + b.p("StandardsSubscriptionArn", () => input.StandardsSubscriptionArn!, "{StandardsSubscriptionArn+}", true); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1882,29 +1620,13 @@ export const se_DisableImportFindingsForProductCommand = async ( input: DisableImportFindingsForProductCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/productSubscriptions/{ProductSubscriptionArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ProductSubscriptionArn", - () => input.ProductSubscriptionArn!, - "{ProductSubscriptionArn+}", - true - ); + b.bp("/productSubscriptions/{ProductSubscriptionArn+}"); + b.p("ProductSubscriptionArn", () => input.ProductSubscriptionArn!, "{ProductSubscriptionArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1914,27 +1636,19 @@ export const se_DisableOrganizationAdminAccountCommand = async ( input: DisableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/admin/disable"; + b.bp("/organization/admin/disable"); let body: any; body = JSON.stringify( take(input, { AdminAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1944,22 +1658,15 @@ export const se_DisableSecurityHubCommand = async ( input: DisableSecurityHubCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts"; + b.bp("/accounts"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1969,23 +1676,15 @@ export const se_DisassociateFromAdministratorAccountCommand = async ( input: DisassociateFromAdministratorAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator/disassociate"; + b.bp("/administrator/disassociate"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1995,22 +1694,15 @@ export const se_DisassociateFromMasterAccountCommand = async ( input: DisassociateFromMasterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master/disassociate"; + b.bp("/master/disassociate"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2020,26 +1712,19 @@ export const se_DisassociateMembersCommand = async ( input: DisassociateMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate"; + b.bp("/members/disassociate"); let body: any; body = JSON.stringify( take(input, { AccountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2049,26 +1734,19 @@ export const se_EnableImportFindingsForProductCommand = async ( input: EnableImportFindingsForProductCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/productSubscriptions"; + b.bp("/productSubscriptions"); let body: any; body = JSON.stringify( take(input, { ProductArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2078,27 +1756,19 @@ export const se_EnableOrganizationAdminAccountCommand = async ( input: EnableOrganizationAdminAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/admin/enable"; + b.bp("/organization/admin/enable"); let body: any; body = JSON.stringify( take(input, { AdminAccountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2108,11 +1778,11 @@ export const se_EnableSecurityHubCommand = async ( input: EnableSecurityHubCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts"; + b.bp("/accounts"); let body: any; body = JSON.stringify( take(input, { @@ -2121,15 +1791,8 @@ export const se_EnableSecurityHubCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2139,22 +1802,15 @@ export const se_GetAdministratorAccountCommand = async ( input: GetAdministratorAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/administrator"; + b.bp("/administrator"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2164,21 +1820,13 @@ export const se_GetConfigurationPolicyCommand = async ( input: GetConfigurationPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/get/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/configurationPolicy/get/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2188,27 +1836,19 @@ export const se_GetConfigurationPolicyAssociationCommand = async ( input: GetConfigurationPolicyAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/get"; + b.bp("/configurationPolicyAssociation/get"); let body: any; body = JSON.stringify( take(input, { Target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2218,11 +1858,11 @@ export const se_GetEnabledStandardsCommand = async ( input: GetEnabledStandardsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/get"; + b.bp("/standards/get"); let body: any; body = JSON.stringify( take(input, { @@ -2231,15 +1871,8 @@ export const se_GetEnabledStandardsCommand = async ( StandardsSubscriptionArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2249,29 +1882,13 @@ export const se_GetFindingAggregatorCommand = async ( input: GetFindingAggregatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/findingAggregator/get/{FindingAggregatorArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "FindingAggregatorArn", - () => input.FindingAggregatorArn!, - "{FindingAggregatorArn+}", - true - ); + b.bp("/findingAggregator/get/{FindingAggregatorArn+}"); + b.p("FindingAggregatorArn", () => input.FindingAggregatorArn!, "{FindingAggregatorArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2281,11 +1898,11 @@ export const se_GetFindingHistoryCommand = async ( input: GetFindingHistoryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingHistory/get"; + b.bp("/findingHistory/get"); let body: any; body = JSON.stringify( take(input, { @@ -2296,15 +1913,8 @@ export const se_GetFindingHistoryCommand = async ( StartTime: (_) => _.toISOString().split(".")[0] + "Z", }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2314,11 +1924,11 @@ export const se_GetFindingsCommand = async ( input: GetFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings"; + b.bp("/findings"); let body: any; body = JSON.stringify( take(input, { @@ -2328,15 +1938,8 @@ export const se_GetFindingsCommand = async ( SortCriteria: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2346,21 +1949,13 @@ export const se_GetInsightResultsCommand = async ( input: GetInsightResultsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/results/{InsightArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InsightArn", () => input.InsightArn!, "{InsightArn+}", true); + b.bp("/insights/results/{InsightArn+}"); + b.p("InsightArn", () => input.InsightArn!, "{InsightArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2370,11 +1965,11 @@ export const se_GetInsightsCommand = async ( input: GetInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/get"; + b.bp("/insights/get"); let body: any; body = JSON.stringify( take(input, { @@ -2383,15 +1978,8 @@ export const se_GetInsightsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2401,22 +1989,15 @@ export const se_GetInvitationsCountCommand = async ( input: GetInvitationsCountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/count"; + b.bp("/invitations/count"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2426,22 +2007,15 @@ export const se_GetMasterAccountCommand = async ( input: GetMasterAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/master"; + b.bp("/master"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2451,26 +2025,19 @@ export const se_GetMembersCommand = async ( input: GetMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/get"; + b.bp("/members/get"); let body: any; body = JSON.stringify( take(input, { AccountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2480,24 +2047,15 @@ export const se_GetSecurityControlDefinitionCommand = async ( input: GetSecurityControlDefinitionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControl/definition"; + b.bp("/securityControl/definition"); const query: any = map({ - SecurityControlId: [, __expectNonNull(input.SecurityControlId!, `SecurityControlId`)], + [_SCI]: [, __expectNonNull(input[_SCI]!, `SecurityControlId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2507,26 +2065,19 @@ export const se_InviteMembersCommand = async ( input: InviteMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/invite"; + b.bp("/members/invite"); let body: any; body = JSON.stringify( take(input, { AccountIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2536,24 +2087,16 @@ export const se_ListAutomationRulesCommand = async ( input: ListAutomationRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automationrules/list"; + b.bp("/automationrules/list"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2563,25 +2106,16 @@ export const se_ListConfigurationPoliciesCommand = async ( input: ListConfigurationPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/list"; + b.bp("/configurationPolicy/list"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2591,12 +2125,11 @@ export const se_ListConfigurationPolicyAssociationsCommand = async ( input: ListConfigurationPolicyAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/list"; + b.bp("/configurationPolicyAssociation/list"); let body: any; body = JSON.stringify( take(input, { @@ -2605,15 +2138,8 @@ export const se_ListConfigurationPolicyAssociationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2623,24 +2149,16 @@ export const se_ListEnabledProductsForImportCommand = async ( input: ListEnabledProductsForImportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/productSubscriptions"; + b.bp("/productSubscriptions"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2650,25 +2168,16 @@ export const se_ListFindingAggregatorsCommand = async ( input: ListFindingAggregatorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingAggregator/list"; + b.bp("/findingAggregator/list"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2678,24 +2187,16 @@ export const se_ListInvitationsCommand = async ( input: ListInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations"; + b.bp("/invitations"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2705,25 +2206,17 @@ export const se_ListMembersCommand = async ( input: ListMembersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members"; + b.bp("/members"); const query: any = map({ - OnlyAssociated: [() => input.OnlyAssociated !== void 0, () => input.OnlyAssociated!.toString()], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_OA]: [() => input.OnlyAssociated !== void 0, () => input[_OA]!.toString()], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2733,24 +2226,16 @@ export const se_ListOrganizationAdminAccountsCommand = async ( input: ListOrganizationAdminAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/admin"; + b.bp("/organization/admin"); const query: any = map({ - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - NextToken: [, input.NextToken!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2760,26 +2245,17 @@ export const se_ListSecurityControlDefinitionsCommand = async ( input: ListSecurityControlDefinitionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControls/definitions"; + b.bp("/securityControls/definitions"); const query: any = map({ - StandardsArn: [, input.StandardsArn!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_SA]: [, input[_SA]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2789,25 +2265,17 @@ export const se_ListStandardsControlAssociationsCommand = async ( input: ListStandardsControlAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations"; + b.bp("/associations"); const query: any = map({ - SecurityControlId: [, __expectNonNull(input.SecurityControlId!, `SecurityControlId`)], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_SCI]: [, __expectNonNull(input[_SCI]!, `SecurityControlId`)], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2817,20 +2285,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2840,12 +2301,11 @@ export const se_StartConfigurationPolicyAssociationCommand = async ( input: StartConfigurationPolicyAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicyAssociation/associate"; + b.bp("/configurationPolicyAssociation/associate"); let body: any; body = JSON.stringify( take(input, { @@ -2853,15 +2313,8 @@ export const se_StartConfigurationPolicyAssociationCommand = async ( Target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2871,13 +2324,11 @@ export const se_StartConfigurationPolicyDisassociationCommand = async ( input: StartConfigurationPolicyDisassociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/configurationPolicyAssociation/disassociate"; + b.bp("/configurationPolicyAssociation/disassociate"); let body: any; body = JSON.stringify( take(input, { @@ -2885,15 +2336,8 @@ export const se_StartConfigurationPolicyDisassociationCommand = async ( Target: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2903,27 +2347,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2933,27 +2370,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2963,20 +2392,12 @@ export const se_UpdateActionTargetCommand = async ( input: UpdateActionTargetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actionTargets/{ActionTargetArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ActionTargetArn", - () => input.ActionTargetArn!, - "{ActionTargetArn+}", - true - ); + b.bp("/actionTargets/{ActionTargetArn+}"); + b.p("ActionTargetArn", () => input.ActionTargetArn!, "{ActionTargetArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -2984,15 +2405,8 @@ export const se_UpdateActionTargetCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3002,13 +2416,12 @@ export const se_UpdateConfigurationPolicyCommand = async ( input: UpdateConfigurationPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configurationPolicy/{Identifier}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier!, "{Identifier}", false); + b.bp("/configurationPolicy/{Identifier}"); + b.p("Identifier", () => input.Identifier!, "{Identifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -3018,15 +2431,8 @@ export const se_UpdateConfigurationPolicyCommand = async ( UpdatedReason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3036,12 +2442,11 @@ export const se_UpdateFindingAggregatorCommand = async ( input: UpdateFindingAggregatorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findingAggregator/update"; + b.bp("/findingAggregator/update"); let body: any; body = JSON.stringify( take(input, { @@ -3050,15 +2455,8 @@ export const se_UpdateFindingAggregatorCommand = async ( Regions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3068,11 +2466,11 @@ export const se_UpdateFindingsCommand = async ( input: UpdateFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings"; + b.bp("/findings"); let body: any; body = JSON.stringify( take(input, { @@ -3081,15 +2479,8 @@ export const se_UpdateFindingsCommand = async ( RecordState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3099,12 +2490,12 @@ export const se_UpdateInsightCommand = async ( input: UpdateInsightCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{InsightArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "InsightArn", () => input.InsightArn!, "{InsightArn+}", true); + b.bp("/insights/{InsightArn+}"); + b.p("InsightArn", () => input.InsightArn!, "{InsightArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -3113,15 +2504,8 @@ export const se_UpdateInsightCommand = async ( Name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3131,12 +2515,11 @@ export const se_UpdateOrganizationConfigurationCommand = async ( input: UpdateOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/configuration"; + b.bp("/organization/configuration"); let body: any; body = JSON.stringify( take(input, { @@ -3145,15 +2528,8 @@ export const se_UpdateOrganizationConfigurationCommand = async ( OrganizationConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3163,12 +2539,11 @@ export const se_UpdateSecurityControlCommand = async ( input: UpdateSecurityControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/securityControl/update"; + b.bp("/securityControl/update"); let body: any; body = JSON.stringify( take(input, { @@ -3177,15 +2552,8 @@ export const se_UpdateSecurityControlCommand = async ( SecurityControlId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3195,11 +2563,11 @@ export const se_UpdateSecurityHubConfigurationCommand = async ( input: UpdateSecurityHubConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts"; + b.bp("/accounts"); let body: any; body = JSON.stringify( take(input, { @@ -3207,15 +2575,8 @@ export const se_UpdateSecurityHubConfigurationCommand = async ( ControlFindingGenerator: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -3225,20 +2586,12 @@ export const se_UpdateStandardsControlCommand = async ( input: UpdateStandardsControlCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/standards/control/{StandardsControlArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "StandardsControlArn", - () => input.StandardsControlArn!, - "{StandardsControlArn+}", - true - ); + b.bp("/standards/control/{StandardsControlArn+}"); + b.p("StandardsControlArn", () => input.StandardsControlArn!, "{StandardsControlArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -3246,15 +2599,8 @@ export const se_UpdateStandardsControlCommand = async ( DisabledReason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -13964,6 +13310,16 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _HA = "HubArn"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _OA = "OnlyAssociated"; +const _PA = "ProductArn"; +const _SA = "StandardsArn"; +const _SCI = "SecurityControlId"; +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-securitylake/package.json b/clients/client-securitylake/package.json index 7ccf660bd3a1..1bc1d116e3bd 100644 --- a/clients/client-securitylake/package.json +++ b/clients/client-securitylake/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-securitylake/src/protocols/Aws_restJson1.ts b/clients/client-securitylake/src/protocols/Aws_restJson1.ts index 7ab61f2c912a..af30d731f529 100644 --- a/clients/client-securitylake/src/protocols/Aws_restJson1.ts +++ b/clients/client-securitylake/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -141,27 +142,19 @@ export const se_CreateAwsLogSourceCommand = async ( input: CreateAwsLogSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws"; + b.bp("/v1/datalake/logsources/aws"); let body: any; body = JSON.stringify( take(input, { sources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -171,12 +164,11 @@ export const se_CreateCustomLogSourceCommand = async ( input: CreateCustomLogSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/custom"; + b.bp("/v1/datalake/logsources/custom"); let body: any; body = JSON.stringify( take(input, { @@ -186,15 +178,8 @@ export const se_CreateCustomLogSourceCommand = async ( sourceVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -204,11 +189,11 @@ export const se_CreateDataLakeCommand = async ( input: CreateDataLakeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake"; + b.bp("/v1/datalake"); let body: any; body = JSON.stringify( take(input, { @@ -217,15 +202,8 @@ export const se_CreateDataLakeCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -235,12 +213,11 @@ export const se_CreateDataLakeExceptionSubscriptionCommand = async ( input: CreateDataLakeExceptionSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription"; + b.bp("/v1/datalake/exceptions/subscription"); let body: any; body = JSON.stringify( take(input, { @@ -249,15 +226,8 @@ export const se_CreateDataLakeExceptionSubscriptionCommand = async ( subscriptionProtocol: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -267,27 +237,19 @@ export const se_CreateDataLakeOrganizationConfigurationCommand = async ( input: CreateDataLakeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration"; + b.bp("/v1/datalake/organization/configuration"); let body: any; body = JSON.stringify( take(input, { autoEnableNewAccount: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -297,11 +259,11 @@ export const se_CreateSubscriberCommand = async ( input: CreateSubscriberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers"; + b.bp("/v1/subscribers"); let body: any; body = JSON.stringify( take(input, { @@ -313,15 +275,8 @@ export const se_CreateSubscriberCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -331,36 +286,20 @@ export const se_CreateSubscriberNotificationCommand = async ( input: CreateSubscriberNotificationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/subscribers/{subscriberId}/notification"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "subscriberId", - () => input.subscriberId!, - "{subscriberId}", - false - ); + b.bp("/v1/subscribers/{subscriberId}/notification"); + b.p("subscriberId", () => input.subscriberId!, "{subscriberId}", false); let body: any; body = JSON.stringify( take(input, { configuration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -370,27 +309,19 @@ export const se_DeleteAwsLogSourceCommand = async ( input: DeleteAwsLogSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws/delete"; + b.bp("/v1/datalake/logsources/aws/delete"); let body: any; body = JSON.stringify( take(input, { sources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -400,26 +331,16 @@ export const se_DeleteCustomLogSourceCommand = async ( input: DeleteCustomLogSourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/datalake/logsources/custom/{sourceName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "sourceName", () => input.sourceName!, "{sourceName}", false); + b.bp("/v1/datalake/logsources/custom/{sourceName}"); + b.p("sourceName", () => input.sourceName!, "{sourceName}", false); const query: any = map({ - sourceVersion: [, input.sourceVersion!], + [_sV]: [, input[_sV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -429,26 +350,19 @@ export const se_DeleteDataLakeCommand = async ( input: DeleteDataLakeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delete"; + b.bp("/v1/datalake/delete"); let body: any; body = JSON.stringify( take(input, { regions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -458,23 +372,15 @@ export const se_DeleteDataLakeExceptionSubscriptionCommand = async ( input: DeleteDataLakeExceptionSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription"; + b.bp("/v1/datalake/exceptions/subscription"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -484,28 +390,19 @@ export const se_DeleteDataLakeOrganizationConfigurationCommand = async ( input: DeleteDataLakeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/datalake/organization/configuration/delete"; + b.bp("/v1/datalake/organization/configuration/delete"); let body: any; body = JSON.stringify( take(input, { autoEnableNewAccount: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -515,28 +412,13 @@ export const se_DeleteSubscriberCommand = async ( input: DeleteSubscriberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "subscriberId", - () => input.subscriberId!, - "{subscriberId}", - false - ); + b.bp("/v1/subscribers/{subscriberId}"); + b.p("subscriberId", () => input.subscriberId!, "{subscriberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -546,29 +428,13 @@ export const se_DeleteSubscriberNotificationCommand = async ( input: DeleteSubscriberNotificationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/subscribers/{subscriberId}/notification"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "subscriberId", - () => input.subscriberId!, - "{subscriberId}", - false - ); + b.bp("/v1/subscribers/{subscriberId}/notification"); + b.p("subscriberId", () => input.subscriberId!, "{subscriberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -578,22 +444,15 @@ export const se_DeregisterDataLakeDelegatedAdministratorCommand = async ( input: DeregisterDataLakeDelegatedAdministratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate"; + b.bp("/v1/datalake/delegate"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -603,23 +462,15 @@ export const se_GetDataLakeExceptionSubscriptionCommand = async ( input: GetDataLakeExceptionSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription"; + b.bp("/v1/datalake/exceptions/subscription"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -629,23 +480,15 @@ export const se_GetDataLakeOrganizationConfigurationCommand = async ( input: GetDataLakeOrganizationConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration"; + b.bp("/v1/datalake/organization/configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -655,11 +498,11 @@ export const se_GetDataLakeSourcesCommand = async ( input: GetDataLakeSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/sources"; + b.bp("/v1/datalake/sources"); let body: any; body = JSON.stringify( take(input, { @@ -668,15 +511,8 @@ export const se_GetDataLakeSourcesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -686,28 +522,13 @@ export const se_GetSubscriberCommand = async ( input: GetSubscriberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "subscriberId", - () => input.subscriberId!, - "{subscriberId}", - false - ); + b.bp("/v1/subscribers/{subscriberId}"); + b.p("subscriberId", () => input.subscriberId!, "{subscriberId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -717,12 +538,11 @@ export const se_ListDataLakeExceptionsCommand = async ( input: ListDataLakeExceptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions"; + b.bp("/v1/datalake/exceptions"); let body: any; body = JSON.stringify( take(input, { @@ -731,15 +551,8 @@ export const se_ListDataLakeExceptionsCommand = async ( regions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -749,23 +562,15 @@ export const se_ListDataLakesCommand = async ( input: ListDataLakesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalakes"; + b.bp("/v1/datalakes"); const query: any = map({ - regions: [() => input.regions !== void 0, () => (input.regions! || []).map((_entry) => _entry as any)], + [_r]: [() => input.regions !== void 0, () => (input[_r]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -775,12 +580,11 @@ export const se_ListLogSourcesCommand = async ( input: ListLogSourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/list"; + b.bp("/v1/datalake/logsources/list"); let body: any; body = JSON.stringify( take(input, { @@ -791,15 +595,8 @@ export const se_ListLogSourcesCommand = async ( sources: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -809,24 +606,16 @@ export const se_ListSubscribersCommand = async ( input: ListSubscribersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers"; + b.bp("/v1/subscribers"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -836,20 +625,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -859,26 +641,19 @@ export const se_RegisterDataLakeDelegatedAdministratorCommand = async ( input: RegisterDataLakeDelegatedAdministratorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate"; + b.bp("/v1/datalake/delegate"); let body: any; body = JSON.stringify( take(input, { accountId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -888,27 +663,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -918,27 +686,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/v1/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -948,26 +708,19 @@ export const se_UpdateDataLakeCommand = async ( input: UpdateDataLakeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake"; + b.bp("/v1/datalake"); let body: any; body = JSON.stringify( take(input, { configurations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -977,12 +730,11 @@ export const se_UpdateDataLakeExceptionSubscriptionCommand = async ( input: UpdateDataLakeExceptionSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription"; + b.bp("/v1/datalake/exceptions/subscription"); let body: any; body = JSON.stringify( take(input, { @@ -991,15 +743,8 @@ export const se_UpdateDataLakeExceptionSubscriptionCommand = async ( subscriptionProtocol: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1009,20 +754,12 @@ export const se_UpdateSubscriberCommand = async ( input: UpdateSubscriberCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "subscriberId", - () => input.subscriberId!, - "{subscriberId}", - false - ); + b.bp("/v1/subscribers/{subscriberId}"); + b.p("subscriberId", () => input.subscriberId!, "{subscriberId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1032,15 +769,8 @@ export const se_UpdateSubscriberCommand = async ( subscriberName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1050,36 +780,20 @@ export const se_UpdateSubscriberNotificationCommand = async ( input: UpdateSubscriberNotificationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/subscribers/{subscriberId}/notification"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "subscriberId", - () => input.subscriberId!, - "{subscriberId}", - false - ); + b.bp("/v1/subscribers/{subscriberId}/notification"); + b.p("subscriberId", () => input.subscriberId!, "{subscriberId}", false); let body: any; body = JSON.stringify( take(input, { configuration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3064,10 +2778,7 @@ const de_ResourceNotFoundExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -3287,6 +2998,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _r = "regions"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _sV = "sourceVersion"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-serverlessapplicationrepository/package.json b/clients/client-serverlessapplicationrepository/package.json index 1819d00e5906..3c958e4d7820 100644 --- a/clients/client-serverlessapplicationrepository/package.json +++ b/clients/client-serverlessapplicationrepository/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts b/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts index 0ecba2d11c55..3cd27139aab2 100644 --- a/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts +++ b/clients/client-serverlessapplicationrepository/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -86,11 +87,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -111,15 +112,8 @@ export const se_CreateApplicationCommand = async ( templateUrl: [, , `TemplateUrl`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -129,29 +123,13 @@ export const se_CreateApplicationVersionCommand = async ( input: CreateApplicationVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/versions/{SemanticVersion}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SemanticVersion", - () => input.SemanticVersion!, - "{SemanticVersion}", - false - ); + b.bp("/applications/{ApplicationId}/versions/{SemanticVersion}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("SemanticVersion", () => input.SemanticVersion!, "{SemanticVersion}", false); let body: any; body = JSON.stringify( take(input, { @@ -161,15 +139,8 @@ export const se_CreateApplicationVersionCommand = async ( templateUrl: [, , `TemplateUrl`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -179,20 +150,12 @@ export const se_CreateCloudFormationChangeSetCommand = async ( input: CreateCloudFormationChangeSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/changesets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/changesets"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -210,15 +173,8 @@ export const se_CreateCloudFormationChangeSetCommand = async ( templateId: [, , `TemplateId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -228,35 +184,20 @@ export const se_CreateCloudFormationTemplateCommand = async ( input: CreateCloudFormationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/templates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/templates"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { semanticVersion: [, , `SemanticVersion`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -266,28 +207,13 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -297,32 +223,16 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - semanticVersion: [, input.SemanticVersion!], + [_sV]: [, input[_SV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -332,28 +242,13 @@ export const se_GetApplicationPolicyCommand = async ( input: GetApplicationPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/policy"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -363,30 +258,14 @@ export const se_GetCloudFormationTemplateCommand = async ( input: GetCloudFormationTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/templates/{TemplateId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateId", () => input.TemplateId!, "{TemplateId}", false); + b.bp("/applications/{ApplicationId}/templates/{TemplateId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); + b.p("TemplateId", () => input.TemplateId!, "{TemplateId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -396,35 +275,18 @@ export const se_ListApplicationDependenciesCommand = async ( input: ListApplicationDependenciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{ApplicationId}/dependencies"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/dependencies"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - maxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - nextToken: [, input.NextToken!], - semanticVersion: [, input.SemanticVersion!], + [_mI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_nT]: [, input[_NT]!], + [_sV]: [, input[_SV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -434,24 +296,16 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - maxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - nextToken: [, input.NextToken!], + [_mI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -461,33 +315,17 @@ export const se_ListApplicationVersionsCommand = async ( input: ListApplicationVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/versions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/versions"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); const query: any = map({ - maxItems: [() => input.MaxItems !== void 0, () => input.MaxItems!.toString()], - nextToken: [, input.NextToken!], + [_mI]: [() => input.MaxItems !== void 0, () => input[_MI]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -497,35 +335,20 @@ export const se_PutApplicationPolicyCommand = async ( input: PutApplicationPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/policy"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/policy"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { statements: [, (_) => se___listOfApplicationPolicyStatement(_, context), `Statements`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -535,35 +358,20 @@ export const se_UnshareApplicationCommand = async ( input: UnshareApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}/unshare"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}/unshare"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { organizationId: [, , `OrganizationId`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -573,20 +381,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ApplicationId", - () => input.ApplicationId!, - "{ApplicationId}", - false - ); + b.bp("/applications/{ApplicationId}"); + b.p("ApplicationId", () => input.ApplicationId!, "{ApplicationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -598,15 +398,8 @@ export const se_UpdateApplicationCommand = async ( readmeUrl: [, , `ReadmeUrl`], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1876,6 +1669,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _MI = "MaxItems"; +const _NT = "NextToken"; +const _SV = "SemanticVersion"; +const _mI = "maxItems"; +const _nT = "nextToken"; +const _sV = "semanticVersion"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-service-catalog-appregistry/package.json b/clients/client-service-catalog-appregistry/package.json index 478ce59eed1b..8fca9a1a1f3b 100644 --- a/clients/client-service-catalog-appregistry/package.json +++ b/clients/client-service-catalog-appregistry/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts index 932f3b32d843..109a050e7067 100644 --- a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts +++ b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -107,30 +108,14 @@ export const se_AssociateAttributeGroupCommand = async ( input: AssociateAttributeGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{application}/attribute-groups/{attributeGroup}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "attributeGroup", - () => input.attributeGroup!, - "{attributeGroup}", - false - ); + b.bp("/applications/{application}/attribute-groups/{attributeGroup}"); + b.p("application", () => input.application!, "{application}", false); + b.p("attributeGroup", () => input.attributeGroup!, "{attributeGroup}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -140,38 +125,22 @@ export const se_AssociateResourceCommand = async ( input: AssociateResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{application}/resources/{resourceType}/{resource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceType", - () => input.resourceType!, - "{resourceType}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "resource", () => input.resource!, "{resource}", false); + b.bp("/applications/{application}/resources/{resourceType}/{resource}"); + b.p("application", () => input.application!, "{application}", false); + b.p("resourceType", () => input.resourceType!, "{resourceType}", false); + b.p("resource", () => input.resource!, "{resource}", false); let body: any; body = JSON.stringify( take(input, { options: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -181,11 +150,11 @@ export const se_CreateApplicationCommand = async ( input: CreateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); let body: any; body = JSON.stringify( take(input, { @@ -195,15 +164,8 @@ export const se_CreateApplicationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -213,11 +175,11 @@ export const se_CreateAttributeGroupCommand = async ( input: CreateAttributeGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups"; + b.bp("/attribute-groups"); let body: any; body = JSON.stringify( take(input, { @@ -228,15 +190,8 @@ export const se_CreateAttributeGroupCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -246,21 +201,13 @@ export const se_DeleteApplicationCommand = async ( input: DeleteApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); + b.bp("/applications/{application}"); + b.p("application", () => input.application!, "{application}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -270,28 +217,13 @@ export const se_DeleteAttributeGroupCommand = async ( input: DeleteAttributeGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "attributeGroup", - () => input.attributeGroup!, - "{attributeGroup}", - false - ); + b.bp("/attribute-groups/{attributeGroup}"); + b.p("attributeGroup", () => input.attributeGroup!, "{attributeGroup}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -301,30 +233,14 @@ export const se_DisassociateAttributeGroupCommand = async ( input: DisassociateAttributeGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{application}/attribute-groups/{attributeGroup}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "attributeGroup", - () => input.attributeGroup!, - "{attributeGroup}", - false - ); + b.bp("/applications/{application}/attribute-groups/{attributeGroup}"); + b.p("application", () => input.application!, "{application}", false); + b.p("attributeGroup", () => input.attributeGroup!, "{attributeGroup}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -334,31 +250,15 @@ export const se_DisassociateResourceCommand = async ( input: DisassociateResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{application}/resources/{resourceType}/{resource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceType", - () => input.resourceType!, - "{resourceType}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "resource", () => input.resource!, "{resource}", false); + b.bp("/applications/{application}/resources/{resourceType}/{resource}"); + b.p("application", () => input.application!, "{application}", false); + b.p("resourceType", () => input.resourceType!, "{resourceType}", false); + b.p("resource", () => input.resource!, "{resource}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -368,21 +268,13 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); + b.bp("/applications/{application}"); + b.p("application", () => input.application!, "{application}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -392,40 +284,20 @@ export const se_GetAssociatedResourceCommand = async ( input: GetAssociatedResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{application}/resources/{resourceType}/{resource}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceType", - () => input.resourceType!, - "{resourceType}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "resource", () => input.resource!, "{resource}", false); + b.bp("/applications/{application}/resources/{resourceType}/{resource}"); + b.p("application", () => input.application!, "{application}", false); + b.p("resourceType", () => input.resourceType!, "{resourceType}", false); + b.p("resource", () => input.resource!, "{resource}", false); const query: any = map({ - nextToken: [, input.nextToken!], - resourceTagStatus: [ - () => input.resourceTagStatus !== void 0, - () => (input.resourceTagStatus! || []).map((_entry) => _entry as any), - ], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_rTS]: [() => input.resourceTagStatus !== void 0, () => (input[_rTS]! || []).map((_entry) => _entry as any)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -435,28 +307,13 @@ export const se_GetAttributeGroupCommand = async ( input: GetAttributeGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "attributeGroup", - () => input.attributeGroup!, - "{attributeGroup}", - false - ); + b.bp("/attribute-groups/{attributeGroup}"); + b.p("attributeGroup", () => input.attributeGroup!, "{attributeGroup}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -466,22 +323,15 @@ export const se_GetConfigurationCommand = async ( input: GetConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration"; + b.bp("/configuration"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -491,24 +341,16 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications"; + b.bp("/applications"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -518,27 +360,17 @@ export const se_ListAssociatedAttributeGroupsCommand = async ( input: ListAssociatedAttributeGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{application}/attribute-groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); + b.bp("/applications/{application}/attribute-groups"); + b.p("application", () => input.application!, "{application}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -548,26 +380,17 @@ export const se_ListAssociatedResourcesCommand = async ( input: ListAssociatedResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}/resources"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); + b.bp("/applications/{application}/resources"); + b.p("application", () => input.application!, "{application}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -577,24 +400,16 @@ export const se_ListAttributeGroupsCommand = async ( input: ListAttributeGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups"; + b.bp("/attribute-groups"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -604,27 +419,17 @@ export const se_ListAttributeGroupsForApplicationCommand = async ( input: ListAttributeGroupsForApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/applications/{application}/attribute-group-details"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); + b.bp("/applications/{application}/attribute-group-details"); + b.p("application", () => input.application!, "{application}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -634,20 +439,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -657,26 +455,19 @@ export const se_PutConfigurationCommand = async ( input: PutConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration"; + b.bp("/configuration"); let body: any; body = JSON.stringify( take(input, { configuration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -686,29 +477,14 @@ export const se_SyncResourceCommand = async ( input: SyncResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sync/{resourceType}/{resource}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceType", - () => input.resourceType!, - "{resourceType}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "resource", () => input.resource!, "{resource}", false); + b.bp("/sync/{resourceType}/{resource}"); + b.p("resourceType", () => input.resourceType!, "{resourceType}", false); + b.p("resource", () => input.resource!, "{resource}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -718,27 +494,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -748,27 +517,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -778,13 +539,12 @@ export const se_UpdateApplicationCommand = async ( input: UpdateApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}"; - resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application!, "{application}", false); + b.bp("/applications/{application}"); + b.p("application", () => input.application!, "{application}", false); let body: any; body = JSON.stringify( take(input, { @@ -792,15 +552,8 @@ export const se_UpdateApplicationCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -810,20 +563,12 @@ export const se_UpdateAttributeGroupCommand = async ( input: UpdateAttributeGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "attributeGroup", - () => input.attributeGroup!, - "{attributeGroup}", - false - ); + b.bp("/attribute-groups/{attributeGroup}"); + b.p("attributeGroup", () => input.attributeGroup!, "{attributeGroup}", false); let body: any; body = JSON.stringify( take(input, { @@ -832,15 +577,8 @@ export const se_UpdateAttributeGroupCommand = async ( name: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2440,6 +2178,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rTS = "resourceTagStatus"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ses/src/protocols/Aws_query.ts b/clients/client-ses/src/protocols/Aws_query.ts index 4c286415fd7d..0e5d4b8783f1 100644 --- a/clients/client-ses/src/protocols/Aws_query.ts +++ b/clients/client-ses/src/protocols/Aws_query.ts @@ -465,8 +465,8 @@ export const se_CloneReceiptRuleSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CloneReceiptRuleSetRequest(input, context), - Action: "CloneReceiptRuleSet", - Version: "2010-12-01", + [_A]: _CRRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -482,8 +482,8 @@ export const se_CreateConfigurationSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateConfigurationSetRequest(input, context), - Action: "CreateConfigurationSet", - Version: "2010-12-01", + [_A]: _CCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -499,8 +499,8 @@ export const se_CreateConfigurationSetEventDestinationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateConfigurationSetEventDestinationRequest(input, context), - Action: "CreateConfigurationSetEventDestination", - Version: "2010-12-01", + [_A]: _CCSED, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -516,8 +516,8 @@ export const se_CreateConfigurationSetTrackingOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateConfigurationSetTrackingOptionsRequest(input, context), - Action: "CreateConfigurationSetTrackingOptions", - Version: "2010-12-01", + [_A]: _CCSTO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -533,8 +533,8 @@ export const se_CreateCustomVerificationEmailTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateCustomVerificationEmailTemplateRequest(input, context), - Action: "CreateCustomVerificationEmailTemplate", - Version: "2010-12-01", + [_A]: _CCVET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -550,8 +550,8 @@ export const se_CreateReceiptFilterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateReceiptFilterRequest(input, context), - Action: "CreateReceiptFilter", - Version: "2010-12-01", + [_A]: _CRF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -567,8 +567,8 @@ export const se_CreateReceiptRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateReceiptRuleRequest(input, context), - Action: "CreateReceiptRule", - Version: "2010-12-01", + [_A]: _CRR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -584,8 +584,8 @@ export const se_CreateReceiptRuleSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateReceiptRuleSetRequest(input, context), - Action: "CreateReceiptRuleSet", - Version: "2010-12-01", + [_A]: _CRRSr, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -601,8 +601,8 @@ export const se_CreateTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTemplateRequest(input, context), - Action: "CreateTemplate", - Version: "2010-12-01", + [_A]: _CT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -618,8 +618,8 @@ export const se_DeleteConfigurationSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteConfigurationSetRequest(input, context), - Action: "DeleteConfigurationSet", - Version: "2010-12-01", + [_A]: _DCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -635,8 +635,8 @@ export const se_DeleteConfigurationSetEventDestinationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteConfigurationSetEventDestinationRequest(input, context), - Action: "DeleteConfigurationSetEventDestination", - Version: "2010-12-01", + [_A]: _DCSED, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -652,8 +652,8 @@ export const se_DeleteConfigurationSetTrackingOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteConfigurationSetTrackingOptionsRequest(input, context), - Action: "DeleteConfigurationSetTrackingOptions", - Version: "2010-12-01", + [_A]: _DCSTO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -669,8 +669,8 @@ export const se_DeleteCustomVerificationEmailTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteCustomVerificationEmailTemplateRequest(input, context), - Action: "DeleteCustomVerificationEmailTemplate", - Version: "2010-12-01", + [_A]: _DCVET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -686,8 +686,8 @@ export const se_DeleteIdentityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIdentityRequest(input, context), - Action: "DeleteIdentity", - Version: "2010-12-01", + [_A]: _DI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -703,8 +703,8 @@ export const se_DeleteIdentityPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteIdentityPolicyRequest(input, context), - Action: "DeleteIdentityPolicy", - Version: "2010-12-01", + [_A]: _DIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -720,8 +720,8 @@ export const se_DeleteReceiptFilterCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteReceiptFilterRequest(input, context), - Action: "DeleteReceiptFilter", - Version: "2010-12-01", + [_A]: _DRF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -737,8 +737,8 @@ export const se_DeleteReceiptRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteReceiptRuleRequest(input, context), - Action: "DeleteReceiptRule", - Version: "2010-12-01", + [_A]: _DRR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -754,8 +754,8 @@ export const se_DeleteReceiptRuleSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteReceiptRuleSetRequest(input, context), - Action: "DeleteReceiptRuleSet", - Version: "2010-12-01", + [_A]: _DRRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -771,8 +771,8 @@ export const se_DeleteTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTemplateRequest(input, context), - Action: "DeleteTemplate", - Version: "2010-12-01", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -788,8 +788,8 @@ export const se_DeleteVerifiedEmailAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteVerifiedEmailAddressRequest(input, context), - Action: "DeleteVerifiedEmailAddress", - Version: "2010-12-01", + [_A]: _DVEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -805,8 +805,8 @@ export const se_DescribeActiveReceiptRuleSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeActiveReceiptRuleSetRequest(input, context), - Action: "DescribeActiveReceiptRuleSet", - Version: "2010-12-01", + [_A]: _DARRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -822,8 +822,8 @@ export const se_DescribeConfigurationSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeConfigurationSetRequest(input, context), - Action: "DescribeConfigurationSet", - Version: "2010-12-01", + [_A]: _DCSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -839,8 +839,8 @@ export const se_DescribeReceiptRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReceiptRuleRequest(input, context), - Action: "DescribeReceiptRule", - Version: "2010-12-01", + [_A]: _DRRe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -856,8 +856,8 @@ export const se_DescribeReceiptRuleSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DescribeReceiptRuleSetRequest(input, context), - Action: "DescribeReceiptRuleSet", - Version: "2010-12-01", + [_A]: _DRRSe, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -871,8 +871,8 @@ export const se_GetAccountSendingEnabledCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GetAccountSendingEnabled", - Version: "2010-12-01", + [_A]: _GASE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -888,8 +888,8 @@ export const se_GetCustomVerificationEmailTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetCustomVerificationEmailTemplateRequest(input, context), - Action: "GetCustomVerificationEmailTemplate", - Version: "2010-12-01", + [_A]: _GCVET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -905,8 +905,8 @@ export const se_GetIdentityDkimAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIdentityDkimAttributesRequest(input, context), - Action: "GetIdentityDkimAttributes", - Version: "2010-12-01", + [_A]: _GIDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -922,8 +922,8 @@ export const se_GetIdentityMailFromDomainAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIdentityMailFromDomainAttributesRequest(input, context), - Action: "GetIdentityMailFromDomainAttributes", - Version: "2010-12-01", + [_A]: _GIMFDA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -939,8 +939,8 @@ export const se_GetIdentityNotificationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIdentityNotificationAttributesRequest(input, context), - Action: "GetIdentityNotificationAttributes", - Version: "2010-12-01", + [_A]: _GINA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -956,8 +956,8 @@ export const se_GetIdentityPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIdentityPoliciesRequest(input, context), - Action: "GetIdentityPolicies", - Version: "2010-12-01", + [_A]: _GIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -973,8 +973,8 @@ export const se_GetIdentityVerificationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetIdentityVerificationAttributesRequest(input, context), - Action: "GetIdentityVerificationAttributes", - Version: "2010-12-01", + [_A]: _GIVA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -988,8 +988,8 @@ export const se_GetSendQuotaCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GetSendQuota", - Version: "2010-12-01", + [_A]: _GSQ, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1003,8 +1003,8 @@ export const se_GetSendStatisticsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GetSendStatistics", - Version: "2010-12-01", + [_A]: _GSS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1020,8 +1020,8 @@ export const se_GetTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTemplateRequest(input, context), - Action: "GetTemplate", - Version: "2010-12-01", + [_A]: _GT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1037,8 +1037,8 @@ export const se_ListConfigurationSetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListConfigurationSetsRequest(input, context), - Action: "ListConfigurationSets", - Version: "2010-12-01", + [_A]: _LCS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1054,8 +1054,8 @@ export const se_ListCustomVerificationEmailTemplatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListCustomVerificationEmailTemplatesRequest(input, context), - Action: "ListCustomVerificationEmailTemplates", - Version: "2010-12-01", + [_A]: _LCVET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1071,8 +1071,8 @@ export const se_ListIdentitiesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListIdentitiesRequest(input, context), - Action: "ListIdentities", - Version: "2010-12-01", + [_A]: _LI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1088,8 +1088,8 @@ export const se_ListIdentityPoliciesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListIdentityPoliciesRequest(input, context), - Action: "ListIdentityPolicies", - Version: "2010-12-01", + [_A]: _LIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1105,8 +1105,8 @@ export const se_ListReceiptFiltersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListReceiptFiltersRequest(input, context), - Action: "ListReceiptFilters", - Version: "2010-12-01", + [_A]: _LRF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1122,8 +1122,8 @@ export const se_ListReceiptRuleSetsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListReceiptRuleSetsRequest(input, context), - Action: "ListReceiptRuleSets", - Version: "2010-12-01", + [_A]: _LRRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1139,8 +1139,8 @@ export const se_ListTemplatesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTemplatesRequest(input, context), - Action: "ListTemplates", - Version: "2010-12-01", + [_A]: _LT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1154,8 +1154,8 @@ export const se_ListVerifiedEmailAddressesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "ListVerifiedEmailAddresses", - Version: "2010-12-01", + [_A]: _LVEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1171,8 +1171,8 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutConfigurationSetDeliveryOptionsRequest(input, context), - Action: "PutConfigurationSetDeliveryOptions", - Version: "2010-12-01", + [_A]: _PCSDO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1188,8 +1188,8 @@ export const se_PutIdentityPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutIdentityPolicyRequest(input, context), - Action: "PutIdentityPolicy", - Version: "2010-12-01", + [_A]: _PIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1205,8 +1205,8 @@ export const se_ReorderReceiptRuleSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ReorderReceiptRuleSetRequest(input, context), - Action: "ReorderReceiptRuleSet", - Version: "2010-12-01", + [_A]: _RRRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1222,8 +1222,8 @@ export const se_SendBounceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SendBounceRequest(input, context), - Action: "SendBounce", - Version: "2010-12-01", + [_A]: _SB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1239,8 +1239,8 @@ export const se_SendBulkTemplatedEmailCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SendBulkTemplatedEmailRequest(input, context), - Action: "SendBulkTemplatedEmail", - Version: "2010-12-01", + [_A]: _SBTE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1256,8 +1256,8 @@ export const se_SendCustomVerificationEmailCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SendCustomVerificationEmailRequest(input, context), - Action: "SendCustomVerificationEmail", - Version: "2010-12-01", + [_A]: _SCVE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1273,8 +1273,8 @@ export const se_SendEmailCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SendEmailRequest(input, context), - Action: "SendEmail", - Version: "2010-12-01", + [_A]: _SE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1290,8 +1290,8 @@ export const se_SendRawEmailCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SendRawEmailRequest(input, context), - Action: "SendRawEmail", - Version: "2010-12-01", + [_A]: _SRE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1307,8 +1307,8 @@ export const se_SendTemplatedEmailCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SendTemplatedEmailRequest(input, context), - Action: "SendTemplatedEmail", - Version: "2010-12-01", + [_A]: _STE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1324,8 +1324,8 @@ export const se_SetActiveReceiptRuleSetCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetActiveReceiptRuleSetRequest(input, context), - Action: "SetActiveReceiptRuleSet", - Version: "2010-12-01", + [_A]: _SARRS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1341,8 +1341,8 @@ export const se_SetIdentityDkimEnabledCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetIdentityDkimEnabledRequest(input, context), - Action: "SetIdentityDkimEnabled", - Version: "2010-12-01", + [_A]: _SIDE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1358,8 +1358,8 @@ export const se_SetIdentityFeedbackForwardingEnabledCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetIdentityFeedbackForwardingEnabledRequest(input, context), - Action: "SetIdentityFeedbackForwardingEnabled", - Version: "2010-12-01", + [_A]: _SIFFE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1375,8 +1375,8 @@ export const se_SetIdentityHeadersInNotificationsEnabledCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetIdentityHeadersInNotificationsEnabledRequest(input, context), - Action: "SetIdentityHeadersInNotificationsEnabled", - Version: "2010-12-01", + [_A]: _SIHINE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1392,8 +1392,8 @@ export const se_SetIdentityMailFromDomainCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetIdentityMailFromDomainRequest(input, context), - Action: "SetIdentityMailFromDomain", - Version: "2010-12-01", + [_A]: _SIMFD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1409,8 +1409,8 @@ export const se_SetIdentityNotificationTopicCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetIdentityNotificationTopicRequest(input, context), - Action: "SetIdentityNotificationTopic", - Version: "2010-12-01", + [_A]: _SINT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1426,8 +1426,8 @@ export const se_SetReceiptRulePositionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetReceiptRulePositionRequest(input, context), - Action: "SetReceiptRulePosition", - Version: "2010-12-01", + [_A]: _SRRP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1443,8 +1443,8 @@ export const se_TestRenderTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TestRenderTemplateRequest(input, context), - Action: "TestRenderTemplate", - Version: "2010-12-01", + [_A]: _TRT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1460,8 +1460,8 @@ export const se_UpdateAccountSendingEnabledCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateAccountSendingEnabledRequest(input, context), - Action: "UpdateAccountSendingEnabled", - Version: "2010-12-01", + [_A]: _UASE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1477,8 +1477,8 @@ export const se_UpdateConfigurationSetEventDestinationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateConfigurationSetEventDestinationRequest(input, context), - Action: "UpdateConfigurationSetEventDestination", - Version: "2010-12-01", + [_A]: _UCSED, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1494,8 +1494,8 @@ export const se_UpdateConfigurationSetReputationMetricsEnabledCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateConfigurationSetReputationMetricsEnabledRequest(input, context), - Action: "UpdateConfigurationSetReputationMetricsEnabled", - Version: "2010-12-01", + [_A]: _UCSRME, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1511,8 +1511,8 @@ export const se_UpdateConfigurationSetSendingEnabledCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateConfigurationSetSendingEnabledRequest(input, context), - Action: "UpdateConfigurationSetSendingEnabled", - Version: "2010-12-01", + [_A]: _UCSSE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1528,8 +1528,8 @@ export const se_UpdateConfigurationSetTrackingOptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateConfigurationSetTrackingOptionsRequest(input, context), - Action: "UpdateConfigurationSetTrackingOptions", - Version: "2010-12-01", + [_A]: _UCSTO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1545,8 +1545,8 @@ export const se_UpdateCustomVerificationEmailTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateCustomVerificationEmailTemplateRequest(input, context), - Action: "UpdateCustomVerificationEmailTemplate", - Version: "2010-12-01", + [_A]: _UCVET, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1562,8 +1562,8 @@ export const se_UpdateReceiptRuleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateReceiptRuleRequest(input, context), - Action: "UpdateReceiptRule", - Version: "2010-12-01", + [_A]: _URR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1579,8 +1579,8 @@ export const se_UpdateTemplateCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UpdateTemplateRequest(input, context), - Action: "UpdateTemplate", - Version: "2010-12-01", + [_A]: _UT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1596,8 +1596,8 @@ export const se_VerifyDomainDkimCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_VerifyDomainDkimRequest(input, context), - Action: "VerifyDomainDkim", - Version: "2010-12-01", + [_A]: _VDD, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1613,8 +1613,8 @@ export const se_VerifyDomainIdentityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_VerifyDomainIdentityRequest(input, context), - Action: "VerifyDomainIdentity", - Version: "2010-12-01", + [_A]: _VDI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1630,8 +1630,8 @@ export const se_VerifyEmailAddressCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_VerifyEmailAddressRequest(input, context), - Action: "VerifyEmailAddress", - Version: "2010-12-01", + [_A]: _VEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1647,8 +1647,8 @@ export const se_VerifyEmailIdentityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_VerifyEmailIdentityRequest(input, context), - Action: "VerifyEmailIdentity", - Version: "2010-12-01", + [_A]: _VEI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -5468,11 +5468,11 @@ const de_TrackingOptionsDoesNotExistExceptionRes = async ( */ const se_AddHeaderAction = (input: AddHeaderAction, context: __SerdeContext): any => { const entries: any = {}; - if (input.HeaderName != null) { - entries["HeaderName"] = input.HeaderName; + if (input[_HN] != null) { + entries[_HN] = input[_HN]; } - if (input.HeaderValue != null) { - entries["HeaderValue"] = input.HeaderValue; + if (input[_HV] != null) { + entries[_HV] = input[_HV]; } return entries; }; @@ -5498,15 +5498,15 @@ const se_AddressList = (input: string[], context: __SerdeContext): any => { */ const se_Body = (input: Body, context: __SerdeContext): any => { const entries: any = {}; - if (input.Text != null) { - const memberEntries = se_Content(input.Text, context); + if (input[_T] != null) { + const memberEntries = se_Content(input[_T], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Text.${key}`; entries[loc] = value; }); } - if (input.Html != null) { - const memberEntries = se_Content(input.Html, context); + if (input[_H] != null) { + const memberEntries = se_Content(input[_H], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Html.${key}`; entries[loc] = value; @@ -5520,20 +5520,20 @@ const se_Body = (input: Body, context: __SerdeContext): any => { */ const se_BounceAction = (input: BounceAction, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.SmtpReplyCode != null) { - entries["SmtpReplyCode"] = input.SmtpReplyCode; + if (input[_SRC] != null) { + entries[_SRC] = input[_SRC]; } - if (input.StatusCode != null) { - entries["StatusCode"] = input.StatusCode; + if (input[_SC] != null) { + entries[_SC] = input[_SC]; } - if (input.Message != null) { - entries["Message"] = input.Message; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Sender != null) { - entries["Sender"] = input.Sender; + if (input[_S] != null) { + entries[_S] = input[_S]; } return entries; }; @@ -5543,17 +5543,17 @@ const se_BounceAction = (input: BounceAction, context: __SerdeContext): any => { */ const se_BouncedRecipientInfo = (input: BouncedRecipientInfo, context: __SerdeContext): any => { const entries: any = {}; - if (input.Recipient != null) { - entries["Recipient"] = input.Recipient; + if (input[_R] != null) { + entries[_R] = input[_R]; } - if (input.RecipientArn != null) { - entries["RecipientArn"] = input.RecipientArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.BounceType != null) { - entries["BounceType"] = input.BounceType; + if (input[_BT] != null) { + entries[_BT] = input[_BT]; } - if (input.RecipientDsnFields != null) { - const memberEntries = se_RecipientDsnFields(input.RecipientDsnFields, context); + if (input[_RDF] != null) { + const memberEntries = se_RecipientDsnFields(input[_RDF], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RecipientDsnFields.${key}`; entries[loc] = value; @@ -5586,16 +5586,16 @@ const se_BouncedRecipientInfoList = (input: BouncedRecipientInfo[], context: __S */ const se_BulkEmailDestination = (input: BulkEmailDestination, context: __SerdeContext): any => { const entries: any = {}; - if (input.Destination != null) { - const memberEntries = se_Destination(input.Destination, context); + if (input[_D] != null) { + const memberEntries = se_Destination(input[_D], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Destination.${key}`; entries[loc] = value; }); } - if (input.ReplacementTags != null) { - const memberEntries = se_MessageTagList(input.ReplacementTags, context); - if (input.ReplacementTags?.length === 0) { + if (input[_RT] != null) { + const memberEntries = se_MessageTagList(input[_RT], context); + if (input[_RT]?.length === 0) { entries.ReplacementTags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5603,8 +5603,8 @@ const se_BulkEmailDestination = (input: BulkEmailDestination, context: __SerdeCo entries[loc] = value; }); } - if (input.ReplacementTemplateData != null) { - entries["ReplacementTemplateData"] = input.ReplacementTemplateData; + if (input[_RTD] != null) { + entries[_RTD] = input[_RTD]; } return entries; }; @@ -5633,11 +5633,11 @@ const se_BulkEmailDestinationList = (input: BulkEmailDestination[], context: __S */ const se_CloneReceiptRuleSetRequest = (input: CloneReceiptRuleSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.OriginalRuleSetName != null) { - entries["OriginalRuleSetName"] = input.OriginalRuleSetName; + if (input[_ORSN] != null) { + entries[_ORSN] = input[_ORSN]; } return entries; }; @@ -5647,9 +5647,9 @@ const se_CloneReceiptRuleSetRequest = (input: CloneReceiptRuleSetRequest, contex */ const se_CloudWatchDestination = (input: CloudWatchDestination, context: __SerdeContext): any => { const entries: any = {}; - if (input.DimensionConfigurations != null) { - const memberEntries = se_CloudWatchDimensionConfigurations(input.DimensionConfigurations, context); - if (input.DimensionConfigurations?.length === 0) { + if (input[_DC] != null) { + const memberEntries = se_CloudWatchDimensionConfigurations(input[_DC], context); + if (input[_DC]?.length === 0) { entries.DimensionConfigurations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -5665,14 +5665,14 @@ const se_CloudWatchDestination = (input: CloudWatchDestination, context: __Serde */ const se_CloudWatchDimensionConfiguration = (input: CloudWatchDimensionConfiguration, context: __SerdeContext): any => { const entries: any = {}; - if (input.DimensionName != null) { - entries["DimensionName"] = input.DimensionName; + if (input[_DN] != null) { + entries[_DN] = input[_DN]; } - if (input.DimensionValueSource != null) { - entries["DimensionValueSource"] = input.DimensionValueSource; + if (input[_DVS] != null) { + entries[_DVS] = input[_DVS]; } - if (input.DefaultDimensionValue != null) { - entries["DefaultDimensionValue"] = input.DefaultDimensionValue; + if (input[_DDV] != null) { + entries[_DDV] = input[_DDV]; } return entries; }; @@ -5704,8 +5704,8 @@ const se_CloudWatchDimensionConfigurations = ( */ const se_ConfigurationSet = (input: ConfigurationSet, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } return entries; }; @@ -5731,11 +5731,11 @@ const se_ConfigurationSetAttributeList = (input: ConfigurationSetAttribute[], co */ const se_Content = (input: Content, context: __SerdeContext): any => { const entries: any = {}; - if (input.Data != null) { - entries["Data"] = input.Data; + if (input[_Da] != null) { + entries[_Da] = input[_Da]; } - if (input.Charset != null) { - entries["Charset"] = input.Charset; + if (input[_C] != null) { + entries[_C] = input[_C]; } return entries; }; @@ -5748,11 +5748,11 @@ const se_CreateConfigurationSetEventDestinationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.EventDestination != null) { - const memberEntries = se_EventDestination(input.EventDestination, context); + if (input[_ED] != null) { + const memberEntries = se_EventDestination(input[_ED], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EventDestination.${key}`; entries[loc] = value; @@ -5766,8 +5766,8 @@ const se_CreateConfigurationSetEventDestinationRequest = ( */ const se_CreateConfigurationSetRequest = (input: CreateConfigurationSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ConfigurationSet != null) { - const memberEntries = se_ConfigurationSet(input.ConfigurationSet, context); + if (input[_CS] != null) { + const memberEntries = se_ConfigurationSet(input[_CS], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ConfigurationSet.${key}`; entries[loc] = value; @@ -5784,11 +5784,11 @@ const se_CreateConfigurationSetTrackingOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.TrackingOptions != null) { - const memberEntries = se_TrackingOptions(input.TrackingOptions, context); + if (input[_TO] != null) { + const memberEntries = se_TrackingOptions(input[_TO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TrackingOptions.${key}`; entries[loc] = value; @@ -5805,23 +5805,23 @@ const se_CreateCustomVerificationEmailTemplateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.FromEmailAddress != null) { - entries["FromEmailAddress"] = input.FromEmailAddress; + if (input[_FEA] != null) { + entries[_FEA] = input[_FEA]; } - if (input.TemplateSubject != null) { - entries["TemplateSubject"] = input.TemplateSubject; + if (input[_TS] != null) { + entries[_TS] = input[_TS]; } - if (input.TemplateContent != null) { - entries["TemplateContent"] = input.TemplateContent; + if (input[_TC] != null) { + entries[_TC] = input[_TC]; } - if (input.SuccessRedirectionURL != null) { - entries["SuccessRedirectionURL"] = input.SuccessRedirectionURL; + if (input[_SRURL] != null) { + entries[_SRURL] = input[_SRURL]; } - if (input.FailureRedirectionURL != null) { - entries["FailureRedirectionURL"] = input.FailureRedirectionURL; + if (input[_FRURL] != null) { + entries[_FRURL] = input[_FRURL]; } return entries; }; @@ -5831,8 +5831,8 @@ const se_CreateCustomVerificationEmailTemplateRequest = ( */ const se_CreateReceiptFilterRequest = (input: CreateReceiptFilterRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Filter != null) { - const memberEntries = se_ReceiptFilter(input.Filter, context); + if (input[_F] != null) { + const memberEntries = se_ReceiptFilter(input[_F], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Filter.${key}`; entries[loc] = value; @@ -5846,14 +5846,14 @@ const se_CreateReceiptFilterRequest = (input: CreateReceiptFilterRequest, contex */ const se_CreateReceiptRuleRequest = (input: CreateReceiptRuleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.After != null) { - entries["After"] = input.After; + if (input[_Af] != null) { + entries[_Af] = input[_Af]; } - if (input.Rule != null) { - const memberEntries = se_ReceiptRule(input.Rule, context); + if (input[_Ru] != null) { + const memberEntries = se_ReceiptRule(input[_Ru], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Rule.${key}`; entries[loc] = value; @@ -5867,8 +5867,8 @@ const se_CreateReceiptRuleRequest = (input: CreateReceiptRuleRequest, context: _ */ const se_CreateReceiptRuleSetRequest = (input: CreateReceiptRuleSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } return entries; }; @@ -5878,8 +5878,8 @@ const se_CreateReceiptRuleSetRequest = (input: CreateReceiptRuleSetRequest, cont */ const se_CreateTemplateRequest = (input: CreateTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Template != null) { - const memberEntries = se_Template(input.Template, context); + if (input[_Te] != null) { + const memberEntries = se_Template(input[_Te], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Template.${key}`; entries[loc] = value; @@ -5896,11 +5896,11 @@ const se_DeleteConfigurationSetEventDestinationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.EventDestinationName != null) { - entries["EventDestinationName"] = input.EventDestinationName; + if (input[_EDN] != null) { + entries[_EDN] = input[_EDN]; } return entries; }; @@ -5910,8 +5910,8 @@ const se_DeleteConfigurationSetEventDestinationRequest = ( */ const se_DeleteConfigurationSetRequest = (input: DeleteConfigurationSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } return entries; }; @@ -5924,8 +5924,8 @@ const se_DeleteConfigurationSetTrackingOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } return entries; }; @@ -5938,8 +5938,8 @@ const se_DeleteCustomVerificationEmailTemplateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } return entries; }; @@ -5949,11 +5949,11 @@ const se_DeleteCustomVerificationEmailTemplateRequest = ( */ const se_DeleteIdentityPolicyRequest = (input: DeleteIdentityPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -5963,8 +5963,8 @@ const se_DeleteIdentityPolicyRequest = (input: DeleteIdentityPolicyRequest, cont */ const se_DeleteIdentityRequest = (input: DeleteIdentityRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } return entries; }; @@ -5974,8 +5974,8 @@ const se_DeleteIdentityRequest = (input: DeleteIdentityRequest, context: __Serde */ const se_DeleteReceiptFilterRequest = (input: DeleteReceiptFilterRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.FilterName != null) { - entries["FilterName"] = input.FilterName; + if (input[_FN] != null) { + entries[_FN] = input[_FN]; } return entries; }; @@ -5985,11 +5985,11 @@ const se_DeleteReceiptFilterRequest = (input: DeleteReceiptFilterRequest, contex */ const se_DeleteReceiptRuleRequest = (input: DeleteReceiptRuleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.RuleName != null) { - entries["RuleName"] = input.RuleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -5999,8 +5999,8 @@ const se_DeleteReceiptRuleRequest = (input: DeleteReceiptRuleRequest, context: _ */ const se_DeleteReceiptRuleSetRequest = (input: DeleteReceiptRuleSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } return entries; }; @@ -6010,8 +6010,8 @@ const se_DeleteReceiptRuleSetRequest = (input: DeleteReceiptRuleSetRequest, cont */ const se_DeleteTemplateRequest = (input: DeleteTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } return entries; }; @@ -6024,8 +6024,8 @@ const se_DeleteVerifiedEmailAddressRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EmailAddress != null) { - entries["EmailAddress"] = input.EmailAddress; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } return entries; }; @@ -6035,8 +6035,8 @@ const se_DeleteVerifiedEmailAddressRequest = ( */ const se_DeliveryOptions = (input: DeliveryOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.TlsPolicy != null) { - entries["TlsPolicy"] = input.TlsPolicy; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } return entries; }; @@ -6057,12 +6057,12 @@ const se_DescribeActiveReceiptRuleSetRequest = ( */ const se_DescribeConfigurationSetRequest = (input: DescribeConfigurationSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.ConfigurationSetAttributeNames != null) { - const memberEntries = se_ConfigurationSetAttributeList(input.ConfigurationSetAttributeNames, context); - if (input.ConfigurationSetAttributeNames?.length === 0) { + if (input[_CSAN] != null) { + const memberEntries = se_ConfigurationSetAttributeList(input[_CSAN], context); + if (input[_CSAN]?.length === 0) { entries.ConfigurationSetAttributeNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6078,11 +6078,11 @@ const se_DescribeConfigurationSetRequest = (input: DescribeConfigurationSetReque */ const se_DescribeReceiptRuleRequest = (input: DescribeReceiptRuleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.RuleName != null) { - entries["RuleName"] = input.RuleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } return entries; }; @@ -6092,8 +6092,8 @@ const se_DescribeReceiptRuleRequest = (input: DescribeReceiptRuleRequest, contex */ const se_DescribeReceiptRuleSetRequest = (input: DescribeReceiptRuleSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } return entries; }; @@ -6103,9 +6103,9 @@ const se_DescribeReceiptRuleSetRequest = (input: DescribeReceiptRuleSetRequest, */ const se_Destination = (input: Destination, context: __SerdeContext): any => { const entries: any = {}; - if (input.ToAddresses != null) { - const memberEntries = se_AddressList(input.ToAddresses, context); - if (input.ToAddresses?.length === 0) { + if (input[_TAo] != null) { + const memberEntries = se_AddressList(input[_TAo], context); + if (input[_TAo]?.length === 0) { entries.ToAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6113,9 +6113,9 @@ const se_Destination = (input: Destination, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.CcAddresses != null) { - const memberEntries = se_AddressList(input.CcAddresses, context); - if (input.CcAddresses?.length === 0) { + if (input[_CA] != null) { + const memberEntries = se_AddressList(input[_CA], context); + if (input[_CA]?.length === 0) { entries.CcAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6123,9 +6123,9 @@ const se_Destination = (input: Destination, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.BccAddresses != null) { - const memberEntries = se_AddressList(input.BccAddresses, context); - if (input.BccAddresses?.length === 0) { + if (input[_BA] != null) { + const memberEntries = se_AddressList(input[_BA], context); + if (input[_BA]?.length === 0) { entries.BccAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6141,15 +6141,15 @@ const se_Destination = (input: Destination, context: __SerdeContext): any => { */ const se_EventDestination = (input: EventDestination, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.MatchingEventTypes != null) { - const memberEntries = se_EventTypes(input.MatchingEventTypes, context); - if (input.MatchingEventTypes?.length === 0) { + if (input[_MET] != null) { + const memberEntries = se_EventTypes(input[_MET], context); + if (input[_MET]?.length === 0) { entries.MatchingEventTypes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6157,22 +6157,22 @@ const se_EventDestination = (input: EventDestination, context: __SerdeContext): entries[loc] = value; }); } - if (input.KinesisFirehoseDestination != null) { - const memberEntries = se_KinesisFirehoseDestination(input.KinesisFirehoseDestination, context); + if (input[_KFD] != null) { + const memberEntries = se_KinesisFirehoseDestination(input[_KFD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `KinesisFirehoseDestination.${key}`; entries[loc] = value; }); } - if (input.CloudWatchDestination != null) { - const memberEntries = se_CloudWatchDestination(input.CloudWatchDestination, context); + if (input[_CWD] != null) { + const memberEntries = se_CloudWatchDestination(input[_CWD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `CloudWatchDestination.${key}`; entries[loc] = value; }); } - if (input.SNSDestination != null) { - const memberEntries = se_SNSDestination(input.SNSDestination, context); + if (input[_SNSD] != null) { + const memberEntries = se_SNSDestination(input[_SNSD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SNSDestination.${key}`; entries[loc] = value; @@ -6202,11 +6202,11 @@ const se_EventTypes = (input: EventType[], context: __SerdeContext): any => { */ const se_ExtensionField = (input: ExtensionField, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -6238,8 +6238,8 @@ const se_GetCustomVerificationEmailTemplateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } return entries; }; @@ -6249,9 +6249,9 @@ const se_GetCustomVerificationEmailTemplateRequest = ( */ const se_GetIdentityDkimAttributesRequest = (input: GetIdentityDkimAttributesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identities != null) { - const memberEntries = se_IdentityList(input.Identities, context); - if (input.Identities?.length === 0) { + if (input[_Id] != null) { + const memberEntries = se_IdentityList(input[_Id], context); + if (input[_Id]?.length === 0) { entries.Identities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6270,9 +6270,9 @@ const se_GetIdentityMailFromDomainAttributesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Identities != null) { - const memberEntries = se_IdentityList(input.Identities, context); - if (input.Identities?.length === 0) { + if (input[_Id] != null) { + const memberEntries = se_IdentityList(input[_Id], context); + if (input[_Id]?.length === 0) { entries.Identities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6291,9 +6291,9 @@ const se_GetIdentityNotificationAttributesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Identities != null) { - const memberEntries = se_IdentityList(input.Identities, context); - if (input.Identities?.length === 0) { + if (input[_Id] != null) { + const memberEntries = se_IdentityList(input[_Id], context); + if (input[_Id]?.length === 0) { entries.Identities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6309,12 +6309,12 @@ const se_GetIdentityNotificationAttributesRequest = ( */ const se_GetIdentityPoliciesRequest = (input: GetIdentityPoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.PolicyNames != null) { - const memberEntries = se_PolicyNameList(input.PolicyNames, context); - if (input.PolicyNames?.length === 0) { + if (input[_PNo] != null) { + const memberEntries = se_PolicyNameList(input[_PNo], context); + if (input[_PNo]?.length === 0) { entries.PolicyNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6333,9 +6333,9 @@ const se_GetIdentityVerificationAttributesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Identities != null) { - const memberEntries = se_IdentityList(input.Identities, context); - if (input.Identities?.length === 0) { + if (input[_Id] != null) { + const memberEntries = se_IdentityList(input[_Id], context); + if (input[_Id]?.length === 0) { entries.Identities = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6351,8 +6351,8 @@ const se_GetIdentityVerificationAttributesRequest = ( */ const se_GetTemplateRequest = (input: GetTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } return entries; }; @@ -6378,11 +6378,11 @@ const se_IdentityList = (input: string[], context: __SerdeContext): any => { */ const se_KinesisFirehoseDestination = (input: KinesisFirehoseDestination, context: __SerdeContext): any => { const entries: any = {}; - if (input.IAMRoleARN != null) { - entries["IAMRoleARN"] = input.IAMRoleARN; + if (input[_IAMRARN] != null) { + entries[_IAMRARN] = input[_IAMRARN]; } - if (input.DeliveryStreamARN != null) { - entries["DeliveryStreamARN"] = input.DeliveryStreamARN; + if (input[_DSARN] != null) { + entries[_DSARN] = input[_DSARN]; } return entries; }; @@ -6392,14 +6392,14 @@ const se_KinesisFirehoseDestination = (input: KinesisFirehoseDestination, contex */ const se_LambdaAction = (input: LambdaAction, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.FunctionArn != null) { - entries["FunctionArn"] = input.FunctionArn; + if (input[_FA] != null) { + entries[_FA] = input[_FA]; } - if (input.InvocationType != null) { - entries["InvocationType"] = input.InvocationType; + if (input[_IT] != null) { + entries[_IT] = input[_IT]; } return entries; }; @@ -6409,11 +6409,11 @@ const se_LambdaAction = (input: LambdaAction, context: __SerdeContext): any => { */ const se_ListConfigurationSetsRequest = (input: ListConfigurationSetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -6426,11 +6426,11 @@ const se_ListCustomVerificationEmailTemplatesRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -6440,14 +6440,14 @@ const se_ListCustomVerificationEmailTemplatesRequest = ( */ const se_ListIdentitiesRequest = (input: ListIdentitiesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.IdentityType != null) { - entries["IdentityType"] = input.IdentityType; + if (input[_ITd] != null) { + entries[_ITd] = input[_ITd]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -6457,8 +6457,8 @@ const se_ListIdentitiesRequest = (input: ListIdentitiesRequest, context: __Serde */ const se_ListIdentityPoliciesRequest = (input: ListIdentityPoliciesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } return entries; }; @@ -6476,8 +6476,8 @@ const se_ListReceiptFiltersRequest = (input: ListReceiptFiltersRequest, context: */ const se_ListReceiptRuleSetsRequest = (input: ListReceiptRuleSetsRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -6487,11 +6487,11 @@ const se_ListReceiptRuleSetsRequest = (input: ListReceiptRuleSetsRequest, contex */ const se_ListTemplatesRequest = (input: ListTemplatesRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxItems != null) { - entries["MaxItems"] = input.MaxItems; + if (input[_MI] != null) { + entries[_MI] = input[_MI]; } return entries; }; @@ -6501,15 +6501,15 @@ const se_ListTemplatesRequest = (input: ListTemplatesRequest, context: __SerdeCo */ const se_Message = (input: Message, context: __SerdeContext): any => { const entries: any = {}; - if (input.Subject != null) { - const memberEntries = se_Content(input.Subject, context); + if (input[_Su] != null) { + const memberEntries = se_Content(input[_Su], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Subject.${key}`; entries[loc] = value; }); } - if (input.Body != null) { - const memberEntries = se_Body(input.Body, context); + if (input[_B] != null) { + const memberEntries = se_Body(input[_B], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Body.${key}`; entries[loc] = value; @@ -6523,15 +6523,15 @@ const se_Message = (input: Message, context: __SerdeContext): any => { */ const se_MessageDsn = (input: MessageDsn, context: __SerdeContext): any => { const entries: any = {}; - if (input.ReportingMta != null) { - entries["ReportingMta"] = input.ReportingMta; + if (input[_RM] != null) { + entries[_RM] = input[_RM]; } - if (input.ArrivalDate != null) { - entries["ArrivalDate"] = input.ArrivalDate.toISOString().split(".")[0] + "Z"; + if (input[_AD] != null) { + entries[_AD] = input[_AD].toISOString().split(".")[0] + "Z"; } - if (input.ExtensionFields != null) { - const memberEntries = se_ExtensionFieldList(input.ExtensionFields, context); - if (input.ExtensionFields?.length === 0) { + if (input[_EF] != null) { + const memberEntries = se_ExtensionFieldList(input[_EF], context); + if (input[_EF]?.length === 0) { entries.ExtensionFields = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6547,11 +6547,11 @@ const se_MessageDsn = (input: MessageDsn, context: __SerdeContext): any => { */ const se_MessageTag = (input: MessageTag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -6599,11 +6599,11 @@ const se_PutConfigurationSetDeliveryOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.DeliveryOptions != null) { - const memberEntries = se_DeliveryOptions(input.DeliveryOptions, context); + if (input[_DO] != null) { + const memberEntries = se_DeliveryOptions(input[_DO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `DeliveryOptions.${key}`; entries[loc] = value; @@ -6617,14 +6617,14 @@ const se_PutConfigurationSetDeliveryOptionsRequest = ( */ const se_PutIdentityPolicyRequest = (input: PutIdentityPolicyRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.PolicyName != null) { - entries["PolicyName"] = input.PolicyName; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input[_P] != null) { + entries[_P] = input[_P]; } return entries; }; @@ -6634,8 +6634,8 @@ const se_PutIdentityPolicyRequest = (input: PutIdentityPolicyRequest, context: _ */ const se_RawMessage = (input: RawMessage, context: __SerdeContext): any => { const entries: any = {}; - if (input.Data != null) { - entries["Data"] = context.base64Encoder(input.Data); + if (input[_Da] != null) { + entries[_Da] = context.base64Encoder(input[_Da]); } return entries; }; @@ -6645,50 +6645,50 @@ const se_RawMessage = (input: RawMessage, context: __SerdeContext): any => { */ const se_ReceiptAction = (input: ReceiptAction, context: __SerdeContext): any => { const entries: any = {}; - if (input.S3Action != null) { - const memberEntries = se_S3Action(input.S3Action, context); + if (input[_SA] != null) { + const memberEntries = se_S3Action(input[_SA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `S3Action.${key}`; entries[loc] = value; }); } - if (input.BounceAction != null) { - const memberEntries = se_BounceAction(input.BounceAction, context); + if (input[_BAo] != null) { + const memberEntries = se_BounceAction(input[_BAo], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `BounceAction.${key}`; entries[loc] = value; }); } - if (input.WorkmailAction != null) { - const memberEntries = se_WorkmailAction(input.WorkmailAction, context); + if (input[_WA] != null) { + const memberEntries = se_WorkmailAction(input[_WA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `WorkmailAction.${key}`; entries[loc] = value; }); } - if (input.LambdaAction != null) { - const memberEntries = se_LambdaAction(input.LambdaAction, context); + if (input[_LA] != null) { + const memberEntries = se_LambdaAction(input[_LA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `LambdaAction.${key}`; entries[loc] = value; }); } - if (input.StopAction != null) { - const memberEntries = se_StopAction(input.StopAction, context); + if (input[_SAt] != null) { + const memberEntries = se_StopAction(input[_SAt], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `StopAction.${key}`; entries[loc] = value; }); } - if (input.AddHeaderAction != null) { - const memberEntries = se_AddHeaderAction(input.AddHeaderAction, context); + if (input[_AHA] != null) { + const memberEntries = se_AddHeaderAction(input[_AHA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `AddHeaderAction.${key}`; entries[loc] = value; }); } - if (input.SNSAction != null) { - const memberEntries = se_SNSAction(input.SNSAction, context); + if (input[_SNSA] != null) { + const memberEntries = se_SNSAction(input[_SNSA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `SNSAction.${key}`; entries[loc] = value; @@ -6721,11 +6721,11 @@ const se_ReceiptActionsList = (input: ReceiptAction[], context: __SerdeContext): */ const se_ReceiptFilter = (input: ReceiptFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.IpFilter != null) { - const memberEntries = se_ReceiptIpFilter(input.IpFilter, context); + if (input[_IF] != null) { + const memberEntries = se_ReceiptIpFilter(input[_IF], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `IpFilter.${key}`; entries[loc] = value; @@ -6739,11 +6739,11 @@ const se_ReceiptFilter = (input: ReceiptFilter, context: __SerdeContext): any => */ const se_ReceiptIpFilter = (input: ReceiptIpFilter, context: __SerdeContext): any => { const entries: any = {}; - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.Cidr != null) { - entries["Cidr"] = input.Cidr; + if (input[_Ci] != null) { + entries[_Ci] = input[_Ci]; } return entries; }; @@ -6753,18 +6753,18 @@ const se_ReceiptIpFilter = (input: ReceiptIpFilter, context: __SerdeContext): an */ const se_ReceiptRule = (input: ReceiptRule, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.TlsPolicy != null) { - entries["TlsPolicy"] = input.TlsPolicy; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; } - if (input.Recipients != null) { - const memberEntries = se_RecipientsList(input.Recipients, context); - if (input.Recipients?.length === 0) { + if (input[_Re] != null) { + const memberEntries = se_RecipientsList(input[_Re], context); + if (input[_Re]?.length === 0) { entries.Recipients = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6772,9 +6772,9 @@ const se_ReceiptRule = (input: ReceiptRule, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.Actions != null) { - const memberEntries = se_ReceiptActionsList(input.Actions, context); - if (input.Actions?.length === 0) { + if (input[_Ac] != null) { + const memberEntries = se_ReceiptActionsList(input[_Ac], context); + if (input[_Ac]?.length === 0) { entries.Actions = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6782,8 +6782,8 @@ const se_ReceiptRule = (input: ReceiptRule, context: __SerdeContext): any => { entries[loc] = value; }); } - if (input.ScanEnabled != null) { - entries["ScanEnabled"] = input.ScanEnabled; + if (input[_SEc] != null) { + entries[_SEc] = input[_SEc]; } return entries; }; @@ -6809,27 +6809,27 @@ const se_ReceiptRuleNamesList = (input: string[], context: __SerdeContext): any */ const se_RecipientDsnFields = (input: RecipientDsnFields, context: __SerdeContext): any => { const entries: any = {}; - if (input.FinalRecipient != null) { - entries["FinalRecipient"] = input.FinalRecipient; + if (input[_FR] != null) { + entries[_FR] = input[_FR]; } - if (input.Action != null) { - entries["Action"] = input.Action; + if (input[_A] != null) { + entries[_A] = input[_A]; } - if (input.RemoteMta != null) { - entries["RemoteMta"] = input.RemoteMta; + if (input[_RMe] != null) { + entries[_RMe] = input[_RMe]; } - if (input.Status != null) { - entries["Status"] = input.Status; + if (input[_St] != null) { + entries[_St] = input[_St]; } - if (input.DiagnosticCode != null) { - entries["DiagnosticCode"] = input.DiagnosticCode; + if (input[_DCi] != null) { + entries[_DCi] = input[_DCi]; } - if (input.LastAttemptDate != null) { - entries["LastAttemptDate"] = input.LastAttemptDate.toISOString().split(".")[0] + "Z"; + if (input[_LAD] != null) { + entries[_LAD] = input[_LAD].toISOString().split(".")[0] + "Z"; } - if (input.ExtensionFields != null) { - const memberEntries = se_ExtensionFieldList(input.ExtensionFields, context); - if (input.ExtensionFields?.length === 0) { + if (input[_EF] != null) { + const memberEntries = se_ExtensionFieldList(input[_EF], context); + if (input[_EF]?.length === 0) { entries.ExtensionFields = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6861,12 +6861,12 @@ const se_RecipientsList = (input: string[], context: __SerdeContext): any => { */ const se_ReorderReceiptRuleSetRequest = (input: ReorderReceiptRuleSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.RuleNames != null) { - const memberEntries = se_ReceiptRuleNamesList(input.RuleNames, context); - if (input.RuleNames?.length === 0) { + if (input[_RNu] != null) { + const memberEntries = se_ReceiptRuleNamesList(input[_RNu], context); + if (input[_RNu]?.length === 0) { entries.RuleNames = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6882,17 +6882,17 @@ const se_ReorderReceiptRuleSetRequest = (input: ReorderReceiptRuleSetRequest, co */ const se_S3Action = (input: S3Action, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.BucketName != null) { - entries["BucketName"] = input.BucketName; + if (input[_BN] != null) { + entries[_BN] = input[_BN]; } - if (input.ObjectKeyPrefix != null) { - entries["ObjectKeyPrefix"] = input.ObjectKeyPrefix; + if (input[_OKP] != null) { + entries[_OKP] = input[_OKP]; } - if (input.KmsKeyArn != null) { - entries["KmsKeyArn"] = input.KmsKeyArn; + if (input[_KKA] != null) { + entries[_KKA] = input[_KKA]; } return entries; }; @@ -6902,25 +6902,25 @@ const se_S3Action = (input: S3Action, context: __SerdeContext): any => { */ const se_SendBounceRequest = (input: SendBounceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.OriginalMessageId != null) { - entries["OriginalMessageId"] = input.OriginalMessageId; + if (input[_OMI] != null) { + entries[_OMI] = input[_OMI]; } - if (input.BounceSender != null) { - entries["BounceSender"] = input.BounceSender; + if (input[_BS] != null) { + entries[_BS] = input[_BS]; } - if (input.Explanation != null) { - entries["Explanation"] = input.Explanation; + if (input[_Ex] != null) { + entries[_Ex] = input[_Ex]; } - if (input.MessageDsn != null) { - const memberEntries = se_MessageDsn(input.MessageDsn, context); + if (input[_MD] != null) { + const memberEntries = se_MessageDsn(input[_MD], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MessageDsn.${key}`; entries[loc] = value; }); } - if (input.BouncedRecipientInfoList != null) { - const memberEntries = se_BouncedRecipientInfoList(input.BouncedRecipientInfoList, context); - if (input.BouncedRecipientInfoList?.length === 0) { + if (input[_BRIL] != null) { + const memberEntries = se_BouncedRecipientInfoList(input[_BRIL], context); + if (input[_BRIL]?.length === 0) { entries.BouncedRecipientInfoList = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6928,8 +6928,8 @@ const se_SendBounceRequest = (input: SendBounceRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.BounceSenderArn != null) { - entries["BounceSenderArn"] = input.BounceSenderArn; + if (input[_BSA] != null) { + entries[_BSA] = input[_BSA]; } return entries; }; @@ -6939,15 +6939,15 @@ const se_SendBounceRequest = (input: SendBounceRequest, context: __SerdeContext) */ const se_SendBulkTemplatedEmailRequest = (input: SendBulkTemplatedEmailRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_So] != null) { + entries[_So] = input[_So]; } - if (input.SourceArn != null) { - entries["SourceArn"] = input.SourceArn; + if (input[_SAo] != null) { + entries[_SAo] = input[_SAo]; } - if (input.ReplyToAddresses != null) { - const memberEntries = se_AddressList(input.ReplyToAddresses, context); - if (input.ReplyToAddresses?.length === 0) { + if (input[_RTA] != null) { + const memberEntries = se_AddressList(input[_RTA], context); + if (input[_RTA]?.length === 0) { entries.ReplyToAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6955,18 +6955,18 @@ const se_SendBulkTemplatedEmailRequest = (input: SendBulkTemplatedEmailRequest, entries[loc] = value; }); } - if (input.ReturnPath != null) { - entries["ReturnPath"] = input.ReturnPath; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.ReturnPathArn != null) { - entries["ReturnPathArn"] = input.ReturnPathArn; + if (input[_RPA] != null) { + entries[_RPA] = input[_RPA]; } - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.DefaultTags != null) { - const memberEntries = se_MessageTagList(input.DefaultTags, context); - if (input.DefaultTags?.length === 0) { + if (input[_DTe] != null) { + const memberEntries = se_MessageTagList(input[_DTe], context); + if (input[_DTe]?.length === 0) { entries.DefaultTags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -6974,18 +6974,18 @@ const se_SendBulkTemplatedEmailRequest = (input: SendBulkTemplatedEmailRequest, entries[loc] = value; }); } - if (input.Template != null) { - entries["Template"] = input.Template; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } - if (input.TemplateArn != null) { - entries["TemplateArn"] = input.TemplateArn; + if (input[_TAe] != null) { + entries[_TAe] = input[_TAe]; } - if (input.DefaultTemplateData != null) { - entries["DefaultTemplateData"] = input.DefaultTemplateData; + if (input[_DTD] != null) { + entries[_DTD] = input[_DTD]; } - if (input.Destinations != null) { - const memberEntries = se_BulkEmailDestinationList(input.Destinations, context); - if (input.Destinations?.length === 0) { + if (input[_De] != null) { + const memberEntries = se_BulkEmailDestinationList(input[_De], context); + if (input[_De]?.length === 0) { entries.Destinations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7004,14 +7004,14 @@ const se_SendCustomVerificationEmailRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EmailAddress != null) { - entries["EmailAddress"] = input.EmailAddress; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } return entries; }; @@ -7021,26 +7021,26 @@ const se_SendCustomVerificationEmailRequest = ( */ const se_SendEmailRequest = (input: SendEmailRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_So] != null) { + entries[_So] = input[_So]; } - if (input.Destination != null) { - const memberEntries = se_Destination(input.Destination, context); + if (input[_D] != null) { + const memberEntries = se_Destination(input[_D], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Destination.${key}`; entries[loc] = value; }); } - if (input.Message != null) { - const memberEntries = se_Message(input.Message, context); + if (input[_M] != null) { + const memberEntries = se_Message(input[_M], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Message.${key}`; entries[loc] = value; }); } - if (input.ReplyToAddresses != null) { - const memberEntries = se_AddressList(input.ReplyToAddresses, context); - if (input.ReplyToAddresses?.length === 0) { + if (input[_RTA] != null) { + const memberEntries = se_AddressList(input[_RTA], context); + if (input[_RTA]?.length === 0) { entries.ReplyToAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7048,18 +7048,18 @@ const se_SendEmailRequest = (input: SendEmailRequest, context: __SerdeContext): entries[loc] = value; }); } - if (input.ReturnPath != null) { - entries["ReturnPath"] = input.ReturnPath; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.SourceArn != null) { - entries["SourceArn"] = input.SourceArn; + if (input[_SAo] != null) { + entries[_SAo] = input[_SAo]; } - if (input.ReturnPathArn != null) { - entries["ReturnPathArn"] = input.ReturnPathArn; + if (input[_RPA] != null) { + entries[_RPA] = input[_RPA]; } - if (input.Tags != null) { - const memberEntries = se_MessageTagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_MessageTagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7067,8 +7067,8 @@ const se_SendEmailRequest = (input: SendEmailRequest, context: __SerdeContext): entries[loc] = value; }); } - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } return entries; }; @@ -7078,12 +7078,12 @@ const se_SendEmailRequest = (input: SendEmailRequest, context: __SerdeContext): */ const se_SendRawEmailRequest = (input: SendRawEmailRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_So] != null) { + entries[_So] = input[_So]; } - if (input.Destinations != null) { - const memberEntries = se_AddressList(input.Destinations, context); - if (input.Destinations?.length === 0) { + if (input[_De] != null) { + const memberEntries = se_AddressList(input[_De], context); + if (input[_De]?.length === 0) { entries.Destinations = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7091,25 +7091,25 @@ const se_SendRawEmailRequest = (input: SendRawEmailRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.RawMessage != null) { - const memberEntries = se_RawMessage(input.RawMessage, context); + if (input[_RMa] != null) { + const memberEntries = se_RawMessage(input[_RMa], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RawMessage.${key}`; entries[loc] = value; }); } - if (input.FromArn != null) { - entries["FromArn"] = input.FromArn; + if (input[_FAr] != null) { + entries[_FAr] = input[_FAr]; } - if (input.SourceArn != null) { - entries["SourceArn"] = input.SourceArn; + if (input[_SAo] != null) { + entries[_SAo] = input[_SAo]; } - if (input.ReturnPathArn != null) { - entries["ReturnPathArn"] = input.ReturnPathArn; + if (input[_RPA] != null) { + entries[_RPA] = input[_RPA]; } - if (input.Tags != null) { - const memberEntries = se_MessageTagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_MessageTagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7117,8 +7117,8 @@ const se_SendRawEmailRequest = (input: SendRawEmailRequest, context: __SerdeCont entries[loc] = value; }); } - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } return entries; }; @@ -7128,19 +7128,19 @@ const se_SendRawEmailRequest = (input: SendRawEmailRequest, context: __SerdeCont */ const se_SendTemplatedEmailRequest = (input: SendTemplatedEmailRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Source != null) { - entries["Source"] = input.Source; + if (input[_So] != null) { + entries[_So] = input[_So]; } - if (input.Destination != null) { - const memberEntries = se_Destination(input.Destination, context); + if (input[_D] != null) { + const memberEntries = se_Destination(input[_D], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Destination.${key}`; entries[loc] = value; }); } - if (input.ReplyToAddresses != null) { - const memberEntries = se_AddressList(input.ReplyToAddresses, context); - if (input.ReplyToAddresses?.length === 0) { + if (input[_RTA] != null) { + const memberEntries = se_AddressList(input[_RTA], context); + if (input[_RTA]?.length === 0) { entries.ReplyToAddresses = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7148,18 +7148,18 @@ const se_SendTemplatedEmailRequest = (input: SendTemplatedEmailRequest, context: entries[loc] = value; }); } - if (input.ReturnPath != null) { - entries["ReturnPath"] = input.ReturnPath; + if (input[_RP] != null) { + entries[_RP] = input[_RP]; } - if (input.SourceArn != null) { - entries["SourceArn"] = input.SourceArn; + if (input[_SAo] != null) { + entries[_SAo] = input[_SAo]; } - if (input.ReturnPathArn != null) { - entries["ReturnPathArn"] = input.ReturnPathArn; + if (input[_RPA] != null) { + entries[_RPA] = input[_RPA]; } - if (input.Tags != null) { - const memberEntries = se_MessageTagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_MessageTagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -7167,17 +7167,17 @@ const se_SendTemplatedEmailRequest = (input: SendTemplatedEmailRequest, context: entries[loc] = value; }); } - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.Template != null) { - entries["Template"] = input.Template; + if (input[_Te] != null) { + entries[_Te] = input[_Te]; } - if (input.TemplateArn != null) { - entries["TemplateArn"] = input.TemplateArn; + if (input[_TAe] != null) { + entries[_TAe] = input[_TAe]; } - if (input.TemplateData != null) { - entries["TemplateData"] = input.TemplateData; + if (input[_TD] != null) { + entries[_TD] = input[_TD]; } return entries; }; @@ -7187,8 +7187,8 @@ const se_SendTemplatedEmailRequest = (input: SendTemplatedEmailRequest, context: */ const se_SetActiveReceiptRuleSetRequest = (input: SetActiveReceiptRuleSetRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } return entries; }; @@ -7198,11 +7198,11 @@ const se_SetActiveReceiptRuleSetRequest = (input: SetActiveReceiptRuleSetRequest */ const se_SetIdentityDkimEnabledRequest = (input: SetIdentityDkimEnabledRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.DkimEnabled != null) { - entries["DkimEnabled"] = input.DkimEnabled; + if (input[_DE] != null) { + entries[_DE] = input[_DE]; } return entries; }; @@ -7215,11 +7215,11 @@ const se_SetIdentityFeedbackForwardingEnabledRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.ForwardingEnabled != null) { - entries["ForwardingEnabled"] = input.ForwardingEnabled; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } return entries; }; @@ -7232,14 +7232,14 @@ const se_SetIdentityHeadersInNotificationsEnabledRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.NotificationType != null) { - entries["NotificationType"] = input.NotificationType; + if (input[_NTo] != null) { + entries[_NTo] = input[_NTo]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } return entries; }; @@ -7249,14 +7249,14 @@ const se_SetIdentityHeadersInNotificationsEnabledRequest = ( */ const se_SetIdentityMailFromDomainRequest = (input: SetIdentityMailFromDomainRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.MailFromDomain != null) { - entries["MailFromDomain"] = input.MailFromDomain; + if (input[_MFD] != null) { + entries[_MFD] = input[_MFD]; } - if (input.BehaviorOnMXFailure != null) { - entries["BehaviorOnMXFailure"] = input.BehaviorOnMXFailure; + if (input[_BOMXF] != null) { + entries[_BOMXF] = input[_BOMXF]; } return entries; }; @@ -7269,14 +7269,14 @@ const se_SetIdentityNotificationTopicRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Identity != null) { - entries["Identity"] = input.Identity; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.NotificationType != null) { - entries["NotificationType"] = input.NotificationType; + if (input[_NTo] != null) { + entries[_NTo] = input[_NTo]; } - if (input.SnsTopic != null) { - entries["SnsTopic"] = input.SnsTopic; + if (input[_ST] != null) { + entries[_ST] = input[_ST]; } return entries; }; @@ -7286,14 +7286,14 @@ const se_SetIdentityNotificationTopicRequest = ( */ const se_SetReceiptRulePositionRequest = (input: SetReceiptRulePositionRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.RuleName != null) { - entries["RuleName"] = input.RuleName; + if (input[_RN] != null) { + entries[_RN] = input[_RN]; } - if (input.After != null) { - entries["After"] = input.After; + if (input[_Af] != null) { + entries[_Af] = input[_Af]; } return entries; }; @@ -7303,11 +7303,11 @@ const se_SetReceiptRulePositionRequest = (input: SetReceiptRulePositionRequest, */ const se_SNSAction = (input: SNSAction, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.Encoding != null) { - entries["Encoding"] = input.Encoding; + if (input[_En] != null) { + entries[_En] = input[_En]; } return entries; }; @@ -7317,8 +7317,8 @@ const se_SNSAction = (input: SNSAction, context: __SerdeContext): any => { */ const se_SNSDestination = (input: SNSDestination, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicARN != null) { - entries["TopicARN"] = input.TopicARN; + if (input[_TARN] != null) { + entries[_TARN] = input[_TARN]; } return entries; }; @@ -7328,11 +7328,11 @@ const se_SNSDestination = (input: SNSDestination, context: __SerdeContext): any */ const se_StopAction = (input: StopAction, context: __SerdeContext): any => { const entries: any = {}; - if (input.Scope != null) { - entries["Scope"] = input.Scope; + if (input[_Sc] != null) { + entries[_Sc] = input[_Sc]; } - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } return entries; }; @@ -7342,17 +7342,17 @@ const se_StopAction = (input: StopAction, context: __SerdeContext): any => { */ const se_Template = (input: Template, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.SubjectPart != null) { - entries["SubjectPart"] = input.SubjectPart; + if (input[_SP] != null) { + entries[_SP] = input[_SP]; } - if (input.TextPart != null) { - entries["TextPart"] = input.TextPart; + if (input[_TPe] != null) { + entries[_TPe] = input[_TPe]; } - if (input.HtmlPart != null) { - entries["HtmlPart"] = input.HtmlPart; + if (input[_HP] != null) { + entries[_HP] = input[_HP]; } return entries; }; @@ -7362,11 +7362,11 @@ const se_Template = (input: Template, context: __SerdeContext): any => { */ const se_TestRenderTemplateRequest = (input: TestRenderTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.TemplateData != null) { - entries["TemplateData"] = input.TemplateData; + if (input[_TD] != null) { + entries[_TD] = input[_TD]; } return entries; }; @@ -7376,8 +7376,8 @@ const se_TestRenderTemplateRequest = (input: TestRenderTemplateRequest, context: */ const se_TrackingOptions = (input: TrackingOptions, context: __SerdeContext): any => { const entries: any = {}; - if (input.CustomRedirectDomain != null) { - entries["CustomRedirectDomain"] = input.CustomRedirectDomain; + if (input[_CRD] != null) { + entries[_CRD] = input[_CRD]; } return entries; }; @@ -7390,8 +7390,8 @@ const se_UpdateAccountSendingEnabledRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } return entries; }; @@ -7404,11 +7404,11 @@ const se_UpdateConfigurationSetEventDestinationRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.EventDestination != null) { - const memberEntries = se_EventDestination(input.EventDestination, context); + if (input[_ED] != null) { + const memberEntries = se_EventDestination(input[_ED], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `EventDestination.${key}`; entries[loc] = value; @@ -7425,11 +7425,11 @@ const se_UpdateConfigurationSetReputationMetricsEnabledRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } return entries; }; @@ -7442,11 +7442,11 @@ const se_UpdateConfigurationSetSendingEnabledRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.Enabled != null) { - entries["Enabled"] = input.Enabled; + if (input[_E] != null) { + entries[_E] = input[_E]; } return entries; }; @@ -7459,11 +7459,11 @@ const se_UpdateConfigurationSetTrackingOptionsRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.ConfigurationSetName != null) { - entries["ConfigurationSetName"] = input.ConfigurationSetName; + if (input[_CSN] != null) { + entries[_CSN] = input[_CSN]; } - if (input.TrackingOptions != null) { - const memberEntries = se_TrackingOptions(input.TrackingOptions, context); + if (input[_TO] != null) { + const memberEntries = se_TrackingOptions(input[_TO], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `TrackingOptions.${key}`; entries[loc] = value; @@ -7480,23 +7480,23 @@ const se_UpdateCustomVerificationEmailTemplateRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.TemplateName != null) { - entries["TemplateName"] = input.TemplateName; + if (input[_TN] != null) { + entries[_TN] = input[_TN]; } - if (input.FromEmailAddress != null) { - entries["FromEmailAddress"] = input.FromEmailAddress; + if (input[_FEA] != null) { + entries[_FEA] = input[_FEA]; } - if (input.TemplateSubject != null) { - entries["TemplateSubject"] = input.TemplateSubject; + if (input[_TS] != null) { + entries[_TS] = input[_TS]; } - if (input.TemplateContent != null) { - entries["TemplateContent"] = input.TemplateContent; + if (input[_TC] != null) { + entries[_TC] = input[_TC]; } - if (input.SuccessRedirectionURL != null) { - entries["SuccessRedirectionURL"] = input.SuccessRedirectionURL; + if (input[_SRURL] != null) { + entries[_SRURL] = input[_SRURL]; } - if (input.FailureRedirectionURL != null) { - entries["FailureRedirectionURL"] = input.FailureRedirectionURL; + if (input[_FRURL] != null) { + entries[_FRURL] = input[_FRURL]; } return entries; }; @@ -7506,11 +7506,11 @@ const se_UpdateCustomVerificationEmailTemplateRequest = ( */ const se_UpdateReceiptRuleRequest = (input: UpdateReceiptRuleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RuleSetName != null) { - entries["RuleSetName"] = input.RuleSetName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.Rule != null) { - const memberEntries = se_ReceiptRule(input.Rule, context); + if (input[_Ru] != null) { + const memberEntries = se_ReceiptRule(input[_Ru], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Rule.${key}`; entries[loc] = value; @@ -7524,8 +7524,8 @@ const se_UpdateReceiptRuleRequest = (input: UpdateReceiptRuleRequest, context: _ */ const se_UpdateTemplateRequest = (input: UpdateTemplateRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Template != null) { - const memberEntries = se_Template(input.Template, context); + if (input[_Te] != null) { + const memberEntries = se_Template(input[_Te], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Template.${key}`; entries[loc] = value; @@ -7539,8 +7539,8 @@ const se_UpdateTemplateRequest = (input: UpdateTemplateRequest, context: __Serde */ const se_VerifyDomainDkimRequest = (input: VerifyDomainDkimRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } return entries; }; @@ -7550,8 +7550,8 @@ const se_VerifyDomainDkimRequest = (input: VerifyDomainDkimRequest, context: __S */ const se_VerifyDomainIdentityRequest = (input: VerifyDomainIdentityRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Domain != null) { - entries["Domain"] = input.Domain; + if (input[_Do] != null) { + entries[_Do] = input[_Do]; } return entries; }; @@ -7561,8 +7561,8 @@ const se_VerifyDomainIdentityRequest = (input: VerifyDomainIdentityRequest, cont */ const se_VerifyEmailAddressRequest = (input: VerifyEmailAddressRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EmailAddress != null) { - entries["EmailAddress"] = input.EmailAddress; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } return entries; }; @@ -7572,8 +7572,8 @@ const se_VerifyEmailAddressRequest = (input: VerifyEmailAddressRequest, context: */ const se_VerifyEmailIdentityRequest = (input: VerifyEmailIdentityRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.EmailAddress != null) { - entries["EmailAddress"] = input.EmailAddress; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } return entries; }; @@ -7583,11 +7583,11 @@ const se_VerifyEmailIdentityRequest = (input: VerifyEmailIdentityRequest, contex */ const se_WorkmailAction = (input: WorkmailAction, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.OrganizationArn != null) { - entries["OrganizationArn"] = input.OrganizationArn; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } return entries; }; @@ -7597,8 +7597,8 @@ const se_WorkmailAction = (input: WorkmailAction, context: __SerdeContext): any */ const de_AccountSendingPausedException = (output: any, context: __SerdeContext): AccountSendingPausedException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7608,11 +7608,11 @@ const de_AccountSendingPausedException = (output: any, context: __SerdeContext): */ const de_AddHeaderAction = (output: any, context: __SerdeContext): AddHeaderAction => { const contents: any = {}; - if (output["HeaderName"] !== undefined) { - contents.HeaderName = __expectString(output["HeaderName"]); + if (output[_HN] != null) { + contents[_HN] = __expectString(output[_HN]); } - if (output["HeaderValue"] !== undefined) { - contents.HeaderValue = __expectString(output["HeaderValue"]); + if (output[_HV] != null) { + contents[_HV] = __expectString(output[_HV]); } return contents; }; @@ -7633,11 +7633,11 @@ const de_AddressList = (output: any, context: __SerdeContext): string[] => { */ const de_AlreadyExistsException = (output: any, context: __SerdeContext): AlreadyExistsException => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7647,20 +7647,20 @@ const de_AlreadyExistsException = (output: any, context: __SerdeContext): Alread */ const de_BounceAction = (output: any, context: __SerdeContext): BounceAction => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["SmtpReplyCode"] !== undefined) { - contents.SmtpReplyCode = __expectString(output["SmtpReplyCode"]); + if (output[_SRC] != null) { + contents[_SRC] = __expectString(output[_SRC]); } - if (output["StatusCode"] !== undefined) { - contents.StatusCode = __expectString(output["StatusCode"]); + if (output[_SC] != null) { + contents[_SC] = __expectString(output[_SC]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["Sender"] !== undefined) { - contents.Sender = __expectString(output["Sender"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } return contents; }; @@ -7670,14 +7670,14 @@ const de_BounceAction = (output: any, context: __SerdeContext): BounceAction => */ const de_BulkEmailDestinationStatus = (output: any, context: __SerdeContext): BulkEmailDestinationStatus => { const contents: any = {}; - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Error"] !== undefined) { - contents.Error = __expectString(output["Error"]); + if (output[_Er] != null) { + contents[_Er] = __expectString(output[_Er]); } - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MIe] != null) { + contents[_MIe] = __expectString(output[_MIe]); } return contents; }; @@ -7698,11 +7698,11 @@ const de_BulkEmailDestinationStatusList = (output: any, context: __SerdeContext) */ const de_CannotDeleteException = (output: any, context: __SerdeContext): CannotDeleteException => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7721,15 +7721,9 @@ const de_CloneReceiptRuleSetResponse = (output: any, context: __SerdeContext): C const de_CloudWatchDestination = (output: any, context: __SerdeContext): CloudWatchDestination => { const contents: any = {}; if (output.DimensionConfigurations === "") { - contents.DimensionConfigurations = []; - } else if ( - output["DimensionConfigurations"] !== undefined && - output["DimensionConfigurations"]["member"] !== undefined - ) { - contents.DimensionConfigurations = de_CloudWatchDimensionConfigurations( - __getArrayIfSingleItem(output["DimensionConfigurations"]["member"]), - context - ); + contents[_DC] = []; + } else if (output[_DC] != null && output[_DC][_me] != null) { + contents[_DC] = de_CloudWatchDimensionConfigurations(__getArrayIfSingleItem(output[_DC][_me]), context); } return contents; }; @@ -7742,14 +7736,14 @@ const de_CloudWatchDimensionConfiguration = ( context: __SerdeContext ): CloudWatchDimensionConfiguration => { const contents: any = {}; - if (output["DimensionName"] !== undefined) { - contents.DimensionName = __expectString(output["DimensionName"]); + if (output[_DN] != null) { + contents[_DN] = __expectString(output[_DN]); } - if (output["DimensionValueSource"] !== undefined) { - contents.DimensionValueSource = __expectString(output["DimensionValueSource"]); + if (output[_DVS] != null) { + contents[_DVS] = __expectString(output[_DVS]); } - if (output["DefaultDimensionValue"] !== undefined) { - contents.DefaultDimensionValue = __expectString(output["DefaultDimensionValue"]); + if (output[_DDV] != null) { + contents[_DDV] = __expectString(output[_DDV]); } return contents; }; @@ -7773,8 +7767,8 @@ const de_CloudWatchDimensionConfigurations = ( */ const de_ConfigurationSet = (output: any, context: __SerdeContext): ConfigurationSet => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } return contents; }; @@ -7787,11 +7781,11 @@ const de_ConfigurationSetAlreadyExistsException = ( context: __SerdeContext ): ConfigurationSetAlreadyExistsException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7804,11 +7798,11 @@ const de_ConfigurationSetDoesNotExistException = ( context: __SerdeContext ): ConfigurationSetDoesNotExistException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7832,11 +7826,11 @@ const de_ConfigurationSetSendingPausedException = ( context: __SerdeContext ): ConfigurationSetSendingPausedException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7911,8 +7905,8 @@ const de_CustomVerificationEmailInvalidContentException = ( context: __SerdeContext ): CustomVerificationEmailInvalidContentException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7922,20 +7916,20 @@ const de_CustomVerificationEmailInvalidContentException = ( */ const de_CustomVerificationEmailTemplate = (output: any, context: __SerdeContext): CustomVerificationEmailTemplate => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["FromEmailAddress"] !== undefined) { - contents.FromEmailAddress = __expectString(output["FromEmailAddress"]); + if (output[_FEA] != null) { + contents[_FEA] = __expectString(output[_FEA]); } - if (output["TemplateSubject"] !== undefined) { - contents.TemplateSubject = __expectString(output["TemplateSubject"]); + if (output[_TS] != null) { + contents[_TS] = __expectString(output[_TS]); } - if (output["SuccessRedirectionURL"] !== undefined) { - contents.SuccessRedirectionURL = __expectString(output["SuccessRedirectionURL"]); + if (output[_SRURL] != null) { + contents[_SRURL] = __expectString(output[_SRURL]); } - if (output["FailureRedirectionURL"] !== undefined) { - contents.FailureRedirectionURL = __expectString(output["FailureRedirectionURL"]); + if (output[_FRURL] != null) { + contents[_FRURL] = __expectString(output[_FRURL]); } return contents; }; @@ -7948,11 +7942,11 @@ const de_CustomVerificationEmailTemplateAlreadyExistsException = ( context: __SerdeContext ): CustomVerificationEmailTemplateAlreadyExistsException => { const contents: any = {}; - if (output["CustomVerificationEmailTemplateName"] !== undefined) { - contents.CustomVerificationEmailTemplateName = __expectString(output["CustomVerificationEmailTemplateName"]); + if (output[_CVETN] != null) { + contents[_CVETN] = __expectString(output[_CVETN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -7965,11 +7959,11 @@ const de_CustomVerificationEmailTemplateDoesNotExistException = ( context: __SerdeContext ): CustomVerificationEmailTemplateDoesNotExistException => { const contents: any = {}; - if (output["CustomVerificationEmailTemplateName"] !== undefined) { - contents.CustomVerificationEmailTemplateName = __expectString(output["CustomVerificationEmailTemplateName"]); + if (output[_CVETN] != null) { + contents[_CVETN] = __expectString(output[_CVETN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8071,8 +8065,8 @@ const de_DeleteTemplateResponse = (output: any, context: __SerdeContext): Delete */ const de_DeliveryOptions = (output: any, context: __SerdeContext): DeliveryOptions => { const contents: any = {}; - if (output["TlsPolicy"] !== undefined) { - contents.TlsPolicy = __expectString(output["TlsPolicy"]); + if (output[_TP] != null) { + contents[_TP] = __expectString(output[_TP]); } return contents; }; @@ -8085,13 +8079,13 @@ const de_DescribeActiveReceiptRuleSetResponse = ( context: __SerdeContext ): DescribeActiveReceiptRuleSetResponse => { const contents: any = {}; - if (output["Metadata"] !== undefined) { - contents.Metadata = de_ReceiptRuleSetMetadata(output["Metadata"], context); + if (output[_Me] != null) { + contents[_Me] = de_ReceiptRuleSetMetadata(output[_Me], context); } if (output.Rules === "") { - contents.Rules = []; - } else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_ReceiptRulesList(__getArrayIfSingleItem(output["Rules"]["member"]), context); + contents[_Rul] = []; + } else if (output[_Rul] != null && output[_Rul][_me] != null) { + contents[_Rul] = de_ReceiptRulesList(__getArrayIfSingleItem(output[_Rul][_me]), context); } return contents; }; @@ -8104,25 +8098,22 @@ const de_DescribeConfigurationSetResponse = ( context: __SerdeContext ): DescribeConfigurationSetResponse => { const contents: any = {}; - if (output["ConfigurationSet"] !== undefined) { - contents.ConfigurationSet = de_ConfigurationSet(output["ConfigurationSet"], context); + if (output[_CS] != null) { + contents[_CS] = de_ConfigurationSet(output[_CS], context); } if (output.EventDestinations === "") { - contents.EventDestinations = []; - } else if (output["EventDestinations"] !== undefined && output["EventDestinations"]["member"] !== undefined) { - contents.EventDestinations = de_EventDestinations( - __getArrayIfSingleItem(output["EventDestinations"]["member"]), - context - ); + contents[_EDv] = []; + } else if (output[_EDv] != null && output[_EDv][_me] != null) { + contents[_EDv] = de_EventDestinations(__getArrayIfSingleItem(output[_EDv][_me]), context); } - if (output["TrackingOptions"] !== undefined) { - contents.TrackingOptions = de_TrackingOptions(output["TrackingOptions"], context); + if (output[_TO] != null) { + contents[_TO] = de_TrackingOptions(output[_TO], context); } - if (output["DeliveryOptions"] !== undefined) { - contents.DeliveryOptions = de_DeliveryOptions(output["DeliveryOptions"], context); + if (output[_DO] != null) { + contents[_DO] = de_DeliveryOptions(output[_DO], context); } - if (output["ReputationOptions"] !== undefined) { - contents.ReputationOptions = de_ReputationOptions(output["ReputationOptions"], context); + if (output[_RO] != null) { + contents[_RO] = de_ReputationOptions(output[_RO], context); } return contents; }; @@ -8132,8 +8123,8 @@ const de_DescribeConfigurationSetResponse = ( */ const de_DescribeReceiptRuleResponse = (output: any, context: __SerdeContext): DescribeReceiptRuleResponse => { const contents: any = {}; - if (output["Rule"] !== undefined) { - contents.Rule = de_ReceiptRule(output["Rule"], context); + if (output[_Ru] != null) { + contents[_Ru] = de_ReceiptRule(output[_Ru], context); } return contents; }; @@ -8143,13 +8134,13 @@ const de_DescribeReceiptRuleResponse = (output: any, context: __SerdeContext): D */ const de_DescribeReceiptRuleSetResponse = (output: any, context: __SerdeContext): DescribeReceiptRuleSetResponse => { const contents: any = {}; - if (output["Metadata"] !== undefined) { - contents.Metadata = de_ReceiptRuleSetMetadata(output["Metadata"], context); + if (output[_Me] != null) { + contents[_Me] = de_ReceiptRuleSetMetadata(output[_Me], context); } if (output.Rules === "") { - contents.Rules = []; - } else if (output["Rules"] !== undefined && output["Rules"]["member"] !== undefined) { - contents.Rules = de_ReceiptRulesList(__getArrayIfSingleItem(output["Rules"]["member"]), context); + contents[_Rul] = []; + } else if (output[_Rul] != null && output[_Rul][_me] != null) { + contents[_Rul] = de_ReceiptRulesList(__getArrayIfSingleItem(output[_Rul][_me]), context); } return contents; }; @@ -8172,28 +8163,25 @@ const de_DkimAttributes = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } if (output.MatchingEventTypes === "") { - contents.MatchingEventTypes = []; - } else if (output["MatchingEventTypes"] !== undefined && output["MatchingEventTypes"]["member"] !== undefined) { - contents.MatchingEventTypes = de_EventTypes( - __getArrayIfSingleItem(output["MatchingEventTypes"]["member"]), - context - ); + contents[_MET] = []; + } else if (output[_MET] != null && output[_MET][_me] != null) { + contents[_MET] = de_EventTypes(__getArrayIfSingleItem(output[_MET][_me]), context); } - if (output["KinesisFirehoseDestination"] !== undefined) { - contents.KinesisFirehoseDestination = de_KinesisFirehoseDestination(output["KinesisFirehoseDestination"], context); + if (output[_KFD] != null) { + contents[_KFD] = de_KinesisFirehoseDestination(output[_KFD], context); } - if (output["CloudWatchDestination"] !== undefined) { - contents.CloudWatchDestination = de_CloudWatchDestination(output["CloudWatchDestination"], context); + if (output[_CWD] != null) { + contents[_CWD] = de_CloudWatchDestination(output[_CWD], context); } - if (output["SNSDestination"] !== undefined) { - contents.SNSDestination = de_SNSDestination(output["SNSDestination"], context); + if (output[_SNSD] != null) { + contents[_SNSD] = de_SNSDestination(output[_SNSD], context); } return contents; }; @@ -8206,14 +8194,14 @@ const de_EventDestinationAlreadyExistsException = ( context: __SerdeContext ): EventDestinationAlreadyExistsException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["EventDestinationName"] !== undefined) { - contents.EventDestinationName = __expectString(output["EventDestinationName"]); + if (output[_EDN] != null) { + contents[_EDN] = __expectString(output[_EDN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8226,14 +8214,14 @@ const de_EventDestinationDoesNotExistException = ( context: __SerdeContext ): EventDestinationDoesNotExistException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["EventDestinationName"] !== undefined) { - contents.EventDestinationName = __expectString(output["EventDestinationName"]); + if (output[_EDN] != null) { + contents[_EDN] = __expectString(output[_EDN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8268,11 +8256,11 @@ const de_FromEmailAddressNotVerifiedException = ( context: __SerdeContext ): FromEmailAddressNotVerifiedException => { const contents: any = {}; - if (output["FromEmailAddress"] !== undefined) { - contents.FromEmailAddress = __expectString(output["FromEmailAddress"]); + if (output[_FEA] != null) { + contents[_FEA] = __expectString(output[_FEA]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8285,8 +8273,8 @@ const de_GetAccountSendingEnabledResponse = ( context: __SerdeContext ): GetAccountSendingEnabledResponse => { const contents: any = {}; - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } return contents; }; @@ -8299,23 +8287,23 @@ const de_GetCustomVerificationEmailTemplateResponse = ( context: __SerdeContext ): GetCustomVerificationEmailTemplateResponse => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["FromEmailAddress"] !== undefined) { - contents.FromEmailAddress = __expectString(output["FromEmailAddress"]); + if (output[_FEA] != null) { + contents[_FEA] = __expectString(output[_FEA]); } - if (output["TemplateSubject"] !== undefined) { - contents.TemplateSubject = __expectString(output["TemplateSubject"]); + if (output[_TS] != null) { + contents[_TS] = __expectString(output[_TS]); } - if (output["TemplateContent"] !== undefined) { - contents.TemplateContent = __expectString(output["TemplateContent"]); + if (output[_TC] != null) { + contents[_TC] = __expectString(output[_TC]); } - if (output["SuccessRedirectionURL"] !== undefined) { - contents.SuccessRedirectionURL = __expectString(output["SuccessRedirectionURL"]); + if (output[_SRURL] != null) { + contents[_SRURL] = __expectString(output[_SRURL]); } - if (output["FailureRedirectionURL"] !== undefined) { - contents.FailureRedirectionURL = __expectString(output["FailureRedirectionURL"]); + if (output[_FRURL] != null) { + contents[_FRURL] = __expectString(output[_FRURL]); } return contents; }; @@ -8329,9 +8317,9 @@ const de_GetIdentityDkimAttributesResponse = ( ): GetIdentityDkimAttributesResponse => { const contents: any = {}; if (output.DkimAttributes === "") { - contents.DkimAttributes = {}; - } else if (output["DkimAttributes"] !== undefined && output["DkimAttributes"]["entry"] !== undefined) { - contents.DkimAttributes = de_DkimAttributes(__getArrayIfSingleItem(output["DkimAttributes"]["entry"]), context); + contents[_DA] = {}; + } else if (output[_DA] != null && output[_DA][_e] != null) { + contents[_DA] = de_DkimAttributes(__getArrayIfSingleItem(output[_DA][_e]), context); } return contents; }; @@ -8345,15 +8333,9 @@ const de_GetIdentityMailFromDomainAttributesResponse = ( ): GetIdentityMailFromDomainAttributesResponse => { const contents: any = {}; if (output.MailFromDomainAttributes === "") { - contents.MailFromDomainAttributes = {}; - } else if ( - output["MailFromDomainAttributes"] !== undefined && - output["MailFromDomainAttributes"]["entry"] !== undefined - ) { - contents.MailFromDomainAttributes = de_MailFromDomainAttributes( - __getArrayIfSingleItem(output["MailFromDomainAttributes"]["entry"]), - context - ); + contents[_MFDA] = {}; + } else if (output[_MFDA] != null && output[_MFDA][_e] != null) { + contents[_MFDA] = de_MailFromDomainAttributes(__getArrayIfSingleItem(output[_MFDA][_e]), context); } return contents; }; @@ -8367,15 +8349,9 @@ const de_GetIdentityNotificationAttributesResponse = ( ): GetIdentityNotificationAttributesResponse => { const contents: any = {}; if (output.NotificationAttributes === "") { - contents.NotificationAttributes = {}; - } else if ( - output["NotificationAttributes"] !== undefined && - output["NotificationAttributes"]["entry"] !== undefined - ) { - contents.NotificationAttributes = de_NotificationAttributes( - __getArrayIfSingleItem(output["NotificationAttributes"]["entry"]), - context - ); + contents[_NA] = {}; + } else if (output[_NA] != null && output[_NA][_e] != null) { + contents[_NA] = de_NotificationAttributes(__getArrayIfSingleItem(output[_NA][_e]), context); } return contents; }; @@ -8386,9 +8362,9 @@ const de_GetIdentityNotificationAttributesResponse = ( const de_GetIdentityPoliciesResponse = (output: any, context: __SerdeContext): GetIdentityPoliciesResponse => { const contents: any = {}; if (output.Policies === "") { - contents.Policies = {}; - } else if (output["Policies"] !== undefined && output["Policies"]["entry"] !== undefined) { - contents.Policies = de_PolicyMap(__getArrayIfSingleItem(output["Policies"]["entry"]), context); + contents[_Po] = {}; + } else if (output[_Po] != null && output[_Po][_e] != null) { + contents[_Po] = de_PolicyMap(__getArrayIfSingleItem(output[_Po][_e]), context); } return contents; }; @@ -8402,15 +8378,9 @@ const de_GetIdentityVerificationAttributesResponse = ( ): GetIdentityVerificationAttributesResponse => { const contents: any = {}; if (output.VerificationAttributes === "") { - contents.VerificationAttributes = {}; - } else if ( - output["VerificationAttributes"] !== undefined && - output["VerificationAttributes"]["entry"] !== undefined - ) { - contents.VerificationAttributes = de_VerificationAttributes( - __getArrayIfSingleItem(output["VerificationAttributes"]["entry"]), - context - ); + contents[_VA] = {}; + } else if (output[_VA] != null && output[_VA][_e] != null) { + contents[_VA] = de_VerificationAttributes(__getArrayIfSingleItem(output[_VA][_e]), context); } return contents; }; @@ -8420,14 +8390,14 @@ const de_GetIdentityVerificationAttributesResponse = ( */ const de_GetSendQuotaResponse = (output: any, context: __SerdeContext): GetSendQuotaResponse => { const contents: any = {}; - if (output["Max24HourSend"] !== undefined) { - contents.Max24HourSend = __strictParseFloat(output["Max24HourSend"]) as number; + if (output[_MHS] != null) { + contents[_MHS] = __strictParseFloat(output[_MHS]) as number; } - if (output["MaxSendRate"] !== undefined) { - contents.MaxSendRate = __strictParseFloat(output["MaxSendRate"]) as number; + if (output[_MSR] != null) { + contents[_MSR] = __strictParseFloat(output[_MSR]) as number; } - if (output["SentLast24Hours"] !== undefined) { - contents.SentLast24Hours = __strictParseFloat(output["SentLast24Hours"]) as number; + if (output[_SLH] != null) { + contents[_SLH] = __strictParseFloat(output[_SLH]) as number; } return contents; }; @@ -8438,9 +8408,9 @@ const de_GetSendQuotaResponse = (output: any, context: __SerdeContext): GetSendQ const de_GetSendStatisticsResponse = (output: any, context: __SerdeContext): GetSendStatisticsResponse => { const contents: any = {}; if (output.SendDataPoints === "") { - contents.SendDataPoints = []; - } else if (output["SendDataPoints"] !== undefined && output["SendDataPoints"]["member"] !== undefined) { - contents.SendDataPoints = de_SendDataPointList(__getArrayIfSingleItem(output["SendDataPoints"]["member"]), context); + contents[_SDP] = []; + } else if (output[_SDP] != null && output[_SDP][_me] != null) { + contents[_SDP] = de_SendDataPointList(__getArrayIfSingleItem(output[_SDP][_me]), context); } return contents; }; @@ -8450,8 +8420,8 @@ const de_GetSendStatisticsResponse = (output: any, context: __SerdeContext): Get */ const de_GetTemplateResponse = (output: any, context: __SerdeContext): GetTemplateResponse => { const contents: any = {}; - if (output["Template"] !== undefined) { - contents.Template = de_Template(output["Template"], context); + if (output[_Te] != null) { + contents[_Te] = de_Template(output[_Te], context); } return contents; }; @@ -8461,16 +8431,16 @@ const de_GetTemplateResponse = (output: any, context: __SerdeContext): GetTempla */ const de_IdentityDkimAttributes = (output: any, context: __SerdeContext): IdentityDkimAttributes => { const contents: any = {}; - if (output["DkimEnabled"] !== undefined) { - contents.DkimEnabled = __parseBoolean(output["DkimEnabled"]); + if (output[_DE] != null) { + contents[_DE] = __parseBoolean(output[_DE]); } - if (output["DkimVerificationStatus"] !== undefined) { - contents.DkimVerificationStatus = __expectString(output["DkimVerificationStatus"]); + if (output[_DVSk] != null) { + contents[_DVSk] = __expectString(output[_DVSk]); } if (output.DkimTokens === "") { - contents.DkimTokens = []; - } else if (output["DkimTokens"] !== undefined && output["DkimTokens"]["member"] !== undefined) { - contents.DkimTokens = de_VerificationTokenList(__getArrayIfSingleItem(output["DkimTokens"]["member"]), context); + contents[_DTk] = []; + } else if (output[_DTk] != null && output[_DTk][_me] != null) { + contents[_DTk] = de_VerificationTokenList(__getArrayIfSingleItem(output[_DTk][_me]), context); } return contents; }; @@ -8494,14 +8464,14 @@ const de_IdentityMailFromDomainAttributes = ( context: __SerdeContext ): IdentityMailFromDomainAttributes => { const contents: any = {}; - if (output["MailFromDomain"] !== undefined) { - contents.MailFromDomain = __expectString(output["MailFromDomain"]); + if (output[_MFD] != null) { + contents[_MFD] = __expectString(output[_MFD]); } - if (output["MailFromDomainStatus"] !== undefined) { - contents.MailFromDomainStatus = __expectString(output["MailFromDomainStatus"]); + if (output[_MFDS] != null) { + contents[_MFDS] = __expectString(output[_MFDS]); } - if (output["BehaviorOnMXFailure"] !== undefined) { - contents.BehaviorOnMXFailure = __expectString(output["BehaviorOnMXFailure"]); + if (output[_BOMXF] != null) { + contents[_BOMXF] = __expectString(output[_BOMXF]); } return contents; }; @@ -8511,26 +8481,26 @@ const de_IdentityMailFromDomainAttributes = ( */ const de_IdentityNotificationAttributes = (output: any, context: __SerdeContext): IdentityNotificationAttributes => { const contents: any = {}; - if (output["BounceTopic"] !== undefined) { - contents.BounceTopic = __expectString(output["BounceTopic"]); + if (output[_BTo] != null) { + contents[_BTo] = __expectString(output[_BTo]); } - if (output["ComplaintTopic"] !== undefined) { - contents.ComplaintTopic = __expectString(output["ComplaintTopic"]); + if (output[_CTo] != null) { + contents[_CTo] = __expectString(output[_CTo]); } - if (output["DeliveryTopic"] !== undefined) { - contents.DeliveryTopic = __expectString(output["DeliveryTopic"]); + if (output[_DTel] != null) { + contents[_DTel] = __expectString(output[_DTel]); } - if (output["ForwardingEnabled"] !== undefined) { - contents.ForwardingEnabled = __parseBoolean(output["ForwardingEnabled"]); + if (output[_FE] != null) { + contents[_FE] = __parseBoolean(output[_FE]); } - if (output["HeadersInBounceNotificationsEnabled"] !== undefined) { - contents.HeadersInBounceNotificationsEnabled = __parseBoolean(output["HeadersInBounceNotificationsEnabled"]); + if (output[_HIBNE] != null) { + contents[_HIBNE] = __parseBoolean(output[_HIBNE]); } - if (output["HeadersInComplaintNotificationsEnabled"] !== undefined) { - contents.HeadersInComplaintNotificationsEnabled = __parseBoolean(output["HeadersInComplaintNotificationsEnabled"]); + if (output[_HICNE] != null) { + contents[_HICNE] = __parseBoolean(output[_HICNE]); } - if (output["HeadersInDeliveryNotificationsEnabled"] !== undefined) { - contents.HeadersInDeliveryNotificationsEnabled = __parseBoolean(output["HeadersInDeliveryNotificationsEnabled"]); + if (output[_HIDNE] != null) { + contents[_HIDNE] = __parseBoolean(output[_HIDNE]); } return contents; }; @@ -8540,11 +8510,11 @@ const de_IdentityNotificationAttributes = (output: any, context: __SerdeContext) */ const de_IdentityVerificationAttributes = (output: any, context: __SerdeContext): IdentityVerificationAttributes => { const contents: any = {}; - if (output["VerificationStatus"] !== undefined) { - contents.VerificationStatus = __expectString(output["VerificationStatus"]); + if (output[_VS] != null) { + contents[_VS] = __expectString(output[_VS]); } - if (output["VerificationToken"] !== undefined) { - contents.VerificationToken = __expectString(output["VerificationToken"]); + if (output[_VT] != null) { + contents[_VT] = __expectString(output[_VT]); } return contents; }; @@ -8557,14 +8527,14 @@ const de_InvalidCloudWatchDestinationException = ( context: __SerdeContext ): InvalidCloudWatchDestinationException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["EventDestinationName"] !== undefined) { - contents.EventDestinationName = __expectString(output["EventDestinationName"]); + if (output[_EDN] != null) { + contents[_EDN] = __expectString(output[_EDN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8577,8 +8547,8 @@ const de_InvalidConfigurationSetException = ( context: __SerdeContext ): InvalidConfigurationSetException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8588,8 +8558,8 @@ const de_InvalidConfigurationSetException = ( */ const de_InvalidDeliveryOptionsException = (output: any, context: __SerdeContext): InvalidDeliveryOptionsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8602,14 +8572,14 @@ const de_InvalidFirehoseDestinationException = ( context: __SerdeContext ): InvalidFirehoseDestinationException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["EventDestinationName"] !== undefined) { - contents.EventDestinationName = __expectString(output["EventDestinationName"]); + if (output[_EDN] != null) { + contents[_EDN] = __expectString(output[_EDN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8619,11 +8589,11 @@ const de_InvalidFirehoseDestinationException = ( */ const de_InvalidLambdaFunctionException = (output: any, context: __SerdeContext): InvalidLambdaFunctionException => { const contents: any = {}; - if (output["FunctionArn"] !== undefined) { - contents.FunctionArn = __expectString(output["FunctionArn"]); + if (output[_FA] != null) { + contents[_FA] = __expectString(output[_FA]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8633,8 +8603,8 @@ const de_InvalidLambdaFunctionException = (output: any, context: __SerdeContext) */ const de_InvalidPolicyException = (output: any, context: __SerdeContext): InvalidPolicyException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8647,11 +8617,11 @@ const de_InvalidRenderingParameterException = ( context: __SerdeContext ): InvalidRenderingParameterException => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8661,11 +8631,11 @@ const de_InvalidRenderingParameterException = ( */ const de_InvalidS3ConfigurationException = (output: any, context: __SerdeContext): InvalidS3ConfigurationException => { const contents: any = {}; - if (output["Bucket"] !== undefined) { - contents.Bucket = __expectString(output["Bucket"]); + if (output[_Bu] != null) { + contents[_Bu] = __expectString(output[_Bu]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8675,14 +8645,14 @@ const de_InvalidS3ConfigurationException = (output: any, context: __SerdeContext */ const de_InvalidSNSDestinationException = (output: any, context: __SerdeContext): InvalidSNSDestinationException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["EventDestinationName"] !== undefined) { - contents.EventDestinationName = __expectString(output["EventDestinationName"]); + if (output[_EDN] != null) { + contents[_EDN] = __expectString(output[_EDN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8692,11 +8662,11 @@ const de_InvalidSNSDestinationException = (output: any, context: __SerdeContext) */ const de_InvalidSnsTopicException = (output: any, context: __SerdeContext): InvalidSnsTopicException => { const contents: any = {}; - if (output["Topic"] !== undefined) { - contents.Topic = __expectString(output["Topic"]); + if (output[_To] != null) { + contents[_To] = __expectString(output[_To]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8706,11 +8676,11 @@ const de_InvalidSnsTopicException = (output: any, context: __SerdeContext): Inva */ const de_InvalidTemplateException = (output: any, context: __SerdeContext): InvalidTemplateException => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8720,8 +8690,8 @@ const de_InvalidTemplateException = (output: any, context: __SerdeContext): Inva */ const de_InvalidTrackingOptionsException = (output: any, context: __SerdeContext): InvalidTrackingOptionsException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8731,11 +8701,11 @@ const de_InvalidTrackingOptionsException = (output: any, context: __SerdeContext */ const de_KinesisFirehoseDestination = (output: any, context: __SerdeContext): KinesisFirehoseDestination => { const contents: any = {}; - if (output["IAMRoleARN"] !== undefined) { - contents.IAMRoleARN = __expectString(output["IAMRoleARN"]); + if (output[_IAMRARN] != null) { + contents[_IAMRARN] = __expectString(output[_IAMRARN]); } - if (output["DeliveryStreamARN"] !== undefined) { - contents.DeliveryStreamARN = __expectString(output["DeliveryStreamARN"]); + if (output[_DSARN] != null) { + contents[_DSARN] = __expectString(output[_DSARN]); } return contents; }; @@ -8745,14 +8715,14 @@ const de_KinesisFirehoseDestination = (output: any, context: __SerdeContext): Ki */ const de_LambdaAction = (output: any, context: __SerdeContext): LambdaAction => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["FunctionArn"] !== undefined) { - contents.FunctionArn = __expectString(output["FunctionArn"]); + if (output[_FA] != null) { + contents[_FA] = __expectString(output[_FA]); } - if (output["InvocationType"] !== undefined) { - contents.InvocationType = __expectString(output["InvocationType"]); + if (output[_IT] != null) { + contents[_IT] = __expectString(output[_IT]); } return contents; }; @@ -8762,8 +8732,8 @@ const de_LambdaAction = (output: any, context: __SerdeContext): LambdaAction => */ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8774,15 +8744,12 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE const de_ListConfigurationSetsResponse = (output: any, context: __SerdeContext): ListConfigurationSetsResponse => { const contents: any = {}; if (output.ConfigurationSets === "") { - contents.ConfigurationSets = []; - } else if (output["ConfigurationSets"] !== undefined && output["ConfigurationSets"]["member"] !== undefined) { - contents.ConfigurationSets = de_ConfigurationSets( - __getArrayIfSingleItem(output["ConfigurationSets"]["member"]), - context - ); + contents[_CSo] = []; + } else if (output[_CSo] != null && output[_CSo][_me] != null) { + contents[_CSo] = de_ConfigurationSets(__getArrayIfSingleItem(output[_CSo][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8796,18 +8763,12 @@ const de_ListCustomVerificationEmailTemplatesResponse = ( ): ListCustomVerificationEmailTemplatesResponse => { const contents: any = {}; if (output.CustomVerificationEmailTemplates === "") { - contents.CustomVerificationEmailTemplates = []; - } else if ( - output["CustomVerificationEmailTemplates"] !== undefined && - output["CustomVerificationEmailTemplates"]["member"] !== undefined - ) { - contents.CustomVerificationEmailTemplates = de_CustomVerificationEmailTemplates( - __getArrayIfSingleItem(output["CustomVerificationEmailTemplates"]["member"]), - context - ); - } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + contents[_CVET] = []; + } else if (output[_CVET] != null && output[_CVET][_me] != null) { + contents[_CVET] = de_CustomVerificationEmailTemplates(__getArrayIfSingleItem(output[_CVET][_me]), context); + } + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8818,12 +8779,12 @@ const de_ListCustomVerificationEmailTemplatesResponse = ( const de_ListIdentitiesResponse = (output: any, context: __SerdeContext): ListIdentitiesResponse => { const contents: any = {}; if (output.Identities === "") { - contents.Identities = []; - } else if (output["Identities"] !== undefined && output["Identities"]["member"] !== undefined) { - contents.Identities = de_IdentityList(__getArrayIfSingleItem(output["Identities"]["member"]), context); + contents[_Id] = []; + } else if (output[_Id] != null && output[_Id][_me] != null) { + contents[_Id] = de_IdentityList(__getArrayIfSingleItem(output[_Id][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8834,9 +8795,9 @@ const de_ListIdentitiesResponse = (output: any, context: __SerdeContext): ListId const de_ListIdentityPoliciesResponse = (output: any, context: __SerdeContext): ListIdentityPoliciesResponse => { const contents: any = {}; if (output.PolicyNames === "") { - contents.PolicyNames = []; - } else if (output["PolicyNames"] !== undefined && output["PolicyNames"]["member"] !== undefined) { - contents.PolicyNames = de_PolicyNameList(__getArrayIfSingleItem(output["PolicyNames"]["member"]), context); + contents[_PNo] = []; + } else if (output[_PNo] != null && output[_PNo][_me] != null) { + contents[_PNo] = de_PolicyNameList(__getArrayIfSingleItem(output[_PNo][_me]), context); } return contents; }; @@ -8847,9 +8808,9 @@ const de_ListIdentityPoliciesResponse = (output: any, context: __SerdeContext): const de_ListReceiptFiltersResponse = (output: any, context: __SerdeContext): ListReceiptFiltersResponse => { const contents: any = {}; if (output.Filters === "") { - contents.Filters = []; - } else if (output["Filters"] !== undefined && output["Filters"]["member"] !== undefined) { - contents.Filters = de_ReceiptFilterList(__getArrayIfSingleItem(output["Filters"]["member"]), context); + contents[_Fi] = []; + } else if (output[_Fi] != null && output[_Fi][_me] != null) { + contents[_Fi] = de_ReceiptFilterList(__getArrayIfSingleItem(output[_Fi][_me]), context); } return contents; }; @@ -8860,12 +8821,12 @@ const de_ListReceiptFiltersResponse = (output: any, context: __SerdeContext): Li const de_ListReceiptRuleSetsResponse = (output: any, context: __SerdeContext): ListReceiptRuleSetsResponse => { const contents: any = {}; if (output.RuleSets === "") { - contents.RuleSets = []; - } else if (output["RuleSets"] !== undefined && output["RuleSets"]["member"] !== undefined) { - contents.RuleSets = de_ReceiptRuleSetsLists(__getArrayIfSingleItem(output["RuleSets"]["member"]), context); + contents[_RS] = []; + } else if (output[_RS] != null && output[_RS][_me] != null) { + contents[_RS] = de_ReceiptRuleSetsLists(__getArrayIfSingleItem(output[_RS][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8876,15 +8837,12 @@ const de_ListReceiptRuleSetsResponse = (output: any, context: __SerdeContext): L const de_ListTemplatesResponse = (output: any, context: __SerdeContext): ListTemplatesResponse => { const contents: any = {}; if (output.TemplatesMetadata === "") { - contents.TemplatesMetadata = []; - } else if (output["TemplatesMetadata"] !== undefined && output["TemplatesMetadata"]["member"] !== undefined) { - contents.TemplatesMetadata = de_TemplateMetadataList( - __getArrayIfSingleItem(output["TemplatesMetadata"]["member"]), - context - ); + contents[_TM] = []; + } else if (output[_TM] != null && output[_TM][_me] != null) { + contents[_TM] = de_TemplateMetadataList(__getArrayIfSingleItem(output[_TM][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -8898,15 +8856,9 @@ const de_ListVerifiedEmailAddressesResponse = ( ): ListVerifiedEmailAddressesResponse => { const contents: any = {}; if (output.VerifiedEmailAddresses === "") { - contents.VerifiedEmailAddresses = []; - } else if ( - output["VerifiedEmailAddresses"] !== undefined && - output["VerifiedEmailAddresses"]["member"] !== undefined - ) { - contents.VerifiedEmailAddresses = de_AddressList( - __getArrayIfSingleItem(output["VerifiedEmailAddresses"]["member"]), - context - ); + contents[_VEAe] = []; + } else if (output[_VEAe] != null && output[_VEAe][_me] != null) { + contents[_VEAe] = de_AddressList(__getArrayIfSingleItem(output[_VEAe][_me]), context); } return contents; }; @@ -8935,8 +8887,8 @@ const de_MailFromDomainNotVerifiedException = ( context: __SerdeContext ): MailFromDomainNotVerifiedException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8946,8 +8898,8 @@ const de_MailFromDomainNotVerifiedException = ( */ const de_MessageRejected = (output: any, context: __SerdeContext): MessageRejected => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -8960,11 +8912,11 @@ const de_MissingRenderingAttributeException = ( context: __SerdeContext ): MissingRenderingAttributeException => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9017,8 +8969,8 @@ const de_ProductionAccessNotGrantedException = ( context: __SerdeContext ): ProductionAccessNotGrantedException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9047,26 +8999,26 @@ const de_PutIdentityPolicyResponse = (output: any, context: __SerdeContext): Put */ const de_ReceiptAction = (output: any, context: __SerdeContext): ReceiptAction => { const contents: any = {}; - if (output["S3Action"] !== undefined) { - contents.S3Action = de_S3Action(output["S3Action"], context); + if (output[_SA] != null) { + contents[_SA] = de_S3Action(output[_SA], context); } - if (output["BounceAction"] !== undefined) { - contents.BounceAction = de_BounceAction(output["BounceAction"], context); + if (output[_BAo] != null) { + contents[_BAo] = de_BounceAction(output[_BAo], context); } - if (output["WorkmailAction"] !== undefined) { - contents.WorkmailAction = de_WorkmailAction(output["WorkmailAction"], context); + if (output[_WA] != null) { + contents[_WA] = de_WorkmailAction(output[_WA], context); } - if (output["LambdaAction"] !== undefined) { - contents.LambdaAction = de_LambdaAction(output["LambdaAction"], context); + if (output[_LA] != null) { + contents[_LA] = de_LambdaAction(output[_LA], context); } - if (output["StopAction"] !== undefined) { - contents.StopAction = de_StopAction(output["StopAction"], context); + if (output[_SAt] != null) { + contents[_SAt] = de_StopAction(output[_SAt], context); } - if (output["AddHeaderAction"] !== undefined) { - contents.AddHeaderAction = de_AddHeaderAction(output["AddHeaderAction"], context); + if (output[_AHA] != null) { + contents[_AHA] = de_AddHeaderAction(output[_AHA], context); } - if (output["SNSAction"] !== undefined) { - contents.SNSAction = de_SNSAction(output["SNSAction"], context); + if (output[_SNSA] != null) { + contents[_SNSA] = de_SNSAction(output[_SNSA], context); } return contents; }; @@ -9087,11 +9039,11 @@ const de_ReceiptActionsList = (output: any, context: __SerdeContext): ReceiptAct */ const de_ReceiptFilter = (output: any, context: __SerdeContext): ReceiptFilter => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["IpFilter"] !== undefined) { - contents.IpFilter = de_ReceiptIpFilter(output["IpFilter"], context); + if (output[_IF] != null) { + contents[_IF] = de_ReceiptIpFilter(output[_IF], context); } return contents; }; @@ -9112,11 +9064,11 @@ const de_ReceiptFilterList = (output: any, context: __SerdeContext): ReceiptFilt */ const de_ReceiptIpFilter = (output: any, context: __SerdeContext): ReceiptIpFilter => { const contents: any = {}; - if (output["Policy"] !== undefined) { - contents.Policy = __expectString(output["Policy"]); + if (output[_P] != null) { + contents[_P] = __expectString(output[_P]); } - if (output["Cidr"] !== undefined) { - contents.Cidr = __expectString(output["Cidr"]); + if (output[_Ci] != null) { + contents[_Ci] = __expectString(output[_Ci]); } return contents; }; @@ -9126,27 +9078,27 @@ const de_ReceiptIpFilter = (output: any, context: __SerdeContext): ReceiptIpFilt */ const de_ReceiptRule = (output: any, context: __SerdeContext): ReceiptRule => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["Enabled"] !== undefined) { - contents.Enabled = __parseBoolean(output["Enabled"]); + if (output[_E] != null) { + contents[_E] = __parseBoolean(output[_E]); } - if (output["TlsPolicy"] !== undefined) { - contents.TlsPolicy = __expectString(output["TlsPolicy"]); + if (output[_TP] != null) { + contents[_TP] = __expectString(output[_TP]); } if (output.Recipients === "") { - contents.Recipients = []; - } else if (output["Recipients"] !== undefined && output["Recipients"]["member"] !== undefined) { - contents.Recipients = de_RecipientsList(__getArrayIfSingleItem(output["Recipients"]["member"]), context); + contents[_Re] = []; + } else if (output[_Re] != null && output[_Re][_me] != null) { + contents[_Re] = de_RecipientsList(__getArrayIfSingleItem(output[_Re][_me]), context); } if (output.Actions === "") { - contents.Actions = []; - } else if (output["Actions"] !== undefined && output["Actions"]["member"] !== undefined) { - contents.Actions = de_ReceiptActionsList(__getArrayIfSingleItem(output["Actions"]["member"]), context); + contents[_Ac] = []; + } else if (output[_Ac] != null && output[_Ac][_me] != null) { + contents[_Ac] = de_ReceiptActionsList(__getArrayIfSingleItem(output[_Ac][_me]), context); } - if (output["ScanEnabled"] !== undefined) { - contents.ScanEnabled = __parseBoolean(output["ScanEnabled"]); + if (output[_SEc] != null) { + contents[_SEc] = __parseBoolean(output[_SEc]); } return contents; }; @@ -9156,11 +9108,11 @@ const de_ReceiptRule = (output: any, context: __SerdeContext): ReceiptRule => { */ const de_ReceiptRuleSetMetadata = (output: any, context: __SerdeContext): ReceiptRuleSetMetadata => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["CreatedTimestamp"] !== undefined) { - contents.CreatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTimestamp"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } return contents; }; @@ -9211,14 +9163,14 @@ const de_ReorderReceiptRuleSetResponse = (output: any, context: __SerdeContext): */ const de_ReputationOptions = (output: any, context: __SerdeContext): ReputationOptions => { const contents: any = {}; - if (output["SendingEnabled"] !== undefined) { - contents.SendingEnabled = __parseBoolean(output["SendingEnabled"]); + if (output[_SEe] != null) { + contents[_SEe] = __parseBoolean(output[_SEe]); } - if (output["ReputationMetricsEnabled"] !== undefined) { - contents.ReputationMetricsEnabled = __parseBoolean(output["ReputationMetricsEnabled"]); + if (output[_RME] != null) { + contents[_RME] = __parseBoolean(output[_RME]); } - if (output["LastFreshStart"] !== undefined) { - contents.LastFreshStart = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["LastFreshStart"])); + if (output[_LFS] != null) { + contents[_LFS] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LFS])); } return contents; }; @@ -9228,11 +9180,11 @@ const de_ReputationOptions = (output: any, context: __SerdeContext): ReputationO */ const de_RuleDoesNotExistException = (output: any, context: __SerdeContext): RuleDoesNotExistException => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9242,11 +9194,11 @@ const de_RuleDoesNotExistException = (output: any, context: __SerdeContext): Rul */ const de_RuleSetDoesNotExistException = (output: any, context: __SerdeContext): RuleSetDoesNotExistException => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9256,17 +9208,17 @@ const de_RuleSetDoesNotExistException = (output: any, context: __SerdeContext): */ const de_S3Action = (output: any, context: __SerdeContext): S3Action => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["BucketName"] !== undefined) { - contents.BucketName = __expectString(output["BucketName"]); + if (output[_BN] != null) { + contents[_BN] = __expectString(output[_BN]); } - if (output["ObjectKeyPrefix"] !== undefined) { - contents.ObjectKeyPrefix = __expectString(output["ObjectKeyPrefix"]); + if (output[_OKP] != null) { + contents[_OKP] = __expectString(output[_OKP]); } - if (output["KmsKeyArn"] !== undefined) { - contents.KmsKeyArn = __expectString(output["KmsKeyArn"]); + if (output[_KKA] != null) { + contents[_KKA] = __expectString(output[_KKA]); } return contents; }; @@ -9276,8 +9228,8 @@ const de_S3Action = (output: any, context: __SerdeContext): S3Action => { */ const de_SendBounceResponse = (output: any, context: __SerdeContext): SendBounceResponse => { const contents: any = {}; - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MIe] != null) { + contents[_MIe] = __expectString(output[_MIe]); } return contents; }; @@ -9288,9 +9240,9 @@ const de_SendBounceResponse = (output: any, context: __SerdeContext): SendBounce const de_SendBulkTemplatedEmailResponse = (output: any, context: __SerdeContext): SendBulkTemplatedEmailResponse => { const contents: any = {}; if (output.Status === "") { - contents.Status = []; - } else if (output["Status"] !== undefined && output["Status"]["member"] !== undefined) { - contents.Status = de_BulkEmailDestinationStatusList(__getArrayIfSingleItem(output["Status"]["member"]), context); + contents[_St] = []; + } else if (output[_St] != null && output[_St][_me] != null) { + contents[_St] = de_BulkEmailDestinationStatusList(__getArrayIfSingleItem(output[_St][_me]), context); } return contents; }; @@ -9303,8 +9255,8 @@ const de_SendCustomVerificationEmailResponse = ( context: __SerdeContext ): SendCustomVerificationEmailResponse => { const contents: any = {}; - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MIe] != null) { + contents[_MIe] = __expectString(output[_MIe]); } return contents; }; @@ -9314,20 +9266,20 @@ const de_SendCustomVerificationEmailResponse = ( */ const de_SendDataPoint = (output: any, context: __SerdeContext): SendDataPoint => { const contents: any = {}; - if (output["Timestamp"] !== undefined) { - contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"])); + if (output[_Ti] != null) { + contents[_Ti] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_Ti])); } - if (output["DeliveryAttempts"] !== undefined) { - contents.DeliveryAttempts = __strictParseLong(output["DeliveryAttempts"]) as number; + if (output[_DAe] != null) { + contents[_DAe] = __strictParseLong(output[_DAe]) as number; } - if (output["Bounces"] !== undefined) { - contents.Bounces = __strictParseLong(output["Bounces"]) as number; + if (output[_Bo] != null) { + contents[_Bo] = __strictParseLong(output[_Bo]) as number; } - if (output["Complaints"] !== undefined) { - contents.Complaints = __strictParseLong(output["Complaints"]) as number; + if (output[_Co] != null) { + contents[_Co] = __strictParseLong(output[_Co]) as number; } - if (output["Rejects"] !== undefined) { - contents.Rejects = __strictParseLong(output["Rejects"]) as number; + if (output[_Rej] != null) { + contents[_Rej] = __strictParseLong(output[_Rej]) as number; } return contents; }; @@ -9348,8 +9300,8 @@ const de_SendDataPointList = (output: any, context: __SerdeContext): SendDataPoi */ const de_SendEmailResponse = (output: any, context: __SerdeContext): SendEmailResponse => { const contents: any = {}; - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MIe] != null) { + contents[_MIe] = __expectString(output[_MIe]); } return contents; }; @@ -9359,8 +9311,8 @@ const de_SendEmailResponse = (output: any, context: __SerdeContext): SendEmailRe */ const de_SendRawEmailResponse = (output: any, context: __SerdeContext): SendRawEmailResponse => { const contents: any = {}; - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MIe] != null) { + contents[_MIe] = __expectString(output[_MIe]); } return contents; }; @@ -9370,8 +9322,8 @@ const de_SendRawEmailResponse = (output: any, context: __SerdeContext): SendRawE */ const de_SendTemplatedEmailResponse = (output: any, context: __SerdeContext): SendTemplatedEmailResponse => { const contents: any = {}; - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MIe] != null) { + contents[_MIe] = __expectString(output[_MIe]); } return contents; }; @@ -9449,11 +9401,11 @@ const de_SetReceiptRulePositionResponse = (output: any, context: __SerdeContext) */ const de_SNSAction = (output: any, context: __SerdeContext): SNSAction => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["Encoding"] !== undefined) { - contents.Encoding = __expectString(output["Encoding"]); + if (output[_En] != null) { + contents[_En] = __expectString(output[_En]); } return contents; }; @@ -9463,8 +9415,8 @@ const de_SNSAction = (output: any, context: __SerdeContext): SNSAction => { */ const de_SNSDestination = (output: any, context: __SerdeContext): SNSDestination => { const contents: any = {}; - if (output["TopicARN"] !== undefined) { - contents.TopicARN = __expectString(output["TopicARN"]); + if (output[_TARN] != null) { + contents[_TARN] = __expectString(output[_TARN]); } return contents; }; @@ -9474,11 +9426,11 @@ const de_SNSDestination = (output: any, context: __SerdeContext): SNSDestination */ const de_StopAction = (output: any, context: __SerdeContext): StopAction => { const contents: any = {}; - if (output["Scope"] !== undefined) { - contents.Scope = __expectString(output["Scope"]); + if (output[_Sc] != null) { + contents[_Sc] = __expectString(output[_Sc]); } - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } return contents; }; @@ -9488,17 +9440,17 @@ const de_StopAction = (output: any, context: __SerdeContext): StopAction => { */ const de_Template = (output: any, context: __SerdeContext): Template => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["SubjectPart"] !== undefined) { - contents.SubjectPart = __expectString(output["SubjectPart"]); + if (output[_SP] != null) { + contents[_SP] = __expectString(output[_SP]); } - if (output["TextPart"] !== undefined) { - contents.TextPart = __expectString(output["TextPart"]); + if (output[_TPe] != null) { + contents[_TPe] = __expectString(output[_TPe]); } - if (output["HtmlPart"] !== undefined) { - contents.HtmlPart = __expectString(output["HtmlPart"]); + if (output[_HP] != null) { + contents[_HP] = __expectString(output[_HP]); } return contents; }; @@ -9508,11 +9460,11 @@ const de_Template = (output: any, context: __SerdeContext): Template => { */ const de_TemplateDoesNotExistException = (output: any, context: __SerdeContext): TemplateDoesNotExistException => { const contents: any = {}; - if (output["TemplateName"] !== undefined) { - contents.TemplateName = __expectString(output["TemplateName"]); + if (output[_TN] != null) { + contents[_TN] = __expectString(output[_TN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9522,11 +9474,11 @@ const de_TemplateDoesNotExistException = (output: any, context: __SerdeContext): */ const de_TemplateMetadata = (output: any, context: __SerdeContext): TemplateMetadata => { const contents: any = {}; - if (output["Name"] !== undefined) { - contents.Name = __expectString(output["Name"]); + if (output[_N] != null) { + contents[_N] = __expectString(output[_N]); } - if (output["CreatedTimestamp"] !== undefined) { - contents.CreatedTimestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedTimestamp"])); + if (output[_CTr] != null) { + contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } return contents; }; @@ -9547,8 +9499,8 @@ const de_TemplateMetadataList = (output: any, context: __SerdeContext): Template */ const de_TestRenderTemplateResponse = (output: any, context: __SerdeContext): TestRenderTemplateResponse => { const contents: any = {}; - if (output["RenderedTemplate"] !== undefined) { - contents.RenderedTemplate = __expectString(output["RenderedTemplate"]); + if (output[_RTe] != null) { + contents[_RTe] = __expectString(output[_RTe]); } return contents; }; @@ -9558,8 +9510,8 @@ const de_TestRenderTemplateResponse = (output: any, context: __SerdeContext): Te */ const de_TrackingOptions = (output: any, context: __SerdeContext): TrackingOptions => { const contents: any = {}; - if (output["CustomRedirectDomain"] !== undefined) { - contents.CustomRedirectDomain = __expectString(output["CustomRedirectDomain"]); + if (output[_CRD] != null) { + contents[_CRD] = __expectString(output[_CRD]); } return contents; }; @@ -9572,11 +9524,11 @@ const de_TrackingOptionsAlreadyExistsException = ( context: __SerdeContext ): TrackingOptionsAlreadyExistsException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9589,11 +9541,11 @@ const de_TrackingOptionsDoesNotExistException = ( context: __SerdeContext ): TrackingOptionsDoesNotExistException => { const contents: any = {}; - if (output["ConfigurationSetName"] !== undefined) { - contents.ConfigurationSetName = __expectString(output["ConfigurationSetName"]); + if (output[_CSN] != null) { + contents[_CSN] = __expectString(output[_CSN]); } - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -9669,9 +9621,9 @@ const de_VerificationTokenList = (output: any, context: __SerdeContext): string[ const de_VerifyDomainDkimResponse = (output: any, context: __SerdeContext): VerifyDomainDkimResponse => { const contents: any = {}; if (output.DkimTokens === "") { - contents.DkimTokens = []; - } else if (output["DkimTokens"] !== undefined && output["DkimTokens"]["member"] !== undefined) { - contents.DkimTokens = de_VerificationTokenList(__getArrayIfSingleItem(output["DkimTokens"]["member"]), context); + contents[_DTk] = []; + } else if (output[_DTk] != null && output[_DTk][_me] != null) { + contents[_DTk] = de_VerificationTokenList(__getArrayIfSingleItem(output[_DTk][_me]), context); } return contents; }; @@ -9681,8 +9633,8 @@ const de_VerifyDomainDkimResponse = (output: any, context: __SerdeContext): Veri */ const de_VerifyDomainIdentityResponse = (output: any, context: __SerdeContext): VerifyDomainIdentityResponse => { const contents: any = {}; - if (output["VerificationToken"] !== undefined) { - contents.VerificationToken = __expectString(output["VerificationToken"]); + if (output[_VT] != null) { + contents[_VT] = __expectString(output[_VT]); } return contents; }; @@ -9700,11 +9652,11 @@ const de_VerifyEmailIdentityResponse = (output: any, context: __SerdeContext): V */ const de_WorkmailAction = (output: any, context: __SerdeContext): WorkmailAction => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } - if (output["OrganizationArn"] !== undefined) { - contents.OrganizationArn = __expectString(output["OrganizationArn"]); + if (output[_OA] != null) { + contents[_OA] = __expectString(output[_OA]); } return contents; }; @@ -9750,6 +9702,257 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2010-12-01"; +const _A = "Action"; +const _AD = "ArrivalDate"; +const _AHA = "AddHeaderAction"; +const _Ac = "Actions"; +const _Af = "After"; +const _B = "Body"; +const _BA = "BccAddresses"; +const _BAo = "BounceAction"; +const _BN = "BucketName"; +const _BOMXF = "BehaviorOnMXFailure"; +const _BRIL = "BouncedRecipientInfoList"; +const _BS = "BounceSender"; +const _BSA = "BounceSenderArn"; +const _BT = "BounceType"; +const _BTo = "BounceTopic"; +const _Bo = "Bounces"; +const _Bu = "Bucket"; +const _C = "Charset"; +const _CA = "CcAddresses"; +const _CCS = "CreateConfigurationSet"; +const _CCSED = "CreateConfigurationSetEventDestination"; +const _CCSTO = "CreateConfigurationSetTrackingOptions"; +const _CCVET = "CreateCustomVerificationEmailTemplate"; +const _CRD = "CustomRedirectDomain"; +const _CRF = "CreateReceiptFilter"; +const _CRR = "CreateReceiptRule"; +const _CRRS = "CloneReceiptRuleSet"; +const _CRRSr = "CreateReceiptRuleSet"; +const _CS = "ConfigurationSet"; +const _CSAN = "ConfigurationSetAttributeNames"; +const _CSN = "ConfigurationSetName"; +const _CSo = "ConfigurationSets"; +const _CT = "CreateTemplate"; +const _CTo = "ComplaintTopic"; +const _CTr = "CreatedTimestamp"; +const _CVET = "CustomVerificationEmailTemplates"; +const _CVETN = "CustomVerificationEmailTemplateName"; +const _CWD = "CloudWatchDestination"; +const _Ci = "Cidr"; +const _Co = "Complaints"; +const _D = "Destination"; +const _DA = "DkimAttributes"; +const _DARRS = "DescribeActiveReceiptRuleSet"; +const _DAe = "DeliveryAttempts"; +const _DC = "DimensionConfigurations"; +const _DCS = "DeleteConfigurationSet"; +const _DCSED = "DeleteConfigurationSetEventDestination"; +const _DCSTO = "DeleteConfigurationSetTrackingOptions"; +const _DCSe = "DescribeConfigurationSet"; +const _DCVET = "DeleteCustomVerificationEmailTemplate"; +const _DCi = "DiagnosticCode"; +const _DDV = "DefaultDimensionValue"; +const _DE = "DkimEnabled"; +const _DI = "DeleteIdentity"; +const _DIP = "DeleteIdentityPolicy"; +const _DN = "DimensionName"; +const _DO = "DeliveryOptions"; +const _DRF = "DeleteReceiptFilter"; +const _DRR = "DeleteReceiptRule"; +const _DRRS = "DeleteReceiptRuleSet"; +const _DRRSe = "DescribeReceiptRuleSet"; +const _DRRe = "DescribeReceiptRule"; +const _DSARN = "DeliveryStreamARN"; +const _DT = "DeleteTemplate"; +const _DTD = "DefaultTemplateData"; +const _DTe = "DefaultTags"; +const _DTel = "DeliveryTopic"; +const _DTk = "DkimTokens"; +const _DVEA = "DeleteVerifiedEmailAddress"; +const _DVS = "DimensionValueSource"; +const _DVSk = "DkimVerificationStatus"; +const _Da = "Data"; +const _De = "Destinations"; +const _Do = "Domain"; +const _E = "Enabled"; +const _EA = "EmailAddress"; +const _ED = "EventDestination"; +const _EDN = "EventDestinationName"; +const _EDv = "EventDestinations"; +const _EF = "ExtensionFields"; +const _En = "Encoding"; +const _Er = "Error"; +const _Ex = "Explanation"; +const _F = "Filter"; +const _FA = "FunctionArn"; +const _FAr = "FromArn"; +const _FE = "ForwardingEnabled"; +const _FEA = "FromEmailAddress"; +const _FN = "FilterName"; +const _FR = "FinalRecipient"; +const _FRURL = "FailureRedirectionURL"; +const _Fi = "Filters"; +const _GASE = "GetAccountSendingEnabled"; +const _GCVET = "GetCustomVerificationEmailTemplate"; +const _GIDA = "GetIdentityDkimAttributes"; +const _GIMFDA = "GetIdentityMailFromDomainAttributes"; +const _GINA = "GetIdentityNotificationAttributes"; +const _GIP = "GetIdentityPolicies"; +const _GIVA = "GetIdentityVerificationAttributes"; +const _GSQ = "GetSendQuota"; +const _GSS = "GetSendStatistics"; +const _GT = "GetTemplate"; +const _H = "Html"; +const _HIBNE = "HeadersInBounceNotificationsEnabled"; +const _HICNE = "HeadersInComplaintNotificationsEnabled"; +const _HIDNE = "HeadersInDeliveryNotificationsEnabled"; +const _HN = "HeaderName"; +const _HP = "HtmlPart"; +const _HV = "HeaderValue"; +const _I = "Identity"; +const _IAMRARN = "IAMRoleARN"; +const _IF = "IpFilter"; +const _IT = "InvocationType"; +const _ITd = "IdentityType"; +const _Id = "Identities"; +const _KFD = "KinesisFirehoseDestination"; +const _KKA = "KmsKeyArn"; +const _LA = "LambdaAction"; +const _LAD = "LastAttemptDate"; +const _LCS = "ListConfigurationSets"; +const _LCVET = "ListCustomVerificationEmailTemplates"; +const _LFS = "LastFreshStart"; +const _LI = "ListIdentities"; +const _LIP = "ListIdentityPolicies"; +const _LRF = "ListReceiptFilters"; +const _LRRS = "ListReceiptRuleSets"; +const _LT = "ListTemplates"; +const _LVEA = "ListVerifiedEmailAddresses"; +const _M = "Message"; +const _MD = "MessageDsn"; +const _MET = "MatchingEventTypes"; +const _MFD = "MailFromDomain"; +const _MFDA = "MailFromDomainAttributes"; +const _MFDS = "MailFromDomainStatus"; +const _MHS = "Max24HourSend"; +const _MI = "MaxItems"; +const _MIe = "MessageId"; +const _MR = "MaxResults"; +const _MSR = "MaxSendRate"; +const _Me = "Metadata"; +const _N = "Name"; +const _NA = "NotificationAttributes"; +const _NT = "NextToken"; +const _NTo = "NotificationType"; +const _OA = "OrganizationArn"; +const _OKP = "ObjectKeyPrefix"; +const _OMI = "OriginalMessageId"; +const _ORSN = "OriginalRuleSetName"; +const _P = "Policy"; +const _PCSDO = "PutConfigurationSetDeliveryOptions"; +const _PIP = "PutIdentityPolicy"; +const _PN = "PolicyName"; +const _PNo = "PolicyNames"; +const _Po = "Policies"; +const _R = "Recipient"; +const _RA = "RecipientArn"; +const _RDF = "RecipientDsnFields"; +const _RM = "ReportingMta"; +const _RME = "ReputationMetricsEnabled"; +const _RMa = "RawMessage"; +const _RMe = "RemoteMta"; +const _RN = "RuleName"; +const _RNu = "RuleNames"; +const _RO = "ReputationOptions"; +const _RP = "ReturnPath"; +const _RPA = "ReturnPathArn"; +const _RRRS = "ReorderReceiptRuleSet"; +const _RS = "RuleSets"; +const _RSN = "RuleSetName"; +const _RT = "ReplacementTags"; +const _RTA = "ReplyToAddresses"; +const _RTD = "ReplacementTemplateData"; +const _RTe = "RenderedTemplate"; +const _Re = "Recipients"; +const _Rej = "Rejects"; +const _Ru = "Rule"; +const _Rul = "Rules"; +const _S = "Sender"; +const _SA = "S3Action"; +const _SARRS = "SetActiveReceiptRuleSet"; +const _SAo = "SourceArn"; +const _SAt = "StopAction"; +const _SB = "SendBounce"; +const _SBTE = "SendBulkTemplatedEmail"; +const _SC = "StatusCode"; +const _SCVE = "SendCustomVerificationEmail"; +const _SDP = "SendDataPoints"; +const _SE = "SendEmail"; +const _SEc = "ScanEnabled"; +const _SEe = "SendingEnabled"; +const _SIDE = "SetIdentityDkimEnabled"; +const _SIFFE = "SetIdentityFeedbackForwardingEnabled"; +const _SIHINE = "SetIdentityHeadersInNotificationsEnabled"; +const _SIMFD = "SetIdentityMailFromDomain"; +const _SINT = "SetIdentityNotificationTopic"; +const _SLH = "SentLast24Hours"; +const _SNSA = "SNSAction"; +const _SNSD = "SNSDestination"; +const _SP = "SubjectPart"; +const _SRC = "SmtpReplyCode"; +const _SRE = "SendRawEmail"; +const _SRRP = "SetReceiptRulePosition"; +const _SRURL = "SuccessRedirectionURL"; +const _ST = "SnsTopic"; +const _STE = "SendTemplatedEmail"; +const _Sc = "Scope"; +const _So = "Source"; +const _St = "Status"; +const _Su = "Subject"; +const _T = "Text"; +const _TA = "TopicArn"; +const _TARN = "TopicARN"; +const _TAe = "TemplateArn"; +const _TAo = "ToAddresses"; +const _TC = "TemplateContent"; +const _TD = "TemplateData"; +const _TM = "TemplatesMetadata"; +const _TN = "TemplateName"; +const _TO = "TrackingOptions"; +const _TP = "TlsPolicy"; +const _TPe = "TextPart"; +const _TRT = "TestRenderTemplate"; +const _TS = "TemplateSubject"; +const _Ta = "Tags"; +const _Te = "Template"; +const _Ti = "Timestamp"; +const _To = "Topic"; +const _UASE = "UpdateAccountSendingEnabled"; +const _UCSED = "UpdateConfigurationSetEventDestination"; +const _UCSRME = "UpdateConfigurationSetReputationMetricsEnabled"; +const _UCSSE = "UpdateConfigurationSetSendingEnabled"; +const _UCSTO = "UpdateConfigurationSetTrackingOptions"; +const _UCVET = "UpdateCustomVerificationEmailTemplate"; +const _URR = "UpdateReceiptRule"; +const _UT = "UpdateTemplate"; +const _V = "Version"; +const _VA = "VerificationAttributes"; +const _VDD = "VerifyDomainDkim"; +const _VDI = "VerifyDomainIdentity"; +const _VEA = "VerifyEmailAddress"; +const _VEAe = "VerifiedEmailAddresses"; +const _VEI = "VerifyEmailIdentity"; +const _VS = "VerificationStatus"; +const _VT = "VerificationToken"; +const _Va = "Value"; +const _WA = "WorkmailAction"; +const _e = "entry"; +const _m = "message"; +const _me = "member"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sesv2/package.json b/clients/client-sesv2/package.json index 317454db8497..cd6131ecc626 100644 --- a/clients/client-sesv2/package.json +++ b/clients/client-sesv2/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sesv2/src/protocols/Aws_restJson1.ts b/clients/client-sesv2/src/protocols/Aws_restJson1.ts index f4e71a499035..f42e3c7904a8 100644 --- a/clients/client-sesv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-sesv2/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -402,27 +403,19 @@ export const se_BatchGetMetricDataCommand = async ( input: BatchGetMetricDataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/metrics/batch"; + b.bp("/v2/email/metrics/batch"); let body: any; body = JSON.stringify( take(input, { Queries: (_) => se_BatchGetMetricDataQueries(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -432,21 +425,13 @@ export const se_CancelExportJobCommand = async ( input: CancelExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/export-jobs/{JobId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v2/email/export-jobs/{JobId}/cancel"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -456,12 +441,11 @@ export const se_CreateConfigurationSetCommand = async ( input: CreateConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets"; + b.bp("/v2/email/configuration-sets"); let body: any; body = JSON.stringify( take(input, { @@ -475,15 +459,8 @@ export const se_CreateConfigurationSetCommand = async ( VdmOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -493,21 +470,12 @@ export const se_CreateConfigurationSetEventDestinationCommand = async ( input: CreateConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -515,15 +483,8 @@ export const se_CreateConfigurationSetEventDestinationCommand = async ( EventDestinationName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -533,21 +494,12 @@ export const se_CreateContactCommand = async ( input: CreateContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/contact-lists/{ContactListName}/contacts"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}/contacts"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); let body: any; body = JSON.stringify( take(input, { @@ -557,15 +509,8 @@ export const se_CreateContactCommand = async ( UnsubscribeAll: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -575,12 +520,11 @@ export const se_CreateContactListCommand = async ( input: CreateContactListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists"; + b.bp("/v2/email/contact-lists"); let body: any; body = JSON.stringify( take(input, { @@ -590,15 +534,8 @@ export const se_CreateContactListCommand = async ( Topics: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -608,13 +545,11 @@ export const se_CreateCustomVerificationEmailTemplateCommand = async ( input: CreateCustomVerificationEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/custom-verification-email-templates"; + b.bp("/v2/email/custom-verification-email-templates"); let body: any; body = JSON.stringify( take(input, { @@ -626,15 +561,8 @@ export const se_CreateCustomVerificationEmailTemplateCommand = async ( TemplateSubject: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -644,12 +572,11 @@ export const se_CreateDedicatedIpPoolCommand = async ( input: CreateDedicatedIpPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools"; + b.bp("/v2/email/dedicated-ip-pools"); let body: any; body = JSON.stringify( take(input, { @@ -658,15 +585,8 @@ export const se_CreateDedicatedIpPoolCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -676,12 +596,11 @@ export const se_CreateDeliverabilityTestReportCommand = async ( input: CreateDeliverabilityTestReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard/test"; + b.bp("/v2/email/deliverability-dashboard/test"); let body: any; body = JSON.stringify( take(input, { @@ -691,15 +610,8 @@ export const se_CreateDeliverabilityTestReportCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -709,11 +621,11 @@ export const se_CreateEmailIdentityCommand = async ( input: CreateEmailIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities"; + b.bp("/v2/email/identities"); let body: any; body = JSON.stringify( take(input, { @@ -723,15 +635,8 @@ export const se_CreateEmailIdentityCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -741,37 +646,21 @@ export const se_CreateEmailIdentityPolicyCommand = async ( input: CreateEmailIdentityPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "PolicyName", () => input.PolicyName!, "{PolicyName}", false); + b.bp("/v2/email/identities/{EmailIdentity}/policies/{PolicyName}"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); + b.p("PolicyName", () => input.PolicyName!, "{PolicyName}", false); let body: any; body = JSON.stringify( take(input, { Policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -781,11 +670,11 @@ export const se_CreateEmailTemplateCommand = async ( input: CreateEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates"; + b.bp("/v2/email/templates"); let body: any; body = JSON.stringify( take(input, { @@ -793,15 +682,8 @@ export const se_CreateEmailTemplateCommand = async ( TemplateName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -811,11 +693,11 @@ export const se_CreateExportJobCommand = async ( input: CreateExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/export-jobs"; + b.bp("/v2/email/export-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -823,15 +705,8 @@ export const se_CreateExportJobCommand = async ( ExportDestination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -841,11 +716,11 @@ export const se_CreateImportJobCommand = async ( input: CreateImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs"; + b.bp("/v2/email/import-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -853,15 +728,8 @@ export const se_CreateImportJobCommand = async ( ImportDestination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -871,29 +739,13 @@ export const se_DeleteConfigurationSetCommand = async ( input: DeleteConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -903,37 +755,14 @@ export const se_DeleteConfigurationSetEventDestinationCommand = async ( input: DeleteConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventDestinationName", - () => input.EventDestinationName!, - "{EventDestinationName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); + b.p("EventDestinationName", () => input.EventDestinationName!, "{EventDestinationName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -943,37 +772,14 @@ export const se_DeleteContactCommand = async ( input: DeleteContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailAddress", - () => input.EmailAddress!, - "{EmailAddress}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); + b.p("EmailAddress", () => input.EmailAddress!, "{EmailAddress}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -983,28 +789,13 @@ export const se_DeleteContactListCommand = async ( input: DeleteContactListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1014,29 +805,13 @@ export const se_DeleteCustomVerificationEmailTemplateCommand = async ( input: DeleteCustomVerificationEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/custom-verification-email-templates/{TemplateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v2/email/custom-verification-email-templates/{TemplateName}"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1046,21 +821,13 @@ export const se_DeleteDedicatedIpPoolCommand = async ( input: DeleteDedicatedIpPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PoolName", () => input.PoolName!, "{PoolName}", false); + b.bp("/v2/email/dedicated-ip-pools/{PoolName}"); + b.p("PoolName", () => input.PoolName!, "{PoolName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1070,28 +837,13 @@ export const se_DeleteEmailIdentityCommand = async ( input: DeleteEmailIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v2/email/identities/{EmailIdentity}"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1101,30 +853,14 @@ export const se_DeleteEmailIdentityPolicyCommand = async ( input: DeleteEmailIdentityPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "PolicyName", () => input.PolicyName!, "{PolicyName}", false); + b.bp("/v2/email/identities/{EmailIdentity}/policies/{PolicyName}"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); + b.p("PolicyName", () => input.PolicyName!, "{PolicyName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1134,28 +870,13 @@ export const se_DeleteEmailTemplateCommand = async ( input: DeleteEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v2/email/templates/{TemplateName}"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1165,29 +886,13 @@ export const se_DeleteSuppressedDestinationCommand = async ( input: DeleteSuppressedDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/suppression/addresses/{EmailAddress}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailAddress", - () => input.EmailAddress!, - "{EmailAddress}", - false - ); + b.bp("/v2/email/suppression/addresses/{EmailAddress}"); + b.p("EmailAddress", () => input.EmailAddress!, "{EmailAddress}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1197,22 +902,15 @@ export const se_GetAccountCommand = async ( input: GetAccountCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account"; + b.bp("/v2/email/account"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1222,28 +920,18 @@ export const se_GetBlacklistReportsCommand = async ( input: GetBlacklistReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/deliverability-dashboard/blacklist-report"; + b.bp("/v2/email/deliverability-dashboard/blacklist-report"); const query: any = map({ - BlacklistItemNames: [ + [_BIN]: [ __expectNonNull(input.BlacklistItemNames, `BlacklistItemNames`) != null, - () => (input.BlacklistItemNames! || []).map((_entry) => _entry as any), + () => (input[_BIN]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1253,29 +941,13 @@ export const se_GetConfigurationSetCommand = async ( input: GetConfigurationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1285,29 +957,13 @@ export const se_GetConfigurationSetEventDestinationsCommand = async ( input: GetConfigurationSetEventDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1317,37 +973,14 @@ export const se_GetContactCommand = async ( input: GetContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailAddress", - () => input.EmailAddress!, - "{EmailAddress}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); + b.p("EmailAddress", () => input.EmailAddress!, "{EmailAddress}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1357,28 +990,13 @@ export const se_GetContactListCommand = async ( input: GetContactListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1388,29 +1006,13 @@ export const se_GetCustomVerificationEmailTemplateCommand = async ( input: GetCustomVerificationEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/custom-verification-email-templates/{TemplateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v2/email/custom-verification-email-templates/{TemplateName}"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1420,21 +1022,13 @@ export const se_GetDedicatedIpCommand = async ( input: GetDedicatedIpCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip!, "{Ip}", false); + b.bp("/v2/email/dedicated-ips/{Ip}"); + b.p("Ip", () => input.Ip!, "{Ip}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1444,21 +1038,13 @@ export const se_GetDedicatedIpPoolCommand = async ( input: GetDedicatedIpPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "PoolName", () => input.PoolName!, "{PoolName}", false); + b.bp("/v2/email/dedicated-ip-pools/{PoolName}"); + b.p("PoolName", () => input.PoolName!, "{PoolName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1468,26 +1054,17 @@ export const se_GetDedicatedIpsCommand = async ( input: GetDedicatedIpsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips"; + b.bp("/v2/email/dedicated-ips"); const query: any = map({ - PoolName: [, input.PoolName!], - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_PN]: [, input[_PN]!], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1497,23 +1074,15 @@ export const se_GetDeliverabilityDashboardOptionsCommand = async ( input: GetDeliverabilityDashboardOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard"; + b.bp("/v2/email/deliverability-dashboard"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1523,22 +1092,13 @@ export const se_GetDeliverabilityTestReportCommand = async ( input: GetDeliverabilityTestReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/deliverability-dashboard/test-reports/{ReportId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ReportId", () => input.ReportId!, "{ReportId}", false); + b.bp("/v2/email/deliverability-dashboard/test-reports/{ReportId}"); + b.p("ReportId", () => input.ReportId!, "{ReportId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1548,22 +1108,13 @@ export const se_GetDomainDeliverabilityCampaignCommand = async ( input: GetDomainDeliverabilityCampaignCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/deliverability-dashboard/campaigns/{CampaignId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId!, "{CampaignId}", false); + b.bp("/v2/email/deliverability-dashboard/campaigns/{CampaignId}"); + b.p("CampaignId", () => input.CampaignId!, "{CampaignId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1573,33 +1124,23 @@ export const se_GetDomainStatisticsReportCommand = async ( input: GetDomainStatisticsReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/deliverability-dashboard/statistics-report/{Domain}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Domain", () => input.Domain!, "{Domain}", false); + b.bp("/v2/email/deliverability-dashboard/statistics-report/{Domain}"); + b.p("Domain", () => input.Domain!, "{Domain}", false); const query: any = map({ - StartDate: [ + [_SD]: [ __expectNonNull(input.StartDate, `StartDate`) != null, - () => (input.StartDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_SD]!.toISOString().split(".")[0] + "Z").toString(), ], - EndDate: [ + [_ED]: [ __expectNonNull(input.EndDate, `EndDate`) != null, - () => (input.EndDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_ED]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1609,28 +1150,13 @@ export const se_GetEmailIdentityCommand = async ( input: GetEmailIdentityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v2/email/identities/{EmailIdentity}"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1640,29 +1166,13 @@ export const se_GetEmailIdentityPoliciesCommand = async ( input: GetEmailIdentityPoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/identities/{EmailIdentity}/policies"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v2/email/identities/{EmailIdentity}/policies"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1672,28 +1182,13 @@ export const se_GetEmailTemplateCommand = async ( input: GetEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v2/email/templates/{TemplateName}"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1703,21 +1198,13 @@ export const se_GetExportJobCommand = async ( input: GetExportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/export-jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v2/email/export-jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1727,21 +1214,13 @@ export const se_GetImportJobCommand = async ( input: GetImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs/{JobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "JobId", () => input.JobId!, "{JobId}", false); + b.bp("/v2/email/import-jobs/{JobId}"); + b.p("JobId", () => input.JobId!, "{JobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1751,21 +1230,13 @@ export const se_GetMessageInsightsCommand = async ( input: GetMessageInsightsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/insights/{MessageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId!, "{MessageId}", false); + b.bp("/v2/email/insights/{MessageId}"); + b.p("MessageId", () => input.MessageId!, "{MessageId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1775,29 +1246,13 @@ export const se_GetSuppressedDestinationCommand = async ( input: GetSuppressedDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/suppression/addresses/{EmailAddress}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailAddress", - () => input.EmailAddress!, - "{EmailAddress}", - false - ); + b.bp("/v2/email/suppression/addresses/{EmailAddress}"); + b.p("EmailAddress", () => input.EmailAddress!, "{EmailAddress}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1807,25 +1262,16 @@ export const se_ListConfigurationSetsCommand = async ( input: ListConfigurationSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets"; + b.bp("/v2/email/configuration-sets"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1835,25 +1281,16 @@ export const se_ListContactListsCommand = async ( input: ListContactListsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists"; + b.bp("/v2/email/contact-lists"); const query: any = map({ - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], - NextToken: [, input.NextToken!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1863,24 +1300,15 @@ export const se_ListContactsCommand = async ( input: ListContactsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/contact-lists/{ContactListName}/contacts"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}/contacts"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); const query: any = map({ - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], - NextToken: [, input.NextToken!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], + [_NT]: [, input[_NT]!], }); let body: any; body = JSON.stringify( @@ -1888,16 +1316,8 @@ export const se_ListContactsCommand = async ( Filter: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1907,26 +1327,16 @@ export const se_ListCustomVerificationEmailTemplatesCommand = async ( input: ListCustomVerificationEmailTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/custom-verification-email-templates"; + b.bp("/v2/email/custom-verification-email-templates"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1936,25 +1346,16 @@ export const se_ListDedicatedIpPoolsCommand = async ( input: ListDedicatedIpPoolsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools"; + b.bp("/v2/email/dedicated-ip-pools"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1964,26 +1365,16 @@ export const se_ListDeliverabilityTestReportsCommand = async ( input: ListDeliverabilityTestReportsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/deliverability-dashboard/test-reports"; + b.bp("/v2/email/deliverability-dashboard/test-reports"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1993,42 +1384,25 @@ export const se_ListDomainDeliverabilityCampaignsCommand = async ( input: ListDomainDeliverabilityCampaignsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscribedDomain", - () => input.SubscribedDomain!, - "{SubscribedDomain}", - false - ); + b.bp("/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns"); + b.p("SubscribedDomain", () => input.SubscribedDomain!, "{SubscribedDomain}", false); const query: any = map({ - StartDate: [ + [_SD]: [ __expectNonNull(input.StartDate, `StartDate`) != null, - () => (input.StartDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_SD]!.toISOString().split(".")[0] + "Z").toString(), ], - EndDate: [ + [_ED]: [ __expectNonNull(input.EndDate, `EndDate`) != null, - () => (input.EndDate!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_ED]!.toISOString().split(".")[0] + "Z").toString(), ], - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2038,24 +1412,16 @@ export const se_ListEmailIdentitiesCommand = async ( input: ListEmailIdentitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities"; + b.bp("/v2/email/identities"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2065,24 +1431,16 @@ export const se_ListEmailTemplatesCommand = async ( input: ListEmailTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates"; + b.bp("/v2/email/templates"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2092,12 +1450,11 @@ export const se_ListExportJobsCommand = async ( input: ListExportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/list-export-jobs"; + b.bp("/v2/email/list-export-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -2107,15 +1464,8 @@ export const se_ListExportJobsCommand = async ( PageSize: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2125,14 +1475,14 @@ export const se_ListImportJobsCommand = async ( input: ListImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs"; + b.bp("/v2/email/import-jobs"); const query: any = map({ - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; body = JSON.stringify( @@ -2140,16 +1490,8 @@ export const se_ListImportJobsCommand = async ( ImportDestinationType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2159,12 +1501,11 @@ export const se_ListRecommendationsCommand = async ( input: ListRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/vdm/recommendations"; + b.bp("/v2/email/vdm/recommendations"); let body: any; body = JSON.stringify( take(input, { @@ -2173,15 +1514,8 @@ export const se_ListRecommendationsCommand = async ( PageSize: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2191,31 +1525,19 @@ export const se_ListSuppressedDestinationsCommand = async ( input: ListSuppressedDestinationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses"; + b.bp("/v2/email/suppression/addresses"); const query: any = map({ - Reason: [() => input.Reasons !== void 0, () => (input.Reasons! || []).map((_entry) => _entry as any)], - StartDate: [ - () => input.StartDate !== void 0, - () => (input.StartDate!.toISOString().split(".")[0] + "Z").toString(), - ], - EndDate: [() => input.EndDate !== void 0, () => (input.EndDate!.toISOString().split(".")[0] + "Z").toString()], - NextToken: [, input.NextToken!], - PageSize: [() => input.PageSize !== void 0, () => input.PageSize!.toString()], + [_Re]: [() => input.Reasons !== void 0, () => (input[_R]! || []).map((_entry) => _entry as any)], + [_SD]: [() => input.StartDate !== void 0, () => (input[_SD]!.toISOString().split(".")[0] + "Z").toString()], + [_ED]: [() => input.EndDate !== void 0, () => (input[_ED]!.toISOString().split(".")[0] + "Z").toString()], + [_NT]: [, input[_NT]!], + [_PS]: [() => input.PageSize !== void 0, () => input[_PS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2225,23 +1547,15 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags"; + b.bp("/v2/email/tags"); const query: any = map({ - ResourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], + [_RA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2251,27 +1565,19 @@ export const se_PutAccountDedicatedIpWarmupAttributesCommand = async ( input: PutAccountDedicatedIpWarmupAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/dedicated-ips/warmup"; + b.bp("/v2/email/account/dedicated-ips/warmup"); let body: any; body = JSON.stringify( take(input, { AutoWarmupEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2281,12 +1587,11 @@ export const se_PutAccountDetailsCommand = async ( input: PutAccountDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/details"; + b.bp("/v2/email/account/details"); let body: any; body = JSON.stringify( take(input, { @@ -2298,15 +1603,8 @@ export const se_PutAccountDetailsCommand = async ( WebsiteURL: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2316,27 +1614,19 @@ export const se_PutAccountSendingAttributesCommand = async ( input: PutAccountSendingAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/sending"; + b.bp("/v2/email/account/sending"); let body: any; body = JSON.stringify( take(input, { SendingEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2346,27 +1636,19 @@ export const se_PutAccountSuppressionAttributesCommand = async ( input: PutAccountSuppressionAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/suppression"; + b.bp("/v2/email/account/suppression"); let body: any; body = JSON.stringify( take(input, { SuppressedReasons: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2376,26 +1658,19 @@ export const se_PutAccountVdmAttributesCommand = async ( input: PutAccountVdmAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/vdm"; + b.bp("/v2/email/account/vdm"); let body: any; body = JSON.stringify( take(input, { VdmAttributes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2405,21 +1680,12 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async ( input: PutConfigurationSetDeliveryOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/delivery-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/delivery-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { @@ -2427,15 +1693,8 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async ( TlsPolicy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2445,36 +1704,20 @@ export const se_PutConfigurationSetReputationOptionsCommand = async ( input: PutConfigurationSetReputationOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/reputation-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/reputation-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { ReputationMetricsEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2484,36 +1727,20 @@ export const se_PutConfigurationSetSendingOptionsCommand = async ( input: PutConfigurationSetSendingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/sending"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/sending"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { SendingEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2523,36 +1750,20 @@ export const se_PutConfigurationSetSuppressionOptionsCommand = async ( input: PutConfigurationSetSuppressionOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/suppression-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/suppression-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { SuppressedReasons: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2562,36 +1773,20 @@ export const se_PutConfigurationSetTrackingOptionsCommand = async ( input: PutConfigurationSetTrackingOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/tracking-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/tracking-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { CustomRedirectDomain: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2601,36 +1796,20 @@ export const se_PutConfigurationSetVdmOptionsCommand = async ( input: PutConfigurationSetVdmOptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/vdm-options"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/vdm-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); let body: any; body = JSON.stringify( take(input, { VdmOptions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2640,28 +1819,20 @@ export const se_PutDedicatedIpInPoolCommand = async ( input: PutDedicatedIpInPoolCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/pool"; - resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip!, "{Ip}", false); + b.bp("/v2/email/dedicated-ips/{Ip}/pool"); + b.p("Ip", () => input.Ip!, "{Ip}", false); let body: any; body = JSON.stringify( take(input, { DestinationPoolName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2671,29 +1842,20 @@ export const se_PutDedicatedIpPoolScalingAttributesCommand = async ( input: PutDedicatedIpPoolScalingAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/dedicated-ip-pools/{PoolName}/scaling"; - resolvedPath = __resolvedPath(resolvedPath, input, "PoolName", () => input.PoolName!, "{PoolName}", false); + b.bp("/v2/email/dedicated-ip-pools/{PoolName}/scaling"); + b.p("PoolName", () => input.PoolName!, "{PoolName}", false); let body: any; body = JSON.stringify( take(input, { ScalingMode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2703,28 +1865,20 @@ export const se_PutDedicatedIpWarmupAttributesCommand = async ( input: PutDedicatedIpWarmupAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/warmup"; - resolvedPath = __resolvedPath(resolvedPath, input, "Ip", () => input.Ip!, "{Ip}", false); + b.bp("/v2/email/dedicated-ips/{Ip}/warmup"); + b.p("Ip", () => input.Ip!, "{Ip}", false); let body: any; body = JSON.stringify( take(input, { WarmupPercentage: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2734,12 +1888,11 @@ export const se_PutDeliverabilityDashboardOptionCommand = async ( input: PutDeliverabilityDashboardOptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard"; + b.bp("/v2/email/deliverability-dashboard"); let body: any; body = JSON.stringify( take(input, { @@ -2747,15 +1900,8 @@ export const se_PutDeliverabilityDashboardOptionCommand = async ( SubscribedDomains: (_) => se_DomainDeliverabilityTrackingOptions(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2765,36 +1911,20 @@ export const se_PutEmailIdentityConfigurationSetAttributesCommand = async ( input: PutEmailIdentityConfigurationSetAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/identities/{EmailIdentity}/configuration-set"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v2/email/identities/{EmailIdentity}/configuration-set"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { ConfigurationSetName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2804,35 +1934,20 @@ export const se_PutEmailIdentityDkimAttributesCommand = async ( input: PutEmailIdentityDkimAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}/dkim"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v2/email/identities/{EmailIdentity}/dkim"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { SigningEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2842,21 +1957,12 @@ export const se_PutEmailIdentityDkimSigningAttributesCommand = async ( input: PutEmailIdentityDkimSigningAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/email/identities/{EmailIdentity}/dkim/signing"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v1/email/identities/{EmailIdentity}/dkim/signing"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { @@ -2864,15 +1970,8 @@ export const se_PutEmailIdentityDkimSigningAttributesCommand = async ( SigningAttributesOrigin: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2882,36 +1981,20 @@ export const se_PutEmailIdentityFeedbackAttributesCommand = async ( input: PutEmailIdentityFeedbackAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/identities/{EmailIdentity}/feedback"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v2/email/identities/{EmailIdentity}/feedback"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { EmailForwardingEnabled: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2921,21 +2004,12 @@ export const se_PutEmailIdentityMailFromAttributesCommand = async ( input: PutEmailIdentityMailFromAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/identities/{EmailIdentity}/mail-from"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); + b.bp("/v2/email/identities/{EmailIdentity}/mail-from"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); let body: any; body = JSON.stringify( take(input, { @@ -2943,15 +2017,8 @@ export const se_PutEmailIdentityMailFromAttributesCommand = async ( MailFromDomain: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2961,12 +2028,11 @@ export const se_PutSuppressedDestinationCommand = async ( input: PutSuppressedDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses"; + b.bp("/v2/email/suppression/addresses"); let body: any; body = JSON.stringify( take(input, { @@ -2974,15 +2040,8 @@ export const se_PutSuppressedDestinationCommand = async ( Reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2992,12 +2051,11 @@ export const se_SendBulkEmailCommand = async ( input: SendBulkEmailCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-bulk-emails"; + b.bp("/v2/email/outbound-bulk-emails"); let body: any; body = JSON.stringify( take(input, { @@ -3012,15 +2070,8 @@ export const se_SendBulkEmailCommand = async ( ReplyToAddresses: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3030,13 +2081,11 @@ export const se_SendCustomVerificationEmailCommand = async ( input: SendCustomVerificationEmailCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/outbound-custom-verification-emails"; + b.bp("/v2/email/outbound-custom-verification-emails"); let body: any; body = JSON.stringify( take(input, { @@ -3045,15 +2094,8 @@ export const se_SendCustomVerificationEmailCommand = async ( TemplateName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3063,12 +2105,11 @@ export const se_SendEmailCommand = async ( input: SendEmailCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-emails"; + b.bp("/v2/email/outbound-emails"); let body: any; body = JSON.stringify( take(input, { @@ -3084,15 +2125,8 @@ export const se_SendEmailCommand = async ( ReplyToAddresses: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3102,11 +2136,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags"; + b.bp("/v2/email/tags"); let body: any; body = JSON.stringify( take(input, { @@ -3114,15 +2148,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3132,35 +2159,20 @@ export const se_TestRenderEmailTemplateCommand = async ( input: TestRenderEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}/render"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v2/email/templates/{TemplateName}/render"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; body = JSON.stringify( take(input, { TemplateData: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3170,27 +2182,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags"; + b.bp("/v2/email/tags"); const query: any = map({ - ResourceArn: [, __expectNonNull(input.ResourceArn!, `ResourceArn`)], - TagKeys: [ + [_RA]: [, __expectNonNull(input[_RA]!, `ResourceArn`)], + [_TK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -3200,44 +2204,21 @@ export const se_UpdateConfigurationSetEventDestinationCommand = async ( input: UpdateConfigurationSetEventDestinationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ConfigurationSetName", - () => input.ConfigurationSetName!, - "{ConfigurationSetName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EventDestinationName", - () => input.EventDestinationName!, - "{EventDestinationName}", - false - ); + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); + b.p("EventDestinationName", () => input.EventDestinationName!, "{EventDestinationName}", false); let body: any; body = JSON.stringify( take(input, { EventDestination: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3247,29 +2228,13 @@ export const se_UpdateContactCommand = async ( input: UpdateContactCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailAddress", - () => input.EmailAddress!, - "{EmailAddress}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); + b.p("EmailAddress", () => input.EmailAddress!, "{EmailAddress}", false); let body: any; body = JSON.stringify( take(input, { @@ -3278,15 +2243,8 @@ export const se_UpdateContactCommand = async ( UnsubscribeAll: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3296,20 +2254,12 @@ export const se_UpdateContactListCommand = async ( input: UpdateContactListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ContactListName", - () => input.ContactListName!, - "{ContactListName}", - false - ); + b.bp("/v2/email/contact-lists/{ContactListName}"); + b.p("ContactListName", () => input.ContactListName!, "{ContactListName}", false); let body: any; body = JSON.stringify( take(input, { @@ -3317,15 +2267,8 @@ export const se_UpdateContactListCommand = async ( Topics: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3335,21 +2278,12 @@ export const se_UpdateCustomVerificationEmailTemplateCommand = async ( input: UpdateCustomVerificationEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/custom-verification-email-templates/{TemplateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v2/email/custom-verification-email-templates/{TemplateName}"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; body = JSON.stringify( take(input, { @@ -3360,15 +2294,8 @@ export const se_UpdateCustomVerificationEmailTemplateCommand = async ( TemplateSubject: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3378,37 +2305,21 @@ export const se_UpdateEmailIdentityPolicyCommand = async ( input: UpdateEmailIdentityPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "EmailIdentity", - () => input.EmailIdentity!, - "{EmailIdentity}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "PolicyName", () => input.PolicyName!, "{PolicyName}", false); + b.bp("/v2/email/identities/{EmailIdentity}/policies/{PolicyName}"); + b.p("EmailIdentity", () => input.EmailIdentity!, "{EmailIdentity}", false); + b.p("PolicyName", () => input.PolicyName!, "{PolicyName}", false); let body: any; body = JSON.stringify( take(input, { Policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3418,35 +2329,20 @@ export const se_UpdateEmailTemplateCommand = async ( input: UpdateEmailTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "TemplateName", - () => input.TemplateName!, - "{TemplateName}", - false - ); + b.bp("/v2/email/templates/{TemplateName}"); + b.p("TemplateName", () => input.TemplateName!, "{TemplateName}", false); let body: any; body = JSON.stringify( take(input, { TemplateContent: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -9567,6 +8463,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _BIN = "BlacklistItemNames"; +const _ED = "EndDate"; +const _NT = "NextToken"; +const _PN = "PoolName"; +const _PS = "PageSize"; +const _R = "Reasons"; +const _RA = "ResourceArn"; +const _Re = "Reason"; +const _SD = "StartDate"; +const _TK = "TagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-signer/package.json b/clients/client-signer/package.json index 4b8a8cb6c9bf..7d7845c85625 100644 --- a/clients/client-signer/package.json +++ b/clients/client-signer/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-signer/src/protocols/Aws_restJson1.ts b/clients/client-signer/src/protocols/Aws_restJson1.ts index 85fb0424d222..3436325bd9fc 100644 --- a/clients/client-signer/src/protocols/Aws_restJson1.ts +++ b/clients/client-signer/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -106,14 +107,12 @@ export const se_AddProfilePermissionCommand = async ( input: AddProfilePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/signing-profiles/{profileName}/permissions"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName!, "{profileName}", false); + b.bp("/signing-profiles/{profileName}/permissions"); + b.p("profileName", () => input.profileName!, "{profileName}", false); let body: any; body = JSON.stringify( take(input, { @@ -124,15 +123,8 @@ export const se_AddProfilePermissionCommand = async ( statementId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -142,21 +134,13 @@ export const se_CancelSigningProfileCommand = async ( input: CancelSigningProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName!, "{profileName}", false); + b.bp("/signing-profiles/{profileName}"); + b.p("profileName", () => input.profileName!, "{profileName}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -166,20 +150,13 @@ export const se_DescribeSigningJobCommand = async ( input: DescribeSigningJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/{jobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/signing-jobs/{jobId}"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -189,20 +166,20 @@ export const se_GetRevocationStatusCommand = async ( input: GetRevocationStatusCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/revocations"; + b.bp("/revocations"); const query: any = map({ - signatureTimestamp: [ + [_sT]: [ __expectNonNull(input.signatureTimestamp, `signatureTimestamp`) != null, - () => (input.signatureTimestamp!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sT]!.toISOString().split(".")[0] + "Z").toString(), ], - platformId: [, __expectNonNull(input.platformId!, `platformId`)], - profileVersionArn: [, __expectNonNull(input.profileVersionArn!, `profileVersionArn`)], - jobArn: [, __expectNonNull(input.jobArn!, `jobArn`)], - certificateHashes: [ + [_pI]: [, __expectNonNull(input[_pI]!, `platformId`)], + [_pVA]: [, __expectNonNull(input[_pVA]!, `profileVersionArn`)], + [_jA]: [, __expectNonNull(input[_jA]!, `jobArn`)], + [_cH]: [ __expectNonNull(input.certificateHashes, `certificateHashes`) != null, - () => (input.certificateHashes! || []).map((_entry) => _entry as any), + () => (input[_cH]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -213,16 +190,9 @@ export const se_GetRevocationStatusCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -232,21 +202,13 @@ export const se_GetSigningPlatformCommand = async ( input: GetSigningPlatformCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-platforms/{platformId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "platformId", () => input.platformId!, "{platformId}", false); + b.bp("/signing-platforms/{platformId}"); + b.p("platformId", () => input.platformId!, "{platformId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -256,25 +218,16 @@ export const se_GetSigningProfileCommand = async ( input: GetSigningProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName!, "{profileName}", false); + b.bp("/signing-profiles/{profileName}"); + b.p("profileName", () => input.profileName!, "{profileName}", false); const query: any = map({ - profileOwner: [, input.profileOwner!], + [_pO]: [, input[_pO]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -284,26 +237,16 @@ export const se_ListProfilePermissionsCommand = async ( input: ListProfilePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/signing-profiles/{profileName}/permissions"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName!, "{profileName}", false); + b.bp("/signing-profiles/{profileName}/permissions"); + b.p("profileName", () => input.profileName!, "{profileName}", false); const query: any = map({ - nextToken: [, input.nextToken!], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -313,37 +256,29 @@ export const se_ListSigningJobsCommand = async ( input: ListSigningJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs"; + b.bp("/signing-jobs"); const query: any = map({ - status: [, input.status!], - platformId: [, input.platformId!], - requestedBy: [, input.requestedBy!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - isRevoked: [() => input.isRevoked !== void 0, () => input.isRevoked!.toString()], - signatureExpiresBefore: [ + [_s]: [, input[_s]!], + [_pI]: [, input[_pI]!], + [_rB]: [, input[_rB]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_iR]: [() => input.isRevoked !== void 0, () => input[_iR]!.toString()], + [_sEB]: [ () => input.signatureExpiresBefore !== void 0, - () => (input.signatureExpiresBefore!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sEB]!.toISOString().split(".")[0] + "Z").toString(), ], - signatureExpiresAfter: [ + [_sEA]: [ () => input.signatureExpiresAfter !== void 0, - () => (input.signatureExpiresAfter!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_sEA]!.toISOString().split(".")[0] + "Z").toString(), ], - jobInvoker: [, input.jobInvoker!], + [_jI]: [, input[_jI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -353,27 +288,19 @@ export const se_ListSigningPlatformsCommand = async ( input: ListSigningPlatformsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-platforms"; + b.bp("/signing-platforms"); const query: any = map({ - category: [, input.category!], - partner: [, input.partner!], - target: [, input.target!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_c]: [, input[_c]!], + [_p]: [, input[_p]!], + [_t]: [, input[_t]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -383,27 +310,19 @@ export const se_ListSigningProfilesCommand = async ( input: ListSigningProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles"; + b.bp("/signing-profiles"); const query: any = map({ - includeCanceled: [() => input.includeCanceled !== void 0, () => input.includeCanceled!.toString()], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - platformId: [, input.platformId!], - statuses: [() => input.statuses !== void 0, () => (input.statuses! || []).map((_entry) => _entry as any)], + [_iC]: [() => input.includeCanceled !== void 0, () => input[_iC]!.toString()], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_pI]: [, input[_pI]!], + [_st]: [() => input.statuses !== void 0, () => (input[_st]! || []).map((_entry) => _entry as any)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -413,20 +332,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -436,13 +348,12 @@ export const se_PutSigningProfileCommand = async ( input: PutSigningProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName!, "{profileName}", false); + b.bp("/signing-profiles/{profileName}"); + b.p("profileName", () => input.profileName!, "{profileName}", false); let body: any; body = JSON.stringify( take(input, { @@ -454,15 +365,8 @@ export const se_PutSigningProfileCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -472,27 +376,17 @@ export const se_RemoveProfilePermissionCommand = async ( input: RemoveProfilePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/signing-profiles/{profileName}/permissions/{statementId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName!, "{profileName}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "statementId", () => input.statementId!, "{statementId}", false); + b.bp("/signing-profiles/{profileName}/permissions/{statementId}"); + b.p("profileName", () => input.profileName!, "{profileName}", false); + b.p("statementId", () => input.statementId!, "{statementId}", false); const query: any = map({ - revisionId: [, __expectNonNull(input.revisionId!, `revisionId`)], + [_rI]: [, __expectNonNull(input[_rI]!, `revisionId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -502,13 +396,12 @@ export const se_RevokeSignatureCommand = async ( input: RevokeSignatureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/{jobId}/revoke"; - resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId!, "{jobId}", false); + b.bp("/signing-jobs/{jobId}/revoke"); + b.p("jobId", () => input.jobId!, "{jobId}", false); let body: any; body = JSON.stringify( take(input, { @@ -516,15 +409,8 @@ export const se_RevokeSignatureCommand = async ( reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -534,13 +420,12 @@ export const se_RevokeSigningProfileCommand = async ( input: RevokeSigningProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-profiles/{profileName}/revoke"; - resolvedPath = __resolvedPath(resolvedPath, input, "profileName", () => input.profileName!, "{profileName}", false); + b.bp("/signing-profiles/{profileName}/revoke"); + b.p("profileName", () => input.profileName!, "{profileName}", false); let body: any; body = JSON.stringify( take(input, { @@ -549,15 +434,8 @@ export const se_RevokeSigningProfileCommand = async ( reason: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -567,12 +445,11 @@ export const se_SignPayloadCommand = async ( input: SignPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs/with-payload"; + b.bp("/signing-jobs/with-payload"); let body: any; body = JSON.stringify( take(input, { @@ -582,15 +459,8 @@ export const se_SignPayloadCommand = async ( profileOwner: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -600,11 +470,11 @@ export const se_StartSigningJobCommand = async ( input: StartSigningJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs"; + b.bp("/signing-jobs"); let body: any; body = JSON.stringify( take(input, { @@ -615,15 +485,8 @@ export const se_StartSigningJobCommand = async ( source: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -633,27 +496,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -663,27 +519,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2155,6 +2003,28 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _c = "category"; +const _cH = "certificateHashes"; +const _iC = "includeCanceled"; +const _iR = "isRevoked"; +const _jA = "jobArn"; +const _jI = "jobInvoker"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _p = "partner"; +const _pI = "platformId"; +const _pO = "profileOwner"; +const _pVA = "profileVersionArn"; +const _rB = "requestedBy"; +const _rI = "revisionId"; +const _s = "status"; +const _sEA = "signatureExpiresAfter"; +const _sEB = "signatureExpiresBefore"; +const _sT = "signatureTimestamp"; +const _st = "statuses"; +const _t = "target"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-simspaceweaver/package.json b/clients/client-simspaceweaver/package.json index 42e7067c86e9..14414b654295 100644 --- a/clients/client-simspaceweaver/package.json +++ b/clients/client-simspaceweaver/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts b/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts index e9b18bd38020..049897eb2774 100644 --- a/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts +++ b/clients/client-simspaceweaver/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -63,11 +64,11 @@ export const se_CreateSnapshotCommand = async ( input: CreateSnapshotCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createsnapshot"; + b.bp("/createsnapshot"); let body: any; body = JSON.stringify( take(input, { @@ -75,15 +76,8 @@ export const se_CreateSnapshotCommand = async ( Simulation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -93,25 +87,17 @@ export const se_DeleteAppCommand = async ( input: DeleteAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteapp"; + b.bp("/deleteapp"); const query: any = map({ - simulation: [, __expectNonNull(input.Simulation!, `Simulation`)], - domain: [, __expectNonNull(input.Domain!, `Domain`)], - app: [, __expectNonNull(input.App!, `App`)], + [_s]: [, __expectNonNull(input[_S]!, `Simulation`)], + [_d]: [, __expectNonNull(input[_D]!, `Domain`)], + [_a]: [, __expectNonNull(input[_A]!, `App`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -121,23 +107,15 @@ export const se_DeleteSimulationCommand = async ( input: DeleteSimulationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deletesimulation"; + b.bp("/deletesimulation"); const query: any = map({ - simulation: [, __expectNonNull(input.Simulation!, `Simulation`)], + [_s]: [, __expectNonNull(input[_S]!, `Simulation`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -147,25 +125,17 @@ export const se_DescribeAppCommand = async ( input: DescribeAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeapp"; + b.bp("/describeapp"); const query: any = map({ - simulation: [, __expectNonNull(input.Simulation!, `Simulation`)], - domain: [, __expectNonNull(input.Domain!, `Domain`)], - app: [, __expectNonNull(input.App!, `App`)], + [_s]: [, __expectNonNull(input[_S]!, `Simulation`)], + [_d]: [, __expectNonNull(input[_D]!, `Domain`)], + [_a]: [, __expectNonNull(input[_A]!, `App`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -175,23 +145,15 @@ export const se_DescribeSimulationCommand = async ( input: DescribeSimulationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describesimulation"; + b.bp("/describesimulation"); const query: any = map({ - simulation: [, __expectNonNull(input.Simulation!, `Simulation`)], + [_s]: [, __expectNonNull(input[_S]!, `Simulation`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -201,26 +163,18 @@ export const se_ListAppsCommand = async ( input: ListAppsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listapps"; + b.bp("/listapps"); const query: any = map({ - simulation: [, __expectNonNull(input.Simulation!, `Simulation`)], - domain: [, input.Domain!], - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_s]: [, __expectNonNull(input[_S]!, `Simulation`)], + [_d]: [, input[_D]!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -230,24 +184,16 @@ export const se_ListSimulationsCommand = async ( input: ListSimulationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listsimulations"; + b.bp("/listsimulations"); const query: any = map({ - maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - nextToken: [, input.NextToken!], + [_mR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_nT]: [, input[_NT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -257,20 +203,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -280,11 +219,11 @@ export const se_StartAppCommand = async ( input: StartAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startapp"; + b.bp("/startapp"); let body: any; body = JSON.stringify( take(input, { @@ -296,15 +235,8 @@ export const se_StartAppCommand = async ( Simulation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -314,26 +246,19 @@ export const se_StartClockCommand = async ( input: StartClockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startclock"; + b.bp("/startclock"); let body: any; body = JSON.stringify( take(input, { Simulation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -343,11 +268,11 @@ export const se_StartSimulationCommand = async ( input: StartSimulationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startsimulation"; + b.bp("/startsimulation"); let body: any; body = JSON.stringify( take(input, { @@ -361,15 +286,8 @@ export const se_StartSimulationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -379,11 +297,11 @@ export const se_StopAppCommand = async ( input: StopAppCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopapp"; + b.bp("/stopapp"); let body: any; body = JSON.stringify( take(input, { @@ -392,15 +310,8 @@ export const se_StopAppCommand = async ( Simulation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -410,26 +321,19 @@ export const se_StopClockCommand = async ( input: StopClockCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopclock"; + b.bp("/stopclock"); let body: any; body = JSON.stringify( take(input, { Simulation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -439,26 +343,19 @@ export const se_StopSimulationCommand = async ( input: StopSimulationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopsimulation"; + b.bp("/stopsimulation"); let body: any; body = JSON.stringify( take(input, { Simulation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -468,27 +365,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -498,27 +388,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1642,6 +1524,19 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "App"; +const _D = "Domain"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _S = "Simulation"; +const _TK = "TagKeys"; +const _a = "app"; +const _d = "domain"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _s = "simulation"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-snow-device-management/package.json b/clients/client-snow-device-management/package.json index 8dce886dba6a..b0ff06bfd12e 100644 --- a/clients/client-snow-device-management/package.json +++ b/clients/client-snow-device-management/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts index 78ab4394387e..4d8b5ee31326 100644 --- a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts +++ b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -70,20 +71,13 @@ export const se_CancelTaskCommand = async ( input: CancelTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/task/{taskId}/cancel"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/task/{taskId}/cancel"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -93,11 +87,11 @@ export const se_CreateTaskCommand = async ( input: CreateTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/task"; + b.bp("/task"); let body: any; body = JSON.stringify( take(input, { @@ -108,15 +102,8 @@ export const se_CreateTaskCommand = async ( targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -126,29 +113,13 @@ export const se_DescribeDeviceCommand = async ( input: DescribeDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/managed-device/{managedDeviceId}/describe"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "managedDeviceId", - () => input.managedDeviceId!, - "{managedDeviceId}", - false - ); + b.bp("/managed-device/{managedDeviceId}/describe"); + b.p("managedDeviceId", () => input.managedDeviceId!, "{managedDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -158,36 +129,20 @@ export const se_DescribeDeviceEc2InstancesCommand = async ( input: DescribeDeviceEc2InstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/managed-device/{managedDeviceId}/resources/ec2/describe"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "managedDeviceId", - () => input.managedDeviceId!, - "{managedDeviceId}", - false - ); + b.bp("/managed-device/{managedDeviceId}/resources/ec2/describe"); + b.p("managedDeviceId", () => input.managedDeviceId!, "{managedDeviceId}", false); let body: any; body = JSON.stringify( take(input, { instanceIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -197,30 +152,14 @@ export const se_DescribeExecutionCommand = async ( input: DescribeExecutionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/task/{taskId}/execution/{managedDeviceId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "managedDeviceId", - () => input.managedDeviceId!, - "{managedDeviceId}", - false - ); + b.bp("/task/{taskId}/execution/{managedDeviceId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); + b.p("managedDeviceId", () => input.managedDeviceId!, "{managedDeviceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -230,20 +169,13 @@ export const se_DescribeTaskCommand = async ( input: DescribeTaskCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/task/{taskId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "taskId", () => input.taskId!, "{taskId}", false); + b.bp("/task/{taskId}"); + b.p("taskId", () => input.taskId!, "{taskId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -253,35 +185,18 @@ export const se_ListDeviceResourcesCommand = async ( input: ListDeviceResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/managed-device/{managedDeviceId}/resources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "managedDeviceId", - () => input.managedDeviceId!, - "{managedDeviceId}", - false - ); + b.bp("/managed-device/{managedDeviceId}/resources"); + b.p("managedDeviceId", () => input.managedDeviceId!, "{managedDeviceId}", false); const query: any = map({ - type: [, input.type!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_t]: [, input[_t]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -291,25 +206,17 @@ export const se_ListDevicesCommand = async ( input: ListDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-devices"; + b.bp("/managed-devices"); const query: any = map({ - jobId: [, input.jobId!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_jI]: [, input[_jI]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -319,26 +226,18 @@ export const se_ListExecutionsCommand = async ( input: ListExecutionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/executions"; + b.bp("/executions"); const query: any = map({ - taskId: [, __expectNonNull(input.taskId!, `taskId`)], - state: [, input.state!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_tI]: [, __expectNonNull(input[_tI]!, `taskId`)], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -348,20 +247,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -371,25 +263,17 @@ export const se_ListTasksCommand = async ( input: ListTasksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tasks"; + b.bp("/tasks"); const query: any = map({ - state: [, input.state!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_s]: [, input[_s]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -399,27 +283,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -429,27 +306,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1479,6 +1348,14 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _jI = "jobId"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _s = "state"; +const _t = "type"; +const _tI = "taskId"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sns/src/protocols/Aws_query.ts b/clients/client-sns/src/protocols/Aws_query.ts index 94356c1a7814..a60fb50ef0b9 100644 --- a/clients/client-sns/src/protocols/Aws_query.ts +++ b/clients/client-sns/src/protocols/Aws_query.ts @@ -268,8 +268,8 @@ export const se_AddPermissionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AddPermissionInput(input, context), - Action: "AddPermission", - Version: "2010-03-31", + [_A]: _AP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -285,8 +285,8 @@ export const se_CheckIfPhoneNumberIsOptedOutCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CheckIfPhoneNumberIsOptedOutInput(input, context), - Action: "CheckIfPhoneNumberIsOptedOut", - Version: "2010-03-31", + [_A]: _CIPNIOO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -302,8 +302,8 @@ export const se_ConfirmSubscriptionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ConfirmSubscriptionInput(input, context), - Action: "ConfirmSubscription", - Version: "2010-03-31", + [_A]: _CS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -319,8 +319,8 @@ export const se_CreatePlatformApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreatePlatformApplicationInput(input, context), - Action: "CreatePlatformApplication", - Version: "2010-03-31", + [_A]: _CPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -336,8 +336,8 @@ export const se_CreatePlatformEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreatePlatformEndpointInput(input, context), - Action: "CreatePlatformEndpoint", - Version: "2010-03-31", + [_A]: _CPE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -353,8 +353,8 @@ export const se_CreateSMSSandboxPhoneNumberCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateSMSSandboxPhoneNumberInput(input, context), - Action: "CreateSMSSandboxPhoneNumber", - Version: "2010-03-31", + [_A]: _CSMSSPN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -370,8 +370,8 @@ export const se_CreateTopicCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_CreateTopicInput(input, context), - Action: "CreateTopic", - Version: "2010-03-31", + [_A]: _CT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -387,8 +387,8 @@ export const se_DeleteEndpointCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteEndpointInput(input, context), - Action: "DeleteEndpoint", - Version: "2010-03-31", + [_A]: _DE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -404,8 +404,8 @@ export const se_DeletePlatformApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeletePlatformApplicationInput(input, context), - Action: "DeletePlatformApplication", - Version: "2010-03-31", + [_A]: _DPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -421,8 +421,8 @@ export const se_DeleteSMSSandboxPhoneNumberCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteSMSSandboxPhoneNumberInput(input, context), - Action: "DeleteSMSSandboxPhoneNumber", - Version: "2010-03-31", + [_A]: _DSMSSPN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -438,8 +438,8 @@ export const se_DeleteTopicCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DeleteTopicInput(input, context), - Action: "DeleteTopic", - Version: "2010-03-31", + [_A]: _DT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -455,8 +455,8 @@ export const se_GetDataProtectionPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetDataProtectionPolicyInput(input, context), - Action: "GetDataProtectionPolicy", - Version: "2010-03-31", + [_A]: _GDPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -472,8 +472,8 @@ export const se_GetEndpointAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetEndpointAttributesInput(input, context), - Action: "GetEndpointAttributes", - Version: "2010-03-31", + [_A]: _GEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -489,8 +489,8 @@ export const se_GetPlatformApplicationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetPlatformApplicationAttributesInput(input, context), - Action: "GetPlatformApplicationAttributes", - Version: "2010-03-31", + [_A]: _GPAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -506,8 +506,8 @@ export const se_GetSMSAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSMSAttributesInput(input, context), - Action: "GetSMSAttributes", - Version: "2010-03-31", + [_A]: _GSMSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -523,8 +523,8 @@ export const se_GetSMSSandboxAccountStatusCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSMSSandboxAccountStatusInput(input, context), - Action: "GetSMSSandboxAccountStatus", - Version: "2010-03-31", + [_A]: _GSMSSAS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -540,8 +540,8 @@ export const se_GetSubscriptionAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSubscriptionAttributesInput(input, context), - Action: "GetSubscriptionAttributes", - Version: "2010-03-31", + [_A]: _GSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -557,8 +557,8 @@ export const se_GetTopicAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetTopicAttributesInput(input, context), - Action: "GetTopicAttributes", - Version: "2010-03-31", + [_A]: _GTA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -574,8 +574,8 @@ export const se_ListEndpointsByPlatformApplicationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListEndpointsByPlatformApplicationInput(input, context), - Action: "ListEndpointsByPlatformApplication", - Version: "2010-03-31", + [_A]: _LEBPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -591,8 +591,8 @@ export const se_ListOriginationNumbersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListOriginationNumbersRequest(input, context), - Action: "ListOriginationNumbers", - Version: "2010-03-31", + [_A]: _LON, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -608,8 +608,8 @@ export const se_ListPhoneNumbersOptedOutCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPhoneNumbersOptedOutInput(input, context), - Action: "ListPhoneNumbersOptedOut", - Version: "2010-03-31", + [_A]: _LPNOO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -625,8 +625,8 @@ export const se_ListPlatformApplicationsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListPlatformApplicationsInput(input, context), - Action: "ListPlatformApplications", - Version: "2010-03-31", + [_A]: _LPA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -642,8 +642,8 @@ export const se_ListSMSSandboxPhoneNumbersCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSMSSandboxPhoneNumbersInput(input, context), - Action: "ListSMSSandboxPhoneNumbers", - Version: "2010-03-31", + [_A]: _LSMSSPN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -659,8 +659,8 @@ export const se_ListSubscriptionsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSubscriptionsInput(input, context), - Action: "ListSubscriptions", - Version: "2010-03-31", + [_A]: _LS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -676,8 +676,8 @@ export const se_ListSubscriptionsByTopicCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListSubscriptionsByTopicInput(input, context), - Action: "ListSubscriptionsByTopic", - Version: "2010-03-31", + [_A]: _LSBT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -693,8 +693,8 @@ export const se_ListTagsForResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTagsForResourceRequest(input, context), - Action: "ListTagsForResource", - Version: "2010-03-31", + [_A]: _LTFR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -710,8 +710,8 @@ export const se_ListTopicsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_ListTopicsInput(input, context), - Action: "ListTopics", - Version: "2010-03-31", + [_A]: _LT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -727,8 +727,8 @@ export const se_OptInPhoneNumberCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_OptInPhoneNumberInput(input, context), - Action: "OptInPhoneNumber", - Version: "2010-03-31", + [_A]: _OIPN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -744,8 +744,8 @@ export const se_PublishCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PublishInput(input, context), - Action: "Publish", - Version: "2010-03-31", + [_A]: _P, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -761,8 +761,8 @@ export const se_PublishBatchCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PublishBatchInput(input, context), - Action: "PublishBatch", - Version: "2010-03-31", + [_A]: _PB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -778,8 +778,8 @@ export const se_PutDataProtectionPolicyCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutDataProtectionPolicyInput(input, context), - Action: "PutDataProtectionPolicy", - Version: "2010-03-31", + [_A]: _PDPP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -795,8 +795,8 @@ export const se_RemovePermissionCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_RemovePermissionInput(input, context), - Action: "RemovePermission", - Version: "2010-03-31", + [_A]: _RP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -812,8 +812,8 @@ export const se_SetEndpointAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetEndpointAttributesInput(input, context), - Action: "SetEndpointAttributes", - Version: "2010-03-31", + [_A]: _SEA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -829,8 +829,8 @@ export const se_SetPlatformApplicationAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetPlatformApplicationAttributesInput(input, context), - Action: "SetPlatformApplicationAttributes", - Version: "2010-03-31", + [_A]: _SPAA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -846,8 +846,8 @@ export const se_SetSMSAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetSMSAttributesInput(input, context), - Action: "SetSMSAttributes", - Version: "2010-03-31", + [_A]: _SSMSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -863,8 +863,8 @@ export const se_SetSubscriptionAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetSubscriptionAttributesInput(input, context), - Action: "SetSubscriptionAttributes", - Version: "2010-03-31", + [_A]: _SSA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -880,8 +880,8 @@ export const se_SetTopicAttributesCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SetTopicAttributesInput(input, context), - Action: "SetTopicAttributes", - Version: "2010-03-31", + [_A]: _STA, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -897,8 +897,8 @@ export const se_SubscribeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SubscribeInput(input, context), - Action: "Subscribe", - Version: "2010-03-31", + [_A]: _S, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -914,8 +914,8 @@ export const se_TagResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_TagResourceRequest(input, context), - Action: "TagResource", - Version: "2010-03-31", + [_A]: _TR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -931,8 +931,8 @@ export const se_UnsubscribeCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UnsubscribeInput(input, context), - Action: "Unsubscribe", - Version: "2010-03-31", + [_A]: _U, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -948,8 +948,8 @@ export const se_UntagResourceCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_UntagResourceRequest(input, context), - Action: "UntagResource", - Version: "2010-03-31", + [_A]: _UR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -965,8 +965,8 @@ export const se_VerifySMSSandboxPhoneNumberCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_VerifySMSSandboxPhoneNumberInput(input, context), - Action: "VerifySMSSandboxPhoneNumber", - Version: "2010-03-31", + [_A]: _VSMSSPN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -3963,15 +3963,15 @@ const se_ActionsList = (input: string[], context: __SerdeContext): any => { */ const se_AddPermissionInput = (input: AddPermissionInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.Label != null) { - entries["Label"] = input.Label; + if (input[_L] != null) { + entries[_L] = input[_L]; } - if (input.AWSAccountId != null) { - const memberEntries = se_DelegatesList(input.AWSAccountId, context); - if (input.AWSAccountId?.length === 0) { + if (input[_AWSAI] != null) { + const memberEntries = se_DelegatesList(input[_AWSAI], context); + if (input[_AWSAI]?.length === 0) { entries.AWSAccountId = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -3979,9 +3979,9 @@ const se_AddPermissionInput = (input: AddPermissionInput, context: __SerdeContex entries[loc] = value; }); } - if (input.ActionName != null) { - const memberEntries = se_ActionsList(input.ActionName, context); - if (input.ActionName?.length === 0) { + if (input[_AN] != null) { + const memberEntries = se_ActionsList(input[_AN], context); + if (input[_AN]?.length === 0) { entries.ActionName = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4000,8 +4000,8 @@ const se_CheckIfPhoneNumberIsOptedOutInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.phoneNumber != null) { - entries["phoneNumber"] = input.phoneNumber; + if (input[_pN] != null) { + entries[_pN] = input[_pN]; } return entries; }; @@ -4011,14 +4011,14 @@ const se_CheckIfPhoneNumberIsOptedOutInput = ( */ const se_ConfirmSubscriptionInput = (input: ConfirmSubscriptionInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.Token != null) { - entries["Token"] = input.Token; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.AuthenticateOnUnsubscribe != null) { - entries["AuthenticateOnUnsubscribe"] = input.AuthenticateOnUnsubscribe; + if (input[_AOU] != null) { + entries[_AOU] = input[_AOU]; } return entries; }; @@ -4028,14 +4028,14 @@ const se_ConfirmSubscriptionInput = (input: ConfirmSubscriptionInput, context: _ */ const se_CreatePlatformApplicationInput = (input: CreatePlatformApplicationInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Platform != null) { - entries["Platform"] = input.Platform; + if (input[_Pl] != null) { + entries[_Pl] = input[_Pl]; } - if (input.Attributes != null) { - const memberEntries = se_MapStringToString(input.Attributes, context); + if (input[_At] != null) { + const memberEntries = se_MapStringToString(input[_At], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Attributes.${key}`; entries[loc] = value; @@ -4049,17 +4049,17 @@ const se_CreatePlatformApplicationInput = (input: CreatePlatformApplicationInput */ const se_CreatePlatformEndpointInput = (input: CreatePlatformEndpointInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.PlatformApplicationArn != null) { - entries["PlatformApplicationArn"] = input.PlatformApplicationArn; + if (input[_PAA] != null) { + entries[_PAA] = input[_PAA]; } - if (input.Token != null) { - entries["Token"] = input.Token; + if (input[_T] != null) { + entries[_T] = input[_T]; } - if (input.CustomUserData != null) { - entries["CustomUserData"] = input.CustomUserData; + if (input[_CUD] != null) { + entries[_CUD] = input[_CUD]; } - if (input.Attributes != null) { - const memberEntries = se_MapStringToString(input.Attributes, context); + if (input[_At] != null) { + const memberEntries = se_MapStringToString(input[_At], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Attributes.${key}`; entries[loc] = value; @@ -4073,11 +4073,11 @@ const se_CreatePlatformEndpointInput = (input: CreatePlatformEndpointInput, cont */ const se_CreateSMSSandboxPhoneNumberInput = (input: CreateSMSSandboxPhoneNumberInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.PhoneNumber != null) { - entries["PhoneNumber"] = input.PhoneNumber; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.LanguageCode != null) { - entries["LanguageCode"] = input.LanguageCode; + if (input[_LC] != null) { + entries[_LC] = input[_LC]; } return entries; }; @@ -4087,19 +4087,19 @@ const se_CreateSMSSandboxPhoneNumberInput = (input: CreateSMSSandboxPhoneNumberI */ const se_CreateTopicInput = (input: CreateTopicInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Attributes != null) { - const memberEntries = se_TopicAttributesMap(input.Attributes, context); + if (input[_At] != null) { + const memberEntries = se_TopicAttributesMap(input[_At], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Attributes.${key}`; entries[loc] = value; }); } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4107,8 +4107,8 @@ const se_CreateTopicInput = (input: CreateTopicInput, context: __SerdeContext): entries[loc] = value; }); } - if (input.DataProtectionPolicy != null) { - entries["DataProtectionPolicy"] = input.DataProtectionPolicy; + if (input[_DPP] != null) { + entries[_DPP] = input[_DPP]; } return entries; }; @@ -4134,8 +4134,8 @@ const se_DelegatesList = (input: string[], context: __SerdeContext): any => { */ const se_DeleteEndpointInput = (input: DeleteEndpointInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.EndpointArn != null) { - entries["EndpointArn"] = input.EndpointArn; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } return entries; }; @@ -4145,8 +4145,8 @@ const se_DeleteEndpointInput = (input: DeleteEndpointInput, context: __SerdeCont */ const se_DeletePlatformApplicationInput = (input: DeletePlatformApplicationInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.PlatformApplicationArn != null) { - entries["PlatformApplicationArn"] = input.PlatformApplicationArn; + if (input[_PAA] != null) { + entries[_PAA] = input[_PAA]; } return entries; }; @@ -4156,8 +4156,8 @@ const se_DeletePlatformApplicationInput = (input: DeletePlatformApplicationInput */ const se_DeleteSMSSandboxPhoneNumberInput = (input: DeleteSMSSandboxPhoneNumberInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.PhoneNumber != null) { - entries["PhoneNumber"] = input.PhoneNumber; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } return entries; }; @@ -4167,8 +4167,8 @@ const se_DeleteSMSSandboxPhoneNumberInput = (input: DeleteSMSSandboxPhoneNumberI */ const se_DeleteTopicInput = (input: DeleteTopicInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } return entries; }; @@ -4178,8 +4178,8 @@ const se_DeleteTopicInput = (input: DeleteTopicInput, context: __SerdeContext): */ const se_GetDataProtectionPolicyInput = (input: GetDataProtectionPolicyInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } return entries; }; @@ -4189,8 +4189,8 @@ const se_GetDataProtectionPolicyInput = (input: GetDataProtectionPolicyInput, co */ const se_GetEndpointAttributesInput = (input: GetEndpointAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.EndpointArn != null) { - entries["EndpointArn"] = input.EndpointArn; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } return entries; }; @@ -4203,8 +4203,8 @@ const se_GetPlatformApplicationAttributesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PlatformApplicationArn != null) { - entries["PlatformApplicationArn"] = input.PlatformApplicationArn; + if (input[_PAA] != null) { + entries[_PAA] = input[_PAA]; } return entries; }; @@ -4214,9 +4214,9 @@ const se_GetPlatformApplicationAttributesInput = ( */ const se_GetSMSAttributesInput = (input: GetSMSAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.attributes != null) { - const memberEntries = se_ListString(input.attributes, context); - if (input.attributes?.length === 0) { + if (input[_a] != null) { + const memberEntries = se_ListString(input[_a], context); + if (input[_a]?.length === 0) { entries.attributes = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4240,8 +4240,8 @@ const se_GetSMSSandboxAccountStatusInput = (input: GetSMSSandboxAccountStatusInp */ const se_GetSubscriptionAttributesInput = (input: GetSubscriptionAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionArn != null) { - entries["SubscriptionArn"] = input.SubscriptionArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } return entries; }; @@ -4251,8 +4251,8 @@ const se_GetSubscriptionAttributesInput = (input: GetSubscriptionAttributesInput */ const se_GetTopicAttributesInput = (input: GetTopicAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } return entries; }; @@ -4265,11 +4265,11 @@ const se_ListEndpointsByPlatformApplicationInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PlatformApplicationArn != null) { - entries["PlatformApplicationArn"] = input.PlatformApplicationArn; + if (input[_PAA] != null) { + entries[_PAA] = input[_PAA]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4279,11 +4279,11 @@ const se_ListEndpointsByPlatformApplicationInput = ( */ const se_ListOriginationNumbersRequest = (input: ListOriginationNumbersRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -4293,8 +4293,8 @@ const se_ListOriginationNumbersRequest = (input: ListOriginationNumbersRequest, */ const se_ListPhoneNumbersOptedOutInput = (input: ListPhoneNumbersOptedOutInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.nextToken != null) { - entries["nextToken"] = input.nextToken; + if (input[_nT] != null) { + entries[_nT] = input[_nT]; } return entries; }; @@ -4304,8 +4304,8 @@ const se_ListPhoneNumbersOptedOutInput = (input: ListPhoneNumbersOptedOutInput, */ const se_ListPlatformApplicationsInput = (input: ListPlatformApplicationsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4315,11 +4315,11 @@ const se_ListPlatformApplicationsInput = (input: ListPlatformApplicationsInput, */ const se_ListSMSSandboxPhoneNumbersInput = (input: ListSMSSandboxPhoneNumbersInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } - if (input.MaxResults != null) { - entries["MaxResults"] = input.MaxResults; + if (input[_MR] != null) { + entries[_MR] = input[_MR]; } return entries; }; @@ -4345,11 +4345,11 @@ const se_ListString = (input: string[], context: __SerdeContext): any => { */ const se_ListSubscriptionsByTopicInput = (input: ListSubscriptionsByTopicInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4359,8 +4359,8 @@ const se_ListSubscriptionsByTopicInput = (input: ListSubscriptionsByTopicInput, */ const se_ListSubscriptionsInput = (input: ListSubscriptionsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4370,8 +4370,8 @@ const se_ListSubscriptionsInput = (input: ListSubscriptionsInput, context: __Ser */ const se_ListTagsForResourceRequest = (input: ListTagsForResourceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } return entries; }; @@ -4381,8 +4381,8 @@ const se_ListTagsForResourceRequest = (input: ListTagsForResourceRequest, contex */ const se_ListTopicsInput = (input: ListTopicsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.NextToken != null) { - entries["NextToken"] = input.NextToken; + if (input[_NT] != null) { + entries[_NT] = input[_NT]; } return entries; }; @@ -4427,14 +4427,14 @@ const se_MessageAttributeMap = (input: Record, co */ const se_MessageAttributeValue = (input: MessageAttributeValue, context: __SerdeContext): any => { const entries: any = {}; - if (input.DataType != null) { - entries["DataType"] = input.DataType; + if (input[_DTa] != null) { + entries[_DTa] = input[_DTa]; } - if (input.StringValue != null) { - entries["StringValue"] = input.StringValue; + if (input[_SV] != null) { + entries[_SV] = input[_SV]; } - if (input.BinaryValue != null) { - entries["BinaryValue"] = context.base64Encoder(input.BinaryValue); + if (input[_BV] != null) { + entries[_BV] = context.base64Encoder(input[_BV]); } return entries; }; @@ -4444,8 +4444,8 @@ const se_MessageAttributeValue = (input: MessageAttributeValue, context: __Serde */ const se_OptInPhoneNumberInput = (input: OptInPhoneNumberInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.phoneNumber != null) { - entries["phoneNumber"] = input.phoneNumber; + if (input[_pN] != null) { + entries[_pN] = input[_pN]; } return entries; }; @@ -4455,12 +4455,12 @@ const se_OptInPhoneNumberInput = (input: OptInPhoneNumberInput, context: __Serde */ const se_PublishBatchInput = (input: PublishBatchInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.PublishBatchRequestEntries != null) { - const memberEntries = se_PublishBatchRequestEntryList(input.PublishBatchRequestEntries, context); - if (input.PublishBatchRequestEntries?.length === 0) { + if (input[_PBRE] != null) { + const memberEntries = se_PublishBatchRequestEntryList(input[_PBRE], context); + if (input[_PBRE]?.length === 0) { entries.PublishBatchRequestEntries = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4476,30 +4476,30 @@ const se_PublishBatchInput = (input: PublishBatchInput, context: __SerdeContext) */ const se_PublishBatchRequestEntry = (input: PublishBatchRequestEntry, context: __SerdeContext): any => { const entries: any = {}; - if (input.Id != null) { - entries["Id"] = input.Id; + if (input[_I] != null) { + entries[_I] = input[_I]; } - if (input.Message != null) { - entries["Message"] = input.Message; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Subject != null) { - entries["Subject"] = input.Subject; + if (input[_Su] != null) { + entries[_Su] = input[_Su]; } - if (input.MessageStructure != null) { - entries["MessageStructure"] = input.MessageStructure; + if (input[_MS] != null) { + entries[_MS] = input[_MS]; } - if (input.MessageAttributes != null) { - const memberEntries = se_MessageAttributeMap(input.MessageAttributes, context); + if (input[_MA] != null) { + const memberEntries = se_MessageAttributeMap(input[_MA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MessageAttributes.${key}`; entries[loc] = value; }); } - if (input.MessageDeduplicationId != null) { - entries["MessageDeduplicationId"] = input.MessageDeduplicationId; + if (input[_MDI] != null) { + entries[_MDI] = input[_MDI]; } - if (input.MessageGroupId != null) { - entries["MessageGroupId"] = input.MessageGroupId; + if (input[_MGI] != null) { + entries[_MGI] = input[_MGI]; } return entries; }; @@ -4528,36 +4528,36 @@ const se_PublishBatchRequestEntryList = (input: PublishBatchRequestEntry[], cont */ const se_PublishInput = (input: PublishInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.TargetArn != null) { - entries["TargetArn"] = input.TargetArn; + if (input[_TAa] != null) { + entries[_TAa] = input[_TAa]; } - if (input.PhoneNumber != null) { - entries["PhoneNumber"] = input.PhoneNumber; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.Message != null) { - entries["Message"] = input.Message; + if (input[_M] != null) { + entries[_M] = input[_M]; } - if (input.Subject != null) { - entries["Subject"] = input.Subject; + if (input[_Su] != null) { + entries[_Su] = input[_Su]; } - if (input.MessageStructure != null) { - entries["MessageStructure"] = input.MessageStructure; + if (input[_MS] != null) { + entries[_MS] = input[_MS]; } - if (input.MessageAttributes != null) { - const memberEntries = se_MessageAttributeMap(input.MessageAttributes, context); + if (input[_MA] != null) { + const memberEntries = se_MessageAttributeMap(input[_MA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MessageAttributes.${key}`; entries[loc] = value; }); } - if (input.MessageDeduplicationId != null) { - entries["MessageDeduplicationId"] = input.MessageDeduplicationId; + if (input[_MDI] != null) { + entries[_MDI] = input[_MDI]; } - if (input.MessageGroupId != null) { - entries["MessageGroupId"] = input.MessageGroupId; + if (input[_MGI] != null) { + entries[_MGI] = input[_MGI]; } return entries; }; @@ -4567,11 +4567,11 @@ const se_PublishInput = (input: PublishInput, context: __SerdeContext): any => { */ const se_PutDataProtectionPolicyInput = (input: PutDataProtectionPolicyInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.DataProtectionPolicy != null) { - entries["DataProtectionPolicy"] = input.DataProtectionPolicy; + if (input[_DPP] != null) { + entries[_DPP] = input[_DPP]; } return entries; }; @@ -4581,11 +4581,11 @@ const se_PutDataProtectionPolicyInput = (input: PutDataProtectionPolicyInput, co */ const se_RemovePermissionInput = (input: RemovePermissionInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.Label != null) { - entries["Label"] = input.Label; + if (input[_L] != null) { + entries[_L] = input[_L]; } return entries; }; @@ -4595,11 +4595,11 @@ const se_RemovePermissionInput = (input: RemovePermissionInput, context: __Serde */ const se_SetEndpointAttributesInput = (input: SetEndpointAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.EndpointArn != null) { - entries["EndpointArn"] = input.EndpointArn; + if (input[_EA] != null) { + entries[_EA] = input[_EA]; } - if (input.Attributes != null) { - const memberEntries = se_MapStringToString(input.Attributes, context); + if (input[_At] != null) { + const memberEntries = se_MapStringToString(input[_At], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Attributes.${key}`; entries[loc] = value; @@ -4616,11 +4616,11 @@ const se_SetPlatformApplicationAttributesInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.PlatformApplicationArn != null) { - entries["PlatformApplicationArn"] = input.PlatformApplicationArn; + if (input[_PAA] != null) { + entries[_PAA] = input[_PAA]; } - if (input.Attributes != null) { - const memberEntries = se_MapStringToString(input.Attributes, context); + if (input[_At] != null) { + const memberEntries = se_MapStringToString(input[_At], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Attributes.${key}`; entries[loc] = value; @@ -4634,8 +4634,8 @@ const se_SetPlatformApplicationAttributesInput = ( */ const se_SetSMSAttributesInput = (input: SetSMSAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.attributes != null) { - const memberEntries = se_MapStringToString(input.attributes, context); + if (input[_a] != null) { + const memberEntries = se_MapStringToString(input[_a], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `attributes.${key}`; entries[loc] = value; @@ -4649,14 +4649,14 @@ const se_SetSMSAttributesInput = (input: SetSMSAttributesInput, context: __Serde */ const se_SetSubscriptionAttributesInput = (input: SetSubscriptionAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionArn != null) { - entries["SubscriptionArn"] = input.SubscriptionArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.AttributeName != null) { - entries["AttributeName"] = input.AttributeName; + if (input[_ANt] != null) { + entries[_ANt] = input[_ANt]; } - if (input.AttributeValue != null) { - entries["AttributeValue"] = input.AttributeValue; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } return entries; }; @@ -4666,14 +4666,14 @@ const se_SetSubscriptionAttributesInput = (input: SetSubscriptionAttributesInput */ const se_SetTopicAttributesInput = (input: SetTopicAttributesInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.AttributeName != null) { - entries["AttributeName"] = input.AttributeName; + if (input[_ANt] != null) { + entries[_ANt] = input[_ANt]; } - if (input.AttributeValue != null) { - entries["AttributeValue"] = input.AttributeValue; + if (input[_AV] != null) { + entries[_AV] = input[_AV]; } return entries; }; @@ -4683,24 +4683,24 @@ const se_SetTopicAttributesInput = (input: SetTopicAttributesInput, context: __S */ const se_SubscribeInput = (input: SubscribeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.TopicArn != null) { - entries["TopicArn"] = input.TopicArn; + if (input[_TA] != null) { + entries[_TA] = input[_TA]; } - if (input.Protocol != null) { - entries["Protocol"] = input.Protocol; + if (input[_Pr] != null) { + entries[_Pr] = input[_Pr]; } - if (input.Endpoint != null) { - entries["Endpoint"] = input.Endpoint; + if (input[_E] != null) { + entries[_E] = input[_E]; } - if (input.Attributes != null) { - const memberEntries = se_SubscriptionAttributesMap(input.Attributes, context); + if (input[_At] != null) { + const memberEntries = se_SubscriptionAttributesMap(input[_At], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Attributes.${key}`; entries[loc] = value; }); } - if (input.ReturnSubscriptionArn != null) { - entries["ReturnSubscriptionArn"] = input.ReturnSubscriptionArn; + if (input[_RSA] != null) { + entries[_RSA] = input[_RSA]; } return entries; }; @@ -4726,11 +4726,11 @@ const se_SubscriptionAttributesMap = (input: Record, context: __ */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -4775,12 +4775,12 @@ const se_TagList = (input: Tag[], context: __SerdeContext): any => { */ const se_TagResourceRequest = (input: TagResourceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.Tags != null) { - const memberEntries = se_TagList(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_Ta] != null) { + const memberEntries = se_TagList(input[_Ta], context); + if (input[_Ta]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4812,8 +4812,8 @@ const se_TopicAttributesMap = (input: Record, context: __SerdeCo */ const se_UnsubscribeInput = (input: UnsubscribeInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.SubscriptionArn != null) { - entries["SubscriptionArn"] = input.SubscriptionArn; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } return entries; }; @@ -4823,12 +4823,12 @@ const se_UnsubscribeInput = (input: UnsubscribeInput, context: __SerdeContext): */ const se_UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.ResourceArn != null) { - entries["ResourceArn"] = input.ResourceArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.TagKeys != null) { - const memberEntries = se_TagKeyList(input.TagKeys, context); - if (input.TagKeys?.length === 0) { + if (input[_TK] != null) { + const memberEntries = se_TagKeyList(input[_TK], context); + if (input[_TK]?.length === 0) { entries.TagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -4844,11 +4844,11 @@ const se_UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeCo */ const se_VerifySMSSandboxPhoneNumberInput = (input: VerifySMSSandboxPhoneNumberInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.PhoneNumber != null) { - entries["PhoneNumber"] = input.PhoneNumber; + if (input[_PN] != null) { + entries[_PN] = input[_PN]; } - if (input.OneTimePassword != null) { - entries["OneTimePassword"] = input.OneTimePassword; + if (input[_OTP] != null) { + entries[_OTP] = input[_OTP]; } return entries; }; @@ -4858,8 +4858,8 @@ const se_VerifySMSSandboxPhoneNumberInput = (input: VerifySMSSandboxPhoneNumberI */ const de_AuthorizationErrorException = (output: any, context: __SerdeContext): AuthorizationErrorException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -4872,8 +4872,8 @@ const de_BatchEntryIdsNotDistinctException = ( context: __SerdeContext ): BatchEntryIdsNotDistinctException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -4883,8 +4883,8 @@ const de_BatchEntryIdsNotDistinctException = ( */ const de_BatchRequestTooLongException = (output: any, context: __SerdeContext): BatchRequestTooLongException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -4894,17 +4894,17 @@ const de_BatchRequestTooLongException = (output: any, context: __SerdeContext): */ const de_BatchResultErrorEntry = (output: any, context: __SerdeContext): BatchResultErrorEntry => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["Code"] !== undefined) { - contents.Code = __expectString(output["Code"]); + if (output[_C] != null) { + contents[_C] = __expectString(output[_C]); } - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["SenderFault"] !== undefined) { - contents.SenderFault = __parseBoolean(output["SenderFault"]); + if (output[_SF] != null) { + contents[_SF] = __parseBoolean(output[_SF]); } return contents; }; @@ -4928,8 +4928,8 @@ const de_CheckIfPhoneNumberIsOptedOutResponse = ( context: __SerdeContext ): CheckIfPhoneNumberIsOptedOutResponse => { const contents: any = {}; - if (output["isOptedOut"] !== undefined) { - contents.isOptedOut = __parseBoolean(output["isOptedOut"]); + if (output[_iOO] != null) { + contents[_iOO] = __parseBoolean(output[_iOO]); } return contents; }; @@ -4939,8 +4939,8 @@ const de_CheckIfPhoneNumberIsOptedOutResponse = ( */ const de_ConcurrentAccessException = (output: any, context: __SerdeContext): ConcurrentAccessException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -4950,8 +4950,8 @@ const de_ConcurrentAccessException = (output: any, context: __SerdeContext): Con */ const de_ConfirmSubscriptionResponse = (output: any, context: __SerdeContext): ConfirmSubscriptionResponse => { const contents: any = {}; - if (output["SubscriptionArn"] !== undefined) { - contents.SubscriptionArn = __expectString(output["SubscriptionArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } return contents; }; @@ -4961,8 +4961,8 @@ const de_ConfirmSubscriptionResponse = (output: any, context: __SerdeContext): C */ const de_CreateEndpointResponse = (output: any, context: __SerdeContext): CreateEndpointResponse => { const contents: any = {}; - if (output["EndpointArn"] !== undefined) { - contents.EndpointArn = __expectString(output["EndpointArn"]); + if (output[_EA] != null) { + contents[_EA] = __expectString(output[_EA]); } return contents; }; @@ -4975,8 +4975,8 @@ const de_CreatePlatformApplicationResponse = ( context: __SerdeContext ): CreatePlatformApplicationResponse => { const contents: any = {}; - if (output["PlatformApplicationArn"] !== undefined) { - contents.PlatformApplicationArn = __expectString(output["PlatformApplicationArn"]); + if (output[_PAA] != null) { + contents[_PAA] = __expectString(output[_PAA]); } return contents; }; @@ -4997,8 +4997,8 @@ const de_CreateSMSSandboxPhoneNumberResult = ( */ const de_CreateTopicResponse = (output: any, context: __SerdeContext): CreateTopicResponse => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } return contents; }; @@ -5019,8 +5019,8 @@ const de_DeleteSMSSandboxPhoneNumberResult = ( */ const de_EmptyBatchRequestException = (output: any, context: __SerdeContext): EmptyBatchRequestException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5030,13 +5030,13 @@ const de_EmptyBatchRequestException = (output: any, context: __SerdeContext): Em */ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { const contents: any = {}; - if (output["EndpointArn"] !== undefined) { - contents.EndpointArn = __expectString(output["EndpointArn"]); + if (output[_EA] != null) { + contents[_EA] = __expectString(output[_EA]); } if (output.Attributes === "") { - contents.Attributes = {}; - } else if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) { - contents.Attributes = de_MapStringToString(__getArrayIfSingleItem(output["Attributes"]["entry"]), context); + contents[_At] = {}; + } else if (output[_At] != null && output[_At][_e] != null) { + contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); } return contents; }; @@ -5046,8 +5046,8 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { */ const de_EndpointDisabledException = (output: any, context: __SerdeContext): EndpointDisabledException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5060,8 +5060,8 @@ const de_FilterPolicyLimitExceededException = ( context: __SerdeContext ): FilterPolicyLimitExceededException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5071,8 +5071,8 @@ const de_FilterPolicyLimitExceededException = ( */ const de_GetDataProtectionPolicyResponse = (output: any, context: __SerdeContext): GetDataProtectionPolicyResponse => { const contents: any = {}; - if (output["DataProtectionPolicy"] !== undefined) { - contents.DataProtectionPolicy = __expectString(output["DataProtectionPolicy"]); + if (output[_DPP] != null) { + contents[_DPP] = __expectString(output[_DPP]); } return contents; }; @@ -5083,9 +5083,9 @@ const de_GetDataProtectionPolicyResponse = (output: any, context: __SerdeContext const de_GetEndpointAttributesResponse = (output: any, context: __SerdeContext): GetEndpointAttributesResponse => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = {}; - } else if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) { - contents.Attributes = de_MapStringToString(__getArrayIfSingleItem(output["Attributes"]["entry"]), context); + contents[_At] = {}; + } else if (output[_At] != null && output[_At][_e] != null) { + contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); } return contents; }; @@ -5099,9 +5099,9 @@ const de_GetPlatformApplicationAttributesResponse = ( ): GetPlatformApplicationAttributesResponse => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = {}; - } else if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) { - contents.Attributes = de_MapStringToString(__getArrayIfSingleItem(output["Attributes"]["entry"]), context); + contents[_At] = {}; + } else if (output[_At] != null && output[_At][_e] != null) { + contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); } return contents; }; @@ -5112,9 +5112,9 @@ const de_GetPlatformApplicationAttributesResponse = ( const de_GetSMSAttributesResponse = (output: any, context: __SerdeContext): GetSMSAttributesResponse => { const contents: any = {}; if (output.attributes === "") { - contents.attributes = {}; - } else if (output["attributes"] !== undefined && output["attributes"]["entry"] !== undefined) { - contents.attributes = de_MapStringToString(__getArrayIfSingleItem(output["attributes"]["entry"]), context); + contents[_a] = {}; + } else if (output[_a] != null && output[_a][_e] != null) { + contents[_a] = de_MapStringToString(__getArrayIfSingleItem(output[_a][_e]), context); } return contents; }; @@ -5127,8 +5127,8 @@ const de_GetSMSSandboxAccountStatusResult = ( context: __SerdeContext ): GetSMSSandboxAccountStatusResult => { const contents: any = {}; - if (output["IsInSandbox"] !== undefined) { - contents.IsInSandbox = __parseBoolean(output["IsInSandbox"]); + if (output[_IIS] != null) { + contents[_IIS] = __parseBoolean(output[_IIS]); } return contents; }; @@ -5142,9 +5142,9 @@ const de_GetSubscriptionAttributesResponse = ( ): GetSubscriptionAttributesResponse => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = {}; - } else if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) { - contents.Attributes = de_SubscriptionAttributesMap(__getArrayIfSingleItem(output["Attributes"]["entry"]), context); + contents[_At] = {}; + } else if (output[_At] != null && output[_At][_e] != null) { + contents[_At] = de_SubscriptionAttributesMap(__getArrayIfSingleItem(output[_At][_e]), context); } return contents; }; @@ -5155,9 +5155,9 @@ const de_GetSubscriptionAttributesResponse = ( const de_GetTopicAttributesResponse = (output: any, context: __SerdeContext): GetTopicAttributesResponse => { const contents: any = {}; if (output.Attributes === "") { - contents.Attributes = {}; - } else if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) { - contents.Attributes = de_TopicAttributesMap(__getArrayIfSingleItem(output["Attributes"]["entry"]), context); + contents[_At] = {}; + } else if (output[_At] != null && output[_At][_e] != null) { + contents[_At] = de_TopicAttributesMap(__getArrayIfSingleItem(output[_At][_e]), context); } return contents; }; @@ -5167,8 +5167,8 @@ const de_GetTopicAttributesResponse = (output: any, context: __SerdeContext): Ge */ const de_InternalErrorException = (output: any, context: __SerdeContext): InternalErrorException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5178,8 +5178,8 @@ const de_InternalErrorException = (output: any, context: __SerdeContext): Intern */ const de_InvalidBatchEntryIdException = (output: any, context: __SerdeContext): InvalidBatchEntryIdException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5189,8 +5189,8 @@ const de_InvalidBatchEntryIdException = (output: any, context: __SerdeContext): */ const de_InvalidParameterException = (output: any, context: __SerdeContext): InvalidParameterException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5200,8 +5200,8 @@ const de_InvalidParameterException = (output: any, context: __SerdeContext): Inv */ const de_InvalidParameterValueException = (output: any, context: __SerdeContext): InvalidParameterValueException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5211,8 +5211,8 @@ const de_InvalidParameterValueException = (output: any, context: __SerdeContext) */ const de_InvalidSecurityException = (output: any, context: __SerdeContext): InvalidSecurityException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5222,8 +5222,8 @@ const de_InvalidSecurityException = (output: any, context: __SerdeContext): Inva */ const de_InvalidStateException = (output: any, context: __SerdeContext): InvalidStateException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5233,8 +5233,8 @@ const de_InvalidStateException = (output: any, context: __SerdeContext): Invalid */ const de_KMSAccessDeniedException = (output: any, context: __SerdeContext): KMSAccessDeniedException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5244,8 +5244,8 @@ const de_KMSAccessDeniedException = (output: any, context: __SerdeContext): KMSA */ const de_KMSDisabledException = (output: any, context: __SerdeContext): KMSDisabledException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5255,8 +5255,8 @@ const de_KMSDisabledException = (output: any, context: __SerdeContext): KMSDisab */ const de_KMSInvalidStateException = (output: any, context: __SerdeContext): KMSInvalidStateException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5266,8 +5266,8 @@ const de_KMSInvalidStateException = (output: any, context: __SerdeContext): KMSI */ const de_KMSNotFoundException = (output: any, context: __SerdeContext): KMSNotFoundException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5277,8 +5277,8 @@ const de_KMSNotFoundException = (output: any, context: __SerdeContext): KMSNotFo */ const de_KMSOptInRequired = (output: any, context: __SerdeContext): KMSOptInRequired => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5288,8 +5288,8 @@ const de_KMSOptInRequired = (output: any, context: __SerdeContext): KMSOptInRequ */ const de_KMSThrottlingException = (output: any, context: __SerdeContext): KMSThrottlingException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5303,12 +5303,12 @@ const de_ListEndpointsByPlatformApplicationResponse = ( ): ListEndpointsByPlatformApplicationResponse => { const contents: any = {}; if (output.Endpoints === "") { - contents.Endpoints = []; - } else if (output["Endpoints"] !== undefined && output["Endpoints"]["member"] !== undefined) { - contents.Endpoints = de_ListOfEndpoints(__getArrayIfSingleItem(output["Endpoints"]["member"]), context); + contents[_En] = []; + } else if (output[_En] != null && output[_En][_me] != null) { + contents[_En] = de_ListOfEndpoints(__getArrayIfSingleItem(output[_En][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5340,16 +5340,13 @@ const de_ListOfPlatformApplications = (output: any, context: __SerdeContext): Pl */ const de_ListOriginationNumbersResult = (output: any, context: __SerdeContext): ListOriginationNumbersResult => { const contents: any = {}; - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } if (output.PhoneNumbers === "") { - contents.PhoneNumbers = []; - } else if (output["PhoneNumbers"] !== undefined && output["PhoneNumbers"]["member"] !== undefined) { - contents.PhoneNumbers = de_PhoneNumberInformationList( - __getArrayIfSingleItem(output["PhoneNumbers"]["member"]), - context - ); + contents[_PNh] = []; + } else if (output[_PNh] != null && output[_PNh][_me] != null) { + contents[_PNh] = de_PhoneNumberInformationList(__getArrayIfSingleItem(output[_PNh][_me]), context); } return contents; }; @@ -5363,12 +5360,12 @@ const de_ListPhoneNumbersOptedOutResponse = ( ): ListPhoneNumbersOptedOutResponse => { const contents: any = {}; if (output.phoneNumbers === "") { - contents.phoneNumbers = []; - } else if (output["phoneNumbers"] !== undefined && output["phoneNumbers"]["member"] !== undefined) { - contents.phoneNumbers = de_PhoneNumberList(__getArrayIfSingleItem(output["phoneNumbers"]["member"]), context); + contents[_pNh] = []; + } else if (output[_pNh] != null && output[_pNh][_me] != null) { + contents[_pNh] = de_PhoneNumberList(__getArrayIfSingleItem(output[_pNh][_me]), context); } - if (output["nextToken"] !== undefined) { - contents.nextToken = __expectString(output["nextToken"]); + if (output[_nT] != null) { + contents[_nT] = __expectString(output[_nT]); } return contents; }; @@ -5382,15 +5379,12 @@ const de_ListPlatformApplicationsResponse = ( ): ListPlatformApplicationsResponse => { const contents: any = {}; if (output.PlatformApplications === "") { - contents.PlatformApplications = []; - } else if (output["PlatformApplications"] !== undefined && output["PlatformApplications"]["member"] !== undefined) { - contents.PlatformApplications = de_ListOfPlatformApplications( - __getArrayIfSingleItem(output["PlatformApplications"]["member"]), - context - ); + contents[_PA] = []; + } else if (output[_PA] != null && output[_PA][_me] != null) { + contents[_PA] = de_ListOfPlatformApplications(__getArrayIfSingleItem(output[_PA][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5404,15 +5398,12 @@ const de_ListSMSSandboxPhoneNumbersResult = ( ): ListSMSSandboxPhoneNumbersResult => { const contents: any = {}; if (output.PhoneNumbers === "") { - contents.PhoneNumbers = []; - } else if (output["PhoneNumbers"] !== undefined && output["PhoneNumbers"]["member"] !== undefined) { - contents.PhoneNumbers = de_SMSSandboxPhoneNumberList( - __getArrayIfSingleItem(output["PhoneNumbers"]["member"]), - context - ); + contents[_PNh] = []; + } else if (output[_PNh] != null && output[_PNh][_me] != null) { + contents[_PNh] = de_SMSSandboxPhoneNumberList(__getArrayIfSingleItem(output[_PNh][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5426,12 +5417,12 @@ const de_ListSubscriptionsByTopicResponse = ( ): ListSubscriptionsByTopicResponse => { const contents: any = {}; if (output.Subscriptions === "") { - contents.Subscriptions = []; - } else if (output["Subscriptions"] !== undefined && output["Subscriptions"]["member"] !== undefined) { - contents.Subscriptions = de_SubscriptionsList(__getArrayIfSingleItem(output["Subscriptions"]["member"]), context); + contents[_Sub] = []; + } else if (output[_Sub] != null && output[_Sub][_me] != null) { + contents[_Sub] = de_SubscriptionsList(__getArrayIfSingleItem(output[_Sub][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5442,12 +5433,12 @@ const de_ListSubscriptionsByTopicResponse = ( const de_ListSubscriptionsResponse = (output: any, context: __SerdeContext): ListSubscriptionsResponse => { const contents: any = {}; if (output.Subscriptions === "") { - contents.Subscriptions = []; - } else if (output["Subscriptions"] !== undefined && output["Subscriptions"]["member"] !== undefined) { - contents.Subscriptions = de_SubscriptionsList(__getArrayIfSingleItem(output["Subscriptions"]["member"]), context); + contents[_Sub] = []; + } else if (output[_Sub] != null && output[_Sub][_me] != null) { + contents[_Sub] = de_SubscriptionsList(__getArrayIfSingleItem(output[_Sub][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5458,9 +5449,9 @@ const de_ListSubscriptionsResponse = (output: any, context: __SerdeContext): Lis const de_ListTagsForResourceResponse = (output: any, context: __SerdeContext): ListTagsForResourceResponse => { const contents: any = {}; if (output.Tags === "") { - contents.Tags = []; - } else if (output["Tags"] !== undefined && output["Tags"]["member"] !== undefined) { - contents.Tags = de_TagList(__getArrayIfSingleItem(output["Tags"]["member"]), context); + contents[_Ta] = []; + } else if (output[_Ta] != null && output[_Ta][_me] != null) { + contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Ta][_me]), context); } return contents; }; @@ -5471,12 +5462,12 @@ const de_ListTagsForResourceResponse = (output: any, context: __SerdeContext): L const de_ListTopicsResponse = (output: any, context: __SerdeContext): ListTopicsResponse => { const contents: any = {}; if (output.Topics === "") { - contents.Topics = []; - } else if (output["Topics"] !== undefined && output["Topics"]["member"] !== undefined) { - contents.Topics = de_TopicsList(__getArrayIfSingleItem(output["Topics"]["member"]), context); + contents[_To] = []; + } else if (output[_To] != null && output[_To][_me] != null) { + contents[_To] = de_TopicsList(__getArrayIfSingleItem(output[_To][_me]), context); } - if (output["NextToken"] !== undefined) { - contents.NextToken = __expectString(output["NextToken"]); + if (output[_NT] != null) { + contents[_NT] = __expectString(output[_NT]); } return contents; }; @@ -5499,8 +5490,8 @@ const de_MapStringToString = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5521,8 +5512,8 @@ const de_NumberCapabilityList = (output: any, context: __SerdeContext): NumberCa */ const de_OptedOutException = (output: any, context: __SerdeContext): OptedOutException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5540,28 +5531,25 @@ const de_OptInPhoneNumberResponse = (output: any, context: __SerdeContext): OptI */ const de_PhoneNumberInformation = (output: any, context: __SerdeContext): PhoneNumberInformation => { const contents: any = {}; - if (output["CreatedAt"] !== undefined) { - contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreatedAt"])); + if (output[_CA] != null) { + contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CA])); } - if (output["PhoneNumber"] !== undefined) { - contents.PhoneNumber = __expectString(output["PhoneNumber"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } - if (output["Iso2CountryCode"] !== undefined) { - contents.Iso2CountryCode = __expectString(output["Iso2CountryCode"]); + if (output[_ICC] != null) { + contents[_ICC] = __expectString(output[_ICC]); } - if (output["RouteType"] !== undefined) { - contents.RouteType = __expectString(output["RouteType"]); + if (output[_RT] != null) { + contents[_RT] = __expectString(output[_RT]); } if (output.NumberCapabilities === "") { - contents.NumberCapabilities = []; - } else if (output["NumberCapabilities"] !== undefined && output["NumberCapabilities"]["member"] !== undefined) { - contents.NumberCapabilities = de_NumberCapabilityList( - __getArrayIfSingleItem(output["NumberCapabilities"]["member"]), - context - ); + contents[_NC] = []; + } else if (output[_NC] != null && output[_NC][_me] != null) { + contents[_NC] = de_NumberCapabilityList(__getArrayIfSingleItem(output[_NC][_me]), context); } return contents; }; @@ -5593,13 +5581,13 @@ const de_PhoneNumberList = (output: any, context: __SerdeContext): string[] => { */ const de_PlatformApplication = (output: any, context: __SerdeContext): PlatformApplication => { const contents: any = {}; - if (output["PlatformApplicationArn"] !== undefined) { - contents.PlatformApplicationArn = __expectString(output["PlatformApplicationArn"]); + if (output[_PAA] != null) { + contents[_PAA] = __expectString(output[_PAA]); } if (output.Attributes === "") { - contents.Attributes = {}; - } else if (output["Attributes"] !== undefined && output["Attributes"]["entry"] !== undefined) { - contents.Attributes = de_MapStringToString(__getArrayIfSingleItem(output["Attributes"]["entry"]), context); + contents[_At] = {}; + } else if (output[_At] != null && output[_At][_e] != null) { + contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); } return contents; }; @@ -5612,8 +5600,8 @@ const de_PlatformApplicationDisabledException = ( context: __SerdeContext ): PlatformApplicationDisabledException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5624,17 +5612,14 @@ const de_PlatformApplicationDisabledException = ( const de_PublishBatchResponse = (output: any, context: __SerdeContext): PublishBatchResponse => { const contents: any = {}; if (output.Successful === "") { - contents.Successful = []; - } else if (output["Successful"] !== undefined && output["Successful"]["member"] !== undefined) { - contents.Successful = de_PublishBatchResultEntryList( - __getArrayIfSingleItem(output["Successful"]["member"]), - context - ); + contents[_Suc] = []; + } else if (output[_Suc] != null && output[_Suc][_me] != null) { + contents[_Suc] = de_PublishBatchResultEntryList(__getArrayIfSingleItem(output[_Suc][_me]), context); } if (output.Failed === "") { - contents.Failed = []; - } else if (output["Failed"] !== undefined && output["Failed"]["member"] !== undefined) { - contents.Failed = de_BatchResultErrorEntryList(__getArrayIfSingleItem(output["Failed"]["member"]), context); + contents[_F] = []; + } else if (output[_F] != null && output[_F][_me] != null) { + contents[_F] = de_BatchResultErrorEntryList(__getArrayIfSingleItem(output[_F][_me]), context); } return contents; }; @@ -5644,14 +5629,14 @@ const de_PublishBatchResponse = (output: any, context: __SerdeContext): PublishB */ const de_PublishBatchResultEntry = (output: any, context: __SerdeContext): PublishBatchResultEntry => { const contents: any = {}; - if (output["Id"] !== undefined) { - contents.Id = __expectString(output["Id"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MI] != null) { + contents[_MI] = __expectString(output[_MI]); } - if (output["SequenceNumber"] !== undefined) { - contents.SequenceNumber = __expectString(output["SequenceNumber"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } return contents; }; @@ -5672,11 +5657,11 @@ const de_PublishBatchResultEntryList = (output: any, context: __SerdeContext): P */ const de_PublishResponse = (output: any, context: __SerdeContext): PublishResponse => { const contents: any = {}; - if (output["MessageId"] !== undefined) { - contents.MessageId = __expectString(output["MessageId"]); + if (output[_MI] != null) { + contents[_MI] = __expectString(output[_MI]); } - if (output["SequenceNumber"] !== undefined) { - contents.SequenceNumber = __expectString(output["SequenceNumber"]); + if (output[_SN] != null) { + contents[_SN] = __expectString(output[_SN]); } return contents; }; @@ -5686,8 +5671,8 @@ const de_PublishResponse = (output: any, context: __SerdeContext): PublishRespon */ const de_ReplayLimitExceededException = (output: any, context: __SerdeContext): ReplayLimitExceededException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5697,8 +5682,8 @@ const de_ReplayLimitExceededException = (output: any, context: __SerdeContext): */ const de_ResourceNotFoundException = (output: any, context: __SerdeContext): ResourceNotFoundException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5716,11 +5701,11 @@ const de_SetSMSAttributesResponse = (output: any, context: __SerdeContext): SetS */ const de_SMSSandboxPhoneNumber = (output: any, context: __SerdeContext): SMSSandboxPhoneNumber => { const contents: any = {}; - if (output["PhoneNumber"] !== undefined) { - contents.PhoneNumber = __expectString(output["PhoneNumber"]); + if (output[_PN] != null) { + contents[_PN] = __expectString(output[_PN]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -5741,8 +5726,8 @@ const de_SMSSandboxPhoneNumberList = (output: any, context: __SerdeContext): SMS */ const de_StaleTagException = (output: any, context: __SerdeContext): StaleTagException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5752,8 +5737,8 @@ const de_StaleTagException = (output: any, context: __SerdeContext): StaleTagExc */ const de_SubscribeResponse = (output: any, context: __SerdeContext): SubscribeResponse => { const contents: any = {}; - if (output["SubscriptionArn"] !== undefined) { - contents.SubscriptionArn = __expectString(output["SubscriptionArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } return contents; }; @@ -5763,20 +5748,20 @@ const de_SubscribeResponse = (output: any, context: __SerdeContext): SubscribeRe */ const de_Subscription = (output: any, context: __SerdeContext): Subscription => { const contents: any = {}; - if (output["SubscriptionArn"] !== undefined) { - contents.SubscriptionArn = __expectString(output["SubscriptionArn"]); + if (output[_SA] != null) { + contents[_SA] = __expectString(output[_SA]); } - if (output["Owner"] !== undefined) { - contents.Owner = __expectString(output["Owner"]); + if (output[_O] != null) { + contents[_O] = __expectString(output[_O]); } - if (output["Protocol"] !== undefined) { - contents.Protocol = __expectString(output["Protocol"]); + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); } - if (output["Endpoint"] !== undefined) { - contents.Endpoint = __expectString(output["Endpoint"]); + if (output[_E] != null) { + contents[_E] = __expectString(output[_E]); } - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } return contents; }; @@ -5802,8 +5787,8 @@ const de_SubscriptionLimitExceededException = ( context: __SerdeContext ): SubscriptionLimitExceededException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5824,11 +5809,11 @@ const de_SubscriptionsList = (output: any, context: __SerdeContext): Subscriptio */ const de_Tag = (output: any, context: __SerdeContext): Tag => { const contents: any = {}; - if (output["Key"] !== undefined) { - contents.Key = __expectString(output["Key"]); + if (output[_K] != null) { + contents[_K] = __expectString(output[_K]); } - if (output["Value"] !== undefined) { - contents.Value = __expectString(output["Value"]); + if (output[_Va] != null) { + contents[_Va] = __expectString(output[_Va]); } return contents; }; @@ -5838,8 +5823,8 @@ const de_Tag = (output: any, context: __SerdeContext): Tag => { */ const de_TagLimitExceededException = (output: any, context: __SerdeContext): TagLimitExceededException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5860,8 +5845,8 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TagPolicyException = (output: any, context: __SerdeContext): TagPolicyException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5879,8 +5864,8 @@ const de_TagResourceResponse = (output: any, context: __SerdeContext): TagResour */ const de_ThrottledException = (output: any, context: __SerdeContext): ThrottledException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5893,8 +5878,8 @@ const de_TooManyEntriesInBatchRequestException = ( context: __SerdeContext ): TooManyEntriesInBatchRequestException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5904,8 +5889,8 @@ const de_TooManyEntriesInBatchRequestException = ( */ const de_Topic = (output: any, context: __SerdeContext): Topic => { const contents: any = {}; - if (output["TopicArn"] !== undefined) { - contents.TopicArn = __expectString(output["TopicArn"]); + if (output[_TA] != null) { + contents[_TA] = __expectString(output[_TA]); } return contents; }; @@ -5928,8 +5913,8 @@ const de_TopicAttributesMap = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5958,8 +5943,8 @@ const de_UntagResourceResponse = (output: any, context: __SerdeContext): UntagRe */ const de_UserErrorException = (output: any, context: __SerdeContext): UserErrorException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -5969,8 +5954,8 @@ const de_UserErrorException = (output: any, context: __SerdeContext): UserErrorE */ const de_ValidationException = (output: any, context: __SerdeContext): ValidationException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -5980,11 +5965,11 @@ const de_ValidationException = (output: any, context: __SerdeContext): Validatio */ const de_VerificationException = (output: any, context: __SerdeContext): VerificationException => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } - if (output["Status"] !== undefined) { - contents.Status = __expectString(output["Status"]); + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); } return contents; }; @@ -6041,6 +6026,119 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2010-03-31"; +const _A = "Action"; +const _AN = "ActionName"; +const _ANt = "AttributeName"; +const _AOU = "AuthenticateOnUnsubscribe"; +const _AP = "AddPermission"; +const _AV = "AttributeValue"; +const _AWSAI = "AWSAccountId"; +const _At = "Attributes"; +const _BV = "BinaryValue"; +const _C = "Code"; +const _CA = "CreatedAt"; +const _CIPNIOO = "CheckIfPhoneNumberIsOptedOut"; +const _CPA = "CreatePlatformApplication"; +const _CPE = "CreatePlatformEndpoint"; +const _CS = "ConfirmSubscription"; +const _CSMSSPN = "CreateSMSSandboxPhoneNumber"; +const _CT = "CreateTopic"; +const _CUD = "CustomUserData"; +const _DE = "DeleteEndpoint"; +const _DPA = "DeletePlatformApplication"; +const _DPP = "DataProtectionPolicy"; +const _DSMSSPN = "DeleteSMSSandboxPhoneNumber"; +const _DT = "DeleteTopic"; +const _DTa = "DataType"; +const _E = "Endpoint"; +const _EA = "EndpointArn"; +const _En = "Endpoints"; +const _F = "Failed"; +const _GDPP = "GetDataProtectionPolicy"; +const _GEA = "GetEndpointAttributes"; +const _GPAA = "GetPlatformApplicationAttributes"; +const _GSA = "GetSubscriptionAttributes"; +const _GSMSA = "GetSMSAttributes"; +const _GSMSSAS = "GetSMSSandboxAccountStatus"; +const _GTA = "GetTopicAttributes"; +const _I = "Id"; +const _ICC = "Iso2CountryCode"; +const _IIS = "IsInSandbox"; +const _K = "Key"; +const _L = "Label"; +const _LC = "LanguageCode"; +const _LEBPA = "ListEndpointsByPlatformApplication"; +const _LON = "ListOriginationNumbers"; +const _LPA = "ListPlatformApplications"; +const _LPNOO = "ListPhoneNumbersOptedOut"; +const _LS = "ListSubscriptions"; +const _LSBT = "ListSubscriptionsByTopic"; +const _LSMSSPN = "ListSMSSandboxPhoneNumbers"; +const _LT = "ListTopics"; +const _LTFR = "ListTagsForResource"; +const _M = "Message"; +const _MA = "MessageAttributes"; +const _MDI = "MessageDeduplicationId"; +const _MGI = "MessageGroupId"; +const _MI = "MessageId"; +const _MR = "MaxResults"; +const _MS = "MessageStructure"; +const _N = "Name"; +const _NC = "NumberCapabilities"; +const _NT = "NextToken"; +const _O = "Owner"; +const _OIPN = "OptInPhoneNumber"; +const _OTP = "OneTimePassword"; +const _P = "Publish"; +const _PA = "PlatformApplications"; +const _PAA = "PlatformApplicationArn"; +const _PB = "PublishBatch"; +const _PBRE = "PublishBatchRequestEntries"; +const _PDPP = "PutDataProtectionPolicy"; +const _PN = "PhoneNumber"; +const _PNh = "PhoneNumbers"; +const _Pl = "Platform"; +const _Pr = "Protocol"; +const _RA = "ResourceArn"; +const _RP = "RemovePermission"; +const _RSA = "ReturnSubscriptionArn"; +const _RT = "RouteType"; +const _S = "Subscribe"; +const _SA = "SubscriptionArn"; +const _SEA = "SetEndpointAttributes"; +const _SF = "SenderFault"; +const _SN = "SequenceNumber"; +const _SPAA = "SetPlatformApplicationAttributes"; +const _SSA = "SetSubscriptionAttributes"; +const _SSMSA = "SetSMSAttributes"; +const _STA = "SetTopicAttributes"; +const _SV = "StringValue"; +const _St = "Status"; +const _Su = "Subject"; +const _Sub = "Subscriptions"; +const _Suc = "Successful"; +const _T = "Token"; +const _TA = "TopicArn"; +const _TAa = "TargetArn"; +const _TK = "TagKeys"; +const _TR = "TagResource"; +const _Ta = "Tags"; +const _To = "Topics"; +const _U = "Unsubscribe"; +const _UR = "UntagResource"; +const _V = "Version"; +const _VSMSSPN = "VerifySMSSandboxPhoneNumber"; +const _Va = "Value"; +const _a = "attributes"; +const _e = "entry"; +const _iOO = "isOptedOut"; +const _m = "message"; +const _me = "member"; +const _nT = "nextToken"; +const _pN = "phoneNumber"; +const _pNh = "phoneNumbers"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ssm-incidents/package.json b/clients/client-ssm-incidents/package.json index 758d066962c5..c1aa37da4341 100644 --- a/clients/client-ssm-incidents/package.json +++ b/clients/client-ssm-incidents/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts index 8963830fdb00..9f368146bc9b 100644 --- a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts +++ b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -157,12 +158,11 @@ export const se_BatchGetIncidentFindingsCommand = async ( input: BatchGetIncidentFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batchGetIncidentFindings"; + b.bp("/batchGetIncidentFindings"); let body: any; body = JSON.stringify( take(input, { @@ -170,15 +170,8 @@ export const se_BatchGetIncidentFindingsCommand = async ( incidentRecordArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -188,11 +181,11 @@ export const se_CreateReplicationSetCommand = async ( input: CreateReplicationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet"; + b.bp("/createReplicationSet"); let body: any; body = JSON.stringify( take(input, { @@ -201,15 +194,8 @@ export const se_CreateReplicationSetCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -219,11 +205,11 @@ export const se_CreateResponsePlanCommand = async ( input: CreateResponsePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan"; + b.bp("/createResponsePlan"); let body: any; body = JSON.stringify( take(input, { @@ -238,15 +224,8 @@ export const se_CreateResponsePlanCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -256,11 +235,11 @@ export const se_CreateTimelineEventCommand = async ( input: CreateTimelineEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent"; + b.bp("/createTimelineEvent"); let body: any; body = JSON.stringify( take(input, { @@ -272,15 +251,8 @@ export const se_CreateTimelineEventCommand = async ( incidentRecordArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -290,26 +262,19 @@ export const se_DeleteIncidentRecordCommand = async ( input: DeleteIncidentRecordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteIncidentRecord"; + b.bp("/deleteIncidentRecord"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -319,23 +284,15 @@ export const se_DeleteReplicationSetCommand = async ( input: DeleteReplicationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteReplicationSet"; + b.bp("/deleteReplicationSet"); const query: any = map({ - arn: [, __expectNonNull(input.arn!, `arn`)], + [_a]: [, __expectNonNull(input[_a]!, `arn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -345,11 +302,11 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResourcePolicy"; + b.bp("/deleteResourcePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -357,15 +314,8 @@ export const se_DeleteResourcePolicyCommand = async ( resourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -375,26 +325,19 @@ export const se_DeleteResponsePlanCommand = async ( input: DeleteResponsePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResponsePlan"; + b.bp("/deleteResponsePlan"); let body: any; body = JSON.stringify( take(input, { arn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -404,11 +347,11 @@ export const se_DeleteTimelineEventCommand = async ( input: DeleteTimelineEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTimelineEvent"; + b.bp("/deleteTimelineEvent"); let body: any; body = JSON.stringify( take(input, { @@ -416,15 +359,8 @@ export const se_DeleteTimelineEventCommand = async ( incidentRecordArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -434,23 +370,15 @@ export const se_GetIncidentRecordCommand = async ( input: GetIncidentRecordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getIncidentRecord"; + b.bp("/getIncidentRecord"); const query: any = map({ - arn: [, __expectNonNull(input.arn!, `arn`)], + [_a]: [, __expectNonNull(input[_a]!, `arn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -460,23 +388,15 @@ export const se_GetReplicationSetCommand = async ( input: GetReplicationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getReplicationSet"; + b.bp("/getReplicationSet"); const query: any = map({ - arn: [, __expectNonNull(input.arn!, `arn`)], + [_a]: [, __expectNonNull(input[_a]!, `arn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -486,13 +406,13 @@ export const se_GetResourcePoliciesCommand = async ( input: GetResourcePoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResourcePolicies"; + b.bp("/getResourcePolicies"); const query: any = map({ - resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)], + [_rA]: [, __expectNonNull(input[_rA]!, `resourceArn`)], }); let body: any; body = JSON.stringify( @@ -501,16 +421,8 @@ export const se_GetResourcePoliciesCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -520,23 +432,15 @@ export const se_GetResponsePlanCommand = async ( input: GetResponsePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResponsePlan"; + b.bp("/getResponsePlan"); const query: any = map({ - arn: [, __expectNonNull(input.arn!, `arn`)], + [_a]: [, __expectNonNull(input[_a]!, `arn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -546,24 +450,16 @@ export const se_GetTimelineEventCommand = async ( input: GetTimelineEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getTimelineEvent"; + b.bp("/getTimelineEvent"); const query: any = map({ - incidentRecordArn: [, __expectNonNull(input.incidentRecordArn!, `incidentRecordArn`)], - eventId: [, __expectNonNull(input.eventId!, `eventId`)], + [_iRA]: [, __expectNonNull(input[_iRA]!, `incidentRecordArn`)], + [_eI]: [, __expectNonNull(input[_eI]!, `eventId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -573,11 +469,11 @@ export const se_ListIncidentFindingsCommand = async ( input: ListIncidentFindingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentFindings"; + b.bp("/listIncidentFindings"); let body: any; body = JSON.stringify( take(input, { @@ -586,15 +482,8 @@ export const se_ListIncidentFindingsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -604,11 +493,11 @@ export const se_ListIncidentRecordsCommand = async ( input: ListIncidentRecordsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords"; + b.bp("/listIncidentRecords"); let body: any; body = JSON.stringify( take(input, { @@ -617,15 +506,8 @@ export const se_ListIncidentRecordsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -635,11 +517,11 @@ export const se_ListRelatedItemsCommand = async ( input: ListRelatedItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRelatedItems"; + b.bp("/listRelatedItems"); let body: any; body = JSON.stringify( take(input, { @@ -648,15 +530,8 @@ export const se_ListRelatedItemsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -666,11 +541,11 @@ export const se_ListReplicationSetsCommand = async ( input: ListReplicationSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listReplicationSets"; + b.bp("/listReplicationSets"); let body: any; body = JSON.stringify( take(input, { @@ -678,15 +553,8 @@ export const se_ListReplicationSetsCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -696,11 +564,11 @@ export const se_ListResponsePlansCommand = async ( input: ListResponsePlansCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listResponsePlans"; + b.bp("/listResponsePlans"); let body: any; body = JSON.stringify( take(input, { @@ -708,15 +576,8 @@ export const se_ListResponsePlansCommand = async ( nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -726,20 +587,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -749,11 +603,11 @@ export const se_ListTimelineEventsCommand = async ( input: ListTimelineEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents"; + b.bp("/listTimelineEvents"); let body: any; body = JSON.stringify( take(input, { @@ -765,15 +619,8 @@ export const se_ListTimelineEventsCommand = async ( sortOrder: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -783,11 +630,11 @@ export const se_PutResourcePolicyCommand = async ( input: PutResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putResourcePolicy"; + b.bp("/putResourcePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -795,15 +642,8 @@ export const se_PutResourcePolicyCommand = async ( resourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -813,11 +653,11 @@ export const se_StartIncidentCommand = async ( input: StartIncidentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident"; + b.bp("/startIncident"); let body: any; body = JSON.stringify( take(input, { @@ -829,15 +669,8 @@ export const se_StartIncidentCommand = async ( triggerDetails: (_) => se_TriggerDetails(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -847,27 +680,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -877,27 +703,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -907,12 +725,11 @@ export const se_UpdateDeletionProtectionCommand = async ( input: UpdateDeletionProtectionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDeletionProtection"; + b.bp("/updateDeletionProtection"); let body: any; body = JSON.stringify( take(input, { @@ -921,15 +738,8 @@ export const se_UpdateDeletionProtectionCommand = async ( deletionProtected: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -939,11 +749,11 @@ export const se_UpdateIncidentRecordCommand = async ( input: UpdateIncidentRecordCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateIncidentRecord"; + b.bp("/updateIncidentRecord"); let body: any; body = JSON.stringify( take(input, { @@ -957,15 +767,8 @@ export const se_UpdateIncidentRecordCommand = async ( title: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -975,11 +778,11 @@ export const se_UpdateRelatedItemsCommand = async ( input: UpdateRelatedItemsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems"; + b.bp("/updateRelatedItems"); let body: any; body = JSON.stringify( take(input, { @@ -988,15 +791,8 @@ export const se_UpdateRelatedItemsCommand = async ( relatedItemsUpdate: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1006,11 +802,11 @@ export const se_UpdateReplicationSetCommand = async ( input: UpdateReplicationSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet"; + b.bp("/updateReplicationSet"); let body: any; body = JSON.stringify( take(input, { @@ -1019,15 +815,8 @@ export const se_UpdateReplicationSetCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1037,11 +826,11 @@ export const se_UpdateResponsePlanCommand = async ( input: UpdateResponsePlanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan"; + b.bp("/updateResponsePlan"); let body: any; body = JSON.stringify( take(input, { @@ -1060,15 +849,8 @@ export const se_UpdateResponsePlanCommand = async ( integrations: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1078,11 +860,11 @@ export const se_UpdateTimelineEventCommand = async ( input: UpdateTimelineEventCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent"; + b.bp("/updateTimelineEvent"); let body: any; body = JSON.stringify( take(input, { @@ -1095,15 +877,8 @@ export const se_UpdateTimelineEventCommand = async ( incidentRecordArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3483,6 +3258,12 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "arn"; +const _eI = "eventId"; +const _iRA = "incidentRecordArn"; +const _rA = "resourceArn"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ssm-sap/package.json b/clients/client-ssm-sap/package.json index f7a31e3b7cb8..feeac933df15 100644 --- a/clients/client-ssm-sap/package.json +++ b/clients/client-ssm-sap/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-ssm-sap/src/protocols/Aws_restJson1.ts b/clients/client-ssm-sap/src/protocols/Aws_restJson1.ts index 0e4f8d51bb66..4051a71f41c3 100644 --- a/clients/client-ssm-sap/src/protocols/Aws_restJson1.ts +++ b/clients/client-ssm-sap/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -87,12 +88,11 @@ export const se_DeleteResourcePermissionCommand = async ( input: DeleteResourcePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-resource-permission"; + b.bp("/delete-resource-permission"); let body: any; body = JSON.stringify( take(input, { @@ -101,15 +101,8 @@ export const se_DeleteResourcePermissionCommand = async ( SourceResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -119,27 +112,19 @@ export const se_DeregisterApplicationCommand = async ( input: DeregisterApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deregister-application"; + b.bp("/deregister-application"); let body: any; body = JSON.stringify( take(input, { ApplicationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -149,11 +134,11 @@ export const se_GetApplicationCommand = async ( input: GetApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-application"; + b.bp("/get-application"); let body: any; body = JSON.stringify( take(input, { @@ -162,15 +147,8 @@ export const se_GetApplicationCommand = async ( ApplicationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -180,11 +158,11 @@ export const se_GetComponentCommand = async ( input: GetComponentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-component"; + b.bp("/get-component"); let body: any; body = JSON.stringify( take(input, { @@ -192,15 +170,8 @@ export const se_GetComponentCommand = async ( ComponentId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -210,11 +181,11 @@ export const se_GetDatabaseCommand = async ( input: GetDatabaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-database"; + b.bp("/get-database"); let body: any; body = JSON.stringify( take(input, { @@ -224,15 +195,8 @@ export const se_GetDatabaseCommand = async ( DatabaseId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -242,26 +206,19 @@ export const se_GetOperationCommand = async ( input: GetOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-operation"; + b.bp("/get-operation"); let body: any; body = JSON.stringify( take(input, { OperationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -271,12 +228,11 @@ export const se_GetResourcePermissionCommand = async ( input: GetResourcePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-resource-permission"; + b.bp("/get-resource-permission"); let body: any; body = JSON.stringify( take(input, { @@ -284,15 +240,8 @@ export const se_GetResourcePermissionCommand = async ( ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -302,11 +251,11 @@ export const se_ListApplicationsCommand = async ( input: ListApplicationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-applications"; + b.bp("/list-applications"); let body: any; body = JSON.stringify( take(input, { @@ -315,15 +264,8 @@ export const se_ListApplicationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -333,11 +275,11 @@ export const se_ListComponentsCommand = async ( input: ListComponentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-components"; + b.bp("/list-components"); let body: any; body = JSON.stringify( take(input, { @@ -346,15 +288,8 @@ export const se_ListComponentsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -364,11 +299,11 @@ export const se_ListDatabasesCommand = async ( input: ListDatabasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-databases"; + b.bp("/list-databases"); let body: any; body = JSON.stringify( take(input, { @@ -378,15 +313,8 @@ export const se_ListDatabasesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -396,11 +324,11 @@ export const se_ListOperationsCommand = async ( input: ListOperationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-operations"; + b.bp("/list-operations"); let body: any; body = JSON.stringify( take(input, { @@ -410,15 +338,8 @@ export const se_ListOperationsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -428,20 +349,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -451,12 +365,11 @@ export const se_PutResourcePermissionCommand = async ( input: PutResourcePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-resource-permission"; + b.bp("/put-resource-permission"); let body: any; body = JSON.stringify( take(input, { @@ -465,15 +378,8 @@ export const se_PutResourcePermissionCommand = async ( SourceResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -483,11 +389,11 @@ export const se_RegisterApplicationCommand = async ( input: RegisterApplicationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-application"; + b.bp("/register-application"); let body: any; body = JSON.stringify( take(input, { @@ -501,15 +407,8 @@ export const se_RegisterApplicationCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -519,27 +418,19 @@ export const se_StartApplicationRefreshCommand = async ( input: StartApplicationRefreshCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-application-refresh"; + b.bp("/start-application-refresh"); let body: any; body = JSON.stringify( take(input, { ApplicationId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -549,27 +440,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -579,27 +463,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -609,12 +485,11 @@ export const se_UpdateApplicationSettingsCommand = async ( input: UpdateApplicationSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-application-settings"; + b.bp("/update-application-settings"); let body: any; body = JSON.stringify( take(input, { @@ -625,15 +500,8 @@ export const se_UpdateApplicationSettingsCommand = async ( DatabaseArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1868,6 +1736,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-ssm/src/models/models_1.ts b/clients/client-ssm/src/models/models_1.ts index e8ef995e9668..cf2ed49b4e08 100644 --- a/clients/client-ssm/src/models/models_1.ts +++ b/clients/client-ssm/src/models/models_1.ts @@ -47,6 +47,7 @@ import { Target, TargetLocation, } from "./models_0"; + import { SSMServiceException as __BaseException } from "./SSMServiceException"; /** diff --git a/clients/client-ssm/src/models/models_2.ts b/clients/client-ssm/src/models/models_2.ts index 51799b82a5a3..78ef87680a9e 100644 --- a/clients/client-ssm/src/models/models_2.ts +++ b/clients/client-ssm/src/models/models_2.ts @@ -30,6 +30,7 @@ import { Target, TargetLocation, } from "./models_0"; + import { DocumentReviewCommentSource, InventoryFilter, @@ -41,6 +42,7 @@ import { OpsResultAttribute, ResultAttribute, } from "./models_1"; + import { SSMServiceException as __BaseException } from "./SSMServiceException"; /** diff --git a/clients/client-sso-admin/src/models/models_0.ts b/clients/client-sso-admin/src/models/models_0.ts index 7b55504f7b19..f2636f3fb4c6 100644 --- a/clients/client-sso-admin/src/models/models_0.ts +++ b/clients/client-sso-admin/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { SSOAdminServiceException as __BaseException } from "./SSOAdminServiceException"; diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index f8ce5da2727a..0f015571e475 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sso-oidc/src/protocols/Aws_restJson1.ts b/clients/client-sso-oidc/src/protocols/Aws_restJson1.ts index d4e12c646356..bbacfec6db84 100644 --- a/clients/client-sso-oidc/src/protocols/Aws_restJson1.ts +++ b/clients/client-sso-oidc/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -50,11 +51,11 @@ export const se_CreateTokenCommand = async ( input: CreateTokenCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/token"; + b.bp("/token"); let body: any; body = JSON.stringify( take(input, { @@ -68,15 +69,8 @@ export const se_CreateTokenCommand = async ( scope: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -86,13 +80,13 @@ export const se_CreateTokenWithIAMCommand = async ( input: CreateTokenWithIAMCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/token"; + b.bp("/token"); const query: any = map({ - aws_iam: [, "t"], + [_ai]: [, "t"], }); let body: any; body = JSON.stringify( @@ -109,16 +103,8 @@ export const se_CreateTokenWithIAMCommand = async ( subjectTokenType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -128,11 +114,11 @@ export const se_RegisterClientCommand = async ( input: RegisterClientCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/client/register"; + b.bp("/client/register"); let body: any; body = JSON.stringify( take(input, { @@ -141,15 +127,8 @@ export const se_RegisterClientCommand = async ( scopes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -159,11 +138,11 @@ export const se_StartDeviceAuthorizationCommand = async ( input: StartDeviceAuthorizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device_authorization"; + b.bp("/device_authorization"); let body: any; body = JSON.stringify( take(input, { @@ -172,15 +151,8 @@ export const se_StartDeviceAuthorizationCommand = async ( startUrl: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -771,6 +743,8 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _ai = "aws_iam"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sso/package.json b/clients/client-sso/package.json index 99e961364298..d0a3a86f4539 100644 --- a/clients/client-sso/package.json +++ b/clients/client-sso/package.json @@ -31,6 +31,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sso/src/protocols/Aws_restJson1.ts b/clients/client-sso/src/protocols/Aws_restJson1.ts index 0b24af732465..f42acb2a1c3c 100644 --- a/clients/client-sso/src/protocols/Aws_restJson1.ts +++ b/clients/client-sso/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -37,27 +38,18 @@ export const se_GetRoleCredentialsCommand = async ( input: GetRoleCredentialsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken!, + [_xasbt]: input[_aT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; + b.bp("/federation/credentials"); const query: any = map({ - role_name: [, __expectNonNull(input.roleName!, `roleName`)], - account_id: [, __expectNonNull(input.accountId!, `accountId`)], + [_rn]: [, __expectNonNull(input[_rN]!, `roleName`)], + [_ai]: [, __expectNonNull(input[_aI]!, `accountId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -67,27 +59,19 @@ export const se_ListAccountRolesCommand = async ( input: ListAccountRolesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken!, + [_xasbt]: input[_aT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; + b.bp("/assignment/roles"); const query: any = map({ - next_token: [, input.nextToken!], - max_result: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - account_id: [, __expectNonNull(input.accountId!, `accountId`)], + [_nt]: [, input[_nT]!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_ai]: [, __expectNonNull(input[_aI]!, `accountId`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -97,47 +81,32 @@ export const se_ListAccountsCommand = async ( input: ListAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken!, + [_xasbt]: input[_aT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; + b.bp("/assignment/accounts"); const query: any = map({ - next_token: [, input.nextToken!], - max_result: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nt]: [, input[_nT]!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** * serializeAws_restJson1LogoutCommand */ export const se_LogoutCommand = async (input: LogoutCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken!, + [_xasbt]: input[_aT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; + b.bp("/logout"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -466,6 +435,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aI = "accountId"; +const _aT = "accessToken"; +const _ai = "account_id"; +const _mR = "maxResults"; +const _mr = "max_result"; +const _nT = "nextToken"; +const _nt = "next_token"; +const _rN = "roleName"; +const _rn = "role_name"; +const _xasbt = "x-amz-sso_bearer_token"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-sts/package.json b/clients/client-sts/package.json index e8b0d0a83927..f594668871c8 100644 --- a/clients/client-sts/package.json +++ b/clients/client-sts/package.json @@ -34,7 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", - "@smithy/core": "^1.1.0", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-sts/src/protocols/Aws_query.ts b/clients/client-sts/src/protocols/Aws_query.ts index a56f3c6c08cb..4aedb0663cbe 100644 --- a/clients/client-sts/src/protocols/Aws_query.ts +++ b/clients/client-sts/src/protocols/Aws_query.ts @@ -78,8 +78,8 @@ export const se_AssumeRoleCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssumeRoleRequest(input, context), - Action: "AssumeRole", - Version: "2011-06-15", + [_A]: _AR, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -95,8 +95,8 @@ export const se_AssumeRoleWithSAMLCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssumeRoleWithSAMLRequest(input, context), - Action: "AssumeRoleWithSAML", - Version: "2011-06-15", + [_A]: _ARWSAML, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -112,8 +112,8 @@ export const se_AssumeRoleWithWebIdentityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_AssumeRoleWithWebIdentityRequest(input, context), - Action: "AssumeRoleWithWebIdentity", - Version: "2011-06-15", + [_A]: _ARWWI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -129,8 +129,8 @@ export const se_DecodeAuthorizationMessageCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_DecodeAuthorizationMessageRequest(input, context), - Action: "DecodeAuthorizationMessage", - Version: "2011-06-15", + [_A]: _DAM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -146,8 +146,8 @@ export const se_GetAccessKeyInfoCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetAccessKeyInfoRequest(input, context), - Action: "GetAccessKeyInfo", - Version: "2011-06-15", + [_A]: _GAKI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -163,8 +163,8 @@ export const se_GetCallerIdentityCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetCallerIdentityRequest(input, context), - Action: "GetCallerIdentity", - Version: "2011-06-15", + [_A]: _GCI, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -180,8 +180,8 @@ export const se_GetFederationTokenCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetFederationTokenRequest(input, context), - Action: "GetFederationToken", - Version: "2011-06-15", + [_A]: _GFT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -197,8 +197,8 @@ export const se_GetSessionTokenCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_GetSessionTokenRequest(input, context), - Action: "GetSessionToken", - Version: "2011-06-15", + [_A]: _GST, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -740,15 +740,15 @@ const de_RegionDisabledExceptionRes = async ( */ const se_AssumeRoleRequest = (input: AssumeRoleRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (input[_PA]?.length === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -756,15 +756,15 @@ const se_AssumeRoleRequest = (input: AssumeRoleRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -772,9 +772,9 @@ const se_AssumeRoleRequest = (input: AssumeRoleRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.TransitiveTagKeys != null) { - const memberEntries = se_tagKeyListType(input.TransitiveTagKeys, context); - if (input.TransitiveTagKeys?.length === 0) { + if (input[_TTK] != null) { + const memberEntries = se_tagKeyListType(input[_TTK], context); + if (input[_TTK]?.length === 0) { entries.TransitiveTagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -782,21 +782,21 @@ const se_AssumeRoleRequest = (input: AssumeRoleRequest, context: __SerdeContext) entries[loc] = value; }); } - if (input.ExternalId != null) { - entries["ExternalId"] = input.ExternalId; + if (input[_EI] != null) { + entries[_EI] = input[_EI]; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; + if (input[_TC] != null) { + entries[_TC] = input[_TC]; } - if (input.SourceIdentity != null) { - entries["SourceIdentity"] = input.SourceIdentity; + if (input[_SI] != null) { + entries[_SI] = input[_SI]; } - if (input.ProvidedContexts != null) { - const memberEntries = se_ProvidedContextsListType(input.ProvidedContexts, context); - if (input.ProvidedContexts?.length === 0) { + if (input[_PC] != null) { + const memberEntries = se_ProvidedContextsListType(input[_PC], context); + if (input[_PC]?.length === 0) { entries.ProvidedContexts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -812,18 +812,18 @@ const se_AssumeRoleRequest = (input: AssumeRoleRequest, context: __SerdeContext) */ const se_AssumeRoleWithSAMLRequest = (input: AssumeRoleWithSAMLRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; + if (input[_PAr] != null) { + entries[_PAr] = input[_PAr]; } - if (input.SAMLAssertion != null) { - entries["SAMLAssertion"] = input.SAMLAssertion; + if (input[_SAMLA] != null) { + entries[_SAMLA] = input[_SAMLA]; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (input[_PA]?.length === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -831,11 +831,11 @@ const se_AssumeRoleWithSAMLRequest = (input: AssumeRoleWithSAMLRequest, context: entries[loc] = value; }); } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; } return entries; }; @@ -845,21 +845,21 @@ const se_AssumeRoleWithSAMLRequest = (input: AssumeRoleWithSAMLRequest, context: */ const se_AssumeRoleWithWebIdentityRequest = (input: AssumeRoleWithWebIdentityRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; + if (input[_RSN] != null) { + entries[_RSN] = input[_RSN]; } - if (input.WebIdentityToken != null) { - entries["WebIdentityToken"] = input.WebIdentityToken; + if (input[_WIT] != null) { + entries[_WIT] = input[_WIT]; } - if (input.ProviderId != null) { - entries["ProviderId"] = input.ProviderId; + if (input[_PI] != null) { + entries[_PI] = input[_PI]; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (input[_PA]?.length === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -867,11 +867,11 @@ const se_AssumeRoleWithWebIdentityRequest = (input: AssumeRoleWithWebIdentityReq entries[loc] = value; }); } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; } return entries; }; @@ -884,8 +884,8 @@ const se_DecodeAuthorizationMessageRequest = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.EncodedMessage != null) { - entries["EncodedMessage"] = input.EncodedMessage; + if (input[_EM] != null) { + entries[_EM] = input[_EM]; } return entries; }; @@ -895,8 +895,8 @@ const se_DecodeAuthorizationMessageRequest = ( */ const se_GetAccessKeyInfoRequest = (input: GetAccessKeyInfoRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; + if (input[_AKI] != null) { + entries[_AKI] = input[_AKI]; } return entries; }; @@ -914,15 +914,15 @@ const se_GetCallerIdentityRequest = (input: GetCallerIdentityRequest, context: _ */ const se_GetFederationTokenRequest = (input: GetFederationTokenRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.Name != null) { - entries["Name"] = input.Name; + if (input[_N] != null) { + entries[_N] = input[_N]; } - if (input.Policy != null) { - entries["Policy"] = input.Policy; + if (input[_P] != null) { + entries[_P] = input[_P]; } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (input[_PA]?.length === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -930,12 +930,12 @@ const se_GetFederationTokenRequest = (input: GetFederationTokenRequest, context: entries[loc] = value; }); } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (input[_T]?.length === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -951,14 +951,14 @@ const se_GetFederationTokenRequest = (input: GetFederationTokenRequest, context: */ const se_GetSessionTokenRequest = (input: GetSessionTokenRequest, context: __SerdeContext): any => { const entries: any = {}; - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; + if (input[_SN] != null) { + entries[_SN] = input[_SN]; } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; + if (input[_TC] != null) { + entries[_TC] = input[_TC]; } return entries; }; @@ -987,8 +987,8 @@ const se_policyDescriptorListType = (input: PolicyDescriptorType[], context: __S */ const se_PolicyDescriptorType = (input: PolicyDescriptorType, context: __SerdeContext): any => { const entries: any = {}; - if (input.arn != null) { - entries["arn"] = input.arn; + if (input[_a] != null) { + entries[_a] = input[_a]; } return entries; }; @@ -998,11 +998,11 @@ const se_PolicyDescriptorType = (input: PolicyDescriptorType, context: __SerdeCo */ const se_ProvidedContext = (input: ProvidedContext, context: __SerdeContext): any => { const entries: any = {}; - if (input.ProviderArn != null) { - entries["ProviderArn"] = input.ProviderArn; + if (input[_PAro] != null) { + entries[_PAro] = input[_PAro]; } - if (input.ContextAssertion != null) { - entries["ContextAssertion"] = input.ContextAssertion; + if (input[_CA] != null) { + entries[_CA] = input[_CA]; } return entries; }; @@ -1031,11 +1031,11 @@ const se_ProvidedContextsListType = (input: ProvidedContext[], context: __SerdeC */ const se_Tag = (input: Tag, context: __SerdeContext): any => { const entries: any = {}; - if (input.Key != null) { - entries["Key"] = input.Key; + if (input[_K] != null) { + entries[_K] = input[_K]; } - if (input.Value != null) { - entries["Value"] = input.Value; + if (input[_Va] != null) { + entries[_Va] = input[_Va]; } return entries; }; @@ -1080,11 +1080,11 @@ const se_tagListType = (input: Tag[], context: __SerdeContext): any => { */ const de_AssumedRoleUser = (output: any, context: __SerdeContext): AssumedRoleUser => { const contents: any = {}; - if (output["AssumedRoleId"] !== undefined) { - contents.AssumedRoleId = __expectString(output["AssumedRoleId"]); + if (output[_ARI] != null) { + contents[_ARI] = __expectString(output[_ARI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -1094,17 +1094,17 @@ const de_AssumedRoleUser = (output: any, context: __SerdeContext): AssumedRoleUs */ const de_AssumeRoleResponse = (output: any, context: __SerdeContext): AssumeRoleResponse => { const contents: any = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); + if (output[_ARU] != null) { + contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; + if (output[_PPS] != null) { + contents[_PPS] = __strictParseInt32(output[_PPS]) as number; } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = __expectString(output["SourceIdentity"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -1114,32 +1114,32 @@ const de_AssumeRoleResponse = (output: any, context: __SerdeContext): AssumeRole */ const de_AssumeRoleWithSAMLResponse = (output: any, context: __SerdeContext): AssumeRoleWithSAMLResponse => { const contents: any = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); + if (output[_ARU] != null) { + contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; + if (output[_PPS] != null) { + contents[_PPS] = __strictParseInt32(output[_PPS]) as number; } - if (output["Subject"] !== undefined) { - contents.Subject = __expectString(output["Subject"]); + if (output[_S] != null) { + contents[_S] = __expectString(output[_S]); } - if (output["SubjectType"] !== undefined) { - contents.SubjectType = __expectString(output["SubjectType"]); + if (output[_ST] != null) { + contents[_ST] = __expectString(output[_ST]); } - if (output["Issuer"] !== undefined) { - contents.Issuer = __expectString(output["Issuer"]); + if (output[_I] != null) { + contents[_I] = __expectString(output[_I]); } - if (output["Audience"] !== undefined) { - contents.Audience = __expectString(output["Audience"]); + if (output[_Au] != null) { + contents[_Au] = __expectString(output[_Au]); } - if (output["NameQualifier"] !== undefined) { - contents.NameQualifier = __expectString(output["NameQualifier"]); + if (output[_NQ] != null) { + contents[_NQ] = __expectString(output[_NQ]); } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = __expectString(output["SourceIdentity"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -1152,26 +1152,26 @@ const de_AssumeRoleWithWebIdentityResponse = ( context: __SerdeContext ): AssumeRoleWithWebIdentityResponse => { const contents: any = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); } - if (output["SubjectFromWebIdentityToken"] !== undefined) { - contents.SubjectFromWebIdentityToken = __expectString(output["SubjectFromWebIdentityToken"]); + if (output[_SFWIT] != null) { + contents[_SFWIT] = __expectString(output[_SFWIT]); } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); + if (output[_ARU] != null) { + contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; + if (output[_PPS] != null) { + contents[_PPS] = __strictParseInt32(output[_PPS]) as number; } - if (output["Provider"] !== undefined) { - contents.Provider = __expectString(output["Provider"]); + if (output[_Pr] != null) { + contents[_Pr] = __expectString(output[_Pr]); } - if (output["Audience"] !== undefined) { - contents.Audience = __expectString(output["Audience"]); + if (output[_Au] != null) { + contents[_Au] = __expectString(output[_Au]); } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = __expectString(output["SourceIdentity"]); + if (output[_SI] != null) { + contents[_SI] = __expectString(output[_SI]); } return contents; }; @@ -1181,17 +1181,17 @@ const de_AssumeRoleWithWebIdentityResponse = ( */ const de_Credentials = (output: any, context: __SerdeContext): Credentials => { const contents: any = {}; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = __expectString(output["AccessKeyId"]); + if (output[_AKI] != null) { + contents[_AKI] = __expectString(output[_AKI]); } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = __expectString(output["SecretAccessKey"]); + if (output[_SAK] != null) { + contents[_SAK] = __expectString(output[_SAK]); } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = __expectString(output["SessionToken"]); + if (output[_STe] != null) { + contents[_STe] = __expectString(output[_STe]); } - if (output["Expiration"] !== undefined) { - contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"])); + if (output[_E] != null) { + contents[_E] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_E])); } return contents; }; @@ -1204,8 +1204,8 @@ const de_DecodeAuthorizationMessageResponse = ( context: __SerdeContext ): DecodeAuthorizationMessageResponse => { const contents: any = {}; - if (output["DecodedMessage"] !== undefined) { - contents.DecodedMessage = __expectString(output["DecodedMessage"]); + if (output[_DM] != null) { + contents[_DM] = __expectString(output[_DM]); } return contents; }; @@ -1215,8 +1215,8 @@ const de_DecodeAuthorizationMessageResponse = ( */ const de_ExpiredTokenException = (output: any, context: __SerdeContext): ExpiredTokenException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1226,11 +1226,11 @@ const de_ExpiredTokenException = (output: any, context: __SerdeContext): Expired */ const de_FederatedUser = (output: any, context: __SerdeContext): FederatedUser => { const contents: any = {}; - if (output["FederatedUserId"] !== undefined) { - contents.FederatedUserId = __expectString(output["FederatedUserId"]); + if (output[_FUI] != null) { + contents[_FUI] = __expectString(output[_FUI]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -1240,8 +1240,8 @@ const de_FederatedUser = (output: any, context: __SerdeContext): FederatedUser = */ const de_GetAccessKeyInfoResponse = (output: any, context: __SerdeContext): GetAccessKeyInfoResponse => { const contents: any = {}; - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); + if (output[_Ac] != null) { + contents[_Ac] = __expectString(output[_Ac]); } return contents; }; @@ -1251,14 +1251,14 @@ const de_GetAccessKeyInfoResponse = (output: any, context: __SerdeContext): GetA */ const de_GetCallerIdentityResponse = (output: any, context: __SerdeContext): GetCallerIdentityResponse => { const contents: any = {}; - if (output["UserId"] !== undefined) { - contents.UserId = __expectString(output["UserId"]); + if (output[_UI] != null) { + contents[_UI] = __expectString(output[_UI]); } - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); + if (output[_Ac] != null) { + contents[_Ac] = __expectString(output[_Ac]); } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); + if (output[_Ar] != null) { + contents[_Ar] = __expectString(output[_Ar]); } return contents; }; @@ -1268,14 +1268,14 @@ const de_GetCallerIdentityResponse = (output: any, context: __SerdeContext): Get */ const de_GetFederationTokenResponse = (output: any, context: __SerdeContext): GetFederationTokenResponse => { const contents: any = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); } - if (output["FederatedUser"] !== undefined) { - contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context); + if (output[_FU] != null) { + contents[_FU] = de_FederatedUser(output[_FU], context); } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]) as number; + if (output[_PPS] != null) { + contents[_PPS] = __strictParseInt32(output[_PPS]) as number; } return contents; }; @@ -1285,8 +1285,8 @@ const de_GetFederationTokenResponse = (output: any, context: __SerdeContext): Ge */ const de_GetSessionTokenResponse = (output: any, context: __SerdeContext): GetSessionTokenResponse => { const contents: any = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); } return contents; }; @@ -1296,8 +1296,8 @@ const de_GetSessionTokenResponse = (output: any, context: __SerdeContext): GetSe */ const de_IDPCommunicationErrorException = (output: any, context: __SerdeContext): IDPCommunicationErrorException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1307,8 +1307,8 @@ const de_IDPCommunicationErrorException = (output: any, context: __SerdeContext) */ const de_IDPRejectedClaimException = (output: any, context: __SerdeContext): IDPRejectedClaimException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1321,8 +1321,8 @@ const de_InvalidAuthorizationMessageException = ( context: __SerdeContext ): InvalidAuthorizationMessageException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1332,8 +1332,8 @@ const de_InvalidAuthorizationMessageException = ( */ const de_InvalidIdentityTokenException = (output: any, context: __SerdeContext): InvalidIdentityTokenException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1346,8 +1346,8 @@ const de_MalformedPolicyDocumentException = ( context: __SerdeContext ): MalformedPolicyDocumentException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1357,8 +1357,8 @@ const de_MalformedPolicyDocumentException = ( */ const de_PackedPolicyTooLargeException = (output: any, context: __SerdeContext): PackedPolicyTooLargeException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1368,8 +1368,8 @@ const de_PackedPolicyTooLargeException = (output: any, context: __SerdeContext): */ const de_RegionDisabledException = (output: any, context: __SerdeContext): RegionDisabledException => { const contents: any = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); + if (output[_m] != null) { + contents[_m] = __expectString(output[_m]); } return contents; }; @@ -1415,6 +1415,63 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2011-06-15"; +const _A = "Action"; +const _AKI = "AccessKeyId"; +const _AR = "AssumeRole"; +const _ARI = "AssumedRoleId"; +const _ARU = "AssumedRoleUser"; +const _ARWSAML = "AssumeRoleWithSAML"; +const _ARWWI = "AssumeRoleWithWebIdentity"; +const _Ac = "Account"; +const _Ar = "Arn"; +const _Au = "Audience"; +const _C = "Credentials"; +const _CA = "ContextAssertion"; +const _DAM = "DecodeAuthorizationMessage"; +const _DM = "DecodedMessage"; +const _DS = "DurationSeconds"; +const _E = "Expiration"; +const _EI = "ExternalId"; +const _EM = "EncodedMessage"; +const _FU = "FederatedUser"; +const _FUI = "FederatedUserId"; +const _GAKI = "GetAccessKeyInfo"; +const _GCI = "GetCallerIdentity"; +const _GFT = "GetFederationToken"; +const _GST = "GetSessionToken"; +const _I = "Issuer"; +const _K = "Key"; +const _N = "Name"; +const _NQ = "NameQualifier"; +const _P = "Policy"; +const _PA = "PolicyArns"; +const _PAr = "PrincipalArn"; +const _PAro = "ProviderArn"; +const _PC = "ProvidedContexts"; +const _PI = "ProviderId"; +const _PPS = "PackedPolicySize"; +const _Pr = "Provider"; +const _RA = "RoleArn"; +const _RSN = "RoleSessionName"; +const _S = "Subject"; +const _SAK = "SecretAccessKey"; +const _SAMLA = "SAMLAssertion"; +const _SFWIT = "SubjectFromWebIdentityToken"; +const _SI = "SourceIdentity"; +const _SN = "SerialNumber"; +const _ST = "SubjectType"; +const _STe = "SessionToken"; +const _T = "Tags"; +const _TC = "TokenCode"; +const _TTK = "TransitiveTagKeys"; +const _UI = "UserId"; +const _V = "Version"; +const _Va = "Value"; +const _WIT = "WebIdentityToken"; +const _a = "arn"; +const _m = "message"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-support-app/package.json b/clients/client-support-app/package.json index a30ae8e0f8b5..ed7fc4688424 100644 --- a/clients/client-support-app/package.json +++ b/clients/client-support-app/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-support-app/src/protocols/Aws_restJson1.ts b/clients/client-support-app/src/protocols/Aws_restJson1.ts index ecde0831c0cd..e8ab902d0d06 100644 --- a/clients/client-support-app/src/protocols/Aws_restJson1.ts +++ b/clients/client-support-app/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -66,13 +67,11 @@ export const se_CreateSlackChannelConfigurationCommand = async ( input: CreateSlackChannelConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/control/create-slack-channel-configuration"; + b.bp("/control/create-slack-channel-configuration"); let body: any; body = JSON.stringify( take(input, { @@ -86,15 +85,8 @@ export const se_CreateSlackChannelConfigurationCommand = async ( teamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -104,23 +96,15 @@ export const se_DeleteAccountAliasCommand = async ( input: DeleteAccountAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/control/delete-account-alias"; + b.bp("/control/delete-account-alias"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -130,13 +114,11 @@ export const se_DeleteSlackChannelConfigurationCommand = async ( input: DeleteSlackChannelConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/control/delete-slack-channel-configuration"; + b.bp("/control/delete-slack-channel-configuration"); let body: any; body = JSON.stringify( take(input, { @@ -144,15 +126,8 @@ export const se_DeleteSlackChannelConfigurationCommand = async ( teamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -162,28 +137,19 @@ export const se_DeleteSlackWorkspaceConfigurationCommand = async ( input: DeleteSlackWorkspaceConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/control/delete-slack-workspace-configuration"; + b.bp("/control/delete-slack-workspace-configuration"); let body: any; body = JSON.stringify( take(input, { teamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -193,23 +159,15 @@ export const se_GetAccountAliasCommand = async ( input: GetAccountAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/control/get-account-alias"; + b.bp("/control/get-account-alias"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -219,28 +177,19 @@ export const se_ListSlackChannelConfigurationsCommand = async ( input: ListSlackChannelConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/control/list-slack-channel-configurations"; + b.bp("/control/list-slack-channel-configurations"); let body: any; body = JSON.stringify( take(input, { nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -250,28 +199,19 @@ export const se_ListSlackWorkspaceConfigurationsCommand = async ( input: ListSlackWorkspaceConfigurationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/control/list-slack-workspace-configurations"; + b.bp("/control/list-slack-workspace-configurations"); let body: any; body = JSON.stringify( take(input, { nextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -281,27 +221,19 @@ export const se_PutAccountAliasCommand = async ( input: PutAccountAliasCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/control/put-account-alias"; + b.bp("/control/put-account-alias"); let body: any; body = JSON.stringify( take(input, { accountAlias: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -311,28 +243,19 @@ export const se_RegisterSlackWorkspaceForOrganizationCommand = async ( input: RegisterSlackWorkspaceForOrganizationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/control/register-slack-workspace-for-organization"; + b.bp("/control/register-slack-workspace-for-organization"); let body: any; body = JSON.stringify( take(input, { teamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -342,13 +265,11 @@ export const se_UpdateSlackChannelConfigurationCommand = async ( input: UpdateSlackChannelConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/control/update-slack-channel-configuration"; + b.bp("/control/update-slack-channel-configuration"); let body: any; body = JSON.stringify( take(input, { @@ -362,15 +283,8 @@ export const se_UpdateSlackChannelConfigurationCommand = async ( teamId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-synthetics/package.json b/clients/client-synthetics/package.json index d1f2fb2286fa..610f87b9d956 100644 --- a/clients/client-synthetics/package.json +++ b/clients/client-synthetics/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-synthetics/src/protocols/Aws_restJson1.ts b/clients/client-synthetics/src/protocols/Aws_restJson1.ts index f40649e557ed..e733e2e21781 100644 --- a/clients/client-synthetics/src/protocols/Aws_restJson1.ts +++ b/clients/client-synthetics/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -94,35 +95,20 @@ export const se_AssociateResourceCommand = async ( input: AssociateResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/associate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupIdentifier", - () => input.GroupIdentifier!, - "{GroupIdentifier}", - false - ); + b.bp("/group/{GroupIdentifier}/associate"); + b.p("GroupIdentifier", () => input.GroupIdentifier!, "{GroupIdentifier}", false); let body: any; body = JSON.stringify( take(input, { ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -132,11 +118,11 @@ export const se_CreateCanaryCommand = async ( input: CreateCanaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary"; + b.bp("/canary"); let body: any; body = JSON.stringify( take(input, { @@ -154,15 +140,8 @@ export const se_CreateCanaryCommand = async ( VpcConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -172,11 +151,11 @@ export const se_CreateGroupCommand = async ( input: CreateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group"; + b.bp("/group"); let body: any; body = JSON.stringify( take(input, { @@ -184,15 +163,8 @@ export const se_CreateGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -202,24 +174,16 @@ export const se_DeleteCanaryCommand = async ( input: DeleteCanaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/canary/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); const query: any = map({ - deleteLambda: [() => input.DeleteLambda !== void 0, () => input.DeleteLambda!.toString()], + [_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -229,27 +193,13 @@ export const se_DeleteGroupCommand = async ( input: DeleteGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupIdentifier", - () => input.GroupIdentifier!, - "{GroupIdentifier}", - false - ); + b.bp("/group/{GroupIdentifier}"); + b.p("GroupIdentifier", () => input.GroupIdentifier!, "{GroupIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -259,11 +209,11 @@ export const se_DescribeCanariesCommand = async ( input: DescribeCanariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canaries"; + b.bp("/canaries"); let body: any; body = JSON.stringify( take(input, { @@ -272,15 +222,8 @@ export const se_DescribeCanariesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -290,11 +233,11 @@ export const se_DescribeCanariesLastRunCommand = async ( input: DescribeCanariesLastRunCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canaries/last-run"; + b.bp("/canaries/last-run"); let body: any; body = JSON.stringify( take(input, { @@ -303,15 +246,8 @@ export const se_DescribeCanariesLastRunCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -321,11 +257,11 @@ export const se_DescribeRuntimeVersionsCommand = async ( input: DescribeRuntimeVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runtime-versions"; + b.bp("/runtime-versions"); let body: any; body = JSON.stringify( take(input, { @@ -333,15 +269,8 @@ export const se_DescribeRuntimeVersionsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -351,35 +280,20 @@ export const se_DisassociateResourceCommand = async ( input: DisassociateResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/disassociate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupIdentifier", - () => input.GroupIdentifier!, - "{GroupIdentifier}", - false - ); + b.bp("/group/{GroupIdentifier}/disassociate"); + b.p("GroupIdentifier", () => input.GroupIdentifier!, "{GroupIdentifier}", false); let body: any; body = JSON.stringify( take(input, { ResourceArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -389,20 +303,13 @@ export const se_GetCanaryCommand = async ( input: GetCanaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/canary/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -412,12 +319,12 @@ export const se_GetCanaryRunsCommand = async ( input: GetCanaryRunsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}/runs"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/canary/{Name}/runs"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -425,15 +332,8 @@ export const se_GetCanaryRunsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -443,27 +343,13 @@ export const se_GetGroupCommand = async ( input: GetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupIdentifier", - () => input.GroupIdentifier!, - "{GroupIdentifier}", - false - ); + b.bp("/group/{GroupIdentifier}"); + b.p("GroupIdentifier", () => input.GroupIdentifier!, "{GroupIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -473,13 +359,12 @@ export const se_ListAssociatedGroupsCommand = async ( input: ListAssociatedGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource/{ResourceArn}/groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/resource/{ResourceArn}/groups"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -487,15 +372,8 @@ export const se_ListAssociatedGroupsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -505,20 +383,12 @@ export const se_ListGroupResourcesCommand = async ( input: ListGroupResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/group/{GroupIdentifier}/resources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "GroupIdentifier", - () => input.GroupIdentifier!, - "{GroupIdentifier}", - false - ); + b.bp("/group/{GroupIdentifier}/resources"); + b.p("GroupIdentifier", () => input.GroupIdentifier!, "{GroupIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -526,15 +396,8 @@ export const se_ListGroupResourcesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -544,11 +407,11 @@ export const se_ListGroupsCommand = async ( input: ListGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groups"; + b.bp("/groups"); let body: any; body = JSON.stringify( take(input, { @@ -556,15 +419,8 @@ export const se_ListGroupsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -574,20 +430,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -597,20 +446,13 @@ export const se_StartCanaryCommand = async ( input: StartCanaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}/start"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/canary/{Name}/start"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -620,20 +462,13 @@ export const se_StopCanaryCommand = async ( input: StopCanaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}/stop"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/canary/{Name}/stop"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -643,27 +478,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -673,27 +501,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -703,12 +523,12 @@ export const se_UpdateCanaryCommand = async ( input: UpdateCanaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/canary/{Name}"; - resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name!, "{Name}", false); + b.bp("/canary/{Name}"); + b.p("Name", () => input.Name!, "{Name}", false); let body: any; body = JSON.stringify( take(input, { @@ -725,15 +545,8 @@ export const se_UpdateCanaryCommand = async ( VpcConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2290,6 +2103,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _DL = "DeleteLambda"; +const _TK = "TagKeys"; +const _dL = "deleteLambda"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-tnb/package.json b/clients/client-tnb/package.json index fe30d30a65ca..817d3851a714 100644 --- a/clients/client-tnb/package.json +++ b/clients/client-tnb/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-tnb/src/models/models_0.ts b/clients/client-tnb/src/models/models_0.ts index 678effcf83ad..fc5c1d1d02ea 100644 --- a/clients/client-tnb/src/models/models_0.ts +++ b/clients/client-tnb/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { DocumentType as __DocumentType } from "@smithy/types"; import { TnbServiceException as __BaseException } from "./TnbServiceException"; diff --git a/clients/client-tnb/src/protocols/Aws_restJson1.ts b/clients/client-tnb/src/protocols/Aws_restJson1.ts index deb91d8596b3..91f88e0ebabf 100644 --- a/clients/client-tnb/src/protocols/Aws_restJson1.ts +++ b/clients/client-tnb/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -181,29 +182,13 @@ export const se_CancelSolNetworkOperationCommand = async ( input: CancelSolNetworkOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}/cancel"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nsLcmOpOccId", - () => input.nsLcmOpOccId!, - "{nsLcmOpOccId}", - false - ); + b.bp("/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}/cancel"); + b.p("nsLcmOpOccId", () => input.nsLcmOpOccId!, "{nsLcmOpOccId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -213,27 +198,19 @@ export const se_CreateSolFunctionPackageCommand = async ( input: CreateSolFunctionPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages"; + b.bp("/sol/vnfpkgm/v1/vnf_packages"); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -243,12 +220,11 @@ export const se_CreateSolNetworkInstanceCommand = async ( input: CreateSolNetworkInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances"; + b.bp("/sol/nslcm/v1/ns_instances"); let body: any; body = JSON.stringify( take(input, { @@ -258,15 +234,8 @@ export const se_CreateSolNetworkInstanceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -276,27 +245,19 @@ export const se_CreateSolNetworkPackageCommand = async ( input: CreateSolNetworkPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors"; + b.bp("/sol/nsd/v1/ns_descriptors"); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -306,21 +267,13 @@ export const se_DeleteSolFunctionPackageCommand = async ( input: DeleteSolFunctionPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); + b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}"); + b.p("vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -330,28 +283,13 @@ export const se_DeleteSolNetworkInstanceCommand = async ( input: DeleteSolNetworkInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances/{nsInstanceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nsInstanceId", - () => input.nsInstanceId!, - "{nsInstanceId}", - false - ); + b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}"); + b.p("nsInstanceId", () => input.nsInstanceId!, "{nsInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -361,21 +299,13 @@ export const se_DeleteSolNetworkPackageCommand = async ( input: DeleteSolNetworkPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); + b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}"); + b.p("nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -385,29 +315,13 @@ export const se_GetSolFunctionInstanceCommand = async ( input: GetSolFunctionInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/vnflcm/v1/vnf_instances/{vnfInstanceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "vnfInstanceId", - () => input.vnfInstanceId!, - "{vnfInstanceId}", - false - ); + b.bp("/sol/vnflcm/v1/vnf_instances/{vnfInstanceId}"); + b.p("vnfInstanceId", () => input.vnfInstanceId!, "{vnfInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -417,21 +331,13 @@ export const se_GetSolFunctionPackageCommand = async ( input: GetSolFunctionPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); + b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}"); + b.p("vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -441,24 +347,15 @@ export const se_GetSolFunctionPackageContentCommand = async ( input: GetSolFunctionPackageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - accept: input.accept!, + [_a]: input[_a]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content"; - resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); + b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content"); + b.p("vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -468,24 +365,15 @@ export const se_GetSolFunctionPackageDescriptorCommand = async ( input: GetSolFunctionPackageDescriptorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - accept: input.accept!, + [_a]: input[_a]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/vnfd"; - resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); + b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/vnfd"); + b.p("vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -495,28 +383,13 @@ export const se_GetSolNetworkInstanceCommand = async ( input: GetSolNetworkInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances/{nsInstanceId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nsInstanceId", - () => input.nsInstanceId!, - "{nsInstanceId}", - false - ); + b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}"); + b.p("nsInstanceId", () => input.nsInstanceId!, "{nsInstanceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -526,29 +399,13 @@ export const se_GetSolNetworkOperationCommand = async ( input: GetSolNetworkOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nsLcmOpOccId", - () => input.nsLcmOpOccId!, - "{nsLcmOpOccId}", - false - ); + b.bp("/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}"); + b.p("nsLcmOpOccId", () => input.nsLcmOpOccId!, "{nsLcmOpOccId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -558,21 +415,13 @@ export const se_GetSolNetworkPackageCommand = async ( input: GetSolNetworkPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); + b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}"); + b.p("nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -582,24 +431,15 @@ export const se_GetSolNetworkPackageContentCommand = async ( input: GetSolNetworkPackageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - accept: input.accept!, + [_a]: input[_a]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content"; - resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); + b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content"); + b.p("nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -609,22 +449,13 @@ export const se_GetSolNetworkPackageDescriptorCommand = async ( input: GetSolNetworkPackageDescriptorCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd"; - resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); + b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd"); + b.p("nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -634,23 +465,14 @@ export const se_InstantiateSolNetworkInstanceCommand = async ( input: InstantiateSolNetworkInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nslcm/v1/ns_instances/{nsInstanceId}/instantiate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nsInstanceId", - () => input.nsInstanceId!, - "{nsInstanceId}", - false - ); + b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/instantiate"); + b.p("nsInstanceId", () => input.nsInstanceId!, "{nsInstanceId}", false); const query: any = map({ - dry_run: [() => input.dryRun !== void 0, () => input.dryRun!.toString()], + [_dr]: [() => input.dryRun !== void 0, () => input[_dR]!.toString()], }); let body: any; body = JSON.stringify( @@ -659,16 +481,8 @@ export const se_InstantiateSolNetworkInstanceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -678,25 +492,16 @@ export const se_ListSolFunctionInstancesCommand = async ( input: ListSolFunctionInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnflcm/v1/vnf_instances"; + b.bp("/sol/vnflcm/v1/vnf_instances"); const query: any = map({ - max_results: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextpage_opaque_marker: [, input.nextToken!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nom]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -706,25 +511,16 @@ export const se_ListSolFunctionPackagesCommand = async ( input: ListSolFunctionPackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages"; + b.bp("/sol/vnfpkgm/v1/vnf_packages"); const query: any = map({ - max_results: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextpage_opaque_marker: [, input.nextToken!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nom]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -734,25 +530,16 @@ export const se_ListSolNetworkInstancesCommand = async ( input: ListSolNetworkInstancesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances"; + b.bp("/sol/nslcm/v1/ns_instances"); const query: any = map({ - max_results: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextpage_opaque_marker: [, input.nextToken!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nom]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -762,25 +549,16 @@ export const se_ListSolNetworkOperationsCommand = async ( input: ListSolNetworkOperationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_lcm_op_occs"; + b.bp("/sol/nslcm/v1/ns_lcm_op_occs"); const query: any = map({ - max_results: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextpage_opaque_marker: [, input.nextToken!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nom]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -790,25 +568,16 @@ export const se_ListSolNetworkPackagesCommand = async ( input: ListSolNetworkPackagesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors"; + b.bp("/sol/nsd/v1/ns_descriptors"); const query: any = map({ - max_results: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextpage_opaque_marker: [, input.nextToken!], + [_mr]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nom]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -818,20 +587,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -841,27 +603,18 @@ export const se_PutSolFunctionPackageContentCommand = async ( input: PutSolFunctionPackageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cT]! || "application/octet-stream", }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content"; - resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); + b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content"); + b.p("vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); let body: any; if (input.file !== undefined) { body = input.file; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -871,27 +624,18 @@ export const se_PutSolNetworkPackageContentCommand = async ( input: PutSolNetworkPackageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cT]! || "application/octet-stream", }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content"; - resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); + b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content"); + b.p("nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); let body: any; if (input.file !== undefined) { body = input.file; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -901,27 +645,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -931,36 +668,20 @@ export const se_TerminateSolNetworkInstanceCommand = async ( input: TerminateSolNetworkInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nslcm/v1/ns_instances/{nsInstanceId}/terminate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nsInstanceId", - () => input.nsInstanceId!, - "{nsInstanceId}", - false - ); + b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/terminate"); + b.p("nsInstanceId", () => input.nsInstanceId!, "{nsInstanceId}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -970,27 +691,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1000,28 +713,20 @@ export const se_UpdateSolFunctionPackageCommand = async ( input: UpdateSolFunctionPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); + b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}"); + b.p("vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); let body: any; body = JSON.stringify( take(input, { operationalState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1031,21 +736,12 @@ export const se_UpdateSolNetworkInstanceCommand = async ( input: UpdateSolNetworkInstanceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nslcm/v1/ns_instances/{nsInstanceId}/update"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "nsInstanceId", - () => input.nsInstanceId!, - "{nsInstanceId}", - false - ); + b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/update"); + b.p("nsInstanceId", () => input.nsInstanceId!, "{nsInstanceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1054,15 +750,8 @@ export const se_UpdateSolNetworkInstanceCommand = async ( updateType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1072,28 +761,20 @@ export const se_UpdateSolNetworkPackageCommand = async ( input: UpdateSolNetworkPackageCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); + b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}"); + b.p("nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); let body: any; body = JSON.stringify( take(input, { nsdOperationalState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1103,27 +784,18 @@ export const se_ValidateSolFunctionPackageContentCommand = async ( input: ValidateSolFunctionPackageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cT]! || "application/octet-stream", }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content/validate"; - resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); + b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content/validate"); + b.p("vnfPkgId", () => input.vnfPkgId!, "{vnfPkgId}", false); let body: any; if (input.file !== undefined) { body = input.file; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1133,27 +805,18 @@ export const se_ValidateSolNetworkPackageContentCommand = async ( input: ValidateSolNetworkPackageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cT]! || "application/octet-stream", }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content/validate"; - resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); + b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content/validate"); + b.p("nsdInfoId", () => input.nsdInfoId!, "{nsdInfoId}", false); let body: any; if (input.file !== undefined) { body = input.file; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1721,7 +1384,7 @@ export const de_GetSolFunctionPackageContentCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.packageContent = data; @@ -1778,7 +1441,7 @@ export const de_GetSolFunctionPackageDescriptorCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.vnfd = data; @@ -2039,7 +1702,7 @@ export const de_GetSolNetworkPackageContentCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.nsdContent = data; @@ -2096,7 +1759,7 @@ export const de_GetSolNetworkPackageDescriptorCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.nsd = data; @@ -3633,6 +3296,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _a = "accept"; +const _cT = "contentType"; +const _ct = "content-type"; +const _dR = "dryRun"; +const _dr = "dry_run"; +const _mR = "maxResults"; +const _mr = "max_results"; +const _nT = "nextToken"; +const _nom = "nextpage_opaque_marker"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-transcribe-streaming/package.json b/clients/client-transcribe-streaming/package.json index f862c793eca5..289044d6154b 100644 --- a/clients/client-transcribe-streaming/package.json +++ b/clients/client-transcribe-streaming/package.json @@ -39,6 +39,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/eventstream-serde-browser": "^2.0.15", "@smithy/eventstream-serde-config-resolver": "^2.0.15", "@smithy/eventstream-serde-node": "^2.0.15", diff --git a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts index 69efdc64319d..3c4ad5451501 100644 --- a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -76,43 +77,29 @@ export const se_StartCallAnalyticsStreamTranscriptionCommand = async ( input: StartCallAnalyticsStreamTranscriptionCommandInput, context: __SerdeContext & __EventStreamSerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-transcribe-language-code": input.LanguageCode!, - "x-amzn-transcribe-sample-rate": [ - () => isSerializableHeaderValue(input.MediaSampleRateHertz), - () => input.MediaSampleRateHertz!.toString(), - ], - "x-amzn-transcribe-media-encoding": input.MediaEncoding!, - "x-amzn-transcribe-vocabulary-name": input.VocabularyName!, - "x-amzn-transcribe-session-id": input.SessionId!, - "x-amzn-transcribe-vocabulary-filter-name": input.VocabularyFilterName!, - "x-amzn-transcribe-vocabulary-filter-method": input.VocabularyFilterMethod!, - "x-amzn-transcribe-language-model-name": input.LanguageModelName!, - "x-amzn-transcribe-enable-partial-results-stabilization": [ - () => isSerializableHeaderValue(input.EnablePartialResultsStabilization), - () => input.EnablePartialResultsStabilization!.toString(), - ], - "x-amzn-transcribe-partial-results-stability": input.PartialResultsStability!, - "x-amzn-transcribe-content-identification-type": input.ContentIdentificationType!, - "x-amzn-transcribe-content-redaction-type": input.ContentRedactionType!, - "x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes!, + [_xatlc]: input[_LC]!, + [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], + [_xatme]: input[_ME]!, + [_xatvn]: input[_VN]!, + [_xatsi]: input[_SI]!, + [_xatvfn]: input[_VFN]!, + [_xatvfm]: input[_VFM]!, + [_xatlmn]: input[_LMN]!, + [_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS]!.toString()], + [_xatprs]: input[_PRS]!, + [_xatcit]: input[_CIT]!, + [_xatcrt]: input[_CRT]!, + [_xatpet]: input[_PET]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/call-analytics-stream-transcription"; + b.bp("/call-analytics-stream-transcription"); let body: any; if (input.AudioStream !== undefined) { body = se_AudioStream(input.AudioStream, context); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -122,47 +109,27 @@ export const se_StartMedicalStreamTranscriptionCommand = async ( input: StartMedicalStreamTranscriptionCommandInput, context: __SerdeContext & __EventStreamSerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-transcribe-language-code": input.LanguageCode!, - "x-amzn-transcribe-sample-rate": [ - () => isSerializableHeaderValue(input.MediaSampleRateHertz), - () => input.MediaSampleRateHertz!.toString(), - ], - "x-amzn-transcribe-media-encoding": input.MediaEncoding!, - "x-amzn-transcribe-vocabulary-name": input.VocabularyName!, - "x-amzn-transcribe-specialty": input.Specialty!, - "x-amzn-transcribe-type": input.Type!, - "x-amzn-transcribe-show-speaker-label": [ - () => isSerializableHeaderValue(input.ShowSpeakerLabel), - () => input.ShowSpeakerLabel!.toString(), - ], - "x-amzn-transcribe-session-id": input.SessionId!, - "x-amzn-transcribe-enable-channel-identification": [ - () => isSerializableHeaderValue(input.EnableChannelIdentification), - () => input.EnableChannelIdentification!.toString(), - ], - "x-amzn-transcribe-number-of-channels": [ - () => isSerializableHeaderValue(input.NumberOfChannels), - () => input.NumberOfChannels!.toString(), - ], - "x-amzn-transcribe-content-identification-type": input.ContentIdentificationType!, + [_xatlc]: input[_LC]!, + [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], + [_xatme]: input[_ME]!, + [_xatvn]: input[_VN]!, + [_xats]: input[_S]!, + [_xatt]: input[_T]!, + [_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL]!.toString()], + [_xatsi]: input[_SI]!, + [_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI]!.toString()], + [_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC]!.toString()], + [_xatcit]: input[_CIT]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/medical-stream-transcription"; + b.bp("/medical-stream-transcription"); let body: any; if (input.AudioStream !== undefined) { body = se_AudioStream(input.AudioStream, context); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -172,66 +139,38 @@ export const se_StartStreamTranscriptionCommand = async ( input: StartStreamTranscriptionCommandInput, context: __SerdeContext & __EventStreamSerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amzn-transcribe-language-code": input.LanguageCode!, - "x-amzn-transcribe-sample-rate": [ - () => isSerializableHeaderValue(input.MediaSampleRateHertz), - () => input.MediaSampleRateHertz!.toString(), - ], - "x-amzn-transcribe-media-encoding": input.MediaEncoding!, - "x-amzn-transcribe-vocabulary-name": input.VocabularyName!, - "x-amzn-transcribe-session-id": input.SessionId!, - "x-amzn-transcribe-vocabulary-filter-name": input.VocabularyFilterName!, - "x-amzn-transcribe-vocabulary-filter-method": input.VocabularyFilterMethod!, - "x-amzn-transcribe-show-speaker-label": [ - () => isSerializableHeaderValue(input.ShowSpeakerLabel), - () => input.ShowSpeakerLabel!.toString(), - ], - "x-amzn-transcribe-enable-channel-identification": [ - () => isSerializableHeaderValue(input.EnableChannelIdentification), - () => input.EnableChannelIdentification!.toString(), - ], - "x-amzn-transcribe-number-of-channels": [ - () => isSerializableHeaderValue(input.NumberOfChannels), - () => input.NumberOfChannels!.toString(), - ], - "x-amzn-transcribe-enable-partial-results-stabilization": [ - () => isSerializableHeaderValue(input.EnablePartialResultsStabilization), - () => input.EnablePartialResultsStabilization!.toString(), - ], - "x-amzn-transcribe-partial-results-stability": input.PartialResultsStability!, - "x-amzn-transcribe-content-identification-type": input.ContentIdentificationType!, - "x-amzn-transcribe-content-redaction-type": input.ContentRedactionType!, - "x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes!, - "x-amzn-transcribe-language-model-name": input.LanguageModelName!, - "x-amzn-transcribe-identify-language": [ - () => isSerializableHeaderValue(input.IdentifyLanguage), - () => input.IdentifyLanguage!.toString(), - ], - "x-amzn-transcribe-language-options": input.LanguageOptions!, - "x-amzn-transcribe-preferred-language": input.PreferredLanguage!, - "x-amzn-transcribe-identify-multiple-languages": [ - () => isSerializableHeaderValue(input.IdentifyMultipleLanguages), - () => input.IdentifyMultipleLanguages!.toString(), - ], - "x-amzn-transcribe-vocabulary-names": input.VocabularyNames!, - "x-amzn-transcribe-vocabulary-filter-names": input.VocabularyFilterNames!, + [_xatlc]: input[_LC]!, + [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], + [_xatme]: input[_ME]!, + [_xatvn]: input[_VN]!, + [_xatsi]: input[_SI]!, + [_xatvfn]: input[_VFN]!, + [_xatvfm]: input[_VFM]!, + [_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL]!.toString()], + [_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI]!.toString()], + [_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC]!.toString()], + [_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS]!.toString()], + [_xatprs]: input[_PRS]!, + [_xatcit]: input[_CIT]!, + [_xatcrt]: input[_CRT]!, + [_xatpet]: input[_PET]!, + [_xatlmn]: input[_LMN]!, + [_xatil]: [() => isSerializableHeaderValue(input[_IL]), () => input[_IL]!.toString()], + [_xatlo]: input[_LO]!, + [_xatpl]: input[_PL]!, + [_xatiml]: [() => isSerializableHeaderValue(input[_IML]), () => input[_IML]!.toString()], + [_xatvn_]: input[_VNo]!, + [_xatvfn_]: input[_VFNo]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription"; + b.bp("/stream-transcription"); let body: any; if (input.AudioStream !== undefined) { body = se_AudioStream(input.AudioStream, context); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -246,26 +185,20 @@ export const de_StartCallAnalyticsStreamTranscriptionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestId: [, output.headers["x-amzn-request-id"]], - LanguageCode: [, output.headers["x-amzn-transcribe-language-code"]], - MediaSampleRateHertz: [ - () => void 0 !== output.headers["x-amzn-transcribe-sample-rate"], - () => __strictParseInt32(output.headers["x-amzn-transcribe-sample-rate"]), - ], - MediaEncoding: [, output.headers["x-amzn-transcribe-media-encoding"]], - VocabularyName: [, output.headers["x-amzn-transcribe-vocabulary-name"]], - SessionId: [, output.headers["x-amzn-transcribe-session-id"]], - VocabularyFilterName: [, output.headers["x-amzn-transcribe-vocabulary-filter-name"]], - VocabularyFilterMethod: [, output.headers["x-amzn-transcribe-vocabulary-filter-method"]], - LanguageModelName: [, output.headers["x-amzn-transcribe-language-model-name"]], - EnablePartialResultsStabilization: [ - () => void 0 !== output.headers["x-amzn-transcribe-enable-partial-results-stabilization"], - () => __parseBoolean(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]), - ], - PartialResultsStability: [, output.headers["x-amzn-transcribe-partial-results-stability"]], - ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]], - ContentRedactionType: [, output.headers["x-amzn-transcribe-content-redaction-type"]], - PiiEntityTypes: [, output.headers["x-amzn-transcribe-pii-entity-types"]], + [_RI]: [, output.headers[_xari]], + [_LC]: [, output.headers[_xatlc]], + [_MSRH]: [() => void 0 !== output.headers[_xatsr], () => __strictParseInt32(output.headers[_xatsr])], + [_ME]: [, output.headers[_xatme]], + [_VN]: [, output.headers[_xatvn]], + [_SI]: [, output.headers[_xatsi]], + [_VFN]: [, output.headers[_xatvfn]], + [_VFM]: [, output.headers[_xatvfm]], + [_LMN]: [, output.headers[_xatlmn]], + [_EPRS]: [() => void 0 !== output.headers[_xateprs], () => __parseBoolean(output.headers[_xateprs])], + [_PRS]: [, output.headers[_xatprs]], + [_CIT]: [, output.headers[_xatcit]], + [_CRT]: [, output.headers[_xatcrt]], + [_PET]: [, output.headers[_xatpet]], }); const data: any = output.body; contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context); @@ -322,30 +255,18 @@ export const de_StartMedicalStreamTranscriptionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestId: [, output.headers["x-amzn-request-id"]], - LanguageCode: [, output.headers["x-amzn-transcribe-language-code"]], - MediaSampleRateHertz: [ - () => void 0 !== output.headers["x-amzn-transcribe-sample-rate"], - () => __strictParseInt32(output.headers["x-amzn-transcribe-sample-rate"]), - ], - MediaEncoding: [, output.headers["x-amzn-transcribe-media-encoding"]], - VocabularyName: [, output.headers["x-amzn-transcribe-vocabulary-name"]], - Specialty: [, output.headers["x-amzn-transcribe-specialty"]], - Type: [, output.headers["x-amzn-transcribe-type"]], - ShowSpeakerLabel: [ - () => void 0 !== output.headers["x-amzn-transcribe-show-speaker-label"], - () => __parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]), - ], - SessionId: [, output.headers["x-amzn-transcribe-session-id"]], - EnableChannelIdentification: [ - () => void 0 !== output.headers["x-amzn-transcribe-enable-channel-identification"], - () => __parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]), - ], - NumberOfChannels: [ - () => void 0 !== output.headers["x-amzn-transcribe-number-of-channels"], - () => __strictParseInt32(output.headers["x-amzn-transcribe-number-of-channels"]), - ], - ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]], + [_RI]: [, output.headers[_xari]], + [_LC]: [, output.headers[_xatlc]], + [_MSRH]: [() => void 0 !== output.headers[_xatsr], () => __strictParseInt32(output.headers[_xatsr])], + [_ME]: [, output.headers[_xatme]], + [_VN]: [, output.headers[_xatvn]], + [_S]: [, output.headers[_xats]], + [_T]: [, output.headers[_xatt]], + [_SSL]: [() => void 0 !== output.headers[_xatssl], () => __parseBoolean(output.headers[_xatssl])], + [_SI]: [, output.headers[_xatsi]], + [_ECI]: [() => void 0 !== output.headers[_xateci], () => __parseBoolean(output.headers[_xateci])], + [_NOC]: [() => void 0 !== output.headers[_xatnoc], () => __strictParseInt32(output.headers[_xatnoc])], + [_CIT]: [, output.headers[_xatcit]], }); const data: any = output.body; contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context); @@ -402,50 +323,29 @@ export const de_StartStreamTranscriptionCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - RequestId: [, output.headers["x-amzn-request-id"]], - LanguageCode: [, output.headers["x-amzn-transcribe-language-code"]], - MediaSampleRateHertz: [ - () => void 0 !== output.headers["x-amzn-transcribe-sample-rate"], - () => __strictParseInt32(output.headers["x-amzn-transcribe-sample-rate"]), - ], - MediaEncoding: [, output.headers["x-amzn-transcribe-media-encoding"]], - VocabularyName: [, output.headers["x-amzn-transcribe-vocabulary-name"]], - SessionId: [, output.headers["x-amzn-transcribe-session-id"]], - VocabularyFilterName: [, output.headers["x-amzn-transcribe-vocabulary-filter-name"]], - VocabularyFilterMethod: [, output.headers["x-amzn-transcribe-vocabulary-filter-method"]], - ShowSpeakerLabel: [ - () => void 0 !== output.headers["x-amzn-transcribe-show-speaker-label"], - () => __parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]), - ], - EnableChannelIdentification: [ - () => void 0 !== output.headers["x-amzn-transcribe-enable-channel-identification"], - () => __parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]), - ], - NumberOfChannels: [ - () => void 0 !== output.headers["x-amzn-transcribe-number-of-channels"], - () => __strictParseInt32(output.headers["x-amzn-transcribe-number-of-channels"]), - ], - EnablePartialResultsStabilization: [ - () => void 0 !== output.headers["x-amzn-transcribe-enable-partial-results-stabilization"], - () => __parseBoolean(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]), - ], - PartialResultsStability: [, output.headers["x-amzn-transcribe-partial-results-stability"]], - ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]], - ContentRedactionType: [, output.headers["x-amzn-transcribe-content-redaction-type"]], - PiiEntityTypes: [, output.headers["x-amzn-transcribe-pii-entity-types"]], - LanguageModelName: [, output.headers["x-amzn-transcribe-language-model-name"]], - IdentifyLanguage: [ - () => void 0 !== output.headers["x-amzn-transcribe-identify-language"], - () => __parseBoolean(output.headers["x-amzn-transcribe-identify-language"]), - ], - LanguageOptions: [, output.headers["x-amzn-transcribe-language-options"]], - PreferredLanguage: [, output.headers["x-amzn-transcribe-preferred-language"]], - IdentifyMultipleLanguages: [ - () => void 0 !== output.headers["x-amzn-transcribe-identify-multiple-languages"], - () => __parseBoolean(output.headers["x-amzn-transcribe-identify-multiple-languages"]), - ], - VocabularyNames: [, output.headers["x-amzn-transcribe-vocabulary-names"]], - VocabularyFilterNames: [, output.headers["x-amzn-transcribe-vocabulary-filter-names"]], + [_RI]: [, output.headers[_xari]], + [_LC]: [, output.headers[_xatlc]], + [_MSRH]: [() => void 0 !== output.headers[_xatsr], () => __strictParseInt32(output.headers[_xatsr])], + [_ME]: [, output.headers[_xatme]], + [_VN]: [, output.headers[_xatvn]], + [_SI]: [, output.headers[_xatsi]], + [_VFN]: [, output.headers[_xatvfn]], + [_VFM]: [, output.headers[_xatvfm]], + [_SSL]: [() => void 0 !== output.headers[_xatssl], () => __parseBoolean(output.headers[_xatssl])], + [_ECI]: [() => void 0 !== output.headers[_xateci], () => __parseBoolean(output.headers[_xateci])], + [_NOC]: [() => void 0 !== output.headers[_xatnoc], () => __strictParseInt32(output.headers[_xatnoc])], + [_EPRS]: [() => void 0 !== output.headers[_xateprs], () => __parseBoolean(output.headers[_xateprs])], + [_PRS]: [, output.headers[_xatprs]], + [_CIT]: [, output.headers[_xatcit]], + [_CRT]: [, output.headers[_xatcrt]], + [_PET]: [, output.headers[_xatpet]], + [_LMN]: [, output.headers[_xatlmn]], + [_IL]: [() => void 0 !== output.headers[_xatil], () => __parseBoolean(output.headers[_xatil])], + [_LO]: [, output.headers[_xatlo]], + [_PL]: [, output.headers[_xatpl]], + [_IML]: [() => void 0 !== output.headers[_xatiml], () => __parseBoolean(output.headers[_xatiml])], + [_VNo]: [, output.headers[_xatvn_]], + [_VFNo]: [, output.headers[_xatvfn_]], }); const data: any = output.body; contents.TranscriptResultStream = de_TranscriptResultStream(data, context); @@ -1207,6 +1107,57 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _CIT = "ContentIdentificationType"; +const _CRT = "ContentRedactionType"; +const _ECI = "EnableChannelIdentification"; +const _EPRS = "EnablePartialResultsStabilization"; +const _IL = "IdentifyLanguage"; +const _IML = "IdentifyMultipleLanguages"; +const _LC = "LanguageCode"; +const _LMN = "LanguageModelName"; +const _LO = "LanguageOptions"; +const _ME = "MediaEncoding"; +const _MSRH = "MediaSampleRateHertz"; +const _NOC = "NumberOfChannels"; +const _PET = "PiiEntityTypes"; +const _PL = "PreferredLanguage"; +const _PRS = "PartialResultsStability"; +const _RI = "RequestId"; +const _S = "Specialty"; +const _SI = "SessionId"; +const _SSL = "ShowSpeakerLabel"; +const _T = "Type"; +const _VFM = "VocabularyFilterMethod"; +const _VFN = "VocabularyFilterName"; +const _VFNo = "VocabularyFilterNames"; +const _VN = "VocabularyName"; +const _VNo = "VocabularyNames"; +const _xari = "x-amzn-request-id"; +const _xatcit = "x-amzn-transcribe-content-identification-type"; +const _xatcrt = "x-amzn-transcribe-content-redaction-type"; +const _xateci = "x-amzn-transcribe-enable-channel-identification"; +const _xateprs = "x-amzn-transcribe-enable-partial-results-stabilization"; +const _xatil = "x-amzn-transcribe-identify-language"; +const _xatiml = "x-amzn-transcribe-identify-multiple-languages"; +const _xatlc = "x-amzn-transcribe-language-code"; +const _xatlmn = "x-amzn-transcribe-language-model-name"; +const _xatlo = "x-amzn-transcribe-language-options"; +const _xatme = "x-amzn-transcribe-media-encoding"; +const _xatnoc = "x-amzn-transcribe-number-of-channels"; +const _xatpet = "x-amzn-transcribe-pii-entity-types"; +const _xatpl = "x-amzn-transcribe-preferred-language"; +const _xatprs = "x-amzn-transcribe-partial-results-stability"; +const _xats = "x-amzn-transcribe-specialty"; +const _xatsi = "x-amzn-transcribe-session-id"; +const _xatsr = "x-amzn-transcribe-sample-rate"; +const _xatssl = "x-amzn-transcribe-show-speaker-label"; +const _xatt = "x-amzn-transcribe-type"; +const _xatvfm = "x-amzn-transcribe-vocabulary-filter-method"; +const _xatvfn = "x-amzn-transcribe-vocabulary-filter-name"; +const _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names"; +const _xatvn = "x-amzn-transcribe-vocabulary-name"; +const _xatvn_ = "x-amzn-transcribe-vocabulary-names"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-trustedadvisor/package.json b/clients/client-trustedadvisor/package.json index 47b9d5a23b86..2c1bd85d49f4 100644 --- a/clients/client-trustedadvisor/package.json +++ b/clients/client-trustedadvisor/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-trustedadvisor/src/protocols/Aws_restJson1.ts b/clients/client-trustedadvisor/src/protocols/Aws_restJson1.ts index fa533fd1d4cb..56c6f9101f5a 100644 --- a/clients/client-trustedadvisor/src/protocols/Aws_restJson1.ts +++ b/clients/client-trustedadvisor/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -81,29 +82,18 @@ export const se_GetOrganizationRecommendationCommand = async ( input: GetOrganizationRecommendationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/organization-recommendations/{organizationRecommendationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}"); + b.p( "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier!, "{organizationRecommendationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -113,29 +103,13 @@ export const se_GetRecommendationCommand = async ( input: GetRecommendationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/recommendations/{recommendationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "recommendationIdentifier", - () => input.recommendationIdentifier!, - "{recommendationIdentifier}", - false - ); + b.bp("/v1/recommendations/{recommendationIdentifier}"); + b.p("recommendationIdentifier", () => input.recommendationIdentifier!, "{recommendationIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -145,28 +119,20 @@ export const se_ListChecksCommand = async ( input: ListChecksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/checks"; + b.bp("/v1/checks"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - pillar: [, input.pillar!], - awsService: [, input.awsService!], - source: [, input.source!], - language: [, input.language!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_p]: [, input[_p]!], + [_aS]: [, input[_aS]!], + [_s]: [, input[_s]!], + [_l]: [, input[_l]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -176,35 +142,23 @@ export const se_ListOrganizationRecommendationAccountsCommand = async ( input: ListOrganizationRecommendationAccountsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts"); + b.p( "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier!, "{organizationRecommendationIdentifier}", false ); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - affectedAccountId: [, input.affectedAccountId!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_aAI]: [, input[_aAI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -214,37 +168,25 @@ export const se_ListOrganizationRecommendationResourcesCommand = async ( input: ListOrganizationRecommendationResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources"); + b.p( "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier!, "{organizationRecommendationIdentifier}", false ); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - status: [, input.status!], - regionCode: [, input.regionCode!], - affectedAccountId: [, input.affectedAccountId!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_st]: [, input[_st]!], + [_rC]: [, input[_rC]!], + [_aAI]: [, input[_aAI]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -254,39 +196,30 @@ export const se_ListOrganizationRecommendationsCommand = async ( input: ListOrganizationRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/organization-recommendations"; + b.bp("/v1/organization-recommendations"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - type: [, input.type!], - status: [, input.status!], - pillar: [, input.pillar!], - awsService: [, input.awsService!], - source: [, input.source!], - checkIdentifier: [, input.checkIdentifier!], - afterLastUpdatedAt: [ + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_t]: [, input[_t]!], + [_st]: [, input[_st]!], + [_p]: [, input[_p]!], + [_aS]: [, input[_aS]!], + [_s]: [, input[_s]!], + [_cI]: [, input[_cI]!], + [_aLUA]: [ () => input.afterLastUpdatedAt !== void 0, - () => (input.afterLastUpdatedAt!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_aLUA]!.toISOString().split(".")[0] + "Z").toString(), ], - beforeLastUpdatedAt: [ + [_bLUA]: [ () => input.beforeLastUpdatedAt !== void 0, - () => (input.beforeLastUpdatedAt!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_bLUA]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -296,36 +229,19 @@ export const se_ListRecommendationResourcesCommand = async ( input: ListRecommendationResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/recommendations/{recommendationIdentifier}/resources"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "recommendationIdentifier", - () => input.recommendationIdentifier!, - "{recommendationIdentifier}", - false - ); + b.bp("/v1/recommendations/{recommendationIdentifier}/resources"); + b.p("recommendationIdentifier", () => input.recommendationIdentifier!, "{recommendationIdentifier}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - status: [, input.status!], - regionCode: [, input.regionCode!], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_st]: [, input[_st]!], + [_rC]: [, input[_rC]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -335,38 +251,30 @@ export const se_ListRecommendationsCommand = async ( input: ListRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/recommendations"; + b.bp("/v1/recommendations"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - type: [, input.type!], - status: [, input.status!], - pillar: [, input.pillar!], - awsService: [, input.awsService!], - source: [, input.source!], - checkIdentifier: [, input.checkIdentifier!], - afterLastUpdatedAt: [ + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_t]: [, input[_t]!], + [_st]: [, input[_st]!], + [_p]: [, input[_p]!], + [_aS]: [, input[_aS]!], + [_s]: [, input[_s]!], + [_cI]: [, input[_cI]!], + [_aLUA]: [ () => input.afterLastUpdatedAt !== void 0, - () => (input.afterLastUpdatedAt!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_aLUA]!.toISOString().split(".")[0] + "Z").toString(), ], - beforeLastUpdatedAt: [ + [_bLUA]: [ () => input.beforeLastUpdatedAt !== void 0, - () => (input.beforeLastUpdatedAt!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_bLUA]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -376,16 +284,12 @@ export const se_UpdateOrganizationRecommendationLifecycleCommand = async ( input: UpdateOrganizationRecommendationLifecycleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle"); + b.p( "organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier!, "{organizationRecommendationIdentifier}", @@ -399,15 +303,8 @@ export const se_UpdateOrganizationRecommendationLifecycleCommand = async ( updateReasonCode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -417,21 +314,12 @@ export const se_UpdateRecommendationLifecycleCommand = async ( input: UpdateRecommendationLifecycleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/v1/recommendations/{recommendationIdentifier}/lifecycle"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "recommendationIdentifier", - () => input.recommendationIdentifier!, - "{recommendationIdentifier}", - false - ); + b.bp("/v1/recommendations/{recommendationIdentifier}/lifecycle"); + b.p("recommendationIdentifier", () => input.recommendationIdentifier!, "{recommendationIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -440,15 +328,8 @@ export const se_UpdateRecommendationLifecycleCommand = async ( updateReasonCode: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1436,6 +1317,20 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _aAI = "affectedAccountId"; +const _aLUA = "afterLastUpdatedAt"; +const _aS = "awsService"; +const _bLUA = "beforeLastUpdatedAt"; +const _cI = "checkIdentifier"; +const _l = "language"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _p = "pillar"; +const _rC = "regionCode"; +const _s = "source"; +const _st = "status"; +const _t = "type"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-vpc-lattice/package.json b/clients/client-vpc-lattice/package.json index 172002261b6e..ef3ae8c1445a 100644 --- a/clients/client-vpc-lattice/package.json +++ b/clients/client-vpc-lattice/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts b/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts index 3e98c6f283c7..9dac6e199cfc 100644 --- a/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts +++ b/clients/client-vpc-lattice/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -179,44 +180,21 @@ export const se_BatchUpdateRuleCommand = async ( input: BatchUpdateRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); let body: any; body = JSON.stringify( take(input, { rules: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -226,12 +204,11 @@ export const se_CreateAccessLogSubscriptionCommand = async ( input: CreateAccessLogSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accesslogsubscriptions"; + b.bp("/accesslogsubscriptions"); let body: any; body = JSON.stringify( take(input, { @@ -241,15 +218,8 @@ export const se_CreateAccessLogSubscriptionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -259,20 +229,12 @@ export const se_CreateListenerCommand = async ( input: CreateListenerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services/{serviceIdentifier}/listeners"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -284,15 +246,8 @@ export const se_CreateListenerCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -302,29 +257,13 @@ export const se_CreateRuleCommand = async ( input: CreateRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -336,15 +275,8 @@ export const se_CreateRuleCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -354,11 +286,11 @@ export const se_CreateServiceCommand = async ( input: CreateServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services"; + b.bp("/services"); let body: any; body = JSON.stringify( take(input, { @@ -370,15 +302,8 @@ export const se_CreateServiceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -388,11 +313,11 @@ export const se_CreateServiceNetworkCommand = async ( input: CreateServiceNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/servicenetworks"; + b.bp("/servicenetworks"); let body: any; body = JSON.stringify( take(input, { @@ -402,15 +327,8 @@ export const se_CreateServiceNetworkCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -420,12 +338,11 @@ export const se_CreateServiceNetworkServiceAssociationCommand = async ( input: CreateServiceNetworkServiceAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/servicenetworkserviceassociations"; + b.bp("/servicenetworkserviceassociations"); let body: any; body = JSON.stringify( take(input, { @@ -435,15 +352,8 @@ export const se_CreateServiceNetworkServiceAssociationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -453,12 +363,11 @@ export const se_CreateServiceNetworkVpcAssociationCommand = async ( input: CreateServiceNetworkVpcAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/servicenetworkvpcassociations"; + b.bp("/servicenetworkvpcassociations"); let body: any; body = JSON.stringify( take(input, { @@ -469,15 +378,8 @@ export const se_CreateServiceNetworkVpcAssociationCommand = async ( vpcIdentifier: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -487,11 +389,11 @@ export const se_CreateTargetGroupCommand = async ( input: CreateTargetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetgroups"; + b.bp("/targetgroups"); let body: any; body = JSON.stringify( take(input, { @@ -502,15 +404,8 @@ export const se_CreateTargetGroupCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -520,29 +415,18 @@ export const se_DeleteAccessLogSubscriptionCommand = async ( input: DeleteAccessLogSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accesslogsubscriptions/{accessLogSubscriptionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}"); + b.p( "accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier!, "{accessLogSubscriptionIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -552,28 +436,13 @@ export const se_DeleteAuthPolicyCommand = async ( input: DeleteAuthPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authpolicy/{resourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceIdentifier", - () => input.resourceIdentifier!, - "{resourceIdentifier}", - false - ); + b.bp("/authpolicy/{resourceIdentifier}"); + b.p("resourceIdentifier", () => input.resourceIdentifier!, "{resourceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -583,37 +452,14 @@ export const se_DeleteListenerCommand = async ( input: DeleteListenerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -623,21 +469,13 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/resourcepolicy/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -647,45 +485,15 @@ export const se_DeleteRuleCommand = async ( input: DeleteRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ruleIdentifier", - () => input.ruleIdentifier!, - "{ruleIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); + b.p("ruleIdentifier", () => input.ruleIdentifier!, "{ruleIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -695,28 +503,13 @@ export const se_DeleteServiceCommand = async ( input: DeleteServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services/{serviceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -726,29 +519,13 @@ export const se_DeleteServiceNetworkCommand = async ( input: DeleteServiceNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworks/{serviceNetworkIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceNetworkIdentifier", - () => input.serviceNetworkIdentifier!, - "{serviceNetworkIdentifier}", - false - ); + b.bp("/servicenetworks/{serviceNetworkIdentifier}"); + b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier!, "{serviceNetworkIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -758,29 +535,18 @@ export const se_DeleteServiceNetworkServiceAssociationCommand = async ( input: DeleteServiceNetworkServiceAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}"); + b.p( "serviceNetworkServiceAssociationIdentifier", () => input.serviceNetworkServiceAssociationIdentifier!, "{serviceNetworkServiceAssociationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -790,29 +556,18 @@ export const se_DeleteServiceNetworkVpcAssociationCommand = async ( input: DeleteServiceNetworkVpcAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"); + b.p( "serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier!, "{serviceNetworkVpcAssociationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -822,28 +577,13 @@ export const se_DeleteTargetGroupCommand = async ( input: DeleteTargetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetgroups/{targetGroupIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetGroupIdentifier", - () => input.targetGroupIdentifier!, - "{targetGroupIdentifier}", - false - ); + b.bp("/targetgroups/{targetGroupIdentifier}"); + b.p("targetGroupIdentifier", () => input.targetGroupIdentifier!, "{targetGroupIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -853,36 +593,20 @@ export const se_DeregisterTargetsCommand = async ( input: DeregisterTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/targetgroups/{targetGroupIdentifier}/deregistertargets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetGroupIdentifier", - () => input.targetGroupIdentifier!, - "{targetGroupIdentifier}", - false - ); + b.bp("/targetgroups/{targetGroupIdentifier}/deregistertargets"); + b.p("targetGroupIdentifier", () => input.targetGroupIdentifier!, "{targetGroupIdentifier}", false); let body: any; body = JSON.stringify( take(input, { targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -892,29 +616,18 @@ export const se_GetAccessLogSubscriptionCommand = async ( input: GetAccessLogSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accesslogsubscriptions/{accessLogSubscriptionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}"); + b.p( "accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier!, "{accessLogSubscriptionIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -924,28 +637,13 @@ export const se_GetAuthPolicyCommand = async ( input: GetAuthPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authpolicy/{resourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceIdentifier", - () => input.resourceIdentifier!, - "{resourceIdentifier}", - false - ); + b.bp("/authpolicy/{resourceIdentifier}"); + b.p("resourceIdentifier", () => input.resourceIdentifier!, "{resourceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -955,37 +653,14 @@ export const se_GetListenerCommand = async ( input: GetListenerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -995,21 +670,13 @@ export const se_GetResourcePolicyCommand = async ( input: GetResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/resourcepolicy/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1019,45 +686,15 @@ export const se_GetRuleCommand = async ( input: GetRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ruleIdentifier", - () => input.ruleIdentifier!, - "{ruleIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); + b.p("ruleIdentifier", () => input.ruleIdentifier!, "{ruleIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1067,28 +704,13 @@ export const se_GetServiceCommand = async ( input: GetServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services/{serviceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1098,29 +720,13 @@ export const se_GetServiceNetworkCommand = async ( input: GetServiceNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworks/{serviceNetworkIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceNetworkIdentifier", - () => input.serviceNetworkIdentifier!, - "{serviceNetworkIdentifier}", - false - ); + b.bp("/servicenetworks/{serviceNetworkIdentifier}"); + b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier!, "{serviceNetworkIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1130,29 +736,18 @@ export const se_GetServiceNetworkServiceAssociationCommand = async ( input: GetServiceNetworkServiceAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/servicenetworkserviceassociations/{serviceNetworkServiceAssociationIdentifier}"); + b.p( "serviceNetworkServiceAssociationIdentifier", () => input.serviceNetworkServiceAssociationIdentifier!, "{serviceNetworkServiceAssociationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1162,29 +757,18 @@ export const se_GetServiceNetworkVpcAssociationCommand = async ( input: GetServiceNetworkVpcAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"); + b.p( "serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier!, "{serviceNetworkVpcAssociationIdentifier}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1194,28 +778,13 @@ export const se_GetTargetGroupCommand = async ( input: GetTargetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetgroups/{targetGroupIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetGroupIdentifier", - () => input.targetGroupIdentifier!, - "{targetGroupIdentifier}", - false - ); + b.bp("/targetgroups/{targetGroupIdentifier}"); + b.p("targetGroupIdentifier", () => input.targetGroupIdentifier!, "{targetGroupIdentifier}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1225,26 +794,17 @@ export const se_ListAccessLogSubscriptionsCommand = async ( input: ListAccessLogSubscriptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accesslogsubscriptions"; + b.bp("/accesslogsubscriptions"); const query: any = map({ - resourceIdentifier: [, __expectNonNull(input.resourceIdentifier!, `resourceIdentifier`)], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_rI]: [, __expectNonNull(input[_rI]!, `resourceIdentifier`)], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1254,33 +814,17 @@ export const se_ListListenersCommand = async ( input: ListListenersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services/{serviceIdentifier}/listeners"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1290,42 +834,18 @@ export const se_ListRulesCommand = async ( input: ListRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1335,24 +855,16 @@ export const se_ListServiceNetworksCommand = async ( input: ListServiceNetworksCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/servicenetworks"; + b.bp("/servicenetworks"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1362,27 +874,18 @@ export const se_ListServiceNetworkServiceAssociationsCommand = async ( input: ListServiceNetworkServiceAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/servicenetworkserviceassociations"; + b.bp("/servicenetworkserviceassociations"); const query: any = map({ - serviceNetworkIdentifier: [, input.serviceNetworkIdentifier!], - serviceIdentifier: [, input.serviceIdentifier!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sNI]: [, input[_sNI]!], + [_sI]: [, input[_sI]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1392,27 +895,18 @@ export const se_ListServiceNetworkVpcAssociationsCommand = async ( input: ListServiceNetworkVpcAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/servicenetworkvpcassociations"; + b.bp("/servicenetworkvpcassociations"); const query: any = map({ - serviceNetworkIdentifier: [, input.serviceNetworkIdentifier!], - vpcIdentifier: [, input.vpcIdentifier!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_sNI]: [, input[_sNI]!], + [_vI]: [, input[_vI]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1422,24 +916,16 @@ export const se_ListServicesCommand = async ( input: ListServicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services"; + b.bp("/services"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1449,20 +935,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1472,26 +951,18 @@ export const se_ListTargetGroupsCommand = async ( input: ListTargetGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetgroups"; + b.bp("/targetgroups"); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], - vpcIdentifier: [, input.vpcIdentifier!], - targetGroupType: [, input.targetGroupType!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], + [_vI]: [, input[_vI]!], + [_tGT]: [, input[_tGT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1501,24 +972,15 @@ export const se_ListTargetsCommand = async ( input: ListTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/targetgroups/{targetGroupIdentifier}/listtargets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetGroupIdentifier", - () => input.targetGroupIdentifier!, - "{targetGroupIdentifier}", - false - ); + b.bp("/targetgroups/{targetGroupIdentifier}/listtargets"); + b.p("targetGroupIdentifier", () => input.targetGroupIdentifier!, "{targetGroupIdentifier}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - nextToken: [, input.nextToken!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_nT]: [, input[_nT]!], }); let body: any; body = JSON.stringify( @@ -1526,16 +988,8 @@ export const se_ListTargetsCommand = async ( targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1545,35 +999,20 @@ export const se_PutAuthPolicyCommand = async ( input: PutAuthPolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/authpolicy/{resourceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "resourceIdentifier", - () => input.resourceIdentifier!, - "{resourceIdentifier}", - false - ); + b.bp("/authpolicy/{resourceIdentifier}"); + b.p("resourceIdentifier", () => input.resourceIdentifier!, "{resourceIdentifier}", false); let body: any; body = JSON.stringify( take(input, { policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1583,28 +1022,20 @@ export const se_PutResourcePolicyCommand = async ( input: PutResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/resourcepolicy/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { policy: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1614,36 +1045,20 @@ export const se_RegisterTargetsCommand = async ( input: RegisterTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/targetgroups/{targetGroupIdentifier}/registertargets"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetGroupIdentifier", - () => input.targetGroupIdentifier!, - "{targetGroupIdentifier}", - false - ); + b.bp("/targetgroups/{targetGroupIdentifier}/registertargets"); + b.p("targetGroupIdentifier", () => input.targetGroupIdentifier!, "{targetGroupIdentifier}", false); let body: any; body = JSON.stringify( take(input, { targets: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1653,27 +1068,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1683,27 +1091,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1713,16 +1113,12 @@ export const se_UpdateAccessLogSubscriptionCommand = async ( input: UpdateAccessLogSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accesslogsubscriptions/{accessLogSubscriptionIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/accesslogsubscriptions/{accessLogSubscriptionIdentifier}"); + b.p( "accessLogSubscriptionIdentifier", () => input.accessLogSubscriptionIdentifier!, "{accessLogSubscriptionIdentifier}", @@ -1734,15 +1130,8 @@ export const se_UpdateAccessLogSubscriptionCommand = async ( destinationArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1752,44 +1141,21 @@ export const se_UpdateListenerCommand = async ( input: UpdateListenerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); let body: any; body = JSON.stringify( take(input, { defaultAction: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1799,37 +1165,14 @@ export const se_UpdateRuleCommand = async ( input: UpdateRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "listenerIdentifier", - () => input.listenerIdentifier!, - "{listenerIdentifier}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ruleIdentifier", - () => input.ruleIdentifier!, - "{ruleIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}/listeners/{listenerIdentifier}/rules/{ruleIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); + b.p("listenerIdentifier", () => input.listenerIdentifier!, "{listenerIdentifier}", false); + b.p("ruleIdentifier", () => input.ruleIdentifier!, "{ruleIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1838,15 +1181,8 @@ export const se_UpdateRuleCommand = async ( priority: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1856,20 +1192,12 @@ export const se_UpdateServiceCommand = async ( input: UpdateServiceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/services/{serviceIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceIdentifier", - () => input.serviceIdentifier!, - "{serviceIdentifier}", - false - ); + b.bp("/services/{serviceIdentifier}"); + b.p("serviceIdentifier", () => input.serviceIdentifier!, "{serviceIdentifier}", false); let body: any; body = JSON.stringify( take(input, { @@ -1877,15 +1205,8 @@ export const se_UpdateServiceCommand = async ( certificateArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1895,36 +1216,20 @@ export const se_UpdateServiceNetworkCommand = async ( input: UpdateServiceNetworkCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworks/{serviceNetworkIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "serviceNetworkIdentifier", - () => input.serviceNetworkIdentifier!, - "{serviceNetworkIdentifier}", - false - ); + b.bp("/servicenetworks/{serviceNetworkIdentifier}"); + b.p("serviceNetworkIdentifier", () => input.serviceNetworkIdentifier!, "{serviceNetworkIdentifier}", false); let body: any; body = JSON.stringify( take(input, { authType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1934,16 +1239,12 @@ export const se_UpdateServiceNetworkVpcAssociationCommand = async ( input: UpdateServiceNetworkVpcAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"); + b.p( "serviceNetworkVpcAssociationIdentifier", () => input.serviceNetworkVpcAssociationIdentifier!, "{serviceNetworkVpcAssociationIdentifier}", @@ -1955,15 +1256,8 @@ export const se_UpdateServiceNetworkVpcAssociationCommand = async ( securityGroupIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1973,35 +1267,20 @@ export const se_UpdateTargetGroupCommand = async ( input: UpdateTargetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetgroups/{targetGroupIdentifier}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetGroupIdentifier", - () => input.targetGroupIdentifier!, - "{targetGroupIdentifier}", - false - ); + b.bp("/targetgroups/{targetGroupIdentifier}"); + b.p("targetGroupIdentifier", () => input.targetGroupIdentifier!, "{targetGroupIdentifier}", false); let body: any; body = JSON.stringify( take(input, { healthCheck: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -5332,10 +4611,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -5400,10 +4676,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -5805,6 +5078,17 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _rI = "resourceIdentifier"; +const _ra = "retry-after"; +const _sI = "serviceIdentifier"; +const _sNI = "serviceNetworkIdentifier"; +const _tGT = "targetGroupType"; +const _tK = "tagKeys"; +const _vI = "vpcIdentifier"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-wellarchitected/package.json b/clients/client-wellarchitected/package.json index d7bbc612949e..3178291aaaab 100644 --- a/clients/client-wellarchitected/package.json +++ b/clients/client-wellarchitected/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts index 6f9a92765956..4a2b6af2b87d 100644 --- a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts +++ b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -210,28 +211,20 @@ export const se_AssociateLensesCommand = async ( input: AssociateLensesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/associateLenses"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/associateLenses"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { LensAliases: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -241,28 +234,20 @@ export const se_AssociateProfilesCommand = async ( input: AssociateProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/associateProfiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/associateProfiles"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { ProfileArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -272,13 +257,12 @@ export const se_CreateLensShareCommand = async ( input: CreateLensShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares"; - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}/shares"); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); let body: any; body = JSON.stringify( take(input, { @@ -286,15 +270,8 @@ export const se_CreateLensShareCommand = async ( SharedWith: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -304,13 +281,12 @@ export const se_CreateLensVersionCommand = async ( input: CreateLensVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}/versions"); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); let body: any; body = JSON.stringify( take(input, { @@ -319,15 +295,8 @@ export const se_CreateLensVersionCommand = async ( LensVersion: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -337,13 +306,12 @@ export const se_CreateMilestoneCommand = async ( input: CreateMilestoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/milestones"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/milestones"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { @@ -351,15 +319,8 @@ export const se_CreateMilestoneCommand = async ( MilestoneName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -369,11 +330,11 @@ export const se_CreateProfileCommand = async ( input: CreateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles"; + b.bp("/profiles"); let body: any; body = JSON.stringify( take(input, { @@ -384,15 +345,8 @@ export const se_CreateProfileCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -402,13 +356,12 @@ export const se_CreateProfileShareCommand = async ( input: CreateProfileShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); + b.bp("/profiles/{ProfileArn}/shares"); + b.p("ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -416,15 +369,8 @@ export const se_CreateProfileShareCommand = async ( SharedWith: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -434,11 +380,11 @@ export const se_CreateReviewTemplateCommand = async ( input: CreateReviewTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates"; + b.bp("/reviewTemplates"); let body: any; body = JSON.stringify( take(input, { @@ -450,15 +396,8 @@ export const se_CreateReviewTemplateCommand = async ( TemplateName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -468,13 +407,12 @@ export const se_CreateTemplateShareCommand = async ( input: CreateTemplateShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/shares/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -482,15 +420,8 @@ export const se_CreateTemplateShareCommand = async ( SharedWith: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -500,11 +431,11 @@ export const se_CreateWorkloadCommand = async ( input: CreateWorkloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads"; + b.bp("/workloads"); let body: any; body = JSON.stringify( take(input, { @@ -529,15 +460,8 @@ export const se_CreateWorkloadCommand = async ( WorkloadName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -547,13 +471,12 @@ export const se_CreateWorkloadShareCommand = async ( input: CreateWorkloadShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/shares"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { @@ -562,15 +485,8 @@ export const se_CreateWorkloadShareCommand = async ( SharedWith: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -580,25 +496,17 @@ export const se_DeleteLensCommand = async ( input: DeleteLensCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}"); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], - LensStatus: [, __expectNonNull(input.LensStatus!, `LensStatus`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], + [_LS]: [, __expectNonNull(input[_LS]!, `LensStatus`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -608,26 +516,17 @@ export const se_DeleteLensShareCommand = async ( input: DeleteLensShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares/{ShareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ShareId", () => input.ShareId!, "{ShareId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}/shares/{ShareId}"); + b.p("ShareId", () => input.ShareId!, "{ShareId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -637,24 +536,16 @@ export const se_DeleteProfileCommand = async ( input: DeleteProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); + b.bp("/profiles/{ProfileArn}"); + b.p("ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -664,26 +555,17 @@ export const se_DeleteProfileShareCommand = async ( input: DeleteProfileShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares/{ShareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ShareId", () => input.ShareId!, "{ShareId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); + b.bp("/profiles/{ProfileArn}/shares/{ShareId}"); + b.p("ShareId", () => input.ShareId!, "{ShareId}", false); + b.p("ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -693,25 +575,16 @@ export const se_DeleteReviewTemplateCommand = async ( input: DeleteReviewTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/reviewTemplates/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -721,26 +594,17 @@ export const se_DeleteTemplateShareCommand = async ( input: DeleteTemplateShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}/{ShareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ShareId", () => input.ShareId!, "{ShareId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/shares/{TemplateArn}/{ShareId}"); + b.p("ShareId", () => input.ShareId!, "{ShareId}", false); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -750,24 +614,16 @@ export const se_DeleteWorkloadCommand = async ( input: DeleteWorkloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -777,26 +633,17 @@ export const se_DeleteWorkloadShareCommand = async ( input: DeleteWorkloadShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares/{ShareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ShareId", () => input.ShareId!, "{ShareId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/shares/{ShareId}"); + b.p("ShareId", () => input.ShareId!, "{ShareId}", false); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); const query: any = map({ - ClientRequestToken: [, __expectNonNull(input.ClientRequestToken!, `ClientRequestToken`)], + [_CRT]: [, __expectNonNull(input[_CRT]!, `ClientRequestToken`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -806,29 +653,20 @@ export const se_DisassociateLensesCommand = async ( input: DisassociateLensesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/disassociateLenses"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/disassociateLenses"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { LensAliases: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -838,29 +676,20 @@ export const se_DisassociateProfilesCommand = async ( input: DisassociateProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/disassociateProfiles"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/disassociateProfiles"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { ProfileArns: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -870,25 +699,16 @@ export const se_ExportLensCommand = async ( input: ExportLensCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/export"; - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}/export"); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - LensVersion: [, input.LensVersion!], + [_LV]: [, input[_LV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -898,28 +718,18 @@ export const se_GetAnswerCommand = async ( input: GetAnswerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QuestionId", () => input.QuestionId!, "{QuestionId}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.p("QuestionId", () => input.QuestionId!, "{QuestionId}", false); const query: any = map({ - MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber!.toString()], + [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -929,29 +739,18 @@ export const se_GetConsolidatedReportCommand = async ( input: GetConsolidatedReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/consolidatedReport"; + b.bp("/consolidatedReport"); const query: any = map({ - Format: [, __expectNonNull(input.Format!, `Format`)], - IncludeSharedResources: [ - () => input.IncludeSharedResources !== void 0, - () => input.IncludeSharedResources!.toString(), - ], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_F]: [, __expectNonNull(input[_F]!, `Format`)], + [_ISR]: [() => input.IncludeSharedResources !== void 0, () => input[_ISR]!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -961,24 +760,16 @@ export const se_GetLensCommand = async ( input: GetLensCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}"); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - LensVersion: [, input.LensVersion!], + [_LV]: [, input[_LV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -988,27 +779,17 @@ export const se_GetLensReviewCommand = async ( input: GetLensReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber!.toString()], + [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1018,27 +799,17 @@ export const se_GetLensReviewReportCommand = async ( input: GetLensReviewReportCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}/report"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/report"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber!.toString()], + [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1048,26 +819,17 @@ export const se_GetLensVersionDifferenceCommand = async ( input: GetLensVersionDifferenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/versionDifference"; - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}/versionDifference"); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - BaseLensVersion: [, input.BaseLensVersion!], - TargetLensVersion: [, input.TargetLensVersion!], + [_BLV]: [, input[_BLV]!], + [_TLV]: [, input[_TLV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1077,30 +839,14 @@ export const se_GetMilestoneCommand = async ( input: GetMilestoneCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/milestones/{MilestoneNumber}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "MilestoneNumber", - () => input.MilestoneNumber!.toString(), - "{MilestoneNumber}", - false - ); + b.bp("/workloads/{WorkloadId}/milestones/{MilestoneNumber}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("MilestoneNumber", () => input.MilestoneNumber!.toString(), "{MilestoneNumber}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1110,24 +856,16 @@ export const se_GetProfileCommand = async ( input: GetProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); + b.bp("/profiles/{ProfileArn}"); + b.p("ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); const query: any = map({ - ProfileVersion: [, input.ProfileVersion!], + [_PV]: [, input[_PV]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1137,22 +875,15 @@ export const se_GetProfileTemplateCommand = async ( input: GetProfileTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileTemplate"; + b.bp("/profileTemplate"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1162,21 +893,13 @@ export const se_GetReviewTemplateCommand = async ( input: GetReviewTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/reviewTemplates/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1186,24 +909,15 @@ export const se_GetReviewTemplateAnswerCommand = async ( input: GetReviewTemplateAnswerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QuestionId", () => input.QuestionId!, "{QuestionId}", false); + b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.p("QuestionId", () => input.QuestionId!, "{QuestionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1213,23 +927,14 @@ export const se_GetReviewTemplateLensReviewCommand = async ( input: GetReviewTemplateLensReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1239,20 +944,13 @@ export const se_GetWorkloadCommand = async ( input: GetWorkloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1262,11 +960,11 @@ export const se_ImportLensCommand = async ( input: ImportLensCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importLens"; + b.bp("/importLens"); let body: any; body = JSON.stringify( take(input, { @@ -1276,15 +974,8 @@ export const se_ImportLensCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1294,31 +985,21 @@ export const se_ListAnswersCommand = async ( input: ListAnswersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - PillarId: [, input.PillarId!], - MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber!.toString()], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - QuestionPriority: [, input.QuestionPriority!], + [_PI]: [, input[_PI]!], + [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN]!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_QP]: [, input[_QP]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1328,13 +1009,12 @@ export const se_ListCheckDetailsCommand = async ( input: ListCheckDetailsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/checks"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/checks"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1346,15 +1026,8 @@ export const se_ListCheckDetailsCommand = async ( QuestionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1364,13 +1037,12 @@ export const se_ListCheckSummariesCommand = async ( input: ListCheckSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/checkSummaries"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/checkSummaries"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1382,15 +1054,8 @@ export const se_ListCheckSummariesCommand = async ( QuestionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1400,27 +1065,19 @@ export const se_ListLensesCommand = async ( input: ListLensesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses"; + b.bp("/lenses"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - LensType: [, input.LensType!], - LensStatus: [, input.LensStatus!], - LensName: [, input.LensName!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_LT]: [, input[_LT]!], + [_LS]: [, input[_LS]!], + [_LN]: [, input[_LN]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1430,31 +1087,21 @@ export const se_ListLensReviewImprovementsCommand = async ( input: ListLensReviewImprovementsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - PillarId: [, input.PillarId!], - MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber!.toString()], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - QuestionPriority: [, input.QuestionPriority!], + [_PI]: [, input[_PI]!], + [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN]!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_QP]: [, input[_QP]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1464,27 +1111,18 @@ export const se_ListLensReviewsCommand = async ( input: ListLensReviewsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/lensReviews"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/lensReviews"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); const query: any = map({ - MilestoneNumber: [() => input.MilestoneNumber !== void 0, () => input.MilestoneNumber!.toString()], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN]!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1494,28 +1132,19 @@ export const se_ListLensSharesCommand = async ( input: ListLensSharesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/lenses/{LensAlias}/shares"; - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/lenses/{LensAlias}/shares"); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - SharedWithPrefix: [, input.SharedWithPrefix!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - Status: [, input.Status!], + [_SWP]: [, input[_SWP]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_S]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1525,14 +1154,12 @@ export const se_ListMilestonesCommand = async ( input: ListMilestonesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/milestonesSummaries"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/milestonesSummaries"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1540,15 +1167,8 @@ export const se_ListMilestonesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1558,11 +1178,11 @@ export const se_ListNotificationsCommand = async ( input: ListNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/notifications"; + b.bp("/notifications"); let body: any; body = JSON.stringify( take(input, { @@ -1572,15 +1192,8 @@ export const se_ListNotificationsCommand = async ( WorkloadId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1590,25 +1203,17 @@ export const se_ListProfileNotificationsCommand = async ( input: ListProfileNotificationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileNotifications"; + b.bp("/profileNotifications"); const query: any = map({ - WorkloadId: [, input.WorkloadId!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_WI]: [, input[_WI]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1618,26 +1223,18 @@ export const se_ListProfilesCommand = async ( input: ListProfilesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileSummaries"; + b.bp("/profileSummaries"); const query: any = map({ - ProfileNamePrefix: [, input.ProfileNamePrefix!], - ProfileOwnerType: [, input.ProfileOwnerType!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_PNP]: [, input[_PNP]!], + [_POT]: [, input[_POT]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1647,28 +1244,19 @@ export const se_ListProfileSharesCommand = async ( input: ListProfileSharesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}/shares"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); + b.bp("/profiles/{ProfileArn}/shares"); + b.p("ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); const query: any = map({ - SharedWithPrefix: [, input.SharedWithPrefix!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - Status: [, input.Status!], + [_SWP]: [, input[_SWP]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_S]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1678,29 +1266,19 @@ export const se_ListReviewTemplateAnswersCommand = async ( input: ListReviewTemplateAnswersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); const query: any = map({ - PillarId: [, input.PillarId!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_PI]: [, input[_PI]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1710,24 +1288,16 @@ export const se_ListReviewTemplatesCommand = async ( input: ListReviewTemplatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates"; + b.bp("/reviewTemplates"); const query: any = map({ - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1737,29 +1307,21 @@ export const se_ListShareInvitationsCommand = async ( input: ListShareInvitationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shareInvitations"; + b.bp("/shareInvitations"); const query: any = map({ - WorkloadNamePrefix: [, input.WorkloadNamePrefix!], - LensNamePrefix: [, input.LensNamePrefix!], - ShareResourceType: [, input.ShareResourceType!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - ProfileNamePrefix: [, input.ProfileNamePrefix!], - TemplateNamePrefix: [, input.TemplateNamePrefix!], + [_WNP]: [, input[_WNP]!], + [_LNP]: [, input[_LNP]!], + [_SRT]: [, input[_SRT]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_PNP]: [, input[_PNP]!], + [_TNP]: [, input[_TNP]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1769,20 +1331,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn!, "{WorkloadArn}", false); + b.bp("/tags/{WorkloadArn}"); + b.p("WorkloadArn", () => input.WorkloadArn!, "{WorkloadArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1792,28 +1347,19 @@ export const se_ListTemplateSharesCommand = async ( input: ListTemplateSharesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/shares/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/templates/shares/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); const query: any = map({ - SharedWithPrefix: [, input.SharedWithPrefix!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - Status: [, input.Status!], + [_SWP]: [, input[_SWP]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_S]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1823,11 +1369,11 @@ export const se_ListWorkloadsCommand = async ( input: ListWorkloadsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloadsSummaries"; + b.bp("/workloadsSummaries"); let body: any; body = JSON.stringify( take(input, { @@ -1836,15 +1382,8 @@ export const se_ListWorkloadsCommand = async ( WorkloadNamePrefix: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1854,28 +1393,19 @@ export const se_ListWorkloadSharesCommand = async ( input: ListWorkloadSharesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/shares"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); const query: any = map({ - SharedWithPrefix: [, input.SharedWithPrefix!], - NextToken: [, input.NextToken!], - MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - Status: [, input.Status!], + [_SWP]: [, input[_SWP]!], + [_NT]: [, input[_NT]!], + [_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()], + [_S]: [, input[_S]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1885,27 +1415,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn!, "{WorkloadArn}", false); + b.bp("/tags/{WorkloadArn}"); + b.p("WorkloadArn", () => input.WorkloadArn!, "{WorkloadArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1915,27 +1438,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{WorkloadArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadArn", () => input.WorkloadArn!, "{WorkloadArn}", false); + b.bp("/tags/{WorkloadArn}"); + b.p("WorkloadArn", () => input.WorkloadArn!, "{WorkloadArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1945,16 +1460,14 @@ export const se_UpdateAnswerCommand = async ( input: UpdateAnswerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QuestionId", () => input.QuestionId!, "{QuestionId}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.p("QuestionId", () => input.QuestionId!, "{QuestionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1965,15 +1478,8 @@ export const se_UpdateAnswerCommand = async ( SelectedChoices: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1983,11 +1489,11 @@ export const se_UpdateGlobalSettingsCommand = async ( input: UpdateGlobalSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings"; + b.bp("/global-settings"); let body: any; body = JSON.stringify( take(input, { @@ -1995,15 +1501,8 @@ export const se_UpdateGlobalSettingsCommand = async ( OrganizationSharingStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2013,15 +1512,13 @@ export const se_UpdateLensReviewCommand = async ( input: UpdateLensReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); let body: any; body = JSON.stringify( take(input, { @@ -2029,15 +1526,8 @@ export const se_UpdateLensReviewCommand = async ( PillarNotes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2047,12 +1537,12 @@ export const se_UpdateProfileCommand = async ( input: UpdateProfileCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles/{ProfileArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); + b.bp("/profiles/{ProfileArn}"); + b.p("ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -2060,15 +1550,8 @@ export const se_UpdateProfileCommand = async ( ProfileQuestions: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2078,13 +1561,12 @@ export const se_UpdateReviewTemplateCommand = async ( input: UpdateReviewTemplateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reviewTemplates/{TemplateArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.bp("/reviewTemplates/{TemplateArn}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -2095,15 +1577,8 @@ export const se_UpdateReviewTemplateCommand = async ( TemplateName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2113,16 +1588,14 @@ export const se_UpdateReviewTemplateAnswerCommand = async ( input: UpdateReviewTemplateAnswerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "QuestionId", () => input.QuestionId!, "{QuestionId}", false); + b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.p("QuestionId", () => input.QuestionId!, "{QuestionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2133,15 +1606,8 @@ export const se_UpdateReviewTemplateAnswerCommand = async ( SelectedChoices: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2151,15 +1617,13 @@ export const se_UpdateReviewTemplateLensReviewCommand = async ( input: UpdateReviewTemplateLensReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); let body: any; body = JSON.stringify( take(input, { @@ -2167,15 +1631,8 @@ export const se_UpdateReviewTemplateLensReviewCommand = async ( PillarNotes: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2185,35 +1642,20 @@ export const se_UpdateShareInvitationCommand = async ( input: UpdateShareInvitationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shareInvitations/{ShareInvitationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ShareInvitationId", - () => input.ShareInvitationId!, - "{ShareInvitationId}", - false - ); + b.bp("/shareInvitations/{ShareInvitationId}"); + b.p("ShareInvitationId", () => input.ShareInvitationId!, "{ShareInvitationId}", false); let body: any; body = JSON.stringify( take(input, { ShareInvitationAction: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2223,12 +1665,12 @@ export const se_UpdateWorkloadCommand = async ( input: UpdateWorkloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { @@ -2250,15 +1692,8 @@ export const se_UpdateWorkloadCommand = async ( WorkloadName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2268,29 +1703,21 @@ export const se_UpdateWorkloadShareCommand = async ( input: UpdateWorkloadShareCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/shares/{ShareId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ShareId", () => input.ShareId!, "{ShareId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.bp("/workloads/{WorkloadId}/shares/{ShareId}"); + b.p("ShareId", () => input.ShareId!, "{ShareId}", false); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); let body: any; body = JSON.stringify( take(input, { PermissionType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -2300,15 +1727,13 @@ export const se_UpgradeLensReviewCommand = async ( input: UpgradeLensReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); let body: any; body = JSON.stringify( take(input, { @@ -2316,15 +1741,8 @@ export const se_UpgradeLensReviewCommand = async ( MilestoneName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2334,15 +1752,13 @@ export const se_UpgradeProfileVersionCommand = async ( input: UpgradeProfileVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade"; - resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); + b.bp("/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade"); + b.p("WorkloadId", () => input.WorkloadId!, "{WorkloadId}", false); + b.p("ProfileArn", () => input.ProfileArn!, "{ProfileArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -2350,15 +1766,8 @@ export const se_UpgradeProfileVersionCommand = async ( MilestoneName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2368,30 +1777,21 @@ export const se_UpgradeReviewTemplateLensReviewCommand = async ( input: UpgradeReviewTemplateLensReviewCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade"; - resolvedPath = __resolvedPath(resolvedPath, input, "TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "LensAlias", () => input.LensAlias!, "{LensAlias}", false); + b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade"); + b.p("TemplateArn", () => input.TemplateArn!, "{TemplateArn}", false); + b.p("LensAlias", () => input.LensAlias!, "{LensAlias}", false); let body: any; body = JSON.stringify( take(input, { ClientRequestToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -7367,6 +6767,33 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _BLV = "BaseLensVersion"; +const _CRT = "ClientRequestToken"; +const _F = "Format"; +const _ISR = "IncludeSharedResources"; +const _LN = "LensName"; +const _LNP = "LensNamePrefix"; +const _LS = "LensStatus"; +const _LT = "LensType"; +const _LV = "LensVersion"; +const _MN = "MilestoneNumber"; +const _MR = "MaxResults"; +const _NT = "NextToken"; +const _PI = "PillarId"; +const _PNP = "ProfileNamePrefix"; +const _POT = "ProfileOwnerType"; +const _PV = "ProfileVersion"; +const _QP = "QuestionPriority"; +const _S = "Status"; +const _SRT = "ShareResourceType"; +const _SWP = "SharedWithPrefix"; +const _TK = "TagKeys"; +const _TLV = "TargetLensVersion"; +const _TNP = "TemplateNamePrefix"; +const _WI = "WorkloadId"; +const _WNP = "WorkloadNamePrefix"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-wisdom/package.json b/clients/client-wisdom/package.json index 162f66922ec3..0a4584dd027d 100644 --- a/clients/client-wisdom/package.json +++ b/clients/client-wisdom/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-wisdom/src/protocols/Aws_restJson1.ts b/clients/client-wisdom/src/protocols/Aws_restJson1.ts index 67e580808885..60c4efbd5b35 100644 --- a/clients/client-wisdom/src/protocols/Aws_restJson1.ts +++ b/clients/client-wisdom/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -152,11 +153,11 @@ export const se_CreateAssistantCommand = async ( input: CreateAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants"; + b.bp("/assistants"); let body: any; body = JSON.stringify( take(input, { @@ -168,15 +169,8 @@ export const se_CreateAssistantCommand = async ( type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -186,13 +180,12 @@ export const se_CreateAssistantAssociationCommand = async ( input: CreateAssistantAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; body = JSON.stringify( take(input, { @@ -202,15 +195,8 @@ export const se_CreateAssistantAssociationCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -220,21 +206,12 @@ export const se_CreateContentCommand = async ( input: CreateContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -247,15 +224,8 @@ export const se_CreateContentCommand = async ( uploadId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -265,11 +235,11 @@ export const se_CreateKnowledgeBaseCommand = async ( input: CreateKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases"; + b.bp("/knowledgeBases"); let body: any; body = JSON.stringify( take(input, { @@ -283,15 +253,8 @@ export const se_CreateKnowledgeBaseCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -301,21 +264,12 @@ export const se_CreateQuickResponseCommand = async ( input: CreateQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -332,15 +286,8 @@ export const se_CreateQuickResponseCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -350,13 +297,12 @@ export const se_CreateSessionCommand = async ( input: CreateSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/sessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/sessions"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; body = JSON.stringify( take(input, { @@ -366,15 +312,8 @@ export const se_CreateSessionCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -384,21 +323,13 @@ export const se_DeleteAssistantCommand = async ( input: DeleteAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -408,30 +339,14 @@ export const se_DeleteAssistantAssociationCommand = async ( input: DeleteAssistantAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/associations/{assistantAssociationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assistantAssociationId", - () => input.assistantAssociationId!, - "{assistantAssociationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}"); + b.p("assistantAssociationId", () => input.assistantAssociationId!, "{assistantAssociationId}", false); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -441,30 +356,14 @@ export const se_DeleteContentCommand = async ( input: DeleteContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("contentId", () => input.contentId!, "{contentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -474,30 +373,14 @@ export const se_DeleteImportJobCommand = async ( input: DeleteImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "importJobId", () => input.importJobId!, "{importJobId}", false); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("importJobId", () => input.importJobId!, "{importJobId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -507,28 +390,13 @@ export const se_DeleteKnowledgeBaseCommand = async ( input: DeleteKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -538,37 +406,14 @@ export const se_DeleteQuickResponseCommand = async ( input: DeleteQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quickResponseId", - () => input.quickResponseId!, - "{quickResponseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("quickResponseId", () => input.quickResponseId!, "{quickResponseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -578,21 +423,13 @@ export const se_GetAssistantCommand = async ( input: GetAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -602,30 +439,14 @@ export const se_GetAssistantAssociationCommand = async ( input: GetAssistantAssociationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/associations/{assistantAssociationId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "assistantAssociationId", - () => input.assistantAssociationId!, - "{assistantAssociationId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations/{assistantAssociationId}"); + b.p("assistantAssociationId", () => input.assistantAssociationId!, "{assistantAssociationId}", false); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -635,30 +456,14 @@ export const se_GetContentCommand = async ( input: GetContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"); + b.p("contentId", () => input.contentId!, "{contentId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -668,30 +473,14 @@ export const se_GetContentSummaryCommand = async ( input: GetContentSummaryCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary"; - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary"); + b.p("contentId", () => input.contentId!, "{contentId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -701,30 +490,14 @@ export const se_GetImportJobCommand = async ( input: GetImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "importJobId", () => input.importJobId!, "{importJobId}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}"); + b.p("importJobId", () => input.importJobId!, "{importJobId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -734,28 +507,13 @@ export const se_GetKnowledgeBaseCommand = async ( input: GetKnowledgeBaseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -765,37 +523,14 @@ export const se_GetQuickResponseCommand = async ( input: GetQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quickResponseId", - () => input.quickResponseId!, - "{quickResponseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"); + b.p("quickResponseId", () => input.quickResponseId!, "{quickResponseId}", false); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -805,28 +540,18 @@ export const se_GetRecommendationsCommand = async ( input: GetRecommendationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/sessions/{sessionId}/recommendations"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); const query: any = map({ - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], - waitTimeSeconds: [() => input.waitTimeSeconds !== void 0, () => input.waitTimeSeconds!.toString()], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], + [_wTS]: [() => input.waitTimeSeconds !== void 0, () => input[_wTS]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -836,23 +561,14 @@ export const se_GetSessionCommand = async ( input: GetSessionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/sessions/{sessionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/assistants/{assistantId}/sessions/{sessionId}"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -862,26 +578,17 @@ export const se_ListAssistantAssociationsCommand = async ( input: ListAssistantAssociationsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/associations"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/associations"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -891,24 +598,16 @@ export const se_ListAssistantsCommand = async ( input: ListAssistantsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants"; + b.bp("/assistants"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -918,34 +617,17 @@ export const se_ListContentsCommand = async ( input: ListContentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -955,34 +637,17 @@ export const se_ListImportJobsCommand = async ( input: ListImportJobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -992,24 +657,16 @@ export const se_ListKnowledgeBasesCommand = async ( input: ListKnowledgeBasesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases"; + b.bp("/knowledgeBases"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1019,34 +676,17 @@ export const se_ListQuickResponsesCommand = async ( input: ListQuickResponsesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1056,20 +696,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1079,30 +712,21 @@ export const se_NotifyRecommendationsReceivedCommand = async ( input: NotifyRecommendationsReceivedCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "sessionId", () => input.sessionId!, "{sessionId}", false); + b.bp("/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); + b.p("sessionId", () => input.sessionId!, "{sessionId}", false); let body: any; body = JSON.stringify( take(input, { recommendationIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1112,13 +736,12 @@ export const se_QueryAssistantCommand = async ( input: QueryAssistantCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/query"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/query"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1127,15 +750,8 @@ export const se_QueryAssistantCommand = async ( queryText: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1145,29 +761,13 @@ export const se_RemoveKnowledgeBaseTemplateUriCommand = async ( input: RemoveKnowledgeBaseTemplateUriCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/templateUri"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1177,23 +777,15 @@ export const se_SearchContentCommand = async ( input: SearchContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}/search"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/search"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1201,16 +793,8 @@ export const se_SearchContentCommand = async ( searchExpression: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1220,24 +804,15 @@ export const se_SearchQuickResponsesCommand = async ( input: SearchQuickResponsesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/search/quickResponses"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/search/quickResponses"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1246,16 +821,8 @@ export const se_SearchQuickResponsesCommand = async ( searchExpression: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1265,16 +832,15 @@ export const se_SearchSessionsCommand = async ( input: SearchSessionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assistants/{assistantId}/searchSessions"; - resolvedPath = __resolvedPath(resolvedPath, input, "assistantId", () => input.assistantId!, "{assistantId}", false); + b.bp("/assistants/{assistantId}/searchSessions"); + b.p("assistantId", () => input.assistantId!, "{assistantId}", false); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; body = JSON.stringify( @@ -1282,16 +848,8 @@ export const se_SearchSessionsCommand = async ( searchExpression: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1301,20 +859,12 @@ export const se_StartContentUploadCommand = async ( input: StartContentUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/knowledgeBases/{knowledgeBaseId}/upload"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/upload"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1322,15 +872,8 @@ export const se_StartContentUploadCommand = async ( presignedUrlTimeToLive: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1340,21 +883,12 @@ export const se_StartImportJobCommand = async ( input: StartImportJobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/importJobs"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/importJobs"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1365,15 +899,8 @@ export const se_StartImportJobCommand = async ( uploadId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1383,27 +910,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1413,27 +933,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1443,22 +955,13 @@ export const se_UpdateContentCommand = async ( input: UpdateContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "contentId", () => input.contentId!, "{contentId}", false); + b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("contentId", () => input.contentId!, "{contentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1470,15 +973,8 @@ export const se_UpdateContentCommand = async ( uploadId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1488,36 +984,20 @@ export const se_UpdateKnowledgeBaseTemplateUriCommand = async ( input: UpdateKnowledgeBaseTemplateUriCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/templateUri"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/templateUri"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); let body: any; body = JSON.stringify( take(input, { templateUri: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1527,29 +1007,13 @@ export const se_UpdateQuickResponseCommand = async ( input: UpdateQuickResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "knowledgeBaseId", - () => input.knowledgeBaseId!, - "{knowledgeBaseId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "quickResponseId", - () => input.quickResponseId!, - "{quickResponseId}", - false - ); + b.bp("/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}"); + b.p("knowledgeBaseId", () => input.knowledgeBaseId!, "{knowledgeBaseId}", false); + b.p("quickResponseId", () => input.quickResponseId!, "{quickResponseId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1567,15 +1031,8 @@ export const se_UpdateQuickResponseCommand = async ( shortcutKey: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -4321,6 +3778,11 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _mR = "maxResults"; +const _nT = "nextToken"; +const _tK = "tagKeys"; +const _wTS = "waitTimeSeconds"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-workdocs/package.json b/clients/client-workdocs/package.json index 1aa454068847..2d6a4dd6c42a 100644 --- a/clients/client-workdocs/package.json +++ b/clients/client-workdocs/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-workdocs/src/protocols/Aws_restJson1.ts b/clients/client-workdocs/src/protocols/Aws_restJson1.ts index 96915a5ff75d..b8b8d614f805 100644 --- a/clients/client-workdocs/src/protocols/Aws_restJson1.ts +++ b/clients/client-workdocs/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -180,25 +181,16 @@ export const se_AbortDocumentVersionUploadCommand = async ( input: AbortDocumentVersionUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documents/{DocumentId}/versions/{VersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId!, "{VersionId}", false); + b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.p("VersionId", () => input.VersionId!, "{VersionId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -208,23 +200,15 @@ export const se_ActivateUserCommand = async ( input: ActivateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}/activation"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/api/v1/users/{UserId}/activation"); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -234,15 +218,13 @@ export const se_AddResourcePermissionsCommand = async ( input: AddResourcePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/resources/{ResourceId}/permissions"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/api/v1/resources/{ResourceId}/permissions"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); let body: any; body = JSON.stringify( take(input, { @@ -250,15 +232,8 @@ export const se_AddResourcePermissionsCommand = async ( Principals: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -268,16 +243,14 @@ export const se_CreateCommentCommand = async ( input: CreateCommentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documents/{DocumentId}/versions/{VersionId}/comment"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId!, "{VersionId}", false); + b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comment"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.p("VersionId", () => input.VersionId!, "{VersionId}", false); let body: any; body = JSON.stringify( take(input, { @@ -288,15 +261,8 @@ export const se_CreateCommentCommand = async ( Visibility: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -306,17 +272,15 @@ export const se_CreateCustomMetadataCommand = async ( input: CreateCustomMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/resources/{ResourceId}/customMetadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/api/v1/resources/{ResourceId}/customMetadata"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); const query: any = map({ - versionid: [, input.VersionId!], + [_v]: [, input[_VI]!], }); let body: any; body = JSON.stringify( @@ -324,16 +288,8 @@ export const se_CreateCustomMetadataCommand = async ( CustomMetadata: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -343,12 +299,12 @@ export const se_CreateFolderCommand = async ( input: CreateFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders"; + b.bp("/api/v1/folders"); let body: any; body = JSON.stringify( take(input, { @@ -356,15 +312,8 @@ export const se_CreateFolderCommand = async ( ParentFolderId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -374,29 +323,21 @@ export const se_CreateLabelsCommand = async ( input: CreateLabelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/resources/{ResourceId}/labels"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/api/v1/resources/{ResourceId}/labels"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); let body: any; body = JSON.stringify( take(input, { Labels: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -406,21 +347,12 @@ export const se_CreateNotificationSubscriptionCommand = async ( input: CreateNotificationSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/organizations/{OrganizationId}/subscriptions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OrganizationId", - () => input.OrganizationId!, - "{OrganizationId}", - false - ); + b.bp("/api/v1/organizations/{OrganizationId}/subscriptions"); + b.p("OrganizationId", () => input.OrganizationId!, "{OrganizationId}", false); let body: any; body = JSON.stringify( take(input, { @@ -429,15 +361,8 @@ export const se_CreateNotificationSubscriptionCommand = async ( SubscriptionType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -447,12 +372,12 @@ export const se_CreateUserCommand = async ( input: CreateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users"; + b.bp("/api/v1/users"); let body: any; body = JSON.stringify( take(input, { @@ -466,15 +391,8 @@ export const se_CreateUserCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -484,23 +402,15 @@ export const se_DeactivateUserCommand = async ( input: DeactivateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}/activation"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/api/v1/users/{UserId}/activation"); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -510,26 +420,17 @@ export const se_DeleteCommentCommand = async ( input: DeleteCommentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documents/{DocumentId}/versions/{VersionId}/comment/{CommentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId!, "{VersionId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "CommentId", () => input.CommentId!, "{CommentId}", false); - let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, + [_a]: input[_AT]!, }); + b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comment/{CommentId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.p("VersionId", () => input.VersionId!, "{VersionId}", false); + b.p("CommentId", () => input.CommentId!, "{CommentId}", false); + let body: any; + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -539,30 +440,20 @@ export const se_DeleteCustomMetadataCommand = async ( input: DeleteCustomMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/resources/{ResourceId}/customMetadata"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/api/v1/resources/{ResourceId}/customMetadata"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); const query: any = map({ - versionId: [, input.VersionId!], - keys: [() => input.Keys !== void 0, () => (input.Keys! || []).map((_entry) => _entry as any)], - deleteAll: [() => input.DeleteAll !== void 0, () => input.DeleteAll!.toString()], + [_vI]: [, input[_VI]!], + [_k]: [() => input.Keys !== void 0, () => (input[_K]! || []).map((_entry) => _entry as any)], + [_dA]: [() => input.DeleteAll !== void 0, () => input[_DA]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -572,23 +463,15 @@ export const se_DeleteDocumentCommand = async ( input: DeleteDocumentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.bp("/api/v1/documents/{DocumentId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -598,32 +481,19 @@ export const se_DeleteDocumentVersionCommand = async ( input: DeleteDocumentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documentVersions/{DocumentId}/versions/{VersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId!, "{VersionId}", false); + b.bp("/api/v1/documentVersions/{DocumentId}/versions/{VersionId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.p("VersionId", () => input.VersionId!, "{VersionId}", false); const query: any = map({ - deletePriorVersions: [ - __expectNonNull(input.DeletePriorVersions, `DeletePriorVersions`) != null, - () => input.DeletePriorVersions!.toString(), - ], + [_dPV]: [__expectNonNull(input.DeletePriorVersions, `DeletePriorVersions`) != null, () => input[_DPV]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -633,23 +503,15 @@ export const se_DeleteFolderCommand = async ( input: DeleteFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/api/v1/folders/{FolderId}"); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -659,23 +521,15 @@ export const se_DeleteFolderContentsCommand = async ( input: DeleteFolderContentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}/contents"; - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/api/v1/folders/{FolderId}/contents"); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -685,28 +539,19 @@ export const se_DeleteLabelsCommand = async ( input: DeleteLabelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/resources/{ResourceId}/labels"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/api/v1/resources/{ResourceId}/labels"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); const query: any = map({ - labels: [() => input.Labels !== void 0, () => (input.Labels! || []).map((_entry) => _entry as any)], - deleteAll: [() => input.DeleteAll !== void 0, () => input.DeleteAll!.toString()], + [_l]: [() => input.Labels !== void 0, () => (input[_L]! || []).map((_entry) => _entry as any)], + [_dA]: [() => input.DeleteAll !== void 0, () => input[_DA]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -716,37 +561,14 @@ export const se_DeleteNotificationSubscriptionCommand = async ( input: DeleteNotificationSubscriptionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "SubscriptionId", - () => input.SubscriptionId!, - "{SubscriptionId}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OrganizationId", - () => input.OrganizationId!, - "{OrganizationId}", - false - ); + b.bp("/api/v1/organizations/{OrganizationId}/subscriptions/{SubscriptionId}"); + b.p("SubscriptionId", () => input.SubscriptionId!, "{SubscriptionId}", false); + b.p("OrganizationId", () => input.OrganizationId!, "{OrganizationId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -756,22 +578,15 @@ export const se_DeleteUserCommand = async ( input: DeleteUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/api/v1/users/{UserId}"); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -781,39 +596,25 @@ export const se_DescribeActivitiesCommand = async ( input: DescribeActivitiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/activities"; + b.bp("/api/v1/activities"); const query: any = map({ - startTime: [ - () => input.StartTime !== void 0, - () => (input.StartTime!.toISOString().split(".")[0] + "Z").toString(), - ], - endTime: [() => input.EndTime !== void 0, () => (input.EndTime!.toISOString().split(".")[0] + "Z").toString()], - organizationId: [, input.OrganizationId!], - activityTypes: [, input.ActivityTypes!], - resourceId: [, input.ResourceId!], - userId: [, input.UserId!], - includeIndirectActivities: [ - () => input.IncludeIndirectActivities !== void 0, - () => input.IncludeIndirectActivities!.toString(), - ], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - marker: [, input.Marker!], + [_sT]: [() => input.StartTime !== void 0, () => (input[_ST]!.toISOString().split(".")[0] + "Z").toString()], + [_eT]: [() => input.EndTime !== void 0, () => (input[_ET]!.toISOString().split(".")[0] + "Z").toString()], + [_oI]: [, input[_OI]!], + [_aT]: [, input[_ATc]!], + [_rI]: [, input[_RI]!], + [_uI]: [, input[_UI]!], + [_iIA]: [() => input.IncludeIndirectActivities !== void 0, () => input[_IIA]!.toString()], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_m]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -823,30 +624,20 @@ export const se_DescribeCommentsCommand = async ( input: DescribeCommentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documents/{DocumentId}/versions/{VersionId}/comments"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId!, "{VersionId}", false); + b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}/comments"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.p("VersionId", () => input.VersionId!, "{VersionId}", false); const query: any = map({ - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - marker: [, input.Marker!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_m]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -856,30 +647,21 @@ export const se_DescribeDocumentVersionsCommand = async ( input: DescribeDocumentVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}/versions"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.bp("/api/v1/documents/{DocumentId}/versions"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); const query: any = map({ - marker: [, input.Marker!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - include: [, input.Include!], - fields: [, input.Fields!], + [_m]: [, input[_M]!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_i]: [, input[_I]!], + [_f]: [, input[_F]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -889,32 +671,23 @@ export const se_DescribeFolderContentsCommand = async ( input: DescribeFolderContentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}/contents"; - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/api/v1/folders/{FolderId}/contents"); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); const query: any = map({ - sort: [, input.Sort!], - order: [, input.Order!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - marker: [, input.Marker!], - type: [, input.Type!], - include: [, input.Include!], + [_s]: [, input[_S]!], + [_o]: [, input[_O]!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_m]: [, input[_M]!], + [_t]: [, input[_T]!], + [_i]: [, input[_I]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -924,28 +697,20 @@ export const se_DescribeGroupsCommand = async ( input: DescribeGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/groups"; + b.bp("/api/v1/groups"); const query: any = map({ - searchQuery: [, __expectNonNull(input.SearchQuery!, `SearchQuery`)], - organizationId: [, input.OrganizationId!], - marker: [, input.Marker!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], + [_sQ]: [, __expectNonNull(input[_SQ]!, `SearchQuery`)], + [_oI]: [, input[_OI]!], + [_m]: [, input[_M]!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -955,34 +720,17 @@ export const se_DescribeNotificationSubscriptionsCommand = async ( input: DescribeNotificationSubscriptionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/organizations/{OrganizationId}/subscriptions"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "OrganizationId", - () => input.OrganizationId!, - "{OrganizationId}", - false - ); + b.bp("/api/v1/organizations/{OrganizationId}/subscriptions"); + b.p("OrganizationId", () => input.OrganizationId!, "{OrganizationId}", false); const query: any = map({ - marker: [, input.Marker!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], + [_m]: [, input[_M]!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -992,30 +740,20 @@ export const se_DescribeResourcePermissionsCommand = async ( input: DescribeResourcePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/resources/{ResourceId}/permissions"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/api/v1/resources/{ResourceId}/permissions"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); const query: any = map({ - principalId: [, input.PrincipalId!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - marker: [, input.Marker!], + [_pI]: [, input[_PI]!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_m]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1025,26 +763,18 @@ export const se_DescribeRootFoldersCommand = async ( input: DescribeRootFoldersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/me/root"; + b.bp("/api/v1/me/root"); const query: any = map({ - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - marker: [, input.Marker!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_m]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1054,33 +784,25 @@ export const se_DescribeUsersCommand = async ( input: DescribeUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users"; + b.bp("/api/v1/users"); const query: any = map({ - organizationId: [, input.OrganizationId!], - userIds: [, input.UserIds!], - query: [, input.Query!], - include: [, input.Include!], - order: [, input.Order!], - sort: [, input.Sort!], - marker: [, input.Marker!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - fields: [, input.Fields!], + [_oI]: [, input[_OI]!], + [_uIs]: [, input[_UIs]!], + [_q]: [, input[_Q]!], + [_i]: [, input[_I]!], + [_o]: [, input[_O]!], + [_s]: [, input[_S]!], + [_m]: [, input[_M]!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_f]: [, input[_F]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1090,21 +812,14 @@ export const se_GetCurrentUserCommand = async ( input: GetCurrentUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/me"; + b.bp("/api/v1/me"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1114,30 +829,18 @@ export const se_GetDocumentCommand = async ( input: GetDocumentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.bp("/api/v1/documents/{DocumentId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); const query: any = map({ - includeCustomMetadata: [ - () => input.IncludeCustomMetadata !== void 0, - () => input.IncludeCustomMetadata!.toString(), - ], + [_iCM]: [() => input.IncludeCustomMetadata !== void 0, () => input[_ICM]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1147,29 +850,20 @@ export const se_GetDocumentPathCommand = async ( input: GetDocumentPathCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}/path"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.bp("/api/v1/documents/{DocumentId}/path"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); const query: any = map({ - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - fields: [, input.Fields!], - marker: [, input.Marker!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_f]: [, input[_F]!], + [_m]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1179,33 +873,20 @@ export const se_GetDocumentVersionCommand = async ( input: GetDocumentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documents/{DocumentId}/versions/{VersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId!, "{VersionId}", false); + b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.p("VersionId", () => input.VersionId!, "{VersionId}", false); const query: any = map({ - fields: [, input.Fields!], - includeCustomMetadata: [ - () => input.IncludeCustomMetadata !== void 0, - () => input.IncludeCustomMetadata!.toString(), - ], + [_f]: [, input[_F]!], + [_iCM]: [() => input.IncludeCustomMetadata !== void 0, () => input[_ICM]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1215,30 +896,18 @@ export const se_GetFolderCommand = async ( input: GetFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/api/v1/folders/{FolderId}"); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); const query: any = map({ - includeCustomMetadata: [ - () => input.IncludeCustomMetadata !== void 0, - () => input.IncludeCustomMetadata!.toString(), - ], + [_iCM]: [() => input.IncludeCustomMetadata !== void 0, () => input[_ICM]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1248,29 +917,20 @@ export const se_GetFolderPathCommand = async ( input: GetFolderPathCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}/path"; - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/api/v1/folders/{FolderId}/path"); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); const query: any = map({ - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - fields: [, input.Fields!], - marker: [, input.Marker!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_f]: [, input[_F]!], + [_m]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1280,28 +940,20 @@ export const se_GetResourcesCommand = async ( input: GetResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/resources"; + b.bp("/api/v1/resources"); const query: any = map({ - userId: [, input.UserId!], - collectionType: [, input.CollectionType!], - limit: [() => input.Limit !== void 0, () => input.Limit!.toString()], - marker: [, input.Marker!], + [_uI]: [, input[_UI]!], + [_cT]: [, input[_CT]!], + [_li]: [() => input.Limit !== void 0, () => input[_Li]!.toString()], + [_m]: [, input[_M]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1311,12 +963,12 @@ export const se_InitiateDocumentVersionUploadCommand = async ( input: InitiateDocumentVersionUploadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents"; + b.bp("/api/v1/documents"); let body: any; body = JSON.stringify( take(input, { @@ -1329,15 +981,8 @@ export const se_InitiateDocumentVersionUploadCommand = async ( ParentFolderId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1347,24 +992,15 @@ export const se_RemoveAllResourcePermissionsCommand = async ( input: RemoveAllResourcePermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/resources/{ResourceId}/permissions"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.bp("/api/v1/resources/{ResourceId}/permissions"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1374,29 +1010,19 @@ export const se_RemoveResourcePermissionCommand = async ( input: RemoveResourcePermissionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/resources/{ResourceId}/permissions/{PrincipalId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId!, "{ResourceId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "PrincipalId", () => input.PrincipalId!, "{PrincipalId}", false); + b.bp("/api/v1/resources/{ResourceId}/permissions/{PrincipalId}"); + b.p("ResourceId", () => input.ResourceId!, "{ResourceId}", false); + b.p("PrincipalId", () => input.PrincipalId!, "{PrincipalId}", false); const query: any = map({ - type: [, input.PrincipalType!], + [_t]: [, input[_PT]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1406,24 +1032,15 @@ export const se_RestoreDocumentVersionsCommand = async ( input: RestoreDocumentVersionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documentVersions/restore/{DocumentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.bp("/api/v1/documentVersions/restore/{DocumentId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1433,12 +1050,12 @@ export const se_SearchResourcesCommand = async ( input: SearchResourcesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/search"; + b.bp("/api/v1/search"); let body: any; body = JSON.stringify( take(input, { @@ -1452,15 +1069,8 @@ export const se_SearchResourcesCommand = async ( QueryText: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1470,14 +1080,13 @@ export const se_UpdateDocumentCommand = async ( input: UpdateDocumentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/documents/{DocumentId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.bp("/api/v1/documents/{DocumentId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1486,15 +1095,8 @@ export const se_UpdateDocumentCommand = async ( ResourceState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1504,31 +1106,22 @@ export const se_UpdateDocumentVersionCommand = async ( input: UpdateDocumentVersionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/api/v1/documents/{DocumentId}/versions/{VersionId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "DocumentId", () => input.DocumentId!, "{DocumentId}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "VersionId", () => input.VersionId!, "{VersionId}", false); + b.bp("/api/v1/documents/{DocumentId}/versions/{VersionId}"); + b.p("DocumentId", () => input.DocumentId!, "{DocumentId}", false); + b.p("VersionId", () => input.VersionId!, "{VersionId}", false); let body: any; body = JSON.stringify( take(input, { VersionStatus: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1538,14 +1131,13 @@ export const se_UpdateFolderCommand = async ( input: UpdateFolderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/folders/{FolderId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "FolderId", () => input.FolderId!, "{FolderId}", false); + b.bp("/api/v1/folders/{FolderId}"); + b.p("FolderId", () => input.FolderId!, "{FolderId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1554,15 +1146,8 @@ export const se_UpdateFolderCommand = async ( ResourceState: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1572,13 +1157,13 @@ export const se_UpdateUserCommand = async ( input: UpdateUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - authentication: input.AuthenticationToken!, + [_a]: input[_AT]!, }); - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/users/{UserId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserId", () => input.UserId!, "{UserId}", false); + b.bp("/api/v1/users/{UserId}"); + b.p("UserId", () => input.UserId!, "{UserId}", false); let body: any; body = JSON.stringify( take(input, { @@ -1591,15 +1176,8 @@ export const se_UpdateUserCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -5200,6 +4778,61 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _AT = "AuthenticationToken"; +const _ATc = "ActivityTypes"; +const _CT = "CollectionType"; +const _DA = "DeleteAll"; +const _DPV = "DeletePriorVersions"; +const _ET = "EndTime"; +const _F = "Fields"; +const _I = "Include"; +const _ICM = "IncludeCustomMetadata"; +const _IIA = "IncludeIndirectActivities"; +const _K = "Keys"; +const _L = "Labels"; +const _Li = "Limit"; +const _M = "Marker"; +const _O = "Order"; +const _OI = "OrganizationId"; +const _PI = "PrincipalId"; +const _PT = "PrincipalType"; +const _Q = "Query"; +const _RI = "ResourceId"; +const _S = "Sort"; +const _SQ = "SearchQuery"; +const _ST = "StartTime"; +const _T = "Type"; +const _UI = "UserId"; +const _UIs = "UserIds"; +const _VI = "VersionId"; +const _a = "authentication"; +const _aT = "activityTypes"; +const _cT = "collectionType"; +const _dA = "deleteAll"; +const _dPV = "deletePriorVersions"; +const _eT = "endTime"; +const _f = "fields"; +const _i = "include"; +const _iCM = "includeCustomMetadata"; +const _iIA = "includeIndirectActivities"; +const _k = "keys"; +const _l = "labels"; +const _li = "limit"; +const _m = "marker"; +const _o = "order"; +const _oI = "organizationId"; +const _pI = "principalId"; +const _q = "query"; +const _rI = "resourceId"; +const _s = "sort"; +const _sQ = "searchQuery"; +const _sT = "startTime"; +const _t = "type"; +const _uI = "userId"; +const _uIs = "userIds"; +const _v = "versionid"; +const _vI = "versionId"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-worklink/package.json b/clients/client-worklink/package.json index 8b8c60602d7e..c00caa3718cf 100644 --- a/clients/client-worklink/package.json +++ b/clients/client-worklink/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-worklink/src/protocols/Aws_restJson1.ts b/clients/client-worklink/src/protocols/Aws_restJson1.ts index f23f56facede..a344a1815418 100644 --- a/clients/client-worklink/src/protocols/Aws_restJson1.ts +++ b/clients/client-worklink/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -136,11 +137,11 @@ export const se_AssociateDomainCommand = async ( input: AssociateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associateDomain"; + b.bp("/associateDomain"); let body: any; body = JSON.stringify( take(input, { @@ -150,15 +151,8 @@ export const se_AssociateDomainCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -168,12 +162,11 @@ export const se_AssociateWebsiteAuthorizationProviderCommand = async ( input: AssociateWebsiteAuthorizationProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associateWebsiteAuthorizationProvider"; + b.bp("/associateWebsiteAuthorizationProvider"); let body: any; body = JSON.stringify( take(input, { @@ -182,15 +175,8 @@ export const se_AssociateWebsiteAuthorizationProviderCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -200,12 +186,11 @@ export const se_AssociateWebsiteCertificateAuthorityCommand = async ( input: AssociateWebsiteCertificateAuthorityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associateWebsiteCertificateAuthority"; + b.bp("/associateWebsiteCertificateAuthority"); let body: any; body = JSON.stringify( take(input, { @@ -214,15 +199,8 @@ export const se_AssociateWebsiteCertificateAuthorityCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -232,11 +210,11 @@ export const se_CreateFleetCommand = async ( input: CreateFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createFleet"; + b.bp("/createFleet"); let body: any; body = JSON.stringify( take(input, { @@ -246,15 +224,8 @@ export const se_CreateFleetCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -264,26 +235,19 @@ export const se_DeleteFleetCommand = async ( input: DeleteFleetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteFleet"; + b.bp("/deleteFleet"); let body: any; body = JSON.stringify( take(input, { FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -293,27 +257,19 @@ export const se_DescribeAuditStreamConfigurationCommand = async ( input: DescribeAuditStreamConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeAuditStreamConfiguration"; + b.bp("/describeAuditStreamConfiguration"); let body: any; body = JSON.stringify( take(input, { FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -323,27 +279,19 @@ export const se_DescribeCompanyNetworkConfigurationCommand = async ( input: DescribeCompanyNetworkConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeCompanyNetworkConfiguration"; + b.bp("/describeCompanyNetworkConfiguration"); let body: any; body = JSON.stringify( take(input, { FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -353,11 +301,11 @@ export const se_DescribeDeviceCommand = async ( input: DescribeDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeDevice"; + b.bp("/describeDevice"); let body: any; body = JSON.stringify( take(input, { @@ -365,15 +313,8 @@ export const se_DescribeDeviceCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -383,27 +324,19 @@ export const se_DescribeDevicePolicyConfigurationCommand = async ( input: DescribeDevicePolicyConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeDevicePolicyConfiguration"; + b.bp("/describeDevicePolicyConfiguration"); let body: any; body = JSON.stringify( take(input, { FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -413,11 +346,11 @@ export const se_DescribeDomainCommand = async ( input: DescribeDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeDomain"; + b.bp("/describeDomain"); let body: any; body = JSON.stringify( take(input, { @@ -425,15 +358,8 @@ export const se_DescribeDomainCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -443,26 +369,19 @@ export const se_DescribeFleetMetadataCommand = async ( input: DescribeFleetMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeFleetMetadata"; + b.bp("/describeFleetMetadata"); let body: any; body = JSON.stringify( take(input, { FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -472,27 +391,19 @@ export const se_DescribeIdentityProviderConfigurationCommand = async ( input: DescribeIdentityProviderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeIdentityProviderConfiguration"; + b.bp("/describeIdentityProviderConfiguration"); let body: any; body = JSON.stringify( take(input, { FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -502,12 +413,11 @@ export const se_DescribeWebsiteCertificateAuthorityCommand = async ( input: DescribeWebsiteCertificateAuthorityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeWebsiteCertificateAuthority"; + b.bp("/describeWebsiteCertificateAuthority"); let body: any; body = JSON.stringify( take(input, { @@ -515,15 +425,8 @@ export const se_DescribeWebsiteCertificateAuthorityCommand = async ( WebsiteCaId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -533,11 +436,11 @@ export const se_DisassociateDomainCommand = async ( input: DisassociateDomainCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociateDomain"; + b.bp("/disassociateDomain"); let body: any; body = JSON.stringify( take(input, { @@ -545,15 +448,8 @@ export const se_DisassociateDomainCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -563,12 +459,11 @@ export const se_DisassociateWebsiteAuthorizationProviderCommand = async ( input: DisassociateWebsiteAuthorizationProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociateWebsiteAuthorizationProvider"; + b.bp("/disassociateWebsiteAuthorizationProvider"); let body: any; body = JSON.stringify( take(input, { @@ -576,15 +471,8 @@ export const se_DisassociateWebsiteAuthorizationProviderCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -594,12 +482,11 @@ export const se_DisassociateWebsiteCertificateAuthorityCommand = async ( input: DisassociateWebsiteCertificateAuthorityCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociateWebsiteCertificateAuthority"; + b.bp("/disassociateWebsiteCertificateAuthority"); let body: any; body = JSON.stringify( take(input, { @@ -607,15 +494,8 @@ export const se_DisassociateWebsiteCertificateAuthorityCommand = async ( WebsiteCaId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -625,11 +505,11 @@ export const se_ListDevicesCommand = async ( input: ListDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDevices"; + b.bp("/listDevices"); let body: any; body = JSON.stringify( take(input, { @@ -638,15 +518,8 @@ export const se_ListDevicesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -656,11 +529,11 @@ export const se_ListDomainsCommand = async ( input: ListDomainsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listDomains"; + b.bp("/listDomains"); let body: any; body = JSON.stringify( take(input, { @@ -669,15 +542,8 @@ export const se_ListDomainsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -687,11 +553,11 @@ export const se_ListFleetsCommand = async ( input: ListFleetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listFleets"; + b.bp("/listFleets"); let body: any; body = JSON.stringify( take(input, { @@ -699,15 +565,8 @@ export const se_ListFleetsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -717,20 +576,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -740,12 +592,11 @@ export const se_ListWebsiteAuthorizationProvidersCommand = async ( input: ListWebsiteAuthorizationProvidersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWebsiteAuthorizationProviders"; + b.bp("/listWebsiteAuthorizationProviders"); let body: any; body = JSON.stringify( take(input, { @@ -754,15 +605,8 @@ export const se_ListWebsiteAuthorizationProvidersCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -772,12 +616,11 @@ export const se_ListWebsiteCertificateAuthoritiesCommand = async ( input: ListWebsiteCertificateAuthoritiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listWebsiteCertificateAuthorities"; + b.bp("/listWebsiteCertificateAuthorities"); let body: any; body = JSON.stringify( take(input, { @@ -786,15 +629,8 @@ export const se_ListWebsiteCertificateAuthoritiesCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -804,11 +640,11 @@ export const se_RestoreDomainAccessCommand = async ( input: RestoreDomainAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restoreDomainAccess"; + b.bp("/restoreDomainAccess"); let body: any; body = JSON.stringify( take(input, { @@ -816,15 +652,8 @@ export const se_RestoreDomainAccessCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -834,11 +663,11 @@ export const se_RevokeDomainAccessCommand = async ( input: RevokeDomainAccessCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/revokeDomainAccess"; + b.bp("/revokeDomainAccess"); let body: any; body = JSON.stringify( take(input, { @@ -846,15 +675,8 @@ export const se_RevokeDomainAccessCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -864,11 +686,11 @@ export const se_SignOutUserCommand = async ( input: SignOutUserCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/signOutUser"; + b.bp("/signOutUser"); let body: any; body = JSON.stringify( take(input, { @@ -876,15 +698,8 @@ export const se_SignOutUserCommand = async ( Username: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -894,27 +709,20 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); let body: any; body = JSON.stringify( take(input, { Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -924,27 +732,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); + b.bp("/tags/{ResourceArn}"); + b.p("ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.TagKeys, `TagKeys`) != null, - () => (input.TagKeys! || []).map((_entry) => _entry as any), + () => (input[_TK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -954,12 +754,11 @@ export const se_UpdateAuditStreamConfigurationCommand = async ( input: UpdateAuditStreamConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateAuditStreamConfiguration"; + b.bp("/updateAuditStreamConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -967,15 +766,8 @@ export const se_UpdateAuditStreamConfigurationCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -985,12 +777,11 @@ export const se_UpdateCompanyNetworkConfigurationCommand = async ( input: UpdateCompanyNetworkConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateCompanyNetworkConfiguration"; + b.bp("/updateCompanyNetworkConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1000,15 +791,8 @@ export const se_UpdateCompanyNetworkConfigurationCommand = async ( VpcId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1018,12 +802,11 @@ export const se_UpdateDevicePolicyConfigurationCommand = async ( input: UpdateDevicePolicyConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDevicePolicyConfiguration"; + b.bp("/updateDevicePolicyConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1031,15 +814,8 @@ export const se_UpdateDevicePolicyConfigurationCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1049,11 +825,11 @@ export const se_UpdateDomainMetadataCommand = async ( input: UpdateDomainMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDomainMetadata"; + b.bp("/updateDomainMetadata"); let body: any; body = JSON.stringify( take(input, { @@ -1062,15 +838,8 @@ export const se_UpdateDomainMetadataCommand = async ( FleetArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1080,11 +849,11 @@ export const se_UpdateFleetMetadataCommand = async ( input: UpdateFleetMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateFleetMetadata"; + b.bp("/UpdateFleetMetadata"); let body: any; body = JSON.stringify( take(input, { @@ -1093,15 +862,8 @@ export const se_UpdateFleetMetadataCommand = async ( OptimizeForEndUserLocation: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1111,12 +873,11 @@ export const se_UpdateIdentityProviderConfigurationCommand = async ( input: UpdateIdentityProviderConfigurationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateIdentityProviderConfiguration"; + b.bp("/updateIdentityProviderConfiguration"); let body: any; body = JSON.stringify( take(input, { @@ -1125,15 +886,8 @@ export const se_UpdateIdentityProviderConfigurationCommand = async ( IdentityProviderType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3283,6 +3037,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _TK = "TagKeys"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-workmailmessageflow/package.json b/clients/client-workmailmessageflow/package.json index e8832f0437e1..dae5a111b350 100644 --- a/clients/client-workmailmessageflow/package.json +++ b/clients/client-workmailmessageflow/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-workmailmessageflow/src/models/models_0.ts b/clients/client-workmailmessageflow/src/models/models_0.ts index 920d74ebb246..8b111972ac86 100644 --- a/clients/client-workmailmessageflow/src/models/models_0.ts +++ b/clients/client-workmailmessageflow/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { WorkMailMessageFlowServiceException as __BaseException } from "./WorkMailMessageFlowServiceException"; diff --git a/clients/client-workmailmessageflow/src/protocols/Aws_restJson1.ts b/clients/client-workmailmessageflow/src/protocols/Aws_restJson1.ts index 297d47d1785d..1e9e71e3cf59 100644 --- a/clients/client-workmailmessageflow/src/protocols/Aws_restJson1.ts +++ b/clients/client-workmailmessageflow/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -42,20 +43,13 @@ export const se_GetRawMessageContentCommand = async ( input: GetRawMessageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/messages/{messageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "messageId", () => input.messageId!, "{messageId}", false); + b.bp("/messages/{messageId}"); + b.p("messageId", () => input.messageId!, "{messageId}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -65,27 +59,20 @@ export const se_PutRawMessageContentCommand = async ( input: PutRawMessageContentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/messages/{messageId}"; - resolvedPath = __resolvedPath(resolvedPath, input, "messageId", () => input.messageId!, "{messageId}", false); + b.bp("/messages/{messageId}"); + b.p("messageId", () => input.messageId!, "{messageId}", false); let body: any; body = JSON.stringify( take(input, { content: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/clients/client-workspaces-thin-client/package.json b/clients/client-workspaces-thin-client/package.json index 87e6a422a98d..b705343155c0 100644 --- a/clients/client-workspaces-thin-client/package.json +++ b/clients/client-workspaces-thin-client/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-workspaces-thin-client/src/protocols/Aws_restJson1.ts b/clients/client-workspaces-thin-client/src/protocols/Aws_restJson1.ts index 880bebc5e45b..7bd845c85fe4 100644 --- a/clients/client-workspaces-thin-client/src/protocols/Aws_restJson1.ts +++ b/clients/client-workspaces-thin-client/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -74,11 +75,11 @@ export const se_CreateEnvironmentCommand = async ( input: CreateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments"; + b.bp("/environments"); let body: any; body = JSON.stringify( take(input, { @@ -101,15 +102,9 @@ export const se_CreateEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -119,12 +114,12 @@ export const se_DeleteDeviceCommand = async ( input: DeleteDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/devices/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -134,16 +129,9 @@ export const se_DeleteDeviceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -153,12 +141,12 @@ export const se_DeleteEnvironmentCommand = async ( input: DeleteEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/environments/{id}"); + b.p("id", () => input.id!, "{id}", false); const query: any = map({ - clientToken: [, input.clientToken ?? generateIdempotencyToken()], + [_cT]: [, input[_cT] ?? generateIdempotencyToken()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -168,16 +156,9 @@ export const se_DeleteEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -187,12 +168,12 @@ export const se_DeregisterDeviceCommand = async ( input: DeregisterDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deregister-device/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/deregister-device/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -207,15 +188,9 @@ export const se_DeregisterDeviceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -225,10 +200,10 @@ export const se_GetDeviceCommand = async ( input: GetDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/devices/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -237,15 +212,9 @@ export const se_GetDeviceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -255,10 +224,10 @@ export const se_GetEnvironmentCommand = async ( input: GetEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/environments/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -267,15 +236,9 @@ export const se_GetEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -285,10 +248,10 @@ export const se_GetSoftwareSetCommand = async ( input: GetSoftwareSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/softwaresets/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/softwaresets/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -297,15 +260,9 @@ export const se_GetSoftwareSetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -315,12 +272,12 @@ export const se_ListDevicesCommand = async ( input: ListDevicesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices"; + b.bp("/devices"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -330,16 +287,9 @@ export const se_ListDevicesCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -349,12 +299,12 @@ export const se_ListEnvironmentsCommand = async ( input: ListEnvironmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments"; + b.bp("/environments"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -364,16 +314,9 @@ export const se_ListEnvironmentsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -383,12 +326,12 @@ export const se_ListSoftwareSetsCommand = async ( input: ListSoftwareSetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/softwaresets"; + b.bp("/softwaresets"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); @@ -398,16 +341,9 @@ export const se_ListSoftwareSetsCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -417,10 +353,10 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -429,15 +365,9 @@ export const se_ListTagsForResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -447,12 +377,12 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); let body: any; body = JSON.stringify( take(input, { @@ -466,15 +396,9 @@ export const se_TagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -484,14 +408,14 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false); + b.bp("/tags/{resourceArn}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn}", false); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; @@ -502,16 +426,9 @@ export const se_UntagResourceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.hn(resolvedHostname); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -521,12 +438,12 @@ export const se_UpdateDeviceCommand = async ( input: UpdateDeviceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/devices/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -543,15 +460,9 @@ export const se_UpdateDeviceCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -561,12 +472,12 @@ export const se_UpdateEnvironmentCommand = async ( input: UpdateEnvironmentCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/environments/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -586,15 +497,9 @@ export const se_UpdateEnvironmentCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -604,12 +509,12 @@ export const se_UpdateSoftwareSetCommand = async ( input: UpdateSoftwareSetCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/softwaresets/{id}"; - resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + b.bp("/softwaresets/{id}"); + b.p("id", () => input.id!, "{id}", false); let body: any; body = JSON.stringify( take(input, { @@ -623,15 +528,9 @@ export const se_UpdateSoftwareSetCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1593,10 +1492,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1618,10 +1514,7 @@ const de_InternalServiceExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1686,10 +1579,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -1933,6 +1823,13 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _cT = "clientToken"; +const _mR = "maxResults"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _tK = "tagKeys"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-workspaces-web/package.json b/clients/client-workspaces-web/package.json index 85e18e6968ee..06e451d5b9cc 100644 --- a/clients/client-workspaces-web/package.json +++ b/clients/client-workspaces-web/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts index 5150ba7b9732..7db7097fac2a 100644 --- a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts +++ b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts @@ -1,4 +1,5 @@ // smithy-typescript generated code +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -227,25 +228,16 @@ export const se_AssociateBrowserSettingsCommand = async ( input: AssociateBrowserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/browserSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); const query: any = map({ - browserSettingsArn: [, __expectNonNull(input.browserSettingsArn!, `browserSettingsArn`)], + [_bSA]: [, __expectNonNull(input[_bSA]!, `browserSettingsArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -255,25 +247,16 @@ export const se_AssociateIpAccessSettingsCommand = async ( input: AssociateIpAccessSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/ipAccessSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/ipAccessSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); const query: any = map({ - ipAccessSettingsArn: [, __expectNonNull(input.ipAccessSettingsArn!, `ipAccessSettingsArn`)], + [_iASA]: [, __expectNonNull(input[_iASA]!, `ipAccessSettingsArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -283,25 +266,16 @@ export const se_AssociateNetworkSettingsCommand = async ( input: AssociateNetworkSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/networkSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); const query: any = map({ - networkSettingsArn: [, __expectNonNull(input.networkSettingsArn!, `networkSettingsArn`)], + [_nSA]: [, __expectNonNull(input[_nSA]!, `networkSettingsArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -311,25 +285,16 @@ export const se_AssociateTrustStoreCommand = async ( input: AssociateTrustStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/trustStores"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); const query: any = map({ - trustStoreArn: [, __expectNonNull(input.trustStoreArn!, `trustStoreArn`)], + [_tSA]: [, __expectNonNull(input[_tSA]!, `trustStoreArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -339,29 +304,16 @@ export const se_AssociateUserAccessLoggingSettingsCommand = async ( input: AssociateUserAccessLoggingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/portals/{portalArn+}/userAccessLoggingSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/userAccessLoggingSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); const query: any = map({ - userAccessLoggingSettingsArn: [ - , - __expectNonNull(input.userAccessLoggingSettingsArn!, `userAccessLoggingSettingsArn`), - ], + [_uALSA]: [, __expectNonNull(input[_uALSA]!, `userAccessLoggingSettingsArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -371,25 +323,16 @@ export const se_AssociateUserSettingsCommand = async ( input: AssociateUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/userSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); const query: any = map({ - userSettingsArn: [, __expectNonNull(input.userSettingsArn!, `userSettingsArn`)], + [_uSA]: [, __expectNonNull(input[_uSA]!, `userSettingsArn`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - query, - body, - }); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }; /** @@ -399,11 +342,11 @@ export const se_CreateBrowserSettingsCommand = async ( input: CreateBrowserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings"; + b.bp("/browserSettings"); let body: any; body = JSON.stringify( take(input, { @@ -414,15 +357,8 @@ export const se_CreateBrowserSettingsCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -432,11 +368,11 @@ export const se_CreateIdentityProviderCommand = async ( input: CreateIdentityProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders"; + b.bp("/identityProviders"); let body: any; body = JSON.stringify( take(input, { @@ -447,15 +383,8 @@ export const se_CreateIdentityProviderCommand = async ( portalArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -465,11 +394,11 @@ export const se_CreateIpAccessSettingsCommand = async ( input: CreateIpAccessSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings"; + b.bp("/ipAccessSettings"); let body: any; body = JSON.stringify( take(input, { @@ -482,15 +411,8 @@ export const se_CreateIpAccessSettingsCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -500,11 +422,11 @@ export const se_CreateNetworkSettingsCommand = async ( input: CreateNetworkSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings"; + b.bp("/networkSettings"); let body: any; body = JSON.stringify( take(input, { @@ -515,15 +437,8 @@ export const se_CreateNetworkSettingsCommand = async ( vpcId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -533,11 +448,11 @@ export const se_CreatePortalCommand = async ( input: CreatePortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals"; + b.bp("/portals"); let body: any; body = JSON.stringify( take(input, { @@ -549,15 +464,8 @@ export const se_CreatePortalCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -567,11 +475,11 @@ export const se_CreateTrustStoreCommand = async ( input: CreateTrustStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores"; + b.bp("/trustStores"); let body: any; body = JSON.stringify( take(input, { @@ -580,15 +488,8 @@ export const se_CreateTrustStoreCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -598,12 +499,11 @@ export const se_CreateUserAccessLoggingSettingsCommand = async ( input: CreateUserAccessLoggingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings"; + b.bp("/userAccessLoggingSettings"); let body: any; body = JSON.stringify( take(input, { @@ -612,15 +512,8 @@ export const se_CreateUserAccessLoggingSettingsCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -630,11 +523,11 @@ export const se_CreateUserSettingsCommand = async ( input: CreateUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings"; + b.bp("/userSettings"); let body: any; body = JSON.stringify( take(input, { @@ -652,15 +545,8 @@ export const se_CreateUserSettingsCommand = async ( uploadAllowed: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -670,28 +556,13 @@ export const se_DeleteBrowserSettingsCommand = async ( input: DeleteBrowserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "browserSettingsArn", - () => input.browserSettingsArn!, - "{browserSettingsArn+}", - true - ); + b.bp("/browserSettings/{browserSettingsArn+}"); + b.p("browserSettingsArn", () => input.browserSettingsArn!, "{browserSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -701,28 +572,13 @@ export const se_DeleteIdentityProviderCommand = async ( input: DeleteIdentityProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "identityProviderArn", - () => input.identityProviderArn!, - "{identityProviderArn+}", - true - ); + b.bp("/identityProviders/{identityProviderArn+}"); + b.p("identityProviderArn", () => input.identityProviderArn!, "{identityProviderArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -732,28 +588,13 @@ export const se_DeleteIpAccessSettingsCommand = async ( input: DeleteIpAccessSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ipAccessSettingsArn", - () => input.ipAccessSettingsArn!, - "{ipAccessSettingsArn+}", - true - ); + b.bp("/ipAccessSettings/{ipAccessSettingsArn+}"); + b.p("ipAccessSettingsArn", () => input.ipAccessSettingsArn!, "{ipAccessSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -763,28 +604,13 @@ export const se_DeleteNetworkSettingsCommand = async ( input: DeleteNetworkSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "networkSettingsArn", - () => input.networkSettingsArn!, - "{networkSettingsArn+}", - true - ); + b.bp("/networkSettings/{networkSettingsArn+}"); + b.p("networkSettingsArn", () => input.networkSettingsArn!, "{networkSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -794,20 +620,13 @@ export const se_DeletePortalCommand = async ( input: DeletePortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -817,28 +636,13 @@ export const se_DeleteTrustStoreCommand = async ( input: DeleteTrustStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustStoreArn", - () => input.trustStoreArn!, - "{trustStoreArn+}", - true - ); + b.bp("/trustStores/{trustStoreArn+}"); + b.p("trustStoreArn", () => input.trustStoreArn!, "{trustStoreArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -848,29 +652,18 @@ export const se_DeleteUserAccessLoggingSettingsCommand = async ( input: DeleteUserAccessLoggingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}"); + b.p( "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn!, "{userAccessLoggingSettingsArn+}", true ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -880,28 +673,13 @@ export const se_DeleteUserSettingsCommand = async ( input: DeleteUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "userSettingsArn", - () => input.userSettingsArn!, - "{userSettingsArn+}", - true - ); + b.bp("/userSettings/{userSettingsArn+}"); + b.p("userSettingsArn", () => input.userSettingsArn!, "{userSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -911,21 +689,13 @@ export const se_DisassociateBrowserSettingsCommand = async ( input: DisassociateBrowserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/browserSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -935,21 +705,13 @@ export const se_DisassociateIpAccessSettingsCommand = async ( input: DisassociateIpAccessSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/ipAccessSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/ipAccessSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -959,21 +721,13 @@ export const se_DisassociateNetworkSettingsCommand = async ( input: DisassociateNetworkSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/networkSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -983,21 +737,13 @@ export const se_DisassociateTrustStoreCommand = async ( input: DisassociateTrustStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/trustStores"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1007,22 +753,13 @@ export const se_DisassociateUserAccessLoggingSettingsCommand = async ( input: DisassociateUserAccessLoggingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/portals/{portalArn+}/userAccessLoggingSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/userAccessLoggingSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1032,21 +769,13 @@ export const se_DisassociateUserSettingsCommand = async ( input: DisassociateUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/userSettings"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - body, - }); + b.m("DELETE").h(headers).b(body); + return b.build(); }; /** @@ -1056,28 +785,13 @@ export const se_GetBrowserSettingsCommand = async ( input: GetBrowserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "browserSettingsArn", - () => input.browserSettingsArn!, - "{browserSettingsArn+}", - true - ); + b.bp("/browserSettings/{browserSettingsArn+}"); + b.p("browserSettingsArn", () => input.browserSettingsArn!, "{browserSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1087,28 +801,13 @@ export const se_GetIdentityProviderCommand = async ( input: GetIdentityProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "identityProviderArn", - () => input.identityProviderArn!, - "{identityProviderArn+}", - true - ); + b.bp("/identityProviders/{identityProviderArn+}"); + b.p("identityProviderArn", () => input.identityProviderArn!, "{identityProviderArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1118,28 +817,13 @@ export const se_GetIpAccessSettingsCommand = async ( input: GetIpAccessSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ipAccessSettingsArn", - () => input.ipAccessSettingsArn!, - "{ipAccessSettingsArn+}", - true - ); + b.bp("/ipAccessSettings/{ipAccessSettingsArn+}"); + b.p("ipAccessSettingsArn", () => input.ipAccessSettingsArn!, "{ipAccessSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1149,28 +833,13 @@ export const se_GetNetworkSettingsCommand = async ( input: GetNetworkSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "networkSettingsArn", - () => input.networkSettingsArn!, - "{networkSettingsArn+}", - true - ); + b.bp("/networkSettings/{networkSettingsArn+}"); + b.p("networkSettingsArn", () => input.networkSettingsArn!, "{networkSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1180,20 +849,13 @@ export const se_GetPortalCommand = async ( input: GetPortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1203,20 +865,13 @@ export const se_GetPortalServiceProviderMetadataCommand = async ( input: GetPortalServiceProviderMetadataCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portalIdp/{portalArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portalIdp/{portalArn+}"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1226,28 +881,13 @@ export const se_GetTrustStoreCommand = async ( input: GetTrustStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustStoreArn", - () => input.trustStoreArn!, - "{trustStoreArn+}", - true - ); + b.bp("/trustStores/{trustStoreArn+}"); + b.p("trustStoreArn", () => input.trustStoreArn!, "{trustStoreArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1257,32 +897,16 @@ export const se_GetTrustStoreCertificateCommand = async ( input: GetTrustStoreCertificateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustStoreArn", - () => input.trustStoreArn!, - "{trustStoreArn+}", - true - ); + b.bp("/trustStores/{trustStoreArn+}/certificate"); + b.p("trustStoreArn", () => input.trustStoreArn!, "{trustStoreArn+}", true); const query: any = map({ - thumbprint: [, __expectNonNull(input.thumbprint!, `thumbprint`)], + [_t]: [, __expectNonNull(input[_t]!, `thumbprint`)], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1292,29 +916,18 @@ export const se_GetUserAccessLoggingSettingsCommand = async ( input: GetUserAccessLoggingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}"); + b.p( "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn!, "{userAccessLoggingSettingsArn+}", true ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1324,28 +937,13 @@ export const se_GetUserSettingsCommand = async ( input: GetUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "userSettingsArn", - () => input.userSettingsArn!, - "{userSettingsArn+}", - true - ); + b.bp("/userSettings/{userSettingsArn+}"); + b.p("userSettingsArn", () => input.userSettingsArn!, "{userSettingsArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1355,24 +953,16 @@ export const se_ListBrowserSettingsCommand = async ( input: ListBrowserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings"; + b.bp("/browserSettings"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1382,26 +972,17 @@ export const se_ListIdentityProvidersCommand = async ( input: ListIdentityProvidersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/identityProviders"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}/identityProviders"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1411,24 +992,16 @@ export const se_ListIpAccessSettingsCommand = async ( input: ListIpAccessSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings"; + b.bp("/ipAccessSettings"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1438,24 +1011,16 @@ export const se_ListNetworkSettingsCommand = async ( input: ListNetworkSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings"; + b.bp("/networkSettings"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1465,24 +1030,16 @@ export const se_ListPortalsCommand = async ( input: ListPortalsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals"; + b.bp("/portals"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1492,20 +1049,13 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn+}", true); + b.bp("/tags/{resourceArn+}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1515,34 +1065,17 @@ export const se_ListTrustStoreCertificatesCommand = async ( input: ListTrustStoreCertificatesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/trustStores/{trustStoreArn+}/certificates"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustStoreArn", - () => input.trustStoreArn!, - "{trustStoreArn+}", - true - ); + b.bp("/trustStores/{trustStoreArn+}/certificates"); + b.p("trustStoreArn", () => input.trustStoreArn!, "{trustStoreArn+}", true); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1552,24 +1085,16 @@ export const se_ListTrustStoresCommand = async ( input: ListTrustStoresCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores"; + b.bp("/trustStores"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1579,25 +1104,16 @@ export const se_ListUserAccessLoggingSettingsCommand = async ( input: ListUserAccessLoggingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings"; + b.bp("/userAccessLoggingSettings"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1607,24 +1123,16 @@ export const se_ListUserSettingsCommand = async ( input: ListUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings"; + b.bp("/userSettings"); const query: any = map({ - nextToken: [, input.nextToken!], - maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()], + [_nT]: [, input[_nT]!], + [_mR]: [() => input.maxResults !== void 0, () => input[_mR]!.toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1634,12 +1142,12 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn+}", true); + b.bp("/tags/{resourceArn+}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1647,15 +1155,8 @@ export const se_TagResourceCommand = async ( tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1665,27 +1166,19 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn+}", true); + b.bp("/tags/{resourceArn+}"); + b.p("resourceArn", () => input.resourceArn!, "{resourceArn+}", true); const query: any = map({ - tagKeys: [ + [_tK]: [ __expectNonNull(input.tagKeys, `tagKeys`) != null, - () => (input.tagKeys! || []).map((_entry) => _entry as any), + () => (input[_tK]! || []).map((_entry) => _entry as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "DELETE", - headers, - path: resolvedPath, - query, - body, - }); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1695,20 +1188,12 @@ export const se_UpdateBrowserSettingsCommand = async ( input: UpdateBrowserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "browserSettingsArn", - () => input.browserSettingsArn!, - "{browserSettingsArn+}", - true - ); + b.bp("/browserSettings/{browserSettingsArn+}"); + b.p("browserSettingsArn", () => input.browserSettingsArn!, "{browserSettingsArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1716,15 +1201,8 @@ export const se_UpdateBrowserSettingsCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1734,20 +1212,12 @@ export const se_UpdateIdentityProviderCommand = async ( input: UpdateIdentityProviderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "identityProviderArn", - () => input.identityProviderArn!, - "{identityProviderArn+}", - true - ); + b.bp("/identityProviders/{identityProviderArn+}"); + b.p("identityProviderArn", () => input.identityProviderArn!, "{identityProviderArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1757,15 +1227,8 @@ export const se_UpdateIdentityProviderCommand = async ( identityProviderType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1775,20 +1238,12 @@ export const se_UpdateIpAccessSettingsCommand = async ( input: UpdateIpAccessSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ipAccessSettings/{ipAccessSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "ipAccessSettingsArn", - () => input.ipAccessSettingsArn!, - "{ipAccessSettingsArn+}", - true - ); + b.bp("/ipAccessSettings/{ipAccessSettingsArn+}"); + b.p("ipAccessSettingsArn", () => input.ipAccessSettingsArn!, "{ipAccessSettingsArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1798,15 +1253,8 @@ export const se_UpdateIpAccessSettingsCommand = async ( ipRules: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1816,20 +1264,12 @@ export const se_UpdateNetworkSettingsCommand = async ( input: UpdateNetworkSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "networkSettingsArn", - () => input.networkSettingsArn!, - "{networkSettingsArn+}", - true - ); + b.bp("/networkSettings/{networkSettingsArn+}"); + b.p("networkSettingsArn", () => input.networkSettingsArn!, "{networkSettingsArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1839,15 +1279,8 @@ export const se_UpdateNetworkSettingsCommand = async ( vpcId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1857,12 +1290,12 @@ export const se_UpdatePortalCommand = async ( input: UpdatePortalCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", () => input.portalArn!, "{portalArn+}", true); + b.bp("/portals/{portalArn+}"); + b.p("portalArn", () => input.portalArn!, "{portalArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1870,15 +1303,8 @@ export const se_UpdatePortalCommand = async ( displayName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1888,20 +1314,12 @@ export const se_UpdateTrustStoreCommand = async ( input: UpdateTrustStoreCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "trustStoreArn", - () => input.trustStoreArn!, - "{trustStoreArn+}", - true - ); + b.bp("/trustStores/{trustStoreArn+}"); + b.p("trustStoreArn", () => input.trustStoreArn!, "{trustStoreArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1910,15 +1328,8 @@ export const se_UpdateTrustStoreCommand = async ( clientToken: [true, (_) => _ ?? generateIdempotencyToken()], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1928,16 +1339,12 @@ export const se_UpdateUserAccessLoggingSettingsCommand = async ( input: UpdateUserAccessLoggingSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}"); + b.p( "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn!, "{userAccessLoggingSettingsArn+}", @@ -1950,15 +1357,8 @@ export const se_UpdateUserAccessLoggingSettingsCommand = async ( kinesisStreamArn: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -1968,20 +1368,12 @@ export const se_UpdateUserSettingsCommand = async ( input: UpdateUserSettingsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "userSettingsArn", - () => input.userSettingsArn!, - "{userSettingsArn+}", - true - ); + b.bp("/userSettings/{userSettingsArn+}"); + b.p("userSettingsArn", () => input.userSettingsArn!, "{userSettingsArn+}", true); let body: any; body = JSON.stringify( take(input, { @@ -1996,15 +1388,8 @@ export const se_UpdateUserSettingsCommand = async ( uploadAllowed: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PATCH", - headers, - path: resolvedPath, - body, - }); + b.m("PATCH").h(headers).b(body); + return b.build(); }; /** @@ -5465,10 +4850,7 @@ const de_InternalServerExceptionRes = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -5533,10 +4915,7 @@ const de_ServiceQuotaExceededExceptionRes = async ( */ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - retryAfterSeconds: [ - () => void 0 !== parsedOutput.headers["retry-after"], - () => __strictParseInt32(parsedOutput.headers["retry-after"]), - ], + [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -5842,6 +5221,19 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _bSA = "browserSettingsArn"; +const _iASA = "ipAccessSettingsArn"; +const _mR = "maxResults"; +const _nSA = "networkSettingsArn"; +const _nT = "nextToken"; +const _rAS = "retryAfterSeconds"; +const _ra = "retry-after"; +const _t = "thumbprint"; +const _tK = "tagKeys"; +const _tSA = "trustStoreArn"; +const _uALSA = "userAccessLoggingSettingsArn"; +const _uSA = "userSettingsArn"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/clients/client-xray/package.json b/clients/client-xray/package.json index 1bae0b117075..6d415e4763e5 100644 --- a/clients/client-xray/package.json +++ b/clients/client-xray/package.json @@ -34,6 +34,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/clients/client-xray/src/protocols/Aws_restJson1.ts b/clients/client-xray/src/protocols/Aws_restJson1.ts index 4f3a0580a237..ce8d84448632 100644 --- a/clients/client-xray/src/protocols/Aws_restJson1.ts +++ b/clients/client-xray/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { _json, @@ -135,11 +136,11 @@ export const se_BatchGetTracesCommand = async ( input: BatchGetTracesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Traces"; + b.bp("/Traces"); let body: any; body = JSON.stringify( take(input, { @@ -147,15 +148,8 @@ export const se_BatchGetTracesCommand = async ( TraceIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -165,11 +159,11 @@ export const se_CreateGroupCommand = async ( input: CreateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateGroup"; + b.bp("/CreateGroup"); let body: any; body = JSON.stringify( take(input, { @@ -179,15 +173,8 @@ export const se_CreateGroupCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -197,11 +184,11 @@ export const se_CreateSamplingRuleCommand = async ( input: CreateSamplingRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSamplingRule"; + b.bp("/CreateSamplingRule"); let body: any; body = JSON.stringify( take(input, { @@ -209,15 +196,8 @@ export const se_CreateSamplingRuleCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -227,11 +207,11 @@ export const se_DeleteGroupCommand = async ( input: DeleteGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteGroup"; + b.bp("/DeleteGroup"); let body: any; body = JSON.stringify( take(input, { @@ -239,15 +219,8 @@ export const se_DeleteGroupCommand = async ( GroupName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -257,11 +230,11 @@ export const se_DeleteResourcePolicyCommand = async ( input: DeleteResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteResourcePolicy"; + b.bp("/DeleteResourcePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -269,15 +242,8 @@ export const se_DeleteResourcePolicyCommand = async ( PolicyRevisionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -287,11 +253,11 @@ export const se_DeleteSamplingRuleCommand = async ( input: DeleteSamplingRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSamplingRule"; + b.bp("/DeleteSamplingRule"); let body: any; body = JSON.stringify( take(input, { @@ -299,15 +265,8 @@ export const se_DeleteSamplingRuleCommand = async ( RuleName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -317,22 +276,15 @@ export const se_GetEncryptionConfigCommand = async ( input: GetEncryptionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EncryptionConfig"; + b.bp("/EncryptionConfig"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -342,11 +294,11 @@ export const se_GetGroupCommand = async ( input: GetGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetGroup"; + b.bp("/GetGroup"); let body: any; body = JSON.stringify( take(input, { @@ -354,15 +306,8 @@ export const se_GetGroupCommand = async ( GroupName: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -372,26 +317,19 @@ export const se_GetGroupsCommand = async ( input: GetGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Groups"; + b.bp("/Groups"); let body: any; body = JSON.stringify( take(input, { NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -401,26 +339,19 @@ export const se_GetInsightCommand = async ( input: GetInsightCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Insight"; + b.bp("/Insight"); let body: any; body = JSON.stringify( take(input, { InsightId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -430,11 +361,11 @@ export const se_GetInsightEventsCommand = async ( input: GetInsightEventsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InsightEvents"; + b.bp("/InsightEvents"); let body: any; body = JSON.stringify( take(input, { @@ -443,15 +374,8 @@ export const se_GetInsightEventsCommand = async ( NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -461,11 +385,11 @@ export const se_GetInsightImpactGraphCommand = async ( input: GetInsightImpactGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InsightImpactGraph"; + b.bp("/InsightImpactGraph"); let body: any; body = JSON.stringify( take(input, { @@ -475,15 +399,8 @@ export const se_GetInsightImpactGraphCommand = async ( StartTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -493,11 +410,11 @@ export const se_GetInsightSummariesCommand = async ( input: GetInsightSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InsightSummaries"; + b.bp("/InsightSummaries"); let body: any; body = JSON.stringify( take(input, { @@ -510,15 +427,8 @@ export const se_GetInsightSummariesCommand = async ( States: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -528,26 +438,19 @@ export const se_GetSamplingRulesCommand = async ( input: GetSamplingRulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetSamplingRules"; + b.bp("/GetSamplingRules"); let body: any; body = JSON.stringify( take(input, { NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -557,27 +460,19 @@ export const se_GetSamplingStatisticSummariesCommand = async ( input: GetSamplingStatisticSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SamplingStatisticSummaries"; + b.bp("/SamplingStatisticSummaries"); let body: any; body = JSON.stringify( take(input, { NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -587,26 +482,19 @@ export const se_GetSamplingTargetsCommand = async ( input: GetSamplingTargetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SamplingTargets"; + b.bp("/SamplingTargets"); let body: any; body = JSON.stringify( take(input, { SamplingStatisticsDocuments: (_) => se_SamplingStatisticsDocumentList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -616,11 +504,11 @@ export const se_GetServiceGraphCommand = async ( input: GetServiceGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ServiceGraph"; + b.bp("/ServiceGraph"); let body: any; body = JSON.stringify( take(input, { @@ -631,15 +519,8 @@ export const se_GetServiceGraphCommand = async ( StartTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -649,12 +530,11 @@ export const se_GetTimeSeriesServiceStatisticsCommand = async ( input: GetTimeSeriesServiceStatisticsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TimeSeriesServiceStatistics"; + b.bp("/TimeSeriesServiceStatistics"); let body: any; body = JSON.stringify( take(input, { @@ -668,15 +548,8 @@ export const se_GetTimeSeriesServiceStatisticsCommand = async ( StartTime: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -686,11 +559,11 @@ export const se_GetTraceGraphCommand = async ( input: GetTraceGraphCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TraceGraph"; + b.bp("/TraceGraph"); let body: any; body = JSON.stringify( take(input, { @@ -698,15 +571,8 @@ export const se_GetTraceGraphCommand = async ( TraceIds: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -716,11 +582,11 @@ export const se_GetTraceSummariesCommand = async ( input: GetTraceSummariesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TraceSummaries"; + b.bp("/TraceSummaries"); let body: any; body = JSON.stringify( take(input, { @@ -733,15 +599,8 @@ export const se_GetTraceSummariesCommand = async ( TimeRangeType: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -751,26 +610,19 @@ export const se_ListResourcePoliciesCommand = async ( input: ListResourcePoliciesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListResourcePolicies"; + b.bp("/ListResourcePolicies"); let body: any; body = JSON.stringify( take(input, { NextToken: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -780,11 +632,11 @@ export const se_ListTagsForResourceCommand = async ( input: ListTagsForResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource"; + b.bp("/ListTagsForResource"); let body: any; body = JSON.stringify( take(input, { @@ -792,15 +644,8 @@ export const se_ListTagsForResourceCommand = async ( ResourceARN: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -810,11 +655,11 @@ export const se_PutEncryptionConfigCommand = async ( input: PutEncryptionConfigCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutEncryptionConfig"; + b.bp("/PutEncryptionConfig"); let body: any; body = JSON.stringify( take(input, { @@ -822,15 +667,8 @@ export const se_PutEncryptionConfigCommand = async ( Type: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -840,11 +678,11 @@ export const se_PutResourcePolicyCommand = async ( input: PutResourcePolicyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutResourcePolicy"; + b.bp("/PutResourcePolicy"); let body: any; body = JSON.stringify( take(input, { @@ -854,15 +692,8 @@ export const se_PutResourcePolicyCommand = async ( PolicyRevisionId: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -872,11 +703,11 @@ export const se_PutTelemetryRecordsCommand = async ( input: PutTelemetryRecordsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TelemetryRecords"; + b.bp("/TelemetryRecords"); let body: any; body = JSON.stringify( take(input, { @@ -886,15 +717,8 @@ export const se_PutTelemetryRecordsCommand = async ( TelemetryRecords: (_) => se_TelemetryRecordList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -904,26 +728,19 @@ export const se_PutTraceSegmentsCommand = async ( input: PutTraceSegmentsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TraceSegments"; + b.bp("/TraceSegments"); let body: any; body = JSON.stringify( take(input, { TraceSegmentDocuments: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -933,11 +750,11 @@ export const se_TagResourceCommand = async ( input: TagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource"; + b.bp("/TagResource"); let body: any; body = JSON.stringify( take(input, { @@ -945,15 +762,8 @@ export const se_TagResourceCommand = async ( Tags: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -963,11 +773,11 @@ export const se_UntagResourceCommand = async ( input: UntagResourceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource"; + b.bp("/UntagResource"); let body: any; body = JSON.stringify( take(input, { @@ -975,15 +785,8 @@ export const se_UntagResourceCommand = async ( TagKeys: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -993,11 +796,11 @@ export const se_UpdateGroupCommand = async ( input: UpdateGroupCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateGroup"; + b.bp("/UpdateGroup"); let body: any; body = JSON.stringify( take(input, { @@ -1007,15 +810,8 @@ export const se_UpdateGroupCommand = async ( InsightsConfiguration: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1025,26 +821,19 @@ export const se_UpdateSamplingRuleCommand = async ( input: UpdateSamplingRuleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSamplingRule"; + b.bp("/UpdateSamplingRule"); let body: any; body = JSON.stringify( take(input, { SamplingRuleUpdate: (_) => se_SamplingRuleUpdate(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java index a6ad384f9f1e..dd3534205ec3 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEc2.java @@ -26,6 +26,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.HttpRpcProtocolGenerator; +import software.amazon.smithy.typescript.codegen.util.StringStore; import software.amazon.smithy.utils.SmithyInternalApi; /** @@ -109,6 +110,9 @@ public void generateSharedComponents(GenerationContext context) { writer.openBlock("if (output.statusCode == 404) {", "}", () -> writer.write("return 'NotFound';")); }); writer.write(""); + writer.write( + context.getStringStore().flushVariableDeclarationCode() + ); } @Override @@ -144,8 +148,15 @@ protected void serializeInputDocument( inputStructure.accept(new QueryMemberSerVisitor(context, "input", Format.DATE_TIME))); // Set the protocol required values. ServiceShape serviceShape = context.getService(); - writer.write("Action: $S,", operation.getId().getName(serviceShape)); - writer.write("Version: $S,", serviceShape.getVersion()); + StringStore stringStore = context.getStringStore(); + writer.write( + "[" + stringStore.var("Action") + "]: $L,", + stringStore.var(operation.getId().getName(serviceShape)) + ); + writer.write( + "[" + stringStore.var("Version") + "]: $L,", + stringStore.var(serviceShape.getVersion()) + ); }); } diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java index 389e2e8d455c..bac63299cdde 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java @@ -44,6 +44,7 @@ import software.amazon.smithy.typescript.codegen.integration.HttpProtocolGeneratorUtils; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.typescript.codegen.util.StringStore; import software.amazon.smithy.utils.IoUtils; import software.amazon.smithy.utils.SmithyInternalApi; @@ -247,8 +248,15 @@ static boolean generateUndefinedQueryInputBody(GenerationContext context, Operat writer.openBlock("const body = buildFormUrlencodedString({", "});", () -> { // Set the protocol required values. ServiceShape serviceShape = context.getService(); - writer.write("Action: $S,", operation.getId().getName(serviceShape)); - writer.write("Version: $S,", serviceShape.getVersion()); + StringStore stringStore = context.getStringStore(); + writer.write( + "[" + stringStore.var("Action") + "]: $L,", + stringStore.var(operation.getId().getName(serviceShape)) + ); + writer.write( + "[" + stringStore.var("Version") + "]: $L,", + stringStore.var(serviceShape.getVersion()) + ); }); return true; @@ -277,7 +285,7 @@ static boolean writeXmlNamespace(GenerationContext context, Shape shape, String if (prefix.isPresent()) { xmlns += ":" + prefix.get(); } - writer.write("$L.addAttribute($S, $S);", nodeName, xmlns, trait.getUri()); + writer.write("$L.a($S, $S);", nodeName, xmlns, trait.getUri()); return true; } diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java index ba163fd8852a..5632010ae91b 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsQuery.java @@ -30,6 +30,7 @@ import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.HttpRpcProtocolGenerator; +import software.amazon.smithy.typescript.codegen.util.StringStore; import software.amazon.smithy.utils.SmithyInternalApi; /** @@ -113,6 +114,9 @@ public void generateSharedComponents(GenerationContext context) { writer.openBlock("if (output.statusCode == 404) {", "}", () -> writer.write("return 'NotFound';")); }); writer.write(""); + writer.write( + context.getStringStore().flushVariableDeclarationCode() + ); } @Override @@ -148,8 +152,15 @@ protected void serializeInputDocument( inputStructure.accept(new QueryMemberSerVisitor(context, "input", Format.DATE_TIME))); // Set the protocol required values. ServiceShape serviceShape = context.getService(); - writer.write("Action: $S,", operation.getId().getName(serviceShape)); - writer.write("Version: $S,", serviceShape.getVersion()); + StringStore stringStore = context.getStringStore(); + writer.write( + "[" + stringStore.var("Action") + "]: $L,", + stringStore.var(operation.getId().getName(serviceShape)) + ); + writer.write( + "[" + stringStore.var("Version") + "]: $L,", + stringStore.var(serviceShape.getVersion()) + ); }); } diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java index ea92d3686578..66b58f1cd31a 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsRestXml.java @@ -96,7 +96,8 @@ protected void generateDocumentBodyShapeSerializers(GenerationContext context, S @Override protected void generateDocumentBodyShapeDeserializers(GenerationContext context, Set shapes) { - AwsProtocolUtils.generateDocumentBodyShapeSerde(context, shapes, new XmlShapeDeserVisitor(context)); + AwsProtocolUtils.generateDocumentBodyShapeSerde(context, shapes, + new XmlShapeDeserVisitor(context)); } @Override @@ -127,6 +128,9 @@ public void generateSharedComponents(GenerationContext context) { writer.openBlock("if (output.statusCode == 404) {", "}", () -> writer.write("return 'NotFound';")); }); writer.write(""); + writer.write( + context.getStringStore().flushVariableDeclarationCode() + ); } @Override @@ -196,7 +200,8 @@ private void serializeDocumentBody( ShapeId inputShapeId = documentBindings.get(0).getMember().getContainer(); // Start with the XML declaration. - writer.write("body = \"\";"); + String xmlDeclVar = context.getStringStore().var(""); + writer.write("body = $L;", xmlDeclVar); writer.addImport("XmlNode", "__XmlNode", "@aws-sdk/xml-builder"); @@ -205,13 +210,13 @@ private void serializeDocumentBody( String nodeName = inputShape.getTrait(XmlNameTrait.class) .map(XmlNameTrait::getValue) .orElse(inputShapeId.getName(serviceShape)); - writer.write("const bodyNode = new __XmlNode($S);", nodeName); + writer.write("const bn = new __XmlNode($L);", context.getStringStore().var(nodeName)); // Add @xmlNamespace value of the service to the root node, // fall back to one from the input shape. - boolean serviceXmlns = AwsProtocolUtils.writeXmlNamespace(context, serviceShape, "bodyNode"); + boolean serviceXmlns = AwsProtocolUtils.writeXmlNamespace(context, serviceShape, "bn"); if (!serviceXmlns) { - AwsProtocolUtils.writeXmlNamespace(context, inputShape, "bodyNode"); + AwsProtocolUtils.writeXmlNamespace(context, inputShape, "bn"); } XmlShapeSerVisitor shapeSerVisitor = new XmlShapeSerVisitor(context); @@ -220,18 +225,16 @@ private void serializeDocumentBody( MemberShape memberShape = binding.getMember(); // The name of the member to get from the input shape. String memberName = symbolProvider.toMemberName(memberShape); - String inputLocation = "input." + memberName; + String inputLocation = "input[" + context.getStringStore().var(memberName) + "]"; // Handle if the member is an idempotency token that should be auto-filled. AwsProtocolUtils.writeIdempotencyAutofill(context, memberShape, inputLocation); - writer.openBlock("if ($L !== undefined) {", "}", inputLocation, () -> { - shapeSerVisitor.serializeNamedMember(context, memberName, memberShape, () -> inputLocation); - }); + shapeSerVisitor.serializeNamedMember(context, memberName, memberShape, () -> inputLocation); } // Append the generated XML to the body. - writer.write("body += bodyNode.toString();"); + writer.write("body += bn.toString();"); } @Override @@ -286,7 +289,7 @@ private void serializePayload( member.hasTrait(XmlNameTrait.class) && !member.getTrait(XmlNameTrait.class).get().getValue().equals(targetName) ) { - writer.write("contents = contents.withName($S);", member.getTrait(XmlNameTrait.class).get().getValue()); + writer.write("contents = contents.n($S);", member.getTrait(XmlNameTrait.class).get().getValue()); } // XmlNode will serialize Structure and non-streaming Union payloads as XML documents. @@ -294,7 +297,8 @@ private void serializePayload( || (target instanceof UnionShape && !target.hasTrait(StreamingTrait.class)) ) { // Start with the XML declaration. - writer.write("body = \"\";"); + String xmlDeclVar = context.getStringStore().var(""); + writer.write("body = $L;", xmlDeclVar); // Add @xmlNamespace value of the service to the root node, // fall back to one from the payload target. @@ -363,7 +367,7 @@ private void deserializeDocumentBody( shapeVisitor.deserializeNamedMember(context, memberName, memberShape, "data", (dataSource, visitor) -> { TypeScriptWriter writer = context.getWriter(); - writer.write("contents.$L = $L;", memberName, target.accept(visitor)); + writer.write("contents[$L] = $L;", context.getStringStore().var(memberName), target.accept(visitor)); }); } } diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java index 3e669a135816..f2e2083ea36b 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java @@ -112,6 +112,9 @@ public void generateSharedComponents(GenerationContext context) { if (context.getService().hasTrait(AwsQueryCompatibleTrait.class)) { AwsProtocolUtils.generateJsonParseBodyWithQueryHeader(context); } + writer.write( + context.getStringStore().flushVariableDeclarationCode() + ); } @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java index 50034a49047f..815c421b1a2e 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/QueryShapeSerVisitor.java @@ -35,6 +35,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.typescript.codegen.util.StringStore; import software.amazon.smithy.utils.SmithyInternalApi; /** @@ -49,6 +50,7 @@ @SmithyInternalApi class QueryShapeSerVisitor extends DocumentShapeSerVisitor { private static final Format TIMESTAMP_FORMAT = Format.DATE_TIME; + private StringStore stringStore = getContext().getStringStore(); QueryShapeSerVisitor(GenerationContext context) { super(context); @@ -175,7 +177,7 @@ protected void serializeStructure(GenerationContext context, StructureShape shap // Serialize every member of the structure if present. shape.getAllMembers().forEach((memberName, memberShape) -> { - String inputLocation = "input." + memberName; + String inputLocation = "input[" + stringStore.var(memberName) + "]"; // Handle if the member is an idempotency token that should be auto-filled. AwsProtocolUtils.writeIdempotencyAutofill(context, memberShape, inputLocation); @@ -208,7 +210,10 @@ private void serializeNamedMember( if (inputVisitor.visitSuppliesEntryList(target)) { serializeNamedMemberEntryList(context, locationName, memberShape, target, inputVisitor, inputLocation); } else { - serializeNamedMemberValue(context, locationName, "input." + memberName, memberShape, target); + serializeNamedMemberValue( + context, locationName, + "input[" + stringStore.var(memberName) + "]", memberShape, target + ); } } @@ -227,7 +232,7 @@ private void serializeNamedMemberValue( TIMESTAMP_FORMAT, dataSource) : target.accept(getMemberVisitor(dataSource)); - writer.write("entries[$S] = $L;", locationName, valueProvider); + writer.write("entries[$L] = $L;", stringStore.var(locationName), valueProvider); } /** diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java index 4d674a233b4d..f0fbb8d552b5 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java @@ -113,6 +113,10 @@ public void generateSharedComponents(GenerationContext context) { writer.addUseImports(getApplicationProtocol().getResponseType()); writer.addImport("take", null, TypeScriptDependency.AWS_SMITHY_CLIENT); writer.write(IoUtils.readUtf8Resource(getClass(), "load-json-error-code-stub.ts")); + + writer.write( + context.getStringStore().flushVariableDeclarationCode() + ); } @Override diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java index b80f1792f26e..a55f1d443350 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlMemberSerVisitor.java @@ -34,6 +34,7 @@ import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.typescript.codegen.util.StringStore; import software.amazon.smithy.utils.SmithyInternalApi; /** @@ -52,10 +53,12 @@ @SmithyInternalApi final class XmlMemberSerVisitor extends DocumentMemberSerVisitor { private final GenerationContext context; + private final StringStore stringStore; XmlMemberSerVisitor(GenerationContext context, String dataSource, Format defaultTimestampFormat) { super(context, dataSource, defaultTimestampFormat); this.context = context; + this.stringStore = context.getStringStore(); } @Override @@ -121,7 +124,7 @@ String getAsXmlText(Shape shape, String dataSource) { TypeScriptWriter writer = getContext().getWriter(); writer.addImport("XmlNode", "__XmlNode", "@aws-sdk/xml-builder"); writer.addImport("XmlText", "__XmlText", "@aws-sdk/xml-builder"); - return "__XmlNode.of(\"" + nodeName + "\", " + dataSource + ")"; + return "__XmlNode.of(" + stringStore.var(nodeName) + ", " + dataSource + ")"; } @Override 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 6b0acc1553e9..fdc1d5893eeb 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 @@ -40,6 +40,7 @@ import software.amazon.smithy.typescript.codegen.integration.DocumentMemberDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeDeserVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.typescript.codegen.util.StringStore; import software.amazon.smithy.utils.SmithyInternalApi; /** @@ -57,11 +58,14 @@ */ @SmithyInternalApi final class XmlShapeDeserVisitor extends DocumentShapeDeserVisitor { + private StringStore stringStore; XmlShapeDeserVisitor(GenerationContext context) { super(context); + stringStore = context.getStringStore(); } + private DocumentMemberDeserVisitor getMemberVisitor(MemberShape memberShape, String dataSource) { return new XmlMemberDeserVisitor(getContext(), memberShape, dataSource, Format.DATE_TIME); } @@ -156,7 +160,7 @@ protected void deserializeStructure(GenerationContext context, StructureShape sh // Grab the target shape so we can use a member deserializer on it. Shape target = context.getModel().expectShape(memberShape.getTarget()); deserializeNamedMember(context, memberName, memberShape, "output", (dataSource, visitor) -> { - writer.write("contents.$L = $L;", memberName, target.accept(visitor)); + writer.write("contents[$L] = $L;", stringStore.var(memberName), target.accept(visitor)); }); }); @@ -204,7 +208,8 @@ void deserializeNamedMember( // Build a string based on the traits that represents the location. // Note we don't need to handle @xmlAttribute here because the parser flattens // attributes in to the main structure. - StringBuilder sourceBuilder = new StringBuilder(inputLocation).append("['").append(locationName).append("']"); + StringBuilder sourceBuilder = new StringBuilder(inputLocation) + .append("[").append(stringStore.var(locationName)).append("]"); // Track any locations we need to validate on our way to the final element. List locationsToValidate = new ArrayList<>(); @@ -214,7 +219,8 @@ void deserializeNamedMember( locationsToValidate.add(sourceBuilder.toString()); // Update the target element. String targetLocation = getUnnamedAggregateTargetLocation(model, target); - sourceBuilder.append("['").append(targetLocation).append("']"); + + sourceBuilder.append("[").append(stringStore.var(targetLocation)).append("]"); } boolean canMemberParsed = handleEmptyTags( @@ -227,7 +233,7 @@ void deserializeNamedMember( locationsToValidate.add(source); // Build a string of the elements to validate before deserializing. String validationStatement = locationsToValidate.stream() - .map(location -> location + " !== undefined") + .map(location -> location + " != null") .collect(Collectors.joining(" && ")); String ifOrElseIfStatement = canMemberParsed ? "else if" : "if"; writer.openBlock("$L ($L) {", "}", ifOrElseIfStatement, validationStatement, () -> { @@ -283,14 +289,14 @@ private boolean handleEmptyTags( if (target instanceof MapShape || target instanceof CollectionShape || target instanceof UnionShape) { writer.openBlock("if ($L.$L === \"\") {", "}", inputLocation, locationName, () -> { if (target instanceof MapShape) { - writer.write("contents.$L = {};", memberName); + writer.write("contents[$L] = {};", stringStore.var(memberName)); } else if (target instanceof CollectionShape) { if (isWithinUnion) { writer.openBlock("return {", "};", () -> { - writer.write("$L: [],", memberName); + writer.write("[$L]: [],", stringStore.var(memberName)); }); } else { - writer.write("contents.$L = [];", memberName); + writer.write("contents[$L] = [];", stringStore.var(memberName)); } } else if (target instanceof UnionShape) { writer.write("// Pass empty tags."); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java index c558ba744231..2912f2fcd998 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeSerVisitor.java @@ -34,10 +34,12 @@ import software.amazon.smithy.model.traits.XmlAttributeTrait; import software.amazon.smithy.model.traits.XmlFlattenedTrait; import software.amazon.smithy.model.traits.XmlNameTrait; +import software.amazon.smithy.model.traits.XmlNamespaceTrait; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; import software.amazon.smithy.typescript.codegen.integration.DocumentMemberSerVisitor; import software.amazon.smithy.typescript.codegen.integration.DocumentShapeSerVisitor; import software.amazon.smithy.typescript.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.typescript.codegen.util.StringStore; import software.amazon.smithy.utils.SmithyInternalApi; /** @@ -54,9 +56,11 @@ @SmithyInternalApi final class XmlShapeSerVisitor extends DocumentShapeSerVisitor { private static final Format TIMESTAMP_FORMAT = Format.DATE_TIME; + private final StringStore stringStore; XmlShapeSerVisitor(GenerationContext context) { super(context); + stringStore = context.getStringStore(); } private XmlMemberSerVisitor getMemberVisitor(String dataSource) { @@ -89,19 +93,19 @@ protected void serializeCollection(GenerationContext context, CollectionShape sh } // Dispatch to the input value provider for any additional handling. - writer.write("const node = $L;", target.accept(getMemberVisitor("entry"))); + writer.write("const n = $L;", target.accept(getMemberVisitor("entry"))); // Handle proper unwrapping of target nodes. if (serializationReturnsArray(target)) { - writer.openBlock("return node.reduce((acc: __XmlNode, workingNode: any) => {", "}", () -> { + writer.openBlock("return n.reduce((acc: __XmlNode, workingNode: any) => {", "}", () -> { // Add @xmlNamespace value of the target member. AwsProtocolUtils.writeXmlNamespace(context, memberShape, "workingNode"); - writer.write("return acc.addChildNode(workingNode);"); + writer.write("return acc.c(workingNode);"); }); - writer.write(", new __XmlNode($S));", locationName); + writer.write(", new __XmlNode($L));", stringStore.var(locationName)); } else { // Add @xmlNamespace value of the target member. - AwsProtocolUtils.writeXmlNamespace(context, memberShape, "node"); - writer.write("return node.withName($S);", locationName); + AwsProtocolUtils.writeXmlNamespace(context, memberShape, "n"); + writer.write("return n.n($L);", stringStore.var(locationName)); } }); } @@ -138,10 +142,10 @@ protected void serializeMap(GenerationContext context, MapShape shape) { String keyName = keyMember.getTrait(XmlNameTrait.class) .map(XmlNameTrait::getValue) .orElse("key"); - writer.write("const keyNode = $L.withName($S);", keyTarget.accept(getMemberVisitor("key")), keyName); + writer.write("const keyNode = $L.n($S);", keyTarget.accept(getMemberVisitor("key")), keyName); // Add @xmlNamespace value of the key member. AwsProtocolUtils.writeXmlNamespace(context, keyMember, "keyNode"); - writer.write("entryNode.addChildNode(keyNode);"); + writer.write("entryNode.c(keyNode);"); // Prepare the value's node. // Use the @xmlName trait if present on the member, otherwise use "value". @@ -154,15 +158,15 @@ protected void serializeMap(GenerationContext context, MapShape shape) { // Handle the sparse trait by short circuiting null values // from serialization, and not including them if encountered // when not sparse. - writer.write("var node;"); + writer.write("var n;"); if (shape.hasTrait(SparseTrait.ID)) { writer.openBlock("if (value === null) {", "} else {", () -> - writer.write("node = __XmlNode.of($S, null);", valueName)); + writer.write("n = __XmlNode.of($L, null);", stringStore.var(valueName))); writer.indent(); } // Dispatch to the input value provider for any additional handling. - writer.write("node = $L;", valueTarget.accept(getMemberVisitor("input[key as " + keyTypeName + "]!"))); + writer.write("n = $L;", valueTarget.accept(getMemberVisitor("input[key as " + keyTypeName + "]!"))); if (shape.hasTrait(SparseTrait.ID)) { writer.dedent(); @@ -171,18 +175,18 @@ protected void serializeMap(GenerationContext context, MapShape shape) { // Handle proper unwrapping of target nodes. if (serializationReturnsArray(valueTarget)) { - writer.openBlock("entryNode.addChildNode(", ");", () -> { - writer.openBlock("node.reduce((acc: __XmlNode, workingNode: any) => {", "}", () -> { + writer.openBlock("entryNode.c(", ");", () -> { + writer.openBlock("n.reduce((acc: __XmlNode, workingNode: any) => {", "}", () -> { // Add @xmlNamespace value of the value member. AwsProtocolUtils.writeXmlNamespace(context, valueMember, "workingNode"); - writer.write("return acc.addChildNode(workingNode);"); + writer.write("return acc.c(workingNode);"); }); - writer.write(", new __XmlNode($S))", valueName); + writer.write(", new __XmlNode($L))", stringStore.var(valueName)); }); } else { // Add @xmlNamespace value of the target member. - AwsProtocolUtils.writeXmlNamespace(context, valueMember, "node"); - writer.write("entryNode.addChildNode(node.withName($S));", valueName); + AwsProtocolUtils.writeXmlNamespace(context, valueMember, "n"); + writer.write("entryNode.c(n.n($L));", stringStore.var(valueName)); } writer.write("return entryNode;"); @@ -201,22 +205,20 @@ protected void serializeStructure(GenerationContext context, StructureShape shap .orElse(shape.getId().getName(serviceShape)); // Create the structure's node. - writer.write("const bodyNode = new __XmlNode($S);", nodeName); + writer.write("const bn = new __XmlNode($L);", stringStore.var(nodeName)); // Serialize every member of the structure if present. Map members = shape.getAllMembers(); members.forEach((memberName, memberShape) -> { - String inputLocation = "input." + memberName; + String inputLocation = "input[" + stringStore.var(memberName) + "]"; // Handle if the member is an idempotency token that should be auto-filled. AwsProtocolUtils.writeIdempotencyAutofill(context, memberShape, inputLocation); - writer.openBlock("if ($1L != null) {", "}", inputLocation, () -> { - serializeNamedMember(context, memberName, memberShape, () -> inputLocation); - }); + serializeNamedMember(context, memberName, memberShape, () -> inputLocation); }); - writer.write("return bodyNode;"); + writer.write("return bn;"); } void serializeNamedMember( @@ -234,14 +236,14 @@ void serializeNamedMember( // Handle @xmlAttribute simple members. if (memberShape.hasTrait(XmlAttributeTrait.class)) { - writer.write("bodyNode.addAttribute($S, $L);", locationName, inputLocation.get()); + writer.write("bn.a($S, $L);", locationName, inputLocation.get()); } else { // Grab the target shape so we can use a member serializer on it. Shape target = context.getModel().expectShape(memberShape.getTarget()); XmlMemberSerVisitor inputVisitor = getMemberVisitor(inputLocation.get()); // Collected members must be handled with flattening and renaming. if (serializationReturnsArray(target)) { - serializeNamedMemberFromArray(context, locationName, memberShape, target, inputVisitor); + serializeNamedMemberFromArray(context, memberName, locationName, memberShape, target, inputVisitor); } else { // Handle @timestampFormat on members not just the targeted shape. String valueProvider; @@ -257,17 +259,39 @@ void serializeNamedMember( valueProvider = target.accept(inputVisitor); } - // Standard members are added as children after updating their names. - writer.write("const node = $L.withName($S);", valueProvider, locationName); - // Add @xmlNamespace value of the target member. - AwsProtocolUtils.writeXmlNamespace(context, memberShape, "node"); - writer.write("bodyNode.addChildNode(node);"); + boolean hasNamespace = memberShape.getTrait(XmlNamespaceTrait.class).isPresent(); + boolean standardPattern = valueProvider.equals( + "__XmlNode.of(" + stringStore.var(locationName) + ", input[" + stringStore.var(locationName) + "])" + ); + + if (hasNamespace || !standardPattern) { + writer.openBlock("if (input[$L] != null) {", "}", + stringStore.var(memberName), + () -> { + if (hasNamespace) { + // Standard members are added as children after updating their names. + writer.write("const n = $L.n($L);", valueProvider, stringStore.var(locationName)); + // Add @xmlNamespace value of the target member. + AwsProtocolUtils.writeXmlNamespace(context, memberShape, "n"); + writer.write("bn.c(n);"); + } else { + writer.openBlock("bn.c(", ");", () -> { + writer.write("$L.n($L)", valueProvider, stringStore.var(locationName)); + }); + } + } + ); + } else { + // standard pattern. + writer.write("bn.cc(input, $L);", stringStore.var(locationName)); + } } } } private void serializeNamedMemberFromArray( GenerationContext context, + String memberName, String locationName, MemberShape memberShape, Shape target, @@ -278,29 +302,46 @@ private void serializeNamedMemberFromArray( // Handle @xmlFlattened for collections and maps. boolean isFlattened = memberShape.hasTrait(XmlFlattenedTrait.class); - // Get all the nodes that are going to be serialized. - writer.write("const nodes = $L;", target.accept(inputVisitor)); - - // Prepare a containing node to hold the nodes if not flattened. - if (!isFlattened) { - writer.write("const containerNode = new __XmlNode($S);", locationName); - // Add @xmlNamespace value of the target member. - AwsProtocolUtils.writeXmlNamespace(context, memberShape, "containerNode"); - } + boolean hasNamespace = memberShape.hasTrait(XmlNamespaceTrait.class); + boolean isStandardPattern = !hasNamespace; - // Add every node to the target node. - writer.openBlock("nodes.map((node: any) => {", "});", () -> { - // Adjust to add sub nodes to the right target based on flattening. - String targetNode = isFlattened ? "bodyNode" : "containerNode"; + if (isStandardPattern) { + String deserProvider = "() => " + target.accept(inputVisitor).replace(", context", "!, context"); if (isFlattened) { - writer.write("node = node.withName($S);", locationName); + writer.write("bn.l(input, \"$L\", \"$L\", $L)", memberName, locationName, deserProvider); + } else { + writer.write("bn.lc(input, \"$L\", \"$L\", $L)", memberName, locationName, deserProvider); } - writer.write("$L.addChildNode(node);", targetNode); - }); + } else { + writer.openBlock( + "if (input[$L] != null) {", "}", stringStore.var(memberName), + () -> { + // Get all the nodes that are going to be serialized. + writer.write("const ns = $L;", target.accept(inputVisitor)); + + // Prepare a containing node to hold the nodes if not flattened. + if (!isFlattened) { + writer.write("const containerNode = new __XmlNode($L);", stringStore.var(locationName)); + // Add @xmlNamespace value of the target member. + AwsProtocolUtils.writeXmlNamespace(context, memberShape, "containerNode"); + } - // For non-flattened collected nodes, we have to add the containing node. - if (!isFlattened) { - writer.write("bodyNode.addChildNode(containerNode);"); + // Add every node to the target node. + writer.openBlock("ns.map((n: any) => {", "});", () -> { + // Adjust to add sub nodes to the right target based on flattening. + String targetNode = isFlattened ? "bn" : "containerNode"; + if (isFlattened) { + writer.write("n = n.n($S);", locationName); + } + writer.write("$L.c(n);", targetNode); + }); + + // For non-flattened collected nodes, we have to add the containing node. + if (!isFlattened) { + writer.write("bn.c(containerNode);"); + } + } + ); } } @@ -321,7 +362,7 @@ protected void serializeUnion(GenerationContext context, UnionShape shape) { .orElse(shape.getId().getName(serviceShape)); // Create the union's node. - writer.write("const bodyNode = new __XmlNode($S);", nodeName); + writer.write("const bn = new __XmlNode($L);", stringStore.var(nodeName)); // Visit over the union type, then get the right serialization for the member. writer.openBlock("$L.visit(input, {", "});", shape.getId().getName(serviceShape), () -> { @@ -340,10 +381,10 @@ protected void serializeUnion(GenerationContext context, UnionShape shape) { }); // Set the node explicitly for potentially correct cases. - writer.write("bodyNode.addChildNode(new __XmlNode(name).addChildNode(value));"); + writer.write("bn.c(new __XmlNode(name).c(value));"); }); }); - writer.write("return bodyNode;"); + writer.write("return bn;"); } } diff --git a/packages/core/package.json b/packages/core/package.json index 3d18b9bde7fc..969e74a99b07 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -24,7 +24,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^1.1.0", + "@smithy/core": "^1.2.0", "@smithy/protocol-http": "^3.0.11", "@smithy/signature-v4": "^2.0.0", "@smithy/smithy-client": "^2.1.18", diff --git a/private/aws-echo-service/package.json b/private/aws-echo-service/package.json index 8a76cb3180b5..801188dc18e4 100644 --- a/private/aws-echo-service/package.json +++ b/private/aws-echo-service/package.json @@ -27,6 +27,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/private/aws-echo-service/src/protocols/Aws_restJson1.ts b/private/aws-echo-service/src/protocols/Aws_restJson1.ts index c958353dafd0..240fb1861d37 100644 --- a/private/aws-echo-service/src/protocols/Aws_restJson1.ts +++ b/private/aws-echo-service/src/protocols/Aws_restJson1.ts @@ -3,6 +3,7 @@ import { EchoCommandInput, EchoCommandOutput } from "../commands/EchoCommand"; import { LengthCommandInput, LengthCommandOutput } from "../commands/LengthCommand"; import { EchoServiceServiceException as __BaseException } from "../models/EchoServiceServiceException"; import { PalindromeException } from "../models/models_0"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; import { decorateServiceException as __decorateServiceException, @@ -28,46 +29,32 @@ import { v4 as generateIdempotencyToken } from "uuid"; * serializeAws_restJson1EchoCommand */ export const se_EchoCommand = async (input: EchoCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/echo"; + b.bp("/echo"); let body: any; body = JSON.stringify( take(input, { string: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** * serializeAws_restJson1LengthCommand */ export const se_LengthCommand = async (input: LengthCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/length/{string}"; - resolvedPath = __resolvedPath(resolvedPath, input, "string", () => input.string!, "{string}", false); + b.bp("/length/{string}"); + b.p("string", () => input.string!, "{string}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** diff --git a/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts b/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts index 79ee04664417..bb464c596d35 100644 --- a/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts +++ b/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts @@ -126,8 +126,8 @@ export const se_DatetimeOffsetsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DatetimeOffsets", - Version: "2020-01-08", + [_A]: _DO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -143,8 +143,8 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EmptyInputAndEmptyOutputInput(input, context), - Action: "EmptyInputAndEmptyOutput", - Version: "2020-01-08", + [_A]: _EIAEO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -158,8 +158,8 @@ export const se_EndpointOperationCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "EndpointOperation", - Version: "2020-01-08", + [_A]: _EO, + [_V]: _, }); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -182,8 +182,8 @@ export const se_EndpointWithHostLabelOperationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_HostLabelInput(input, context), - Action: "EndpointWithHostLabelOperation", - Version: "2020-01-08", + [_A]: _EWHLO, + [_V]: _, }); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -208,8 +208,8 @@ export const se_FractionalSecondsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "FractionalSeconds", - Version: "2020-01-08", + [_A]: _FS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -223,8 +223,8 @@ export const se_GreetingWithErrorsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GreetingWithErrors", - Version: "2020-01-08", + [_A]: _GWE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -238,8 +238,8 @@ export const se_HostWithPathOperationCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "HostWithPathOperation", - Version: "2020-01-08", + [_A]: _HWPO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -253,8 +253,8 @@ export const se_IgnoresWrappingXmlNameCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "IgnoresWrappingXmlName", - Version: "2020-01-08", + [_A]: _IWXN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -270,8 +270,8 @@ export const se_NestedStructuresCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_NestedStructuresInput(input, context), - Action: "NestedStructures", - Version: "2020-01-08", + [_A]: _NS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -285,8 +285,8 @@ export const se_NoInputAndOutputCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "NoInputAndOutput", - Version: "2020-01-08", + [_A]: _NIAO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -302,8 +302,8 @@ export const se_PutWithContentEncodingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutWithContentEncodingInput(input, context), - Action: "PutWithContentEncoding", - Version: "2020-01-08", + [_A]: _PWCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -319,8 +319,8 @@ export const se_QueryIdempotencyTokenAutoFillCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_QueryIdempotencyTokenAutoFillInput(input, context), - Action: "QueryIdempotencyTokenAutoFill", - Version: "2020-01-08", + [_A]: _QITAF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -336,8 +336,8 @@ export const se_QueryListsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_QueryListsInput(input, context), - Action: "QueryLists", - Version: "2020-01-08", + [_A]: _QL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -353,8 +353,8 @@ export const se_QueryTimestampsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_QueryTimestampsInput(input, context), - Action: "QueryTimestamps", - Version: "2020-01-08", + [_A]: _QT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -368,8 +368,8 @@ export const se_RecursiveXmlShapesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "RecursiveXmlShapes", - Version: "2020-01-08", + [_A]: _RXS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -385,8 +385,8 @@ export const se_SimpleInputParamsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SimpleInputParamsInput(input, context), - Action: "SimpleInputParams", - Version: "2020-01-08", + [_A]: _SIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -400,8 +400,8 @@ export const se_SimpleScalarXmlPropertiesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "SimpleScalarXmlProperties", - Version: "2020-01-08", + [_A]: _SSXP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -415,8 +415,8 @@ export const se_XmlBlobsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlBlobs", - Version: "2020-01-08", + [_A]: _XB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -430,8 +430,8 @@ export const se_XmlEmptyBlobsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlEmptyBlobs", - Version: "2020-01-08", + [_A]: _XEB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -445,8 +445,8 @@ export const se_XmlEmptyListsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlEmptyLists", - Version: "2020-01-08", + [_A]: _XEL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -460,8 +460,8 @@ export const se_XmlEnumsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlEnums", - Version: "2020-01-08", + [_A]: _XE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -475,8 +475,8 @@ export const se_XmlIntEnumsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlIntEnums", - Version: "2020-01-08", + [_A]: _XIE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -490,8 +490,8 @@ export const se_XmlListsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlLists", - Version: "2020-01-08", + [_A]: _XL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -505,8 +505,8 @@ export const se_XmlNamespacesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlNamespaces", - Version: "2020-01-08", + [_A]: _XN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -520,8 +520,8 @@ export const se_XmlTimestampsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlTimestamps", - Version: "2020-01-08", + [_A]: _XT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -1547,8 +1547,8 @@ const se_EmptyInputAndEmptyOutputInput = (input: EmptyInputAndEmptyOutputInput, */ const se_HostLabelInput = (input: HostLabelInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.label != null) { - entries["Label"] = input.label; + if (input[_l] != null) { + entries[_L] = input[_l]; } return entries; }; @@ -1574,8 +1574,8 @@ const se_ListWithXmlName = (input: string[], context: __SerdeContext): any => { */ const se_NestedStructuresInput = (input: NestedStructuresInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Nested != null) { - const memberEntries = se_StructArg(input.Nested, context); + if (input[_N] != null) { + const memberEntries = se_StructArg(input[_N], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Nested.${key}`; entries[loc] = value; @@ -1589,9 +1589,9 @@ const se_NestedStructuresInput = (input: NestedStructuresInput, context: __Serde */ const se_NestedStructWithList = (input: NestedStructWithList, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListArg != null) { - const memberEntries = se_StringList(input.ListArg, context); - if (input.ListArg?.length === 0) { + if (input[_LA] != null) { + const memberEntries = se_StringList(input[_LA], context); + if (input[_LA]?.length === 0) { entries.ListArg = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -1607,11 +1607,11 @@ const se_NestedStructWithList = (input: NestedStructWithList, context: __SerdeCo */ const se_PutWithContentEncodingInput = (input: PutWithContentEncodingInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.encoding != null) { - entries["Encoding"] = input.encoding; + if (input[_e] != null) { + entries[_E] = input[_e]; } - if (input.data != null) { - entries["Data"] = input.data; + if (input[_d] != null) { + entries[_D] = input[_d]; } return entries; }; @@ -1624,11 +1624,11 @@ const se_QueryIdempotencyTokenAutoFillInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.token === undefined) { - input.token = generateIdempotencyToken(); + if (input[_t] === undefined) { + input[_t] = generateIdempotencyToken(); } - if (input.token != null) { - entries["Token"] = input.token; + if (input[_t] != null) { + entries[_T] = input[_t]; } return entries; }; @@ -1638,9 +1638,9 @@ const se_QueryIdempotencyTokenAutoFillInput = ( */ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListArg != null) { - const memberEntries = se_StringList(input.ListArg, context); - if (input.ListArg?.length === 0) { + if (input[_LA] != null) { + const memberEntries = se_StringList(input[_LA], context); + if (input[_LA]?.length === 0) { entries.ListArg = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -1648,9 +1648,9 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.ComplexListArg != null) { - const memberEntries = se_GreetingList(input.ComplexListArg, context); - if (input.ComplexListArg?.length === 0) { + if (input[_CLA] != null) { + const memberEntries = se_GreetingList(input[_CLA], context); + if (input[_CLA]?.length === 0) { entries.ComplexListArg = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -1658,9 +1658,9 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.ListArgWithXmlNameMember != null) { - const memberEntries = se_ListWithXmlName(input.ListArgWithXmlNameMember, context); - if (input.ListArgWithXmlNameMember?.length === 0) { + if (input[_LAWXNM] != null) { + const memberEntries = se_ListWithXmlName(input[_LAWXNM], context); + if (input[_LAWXNM]?.length === 0) { entries.ListArgWithXmlNameMember = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -1668,9 +1668,9 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.ListArgWithXmlName != null) { - const memberEntries = se_ListWithXmlName(input.ListArgWithXmlName, context); - if (input.ListArgWithXmlName?.length === 0) { + if (input[_LAWXN] != null) { + const memberEntries = se_ListWithXmlName(input[_LAWXN], context); + if (input[_LAWXN]?.length === 0) { entries.Hi = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -1678,8 +1678,8 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.NestedWithList != null) { - const memberEntries = se_NestedStructWithList(input.NestedWithList, context); + if (input[_NWL] != null) { + const memberEntries = se_NestedStructWithList(input[_NWL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NestedWithList.${key}`; entries[loc] = value; @@ -1693,14 +1693,14 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an */ const se_QueryTimestampsInput = (input: QueryTimestampsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.normalFormat != null) { - entries["NormalFormat"] = input.normalFormat.toISOString().split(".")[0] + "Z"; + if (input[_nF] != null) { + entries[_NF] = input[_nF].toISOString().split(".")[0] + "Z"; } - if (input.epochMember != null) { - entries["EpochMember"] = Math.round(input.epochMember.getTime() / 1000); + if (input[_eM] != null) { + entries[_EM] = Math.round(input[_eM].getTime() / 1000); } - if (input.epochTarget != null) { - entries["EpochTarget"] = Math.round(input.epochTarget.getTime() / 1000); + if (input[_eT] != null) { + entries[_ET] = Math.round(input[_eT].getTime() / 1000); } return entries; }; @@ -1710,38 +1710,38 @@ const se_QueryTimestampsInput = (input: QueryTimestampsInput, context: __SerdeCo */ const se_SimpleInputParamsInput = (input: SimpleInputParamsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Foo != null) { - entries["Foo"] = input.Foo; + if (input[_F] != null) { + entries[_F] = input[_F]; } - if (input.Bar != null) { - entries["Bar"] = input.Bar; + if (input[_B] != null) { + entries[_B] = input[_B]; } - if (input.Baz != null) { - entries["Baz"] = input.Baz; + if (input[_Ba] != null) { + entries[_Ba] = input[_Ba]; } - if (input.Bam != null) { - entries["Bam"] = input.Bam; + if (input[_Bam] != null) { + entries[_Bam] = input[_Bam]; } - if (input.FloatValue != null) { - entries["FloatValue"] = __serializeFloat(input.FloatValue); + if (input[_FV] != null) { + entries[_FV] = __serializeFloat(input[_FV]); } - if (input.Boo != null) { - entries["Boo"] = __serializeFloat(input.Boo); + if (input[_Bo] != null) { + entries[_Bo] = __serializeFloat(input[_Bo]); } - if (input.Qux != null) { - entries["Qux"] = context.base64Encoder(input.Qux); + if (input[_Q] != null) { + entries[_Q] = context.base64Encoder(input[_Q]); } - if (input.FooEnum != null) { - entries["FooEnum"] = input.FooEnum; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.HasQueryName != null) { - entries["A"] = input.HasQueryName; + if (input[_HQN] != null) { + entries[_A_] = input[_HQN]; } - if (input.HasQueryAndXmlName != null) { - entries["B"] = input.HasQueryAndXmlName; + if (input[_HQAXN] != null) { + entries[_B_] = input[_HQAXN]; } - if (input.UsesXmlName != null) { - entries["C"] = input.UsesXmlName; + if (input[_UXN] != null) { + entries[_C] = input[_UXN]; } return entries; }; @@ -1751,14 +1751,14 @@ const se_SimpleInputParamsInput = (input: SimpleInputParamsInput, context: __Ser */ const se_StructArg = (input: StructArg, context: __SerdeContext): any => { const entries: any = {}; - if (input.StringArg != null) { - entries["StringArg"] = input.StringArg; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.OtherArg != null) { - entries["OtherArg"] = input.OtherArg; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.RecursiveArg != null) { - const memberEntries = se_StructArg(input.RecursiveArg, context); + if (input[_RA] != null) { + const memberEntries = se_StructArg(input[_RA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RecursiveArg.${key}`; entries[loc] = value; @@ -1791,8 +1791,8 @@ const se_GreetingList = (input: GreetingStruct[], context: __SerdeContext): any */ const se_GreetingStruct = (input: GreetingStruct, context: __SerdeContext): any => { const entries: any = {}; - if (input.hi != null) { - entries["Hi"] = input.hi; + if (input[_h] != null) { + entries[_H] = input[_h]; } return entries; }; @@ -1818,11 +1818,11 @@ const se_StringList = (input: string[], context: __SerdeContext): any => { */ const de_ComplexError = (output: any, context: __SerdeContext): ComplexError => { const contents: any = {}; - if (output["TopLevel"] !== undefined) { - contents.TopLevel = __expectString(output["TopLevel"]); + if (output[_TL] != null) { + contents[_TL] = __expectString(output[_TL]); } - if (output["Nested"] !== undefined) { - contents.Nested = de_ComplexNestedErrorData(output["Nested"], context); + if (output[_N] != null) { + contents[_N] = de_ComplexNestedErrorData(output[_N], context); } return contents; }; @@ -1832,8 +1832,8 @@ const de_ComplexError = (output: any, context: __SerdeContext): ComplexError => */ const de_ComplexNestedErrorData = (output: any, context: __SerdeContext): ComplexNestedErrorData => { const contents: any = {}; - if (output["Foo"] !== undefined) { - contents.Foo = __expectString(output["Foo"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } return contents; }; @@ -1843,8 +1843,8 @@ const de_ComplexNestedErrorData = (output: any, context: __SerdeContext): Comple */ const de_DatetimeOffsetsOutput = (output: any, context: __SerdeContext): DatetimeOffsetsOutput => { const contents: any = {}; - if (output["datetime"] !== undefined) { - contents.datetime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["datetime"])); + if (output[_da] != null) { + contents[_da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_da])); } return contents; }; @@ -1862,8 +1862,8 @@ const de_EmptyInputAndEmptyOutputOutput = (output: any, context: __SerdeContext) */ const de_FractionalSecondsOutput = (output: any, context: __SerdeContext): FractionalSecondsOutput => { const contents: any = {}; - if (output["datetime"] !== undefined) { - contents.datetime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["datetime"])); + if (output[_da] != null) { + contents[_da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_da])); } return contents; }; @@ -1873,8 +1873,8 @@ const de_FractionalSecondsOutput = (output: any, context: __SerdeContext): Fract */ const de_GreetingWithErrorsOutput = (output: any, context: __SerdeContext): GreetingWithErrorsOutput => { const contents: any = {}; - if (output["greeting"] !== undefined) { - contents.greeting = __expectString(output["greeting"]); + if (output[_g] != null) { + contents[_g] = __expectString(output[_g]); } return contents; }; @@ -1884,8 +1884,8 @@ const de_GreetingWithErrorsOutput = (output: any, context: __SerdeContext): Gree */ const de_IgnoresWrappingXmlNameOutput = (output: any, context: __SerdeContext): IgnoresWrappingXmlNameOutput => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } return contents; }; @@ -1895,8 +1895,8 @@ const de_IgnoresWrappingXmlNameOutput = (output: any, context: __SerdeContext): */ const de_InvalidGreeting = (output: any, context: __SerdeContext): InvalidGreeting => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -1936,8 +1936,8 @@ const de_NoInputAndOutputOutput = (output: any, context: __SerdeContext): NoInpu */ const de_RecursiveXmlShapesOutput = (output: any, context: __SerdeContext): RecursiveXmlShapesOutput => { const contents: any = {}; - if (output["nested"] !== undefined) { - contents.nested = de_RecursiveXmlShapesOutputNested1(output["nested"], context); + if (output[_n] != null) { + contents[_n] = de_RecursiveXmlShapesOutputNested1(output[_n], context); } return contents; }; @@ -1947,11 +1947,11 @@ const de_RecursiveXmlShapesOutput = (output: any, context: __SerdeContext): Recu */ const de_RecursiveXmlShapesOutputNested1 = (output: any, context: __SerdeContext): RecursiveXmlShapesOutputNested1 => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } - if (output["nested"] !== undefined) { - contents.nested = de_RecursiveXmlShapesOutputNested2(output["nested"], context); + if (output[_n] != null) { + contents[_n] = de_RecursiveXmlShapesOutputNested2(output[_n], context); } return contents; }; @@ -1961,11 +1961,11 @@ const de_RecursiveXmlShapesOutputNested1 = (output: any, context: __SerdeContext */ const de_RecursiveXmlShapesOutputNested2 = (output: any, context: __SerdeContext): RecursiveXmlShapesOutputNested2 => { const contents: any = {}; - if (output["bar"] !== undefined) { - contents.bar = __expectString(output["bar"]); + if (output[_b] != null) { + contents[_b] = __expectString(output[_b]); } - if (output["recursiveMember"] !== undefined) { - contents.recursiveMember = de_RecursiveXmlShapesOutputNested1(output["recursiveMember"], context); + if (output[_rM] != null) { + contents[_rM] = de_RecursiveXmlShapesOutputNested1(output[_rM], context); } return contents; }; @@ -1986,35 +1986,35 @@ const de_RenamedListMembers = (output: any, context: __SerdeContext): string[] = */ const de_SimpleScalarXmlPropertiesOutput = (output: any, context: __SerdeContext): SimpleScalarXmlPropertiesOutput => { const contents: any = {}; - if (output["stringValue"] !== undefined) { - contents.stringValue = __expectString(output["stringValue"]); + if (output[_sV] != null) { + contents[_sV] = __expectString(output[_sV]); } - if (output["emptyStringValue"] !== undefined) { - contents.emptyStringValue = __expectString(output["emptyStringValue"]); + if (output[_eSV] != null) { + contents[_eSV] = __expectString(output[_eSV]); } - if (output["trueBooleanValue"] !== undefined) { - contents.trueBooleanValue = __parseBoolean(output["trueBooleanValue"]); + if (output[_tBV] != null) { + contents[_tBV] = __parseBoolean(output[_tBV]); } - if (output["falseBooleanValue"] !== undefined) { - contents.falseBooleanValue = __parseBoolean(output["falseBooleanValue"]); + if (output[_fBV] != null) { + contents[_fBV] = __parseBoolean(output[_fBV]); } - if (output["byteValue"] !== undefined) { - contents.byteValue = __strictParseByte(output["byteValue"]) as number; + if (output[_bV] != null) { + contents[_bV] = __strictParseByte(output[_bV]) as number; } - if (output["shortValue"] !== undefined) { - contents.shortValue = __strictParseShort(output["shortValue"]) as number; + if (output[_sVh] != null) { + contents[_sVh] = __strictParseShort(output[_sVh]) as number; } - if (output["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt32(output["integerValue"]) as number; + if (output[_iV] != null) { + contents[_iV] = __strictParseInt32(output[_iV]) as number; } - if (output["longValue"] !== undefined) { - contents.longValue = __strictParseLong(output["longValue"]) as number; + if (output[_lV] != null) { + contents[_lV] = __strictParseLong(output[_lV]) as number; } - if (output["floatValue"] !== undefined) { - contents.floatValue = __strictParseFloat(output["floatValue"]) as number; + if (output[_fV] != null) { + contents[_fV] = __strictParseFloat(output[_fV]) as number; } - if (output["DoubleDribble"] !== undefined) { - contents.doubleValue = __strictParseFloat(output["DoubleDribble"]) as number; + if (output[_DD] != null) { + contents[_dV] = __strictParseFloat(output[_DD]) as number; } return contents; }; @@ -2035,11 +2035,11 @@ const de_StructureList = (output: any, context: __SerdeContext): StructureListMe */ const de_StructureListMember = (output: any, context: __SerdeContext): StructureListMember => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.a = __expectString(output["value"]); + if (output[_v] != null) { + contents[_a] = __expectString(output[_v]); } - if (output["other"] !== undefined) { - contents.b = __expectString(output["other"]); + if (output[_o] != null) { + contents[_b_] = __expectString(output[_o]); } return contents; }; @@ -2049,8 +2049,8 @@ const de_StructureListMember = (output: any, context: __SerdeContext): Structure */ const de_XmlBlobsOutput = (output: any, context: __SerdeContext): XmlBlobsOutput => { const contents: any = {}; - if (output["data"] !== undefined) { - contents.data = context.base64Decoder(output["data"]); + if (output[_d] != null) { + contents[_d] = context.base64Decoder(output[_d]); } return contents; }; @@ -2060,29 +2060,29 @@ const de_XmlBlobsOutput = (output: any, context: __SerdeContext): XmlBlobsOutput */ const de_XmlEnumsOutput = (output: any, context: __SerdeContext): XmlEnumsOutput => { const contents: any = {}; - if (output["fooEnum1"] !== undefined) { - contents.fooEnum1 = __expectString(output["fooEnum1"]); + if (output[_fE] != null) { + contents[_fE] = __expectString(output[_fE]); } - if (output["fooEnum2"] !== undefined) { - contents.fooEnum2 = __expectString(output["fooEnum2"]); + if (output[_fEo] != null) { + contents[_fEo] = __expectString(output[_fEo]); } - if (output["fooEnum3"] !== undefined) { - contents.fooEnum3 = __expectString(output["fooEnum3"]); + if (output[_fEoo] != null) { + contents[_fEoo] = __expectString(output[_fEoo]); } if (output.fooEnumList === "") { - contents.fooEnumList = []; - } else if (output["fooEnumList"] !== undefined && output["fooEnumList"]["member"] !== undefined) { - contents.fooEnumList = de_FooEnumList(__getArrayIfSingleItem(output["fooEnumList"]["member"]), context); + contents[_fEL] = []; + } else if (output[_fEL] != null && output[_fEL][_m] != null) { + contents[_fEL] = de_FooEnumList(__getArrayIfSingleItem(output[_fEL][_m]), context); } if (output.fooEnumSet === "") { - contents.fooEnumSet = []; - } else if (output["fooEnumSet"] !== undefined && output["fooEnumSet"]["member"] !== undefined) { - contents.fooEnumSet = de_FooEnumSet(__getArrayIfSingleItem(output["fooEnumSet"]["member"]), context); + contents[_fES] = []; + } else if (output[_fES] != null && output[_fES][_m] != null) { + contents[_fES] = de_FooEnumSet(__getArrayIfSingleItem(output[_fES][_m]), context); } if (output.fooEnumMap === "") { - contents.fooEnumMap = {}; - } else if (output["fooEnumMap"] !== undefined && output["fooEnumMap"]["entry"] !== undefined) { - contents.fooEnumMap = de_FooEnumMap(__getArrayIfSingleItem(output["fooEnumMap"]["entry"]), context); + contents[_fEM] = {}; + } else if (output[_fEM] != null && output[_fEM][_en] != null) { + contents[_fEM] = de_FooEnumMap(__getArrayIfSingleItem(output[_fEM][_en]), context); } return contents; }; @@ -2092,29 +2092,29 @@ const de_XmlEnumsOutput = (output: any, context: __SerdeContext): XmlEnumsOutput */ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnumsOutput => { const contents: any = {}; - if (output["intEnum1"] !== undefined) { - contents.intEnum1 = __strictParseInt32(output["intEnum1"]) as number; + if (output[_iE] != null) { + contents[_iE] = __strictParseInt32(output[_iE]) as number; } - if (output["intEnum2"] !== undefined) { - contents.intEnum2 = __strictParseInt32(output["intEnum2"]) as number; + if (output[_iEn] != null) { + contents[_iEn] = __strictParseInt32(output[_iEn]) as number; } - if (output["intEnum3"] !== undefined) { - contents.intEnum3 = __strictParseInt32(output["intEnum3"]) as number; + if (output[_iEnt] != null) { + contents[_iEnt] = __strictParseInt32(output[_iEnt]) as number; } if (output.intEnumList === "") { - contents.intEnumList = []; - } else if (output["intEnumList"] !== undefined && output["intEnumList"]["member"] !== undefined) { - contents.intEnumList = de_IntegerEnumList(__getArrayIfSingleItem(output["intEnumList"]["member"]), context); + contents[_iEL] = []; + } else if (output[_iEL] != null && output[_iEL][_m] != null) { + contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } if (output.intEnumSet === "") { - contents.intEnumSet = []; - } else if (output["intEnumSet"] !== undefined && output["intEnumSet"]["member"] !== undefined) { - contents.intEnumSet = de_IntegerEnumSet(__getArrayIfSingleItem(output["intEnumSet"]["member"]), context); + contents[_iES] = []; + } else if (output[_iES] != null && output[_iES][_m] != null) { + contents[_iES] = de_IntegerEnumSet(__getArrayIfSingleItem(output[_iES][_m]), context); } if (output.intEnumMap === "") { - contents.intEnumMap = {}; - } else if (output["intEnumMap"] !== undefined && output["intEnumMap"]["entry"] !== undefined) { - contents.intEnumMap = de_IntegerEnumMap(__getArrayIfSingleItem(output["intEnumMap"]["entry"]), context); + contents[_iEM] = {}; + } else if (output[_iEM] != null && output[_iEM][_en] != null) { + contents[_iEM] = de_IntegerEnumMap(__getArrayIfSingleItem(output[_iEM][_en]), context); } return contents; }; @@ -2125,83 +2125,74 @@ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnums const de_XmlListsOutput = (output: any, context: __SerdeContext): XmlListsOutput => { const contents: any = {}; if (output.stringList === "") { - contents.stringList = []; - } else if (output["stringList"] !== undefined && output["stringList"]["member"] !== undefined) { - contents.stringList = de_StringList(__getArrayIfSingleItem(output["stringList"]["member"]), context); + contents[_sL] = []; + } else if (output[_sL] != null && output[_sL][_m] != null) { + contents[_sL] = de_StringList(__getArrayIfSingleItem(output[_sL][_m]), context); } if (output.stringSet === "") { - contents.stringSet = []; - } else if (output["stringSet"] !== undefined && output["stringSet"]["member"] !== undefined) { - contents.stringSet = de_StringSet(__getArrayIfSingleItem(output["stringSet"]["member"]), context); + contents[_sS] = []; + } else if (output[_sS] != null && output[_sS][_m] != null) { + contents[_sS] = de_StringSet(__getArrayIfSingleItem(output[_sS][_m]), context); } if (output.integerList === "") { - contents.integerList = []; - } else if (output["integerList"] !== undefined && output["integerList"]["member"] !== undefined) { - contents.integerList = de_IntegerList(__getArrayIfSingleItem(output["integerList"]["member"]), context); + contents[_iL] = []; + } else if (output[_iL] != null && output[_iL][_m] != null) { + contents[_iL] = de_IntegerList(__getArrayIfSingleItem(output[_iL][_m]), context); } if (output.booleanList === "") { - contents.booleanList = []; - } else if (output["booleanList"] !== undefined && output["booleanList"]["member"] !== undefined) { - contents.booleanList = de_BooleanList(__getArrayIfSingleItem(output["booleanList"]["member"]), context); + contents[_bL] = []; + } else if (output[_bL] != null && output[_bL][_m] != null) { + contents[_bL] = de_BooleanList(__getArrayIfSingleItem(output[_bL][_m]), context); } if (output.timestampList === "") { - contents.timestampList = []; - } else if (output["timestampList"] !== undefined && output["timestampList"]["member"] !== undefined) { - contents.timestampList = de_TimestampList(__getArrayIfSingleItem(output["timestampList"]["member"]), context); + contents[_tL] = []; + } else if (output[_tL] != null && output[_tL][_m] != null) { + contents[_tL] = de_TimestampList(__getArrayIfSingleItem(output[_tL][_m]), context); } if (output.enumList === "") { - contents.enumList = []; - } else if (output["enumList"] !== undefined && output["enumList"]["member"] !== undefined) { - contents.enumList = de_FooEnumList(__getArrayIfSingleItem(output["enumList"]["member"]), context); + contents[_eL] = []; + } else if (output[_eL] != null && output[_eL][_m] != null) { + contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(output[_eL][_m]), context); } if (output.intEnumList === "") { - contents.intEnumList = []; - } else if (output["intEnumList"] !== undefined && output["intEnumList"]["member"] !== undefined) { - contents.intEnumList = de_IntegerEnumList(__getArrayIfSingleItem(output["intEnumList"]["member"]), context); + contents[_iEL] = []; + } else if (output[_iEL] != null && output[_iEL][_m] != null) { + contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } if (output.nestedStringList === "") { - contents.nestedStringList = []; - } else if (output["nestedStringList"] !== undefined && output["nestedStringList"]["member"] !== undefined) { - contents.nestedStringList = de_NestedStringList( - __getArrayIfSingleItem(output["nestedStringList"]["member"]), - context - ); + contents[_nSL] = []; + } else if (output[_nSL] != null && output[_nSL][_m] != null) { + contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(output[_nSL][_m]), context); } if (output.renamed === "") { - contents.renamedListMembers = []; - } else if (output["renamed"] !== undefined && output["renamed"]["item"] !== undefined) { - contents.renamedListMembers = de_RenamedListMembers(__getArrayIfSingleItem(output["renamed"]["item"]), context); + contents[_rLM] = []; + } else if (output[_r] != null && output[_r][_i] != null) { + contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(output[_r][_i]), context); } if (output.flattenedList === "") { - contents.flattenedList = []; - } else if (output["flattenedList"] !== undefined) { - contents.flattenedList = de_RenamedListMembers(__getArrayIfSingleItem(output["flattenedList"]), context); + contents[_fL] = []; + } else if (output[_fL] != null) { + contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(output[_fL]), context); } if (output.customName === "") { - contents.flattenedList2 = []; - } else if (output["customName"] !== undefined) { - contents.flattenedList2 = de_RenamedListMembers(__getArrayIfSingleItem(output["customName"]), context); + contents[_fLl] = []; + } else if (output[_cN] != null) { + contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(output[_cN]), context); } if (output.flattenedListWithMemberNamespace === "") { - contents.flattenedListWithMemberNamespace = []; - } else if (output["flattenedListWithMemberNamespace"] !== undefined) { - contents.flattenedListWithMemberNamespace = de_ListWithMemberNamespace( - __getArrayIfSingleItem(output["flattenedListWithMemberNamespace"]), - context - ); + contents[_fLWMN] = []; + } else if (output[_fLWMN] != null) { + contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(output[_fLWMN]), context); } if (output.flattenedListWithNamespace === "") { - contents.flattenedListWithNamespace = []; - } else if (output["flattenedListWithNamespace"] !== undefined) { - contents.flattenedListWithNamespace = de_ListWithNamespace( - __getArrayIfSingleItem(output["flattenedListWithNamespace"]), - context - ); + contents[_fLWN] = []; + } else if (output[_fLWN] != null) { + contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(output[_fLWN]), context); } if (output.myStructureList === "") { - contents.structureList = []; - } else if (output["myStructureList"] !== undefined && output["myStructureList"]["item"] !== undefined) { - contents.structureList = de_StructureList(__getArrayIfSingleItem(output["myStructureList"]["item"]), context); + contents[_sLt] = []; + } else if (output[_mSL] != null && output[_mSL][_i] != null) { + contents[_sLt] = de_StructureList(__getArrayIfSingleItem(output[_mSL][_i]), context); } return contents; }; @@ -2222,13 +2213,13 @@ const de_XmlNamespacedList = (output: any, context: __SerdeContext): string[] => */ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespaceNested => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } if (output.values === "") { - contents.values = []; - } else if (output["values"] !== undefined && output["values"]["member"] !== undefined) { - contents.values = de_XmlNamespacedList(__getArrayIfSingleItem(output["values"]["member"]), context); + contents[_va] = []; + } else if (output[_va] != null && output[_va][_m] != null) { + contents[_va] = de_XmlNamespacedList(__getArrayIfSingleItem(output[_va][_m]), context); } return contents; }; @@ -2238,8 +2229,8 @@ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespa */ const de_XmlNamespacesOutput = (output: any, context: __SerdeContext): XmlNamespacesOutput => { const contents: any = {}; - if (output["nested"] !== undefined) { - contents.nested = de_XmlNamespaceNested(output["nested"], context); + if (output[_n] != null) { + contents[_n] = de_XmlNamespaceNested(output[_n], context); } return contents; }; @@ -2249,26 +2240,26 @@ const de_XmlNamespacesOutput = (output: any, context: __SerdeContext): XmlNamesp */ const de_XmlTimestampsOutput = (output: any, context: __SerdeContext): XmlTimestampsOutput => { const contents: any = {}; - if (output["normal"] !== undefined) { - contents.normal = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["normal"])); + if (output[_no] != null) { + contents[_no] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_no])); } - if (output["dateTime"] !== undefined) { - contents.dateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["dateTime"])); + if (output[_dT] != null) { + contents[_dT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dT])); } - if (output["dateTimeOnTarget"] !== undefined) { - contents.dateTimeOnTarget = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["dateTimeOnTarget"])); + if (output[_dTOT] != null) { + contents[_dTOT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTOT])); } - if (output["epochSeconds"] !== undefined) { - contents.epochSeconds = __expectNonNull(__parseEpochTimestamp(output["epochSeconds"])); + if (output[_eS] != null) { + contents[_eS] = __expectNonNull(__parseEpochTimestamp(output[_eS])); } - if (output["epochSecondsOnTarget"] !== undefined) { - contents.epochSecondsOnTarget = __expectNonNull(__parseEpochTimestamp(output["epochSecondsOnTarget"])); + if (output[_eSOT] != null) { + contents[_eSOT] = __expectNonNull(__parseEpochTimestamp(output[_eSOT])); } - if (output["httpDate"] !== undefined) { - contents.httpDate = __expectNonNull(__parseRfc7231DateTime(output["httpDate"])); + if (output[_hD] != null) { + contents[_hD] = __expectNonNull(__parseRfc7231DateTime(output[_hD])); } - if (output["httpDateOnTarget"] !== undefined) { - contents.httpDateOnTarget = __expectNonNull(__parseRfc7231DateTime(output["httpDateOnTarget"])); + if (output[_hDOT] != null) { + contents[_hDOT] = __expectNonNull(__parseRfc7231DateTime(output[_hDOT])); } return contents; }; @@ -2450,6 +2441,136 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2020-01-08"; +const _A = "Action"; +const _A_ = "A"; +const _B = "Bar"; +const _B_ = "B"; +const _Ba = "Baz"; +const _Bam = "Bam"; +const _Bo = "Boo"; +const _C = "C"; +const _CLA = "ComplexListArg"; +const _D = "Data"; +const _DD = "DoubleDribble"; +const _DO = "DatetimeOffsets"; +const _E = "Encoding"; +const _EIAEO = "EmptyInputAndEmptyOutput"; +const _EM = "EpochMember"; +const _EO = "EndpointOperation"; +const _ET = "EpochTarget"; +const _EWHLO = "EndpointWithHostLabelOperation"; +const _F = "Foo"; +const _FE = "FooEnum"; +const _FS = "FractionalSeconds"; +const _FV = "FloatValue"; +const _GWE = "GreetingWithErrors"; +const _H = "Hi"; +const _HQAXN = "HasQueryAndXmlName"; +const _HQN = "HasQueryName"; +const _HWPO = "HostWithPathOperation"; +const _IWXN = "IgnoresWrappingXmlName"; +const _L = "Label"; +const _LA = "ListArg"; +const _LAWXN = "ListArgWithXmlName"; +const _LAWXNM = "ListArgWithXmlNameMember"; +const _M = "Message"; +const _N = "Nested"; +const _NF = "NormalFormat"; +const _NIAO = "NoInputAndOutput"; +const _NS = "NestedStructures"; +const _NWL = "NestedWithList"; +const _OA = "OtherArg"; +const _PWCE = "PutWithContentEncoding"; +const _Q = "Qux"; +const _QITAF = "QueryIdempotencyTokenAutoFill"; +const _QL = "QueryLists"; +const _QT = "QueryTimestamps"; +const _RA = "RecursiveArg"; +const _RXS = "RecursiveXmlShapes"; +const _SA = "StringArg"; +const _SIP = "SimpleInputParams"; +const _SSXP = "SimpleScalarXmlProperties"; +const _T = "Token"; +const _TL = "TopLevel"; +const _UXN = "UsesXmlName"; +const _V = "Version"; +const _XB = "XmlBlobs"; +const _XE = "XmlEnums"; +const _XEB = "XmlEmptyBlobs"; +const _XEL = "XmlEmptyLists"; +const _XIE = "XmlIntEnums"; +const _XL = "XmlLists"; +const _XN = "XmlNamespaces"; +const _XT = "XmlTimestamps"; +const _a = "a"; +const _b = "bar"; +const _bL = "booleanList"; +const _bV = "byteValue"; +const _b_ = "b"; +const _cN = "customName"; +const _d = "data"; +const _dT = "dateTime"; +const _dTOT = "dateTimeOnTarget"; +const _dV = "doubleValue"; +const _da = "datetime"; +const _e = "encoding"; +const _eL = "enumList"; +const _eM = "epochMember"; +const _eS = "epochSeconds"; +const _eSOT = "epochSecondsOnTarget"; +const _eSV = "emptyStringValue"; +const _eT = "epochTarget"; +const _en = "entry"; +const _f = "foo"; +const _fBV = "falseBooleanValue"; +const _fE = "fooEnum1"; +const _fEL = "fooEnumList"; +const _fEM = "fooEnumMap"; +const _fES = "fooEnumSet"; +const _fEo = "fooEnum2"; +const _fEoo = "fooEnum3"; +const _fL = "flattenedList"; +const _fLWMN = "flattenedListWithMemberNamespace"; +const _fLWN = "flattenedListWithNamespace"; +const _fLl = "flattenedList2"; +const _fV = "floatValue"; +const _g = "greeting"; +const _h = "hi"; +const _hD = "httpDate"; +const _hDOT = "httpDateOnTarget"; +const _i = "item"; +const _iE = "intEnum1"; +const _iEL = "intEnumList"; +const _iEM = "intEnumMap"; +const _iES = "intEnumSet"; +const _iEn = "intEnum2"; +const _iEnt = "intEnum3"; +const _iL = "integerList"; +const _iV = "integerValue"; +const _l = "label"; +const _lV = "longValue"; +const _m = "member"; +const _mSL = "myStructureList"; +const _n = "nested"; +const _nF = "normalFormat"; +const _nSL = "nestedStringList"; +const _no = "normal"; +const _o = "other"; +const _r = "renamed"; +const _rLM = "renamedListMembers"; +const _rM = "recursiveMember"; +const _sL = "stringList"; +const _sLt = "structureList"; +const _sS = "stringSet"; +const _sV = "stringValue"; +const _sVh = "shortValue"; +const _t = "token"; +const _tBV = "trueBooleanValue"; +const _tL = "timestampList"; +const _v = "value"; +const _va = "values"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/private/aws-protocoltests-query/src/protocols/Aws_query.ts b/private/aws-protocoltests-query/src/protocols/Aws_query.ts index e0c8045e4266..01d9b159a913 100644 --- a/private/aws-protocoltests-query/src/protocols/Aws_query.ts +++ b/private/aws-protocoltests-query/src/protocols/Aws_query.ts @@ -149,8 +149,8 @@ export const se_DatetimeOffsetsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "DatetimeOffsets", - Version: "2020-01-08", + [_A]: _DO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -166,8 +166,8 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_EmptyInputAndEmptyOutputInput(input, context), - Action: "EmptyInputAndEmptyOutput", - Version: "2020-01-08", + [_A]: _EIAEO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -181,8 +181,8 @@ export const se_EndpointOperationCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "EndpointOperation", - Version: "2020-01-08", + [_A]: _EO, + [_V]: _, }); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -205,8 +205,8 @@ export const se_EndpointWithHostLabelOperationCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_HostLabelInput(input, context), - Action: "EndpointWithHostLabelOperation", - Version: "2020-01-08", + [_A]: _EWHLO, + [_V]: _, }); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -231,8 +231,8 @@ export const se_FlattenedXmlMapCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "FlattenedXmlMap", - Version: "2020-01-08", + [_A]: _FXM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -246,8 +246,8 @@ export const se_FlattenedXmlMapWithXmlNameCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "FlattenedXmlMapWithXmlName", - Version: "2020-01-08", + [_A]: _FXMWXN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -261,8 +261,8 @@ export const se_FlattenedXmlMapWithXmlNamespaceCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "FlattenedXmlMapWithXmlNamespace", - Version: "2020-01-08", + [_A]: _FXMWXNl, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -276,8 +276,8 @@ export const se_FractionalSecondsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "FractionalSeconds", - Version: "2020-01-08", + [_A]: _FS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -291,8 +291,8 @@ export const se_GreetingWithErrorsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "GreetingWithErrors", - Version: "2020-01-08", + [_A]: _GWE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -306,8 +306,8 @@ export const se_HostWithPathOperationCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "HostWithPathOperation", - Version: "2020-01-08", + [_A]: _HWPO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -321,8 +321,8 @@ export const se_IgnoresWrappingXmlNameCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "IgnoresWrappingXmlName", - Version: "2020-01-08", + [_A]: _IWXN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -338,8 +338,8 @@ export const se_NestedStructuresCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_NestedStructuresInput(input, context), - Action: "NestedStructures", - Version: "2020-01-08", + [_A]: _NS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -353,8 +353,8 @@ export const se_NoInputAndNoOutputCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "NoInputAndNoOutput", - Version: "2020-01-08", + [_A]: _NIANO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -370,8 +370,8 @@ export const se_NoInputAndOutputCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_NoInputAndOutputInput(input, context), - Action: "NoInputAndOutput", - Version: "2020-01-08", + [_A]: _NIAO, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -387,8 +387,8 @@ export const se_PutWithContentEncodingCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_PutWithContentEncodingInput(input, context), - Action: "PutWithContentEncoding", - Version: "2020-01-08", + [_A]: _PWCE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -404,8 +404,8 @@ export const se_QueryIdempotencyTokenAutoFillCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_QueryIdempotencyTokenAutoFillInput(input, context), - Action: "QueryIdempotencyTokenAutoFill", - Version: "2020-01-08", + [_A]: _QITAF, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -421,8 +421,8 @@ export const se_QueryListsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_QueryListsInput(input, context), - Action: "QueryLists", - Version: "2020-01-08", + [_A]: _QL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -438,8 +438,8 @@ export const se_QueryMapsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_QueryMapsInput(input, context), - Action: "QueryMaps", - Version: "2020-01-08", + [_A]: _QM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -455,8 +455,8 @@ export const se_QueryTimestampsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_QueryTimestampsInput(input, context), - Action: "QueryTimestamps", - Version: "2020-01-08", + [_A]: _QT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -470,8 +470,8 @@ export const se_RecursiveXmlShapesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "RecursiveXmlShapes", - Version: "2020-01-08", + [_A]: _RXS, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -487,8 +487,8 @@ export const se_SimpleInputParamsCommand = async ( let body: any; body = buildFormUrlencodedString({ ...se_SimpleInputParamsInput(input, context), - Action: "SimpleInputParams", - Version: "2020-01-08", + [_A]: _SIP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -502,8 +502,8 @@ export const se_SimpleScalarXmlPropertiesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "SimpleScalarXmlProperties", - Version: "2020-01-08", + [_A]: _SSXP, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -517,8 +517,8 @@ export const se_XmlBlobsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlBlobs", - Version: "2020-01-08", + [_A]: _XB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -532,8 +532,8 @@ export const se_XmlEmptyBlobsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlEmptyBlobs", - Version: "2020-01-08", + [_A]: _XEB, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -547,8 +547,8 @@ export const se_XmlEmptyListsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlEmptyLists", - Version: "2020-01-08", + [_A]: _XEL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -562,8 +562,8 @@ export const se_XmlEmptyMapsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlEmptyMaps", - Version: "2020-01-08", + [_A]: _XEM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -577,8 +577,8 @@ export const se_XmlEnumsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlEnums", - Version: "2020-01-08", + [_A]: _XE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -592,8 +592,8 @@ export const se_XmlIntEnumsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlIntEnums", - Version: "2020-01-08", + [_A]: _XIE, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -607,8 +607,8 @@ export const se_XmlListsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlLists", - Version: "2020-01-08", + [_A]: _XL, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -622,8 +622,8 @@ export const se_XmlMapsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlMaps", - Version: "2020-01-08", + [_A]: _XM, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -637,8 +637,8 @@ export const se_XmlMapsXmlNameCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlMapsXmlName", - Version: "2020-01-08", + [_A]: _XMXN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -652,8 +652,8 @@ export const se_XmlNamespacesCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlNamespaces", - Version: "2020-01-08", + [_A]: _XN, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -667,8 +667,8 @@ export const se_XmlTimestampsCommand = async ( ): Promise<__HttpRequest> => { const headers: __HeaderBag = SHARED_HEADERS; const body = buildFormUrlencodedString({ - Action: "XmlTimestamps", - Version: "2020-01-08", + [_A]: _XT, + [_V]: _, }); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; @@ -2043,8 +2043,8 @@ const se_EmptyInputAndEmptyOutputInput = (input: EmptyInputAndEmptyOutputInput, */ const se_HostLabelInput = (input: HostLabelInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.label != null) { - entries["label"] = input.label; + if (input[_l] != null) { + entries[_l] = input[_l]; } return entries; }; @@ -2105,8 +2105,8 @@ const se_MapWithXmlName = (input: Record, context: __SerdeContex */ const se_NestedStructuresInput = (input: NestedStructuresInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Nested != null) { - const memberEntries = se_StructArg(input.Nested, context); + if (input[_N] != null) { + const memberEntries = se_StructArg(input[_N], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Nested.${key}`; entries[loc] = value; @@ -2120,9 +2120,9 @@ const se_NestedStructuresInput = (input: NestedStructuresInput, context: __Serde */ const se_NestedStructWithList = (input: NestedStructWithList, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListArg != null) { - const memberEntries = se_StringList(input.ListArg, context); - if (input.ListArg?.length === 0) { + if (input[_LA] != null) { + const memberEntries = se_StringList(input[_LA], context); + if (input[_LA]?.length === 0) { entries.ListArg = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2138,8 +2138,8 @@ const se_NestedStructWithList = (input: NestedStructWithList, context: __SerdeCo */ const se_NestedStructWithMap = (input: NestedStructWithMap, context: __SerdeContext): any => { const entries: any = {}; - if (input.MapArg != null) { - const memberEntries = se_StringMap(input.MapArg, context); + if (input[_MA] != null) { + const memberEntries = se_StringMap(input[_MA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MapArg.${key}`; entries[loc] = value; @@ -2161,11 +2161,11 @@ const se_NoInputAndOutputInput = (input: NoInputAndOutputInput, context: __Serde */ const se_PutWithContentEncodingInput = (input: PutWithContentEncodingInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.encoding != null) { - entries["encoding"] = input.encoding; + if (input[_e] != null) { + entries[_e] = input[_e]; } - if (input.data != null) { - entries["data"] = input.data; + if (input[_d] != null) { + entries[_d] = input[_d]; } return entries; }; @@ -2178,11 +2178,11 @@ const se_QueryIdempotencyTokenAutoFillInput = ( context: __SerdeContext ): any => { const entries: any = {}; - if (input.token === undefined) { - input.token = generateIdempotencyToken(); + if (input[_t] === undefined) { + input[_t] = generateIdempotencyToken(); } - if (input.token != null) { - entries["token"] = input.token; + if (input[_t] != null) { + entries[_t] = input[_t]; } return entries; }; @@ -2192,9 +2192,9 @@ const se_QueryIdempotencyTokenAutoFillInput = ( */ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.ListArg != null) { - const memberEntries = se_StringList(input.ListArg, context); - if (input.ListArg?.length === 0) { + if (input[_LA] != null) { + const memberEntries = se_StringList(input[_LA], context); + if (input[_LA]?.length === 0) { entries.ListArg = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2202,9 +2202,9 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.ComplexListArg != null) { - const memberEntries = se_GreetingList(input.ComplexListArg, context); - if (input.ComplexListArg?.length === 0) { + if (input[_CLA] != null) { + const memberEntries = se_GreetingList(input[_CLA], context); + if (input[_CLA]?.length === 0) { entries.ComplexListArg = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2212,9 +2212,9 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.FlattenedListArg != null) { - const memberEntries = se_StringList(input.FlattenedListArg, context); - if (input.FlattenedListArg?.length === 0) { + if (input[_FLA] != null) { + const memberEntries = se_StringList(input[_FLA], context); + if (input[_FLA]?.length === 0) { entries.FlattenedListArg = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2222,9 +2222,9 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.ListArgWithXmlNameMember != null) { - const memberEntries = se_ListWithXmlName(input.ListArgWithXmlNameMember, context); - if (input.ListArgWithXmlNameMember?.length === 0) { + if (input[_LAWXNM] != null) { + const memberEntries = se_ListWithXmlName(input[_LAWXNM], context); + if (input[_LAWXNM]?.length === 0) { entries.ListArgWithXmlNameMember = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2232,9 +2232,9 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.FlattenedListArgWithXmlName != null) { - const memberEntries = se_ListWithXmlName(input.FlattenedListArgWithXmlName, context); - if (input.FlattenedListArgWithXmlName?.length === 0) { + if (input[_FLAWXN] != null) { + const memberEntries = se_ListWithXmlName(input[_FLAWXN], context); + if (input[_FLAWXN]?.length === 0) { entries.Hi = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -2242,8 +2242,8 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an entries[loc] = value; }); } - if (input.NestedWithList != null) { - const memberEntries = se_NestedStructWithList(input.NestedWithList, context); + if (input[_NWL] != null) { + const memberEntries = se_NestedStructWithList(input[_NWL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NestedWithList.${key}`; entries[loc] = value; @@ -2257,57 +2257,57 @@ const se_QueryListsInput = (input: QueryListsInput, context: __SerdeContext): an */ const se_QueryMapsInput = (input: QueryMapsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.MapArg != null) { - const memberEntries = se_StringMap(input.MapArg, context); + if (input[_MA] != null) { + const memberEntries = se_StringMap(input[_MA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MapArg.${key}`; entries[loc] = value; }); } - if (input.RenamedMapArg != null) { - const memberEntries = se_StringMap(input.RenamedMapArg, context); + if (input[_RMA] != null) { + const memberEntries = se_StringMap(input[_RMA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Foo.${key}`; entries[loc] = value; }); } - if (input.ComplexMapArg != null) { - const memberEntries = se_ComplexMap(input.ComplexMapArg, context); + if (input[_CMA] != null) { + const memberEntries = se_ComplexMap(input[_CMA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `ComplexMapArg.${key}`; entries[loc] = value; }); } - if (input.MapWithXmlMemberName != null) { - const memberEntries = se_MapWithXmlName(input.MapWithXmlMemberName, context); + if (input[_MWXMN] != null) { + const memberEntries = se_MapWithXmlName(input[_MWXMN], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MapWithXmlMemberName.${key}`; entries[loc] = value; }); } - if (input.FlattenedMap != null) { - const memberEntries = se_StringMap(input.FlattenedMap, context); + if (input[_FM] != null) { + const memberEntries = se_StringMap(input[_FM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `FlattenedMap.${key.substring(key.indexOf(".") + 1)}`; entries[loc] = value; }); } - if (input.FlattenedMapWithXmlName != null) { - const memberEntries = se_MapWithXmlName(input.FlattenedMapWithXmlName, context); + if (input[_FMWXN] != null) { + const memberEntries = se_MapWithXmlName(input[_FMWXN], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `Hi.${key.substring(key.indexOf(".") + 1)}`; entries[loc] = value; }); } - if (input.MapOfLists != null) { - const memberEntries = se_MapOfLists(input.MapOfLists, context); + if (input[_MOL] != null) { + const memberEntries = se_MapOfLists(input[_MOL], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `MapOfLists.${key}`; entries[loc] = value; }); } - if (input.NestedStructWithMap != null) { - const memberEntries = se_NestedStructWithMap(input.NestedStructWithMap, context); + if (input[_NSWM] != null) { + const memberEntries = se_NestedStructWithMap(input[_NSWM], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `NestedStructWithMap.${key}`; entries[loc] = value; @@ -2321,14 +2321,14 @@ const se_QueryMapsInput = (input: QueryMapsInput, context: __SerdeContext): any */ const se_QueryTimestampsInput = (input: QueryTimestampsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.normalFormat != null) { - entries["normalFormat"] = input.normalFormat.toISOString().split(".")[0] + "Z"; + if (input[_nF] != null) { + entries[_nF] = input[_nF].toISOString().split(".")[0] + "Z"; } - if (input.epochMember != null) { - entries["epochMember"] = Math.round(input.epochMember.getTime() / 1000); + if (input[_eM] != null) { + entries[_eM] = Math.round(input[_eM].getTime() / 1000); } - if (input.epochTarget != null) { - entries["epochTarget"] = Math.round(input.epochTarget.getTime() / 1000); + if (input[_eT] != null) { + entries[_eT] = Math.round(input[_eT].getTime() / 1000); } return entries; }; @@ -2338,32 +2338,32 @@ const se_QueryTimestampsInput = (input: QueryTimestampsInput, context: __SerdeCo */ const se_SimpleInputParamsInput = (input: SimpleInputParamsInput, context: __SerdeContext): any => { const entries: any = {}; - if (input.Foo != null) { - entries["Foo"] = input.Foo; + if (input[_F] != null) { + entries[_F] = input[_F]; } - if (input.Bar != null) { - entries["Bar"] = input.Bar; + if (input[_B] != null) { + entries[_B] = input[_B]; } - if (input.Baz != null) { - entries["Baz"] = input.Baz; + if (input[_Ba] != null) { + entries[_Ba] = input[_Ba]; } - if (input.Bam != null) { - entries["Bam"] = input.Bam; + if (input[_Bam] != null) { + entries[_Bam] = input[_Bam]; } - if (input.FloatValue != null) { - entries["FloatValue"] = __serializeFloat(input.FloatValue); + if (input[_FV] != null) { + entries[_FV] = __serializeFloat(input[_FV]); } - if (input.Boo != null) { - entries["Boo"] = __serializeFloat(input.Boo); + if (input[_Bo] != null) { + entries[_Bo] = __serializeFloat(input[_Bo]); } - if (input.Qux != null) { - entries["Qux"] = context.base64Encoder(input.Qux); + if (input[_Q] != null) { + entries[_Q] = context.base64Encoder(input[_Q]); } - if (input.FooEnum != null) { - entries["FooEnum"] = input.FooEnum; + if (input[_FE] != null) { + entries[_FE] = input[_FE]; } - if (input.IntegerEnum != null) { - entries["IntegerEnum"] = input.IntegerEnum; + if (input[_IE] != null) { + entries[_IE] = input[_IE]; } return entries; }; @@ -2373,14 +2373,14 @@ const se_SimpleInputParamsInput = (input: SimpleInputParamsInput, context: __Ser */ const se_StructArg = (input: StructArg, context: __SerdeContext): any => { const entries: any = {}; - if (input.StringArg != null) { - entries["StringArg"] = input.StringArg; + if (input[_SA] != null) { + entries[_SA] = input[_SA]; } - if (input.OtherArg != null) { - entries["OtherArg"] = input.OtherArg; + if (input[_OA] != null) { + entries[_OA] = input[_OA]; } - if (input.RecursiveArg != null) { - const memberEntries = se_StructArg(input.RecursiveArg, context); + if (input[_RA] != null) { + const memberEntries = se_StructArg(input[_RA], context); Object.entries(memberEntries).forEach(([key, value]) => { const loc = `RecursiveArg.${key}`; entries[loc] = value; @@ -2413,8 +2413,8 @@ const se_GreetingList = (input: GreetingStruct[], context: __SerdeContext): any */ const se_GreetingStruct = (input: GreetingStruct, context: __SerdeContext): any => { const entries: any = {}; - if (input.hi != null) { - entries["hi"] = input.hi; + if (input[_h] != null) { + entries[_h] = input[_h]; } return entries; }; @@ -2456,11 +2456,11 @@ const se_StringMap = (input: Record, context: __SerdeContext): a */ const de_ComplexError = (output: any, context: __SerdeContext): ComplexError => { const contents: any = {}; - if (output["TopLevel"] !== undefined) { - contents.TopLevel = __expectString(output["TopLevel"]); + if (output[_TL] != null) { + contents[_TL] = __expectString(output[_TL]); } - if (output["Nested"] !== undefined) { - contents.Nested = de_ComplexNestedErrorData(output["Nested"], context); + if (output[_N] != null) { + contents[_N] = de_ComplexNestedErrorData(output[_N], context); } return contents; }; @@ -2470,8 +2470,8 @@ const de_ComplexError = (output: any, context: __SerdeContext): ComplexError => */ const de_ComplexNestedErrorData = (output: any, context: __SerdeContext): ComplexNestedErrorData => { const contents: any = {}; - if (output["Foo"] !== undefined) { - contents.Foo = __expectString(output["Foo"]); + if (output[_F] != null) { + contents[_F] = __expectString(output[_F]); } return contents; }; @@ -2481,8 +2481,8 @@ const de_ComplexNestedErrorData = (output: any, context: __SerdeContext): Comple */ const de_CustomCodeError = (output: any, context: __SerdeContext): CustomCodeError => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -2492,8 +2492,8 @@ const de_CustomCodeError = (output: any, context: __SerdeContext): CustomCodeErr */ const de_DatetimeOffsetsOutput = (output: any, context: __SerdeContext): DatetimeOffsetsOutput => { const contents: any = {}; - if (output["datetime"] !== undefined) { - contents.datetime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["datetime"])); + if (output[_da] != null) { + contents[_da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_da])); } return contents; }; @@ -2512,9 +2512,9 @@ const de_EmptyInputAndEmptyOutputOutput = (output: any, context: __SerdeContext) const de_FlattenedXmlMapOutput = (output: any, context: __SerdeContext): FlattenedXmlMapOutput => { const contents: any = {}; if (output.myMap === "") { - contents.myMap = {}; - } else if (output["myMap"] !== undefined) { - contents.myMap = de_FooEnumMap(__getArrayIfSingleItem(output["myMap"]), context); + contents[_mM] = {}; + } else if (output[_mM] != null) { + contents[_mM] = de_FooEnumMap(__getArrayIfSingleItem(output[_mM]), context); } return contents; }; @@ -2528,9 +2528,9 @@ const de_FlattenedXmlMapWithXmlNameOutput = ( ): FlattenedXmlMapWithXmlNameOutput => { const contents: any = {}; if (output.KVP === "") { - contents.myMap = {}; - } else if (output["KVP"] !== undefined) { - contents.myMap = de_FlattenedXmlMapWithXmlNameOutputMap(__getArrayIfSingleItem(output["KVP"]), context); + contents[_mM] = {}; + } else if (output[_KVP] != null) { + contents[_mM] = de_FlattenedXmlMapWithXmlNameOutputMap(__getArrayIfSingleItem(output[_KVP]), context); } return contents; }; @@ -2557,9 +2557,9 @@ const de_FlattenedXmlMapWithXmlNamespaceOutput = ( ): FlattenedXmlMapWithXmlNamespaceOutput => { const contents: any = {}; if (output.KVP === "") { - contents.myMap = {}; - } else if (output["KVP"] !== undefined) { - contents.myMap = de_FlattenedXmlMapWithXmlNamespaceOutputMap(__getArrayIfSingleItem(output["KVP"]), context); + contents[_mM] = {}; + } else if (output[_KVP] != null) { + contents[_mM] = de_FlattenedXmlMapWithXmlNamespaceOutputMap(__getArrayIfSingleItem(output[_KVP]), context); } return contents; }; @@ -2582,8 +2582,8 @@ const de_FlattenedXmlMapWithXmlNamespaceOutputMap = (output: any, context: __Ser */ const de_FractionalSecondsOutput = (output: any, context: __SerdeContext): FractionalSecondsOutput => { const contents: any = {}; - if (output["datetime"] !== undefined) { - contents.datetime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["datetime"])); + if (output[_da] != null) { + contents[_da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_da])); } return contents; }; @@ -2593,8 +2593,8 @@ const de_FractionalSecondsOutput = (output: any, context: __SerdeContext): Fract */ const de_GreetingWithErrorsOutput = (output: any, context: __SerdeContext): GreetingWithErrorsOutput => { const contents: any = {}; - if (output["greeting"] !== undefined) { - contents.greeting = __expectString(output["greeting"]); + if (output[_g] != null) { + contents[_g] = __expectString(output[_g]); } return contents; }; @@ -2604,8 +2604,8 @@ const de_GreetingWithErrorsOutput = (output: any, context: __SerdeContext): Gree */ const de_IgnoresWrappingXmlNameOutput = (output: any, context: __SerdeContext): IgnoresWrappingXmlNameOutput => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } return contents; }; @@ -2615,8 +2615,8 @@ const de_IgnoresWrappingXmlNameOutput = (output: any, context: __SerdeContext): */ const de_InvalidGreeting = (output: any, context: __SerdeContext): InvalidGreeting => { const contents: any = {}; - if (output["Message"] !== undefined) { - contents.Message = __expectString(output["Message"]); + if (output[_M] != null) { + contents[_M] = __expectString(output[_M]); } return contents; }; @@ -2656,8 +2656,8 @@ const de_NoInputAndOutputOutput = (output: any, context: __SerdeContext): NoInpu */ const de_RecursiveXmlShapesOutput = (output: any, context: __SerdeContext): RecursiveXmlShapesOutput => { const contents: any = {}; - if (output["nested"] !== undefined) { - contents.nested = de_RecursiveXmlShapesOutputNested1(output["nested"], context); + if (output[_n] != null) { + contents[_n] = de_RecursiveXmlShapesOutputNested1(output[_n], context); } return contents; }; @@ -2667,11 +2667,11 @@ const de_RecursiveXmlShapesOutput = (output: any, context: __SerdeContext): Recu */ const de_RecursiveXmlShapesOutputNested1 = (output: any, context: __SerdeContext): RecursiveXmlShapesOutputNested1 => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } - if (output["nested"] !== undefined) { - contents.nested = de_RecursiveXmlShapesOutputNested2(output["nested"], context); + if (output[_n] != null) { + contents[_n] = de_RecursiveXmlShapesOutputNested2(output[_n], context); } return contents; }; @@ -2681,11 +2681,11 @@ const de_RecursiveXmlShapesOutputNested1 = (output: any, context: __SerdeContext */ const de_RecursiveXmlShapesOutputNested2 = (output: any, context: __SerdeContext): RecursiveXmlShapesOutputNested2 => { const contents: any = {}; - if (output["bar"] !== undefined) { - contents.bar = __expectString(output["bar"]); + if (output[_b] != null) { + contents[_b] = __expectString(output[_b]); } - if (output["recursiveMember"] !== undefined) { - contents.recursiveMember = de_RecursiveXmlShapesOutputNested1(output["recursiveMember"], context); + if (output[_rM] != null) { + contents[_rM] = de_RecursiveXmlShapesOutputNested1(output[_rM], context); } return contents; }; @@ -2706,35 +2706,35 @@ const de_RenamedListMembers = (output: any, context: __SerdeContext): string[] = */ const de_SimpleScalarXmlPropertiesOutput = (output: any, context: __SerdeContext): SimpleScalarXmlPropertiesOutput => { const contents: any = {}; - if (output["stringValue"] !== undefined) { - contents.stringValue = __expectString(output["stringValue"]); + if (output[_sV] != null) { + contents[_sV] = __expectString(output[_sV]); } - if (output["emptyStringValue"] !== undefined) { - contents.emptyStringValue = __expectString(output["emptyStringValue"]); + if (output[_eSV] != null) { + contents[_eSV] = __expectString(output[_eSV]); } - if (output["trueBooleanValue"] !== undefined) { - contents.trueBooleanValue = __parseBoolean(output["trueBooleanValue"]); + if (output[_tBV] != null) { + contents[_tBV] = __parseBoolean(output[_tBV]); } - if (output["falseBooleanValue"] !== undefined) { - contents.falseBooleanValue = __parseBoolean(output["falseBooleanValue"]); + if (output[_fBV] != null) { + contents[_fBV] = __parseBoolean(output[_fBV]); } - if (output["byteValue"] !== undefined) { - contents.byteValue = __strictParseByte(output["byteValue"]) as number; + if (output[_bV] != null) { + contents[_bV] = __strictParseByte(output[_bV]) as number; } - if (output["shortValue"] !== undefined) { - contents.shortValue = __strictParseShort(output["shortValue"]) as number; + if (output[_sVh] != null) { + contents[_sVh] = __strictParseShort(output[_sVh]) as number; } - if (output["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt32(output["integerValue"]) as number; + if (output[_iV] != null) { + contents[_iV] = __strictParseInt32(output[_iV]) as number; } - if (output["longValue"] !== undefined) { - contents.longValue = __strictParseLong(output["longValue"]) as number; + if (output[_lV] != null) { + contents[_lV] = __strictParseLong(output[_lV]) as number; } - if (output["floatValue"] !== undefined) { - contents.floatValue = __strictParseFloat(output["floatValue"]) as number; + if (output[_fV] != null) { + contents[_fV] = __strictParseFloat(output[_fV]) as number; } - if (output["DoubleDribble"] !== undefined) { - contents.doubleValue = __strictParseFloat(output["DoubleDribble"]) as number; + if (output[_DD] != null) { + contents[_dV] = __strictParseFloat(output[_DD]) as number; } return contents; }; @@ -2755,11 +2755,11 @@ const de_StructureList = (output: any, context: __SerdeContext): StructureListMe */ const de_StructureListMember = (output: any, context: __SerdeContext): StructureListMember => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.a = __expectString(output["value"]); + if (output[_v] != null) { + contents[_a] = __expectString(output[_v]); } - if (output["other"] !== undefined) { - contents.b = __expectString(output["other"]); + if (output[_o] != null) { + contents[_b_] = __expectString(output[_o]); } return contents; }; @@ -2769,8 +2769,8 @@ const de_StructureListMember = (output: any, context: __SerdeContext): Structure */ const de_XmlBlobsOutput = (output: any, context: __SerdeContext): XmlBlobsOutput => { const contents: any = {}; - if (output["data"] !== undefined) { - contents.data = context.base64Decoder(output["data"]); + if (output[_d] != null) { + contents[_d] = context.base64Decoder(output[_d]); } return contents; }; @@ -2780,29 +2780,29 @@ const de_XmlBlobsOutput = (output: any, context: __SerdeContext): XmlBlobsOutput */ const de_XmlEnumsOutput = (output: any, context: __SerdeContext): XmlEnumsOutput => { const contents: any = {}; - if (output["fooEnum1"] !== undefined) { - contents.fooEnum1 = __expectString(output["fooEnum1"]); + if (output[_fE] != null) { + contents[_fE] = __expectString(output[_fE]); } - if (output["fooEnum2"] !== undefined) { - contents.fooEnum2 = __expectString(output["fooEnum2"]); + if (output[_fEo] != null) { + contents[_fEo] = __expectString(output[_fEo]); } - if (output["fooEnum3"] !== undefined) { - contents.fooEnum3 = __expectString(output["fooEnum3"]); + if (output[_fEoo] != null) { + contents[_fEoo] = __expectString(output[_fEoo]); } if (output.fooEnumList === "") { - contents.fooEnumList = []; - } else if (output["fooEnumList"] !== undefined && output["fooEnumList"]["member"] !== undefined) { - contents.fooEnumList = de_FooEnumList(__getArrayIfSingleItem(output["fooEnumList"]["member"]), context); + contents[_fEL] = []; + } else if (output[_fEL] != null && output[_fEL][_m] != null) { + contents[_fEL] = de_FooEnumList(__getArrayIfSingleItem(output[_fEL][_m]), context); } if (output.fooEnumSet === "") { - contents.fooEnumSet = []; - } else if (output["fooEnumSet"] !== undefined && output["fooEnumSet"]["member"] !== undefined) { - contents.fooEnumSet = de_FooEnumSet(__getArrayIfSingleItem(output["fooEnumSet"]["member"]), context); + contents[_fES] = []; + } else if (output[_fES] != null && output[_fES][_m] != null) { + contents[_fES] = de_FooEnumSet(__getArrayIfSingleItem(output[_fES][_m]), context); } if (output.fooEnumMap === "") { - contents.fooEnumMap = {}; - } else if (output["fooEnumMap"] !== undefined && output["fooEnumMap"]["entry"] !== undefined) { - contents.fooEnumMap = de_FooEnumMap(__getArrayIfSingleItem(output["fooEnumMap"]["entry"]), context); + contents[_fEM] = {}; + } else if (output[_fEM] != null && output[_fEM][_en] != null) { + contents[_fEM] = de_FooEnumMap(__getArrayIfSingleItem(output[_fEM][_en]), context); } return contents; }; @@ -2812,29 +2812,29 @@ const de_XmlEnumsOutput = (output: any, context: __SerdeContext): XmlEnumsOutput */ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnumsOutput => { const contents: any = {}; - if (output["intEnum1"] !== undefined) { - contents.intEnum1 = __strictParseInt32(output["intEnum1"]) as number; + if (output[_iE] != null) { + contents[_iE] = __strictParseInt32(output[_iE]) as number; } - if (output["intEnum2"] !== undefined) { - contents.intEnum2 = __strictParseInt32(output["intEnum2"]) as number; + if (output[_iEn] != null) { + contents[_iEn] = __strictParseInt32(output[_iEn]) as number; } - if (output["intEnum3"] !== undefined) { - contents.intEnum3 = __strictParseInt32(output["intEnum3"]) as number; + if (output[_iEnt] != null) { + contents[_iEnt] = __strictParseInt32(output[_iEnt]) as number; } if (output.intEnumList === "") { - contents.intEnumList = []; - } else if (output["intEnumList"] !== undefined && output["intEnumList"]["member"] !== undefined) { - contents.intEnumList = de_IntegerEnumList(__getArrayIfSingleItem(output["intEnumList"]["member"]), context); + contents[_iEL] = []; + } else if (output[_iEL] != null && output[_iEL][_m] != null) { + contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } if (output.intEnumSet === "") { - contents.intEnumSet = []; - } else if (output["intEnumSet"] !== undefined && output["intEnumSet"]["member"] !== undefined) { - contents.intEnumSet = de_IntegerEnumSet(__getArrayIfSingleItem(output["intEnumSet"]["member"]), context); + contents[_iES] = []; + } else if (output[_iES] != null && output[_iES][_m] != null) { + contents[_iES] = de_IntegerEnumSet(__getArrayIfSingleItem(output[_iES][_m]), context); } if (output.intEnumMap === "") { - contents.intEnumMap = {}; - } else if (output["intEnumMap"] !== undefined && output["intEnumMap"]["entry"] !== undefined) { - contents.intEnumMap = de_IntegerEnumMap(__getArrayIfSingleItem(output["intEnumMap"]["entry"]), context); + contents[_iEM] = {}; + } else if (output[_iEM] != null && output[_iEM][_en] != null) { + contents[_iEM] = de_IntegerEnumMap(__getArrayIfSingleItem(output[_iEM][_en]), context); } return contents; }; @@ -2845,83 +2845,74 @@ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnums const de_XmlListsOutput = (output: any, context: __SerdeContext): XmlListsOutput => { const contents: any = {}; if (output.stringList === "") { - contents.stringList = []; - } else if (output["stringList"] !== undefined && output["stringList"]["member"] !== undefined) { - contents.stringList = de_StringList(__getArrayIfSingleItem(output["stringList"]["member"]), context); + contents[_sL] = []; + } else if (output[_sL] != null && output[_sL][_m] != null) { + contents[_sL] = de_StringList(__getArrayIfSingleItem(output[_sL][_m]), context); } if (output.stringSet === "") { - contents.stringSet = []; - } else if (output["stringSet"] !== undefined && output["stringSet"]["member"] !== undefined) { - contents.stringSet = de_StringSet(__getArrayIfSingleItem(output["stringSet"]["member"]), context); + contents[_sS] = []; + } else if (output[_sS] != null && output[_sS][_m] != null) { + contents[_sS] = de_StringSet(__getArrayIfSingleItem(output[_sS][_m]), context); } if (output.integerList === "") { - contents.integerList = []; - } else if (output["integerList"] !== undefined && output["integerList"]["member"] !== undefined) { - contents.integerList = de_IntegerList(__getArrayIfSingleItem(output["integerList"]["member"]), context); + contents[_iL] = []; + } else if (output[_iL] != null && output[_iL][_m] != null) { + contents[_iL] = de_IntegerList(__getArrayIfSingleItem(output[_iL][_m]), context); } if (output.booleanList === "") { - contents.booleanList = []; - } else if (output["booleanList"] !== undefined && output["booleanList"]["member"] !== undefined) { - contents.booleanList = de_BooleanList(__getArrayIfSingleItem(output["booleanList"]["member"]), context); + contents[_bL] = []; + } else if (output[_bL] != null && output[_bL][_m] != null) { + contents[_bL] = de_BooleanList(__getArrayIfSingleItem(output[_bL][_m]), context); } if (output.timestampList === "") { - contents.timestampList = []; - } else if (output["timestampList"] !== undefined && output["timestampList"]["member"] !== undefined) { - contents.timestampList = de_TimestampList(__getArrayIfSingleItem(output["timestampList"]["member"]), context); + contents[_tL] = []; + } else if (output[_tL] != null && output[_tL][_m] != null) { + contents[_tL] = de_TimestampList(__getArrayIfSingleItem(output[_tL][_m]), context); } if (output.enumList === "") { - contents.enumList = []; - } else if (output["enumList"] !== undefined && output["enumList"]["member"] !== undefined) { - contents.enumList = de_FooEnumList(__getArrayIfSingleItem(output["enumList"]["member"]), context); + contents[_eL] = []; + } else if (output[_eL] != null && output[_eL][_m] != null) { + contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(output[_eL][_m]), context); } if (output.intEnumList === "") { - contents.intEnumList = []; - } else if (output["intEnumList"] !== undefined && output["intEnumList"]["member"] !== undefined) { - contents.intEnumList = de_IntegerEnumList(__getArrayIfSingleItem(output["intEnumList"]["member"]), context); + contents[_iEL] = []; + } else if (output[_iEL] != null && output[_iEL][_m] != null) { + contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } if (output.nestedStringList === "") { - contents.nestedStringList = []; - } else if (output["nestedStringList"] !== undefined && output["nestedStringList"]["member"] !== undefined) { - contents.nestedStringList = de_NestedStringList( - __getArrayIfSingleItem(output["nestedStringList"]["member"]), - context - ); + contents[_nSL] = []; + } else if (output[_nSL] != null && output[_nSL][_m] != null) { + contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(output[_nSL][_m]), context); } if (output.renamed === "") { - contents.renamedListMembers = []; - } else if (output["renamed"] !== undefined && output["renamed"]["item"] !== undefined) { - contents.renamedListMembers = de_RenamedListMembers(__getArrayIfSingleItem(output["renamed"]["item"]), context); + contents[_rLM] = []; + } else if (output[_r] != null && output[_r][_i] != null) { + contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(output[_r][_i]), context); } if (output.flattenedList === "") { - contents.flattenedList = []; - } else if (output["flattenedList"] !== undefined) { - contents.flattenedList = de_RenamedListMembers(__getArrayIfSingleItem(output["flattenedList"]), context); + contents[_fL] = []; + } else if (output[_fL] != null) { + contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(output[_fL]), context); } if (output.customName === "") { - contents.flattenedList2 = []; - } else if (output["customName"] !== undefined) { - contents.flattenedList2 = de_RenamedListMembers(__getArrayIfSingleItem(output["customName"]), context); + contents[_fLl] = []; + } else if (output[_cN] != null) { + contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(output[_cN]), context); } if (output.flattenedListWithMemberNamespace === "") { - contents.flattenedListWithMemberNamespace = []; - } else if (output["flattenedListWithMemberNamespace"] !== undefined) { - contents.flattenedListWithMemberNamespace = de_ListWithMemberNamespace( - __getArrayIfSingleItem(output["flattenedListWithMemberNamespace"]), - context - ); + contents[_fLWMN] = []; + } else if (output[_fLWMN] != null) { + contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(output[_fLWMN]), context); } if (output.flattenedListWithNamespace === "") { - contents.flattenedListWithNamespace = []; - } else if (output["flattenedListWithNamespace"] !== undefined) { - contents.flattenedListWithNamespace = de_ListWithNamespace( - __getArrayIfSingleItem(output["flattenedListWithNamespace"]), - context - ); + contents[_fLWN] = []; + } else if (output[_fLWN] != null) { + contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(output[_fLWN]), context); } if (output.myStructureList === "") { - contents.structureList = []; - } else if (output["myStructureList"] !== undefined && output["myStructureList"]["item"] !== undefined) { - contents.structureList = de_StructureList(__getArrayIfSingleItem(output["myStructureList"]["item"]), context); + contents[_sLt] = []; + } else if (output[_mSL] != null && output[_mSL][_i] != null) { + contents[_sLt] = de_StructureList(__getArrayIfSingleItem(output[_mSL][_i]), context); } return contents; }; @@ -2932,9 +2923,9 @@ const de_XmlListsOutput = (output: any, context: __SerdeContext): XmlListsOutput const de_XmlMapsOutput = (output: any, context: __SerdeContext): XmlMapsOutput => { const contents: any = {}; if (output.myMap === "") { - contents.myMap = {}; - } else if (output["myMap"] !== undefined && output["myMap"]["entry"] !== undefined) { - contents.myMap = de_XmlMapsOutputMap(__getArrayIfSingleItem(output["myMap"]["entry"]), context); + contents[_mM] = {}; + } else if (output[_mM] != null && output[_mM][_en] != null) { + contents[_mM] = de_XmlMapsOutputMap(__getArrayIfSingleItem(output[_mM][_en]), context); } return contents; }; @@ -2958,9 +2949,9 @@ const de_XmlMapsOutputMap = (output: any, context: __SerdeContext): Record { const contents: any = {}; if (output.myMap === "") { - contents.myMap = {}; - } else if (output["myMap"] !== undefined && output["myMap"]["entry"] !== undefined) { - contents.myMap = de_XmlMapsXmlNameOutputMap(__getArrayIfSingleItem(output["myMap"]["entry"]), context); + contents[_mM] = {}; + } else if (output[_mM] != null && output[_mM][_en] != null) { + contents[_mM] = de_XmlMapsXmlNameOutputMap(__getArrayIfSingleItem(output[_mM][_en]), context); } return contents; }; @@ -2994,13 +2985,13 @@ const de_XmlNamespacedList = (output: any, context: __SerdeContext): string[] => */ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespaceNested => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } if (output.values === "") { - contents.values = []; - } else if (output["values"] !== undefined && output["values"]["member"] !== undefined) { - contents.values = de_XmlNamespacedList(__getArrayIfSingleItem(output["values"]["member"]), context); + contents[_va] = []; + } else if (output[_va] != null && output[_va][_m] != null) { + contents[_va] = de_XmlNamespacedList(__getArrayIfSingleItem(output[_va][_m]), context); } return contents; }; @@ -3010,8 +3001,8 @@ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespa */ const de_XmlNamespacesOutput = (output: any, context: __SerdeContext): XmlNamespacesOutput => { const contents: any = {}; - if (output["nested"] !== undefined) { - contents.nested = de_XmlNamespaceNested(output["nested"], context); + if (output[_n] != null) { + contents[_n] = de_XmlNamespaceNested(output[_n], context); } return contents; }; @@ -3021,26 +3012,26 @@ const de_XmlNamespacesOutput = (output: any, context: __SerdeContext): XmlNamesp */ const de_XmlTimestampsOutput = (output: any, context: __SerdeContext): XmlTimestampsOutput => { const contents: any = {}; - if (output["normal"] !== undefined) { - contents.normal = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["normal"])); + if (output[_no] != null) { + contents[_no] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_no])); } - if (output["dateTime"] !== undefined) { - contents.dateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["dateTime"])); + if (output[_dT] != null) { + contents[_dT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dT])); } - if (output["dateTimeOnTarget"] !== undefined) { - contents.dateTimeOnTarget = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["dateTimeOnTarget"])); + if (output[_dTOT] != null) { + contents[_dTOT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTOT])); } - if (output["epochSeconds"] !== undefined) { - contents.epochSeconds = __expectNonNull(__parseEpochTimestamp(output["epochSeconds"])); + if (output[_eS] != null) { + contents[_eS] = __expectNonNull(__parseEpochTimestamp(output[_eS])); } - if (output["epochSecondsOnTarget"] !== undefined) { - contents.epochSecondsOnTarget = __expectNonNull(__parseEpochTimestamp(output["epochSecondsOnTarget"])); + if (output[_eSOT] != null) { + contents[_eSOT] = __expectNonNull(__parseEpochTimestamp(output[_eSOT])); } - if (output["httpDate"] !== undefined) { - contents.httpDate = __expectNonNull(__parseRfc7231DateTime(output["httpDate"])); + if (output[_hD] != null) { + contents[_hD] = __expectNonNull(__parseRfc7231DateTime(output[_hD])); } - if (output["httpDateOnTarget"] !== undefined) { - contents.httpDateOnTarget = __expectNonNull(__parseRfc7231DateTime(output["httpDateOnTarget"])); + if (output[_hDOT] != null) { + contents[_hDOT] = __expectNonNull(__parseRfc7231DateTime(output[_hDOT])); } return contents; }; @@ -3096,8 +3087,8 @@ const de_FooEnumSet = (output: any, context: __SerdeContext): FooEnum[] => { */ const de_GreetingStruct = (output: any, context: __SerdeContext): GreetingStruct => { const contents: any = {}; - if (output["hi"] !== undefined) { - contents.hi = __expectString(output["hi"]); + if (output[_h] != null) { + contents[_h] = __expectString(output[_h]); } return contents; }; @@ -3233,6 +3224,142 @@ const SHARED_HEADERS: __HeaderBag = { "content-type": "application/x-www-form-urlencoded", }; +const _ = "2020-01-08"; +const _A = "Action"; +const _B = "Bar"; +const _Ba = "Baz"; +const _Bam = "Bam"; +const _Bo = "Boo"; +const _CLA = "ComplexListArg"; +const _CMA = "ComplexMapArg"; +const _DD = "DoubleDribble"; +const _DO = "DatetimeOffsets"; +const _EIAEO = "EmptyInputAndEmptyOutput"; +const _EO = "EndpointOperation"; +const _EWHLO = "EndpointWithHostLabelOperation"; +const _F = "Foo"; +const _FE = "FooEnum"; +const _FLA = "FlattenedListArg"; +const _FLAWXN = "FlattenedListArgWithXmlName"; +const _FM = "FlattenedMap"; +const _FMWXN = "FlattenedMapWithXmlName"; +const _FS = "FractionalSeconds"; +const _FV = "FloatValue"; +const _FXM = "FlattenedXmlMap"; +const _FXMWXN = "FlattenedXmlMapWithXmlName"; +const _FXMWXNl = "FlattenedXmlMapWithXmlNamespace"; +const _GWE = "GreetingWithErrors"; +const _HWPO = "HostWithPathOperation"; +const _IE = "IntegerEnum"; +const _IWXN = "IgnoresWrappingXmlName"; +const _KVP = "KVP"; +const _LA = "ListArg"; +const _LAWXNM = "ListArgWithXmlNameMember"; +const _M = "Message"; +const _MA = "MapArg"; +const _MOL = "MapOfLists"; +const _MWXMN = "MapWithXmlMemberName"; +const _N = "Nested"; +const _NIANO = "NoInputAndNoOutput"; +const _NIAO = "NoInputAndOutput"; +const _NS = "NestedStructures"; +const _NSWM = "NestedStructWithMap"; +const _NWL = "NestedWithList"; +const _OA = "OtherArg"; +const _PWCE = "PutWithContentEncoding"; +const _Q = "Qux"; +const _QITAF = "QueryIdempotencyTokenAutoFill"; +const _QL = "QueryLists"; +const _QM = "QueryMaps"; +const _QT = "QueryTimestamps"; +const _RA = "RecursiveArg"; +const _RMA = "RenamedMapArg"; +const _RXS = "RecursiveXmlShapes"; +const _SA = "StringArg"; +const _SIP = "SimpleInputParams"; +const _SSXP = "SimpleScalarXmlProperties"; +const _TL = "TopLevel"; +const _V = "Version"; +const _XB = "XmlBlobs"; +const _XE = "XmlEnums"; +const _XEB = "XmlEmptyBlobs"; +const _XEL = "XmlEmptyLists"; +const _XEM = "XmlEmptyMaps"; +const _XIE = "XmlIntEnums"; +const _XL = "XmlLists"; +const _XM = "XmlMaps"; +const _XMXN = "XmlMapsXmlName"; +const _XN = "XmlNamespaces"; +const _XT = "XmlTimestamps"; +const _a = "a"; +const _b = "bar"; +const _bL = "booleanList"; +const _bV = "byteValue"; +const _b_ = "b"; +const _cN = "customName"; +const _d = "data"; +const _dT = "dateTime"; +const _dTOT = "dateTimeOnTarget"; +const _dV = "doubleValue"; +const _da = "datetime"; +const _e = "encoding"; +const _eL = "enumList"; +const _eM = "epochMember"; +const _eS = "epochSeconds"; +const _eSOT = "epochSecondsOnTarget"; +const _eSV = "emptyStringValue"; +const _eT = "epochTarget"; +const _en = "entry"; +const _f = "foo"; +const _fBV = "falseBooleanValue"; +const _fE = "fooEnum1"; +const _fEL = "fooEnumList"; +const _fEM = "fooEnumMap"; +const _fES = "fooEnumSet"; +const _fEo = "fooEnum2"; +const _fEoo = "fooEnum3"; +const _fL = "flattenedList"; +const _fLWMN = "flattenedListWithMemberNamespace"; +const _fLWN = "flattenedListWithNamespace"; +const _fLl = "flattenedList2"; +const _fV = "floatValue"; +const _g = "greeting"; +const _h = "hi"; +const _hD = "httpDate"; +const _hDOT = "httpDateOnTarget"; +const _i = "item"; +const _iE = "intEnum1"; +const _iEL = "intEnumList"; +const _iEM = "intEnumMap"; +const _iES = "intEnumSet"; +const _iEn = "intEnum2"; +const _iEnt = "intEnum3"; +const _iL = "integerList"; +const _iV = "integerValue"; +const _l = "label"; +const _lV = "longValue"; +const _m = "member"; +const _mM = "myMap"; +const _mSL = "myStructureList"; +const _n = "nested"; +const _nF = "normalFormat"; +const _nSL = "nestedStringList"; +const _no = "normal"; +const _o = "other"; +const _r = "renamed"; +const _rLM = "renamedListMembers"; +const _rM = "recursiveMember"; +const _sL = "stringList"; +const _sLt = "structureList"; +const _sS = "stringSet"; +const _sV = "stringValue"; +const _sVh = "shortValue"; +const _t = "token"; +const _tBV = "trueBooleanValue"; +const _tL = "timestampList"; +const _v = "value"; +const _va = "values"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/private/aws-protocoltests-restjson/package.json b/private/aws-protocoltests-restjson/package.json index 5a8e8afe675b..f7c8a50f8d87 100644 --- a/private/aws-protocoltests-restjson/package.json +++ b/private/aws-protocoltests-restjson/package.json @@ -29,6 +29,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-blob-browser": "^2.0.16", "@smithy/hash-node": "^2.0.17", diff --git a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts index 9301f7f6fe81..da6da2dc0feb 100644 --- a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts +++ b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { awsExpectUnion as __expectUnion } from "@aws-sdk/core"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -329,79 +330,59 @@ export const se_AllQueryStringTypesCommand = async ( input: AllQueryStringTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AllQueryStringTypesInput"; + b.bp("/AllQueryStringTypesInput"); const query: any = map({ ...convertMap(input.queryParamsMapOfStringList), - String: [, input.queryString!], - StringList: [ - () => input.queryStringList !== void 0, - () => (input.queryStringList! || []).map((_entry) => _entry as any), - ], - StringSet: [ - () => input.queryStringSet !== void 0, - () => (input.queryStringSet! || []).map((_entry) => _entry as any), - ], - Byte: [() => input.queryByte !== void 0, () => input.queryByte!.toString()], - Short: [() => input.queryShort !== void 0, () => input.queryShort!.toString()], - Integer: [() => input.queryInteger !== void 0, () => input.queryInteger!.toString()], - IntegerList: [ + [_S]: [, input[_qS]!], + [_SL]: [() => input.queryStringList !== void 0, () => (input[_qSL]! || []).map((_entry) => _entry as any)], + [_SS]: [() => input.queryStringSet !== void 0, () => (input[_qSS]! || []).map((_entry) => _entry as any)], + [_B]: [() => input.queryByte !== void 0, () => input[_qB]!.toString()], + [_Sh]: [() => input.queryShort !== void 0, () => input[_qSu]!.toString()], + [_I]: [() => input.queryInteger !== void 0, () => input[_qI]!.toString()], + [_IL]: [ () => input.queryIntegerList !== void 0, - () => (input.queryIntegerList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIL]! || []).map((_entry) => _entry.toString() as any), ], - IntegerSet: [ + [_IS]: [ () => input.queryIntegerSet !== void 0, - () => (input.queryIntegerSet! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIS]! || []).map((_entry) => _entry.toString() as any), ], - Long: [() => input.queryLong !== void 0, () => input.queryLong!.toString()], - Float: [ + [_L]: [() => input.queryLong !== void 0, () => input[_qL]!.toString()], + [_F]: [ () => input.queryFloat !== void 0, - () => (input.queryFloat! % 1 == 0 ? input.queryFloat! + ".0" : input.queryFloat!.toString()), + () => (input[_qF]! % 1 == 0 ? input[_qF]! + ".0" : input[_qF]!.toString()), ], - Double: [ + [_D]: [ () => input.queryDouble !== void 0, - () => (input.queryDouble! % 1 == 0 ? input.queryDouble! + ".0" : input.queryDouble!.toString()), + () => (input[_qD]! % 1 == 0 ? input[_qD]! + ".0" : input[_qD]!.toString()), ], - DoubleList: [ + [_DL]: [ () => input.queryDoubleList !== void 0, - () => - (input.queryDoubleList! || []).map((_entry) => (_entry % 1 == 0 ? _entry + ".0" : _entry.toString()) as any), + () => (input[_qDL]! || []).map((_entry) => (_entry % 1 == 0 ? _entry + ".0" : _entry.toString()) as any), ], - Boolean: [() => input.queryBoolean !== void 0, () => input.queryBoolean!.toString()], - BooleanList: [ + [_Bo]: [() => input.queryBoolean !== void 0, () => input[_qBu]!.toString()], + [_BL]: [ () => input.queryBooleanList !== void 0, - () => (input.queryBooleanList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qBL]! || []).map((_entry) => _entry.toString() as any), ], - Timestamp: [ - () => input.queryTimestamp !== void 0, - () => (input.queryTimestamp!.toISOString().split(".")[0] + "Z").toString(), - ], - TimestampList: [ + [_T]: [() => input.queryTimestamp !== void 0, () => (input[_qT]!.toISOString().split(".")[0] + "Z").toString()], + [_TL]: [ () => input.queryTimestampList !== void 0, - () => - (input.queryTimestampList! || []).map((_entry) => (_entry.toISOString().split(".")[0] + "Z").toString() as any), + () => (input[_qTL]! || []).map((_entry) => (_entry.toISOString().split(".")[0] + "Z").toString() as any), ], - Enum: [, input.queryEnum!], - EnumList: [() => input.queryEnumList !== void 0, () => (input.queryEnumList! || []).map((_entry) => _entry as any)], - IntegerEnum: [() => input.queryIntegerEnum !== void 0, () => input.queryIntegerEnum!.toString()], - IntegerEnumList: [ + [_E]: [, input[_qE]!], + [_EL]: [() => input.queryEnumList !== void 0, () => (input[_qEL]! || []).map((_entry) => _entry as any)], + [_IE]: [() => input.queryIntegerEnum !== void 0, () => input[_qIE]!.toString()], + [_IEL]: [ () => input.queryIntegerEnumList !== void 0, - () => (input.queryIntegerEnumList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIEL]! || []).map((_entry) => _entry.toString() as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -411,26 +392,17 @@ export const se_ConstantAndVariableQueryStringCommand = async ( input: ConstantAndVariableQueryStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ConstantAndVariableQueryString"; + b.bp("/ConstantAndVariableQueryString"); const query: any = map({ - foo: [, "bar"], - baz: [, input.baz!], - maybeSet: [, input.maybeSet!], + [_f]: [, "bar"], + [_b]: [, input[_b]!], + [_mS]: [, input[_mS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -440,26 +412,17 @@ export const se_ConstantQueryStringCommand = async ( input: ConstantQueryStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ConstantQueryString/{hello}"; - resolvedPath = __resolvedPath(resolvedPath, input, "hello", () => input.hello!, "{hello}", false); + b.bp("/ConstantQueryString/{hello}"); + b.p("hello", () => input.hello!, "{hello}", false); const query: any = map({ - foo: [, "bar"], - hello: [, ""], + [_f]: [, "bar"], + [_h]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -469,22 +432,15 @@ export const se_DatetimeOffsetsCommand = async ( input: DatetimeOffsetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DatetimeOffsets"; + b.bp("/DatetimeOffsets"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -494,11 +450,11 @@ export const se_DocumentTypeCommand = async ( input: DocumentTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DocumentType"; + b.bp("/DocumentType"); let body: any; body = JSON.stringify( take(input, { @@ -506,15 +462,8 @@ export const se_DocumentTypeCommand = async ( stringValue: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -524,11 +473,11 @@ export const se_DocumentTypeAsPayloadCommand = async ( input: DocumentTypeAsPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DocumentTypeAsPayload"; + b.bp("/DocumentTypeAsPayload"); let body: any; if (input.documentValue !== undefined) { if (input.documentValue === null) { @@ -538,15 +487,8 @@ export const se_DocumentTypeAsPayloadCommand = async ( } } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -556,23 +498,15 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( input: EmptyInputAndEmptyOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EmptyInputAndEmptyOutput"; + b.bp("/EmptyInputAndEmptyOutput"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -582,11 +516,11 @@ export const se_EndpointOperationCommand = async ( input: EndpointOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EndpointOperation"; + b.bp("/EndpointOperation"); let body: any; body = ""; let { hostname: resolvedHostname } = await context.endpoint(); @@ -596,15 +530,9 @@ export const se_EndpointOperationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -614,12 +542,11 @@ export const se_EndpointWithHostLabelOperationCommand = async ( input: EndpointWithHostLabelOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EndpointWithHostLabelOperation"; + b.bp("/EndpointWithHostLabelOperation"); let body: any; body = JSON.stringify( take(input, { @@ -637,15 +564,9 @@ export const se_EndpointWithHostLabelOperationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -655,22 +576,15 @@ export const se_FractionalSecondsCommand = async ( input: FractionalSecondsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FractionalSeconds"; + b.bp("/FractionalSeconds"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -680,22 +594,15 @@ export const se_GreetingWithErrorsCommand = async ( input: GreetingWithErrorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GreetingWithErrors"; + b.bp("/GreetingWithErrors"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -705,22 +612,15 @@ export const se_HostWithPathOperationCommand = async ( input: HostWithPathOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HostWithPathOperation"; + b.bp("/HostWithPathOperation"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -730,26 +630,19 @@ export const se_HttpChecksumRequiredCommand = async ( input: HttpChecksumRequiredCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpChecksumRequired"; + b.bp("/HttpChecksumRequired"); let body: any; body = JSON.stringify( take(input, { foo: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -759,24 +652,17 @@ export const se_HttpEnumPayloadCommand = async ( input: HttpEnumPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "text/plain", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EnumPayload"; + b.bp("/EnumPayload"); let body: any; if (input.payload !== undefined) { body = input.payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -786,25 +672,18 @@ export const se_HttpPayloadTraitsCommand = async ( input: HttpPayloadTraitsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadTraits"; + b.bp("/HttpPayloadTraits"); let body: any; if (input.blob !== undefined) { body = input.blob; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -814,26 +693,18 @@ export const se_HttpPayloadTraitsWithMediaTypeCommand = async ( input: HttpPayloadTraitsWithMediaTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "text/plain", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadTraitsWithMediaType"; + b.bp("/HttpPayloadTraitsWithMediaType"); let body: any; if (input.blob !== undefined) { body = input.blob; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -843,12 +714,11 @@ export const se_HttpPayloadWithStructureCommand = async ( input: HttpPayloadWithStructureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithStructure"; + b.bp("/HttpPayloadWithStructure"); let body: any; if (input.nested !== undefined) { body = _json(input.nested); @@ -857,15 +727,8 @@ export const se_HttpPayloadWithStructureCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -875,11 +738,11 @@ export const se_HttpPayloadWithUnionCommand = async ( input: HttpPayloadWithUnionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithUnion"; + b.bp("/HttpPayloadWithUnion"); let body: any; if (input.nested !== undefined) { body = _json(input.nested); @@ -888,15 +751,8 @@ export const se_HttpPayloadWithUnionCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -906,26 +762,19 @@ export const se_HttpPrefixHeadersCommand = async ( input: HttpPrefixHeadersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-foo": input.foo!, + [_xf]: input[_f]!, ...(input.fooMap !== undefined && Object.keys(input.fooMap).reduce((acc: any, suffix: string) => { acc[`x-foo-${suffix.toLowerCase()}`] = input.fooMap![suffix]; return acc; }, {})), }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPrefixHeaders"; + b.bp("/HttpPrefixHeaders"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -935,23 +784,15 @@ export const se_HttpPrefixHeadersInResponseCommand = async ( input: HttpPrefixHeadersInResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPrefixHeadersResponse"; + b.bp("/HttpPrefixHeadersResponse"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -961,36 +802,14 @@ export const se_HttpRequestWithFloatLabelsCommand = async ( input: HttpRequestWithFloatLabelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FloatHttpLabels/{float}/{double}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "float", - () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), - "{float}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "double", - () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), - "{double}", - false - ); + b.bp("/FloatHttpLabels/{float}/{double}"); + b.p("float", () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), "{float}", false); + b.p("double", () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), "{double}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1000,23 +819,14 @@ export const se_HttpRequestWithGreedyLabelInPathCommand = async ( input: HttpRequestWithGreedyLabelInPathCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/HttpRequestWithGreedyLabelInPath/foo/{foo}/baz/{baz+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "foo", () => input.foo!, "{foo}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "baz", () => input.baz!, "{baz+}", true); + b.bp("/HttpRequestWithGreedyLabelInPath/foo/{foo}/baz/{baz+}"); + b.p("foo", () => input.foo!, "{foo}", false); + b.p("baz", () => input.baz!, "{baz+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1026,50 +836,20 @@ export const se_HttpRequestWithLabelsCommand = async ( input: HttpRequestWithLabelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}"; - resolvedPath = __resolvedPath(resolvedPath, input, "string", () => input.string!, "{string}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "short", () => input.short!.toString(), "{short}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "integer", () => input.integer!.toString(), "{integer}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "long", () => input.long!.toString(), "{long}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "float", - () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), - "{float}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "double", - () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), - "{double}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "boolean", () => input.boolean!.toString(), "{boolean}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "timestamp", - () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), - "{timestamp}", - false - ); + b.bp("/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}"); + b.p("string", () => input.string!, "{string}", false); + b.p("short", () => input.short!.toString(), "{short}", false); + b.p("integer", () => input.integer!.toString(), "{integer}", false); + b.p("long", () => input.long!.toString(), "{long}", false); + b.p("float", () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), "{float}", false); + b.p("double", () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), "{double}", false); + b.p("boolean", () => input.boolean!.toString(), "{boolean}", false); + b.p("timestamp", () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), "{timestamp}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1079,77 +859,46 @@ export const se_HttpRequestWithLabelsAndTimestampFormatCommand = async ( input: HttpRequestWithLabelsAndTimestampFormatCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp( + "/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}" + ); + b.p( "memberEpochSeconds", () => Math.round(input.memberEpochSeconds!.getTime() / 1000).toString(), "{memberEpochSeconds}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "memberHttpDate", - () => __dateToUtcString(input.memberHttpDate!).toString(), - "{memberHttpDate}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("memberHttpDate", () => __dateToUtcString(input.memberHttpDate!).toString(), "{memberHttpDate}", false); + b.p( "memberDateTime", () => (input.memberDateTime!.toISOString().split(".")[0] + "Z").toString(), "{memberDateTime}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p( "defaultFormat", () => (input.defaultFormat!.toISOString().split(".")[0] + "Z").toString(), "{defaultFormat}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p( "targetEpochSeconds", () => Math.round(input.targetEpochSeconds!.getTime() / 1000).toString(), "{targetEpochSeconds}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetHttpDate", - () => __dateToUtcString(input.targetHttpDate!).toString(), - "{targetHttpDate}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("targetHttpDate", () => __dateToUtcString(input.targetHttpDate!).toString(), "{targetHttpDate}", false); + b.p( "targetDateTime", () => (input.targetDateTime!.toISOString().split(".")[0] + "Z").toString(), "{targetDateTime}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1159,21 +908,13 @@ export const se_HttpRequestWithRegexLiteralCommand = async ( input: HttpRequestWithRegexLiteralCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ReDosLiteral/{str}/(a+)+"; - resolvedPath = __resolvedPath(resolvedPath, input, "str", () => input.str!, "{str}", false); + b.bp("/ReDosLiteral/{str}/(a+)+"); + b.p("str", () => input.str!, "{str}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1183,22 +924,15 @@ export const se_HttpResponseCodeCommand = async ( input: HttpResponseCodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpResponseCode"; + b.bp("/HttpResponseCode"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1208,24 +942,17 @@ export const se_HttpStringPayloadCommand = async ( input: HttpStringPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "text/plain", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StringPayload"; + b.bp("/StringPayload"); let body: any; if (input.payload !== undefined) { body = input.payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1235,23 +962,15 @@ export const se_IgnoreQueryParamsInResponseCommand = async ( input: IgnoreQueryParamsInResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/IgnoreQueryParamsInResponse"; + b.bp("/IgnoreQueryParamsInResponse"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1261,69 +980,58 @@ export const se_InputAndOutputWithHeadersCommand = async ( input: InputAndOutputWithHeadersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-string": input.headerString!, - "x-byte": [() => isSerializableHeaderValue(input.headerByte), () => input.headerByte!.toString()], - "x-short": [() => isSerializableHeaderValue(input.headerShort), () => input.headerShort!.toString()], - "x-integer": [() => isSerializableHeaderValue(input.headerInteger), () => input.headerInteger!.toString()], - "x-long": [() => isSerializableHeaderValue(input.headerLong), () => input.headerLong!.toString()], - "x-float": [ - () => isSerializableHeaderValue(input.headerFloat), - () => (input.headerFloat! % 1 == 0 ? input.headerFloat! + ".0" : input.headerFloat!.toString()), + [_xs]: input[_hS]!, + [_xb]: [() => isSerializableHeaderValue(input[_hB]), () => input[_hB]!.toString()], + [_xs_]: [() => isSerializableHeaderValue(input[_hSe]), () => input[_hSe]!.toString()], + [_xi]: [() => isSerializableHeaderValue(input[_hI]), () => input[_hI]!.toString()], + [_xl]: [() => isSerializableHeaderValue(input[_hL]), () => input[_hL]!.toString()], + [_xf_]: [ + () => isSerializableHeaderValue(input[_hF]), + () => (input[_hF]! % 1 == 0 ? input[_hF]! + ".0" : input[_hF]!.toString()), ], - "x-double": [ - () => isSerializableHeaderValue(input.headerDouble), - () => (input.headerDouble! % 1 == 0 ? input.headerDouble! + ".0" : input.headerDouble!.toString()), + [_xd]: [ + () => isSerializableHeaderValue(input[_hD]), + () => (input[_hD]! % 1 == 0 ? input[_hD]! + ".0" : input[_hD]!.toString()), ], - "x-boolean1": [() => isSerializableHeaderValue(input.headerTrueBool), () => input.headerTrueBool!.toString()], - "x-boolean2": [() => isSerializableHeaderValue(input.headerFalseBool), () => input.headerFalseBool!.toString()], - "x-stringlist": [ - () => isSerializableHeaderValue(input.headerStringList), - () => (input.headerStringList! || []).map((_entry) => _entry as any).join(", "), + [_xb_]: [() => isSerializableHeaderValue(input[_hTB]), () => input[_hTB]!.toString()], + [_xb__]: [() => isSerializableHeaderValue(input[_hFB]), () => input[_hFB]!.toString()], + [_xs__]: [ + () => isSerializableHeaderValue(input[_hSL]), + () => (input[_hSL]! || []).map((_entry) => _entry as any).join(", "), ], - "x-stringset": [ - () => isSerializableHeaderValue(input.headerStringSet), - () => (input.headerStringSet! || []).map((_entry) => _entry as any).join(", "), + [_xs___]: [ + () => isSerializableHeaderValue(input[_hSS]), + () => (input[_hSS]! || []).map((_entry) => _entry as any).join(", "), ], - "x-integerlist": [ - () => isSerializableHeaderValue(input.headerIntegerList), - () => (input.headerIntegerList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xi_]: [ + () => isSerializableHeaderValue(input[_hIL]), + () => (input[_hIL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], - "x-booleanlist": [ - () => isSerializableHeaderValue(input.headerBooleanList), - () => (input.headerBooleanList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xb___]: [ + () => isSerializableHeaderValue(input[_hBL]), + () => (input[_hBL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], - "x-timestamplist": [ - () => isSerializableHeaderValue(input.headerTimestampList), - () => (input.headerTimestampList! || []).map((_entry) => __dateToUtcString(_entry).toString() as any).join(", "), + [_xt]: [ + () => isSerializableHeaderValue(input[_hTL]), + () => (input[_hTL]! || []).map((_entry) => __dateToUtcString(_entry).toString() as any).join(", "), ], - "x-enum": input.headerEnum!, - "x-enumlist": [ - () => isSerializableHeaderValue(input.headerEnumList), - () => (input.headerEnumList! || []).map((_entry) => _entry as any).join(", "), + [_xe]: input[_hE]!, + [_xe_]: [ + () => isSerializableHeaderValue(input[_hEL]), + () => (input[_hEL]! || []).map((_entry) => _entry as any).join(", "), ], - "x-integerenum": [ - () => isSerializableHeaderValue(input.headerIntegerEnum), - () => input.headerIntegerEnum!.toString(), - ], - "x-integerenumlist": [ - () => isSerializableHeaderValue(input.headerIntegerEnumList), - () => (input.headerIntegerEnumList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xi__]: [() => isSerializableHeaderValue(input[_hIE]), () => input[_hIE]!.toString()], + [_xi___]: [ + () => isSerializableHeaderValue(input[_hIEL]), + () => (input[_hIEL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InputAndOutputWithHeaders"; + b.bp("/InputAndOutputWithHeaders"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1333,26 +1041,19 @@ export const se_JsonBlobsCommand = async ( input: JsonBlobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/JsonBlobs"; + b.bp("/JsonBlobs"); let body: any; body = JSON.stringify( take(input, { data: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1362,11 +1063,11 @@ export const se_JsonEnumsCommand = async ( input: JsonEnumsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/JsonEnums"; + b.bp("/JsonEnums"); let body: any; body = JSON.stringify( take(input, { @@ -1378,15 +1079,8 @@ export const se_JsonEnumsCommand = async ( fooEnumSet: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1396,11 +1090,11 @@ export const se_JsonIntEnumsCommand = async ( input: JsonIntEnumsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/JsonIntEnums"; + b.bp("/JsonIntEnums"); let body: any; body = JSON.stringify( take(input, { @@ -1412,15 +1106,8 @@ export const se_JsonIntEnumsCommand = async ( integerEnumSet: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1430,11 +1117,11 @@ export const se_JsonListsCommand = async ( input: JsonListsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/JsonLists"; + b.bp("/JsonLists"); let body: any; body = JSON.stringify( take(input, { @@ -1450,15 +1137,8 @@ export const se_JsonListsCommand = async ( timestampList: (_) => se_TimestampList(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1468,11 +1148,11 @@ export const se_JsonMapsCommand = async ( input: JsonMapsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/JsonMaps"; + b.bp("/JsonMaps"); let body: any; body = JSON.stringify( take(input, { @@ -1488,15 +1168,8 @@ export const se_JsonMapsCommand = async ( sparseStructMap: (_) => se_SparseStructMap(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1506,11 +1179,11 @@ export const se_JsonTimestampsCommand = async ( input: JsonTimestampsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/JsonTimestamps"; + b.bp("/JsonTimestamps"); let body: any; body = JSON.stringify( take(input, { @@ -1523,15 +1196,8 @@ export const se_JsonTimestampsCommand = async ( normal: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1541,26 +1207,19 @@ export const se_JsonUnionsCommand = async ( input: JsonUnionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/JsonUnions"; + b.bp("/JsonUnions"); let body: any; body = JSON.stringify( take(input, { contents: (_) => se_MyUnion(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1570,23 +1229,15 @@ export const se_MalformedAcceptWithBodyCommand = async ( input: MalformedAcceptWithBodyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedAcceptWithBody"; + b.bp("/MalformedAcceptWithBody"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1596,23 +1247,15 @@ export const se_MalformedAcceptWithGenericStringCommand = async ( input: MalformedAcceptWithGenericStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedAcceptWithGenericString"; + b.bp("/MalformedAcceptWithGenericString"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1622,23 +1265,15 @@ export const se_MalformedAcceptWithPayloadCommand = async ( input: MalformedAcceptWithPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedAcceptWithPayload"; + b.bp("/MalformedAcceptWithPayload"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1648,26 +1283,19 @@ export const se_MalformedBlobCommand = async ( input: MalformedBlobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedBlob"; + b.bp("/MalformedBlob"); let body: any; body = JSON.stringify( take(input, { blob: (_) => context.base64Encoder(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1677,23 +1305,15 @@ export const se_MalformedBooleanCommand = async ( input: MalformedBooleanCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - booleaninheader: [() => isSerializableHeaderValue(input.booleanInHeader), () => input.booleanInHeader!.toString()], - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedBoolean/{booleanInPath}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "booleanInPath", - () => input.booleanInPath!.toString(), - "{booleanInPath}", - false - ); + [_bo]: [() => isSerializableHeaderValue(input[_bIH]), () => input[_bIH]!.toString()], + }); + b.bp("/MalformedBoolean/{booleanInPath}"); + b.p("booleanInPath", () => input.booleanInPath!.toString(), "{booleanInPath}", false); const query: any = map({ - booleanInQuery: [() => input.booleanInQuery !== void 0, () => input.booleanInQuery!.toString()], + [_bIQ]: [() => input.booleanInQuery !== void 0, () => input[_bIQ]!.toString()], }); let body: any; body = JSON.stringify( @@ -1701,16 +1321,8 @@ export const se_MalformedBooleanCommand = async ( booleanInBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1720,23 +1332,15 @@ export const se_MalformedByteCommand = async ( input: MalformedByteCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - byteinheader: [() => isSerializableHeaderValue(input.byteInHeader), () => input.byteInHeader!.toString()], - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedByte/{byteInPath}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "byteInPath", - () => input.byteInPath!.toString(), - "{byteInPath}", - false - ); + [_by]: [() => isSerializableHeaderValue(input[_bIHy]), () => input[_bIHy]!.toString()], + }); + b.bp("/MalformedByte/{byteInPath}"); + b.p("byteInPath", () => input.byteInPath!.toString(), "{byteInPath}", false); const query: any = map({ - byteInQuery: [() => input.byteInQuery !== void 0, () => input.byteInQuery!.toString()], + [_bIQy]: [() => input.byteInQuery !== void 0, () => input[_bIQy]!.toString()], }); let body: any; body = JSON.stringify( @@ -1744,16 +1348,8 @@ export const se_MalformedByteCommand = async ( byteInBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1763,27 +1359,19 @@ export const se_MalformedContentTypeWithBodyCommand = async ( input: MalformedContentTypeWithBodyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedContentTypeWithBody"; + b.bp("/MalformedContentTypeWithBody"); let body: any; body = JSON.stringify( take(input, { hi: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1793,25 +1381,17 @@ export const se_MalformedContentTypeWithGenericStringCommand = async ( input: MalformedContentTypeWithGenericStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "text/plain", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedContentTypeWithGenericString"; + b.bp("/MalformedContentTypeWithGenericString"); let body: any; if (input.payload !== undefined) { body = input.payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1821,23 +1401,15 @@ export const se_MalformedContentTypeWithoutBodyCommand = async ( input: MalformedContentTypeWithoutBodyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedContentTypeWithoutBody"; + b.bp("/MalformedContentTypeWithoutBody"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1847,25 +1419,17 @@ export const se_MalformedContentTypeWithPayloadCommand = async ( input: MalformedContentTypeWithPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "image/jpeg", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedContentTypeWithPayload"; + b.bp("/MalformedContentTypeWithPayload"); let body: any; if (input.payload !== undefined) { body = input.payload; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1875,28 +1439,25 @@ export const se_MalformedDoubleCommand = async ( input: MalformedDoubleCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - doubleinheader: [ - () => isSerializableHeaderValue(input.doubleInHeader), - () => (input.doubleInHeader! % 1 == 0 ? input.doubleInHeader! + ".0" : input.doubleInHeader!.toString()), + [_d]: [ + () => isSerializableHeaderValue(input[_dIH]), + () => (input[_dIH]! % 1 == 0 ? input[_dIH]! + ".0" : input[_dIH]!.toString()), ], }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedDouble/{doubleInPath}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/MalformedDouble/{doubleInPath}"); + b.p( "doubleInPath", () => (input.doubleInPath! % 1 == 0 ? input.doubleInPath! + ".0" : input.doubleInPath!.toString()), "{doubleInPath}", false ); const query: any = map({ - doubleInQuery: [ + [_dIQ]: [ () => input.doubleInQuery !== void 0, - () => (input.doubleInQuery! % 1 == 0 ? input.doubleInQuery! + ".0" : input.doubleInQuery!.toString()), + () => (input[_dIQ]! % 1 == 0 ? input[_dIQ]! + ".0" : input[_dIQ]!.toString()), ], }); let body: any; @@ -1905,16 +1466,8 @@ export const se_MalformedDoubleCommand = async ( doubleInBody: (_) => __serializeFloat(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1924,28 +1477,25 @@ export const se_MalformedFloatCommand = async ( input: MalformedFloatCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - floatinheader: [ - () => isSerializableHeaderValue(input.floatInHeader), - () => (input.floatInHeader! % 1 == 0 ? input.floatInHeader! + ".0" : input.floatInHeader!.toString()), + [_fl]: [ + () => isSerializableHeaderValue(input[_fIH]), + () => (input[_fIH]! % 1 == 0 ? input[_fIH]! + ".0" : input[_fIH]!.toString()), ], }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedFloat/{floatInPath}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp("/MalformedFloat/{floatInPath}"); + b.p( "floatInPath", () => (input.floatInPath! % 1 == 0 ? input.floatInPath! + ".0" : input.floatInPath!.toString()), "{floatInPath}", false ); const query: any = map({ - floatInQuery: [ + [_fIQ]: [ () => input.floatInQuery !== void 0, - () => (input.floatInQuery! % 1 == 0 ? input.floatInQuery! + ".0" : input.floatInQuery!.toString()), + () => (input[_fIQ]! % 1 == 0 ? input[_fIQ]! + ".0" : input[_fIQ]!.toString()), ], }); let body: any; @@ -1954,16 +1504,8 @@ export const se_MalformedFloatCommand = async ( floatInBody: (_) => __serializeFloat(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1973,23 +1515,15 @@ export const se_MalformedIntegerCommand = async ( input: MalformedIntegerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - integerinheader: [() => isSerializableHeaderValue(input.integerInHeader), () => input.integerInHeader!.toString()], - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedInteger/{integerInPath}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "integerInPath", - () => input.integerInPath!.toString(), - "{integerInPath}", - false - ); + [_i]: [() => isSerializableHeaderValue(input[_iIH]), () => input[_iIH]!.toString()], + }); + b.bp("/MalformedInteger/{integerInPath}"); + b.p("integerInPath", () => input.integerInPath!.toString(), "{integerInPath}", false); const query: any = map({ - integerInQuery: [() => input.integerInQuery !== void 0, () => input.integerInQuery!.toString()], + [_iIQ]: [() => input.integerInQuery !== void 0, () => input[_iIQ]!.toString()], }); let body: any; body = JSON.stringify( @@ -1997,16 +1531,8 @@ export const se_MalformedIntegerCommand = async ( integerInBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2016,26 +1542,19 @@ export const se_MalformedListCommand = async ( input: MalformedListCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedList"; + b.bp("/MalformedList"); let body: any; body = JSON.stringify( take(input, { bodyList: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2045,23 +1564,15 @@ export const se_MalformedLongCommand = async ( input: MalformedLongCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - longinheader: [() => isSerializableHeaderValue(input.longInHeader), () => input.longInHeader!.toString()], - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedLong/{longInPath}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "longInPath", - () => input.longInPath!.toString(), - "{longInPath}", - false - ); + [_l]: [() => isSerializableHeaderValue(input[_lIH]), () => input[_lIH]!.toString()], + }); + b.bp("/MalformedLong/{longInPath}"); + b.p("longInPath", () => input.longInPath!.toString(), "{longInPath}", false); const query: any = map({ - longInQuery: [() => input.longInQuery !== void 0, () => input.longInQuery!.toString()], + [_lIQ]: [() => input.longInQuery !== void 0, () => input[_lIQ]!.toString()], }); let body: any; body = JSON.stringify( @@ -2069,16 +1580,8 @@ export const se_MalformedLongCommand = async ( longInBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2088,26 +1591,19 @@ export const se_MalformedMapCommand = async ( input: MalformedMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedMap"; + b.bp("/MalformedMap"); let body: any; body = JSON.stringify( take(input, { bodyMap: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2117,11 +1613,11 @@ export const se_MalformedRequestBodyCommand = async ( input: MalformedRequestBodyCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedRequestBody"; + b.bp("/MalformedRequestBody"); let body: any; body = JSON.stringify( take(input, { @@ -2129,15 +1625,8 @@ export const se_MalformedRequestBodyCommand = async ( int: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2147,23 +1636,15 @@ export const se_MalformedShortCommand = async ( input: MalformedShortCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - shortinheader: [() => isSerializableHeaderValue(input.shortInHeader), () => input.shortInHeader!.toString()], - }); - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedShort/{shortInPath}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "shortInPath", - () => input.shortInPath!.toString(), - "{shortInPath}", - false - ); + [_s]: [() => isSerializableHeaderValue(input[_sIH]), () => input[_sIH]!.toString()], + }); + b.bp("/MalformedShort/{shortInPath}"); + b.p("shortInPath", () => input.shortInPath!.toString(), "{shortInPath}", false); const query: any = map({ - shortInQuery: [() => input.shortInQuery !== void 0, () => input.shortInQuery!.toString()], + [_sIQ]: [() => input.shortInQuery !== void 0, () => input[_sIQ]!.toString()], }); let body: any; body = JSON.stringify( @@ -2171,16 +1652,8 @@ export const se_MalformedShortCommand = async ( shortInBody: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2190,24 +1663,17 @@ export const se_MalformedStringCommand = async ( input: MalformedStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "amz-media-typed-header": [ - () => isSerializableHeaderValue(input.blob), - () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.blob!))), + [_amth]: [ + () => isSerializableHeaderValue(input[_bl]), + () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input[_bl]!))), ], }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedString"; + b.bp("/MalformedString"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2217,27 +1683,19 @@ export const se_MalformedTimestampBodyDateTimeCommand = async ( input: MalformedTimestampBodyDateTimeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampBodyDateTime"; + b.bp("/MalformedTimestampBodyDateTime"); let body: any; body = JSON.stringify( take(input, { timestamp: (_) => _.toISOString().split(".")[0] + "Z", }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2247,27 +1705,19 @@ export const se_MalformedTimestampBodyDefaultCommand = async ( input: MalformedTimestampBodyDefaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampBodyDefault"; + b.bp("/MalformedTimestampBodyDefault"); let body: any; body = JSON.stringify( take(input, { timestamp: (_) => Math.round(_.getTime() / 1000), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2277,27 +1727,19 @@ export const se_MalformedTimestampBodyHttpDateCommand = async ( input: MalformedTimestampBodyHttpDateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampBodyHttpDate"; + b.bp("/MalformedTimestampBodyHttpDate"); let body: any; body = JSON.stringify( take(input, { timestamp: (_) => __dateToUtcString(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2307,25 +1749,14 @@ export const se_MalformedTimestampHeaderDateTimeCommand = async ( input: MalformedTimestampHeaderDateTimeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - timestamp: [ - () => isSerializableHeaderValue(input.timestamp), - () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), - ], + [_t]: [() => isSerializableHeaderValue(input[_t]), () => (input[_t]!.toISOString().split(".")[0] + "Z").toString()], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampHeaderDateTime"; + b.bp("/MalformedTimestampHeaderDateTime"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2335,22 +1766,14 @@ export const se_MalformedTimestampHeaderDefaultCommand = async ( input: MalformedTimestampHeaderDefaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - timestamp: [() => isSerializableHeaderValue(input.timestamp), () => __dateToUtcString(input.timestamp!).toString()], + [_t]: [() => isSerializableHeaderValue(input[_t]), () => __dateToUtcString(input[_t]!).toString()], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampHeaderDefault"; + b.bp("/MalformedTimestampHeaderDefault"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2360,25 +1783,14 @@ export const se_MalformedTimestampHeaderEpochCommand = async ( input: MalformedTimestampHeaderEpochCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - timestamp: [ - () => isSerializableHeaderValue(input.timestamp), - () => Math.round(input.timestamp!.getTime() / 1000).toString(), - ], + [_t]: [() => isSerializableHeaderValue(input[_t]), () => Math.round(input[_t]!.getTime() / 1000).toString()], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampHeaderEpoch"; + b.bp("/MalformedTimestampHeaderEpoch"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2388,29 +1800,13 @@ export const se_MalformedTimestampPathDefaultCommand = async ( input: MalformedTimestampPathDefaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/MalformedTimestampPathDefault/{timestamp}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "timestamp", - () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), - "{timestamp}", - false - ); + b.bp("/MalformedTimestampPathDefault/{timestamp}"); + b.p("timestamp", () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), "{timestamp}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2420,28 +1816,13 @@ export const se_MalformedTimestampPathEpochCommand = async ( input: MalformedTimestampPathEpochCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampPathEpoch/{timestamp}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "timestamp", - () => Math.round(input.timestamp!.getTime() / 1000).toString(), - "{timestamp}", - false - ); + b.bp("/MalformedTimestampPathEpoch/{timestamp}"); + b.p("timestamp", () => Math.round(input.timestamp!.getTime() / 1000).toString(), "{timestamp}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2451,29 +1832,13 @@ export const se_MalformedTimestampPathHttpDateCommand = async ( input: MalformedTimestampPathHttpDateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/MalformedTimestampPathHttpDate/{timestamp}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "timestamp", - () => __dateToUtcString(input.timestamp!).toString(), - "{timestamp}", - false - ); + b.bp("/MalformedTimestampPathHttpDate/{timestamp}"); + b.p("timestamp", () => __dateToUtcString(input.timestamp!).toString(), "{timestamp}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2483,27 +1848,18 @@ export const se_MalformedTimestampQueryDefaultCommand = async ( input: MalformedTimestampQueryDefaultCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampQueryDefault"; + b.bp("/MalformedTimestampQueryDefault"); const query: any = map({ - timestamp: [ + [_t]: [ __expectNonNull(input.timestamp, `timestamp`) != null, - () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_t]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2513,27 +1869,18 @@ export const se_MalformedTimestampQueryEpochCommand = async ( input: MalformedTimestampQueryEpochCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampQueryEpoch"; + b.bp("/MalformedTimestampQueryEpoch"); const query: any = map({ - timestamp: [ + [_t]: [ __expectNonNull(input.timestamp, `timestamp`) != null, - () => Math.round(input.timestamp!.getTime() / 1000).toString(), + () => Math.round(input[_t]!.getTime() / 1000).toString(), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2543,27 +1890,15 @@ export const se_MalformedTimestampQueryHttpDateCommand = async ( input: MalformedTimestampQueryHttpDateCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedTimestampQueryHttpDate"; + b.bp("/MalformedTimestampQueryHttpDate"); const query: any = map({ - timestamp: [ - __expectNonNull(input.timestamp, `timestamp`) != null, - () => __dateToUtcString(input.timestamp!).toString(), - ], + [_t]: [__expectNonNull(input.timestamp, `timestamp`) != null, () => __dateToUtcString(input[_t]!).toString()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2573,26 +1908,19 @@ export const se_MalformedUnionCommand = async ( input: MalformedUnionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MalformedUnion"; + b.bp("/MalformedUnion"); let body: any; body = JSON.stringify( take(input, { union: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2602,24 +1930,17 @@ export const se_MediaTypeHeaderCommand = async ( input: MediaTypeHeaderCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-json": [ - () => isSerializableHeaderValue(input.json), - () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.json!))), + [_xj]: [ + () => isSerializableHeaderValue(input[_j]), + () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input[_j]!))), ], }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MediaTypeHeader"; + b.bp("/MediaTypeHeader"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2629,22 +1950,15 @@ export const se_NoInputAndNoOutputCommand = async ( input: NoInputAndNoOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NoInputAndNoOutput"; + b.bp("/NoInputAndNoOutput"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2654,23 +1968,15 @@ export const se_NoInputAndOutputCommand = async ( input: NoInputAndOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NoInputAndOutputOutput"; + b.bp("/NoInputAndOutputOutput"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2680,24 +1986,19 @@ export const se_NullAndEmptyHeadersClientCommand = async ( input: NullAndEmptyHeadersClientCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-a": input.a!, - "x-b": input.b!, - "x-c": [() => isSerializableHeaderValue(input.c), () => (input.c! || []).map((_entry) => _entry as any).join(", ")], + [_xa]: input[_a]!, + [_xb____]: input[_b_]!, + [_xc]: [ + () => isSerializableHeaderValue(input[_c]), + () => (input[_c]! || []).map((_entry) => _entry as any).join(", "), + ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NullAndEmptyHeadersClient"; + b.bp("/NullAndEmptyHeadersClient"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2707,24 +2008,19 @@ export const se_NullAndEmptyHeadersServerCommand = async ( input: NullAndEmptyHeadersServerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-a": input.a!, - "x-b": input.b!, - "x-c": [() => isSerializableHeaderValue(input.c), () => (input.c! || []).map((_entry) => _entry as any).join(", ")], + [_xa]: input[_a]!, + [_xb____]: input[_b_]!, + [_xc]: [ + () => isSerializableHeaderValue(input[_c]), + () => (input[_c]! || []).map((_entry) => _entry as any).join(", "), + ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NullAndEmptyHeadersServer"; + b.bp("/NullAndEmptyHeadersServer"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -2734,25 +2030,16 @@ export const se_OmitsNullSerializesEmptyStringCommand = async ( input: OmitsNullSerializesEmptyStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/OmitsNullSerializesEmptyString"; + b.bp("/OmitsNullSerializesEmptyString"); const query: any = map({ - Null: [, input.nullValue!], - Empty: [, input.emptyString!], + [_N]: [, input[_nV]!], + [_Em]: [, input[_eS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2762,50 +2049,36 @@ export const se_OmitsSerializingEmptyListsCommand = async ( input: OmitsSerializingEmptyListsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/OmitsSerializingEmptyLists"; + b.bp("/OmitsSerializingEmptyLists"); const query: any = map({ - StringList: [ - () => input.queryStringList !== void 0, - () => (input.queryStringList! || []).map((_entry) => _entry as any), - ], - IntegerList: [ + [_SL]: [() => input.queryStringList !== void 0, () => (input[_qSL]! || []).map((_entry) => _entry as any)], + [_IL]: [ () => input.queryIntegerList !== void 0, - () => (input.queryIntegerList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIL]! || []).map((_entry) => _entry.toString() as any), ], - DoubleList: [ + [_DL]: [ () => input.queryDoubleList !== void 0, - () => - (input.queryDoubleList! || []).map((_entry) => (_entry % 1 == 0 ? _entry + ".0" : _entry.toString()) as any), + () => (input[_qDL]! || []).map((_entry) => (_entry % 1 == 0 ? _entry + ".0" : _entry.toString()) as any), ], - BooleanList: [ + [_BL]: [ () => input.queryBooleanList !== void 0, - () => (input.queryBooleanList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qBL]! || []).map((_entry) => _entry.toString() as any), ], - TimestampList: [ + [_TL]: [ () => input.queryTimestampList !== void 0, - () => - (input.queryTimestampList! || []).map((_entry) => (_entry.toISOString().split(".")[0] + "Z").toString() as any), + () => (input[_qTL]! || []).map((_entry) => (_entry.toISOString().split(".")[0] + "Z").toString() as any), ], - EnumList: [() => input.queryEnumList !== void 0, () => (input.queryEnumList! || []).map((_entry) => _entry as any)], - IntegerEnumList: [ + [_EL]: [() => input.queryEnumList !== void 0, () => (input[_qEL]! || []).map((_entry) => _entry as any)], + [_IEL]: [ () => input.queryIntegerEnumList !== void 0, - () => (input.queryIntegerEnumList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIEL]! || []).map((_entry) => _entry.toString() as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2815,26 +2088,19 @@ export const se_PostPlayerActionCommand = async ( input: PostPlayerActionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PostPlayerAction"; + b.bp("/PostPlayerAction"); let body: any; body = JSON.stringify( take(input, { action: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2844,26 +2110,19 @@ export const se_PostUnionWithJsonNameCommand = async ( input: PostUnionWithJsonNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PostUnionWithJsonName"; + b.bp("/PostUnionWithJsonName"); let body: any; body = JSON.stringify( take(input, { value: (_) => se_UnionWithJsonName(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2873,29 +2132,20 @@ export const se_PutWithContentEncodingCommand = async ( input: PutWithContentEncodingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "content-encoding": input.encoding!, + [_ce]: input[_e]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/requestcompression/putcontentwithencoding"; + b.bp("/requestcompression/putcontentwithencoding"); let body: any; body = JSON.stringify( take(input, { data: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2905,24 +2155,15 @@ export const se_QueryIdempotencyTokenAutoFillCommand = async ( input: QueryIdempotencyTokenAutoFillCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/QueryIdempotencyTokenAutoFill"; + b.bp("/QueryIdempotencyTokenAutoFill"); const query: any = map({ - token: [, input.token ?? generateIdempotencyToken()], + [_to]: [, input[_to] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2932,24 +2173,16 @@ export const se_QueryParamsAsStringListMapCommand = async ( input: QueryParamsAsStringListMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StringListMap"; + b.bp("/StringListMap"); const query: any = map({ ...convertMap(input.foo), - corge: [, input.qux!], + [_co]: [, input[_q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2959,24 +2192,16 @@ export const se_QueryPrecedenceCommand = async ( input: QueryPrecedenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Precedence"; + b.bp("/Precedence"); const query: any = map({ ...convertMap(input.baz), - bar: [, input.foo!], + [_ba]: [, input[_f]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -2986,26 +2211,19 @@ export const se_RecursiveShapesCommand = async ( input: RecursiveShapesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RecursiveShapes"; + b.bp("/RecursiveShapes"); let body: any; body = JSON.stringify( take(input, { nested: (_) => se_RecursiveShapesInputOutputNested1(_, context), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3015,13 +2233,12 @@ export const se_SimpleScalarPropertiesCommand = async ( input: SimpleScalarPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SimpleScalarProperties"; + b.bp("/SimpleScalarProperties"); let body: any; body = JSON.stringify( take(input, { @@ -3036,15 +2253,8 @@ export const se_SimpleScalarPropertiesCommand = async ( trueBooleanValue: [], }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -3054,25 +2264,18 @@ export const se_StreamingTraitsCommand = async ( input: StreamingTraitsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StreamingTraits"; + b.bp("/StreamingTraits"); let body: any; if (input.blob !== undefined) { body = input.blob; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3082,26 +2285,18 @@ export const se_StreamingTraitsRequireLengthCommand = async ( input: StreamingTraitsRequireLengthCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StreamingTraitsRequireLength"; + b.bp("/StreamingTraitsRequireLength"); let body: any; if (input.blob !== undefined) { body = input.blob; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3111,26 +2306,18 @@ export const se_StreamingTraitsWithMediaTypeCommand = async ( input: StreamingTraitsWithMediaTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "text/plain", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StreamingTraitsWithMediaType"; + b.bp("/StreamingTraitsWithMediaType"); let body: any; if (input.blob !== undefined) { body = input.blob; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3140,27 +2327,20 @@ export const se_TestBodyStructureCommand = async ( input: TestBodyStructureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-test-id": input.testId!, + [_xati]: input[_tI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/body"; + b.bp("/body"); let body: any; body = JSON.stringify( take(input, { testConfig: (_) => _json(_), }) ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3170,21 +2350,14 @@ export const se_TestNoPayloadCommand = async ( input: TestNoPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-test-id": input.testId!, + [_xati]: input[_tI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/no_payload"; + b.bp("/no_payload"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -3194,24 +2367,17 @@ export const se_TestPayloadBlobCommand = async ( input: TestPayloadBlobCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cT]! || "application/octet-stream", }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/blob_payload"; + b.bp("/blob_payload"); let body: any; if (input.data !== undefined) { body = input.data; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3221,12 +2387,12 @@ export const se_TestPayloadStructureCommand = async ( input: TestPayloadStructureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-test-id": input.testId!, + [_xati]: input[_tI]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/payload"; + b.bp("/payload"); let body: any; if (input.payloadConfig !== undefined) { body = _json(input.payloadConfig); @@ -3235,15 +2401,8 @@ export const se_TestPayloadStructureCommand = async ( body = {}; } body = JSON.stringify(body); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3253,49 +2412,26 @@ export const se_TimestampFormatHeadersCommand = async ( input: TimestampFormatHeadersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-memberepochseconds": [ - () => isSerializableHeaderValue(input.memberEpochSeconds), - () => Math.round(input.memberEpochSeconds!.getTime() / 1000).toString(), - ], - "x-memberhttpdate": [ - () => isSerializableHeaderValue(input.memberHttpDate), - () => __dateToUtcString(input.memberHttpDate!).toString(), - ], - "x-memberdatetime": [ - () => isSerializableHeaderValue(input.memberDateTime), - () => (input.memberDateTime!.toISOString().split(".")[0] + "Z").toString(), + [_xm]: [() => isSerializableHeaderValue(input[_mES]), () => Math.round(input[_mES]!.getTime() / 1000).toString()], + [_xm_]: [() => isSerializableHeaderValue(input[_mHD]), () => __dateToUtcString(input[_mHD]!).toString()], + [_xm__]: [ + () => isSerializableHeaderValue(input[_mDT]), + () => (input[_mDT]!.toISOString().split(".")[0] + "Z").toString(), ], - "x-defaultformat": [ - () => isSerializableHeaderValue(input.defaultFormat), - () => __dateToUtcString(input.defaultFormat!).toString(), - ], - "x-targetepochseconds": [ - () => isSerializableHeaderValue(input.targetEpochSeconds), - () => Math.round(input.targetEpochSeconds!.getTime() / 1000).toString(), - ], - "x-targethttpdate": [ - () => isSerializableHeaderValue(input.targetHttpDate), - () => __dateToUtcString(input.targetHttpDate!).toString(), - ], - "x-targetdatetime": [ - () => isSerializableHeaderValue(input.targetDateTime), - () => (input.targetDateTime!.toISOString().split(".")[0] + "Z").toString(), + [_xd_]: [() => isSerializableHeaderValue(input[_dF]), () => __dateToUtcString(input[_dF]!).toString()], + [_xt_]: [() => isSerializableHeaderValue(input[_tES]), () => Math.round(input[_tES]!.getTime() / 1000).toString()], + [_xt__]: [() => isSerializableHeaderValue(input[_tHD]), () => __dateToUtcString(input[_tHD]!).toString()], + [_xt___]: [ + () => isSerializableHeaderValue(input[_tDT]), + () => (input[_tDT]!.toISOString().split(".")[0] + "Z").toString(), ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TimestampFormatHeaders"; + b.bp("/TimestampFormatHeaders"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3305,22 +2441,15 @@ export const se_UnitInputAndOutputCommand = async ( input: UnitInputAndOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/json", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnitInputAndOutput"; + b.bp("/UnitInputAndOutput"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -3720,7 +2849,7 @@ export const de_GreetingWithErrorsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - greeting: [, output.headers["x-greeting"]], + [_g]: [, output.headers[_xg]], }); await collectBody(output.body, context); return contents; @@ -3886,7 +3015,7 @@ export const de_HttpPayloadTraitsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = await collectBody(output.body, context); contents.blob = data; @@ -3925,7 +3054,7 @@ export const de_HttpPayloadTraitsWithMediaTypeCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = await collectBody(output.body, context); contents.blob = data; @@ -4040,7 +3169,7 @@ export const de_HttpPrefixHeadersCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], fooMap: [ , Object.keys(output.headers) @@ -4437,60 +3566,47 @@ export const de_InputAndOutputWithHeadersCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - headerString: [, output.headers["x-string"]], - headerByte: [() => void 0 !== output.headers["x-byte"], () => __strictParseByte(output.headers["x-byte"])], - headerShort: [() => void 0 !== output.headers["x-short"], () => __strictParseShort(output.headers["x-short"])], - headerInteger: [ - () => void 0 !== output.headers["x-integer"], - () => __strictParseInt32(output.headers["x-integer"]), + [_hS]: [, output.headers[_xs]], + [_hB]: [() => void 0 !== output.headers[_xb], () => __strictParseByte(output.headers[_xb])], + [_hSe]: [() => void 0 !== output.headers[_xs_], () => __strictParseShort(output.headers[_xs_])], + [_hI]: [() => void 0 !== output.headers[_xi], () => __strictParseInt32(output.headers[_xi])], + [_hL]: [() => void 0 !== output.headers[_xl], () => __strictParseLong(output.headers[_xl])], + [_hF]: [() => void 0 !== output.headers[_xf_], () => __strictParseFloat(output.headers[_xf_])], + [_hD]: [() => void 0 !== output.headers[_xd], () => __strictParseDouble(output.headers[_xd])], + [_hTB]: [() => void 0 !== output.headers[_xb_], () => __parseBoolean(output.headers[_xb_])], + [_hFB]: [() => void 0 !== output.headers[_xb__], () => __parseBoolean(output.headers[_xb__])], + [_hSL]: [ + () => void 0 !== output.headers[_xs__], + () => (output.headers[_xs__] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerLong: [() => void 0 !== output.headers["x-long"], () => __strictParseLong(output.headers["x-long"])], - headerFloat: [() => void 0 !== output.headers["x-float"], () => __strictParseFloat(output.headers["x-float"])], - headerDouble: [() => void 0 !== output.headers["x-double"], () => __strictParseDouble(output.headers["x-double"])], - headerTrueBool: [() => void 0 !== output.headers["x-boolean1"], () => __parseBoolean(output.headers["x-boolean1"])], - headerFalseBool: [ - () => void 0 !== output.headers["x-boolean2"], - () => __parseBoolean(output.headers["x-boolean2"]), + [_hSS]: [ + () => void 0 !== output.headers[_xs___], + () => (output.headers[_xs___] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerStringList: [ - () => void 0 !== output.headers["x-stringlist"], - () => (output.headers["x-stringlist"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hIL]: [ + () => void 0 !== output.headers[_xi_], + () => (output.headers[_xi_] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), ], - headerStringSet: [ - () => void 0 !== output.headers["x-stringset"], - () => (output.headers["x-stringset"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hBL]: [ + () => void 0 !== output.headers[_xb___], + () => (output.headers[_xb___] || "").split(",").map((_entry) => __parseBoolean(_entry.trim()) as any), ], - headerIntegerList: [ - () => void 0 !== output.headers["x-integerlist"], + [_hTL]: [ + () => void 0 !== output.headers[_xt], () => - (output.headers["x-integerlist"] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), - ], - headerBooleanList: [ - () => void 0 !== output.headers["x-booleanlist"], - () => (output.headers["x-booleanlist"] || "").split(",").map((_entry) => __parseBoolean(_entry.trim()) as any), - ], - headerTimestampList: [ - () => void 0 !== output.headers["x-timestamplist"], - () => - __splitEvery(output.headers["x-timestamplist"] || "", ",", 2).map( + __splitEvery(output.headers[_xt] || "", ",", 2).map( (_entry) => __expectNonNull(__parseRfc7231DateTime(_entry.trim())) as any ), ], - headerEnum: [, output.headers["x-enum"]], - headerEnumList: [ - () => void 0 !== output.headers["x-enumlist"], - () => (output.headers["x-enumlist"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hE]: [, output.headers[_xe]], + [_hEL]: [ + () => void 0 !== output.headers[_xe_], + () => (output.headers[_xe_] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerIntegerEnum: [ - () => void 0 !== output.headers["x-integerenum"], - () => __strictParseInt32(output.headers["x-integerenum"]), - ], - headerIntegerEnumList: [ - () => void 0 !== output.headers["x-integerenumlist"], - () => - (output.headers["x-integerenumlist"] || "") - .split(",") - .map((_entry) => __strictParseInt32(_entry.trim()) as any), + [_hIE]: [() => void 0 !== output.headers[_xi__], () => __strictParseInt32(output.headers[_xi__])], + [_hIEL]: [ + () => void 0 !== output.headers[_xi___], + () => (output.headers[_xi___] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), ], }); await collectBody(output.body, context); @@ -6040,9 +5156,9 @@ export const de_MediaTypeHeaderCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - json: [ - () => void 0 !== output.headers["x-json"], - () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers["x-json"])).toString("utf8")), + [_j]: [ + () => void 0 !== output.headers[_xj], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xj])).toString("utf8")), ], }); await collectBody(output.body, context); @@ -6155,11 +5271,11 @@ export const de_NullAndEmptyHeadersClientCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - a: [, output.headers["x-a"]], - b: [, output.headers["x-b"]], - c: [ - () => void 0 !== output.headers["x-c"], - () => (output.headers["x-c"] || "").split(",").map((_entry) => _entry.trim() as any), + [_a]: [, output.headers[_xa]], + [_b_]: [, output.headers[_xb____]], + [_c]: [ + () => void 0 !== output.headers[_xc], + () => (output.headers[_xc] || "").split(",").map((_entry) => _entry.trim() as any), ], }); await collectBody(output.body, context); @@ -6198,11 +5314,11 @@ export const de_NullAndEmptyHeadersServerCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - a: [, output.headers["x-a"]], - b: [, output.headers["x-b"]], - c: [ - () => void 0 !== output.headers["x-c"], - () => (output.headers["x-c"] || "").split(",").map((_entry) => _entry.trim() as any), + [_a]: [, output.headers[_xa]], + [_b_]: [, output.headers[_xb____]], + [_c]: [ + () => void 0 !== output.headers[_xc], + () => (output.headers[_xc] || "").split(",").map((_entry) => _entry.trim() as any), ], }); await collectBody(output.body, context); @@ -6586,7 +5702,7 @@ export const de_SimpleScalarPropertiesCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -6636,7 +5752,7 @@ export const de_StreamingTraitsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -6713,7 +5829,7 @@ export const de_StreamingTraitsWithMediaTypeCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = output.body; context.sdkStreamMixin(data); @@ -6753,7 +5869,7 @@ export const de_TestBodyStructureCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - testId: [, output.headers["x-amz-test-id"]], + [_tI]: [, output.headers[_xati]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -6795,7 +5911,7 @@ export const de_TestNoPayloadCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - testId: [, output.headers["x-amz-test-id"]], + [_tI]: [, output.headers[_xati]], }); await collectBody(output.body, context); return contents; @@ -6833,7 +5949,7 @@ export const de_TestPayloadBlobCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.data = data; @@ -6872,7 +5988,7 @@ export const de_TestPayloadStructureCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - testId: [, output.headers["x-amz-test-id"]], + [_tI]: [, output.headers[_xati]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.payloadConfig = _json(data); @@ -6911,33 +6027,24 @@ export const de_TimestampFormatHeadersCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - memberEpochSeconds: [ - () => void 0 !== output.headers["x-memberepochseconds"], - () => __expectNonNull(__parseEpochTimestamp(output.headers["x-memberepochseconds"])), + [_mES]: [() => void 0 !== output.headers[_xm], () => __expectNonNull(__parseEpochTimestamp(output.headers[_xm]))], + [_mHD]: [ + () => void 0 !== output.headers[_xm_], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xm_])), ], - memberHttpDate: [ - () => void 0 !== output.headers["x-memberhttpdate"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-memberhttpdate"])), + [_mDT]: [ + () => void 0 !== output.headers[_xm__], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xm__])), ], - memberDateTime: [ - () => void 0 !== output.headers["x-memberdatetime"], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers["x-memberdatetime"])), + [_dF]: [() => void 0 !== output.headers[_xd_], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xd_]))], + [_tES]: [() => void 0 !== output.headers[_xt_], () => __expectNonNull(__parseEpochTimestamp(output.headers[_xt_]))], + [_tHD]: [ + () => void 0 !== output.headers[_xt__], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xt__])), ], - defaultFormat: [ - () => void 0 !== output.headers["x-defaultformat"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-defaultformat"])), - ], - targetEpochSeconds: [ - () => void 0 !== output.headers["x-targetepochseconds"], - () => __expectNonNull(__parseEpochTimestamp(output.headers["x-targetepochseconds"])), - ], - targetHttpDate: [ - () => void 0 !== output.headers["x-targethttpdate"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-targethttpdate"])), - ], - targetDateTime: [ - () => void 0 !== output.headers["x-targetdatetime"], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers["x-targetdatetime"])), + [_tDT]: [ + () => void 0 !== output.headers[_xt___], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xt___])), ], }); await collectBody(output.body, context); @@ -7007,7 +6114,7 @@ const throwDefaultError = withBaseException(__BaseException); */ const de_ComplexErrorRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - Header: [, parsedOutput.headers["x-header"]], + [_H]: [, parsedOutput.headers[_xh]], }); const data: any = parsedOutput.body; const doc = take(data, { @@ -7576,6 +6683,152 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _B = "Byte"; +const _BL = "BooleanList"; +const _Bo = "Boolean"; +const _D = "Double"; +const _DL = "DoubleList"; +const _E = "Enum"; +const _EL = "EnumList"; +const _Em = "Empty"; +const _F = "Float"; +const _H = "Header"; +const _I = "Integer"; +const _IE = "IntegerEnum"; +const _IEL = "IntegerEnumList"; +const _IL = "IntegerList"; +const _IS = "IntegerSet"; +const _L = "Long"; +const _N = "Null"; +const _S = "String"; +const _SL = "StringList"; +const _SS = "StringSet"; +const _Sh = "Short"; +const _T = "Timestamp"; +const _TL = "TimestampList"; +const _a = "a"; +const _amth = "amz-media-typed-header"; +const _b = "baz"; +const _bIH = "booleanInHeader"; +const _bIHy = "byteInHeader"; +const _bIQ = "booleanInQuery"; +const _bIQy = "byteInQuery"; +const _b_ = "b"; +const _ba = "bar"; +const _bl = "blob"; +const _bo = "booleaninheader"; +const _by = "byteinheader"; +const _c = "c"; +const _cT = "contentType"; +const _ce = "content-encoding"; +const _co = "corge"; +const _ct = "content-type"; +const _d = "doubleinheader"; +const _dF = "defaultFormat"; +const _dIH = "doubleInHeader"; +const _dIQ = "doubleInQuery"; +const _e = "encoding"; +const _eS = "emptyString"; +const _f = "foo"; +const _fIH = "floatInHeader"; +const _fIQ = "floatInQuery"; +const _fl = "floatinheader"; +const _g = "greeting"; +const _h = "hello"; +const _hB = "headerByte"; +const _hBL = "headerBooleanList"; +const _hD = "headerDouble"; +const _hE = "headerEnum"; +const _hEL = "headerEnumList"; +const _hF = "headerFloat"; +const _hFB = "headerFalseBool"; +const _hI = "headerInteger"; +const _hIE = "headerIntegerEnum"; +const _hIEL = "headerIntegerEnumList"; +const _hIL = "headerIntegerList"; +const _hL = "headerLong"; +const _hS = "headerString"; +const _hSL = "headerStringList"; +const _hSS = "headerStringSet"; +const _hSe = "headerShort"; +const _hTB = "headerTrueBool"; +const _hTL = "headerTimestampList"; +const _i = "integerinheader"; +const _iIH = "integerInHeader"; +const _iIQ = "integerInQuery"; +const _j = "json"; +const _l = "longinheader"; +const _lIH = "longInHeader"; +const _lIQ = "longInQuery"; +const _mDT = "memberDateTime"; +const _mES = "memberEpochSeconds"; +const _mHD = "memberHttpDate"; +const _mS = "maybeSet"; +const _nV = "nullValue"; +const _q = "qux"; +const _qB = "queryByte"; +const _qBL = "queryBooleanList"; +const _qBu = "queryBoolean"; +const _qD = "queryDouble"; +const _qDL = "queryDoubleList"; +const _qE = "queryEnum"; +const _qEL = "queryEnumList"; +const _qF = "queryFloat"; +const _qI = "queryInteger"; +const _qIE = "queryIntegerEnum"; +const _qIEL = "queryIntegerEnumList"; +const _qIL = "queryIntegerList"; +const _qIS = "queryIntegerSet"; +const _qL = "queryLong"; +const _qS = "queryString"; +const _qSL = "queryStringList"; +const _qSS = "queryStringSet"; +const _qSu = "queryShort"; +const _qT = "queryTimestamp"; +const _qTL = "queryTimestampList"; +const _s = "shortinheader"; +const _sIH = "shortInHeader"; +const _sIQ = "shortInQuery"; +const _t = "timestamp"; +const _tDT = "targetDateTime"; +const _tES = "targetEpochSeconds"; +const _tHD = "targetHttpDate"; +const _tI = "testId"; +const _to = "token"; +const _xa = "x-a"; +const _xati = "x-amz-test-id"; +const _xb = "x-byte"; +const _xb_ = "x-boolean1"; +const _xb__ = "x-boolean2"; +const _xb___ = "x-booleanlist"; +const _xb____ = "x-b"; +const _xc = "x-c"; +const _xd = "x-double"; +const _xd_ = "x-defaultformat"; +const _xe = "x-enum"; +const _xe_ = "x-enumlist"; +const _xf = "x-foo"; +const _xf_ = "x-float"; +const _xg = "x-greeting"; +const _xh = "x-header"; +const _xi = "x-integer"; +const _xi_ = "x-integerlist"; +const _xi__ = "x-integerenum"; +const _xi___ = "x-integerenumlist"; +const _xj = "x-json"; +const _xl = "x-long"; +const _xm = "x-memberepochseconds"; +const _xm_ = "x-memberhttpdate"; +const _xm__ = "x-memberdatetime"; +const _xs = "x-string"; +const _xs_ = "x-short"; +const _xs__ = "x-stringlist"; +const _xs___ = "x-stringset"; +const _xt = "x-timestamplist"; +const _xt_ = "x-targetepochseconds"; +const _xt__ = "x-targethttpdate"; +const _xt___ = "x-targetdatetime"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index 2a2ae3fde5fe..05642290919b 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -30,6 +30,7 @@ "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", "@smithy/config-resolver": "^2.0.21", + "@smithy/core": "^1.2.0", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", "@smithy/invalid-dependency": "^2.0.15", diff --git a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts index ec745e64fd49..b1ea995e4415 100644 --- a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts +++ b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; +import { requestBuilder as rb } from "@smithy/core"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse, @@ -223,79 +224,59 @@ export const se_AllQueryStringTypesCommand = async ( input: AllQueryStringTypesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AllQueryStringTypesInput"; + b.bp("/AllQueryStringTypesInput"); const query: any = map({ ...convertMap(input.queryParamsMapOfStrings), - String: [, input.queryString!], - StringList: [ - () => input.queryStringList !== void 0, - () => (input.queryStringList! || []).map((_entry) => _entry as any), - ], - StringSet: [ - () => input.queryStringSet !== void 0, - () => (input.queryStringSet! || []).map((_entry) => _entry as any), - ], - Byte: [() => input.queryByte !== void 0, () => input.queryByte!.toString()], - Short: [() => input.queryShort !== void 0, () => input.queryShort!.toString()], - Integer: [() => input.queryInteger !== void 0, () => input.queryInteger!.toString()], - IntegerList: [ + [_S]: [, input[_qS]!], + [_SL]: [() => input.queryStringList !== void 0, () => (input[_qSL]! || []).map((_entry) => _entry as any)], + [_SS]: [() => input.queryStringSet !== void 0, () => (input[_qSS]! || []).map((_entry) => _entry as any)], + [_B]: [() => input.queryByte !== void 0, () => input[_qB]!.toString()], + [_Sh]: [() => input.queryShort !== void 0, () => input[_qSu]!.toString()], + [_I]: [() => input.queryInteger !== void 0, () => input[_qI]!.toString()], + [_IL]: [ () => input.queryIntegerList !== void 0, - () => (input.queryIntegerList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIL]! || []).map((_entry) => _entry.toString() as any), ], - IntegerSet: [ + [_IS]: [ () => input.queryIntegerSet !== void 0, - () => (input.queryIntegerSet! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIS]! || []).map((_entry) => _entry.toString() as any), ], - Long: [() => input.queryLong !== void 0, () => input.queryLong!.toString()], - Float: [ + [_L]: [() => input.queryLong !== void 0, () => input[_qL]!.toString()], + [_F]: [ () => input.queryFloat !== void 0, - () => (input.queryFloat! % 1 == 0 ? input.queryFloat! + ".0" : input.queryFloat!.toString()), + () => (input[_qF]! % 1 == 0 ? input[_qF]! + ".0" : input[_qF]!.toString()), ], - Double: [ + [_D]: [ () => input.queryDouble !== void 0, - () => (input.queryDouble! % 1 == 0 ? input.queryDouble! + ".0" : input.queryDouble!.toString()), + () => (input[_qD]! % 1 == 0 ? input[_qD]! + ".0" : input[_qD]!.toString()), ], - DoubleList: [ + [_DL]: [ () => input.queryDoubleList !== void 0, - () => - (input.queryDoubleList! || []).map((_entry) => (_entry % 1 == 0 ? _entry + ".0" : _entry.toString()) as any), + () => (input[_qDL]! || []).map((_entry) => (_entry % 1 == 0 ? _entry + ".0" : _entry.toString()) as any), ], - Boolean: [() => input.queryBoolean !== void 0, () => input.queryBoolean!.toString()], - BooleanList: [ + [_Bo]: [() => input.queryBoolean !== void 0, () => input[_qBu]!.toString()], + [_BL]: [ () => input.queryBooleanList !== void 0, - () => (input.queryBooleanList! || []).map((_entry) => _entry.toString() as any), - ], - Timestamp: [ - () => input.queryTimestamp !== void 0, - () => (input.queryTimestamp!.toISOString().split(".")[0] + "Z").toString(), + () => (input[_qBL]! || []).map((_entry) => _entry.toString() as any), ], - TimestampList: [ + [_T]: [() => input.queryTimestamp !== void 0, () => (input[_qT]!.toISOString().split(".")[0] + "Z").toString()], + [_TL]: [ () => input.queryTimestampList !== void 0, - () => - (input.queryTimestampList! || []).map((_entry) => (_entry.toISOString().split(".")[0] + "Z").toString() as any), + () => (input[_qTL]! || []).map((_entry) => (_entry.toISOString().split(".")[0] + "Z").toString() as any), ], - Enum: [, input.queryEnum!], - EnumList: [() => input.queryEnumList !== void 0, () => (input.queryEnumList! || []).map((_entry) => _entry as any)], - IntegerEnum: [() => input.queryIntegerEnum !== void 0, () => input.queryIntegerEnum!.toString()], - IntegerEnumList: [ + [_E]: [, input[_qE]!], + [_EL]: [() => input.queryEnumList !== void 0, () => (input[_qEL]! || []).map((_entry) => _entry as any)], + [_IE]: [() => input.queryIntegerEnum !== void 0, () => input[_qIE]!.toString()], + [_IEL]: [ () => input.queryIntegerEnumList !== void 0, - () => (input.queryIntegerEnumList! || []).map((_entry) => _entry.toString() as any), + () => (input[_qIEL]! || []).map((_entry) => _entry.toString() as any), ], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -305,28 +286,20 @@ export const se_BodyWithXmlNameCommand = async ( input: BodyWithXmlNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BodyWithXmlName"; + b.bp("/BodyWithXmlName"); let body: any; - body = ''; - const bodyNode = new __XmlNode("Ahoy"); - if (input.nested !== undefined) { - const node = se_PayloadWithXmlName(input.nested, context).withName("nested"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_A); + if (input[_n] != null) { + bn.c(se_PayloadWithXmlName(input[_n], context).n(_n)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -336,26 +309,17 @@ export const se_ConstantAndVariableQueryStringCommand = async ( input: ConstantAndVariableQueryStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ConstantAndVariableQueryString"; + b.bp("/ConstantAndVariableQueryString"); const query: any = map({ - foo: [, "bar"], - baz: [, input.baz!], - maybeSet: [, input.maybeSet!], + [_f]: [, "bar"], + [_b]: [, input[_b]!], + [_mS]: [, input[_mS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -365,26 +329,17 @@ export const se_ConstantQueryStringCommand = async ( input: ConstantQueryStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ConstantQueryString/{hello}"; - resolvedPath = __resolvedPath(resolvedPath, input, "hello", () => input.hello!, "{hello}", false); + b.bp("/ConstantQueryString/{hello}"); + b.p("hello", () => input.hello!, "{hello}", false); const query: any = map({ - foo: [, "bar"], - hello: [, ""], + [_f]: [, "bar"], + [_h]: [, ""], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -394,22 +349,15 @@ export const se_DatetimeOffsetsCommand = async ( input: DatetimeOffsetsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DatetimeOffsets"; + b.bp("/DatetimeOffsets"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -419,23 +367,15 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( input: EmptyInputAndEmptyOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EmptyInputAndEmptyOutput"; + b.bp("/EmptyInputAndEmptyOutput"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -445,11 +385,11 @@ export const se_EndpointOperationCommand = async ( input: EndpointOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EndpointOperation"; + b.bp("/EndpointOperation"); let body: any; body = ""; let { hostname: resolvedHostname } = await context.endpoint(); @@ -459,15 +399,9 @@ export const se_EndpointOperationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -477,12 +411,11 @@ export const se_EndpointWithHostLabelHeaderOperationCommand = async ( input: EndpointWithHostLabelHeaderOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-amz-account-id": input.accountId!, + [_xaai]: input[_aI]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EndpointWithHostLabelHeaderOperation"; + b.bp("/EndpointWithHostLabelHeaderOperation"); let body: any; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { @@ -495,15 +428,9 @@ export const se_EndpointWithHostLabelHeaderOperationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -513,20 +440,18 @@ export const se_EndpointWithHostLabelOperationCommand = async ( input: EndpointWithHostLabelOperationCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EndpointWithHostLabelOperation"; + b.bp("/EndpointWithHostLabelOperation"); let body: any; - body = ''; - const bodyNode = new __XmlNode("HostLabelInput"); - if (input.label !== undefined) { - const node = __XmlNode.of("String", input.label).withName("label"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_HLI); + if (input[_l] != null) { + bn.c(__XmlNode.of(_S, input[_l]).n(_l)); } - body += bodyNode.toString(); + body += bn.toString(); let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "foo.{label}." + resolvedHostname; @@ -538,15 +463,9 @@ export const se_EndpointWithHostLabelOperationCommand = async ( throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - return new __HttpRequest({ - protocol, - hostname: resolvedHostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -556,31 +475,18 @@ export const se_FlattenedXmlMapCommand = async ( input: FlattenedXmlMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FlattenedXmlMap"; + b.bp("/FlattenedXmlMap"); let body: any; - body = ''; - const bodyNode = new __XmlNode("FlattenedXmlMapInputOutput"); - if (input.myMap !== undefined) { - const nodes = se_FooEnumMap(input.myMap, context); - nodes.map((node: any) => { - node = node.withName("myMap"); - bodyNode.addChildNode(node); - }); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_FXMIO); + bn.l(input, "myMap", "myMap", () => se_FooEnumMap(input[_mM]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -590,32 +496,18 @@ export const se_FlattenedXmlMapWithXmlNameCommand = async ( input: FlattenedXmlMapWithXmlNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FlattenedXmlMapWithXmlName"; + b.bp("/FlattenedXmlMapWithXmlName"); let body: any; - body = ''; - const bodyNode = new __XmlNode("FlattenedXmlMapWithXmlNameInputOutput"); - if (input.myMap !== undefined) { - const nodes = se_FlattenedXmlMapWithXmlNameInputOutputMap(input.myMap, context); - nodes.map((node: any) => { - node = node.withName("KVP"); - bodyNode.addChildNode(node); - }); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_FXMWXNIO); + bn.l(input, "myMap", "KVP", () => se_FlattenedXmlMapWithXmlNameInputOutputMap(input[_mM]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -625,23 +517,15 @@ export const se_FlattenedXmlMapWithXmlNamespaceCommand = async ( input: FlattenedXmlMapWithXmlNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FlattenedXmlMapWithXmlNamespace"; + b.bp("/FlattenedXmlMapWithXmlNamespace"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -651,22 +535,15 @@ export const se_FractionalSecondsCommand = async ( input: FractionalSecondsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FractionalSeconds"; + b.bp("/FractionalSeconds"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -676,22 +553,15 @@ export const se_GreetingWithErrorsCommand = async ( input: GreetingWithErrorsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GreetingWithErrors"; + b.bp("/GreetingWithErrors"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -701,26 +571,19 @@ export const se_HttpEnumPayloadCommand = async ( input: HttpEnumPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "text/plain", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EnumPayload"; + b.bp("/EnumPayload"); let body: any; let contents: any; if (input.payload !== undefined) { contents = input.payload; body = contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -730,27 +593,20 @@ export const se_HttpPayloadTraitsCommand = async ( input: HttpPayloadTraitsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadTraits"; + b.bp("/HttpPayloadTraits"); let body: any; let contents: any; if (input.blob !== undefined) { contents = input.blob; body = contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -760,28 +616,20 @@ export const se_HttpPayloadTraitsWithMediaTypeCommand = async ( input: HttpPayloadTraitsWithMediaTypeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "text/plain", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadTraitsWithMediaType"; + b.bp("/HttpPayloadTraitsWithMediaType"); let body: any; let contents: any; if (input.blob !== undefined) { contents = input.blob; body = contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -791,29 +639,21 @@ export const se_HttpPayloadWithMemberXmlNameCommand = async ( input: HttpPayloadWithMemberXmlNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithMemberXmlName"; + b.bp("/HttpPayloadWithMemberXmlName"); let body: any; let contents: any; if (input.nested !== undefined) { contents = se_PayloadWithXmlName(input.nested, context); - contents = contents.withName("Hola"); - body = ''; + contents = contents.n("Hola"); + body = _ve; body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -823,28 +663,20 @@ export const se_HttpPayloadWithStructureCommand = async ( input: HttpPayloadWithStructureCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithStructure"; + b.bp("/HttpPayloadWithStructure"); let body: any; let contents: any; if (input.nested !== undefined) { contents = se_NestedPayload(input.nested, context); - body = ''; + body = _ve; body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -854,27 +686,20 @@ export const se_HttpPayloadWithUnionCommand = async ( input: HttpPayloadWithUnionCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithUnion"; + b.bp("/HttpPayloadWithUnion"); let body: any; let contents: any; if (input.nested !== undefined) { contents = se_UnionPayload(input.nested, context); - body = ''; + body = _ve; body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -884,28 +709,20 @@ export const se_HttpPayloadWithXmlNameCommand = async ( input: HttpPayloadWithXmlNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithXmlName"; + b.bp("/HttpPayloadWithXmlName"); let body: any; let contents: any; if (input.nested !== undefined) { contents = se_PayloadWithXmlName(input.nested, context); - body = ''; + body = _ve; body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -915,29 +732,21 @@ export const se_HttpPayloadWithXmlNamespaceCommand = async ( input: HttpPayloadWithXmlNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithXmlNamespace"; + b.bp("/HttpPayloadWithXmlNamespace"); let body: any; let contents: any; if (input.nested !== undefined) { contents = se_PayloadWithXmlNamespace(input.nested, context); - body = ''; - contents.addAttribute("xmlns", "http://foo.com"); + body = _ve; + contents.a("xmlns", "http://foo.com"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -947,29 +756,21 @@ export const se_HttpPayloadWithXmlNamespaceAndPrefixCommand = async ( input: HttpPayloadWithXmlNamespaceAndPrefixCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPayloadWithXmlNamespaceAndPrefix"; + b.bp("/HttpPayloadWithXmlNamespaceAndPrefix"); let body: any; let contents: any; if (input.nested !== undefined) { contents = se_PayloadWithXmlNamespaceAndPrefix(input.nested, context); - body = ''; - contents.addAttribute("xmlns:baz", "http://foo.com"); + body = _ve; + contents.a("xmlns:baz", "http://foo.com"); body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -979,26 +780,19 @@ export const se_HttpPrefixHeadersCommand = async ( input: HttpPrefixHeadersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-foo": input.foo!, + [_xf]: input[_f]!, ...(input.fooMap !== undefined && Object.keys(input.fooMap).reduce((acc: any, suffix: string) => { acc[`x-foo-${suffix.toLowerCase()}`] = input.fooMap![suffix]; return acc; }, {})), }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpPrefixHeaders"; + b.bp("/HttpPrefixHeaders"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1008,36 +802,14 @@ export const se_HttpRequestWithFloatLabelsCommand = async ( input: HttpRequestWithFloatLabelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FloatHttpLabels/{float}/{double}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, - "float", - () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), - "{float}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "double", - () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), - "{double}", - false - ); + b.bp("/FloatHttpLabels/{float}/{double}"); + b.p("float", () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), "{float}", false); + b.p("double", () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), "{double}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1047,23 +819,14 @@ export const se_HttpRequestWithGreedyLabelInPathCommand = async ( input: HttpRequestWithGreedyLabelInPathCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/HttpRequestWithGreedyLabelInPath/foo/{foo}/baz/{baz+}"; - resolvedPath = __resolvedPath(resolvedPath, input, "foo", () => input.foo!, "{foo}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "baz", () => input.baz!, "{baz+}", true); + b.bp("/HttpRequestWithGreedyLabelInPath/foo/{foo}/baz/{baz+}"); + b.p("foo", () => input.foo!, "{foo}", false); + b.p("baz", () => input.baz!, "{baz+}", true); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1073,50 +836,20 @@ export const se_HttpRequestWithLabelsCommand = async ( input: HttpRequestWithLabelsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}"; - resolvedPath = __resolvedPath(resolvedPath, input, "string", () => input.string!, "{string}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "short", () => input.short!.toString(), "{short}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "integer", () => input.integer!.toString(), "{integer}", false); - resolvedPath = __resolvedPath(resolvedPath, input, "long", () => input.long!.toString(), "{long}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "float", - () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), - "{float}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "double", - () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), - "{double}", - false - ); - resolvedPath = __resolvedPath(resolvedPath, input, "boolean", () => input.boolean!.toString(), "{boolean}", false); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "timestamp", - () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), - "{timestamp}", - false - ); + b.bp("/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}"); + b.p("string", () => input.string!, "{string}", false); + b.p("short", () => input.short!.toString(), "{short}", false); + b.p("integer", () => input.integer!.toString(), "{integer}", false); + b.p("long", () => input.long!.toString(), "{long}", false); + b.p("float", () => (input.float! % 1 == 0 ? input.float! + ".0" : input.float!.toString()), "{float}", false); + b.p("double", () => (input.double! % 1 == 0 ? input.double! + ".0" : input.double!.toString()), "{double}", false); + b.p("boolean", () => input.boolean!.toString(), "{boolean}", false); + b.p("timestamp", () => (input.timestamp!.toISOString().split(".")[0] + "Z").toString(), "{timestamp}", false); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1126,77 +859,46 @@ export const se_HttpRequestWithLabelsAndTimestampFormatCommand = async ( input: HttpRequestWithLabelsAndTimestampFormatCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}"; - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.bp( + "/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}" + ); + b.p( "memberEpochSeconds", () => Math.round(input.memberEpochSeconds!.getTime() / 1000).toString(), "{memberEpochSeconds}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "memberHttpDate", - () => __dateToUtcString(input.memberHttpDate!).toString(), - "{memberHttpDate}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("memberHttpDate", () => __dateToUtcString(input.memberHttpDate!).toString(), "{memberHttpDate}", false); + b.p( "memberDateTime", () => (input.memberDateTime!.toISOString().split(".")[0] + "Z").toString(), "{memberDateTime}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p( "defaultFormat", () => (input.defaultFormat!.toISOString().split(".")[0] + "Z").toString(), "{defaultFormat}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p( "targetEpochSeconds", () => Math.round(input.targetEpochSeconds!.getTime() / 1000).toString(), "{targetEpochSeconds}", false ); - resolvedPath = __resolvedPath( - resolvedPath, - input, - "targetHttpDate", - () => __dateToUtcString(input.targetHttpDate!).toString(), - "{targetHttpDate}", - false - ); - resolvedPath = __resolvedPath( - resolvedPath, - input, + b.p("targetHttpDate", () => __dateToUtcString(input.targetHttpDate!).toString(), "{targetHttpDate}", false); + b.p( "targetDateTime", () => (input.targetDateTime!.toISOString().split(".")[0] + "Z").toString(), "{targetDateTime}", false ); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1206,22 +908,15 @@ export const se_HttpResponseCodeCommand = async ( input: HttpResponseCodeCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/HttpResponseCode"; + b.bp("/HttpResponseCode"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1231,26 +926,19 @@ export const se_HttpStringPayloadCommand = async ( input: HttpStringPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "text/plain", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StringPayload"; + b.bp("/StringPayload"); let body: any; let contents: any; if (input.payload !== undefined) { contents = input.payload; body = contents; } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1260,23 +948,15 @@ export const se_IgnoreQueryParamsInResponseCommand = async ( input: IgnoreQueryParamsInResponseCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/IgnoreQueryParamsInResponse"; + b.bp("/IgnoreQueryParamsInResponse"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1286,61 +966,53 @@ export const se_InputAndOutputWithHeadersCommand = async ( input: InputAndOutputWithHeadersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-string": input.headerString!, - "x-byte": [() => isSerializableHeaderValue(input.headerByte), () => input.headerByte!.toString()], - "x-short": [() => isSerializableHeaderValue(input.headerShort), () => input.headerShort!.toString()], - "x-integer": [() => isSerializableHeaderValue(input.headerInteger), () => input.headerInteger!.toString()], - "x-long": [() => isSerializableHeaderValue(input.headerLong), () => input.headerLong!.toString()], - "x-float": [ - () => isSerializableHeaderValue(input.headerFloat), - () => (input.headerFloat! % 1 == 0 ? input.headerFloat! + ".0" : input.headerFloat!.toString()), + [_xs]: input[_hS]!, + [_xb]: [() => isSerializableHeaderValue(input[_hB]), () => input[_hB]!.toString()], + [_xs_]: [() => isSerializableHeaderValue(input[_hSe]), () => input[_hSe]!.toString()], + [_xi]: [() => isSerializableHeaderValue(input[_hI]), () => input[_hI]!.toString()], + [_xl]: [() => isSerializableHeaderValue(input[_hL]), () => input[_hL]!.toString()], + [_xf_]: [ + () => isSerializableHeaderValue(input[_hF]), + () => (input[_hF]! % 1 == 0 ? input[_hF]! + ".0" : input[_hF]!.toString()), ], - "x-double": [ - () => isSerializableHeaderValue(input.headerDouble), - () => (input.headerDouble! % 1 == 0 ? input.headerDouble! + ".0" : input.headerDouble!.toString()), + [_xd]: [ + () => isSerializableHeaderValue(input[_hD]), + () => (input[_hD]! % 1 == 0 ? input[_hD]! + ".0" : input[_hD]!.toString()), ], - "x-boolean1": [() => isSerializableHeaderValue(input.headerTrueBool), () => input.headerTrueBool!.toString()], - "x-boolean2": [() => isSerializableHeaderValue(input.headerFalseBool), () => input.headerFalseBool!.toString()], - "x-stringlist": [ - () => isSerializableHeaderValue(input.headerStringList), - () => (input.headerStringList! || []).map((_entry) => _entry as any).join(", "), + [_xb_]: [() => isSerializableHeaderValue(input[_hTB]), () => input[_hTB]!.toString()], + [_xb__]: [() => isSerializableHeaderValue(input[_hFB]), () => input[_hFB]!.toString()], + [_xs__]: [ + () => isSerializableHeaderValue(input[_hSL]), + () => (input[_hSL]! || []).map((_entry) => _entry as any).join(", "), ], - "x-stringset": [ - () => isSerializableHeaderValue(input.headerStringSet), - () => (input.headerStringSet! || []).map((_entry) => _entry as any).join(", "), + [_xs___]: [ + () => isSerializableHeaderValue(input[_hSS]), + () => (input[_hSS]! || []).map((_entry) => _entry as any).join(", "), ], - "x-integerlist": [ - () => isSerializableHeaderValue(input.headerIntegerList), - () => (input.headerIntegerList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xi_]: [ + () => isSerializableHeaderValue(input[_hIL]), + () => (input[_hIL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], - "x-booleanlist": [ - () => isSerializableHeaderValue(input.headerBooleanList), - () => (input.headerBooleanList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xb___]: [ + () => isSerializableHeaderValue(input[_hBL]), + () => (input[_hBL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], - "x-timestamplist": [ - () => isSerializableHeaderValue(input.headerTimestampList), - () => (input.headerTimestampList! || []).map((_entry) => __dateToUtcString(_entry).toString() as any).join(", "), + [_xt]: [ + () => isSerializableHeaderValue(input[_hTL]), + () => (input[_hTL]! || []).map((_entry) => __dateToUtcString(_entry).toString() as any).join(", "), ], - "x-enum": input.headerEnum!, - "x-enumlist": [ - () => isSerializableHeaderValue(input.headerEnumList), - () => (input.headerEnumList! || []).map((_entry) => _entry as any).join(", "), + [_xe]: input[_hE]!, + [_xe_]: [ + () => isSerializableHeaderValue(input[_hEL]), + () => (input[_hEL]! || []).map((_entry) => _entry as any).join(", "), ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InputAndOutputWithHeaders"; + b.bp("/InputAndOutputWithHeaders"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1350,39 +1022,19 @@ export const se_NestedXmlMapsCommand = async ( input: NestedXmlMapsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NestedXmlMaps"; + b.bp("/NestedXmlMaps"); let body: any; - body = ''; - const bodyNode = new __XmlNode("NestedXmlMapsInputOutput"); - if (input.flatNestedMap !== undefined) { - const nodes = se_NestedMap(input.flatNestedMap, context); - nodes.map((node: any) => { - node = node.withName("flatNestedMap"); - bodyNode.addChildNode(node); - }); - } - if (input.nestedMap !== undefined) { - const nodes = se_NestedMap(input.nestedMap, context); - const containerNode = new __XmlNode("nestedMap"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_NXMIO); + bn.l(input, "flatNestedMap", "flatNestedMap", () => se_NestedMap(input[_fNM]!, context)); + bn.lc(input, "nestedMap", "nestedMap", () => se_NestedMap(input[_nM]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1392,22 +1044,15 @@ export const se_NoInputAndNoOutputCommand = async ( input: NoInputAndNoOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NoInputAndNoOutput"; + b.bp("/NoInputAndNoOutput"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1417,23 +1062,15 @@ export const se_NoInputAndOutputCommand = async ( input: NoInputAndOutputCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NoInputAndOutputOutput"; + b.bp("/NoInputAndOutputOutput"); let body: any; body = ""; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1443,24 +1080,19 @@ export const se_NullAndEmptyHeadersClientCommand = async ( input: NullAndEmptyHeadersClientCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-a": input.a!, - "x-b": input.b!, - "x-c": [() => isSerializableHeaderValue(input.c), () => (input.c! || []).map((_entry) => _entry as any).join(", ")], + [_xa]: input[_a]!, + [_xb____]: input[_b_]!, + [_xc]: [ + () => isSerializableHeaderValue(input[_c]), + () => (input[_c]! || []).map((_entry) => _entry as any).join(", "), + ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NullAndEmptyHeadersClient"; + b.bp("/NullAndEmptyHeadersClient"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1470,24 +1102,19 @@ export const se_NullAndEmptyHeadersServerCommand = async ( input: NullAndEmptyHeadersServerCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-a": input.a!, - "x-b": input.b!, - "x-c": [() => isSerializableHeaderValue(input.c), () => (input.c! || []).map((_entry) => _entry as any).join(", ")], + [_xa]: input[_a]!, + [_xb____]: input[_b_]!, + [_xc]: [ + () => isSerializableHeaderValue(input[_c]), + () => (input[_c]! || []).map((_entry) => _entry as any).join(", "), + ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/NullAndEmptyHeadersServer"; + b.bp("/NullAndEmptyHeadersServer"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - body, - }); + b.m("GET").h(headers).b(body); + return b.build(); }; /** @@ -1497,25 +1124,16 @@ export const se_OmitsNullSerializesEmptyStringCommand = async ( input: OmitsNullSerializesEmptyStringCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/OmitsNullSerializesEmptyString"; + b.bp("/OmitsNullSerializesEmptyString"); const query: any = map({ - Null: [, input.nullValue!], - Empty: [, input.emptyString!], + [_N]: [, input[_nV]!], + [_Em]: [, input[_eS]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1525,31 +1143,21 @@ export const se_PutWithContentEncodingCommand = async ( input: PutWithContentEncodingCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "content-encoding": input.encoding!, + [_ce]: input[_e]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/requestcompression/putcontentwithencoding"; + b.bp("/requestcompression/putcontentwithencoding"); let body: any; - body = ''; - const bodyNode = new __XmlNode("PutWithContentEncodingInput"); - if (input.data !== undefined) { - const node = __XmlNode.of("String", input.data).withName("data"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_PWCEI); + if (input[_d] != null) { + bn.c(__XmlNode.of(_S, input[_d]).n(_d)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1559,24 +1167,15 @@ export const se_QueryIdempotencyTokenAutoFillCommand = async ( input: QueryIdempotencyTokenAutoFillCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/QueryIdempotencyTokenAutoFill"; + b.bp("/QueryIdempotencyTokenAutoFill"); const query: any = map({ - token: [, input.token ?? generateIdempotencyToken()], + [_t]: [, input[_t] ?? generateIdempotencyToken()], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1586,24 +1185,16 @@ export const se_QueryParamsAsStringListMapCommand = async ( input: QueryParamsAsStringListMapCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StringListMap"; + b.bp("/StringListMap"); const query: any = map({ ...convertMap(input.foo), - corge: [, input.qux!], + [_co]: [, input[_q]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1613,24 +1204,16 @@ export const se_QueryPrecedenceCommand = async ( input: QueryPrecedenceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = {}; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Precedence"; + b.bp("/Precedence"); const query: any = map({ ...convertMap(input.baz), - bar: [, input.foo!], + [_ba]: [, input[_f]!], }); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - query, - body, - }); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }; /** @@ -1640,28 +1223,20 @@ export const se_RecursiveShapesCommand = async ( input: RecursiveShapesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RecursiveShapes"; + b.bp("/RecursiveShapes"); let body: any; - body = ''; - const bodyNode = new __XmlNode("RecursiveShapesInputOutput"); - if (input.nested !== undefined) { - const node = se_RecursiveShapesInputOutputNested1(input.nested, context).withName("nested"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_RSIO); + if (input[_n] != null) { + bn.c(se_RecursiveShapesInputOutputNested1(input[_n], context).n(_n)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1671,62 +1246,45 @@ export const se_SimpleScalarPropertiesCommand = async ( input: SimpleScalarPropertiesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/xml", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SimpleScalarProperties"; + b.bp("/SimpleScalarProperties"); let body: any; - body = ''; - const bodyNode = new __XmlNode("SimpleScalarPropertiesInputOutput"); - if (input.byteValue !== undefined) { - const node = __XmlNode.of("Byte", String(input.byteValue)).withName("byteValue"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_SSPIO); + if (input[_bV] != null) { + bn.c(__XmlNode.of(_B, String(input[_bV])).n(_bV)); } - if (input.doubleValue !== undefined) { - const node = __XmlNode.of("Double", String(input.doubleValue)).withName("DoubleDribble"); - bodyNode.addChildNode(node); + if (input[_dV] != null) { + bn.c(__XmlNode.of(_D, String(input[_dV])).n(_DD)); } - if (input.falseBooleanValue !== undefined) { - const node = __XmlNode.of("Boolean", String(input.falseBooleanValue)).withName("falseBooleanValue"); - bodyNode.addChildNode(node); + if (input[_fBV] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_fBV])).n(_fBV)); } - if (input.floatValue !== undefined) { - const node = __XmlNode.of("Float", String(input.floatValue)).withName("floatValue"); - bodyNode.addChildNode(node); + if (input[_fV] != null) { + bn.c(__XmlNode.of(_F, String(input[_fV])).n(_fV)); } - if (input.integerValue !== undefined) { - const node = __XmlNode.of("Integer", String(input.integerValue)).withName("integerValue"); - bodyNode.addChildNode(node); + if (input[_iV] != null) { + bn.c(__XmlNode.of(_I, String(input[_iV])).n(_iV)); } - if (input.longValue !== undefined) { - const node = __XmlNode.of("Long", String(input.longValue)).withName("longValue"); - bodyNode.addChildNode(node); + if (input[_lV] != null) { + bn.c(__XmlNode.of(_L, String(input[_lV])).n(_lV)); } - if (input.shortValue !== undefined) { - const node = __XmlNode.of("Short", String(input.shortValue)).withName("shortValue"); - bodyNode.addChildNode(node); + if (input[_sV] != null) { + bn.c(__XmlNode.of(_Sh, String(input[_sV])).n(_sV)); } - if (input.stringValue !== undefined) { - const node = __XmlNode.of("String", input.stringValue).withName("stringValue"); - bodyNode.addChildNode(node); + if (input[_sVt] != null) { + bn.c(__XmlNode.of(_S, input[_sVt]).n(_sVt)); } - if (input.trueBooleanValue !== undefined) { - const node = __XmlNode.of("Boolean", String(input.trueBooleanValue)).withName("trueBooleanValue"); - bodyNode.addChildNode(node); + if (input[_tBV] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_tBV])).n(_tBV)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1736,49 +1294,26 @@ export const se_TimestampFormatHeadersCommand = async ( input: TimestampFormatHeadersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { - "x-memberepochseconds": [ - () => isSerializableHeaderValue(input.memberEpochSeconds), - () => Math.round(input.memberEpochSeconds!.getTime() / 1000).toString(), + [_xm]: [() => isSerializableHeaderValue(input[_mES]), () => Math.round(input[_mES]!.getTime() / 1000).toString()], + [_xm_]: [() => isSerializableHeaderValue(input[_mHD]), () => __dateToUtcString(input[_mHD]!).toString()], + [_xm__]: [ + () => isSerializableHeaderValue(input[_mDT]), + () => (input[_mDT]!.toISOString().split(".")[0] + "Z").toString(), ], - "x-memberhttpdate": [ - () => isSerializableHeaderValue(input.memberHttpDate), - () => __dateToUtcString(input.memberHttpDate!).toString(), - ], - "x-memberdatetime": [ - () => isSerializableHeaderValue(input.memberDateTime), - () => (input.memberDateTime!.toISOString().split(".")[0] + "Z").toString(), - ], - "x-defaultformat": [ - () => isSerializableHeaderValue(input.defaultFormat), - () => __dateToUtcString(input.defaultFormat!).toString(), - ], - "x-targetepochseconds": [ - () => isSerializableHeaderValue(input.targetEpochSeconds), - () => Math.round(input.targetEpochSeconds!.getTime() / 1000).toString(), - ], - "x-targethttpdate": [ - () => isSerializableHeaderValue(input.targetHttpDate), - () => __dateToUtcString(input.targetHttpDate!).toString(), - ], - "x-targetdatetime": [ - () => isSerializableHeaderValue(input.targetDateTime), - () => (input.targetDateTime!.toISOString().split(".")[0] + "Z").toString(), + [_xd_]: [() => isSerializableHeaderValue(input[_dF]), () => __dateToUtcString(input[_dF]!).toString()], + [_xt_]: [() => isSerializableHeaderValue(input[_tES]), () => Math.round(input[_tES]!.getTime() / 1000).toString()], + [_xt__]: [() => isSerializableHeaderValue(input[_tHD]), () => __dateToUtcString(input[_tHD]!).toString()], + [_xt___]: [ + () => isSerializableHeaderValue(input[_tDT]), + () => (input[_tDT]!.toISOString().split(".")[0] + "Z").toString(), ], }); - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TimestampFormatHeaders"; + b.bp("/TimestampFormatHeaders"); let body: any; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1788,31 +1323,21 @@ export const se_XmlAttributesCommand = async ( input: XmlAttributesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlAttributes"; + b.bp("/XmlAttributes"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlAttributesInputOutput"); - if (input.attr !== undefined) { - bodyNode.addAttribute("test", input.attr); - } - if (input.foo !== undefined) { - const node = __XmlNode.of("String", input.foo).withName("foo"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_XAIO); + bn.a("test", input[_at]); + if (input[_f] != null) { + bn.c(__XmlNode.of(_S, input[_f]).n(_f)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1822,28 +1347,20 @@ export const se_XmlAttributesOnPayloadCommand = async ( input: XmlAttributesOnPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlAttributesOnPayload"; + b.bp("/XmlAttributesOnPayload"); let body: any; let contents: any; if (input.payload !== undefined) { contents = se_XmlAttributesInputOutput(input.payload, context); - body = ''; + body = _ve; body += contents.toString(); } - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -1853,28 +1370,20 @@ export const se_XmlBlobsCommand = async ( input: XmlBlobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlBlobs"; + b.bp("/XmlBlobs"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlBlobsInputOutput"); - if (input.data !== undefined) { - const node = __XmlNode.of("Blob", context.base64Encoder(input.data)).withName("data"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_XBIO); + if (input[_d] != null) { + bn.c(__XmlNode.of(_Bl, context.base64Encoder(input[_d])).n(_d)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1884,28 +1393,20 @@ export const se_XmlEmptyBlobsCommand = async ( input: XmlEmptyBlobsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlEmptyBlobs"; + b.bp("/XmlEmptyBlobs"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlBlobsInputOutput"); - if (input.data !== undefined) { - const node = __XmlNode.of("Blob", context.base64Encoder(input.data)).withName("data"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_XBIO); + if (input[_d] != null) { + bn.c(__XmlNode.of(_Bl, context.base64Encoder(input[_d])).n(_d)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -1915,139 +1416,36 @@ export const se_XmlEmptyListsCommand = async ( input: XmlEmptyListsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlEmptyLists"; + b.bp("/XmlEmptyLists"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlListsInputOutput"); - if (input.booleanList !== undefined) { - const nodes = se_BooleanList(input.booleanList, context); - const containerNode = new __XmlNode("booleanList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.enumList !== undefined) { - const nodes = se_FooEnumList(input.enumList, context); - const containerNode = new __XmlNode("enumList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.flattenedList !== undefined) { - const nodes = se_RenamedListMembers(input.flattenedList, context); - nodes.map((node: any) => { - node = node.withName("flattenedList"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedList2 !== undefined) { - const nodes = se_RenamedListMembers(input.flattenedList2, context); - nodes.map((node: any) => { - node = node.withName("customName"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedListWithMemberNamespace !== undefined) { - const nodes = se_ListWithMemberNamespace(input.flattenedListWithMemberNamespace, context); - nodes.map((node: any) => { - node = node.withName("flattenedListWithMemberNamespace"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedListWithNamespace !== undefined) { - const nodes = se_ListWithNamespace(input.flattenedListWithNamespace, context); - nodes.map((node: any) => { - node = node.withName("flattenedListWithNamespace"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedStructureList !== undefined) { - const nodes = se_StructureList(input.flattenedStructureList, context); - nodes.map((node: any) => { - node = node.withName("flattenedStructureList"); - bodyNode.addChildNode(node); - }); - } - if (input.intEnumList !== undefined) { - const nodes = se_IntegerEnumList(input.intEnumList, context); - const containerNode = new __XmlNode("intEnumList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.integerList !== undefined) { - const nodes = se_IntegerList(input.integerList, context); - const containerNode = new __XmlNode("integerList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.nestedStringList !== undefined) { - const nodes = se_NestedStringList(input.nestedStringList, context); - const containerNode = new __XmlNode("nestedStringList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.renamedListMembers !== undefined) { - const nodes = se_RenamedListMembers(input.renamedListMembers, context); - const containerNode = new __XmlNode("renamed"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.stringList !== undefined) { - const nodes = se_StringList(input.stringList, context); - const containerNode = new __XmlNode("stringList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.stringSet !== undefined) { - const nodes = se_StringSet(input.stringSet, context); - const containerNode = new __XmlNode("stringSet"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.structureList !== undefined) { - const nodes = se_StructureList(input.structureList, context); - const containerNode = new __XmlNode("myStructureList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.timestampList !== undefined) { - const nodes = se_TimestampList(input.timestampList, context); - const containerNode = new __XmlNode("timestampList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_XLIO); + bn.lc(input, "booleanList", "booleanList", () => se_BooleanList(input[_bL]!, context)); + bn.lc(input, "enumList", "enumList", () => se_FooEnumList(input[_eL]!, context)); + bn.l(input, "flattenedList", "flattenedList", () => se_RenamedListMembers(input[_fL]!, context)); + bn.l(input, "flattenedList2", "customName", () => se_RenamedListMembers(input[_fLl]!, context)); + bn.l(input, "flattenedListWithMemberNamespace", "flattenedListWithMemberNamespace", () => + se_ListWithMemberNamespace(input[_fLWMN]!, context) + ); + bn.l(input, "flattenedListWithNamespace", "flattenedListWithNamespace", () => + se_ListWithNamespace(input[_fLWN]!, context) + ); + bn.l(input, "flattenedStructureList", "flattenedStructureList", () => se_StructureList(input[_fSL]!, context)); + bn.lc(input, "intEnumList", "intEnumList", () => se_IntegerEnumList(input[_iEL]!, context)); + bn.lc(input, "integerList", "integerList", () => se_IntegerList(input[_iL]!, context)); + bn.lc(input, "nestedStringList", "nestedStringList", () => se_NestedStringList(input[_nSL]!, context)); + bn.lc(input, "renamedListMembers", "renamed", () => se_RenamedListMembers(input[_rLM]!, context)); + bn.lc(input, "stringList", "stringList", () => se_StringList(input[_sL]!, context)); + bn.lc(input, "stringSet", "stringSet", () => se_StringSet(input[_sS]!, context)); + bn.lc(input, "structureList", "myStructureList", () => se_StructureList(input[_sLt]!, context)); + bn.lc(input, "timestampList", "timestampList", () => se_TimestampList(input[_tL]!, context)); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2057,32 +1455,18 @@ export const se_XmlEmptyMapsCommand = async ( input: XmlEmptyMapsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlEmptyMaps"; + b.bp("/XmlEmptyMaps"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlMapsInputOutput"); - if (input.myMap !== undefined) { - const nodes = se_XmlMapsInputOutputMap(input.myMap, context); - const containerNode = new __XmlNode("myMap"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_XMIO); + bn.lc(input, "myMap", "myMap", () => se_XmlMapsInputOutputMap(input[_mM]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2092,28 +1476,20 @@ export const se_XmlEmptyStringsCommand = async ( input: XmlEmptyStringsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlEmptyStrings"; + b.bp("/XmlEmptyStrings"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlEmptyStringsInputOutput"); - if (input.emptyString !== undefined) { - const node = __XmlNode.of("String", input.emptyString).withName("emptyString"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_XESIO); + if (input[_eS] != null) { + bn.c(__XmlNode.of(_S, input[_eS]).n(_eS)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2123,60 +1499,29 @@ export const se_XmlEnumsCommand = async ( input: XmlEnumsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlEnums"; + b.bp("/XmlEnums"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlEnumsInputOutput"); - if (input.fooEnum1 !== undefined) { - const node = __XmlNode.of("FooEnum", input.fooEnum1).withName("fooEnum1"); - bodyNode.addChildNode(node); - } - if (input.fooEnum2 !== undefined) { - const node = __XmlNode.of("FooEnum", input.fooEnum2).withName("fooEnum2"); - bodyNode.addChildNode(node); - } - if (input.fooEnum3 !== undefined) { - const node = __XmlNode.of("FooEnum", input.fooEnum3).withName("fooEnum3"); - bodyNode.addChildNode(node); - } - if (input.fooEnumList !== undefined) { - const nodes = se_FooEnumList(input.fooEnumList, context); - const containerNode = new __XmlNode("fooEnumList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + body = _ve; + const bn = new __XmlNode(_XEIO); + if (input[_fE] != null) { + bn.c(__XmlNode.of(_FE, input[_fE]).n(_fE)); } - if (input.fooEnumMap !== undefined) { - const nodes = se_FooEnumMap(input.fooEnumMap, context); - const containerNode = new __XmlNode("fooEnumMap"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + if (input[_fEo] != null) { + bn.c(__XmlNode.of(_FE, input[_fEo]).n(_fEo)); } - if (input.fooEnumSet !== undefined) { - const nodes = se_FooEnumSet(input.fooEnumSet, context); - const containerNode = new __XmlNode("fooEnumSet"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + if (input[_fEoo] != null) { + bn.c(__XmlNode.of(_FE, input[_fEoo]).n(_fEoo)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + bn.lc(input, "fooEnumList", "fooEnumList", () => se_FooEnumList(input[_fEL]!, context)); + bn.lc(input, "fooEnumMap", "fooEnumMap", () => se_FooEnumMap(input[_fEM]!, context)); + bn.lc(input, "fooEnumSet", "fooEnumSet", () => se_FooEnumSet(input[_fES]!, context)); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2186,60 +1531,29 @@ export const se_XmlIntEnumsCommand = async ( input: XmlIntEnumsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlIntEnums"; + b.bp("/XmlIntEnums"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlIntEnumsInputOutput"); - if (input.intEnum1 !== undefined) { - const node = __XmlNode.of("IntegerEnum", String(input.intEnum1)).withName("intEnum1"); - bodyNode.addChildNode(node); - } - if (input.intEnum2 !== undefined) { - const node = __XmlNode.of("IntegerEnum", String(input.intEnum2)).withName("intEnum2"); - bodyNode.addChildNode(node); - } - if (input.intEnum3 !== undefined) { - const node = __XmlNode.of("IntegerEnum", String(input.intEnum3)).withName("intEnum3"); - bodyNode.addChildNode(node); - } - if (input.intEnumList !== undefined) { - const nodes = se_IntegerEnumList(input.intEnumList, context); - const containerNode = new __XmlNode("intEnumList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + body = _ve; + const bn = new __XmlNode(_XIEIO); + if (input[_iE] != null) { + bn.c(__XmlNode.of(_IE, String(input[_iE])).n(_iE)); } - if (input.intEnumMap !== undefined) { - const nodes = se_IntegerEnumMap(input.intEnumMap, context); - const containerNode = new __XmlNode("intEnumMap"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + if (input[_iEn] != null) { + bn.c(__XmlNode.of(_IE, String(input[_iEn])).n(_iEn)); } - if (input.intEnumSet !== undefined) { - const nodes = se_IntegerEnumSet(input.intEnumSet, context); - const containerNode = new __XmlNode("intEnumSet"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); + if (input[_iEnt] != null) { + bn.c(__XmlNode.of(_IE, String(input[_iEnt])).n(_iEnt)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + bn.lc(input, "intEnumList", "intEnumList", () => se_IntegerEnumList(input[_iEL]!, context)); + bn.lc(input, "intEnumMap", "intEnumMap", () => se_IntegerEnumMap(input[_iEM]!, context)); + bn.lc(input, "intEnumSet", "intEnumSet", () => se_IntegerEnumSet(input[_iES]!, context)); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2249,139 +1563,36 @@ export const se_XmlListsCommand = async ( input: XmlListsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlLists"; + b.bp("/XmlLists"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlListsInputOutput"); - if (input.booleanList !== undefined) { - const nodes = se_BooleanList(input.booleanList, context); - const containerNode = new __XmlNode("booleanList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.enumList !== undefined) { - const nodes = se_FooEnumList(input.enumList, context); - const containerNode = new __XmlNode("enumList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.flattenedList !== undefined) { - const nodes = se_RenamedListMembers(input.flattenedList, context); - nodes.map((node: any) => { - node = node.withName("flattenedList"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedList2 !== undefined) { - const nodes = se_RenamedListMembers(input.flattenedList2, context); - nodes.map((node: any) => { - node = node.withName("customName"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedListWithMemberNamespace !== undefined) { - const nodes = se_ListWithMemberNamespace(input.flattenedListWithMemberNamespace, context); - nodes.map((node: any) => { - node = node.withName("flattenedListWithMemberNamespace"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedListWithNamespace !== undefined) { - const nodes = se_ListWithNamespace(input.flattenedListWithNamespace, context); - nodes.map((node: any) => { - node = node.withName("flattenedListWithNamespace"); - bodyNode.addChildNode(node); - }); - } - if (input.flattenedStructureList !== undefined) { - const nodes = se_StructureList(input.flattenedStructureList, context); - nodes.map((node: any) => { - node = node.withName("flattenedStructureList"); - bodyNode.addChildNode(node); - }); - } - if (input.intEnumList !== undefined) { - const nodes = se_IntegerEnumList(input.intEnumList, context); - const containerNode = new __XmlNode("intEnumList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.integerList !== undefined) { - const nodes = se_IntegerList(input.integerList, context); - const containerNode = new __XmlNode("integerList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.nestedStringList !== undefined) { - const nodes = se_NestedStringList(input.nestedStringList, context); - const containerNode = new __XmlNode("nestedStringList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.renamedListMembers !== undefined) { - const nodes = se_RenamedListMembers(input.renamedListMembers, context); - const containerNode = new __XmlNode("renamed"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.stringList !== undefined) { - const nodes = se_StringList(input.stringList, context); - const containerNode = new __XmlNode("stringList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.stringSet !== undefined) { - const nodes = se_StringSet(input.stringSet, context); - const containerNode = new __XmlNode("stringSet"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.structureList !== undefined) { - const nodes = se_StructureList(input.structureList, context); - const containerNode = new __XmlNode("myStructureList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - if (input.timestampList !== undefined) { - const nodes = se_TimestampList(input.timestampList, context); - const containerNode = new __XmlNode("timestampList"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_XLIO); + bn.lc(input, "booleanList", "booleanList", () => se_BooleanList(input[_bL]!, context)); + bn.lc(input, "enumList", "enumList", () => se_FooEnumList(input[_eL]!, context)); + bn.l(input, "flattenedList", "flattenedList", () => se_RenamedListMembers(input[_fL]!, context)); + bn.l(input, "flattenedList2", "customName", () => se_RenamedListMembers(input[_fLl]!, context)); + bn.l(input, "flattenedListWithMemberNamespace", "flattenedListWithMemberNamespace", () => + se_ListWithMemberNamespace(input[_fLWMN]!, context) + ); + bn.l(input, "flattenedListWithNamespace", "flattenedListWithNamespace", () => + se_ListWithNamespace(input[_fLWN]!, context) + ); + bn.l(input, "flattenedStructureList", "flattenedStructureList", () => se_StructureList(input[_fSL]!, context)); + bn.lc(input, "intEnumList", "intEnumList", () => se_IntegerEnumList(input[_iEL]!, context)); + bn.lc(input, "integerList", "integerList", () => se_IntegerList(input[_iL]!, context)); + bn.lc(input, "nestedStringList", "nestedStringList", () => se_NestedStringList(input[_nSL]!, context)); + bn.lc(input, "renamedListMembers", "renamed", () => se_RenamedListMembers(input[_rLM]!, context)); + bn.lc(input, "stringList", "stringList", () => se_StringList(input[_sL]!, context)); + bn.lc(input, "stringSet", "stringSet", () => se_StringSet(input[_sS]!, context)); + bn.lc(input, "structureList", "myStructureList", () => se_StructureList(input[_sLt]!, context)); + bn.lc(input, "timestampList", "timestampList", () => se_TimestampList(input[_tL]!, context)); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2391,32 +1602,18 @@ export const se_XmlMapsCommand = async ( input: XmlMapsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlMaps"; + b.bp("/XmlMaps"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlMapsInputOutput"); - if (input.myMap !== undefined) { - const nodes = se_XmlMapsInputOutputMap(input.myMap, context); - const containerNode = new __XmlNode("myMap"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_XMIO); + bn.lc(input, "myMap", "myMap", () => se_XmlMapsInputOutputMap(input[_mM]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2426,32 +1623,18 @@ export const se_XmlMapsXmlNameCommand = async ( input: XmlMapsXmlNameCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlMapsXmlName"; + b.bp("/XmlMapsXmlName"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlMapsXmlNameInputOutput"); - if (input.myMap !== undefined) { - const nodes = se_XmlMapsXmlNameInputOutputMap(input.myMap, context); - const containerNode = new __XmlNode("myMap"); - nodes.map((node: any) => { - containerNode.addChildNode(node); - }); - bodyNode.addChildNode(containerNode); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_XMXNIO); + bn.lc(input, "myMap", "myMap", () => se_XmlMapsXmlNameInputOutputMap(input[_mM]!, context)); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2461,34 +1644,26 @@ export const se_XmlMapWithXmlNamespaceCommand = async ( input: XmlMapWithXmlNamespaceCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlMapWithXmlNamespace"; + b.bp("/XmlMapWithXmlNamespace"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlMapWithXmlNamespaceInputOutput"); - if (input.myMap !== undefined) { - const nodes = se_XmlMapWithXmlNamespaceInputOutputMap(input.myMap, context); - const containerNode = new __XmlNode("KVP"); - containerNode.addAttribute("xmlns", "https://the-member.example.com"); - nodes.map((node: any) => { - containerNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_XMWXNIO); + if (input[_mM] != null) { + const ns = se_XmlMapWithXmlNamespaceInputOutputMap(input[_mM], context); + const containerNode = new __XmlNode(_KVP); + containerNode.a("xmlns", "https://the-member.example.com"); + ns.map((n: any) => { + containerNode.c(n); }); - bodyNode.addChildNode(containerNode); + bn.c(containerNode); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2498,29 +1673,21 @@ export const se_XmlNamespacesCommand = async ( input: XmlNamespacesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlNamespaces"; + b.bp("/XmlNamespaces"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlNamespacesInputOutput"); - bodyNode.addAttribute("xmlns", "http://foo.com"); - if (input.nested !== undefined) { - const node = se_XmlNamespaceNested(input.nested, context).withName("nested"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_XNIO); + bn.a("xmlns", "http://foo.com"); + if (input[_n] != null) { + bn.c(se_XmlNamespaceNested(input[_n], context).n(_n)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2530,62 +1697,38 @@ export const se_XmlTimestampsCommand = async ( input: XmlTimestampsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlTimestamps"; + b.bp("/XmlTimestamps"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlTimestampsInputOutput"); - if (input.dateTime !== undefined) { - const node = __XmlNode - .of("Timestamp", (input.dateTime.toISOString().split(".")[0] + "Z").toString()) - .withName("dateTime"); - bodyNode.addChildNode(node); - } - if (input.dateTimeOnTarget !== undefined) { - const node = __XmlNode - .of("DateTime", (input.dateTimeOnTarget.toISOString().split(".")[0] + "Z").toString()) - .withName("dateTimeOnTarget"); - bodyNode.addChildNode(node); - } - if (input.epochSeconds !== undefined) { - const node = __XmlNode - .of("Timestamp", Math.round(input.epochSeconds.getTime() / 1000).toString()) - .withName("epochSeconds"); - bodyNode.addChildNode(node); - } - if (input.epochSecondsOnTarget !== undefined) { - const node = __XmlNode - .of("EpochSeconds", Math.round(input.epochSecondsOnTarget.getTime() / 1000).toString()) - .withName("epochSecondsOnTarget"); - bodyNode.addChildNode(node); - } - if (input.httpDate !== undefined) { - const node = __XmlNode.of("Timestamp", __dateToUtcString(input.httpDate).toString()).withName("httpDate"); - bodyNode.addChildNode(node); - } - if (input.httpDateOnTarget !== undefined) { - const node = __XmlNode - .of("HttpDate", __dateToUtcString(input.httpDateOnTarget).toString()) - .withName("httpDateOnTarget"); - bodyNode.addChildNode(node); - } - if (input.normal !== undefined) { - const node = __XmlNode.of("Timestamp", input.normal.toISOString().split(".")[0] + "Z").withName("normal"); - bodyNode.addChildNode(node); - } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); + body = _ve; + const bn = new __XmlNode(_XTIO); + if (input[_dT] != null) { + bn.c(__XmlNode.of(_T, (input[_dT].toISOString().split(".")[0] + "Z").toString()).n(_dT)); + } + if (input[_dTOT] != null) { + bn.c(__XmlNode.of(_DT, (input[_dTOT].toISOString().split(".")[0] + "Z").toString()).n(_dTOT)); + } + if (input[_eSp] != null) { + bn.c(__XmlNode.of(_T, Math.round(input[_eSp].getTime() / 1000).toString()).n(_eSp)); + } + if (input[_eSOT] != null) { + bn.c(__XmlNode.of(_ES, Math.round(input[_eSOT].getTime() / 1000).toString()).n(_eSOT)); + } + if (input[_hDt] != null) { + bn.c(__XmlNode.of(_T, __dateToUtcString(input[_hDt]).toString()).n(_hDt)); + } + if (input[_hDOT] != null) { + bn.c(__XmlNode.of(_HD, __dateToUtcString(input[_hDOT]).toString()).n(_hDOT)); + } + if (input[_no] != null) { + bn.c(__XmlNode.of(_T, input[_no].toISOString().split(".")[0] + "Z").n(_no)); + } + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); }; /** @@ -2595,28 +1738,20 @@ export const se_XmlUnionsCommand = async ( input: XmlUnionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const b = rb(input, context); const headers: any = { "content-type": "application/xml", }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/XmlUnions"; + b.bp("/XmlUnions"); let body: any; - body = ''; - const bodyNode = new __XmlNode("XmlUnionsInputOutput"); - if (input.unionValue !== undefined) { - const node = se_XmlUnionShape(input.unionValue, context).withName("unionValue"); - bodyNode.addChildNode(node); + body = _ve; + const bn = new __XmlNode(_XUIO); + if (input[_uV] != null) { + bn.c(se_XmlUnionShape(input[_uV], context).n(_uV)); } - body += bodyNode.toString(); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "PUT", - headers, - path: resolvedPath, - body, - }); + body += bn.toString(); + b.m("PUT").h(headers).b(body); + return b.build(); }; /** @@ -2670,8 +1805,8 @@ export const de_BodyWithXmlNameCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["nested"] !== undefined) { - contents.nested = de_PayloadWithXmlName(data["nested"], context); + if (data[_n] != null) { + contents[_n] = de_PayloadWithXmlName(data[_n], context); } return contents; }; @@ -2784,8 +1919,8 @@ export const de_DatetimeOffsetsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["datetime"] !== undefined) { - contents.datetime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["datetime"])); + if (data[_da] != null) { + contents[_da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_da])); } return contents; }; @@ -2973,9 +2108,9 @@ export const de_FlattenedXmlMapCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.myMap === "") { - contents.myMap = {}; - } else if (data["myMap"] !== undefined) { - contents.myMap = de_FooEnumMap(__getArrayIfSingleItem(data["myMap"]), context); + contents[_mM] = {}; + } else if (data[_mM] != null) { + contents[_mM] = de_FooEnumMap(__getArrayIfSingleItem(data[_mM]), context); } return contents; }; @@ -3015,9 +2150,9 @@ export const de_FlattenedXmlMapWithXmlNameCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.KVP === "") { - contents.myMap = {}; - } else if (data["KVP"] !== undefined) { - contents.myMap = de_FlattenedXmlMapWithXmlNameInputOutputMap(__getArrayIfSingleItem(data["KVP"]), context); + contents[_mM] = {}; + } else if (data[_KVP] != null) { + contents[_mM] = de_FlattenedXmlMapWithXmlNameInputOutputMap(__getArrayIfSingleItem(data[_KVP]), context); } return contents; }; @@ -3057,9 +2192,9 @@ export const de_FlattenedXmlMapWithXmlNamespaceCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.KVP === "") { - contents.myMap = {}; - } else if (data["KVP"] !== undefined) { - contents.myMap = de_FlattenedXmlMapWithXmlNamespaceOutputMap(__getArrayIfSingleItem(data["KVP"]), context); + contents[_mM] = {}; + } else if (data[_KVP] != null) { + contents[_mM] = de_FlattenedXmlMapWithXmlNamespaceOutputMap(__getArrayIfSingleItem(data[_KVP]), context); } return contents; }; @@ -3098,8 +2233,8 @@ export const de_FractionalSecondsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["datetime"] !== undefined) { - contents.datetime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["datetime"])); + if (data[_da] != null) { + contents[_da] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_da])); } return contents; }; @@ -3136,7 +2271,7 @@ export const de_GreetingWithErrorsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - greeting: [, output.headers["x-greeting"]], + [_g]: [, output.headers[_xg]], }); await collectBody(output.body, context); return contents; @@ -3221,7 +2356,7 @@ export const de_HttpPayloadTraitsCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = await collectBody(output.body, context); contents.blob = data; @@ -3260,7 +2395,7 @@ export const de_HttpPayloadTraitsWithMediaTypeCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = await collectBody(output.body, context); contents.blob = data; @@ -3527,7 +2662,7 @@ export const de_HttpPrefixHeadersCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], fooMap: [ , Object.keys(output.headers) @@ -3802,8 +2937,8 @@ export const de_IgnoreQueryParamsInResponseCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["baz"] !== undefined) { - contents.baz = __expectString(data["baz"]); + if (data[_b] != null) { + contents[_b] = __expectString(data[_b]); } return contents; }; @@ -3840,49 +2975,42 @@ export const de_InputAndOutputWithHeadersCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - headerString: [, output.headers["x-string"]], - headerByte: [() => void 0 !== output.headers["x-byte"], () => __strictParseByte(output.headers["x-byte"])], - headerShort: [() => void 0 !== output.headers["x-short"], () => __strictParseShort(output.headers["x-short"])], - headerInteger: [ - () => void 0 !== output.headers["x-integer"], - () => __strictParseInt32(output.headers["x-integer"]), + [_hS]: [, output.headers[_xs]], + [_hB]: [() => void 0 !== output.headers[_xb], () => __strictParseByte(output.headers[_xb])], + [_hSe]: [() => void 0 !== output.headers[_xs_], () => __strictParseShort(output.headers[_xs_])], + [_hI]: [() => void 0 !== output.headers[_xi], () => __strictParseInt32(output.headers[_xi])], + [_hL]: [() => void 0 !== output.headers[_xl], () => __strictParseLong(output.headers[_xl])], + [_hF]: [() => void 0 !== output.headers[_xf_], () => __strictParseFloat(output.headers[_xf_])], + [_hD]: [() => void 0 !== output.headers[_xd], () => __strictParseDouble(output.headers[_xd])], + [_hTB]: [() => void 0 !== output.headers[_xb_], () => __parseBoolean(output.headers[_xb_])], + [_hFB]: [() => void 0 !== output.headers[_xb__], () => __parseBoolean(output.headers[_xb__])], + [_hSL]: [ + () => void 0 !== output.headers[_xs__], + () => (output.headers[_xs__] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerLong: [() => void 0 !== output.headers["x-long"], () => __strictParseLong(output.headers["x-long"])], - headerFloat: [() => void 0 !== output.headers["x-float"], () => __strictParseFloat(output.headers["x-float"])], - headerDouble: [() => void 0 !== output.headers["x-double"], () => __strictParseDouble(output.headers["x-double"])], - headerTrueBool: [() => void 0 !== output.headers["x-boolean1"], () => __parseBoolean(output.headers["x-boolean1"])], - headerFalseBool: [ - () => void 0 !== output.headers["x-boolean2"], - () => __parseBoolean(output.headers["x-boolean2"]), + [_hSS]: [ + () => void 0 !== output.headers[_xs___], + () => (output.headers[_xs___] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerStringList: [ - () => void 0 !== output.headers["x-stringlist"], - () => (output.headers["x-stringlist"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hIL]: [ + () => void 0 !== output.headers[_xi_], + () => (output.headers[_xi_] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), ], - headerStringSet: [ - () => void 0 !== output.headers["x-stringset"], - () => (output.headers["x-stringset"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hBL]: [ + () => void 0 !== output.headers[_xb___], + () => (output.headers[_xb___] || "").split(",").map((_entry) => __parseBoolean(_entry.trim()) as any), ], - headerIntegerList: [ - () => void 0 !== output.headers["x-integerlist"], + [_hTL]: [ + () => void 0 !== output.headers[_xt], () => - (output.headers["x-integerlist"] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), - ], - headerBooleanList: [ - () => void 0 !== output.headers["x-booleanlist"], - () => (output.headers["x-booleanlist"] || "").split(",").map((_entry) => __parseBoolean(_entry.trim()) as any), - ], - headerTimestampList: [ - () => void 0 !== output.headers["x-timestamplist"], - () => - __splitEvery(output.headers["x-timestamplist"] || "", ",", 2).map( + __splitEvery(output.headers[_xt] || "", ",", 2).map( (_entry) => __expectNonNull(__parseRfc7231DateTime(_entry.trim())) as any ), ], - headerEnum: [, output.headers["x-enum"]], - headerEnumList: [ - () => void 0 !== output.headers["x-enumlist"], - () => (output.headers["x-enumlist"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hE]: [, output.headers[_xe]], + [_hEL]: [ + () => void 0 !== output.headers[_xe_], + () => (output.headers[_xe_] || "").split(",").map((_entry) => _entry.trim() as any), ], }); await collectBody(output.body, context); @@ -3924,14 +3052,14 @@ export const de_NestedXmlMapsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.flatNestedMap === "") { - contents.flatNestedMap = {}; - } else if (data["flatNestedMap"] !== undefined) { - contents.flatNestedMap = de_NestedMap(__getArrayIfSingleItem(data["flatNestedMap"]), context); + contents[_fNM] = {}; + } else if (data[_fNM] != null) { + contents[_fNM] = de_NestedMap(__getArrayIfSingleItem(data[_fNM]), context); } if (data.nestedMap === "") { - contents.nestedMap = {}; - } else if (data["nestedMap"] !== undefined && data["nestedMap"]["entry"] !== undefined) { - contents.nestedMap = de_NestedMap(__getArrayIfSingleItem(data["nestedMap"]["entry"]), context); + contents[_nM] = {}; + } else if (data[_nM] != null && data[_nM][_en] != null) { + contents[_nM] = de_NestedMap(__getArrayIfSingleItem(data[_nM][_en]), context); } return contents; }; @@ -4042,11 +3170,11 @@ export const de_NullAndEmptyHeadersClientCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - a: [, output.headers["x-a"]], - b: [, output.headers["x-b"]], - c: [ - () => void 0 !== output.headers["x-c"], - () => (output.headers["x-c"] || "").split(",").map((_entry) => _entry.trim() as any), + [_a]: [, output.headers[_xa]], + [_b_]: [, output.headers[_xb____]], + [_c]: [ + () => void 0 !== output.headers[_xc], + () => (output.headers[_xc] || "").split(",").map((_entry) => _entry.trim() as any), ], }); await collectBody(output.body, context); @@ -4085,11 +3213,11 @@ export const de_NullAndEmptyHeadersServerCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - a: [, output.headers["x-a"]], - b: [, output.headers["x-b"]], - c: [ - () => void 0 !== output.headers["x-c"], - () => (output.headers["x-c"] || "").split(",").map((_entry) => _entry.trim() as any), + [_a]: [, output.headers[_xa]], + [_b_]: [, output.headers[_xb____]], + [_c]: [ + () => void 0 !== output.headers[_xc], + () => (output.headers[_xc] || "").split(",").map((_entry) => _entry.trim() as any), ], }); await collectBody(output.body, context); @@ -4315,8 +3443,8 @@ export const de_RecursiveShapesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["nested"] !== undefined) { - contents.nested = de_RecursiveShapesInputOutputNested1(data["nested"], context); + if (data[_n] != null) { + contents[_n] = de_RecursiveShapesInputOutputNested1(data[_n], context); } return contents; }; @@ -4353,35 +3481,35 @@ export const de_SimpleScalarPropertiesCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["byteValue"] !== undefined) { - contents.byteValue = __strictParseByte(data["byteValue"]) as number; + if (data[_bV] != null) { + contents[_bV] = __strictParseByte(data[_bV]) as number; } - if (data["DoubleDribble"] !== undefined) { - contents.doubleValue = __strictParseFloat(data["DoubleDribble"]) as number; + if (data[_DD] != null) { + contents[_dV] = __strictParseFloat(data[_DD]) as number; } - if (data["falseBooleanValue"] !== undefined) { - contents.falseBooleanValue = __parseBoolean(data["falseBooleanValue"]); + if (data[_fBV] != null) { + contents[_fBV] = __parseBoolean(data[_fBV]); } - if (data["floatValue"] !== undefined) { - contents.floatValue = __strictParseFloat(data["floatValue"]) as number; + if (data[_fV] != null) { + contents[_fV] = __strictParseFloat(data[_fV]) as number; } - if (data["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt32(data["integerValue"]) as number; + if (data[_iV] != null) { + contents[_iV] = __strictParseInt32(data[_iV]) as number; } - if (data["longValue"] !== undefined) { - contents.longValue = __strictParseLong(data["longValue"]) as number; + if (data[_lV] != null) { + contents[_lV] = __strictParseLong(data[_lV]) as number; } - if (data["shortValue"] !== undefined) { - contents.shortValue = __strictParseShort(data["shortValue"]) as number; + if (data[_sV] != null) { + contents[_sV] = __strictParseShort(data[_sV]) as number; } - if (data["stringValue"] !== undefined) { - contents.stringValue = __expectString(data["stringValue"]); + if (data[_sVt] != null) { + contents[_sVt] = __expectString(data[_sVt]); } - if (data["trueBooleanValue"] !== undefined) { - contents.trueBooleanValue = __parseBoolean(data["trueBooleanValue"]); + if (data[_tBV] != null) { + contents[_tBV] = __parseBoolean(data[_tBV]); } return contents; }; @@ -4418,33 +3546,24 @@ export const de_TimestampFormatHeadersCommand = async ( } const contents: any = map({ $metadata: deserializeMetadata(output), - memberEpochSeconds: [ - () => void 0 !== output.headers["x-memberepochseconds"], - () => __expectNonNull(__parseEpochTimestamp(output.headers["x-memberepochseconds"])), - ], - memberHttpDate: [ - () => void 0 !== output.headers["x-memberhttpdate"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-memberhttpdate"])), + [_mES]: [() => void 0 !== output.headers[_xm], () => __expectNonNull(__parseEpochTimestamp(output.headers[_xm]))], + [_mHD]: [ + () => void 0 !== output.headers[_xm_], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xm_])), ], - memberDateTime: [ - () => void 0 !== output.headers["x-memberdatetime"], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers["x-memberdatetime"])), + [_mDT]: [ + () => void 0 !== output.headers[_xm__], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xm__])), ], - defaultFormat: [ - () => void 0 !== output.headers["x-defaultformat"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-defaultformat"])), + [_dF]: [() => void 0 !== output.headers[_xd_], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xd_]))], + [_tES]: [() => void 0 !== output.headers[_xt_], () => __expectNonNull(__parseEpochTimestamp(output.headers[_xt_]))], + [_tHD]: [ + () => void 0 !== output.headers[_xt__], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xt__])), ], - targetEpochSeconds: [ - () => void 0 !== output.headers["x-targetepochseconds"], - () => __expectNonNull(__parseEpochTimestamp(output.headers["x-targetepochseconds"])), - ], - targetHttpDate: [ - () => void 0 !== output.headers["x-targethttpdate"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-targethttpdate"])), - ], - targetDateTime: [ - () => void 0 !== output.headers["x-targetdatetime"], - () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers["x-targetdatetime"])), + [_tDT]: [ + () => void 0 !== output.headers[_xt___], + () => __expectNonNull(__parseRfc3339DateTimeWithOffset(output.headers[_xt___])), ], }); await collectBody(output.body, context); @@ -4485,11 +3604,11 @@ export const de_XmlAttributesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["test"] !== undefined) { - contents.attr = __expectString(data["test"]); + if (data[_te] != null) { + contents[_at] = __expectString(data[_te]); } - if (data["foo"] !== undefined) { - contents.foo = __expectString(data["foo"]); + if (data[_f] != null) { + contents[_f] = __expectString(data[_f]); } return contents; }; @@ -4566,8 +3685,8 @@ export const de_XmlBlobsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["data"] !== undefined) { - contents.data = context.base64Decoder(data["data"]); + if (data[_d] != null) { + contents[_d] = context.base64Decoder(data[_d]); } return contents; }; @@ -4606,8 +3725,8 @@ export const de_XmlEmptyBlobsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["data"] !== undefined) { - contents.data = context.base64Decoder(data["data"]); + if (data[_d] != null) { + contents[_d] = context.base64Decoder(data[_d]); } return contents; }; @@ -4647,88 +3766,79 @@ export const de_XmlEmptyListsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.booleanList === "") { - contents.booleanList = []; - } else if (data["booleanList"] !== undefined && data["booleanList"]["member"] !== undefined) { - contents.booleanList = de_BooleanList(__getArrayIfSingleItem(data["booleanList"]["member"]), context); + contents[_bL] = []; + } else if (data[_bL] != null && data[_bL][_m] != null) { + contents[_bL] = de_BooleanList(__getArrayIfSingleItem(data[_bL][_m]), context); } if (data.enumList === "") { - contents.enumList = []; - } else if (data["enumList"] !== undefined && data["enumList"]["member"] !== undefined) { - contents.enumList = de_FooEnumList(__getArrayIfSingleItem(data["enumList"]["member"]), context); + contents[_eL] = []; + } else if (data[_eL] != null && data[_eL][_m] != null) { + contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(data[_eL][_m]), context); } if (data.flattenedList === "") { - contents.flattenedList = []; - } else if (data["flattenedList"] !== undefined) { - contents.flattenedList = de_RenamedListMembers(__getArrayIfSingleItem(data["flattenedList"]), context); + contents[_fL] = []; + } else if (data[_fL] != null) { + contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(data[_fL]), context); } if (data.customName === "") { - contents.flattenedList2 = []; - } else if (data["customName"] !== undefined) { - contents.flattenedList2 = de_RenamedListMembers(__getArrayIfSingleItem(data["customName"]), context); + contents[_fLl] = []; + } else if (data[_cN] != null) { + contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(data[_cN]), context); } if (data.flattenedListWithMemberNamespace === "") { - contents.flattenedListWithMemberNamespace = []; - } else if (data["flattenedListWithMemberNamespace"] !== undefined) { - contents.flattenedListWithMemberNamespace = de_ListWithMemberNamespace( - __getArrayIfSingleItem(data["flattenedListWithMemberNamespace"]), - context - ); + contents[_fLWMN] = []; + } else if (data[_fLWMN] != null) { + contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(data[_fLWMN]), context); } if (data.flattenedListWithNamespace === "") { - contents.flattenedListWithNamespace = []; - } else if (data["flattenedListWithNamespace"] !== undefined) { - contents.flattenedListWithNamespace = de_ListWithNamespace( - __getArrayIfSingleItem(data["flattenedListWithNamespace"]), - context - ); + contents[_fLWN] = []; + } else if (data[_fLWN] != null) { + contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(data[_fLWN]), context); } if (data.flattenedStructureList === "") { - contents.flattenedStructureList = []; - } else if (data["flattenedStructureList"] !== undefined) { - contents.flattenedStructureList = de_StructureList(__getArrayIfSingleItem(data["flattenedStructureList"]), context); + contents[_fSL] = []; + } else if (data[_fSL] != null) { + contents[_fSL] = de_StructureList(__getArrayIfSingleItem(data[_fSL]), context); } if (data.intEnumList === "") { - contents.intEnumList = []; - } else if (data["intEnumList"] !== undefined && data["intEnumList"]["member"] !== undefined) { - contents.intEnumList = de_IntegerEnumList(__getArrayIfSingleItem(data["intEnumList"]["member"]), context); + contents[_iEL] = []; + } else if (data[_iEL] != null && data[_iEL][_m] != null) { + contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(data[_iEL][_m]), context); } if (data.integerList === "") { - contents.integerList = []; - } else if (data["integerList"] !== undefined && data["integerList"]["member"] !== undefined) { - contents.integerList = de_IntegerList(__getArrayIfSingleItem(data["integerList"]["member"]), context); + contents[_iL] = []; + } else if (data[_iL] != null && data[_iL][_m] != null) { + contents[_iL] = de_IntegerList(__getArrayIfSingleItem(data[_iL][_m]), context); } if (data.nestedStringList === "") { - contents.nestedStringList = []; - } else if (data["nestedStringList"] !== undefined && data["nestedStringList"]["member"] !== undefined) { - contents.nestedStringList = de_NestedStringList( - __getArrayIfSingleItem(data["nestedStringList"]["member"]), - context - ); + contents[_nSL] = []; + } else if (data[_nSL] != null && data[_nSL][_m] != null) { + contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(data[_nSL][_m]), context); } if (data.renamed === "") { - contents.renamedListMembers = []; - } else if (data["renamed"] !== undefined && data["renamed"]["item"] !== undefined) { - contents.renamedListMembers = de_RenamedListMembers(__getArrayIfSingleItem(data["renamed"]["item"]), context); + contents[_rLM] = []; + } else if (data[_r] != null && data[_r][_i] != null) { + contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(data[_r][_i]), context); } if (data.stringList === "") { - contents.stringList = []; - } else if (data["stringList"] !== undefined && data["stringList"]["member"] !== undefined) { - contents.stringList = de_StringList(__getArrayIfSingleItem(data["stringList"]["member"]), context); + contents[_sL] = []; + } else if (data[_sL] != null && data[_sL][_m] != null) { + contents[_sL] = de_StringList(__getArrayIfSingleItem(data[_sL][_m]), context); } if (data.stringSet === "") { - contents.stringSet = []; - } else if (data["stringSet"] !== undefined && data["stringSet"]["member"] !== undefined) { - contents.stringSet = de_StringSet(__getArrayIfSingleItem(data["stringSet"]["member"]), context); + contents[_sS] = []; + } else if (data[_sS] != null && data[_sS][_m] != null) { + contents[_sS] = de_StringSet(__getArrayIfSingleItem(data[_sS][_m]), context); } if (data.myStructureList === "") { - contents.structureList = []; - } else if (data["myStructureList"] !== undefined && data["myStructureList"]["item"] !== undefined) { - contents.structureList = de_StructureList(__getArrayIfSingleItem(data["myStructureList"]["item"]), context); + contents[_sLt] = []; + } else if (data[_mSL] != null && data[_mSL][_i] != null) { + contents[_sLt] = de_StructureList(__getArrayIfSingleItem(data[_mSL][_i]), context); } if (data.timestampList === "") { - contents.timestampList = []; - } else if (data["timestampList"] !== undefined && data["timestampList"]["member"] !== undefined) { - contents.timestampList = de_TimestampList(__getArrayIfSingleItem(data["timestampList"]["member"]), context); + contents[_tL] = []; + } else if (data[_tL] != null && data[_tL][_m] != null) { + contents[_tL] = de_TimestampList(__getArrayIfSingleItem(data[_tL][_m]), context); } return contents; }; @@ -4768,9 +3878,9 @@ export const de_XmlEmptyMapsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.myMap === "") { - contents.myMap = {}; - } else if (data["myMap"] !== undefined && data["myMap"]["entry"] !== undefined) { - contents.myMap = de_XmlMapsInputOutputMap(__getArrayIfSingleItem(data["myMap"]["entry"]), context); + contents[_mM] = {}; + } else if (data[_mM] != null && data[_mM][_en] != null) { + contents[_mM] = de_XmlMapsInputOutputMap(__getArrayIfSingleItem(data[_mM][_en]), context); } return contents; }; @@ -4809,8 +3919,8 @@ export const de_XmlEmptyStringsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["emptyString"] !== undefined) { - contents.emptyString = __expectString(data["emptyString"]); + if (data[_eS] != null) { + contents[_eS] = __expectString(data[_eS]); } return contents; }; @@ -4849,29 +3959,29 @@ export const de_XmlEnumsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["fooEnum1"] !== undefined) { - contents.fooEnum1 = __expectString(data["fooEnum1"]); + if (data[_fE] != null) { + contents[_fE] = __expectString(data[_fE]); } - if (data["fooEnum2"] !== undefined) { - contents.fooEnum2 = __expectString(data["fooEnum2"]); + if (data[_fEo] != null) { + contents[_fEo] = __expectString(data[_fEo]); } - if (data["fooEnum3"] !== undefined) { - contents.fooEnum3 = __expectString(data["fooEnum3"]); + if (data[_fEoo] != null) { + contents[_fEoo] = __expectString(data[_fEoo]); } if (data.fooEnumList === "") { - contents.fooEnumList = []; - } else if (data["fooEnumList"] !== undefined && data["fooEnumList"]["member"] !== undefined) { - contents.fooEnumList = de_FooEnumList(__getArrayIfSingleItem(data["fooEnumList"]["member"]), context); + contents[_fEL] = []; + } else if (data[_fEL] != null && data[_fEL][_m] != null) { + contents[_fEL] = de_FooEnumList(__getArrayIfSingleItem(data[_fEL][_m]), context); } if (data.fooEnumMap === "") { - contents.fooEnumMap = {}; - } else if (data["fooEnumMap"] !== undefined && data["fooEnumMap"]["entry"] !== undefined) { - contents.fooEnumMap = de_FooEnumMap(__getArrayIfSingleItem(data["fooEnumMap"]["entry"]), context); + contents[_fEM] = {}; + } else if (data[_fEM] != null && data[_fEM][_en] != null) { + contents[_fEM] = de_FooEnumMap(__getArrayIfSingleItem(data[_fEM][_en]), context); } if (data.fooEnumSet === "") { - contents.fooEnumSet = []; - } else if (data["fooEnumSet"] !== undefined && data["fooEnumSet"]["member"] !== undefined) { - contents.fooEnumSet = de_FooEnumSet(__getArrayIfSingleItem(data["fooEnumSet"]["member"]), context); + contents[_fES] = []; + } else if (data[_fES] != null && data[_fES][_m] != null) { + contents[_fES] = de_FooEnumSet(__getArrayIfSingleItem(data[_fES][_m]), context); } return contents; }; @@ -4910,29 +4020,29 @@ export const de_XmlIntEnumsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["intEnum1"] !== undefined) { - contents.intEnum1 = __strictParseInt32(data["intEnum1"]) as number; + if (data[_iE] != null) { + contents[_iE] = __strictParseInt32(data[_iE]) as number; } - if (data["intEnum2"] !== undefined) { - contents.intEnum2 = __strictParseInt32(data["intEnum2"]) as number; + if (data[_iEn] != null) { + contents[_iEn] = __strictParseInt32(data[_iEn]) as number; } - if (data["intEnum3"] !== undefined) { - contents.intEnum3 = __strictParseInt32(data["intEnum3"]) as number; + if (data[_iEnt] != null) { + contents[_iEnt] = __strictParseInt32(data[_iEnt]) as number; } if (data.intEnumList === "") { - contents.intEnumList = []; - } else if (data["intEnumList"] !== undefined && data["intEnumList"]["member"] !== undefined) { - contents.intEnumList = de_IntegerEnumList(__getArrayIfSingleItem(data["intEnumList"]["member"]), context); + contents[_iEL] = []; + } else if (data[_iEL] != null && data[_iEL][_m] != null) { + contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(data[_iEL][_m]), context); } if (data.intEnumMap === "") { - contents.intEnumMap = {}; - } else if (data["intEnumMap"] !== undefined && data["intEnumMap"]["entry"] !== undefined) { - contents.intEnumMap = de_IntegerEnumMap(__getArrayIfSingleItem(data["intEnumMap"]["entry"]), context); + contents[_iEM] = {}; + } else if (data[_iEM] != null && data[_iEM][_en] != null) { + contents[_iEM] = de_IntegerEnumMap(__getArrayIfSingleItem(data[_iEM][_en]), context); } if (data.intEnumSet === "") { - contents.intEnumSet = []; - } else if (data["intEnumSet"] !== undefined && data["intEnumSet"]["member"] !== undefined) { - contents.intEnumSet = de_IntegerEnumSet(__getArrayIfSingleItem(data["intEnumSet"]["member"]), context); + contents[_iES] = []; + } else if (data[_iES] != null && data[_iES][_m] != null) { + contents[_iES] = de_IntegerEnumSet(__getArrayIfSingleItem(data[_iES][_m]), context); } return contents; }; @@ -4972,88 +4082,79 @@ export const de_XmlListsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.booleanList === "") { - contents.booleanList = []; - } else if (data["booleanList"] !== undefined && data["booleanList"]["member"] !== undefined) { - contents.booleanList = de_BooleanList(__getArrayIfSingleItem(data["booleanList"]["member"]), context); + contents[_bL] = []; + } else if (data[_bL] != null && data[_bL][_m] != null) { + contents[_bL] = de_BooleanList(__getArrayIfSingleItem(data[_bL][_m]), context); } if (data.enumList === "") { - contents.enumList = []; - } else if (data["enumList"] !== undefined && data["enumList"]["member"] !== undefined) { - contents.enumList = de_FooEnumList(__getArrayIfSingleItem(data["enumList"]["member"]), context); + contents[_eL] = []; + } else if (data[_eL] != null && data[_eL][_m] != null) { + contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(data[_eL][_m]), context); } if (data.flattenedList === "") { - contents.flattenedList = []; - } else if (data["flattenedList"] !== undefined) { - contents.flattenedList = de_RenamedListMembers(__getArrayIfSingleItem(data["flattenedList"]), context); + contents[_fL] = []; + } else if (data[_fL] != null) { + contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(data[_fL]), context); } if (data.customName === "") { - contents.flattenedList2 = []; - } else if (data["customName"] !== undefined) { - contents.flattenedList2 = de_RenamedListMembers(__getArrayIfSingleItem(data["customName"]), context); + contents[_fLl] = []; + } else if (data[_cN] != null) { + contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(data[_cN]), context); } if (data.flattenedListWithMemberNamespace === "") { - contents.flattenedListWithMemberNamespace = []; - } else if (data["flattenedListWithMemberNamespace"] !== undefined) { - contents.flattenedListWithMemberNamespace = de_ListWithMemberNamespace( - __getArrayIfSingleItem(data["flattenedListWithMemberNamespace"]), - context - ); + contents[_fLWMN] = []; + } else if (data[_fLWMN] != null) { + contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(data[_fLWMN]), context); } if (data.flattenedListWithNamespace === "") { - contents.flattenedListWithNamespace = []; - } else if (data["flattenedListWithNamespace"] !== undefined) { - contents.flattenedListWithNamespace = de_ListWithNamespace( - __getArrayIfSingleItem(data["flattenedListWithNamespace"]), - context - ); + contents[_fLWN] = []; + } else if (data[_fLWN] != null) { + contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(data[_fLWN]), context); } if (data.flattenedStructureList === "") { - contents.flattenedStructureList = []; - } else if (data["flattenedStructureList"] !== undefined) { - contents.flattenedStructureList = de_StructureList(__getArrayIfSingleItem(data["flattenedStructureList"]), context); + contents[_fSL] = []; + } else if (data[_fSL] != null) { + contents[_fSL] = de_StructureList(__getArrayIfSingleItem(data[_fSL]), context); } if (data.intEnumList === "") { - contents.intEnumList = []; - } else if (data["intEnumList"] !== undefined && data["intEnumList"]["member"] !== undefined) { - contents.intEnumList = de_IntegerEnumList(__getArrayIfSingleItem(data["intEnumList"]["member"]), context); + contents[_iEL] = []; + } else if (data[_iEL] != null && data[_iEL][_m] != null) { + contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(data[_iEL][_m]), context); } if (data.integerList === "") { - contents.integerList = []; - } else if (data["integerList"] !== undefined && data["integerList"]["member"] !== undefined) { - contents.integerList = de_IntegerList(__getArrayIfSingleItem(data["integerList"]["member"]), context); + contents[_iL] = []; + } else if (data[_iL] != null && data[_iL][_m] != null) { + contents[_iL] = de_IntegerList(__getArrayIfSingleItem(data[_iL][_m]), context); } if (data.nestedStringList === "") { - contents.nestedStringList = []; - } else if (data["nestedStringList"] !== undefined && data["nestedStringList"]["member"] !== undefined) { - contents.nestedStringList = de_NestedStringList( - __getArrayIfSingleItem(data["nestedStringList"]["member"]), - context - ); + contents[_nSL] = []; + } else if (data[_nSL] != null && data[_nSL][_m] != null) { + contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(data[_nSL][_m]), context); } if (data.renamed === "") { - contents.renamedListMembers = []; - } else if (data["renamed"] !== undefined && data["renamed"]["item"] !== undefined) { - contents.renamedListMembers = de_RenamedListMembers(__getArrayIfSingleItem(data["renamed"]["item"]), context); + contents[_rLM] = []; + } else if (data[_r] != null && data[_r][_i] != null) { + contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(data[_r][_i]), context); } if (data.stringList === "") { - contents.stringList = []; - } else if (data["stringList"] !== undefined && data["stringList"]["member"] !== undefined) { - contents.stringList = de_StringList(__getArrayIfSingleItem(data["stringList"]["member"]), context); + contents[_sL] = []; + } else if (data[_sL] != null && data[_sL][_m] != null) { + contents[_sL] = de_StringList(__getArrayIfSingleItem(data[_sL][_m]), context); } if (data.stringSet === "") { - contents.stringSet = []; - } else if (data["stringSet"] !== undefined && data["stringSet"]["member"] !== undefined) { - contents.stringSet = de_StringSet(__getArrayIfSingleItem(data["stringSet"]["member"]), context); + contents[_sS] = []; + } else if (data[_sS] != null && data[_sS][_m] != null) { + contents[_sS] = de_StringSet(__getArrayIfSingleItem(data[_sS][_m]), context); } if (data.myStructureList === "") { - contents.structureList = []; - } else if (data["myStructureList"] !== undefined && data["myStructureList"]["item"] !== undefined) { - contents.structureList = de_StructureList(__getArrayIfSingleItem(data["myStructureList"]["item"]), context); + contents[_sLt] = []; + } else if (data[_mSL] != null && data[_mSL][_i] != null) { + contents[_sLt] = de_StructureList(__getArrayIfSingleItem(data[_mSL][_i]), context); } if (data.timestampList === "") { - contents.timestampList = []; - } else if (data["timestampList"] !== undefined && data["timestampList"]["member"] !== undefined) { - contents.timestampList = de_TimestampList(__getArrayIfSingleItem(data["timestampList"]["member"]), context); + contents[_tL] = []; + } else if (data[_tL] != null && data[_tL][_m] != null) { + contents[_tL] = de_TimestampList(__getArrayIfSingleItem(data[_tL][_m]), context); } return contents; }; @@ -5093,9 +4194,9 @@ export const de_XmlMapsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.myMap === "") { - contents.myMap = {}; - } else if (data["myMap"] !== undefined && data["myMap"]["entry"] !== undefined) { - contents.myMap = de_XmlMapsInputOutputMap(__getArrayIfSingleItem(data["myMap"]["entry"]), context); + contents[_mM] = {}; + } else if (data[_mM] != null && data[_mM][_en] != null) { + contents[_mM] = de_XmlMapsInputOutputMap(__getArrayIfSingleItem(data[_mM][_en]), context); } return contents; }; @@ -5135,9 +4236,9 @@ export const de_XmlMapsXmlNameCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.myMap === "") { - contents.myMap = {}; - } else if (data["myMap"] !== undefined && data["myMap"]["entry"] !== undefined) { - contents.myMap = de_XmlMapsXmlNameInputOutputMap(__getArrayIfSingleItem(data["myMap"]["entry"]), context); + contents[_mM] = {}; + } else if (data[_mM] != null && data[_mM][_en] != null) { + contents[_mM] = de_XmlMapsXmlNameInputOutputMap(__getArrayIfSingleItem(data[_mM][_en]), context); } return contents; }; @@ -5177,9 +4278,9 @@ export const de_XmlMapWithXmlNamespaceCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.KVP === "") { - contents.myMap = {}; - } else if (data["KVP"] !== undefined && data["KVP"]["entry"] !== undefined) { - contents.myMap = de_XmlMapWithXmlNamespaceInputOutputMap(__getArrayIfSingleItem(data["KVP"]["entry"]), context); + contents[_mM] = {}; + } else if (data[_KVP] != null && data[_KVP][_en] != null) { + contents[_mM] = de_XmlMapWithXmlNamespaceInputOutputMap(__getArrayIfSingleItem(data[_KVP][_en]), context); } return contents; }; @@ -5218,8 +4319,8 @@ export const de_XmlNamespacesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["nested"] !== undefined) { - contents.nested = de_XmlNamespaceNested(data["nested"], context); + if (data[_n] != null) { + contents[_n] = de_XmlNamespaceNested(data[_n], context); } return contents; }; @@ -5258,26 +4359,26 @@ export const de_XmlTimestampsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data["dateTime"] !== undefined) { - contents.dateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["dateTime"])); + if (data[_dT] != null) { + contents[_dT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_dT])); } - if (data["dateTimeOnTarget"] !== undefined) { - contents.dateTimeOnTarget = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["dateTimeOnTarget"])); + if (data[_dTOT] != null) { + contents[_dTOT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_dTOT])); } - if (data["epochSeconds"] !== undefined) { - contents.epochSeconds = __expectNonNull(__parseEpochTimestamp(data["epochSeconds"])); + if (data[_eSp] != null) { + contents[_eSp] = __expectNonNull(__parseEpochTimestamp(data[_eSp])); } - if (data["epochSecondsOnTarget"] !== undefined) { - contents.epochSecondsOnTarget = __expectNonNull(__parseEpochTimestamp(data["epochSecondsOnTarget"])); + if (data[_eSOT] != null) { + contents[_eSOT] = __expectNonNull(__parseEpochTimestamp(data[_eSOT])); } - if (data["httpDate"] !== undefined) { - contents.httpDate = __expectNonNull(__parseRfc7231DateTime(data["httpDate"])); + if (data[_hDt] != null) { + contents[_hDt] = __expectNonNull(__parseRfc7231DateTime(data[_hDt])); } - if (data["httpDateOnTarget"] !== undefined) { - contents.httpDateOnTarget = __expectNonNull(__parseRfc7231DateTime(data["httpDateOnTarget"])); + if (data[_hDOT] != null) { + contents[_hDOT] = __expectNonNull(__parseRfc7231DateTime(data[_hDOT])); } - if (data["normal"] !== undefined) { - contents.normal = __expectNonNull(__parseRfc3339DateTimeWithOffset(data["normal"])); + if (data[_no] != null) { + contents[_no] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_no])); } return contents; }; @@ -5318,8 +4419,8 @@ export const de_XmlUnionsCommand = async ( const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.unionValue === "") { // Pass empty tags. - } else if (data["unionValue"] !== undefined) { - contents.unionValue = de_XmlUnionShape(__expectUnion(data["unionValue"]), context); + } else if (data[_uV] != null) { + contents[_uV] = de_XmlUnionShape(__expectUnion(data[_uV]), context); } return contents; }; @@ -5350,14 +4451,14 @@ const throwDefaultError = withBaseException(__BaseException); */ const de_ComplexErrorRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({ - Header: [, parsedOutput.headers["x-header"]], + [_H]: [, parsedOutput.headers[_xh]], }); const data: any = parsedOutput.body.Error; - if (data["Nested"] !== undefined) { - contents.Nested = de_ComplexNestedErrorData(data["Nested"], context); + if (data[_Ne] != null) { + contents[_Ne] = de_ComplexNestedErrorData(data[_Ne], context); } - if (data["TopLevel"] !== undefined) { - contents.TopLevel = __expectString(data["TopLevel"]); + if (data[_TLo] != null) { + contents[_TLo] = __expectString(data[_TLo]); } const exception = new ComplexError({ $metadata: deserializeMetadata(parsedOutput), @@ -5372,8 +4473,8 @@ const de_ComplexErrorRes = async (parsedOutput: any, context: __SerdeContext): P const de_InvalidGreetingRes = async (parsedOutput: any, context: __SerdeContext): Promise => { const contents: any = map({}); const data: any = parsedOutput.body.Error; - if (data["Message"] !== undefined) { - contents.Message = __expectString(data["Message"]); + if (data[_M] != null) { + contents[_M] = __expectString(data[_M]); } const exception = new InvalidGreeting({ $metadata: deserializeMetadata(parsedOutput), @@ -5390,11 +4491,11 @@ const se_FlattenedXmlMapWithXmlNameInputOutputMap = (input: Record input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("String", key).withName("K"); - entryNode.addChildNode(keyNode); - let node; - node = __XmlNode.of("String", input[key as keyof typeof input]!); - entryNode.addChildNode(node.withName("V")); + const keyNode = __XmlNode.of(_S, key).n("K"); + entryNode.c(keyNode); + let n; + n = __XmlNode.of(_S, input[key as keyof typeof input]!); + entryNode.c(n.n(_V)); return entryNode; }); }; @@ -5406,9 +4507,9 @@ const se_ListWithMemberNamespace = (input: string[], context: __SerdeContext): a return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("String", entry); - node.addAttribute("xmlns", "https://xml-member.example.com"); - return node.withName("member"); + const n = __XmlNode.of(_S, entry); + n.a("xmlns", "https://xml-member.example.com"); + return n.n(_m); }); }; @@ -5419,8 +4520,8 @@ const se_ListWithNamespace = (input: string[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("String", entry); - return node.withName("member"); + const n = __XmlNode.of(_S, entry); + return n.n(_m); }); }; @@ -5432,14 +4533,14 @@ const se_NestedMap = (input: Record>, context: _ .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("String", key).withName("key"); - entryNode.addChildNode(keyNode); - let node; - node = se_FooEnumMap(input[key as keyof typeof input]!, context); - entryNode.addChildNode( - node.reduce((acc: __XmlNode, workingNode: any) => { - return acc.addChildNode(workingNode); - }, new __XmlNode("value")) + const keyNode = __XmlNode.of(_S, key).n("key"); + entryNode.c(keyNode); + let n; + n = se_FooEnumMap(input[key as keyof typeof input]!, context); + entryNode.c( + n.reduce((acc: __XmlNode, workingNode: any) => { + return acc.c(workingNode); + }, new __XmlNode(_v)) ); return entryNode; }); @@ -5449,52 +4550,47 @@ const se_NestedMap = (input: Record>, context: _ * serializeAws_restXmlNestedPayload */ const se_NestedPayload = (input: NestedPayload, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("NestedPayload"); - if (input.greeting != null) { - const node = __XmlNode.of("String", input.greeting).withName("greeting"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_NP); + if (input[_g] != null) { + bn.c(__XmlNode.of(_S, input[_g]).n(_g)); } - if (input.name != null) { - const node = __XmlNode.of("String", input.name).withName("name"); - bodyNode.addChildNode(node); + if (input[_na] != null) { + bn.c(__XmlNode.of(_S, input[_na]).n(_na)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlPayloadWithXmlName */ const se_PayloadWithXmlName = (input: PayloadWithXmlName, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("Hello"); - if (input.name != null) { - const node = __XmlNode.of("String", input.name).withName("name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_He); + if (input[_na] != null) { + bn.c(__XmlNode.of(_S, input[_na]).n(_na)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlPayloadWithXmlNamespace */ const se_PayloadWithXmlNamespace = (input: PayloadWithXmlNamespace, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PayloadWithXmlNamespace"); - if (input.name != null) { - const node = __XmlNode.of("String", input.name).withName("name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PWXN); + if (input[_na] != null) { + bn.c(__XmlNode.of(_S, input[_na]).n(_na)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlPayloadWithXmlNamespaceAndPrefix */ const se_PayloadWithXmlNamespaceAndPrefix = (input: PayloadWithXmlNamespaceAndPrefix, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("PayloadWithXmlNamespaceAndPrefix"); - if (input.name != null) { - const node = __XmlNode.of("String", input.name).withName("name"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_PWXNAP); + if (input[_na] != null) { + bn.c(__XmlNode.of(_S, input[_na]).n(_na)); } - return bodyNode; + return bn; }; /** @@ -5504,16 +4600,14 @@ const se_RecursiveShapesInputOutputNested1 = ( input: RecursiveShapesInputOutputNested1, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("RecursiveShapesInputOutputNested1"); - if (input.foo != null) { - const node = __XmlNode.of("String", input.foo).withName("foo"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RSION); + if (input[_f] != null) { + bn.c(__XmlNode.of(_S, input[_f]).n(_f)); } - if (input.nested != null) { - const node = se_RecursiveShapesInputOutputNested2(input.nested, context).withName("nested"); - bodyNode.addChildNode(node); + if (input[_n] != null) { + bn.c(se_RecursiveShapesInputOutputNested2(input[_n], context).n(_n)); } - return bodyNode; + return bn; }; /** @@ -5523,16 +4617,14 @@ const se_RecursiveShapesInputOutputNested2 = ( input: RecursiveShapesInputOutputNested2, context: __SerdeContext ): any => { - const bodyNode = new __XmlNode("RecursiveShapesInputOutputNested2"); - if (input.bar != null) { - const node = __XmlNode.of("String", input.bar).withName("bar"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_RSIONe); + if (input[_ba] != null) { + bn.c(__XmlNode.of(_S, input[_ba]).n(_ba)); } - if (input.recursiveMember != null) { - const node = se_RecursiveShapesInputOutputNested1(input.recursiveMember, context).withName("recursiveMember"); - bodyNode.addChildNode(node); + if (input[_rM] != null) { + bn.c(se_RecursiveShapesInputOutputNested1(input[_rM], context).n(_rM)); } - return bodyNode; + return bn; }; /** @@ -5542,8 +4634,8 @@ const se_RenamedListMembers = (input: string[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("String", entry); - return node.withName("item"); + const n = __XmlNode.of(_S, entry); + return n.n(_i); }); }; @@ -5554,8 +4646,8 @@ const se_StructureList = (input: StructureListMember[], context: __SerdeContext) return input .filter((e: any) => e != null) .map((entry) => { - const node = se_StructureListMember(entry, context); - return node.withName("item"); + const n = se_StructureListMember(entry, context); + return n.n(_i); }); }; @@ -5563,51 +4655,47 @@ const se_StructureList = (input: StructureListMember[], context: __SerdeContext) * serializeAws_restXmlStructureListMember */ const se_StructureListMember = (input: StructureListMember, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("StructureListMember"); - if (input.a != null) { - const node = __XmlNode.of("String", input.a).withName("value"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_SLM); + if (input[_a] != null) { + bn.c(__XmlNode.of(_S, input[_a]).n(_v)); } - if (input.b != null) { - const node = __XmlNode.of("String", input.b).withName("other"); - bodyNode.addChildNode(node); + if (input[_b_] != null) { + bn.c(__XmlNode.of(_S, input[_b_]).n(_o)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlUnionPayload */ const se_UnionPayload = (input: UnionPayload, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("UnionPayload"); + const bn = new __XmlNode(_UP); UnionPayload.visit(input, { greeting: (value) => { - const node = __XmlNode.of("String", value).withName("greeting"); - bodyNode.addChildNode(node); + if (input[_g] != null) { + bn.c(__XmlNode.of(_S, value).n(_g)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** * serializeAws_restXmlXmlAttributesInputOutput */ const se_XmlAttributesInputOutput = (input: XmlAttributesInputOutput, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("XmlAttributesInputOutput"); - if (input.foo != null) { - const node = __XmlNode.of("String", input.foo).withName("foo"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_XAIO); + if (input[_f] != null) { + bn.c(__XmlNode.of(_S, input[_f]).n(_f)); } - if (input.attr != null) { - bodyNode.addAttribute("test", input.attr); - } - return bodyNode; + bn.a("test", input[_at]); + return bn; }; /** @@ -5618,11 +4706,11 @@ const se_XmlMapsInputOutputMap = (input: Record, context .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("String", key).withName("key"); - entryNode.addChildNode(keyNode); - let node; - node = se_GreetingStruct(input[key as keyof typeof input]!, context); - entryNode.addChildNode(node.withName("value")); + const keyNode = __XmlNode.of(_S, key).n("key"); + entryNode.c(keyNode); + let n; + n = se_GreetingStruct(input[key as keyof typeof input]!, context); + entryNode.c(n.n(_v)); return entryNode; }); }; @@ -5635,11 +4723,11 @@ const se_XmlMapsXmlNameInputOutputMap = (input: Record, .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("String", key).withName("Attribute"); - entryNode.addChildNode(keyNode); - let node; - node = se_GreetingStruct(input[key as keyof typeof input]!, context); - entryNode.addChildNode(node.withName("Setting")); + const keyNode = __XmlNode.of(_S, key).n("Attribute"); + entryNode.c(keyNode); + let n; + n = se_GreetingStruct(input[key as keyof typeof input]!, context); + entryNode.c(n.n(_Se)); return entryNode; }); }; @@ -5652,13 +4740,13 @@ const se_XmlMapWithXmlNamespaceInputOutputMap = (input: Record, .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("String", key).withName("K"); - keyNode.addAttribute("xmlns", "https://the-key.example.com"); - entryNode.addChildNode(keyNode); - let node; - node = __XmlNode.of("String", input[key as keyof typeof input]!); - node.addAttribute("xmlns", "https://the-value.example.com"); - entryNode.addChildNode(node.withName("V")); + const keyNode = __XmlNode.of(_S, key).n("K"); + keyNode.a("xmlns", "https://the-key.example.com"); + entryNode.c(keyNode); + let n; + n = __XmlNode.of(_S, input[key as keyof typeof input]!); + n.a("xmlns", "https://the-value.example.com"); + entryNode.c(n.n(_V)); return entryNode; }); }; @@ -5670,9 +4758,9 @@ const se_XmlNamespacedList = (input: string[], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("String", entry); - node.addAttribute("xmlns", "http://bux.com"); - return node.withName("member"); + const n = __XmlNode.of(_S, entry); + n.a("xmlns", "http://bux.com"); + return n.n(_m); }); }; @@ -5680,118 +4768,120 @@ const se_XmlNamespacedList = (input: string[], context: __SerdeContext): any => * serializeAws_restXmlXmlNamespaceNested */ const se_XmlNamespaceNested = (input: XmlNamespaceNested, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("XmlNamespaceNested"); - if (input.foo != null) { - const node = __XmlNode.of("String", input.foo).withName("foo"); - node.addAttribute("xmlns:baz", "http://baz.com"); - bodyNode.addChildNode(node); - } - if (input.values != null) { - const nodes = se_XmlNamespacedList(input.values, context); - const containerNode = new __XmlNode("values"); - containerNode.addAttribute("xmlns", "http://qux.com"); - nodes.map((node: any) => { - containerNode.addChildNode(node); + const bn = new __XmlNode(_XNN); + if (input[_f] != null) { + const n = __XmlNode.of(_S, input[_f]).n(_f); + n.a("xmlns:baz", "http://baz.com"); + bn.c(n); + } + if (input[_va] != null) { + const ns = se_XmlNamespacedList(input[_va], context); + const containerNode = new __XmlNode(_va); + containerNode.a("xmlns", "http://qux.com"); + ns.map((n: any) => { + containerNode.c(n); }); - bodyNode.addChildNode(containerNode); + bn.c(containerNode); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlXmlNestedUnionStruct */ const se_XmlNestedUnionStruct = (input: XmlNestedUnionStruct, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("XmlNestedUnionStruct"); - if (input.stringValue != null) { - const node = __XmlNode.of("String", input.stringValue).withName("stringValue"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_XNUS); + if (input[_sVt] != null) { + bn.c(__XmlNode.of(_S, input[_sVt]).n(_sVt)); } - if (input.booleanValue != null) { - const node = __XmlNode.of("Boolean", String(input.booleanValue)).withName("booleanValue"); - bodyNode.addChildNode(node); + if (input[_bVo] != null) { + bn.c(__XmlNode.of(_Bo, String(input[_bVo])).n(_bVo)); } - if (input.byteValue != null) { - const node = __XmlNode.of("Byte", String(input.byteValue)).withName("byteValue"); - bodyNode.addChildNode(node); + if (input[_bV] != null) { + bn.c(__XmlNode.of(_B, String(input[_bV])).n(_bV)); } - if (input.shortValue != null) { - const node = __XmlNode.of("Short", String(input.shortValue)).withName("shortValue"); - bodyNode.addChildNode(node); + if (input[_sV] != null) { + bn.c(__XmlNode.of(_Sh, String(input[_sV])).n(_sV)); } - if (input.integerValue != null) { - const node = __XmlNode.of("Integer", String(input.integerValue)).withName("integerValue"); - bodyNode.addChildNode(node); + if (input[_iV] != null) { + bn.c(__XmlNode.of(_I, String(input[_iV])).n(_iV)); } - if (input.longValue != null) { - const node = __XmlNode.of("Long", String(input.longValue)).withName("longValue"); - bodyNode.addChildNode(node); + if (input[_lV] != null) { + bn.c(__XmlNode.of(_L, String(input[_lV])).n(_lV)); } - if (input.floatValue != null) { - const node = __XmlNode.of("Float", String(input.floatValue)).withName("floatValue"); - bodyNode.addChildNode(node); + if (input[_fV] != null) { + bn.c(__XmlNode.of(_F, String(input[_fV])).n(_fV)); } - if (input.doubleValue != null) { - const node = __XmlNode.of("Double", String(input.doubleValue)).withName("doubleValue"); - bodyNode.addChildNode(node); + if (input[_dV] != null) { + bn.c(__XmlNode.of(_D, String(input[_dV])).n(_dV)); } - return bodyNode; + return bn; }; /** * serializeAws_restXmlXmlUnionShape */ const se_XmlUnionShape = (input: XmlUnionShape, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("XmlUnionShape"); + const bn = new __XmlNode(_XUS); XmlUnionShape.visit(input, { stringValue: (value) => { - const node = __XmlNode.of("String", value).withName("stringValue"); - bodyNode.addChildNode(node); + if (input[_sVt] != null) { + bn.c(__XmlNode.of(_S, value).n(_sVt)); + } }, booleanValue: (value) => { - const node = __XmlNode.of("Boolean", String(value)).withName("booleanValue"); - bodyNode.addChildNode(node); + if (input[_bVo] != null) { + bn.c(__XmlNode.of(_Bo, String(value)).n(_bVo)); + } }, byteValue: (value) => { - const node = __XmlNode.of("Byte", String(value)).withName("byteValue"); - bodyNode.addChildNode(node); + if (input[_bV] != null) { + bn.c(__XmlNode.of(_B, String(value)).n(_bV)); + } }, shortValue: (value) => { - const node = __XmlNode.of("Short", String(value)).withName("shortValue"); - bodyNode.addChildNode(node); + if (input[_sV] != null) { + bn.c(__XmlNode.of(_Sh, String(value)).n(_sV)); + } }, integerValue: (value) => { - const node = __XmlNode.of("Integer", String(value)).withName("integerValue"); - bodyNode.addChildNode(node); + if (input[_iV] != null) { + bn.c(__XmlNode.of(_I, String(value)).n(_iV)); + } }, longValue: (value) => { - const node = __XmlNode.of("Long", String(value)).withName("longValue"); - bodyNode.addChildNode(node); + if (input[_lV] != null) { + bn.c(__XmlNode.of(_L, String(value)).n(_lV)); + } }, floatValue: (value) => { - const node = __XmlNode.of("Float", String(value)).withName("floatValue"); - bodyNode.addChildNode(node); + if (input[_fV] != null) { + bn.c(__XmlNode.of(_F, String(value)).n(_fV)); + } }, doubleValue: (value) => { - const node = __XmlNode.of("Double", String(value)).withName("doubleValue"); - bodyNode.addChildNode(node); + if (input[_dV] != null) { + bn.c(__XmlNode.of(_D, String(value)).n(_dV)); + } }, unionValue: (value) => { - const node = se_XmlUnionShape(value, context).withName("unionValue"); - bodyNode.addChildNode(node); + if (input[_uV] != null) { + bn.c(se_XmlUnionShape(value, context).n(_uV)); + } }, structValue: (value) => { - const node = se_XmlNestedUnionStruct(value, context).withName("structValue"); - bodyNode.addChildNode(node); + if (input[_sVtr] != null) { + bn.c(se_XmlNestedUnionStruct(value, context).n(_sVtr)); + } }, _: (name: string, value: any) => { if (!(value instanceof __XmlNode || value instanceof __XmlText)) { throw new Error("Unable to serialize unknown union members in XML."); } - bodyNode.addChildNode(new __XmlNode(name).addChildNode(value)); + bn.c(new __XmlNode(name).c(value)); }, }); - return bodyNode; + return bn; }; /** @@ -5801,8 +4891,8 @@ const se_BooleanList = (input: boolean[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Boolean", String(entry)); - return node.withName("member"); + const n = __XmlNode.of(_Bo, String(entry)); + return n.n(_m); }); }; @@ -5813,8 +4903,8 @@ const se_FooEnumList = (input: FooEnum[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("FooEnum", entry); - return node.withName("member"); + const n = __XmlNode.of(_FE, entry); + return n.n(_m); }); }; @@ -5826,11 +4916,11 @@ const se_FooEnumMap = (input: Record, context: __SerdeContext): .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("String", key).withName("key"); - entryNode.addChildNode(keyNode); - let node; - node = __XmlNode.of("FooEnum", input[key as keyof typeof input]!); - entryNode.addChildNode(node.withName("value")); + const keyNode = __XmlNode.of(_S, key).n("key"); + entryNode.c(keyNode); + let n; + n = __XmlNode.of(_FE, input[key as keyof typeof input]!); + entryNode.c(n.n(_v)); return entryNode; }); }; @@ -5842,8 +4932,8 @@ const se_FooEnumSet = (input: FooEnum[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("FooEnum", entry); - return node.withName("member"); + const n = __XmlNode.of(_FE, entry); + return n.n(_m); }); }; @@ -5851,12 +4941,11 @@ const se_FooEnumSet = (input: FooEnum[], context: __SerdeContext): any => { * serializeAws_restXmlGreetingStruct */ const se_GreetingStruct = (input: GreetingStruct, context: __SerdeContext): any => { - const bodyNode = new __XmlNode("GreetingStruct"); - if (input.hi != null) { - const node = __XmlNode.of("String", input.hi).withName("hi"); - bodyNode.addChildNode(node); + const bn = new __XmlNode(_GS); + if (input[_hi] != null) { + bn.c(__XmlNode.of(_S, input[_hi]).n(_hi)); } - return bodyNode; + return bn; }; /** @@ -5866,8 +4955,8 @@ const se_IntegerEnumList = (input: IntegerEnum[], context: __SerdeContext): any return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("IntegerEnum", String(entry)); - return node.withName("member"); + const n = __XmlNode.of(_IE, String(entry)); + return n.n(_m); }); }; @@ -5879,11 +4968,11 @@ const se_IntegerEnumMap = (input: Record, context: __SerdeC .filter((key) => input[key as keyof typeof input] != null) .map((key) => { const entryNode = new __XmlNode("entry"); - const keyNode = __XmlNode.of("String", key).withName("key"); - entryNode.addChildNode(keyNode); - let node; - node = __XmlNode.of("IntegerEnum", String(input[key as keyof typeof input]!)); - entryNode.addChildNode(node.withName("value")); + const keyNode = __XmlNode.of(_S, key).n("key"); + entryNode.c(keyNode); + let n; + n = __XmlNode.of(_IE, String(input[key as keyof typeof input]!)); + entryNode.c(n.n(_v)); return entryNode; }); }; @@ -5895,8 +4984,8 @@ const se_IntegerEnumSet = (input: IntegerEnum[], context: __SerdeContext): any = return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("IntegerEnum", String(entry)); - return node.withName("member"); + const n = __XmlNode.of(_IE, String(entry)); + return n.n(_m); }); }; @@ -5907,8 +4996,8 @@ const se_IntegerList = (input: number[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Integer", String(entry)); - return node.withName("member"); + const n = __XmlNode.of(_I, String(entry)); + return n.n(_m); }); }; @@ -5919,10 +5008,10 @@ const se_NestedStringList = (input: string[][], context: __SerdeContext): any => return input .filter((e: any) => e != null) .map((entry) => { - const node = se_StringList(entry, context); - return node.reduce((acc: __XmlNode, workingNode: any) => { - return acc.addChildNode(workingNode); - }, new __XmlNode("member")); + const n = se_StringList(entry, context); + return n.reduce((acc: __XmlNode, workingNode: any) => { + return acc.c(workingNode); + }, new __XmlNode(_m)); }); }; @@ -5933,8 +5022,8 @@ const se_StringList = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("String", entry); - return node.withName("member"); + const n = __XmlNode.of(_S, entry); + return n.n(_m); }); }; @@ -5945,8 +5034,8 @@ const se_StringSet = (input: string[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("String", entry); - return node.withName("member"); + const n = __XmlNode.of(_S, entry); + return n.n(_m); }); }; @@ -5957,8 +5046,8 @@ const se_TimestampList = (input: Date[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { - const node = __XmlNode.of("Timestamp", entry.toISOString().split(".")[0] + "Z"); - return node.withName("member"); + const n = __XmlNode.of(_T, entry.toISOString().split(".")[0] + "Z"); + return n.n(_m); }); }; @@ -5967,8 +5056,8 @@ const se_TimestampList = (input: Date[], context: __SerdeContext): any => { */ const de_ComplexNestedErrorData = (output: any, context: __SerdeContext): ComplexNestedErrorData => { const contents: any = {}; - if (output["Foo"] !== undefined) { - contents.Foo = __expectString(output["Foo"]); + if (output[_Fo] != null) { + contents[_Fo] = __expectString(output[_Fo]); } return contents; }; @@ -6039,11 +5128,11 @@ const de_NestedMap = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output["greeting"] !== undefined) { - contents.greeting = __expectString(output["greeting"]); + if (output[_g] != null) { + contents[_g] = __expectString(output[_g]); } - if (output["name"] !== undefined) { - contents.name = __expectString(output["name"]); + if (output[_na] != null) { + contents[_na] = __expectString(output[_na]); } return contents; }; @@ -6053,8 +5142,8 @@ const de_NestedPayload = (output: any, context: __SerdeContext): NestedPayload = */ const de_PayloadWithXmlName = (output: any, context: __SerdeContext): PayloadWithXmlName => { const contents: any = {}; - if (output["name"] !== undefined) { - contents.name = __expectString(output["name"]); + if (output[_na] != null) { + contents[_na] = __expectString(output[_na]); } return contents; }; @@ -6064,8 +5153,8 @@ const de_PayloadWithXmlName = (output: any, context: __SerdeContext): PayloadWit */ const de_PayloadWithXmlNamespace = (output: any, context: __SerdeContext): PayloadWithXmlNamespace => { const contents: any = {}; - if (output["name"] !== undefined) { - contents.name = __expectString(output["name"]); + if (output[_na] != null) { + contents[_na] = __expectString(output[_na]); } return contents; }; @@ -6078,8 +5167,8 @@ const de_PayloadWithXmlNamespaceAndPrefix = ( context: __SerdeContext ): PayloadWithXmlNamespaceAndPrefix => { const contents: any = {}; - if (output["name"] !== undefined) { - contents.name = __expectString(output["name"]); + if (output[_na] != null) { + contents[_na] = __expectString(output[_na]); } return contents; }; @@ -6092,11 +5181,11 @@ const de_RecursiveShapesInputOutputNested1 = ( context: __SerdeContext ): RecursiveShapesInputOutputNested1 => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } - if (output["nested"] !== undefined) { - contents.nested = de_RecursiveShapesInputOutputNested2(output["nested"], context); + if (output[_n] != null) { + contents[_n] = de_RecursiveShapesInputOutputNested2(output[_n], context); } return contents; }; @@ -6109,11 +5198,11 @@ const de_RecursiveShapesInputOutputNested2 = ( context: __SerdeContext ): RecursiveShapesInputOutputNested2 => { const contents: any = {}; - if (output["bar"] !== undefined) { - contents.bar = __expectString(output["bar"]); + if (output[_ba] != null) { + contents[_ba] = __expectString(output[_ba]); } - if (output["recursiveMember"] !== undefined) { - contents.recursiveMember = de_RecursiveShapesInputOutputNested1(output["recursiveMember"], context); + if (output[_rM] != null) { + contents[_rM] = de_RecursiveShapesInputOutputNested1(output[_rM], context); } return contents; }; @@ -6145,11 +5234,11 @@ const de_StructureList = (output: any, context: __SerdeContext): StructureListMe */ const de_StructureListMember = (output: any, context: __SerdeContext): StructureListMember => { const contents: any = {}; - if (output["value"] !== undefined) { - contents.a = __expectString(output["value"]); + if (output[_v] != null) { + contents[_a] = __expectString(output[_v]); } - if (output["other"] !== undefined) { - contents.b = __expectString(output["other"]); + if (output[_o] != null) { + contents[_b_] = __expectString(output[_o]); } return contents; }; @@ -6158,9 +5247,9 @@ const de_StructureListMember = (output: any, context: __SerdeContext): Structure * deserializeAws_restXmlUnionPayload */ const de_UnionPayload = (output: any, context: __SerdeContext): UnionPayload => { - if (output["greeting"] !== undefined) { + if (output[_g] != null) { return { - greeting: __expectString(output["greeting"]) as any, + greeting: __expectString(output[_g]) as any, }; } return { $unknown: Object.entries(output)[0] }; @@ -6171,11 +5260,11 @@ const de_UnionPayload = (output: any, context: __SerdeContext): UnionPayload => */ const de_XmlAttributesInputOutput = (output: any, context: __SerdeContext): XmlAttributesInputOutput => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } - if (output["test"] !== undefined) { - contents.attr = __expectString(output["test"]); + if (output[_te] != null) { + contents[_at] = __expectString(output[_te]); } return contents; }; @@ -6235,13 +5324,13 @@ const de_XmlNamespacedList = (output: any, context: __SerdeContext): string[] => */ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespaceNested => { const contents: any = {}; - if (output["foo"] !== undefined) { - contents.foo = __expectString(output["foo"]); + if (output[_f] != null) { + contents[_f] = __expectString(output[_f]); } if (output.values === "") { - contents.values = []; - } else if (output["values"] !== undefined && output["values"]["member"] !== undefined) { - contents.values = de_XmlNamespacedList(__getArrayIfSingleItem(output["values"]["member"]), context); + contents[_va] = []; + } else if (output[_va] != null && output[_va][_m] != null) { + contents[_va] = de_XmlNamespacedList(__getArrayIfSingleItem(output[_va][_m]), context); } return contents; }; @@ -6251,29 +5340,29 @@ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespa */ const de_XmlNestedUnionStruct = (output: any, context: __SerdeContext): XmlNestedUnionStruct => { const contents: any = {}; - if (output["stringValue"] !== undefined) { - contents.stringValue = __expectString(output["stringValue"]); + if (output[_sVt] != null) { + contents[_sVt] = __expectString(output[_sVt]); } - if (output["booleanValue"] !== undefined) { - contents.booleanValue = __parseBoolean(output["booleanValue"]); + if (output[_bVo] != null) { + contents[_bVo] = __parseBoolean(output[_bVo]); } - if (output["byteValue"] !== undefined) { - contents.byteValue = __strictParseByte(output["byteValue"]) as number; + if (output[_bV] != null) { + contents[_bV] = __strictParseByte(output[_bV]) as number; } - if (output["shortValue"] !== undefined) { - contents.shortValue = __strictParseShort(output["shortValue"]) as number; + if (output[_sV] != null) { + contents[_sV] = __strictParseShort(output[_sV]) as number; } - if (output["integerValue"] !== undefined) { - contents.integerValue = __strictParseInt32(output["integerValue"]) as number; + if (output[_iV] != null) { + contents[_iV] = __strictParseInt32(output[_iV]) as number; } - if (output["longValue"] !== undefined) { - contents.longValue = __strictParseLong(output["longValue"]) as number; + if (output[_lV] != null) { + contents[_lV] = __strictParseLong(output[_lV]) as number; } - if (output["floatValue"] !== undefined) { - contents.floatValue = __strictParseFloat(output["floatValue"]) as number; + if (output[_fV] != null) { + contents[_fV] = __strictParseFloat(output[_fV]) as number; } - if (output["doubleValue"] !== undefined) { - contents.doubleValue = __strictParseFloat(output["doubleValue"]) as number; + if (output[_dV] != null) { + contents[_dV] = __strictParseFloat(output[_dV]) as number; } return contents; }; @@ -6282,56 +5371,56 @@ const de_XmlNestedUnionStruct = (output: any, context: __SerdeContext): XmlNeste * deserializeAws_restXmlXmlUnionShape */ const de_XmlUnionShape = (output: any, context: __SerdeContext): XmlUnionShape => { - if (output["stringValue"] !== undefined) { + if (output[_sVt] != null) { return { - stringValue: __expectString(output["stringValue"]) as any, + stringValue: __expectString(output[_sVt]) as any, }; } - if (output["booleanValue"] !== undefined) { + if (output[_bVo] != null) { return { - booleanValue: __parseBoolean(output["booleanValue"]), + booleanValue: __parseBoolean(output[_bVo]), }; } - if (output["byteValue"] !== undefined) { + if (output[_bV] != null) { return { - byteValue: __strictParseByte(output["byteValue"]) as number, + byteValue: __strictParseByte(output[_bV]) as number, }; } - if (output["shortValue"] !== undefined) { + if (output[_sV] != null) { return { - shortValue: __strictParseShort(output["shortValue"]) as number, + shortValue: __strictParseShort(output[_sV]) as number, }; } - if (output["integerValue"] !== undefined) { + if (output[_iV] != null) { return { - integerValue: __strictParseInt32(output["integerValue"]) as number, + integerValue: __strictParseInt32(output[_iV]) as number, }; } - if (output["longValue"] !== undefined) { + if (output[_lV] != null) { return { - longValue: __strictParseLong(output["longValue"]) as number, + longValue: __strictParseLong(output[_lV]) as number, }; } - if (output["floatValue"] !== undefined) { + if (output[_fV] != null) { return { - floatValue: __strictParseFloat(output["floatValue"]) as number, + floatValue: __strictParseFloat(output[_fV]) as number, }; } - if (output["doubleValue"] !== undefined) { + if (output[_dV] != null) { return { - doubleValue: __strictParseFloat(output["doubleValue"]) as number, + doubleValue: __strictParseFloat(output[_dV]) as number, }; } if (output.unionValue === "") { // Pass empty tags. - } else if (output["unionValue"] !== undefined) { + } else if (output[_uV] != null) { return { - unionValue: de_XmlUnionShape(__expectUnion(output["unionValue"]), context), + unionValue: de_XmlUnionShape(__expectUnion(output[_uV]), context), }; } - if (output["structValue"] !== undefined) { + if (output[_sVtr] != null) { return { - structValue: de_XmlNestedUnionStruct(output["structValue"], context), + structValue: de_XmlNestedUnionStruct(output[_sVtr], context), }; } return { $unknown: Object.entries(output)[0] }; @@ -6388,8 +5477,8 @@ const de_FooEnumSet = (output: any, context: __SerdeContext): FooEnum[] => { */ const de_GreetingStruct = (output: any, context: __SerdeContext): GreetingStruct => { const contents: any = {}; - if (output["hi"] !== undefined) { - contents.hi = __expectString(output["hi"]); + if (output[_hi] != null) { + contents[_hi] = __expectString(output[_hi]); } return contents; }; @@ -6503,6 +5592,232 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _A = "Ahoy"; +const _B = "Byte"; +const _BL = "BooleanList"; +const _Bl = "Blob"; +const _Bo = "Boolean"; +const _D = "Double"; +const _DD = "DoubleDribble"; +const _DL = "DoubleList"; +const _DT = "DateTime"; +const _E = "Enum"; +const _EL = "EnumList"; +const _ES = "EpochSeconds"; +const _Em = "Empty"; +const _F = "Float"; +const _FE = "FooEnum"; +const _FXMIO = "FlattenedXmlMapInputOutput"; +const _FXMWXNIO = "FlattenedXmlMapWithXmlNameInputOutput"; +const _Fo = "Foo"; +const _GS = "GreetingStruct"; +const _H = "Header"; +const _HD = "HttpDate"; +const _HLI = "HostLabelInput"; +const _He = "Hello"; +const _I = "Integer"; +const _IE = "IntegerEnum"; +const _IEL = "IntegerEnumList"; +const _IL = "IntegerList"; +const _IS = "IntegerSet"; +const _KVP = "KVP"; +const _L = "Long"; +const _M = "Message"; +const _N = "Null"; +const _NP = "NestedPayload"; +const _NXMIO = "NestedXmlMapsInputOutput"; +const _Ne = "Nested"; +const _PWCEI = "PutWithContentEncodingInput"; +const _PWXN = "PayloadWithXmlNamespace"; +const _PWXNAP = "PayloadWithXmlNamespaceAndPrefix"; +const _RSIO = "RecursiveShapesInputOutput"; +const _RSION = "RecursiveShapesInputOutputNested1"; +const _RSIONe = "RecursiveShapesInputOutputNested2"; +const _S = "String"; +const _SL = "StringList"; +const _SLM = "StructureListMember"; +const _SS = "StringSet"; +const _SSPIO = "SimpleScalarPropertiesInputOutput"; +const _Se = "Setting"; +const _Sh = "Short"; +const _T = "Timestamp"; +const _TL = "TimestampList"; +const _TLo = "TopLevel"; +const _UP = "UnionPayload"; +const _V = "V"; +const _XAIO = "XmlAttributesInputOutput"; +const _XBIO = "XmlBlobsInputOutput"; +const _XEIO = "XmlEnumsInputOutput"; +const _XESIO = "XmlEmptyStringsInputOutput"; +const _XIEIO = "XmlIntEnumsInputOutput"; +const _XLIO = "XmlListsInputOutput"; +const _XMIO = "XmlMapsInputOutput"; +const _XMWXNIO = "XmlMapWithXmlNamespaceInputOutput"; +const _XMXNIO = "XmlMapsXmlNameInputOutput"; +const _XNIO = "XmlNamespacesInputOutput"; +const _XNN = "XmlNamespaceNested"; +const _XNUS = "XmlNestedUnionStruct"; +const _XTIO = "XmlTimestampsInputOutput"; +const _XUIO = "XmlUnionsInputOutput"; +const _XUS = "XmlUnionShape"; +const _a = "a"; +const _aI = "accountId"; +const _at = "attr"; +const _b = "baz"; +const _bL = "booleanList"; +const _bV = "byteValue"; +const _bVo = "booleanValue"; +const _b_ = "b"; +const _ba = "bar"; +const _c = "c"; +const _cN = "customName"; +const _ce = "content-encoding"; +const _co = "corge"; +const _d = "data"; +const _dF = "defaultFormat"; +const _dT = "dateTime"; +const _dTOT = "dateTimeOnTarget"; +const _dV = "doubleValue"; +const _da = "datetime"; +const _e = "encoding"; +const _eL = "enumList"; +const _eS = "emptyString"; +const _eSOT = "epochSecondsOnTarget"; +const _eSp = "epochSeconds"; +const _en = "entry"; +const _f = "foo"; +const _fBV = "falseBooleanValue"; +const _fE = "fooEnum1"; +const _fEL = "fooEnumList"; +const _fEM = "fooEnumMap"; +const _fES = "fooEnumSet"; +const _fEo = "fooEnum2"; +const _fEoo = "fooEnum3"; +const _fL = "flattenedList"; +const _fLWMN = "flattenedListWithMemberNamespace"; +const _fLWN = "flattenedListWithNamespace"; +const _fLl = "flattenedList2"; +const _fNM = "flatNestedMap"; +const _fSL = "flattenedStructureList"; +const _fV = "floatValue"; +const _g = "greeting"; +const _h = "hello"; +const _hB = "headerByte"; +const _hBL = "headerBooleanList"; +const _hD = "headerDouble"; +const _hDOT = "httpDateOnTarget"; +const _hDt = "httpDate"; +const _hE = "headerEnum"; +const _hEL = "headerEnumList"; +const _hF = "headerFloat"; +const _hFB = "headerFalseBool"; +const _hI = "headerInteger"; +const _hIL = "headerIntegerList"; +const _hL = "headerLong"; +const _hS = "headerString"; +const _hSL = "headerStringList"; +const _hSS = "headerStringSet"; +const _hSe = "headerShort"; +const _hTB = "headerTrueBool"; +const _hTL = "headerTimestampList"; +const _hi = "hi"; +const _i = "item"; +const _iE = "intEnum1"; +const _iEL = "intEnumList"; +const _iEM = "intEnumMap"; +const _iES = "intEnumSet"; +const _iEn = "intEnum2"; +const _iEnt = "intEnum3"; +const _iL = "integerList"; +const _iV = "integerValue"; +const _l = "label"; +const _lV = "longValue"; +const _m = "member"; +const _mDT = "memberDateTime"; +const _mES = "memberEpochSeconds"; +const _mHD = "memberHttpDate"; +const _mM = "myMap"; +const _mS = "maybeSet"; +const _mSL = "myStructureList"; +const _n = "nested"; +const _nM = "nestedMap"; +const _nSL = "nestedStringList"; +const _nV = "nullValue"; +const _na = "name"; +const _no = "normal"; +const _o = "other"; +const _q = "qux"; +const _qB = "queryByte"; +const _qBL = "queryBooleanList"; +const _qBu = "queryBoolean"; +const _qD = "queryDouble"; +const _qDL = "queryDoubleList"; +const _qE = "queryEnum"; +const _qEL = "queryEnumList"; +const _qF = "queryFloat"; +const _qI = "queryInteger"; +const _qIE = "queryIntegerEnum"; +const _qIEL = "queryIntegerEnumList"; +const _qIL = "queryIntegerList"; +const _qIS = "queryIntegerSet"; +const _qL = "queryLong"; +const _qS = "queryString"; +const _qSL = "queryStringList"; +const _qSS = "queryStringSet"; +const _qSu = "queryShort"; +const _qT = "queryTimestamp"; +const _qTL = "queryTimestampList"; +const _r = "renamed"; +const _rLM = "renamedListMembers"; +const _rM = "recursiveMember"; +const _sL = "stringList"; +const _sLt = "structureList"; +const _sS = "stringSet"; +const _sV = "shortValue"; +const _sVt = "stringValue"; +const _sVtr = "structValue"; +const _t = "token"; +const _tBV = "trueBooleanValue"; +const _tDT = "targetDateTime"; +const _tES = "targetEpochSeconds"; +const _tHD = "targetHttpDate"; +const _tL = "timestampList"; +const _te = "test"; +const _uV = "unionValue"; +const _v = "value"; +const _va = "values"; +const _ve = ''; +const _xa = "x-a"; +const _xaai = "x-amz-account-id"; +const _xb = "x-byte"; +const _xb_ = "x-boolean1"; +const _xb__ = "x-boolean2"; +const _xb___ = "x-booleanlist"; +const _xb____ = "x-b"; +const _xc = "x-c"; +const _xd = "x-double"; +const _xd_ = "x-defaultformat"; +const _xe = "x-enum"; +const _xe_ = "x-enumlist"; +const _xf = "x-foo"; +const _xf_ = "x-float"; +const _xg = "x-greeting"; +const _xh = "x-header"; +const _xi = "x-integer"; +const _xi_ = "x-integerlist"; +const _xl = "x-long"; +const _xm = "x-memberepochseconds"; +const _xm_ = "x-memberhttpdate"; +const _xm__ = "x-memberdatetime"; +const _xs = "x-string"; +const _xs_ = "x-short"; +const _xs__ = "x-stringlist"; +const _xs___ = "x-stringset"; +const _xt = "x-timestamplist"; +const _xt_ = "x-targetepochseconds"; +const _xt__ = "x-targethttpdate"; +const _xt___ = "x-targetdatetime"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/private/aws-restjson-server/src/protocols/Aws_restJson1.ts b/private/aws-restjson-server/src/protocols/Aws_restJson1.ts index d6928f2220a1..35f7ab9129e9 100644 --- a/private/aws-restjson-server/src/protocols/Aws_restJson1.ts +++ b/private/aws-restjson-server/src/protocols/Aws_restJson1.ts @@ -937,7 +937,7 @@ export const deserializeHttpPayloadTraitsRequest = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = await collectBody(output.body, context); contents.blob = data; @@ -965,7 +965,7 @@ export const deserializeHttpPayloadTraitsWithMediaTypeRequest = async ( } } const contents: any = map({ - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = await collectBody(output.body, context); contents.blob = data; @@ -1045,7 +1045,7 @@ export const deserializeHttpPrefixHeadersRequest = async ( } } const contents: any = map({ - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], fooMap: [ , Object.keys(output.headers) @@ -1365,60 +1365,47 @@ export const deserializeInputAndOutputWithHeadersRequest = async ( } } const contents: any = map({ - headerString: [, output.headers["x-string"]], - headerByte: [() => void 0 !== output.headers["x-byte"], () => __strictParseByte(output.headers["x-byte"])], - headerShort: [() => void 0 !== output.headers["x-short"], () => __strictParseShort(output.headers["x-short"])], - headerInteger: [ - () => void 0 !== output.headers["x-integer"], - () => __strictParseInt32(output.headers["x-integer"]), + [_hS]: [, output.headers[_xs]], + [_hB]: [() => void 0 !== output.headers[_xb], () => __strictParseByte(output.headers[_xb])], + [_hSe]: [() => void 0 !== output.headers[_xs_], () => __strictParseShort(output.headers[_xs_])], + [_hI]: [() => void 0 !== output.headers[_xi], () => __strictParseInt32(output.headers[_xi])], + [_hL]: [() => void 0 !== output.headers[_xl], () => __strictParseLong(output.headers[_xl])], + [_hF]: [() => void 0 !== output.headers[_xf_], () => __strictParseFloat(output.headers[_xf_])], + [_hD]: [() => void 0 !== output.headers[_xd], () => __strictParseDouble(output.headers[_xd])], + [_hTB]: [() => void 0 !== output.headers[_xb_], () => __parseBoolean(output.headers[_xb_])], + [_hFB]: [() => void 0 !== output.headers[_xb__], () => __parseBoolean(output.headers[_xb__])], + [_hSL]: [ + () => void 0 !== output.headers[_xs__], + () => (output.headers[_xs__] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerLong: [() => void 0 !== output.headers["x-long"], () => __strictParseLong(output.headers["x-long"])], - headerFloat: [() => void 0 !== output.headers["x-float"], () => __strictParseFloat(output.headers["x-float"])], - headerDouble: [() => void 0 !== output.headers["x-double"], () => __strictParseDouble(output.headers["x-double"])], - headerTrueBool: [() => void 0 !== output.headers["x-boolean1"], () => __parseBoolean(output.headers["x-boolean1"])], - headerFalseBool: [ - () => void 0 !== output.headers["x-boolean2"], - () => __parseBoolean(output.headers["x-boolean2"]), + [_hSS]: [ + () => void 0 !== output.headers[_xs___], + () => (output.headers[_xs___] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerStringList: [ - () => void 0 !== output.headers["x-stringlist"], - () => (output.headers["x-stringlist"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hIL]: [ + () => void 0 !== output.headers[_xi_], + () => (output.headers[_xi_] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), ], - headerStringSet: [ - () => void 0 !== output.headers["x-stringset"], - () => (output.headers["x-stringset"] || "").split(",").map((_entry) => _entry.trim() as any), + [_hBL]: [ + () => void 0 !== output.headers[_xb___], + () => (output.headers[_xb___] || "").split(",").map((_entry) => __parseBoolean(_entry.trim()) as any), ], - headerIntegerList: [ - () => void 0 !== output.headers["x-integerlist"], + [_hTL]: [ + () => void 0 !== output.headers[_xt], () => - (output.headers["x-integerlist"] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), - ], - headerBooleanList: [ - () => void 0 !== output.headers["x-booleanlist"], - () => (output.headers["x-booleanlist"] || "").split(",").map((_entry) => __parseBoolean(_entry.trim()) as any), - ], - headerTimestampList: [ - () => void 0 !== output.headers["x-timestamplist"], - () => - __splitEvery(output.headers["x-timestamplist"] || "", ",", 2).map( + __splitEvery(output.headers[_xt] || "", ",", 2).map( (_entry) => __expectNonNull(__parseRfc7231DateTime(_entry.trim())) as any ), ], - headerEnum: [, output.headers["x-enum"]], - headerEnumList: [ - () => void 0 !== output.headers["x-enumlist"], - () => (output.headers["x-enumlist"] || "").split(",").map((_entry) => _entry.trim() as any), - ], - headerIntegerEnum: [ - () => void 0 !== output.headers["x-integerenum"], - () => __strictParseInt32(output.headers["x-integerenum"]), + [_hE]: [, output.headers[_xe]], + [_hEL]: [ + () => void 0 !== output.headers[_xe_], + () => (output.headers[_xe_] || "").split(",").map((_entry) => _entry.trim() as any), ], - headerIntegerEnumList: [ - () => void 0 !== output.headers["x-integerenumlist"], - () => - (output.headers["x-integerenumlist"] || "") - .split(",") - .map((_entry) => __strictParseInt32(_entry.trim()) as any), + [_hIE]: [() => void 0 !== output.headers[_xi__], () => __strictParseInt32(output.headers[_xi__])], + [_hIEL]: [ + () => void 0 !== output.headers[_xi___], + () => (output.headers[_xi___] || "").split(",").map((_entry) => __strictParseInt32(_entry.trim()) as any), ], }); await collectBody(output.body, context); @@ -1787,10 +1774,7 @@ export const deserializeMalformedBooleanRequest = async ( } } const contents: any = map({ - booleanInHeader: [ - () => void 0 !== output.headers["booleaninheader"], - () => __parseBoolean(output.headers["booleaninheader"]), - ], + [_bIH]: [() => void 0 !== output.headers[_b], () => __parseBoolean(output.headers[_b])], }); const query = output.query; if (query != null) { @@ -1842,10 +1826,7 @@ export const deserializeMalformedByteRequest = async ( } } const contents: any = map({ - byteInHeader: [ - () => void 0 !== output.headers["byteinheader"], - () => __strictParseByte(output.headers["byteinheader"]), - ], + [_bIHy]: [() => void 0 !== output.headers[_by], () => __strictParseByte(output.headers[_by])], }); const query = output.query; if (query != null) { @@ -2003,10 +1984,7 @@ export const deserializeMalformedDoubleRequest = async ( } } const contents: any = map({ - doubleInHeader: [ - () => void 0 !== output.headers["doubleinheader"], - () => __strictParseDouble(output.headers["doubleinheader"]), - ], + [_dIH]: [() => void 0 !== output.headers[_d], () => __strictParseDouble(output.headers[_d])], }); const query = output.query; if (query != null) { @@ -2058,10 +2036,7 @@ export const deserializeMalformedFloatRequest = async ( } } const contents: any = map({ - floatInHeader: [ - () => void 0 !== output.headers["floatinheader"], - () => __strictParseFloat(output.headers["floatinheader"]), - ], + [_fIH]: [() => void 0 !== output.headers[_fl], () => __strictParseFloat(output.headers[_fl])], }); const query = output.query; if (query != null) { @@ -2113,10 +2088,7 @@ export const deserializeMalformedIntegerRequest = async ( } } const contents: any = map({ - integerInHeader: [ - () => void 0 !== output.headers["integerinheader"], - () => __strictParseInt32(output.headers["integerinheader"]), - ], + [_iIH]: [() => void 0 !== output.headers[_i], () => __strictParseInt32(output.headers[_i])], }); const query = output.query; if (query != null) { @@ -2197,10 +2169,7 @@ export const deserializeMalformedLongRequest = async ( } } const contents: any = map({ - longInHeader: [ - () => void 0 !== output.headers["longinheader"], - () => __strictParseLong(output.headers["longinheader"]), - ], + [_lIH]: [() => void 0 !== output.headers[_l], () => __strictParseLong(output.headers[_l])], }); const query = output.query; if (query != null) { @@ -2311,10 +2280,7 @@ export const deserializeMalformedShortRequest = async ( } } const contents: any = map({ - shortInHeader: [ - () => void 0 !== output.headers["shortinheader"], - () => __strictParseShort(output.headers["shortinheader"]), - ], + [_sIH]: [() => void 0 !== output.headers[_s], () => __strictParseShort(output.headers[_s])], }); const query = output.query; if (query != null) { @@ -2366,12 +2332,9 @@ export const deserializeMalformedStringRequest = async ( } } const contents: any = map({ - blob: [ - () => void 0 !== output.headers["amz-media-typed-header"], - () => - new __LazyJsonString( - Buffer.from(context.base64Decoder(output.headers["amz-media-typed-header"])).toString("utf8") - ), + [_bl]: [ + () => void 0 !== output.headers[_amth], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_amth])).toString("utf8")), ], }); await collectBody(output.body, context); @@ -2486,10 +2449,7 @@ export const deserializeMalformedTimestampHeaderDateTimeRequest = async ( } } const contents: any = map({ - timestamp: [ - () => void 0 !== output.headers["timestamp"], - () => __expectNonNull(__parseRfc3339DateTime(output.headers["timestamp"])), - ], + [_t]: [() => void 0 !== output.headers[_t], () => __expectNonNull(__parseRfc3339DateTime(output.headers[_t]))], }); await collectBody(output.body, context); return contents; @@ -2516,10 +2476,7 @@ export const deserializeMalformedTimestampHeaderDefaultRequest = async ( } } const contents: any = map({ - timestamp: [ - () => void 0 !== output.headers["timestamp"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["timestamp"])), - ], + [_t]: [() => void 0 !== output.headers[_t], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_t]))], }); await collectBody(output.body, context); return contents; @@ -2546,10 +2503,7 @@ export const deserializeMalformedTimestampHeaderEpochRequest = async ( } } const contents: any = map({ - timestamp: [ - () => void 0 !== output.headers["timestamp"], - () => __expectNonNull(__parseEpochTimestamp(output.headers["timestamp"])), - ], + [_t]: [() => void 0 !== output.headers[_t], () => __expectNonNull(__parseEpochTimestamp(output.headers[_t]))], }); await collectBody(output.body, context); return contents; @@ -2818,9 +2772,9 @@ export const deserializeMediaTypeHeaderRequest = async ( } } const contents: any = map({ - json: [ - () => void 0 !== output.headers["x-json"], - () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers["x-json"])).toString("utf8")), + [_j]: [ + () => void 0 !== output.headers[_xj], + () => new __LazyJsonString(Buffer.from(context.base64Decoder(output.headers[_xj])).toString("utf8")), ], }); await collectBody(output.body, context); @@ -2898,11 +2852,11 @@ export const deserializeNullAndEmptyHeadersClientRequest = async ( } } const contents: any = map({ - a: [, output.headers["x-a"]], - b: [, output.headers["x-b"]], - c: [ - () => void 0 !== output.headers["x-c"], - () => (output.headers["x-c"] || "").split(",").map((_entry) => _entry.trim() as any), + [_a]: [, output.headers[_xa]], + [_b_]: [, output.headers[_xb____]], + [_c]: [ + () => void 0 !== output.headers[_xc], + () => (output.headers[_xc] || "").split(",").map((_entry) => _entry.trim() as any), ], }); await collectBody(output.body, context); @@ -2930,11 +2884,11 @@ export const deserializeNullAndEmptyHeadersServerRequest = async ( } } const contents: any = map({ - a: [, output.headers["x-a"]], - b: [, output.headers["x-b"]], - c: [ - () => void 0 !== output.headers["x-c"], - () => (output.headers["x-c"] || "").split(",").map((_entry) => _entry.trim() as any), + [_a]: [, output.headers[_xa]], + [_b_]: [, output.headers[_xb____]], + [_c]: [ + () => void 0 !== output.headers[_xc], + () => (output.headers[_xc] || "").split(",").map((_entry) => _entry.trim() as any), ], }); await collectBody(output.body, context); @@ -3144,7 +3098,7 @@ export const deserializePutWithContentEncodingRequest = async ( } } const contents: any = map({ - encoding: [, output.headers["content-encoding"]], + [_e]: [, output.headers[_ce]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -3349,7 +3303,7 @@ export const deserializeSimpleScalarPropertiesRequest = async ( } } const contents: any = map({ - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -3372,7 +3326,7 @@ export const deserializeStreamingTraitsRequest = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = output.body; contents.blob = data; @@ -3391,7 +3345,7 @@ export const deserializeStreamingTraitsRequireLengthRequest = async ( } } const contents: any = map({ - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = output.body; contents.blob = data; @@ -3419,7 +3373,7 @@ export const deserializeStreamingTraitsWithMediaTypeRequest = async ( } } const contents: any = map({ - foo: [, output.headers["x-foo"]], + [_f]: [, output.headers[_xf]], }); const data: any = output.body; contents.blob = data; @@ -3447,7 +3401,7 @@ export const deserializeTestBodyStructureRequest = async ( } } const contents: any = map({ - testId: [, output.headers["x-amz-test-id"]], + [_tI]: [, output.headers[_xati]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { @@ -3478,7 +3432,7 @@ export const deserializeTestNoPayloadRequest = async ( } } const contents: any = map({ - testId: [, output.headers["x-amz-test-id"]], + [_tI]: [, output.headers[_xati]], }); await collectBody(output.body, context); return contents; @@ -3489,7 +3443,7 @@ export const deserializeTestPayloadBlobRequest = async ( context: __SerdeContext ): Promise => { const contents: any = map({ - contentType: [, output.headers["content-type"]], + [_cT]: [, output.headers[_ct]], }); const data: any = await collectBody(output.body, context); contents.data = data; @@ -3517,7 +3471,7 @@ export const deserializeTestPayloadStructureRequest = async ( } } const contents: any = map({ - testId: [, output.headers["x-amz-test-id"]], + [_tI]: [, output.headers[_xati]], }); const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.payloadConfig = de_PayloadConfig(data, context); @@ -3545,33 +3499,24 @@ export const deserializeTimestampFormatHeadersRequest = async ( } } const contents: any = map({ - memberEpochSeconds: [ - () => void 0 !== output.headers["x-memberepochseconds"], - () => __expectNonNull(__parseEpochTimestamp(output.headers["x-memberepochseconds"])), - ], - memberHttpDate: [ - () => void 0 !== output.headers["x-memberhttpdate"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-memberhttpdate"])), - ], - memberDateTime: [ - () => void 0 !== output.headers["x-memberdatetime"], - () => __expectNonNull(__parseRfc3339DateTime(output.headers["x-memberdatetime"])), + [_mES]: [() => void 0 !== output.headers[_xm], () => __expectNonNull(__parseEpochTimestamp(output.headers[_xm]))], + [_mHD]: [ + () => void 0 !== output.headers[_xm_], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xm_])), ], - defaultFormat: [ - () => void 0 !== output.headers["x-defaultformat"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-defaultformat"])), + [_mDT]: [ + () => void 0 !== output.headers[_xm__], + () => __expectNonNull(__parseRfc3339DateTime(output.headers[_xm__])), ], - targetEpochSeconds: [ - () => void 0 !== output.headers["x-targetepochseconds"], - () => __expectNonNull(__parseEpochTimestamp(output.headers["x-targetepochseconds"])), + [_dF]: [() => void 0 !== output.headers[_xd_], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xd_]))], + [_tES]: [() => void 0 !== output.headers[_xt_], () => __expectNonNull(__parseEpochTimestamp(output.headers[_xt_]))], + [_tHD]: [ + () => void 0 !== output.headers[_xt__], + () => __expectNonNull(__parseRfc7231DateTime(output.headers[_xt__])), ], - targetHttpDate: [ - () => void 0 !== output.headers["x-targethttpdate"], - () => __expectNonNull(__parseRfc7231DateTime(output.headers["x-targethttpdate"])), - ], - targetDateTime: [ - () => void 0 !== output.headers["x-targetdatetime"], - () => __expectNonNull(__parseRfc3339DateTime(output.headers["x-targetdatetime"])), + [_tDT]: [ + () => void 0 !== output.headers[_xt___], + () => __expectNonNull(__parseRfc3339DateTime(output.headers[_xt___])), ], }); await collectBody(output.body, context); @@ -3994,7 +3939,7 @@ export const serializeGreetingWithErrorsResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-greeting": input.greeting!, + [_xg]: input[_g]!, }); let body: any; body = "{}"; @@ -4146,7 +4091,7 @@ export const serializeHttpPayloadTraitsResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); let body: any; if (input.blob !== undefined) { @@ -4186,7 +4131,7 @@ export const serializeHttpPayloadTraitsWithMediaTypeResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "text/plain", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); let body: any; if (input.blob !== undefined) { @@ -4312,7 +4257,7 @@ export const serializeHttpPrefixHeadersResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-foo": input.foo!, + [_xf]: input[_f]!, ...(input.fooMap !== undefined && Object.keys(input.fooMap).reduce((acc: any, suffix: string) => { acc[`x-foo-${suffix.toLowerCase()}`] = input.fooMap![suffix]; @@ -4687,53 +4632,50 @@ export const serializeInputAndOutputWithHeadersResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-string": input.headerString!, - "x-byte": [() => isSerializableHeaderValue(input.headerByte), () => input.headerByte!.toString()], - "x-short": [() => isSerializableHeaderValue(input.headerShort), () => input.headerShort!.toString()], - "x-integer": [() => isSerializableHeaderValue(input.headerInteger), () => input.headerInteger!.toString()], - "x-long": [() => isSerializableHeaderValue(input.headerLong), () => input.headerLong!.toString()], - "x-float": [ - () => isSerializableHeaderValue(input.headerFloat), - () => (input.headerFloat! % 1 == 0 ? input.headerFloat! + ".0" : input.headerFloat!.toString()), - ], - "x-double": [ - () => isSerializableHeaderValue(input.headerDouble), - () => (input.headerDouble! % 1 == 0 ? input.headerDouble! + ".0" : input.headerDouble!.toString()), + [_xs]: input[_hS]!, + [_xb]: [() => isSerializableHeaderValue(input[_hB]), () => input[_hB]!.toString()], + [_xs_]: [() => isSerializableHeaderValue(input[_hSe]), () => input[_hSe]!.toString()], + [_xi]: [() => isSerializableHeaderValue(input[_hI]), () => input[_hI]!.toString()], + [_xl]: [() => isSerializableHeaderValue(input[_hL]), () => input[_hL]!.toString()], + [_xf_]: [ + () => isSerializableHeaderValue(input[_hF]), + () => (input[_hF]! % 1 == 0 ? input[_hF]! + ".0" : input[_hF]!.toString()), ], - "x-boolean1": [() => isSerializableHeaderValue(input.headerTrueBool), () => input.headerTrueBool!.toString()], - "x-boolean2": [() => isSerializableHeaderValue(input.headerFalseBool), () => input.headerFalseBool!.toString()], - "x-stringlist": [ - () => isSerializableHeaderValue(input.headerStringList), - () => (input.headerStringList! || []).map((_entry) => _entry as any).join(", "), + [_xd]: [ + () => isSerializableHeaderValue(input[_hD]), + () => (input[_hD]! % 1 == 0 ? input[_hD]! + ".0" : input[_hD]!.toString()), ], - "x-stringset": [ - () => isSerializableHeaderValue(input.headerStringSet), - () => (input.headerStringSet! || []).map((_entry) => _entry as any).join(", "), + [_xb_]: [() => isSerializableHeaderValue(input[_hTB]), () => input[_hTB]!.toString()], + [_xb__]: [() => isSerializableHeaderValue(input[_hFB]), () => input[_hFB]!.toString()], + [_xs__]: [ + () => isSerializableHeaderValue(input[_hSL]), + () => (input[_hSL]! || []).map((_entry) => _entry as any).join(", "), ], - "x-integerlist": [ - () => isSerializableHeaderValue(input.headerIntegerList), - () => (input.headerIntegerList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xs___]: [ + () => isSerializableHeaderValue(input[_hSS]), + () => (input[_hSS]! || []).map((_entry) => _entry as any).join(", "), ], - "x-booleanlist": [ - () => isSerializableHeaderValue(input.headerBooleanList), - () => (input.headerBooleanList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xi_]: [ + () => isSerializableHeaderValue(input[_hIL]), + () => (input[_hIL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], - "x-timestamplist": [ - () => isSerializableHeaderValue(input.headerTimestampList), - () => (input.headerTimestampList! || []).map((_entry) => __dateToUtcString(_entry).toString() as any).join(", "), + [_xb___]: [ + () => isSerializableHeaderValue(input[_hBL]), + () => (input[_hBL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], - "x-enum": input.headerEnum!, - "x-enumlist": [ - () => isSerializableHeaderValue(input.headerEnumList), - () => (input.headerEnumList! || []).map((_entry) => _entry as any).join(", "), + [_xt]: [ + () => isSerializableHeaderValue(input[_hTL]), + () => (input[_hTL]! || []).map((_entry) => __dateToUtcString(_entry).toString() as any).join(", "), ], - "x-integerenum": [ - () => isSerializableHeaderValue(input.headerIntegerEnum), - () => input.headerIntegerEnum!.toString(), + [_xe]: input[_hE]!, + [_xe_]: [ + () => isSerializableHeaderValue(input[_hEL]), + () => (input[_hEL]! || []).map((_entry) => _entry as any).join(", "), ], - "x-integerenumlist": [ - () => isSerializableHeaderValue(input.headerIntegerEnumList), - () => (input.headerIntegerEnumList! || []).map((_entry) => _entry.toString() as any).join(", "), + [_xi__]: [() => isSerializableHeaderValue(input[_hIE]), () => input[_hIE]!.toString()], + [_xi___]: [ + () => isSerializableHeaderValue(input[_hIEL]), + () => (input[_hIEL]! || []).map((_entry) => _entry.toString() as any).join(", "), ], }); let body: any; @@ -6198,9 +6140,9 @@ export const serializeMediaTypeHeaderResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-json": [ - () => isSerializableHeaderValue(input.json), - () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input.json!))), + [_xj]: [ + () => isSerializableHeaderValue(input[_j]), + () => context.base64Encoder(Buffer.from(__LazyJsonString.fromObject(input[_j]!))), ], }); let body: any; @@ -6310,9 +6252,12 @@ export const serializeNullAndEmptyHeadersClientResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-a": input.a!, - "x-b": input.b!, - "x-c": [() => isSerializableHeaderValue(input.c), () => (input.c! || []).map((_entry) => _entry as any).join(", ")], + [_xa]: input[_a]!, + [_xb____]: input[_b_]!, + [_xc]: [ + () => isSerializableHeaderValue(input[_c]), + () => (input[_c]! || []).map((_entry) => _entry as any).join(", "), + ], }); let body: any; body = "{}"; @@ -6350,9 +6295,12 @@ export const serializeNullAndEmptyHeadersServerResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-a": input.a!, - "x-b": input.b!, - "x-c": [() => isSerializableHeaderValue(input.c), () => (input.c! || []).map((_entry) => _entry as any).join(", ")], + [_xa]: input[_a]!, + [_xb____]: input[_b_]!, + [_xc]: [ + () => isSerializableHeaderValue(input[_c]), + () => (input[_c]! || []).map((_entry) => _entry as any).join(", "), + ], }); let body: any; body = "{}"; @@ -6717,7 +6665,7 @@ export const serializeSimpleScalarPropertiesResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); let body: any; body = JSON.stringify( @@ -6767,7 +6715,7 @@ export const serializeStreamingTraitsResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/octet-stream", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); let body: any; if (input.blob !== undefined) { @@ -6841,7 +6789,7 @@ export const serializeStreamingTraitsWithMediaTypeResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "text/plain", - "x-foo": input.foo!, + [_xf]: input[_f]!, }); let body: any; if (input.blob !== undefined) { @@ -6881,7 +6829,7 @@ export const serializeTestBodyStructureResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-test-id": input.testId!, + [_xati]: input[_tI]!, }); let body: any; body = JSON.stringify( @@ -6923,7 +6871,7 @@ export const serializeTestNoPayloadResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-test-id": input.testId!, + [_xati]: input[_tI]!, }); let body: any; body = "{}"; @@ -6960,7 +6908,7 @@ export const serializeTestPayloadBlobResponse = async ( }; const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { - "content-type": input.contentType! || "application/octet-stream", + [_ct]: input[_cT]! || "application/octet-stream", }); let body: any; if (input.data !== undefined) { @@ -7000,7 +6948,7 @@ export const serializeTestPayloadStructureResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-amz-test-id": input.testId!, + [_xati]: input[_tI]!, }); let body: any; if (input.payloadConfig !== undefined) { @@ -7044,33 +6992,18 @@ export const serializeTimestampFormatHeadersResponse = async ( const statusCode = 200; let headers: any = map({}, isSerializableHeaderValue, { "content-type": "application/json", - "x-memberepochseconds": [ - () => isSerializableHeaderValue(input.memberEpochSeconds), - () => Math.round(input.memberEpochSeconds!.getTime() / 1000).toString(), - ], - "x-memberhttpdate": [ - () => isSerializableHeaderValue(input.memberHttpDate), - () => __dateToUtcString(input.memberHttpDate!).toString(), - ], - "x-memberdatetime": [ - () => isSerializableHeaderValue(input.memberDateTime), - () => (input.memberDateTime!.toISOString().split(".")[0] + "Z").toString(), - ], - "x-defaultformat": [ - () => isSerializableHeaderValue(input.defaultFormat), - () => __dateToUtcString(input.defaultFormat!).toString(), + [_xm]: [() => isSerializableHeaderValue(input[_mES]), () => Math.round(input[_mES]!.getTime() / 1000).toString()], + [_xm_]: [() => isSerializableHeaderValue(input[_mHD]), () => __dateToUtcString(input[_mHD]!).toString()], + [_xm__]: [ + () => isSerializableHeaderValue(input[_mDT]), + () => (input[_mDT]!.toISOString().split(".")[0] + "Z").toString(), ], - "x-targetepochseconds": [ - () => isSerializableHeaderValue(input.targetEpochSeconds), - () => Math.round(input.targetEpochSeconds!.getTime() / 1000).toString(), - ], - "x-targethttpdate": [ - () => isSerializableHeaderValue(input.targetHttpDate), - () => __dateToUtcString(input.targetHttpDate!).toString(), - ], - "x-targetdatetime": [ - () => isSerializableHeaderValue(input.targetDateTime), - () => (input.targetDateTime!.toISOString().split(".")[0] + "Z").toString(), + [_xd_]: [() => isSerializableHeaderValue(input[_dF]), () => __dateToUtcString(input[_dF]!).toString()], + [_xt_]: [() => isSerializableHeaderValue(input[_tES]), () => Math.round(input[_tES]!.getTime() / 1000).toString()], + [_xt__]: [() => isSerializableHeaderValue(input[_tHD]), () => __dateToUtcString(input[_tHD]!).toString()], + [_xt___]: [ + () => isSerializableHeaderValue(input[_tDT]), + () => (input[_tDT]!.toISOString().split(".")[0] + "Z").toString(), ], }); let body: any; @@ -7231,7 +7164,7 @@ export const serializeComplexErrorError = async ( const headers: any = map({}, isSerializableHeaderValue, { "x-amzn-errortype": "ComplexError", "content-type": "application/json", - "x-header": input.Header!, + [_xh]: input[_H]!, }); let body: any; body = JSON.stringify( @@ -8321,6 +8254,94 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _H = "Header"; +const _a = "a"; +const _amth = "amz-media-typed-header"; +const _b = "booleaninheader"; +const _bIH = "booleanInHeader"; +const _bIHy = "byteInHeader"; +const _b_ = "b"; +const _bl = "blob"; +const _by = "byteinheader"; +const _c = "c"; +const _cT = "contentType"; +const _ce = "content-encoding"; +const _ct = "content-type"; +const _d = "doubleinheader"; +const _dF = "defaultFormat"; +const _dIH = "doubleInHeader"; +const _e = "encoding"; +const _f = "foo"; +const _fIH = "floatInHeader"; +const _fl = "floatinheader"; +const _g = "greeting"; +const _hB = "headerByte"; +const _hBL = "headerBooleanList"; +const _hD = "headerDouble"; +const _hE = "headerEnum"; +const _hEL = "headerEnumList"; +const _hF = "headerFloat"; +const _hFB = "headerFalseBool"; +const _hI = "headerInteger"; +const _hIE = "headerIntegerEnum"; +const _hIEL = "headerIntegerEnumList"; +const _hIL = "headerIntegerList"; +const _hL = "headerLong"; +const _hS = "headerString"; +const _hSL = "headerStringList"; +const _hSS = "headerStringSet"; +const _hSe = "headerShort"; +const _hTB = "headerTrueBool"; +const _hTL = "headerTimestampList"; +const _i = "integerinheader"; +const _iIH = "integerInHeader"; +const _j = "json"; +const _l = "longinheader"; +const _lIH = "longInHeader"; +const _mDT = "memberDateTime"; +const _mES = "memberEpochSeconds"; +const _mHD = "memberHttpDate"; +const _s = "shortinheader"; +const _sIH = "shortInHeader"; +const _t = "timestamp"; +const _tDT = "targetDateTime"; +const _tES = "targetEpochSeconds"; +const _tHD = "targetHttpDate"; +const _tI = "testId"; +const _xa = "x-a"; +const _xati = "x-amz-test-id"; +const _xb = "x-byte"; +const _xb_ = "x-boolean1"; +const _xb__ = "x-boolean2"; +const _xb___ = "x-booleanlist"; +const _xb____ = "x-b"; +const _xc = "x-c"; +const _xd = "x-double"; +const _xd_ = "x-defaultformat"; +const _xe = "x-enum"; +const _xe_ = "x-enumlist"; +const _xf = "x-foo"; +const _xf_ = "x-float"; +const _xg = "x-greeting"; +const _xh = "x-header"; +const _xi = "x-integer"; +const _xi_ = "x-integerlist"; +const _xi__ = "x-integerenum"; +const _xi___ = "x-integerenumlist"; +const _xj = "x-json"; +const _xl = "x-long"; +const _xm = "x-memberepochseconds"; +const _xm_ = "x-memberhttpdate"; +const _xm__ = "x-memberdatetime"; +const _xs = "x-string"; +const _xs_ = "x-short"; +const _xs__ = "x-stringlist"; +const _xs___ = "x-stringset"; +const _xt = "x-timestamplist"; +const _xt_ = "x-targetepochseconds"; +const _xt__ = "x-targethttpdate"; +const _xt___ = "x-targetdatetime"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/private/aws-restjson-validation-server/src/protocols/Aws_restJson1.ts b/private/aws-restjson-validation-server/src/protocols/Aws_restJson1.ts index 63918dd6d5d6..31efac1f8745 100644 --- a/private/aws-restjson-validation-server/src/protocols/Aws_restJson1.ts +++ b/private/aws-restjson-validation-server/src/protocols/Aws_restJson1.ts @@ -399,7 +399,7 @@ export const deserializeMalformedRequiredRequest = async ( } } const contents: any = map({ - stringInHeader: [, output.headers["string-in-headers"]], + [_sIH]: [, output.headers[_sih]], }); const query = output.query; if (query != null) { @@ -1547,6 +1547,9 @@ const isSerializableHeaderValue = (value: any): boolean => (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const _sIH = "stringInHeader"; +const _sih = "string-in-headers"; + const parseBody = (streamBody: any, context: __SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { diff --git a/private/weather-experimental-identity-and-auth/package.json b/private/weather-experimental-identity-and-auth/package.json index cf81366af224..87bf45825294 100644 --- a/private/weather-experimental-identity-and-auth/package.json +++ b/private/weather-experimental-identity-and-auth/package.json @@ -26,7 +26,7 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@smithy/config-resolver": "^2.0.21", - "@smithy/core": "^1.1.0", + "@smithy/core": "^1.2.0", "@smithy/experimental-identity-and-auth": "^0.0.29", "@smithy/fetch-http-handler": "^2.3.1", "@smithy/hash-node": "^2.0.17", diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index e478c9aedede..996af167ddec 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -1,5 +1,5 @@ // Update this commit when taking up new changes from smithy-typescript. module.exports = { // Use full commit hash as we explicitly fetch it. - SMITHY_TS_COMMIT: "7748297f2c86bc93fc39e08371ff3d1637ecf69b", + SMITHY_TS_COMMIT: "9485a7319aefdc44ff8cdb06402a6e486450c78d", }; diff --git a/scripts/generate-clients/index.js b/scripts/generate-clients/index.js index 599aeef6d97f..53a3a6203266 100644 --- a/scripts/generate-clients/index.js +++ b/scripts/generate-clients/index.js @@ -33,6 +33,7 @@ const { repo, commit, d: noSmithyCheckout, + p: protocolTestsOnly, } = yargs(process.argv.slice(2)) .alias("m", "models") .string("m") @@ -51,6 +52,9 @@ const { .alias("d", "noSmithyCheckout") .boolean("d") .describe("d", "use existing Smithy version instead of target hash") + .alias("p", "protocolTestsOnly") + .boolean("p") + .describe("p", "Generate protocol tests only") .alias("s", "server-artifacts") .boolean("s") .describe("s", "Generate server artifacts instead of client ones") @@ -92,26 +96,36 @@ const { return; } - const undoS3 = s3Hack(); - await generateClients(models || globs || DEFAULT_CODE_GEN_INPUT_DIR, batchSize); - undoS3(); + if (!protocolTestsOnly) { + const undoS3 = s3Hack(); + try { + await generateClients(models || globs || DEFAULT_CODE_GEN_INPUT_DIR, batchSize); + undoS3(); + } catch (e) { + undoS3(); + throw e; + } + } if (!noPrivateClients) { await generateGenericClient(); await generateProtocolTests(); } - await codeOrdering(CODE_GEN_SDK_OUTPUT_DIR); await eslintFixCode(); - await prettifyCode(CODE_GEN_SDK_OUTPUT_DIR); - + if (!protocolTestsOnly) { + await codeOrdering(CODE_GEN_SDK_OUTPUT_DIR); + await prettifyCode(CODE_GEN_SDK_OUTPUT_DIR); + } if (!noPrivateClients) { await codeOrdering(CODE_GEN_GENERIC_CLIENT_OUTPUT_DIR); await prettifyCode(CODE_GEN_GENERIC_CLIENT_OUTPUT_DIR); await prettifyCode(CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR); } - await copyToClients(CODE_GEN_SDK_OUTPUT_DIR, clientsDir); + if (!protocolTestsOnly) { + await copyToClients(CODE_GEN_SDK_OUTPUT_DIR, clientsDir); + } if (!noPrivateClients) { await copyToClients(CODE_GEN_GENERIC_CLIENT_OUTPUT_DIR, PRIVATE_CLIENTS_DIR); await copyToClients(CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR, PRIVATE_CLIENTS_DIR); diff --git a/yarn.lock b/yarn.lock index 344f6883954a..7d99553e7fe0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2803,10 +2803,10 @@ "@smithy/util-middleware" "^2.0.8" tslib "^2.5.0" -"@smithy/core@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/core/-/core-1.1.0.tgz#80e419842cfcaf93040b2cc546f1d12731555479" - integrity sha512-k1zaT5S4K0bG67Q5TmPZ6PdWNQBTMQErChuDvTi+NTx21kKDt+/4YRidsK6nDbHizN6fn1bafUxrougZdKrpxA== +"@smithy/core@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@smithy/core/-/core-1.2.0.tgz#36286de5460905708221313b8b1faebf185761e6" + integrity sha512-l8R89X7+hlt2FEFg+OrNq29LP3h9DfGPmO6ObwT9IXWHD6V7ycpj5u2rVQyIis26ovrgOYakl6nfgmPMm8m1IQ== dependencies: "@smithy/middleware-endpoint" "^2.2.3" "@smithy/middleware-retry" "^2.0.24" @@ -2814,6 +2814,7 @@ "@smithy/protocol-http" "^3.0.11" "@smithy/smithy-client" "^2.1.18" "@smithy/types" "^2.7.0" + "@smithy/util-middleware" "^2.0.8" tslib "^2.5.0" "@smithy/credential-provider-imds@^2.0.0":